RTEMS 4.10.2Annotated Report
Tue Dec 13 19:01:36 2011
0200abd8 <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 ) {
200abd8: 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;
200abdc: c2 02 20 10 ld [ %o0 + 0x10 ], %g1
switch( node->type ) {
200abe0: c4 00 a0 4c ld [ %g2 + 0x4c ], %g2
200abe4: 84 00 bf ff add %g2, -1, %g2
200abe8: 80 a0 a0 06 cmp %g2, 6
200abec: 18 80 00 15 bgu 200ac40 <IMFS_Set_handlers+0x68> <== NEVER TAKEN
200abf0: c2 00 60 34 ld [ %g1 + 0x34 ], %g1
200abf4: 85 28 a0 02 sll %g2, 2, %g2
200abf8: 07 00 80 2a sethi %hi(0x200a800), %g3
200abfc: 86 10 e3 bc or %g3, 0x3bc, %g3 ! 200abbc <IMFS_create_node+0x110>
200ac00: c4 00 c0 02 ld [ %g3 + %g2 ], %g2
200ac04: 81 c0 80 00 jmp %g2
200ac08: 01 00 00 00 nop
case IMFS_DIRECTORY:
loc->handlers = fs_info->directory_handlers;
200ac0c: 10 80 00 0c b 200ac3c <IMFS_Set_handlers+0x64>
200ac10: c2 00 60 0c ld [ %g1 + 0xc ], %g1
break;
case IMFS_DEVICE:
loc->handlers = &IMFS_device_handlers;
200ac14: 03 00 80 6d sethi %hi(0x201b400), %g1
200ac18: 10 80 00 09 b 200ac3c <IMFS_Set_handlers+0x64>
200ac1c: 82 10 60 18 or %g1, 0x18, %g1 ! 201b418 <IMFS_device_handlers>
break;
case IMFS_SYM_LINK:
case IMFS_HARD_LINK:
loc->handlers = &IMFS_link_handlers;
200ac20: 03 00 80 6d sethi %hi(0x201b400), %g1
200ac24: 10 80 00 06 b 200ac3c <IMFS_Set_handlers+0x64>
200ac28: 82 10 60 88 or %g1, 0x88, %g1 ! 201b488 <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;
200ac2c: 10 80 00 04 b 200ac3c <IMFS_Set_handlers+0x64>
200ac30: c2 00 60 08 ld [ %g1 + 8 ], %g1
break;
case IMFS_FIFO:
loc->handlers = &IMFS_fifo_handlers;
200ac34: 03 00 80 6c sethi %hi(0x201b000), %g1
200ac38: 82 10 63 40 or %g1, 0x340, %g1 ! 201b340 <IMFS_fifo_handlers>
200ac3c: c2 22 20 08 st %g1, [ %o0 + 8 ]
break;
}
return 0;
}
200ac40: 81 c3 e0 08 retl
200ac44: 90 10 20 00 clr %o0
0200aa04 <IMFS_allocate_node>:
IMFS_jnode_t *IMFS_allocate_node(
IMFS_jnode_types_t type,
const char *name,
mode_t mode
)
{
200aa04: 9d e3 bf 98 save %sp, -104, %sp
struct timeval tv;
/*
* Allocate an IMFS jnode
*/
node = calloc( 1, sizeof( IMFS_jnode_t ) );
200aa08: 92 10 20 68 mov 0x68, %o1
200aa0c: 7f ff df aa call 20028b4 <calloc>
200aa10: 90 10 20 01 mov 1, %o0
IMFS_jnode_t *IMFS_allocate_node(
IMFS_jnode_types_t type,
const char *name,
mode_t mode
)
{
200aa14: 92 10 00 19 mov %i1, %o1
/*
* Allocate an IMFS jnode
*/
node = calloc( 1, sizeof( IMFS_jnode_t ) );
if ( !node )
200aa18: 80 a2 20 00 cmp %o0, 0
200aa1c: 02 80 00 12 be 200aa64 <IMFS_allocate_node+0x60> <== NEVER TAKEN
200aa20: a0 10 00 08 mov %o0, %l0
return NULL;
/*
* Fill in the basic information
*/
node->st_nlink = 1;
200aa24: 82 10 20 01 mov 1, %g1
node->type = type;
200aa28: f0 22 20 4c st %i0, [ %o0 + 0x4c ]
return NULL;
/*
* Fill in the basic information
*/
node->st_nlink = 1;
200aa2c: c2 32 20 34 sth %g1, [ %o0 + 0x34 ]
node->type = type;
strncpy( node->name, name, IMFS_NAME_MAX );
200aa30: 94 10 20 20 mov 0x20, %o2
200aa34: 40 00 16 bc call 2010524 <strncpy>
200aa38: 90 02 20 0c add %o0, 0xc, %o0
#endif
/*
* Now set all the times.
*/
gettimeofday( &tv, 0 );
200aa3c: 90 07 bf f8 add %fp, -8, %o0
strncpy( node->name, name, IMFS_NAME_MAX );
/*
* Fill in the mode and permission information for the jnode structure.
*/
node->st_mode = mode;
200aa40: f4 24 20 30 st %i2, [ %l0 + 0x30 ]
#if defined(RTEMS_POSIX_API)
node->st_uid = geteuid();
node->st_gid = getegid();
#else
node->st_uid = 0;
200aa44: c0 34 20 3c clrh [ %l0 + 0x3c ]
node->st_gid = 0;
200aa48: c0 34 20 3e clrh [ %l0 + 0x3e ]
#endif
/*
* Now set all the times.
*/
gettimeofday( &tv, 0 );
200aa4c: 7f ff e0 56 call 2002ba4 <gettimeofday>
200aa50: 92 10 20 00 clr %o1
node->stat_atime = (time_t) tv.tv_sec;
200aa54: c2 07 bf f8 ld [ %fp + -8 ], %g1
node->stat_mtime = (time_t) tv.tv_sec;
node->stat_ctime = (time_t) tv.tv_sec;
200aa58: c2 24 20 48 st %g1, [ %l0 + 0x48 ]
/*
* Now set all the times.
*/
gettimeofday( &tv, 0 );
node->stat_atime = (time_t) tv.tv_sec;
200aa5c: c2 24 20 40 st %g1, [ %l0 + 0x40 ]
node->stat_mtime = (time_t) tv.tv_sec;
200aa60: c2 24 20 44 st %g1, [ %l0 + 0x44 ]
node->stat_ctime = (time_t) tv.tv_sec;
return node;
}
200aa64: 81 c7 e0 08 ret
200aa68: 91 e8 00 10 restore %g0, %l0, %o0
0200aaac <IMFS_create_node>:
IMFS_jnode_types_t type,
const char *name,
mode_t mode,
const IMFS_types_union *info
)
{
200aaac: 9d e3 bf a0 save %sp, -96, %sp
200aab0: 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 )
200aab4: 80 a6 20 00 cmp %i0, 0
IMFS_jnode_types_t type,
const char *name,
mode_t mode,
const IMFS_types_union *info
)
{
200aab8: 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 )
200aabc: 02 80 00 3e be 200abb4 <IMFS_create_node+0x108> <== NEVER TAKEN
200aac0: 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 );
200aac4: 03 00 80 70 sethi %hi(0x201c000), %g1
200aac8: c2 00 62 80 ld [ %g1 + 0x280 ], %g1 ! 201c280 <rtems_current_user_env>
200aacc: 90 10 00 19 mov %i1, %o0
200aad0: d4 00 60 2c ld [ %g1 + 0x2c ], %o2
200aad4: 7f ff ff cc call 200aa04 <IMFS_allocate_node>
200aad8: 94 2e c0 0a andn %i3, %o2, %o2
if ( !node )
200aadc: b0 92 20 00 orcc %o0, 0, %i0
200aae0: 02 80 00 35 be 200abb4 <IMFS_create_node+0x108> <== NEVER TAKEN
200aae4: b2 06 7f ff add %i1, -1, %i1
return NULL;
/*
* Set the type specific information
*/
switch (type) {
200aae8: 80 a6 60 06 cmp %i1, 6
200aaec: 38 80 00 20 bgu,a 200ab6c <IMFS_create_node+0xc0> <== NEVER TAKEN
200aaf0: 11 00 80 6c sethi %hi(0x201b000), %o0 <== NOT EXECUTED
200aaf4: b3 2e 60 02 sll %i1, 2, %i1
200aaf8: 03 00 80 2a sethi %hi(0x200a800), %g1
200aafc: 82 10 61 e8 or %g1, 0x1e8, %g1 ! 200a9e8 <IMFS_chown+0x2c>
200ab00: c2 00 40 19 ld [ %g1 + %i1 ], %g1
200ab04: 81 c0 40 00 jmp %g1
200ab08: 01 00 00 00 nop
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
200ab0c: 82 06 20 54 add %i0, 0x54, %g1
the_chain->permanent_null = NULL;
200ab10: 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);
200ab14: c2 26 20 50 st %g1, [ %i0 + 0x50 ]
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
200ab18: 82 06 20 50 add %i0, 0x50, %g1
200ab1c: 10 80 00 1b b 200ab88 <IMFS_create_node+0xdc>
200ab20: 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;
200ab24: 10 80 00 05 b 200ab38 <IMFS_create_node+0x8c>
200ab28: 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;
200ab2c: 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;
200ab30: c2 07 00 00 ld [ %i4 ], %g1
node->info.device.minor = info->device.minor;
200ab34: c4 26 20 54 st %g2, [ %i0 + 0x54 ]
break;
200ab38: 10 80 00 14 b 200ab88 <IMFS_create_node+0xdc>
200ab3c: c2 26 20 50 st %g1, [ %i0 + 0x50 ]
case IMFS_LINEAR_FILE:
node->info.linearfile.size = 0;
200ab40: c0 26 20 50 clr [ %i0 + 0x50 ] <== NOT EXECUTED
200ab44: c0 26 20 54 clr [ %i0 + 0x54 ] <== NOT EXECUTED
node->info.linearfile.direct = 0;
200ab48: c0 26 20 58 clr [ %i0 + 0x58 ] <== NOT EXECUTED
case IMFS_MEMORY_FILE:
node->info.file.size = 0;
200ab4c: c0 26 20 50 clr [ %i0 + 0x50 ]
200ab50: c0 26 20 54 clr [ %i0 + 0x54 ]
node->info.file.indirect = 0;
200ab54: c0 26 20 58 clr [ %i0 + 0x58 ]
node->info.file.doubly_indirect = 0;
200ab58: c0 26 20 5c clr [ %i0 + 0x5c ]
node->info.file.triply_indirect = 0;
break;
200ab5c: 10 80 00 0b b 200ab88 <IMFS_create_node+0xdc>
200ab60: c0 26 20 60 clr [ %i0 + 0x60 ]
case IMFS_FIFO:
node->info.fifo.pipe = NULL;
break;
200ab64: 10 80 00 09 b 200ab88 <IMFS_create_node+0xdc>
200ab68: c0 26 20 50 clr [ %i0 + 0x50 ]
default:
assert(0);
200ab6c: 15 00 80 6c sethi %hi(0x201b000), %o2 <== NOT EXECUTED
200ab70: 17 00 80 6c sethi %hi(0x201b000), %o3 <== NOT EXECUTED
200ab74: 90 12 22 68 or %o0, 0x268, %o0 <== NOT EXECUTED
200ab78: 94 12 a2 c0 or %o2, 0x2c0, %o2 <== NOT EXECUTED
200ab7c: 96 12 e2 b8 or %o3, 0x2b8, %o3 <== NOT EXECUTED
200ab80: 40 00 03 f5 call 200bb54 <__assert_func> <== NOT EXECUTED
200ab84: 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;
200ab88: 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;
200ab8c: d0 04 00 00 ld [ %l0 ], %o0
fs_info = parent_loc->mt_entry->fs_info;
200ab90: c4 00 60 34 ld [ %g1 + 0x34 ], %g2
node->Parent = parent;
200ab94: d0 26 20 08 st %o0, [ %i0 + 8 ]
node->st_ino = ++fs_info->ino_count;
200ab98: c2 00 a0 04 ld [ %g2 + 4 ], %g1
200ab9c: 90 02 20 50 add %o0, 0x50, %o0
200aba0: 82 00 60 01 inc %g1
200aba4: c2 20 a0 04 st %g1, [ %g2 + 4 ]
200aba8: c2 26 20 38 st %g1, [ %i0 + 0x38 ]
200abac: 7f ff f0 3f call 2006ca8 <_Chain_Append>
200abb0: 92 10 00 18 mov %i0, %o1
rtems_chain_append( &parent->info.directory.Entries, &node->Node );
return node;
}
200abb4: 81 c7 e0 08 ret
200abb8: 81 e8 00 00 restore
0200aa6c <IMFS_create_root_node>:
IMFS_jnode_t *IMFS_create_root_node(void)
{
200aa6c: 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) );
200aa70: 90 10 20 01 mov 1, %o0
200aa74: 13 00 80 6c sethi %hi(0x201b000), %o1
200aa78: 15 00 00 10 sethi %hi(0x4000), %o2
200aa7c: 92 12 62 60 or %o1, 0x260, %o1
200aa80: 7f ff ff e1 call 200aa04 <IMFS_allocate_node>
200aa84: 94 12 a1 ed or %o2, 0x1ed, %o2
if ( !node )
200aa88: 80 a2 20 00 cmp %o0, 0
200aa8c: 02 80 00 06 be 200aaa4 <IMFS_create_root_node+0x38> <== NEVER TAKEN
200aa90: 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;
200aa94: 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);
200aa98: c2 22 20 50 st %g1, [ %o0 + 0x50 ]
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
200aa9c: 82 02 20 50 add %o0, 0x50, %g1
200aaa0: 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;
}
200aaa4: 81 c7 e0 08 ret
200aaa8: 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 8e sethi %hi(0x2023800), %o0 <== NOT EXECUTED
200495c: 15 00 80 8f sethi %hi(0x2023c00), %o2 <== NOT EXECUTED
2004960: 17 00 80 8f sethi %hi(0x2023c00), %o3 <== NOT EXECUTED
2004964: 90 12 23 70 or %o0, 0x370, %o0 <== NOT EXECUTED
2004968: 94 12 a1 68 or %o2, 0x168, %o2 <== NOT EXECUTED
200496c: 96 12 e0 58 or %o3, 0x58, %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 8e sethi %hi(0x2023800), %o0 <== NOT EXECUTED
2004984: 15 00 80 8f sethi %hi(0x2023c00), %o2 <== NOT EXECUTED
2004988: 17 00 80 8f sethi %hi(0x2023c00), %o3 <== NOT EXECUTED
200498c: 90 12 23 70 or %o0, 0x370, %o0 <== NOT EXECUTED
2004990: 94 12 a1 68 or %o2, 0x168, %o2 <== NOT EXECUTED
2004994: 96 12 e0 68 or %o3, 0x68, %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 96 sethi %hi(0x2025800), %l4
20049b0: 11 00 80 8e sethi %hi(0x2023800), %o0 <== NOT EXECUTED
20049b4: 15 00 80 8f sethi %hi(0x2023c00), %o2 <== NOT EXECUTED
20049b8: 17 00 80 8f sethi %hi(0x2023c00), %o3 <== NOT EXECUTED
20049bc: 90 12 23 70 or %o0, 0x370, %o0 <== NOT EXECUTED
20049c0: 94 12 a1 68 or %o2, 0x168, %o2 <== NOT EXECUTED
20049c4: 96 12 e0 78 or %o3, 0x78, %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 8f sethi %hi(0x2023c00), %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 22 40 or %l4, 0x240, %l4
20049dc: a6 14 e0 a0 or %l3, 0xa0, %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 3c c5 call 2013d0c <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
0200ad98 <IMFS_eval_path>:
const char *pathname, /* IN */
size_t pathnamelen, /* IN */
int flags, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
200ad98: 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 ) ) {
200ad9c: 80 8e bf f8 btst -8, %i2
200ada0: 02 80 00 0a be 200adc8 <IMFS_eval_path+0x30> <== ALWAYS TAKEN
200ada4: a0 10 00 18 mov %i0, %l0
assert( 0 );
200ada8: 11 00 80 6c sethi %hi(0x201b000), %o0 <== NOT EXECUTED
200adac: 15 00 80 6c sethi %hi(0x201b000), %o2 <== NOT EXECUTED
200adb0: 17 00 80 6c sethi %hi(0x201b000), %o3 <== NOT EXECUTED
200adb4: 90 12 22 e8 or %o0, 0x2e8, %o0 <== NOT EXECUTED
200adb8: 94 12 a2 d8 or %o2, 0x2d8, %o2 <== NOT EXECUTED
200adbc: 96 12 e3 38 or %o3, 0x338, %o3 <== NOT EXECUTED
200adc0: 40 00 03 65 call 200bb54 <__assert_func> <== NOT EXECUTED
200adc4: 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 )
200adc8: 2b 00 80 70 sethi %hi(0x201c000), %l5
/*
* This was filled in by the caller and is valid in the
* mount table.
*/
node = pathloc->node_access;
200adcc: 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 )
200add0: aa 15 62 80 or %l5, 0x280, %l5
/*
* This was filled in by the caller and is valid in the
* mount table.
*/
node = pathloc->node_access;
200add4: a4 10 20 00 clr %l2
200add8: 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 );
200addc: 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) ) {
200ade0: 10 80 00 94 b 200b030 <IMFS_eval_path+0x298>
200ade4: a8 07 bf fc add %fp, -4, %l4
type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );
200ade8: 90 04 00 12 add %l0, %l2, %o0
200adec: 92 10 00 19 mov %i1, %o1
200adf0: 94 10 00 13 mov %l3, %o2
200adf4: 40 00 02 b4 call 200b8c4 <IMFS_get_token>
200adf8: 96 10 00 14 mov %l4, %o3
pathnamelen -= len;
i += len;
if ( !pathloc->node_access )
200adfc: 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 );
200ae00: ac 10 00 08 mov %o0, %l6
pathnamelen -= len;
i += len;
if ( !pathloc->node_access )
200ae04: 80 a0 60 00 cmp %g1, 0
200ae08: 02 80 00 52 be 200af50 <IMFS_eval_path+0x1b8> <== NEVER TAKEN
200ae0c: 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 )
200ae10: 80 a2 20 00 cmp %o0, 0
200ae14: 22 80 00 10 be,a 200ae54 <IMFS_eval_path+0xbc>
200ae18: a4 04 80 18 add %l2, %i0, %l2
if ( node->type == IMFS_DIRECTORY )
200ae1c: c2 04 60 4c ld [ %l1 + 0x4c ], %g1
200ae20: 80 a0 60 01 cmp %g1, 1
200ae24: 32 80 00 0c bne,a 200ae54 <IMFS_eval_path+0xbc>
200ae28: a4 04 80 18 add %l2, %i0, %l2
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
200ae2c: 90 10 00 1b mov %i3, %o0
200ae30: 7f ff ff 86 call 200ac48 <IMFS_evaluate_permission>
200ae34: 92 10 20 01 mov 1, %o1
200ae38: 80 a2 20 00 cmp %o0, 0
200ae3c: 32 80 00 06 bne,a 200ae54 <IMFS_eval_path+0xbc>
200ae40: a4 04 80 18 add %l2, %i0, %l2
rtems_set_errno_and_return_minus_one( EACCES );
200ae44: 40 00 11 b6 call 200f51c <__errno>
200ae48: b0 10 3f ff mov -1, %i0
200ae4c: 10 80 00 76 b 200b024 <IMFS_eval_path+0x28c>
200ae50: 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;
200ae54: 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 ) {
200ae58: 80 a5 a0 03 cmp %l6, 3
200ae5c: 02 80 00 1b be 200aec8 <IMFS_eval_path+0x130>
200ae60: e2 06 c0 00 ld [ %i3 ], %l1
200ae64: 80 a5 a0 04 cmp %l6, 4
200ae68: 02 80 00 6c be 200b018 <IMFS_eval_path+0x280>
200ae6c: 80 a5 a0 02 cmp %l6, 2
200ae70: 12 80 00 71 bne 200b034 <IMFS_eval_path+0x29c>
200ae74: 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 )
200ae78: c2 05 40 00 ld [ %l5 ], %g1
200ae7c: c2 00 60 18 ld [ %g1 + 0x18 ], %g1
200ae80: 80 a4 40 01 cmp %l1, %g1
200ae84: 02 bf ff da be 200adec <IMFS_eval_path+0x54>
200ae88: 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) {
200ae8c: d2 06 e0 10 ld [ %i3 + 0x10 ], %o1
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
200ae90: c2 02 60 1c ld [ %o1 + 0x1c ], %g1
200ae94: 80 a4 40 01 cmp %l1, %g1
200ae98: 32 80 00 04 bne,a 200aea8 <IMFS_eval_path+0x110>
200ae9c: 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;
200aea0: 10 80 00 71 b 200b064 <IMFS_eval_path+0x2cc>
200aea4: 92 02 60 08 add %o1, 8, %o1
return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),
pathnamelen+len,
flags,pathloc);
}
} else {
if ( !node->Parent )
200aea8: 80 a4 60 00 cmp %l1, 0
200aeac: 32 bf ff cf bne,a 200ade8 <IMFS_eval_path+0x50>
200aeb0: e2 26 c0 00 st %l1, [ %i3 ]
rtems_set_errno_and_return_minus_one( ENOENT );
200aeb4: 40 00 11 9a call 200f51c <__errno>
200aeb8: b0 10 3f ff mov -1, %i0
200aebc: ec 22 00 00 st %l6, [ %o0 ]
200aec0: 81 c7 e0 08 ret
200aec4: 81 e8 00 00 restore
case IMFS_NAME:
/*
* If we are at a link follow it.
*/
if ( node->type == IMFS_HARD_LINK ) {
200aec8: c2 04 60 4c ld [ %l1 + 0x4c ], %g1
200aecc: 80 a0 60 03 cmp %g1, 3
200aed0: 12 80 00 0a bne 200aef8 <IMFS_eval_path+0x160>
200aed4: 80 a0 60 04 cmp %g1, 4
IMFS_evaluate_hard_link( pathloc, 0 );
200aed8: 90 10 00 1b mov %i3, %o0
200aedc: 7f ff ff 6c call 200ac8c <IMFS_evaluate_hard_link>
200aee0: 92 10 20 00 clr %o1
node = pathloc->node_access;
200aee4: e2 06 c0 00 ld [ %i3 ], %l1
if ( !node )
200aee8: 80 a4 60 00 cmp %l1, 0
200aeec: 32 80 00 0d bne,a 200af20 <IMFS_eval_path+0x188> <== ALWAYS TAKEN
200aef0: c2 04 60 4c ld [ %l1 + 0x4c ], %g1
200aef4: 30 80 00 0e b,a 200af2c <IMFS_eval_path+0x194> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTDIR );
} else if ( node->type == IMFS_SYM_LINK ) {
200aef8: 32 80 00 0a bne,a 200af20 <IMFS_eval_path+0x188>
200aefc: c2 04 60 4c ld [ %l1 + 0x4c ], %g1
result = IMFS_evaluate_sym_link( pathloc, 0 );
200af00: 90 10 00 1b mov %i3, %o0
200af04: 7f ff ff 7a call 200acec <IMFS_evaluate_sym_link>
200af08: 92 10 20 00 clr %o1
node = pathloc->node_access;
200af0c: e2 06 c0 00 ld [ %i3 ], %l1
if ( result == -1 )
200af10: 80 a2 3f ff cmp %o0, -1
200af14: 02 bf ff eb be 200aec0 <IMFS_eval_path+0x128> <== NEVER TAKEN
200af18: b0 10 00 08 mov %o0, %i0
/*
* Only a directory can be decended into.
*/
if ( node->type != IMFS_DIRECTORY )
200af1c: c2 04 60 4c ld [ %l1 + 0x4c ], %g1
200af20: 80 a0 60 01 cmp %g1, 1
200af24: 22 80 00 06 be,a 200af3c <IMFS_eval_path+0x1a4>
200af28: 90 10 00 11 mov %l1, %o0
rtems_set_errno_and_return_minus_one( ENOTDIR );
200af2c: 40 00 11 7c call 200f51c <__errno>
200af30: b0 10 3f ff mov -1, %i0
200af34: 10 80 00 3c b 200b024 <IMFS_eval_path+0x28c>
200af38: 82 10 20 14 mov 0x14, %g1
/*
* Find the token name in the current node.
*/
node = IMFS_find_match_in_dir( node, token );
200af3c: 40 00 02 37 call 200b818 <IMFS_find_match_in_dir>
200af40: 92 10 00 13 mov %l3, %o1
if ( !node )
200af44: a2 92 20 00 orcc %o0, 0, %l1
200af48: 32 80 00 06 bne,a 200af60 <IMFS_eval_path+0x1c8>
200af4c: c2 04 60 4c ld [ %l1 + 0x4c ], %g1
rtems_set_errno_and_return_minus_one( ENOENT );
200af50: 40 00 11 73 call 200f51c <__errno>
200af54: b0 10 3f ff mov -1, %i0
200af58: 10 80 00 33 b 200b024 <IMFS_eval_path+0x28c>
200af5c: 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 )) {
200af60: 80 a0 60 01 cmp %g1, 1
200af64: 32 bf ff a1 bne,a 200ade8 <IMFS_eval_path+0x50>
200af68: e2 26 c0 00 st %l1, [ %i3 ]
200af6c: c2 04 60 5c ld [ %l1 + 0x5c ], %g1
200af70: 80 a0 60 00 cmp %g1, 0
200af74: 12 80 00 06 bne 200af8c <IMFS_eval_path+0x1f4>
200af78: b0 04 00 12 add %l0, %l2, %i0
/*
* Set the node access to the point we have found.
*/
pathloc->node_access = node;
200af7c: 10 bf ff 9b b 200ade8 <IMFS_eval_path+0x50>
200af80: 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);
200af84: a4 04 a0 01 inc %l2
--(*len);
200af88: 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 ) {
200af8c: d0 4e 00 00 ldsb [ %i0 ], %o0
200af90: 7f ff e2 d0 call 2003ad0 <rtems_filesystem_is_separator>
200af94: ac 10 00 18 mov %i0, %l6
200af98: 80 a2 20 00 cmp %o0, 0
200af9c: 22 80 00 09 be,a 200afc0 <IMFS_eval_path+0x228>
200afa0: c2 4d 80 00 ldsb [ %l6 ], %g1
200afa4: c2 4e 00 00 ldsb [ %i0 ], %g1
200afa8: 80 a0 60 00 cmp %g1, 0
200afac: 02 80 00 04 be 200afbc <IMFS_eval_path+0x224>
200afb0: 80 a6 60 00 cmp %i1, 0
200afb4: 12 bf ff f4 bne 200af84 <IMFS_eval_path+0x1ec> <== ALWAYS TAKEN
200afb8: 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] != '.')) {
200afbc: c2 4d 80 00 ldsb [ %l6 ], %g1
200afc0: 80 a0 60 2e cmp %g1, 0x2e
200afc4: 32 80 00 08 bne,a 200afe4 <IMFS_eval_path+0x24c>
200afc8: d2 04 60 5c ld [ %l1 + 0x5c ], %o1
200afcc: 82 04 00 12 add %l0, %l2, %g1
200afd0: c2 48 60 01 ldsb [ %g1 + 1 ], %g1
200afd4: 80 a0 60 2e cmp %g1, 0x2e
200afd8: 22 80 00 0c be,a 200b008 <IMFS_eval_path+0x270>
200afdc: e2 04 60 08 ld [ %l1 + 8 ], %l1
*pathloc = node->info.directory.mt_fs->mt_fs_root;
200afe0: d2 04 60 5c ld [ %l1 + 0x5c ], %o1
200afe4: 94 10 20 14 mov 0x14, %o2
200afe8: 92 02 60 1c add %o1, 0x1c, %o1
200afec: 40 00 13 88 call 200fe0c <memcpy>
200aff0: 90 10 00 1b mov %i3, %o0
return (*pathloc->ops->evalpath_h)( &pathname[i],
200aff4: c2 06 e0 0c ld [ %i3 + 0xc ], %g1
200aff8: 90 10 00 16 mov %l6, %o0
200affc: c2 00 40 00 ld [ %g1 ], %g1
200b000: 10 80 00 22 b 200b088 <IMFS_eval_path+0x2f0>
200b004: 92 10 00 19 mov %i1, %o1
pathnamelen,
flags, pathloc );
}
i += 2;
200b008: a4 04 a0 02 add %l2, 2, %l2
pathnamelen -= 2;
200b00c: b2 06 7f fe add %i1, -2, %i1
/*
* Set the node access to the point we have found.
*/
pathloc->node_access = node;
200b010: 10 bf ff 76 b 200ade8 <IMFS_eval_path+0x50>
200b014: 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 );
200b018: 40 00 11 41 call 200f51c <__errno>
200b01c: b0 10 3f ff mov -1, %i0
200b020: 82 10 20 5b mov 0x5b, %g1
200b024: c2 22 00 00 st %g1, [ %o0 ]
200b028: 81 c7 e0 08 ret
200b02c: 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) ) {
200b030: 80 a5 a0 04 cmp %l6, 4
200b034: 02 80 00 04 be 200b044 <IMFS_eval_path+0x2ac> <== NEVER TAKEN
200b038: 80 a5 a0 00 cmp %l6, 0
200b03c: 12 bf ff 6c bne 200adec <IMFS_eval_path+0x54>
200b040: 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 ) {
200b044: c2 04 60 4c ld [ %l1 + 0x4c ], %g1
200b048: 80 a0 60 01 cmp %g1, 1
200b04c: 12 80 00 14 bne 200b09c <IMFS_eval_path+0x304>
200b050: 01 00 00 00 nop
if ( node->info.directory.mt_fs != NULL ) {
200b054: d2 04 60 5c ld [ %l1 + 0x5c ], %o1
200b058: 80 a2 60 00 cmp %o1, 0
200b05c: 02 80 00 10 be 200b09c <IMFS_eval_path+0x304> <== ALWAYS TAKEN
200b060: 92 02 60 1c add %o1, 0x1c, %o1
*pathloc = node->info.directory.mt_fs->mt_fs_root;
200b064: 94 10 20 14 mov 0x14, %o2
200b068: 40 00 13 69 call 200fe0c <memcpy>
200b06c: 90 10 00 1b mov %i3, %o0
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
200b070: c2 06 e0 0c ld [ %i3 + 0xc ], %g1
200b074: d0 07 bf fc ld [ %fp + -4 ], %o0
200b078: c2 00 40 00 ld [ %g1 ], %g1
200b07c: 92 06 40 08 add %i1, %o0, %o1
200b080: 90 24 80 08 sub %l2, %o0, %o0
200b084: 90 04 00 08 add %l0, %o0, %o0
200b088: 94 10 00 1a mov %i2, %o2
200b08c: 9f c0 40 00 call %g1
200b090: 96 10 00 1b mov %i3, %o3
200b094: 81 c7 e0 08 ret
200b098: 91 e8 00 08 restore %g0, %o0, %o0
flags, pathloc );
} else {
result = IMFS_Set_handlers( pathloc );
}
} else {
result = IMFS_Set_handlers( pathloc );
200b09c: 7f ff fe cf call 200abd8 <IMFS_Set_handlers>
200b0a0: 90 10 00 1b mov %i3, %o0
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( pathloc, flags ) )
200b0a4: 92 10 00 1a mov %i2, %o1
flags, pathloc );
} else {
result = IMFS_Set_handlers( pathloc );
}
} else {
result = IMFS_Set_handlers( pathloc );
200b0a8: b0 10 00 08 mov %o0, %i0
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( pathloc, flags ) )
200b0ac: 7f ff fe e7 call 200ac48 <IMFS_evaluate_permission>
200b0b0: 90 10 00 1b mov %i3, %o0
200b0b4: 80 a2 20 00 cmp %o0, 0
200b0b8: 12 80 00 06 bne 200b0d0 <IMFS_eval_path+0x338>
200b0bc: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EACCES );
200b0c0: 40 00 11 17 call 200f51c <__errno>
200b0c4: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff>
200b0c8: 82 10 20 0d mov 0xd, %g1
200b0cc: c2 22 00 00 st %g1, [ %o0 ]
return result;
}
200b0d0: 81 c7 e0 08 ret
200b0d4: 81 e8 00 00 restore
0200b194 <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 */
)
{
200b194: 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;
200b198: e0 06 40 00 ld [ %i1 ], %l0
/*
* Get the path length.
*/
pathlen = strlen( path );
200b19c: 90 10 00 18 mov %i0, %o0
200b1a0: 40 00 14 ac call 2010450 <strlen>
200b1a4: 2b 00 80 70 sethi %hi(0x201c000), %l5
int IMFS_evaluate_for_make(
const char *path, /* IN */
rtems_filesystem_location_info_t *pathloc, /* IN/OUT */
const char **name /* OUT */
)
{
200b1a8: a2 10 00 18 mov %i0, %l1
node = pathloc->node_access;
/*
* Get the path length.
*/
pathlen = strlen( path );
200b1ac: 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 );
200b1b0: a8 07 bf d8 add %fp, -40, %l4
200b1b4: ac 07 bf fc add %fp, -4, %l6
node = pathloc->node_access;
/*
* Get the path length.
*/
pathlen = strlen( path );
200b1b8: 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 )
200b1bc: aa 15 62 80 or %l5, 0x280, %l5
* Evaluate all tokens until we are done or an error occurs.
*/
while( !done ) {
type = IMFS_get_token( &path[i], pathlen, token, &len );
200b1c0: 90 04 40 12 add %l1, %l2, %o0
200b1c4: 92 10 00 13 mov %l3, %o1
200b1c8: 94 10 00 14 mov %l4, %o2
200b1cc: 40 00 01 be call 200b8c4 <IMFS_get_token>
200b1d0: 96 10 00 16 mov %l6, %o3
pathlen -= len;
i += len;
if ( !pathloc->node_access )
200b1d4: 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 );
200b1d8: ae 10 00 08 mov %o0, %l7
pathlen -= len;
i += len;
if ( !pathloc->node_access )
200b1dc: 80 a0 60 00 cmp %g1, 0
200b1e0: 02 80 00 a4 be 200b470 <IMFS_evaluate_for_make+0x2dc> <== NEVER TAKEN
200b1e4: f0 07 bf fc ld [ %fp + -4 ], %i0
/*
* I cannot move out of this directory without execute permission.
*/
if ( type != IMFS_NO_MORE_PATH )
200b1e8: 80 a2 20 00 cmp %o0, 0
200b1ec: 22 80 00 10 be,a 200b22c <IMFS_evaluate_for_make+0x98>
200b1f0: a4 04 80 18 add %l2, %i0, %l2
if ( node->type == IMFS_DIRECTORY )
200b1f4: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
200b1f8: 80 a0 60 01 cmp %g1, 1
200b1fc: 32 80 00 0c bne,a 200b22c <IMFS_evaluate_for_make+0x98>
200b200: a4 04 80 18 add %l2, %i0, %l2
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
200b204: 90 10 00 19 mov %i1, %o0
200b208: 7f ff fe 90 call 200ac48 <IMFS_evaluate_permission>
200b20c: 92 10 20 01 mov 1, %o1
200b210: 80 a2 20 00 cmp %o0, 0
200b214: 32 80 00 06 bne,a 200b22c <IMFS_evaluate_for_make+0x98>
200b218: a4 04 80 18 add %l2, %i0, %l2
rtems_set_errno_and_return_minus_one( EACCES );
200b21c: 40 00 10 c0 call 200f51c <__errno>
200b220: b0 10 3f ff mov -1, %i0
200b224: 10 80 00 a5 b 200b4b8 <IMFS_evaluate_for_make+0x324>
200b228: 82 10 20 0d mov 0xd, %g1
*/
while( !done ) {
type = IMFS_get_token( &path[i], pathlen, token, &len );
pathlen -= len;
200b22c: 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 ) {
200b230: 80 a5 e0 02 cmp %l7, 2
200b234: 02 80 00 0f be 200b270 <IMFS_evaluate_for_make+0xdc>
200b238: e0 06 40 00 ld [ %i1 ], %l0
200b23c: 80 a5 e0 02 cmp %l7, 2
200b240: 18 80 00 07 bgu 200b25c <IMFS_evaluate_for_make+0xc8>
200b244: 80 a5 e0 03 cmp %l7, 3
200b248: 80 a5 e0 00 cmp %l7, 0
200b24c: 02 80 00 77 be 200b428 <IMFS_evaluate_for_make+0x294>
200b250: 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 );
200b254: 10 bf ff dc b 200b1c4 <IMFS_evaluate_for_make+0x30>
200b258: 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 ) {
200b25c: 02 80 00 21 be 200b2e0 <IMFS_evaluate_for_make+0x14c>
200b260: 80 a5 e0 04 cmp %l7, 4
200b264: 32 bf ff d8 bne,a 200b1c4 <IMFS_evaluate_for_make+0x30> <== NEVER TAKEN
200b268: 90 04 40 12 add %l1, %l2, %o0 <== NOT EXECUTED
200b26c: 30 80 00 73 b,a 200b438 <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 )
200b270: c2 05 40 00 ld [ %l5 ], %g1
200b274: c2 00 60 18 ld [ %g1 + 0x18 ], %g1
200b278: 80 a4 00 01 cmp %l0, %g1
200b27c: 02 bf ff d2 be 200b1c4 <IMFS_evaluate_for_make+0x30>
200b280: 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){
200b284: d2 06 60 10 ld [ %i1 + 0x10 ], %o1
200b288: c2 02 60 1c ld [ %o1 + 0x1c ], %g1
200b28c: 80 a4 00 01 cmp %l0, %g1
200b290: 32 80 00 0c bne,a 200b2c0 <IMFS_evaluate_for_make+0x12c>
200b294: 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;
200b298: 92 02 60 08 add %o1, 8, %o1
200b29c: 94 10 20 14 mov 0x14, %o2
200b2a0: 40 00 12 db call 200fe0c <memcpy>
200b2a4: 90 10 00 19 mov %i1, %o0
return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
200b2a8: c2 06 60 0c ld [ %i1 + 0xc ], %g1
200b2ac: c4 07 bf fc ld [ %fp + -4 ], %g2
200b2b0: c2 00 60 04 ld [ %g1 + 4 ], %g1
200b2b4: a4 24 80 02 sub %l2, %g2, %l2
200b2b8: 10 80 00 53 b 200b404 <IMFS_evaluate_for_make+0x270>
200b2bc: 90 04 40 12 add %l1, %l2, %o0
}
} else {
if ( !node->Parent )
200b2c0: 80 a4 20 00 cmp %l0, 0
200b2c4: 32 bf ff bf bne,a 200b1c0 <IMFS_evaluate_for_make+0x2c>
200b2c8: e0 26 40 00 st %l0, [ %i1 ]
rtems_set_errno_and_return_minus_one( ENOENT );
200b2cc: 40 00 10 94 call 200f51c <__errno>
200b2d0: b0 10 3f ff mov -1, %i0
200b2d4: ee 22 00 00 st %l7, [ %o0 ]
200b2d8: 81 c7 e0 08 ret
200b2dc: 81 e8 00 00 restore
case IMFS_NAME:
/*
* If we are at a link follow it.
*/
if ( node->type == IMFS_HARD_LINK ) {
200b2e0: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
200b2e4: 80 a0 60 03 cmp %g1, 3
200b2e8: 12 80 00 0a bne 200b310 <IMFS_evaluate_for_make+0x17c>
200b2ec: 80 a0 60 04 cmp %g1, 4
result = IMFS_evaluate_link( pathloc, 0 );
200b2f0: 90 10 00 19 mov %i1, %o0
200b2f4: 7f ff ff 79 call 200b0d8 <IMFS_evaluate_link>
200b2f8: 92 10 20 00 clr %o1
if ( result == -1 )
200b2fc: 80 a2 3f ff cmp %o0, -1
200b300: 12 80 00 0c bne 200b330 <IMFS_evaluate_for_make+0x19c> <== ALWAYS TAKEN
200b304: b0 10 00 08 mov %o0, %i0
200b308: 81 c7 e0 08 ret <== NOT EXECUTED
200b30c: 81 e8 00 00 restore <== NOT EXECUTED
return -1;
} else if ( node->type == IMFS_SYM_LINK ) {
200b310: 32 80 00 09 bne,a 200b334 <IMFS_evaluate_for_make+0x1a0>
200b314: d0 06 40 00 ld [ %i1 ], %o0
result = IMFS_evaluate_link( pathloc, 0 );
200b318: 90 10 00 19 mov %i1, %o0
200b31c: 7f ff ff 6f call 200b0d8 <IMFS_evaluate_link>
200b320: 92 10 20 00 clr %o1
if ( result == -1 )
200b324: 80 a2 3f ff cmp %o0, -1
200b328: 02 bf ff ec be 200b2d8 <IMFS_evaluate_for_make+0x144> <== NEVER TAKEN
200b32c: b0 10 00 08 mov %o0, %i0
return -1;
}
node = pathloc->node_access;
200b330: d0 06 40 00 ld [ %i1 ], %o0
if ( !node )
200b334: 80 a2 20 00 cmp %o0, 0
200b338: 02 80 00 5d be 200b4ac <IMFS_evaluate_for_make+0x318> <== NEVER TAKEN
200b33c: 01 00 00 00 nop
/*
* Only a directory can be decended into.
*/
if ( node->type != IMFS_DIRECTORY )
200b340: c2 02 20 4c ld [ %o0 + 0x4c ], %g1
200b344: 80 a0 60 01 cmp %g1, 1
200b348: 12 80 00 59 bne 200b4ac <IMFS_evaluate_for_make+0x318>
200b34c: 01 00 00 00 nop
/*
* Find the token name in the present location.
*/
node = IMFS_find_match_in_dir( node, token );
200b350: 40 00 01 32 call 200b818 <IMFS_find_match_in_dir>
200b354: 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 )
200b358: a0 92 20 00 orcc %o0, 0, %l0
200b35c: 02 80 00 3b be 200b448 <IMFS_evaluate_for_make+0x2b4>
200b360: c2 07 bf fc ld [ %fp + -4 ], %g1
done = true;
else {
if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
200b364: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
200b368: 80 a0 60 01 cmp %g1, 1
200b36c: 32 bf ff 95 bne,a 200b1c0 <IMFS_evaluate_for_make+0x2c>
200b370: e0 26 40 00 st %l0, [ %i1 ]
200b374: c2 04 20 5c ld [ %l0 + 0x5c ], %g1
200b378: 80 a0 60 00 cmp %g1, 0
200b37c: 12 80 00 05 bne 200b390 <IMFS_evaluate_for_make+0x1fc>
200b380: b0 04 40 12 add %l1, %l2, %i0
i += 2;
pathlen -= 2;
node = node->Parent;
}
pathloc->node_access = node;
200b384: 10 bf ff 8f b 200b1c0 <IMFS_evaluate_for_make+0x2c>
200b388: e0 26 40 00 st %l0, [ %i1 ]
int *index /* IN/OUT */
)
{
while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) {
++(*index);
--(*len);
200b38c: 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 ) {
200b390: d0 4e 00 00 ldsb [ %i0 ], %o0
200b394: 7f ff e1 cf call 2003ad0 <rtems_filesystem_is_separator>
200b398: ae 10 00 18 mov %i0, %l7
200b39c: 80 a2 20 00 cmp %o0, 0
200b3a0: 22 80 00 0a be,a 200b3c8 <IMFS_evaluate_for_make+0x234>
200b3a4: c2 4d c0 00 ldsb [ %l7 ], %g1
200b3a8: c2 4e 00 00 ldsb [ %i0 ], %g1
200b3ac: 80 a0 60 00 cmp %g1, 0
200b3b0: 02 80 00 05 be 200b3c4 <IMFS_evaluate_for_make+0x230> <== NEVER TAKEN
200b3b4: b0 06 20 01 inc %i0
200b3b8: 80 a4 e0 00 cmp %l3, 0
200b3bc: 32 bf ff f4 bne,a 200b38c <IMFS_evaluate_for_make+0x1f8> <== ALWAYS TAKEN
200b3c0: 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] != '.')) {
200b3c4: c2 4d c0 00 ldsb [ %l7 ], %g1 <== NOT EXECUTED
200b3c8: 80 a0 60 2e cmp %g1, 0x2e
200b3cc: 12 80 00 06 bne 200b3e4 <IMFS_evaluate_for_make+0x250>
200b3d0: 82 04 40 12 add %l1, %l2, %g1
200b3d4: c2 48 60 01 ldsb [ %g1 + 1 ], %g1
200b3d8: 80 a0 60 2e cmp %g1, 0x2e
200b3dc: 22 80 00 0f be,a 200b418 <IMFS_evaluate_for_make+0x284> <== ALWAYS TAKEN
200b3e0: e0 04 20 08 ld [ %l0 + 8 ], %l0
*pathloc = node->info.directory.mt_fs->mt_fs_root;
200b3e4: d2 04 20 5c ld [ %l0 + 0x5c ], %o1
200b3e8: 94 10 20 14 mov 0x14, %o2
200b3ec: 92 02 60 1c add %o1, 0x1c, %o1
200b3f0: 40 00 12 87 call 200fe0c <memcpy>
200b3f4: 90 10 00 19 mov %i1, %o0
return (*pathloc->ops->evalformake_h)( &path[i],
200b3f8: c2 06 60 0c ld [ %i1 + 0xc ], %g1
200b3fc: 90 10 00 17 mov %l7, %o0
200b400: c2 00 60 04 ld [ %g1 + 4 ], %g1
200b404: 92 10 00 19 mov %i1, %o1
200b408: 9f c0 40 00 call %g1
200b40c: 94 10 00 1a mov %i2, %o2
200b410: 81 c7 e0 08 ret
200b414: 91 e8 00 08 restore %g0, %o0, %o0
pathloc,
name );
}
i += 2;
200b418: a4 04 a0 02 add %l2, 2, %l2
pathlen -= 2;
200b41c: a6 04 ff fe add %l3, -2, %l3
node = node->Parent;
}
pathloc->node_access = node;
200b420: 10 bf ff 68 b 200b1c0 <IMFS_evaluate_for_make+0x2c>
200b424: e0 26 40 00 st %l0, [ %i1 ]
}
break;
case IMFS_NO_MORE_PATH:
rtems_set_errno_and_return_minus_one( EEXIST );
200b428: 40 00 10 3d call 200f51c <__errno>
200b42c: b0 10 3f ff mov -1, %i0
200b430: 10 80 00 22 b 200b4b8 <IMFS_evaluate_for_make+0x324>
200b434: 82 10 20 11 mov 0x11, %g1
break;
case IMFS_INVALID_TOKEN:
rtems_set_errno_and_return_minus_one( ENAMETOOLONG );
200b438: 40 00 10 39 call 200f51c <__errno>
200b43c: b0 10 3f ff mov -1, %i0
200b440: 10 80 00 1e b 200b4b8 <IMFS_evaluate_for_make+0x324>
200b444: 82 10 20 5b mov 0x5b, %g1
case IMFS_CURRENT_DIR:
break;
}
}
*name = &path[ i - len ];
200b448: a0 04 40 12 add %l1, %l2, %l0
200b44c: a4 24 80 01 sub %l2, %g1, %l2
200b450: 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++) {
200b454: 10 80 00 0b b 200b480 <IMFS_evaluate_for_make+0x2ec>
200b458: e2 26 80 00 st %l1, [ %i2 ]
if ( !IMFS_is_separator( path[ i ] ) )
200b45c: 7f ff e1 9d call 2003ad0 <rtems_filesystem_is_separator>
200b460: 01 00 00 00 nop
200b464: 80 a2 20 00 cmp %o0, 0
200b468: 32 80 00 07 bne,a 200b484 <IMFS_evaluate_for_make+0x2f0>
200b46c: d0 4c 00 00 ldsb [ %l0 ], %o0
rtems_set_errno_and_return_minus_one( ENOENT );
200b470: 40 00 10 2b call 200f51c <__errno>
200b474: b0 10 3f ff mov -1, %i0
200b478: 10 80 00 10 b 200b4b8 <IMFS_evaluate_for_make+0x324>
200b47c: 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++) {
200b480: d0 4c 00 00 ldsb [ %l0 ], %o0
200b484: 80 a2 20 00 cmp %o0, 0
200b488: 12 bf ff f5 bne 200b45c <IMFS_evaluate_for_make+0x2c8>
200b48c: a0 04 20 01 inc %l0
/*
* Verify we can execute and write to this directory.
*/
result = IMFS_Set_handlers( pathloc );
200b490: 7f ff fd d2 call 200abd8 <IMFS_Set_handlers>
200b494: 90 10 00 19 mov %i1, %o0
/*
* The returned node must be a directory
*/
node = pathloc->node_access;
200b498: c2 06 40 00 ld [ %i1 ], %g1
200b49c: c2 00 60 4c ld [ %g1 + 0x4c ], %g1
200b4a0: 80 a0 60 01 cmp %g1, 1
200b4a4: 02 80 00 08 be 200b4c4 <IMFS_evaluate_for_make+0x330> <== ALWAYS TAKEN
200b4a8: b0 10 00 08 mov %o0, %i0
if ( node->type != IMFS_DIRECTORY )
rtems_set_errno_and_return_minus_one( ENOTDIR );
200b4ac: 40 00 10 1c call 200f51c <__errno>
200b4b0: b0 10 3f ff mov -1, %i0
200b4b4: 82 10 20 14 mov 0x14, %g1
200b4b8: c2 22 00 00 st %g1, [ %o0 ]
200b4bc: 81 c7 e0 08 ret
200b4c0: 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 ) )
200b4c4: 90 10 00 19 mov %i1, %o0
200b4c8: 7f ff fd e0 call 200ac48 <IMFS_evaluate_permission>
200b4cc: 92 10 20 03 mov 3, %o1
200b4d0: 80 a2 20 00 cmp %o0, 0
200b4d4: 12 80 00 06 bne 200b4ec <IMFS_evaluate_for_make+0x358>
200b4d8: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EACCES );
200b4dc: 40 00 10 10 call 200f51c <__errno>
200b4e0: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff>
200b4e4: 82 10 20 0d mov 0xd, %g1
200b4e8: c2 22 00 00 st %g1, [ %o0 ]
return result;
}
200b4ec: 81 c7 e0 08 ret
200b4f0: 81 e8 00 00 restore
0200ac8c <IMFS_evaluate_hard_link>:
int IMFS_evaluate_hard_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
200ac8c: 9d e3 bf a0 save %sp, -96, %sp
IMFS_jnode_t *jnode = node->node_access;
200ac90: c2 06 00 00 ld [ %i0 ], %g1
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_HARD_LINK )
200ac94: c4 00 60 4c ld [ %g1 + 0x4c ], %g2
200ac98: 80 a0 a0 03 cmp %g2, 3
200ac9c: 22 80 00 04 be,a 200acac <IMFS_evaluate_hard_link+0x20> <== ALWAYS TAKEN
200aca0: c2 00 60 50 ld [ %g1 + 0x50 ], %g1
rtems_fatal_error_occurred (0xABCD0000);
200aca4: 7f ff ef 41 call 20069a8 <rtems_fatal_error_occurred> <== NOT EXECUTED
200aca8: 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 );
200acac: 90 10 00 18 mov %i0, %o0
200acb0: 7f ff ff ca call 200abd8 <IMFS_Set_handlers>
200acb4: c2 26 00 00 st %g1, [ %i0 ]
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( node, flags ) )
200acb8: 90 10 00 18 mov %i0, %o0
200acbc: 92 10 00 19 mov %i1, %o1
200acc0: 7f ff ff e2 call 200ac48 <IMFS_evaluate_permission>
200acc4: b0 10 20 00 clr %i0
200acc8: 80 a2 20 00 cmp %o0, 0
200accc: 12 80 00 06 bne 200ace4 <IMFS_evaluate_hard_link+0x58> <== ALWAYS TAKEN
200acd0: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EACCES );
200acd4: 40 00 12 12 call 200f51c <__errno> <== NOT EXECUTED
200acd8: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
200acdc: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED
200ace0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return result;
}
200ace4: 81 c7 e0 08 ret
200ace8: 81 e8 00 00 restore
0200ac48 <IMFS_evaluate_permission>:
int IMFS_evaluate_permission(
rtems_filesystem_location_info_t *node,
int flags
)
{
200ac48: 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 ) )
200ac4c: 80 8e 7f f8 btst -8, %i1
200ac50: 22 80 00 08 be,a 200ac70 <IMFS_evaluate_permission+0x28> <== ALWAYS TAKEN
200ac54: c2 06 00 00 ld [ %i0 ], %g1
rtems_set_errno_and_return_minus_one( EPERM );
200ac58: 40 00 12 31 call 200f51c <__errno> <== NOT EXECUTED
200ac5c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200ac60: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
200ac64: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200ac68: 81 c7 e0 08 ret <== NOT EXECUTED
200ac6c: 81 e8 00 00 restore <== 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 )
200ac70: b3 2e 60 06 sll %i1, 6, %i1
200ac74: c2 00 60 30 ld [ %g1 + 0x30 ], %g1
200ac78: b2 2e 40 01 andn %i1, %g1, %i1
200ac7c: 80 a0 00 19 cmp %g0, %i1
200ac80: b0 60 3f ff subx %g0, -1, %i0
return 1;
return 0;
}
200ac84: 81 c7 e0 08 ret
200ac88: 81 e8 00 00 restore
0200acec <IMFS_evaluate_sym_link>:
int IMFS_evaluate_sym_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
200acec: 9d e3 bf 98 save %sp, -104, %sp
IMFS_jnode_t *jnode = node->node_access;
200acf0: e2 06 00 00 ld [ %i0 ], %l1
int IMFS_evaluate_sym_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
200acf4: a0 10 00 18 mov %i0, %l0
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_SYM_LINK )
200acf8: c2 04 60 4c ld [ %l1 + 0x4c ], %g1
200acfc: 80 a0 60 04 cmp %g1, 4
200ad00: 12 80 00 07 bne 200ad1c <IMFS_evaluate_sym_link+0x30> <== NEVER TAKEN
200ad04: 11 2a f3 40 sethi %hi(0xabcd0000), %o0
rtems_fatal_error_occurred (0xABCD0000);
if ( !jnode->Parent )
200ad08: c2 04 60 08 ld [ %l1 + 8 ], %g1
200ad0c: 80 a0 60 00 cmp %g1, 0
200ad10: 32 80 00 05 bne,a 200ad24 <IMFS_evaluate_sym_link+0x38> <== ALWAYS TAKEN
200ad14: c2 26 00 00 st %g1, [ %i0 ]
rtems_fatal_error_occurred( 0xBAD00000 );
200ad18: 11 2e b4 00 sethi %hi(0xbad00000), %o0 <== NOT EXECUTED
200ad1c: 7f ff ef 23 call 20069a8 <rtems_fatal_error_occurred> <== NOT EXECUTED
200ad20: 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(
200ad24: d0 04 60 50 ld [ %l1 + 0x50 ], %o0
200ad28: 94 10 00 18 mov %i0, %o2
200ad2c: 40 00 05 5d call 200c2a0 <rtems_filesystem_get_sym_start_loc>
200ad30: 92 07 bf fc add %fp, -4, %o1
/*
* Use eval path to evaluate the path of the symbolic link.
*/
result = IMFS_eval_path(
200ad34: c2 07 bf fc ld [ %fp + -4 ], %g1
200ad38: e2 04 60 50 ld [ %l1 + 0x50 ], %l1
200ad3c: a2 04 40 01 add %l1, %g1, %l1
200ad40: 40 00 15 c4 call 2010450 <strlen>
200ad44: 90 10 00 11 mov %l1, %o0
200ad48: 96 10 00 18 mov %i0, %o3
200ad4c: 92 10 00 08 mov %o0, %o1
200ad50: 94 10 00 19 mov %i1, %o2
200ad54: 40 00 00 11 call 200ad98 <IMFS_eval_path>
200ad58: 90 10 00 11 mov %l1, %o0
200ad5c: b0 10 00 08 mov %o0, %i0
strlen( &jnode->info.sym_link.name[i] ),
flags,
node
);
IMFS_Set_handlers( node );
200ad60: 7f ff ff 9e call 200abd8 <IMFS_Set_handlers>
200ad64: 90 10 00 10 mov %l0, %o0
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( node, flags ) )
200ad68: 90 10 00 10 mov %l0, %o0
200ad6c: 7f ff ff b7 call 200ac48 <IMFS_evaluate_permission>
200ad70: 92 10 00 19 mov %i1, %o1
200ad74: 80 a2 20 00 cmp %o0, 0
200ad78: 12 80 00 06 bne 200ad90 <IMFS_evaluate_sym_link+0xa4> <== ALWAYS TAKEN
200ad7c: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EACCES );
200ad80: 40 00 11 e7 call 200f51c <__errno> <== NOT EXECUTED
200ad84: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
200ad88: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED
200ad8c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return result;
}
200ad90: 81 c7 e0 08 ret
200ad94: 81 e8 00 00 restore
0200b69c <IMFS_fifo_close>:
}
int IMFS_fifo_close(
rtems_libio_t *iop
)
{
200b69c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
200b6a0: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED
int err = pipe_release(&JNODE2PIPE(jnode), iop);
200b6a4: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
}
int IMFS_fifo_close(
rtems_libio_t *iop
)
{
200b6a8: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
int err = pipe_release(&JNODE2PIPE(jnode), iop);
200b6ac: 7f ff fb 9b call 200a518 <pipe_release> <== NOT EXECUTED
200b6b0: 90 04 20 50 add %l0, 0x50, %o0 <== NOT EXECUTED
if (! err) {
200b6b4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
200b6b8: 12 80 00 12 bne 200b700 <IMFS_fifo_close+0x64> <== NOT EXECUTED
200b6bc: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
iop->flags &= ~LIBIO_FLAGS_OPEN;
200b6c0: 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)
200b6c4: 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;
200b6c8: 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)
200b6cc: 40 00 01 b5 call 200bda0 <rtems_libio_is_file_open> <== NOT EXECUTED
200b6d0: c2 24 60 18 st %g1, [ %l1 + 0x18 ] <== NOT EXECUTED
200b6d4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200b6d8: 12 80 00 10 bne 200b718 <IMFS_fifo_close+0x7c> <== NOT EXECUTED
200b6dc: 01 00 00 00 nop <== NOT EXECUTED
200b6e0: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 <== NOT EXECUTED
200b6e4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200b6e8: 12 80 00 0c bne 200b718 <IMFS_fifo_close+0x7c> <== NOT EXECUTED
200b6ec: 01 00 00 00 nop <== NOT EXECUTED
free(jnode);
200b6f0: 7f ff dd 03 call 2002afc <free> <== NOT EXECUTED
200b6f4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
200b6f8: 81 c7 e0 08 ret <== NOT EXECUTED
200b6fc: 81 e8 00 00 restore <== NOT EXECUTED
}
IMFS_FIFO_RETURN(err);
200b700: 16 80 00 06 bge 200b718 <IMFS_fifo_close+0x7c> <== NOT EXECUTED
200b704: 01 00 00 00 nop <== NOT EXECUTED
200b708: 40 00 0f 85 call 200f51c <__errno> <== NOT EXECUTED
200b70c: b0 20 00 18 neg %i0 <== NOT EXECUTED
200b710: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED
200b714: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
}
200b718: 81 c7 e0 08 ret <== NOT EXECUTED
200b71c: 81 e8 00 00 restore <== NOT EXECUTED
0200b54c <IMFS_fifo_ioctl>:
int IMFS_fifo_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
200b54c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int err;
if (command == FIONBIO) {
200b550: 03 20 01 19 sethi %hi(0x80046400), %g1 <== NOT EXECUTED
int IMFS_fifo_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
200b554: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
int err;
if (command == FIONBIO) {
200b558: 82 10 62 7e or %g1, 0x27e, %g1 <== NOT EXECUTED
int IMFS_fifo_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
200b55c: 96 10 00 18 mov %i0, %o3 <== NOT EXECUTED
int err;
if (command == FIONBIO) {
200b560: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
200b564: 12 80 00 0f bne 200b5a0 <IMFS_fifo_ioctl+0x54> <== NOT EXECUTED
200b568: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
if (buffer == NULL)
200b56c: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
200b570: 02 80 00 12 be 200b5b8 <IMFS_fifo_ioctl+0x6c> <== NOT EXECUTED
200b574: b0 10 3f f2 mov -14, %i0 <== NOT EXECUTED
err = -EFAULT;
else {
if (*(int *)buffer)
200b578: c4 06 80 00 ld [ %i2 ], %g2 <== NOT EXECUTED
200b57c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
200b580: 02 80 00 04 be 200b590 <IMFS_fifo_ioctl+0x44> <== NOT EXECUTED
200b584: c2 02 e0 18 ld [ %o3 + 0x18 ], %g1 <== NOT EXECUTED
iop->flags |= LIBIO_FLAGS_NO_DELAY;
200b588: 10 80 00 03 b 200b594 <IMFS_fifo_ioctl+0x48> <== NOT EXECUTED
200b58c: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED
else
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
200b590: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED
200b594: c2 22 e0 18 st %g1, [ %o3 + 0x18 ] <== NOT EXECUTED
200b598: 81 c7 e0 08 ret <== NOT EXECUTED
200b59c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
return 0;
}
}
else
err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop);
200b5a0: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED
200b5a4: 7f ff fa e1 call 200a128 <pipe_ioctl> <== NOT EXECUTED
200b5a8: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
200b5ac: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
200b5b0: 16 80 00 06 bge 200b5c8 <IMFS_fifo_ioctl+0x7c> <== NOT EXECUTED
200b5b4: 01 00 00 00 nop <== NOT EXECUTED
200b5b8: 40 00 0f d9 call 200f51c <__errno> <== NOT EXECUTED
200b5bc: b0 20 00 18 neg %i0 <== NOT EXECUTED
200b5c0: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED
200b5c4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
}
200b5c8: 81 c7 e0 08 ret <== NOT EXECUTED
200b5cc: 81 e8 00 00 restore <== NOT EXECUTED
0200b4f4 <IMFS_fifo_lseek>:
rtems_off64_t IMFS_fifo_lseek(
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
200b4f4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);
200b4f8: 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
)
{
200b4fc: 98 10 00 18 mov %i0, %o4 <== NOT EXECUTED
off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);
200b500: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 <== NOT EXECUTED
200b504: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
200b508: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
200b50c: 7f ff fa ea call 200a0b4 <pipe_lseek> <== NOT EXECUTED
200b510: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
200b514: 85 3a 20 1f sra %o0, 0x1f, %g2 <== NOT EXECUTED
200b518: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
200b51c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
200b520: 16 80 00 08 bge 200b540 <IMFS_fifo_lseek+0x4c> <== NOT EXECUTED
200b524: 86 10 00 08 mov %o0, %g3 <== NOT EXECUTED
200b528: 40 00 0f fd call 200f51c <__errno> <== NOT EXECUTED
200b52c: a0 20 00 10 neg %l0 <== NOT EXECUTED
200b530: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED
200b534: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED
200b538: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
200b53c: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED
}
200b540: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED
200b544: 81 c7 e0 08 ret <== NOT EXECUTED
200b548: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
0200b720 <IMFS_fifo_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
200b720: 9d e3 bf a0 save %sp, -96, %sp
IMFS_jnode_t *jnode = iop->file_info;
int err = fifo_open(&JNODE2PIPE(jnode), iop);
200b724: d0 06 20 3c ld [ %i0 + 0x3c ], %o0
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
200b728: 92 10 00 18 mov %i0, %o1
IMFS_jnode_t *jnode = iop->file_info;
int err = fifo_open(&JNODE2PIPE(jnode), iop);
200b72c: 7f ff fb bf call 200a628 <fifo_open>
200b730: 90 02 20 50 add %o0, 0x50, %o0
IMFS_FIFO_RETURN(err);
200b734: b0 92 20 00 orcc %o0, 0, %i0
200b738: 16 80 00 06 bge 200b750 <IMFS_fifo_open+0x30> <== NEVER TAKEN
200b73c: 01 00 00 00 nop
200b740: 40 00 0f 77 call 200f51c <__errno>
200b744: b0 20 00 18 neg %i0
200b748: f0 22 00 00 st %i0, [ %o0 ]
200b74c: b0 10 3f ff mov -1, %i0
}
200b750: 81 c7 e0 08 ret
200b754: 81 e8 00 00 restore
0200b638 <IMFS_fifo_read>:
ssize_t IMFS_fifo_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
200b638: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
200b63c: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED
ssize_t IMFS_fifo_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
200b640: 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);
200b644: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 <== NOT EXECUTED
200b648: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
200b64c: 7f ff fb 40 call 200a34c <pipe_read> <== NOT EXECUTED
200b650: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
if (err > 0)
200b654: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
200b658: 04 80 00 08 ble 200b678 <IMFS_fifo_read+0x40> <== NOT EXECUTED
200b65c: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED
IMFS_update_atime(jnode);
200b660: 7f ff dd 51 call 2002ba4 <gettimeofday> <== NOT EXECUTED
200b664: 92 10 20 00 clr %o1 <== NOT EXECUTED
200b668: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
200b66c: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED
200b670: 81 c7 e0 08 ret <== NOT EXECUTED
200b674: 81 e8 00 00 restore <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
200b678: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
200b67c: 02 80 00 06 be 200b694 <IMFS_fifo_read+0x5c> <== NOT EXECUTED
200b680: 01 00 00 00 nop <== NOT EXECUTED
200b684: 40 00 0f a6 call 200f51c <__errno> <== NOT EXECUTED
200b688: b0 20 00 18 neg %i0 <== NOT EXECUTED
200b68c: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED
200b690: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
}
200b694: 81 c7 e0 08 ret <== NOT EXECUTED
200b698: 81 e8 00 00 restore <== NOT EXECUTED
0200b5d0 <IMFS_fifo_write>:
ssize_t IMFS_fifo_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
200b5d0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
200b5d4: 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
)
{
200b5d8: 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);
200b5dc: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 <== NOT EXECUTED
200b5e0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
200b5e4: 7f ff fa ea call 200a18c <pipe_write> <== NOT EXECUTED
200b5e8: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
if (err > 0) {
200b5ec: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
200b5f0: 04 80 00 09 ble 200b614 <IMFS_fifo_write+0x44> <== NOT EXECUTED
200b5f4: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED
IMFS_mtime_ctime_update(jnode);
200b5f8: 7f ff dd 6b call 2002ba4 <gettimeofday> <== NOT EXECUTED
200b5fc: 92 10 20 00 clr %o1 <== NOT EXECUTED
200b600: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
200b604: c2 24 20 48 st %g1, [ %l0 + 0x48 ] <== NOT EXECUTED
200b608: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED
200b60c: 81 c7 e0 08 ret <== NOT EXECUTED
200b610: 81 e8 00 00 restore <== NOT EXECUTED
}
IMFS_FIFO_RETURN(err);
200b614: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
200b618: 02 80 00 06 be 200b630 <IMFS_fifo_write+0x60> <== NOT EXECUTED
200b61c: 01 00 00 00 nop <== NOT EXECUTED
200b620: 40 00 0f bf call 200f51c <__errno> <== NOT EXECUTED
200b624: b0 20 00 18 neg %i0 <== NOT EXECUTED
200b628: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED
200b62c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
}
200b630: 81 c7 e0 08 ret <== NOT EXECUTED
200b634: 81 e8 00 00 restore <== NOT EXECUTED
0200b818 <IMFS_find_match_in_dir>:
IMFS_jnode_t *IMFS_find_match_in_dir(
IMFS_jnode_t *directory,
char *name
)
{
200b818: 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 );
200b81c: 80 a6 20 00 cmp %i0, 0
200b820: 12 80 00 0a bne 200b848 <IMFS_find_match_in_dir+0x30> <== ALWAYS TAKEN
200b824: 80 a6 60 00 cmp %i1, 0
200b828: 11 00 80 6c sethi %hi(0x201b000), %o0 <== NOT EXECUTED
200b82c: 15 00 80 6c sethi %hi(0x201b000), %o2 <== NOT EXECUTED
200b830: 17 00 80 6c sethi %hi(0x201b000), %o3 <== NOT EXECUTED
200b834: 90 12 23 78 or %o0, 0x378, %o0 <== NOT EXECUTED
200b838: 94 12 a3 f0 or %o2, 0x3f0, %o2 <== NOT EXECUTED
200b83c: 96 12 e3 d0 or %o3, 0x3d0, %o3 <== NOT EXECUTED
200b840: 40 00 00 c5 call 200bb54 <__assert_func> <== NOT EXECUTED
200b844: 92 10 20 2a mov 0x2a, %o1 <== NOT EXECUTED
if ( !name )
200b848: 02 80 00 1c be 200b8b8 <IMFS_find_match_in_dir+0xa0> <== NEVER TAKEN
200b84c: 90 10 00 19 mov %i1, %o0
/*
* Check for "." and ".."
*/
if ( !strcmp( name, dotname ) )
200b850: 13 00 80 6c sethi %hi(0x201b000), %o1
200b854: 40 00 12 99 call 20102b8 <strcmp>
200b858: 92 12 63 e0 or %o1, 0x3e0, %o1 ! 201b3e0 <dotname>
200b85c: 80 a2 20 00 cmp %o0, 0
200b860: 02 80 00 09 be 200b884 <IMFS_find_match_in_dir+0x6c> <== NEVER TAKEN
200b864: 90 10 00 19 mov %i1, %o0
return directory;
if ( !strcmp( name, dotdotname ) )
200b868: 13 00 80 6c sethi %hi(0x201b000), %o1
200b86c: 40 00 12 93 call 20102b8 <strcmp>
200b870: 92 12 63 e8 or %o1, 0x3e8, %o1 ! 201b3e8 <dotdotname>
200b874: 80 a2 20 00 cmp %o0, 0
200b878: 12 80 00 05 bne 200b88c <IMFS_find_match_in_dir+0x74> <== ALWAYS TAKEN
200b87c: a0 06 20 54 add %i0, 0x54, %l0
return directory->Parent;
200b880: f0 06 20 08 ld [ %i0 + 8 ], %i0 <== NOT EXECUTED
200b884: 81 c7 e0 08 ret <== NOT EXECUTED
200b888: 81 e8 00 00 restore <== NOT EXECUTED
the_chain = &directory->info.directory.Entries;
for ( the_node = the_chain->first;
200b88c: 10 80 00 08 b 200b8ac <IMFS_find_match_in_dir+0x94>
200b890: 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 ) )
200b894: 40 00 12 89 call 20102b8 <strcmp>
200b898: 92 06 20 0c add %i0, 0xc, %o1
200b89c: 80 a2 20 00 cmp %o0, 0
200b8a0: 02 80 00 07 be 200b8bc <IMFS_find_match_in_dir+0xa4>
200b8a4: 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 ) {
200b8a8: 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;
200b8ac: 80 a6 00 10 cmp %i0, %l0
200b8b0: 12 bf ff f9 bne 200b894 <IMFS_find_match_in_dir+0x7c>
200b8b4: 90 10 00 19 mov %i1, %o0
200b8b8: b0 10 20 00 clr %i0
if ( !strcmp( name, the_jnode->name ) )
return the_jnode;
}
return 0;
}
200b8bc: 81 c7 e0 08 ret
200b8c0: 81 e8 00 00 restore
0200b760 <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
)
{
200b760: 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;
200b764: 94 10 20 14 mov 0x14, %o2
200b768: 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;
200b76c: 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 );
200b770: 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;
200b774: 40 00 11 a6 call 200fe0c <memcpy>
200b778: 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;
200b77c: c0 26 20 1c clr [ %i0 + 0x1c ]
do {
next = jnode->Parent;
loc.node_access = (void *)jnode;
200b780: e0 27 bf ec st %l0, [ %fp + -20 ]
*/
temp_mt_entry->mt_fs_root.node_access = NULL;
do {
next = jnode->Parent;
200b784: f0 04 20 08 ld [ %l0 + 8 ], %i0
loc.node_access = (void *)jnode;
IMFS_Set_handlers( &loc );
200b788: 7f ff fd 14 call 200abd8 <IMFS_Set_handlers>
200b78c: 90 10 00 11 mov %l1, %o0
if ( jnode->type != IMFS_DIRECTORY ) {
200b790: c4 04 20 4c ld [ %l0 + 0x4c ], %g2
200b794: 80 a0 a0 01 cmp %g2, 1
200b798: 12 80 00 06 bne 200b7b0 <IMFS_fsunmount+0x50>
200b79c: 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;
200b7a0: c4 04 20 50 ld [ %l0 + 0x50 ], %g2
200b7a4: 80 a0 80 01 cmp %g2, %g1
200b7a8: 12 80 00 09 bne 200b7cc <IMFS_fsunmount+0x6c>
200b7ac: 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 );
200b7b0: 90 10 20 00 clr %o0
200b7b4: 7f ff db 61 call 2002538 <IMFS_unlink>
200b7b8: 92 10 00 11 mov %l1, %o1
if (result != 0)
200b7bc: 80 a2 20 00 cmp %o0, 0
200b7c0: 12 80 00 13 bne 200b80c <IMFS_fsunmount+0xac> <== NEVER TAKEN
200b7c4: a0 10 00 18 mov %i0, %l0
return -1;
jnode = next;
}
if ( jnode != NULL ) {
200b7c8: 80 a4 20 00 cmp %l0, 0
200b7cc: 22 80 00 11 be,a 200b810 <IMFS_fsunmount+0xb0>
200b7d0: b0 10 20 00 clr %i0
if ( jnode->type == IMFS_DIRECTORY ) {
200b7d4: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
200b7d8: 80 a0 60 01 cmp %g1, 1
200b7dc: 32 bf ff ea bne,a 200b784 <IMFS_fsunmount+0x24> <== NEVER TAKEN
200b7e0: e0 27 bf ec st %l0, [ %fp + -20 ] <== NOT EXECUTED
200b7e4: c2 04 20 50 ld [ %l0 + 0x50 ], %g1
200b7e8: 84 04 20 54 add %l0, 0x54, %g2
200b7ec: 80 a0 40 02 cmp %g1, %g2
200b7f0: 22 bf ff e5 be,a 200b784 <IMFS_fsunmount+0x24>
200b7f4: e0 27 bf ec st %l0, [ %fp + -20 ]
if ( jnode_has_children( jnode ) )
jnode = jnode_get_first_child( jnode );
}
}
} while (jnode != NULL);
200b7f8: a0 90 60 00 orcc %g1, 0, %l0
200b7fc: 32 bf ff e2 bne,a 200b784 <IMFS_fsunmount+0x24> <== ALWAYS TAKEN
200b800: e0 27 bf ec st %l0, [ %fp + -20 ]
200b804: 81 c7 e0 08 ret <== NOT EXECUTED
200b808: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
200b80c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return 0;
}
200b810: 81 c7 e0 08 ret
200b814: 81 e8 00 00 restore
0200b8c4 <IMFS_get_token>:
const char *path,
int pathlen,
char *token,
int *token_len
)
{
200b8c4: 9d e3 bf a0 save %sp, -96, %sp
register char c;
/*
* Copy a name into token. (Remember NULL is a token.)
*/
c = path[i];
200b8c8: a0 10 20 00 clr %l0
while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
200b8cc: 10 80 00 08 b 200b8ec <IMFS_get_token+0x28>
200b8d0: e2 0e 00 00 ldub [ %i0 ], %l1
token[i] = c;
if ( i == IMFS_NAME_MAX )
200b8d4: 80 a4 20 20 cmp %l0, 0x20
200b8d8: 12 80 00 04 bne 200b8e8 <IMFS_get_token+0x24>
200b8dc: a0 04 20 01 inc %l0
200b8e0: 81 c7 e0 08 ret
200b8e4: 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];
200b8e8: 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) ) {
200b8ec: 91 2c 60 18 sll %l1, 0x18, %o0
200b8f0: 7f ff e0 78 call 2003ad0 <rtems_filesystem_is_separator>
200b8f4: 91 3a 20 18 sra %o0, 0x18, %o0
200b8f8: 80 a2 20 00 cmp %o0, 0
200b8fc: 12 80 00 04 bne 200b90c <IMFS_get_token+0x48>
200b900: 80 a4 00 19 cmp %l0, %i1
200b904: 26 bf ff f4 bl,a 200b8d4 <IMFS_get_token+0x10>
200b908: e2 2e 80 10 stb %l1, [ %i2 + %l0 ]
/*
* Copy a seperator into token.
*/
if ( i == 0 ) {
200b90c: 80 a4 20 00 cmp %l0, 0
200b910: 12 80 00 0d bne 200b944 <IMFS_get_token+0x80>
200b914: 82 06 80 10 add %i2, %l0, %g1
token[i] = c;
200b918: e2 2e 80 00 stb %l1, [ %i2 ]
if ( (token[i] != '\0') && pathlen ) {
200b91c: a3 2c 60 18 sll %l1, 0x18, %l1
200b920: 80 a4 60 00 cmp %l1, 0
200b924: 02 80 00 0d be 200b958 <IMFS_get_token+0x94>
200b928: b0 10 20 00 clr %i0
200b92c: 80 a6 60 00 cmp %i1, 0
200b930: 02 80 00 0b be 200b95c <IMFS_get_token+0x98>
200b934: 80 a6 20 03 cmp %i0, 3
200b938: b0 10 20 01 mov 1, %i0
200b93c: 10 80 00 07 b 200b958 <IMFS_get_token+0x94>
200b940: a0 10 20 01 mov 1, %l0
i++;
type = IMFS_CURRENT_DIR;
} else {
type = IMFS_NO_MORE_PATH;
}
} else if (token[ i-1 ] != '\0') {
200b944: c2 48 7f ff ldsb [ %g1 + -1 ], %g1
200b948: 80 a0 60 00 cmp %g1, 0
200b94c: 02 80 00 03 be 200b958 <IMFS_get_token+0x94> <== NEVER TAKEN
200b950: b0 10 20 03 mov 3, %i0
token[i] = '\0';
200b954: 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 ) {
200b958: 80 a6 20 03 cmp %i0, 3
200b95c: 12 80 00 11 bne 200b9a0 <IMFS_get_token+0xdc>
200b960: e0 26 c0 00 st %l0, [ %i3 ]
if ( strcmp( token, "..") == 0 )
200b964: 90 10 00 1a mov %i2, %o0
200b968: 13 00 80 6d sethi %hi(0x201b400), %o1
200b96c: 40 00 12 53 call 20102b8 <strcmp>
200b970: 92 12 60 08 or %o1, 8, %o1 ! 201b408 <__FUNCTION__.5476+0x18>
200b974: 80 a2 20 00 cmp %o0, 0
200b978: 12 80 00 04 bne 200b988 <IMFS_get_token+0xc4>
200b97c: 90 10 00 1a mov %i2, %o0
200b980: 81 c7 e0 08 ret
200b984: 91 e8 20 02 restore %g0, 2, %o0
type = IMFS_UP_DIR;
else if ( strcmp( token, "." ) == 0 )
200b988: 13 00 80 6d sethi %hi(0x201b400), %o1
200b98c: 40 00 12 4b call 20102b8 <strcmp>
200b990: 92 12 60 10 or %o1, 0x10, %o1 ! 201b410 <__FUNCTION__.5476+0x20>
200b994: 80 a2 20 00 cmp %o0, 0
200b998: 22 80 00 02 be,a 200b9a0 <IMFS_get_token+0xdc>
200b99c: b0 10 20 01 mov 1, %i0
type = IMFS_CURRENT_DIR;
}
return type;
}
200b9a0: 81 c7 e0 08 ret
200b9a4: 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 70 sethi %hi(0x201c000), %g1
2002144: c2 00 60 b8 ld [ %g1 + 0xb8 ], %g1 ! 201c0b8 <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 71 sethi %hi(0x201c400), %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 3f call 200aa6c <IMFS_create_root_node>
2002174: c4 20 63 bc st %g2, [ %g1 + 0x3bc ] ! 201c7bc <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 6c sethi %hi(0x201b000), %o1
200218c: 90 06 20 38 add %i0, 0x38, %o0
2002190: 40 00 37 1f call 200fe0c <memcpy>
2002194: 92 12 62 2c or %o1, 0x22c, %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 34 d9 call 200f51c <__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 71 sethi %hi(0x201c400), %g3
20021d4: c4 00 e3 c0 ld [ %g3 + 0x3c0 ], %g2 ! 201c7c0 <imfs_instance.5987>
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 e3 c0 st %g4, [ %g3 + 0x3c0 ]
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 b0 call 200a0bc <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 34 bd call 200f51c <__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 38 86 call 2010450 <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 25 9d call 200b8c4 <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 10 call 200aaac <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 34 a7 call 200f51c <__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
0200db74 <IMFS_memfile_addblock>:
MEMFILE_STATIC int IMFS_memfile_addblock(
IMFS_jnode_t *the_jnode,
unsigned int block
)
{
200db74: 9d e3 bf a0 save %sp, -96, %sp
200db78: 90 10 00 18 mov %i0, %o0
block_p memory;
block_p *block_entry_ptr;
assert( the_jnode );
200db7c: 80 a6 20 00 cmp %i0, 0
200db80: 12 80 00 0a bne 200dba8 <IMFS_memfile_addblock+0x34> <== ALWAYS TAKEN
200db84: 92 10 00 19 mov %i1, %o1
200db88: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED
200db8c: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED
200db90: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED
200db94: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED
200db98: 94 12 a3 d0 or %o2, 0x3d0, %o2 <== NOT EXECUTED
200db9c: 96 12 e2 40 or %o3, 0x240, %o3 <== NOT EXECUTED
200dba0: 10 80 00 0c b 200dbd0 <IMFS_memfile_addblock+0x5c> <== NOT EXECUTED
200dba4: 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 );
200dba8: c2 06 20 4c ld [ %i0 + 0x4c ], %g1
200dbac: 80 a0 60 05 cmp %g1, 5
200dbb0: 02 80 00 0a be 200dbd8 <IMFS_memfile_addblock+0x64> <== ALWAYS TAKEN
200dbb4: 15 00 80 6d sethi %hi(0x201b400), %o2
200dbb8: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED
200dbbc: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED
200dbc0: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED
200dbc4: 94 12 a3 d0 or %o2, 0x3d0, %o2 <== NOT EXECUTED
200dbc8: 96 12 e2 50 or %o3, 0x250, %o3 <== NOT EXECUTED
200dbcc: 92 10 21 6d mov 0x16d, %o1 <== NOT EXECUTED
200dbd0: 7f ff f7 e1 call 200bb54 <__assert_func> <== NOT EXECUTED
200dbd4: 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 );
200dbd8: 7f ff fe 6d call 200d58c <IMFS_memfile_get_block_pointer>
200dbdc: 94 10 20 01 mov 1, %o2 ! 1 <PROM_START+0x1>
if ( *block_entry_ptr )
200dbe0: 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 );
200dbe4: a0 10 00 08 mov %o0, %l0
if ( *block_entry_ptr )
200dbe8: 80 a0 60 00 cmp %g1, 0
200dbec: 12 80 00 09 bne 200dc10 <IMFS_memfile_addblock+0x9c>
200dbf0: b0 10 20 00 clr %i0
#if 0
fprintf(stdout, "%d %p", block, block_entry_ptr );
fflush(stdout);
#endif
memory = memfile_alloc_block();
200dbf4: 7f ff fe 59 call 200d558 <memfile_alloc_block>
200dbf8: b0 10 20 01 mov 1, %i0
if ( !memory )
200dbfc: 80 a2 20 00 cmp %o0, 0
200dc00: 02 80 00 04 be 200dc10 <IMFS_memfile_addblock+0x9c> <== NEVER TAKEN
200dc04: 01 00 00 00 nop
return 1;
*block_entry_ptr = memory;
200dc08: d0 24 00 00 st %o0, [ %l0 ]
200dc0c: b0 10 20 00 clr %i0
return 0;
}
200dc10: 81 c7 e0 08 ret
200dc14: 81 e8 00 00 restore
0200dc18 <IMFS_memfile_extend>:
MEMFILE_STATIC int IMFS_memfile_extend(
IMFS_jnode_t *the_jnode,
off_t new_length
)
{
200dc18: 9d e3 bf a0 save %sp, -96, %sp
/*
* Perform internal consistency checks
*/
assert( the_jnode );
200dc1c: 80 a6 20 00 cmp %i0, 0
200dc20: 32 80 00 0a bne,a 200dc48 <IMFS_memfile_extend+0x30> <== ALWAYS TAKEN
200dc24: c2 06 20 4c ld [ %i0 + 0x4c ], %g1
200dc28: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED
200dc2c: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED
200dc30: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED
200dc34: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED
200dc38: 94 12 a3 e8 or %o2, 0x3e8, %o2 <== NOT EXECUTED
200dc3c: 96 12 e2 40 or %o3, 0x240, %o3 <== NOT EXECUTED
200dc40: 10 80 00 0c b 200dc70 <IMFS_memfile_extend+0x58> <== NOT EXECUTED
200dc44: 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 );
200dc48: 80 a0 60 05 cmp %g1, 5
200dc4c: 02 80 00 0b be 200dc78 <IMFS_memfile_extend+0x60> <== ALWAYS TAKEN
200dc50: 03 00 80 71 sethi %hi(0x201c400), %g1
200dc54: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED
200dc58: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED
200dc5c: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED
200dc60: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED
200dc64: 94 12 a3 e8 or %o2, 0x3e8, %o2 <== NOT EXECUTED
200dc68: 96 12 e2 50 or %o3, 0x250, %o3 <== NOT EXECUTED
200dc6c: 92 10 21 35 mov 0x135, %o1 <== NOT EXECUTED
200dc70: 7f ff f7 b9 call 200bb54 <__assert_func> <== NOT EXECUTED
200dc74: 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 )
200dc78: e0 00 63 bc ld [ %g1 + 0x3bc ], %l0
200dc7c: a3 34 20 02 srl %l0, 2, %l1
200dc80: 92 10 00 11 mov %l1, %o1
200dc84: 40 00 2b 3f call 2018980 <.umul>
200dc88: 90 04 60 01 add %l1, 1, %o0
200dc8c: 92 10 00 11 mov %l1, %o1
200dc90: 40 00 2b 3c call 2018980 <.umul>
200dc94: 90 02 20 01 inc %o0
200dc98: 92 10 00 10 mov %l0, %o1
200dc9c: 40 00 2b 39 call 2018980 <.umul>
200dca0: 90 02 3f ff add %o0, -1, %o0
200dca4: 82 10 20 00 clr %g1
200dca8: 80 a0 40 19 cmp %g1, %i1
200dcac: 34 80 00 0b bg,a 200dcd8 <IMFS_memfile_extend+0xc0> <== NEVER TAKEN
200dcb0: e2 06 20 50 ld [ %i0 + 0x50 ], %l1 <== NOT EXECUTED
200dcb4: 80 a0 40 19 cmp %g1, %i1
200dcb8: 12 80 00 04 bne 200dcc8 <IMFS_memfile_extend+0xb0> <== NEVER TAKEN
200dcbc: 80 a2 00 1a cmp %o0, %i2
200dcc0: 38 80 00 06 bgu,a 200dcd8 <IMFS_memfile_extend+0xc0> <== ALWAYS TAKEN
200dcc4: e2 06 20 50 ld [ %i0 + 0x50 ], %l1
rtems_set_errno_and_return_minus_one( EINVAL );
200dcc8: 40 00 06 15 call 200f51c <__errno> <== NOT EXECUTED
200dccc: 01 00 00 00 nop <== NOT EXECUTED
200dcd0: 10 80 00 2b b 200dd7c <IMFS_memfile_extend+0x164> <== NOT EXECUTED
200dcd4: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
if ( new_length <= the_jnode->info.file.size )
200dcd8: 80 a6 40 11 cmp %i1, %l1
200dcdc: 14 80 00 09 bg 200dd00 <IMFS_memfile_extend+0xe8> <== NEVER TAKEN
200dce0: e6 06 20 54 ld [ %i0 + 0x54 ], %l3
200dce4: 80 a6 40 11 cmp %i1, %l1
200dce8: 12 80 00 04 bne 200dcf8 <IMFS_memfile_extend+0xe0> <== NEVER TAKEN
200dcec: 80 a6 80 13 cmp %i2, %l3
200dcf0: 18 80 00 05 bgu 200dd04 <IMFS_memfile_extend+0xec>
200dcf4: a5 3c 20 1f sra %l0, 0x1f, %l2
200dcf8: 81 c7 e0 08 ret
200dcfc: 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;
200dd00: a5 3c 20 1f sra %l0, 0x1f, %l2 <== NOT EXECUTED
200dd04: 96 10 00 10 mov %l0, %o3
200dd08: 94 10 00 12 mov %l2, %o2
200dd0c: 90 10 00 19 mov %i1, %o0
200dd10: 40 00 2c ae call 2018fc8 <__divdi3>
200dd14: 92 10 00 1a mov %i2, %o1
old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
200dd18: 90 10 00 11 mov %l1, %o0
200dd1c: 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;
200dd20: a8 10 00 09 mov %o1, %l4
old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
200dd24: 94 10 00 12 mov %l2, %o2
200dd28: 40 00 2c a8 call 2018fc8 <__divdi3>
200dd2c: 92 10 00 13 mov %l3, %o1
200dd30: a2 10 00 09 mov %o1, %l1
/*
* Now allocate each of those blocks.
*/
for ( block=old_blocks ; block<=new_blocks ; block++ ) {
200dd34: 10 80 00 15 b 200dd88 <IMFS_memfile_extend+0x170>
200dd38: a0 10 00 09 mov %o1, %l0
if ( IMFS_memfile_addblock( the_jnode, block ) ) {
200dd3c: 7f ff ff 8e call 200db74 <IMFS_memfile_addblock>
200dd40: 92 10 00 10 mov %l0, %o1
200dd44: 80 a2 20 00 cmp %o0, 0
200dd48: 22 80 00 10 be,a 200dd88 <IMFS_memfile_extend+0x170> <== ALWAYS TAKEN
200dd4c: a0 04 20 01 inc %l0
for ( ; block>=old_blocks ; block-- ) {
200dd50: 10 80 00 06 b 200dd68 <IMFS_memfile_extend+0x150> <== NOT EXECUTED
200dd54: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED
IMFS_memfile_remove_block( the_jnode, block );
200dd58: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
200dd5c: 7f ff fe d7 call 200d8b8 <IMFS_memfile_remove_block> <== NOT EXECUTED
200dd60: 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-- ) {
200dd64: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED
200dd68: 1a bf ff fc bcc 200dd58 <IMFS_memfile_extend+0x140> <== NOT EXECUTED
200dd6c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
IMFS_memfile_remove_block( the_jnode, block );
}
rtems_set_errno_and_return_minus_one( ENOSPC );
200dd70: 40 00 05 eb call 200f51c <__errno> <== NOT EXECUTED
200dd74: 01 00 00 00 nop <== NOT EXECUTED
200dd78: 82 10 20 1c mov 0x1c, %g1 ! 1c <PROM_START+0x1c> <== NOT EXECUTED
200dd7c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200dd80: 81 c7 e0 08 ret <== NOT EXECUTED
200dd84: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
/*
* Now allocate each of those blocks.
*/
for ( block=old_blocks ; block<=new_blocks ; block++ ) {
200dd88: 80 a4 00 14 cmp %l0, %l4
200dd8c: 08 bf ff ec bleu 200dd3c <IMFS_memfile_extend+0x124>
200dd90: 90 10 00 18 mov %i0, %o0
/*
* Set the new length of the file.
*/
the_jnode->info.file.size = new_length;
200dd94: f4 26 20 54 st %i2, [ %i0 + 0x54 ]
200dd98: f2 26 20 50 st %i1, [ %i0 + 0x50 ]
return 0;
}
200dd9c: 81 c7 e0 08 ret
200dda0: 91 e8 20 00 restore %g0, 0, %o0
0200d58c <IMFS_memfile_get_block_pointer>:
#endif
IMFS_jnode_t *the_jnode,
unsigned int block,
int malloc_it
)
{
200d58c: 9d e3 bf a0 save %sp, -96, %sp
/*
* Perform internal consistency checks
*/
assert( the_jnode );
200d590: 80 a6 20 00 cmp %i0, 0
200d594: 32 80 00 0a bne,a 200d5bc <IMFS_memfile_get_block_pointer+0x30><== ALWAYS TAKEN
200d598: c2 06 20 4c ld [ %i0 + 0x4c ], %g1
200d59c: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED
200d5a0: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED
200d5a4: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED
200d5a8: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED
200d5ac: 94 12 a3 28 or %o2, 0x328, %o2 <== NOT EXECUTED
200d5b0: 96 12 e2 40 or %o3, 0x240, %o3 <== NOT EXECUTED
200d5b4: 10 80 00 0c b 200d5e4 <IMFS_memfile_get_block_pointer+0x58><== NOT EXECUTED
200d5b8: 92 10 23 88 mov 0x388, %o1 <== NOT EXECUTED
if ( !the_jnode )
return NULL;
assert( the_jnode->type == IMFS_MEMORY_FILE );
200d5bc: 80 a0 60 05 cmp %g1, 5
200d5c0: 02 80 00 0b be 200d5ec <IMFS_memfile_get_block_pointer+0x60><== ALWAYS TAKEN
200d5c4: 03 00 80 71 sethi %hi(0x201c400), %g1
200d5c8: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED
200d5cc: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED
200d5d0: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED
200d5d4: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED
200d5d8: 94 12 a3 28 or %o2, 0x328, %o2 <== NOT EXECUTED
200d5dc: 96 12 e2 50 or %o3, 0x250, %o3 <== NOT EXECUTED
200d5e0: 92 10 23 8c mov 0x38c, %o1 <== NOT EXECUTED
200d5e4: 7f ff f9 5c call 200bb54 <__assert_func> <== NOT EXECUTED
200d5e8: 01 00 00 00 nop <== NOT EXECUTED
/*
* Is the block number in the simple indirect portion?
*/
if ( my_block <= LAST_INDIRECT ) {
200d5ec: e0 00 63 bc ld [ %g1 + 0x3bc ], %l0
200d5f0: a1 34 20 02 srl %l0, 2, %l0
200d5f4: 82 04 3f ff add %l0, -1, %g1
200d5f8: 80 a6 40 01 cmp %i1, %g1
200d5fc: 18 80 00 16 bgu 200d654 <IMFS_memfile_get_block_pointer+0xc8><== NEVER TAKEN
200d600: 90 04 20 01 add %l0, 1, %o0
fprintf(stdout, "(s %d) ", block );
fflush(stdout);
#endif
p = info->indirect;
if ( malloc_it ) {
200d604: 80 a6 a0 00 cmp %i2, 0
200d608: 02 80 00 0f be 200d644 <IMFS_memfile_get_block_pointer+0xb8>
200d60c: c2 06 20 58 ld [ %i0 + 0x58 ], %g1
if ( !p ) {
200d610: 80 a0 60 00 cmp %g1, 0
200d614: 32 80 00 09 bne,a 200d638 <IMFS_memfile_get_block_pointer+0xac>
200d618: f0 06 20 58 ld [ %i0 + 0x58 ], %i0
p = memfile_alloc_block();
200d61c: 7f ff ff cf call 200d558 <memfile_alloc_block>
200d620: 01 00 00 00 nop
if ( !p )
200d624: 80 a2 20 00 cmp %o0, 0
200d628: 22 80 00 85 be,a 200d83c <IMFS_memfile_get_block_pointer+0x2b0><== NEVER TAKEN
200d62c: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
info->indirect = p;
200d630: d0 26 20 58 st %o0, [ %i0 + 0x58 ]
}
return &info->indirect[ my_block ];
200d634: f0 06 20 58 ld [ %i0 + 0x58 ], %i0
200d638: b3 2e 60 02 sll %i1, 2, %i1
200d63c: 81 c7 e0 08 ret
200d640: 91 ee 00 19 restore %i0, %i1, %o0
}
if ( !p )
return 0;
return &info->indirect[ my_block ];
200d644: b3 2e 60 02 sll %i1, 2, %i1
info->indirect = p;
}
return &info->indirect[ my_block ];
}
if ( !p )
200d648: 80 a0 60 00 cmp %g1, 0
return 0;
return &info->indirect[ my_block ];
200d64c: 10 80 00 79 b 200d830 <IMFS_memfile_get_block_pointer+0x2a4>
200d650: b0 00 40 19 add %g1, %i1, %i0
/*
* Is the block number in the doubly indirect portion?
*/
if ( my_block <= LAST_DOUBLY_INDIRECT ) {
200d654: 40 00 2c cb call 2018980 <.umul> <== NOT EXECUTED
200d658: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
200d65c: 82 02 3f ff add %o0, -1, %g1 <== NOT EXECUTED
200d660: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
200d664: 18 80 00 2d bgu 200d718 <IMFS_memfile_get_block_pointer+0x18c><== NOT EXECUTED
200d668: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
#if 0
fprintf(stdout, "(d %d) ", block );
fflush(stdout);
#endif
my_block -= FIRST_DOUBLY_INDIRECT;
200d66c: b2 26 40 10 sub %i1, %l0, %i1 <== NOT EXECUTED
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
200d670: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
200d674: 40 00 2d a9 call 2018d18 <.urem> <== NOT EXECUTED
200d678: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
200d67c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
fflush(stdout);
#endif
my_block -= FIRST_DOUBLY_INDIRECT;
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
200d680: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
200d684: 40 00 2c f9 call 2018a68 <.udiv> <== NOT EXECUTED
200d688: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
p = info->doubly_indirect;
if ( malloc_it ) {
200d68c: 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;
200d690: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
p = info->doubly_indirect;
if ( malloc_it ) {
200d694: 02 80 00 18 be 200d6f4 <IMFS_memfile_get_block_pointer+0x168><== NOT EXECUTED
200d698: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 <== NOT EXECUTED
if ( !p ) {
200d69c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200d6a0: 12 80 00 08 bne 200d6c0 <IMFS_memfile_get_block_pointer+0x134><== NOT EXECUTED
200d6a4: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED
p = memfile_alloc_block();
200d6a8: 7f ff ff ac call 200d558 <memfile_alloc_block> <== NOT EXECUTED
200d6ac: 01 00 00 00 nop <== NOT EXECUTED
if ( !p )
200d6b0: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED
200d6b4: 22 80 00 62 be,a 200d83c <IMFS_memfile_get_block_pointer+0x2b0><== NOT EXECUTED
200d6b8: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
info->doubly_indirect = p;
200d6bc: c2 26 20 5c st %g1, [ %i0 + 0x5c ] <== NOT EXECUTED
}
p1 = (block_p *)p[ doubly ];
200d6c0: d0 00 40 10 ld [ %g1 + %l0 ], %o0 <== NOT EXECUTED
if ( !p1 ) {
200d6c4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200d6c8: 12 80 00 08 bne 200d6e8 <IMFS_memfile_get_block_pointer+0x15c><== NOT EXECUTED
200d6cc: a0 00 40 10 add %g1, %l0, %l0 <== NOT EXECUTED
p1 = memfile_alloc_block();
200d6d0: 7f ff ff a2 call 200d558 <memfile_alloc_block> <== NOT EXECUTED
200d6d4: 01 00 00 00 nop <== NOT EXECUTED
if ( !p1 )
200d6d8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200d6dc: 22 80 00 58 be,a 200d83c <IMFS_memfile_get_block_pointer+0x2b0><== NOT EXECUTED
200d6e0: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
p[ doubly ] = (block_p) p1;
200d6e4: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED
}
return (block_p *)&p1[ singly ];
200d6e8: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED
200d6ec: 81 c7 e0 08 ret <== NOT EXECUTED
200d6f0: 91 ea 00 11 restore %o0, %l1, %o0 <== NOT EXECUTED
}
if ( !p )
200d6f4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200d6f8: 22 80 00 51 be,a 200d83c <IMFS_memfile_get_block_pointer+0x2b0><== NOT EXECUTED
200d6fc: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
p = (block_p *)p[ doubly ];
200d700: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED
200d704: 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 ];
200d708: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED
if ( !p )
return 0;
p = (block_p *)p[ doubly ];
if ( !p )
200d70c: 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 ];
200d710: 10 80 00 48 b 200d830 <IMFS_memfile_get_block_pointer+0x2a4><== NOT EXECUTED
200d714: 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 ) {
200d718: 90 02 20 01 inc %o0 <== NOT EXECUTED
200d71c: 40 00 2c 99 call 2018980 <.umul> <== NOT EXECUTED
200d720: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
200d724: 90 02 3f ff add %o0, -1, %o0 <== NOT EXECUTED
200d728: 80 a6 40 08 cmp %i1, %o0 <== NOT EXECUTED
200d72c: 18 80 00 43 bgu 200d838 <IMFS_memfile_get_block_pointer+0x2ac><== NOT EXECUTED
200d730: b2 26 40 11 sub %i1, %l1, %i1 <== NOT EXECUTED
my_block -= FIRST_TRIPLY_INDIRECT;
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
200d734: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
200d738: 40 00 2d 78 call 2018d18 <.urem> <== NOT EXECUTED
200d73c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
200d740: 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;
200d744: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
200d748: 40 00 2c c8 call 2018a68 <.udiv> <== NOT EXECUTED
200d74c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;
200d750: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
200d754: 40 00 2c c5 call 2018a68 <.udiv> <== NOT EXECUTED
200d758: b2 10 00 08 mov %o0, %i1 <== NOT EXECUTED
doubly %= IMFS_MEMFILE_BLOCK_SLOTS;
200d75c: 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;
200d760: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
doubly %= IMFS_MEMFILE_BLOCK_SLOTS;
200d764: 40 00 2d 6d call 2018d18 <.urem> <== NOT EXECUTED
200d768: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
p = info->triply_indirect;
if ( malloc_it ) {
200d76c: 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;
200d770: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
p = info->triply_indirect;
if ( malloc_it ) {
200d774: 02 80 00 23 be 200d800 <IMFS_memfile_get_block_pointer+0x274><== NOT EXECUTED
200d778: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 <== NOT EXECUTED
if ( !p ) {
200d77c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200d780: 12 80 00 08 bne 200d7a0 <IMFS_memfile_get_block_pointer+0x214><== NOT EXECUTED
200d784: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED
p = memfile_alloc_block();
200d788: 7f ff ff 74 call 200d558 <memfile_alloc_block> <== NOT EXECUTED
200d78c: 01 00 00 00 nop <== NOT EXECUTED
if ( !p )
200d790: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED
200d794: 22 80 00 2a be,a 200d83c <IMFS_memfile_get_block_pointer+0x2b0><== NOT EXECUTED
200d798: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
info->triply_indirect = p;
200d79c: c2 26 20 60 st %g1, [ %i0 + 0x60 ] <== NOT EXECUTED
}
p1 = (block_p *) p[ triply ];
200d7a0: c4 00 40 11 ld [ %g1 + %l1 ], %g2 <== NOT EXECUTED
if ( !p1 ) {
200d7a4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
200d7a8: 12 80 00 08 bne 200d7c8 <IMFS_memfile_get_block_pointer+0x23c><== NOT EXECUTED
200d7ac: a2 00 40 11 add %g1, %l1, %l1 <== NOT EXECUTED
p1 = memfile_alloc_block();
200d7b0: 7f ff ff 6a call 200d558 <memfile_alloc_block> <== NOT EXECUTED
200d7b4: 01 00 00 00 nop <== NOT EXECUTED
if ( !p1 )
200d7b8: 84 92 20 00 orcc %o0, 0, %g2 <== NOT EXECUTED
200d7bc: 02 80 00 20 be 200d83c <IMFS_memfile_get_block_pointer+0x2b0><== NOT EXECUTED
200d7c0: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
p[ triply ] = (block_p) p1;
200d7c4: c4 24 40 00 st %g2, [ %l1 ] <== NOT EXECUTED
}
p2 = (block_p *)p1[ doubly ];
200d7c8: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED
200d7cc: d0 00 80 10 ld [ %g2 + %l0 ], %o0 <== NOT EXECUTED
if ( !p2 ) {
200d7d0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200d7d4: 12 80 00 08 bne 200d7f4 <IMFS_memfile_get_block_pointer+0x268><== NOT EXECUTED
200d7d8: a0 00 80 10 add %g2, %l0, %l0 <== NOT EXECUTED
p2 = memfile_alloc_block();
200d7dc: 7f ff ff 5f call 200d558 <memfile_alloc_block> <== NOT EXECUTED
200d7e0: 01 00 00 00 nop <== NOT EXECUTED
if ( !p2 )
200d7e4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200d7e8: 22 80 00 15 be,a 200d83c <IMFS_memfile_get_block_pointer+0x2b0><== NOT EXECUTED
200d7ec: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
p1[ doubly ] = (block_p) p2;
200d7f0: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED
}
return (block_p *)&p2[ singly ];
200d7f4: a5 2c a0 02 sll %l2, 2, %l2 <== NOT EXECUTED
200d7f8: 81 c7 e0 08 ret <== NOT EXECUTED
200d7fc: 91 ea 00 12 restore %o0, %l2, %o0 <== NOT EXECUTED
}
if ( !p )
200d800: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200d804: 02 80 00 0e be 200d83c <IMFS_memfile_get_block_pointer+0x2b0><== NOT EXECUTED
200d808: 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 ];
200d80c: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED
200d810: c2 00 40 11 ld [ %g1 + %l1 ], %g1 <== NOT EXECUTED
if ( !p1 )
200d814: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200d818: 02 80 00 09 be 200d83c <IMFS_memfile_get_block_pointer+0x2b0><== NOT EXECUTED
200d81c: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED
return 0;
p2 = (block_p *)p1[ doubly ];
200d820: c2 00 40 10 ld [ %g1 + %l0 ], %g1 <== NOT EXECUTED
if ( !p2 )
return 0;
return (block_p *)&p2[ singly ];
200d824: 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 )
200d828: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
return 0;
return (block_p *)&p2[ singly ];
200d82c: 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 )
200d830: 12 80 00 03 bne 200d83c <IMFS_memfile_get_block_pointer+0x2b0><== ALWAYS TAKEN
200d834: 01 00 00 00 nop
return 0;
return (block_p *)&p2[ singly ];
200d838: b0 10 20 00 clr %i0 ! 0 <PROM_START> <== NOT EXECUTED
/*
* This means the requested block number is out of range.
*/
return 0;
}
200d83c: 81 c7 e0 08 ret
200d840: 81 e8 00 00 restore
0200e224 <IMFS_memfile_read>:
IMFS_jnode_t *the_jnode,
off_t start,
unsigned char *destination,
unsigned int length
)
{
200e224: 9d e3 bf 98 save %sp, -104, %sp
/*
* Perform internal consistency checks
*/
assert( the_jnode );
200e228: a0 96 20 00 orcc %i0, 0, %l0
IMFS_jnode_t *the_jnode,
off_t start,
unsigned char *destination,
unsigned int length
)
{
200e22c: a4 10 00 19 mov %i1, %l2
/*
* Perform internal consistency checks
*/
assert( the_jnode );
200e230: 12 80 00 0a bne 200e258 <IMFS_memfile_read+0x34> <== ALWAYS TAKEN
200e234: a6 10 00 1a mov %i2, %l3
200e238: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED
200e23c: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED
200e240: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED
200e244: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED
200e248: 94 12 a3 60 or %o2, 0x360, %o2 <== NOT EXECUTED
200e24c: 96 12 e2 40 or %o3, 0x240, %o3 <== NOT EXECUTED
200e250: 10 80 00 0e b 200e288 <IMFS_memfile_read+0x64> <== NOT EXECUTED
200e254: 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 ||
200e258: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
200e25c: 84 00 7f fb add %g1, -5, %g2
200e260: 80 a0 a0 01 cmp %g2, 1
200e264: 08 80 00 0b bleu 200e290 <IMFS_memfile_read+0x6c> <== ALWAYS TAKEN
200e268: 80 a6 e0 00 cmp %i3, 0
200e26c: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED
200e270: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED
200e274: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED
200e278: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED
200e27c: 94 12 a3 60 or %o2, 0x360, %o2 <== NOT EXECUTED
200e280: 96 12 e2 d0 or %o3, 0x2d0, %o3 <== NOT EXECUTED
200e284: 92 10 22 51 mov 0x251, %o1 <== NOT EXECUTED
200e288: 7f ff f6 33 call 200bb54 <__assert_func> <== NOT EXECUTED
200e28c: 01 00 00 00 nop <== NOT EXECUTED
/*
* Error checks on arguments
*/
assert( dest );
200e290: 32 80 00 0a bne,a 200e2b8 <IMFS_memfile_read+0x94> <== ALWAYS TAKEN
200e294: 80 a7 20 00 cmp %i4, 0
200e298: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED
200e29c: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED
200e2a0: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED
200e2a4: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED
200e2a8: 94 12 a3 60 or %o2, 0x360, %o2 <== NOT EXECUTED
200e2ac: 96 12 e3 20 or %o3, 0x320, %o3 <== NOT EXECUTED
200e2b0: 10 bf ff f6 b 200e288 <IMFS_memfile_read+0x64> <== NOT EXECUTED
200e2b4: 92 10 22 5a mov 0x25a, %o1 <== NOT EXECUTED
/*
* If there is nothing to read, then quick exit.
*/
my_length = length;
if ( !my_length )
200e2b8: 12 80 00 08 bne 200e2d8 <IMFS_memfile_read+0xb4> <== ALWAYS TAKEN
200e2bc: 80 a0 60 06 cmp %g1, 6
rtems_set_errno_and_return_minus_one( EINVAL );
200e2c0: 40 00 04 97 call 200f51c <__errno> <== NOT EXECUTED
200e2c4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200e2c8: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
200e2cc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200e2d0: 81 c7 e0 08 ret <== NOT EXECUTED
200e2d4: 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) {
200e2d8: 32 80 00 1c bne,a 200e348 <IMFS_memfile_read+0x124> <== ALWAYS TAKEN
200e2dc: 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))
200e2e0: d8 1c 20 50 ldd [ %l0 + 0x50 ], %o4 <== NOT EXECUTED
200e2e4: 82 10 20 00 clr %g1 <== NOT EXECUTED
200e2e8: 86 a3 40 1a subcc %o5, %i2, %g3 <== NOT EXECUTED
200e2ec: 84 63 00 19 subx %o4, %i1, %g2 <== NOT EXECUTED
200e2f0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
200e2f4: 14 80 00 09 bg 200e318 <IMFS_memfile_read+0xf4> <== NOT EXECUTED
200e2f8: d2 04 20 58 ld [ %l0 + 0x58 ], %o1 <== NOT EXECUTED
200e2fc: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
200e300: 12 80 00 04 bne 200e310 <IMFS_memfile_read+0xec> <== NOT EXECUTED
200e304: 80 a7 00 03 cmp %i4, %g3 <== NOT EXECUTED
200e308: 38 80 00 05 bgu,a 200e31c <IMFS_memfile_read+0xf8> <== NOT EXECUTED
200e30c: b0 23 40 13 sub %o5, %l3, %i0 <== NOT EXECUTED
200e310: 10 80 00 03 b 200e31c <IMFS_memfile_read+0xf8> <== NOT EXECUTED
200e314: b0 10 00 1c mov %i4, %i0 <== NOT EXECUTED
my_length = the_jnode->info.linearfile.size - start;
200e318: b0 23 40 13 sub %o5, %l3, %i0 <== NOT EXECUTED
memcpy(dest, &file_ptr[start], my_length);
200e31c: 92 02 40 13 add %o1, %l3, %o1 <== NOT EXECUTED
200e320: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
200e324: 40 00 06 ba call 200fe0c <memcpy> <== NOT EXECUTED
200e328: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
IMFS_update_atime( the_jnode );
200e32c: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED
200e330: 7f ff d2 1d call 2002ba4 <gettimeofday> <== NOT EXECUTED
200e334: 92 10 20 00 clr %o1 <== NOT EXECUTED
200e338: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
200e33c: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED
return my_length;
200e340: 81 c7 e0 08 ret <== NOT EXECUTED
200e344: 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 )
200e348: 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;
200e34c: 82 10 00 1a mov %i2, %g1
if ( last_byte > the_jnode->info.file.size )
200e350: 80 a1 00 03 cmp %g4, %g3
200e354: c4 04 20 54 ld [ %l0 + 0x54 ], %g2
200e358: 14 80 00 08 bg 200e378 <IMFS_memfile_read+0x154> <== NEVER TAKEN
200e35c: 9a 07 00 1a add %i4, %i2, %o5
200e360: 80 a1 00 03 cmp %g4, %g3
200e364: 32 80 00 07 bne,a 200e380 <IMFS_memfile_read+0x15c> <== NEVER TAKEN
200e368: 03 00 80 71 sethi %hi(0x201c400), %g1 <== NOT EXECUTED
200e36c: 80 a3 40 02 cmp %o5, %g2
200e370: 28 80 00 04 bleu,a 200e380 <IMFS_memfile_read+0x15c>
200e374: 03 00 80 71 sethi %hi(0x201c400), %g1
my_length = the_jnode->info.file.size - start;
200e378: 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;
200e37c: 03 00 80 71 sethi %hi(0x201c400), %g1
200e380: e2 00 63 bc ld [ %g1 + 0x3bc ], %l1 ! 201c7bc <imfs_memfile_bytes_per_block>
200e384: 90 10 00 12 mov %l2, %o0
200e388: ab 3c 60 1f sra %l1, 0x1f, %l5
200e38c: 96 10 00 11 mov %l1, %o3
200e390: 94 10 00 15 mov %l5, %o2
200e394: 40 00 2b f4 call 2019364 <__moddi3>
200e398: 92 10 00 13 mov %l3, %o1
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
200e39c: 90 10 00 12 mov %l2, %o0
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
200e3a0: a8 10 00 09 mov %o1, %l4
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
200e3a4: 94 10 00 15 mov %l5, %o2
200e3a8: 92 10 00 13 mov %l3, %o1
200e3ac: 40 00 2b 07 call 2018fc8 <__divdi3>
200e3b0: 96 10 00 11 mov %l1, %o3
if ( start_offset ) {
200e3b4: 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;
200e3b8: a4 10 00 09 mov %o1, %l2
if ( start_offset ) {
200e3bc: aa 10 00 1b mov %i3, %l5
200e3c0: 02 80 00 1c be 200e430 <IMFS_memfile_read+0x20c>
200e3c4: 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 );
200e3c8: 90 10 00 10 mov %l0, %o0
200e3cc: 7f ff fc 70 call 200d58c <IMFS_memfile_get_block_pointer>
200e3d0: 94 10 20 00 clr %o2
assert( block_ptr );
200e3d4: 80 a2 20 00 cmp %o0, 0
200e3d8: 32 80 00 0a bne,a 200e400 <IMFS_memfile_read+0x1dc> <== ALWAYS TAKEN
200e3dc: a2 24 40 14 sub %l1, %l4, %l1
200e3e0: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED
200e3e4: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED
200e3e8: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED
200e3ec: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED
200e3f0: 94 12 a3 60 or %o2, 0x360, %o2 <== NOT EXECUTED
200e3f4: 96 12 e2 88 or %o3, 0x288, %o3 <== NOT EXECUTED
200e3f8: 10 bf ff a4 b 200e288 <IMFS_memfile_read+0x64> <== NOT EXECUTED
200e3fc: 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;
200e400: 80 a7 00 11 cmp %i4, %l1
200e404: 08 80 00 03 bleu 200e410 <IMFS_memfile_read+0x1ec>
200e408: 94 10 00 1c mov %i4, %o2
200e40c: 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 );
200e410: d2 02 00 00 ld [ %o0 ], %o1
dest += to_copy;
200e414: 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 );
200e418: 92 02 40 14 add %o1, %l4, %o1
dest += to_copy;
block++;
200e41c: a4 04 a0 01 inc %l2
my_length -= to_copy;
200e420: b8 27 00 0a sub %i4, %o2, %i4
200e424: 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 );
200e428: 40 00 06 79 call 200fe0c <memcpy>
200e42c: 90 10 00 1b mov %i3, %o0
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
200e430: 03 00 80 71 sethi %hi(0x201c400), %g1
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
200e434: a8 10 63 bc or %g1, 0x3bc, %l4 ! 201c7bc <imfs_memfile_bytes_per_block>
200e438: 10 80 00 17 b 200e494 <IMFS_memfile_read+0x270>
200e43c: e2 00 63 bc ld [ %g1 + 0x3bc ], %l1
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
200e440: 92 10 00 12 mov %l2, %o1
200e444: 7f ff fc 52 call 200d58c <IMFS_memfile_get_block_pointer>
200e448: 94 10 20 00 clr %o2
assert( block_ptr );
200e44c: 80 a2 20 00 cmp %o0, 0
200e450: 32 80 00 0a bne,a 200e478 <IMFS_memfile_read+0x254> <== ALWAYS TAKEN
200e454: d2 02 00 00 ld [ %o0 ], %o1
200e458: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED
200e45c: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED
200e460: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED
200e464: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED
200e468: 94 12 a3 60 or %o2, 0x360, %o2 <== NOT EXECUTED
200e46c: 96 12 e2 88 or %o3, 0x288, %o3 <== NOT EXECUTED
200e470: 10 bf ff 86 b 200e288 <IMFS_memfile_read+0x64> <== NOT EXECUTED
200e474: 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++;
200e478: 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 );
200e47c: 90 10 00 15 mov %l5, %o0
dest += to_copy;
block++;
my_length -= to_copy;
200e480: b8 27 00 11 sub %i4, %l1, %i4
copied += to_copy;
200e484: 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;
200e488: 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 );
200e48c: 40 00 06 60 call 200fe0c <memcpy>
200e490: 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 ) {
200e494: c2 05 00 00 ld [ %l4 ], %g1
200e498: 80 a7 00 01 cmp %i4, %g1
200e49c: 1a bf ff e9 bcc 200e440 <IMFS_memfile_read+0x21c>
200e4a0: 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 ) {
200e4a4: 80 a7 20 00 cmp %i4, 0
200e4a8: 02 80 00 16 be 200e500 <IMFS_memfile_read+0x2dc>
200e4ac: 90 07 bf f8 add %fp, -8, %o0
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
200e4b0: 92 10 00 12 mov %l2, %o1
200e4b4: 90 10 00 10 mov %l0, %o0
200e4b8: 7f ff fc 35 call 200d58c <IMFS_memfile_get_block_pointer>
200e4bc: 94 10 20 00 clr %o2
assert( block_ptr );
200e4c0: 80 a2 20 00 cmp %o0, 0
200e4c4: 32 80 00 0a bne,a 200e4ec <IMFS_memfile_read+0x2c8> <== ALWAYS TAKEN
200e4c8: d2 02 00 00 ld [ %o0 ], %o1
200e4cc: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED
200e4d0: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED
200e4d4: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED
200e4d8: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED
200e4dc: 94 12 a3 60 or %o2, 0x360, %o2 <== NOT EXECUTED
200e4e0: 96 12 e2 88 or %o3, 0x288, %o3 <== NOT EXECUTED
200e4e4: 10 bf ff 69 b 200e288 <IMFS_memfile_read+0x64> <== NOT EXECUTED
200e4e8: 92 10 22 b9 mov 0x2b9, %o1 <== NOT EXECUTED
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], my_length );
copied += my_length;
200e4ec: 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 );
200e4f0: 90 10 00 15 mov %l5, %o0
200e4f4: 40 00 06 46 call 200fe0c <memcpy>
200e4f8: 94 10 00 1c mov %i4, %o2
copied += my_length;
}
IMFS_update_atime( the_jnode );
200e4fc: 90 07 bf f8 add %fp, -8, %o0
200e500: 7f ff d1 a9 call 2002ba4 <gettimeofday>
200e504: 92 10 20 00 clr %o1
200e508: c2 07 bf f8 ld [ %fp + -8 ], %g1
200e50c: c2 24 20 40 st %g1, [ %l0 + 0x40 ]
return copied;
}
200e510: 81 c7 e0 08 ret
200e514: 81 e8 00 00 restore
0200d90c <IMFS_memfile_remove>:
*/
int IMFS_memfile_remove(
IMFS_jnode_t *the_jnode
)
{
200d90c: 9d e3 bf a0 save %sp, -96, %sp
/*
* Perform internal consistency checks
*/
assert( the_jnode );
200d910: 80 a6 20 00 cmp %i0, 0
200d914: 32 80 00 0a bne,a 200d93c <IMFS_memfile_remove+0x30> <== ALWAYS TAKEN
200d918: c2 06 20 4c ld [ %i0 + 0x4c ], %g1
200d91c: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED
200d920: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED
200d924: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED
200d928: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED
200d92c: 94 12 a3 78 or %o2, 0x378, %o2 <== NOT EXECUTED
200d930: 96 12 e2 40 or %o3, 0x240, %o3 <== NOT EXECUTED
200d934: 10 80 00 0c b 200d964 <IMFS_memfile_remove+0x58> <== NOT EXECUTED
200d938: 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 );
200d93c: 80 a0 60 05 cmp %g1, 5
200d940: 02 80 00 0b be 200d96c <IMFS_memfile_remove+0x60> <== ALWAYS TAKEN
200d944: 03 00 80 71 sethi %hi(0x201c400), %g1
200d948: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED
200d94c: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED
200d950: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED
200d954: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED
200d958: 94 12 a3 78 or %o2, 0x378, %o2 <== NOT EXECUTED
200d95c: 96 12 e2 50 or %o3, 0x250, %o3 <== NOT EXECUTED
200d960: 92 10 21 f2 mov 0x1f2, %o1 <== NOT EXECUTED
200d964: 7f ff f8 7c call 200bb54 <__assert_func> <== NOT EXECUTED
200d968: 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;
200d96c: e0 00 63 bc ld [ %g1 + 0x3bc ], %l0
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
200d970: c2 06 20 58 ld [ %i0 + 0x58 ], %g1
200d974: 80 a0 60 00 cmp %g1, 0
200d978: 02 80 00 05 be 200d98c <IMFS_memfile_remove+0x80>
200d97c: a1 34 20 02 srl %l0, 2, %l0
if ( info->indirect ) {
memfile_free_blocks_in_table( &info->indirect, to_free );
200d980: 90 06 20 58 add %i0, 0x58, %o0
200d984: 7f ff ff b0 call 200d844 <memfile_free_blocks_in_table>
200d988: 92 10 00 10 mov %l0, %o1
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
200d98c: c2 06 20 5c ld [ %i0 + 0x5c ], %g1
200d990: 80 a0 60 00 cmp %g1, 0
200d994: 22 80 00 17 be,a 200d9f0 <IMFS_memfile_remove+0xe4> <== ALWAYS TAKEN
200d998: 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++ ) {
200d99c: 25 00 80 71 sethi %hi(0x201c400), %l2 <== NOT EXECUTED
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
200d9a0: 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++ ) {
200d9a4: 10 80 00 0a b 200d9cc <IMFS_memfile_remove+0xc0> <== NOT EXECUTED
200d9a8: a4 14 a3 bc or %l2, 0x3bc, %l2 <== NOT EXECUTED
if ( info->doubly_indirect[i] ) {
200d9ac: 83 2c 60 02 sll %l1, 2, %g1 <== NOT EXECUTED
200d9b0: c4 02 00 01 ld [ %o0 + %g1 ], %g2 <== NOT EXECUTED
200d9b4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
200d9b8: 02 80 00 04 be 200d9c8 <IMFS_memfile_remove+0xbc> <== NOT EXECUTED
200d9bc: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED
memfile_free_blocks_in_table(
200d9c0: 7f ff ff a1 call 200d844 <memfile_free_blocks_in_table> <== NOT EXECUTED
200d9c4: 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++ ) {
200d9c8: a2 04 60 01 inc %l1 <== NOT EXECUTED
200d9cc: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED
200d9d0: 83 30 60 02 srl %g1, 2, %g1 <== NOT EXECUTED
200d9d4: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
200d9d8: 2a bf ff f5 bcs,a 200d9ac <IMFS_memfile_remove+0xa0> <== NOT EXECUTED
200d9dc: 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 );
200d9e0: 90 06 20 5c add %i0, 0x5c, %o0 <== NOT EXECUTED
200d9e4: 7f ff ff 98 call 200d844 <memfile_free_blocks_in_table> <== NOT EXECUTED
200d9e8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
200d9ec: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 <== NOT EXECUTED
200d9f0: 80 a0 60 00 cmp %g1, 0
200d9f4: 02 80 00 25 be 200da88 <IMFS_memfile_remove+0x17c> <== ALWAYS TAKEN
200d9f8: 29 00 80 71 sethi %hi(0x201c400), %l4
200d9fc: 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++ ) {
200da00: 10 80 00 1a b 200da68 <IMFS_memfile_remove+0x15c> <== NOT EXECUTED
200da04: a8 15 23 bc or %l4, 0x3bc, %l4 <== NOT EXECUTED
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
200da08: 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];
200da0c: e4 00 40 15 ld [ %g1 + %l5 ], %l2 <== NOT EXECUTED
if ( !p ) /* ensure we have a valid pointer */
200da10: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
200da14: 02 80 00 1b be 200da80 <IMFS_memfile_remove+0x174> <== NOT EXECUTED
200da18: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED
200da1c: 10 80 00 09 b 200da40 <IMFS_memfile_remove+0x134> <== NOT EXECUTED
200da20: a6 10 20 00 clr %l3 <== NOT EXECUTED
break;
for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {
if ( p[j] ) {
200da24: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200da28: 02 80 00 04 be 200da38 <IMFS_memfile_remove+0x12c> <== NOT EXECUTED
200da2c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
200da30: 7f ff ff 85 call 200d844 <memfile_free_blocks_in_table> <== NOT EXECUTED
200da34: 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++ ) {
200da38: a6 04 e0 01 inc %l3 <== NOT EXECUTED
200da3c: a4 04 a0 04 add %l2, 4, %l2 <== NOT EXECUTED
200da40: c2 05 00 00 ld [ %l4 ], %g1 <== NOT EXECUTED
200da44: 83 30 60 02 srl %g1, 2, %g1 <== NOT EXECUTED
200da48: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED
200da4c: 2a bf ff f6 bcs,a 200da24 <IMFS_memfile_remove+0x118> <== NOT EXECUTED
200da50: 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(
200da54: 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++ ) {
200da58: 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(
200da5c: 90 02 00 15 add %o0, %l5, %o0 <== NOT EXECUTED
200da60: 7f ff ff 79 call 200d844 <memfile_free_blocks_in_table> <== NOT EXECUTED
200da64: 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++ ) {
200da68: c2 05 00 00 ld [ %l4 ], %g1 <== NOT EXECUTED
200da6c: 83 30 60 02 srl %g1, 2, %g1 <== NOT EXECUTED
200da70: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
200da74: 2a bf ff e5 bcs,a 200da08 <IMFS_memfile_remove+0xfc> <== NOT EXECUTED
200da78: 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(
200da7c: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED
200da80: 7f ff ff 71 call 200d844 <memfile_free_blocks_in_table> <== NOT EXECUTED
200da84: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
(block_p **)&info->triply_indirect, to_free );
}
return 0;
}
200da88: 81 c7 e0 08 ret
200da8c: 91 e8 20 00 restore %g0, 0, %o0
0200d8b8 <IMFS_memfile_remove_block>:
MEMFILE_STATIC int IMFS_memfile_remove_block(
IMFS_jnode_t *the_jnode,
unsigned int block
)
{
200d8b8: 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 );
200d8bc: 94 10 20 00 clr %o2 <== NOT EXECUTED
200d8c0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
200d8c4: 7f ff ff 32 call 200d58c <IMFS_memfile_get_block_pointer> <== NOT EXECUTED
200d8c8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
assert( block_ptr );
200d8cc: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED
200d8d0: 32 80 00 0a bne,a 200d8f8 <IMFS_memfile_remove_block+0x40><== NOT EXECUTED
200d8d4: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
200d8d8: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED
200d8dc: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED
200d8e0: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED
200d8e4: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED
200d8e8: 94 12 a3 b0 or %o2, 0x3b0, %o2 <== NOT EXECUTED
200d8ec: 96 12 e2 88 or %o3, 0x288, %o3 <== NOT EXECUTED
200d8f0: 7f ff f8 99 call 200bb54 <__assert_func> <== NOT EXECUTED
200d8f4: 92 10 21 96 mov 0x196, %o1 <== NOT EXECUTED
*block_ptr = 0;
memfile_free_block( ptr );
}
return 1;
}
200d8f8: 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 );
200d8fc: 7f ff ff 0e call 200d534 <memfile_free_block> <== NOT EXECUTED
200d900: c0 20 40 00 clr [ %g1 ] <== NOT EXECUTED
}
return 1;
}
200d904: 81 c7 e0 08 ret <== NOT EXECUTED
200d908: 81 e8 00 00 restore <== NOT EXECUTED
0200dec0 <IMFS_memfile_write>:
IMFS_jnode_t *the_jnode,
off_t start,
const unsigned char *source,
unsigned int length
)
{
200dec0: 9d e3 bf 98 save %sp, -104, %sp
/*
* Perform internal consistency checks
*/
assert( the_jnode );
200dec4: a0 96 20 00 orcc %i0, 0, %l0
200dec8: 32 80 00 0a bne,a 200def0 <IMFS_memfile_write+0x30> <== ALWAYS TAKEN
200decc: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
200ded0: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED
200ded4: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED
200ded8: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED
200dedc: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED
200dee0: 94 12 a3 48 or %o2, 0x348, %o2 <== NOT EXECUTED
200dee4: 96 12 e2 40 or %o3, 0x240, %o3 <== NOT EXECUTED
200dee8: 10 80 00 8c b 200e118 <IMFS_memfile_write+0x258> <== NOT EXECUTED
200deec: 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 );
200def0: 80 a0 60 05 cmp %g1, 5
200def4: 02 80 00 0a be 200df1c <IMFS_memfile_write+0x5c> <== ALWAYS TAKEN
200def8: 80 a6 e0 00 cmp %i3, 0
200defc: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED
200df00: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED
200df04: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED
200df08: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED
200df0c: 94 12 a3 48 or %o2, 0x348, %o2 <== NOT EXECUTED
200df10: 96 12 e2 50 or %o3, 0x250, %o3 <== NOT EXECUTED
200df14: 10 80 00 81 b 200e118 <IMFS_memfile_write+0x258> <== NOT EXECUTED
200df18: 92 10 22 e7 mov 0x2e7, %o1 <== NOT EXECUTED
/*
* Error check arguments
*/
assert( source );
200df1c: 12 80 00 0a bne 200df44 <IMFS_memfile_write+0x84> <== ALWAYS TAKEN
200df20: 80 a7 20 00 cmp %i4, 0
200df24: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED
200df28: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED
200df2c: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED
200df30: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED
200df34: 94 12 a3 48 or %o2, 0x348, %o2 <== NOT EXECUTED
200df38: 96 12 e2 98 or %o3, 0x298, %o3 <== NOT EXECUTED
200df3c: 10 80 00 77 b 200e118 <IMFS_memfile_write+0x258> <== NOT EXECUTED
200df40: 92 10 22 ef mov 0x2ef, %o1 <== NOT EXECUTED
/*
* If there is nothing to write, then quick exit.
*/
my_length = length;
if ( !my_length )
200df44: 32 80 00 06 bne,a 200df5c <IMFS_memfile_write+0x9c> <== ALWAYS TAKEN
200df48: c2 04 20 50 ld [ %l0 + 0x50 ], %g1
rtems_set_errno_and_return_minus_one( EINVAL );
200df4c: 40 00 05 74 call 200f51c <__errno> <== NOT EXECUTED
200df50: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200df54: 10 80 00 15 b 200dfa8 <IMFS_memfile_write+0xe8> <== NOT EXECUTED
200df58: 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 ) {
200df5c: 80 a0 60 00 cmp %g1, 0
200df60: 06 80 00 09 bl 200df84 <IMFS_memfile_write+0xc4> <== NEVER TAKEN
200df64: 94 07 00 1a add %i4, %i2, %o2
200df68: 80 a0 60 00 cmp %g1, 0
200df6c: 12 80 00 12 bne 200dfb4 <IMFS_memfile_write+0xf4> <== NEVER TAKEN
200df70: 03 00 80 71 sethi %hi(0x201c400), %g1
200df74: c2 04 20 54 ld [ %l0 + 0x54 ], %g1
200df78: 80 a0 40 0a cmp %g1, %o2
200df7c: 1a 80 00 0e bcc 200dfb4 <IMFS_memfile_write+0xf4> <== NEVER TAKEN
200df80: 03 00 80 71 sethi %hi(0x201c400), %g1
status = IMFS_memfile_extend( the_jnode, last_byte );
200df84: 90 10 00 10 mov %l0, %o0
200df88: 7f ff ff 24 call 200dc18 <IMFS_memfile_extend>
200df8c: 92 10 20 00 clr %o1
if ( status )
200df90: 80 a2 20 00 cmp %o0, 0
200df94: 02 80 00 08 be 200dfb4 <IMFS_memfile_write+0xf4> <== ALWAYS TAKEN
200df98: 03 00 80 71 sethi %hi(0x201c400), %g1
rtems_set_errno_and_return_minus_one( ENOSPC );
200df9c: 40 00 05 60 call 200f51c <__errno> <== NOT EXECUTED
200dfa0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200dfa4: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED
200dfa8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200dfac: 81 c7 e0 08 ret <== NOT EXECUTED
200dfb0: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
200dfb4: e2 00 63 bc ld [ %g1 + 0x3bc ], %l1
200dfb8: 92 10 00 1a mov %i2, %o1
200dfbc: a7 3c 60 1f sra %l1, 0x1f, %l3
200dfc0: 96 10 00 11 mov %l1, %o3
200dfc4: 94 10 00 13 mov %l3, %o2
200dfc8: 40 00 2c e7 call 2019364 <__moddi3>
200dfcc: 90 10 00 19 mov %i1, %o0
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
200dfd0: 94 10 00 13 mov %l3, %o2
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
200dfd4: a4 10 00 09 mov %o1, %l2
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
200dfd8: 90 10 00 19 mov %i1, %o0
200dfdc: 92 10 00 1a mov %i2, %o1
200dfe0: 40 00 2b fa call 2018fc8 <__divdi3>
200dfe4: 96 10 00 11 mov %l1, %o3
if ( start_offset ) {
200dfe8: 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;
200dfec: a6 10 00 09 mov %o1, %l3
if ( start_offset ) {
200dff0: 80 a4 a0 00 cmp %l2, 0
200dff4: 02 80 00 1b be 200e060 <IMFS_memfile_write+0x1a0>
200dff8: 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 );
200dffc: 90 10 00 10 mov %l0, %o0
200e000: 7f ff fd 63 call 200d58c <IMFS_memfile_get_block_pointer>
200e004: 94 10 20 00 clr %o2
assert( block_ptr );
200e008: 80 a2 20 00 cmp %o0, 0
200e00c: 32 80 00 0a bne,a 200e034 <IMFS_memfile_write+0x174> <== ALWAYS TAKEN
200e010: 94 24 40 12 sub %l1, %l2, %o2
200e014: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED
200e018: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED
200e01c: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED
200e020: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED
200e024: 94 12 a3 48 or %o2, 0x348, %o2 <== NOT EXECUTED
200e028: 96 12 e2 88 or %o3, 0x288, %o3 <== NOT EXECUTED
200e02c: 10 80 00 3b b 200e118 <IMFS_memfile_write+0x258> <== NOT EXECUTED
200e030: 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;
200e034: 80 a2 80 1c cmp %o2, %i4
200e038: 38 80 00 02 bgu,a 200e040 <IMFS_memfile_write+0x180>
200e03c: 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 );
200e040: d0 02 00 00 ld [ %o0 ], %o0
src += to_copy;
200e044: 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 );
200e048: 90 02 00 12 add %o0, %l2, %o0
src += to_copy;
block++;
200e04c: a6 04 e0 01 inc %l3
my_length -= to_copy;
200e050: b8 27 00 0a sub %i4, %o2, %i4
copied += to_copy;
200e054: 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 );
200e058: 40 00 07 6d call 200fe0c <memcpy>
200e05c: 92 10 00 1b mov %i3, %o1
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
200e060: 03 00 80 71 sethi %hi(0x201c400), %g1
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
200e064: a4 10 63 bc or %g1, 0x3bc, %l2 ! 201c7bc <imfs_memfile_bytes_per_block>
200e068: 10 80 00 17 b 200e0c4 <IMFS_memfile_write+0x204>
200e06c: e2 00 63 bc ld [ %g1 + 0x3bc ], %l1
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
200e070: 92 10 00 13 mov %l3, %o1
200e074: 7f ff fd 46 call 200d58c <IMFS_memfile_get_block_pointer>
200e078: 94 10 20 00 clr %o2
assert( block_ptr );
200e07c: 80 a2 20 00 cmp %o0, 0
200e080: 32 80 00 0a bne,a 200e0a8 <IMFS_memfile_write+0x1e8> <== ALWAYS TAKEN
200e084: d0 02 00 00 ld [ %o0 ], %o0
200e088: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED
200e08c: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED
200e090: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED
200e094: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED
200e098: 94 12 a3 48 or %o2, 0x348, %o2 <== NOT EXECUTED
200e09c: 96 12 e2 88 or %o3, 0x288, %o3 <== NOT EXECUTED
200e0a0: 10 80 00 1e b 200e118 <IMFS_memfile_write+0x258> <== NOT EXECUTED
200e0a4: 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 );
200e0a8: 92 10 00 1a mov %i2, %o1
src += to_copy;
block++;
200e0ac: a6 04 e0 01 inc %l3
my_length -= to_copy;
200e0b0: 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(
200e0b4: 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;
200e0b8: 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 );
200e0bc: 40 00 07 54 call 200fe0c <memcpy>
200e0c0: 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 ) {
200e0c4: c2 04 80 00 ld [ %l2 ], %g1
200e0c8: 80 a7 00 01 cmp %i4, %g1
200e0cc: 1a bf ff e9 bcc 200e070 <IMFS_memfile_write+0x1b0>
200e0d0: 90 10 00 10 mov %l0, %o0
*/
assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );
to_copy = my_length;
if ( my_length ) {
200e0d4: 80 a7 20 00 cmp %i4, 0
200e0d8: 02 80 00 17 be 200e134 <IMFS_memfile_write+0x274>
200e0dc: 90 07 bf f8 add %fp, -8, %o0
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
200e0e0: 92 10 00 13 mov %l3, %o1
200e0e4: 90 10 00 10 mov %l0, %o0
200e0e8: 7f ff fd 29 call 200d58c <IMFS_memfile_get_block_pointer>
200e0ec: 94 10 20 00 clr %o2
assert( block_ptr );
200e0f0: 80 a2 20 00 cmp %o0, 0
200e0f4: 32 80 00 0b bne,a 200e120 <IMFS_memfile_write+0x260> <== ALWAYS TAKEN
200e0f8: d0 02 00 00 ld [ %o0 ], %o0
200e0fc: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED
200e100: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED
200e104: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED
200e108: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED
200e10c: 94 12 a3 48 or %o2, 0x348, %o2 <== NOT EXECUTED
200e110: 96 12 e2 88 or %o3, 0x288, %o3 <== NOT EXECUTED
200e114: 92 10 23 46 mov 0x346, %o1 <== NOT EXECUTED
200e118: 7f ff f6 8f call 200bb54 <__assert_func> <== NOT EXECUTED
200e11c: 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;
200e120: 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 );
200e124: 92 10 00 1a mov %i2, %o1
200e128: 40 00 07 39 call 200fe0c <memcpy>
200e12c: 94 10 00 1c mov %i4, %o2
my_length = 0;
copied += to_copy;
}
IMFS_mtime_ctime_update( the_jnode );
200e130: 90 07 bf f8 add %fp, -8, %o0
200e134: 7f ff d2 9c call 2002ba4 <gettimeofday>
200e138: 92 10 20 00 clr %o1
200e13c: c2 07 bf f8 ld [ %fp + -8 ], %g1
200e140: c2 24 20 48 st %g1, [ %l0 + 0x48 ]
200e144: c2 24 20 44 st %g1, [ %l0 + 0x44 ]
return copied;
}
200e148: 81 c7 e0 08 ret
200e14c: 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 38 62 call 2010450 <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 7a call 200b8c4 <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 34 75 call 200f51c <__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 21 d0 call 200aaac <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 34 67 call 200f51c <__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 34 5b call 200f51c <__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 96 sethi %hi(0x2025800), %l0
20047e0: 11 00 80 8e sethi %hi(0x2023800), %o0 <== NOT EXECUTED
20047e4: 15 00 80 8f sethi %hi(0x2023c00), %o2 <== NOT EXECUTED
20047e8: 17 00 80 8e sethi %hi(0x2023800), %o3 <== NOT EXECUTED
20047ec: 90 12 23 70 or %o0, 0x370, %o0 <== NOT EXECUTED
20047f0: 94 12 a1 80 or %o2, 0x180, %o2 <== NOT EXECUTED
20047f4: 96 12 e3 c0 or %o3, 0x3c0, %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 22 40 ld [ %l0 + 0x240 ], %g1
2004804: 90 06 20 0c add %i0, 0xc, %o0
2004808: 40 00 3d 41 call 2013d0c <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 22 40 ld [ %l0 + 0x240 ], %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 22 40 ld [ %l0 + 0x240 ], %g1
2004840: 90 10 20 2f mov 0x2f, %o0
2004844: 40 00 3c ee call 2013bfc <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 8f sethi %hi(0x2023c00), %i0
case IMFS_DEVICE:
fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",
2004854: c2 04 22 40 ld [ %l0 + 0x240 ], %g1
2004858: 13 00 80 8e sethi %hi(0x2023800), %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 63 d0 or %o1, 0x3d0, %o1
the_jnode->info.device.major, the_jnode->info.device.minor );
break;
case IMFS_LINEAR_FILE:
fprintf(stdout, " (file %" PRId32 " %p)",
2004870: c2 04 22 40 ld [ %l0 + 0x240 ], %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 8e sethi %hi(0x2023800), %o1 <== NOT EXECUTED
2004884: 92 12 63 e8 or %o1, 0x3e8, %o1 ! 2023be8 <rtems_filesystem_mount_table_size+0x1680><== NOT EXECUTED
2004888: 40 00 3c c3 call 2013b94 <fprintf>
200488c: 31 00 80 8f sethi %hi(0x2023c00), %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 22 40 ld [ %l0 + 0x240 ], %g1
2004898: d4 06 20 54 ld [ %i0 + 0x54 ], %o2
200489c: d0 00 60 08 ld [ %g1 + 8 ], %o0
20048a0: 13 00 80 8e sethi %hi(0x2023800), %o1
20048a4: 40 00 3c bc call 2013b94 <fprintf>
20048a8: 92 12 63 f8 or %o1, 0x3f8, %o1 ! 2023bf8 <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 8f sethi %hi(0x2023c00), %i0
case IMFS_HARD_LINK:
fprintf(stdout, " links not printed\n" );
20048b4: c2 04 22 40 ld [ %l0 + 0x240 ], %g1 <== NOT EXECUTED
20048b8: 11 00 80 8f sethi %hi(0x2023c00), %o0 <== NOT EXECUTED
20048bc: d2 00 60 08 ld [ %g1 + 8 ], %o1 <== NOT EXECUTED
20048c0: 40 00 3d 13 call 2013d0c <fputs> <== NOT EXECUTED
20048c4: 90 12 20 08 or %o0, 8, %o0 <== NOT EXECUTED
assert(0);
20048c8: 92 10 20 5d mov 0x5d, %o1 <== NOT EXECUTED
20048cc: 11 00 80 8e sethi %hi(0x2023800), %o0 <== NOT EXECUTED
20048d0: 15 00 80 8f sethi %hi(0x2023c00), %o2 <== NOT EXECUTED
20048d4: 17 00 80 8f sethi %hi(0x2023c00), %o3 <== NOT EXECUTED
20048d8: 90 12 23 70 or %o0, 0x370, %o0 <== NOT EXECUTED
20048dc: 94 12 a1 80 or %o2, 0x180, %o2 <== NOT EXECUTED
20048e0: 96 12 e0 20 or %o3, 0x20, %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 22 40 ld [ %l0 + 0x240 ], %g1 <== NOT EXECUTED
20048f0: 11 00 80 8f sethi %hi(0x2023c00), %o0 <== NOT EXECUTED
20048f4: d2 00 60 08 ld [ %g1 + 8 ], %o1 <== NOT EXECUTED
20048f8: 40 00 3d 05 call 2013d0c <fputs> <== NOT EXECUTED
20048fc: 90 12 20 08 or %o0, 8, %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 22 40 ld [ %l0 + 0x240 ], %g1 <== NOT EXECUTED
200490c: 11 00 80 8f sethi %hi(0x2023c00), %o0 <== NOT EXECUTED
2004910: d2 00 60 08 ld [ %g1 + 8 ], %o1 <== NOT EXECUTED
2004914: 40 00 3c fe call 2013d0c <fputs> <== NOT EXECUTED
2004918: 90 12 20 28 or %o0, 0x28, %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 8f sethi %hi(0x2023c00), %o1 <== NOT EXECUTED
2004928: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED
200492c: 40 00 3c 9a call 2013b94 <fprintf> <== NOT EXECUTED
2004930: 92 12 60 40 or %o1, 0x40, %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 43 e4 call 20158cc <puts>
2004940: 91 ee 20 50 restore %i0, 0x50, %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 34 4a call 200f51c <__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 38 36 call 2010524 <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 1d call 2006cd8 <_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 0c call 2006ca8 <_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
0200b9a8 <IMFS_rmnod>:
int IMFS_rmnod(
rtems_filesystem_location_info_t *parent_pathloc, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN */
)
{
200b9a8: 9d e3 bf 98 save %sp, -104, %sp
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) pathloc->node_access;
200b9ac: 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 ) {
200b9b0: c2 04 20 08 ld [ %l0 + 8 ], %g1
200b9b4: 80 a0 60 00 cmp %g1, 0
200b9b8: 22 80 00 06 be,a 200b9d0 <IMFS_rmnod+0x28> <== NEVER TAKEN
200b9bc: 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 );
200b9c0: 7f ff ec c6 call 2006cd8 <_Chain_Extract>
200b9c4: 90 10 00 10 mov %l0, %o0
rtems_chain_extract( (rtems_chain_node *) the_jnode );
the_jnode->Parent = NULL;
200b9c8: c0 24 20 08 clr [ %l0 + 8 ]
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
200b9cc: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1
IMFS_update_ctime( the_jnode );
200b9d0: 92 10 20 00 clr %o1
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
200b9d4: 82 00 7f ff add %g1, -1, %g1
IMFS_update_ctime( the_jnode );
200b9d8: 90 07 bf f8 add %fp, -8, %o0
200b9dc: 7f ff dc 72 call 2002ba4 <gettimeofday>
200b9e0: c2 34 20 34 sth %g1, [ %l0 + 0x34 ]
200b9e4: 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) ) {
200b9e8: 90 10 00 10 mov %l0, %o0
200b9ec: 40 00 00 ed call 200bda0 <rtems_libio_is_file_open>
200b9f0: c2 24 20 48 st %g1, [ %l0 + 0x48 ]
200b9f4: 80 a2 20 00 cmp %o0, 0
200b9f8: 12 80 00 18 bne 200ba58 <IMFS_rmnod+0xb0> <== NEVER TAKEN
200b9fc: 01 00 00 00 nop
200ba00: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1
200ba04: 80 a0 60 00 cmp %g1, 0
200ba08: 12 80 00 14 bne 200ba58 <IMFS_rmnod+0xb0> <== NEVER TAKEN
200ba0c: 03 00 80 70 sethi %hi(0x201c000), %g1
/*
* Is rtems_filesystem_current this node?
*/
if ( rtems_filesystem_current.node_access == pathloc->node_access )
200ba10: c2 00 62 80 ld [ %g1 + 0x280 ], %g1 ! 201c280 <rtems_current_user_env>
200ba14: c4 06 40 00 ld [ %i1 ], %g2
200ba18: c6 00 60 04 ld [ %g1 + 4 ], %g3
200ba1c: 80 a0 c0 02 cmp %g3, %g2
200ba20: 22 80 00 02 be,a 200ba28 <IMFS_rmnod+0x80> <== NEVER TAKEN
200ba24: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED
/*
* Free memory associated with a memory file.
*/
if ( the_jnode->type == IMFS_SYM_LINK ) {
200ba28: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
200ba2c: 80 a0 60 04 cmp %g1, 4
200ba30: 12 80 00 08 bne 200ba50 <IMFS_rmnod+0xa8>
200ba34: 01 00 00 00 nop
if ( the_jnode->info.sym_link.name )
200ba38: d0 04 20 50 ld [ %l0 + 0x50 ], %o0
200ba3c: 80 a2 20 00 cmp %o0, 0
200ba40: 02 80 00 04 be 200ba50 <IMFS_rmnod+0xa8> <== NEVER TAKEN
200ba44: 01 00 00 00 nop
free( (void*) the_jnode->info.sym_link.name );
200ba48: 7f ff dc 2d call 2002afc <free>
200ba4c: 01 00 00 00 nop
}
free( the_jnode );
200ba50: 7f ff dc 2b call 2002afc <free>
200ba54: 90 10 00 10 mov %l0, %o0
}
return 0;
}
200ba58: 81 c7 e0 08 ret
200ba5c: 91 e8 20 00 restore %g0, 0, %o0
0200ba78 <IMFS_stat>:
int IMFS_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
200ba78: 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;
200ba7c: c2 06 00 00 ld [ %i0 ], %g1
switch ( the_jnode->type ) {
200ba80: c4 00 60 4c ld [ %g1 + 0x4c ], %g2
200ba84: 84 00 bf fe add %g2, -2, %g2
200ba88: 80 a0 a0 05 cmp %g2, 5
200ba8c: 18 80 00 10 bgu 200bacc <IMFS_stat+0x54> <== NEVER TAKEN
200ba90: 85 28 a0 02 sll %g2, 2, %g2
200ba94: 07 00 80 2e sethi %hi(0x200b800), %g3
200ba98: 86 10 e2 60 or %g3, 0x260, %g3 ! 200ba60 <IMFS_rmnod+0xb8>
200ba9c: c4 00 c0 02 ld [ %g3 + %g2 ], %g2
200baa0: 81 c0 80 00 jmp %g2
200baa4: 01 00 00 00 nop
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
200baa8: 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;
200baac: 10 80 00 0e b 200bae4 <IMFS_stat+0x6c>
200bab0: c4 3e 60 18 std %g2, [ %i1 + 0x18 ]
case IMFS_LINEAR_FILE:
case IMFS_MEMORY_FILE:
buf->st_size = the_jnode->info.file.size;
200bab4: c4 18 60 50 ldd [ %g1 + 0x50 ], %g2
break;
200bab8: 10 80 00 0b b 200bae4 <IMFS_stat+0x6c>
200babc: c4 3e 60 20 std %g2, [ %i1 + 0x20 ]
case IMFS_SYM_LINK:
buf->st_size = 0;
break;
case IMFS_FIFO:
buf->st_size = 0;
200bac0: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED
break;
200bac4: 10 80 00 08 b 200bae4 <IMFS_stat+0x6c> <== NOT EXECUTED
200bac8: c0 26 60 24 clr [ %i1 + 0x24 ] <== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one( ENOTSUP );
200bacc: 40 00 0e 94 call 200f51c <__errno> <== NOT EXECUTED
200bad0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200bad4: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
200bad8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200badc: 81 c7 e0 08 ret <== NOT EXECUTED
200bae0: 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;
200bae4: c6 00 60 30 ld [ %g1 + 0x30 ], %g3
buf->st_nlink = the_jnode->st_nlink;
200bae8: 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;
200baec: c6 26 60 0c st %g3, [ %i1 + 0xc ]
buf->st_nlink = the_jnode->st_nlink;
buf->st_ino = the_jnode->st_ino;
200baf0: 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 );
200baf4: 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;
200baf8: 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;
200bafc: 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;
200bb00: 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;
200bb04: 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 );
200bb08: 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;
200bb0c: 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;
200bb10: 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;
200bb14: 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;
200bb18: 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 );
200bb1c: 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;
200bb20: c4 00 60 48 ld [ %g1 + 0x48 ], %g2
buf->st_blksize = imfs_rq_memfile_bytes_per_block;
200bb24: 07 00 80 70 sethi %hi(0x201c000), %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;
200bb28: 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;
200bb2c: c6 00 e0 b8 ld [ %g3 + 0xb8 ], %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;
200bb30: 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 =
200bb34: 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;
200bb38: 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;
200bb3c: c4 26 60 38 st %g2, [ %i1 + 0x38 ]
200bb40: 03 00 00 3f sethi %hi(0xfc00), %g1
200bb44: 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 =
200bb48: 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;
}
200bb4c: 81 c7 e0 08 ret
200bb50: 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 37 ec call 2010450 <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 03 call 200b8c4 <IMFS_get_token>
20024bc: 94 10 00 10 mov %l0, %o2
/*
* Duplicate link name
*/
info.sym_link.name = strdup(link_name);
20024c0: 40 00 37 cf call 20103fc <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 34 11 call 200f51c <__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 6a call 200aaac <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 33 ff call 200f51c <__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 33 ef call 200f51c <__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 36 23 call 200fe0c <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 21 93 call 200abd8 <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 33 be call 200f51c <__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 33 b7 call 200f51c <__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 71 sethi %hi(0x201c400), %g1
2002d90: c2 00 63 a8 ld [ %g1 + 0x3a8 ], %g1 ! 201c7a8 <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 71 sethi %hi(0x201c400), %g1
2002db8: c2 00 63 ac ld [ %g1 + 0x3ac ], %g1 ! 201c7ac <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 71 sethi %hi(0x201c400), %g1
2002de4: c2 08 63 a5 ldub [ %g1 + 0x3a5 ], %g1 ! 201c7a5 <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 71 sethi %hi(0x201c400), %g1
!rtems_unified_work_area
&& rtems_configuration_get_do_zero_of_workspace()
2002df4: 03 00 80 70 sethi %hi(0x201c000), %g1
2002df8: c2 08 61 90 ldub [ %g1 + 0x190 ], %g1 ! 201c190 <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 71 sethi %hi(0x201c400), %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 34 3e call 200ff08 <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 71 sethi %hi(0x201c400), %g1
2002e1c: c2 08 63 a5 ldub [ %g1 + 0x3a5 ], %g1 ! 201c7a5 <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 70 sethi %hi(0x201c000), %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 60 c0 ld [ %g1 + 0xc0 ], %o0 ! 201c0c0 <RTEMS_Malloc_Heap>
2002e30: 92 10 00 18 mov %i0, %o1
2002e34: 94 10 00 19 mov %i1, %o2
2002e38: 40 00 11 09 call 200725c <_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 72 sethi %hi(0x201c800), %i1
rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
2002e4c: 40 00 0e d7 call 20069a8 <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 72 sethi %hi(0x201c800), %i1
2002e58: 03 00 80 70 sethi %hi(0x201c000), %g1
2002e5c: f0 06 62 60 ld [ %i1 + 0x260 ], %i0
2002e60: 40 00 14 25 call 2007ef4 <_Protected_heap_Get_size>
2002e64: d0 00 60 c0 ld [ %g1 + 0xc0 ], %o0
2002e68: 90 02 00 18 add %o0, %i0, %o0
2002e6c: d0 26 62 60 st %o0, [ %i1 + 0x260 ]
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 a9 sethi %hi(0x206a400), %g1 <== NOT EXECUTED
return;
if ( !print_handler )
2006580: e4 00 62 70 ld [ %g1 + 0x270 ], %l2 ! 206a670 <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 48 ld [ %i0 + 0x148 ], %l4 <== NOT EXECUTED
if (Stack_check_Interrupt_stack.area) {
2006598: 23 00 81 b4 sethi %hi(0x206d000), %l1 <== NOT EXECUTED
200659c: a2 14 61 d8 or %l1, 0x1d8, %l1 ! 206d1d8 <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 c0 add %i0, 0xc0, %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 a9 sethi %hi(0x206a400), %g1 <== NOT EXECUTED
(*print_handler)(
20065f8: ea 06 20 08 ld [ %i0 + 8 ], %l5 <== NOT EXECUTED
20065fc: ec 00 62 6c ld [ %g1 + 0x26c ], %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 78 sethi %hi(0x205e000), %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 62 a8 or %o1, 0x2a8, %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 62 6c ld [ %g1 + 0x26c ], %o0 <== NOT EXECUTED
2006634: 13 00 81 78 sethi %hi(0x205e000), %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 62 b8 or %o1, 0x2b8, %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 a9 sethi %hi(0x206a400), %l2 <== NOT EXECUTED
2006650: 23 00 81 a9 sethi %hi(0x206a400), %l1 <== NOT EXECUTED
2006654: c2 04 a2 70 ld [ %l2 + 0x270 ], %g1 <== NOT EXECUTED
2006658: d0 04 62 6c ld [ %l1 + 0x26c ], %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 78 sethi %hi(0x205e000), %o1 <== NOT EXECUTED
2006670: 9f c0 40 00 call %g1 <== NOT EXECUTED
2006674: 92 12 62 c8 or %o1, 0x2c8, %o1 ! 205e2c8 <write_test_string.7990+0x438><== NOT EXECUTED
stack->area + stack->size - 1,
current,
size
);
if (Stack_check_Initialized == 0) {
2006678: 03 00 81 a9 sethi %hi(0x206a400), %g1 <== NOT EXECUTED
200667c: c2 00 62 68 ld [ %g1 + 0x268 ], %g1 ! 206a668 <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 a2 70 ld [ %l2 + 0x270 ], %g1 <== NOT EXECUTED
(*print_handler)( print_context, "Unavailable\n" );
200668c: d0 04 62 6c ld [ %l1 + 0x26c ], %o0 <== NOT EXECUTED
2006690: 13 00 81 78 sethi %hi(0x205e000), %o1 <== NOT EXECUTED
2006694: 9f c0 40 00 call %g1 <== NOT EXECUTED
2006698: 92 12 62 e8 or %o1, 0x2e8, %o1 ! 205e2e8 <write_test_string.7990+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 62 6c ld [ %l1 + 0x26c ], %o0 <== NOT EXECUTED
20066a8: 13 00 81 78 sethi %hi(0x205e000), %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 62 f8 or %o1, 0x2f8, %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 a9 sethi %hi(0x206a400), %g1
20068d8: c2 00 62 68 ld [ %g1 + 0x268 ], %g1 ! 206a668 <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 b4 sethi %hi(0x206d000), %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 79 sethi %hi(0x205e400), %g2
20068ec: 86 10 e1 c8 or %g3, 0x1c8, %g3
20068f0: 84 10 a0 50 or %g2, 0x50, %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 b4 sethi %hi(0x206d000), %g1
2006918: c2 00 63 d0 ld [ %g1 + 0x3d0 ], %g1 ! 206d3d0 <_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 b4 sethi %hi(0x206d000), %g2
2006928: c6 00 a3 1c ld [ %g2 + 0x31c ], %g3 ! 206d31c <_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 b4 sethi %hi(0x206d000), %g2
Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high -
200693c: c6 20 a1 d8 st %g3, [ %g2 + 0x1d8 ] ! 206d1d8 <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 a1 d8 or %g2, 0x1d8, %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 00 fe 95 call 20463a4 <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 a9 sethi %hi(0x206a400), %g1
2006960: c4 20 62 68 st %g2, [ %g1 + 0x268 ] ! 206a668 <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 78 sethi %hi(0x205e000), %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 c4 ld [ %i0 + 0xc4 ], %l0
char name [32];
printk("BLOWN STACK!!!\n");
2006740: 40 00 0b d6 call 2009698 <printk>
2006744: 90 12 23 68 or %o0, 0x368, %o0
printk("task control block: 0x%08" PRIxPTR "\n", running);
2006748: 92 10 00 18 mov %i0, %o1
200674c: 11 00 81 78 sethi %hi(0x205e000), %o0
2006750: 40 00 0b d2 call 2009698 <printk>
2006754: 90 12 23 78 or %o0, 0x378, %o0 ! 205e378 <write_test_string.7990+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 78 sethi %hi(0x205e000), %o0
2006760: 40 00 0b ce call 2009698 <printk>
2006764: 90 12 23 98 or %o0, 0x398, %o0 ! 205e398 <write_test_string.7990+0x508>
printk(
2006768: d2 06 20 0c ld [ %i0 + 0xc ], %o1
200676c: 11 00 81 78 sethi %hi(0x205e000), %o0
2006770: 40 00 0b ca call 2009698 <printk>
2006774: 90 12 23 b0 or %o0, 0x3b0, %o0 ! 205e3b0 <write_test_string.7990+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 78 sethi %hi(0x205e000), %o0
2006790: 40 00 0b c2 call 2009698 <printk>
2006794: 90 12 23 c8 or %o0, 0x3c8, %o0 ! 205e3c8 <write_test_string.7990+0x538>
"task name string: %s\n",
rtems_object_get_name(running->Object.id, sizeof(name), name)
);
printk(
2006798: d2 06 20 c0 ld [ %i0 + 0xc0 ], %o1
200679c: d4 06 20 c4 ld [ %i0 + 0xc4 ], %o2
20067a0: 11 00 81 78 sethi %hi(0x205e000), %o0
20067a4: 96 02 80 09 add %o2, %o1, %o3
20067a8: 40 00 0b bc call 2009698 <printk>
20067ac: 90 12 23 e0 or %o0, 0x3e0, %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 79 sethi %hi(0x205e400), %o0
printk(
20067bc: 96 04 20 18 add %l0, 0x18, %o3
20067c0: 90 12 20 18 or %o0, 0x18, %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 b2 call 200d298 <rtems_fatal_error_occurred>
20067d4: 90 10 20 81 mov 0x81, %o0
0204223c <T.54>:
return 0;
}
static int
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
204223c: 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;
2042240: c0 2e 80 00 clrb [ %i2 ] <== NOT EXECUTED
/*
* Load the bitmap.
*/
rc = rtems_rfs_bitmap_load_map (control, &map);
2042244: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2042248: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
204224c: 7f ff fe f2 call 2041e14 <rtems_rfs_bitmap_load_map> <== NOT EXECUTED
2042250: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
if (rc > 0)
2042254: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2042258: 14 80 00 7a bg 2042440 <T.54+0x204> <== NOT EXECUTED
204225c: 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;
2042260: e2 06 40 00 ld [ %i1 ], %l1 <== NOT EXECUTED
end_bit = test_bit + (window * direction);
if (end_bit < 0)
2042264: a4 84 80 11 addcc %l2, %l1, %l2 <== NOT EXECUTED
2042268: 3c 80 00 04 bpos,a 2042278 <T.54+0x3c> <== NOT EXECUTED
204226c: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
2042270: 10 80 00 05 b 2042284 <T.54+0x48> <== NOT EXECUTED
2042274: a4 10 20 00 clr %l2 <== NOT EXECUTED
end_bit = 0;
else if (end_bit >= control->size)
2042278: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED
204227c: 3a 80 00 02 bcc,a 2042284 <T.54+0x48> <== NOT EXECUTED
2042280: 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];
2042284: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
map_bits = &map[map_index];
2042288: 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);
204228c: 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];
2042290: ad 3c 60 0a sra %l1, 0xa, %l6 <== NOT EXECUTED
2042294: ad 2d a0 02 sll %l6, 2, %l6 <== NOT EXECUTED
2042298: ac 00 40 16 add %g1, %l6, %l6 <== NOT EXECUTED
map_bits = &map[map_index];
204229c: 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;
20422a0: 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];
20422a4: 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;
20422a8: 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);
20422ac: 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;
20422b0: 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);
20422b4: 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;
20422b8: ae 0d ff e1 and %l7, -31, %l7 <== NOT EXECUTED
map_offset += direction;
test_bit += direction;
}
}
map_bits += direction;
20422bc: b9 2e e0 02 sll %i3, 2, %i4 <== NOT EXECUTED
map_index += direction;
map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
20422c0: 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,
20422c4: 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);
20422c8: 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;
20422cc: 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))
20422d0: 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,
20422d4: 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))
20422d8: 80 a3 20 00 cmp %o4, 0 <== NOT EXECUTED
20422dc: 12 80 00 33 bne 20423a8 <T.54+0x16c> <== NOT EXECUTED
20422e0: 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);
20422e4: 10 80 00 36 b 20423bc <T.54+0x180> <== NOT EXECUTED
20422e8: 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))
20422ec: 80 88 c0 0c btst %g3, %o4 <== NOT EXECUTED
20422f0: 12 80 00 1c bne 2042360 <T.54+0x124> <== NOT EXECUTED
20422f4: 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;
20422f8: 10 80 00 1d b 204236c <T.54+0x130> <== NOT EXECUTED
20422fc: 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);
2042300: 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))
2042304: 80 8b 40 04 btst %o5, %g4 <== NOT EXECUTED
2042308: 02 80 00 12 be 2042350 <T.54+0x114> <== NOT EXECUTED
204230c: 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);
2042310: 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,
2042314: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2042318: 12 80 00 05 bne 204232c <T.54+0xf0> <== NOT EXECUTED
204231c: c2 25 40 00 st %g1, [ %l5 ] <== NOT EXECUTED
RTEMS_RFS_BITMAP_ELEMENT_SET))
*search_bits = rtems_rfs_bitmap_set (*search_bits,
2042320: c2 05 80 00 ld [ %l6 ], %g1 <== NOT EXECUTED
2042324: 86 28 40 03 andn %g1, %g3, %g3 <== NOT EXECUTED
2042328: c6 25 80 00 st %g3, [ %l6 ] <== NOT EXECUTED
1 << search_offset);
control->free--;
204232c: c4 04 20 10 ld [ %l0 + 0x10 ], %g2 <== NOT EXECUTED
*bit = test_bit;
*found = true;
rtems_rfs_buffer_mark_dirty (control->buffer);
2042330: 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;
2042334: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2042338: c2 2e 80 00 stb %g1, [ %i2 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
204233c: 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;
2042340: 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--;
2042344: 82 00 bf ff add %g2, -1, %g1 <== NOT EXECUTED
2042348: 10 80 00 3d b 204243c <T.54+0x200> <== NOT EXECUTED
204234c: 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)
2042350: 02 80 00 06 be 2042368 <T.54+0x12c> <== NOT EXECUTED
2042354: 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,
2042358: 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)
204235c: 80 a5 20 1f cmp %l4, 0x1f <== NOT EXECUTED
2042360: 28 bf ff e8 bleu,a 2042300 <T.54+0xc4> <== NOT EXECUTED
2042364: 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;
2042368: a2 05 c0 02 add %l7, %g2, %l1 <== NOT EXECUTED
map_offset += direction;
test_bit += direction;
}
}
map_bits += direction;
204236c: 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,
2042370: 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))
2042374: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED
2042378: 14 80 00 06 bg 2042390 <T.54+0x154> <== NOT EXECUTED
204237c: a8 10 00 17 mov %l7, %l4 <== NOT EXECUTED
2042380: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2042384: 26 80 00 22 bl,a 204240c <T.54+0x1d0> <== NOT EXECUTED
2042388: ac 05 80 1c add %l6, %i4, %l6 <== NOT EXECUTED
204238c: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED
2042390: 06 80 00 05 bl 20423a4 <T.54+0x168> <== NOT EXECUTED
2042394: 84 00 80 01 add %g2, %g1, %g2 <== NOT EXECUTED
2042398: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
204239c: 34 80 00 1c bg,a 204240c <T.54+0x1d0> <== NOT EXECUTED
20423a0: ac 05 80 1c add %l6, %i4, %l6 <== NOT EXECUTED
20423a4: 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)
20423a8: 80 a2 20 1f cmp %o0, 0x1f <== NOT EXECUTED
20423ac: 28 bf ff d0 bleu,a 20422ec <T.54+0xb0> <== NOT EXECUTED
20423b0: 87 2f 40 08 sll %i5, %o0, %g3 <== NOT EXECUTED
}
map_bits += direction * bits_skipped;
map_index += direction * bits_skipped;
}
search_bits += direction;
20423b4: 10 80 00 16 b 204240c <T.54+0x1d0> <== NOT EXECUTED
20423b8: 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)
20423bc: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
20423c0: 04 80 00 06 ble 20423d8 <T.54+0x19c> <== NOT EXECUTED
20423c4: a8 10 20 00 clr %l4 <== NOT EXECUTED
{
bits_skipped = rtems_rfs_bitmap_element_bits () - search_offset;
20423c8: 90 26 00 08 sub %i0, %o0, %o0 <== NOT EXECUTED
test_bit += bits_skipped * rtems_rfs_bitmap_element_bits ();
20423cc: 85 2a 20 05 sll %o0, 5, %g2 <== NOT EXECUTED
20423d0: 10 80 00 07 b 20423ec <T.54+0x1b0> <== NOT EXECUTED
20423d4: 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;
20423d8: 85 2a 20 05 sll %o0, 5, %g2 <== NOT EXECUTED
20423dc: a8 10 20 1f mov 0x1f, %l4 <== NOT EXECUTED
20423e0: 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;
20423e4: 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;
20423e8: a2 00 80 11 add %g2, %l1, %l1 <== NOT EXECUTED
map_offset = rtems_rfs_bitmap_element_bits () - 1;
}
map_bits += direction * bits_skipped;
20423ec: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED
20423f0: 7f ff 01 82 call 20029f8 <.umul> <== NOT EXECUTED
20423f4: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
20423f8: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
map_index += direction * bits_skipped;
20423fc: 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;
2042400: 91 2a 20 02 sll %o0, 2, %o0 <== NOT EXECUTED
2042404: aa 05 40 08 add %l5, %o0, %l5 <== NOT EXECUTED
map_index += direction * bits_skipped;
}
search_bits += direction;
2042408: 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)));
204240c: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED
2042410: 06 80 00 08 bl 2042430 <T.54+0x1f4> <== NOT EXECUTED
2042414: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED
2042418: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
204241c: 26 bf ff ae bl,a 20422d4 <T.54+0x98> <== NOT EXECUTED
2042420: d8 05 80 00 ld [ %l6 ], %o4 <== NOT EXECUTED
2042424: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED
2042428: 34 80 00 06 bg,a 2042440 <T.54+0x204> <== NOT EXECUTED
204242c: 90 10 20 00 clr %o0 <== NOT EXECUTED
2042430: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2042434: 34 bf ff a8 bg,a 20422d4 <T.54+0x98> <== NOT EXECUTED
2042438: d8 05 80 00 ld [ %l6 ], %o4 <== NOT EXECUTED
204243c: 90 10 20 00 clr %o0 <== NOT EXECUTED
return 0;
}
2042440: 81 c7 e0 08 ret <== NOT EXECUTED
2042444: 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
02016888 <_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
)
{
2016888: 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 ) {
201688c: 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
)
{
2016890: 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 ) {
2016894: 80 a6 80 01 cmp %i2, %g1
2016898: 18 80 00 17 bgu 20168f4 <_CORE_message_queue_Broadcast+0x6c><== NEVER TAKEN
201689c: 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 ) {
20168a0: c2 04 20 48 ld [ %l0 + 0x48 ], %g1
20168a4: 80 a0 60 00 cmp %g1, 0
20168a8: 02 80 00 0a be 20168d0 <_CORE_message_queue_Broadcast+0x48>
20168ac: a2 10 20 00 clr %l1
*count = 0;
20168b0: c0 27 40 00 clr [ %i5 ]
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
20168b4: 81 c7 e0 08 ret
20168b8: 91 e8 20 00 restore %g0, 0, %o0
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
20168bc: d0 04 a0 2c ld [ %l2 + 0x2c ], %o0
20168c0: 40 00 27 b7 call 202079c <memcpy>
20168c4: a2 04 60 01 inc %l1
buffer,
waitp->return_argument_second.mutable_object,
size
);
*(size_t *) the_thread->Wait.return_argument = size;
20168c8: c2 04 a0 28 ld [ %l2 + 0x28 ], %g1
20168cc: 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))) {
20168d0: 40 00 0a 2a call 2019178 <_Thread_queue_Dequeue>
20168d4: 90 10 00 10 mov %l0, %o0
20168d8: 92 10 00 19 mov %i1, %o1
20168dc: 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 =
20168e0: 80 a2 20 00 cmp %o0, 0
20168e4: 12 bf ff f6 bne 20168bc <_CORE_message_queue_Broadcast+0x34>
20168e8: 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;
20168ec: e2 27 40 00 st %l1, [ %i5 ]
20168f0: b0 10 20 00 clr %i0
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
}
20168f4: 81 c7 e0 08 ret
20168f8: 81 e8 00 00 restore
020100fc <_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
)
{
20100fc: 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;
2010100: 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;
2010104: 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;
2010108: f6 26 20 4c st %i3, [ %i0 + 0x4c ]
/*
* 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)) {
201010c: 80 8e e0 03 btst 3, %i3
2010110: 02 80 00 07 be 201012c <_CORE_message_queue_Initialize+0x30>
2010114: a2 10 00 1b mov %i3, %l1
allocated_message_size += sizeof(uint32_t);
2010118: a2 06 e0 04 add %i3, 4, %l1
allocated_message_size &= ~(sizeof(uint32_t) - 1);
201011c: a2 0c 7f fc and %l1, -4, %l1
}
if (allocated_message_size < maximum_message_size)
2010120: 80 a4 40 1b cmp %l1, %i3
2010124: 0a 80 00 23 bcs 20101b0 <_CORE_message_queue_Initialize+0xb4><== NEVER TAKEN
2010128: 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));
201012c: a0 04 60 10 add %l1, 0x10, %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 *
2010130: 92 10 00 1a mov %i2, %o1
2010134: 40 00 50 e0 call 20244b4 <.umul>
2010138: 90 10 00 10 mov %l0, %o0
(allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
if (message_buffering_required < allocated_message_size)
201013c: 80 a2 00 11 cmp %o0, %l1
2010140: 0a 80 00 1c bcs 20101b0 <_CORE_message_queue_Initialize+0xb4><== NEVER TAKEN
2010144: 01 00 00 00 nop
return false;
/*
* Attempt to allocate the message memory
*/
the_message_queue->message_buffers = (CORE_message_queue_Buffer *)
2010148: 40 00 0b c6 call 2013060 <_Workspace_Allocate>
201014c: 01 00 00 00 nop
2010150: d0 26 20 5c st %o0, [ %i0 + 0x5c ]
_Workspace_Allocate( message_buffering_required );
if (the_message_queue->message_buffers == 0)
2010154: 80 a2 20 00 cmp %o0, 0
2010158: 02 80 00 16 be 20101b0 <_CORE_message_queue_Initialize+0xb4>
201015c: 92 10 00 08 mov %o0, %o1
/*
* Initialize the pool of inactive messages, pending messages,
* and set of waiting threads.
*/
_Chain_Initialize (
2010160: 90 06 20 60 add %i0, 0x60, %o0
2010164: 94 10 00 1a mov %i2, %o2
2010168: 40 00 18 34 call 2016238 <_Chain_Initialize>
201016c: 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(
2010170: 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;
2010174: c0 26 20 54 clr [ %i0 + 0x54 ]
2010178: 82 18 60 01 xor %g1, 1, %g1
201017c: 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);
2010180: 82 06 20 54 add %i0, 0x54, %g1
2010184: c2 26 20 50 st %g1, [ %i0 + 0x50 ]
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
2010188: 82 06 20 50 add %i0, 0x50, %g1
201018c: 90 10 00 18 mov %i0, %o0
2010190: c2 26 20 58 st %g1, [ %i0 + 0x58 ]
2010194: 92 60 3f ff subx %g0, -1, %o1
2010198: 94 10 20 80 mov 0x80, %o2
201019c: 96 10 20 06 mov 6, %o3
20101a0: 40 00 08 9e call 2012418 <_Thread_queue_Initialize>
20101a4: 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;
20101a8: 81 c7 e0 08 ret
20101ac: 81 e8 00 00 restore
}
20101b0: 81 c7 e0 08 ret
20101b4: 91 e8 20 00 restore %g0, 0, %o0
020101b8 <_CORE_message_queue_Seize>:
void *buffer,
size_t *size_p,
bool wait,
Watchdog_Interval timeout
)
{
20101b8: 9d e3 bf a0 save %sp, -96, %sp
ISR_Level level;
CORE_message_queue_Buffer_control *the_message;
Thread_Control *executing;
executing = _Thread_Executing;
20101bc: 23 00 80 ac sethi %hi(0x202b000), %l1
20101c0: e0 04 61 60 ld [ %l1 + 0x160 ], %l0 ! 202b160 <_Thread_Executing>
void *buffer,
size_t *size_p,
bool wait,
Watchdog_Interval timeout
)
{
20101c4: a4 10 00 19 mov %i1, %l2
CORE_message_queue_Buffer_control *the_message;
Thread_Control *executing;
executing = _Thread_Executing;
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
_ISR_Disable( level );
20101c8: 7f ff dc e0 call 2007548 <sparc_disable_interrupts>
20101cc: c0 24 20 34 clr [ %l0 + 0x34 ]
20101d0: 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));
20101d4: e6 06 20 50 ld [ %i0 + 0x50 ], %l3
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
20101d8: 84 06 20 54 add %i0, 0x54, %g2
20101dc: 80 a4 c0 02 cmp %l3, %g2
20101e0: 02 80 00 15 be 2010234 <_CORE_message_queue_Seize+0x7c>
20101e4: 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;
20101e8: c4 04 c0 00 ld [ %l3 ], %g2
the_chain->first = new_first;
20101ec: c4 26 20 50 st %g2, [ %i0 + 0x50 ]
the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
if ( the_message != NULL ) {
20101f0: 80 a4 e0 00 cmp %l3, 0
20101f4: 02 80 00 10 be 2010234 <_CORE_message_queue_Seize+0x7c> <== NEVER TAKEN
20101f8: c6 20 a0 04 st %g3, [ %g2 + 4 ]
the_message_queue->number_of_pending_messages -= 1;
20101fc: c2 06 20 48 ld [ %i0 + 0x48 ], %g1
2010200: 82 00 7f ff add %g1, -1, %g1
2010204: c2 26 20 48 st %g1, [ %i0 + 0x48 ]
_ISR_Enable( level );
2010208: 7f ff dc d4 call 2007558 <sparc_enable_interrupts>
201020c: b0 06 20 60 add %i0, 0x60, %i0
*size_p = the_message->Contents.size;
_Thread_Executing->Wait.count =
2010210: c2 04 61 60 ld [ %l1 + 0x160 ], %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;
2010214: d4 04 e0 08 ld [ %l3 + 8 ], %o2
_Thread_Executing->Wait.count =
2010218: c0 20 60 24 clr [ %g1 + 0x24 ]
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;
201021c: d4 26 c0 00 st %o2, [ %i3 ]
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
2010220: 90 10 00 1a mov %i2, %o0
2010224: 40 00 24 7c call 2019414 <memcpy>
2010228: 92 04 e0 0c add %l3, 0xc, %o1
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 );
201022c: 7f ff ff 83 call 2010038 <_Chain_Append>
2010230: 93 e8 00 13 restore %g0, %l3, %o1
return;
}
#endif
}
if ( !wait ) {
2010234: 80 8f 20 ff btst 0xff, %i4
2010238: 12 80 00 08 bne 2010258 <_CORE_message_queue_Seize+0xa0>
201023c: 84 10 20 01 mov 1, %g2
_ISR_Enable( level );
2010240: 7f ff dc c6 call 2007558 <sparc_enable_interrupts>
2010244: 90 10 00 01 mov %g1, %o0
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT;
2010248: 82 10 20 04 mov 4, %g1
201024c: 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 );
}
2010250: 81 c7 e0 08 ret
2010254: 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;
2010258: c4 26 20 30 st %g2, [ %i0 + 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;
201025c: 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;
2010260: e4 24 20 20 st %l2, [ %l0 + 0x20 ]
executing->Wait.return_argument_second.mutable_object = buffer;
2010264: 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;
2010268: f0 24 20 44 st %i0, [ %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 );
201026c: 90 10 00 01 mov %g1, %o0
2010270: 7f ff dc ba call 2007558 <sparc_enable_interrupts>
2010274: 35 00 80 49 sethi %hi(0x2012400), %i2
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
2010278: b2 10 00 1d mov %i5, %i1
201027c: 40 00 07 c7 call 2012198 <_Thread_queue_Enqueue_with_handler>
2010280: 95 ee a0 e4 restore %i2, 0xe4, %o2
02006e68 <_CORE_mutex_Seize>:
Objects_Id _id,
bool _wait,
Watchdog_Interval _timeout,
ISR_Level _level
)
{
2006e68: 9d e3 bf a0 save %sp, -96, %sp
_CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level );
2006e6c: 03 00 80 73 sethi %hi(0x201cc00), %g1
2006e70: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 ! 201cc20 <_Thread_Dispatch_disable_level>
2006e74: 80 a0 60 00 cmp %g1, 0
2006e78: 02 80 00 0d be 2006eac <_CORE_mutex_Seize+0x44>
2006e7c: f8 27 a0 54 st %i4, [ %fp + 0x54 ]
2006e80: 80 8e a0 ff btst 0xff, %i2
2006e84: 02 80 00 0b be 2006eb0 <_CORE_mutex_Seize+0x48> <== NEVER TAKEN
2006e88: 90 10 00 18 mov %i0, %o0
2006e8c: 03 00 80 73 sethi %hi(0x201cc00), %g1
2006e90: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 201cdc0 <_System_state_Current>
2006e94: 80 a0 60 01 cmp %g1, 1
2006e98: 08 80 00 05 bleu 2006eac <_CORE_mutex_Seize+0x44>
2006e9c: 90 10 20 00 clr %o0
2006ea0: 92 10 20 00 clr %o1
2006ea4: 40 00 01 d3 call 20075f0 <_Internal_error_Occurred>
2006ea8: 94 10 20 13 mov 0x13, %o2
2006eac: 90 10 00 18 mov %i0, %o0
2006eb0: 40 00 17 0c call 200cae0 <_CORE_mutex_Seize_interrupt_trylock>
2006eb4: 92 07 a0 54 add %fp, 0x54, %o1
2006eb8: 80 a2 20 00 cmp %o0, 0
2006ebc: 02 80 00 09 be 2006ee0 <_CORE_mutex_Seize+0x78>
2006ec0: 80 8e a0 ff btst 0xff, %i2
2006ec4: 12 80 00 09 bne 2006ee8 <_CORE_mutex_Seize+0x80>
2006ec8: 35 00 80 73 sethi %hi(0x201cc00), %i2
2006ecc: 7f ff ec 42 call 2001fd4 <sparc_enable_interrupts>
2006ed0: d0 07 a0 54 ld [ %fp + 0x54 ], %o0
2006ed4: c2 06 a0 e0 ld [ %i2 + 0xe0 ], %g1
2006ed8: 84 10 20 01 mov 1, %g2
2006edc: c4 20 60 34 st %g2, [ %g1 + 0x34 ]
2006ee0: 81 c7 e0 08 ret
2006ee4: 81 e8 00 00 restore
2006ee8: c4 06 a0 e0 ld [ %i2 + 0xe0 ], %g2
2006eec: 03 00 80 73 sethi %hi(0x201cc00), %g1
2006ef0: c6 00 60 20 ld [ %g1 + 0x20 ], %g3 ! 201cc20 <_Thread_Dispatch_disable_level>
2006ef4: f2 20 a0 20 st %i1, [ %g2 + 0x20 ]
2006ef8: f0 20 a0 44 st %i0, [ %g2 + 0x44 ]
2006efc: 84 00 e0 01 add %g3, 1, %g2
2006f00: c4 20 60 20 st %g2, [ %g1 + 0x20 ]
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;
2006f04: 82 10 20 01 mov 1, %g1
2006f08: c2 26 20 30 st %g1, [ %i0 + 0x30 ]
2006f0c: 7f ff ec 32 call 2001fd4 <sparc_enable_interrupts>
2006f10: d0 07 a0 54 ld [ %fp + 0x54 ], %o0
2006f14: 90 10 00 18 mov %i0, %o0
2006f18: 7f ff ff bb call 2006e04 <_CORE_mutex_Seize_interrupt_blocking>
2006f1c: 92 10 00 1b mov %i3, %o1
2006f20: 81 c7 e0 08 ret
2006f24: 81 e8 00 00 restore
0200cae0 <_CORE_mutex_Seize_interrupt_trylock>:
#if defined(__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__)
int _CORE_mutex_Seize_interrupt_trylock(
CORE_mutex_Control *the_mutex,
ISR_Level *level_p
)
{
200cae0: 9d e3 bf a0 save %sp, -96, %sp
{
Thread_Control *executing;
/* disabled when you get here */
executing = _Thread_Executing;
200cae4: 03 00 80 73 sethi %hi(0x201cc00), %g1
200cae8: c2 00 60 e0 ld [ %g1 + 0xe0 ], %g1 ! 201cce0 <_Thread_Executing>
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
200caec: c0 20 60 34 clr [ %g1 + 0x34 ]
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
200caf0: c4 06 20 50 ld [ %i0 + 0x50 ], %g2
200caf4: 80 a0 a0 00 cmp %g2, 0
200caf8: 22 80 00 2f be,a 200cbb4 <_CORE_mutex_Seize_interrupt_trylock+0xd4>
200cafc: c4 06 20 5c ld [ %i0 + 0x5c ], %g2
the_mutex->lock = CORE_MUTEX_LOCKED;
200cb00: c0 26 20 50 clr [ %i0 + 0x50 ]
the_mutex->holder = executing;
the_mutex->holder_id = executing->Object.id;
200cb04: c6 00 60 08 ld [ %g1 + 8 ], %g3
*/
RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority(
CORE_mutex_Attributes *the_attribute
)
{
return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
200cb08: c4 06 20 48 ld [ %i0 + 0x48 ], %g2
executing = _Thread_Executing;
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
the_mutex->lock = CORE_MUTEX_LOCKED;
the_mutex->holder = executing;
the_mutex->holder_id = executing->Object.id;
200cb0c: c6 26 20 60 st %g3, [ %i0 + 0x60 ]
executing = _Thread_Executing;
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
the_mutex->lock = CORE_MUTEX_LOCKED;
the_mutex->holder = executing;
200cb10: c2 26 20 5c st %g1, [ %i0 + 0x5c ]
the_mutex->holder_id = executing->Object.id;
the_mutex->nest_count = 1;
200cb14: 86 10 20 01 mov 1, %g3
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
200cb18: 80 a0 a0 02 cmp %g2, 2
200cb1c: 02 80 00 05 be 200cb30 <_CORE_mutex_Seize_interrupt_trylock+0x50>
200cb20: c6 26 20 54 st %g3, [ %i0 + 0x54 ]
200cb24: 80 a0 a0 03 cmp %g2, 3
200cb28: 12 80 00 31 bne 200cbec <_CORE_mutex_Seize_interrupt_trylock+0x10c>
200cb2c: 01 00 00 00 nop
_Chain_Prepend_unprotected( &executing->lock_mutex,
&the_mutex->queue.lock_queue );
the_mutex->queue.priority_before = executing->current_priority;
#endif
executing->resource_count++;
200cb30: c6 00 60 1c ld [ %g1 + 0x1c ], %g3
}
if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) {
200cb34: 80 a0 a0 03 cmp %g2, 3
_Chain_Prepend_unprotected( &executing->lock_mutex,
&the_mutex->queue.lock_queue );
the_mutex->queue.priority_before = executing->current_priority;
#endif
executing->resource_count++;
200cb38: 84 00 e0 01 add %g3, 1, %g2
}
if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) {
200cb3c: 12 80 00 2c bne 200cbec <_CORE_mutex_Seize_interrupt_trylock+0x10c>
200cb40: c4 20 60 1c st %g2, [ %g1 + 0x1c ]
*/
{
Priority_Control ceiling;
Priority_Control current;
ceiling = the_mutex->Attributes.priority_ceiling;
200cb44: c4 06 20 4c ld [ %i0 + 0x4c ], %g2
current = executing->current_priority;
200cb48: c6 00 60 14 ld [ %g1 + 0x14 ], %g3
if ( current == ceiling ) {
200cb4c: 80 a0 c0 02 cmp %g3, %g2
200cb50: 02 80 00 27 be 200cbec <_CORE_mutex_Seize_interrupt_trylock+0x10c>
200cb54: 01 00 00 00 nop
_ISR_Enable( *level_p );
return 0;
}
if ( current > ceiling ) {
200cb58: 08 80 00 0f bleu 200cb94 <_CORE_mutex_Seize_interrupt_trylock+0xb4>
200cb5c: 84 10 20 06 mov 6, %g2 ! 6 <PROM_START+0x6>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
200cb60: 03 00 80 73 sethi %hi(0x201cc00), %g1
200cb64: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 ! 201cc20 <_Thread_Dispatch_disable_level>
200cb68: 84 00 a0 01 inc %g2
200cb6c: c4 20 60 20 st %g2, [ %g1 + 0x20 ]
_Thread_Disable_dispatch();
_ISR_Enable( *level_p );
200cb70: 7f ff d5 19 call 2001fd4 <sparc_enable_interrupts>
200cb74: d0 06 40 00 ld [ %i1 ], %o0
_Thread_Change_priority(
200cb78: d2 06 20 4c ld [ %i0 + 0x4c ], %o1
200cb7c: d0 06 20 5c ld [ %i0 + 0x5c ], %o0
200cb80: 7f ff ec f4 call 2007f50 <_Thread_Change_priority>
200cb84: 94 10 20 00 clr %o2
the_mutex->holder,
the_mutex->Attributes.priority_ceiling,
false
);
_Thread_Enable_dispatch();
200cb88: 7f ff ee 7d call 200857c <_Thread_Enable_dispatch>
200cb8c: b0 10 20 00 clr %i0
200cb90: 30 80 00 1a b,a 200cbf8 <_CORE_mutex_Seize_interrupt_trylock+0x118>
return 0;
}
/* if ( current < ceiling ) */ {
executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED;
200cb94: c4 20 60 34 st %g2, [ %g1 + 0x34 ]
the_mutex->lock = CORE_MUTEX_UNLOCKED;
200cb98: 84 10 20 01 mov 1, %g2
the_mutex->nest_count = 0; /* undo locking above */
200cb9c: c0 26 20 54 clr [ %i0 + 0x54 ]
_Thread_Enable_dispatch();
return 0;
}
/* if ( current < ceiling ) */ {
executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED;
the_mutex->lock = CORE_MUTEX_UNLOCKED;
200cba0: c4 26 20 50 st %g2, [ %i0 + 0x50 ]
the_mutex->nest_count = 0; /* undo locking above */
executing->resource_count--; /* undo locking above */
200cba4: c4 00 60 1c ld [ %g1 + 0x1c ], %g2
200cba8: 84 00 bf ff add %g2, -1, %g2
200cbac: 10 80 00 10 b 200cbec <_CORE_mutex_Seize_interrupt_trylock+0x10c>
200cbb0: c4 20 60 1c st %g2, [ %g1 + 0x1c ]
/*
* At this point, we know the mutex was not available. If this thread
* is the thread that has locked the mutex, let's see if we are allowed
* to nest access.
*/
if ( _Thread_Is_executing( the_mutex->holder ) ) {
200cbb4: 80 a0 80 01 cmp %g2, %g1
200cbb8: 12 80 00 12 bne 200cc00 <_CORE_mutex_Seize_interrupt_trylock+0x120>
200cbbc: 01 00 00 00 nop
switch ( the_mutex->Attributes.lock_nesting_behavior ) {
200cbc0: c2 06 20 40 ld [ %i0 + 0x40 ], %g1
200cbc4: 80 a0 60 00 cmp %g1, 0
200cbc8: 22 80 00 07 be,a 200cbe4 <_CORE_mutex_Seize_interrupt_trylock+0x104>
200cbcc: c2 06 20 54 ld [ %i0 + 0x54 ], %g1
200cbd0: 80 a0 60 01 cmp %g1, 1
200cbd4: 12 80 00 0b bne 200cc00 <_CORE_mutex_Seize_interrupt_trylock+0x120><== ALWAYS TAKEN
200cbd8: 82 10 20 02 mov 2, %g1
case CORE_MUTEX_NESTING_ACQUIRES:
the_mutex->nest_count++;
_ISR_Enable( *level_p );
return 0;
case CORE_MUTEX_NESTING_IS_ERROR:
executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED;
200cbdc: 10 80 00 04 b 200cbec <_CORE_mutex_Seize_interrupt_trylock+0x10c><== NOT EXECUTED
200cbe0: c2 20 a0 34 st %g1, [ %g2 + 0x34 ] <== NOT EXECUTED
* to nest access.
*/
if ( _Thread_Is_executing( the_mutex->holder ) ) {
switch ( the_mutex->Attributes.lock_nesting_behavior ) {
case CORE_MUTEX_NESTING_ACQUIRES:
the_mutex->nest_count++;
200cbe4: 82 00 60 01 inc %g1
200cbe8: c2 26 20 54 st %g1, [ %i0 + 0x54 ]
_ISR_Enable( *level_p );
return 0;
case CORE_MUTEX_NESTING_IS_ERROR:
executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED;
_ISR_Enable( *level_p );
200cbec: 7f ff d4 fa call 2001fd4 <sparc_enable_interrupts>
200cbf0: d0 06 40 00 ld [ %i1 ], %o0
200cbf4: b0 10 20 00 clr %i0
200cbf8: 81 c7 e0 08 ret
200cbfc: 81 e8 00 00 restore
return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p );
}
200cc00: 81 c7 e0 08 ret
200cc04: 91 e8 20 01 restore %g0, 1, %o0
020070cc <_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
)
{
20070cc: 9d e3 bf a0 save %sp, -96, %sp
20070d0: 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)) ) {
20070d4: b0 10 20 00 clr %i0
20070d8: 40 00 06 1f call 2008954 <_Thread_queue_Dequeue>
20070dc: 90 10 00 10 mov %l0, %o0
20070e0: 80 a2 20 00 cmp %o0, 0
20070e4: 12 80 00 0e bne 200711c <_CORE_semaphore_Surrender+0x50>
20070e8: 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 );
20070ec: 7f ff eb b6 call 2001fc4 <sparc_disable_interrupts>
20070f0: 01 00 00 00 nop
if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
20070f4: c2 04 20 48 ld [ %l0 + 0x48 ], %g1
20070f8: c4 04 20 40 ld [ %l0 + 0x40 ], %g2
20070fc: 80 a0 40 02 cmp %g1, %g2
2007100: 1a 80 00 05 bcc 2007114 <_CORE_semaphore_Surrender+0x48> <== NEVER TAKEN
2007104: b0 10 20 04 mov 4, %i0
the_semaphore->count += 1;
2007108: 82 00 60 01 inc %g1
200710c: b0 10 20 00 clr %i0
2007110: c2 24 20 48 st %g1, [ %l0 + 0x48 ]
else
status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;
_ISR_Enable( level );
2007114: 7f ff eb b0 call 2001fd4 <sparc_enable_interrupts>
2007118: 01 00 00 00 nop
}
return status;
}
200711c: 81 c7 e0 08 ret
2007120: 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 73 sethi %hi(0x201cc00), %g1
2005d40: e0 00 60 e0 ld [ %g1 + 0xe0 ], %l0 ! 201cce0 <_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 60 ld [ %l0 + 0x160 ], %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 73 sethi %hi(0x201cc00), %g1
2005dc4: c4 20 62 dc st %g2, [ %g1 + 0x2dc ] ! 201cedc <_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 73 sethi %hi(0x201cc00), %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 21 00 or %o0, 0x100, %o0
2005e04: 40 00 0e 2c call 20096b4 <_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 31 call 2008ed4 <_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 73 sethi %hi(0x201cc00), %g1
2005e24: f0 00 62 dc ld [ %g1 + 0x2dc ], %i0 ! 201cedc <_Event_Sync_state>
_Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
2005e28: c0 20 62 dc clr [ %g1 + 0x2dc ]
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 2f call 2007efc <_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 60 ld [ %i0 + 0x160 ], %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 73 sethi %hi(0x201cc00), %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 20 bc ld [ %g4 + 0xbc ], %g4 ! 201ccbc <_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 73 sethi %hi(0x201cc00), %g4
2005ee4: c8 01 20 e0 ld [ %g4 + 0xe0 ], %g4 ! 201cce0 <_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 73 sethi %hi(0x201cc00), %g4
2005ef8: da 01 22 dc ld [ %g4 + 0x2dc ], %o5 ! 201cedc <_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 22 dc ld [ %g4 + 0x2dc ], %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 73 sethi %hi(0x201cc00), %g1
2005f48: c4 20 62 dc st %g2, [ %g1 + 0x2dc ] ! 201cedc <_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 1a call 2009824 <_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 5a call 2008134 <_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 72 call 20085b0 <_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 73 sethi %hi(0x201cc00), %g1
200600c: c2 00 60 e0 ld [ %g1 + 0xe0 ], %g1 ! 201cce0 <_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 73 sethi %hi(0x201cc00), %g1
2006020: c4 00 62 dc ld [ %g1 + 0x2dc ], %g2 ! 201cedc <_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 62 dc st %g2, [ %g1 + 0x2dc ]
}
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 39 call 2008134 <_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 73 sethi %hi(0x201cc00), %g1
200605c: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 ! 201cc20 <_Thread_Dispatch_disable_level>
2006060: 84 00 bf ff add %g2, -1, %g2
2006064: c4 20 60 20 st %g2, [ %g1 + 0x20 ]
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
0200cc84 <_Heap_Allocate_aligned_with_boundary>:
Heap_Control *heap,
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
200cc84: 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;
200cc88: 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;
200cc8c: 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 ) {
200cc90: 80 a5 80 19 cmp %l6, %i1
200cc94: 0a 80 00 6d bcs 200ce48 <_Heap_Allocate_aligned_with_boundary+0x1c4>
200cc98: e8 06 20 10 ld [ %i0 + 0x10 ], %l4
/* Integer overflow occured */
return NULL;
}
if ( boundary != 0 ) {
200cc9c: 80 a6 e0 00 cmp %i3, 0
200cca0: 02 80 00 08 be 200ccc0 <_Heap_Allocate_aligned_with_boundary+0x3c>
200cca4: 82 10 20 04 mov 4, %g1
if ( boundary < alloc_size ) {
200cca8: 80 a6 c0 19 cmp %i3, %i1
200ccac: 0a 80 00 67 bcs 200ce48 <_Heap_Allocate_aligned_with_boundary+0x1c4>
200ccb0: 80 a6 a0 00 cmp %i2, 0
return NULL;
}
if ( alignment == 0 ) {
200ccb4: 22 80 00 03 be,a 200ccc0 <_Heap_Allocate_aligned_with_boundary+0x3c>
200ccb8: 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;
200ccbc: 82 10 20 04 mov 4, %g1
200ccc0: 82 20 40 19 sub %g1, %i1, %g1
if ( boundary != 0 ) {
if ( boundary < alloc_size ) {
return NULL;
}
if ( alignment == 0 ) {
200ccc4: 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;
200ccc8: 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;
200cccc: 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;
200ccd0: 82 05 20 07 add %l4, 7, %g1
200ccd4: 10 80 00 4b b 200ce00 <_Heap_Allocate_aligned_with_boundary+0x17c>
200ccd8: 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 ) {
200ccdc: 80 a4 c0 16 cmp %l3, %l6
200cce0: 08 80 00 47 bleu 200cdfc <_Heap_Allocate_aligned_with_boundary+0x178>
200cce4: a2 04 60 01 inc %l1
if ( alignment == 0 ) {
200cce8: 80 a6 a0 00 cmp %i2, 0
200ccec: 12 80 00 04 bne 200ccfc <_Heap_Allocate_aligned_with_boundary+0x78>
200ccf0: 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;
200ccf4: 10 80 00 3f b 200cdf0 <_Heap_Allocate_aligned_with_boundary+0x16c>
200ccf8: 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;
200ccfc: 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;
200cd00: 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;
200cd04: a6 0c ff fe and %l3, -2, %l3
200cd08: 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;
200cd0c: 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;
200cd10: 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);
200cd14: 90 10 00 10 mov %l0, %o0
200cd18: 82 20 80 17 sub %g2, %l7, %g1
200cd1c: 92 10 00 1a mov %i2, %o1
200cd20: 40 00 2f fe call 2018d18 <.urem>
200cd24: a6 00 40 13 add %g1, %l3, %l3
200cd28: 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 ) {
200cd2c: 80 a4 00 13 cmp %l0, %l3
200cd30: 08 80 00 07 bleu 200cd4c <_Heap_Allocate_aligned_with_boundary+0xc8>
200cd34: 80 a6 e0 00 cmp %i3, 0
200cd38: 90 10 00 13 mov %l3, %o0
200cd3c: 40 00 2f f7 call 2018d18 <.urem>
200cd40: 92 10 00 1a mov %i2, %o1
200cd44: a0 24 c0 08 sub %l3, %o0, %l0
}
alloc_end = alloc_begin + alloc_size;
/* Ensure boundary constaint */
if ( boundary != 0 ) {
200cd48: 80 a6 e0 00 cmp %i3, 0
200cd4c: 02 80 00 1d be 200cdc0 <_Heap_Allocate_aligned_with_boundary+0x13c>
200cd50: 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;
200cd54: a6 04 00 19 add %l0, %i1, %l3
/* Ensure boundary constaint */
if ( boundary != 0 ) {
uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;
200cd58: 82 05 40 19 add %l5, %i1, %g1
200cd5c: 92 10 00 1b mov %i3, %o1
200cd60: 90 10 00 13 mov %l3, %o0
200cd64: 10 80 00 0b b 200cd90 <_Heap_Allocate_aligned_with_boundary+0x10c>
200cd68: 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 ) {
200cd6c: 80 a0 40 02 cmp %g1, %g2
200cd70: 2a 80 00 24 bcs,a 200ce00 <_Heap_Allocate_aligned_with_boundary+0x17c>
200cd74: e4 04 a0 08 ld [ %l2 + 8 ], %l2
200cd78: 40 00 2f e8 call 2018d18 <.urem>
200cd7c: 01 00 00 00 nop
200cd80: 92 10 00 1b mov %i3, %o1
200cd84: 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;
200cd88: a6 04 00 19 add %l0, %i1, %l3
200cd8c: 90 10 00 13 mov %l3, %o0
200cd90: 40 00 2f e2 call 2018d18 <.urem>
200cd94: 01 00 00 00 nop
200cd98: 92 10 00 1a mov %i2, %o1
200cd9c: 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;
200cda0: 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 ) {
200cda4: 80 a0 40 13 cmp %g1, %l3
200cda8: 1a 80 00 05 bcc 200cdbc <_Heap_Allocate_aligned_with_boundary+0x138>
200cdac: 90 10 00 1d mov %i5, %o0
200cdb0: 80 a4 00 01 cmp %l0, %g1
200cdb4: 0a bf ff ee bcs 200cd6c <_Heap_Allocate_aligned_with_boundary+0xe8>
200cdb8: 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 ) {
200cdbc: 80 a4 00 15 cmp %l0, %l5
200cdc0: 0a 80 00 0f bcs 200cdfc <_Heap_Allocate_aligned_with_boundary+0x178>
200cdc4: 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;
200cdc8: 90 10 00 10 mov %l0, %o0
200cdcc: a6 04 c0 10 add %l3, %l0, %l3
200cdd0: 40 00 2f d2 call 2018d18 <.urem>
200cdd4: 92 10 00 14 mov %l4, %o1
if ( free_size >= min_block_size || free_size == 0 ) {
200cdd8: 90 a4 c0 08 subcc %l3, %o0, %o0
200cddc: 02 80 00 06 be 200cdf4 <_Heap_Allocate_aligned_with_boundary+0x170>
200cde0: 80 a4 20 00 cmp %l0, 0
200cde4: 80 a2 00 17 cmp %o0, %l7
200cde8: 2a 80 00 06 bcs,a 200ce00 <_Heap_Allocate_aligned_with_boundary+0x17c>
200cdec: e4 04 a0 08 ld [ %l2 + 8 ], %l2
boundary
);
}
}
if ( alloc_begin != 0 ) {
200cdf0: 80 a4 20 00 cmp %l0, 0
200cdf4: 32 80 00 08 bne,a 200ce14 <_Heap_Allocate_aligned_with_boundary+0x190><== ALWAYS TAKEN
200cdf8: c2 06 20 4c ld [ %i0 + 0x4c ], %g1
break;
}
block = block->next;
200cdfc: e4 04 a0 08 ld [ %l2 + 8 ], %l2
if ( alignment == 0 ) {
alignment = page_size;
}
}
while ( block != free_list_tail ) {
200ce00: 80 a4 80 18 cmp %l2, %i0
200ce04: 32 bf ff b6 bne,a 200ccdc <_Heap_Allocate_aligned_with_boundary+0x58>
200ce08: e6 04 a0 04 ld [ %l2 + 4 ], %l3
200ce0c: 10 80 00 09 b 200ce30 <_Heap_Allocate_aligned_with_boundary+0x1ac>
200ce10: 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 );
200ce14: 92 10 00 12 mov %l2, %o1
block = block->next;
}
if ( alloc_begin != 0 ) {
/* Statistics */
stats->searches += search_count;
200ce18: 82 00 40 11 add %g1, %l1, %g1
block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
200ce1c: 96 10 00 19 mov %i1, %o3
block = block->next;
}
if ( alloc_begin != 0 ) {
/* Statistics */
stats->searches += search_count;
200ce20: c2 26 20 4c st %g1, [ %i0 + 0x4c ]
block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
200ce24: 90 10 00 18 mov %i0, %o0
200ce28: 7f ff e9 a1 call 20074ac <_Heap_Block_allocate>
200ce2c: 94 10 00 10 mov %l0, %o2
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
Heap_Statistics *const stats = &heap->stats;
200ce30: c2 06 20 44 ld [ %i0 + 0x44 ], %g1
200ce34: 80 a0 40 11 cmp %g1, %l1
200ce38: 2a 80 00 02 bcs,a 200ce40 <_Heap_Allocate_aligned_with_boundary+0x1bc>
200ce3c: e2 26 20 44 st %l1, [ %i0 + 0x44 ]
/* Statistics */
if ( stats->max_search < search_count ) {
stats->max_search = search_count;
}
return (void *) alloc_begin;
200ce40: 81 c7 e0 08 ret
200ce44: 91 e8 00 10 restore %g0, %l0, %o0
}
200ce48: 81 c7 e0 08 ret
200ce4c: 91 e8 20 00 restore %g0, 0, %o0
020114ec <_Heap_Extend>:
Heap_Control *heap,
void *area_begin_ptr,
uintptr_t area_size,
uintptr_t *amount_extended
)
{
20114ec: 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;
20114f0: c2 06 20 1c ld [ %i0 + 0x1c ], %g1
Heap_Control *heap,
void *area_begin_ptr,
uintptr_t area_size,
uintptr_t *amount_extended
)
{
20114f4: 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 ) {
20114f8: 80 a6 40 01 cmp %i1, %g1
20114fc: 1a 80 00 07 bcc 2011518 <_Heap_Extend+0x2c>
2011500: 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;
2011504: c4 06 20 18 ld [ %i0 + 0x18 ], %g2
2011508: 80 a6 40 02 cmp %i1, %g2
201150c: 1a 80 00 28 bcc 20115ac <_Heap_Extend+0xc0>
2011510: 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 ) {
2011514: 80 a6 40 01 cmp %i1, %g1
2011518: 12 80 00 25 bne 20115ac <_Heap_Extend+0xc0>
201151c: 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);
2011520: 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;
2011524: 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
2011528: 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;
201152c: f4 24 20 1c st %i2, [ %l0 + 0x1c ]
extend_size = new_heap_area_end
2011530: b2 06 7f f8 add %i1, -8, %i1
2011534: 7f ff cb 1b call 20041a0 <.urem>
2011538: 90 10 00 19 mov %i1, %o0
201153c: 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;
2011540: d0 26 c0 00 st %o0, [ %i3 ]
if( extend_size >= heap->min_block_size ) {
2011544: c2 04 20 14 ld [ %l0 + 0x14 ], %g1
2011548: 80 a2 00 01 cmp %o0, %g1
201154c: 0a 80 00 18 bcs 20115ac <_Heap_Extend+0xc0> <== NEVER TAKEN
2011550: 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;
2011554: 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 =
2011558: c4 04 20 20 ld [ %l0 + 0x20 ], %g2
201155c: 82 08 60 01 and %g1, 1, %g1
2011560: 82 12 00 01 or %o0, %g1, %g1
2011564: 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);
2011568: 82 02 00 11 add %o0, %l1, %g1
201156c: 84 20 80 01 sub %g2, %g1, %g2
2011570: 84 10 a0 01 or %g2, 1, %g2
2011574: c4 20 60 04 st %g2, [ %g1 + 4 ]
heap->last_block = new_last_block;
/* Statistics */
stats->size += extend_size;
++stats->used_blocks;
2011578: c6 04 20 40 ld [ %l0 + 0x40 ], %g3
| HEAP_PREV_BLOCK_USED;
heap->last_block = new_last_block;
/* Statistics */
stats->size += extend_size;
201157c: f2 04 20 2c ld [ %l0 + 0x2c ], %i1
++stats->used_blocks;
--stats->frees; /* Do not count subsequent call as actual free() */
2011580: 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;
2011584: c2 24 20 24 st %g1, [ %l0 + 0x24 ]
/* Statistics */
stats->size += extend_size;
++stats->used_blocks;
2011588: 82 00 e0 01 add %g3, 1, %g1
| HEAP_PREV_BLOCK_USED;
heap->last_block = new_last_block;
/* Statistics */
stats->size += extend_size;
201158c: 90 06 40 08 add %i1, %o0, %o0
++stats->used_blocks;
2011590: c2 24 20 40 st %g1, [ %l0 + 0x40 ]
--stats->frees; /* Do not count subsequent call as actual free() */
2011594: 82 00 bf ff add %g2, -1, %g1
| HEAP_PREV_BLOCK_USED;
heap->last_block = new_last_block;
/* Statistics */
stats->size += extend_size;
2011598: d0 24 20 2c st %o0, [ %l0 + 0x2c ]
++stats->used_blocks;
--stats->frees; /* Do not count subsequent call as actual free() */
201159c: c2 24 20 50 st %g1, [ %l0 + 0x50 ]
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block ));
20115a0: 90 10 00 10 mov %l0, %o0
20115a4: 7f ff e6 8c call 200afd4 <_Heap_Free>
20115a8: 92 04 60 08 add %l1, 8, %o1
}
return HEAP_EXTEND_SUCCESSFUL;
}
20115ac: 81 c7 e0 08 ret
20115b0: 81 e8 00 00 restore
0200ce50 <_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 )
{
200ce50: 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 )
200ce54: d2 06 20 10 ld [ %i0 + 0x10 ], %o1
200ce58: 40 00 2f b0 call 2018d18 <.urem>
200ce5c: 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;
200ce60: 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 )
200ce64: b2 06 7f f8 add %i1, -8, %i1
200ce68: 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
200ce6c: 80 a2 00 01 cmp %o0, %g1
200ce70: 0a 80 00 05 bcs 200ce84 <_Heap_Free+0x34>
200ce74: 84 10 20 00 clr %g2
200ce78: c4 06 20 24 ld [ %i0 + 0x24 ], %g2
200ce7c: 80 a0 80 08 cmp %g2, %o0
200ce80: 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 ) ) {
200ce84: 80 a0 a0 00 cmp %g2, 0
200ce88: 02 80 00 6a be 200d030 <_Heap_Free+0x1e0>
200ce8c: 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;
200ce90: c8 02 20 04 ld [ %o0 + 4 ], %g4
200ce94: 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);
200ce98: 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
200ce9c: 80 a0 80 01 cmp %g2, %g1
200cea0: 0a 80 00 05 bcs 200ceb4 <_Heap_Free+0x64> <== NEVER TAKEN
200cea4: 9a 10 20 00 clr %o5
200cea8: da 06 20 24 ld [ %i0 + 0x24 ], %o5
200ceac: 80 a3 40 02 cmp %o5, %g2
200ceb0: 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 ) ) {
200ceb4: 80 a3 60 00 cmp %o5, 0
200ceb8: 02 80 00 5e be 200d030 <_Heap_Free+0x1e0> <== NEVER TAKEN
200cebc: 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;
200cec0: da 00 a0 04 ld [ %g2 + 4 ], %o5
_HAssert( false );
return false;
}
if ( !_Heap_Is_prev_used( next_block ) ) {
200cec4: 80 8b 60 01 btst 1, %o5
200cec8: 02 80 00 5a be 200d030 <_Heap_Free+0x1e0> <== NEVER TAKEN
200cecc: 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 ));
200ced0: 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
200ced4: 80 a0 80 09 cmp %g2, %o1
200ced8: 02 80 00 06 be 200cef0 <_Heap_Free+0xa0>
200cedc: 96 10 20 00 clr %o3
200cee0: 98 00 80 0d add %g2, %o5, %o4
200cee4: d6 03 20 04 ld [ %o4 + 4 ], %o3
200cee8: 96 0a e0 01 and %o3, 1, %o3
200ceec: 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 ) ) {
200cef0: 80 89 20 01 btst 1, %g4
200cef4: 12 80 00 26 bne 200cf8c <_Heap_Free+0x13c>
200cef8: 80 a2 e0 00 cmp %o3, 0
uintptr_t const prev_size = block->prev_size;
200cefc: 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);
200cf00: 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
200cf04: 80 a1 00 01 cmp %g4, %g1
200cf08: 0a 80 00 04 bcs 200cf18 <_Heap_Free+0xc8> <== NEVER TAKEN
200cf0c: 94 10 20 00 clr %o2
200cf10: 80 a2 40 04 cmp %o1, %g4
200cf14: 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 ) ) {
200cf18: 80 a2 a0 00 cmp %o2, 0
200cf1c: 02 80 00 45 be 200d030 <_Heap_Free+0x1e0> <== NEVER TAKEN
200cf20: 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) ) {
200cf24: c2 01 20 04 ld [ %g4 + 4 ], %g1
200cf28: 80 88 60 01 btst 1, %g1
200cf2c: 02 80 00 41 be 200d030 <_Heap_Free+0x1e0> <== NEVER TAKEN
200cf30: 80 a2 e0 00 cmp %o3, 0
_HAssert( false );
return( false );
}
if ( next_is_free ) { /* coalesce both */
200cf34: 22 80 00 0f be,a 200cf70 <_Heap_Free+0x120>
200cf38: 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;
200cf3c: 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;
200cf40: 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;
200cf44: c4 00 a0 08 ld [ %g2 + 8 ], %g2
200cf48: 82 00 7f ff add %g1, -1, %g1
200cf4c: 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;
200cf50: 9a 00 c0 0d add %g3, %o5, %o5
Heap_Block *prev = block->prev;
prev->next = next;
next->prev = prev;
200cf54: d6 20 a0 0c st %o3, [ %g2 + 0xc ]
200cf58: 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;
200cf5c: 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;
200cf60: 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;
200cf64: 98 13 20 01 or %o4, 1, %o4
200cf68: 10 80 00 27 b 200d004 <_Heap_Free+0x1b4>
200cf6c: 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;
200cf70: 82 13 20 01 or %o4, 1, %g1
200cf74: c2 21 20 04 st %g1, [ %g4 + 4 ]
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
200cf78: c2 00 a0 04 ld [ %g2 + 4 ], %g1
next_block->prev_size = size;
200cf7c: 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;
200cf80: 82 08 7f fe and %g1, -2, %g1
200cf84: 10 80 00 20 b 200d004 <_Heap_Free+0x1b4>
200cf88: c2 20 a0 04 st %g1, [ %g2 + 4 ]
next_block->prev_size = size;
}
} else if ( next_is_free ) { /* coalesce next */
200cf8c: 02 80 00 0d be 200cfc0 <_Heap_Free+0x170>
200cf90: 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;
200cf94: 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;
200cf98: c4 00 a0 08 ld [ %g2 + 8 ], %g2
Heap_Block *prev = old_block->prev;
new_block->next = next;
new_block->prev = prev;
200cf9c: c2 22 20 0c st %g1, [ %o0 + 0xc ]
)
{
Heap_Block *next = old_block->next;
Heap_Block *prev = old_block->prev;
new_block->next = next;
200cfa0: c4 22 20 08 st %g2, [ %o0 + 8 ]
new_block->prev = prev;
next->prev = new_block;
prev->next = new_block;
200cfa4: 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;
200cfa8: d0 20 a0 0c st %o0, [ %g2 + 0xc ]
uintptr_t const size = block_size + next_block_size;
200cfac: 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;
200cfb0: 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;
200cfb4: 82 10 60 01 or %g1, 1, %g1
200cfb8: 10 80 00 13 b 200d004 <_Heap_Free+0x1b4>
200cfbc: 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;
200cfc0: c2 22 20 04 st %g1, [ %o0 + 4 ]
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
200cfc4: 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;
200cfc8: c8 06 20 08 ld [ %i0 + 8 ], %g4
200cfcc: 82 08 7f fe and %g1, -2, %g1
next_block->prev_size = block_size;
200cfd0: 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;
200cfd4: c2 20 a0 04 st %g1, [ %g2 + 4 ]
next_block->prev_size = block_size;
/* Statistics */
++stats->free_blocks;
200cfd8: c2 06 20 38 ld [ %i0 + 0x38 ], %g1
new_block->next = next;
200cfdc: c8 22 20 08 st %g4, [ %o0 + 8 ]
new_block->prev = block_before;
200cfe0: 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;
200cfe4: 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;
200cfe8: 82 00 60 01 inc %g1
block_before->next = new_block;
next->prev = new_block;
200cfec: 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;
200cff0: 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;
200cff4: 80 a0 80 01 cmp %g2, %g1
200cff8: 1a 80 00 03 bcc 200d004 <_Heap_Free+0x1b4>
200cffc: 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;
200d000: c2 26 20 3c st %g1, [ %i0 + 0x3c ]
}
}
/* Statistics */
--stats->used_blocks;
200d004: c4 06 20 40 ld [ %i0 + 0x40 ], %g2
++stats->frees;
200d008: c2 06 20 50 ld [ %i0 + 0x50 ], %g1
stats->free_size += block_size;
200d00c: c8 06 20 30 ld [ %i0 + 0x30 ], %g4
stats->max_free_blocks = stats->free_blocks;
}
}
/* Statistics */
--stats->used_blocks;
200d010: 84 00 bf ff add %g2, -1, %g2
++stats->frees;
stats->free_size += block_size;
200d014: 86 01 00 03 add %g4, %g3, %g3
stats->max_free_blocks = stats->free_blocks;
}
}
/* Statistics */
--stats->used_blocks;
200d018: c4 26 20 40 st %g2, [ %i0 + 0x40 ]
++stats->frees;
stats->free_size += block_size;
200d01c: c6 26 20 30 st %g3, [ %i0 + 0x30 ]
}
}
/* Statistics */
--stats->used_blocks;
++stats->frees;
200d020: 82 00 60 01 inc %g1
200d024: c2 26 20 50 st %g1, [ %i0 + 0x50 ]
stats->free_size += block_size;
return( true );
200d028: 81 c7 e0 08 ret
200d02c: 91 e8 20 01 restore %g0, 1, %o0
}
200d030: 81 c7 e0 08 ret
200d034: 91 e8 20 00 restore %g0, 0, %o0
0201a690 <_Heap_Size_of_alloc_area>:
bool _Heap_Size_of_alloc_area(
Heap_Control *heap,
void *alloc_begin_ptr,
uintptr_t *alloc_size
)
{
201a690: 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 )
201a694: d2 06 20 10 ld [ %i0 + 0x10 ], %o1
201a698: 7f ff f9 a0 call 2018d18 <.urem>
201a69c: 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;
201a6a0: 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 )
201a6a4: 84 06 7f f8 add %i1, -8, %g2
201a6a8: 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
201a6ac: 80 a2 00 01 cmp %o0, %g1
201a6b0: 0a 80 00 05 bcs 201a6c4 <_Heap_Size_of_alloc_area+0x34>
201a6b4: 84 10 20 00 clr %g2
201a6b8: c4 06 20 24 ld [ %i0 + 0x24 ], %g2
201a6bc: 80 a0 80 08 cmp %g2, %o0
201a6c0: 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 ) ) {
201a6c4: 80 a0 a0 00 cmp %g2, 0
201a6c8: 02 80 00 16 be 201a720 <_Heap_Size_of_alloc_area+0x90>
201a6cc: 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);
201a6d0: c4 02 20 04 ld [ %o0 + 4 ], %g2
201a6d4: 84 08 bf fe and %g2, -2, %g2
201a6d8: 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
201a6dc: 80 a0 80 01 cmp %g2, %g1
201a6e0: 0a 80 00 05 bcs 201a6f4 <_Heap_Size_of_alloc_area+0x64> <== NEVER TAKEN
201a6e4: 86 10 20 00 clr %g3
201a6e8: c2 06 20 24 ld [ %i0 + 0x24 ], %g1
201a6ec: 80 a0 40 02 cmp %g1, %g2
201a6f0: 86 60 3f ff subx %g0, -1, %g3
}
block_size = _Heap_Block_size( block );
next_block = _Heap_Block_at( block, block_size );
if (
201a6f4: 80 a0 e0 00 cmp %g3, 0
201a6f8: 02 80 00 0a be 201a720 <_Heap_Size_of_alloc_area+0x90> <== NEVER TAKEN
201a6fc: 01 00 00 00 nop
201a700: c2 00 a0 04 ld [ %g2 + 4 ], %g1
201a704: 80 88 60 01 btst 1, %g1
201a708: 02 80 00 06 be 201a720 <_Heap_Size_of_alloc_area+0x90> <== NEVER TAKEN
201a70c: 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;
201a710: 84 00 a0 04 add %g2, 4, %g2
201a714: c4 26 80 00 st %g2, [ %i2 ]
return true;
201a718: 81 c7 e0 08 ret
201a71c: 91 e8 20 01 restore %g0, 1, %o0
}
201a720: 81 c7 e0 08 ret
201a724: 91 e8 20 00 restore %g0, 0, %o0
02008414 <_Heap_Walk>:
bool _Heap_Walk(
Heap_Control *heap,
int source,
bool dump
)
{
2008414: 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;
2008418: 23 00 80 22 sethi %hi(0x2008800), %l1
200841c: 80 8e a0 ff btst 0xff, %i2
2008420: a2 14 60 ec or %l1, 0xec, %l1
Heap_Control *heap,
int source,
bool dump
)
{
uintptr_t const page_size = heap->page_size;
2008424: e4 06 20 10 ld [ %i0 + 0x10 ], %l2
uintptr_t const min_block_size = heap->min_block_size;
2008428: e6 06 20 14 ld [ %i0 + 0x14 ], %l3
Heap_Block *const last_block = heap->last_block;
200842c: 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;
2008430: 12 80 00 04 bne 2008440 <_Heap_Walk+0x2c>
2008434: e0 06 20 20 ld [ %i0 + 0x20 ], %l0
2008438: 23 00 80 21 sethi %hi(0x2008400), %l1
200843c: a2 14 60 0c or %l1, 0xc, %l1 ! 200840c <_Heap_Walk_print_nothing>
if ( !_System_state_Is_up( _System_state_Get() ) ) {
2008440: 03 00 80 7d sethi %hi(0x201f400), %g1
2008444: c2 00 62 10 ld [ %g1 + 0x210 ], %g1 ! 201f610 <_System_state_Current>
2008448: 80 a0 60 03 cmp %g1, 3
200844c: 12 80 01 1e bne 20088c4 <_Heap_Walk+0x4b0>
2008450: 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)(
2008454: da 06 20 18 ld [ %i0 + 0x18 ], %o5
2008458: c6 06 20 1c ld [ %i0 + 0x1c ], %g3
200845c: c4 06 20 08 ld [ %i0 + 8 ], %g2
2008460: c2 06 20 0c ld [ %i0 + 0xc ], %g1
2008464: c6 23 a0 5c st %g3, [ %sp + 0x5c ]
2008468: c4 23 a0 68 st %g2, [ %sp + 0x68 ]
200846c: c2 23 a0 6c st %g1, [ %sp + 0x6c ]
2008470: e0 23 a0 60 st %l0, [ %sp + 0x60 ]
2008474: e8 23 a0 64 st %l4, [ %sp + 0x64 ]
2008478: 92 10 20 00 clr %o1
200847c: 15 00 80 71 sethi %hi(0x201c400), %o2
2008480: 96 10 00 12 mov %l2, %o3
2008484: 94 12 a1 70 or %o2, 0x170, %o2
2008488: 9f c4 40 00 call %l1
200848c: 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 ) {
2008490: 80 a4 a0 00 cmp %l2, 0
2008494: 12 80 00 07 bne 20084b0 <_Heap_Walk+0x9c>
2008498: 80 8c a0 07 btst 7, %l2
(*printer)( source, true, "page size is zero\n" );
200849c: 15 00 80 71 sethi %hi(0x201c400), %o2
20084a0: 90 10 00 19 mov %i1, %o0
20084a4: 92 10 20 01 mov 1, %o1
20084a8: 10 80 00 27 b 2008544 <_Heap_Walk+0x130>
20084ac: 94 12 a2 08 or %o2, 0x208, %o2
return false;
}
if ( !_Addresses_Is_aligned( (void *) page_size ) ) {
20084b0: 22 80 00 08 be,a 20084d0 <_Heap_Walk+0xbc>
20084b4: 90 10 00 13 mov %l3, %o0
(*printer)(
20084b8: 15 00 80 71 sethi %hi(0x201c400), %o2
20084bc: 90 10 00 19 mov %i1, %o0
20084c0: 96 10 00 12 mov %l2, %o3
20084c4: 92 10 20 01 mov 1, %o1
20084c8: 10 80 01 05 b 20088dc <_Heap_Walk+0x4c8>
20084cc: 94 12 a2 20 or %o2, 0x220, %o2
);
return false;
}
if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {
20084d0: 7f ff e5 82 call 2001ad8 <.urem>
20084d4: 92 10 00 12 mov %l2, %o1
20084d8: 80 a2 20 00 cmp %o0, 0
20084dc: 22 80 00 08 be,a 20084fc <_Heap_Walk+0xe8>
20084e0: 90 04 20 08 add %l0, 8, %o0
(*printer)(
20084e4: 15 00 80 71 sethi %hi(0x201c400), %o2
20084e8: 90 10 00 19 mov %i1, %o0
20084ec: 96 10 00 13 mov %l3, %o3
20084f0: 92 10 20 01 mov 1, %o1
20084f4: 10 80 00 fa b 20088dc <_Heap_Walk+0x4c8>
20084f8: 94 12 a2 40 or %o2, 0x240, %o2
);
return false;
}
if (
20084fc: 7f ff e5 77 call 2001ad8 <.urem>
2008500: 92 10 00 12 mov %l2, %o1
2008504: 80 a2 20 00 cmp %o0, 0
2008508: 22 80 00 08 be,a 2008528 <_Heap_Walk+0x114>
200850c: c2 04 20 04 ld [ %l0 + 4 ], %g1
!_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
) {
(*printer)(
2008510: 15 00 80 71 sethi %hi(0x201c400), %o2
2008514: 90 10 00 19 mov %i1, %o0
2008518: 96 10 00 10 mov %l0, %o3
200851c: 92 10 20 01 mov 1, %o1
2008520: 10 80 00 ef b 20088dc <_Heap_Walk+0x4c8>
2008524: 94 12 a2 68 or %o2, 0x268, %o2
);
return false;
}
if ( !_Heap_Is_prev_used( first_block ) ) {
2008528: 80 88 60 01 btst 1, %g1
200852c: 32 80 00 09 bne,a 2008550 <_Heap_Walk+0x13c>
2008530: ea 04 00 00 ld [ %l0 ], %l5
(*printer)(
2008534: 15 00 80 71 sethi %hi(0x201c400), %o2
2008538: 90 10 00 19 mov %i1, %o0
200853c: 92 10 20 01 mov 1, %o1
2008540: 94 12 a2 a0 or %o2, 0x2a0, %o2
2008544: 9f c4 40 00 call %l1
2008548: b0 10 20 00 clr %i0
200854c: 30 80 00 e6 b,a 20088e4 <_Heap_Walk+0x4d0>
);
return false;
}
if ( first_block->prev_size != page_size ) {
2008550: 80 a5 40 12 cmp %l5, %l2
2008554: 22 80 00 09 be,a 2008578 <_Heap_Walk+0x164>
2008558: c2 05 20 04 ld [ %l4 + 4 ], %g1
(*printer)(
200855c: 15 00 80 71 sethi %hi(0x201c400), %o2
2008560: 90 10 00 19 mov %i1, %o0
2008564: 96 10 00 15 mov %l5, %o3
2008568: 98 10 00 12 mov %l2, %o4
200856c: 92 10 20 01 mov 1, %o1
2008570: 10 80 00 88 b 2008790 <_Heap_Walk+0x37c>
2008574: 94 12 a2 d0 or %o2, 0x2d0, %o2
);
return false;
}
if ( _Heap_Is_free( last_block ) ) {
2008578: 82 08 7f fe and %g1, -2, %g1
200857c: 82 05 00 01 add %l4, %g1, %g1
2008580: c2 00 60 04 ld [ %g1 + 4 ], %g1
2008584: 80 88 60 01 btst 1, %g1
2008588: 32 80 00 07 bne,a 20085a4 <_Heap_Walk+0x190>
200858c: d6 06 20 08 ld [ %i0 + 8 ], %o3
(*printer)(
2008590: 15 00 80 71 sethi %hi(0x201c400), %o2
2008594: 90 10 00 19 mov %i1, %o0
2008598: 92 10 20 01 mov 1, %o1
200859c: 10 bf ff ea b 2008544 <_Heap_Walk+0x130>
20085a0: 94 12 a3 00 or %o2, 0x300, %o2
int source,
Heap_Walk_printer printer,
Heap_Control *heap
)
{
uintptr_t const page_size = heap->page_size;
20085a4: 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;
20085a8: a4 10 00 18 mov %i0, %l2
20085ac: 10 80 00 32 b 2008674 <_Heap_Walk+0x260>
20085b0: 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
20085b4: 80 a0 80 17 cmp %g2, %l7
20085b8: 18 80 00 05 bgu 20085cc <_Heap_Walk+0x1b8>
20085bc: 82 10 20 00 clr %g1
20085c0: c2 06 20 24 ld [ %i0 + 0x24 ], %g1
20085c4: 80 a0 40 17 cmp %g1, %l7
20085c8: 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 ) ) {
20085cc: 80 a0 60 00 cmp %g1, 0
20085d0: 32 80 00 08 bne,a 20085f0 <_Heap_Walk+0x1dc>
20085d4: 90 05 e0 08 add %l7, 8, %o0
(*printer)(
20085d8: 15 00 80 71 sethi %hi(0x201c400), %o2
20085dc: 96 10 00 17 mov %l7, %o3
20085e0: 90 10 00 19 mov %i1, %o0
20085e4: 92 10 20 01 mov 1, %o1
20085e8: 10 80 00 bd b 20088dc <_Heap_Walk+0x4c8>
20085ec: 94 12 a3 18 or %o2, 0x318, %o2
);
return false;
}
if (
20085f0: 7f ff e5 3a call 2001ad8 <.urem>
20085f4: 92 10 00 16 mov %l6, %o1
20085f8: 80 a2 20 00 cmp %o0, 0
20085fc: 22 80 00 08 be,a 200861c <_Heap_Walk+0x208>
2008600: c2 05 e0 04 ld [ %l7 + 4 ], %g1
!_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
) {
(*printer)(
2008604: 15 00 80 71 sethi %hi(0x201c400), %o2
2008608: 96 10 00 17 mov %l7, %o3
200860c: 90 10 00 19 mov %i1, %o0
2008610: 92 10 20 01 mov 1, %o1
2008614: 10 80 00 b2 b 20088dc <_Heap_Walk+0x4c8>
2008618: 94 12 a3 38 or %o2, 0x338, %o2
);
return false;
}
if ( _Heap_Is_used( free_block ) ) {
200861c: 82 08 7f fe and %g1, -2, %g1
2008620: 82 05 c0 01 add %l7, %g1, %g1
2008624: c2 00 60 04 ld [ %g1 + 4 ], %g1
2008628: 80 88 60 01 btst 1, %g1
200862c: 22 80 00 08 be,a 200864c <_Heap_Walk+0x238>
2008630: d8 05 e0 0c ld [ %l7 + 0xc ], %o4
(*printer)(
2008634: 15 00 80 71 sethi %hi(0x201c400), %o2
2008638: 96 10 00 17 mov %l7, %o3
200863c: 90 10 00 19 mov %i1, %o0
2008640: 92 10 20 01 mov 1, %o1
2008644: 10 80 00 a6 b 20088dc <_Heap_Walk+0x4c8>
2008648: 94 12 a3 68 or %o2, 0x368, %o2
);
return false;
}
if ( free_block->prev != prev_block ) {
200864c: 80 a3 00 12 cmp %o4, %l2
2008650: 02 80 00 08 be 2008670 <_Heap_Walk+0x25c>
2008654: a4 10 00 17 mov %l7, %l2
(*printer)(
2008658: 15 00 80 71 sethi %hi(0x201c400), %o2
200865c: 96 10 00 17 mov %l7, %o3
2008660: 90 10 00 19 mov %i1, %o0
2008664: 92 10 20 01 mov 1, %o1
2008668: 10 80 00 4a b 2008790 <_Heap_Walk+0x37c>
200866c: 94 12 a3 88 or %o2, 0x388, %o2
return false;
}
prev_block = free_block;
free_block = free_block->next;
2008670: 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 ) {
2008674: 80 a5 c0 18 cmp %l7, %i0
2008678: 32 bf ff cf bne,a 20085b4 <_Heap_Walk+0x1a0>
200867c: c4 06 20 20 ld [ %i0 + 0x20 ], %g2
"block 0x%08x: size %u\n",
block,
block_size
);
} else {
(*printer)(
2008680: 10 80 00 89 b 20088a4 <_Heap_Walk+0x490>
2008684: 37 00 80 71 sethi %hi(0x201c400), %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 ) {
2008688: 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;
200868c: ac 0d bf fe and %l6, -2, %l6
2008690: 02 80 00 0a be 20086b8 <_Heap_Walk+0x2a4>
2008694: a4 04 00 16 add %l0, %l6, %l2
(*printer)(
2008698: 90 10 00 19 mov %i1, %o0
200869c: 92 10 20 00 clr %o1
20086a0: 94 10 00 1a mov %i2, %o2
20086a4: 96 10 00 10 mov %l0, %o3
20086a8: 9f c4 40 00 call %l1
20086ac: 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
20086b0: 10 80 00 0a b 20086d8 <_Heap_Walk+0x2c4>
20086b4: c4 06 20 20 ld [ %i0 + 0x20 ], %g2
"block 0x%08x: size %u\n",
block,
block_size
);
} else {
(*printer)(
20086b8: da 04 00 00 ld [ %l0 ], %o5
20086bc: 90 10 00 19 mov %i1, %o0
20086c0: 92 10 20 00 clr %o1
20086c4: 94 10 00 1b mov %i3, %o2
20086c8: 96 10 00 10 mov %l0, %o3
20086cc: 9f c4 40 00 call %l1
20086d0: 98 10 00 16 mov %l6, %o4
20086d4: c4 06 20 20 ld [ %i0 + 0x20 ], %g2
20086d8: 80 a0 80 12 cmp %g2, %l2
20086dc: 18 80 00 05 bgu 20086f0 <_Heap_Walk+0x2dc> <== NEVER TAKEN
20086e0: 82 10 20 00 clr %g1
20086e4: c2 06 20 24 ld [ %i0 + 0x24 ], %g1
20086e8: 80 a0 40 12 cmp %g1, %l2
20086ec: 82 60 3f ff subx %g0, -1, %g1
block_size,
block->prev_size
);
}
if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {
20086f0: 80 a0 60 00 cmp %g1, 0
20086f4: 32 80 00 09 bne,a 2008718 <_Heap_Walk+0x304>
20086f8: 90 10 00 16 mov %l6, %o0
(*printer)(
20086fc: 15 00 80 72 sethi %hi(0x201c800), %o2
2008700: 90 10 00 19 mov %i1, %o0
2008704: 96 10 00 10 mov %l0, %o3
2008708: 98 10 00 12 mov %l2, %o4
200870c: 92 10 20 01 mov 1, %o1
2008710: 10 80 00 20 b 2008790 <_Heap_Walk+0x37c>
2008714: 94 12 a0 00 mov %o2, %o2
);
return false;
}
if ( !_Heap_Is_aligned( block_size, page_size ) ) {
2008718: 7f ff e4 f0 call 2001ad8 <.urem>
200871c: 92 10 00 15 mov %l5, %o1
2008720: 80 a2 20 00 cmp %o0, 0
2008724: 02 80 00 09 be 2008748 <_Heap_Walk+0x334>
2008728: 80 a5 80 13 cmp %l6, %l3
(*printer)(
200872c: 15 00 80 72 sethi %hi(0x201c800), %o2
2008730: 90 10 00 19 mov %i1, %o0
2008734: 96 10 00 10 mov %l0, %o3
2008738: 98 10 00 16 mov %l6, %o4
200873c: 92 10 20 01 mov 1, %o1
2008740: 10 80 00 14 b 2008790 <_Heap_Walk+0x37c>
2008744: 94 12 a0 30 or %o2, 0x30, %o2
);
return false;
}
if ( block_size < min_block_size ) {
2008748: 1a 80 00 0a bcc 2008770 <_Heap_Walk+0x35c>
200874c: 80 a4 80 10 cmp %l2, %l0
(*printer)(
2008750: 15 00 80 72 sethi %hi(0x201c800), %o2
2008754: 90 10 00 19 mov %i1, %o0
2008758: 96 10 00 10 mov %l0, %o3
200875c: 98 10 00 16 mov %l6, %o4
2008760: 9a 10 00 13 mov %l3, %o5
2008764: 92 10 20 01 mov 1, %o1
2008768: 10 80 00 3b b 2008854 <_Heap_Walk+0x440>
200876c: 94 12 a0 60 or %o2, 0x60, %o2
);
return false;
}
if ( next_block_begin <= block_begin ) {
2008770: 38 80 00 0b bgu,a 200879c <_Heap_Walk+0x388>
2008774: c2 04 a0 04 ld [ %l2 + 4 ], %g1
(*printer)(
2008778: 15 00 80 72 sethi %hi(0x201c800), %o2
200877c: 90 10 00 19 mov %i1, %o0
2008780: 96 10 00 10 mov %l0, %o3
2008784: 98 10 00 12 mov %l2, %o4
2008788: 92 10 20 01 mov 1, %o1
200878c: 94 12 a0 90 or %o2, 0x90, %o2
2008790: 9f c4 40 00 call %l1
2008794: b0 10 20 00 clr %i0
2008798: 30 80 00 53 b,a 20088e4 <_Heap_Walk+0x4d0>
);
return false;
}
if ( !_Heap_Is_prev_used( next_block ) ) {
200879c: 80 88 60 01 btst 1, %g1
20087a0: 32 80 00 46 bne,a 20088b8 <_Heap_Walk+0x4a4>
20087a4: 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;
20087a8: 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)(
20087ac: 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;
20087b0: 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;
20087b4: 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;
20087b8: 1b 00 80 72 sethi %hi(0x201c800), %o5
20087bc: 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;
20087c0: 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);
20087c4: 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;
20087c8: 02 80 00 07 be 20087e4 <_Heap_Walk+0x3d0>
20087cc: 9a 13 60 c8 or %o5, 0xc8, %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)" : ""),
20087d0: 1b 00 80 72 sethi %hi(0x201c800), %o5
20087d4: 80 a3 00 18 cmp %o4, %i0
20087d8: 02 80 00 03 be 20087e4 <_Heap_Walk+0x3d0>
20087dc: 9a 13 60 e0 or %o5, 0xe0, %o5
20087e0: 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)(
20087e4: c4 04 20 08 ld [ %l0 + 8 ], %g2
20087e8: 03 00 80 72 sethi %hi(0x201c800), %g1
20087ec: 80 a0 80 03 cmp %g2, %g3
20087f0: 02 80 00 07 be 200880c <_Heap_Walk+0x3f8>
20087f4: 82 10 60 f0 or %g1, 0xf0, %g1
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
block->next,
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
20087f8: 03 00 80 72 sethi %hi(0x201c800), %g1
20087fc: 80 a0 80 18 cmp %g2, %i0
2008800: 02 80 00 03 be 200880c <_Heap_Walk+0x3f8>
2008804: 82 10 61 00 or %g1, 0x100, %g1
2008808: 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)(
200880c: c4 23 a0 5c st %g2, [ %sp + 0x5c ]
2008810: c2 23 a0 60 st %g1, [ %sp + 0x60 ]
2008814: 90 10 00 19 mov %i1, %o0
2008818: 92 10 20 00 clr %o1
200881c: 15 00 80 72 sethi %hi(0x201c800), %o2
2008820: 96 10 00 10 mov %l0, %o3
2008824: 9f c4 40 00 call %l1
2008828: 94 12 a1 10 or %o2, 0x110, %o2
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
);
if ( block_size != next_block->prev_size ) {
200882c: da 05 c0 00 ld [ %l7 ], %o5
2008830: 80 a5 80 0d cmp %l6, %o5
2008834: 02 80 00 0b be 2008860 <_Heap_Walk+0x44c>
2008838: 15 00 80 72 sethi %hi(0x201c800), %o2
(*printer)(
200883c: ee 23 a0 5c st %l7, [ %sp + 0x5c ]
2008840: 90 10 00 19 mov %i1, %o0
2008844: 96 10 00 10 mov %l0, %o3
2008848: 98 10 00 16 mov %l6, %o4
200884c: 92 10 20 01 mov 1, %o1
2008850: 94 12 a1 40 or %o2, 0x140, %o2
2008854: 9f c4 40 00 call %l1
2008858: b0 10 20 00 clr %i0
200885c: 30 80 00 22 b,a 20088e4 <_Heap_Walk+0x4d0>
);
return false;
}
if ( !prev_used ) {
2008860: 80 8f 60 01 btst 1, %i5
2008864: 32 80 00 0b bne,a 2008890 <_Heap_Walk+0x47c>
2008868: c2 06 20 08 ld [ %i0 + 8 ], %g1
(*printer)(
200886c: 15 00 80 72 sethi %hi(0x201c800), %o2
2008870: 90 10 00 19 mov %i1, %o0
2008874: 96 10 00 10 mov %l0, %o3
2008878: 92 10 20 01 mov 1, %o1
200887c: 10 80 00 18 b 20088dc <_Heap_Walk+0x4c8>
2008880: 94 12 a1 80 or %o2, 0x180, %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 ) {
2008884: 22 80 00 0d be,a 20088b8 <_Heap_Walk+0x4a4>
2008888: a0 10 00 12 mov %l2, %l0
return true;
}
free_block = free_block->next;
200888c: 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 ) {
2008890: 80 a0 40 18 cmp %g1, %i0
2008894: 12 bf ff fc bne 2008884 <_Heap_Walk+0x470>
2008898: 80 a0 40 10 cmp %g1, %l0
return false;
}
if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {
(*printer)(
200889c: 10 80 00 0c b 20088cc <_Heap_Walk+0x4b8>
20088a0: 15 00 80 72 sethi %hi(0x201c800), %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)(
20088a4: 35 00 80 71 sethi %hi(0x201c400), %i2
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
block->next,
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
20088a8: 39 00 80 72 sethi %hi(0x201c800), %i4
"block 0x%08x: size %u\n",
block,
block_size
);
} else {
(*printer)(
20088ac: b6 16 e3 d8 or %i3, 0x3d8, %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)(
20088b0: b4 16 a3 c0 or %i2, 0x3c0, %i2
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
block->next,
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
20088b4: b8 17 20 d8 or %i4, 0xd8, %i4
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
}
while ( block != last_block ) {
20088b8: 80 a4 00 14 cmp %l0, %l4
20088bc: 32 bf ff 73 bne,a 2008688 <_Heap_Walk+0x274>
20088c0: ec 04 20 04 ld [ %l0 + 4 ], %l6
block = next_block;
}
return true;
}
20088c4: 81 c7 e0 08 ret
20088c8: 91 e8 20 01 restore %g0, 1, %o0
return false;
}
if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {
(*printer)(
20088cc: 90 10 00 19 mov %i1, %o0
20088d0: 96 10 00 10 mov %l0, %o3
20088d4: 92 10 20 01 mov 1, %o1
20088d8: 94 12 a1 b0 or %o2, 0x1b0, %o2
20088dc: 9f c4 40 00 call %l1
20088e0: b0 10 20 00 clr %i0
20088e4: 81 c7 e0 08 ret
20088e8: 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
020076a8 <_Objects_Allocate>:
*/
Objects_Control *_Objects_Allocate(
Objects_Information *information
)
{
20076a8: 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 )
20076ac: c2 06 20 18 ld [ %i0 + 0x18 ], %g1
*/
Objects_Control *_Objects_Allocate(
Objects_Information *information
)
{
20076b0: 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 )
20076b4: 80 a0 60 00 cmp %g1, 0
20076b8: 02 80 00 20 be 2007738 <_Objects_Allocate+0x90> <== NEVER TAKEN
20076bc: 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 );
20076c0: a2 04 20 20 add %l0, 0x20, %l1
20076c4: 7f ff fd 8f call 2006d00 <_Chain_Get>
20076c8: 90 10 00 11 mov %l1, %o0
if ( information->auto_extend ) {
20076cc: c2 0c 20 12 ldub [ %l0 + 0x12 ], %g1
20076d0: 80 a0 60 00 cmp %g1, 0
20076d4: 02 80 00 19 be 2007738 <_Objects_Allocate+0x90>
20076d8: 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 ) {
20076dc: 80 a2 20 00 cmp %o0, 0
20076e0: 32 80 00 0a bne,a 2007708 <_Objects_Allocate+0x60>
20076e4: c2 14 20 0a lduh [ %l0 + 0xa ], %g1
_Objects_Extend_information( information );
20076e8: 40 00 00 1e call 2007760 <_Objects_Extend_information>
20076ec: 90 10 00 10 mov %l0, %o0
the_object = (Objects_Control *) _Chain_Get( &information->Inactive );
20076f0: 7f ff fd 84 call 2006d00 <_Chain_Get>
20076f4: 90 10 00 11 mov %l1, %o0
}
if ( the_object ) {
20076f8: b0 92 20 00 orcc %o0, 0, %i0
20076fc: 02 80 00 0f be 2007738 <_Objects_Allocate+0x90>
2007700: 01 00 00 00 nop
uint32_t block;
block = (uint32_t) _Objects_Get_index( the_object->id ) -
2007704: c2 14 20 0a lduh [ %l0 + 0xa ], %g1
2007708: d0 16 20 0a lduh [ %i0 + 0xa ], %o0
_Objects_Get_index( information->minimum_id );
block /= information->allocation_size;
information->inactive_per_block[ block ]--;
200770c: d2 14 20 14 lduh [ %l0 + 0x14 ], %o1
2007710: 40 00 44 d6 call 2018a68 <.udiv>
2007714: 90 22 00 01 sub %o0, %g1, %o0
2007718: c2 04 20 30 ld [ %l0 + 0x30 ], %g1
200771c: 91 2a 20 02 sll %o0, 2, %o0
information->inactive--;
2007720: 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 ]--;
2007724: c4 00 40 08 ld [ %g1 + %o0 ], %g2
information->inactive--;
2007728: 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 ]--;
200772c: 84 00 bf ff add %g2, -1, %g2
information->inactive--;
2007730: 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 ]--;
2007734: c4 20 40 08 st %g2, [ %g1 + %o0 ]
information->inactive--;
}
}
return the_object;
}
2007738: 81 c7 e0 08 ret
200773c: 81 e8 00 00 restore
02007760 <_Objects_Extend_information>:
*/
void _Objects_Extend_information(
Objects_Information *information
)
{
2007760: 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 )
2007764: e4 06 20 34 ld [ %i0 + 0x34 ], %l2
2007768: 80 a4 a0 00 cmp %l2, 0
200776c: 12 80 00 06 bne 2007784 <_Objects_Extend_information+0x24>
2007770: e6 16 20 0a lduh [ %i0 + 0xa ], %l3
2007774: a0 10 00 13 mov %l3, %l0
2007778: a2 10 20 00 clr %l1
200777c: 10 80 00 15 b 20077d0 <_Objects_Extend_information+0x70>
2007780: a8 10 20 00 clr %l4
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
2007784: e2 16 20 14 lduh [ %i0 + 0x14 ], %l1
2007788: d0 16 20 10 lduh [ %i0 + 0x10 ], %o0
200778c: 40 00 44 b7 call 2018a68 <.udiv>
2007790: 92 10 00 11 mov %l1, %o1
for ( ; block < block_count; block++ ) {
if ( information->object_blocks[ block ] == NULL )
2007794: 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;
2007798: 91 2a 20 10 sll %o0, 0x10, %o0
200779c: a0 10 00 13 mov %l3, %l0
20077a0: a9 32 20 10 srl %o0, 0x10, %l4
for ( ; block < block_count; block++ ) {
20077a4: 10 80 00 08 b 20077c4 <_Objects_Extend_information+0x64>
20077a8: a2 10 20 00 clr %l1
if ( information->object_blocks[ block ] == NULL )
20077ac: c4 04 80 02 ld [ %l2 + %g2 ], %g2
20077b0: 80 a0 a0 00 cmp %g2, 0
20077b4: 22 80 00 08 be,a 20077d4 <_Objects_Extend_information+0x74>
20077b8: d0 16 20 14 lduh [ %i0 + 0x14 ], %o0
20077bc: 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++ ) {
20077c0: a2 04 60 01 inc %l1
20077c4: 80 a4 40 14 cmp %l1, %l4
20077c8: 0a bf ff f9 bcs 20077ac <_Objects_Extend_information+0x4c>
20077cc: 85 2c 60 02 sll %l1, 2, %g2
else
index_base += information->allocation_size;
}
}
maximum = (uint32_t) information->maximum + information->allocation_size;
20077d0: d0 16 20 14 lduh [ %i0 + 0x14 ], %o0
20077d4: 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 ) {
20077d8: 03 00 00 3f sethi %hi(0xfc00), %g1
else
index_base += information->allocation_size;
}
}
maximum = (uint32_t) information->maximum + information->allocation_size;
20077dc: 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 ) {
20077e0: 82 10 63 ff or %g1, 0x3ff, %g1
20077e4: 80 a5 80 01 cmp %l6, %g1
20077e8: 18 80 00 88 bgu 2007a08 <_Objects_Extend_information+0x2a8><== NEVER TAKEN
20077ec: 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;
20077f0: 40 00 44 64 call 2018980 <.umul>
20077f4: d2 06 20 18 ld [ %i0 + 0x18 ], %o1
if ( information->auto_extend ) {
20077f8: c2 0e 20 12 ldub [ %i0 + 0x12 ], %g1
20077fc: 80 a0 60 00 cmp %g1, 0
2007800: 02 80 00 09 be 2007824 <_Objects_Extend_information+0xc4>
2007804: 01 00 00 00 nop
new_object_block = _Workspace_Allocate( block_size );
2007808: 40 00 08 68 call 20099a8 <_Workspace_Allocate>
200780c: 01 00 00 00 nop
if ( !new_object_block )
2007810: a4 92 20 00 orcc %o0, 0, %l2
2007814: 32 80 00 08 bne,a 2007834 <_Objects_Extend_information+0xd4>
2007818: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1
200781c: 81 c7 e0 08 ret
2007820: 81 e8 00 00 restore
return;
} else {
new_object_block = _Workspace_Allocate_or_fatal_error( block_size );
2007824: 40 00 08 53 call 2009970 <_Workspace_Allocate_or_fatal_error>
2007828: 01 00 00 00 nop
200782c: 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 ) {
2007830: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1
2007834: 80 a4 00 01 cmp %l0, %g1
2007838: 2a 80 00 53 bcs,a 2007984 <_Objects_Extend_information+0x224>
200783c: 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 );
2007840: 82 05 80 13 add %l6, %l3, %g1
*/
/*
* Up the block count and maximum
*/
block_count++;
2007844: 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 );
2007848: 91 2d e0 01 sll %l7, 1, %o0
200784c: 90 02 00 17 add %o0, %l7, %o0
2007850: 90 00 40 08 add %g1, %o0, %o0
2007854: 40 00 08 55 call 20099a8 <_Workspace_Allocate>
2007858: 91 2a 20 02 sll %o0, 2, %o0
if ( !object_blocks ) {
200785c: aa 92 20 00 orcc %o0, 0, %l5
2007860: 32 80 00 06 bne,a 2007878 <_Objects_Extend_information+0x118>
2007864: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1
_Workspace_Free( new_object_block );
2007868: 40 00 08 59 call 20099cc <_Workspace_Free>
200786c: 90 10 00 12 mov %l2, %o0
return;
2007870: 81 c7 e0 08 ret
2007874: 81 e8 00 00 restore
}
/*
* Break the block into the various sections.
*/
inactive_per_block = (uint32_t *) _Addresses_Add_offset(
2007878: 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 ) {
200787c: 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);
2007880: ba 05 40 17 add %l5, %l7, %i5
2007884: 82 10 20 00 clr %g1
2007888: 08 80 00 14 bleu 20078d8 <_Objects_Extend_information+0x178>
200788c: 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,
2007890: d2 06 20 34 ld [ %i0 + 0x34 ], %o1
information->object_blocks,
block_count * sizeof(void*) );
2007894: 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,
2007898: 40 00 21 5d call 200fe0c <memcpy>
200789c: 94 10 00 1c mov %i4, %o2
information->object_blocks,
block_count * sizeof(void*) );
memcpy( inactive_per_block,
20078a0: d2 06 20 30 ld [ %i0 + 0x30 ], %o1
20078a4: 94 10 00 1c mov %i4, %o2
20078a8: 40 00 21 59 call 200fe0c <memcpy>
20078ac: 90 10 00 1d mov %i5, %o0
information->inactive_per_block,
block_count * sizeof(uint32_t) );
memcpy( local_table,
20078b0: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1
20078b4: d2 06 20 1c ld [ %i0 + 0x1c ], %o1
20078b8: a6 04 c0 01 add %l3, %g1, %l3
20078bc: 90 10 00 17 mov %l7, %o0
20078c0: 40 00 21 53 call 200fe0c <memcpy>
20078c4: 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 );
20078c8: 10 80 00 08 b 20078e8 <_Objects_Extend_information+0x188>
20078cc: 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++ ) {
20078d0: 82 00 60 01 inc %g1
local_table[ index ] = NULL;
20078d4: 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++ ) {
20078d8: 80 a0 40 13 cmp %g1, %l3
20078dc: 2a bf ff fd bcs,a 20078d0 <_Objects_Extend_information+0x170>
20078e0: 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 );
20078e4: c6 16 20 14 lduh [ %i0 + 0x14 ], %g3
}
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
20078e8: a9 2d 20 02 sll %l4, 2, %l4
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
20078ec: 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;
20078f0: c0 27 40 14 clr [ %i5 + %l4 ]
}
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
20078f4: c0 25 40 14 clr [ %l5 + %l4 ]
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
20078f8: 86 04 00 03 add %l0, %g3, %g3
20078fc: 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 ;
2007900: 10 80 00 04 b 2007910 <_Objects_Extend_information+0x1b0>
2007904: 82 10 00 10 mov %l0, %g1
index < ( information->allocation_size + index_base );
index++ ) {
2007908: 82 00 60 01 inc %g1
200790c: 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 ;
2007910: 80 a0 40 03 cmp %g1, %g3
2007914: 2a bf ff fd bcs,a 2007908 <_Objects_Extend_information+0x1a8>
2007918: c0 20 80 00 clr [ %g2 ]
index < ( information->allocation_size + index_base );
index++ ) {
local_table[ index ] = NULL;
}
_ISR_Disable( level );
200791c: 7f ff e9 aa call 2001fc4 <sparc_disable_interrupts>
2007920: 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(
2007924: c8 06 00 00 ld [ %i0 ], %g4
2007928: 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;
200792c: ec 36 20 10 sth %l6, [ %i0 + 0x10 ]
information->maximum_id = _Objects_Build_id(
2007930: ad 2d a0 10 sll %l6, 0x10, %l6
local_table[ index ] = NULL;
}
_ISR_Disable( level );
old_tables = information->object_blocks;
2007934: 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(
2007938: 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;
200793c: fa 26 20 30 st %i5, [ %i0 + 0x30 ]
information->local_table = local_table;
2007940: ee 26 20 1c st %l7, [ %i0 + 0x1c ]
information->maximum = (Objects_Maximum) maximum;
information->maximum_id = _Objects_Build_id(
2007944: 89 29 20 18 sll %g4, 0x18, %g4
2007948: 85 28 a0 1b sll %g2, 0x1b, %g2
_ISR_Disable( level );
old_tables = information->object_blocks;
information->object_blocks = object_blocks;
200794c: 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(
2007950: 07 00 00 40 sethi %hi(0x10000), %g3
2007954: ac 11 00 03 or %g4, %g3, %l6
2007958: ac 15 80 02 or %l6, %g2, %l6
200795c: ac 15 80 01 or %l6, %g1, %l6
2007960: ec 26 20 0c st %l6, [ %i0 + 0xc ]
information->the_class,
_Objects_Local_node,
information->maximum
);
_ISR_Enable( level );
2007964: 7f ff e9 9c call 2001fd4 <sparc_enable_interrupts>
2007968: 01 00 00 00 nop
if ( old_tables )
200796c: 80 a4 e0 00 cmp %l3, 0
2007970: 22 80 00 05 be,a 2007984 <_Objects_Extend_information+0x224>
2007974: c2 06 20 34 ld [ %i0 + 0x34 ], %g1
_Workspace_Free( old_tables );
2007978: 40 00 08 15 call 20099cc <_Workspace_Free>
200797c: 90 10 00 13 mov %l3, %o0
}
/*
* Assign the new object block to the object block table.
*/
information->object_blocks[ block ] = new_object_block;
2007980: c2 06 20 34 ld [ %i0 + 0x34 ], %g1
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
2007984: d4 16 20 14 lduh [ %i0 + 0x14 ], %o2
2007988: d6 06 20 18 ld [ %i0 + 0x18 ], %o3
200798c: 92 10 00 12 mov %l2, %o1
2007990: 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;
2007994: a3 2c 60 02 sll %l1, 2, %l1
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
2007998: 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;
200799c: 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(
20079a0: 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(
20079a4: 40 00 14 07 call 200c9c0 <_Chain_Initialize>
20079a8: 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 ) {
20079ac: 30 80 00 0c b,a 20079dc <_Objects_Extend_information+0x27c>
the_object->id = _Objects_Build_id(
20079b0: c4 16 20 04 lduh [ %i0 + 4 ], %g2
20079b4: 83 28 60 18 sll %g1, 0x18, %g1
20079b8: 85 28 a0 1b sll %g2, 0x1b, %g2
20079bc: 82 10 40 13 or %g1, %l3, %g1
20079c0: 82 10 40 02 or %g1, %g2, %g1
20079c4: 82 10 40 10 or %g1, %l0, %g1
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
20079c8: 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(
20079cc: c2 22 20 08 st %g1, [ %o0 + 8 ]
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
20079d0: a0 04 20 01 inc %l0
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
20079d4: 7f ff fc b5 call 2006ca8 <_Chain_Append>
20079d8: 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 ) {
20079dc: 7f ff fc c9 call 2006d00 <_Chain_Get>
20079e0: 90 10 00 12 mov %l2, %o0
20079e4: 80 a2 20 00 cmp %o0, 0
20079e8: 32 bf ff f2 bne,a 20079b0 <_Objects_Extend_information+0x250>
20079ec: c2 06 00 00 ld [ %i0 ], %g1
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
information->inactive =
20079f0: c2 16 20 2c lduh [ %i0 + 0x2c ], %g1
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
20079f4: c8 16 20 14 lduh [ %i0 + 0x14 ], %g4
20079f8: c4 06 20 30 ld [ %i0 + 0x30 ], %g2
information->inactive =
20079fc: 82 01 00 01 add %g4, %g1, %g1
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
2007a00: c8 20 80 11 st %g4, [ %g2 + %l1 ]
information->inactive =
2007a04: c2 36 20 2c sth %g1, [ %i0 + 0x2c ]
2007a08: 81 c7 e0 08 ret
2007a0c: 81 e8 00 00 restore
02007ab8 <_Objects_Get_information>:
Objects_Information *_Objects_Get_information(
Objects_APIs the_api,
uint32_t the_class
)
{
2007ab8: 9d e3 bf a0 save %sp, -96, %sp
Objects_Information *info;
int the_class_api_maximum;
if ( !the_class )
2007abc: 80 a6 60 00 cmp %i1, 0
2007ac0: 22 80 00 1a be,a 2007b28 <_Objects_Get_information+0x70>
2007ac4: 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 );
2007ac8: 40 00 15 5c call 200d038 <_Objects_API_maximum_class>
2007acc: 90 10 00 18 mov %i0, %o0
if ( the_class_api_maximum == 0 )
2007ad0: 80 a2 20 00 cmp %o0, 0
2007ad4: 22 80 00 15 be,a 2007b28 <_Objects_Get_information+0x70>
2007ad8: b0 10 20 00 clr %i0
return NULL;
if ( the_class > (uint32_t) the_class_api_maximum )
2007adc: 80 a6 40 08 cmp %i1, %o0
2007ae0: 38 80 00 12 bgu,a 2007b28 <_Objects_Get_information+0x70>
2007ae4: b0 10 20 00 clr %i0
return NULL;
if ( !_Objects_Information_table[ the_api ] )
2007ae8: b1 2e 20 02 sll %i0, 2, %i0
2007aec: 03 00 80 72 sethi %hi(0x201c800), %g1
2007af0: 82 10 63 80 or %g1, 0x380, %g1 ! 201cb80 <_Objects_Information_table>
2007af4: c2 00 40 18 ld [ %g1 + %i0 ], %g1
2007af8: 80 a0 60 00 cmp %g1, 0
2007afc: 02 80 00 0b be 2007b28 <_Objects_Get_information+0x70> <== NEVER TAKEN
2007b00: b0 10 20 00 clr %i0
return NULL;
info = _Objects_Information_table[ the_api ][ the_class ];
2007b04: b3 2e 60 02 sll %i1, 2, %i1
2007b08: f0 00 40 19 ld [ %g1 + %i1 ], %i0
if ( !info )
2007b0c: 80 a6 20 00 cmp %i0, 0
2007b10: 02 80 00 06 be 2007b28 <_Objects_Get_information+0x70> <== NEVER TAKEN
2007b14: 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 )
2007b18: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1
2007b1c: 80 a0 60 00 cmp %g1, 0
2007b20: 22 80 00 02 be,a 2007b28 <_Objects_Get_information+0x70>
2007b24: b0 10 20 00 clr %i0
return NULL;
#endif
return info;
}
2007b28: 81 c7 e0 08 ret
2007b2c: 81 e8 00 00 restore
0201828c <_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;
201828c: c4 02 20 08 ld [ %o0 + 8 ], %g2
if ( information->maximum >= index ) {
2018290: 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;
2018294: 84 22 40 02 sub %o1, %g2, %g2
2018298: 84 00 a0 01 inc %g2
if ( information->maximum >= index ) {
201829c: 80 a0 40 02 cmp %g1, %g2
20182a0: 0a 80 00 09 bcs 20182c4 <_Objects_Get_no_protection+0x38>
20182a4: 85 28 a0 02 sll %g2, 2, %g2
if ( (the_object = information->local_table[ index ]) != NULL ) {
20182a8: c2 02 20 1c ld [ %o0 + 0x1c ], %g1
20182ac: d0 00 40 02 ld [ %g1 + %g2 ], %o0
20182b0: 80 a2 20 00 cmp %o0, 0
20182b4: 02 80 00 05 be 20182c8 <_Objects_Get_no_protection+0x3c> <== NEVER TAKEN
20182b8: 82 10 20 01 mov 1, %g1
*location = OBJECTS_LOCAL;
return the_object;
20182bc: 81 c3 e0 08 retl
20182c0: 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;
20182c4: 82 10 20 01 mov 1, %g1
20182c8: 90 10 20 00 clr %o0
return NULL;
}
20182cc: 81 c3 e0 08 retl
20182d0: c2 22 80 00 st %g1, [ %o2 ]
0200c484 <_Objects_Id_to_name>:
*/
Objects_Name_or_id_lookup_errors _Objects_Id_to_name (
Objects_Id id,
Objects_Name *name
)
{
200c484: 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;
200c488: 92 96 20 00 orcc %i0, 0, %o1
200c48c: 12 80 00 06 bne 200c4a4 <_Objects_Id_to_name+0x20>
200c490: 83 32 60 18 srl %o1, 0x18, %g1
200c494: 03 00 80 b5 sethi %hi(0x202d400), %g1
200c498: c2 00 63 50 ld [ %g1 + 0x350 ], %g1 ! 202d750 <_Thread_Executing>
200c49c: 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);
200c4a0: 83 32 60 18 srl %o1, 0x18, %g1
200c4a4: 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 )
200c4a8: 84 00 7f ff add %g1, -1, %g2
200c4ac: 80 a0 a0 03 cmp %g2, 3
200c4b0: 18 80 00 14 bgu 200c500 <_Objects_Id_to_name+0x7c>
200c4b4: 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 ] )
200c4b8: 10 80 00 14 b 200c508 <_Objects_Id_to_name+0x84>
200c4bc: 05 00 80 b5 sethi %hi(0x202d400), %g2
return OBJECTS_INVALID_ID;
the_class = _Objects_Get_class( tmpId );
information = _Objects_Information_table[ the_api ][ the_class ];
200c4c0: 85 28 a0 02 sll %g2, 2, %g2
200c4c4: d0 00 40 02 ld [ %g1 + %g2 ], %o0
if ( !information )
200c4c8: 80 a2 20 00 cmp %o0, 0
200c4cc: 02 80 00 0d be 200c500 <_Objects_Id_to_name+0x7c> <== NEVER TAKEN
200c4d0: 01 00 00 00 nop
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
if ( information->is_string )
return OBJECTS_INVALID_ID;
#endif
the_object = _Objects_Get( information, tmpId, &ignored_location );
200c4d4: 7f ff ff cf call 200c410 <_Objects_Get>
200c4d8: 94 07 bf fc add %fp, -4, %o2
if ( !the_object )
200c4dc: 80 a2 20 00 cmp %o0, 0
200c4e0: 02 80 00 08 be 200c500 <_Objects_Id_to_name+0x7c>
200c4e4: 01 00 00 00 nop
return OBJECTS_INVALID_ID;
*name = the_object->name;
200c4e8: c2 02 20 0c ld [ %o0 + 0xc ], %g1
_Thread_Enable_dispatch();
200c4ec: b0 10 20 00 clr %i0
200c4f0: 40 00 02 65 call 200ce84 <_Thread_Enable_dispatch>
200c4f4: c2 26 40 00 st %g1, [ %i1 ]
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
200c4f8: 81 c7 e0 08 ret
200c4fc: 81 e8 00 00 restore
}
200c500: 81 c7 e0 08 ret
200c504: 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 ] )
200c508: 84 10 a1 f0 or %g2, 0x1f0, %g2
200c50c: c2 00 80 01 ld [ %g2 + %g1 ], %g1
200c510: 80 a0 60 00 cmp %g1, 0
200c514: 12 bf ff eb bne 200c4c0 <_Objects_Id_to_name+0x3c>
200c518: 85 32 60 1b srl %o1, 0x1b, %g2
200c51c: 30 bf ff f9 b,a 200c500 <_Objects_Id_to_name+0x7c>
02007c18 <_Objects_Initialize_information>:
,
bool supports_global,
Objects_Thread_queue_Extract_callout extract
#endif
)
{
2007c18: 9d e3 bf a0 save %sp, -96, %sp
information->maximum = 0;
/*
* Register this Object Class in the Object Information Table.
*/
_Objects_Information_table[ the_api ][ the_class ] = information;
2007c1c: 05 00 80 72 sethi %hi(0x201c800), %g2
2007c20: 83 2e 60 02 sll %i1, 2, %g1
2007c24: 84 10 a3 80 or %g2, 0x380, %g2
2007c28: c2 00 80 01 ld [ %g2 + %g1 ], %g1
uint32_t index;
#endif
information->the_api = the_api;
information->the_class = the_class;
information->size = size;
2007c2c: 85 2f 20 10 sll %i4, 0x10, %g2
2007c30: 85 30 a0 10 srl %g2, 0x10, %g2
information->maximum = 0;
/*
* Register this Object Class in the Object Information Table.
*/
_Objects_Information_table[ the_api ][ the_class ] = information;
2007c34: 87 2e a0 02 sll %i2, 2, %g3
uint32_t index;
#endif
information->the_api = the_api;
information->the_class = the_class;
information->size = size;
2007c38: c4 26 20 18 st %g2, [ %i0 + 0x18 ]
information->maximum = 0;
/*
* Register this Object Class in the Object Information Table.
*/
_Objects_Information_table[ the_api ][ the_class ] = information;
2007c3c: f0 20 40 03 st %i0, [ %g1 + %g3 ]
/*
* Are we operating in limited or unlimited (e.g. auto-extend) mode.
*/
information->auto_extend =
(maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;
2007c40: 85 36 e0 1f srl %i3, 0x1f, %g2
maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS;
2007c44: 03 20 00 00 sethi %hi(0x80000000), %g1
uint32_t maximum_per_allocation;
#if defined(RTEMS_MULTIPROCESSING)
uint32_t index;
#endif
information->the_api = the_api;
2007c48: f2 26 00 00 st %i1, [ %i0 ]
information->the_class = the_class;
2007c4c: f4 36 20 04 sth %i2, [ %i0 + 4 ]
information->size = size;
information->local_table = 0;
2007c50: c0 26 20 1c clr [ %i0 + 0x1c ]
information->inactive_per_block = 0;
2007c54: c0 26 20 30 clr [ %i0 + 0x30 ]
information->object_blocks = 0;
2007c58: c0 26 20 34 clr [ %i0 + 0x34 ]
information->inactive = 0;
2007c5c: c0 36 20 2c clrh [ %i0 + 0x2c ]
/*
* Set the maximum value to 0. It will be updated when objects are
* added to the inactive set from _Objects_Extend_information()
*/
information->maximum = 0;
2007c60: c0 36 20 10 clrh [ %i0 + 0x10 ]
_Objects_Information_table[ the_api ][ the_class ] = information;
/*
* Are we operating in limited or unlimited (e.g. auto-extend) mode.
*/
information->auto_extend =
2007c64: c4 2e 20 12 stb %g2, [ %i0 + 0x12 ]
(maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;
maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS;
2007c68: b6 2e c0 01 andn %i3, %g1, %i3
/*
* Unlimited and maximum of zero is illogical.
*/
if ( information->auto_extend && maximum_per_allocation == 0) {
2007c6c: 80 a0 a0 00 cmp %g2, 0
2007c70: 02 80 00 09 be 2007c94 <_Objects_Initialize_information+0x7c>
2007c74: c2 07 a0 5c ld [ %fp + 0x5c ], %g1
2007c78: 80 a6 e0 00 cmp %i3, 0
2007c7c: 12 80 00 07 bne 2007c98 <_Objects_Initialize_information+0x80>
2007c80: 07 00 80 72 sethi %hi(0x201c800), %g3
_Internal_error_Occurred(
2007c84: 90 10 20 00 clr %o0
2007c88: 92 10 20 01 mov 1, %o1
2007c8c: 7f ff fe 59 call 20075f0 <_Internal_error_Occurred>
2007c90: 94 10 20 14 mov 0x14, %o2
information->allocation_size = maximum_per_allocation;
/*
* Provide a null local table entry for the case of any empty table.
*/
information->local_table = &null_local_table;
2007c94: 07 00 80 72 sethi %hi(0x201c800), %g3
2007c98: 86 10 e0 c8 or %g3, 0xc8, %g3 ! 201c8c8 <null_local_table.3567>
/*
* Calculate minimum and maximum Id's
*/
minimum_index = (maximum_per_allocation == 0) ? 0 : 1;
information->minimum_id =
2007c9c: 80 a0 00 1b cmp %g0, %i3
2007ca0: b3 2e 60 18 sll %i1, 0x18, %i1
2007ca4: 84 40 20 00 addx %g0, 0, %g2
2007ca8: b5 2e a0 1b sll %i2, 0x1b, %i2
information->allocation_size = maximum_per_allocation;
/*
* Provide a null local table entry for the case of any empty table.
*/
information->local_table = &null_local_table;
2007cac: c6 26 20 1c st %g3, [ %i0 + 0x1c ]
}
/*
* The allocation unit is the maximum value
*/
information->allocation_size = maximum_per_allocation;
2007cb0: f6 36 20 14 sth %i3, [ %i0 + 0x14 ]
/*
* Calculate minimum and maximum Id's
*/
minimum_index = (maximum_per_allocation == 0) ? 0 : 1;
information->minimum_id =
2007cb4: 07 00 00 40 sethi %hi(0x10000), %g3
2007cb8: b2 16 40 03 or %i1, %g3, %i1
2007cbc: b4 16 40 1a or %i1, %i2, %i2
2007cc0: b4 16 80 02 or %i2, %g2, %i2
2007cc4: f4 26 20 08 st %i2, [ %i0 + 8 ]
* Calculate the maximum name length
*/
name_length = maximum_name_length;
if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )
name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &
2007cc8: 84 00 60 04 add %g1, 4, %g2
/*
* Calculate the maximum name length
*/
name_length = maximum_name_length;
if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )
2007ccc: 80 88 60 03 btst 3, %g1
2007cd0: 12 80 00 03 bne 2007cdc <_Objects_Initialize_information+0xc4><== NEVER TAKEN
2007cd4: 84 08 bf fc and %g2, -4, %g2
2007cd8: 84 10 00 01 mov %g1, %g2
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
2007cdc: 82 06 20 24 add %i0, 0x24, %g1
name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &
~(OBJECTS_NAME_ALIGNMENT-1);
information->name_length = name_length;
2007ce0: c4 36 20 38 sth %g2, [ %i0 + 0x38 ]
2007ce4: c2 26 20 20 st %g1, [ %i0 + 0x20 ]
the_chain->permanent_null = NULL;
2007ce8: c0 26 20 24 clr [ %i0 + 0x24 ]
the_chain->last = _Chain_Head(the_chain);
2007cec: 82 06 20 20 add %i0, 0x20, %g1
_Chain_Initialize_empty( &information->Inactive );
/*
* Initialize objects .. if there are any
*/
if ( maximum_per_allocation ) {
2007cf0: 80 a6 e0 00 cmp %i3, 0
2007cf4: 02 80 00 04 be 2007d04 <_Objects_Initialize_information+0xec>
2007cf8: c2 26 20 28 st %g1, [ %i0 + 0x28 ]
/*
* Always have the maximum size available so the current performance
* figures are create are met. If the user moves past the maximum
* number then a performance hit is taken.
*/
_Objects_Extend_information( information );
2007cfc: 7f ff fe 99 call 2007760 <_Objects_Extend_information>
2007d00: 81 e8 00 00 restore
2007d04: 81 c7 e0 08 ret
2007d08: 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
0200c780 <_RTEMS_tasks_Post_switch_extension>:
*/
void _RTEMS_tasks_Post_switch_extension(
Thread_Control *executing
)
{
200c780: 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 ];
200c784: e0 06 21 60 ld [ %i0 + 0x160 ], %l0
if ( !api )
200c788: 80 a4 20 00 cmp %l0, 0
200c78c: 02 80 00 1d be 200c800 <_RTEMS_tasks_Post_switch_extension+0x80><== NEVER TAKEN
200c790: 01 00 00 00 nop
* Signal Processing
*/
asr = &api->Signal;
_ISR_Disable( level );
200c794: 7f ff d6 0c call 2001fc4 <sparc_disable_interrupts>
200c798: 01 00 00 00 nop
signal_set = asr->signals_posted;
200c79c: e6 04 20 14 ld [ %l0 + 0x14 ], %l3
asr->signals_posted = 0;
200c7a0: c0 24 20 14 clr [ %l0 + 0x14 ]
_ISR_Enable( level );
200c7a4: 7f ff d6 0c call 2001fd4 <sparc_enable_interrupts>
200c7a8: 01 00 00 00 nop
if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */
200c7ac: 80 a4 e0 00 cmp %l3, 0
200c7b0: 02 80 00 14 be 200c800 <_RTEMS_tasks_Post_switch_extension+0x80><== NEVER TAKEN
200c7b4: a2 07 bf fc add %fp, -4, %l1
return;
asr->nest_level += 1;
200c7b8: c2 04 20 1c ld [ %l0 + 0x1c ], %g1
rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode );
200c7bc: d0 04 20 10 ld [ %l0 + 0x10 ], %o0
if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */
return;
asr->nest_level += 1;
200c7c0: 82 00 60 01 inc %g1
200c7c4: c2 24 20 1c st %g1, [ %l0 + 0x1c ]
rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode );
200c7c8: 94 10 00 11 mov %l1, %o2
200c7cc: 25 00 00 3f sethi %hi(0xfc00), %l2
200c7d0: 40 00 09 ec call 200ef80 <rtems_task_mode>
200c7d4: 92 14 a3 ff or %l2, 0x3ff, %o1 ! ffff <PROM_START+0xffff>
(*asr->handler)( signal_set );
200c7d8: c2 04 20 0c ld [ %l0 + 0xc ], %g1
200c7dc: 9f c0 40 00 call %g1
200c7e0: 90 10 00 13 mov %l3, %o0
asr->nest_level -= 1;
200c7e4: c2 04 20 1c ld [ %l0 + 0x1c ], %g1
rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );
200c7e8: 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;
200c7ec: 82 00 7f ff add %g1, -1, %g1
rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );
200c7f0: 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;
200c7f4: c2 24 20 1c st %g1, [ %l0 + 0x1c ]
rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );
200c7f8: 40 00 09 e2 call 200ef80 <rtems_task_mode>
200c7fc: 94 10 00 11 mov %l1, %o2
200c800: 81 c7 e0 08 ret
200c804: 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
0203fe40 <_Rate_monotonic_Timeout>:
void _Rate_monotonic_Timeout(
Objects_Id id,
void *ignored
)
{
203fe40: 9d e3 bf 98 save %sp, -104, %sp
203fe44: 11 00 81 b6 sethi %hi(0x206d800), %o0
203fe48: 92 10 00 18 mov %i0, %o1
203fe4c: 90 12 20 40 or %o0, 0x40, %o0
203fe50: 7f ff 3a 5c call 200e7c0 <_Objects_Get>
203fe54: 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 ) {
203fe58: c2 07 bf fc ld [ %fp + -4 ], %g1
203fe5c: 80 a0 60 00 cmp %g1, 0
203fe60: 12 80 00 26 bne 203fef8 <_Rate_monotonic_Timeout+0xb8> <== NEVER TAKEN
203fe64: a0 10 00 08 mov %o0, %l0
case OBJECTS_LOCAL:
the_thread = the_period->owner;
203fe68: d0 02 20 40 ld [ %o0 + 0x40 ], %o0
if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
203fe6c: 03 00 00 10 sethi %hi(0x4000), %g1
203fe70: c4 02 20 10 ld [ %o0 + 0x10 ], %g2
203fe74: 80 88 80 01 btst %g2, %g1
203fe78: 22 80 00 0c be,a 203fea8 <_Rate_monotonic_Timeout+0x68>
203fe7c: c2 04 20 38 ld [ %l0 + 0x38 ], %g1
the_thread->Wait.id == the_period->Object.id ) {
203fe80: c4 02 20 20 ld [ %o0 + 0x20 ], %g2
203fe84: c2 04 20 08 ld [ %l0 + 8 ], %g1
203fe88: 80 a0 80 01 cmp %g2, %g1
203fe8c: 32 80 00 07 bne,a 203fea8 <_Rate_monotonic_Timeout+0x68>
203fe90: 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 );
203fe94: 13 04 00 ff sethi %hi(0x1003fc00), %o1
203fe98: 7f ff 3b aa call 200ed40 <_Thread_Clear_state>
203fe9c: 92 12 63 f8 or %o1, 0x3f8, %o1 ! 1003fff8 <RAM_END+0xdc3fff8>
_Thread_Unblock( the_thread );
_Rate_monotonic_Initiate_statistics( the_period );
203fea0: 10 80 00 08 b 203fec0 <_Rate_monotonic_Timeout+0x80>
203fea4: 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 ) {
203fea8: 80 a0 60 01 cmp %g1, 1
203feac: 12 80 00 0e bne 203fee4 <_Rate_monotonic_Timeout+0xa4>
203feb0: 82 10 20 04 mov 4, %g1
the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING;
203feb4: 82 10 20 03 mov 3, %g1
_Rate_monotonic_Initiate_statistics( the_period );
203feb8: 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;
203febc: c2 24 20 38 st %g1, [ %l0 + 0x38 ]
_Rate_monotonic_Initiate_statistics( the_period );
203fec0: 7f ff fe ef call 203fa7c <_Rate_monotonic_Initiate_statistics>
203fec4: 01 00 00 00 nop
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
203fec8: c2 04 20 3c ld [ %l0 + 0x3c ], %g1
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
203fecc: 92 04 20 10 add %l0, 0x10, %o1
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
203fed0: c2 24 20 1c st %g1, [ %l0 + 0x1c ]
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
203fed4: 11 00 81 b5 sethi %hi(0x206d400), %o0
203fed8: 7f ff 41 10 call 2010318 <_Watchdog_Insert>
203fedc: 90 12 20 a0 or %o0, 0xa0, %o0 ! 206d4a0 <_Watchdog_Ticks_chain>
203fee0: 30 80 00 02 b,a 203fee8 <_Rate_monotonic_Timeout+0xa8>
_Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
} else
the_period->state = RATE_MONOTONIC_EXPIRED;
203fee4: 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;
203fee8: 03 00 81 b4 sethi %hi(0x206d000), %g1
203feec: c4 00 63 c0 ld [ %g1 + 0x3c0 ], %g2 ! 206d3c0 <_Thread_Dispatch_disable_level>
203fef0: 84 00 bf ff add %g2, -1, %g2
203fef4: c4 20 63 c0 st %g2, [ %g1 + 0x3c0 ]
203fef8: 81 c7 e0 08 ret
203fefc: 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 8a sethi %hi(0x2022800), %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 60 d4 ld [ %g1 + 0xd4 ], %o1
(the_tod->ticks >= ticks_per_second) ||
20073cc: 11 00 03 d0 sethi %hi(0xf4000), %o0
20073d0: 40 00 5a b8 call 201deb0 <.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 83 sethi %hi(0x2020c00), %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 94 or %g3, 0x394, %g3 ! 2020f94 <_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
02007f50 <_Thread_Change_priority>:
void _Thread_Change_priority(
Thread_Control *the_thread,
Priority_Control new_priority,
bool prepend_it
)
{
2007f50: 9d e3 bf a0 save %sp, -96, %sp
*/
/*
* Save original state
*/
original_state = the_thread->current_state;
2007f54: 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 );
2007f58: 40 00 04 42 call 2009060 <_Thread_Set_transient>
2007f5c: 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 )
2007f60: c2 06 20 14 ld [ %i0 + 0x14 ], %g1
void _Thread_Change_priority(
Thread_Control *the_thread,
Priority_Control new_priority,
bool prepend_it
)
{
2007f64: 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 )
2007f68: 80 a0 40 19 cmp %g1, %i1
2007f6c: 02 80 00 04 be 2007f7c <_Thread_Change_priority+0x2c>
2007f70: 92 10 00 19 mov %i1, %o1
_Thread_Set_priority( the_thread, new_priority );
2007f74: 40 00 03 be call 2008e6c <_Thread_Set_priority>
2007f78: 90 10 00 18 mov %i0, %o0
_ISR_Disable( level );
2007f7c: 7f ff e8 12 call 2001fc4 <sparc_disable_interrupts>
2007f80: 01 00 00 00 nop
2007f84: 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;
2007f88: e4 04 20 10 ld [ %l0 + 0x10 ], %l2
if ( state != STATES_TRANSIENT ) {
2007f8c: 80 a4 a0 04 cmp %l2, 4
2007f90: 02 80 00 10 be 2007fd0 <_Thread_Change_priority+0x80>
2007f94: 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 ) )
2007f98: 80 a4 60 00 cmp %l1, 0
2007f9c: 12 80 00 03 bne 2007fa8 <_Thread_Change_priority+0x58> <== NEVER TAKEN
2007fa0: 82 0c bf fb and %l2, -5, %g1
the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
2007fa4: c2 24 20 10 st %g1, [ %l0 + 0x10 ]
_ISR_Enable( level );
2007fa8: 7f ff e8 0b call 2001fd4 <sparc_enable_interrupts>
2007fac: 90 10 00 18 mov %i0, %o0
if ( _States_Is_waiting_on_thread_queue( state ) ) {
2007fb0: 03 00 00 ef sethi %hi(0x3bc00), %g1
2007fb4: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 <PROM_START+0x3bee0>
2007fb8: 80 8c 80 01 btst %l2, %g1
2007fbc: 02 80 00 5c be 200812c <_Thread_Change_priority+0x1dc>
2007fc0: 01 00 00 00 nop
_Thread_queue_Requeue( the_thread->Wait.queue, the_thread );
2007fc4: f0 04 20 44 ld [ %l0 + 0x44 ], %i0
2007fc8: 40 00 03 7c call 2008db8 <_Thread_queue_Requeue>
2007fcc: 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 ) ) {
2007fd0: 80 a4 60 00 cmp %l1, 0
2007fd4: 12 80 00 1c bne 2008044 <_Thread_Change_priority+0xf4> <== NEVER TAKEN
2007fd8: 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;
2007fdc: c4 04 20 90 ld [ %l0 + 0x90 ], %g2
2007fe0: c6 14 20 96 lduh [ %l0 + 0x96 ], %g3
2007fe4: c8 10 80 00 lduh [ %g2 ], %g4
_Priority_Major_bit_map |= the_priority_map->ready_major;
2007fe8: 03 00 80 73 sethi %hi(0x201cc00), %g1
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (
Priority_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
2007fec: 86 11 00 03 or %g4, %g3, %g3
2007ff0: c6 30 80 00 sth %g3, [ %g2 ]
_Priority_Major_bit_map |= the_priority_map->ready_major;
2007ff4: c4 10 60 d4 lduh [ %g1 + 0xd4 ], %g2
2007ff8: 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 );
2007ffc: c0 24 20 10 clr [ %l0 + 0x10 ]
2008000: 84 10 c0 02 or %g3, %g2, %g2
2008004: c4 30 60 d4 sth %g2, [ %g1 + 0xd4 ]
_Priority_Add_to_bit_map( &the_thread->Priority_map );
if ( prepend_it )
2008008: 80 8e a0 ff btst 0xff, %i2
200800c: 02 80 00 08 be 200802c <_Thread_Change_priority+0xdc>
2008010: c2 04 20 8c ld [ %l0 + 0x8c ], %g1
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
2008014: c4 00 40 00 ld [ %g1 ], %g2
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
2008018: c2 24 20 04 st %g1, [ %l0 + 4 ]
before_node = after_node->next;
after_node->next = the_node;
200801c: e0 20 40 00 st %l0, [ %g1 ]
the_node->next = before_node;
before_node->previous = the_node;
2008020: 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;
2008024: 10 80 00 08 b 2008044 <_Thread_Change_priority+0xf4>
2008028: c4 24 00 00 st %g2, [ %l0 ]
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
200802c: 84 00 60 04 add %g1, 4, %g2
2008030: c4 24 00 00 st %g2, [ %l0 ]
old_last_node = the_chain->last;
2008034: c4 00 60 08 ld [ %g1 + 8 ], %g2
the_chain->last = the_node;
2008038: e0 20 60 08 st %l0, [ %g1 + 8 ]
old_last_node->next = the_node;
the_node->previous = old_last_node;
200803c: 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;
2008040: 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 );
2008044: 7f ff e7 e4 call 2001fd4 <sparc_enable_interrupts>
2008048: 90 10 00 18 mov %i0, %o0
200804c: 7f ff e7 de call 2001fc4 <sparc_disable_interrupts>
2008050: 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 );
2008054: 03 00 80 73 sethi %hi(0x201cc00), %g1
2008058: c4 10 60 d4 lduh [ %g1 + 0xd4 ], %g2 ! 201ccd4 <_Priority_Major_bit_map>
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
_Thread_Ready_chain[ _Priority_Get_highest() ].first;
200805c: 03 00 80 72 sethi %hi(0x201c800), %g1
2008060: 85 28 a0 10 sll %g2, 0x10, %g2
2008064: da 00 63 74 ld [ %g1 + 0x374 ], %o5
2008068: 87 30 a0 10 srl %g2, 0x10, %g3
200806c: 03 00 80 6c sethi %hi(0x201b000), %g1
2008070: 80 a0 e0 ff cmp %g3, 0xff
2008074: 18 80 00 05 bgu 2008088 <_Thread_Change_priority+0x138>
2008078: 82 10 60 a8 or %g1, 0xa8, %g1
200807c: c4 08 40 03 ldub [ %g1 + %g3 ], %g2
2008080: 10 80 00 04 b 2008090 <_Thread_Change_priority+0x140>
2008084: 84 00 a0 08 add %g2, 8, %g2
2008088: 85 30 a0 18 srl %g2, 0x18, %g2
200808c: c4 08 40 02 ldub [ %g1 + %g2 ], %g2
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
2008090: 83 28 a0 10 sll %g2, 0x10, %g1
2008094: 07 00 80 73 sethi %hi(0x201cc00), %g3
2008098: 83 30 60 0f srl %g1, 0xf, %g1
200809c: 86 10 e1 50 or %g3, 0x150, %g3
20080a0: c6 10 c0 01 lduh [ %g3 + %g1 ], %g3
20080a4: 03 00 80 6c sethi %hi(0x201b000), %g1
20080a8: 87 28 e0 10 sll %g3, 0x10, %g3
20080ac: 89 30 e0 10 srl %g3, 0x10, %g4
20080b0: 80 a1 20 ff cmp %g4, 0xff
20080b4: 18 80 00 05 bgu 20080c8 <_Thread_Change_priority+0x178>
20080b8: 82 10 60 a8 or %g1, 0xa8, %g1
20080bc: c2 08 40 04 ldub [ %g1 + %g4 ], %g1
20080c0: 10 80 00 04 b 20080d0 <_Thread_Change_priority+0x180>
20080c4: 82 00 60 08 add %g1, 8, %g1
20080c8: 87 30 e0 18 srl %g3, 0x18, %g3
20080cc: c2 08 40 03 ldub [ %g1 + %g3 ], %g1
* ready thread.
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
20080d0: 83 28 60 10 sll %g1, 0x10, %g1
20080d4: 83 30 60 10 srl %g1, 0x10, %g1
20080d8: 85 28 a0 10 sll %g2, 0x10, %g2
20080dc: 85 30 a0 0c srl %g2, 0xc, %g2
20080e0: 84 00 40 02 add %g1, %g2, %g2
20080e4: 83 28 a0 04 sll %g2, 4, %g1
20080e8: 85 28 a0 02 sll %g2, 2, %g2
20080ec: 84 20 40 02 sub %g1, %g2, %g2
20080f0: 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 );
20080f4: 03 00 80 73 sethi %hi(0x201cc00), %g1
20080f8: c2 00 60 e0 ld [ %g1 + 0xe0 ], %g1 ! 201cce0 <_Thread_Executing>
* ready thread.
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
20080fc: 07 00 80 73 sethi %hi(0x201cc00), %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() &&
2008100: 80 a0 40 02 cmp %g1, %g2
2008104: 02 80 00 08 be 2008124 <_Thread_Change_priority+0x1d4>
2008108: c4 20 e0 b0 st %g2, [ %g3 + 0xb0 ]
_Thread_Executing->is_preemptible )
200810c: c2 08 60 75 ldub [ %g1 + 0x75 ], %g1
2008110: 80 a0 60 00 cmp %g1, 0
2008114: 02 80 00 04 be 2008124 <_Thread_Change_priority+0x1d4>
2008118: 84 10 20 01 mov 1, %g2
_Context_Switch_necessary = true;
200811c: 03 00 80 73 sethi %hi(0x201cc00), %g1
2008120: c4 28 60 f0 stb %g2, [ %g1 + 0xf0 ] ! 201ccf0 <_Context_Switch_necessary>
_ISR_Enable( level );
2008124: 7f ff e7 ac call 2001fd4 <sparc_enable_interrupts>
2008128: 81 e8 00 00 restore
200812c: 81 c7 e0 08 ret
2008130: 81 e8 00 00 restore
02008134 <_Thread_Clear_state>:
void _Thread_Clear_state(
Thread_Control *the_thread,
States_Control state
)
{
2008134: 9d e3 bf a0 save %sp, -96, %sp
ISR_Level level;
States_Control current_state;
_ISR_Disable( level );
2008138: 7f ff e7 a3 call 2001fc4 <sparc_disable_interrupts>
200813c: a0 10 00 18 mov %i0, %l0
2008140: b0 10 00 08 mov %o0, %i0
current_state = the_thread->current_state;
2008144: c2 04 20 10 ld [ %l0 + 0x10 ], %g1
if ( current_state & state ) {
2008148: 80 8e 40 01 btst %i1, %g1
200814c: 02 80 00 2d be 2008200 <_Thread_Clear_state+0xcc>
2008150: 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);
2008154: 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 ) ) {
2008158: 80 a6 60 00 cmp %i1, 0
200815c: 12 80 00 29 bne 2008200 <_Thread_Clear_state+0xcc>
2008160: 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;
2008164: 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);
2008168: c2 04 20 8c ld [ %l0 + 0x8c ], %g1
200816c: c8 10 80 00 lduh [ %g2 ], %g4
2008170: c6 14 20 96 lduh [ %l0 + 0x96 ], %g3
2008174: 86 11 00 03 or %g4, %g3, %g3
2008178: c6 30 80 00 sth %g3, [ %g2 ]
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
200817c: 84 00 60 04 add %g1, 4, %g2
_Priority_Major_bit_map |= the_priority_map->ready_major;
2008180: da 14 20 94 lduh [ %l0 + 0x94 ], %o5
2008184: c4 24 00 00 st %g2, [ %l0 ]
2008188: 07 00 80 73 sethi %hi(0x201cc00), %g3
old_last_node = the_chain->last;
200818c: c4 00 60 08 ld [ %g1 + 8 ], %g2
2008190: c8 10 e0 d4 lduh [ %g3 + 0xd4 ], %g4
the_chain->last = the_node;
2008194: e0 20 60 08 st %l0, [ %g1 + 8 ]
old_last_node->next = the_node;
the_node->previous = old_last_node;
2008198: c4 24 20 04 st %g2, [ %l0 + 4 ]
200819c: 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;
20081a0: e0 20 80 00 st %l0, [ %g2 ]
20081a4: c2 30 e0 d4 sth %g1, [ %g3 + 0xd4 ]
_ISR_Flash( level );
20081a8: 7f ff e7 8b call 2001fd4 <sparc_enable_interrupts>
20081ac: 01 00 00 00 nop
20081b0: 7f ff e7 85 call 2001fc4 <sparc_disable_interrupts>
20081b4: 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 ) {
20081b8: 05 00 80 73 sethi %hi(0x201cc00), %g2
20081bc: c6 00 a0 b0 ld [ %g2 + 0xb0 ], %g3 ! 201ccb0 <_Thread_Heir>
20081c0: c2 04 20 14 ld [ %l0 + 0x14 ], %g1
20081c4: c6 00 e0 14 ld [ %g3 + 0x14 ], %g3
20081c8: 80 a0 40 03 cmp %g1, %g3
20081cc: 1a 80 00 0d bcc 2008200 <_Thread_Clear_state+0xcc>
20081d0: 07 00 80 73 sethi %hi(0x201cc00), %g3
_Thread_Heir = the_thread;
if ( _Thread_Executing->is_preemptible ||
20081d4: c6 00 e0 e0 ld [ %g3 + 0xe0 ], %g3 ! 201cce0 <_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;
20081d8: e0 20 a0 b0 st %l0, [ %g2 + 0xb0 ]
if ( _Thread_Executing->is_preemptible ||
20081dc: c4 08 e0 75 ldub [ %g3 + 0x75 ], %g2
20081e0: 80 a0 a0 00 cmp %g2, 0
20081e4: 12 80 00 05 bne 20081f8 <_Thread_Clear_state+0xc4>
20081e8: 84 10 20 01 mov 1, %g2
20081ec: 80 a0 60 00 cmp %g1, 0
20081f0: 12 80 00 04 bne 2008200 <_Thread_Clear_state+0xcc> <== ALWAYS TAKEN
20081f4: 01 00 00 00 nop
the_thread->current_priority == 0 )
_Context_Switch_necessary = true;
20081f8: 03 00 80 73 sethi %hi(0x201cc00), %g1
20081fc: c4 28 60 f0 stb %g2, [ %g1 + 0xf0 ] ! 201ccf0 <_Context_Switch_necessary>
}
}
}
_ISR_Enable( level );
2008200: 7f ff e7 75 call 2001fd4 <sparc_enable_interrupts>
2008204: 81 e8 00 00 restore
020083b8 <_Thread_Delay_ended>:
void _Thread_Delay_ended(
Objects_Id id,
void *ignored __attribute__((unused))
)
{
20083b8: 9d e3 bf 98 save %sp, -104, %sp
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
20083bc: 90 10 00 18 mov %i0, %o0
20083c0: 40 00 00 7c call 20085b0 <_Thread_Get>
20083c4: 92 07 bf fc add %fp, -4, %o1
switch ( location ) {
20083c8: c2 07 bf fc ld [ %fp + -4 ], %g1
20083cc: 80 a0 60 00 cmp %g1, 0
20083d0: 12 80 00 08 bne 20083f0 <_Thread_Delay_ended+0x38> <== NEVER TAKEN
20083d4: 13 04 00 00 sethi %hi(0x10000000), %o1
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
#endif
break;
case OBJECTS_LOCAL:
_Thread_Clear_state(
20083d8: 7f ff ff 57 call 2008134 <_Thread_Clear_state>
20083dc: 92 12 60 18 or %o1, 0x18, %o1 ! 10000018 <RAM_END+0xdc00018>
20083e0: 03 00 80 73 sethi %hi(0x201cc00), %g1
20083e4: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 ! 201cc20 <_Thread_Dispatch_disable_level>
20083e8: 84 00 bf ff add %g2, -1, %g2
20083ec: c4 20 60 20 st %g2, [ %g1 + 0x20 ]
20083f0: 81 c7 e0 08 ret
20083f4: 81 e8 00 00 restore
020083f8 <_Thread_Dispatch>:
* dispatch thread
* no dispatch thread
*/
void _Thread_Dispatch( void )
{
20083f8: 9d e3 bf 90 save %sp, -112, %sp
Thread_Control *executing;
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
20083fc: 2f 00 80 73 sethi %hi(0x201cc00), %l7
_ISR_Disable( level );
2008400: 7f ff e6 f1 call 2001fc4 <sparc_disable_interrupts>
2008404: e0 05 e0 e0 ld [ %l7 + 0xe0 ], %l0 ! 201cce0 <_Thread_Executing>
while ( _Context_Switch_necessary == true ) {
2008408: 2d 00 80 73 sethi %hi(0x201cc00), %l6
200840c: 33 00 80 73 sethi %hi(0x201cc00), %i1
heir = _Thread_Heir;
2008410: 35 00 80 73 sethi %hi(0x201cc00), %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;
2008414: 37 00 80 72 sethi %hi(0x201c800), %i3
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
{
Timestamp_Control uptime, ran;
_TOD_Get_uptime( &uptime );
_Timestamp_Subtract(
2008418: 25 00 80 73 sethi %hi(0x201cc00), %l2
#endif
/*
* Switch libc's task specific data.
*/
if ( _Thread_libc_reent ) {
200841c: 39 00 80 73 sethi %hi(0x201cc00), %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 );
2008420: 2b 00 80 73 sethi %hi(0x201cc00), %l5
_ISR_Disable( level );
while ( _Context_Switch_necessary == true ) {
heir = _Thread_Heir;
_Thread_Dispatch_disable_level = 1;
_Context_Switch_necessary = false;
_Thread_Executing = heir;
2008424: ae 15 e0 e0 or %l7, 0xe0, %l7
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Context_Switch_necessary == true ) {
2008428: ac 15 a0 f0 or %l6, 0xf0, %l6
heir = _Thread_Heir;
_Thread_Dispatch_disable_level = 1;
200842c: b2 16 60 20 or %i1, 0x20, %i1
ISR_Level level;
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Context_Switch_necessary == true ) {
heir = _Thread_Heir;
2008430: b4 16 a0 b0 or %i2, 0xb0, %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;
2008434: b6 16 e3 78 or %i3, 0x378, %i3
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
{
Timestamp_Control uptime, ran;
_TOD_Get_uptime( &uptime );
_Timestamp_Subtract(
2008438: a4 14 a0 e8 or %l2, 0xe8, %l2
#endif
/*
* Switch libc's task specific data.
*/
if ( _Thread_libc_reent ) {
200843c: b8 17 20 ac or %i4, 0xac, %i4
2008440: aa 15 60 a8 or %l5, 0xa8, %l5
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Context_Switch_necessary == true ) {
heir = _Thread_Heir;
_Thread_Dispatch_disable_level = 1;
2008444: ba 10 20 01 mov 1, %i5
_ISR_Enable( level );
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
{
Timestamp_Control uptime, ran;
_TOD_Get_uptime( &uptime );
2008448: 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 ) {
200844c: 10 80 00 37 b 2008528 <_Thread_Dispatch+0x130>
2008450: a6 07 bf f0 add %fp, -16, %l3
heir = _Thread_Heir;
_Thread_Dispatch_disable_level = 1;
2008454: 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 )
2008458: 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;
200845c: 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 )
2008460: 80 a0 60 01 cmp %g1, 1
2008464: 12 80 00 04 bne 2008474 <_Thread_Dispatch+0x7c>
2008468: e2 25 c0 00 st %l1, [ %l7 ]
heir->cpu_time_budget = _Thread_Ticks_per_timeslice;
200846c: c2 06 c0 00 ld [ %i3 ], %g1
2008470: c2 24 60 78 st %g1, [ %l1 + 0x78 ]
_ISR_Enable( level );
2008474: 7f ff e6 d8 call 2001fd4 <sparc_enable_interrupts>
2008478: 01 00 00 00 nop
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
{
Timestamp_Control uptime, ran;
_TOD_Get_uptime( &uptime );
200847c: 40 00 11 e3 call 200cc08 <_TOD_Get_uptime>
2008480: 90 10 00 14 mov %l4, %o0
_Timestamp_Subtract(
2008484: 90 10 00 12 mov %l2, %o0
2008488: 92 10 00 14 mov %l4, %o1
200848c: 40 00 03 c5 call 20093a0 <_Timespec_Subtract>
2008490: 94 10 00 13 mov %l3, %o2
&_Thread_Time_of_last_context_switch,
&uptime,
&ran
);
_Timestamp_Add_to( &executing->cpu_time_used, &ran );
2008494: 90 04 20 84 add %l0, 0x84, %o0
2008498: 40 00 03 a8 call 2009338 <_Timespec_Add_to>
200849c: 92 10 00 13 mov %l3, %o1
_Thread_Time_of_last_context_switch = uptime;
20084a0: c4 07 bf f8 ld [ %fp + -8 ], %g2
#endif
/*
* Switch libc's task specific data.
*/
if ( _Thread_libc_reent ) {
20084a4: 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;
20084a8: c4 24 80 00 st %g2, [ %l2 ]
20084ac: c4 07 bf fc ld [ %fp + -4 ], %g2
#endif
/*
* Switch libc's task specific data.
*/
if ( _Thread_libc_reent ) {
20084b0: 80 a0 60 00 cmp %g1, 0
20084b4: 02 80 00 06 be 20084cc <_Thread_Dispatch+0xd4> <== NEVER TAKEN
20084b8: c4 24 a0 04 st %g2, [ %l2 + 4 ]
executing->libc_reent = *_Thread_libc_reent;
20084bc: c4 00 40 00 ld [ %g1 ], %g2
20084c0: c4 24 21 5c st %g2, [ %l0 + 0x15c ]
*_Thread_libc_reent = heir->libc_reent;
20084c4: c4 04 61 5c ld [ %l1 + 0x15c ], %g2
20084c8: c4 20 40 00 st %g2, [ %g1 ]
}
_User_extensions_Thread_switch( executing, heir );
20084cc: 90 10 00 10 mov %l0, %o0
20084d0: 40 00 04 69 call 2009674 <_User_extensions_Thread_switch>
20084d4: 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 );
20084d8: 92 04 60 d0 add %l1, 0xd0, %o1
20084dc: 40 00 05 96 call 2009b34 <_CPU_Context_switch>
20084e0: 90 04 20 d0 add %l0, 0xd0, %o0
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
if ( (executing->fp_context != NULL) &&
20084e4: c2 04 21 58 ld [ %l0 + 0x158 ], %g1
20084e8: 80 a0 60 00 cmp %g1, 0
20084ec: 02 80 00 0d be 2008520 <_Thread_Dispatch+0x128>
20084f0: 01 00 00 00 nop
20084f4: d0 05 40 00 ld [ %l5 ], %o0
20084f8: 80 a4 00 08 cmp %l0, %o0
20084fc: 02 80 00 09 be 2008520 <_Thread_Dispatch+0x128>
2008500: 80 a2 20 00 cmp %o0, 0
!_Thread_Is_allocated_fp( executing ) ) {
if ( _Thread_Allocated_fp != NULL )
2008504: 02 80 00 04 be 2008514 <_Thread_Dispatch+0x11c>
2008508: 01 00 00 00 nop
_Context_Save_fp( &_Thread_Allocated_fp->fp_context );
200850c: 40 00 05 50 call 2009a4c <_CPU_Context_save_fp>
2008510: 90 02 21 58 add %o0, 0x158, %o0
_Context_Restore_fp( &executing->fp_context );
2008514: 40 00 05 6b call 2009ac0 <_CPU_Context_restore_fp>
2008518: 90 04 21 58 add %l0, 0x158, %o0
_Thread_Allocated_fp = executing;
200851c: e0 25 40 00 st %l0, [ %l5 ]
#endif
#endif
executing = _Thread_Executing;
_ISR_Disable( level );
2008520: 7f ff e6 a9 call 2001fc4 <sparc_disable_interrupts>
2008524: e0 05 c0 00 ld [ %l7 ], %l0
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Context_Switch_necessary == true ) {
2008528: c2 0d 80 00 ldub [ %l6 ], %g1
200852c: 80 a0 60 00 cmp %g1, 0
2008530: 32 bf ff c9 bne,a 2008454 <_Thread_Dispatch+0x5c>
2008534: e2 06 80 00 ld [ %i2 ], %l1
executing = _Thread_Executing;
_ISR_Disable( level );
}
_Thread_Dispatch_disable_level = 0;
2008538: 03 00 80 73 sethi %hi(0x201cc00), %g1
200853c: c0 20 60 20 clr [ %g1 + 0x20 ] ! 201cc20 <_Thread_Dispatch_disable_level>
_ISR_Enable( level );
2008540: 7f ff e6 a5 call 2001fd4 <sparc_enable_interrupts>
2008544: 01 00 00 00 nop
if ( _Thread_Do_post_task_switch_extension ||
2008548: 03 00 80 73 sethi %hi(0x201cc00), %g1
200854c: c2 00 60 c4 ld [ %g1 + 0xc4 ], %g1 ! 201ccc4 <_Thread_Do_post_task_switch_extension>
2008550: 80 a0 60 00 cmp %g1, 0
2008554: 12 80 00 06 bne 200856c <_Thread_Dispatch+0x174> <== NEVER TAKEN
2008558: 01 00 00 00 nop
executing->do_post_task_switch_extension ) {
200855c: c2 0c 20 74 ldub [ %l0 + 0x74 ], %g1
2008560: 80 a0 60 00 cmp %g1, 0
2008564: 02 80 00 04 be 2008574 <_Thread_Dispatch+0x17c>
2008568: 01 00 00 00 nop
executing->do_post_task_switch_extension = false;
_API_extensions_Run_postswitch();
200856c: 7f ff f9 7d call 2006b60 <_API_extensions_Run_postswitch>
2008570: c0 2c 20 74 clrb [ %l0 + 0x74 ]
2008574: 81 c7 e0 08 ret
2008578: 81 e8 00 00 restore
0200f298 <_Thread_Evaluate_mode>:
bool _Thread_Evaluate_mode( void )
{
Thread_Control *executing;
executing = _Thread_Executing;
200f298: 03 00 80 73 sethi %hi(0x201cc00), %g1
200f29c: c2 00 60 e0 ld [ %g1 + 0xe0 ], %g1 ! 201cce0 <_Thread_Executing>
if ( !_States_Is_ready( executing->current_state ) ||
200f2a0: c4 00 60 10 ld [ %g1 + 0x10 ], %g2
200f2a4: 80 a0 a0 00 cmp %g2, 0
200f2a8: 12 80 00 0b bne 200f2d4 <_Thread_Evaluate_mode+0x3c> <== NEVER TAKEN
200f2ac: 84 10 20 01 mov 1, %g2
200f2b0: 05 00 80 73 sethi %hi(0x201cc00), %g2
200f2b4: c4 00 a0 b0 ld [ %g2 + 0xb0 ], %g2 ! 201ccb0 <_Thread_Heir>
200f2b8: 80 a0 40 02 cmp %g1, %g2
200f2bc: 02 80 00 0b be 200f2e8 <_Thread_Evaluate_mode+0x50>
200f2c0: 01 00 00 00 nop
( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) {
200f2c4: c2 08 60 75 ldub [ %g1 + 0x75 ], %g1
200f2c8: 80 a0 60 00 cmp %g1, 0
200f2cc: 02 80 00 07 be 200f2e8 <_Thread_Evaluate_mode+0x50> <== NEVER TAKEN
200f2d0: 84 10 20 01 mov 1, %g2
_Context_Switch_necessary = true;
200f2d4: 03 00 80 73 sethi %hi(0x201cc00), %g1
200f2d8: 90 10 20 01 mov 1, %o0
200f2dc: c4 28 60 f0 stb %g2, [ %g1 + 0xf0 ]
return true;
200f2e0: 81 c3 e0 08 retl
200f2e4: 01 00 00 00 nop
}
return false;
}
200f2e8: 81 c3 e0 08 retl
200f2ec: 90 10 20 00 clr %o0 ! 0 <PROM_START>
0200f2f0 <_Thread_Handler>:
*
* Output parameters: NONE
*/
void _Thread_Handler( void )
{
200f2f0: 9d e3 bf a0 save %sp, -96, %sp
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
static char doneConstructors;
char doneCons;
#endif
executing = _Thread_Executing;
200f2f4: 03 00 80 73 sethi %hi(0x201cc00), %g1
200f2f8: e0 00 60 e0 ld [ %g1 + 0xe0 ], %l0 ! 201cce0 <_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();
200f2fc: 3f 00 80 3c sethi %hi(0x200f000), %i7
200f300: be 17 e2 f0 or %i7, 0x2f0, %i7 ! 200f2f0 <_Thread_Handler>
/*
* have to put level into a register for those cpu's that use
* inline asm here
*/
level = executing->Start.isr_level;
200f304: d0 04 20 b8 ld [ %l0 + 0xb8 ], %o0
_ISR_Set_level(level);
200f308: 7f ff cb 33 call 2001fd4 <sparc_enable_interrupts>
200f30c: 91 2a 20 08 sll %o0, 8, %o0
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
doneCons = doneConstructors;
200f310: 03 00 80 72 sethi %hi(0x201c800), %g1
doneConstructors = 1;
200f314: 84 10 20 01 mov 1, %g2
level = executing->Start.isr_level;
_ISR_Set_level(level);
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
doneCons = doneConstructors;
200f318: e2 08 60 d6 ldub [ %g1 + 0xd6 ], %l1
doneConstructors = 1;
200f31c: c4 28 60 d6 stb %g2, [ %g1 + 0xd6 ]
#endif
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
if ( (executing->fp_context != NULL) &&
200f320: c2 04 21 58 ld [ %l0 + 0x158 ], %g1
200f324: 80 a0 60 00 cmp %g1, 0
200f328: 02 80 00 0c be 200f358 <_Thread_Handler+0x68>
200f32c: 03 00 80 73 sethi %hi(0x201cc00), %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 );
200f330: d0 00 60 a8 ld [ %g1 + 0xa8 ], %o0 ! 201cca8 <_Thread_Allocated_fp>
200f334: 80 a4 00 08 cmp %l0, %o0
200f338: 02 80 00 08 be 200f358 <_Thread_Handler+0x68>
200f33c: 80 a2 20 00 cmp %o0, 0
!_Thread_Is_allocated_fp( executing ) ) {
if ( _Thread_Allocated_fp != NULL )
200f340: 22 80 00 06 be,a 200f358 <_Thread_Handler+0x68>
200f344: e0 20 60 a8 st %l0, [ %g1 + 0xa8 ]
_Context_Save_fp( &_Thread_Allocated_fp->fp_context );
200f348: 7f ff e9 c1 call 2009a4c <_CPU_Context_save_fp>
200f34c: 90 02 21 58 add %o0, 0x158, %o0
_Thread_Allocated_fp = executing;
200f350: 03 00 80 73 sethi %hi(0x201cc00), %g1
200f354: e0 20 60 a8 st %l0, [ %g1 + 0xa8 ] ! 201cca8 <_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 );
200f358: 7f ff e8 54 call 20094a8 <_User_extensions_Thread_begin>
200f35c: 90 10 00 10 mov %l0, %o0
/*
* At this point, the dispatch disable level BETTER be 1.
*/
_Thread_Enable_dispatch();
200f360: 7f ff e4 87 call 200857c <_Thread_Enable_dispatch>
200f364: 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) */ {
200f368: 80 a4 60 00 cmp %l1, 0
200f36c: 32 80 00 05 bne,a 200f380 <_Thread_Handler+0x90>
200f370: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1
INIT_NAME ();
200f374: 40 00 33 3d call 201c068 <_init>
200f378: 01 00 00 00 nop
}
#endif
if ( executing->Start.prototype == THREAD_START_NUMERIC ) {
200f37c: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1
200f380: 80 a0 60 00 cmp %g1, 0
200f384: 12 80 00 06 bne 200f39c <_Thread_Handler+0xac> <== NEVER TAKEN
200f388: 01 00 00 00 nop
executing->Wait.return_argument =
(*(Thread_Entry_numeric) executing->Start.entry_point)(
200f38c: c2 04 20 9c ld [ %l0 + 0x9c ], %g1
200f390: 9f c0 40 00 call %g1
200f394: d0 04 20 a8 ld [ %l0 + 0xa8 ], %o0
INIT_NAME ();
}
#endif
if ( executing->Start.prototype == THREAD_START_NUMERIC ) {
executing->Wait.return_argument =
200f398: 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 );
200f39c: 7f ff e8 54 call 20094ec <_User_extensions_Thread_exitted>
200f3a0: 90 10 00 10 mov %l0, %o0
_Internal_error_Occurred(
200f3a4: 90 10 20 00 clr %o0
200f3a8: 92 10 20 01 mov 1, %o1
200f3ac: 7f ff e0 91 call 20075f0 <_Internal_error_Occurred>
200f3b0: 94 10 20 06 mov 6, %o2
0200865c <_Thread_Initialize>:
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
200865c: 9d e3 bf a0 save %sp, -96, %sp
2008660: 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;
2008664: c0 26 61 60 clr [ %i1 + 0x160 ]
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
2008668: e0 00 40 00 ld [ %g1 ], %l0
/*
* Zero out all the allocated memory fields
*/
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
the_thread->API_Extensions[i] = NULL;
200866c: c0 26 61 64 clr [ %i1 + 0x164 ]
2008670: c0 26 61 68 clr [ %i1 + 0x168 ]
extensions_area = NULL;
the_thread->libc_reent = NULL;
2008674: c0 26 61 5c clr [ %i1 + 0x15c ]
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
2008678: e2 0f a0 5f ldub [ %fp + 0x5f ], %l1
/*
* Allocate and Initialize the stack for this thread.
*/
#if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API)
actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
200867c: 90 10 00 19 mov %i1, %o0
2008680: 40 00 02 9d call 20090f4 <_Thread_Stack_Allocate>
2008684: 92 10 00 1b mov %i3, %o1
if ( !actual_stack_size || actual_stack_size < stack_size )
2008688: 80 a2 00 1b cmp %o0, %i3
200868c: 0a 80 00 04 bcs 200869c <_Thread_Initialize+0x40>
2008690: 80 a2 20 00 cmp %o0, 0
2008694: 32 80 00 04 bne,a 20086a4 <_Thread_Initialize+0x48> <== ALWAYS TAKEN
2008698: c2 06 60 cc ld [ %i1 + 0xcc ], %g1
200869c: 81 c7 e0 08 ret
20086a0: 91 e8 20 00 restore %g0, 0, %o0
void *starting_address,
size_t size
)
{
the_stack->area = starting_address;
the_stack->size = size;
20086a4: d0 26 60 c0 st %o0, [ %i1 + 0xc0 ]
Stack_Control *the_stack,
void *starting_address,
size_t size
)
{
the_stack->area = starting_address;
20086a8: c2 26 60 c4 st %g1, [ %i1 + 0xc4 ]
/*
* Allocate the floating point area for this thread
*/
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( is_fp ) {
20086ac: 80 8f 20 ff btst 0xff, %i4
20086b0: 02 80 00 08 be 20086d0 <_Thread_Initialize+0x74>
20086b4: a4 10 20 00 clr %l2
fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );
20086b8: 90 10 20 88 mov 0x88, %o0
20086bc: 40 00 04 bb call 20099a8 <_Workspace_Allocate>
20086c0: b6 10 20 00 clr %i3
if ( !fp_area )
20086c4: a4 92 20 00 orcc %o0, 0, %l2
20086c8: 22 80 00 3e be,a 20087c0 <_Thread_Initialize+0x164>
20086cc: d0 06 61 5c ld [ %i1 + 0x15c ], %o0
#endif
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
20086d0: 03 00 80 73 sethi %hi(0x201cc00), %g1
20086d4: d0 00 60 c0 ld [ %g1 + 0xc0 ], %o0 ! 201ccc0 <_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;
20086d8: e4 26 61 58 st %l2, [ %i1 + 0x158 ]
the_thread->Start.fp_context = fp_area;
20086dc: e4 26 60 c8 st %l2, [ %i1 + 0xc8 ]
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
20086e0: c0 26 60 50 clr [ %i1 + 0x50 ]
the_watchdog->routine = routine;
20086e4: c0 26 60 64 clr [ %i1 + 0x64 ]
the_watchdog->id = id;
20086e8: c0 26 60 68 clr [ %i1 + 0x68 ]
the_watchdog->user_data = user_data;
20086ec: c0 26 60 6c clr [ %i1 + 0x6c ]
#endif
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
20086f0: 80 a2 20 00 cmp %o0, 0
20086f4: 02 80 00 08 be 2008714 <_Thread_Initialize+0xb8>
20086f8: b6 10 20 00 clr %i3
extensions_area = _Workspace_Allocate(
20086fc: 90 02 20 01 inc %o0
2008700: 40 00 04 aa call 20099a8 <_Workspace_Allocate>
2008704: 91 2a 20 02 sll %o0, 2, %o0
(_Thread_Maximum_extensions + 1) * sizeof( void * )
);
if ( !extensions_area )
2008708: b6 92 20 00 orcc %o0, 0, %i3
200870c: 22 80 00 2d be,a 20087c0 <_Thread_Initialize+0x164>
2008710: d0 06 61 5c ld [ %i1 + 0x15c ], %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 ) {
2008714: 80 a6 e0 00 cmp %i3, 0
2008718: 02 80 00 0c be 2008748 <_Thread_Initialize+0xec>
200871c: f6 26 61 6c st %i3, [ %i1 + 0x16c ]
for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )
2008720: 03 00 80 73 sethi %hi(0x201cc00), %g1
2008724: c4 00 60 c0 ld [ %g1 + 0xc0 ], %g2 ! 201ccc0 <_Thread_Maximum_extensions>
2008728: 10 80 00 05 b 200873c <_Thread_Initialize+0xe0>
200872c: 82 10 20 00 clr %g1
the_thread->extensions[i] = NULL;
2008730: 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++ )
2008734: 82 00 60 01 inc %g1
the_thread->extensions[i] = NULL;
2008738: 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++ )
200873c: 80 a0 40 02 cmp %g1, %g2
2008740: 28 bf ff fc bleu,a 2008730 <_Thread_Initialize+0xd4>
2008744: c8 06 61 6c ld [ %i1 + 0x16c ], %g4
/*
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
the_thread->Start.budget_algorithm = budget_algorithm;
2008748: c2 07 a0 60 ld [ %fp + 0x60 ], %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 );
200874c: 92 10 00 1d mov %i5, %o1
/*
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
the_thread->Start.budget_algorithm = budget_algorithm;
2008750: c2 26 60 b0 st %g1, [ %i1 + 0xb0 ]
the_thread->Start.budget_callout = budget_callout;
2008754: c2 07 a0 64 ld [ %fp + 0x64 ], %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 );
2008758: 90 10 00 19 mov %i1, %o0
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
the_thread->Start.budget_algorithm = budget_algorithm;
the_thread->Start.budget_callout = budget_callout;
200875c: c2 26 60 b4 st %g1, [ %i1 + 0xb4 ]
case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:
break;
#endif
}
the_thread->Start.isr_level = isr_level;
2008760: c2 07 a0 68 ld [ %fp + 0x68 ], %g1
/*
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
2008764: e2 2e 60 ac stb %l1, [ %i1 + 0xac ]
case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:
break;
#endif
}
the_thread->Start.isr_level = isr_level;
2008768: c2 26 60 b8 st %g1, [ %i1 + 0xb8 ]
the_thread->current_state = STATES_DORMANT;
200876c: 82 10 20 01 mov 1, %g1
the_thread->Wait.queue = NULL;
2008770: c0 26 60 44 clr [ %i1 + 0x44 ]
#endif
}
the_thread->Start.isr_level = isr_level;
the_thread->current_state = STATES_DORMANT;
2008774: c2 26 60 10 st %g1, [ %i1 + 0x10 ]
the_thread->Wait.queue = NULL;
the_thread->resource_count = 0;
2008778: c0 26 60 1c clr [ %i1 + 0x1c ]
#if defined(RTEMS_ITRON_API)
the_thread->suspend_count = 0;
#endif
the_thread->real_priority = priority;
200877c: fa 26 60 18 st %i5, [ %i1 + 0x18 ]
the_thread->Start.initial_priority = priority;
_Thread_Set_priority( the_thread, priority );
2008780: 40 00 01 bb call 2008e6c <_Thread_Set_priority>
2008784: fa 26 60 bc st %i5, [ %i1 + 0xbc ]
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
2008788: c2 16 60 0a lduh [ %i1 + 0xa ], %g1
200878c: c4 06 20 1c ld [ %i0 + 0x1c ], %g2
2008790: 83 28 60 02 sll %g1, 2, %g1
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
2008794: e0 26 60 0c st %l0, [ %i1 + 0xc ]
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
2008798: 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 );
200879c: c0 26 60 84 clr [ %i1 + 0x84 ]
20087a0: 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 );
20087a4: 90 10 00 19 mov %i1, %o0
20087a8: 40 00 03 75 call 200957c <_User_extensions_Thread_create>
20087ac: b0 10 20 01 mov 1, %i0
if ( extension_status )
20087b0: 80 8a 20 ff btst 0xff, %o0
20087b4: 12 80 00 27 bne 2008850 <_Thread_Initialize+0x1f4>
20087b8: 01 00 00 00 nop
return true;
failed:
if ( the_thread->libc_reent )
20087bc: d0 06 61 5c ld [ %i1 + 0x15c ], %o0
20087c0: 80 a2 20 00 cmp %o0, 0
20087c4: 22 80 00 05 be,a 20087d8 <_Thread_Initialize+0x17c>
20087c8: d0 06 61 60 ld [ %i1 + 0x160 ], %o0
_Workspace_Free( the_thread->libc_reent );
20087cc: 40 00 04 80 call 20099cc <_Workspace_Free>
20087d0: 01 00 00 00 nop
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
if ( the_thread->API_Extensions[i] )
20087d4: d0 06 61 60 ld [ %i1 + 0x160 ], %o0
20087d8: 80 a2 20 00 cmp %o0, 0
20087dc: 22 80 00 05 be,a 20087f0 <_Thread_Initialize+0x194>
20087e0: d0 06 61 64 ld [ %i1 + 0x164 ], %o0
_Workspace_Free( the_thread->API_Extensions[i] );
20087e4: 40 00 04 7a call 20099cc <_Workspace_Free>
20087e8: 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] )
20087ec: d0 06 61 64 ld [ %i1 + 0x164 ], %o0
20087f0: 80 a2 20 00 cmp %o0, 0
20087f4: 22 80 00 05 be,a 2008808 <_Thread_Initialize+0x1ac> <== ALWAYS TAKEN
20087f8: d0 06 61 68 ld [ %i1 + 0x168 ], %o0
_Workspace_Free( the_thread->API_Extensions[i] );
20087fc: 40 00 04 74 call 20099cc <_Workspace_Free> <== NOT EXECUTED
2008800: 01 00 00 00 nop <== NOT EXECUTED
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] )
2008804: d0 06 61 68 ld [ %i1 + 0x168 ], %o0 <== NOT EXECUTED
2008808: 80 a2 20 00 cmp %o0, 0
200880c: 02 80 00 05 be 2008820 <_Thread_Initialize+0x1c4> <== ALWAYS TAKEN
2008810: 80 a6 e0 00 cmp %i3, 0
_Workspace_Free( the_thread->API_Extensions[i] );
2008814: 40 00 04 6e call 20099cc <_Workspace_Free> <== NOT EXECUTED
2008818: 01 00 00 00 nop <== NOT EXECUTED
if ( extensions_area )
200881c: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2008820: 02 80 00 05 be 2008834 <_Thread_Initialize+0x1d8>
2008824: 80 a4 a0 00 cmp %l2, 0
(void) _Workspace_Free( extensions_area );
2008828: 40 00 04 69 call 20099cc <_Workspace_Free>
200882c: 90 10 00 1b mov %i3, %o0
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( fp_area )
2008830: 80 a4 a0 00 cmp %l2, 0
2008834: 02 80 00 05 be 2008848 <_Thread_Initialize+0x1ec>
2008838: 90 10 00 19 mov %i1, %o0
(void) _Workspace_Free( fp_area );
200883c: 40 00 04 64 call 20099cc <_Workspace_Free>
2008840: 90 10 00 12 mov %l2, %o0
#endif
_Thread_Stack_Free( the_thread );
2008844: 90 10 00 19 mov %i1, %o0
2008848: 40 00 02 42 call 2009150 <_Thread_Stack_Free>
200884c: b0 10 20 00 clr %i0
return false;
}
2008850: 81 c7 e0 08 ret
2008854: 81 e8 00 00 restore
0200d45c <_Thread_Reset_timeslice>:
* ready chain
* select heir
*/
void _Thread_Reset_timeslice( void )
{
200d45c: 9d e3 bf a0 save %sp, -96, %sp
ISR_Level level;
Thread_Control *executing;
Chain_Control *ready;
executing = _Thread_Executing;
200d460: 03 00 80 73 sethi %hi(0x201cc00), %g1
200d464: e0 00 60 e0 ld [ %g1 + 0xe0 ], %l0 ! 201cce0 <_Thread_Executing>
ready = executing->ready;
_ISR_Disable( level );
200d468: 7f ff d2 d7 call 2001fc4 <sparc_disable_interrupts>
200d46c: e2 04 20 8c ld [ %l0 + 0x8c ], %l1
200d470: b0 10 00 08 mov %o0, %i0
if ( _Chain_Has_only_one_node( ready ) ) {
200d474: c4 04 40 00 ld [ %l1 ], %g2
200d478: c2 04 60 08 ld [ %l1 + 8 ], %g1
200d47c: 80 a0 80 01 cmp %g2, %g1
200d480: 02 80 00 19 be 200d4e4 <_Thread_Reset_timeslice+0x88>
200d484: 86 04 60 04 add %l1, 4, %g3
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
200d488: c2 04 00 00 ld [ %l0 ], %g1
previous = the_node->previous;
200d48c: c4 04 20 04 ld [ %l0 + 4 ], %g2
next->previous = previous;
previous->next = next;
200d490: c2 20 80 00 st %g1, [ %g2 ]
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
200d494: c6 24 00 00 st %g3, [ %l0 ]
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
next->previous = previous;
200d498: 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;
200d49c: c2 04 60 08 ld [ %l1 + 8 ], %g1
the_chain->last = the_node;
200d4a0: e0 24 60 08 st %l0, [ %l1 + 8 ]
old_last_node->next = the_node;
the_node->previous = old_last_node;
200d4a4: 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;
200d4a8: e0 20 40 00 st %l0, [ %g1 ]
return;
}
_Chain_Extract_unprotected( &executing->Object.Node );
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
200d4ac: 7f ff d2 ca call 2001fd4 <sparc_enable_interrupts>
200d4b0: 01 00 00 00 nop
200d4b4: 7f ff d2 c4 call 2001fc4 <sparc_disable_interrupts>
200d4b8: 01 00 00 00 nop
if ( _Thread_Is_heir( executing ) )
200d4bc: 03 00 80 73 sethi %hi(0x201cc00), %g1
200d4c0: c4 00 60 b0 ld [ %g1 + 0xb0 ], %g2 ! 201ccb0 <_Thread_Heir>
200d4c4: 80 a4 00 02 cmp %l0, %g2
200d4c8: 12 80 00 05 bne 200d4dc <_Thread_Reset_timeslice+0x80> <== NEVER TAKEN
200d4cc: 84 10 20 01 mov 1, %g2
_Thread_Heir = (Thread_Control *) ready->first;
200d4d0: c4 04 40 00 ld [ %l1 ], %g2
200d4d4: c4 20 60 b0 st %g2, [ %g1 + 0xb0 ]
_Context_Switch_necessary = true;
200d4d8: 84 10 20 01 mov 1, %g2
200d4dc: 03 00 80 73 sethi %hi(0x201cc00), %g1
200d4e0: c4 28 60 f0 stb %g2, [ %g1 + 0xf0 ] ! 201ccf0 <_Context_Switch_necessary>
_ISR_Enable( level );
200d4e4: 7f ff d2 bc call 2001fd4 <sparc_enable_interrupts>
200d4e8: 81 e8 00 00 restore
0200c5d4 <_Thread_Resume>:
void _Thread_Resume(
Thread_Control *the_thread,
bool force
)
{
200c5d4: 9d e3 bf a0 save %sp, -96, %sp
ISR_Level level;
States_Control current_state;
_ISR_Disable( level );
200c5d8: 7f ff d6 cb call 2002104 <sparc_disable_interrupts>
200c5dc: a0 10 00 18 mov %i0, %l0
200c5e0: b0 10 00 08 mov %o0, %i0
_ISR_Enable( level );
return;
}
#endif
current_state = the_thread->current_state;
200c5e4: c2 04 20 10 ld [ %l0 + 0x10 ], %g1
if ( current_state & STATES_SUSPENDED ) {
200c5e8: 80 88 60 02 btst 2, %g1
200c5ec: 02 80 00 2c be 200c69c <_Thread_Resume+0xc8> <== NEVER TAKEN
200c5f0: 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 ) ) {
200c5f4: 80 a0 60 00 cmp %g1, 0
200c5f8: 12 80 00 29 bne 200c69c <_Thread_Resume+0xc8>
200c5fc: 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;
200c600: 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);
200c604: c2 04 20 8c ld [ %l0 + 0x8c ], %g1
200c608: c8 10 80 00 lduh [ %g2 ], %g4
200c60c: c6 14 20 96 lduh [ %l0 + 0x96 ], %g3
200c610: 86 11 00 03 or %g4, %g3, %g3
200c614: c6 30 80 00 sth %g3, [ %g2 ]
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
200c618: 84 00 60 04 add %g1, 4, %g2
_Priority_Major_bit_map |= the_priority_map->ready_major;
200c61c: da 14 20 94 lduh [ %l0 + 0x94 ], %o5
200c620: c4 24 00 00 st %g2, [ %l0 ]
200c624: 07 00 80 81 sethi %hi(0x2020400), %g3
old_last_node = the_chain->last;
200c628: c4 00 60 08 ld [ %g1 + 8 ], %g2
200c62c: c8 10 e3 d4 lduh [ %g3 + 0x3d4 ], %g4
the_chain->last = the_node;
200c630: e0 20 60 08 st %l0, [ %g1 + 8 ]
old_last_node->next = the_node;
the_node->previous = old_last_node;
200c634: c4 24 20 04 st %g2, [ %l0 + 4 ]
200c638: 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;
200c63c: e0 20 80 00 st %l0, [ %g2 ]
200c640: c2 30 e3 d4 sth %g1, [ %g3 + 0x3d4 ]
_ISR_Flash( level );
200c644: 7f ff d6 b4 call 2002114 <sparc_enable_interrupts>
200c648: 01 00 00 00 nop
200c64c: 7f ff d6 ae call 2002104 <sparc_disable_interrupts>
200c650: 01 00 00 00 nop
if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
200c654: 05 00 80 81 sethi %hi(0x2020400), %g2
200c658: c6 00 a3 b0 ld [ %g2 + 0x3b0 ], %g3 ! 20207b0 <_Thread_Heir>
200c65c: c2 04 20 14 ld [ %l0 + 0x14 ], %g1
200c660: c6 00 e0 14 ld [ %g3 + 0x14 ], %g3
200c664: 80 a0 40 03 cmp %g1, %g3
200c668: 1a 80 00 0d bcc 200c69c <_Thread_Resume+0xc8>
200c66c: 07 00 80 81 sethi %hi(0x2020400), %g3
_Thread_Heir = the_thread;
if ( _Thread_Executing->is_preemptible ||
200c670: c6 00 e3 e0 ld [ %g3 + 0x3e0 ], %g3 ! 20207e0 <_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;
200c674: e0 20 a3 b0 st %l0, [ %g2 + 0x3b0 ]
if ( _Thread_Executing->is_preemptible ||
200c678: c4 08 e0 75 ldub [ %g3 + 0x75 ], %g2
200c67c: 80 a0 a0 00 cmp %g2, 0
200c680: 12 80 00 05 bne 200c694 <_Thread_Resume+0xc0>
200c684: 84 10 20 01 mov 1, %g2
200c688: 80 a0 60 00 cmp %g1, 0
200c68c: 12 80 00 04 bne 200c69c <_Thread_Resume+0xc8> <== ALWAYS TAKEN
200c690: 01 00 00 00 nop
the_thread->current_priority == 0 )
_Context_Switch_necessary = true;
200c694: 03 00 80 81 sethi %hi(0x2020400), %g1
200c698: c4 28 63 f0 stb %g2, [ %g1 + 0x3f0 ] ! 20207f0 <_Context_Switch_necessary>
}
}
}
_ISR_Enable( level );
200c69c: 7f ff d6 9e call 2002114 <sparc_enable_interrupts>
200c6a0: 81 e8 00 00 restore
02009294 <_Thread_Yield_processor>:
* ready chain
* select heir
*/
void _Thread_Yield_processor( void )
{
2009294: 9d e3 bf a0 save %sp, -96, %sp
ISR_Level level;
Thread_Control *executing;
Chain_Control *ready;
executing = _Thread_Executing;
2009298: 03 00 80 73 sethi %hi(0x201cc00), %g1
200929c: e0 00 60 e0 ld [ %g1 + 0xe0 ], %l0 ! 201cce0 <_Thread_Executing>
ready = executing->ready;
_ISR_Disable( level );
20092a0: 7f ff e3 49 call 2001fc4 <sparc_disable_interrupts>
20092a4: e2 04 20 8c ld [ %l0 + 0x8c ], %l1
20092a8: b0 10 00 08 mov %o0, %i0
if ( !_Chain_Has_only_one_node( ready ) ) {
20092ac: c4 04 40 00 ld [ %l1 ], %g2
20092b0: c2 04 60 08 ld [ %l1 + 8 ], %g1
20092b4: 80 a0 80 01 cmp %g2, %g1
20092b8: 02 80 00 17 be 2009314 <_Thread_Yield_processor+0x80>
20092bc: 25 00 80 73 sethi %hi(0x201cc00), %l2
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
20092c0: c2 04 00 00 ld [ %l0 ], %g1
previous = the_node->previous;
20092c4: c4 04 20 04 ld [ %l0 + 4 ], %g2
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
20092c8: 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;
20092cc: c2 20 80 00 st %g1, [ %g2 ]
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
20092d0: c6 24 00 00 st %g3, [ %l0 ]
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
next->previous = previous;
20092d4: 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;
20092d8: c2 04 60 08 ld [ %l1 + 8 ], %g1
the_chain->last = the_node;
20092dc: e0 24 60 08 st %l0, [ %l1 + 8 ]
old_last_node->next = the_node;
the_node->previous = old_last_node;
20092e0: 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;
20092e4: e0 20 40 00 st %l0, [ %g1 ]
_Chain_Extract_unprotected( &executing->Object.Node );
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
20092e8: 7f ff e3 3b call 2001fd4 <sparc_enable_interrupts>
20092ec: 01 00 00 00 nop
20092f0: 7f ff e3 35 call 2001fc4 <sparc_disable_interrupts>
20092f4: 01 00 00 00 nop
if ( _Thread_Is_heir( executing ) )
20092f8: c2 04 a0 b0 ld [ %l2 + 0xb0 ], %g1
20092fc: 80 a4 00 01 cmp %l0, %g1
2009300: 12 80 00 09 bne 2009324 <_Thread_Yield_processor+0x90> <== NEVER TAKEN
2009304: 84 10 20 01 mov 1, %g2
_Thread_Heir = (Thread_Control *) ready->first;
2009308: c2 04 40 00 ld [ %l1 ], %g1
200930c: 10 80 00 06 b 2009324 <_Thread_Yield_processor+0x90>
2009310: c2 24 a0 b0 st %g1, [ %l2 + 0xb0 ]
_Context_Switch_necessary = true;
}
else if ( !_Thread_Is_heir( executing ) )
2009314: c2 04 a0 b0 ld [ %l2 + 0xb0 ], %g1
2009318: 80 a4 00 01 cmp %l0, %g1
200931c: 02 80 00 04 be 200932c <_Thread_Yield_processor+0x98> <== ALWAYS TAKEN
2009320: 84 10 20 01 mov 1, %g2
_Context_Switch_necessary = true;
2009324: 03 00 80 73 sethi %hi(0x201cc00), %g1
2009328: c4 28 60 f0 stb %g2, [ %g1 + 0xf0 ] ! 201ccf0 <_Context_Switch_necessary>
_ISR_Enable( level );
200932c: 7f ff e3 2a call 2001fd4 <sparc_enable_interrupts>
2009330: 81 e8 00 00 restore
02008b74 <_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
)
{
2008b74: 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;
2008b78: 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);
2008b7c: 82 06 60 3c add %i1, 0x3c, %g1
the_chain->permanent_null = NULL;
2008b80: 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);
2008b84: c2 26 60 38 st %g1, [ %i1 + 0x38 ]
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
2008b88: 82 06 60 38 add %i1, 0x38, %g1
2008b8c: 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;
2008b90: 2d 00 80 70 sethi %hi(0x201c000), %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 ];
2008b94: 83 34 20 06 srl %l0, 6, %g1
block_state = the_thread_queue->state;
if ( _Thread_queue_Is_reverse_search( priority ) )
2008b98: 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 ];
2008b9c: 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;
2008ba0: ac 15 a1 64 or %l6, 0x164, %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 ];
2008ba4: 83 28 60 02 sll %g1, 2, %g1
block_state = the_thread_queue->state;
2008ba8: 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 ];
2008bac: a6 24 c0 01 sub %l3, %g1, %l3
block_state = the_thread_queue->state;
if ( _Thread_queue_Is_reverse_search( priority ) )
2008bb0: 12 80 00 23 bne 2008c3c <_Thread_queue_Enqueue_priority+0xc8>
2008bb4: 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;
2008bb8: ac 04 e0 04 add %l3, 4, %l6
goto restart_reverse_search;
restart_forward_search:
search_priority = PRIORITY_MINIMUM - 1;
_ISR_Disable( level );
2008bbc: 7f ff e5 02 call 2001fc4 <sparc_disable_interrupts>
2008bc0: 01 00 00 00 nop
2008bc4: a4 10 00 08 mov %o0, %l2
search_thread = (Thread_Control *) header->first;
2008bc8: a8 10 3f ff mov -1, %l4
while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {
2008bcc: 10 80 00 10 b 2008c0c <_Thread_queue_Enqueue_priority+0x98>
2008bd0: e2 04 c0 00 ld [ %l3 ], %l1
search_priority = search_thread->current_priority;
if ( priority <= search_priority )
2008bd4: 80 a4 00 14 cmp %l0, %l4
2008bd8: 28 80 00 11 bleu,a 2008c1c <_Thread_queue_Enqueue_priority+0xa8>
2008bdc: c2 06 20 30 ld [ %i0 + 0x30 ], %g1
break;
search_priority = search_thread->current_priority;
if ( priority <= search_priority )
break;
#endif
_ISR_Flash( level );
2008be0: 7f ff e4 fd call 2001fd4 <sparc_enable_interrupts>
2008be4: 90 10 00 12 mov %l2, %o0
2008be8: 7f ff e4 f7 call 2001fc4 <sparc_disable_interrupts>
2008bec: 01 00 00 00 nop
if ( !_States_Are_set( search_thread->current_state, block_state) ) {
2008bf0: c2 04 60 10 ld [ %l1 + 0x10 ], %g1
2008bf4: 80 8d 40 01 btst %l5, %g1
2008bf8: 32 80 00 05 bne,a 2008c0c <_Thread_queue_Enqueue_priority+0x98><== ALWAYS TAKEN
2008bfc: e2 04 40 00 ld [ %l1 ], %l1
_ISR_Enable( level );
2008c00: 7f ff e4 f5 call 2001fd4 <sparc_enable_interrupts> <== NOT EXECUTED
2008c04: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
goto restart_forward_search;
2008c08: 30 bf ff ed b,a 2008bbc <_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 ) ) {
2008c0c: 80 a4 40 16 cmp %l1, %l6
2008c10: 32 bf ff f1 bne,a 2008bd4 <_Thread_queue_Enqueue_priority+0x60>
2008c14: e8 04 60 14 ld [ %l1 + 0x14 ], %l4
}
search_thread =
(Thread_Control *)search_thread->Object.Node.next;
}
if ( the_thread_queue->sync_state !=
2008c18: c2 06 20 30 ld [ %i0 + 0x30 ], %g1
2008c1c: 80 a0 60 01 cmp %g1, 1
2008c20: 12 80 00 37 bne 2008cfc <_Thread_queue_Enqueue_priority+0x188>
2008c24: 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 )
2008c28: 80 a4 00 14 cmp %l0, %l4
2008c2c: 12 80 00 2a bne 2008cd4 <_Thread_queue_Enqueue_priority+0x160>
2008c30: c0 26 20 30 clr [ %i0 + 0x30 ]
2008c34: 10 80 00 28 b 2008cd4 <_Thread_queue_Enqueue_priority+0x160>
2008c38: 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 );
2008c3c: 7f ff e4 e2 call 2001fc4 <sparc_disable_interrupts>
2008c40: 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;
2008c44: a8 05 20 01 inc %l4
_ISR_Disable( level );
2008c48: a4 10 00 08 mov %o0, %l2
search_thread = (Thread_Control *) header->last;
while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {
2008c4c: 10 80 00 10 b 2008c8c <_Thread_queue_Enqueue_priority+0x118>
2008c50: e2 04 e0 08 ld [ %l3 + 8 ], %l1
search_priority = search_thread->current_priority;
if ( priority >= search_priority )
2008c54: 80 a4 00 14 cmp %l0, %l4
2008c58: 3a 80 00 11 bcc,a 2008c9c <_Thread_queue_Enqueue_priority+0x128>
2008c5c: c2 06 20 30 ld [ %i0 + 0x30 ], %g1
break;
search_priority = search_thread->current_priority;
if ( priority >= search_priority )
break;
#endif
_ISR_Flash( level );
2008c60: 7f ff e4 dd call 2001fd4 <sparc_enable_interrupts>
2008c64: 90 10 00 12 mov %l2, %o0
2008c68: 7f ff e4 d7 call 2001fc4 <sparc_disable_interrupts>
2008c6c: 01 00 00 00 nop
if ( !_States_Are_set( search_thread->current_state, block_state) ) {
2008c70: c2 04 60 10 ld [ %l1 + 0x10 ], %g1
2008c74: 80 8d 40 01 btst %l5, %g1
2008c78: 32 80 00 05 bne,a 2008c8c <_Thread_queue_Enqueue_priority+0x118>
2008c7c: e2 04 60 04 ld [ %l1 + 4 ], %l1
_ISR_Enable( level );
2008c80: 7f ff e4 d5 call 2001fd4 <sparc_enable_interrupts>
2008c84: 90 10 00 12 mov %l2, %o0
goto restart_reverse_search;
2008c88: 30 bf ff ed b,a 2008c3c <_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 ) ) {
2008c8c: 80 a4 40 13 cmp %l1, %l3
2008c90: 32 bf ff f1 bne,a 2008c54 <_Thread_queue_Enqueue_priority+0xe0>
2008c94: e8 04 60 14 ld [ %l1 + 0x14 ], %l4
}
search_thread = (Thread_Control *)
search_thread->Object.Node.previous;
}
if ( the_thread_queue->sync_state !=
2008c98: c2 06 20 30 ld [ %i0 + 0x30 ], %g1
2008c9c: 80 a0 60 01 cmp %g1, 1
2008ca0: 12 80 00 17 bne 2008cfc <_Thread_queue_Enqueue_priority+0x188>
2008ca4: 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 )
2008ca8: 80 a4 00 14 cmp %l0, %l4
2008cac: 02 80 00 09 be 2008cd0 <_Thread_queue_Enqueue_priority+0x15c>
2008cb0: c0 26 20 30 clr [ %i0 + 0x30 ]
goto equal_priority;
search_node = (Chain_Node *) search_thread;
next_node = search_node->next;
2008cb4: c2 04 40 00 ld [ %l1 ], %g1
the_node = (Chain_Node *) the_thread;
the_node->next = next_node;
the_node->previous = search_node;
2008cb8: 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;
2008cbc: 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;
2008cc0: 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;
2008cc4: f2 24 40 00 st %i1, [ %l1 ]
next_node->previous = the_node;
2008cc8: 10 80 00 09 b 2008cec <_Thread_queue_Enqueue_priority+0x178>
2008ccc: f2 20 60 04 st %i1, [ %g1 + 4 ]
2008cd0: 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;
2008cd4: c2 04 60 04 ld [ %l1 + 4 ], %g1
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
2008cd8: e2 26 40 00 st %l1, [ %i1 ]
the_node->previous = previous_node;
2008cdc: 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;
2008ce0: 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;
2008ce4: f2 20 40 00 st %i1, [ %g1 ]
search_node->previous = the_node;
2008ce8: f2 24 60 04 st %i1, [ %l1 + 4 ]
the_thread->Wait.queue = the_thread_queue;
_ISR_Enable( level );
2008cec: 7f ff e4 ba call 2001fd4 <sparc_enable_interrupts>
2008cf0: b0 10 20 01 mov 1, %i0
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
2008cf4: 81 c7 e0 08 ret
2008cf8: 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;
2008cfc: 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;
2008d00: d0 26 80 00 st %o0, [ %i2 ]
return the_thread_queue->sync_state;
}
2008d04: 81 c7 e0 08 ret
2008d08: 81 e8 00 00 restore
02008db8 <_Thread_queue_Requeue>:
void _Thread_queue_Requeue(
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread
)
{
2008db8: 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 )
2008dbc: 80 a6 20 00 cmp %i0, 0
2008dc0: 02 80 00 19 be 2008e24 <_Thread_queue_Requeue+0x6c> <== NEVER TAKEN
2008dc4: 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 ) {
2008dc8: e2 06 20 34 ld [ %i0 + 0x34 ], %l1
2008dcc: 80 a4 60 01 cmp %l1, 1
2008dd0: 12 80 00 15 bne 2008e24 <_Thread_queue_Requeue+0x6c> <== NEVER TAKEN
2008dd4: 01 00 00 00 nop
Thread_queue_Control *tq = the_thread_queue;
ISR_Level level;
ISR_Level level_ignored;
_ISR_Disable( level );
2008dd8: 7f ff e4 7b call 2001fc4 <sparc_disable_interrupts>
2008ddc: 01 00 00 00 nop
2008de0: a0 10 00 08 mov %o0, %l0
if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
2008de4: c4 06 60 10 ld [ %i1 + 0x10 ], %g2
2008de8: 03 00 00 ef sethi %hi(0x3bc00), %g1
2008dec: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 <PROM_START+0x3bee0>
2008df0: 80 88 80 01 btst %g2, %g1
2008df4: 02 80 00 0a be 2008e1c <_Thread_queue_Requeue+0x64> <== NEVER TAKEN
2008df8: 94 10 20 01 mov 1, %o2
_Thread_queue_Enter_critical_section( tq );
_Thread_queue_Extract_priority_helper( tq, the_thread, true );
2008dfc: 90 10 00 18 mov %i0, %o0
2008e00: 92 10 00 19 mov %i1, %o1
2008e04: 40 00 10 f5 call 200d1d8 <_Thread_queue_Extract_priority_helper>
2008e08: e2 26 20 30 st %l1, [ %i0 + 0x30 ]
(void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
2008e0c: 90 10 00 18 mov %i0, %o0
2008e10: 92 10 00 19 mov %i1, %o1
2008e14: 7f ff ff 58 call 2008b74 <_Thread_queue_Enqueue_priority>
2008e18: 94 07 bf fc add %fp, -4, %o2
}
_ISR_Enable( level );
2008e1c: 7f ff e4 6e call 2001fd4 <sparc_enable_interrupts>
2008e20: 90 10 00 10 mov %l0, %o0
2008e24: 81 c7 e0 08 ret
2008e28: 81 e8 00 00 restore
02008e2c <_Thread_queue_Timeout>:
void _Thread_queue_Timeout(
Objects_Id id,
void *ignored __attribute__((unused))
)
{
2008e2c: 9d e3 bf 98 save %sp, -104, %sp
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
2008e30: 90 10 00 18 mov %i0, %o0
2008e34: 7f ff fd df call 20085b0 <_Thread_Get>
2008e38: 92 07 bf fc add %fp, -4, %o1
switch ( location ) {
2008e3c: c2 07 bf fc ld [ %fp + -4 ], %g1
2008e40: 80 a0 60 00 cmp %g1, 0
2008e44: 12 80 00 08 bne 2008e64 <_Thread_queue_Timeout+0x38> <== NEVER TAKEN
2008e48: 01 00 00 00 nop
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
#endif
break;
case OBJECTS_LOCAL:
_Thread_queue_Process_timeout( the_thread );
2008e4c: 40 00 11 1a call 200d2b4 <_Thread_queue_Process_timeout>
2008e50: 01 00 00 00 nop
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
2008e54: 03 00 80 73 sethi %hi(0x201cc00), %g1
2008e58: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 ! 201cc20 <_Thread_Dispatch_disable_level>
2008e5c: 84 00 bf ff add %g2, -1, %g2
2008e60: c4 20 60 20 st %g2, [ %g1 + 0x20 ]
2008e64: 81 c7 e0 08 ret
2008e68: 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 f6 sethi %hi(0x203d800), %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 f6 sethi %hi(0x203d800), %i3
2015e00: 2b 00 80 f5 sethi %hi(0x203d400), %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 e4 or %i2, 0xe4, %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 e0 24 or %i3, 0x24, %i3
2015e24: aa 15 63 90 or %l5, 0x390, %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 3a call 201a33c <_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 32 call 201a33c <_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 05 call 201a2a0 <_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 5d call 2016810 <_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 4e call 201a410 <_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 32 call 201985c <_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 67 call 2018d48 <_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 71 call 201a580 <_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 6f call 201a580 <_Watchdog_Remove>
2015fc8: 90 10 00 1d mov %i5, %o0
2015fcc: 30 bf ff 9c b,a 2015e3c <_Timer_server_Body+0x58>
020404bc <_Timespec_Greater_than>:
bool _Timespec_Greater_than(
const struct timespec *lhs,
const struct timespec *rhs
)
{
if ( lhs->tv_sec > rhs->tv_sec )
20404bc: c6 02 00 00 ld [ %o0 ], %g3
20404c0: c4 02 40 00 ld [ %o1 ], %g2
bool _Timespec_Greater_than(
const struct timespec *lhs,
const struct timespec *rhs
)
{
20404c4: 82 10 00 08 mov %o0, %g1
if ( lhs->tv_sec > rhs->tv_sec )
20404c8: 80 a0 c0 02 cmp %g3, %g2
20404cc: 14 80 00 0b bg 20404f8 <_Timespec_Greater_than+0x3c>
20404d0: 90 10 20 01 mov 1, %o0
return true;
if ( lhs->tv_sec < rhs->tv_sec )
20404d4: 80 a0 c0 02 cmp %g3, %g2
20404d8: 06 80 00 08 bl 20404f8 <_Timespec_Greater_than+0x3c> <== NEVER TAKEN
20404dc: 90 10 20 00 clr %o0
#include <rtems/system.h>
#include <rtems/score/timespec.h>
#include <rtems/score/tod.h>
bool _Timespec_Greater_than(
20404e0: c4 00 60 04 ld [ %g1 + 4 ], %g2
20404e4: c2 02 60 04 ld [ %o1 + 4 ], %g1
20404e8: 80 a0 80 01 cmp %g2, %g1
20404ec: 14 80 00 03 bg 20404f8 <_Timespec_Greater_than+0x3c>
20404f0: 90 10 20 01 mov 1, %o0
20404f4: 90 10 20 00 clr %o0
/* ASSERT: lhs->tv_sec == rhs->tv_sec */
if ( lhs->tv_nsec > rhs->tv_nsec )
return true;
return false;
}
20404f8: 81 c3 e0 08 retl
0200b838 <_Watchdog_Adjust>:
void _Watchdog_Adjust(
Chain_Control *header,
Watchdog_Adjust_directions direction,
Watchdog_Interval units
)
{
200b838: 9d e3 bf a0 save %sp, -96, %sp
ISR_Level level;
_ISR_Disable( level );
200b83c: 7f ff dd c8 call 2002f5c <sparc_disable_interrupts>
200b840: 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));
200b844: 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;
200b848: 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 ) ) {
200b84c: 80 a0 40 11 cmp %g1, %l1
200b850: 02 80 00 1e be 200b8c8 <_Watchdog_Adjust+0x90>
200b854: 80 a6 60 00 cmp %i1, 0
switch ( direction ) {
200b858: 02 80 00 19 be 200b8bc <_Watchdog_Adjust+0x84>
200b85c: a4 10 20 01 mov 1, %l2
200b860: 80 a6 60 01 cmp %i1, 1
200b864: 12 80 00 19 bne 200b8c8 <_Watchdog_Adjust+0x90> <== NEVER TAKEN
200b868: 01 00 00 00 nop
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
200b86c: c4 00 60 10 ld [ %g1 + 0x10 ], %g2
200b870: 10 80 00 07 b 200b88c <_Watchdog_Adjust+0x54>
200b874: b4 00 80 1a add %g2, %i2, %i2
break;
case WATCHDOG_FORWARD:
while ( units ) {
if ( units < _Watchdog_First( header )->delta_interval ) {
200b878: f2 00 60 10 ld [ %g1 + 0x10 ], %i1
200b87c: 80 a6 80 19 cmp %i2, %i1
200b880: 3a 80 00 05 bcc,a 200b894 <_Watchdog_Adjust+0x5c>
200b884: e4 20 60 10 st %l2, [ %g1 + 0x10 ]
_Watchdog_First( header )->delta_interval -= units;
200b888: b4 26 40 1a sub %i1, %i2, %i2
break;
200b88c: 10 80 00 0f b 200b8c8 <_Watchdog_Adjust+0x90>
200b890: f4 20 60 10 st %i2, [ %g1 + 0x10 ]
} else {
units -= _Watchdog_First( header )->delta_interval;
_Watchdog_First( header )->delta_interval = 1;
_ISR_Enable( level );
200b894: 7f ff dd b6 call 2002f6c <sparc_enable_interrupts>
200b898: 01 00 00 00 nop
_Watchdog_Tickle( header );
200b89c: 40 00 00 94 call 200baec <_Watchdog_Tickle>
200b8a0: 90 10 00 10 mov %l0, %o0
_ISR_Disable( level );
200b8a4: 7f ff dd ae call 2002f5c <sparc_disable_interrupts>
200b8a8: 01 00 00 00 nop
if ( _Chain_Is_empty( header ) )
200b8ac: c2 04 00 00 ld [ %l0 ], %g1
200b8b0: 80 a0 40 11 cmp %g1, %l1
200b8b4: 02 80 00 05 be 200b8c8 <_Watchdog_Adjust+0x90>
200b8b8: 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 ) {
200b8bc: 80 a6 a0 00 cmp %i2, 0
200b8c0: 32 bf ff ee bne,a 200b878 <_Watchdog_Adjust+0x40> <== ALWAYS TAKEN
200b8c4: c2 04 00 00 ld [ %l0 ], %g1
}
break;
}
}
_ISR_Enable( level );
200b8c8: 7f ff dd a9 call 2002f6c <sparc_enable_interrupts>
200b8cc: 91 e8 00 08 restore %g0, %o0, %o0
02009824 <_Watchdog_Remove>:
*/
Watchdog_States _Watchdog_Remove(
Watchdog_Control *the_watchdog
)
{
2009824: 9d e3 bf a0 save %sp, -96, %sp
ISR_Level level;
Watchdog_States previous_state;
Watchdog_Control *next_watchdog;
_ISR_Disable( level );
2009828: 7f ff e1 e7 call 2001fc4 <sparc_disable_interrupts>
200982c: a0 10 00 18 mov %i0, %l0
previous_state = the_watchdog->state;
2009830: f0 06 20 08 ld [ %i0 + 8 ], %i0
switch ( previous_state ) {
2009834: 80 a6 20 01 cmp %i0, 1
2009838: 22 80 00 1e be,a 20098b0 <_Watchdog_Remove+0x8c>
200983c: c0 24 20 08 clr [ %l0 + 8 ]
2009840: 0a 80 00 1d bcs 20098b4 <_Watchdog_Remove+0x90>
2009844: 03 00 80 73 sethi %hi(0x201cc00), %g1
2009848: 80 a6 20 03 cmp %i0, 3
200984c: 18 80 00 1a bgu 20098b4 <_Watchdog_Remove+0x90> <== NEVER TAKEN
2009850: 01 00 00 00 nop
2009854: c2 04 00 00 ld [ %l0 ], %g1
break;
case WATCHDOG_ACTIVE:
case WATCHDOG_REMOVE_IT:
the_watchdog->state = WATCHDOG_INACTIVE;
2009858: c0 24 20 08 clr [ %l0 + 8 ]
next_watchdog = _Watchdog_Next( the_watchdog );
if ( _Watchdog_Next(next_watchdog) )
200985c: c4 00 40 00 ld [ %g1 ], %g2
2009860: 80 a0 a0 00 cmp %g2, 0
2009864: 22 80 00 07 be,a 2009880 <_Watchdog_Remove+0x5c>
2009868: 03 00 80 73 sethi %hi(0x201cc00), %g1
next_watchdog->delta_interval += the_watchdog->delta_interval;
200986c: c6 00 60 10 ld [ %g1 + 0x10 ], %g3 ! 201cc10 <_Thread_BSP_context+0x78>
2009870: c4 04 20 10 ld [ %l0 + 0x10 ], %g2
2009874: 84 00 c0 02 add %g3, %g2, %g2
2009878: c4 20 60 10 st %g2, [ %g1 + 0x10 ]
if ( _Watchdog_Sync_count )
200987c: 03 00 80 73 sethi %hi(0x201cc00), %g1
2009880: c2 00 61 70 ld [ %g1 + 0x170 ], %g1 ! 201cd70 <_Watchdog_Sync_count>
2009884: 80 a0 60 00 cmp %g1, 0
2009888: 22 80 00 07 be,a 20098a4 <_Watchdog_Remove+0x80>
200988c: c2 04 00 00 ld [ %l0 ], %g1
_Watchdog_Sync_level = _ISR_Nest_level;
2009890: 03 00 80 73 sethi %hi(0x201cc00), %g1
2009894: c4 00 60 bc ld [ %g1 + 0xbc ], %g2 ! 201ccbc <_ISR_Nest_level>
2009898: 03 00 80 73 sethi %hi(0x201cc00), %g1
200989c: c4 20 60 dc st %g2, [ %g1 + 0xdc ] ! 201ccdc <_Watchdog_Sync_level>
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
20098a0: c2 04 00 00 ld [ %l0 ], %g1
previous = the_node->previous;
20098a4: c4 04 20 04 ld [ %l0 + 4 ], %g2
next->previous = previous;
previous->next = next;
20098a8: c2 20 80 00 st %g1, [ %g2 ]
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
next->previous = previous;
20098ac: c4 20 60 04 st %g2, [ %g1 + 4 ]
_Chain_Extract_unprotected( &the_watchdog->Node );
break;
}
the_watchdog->stop_time = _Watchdog_Ticks_since_boot;
20098b0: 03 00 80 73 sethi %hi(0x201cc00), %g1
20098b4: c2 00 61 74 ld [ %g1 + 0x174 ], %g1 ! 201cd74 <_Watchdog_Ticks_since_boot>
20098b8: c2 24 20 18 st %g1, [ %l0 + 0x18 ]
_ISR_Enable( level );
20098bc: 7f ff e1 c6 call 2001fd4 <sparc_enable_interrupts>
20098c0: 01 00 00 00 nop
return( previous_state );
}
20098c4: 81 c7 e0 08 ret
20098c8: 81 e8 00 00 restore
0200afc8 <_Watchdog_Report_chain>:
void _Watchdog_Report_chain(
const char *name,
Chain_Control *header
)
{
200afc8: 9d e3 bf a0 save %sp, -96, %sp
ISR_Level level;
Chain_Node *node;
_ISR_Disable( level );
200afcc: 7f ff de a2 call 2002a54 <sparc_disable_interrupts>
200afd0: a0 10 00 18 mov %i0, %l0
200afd4: b0 10 00 08 mov %o0, %i0
printk( "Watchdog Chain: %s %p\n", name, header );
200afd8: 11 00 80 82 sethi %hi(0x2020800), %o0
200afdc: 94 10 00 19 mov %i1, %o2
200afe0: 90 12 21 d0 or %o0, 0x1d0, %o0
200afe4: 7f ff e5 ee call 200479c <printk>
200afe8: 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));
200afec: 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;
200aff0: b2 06 60 04 add %i1, 4, %i1
if ( !_Chain_Is_empty( header ) ) {
200aff4: 80 a4 40 19 cmp %l1, %i1
200aff8: 02 80 00 0e be 200b030 <_Watchdog_Report_chain+0x68>
200affc: 11 00 80 82 sethi %hi(0x2020800), %o0
node != _Chain_Tail(header) ;
node = node->next )
{
Watchdog_Control *watch = (Watchdog_Control *) node;
_Watchdog_Report( NULL, watch );
200b000: 92 10 00 11 mov %l1, %o1
200b004: 40 00 00 10 call 200b044 <_Watchdog_Report>
200b008: 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 )
200b00c: 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 ;
200b010: 80 a4 40 19 cmp %l1, %i1
200b014: 12 bf ff fc bne 200b004 <_Watchdog_Report_chain+0x3c> <== NEVER TAKEN
200b018: 92 10 00 11 mov %l1, %o1
{
Watchdog_Control *watch = (Watchdog_Control *) node;
_Watchdog_Report( NULL, watch );
}
printk( "== end of %s \n", name );
200b01c: 92 10 00 10 mov %l0, %o1
200b020: 11 00 80 82 sethi %hi(0x2020800), %o0
200b024: 7f ff e5 de call 200479c <printk>
200b028: 90 12 21 e8 or %o0, 0x1e8, %o0 ! 20209e8 <C.33.3511+0x2c>
200b02c: 30 80 00 03 b,a 200b038 <_Watchdog_Report_chain+0x70>
} else {
printk( "Chain is empty\n" );
200b030: 7f ff e5 db call 200479c <printk>
200b034: 90 12 21 f8 or %o0, 0x1f8, %o0
}
_ISR_Enable( level );
200b038: 7f ff de 8b call 2002a64 <sparc_enable_interrupts>
200b03c: 81 e8 00 00 restore
020225ec <__kill>:
#endif
int __kill( pid_t pid, int sig )
{
return 0;
}
20225ec: 81 c3 e0 08 retl <== NOT EXECUTED
20225f0: 90 10 20 00 clr %o0 <== NOT EXECUTED
0201a16c <_exit>:
/*
* If the toolset uses init/fini sections, then we need to
* run the global destructors now.
*/
#if defined(__USE_INIT_FINI__)
FINI_SYMBOL();
201a16c: 9d e3 bf a0 save %sp, -96, %sp
201a170: 40 00 07 c5 call 201c084 <_fini>
201a174: 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();
201a178: 7f ff ff e1 call 201a0fc <libc_wrapup>
201a17c: 01 00 00 00 nop
rtems_shutdown_executive(status);
201a180: 40 00 00 4c call 201a2b0 <rtems_shutdown_executive>
201a184: 90 10 00 18 mov %i0, %o0
201a188: 30 80 00 00 b,a 201a188 <_exit+0x1c> <== NOT EXECUTED
02026130 <_fat_block_read>:
uint32_t start,
uint32_t offset,
uint32_t count,
void *buff
)
{
2026130: 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;
2026134: 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;
2026138: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
202613c: b0 10 20 00 clr %i0 <== NOT EXECUTED
uint32_t c = 0;
while (count > 0)
2026140: 10 80 00 18 b 20261a0 <_fat_block_read+0x70> <== NOT EXECUTED
2026144: a2 07 bf fc add %fp, -4, %l1 <== NOT EXECUTED
{
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block);
2026148: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
202614c: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
2026150: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2026154: 7f ff fe 91 call 2025b98 <fat_buf_access> <== NOT EXECUTED
2026158: b2 06 60 01 inc %i1 <== NOT EXECUTED
if (rc != RC_OK)
202615c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2026160: 22 80 00 04 be,a 2026170 <_fat_block_read+0x40> <== NOT EXECUTED
2026164: d4 14 00 00 lduh [ %l0 ], %o2 <== NOT EXECUTED
2026168: 81 c7 e0 08 ret <== NOT EXECUTED
202616c: 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);
2026170: 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));
2026174: 94 22 80 1a sub %o2, %i2, %o2 <== NOT EXECUTED
2026178: 80 a2 80 1b cmp %o2, %i3 <== NOT EXECUTED
202617c: 08 80 00 03 bleu 2026188 <_fat_block_read+0x58> <== NOT EXECUTED
2026180: 90 07 00 18 add %i4, %i0, %o0 <== NOT EXECUTED
2026184: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED
memcpy((buff + cmpltd), (block->buffer + ofs), c);
2026188: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
count -= c;
cmpltd += c;
202618c: 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);
2026190: 92 02 40 1a add %o1, %i2, %o1 <== NOT EXECUTED
count -= c;
2026194: 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);
2026198: 40 00 7f f0 call 2046158 <memcpy> <== NOT EXECUTED
202619c: 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)
20261a0: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
20261a4: 12 bf ff e9 bne 2026148 <_fat_block_read+0x18> <== NOT EXECUTED
20261a8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
cmpltd += c;
blk++;
ofs = 0;
}
return cmpltd;
}
20261ac: 81 c7 e0 08 ret <== NOT EXECUTED
20261b0: 81 e8 00 00 restore <== NOT EXECUTED
02025b84 <_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);
2025b84: d0 02 20 34 ld [ %o0 + 0x34 ], %o0 <== NOT EXECUTED
2025b88: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2025b8c: 7f ff ff a2 call 2025a14 <fat_buf_release> <== NOT EXECUTED
2025b90: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02025d94 <_fat_block_write>:
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t start,
uint32_t offset,
uint32_t count,
const void *buff)
{
2025d94: 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;
2025d98: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
2025d9c: 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;
2025da0: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
2025da4: b0 10 20 00 clr %i0 <== NOT EXECUTED
uint32_t c = 0;
while(count > 0)
2025da8: 10 80 00 22 b 2025e30 <_fat_block_write+0x9c> <== NOT EXECUTED
2025dac: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
{
c = MIN(count, (fs_info->vol.bps - ofs));
2025db0: a2 20 40 1a sub %g1, %i2, %l1 <== NOT EXECUTED
2025db4: 80 a4 40 1b cmp %l1, %i3 <== NOT EXECUTED
2025db8: 08 80 00 03 bleu 2025dc4 <_fat_block_write+0x30> <== NOT EXECUTED
2025dbc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2025dc0: a2 10 00 1b mov %i3, %l1 <== NOT EXECUTED
if (c == fs_info->vol.bps)
2025dc4: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
2025dc8: 32 80 00 07 bne,a 2025de4 <_fat_block_write+0x50> <== NOT EXECUTED
2025dcc: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_GET, &block);
2025dd0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2025dd4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2025dd8: 94 10 20 02 mov 2, %o2 <== NOT EXECUTED
2025ddc: 10 80 00 04 b 2025dec <_fat_block_write+0x58> <== NOT EXECUTED
2025de0: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
else
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block);
2025de4: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
2025de8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2025dec: 7f ff ff 6b call 2025b98 <fat_buf_access> <== NOT EXECUTED
2025df0: 01 00 00 00 nop <== NOT EXECUTED
if (rc != RC_OK)
2025df4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025df8: 02 80 00 04 be 2025e08 <_fat_block_write+0x74> <== NOT EXECUTED
2025dfc: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2025e00: 81 c7 e0 08 ret <== NOT EXECUTED
2025e04: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
return -1;
memcpy((block->buffer + ofs), (buff + cmpltd), c);
2025e08: 92 07 00 18 add %i4, %i0, %o1 <== NOT EXECUTED
2025e0c: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
2025e10: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2025e14: 90 02 00 1a add %o0, %i2, %o0 <== NOT EXECUTED
2025e18: 40 00 80 d0 call 2046158 <memcpy> <== NOT EXECUTED
2025e1c: b6 26 c0 11 sub %i3, %l1, %i3 <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
count -= c;
cmpltd +=c;
blk++;
2025e20: 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;
2025e24: b0 04 40 18 add %l1, %i0, %i0 <== NOT EXECUTED
2025e28: e6 2c 20 84 stb %l3, [ %l0 + 0x84 ] <== NOT EXECUTED
blk++;
2025e2c: 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)
2025e30: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2025e34: 32 bf ff df bne,a 2025db0 <_fat_block_write+0x1c> <== NOT EXECUTED
2025e38: c2 14 00 00 lduh [ %l0 ], %g1 <== NOT EXECUTED
cmpltd +=c;
blk++;
ofs = 0;
}
return cmpltd;
}
2025e3c: 81 c7 e0 08 ret <== NOT EXECUTED
2025e40: 81 e8 00 00 restore <== NOT EXECUTED
0203f704 <_fcntl_r>:
int fd,
int cmd,
int arg
)
{
return fcntl( fd, cmd, arg );
203f704: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED
203f708: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED
203f70c: 94 10 00 0b mov %o3, %o2 <== NOT EXECUTED
203f710: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
203f714: 7f ff ff 7f call 203f510 <fcntl> <== NOT EXECUTED
203f718: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
020225c0 <_getpid_r>:
pid_t _getpid_r(
struct _reent *ptr __attribute__((unused))
)
{
return getpid();
}
20225c0: 81 c3 e0 08 retl <== NOT EXECUTED
20225c4: 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
020225e4 <_kill_r>:
#include <reent.h>
int _kill_r( struct _reent *ptr, pid_t pid, int sig )
{
return 0;
}
20225e4: 81 c3 e0 08 retl <== NOT EXECUTED
20225e8: 90 10 20 00 clr %o0 <== NOT EXECUTED
0202989c <_link_r>:
struct _reent *ptr __attribute__((unused)),
const char *existing,
const char *new
)
{
return link( existing, new );
202989c: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED
20298a0: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED
20298a4: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
20298a8: 7f ff ff 74 call 2029678 <link> <== NOT EXECUTED
20298ac: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02029ae4 <_lstat_r>:
struct _reent *ptr __attribute__((unused)),
const char *path,
struct stat *buf
)
{
return _STAT_NAME( path, buf );
2029ae4: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED
2029ae8: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED
2029aec: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2029af0: 7f ff ff c0 call 20299f0 <lstat> <== NOT EXECUTED
2029af4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
0201a27c <_realloc_r>:
struct _reent *ignored __attribute__((unused)),
void *ptr,
size_t size
)
{
return realloc( ptr, size );
201a27c: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED
201a280: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED
201a284: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
201a288: 40 00 00 17 call 201a2e4 <realloc> <== NOT EXECUTED
201a28c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
0205c86c <_rename_r>:
int _rename_r(
struct _reent *ptr __attribute__((unused)),
const char *old,
const char *new
)
{
205c86c: 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 );
205c870: 7f fe ae 13 call 20080bc <rtems_filesystem_dirname>
205c874: 90 10 00 19 mov %i1, %o0
if ( old_parent_pathlen == 0 )
205c878: a0 92 20 00 orcc %o0, 0, %l0
205c87c: 12 80 00 09 bne 205c8a0 <_rename_r+0x34>
205c880: 96 07 bf d0 add %fp, -48, %o3
rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );
205c884: 94 10 00 0b mov %o3, %o2
205c888: 90 10 00 19 mov %i1, %o0
205c88c: 92 07 bf fc add %fp, -4, %o1
205c890: 7f fe b4 f8 call 2009c70 <rtems_filesystem_get_start_loc>
205c894: a2 10 20 00 clr %l1
/*
* Start from the parent to find the node that should be under it.
*/
old_loc = old_parent_loc;
205c898: 10 80 00 0b b 205c8c4 <_rename_r+0x58>
205c89c: 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,
205c8a0: 90 10 00 19 mov %i1, %o0
205c8a4: 92 10 00 10 mov %l0, %o1
205c8a8: 94 10 20 02 mov 2, %o2
205c8ac: 7f fe ae 50 call 20081ec <rtems_filesystem_evaluate_path>
205c8b0: 98 10 20 00 clr %o4
RTEMS_LIBIO_PERMS_WRITE,
&old_parent_loc,
false );
if ( result != 0 )
205c8b4: 80 a2 20 00 cmp %o0, 0
205c8b8: 12 80 00 de bne 205cc30 <_rename_r+0x3c4> <== NEVER TAKEN
205c8bc: 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;
205c8c0: 94 10 20 14 mov 0x14, %o2
205c8c4: a6 07 bf e4 add %fp, -28, %l3
205c8c8: a4 07 bf d0 add %fp, -48, %l2
205c8cc: 90 10 00 13 mov %l3, %o0
205c8d0: 7f ff a6 22 call 2046158 <memcpy>
205c8d4: 92 10 00 12 mov %l2, %o1
name = old + old_parent_pathlen;
205c8d8: b2 06 40 10 add %i1, %l0, %i1
205c8dc: f2 27 bf f8 st %i1, [ %fp + -8 ]
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
205c8e0: 7f ff b4 7a call 2049ac8 <strlen>
205c8e4: 90 10 00 19 mov %i1, %o0
205c8e8: 92 10 00 08 mov %o0, %o1
205c8ec: 7f fe ad e2 call 2008074 <rtems_filesystem_prefix_separators>
205c8f0: 90 10 00 19 mov %i1, %o0
205c8f4: b2 06 40 08 add %i1, %o0, %i1
205c8f8: f2 27 bf f8 st %i1, [ %fp + -8 ]
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
205c8fc: 7f ff b4 73 call 2049ac8 <strlen>
205c900: 90 10 00 19 mov %i1, %o0
205c904: 94 10 20 00 clr %o2
205c908: 92 10 00 08 mov %o0, %o1
205c90c: 96 10 00 13 mov %l3, %o3
205c910: 90 10 00 19 mov %i1, %o0
205c914: 7f fe ad fa call 20080fc <rtems_filesystem_evaluate_relative_path>
205c918: 98 10 20 00 clr %o4
0, &old_loc, false );
if ( result != 0 ) {
205c91c: 80 a2 20 00 cmp %o0, 0
205c920: 22 80 00 0e be,a 205c958 <_rename_r+0xec>
205c924: a0 07 bf bc add %fp, -68, %l0
if ( free_old_parentloc )
205c928: 80 8c 60 ff btst 0xff, %l1
205c92c: 02 80 00 49 be 205ca50 <_rename_r+0x1e4> <== NEVER TAKEN
205c930: b0 10 3f ff mov -1, %i0
rtems_filesystem_freenode( &old_parent_loc );
205c934: c2 07 bf dc ld [ %fp + -36 ], %g1
205c938: 80 a0 60 00 cmp %g1, 0
205c93c: 02 80 00 be be 205cc34 <_rename_r+0x3c8> <== NEVER TAKEN
205c940: 01 00 00 00 nop
205c944: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
205c948: 80 a0 60 00 cmp %g1, 0
205c94c: 02 80 00 41 be 205ca50 <_rename_r+0x1e4> <== NEVER TAKEN
205c950: 90 10 00 12 mov %l2, %o0
205c954: 30 80 00 3d b,a 205ca48 <_rename_r+0x1dc>
/*
* Get the parent of the new node we are renaming to.
*/
rtems_filesystem_get_start_loc( new, &i, &new_parent_loc );
205c958: 90 10 00 1a mov %i2, %o0
205c95c: 92 07 bf fc add %fp, -4, %o1
205c960: 7f fe b4 c4 call 2009c70 <rtems_filesystem_get_start_loc>
205c964: 94 10 00 10 mov %l0, %o2
if ( !new_parent_loc.ops->evalformake_h ) {
205c968: c2 07 bf c8 ld [ %fp + -56 ], %g1
205c96c: c2 00 60 04 ld [ %g1 + 4 ], %g1
205c970: 80 a0 60 00 cmp %g1, 0
205c974: 12 80 00 0f bne 205c9b0 <_rename_r+0x144>
205c978: d0 07 bf fc ld [ %fp + -4 ], %o0
if ( free_old_parentloc )
205c97c: 80 8c 60 ff btst 0xff, %l1
205c980: 02 80 00 76 be 205cb58 <_rename_r+0x2ec> <== NEVER TAKEN
205c984: c2 07 bf f0 ld [ %fp + -16 ], %g1
rtems_filesystem_freenode( &old_parent_loc );
205c988: c2 07 bf dc ld [ %fp + -36 ], %g1
205c98c: 80 a0 60 00 cmp %g1, 0
205c990: 22 80 00 72 be,a 205cb58 <_rename_r+0x2ec> <== NEVER TAKEN
205c994: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
205c998: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
205c99c: 80 a0 60 00 cmp %g1, 0
205c9a0: 12 80 00 6b bne 205cb4c <_rename_r+0x2e0> <== ALWAYS TAKEN
205c9a4: 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 );
205c9a8: 10 80 00 6c b 205cb58 <_rename_r+0x2ec> <== NOT EXECUTED
205c9ac: 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 );
205c9b0: 92 10 00 10 mov %l0, %o1
205c9b4: 90 06 80 08 add %i2, %o0, %o0
205c9b8: 9f c0 40 00 call %g1
205c9bc: 94 07 bf f8 add %fp, -8, %o2
if ( result != 0 ) {
205c9c0: 80 a2 20 00 cmp %o0, 0
205c9c4: 02 80 00 25 be 205ca58 <_rename_r+0x1ec>
205c9c8: c2 07 bf cc ld [ %fp + -52 ], %g1
rtems_filesystem_freenode( &new_parent_loc );
205c9cc: c2 07 bf c8 ld [ %fp + -56 ], %g1
205c9d0: 80 a0 60 00 cmp %g1, 0
205c9d4: 02 80 00 09 be 205c9f8 <_rename_r+0x18c> <== NEVER TAKEN
205c9d8: 80 8c 60 ff btst 0xff, %l1
205c9dc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
205c9e0: 80 a0 60 00 cmp %g1, 0
205c9e4: 02 80 00 05 be 205c9f8 <_rename_r+0x18c> <== NEVER TAKEN
205c9e8: 80 8c 60 ff btst 0xff, %l1
205c9ec: 9f c0 40 00 call %g1
205c9f0: 90 10 00 10 mov %l0, %o0
if ( free_old_parentloc )
205c9f4: 80 8c 60 ff btst 0xff, %l1
205c9f8: 02 80 00 0d be 205ca2c <_rename_r+0x1c0> <== NEVER TAKEN
205c9fc: c2 07 bf f0 ld [ %fp + -16 ], %g1
rtems_filesystem_freenode( &old_parent_loc );
205ca00: c2 07 bf dc ld [ %fp + -36 ], %g1
205ca04: 80 a0 60 00 cmp %g1, 0
205ca08: 22 80 00 09 be,a 205ca2c <_rename_r+0x1c0> <== NEVER TAKEN
205ca0c: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
205ca10: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
205ca14: 80 a0 60 00 cmp %g1, 0
205ca18: 22 80 00 05 be,a 205ca2c <_rename_r+0x1c0> <== NEVER TAKEN
205ca1c: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
205ca20: 9f c0 40 00 call %g1
205ca24: 90 07 bf d0 add %fp, -48, %o0
rtems_filesystem_freenode( &old_loc );
205ca28: c2 07 bf f0 ld [ %fp + -16 ], %g1
205ca2c: 80 a0 60 00 cmp %g1, 0
205ca30: 02 80 00 08 be 205ca50 <_rename_r+0x1e4> <== NEVER TAKEN
205ca34: b0 10 3f ff mov -1, %i0
205ca38: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
205ca3c: 80 a0 60 00 cmp %g1, 0
205ca40: 02 80 00 04 be 205ca50 <_rename_r+0x1e4> <== NEVER TAKEN
205ca44: 90 07 bf e4 add %fp, -28, %o0
205ca48: 9f c0 40 00 call %g1
205ca4c: b0 10 3f ff mov -1, %i0
205ca50: 81 c7 e0 08 ret
205ca54: 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 ) {
205ca58: c6 07 bf e0 ld [ %fp + -32 ], %g3
205ca5c: 80 a0 c0 01 cmp %g3, %g1
205ca60: 02 80 00 26 be 205caf8 <_rename_r+0x28c>
205ca64: c4 07 bf c8 ld [ %fp + -56 ], %g2
rtems_filesystem_freenode( &new_parent_loc );
205ca68: 80 a0 a0 00 cmp %g2, 0
205ca6c: 02 80 00 09 be 205ca90 <_rename_r+0x224> <== NEVER TAKEN
205ca70: 80 8c 60 ff btst 0xff, %l1
205ca74: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1
205ca78: 80 a0 60 00 cmp %g1, 0
205ca7c: 02 80 00 05 be 205ca90 <_rename_r+0x224> <== NEVER TAKEN
205ca80: 80 8c 60 ff btst 0xff, %l1
205ca84: 9f c0 40 00 call %g1
205ca88: 90 10 00 10 mov %l0, %o0
if ( free_old_parentloc )
205ca8c: 80 8c 60 ff btst 0xff, %l1
205ca90: 02 80 00 0d be 205cac4 <_rename_r+0x258>
205ca94: c2 07 bf f0 ld [ %fp + -16 ], %g1
rtems_filesystem_freenode( &old_parent_loc );
205ca98: c2 07 bf dc ld [ %fp + -36 ], %g1
205ca9c: 80 a0 60 00 cmp %g1, 0
205caa0: 22 80 00 09 be,a 205cac4 <_rename_r+0x258> <== NEVER TAKEN
205caa4: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
205caa8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
205caac: 80 a0 60 00 cmp %g1, 0
205cab0: 22 80 00 05 be,a 205cac4 <_rename_r+0x258> <== NEVER TAKEN
205cab4: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
205cab8: 9f c0 40 00 call %g1
205cabc: 90 07 bf d0 add %fp, -48, %o0
rtems_filesystem_freenode( &old_loc );
205cac0: c2 07 bf f0 ld [ %fp + -16 ], %g1
205cac4: 80 a0 60 00 cmp %g1, 0
205cac8: 02 80 00 08 be 205cae8 <_rename_r+0x27c> <== NEVER TAKEN
205cacc: 01 00 00 00 nop
205cad0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
205cad4: 80 a0 60 00 cmp %g1, 0
205cad8: 02 80 00 04 be 205cae8 <_rename_r+0x27c> <== NEVER TAKEN
205cadc: 01 00 00 00 nop
205cae0: 9f c0 40 00 call %g1
205cae4: 90 07 bf e4 add %fp, -28, %o0
rtems_set_errno_and_return_minus_one( EXDEV );
205cae8: 7f ff 98 50 call 2042c28 <__errno>
205caec: b0 10 3f ff mov -1, %i0
205caf0: 10 80 00 26 b 205cb88 <_rename_r+0x31c>
205caf4: 82 10 20 12 mov 0x12, %g1
}
if ( !new_parent_loc.ops->rename_h ) {
205caf8: c2 00 a0 40 ld [ %g2 + 0x40 ], %g1
205cafc: 80 a0 60 00 cmp %g1, 0
205cb00: 12 80 00 25 bne 205cb94 <_rename_r+0x328>
205cb04: d6 07 bf f8 ld [ %fp + -8 ], %o3
rtems_filesystem_freenode( &new_parent_loc );
205cb08: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1
205cb0c: 80 a0 60 00 cmp %g1, 0
205cb10: 02 80 00 05 be 205cb24 <_rename_r+0x2b8> <== NEVER TAKEN
205cb14: 80 8c 60 ff btst 0xff, %l1
205cb18: 9f c0 40 00 call %g1
205cb1c: 90 10 00 10 mov %l0, %o0
if ( free_old_parentloc )
205cb20: 80 8c 60 ff btst 0xff, %l1
205cb24: 02 80 00 0d be 205cb58 <_rename_r+0x2ec> <== NEVER TAKEN
205cb28: c2 07 bf f0 ld [ %fp + -16 ], %g1
rtems_filesystem_freenode( &old_parent_loc );
205cb2c: c2 07 bf dc ld [ %fp + -36 ], %g1
205cb30: 80 a0 60 00 cmp %g1, 0
205cb34: 22 80 00 09 be,a 205cb58 <_rename_r+0x2ec> <== NEVER TAKEN
205cb38: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
205cb3c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
205cb40: 80 a0 60 00 cmp %g1, 0
205cb44: 02 80 00 04 be 205cb54 <_rename_r+0x2e8> <== NEVER TAKEN
205cb48: 90 07 bf d0 add %fp, -48, %o0
205cb4c: 9f c0 40 00 call %g1
205cb50: 01 00 00 00 nop
rtems_filesystem_freenode( &old_loc );
205cb54: c2 07 bf f0 ld [ %fp + -16 ], %g1
205cb58: 80 a0 60 00 cmp %g1, 0
205cb5c: 02 80 00 08 be 205cb7c <_rename_r+0x310> <== NEVER TAKEN
205cb60: 01 00 00 00 nop
205cb64: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
205cb68: 80 a0 60 00 cmp %g1, 0
205cb6c: 02 80 00 04 be 205cb7c <_rename_r+0x310> <== NEVER TAKEN
205cb70: 01 00 00 00 nop
205cb74: 9f c0 40 00 call %g1
205cb78: 90 07 bf e4 add %fp, -28, %o0
rtems_set_errno_and_return_minus_one( ENOTSUP );
205cb7c: 7f ff 98 2b call 2042c28 <__errno>
205cb80: b0 10 3f ff mov -1, %i0
205cb84: 82 10 20 86 mov 0x86, %g1
205cb88: c2 22 00 00 st %g1, [ %o0 ]
205cb8c: 81 c7 e0 08 ret
205cb90: 81 e8 00 00 restore
}
result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name );
205cb94: 90 10 00 12 mov %l2, %o0
205cb98: 92 10 00 13 mov %l3, %o1
205cb9c: 9f c0 40 00 call %g1
205cba0: 94 10 00 10 mov %l0, %o2
rtems_filesystem_freenode( &new_parent_loc );
205cba4: c2 07 bf c8 ld [ %fp + -56 ], %g1
205cba8: 80 a0 60 00 cmp %g1, 0
205cbac: 02 80 00 08 be 205cbcc <_rename_r+0x360> <== NEVER TAKEN
205cbb0: b0 10 00 08 mov %o0, %i0
205cbb4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
205cbb8: 80 a0 60 00 cmp %g1, 0
205cbbc: 02 80 00 05 be 205cbd0 <_rename_r+0x364> <== NEVER TAKEN
205cbc0: 80 8c 60 ff btst 0xff, %l1
205cbc4: 9f c0 40 00 call %g1
205cbc8: 90 10 00 10 mov %l0, %o0
if ( free_old_parentloc )
205cbcc: 80 8c 60 ff btst 0xff, %l1
205cbd0: 02 80 00 0d be 205cc04 <_rename_r+0x398>
205cbd4: c2 07 bf f0 ld [ %fp + -16 ], %g1
rtems_filesystem_freenode( &old_parent_loc );
205cbd8: c2 07 bf dc ld [ %fp + -36 ], %g1
205cbdc: 80 a0 60 00 cmp %g1, 0
205cbe0: 22 80 00 09 be,a 205cc04 <_rename_r+0x398> <== NEVER TAKEN
205cbe4: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
205cbe8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
205cbec: 80 a0 60 00 cmp %g1, 0
205cbf0: 22 80 00 05 be,a 205cc04 <_rename_r+0x398> <== NEVER TAKEN
205cbf4: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
205cbf8: 9f c0 40 00 call %g1
205cbfc: 90 07 bf d0 add %fp, -48, %o0
rtems_filesystem_freenode( &old_loc );
205cc00: c2 07 bf f0 ld [ %fp + -16 ], %g1
205cc04: 80 a0 60 00 cmp %g1, 0
205cc08: 02 80 00 0b be 205cc34 <_rename_r+0x3c8> <== NEVER TAKEN
205cc0c: 01 00 00 00 nop
205cc10: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
205cc14: 80 a0 60 00 cmp %g1, 0
205cc18: 02 80 00 07 be 205cc34 <_rename_r+0x3c8> <== NEVER TAKEN
205cc1c: 01 00 00 00 nop
205cc20: 9f c0 40 00 call %g1
205cc24: 90 07 bf e4 add %fp, -28, %o0
205cc28: 81 c7 e0 08 ret
205cc2c: 81 e8 00 00 restore
205cc30: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return result;
}
205cc34: 81 c7 e0 08 ret <== NOT EXECUTED
205cc38: 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
0200ef58 <_unlink_r>:
int _unlink_r(
struct _reent *ptr __attribute__((unused)),
const char *path
)
{
return unlink( path );
200ef58: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED
200ef5c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
200ef60: 7f ff ff 66 call 200ecf8 <unlink> <== NOT EXECUTED
200ef64: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
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 72 sethi %hi(0x201c800), %g1
20028bc: 82 10 62 60 or %g1, 0x260, %g1 ! 201ca60 <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 58 2c call 2018980 <.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 35 87 call 200ff08 <memset>
20028f0: 92 10 20 00 clr %o1
MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */
20028f4: 03 00 80 72 sethi %hi(0x201c800), %g1
20028f8: 82 10 62 60 or %g1, 0x260, %g1 ! 201ca60 <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
020285c4 <chdir>:
#include <rtems/seterr.h>
int chdir(
const char *pathname
)
{
20285c4: 9d e3 bf 88 save %sp, -120, %sp
rtems_filesystem_location_info_t loc;
int result;
if ( !pathname )
20285c8: 80 a6 20 00 cmp %i0, 0
20285cc: 12 80 00 06 bne 20285e4 <chdir+0x20>
20285d0: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EFAULT );
20285d4: 40 00 69 95 call 2042c28 <__errno>
20285d8: 01 00 00 00 nop
20285dc: 10 80 00 2f b 2028698 <chdir+0xd4>
20285e0: 82 10 20 0e mov 0xe, %g1 ! e <PROM_START+0xe>
/*
* Get the node where we wish to go.
*/
result = rtems_filesystem_evaluate_path(
20285e4: 40 00 85 39 call 2049ac8 <strlen>
20285e8: 90 10 00 18 mov %i0, %o0
20285ec: a0 07 bf ec add %fp, -20, %l0
20285f0: 92 10 00 08 mov %o0, %o1
20285f4: 94 10 20 01 mov 1, %o2
20285f8: 90 10 00 18 mov %i0, %o0
20285fc: 96 10 00 10 mov %l0, %o3
2028600: 98 10 20 01 mov 1, %o4
2028604: 7f ff 7e fa call 20081ec <rtems_filesystem_evaluate_path>
2028608: b0 10 3f ff mov -1, %i0
pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true );
if ( result != 0 )
202860c: 80 a2 20 00 cmp %o0, 0
2028610: 12 80 00 37 bne 20286ec <chdir+0x128>
2028614: c4 07 bf f8 ld [ %fp + -8 ], %g2
return -1;
/*
* Verify you can change directory into this node.
*/
if ( !loc.ops->node_type_h ) {
2028618: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1
202861c: 80 a0 60 00 cmp %g1, 0
2028620: 12 80 00 0c bne 2028650 <chdir+0x8c> <== ALWAYS TAKEN
2028624: 01 00 00 00 nop
rtems_filesystem_freenode( &loc );
2028628: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
202862c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2028630: 02 80 00 04 be 2028640 <chdir+0x7c> <== NOT EXECUTED
2028634: 01 00 00 00 nop <== NOT EXECUTED
2028638: 9f c0 40 00 call %g1 <== NOT EXECUTED
202863c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
2028640: 40 00 69 7a call 2042c28 <__errno> <== NOT EXECUTED
2028644: 01 00 00 00 nop <== NOT EXECUTED
2028648: 10 80 00 14 b 2028698 <chdir+0xd4> <== NOT EXECUTED
202864c: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
}
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
2028650: 9f c0 40 00 call %g1
2028654: 90 10 00 10 mov %l0, %o0
2028658: 80 a2 20 01 cmp %o0, 1
202865c: 02 80 00 12 be 20286a4 <chdir+0xe0>
2028660: 03 00 81 a5 sethi %hi(0x2069400), %g1
rtems_filesystem_freenode( &loc );
2028664: c2 07 bf f8 ld [ %fp + -8 ], %g1
2028668: 80 a0 60 00 cmp %g1, 0
202866c: 02 80 00 08 be 202868c <chdir+0xc8> <== NEVER TAKEN
2028670: 01 00 00 00 nop
2028674: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2028678: 80 a0 60 00 cmp %g1, 0
202867c: 02 80 00 04 be 202868c <chdir+0xc8> <== NEVER TAKEN
2028680: 01 00 00 00 nop
2028684: 9f c0 40 00 call %g1
2028688: 90 10 00 10 mov %l0, %o0
rtems_set_errno_and_return_minus_one( ENOTDIR );
202868c: 40 00 69 67 call 2042c28 <__errno>
2028690: 01 00 00 00 nop
2028694: 82 10 20 14 mov 0x14, %g1 ! 14 <PROM_START+0x14>
2028698: c2 22 00 00 st %g1, [ %o0 ]
202869c: 81 c7 e0 08 ret
20286a0: 91 e8 3f ff restore %g0, -1, %o0
}
rtems_filesystem_freenode( &rtems_filesystem_current );
20286a4: d0 00 60 34 ld [ %g1 + 0x34 ], %o0
20286a8: c2 02 20 10 ld [ %o0 + 0x10 ], %g1
20286ac: 80 a0 60 00 cmp %g1, 0
20286b0: 22 80 00 09 be,a 20286d4 <chdir+0x110> <== NEVER TAKEN
20286b4: 03 00 81 a5 sethi %hi(0x2069400), %g1 <== NOT EXECUTED
20286b8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 206941c <mount_chain+0x8>
20286bc: 80 a0 60 00 cmp %g1, 0
20286c0: 22 80 00 05 be,a 20286d4 <chdir+0x110> <== NEVER TAKEN
20286c4: 03 00 81 a5 sethi %hi(0x2069400), %g1 <== NOT EXECUTED
20286c8: 9f c0 40 00 call %g1
20286cc: 90 02 20 04 add %o0, 4, %o0
rtems_filesystem_current = loc;
20286d0: 03 00 81 a5 sethi %hi(0x2069400), %g1
20286d4: d0 00 60 34 ld [ %g1 + 0x34 ], %o0 ! 2069434 <rtems_current_user_env>
20286d8: 92 07 bf ec add %fp, -20, %o1
20286dc: 90 02 20 04 add %o0, 4, %o0
20286e0: 94 10 20 14 mov 0x14, %o2
20286e4: 40 00 76 9d call 2046158 <memcpy>
20286e8: b0 10 20 00 clr %i0
return 0;
}
20286ec: 81 c7 e0 08 ret
20286f0: 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 07 91 call 2049ac8 <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 eb cf call 2042c28 <__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 eb be call 2042c28 <__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
020286f4 <chown>:
int chown(
const char *path,
uid_t owner,
gid_t group
)
{
20286f4: 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 ) )
20286f8: 40 00 84 f4 call 2049ac8 <strlen>
20286fc: 90 10 00 18 mov %i0, %o0
2028700: a0 07 bf ec add %fp, -20, %l0
2028704: 92 10 00 08 mov %o0, %o1
2028708: 94 10 20 00 clr %o2
202870c: 90 10 00 18 mov %i0, %o0
2028710: 96 10 00 10 mov %l0, %o3
2028714: 98 10 20 01 mov 1, %o4
2028718: 7f ff 7e b5 call 20081ec <rtems_filesystem_evaluate_path>
202871c: b0 10 3f ff mov -1, %i0
2028720: 80 a2 20 00 cmp %o0, 0
2028724: 12 80 00 10 bne 2028764 <chown+0x70>
2028728: c4 07 bf f8 ld [ %fp + -8 ], %g2
return -1;
if ( !loc.ops->chown_h ) {
202872c: c2 00 a0 18 ld [ %g2 + 0x18 ], %g1
2028730: 80 a0 60 00 cmp %g1, 0
2028734: 12 80 00 0e bne 202876c <chown+0x78> <== ALWAYS TAKEN
2028738: 93 2e 60 10 sll %i1, 0x10, %o1
rtems_filesystem_freenode( &loc );
202873c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
2028740: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2028744: 02 80 00 04 be 2028754 <chown+0x60> <== NOT EXECUTED
2028748: 01 00 00 00 nop <== NOT EXECUTED
202874c: 9f c0 40 00 call %g1 <== NOT EXECUTED
2028750: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
2028754: 40 00 69 35 call 2042c28 <__errno> <== NOT EXECUTED
2028758: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202875c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
2028760: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2028764: 81 c7 e0 08 ret
2028768: 81 e8 00 00 restore
}
result = (*loc.ops->chown_h)( &loc, owner, group );
202876c: 95 2e a0 10 sll %i2, 0x10, %o2
2028770: 93 32 60 10 srl %o1, 0x10, %o1
2028774: 95 32 a0 10 srl %o2, 0x10, %o2
2028778: 9f c0 40 00 call %g1
202877c: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &loc );
2028780: c2 07 bf f8 ld [ %fp + -8 ], %g1
2028784: 80 a0 60 00 cmp %g1, 0
2028788: 02 bf ff f7 be 2028764 <chown+0x70> <== NEVER TAKEN
202878c: b0 10 00 08 mov %o0, %i0
2028790: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2028794: 80 a0 60 00 cmp %g1, 0
2028798: 02 80 00 04 be 20287a8 <chown+0xb4> <== NEVER TAKEN
202879c: 01 00 00 00 nop
20287a0: 9f c0 40 00 call %g1
20287a4: 90 10 00 10 mov %l0, %o0
return result;
}
20287a8: 81 c7 e0 08 ret
20287ac: 81 e8 00 00 restore
020287b0 <chroot>:
#include <rtems/seterr.h>
int chroot(
const char *pathname
)
{
20287b0: 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) {
20287b4: 23 00 81 a5 sethi %hi(0x2069400), %l1
20287b8: e0 04 60 34 ld [ %l1 + 0x34 ], %l0 ! 2069434 <rtems_current_user_env>
20287bc: 03 00 81 b4 sethi %hi(0x206d000), %g1
20287c0: 82 10 62 3c or %g1, 0x23c, %g1 ! 206d23c <rtems_global_user_env>
20287c4: 80 a4 00 01 cmp %l0, %g1
20287c8: 12 80 00 0e bne 2028800 <chroot+0x50> <== NEVER TAKEN
20287cc: 01 00 00 00 nop
rtems_libio_set_private_env(); /* try to set a new private env*/
20287d0: 40 00 06 1e call 202a048 <rtems_libio_set_private_env>
20287d4: 01 00 00 00 nop
if (rtems_current_user_env == &rtems_global_user_env) /* not ok */
20287d8: c2 04 60 34 ld [ %l1 + 0x34 ], %g1
20287dc: 80 a0 40 10 cmp %g1, %l0
20287e0: 12 80 00 08 bne 2028800 <chroot+0x50> <== ALWAYS TAKEN
20287e4: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOTSUP );
20287e8: 40 00 69 10 call 2042c28 <__errno> <== NOT EXECUTED
20287ec: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
20287f0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
20287f4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20287f8: 81 c7 e0 08 ret <== NOT EXECUTED
20287fc: 81 e8 00 00 restore <== NOT EXECUTED
}
result = chdir(pathname);
2028800: 7f ff ff 71 call 20285c4 <chdir>
2028804: 90 10 00 18 mov %i0, %o0
if (result) {
2028808: 80 a2 20 00 cmp %o0, 0
202880c: 12 80 00 0b bne 2028838 <chroot+0x88> <== NEVER TAKEN
2028810: 11 00 81 8d sethi %hi(0x2063400), %o0
rtems_set_errno_and_return_minus_one( errno );
}
/* clone the new root location */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
2028814: 92 10 20 01 mov 1, %o1
2028818: 90 12 22 10 or %o0, 0x210, %o0
202881c: 94 10 20 00 clr %o2
2028820: 96 07 bf ec add %fp, -20, %o3
2028824: 7f ff 7e 72 call 20081ec <rtems_filesystem_evaluate_path>
2028828: 98 10 20 00 clr %o4
202882c: 80 a2 20 00 cmp %o0, 0
2028830: 02 80 00 0a be 2028858 <chroot+0xa8> <== ALWAYS TAKEN
2028834: 03 00 81 a5 sethi %hi(0x2069400), %g1
/* our cwd has changed, though - but there is no easy way of return :-( */
rtems_set_errno_and_return_minus_one( errno );
2028838: 40 00 68 fc call 2042c28 <__errno> <== NOT EXECUTED
202883c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2028840: 40 00 68 fa call 2042c28 <__errno> <== NOT EXECUTED
2028844: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
2028848: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED
202884c: c2 24 00 00 st %g1, [ %l0 ] <== NOT EXECUTED
2028850: 81 c7 e0 08 ret <== NOT EXECUTED
2028854: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_filesystem_freenode(&rtems_filesystem_root);
2028858: d0 00 60 34 ld [ %g1 + 0x34 ], %o0
202885c: c2 02 20 24 ld [ %o0 + 0x24 ], %g1
2028860: 80 a0 60 00 cmp %g1, 0
2028864: 22 80 00 09 be,a 2028888 <chroot+0xd8> <== NEVER TAKEN
2028868: 03 00 81 a5 sethi %hi(0x2069400), %g1 <== NOT EXECUTED
202886c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 206941c <mount_chain+0x8>
2028870: 80 a0 60 00 cmp %g1, 0
2028874: 22 80 00 05 be,a 2028888 <chroot+0xd8> <== NEVER TAKEN
2028878: 03 00 81 a5 sethi %hi(0x2069400), %g1 <== NOT EXECUTED
202887c: 9f c0 40 00 call %g1
2028880: 90 02 20 18 add %o0, 0x18, %o0
rtems_filesystem_root = loc;
2028884: 03 00 81 a5 sethi %hi(0x2069400), %g1
2028888: d0 00 60 34 ld [ %g1 + 0x34 ], %o0 ! 2069434 <rtems_current_user_env>
202888c: 92 07 bf ec add %fp, -20, %o1
2028890: 94 10 20 14 mov 0x14, %o2
2028894: 90 02 20 18 add %o0, 0x18, %o0
2028898: 40 00 76 30 call 2046158 <memcpy>
202889c: b0 10 20 00 clr %i0
return 0;
}
20288a0: 81 c7 e0 08 ret
20288a4: 81 e8 00 00 restore
0200bb9c <close>:
#include <rtems/libio_.h>
int close(
int fd
)
{
200bb9c: 9d e3 bf a0 save %sp, -96, %sp
rtems_libio_t *iop;
rtems_status_code rc;
rtems_libio_check_fd(fd);
200bba0: 03 00 80 70 sethi %hi(0x201c000), %g1
200bba4: c2 00 60 b4 ld [ %g1 + 0xb4 ], %g1 ! 201c0b4 <rtems_libio_number_iops>
200bba8: 80 a6 00 01 cmp %i0, %g1
200bbac: 1a 80 00 0b bcc 200bbd8 <close+0x3c>
200bbb0: 03 00 80 72 sethi %hi(0x201c800), %g1
iop = rtems_libio_iop(fd);
200bbb4: e0 00 62 48 ld [ %g1 + 0x248 ], %l0 ! 201ca48 <rtems_libio_iops>
200bbb8: 83 2e 20 06 sll %i0, 6, %g1
200bbbc: b1 2e 20 03 sll %i0, 3, %i0
200bbc0: b0 06 00 01 add %i0, %g1, %i0
200bbc4: a0 04 00 18 add %l0, %i0, %l0
rtems_libio_check_is_open(iop);
200bbc8: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
200bbcc: 80 88 61 00 btst 0x100, %g1
200bbd0: 32 80 00 08 bne,a 200bbf0 <close+0x54>
200bbd4: c2 04 20 40 ld [ %l0 + 0x40 ], %g1
200bbd8: 40 00 0e 51 call 200f51c <__errno>
200bbdc: b0 10 3f ff mov -1, %i0
200bbe0: 82 10 20 09 mov 9, %g1
200bbe4: c2 22 00 00 st %g1, [ %o0 ]
200bbe8: 81 c7 e0 08 ret
200bbec: 81 e8 00 00 restore
rc = RTEMS_SUCCESSFUL;
if ( iop->handlers->close_h )
200bbf0: c2 00 60 04 ld [ %g1 + 4 ], %g1
200bbf4: 80 a0 60 00 cmp %g1, 0
200bbf8: 02 80 00 05 be 200bc0c <close+0x70> <== NEVER TAKEN
200bbfc: b0 10 20 00 clr %i0
rc = (*iop->handlers->close_h)( iop );
200bc00: 9f c0 40 00 call %g1
200bc04: 90 10 00 10 mov %l0, %o0
200bc08: b0 10 00 08 mov %o0, %i0
rtems_filesystem_freenode( &iop->pathinfo );
200bc0c: c2 04 20 28 ld [ %l0 + 0x28 ], %g1
200bc10: 80 a0 60 00 cmp %g1, 0
200bc14: 02 80 00 08 be 200bc34 <close+0x98> <== NEVER TAKEN
200bc18: 01 00 00 00 nop
200bc1c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
200bc20: 80 a0 60 00 cmp %g1, 0
200bc24: 02 80 00 04 be 200bc34 <close+0x98>
200bc28: 01 00 00 00 nop
200bc2c: 9f c0 40 00 call %g1
200bc30: 90 04 20 1c add %l0, 0x1c, %o0
rtems_libio_free( iop );
200bc34: 40 00 00 99 call 200be98 <rtems_libio_free>
200bc38: 90 10 00 10 mov %l0, %o0
return rc;
}
200bc3c: 81 c7 e0 08 ret
200bc40: 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 81 sethi %hi(0x2020400), %g1
2002e34: e2 00 60 d0 ld [ %g1 + 0xd0 ], %l1 ! 20204d0 <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 81 sethi %hi(0x2020400), %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 60 cc ld [ %g1 + 0xcc ], %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 44 27 call 2013f18 <memset> <== NOT EXECUTED
2002e80: 92 10 20 00 clr %o1 <== NOT EXECUTED
disktab = table;
2002e84: 03 00 80 81 sethi %hi(0x2020400), %g1 <== NOT EXECUTED
2002e88: e6 20 60 cc st %l3, [ %g1 + 0xcc ] ! 20204cc <disktab> <== NOT EXECUTED
disktab_size = new_size;
2002e8c: 03 00 80 81 sethi %hi(0x2020400), %g1 <== NOT EXECUTED
2002e90: e4 20 60 d0 st %l2, [ %g1 + 0xd0 ] ! 20204d0 <disktab_size><== NOT EXECUTED
}
if (disktab [major].minor == NULL || minor >= disktab[major].size) {
2002e94: 03 00 80 81 sethi %hi(0x2020400), %g1
2002e98: c2 00 60 cc ld [ %g1 + 0xcc ], %g1 ! 20204cc <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 81 sethi %hi(0x2020400), %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 ! 2020404 <impure_data+0x3fc>
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 44 06 call 2013f18 <memset>
2002f04: 92 10 20 00 clr %o1
disktab [major].minor = table;
2002f08: 03 00 80 81 sethi %hi(0x2020400), %g1
2002f0c: c2 00 60 cc ld [ %g1 + 0xcc ], %g1 ! 20204cc <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 81 sethi %hi(0x2020400), %g1
2002f20: c2 00 60 cc ld [ %g1 + 0xcc ], %g1 ! 20204cc <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 44 fb call 2014354 <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
0200969c <devFS_close>:
#include "devfs.h"
int devFS_close(
rtems_libio_t *iop
)
{
200969c: 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;
20096a0: c2 06 20 3c ld [ %i0 + 0x3c ], %g1
args.iop = iop;
args.flags = 0;
20096a4: c0 27 bf f8 clr [ %fp + -8 ]
args.mode = 0;
20096a8: c0 27 bf fc clr [ %fp + -4 ]
status = rtems_io_close(
20096ac: d2 00 60 0c ld [ %g1 + 0xc ], %o1
20096b0: 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;
20096b4: f0 27 bf f4 st %i0, [ %fp + -12 ]
args.flags = 0;
args.mode = 0;
status = rtems_io_close(
20096b8: 94 07 bf f4 add %fp, -12, %o2
20096bc: 40 00 03 f1 call 200a680 <rtems_io_close>
20096c0: b0 10 20 00 clr %i0
np->major,
np->minor,
(void *) &args
);
if ( status ) {
20096c4: 80 a2 20 00 cmp %o0, 0
20096c8: 02 80 00 05 be 20096dc <devFS_close+0x40> <== ALWAYS TAKEN
20096cc: 01 00 00 00 nop
return rtems_deviceio_errno(status);
20096d0: 40 00 00 42 call 20097d8 <rtems_deviceio_errno> <== NOT EXECUTED
20096d4: 01 00 00 00 nop <== NOT EXECUTED
20096d8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
}
return 0;
}
20096dc: 81 c7 e0 08 ret
20096e0: 81 e8 00 00 restore
020096f0 <devFS_evaluate_path>:
const char *pathname,
size_t pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc
)
{
20096f0: 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 ) )
20096f4: 80 8e bf f8 btst -8, %i2
20096f8: 22 80 00 06 be,a 2009710 <devFS_evaluate_path+0x20> <== ALWAYS TAKEN
20096fc: e0 06 c0 00 ld [ %i3 ], %l0
rtems_set_errno_and_return_minus_one( EPERM );
2009700: 40 00 07 c9 call 200b624 <__errno> <== NOT EXECUTED
2009704: 01 00 00 00 nop <== NOT EXECUTED
2009708: 10 80 00 0b b 2009734 <devFS_evaluate_path+0x44> <== NOT EXECUTED
200970c: 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)
2009710: 80 a4 20 00 cmp %l0, 0
2009714: 02 80 00 05 be 2009728 <devFS_evaluate_path+0x38> <== NEVER TAKEN
2009718: 27 00 80 3b sethi %hi(0x200ec00), %l3
200971c: a2 10 20 00 clr %l1
rtems_set_errno_and_return_minus_one( EFAULT );
for (i = 0; i < rtems_device_table_size; i++) {
2009720: 10 80 00 24 b 20097b0 <devFS_evaluate_path+0xc0>
2009724: a6 14 e3 58 or %l3, 0x358, %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 );
2009728: 40 00 07 bf call 200b624 <__errno> <== NOT EXECUTED
200972c: 01 00 00 00 nop <== NOT EXECUTED
2009730: 82 10 20 0e mov 0xe, %g1 ! e <PROM_START+0xe> <== NOT EXECUTED
2009734: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2009738: 81 c7 e0 08 ret <== NOT EXECUTED
200973c: 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)
2009740: e4 04 00 00 ld [ %l0 ], %l2
2009744: 80 a4 a0 00 cmp %l2, 0
2009748: 02 80 00 19 be 20097ac <devFS_evaluate_path+0xbc>
200974c: a2 04 60 01 inc %l1
continue;
if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0)
2009750: 92 10 00 12 mov %l2, %o1
2009754: 40 00 0b 55 call 200c4a8 <strncmp>
2009758: 94 10 00 19 mov %i1, %o2
200975c: 80 a2 20 00 cmp %o0, 0
2009760: 32 80 00 14 bne,a 20097b0 <devFS_evaluate_path+0xc0> <== NEVER TAKEN
2009764: a0 04 20 14 add %l0, 0x14, %l0 <== NOT EXECUTED
continue;
if (device_name_table[i].device_name[pathnamelen] != '\0')
2009768: c2 4c 80 19 ldsb [ %l2 + %i1 ], %g1
200976c: 80 a0 60 00 cmp %g1, 0
2009770: 32 80 00 10 bne,a 20097b0 <devFS_evaluate_path+0xc0>
2009774: 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;
2009778: 03 00 80 3c sethi %hi(0x200f000), %g1
200977c: c2 00 61 88 ld [ %g1 + 0x188 ], %g1 ! 200f188 <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];
2009780: e0 26 c0 00 st %l0, [ %i3 ]
pathloc->handlers = &devFS_file_handlers;
pathloc->ops = &devFS_ops;
pathloc->mt_entry = rtems_filesystem_root.mt_entry;
2009784: c2 00 60 28 ld [ %g1 + 0x28 ], %g1
2009788: 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;
200978c: 03 00 80 3c sethi %hi(0x200f000), %g1
2009790: 82 10 61 30 or %g1, 0x130, %g1 ! 200f130 <devFS_file_handlers>
2009794: c2 26 e0 08 st %g1, [ %i3 + 8 ]
pathloc->ops = &devFS_ops;
2009798: 03 00 80 3c sethi %hi(0x200f000), %g1
200979c: 82 10 60 e8 or %g1, 0xe8, %g1 ! 200f0e8 <devFS_ops>
20097a0: c2 26 e0 0c st %g1, [ %i3 + 0xc ]
pathloc->mt_entry = rtems_filesystem_root.mt_entry;
return 0;
20097a4: 81 c7 e0 08 ret
20097a8: 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++) {
20097ac: a0 04 20 14 add %l0, 0x14, %l0
20097b0: c2 04 c0 00 ld [ %l3 ], %g1
20097b4: 80 a4 40 01 cmp %l1, %g1
20097b8: 0a bf ff e2 bcs 2009740 <devFS_evaluate_path+0x50>
20097bc: 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 );
20097c0: 40 00 07 99 call 200b624 <__errno>
20097c4: b0 10 3f ff mov -1, %i0
20097c8: 82 10 20 02 mov 2, %g1
20097cc: c2 22 00 00 st %g1, [ %o0 ]
}
20097d0: 81 c7 e0 08 ret
20097d4: 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 3b sethi %hi(0x200ec00), %l1
2001f14: c2 04 63 58 ld [ %l1 + 0x358 ], %g1 ! 200ef58 <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 1c call 2008f90 <_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 63 58 ld [ %l1 + 0x358 ], %g1
rtems_set_errno_and_return_minus_one( ENOMEM );
2001f34: 40 00 25 bc call 200b624 <__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 28 14 call 200bfa8 <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 3c sethi %hi(0x200f000), %g1
2001f64: 82 10 61 30 or %g1, 0x130, %g1 ! 200f130 <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 3c sethi %hi(0x200f000), %g1
2001f74: 82 10 60 e8 or %g1, 0xe8, %g1 ! 200f0e8 <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 37 call 20061f0 <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 ac call 20097d8 <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 25 8d call 200b624 <__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 3b sethi %hi(0x200ec00), %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 63 58 or %l5, 0x358, %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 25 80 call 200b624 <__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 28 93 call 200c290 <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 25 73 call 200b624 <__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 25 66 call 200b624 <__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 28 c4 call 200c3d4 <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 6d call 200631c <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 97 call 20097d8 <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 6d call 2006374 <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 81 call 20097d8 <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 25 08 call 200b624 <__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 59 call 20063cc <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 57 call 20097d8 <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
0200e804 <device_close>:
*/
int device_close(
rtems_libio_t *iop
)
{
200e804: 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;
200e808: c2 06 20 3c ld [ %i0 + 0x3c ], %g1
args.iop = iop;
200e80c: f0 27 bf f4 st %i0, [ %fp + -12 ]
args.flags = 0;
200e810: c0 27 bf f8 clr [ %fp + -8 ]
args.mode = 0;
200e814: c0 27 bf fc clr [ %fp + -4 ]
status = rtems_io_close(
200e818: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0
200e81c: 94 07 bf f4 add %fp, -12, %o2
200e820: 40 00 02 30 call 200f0e0 <rtems_io_close>
200e824: b0 10 20 00 clr %i0
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status ) {
200e828: 80 a2 20 00 cmp %o0, 0
200e82c: 02 80 00 05 be 200e840 <device_close+0x3c> <== ALWAYS TAKEN
200e830: 01 00 00 00 nop
return rtems_deviceio_errno(status);
200e834: 40 00 03 03 call 200f440 <rtems_deviceio_errno> <== NOT EXECUTED
200e838: 01 00 00 00 nop <== NOT EXECUTED
200e83c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
}
return 0;
}
200e840: 81 c7 e0 08 ret
200e844: 81 e8 00 00 restore
0200e704 <device_ioctl>:
int device_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
200e704: 9d e3 bf 90 save %sp, -112, %sp
args.iop = iop;
args.command = command;
args.buffer = buffer;
the_jnode = iop->file_info;
200e708: 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;
200e70c: f2 27 bf f4 st %i1, [ %fp + -12 ]
args.buffer = buffer;
200e710: 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;
200e714: f0 27 bf f0 st %i0, [ %fp + -16 ]
args.command = command;
args.buffer = buffer;
the_jnode = iop->file_info;
status = rtems_io_control(
200e718: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0
200e71c: 40 00 02 87 call 200f138 <rtems_io_control>
200e720: 94 07 bf f0 add %fp, -16, %o2
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
200e724: 80 a2 20 00 cmp %o0, 0
200e728: 22 80 00 06 be,a 200e740 <device_ioctl+0x3c> <== ALWAYS TAKEN
200e72c: d0 07 bf fc ld [ %fp + -4 ], %o0
return rtems_deviceio_errno(status);
200e730: 40 00 03 44 call 200f440 <rtems_deviceio_errno> <== NOT EXECUTED
200e734: 01 00 00 00 nop <== NOT EXECUTED
200e738: 81 c7 e0 08 ret <== NOT EXECUTED
200e73c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
return args.ioctl_return;
}
200e740: b0 10 00 08 mov %o0, %i0
200e744: 81 c7 e0 08 ret
200e748: 81 e8 00 00 restore
0200e848 <device_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
200e848: 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;
200e84c: 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;
200e850: c2 06 20 3c ld [ %i0 + 0x3c ], %g1
args.iop = iop;
200e854: f0 27 bf f4 st %i0, [ %fp + -12 ]
args.flags = iop->flags;
200e858: c4 27 bf f8 st %g2, [ %fp + -8 ]
args.mode = mode;
200e85c: f6 27 bf fc st %i3, [ %fp + -4 ]
status = rtems_io_open(
200e860: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0
200e864: 94 07 bf f4 add %fp, -12, %o2
200e868: 40 00 02 4a call 200f190 <rtems_io_open>
200e86c: b0 10 20 00 clr %i0
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
200e870: 80 a2 20 00 cmp %o0, 0
200e874: 02 80 00 05 be 200e888 <device_open+0x40> <== ALWAYS TAKEN
200e878: 01 00 00 00 nop
return rtems_deviceio_errno(status);
200e87c: 40 00 02 f1 call 200f440 <rtems_deviceio_errno> <== NOT EXECUTED
200e880: 01 00 00 00 nop <== NOT EXECUTED
200e884: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
return 0;
}
200e888: 81 c7 e0 08 ret
200e88c: 81 e8 00 00 restore
0200e7a8 <device_read>:
ssize_t device_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
200e7a8: 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;
200e7ac: 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;
200e7b0: c2 06 20 3c ld [ %i0 + 0x3c ], %g1
args.iop = iop;
args.offset = iop->offset;
200e7b4: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4
args.buffer = buffer;
200e7b8: 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;
200e7bc: d8 3f bf e8 std %o4, [ %fp + -24 ]
args.buffer = buffer;
args.count = count;
200e7c0: f4 27 bf f4 st %i2, [ %fp + -12 ]
args.flags = iop->flags;
200e7c4: 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;
200e7c8: 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;
200e7cc: c0 27 bf fc clr [ %fp + -4 ]
status = rtems_io_read(
200e7d0: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0
200e7d4: 40 00 02 85 call 200f1e8 <rtems_io_read>
200e7d8: 94 07 bf e0 add %fp, -32, %o2
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
200e7dc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200e7e0: 22 80 00 06 be,a 200e7f8 <device_read+0x50> <== NOT EXECUTED
200e7e4: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
return rtems_deviceio_errno(status);
200e7e8: 40 00 03 16 call 200f440 <rtems_deviceio_errno> <== NOT EXECUTED
200e7ec: 01 00 00 00 nop <== NOT EXECUTED
200e7f0: 81 c7 e0 08 ret <== NOT EXECUTED
200e7f4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
}
200e7f8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
200e7fc: 81 c7 e0 08 ret <== NOT EXECUTED
200e800: 81 e8 00 00 restore <== NOT EXECUTED
0200e74c <device_write>:
ssize_t device_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
200e74c: 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;
200e750: 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;
200e754: c2 06 20 3c ld [ %i0 + 0x3c ], %g1
args.iop = iop;
args.offset = iop->offset;
200e758: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4
args.buffer = (void *) buffer;
200e75c: 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;
200e760: d8 3f bf e8 std %o4, [ %fp + -24 ]
args.buffer = (void *) buffer;
args.count = count;
200e764: f4 27 bf f4 st %i2, [ %fp + -12 ]
args.flags = iop->flags;
200e768: 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;
200e76c: 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;
200e770: c0 27 bf fc clr [ %fp + -4 ]
status = rtems_io_write(
200e774: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0
200e778: 40 00 02 b2 call 200f240 <rtems_io_write>
200e77c: 94 07 bf e0 add %fp, -32, %o2
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
200e780: 80 a2 20 00 cmp %o0, 0
200e784: 22 80 00 06 be,a 200e79c <device_write+0x50> <== ALWAYS TAKEN
200e788: d0 07 bf fc ld [ %fp + -4 ], %o0
return rtems_deviceio_errno(status);
200e78c: 40 00 03 2d call 200f440 <rtems_deviceio_errno> <== NOT EXECUTED
200e790: 01 00 00 00 nop <== NOT EXECUTED
200e794: 81 c7 e0 08 ret <== NOT EXECUTED
200e798: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
}
200e79c: b0 10 00 08 mov %o0, %i0
200e7a0: 81 c7 e0 08 ret
200e7a4: 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 81 sethi %hi(0x2020400), %g1
2002a64: d0 00 60 d4 ld [ %g1 + 0xd4 ], %o0 ! 20204d4 <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 81 sethi %hi(0x2020400), %g1
2002a88: b0 10 20 00 clr %i0
2002a8c: c4 28 60 d8 stb %g2, [ %g1 + 0xd8 ]
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 81 sethi %hi(0x2020400), %g1
2002aa0: d0 00 60 d4 ld [ %g1 + 0xd4 ], %o0 ! 20204d4 <diskdevs_mutex>
static void
disk_unlock(void)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
diskdevs_protected = false;
2002aa4: 03 00 80 81 sethi %hi(0x2020400), %g1
2002aa8: c0 28 60 d8 clrb [ %g1 + 0xd8 ] ! 20204d8 <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 91 call 2007d04 <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 07 ff call 20069a8 <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 70 sethi %hi(0x201c000), %g1 <== NOT EXECUTED
20043c8: c4 00 62 e8 ld [ %g1 + 0x2e8 ], %g2 ! 201c2e8 <__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
02028c84 <endgrent>:
group_fp = fopen("/etc/group", "r");
}
void endgrent(void)
{
if (group_fp != NULL)
2028c84: 03 00 81 b3 sethi %hi(0x206cc00), %g1 <== NOT EXECUTED
2028c88: d0 00 62 dc ld [ %g1 + 0x2dc ], %o0 ! 206cedc <group_fp> <== NOT EXECUTED
2028c8c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2028c90: 02 80 00 05 be 2028ca4 <endgrent+0x20> <== NOT EXECUTED
2028c94: 01 00 00 00 nop <== NOT EXECUTED
fclose(group_fp);
2028c98: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2028c9c: 40 00 68 3b call 2042d88 <fclose> <== NOT EXECUTED
2028ca0: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
2028ca4: 81 c3 e0 08 retl <== NOT EXECUTED
02028cac <endpwent>:
passwd_fp = fopen("/etc/passwd", "r");
}
void endpwent(void)
{
if (passwd_fp != NULL)
2028cac: 03 00 81 b3 sethi %hi(0x206cc00), %g1 <== NOT EXECUTED
2028cb0: d0 00 61 f4 ld [ %g1 + 0x1f4 ], %o0 ! 206cdf4 <passwd_fp> <== NOT EXECUTED
2028cb4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2028cb8: 02 80 00 05 be 2028ccc <endpwent+0x20> <== NOT EXECUTED
2028cbc: 01 00 00 00 nop <== NOT EXECUTED
fclose(passwd_fp);
2028cc0: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2028cc4: 40 00 68 31 call 2042d88 <fclose> <== NOT EXECUTED
2028cc8: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
2028ccc: 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 70 sethi %hi(0x201c000), %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 70 sethi %hi(0x201c000), %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 6c sethi %hi(0x201b000), %l3 <== NOT EXECUTED
/*
* Back up over the tab
*/
while (tty->column > col) {
rtems_termios_puts ("\b", 1, tty);
2004644: 29 00 80 6c sethi %hi(0x201b000), %l4 <== NOT EXECUTED
2004648: a4 14 a2 e8 or %l2, 0x2e8, %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 50 or %l3, 0x50, %l3 <== NOT EXECUTED
/*
* Back up over the tab
*/
while (tty->column > col) {
rtems_termios_puts ("\b", 1, tty);
2004650: a8 15 20 48 or %l4, 0x48, %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
02025b98 <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)
{
2025b98: 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)
2025b9c: c2 0e 20 85 ldub [ %i0 + 0x85 ], %g1 <== NOT EXECUTED
2025ba0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2025ba4: 32 80 00 13 bne,a 2025bf0 <fat_buf_access+0x58> <== NOT EXECUTED
2025ba8: c2 06 20 80 ld [ %i0 + 0x80 ], %g1 <== NOT EXECUTED
{
if (op_type == FAT_OP_TYPE_READ)
2025bac: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED
2025bb0: d0 1e 20 58 ldd [ %i0 + 0x58 ], %o0 <== NOT EXECUTED
2025bb4: 12 80 00 06 bne 2025bcc <fat_buf_access+0x34> <== NOT EXECUTED
2025bb8: 96 06 20 88 add %i0, 0x88, %o3 <== NOT EXECUTED
sc = rtems_bdbuf_read(fs_info->vol.dev, blk, &fs_info->c.buf);
2025bbc: 7f ff 80 3c call 2005cac <rtems_bdbuf_read> <== NOT EXECUTED
2025bc0: 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)
2025bc4: 10 80 00 05 b 2025bd8 <fat_buf_access+0x40> <== NOT EXECUTED
2025bc8: 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);
2025bcc: 7f ff 80 05 call 2005be0 <rtems_bdbuf_get> <== NOT EXECUTED
2025bd0: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2025bd4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025bd8: 12 80 00 63 bne 2025d64 <fat_buf_access+0x1cc> <== NOT EXECUTED
2025bdc: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
fs_info->c.blk_num = blk;
2025be0: f2 26 20 80 st %i1, [ %i0 + 0x80 ] <== NOT EXECUTED
fs_info->c.modified = 0;
2025be4: c0 2e 20 84 clrb [ %i0 + 0x84 ] <== NOT EXECUTED
fs_info->c.state = FAT_CACHE_ACTUAL;
2025be8: c2 2e 20 85 stb %g1, [ %i0 + 0x85 ] <== NOT EXECUTED
}
sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) &&
2025bec: c2 06 20 80 ld [ %i0 + 0x80 ], %g1 <== NOT EXECUTED
2025bf0: c4 16 20 14 lduh [ %i0 + 0x14 ], %g2 <== NOT EXECUTED
2025bf4: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2025bf8: 0a 80 00 05 bcs 2025c0c <fat_buf_access+0x74> <== NOT EXECUTED
2025bfc: a0 10 20 00 clr %l0 <== NOT EXECUTED
2025c00: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 <== NOT EXECUTED
2025c04: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2025c08: 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)
2025c0c: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED
2025c10: 22 80 00 5e be,a 2025d88 <fat_buf_access+0x1f0> <== NOT EXECUTED
2025c14: c2 06 20 88 ld [ %i0 + 0x88 ], %g1 <== NOT EXECUTED
{
if (fs_info->c.modified)
2025c18: c2 0e 20 84 ldub [ %i0 + 0x84 ], %g1 <== NOT EXECUTED
2025c1c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2025c20: 02 80 00 3f be 2025d1c <fat_buf_access+0x184> <== NOT EXECUTED
2025c24: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
{
if (sec_of_fat && !fs_info->vol.mirror)
2025c28: 02 80 00 0b be 2025c54 <fat_buf_access+0xbc> <== NOT EXECUTED
2025c2c: 01 00 00 00 nop <== NOT EXECUTED
2025c30: c2 0e 20 48 ldub [ %i0 + 0x48 ], %g1 <== NOT EXECUTED
2025c34: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2025c38: 12 80 00 07 bne 2025c54 <fat_buf_access+0xbc> <== NOT EXECUTED
2025c3c: 01 00 00 00 nop <== NOT EXECUTED
memcpy(fs_info->sec_buf, fs_info->c.buf->buffer,
2025c40: c2 06 20 88 ld [ %i0 + 0x88 ], %g1 <== NOT EXECUTED
2025c44: d0 06 20 8c ld [ %i0 + 0x8c ], %o0 <== NOT EXECUTED
2025c48: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
2025c4c: 40 00 81 43 call 2046158 <memcpy> <== NOT EXECUTED
2025c50: d4 16 00 00 lduh [ %i0 ], %o2 <== NOT EXECUTED
fs_info->vol.bps);
sc = rtems_bdbuf_release_modified(fs_info->c.buf);
2025c54: 7f ff 7b 58 call 20049b4 <rtems_bdbuf_release_modified> <== NOT EXECUTED
2025c58: d0 06 20 88 ld [ %i0 + 0x88 ], %o0 <== NOT EXECUTED
fs_info->c.state = FAT_CACHE_EMPTY;
2025c5c: c0 2e 20 85 clrb [ %i0 + 0x85 ] <== NOT EXECUTED
fs_info->c.modified = 0;
if (sc != RTEMS_SUCCESSFUL)
2025c60: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025c64: 12 80 00 40 bne 2025d64 <fat_buf_access+0x1cc> <== NOT EXECUTED
2025c68: 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)
2025c6c: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
2025c70: 02 80 00 31 be 2025d34 <fat_buf_access+0x19c> <== NOT EXECUTED
2025c74: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED
2025c78: c2 0e 20 48 ldub [ %i0 + 0x48 ], %g1 <== NOT EXECUTED
2025c7c: a0 10 20 01 mov 1, %l0 <== NOT EXECUTED
2025c80: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2025c84: 02 80 00 1f be 2025d00 <fat_buf_access+0x168> <== NOT EXECUTED
2025c88: 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)
2025c8c: 10 80 00 2a b 2025d34 <fat_buf_access+0x19c> <== NOT EXECUTED
2025c90: 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,
2025c94: d2 06 20 18 ld [ %i0 + 0x18 ], %o1 <== NOT EXECUTED
2025c98: 7f ff 73 58 call 20029f8 <.umul> <== NOT EXECUTED
2025c9c: e4 1e 20 58 ldd [ %i0 + 0x58 ], %l2 <== NOT EXECUTED
2025ca0: d4 06 20 80 ld [ %i0 + 0x80 ], %o2 <== NOT EXECUTED
2025ca4: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
2025ca8: 94 02 00 0a add %o0, %o2, %o2 <== NOT EXECUTED
2025cac: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2025cb0: 7f ff 7f cc call 2005be0 <rtems_bdbuf_get> <== NOT EXECUTED
2025cb4: 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)
2025cb8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025cbc: 12 80 00 0d bne 2025cf0 <fat_buf_access+0x158> <== NOT EXECUTED
2025cc0: 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);
2025cc4: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2025cc8: d2 06 20 8c ld [ %i0 + 0x8c ], %o1 <== NOT EXECUTED
2025ccc: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
2025cd0: d4 16 00 00 lduh [ %i0 ], %o2 <== NOT EXECUTED
2025cd4: 40 00 81 21 call 2046158 <memcpy> <== NOT EXECUTED
2025cd8: a0 04 20 01 inc %l0 <== NOT EXECUTED
sc = rtems_bdbuf_release_modified(b);
2025cdc: 7f ff 7b 36 call 20049b4 <rtems_bdbuf_release_modified> <== NOT EXECUTED
2025ce0: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
if ( sc != RTEMS_SUCCESSFUL)
2025ce4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025ce8: 22 80 00 07 be,a 2025d04 <fat_buf_access+0x16c> <== NOT EXECUTED
2025cec: c4 0e 20 09 ldub [ %i0 + 9 ], %g2 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
2025cf0: 40 00 73 ce call 2042c28 <__errno> <== NOT EXECUTED
2025cf4: 01 00 00 00 nop <== NOT EXECUTED
2025cf8: 10 80 00 1e b 2025d70 <fat_buf_access+0x1d8> <== NOT EXECUTED
2025cfc: 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++)
2025d00: c4 0e 20 09 ldub [ %i0 + 9 ], %g2 <== NOT EXECUTED
2025d04: 82 0c 20 ff and %l0, 0xff, %g1 <== NOT EXECUTED
2025d08: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2025d0c: 0a bf ff e2 bcs 2025c94 <fat_buf_access+0xfc> <== NOT EXECUTED
2025d10: 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)
2025d14: 10 80 00 08 b 2025d34 <fat_buf_access+0x19c> <== NOT EXECUTED
2025d18: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED
}
}
}
else
{
sc = rtems_bdbuf_release(fs_info->c.buf);
2025d1c: 7f ff 7b 4c call 2004a4c <rtems_bdbuf_release> <== NOT EXECUTED
2025d20: d0 06 20 88 ld [ %i0 + 0x88 ], %o0 <== NOT EXECUTED
fs_info->c.state = FAT_CACHE_EMPTY;
if (sc != RTEMS_SUCCESSFUL)
2025d24: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025d28: 12 80 00 0f bne 2025d64 <fat_buf_access+0x1cc> <== NOT EXECUTED
2025d2c: c0 2e 20 85 clrb [ %i0 + 0x85 ] <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
}
if (op_type == FAT_OP_TYPE_READ)
2025d30: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED
2025d34: d0 1e 20 58 ldd [ %i0 + 0x58 ], %o0 <== NOT EXECUTED
2025d38: 12 80 00 06 bne 2025d50 <fat_buf_access+0x1b8> <== NOT EXECUTED
2025d3c: 96 06 20 88 add %i0, 0x88, %o3 <== NOT EXECUTED
sc = rtems_bdbuf_read(fs_info->vol.dev, blk, &fs_info->c.buf);
2025d40: 7f ff 7f db call 2005cac <rtems_bdbuf_read> <== NOT EXECUTED
2025d44: 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)
2025d48: 10 80 00 05 b 2025d5c <fat_buf_access+0x1c4> <== NOT EXECUTED
2025d4c: 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);
2025d50: 7f ff 7f a4 call 2005be0 <rtems_bdbuf_get> <== NOT EXECUTED
2025d54: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2025d58: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025d5c: 02 80 00 08 be 2025d7c <fat_buf_access+0x1e4> <== NOT EXECUTED
2025d60: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2025d64: 40 00 73 b1 call 2042c28 <__errno> <== NOT EXECUTED
2025d68: 01 00 00 00 nop <== NOT EXECUTED
2025d6c: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
2025d70: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2025d74: 81 c7 e0 08 ret <== NOT EXECUTED
2025d78: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
fs_info->c.blk_num = blk;
2025d7c: f2 26 20 80 st %i1, [ %i0 + 0x80 ] <== NOT EXECUTED
fs_info->c.state = FAT_CACHE_ACTUAL;
2025d80: c2 2e 20 85 stb %g1, [ %i0 + 0x85 ] <== NOT EXECUTED
}
*buf = fs_info->c.buf;
2025d84: c2 06 20 88 ld [ %i0 + 0x88 ], %g1 <== NOT EXECUTED
2025d88: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED
return RC_OK;
}
2025d8c: 81 c7 e0 08 ret <== NOT EXECUTED
2025d90: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
02025a14 <fat_buf_release>:
return RC_OK;
}
int
fat_buf_release(fat_fs_info_t *fs_info)
{
2025a14: 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)
2025a18: c2 0e 20 85 ldub [ %i0 + 0x85 ], %g1 <== NOT EXECUTED
return RC_OK;
}
int
fat_buf_release(fat_fs_info_t *fs_info)
{
2025a1c: 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)
2025a20: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2025a24: 02 80 00 56 be 2025b7c <fat_buf_release+0x168> <== NOT EXECUTED
2025a28: b0 10 20 00 clr %i0 <== NOT EXECUTED
return RC_OK;
sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) &&
2025a2c: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 <== NOT EXECUTED
2025a30: c4 14 20 14 lduh [ %l0 + 0x14 ], %g2 <== NOT EXECUTED
2025a34: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2025a38: 0a 80 00 05 bcs 2025a4c <fat_buf_release+0x38> <== NOT EXECUTED
2025a3c: a2 10 20 00 clr %l1 <== NOT EXECUTED
2025a40: c4 04 20 1c ld [ %l0 + 0x1c ], %g2 <== NOT EXECUTED
2025a44: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2025a48: 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)
2025a4c: c2 0c 20 84 ldub [ %l0 + 0x84 ], %g1 <== NOT EXECUTED
2025a50: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2025a54: 02 80 00 3d be 2025b48 <fat_buf_release+0x134> <== NOT EXECUTED
2025a58: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
{
if (sec_of_fat && !fs_info->vol.mirror)
2025a5c: 02 80 00 0b be 2025a88 <fat_buf_release+0x74> <== NOT EXECUTED
2025a60: 01 00 00 00 nop <== NOT EXECUTED
2025a64: c2 0c 20 48 ldub [ %l0 + 0x48 ], %g1 <== NOT EXECUTED
2025a68: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2025a6c: 12 80 00 07 bne 2025a88 <fat_buf_release+0x74> <== NOT EXECUTED
2025a70: 01 00 00 00 nop <== NOT EXECUTED
memcpy(fs_info->sec_buf, fs_info->c.buf->buffer, fs_info->vol.bps);
2025a74: c2 04 20 88 ld [ %l0 + 0x88 ], %g1 <== NOT EXECUTED
2025a78: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 <== NOT EXECUTED
2025a7c: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
2025a80: 40 00 81 b6 call 2046158 <memcpy> <== NOT EXECUTED
2025a84: d4 14 00 00 lduh [ %l0 ], %o2 <== NOT EXECUTED
sc = rtems_bdbuf_release_modified(fs_info->c.buf);
2025a88: 7f ff 7b cb call 20049b4 <rtems_bdbuf_release_modified> <== NOT EXECUTED
2025a8c: d0 04 20 88 ld [ %l0 + 0x88 ], %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2025a90: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025a94: 12 80 00 32 bne 2025b5c <fat_buf_release+0x148> <== NOT EXECUTED
2025a98: 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)
2025a9c: 02 80 00 36 be 2025b74 <fat_buf_release+0x160> <== NOT EXECUTED
2025aa0: c0 2c 20 84 clrb [ %l0 + 0x84 ] <== NOT EXECUTED
2025aa4: c2 0c 20 48 ldub [ %l0 + 0x48 ], %g1 <== NOT EXECUTED
2025aa8: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED
2025aac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2025ab0: 02 80 00 1f be 2025b2c <fat_buf_release+0x118> <== NOT EXECUTED
2025ab4: 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;
2025ab8: 10 80 00 30 b 2025b78 <fat_buf_release+0x164> <== NOT EXECUTED
2025abc: 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,
2025ac0: d2 04 20 18 ld [ %l0 + 0x18 ], %o1 <== NOT EXECUTED
2025ac4: 7f ff 73 cd call 20029f8 <.umul> <== NOT EXECUTED
2025ac8: e8 1c 20 58 ldd [ %l0 + 0x58 ], %l4 <== NOT EXECUTED
2025acc: d4 04 20 80 ld [ %l0 + 0x80 ], %o2 <== NOT EXECUTED
2025ad0: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
2025ad4: 94 02 00 0a add %o0, %o2, %o2 <== NOT EXECUTED
2025ad8: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
2025adc: 7f ff 80 41 call 2005be0 <rtems_bdbuf_get> <== NOT EXECUTED
2025ae0: 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)
2025ae4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025ae8: 12 80 00 0d bne 2025b1c <fat_buf_release+0x108> <== NOT EXECUTED
2025aec: 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);
2025af0: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2025af4: d2 04 20 8c ld [ %l0 + 0x8c ], %o1 <== NOT EXECUTED
2025af8: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
2025afc: d4 14 00 00 lduh [ %l0 ], %o2 <== NOT EXECUTED
2025b00: 40 00 81 96 call 2046158 <memcpy> <== NOT EXECUTED
2025b04: a2 04 60 01 inc %l1 <== NOT EXECUTED
sc = rtems_bdbuf_release_modified(b);
2025b08: 7f ff 7b ab call 20049b4 <rtems_bdbuf_release_modified> <== NOT EXECUTED
2025b0c: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
if ( sc != RTEMS_SUCCESSFUL)
2025b10: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025b14: 22 80 00 07 be,a 2025b30 <fat_buf_release+0x11c> <== NOT EXECUTED
2025b18: c4 0c 20 09 ldub [ %l0 + 9 ], %g2 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
2025b1c: 40 00 74 43 call 2042c28 <__errno> <== NOT EXECUTED
2025b20: 01 00 00 00 nop <== NOT EXECUTED
2025b24: 10 80 00 11 b 2025b68 <fat_buf_release+0x154> <== NOT EXECUTED
2025b28: 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++)
2025b2c: c4 0c 20 09 ldub [ %l0 + 9 ], %g2 <== NOT EXECUTED
2025b30: 82 0c 60 ff and %l1, 0xff, %g1 <== NOT EXECUTED
2025b34: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2025b38: 0a bf ff e2 bcs 2025ac0 <fat_buf_release+0xac> <== NOT EXECUTED
2025b3c: 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;
2025b40: 10 80 00 0e b 2025b78 <fat_buf_release+0x164> <== NOT EXECUTED
2025b44: c0 2c 20 85 clrb [ %l0 + 0x85 ] <== NOT EXECUTED
}
}
}
else
{
sc = rtems_bdbuf_release(fs_info->c.buf);
2025b48: 7f ff 7b c1 call 2004a4c <rtems_bdbuf_release> <== NOT EXECUTED
2025b4c: d0 04 20 88 ld [ %l0 + 0x88 ], %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2025b50: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025b54: 22 80 00 09 be,a 2025b78 <fat_buf_release+0x164> <== NOT EXECUTED
2025b58: c0 2c 20 85 clrb [ %l0 + 0x85 ] <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2025b5c: 40 00 74 33 call 2042c28 <__errno> <== NOT EXECUTED
2025b60: 01 00 00 00 nop <== NOT EXECUTED
2025b64: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
2025b68: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2025b6c: 81 c7 e0 08 ret <== NOT EXECUTED
2025b70: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
}
fs_info->c.state = FAT_CACHE_EMPTY;
2025b74: c0 2c 20 85 clrb [ %l0 + 0x85 ] <== NOT EXECUTED
2025b78: b0 10 20 00 clr %i0 <== NOT EXECUTED
return RC_OK;
}
2025b7c: 81 c7 e0 08 ret <== NOT EXECUTED
2025b80: 81 e8 00 00 restore <== NOT EXECUTED
020268ac <fat_cluster_read>:
fat_cluster_read(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
void *buff
)
{
20268ac: 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)) )
20268b0: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
20268b4: 12 80 00 08 bne 20268d4 <fat_cluster_read+0x28> <== NOT EXECUTED
20268b8: c4 02 20 34 ld [ %o0 + 0x34 ], %g2 <== NOT EXECUTED
20268bc: c2 08 a0 0a ldub [ %g2 + 0xa ], %g1 <== NOT EXECUTED
20268c0: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
20268c4: 22 80 00 05 be,a 20268d8 <fat_cluster_read+0x2c> <== NOT EXECUTED
20268c8: c6 08 a0 05 ldub [ %g2 + 5 ], %g3 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
20268cc: 10 80 00 07 b 20268e8 <fat_cluster_read+0x3c> <== NOT EXECUTED
20268d0: d2 00 a0 1c ld [ %g2 + 0x1c ], %o1 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
20268d4: c6 08 a0 05 ldub [ %g2 + 5 ], %g3 <== NOT EXECUTED
20268d8: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 <== NOT EXECUTED
20268dc: 92 02 7f fe add %o1, -2, %o1 <== NOT EXECUTED
20268e0: 93 2a 40 03 sll %o1, %g3, %o1 <== NOT EXECUTED
20268e4: 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,
20268e8: c2 08 a0 02 ldub [ %g2 + 2 ], %g1 <== NOT EXECUTED
20268ec: d6 08 a0 04 ldub [ %g2 + 4 ], %o3 <== NOT EXECUTED
20268f0: 94 10 20 00 clr %o2 <== NOT EXECUTED
20268f4: 97 2a c0 01 sll %o3, %g1, %o3 <== NOT EXECUTED
20268f8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
20268fc: 7f ff fe 0d call 2026130 <_fat_block_read> <== NOT EXECUTED
2026900: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02026014 <fat_cluster_write>:
fat_cluster_write(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
const void *buff
)
{
2026014: 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)) )
2026018: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
202601c: 12 80 00 08 bne 202603c <fat_cluster_write+0x28> <== NOT EXECUTED
2026020: c4 02 20 34 ld [ %o0 + 0x34 ], %g2 <== NOT EXECUTED
2026024: c2 08 a0 0a ldub [ %g2 + 0xa ], %g1 <== NOT EXECUTED
2026028: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
202602c: 22 80 00 05 be,a 2026040 <fat_cluster_write+0x2c> <== NOT EXECUTED
2026030: c6 08 a0 05 ldub [ %g2 + 5 ], %g3 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
2026034: 10 80 00 07 b 2026050 <fat_cluster_write+0x3c> <== NOT EXECUTED
2026038: d2 00 a0 1c ld [ %g2 + 0x1c ], %o1 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
202603c: c6 08 a0 05 ldub [ %g2 + 5 ], %g3 <== NOT EXECUTED
2026040: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 <== NOT EXECUTED
2026044: 92 02 7f fe add %o1, -2, %o1 <== NOT EXECUTED
2026048: 93 2a 40 03 sll %o1, %g3, %o1 <== NOT EXECUTED
202604c: 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,
2026050: c2 08 a0 02 ldub [ %g2 + 2 ], %g1 <== NOT EXECUTED
2026054: d6 08 a0 04 ldub [ %g2 + 4 ], %o3 <== NOT EXECUTED
2026058: 94 10 20 00 clr %o2 <== NOT EXECUTED
202605c: 97 2a c0 01 sll %o3, %g1, %o3 <== NOT EXECUTED
2026060: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2026064: 7f ff ff 4c call 2025d94 <_fat_block_write> <== NOT EXECUTED
2026068: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02025e44 <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
)
{
2025e44: 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;
2025e48: 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);
2025e4c: 89 2e 60 18 sll %i1, 0x18, %g4 <== NOT EXECUTED
le_next_free = CT_LE_L(next_free);
ret1 = _fat_block_write(mt_entry,
2025e50: 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);
2025e54: 87 36 60 10 srl %i1, 0x10, %g3 <== NOT EXECUTED
2025e58: 83 36 60 18 srl %i1, 0x18, %g1 <== NOT EXECUTED
2025e5c: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED
2025e60: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
2025e64: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
2025e68: b3 36 60 08 srl %i1, 8, %i1 <== NOT EXECUTED
2025e6c: b2 0e 60 ff and %i1, 0xff, %i1 <== NOT EXECUTED
2025e70: b3 2e 60 10 sll %i1, 0x10, %i1 <== NOT EXECUTED
2025e74: 82 10 40 19 or %g1, %i1, %g1 <== NOT EXECUTED
2025e78: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
le_next_free = CT_LE_L(next_free);
2025e7c: 85 36 a0 10 srl %i2, 0x10, %g2 <== NOT EXECUTED
2025e80: 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);
2025e84: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
le_next_free = CT_LE_L(next_free);
2025e88: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
2025e8c: 83 36 a0 18 srl %i2, 0x18, %g1 <== NOT EXECUTED
2025e90: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2025e94: 82 10 c0 01 or %g3, %g1, %g1 <== NOT EXECUTED
2025e98: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED
2025e9c: b4 0e a0 ff and %i2, 0xff, %i2 <== NOT EXECUTED
2025ea0: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED
2025ea4: 82 10 40 1a or %g1, %i2, %g1 <== NOT EXECUTED
2025ea8: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
ret1 = _fat_block_write(mt_entry,
2025eac: 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);
2025eb0: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED
ret1 = _fat_block_write(mt_entry,
2025eb4: 96 10 20 04 mov 4, %o3 <== NOT EXECUTED
2025eb8: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
2025ebc: 7f ff ff b6 call 2025d94 <_fat_block_write> <== NOT EXECUTED
2025ec0: 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,
2025ec4: 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,
2025ec8: 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,
2025ecc: 94 10 21 ec mov 0x1ec, %o2 <== NOT EXECUTED
2025ed0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2025ed4: 96 10 20 04 mov 4, %o3 <== NOT EXECUTED
2025ed8: 7f ff ff af call 2025d94 <_fat_block_write> <== NOT EXECUTED
2025edc: 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) )
2025ee0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025ee4: 06 80 00 04 bl 2025ef4 <fat_fat32_update_fsinfo_sector+0xb0><== NOT EXECUTED
2025ee8: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
2025eec: 16 80 00 03 bge 2025ef8 <fat_fat32_update_fsinfo_sector+0xb4><== NOT EXECUTED
2025ef0: b0 10 20 00 clr %i0 <== NOT EXECUTED
2025ef4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return -1;
return RC_OK;
}
2025ef8: 81 c7 e0 08 ret <== NOT EXECUTED
2025efc: 81 e8 00 00 restore <== NOT EXECUTED
02025598 <fat_file_close>:
int
fat_file_close(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
2025598: 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)
202559c: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
20255a0: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
20255a4: 08 80 00 06 bleu 20255bc <fat_file_close+0x24> <== NOT EXECUTED
20255a8: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED
{
fat_fd->links_num--;
20255ac: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
20255b0: 90 10 20 00 clr %o0 <== NOT EXECUTED
return rc;
20255b4: 10 80 00 26 b 202564c <fat_file_close+0xb4> <== NOT EXECUTED
20255b8: 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)
20255bc: c2 0e 60 30 ldub [ %i1 + 0x30 ], %g1 <== NOT EXECUTED
20255c0: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
20255c4: 22 80 00 15 be,a 2025618 <fat_file_close+0x80> <== NOT EXECUTED
20255c8: d2 06 60 0c ld [ %i1 + 0xc ], %o1 <== NOT EXECUTED
{
rc = fat_file_truncate(mt_entry, fat_fd, 0);
20255cc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20255d0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
20255d4: 7f ff fe 18 call 2024e34 <fat_file_truncate> <== NOT EXECUTED
20255d8: 94 10 20 00 clr %o2 <== NOT EXECUTED
if ( rc != RC_OK )
20255dc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20255e0: 12 80 00 1b bne 202564c <fat_file_close+0xb4> <== NOT EXECUTED
20255e4: 01 00 00 00 nop <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
20255e8: 7f ff a0 57 call 200d744 <_Chain_Extract> <== NOT EXECUTED
20255ec: 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) )
20255f0: d2 06 60 0c ld [ %i1 + 0xc ], %o1 <== NOT EXECUTED
20255f4: 40 00 00 cb call 2025920 <fat_ino_is_unique> <== NOT EXECUTED
20255f8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20255fc: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED
2025600: 02 80 00 0f be 202563c <fat_file_close+0xa4> <== NOT EXECUTED
2025604: 01 00 00 00 nop <== NOT EXECUTED
fat_free_unique_ino(mt_entry, fat_fd->ino);
2025608: d2 06 60 0c ld [ %i1 + 0xc ], %o1 <== NOT EXECUTED
202560c: 40 00 00 b7 call 20258e8 <fat_free_unique_ino> <== NOT EXECUTED
2025610: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2025614: 30 80 00 0a b,a 202563c <fat_file_close+0xa4> <== NOT EXECUTED
free(fat_fd);
}
else
{
if (fat_ino_is_unique(mt_entry, fat_fd->ino))
2025618: 40 00 00 c2 call 2025920 <fat_ino_is_unique> <== NOT EXECUTED
202561c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2025620: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED
2025624: 02 80 00 04 be 2025634 <fat_file_close+0x9c> <== NOT EXECUTED
2025628: 01 00 00 00 nop <== NOT EXECUTED
{
fat_fd->links_num = 0;
202562c: 10 80 00 06 b 2025644 <fat_file_close+0xac> <== NOT EXECUTED
2025630: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED
2025634: 7f ff a0 44 call 200d744 <_Chain_Extract> <== NOT EXECUTED
2025638: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
}
else
{
_hash_delete(fs_info->vhash, key, fat_fd->ino, fat_fd);
free(fat_fd);
202563c: 7f ff 8b 09 call 2008260 <free> <== NOT EXECUTED
2025640: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
}
}
/*
* flush any modified "cached" buffer back to disk
*/
rc = fat_buf_release(fs_info);
2025644: 40 00 00 f4 call 2025a14 <fat_buf_release> <== NOT EXECUTED
2025648: 91 e8 00 11 restore %g0, %l1, %o0 <== NOT EXECUTED
return rc;
}
202564c: 81 c7 e0 08 ret <== NOT EXECUTED
2025650: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02024bf4 <fat_file_datasync>:
int
fat_file_datasync(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
2024bf4: 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)
2024bf8: 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;
2024bfc: 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)
2024c00: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2024c04: a0 10 20 00 clr %l0 <== NOT EXECUTED
2024c08: 02 80 00 40 be 2024d08 <fat_file_datasync+0x114> <== NOT EXECUTED
2024c0c: 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;
2024c10: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
rtems_bdbuf_buffer *block = NULL;
2024c14: 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);
2024c18: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2024c1c: 40 00 03 7e call 2025a14 <fat_buf_release> <== NOT EXECUTED
2024c20: aa 07 bf f8 add %fp, -8, %l5 <== NOT EXECUTED
if (rc != RC_OK)
2024c24: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2024c28: 02 80 00 31 be 2024cec <fat_file_datasync+0xf8> <== NOT EXECUTED
2024c2c: 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;
}
2024c30: 81 c7 e0 08 ret <== NOT EXECUTED
2024c34: 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)) )
2024c38: 12 80 00 08 bne 2024c58 <fat_file_datasync+0x64> <== NOT EXECUTED
2024c3c: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 <== NOT EXECUTED
2024c40: c6 08 60 0a ldub [ %g1 + 0xa ], %g3 <== NOT EXECUTED
2024c44: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED
2024c48: 22 80 00 05 be,a 2024c5c <fat_file_datasync+0x68> <== NOT EXECUTED
2024c4c: c6 00 60 30 ld [ %g1 + 0x30 ], %g3 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
2024c50: 10 80 00 07 b 2024c6c <fat_file_datasync+0x78> <== NOT EXECUTED
2024c54: e6 00 60 1c ld [ %g1 + 0x1c ], %l3 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
2024c58: c6 00 60 30 ld [ %g1 + 0x30 ], %g3 <== NOT EXECUTED
2024c5c: c2 08 60 05 ldub [ %g1 + 5 ], %g1 <== NOT EXECUTED
2024c60: a6 00 bf fe add %g2, -2, %l3 <== NOT EXECUTED
2024c64: a7 2c c0 01 sll %l3, %g1, %l3 <== NOT EXECUTED
2024c68: 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++ )
2024c6c: 10 80 00 13 b 2024cb8 <fat_file_datasync+0xc4> <== NOT EXECUTED
2024c70: a4 10 20 00 clr %l2 <== NOT EXECUTED
{
/* ... sync it */
sc = rtems_bdbuf_read(fs_info->vol.dev, (sec + i), &block);
2024c74: d0 1c 60 58 ldd [ %l1 + 0x58 ], %o0 <== NOT EXECUTED
2024c78: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
2024c7c: 7f ff 84 0c call 2005cac <rtems_bdbuf_read> <== NOT EXECUTED
2024c80: a4 04 a0 01 inc %l2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2024c84: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024c88: 12 80 00 07 bne 2024ca4 <fat_file_datasync+0xb0> <== NOT EXECUTED
2024c8c: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
sc = rtems_bdbuf_sync(block);
2024c90: 7f ff 81 e4 call 2005420 <rtems_bdbuf_sync> <== NOT EXECUTED
2024c94: d0 07 bf f8 ld [ %fp + -8 ], %o0 <== NOT EXECUTED
if ( sc != RTEMS_SUCCESSFUL )
2024c98: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024c9c: 22 80 00 08 be,a 2024cbc <fat_file_datasync+0xc8> <== NOT EXECUTED
2024ca0: c2 0c 60 04 ldub [ %l1 + 4 ], %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
2024ca4: 40 00 77 e1 call 2042c28 <__errno> <== NOT EXECUTED
2024ca8: a0 10 3f ff mov -1, %l0 <== NOT EXECUTED
2024cac: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2024cb0: 10 80 00 16 b 2024d08 <fat_file_datasync+0x114> <== NOT EXECUTED
2024cb4: 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++ )
2024cb8: c2 0c 60 04 ldub [ %l1 + 4 ], %g1 <== NOT EXECUTED
2024cbc: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED
2024cc0: 0a bf ff ed bcs 2024c74 <fat_file_datasync+0x80> <== NOT EXECUTED
2024cc4: 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);
2024cc8: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
2024ccc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2024cd0: 40 00 67 a3 call 203eb5c <fat_get_fat_cluster> <== NOT EXECUTED
2024cd4: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
2024cd8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024cdc: 22 80 00 05 be,a 2024cf0 <fat_file_datasync+0xfc> <== NOT EXECUTED
2024ce0: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED
2024ce4: 10 80 00 09 b 2024d08 <fat_file_datasync+0x114> <== NOT EXECUTED
2024ce8: 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)
2024cec: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED
2024cf0: c6 04 60 0c ld [ %l1 + 0xc ], %g3 <== NOT EXECUTED
2024cf4: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED
2024cf8: 86 08 80 03 and %g2, %g3, %g3 <== NOT EXECUTED
2024cfc: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED
2024d00: 0a bf ff ce bcs 2024c38 <fat_file_datasync+0x44> <== NOT EXECUTED
2024d04: 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;
}
2024d08: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED
2024d0c: 81 c7 e0 08 ret <== NOT EXECUTED
2024d10: 81 e8 00 00 restore <== NOT EXECUTED
02024f40 <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
)
{
2024f40: 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;
2024f44: f4 26 c0 00 st %i2, [ %i3 ] <== NOT EXECUTED
if (new_length <= fat_fd->fat_file_size)
2024f48: 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;
2024f4c: 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;
2024f50: 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
)
{
2024f54: 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)
2024f58: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED
2024f5c: 08 80 00 73 bleu 2025128 <fat_file_extend+0x1e8> <== NOT EXECUTED
2024f60: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED
return RC_OK;
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
2024f64: c4 06 60 20 ld [ %i1 + 0x20 ], %g2 <== NOT EXECUTED
2024f68: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED
2024f6c: 32 80 00 0b bne,a 2024f98 <fat_file_extend+0x58> <== NOT EXECUTED
2024f70: c6 14 60 06 lduh [ %l1 + 6 ], %g3 <== NOT EXECUTED
2024f74: c4 06 60 24 ld [ %i1 + 0x24 ], %g2 <== NOT EXECUTED
2024f78: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2024f7c: 32 80 00 07 bne,a 2024f98 <fat_file_extend+0x58> <== NOT EXECUTED
2024f80: c6 14 60 06 lduh [ %l1 + 6 ], %g3 <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
2024f84: c4 0c 60 0a ldub [ %l1 + 0xa ], %g2 <== NOT EXECUTED
2024f88: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED
2024f8c: 12 80 00 1f bne 2025008 <fat_file_extend+0xc8> <== NOT EXECUTED
2024f90: 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))) &
2024f94: c6 14 60 06 lduh [ %l1 + 6 ], %g3 <== NOT EXECUTED
(fs_info->vol.bpc - 1);
bytes2add = new_length - fat_fd->fat_file_size;
2024f98: 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))) &
2024f9c: 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 -
2024fa0: a4 08 80 01 and %g2, %g1, %l2 <== NOT EXECUTED
2024fa4: a4 20 c0 12 sub %g3, %l2, %l2 <== NOT EXECUTED
2024fa8: 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)
2024fac: 80 a5 00 12 cmp %l4, %l2 <== NOT EXECUTED
2024fb0: 08 80 00 1a bleu 2025018 <fat_file_extend+0xd8> <== NOT EXECUTED
2024fb4: 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)
2024fb8: a8 a5 00 12 subcc %l4, %l2, %l4 <== NOT EXECUTED
2024fbc: 02 80 00 17 be 2025018 <fat_file_extend+0xd8> <== NOT EXECUTED
2024fc0: a6 05 3f ff add %l4, -1, %l3 <== NOT EXECUTED
return RC_OK;
cls2add = ((bytes2add - 1) >> fs_info->vol.bpc_log2) + 1;
2024fc4: c2 0c 60 08 ldub [ %l1 + 8 ], %g1 <== NOT EXECUTED
rc = fat_scan_fat_for_free_clusters(mt_entry, &chain, cls2add,
2024fc8: 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;
2024fcc: a7 34 c0 01 srl %l3, %g1, %l3 <== NOT EXECUTED
rc = fat_scan_fat_for_free_clusters(mt_entry, &chain, cls2add,
2024fd0: 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;
2024fd4: a6 04 e0 01 inc %l3 <== NOT EXECUTED
rc = fat_scan_fat_for_free_clusters(mt_entry, &chain, cls2add,
2024fd8: 96 07 bf f0 add %fp, -16, %o3 <== NOT EXECUTED
2024fdc: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
2024fe0: 40 00 67 90 call 203ee20 <fat_scan_fat_for_free_clusters> <== NOT EXECUTED
2024fe4: 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)
2024fe8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2024fec: 12 80 00 0b bne 2025018 <fat_file_extend+0xd8> <== NOT EXECUTED
2024ff0: 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))
2024ff4: 12 80 00 0b bne 2025020 <fat_file_extend+0xe0> <== NOT EXECUTED
2024ff8: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
2024ffc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2025000: 12 80 00 09 bne 2025024 <fat_file_extend+0xe4> <== NOT EXECUTED
2025004: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOSPC);
2025008: 40 00 77 08 call 2042c28 <__errno> <== NOT EXECUTED
202500c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2025010: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED
2025014: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2025018: 81 c7 e0 08 ret <== NOT EXECUTED
202501c: 81 e8 00 00 restore <== NOT EXECUTED
/* check wether we satisfied request for 'cls2add' clusters */
if (cls2add != cls_added)
2025020: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED
2025024: 02 80 00 0b be 2025050 <fat_file_extend+0x110> <== NOT EXECUTED
2025028: 82 38 00 01 xnor %g0, %g1, %g1 <== NOT EXECUTED
*a_length = new_length -
202502c: c6 0c 60 08 ldub [ %l1 + 8 ], %g3 <== NOT EXECUTED
2025030: c4 14 60 06 lduh [ %l1 + 6 ], %g2 <== NOT EXECUTED
2025034: a6 00 40 13 add %g1, %l3, %l3 <== NOT EXECUTED
2025038: 82 00 bf ff add %g2, -1, %g1 <== NOT EXECUTED
202503c: a7 2c c0 03 sll %l3, %g3, %l3 <== NOT EXECUTED
2025040: a8 0d 00 01 and %l4, %g1, %l4 <== NOT EXECUTED
2025044: a6 26 80 13 sub %i2, %l3, %l3 <== NOT EXECUTED
2025048: a8 24 c0 14 sub %l3, %l4, %l4 <== NOT EXECUTED
202504c: 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 )
2025050: d6 06 60 18 ld [ %i1 + 0x18 ], %o3 <== NOT EXECUTED
2025054: 80 a2 e0 00 cmp %o3, 0 <== NOT EXECUTED
2025058: 32 80 00 07 bne,a 2025074 <fat_file_extend+0x134> <== NOT EXECUTED
202505c: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED
{
fat_fd->map.disk_cln = fat_fd->cln = chain;
2025060: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
fat_fd->map.file_cln = 0;
2025064: 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;
2025068: c2 26 60 38 st %g1, [ %i1 + 0x38 ] <== NOT EXECUTED
202506c: 10 80 00 18 b 20250cc <fat_file_extend+0x18c> <== NOT EXECUTED
2025070: 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)
2025074: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED
2025078: 02 80 00 04 be 2025088 <fat_file_extend+0x148> <== NOT EXECUTED
202507c: 96 02 ff ff add %o3, -1, %o3 <== NOT EXECUTED
{
old_last_cl = fat_fd->map.last_cln;
2025080: 10 80 00 0a b 20250a8 <fat_file_extend+0x168> <== NOT EXECUTED
2025084: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED
}
else
{
rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
2025088: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202508c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2025090: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
2025094: 7f ff ff 35 call 2024d68 <fat_file_ioctl> <== NOT EXECUTED
2025098: 98 07 bf f8 add %fp, -8, %o4 <== NOT EXECUTED
(fat_fd->fat_file_size - 1), &old_last_cl);
if ( rc != RC_OK )
202509c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20250a0: 12 80 00 1b bne 202510c <fat_file_extend+0x1cc> <== NOT EXECUTED
20250a4: 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);
20250a8: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
20250ac: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
20250b0: 40 00 65 fe call 203e8a8 <fat_set_fat_cluster> <== NOT EXECUTED
20250b4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if ( rc != RC_OK )
20250b8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20250bc: 12 80 00 14 bne 202510c <fat_file_extend+0x1cc> <== NOT EXECUTED
20250c0: 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);
20250c4: 40 00 02 54 call 2025a14 <fat_buf_release> <== NOT EXECUTED
20250c8: 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)
20250cc: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
20250d0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20250d4: 22 80 00 13 be,a 2025120 <fat_file_extend+0x1e0> <== NOT EXECUTED
20250d8: f4 26 60 18 st %i2, [ %i1 + 0x18 ] <== NOT EXECUTED
{
fat_fd->map.last_cln = last_cl;
20250dc: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED
if (fat_fd->fat_file_type == FAT_DIRECTORY)
20250e0: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
20250e4: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
20250e8: 12 80 00 0d bne 202511c <fat_file_extend+0x1dc> <== NOT EXECUTED
20250ec: c4 26 60 3c st %g2, [ %i1 + 0x3c ] <== NOT EXECUTED
{
rc = fat_init_clusters_chain(mt_entry, chain);
20250f0: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
20250f4: 40 00 03 df call 2026070 <fat_init_clusters_chain> <== NOT EXECUTED
20250f8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if ( rc != RC_OK )
20250fc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2025100: 22 80 00 08 be,a 2025120 <fat_file_extend+0x1e0> <== NOT EXECUTED
2025104: f4 26 60 18 st %i2, [ %i1 + 0x18 ] <== NOT EXECUTED
{
fat_free_fat_clusters_chain(mt_entry, chain);
2025108: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
202510c: 40 00 67 11 call 203ed50 <fat_free_fat_clusters_chain> <== NOT EXECUTED
2025110: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
2025114: 81 c7 e0 08 ret <== NOT EXECUTED
2025118: 81 e8 00 00 restore <== NOT EXECUTED
}
}
}
fat_fd->fat_file_size = new_length;
202511c: f4 26 60 18 st %i2, [ %i1 + 0x18 ] <== NOT EXECUTED
return RC_OK;
2025120: 81 c7 e0 08 ret <== NOT EXECUTED
2025124: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
2025128: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
202512c: 81 c7 e0 08 ret <== NOT EXECUTED
2025130: 81 e8 00 00 restore <== NOT EXECUTED
02024d68 <fat_file_ioctl>:
fat_file_ioctl(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd,
int cmd,
...)
{
2024d68: 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);
2024d6c: 82 07 a0 50 add %fp, 0x50, %g1 <== NOT EXECUTED
2024d70: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED
2024d74: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED
2024d78: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED
2024d7c: 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;
2024d80: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
uint32_t *ret;
va_list ap;
va_start(ap, cmd);
switch (cmd)
2024d84: 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,
...)
{
2024d88: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2024d8c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
uint32_t *ret;
va_list ap;
va_start(ap, cmd);
switch (cmd)
2024d90: 12 80 00 22 bne 2024e18 <fat_file_ioctl+0xb0> <== NOT EXECUTED
2024d94: 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 )
2024d98: 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 *);
2024d9c: 86 07 a0 58 add %fp, 0x58, %g3 <== NOT EXECUTED
/* sanity check */
if ( pos >= fat_fd->fat_file_size )
2024da0: 80 a6 c0 02 cmp %i3, %g2 <== NOT EXECUTED
2024da4: 0a 80 00 06 bcs 2024dbc <fat_file_ioctl+0x54> <== NOT EXECUTED
2024da8: c6 27 bf f8 st %g3, [ %fp + -8 ] <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
2024dac: 40 00 77 9f call 2042c28 <__errno> <== NOT EXECUTED
2024db0: 01 00 00 00 nop <== NOT EXECUTED
2024db4: 10 80 00 1c b 2024e24 <fat_file_ioctl+0xbc> <== NOT EXECUTED
2024db8: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
2024dbc: c4 06 60 20 ld [ %i1 + 0x20 ], %g2 <== NOT EXECUTED
2024dc0: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED
2024dc4: 32 80 00 0d bne,a 2024df8 <fat_file_ioctl+0x90> <== NOT EXECUTED
2024dc8: d4 08 60 08 ldub [ %g1 + 8 ], %o2 <== NOT EXECUTED
2024dcc: c4 06 60 24 ld [ %i1 + 0x24 ], %g2 <== NOT EXECUTED
2024dd0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2024dd4: 32 80 00 09 bne,a 2024df8 <fat_file_ioctl+0x90> <== NOT EXECUTED
2024dd8: d4 08 60 08 ldub [ %g1 + 8 ], %o2 <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
2024ddc: c4 08 60 0a ldub [ %g1 + 0xa ], %g2 <== NOT EXECUTED
2024de0: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED
2024de4: 22 80 00 05 be,a 2024df8 <fat_file_ioctl+0x90> <== NOT EXECUTED
2024de8: d4 08 60 08 ldub [ %g1 + 8 ], %o2 <== NOT EXECUTED
{
/* cluster 0 (zero) reserved for root dir */
*ret = 0;
2024dec: c0 27 00 00 clr [ %i4 ] <== NOT EXECUTED
return RC_OK;
2024df0: 10 80 00 0f b 2024e2c <fat_file_ioctl+0xc4> <== NOT EXECUTED
2024df4: 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);
2024df8: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
2024dfc: 7f ff ff 55 call 2024b50 <fat_file_lseek> <== NOT EXECUTED
2024e00: 95 36 c0 0a srl %i3, %o2, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
2024e04: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
2024e08: 12 80 00 09 bne 2024e2c <fat_file_ioctl+0xc4> <== NOT EXECUTED
2024e0c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
return rc;
*ret = cur_cln;
break;
2024e10: 10 80 00 07 b 2024e2c <fat_file_ioctl+0xc4> <== NOT EXECUTED
2024e14: c2 27 00 00 st %g1, [ %i4 ] <== NOT EXECUTED
default:
errno = EINVAL;
2024e18: 40 00 77 84 call 2042c28 <__errno> <== NOT EXECUTED
2024e1c: 01 00 00 00 nop <== NOT EXECUTED
2024e20: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
2024e24: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2024e28: 92 10 3f ff mov -1, %o1 <== NOT EXECUTED
rc = -1;
break;
}
return rc;
}
2024e2c: 81 c7 e0 08 ret <== NOT EXECUTED
2024e30: 91 e8 00 09 restore %g0, %o1, %o0 <== NOT EXECUTED
02024b50 <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
)
{
2024b50: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int rc = RC_OK;
if (file_cln == fat_fd->map.file_cln)
2024b54: e2 06 60 34 ld [ %i1 + 0x34 ], %l1 <== NOT EXECUTED
2024b58: 80 a6 80 11 cmp %i2, %l1 <== NOT EXECUTED
2024b5c: 12 80 00 06 bne 2024b74 <fat_file_lseek+0x24> <== NOT EXECUTED
2024b60: 84 10 20 00 clr %g2 <== NOT EXECUTED
*disk_cln = fat_fd->map.disk_cln;
2024b64: c2 06 60 38 ld [ %i1 + 0x38 ], %g1 <== NOT EXECUTED
2024b68: 86 10 20 00 clr %g3 <== NOT EXECUTED
2024b6c: 10 80 00 1f b 2024be8 <fat_file_lseek+0x98> <== NOT EXECUTED
2024b70: 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)
2024b74: 28 80 00 05 bleu,a 2024b88 <fat_file_lseek+0x38> <== NOT EXECUTED
2024b78: c2 06 60 1c ld [ %i1 + 0x1c ], %g1 <== NOT EXECUTED
{
cur_cln = fat_fd->map.disk_cln;
2024b7c: c2 06 60 38 ld [ %i1 + 0x38 ], %g1 <== NOT EXECUTED
count = file_cln - fat_fd->map.file_cln;
2024b80: 10 80 00 03 b 2024b8c <fat_file_lseek+0x3c> <== NOT EXECUTED
2024b84: a2 26 80 11 sub %i2, %l1, %l1 <== NOT EXECUTED
}
else
{
cur_cln = fat_fd->cln;
2024b88: a2 10 00 1a mov %i2, %l1 <== NOT EXECUTED
2024b8c: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
2024b90: a0 10 20 00 clr %l0 <== NOT EXECUTED
count = file_cln;
}
/* skip over the clusters */
for (i = 0; i < count; i++)
2024b94: 10 80 00 0a b 2024bbc <fat_file_lseek+0x6c> <== NOT EXECUTED
2024b98: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
{
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
2024b9c: 40 00 67 f0 call 203eb5c <fat_get_fat_cluster> <== NOT EXECUTED
2024ba0: 01 00 00 00 nop <== NOT EXECUTED
if ( rc != RC_OK )
2024ba4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024ba8: 02 80 00 06 be 2024bc0 <fat_file_lseek+0x70> <== NOT EXECUTED
2024bac: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED
return rc;
2024bb0: 86 10 00 08 mov %o0, %g3 <== NOT EXECUTED
2024bb4: 10 80 00 0d b 2024be8 <fat_file_lseek+0x98> <== NOT EXECUTED
2024bb8: 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++)
2024bbc: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED
{
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
2024bc0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2024bc4: 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++)
2024bc8: a0 04 20 01 inc %l0 <== NOT EXECUTED
2024bcc: 0a bf ff f4 bcs 2024b9c <fat_file_lseek+0x4c> <== NOT EXECUTED
2024bd0: 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;
2024bd4: f4 26 60 34 st %i2, [ %i1 + 0x34 ] <== NOT EXECUTED
fat_fd->map.disk_cln = cur_cln;
2024bd8: d2 26 60 38 st %o1, [ %i1 + 0x38 ] <== NOT EXECUTED
*disk_cln = cur_cln;
2024bdc: d2 26 c0 00 st %o1, [ %i3 ] <== NOT EXECUTED
2024be0: 84 10 20 00 clr %g2 <== NOT EXECUTED
2024be4: 86 10 20 00 clr %g3 <== NOT EXECUTED
}
return RC_OK;
}
2024be8: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED
2024bec: 81 c7 e0 08 ret <== NOT EXECUTED
2024bf0: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
02024d14 <fat_file_mark_removed>:
void
fat_file_mark_removed(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
2024d14: 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) +
2024d18: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
2024d1c: 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)
2024d20: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
(pos->ofs >> FAT_SECTOR512_BITS)) << 4) +
2024d24: 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 );
2024d28: 7f ff a2 87 call 200d744 <_Chain_Extract> <== NOT EXECUTED
2024d2c: 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 );
2024d30: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED
2024d34: a3 34 60 05 srl %l1, 5, %l1 <== NOT EXECUTED
2024d38: a2 0c 60 01 and %l1, 1, %l1 <== NOT EXECUTED
2024d3c: 83 2c 60 04 sll %l1, 4, %g1 <== NOT EXECUTED
2024d40: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2024d44: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED
2024d48: a2 20 40 11 sub %g1, %l1, %l1 <== NOT EXECUTED
2024d4c: 7f ff a2 72 call 200d714 <_Chain_Append> <== NOT EXECUTED
2024d50: 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;
2024d54: c2 0e 60 30 ldub [ %i1 + 0x30 ], %g1 <== NOT EXECUTED
2024d58: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED
2024d5c: c2 2e 60 30 stb %g1, [ %i1 + 0x30 ] <== NOT EXECUTED
}
2024d60: 81 c7 e0 08 ret <== NOT EXECUTED
2024d64: 81 e8 00 00 restore <== NOT EXECUTED
02025654 <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
)
{
2025654: 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) +
2025658: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
202565c: 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)
2025660: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2025664: 02 80 00 11 be 20256a8 <fat_file_open+0x54> <== NOT EXECUTED
2025668: 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)) )
202566c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2025670: 32 80 00 08 bne,a 2025690 <fat_file_open+0x3c> <== NOT EXECUTED
2025674: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED
2025678: c4 0c 20 0a ldub [ %l0 + 0xa ], %g2 <== NOT EXECUTED
202567c: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED
2025680: 22 80 00 04 be,a 2025690 <fat_file_open+0x3c> <== NOT EXECUTED
2025684: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
2025688: 10 80 00 06 b 20256a0 <fat_file_open+0x4c> <== NOT EXECUTED
202568c: c6 04 20 1c ld [ %l0 + 0x1c ], %g3 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
2025690: c4 04 20 30 ld [ %l0 + 0x30 ], %g2 <== NOT EXECUTED
2025694: 82 00 7f fe add %g1, -2, %g1 <== NOT EXECUTED
2025698: 87 28 40 03 sll %g1, %g3, %g3 <== NOT EXECUTED
202569c: 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) <<
20256a0: e4 0c 20 03 ldub [ %l0 + 3 ], %l2 <== NOT EXECUTED
20256a4: 87 28 c0 12 sll %g3, %l2, %g3 <== NOT EXECUTED
(pos->ofs >> FAT_SECTOR512_BITS)) << 4) +
20256a8: 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;
20256ac: 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) +
20256b0: 89 30 60 05 srl %g1, 5, %g4 <== NOT EXECUTED
20256b4: a5 30 60 09 srl %g1, 9, %l2 <== NOT EXECUTED
20256b8: 88 09 20 0f and %g4, 0xf, %g4 <== NOT EXECUTED
20256bc: a4 00 c0 12 add %g3, %l2, %l2 <== NOT EXECUTED
20256c0: a5 2c a0 04 sll %l2, 4, %l2 <== NOT EXECUTED
20256c4: a4 04 80 04 add %l2, %g4, %l2 <== NOT EXECUTED
20256c8: 82 0c a0 01 and %l2, 1, %g1 <== NOT EXECUTED
20256cc: a7 28 60 04 sll %g1, 4, %l3 <== NOT EXECUTED
20256d0: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
20256d4: a6 24 c0 01 sub %l3, %g1, %l3 <== NOT EXECUTED
20256d8: c2 00 80 13 ld [ %g2 + %l3 ], %g1 <== NOT EXECUTED
20256dc: 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;
20256e0: 10 80 00 24 b 2025770 <fat_file_open+0x11c> <== NOT EXECUTED
20256e4: 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)
20256e8: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED
20256ec: 02 80 00 11 be 2025730 <fat_file_open+0xdc> <== NOT EXECUTED
20256f0: 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)) )
20256f4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
20256f8: 32 80 00 08 bne,a 2025718 <fat_file_open+0xc4> <== NOT EXECUTED
20256fc: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED
2025700: c6 0c 20 0a ldub [ %l0 + 0xa ], %g3 <== NOT EXECUTED
2025704: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED
2025708: 22 80 00 04 be,a 2025718 <fat_file_open+0xc4> <== NOT EXECUTED
202570c: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
2025710: 10 80 00 06 b 2025728 <fat_file_open+0xd4> <== NOT EXECUTED
2025714: c6 04 20 1c ld [ %l0 + 0x1c ], %g3 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
2025718: c8 04 20 30 ld [ %l0 + 0x30 ], %g4 <== NOT EXECUTED
202571c: 84 00 bf fe add %g2, -2, %g2 <== NOT EXECUTED
2025720: 87 28 80 03 sll %g2, %g3, %g3 <== NOT EXECUTED
2025724: 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) <<
2025728: c4 0c 20 03 ldub [ %l0 + 3 ], %g2 <== NOT EXECUTED
202572c: 87 28 c0 02 sll %g3, %g2, %g3 <== NOT EXECUTED
(pos->ofs >> FAT_SECTOR512_BITS)) << 4) +
2025730: 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)
2025734: 85 31 20 05 srl %g4, 5, %g2 <== NOT EXECUTED
2025738: 89 31 20 09 srl %g4, 9, %g4 <== NOT EXECUTED
202573c: 84 08 a0 0f and %g2, 0xf, %g2 <== NOT EXECUTED
2025740: 86 00 c0 04 add %g3, %g4, %g3 <== NOT EXECUTED
2025744: 87 28 e0 04 sll %g3, 4, %g3 <== NOT EXECUTED
2025748: 86 00 c0 02 add %g3, %g2, %g3 <== NOT EXECUTED
202574c: 80 a4 80 03 cmp %l2, %g3 <== NOT EXECUTED
2025750: 32 80 00 08 bne,a 2025770 <fat_file_open+0x11c> <== NOT EXECUTED
2025754: 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++;
2025758: 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;
202575c: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
lfat_fd->links_num++;
2025760: 84 00 a0 01 inc %g2 <== NOT EXECUTED
2025764: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED
return rc;
2025768: 81 c7 e0 08 ret <== NOT EXECUTED
202576c: 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) ; )
2025770: 80 a0 40 0d cmp %g1, %o5 <== NOT EXECUTED
2025774: 32 bf ff dd bne,a 20256e8 <fat_file_open+0x94> <== NOT EXECUTED
2025778: 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;
202577c: 10 80 00 57 b 20258d8 <fat_file_open+0x284> <== NOT EXECUTED
2025780: 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)
2025784: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED
2025788: 02 80 00 11 be 20257cc <fat_file_open+0x178> <== NOT EXECUTED
202578c: 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)) )
2025790: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2025794: 32 80 00 08 bne,a 20257b4 <fat_file_open+0x160> <== NOT EXECUTED
2025798: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED
202579c: c6 0c 20 0a ldub [ %l0 + 0xa ], %g3 <== NOT EXECUTED
20257a0: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED
20257a4: 22 80 00 04 be,a 20257b4 <fat_file_open+0x160> <== NOT EXECUTED
20257a8: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
20257ac: 10 80 00 06 b 20257c4 <fat_file_open+0x170> <== NOT EXECUTED
20257b0: c6 04 20 1c ld [ %l0 + 0x1c ], %g3 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
20257b4: c8 04 20 30 ld [ %l0 + 0x30 ], %g4 <== NOT EXECUTED
20257b8: 84 00 bf fe add %g2, -2, %g2 <== NOT EXECUTED
20257bc: 87 28 80 03 sll %g2, %g3, %g3 <== NOT EXECUTED
20257c0: 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) <<
20257c4: c4 0c 20 03 ldub [ %l0 + 3 ], %g2 <== NOT EXECUTED
20257c8: 87 28 c0 02 sll %g3, %g2, %g3 <== NOT EXECUTED
20257cc: 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)
20257d0: 85 31 20 05 srl %g4, 5, %g2 <== NOT EXECUTED
20257d4: 89 31 20 09 srl %g4, 9, %g4 <== NOT EXECUTED
20257d8: 84 08 a0 0f and %g2, 0xf, %g2 <== NOT EXECUTED
20257dc: 86 00 c0 04 add %g3, %g4, %g3 <== NOT EXECUTED
20257e0: 87 28 e0 04 sll %g3, 4, %g3 <== NOT EXECUTED
20257e4: 86 00 c0 02 add %g3, %g2, %g3 <== NOT EXECUTED
20257e8: 80 a4 80 03 cmp %l2, %g3 <== NOT EXECUTED
20257ec: 32 80 00 0a bne,a 2025814 <fat_file_open+0x1c0> <== NOT EXECUTED
20257f0: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED
{
if ( ((key2) == 0) || ((key2) == ffd->ino) )
20257f4: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
20257f8: 02 80 00 0b be 2025824 <fat_file_open+0x1d0> <== NOT EXECUTED
20257fc: a8 10 20 00 clr %l4 <== NOT EXECUTED
2025800: c4 00 60 0c ld [ %g1 + 0xc ], %g2 <== NOT EXECUTED
2025804: 80 a4 80 02 cmp %l2, %g2 <== NOT EXECUTED
2025808: 02 80 00 07 be 2025824 <fat_file_open+0x1d0> <== NOT EXECUTED
202580c: 01 00 00 00 nop <== NOT EXECUTED
{
*ret = (void *)the_node;
return 0;
}
}
the_node = the_node->next;
2025810: 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) ; )
2025814: 80 a0 40 0d cmp %g1, %o5 <== NOT EXECUTED
2025818: 32 bf ff db bne,a 2025784 <fat_file_open+0x130> <== NOT EXECUTED
202581c: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 <== NOT EXECUTED
2025820: 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));
2025824: 7f ff 8c 56 call 200897c <malloc> <== NOT EXECUTED
2025828: 90 10 20 44 mov 0x44, %o0 <== NOT EXECUTED
202582c: d0 26 80 00 st %o0, [ %i2 ] <== NOT EXECUTED
if ( lfat_fd == NULL )
2025830: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025834: 02 80 00 1c be 20258a4 <fat_file_open+0x250> <== NOT EXECUTED
2025838: 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));
202583c: 92 10 20 00 clr %o1 <== NOT EXECUTED
2025840: 40 00 82 d9 call 20463a4 <memset> <== NOT EXECUTED
2025844: 94 10 20 44 mov 0x44, %o2 <== NOT EXECUTED
lfat_fd->links_num = 1;
lfat_fd->flags &= ~FAT_FILE_REMOVED;
2025848: c2 0c 60 30 ldub [ %l1 + 0x30 ], %g1 <== NOT EXECUTED
lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE;
lfat_fd->dir_pos = *dir_pos;
202584c: 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;
2025850: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED
2025854: 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;
2025858: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
202585c: c2 24 60 08 st %g1, [ %l1 + 8 ] <== NOT EXECUTED
lfat_fd->flags &= ~FAT_FILE_REMOVED;
lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE;
2025860: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
lfat_fd->dir_pos = *dir_pos;
2025864: 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;
2025868: c2 24 60 3c st %g1, [ %l1 + 0x3c ] <== NOT EXECUTED
lfat_fd->dir_pos = *dir_pos;
202586c: 40 00 82 3b call 2046158 <memcpy> <== NOT EXECUTED
2025870: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
2025874: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED
2025878: 02 80 00 04 be 2025888 <fat_file_open+0x234> <== NOT EXECUTED
202587c: 01 00 00 00 nop <== NOT EXECUTED
lfat_fd->ino = key;
2025880: 10 80 00 0f b 20258bc <fat_file_open+0x268> <== NOT EXECUTED
2025884: e4 24 60 0c st %l2, [ %l1 + 0xc ] <== NOT EXECUTED
else
{
lfat_fd->ino = fat_get_unique_ino(mt_entry);
2025888: 40 00 00 2b call 2025934 <fat_get_unique_ino> <== NOT EXECUTED
202588c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if ( lfat_fd->ino == 0 )
2025890: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025894: 12 80 00 0a bne 20258bc <fat_file_open+0x268> <== NOT EXECUTED
2025898: d0 24 60 0c st %o0, [ %l1 + 0xc ] <== NOT EXECUTED
{
free((*fat_fd));
202589c: 7f ff 8a 71 call 2008260 <free> <== NOT EXECUTED
20258a0: 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 );
20258a4: 40 00 74 e1 call 2042c28 <__errno> <== NOT EXECUTED
20258a8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20258ac: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
20258b0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20258b4: 81 c7 e0 08 ret <== NOT EXECUTED
20258b8: 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 );
20258bc: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED
20258c0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20258c4: 90 02 00 13 add %o0, %l3, %o0 <== NOT EXECUTED
20258c8: 7f ff 9f 93 call 200d714 <_Chain_Append> <== NOT EXECUTED
20258cc: b0 10 20 00 clr %i0 <== NOT EXECUTED
* other fields of fat-file descriptor will be initialized on upper
* level
*/
return RC_OK;
}
20258d0: 81 c7 e0 08 ret <== NOT EXECUTED
20258d4: 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;
20258d8: c2 00 80 13 ld [ %g2 + %l3 ], %g1 <== NOT EXECUTED
20258dc: 84 00 80 13 add %g2, %l3, %g2 <== NOT EXECUTED
20258e0: 10 bf ff cd b 2025814 <fat_file_open+0x1c0> <== NOT EXECUTED
20258e4: 9a 00 a0 04 add %g2, 4, %o5 <== NOT EXECUTED
02025394 <fat_file_read>:
fat_file_fd_t *fat_fd,
uint32_t start,
uint32_t count,
uint8_t *buf
)
{
2025394: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
2025398: 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)
202539c: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
20253a0: 02 80 00 79 be 2025584 <fat_file_read+0x1f0> <== NOT EXECUTED
20253a4: 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 )
20253a8: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED
20253ac: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED
20253b0: 1a 80 00 75 bcc 2025584 <fat_file_read+0x1f0> <== NOT EXECUTED
20253b4: 80 a6 c0 01 cmp %i3, %g1 <== NOT EXECUTED
return FAT_EOF;
if ((count > fat_fd->fat_file_size) ||
20253b8: 38 80 00 07 bgu,a 20253d4 <fat_file_read+0x40> <== NOT EXECUTED
20253bc: b6 20 40 1a sub %g1, %i2, %i3 <== NOT EXECUTED
20253c0: 84 20 40 1b sub %g1, %i3, %g2 <== NOT EXECUTED
20253c4: 80 a6 80 02 cmp %i2, %g2 <== NOT EXECUTED
20253c8: 28 80 00 04 bleu,a 20253d8 <fat_file_read+0x44> <== NOT EXECUTED
20253cc: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
(start > fat_fd->fat_file_size - count))
count = fat_fd->fat_file_size - start;
20253d0: b6 20 40 1a sub %g1, %i2, %i3 <== NOT EXECUTED
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
20253d4: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
20253d8: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
20253dc: 12 80 00 23 bne 2025468 <fat_file_read+0xd4> <== NOT EXECUTED
20253e0: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
20253e4: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED
20253e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20253ec: 32 80 00 20 bne,a 202546c <fat_file_read+0xd8> <== NOT EXECUTED
20253f0: e6 0c 60 08 ldub [ %l1 + 8 ], %l3 <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
20253f4: c2 0c 60 0a ldub [ %l1 + 0xa ], %g1 <== NOT EXECUTED
20253f8: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
20253fc: 22 80 00 1c be,a 202546c <fat_file_read+0xd8> <== NOT EXECUTED
2025400: e6 0c 60 08 ldub [ %l1 + 8 ], %l3 <== NOT EXECUTED
{
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->cln);
2025404: 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)) )
2025408: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
202540c: 32 80 00 04 bne,a 202541c <fat_file_read+0x88> <== NOT EXECUTED
2025410: c8 0c 60 05 ldub [ %l1 + 5 ], %g4 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
2025414: 10 80 00 06 b 202542c <fat_file_read+0x98> <== NOT EXECUTED
2025418: c2 04 60 1c ld [ %l1 + 0x1c ], %g1 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
202541c: c6 04 60 30 ld [ %l1 + 0x30 ], %g3 <== NOT EXECUTED
2025420: 82 00 bf fe add %g2, -2, %g1 <== NOT EXECUTED
2025424: 83 28 40 04 sll %g1, %g4, %g1 <== NOT EXECUTED
2025428: 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);
202542c: d4 14 40 00 lduh [ %l1 ], %o2 <== NOT EXECUTED
2025430: c4 0c 60 02 ldub [ %l1 + 2 ], %g2 <== NOT EXECUTED
2025434: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED
2025438: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202543c: 94 0e 80 0a and %i2, %o2, %o2 <== NOT EXECUTED
2025440: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
2025444: b5 36 80 02 srl %i2, %g2, %i2 <== NOT EXECUTED
2025448: 98 10 00 1c mov %i4, %o4 <== NOT EXECUTED
202544c: 40 00 03 39 call 2026130 <_fat_block_read> <== NOT EXECUTED
2025450: 92 00 40 1a add %g1, %i2, %o1 <== NOT EXECUTED
if ( ret < 0 )
2025454: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025458: 16 80 00 4e bge 2025590 <fat_file_read+0x1fc> <== NOT EXECUTED
202545c: 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;
2025460: 10 80 00 4c b 2025590 <fat_file_read+0x1fc> <== NOT EXECUTED
2025464: 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;
2025468: e6 0c 60 08 ldub [ %l1 + 8 ], %l3 <== NOT EXECUTED
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
202546c: e4 14 60 06 lduh [ %l1 + 6 ], %l2 <== NOT EXECUTED
return -1;
return ret;
}
cl_start = start >> fs_info->vol.bpc_log2;
2025470: 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);
2025474: a8 07 bf fc add %fp, -4, %l4 <== NOT EXECUTED
2025478: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202547c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2025480: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
2025484: 7f ff fd b3 call 2024b50 <fat_file_lseek> <== NOT EXECUTED
2025488: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
if (rc != RC_OK)
202548c: 90 92 60 00 orcc %o1, 0, %o0 <== NOT EXECUTED
2025490: 12 80 00 40 bne 2025590 <fat_file_read+0x1fc> <== NOT EXECUTED
2025494: 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);
2025498: a5 34 a0 10 srl %l2, 0x10, %l2 <== NOT EXECUTED
202549c: a4 04 bf ff add %l2, -1, %l2 <== NOT EXECUTED
20254a0: aa 10 20 00 clr %l5 <== NOT EXECUTED
20254a4: b4 0e 80 12 and %i2, %l2, %i2 <== NOT EXECUTED
20254a8: a4 10 20 00 clr %l2 <== NOT EXECUTED
20254ac: 10 80 00 2a b 2025554 <fat_file_read+0x1c0> <== NOT EXECUTED
20254b0: 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));
20254b4: 96 22 c0 01 sub %o3, %g1, %o3 <== NOT EXECUTED
20254b8: 80 a2 c0 1b cmp %o3, %i3 <== NOT EXECUTED
20254bc: 08 80 00 03 bleu 20254c8 <fat_file_read+0x134> <== NOT EXECUTED
20254c0: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED
20254c4: 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)) )
20254c8: 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) +
20254cc: 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)) )
20254d0: 12 80 00 08 bne 20254f0 <fat_file_read+0x15c> <== NOT EXECUTED
20254d4: c4 04 20 34 ld [ %l0 + 0x34 ], %g2 <== NOT EXECUTED
20254d8: c6 08 a0 0a ldub [ %g2 + 0xa ], %g3 <== NOT EXECUTED
20254dc: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED
20254e0: 22 80 00 05 be,a 20254f4 <fat_file_read+0x160> <== NOT EXECUTED
20254e4: c6 00 a0 30 ld [ %g2 + 0x30 ], %g3 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
20254e8: 10 80 00 06 b 2025500 <fat_file_read+0x16c> <== NOT EXECUTED
20254ec: c4 00 a0 1c ld [ %g2 + 0x1c ], %g2 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
20254f0: c6 00 a0 30 ld [ %g2 + 0x30 ], %g3 <== NOT EXECUTED
20254f4: c8 08 a0 05 ldub [ %g2 + 5 ], %g4 <== NOT EXECUTED
20254f8: 85 2b 40 04 sll %o5, %g4, %g2 <== NOT EXECUTED
20254fc: 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);
2025500: d2 0c 60 02 ldub [ %l1 + 2 ], %o1 <== NOT EXECUTED
2025504: d4 14 40 00 lduh [ %l1 ], %o2 <== NOT EXECUTED
2025508: 93 30 40 09 srl %g1, %o1, %o1 <== NOT EXECUTED
202550c: 98 07 00 12 add %i4, %l2, %o4 <== NOT EXECUTED
2025510: 92 00 80 09 add %g2, %o1, %o1 <== NOT EXECUTED
2025514: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED
if ( ret < 0 )
return -1;
count -= c;
2025518: 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);
202551c: 94 08 40 0a and %g1, %o2, %o2 <== NOT EXECUTED
if ( ret < 0 )
return -1;
count -= c;
cmpltd += c;
2025520: 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);
2025524: 40 00 03 03 call 2026130 <_fat_block_read> <== NOT EXECUTED
2025528: 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);
202552c: 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 )
2025530: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025534: 06 80 00 16 bl 202558c <fat_file_read+0x1f8> <== NOT EXECUTED
2025538: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return -1;
count -= c;
cmpltd += c;
save_cln = cur_cln;
202553c: ea 07 bf fc ld [ %fp + -4 ], %l5 <== NOT EXECUTED
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
2025540: 40 00 65 87 call 203eb5c <fat_get_fat_cluster> <== NOT EXECUTED
2025544: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
if ( rc != RC_OK )
2025548: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202554c: 12 80 00 11 bne 2025590 <fat_file_read+0x1fc> <== NOT EXECUTED
2025550: 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)
2025554: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2025558: 32 bf ff d7 bne,a 20254b4 <fat_file_read+0x120> <== NOT EXECUTED
202555c: 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 +
2025560: c2 0c 60 08 ldub [ %l1 + 8 ], %g1 <== NOT EXECUTED
2025564: 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;
2025568: 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;
202556c: 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 +
2025570: a4 06 80 12 add %i2, %l2, %l2 <== NOT EXECUTED
2025574: a5 34 80 01 srl %l2, %g1, %l2 <== NOT EXECUTED
2025578: 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;
202557c: 10 80 00 05 b 2025590 <fat_file_read+0x1fc> <== NOT EXECUTED
2025580: e6 26 60 34 st %l3, [ %i1 + 0x34 ] <== NOT EXECUTED
2025584: 10 80 00 03 b 2025590 <fat_file_read+0x1fc> <== NOT EXECUTED
2025588: 90 10 20 00 clr %o0 <== NOT EXECUTED
202558c: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
}
2025590: 81 c7 e0 08 ret <== NOT EXECUTED
2025594: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02024a80 <fat_file_reopen>:
* RC_OK
*/
int
fat_file_reopen(fat_file_fd_t *fat_fd)
{
fat_fd->links_num++;
2024a80: c4 02 20 08 ld [ %o0 + 8 ], %g2 <== NOT EXECUTED
* RETURNS:
* RC_OK
*/
int
fat_file_reopen(fat_file_fd_t *fat_fd)
{
2024a84: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED
fat_fd->links_num++;
2024a88: 84 00 a0 01 inc %g2 <== NOT EXECUTED
return RC_OK;
}
2024a8c: 90 10 20 00 clr %o0 <== NOT EXECUTED
2024a90: 81 c3 e0 08 retl <== NOT EXECUTED
2024a94: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED
02024a98 <fat_file_size>:
int
fat_file_size(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
2024a98: 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)) &&
2024a9c: 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
)
{
2024aa0: 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)) &&
2024aa4: 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;
2024aa8: 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)) &&
2024aac: 12 80 00 0e bne 2024ae4 <fat_file_size+0x4c> <== NOT EXECUTED
2024ab0: c2 06 60 1c ld [ %i1 + 0x1c ], %g1 <== NOT EXECUTED
2024ab4: c4 06 60 24 ld [ %i1 + 0x24 ], %g2 <== NOT EXECUTED
2024ab8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2024abc: 32 80 00 0b bne,a 2024ae8 <fat_file_size+0x50> <== NOT EXECUTED
2024ac0: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
2024ac4: c4 0c 20 0a ldub [ %l0 + 0xa ], %g2 <== NOT EXECUTED
2024ac8: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED
2024acc: 22 80 00 07 be,a 2024ae8 <fat_file_size+0x50> <== NOT EXECUTED
2024ad0: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
{
fat_fd->fat_file_size = fs_info->vol.rdir_size;
2024ad4: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED
2024ad8: 90 10 20 00 clr %o0 <== NOT EXECUTED
return rc;
2024adc: 10 80 00 1b b 2024b48 <fat_file_size+0xb0> <== NOT EXECUTED
2024ae0: 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;
2024ae4: 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;
2024ae8: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED
2024aec: 82 10 20 00 clr %g1 <== NOT EXECUTED
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
2024af0: 10 80 00 0b b 2024b1c <fat_file_size+0x84> <== NOT EXECUTED
2024af4: 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);
2024af8: 40 00 68 19 call 203eb5c <fat_get_fat_cluster> <== NOT EXECUTED
2024afc: 01 00 00 00 nop <== NOT EXECUTED
if ( rc != RC_OK )
2024b00: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024b04: 12 80 00 11 bne 2024b48 <fat_file_size+0xb0> <== NOT EXECUTED
2024b08: 82 10 00 11 mov %l1, %g1 <== NOT EXECUTED
return rc;
fat_fd->fat_file_size += fs_info->vol.bpc;
2024b0c: c6 06 60 18 ld [ %i1 + 0x18 ], %g3 <== NOT EXECUTED
2024b10: c4 14 20 06 lduh [ %l0 + 6 ], %g2 <== NOT EXECUTED
2024b14: 84 00 c0 02 add %g3, %g2, %g2 <== NOT EXECUTED
2024b18: 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)
2024b1c: e2 07 bf fc ld [ %fp + -4 ], %l1 <== NOT EXECUTED
2024b20: c6 04 20 0c ld [ %l0 + 0xc ], %g3 <== NOT EXECUTED
2024b24: c4 04 20 10 ld [ %l0 + 0x10 ], %g2 <== NOT EXECUTED
2024b28: 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);
2024b2c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2024b30: 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)
2024b34: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED
2024b38: 0a bf ff f0 bcs 2024af8 <fat_file_size+0x60> <== NOT EXECUTED
2024b3c: 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;
2024b40: c2 26 60 3c st %g1, [ %i1 + 0x3c ] <== NOT EXECUTED
2024b44: 90 10 20 00 clr %o0 <== NOT EXECUTED
return rc;
}
2024b48: 81 c7 e0 08 ret <== NOT EXECUTED
2024b4c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02024e34 <fat_file_truncate>:
fat_file_truncate(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd,
uint32_t new_length
)
{
2024e34: 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 )
2024e38: 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
)
{
2024e3c: 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 )
2024e40: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED
2024e44: 1a 80 00 3c bcc 2024f34 <fat_file_truncate+0x100> <== NOT EXECUTED
2024e48: 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;
2024e4c: 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;
2024e50: 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);
2024e54: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2024e58: 12 80 00 0a bne 2024e80 <fat_file_truncate+0x4c> <== NOT EXECUTED
2024e5c: c6 27 bf f8 st %g3, [ %fp + -8 ] <== NOT EXECUTED
2024e60: 11 00 81 8c sethi %hi(0x2063000), %o0 <== NOT EXECUTED
2024e64: 15 00 81 8c sethi %hi(0x2063000), %o2 <== NOT EXECUTED
2024e68: 17 00 81 8c sethi %hi(0x2063000), %o3 <== NOT EXECUTED
2024e6c: 90 12 22 60 or %o0, 0x260, %o0 <== NOT EXECUTED
2024e70: 94 12 a2 c8 or %o2, 0x2c8, %o2 <== NOT EXECUTED
2024e74: 96 12 e2 b0 or %o3, 0x2b0, %o3 <== NOT EXECUTED
2024e78: 40 00 0d 68 call 2028418 <__assert_func> <== NOT EXECUTED
2024e7c: 92 10 22 6d mov 0x26d, %o1 <== NOT EXECUTED
cl_start = (new_length + fs_info->vol.bpc - 1) >> fs_info->vol.bpc_log2;
2024e80: c6 10 a0 06 lduh [ %g2 + 6 ], %g3 <== NOT EXECUTED
2024e84: c4 08 a0 08 ldub [ %g2 + 8 ], %g2 <== NOT EXECUTED
2024e88: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED
2024e8c: b4 00 c0 1a add %g3, %i2, %i2 <== NOT EXECUTED
2024e90: b5 36 80 02 srl %i2, %g2, %i2 <== NOT EXECUTED
if ((cl_start << fs_info->vol.bpc_log2) >= fat_fd->fat_file_size)
2024e94: 85 2e 80 02 sll %i2, %g2, %g2 <== NOT EXECUTED
2024e98: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2024e9c: 1a 80 00 26 bcc 2024f34 <fat_file_truncate+0x100> <== NOT EXECUTED
2024ea0: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
return RC_OK;
if (cl_start != 0)
2024ea4: 02 80 00 0a be 2024ecc <fat_file_truncate+0x98> <== NOT EXECUTED
2024ea8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rc = fat_file_lseek(mt_entry, fat_fd, cl_start - 1, &new_last_cln);
2024eac: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2024eb0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2024eb4: 94 06 bf ff add %i2, -1, %o2 <== NOT EXECUTED
2024eb8: 7f ff ff 26 call 2024b50 <fat_file_lseek> <== NOT EXECUTED
2024ebc: 96 07 bf f8 add %fp, -8, %o3 <== NOT EXECUTED
if (rc != RC_OK)
2024ec0: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
2024ec4: 12 80 00 1d bne 2024f38 <fat_file_truncate+0x104> <== NOT EXECUTED
2024ec8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
}
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
2024ecc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2024ed0: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2024ed4: 7f ff ff 1f call 2024b50 <fat_file_lseek> <== NOT EXECUTED
2024ed8: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
if (rc != RC_OK)
2024edc: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
2024ee0: 12 80 00 16 bne 2024f38 <fat_file_truncate+0x104> <== NOT EXECUTED
2024ee4: 01 00 00 00 nop <== NOT EXECUTED
return rc;
rc = fat_free_fat_clusters_chain(mt_entry, cur_cln);
2024ee8: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
2024eec: 40 00 67 99 call 203ed50 <fat_free_fat_clusters_chain> <== NOT EXECUTED
2024ef0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc != RC_OK)
2024ef4: 92 92 20 00 orcc %o0, 0, %o1 <== NOT EXECUTED
2024ef8: 12 80 00 10 bne 2024f38 <fat_file_truncate+0x104> <== NOT EXECUTED
2024efc: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
return rc;
if (cl_start != 0)
2024f00: 02 80 00 0e be 2024f38 <fat_file_truncate+0x104> <== NOT EXECUTED
2024f04: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rc = fat_set_fat_cluster(mt_entry, new_last_cln, FAT_GENFAT_EOC);
2024f08: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
2024f0c: 40 00 66 67 call 203e8a8 <fat_set_fat_cluster> <== NOT EXECUTED
2024f10: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
2024f14: 92 92 20 00 orcc %o0, 0, %o1 <== NOT EXECUTED
2024f18: 12 80 00 08 bne 2024f38 <fat_file_truncate+0x104> <== NOT EXECUTED
2024f1c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
return rc;
fat_fd->map.file_cln = cl_start - 1;
2024f20: 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;
2024f24: 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;
2024f28: f4 26 60 34 st %i2, [ %i1 + 0x34 ] <== NOT EXECUTED
fat_fd->map.disk_cln = new_last_cln;
2024f2c: 10 80 00 03 b 2024f38 <fat_file_truncate+0x104> <== NOT EXECUTED
2024f30: c2 26 60 38 st %g1, [ %i1 + 0x38 ] <== NOT EXECUTED
fat_fd->map.last_cln = new_last_cln;
2024f34: 92 10 20 00 clr %o1 <== NOT EXECUTED
}
return RC_OK;
}
2024f38: 81 c7 e0 08 ret <== NOT EXECUTED
2024f3c: 91 e8 00 09 restore %g0, %o1, %o0 <== NOT EXECUTED
02025134 <fat_file_write>:
fat_file_fd_t *fat_fd,
uint32_t start,
uint32_t count,
const uint8_t *buf
)
{
2025134: 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 )
2025138: 90 10 20 00 clr %o0 <== NOT EXECUTED
fat_file_fd_t *fat_fd,
uint32_t start,
uint32_t count,
const uint8_t *buf
)
{
202513c: 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 )
2025140: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2025144: 02 80 00 92 be 202538c <fat_file_write+0x258> <== NOT EXECUTED
2025148: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED
return cmpltd;
if ( start > fat_fd->fat_file_size )
202514c: 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;
2025150: 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 )
2025154: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED
2025158: 18 80 00 09 bgu 202517c <fat_file_write+0x48> <== NOT EXECUTED
202515c: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
if ((count > fat_fd->size_limit) ||
2025160: c2 06 60 14 ld [ %i1 + 0x14 ], %g1 <== NOT EXECUTED
2025164: 80 a6 c0 01 cmp %i3, %g1 <== NOT EXECUTED
2025168: 18 80 00 05 bgu 202517c <fat_file_write+0x48> <== NOT EXECUTED
202516c: 82 20 40 1b sub %g1, %i3, %g1 <== NOT EXECUTED
2025170: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED
2025174: 08 80 00 07 bleu 2025190 <fat_file_write+0x5c> <== NOT EXECUTED
2025178: a4 06 c0 1a add %i3, %i2, %l2 <== NOT EXECUTED
(start > fat_fd->size_limit - count))
rtems_set_errno_and_return_minus_one( EIO );
202517c: 40 00 76 ab call 2042c28 <__errno> <== NOT EXECUTED
2025180: 01 00 00 00 nop <== NOT EXECUTED
2025184: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
2025188: 10 80 00 80 b 2025388 <fat_file_write+0x254> <== NOT EXECUTED
202518c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
rc = fat_file_extend(mt_entry, fat_fd, start + count, &c);
2025190: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2025194: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2025198: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
202519c: 7f ff ff 69 call 2024f40 <fat_file_extend> <== NOT EXECUTED
20251a0: 96 07 bf f8 add %fp, -8, %o3 <== NOT EXECUTED
if (rc != RC_OK)
20251a4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20251a8: 12 80 00 79 bne 202538c <fat_file_write+0x258> <== NOT EXECUTED
20251ac: 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))
20251b0: 80 a0 40 12 cmp %g1, %l2 <== NOT EXECUTED
20251b4: 32 80 00 02 bne,a 20251bc <fat_file_write+0x88> <== NOT EXECUTED
20251b8: b6 20 40 1a sub %g1, %i2, %i3 <== NOT EXECUTED
count = c - start;
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
20251bc: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
20251c0: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
20251c4: 32 80 00 28 bne,a 2025264 <fat_file_write+0x130> <== NOT EXECUTED
20251c8: e6 0c 60 08 ldub [ %l1 + 8 ], %l3 <== NOT EXECUTED
20251cc: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED
20251d0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20251d4: 32 80 00 24 bne,a 2025264 <fat_file_write+0x130> <== NOT EXECUTED
20251d8: e6 0c 60 08 ldub [ %l1 + 8 ], %l3 <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
20251dc: c2 0c 60 0a ldub [ %l1 + 0xa ], %g1 <== NOT EXECUTED
20251e0: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
20251e4: 22 80 00 20 be,a 2025264 <fat_file_write+0x130> <== NOT EXECUTED
20251e8: e6 0c 60 08 ldub [ %l1 + 8 ], %l3 <== NOT EXECUTED
{
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->cln);
20251ec: 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)) )
20251f0: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
20251f4: 12 80 00 08 bne 2025214 <fat_file_write+0xe0> <== NOT EXECUTED
20251f8: c4 04 20 34 ld [ %l0 + 0x34 ], %g2 <== NOT EXECUTED
20251fc: c2 08 a0 0a ldub [ %g2 + 0xa ], %g1 <== NOT EXECUTED
2025200: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
2025204: 22 80 00 05 be,a 2025218 <fat_file_write+0xe4> <== NOT EXECUTED
2025208: c8 00 a0 30 ld [ %g2 + 0x30 ], %g4 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
202520c: 10 80 00 07 b 2025228 <fat_file_write+0xf4> <== NOT EXECUTED
2025210: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
2025214: c8 00 a0 30 ld [ %g2 + 0x30 ], %g4 <== NOT EXECUTED
2025218: c4 08 a0 05 ldub [ %g2 + 5 ], %g2 <== NOT EXECUTED
202521c: 82 00 ff fe add %g3, -2, %g1 <== NOT EXECUTED
2025220: 83 28 40 02 sll %g1, %g2, %g1 <== NOT EXECUTED
2025224: 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);
2025228: d4 14 40 00 lduh [ %l1 ], %o2 <== NOT EXECUTED
202522c: c4 0c 60 02 ldub [ %l1 + 2 ], %g2 <== NOT EXECUTED
2025230: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED
2025234: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2025238: 94 0e 80 0a and %i2, %o2, %o2 <== NOT EXECUTED
202523c: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
2025240: b5 36 80 02 srl %i2, %g2, %i2 <== NOT EXECUTED
2025244: 98 10 00 1c mov %i4, %o4 <== NOT EXECUTED
2025248: 40 00 02 d3 call 2025d94 <_fat_block_write> <== NOT EXECUTED
202524c: 92 00 40 1a add %g1, %i2, %o1 <== NOT EXECUTED
if ( ret < 0 )
2025250: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025254: 16 80 00 4e bge 202538c <fat_file_write+0x258> <== NOT EXECUTED
2025258: 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;
202525c: 10 80 00 4c b 202538c <fat_file_write+0x258> <== NOT EXECUTED
2025260: 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);
2025264: e4 14 60 06 lduh [ %l1 + 6 ], %l2 <== NOT EXECUTED
return -1;
return ret;
}
cl_start = start >> fs_info->vol.bpc_log2;
2025268: 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);
202526c: a8 07 bf fc add %fp, -4, %l4 <== NOT EXECUTED
2025270: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2025274: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2025278: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
202527c: 7f ff fe 35 call 2024b50 <fat_file_lseek> <== NOT EXECUTED
2025280: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
if (rc != RC_OK)
2025284: 90 92 60 00 orcc %o1, 0, %o0 <== NOT EXECUTED
2025288: 12 80 00 41 bne 202538c <fat_file_write+0x258> <== NOT EXECUTED
202528c: 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);
2025290: a5 34 a0 10 srl %l2, 0x10, %l2 <== NOT EXECUTED
2025294: a4 04 bf ff add %l2, -1, %l2 <== NOT EXECUTED
2025298: aa 10 20 00 clr %l5 <== NOT EXECUTED
202529c: b4 0e 80 12 and %i2, %l2, %i2 <== NOT EXECUTED
20252a0: a4 10 20 00 clr %l2 <== NOT EXECUTED
20252a4: 10 80 00 2d b 2025358 <fat_file_write+0x224> <== NOT EXECUTED
20252a8: 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));
20252ac: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED
20252b0: 80 a0 40 1b cmp %g1, %i3 <== NOT EXECUTED
20252b4: 08 80 00 03 bleu 20252c0 <fat_file_write+0x18c> <== NOT EXECUTED
20252b8: c6 07 bf fc ld [ %fp + -4 ], %g3 <== NOT EXECUTED
20252bc: 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)) )
20252c0: 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) +
20252c4: 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)) )
20252c8: 12 80 00 08 bne 20252e8 <fat_file_write+0x1b4> <== NOT EXECUTED
20252cc: c6 04 20 34 ld [ %l0 + 0x34 ], %g3 <== NOT EXECUTED
20252d0: c8 08 e0 0a ldub [ %g3 + 0xa ], %g4 <== NOT EXECUTED
20252d4: 80 89 20 03 btst 3, %g4 <== NOT EXECUTED
20252d8: 22 80 00 05 be,a 20252ec <fat_file_write+0x1b8> <== NOT EXECUTED
20252dc: c8 00 e0 30 ld [ %g3 + 0x30 ], %g4 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
20252e0: 10 80 00 06 b 20252f8 <fat_file_write+0x1c4> <== NOT EXECUTED
20252e4: c6 00 e0 1c ld [ %g3 + 0x1c ], %g3 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
20252e8: c8 00 e0 30 ld [ %g3 + 0x30 ], %g4 <== NOT EXECUTED
20252ec: da 08 e0 05 ldub [ %g3 + 5 ], %o5 <== NOT EXECUTED
20252f0: 87 2b 00 0d sll %o4, %o5, %g3 <== NOT EXECUTED
20252f4: 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);
20252f8: d2 0c 60 02 ldub [ %l1 + 2 ], %o1 <== NOT EXECUTED
byte = ofs & (fs_info->vol.bps - 1);
20252fc: 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);
2025300: 93 30 80 09 srl %g2, %o1, %o1 <== NOT EXECUTED
byte = ofs & (fs_info->vol.bps - 1);
2025304: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED
ret = _fat_block_write(mt_entry, sec, byte, c, buf + cmpltd);
2025308: 92 00 c0 09 add %g3, %o1, %o1 <== NOT EXECUTED
202530c: 94 08 80 0a and %g2, %o2, %o2 <== NOT EXECUTED
2025310: 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));
2025314: 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);
2025318: 98 07 00 12 add %i4, %l2, %o4 <== NOT EXECUTED
202531c: 40 00 02 9e call 2025d94 <_fat_block_write> <== NOT EXECUTED
2025320: 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);
2025324: 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 )
2025328: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202532c: 06 80 00 17 bl 2025388 <fat_file_write+0x254> <== NOT EXECUTED
2025330: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return -1;
count -= c;
cmpltd += c;
save_cln = cur_cln;
2025334: 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;
2025338: 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);
202533c: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
2025340: 40 00 66 07 call 203eb5c <fat_get_fat_cluster> <== NOT EXECUTED
2025344: a4 04 80 16 add %l2, %l6, %l2 <== NOT EXECUTED
if ( rc != RC_OK )
2025348: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202534c: 12 80 00 10 bne 202538c <fat_file_write+0x258> <== NOT EXECUTED
2025350: 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;
2025354: 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)
2025358: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
202535c: 32 bf ff d4 bne,a 20252ac <fat_file_write+0x178> <== NOT EXECUTED
2025360: 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 +
2025364: c2 0c 60 08 ldub [ %l1 + 8 ], %g1 <== NOT EXECUTED
2025368: 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;
202536c: 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;
2025370: 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 +
2025374: a4 06 80 12 add %i2, %l2, %l2 <== NOT EXECUTED
2025378: a5 34 80 01 srl %l2, %g1, %l2 <== NOT EXECUTED
202537c: 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;
2025380: 10 80 00 03 b 202538c <fat_file_write+0x258> <== NOT EXECUTED
2025384: e6 26 60 34 st %l3, [ %i1 + 0x34 ] <== NOT EXECUTED
2025388: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
}
202538c: 81 c7 e0 08 ret <== NOT EXECUTED
2025390: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203ed50 <fat_free_fat_clusters_chain>:
int
fat_free_fat_clusters_chain(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t chain
)
{
203ed50: 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;
203ed54: 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
)
{
203ed58: 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;
203ed5c: 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;
203ed60: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED
uint32_t cur_cln = chain;
uint32_t next_cln = 0;
203ed64: a6 10 00 19 mov %i1, %l3 <== NOT EXECUTED
203ed68: 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)
203ed6c: 10 80 00 1a b 203edd4 <fat_free_fat_clusters_chain+0x84> <== NOT EXECUTED
203ed70: aa 07 bf fc add %fp, -4, %l5 <== NOT EXECUTED
{
rc = fat_get_fat_cluster(mt_entry, cur_cln, &next_cln);
203ed74: 7f ff ff 7a call 203eb5c <fat_get_fat_cluster> <== NOT EXECUTED
203ed78: 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);
203ed7c: 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);
203ed80: 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);
203ed84: 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 )
203ed88: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
203ed8c: 02 80 00 0b be 203edb8 <fat_free_fat_clusters_chain+0x68> <== NOT EXECUTED
203ed90: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
if(fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)
203ed94: c2 04 60 40 ld [ %l1 + 0x40 ], %g1 <== NOT EXECUTED
203ed98: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED
203ed9c: 02 80 00 03 be 203eda8 <fat_free_fat_clusters_chain+0x58> <== NOT EXECUTED
203eda0: a4 04 80 01 add %l2, %g1, %l2 <== NOT EXECUTED
fs_info->vol.free_cls += freed_cls_cnt;
203eda4: e4 24 60 40 st %l2, [ %l1 + 0x40 ] <== NOT EXECUTED
fat_buf_release(fs_info);
203eda8: 7f ff 9b 1b call 2025a14 <fat_buf_release> <== NOT EXECUTED
203edac: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
return rc;
203edb0: 81 c7 e0 08 ret <== NOT EXECUTED
203edb4: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = fat_set_fat_cluster(mt_entry, cur_cln, FAT_GENFAT_FREE);
203edb8: 7f ff fe bc call 203e8a8 <fat_set_fat_cluster> <== NOT EXECUTED
203edbc: 01 00 00 00 nop <== NOT EXECUTED
if ( rc != RC_OK )
203edc0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203edc4: 02 80 00 03 be 203edd0 <fat_free_fat_clusters_chain+0x80> <== NOT EXECUTED
203edc8: e6 07 bf fc ld [ %fp + -4 ], %l3 <== NOT EXECUTED
203edcc: a8 10 00 08 mov %o0, %l4 <== NOT EXECUTED
rc1 = rc;
freed_cls_cnt++;
203edd0: 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)
203edd4: c4 04 60 0c ld [ %l1 + 0xc ], %g2 <== NOT EXECUTED
203edd8: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED
203eddc: 84 0c c0 02 and %l3, %g2, %g2 <== NOT EXECUTED
{
rc = fat_get_fat_cluster(mt_entry, cur_cln, &next_cln);
203ede0: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203ede4: 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)
203ede8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203edec: 0a bf ff e2 bcs 203ed74 <fat_free_fat_clusters_chain+0x24><== NOT EXECUTED
203edf0: 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)
203edf4: c2 04 60 40 ld [ %l1 + 0x40 ], %g1 <== NOT EXECUTED
203edf8: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED
203edfc: 02 80 00 04 be 203ee0c <fat_free_fat_clusters_chain+0xbc> <== NOT EXECUTED
203ee00: f2 24 60 44 st %i1, [ %l1 + 0x44 ] <== NOT EXECUTED
fs_info->vol.free_cls += freed_cls_cnt;
203ee04: a4 04 80 01 add %l2, %g1, %l2 <== NOT EXECUTED
203ee08: e4 24 60 40 st %l2, [ %l1 + 0x40 ] <== NOT EXECUTED
fat_buf_release(fs_info);
203ee0c: b0 10 00 14 mov %l4, %i0 <== NOT EXECUTED
203ee10: 7f ff 9b 01 call 2025a14 <fat_buf_release> <== NOT EXECUTED
203ee14: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
if (rc1 != RC_OK)
return rc1;
return RC_OK;
}
203ee18: 81 c7 e0 08 ret <== NOT EXECUTED
203ee1c: 81 e8 00 00 restore <== NOT EXECUTED
020258e8 <fat_free_unique_ino>:
void
fat_free_unique_ino(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t ino
)
{
20258e8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
20258ec: c4 06 20 34 ld [ %i0 + 0x34 ], %g2 <== NOT EXECUTED
FAT_SET_UNIQ_INO_FREE((ino - fs_info->uino_base), fs_info->uino);
20258f0: 9a 10 20 01 mov 1, %o5 <== NOT EXECUTED
20258f4: c2 00 a0 70 ld [ %g2 + 0x70 ], %g1 <== NOT EXECUTED
20258f8: c4 00 a0 7c ld [ %g2 + 0x7c ], %g2 <== NOT EXECUTED
20258fc: 84 26 40 02 sub %i1, %g2, %g2 <== NOT EXECUTED
2025900: 87 30 a0 03 srl %g2, 3, %g3 <== NOT EXECUTED
2025904: c8 08 40 03 ldub [ %g1 + %g3 ], %g4 <== NOT EXECUTED
2025908: 84 08 a0 07 and %g2, 7, %g2 <== NOT EXECUTED
202590c: 85 2b 40 02 sll %o5, %g2, %g2 <== NOT EXECUTED
2025910: 84 29 00 02 andn %g4, %g2, %g2 <== NOT EXECUTED
2025914: c4 28 40 03 stb %g2, [ %g1 + %g3 ] <== NOT EXECUTED
}
2025918: 81 c7 e0 08 ret <== NOT EXECUTED
202591c: 81 e8 00 00 restore <== NOT EXECUTED
0203eb5c <fat_get_fat_cluster>:
fat_get_fat_cluster(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
uint32_t *ret_val
)
{
203eb5c: 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;
203eb60: 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)) )
203eb64: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED
203eb68: 08 80 00 07 bleu 203eb84 <fat_get_fat_cluster+0x28> <== NOT EXECUTED
203eb6c: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
203eb70: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 <== NOT EXECUTED
203eb74: 82 00 60 01 inc %g1 <== NOT EXECUTED
203eb78: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
203eb7c: 28 80 00 08 bleu,a 203eb9c <fat_get_fat_cluster+0x40> <== NOT EXECUTED
203eb80: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
203eb84: 40 00 10 29 call 2042c28 <__errno> <== NOT EXECUTED
203eb88: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203eb8c: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203eb90: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203eb94: 81 c7 e0 08 ret <== NOT EXECUTED
203eb98: 81 e8 00 00 restore <== NOT EXECUTED
sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) +
203eb9c: 88 88 60 01 andcc %g1, 1, %g4 <== NOT EXECUTED
203eba0: 02 80 00 05 be 203ebb4 <fat_get_fat_cluster+0x58> <== NOT EXECUTED
203eba4: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
203eba8: 85 36 60 01 srl %i1, 1, %g2 <== NOT EXECUTED
203ebac: 10 80 00 05 b 203ebc0 <fat_get_fat_cluster+0x64> <== NOT EXECUTED
203ebb0: 84 00 80 19 add %g2, %i1, %g2 <== NOT EXECUTED
203ebb4: 02 80 00 03 be 203ebc0 <fat_get_fat_cluster+0x64> <== NOT EXECUTED
203ebb8: 85 2e 60 02 sll %i1, 2, %g2 <== NOT EXECUTED
203ebbc: 85 2e 60 01 sll %i1, 1, %g2 <== NOT EXECUTED
203ebc0: e6 0c 20 02 ldub [ %l0 + 2 ], %l3 <== NOT EXECUTED
203ebc4: c6 04 20 4c ld [ %l0 + 0x4c ], %g3 <== NOT EXECUTED
203ebc8: 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);
203ebcc: a3 36 60 01 srl %i1, 1, %l1 <== NOT EXECUTED
203ebd0: 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) +
203ebd4: 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);
203ebd8: 12 80 00 06 bne 203ebf0 <fat_get_fat_cluster+0x94> <== NOT EXECUTED
203ebdc: a2 04 40 19 add %l1, %i1, %l1 <== NOT EXECUTED
203ebe0: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
203ebe4: 02 80 00 03 be 203ebf0 <fat_get_fat_cluster+0x94> <== NOT EXECUTED
203ebe8: a3 2e 60 02 sll %i1, 2, %l1 <== NOT EXECUTED
203ebec: a3 2e 60 01 sll %i1, 1, %l1 <== NOT EXECUTED
203ebf0: e8 14 00 00 lduh [ %l0 ], %l4 <== NOT EXECUTED
rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &block0);
203ebf4: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
203ebf8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203ebfc: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203ec00: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203ec04: 7f ff 9b e5 call 2025b98 <fat_buf_access> <== NOT EXECUTED
203ec08: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
if (rc != RC_OK)
203ec0c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203ec10: 12 bf ff e1 bne 203eb94 <fat_get_fat_cluster+0x38> <== NOT EXECUTED
203ec14: a9 2d 20 10 sll %l4, 0x10, %l4 <== NOT EXECUTED
return rc;
switch ( fs_info->vol.type )
203ec18: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED
203ec1c: 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);
203ec20: a9 35 20 10 srl %l4, 0x10, %l4 <== NOT EXECUTED
203ec24: 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 )
203ec28: 02 80 00 29 be 203eccc <fat_get_fat_cluster+0x170> <== NOT EXECUTED
203ec2c: a2 0c 40 14 and %l1, %l4, %l1 <== NOT EXECUTED
203ec30: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED
203ec34: 02 80 00 30 be 203ecf4 <fat_get_fat_cluster+0x198> <== NOT EXECUTED
203ec38: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
203ec3c: 12 80 00 3f bne 203ed38 <fat_get_fat_cluster+0x1dc> <== NOT EXECUTED
203ec40: 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) )
203ec44: 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)));
203ec48: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 <== NOT EXECUTED
if ( ofs == (fs_info->vol.bps - 1) )
203ec4c: 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)));
203ec50: c2 08 80 11 ldub [ %g2 + %l1 ], %g1 <== NOT EXECUTED
if ( ofs == (fs_info->vol.bps - 1) )
203ec54: 80 a4 40 03 cmp %l1, %g3 <== NOT EXECUTED
203ec58: 12 80 00 11 bne 203ec9c <fat_get_fat_cluster+0x140> <== NOT EXECUTED
203ec5c: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
{
rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
203ec60: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203ec64: 92 04 e0 01 add %l3, 1, %o1 <== NOT EXECUTED
203ec68: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
203ec6c: 7f ff 9b cb call 2025b98 <fat_buf_access> <== NOT EXECUTED
203ec70: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
&block0);
if (rc != RC_OK)
203ec74: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203ec78: 02 80 00 04 be 203ec88 <fat_get_fat_cluster+0x12c> <== NOT EXECUTED
203ec7c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203ec80: 81 c7 e0 08 ret <== NOT EXECUTED
203ec84: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
return rc;
*ret_val |= (*((uint8_t *)(block0->buffer)))<<8;
203ec88: c4 06 80 00 ld [ %i2 ], %g2 <== NOT EXECUTED
203ec8c: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
203ec90: c2 08 40 00 ldub [ %g1 ], %g1 <== NOT EXECUTED
203ec94: 10 80 00 05 b 203eca8 <fat_get_fat_cluster+0x14c> <== NOT EXECUTED
203ec98: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
}
else
{
*ret_val |= (*((uint8_t *)(block0->buffer + ofs + 1)))<<8;
203ec9c: a2 00 80 11 add %g2, %l1, %l1 <== NOT EXECUTED
203eca0: c4 0c 60 01 ldub [ %l1 + 1 ], %g2 <== NOT EXECUTED
203eca4: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203eca8: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
203ecac: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
}
if ( FAT_CLUSTER_IS_ODD(cln) )
203ecb0: 80 8e 60 01 btst 1, %i1 <== NOT EXECUTED
203ecb4: 02 80 00 04 be 203ecc4 <fat_get_fat_cluster+0x168> <== NOT EXECUTED
203ecb8: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
*ret_val = (*ret_val) >> FAT12_SHIFT;
203ecbc: 10 80 00 1c b 203ed2c <fat_get_fat_cluster+0x1d0> <== NOT EXECUTED
203ecc0: 83 30 60 04 srl %g1, 4, %g1 <== NOT EXECUTED
else
*ret_val = (*ret_val) & FAT_FAT12_MASK;
203ecc4: 10 80 00 1a b 203ed2c <fat_get_fat_cluster+0x1d0> <== NOT EXECUTED
203ecc8: 82 08 6f ff and %g1, 0xfff, %g1 <== NOT EXECUTED
break;
case FAT_FAT16:
*ret_val = *((uint16_t *)(block0->buffer + ofs));
203eccc: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
*ret_val = CF_LE_W(*ret_val);
203ecd0: 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));
203ecd4: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
*ret_val = CF_LE_W(*ret_val);
203ecd8: 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));
203ecdc: c2 10 40 11 lduh [ %g1 + %l1 ], %g1 <== NOT EXECUTED
*ret_val = CF_LE_W(*ret_val);
203ece0: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
203ece4: 85 30 60 18 srl %g1, 0x18, %g2 <== NOT EXECUTED
203ece8: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED
203ecec: 10 80 00 0f b 203ed28 <fat_get_fat_cluster+0x1cc> <== NOT EXECUTED
203ecf0: 82 08 40 03 and %g1, %g3, %g1 <== NOT EXECUTED
break;
case FAT_FAT32:
*ret_val = *((uint32_t *)(block0->buffer + ofs));
203ecf4: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203ecf8: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
203ecfc: c2 00 40 11 ld [ %g1 + %l1 ], %g1 <== NOT EXECUTED
*ret_val = CF_LE_L(*ret_val);
203ed00: 87 30 60 18 srl %g1, 0x18, %g3 <== NOT EXECUTED
203ed04: 85 30 60 10 srl %g1, 0x10, %g2 <== NOT EXECUTED
203ed08: 89 28 60 18 sll %g1, 0x18, %g4 <== NOT EXECUTED
203ed0c: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
203ed10: 88 11 00 03 or %g4, %g3, %g4 <== NOT EXECUTED
203ed14: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203ed18: 87 30 60 08 srl %g1, 8, %g3 <== NOT EXECUTED
203ed1c: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED
203ed20: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
203ed24: 82 11 00 03 or %g4, %g3, %g1 <== NOT EXECUTED
203ed28: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
203ed2c: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
break;
203ed30: 81 c7 e0 08 ret <== NOT EXECUTED
203ed34: 81 e8 00 00 restore <== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one(EIO);
203ed38: 40 00 0f bc call 2042c28 <__errno> <== NOT EXECUTED
203ed3c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203ed40: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203ed44: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
break;
}
return RC_OK;
}
203ed48: 81 c7 e0 08 ret <== NOT EXECUTED
203ed4c: 81 e8 00 00 restore <== NOT EXECUTED
02025934 <fat_get_unique_ino>:
* 0 means FAILED !!!
*
*/
uint32_t
fat_get_unique_ino(rtems_filesystem_mount_table_entry_t *mt_entry)
{
2025934: 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))
2025938: 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;
202593c: 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))
2025940: 10 80 00 30 b 2025a00 <fat_get_unique_ino+0xcc> <== NOT EXECUTED
2025944: 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))
2025948: c6 04 20 70 ld [ %l0 + 0x70 ], %g3 <== NOT EXECUTED
202594c: 85 31 20 03 srl %g4, 3, %g2 <== NOT EXECUTED
2025950: 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++;
2025954: 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))
2025958: d8 08 c0 02 ldub [ %g3 + %g2 ], %o4 <== NOT EXECUTED
202595c: 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++)
2025960: 82 00 60 01 inc %g1 <== NOT EXECUTED
{
if (!FAT_UNIQ_INO_IS_BUSY(fs_info->index, fs_info->uino))
2025964: 97 3a c0 04 sra %o3, %g4, %o3 <== NOT EXECUTED
2025968: 80 8a e0 01 btst 1, %o3 <== NOT EXECUTED
202596c: 12 80 00 0a bne 2025994 <fat_get_unique_ino+0x60> <== NOT EXECUTED
2025970: 84 00 c0 02 add %g3, %g2, %g2 <== NOT EXECUTED
{
FAT_SET_UNIQ_INO_BUSY(fs_info->index, fs_info->uino);
2025974: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2025978: 89 28 40 04 sll %g1, %g4, %g4 <== NOT EXECUTED
202597c: 88 11 00 0c or %g4, %o4, %g4 <== NOT EXECUTED
2025980: c8 28 80 00 stb %g4, [ %g2 ] <== NOT EXECUTED
return (fs_info->uino_base + fs_info->index);
2025984: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
2025988: f0 04 20 74 ld [ %l0 + 0x74 ], %i0 <== NOT EXECUTED
202598c: 81 c7 e0 08 ret <== NOT EXECUTED
2025990: 91 ee 00 01 restore %i0, %g1, %o0 <== NOT EXECUTED
}
fs_info->index++;
if (fs_info->index >= fs_info->uino_pool_size)
2025994: c4 04 20 78 ld [ %l0 + 0x78 ], %g2 <== NOT EXECUTED
2025998: 80 a3 40 02 cmp %o5, %g2 <== NOT EXECUTED
202599c: 0a 80 00 03 bcs 20259a8 <fat_get_unique_ino+0x74> <== NOT EXECUTED
20259a0: da 24 20 74 st %o5, [ %l0 + 0x74 ] <== NOT EXECUTED
fs_info->index = 0;
20259a4: 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++)
20259a8: 80 a0 40 09 cmp %g1, %o1 <== NOT EXECUTED
20259ac: 2a bf ff e7 bcs,a 2025948 <fat_get_unique_ino+0x14> <== NOT EXECUTED
20259b0: 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))
20259b4: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
20259b8: 93 2a 60 01 sll %o1, 1, %o1 <== NOT EXECUTED
20259bc: 82 24 40 01 sub %l1, %g1, %g1 <== NOT EXECUTED
20259c0: 80 a2 40 01 cmp %o1, %g1 <== NOT EXECUTED
20259c4: 1a 80 00 12 bcc 2025a0c <fat_get_unique_ino+0xd8> <== NOT EXECUTED
20259c8: 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);
20259cc: d0 04 20 70 ld [ %l0 + 0x70 ], %o0 <== NOT EXECUTED
20259d0: 7f ff 8f 86 call 20097e8 <realloc> <== NOT EXECUTED
20259d4: d2 24 20 78 st %o1, [ %l0 + 0x78 ] <== NOT EXECUTED
20259d8: d0 24 20 70 st %o0, [ %l0 + 0x70 ] <== NOT EXECUTED
if (fs_info->uino != NULL)
20259dc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20259e0: 02 80 00 05 be 20259f4 <fat_get_unique_ino+0xc0> <== NOT EXECUTED
20259e4: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
fs_info->index = fs_info->uino_pool_size;
20259e8: c4 04 20 78 ld [ %l0 + 0x78 ], %g2 <== NOT EXECUTED
20259ec: 82 10 20 00 clr %g1 <== NOT EXECUTED
20259f0: 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)
20259f4: 80 88 60 ff btst 0xff, %g1 <== NOT EXECUTED
20259f8: 12 80 00 05 bne 2025a0c <fat_get_unique_ino+0xd8> <== NOT EXECUTED
20259fc: 01 00 00 00 nop <== NOT EXECUTED
{
for (j = 0; j < fs_info->uino_pool_size; j++)
2025a00: d2 04 20 78 ld [ %l0 + 0x78 ], %o1 <== NOT EXECUTED
2025a04: 10 bf ff e9 b 20259a8 <fat_get_unique_ino+0x74> <== NOT EXECUTED
2025a08: 82 10 20 00 clr %g1 <== NOT EXECUTED
}
else
resrc_unsuff = true;
}
return 0;
}
2025a0c: 81 c7 e0 08 ret <== NOT EXECUTED
2025a10: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
02026070 <fat_init_clusters_chain>:
int
fat_init_clusters_chain(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t start_cln
)
{
2026070: 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;
2026074: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
uint32_t cur_cln = start_cln;
2026078: f2 27 bf fc st %i1, [ %fp + -4 ] <== NOT EXECUTED
char *buf;
buf = calloc(fs_info->vol.bpc, sizeof(char));
202607c: d0 14 20 06 lduh [ %l0 + 6 ], %o0 <== NOT EXECUTED
2026080: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2026084: 7f ff 86 e8 call 2007c24 <calloc> <== NOT EXECUTED
2026088: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
if ( buf == NULL )
202608c: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2026090: 12 80 00 1c bne 2026100 <fat_init_clusters_chain+0x90> <== NOT EXECUTED
2026094: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
2026098: 40 00 72 e4 call 2042c28 <__errno> <== NOT EXECUTED
202609c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20260a0: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
20260a4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20260a8: 81 c7 e0 08 ret <== NOT EXECUTED
20260ac: 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);
20260b0: 7f ff ff d9 call 2026014 <fat_cluster_write> <== NOT EXECUTED
20260b4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
{
free(buf);
return -1;
}
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
20260b8: 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 )
20260bc: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED
20260c0: 12 80 00 07 bne 20260dc <fat_init_clusters_chain+0x6c> <== NOT EXECUTED
20260c4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
{
free(buf);
20260c8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
20260cc: 7f ff 88 65 call 2008260 <free> <== NOT EXECUTED
20260d0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return -1;
20260d4: 81 c7 e0 08 ret <== NOT EXECUTED
20260d8: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
20260dc: 40 00 62 a0 call 203eb5c <fat_get_fat_cluster> <== NOT EXECUTED
20260e0: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
if ( rc != RC_OK )
20260e4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20260e8: 02 80 00 07 be 2026104 <fat_init_clusters_chain+0x94> <== NOT EXECUTED
20260ec: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
{
free(buf);
20260f0: 7f ff 88 5c call 2008260 <free> <== NOT EXECUTED
20260f4: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
return rc;
20260f8: 81 c7 e0 08 ret <== NOT EXECUTED
20260fc: 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)
2026100: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
2026104: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED
2026108: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
202610c: 84 0a 40 02 and %o1, %g2, %g2 <== NOT EXECUTED
2026110: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2026114: 0a bf ff e7 bcs 20260b0 <fat_init_clusters_chain+0x40> <== NOT EXECUTED
2026118: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
free(buf);
return rc;
}
}
free(buf);
202611c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2026120: 7f ff 88 50 call 2008260 <free> <== NOT EXECUTED
2026124: b0 10 20 00 clr %i0 <== NOT EXECUTED
return rc;
}
2026128: 81 c7 e0 08 ret <== NOT EXECUTED
202612c: 81 e8 00 00 restore <== NOT EXECUTED
020261b4 <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)
{
20261b4: 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);
20261b8: 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;
20261bc: 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)
{
20261c0: 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;
20261c4: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
rc = stat(mt_entry->dev, &stat_buf);
20261c8: 7f ff 8e 67 call 2009b64 <stat> <== NOT EXECUTED
20261cc: 92 07 bf a8 add %fp, -88, %o1 <== NOT EXECUTED
if (rc == -1)
20261d0: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED
20261d4: 02 80 01 4c be 2026704 <fat_init_volume_info+0x550> <== NOT EXECUTED
20261d8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
return rc;
/* Must be a block device. */
if (!S_ISBLK(stat_buf.st_mode))
20261dc: c4 07 bf b4 ld [ %fp + -76 ], %g2 <== NOT EXECUTED
20261e0: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
20261e4: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED
20261e8: 03 00 00 18 sethi %hi(0x6000), %g1 <== NOT EXECUTED
20261ec: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
20261f0: 22 80 00 06 be,a 2026208 <fat_init_volume_info+0x54> <== NOT EXECUTED
20261f4: d0 1f bf c0 ldd [ %fp + -64 ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOTTY);
20261f8: 40 00 72 8c call 2042c28 <__errno> <== NOT EXECUTED
20261fc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2026200: 10 80 01 92 b 2026848 <fat_init_volume_info+0x694> <== NOT EXECUTED
2026204: 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);
2026208: 7f ff 83 4d call 2006f3c <rtems_disk_obtain> <== NOT EXECUTED
202620c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
if (vol->dd == NULL)
2026210: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2026214: 02 80 00 16 be 202626c <fat_init_volume_info+0xb8> <== NOT EXECUTED
2026218: d0 24 20 60 st %o0, [ %l0 + 0x60 ] <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
vol->dev = stat_buf.st_rdev;
202621c: 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);
2026220: 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;
2026224: 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);
2026228: 7f ff 7e a1 call 2005cac <rtems_bdbuf_read> <== NOT EXECUTED
202622c: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2026230: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2026234: 12 80 00 0b bne 2026260 <fat_init_volume_info+0xac> <== NOT EXECUTED
2026238: 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);
202623c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2026240: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
2026244: 40 00 7f c5 call 2046158 <memcpy> <== NOT EXECUTED
2026248: 90 07 bf 48 add %fp, -184, %o0 <== NOT EXECUTED
sc = rtems_bdbuf_release( block);
202624c: 7f ff 7a 00 call 2004a4c <rtems_bdbuf_release> <== NOT EXECUTED
2026250: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2026254: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2026258: 02 80 00 09 be 202627c <fat_init_volume_info+0xc8> <== NOT EXECUTED
202625c: c4 0f bf 54 ldub [ %fp + -172 ], %g2 <== NOT EXECUTED
{
rtems_disk_release(vol->dd);
2026260: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
2026264: 7f ff 83 24 call 2006ef4 <rtems_disk_release> <== NOT EXECUTED
2026268: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
202626c: 40 00 72 6f call 2042c28 <__errno> <== NOT EXECUTED
2026270: 01 00 00 00 nop <== NOT EXECUTED
2026274: 10 80 01 75 b 2026848 <fat_init_volume_info+0x694> <== NOT EXECUTED
2026278: 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);
202627c: c6 0f bf 53 ldub [ %fp + -173 ], %g3 <== NOT EXECUTED
2026280: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2026284: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
if ( (vol->bps != 512) &&
2026288: 83 28 a0 10 sll %g2, 0x10, %g1 <== NOT EXECUTED
202628c: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED
2026290: 80 a0 64 00 cmp %g1, 0x400 <== NOT EXECUTED
2026294: 02 80 00 0b be 20262c0 <fat_init_volume_info+0x10c> <== NOT EXECUTED
2026298: c4 34 00 00 sth %g2, [ %l0 ] <== NOT EXECUTED
202629c: 80 a0 62 00 cmp %g1, 0x200 <== NOT EXECUTED
20262a0: 22 80 00 09 be,a 20262c4 <fat_init_volume_info+0x110> <== NOT EXECUTED
20262a4: 83 28 a0 10 sll %g2, 0x10, %g1 <== NOT EXECUTED
20262a8: 80 a0 68 00 cmp %g1, 0x800 <== NOT EXECUTED
20262ac: 02 80 00 05 be 20262c0 <fat_init_volume_info+0x10c> <== NOT EXECUTED
20262b0: 07 00 00 04 sethi %hi(0x1000), %g3 <== NOT EXECUTED
20262b4: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
20262b8: 32 80 00 c1 bne,a 20265bc <fat_init_volume_info+0x408> <== NOT EXECUTED
20262bc: 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;
20262c0: 83 28 a0 10 sll %g2, 0x10, %g1 <== NOT EXECUTED
20262c4: c0 2c 20 03 clrb [ %l0 + 3 ] <== NOT EXECUTED
20262c8: 10 80 00 05 b 20262dc <fat_init_volume_info+0x128> <== NOT EXECUTED
20262cc: 83 30 60 19 srl %g1, 0x19, %g1 <== NOT EXECUTED
i >>= 1, vol->sec_mul++);
20262d0: 83 38 60 01 sra %g1, 1, %g1 <== NOT EXECUTED
20262d4: 84 00 a0 01 inc %g2 <== NOT EXECUTED
20262d8: 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;
20262dc: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
20262e0: 22 bf ff fc be,a 20262d0 <fat_init_volume_info+0x11c> <== NOT EXECUTED
20262e4: 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;
20262e8: c0 2c 20 02 clrb [ %l0 + 2 ] <== NOT EXECUTED
20262ec: 10 80 00 05 b 2026300 <fat_init_volume_info+0x14c> <== NOT EXECUTED
20262f0: c2 14 00 00 lduh [ %l0 ], %g1 <== NOT EXECUTED
i >>= 1, vol->sec_log2++);
20262f4: 83 38 60 01 sra %g1, 1, %g1 <== NOT EXECUTED
20262f8: 84 00 a0 01 inc %g2 <== NOT EXECUTED
20262fc: 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;
2026300: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
2026304: 22 bf ff fc be,a 20262f4 <fat_init_volume_info+0x140> <== NOT EXECUTED
2026308: c4 0c 20 02 ldub [ %l0 + 2 ], %g2 <== NOT EXECUTED
if ( (ret1 < 0) || (ret2 < 0) )
return -1;
return RC_OK;
}
202630c: 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);
2026310: 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)
2026314: 84 88 a0 ff andcc %g2, 0xff, %g2 <== NOT EXECUTED
2026318: 22 80 00 a9 be,a 20265bc <fat_init_volume_info+0x408> <== NOT EXECUTED
202631c: 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;
2026320: 10 80 00 04 b 2026330 <fat_init_volume_info+0x17c> <== NOT EXECUTED
2026324: c0 2c 20 05 clrb [ %l0 + 5 ] <== NOT EXECUTED
i >>= 1, vol->spc_log2++);
2026328: 82 00 60 01 inc %g1 <== NOT EXECUTED
202632c: 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;
2026330: 80 88 a0 01 btst 1, %g2 <== NOT EXECUTED
2026334: c2 0c 20 05 ldub [ %l0 + 5 ], %g1 <== NOT EXECUTED
2026338: 02 bf ff fc be 2026328 <fat_init_volume_info+0x174> <== NOT EXECUTED
202633c: 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)
2026340: c4 14 00 00 lduh [ %l0 ], %g2 <== NOT EXECUTED
2026344: 83 28 80 01 sll %g2, %g1, %g1 <== NOT EXECUTED
2026348: c2 34 20 06 sth %g1, [ %l0 + 6 ] <== NOT EXECUTED
202634c: 05 00 00 20 sethi %hi(0x8000), %g2 <== NOT EXECUTED
2026350: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
2026354: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED
2026358: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
202635c: 38 80 00 98 bgu,a 20265bc <fat_init_volume_info+0x408> <== NOT EXECUTED
2026360: 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;
2026364: 10 80 00 05 b 2026378 <fat_init_volume_info+0x1c4> <== NOT EXECUTED
2026368: c0 2c 20 08 clrb [ %l0 + 8 ] <== NOT EXECUTED
i >>= 1, vol->bpc_log2++);
202636c: 83 38 60 01 sra %g1, 1, %g1 <== NOT EXECUTED
2026370: 84 00 a0 01 inc %g2 <== NOT EXECUTED
2026374: 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;
2026378: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
202637c: 22 bf ff fc be,a 202636c <fat_init_volume_info+0x1b8> <== NOT EXECUTED
2026380: c4 0c 20 08 ldub [ %l0 + 8 ], %g2 <== NOT EXECUTED
i >>= 1, vol->bpc_log2++);
vol->fats = FAT_GET_BR_FAT_NUM(boot_rec);
2026384: 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)) /
2026388: 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);
202638c: c4 2c 20 09 stb %g2, [ %l0 + 9 ] <== NOT EXECUTED
vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec);
2026390: c6 0f bf 56 ldub [ %fp + -170 ], %g3 <== NOT EXECUTED
2026394: 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)) /
2026398: 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);
202639c: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
20263a0: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
20263a4: c4 34 20 14 sth %g2, [ %l0 + 0x14 ] <== NOT EXECUTED
vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec);
20263a8: c6 0f bf 59 ldub [ %fp + -167 ], %g3 <== NOT EXECUTED
20263ac: 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)) /
20263b0: 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);
20263b4: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
20263b8: 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)) /
20263bc: 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);
20263c0: 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)) /
20263c4: 85 30 e0 0b srl %g3, 0xb, %g2 <== NOT EXECUTED
20263c8: 40 00 d3 47 call 205b0e4 <.div> <== NOT EXECUTED
20263cc: 90 00 40 02 add %g1, %g2, %o0 <== NOT EXECUTED
vol->bps;
vol->rdir_size = vol->rdir_secs << vol->sec_log2;
20263d0: 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)) /
20263d4: d0 24 20 24 st %o0, [ %l0 + 0x24 ] <== NOT EXECUTED
vol->bps;
vol->rdir_size = vol->rdir_secs << vol->sec_log2;
20263d8: 91 2a 00 01 sll %o0, %g1, %o0 <== NOT EXECUTED
20263dc: d0 24 20 28 st %o0, [ %l0 + 0x28 ] <== NOT EXECUTED
if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0)
20263e0: c2 0f bf 5f ldub [ %fp + -161 ], %g1 <== NOT EXECUTED
20263e4: c4 0f bf 5e ldub [ %fp + -162 ], %g2 <== NOT EXECUTED
20263e8: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
20263ec: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
20263f0: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
20263f4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20263f8: 02 80 00 04 be 2026408 <fat_init_volume_info+0x254> <== NOT EXECUTED
20263fc: c8 0f bf 6d ldub [ %fp + -147 ], %g4 <== NOT EXECUTED
vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT(boot_rec);
2026400: 10 80 00 0b b 202642c <fat_init_volume_info+0x278> <== NOT EXECUTED
2026404: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED
else
vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT32(boot_rec);
2026408: c2 0f bf 6e ldub [ %fp + -146 ], %g1 <== NOT EXECUTED
202640c: c6 0f bf 6c ldub [ %fp + -148 ], %g3 <== NOT EXECUTED
2026410: c4 0f bf 6f ldub [ %fp + -145 ], %g2 <== NOT EXECUTED
2026414: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2026418: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
202641c: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED
2026420: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
2026424: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
2026428: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
202642c: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED
vol->data_fsec = vol->fat_loc + vol->fats * vol->fat_length +
2026430: d0 0c 20 09 ldub [ %l0 + 9 ], %o0 <== NOT EXECUTED
2026434: d2 04 20 18 ld [ %l0 + 0x18 ], %o1 <== NOT EXECUTED
2026438: e4 14 20 14 lduh [ %l0 + 0x14 ], %l2 <== NOT EXECUTED
202643c: 7f ff 71 6f call 20029f8 <.umul> <== NOT EXECUTED
2026440: e6 04 20 24 ld [ %l0 + 0x24 ], %l3 <== NOT EXECUTED
2026444: 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;
2026448: 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 +
202644c: 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;
2026450: 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 +
2026454: 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)
2026458: c2 0f bf 5c ldub [ %fp + -164 ], %g1 <== NOT EXECUTED
202645c: c4 0f bf 5b ldub [ %fp + -165 ], %g2 <== NOT EXECUTED
2026460: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2026464: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2026468: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
202646c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2026470: 02 80 00 04 be 2026480 <fat_init_volume_info+0x2cc> <== NOT EXECUTED
2026474: c8 0f bf 69 ldub [ %fp + -151 ], %g4 <== NOT EXECUTED
vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec);
2026478: 10 80 00 0b b 20264a4 <fat_init_volume_info+0x2f0> <== NOT EXECUTED
202647c: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED
else
vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM32(boot_rec);
2026480: c2 0f bf 6a ldub [ %fp + -150 ], %g1 <== NOT EXECUTED
2026484: c6 0f bf 68 ldub [ %fp + -152 ], %g3 <== NOT EXECUTED
2026488: c4 0f bf 6b ldub [ %fp + -149 ], %g2 <== NOT EXECUTED
202648c: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2026490: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
2026494: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED
2026498: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
202649c: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
20264a0: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
20264a4: 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;
20264a8: d2 0c 20 04 ldub [ %l0 + 4 ], %o1 <== NOT EXECUTED
20264ac: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 <== NOT EXECUTED
20264b0: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
20264b4: 40 00 d3 0a call 205b0dc <.udiv> <== NOT EXECUTED
20264b8: 90 22 00 01 sub %o0, %g1, %o0 <== NOT EXECUTED
/* determine FAT type at least */
if ( vol->data_cls < FAT_FAT12_MAX_CLN)
20264bc: 80 a2 2f f4 cmp %o0, 0xff4 <== NOT EXECUTED
20264c0: 18 80 00 09 bgu 20264e4 <fat_init_volume_info+0x330> <== NOT EXECUTED
20264c4: d0 24 20 34 st %o0, [ %l0 + 0x34 ] <== NOT EXECUTED
{
vol->type = FAT_FAT12;
20264c8: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20264cc: c2 2c 20 0a stb %g1, [ %l0 + 0xa ] <== NOT EXECUTED
vol->mask = FAT_FAT12_MASK;
20264d0: 82 10 2f ff mov 0xfff, %g1 <== NOT EXECUTED
20264d4: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED
vol->eoc_val = FAT_FAT12_EOC;
20264d8: 82 10 2f f8 mov 0xff8, %g1 <== NOT EXECUTED
20264dc: 10 80 00 11 b 2026520 <fat_init_volume_info+0x36c> <== NOT EXECUTED
20264e0: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED
}
else
{
if ( vol->data_cls < FAT_FAT16_MAX_CLN)
20264e4: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED
20264e8: 84 10 63 f4 or %g1, 0x3f4, %g2 ! fff4 <PROM_START+0xfff4> <== NOT EXECUTED
20264ec: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED
20264f0: 38 80 00 06 bgu,a 2026508 <fat_init_volume_info+0x354> <== NOT EXECUTED
20264f4: 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;
20264f8: 84 10 63 f8 or %g1, 0x3f8, %g2 ! ffffff8 <RAM_END+0xdbffff8><== NOT EXECUTED
20264fc: c4 24 20 10 st %g2, [ %l0 + 0x10 ] <== NOT EXECUTED
}
else
{
if ( vol->data_cls < FAT_FAT16_MAX_CLN)
{
vol->type = FAT_FAT16;
2026500: 10 80 00 05 b 2026514 <fat_init_volume_info+0x360> <== NOT EXECUTED
2026504: 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;
2026508: 84 10 63 f8 or %g1, 0x3f8, %g2 <== NOT EXECUTED
202650c: 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;
2026510: 84 10 20 04 mov 4, %g2 <== NOT EXECUTED
vol->mask = FAT_FAT32_MASK;
2026514: 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;
2026518: c4 2c 20 0a stb %g2, [ %l0 + 0xa ] <== NOT EXECUTED
vol->mask = FAT_FAT32_MASK;
202651c: 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;
2026520: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED
2026524: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED
2026528: 12 80 00 79 bne 202670c <fat_init_volume_info+0x558> <== NOT EXECUTED
202652c: 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);
2026530: c8 0f bf 75 ldub [ %fp + -139 ], %g4 <== NOT EXECUTED
2026534: c2 0f bf 76 ldub [ %fp + -138 ], %g1 <== NOT EXECUTED
2026538: c6 0f bf 74 ldub [ %fp + -140 ], %g3 <== NOT EXECUTED
202653c: c4 0f bf 77 ldub [ %fp + -137 ], %g2 <== NOT EXECUTED
2026540: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2026544: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED
2026548: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
202654c: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
2026550: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
2026554: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2026558: c2 24 20 38 st %g1, [ %l0 + 0x38 ] <== NOT EXECUTED
vol->mirror = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_MIRROR;
202655c: c2 0f bf 71 ldub [ %fp + -143 ], %g1 <== NOT EXECUTED
2026560: c4 0f bf 70 ldub [ %fp + -144 ], %g2 <== NOT EXECUTED
2026564: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2026568: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
202656c: 82 08 7f 80 and %g1, -128, %g1 <== NOT EXECUTED
if (vol->mirror)
2026570: 80 88 60 80 btst 0x80, %g1 <== NOT EXECUTED
2026574: 02 80 00 06 be 202658c <fat_init_volume_info+0x3d8> <== NOT EXECUTED
2026578: 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;
202657c: c2 0f bf 70 ldub [ %fp + -144 ], %g1 <== NOT EXECUTED
2026580: 82 08 60 0f and %g1, 0xf, %g1 <== NOT EXECUTED
2026584: 10 80 00 03 b 2026590 <fat_init_volume_info+0x3dc> <== NOT EXECUTED
2026588: c2 2c 20 50 stb %g1, [ %l0 + 0x50 ] <== NOT EXECUTED
else
vol->afat = 0;
202658c: c0 2c 20 50 clrb [ %l0 + 0x50 ] <== NOT EXECUTED
vol->info_sec = FAT_GET_BR_FAT32_FS_INFO_SECTOR(boot_rec);
2026590: d2 0f bf 79 ldub [ %fp + -135 ], %o1 <== NOT EXECUTED
2026594: c2 0f bf 78 ldub [ %fp + -136 ], %g1 <== NOT EXECUTED
2026598: 93 2a 60 08 sll %o1, 8, %o1 <== NOT EXECUTED
202659c: 92 12 40 01 or %o1, %g1, %o1 <== NOT EXECUTED
20265a0: d2 34 20 3c sth %o1, [ %l0 + 0x3c ] <== NOT EXECUTED
if( vol->info_sec == 0 )
20265a4: 93 2a 60 10 sll %o1, 0x10, %o1 <== NOT EXECUTED
20265a8: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED
20265ac: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
20265b0: 32 80 00 05 bne,a 20265c4 <fat_init_volume_info+0x410> <== NOT EXECUTED
20265b4: a4 07 bf f0 add %fp, -16, %l2 <== NOT EXECUTED
{
rtems_disk_release(vol->dd);
20265b8: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
20265bc: 10 80 00 1f b 2026638 <fat_init_volume_info+0x484> <== NOT EXECUTED
20265c0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
}
else
{
ret = _fat_block_read(mt_entry, vol->info_sec , 0,
20265c4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
20265c8: 94 10 20 00 clr %o2 <== NOT EXECUTED
20265cc: 96 10 20 04 mov 4, %o3 <== NOT EXECUTED
20265d0: 7f ff fe d8 call 2026130 <_fat_block_read> <== NOT EXECUTED
20265d4: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED
FAT_FSI_LEADSIG_SIZE, fs_info_sector);
if ( ret < 0 )
20265d8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20265dc: 16 80 00 05 bge 20265f0 <fat_init_volume_info+0x43c> <== NOT EXECUTED
20265e0: c2 0f bf f3 ldub [ %fp + -13 ], %g1 <== NOT EXECUTED
{
rtems_disk_release(vol->dd);
20265e4: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
20265e8: 10 80 00 45 b 20266fc <fat_init_volume_info+0x548> <== NOT EXECUTED
20265ec: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return -1;
}
if (FAT_GET_FSINFO_LEAD_SIGNATURE(fs_info_sector) !=
20265f0: c8 0f bf f1 ldub [ %fp + -15 ], %g4 <== NOT EXECUTED
20265f4: c4 0f bf f2 ldub [ %fp + -14 ], %g2 <== NOT EXECUTED
20265f8: c6 0f bf f0 ldub [ %fp + -16 ], %g3 <== NOT EXECUTED
20265fc: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED
2026600: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2026604: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
2026608: 84 11 00 02 or %g4, %g2, %g2 <== NOT EXECUTED
202660c: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
2026610: 84 10 80 01 or %g2, %g1, %g2 <== NOT EXECUTED
2026614: 03 10 58 54 sethi %hi(0x41615000), %g1 <== NOT EXECUTED
2026618: 82 10 62 52 or %g1, 0x252, %g1 ! 41615252 <RAM_END+0x3f215252><== NOT EXECUTED
202661c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2026620: 22 80 00 0c be,a 2026650 <fat_init_volume_info+0x49c> <== NOT EXECUTED
2026624: 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);
2026628: d0 04 60 34 ld [ %l1 + 0x34 ], %o0 <== NOT EXECUTED
202662c: 7f ff fc fa call 2025a14 <fat_buf_release> <== NOT EXECUTED
2026630: 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);
2026634: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
2026638: 7f ff 82 2f call 2006ef4 <rtems_disk_release> <== NOT EXECUTED
202663c: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
2026640: 40 00 71 7a call 2042c28 <__errno> <== NOT EXECUTED
2026644: 01 00 00 00 nop <== NOT EXECUTED
2026648: 10 80 00 80 b 2026848 <fat_init_volume_info+0x694> <== NOT EXECUTED
202664c: 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,
2026650: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED
2026654: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2026658: 94 10 21 e4 mov 0x1e4, %o2 <== NOT EXECUTED
202665c: 7f ff fe b5 call 2026130 <_fat_block_read> <== NOT EXECUTED
2026660: 96 10 20 0c mov 0xc, %o3 <== NOT EXECUTED
FAT_USEFUL_INFO_SIZE, fs_info_sector);
if ( ret < 0 )
2026664: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2026668: 16 80 00 05 bge 202667c <fat_init_volume_info+0x4c8> <== NOT EXECUTED
202666c: 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);
2026670: 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);
2026674: 10 80 00 1f b 20266f0 <fat_init_volume_info+0x53c> <== NOT EXECUTED
2026678: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return -1;
}
vol->free_cls = FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector);
202667c: c8 0f bf f5 ldub [ %fp + -11 ], %g4 <== NOT EXECUTED
2026680: c2 0f bf f6 ldub [ %fp + -10 ], %g1 <== NOT EXECUTED
2026684: c4 0f bf f7 ldub [ %fp + -9 ], %g2 <== NOT EXECUTED
2026688: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
202668c: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED
2026690: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
2026694: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
2026698: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
202669c: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
20266a0: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED
vol->next_cl = FAT_GET_FSINFO_NEXT_FREE_CLUSTER(fs_info_sector);
20266a4: c8 0f bf f9 ldub [ %fp + -7 ], %g4 <== NOT EXECUTED
20266a8: c2 0f bf fa ldub [ %fp + -6 ], %g1 <== NOT EXECUTED
20266ac: c6 0f bf f8 ldub [ %fp + -8 ], %g3 <== NOT EXECUTED
20266b0: c4 0f bf fb ldub [ %fp + -5 ], %g2 <== NOT EXECUTED
20266b4: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
20266b8: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED
20266bc: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
20266c0: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
20266c4: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
20266c8: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
rc = fat_fat32_update_fsinfo_sector(mt_entry, 0xFFFFFFFF,
20266cc: 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);
20266d0: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED
rc = fat_fat32_update_fsinfo_sector(mt_entry, 0xFFFFFFFF,
20266d4: 92 10 3f ff mov -1, %o1 <== NOT EXECUTED
20266d8: 7f ff fd db call 2025e44 <fat_fat32_update_fsinfo_sector> <== NOT EXECUTED
20266dc: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED
0xFFFFFFFF);
if ( rc != RC_OK )
20266e0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20266e4: 02 80 00 0f be 2026720 <fat_init_volume_info+0x56c> <== NOT EXECUTED
20266e8: 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);
20266ec: d0 04 60 34 ld [ %l1 + 0x34 ], %o0 <== NOT EXECUTED
20266f0: 7f ff fc c9 call 2025a14 <fat_buf_release> <== NOT EXECUTED
20266f4: 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);
20266f8: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
20266fc: 7f ff 81 fe call 2006ef4 <rtems_disk_release> <== NOT EXECUTED
2026700: 01 00 00 00 nop <== NOT EXECUTED
return rc;
2026704: 81 c7 e0 08 ret <== NOT EXECUTED
2026708: 81 e8 00 00 restore <== NOT EXECUTED
}
}
}
else
{
vol->rdir_cl = 0;
202670c: c0 24 20 38 clr [ %l0 + 0x38 ] <== NOT EXECUTED
vol->mirror = 0;
2026710: c0 2c 20 48 clrb [ %l0 + 0x48 ] <== NOT EXECUTED
vol->afat = 0;
2026714: c0 2c 20 50 clrb [ %l0 + 0x50 ] <== NOT EXECUTED
vol->free_cls = 0xFFFFFFFF;
vol->next_cl = 0xFFFFFFFF;
2026718: 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;
202671c: 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);
2026720: 7f ff fc bd call 2025a14 <fat_buf_release> <== NOT EXECUTED
2026724: 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;
2026728: d2 04 20 18 ld [ %l0 + 0x18 ], %o1 <== NOT EXECUTED
202672c: 7f ff 70 b3 call 20029f8 <.umul> <== NOT EXECUTED
2026730: d0 0c 20 50 ldub [ %l0 + 0x50 ], %o0 <== NOT EXECUTED
2026734: 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));
2026738: 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;
202673c: 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));
2026740: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED
2026744: 7f ff 85 38 call 2007c24 <calloc> <== NOT EXECUTED
2026748: c2 24 20 4c st %g1, [ %l0 + 0x4c ] <== NOT EXECUTED
if ( fs_info->vhash == NULL )
202674c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2026750: 02 80 00 13 be 202679c <fat_init_volume_info+0x5e8> <== NOT EXECUTED
2026754: 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);
2026758: 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;
202675c: c0 22 20 04 clr [ %o0 + 4 ] <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
2026760: d0 22 20 08 st %o0, [ %o0 + 8 ] <== NOT EXECUTED
2026764: 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;
2026768: 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);
202676c: 82 02 20 04 add %o0, 4, %g1 <== NOT EXECUTED
2026770: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2026774: 82 02 20 10 add %o0, 0x10, %g1 <== NOT EXECUTED
fs_info->rhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control));
2026778: 92 10 20 0c mov 0xc, %o1 <== NOT EXECUTED
202677c: c2 22 20 0c st %g1, [ %o0 + 0xc ] <== NOT EXECUTED
2026780: 7f ff 85 29 call 2007c24 <calloc> <== NOT EXECUTED
2026784: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED
if ( fs_info->rhash == NULL )
2026788: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202678c: 12 80 00 08 bne 20267ac <fat_init_volume_info+0x5f8> <== NOT EXECUTED
2026790: d0 24 20 6c st %o0, [ %l0 + 0x6c ] <== NOT EXECUTED
{
rtems_disk_release(vol->dd);
2026794: 10 80 00 1f b 2026810 <fat_init_volume_info+0x65c> <== NOT EXECUTED
2026798: 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);
202679c: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
20267a0: 7f ff 81 d5 call 2006ef4 <rtems_disk_release> <== NOT EXECUTED
20267a4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20267a8: 30 80 00 25 b,a 202683c <fat_init_volume_info+0x688> <== NOT EXECUTED
the_chain->permanent_null = NULL;
20267ac: c0 22 20 04 clr [ %o0 + 4 ] <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
20267b0: 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);
20267b4: 82 02 20 0c add %o0, 0xc, %g1 <== NOT EXECUTED
20267b8: 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;
20267bc: 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);
20267c0: 82 02 20 04 add %o0, 4, %g1 <== NOT EXECUTED
20267c4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20267c8: 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;
20267cc: c4 04 20 2c ld [ %l0 + 0x2c ], %g2 <== NOT EXECUTED
20267d0: c2 22 20 0c st %g1, [ %o0 + 0xc ] <== NOT EXECUTED
20267d4: c2 0c 20 03 ldub [ %l0 + 3 ], %g1 <== NOT EXECUTED
fs_info->index = 0;
20267d8: 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;
20267dc: 83 28 80 01 sll %g2, %g1, %g1 <== NOT EXECUTED
20267e0: 83 28 60 04 sll %g1, 4, %g1 <== NOT EXECUTED
20267e4: 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;
20267e8: 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));
20267ec: 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;
20267f0: 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));
20267f4: 7f ff 85 0c call 2007c24 <calloc> <== NOT EXECUTED
20267f8: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
if ( fs_info->uino == NULL )
20267fc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2026800: 12 80 00 15 bne 2026854 <fat_init_volume_info+0x6a0> <== NOT EXECUTED
2026804: d0 24 20 70 st %o0, [ %l0 + 0x70 ] <== NOT EXECUTED
{
rtems_disk_release(vol->dd);
2026808: 10 80 00 06 b 2026820 <fat_init_volume_info+0x66c> <== NOT EXECUTED
202680c: 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);
2026810: 7f ff 81 b9 call 2006ef4 <rtems_disk_release> <== NOT EXECUTED
2026814: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
free(fs_info->vhash);
2026818: 10 80 00 07 b 2026834 <fat_init_volume_info+0x680> <== NOT EXECUTED
202681c: 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);
2026820: 7f ff 81 b5 call 2006ef4 <rtems_disk_release> <== NOT EXECUTED
2026824: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
free(fs_info->vhash);
2026828: 7f ff 86 8e call 2008260 <free> <== NOT EXECUTED
202682c: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED
free(fs_info->rhash);
2026830: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED
2026834: 7f ff 86 8b call 2008260 <free> <== NOT EXECUTED
2026838: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
202683c: 40 00 70 fb call 2042c28 <__errno> <== NOT EXECUTED
2026840: 01 00 00 00 nop <== NOT EXECUTED
2026844: 82 10 20 0c mov 0xc, %g1 ! c <PROM_START+0xc> <== NOT EXECUTED
2026848: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202684c: 81 c7 e0 08 ret <== NOT EXECUTED
2026850: 81 e8 00 00 restore <== NOT EXECUTED
}
fs_info->sec_buf = (uint8_t *)calloc(vol->bps, sizeof(uint8_t));
2026854: d0 14 00 00 lduh [ %l0 ], %o0 <== NOT EXECUTED
2026858: 7f ff 84 f3 call 2007c24 <calloc> <== NOT EXECUTED
202685c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2026860: d0 24 20 8c st %o0, [ %l0 + 0x8c ] <== NOT EXECUTED
if (fs_info->sec_buf == NULL)
2026864: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2026868: 12 bf ff a7 bne 2026704 <fat_init_volume_info+0x550> <== NOT EXECUTED
202686c: b0 10 20 00 clr %i0 <== NOT EXECUTED
{
rtems_disk_release(vol->dd);
2026870: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
2026874: 7f ff 81 a0 call 2006ef4 <rtems_disk_release> <== NOT EXECUTED
2026878: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
free(fs_info->vhash);
202687c: 7f ff 86 79 call 2008260 <free> <== NOT EXECUTED
2026880: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED
free(fs_info->rhash);
2026884: 7f ff 86 77 call 2008260 <free> <== NOT EXECUTED
2026888: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED
free(fs_info->uino);
202688c: 7f ff 86 75 call 2008260 <free> <== NOT EXECUTED
2026890: d0 04 20 70 ld [ %l0 + 0x70 ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
2026894: 40 00 70 e5 call 2042c28 <__errno> <== NOT EXECUTED
2026898: 01 00 00 00 nop <== NOT EXECUTED
202689c: 82 10 20 0c mov 0xc, %g1 ! c <PROM_START+0xc> <== NOT EXECUTED
20268a0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
return RC_OK;
}
20268a4: 81 c7 e0 08 ret <== NOT EXECUTED
20268a8: 81 e8 00 00 restore <== NOT EXECUTED
02025920 <fat_ino_is_unique>:
inline bool
fat_ino_is_unique(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t ino
)
{
2025920: c2 02 20 34 ld [ %o0 + 0x34 ], %g1 <== NOT EXECUTED
2025924: c2 00 60 7c ld [ %g1 + 0x7c ], %g1 <== NOT EXECUTED
2025928: 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);
}
202592c: 81 c3 e0 08 retl <== NOT EXECUTED
2025930: 90 60 3f ff subx %g0, -1, %o0 <== NOT EXECUTED
0203ee20 <fat_scan_fat_for_free_clusters>:
uint32_t *chain,
uint32_t count,
uint32_t *cls_added,
uint32_t *last_cl
)
{
203ee20: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
203ee24: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
uint32_t *chain,
uint32_t count,
uint32_t *cls_added,
uint32_t *last_cl
)
{
203ee28: 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;
203ee2c: 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;
203ee30: 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;
203ee34: 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;
203ee38: aa 05 60 02 add %l5, 2, %l5 <== NOT EXECUTED
uint32_t i = 2;
*cls_added = 0;
if (count == 0)
203ee3c: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
203ee40: 02 80 00 24 be 203eed0 <fat_scan_fat_for_free_clusters+0xb0><== NOT EXECUTED
203ee44: b0 10 20 00 clr %i0 <== NOT EXECUTED
return rc;
if (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE)
203ee48: e4 04 20 44 ld [ %l0 + 0x44 ], %l2 <== NOT EXECUTED
203ee4c: 80 a4 bf ff cmp %l2, -1 <== NOT EXECUTED
203ee50: 22 80 00 02 be,a 203ee58 <fat_scan_fat_for_free_clusters+0x38><== NOT EXECUTED
203ee54: a4 10 20 02 mov 2, %l2 <== NOT EXECUTED
203ee58: a8 10 20 02 mov 2, %l4 <== NOT EXECUTED
203ee5c: 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);
203ee60: 10 80 00 50 b 203efa0 <fat_scan_fat_for_free_clusters+0x180><== NOT EXECUTED
203ee64: ac 07 bf fc add %fp, -4, %l6 <== NOT EXECUTED
203ee68: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203ee6c: 7f ff ff 3c call 203eb5c <fat_get_fat_cluster> <== NOT EXECUTED
203ee70: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
203ee74: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED
203ee78: 22 80 00 08 be,a 203ee98 <fat_scan_fat_for_free_clusters+0x78><== NOT EXECUTED
203ee7c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
{
if (*cls_added != 0)
203ee80: c4 06 c0 00 ld [ %i3 ], %g2 <== NOT EXECUTED
203ee84: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203ee88: 02 80 00 12 be 203eed0 <fat_scan_fat_for_free_clusters+0xb0><== NOT EXECUTED
203ee8c: 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));
203ee90: 10 80 00 19 b 203eef4 <fat_scan_fat_for_free_clusters+0xd4><== NOT EXECUTED
203ee94: 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)
203ee98: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203ee9c: 32 80 00 3d bne,a 203ef90 <fat_scan_fat_for_free_clusters+0x170><== NOT EXECUTED
203eea0: 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)
203eea4: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
203eea8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203eeac: 12 80 00 0b bne 203eed8 <fat_scan_fat_for_free_clusters+0xb8><== NOT EXECUTED
203eeb0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
{
*chain = cl4find;
203eeb4: e4 26 40 00 st %l2, [ %i1 ] <== NOT EXECUTED
rc = fat_set_fat_cluster(mt_entry, cl4find, FAT_GENFAT_EOC);
203eeb8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203eebc: 7f ff fe 7b call 203e8a8 <fat_set_fat_cluster> <== NOT EXECUTED
203eec0: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
203eec4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203eec8: 22 80 00 1e be,a 203ef40 <fat_scan_fat_for_free_clusters+0x120><== NOT EXECUTED
203eecc: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
203eed0: 81 c7 e0 08 ret <== NOT EXECUTED
203eed4: 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);
203eed8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203eedc: 7f ff fe 73 call 203e8a8 <fat_set_fat_cluster> <== NOT EXECUTED
203eee0: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
203eee4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203eee8: 02 80 00 07 be 203ef04 <fat_scan_fat_for_free_clusters+0xe4><== NOT EXECUTED
203eeec: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
{
/* cleanup activity */
fat_free_fat_clusters_chain(mt_entry, (*chain));
203eef0: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED
203eef4: 7f ff ff 97 call 203ed50 <fat_free_fat_clusters_chain> <== NOT EXECUTED
203eef8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
return rc;
203eefc: 81 c7 e0 08 ret <== NOT EXECUTED
203ef00: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = fat_set_fat_cluster(mt_entry, save_cln, cl4find);
203ef04: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203ef08: 7f ff fe 68 call 203e8a8 <fat_set_fat_cluster> <== NOT EXECUTED
203ef0c: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
203ef10: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203ef14: 22 80 00 0b be,a 203ef40 <fat_scan_fat_for_free_clusters+0x120><== NOT EXECUTED
203ef18: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
{
/* cleanup activity */
fat_free_fat_clusters_chain(mt_entry, (*chain));
203ef1c: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED
203ef20: 7f ff ff 8c call 203ed50 <fat_free_fat_clusters_chain> <== NOT EXECUTED
203ef24: 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);
203ef28: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203ef2c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203ef30: 7f ff fe 5e call 203e8a8 <fat_set_fat_cluster> <== NOT EXECUTED
203ef34: 94 10 20 00 clr %o2 <== NOT EXECUTED
fat_buf_release(fs_info);
203ef38: 10 80 00 10 b 203ef78 <fat_scan_fat_for_free_clusters+0x158><== NOT EXECUTED
203ef3c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
}
}
save_cln = cl4find;
(*cls_added)++;
203ef40: 82 00 60 01 inc %g1 <== NOT EXECUTED
/* have we satisfied request ? */
if (*cls_added == count)
203ef44: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED
203ef48: 12 80 00 10 bne 203ef88 <fat_scan_fat_for_free_clusters+0x168><== NOT EXECUTED
203ef4c: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED
{
fs_info->vol.next_cl = save_cln;
if (fs_info->vol.free_cls != 0xFFFFFFFF)
203ef50: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 <== NOT EXECUTED
203ef54: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED
203ef58: 02 80 00 05 be 203ef6c <fat_scan_fat_for_free_clusters+0x14c><== NOT EXECUTED
203ef5c: e4 24 20 44 st %l2, [ %l0 + 0x44 ] <== NOT EXECUTED
fs_info->vol.free_cls -= (*cls_added);
203ef60: c4 06 c0 00 ld [ %i3 ], %g2 <== NOT EXECUTED
203ef64: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED
203ef68: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED
*last_cl = save_cln;
203ef6c: e4 27 00 00 st %l2, [ %i4 ] <== NOT EXECUTED
fat_buf_release(fs_info);
203ef70: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203ef74: b0 10 20 00 clr %i0 <== NOT EXECUTED
203ef78: 7f ff 9a a7 call 2025a14 <fat_buf_release> <== NOT EXECUTED
203ef7c: 01 00 00 00 nop <== NOT EXECUTED
return rc;
203ef80: 81 c7 e0 08 ret <== NOT EXECUTED
203ef84: 81 e8 00 00 restore <== NOT EXECUTED
203ef88: a6 10 00 12 mov %l2, %l3 <== NOT EXECUTED
}
}
i++;
cl4find++;
203ef8c: a4 04 a0 01 inc %l2 <== NOT EXECUTED
if (cl4find >= data_cls_val)
203ef90: 80 a4 80 15 cmp %l2, %l5 <== NOT EXECUTED
203ef94: 3a 80 00 02 bcc,a 203ef9c <fat_scan_fat_for_free_clusters+0x17c><== NOT EXECUTED
203ef98: a4 10 20 02 mov 2, %l2 <== NOT EXECUTED
*last_cl = save_cln;
fat_buf_release(fs_info);
return rc;
}
}
i++;
203ef9c: 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)
203efa0: 80 a5 00 15 cmp %l4, %l5 <== NOT EXECUTED
203efa4: 0a bf ff b1 bcs 203ee68 <fat_scan_fat_for_free_clusters+0x48><== NOT EXECUTED
203efa8: 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)
203efac: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 <== NOT EXECUTED
203efb0: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED
203efb4: 02 80 00 05 be 203efc8 <fat_scan_fat_for_free_clusters+0x1a8><== NOT EXECUTED
203efb8: e6 24 20 44 st %l3, [ %l0 + 0x44 ] <== NOT EXECUTED
fs_info->vol.free_cls -= (*cls_added);
203efbc: c4 06 c0 00 ld [ %i3 ], %g2 <== NOT EXECUTED
203efc0: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED
203efc4: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED
*last_cl = save_cln;
203efc8: e6 27 00 00 st %l3, [ %i4 ] <== NOT EXECUTED
fat_buf_release(fs_info);
203efcc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203efd0: 7f ff 9a 91 call 2025a14 <fat_buf_release> <== NOT EXECUTED
203efd4: b0 10 20 00 clr %i0 <== NOT EXECUTED
return RC_OK;
}
203efd8: 81 c7 e0 08 ret <== NOT EXECUTED
203efdc: 81 e8 00 00 restore <== NOT EXECUTED
0203e8a8 <fat_set_fat_cluster>:
fat_set_fat_cluster(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
uint32_t in_val
)
{
203e8a8: 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;
203e8ac: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
/* sanity check */
if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )
203e8b0: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED
203e8b4: 08 80 00 a3 bleu 203eb40 <fat_set_fat_cluster+0x298> <== NOT EXECUTED
203e8b8: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
203e8bc: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 <== NOT EXECUTED
203e8c0: 82 00 60 01 inc %g1 <== NOT EXECUTED
203e8c4: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
203e8c8: 18 80 00 9e bgu 203eb40 <fat_set_fat_cluster+0x298> <== NOT EXECUTED
203e8cc: 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) +
203e8d0: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED
203e8d4: 88 88 60 01 andcc %g1, 1, %g4 <== NOT EXECUTED
203e8d8: 02 80 00 05 be 203e8ec <fat_set_fat_cluster+0x44> <== NOT EXECUTED
203e8dc: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
203e8e0: 85 36 60 01 srl %i1, 1, %g2 <== NOT EXECUTED
203e8e4: 10 80 00 05 b 203e8f8 <fat_set_fat_cluster+0x50> <== NOT EXECUTED
203e8e8: 84 00 80 19 add %g2, %i1, %g2 <== NOT EXECUTED
203e8ec: 02 80 00 03 be 203e8f8 <fat_set_fat_cluster+0x50> <== NOT EXECUTED
203e8f0: 85 2e 60 02 sll %i1, 2, %g2 <== NOT EXECUTED
203e8f4: 85 2e 60 01 sll %i1, 1, %g2 <== NOT EXECUTED
203e8f8: e6 0c 20 02 ldub [ %l0 + 2 ], %l3 <== NOT EXECUTED
203e8fc: c6 04 20 4c ld [ %l0 + 0x4c ], %g3 <== NOT EXECUTED
203e900: 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);
203e904: a9 36 60 01 srl %i1, 1, %l4 <== NOT EXECUTED
203e908: 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) +
203e90c: 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);
203e910: 12 80 00 06 bne 203e928 <fat_set_fat_cluster+0x80> <== NOT EXECUTED
203e914: a8 05 00 19 add %l4, %i1, %l4 <== NOT EXECUTED
203e918: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
203e91c: 02 80 00 03 be 203e928 <fat_set_fat_cluster+0x80> <== NOT EXECUTED
203e920: a9 2e 60 02 sll %i1, 2, %l4 <== NOT EXECUTED
203e924: a9 2e 60 01 sll %i1, 1, %l4 <== NOT EXECUTED
203e928: ea 14 00 00 lduh [ %l0 ], %l5 <== NOT EXECUTED
rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &block0);
203e92c: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
203e930: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e934: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203e938: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203e93c: 7f ff 9c 97 call 2025b98 <fat_buf_access> <== NOT EXECUTED
203e940: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
if (rc != RC_OK)
203e944: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203e948: 12 80 00 83 bne 203eb54 <fat_set_fat_cluster+0x2ac> <== NOT EXECUTED
203e94c: ab 2d 60 10 sll %l5, 0x10, %l5 <== NOT EXECUTED
return rc;
switch ( fs_info->vol.type )
203e950: e2 0c 20 0a ldub [ %l0 + 0xa ], %l1 <== NOT EXECUTED
203e954: 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);
203e958: ab 35 60 10 srl %l5, 0x10, %l5 <== NOT EXECUTED
203e95c: 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 )
203e960: 02 80 00 5a be 203eac8 <fat_set_fat_cluster+0x220> <== NOT EXECUTED
203e964: a8 0d 00 15 and %l4, %l5, %l4 <== NOT EXECUTED
203e968: 80 a4 60 04 cmp %l1, 4 <== NOT EXECUTED
203e96c: 02 80 00 5f be 203eae8 <fat_set_fat_cluster+0x240> <== NOT EXECUTED
203e970: 80 a4 60 01 cmp %l1, 1 <== NOT EXECUTED
203e974: 12 80 00 73 bne 203eb40 <fat_set_fat_cluster+0x298> <== NOT EXECUTED
203e978: 80 8e 60 01 btst 1, %i1 <== NOT EXECUTED
{
case FAT_FAT12:
if ( FAT_CLUSTER_IS_ODD(cln) )
203e97c: 02 80 00 25 be 203ea10 <fat_set_fat_cluster+0x168> <== NOT EXECUTED
203e980: 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;
203e984: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs)) =
203e988: 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)) =
203e98c: c6 08 40 14 ldub [ %g1 + %l4 ], %g3 <== NOT EXECUTED
203e990: 86 08 e0 0f and %g3, 0xf, %g3 <== NOT EXECUTED
203e994: 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))) |
203e998: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203e99c: 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)) =
203e9a0: c6 08 40 14 ldub [ %g1 + %l4 ], %g3 <== NOT EXECUTED
203e9a4: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED
203e9a8: 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) )
203e9ac: c2 14 00 00 lduh [ %l0 ], %g1 <== NOT EXECUTED
203e9b0: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
203e9b4: 80 a5 00 01 cmp %l4, %g1 <== NOT EXECUTED
203e9b8: 12 80 00 0f bne 203e9f4 <fat_set_fat_cluster+0x14c> <== NOT EXECUTED
203e9bc: e2 2c 20 84 stb %l1, [ %l0 + 0x84 ] <== NOT EXECUTED
{
rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
203e9c0: 92 04 e0 01 add %l3, 1, %o1 <== NOT EXECUTED
203e9c4: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
203e9c8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e9cc: 7f ff 9c 73 call 2025b98 <fat_buf_access> <== NOT EXECUTED
203e9d0: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
&block0);
if (rc != RC_OK)
203e9d4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203e9d8: 12 80 00 5f bne 203eb54 <fat_set_fat_cluster+0x2ac> <== NOT EXECUTED
203e9dc: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
return rc;
*((uint8_t *)(block0->buffer)) &= 0x00;
*((uint8_t *)(block0->buffer)) =
203e9e0: 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;
203e9e4: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
*((uint8_t *)(block0->buffer)) =
203e9e8: 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;
203e9ec: 10 80 00 23 b 203ea78 <fat_set_fat_cluster+0x1d0> <== NOT EXECUTED
203e9f0: c0 28 40 00 clrb [ %g1 ] <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
}
else
{
*((uint8_t *)(block0->buffer + ofs + 1)) &= 0x00;
203e9f4: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203e9f8: a8 05 20 01 inc %l4 <== NOT EXECUTED
203e9fc: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs + 1)) =
203ea00: b5 2e a0 14 sll %i2, 0x14, %i2 <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
}
else
{
*((uint8_t *)(block0->buffer + ofs + 1)) &= 0x00;
203ea04: c0 28 40 14 clrb [ %g1 + %l4 ] <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs + 1)) =
203ea08: 10 80 00 2a b 203eab0 <fat_set_fat_cluster+0x208> <== NOT EXECUTED
203ea0c: 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;
203ea10: 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;
203ea14: b4 0e af ff and %i2, 0xfff, %i2 <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs)) &= 0x00;
203ea18: c0 28 40 14 clrb [ %g1 + %l4 ] <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs)) =
(*((uint8_t *)(block0->buffer + ofs))) |
203ea1c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203ea20: 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)) =
203ea24: c4 08 40 14 ldub [ %g1 + %l4 ], %g2 <== NOT EXECUTED
203ea28: 84 16 80 02 or %i2, %g2, %g2 <== NOT EXECUTED
203ea2c: 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) )
203ea30: c2 14 00 00 lduh [ %l0 ], %g1 <== NOT EXECUTED
203ea34: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
203ea38: 80 a5 00 01 cmp %l4, %g1 <== NOT EXECUTED
203ea3c: 12 80 00 16 bne 203ea94 <fat_set_fat_cluster+0x1ec> <== NOT EXECUTED
203ea40: e2 2c 20 84 stb %l1, [ %l0 + 0x84 ] <== NOT EXECUTED
{
rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
203ea44: 92 04 e0 01 add %l3, 1, %o1 <== NOT EXECUTED
203ea48: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
203ea4c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203ea50: 7f ff 9c 52 call 2025b98 <fat_buf_access> <== NOT EXECUTED
203ea54: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
&block0);
if (rc != RC_OK)
203ea58: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203ea5c: 12 80 00 3e bne 203eb54 <fat_set_fat_cluster+0x2ac> <== NOT EXECUTED
203ea60: 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)) =
203ea64: 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;
203ea68: 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)) =
203ea6c: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED
203ea70: 84 08 bf f0 and %g2, -16, %g2 <== NOT EXECUTED
203ea74: c4 28 40 00 stb %g2, [ %g1 ] <== NOT EXECUTED
(*((uint8_t *)(block0->buffer))) & 0xF0;
*((uint8_t *)(block0->buffer)) =
(*((uint8_t *)(block0->buffer))) |
203ea78: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203ea7c: 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)) =
203ea80: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED
203ea84: b4 16 80 02 or %i2, %g2, %i2 <== NOT EXECUTED
203ea88: 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;
203ea8c: 10 80 00 32 b 203eb54 <fat_set_fat_cluster+0x2ac> <== NOT EXECUTED
203ea90: 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;
203ea94: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203ea98: a8 05 20 01 inc %l4 <== NOT EXECUTED
203ea9c: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs+1)) =
203eaa0: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
}
else
{
*((uint8_t *)(block0->buffer + ofs + 1)) =
203eaa4: c4 08 40 14 ldub [ %g1 + %l4 ], %g2 <== NOT EXECUTED
203eaa8: 84 08 bf f0 and %g2, -16, %g2 <== NOT EXECUTED
203eaac: 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))) |
203eab0: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203eab4: 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)) =
203eab8: c4 08 40 14 ldub [ %g1 + %l4 ], %g2 <== NOT EXECUTED
203eabc: b4 10 80 1a or %g2, %i2, %i2 <== NOT EXECUTED
203eac0: 10 80 00 25 b 203eb54 <fat_set_fat_cluster+0x2ac> <== NOT EXECUTED
203eac4: f4 28 40 14 stb %i2, [ %g1 + %l4 ] <== NOT EXECUTED
}
}
break;
case FAT_FAT16:
*((uint16_t *)(block0->buffer + ofs)) =
203eac8: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203eacc: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED
203ead0: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
203ead4: 85 36 a0 18 srl %i2, 0x18, %g2 <== NOT EXECUTED
203ead8: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED
203eadc: b4 16 80 02 or %i2, %g2, %i2 <== NOT EXECUTED
203eae0: 10 80 00 15 b 203eb34 <fat_set_fat_cluster+0x28c> <== NOT EXECUTED
203eae4: 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));
203eae8: 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));
203eaec: 05 3c 00 00 sethi %hi(0xf0000000), %g2 <== NOT EXECUTED
*((uint32_t *)(block0->buffer + ofs)) =
(*((uint32_t *)(block0->buffer + ofs))) & (CT_LE_L(0xF0000000));
203eaf0: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
*((uint32_t *)(block0->buffer + ofs)) =
203eaf4: 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)) =
203eaf8: 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));
203eafc: b4 2e 80 02 andn %i2, %g2, %i2 <== NOT EXECUTED
*((uint32_t *)(block0->buffer + ofs)) =
203eb00: 86 08 e0 f0 and %g3, 0xf0, %g3 <== NOT EXECUTED
(*((uint32_t *)(block0->buffer + ofs))) & (CT_LE_L(0xF0000000));
*((uint32_t *)(block0->buffer + ofs)) =
203eb04: 89 36 a0 10 srl %i2, 0x10, %g4 <== NOT EXECUTED
203eb08: 85 36 a0 18 srl %i2, 0x18, %g2 <== NOT EXECUTED
203eb0c: 88 09 20 ff and %g4, 0xff, %g4 <== NOT EXECUTED
203eb10: 84 13 40 02 or %o5, %g2, %g2 <== NOT EXECUTED
203eb14: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
203eb18: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED
203eb1c: b4 0e a0 ff and %i2, 0xff, %i2 <== NOT EXECUTED
203eb20: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED
203eb24: 84 10 80 1a or %g2, %i2, %g2 <== NOT EXECUTED
203eb28: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
203eb2c: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED
203eb30: c4 20 40 14 st %g2, [ %g1 + %l4 ] <== NOT EXECUTED
203eb34: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203eb38: 10 80 00 07 b 203eb54 <fat_set_fat_cluster+0x2ac> <== NOT EXECUTED
203eb3c: 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);
203eb40: 40 00 10 3a call 2042c28 <__errno> <== NOT EXECUTED
203eb44: 01 00 00 00 nop <== NOT EXECUTED
203eb48: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
203eb4c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203eb50: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
break;
}
return RC_OK;
}
203eb54: 81 c7 e0 08 ret <== NOT EXECUTED
203eb58: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02025f00 <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)
{
2025f00: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
2025f04: 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)
{
2025f08: 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)
2025f0c: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED
2025f10: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED
2025f14: 02 80 00 08 be 2025f34 <fat_shutdown_drive+0x34> <== NOT EXECUTED
2025f18: a2 10 20 00 clr %l1 <== NOT EXECUTED
{
rc = fat_fat32_update_fsinfo_sector(mt_entry, fs_info->vol.free_cls,
2025f1c: d2 04 20 40 ld [ %l0 + 0x40 ], %o1 <== NOT EXECUTED
2025f20: 7f ff ff c9 call 2025e44 <fat_fat32_update_fsinfo_sector> <== NOT EXECUTED
2025f24: d4 04 20 44 ld [ %l0 + 0x44 ], %o2 <== NOT EXECUTED
fs_info->vol.next_cl);
if ( rc != RC_OK )
2025f28: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2025f2c: 32 80 00 02 bne,a 2025f34 <fat_shutdown_drive+0x34> <== NOT EXECUTED
2025f30: a2 10 3f ff mov -1, %l1 <== NOT EXECUTED
rc = -1;
}
fat_buf_release(fs_info);
2025f34: 7f ff fe b8 call 2025a14 <fat_buf_release> <== NOT EXECUTED
2025f38: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rtems_bdbuf_syncdev(fs_info->vol.dev) != RTEMS_SUCCESSFUL)
2025f3c: 7f ff 77 f3 call 2003f08 <rtems_bdbuf_syncdev> <== NOT EXECUTED
2025f40: d0 1c 20 58 ldd [ %l0 + 0x58 ], %o0 <== NOT EXECUTED
2025f44: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025f48: 32 80 00 02 bne,a 2025f50 <fat_shutdown_drive+0x50> <== NOT EXECUTED
2025f4c: a2 10 3f ff mov -1, %l1 <== NOT EXECUTED
2025f50: 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;
2025f54: e6 04 20 68 ld [ %l0 + 0x68 ], %l3 <== NOT EXECUTED
while ( (node = rtems_chain_get(the_chain)) != NULL )
2025f58: 10 80 00 04 b 2025f68 <fat_shutdown_drive+0x68> <== NOT EXECUTED
2025f5c: a6 04 c0 12 add %l3, %l2, %l3 <== NOT EXECUTED
free(node);
2025f60: 7f ff 88 c0 call 2008260 <free> <== NOT EXECUTED
2025f64: 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 );
2025f68: 7f ff 9e 01 call 200d76c <_Chain_Get> <== NOT EXECUTED
2025f6c: 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 )
2025f70: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025f74: 12 bf ff fb bne 2025f60 <fat_shutdown_drive+0x60> <== NOT EXECUTED
2025f78: 01 00 00 00 nop <== NOT EXECUTED
2025f7c: 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++)
2025f80: 80 a4 a0 18 cmp %l2, 0x18 <== NOT EXECUTED
2025f84: 32 bf ff f5 bne,a 2025f58 <fat_shutdown_drive+0x58> <== NOT EXECUTED
2025f88: e6 04 20 68 ld [ %l0 + 0x68 ], %l3 <== NOT EXECUTED
2025f8c: 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;
2025f90: e6 04 20 6c ld [ %l0 + 0x6c ], %l3 <== NOT EXECUTED
while ( (node = rtems_chain_get(the_chain)) != NULL )
2025f94: 10 80 00 04 b 2025fa4 <fat_shutdown_drive+0xa4> <== NOT EXECUTED
2025f98: a6 04 c0 12 add %l3, %l2, %l3 <== NOT EXECUTED
free(node);
2025f9c: 7f ff 88 b1 call 2008260 <free> <== NOT EXECUTED
2025fa0: 01 00 00 00 nop <== NOT EXECUTED
2025fa4: 7f ff 9d f2 call 200d76c <_Chain_Get> <== NOT EXECUTED
2025fa8: 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 )
2025fac: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025fb0: 12 bf ff fb bne 2025f9c <fat_shutdown_drive+0x9c> <== NOT EXECUTED
2025fb4: 01 00 00 00 nop <== NOT EXECUTED
2025fb8: 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++)
2025fbc: 80 a4 a0 18 cmp %l2, 0x18 <== NOT EXECUTED
2025fc0: 32 bf ff f5 bne,a 2025f94 <fat_shutdown_drive+0x94> <== NOT EXECUTED
2025fc4: e6 04 20 6c ld [ %l0 + 0x6c ], %l3 <== NOT EXECUTED
while ( (node = rtems_chain_get(the_chain)) != NULL )
free(node);
}
free(fs_info->vhash);
2025fc8: 7f ff 88 a6 call 2008260 <free> <== NOT EXECUTED
2025fcc: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED
free(fs_info->rhash);
2025fd0: 7f ff 88 a4 call 2008260 <free> <== NOT EXECUTED
2025fd4: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED
free(fs_info->uino);
2025fd8: 7f ff 88 a2 call 2008260 <free> <== NOT EXECUTED
2025fdc: d0 04 20 70 ld [ %l0 + 0x70 ], %o0 <== NOT EXECUTED
free(fs_info->sec_buf);
2025fe0: 7f ff 88 a0 call 2008260 <free> <== NOT EXECUTED
2025fe4: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 <== NOT EXECUTED
rtems_disk_release(fs_info->vol.dd);
2025fe8: 7f ff 83 c3 call 2006ef4 <rtems_disk_release> <== NOT EXECUTED
2025fec: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
if (rc)
2025ff0: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
2025ff4: 02 80 00 06 be 202600c <fat_shutdown_drive+0x10c> <== NOT EXECUTED
2025ff8: 01 00 00 00 nop <== NOT EXECUTED
errno = EIO;
2025ffc: 40 00 73 0b call 2042c28 <__errno> <== NOT EXECUTED
2026000: 01 00 00 00 nop <== NOT EXECUTED
2026004: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
2026008: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return rc;
}
202600c: 81 c7 e0 08 ret <== NOT EXECUTED
2026010: 91 e8 00 11 restore %g0, %l1, %o0 <== NOT EXECUTED
0203f38c <fchdir>:
#include <rtems/seterr.h>
int fchdir(
int fd
)
{
203f38c: 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 );
203f390: 03 00 81 a4 sethi %hi(0x2069000), %g1 <== NOT EXECUTED
203f394: c2 00 60 04 ld [ %g1 + 4 ], %g1 ! 2069004 <rtems_libio_number_iops><== NOT EXECUTED
203f398: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED
203f39c: 1a 80 00 0c bcc 203f3cc <fchdir+0x40> <== NOT EXECUTED
203f3a0: 01 00 00 00 nop <== NOT EXECUTED
iop = rtems_libio_iop( fd );
203f3a4: 03 00 81 b4 sethi %hi(0x206d000), %g1 <== NOT EXECUTED
203f3a8: e4 00 61 e4 ld [ %g1 + 0x1e4 ], %l2 ! 206d1e4 <rtems_libio_iops><== NOT EXECUTED
203f3ac: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED
203f3b0: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED
203f3b4: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED
203f3b8: a4 04 80 18 add %l2, %i0, %l2 <== NOT EXECUTED
rtems_libio_check_is_open(iop);
203f3bc: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 <== NOT EXECUTED
203f3c0: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED
203f3c4: 32 80 00 06 bne,a 203f3dc <fchdir+0x50> <== NOT EXECUTED
203f3c8: c2 04 a0 28 ld [ %l2 + 0x28 ], %g1 <== NOT EXECUTED
203f3cc: 40 00 0e 17 call 2042c28 <__errno> <== NOT EXECUTED
203f3d0: 01 00 00 00 nop <== NOT EXECUTED
203f3d4: 10 80 00 15 b 203f428 <fchdir+0x9c> <== NOT EXECUTED
203f3d8: 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 ) {
203f3dc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203f3e0: 02 80 00 06 be 203f3f8 <fchdir+0x6c> <== NOT EXECUTED
203f3e4: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( !iop->pathinfo.ops->node_type_h ) {
203f3e8: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 <== NOT EXECUTED
203f3ec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203f3f0: 32 80 00 06 bne,a 203f408 <fchdir+0x7c> <== NOT EXECUTED
203f3f4: a4 04 a0 1c add %l2, 0x1c, %l2 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
203f3f8: 40 00 0e 0c call 2042c28 <__errno> <== NOT EXECUTED
203f3fc: 01 00 00 00 nop <== NOT EXECUTED
203f400: 10 80 00 0a b 203f428 <fchdir+0x9c> <== NOT EXECUTED
203f404: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
}
if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) !=
203f408: 9f c0 40 00 call %g1 <== NOT EXECUTED
203f40c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
203f410: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED
203f414: 02 80 00 07 be 203f430 <fchdir+0xa4> <== NOT EXECUTED
203f418: 23 00 81 a5 sethi %hi(0x2069400), %l1 <== NOT EXECUTED
RTEMS_FILESYSTEM_DIRECTORY ) {
rtems_set_errno_and_return_minus_one( ENOTDIR );
203f41c: 40 00 0e 03 call 2042c28 <__errno> <== NOT EXECUTED
203f420: 01 00 00 00 nop <== NOT EXECUTED
203f424: 82 10 20 14 mov 0x14, %g1 ! 14 <PROM_START+0x14> <== NOT EXECUTED
203f428: 10 80 00 1c b 203f498 <fchdir+0x10c> <== NOT EXECUTED
203f42c: 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;
203f430: e6 04 60 34 ld [ %l1 + 0x34 ], %l3 <== NOT EXECUTED
203f434: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
203f438: a6 04 e0 04 add %l3, 4, %l3 <== NOT EXECUTED
203f43c: a0 07 bf d8 add %fp, -40, %l0 <== NOT EXECUTED
203f440: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203f444: 40 00 1b 45 call 2046158 <memcpy> <== NOT EXECUTED
203f448: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_filesystem_current = iop->pathinfo;
203f44c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203f450: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
203f454: 40 00 1b 41 call 2046158 <memcpy> <== NOT EXECUTED
203f458: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
/* clone the current node */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
203f45c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
203f460: 11 00 81 9d sethi %hi(0x2067400), %o0 <== NOT EXECUTED
203f464: 94 10 20 00 clr %o2 <== NOT EXECUTED
203f468: 90 12 21 50 or %o0, 0x150, %o0 <== NOT EXECUTED
203f46c: 96 07 bf ec add %fp, -20, %o3 <== NOT EXECUTED
203f470: 7f ff 23 5f call 20081ec <rtems_filesystem_evaluate_path> <== NOT EXECUTED
203f474: 98 10 20 00 clr %o4 <== NOT EXECUTED
203f478: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203f47c: 02 80 00 09 be 203f4a0 <fchdir+0x114> <== NOT EXECUTED
203f480: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
/* cloning failed; restore original and bail out */
rtems_filesystem_current = saved;
203f484: d0 04 60 34 ld [ %l1 + 0x34 ], %o0 <== NOT EXECUTED
203f488: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203f48c: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED
203f490: 40 00 1b 32 call 2046158 <memcpy> <== NOT EXECUTED
203f494: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
return -1;
203f498: 81 c7 e0 08 ret <== NOT EXECUTED
203f49c: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
}
/* release the old one */
rtems_filesystem_freenode( &saved );
203f4a0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203f4a4: 22 80 00 09 be,a 203f4c8 <fchdir+0x13c> <== NOT EXECUTED
203f4a8: 03 00 81 a5 sethi %hi(0x2069400), %g1 <== NOT EXECUTED
203f4ac: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 206941c <mount_chain+0x8><== NOT EXECUTED
203f4b0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203f4b4: 22 80 00 05 be,a 203f4c8 <fchdir+0x13c> <== NOT EXECUTED
203f4b8: 03 00 81 a5 sethi %hi(0x2069400), %g1 <== NOT EXECUTED
203f4bc: 9f c0 40 00 call %g1 <== NOT EXECUTED
203f4c0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_filesystem_current = loc;
203f4c4: 03 00 81 a5 sethi %hi(0x2069400), %g1 <== NOT EXECUTED
203f4c8: d0 00 60 34 ld [ %g1 + 0x34 ], %o0 ! 2069434 <rtems_current_user_env><== NOT EXECUTED
203f4cc: 92 07 bf ec add %fp, -20, %o1 <== NOT EXECUTED
203f4d0: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
203f4d4: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED
203f4d8: 40 00 1b 20 call 2046158 <memcpy> <== NOT EXECUTED
203f4dc: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
203f4e0: 81 c7 e0 08 ret <== NOT EXECUTED
203f4e4: 81 e8 00 00 restore <== NOT EXECUTED
020288a8 <fchmod>:
int fchmod(
int fd,
mode_t mode
)
{
20288a8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
20288ac: 03 00 81 a4 sethi %hi(0x2069000), %g1 <== NOT EXECUTED
20288b0: c2 00 60 04 ld [ %g1 + 4 ], %g1 ! 2069004 <rtems_libio_number_iops><== NOT EXECUTED
20288b4: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED
20288b8: 1a 80 00 0c bcc 20288e8 <fchmod+0x40> <== NOT EXECUTED
20288bc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
iop = rtems_libio_iop( fd );
20288c0: 03 00 81 b4 sethi %hi(0x206d000), %g1 <== NOT EXECUTED
20288c4: d0 00 61 e4 ld [ %g1 + 0x1e4 ], %o0 ! 206d1e4 <rtems_libio_iops><== NOT EXECUTED
20288c8: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED
20288cc: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED
20288d0: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED
20288d4: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED
rtems_libio_check_is_open(iop);
20288d8: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED
20288dc: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED
20288e0: 32 80 00 06 bne,a 20288f8 <fchmod+0x50> <== NOT EXECUTED
20288e4: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 <== NOT EXECUTED
20288e8: 40 00 68 d0 call 2042c28 <__errno> <== NOT EXECUTED
20288ec: 01 00 00 00 nop <== NOT EXECUTED
20288f0: 10 80 00 09 b 2028914 <fchmod+0x6c> <== NOT EXECUTED
20288f4: 82 10 20 09 mov 9, %g1 ! 9 <PROM_START+0x9> <== NOT EXECUTED
/*
* Now process the fchmod().
*/
if ( !iop->handlers->fchmod_h )
20288f8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
20288fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2028900: 32 80 00 08 bne,a 2028920 <fchmod+0x78> <== NOT EXECUTED
2028904: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
2028908: 40 00 68 c8 call 2042c28 <__errno> <== NOT EXECUTED
202890c: 01 00 00 00 nop <== NOT EXECUTED
2028910: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
2028914: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2028918: 10 80 00 05 b 202892c <fchmod+0x84> <== NOT EXECUTED
202891c: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode );
2028920: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
2028924: 9f c0 40 00 call %g1 <== NOT EXECUTED
2028928: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED
}
202892c: 81 c7 e0 08 ret <== NOT EXECUTED
2028930: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02028934 <fchown>:
int fchown(
int fd,
uid_t owner,
gid_t group
)
{
2028934: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
2028938: 03 00 81 a4 sethi %hi(0x2069000), %g1 <== NOT EXECUTED
202893c: c2 00 60 04 ld [ %g1 + 4 ], %g1 ! 2069004 <rtems_libio_number_iops><== NOT EXECUTED
2028940: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED
2028944: 1a 80 00 0c bcc 2028974 <fchown+0x40> <== NOT EXECUTED
2028948: 01 00 00 00 nop <== NOT EXECUTED
iop = rtems_libio_iop( fd );
202894c: 03 00 81 b4 sethi %hi(0x206d000), %g1 <== NOT EXECUTED
2028950: d0 00 61 e4 ld [ %g1 + 0x1e4 ], %o0 ! 206d1e4 <rtems_libio_iops><== NOT EXECUTED
2028954: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED
2028958: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED
202895c: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED
2028960: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED
rtems_libio_check_is_open(iop);
2028964: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED
2028968: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED
202896c: 12 80 00 06 bne 2028984 <fchown+0x50> <== NOT EXECUTED
2028970: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED
2028974: 40 00 68 ad call 2042c28 <__errno> <== NOT EXECUTED
2028978: 01 00 00 00 nop <== NOT EXECUTED
202897c: 10 80 00 0f b 20289b8 <fchown+0x84> <== NOT EXECUTED
2028980: 82 10 20 09 mov 9, %g1 ! 9 <PROM_START+0x9> <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
2028984: 32 80 00 06 bne,a 202899c <fchown+0x68> <== NOT EXECUTED
2028988: c2 02 20 28 ld [ %o0 + 0x28 ], %g1 <== NOT EXECUTED
202898c: 40 00 68 a7 call 2042c28 <__errno> <== NOT EXECUTED
2028990: 01 00 00 00 nop <== NOT EXECUTED
2028994: 10 80 00 09 b 20289b8 <fchown+0x84> <== NOT EXECUTED
2028998: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
if ( !iop->pathinfo.ops->chown_h )
202899c: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED
20289a0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20289a4: 12 80 00 08 bne 20289c4 <fchown+0x90> <== NOT EXECUTED
20289a8: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
20289ac: 40 00 68 9f call 2042c28 <__errno> <== NOT EXECUTED
20289b0: 01 00 00 00 nop <== NOT EXECUTED
20289b4: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
20289b8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20289bc: 10 80 00 07 b 20289d8 <fchown+0xa4> <== NOT EXECUTED
20289c0: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group );
20289c4: 95 2e a0 10 sll %i2, 0x10, %o2 <== NOT EXECUTED
20289c8: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED
20289cc: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED
20289d0: 9f c0 40 00 call %g1 <== NOT EXECUTED
20289d4: 95 32 a0 10 srl %o2, 0x10, %o2 <== NOT EXECUTED
}
20289d8: 81 c7 e0 08 ret <== NOT EXECUTED
20289dc: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203f510 <fcntl>:
int fcntl(
int fd,
int cmd,
...
)
{
203f510: 9d e3 bf 98 save %sp, -104, %sp
int fd2;
int flags;
int mask;
int ret = 0;
rtems_libio_check_fd( fd );
203f514: 03 00 81 a4 sethi %hi(0x2069000), %g1
203f518: c2 00 60 04 ld [ %g1 + 4 ], %g1 ! 2069004 <rtems_libio_number_iops>
...
)
{
int ret;
va_list ap;
va_start( ap, cmd );
203f51c: 84 07 a0 4c add %fp, 0x4c, %g2
203f520: f4 27 a0 4c st %i2, [ %fp + 0x4c ]
203f524: f6 27 a0 50 st %i3, [ %fp + 0x50 ]
203f528: f8 27 a0 54 st %i4, [ %fp + 0x54 ]
203f52c: fa 27 a0 58 st %i5, [ %fp + 0x58 ]
int fd2;
int flags;
int mask;
int ret = 0;
rtems_libio_check_fd( fd );
203f530: 80 a6 00 01 cmp %i0, %g1
203f534: 1a 80 00 0c bcc 203f564 <fcntl+0x54> <== NEVER TAKEN
203f538: c4 27 bf fc st %g2, [ %fp + -4 ]
iop = rtems_libio_iop( fd );
203f53c: 07 00 81 b4 sethi %hi(0x206d000), %g3
203f540: c6 00 e1 e4 ld [ %g3 + 0x1e4 ], %g3 ! 206d1e4 <rtems_libio_iops>
203f544: 89 2e 20 06 sll %i0, 6, %g4
203f548: a1 2e 20 03 sll %i0, 3, %l0
203f54c: a0 04 00 04 add %l0, %g4, %l0
203f550: a0 00 c0 10 add %g3, %l0, %l0
rtems_libio_check_is_open(iop);
203f554: d0 04 20 18 ld [ %l0 + 0x18 ], %o0
203f558: 80 8a 21 00 btst 0x100, %o0
203f55c: 12 80 00 06 bne 203f574 <fcntl+0x64> <== ALWAYS TAKEN
203f560: 80 a6 60 09 cmp %i1, 9
203f564: 40 00 0d b1 call 2042c28 <__errno> <== NOT EXECUTED
203f568: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203f56c: 10 80 00 51 b 203f6b0 <fcntl+0x1a0> <== NOT EXECUTED
203f570: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED
/*
* This switch should contain all the cases from POSIX.
*/
switch ( cmd ) {
203f574: 18 80 00 4c bgu 203f6a4 <fcntl+0x194>
203f578: 89 2e 60 02 sll %i1, 2, %g4
203f57c: 1b 00 80 fd sethi %hi(0x203f400), %o5
203f580: 9a 13 60 e8 or %o5, 0xe8, %o5 ! 203f4e8 <fchdir+0x15c>
203f584: c8 03 40 04 ld [ %o5 + %g4 ], %g4
203f588: 81 c1 00 00 jmp %g4
203f58c: 01 00 00 00 nop
case F_DUPFD: /* dup */
fd2 = va_arg( ap, int );
203f590: c4 00 80 00 ld [ %g2 ], %g2
if ( fd2 )
203f594: 80 a0 a0 00 cmp %g2, 0
203f598: 02 80 00 09 be 203f5bc <fcntl+0xac> <== ALWAYS TAKEN
203f59c: 80 a0 80 01 cmp %g2, %g1
diop = rtems_libio_iop( fd2 );
203f5a0: 1a 80 00 0c bcc 203f5d0 <fcntl+0xc0> <== NOT EXECUTED
203f5a4: a2 10 20 00 clr %l1 <== NOT EXECUTED
203f5a8: 83 28 a0 06 sll %g2, 6, %g1 <== NOT EXECUTED
203f5ac: a3 28 a0 03 sll %g2, 3, %l1 <== NOT EXECUTED
203f5b0: a2 04 40 01 add %l1, %g1, %l1 <== NOT EXECUTED
203f5b4: 10 80 00 07 b 203f5d0 <fcntl+0xc0> <== NOT EXECUTED
203f5b8: a2 00 c0 11 add %g3, %l1, %l1 <== NOT EXECUTED
else {
/* allocate a file control block */
diop = rtems_libio_allocate();
203f5bc: 7f ff 24 45 call 20086d0 <rtems_libio_allocate>
203f5c0: b0 10 3f ff mov -1, %i0
if ( diop == 0 ) {
203f5c4: a2 92 20 00 orcc %o0, 0, %l1
203f5c8: 02 80 00 4d be 203f6fc <fcntl+0x1ec> <== NEVER TAKEN
203f5cc: 01 00 00 00 nop
break;
}
}
diop->handlers = iop->handlers;
diop->file_info = iop->file_info;
203f5d0: c4 04 20 3c ld [ %l0 + 0x3c ], %g2
diop->flags = iop->flags;
203f5d4: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
ret = -1;
break;
}
}
diop->handlers = iop->handlers;
203f5d8: c6 04 20 40 ld [ %l0 + 0x40 ], %g3
diop->file_info = iop->file_info;
203f5dc: c4 24 60 3c st %g2, [ %l1 + 0x3c ]
diop->flags = iop->flags;
203f5e0: c2 24 60 18 st %g1, [ %l1 + 0x18 ]
ret = -1;
break;
}
}
diop->handlers = iop->handlers;
203f5e4: c6 24 60 40 st %g3, [ %l1 + 0x40 ]
diop->file_info = iop->file_info;
diop->flags = iop->flags;
diop->pathinfo = iop->pathinfo;
203f5e8: 90 04 60 1c add %l1, 0x1c, %o0
203f5ec: 92 04 20 1c add %l0, 0x1c, %o1
203f5f0: 40 00 1a da call 2046158 <memcpy>
203f5f4: 94 10 20 14 mov 0x14, %o2
ret = (int) (diop - rtems_libio_iops);
203f5f8: 03 00 81 b4 sethi %hi(0x206d000), %g1
203f5fc: f0 00 61 e4 ld [ %g1 + 0x1e4 ], %i0 ! 206d1e4 <rtems_libio_iops>
203f600: a2 24 40 18 sub %l1, %i0, %l1
203f604: a3 3c 60 03 sra %l1, 3, %l1
203f608: 85 2c 60 06 sll %l1, 6, %g2
203f60c: 83 2c 60 03 sll %l1, 3, %g1
203f610: 82 20 80 01 sub %g2, %g1, %g1
203f614: 85 28 60 06 sll %g1, 6, %g2
203f618: 82 00 40 02 add %g1, %g2, %g1
203f61c: 82 00 40 11 add %g1, %l1, %g1
203f620: b1 28 60 0f sll %g1, 0xf, %i0
203f624: b0 26 00 01 sub %i0, %g1, %i0
203f628: b1 2e 20 03 sll %i0, 3, %i0
203f62c: 10 80 00 24 b 203f6bc <fcntl+0x1ac>
203f630: b0 06 00 11 add %i0, %l1, %i0
break;
case F_GETFD: /* get f_flags */
ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0);
203f634: b1 32 20 0b srl %o0, 0xb, %i0
203f638: 10 80 00 24 b 203f6c8 <fcntl+0x1b8>
203f63c: 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 ) )
203f640: c2 00 80 00 ld [ %g2 ], %g1
203f644: 80 a0 60 00 cmp %g1, 0
203f648: 22 80 00 03 be,a 203f654 <fcntl+0x144> <== NEVER TAKEN
203f64c: 90 0a 37 ff and %o0, -2049, %o0 <== NOT EXECUTED
203f650: 90 12 28 00 or %o0, 0x800, %o0
iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;
else
iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;
203f654: d0 24 20 18 st %o0, [ %l0 + 0x18 ]
203f658: 10 80 00 1c b 203f6c8 <fcntl+0x1b8>
203f65c: b0 10 20 00 clr %i0
break;
case F_GETFL: /* more flags (cloexec) */
ret = rtems_libio_to_fcntl_flags( iop->flags );
203f660: 7f ff 23 b1 call 2008524 <rtems_libio_to_fcntl_flags>
203f664: 01 00 00 00 nop
203f668: 10 80 00 15 b 203f6bc <fcntl+0x1ac>
203f66c: b0 10 00 08 mov %o0, %i0
break;
case F_SETFL:
flags = rtems_libio_fcntl_flags( va_arg( ap, int ) );
203f670: d0 00 80 00 ld [ %g2 ], %o0
203f674: 7f ff 24 4b call 20087a0 <rtems_libio_fcntl_flags>
203f678: 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);
203f67c: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
203f680: 90 0a 22 01 and %o0, 0x201, %o0
203f684: 82 08 7d fe and %g1, -514, %g1
203f688: 82 12 00 01 or %o0, %g1, %g1
203f68c: 10 80 00 0f b 203f6c8 <fcntl+0x1b8>
203f690: c2 24 20 18 st %g1, [ %l0 + 0x18 ]
errno = ENOTSUP;
ret = -1;
break;
case F_GETOWN: /* for sockets. */
errno = ENOTSUP;
203f694: 40 00 0d 65 call 2042c28 <__errno>
203f698: b0 10 3f ff mov -1, %i0
203f69c: 10 80 00 05 b 203f6b0 <fcntl+0x1a0>
203f6a0: 82 10 20 86 mov 0x86, %g1
ret = -1;
break;
default:
errno = EINVAL;
203f6a4: 40 00 0d 61 call 2042c28 <__errno>
203f6a8: b0 10 3f ff mov -1, %i0
203f6ac: 82 10 20 16 mov 0x16, %g1
203f6b0: c2 22 00 00 st %g1, [ %o0 ]
203f6b4: 81 c7 e0 08 ret
203f6b8: 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) {
203f6bc: 80 a6 20 00 cmp %i0, 0
203f6c0: 06 80 00 0f bl 203f6fc <fcntl+0x1ec> <== NEVER TAKEN
203f6c4: 01 00 00 00 nop
if (iop->handlers->fcntl_h) {
203f6c8: c2 04 20 40 ld [ %l0 + 0x40 ], %g1
203f6cc: c2 00 60 30 ld [ %g1 + 0x30 ], %g1
203f6d0: 80 a0 60 00 cmp %g1, 0
203f6d4: 02 bf ff f8 be 203f6b4 <fcntl+0x1a4> <== NEVER TAKEN
203f6d8: 92 10 00 10 mov %l0, %o1
int err = (*iop->handlers->fcntl_h)( cmd, iop );
203f6dc: 9f c0 40 00 call %g1
203f6e0: 90 10 00 19 mov %i1, %o0
if (err) {
203f6e4: a0 92 20 00 orcc %o0, 0, %l0
203f6e8: 02 80 00 05 be 203f6fc <fcntl+0x1ec> <== ALWAYS TAKEN
203f6ec: 01 00 00 00 nop
errno = err;
203f6f0: 40 00 0d 4e call 2042c28 <__errno> <== NOT EXECUTED
203f6f4: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
203f6f8: 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;
}
203f6fc: 81 c7 e0 08 ret
203f700: 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 78 sethi %hi(0x201e000), %g1
2003728: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 ! 201e014 <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 7a sethi %hi(0x201e800), %g1
200373c: d0 00 61 ac ld [ %g1 + 0x1ac ], %o0 ! 201e9ac <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 34 70 call 2010928 <__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 34 68 call 2010928 <__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
0200a628 <fifo_open>:
*/
int fifo_open(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
200a628: 9d e3 bf 98 save %sp, -104, %sp
)
{
pipe_control_t *pipe;
int err = 0;
if (rtems_semaphore_obtain(rtems_pipe_semaphore,
200a62c: 03 00 80 72 sethi %hi(0x201c800), %g1
200a630: d0 00 60 cc ld [ %g1 + 0xcc ], %o0 ! 201c8cc <rtems_pipe_semaphore>
*/
int fifo_open(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
200a634: a0 10 00 18 mov %i0, %l0
)
{
pipe_control_t *pipe;
int err = 0;
if (rtems_semaphore_obtain(rtems_pipe_semaphore,
200a638: 92 10 20 00 clr %o1
200a63c: 94 10 20 00 clr %o2
200a640: 7f ff ef 41 call 2006344 <rtems_semaphore_obtain>
200a644: b0 10 3f fc mov -4, %i0
200a648: 80 a2 20 00 cmp %o0, 0
200a64c: 12 80 00 da bne 200a9b4 <fifo_open+0x38c> <== ALWAYS TAKEN
200a650: 01 00 00 00 nop
RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL)
return -EINTR;
pipe = *pipep;
200a654: e2 04 00 00 ld [ %l0 ], %l1 <== NOT EXECUTED
if (pipe == NULL) {
200a658: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
200a65c: 32 80 00 45 bne,a 200a770 <fifo_open+0x148> <== NOT EXECUTED
200a660: 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));
200a664: 7f ff e2 05 call 2002e78 <malloc> <== NOT EXECUTED
200a668: 90 10 20 34 mov 0x34, %o0 <== NOT EXECUTED
if (pipe == NULL)
200a66c: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
200a670: 02 80 00 3d be 200a764 <fifo_open+0x13c> <== NOT EXECUTED
200a674: a6 10 00 11 mov %l1, %l3 <== NOT EXECUTED
return err;
memset(pipe, 0, sizeof(pipe_control_t));
200a678: 92 10 20 00 clr %o1 <== NOT EXECUTED
200a67c: 40 00 16 23 call 200ff08 <memset> <== NOT EXECUTED
200a680: 94 10 20 34 mov 0x34, %o2 <== NOT EXECUTED
pipe->Size = PIPE_BUF;
200a684: 82 10 22 00 mov 0x200, %g1 <== NOT EXECUTED
pipe->Buffer = malloc(pipe->Size);
200a688: 90 10 22 00 mov 0x200, %o0 <== NOT EXECUTED
200a68c: 7f ff e1 fb call 2002e78 <malloc> <== NOT EXECUTED
200a690: c2 24 60 04 st %g1, [ %l1 + 4 ] <== NOT EXECUTED
if (! pipe->Buffer)
200a694: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a698: 02 80 00 31 be 200a75c <fifo_open+0x134> <== NOT EXECUTED
200a69c: d0 24 40 00 st %o0, [ %l1 ] <== NOT EXECUTED
goto err_buf;
err = -ENOMEM;
if (rtems_barrier_create(
200a6a0: 25 00 80 70 sethi %hi(0x201c000), %l2 <== NOT EXECUTED
200a6a4: d0 4c a2 84 ldsb [ %l2 + 0x284 ], %o0 ! 201c284 <c.5581> <== NOT EXECUTED
200a6a8: 29 14 12 5c sethi %hi(0x50497000), %l4 <== NOT EXECUTED
200a6ac: 82 15 22 00 or %l4, 0x200, %g1 ! 50497200 <RAM_END+0x4e097200><== NOT EXECUTED
200a6b0: 92 10 20 00 clr %o1 <== NOT EXECUTED
200a6b4: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
200a6b8: 94 10 20 00 clr %o2 <== NOT EXECUTED
200a6bc: 40 00 07 74 call 200c48c <rtems_barrier_create> <== NOT EXECUTED
200a6c0: 96 04 60 2c add %l1, 0x2c, %o3 <== NOT EXECUTED
200a6c4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a6c8: 12 80 00 23 bne 200a754 <fifo_open+0x12c> <== NOT EXECUTED
200a6cc: d0 4c a2 84 ldsb [ %l2 + 0x284 ], %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(
200a6d0: 03 14 12 5d sethi %hi(0x50497400), %g1 <== NOT EXECUTED
200a6d4: 82 10 63 00 or %g1, 0x300, %g1 ! 50497700 <RAM_END+0x4e097700><== NOT EXECUTED
200a6d8: 92 10 20 00 clr %o1 <== NOT EXECUTED
200a6dc: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
200a6e0: 94 10 20 00 clr %o2 <== NOT EXECUTED
200a6e4: 40 00 07 6a call 200c48c <rtems_barrier_create> <== NOT EXECUTED
200a6e8: 96 04 60 30 add %l1, 0x30, %o3 <== NOT EXECUTED
200a6ec: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a6f0: 12 80 00 17 bne 200a74c <fifo_open+0x124> <== NOT EXECUTED
200a6f4: d0 4c a2 84 ldsb [ %l2 + 0x284 ], %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(
200a6f8: a8 15 23 00 or %l4, 0x300, %l4 <== NOT EXECUTED
200a6fc: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
200a700: 90 12 00 14 or %o0, %l4, %o0 <== NOT EXECUTED
200a704: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED
200a708: 96 10 20 00 clr %o3 <== NOT EXECUTED
200a70c: 7f ff ee 6c call 20060bc <rtems_semaphore_create> <== NOT EXECUTED
200a710: 98 04 60 28 add %l1, 0x28, %o4 <== NOT EXECUTED
200a714: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a718: 12 80 00 0b bne 200a744 <fifo_open+0x11c> <== NOT EXECUTED
200a71c: c2 0c a2 84 ldub [ %l2 + 0x284 ], %g1 <== NOT EXECUTED
#ifdef RTEMS_POSIX_API
pipe_interruptible(pipe);
#endif
*pipep = pipe;
if (c ++ == 'z')
200a720: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED
200a724: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED
200a728: 83 38 60 18 sra %g1, 0x18, %g1 <== NOT EXECUTED
200a72c: 80 a0 60 7a cmp %g1, 0x7a <== NOT EXECUTED
200a730: 12 80 00 0f bne 200a76c <fifo_open+0x144> <== NOT EXECUTED
200a734: c4 2c a2 84 stb %g2, [ %l2 + 0x284 ] <== NOT EXECUTED
c = 'a';
200a738: 82 10 20 61 mov 0x61, %g1 <== NOT EXECUTED
200a73c: 10 80 00 0c b 200a76c <fifo_open+0x144> <== NOT EXECUTED
200a740: c2 2c a2 84 stb %g1, [ %l2 + 0x284 ] <== NOT EXECUTED
return 0;
err_sem:
rtems_barrier_delete(pipe->writeBarrier);
200a744: 40 00 07 80 call 200c544 <rtems_barrier_delete> <== NOT EXECUTED
200a748: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED
err_wbar:
rtems_barrier_delete(pipe->readBarrier);
200a74c: 40 00 07 7e call 200c544 <rtems_barrier_delete> <== NOT EXECUTED
200a750: d0 04 e0 2c ld [ %l3 + 0x2c ], %o0 <== NOT EXECUTED
err_rbar:
free(pipe->Buffer);
200a754: 7f ff e0 ea call 2002afc <free> <== NOT EXECUTED
200a758: d0 04 c0 00 ld [ %l3 ], %o0 <== NOT EXECUTED
err_buf:
free(pipe);
200a75c: 7f ff e0 e8 call 2002afc <free> <== NOT EXECUTED
200a760: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
200a764: 10 80 00 14 b 200a7b4 <fifo_open+0x18c> <== NOT EXECUTED
200a768: b0 10 3f f4 mov -12, %i0 <== NOT EXECUTED
err = pipe_alloc(&pipe);
if (err)
goto out;
}
if (! PIPE_LOCK(pipe))
200a76c: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED
200a770: 92 10 20 00 clr %o1 <== NOT EXECUTED
200a774: 7f ff ee f4 call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
200a778: 94 10 20 00 clr %o2 <== NOT EXECUTED
err = -EINTR;
if (*pipep == NULL) {
200a77c: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
err = pipe_alloc(&pipe);
if (err)
goto out;
}
if (! PIPE_LOCK(pipe))
200a780: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
200a784: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED
err = -EINTR;
if (*pipep == NULL) {
200a788: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
err = pipe_alloc(&pipe);
if (err)
goto out;
}
if (! PIPE_LOCK(pipe))
200a78c: b0 0e 20 04 and %i0, 4, %i0 <== NOT EXECUTED
err = -EINTR;
if (*pipep == NULL) {
200a790: 12 80 00 09 bne 200a7b4 <fifo_open+0x18c> <== NOT EXECUTED
200a794: b0 06 3f fc add %i0, -4, %i0 <== NOT EXECUTED
if (err)
200a798: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
200a79c: 22 80 00 06 be,a 200a7b4 <fifo_open+0x18c> <== NOT EXECUTED
200a7a0: e2 24 00 00 st %l1, [ %l0 ] <== NOT EXECUTED
pipe_free(pipe);
200a7a4: 7f ff ff 51 call 200a4e8 <pipe_free> <== NOT EXECUTED
200a7a8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
else
*pipep = pipe;
}
out:
rtems_semaphore_release(rtems_pipe_semaphore);
200a7ac: 10 80 00 03 b 200a7b8 <fifo_open+0x190> <== NOT EXECUTED
200a7b0: 03 00 80 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED
200a7b4: 03 00 80 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED
200a7b8: 7f ff ef 2a call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200a7bc: d0 00 60 cc ld [ %g1 + 0xcc ], %o0 ! 201c8cc <rtems_pipe_semaphore><== NOT EXECUTED
pipe_control_t *pipe;
unsigned int prevCounter;
int err;
err = pipe_new(pipep);
if (err)
200a7c0: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
200a7c4: 12 80 00 7c bne 200a9b4 <fifo_open+0x38c> <== NOT EXECUTED
200a7c8: 01 00 00 00 nop <== NOT EXECUTED
return err;
pipe = *pipep;
switch (LIBIO_ACCMODE(iop)) {
200a7cc: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED
200a7d0: 82 08 60 06 and %g1, 6, %g1 <== NOT EXECUTED
200a7d4: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED
200a7d8: 02 80 00 2e be 200a890 <fifo_open+0x268> <== NOT EXECUTED
200a7dc: e2 04 00 00 ld [ %l0 ], %l1 <== NOT EXECUTED
200a7e0: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED
200a7e4: 02 80 00 56 be 200a93c <fifo_open+0x314> <== NOT EXECUTED
200a7e8: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
200a7ec: 12 80 00 6a bne 200a994 <fifo_open+0x36c> <== NOT EXECUTED
200a7f0: 01 00 00 00 nop <== NOT EXECUTED
case LIBIO_FLAGS_READ:
pipe->readerCounter ++;
if (pipe->Readers ++ == 0)
200a7f4: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED
return err;
pipe = *pipep;
switch (LIBIO_ACCMODE(iop)) {
case LIBIO_FLAGS_READ:
pipe->readerCounter ++;
200a7f8: c4 04 60 20 ld [ %l1 + 0x20 ], %g2 <== NOT EXECUTED
if (pipe->Readers ++ == 0)
200a7fc: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED
return err;
pipe = *pipep;
switch (LIBIO_ACCMODE(iop)) {
case LIBIO_FLAGS_READ:
pipe->readerCounter ++;
200a800: 84 00 a0 01 inc %g2 <== NOT EXECUTED
if (pipe->Readers ++ == 0)
200a804: c6 24 60 10 st %g3, [ %l1 + 0x10 ] <== NOT EXECUTED
200a808: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a80c: 12 80 00 05 bne 200a820 <fifo_open+0x1f8> <== NOT EXECUTED
200a810: c4 24 60 20 st %g2, [ %l1 + 0x20 ] <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
200a814: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED
200a818: 40 00 07 65 call 200c5ac <rtems_barrier_release> <== NOT EXECUTED
200a81c: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
if (pipe->Writers == 0) {
200a820: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED
200a824: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a828: 12 80 00 5b bne 200a994 <fifo_open+0x36c> <== NOT EXECUTED
200a82c: 01 00 00 00 nop <== NOT EXECUTED
/* Not an error */
if (LIBIO_NODELAY(iop))
200a830: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED
200a834: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
200a838: 12 80 00 57 bne 200a994 <fifo_open+0x36c> <== NOT EXECUTED
200a83c: 01 00 00 00 nop <== NOT EXECUTED
break;
prevCounter = pipe->writerCounter;
200a840: e4 04 60 24 ld [ %l1 + 0x24 ], %l2 <== NOT EXECUTED
err = -EINTR;
/* Wait until a writer opens the pipe */
do {
PIPE_UNLOCK(pipe);
200a844: 7f ff ef 07 call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200a848: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED
if (! PIPE_READWAIT(pipe))
200a84c: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED
200a850: 40 00 07 6e call 200c608 <rtems_barrier_wait> <== NOT EXECUTED
200a854: 92 10 20 00 clr %o1 <== NOT EXECUTED
200a858: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a85c: 12 80 00 52 bne 200a9a4 <fifo_open+0x37c> <== NOT EXECUTED
200a860: 92 10 20 00 clr %o1 <== NOT EXECUTED
goto out_error;
if (! PIPE_LOCK(pipe))
200a864: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED
200a868: 7f ff ee b7 call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
200a86c: 94 10 20 00 clr %o2 <== NOT EXECUTED
200a870: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a874: 32 80 00 4d bne,a 200a9a8 <fifo_open+0x380> <== NOT EXECUTED
200a878: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED
goto out_error;
} while (prevCounter == pipe->writerCounter);
200a87c: c2 04 60 24 ld [ %l1 + 0x24 ], %g1 <== NOT EXECUTED
200a880: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED
200a884: 02 bf ff f0 be 200a844 <fifo_open+0x21c> <== NOT EXECUTED
200a888: 01 00 00 00 nop <== NOT EXECUTED
200a88c: 30 80 00 42 b,a 200a994 <fifo_open+0x36c> <== NOT EXECUTED
break;
case LIBIO_FLAGS_WRITE:
pipe->writerCounter ++;
if (pipe->Writers ++ == 0)
200a890: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED
} while (prevCounter == pipe->writerCounter);
}
break;
case LIBIO_FLAGS_WRITE:
pipe->writerCounter ++;
200a894: c4 04 60 24 ld [ %l1 + 0x24 ], %g2 <== NOT EXECUTED
if (pipe->Writers ++ == 0)
200a898: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED
} while (prevCounter == pipe->writerCounter);
}
break;
case LIBIO_FLAGS_WRITE:
pipe->writerCounter ++;
200a89c: 84 00 a0 01 inc %g2 <== NOT EXECUTED
if (pipe->Writers ++ == 0)
200a8a0: c6 24 60 14 st %g3, [ %l1 + 0x14 ] <== NOT EXECUTED
200a8a4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a8a8: 12 80 00 05 bne 200a8bc <fifo_open+0x294> <== NOT EXECUTED
200a8ac: c4 24 60 24 st %g2, [ %l1 + 0x24 ] <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
200a8b0: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED
200a8b4: 40 00 07 3e call 200c5ac <rtems_barrier_release> <== NOT EXECUTED
200a8b8: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {
200a8bc: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED
200a8c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a8c4: 12 80 00 34 bne 200a994 <fifo_open+0x36c> <== NOT EXECUTED
200a8c8: 01 00 00 00 nop <== NOT EXECUTED
200a8cc: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED
200a8d0: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
200a8d4: 22 80 00 07 be,a 200a8f0 <fifo_open+0x2c8> <== NOT EXECUTED
200a8d8: e4 04 60 20 ld [ %l1 + 0x20 ], %l2 <== NOT EXECUTED
PIPE_UNLOCK(pipe);
200a8dc: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED
200a8e0: 7f ff ee e0 call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200a8e4: b0 10 3f fa mov -6, %i0 <== NOT EXECUTED
err = -ENXIO;
goto out_error;
200a8e8: 10 80 00 31 b 200a9ac <fifo_open+0x384> <== NOT EXECUTED
200a8ec: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (pipe->Readers == 0) {
prevCounter = pipe->readerCounter;
err = -EINTR;
do {
PIPE_UNLOCK(pipe);
200a8f0: 7f ff ee dc call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200a8f4: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED
if (! PIPE_WRITEWAIT(pipe))
200a8f8: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED
200a8fc: 40 00 07 43 call 200c608 <rtems_barrier_wait> <== NOT EXECUTED
200a900: 92 10 20 00 clr %o1 <== NOT EXECUTED
200a904: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a908: 12 80 00 27 bne 200a9a4 <fifo_open+0x37c> <== NOT EXECUTED
200a90c: 92 10 20 00 clr %o1 <== NOT EXECUTED
goto out_error;
if (! PIPE_LOCK(pipe))
200a910: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED
200a914: 7f ff ee 8c call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
200a918: 94 10 20 00 clr %o2 <== NOT EXECUTED
200a91c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a920: 32 80 00 22 bne,a 200a9a8 <fifo_open+0x380> <== NOT EXECUTED
200a924: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED
goto out_error;
} while (prevCounter == pipe->readerCounter);
200a928: c2 04 60 20 ld [ %l1 + 0x20 ], %g1 <== NOT EXECUTED
200a92c: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED
200a930: 02 bf ff f0 be 200a8f0 <fifo_open+0x2c8> <== NOT EXECUTED
200a934: 01 00 00 00 nop <== NOT EXECUTED
200a938: 30 80 00 17 b,a 200a994 <fifo_open+0x36c> <== NOT EXECUTED
}
break;
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
if (pipe->Readers ++ == 0)
200a93c: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED
} while (prevCounter == pipe->readerCounter);
}
break;
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
200a940: c4 04 60 20 ld [ %l1 + 0x20 ], %g2 <== NOT EXECUTED
if (pipe->Readers ++ == 0)
200a944: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED
} while (prevCounter == pipe->readerCounter);
}
break;
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
200a948: 84 00 a0 01 inc %g2 <== NOT EXECUTED
if (pipe->Readers ++ == 0)
200a94c: c6 24 60 10 st %g3, [ %l1 + 0x10 ] <== NOT EXECUTED
200a950: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a954: 12 80 00 05 bne 200a968 <fifo_open+0x340> <== NOT EXECUTED
200a958: c4 24 60 20 st %g2, [ %l1 + 0x20 ] <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
200a95c: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED
200a960: 40 00 07 13 call 200c5ac <rtems_barrier_release> <== NOT EXECUTED
200a964: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
pipe->writerCounter ++;
if (pipe->Writers ++ == 0)
200a968: 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 ++;
200a96c: c4 04 60 24 ld [ %l1 + 0x24 ], %g2 <== NOT EXECUTED
if (pipe->Writers ++ == 0)
200a970: 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 ++;
200a974: 84 00 a0 01 inc %g2 <== NOT EXECUTED
if (pipe->Writers ++ == 0)
200a978: c6 24 60 14 st %g3, [ %l1 + 0x14 ] <== NOT EXECUTED
200a97c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a980: 12 80 00 05 bne 200a994 <fifo_open+0x36c> <== NOT EXECUTED
200a984: c4 24 60 24 st %g2, [ %l1 + 0x24 ] <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
200a988: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED
200a98c: 40 00 07 08 call 200c5ac <rtems_barrier_release> <== NOT EXECUTED
200a990: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
break;
}
PIPE_UNLOCK(pipe);
200a994: 7f ff ee b3 call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200a998: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED
return 0;
200a99c: 81 c7 e0 08 ret <== NOT EXECUTED
200a9a0: 81 e8 00 00 restore <== NOT EXECUTED
200a9a4: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED
out_error:
pipe_release(pipep, iop);
200a9a8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
200a9ac: 7f ff fe db call 200a518 <pipe_release> <== NOT EXECUTED
200a9b0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
return err;
}
200a9b4: 81 c7 e0 08 ret
200a9b8: 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 78 sethi %hi(0x201e000), %g1
20037e8: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 ! 201e014 <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 7a sethi %hi(0x201e800), %g1
iop = rtems_libio_iop(fd);
20037f8: c2 00 61 ac ld [ %g1 + 0x1ac ], %g1 ! 201e9ac <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 34 43 call 2010928 <__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 34 11 call 2010928 <__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 72 sethi %hi(0x201c800), %g1
2002b04: 82 10 62 60 or %g1, 0x260, %g1 ! 201ca60 <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 73 sethi %hi(0x201cc00), %g1
2002b24: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 201cdc0 <_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 71 sethi %hi(0x201c400), %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 71 sethi %hi(0x201c400), %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 63 a8 ld [ %g1 + 0x3a8 ], %g1
2002b54: 80 a0 60 00 cmp %g1, 0
2002b58: 02 80 00 06 be 2002b70 <free+0x74> <== ALWAYS TAKEN
2002b5c: 21 00 80 70 sethi %hi(0x201c000), %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 70 sethi %hi(0x201c000), %l0 <== NOT EXECUTED
2002b70: d0 04 20 c0 ld [ %l0 + 0xc0 ], %o0 ! 201c0c0 <RTEMS_Malloc_Heap>
2002b74: 40 00 14 d4 call 2007ec4 <_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 20 c0 ld [ %l0 + 0xc0 ], %g1
printk( "Program heap: free of bad pointer %p -- range %p - %p \n",
2002b88: 31 00 80 6b sethi %hi(0x201ac00), %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 a8 restore %i0, 0x3a8, %o0 <== NOT EXECUTED
2002b9c: 81 c7 e0 08 ret
2002ba0: 81 e8 00 00 restore
02029f14 <free_user_env>:
* NOTE: this must be called with
* thread dispatching disabled!
*/
static void
free_user_env(void *venv)
{
2029f14: 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
2029f18: 03 00 81 b4 sethi %hi(0x206d000), %g1 <== NOT EXECUTED
2029f1c: 82 10 62 3c or %g1, 0x23c, %g1 ! 206d23c <rtems_global_user_env><== NOT EXECUTED
2029f20: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED
2029f24: 02 80 00 18 be 2029f84 <free_user_env+0x70> <== NOT EXECUTED
2029f28: 01 00 00 00 nop <== NOT EXECUTED
#ifdef HAVE_USERENV_REFCNT
&& --env->refcnt <= 0
#endif
) {
rtems_filesystem_freenode( &env->current_directory);
2029f2c: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
2029f30: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2029f34: 22 80 00 09 be,a 2029f58 <free_user_env+0x44> <== NOT EXECUTED
2029f38: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED
2029f3c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
2029f40: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2029f44: 22 80 00 05 be,a 2029f58 <free_user_env+0x44> <== NOT EXECUTED
2029f48: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED
2029f4c: 9f c0 40 00 call %g1 <== NOT EXECUTED
2029f50: 90 06 20 04 add %i0, 4, %o0 <== NOT EXECUTED
rtems_filesystem_freenode( &env->root_directory);
2029f54: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED
2029f58: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2029f5c: 02 80 00 08 be 2029f7c <free_user_env+0x68> <== NOT EXECUTED
2029f60: 01 00 00 00 nop <== NOT EXECUTED
2029f64: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
2029f68: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2029f6c: 02 80 00 04 be 2029f7c <free_user_env+0x68> <== NOT EXECUTED
2029f70: 01 00 00 00 nop <== NOT EXECUTED
2029f74: 9f c0 40 00 call %g1 <== NOT EXECUTED
2029f78: 90 06 20 18 add %i0, 0x18, %o0 <== NOT EXECUTED
free(env);
2029f7c: 7f ff 78 b9 call 2008260 <free> <== NOT EXECUTED
2029f80: 81 e8 00 00 restore <== NOT EXECUTED
2029f84: 81 c7 e0 08 ret <== NOT EXECUTED
2029f88: 81 e8 00 00 restore <== NOT EXECUTED
02019ec0 <fstat>:
int fstat(
int fd,
struct stat *sbuf
)
{
2019ec0: 9d e3 bf a0 save %sp, -96, %sp
/*
* Check to see if we were passed a valid pointer.
*/
if ( !sbuf )
2019ec4: 80 a6 60 00 cmp %i1, 0
2019ec8: 32 80 00 06 bne,a 2019ee0 <fstat+0x20>
2019ecc: 03 00 80 70 sethi %hi(0x201c000), %g1
rtems_set_errno_and_return_minus_one( EFAULT );
2019ed0: 7f ff d5 93 call 200f51c <__errno>
2019ed4: 01 00 00 00 nop
2019ed8: 10 80 00 12 b 2019f20 <fstat+0x60>
2019edc: 82 10 20 0e mov 0xe, %g1 ! e <PROM_START+0xe>
/*
* Now process the stat() request.
*/
iop = rtems_libio_iop( fd );
2019ee0: c2 00 60 b4 ld [ %g1 + 0xb4 ], %g1
2019ee4: 80 a6 00 01 cmp %i0, %g1
2019ee8: 1a 80 00 0b bcc 2019f14 <fstat+0x54>
2019eec: 03 00 80 72 sethi %hi(0x201c800), %g1
2019ef0: c2 00 62 48 ld [ %g1 + 0x248 ], %g1 ! 201ca48 <rtems_libio_iops>
2019ef4: 85 2e 20 06 sll %i0, 6, %g2
2019ef8: b1 2e 20 03 sll %i0, 3, %i0
2019efc: b0 06 00 02 add %i0, %g2, %i0
2019f00: b0 00 40 18 add %g1, %i0, %i0
rtems_libio_check_fd( fd );
rtems_libio_check_is_open(iop);
2019f04: c2 06 20 18 ld [ %i0 + 0x18 ], %g1
2019f08: 80 88 61 00 btst 0x100, %g1
2019f0c: 32 80 00 08 bne,a 2019f2c <fstat+0x6c> <== ALWAYS TAKEN
2019f10: c2 06 20 40 ld [ %i0 + 0x40 ], %g1
/*
* Now process the stat() request.
*/
iop = rtems_libio_iop( fd );
rtems_libio_check_fd( fd );
2019f14: 7f ff d5 82 call 200f51c <__errno>
2019f18: 01 00 00 00 nop
2019f1c: 82 10 20 09 mov 9, %g1 ! 9 <PROM_START+0x9>
2019f20: c2 22 00 00 st %g1, [ %o0 ]
2019f24: 10 80 00 15 b 2019f78 <fstat+0xb8>
2019f28: 90 10 3f ff mov -1, %o0
rtems_libio_check_is_open(iop);
if ( !iop->handlers )
2019f2c: 80 a0 60 00 cmp %g1, 0
2019f30: 02 bf ff f9 be 2019f14 <fstat+0x54> <== NEVER TAKEN
2019f34: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EBADF );
if ( !iop->handlers->fstat_h )
2019f38: c2 00 60 18 ld [ %g1 + 0x18 ], %g1
2019f3c: 80 a0 60 00 cmp %g1, 0
2019f40: 12 80 00 06 bne 2019f58 <fstat+0x98> <== ALWAYS TAKEN
2019f44: 92 10 20 00 clr %o1
rtems_set_errno_and_return_minus_one( ENOTSUP );
2019f48: 7f ff d5 75 call 200f51c <__errno> <== NOT EXECUTED
2019f4c: 01 00 00 00 nop <== NOT EXECUTED
2019f50: 10 bf ff f4 b 2019f20 <fstat+0x60> <== NOT EXECUTED
2019f54: 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) );
2019f58: 94 10 20 48 mov 0x48, %o2
2019f5c: 7f ff d7 eb call 200ff08 <memset>
2019f60: 90 10 00 19 mov %i1, %o0
return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf );
2019f64: c2 06 20 40 ld [ %i0 + 0x40 ], %g1
2019f68: 90 06 20 1c add %i0, 0x1c, %o0
2019f6c: c2 00 60 18 ld [ %g1 + 0x18 ], %g1
2019f70: 9f c0 40 00 call %g1
2019f74: 92 10 00 19 mov %i1, %o1
}
2019f78: 81 c7 e0 08 ret
2019f7c: 91 e8 00 08 restore %g0, %o0, %o0
02028ab8 <fsync>:
#include <rtems/seterr.h>
int fsync(
int fd
)
{
2028ab8: 9d e3 bf a0 save %sp, -96, %sp
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
2028abc: 03 00 81 a4 sethi %hi(0x2069000), %g1
2028ac0: c2 00 60 04 ld [ %g1 + 4 ], %g1 ! 2069004 <rtems_libio_number_iops>
2028ac4: 80 a6 00 01 cmp %i0, %g1
2028ac8: 1a 80 00 10 bcc 2028b08 <fsync+0x50> <== NEVER TAKEN
2028acc: 01 00 00 00 nop
iop = rtems_libio_iop( fd );
2028ad0: 03 00 81 b4 sethi %hi(0x206d000), %g1
2028ad4: d0 00 61 e4 ld [ %g1 + 0x1e4 ], %o0 ! 206d1e4 <rtems_libio_iops>
2028ad8: 83 2e 20 06 sll %i0, 6, %g1
2028adc: b1 2e 20 03 sll %i0, 3, %i0
2028ae0: b0 06 00 01 add %i0, %g1, %i0
2028ae4: 90 02 00 18 add %o0, %i0, %o0
rtems_libio_check_is_open(iop);
2028ae8: c2 02 20 18 ld [ %o0 + 0x18 ], %g1
2028aec: 80 88 61 00 btst 0x100, %g1
2028af0: 02 80 00 06 be 2028b08 <fsync+0x50> <== NEVER TAKEN
2028af4: 01 00 00 00 nop
/*
* Now process the fsync().
*/
if ( !iop->handlers )
2028af8: c2 02 20 40 ld [ %o0 + 0x40 ], %g1
2028afc: 80 a0 60 00 cmp %g1, 0
2028b00: 32 80 00 06 bne,a 2028b18 <fsync+0x60> <== ALWAYS TAKEN
2028b04: c2 00 60 28 ld [ %g1 + 0x28 ], %g1
rtems_set_errno_and_return_minus_one( EBADF );
2028b08: 40 00 68 48 call 2042c28 <__errno> <== NOT EXECUTED
2028b0c: 01 00 00 00 nop <== NOT EXECUTED
2028b10: 10 80 00 08 b 2028b30 <fsync+0x78> <== NOT EXECUTED
2028b14: 82 10 20 09 mov 9, %g1 ! 9 <PROM_START+0x9> <== NOT EXECUTED
if ( !iop->handlers->fsync_h )
2028b18: 80 a0 60 00 cmp %g1, 0
2028b1c: 12 80 00 08 bne 2028b3c <fsync+0x84>
2028b20: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOTSUP );
2028b24: 40 00 68 41 call 2042c28 <__errno>
2028b28: 01 00 00 00 nop
2028b2c: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86>
2028b30: c2 22 00 00 st %g1, [ %o0 ]
2028b34: 10 80 00 04 b 2028b44 <fsync+0x8c>
2028b38: 90 10 3f ff mov -1, %o0
return (*iop->handlers->fsync_h)( iop );
2028b3c: 9f c0 40 00 call %g1
2028b40: 01 00 00 00 nop
}
2028b44: 81 c7 e0 08 ret
2028b48: 91 e8 00 08 restore %g0, %o0, %o0
0200bc58 <ftruncate>:
int ftruncate(
int fd,
off_t length
)
{
200bc58: 9d e3 bf 88 save %sp, -120, %sp
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc;
rtems_libio_check_fd( fd );
200bc5c: 03 00 80 70 sethi %hi(0x201c000), %g1
200bc60: c2 00 60 b4 ld [ %g1 + 0xb4 ], %g1 ! 201c0b4 <rtems_libio_number_iops>
200bc64: 80 a6 00 01 cmp %i0, %g1
200bc68: 1a 80 00 0b bcc 200bc94 <ftruncate+0x3c> <== NEVER TAKEN
200bc6c: 85 2e 20 06 sll %i0, 6, %g2
iop = rtems_libio_iop( fd );
200bc70: 03 00 80 72 sethi %hi(0x201c800), %g1
200bc74: c2 00 62 48 ld [ %g1 + 0x248 ], %g1 ! 201ca48 <rtems_libio_iops>
200bc78: b1 2e 20 03 sll %i0, 3, %i0
200bc7c: b0 06 00 02 add %i0, %g2, %i0
200bc80: b0 00 40 18 add %g1, %i0, %i0
rtems_libio_check_is_open(iop);
200bc84: c2 06 20 18 ld [ %i0 + 0x18 ], %g1
200bc88: 80 88 61 00 btst 0x100, %g1
200bc8c: 12 80 00 06 bne 200bca4 <ftruncate+0x4c> <== ALWAYS TAKEN
200bc90: 80 88 60 04 btst 4, %g1
200bc94: 40 00 0e 22 call 200f51c <__errno> <== NOT EXECUTED
200bc98: 01 00 00 00 nop <== NOT EXECUTED
200bc9c: 10 80 00 24 b 200bd2c <ftruncate+0xd4> <== NOT EXECUTED
200bca0: 82 10 20 09 mov 9, %g1 ! 9 <PROM_START+0x9> <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
200bca4: 02 80 00 17 be 200bd00 <ftruncate+0xa8> <== NEVER TAKEN
200bca8: a0 07 bf ec add %fp, -20, %l0
/*
* Make sure we are not working on a directory
*/
loc = iop->pathinfo;
200bcac: 92 06 20 1c add %i0, 0x1c, %o1
200bcb0: 90 10 00 10 mov %l0, %o0
200bcb4: 40 00 10 56 call 200fe0c <memcpy>
200bcb8: 94 10 20 14 mov 0x14, %o2
if ( !loc.ops->node_type_h )
200bcbc: c2 07 bf f8 ld [ %fp + -8 ], %g1
200bcc0: c2 00 60 10 ld [ %g1 + 0x10 ], %g1
200bcc4: 80 a0 60 00 cmp %g1, 0
200bcc8: 02 80 00 16 be 200bd20 <ftruncate+0xc8> <== NEVER TAKEN
200bccc: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY )
200bcd0: 9f c0 40 00 call %g1
200bcd4: 90 10 00 10 mov %l0, %o0
200bcd8: 80 a2 20 01 cmp %o0, 1
200bcdc: 32 80 00 06 bne,a 200bcf4 <ftruncate+0x9c>
200bce0: c2 06 20 18 ld [ %i0 + 0x18 ], %g1
rtems_set_errno_and_return_minus_one( EISDIR );
200bce4: 40 00 0e 0e call 200f51c <__errno>
200bce8: 01 00 00 00 nop
200bcec: 10 80 00 10 b 200bd2c <ftruncate+0xd4>
200bcf0: 82 10 20 15 mov 0x15, %g1 ! 15 <PROM_START+0x15>
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
200bcf4: 80 88 60 04 btst 4, %g1
200bcf8: 32 80 00 06 bne,a 200bd10 <ftruncate+0xb8> <== ALWAYS TAKEN
200bcfc: c2 06 20 40 ld [ %i0 + 0x40 ], %g1
200bd00: 40 00 0e 07 call 200f51c <__errno> <== NOT EXECUTED
200bd04: 01 00 00 00 nop <== NOT EXECUTED
200bd08: 10 80 00 09 b 200bd2c <ftruncate+0xd4> <== NOT EXECUTED
200bd0c: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
if ( !iop->handlers->ftruncate_h )
200bd10: c2 00 60 20 ld [ %g1 + 0x20 ], %g1
200bd14: 80 a0 60 00 cmp %g1, 0
200bd18: 32 80 00 08 bne,a 200bd38 <ftruncate+0xe0> <== ALWAYS TAKEN
200bd1c: 90 10 00 18 mov %i0, %o0
rtems_set_errno_and_return_minus_one( ENOTSUP );
200bd20: 40 00 0d ff call 200f51c <__errno> <== NOT EXECUTED
200bd24: 01 00 00 00 nop <== NOT EXECUTED
200bd28: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
200bd2c: c2 22 00 00 st %g1, [ %o0 ]
200bd30: 10 80 00 05 b 200bd44 <ftruncate+0xec>
200bd34: 90 10 3f ff mov -1, %o0
return (*iop->handlers->ftruncate_h)( iop, length );
200bd38: 92 10 00 19 mov %i1, %o1
200bd3c: 9f c0 40 00 call %g1
200bd40: 94 10 00 1a mov %i2, %o2
}
200bd44: 81 c7 e0 08 ret
200bd48: 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 81 sethi %hi(0x2020400), %g1
2002814: c2 00 60 d0 ld [ %g1 + 0xd0 ], %g1 ! 20204d0 <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 81 sethi %hi(0x2020400), %g1
2002828: c2 00 60 cc ld [ %g1 + 0xcc ], %g1 ! 20204cc <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
0205c74c <getdents>:
int getdents(
int dd_fd,
char *dd_buf,
int dd_len
)
{
205c74c: 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 );
205c750: 03 00 81 a4 sethi %hi(0x2069000), %g1
205c754: c2 00 60 04 ld [ %g1 + 4 ], %g1 ! 2069004 <rtems_libio_number_iops>
205c758: 80 a6 00 01 cmp %i0, %g1
205c75c: 1a 80 00 08 bcc 205c77c <getdents+0x30> <== NEVER TAKEN
205c760: a0 10 20 00 clr %l0
205c764: 03 00 81 b4 sethi %hi(0x206d000), %g1
205c768: e0 00 61 e4 ld [ %g1 + 0x1e4 ], %l0 ! 206d1e4 <rtems_libio_iops>
205c76c: 83 2e 20 06 sll %i0, 6, %g1
205c770: b1 2e 20 03 sll %i0, 3, %i0
205c774: b0 06 00 01 add %i0, %g1, %i0
205c778: a0 04 00 18 add %l0, %i0, %l0
/*
* Make sure we are working on a directory
*/
loc = iop->pathinfo;
205c77c: a2 07 bf ec add %fp, -20, %l1
205c780: 92 04 20 1c add %l0, 0x1c, %o1
205c784: 90 10 00 11 mov %l1, %o0
205c788: 7f ff a6 74 call 2046158 <memcpy>
205c78c: 94 10 20 14 mov 0x14, %o2
if ( !loc.ops->node_type_h )
205c790: c2 07 bf f8 ld [ %fp + -8 ], %g1
205c794: c2 00 60 10 ld [ %g1 + 0x10 ], %g1
205c798: 80 a0 60 00 cmp %g1, 0
205c79c: 02 80 00 11 be 205c7e0 <getdents+0x94> <== NEVER TAKEN
205c7a0: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
205c7a4: 9f c0 40 00 call %g1
205c7a8: 90 10 00 11 mov %l1, %o0
205c7ac: 80 a2 20 01 cmp %o0, 1
205c7b0: 22 80 00 08 be,a 205c7d0 <getdents+0x84>
205c7b4: c2 04 20 40 ld [ %l0 + 0x40 ], %g1
rtems_set_errno_and_return_minus_one( ENOTDIR );
205c7b8: 7f ff 99 1c call 2042c28 <__errno>
205c7bc: 01 00 00 00 nop
205c7c0: 82 10 20 14 mov 0x14, %g1 ! 14 <PROM_START+0x14>
205c7c4: c2 22 00 00 st %g1, [ %o0 ]
205c7c8: 10 80 00 0d b 205c7fc <getdents+0xb0>
205c7cc: 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 )
205c7d0: c2 00 60 08 ld [ %g1 + 8 ], %g1
205c7d4: 80 a0 60 00 cmp %g1, 0
205c7d8: 32 80 00 06 bne,a 205c7f0 <getdents+0xa4> <== ALWAYS TAKEN
205c7dc: 90 10 00 10 mov %l0, %o0
rtems_set_errno_and_return_minus_one( ENOTSUP );
205c7e0: 7f ff 99 12 call 2042c28 <__errno> <== NOT EXECUTED
205c7e4: 01 00 00 00 nop <== NOT EXECUTED
205c7e8: 10 bf ff f7 b 205c7c4 <getdents+0x78> <== NOT EXECUTED
205c7ec: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
return (*iop->handlers->read_h)( iop, dd_buf, dd_len );
205c7f0: 92 10 00 19 mov %i1, %o1
205c7f4: 9f c0 40 00 call %g1
205c7f8: 94 10 00 1a mov %i2, %o2
}
205c7fc: 81 c7 e0 08 ret
205c800: 91 e8 00 08 restore %g0, %o0, %o0
02028c60 <getgid>:
* 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
* P1003.1b-1993, p. 84
*/
gid_t getgid( void )
{
2028c60: 03 00 81 a5 sethi %hi(0x2069400), %g1 <== NOT EXECUTED
2028c64: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 ! 2069434 <rtems_current_user_env><== NOT EXECUTED
return _POSIX_types_Gid;
}
2028c68: 81 c3 e0 08 retl <== NOT EXECUTED
2028c6c: d0 10 60 34 lduh [ %g1 + 0x34 ], %o0 <== NOT EXECUTED
020292dc <getgr_r>:
struct group *grp,
char *buffer,
size_t bufsize,
struct group **result
)
{
20292dc: 9d e3 bf a0 save %sp, -96, %sp
FILE *fp;
int match;
init_etc_passwd_group();
20292e0: 7f ff ff b6 call 20291b8 <init_etc_passwd_group>
20292e4: 01 00 00 00 nop
if ((fp = fopen("/etc/group", "r")) == NULL) {
20292e8: 11 00 81 8d sethi %hi(0x2063400), %o0
20292ec: 13 00 81 8d sethi %hi(0x2063400), %o1
20292f0: 90 12 22 a8 or %o0, 0x2a8, %o0
20292f4: 40 00 68 f5 call 20436c8 <fopen>
20292f8: 92 12 62 30 or %o1, 0x230, %o1
20292fc: a0 92 20 00 orcc %o0, 0, %l0
2029300: 12 80 00 08 bne 2029320 <getgr_r+0x44> <== ALWAYS TAKEN
2029304: 92 10 00 1a mov %i2, %o1
errno = EINVAL;
2029308: 40 00 66 48 call 2042c28 <__errno> <== NOT EXECUTED
202930c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2029310: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
2029314: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2029318: 81 c7 e0 08 ret <== NOT EXECUTED
202931c: 81 e8 00 00 restore <== NOT EXECUTED
return -1;
}
for(;;) {
if (!scangr(fp, grp, buffer, bufsize)) {
2029320: 94 10 00 1b mov %i3, %o2
2029324: 96 10 00 1c mov %i4, %o3
2029328: 7f ff fe ea call 2028ed0 <scangr>
202932c: 90 10 00 10 mov %l0, %o0
2029330: 80 a2 20 00 cmp %o0, 0
2029334: 12 80 00 0a bne 202935c <getgr_r+0x80> <== ALWAYS TAKEN
2029338: 80 a6 20 00 cmp %i0, 0
errno = EINVAL;
202933c: 40 00 66 3b call 2042c28 <__errno> <== NOT EXECUTED
2029340: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2029344: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
2029348: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
fclose(fp);
202934c: 40 00 66 8f call 2042d88 <fclose> <== NOT EXECUTED
2029350: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return -1;
2029354: 81 c7 e0 08 ret <== NOT EXECUTED
2029358: 81 e8 00 00 restore <== NOT EXECUTED
}
if (name) {
202935c: 22 80 00 07 be,a 2029378 <getgr_r+0x9c> <== NEVER TAKEN
2029360: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED
match = (strcmp(grp->gr_name, name) == 0);
2029364: d0 06 80 00 ld [ %i2 ], %o0
2029368: 40 00 7f d7 call 20492c4 <strcmp>
202936c: 92 10 00 18 mov %i0, %o1
2029370: 10 80 00 04 b 2029380 <getgr_r+0xa4>
2029374: 80 a0 00 08 cmp %g0, %o0
}
else {
match = (grp->gr_gid == gid);
2029378: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED
202937c: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
2029380: 82 60 3f ff subx %g0, -1, %g1
}
if (match) {
2029384: 80 a0 60 00 cmp %g1, 0
2029388: 02 bf ff e6 be 2029320 <getgr_r+0x44>
202938c: 92 10 00 1a mov %i2, %o1
fclose(fp);
2029390: 90 10 00 10 mov %l0, %o0
2029394: 40 00 66 7d call 2042d88 <fclose>
2029398: b0 10 20 00 clr %i0
*result = grp;
202939c: f4 27 40 00 st %i2, [ %i5 ]
}
}
fclose(fp);
errno = EINVAL;
return -1;
}
20293a0: 81 c7 e0 08 ret
20293a4: 81 e8 00 00 restore
0202900c <getgrent>:
return NULL;
return p;
}
struct group *getgrent(void)
{
202900c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (group_fp == NULL)
2029010: 03 00 81 b3 sethi %hi(0x206cc00), %g1 <== NOT EXECUTED
2029014: d0 00 62 dc ld [ %g1 + 0x2dc ], %o0 ! 206cedc <group_fp> <== NOT EXECUTED
2029018: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202901c: 22 80 00 0c be,a 202904c <getgrent+0x40> <== NOT EXECUTED
2029020: b0 10 20 00 clr %i0 <== NOT EXECUTED
return NULL;
if (!scangr(group_fp, &grent, grbuf, sizeof grbuf))
2029024: 31 00 81 b3 sethi %hi(0x206cc00), %i0 <== NOT EXECUTED
2029028: 15 00 81 b3 sethi %hi(0x206cc00), %o2 <== NOT EXECUTED
202902c: 92 16 23 a8 or %i0, 0x3a8, %o1 <== NOT EXECUTED
2029030: 94 12 a2 e0 or %o2, 0x2e0, %o2 <== NOT EXECUTED
2029034: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED
2029038: 7f ff ff a6 call 2028ed0 <scangr> <== NOT EXECUTED
202903c: b0 16 23 a8 or %i0, 0x3a8, %i0 <== NOT EXECUTED
2029040: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029044: 22 80 00 02 be,a 202904c <getgrent+0x40> <== NOT EXECUTED
2029048: b0 10 20 00 clr %i0 <== NOT EXECUTED
return NULL;
return &grent;
}
202904c: 81 c7 e0 08 ret <== NOT EXECUTED
2029050: 81 e8 00 00 restore <== NOT EXECUTED
020293dc <getgrgid>:
}
struct group *getgrgid(
gid_t gid
)
{
20293dc: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
struct group *p;
if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p))
20293e0: 13 00 81 b3 sethi %hi(0x206cc00), %o1 <== NOT EXECUTED
20293e4: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED
20293e8: 92 12 63 a8 or %o1, 0x3a8, %o1 <== NOT EXECUTED
20293ec: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED
20293f0: 15 00 81 b3 sethi %hi(0x206cc00), %o2 <== NOT EXECUTED
20293f4: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED
20293f8: 94 12 a2 e0 or %o2, 0x2e0, %o2 <== NOT EXECUTED
20293fc: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
2029400: 7f ff ff ea call 20293a8 <getgrgid_r> <== NOT EXECUTED
2029404: b0 10 20 00 clr %i0 <== NOT EXECUTED
2029408: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202940c: 22 80 00 02 be,a 2029414 <getgrgid+0x38> <== NOT EXECUTED
2029410: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED
return NULL;
return p;
}
2029414: 81 c7 e0 08 ret <== NOT EXECUTED
2029418: 81 e8 00 00 restore <== NOT EXECUTED
020293a8 <getgrgid_r>:
struct group *grp,
char *buffer,
size_t bufsize,
struct group **result
)
{
20293a8: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED
20293ac: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED
return getgr_r(NULL, gid, grp, buffer, bufsize, result);
20293b0: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
struct group *grp,
char *buffer,
size_t bufsize,
struct group **result
)
{
20293b4: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED
return getgr_r(NULL, gid, grp, buffer, bufsize, result);
20293b8: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED
20293bc: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED
20293c0: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED
20293c4: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED
20293c8: 90 10 20 00 clr %o0 <== NOT EXECUTED
20293cc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
20293d0: 7f ff ff c3 call 20292dc <getgr_r> <== NOT EXECUTED
20293d4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02029448 <getgrnam>:
}
struct group *getgrnam(
const char *name
)
{
2029448: 9d e3 bf 98 save %sp, -104, %sp
struct group *p;
if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p))
202944c: 13 00 81 b3 sethi %hi(0x206cc00), %o1
2029450: 90 10 00 18 mov %i0, %o0
2029454: 92 12 63 a8 or %o1, 0x3a8, %o1
2029458: 15 00 81 b3 sethi %hi(0x206cc00), %o2
202945c: 96 10 20 c8 mov 0xc8, %o3
2029460: 94 12 a2 e0 or %o2, 0x2e0, %o2
2029464: 98 07 bf fc add %fp, -4, %o4
2029468: 7f ff ff ed call 202941c <getgrnam_r>
202946c: b0 10 20 00 clr %i0
2029470: 80 a2 20 00 cmp %o0, 0
2029474: 22 80 00 02 be,a 202947c <getgrnam+0x34> <== ALWAYS TAKEN
2029478: f0 07 bf fc ld [ %fp + -4 ], %i0
return NULL;
return p;
}
202947c: 81 c7 e0 08 ret
2029480: 81 e8 00 00 restore
020225b8 <getpid>:
*/
pid_t getpid( void )
{
return _Objects_Local_node;
}
20225b8: 81 c3 e0 08 retl <== NOT EXECUTED
20225bc: 90 10 20 01 mov 1, %o0 ! 1 <PROM_START+0x1> <== NOT EXECUTED
020294d0 <getpw_r>:
struct passwd *pwd,
char *buffer,
size_t bufsize,
struct passwd **result
)
{
20294d0: 9d e3 bf a0 save %sp, -96, %sp
FILE *fp;
int match;
init_etc_passwd_group();
20294d4: 7f ff ff 39 call 20291b8 <init_etc_passwd_group>
20294d8: 01 00 00 00 nop
if ((fp = fopen("/etc/passwd", "r")) == NULL) {
20294dc: 11 00 81 8d sethi %hi(0x2063400), %o0
20294e0: 13 00 81 8d sethi %hi(0x2063400), %o1
20294e4: 90 12 22 20 or %o0, 0x220, %o0
20294e8: 40 00 68 78 call 20436c8 <fopen>
20294ec: 92 12 62 30 or %o1, 0x230, %o1
20294f0: a0 92 20 00 orcc %o0, 0, %l0
20294f4: 12 80 00 08 bne 2029514 <getpw_r+0x44> <== ALWAYS TAKEN
20294f8: 92 10 00 1a mov %i2, %o1
errno = EINVAL;
20294fc: 40 00 65 cb call 2042c28 <__errno> <== NOT EXECUTED
2029500: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2029504: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
2029508: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202950c: 81 c7 e0 08 ret <== NOT EXECUTED
2029510: 81 e8 00 00 restore <== NOT EXECUTED
return -1;
}
for(;;) {
if (!scanpw(fp, pwd, buffer, bufsize)) {
2029514: 94 10 00 1b mov %i3, %o2
2029518: 96 10 00 1c mov %i4, %o3
202951c: 7f ff fe ce call 2029054 <scanpw>
2029520: 90 10 00 10 mov %l0, %o0
2029524: 80 a2 20 00 cmp %o0, 0
2029528: 12 80 00 0a bne 2029550 <getpw_r+0x80> <== ALWAYS TAKEN
202952c: 80 a6 20 00 cmp %i0, 0
errno = EINVAL;
2029530: 40 00 65 be call 2042c28 <__errno> <== NOT EXECUTED
2029534: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2029538: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
202953c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
fclose(fp);
2029540: 40 00 66 12 call 2042d88 <fclose> <== NOT EXECUTED
2029544: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return -1;
2029548: 81 c7 e0 08 ret <== NOT EXECUTED
202954c: 81 e8 00 00 restore <== NOT EXECUTED
}
if (name) {
2029550: 22 80 00 07 be,a 202956c <getpw_r+0x9c> <== NEVER TAKEN
2029554: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED
match = (strcmp(pwd->pw_name, name) == 0);
2029558: d0 06 80 00 ld [ %i2 ], %o0
202955c: 40 00 7f 5a call 20492c4 <strcmp>
2029560: 92 10 00 18 mov %i0, %o1
2029564: 10 80 00 04 b 2029574 <getpw_r+0xa4>
2029568: 80 a0 00 08 cmp %g0, %o0
}
else {
match = (pwd->pw_uid == uid);
202956c: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED
2029570: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
2029574: 82 60 3f ff subx %g0, -1, %g1
}
if (match) {
2029578: 80 a0 60 00 cmp %g1, 0
202957c: 02 bf ff e6 be 2029514 <getpw_r+0x44>
2029580: 92 10 00 1a mov %i2, %o1
fclose(fp);
2029584: 90 10 00 10 mov %l0, %o0
2029588: 40 00 66 00 call 2042d88 <fclose>
202958c: b0 10 20 00 clr %i0
*result = pwd;
2029590: f4 27 40 00 st %i2, [ %i5 ]
}
}
fclose(fp);
errno = EINVAL;
return -1;
}
2029594: 81 c7 e0 08 ret
2029598: 81 e8 00 00 restore
02029170 <getpwent>:
return NULL;
return p;
}
struct passwd *getpwent(void)
{
2029170: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (passwd_fp == NULL)
2029174: 03 00 81 b3 sethi %hi(0x206cc00), %g1 <== NOT EXECUTED
2029178: d0 00 61 f4 ld [ %g1 + 0x1f4 ], %o0 ! 206cdf4 <passwd_fp> <== NOT EXECUTED
202917c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029180: 22 80 00 0c be,a 20291b0 <getpwent+0x40> <== NOT EXECUTED
2029184: b0 10 20 00 clr %i0 <== NOT EXECUTED
return NULL;
if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf))
2029188: 31 00 81 b3 sethi %hi(0x206cc00), %i0 <== NOT EXECUTED
202918c: 15 00 81 b3 sethi %hi(0x206cc00), %o2 <== NOT EXECUTED
2029190: 92 16 22 c0 or %i0, 0x2c0, %o1 <== NOT EXECUTED
2029194: 94 12 a1 f8 or %o2, 0x1f8, %o2 <== NOT EXECUTED
2029198: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED
202919c: 7f ff ff ae call 2029054 <scanpw> <== NOT EXECUTED
20291a0: b0 16 22 c0 or %i0, 0x2c0, %i0 <== NOT EXECUTED
20291a4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20291a8: 22 80 00 02 be,a 20291b0 <getpwent+0x40> <== NOT EXECUTED
20291ac: b0 10 20 00 clr %i0 <== NOT EXECUTED
return NULL;
return &pwent;
}
20291b0: 81 c7 e0 08 ret <== NOT EXECUTED
20291b4: 81 e8 00 00 restore <== NOT EXECUTED
0202963c <getpwnam>:
}
struct passwd *getpwnam(
const char *name
)
{
202963c: 9d e3 bf 98 save %sp, -104, %sp
struct passwd *p;
if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p))
2029640: 13 00 81 b3 sethi %hi(0x206cc00), %o1
2029644: 90 10 00 18 mov %i0, %o0
2029648: 92 12 62 c0 or %o1, 0x2c0, %o1
202964c: 15 00 81 b3 sethi %hi(0x206cc00), %o2
2029650: 96 10 20 c8 mov 0xc8, %o3
2029654: 94 12 a1 f8 or %o2, 0x1f8, %o2
2029658: 98 07 bf fc add %fp, -4, %o4
202965c: 7f ff ff ed call 2029610 <getpwnam_r>
2029660: b0 10 20 00 clr %i0
2029664: 80 a2 20 00 cmp %o0, 0
2029668: 22 80 00 02 be,a 2029670 <getpwnam+0x34> <== ALWAYS TAKEN
202966c: f0 07 bf fc ld [ %fp + -4 ], %i0
return NULL;
return p;
}
2029670: 81 c7 e0 08 ret
2029674: 81 e8 00 00 restore
020295d0 <getpwuid>:
}
struct passwd *getpwuid(
uid_t uid
)
{
20295d0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
struct passwd *p;
if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p))
20295d4: 13 00 81 b3 sethi %hi(0x206cc00), %o1 <== NOT EXECUTED
20295d8: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED
20295dc: 92 12 62 c0 or %o1, 0x2c0, %o1 <== NOT EXECUTED
20295e0: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED
20295e4: 15 00 81 b3 sethi %hi(0x206cc00), %o2 <== NOT EXECUTED
20295e8: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED
20295ec: 94 12 a1 f8 or %o2, 0x1f8, %o2 <== NOT EXECUTED
20295f0: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
20295f4: 7f ff ff ea call 202959c <getpwuid_r> <== NOT EXECUTED
20295f8: b0 10 20 00 clr %i0 <== NOT EXECUTED
20295fc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029600: 22 80 00 02 be,a 2029608 <getpwuid+0x38> <== NOT EXECUTED
2029604: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED
return NULL;
return p;
}
2029608: 81 c7 e0 08 ret <== NOT EXECUTED
202960c: 81 e8 00 00 restore <== NOT EXECUTED
0202959c <getpwuid_r>:
struct passwd *pwd,
char *buffer,
size_t bufsize,
struct passwd **result
)
{
202959c: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED
20295a0: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED
return getpw_r(NULL, uid, pwd, buffer, bufsize, result);
20295a4: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
struct passwd *pwd,
char *buffer,
size_t bufsize,
struct passwd **result
)
{
20295a8: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED
return getpw_r(NULL, uid, pwd, buffer, bufsize, result);
20295ac: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED
20295b0: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED
20295b4: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED
20295b8: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED
20295bc: 90 10 20 00 clr %o0 <== NOT EXECUTED
20295c0: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
20295c4: 7f ff ff c3 call 20294d0 <getpw_r> <== NOT EXECUTED
20295c8: 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 32 5a call 200f51c <__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 53 call 2007124 <_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 57 9f call 2018a70 <.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 a5 sethi %hi(0x2069400), %g1 <== NOT EXECUTED
2008398: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 ! 2069434 <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
0200e890 <imfs_dir_open>:
)
{
IMFS_jnode_t *the_jnode;
/* Is the node a directory ? */
the_jnode = (IMFS_jnode_t *) iop->file_info;
200e890: c4 02 20 3c ld [ %o0 + 0x3c ], %g2
200e894: c4 00 a0 4c ld [ %g2 + 0x4c ], %g2
200e898: 80 a0 a0 01 cmp %g2, 1
200e89c: 12 80 00 05 bne 200e8b0 <imfs_dir_open+0x20> <== NEVER TAKEN
200e8a0: 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;
200e8a4: c0 22 20 10 clr [ %o0 + 0x10 ]
200e8a8: c0 22 20 14 clr [ %o0 + 0x14 ]
200e8ac: 82 10 20 00 clr %g1
return 0;
}
200e8b0: 81 c3 e0 08 retl
200e8b4: 90 10 00 01 mov %g1, %o0
0200e9ec <imfs_dir_rmnod>:
int imfs_dir_rmnod(
rtems_filesystem_location_info_t *parent_pathloc, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN */
)
{
200e9ec: 9d e3 bf 98 save %sp, -104, %sp
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) pathloc->node_access;
200e9f0: e0 06 40 00 ld [ %i1 ], %l0
200e9f4: c4 04 20 50 ld [ %l0 + 0x50 ], %g2
200e9f8: 82 04 20 54 add %l0, 0x54, %g1
200e9fc: 80 a0 80 01 cmp %g2, %g1
200ea00: 22 80 00 06 be,a 200ea18 <imfs_dir_rmnod+0x2c>
200ea04: 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 );
200ea08: 40 00 02 c5 call 200f51c <__errno>
200ea0c: 01 00 00 00 nop
200ea10: 10 80 00 0d b 200ea44 <imfs_dir_rmnod+0x58>
200ea14: 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 )
200ea18: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
200ea1c: 80 a0 40 10 cmp %g1, %l0
200ea20: 02 80 00 06 be 200ea38 <imfs_dir_rmnod+0x4c>
200ea24: 01 00 00 00 nop
/*
* You cannot remove a mountpoint.
*/
if ( the_jnode->info.directory.mt_fs != NULL )
200ea28: c2 04 20 5c ld [ %l0 + 0x5c ], %g1
200ea2c: 80 a0 60 00 cmp %g1, 0
200ea30: 22 80 00 08 be,a 200ea50 <imfs_dir_rmnod+0x64> <== ALWAYS TAKEN
200ea34: c2 04 20 08 ld [ %l0 + 8 ], %g1
rtems_set_errno_and_return_minus_one( EBUSY );
200ea38: 40 00 02 b9 call 200f51c <__errno>
200ea3c: 01 00 00 00 nop
200ea40: 82 10 20 10 mov 0x10, %g1 ! 10 <PROM_START+0x10>
200ea44: c2 22 00 00 st %g1, [ %o0 ]
200ea48: 81 c7 e0 08 ret
200ea4c: 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 ) {
200ea50: 80 a0 60 00 cmp %g1, 0
200ea54: 22 80 00 06 be,a 200ea6c <imfs_dir_rmnod+0x80>
200ea58: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1
200ea5c: 7f ff e0 9f call 2006cd8 <_Chain_Extract>
200ea60: 90 10 00 10 mov %l0, %o0
rtems_chain_extract( (rtems_chain_node *) the_jnode );
the_jnode->Parent = NULL;
200ea64: c0 24 20 08 clr [ %l0 + 8 ]
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
200ea68: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1
IMFS_update_ctime( the_jnode );
200ea6c: 92 10 20 00 clr %o1
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
200ea70: 82 00 7f ff add %g1, -1, %g1
IMFS_update_ctime( the_jnode );
200ea74: 90 07 bf f8 add %fp, -8, %o0
200ea78: 7f ff d0 4b call 2002ba4 <gettimeofday>
200ea7c: c2 34 20 34 sth %g1, [ %l0 + 0x34 ]
200ea80: 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) ) {
200ea84: 90 10 00 10 mov %l0, %o0
200ea88: 7f ff f4 c6 call 200bda0 <rtems_libio_is_file_open>
200ea8c: c2 24 20 48 st %g1, [ %l0 + 0x48 ]
200ea90: 80 a2 20 00 cmp %o0, 0
200ea94: 12 80 00 11 bne 200ead8 <imfs_dir_rmnod+0xec>
200ea98: 01 00 00 00 nop
200ea9c: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1
200eaa0: 80 a0 60 00 cmp %g1, 0
200eaa4: 12 80 00 0d bne 200ead8 <imfs_dir_rmnod+0xec>
200eaa8: 03 00 80 70 sethi %hi(0x201c000), %g1
/*
* Is the rtems_filesystem_current is this node?
*/
if ( rtems_filesystem_current.node_access == pathloc->node_access )
200eaac: c2 00 62 80 ld [ %g1 + 0x280 ], %g1 ! 201c280 <rtems_current_user_env>
200eab0: c4 06 40 00 ld [ %i1 ], %g2
200eab4: c6 00 60 04 ld [ %g1 + 4 ], %g3
200eab8: 80 a0 c0 02 cmp %g3, %g2
200eabc: 22 80 00 02 be,a 200eac4 <imfs_dir_rmnod+0xd8> <== NEVER TAKEN
200eac0: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED
/*
* Free memory associated with a memory file.
*/
free( the_jnode );
200eac4: 90 10 00 10 mov %l0, %o0
200eac8: 7f ff d0 0d call 2002afc <free>
200eacc: b0 10 20 00 clr %i0
200ead0: 81 c7 e0 08 ret
200ead4: 81 e8 00 00 restore
}
return 0;
}
200ead8: 81 c7 e0 08 ret
200eadc: 91 e8 20 00 restore %g0, 0, %o0
020291b8 <init_etc_passwd_group>:
/*
* Initialize useable but dummy databases
*/
void init_etc_passwd_group(void)
{
20291b8: 9d e3 bf a0 save %sp, -96, %sp
FILE *fp;
static char etc_passwd_initted = 0;
if (etc_passwd_initted)
20291bc: 03 00 81 b3 sethi %hi(0x206cc00), %g1
20291c0: c4 48 61 f0 ldsb [ %g1 + 0x1f0 ], %g2 ! 206cdf0 <etc_passwd_initted.6409>
20291c4: 80 a0 a0 00 cmp %g2, 0
20291c8: 12 80 00 30 bne 2029288 <init_etc_passwd_group+0xd0>
20291cc: 84 10 20 01 mov 1, %g2
return;
etc_passwd_initted = 1;
mkdir("/etc", 0777);
20291d0: 92 10 21 ff mov 0x1ff, %o1
FILE *fp;
static char etc_passwd_initted = 0;
if (etc_passwd_initted)
return;
etc_passwd_initted = 1;
20291d4: c4 28 61 f0 stb %g2, [ %g1 + 0x1f0 ]
mkdir("/etc", 0777);
20291d8: 11 00 81 8d sethi %hi(0x2063400), %o0
20291dc: 7f ff 7e 59 call 2008b40 <mkdir>
20291e0: 90 12 22 18 or %o0, 0x218, %o0 ! 2063618 <IMFS_memfile_handlers+0xa8>
/*
* Initialize /etc/passwd
*/
if ((fp = fopen("/etc/passwd", "r")) != NULL) {
20291e4: 21 00 81 8d sethi %hi(0x2063400), %l0
20291e8: 13 00 81 8d sethi %hi(0x2063400), %o1
20291ec: 90 14 22 20 or %l0, 0x220, %o0
20291f0: 40 00 69 36 call 20436c8 <fopen>
20291f4: 92 12 62 30 or %o1, 0x230, %o1
20291f8: 80 a2 20 00 cmp %o0, 0
20291fc: 12 80 00 0d bne 2029230 <init_etc_passwd_group+0x78> <== NEVER TAKEN
2029200: 01 00 00 00 nop
fclose(fp);
}
else if ((fp = fopen("/etc/passwd", "w")) != NULL) {
2029204: 90 14 22 20 or %l0, 0x220, %o0
2029208: 13 00 81 8d sethi %hi(0x2063400), %o1
202920c: 40 00 69 2f call 20436c8 <fopen>
2029210: 92 12 62 38 or %o1, 0x238, %o1 ! 2063638 <IMFS_memfile_handlers+0xc8>
2029214: b0 92 20 00 orcc %o0, 0, %i0
2029218: 02 80 00 08 be 2029238 <init_etc_passwd_group+0x80> <== NEVER TAKEN
202921c: 11 00 81 8d sethi %hi(0x2063400), %o0
fprintf(fp, "root:*:0:0:root::/:/bin/sh\n"
2029220: 92 10 00 18 mov %i0, %o1
2029224: 40 00 69 8f call 2043860 <fputs>
2029228: 90 12 22 40 or %o0, 0x240, %o0
"rtems:*:1:1:RTEMS Application::/:/bin/sh\n"
"tty:!:2:2:tty owner::/:/bin/false\n" );
fclose(fp);
202922c: 90 10 00 18 mov %i0, %o0
2029230: 40 00 66 d6 call 2042d88 <fclose>
2029234: 01 00 00 00 nop
}
/*
* Initialize /etc/group
*/
if ((fp = fopen("/etc/group", "r")) != NULL) {
2029238: 21 00 81 8d sethi %hi(0x2063400), %l0
202923c: 13 00 81 8d sethi %hi(0x2063400), %o1
2029240: 90 14 22 a8 or %l0, 0x2a8, %o0
2029244: 40 00 69 21 call 20436c8 <fopen>
2029248: 92 12 62 30 or %o1, 0x230, %o1
202924c: 80 a2 20 00 cmp %o0, 0
2029250: 12 80 00 0c bne 2029280 <init_etc_passwd_group+0xc8> <== NEVER TAKEN
2029254: b0 10 00 08 mov %o0, %i0
fclose(fp);
}
else if ((fp = fopen("/etc/group", "w")) != NULL) {
2029258: 90 14 22 a8 or %l0, 0x2a8, %o0
202925c: 13 00 81 8d sethi %hi(0x2063400), %o1
2029260: 40 00 69 1a call 20436c8 <fopen>
2029264: 92 12 62 38 or %o1, 0x238, %o1 ! 2063638 <IMFS_memfile_handlers+0xc8>
2029268: b0 92 20 00 orcc %o0, 0, %i0
202926c: 02 80 00 07 be 2029288 <init_etc_passwd_group+0xd0> <== NEVER TAKEN
2029270: 11 00 81 8d sethi %hi(0x2063400), %o0
fprintf( fp, "root:x:0:root\n"
2029274: 92 10 00 18 mov %i0, %o1
2029278: 40 00 69 7a call 2043860 <fputs>
202927c: 90 12 22 b8 or %o0, 0x2b8, %o0
"rtems:x:1:rtems\n"
"tty:x:2:tty\n" );
fclose(fp);
2029280: 40 00 66 c2 call 2042d88 <fclose>
2029284: 81 e8 00 00 restore
2029288: 81 c7 e0 08 ret
202928c: 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 80 sethi %hi(0x2020000), %g1
2006368: c2 00 61 e4 ld [ %g1 + 0x1e4 ], %g1 ! 20201e4 <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 83 sethi %hi(0x2020c00), %g1
200638c: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 ! 2020c50 <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 35 50 call 2013904 <__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 35 48 call 2013904 <__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 70 sethi %hi(0x201c000), %g2 <== NOT EXECUTED
2004694: c4 00 a2 e8 ld [ %g2 + 0x2e8 ], %g2 ! 201c2e8 <__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 70 sethi %hi(0x201c000), %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 70 sethi %hi(0x201c000), %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 70 sethi %hi(0x201c000), %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 62 70 ld [ %g1 + 0x270 ], %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
020225dc <kill>:
#if !defined(RTEMS_POSIX_API)
int kill( pid_t pid, int sig )
{
return 0;
}
20225dc: 81 c3 e0 08 retl <== NOT EXECUTED
20225e0: 90 10 20 00 clr %o0 ! 0 <PROM_START> <== NOT EXECUTED
0201a0fc <libc_wrapup>:
extern void _wrapup_reent(struct _reent *);
extern void _reclaim_reent(struct _reent *);
void libc_wrapup(void)
{
201a0fc: 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()))
201a100: 03 00 80 73 sethi %hi(0x201cc00), %g1
201a104: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 201cdc0 <_System_state_Current>
201a108: 80 a0 60 03 cmp %g1, 3
201a10c: 12 80 00 16 bne 201a164 <libc_wrapup+0x68> <== NEVER TAKEN
201a110: 03 00 80 6e sethi %hi(0x201b800), %g1
/*
* This was already done if the user called exit() directly .
_wrapup_reent(0);
*/
if (_REENT != _global_impure_ptr) {
201a114: 23 00 80 70 sethi %hi(0x201c000), %l1
201a118: e0 00 63 d0 ld [ %g1 + 0x3d0 ], %l0
201a11c: c2 04 62 f0 ld [ %l1 + 0x2f0 ], %g1
201a120: 80 a0 40 10 cmp %g1, %l0
201a124: 22 80 00 06 be,a 201a13c <libc_wrapup+0x40>
201a128: 21 00 80 70 sethi %hi(0x201c000), %l0
_wrapup_reent(_global_impure_ptr);
201a12c: 40 00 01 83 call 201a738 <_wrapup_reent>
201a130: 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;
201a134: e0 24 62 f0 st %l0, [ %l1 + 0x2f0 ]
*
* Should this be changed to do *all* file streams?
* _fwalk (_REENT, fclose);
*/
fclose (stdin);
201a138: 21 00 80 70 sethi %hi(0x201c000), %l0
201a13c: c2 04 22 f0 ld [ %l0 + 0x2f0 ], %g1 ! 201c2f0 <_impure_ptr>
201a140: 7f ff d5 4f call 200f67c <fclose>
201a144: d0 00 60 04 ld [ %g1 + 4 ], %o0
fclose (stdout);
201a148: c2 04 22 f0 ld [ %l0 + 0x2f0 ], %g1
201a14c: 7f ff d5 4c call 200f67c <fclose>
201a150: d0 00 60 08 ld [ %g1 + 8 ], %o0
fclose (stderr);
201a154: c2 04 22 f0 ld [ %l0 + 0x2f0 ], %g1
201a158: f0 00 60 0c ld [ %g1 + 0xc ], %i0
201a15c: 7f ff d5 48 call 200f67c <fclose>
201a160: 81 e8 00 00 restore
201a164: 81 c7 e0 08 ret <== NOT EXECUTED
201a168: 81 e8 00 00 restore <== NOT EXECUTED
02029678 <link>:
int link(
const char *existing,
const char *new
)
{
2029678: 9d e3 bf 70 save %sp, -144, %sp
/*
* Get the node we are linking to.
*/
result = rtems_filesystem_evaluate_path( existing, strlen( existing ),
202967c: 40 00 81 13 call 2049ac8 <strlen>
2029680: 90 10 00 18 mov %i0, %o0
2029684: a0 07 bf e4 add %fp, -28, %l0
2029688: 92 10 00 08 mov %o0, %o1
202968c: 94 10 20 00 clr %o2
2029690: 90 10 00 18 mov %i0, %o0
2029694: 96 10 00 10 mov %l0, %o3
2029698: 98 10 20 01 mov 1, %o4
202969c: 7f ff 7a d4 call 20081ec <rtems_filesystem_evaluate_path>
20296a0: b0 10 3f ff mov -1, %i0
0, &existing_loc, true );
if ( result != 0 )
20296a4: 80 a2 20 00 cmp %o0, 0
20296a8: 12 80 00 28 bne 2029748 <link+0xd0>
20296ac: 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 );
20296b0: 90 10 00 19 mov %i1, %o0
20296b4: 92 07 bf fc add %fp, -4, %o1
20296b8: 7f ff 81 6e call 2009c70 <rtems_filesystem_get_start_loc>
20296bc: 94 10 00 11 mov %l1, %o2
if ( !parent_loc.ops->evalformake_h ) {
20296c0: c2 07 bf dc ld [ %fp + -36 ], %g1
20296c4: c2 00 60 04 ld [ %g1 + 4 ], %g1
20296c8: 80 a0 60 00 cmp %g1, 0
20296cc: 12 80 00 0b bne 20296f8 <link+0x80> <== ALWAYS TAKEN
20296d0: d0 07 bf fc ld [ %fp + -4 ], %o0
rtems_filesystem_freenode( &existing_loc );
20296d4: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
20296d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20296dc: 02 80 00 51 be 2029820 <link+0x1a8> <== NOT EXECUTED
20296e0: 01 00 00 00 nop <== NOT EXECUTED
20296e4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
20296e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20296ec: 12 80 00 4b bne 2029818 <link+0x1a0> <== NOT EXECUTED
20296f0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20296f4: 30 80 00 4b b,a 2029820 <link+0x1a8> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start );
20296f8: 92 10 00 11 mov %l1, %o1
20296fc: 90 06 40 08 add %i1, %o0, %o0
2029700: 9f c0 40 00 call %g1
2029704: 94 07 bf f8 add %fp, -8, %o2
if ( result != 0 ) {
2029708: b2 92 20 00 orcc %o0, 0, %i1
202970c: 02 80 00 11 be 2029750 <link+0xd8>
2029710: c2 07 bf f4 ld [ %fp + -12 ], %g1
rtems_filesystem_freenode( &existing_loc );
2029714: c2 07 bf f0 ld [ %fp + -16 ], %g1
2029718: 80 a0 60 00 cmp %g1, 0
202971c: 02 80 00 08 be 202973c <link+0xc4> <== NEVER TAKEN
2029720: 01 00 00 00 nop
2029724: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2029728: 80 a0 60 00 cmp %g1, 0
202972c: 02 80 00 04 be 202973c <link+0xc4> <== NEVER TAKEN
2029730: 01 00 00 00 nop
2029734: 9f c0 40 00 call %g1
2029738: 90 10 00 10 mov %l0, %o0
rtems_set_errno_and_return_minus_one( result );
202973c: 40 00 65 3b call 2042c28 <__errno>
2029740: b0 10 3f ff mov -1, %i0
2029744: f2 22 00 00 st %i1, [ %o0 ]
2029748: 81 c7 e0 08 ret
202974c: 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 ) {
2029750: c4 07 bf e0 ld [ %fp + -32 ], %g2
2029754: 80 a0 80 01 cmp %g2, %g1
2029758: 02 80 00 1a be 20297c0 <link+0x148>
202975c: c2 07 bf dc ld [ %fp + -36 ], %g1
rtems_filesystem_freenode( &existing_loc );
2029760: c2 07 bf f0 ld [ %fp + -16 ], %g1
2029764: 80 a0 60 00 cmp %g1, 0
2029768: 22 80 00 09 be,a 202978c <link+0x114> <== NEVER TAKEN
202976c: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED
2029770: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2029774: 80 a0 60 00 cmp %g1, 0
2029778: 22 80 00 05 be,a 202978c <link+0x114> <== NEVER TAKEN
202977c: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED
2029780: 9f c0 40 00 call %g1
2029784: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &parent_loc );
2029788: c2 07 bf dc ld [ %fp + -36 ], %g1
202978c: 80 a0 60 00 cmp %g1, 0
2029790: 02 80 00 08 be 20297b0 <link+0x138> <== NEVER TAKEN
2029794: 01 00 00 00 nop
2029798: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202979c: 80 a0 60 00 cmp %g1, 0
20297a0: 02 80 00 04 be 20297b0 <link+0x138> <== NEVER TAKEN
20297a4: 01 00 00 00 nop
20297a8: 9f c0 40 00 call %g1
20297ac: 90 07 bf d0 add %fp, -48, %o0
rtems_set_errno_and_return_minus_one( EXDEV );
20297b0: 40 00 65 1e call 2042c28 <__errno>
20297b4: b0 10 3f ff mov -1, %i0
20297b8: 10 80 00 1d b 202982c <link+0x1b4>
20297bc: 82 10 20 12 mov 0x12, %g1
}
if ( !parent_loc.ops->link_h ) {
20297c0: c2 00 60 08 ld [ %g1 + 8 ], %g1
20297c4: 80 a0 60 00 cmp %g1, 0
20297c8: 12 80 00 1c bne 2029838 <link+0x1c0> <== ALWAYS TAKEN
20297cc: d4 07 bf f8 ld [ %fp + -8 ], %o2
rtems_filesystem_freenode( &existing_loc );
20297d0: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
20297d4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20297d8: 22 80 00 09 be,a 20297fc <link+0x184> <== NOT EXECUTED
20297dc: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED
20297e0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
20297e4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20297e8: 22 80 00 05 be,a 20297fc <link+0x184> <== NOT EXECUTED
20297ec: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED
20297f0: 9f c0 40 00 call %g1 <== NOT EXECUTED
20297f4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_filesystem_freenode( &parent_loc );
20297f8: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED
20297fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2029800: 02 80 00 08 be 2029820 <link+0x1a8> <== NOT EXECUTED
2029804: 01 00 00 00 nop <== NOT EXECUTED
2029808: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
202980c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2029810: 02 80 00 04 be 2029820 <link+0x1a8> <== NOT EXECUTED
2029814: 90 07 bf d0 add %fp, -48, %o0 <== NOT EXECUTED
2029818: 9f c0 40 00 call %g1 <== NOT EXECUTED
202981c: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
2029820: 40 00 65 02 call 2042c28 <__errno> <== NOT EXECUTED
2029824: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
2029828: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
202982c: c2 22 00 00 st %g1, [ %o0 ]
2029830: 81 c7 e0 08 ret
2029834: 81 e8 00 00 restore
}
result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start );
2029838: 92 10 00 11 mov %l1, %o1
202983c: 9f c0 40 00 call %g1
2029840: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &existing_loc );
2029844: c2 07 bf f0 ld [ %fp + -16 ], %g1
2029848: 80 a0 60 00 cmp %g1, 0
202984c: 02 80 00 08 be 202986c <link+0x1f4> <== NEVER TAKEN
2029850: b0 10 00 08 mov %o0, %i0
2029854: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2029858: 80 a0 60 00 cmp %g1, 0
202985c: 22 80 00 05 be,a 2029870 <link+0x1f8> <== NEVER TAKEN
2029860: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED
2029864: 9f c0 40 00 call %g1
2029868: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &parent_loc );
202986c: c2 07 bf dc ld [ %fp + -36 ], %g1
2029870: 80 a0 60 00 cmp %g1, 0
2029874: 02 80 00 08 be 2029894 <link+0x21c> <== NEVER TAKEN
2029878: 01 00 00 00 nop
202987c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2029880: 80 a0 60 00 cmp %g1, 0
2029884: 02 80 00 04 be 2029894 <link+0x21c> <== NEVER TAKEN
2029888: 01 00 00 00 nop
202988c: 9f c0 40 00 call %g1
2029890: 90 07 bf d0 add %fp, -48, %o0
return result;
}
2029894: 81 c7 e0 08 ret
2029898: 81 e8 00 00 restore
02019fac <lseek>:
off_t lseek(
int fd,
off_t offset,
int whence
)
{
2019fac: 9d e3 bf a0 save %sp, -96, %sp
rtems_libio_t *iop;
off_t old_offset;
off_t status;
rtems_libio_check_fd( fd );
2019fb0: 03 00 80 70 sethi %hi(0x201c000), %g1
2019fb4: c2 00 60 b4 ld [ %g1 + 0xb4 ], %g1 ! 201c0b4 <rtems_libio_number_iops>
off_t lseek(
int fd,
off_t offset,
int whence
)
{
2019fb8: 96 10 00 1b mov %i3, %o3
rtems_libio_t *iop;
off_t old_offset;
off_t status;
rtems_libio_check_fd( fd );
2019fbc: 80 a6 00 01 cmp %i0, %g1
off_t lseek(
int fd,
off_t offset,
int whence
)
{
2019fc0: 84 10 00 19 mov %i1, %g2
rtems_libio_t *iop;
off_t old_offset;
off_t status;
rtems_libio_check_fd( fd );
2019fc4: 1a 80 00 0c bcc 2019ff4 <lseek+0x48> <== NEVER TAKEN
2019fc8: 86 10 00 1a mov %i2, %g3
iop = rtems_libio_iop( fd );
2019fcc: 03 00 80 72 sethi %hi(0x201c800), %g1
2019fd0: e0 00 62 48 ld [ %g1 + 0x248 ], %l0 ! 201ca48 <rtems_libio_iops>
2019fd4: 83 2e 20 06 sll %i0, 6, %g1
2019fd8: b1 2e 20 03 sll %i0, 3, %i0
2019fdc: b0 06 00 01 add %i0, %g1, %i0
2019fe0: a0 04 00 18 add %l0, %i0, %l0
rtems_libio_check_is_open(iop);
2019fe4: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
2019fe8: 80 88 61 00 btst 0x100, %g1
2019fec: 32 80 00 06 bne,a 201a004 <lseek+0x58> <== ALWAYS TAKEN
2019ff0: c2 04 20 40 ld [ %l0 + 0x40 ], %g1
2019ff4: 7f ff d5 4a call 200f51c <__errno> <== NOT EXECUTED
2019ff8: 01 00 00 00 nop <== NOT EXECUTED
2019ffc: 10 80 00 1e b 201a074 <lseek+0xc8> <== NOT EXECUTED
201a000: 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 )
201a004: c2 00 60 14 ld [ %g1 + 0x14 ], %g1
201a008: 80 a0 60 00 cmp %g1, 0
201a00c: 12 80 00 06 bne 201a024 <lseek+0x78> <== ALWAYS TAKEN
201a010: 80 a6 e0 01 cmp %i3, 1
rtems_set_errno_and_return_minus_one( ENOTSUP );
201a014: 7f ff d5 42 call 200f51c <__errno> <== NOT EXECUTED
201a018: 01 00 00 00 nop <== NOT EXECUTED
201a01c: 10 80 00 16 b 201a074 <lseek+0xc8> <== NOT EXECUTED
201a020: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
/*
* Now process the lseek().
*/
old_offset = iop->offset;
switch ( whence ) {
201a024: 02 80 00 09 be 201a048 <lseek+0x9c>
201a028: e4 1c 20 10 ldd [ %l0 + 0x10 ], %l2
201a02c: 80 a6 e0 02 cmp %i3, 2
201a030: 02 80 00 09 be 201a054 <lseek+0xa8>
201a034: 80 a6 e0 00 cmp %i3, 0
201a038: 12 80 00 0c bne 201a068 <lseek+0xbc>
201a03c: 01 00 00 00 nop
case SEEK_SET:
iop->offset = offset;
break;
201a040: 10 80 00 12 b 201a088 <lseek+0xdc>
201a044: c4 3c 20 10 std %g2, [ %l0 + 0x10 ]
case SEEK_CUR:
iop->offset += offset;
201a048: 9a 86 80 13 addcc %i2, %l3, %o5
201a04c: 10 80 00 05 b 201a060 <lseek+0xb4>
201a050: 98 46 40 12 addx %i1, %l2, %o4
break;
case SEEK_END:
iop->offset = iop->size + offset;
201a054: d8 1c 20 08 ldd [ %l0 + 8 ], %o4
201a058: 9a 86 80 0d addcc %i2, %o5, %o5
201a05c: 98 46 40 0c addx %i1, %o4, %o4
break;
201a060: 10 80 00 0a b 201a088 <lseek+0xdc>
201a064: d8 3c 20 10 std %o4, [ %l0 + 0x10 ]
default:
rtems_set_errno_and_return_minus_one( EINVAL );
201a068: 7f ff d5 2d call 200f51c <__errno>
201a06c: 01 00 00 00 nop
201a070: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16>
201a074: c2 22 00 00 st %g1, [ %o0 ]
201a078: 11 3f ff ff sethi %hi(0xfffffc00), %o0
201a07c: 90 12 23 ff or %o0, 0x3ff, %o0 ! ffffffff <RAM_END+0xfdbfffff>
201a080: 10 80 00 0e b 201a0b8 <lseek+0x10c>
201a084: 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 );
201a088: c2 04 20 40 ld [ %l0 + 0x40 ], %g1
201a08c: 92 10 00 02 mov %g2, %o1
201a090: c2 00 60 14 ld [ %g1 + 0x14 ], %g1
201a094: 94 10 00 03 mov %g3, %o2
201a098: 9f c0 40 00 call %g1
201a09c: 90 10 00 10 mov %l0, %o0
if ( status == (off_t) -1 )
201a0a0: 80 a2 3f ff cmp %o0, -1
201a0a4: 12 80 00 06 bne 201a0bc <lseek+0x110>
201a0a8: b2 10 00 09 mov %o1, %i1
201a0ac: 80 a2 7f ff cmp %o1, -1
201a0b0: 22 80 00 03 be,a 201a0bc <lseek+0x110> <== ALWAYS TAKEN
201a0b4: e4 3c 20 10 std %l2, [ %l0 + 0x10 ]
/*
* So if the operation failed, we have to restore iop->offset.
*/
return status;
}
201a0b8: b2 10 00 09 mov %o1, %i1
201a0bc: 81 c7 e0 08 ret
201a0c0: 91 e8 00 08 restore %g0, %o0, %o0
020299f0 <lstat>:
int _STAT_NAME(
const char *path,
struct stat *buf
)
{
20299f0: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
20299f4: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
20299f8: 12 80 00 06 bne 2029a10 <lstat+0x20> <== NOT EXECUTED
20299fc: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
2029a00: 40 00 64 8a call 2042c28 <__errno> <== NOT EXECUTED
2029a04: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
2029a08: 10 80 00 20 b 2029a88 <lstat+0x98> <== NOT EXECUTED
2029a0c: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED
status = rtems_filesystem_evaluate_path( path, strlen( path ),
2029a10: 40 00 80 2e call 2049ac8 <strlen> <== NOT EXECUTED
2029a14: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2029a18: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED
2029a1c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
2029a20: 94 10 20 00 clr %o2 <== NOT EXECUTED
2029a24: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2029a28: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
2029a2c: 98 10 20 00 clr %o4 <== NOT EXECUTED
2029a30: 7f ff 79 ef call 20081ec <rtems_filesystem_evaluate_path> <== NOT EXECUTED
2029a34: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
0, &loc, _STAT_FOLLOW_LINKS );
if ( status != 0 )
2029a38: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029a3c: 12 80 00 14 bne 2029a8c <lstat+0x9c> <== NOT EXECUTED
2029a40: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
return -1;
if ( !loc.handlers->fstat_h ){
2029a44: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED
2029a48: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2029a4c: 12 80 00 12 bne 2029a94 <lstat+0xa4> <== NOT EXECUTED
2029a50: 92 10 20 00 clr %o1 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
2029a54: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
2029a58: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2029a5c: 02 80 00 08 be 2029a7c <lstat+0x8c> <== NOT EXECUTED
2029a60: 01 00 00 00 nop <== NOT EXECUTED
2029a64: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
2029a68: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2029a6c: 02 80 00 04 be 2029a7c <lstat+0x8c> <== NOT EXECUTED
2029a70: 01 00 00 00 nop <== NOT EXECUTED
2029a74: 9f c0 40 00 call %g1 <== NOT EXECUTED
2029a78: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
2029a7c: 40 00 64 6b call 2042c28 <__errno> <== NOT EXECUTED
2029a80: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2029a84: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
2029a88: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2029a8c: 81 c7 e0 08 ret <== NOT EXECUTED
2029a90: 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) );
2029a94: 94 10 20 48 mov 0x48, %o2 <== NOT EXECUTED
2029a98: 40 00 72 43 call 20463a4 <memset> <== NOT EXECUTED
2029a9c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
status = (*loc.handlers->fstat_h)( &loc, buf );
2029aa0: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
2029aa4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2029aa8: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED
2029aac: 9f c0 40 00 call %g1 <== NOT EXECUTED
2029ab0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
2029ab4: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
2029ab8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2029abc: 02 bf ff f4 be 2029a8c <lstat+0x9c> <== NOT EXECUTED
2029ac0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
2029ac4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
2029ac8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2029acc: 02 80 00 04 be 2029adc <lstat+0xec> <== NOT EXECUTED
2029ad0: 01 00 00 00 nop <== NOT EXECUTED
2029ad4: 9f c0 40 00 call %g1 <== NOT EXECUTED
2029ad8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return status;
}
2029adc: 81 c7 e0 08 ret <== NOT EXECUTED
2029ae0: 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 72 sethi %hi(0x201c800), %g1
2002e80: 82 10 62 60 or %g1, 0x260, %g1 ! 201ca60 <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 73 sethi %hi(0x201cc00), %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 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 201cdc0 <_System_state_Current>
2002ea8: 80 a0 60 03 cmp %g1, 3
2002eac: 12 80 00 07 bne 2002ec8 <malloc+0x50>
2002eb0: 03 00 80 70 sethi %hi(0x201c000), %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 70 sethi %hi(0x201c000), %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 60 c0 ld [ %g1 + 0xc0 ], %o0 ! 201c0c0 <RTEMS_Malloc_Heap>
2002ecc: 92 10 00 10 mov %l0, %o1
2002ed0: 94 10 20 00 clr %o2
2002ed4: 40 00 13 ee call 2007e8c <_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 71 sethi %hi(0x201c400), %g1
2002eec: c2 00 63 ac ld [ %g1 + 0x3ac ], %g1 ! 201c7ac <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 71 sethi %hi(0x201c400), %g1 <== NOT EXECUTED
errno = ENOMEM;
2002f14: 40 00 31 82 call 200f51c <__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 71 sethi %hi(0x201c400), %g1
2002f30: c2 00 63 b0 ld [ %g1 + 0x3b0 ], %g1 ! 201c7b0 <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 71 sethi %hi(0x201c400), %g1
2002f4c: c2 00 63 a8 ld [ %g1 + 0x3a8 ], %g1 ! 201c7a8 <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 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED
2002d40: 90 12 22 54 or %o0, 0x254, %o0 ! 201ca54 <RTEMS_Malloc_GC_list><== NOT EXECUTED
2002d44: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2002d48: 40 00 0f d8 call 2006ca8 <_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 72 sethi %hi(0x201c800), %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 22 54 or %l0, 0x254, %l0 ! 201ca54 <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 0f e5 call 2006d00 <_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 73 sethi %hi(0x201cc00), %g1
2002cf4: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 ! 201cc20 <_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 73 sethi %hi(0x201cc00), %g1
2002d08: c2 00 60 bc ld [ %g1 + 0xbc ], %g1 ! 201ccbc <_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
0200d558 <memfile_alloc_block>:
*/
int memfile_blocks_allocated = 0;
void *memfile_alloc_block(void)
{
200d558: 9d e3 bf a0 save %sp, -96, %sp
void *memory;
memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK);
200d55c: 03 00 80 71 sethi %hi(0x201c400), %g1
200d560: d2 00 63 bc ld [ %g1 + 0x3bc ], %o1 ! 201c7bc <imfs_memfile_bytes_per_block>
200d564: 7f ff d4 d4 call 20028b4 <calloc>
200d568: 90 10 20 01 mov 1, %o0
if ( memory )
200d56c: 80 a2 20 00 cmp %o0, 0
200d570: 02 80 00 05 be 200d584 <memfile_alloc_block+0x2c> <== NEVER TAKEN
200d574: 03 00 80 72 sethi %hi(0x201c800), %g1
memfile_blocks_allocated++;
200d578: c4 00 60 d0 ld [ %g1 + 0xd0 ], %g2 ! 201c8d0 <memfile_blocks_allocated>
200d57c: 84 00 a0 01 inc %g2
200d580: c4 20 60 d0 st %g2, [ %g1 + 0xd0 ]
return memory;
}
200d584: 81 c7 e0 08 ret
200d588: 91 e8 00 08 restore %g0, %o0, %o0
0200da90 <memfile_check_rmnod>:
return memfile_check_rmnod( the_jnode );
}
int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){
200da90: 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) ) {
200da94: 7f ff f8 c3 call 200bda0 <rtems_libio_is_file_open>
200da98: 90 10 00 18 mov %i0, %o0
200da9c: 80 a2 20 00 cmp %o0, 0
200daa0: 12 80 00 13 bne 200daec <memfile_check_rmnod+0x5c>
200daa4: 01 00 00 00 nop
200daa8: c2 16 20 34 lduh [ %i0 + 0x34 ], %g1
200daac: 80 a0 60 00 cmp %g1, 0
200dab0: 12 80 00 0f bne 200daec <memfile_check_rmnod+0x5c> <== NEVER TAKEN
200dab4: 03 00 80 70 sethi %hi(0x201c000), %g1
/*
* Is the rtems_filesystem_current is this node?
*/
if ( rtems_filesystem_current.node_access == the_jnode )
200dab8: c2 00 62 80 ld [ %g1 + 0x280 ], %g1 ! 201c280 <rtems_current_user_env>
200dabc: c4 00 60 04 ld [ %g1 + 4 ], %g2
200dac0: 80 a0 80 18 cmp %g2, %i0
200dac4: 22 80 00 02 be,a 200dacc <memfile_check_rmnod+0x3c> <== NEVER TAKEN
200dac8: 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)
200dacc: c2 06 20 4c ld [ %i0 + 0x4c ], %g1
200dad0: 80 a0 60 06 cmp %g1, 6
200dad4: 02 80 00 04 be 200dae4 <memfile_check_rmnod+0x54> <== NEVER TAKEN
200dad8: 01 00 00 00 nop
IMFS_memfile_remove( the_jnode );
200dadc: 7f ff ff 8c call 200d90c <IMFS_memfile_remove>
200dae0: 90 10 00 18 mov %i0, %o0
free( the_jnode );
200dae4: 7f ff d4 06 call 2002afc <free>
200dae8: 90 10 00 18 mov %i0, %o0
}
return 0;
}
200daec: 81 c7 e0 08 ret
200daf0: 91 e8 20 00 restore %g0, 0, %o0
0200d844 <memfile_free_blocks_in_table>:
void memfile_free_blocks_in_table(
block_p **block_table,
int entries
)
{
200d844: 9d e3 bf a0 save %sp, -96, %sp
/*
* Perform internal consistency checks
*/
assert( block_table );
200d848: 80 a6 20 00 cmp %i0, 0
200d84c: 32 80 00 0a bne,a 200d874 <memfile_free_blocks_in_table+0x30><== ALWAYS TAKEN
200d850: e0 06 00 00 ld [ %i0 ], %l0
200d854: 11 00 80 6d sethi %hi(0x201b400), %o0 <== NOT EXECUTED
200d858: 15 00 80 6d sethi %hi(0x201b400), %o2 <== NOT EXECUTED
200d85c: 17 00 80 6d sethi %hi(0x201b400), %o3 <== NOT EXECUTED
200d860: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED
200d864: 94 12 a3 90 or %o2, 0x390, %o2 <== NOT EXECUTED
200d868: 96 12 e2 78 or %o3, 0x278, %o3 <== NOT EXECUTED
200d86c: 7f ff f8 ba call 200bb54 <__assert_func> <== NOT EXECUTED
200d870: 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++ ) {
200d874: 10 80 00 09 b 200d898 <memfile_free_blocks_in_table+0x54>
200d878: a2 10 20 00 clr %l1
if ( b[i] ) {
200d87c: 80 a2 20 00 cmp %o0, 0
200d880: 02 80 00 05 be 200d894 <memfile_free_blocks_in_table+0x50>
200d884: a2 04 60 01 inc %l1
memfile_free_block( b[i] );
200d888: 7f ff ff 2b call 200d534 <memfile_free_block>
200d88c: 01 00 00 00 nop
b[i] = 0;
200d890: 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++ ) {
200d894: a0 04 20 04 add %l0, 4, %l0
200d898: 80 a4 40 19 cmp %l1, %i1
200d89c: 26 bf ff f8 bl,a 200d87c <memfile_free_blocks_in_table+0x38>
200d8a0: 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 );
200d8a4: 7f ff ff 24 call 200d534 <memfile_free_block>
200d8a8: d0 06 00 00 ld [ %i0 ], %o0
*block_table = 0;
200d8ac: c0 26 00 00 clr [ %i0 ]
}
200d8b0: 81 c7 e0 08 ret
200d8b4: 81 e8 00 00 restore
0200dda4 <memfile_ftruncate>:
int memfile_ftruncate(
rtems_libio_t *iop,
rtems_off64_t length
)
{
200dda4: 9d e3 bf 98 save %sp, -104, %sp
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
200dda8: e0 06 20 3c ld [ %i0 + 0x3c ], %l0
int memfile_ftruncate(
rtems_libio_t *iop,
rtems_off64_t length
)
{
200ddac: 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 )
200ddb0: c2 04 20 50 ld [ %l0 + 0x50 ], %g1
200ddb4: 80 a0 40 19 cmp %g1, %i1
200ddb8: 06 80 00 09 bl 200dddc <memfile_ftruncate+0x38> <== NEVER TAKEN
200ddbc: 94 10 00 1a mov %i2, %o2
200ddc0: 80 a0 40 19 cmp %g1, %i1
200ddc4: 32 80 00 0a bne,a 200ddec <memfile_ftruncate+0x48> <== NEVER TAKEN
200ddc8: d2 24 20 50 st %o1, [ %l0 + 0x50 ] <== NOT EXECUTED
200ddcc: c2 04 20 54 ld [ %l0 + 0x54 ], %g1
200ddd0: 80 a0 40 1a cmp %g1, %i2
200ddd4: 3a 80 00 06 bcc,a 200ddec <memfile_ftruncate+0x48> <== ALWAYS TAKEN
200ddd8: d2 24 20 50 st %o1, [ %l0 + 0x50 ]
return IMFS_memfile_extend( the_jnode, length );
200dddc: 7f ff ff 8f call 200dc18 <IMFS_memfile_extend> <== NOT EXECUTED
200dde0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
200dde4: 81 c7 e0 08 ret <== NOT EXECUTED
200dde8: 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;
200ddec: d4 24 20 54 st %o2, [ %l0 + 0x54 ]
iop->size = the_jnode->info.file.size;
200ddf0: d2 26 20 08 st %o1, [ %i0 + 8 ]
200ddf4: d4 26 20 0c st %o2, [ %i0 + 0xc ]
IMFS_update_atime( the_jnode );
200ddf8: 90 07 bf f8 add %fp, -8, %o0
200ddfc: 7f ff d3 6a call 2002ba4 <gettimeofday>
200de00: 92 10 20 00 clr %o1
200de04: c2 07 bf f8 ld [ %fp + -8 ], %g1
200de08: 90 10 20 00 clr %o0
200de0c: c2 24 20 40 st %g1, [ %l0 + 0x40 ]
return 0;
}
200de10: b0 10 00 08 mov %o0, %i0
200de14: 81 c7 e0 08 ret
200de18: 81 e8 00 00 restore
0200de1c <memfile_lseek>:
rtems_off64_t memfile_lseek(
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
200de1c: 9d e3 bf a0 save %sp, -96, %sp
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
200de20: e0 06 20 3c ld [ %i0 + 0x3c ], %l0
if (the_jnode->type == IMFS_LINEAR_FILE) {
200de24: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
200de28: 80 a0 60 06 cmp %g1, 6
200de2c: 32 80 00 11 bne,a 200de70 <memfile_lseek+0x54> <== ALWAYS TAKEN
200de30: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2
if (iop->offset > the_jnode->info.linearfile.size)
200de34: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 <== NOT EXECUTED
200de38: c6 06 20 10 ld [ %i0 + 0x10 ], %g3 <== NOT EXECUTED
200de3c: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED
200de40: 14 80 00 09 bg 200de64 <memfile_lseek+0x48> <== NOT EXECUTED
200de44: c4 04 20 54 ld [ %l0 + 0x54 ], %g2 <== NOT EXECUTED
200de48: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED
200de4c: 32 80 00 1a bne,a 200deb4 <memfile_lseek+0x98> <== NOT EXECUTED
200de50: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED
200de54: c6 06 20 14 ld [ %i0 + 0x14 ], %g3 <== NOT EXECUTED
200de58: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED
200de5c: 28 80 00 16 bleu,a 200deb4 <memfile_lseek+0x98> <== NOT EXECUTED
200de60: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED
iop->offset = the_jnode->info.linearfile.size;
200de64: c2 26 20 10 st %g1, [ %i0 + 0x10 ] <== NOT EXECUTED
200de68: 10 80 00 12 b 200deb0 <memfile_lseek+0x94> <== NOT EXECUTED
200de6c: 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 ))
200de70: 90 10 00 10 mov %l0, %o0
200de74: 92 10 00 02 mov %g2, %o1
200de78: 7f ff ff 68 call 200dc18 <IMFS_memfile_extend>
200de7c: 94 10 00 03 mov %g3, %o2
200de80: 80 a2 20 00 cmp %o0, 0
200de84: 22 80 00 0a be,a 200deac <memfile_lseek+0x90> <== ALWAYS TAKEN
200de88: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2
rtems_set_errno_and_return_minus_one( ENOSPC );
200de8c: 40 00 05 a4 call 200f51c <__errno> <== NOT EXECUTED
200de90: 01 00 00 00 nop <== NOT EXECUTED
200de94: 82 10 20 1c mov 0x1c, %g1 ! 1c <PROM_START+0x1c> <== NOT EXECUTED
200de98: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED
200de9c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200dea0: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
200dea4: 10 80 00 04 b 200deb4 <memfile_lseek+0x98> <== NOT EXECUTED
200dea8: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED
iop->size = the_jnode->info.file.size;
200deac: c4 3e 20 08 std %g2, [ %i0 + 8 ]
}
return iop->offset;
200deb0: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2
}
200deb4: b2 10 00 03 mov %g3, %i1
200deb8: 81 c7 e0 08 ret
200debc: 91 e8 00 02 restore %g0, %g2, %o0
0200e188 <memfile_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
200e188: 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))
200e18c: c2 06 20 18 ld [ %i0 + 0x18 ], %g1
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
200e190: 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))
200e194: 80 88 62 04 btst 0x204, %g1
200e198: 02 80 00 19 be 200e1fc <memfile_open+0x74>
200e19c: e0 06 20 3c ld [ %i0 + 0x3c ], %l0
&& (the_jnode->type == IMFS_LINEAR_FILE)) {
200e1a0: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
200e1a4: 80 a0 60 06 cmp %g1, 6
200e1a8: 32 80 00 16 bne,a 200e200 <memfile_open+0x78> <== ALWAYS TAKEN
200e1ac: c2 04 60 18 ld [ %l1 + 0x18 ], %g1
uint32_t count = the_jnode->info.linearfile.size;
200e1b0: d8 04 20 54 ld [ %l0 + 0x54 ], %o4 <== NOT EXECUTED
const unsigned char *buffer = the_jnode->info.linearfile.direct;
200e1b4: d6 04 20 58 ld [ %l0 + 0x58 ], %o3 <== NOT EXECUTED
the_jnode->type = IMFS_MEMORY_FILE;
200e1b8: 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;
200e1bc: 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;
200e1c0: c0 24 20 50 clr [ %l0 + 0x50 ] <== NOT EXECUTED
200e1c4: 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;
200e1c8: 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;
200e1cc: 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)
200e1d0: 80 a3 20 00 cmp %o4, 0 <== NOT EXECUTED
200e1d4: 02 80 00 0a be 200e1fc <memfile_open+0x74> <== NOT EXECUTED
200e1d8: c2 24 20 4c st %g1, [ %l0 + 0x4c ] <== NOT EXECUTED
&& (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))
200e1dc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
200e1e0: 92 10 20 00 clr %o1 <== NOT EXECUTED
200e1e4: 94 10 20 00 clr %o2 <== NOT EXECUTED
200e1e8: 7f ff ff 36 call 200dec0 <IMFS_memfile_write> <== NOT EXECUTED
200e1ec: 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)
200e1f0: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED
200e1f4: 02 80 00 0a be 200e21c <memfile_open+0x94> <== NOT EXECUTED
200e1f8: 01 00 00 00 nop <== NOT EXECUTED
&& (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))
return -1;
}
if (iop->flags & LIBIO_FLAGS_APPEND)
200e1fc: c2 04 60 18 ld [ %l1 + 0x18 ], %g1
200e200: 80 88 62 00 btst 0x200, %g1
200e204: 02 80 00 04 be 200e214 <memfile_open+0x8c>
200e208: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2
iop->offset = the_jnode->info.file.size;
200e20c: c4 3c 60 10 std %g2, [ %l1 + 0x10 ]
iop->size = the_jnode->info.file.size;
200e210: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2
200e214: b0 10 20 00 clr %i0
200e218: c4 3c 60 08 std %g2, [ %l1 + 8 ]
return 0;
}
200e21c: 81 c7 e0 08 ret
200e220: 81 e8 00 00 restore
0200daf4 <memfile_rmnod>:
int memfile_rmnod(
rtems_filesystem_location_info_t *parent_pathloc, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN */
)
{
200daf4: 9d e3 bf 98 save %sp, -104, %sp
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) pathloc->node_access;
200daf8: 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 ) {
200dafc: c2 04 20 08 ld [ %l0 + 8 ], %g1
200db00: 80 a0 60 00 cmp %g1, 0
200db04: 22 80 00 06 be,a 200db1c <memfile_rmnod+0x28> <== NEVER TAKEN
200db08: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 <== NOT EXECUTED
200db0c: 7f ff e4 73 call 2006cd8 <_Chain_Extract>
200db10: 90 10 00 10 mov %l0, %o0
rtems_chain_extract( (rtems_chain_node *) the_jnode );
the_jnode->Parent = NULL;
200db14: c0 24 20 08 clr [ %l0 + 8 ]
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
200db18: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1
IMFS_update_ctime( the_jnode );
200db1c: 92 10 20 00 clr %o1
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
200db20: 82 00 7f ff add %g1, -1, %g1
IMFS_update_ctime( the_jnode );
200db24: 90 07 bf f8 add %fp, -8, %o0
200db28: 7f ff d4 1f call 2002ba4 <gettimeofday>
200db2c: c2 34 20 34 sth %g1, [ %l0 + 0x34 ]
200db30: c2 07 bf f8 ld [ %fp + -8 ], %g1
return memfile_check_rmnod( the_jnode );
200db34: 90 10 00 10 mov %l0, %o0
200db38: 7f ff ff d6 call 200da90 <memfile_check_rmnod>
200db3c: c2 24 20 48 st %g1, [ %l0 + 0x48 ]
}
200db40: 81 c7 e0 08 ret
200db44: 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 31 4b call 200f51c <__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 31 2b call 200f51c <__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 13 call 200c1b0 <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 30 e9 call 200f51c <__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 6b sethi %hi(0x201ac00), %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 23 e0 or %l4, 0x3e0, %l4
200319c: a8 10 00 19 mov %i1, %l4
size_t filesystemtype_size = strlen( filesystemtype ) + 1;
20031a0: 40 00 34 ac call 2010450 <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 34 a6 call 2010450 <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 34 a3 call 2010450 <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 34 5f call 2010370 <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 34 58 call 2010370 <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 34 53 call 2010370 <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 6b sethi %hi(0x201ac00), %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 63 e8 or %o1, 0x3e8, %o1
2003240: 90 04 20 38 add %l0, 0x38, %o0
2003244: 40 00 32 f2 call 200fe0c <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 70 sethi %hi(0x201c000), %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 30 af call 200f51c <__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 30 98 call 200f51c <__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 30 8d call 200f51c <__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 30 7f call 200f51c <__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 62 60 ld [ %g1 + 0x260 ], %g2
}
} else {
/*
* Do we already have a base file system ?
*/
if ( !rtems_chain_is_empty( &mount_chain ) ) {
200334c: 82 10 62 60 or %g1, 0x260, %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 30 6f call 200f51c <__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 72 sethi %hi(0x201c800), %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 a2 50 ld [ %l2 + 0x250 ], %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 70 sethi %hi(0x201c000), %o0
20033c0: 40 00 0e 3a call 2006ca8 <_Chain_Append>
20033c4: 90 12 22 60 or %o0, 0x260, %o0 ! 201c260 <mount_chain>
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
20033c8: d0 04 a2 50 ld [ %l2 + 0x250 ], %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 70 sethi %hi(0x201c000), %g1
rtems_filesystem_root = mt_entry->mt_fs_root;
20033e0: d0 00 62 80 ld [ %g1 + 0x280 ], %o0 ! 201c280 <rtems_current_user_env>
20033e4: 92 04 20 1c add %l0, 0x1c, %o1
20033e8: 94 10 20 14 mov 0x14, %o2
20033ec: 40 00 32 88 call 200fe0c <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
02035b88 <msdos_creat_node>:
msdos_node_type_t type,
const char *name,
int name_len,
mode_t mode,
const fat_file_fd_t *link_fd)
{
2035b88: 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;
2035b8c: 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);
2035b90: 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;
2035b94: 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;
2035b98: 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);
2035b9c: 92 10 20 00 clr %o1 <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
2035ba0: 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;
2035ba4: c2 27 bf f0 st %g1, [ %fp + -16 ] <== NOT EXECUTED
2035ba8: 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;
2035bac: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
time_t time_ret = 0;
uint16_t time_val = 0;
2035bb0: c0 37 bf fe clrh [ %fp + -2 ] <== NOT EXECUTED
uint16_t date = 0;
2035bb4: 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;
2035bb8: c0 27 bf e8 clr [ %fp + -24 ] <== NOT EXECUTED
dir_pos->sname.ofs = 0;
2035bbc: 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;
2035bc0: 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);
2035bc4: 40 00 41 f8 call 20463a4 <memset> <== NOT EXECUTED
2035bc8: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
memset(dot_dotdot, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2);
2035bcc: 92 10 20 00 clr %o1 <== NOT EXECUTED
2035bd0: 94 10 20 40 mov 0x40, %o2 <== NOT EXECUTED
2035bd4: 40 00 41 f4 call 20463a4 <memset> <== NOT EXECUTED
2035bd8: 90 07 bf 68 add %fp, -152, %o0 <== NOT EXECUTED
name_type = msdos_long_to_short (name, name_len,
2035bdc: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
2035be0: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
2035be4: 96 10 20 0b mov 0xb, %o3 <== NOT EXECUTED
2035be8: 40 00 08 4a call 2037d10 <msdos_long_to_short> <== NOT EXECUTED
2035bec: 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)
{
2035bf0: 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,
2035bf4: 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;
2035bf8: c0 2c e0 0c clrb [ %l3 + 0xc ] <== NOT EXECUTED
/* set up last write date and time */
time_ret = time(NULL);
2035bfc: 40 00 64 ad call 204eeb0 <time> <== NOT EXECUTED
2035c00: 90 10 20 00 clr %o0 <== NOT EXECUTED
if ( time_ret == -1 )
2035c04: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED
2035c08: 02 80 00 cf be 2035f44 <msdos_creat_node+0x3bc> <== NOT EXECUTED
2035c0c: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
return -1;
msdos_date_unix2dos(time_ret, &date, &time_val);
2035c10: 40 00 2d 5d call 2041184 <msdos_date_unix2dos> <== NOT EXECUTED
2035c14: 94 07 bf fe add %fp, -2, %o2 <== NOT EXECUTED
*MSDOS_DIR_WRITE_TIME(short_node) = CT_LE_W(time_val);
2035c18: c4 17 bf fe lduh [ %fp + -2 ], %g2 <== NOT EXECUTED
*MSDOS_DIR_WRITE_DATE(short_node) = CT_LE_W(date);
2035c1c: 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);
2035c20: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
*MSDOS_DIR_WRITE_DATE(short_node) = CT_LE_W(date);
2035c24: 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);
2035c28: 89 30 a0 18 srl %g2, 0x18, %g4 <== NOT EXECUTED
*MSDOS_DIR_WRITE_DATE(short_node) = CT_LE_W(date);
2035c2c: 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);
2035c30: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
*MSDOS_DIR_WRITE_DATE(short_node) = CT_LE_W(date);
2035c34: 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);
2035c38: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
*MSDOS_DIR_WRITE_DATE(short_node) = CT_LE_W(date);
2035c3c: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
/* initialize directory/file size */
*MSDOS_DIR_FILE_SIZE(short_node) = MSDOS_INIT_DIR_SIZE;
2035c40: 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);
2035c44: 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) {
2035c48: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED
2035c4c: 12 80 00 05 bne 2035c60 <msdos_creat_node+0xd8> <== NOT EXECUTED
2035c50: c2 34 e0 18 sth %g1, [ %l3 + 0x18 ] <== NOT EXECUTED
*MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_DIRECTORY;
2035c54: c2 0f bf d3 ldub [ %fp + -45 ], %g1 <== NOT EXECUTED
2035c58: 10 80 00 3b b 2035d44 <msdos_creat_node+0x1bc> <== NOT EXECUTED
2035c5c: 82 10 60 10 or %g1, 0x10, %g1 <== NOT EXECUTED
}
else if (type == MSDOS_HARD_LINK) {
2035c60: 80 a6 60 03 cmp %i1, 3 <== NOT EXECUTED
2035c64: 12 80 00 37 bne 2035d40 <msdos_creat_node+0x1b8> <== NOT EXECUTED
2035c68: 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,
2035c6c: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED
2035c70: 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)) )
2035c74: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
2035c78: 12 80 00 08 bne 2035c98 <msdos_creat_node+0x110> <== NOT EXECUTED
2035c7c: c2 02 20 34 ld [ %o0 + 0x34 ], %g1 <== NOT EXECUTED
2035c80: c4 08 60 0a ldub [ %g1 + 0xa ], %g2 <== NOT EXECUTED
2035c84: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED
2035c88: 22 80 00 05 be,a 2035c9c <msdos_creat_node+0x114> <== NOT EXECUTED
2035c8c: c8 00 60 30 ld [ %g1 + 0x30 ], %g4 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
2035c90: 10 80 00 07 b 2035cac <msdos_creat_node+0x124> <== NOT EXECUTED
2035c94: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
2035c98: c8 00 60 30 ld [ %g1 + 0x30 ], %g4 <== NOT EXECUTED
2035c9c: c2 08 60 05 ldub [ %g1 + 5 ], %g1 <== NOT EXECUTED
2035ca0: 84 00 ff fe add %g3, -2, %g2 <== NOT EXECUTED
2035ca4: 85 28 80 01 sll %g2, %g1, %g2 <== NOT EXECUTED
2035ca8: 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);
2035cac: 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,
2035cb0: d2 0c 60 02 ldub [ %l1 + 2 ], %o1 <== NOT EXECUTED
2035cb4: d4 14 40 00 lduh [ %l1 ], %o2 <== NOT EXECUTED
2035cb8: 93 30 40 09 srl %g1, %o1, %o1 <== NOT EXECUTED
2035cbc: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED
2035cc0: 92 00 80 09 add %g2, %o1, %o1 <== NOT EXECUTED
2035cc4: 94 0a 80 01 and %o2, %g1, %o2 <== NOT EXECUTED
2035cc8: a6 07 bf a8 add %fp, -88, %l3 <== NOT EXECUTED
2035ccc: 96 10 20 20 mov 0x20, %o3 <== NOT EXECUTED
2035cd0: 7f ff c1 18 call 2026130 <_fat_block_read> <== NOT EXECUTED
2035cd4: 98 10 00 13 mov %l3, %o4 <== NOT EXECUTED
sec, byte, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE,
link_node);
if (ret < 0) {
2035cd8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2035cdc: 06 80 00 8e bl 2035f14 <msdos_creat_node+0x38c> <== NOT EXECUTED
2035ce0: 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);
2035ce4: 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) =
2035ce8: 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);
2035cec: 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;
2035cf0: 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);
2035cf4: d6 14 e0 0e lduh [ %l3 + 0xe ], %o3 <== NOT EXECUTED
*MSDOS_DIR_CRT_DATE(short_node) =*MSDOS_DIR_CRT_DATE(link_node);
2035cf8: 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) =
2035cfc: 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);
2035d00: 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);
2035d04: 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;
2035d08: 82 10 60 20 or %g1, 0x20, %g1 <== NOT EXECUTED
2035d0c: 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);
2035d10: 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);
2035d14: 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);
2035d18: 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);
2035d1c: 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);
2035d20: 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);
2035d24: 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);
2035d28: 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);
2035d2c: 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) =
2035d30: da 30 60 1a sth %o5, [ %g1 + 0x1a ] <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_LOW(link_node);
*MSDOS_DIR_FIRST_CLUSTER_HI(short_node) =
2035d34: 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);
2035d38: 10 80 00 04 b 2035d48 <msdos_creat_node+0x1c0> <== NOT EXECUTED
2035d3c: c4 30 60 12 sth %g2, [ %g1 + 0x12 ] <== NOT EXECUTED
}
else { /* regular file... */
*MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_ARCHIVE;
2035d40: 82 10 60 20 or %g1, 0x20, %g1 <== NOT EXECUTED
2035d44: 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,
2035d48: 98 10 00 14 mov %l4, %o4 <== NOT EXECUTED
2035d4c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2035d50: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
2035d54: a8 07 bf e8 add %fp, -24, %l4 <== NOT EXECUTED
2035d58: a6 07 bf c8 add %fp, -56, %l3 <== NOT EXECUTED
2035d5c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2035d60: e6 23 a0 5c st %l3, [ %sp + 0x5c ] <== NOT EXECUTED
2035d64: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2035d68: 40 00 09 10 call 20381a8 <msdos_get_name_node> <== NOT EXECUTED
2035d6c: 9a 10 00 14 mov %l4, %o5 <== NOT EXECUTED
name_type, &dir_pos, short_node);
if ( rc != RC_OK )
2035d70: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2035d74: 12 80 00 68 bne 2035f14 <msdos_creat_node+0x38c> <== NOT EXECUTED
2035d78: 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)
2035d7c: 12 80 00 66 bne 2035f14 <msdos_creat_node+0x38c> <== NOT EXECUTED
2035d80: 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);
2035d84: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
2035d88: 7f ff be 33 call 2025654 <fat_file_open> <== NOT EXECUTED
2035d8c: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED
if (rc != RC_OK)
2035d90: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2035d94: 32 80 00 67 bne,a 2035f30 <msdos_creat_node+0x3a8> <== NOT EXECUTED
2035d98: 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;
2035d9c: 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;
2035da0: 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;
2035da4: f2 20 60 10 st %i1, [ %g1 + 0x10 ] <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
2035da8: 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;
2035dac: 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,
2035db0: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2035db4: a8 07 bf 68 add %fp, -152, %l4 <== NOT EXECUTED
2035db8: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED
2035dbc: 40 00 40 e7 call 2046158 <memcpy> <== NOT EXECUTED
2035dc0: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
memcpy(DOTDOT_NODE_P(dot_dotdot), short_node,
2035dc4: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2035dc8: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED
2035dcc: a6 07 bf 88 add %fp, -120, %l3 <== NOT EXECUTED
2035dd0: 40 00 40 e2 call 2046158 <memcpy> <== NOT EXECUTED
2035dd4: 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,
2035dd8: 03 00 81 a6 sethi %hi(0x2069800), %g1 <== NOT EXECUTED
2035ddc: d2 00 63 34 ld [ %g1 + 0x334 ], %o1 ! 2069b34 <MSDOS_DOT_NAME><== NOT EXECUTED
2035de0: 94 10 20 0b mov 0xb, %o2 <== NOT EXECUTED
2035de4: 40 00 40 dd call 2046158 <memcpy> <== NOT EXECUTED
2035de8: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
MSDOS_NAME_MAX);
memcpy(MSDOS_DIR_NAME(DOTDOT_NODE_P(dot_dotdot)), MSDOS_DOTDOT_NAME,
2035dec: 03 00 81 a6 sethi %hi(0x2069800), %g1 <== NOT EXECUTED
2035df0: d2 00 63 38 ld [ %g1 + 0x338 ], %o1 ! 2069b38 <MSDOS_DOTDOT_NAME><== NOT EXECUTED
2035df4: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
2035df8: 40 00 40 d8 call 2046158 <memcpy> <== NOT EXECUTED
2035dfc: 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)) &&
2035e00: c2 04 a0 20 ld [ %l2 + 0x20 ], %g1 <== NOT EXECUTED
2035e04: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2035e08: 32 80 00 0d bne,a 2035e3c <msdos_creat_node+0x2b4> <== NOT EXECUTED
2035e0c: c6 04 a0 1c ld [ %l2 + 0x1c ], %g3 <== NOT EXECUTED
2035e10: c2 04 a0 24 ld [ %l2 + 0x24 ], %g1 <== NOT EXECUTED
2035e14: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2035e18: 32 80 00 09 bne,a 2035e3c <msdos_creat_node+0x2b4> <== NOT EXECUTED
2035e1c: c6 04 a0 1c ld [ %l2 + 0x1c ], %g3 <== NOT EXECUTED
(fs_info->fat.vol.type & FAT_FAT32))
2035e20: c2 0c 60 0a ldub [ %l1 + 0xa ], %g1 <== NOT EXECUTED
2035e24: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED
2035e28: 22 80 00 05 be,a 2035e3c <msdos_creat_node+0x2b4> <== NOT EXECUTED
2035e2c: 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;
2035e30: 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)) &&
2035e34: 10 80 00 0e b 2035e6c <msdos_creat_node+0x2e4> <== NOT EXECUTED
2035e38: 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)) =
2035e3c: 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));
2035e40: 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)) =
2035e44: 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)) =
2035e48: 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)) =
2035e4c: 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)) =
2035e50: 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)) =
2035e54: 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)) =
2035e58: 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)) =
2035e5c: 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)) =
2035e60: 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)) =
2035e64: 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)) =
2035e68: 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,
2035e6c: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
2035e70: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
2035e74: a4 07 bf 68 add %fp, -152, %l2 <== NOT EXECUTED
2035e78: 94 10 20 00 clr %o2 <== NOT EXECUTED
2035e7c: 96 10 20 40 mov 0x40, %o3 <== NOT EXECUTED
2035e80: 7f ff bc ad call 2025134 <fat_file_write> <== NOT EXECUTED
2035e84: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2,
(uint8_t *)dot_dotdot);
if (ret < 0)
2035e88: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2035e8c: 06 80 00 24 bl 2035f1c <msdos_creat_node+0x394> <== NOT EXECUTED
2035e90: 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;
2035e94: c2 14 60 06 lduh [ %l1 + 6 ], %g1 <== NOT EXECUTED
2035e98: 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));
2035e9c: 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;
2035ea0: 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,
2035ea4: 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;
2035ea8: 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));
2035eac: 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)) =
2035eb0: 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)) =
2035eb4: 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)) =
2035eb8: 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)) =
2035ebc: 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)) =
2035ec0: 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)) =
2035ec4: 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)) =
2035ec8: 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)) =
2035ecc: 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,
2035ed0: 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)) =
2035ed4: 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)) =
2035ed8: 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,
2035edc: 94 10 20 00 clr %o2 <== NOT EXECUTED
2035ee0: 7f ff bc 95 call 2025134 <fat_file_write> <== NOT EXECUTED
2035ee4: 96 10 20 20 mov 0x20, %o3 <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE,
(uint8_t *)DOT_NODE_P(dot_dotdot));
if (ret < 0)
2035ee8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2035eec: 06 80 00 0d bl 2035f20 <msdos_creat_node+0x398> <== NOT EXECUTED
2035ef0: 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);
2035ef4: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
2035ef8: 40 00 06 5e call 2037870 <msdos_set_first_cluster_num> <== NOT EXECUTED
2035efc: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
if (rc != RC_OK)
2035f00: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2035f04: 12 80 00 08 bne 2035f24 <msdos_creat_node+0x39c> <== NOT EXECUTED
2035f08: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
goto error;
fat_file_close(parent_loc->mt_entry, fat_fd);
2035f0c: 7f ff bd a3 call 2025598 <fat_file_close> <== NOT EXECUTED
2035f10: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
2035f14: 81 c7 e0 08 ret <== NOT EXECUTED
2035f18: 81 e8 00 00 restore <== NOT EXECUTED
2035f1c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
}
return RC_OK;
error:
fat_file_close(parent_loc->mt_entry, fat_fd);
2035f20: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
2035f24: 7f ff bd 9d call 2025598 <fat_file_close> <== NOT EXECUTED
2035f28: 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);
2035f2c: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
2035f30: 92 07 bf e8 add %fp, -24, %o1 <== NOT EXECUTED
2035f34: 40 00 06 88 call 2037954 <msdos_set_first_char4file_name> <== NOT EXECUTED
2035f38: 94 10 20 e5 mov 0xe5, %o2 <== NOT EXECUTED
return rc;
2035f3c: 81 c7 e0 08 ret <== NOT EXECUTED
2035f40: 81 e8 00 00 restore <== NOT EXECUTED
2035f44: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
}
2035f48: 81 c7 e0 08 ret <== NOT EXECUTED
2035f4c: 81 e8 00 00 restore <== NOT EXECUTED
020412cc <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)
{
20412cc: 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) {
20412d0: 03 00 81 b3 sethi %hi(0x206cc00), %g1 <== NOT EXECUTED
20412d4: c4 10 63 e0 lduh [ %g1 + 0x3e0 ], %g2 ! 206cfe0 <lastdosdate><== NOT EXECUTED
20412d8: 80 a0 80 18 cmp %g2, %i0 <== NOT EXECUTED
20412dc: 02 80 00 34 be 20413ac <msdos_date_dos2unix+0xe0> <== NOT EXECUTED
20412e0: 07 00 00 3f sethi %hi(0xfc00), %g3 <== NOT EXECUTED
lastdosdate = dd;
20412e4: f0 30 63 e0 sth %i0, [ %g1 + 0x3e0 ] <== NOT EXECUTED
days = 0;
year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;
20412e8: 82 10 20 00 clr %g1 <== NOT EXECUTED
20412ec: 86 10 e2 00 or %g3, 0x200, %g3 <== NOT EXECUTED
20412f0: 84 10 20 00 clr %g2 <== NOT EXECUTED
20412f4: 86 0e 00 03 and %i0, %g3, %g3 <== NOT EXECUTED
for (y = 0; y < year; y++)
days += y & 0x03 ? 365 : 366;
20412f8: 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++)
20412fc: 10 80 00 06 b 2041314 <msdos_date_dos2unix+0x48> <== NOT EXECUTED
2041300: 87 30 e0 09 srl %g3, 9, %g3 <== NOT EXECUTED
2041304: 84 00 a0 01 inc %g2 <== NOT EXECUTED
days += y & 0x03 ? 365 : 366;
2041308: 80 a0 00 0d cmp %g0, %o5 <== NOT EXECUTED
204130c: 9a 61 20 00 subx %g4, 0, %o5 <== NOT EXECUTED
2041310: 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++)
2041314: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED
2041318: 0a bf ff fb bcs 2041304 <msdos_date_dos2unix+0x38> <== NOT EXECUTED
204131c: 9a 08 a0 03 and %g2, 3, %o5 <== NOT EXECUTED
days += y & 0x03 ? 365 : 366;
months = year & 0x03 ? regyear : leapyear;
2041320: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED
2041324: 07 00 81 a6 sethi %hi(0x2069800), %g3 <== NOT EXECUTED
2041328: 12 80 00 04 bne 2041338 <msdos_date_dos2unix+0x6c> <== NOT EXECUTED
204132c: 86 10 e3 94 or %g3, 0x394, %g3 ! 2069b94 <regyear> <== NOT EXECUTED
2041330: 07 00 81 a6 sethi %hi(0x2069800), %g3 <== NOT EXECUTED
2041334: 86 10 e3 ac or %g3, 0x3ac, %g3 ! 2069bac <leapyear> <== NOT EXECUTED
/*
* Prevent going from 0 to 0xffffffff in the following
* loop.
*/
month = (dd & MSDOS_DD_MONTH_MASK) >> MSDOS_DD_MONTH_SHIFT;
2041338: 84 0e 21 e0 and %i0, 0x1e0, %g2 <== NOT EXECUTED
204133c: 85 30 a0 05 srl %g2, 5, %g2 <== NOT EXECUTED
if (month == 0) {
2041340: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2041344: 22 80 00 02 be,a 204134c <msdos_date_dos2unix+0x80> <== NOT EXECUTED
2041348: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
month = 1;
}
for (m = 0; m < month - 1; m++)
204134c: 88 00 bf ff add %g2, -1, %g4 <== NOT EXECUTED
2041350: 10 80 00 05 b 2041364 <msdos_date_dos2unix+0x98> <== NOT EXECUTED
2041354: 84 10 20 00 clr %g2 <== NOT EXECUTED
days += months[m];
2041358: 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++)
204135c: 84 00 a0 01 inc %g2 <== NOT EXECUTED
days += months[m];
2041360: 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++)
2041364: 80 a0 80 04 cmp %g2, %g4 <== NOT EXECUTED
2041368: 0a bf ff fc bcs 2041358 <msdos_date_dos2unix+0x8c> <== NOT EXECUTED
204136c: 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;
2041370: b0 0e 20 1f and %i0, 0x1f, %i0 <== NOT EXECUTED
2041374: b0 06 3f ff add %i0, -1, %i0 <== NOT EXECUTED
2041378: 82 06 00 01 add %i0, %g1, %g1 <== NOT EXECUTED
204137c: 85 28 60 09 sll %g1, 9, %g2 <== NOT EXECUTED
2041380: 83 28 60 07 sll %g1, 7, %g1 <== NOT EXECUTED
2041384: 82 20 80 01 sub %g2, %g1, %g1 <== NOT EXECUTED
2041388: 85 28 60 04 sll %g1, 4, %g2 <== NOT EXECUTED
204138c: 82 20 80 01 sub %g2, %g1, %g1 <== NOT EXECUTED
2041390: 85 28 60 04 sll %g1, 4, %g2 <== NOT EXECUTED
2041394: 82 20 80 01 sub %g2, %g1, %g1 <== NOT EXECUTED
2041398: 05 04 b3 a9 sethi %hi(0x12cea400), %g2 <== NOT EXECUTED
204139c: 84 10 a2 00 or %g2, 0x200, %g2 ! 12cea600 <RAM_END+0x108ea600><== NOT EXECUTED
20413a0: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
20413a4: 05 00 81 b3 sethi %hi(0x206cc00), %g2 <== NOT EXECUTED
20413a8: c2 20 a3 e4 st %g1, [ %g2 + 0x3e4 ] ! 206cfe4 <lastseconds><== NOT EXECUTED
20413ac: 03 00 81 b3 sethi %hi(0x206cc00), %g1 <== NOT EXECUTED
20413b0: c4 00 63 e4 ld [ %g1 + 0x3e4 ], %g2 ! 206cfe4 <lastseconds><== NOT EXECUTED
20413b4: b0 0e 60 1f and %i1, 0x1f, %i0 <== NOT EXECUTED
20413b8: 82 0e 67 e0 and %i1, 0x7e0, %g1 <== NOT EXECUTED
20413bc: b3 36 60 0b srl %i1, 0xb, %i1 <== NOT EXECUTED
20413c0: b0 06 00 02 add %i0, %g2, %i0 <== NOT EXECUTED
20413c4: 84 0e 60 1f and %i1, 0x1f, %g2 <== NOT EXECUTED
20413c8: b3 28 a0 08 sll %g2, 8, %i1 <== NOT EXECUTED
20413cc: 85 28 a0 04 sll %g2, 4, %g2 <== NOT EXECUTED
20413d0: 83 30 60 05 srl %g1, 5, %g1 <== NOT EXECUTED
20413d4: b2 26 40 02 sub %i1, %g2, %i1 <== NOT EXECUTED
20413d8: 87 28 60 06 sll %g1, 6, %g3 <== NOT EXECUTED
20413dc: 85 2e 60 04 sll %i1, 4, %g2 <== NOT EXECUTED
20413e0: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
20413e4: b2 20 80 19 sub %g2, %i1, %i1 <== NOT EXECUTED
20413e8: 82 20 c0 01 sub %g3, %g1, %g1 <== NOT EXECUTED
20413ec: b0 06 00 19 add %i0, %i1, %i0 <== NOT EXECUTED
}
return seconds + lastseconds;
}
20413f0: 81 c7 e0 08 ret <== NOT EXECUTED
20413f4: 91 ee 00 01 restore %i0, %g1, %o0 <== NOT EXECUTED
02041184 <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)
{
2041184: 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) {
2041188: 03 00 81 b3 sethi %hi(0x206cc00), %g1 <== NOT EXECUTED
204118c: c4 00 63 d4 ld [ %g1 + 0x3d4 ], %g2 ! 206cfd4 <lasttime> <== NOT EXECUTED
2041190: 80 a0 80 18 cmp %g2, %i0 <== NOT EXECUTED
2041194: 02 80 00 46 be 20412ac <msdos_date_unix2dos+0x128> <== NOT EXECUTED
2041198: 92 10 20 3c mov 0x3c, %o1 <== NOT EXECUTED
lasttime = t;
204119c: f0 20 63 d4 st %i0, [ %g1 + 0x3d4 ] <== NOT EXECUTED
lastdtime = (((t % 60) >> 1) << MSDOS_DT_2SECONDS_SHIFT)
20411a0: 40 00 67 cf call 205b0dc <.udiv> <== NOT EXECUTED
20411a4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20411a8: 40 00 68 79 call 205b38c <.urem> <== NOT EXECUTED
20411ac: 92 10 20 3c mov 0x3c, %o1 <== NOT EXECUTED
20411b0: 92 10 2e 10 mov 0xe10, %o1 <== NOT EXECUTED
20411b4: a1 2a 20 05 sll %o0, 5, %l0 <== NOT EXECUTED
20411b8: 40 00 67 c9 call 205b0dc <.udiv> <== NOT EXECUTED
20411bc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20411c0: 40 00 68 73 call 205b38c <.urem> <== NOT EXECUTED
20411c4: 92 10 20 18 mov 0x18, %o1 <== NOT EXECUTED
20411c8: 91 2a 20 0b sll %o0, 0xb, %o0 <== NOT EXECUTED
20411cc: 92 10 20 3c mov 0x3c, %o1 <== NOT EXECUTED
20411d0: a0 04 00 08 add %l0, %o0, %l0 <== NOT EXECUTED
20411d4: 40 00 68 6e call 205b38c <.urem> <== NOT EXECUTED
20411d8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20411dc: 03 00 81 b3 sethi %hi(0x206cc00), %g1 <== NOT EXECUTED
20411e0: 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);
20411e4: 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)
20411e8: 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);
20411ec: 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)
20411f0: e0 30 63 de sth %l0, [ %g1 + 0x3de ] <== 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);
20411f4: 40 00 67 ba call 205b0dc <.udiv> <== NOT EXECUTED
20411f8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (days != lastday) {
20411fc: 03 00 81 b3 sethi %hi(0x206cc00), %g1 <== NOT EXECUTED
2041200: c4 00 63 d8 ld [ %g1 + 0x3d8 ], %g2 ! 206cfd8 <lastday> <== NOT EXECUTED
2041204: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED
2041208: 22 80 00 2a be,a 20412b0 <msdos_date_unix2dos+0x12c> <== NOT EXECUTED
204120c: 03 00 81 b3 sethi %hi(0x206cc00), %g1 <== NOT EXECUTED
lastday = days;
2041210: d0 20 63 d8 st %o0, [ %g1 + 0x3d8 ] ! 206cfd8 <lastday> <== NOT EXECUTED
for (year = 1970;; year++) {
inc = year & 0x03 ? 365 : 366;
2041214: 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;
2041218: 82 10 27 b2 mov 0x7b2, %g1 <== NOT EXECUTED
for (year = 1970;; year++) {
inc = year & 0x03 ? 365 : 366;
204121c: 84 08 60 03 and %g1, 3, %g2 <== NOT EXECUTED
2041220: 80 a0 00 02 cmp %g0, %g2 <== NOT EXECUTED
2041224: 86 61 20 00 subx %g4, 0, %g3 <== NOT EXECUTED
if (days < inc)
2041228: 80 a2 00 03 cmp %o0, %g3 <== NOT EXECUTED
204122c: 2a 80 00 05 bcs,a 2041240 <msdos_date_unix2dos+0xbc> <== NOT EXECUTED
2041230: 07 00 81 a6 sethi %hi(0x2069800), %g3 <== NOT EXECUTED
break;
days -= inc;
2041234: 90 22 00 03 sub %o0, %g3, %o0 <== NOT EXECUTED
}
2041238: 10 bf ff f9 b 204121c <msdos_date_unix2dos+0x98> <== NOT EXECUTED
204123c: 82 00 60 01 inc %g1 <== NOT EXECUTED
months = year & 0x03 ? regyear : leapyear;
2041240: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2041244: 12 80 00 04 bne 2041254 <msdos_date_unix2dos+0xd0> <== NOT EXECUTED
2041248: 86 10 e3 94 or %g3, 0x394, %g3 <== NOT EXECUTED
204124c: 07 00 81 a6 sethi %hi(0x2069800), %g3 <== NOT EXECUTED
2041250: 86 10 e3 ac or %g3, 0x3ac, %g3 ! 2069bac <leapyear> <== NOT EXECUTED
2041254: 84 10 20 00 clr %g2 <== NOT EXECUTED
for (month = 0; month < 12; month++) {
if (days < months[month])
2041258: 89 28 a0 01 sll %g2, 1, %g4 <== NOT EXECUTED
204125c: c8 10 c0 04 lduh [ %g3 + %g4 ], %g4 <== NOT EXECUTED
2041260: 80 a2 00 04 cmp %o0, %g4 <== NOT EXECUTED
2041264: 2a 80 00 07 bcs,a 2041280 <msdos_date_unix2dos+0xfc> <== NOT EXECUTED
2041268: 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++) {
204126c: 84 00 a0 01 inc %g2 <== NOT EXECUTED
2041270: 80 a0 a0 0c cmp %g2, 0xc <== NOT EXECUTED
2041274: 12 bf ff f9 bne 2041258 <msdos_date_unix2dos+0xd4> <== NOT EXECUTED
2041278: 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)
204127c: 90 02 20 01 inc %o0 <== NOT EXECUTED
2041280: 84 00 a0 01 inc %g2 <== NOT EXECUTED
2041284: 07 00 81 b3 sethi %hi(0x206cc00), %g3 <== NOT EXECUTED
2041288: 85 28 a0 05 sll %g2, 5, %g2 <== NOT EXECUTED
204128c: 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)
2041290: 80 a0 67 bc cmp %g1, 0x7bc <== NOT EXECUTED
2041294: 08 80 00 06 bleu 20412ac <msdos_date_unix2dos+0x128> <== NOT EXECUTED
2041298: d0 30 e3 dc sth %o0, [ %g3 + 0x3dc ] <== NOT EXECUTED
lastddate += (year - 1980) <<
204129c: 82 00 78 44 add %g1, -1980, %g1 <== NOT EXECUTED
20412a0: 83 28 60 09 sll %g1, 9, %g1 <== NOT EXECUTED
20412a4: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED
20412a8: d0 30 e3 dc sth %o0, [ %g3 + 0x3dc ] <== NOT EXECUTED
MSDOS_DD_YEAR_SHIFT;
}
}
*dtp = lastdtime;
20412ac: 03 00 81 b3 sethi %hi(0x206cc00), %g1 <== NOT EXECUTED
20412b0: c2 10 63 de lduh [ %g1 + 0x3de ], %g1 ! 206cfde <lastdtime><== NOT EXECUTED
20412b4: c2 36 80 00 sth %g1, [ %i2 ] <== NOT EXECUTED
*ddp = lastddate;
20412b8: 03 00 81 b3 sethi %hi(0x206cc00), %g1 <== NOT EXECUTED
20412bc: c2 10 63 dc lduh [ %g1 + 0x3dc ], %g1 ! 206cfdc <lastddate><== NOT EXECUTED
20412c0: c2 36 40 00 sth %g1, [ %i1 ] <== NOT EXECUTED
}
20412c4: 81 c7 e0 08 ret <== NOT EXECUTED
20412c8: 81 e8 00 00 restore <== NOT EXECUTED
0204156c <msdos_dir_chmod>:
int
msdos_dir_chmod(rtems_filesystem_location_info_t *pathloc,
mode_t mode)
{
return RC_OK;
}
204156c: 81 c3 e0 08 retl <== NOT EXECUTED
2041570: 90 10 20 00 clr %o0 <== NOT EXECUTED
02041cc4 <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)
{
2041cc4: 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;
2041cc8: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
2041ccc: 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;
2041cd0: 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,
2041cd4: 92 10 20 00 clr %o1 <== NOT EXECUTED
2041cd8: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
2041cdc: 7f ff 2b 85 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2041ce0: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2041ce4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2041ce8: 22 80 00 08 be,a 2041d08 <msdos_dir_close+0x44> <== NOT EXECUTED
2041cec: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
2041cf0: 40 00 03 ce call 2042c28 <__errno> <== NOT EXECUTED
2041cf4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2041cf8: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2041cfc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2041d00: 81 c7 e0 08 ret <== NOT EXECUTED
2041d04: 81 e8 00 00 restore <== NOT EXECUTED
rc = fat_file_close(iop->pathinfo.mt_entry, fat_fd);
2041d08: 7f ff 8e 24 call 2025598 <fat_file_close> <== NOT EXECUTED
2041d0c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2041d10: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
if (rc != RC_OK)
2041d14: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
2041d18: 02 80 00 06 be 2041d30 <msdos_dir_close+0x6c> <== NOT EXECUTED
2041d1c: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
2041d20: 7f ff 2b bb call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2041d24: 01 00 00 00 nop <== NOT EXECUTED
return rc;
2041d28: 81 c7 e0 08 ret <== NOT EXECUTED
2041d2c: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_semaphore_release(fs_info->vol_sema);
2041d30: 7f ff 2b b7 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2041d34: 01 00 00 00 nop <== NOT EXECUTED
return RC_OK;
}
2041d38: 81 c7 e0 08 ret <== NOT EXECUTED
2041d3c: 81 e8 00 00 restore <== NOT EXECUTED
02037684 <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
)
{
2037684: 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,
2037688: 27 00 81 a6 sethi %hi(0x2069800), %l3 <== NOT EXECUTED
MSDOS_SHORT_NAME_LEN) == 0) ||
(strncmp(MSDOS_DIR_NAME((entry)),
203768c: 25 00 81 a6 sethi %hi(0x2069800), %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;
2037690: 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,
2037694: a6 14 e3 34 or %l3, 0x334, %l3 <== NOT EXECUTED
MSDOS_SHORT_NAME_LEN) == 0) ||
(strncmp(MSDOS_DIR_NAME((entry)),
2037698: a4 14 a3 38 or %l2, 0x338, %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;
203769c: 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,
20376a0: 10 80 00 36 b 2037778 <msdos_dir_is_empty+0xf4> <== NOT EXECUTED
20376a4: 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)
20376a8: 34 80 00 04 bg,a 20376b8 <msdos_dir_is_empty+0x34> <== NOT EXECUTED
20376ac: c2 14 00 00 lduh [ %l0 ], %g1 <== NOT EXECUTED
20376b0: 81 c7 e0 08 ret <== NOT EXECUTED
20376b4: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
return -1;
assert(ret == fs_info->fat.vol.bps);
20376b8: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED
20376bc: 02 80 00 2a be 2037764 <msdos_dir_is_empty+0xe0> <== NOT EXECUTED
20376c0: ae 10 00 08 mov %o0, %l7 <== NOT EXECUTED
20376c4: 11 00 81 9a sethi %hi(0x2066800), %o0 <== NOT EXECUTED
20376c8: 15 00 81 9a sethi %hi(0x2066800), %o2 <== NOT EXECUTED
20376cc: 17 00 81 9a sethi %hi(0x2066800), %o3 <== NOT EXECUTED
20376d0: 90 12 20 50 or %o0, 0x50, %o0 <== NOT EXECUTED
20376d4: 94 12 a1 a0 or %o2, 0x1a0, %o2 <== NOT EXECUTED
20376d8: 96 12 e0 c8 or %o3, 0xc8, %o3 <== NOT EXECUTED
20376dc: 7f ff c3 4f call 2028418 <__assert_func> <== NOT EXECUTED
20376e0: 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)) ==
20376e4: ec 0d 40 14 ldub [ %l5 + %l4 ], %l6 <== NOT EXECUTED
20376e8: 80 a5 a0 e5 cmp %l6, 0xe5 <== NOT EXECUTED
20376ec: 02 80 00 15 be 2037740 <msdos_dir_is_empty+0xbc> <== NOT EXECUTED
20376f0: aa 05 40 14 add %l5, %l4, %l5 <== NOT EXECUTED
MSDOS_THIS_DIR_ENTRY_EMPTY) ||
((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) ==
20376f4: c2 0d 60 0b ldub [ %l5 + 0xb ], %g1 <== NOT EXECUTED
20376f8: 82 08 60 3f and %g1, 0x3f, %g1 <== NOT EXECUTED
20376fc: 80 a0 60 0f cmp %g1, 0xf <== NOT EXECUTED
2037700: 22 80 00 1a be,a 2037768 <msdos_dir_is_empty+0xe4> <== NOT EXECUTED
2037704: a8 05 20 20 add %l4, 0x20, %l4 <== NOT EXECUTED
MSDOS_ATTR_LFN) ||
(strncmp(MSDOS_DIR_NAME((entry)), MSDOS_DOT_NAME,
2037708: d2 04 c0 00 ld [ %l3 ], %o1 <== NOT EXECUTED
203770c: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
2037710: 40 00 49 56 call 2049c68 <strncmp> <== NOT EXECUTED
2037714: 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)) ==
2037718: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203771c: 22 80 00 13 be,a 2037768 <msdos_dir_is_empty+0xe4> <== NOT EXECUTED
2037720: 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)),
2037724: d2 04 80 00 ld [ %l2 ], %o1 <== NOT EXECUTED
2037728: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
203772c: 40 00 49 4f call 2049c68 <strncmp> <== NOT EXECUTED
2037730: 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)) ==
2037734: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2037738: 32 80 00 04 bne,a 2037748 <msdos_dir_is_empty+0xc4> <== NOT EXECUTED
203773c: 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)
2037740: 10 80 00 0a b 2037768 <msdos_dir_is_empty+0xe4> <== NOT EXECUTED
2037744: a8 05 20 20 add %l4, 0x20, %l4 <== NOT EXECUTED
continue;
/*
* Nothing more to look at.
*/
if ((*MSDOS_DIR_NAME(entry)) ==
2037748: 80 a5 a0 00 cmp %l6, 0 <== NOT EXECUTED
203774c: 12 80 00 04 bne 203775c <msdos_dir_is_empty+0xd8> <== NOT EXECUTED
2037750: b0 10 20 00 clr %i0 <== NOT EXECUTED
MSDOS_THIS_DIR_ENTRY_AND_REST_EMPTY)
{
*ret_val = true;
2037754: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2037758: c2 2e 80 00 stb %g1, [ %i2 ] <== NOT EXECUTED
return RC_OK;
203775c: 81 c7 e0 08 ret <== NOT EXECUTED
2037760: 81 e8 00 00 restore <== NOT EXECUTED
2037764: 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;
2037768: 80 a5 00 17 cmp %l4, %l7 <== NOT EXECUTED
203776c: 2a bf ff de bcs,a 20376e4 <msdos_dir_is_empty+0x60> <== NOT EXECUTED
2037770: ea 04 20 9c ld [ %l0 + 0x9c ], %l5 <== NOT EXECUTED
/*
* Short file name entries mean not empty.
*/
return RC_OK;
}
j++;
2037774: 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,
2037778: e8 14 00 00 lduh [ %l0 ], %l4 <== NOT EXECUTED
203777c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2037780: 7f ff 2c 9e call 20029f8 <.umul> <== NOT EXECUTED
2037784: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
2037788: d8 04 20 9c ld [ %l0 + 0x9c ], %o4 <== NOT EXECUTED
203778c: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2037790: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2037794: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2037798: 7f ff b6 ff call 2025394 <fat_file_read> <== NOT EXECUTED
203779c: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
20377a0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20377a4: 12 bf ff c1 bne 20376a8 <msdos_dir_is_empty+0x24> <== NOT EXECUTED
20377a8: 80 a2 20 1f cmp %o0, 0x1f <== NOT EXECUTED
*/
return RC_OK;
}
j++;
}
*ret_val = true;
20377ac: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20377b0: b0 10 20 00 clr %i0 <== NOT EXECUTED
20377b4: c2 2e 80 00 stb %g1, [ %i2 ] <== NOT EXECUTED
return RC_OK;
}
20377b8: 81 c7 e0 08 ret <== NOT EXECUTED
20377bc: 81 e8 00 00 restore <== NOT EXECUTED
02041574 <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)
{
2041574: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
switch (whence)
2041578: 84 10 20 00 clr %g2 <== NOT EXECUTED
204157c: 80 a6 e0 01 cmp %i3, 1 <== NOT EXECUTED
2041580: 08 80 00 09 bleu 20415a4 <msdos_dir_lseek+0x30> <== NOT EXECUTED
2041584: 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 );
2041588: 40 00 05 a8 call 2042c28 <__errno> <== NOT EXECUTED
204158c: 01 00 00 00 nop <== NOT EXECUTED
2041590: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
2041594: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED
2041598: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
204159c: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
20415a0: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED
break;
}
return RC_OK;
}
20415a4: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED
20415a8: 81 c7 e0 08 ret <== NOT EXECUTED
20415ac: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
02041d40 <msdos_dir_open>:
* set apropriately)
*/
int
msdos_dir_open(rtems_libio_t *iop, const char *pathname, uint32_t flag,
uint32_t mode)
{
2041d40: 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;
2041d44: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
2041d48: 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;
2041d4c: 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,
2041d50: 92 10 20 00 clr %o1 <== NOT EXECUTED
2041d54: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
2041d58: 94 10 20 00 clr %o2 <== NOT EXECUTED
2041d5c: 7f ff 2b 65 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2041d60: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2041d64: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2041d68: 02 80 00 08 be 2041d88 <msdos_dir_open+0x48> <== NOT EXECUTED
2041d6c: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
2041d70: 40 00 03 ae call 2042c28 <__errno> <== NOT EXECUTED
2041d74: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
2041d78: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2041d7c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2041d80: 81 c7 e0 08 ret <== NOT EXECUTED
2041d84: 81 e8 00 00 restore <== NOT EXECUTED
rc = fat_file_reopen(fat_fd);
2041d88: 7f ff 8b 3e call 2024a80 <fat_file_reopen> <== NOT EXECUTED
2041d8c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2041d90: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
if (rc != RC_OK)
2041d94: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
2041d98: 02 80 00 06 be 2041db0 <msdos_dir_open+0x70> <== NOT EXECUTED
2041d9c: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
2041da0: 7f ff 2b 9b call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2041da4: 01 00 00 00 nop <== NOT EXECUTED
return rc;
2041da8: 81 c7 e0 08 ret <== NOT EXECUTED
2041dac: 81 e8 00 00 restore <== NOT EXECUTED
}
iop->offset = 0;
2041db0: c0 24 20 10 clr [ %l0 + 0x10 ] <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
2041db4: 7f ff 2b 96 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2041db8: c0 24 20 14 clr [ %l0 + 0x14 ] <== NOT EXECUTED
return RC_OK;
}
2041dbc: 81 c7 e0 08 ret <== NOT EXECUTED
2041dc0: 81 e8 00 00 restore <== NOT EXECUTED
020417ac <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)
{
20417ac: 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;
20417b0: 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;
20417b4: 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) &&
20417b8: 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)
{
20417bc: f2 27 a0 48 st %i1, [ %fp + 0x48 ] <== NOT EXECUTED
20417c0: 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) &&
20417c4: 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;
20417c8: 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) &&
20417cc: 12 80 00 0c bne 20417fc <msdos_dir_read+0x50> <== NOT EXECUTED
20417d0: e8 1e 20 10 ldd [ %i0 + 0x10 ], %l4 <== NOT EXECUTED
20417d4: c2 04 60 24 ld [ %l1 + 0x24 ], %g1 <== NOT EXECUTED
20417d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20417dc: 32 80 00 09 bne,a 2041800 <msdos_dir_read+0x54> <== NOT EXECUTED
20417e0: f2 14 e0 06 lduh [ %l3 + 6 ], %i1 <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16))) ?
20417e4: c2 0c e0 0a ldub [ %l3 + 0xa ], %g1 <== NOT EXECUTED
20417e8: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
20417ec: 22 80 00 05 be,a 2041800 <msdos_dir_read+0x54> <== NOT EXECUTED
20417f0: 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) &&
20417f4: 10 80 00 03 b 2041800 <msdos_dir_read+0x54> <== NOT EXECUTED
20417f8: f2 04 60 18 ld [ %l1 + 0x18 ], %i1 <== NOT EXECUTED
20417fc: 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,
2041800: 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;
2041804: 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;
2041808: 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,
204180c: 92 10 20 00 clr %o1 <== NOT EXECUTED
2041810: 7f ff 2c b8 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2041814: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2041818: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
204181c: 12 80 00 17 bne 2041878 <msdos_dir_read+0xcc> <== NOT EXECUTED
2041820: 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);
2041824: 94 10 20 00 clr %o2 <== NOT EXECUTED
2041828: 96 10 21 18 mov 0x118, %o3 <== NOT EXECUTED
204182c: 40 00 68 0a call 205b854 <__divdi3> <== NOT EXECUTED
2041830: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
count = (count / sizeof(struct dirent)) * sizeof(struct dirent);
2041834: 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);
2041838: b6 10 00 09 mov %o1, %i3 <== NOT EXECUTED
count = (count / sizeof(struct dirent)) * sizeof(struct dirent);
204183c: 40 00 66 28 call 205b0dc <.udiv> <== NOT EXECUTED
2041840: 92 10 21 18 mov 0x118, %o1 <== NOT EXECUTED
2041844: 83 2a 20 05 sll %o0, 5, %g1 <== NOT EXECUTED
2041848: 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++));
204184c: 35 00 81 a6 sethi %hi(0x2069800), %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);
2041850: b8 07 00 01 add %i4, %g1, %i4 <== NOT EXECUTED
2041854: ba 10 20 00 clr %i5 <== NOT EXECUTED
2041858: 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++));
204185c: b4 16 a3 c4 or %i2, 0x3c4, %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);
2041860: b8 20 40 1c sub %g1, %i4, %i4 <== NOT EXECUTED
2041864: a8 10 20 00 clr %l4 <== NOT EXECUTED
2041868: b0 10 20 00 clr %i0 <== NOT EXECUTED
204186c: ae 10 3f ff mov -1, %l7 <== NOT EXECUTED
2041870: 10 80 01 01 b 2041c74 <msdos_dir_read+0x4c8> <== NOT EXECUTED
2041874: ac 10 20 00 clr %l6 <== 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);
2041878: 10 80 00 0f b 20418b4 <msdos_dir_read+0x108> <== NOT EXECUTED
204187c: 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),
2041880: d8 04 e0 9c ld [ %l3 + 0x9c ], %o4 <== NOT EXECUTED
2041884: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2041888: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
204188c: 7f ff 8e c2 call 2025394 <fat_file_read> <== NOT EXECUTED
2041890: 96 10 00 19 mov %i1, %o3 <== NOT EXECUTED
bts2rd, fs_info->cl_buf);
if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
2041894: 80 a2 20 1f cmp %o0, 0x1f <== NOT EXECUTED
2041898: 04 80 00 04 ble 20418a8 <msdos_dir_read+0xfc> <== NOT EXECUTED
204189c: d0 27 be cc st %o0, [ %fp + -308 ] <== NOT EXECUTED
20418a0: 10 80 00 f0 b 2041c60 <msdos_dir_read+0x4b4> <== NOT EXECUTED
20418a4: aa 10 20 00 clr %l5 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
20418a8: d0 04 e0 98 ld [ %l3 + 0x98 ], %o0 <== NOT EXECUTED
20418ac: 7f ff 2c d8 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
20418b0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
20418b4: 40 00 04 dd call 2042c28 <__errno> <== NOT EXECUTED
20418b8: 01 00 00 00 nop <== NOT EXECUTED
20418bc: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
20418c0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20418c4: 81 c7 e0 08 ret <== NOT EXECUTED
20418c8: 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)) ==
20418cc: c2 0c 80 15 ldub [ %l2 + %l5 ], %g1 <== NOT EXECUTED
20418d0: 84 88 60 ff andcc %g1, 0xff, %g2 <== NOT EXECUTED
20418d4: 12 80 00 05 bne 20418e8 <msdos_dir_read+0x13c> <== NOT EXECUTED
20418d8: a4 04 80 15 add %l2, %l5, %l2 <== NOT EXECUTED
MSDOS_THIS_DIR_ENTRY_AND_REST_EMPTY)
{
rtems_semaphore_release(fs_info->vol_sema);
20418dc: d0 04 e0 98 ld [ %l3 + 0x98 ], %o0 <== NOT EXECUTED
return cmpltd;
20418e0: 10 80 00 d6 b 2041c38 <msdos_dir_read+0x48c> <== NOT EXECUTED
20418e4: 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)
20418e8: 80 a0 a0 e5 cmp %g2, 0xe5 <== NOT EXECUTED
20418ec: 22 80 00 dd be,a 2041c60 <msdos_dir_read+0x4b4> <== NOT EXECUTED
20418f0: 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) &&
20418f4: c4 0c a0 0b ldub [ %l2 + 0xb ], %g2 <== NOT EXECUTED
20418f8: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED
20418fc: 22 80 00 07 be,a 2041918 <msdos_dir_read+0x16c> <== NOT EXECUTED
2041900: 84 08 a0 3f and %g2, 0x3f, %g2 <== NOT EXECUTED
2041904: 86 08 a0 3f and %g2, 0x3f, %g3 <== NOT EXECUTED
2041908: 80 a0 e0 0f cmp %g3, 0xf <== NOT EXECUTED
204190c: 32 80 00 d5 bne,a 2041c60 <msdos_dir_read+0x4b4> <== NOT EXECUTED
2041910: 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) ==
2041914: 84 08 a0 3f and %g2, 0x3f, %g2 <== NOT EXECUTED
2041918: 80 a0 a0 0f cmp %g2, 0xf <== NOT EXECUTED
204191c: 12 80 00 3e bne 2041a14 <msdos_dir_read+0x268> <== NOT EXECUTED
2041920: 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)
2041924: 80 a5 ff ff cmp %l7, -1 <== NOT EXECUTED
2041928: 32 80 00 0f bne,a 2041964 <msdos_dir_read+0x1b8> <== NOT EXECUTED
204192c: 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) &
2041930: 82 08 60 ff and %g1, 0xff, %g1 <== NOT EXECUTED
2041934: 80 88 60 40 btst 0x40, %g1 <== NOT EXECUTED
2041938: 22 80 00 ca be,a 2041c60 <msdos_dir_read+0x4b4> <== NOT EXECUTED
204193c: aa 05 60 20 add %l5, 0x20, %l5 <== NOT EXECUTED
continue;
/*
* Remember the start location of the long file name.
*/
lfn_start =
2041940: 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) &
2041944: a8 08 60 3f and %g1, 0x3f, %l4 <== NOT EXECUTED
continue;
/*
* Remember the start location of the long file name.
*/
lfn_start =
2041948: 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);
204194c: f0 0c a0 0d ldub [ %l2 + 0xd ], %i0 <== NOT EXECUTED
memset (tmp_dirent.d_name, 0, sizeof(tmp_dirent.d_name));
2041950: 90 07 be e4 add %fp, -284, %o0 <== NOT EXECUTED
2041954: 92 10 20 00 clr %o1 <== NOT EXECUTED
2041958: 40 00 12 93 call 20463a4 <memset> <== NOT EXECUTED
204195c: 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) &
2041960: c2 0c 80 00 ldub [ %l2 ], %g1 <== NOT EXECUTED
2041964: 82 08 60 3f and %g1, 0x3f, %g1 <== NOT EXECUTED
2041968: 80 a5 00 01 cmp %l4, %g1 <== NOT EXECUTED
204196c: 32 80 00 bc bne,a 2041c5c <msdos_dir_read+0x4b0> <== NOT EXECUTED
2041970: ae 10 3f ff mov -1, %l7 <== NOT EXECUTED
MSDOS_LAST_LONG_ENTRY_MASK)) ||
(lfn_checksum != *MSDOS_DIR_LFN_CHECKSUM(entry)))
2041974: c2 0c a0 0d ldub [ %l2 + 0xd ], %g1 <== NOT EXECUTED
2041978: 84 0e 20 ff and %i0, 0xff, %g2 <== NOT EXECUTED
204197c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2041980: 32 80 00 b7 bne,a 2041c5c <msdos_dir_read+0x4b0> <== NOT EXECUTED
2041984: 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--;
2041988: a8 05 3f ff add %l4, -1, %l4 <== NOT EXECUTED
p = entry + 1;
o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;
204198c: 83 2d 20 02 sll %l4, 2, %g1 <== NOT EXECUTED
2041990: 85 2d 20 04 sll %l4, 4, %g2 <== NOT EXECUTED
2041994: 88 07 be d0 add %fp, -304, %g4 <== NOT EXECUTED
2041998: 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;
204199c: a4 04 a0 01 inc %l2 <== NOT EXECUTED
o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;
20419a0: 84 00 80 14 add %g2, %l4, %g2 <== NOT EXECUTED
20419a4: 82 10 20 00 clr %g1 <== NOT EXECUTED
20419a8: 86 01 00 02 add %g4, %g2, %g3 <== NOT EXECUTED
20419ac: 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))
20419b0: 80 a0 a0 fe cmp %g2, 0xfe <== NOT EXECUTED
20419b4: 38 80 00 ab bgu,a 2041c60 <msdos_dir_read+0x4b4> <== NOT EXECUTED
20419b8: aa 05 60 20 add %l5, 0x20, %l5 <== NOT EXECUTED
break;
tmp_dirent.d_name[o++] = *p;
20419bc: c8 0c 80 00 ldub [ %l2 ], %g4 <== NOT EXECUTED
20419c0: c8 28 c0 00 stb %g4, [ %g3 ] <== NOT EXECUTED
if (*p == '\0')
20419c4: c8 4c 80 00 ldsb [ %l2 ], %g4 <== NOT EXECUTED
20419c8: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED
20419cc: 02 80 00 a4 be 2041c5c <msdos_dir_read+0x4b0> <== NOT EXECUTED
20419d0: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED
break;
switch (q)
20419d4: 02 80 00 06 be 20419ec <msdos_dir_read+0x240> <== NOT EXECUTED
20419d8: 80 a0 60 0a cmp %g1, 0xa <== NOT EXECUTED
20419dc: 32 80 00 08 bne,a 20419fc <msdos_dir_read+0x250> <== NOT EXECUTED
20419e0: a4 04 a0 02 add %l2, 2, %l2 <== NOT EXECUTED
{
case 4:
p += 5;
break;
case 10:
p += 4;
20419e4: 10 80 00 04 b 20419f4 <msdos_dir_read+0x248> <== NOT EXECUTED
20419e8: a4 04 a0 04 add %l2, 4, %l2 <== NOT EXECUTED
switch (q)
{
case 4:
p += 5;
break;
20419ec: 10 80 00 04 b 20419fc <msdos_dir_read+0x250> <== NOT EXECUTED
20419f0: a4 04 a0 05 add %l2, 5, %l2 <== NOT EXECUTED
case 10:
p += 4;
break;
20419f4: 10 80 00 03 b 2041a00 <msdos_dir_read+0x254> <== NOT EXECUTED
20419f8: 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++)
20419fc: 82 00 60 01 inc %g1 <== NOT EXECUTED
2041a00: 80 a0 60 0d cmp %g1, 0xd <== NOT EXECUTED
2041a04: 02 80 00 96 be 2041c5c <msdos_dir_read+0x4b0> <== NOT EXECUTED
2041a08: 86 00 e0 01 inc %g3 <== NOT EXECUTED
{
if (o >= (sizeof(tmp_dirent.d_name) - 1))
break;
tmp_dirent.d_name[o++] = *p;
2041a0c: 10 bf ff e9 b 20419b0 <msdos_dir_read+0x204> <== NOT EXECUTED
2041a10: 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)
2041a14: 22 80 00 04 be,a 2041a24 <msdos_dir_read+0x278> <== NOT EXECUTED
2041a18: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
{
lfn_start = FAT_FILE_SHORT_NAME;
start--;
2041a1c: 10 80 00 8f b 2041c58 <msdos_dir_read+0x4ac> <== NOT EXECUTED
2041a20: 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,
2041a24: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2041a28: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
2041a2c: 96 10 00 1d mov %i5, %o3 <== NOT EXECUTED
2041a30: 7f ff 8c ce call 2024d68 <fat_file_ioctl> <== NOT EXECUTED
2041a34: 98 07 bf f8 add %fp, -8, %o4 <== NOT EXECUTED
j * bts2rd, &cur_cln);
if (rc != RC_OK)
2041a38: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2041a3c: 12 80 00 7d bne 2041c30 <msdos_dir_read+0x484> <== NOT EXECUTED
2041a40: 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);
2041a44: 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;
2041a48: 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;
2041a4c: c2 27 bf e8 st %g1, [ %fp + -24 ] <== NOT EXECUTED
2041a50: da 27 bf f0 st %o5, [ %fp + -16 ] <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
2041a54: da 27 bf f4 st %o5, [ %fp + -12 ] <== NOT EXECUTED
dir_pos.sname.ofs = i;
2041a58: ea 27 bf ec st %l5, [ %fp + -20 ] <== NOT EXECUTED
rc = fat_file_open(iop->pathinfo.mt_entry, &dir_pos, &tmp_fat_fd);
2041a5c: 92 07 bf e8 add %fp, -24, %o1 <== NOT EXECUTED
2041a60: 7f ff 8e fd call 2025654 <fat_file_open> <== NOT EXECUTED
2041a64: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
if (rc != RC_OK)
2041a68: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2041a6c: 12 80 00 71 bne 2041c30 <msdos_dir_read+0x484> <== NOT EXECUTED
2041a70: 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;
2041a74: c0 27 be d8 clr [ %fp + -296 ] <== NOT EXECUTED
tmp_dirent.d_reclen = sizeof(struct dirent);
tmp_dirent.d_ino = tmp_fat_fd->ino;
2041a78: 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;
2041a7c: 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;
2041a80: 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);
2041a84: 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)
2041a88: 80 a5 ff ff cmp %l7, -1 <== NOT EXECUTED
2041a8c: 02 80 00 1e be 2041b04 <msdos_dir_read+0x358> <== NOT EXECUTED
2041a90: c2 37 be e0 sth %g1, [ %fp + -288 ] <== NOT EXECUTED
2041a94: 82 10 20 00 clr %g1 <== NOT EXECUTED
2041a98: 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;
2041a9c: c6 0c 80 01 ldub [ %l2 + %g1 ], %g3 <== NOT EXECUTED
2041aa0: 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++)
2041aa4: 82 00 60 01 inc %g1 <== NOT EXECUTED
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
2041aa8: 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++)
2041aac: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
2041ab0: 86 01 00 03 add %g4, %g3, %g3 <== NOT EXECUTED
2041ab4: 84 08 a0 01 and %g2, 1, %g2 <== NOT EXECUTED
2041ab8: 84 20 00 02 neg %g2 <== NOT EXECUTED
2041abc: 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++)
2041ac0: 12 bf ff f7 bne 2041a9c <msdos_dir_read+0x2f0> <== NOT EXECUTED
2041ac4: 84 00 c0 02 add %g3, %g2, %g2 <== NOT EXECUTED
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
if (lfn_entries || (lfn_checksum != cs))
2041ac8: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
2041acc: 82 0e 20 ff and %i0, 0xff, %g1 <== NOT EXECUTED
2041ad0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2041ad4: 12 80 00 0d bne 2041b08 <msdos_dir_read+0x35c> <== NOT EXECUTED
2041ad8: 84 10 20 08 mov 8, %g2 <== NOT EXECUTED
2041adc: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED
2041ae0: 12 80 00 0b bne 2041b0c <msdos_dir_read+0x360> <== NOT EXECUTED
2041ae4: 82 04 80 02 add %l2, %g2, %g1 <== NOT EXECUTED
2041ae8: 30 80 00 6b b,a 2041c94 <msdos_dir_read+0x4e8> <== NOT EXECUTED
const char *src_tmp;
/*
* find last non-blank character of base name
*/
for ((i = MSDOS_SHORT_BASE_LEN ,
2041aec: 32 80 00 08 bne,a 2041b0c <msdos_dir_read+0x360> <== NOT EXECUTED
2041af0: 82 04 80 02 add %l2, %g2, %g1 <== NOT EXECUTED
2041af4: 9a 10 00 02 mov %g2, %o5 <== NOT EXECUTED
2041af8: 86 10 20 00 clr %g3 <== NOT EXECUTED
2041afc: 10 80 00 15 b 2041b50 <msdos_dir_read+0x3a4> <== NOT EXECUTED
2041b00: 82 07 be e4 add %fp, -284, %g1 <== NOT EXECUTED
2041b04: 84 10 20 08 mov 8, %g2 <== NOT EXECUTED
2041b08: 82 04 80 02 add %l2, %g2, %g1 <== NOT EXECUTED
2041b0c: c2 48 7f ff ldsb [ %g1 + -1 ], %g1 <== NOT EXECUTED
2041b10: 80 a0 60 20 cmp %g1, 0x20 <== NOT EXECUTED
2041b14: 22 bf ff f6 be,a 2041aec <msdos_dir_read+0x340> <== NOT EXECUTED
2041b18: 84 80 bf ff addcc %g2, -1, %g2 <== NOT EXECUTED
2041b1c: 10 bf ff f7 b 2041af8 <msdos_dir_read+0x34c> <== NOT EXECUTED
2041b20: 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++));
2041b24: d6 06 80 00 ld [ %i2 ], %o3 <== NOT EXECUTED
2041b28: 88 10 00 0c mov %o4, %g4 <== NOT EXECUTED
2041b2c: 98 02 c0 0c add %o3, %o4, %o4 <== NOT EXECUTED
2041b30: d8 0b 20 01 ldub [ %o4 + 1 ], %o4 <== NOT EXECUTED
2041b34: 98 0b 20 03 and %o4, 3, %o4 <== NOT EXECUTED
2041b38: 80 a3 20 01 cmp %o4, 1 <== NOT EXECUTED
2041b3c: 12 80 00 03 bne 2041b48 <msdos_dir_read+0x39c> <== NOT EXECUTED
2041b40: 86 00 e0 01 inc %g3 <== NOT EXECUTED
2041b44: 88 01 20 20 add %g4, 0x20, %g4 <== NOT EXECUTED
2041b48: c8 28 40 00 stb %g4, [ %g1 ] <== NOT EXECUTED
2041b4c: 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)
2041b50: 88 20 80 03 sub %g2, %g3, %g4 <== NOT EXECUTED
/*
* copy base name to destination
*/
src_tmp = src;
len = i;
while (i-- > 0) {
2041b54: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED
2041b58: 34 bf ff f3 bg,a 2041b24 <msdos_dir_read+0x378> <== NOT EXECUTED
2041b5c: 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 ,
2041b60: c6 4c a0 0a ldsb [ %l2 + 0xa ], %g3 <== NOT EXECUTED
2041b64: 88 10 20 03 mov 3, %g4 <== NOT EXECUTED
2041b68: 80 a0 e0 20 cmp %g3, 0x20 <== NOT EXECUTED
2041b6c: 12 80 00 4f bne 2041ca8 <msdos_dir_read+0x4fc> <== NOT EXECUTED
2041b70: 86 10 20 03 mov 3, %g3 <== NOT EXECUTED
2041b74: 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--)
2041b78: 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 ,
2041b7c: 80 a0 e0 20 cmp %g3, 0x20 <== NOT EXECUTED
2041b80: 88 10 20 02 mov 2, %g4 <== NOT EXECUTED
2041b84: 12 80 00 49 bne 2041ca8 <msdos_dir_read+0x4fc> <== NOT EXECUTED
2041b88: 86 10 20 02 mov 2, %g3 <== NOT EXECUTED
2041b8c: c6 4b 3f ff ldsb [ %o4 + -1 ], %g3 <== NOT EXECUTED
2041b90: 80 a0 e0 20 cmp %g3, 0x20 <== NOT EXECUTED
2041b94: 22 80 00 16 be,a 2041bec <msdos_dir_read+0x440> <== NOT EXECUTED
2041b98: 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);
2041b9c: 10 80 00 42 b 2041ca4 <msdos_dir_read+0x4f8> <== NOT EXECUTED
2041ba0: 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++));
2041ba4: d8 0b 20 08 ldub [ %o4 + 8 ], %o4 <== NOT EXECUTED
2041ba8: d6 06 80 00 ld [ %i2 ], %o3 <== NOT EXECUTED
2041bac: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED
2041bb0: 98 02 c0 0c add %o3, %o4, %o4 <== NOT EXECUTED
2041bb4: d8 0b 20 01 ldub [ %o4 + 1 ], %o4 <== NOT EXECUTED
2041bb8: 98 0b 20 03 and %o4, 3, %o4 <== NOT EXECUTED
2041bbc: 80 a3 20 01 cmp %o4, 1 <== NOT EXECUTED
2041bc0: 12 80 00 03 bne 2041bcc <msdos_dir_read+0x420> <== NOT EXECUTED
2041bc4: 86 00 e0 01 inc %g3 <== NOT EXECUTED
2041bc8: 9a 03 60 20 add %o5, 0x20, %o5 <== NOT EXECUTED
2041bcc: da 28 40 00 stb %o5, [ %g1 ] <== NOT EXECUTED
2041bd0: 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)
2041bd4: 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++));
2041bd8: 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) {
2041bdc: 80 a3 60 00 cmp %o5, 0 <== NOT EXECUTED
2041be0: 14 bf ff f1 bg 2041ba4 <msdos_dir_read+0x3f8> <== NOT EXECUTED
2041be4: 9a 00 c0 02 add %g3, %g2, %o5 <== NOT EXECUTED
*dst++ = tolower((unsigned char)(*src_tmp++));
len++;
}
}
*dst = '\0'; /* terminate string */
2041be8: 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(
2041bec: da 37 be e2 sth %o5, [ %fp + -286 ] <== NOT EXECUTED
2041bf0: 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));
2041bf4: c8 07 a0 48 ld [ %fp + 0x48 ], %g4 <== NOT EXECUTED
2041bf8: 92 07 be d0 add %fp, -304, %o1 <== NOT EXECUTED
2041bfc: 94 10 21 18 mov 0x118, %o2 <== NOT EXECUTED
2041c00: 40 00 11 56 call 2046158 <memcpy> <== NOT EXECUTED
2041c04: 90 01 00 16 add %g4, %l6, %o0 <== NOT EXECUTED
iop->offset = iop->offset + sizeof(struct dirent);
2041c08: 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);
2041c0c: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
2041c10: 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);
2041c14: 86 80 e1 18 addcc %g3, 0x118, %g3 <== NOT EXECUTED
2041c18: 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);
2041c1c: 7f ff 8e 5f call 2025598 <fat_file_close> <== NOT EXECUTED
2041c20: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] <== NOT EXECUTED
if (rc != RC_OK)
2041c24: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2041c28: 22 80 00 08 be,a 2041c48 <msdos_dir_read+0x49c> <== NOT EXECUTED
2041c2c: b8 87 3e e8 addcc %i4, -280, %i4 <== NOT EXECUTED
2041c30: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
2041c34: d0 04 e0 98 ld [ %l3 + 0x98 ], %o0 <== NOT EXECUTED
2041c38: 7f ff 2b f5 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2041c3c: 01 00 00 00 nop <== NOT EXECUTED
return rc;
2041c40: 81 c7 e0 08 ret <== NOT EXECUTED
2041c44: 81 e8 00 00 restore <== NOT EXECUTED
}
}
if (count <= 0)
2041c48: 12 80 00 05 bne 2041c5c <msdos_dir_read+0x4b0> <== NOT EXECUTED
2041c4c: 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)
2041c50: 10 80 00 09 b 2041c74 <msdos_dir_read+0x4c8> <== NOT EXECUTED
2041c54: ba 07 40 19 add %i5, %i1, %i5 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
}
if (count <= 0)
2041c58: 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)
2041c5c: aa 05 60 20 add %l5, 0x20, %l5 <== NOT EXECUTED
2041c60: da 07 be cc ld [ %fp + -308 ], %o5 <== NOT EXECUTED
2041c64: 80 a5 40 0d cmp %l5, %o5 <== NOT EXECUTED
2041c68: 2a bf ff 19 bcs,a 20418cc <msdos_dir_read+0x120> <== NOT EXECUTED
2041c6c: e4 04 e0 9c ld [ %l3 + 0x9c ], %l2 <== NOT EXECUTED
2041c70: 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)
2041c74: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED
2041c78: 32 bf ff 02 bne,a 2041880 <msdos_dir_read+0xd4> <== NOT EXECUTED
2041c7c: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
break;
}
j++;
}
rtems_semaphore_release(fs_info->vol_sema);
2041c80: d0 04 e0 98 ld [ %l3 + 0x98 ], %o0 <== NOT EXECUTED
2041c84: 7f ff 2b e2 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2041c88: b0 10 00 16 mov %l6, %i0 <== NOT EXECUTED
return cmpltd;
}
2041c8c: 81 c7 e0 08 ret <== NOT EXECUTED
2041c90: 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);
2041c94: 40 00 1f 8d call 2049ac8 <strlen> <== NOT EXECUTED
2041c98: 90 07 be e4 add %fp, -284, %o0 <== NOT EXECUTED
2041c9c: 10 bf ff d6 b 2041bf4 <msdos_dir_read+0x448> <== NOT EXECUTED
2041ca0: d0 37 be e2 sth %o0, [ %fp + -286 ] <== NOT EXECUTED
2041ca4: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED
{};
/*
* extension is not empty
*/
if (i > 0) {
*dst++ = '.'; /* append dot */
2041ca8: 9a 10 20 2e mov 0x2e, %o5 <== NOT EXECUTED
len += i + 1; /* extension + dot */
2041cac: 84 00 a0 01 inc %g2 <== NOT EXECUTED
{};
/*
* extension is not empty
*/
if (i > 0) {
*dst++ = '.'; /* append dot */
2041cb0: da 28 40 00 stb %o5, [ %g1 ] <== NOT EXECUTED
len += i + 1; /* extension + dot */
2041cb4: 84 00 80 03 add %g2, %g3, %g2 <== NOT EXECUTED
{};
/*
* extension is not empty
*/
if (i > 0) {
*dst++ = '.'; /* append dot */
2041cb8: 82 00 60 01 inc %g1 <== NOT EXECUTED
len += i + 1; /* extension + dot */
2041cbc: 10 bf ff c6 b 2041bd4 <msdos_dir_read+0x428> <== NOT EXECUTED
2041cc0: 86 10 20 00 clr %g3 <== NOT EXECUTED
0204164c <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)
{
204164c: 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;
2041650: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = pathloc->node_access;
bool is_empty = false;
2041654: 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;
2041658: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
fat_file_fd_t *fat_fd = pathloc->node_access;
204165c: e2 06 40 00 ld [ %i1 ], %l1 <== NOT EXECUTED
bool is_empty = false;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
2041660: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
2041664: 92 10 20 00 clr %o1 <== NOT EXECUTED
2041668: 7f ff 2d 22 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
204166c: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2041670: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2041674: 22 80 00 06 be,a 204168c <msdos_dir_rmnod+0x40> <== NOT EXECUTED
2041678: c2 04 60 08 ld [ %l1 + 8 ], %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
204167c: 40 00 05 6b call 2042c28 <__errno> <== NOT EXECUTED
2041680: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2041684: 10 80 00 20 b 2041704 <msdos_dir_rmnod+0xb8> <== NOT EXECUTED
2041688: 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)
204168c: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2041690: 18 80 00 17 bgu 20416ec <msdos_dir_rmnod+0xa0> <== NOT EXECUTED
2041694: 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);
2041698: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
204169c: 7f ff d7 fa call 2037684 <msdos_dir_is_empty> <== NOT EXECUTED
20416a0: 94 07 bf ff add %fp, -1, %o2 <== NOT EXECUTED
if (rc != RC_OK)
20416a4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20416a8: 12 80 00 1f bne 2041724 <msdos_dir_rmnod+0xd8> <== NOT EXECUTED
20416ac: c2 0f bf ff ldub [ %fp + -1 ], %g1 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
if (!is_empty)
20416b0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20416b4: 32 80 00 09 bne,a 20416d8 <msdos_dir_rmnod+0x8c> <== NOT EXECUTED
20416b8: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
20416bc: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
20416c0: 7f ff 2d 53 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
20416c4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOTEMPTY);
20416c8: 40 00 05 58 call 2042c28 <__errno> <== NOT EXECUTED
20416cc: 01 00 00 00 nop <== NOT EXECUTED
20416d0: 10 80 00 0d b 2041704 <msdos_dir_rmnod+0xb8> <== NOT EXECUTED
20416d4: 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)
20416d8: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
20416dc: c4 02 20 1c ld [ %o0 + 0x1c ], %g2 <== NOT EXECUTED
20416e0: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
20416e4: 12 80 00 0b bne 2041710 <msdos_dir_rmnod+0xc4> <== NOT EXECUTED
20416e8: 92 04 60 20 add %l1, 0x20, %o1 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
20416ec: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
20416f0: 7f ff 2d 47 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
20416f4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EBUSY);
20416f8: 40 00 05 4c call 2042c28 <__errno> <== NOT EXECUTED
20416fc: 01 00 00 00 nop <== NOT EXECUTED
2041700: 82 10 20 10 mov 0x10, %g1 ! 10 <PROM_START+0x10> <== NOT EXECUTED
2041704: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2041708: 81 c7 e0 08 ret <== NOT EXECUTED
204170c: 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,
2041710: 7f ff d8 91 call 2037954 <msdos_set_first_char4file_name> <== NOT EXECUTED
2041714: 94 10 20 e5 mov 0xe5, %o2 <== NOT EXECUTED
MSDOS_THIS_DIR_ENTRY_EMPTY);
if (rc != RC_OK)
2041718: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
204171c: 22 80 00 06 be,a 2041734 <msdos_dir_rmnod+0xe8> <== NOT EXECUTED
2041720: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
2041724: 7f ff 2d 3a call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2041728: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
204172c: 81 c7 e0 08 ret <== NOT EXECUTED
2041730: 81 e8 00 00 restore <== NOT EXECUTED
}
fat_file_mark_removed(pathloc->mt_entry, fat_fd);
2041734: 7f ff 8d 78 call 2024d14 <fat_file_mark_removed> <== NOT EXECUTED
2041738: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
204173c: 7f ff 2d 34 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2041740: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
}
2041744: 81 c7 e0 08 ret <== NOT EXECUTED
2041748: 81 e8 00 00 restore <== NOT EXECUTED
020415b0 <msdos_dir_stat>:
int
msdos_dir_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
20415b0: 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;
20415b4: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = loc->node_access;
20415b8: 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;
20415bc: 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,
20415c0: 92 10 20 00 clr %o1 <== NOT EXECUTED
20415c4: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
20415c8: 7f ff 2d 4a call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
20415cc: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
20415d0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20415d4: 22 80 00 08 be,a 20415f4 <msdos_dir_stat+0x44> <== NOT EXECUTED
20415d8: c2 04 60 0c ld [ %l1 + 0xc ], %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
20415dc: 40 00 05 93 call 2042c28 <__errno> <== NOT EXECUTED
20415e0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20415e4: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
20415e8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20415ec: 81 c7 e0 08 ret <== NOT EXECUTED
20415f0: 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;
20415f4: 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;
20415f8: c2 26 60 08 st %g1, [ %i1 + 8 ] <== NOT EXECUTED
buf->st_mode = S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO;
20415fc: 03 00 00 10 sethi %hi(0x4000), %g1 <== NOT EXECUTED
2041600: 82 10 61 ff or %g1, 0x1ff, %g1 ! 41ff <PROM_START+0x41ff> <== NOT EXECUTED
2041604: c2 26 60 0c st %g1, [ %i1 + 0xc ] <== NOT EXECUTED
buf->st_rdev = 0ll;
buf->st_size = fat_fd->fat_file_size;
2041608: 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;
204160c: 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;
2041610: 85 30 60 09 srl %g1, 9, %g2 <== NOT EXECUTED
2041614: c4 26 60 44 st %g2, [ %i1 + 0x44 ] <== NOT EXECUTED
buf->st_blksize = fs_info->fat.vol.bps;
buf->st_mtime = fat_fd->mtime;
2041618: 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;
204161c: 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;
2041620: c8 26 60 30 st %g4, [ %i1 + 0x30 ] <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
2041624: 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;
2041628: 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;
204162c: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED
2041630: c0 26 60 1c clr [ %i1 + 0x1c ] <== NOT EXECUTED
buf->st_size = fat_fd->fat_file_size;
2041634: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED
2041638: 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);
204163c: 7f ff 2d 74 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2041640: b0 10 20 00 clr %i0 <== NOT EXECUTED
return RC_OK;
}
2041644: 81 c7 e0 08 ret <== NOT EXECUTED
2041648: 81 e8 00 00 restore <== NOT EXECUTED
0204174c <msdos_dir_sync>:
* RETURNS:
* RC_OK on success, or -1 if error occured (errno set apropriately).
*/
int
msdos_dir_sync(rtems_libio_t *iop)
{
204174c: 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;
2041750: 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;
2041754: e2 06 20 3c ld [ %i0 + 0x3c ], %l1 <== NOT EXECUTED
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
2041758: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
204175c: 92 10 20 00 clr %o1 <== NOT EXECUTED
2041760: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
2041764: 7f ff 2c e3 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2041768: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
204176c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2041770: 22 80 00 08 be,a 2041790 <msdos_dir_sync+0x44> <== NOT EXECUTED
2041774: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2041778: 40 00 05 2c call 2042c28 <__errno> <== NOT EXECUTED
204177c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2041780: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2041784: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2041788: 81 c7 e0 08 ret <== NOT EXECUTED
204178c: 81 e8 00 00 restore <== NOT EXECUTED
rc = fat_file_datasync(iop->pathinfo.mt_entry, fat_fd);
2041790: 7f ff 8d 19 call 2024bf4 <fat_file_datasync> <== NOT EXECUTED
2041794: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2041798: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
204179c: 7f ff 2d 1c call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
20417a0: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
}
20417a4: 81 c7 e0 08 ret <== NOT EXECUTED
20417a8: 81 e8 00 00 restore <== NOT EXECUTED
020361dc <msdos_eval4make>:
msdos_eval4make(
const char *path,
rtems_filesystem_location_info_t *pathloc,
const char **name
)
{
20361dc: 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;
20361e0: 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,
20361e4: 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;
20361e8: 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,
20361ec: 94 10 20 00 clr %o2 <== NOT EXECUTED
20361f0: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
20361f4: 7f ff 5a 3f call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
20361f8: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
20361fc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2036200: 22 80 00 08 be,a 2036220 <msdos_eval4make+0x44> <== NOT EXECUTED
2036204: d0 06 40 00 ld [ %i1 ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2036208: 40 00 32 88 call 2042c28 <__errno> <== NOT EXECUTED
203620c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2036210: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2036214: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2036218: 81 c7 e0 08 ret <== NOT EXECUTED
203621c: 81 e8 00 00 restore <== NOT EXECUTED
if (!pathloc->node_access)
2036220: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2036224: 12 80 00 07 bne 2036240 <msdos_eval4make+0x64> <== NOT EXECUTED
2036228: 01 00 00 00 nop <== NOT EXECUTED
{
errno = ENOENT;
203622c: 40 00 32 7f call 2042c28 <__errno> <== NOT EXECUTED
2036230: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
2036234: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED
rc = -1;
goto err;
2036238: 10 80 00 9b b 20364a4 <msdos_eval4make+0x2c8> <== NOT EXECUTED
203623c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
fat_fd = pathloc->node_access;
rc = fat_file_reopen(fat_fd);
2036240: 7f ff ba 10 call 2024a80 <fat_file_reopen> <== NOT EXECUTED
2036244: 01 00 00 00 nop <== NOT EXECUTED
if (rc != RC_OK)
2036248: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203624c: 12 80 00 96 bne 20364a4 <msdos_eval4make+0x2c8> <== NOT EXECUTED
2036250: 2b 00 81 a5 sethi %hi(0x2069400), %l5 <== NOT EXECUTED
2036254: 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)
2036258: aa 15 60 34 or %l5, 0x34, %l5 <== NOT EXECUTED
if (rc != RC_OK)
goto err;
while (!done)
{
type = msdos_get_token(&path[i], strlen(&path[i]), &token, &token_len);
203625c: a8 07 bf f8 add %fp, -8, %l4 <== NOT EXECUTED
2036260: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED
2036264: ac 04 40 12 add %l1, %l2, %l6 <== NOT EXECUTED
2036268: 40 00 4e 18 call 2049ac8 <strlen> <== NOT EXECUTED
203626c: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
2036270: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
2036274: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
2036278: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
203627c: 40 00 06 67 call 2037c18 <msdos_get_token> <== NOT EXECUTED
2036280: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
i += token_len;
2036284: 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);
2036288: ae 10 00 08 mov %o0, %l7 <== NOT EXECUTED
i += token_len;
fat_fd = pathloc->node_access;
switch (type)
203628c: 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;
2036290: a4 04 80 0a add %l2, %o2, %l2 <== NOT EXECUTED
fat_fd = pathloc->node_access;
switch (type)
2036294: 02 80 00 0f be 20362d0 <msdos_eval4make+0xf4> <== NOT EXECUTED
2036298: ec 06 40 00 ld [ %i1 ], %l6 <== NOT EXECUTED
203629c: 80 a2 20 02 cmp %o0, 2 <== NOT EXECUTED
20362a0: 18 80 00 07 bgu 20362bc <msdos_eval4make+0xe0> <== NOT EXECUTED
20362a4: 80 a2 20 03 cmp %o0, 3 <== NOT EXECUTED
20362a8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20362ac: 02 80 00 4f be 20363e8 <msdos_eval4make+0x20c> <== NOT EXECUTED
20362b0: 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);
20362b4: 10 bf ff ed b 2036268 <msdos_eval4make+0x8c> <== NOT EXECUTED
20362b8: ac 04 40 12 add %l1, %l2, %l6 <== NOT EXECUTED
i += token_len;
fat_fd = pathloc->node_access;
switch (type)
20362bc: 02 80 00 3c be 20363ac <msdos_eval4make+0x1d0> <== NOT EXECUTED
20362c0: 80 a2 20 04 cmp %o0, 4 <== NOT EXECUTED
20362c4: 32 bf ff e9 bne,a 2036268 <msdos_eval4make+0x8c> <== NOT EXECUTED
20362c8: ac 04 40 12 add %l1, %l2, %l6 <== NOT EXECUTED
20362cc: 30 80 00 4b b,a 20363f8 <msdos_eval4make+0x21c> <== NOT EXECUTED
{
case MSDOS_UP_DIR:
/*
* Only a directory can be decended into.
*/
if (fat_fd->fat_file_type != FAT_DIRECTORY)
20362d0: c2 05 a0 10 ld [ %l6 + 0x10 ], %g1 <== NOT EXECUTED
20362d4: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
20362d8: 12 80 00 63 bne 2036464 <msdos_eval4make+0x288> <== NOT EXECUTED
20362dc: 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)
20362e0: d2 06 60 10 ld [ %i1 + 0x10 ], %o1 <== NOT EXECUTED
}
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
20362e4: c2 02 60 1c ld [ %o1 + 0x1c ], %g1 <== NOT EXECUTED
20362e8: 80 a5 80 01 cmp %l6, %g1 <== NOT EXECUTED
20362ec: 32 80 00 22 bne,a 2036374 <msdos_eval4make+0x198> <== NOT EXECUTED
20362f0: 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)
20362f4: c2 05 40 00 ld [ %l5 ], %g1 <== NOT EXECUTED
20362f8: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED
20362fc: 80 a5 80 01 cmp %l6, %g1 <== NOT EXECUTED
2036300: 22 bf ff da be,a 2036268 <msdos_eval4make+0x8c> <== NOT EXECUTED
2036304: 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;
2036308: 92 02 60 08 add %o1, 8, %o1 <== NOT EXECUTED
203630c: a6 07 bf e4 add %fp, -28, %l3 <== NOT EXECUTED
2036310: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
2036314: 40 00 3f 91 call 2046158 <memcpy> <== NOT EXECUTED
2036318: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
*pathloc = newloc;
203631c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2036320: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
2036324: 40 00 3f 8d call 2046158 <memcpy> <== NOT EXECUTED
2036328: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
rc = fat_file_close(pathloc->mt_entry, fat_fd);
203632c: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
2036330: 7f ff bc 9a call 2025598 <fat_file_close> <== NOT EXECUTED
2036334: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
if (rc != RC_OK)
2036338: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203633c: 12 80 00 5a bne 20364a4 <msdos_eval4make+0x2c8> <== NOT EXECUTED
2036340: 01 00 00 00 nop <== NOT EXECUTED
goto err;
rtems_semaphore_release(fs_info->vol_sema);
2036344: 7f ff 5a 32 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2036348: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return (*pathloc->ops->evalformake_h)(&path[i-token_len],
203634c: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
2036350: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED
2036354: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED
2036358: a4 24 80 02 sub %l2, %g2, %l2 <== NOT EXECUTED
203635c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2036360: 90 04 40 12 add %l1, %l2, %o0 <== NOT EXECUTED
2036364: 9f c0 40 00 call %g1 <== NOT EXECUTED
2036368: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
203636c: 81 c7 e0 08 ret <== NOT EXECUTED
2036370: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
pathloc, name);
}
}
else
{
rc = msdos_find_name(pathloc, token, token_len);
2036374: 40 00 07 d0 call 20382b4 <msdos_find_name> <== NOT EXECUTED
2036378: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
if (rc != RC_OK)
203637c: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
2036380: 22 bf ff ba be,a 2036268 <msdos_eval4make+0x8c> <== NOT EXECUTED
2036384: ac 04 40 12 add %l1, %l2, %l6 <== NOT EXECUTED
{
if (rc == MSDOS_NAME_NOT_FOUND_ERR)
2036388: 03 00 00 1f sethi %hi(0x7c00), %g1 <== NOT EXECUTED
203638c: 82 10 61 01 or %g1, 0x101, %g1 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
2036390: 80 a7 40 01 cmp %i5, %g1 <== NOT EXECUTED
2036394: 32 80 00 41 bne,a 2036498 <msdos_eval4make+0x2bc> <== NOT EXECUTED
2036398: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
{
errno = ENOENT;
203639c: 40 00 32 23 call 2042c28 <__errno> <== NOT EXECUTED
20363a0: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
20363a4: 10 80 00 3c b 2036494 <msdos_eval4make+0x2b8> <== NOT EXECUTED
20363a8: 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)
20363ac: c2 05 a0 10 ld [ %l6 + 0x10 ], %g1 <== NOT EXECUTED
20363b0: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
20363b4: 12 80 00 2c bne 2036464 <msdos_eval4make+0x288> <== NOT EXECUTED
20363b8: 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);
20363bc: 40 00 07 be call 20382b4 <msdos_find_name> <== NOT EXECUTED
20363c0: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
if (rc)
20363c4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20363c8: 22 bf ff a8 be,a 2036268 <msdos_eval4make+0x8c> <== NOT EXECUTED
20363cc: ac 04 40 12 add %l1, %l2, %l6 <== NOT EXECUTED
{
if (rc != MSDOS_NAME_NOT_FOUND_ERR)
20363d0: 03 00 00 1f sethi %hi(0x7c00), %g1 <== NOT EXECUTED
20363d4: 82 10 61 01 or %g1, 0x101, %g1 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
20363d8: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED
20363dc: 22 80 00 0b be,a 2036408 <msdos_eval4make+0x22c> <== NOT EXECUTED
20363e0: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
20363e4: 30 80 00 13 b,a 2036430 <msdos_eval4make+0x254> <== NOT EXECUTED
done = true;
}
break;
case MSDOS_NO_MORE_PATH:
errno = EEXIST;
20363e8: 40 00 32 10 call 2042c28 <__errno> <== NOT EXECUTED
20363ec: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
20363f0: 10 80 00 20 b 2036470 <msdos_eval4make+0x294> <== NOT EXECUTED
20363f4: 82 10 20 11 mov 0x11, %g1 <== NOT EXECUTED
case MSDOS_CURRENT_DIR:
break;
case MSDOS_INVALID_TOKEN:
errno = ENAMETOOLONG;
20363f8: 40 00 32 0c call 2042c28 <__errno> <== NOT EXECUTED
20363fc: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
2036400: 10 80 00 1c b 2036470 <msdos_eval4make+0x294> <== NOT EXECUTED
2036404: 82 10 20 5b mov 0x5b, %g1 <== NOT EXECUTED
break;
}
}
*name = &path[i - token_len];
2036408: a6 04 40 12 add %l1, %l2, %l3 <== NOT EXECUTED
203640c: a4 24 80 01 sub %l2, %g1, %l2 <== NOT EXECUTED
2036410: 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++)
2036414: 10 80 00 0b b 2036440 <msdos_eval4make+0x264> <== NOT EXECUTED
2036418: e2 26 80 00 st %l1, [ %i2 ] <== NOT EXECUTED
{
if (!msdos_is_separator(path[i]))
203641c: 7f ff 4e 2c call 2009ccc <rtems_filesystem_is_separator> <== NOT EXECUTED
2036420: 01 00 00 00 nop <== NOT EXECUTED
2036424: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2036428: 32 80 00 07 bne,a 2036444 <msdos_eval4make+0x268> <== NOT EXECUTED
203642c: d0 4c c0 00 ldsb [ %l3 ], %o0 <== NOT EXECUTED
{
errno = ENOENT;
2036430: 40 00 31 fe call 2042c28 <__errno> <== NOT EXECUTED
2036434: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
2036438: 10 80 00 0e b 2036470 <msdos_eval4make+0x294> <== NOT EXECUTED
203643c: 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++)
2036440: d0 4c c0 00 ldsb [ %l3 ], %o0 <== NOT EXECUTED
2036444: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2036448: 12 bf ff f5 bne 203641c <msdos_eval4make+0x240> <== NOT EXECUTED
203644c: a6 04 e0 01 inc %l3 <== NOT EXECUTED
rc = -1;
goto error;
}
}
fat_fd = pathloc->node_access;
2036450: ec 06 40 00 ld [ %i1 ], %l6 <== NOT EXECUTED
if (fat_fd->fat_file_type != FAT_DIRECTORY)
2036454: c2 05 a0 10 ld [ %l6 + 0x10 ], %g1 <== NOT EXECUTED
2036458: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
203645c: 22 80 00 07 be,a 2036478 <msdos_eval4make+0x29c> <== NOT EXECUTED
2036460: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
{
errno = ENOTDIR;
2036464: 40 00 31 f1 call 2042c28 <__errno> <== NOT EXECUTED
2036468: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
203646c: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED
rc = -1;
goto error;
2036470: 10 80 00 09 b 2036494 <msdos_eval4make+0x2b8> <== NOT EXECUTED
2036474: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
msdos_set_handlers(pathloc);
rtems_semaphore_release(fs_info->vol_sema);
2036478: 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;
203647c: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 <== NOT EXECUTED
2036480: c2 00 60 90 ld [ %g1 + 0x90 ], %g1 <== NOT EXECUTED
goto error;
}
msdos_set_handlers(pathloc);
rtems_semaphore_release(fs_info->vol_sema);
2036484: 7f ff 59 e2 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2036488: c2 26 60 08 st %g1, [ %i1 + 8 ] <== NOT EXECUTED
return RC_OK;
203648c: 81 c7 e0 08 ret <== NOT EXECUTED
2036490: 81 e8 00 00 restore <== NOT EXECUTED
error:
fat_file_close(pathloc->mt_entry, fat_fd);
2036494: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
2036498: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
203649c: 7f ff bc 3f call 2025598 <fat_file_close> <== NOT EXECUTED
20364a0: b0 10 00 1d mov %i5, %i0 <== NOT EXECUTED
err:
rtems_semaphore_release(fs_info->vol_sema);
20364a4: 7f ff 59 da call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
20364a8: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
}
20364ac: 81 c7 e0 08 ret <== NOT EXECUTED
20364b0: 81 e8 00 00 restore <== NOT EXECUTED
02035f50 <msdos_eval_path>:
const char *pathname,
size_t pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc
)
{
2035f50: 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;
2035f54: 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;
2035f58: 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;
2035f5c: 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,
2035f60: 92 10 20 00 clr %o1 <== NOT EXECUTED
2035f64: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
2035f68: 94 10 20 00 clr %o2 <== NOT EXECUTED
2035f6c: 7f ff 5a e1 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2035f70: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2035f74: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2035f78: 22 80 00 08 be,a 2035f98 <msdos_eval_path+0x48> <== NOT EXECUTED
2035f7c: d0 06 c0 00 ld [ %i3 ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2035f80: 40 00 33 2a call 2042c28 <__errno> <== NOT EXECUTED
2035f84: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2035f88: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2035f8c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2035f90: 81 c7 e0 08 ret <== NOT EXECUTED
2035f94: 81 e8 00 00 restore <== NOT EXECUTED
if (!pathloc->node_access)
2035f98: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2035f9c: 12 80 00 07 bne 2035fb8 <msdos_eval_path+0x68> <== NOT EXECUTED
2035fa0: 01 00 00 00 nop <== NOT EXECUTED
{
errno = ENOENT;
2035fa4: 40 00 33 21 call 2042c28 <__errno> <== NOT EXECUTED
2035fa8: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
2035fac: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED
rc = -1;
goto err;
2035fb0: 10 80 00 87 b 20361cc <msdos_eval_path+0x27c> <== NOT EXECUTED
2035fb4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
fat_fd = pathloc->node_access;
rc = fat_file_reopen(fat_fd);
2035fb8: 7f ff ba b2 call 2024a80 <fat_file_reopen> <== NOT EXECUTED
2035fbc: 01 00 00 00 nop <== NOT EXECUTED
if (rc != RC_OK)
2035fc0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2035fc4: 12 80 00 82 bne 20361cc <msdos_eval_path+0x27c> <== NOT EXECUTED
2035fc8: 2b 00 81 a5 sethi %hi(0x2069400), %l5 <== NOT EXECUTED
2035fcc: 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)
2035fd0: aa 15 60 34 or %l5, 0x34, %l5 <== NOT EXECUTED
}
fat_fd = pathloc->node_access;
rc = fat_file_reopen(fat_fd);
if (rc != RC_OK)
2035fd4: 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);
2035fd8: a8 07 bf f8 add %fp, -8, %l4 <== NOT EXECUTED
2035fdc: 10 80 00 65 b 2036170 <msdos_eval_path+0x220> <== NOT EXECUTED
2035fe0: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED
2035fe4: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
2035fe8: 90 04 40 12 add %l1, %l2, %o0 <== NOT EXECUTED
2035fec: 40 00 07 0b call 2037c18 <msdos_get_token> <== NOT EXECUTED
2035ff0: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
pathnamelen -= token_len;
2035ff4: 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);
2035ff8: ac 10 00 08 mov %o0, %l6 <== NOT EXECUTED
pathnamelen -= token_len;
i += token_len;
fat_fd = pathloc->node_access;
switch (type)
2035ffc: 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;
2036000: b2 26 40 0a sub %i1, %o2, %i1 <== NOT EXECUTED
i += token_len;
2036004: a4 04 80 0a add %l2, %o2, %l2 <== NOT EXECUTED
fat_fd = pathloc->node_access;
switch (type)
2036008: 02 80 00 3f be 2036104 <msdos_eval_path+0x1b4> <== NOT EXECUTED
203600c: ee 06 c0 00 ld [ %i3 ], %l7 <== NOT EXECUTED
2036010: 80 a2 20 04 cmp %o0, 4 <== NOT EXECUTED
2036014: 02 80 00 52 be 203615c <msdos_eval_path+0x20c> <== NOT EXECUTED
2036018: 80 a2 20 02 cmp %o0, 2 <== NOT EXECUTED
203601c: 12 80 00 56 bne 2036174 <msdos_eval_path+0x224> <== NOT EXECUTED
2036020: 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)
2036024: c2 05 e0 10 ld [ %l7 + 0x10 ], %g1 <== NOT EXECUTED
2036028: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
203602c: 12 80 00 3a bne 2036114 <msdos_eval_path+0x1c4> <== NOT EXECUTED
2036030: 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)
2036034: d2 06 e0 10 ld [ %i3 + 0x10 ], %o1 <== NOT EXECUTED
}
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
2036038: c2 02 60 1c ld [ %o1 + 0x1c ], %g1 <== NOT EXECUTED
203603c: 80 a5 c0 01 cmp %l7, %g1 <== NOT EXECUTED
2036040: 12 80 00 23 bne 20360cc <msdos_eval_path+0x17c> <== NOT EXECUTED
2036044: 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)
2036048: c2 05 40 00 ld [ %l5 ], %g1 <== NOT EXECUTED
203604c: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED
2036050: 80 a5 c0 01 cmp %l7, %g1 <== NOT EXECUTED
2036054: 22 bf ff e4 be,a 2035fe4 <msdos_eval_path+0x94> <== NOT EXECUTED
2036058: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
{
break; /* Throw out the .. in this case */
}
else
{
newloc = pathloc->mt_entry->mt_point_node;
203605c: 92 02 60 08 add %o1, 8, %o1 <== NOT EXECUTED
2036060: a6 07 bf e4 add %fp, -28, %l3 <== NOT EXECUTED
2036064: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
2036068: 40 00 40 3c call 2046158 <memcpy> <== NOT EXECUTED
203606c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
*pathloc = newloc;
2036070: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2036074: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
2036078: 40 00 40 38 call 2046158 <memcpy> <== NOT EXECUTED
203607c: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
rc = fat_file_close(pathloc->mt_entry, fat_fd);
2036080: d0 06 e0 10 ld [ %i3 + 0x10 ], %o0 <== NOT EXECUTED
2036084: 7f ff bd 45 call 2025598 <fat_file_close> <== NOT EXECUTED
2036088: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
if (rc != RC_OK)
203608c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2036090: 12 80 00 4f bne 20361cc <msdos_eval_path+0x27c> <== NOT EXECUTED
2036094: 01 00 00 00 nop <== NOT EXECUTED
goto err;
rtems_semaphore_release(fs_info->vol_sema);
2036098: 7f ff 5a dd call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
203609c: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return (*pathloc->ops->evalpath_h)(&(pathname[i-token_len]),
20360a0: c2 06 e0 0c ld [ %i3 + 0xc ], %g1 <== NOT EXECUTED
20360a4: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
20360a8: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED
20360ac: 92 06 40 08 add %i1, %o0, %o1 <== NOT EXECUTED
20360b0: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
20360b4: 90 24 80 08 sub %l2, %o0, %o0 <== NOT EXECUTED
20360b8: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
20360bc: 9f c0 40 00 call %g1 <== NOT EXECUTED
20360c0: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED
20360c4: 81 c7 e0 08 ret <== NOT EXECUTED
20360c8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
flags, pathloc);
}
}
else
{
rc = msdos_find_name(pathloc, token, token_len);
20360cc: 40 00 08 7a call 20382b4 <msdos_find_name> <== NOT EXECUTED
20360d0: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
if (rc != RC_OK)
20360d4: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
20360d8: 02 bf ff c3 be 2035fe4 <msdos_eval_path+0x94> <== NOT EXECUTED
20360dc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
{
if (rc == MSDOS_NAME_NOT_FOUND_ERR)
20360e0: 03 00 00 1f sethi %hi(0x7c00), %g1 <== NOT EXECUTED
20360e4: 82 10 61 01 or %g1, 0x101, %g1 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
20360e8: 80 a7 40 01 cmp %i5, %g1 <== NOT EXECUTED
20360ec: 32 80 00 35 bne,a 20361c0 <msdos_eval_path+0x270> <== NOT EXECUTED
20360f0: d0 06 e0 10 ld [ %i3 + 0x10 ], %o0 <== NOT EXECUTED
{
errno = ENOENT;
20360f4: 40 00 32 cd call 2042c28 <__errno> <== NOT EXECUTED
20360f8: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
20360fc: 10 80 00 30 b 20361bc <msdos_eval_path+0x26c> <== NOT EXECUTED
2036100: 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)
2036104: c2 05 e0 10 ld [ %l7 + 0x10 ], %g1 <== NOT EXECUTED
2036108: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
203610c: 02 80 00 06 be 2036124 <msdos_eval_path+0x1d4> <== NOT EXECUTED
2036110: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
{
errno = ENOTSUP;
2036114: 40 00 32 c5 call 2042c28 <__errno> <== NOT EXECUTED
2036118: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
203611c: 10 80 00 13 b 2036168 <msdos_eval_path+0x218> <== NOT EXECUTED
2036120: 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);
2036124: 40 00 08 64 call 20382b4 <msdos_find_name> <== NOT EXECUTED
2036128: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
if (rc != RC_OK)
203612c: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
2036130: 02 bf ff ad be 2035fe4 <msdos_eval_path+0x94> <== NOT EXECUTED
2036134: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
{
if (rc == MSDOS_NAME_NOT_FOUND_ERR)
2036138: 03 00 00 1f sethi %hi(0x7c00), %g1 <== NOT EXECUTED
203613c: 82 10 61 01 or %g1, 0x101, %g1 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
2036140: 80 a7 40 01 cmp %i5, %g1 <== NOT EXECUTED
2036144: 32 80 00 1f bne,a 20361c0 <msdos_eval_path+0x270> <== NOT EXECUTED
2036148: d0 06 e0 10 ld [ %i3 + 0x10 ], %o0 <== NOT EXECUTED
{
errno = ENOENT;
203614c: 40 00 32 b7 call 2042c28 <__errno> <== NOT EXECUTED
2036150: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
2036154: 10 80 00 05 b 2036168 <msdos_eval_path+0x218> <== NOT EXECUTED
2036158: 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;
203615c: 40 00 32 b3 call 2042c28 <__errno> <== NOT EXECUTED
2036160: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
2036164: 82 10 20 5b mov 0x5b, %g1 <== NOT EXECUTED
rc = -1;
goto error;
2036168: 10 80 00 15 b 20361bc <msdos_eval_path+0x26c> <== NOT EXECUTED
203616c: 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))
2036170: 80 a5 a0 04 cmp %l6, 4 <== NOT EXECUTED
2036174: 02 80 00 04 be 2036184 <msdos_eval_path+0x234> <== NOT EXECUTED
2036178: 80 a5 a0 00 cmp %l6, 0 <== NOT EXECUTED
203617c: 12 bf ff 9a bne 2035fe4 <msdos_eval_path+0x94> <== NOT EXECUTED
2036180: 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;
2036184: 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;
2036188: c2 06 e0 10 ld [ %i3 + 0x10 ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = loc->node_access;
203618c: c4 00 a0 10 ld [ %g2 + 0x10 ], %g2 <== NOT EXECUTED
2036190: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED
2036194: 12 80 00 04 bne 20361a4 <msdos_eval_path+0x254> <== NOT EXECUTED
2036198: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 <== NOT EXECUTED
if (fat_fd->fat_file_type == FAT_DIRECTORY)
loc->handlers = fs_info->directory_handlers;
203619c: 10 80 00 03 b 20361a8 <msdos_eval_path+0x258> <== NOT EXECUTED
20361a0: c2 00 60 90 ld [ %g1 + 0x90 ], %g1 <== NOT EXECUTED
else
loc->handlers = fs_info->file_handlers;
20361a4: 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);
20361a8: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
20361ac: 7f ff 5a 98 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
20361b0: c2 26 e0 08 st %g1, [ %i3 + 8 ] <== NOT EXECUTED
return RC_OK;
20361b4: 81 c7 e0 08 ret <== NOT EXECUTED
20361b8: 81 e8 00 00 restore <== NOT EXECUTED
error:
fat_file_close(pathloc->mt_entry, fat_fd);
20361bc: d0 06 e0 10 ld [ %i3 + 0x10 ], %o0 <== NOT EXECUTED
20361c0: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
20361c4: 7f ff bc f5 call 2025598 <fat_file_close> <== NOT EXECUTED
20361c8: b0 10 00 1d mov %i5, %i0 <== NOT EXECUTED
err:
rtems_semaphore_release(fs_info->vol_sema);
20361cc: 7f ff 5a 90 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
20361d0: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
}
20361d4: 81 c7 e0 08 ret <== NOT EXECUTED
20361d8: 81 e8 00 00 restore <== NOT EXECUTED
020364bc <msdos_file_chmod>:
int
msdos_file_chmod(rtems_filesystem_location_info_t *pathloc,
mode_t mode)
{
return RC_OK;
}
20364bc: 81 c3 e0 08 retl <== NOT EXECUTED
20364c0: 90 10 20 00 clr %o0 <== NOT EXECUTED
020369e8 <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)
{
20369e8: 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;
20369ec: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
20369f0: 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;
20369f4: 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,
20369f8: 92 10 20 00 clr %o1 <== NOT EXECUTED
20369fc: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
2036a00: 94 10 20 00 clr %o2 <== NOT EXECUTED
2036a04: 7f ff 58 3b call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2036a08: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2036a0c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2036a10: 22 80 00 08 be,a 2036a30 <msdos_file_close+0x48> <== NOT EXECUTED
2036a14: c2 0c a0 30 ldub [ %l2 + 0x30 ], %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2036a18: 40 00 30 84 call 2042c28 <__errno> <== NOT EXECUTED
2036a1c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2036a20: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2036a24: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2036a28: 81 c7 e0 08 ret <== NOT EXECUTED
2036a2c: 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))
2036a30: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
2036a34: 32 80 00 18 bne,a 2036a94 <msdos_file_close+0xac> <== NOT EXECUTED
2036a38: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
{
rc = msdos_set_first_cluster_num(iop->pathinfo.mt_entry, fat_fd);
2036a3c: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
2036a40: 40 00 03 8c call 2037870 <msdos_set_first_cluster_num> <== NOT EXECUTED
2036a44: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
if (rc != RC_OK)
2036a48: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2036a4c: 12 80 00 0e bne 2036a84 <msdos_file_close+0x9c> <== NOT EXECUTED
2036a50: 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);
2036a54: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
2036a58: 40 00 03 5a call 20377c0 <msdos_set_file_size> <== NOT EXECUTED
2036a5c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
if (rc != RC_OK)
2036a60: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2036a64: 12 80 00 08 bne 2036a84 <msdos_file_close+0x9c> <== NOT EXECUTED
2036a68: 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);
2036a6c: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
2036a70: 40 00 04 10 call 2037ab0 <msdos_set_dir_wrt_time_and_date><== NOT EXECUTED
2036a74: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
if (rc != RC_OK)
2036a78: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2036a7c: 22 80 00 06 be,a 2036a94 <msdos_file_close+0xac> <== NOT EXECUTED
2036a80: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
2036a84: 7f ff 58 62 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2036a88: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
2036a8c: 81 c7 e0 08 ret <== NOT EXECUTED
2036a90: 81 e8 00 00 restore <== NOT EXECUTED
}
}
rc = fat_file_close(iop->pathinfo.mt_entry, fat_fd);
2036a94: 7f ff ba c1 call 2025598 <fat_file_close> <== NOT EXECUTED
2036a98: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2036a9c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
2036aa0: 7f ff 58 5b call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2036aa4: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
}
2036aa8: 81 c7 e0 08 ret <== NOT EXECUTED
2036aac: 81 e8 00 00 restore <== NOT EXECUTED
020365e4 <msdos_file_datasync>:
* RETURNS:
* RC_OK on success, or -1 if error occured (errno set appropriately)
*/
int
msdos_file_datasync(rtems_libio_t *iop)
{
20365e4: 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;
20365e8: 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;
20365ec: e2 06 20 3c ld [ %i0 + 0x3c ], %l1 <== NOT EXECUTED
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
20365f0: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
20365f4: 92 10 20 00 clr %o1 <== NOT EXECUTED
20365f8: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
20365fc: 7f ff 59 3d call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2036600: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2036604: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2036608: 22 80 00 08 be,a 2036628 <msdos_file_datasync+0x44> <== NOT EXECUTED
203660c: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2036610: 40 00 31 86 call 2042c28 <__errno> <== NOT EXECUTED
2036614: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2036618: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203661c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2036620: 81 c7 e0 08 ret <== NOT EXECUTED
2036624: 81 e8 00 00 restore <== NOT EXECUTED
/* synchronize file data */
rc = fat_file_datasync(iop->pathinfo.mt_entry, fat_fd);
2036628: 7f ff b9 73 call 2024bf4 <fat_file_datasync> <== NOT EXECUTED
203662c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
2036630: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
2036634: 7f ff 59 76 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2036638: b0 10 20 00 clr %i0 <== NOT EXECUTED
return RC_OK;
}
203663c: 81 c7 e0 08 ret <== NOT EXECUTED
2036640: 81 e8 00 00 restore <== NOT EXECUTED
02036718 <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)
{
2036718: 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;
203671c: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
2036720: 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;
2036724: 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)
{
2036728: 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)
203672c: 82 10 20 00 clr %g1 <== NOT EXECUTED
2036730: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED
2036734: 14 80 00 09 bg 2036758 <msdos_file_ftruncate+0x40> <== NOT EXECUTED
2036738: c4 04 60 18 ld [ %l1 + 0x18 ], %g2 <== NOT EXECUTED
203673c: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED
2036740: 12 80 00 04 bne 2036750 <msdos_file_ftruncate+0x38> <== NOT EXECUTED
2036744: 80 a0 80 1a cmp %g2, %i2 <== NOT EXECUTED
2036748: 38 80 00 05 bgu,a 203675c <msdos_file_ftruncate+0x44> <== NOT EXECUTED
203674c: d0 04 a0 98 ld [ %l2 + 0x98 ], %o0 <== NOT EXECUTED
2036750: 81 c7 e0 08 ret <== NOT EXECUTED
2036754: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
return RC_OK;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
2036758: d0 04 a0 98 ld [ %l2 + 0x98 ], %o0 <== NOT EXECUTED
203675c: 92 10 20 00 clr %o1 <== NOT EXECUTED
2036760: 7f ff 58 e4 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2036764: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2036768: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203676c: 22 80 00 08 be,a 203678c <msdos_file_ftruncate+0x74> <== NOT EXECUTED
2036770: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2036774: 40 00 31 2d call 2042c28 <__errno> <== NOT EXECUTED
2036778: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203677c: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2036780: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2036784: 81 c7 e0 08 ret <== NOT EXECUTED
2036788: 81 e8 00 00 restore <== NOT EXECUTED
rc = fat_file_truncate(iop->pathinfo.mt_entry, fat_fd, length);
203678c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2036790: 7f ff b9 a9 call 2024e34 <fat_file_truncate> <== NOT EXECUTED
2036794: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
if (rc != RC_OK)
2036798: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203679c: 02 80 00 06 be 20367b4 <msdos_file_ftruncate+0x9c> <== NOT EXECUTED
20367a0: 80 a6 00 19 cmp %i0, %i1 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
20367a4: 7f ff 59 1a call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
20367a8: d0 04 a0 98 ld [ %l2 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
20367ac: 81 c7 e0 08 ret <== NOT EXECUTED
20367b0: 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)
20367b4: 14 80 00 07 bg 20367d0 <msdos_file_ftruncate+0xb8> <== NOT EXECUTED
20367b8: c2 04 60 18 ld [ %l1 + 0x18 ], %g1 <== NOT EXECUTED
20367bc: 80 a6 00 19 cmp %i0, %i1 <== NOT EXECUTED
20367c0: 12 80 00 07 bne 20367dc <msdos_file_ftruncate+0xc4> <== NOT EXECUTED
20367c4: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED
20367c8: 08 80 00 05 bleu 20367dc <msdos_file_ftruncate+0xc4> <== NOT EXECUTED
20367cc: 01 00 00 00 nop <== NOT EXECUTED
iop->size = fat_fd->fat_file_size = length;
20367d0: f4 24 20 0c st %i2, [ %l0 + 0xc ] <== NOT EXECUTED
20367d4: f4 24 60 18 st %i2, [ %l1 + 0x18 ] <== NOT EXECUTED
20367d8: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
20367dc: 7f ff 59 0c call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
20367e0: d0 04 a0 98 ld [ %l2 + 0x98 ], %o0 <== NOT EXECUTED
return RC_OK;
}
20367e4: 81 c7 e0 08 ret <== NOT EXECUTED
20367e8: 81 e8 00 00 restore <== NOT EXECUTED
020364b4 <msdos_file_ioctl>:
msdos_file_ioctl(rtems_libio_t *iop,uint32_t command, void *buffer)
{
int rc = RC_OK;
return rc;
}
20364b4: 81 c3 e0 08 retl <== NOT EXECUTED
20364b8: 90 10 20 00 clr %o0 <== NOT EXECUTED
020367ec <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)
{
20367ec: 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;
20367f0: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
uint32_t real_size = 0;
20367f4: 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;
20367f8: e2 00 60 34 ld [ %g1 + 0x34 ], %l1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
20367fc: 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,
2036800: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
2036804: 92 10 20 00 clr %o1 <== NOT EXECUTED
2036808: 7f ff 58 ba call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
203680c: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2036810: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2036814: 22 80 00 0a be,a 203683c <msdos_file_lseek+0x50> <== NOT EXECUTED
2036818: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
203681c: 40 00 31 03 call 2042c28 <__errno> <== NOT EXECUTED
2036820: 01 00 00 00 nop <== NOT EXECUTED
2036824: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
2036828: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED
203682c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2036830: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
2036834: 10 80 00 1b b 20368a0 <msdos_file_lseek+0xb4> <== NOT EXECUTED
2036838: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED
rc = fat_file_extend(iop->pathinfo.mt_entry, fat_fd, iop->offset,
203683c: d4 06 20 14 ld [ %i0 + 0x14 ], %o2 <== NOT EXECUTED
2036840: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2036844: 7f ff b9 bf call 2024f40 <fat_file_extend> <== NOT EXECUTED
2036848: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
&real_size);
if (rc != RC_OK)
203684c: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2036850: 02 80 00 07 be 203686c <msdos_file_lseek+0x80> <== NOT EXECUTED
2036854: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
2036858: 7f ff 58 ed call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
203685c: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
2036860: 86 10 00 12 mov %l2, %g3 <== NOT EXECUTED
2036864: 10 80 00 0f b 20368a0 <msdos_file_lseek+0xb4> <== NOT EXECUTED
2036868: 85 3c a0 1f sra %l2, 0x1f, %g2 <== NOT EXECUTED
}
if (real_size > fat_fd->fat_file_size)
203686c: c4 04 20 18 ld [ %l0 + 0x18 ], %g2 <== NOT EXECUTED
2036870: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2036874: 28 80 00 06 bleu,a 203688c <msdos_file_lseek+0xa0> <== NOT EXECUTED
2036878: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED
fat_fd->fat_file_size = iop->offset = real_size;
203687c: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED
2036880: c0 26 20 10 clr [ %i0 + 0x10 ] <== NOT EXECUTED
2036884: c2 26 20 14 st %g1, [ %i0 + 0x14 ] <== NOT EXECUTED
iop->size = fat_fd->fat_file_size;
2036888: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
203688c: 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;
2036890: c2 26 20 0c st %g1, [ %i0 + 0xc ] <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
2036894: 7f ff 58 de call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2036898: c0 26 20 08 clr [ %i0 + 8 ] <== NOT EXECUTED
return iop->offset;
203689c: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED
}
20368a0: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED
20368a4: 81 c7 e0 08 ret <== NOT EXECUTED
20368a8: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
02036ab0 <msdos_file_open>:
* and errno set appropriately
*/
int
msdos_file_open(rtems_libio_t *iop, const char *pathname, uint32_t flag,
uint32_t mode)
{
2036ab0: 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;
2036ab4: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
2036ab8: 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;
2036abc: 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,
2036ac0: 92 10 20 00 clr %o1 <== NOT EXECUTED
2036ac4: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
2036ac8: 94 10 20 00 clr %o2 <== NOT EXECUTED
2036acc: 7f ff 58 09 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2036ad0: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2036ad4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2036ad8: 02 80 00 08 be 2036af8 <msdos_file_open+0x48> <== NOT EXECUTED
2036adc: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2036ae0: 40 00 30 52 call 2042c28 <__errno> <== NOT EXECUTED
2036ae4: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
2036ae8: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2036aec: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2036af0: 81 c7 e0 08 ret <== NOT EXECUTED
2036af4: 81 e8 00 00 restore <== NOT EXECUTED
rc = fat_file_reopen(fat_fd);
2036af8: 7f ff b7 e2 call 2024a80 <fat_file_reopen> <== NOT EXECUTED
2036afc: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
if (rc != RC_OK)
2036b00: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2036b04: 22 80 00 06 be,a 2036b1c <msdos_file_open+0x6c> <== NOT EXECUTED
2036b08: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
2036b0c: 7f ff 58 40 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2036b10: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
2036b14: 81 c7 e0 08 ret <== NOT EXECUTED
2036b18: 81 e8 00 00 restore <== NOT EXECUTED
}
if (iop->flags & LIBIO_FLAGS_APPEND)
2036b1c: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED
2036b20: 02 80 00 05 be 2036b34 <msdos_file_open+0x84> <== NOT EXECUTED
2036b24: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 <== NOT EXECUTED
iop->offset = fat_fd->fat_file_size;
2036b28: c0 24 20 10 clr [ %l0 + 0x10 ] <== NOT EXECUTED
2036b2c: c2 24 20 14 st %g1, [ %l0 + 0x14 ] <== NOT EXECUTED
iop->size = fat_fd->fat_file_size;
2036b30: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
2036b34: 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;
2036b38: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
2036b3c: 7f ff 58 34 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2036b40: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED
return RC_OK;
}
2036b44: 81 c7 e0 08 ret <== NOT EXECUTED
2036b48: 81 e8 00 00 restore <== NOT EXECUTED
0203697c <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)
{
203697c: 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;
2036980: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
2036984: 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;
2036988: 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,
203698c: 92 10 20 00 clr %o1 <== NOT EXECUTED
2036990: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
2036994: 7f ff 58 57 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2036998: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
203699c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20369a0: 22 80 00 08 be,a 20369c0 <msdos_file_read+0x44> <== NOT EXECUTED
20369a4: d4 06 20 14 ld [ %i0 + 0x14 ], %o2 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
20369a8: 40 00 30 a0 call 2042c28 <__errno> <== NOT EXECUTED
20369ac: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20369b0: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
20369b4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20369b8: 81 c7 e0 08 ret <== NOT EXECUTED
20369bc: 81 e8 00 00 restore <== NOT EXECUTED
ret = fat_file_read(iop->pathinfo.mt_entry, fat_fd, iop->offset, count,
20369c0: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
20369c4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20369c8: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
20369cc: 7f ff ba 72 call 2025394 <fat_file_read> <== NOT EXECUTED
20369d0: 98 10 00 19 mov %i1, %o4 <== NOT EXECUTED
20369d4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
buffer);
rtems_semaphore_release(fs_info->vol_sema);
20369d8: 7f ff 58 8d call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
20369dc: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return ret;
}
20369e0: 81 c7 e0 08 ret <== NOT EXECUTED
20369e4: 81 e8 00 00 restore <== NOT EXECUTED
02036560 <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)
{
2036560: 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;
2036564: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = pathloc->node_access;
2036568: 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;
203656c: 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,
2036570: 92 10 20 00 clr %o1 <== NOT EXECUTED
2036574: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
2036578: 7f ff 59 5e call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
203657c: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2036580: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2036584: 22 80 00 08 be,a 20365a4 <msdos_file_rmnod+0x44> <== NOT EXECUTED
2036588: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
203658c: 40 00 31 a7 call 2042c28 <__errno> <== NOT EXECUTED
2036590: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2036594: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2036598: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203659c: 81 c7 e0 08 ret <== NOT EXECUTED
20365a0: 81 e8 00 00 restore <== NOT EXECUTED
/* mark file removed */
rc = msdos_set_first_char4file_name(pathloc->mt_entry,
20365a4: 92 04 60 20 add %l1, 0x20, %o1 <== NOT EXECUTED
20365a8: 40 00 04 eb call 2037954 <msdos_set_first_char4file_name> <== NOT EXECUTED
20365ac: 94 10 20 e5 mov 0xe5, %o2 <== NOT EXECUTED
&fat_fd->dir_pos,
MSDOS_THIS_DIR_ENTRY_EMPTY);
if (rc != RC_OK)
20365b0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20365b4: 22 80 00 06 be,a 20365cc <msdos_file_rmnod+0x6c> <== NOT EXECUTED
20365b8: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
20365bc: 7f ff 59 94 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
20365c0: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
20365c4: 81 c7 e0 08 ret <== NOT EXECUTED
20365c8: 81 e8 00 00 restore <== NOT EXECUTED
}
fat_file_mark_removed(pathloc->mt_entry, fat_fd);
20365cc: 7f ff b9 d2 call 2024d14 <fat_file_mark_removed> <== NOT EXECUTED
20365d0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
20365d4: 7f ff 59 8e call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
20365d8: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return RC_OK;
}
20365dc: 81 c7 e0 08 ret <== NOT EXECUTED
20365e0: 81 e8 00 00 restore <== NOT EXECUTED
020364c4 <msdos_file_stat>:
int
msdos_file_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
20364c4: 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;
20364c8: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = loc->node_access;
20364cc: 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;
20364d0: 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,
20364d4: 92 10 20 00 clr %o1 <== NOT EXECUTED
20364d8: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
20364dc: 7f ff 59 85 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
20364e0: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
20364e4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20364e8: 22 80 00 08 be,a 2036508 <msdos_file_stat+0x44> <== NOT EXECUTED
20364ec: c2 04 60 0c ld [ %l1 + 0xc ], %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
20364f0: 40 00 31 ce call 2042c28 <__errno> <== NOT EXECUTED
20364f4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20364f8: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
20364fc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2036500: 81 c7 e0 08 ret <== NOT EXECUTED
2036504: 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;
2036508: 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;
203650c: c2 26 60 08 st %g1, [ %i1 + 8 ] <== NOT EXECUTED
buf->st_mode = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;
2036510: 03 00 00 20 sethi %hi(0x8000), %g1 <== NOT EXECUTED
2036514: 82 10 61 ff or %g1, 0x1ff, %g1 ! 81ff <PROM_START+0x81ff> <== NOT EXECUTED
2036518: c2 26 60 0c st %g1, [ %i1 + 0xc ] <== NOT EXECUTED
buf->st_rdev = 0ll;
buf->st_size = fat_fd->fat_file_size;
203651c: 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;
2036520: 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;
2036524: 85 30 60 09 srl %g1, 9, %g2 <== NOT EXECUTED
2036528: c4 26 60 44 st %g2, [ %i1 + 0x44 ] <== NOT EXECUTED
buf->st_blksize = fs_info->fat.vol.bps;
buf->st_mtime = fat_fd->mtime;
203652c: 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;
2036530: 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;
2036534: c8 26 60 30 st %g4, [ %i1 + 0x30 ] <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
2036538: 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;
203653c: 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;
2036540: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED
2036544: c0 26 60 1c clr [ %i1 + 0x1c ] <== NOT EXECUTED
buf->st_size = fat_fd->fat_file_size;
2036548: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED
203654c: 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);
2036550: 7f ff 59 af call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2036554: b0 10 20 00 clr %i0 <== NOT EXECUTED
return RC_OK;
}
2036558: 81 c7 e0 08 ret <== NOT EXECUTED
203655c: 81 e8 00 00 restore <== NOT EXECUTED
02036644 <msdos_file_sync>:
* RETURNS:
* RC_OK on success, or -1 if error occured (errno set appropriately)
*/
int
msdos_file_sync(rtems_libio_t *iop)
{
2036644: 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;
2036648: 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;
203664c: e4 06 20 3c ld [ %i0 + 0x3c ], %l2 <== NOT EXECUTED
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
2036650: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
2036654: 92 10 20 00 clr %o1 <== NOT EXECUTED
2036658: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
203665c: 94 10 20 00 clr %o2 <== NOT EXECUTED
2036660: 7f ff 59 24 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2036664: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2036668: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203666c: 22 80 00 08 be,a 203668c <msdos_file_sync+0x48> <== NOT EXECUTED
2036670: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2036674: 40 00 31 6d call 2042c28 <__errno> <== NOT EXECUTED
2036678: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203667c: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2036680: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2036684: 81 c7 e0 08 ret <== NOT EXECUTED
2036688: 81 e8 00 00 restore <== NOT EXECUTED
/* synchronize file data */
rc = fat_file_datasync(iop->pathinfo.mt_entry, fat_fd);
203668c: 7f ff b9 5a call 2024bf4 <fat_file_datasync> <== NOT EXECUTED
2036690: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
if (rc != RC_OK)
2036694: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2036698: 12 80 00 18 bne 20366f8 <msdos_file_sync+0xb4> <== NOT EXECUTED
203669c: 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))
20366a0: c2 0c a0 30 ldub [ %l2 + 0x30 ], %g1 <== NOT EXECUTED
20366a4: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
20366a8: 32 80 00 18 bne,a 2036708 <msdos_file_sync+0xc4> <== NOT EXECUTED
20366ac: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
{
rc = msdos_set_first_cluster_num(iop->pathinfo.mt_entry, fat_fd);
20366b0: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED
20366b4: 40 00 04 6f call 2037870 <msdos_set_first_cluster_num> <== NOT EXECUTED
20366b8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
if (rc != RC_OK)
20366bc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20366c0: 12 80 00 0e bne 20366f8 <msdos_file_sync+0xb4> <== NOT EXECUTED
20366c4: 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);
20366c8: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED
20366cc: 40 00 04 3d call 20377c0 <msdos_set_file_size> <== NOT EXECUTED
20366d0: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
if (rc != RC_OK)
20366d4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20366d8: 12 80 00 08 bne 20366f8 <msdos_file_sync+0xb4> <== NOT EXECUTED
20366dc: 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);
20366e0: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED
20366e4: 40 00 04 f3 call 2037ab0 <msdos_set_dir_wrt_time_and_date><== NOT EXECUTED
20366e8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
if (rc != RC_OK)
20366ec: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20366f0: 22 80 00 06 be,a 2036708 <msdos_file_sync+0xc4> <== NOT EXECUTED
20366f4: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
20366f8: 7f ff 59 45 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
20366fc: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
2036700: 81 c7 e0 08 ret <== NOT EXECUTED
2036704: 81 e8 00 00 restore <== NOT EXECUTED
}
}
rtems_semaphore_release(fs_info->vol_sema);
2036708: 7f ff 59 41 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
203670c: b0 10 20 00 clr %i0 <== NOT EXECUTED
return RC_OK;
}
2036710: 81 c7 e0 08 ret <== NOT EXECUTED
2036714: 81 e8 00 00 restore <== NOT EXECUTED
020368ac <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)
{
20368ac: 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;
20368b0: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
20368b4: 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;
20368b8: 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,
20368bc: 92 10 20 00 clr %o1 <== NOT EXECUTED
20368c0: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
20368c4: 94 10 20 00 clr %o2 <== NOT EXECUTED
20368c8: 7f ff 58 8a call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
20368cc: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
20368d0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20368d4: 22 80 00 08 be,a 20368f4 <msdos_file_write+0x48> <== NOT EXECUTED
20368d8: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
20368dc: 40 00 30 d3 call 2042c28 <__errno> <== NOT EXECUTED
20368e0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20368e4: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
20368e8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20368ec: 81 c7 e0 08 ret <== NOT EXECUTED
20368f0: 81 e8 00 00 restore <== NOT EXECUTED
ret = fat_file_write(iop->pathinfo.mt_entry, fat_fd, iop->offset, count,
20368f4: d4 06 20 14 ld [ %i0 + 0x14 ], %o2 <== NOT EXECUTED
20368f8: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
20368fc: 98 10 00 19 mov %i1, %o4 <== NOT EXECUTED
2036900: 7f ff ba 0d call 2025134 <fat_file_write> <== NOT EXECUTED
2036904: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
buffer);
if (ret < 0)
2036908: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203690c: 36 80 00 07 bge,a 2036928 <msdos_file_write+0x7c> <== NOT EXECUTED
2036910: d8 1c 20 10 ldd [ %l0 + 0x10 ], %o4 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
2036914: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
2036918: 7f ff 58 bd call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
203691c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return -1;
2036920: 81 c7 e0 08 ret <== NOT EXECUTED
2036924: 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)
2036928: 85 3e 20 1f sra %i0, 0x1f, %g2 <== NOT EXECUTED
203692c: 86 86 00 0d addcc %i0, %o5, %g3 <== NOT EXECUTED
2036930: 84 40 80 0c addx %g2, %o4, %g2 <== NOT EXECUTED
2036934: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2036938: 14 80 00 08 bg 2036958 <msdos_file_write+0xac> <== NOT EXECUTED
203693c: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 <== NOT EXECUTED
2036940: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2036944: 32 80 00 09 bne,a 2036968 <msdos_file_write+0xbc> <== NOT EXECUTED
2036948: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
203694c: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED
2036950: 28 80 00 06 bleu,a 2036968 <msdos_file_write+0xbc> <== NOT EXECUTED
2036954: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
fat_fd->fat_file_size = iop->offset + ret;
2036958: 82 06 00 0d add %i0, %o5, %g1 <== NOT EXECUTED
203695c: c2 24 a0 18 st %g1, [ %l2 + 0x18 ] <== NOT EXECUTED
iop->size = fat_fd->fat_file_size;
2036960: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
2036964: 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;
2036968: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
203696c: 7f ff 58 a8 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2036970: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED
return ret;
}
2036974: 81 c7 e0 08 ret <== NOT EXECUTED
2036978: 81 e8 00 00 restore <== NOT EXECUTED
020413f8 <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)
{
20413f8: 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] = ' ';
20413fc: 84 10 20 20 mov 0x20, %g2 <== NOT EXECUTED
2041400: 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++)
2041404: 82 00 60 01 inc %g1 <== NOT EXECUTED
2041408: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED
204140c: 32 bf ff fe bne,a 2041404 <msdos_filename_unix2dos+0xc> <== NOT EXECUTED
2041410: 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) {
2041414: c2 4a 00 00 ldsb [ %o0 ], %g1 <== NOT EXECUTED
2041418: 82 18 60 2e xor %g1, 0x2e, %g1 <== NOT EXECUTED
204141c: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
2041420: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED
2041424: 80 a2 60 01 cmp %o1, 1 <== NOT EXECUTED
2041428: 12 80 00 04 bne 2041438 <msdos_filename_unix2dos+0x40> <== NOT EXECUTED
204142c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2041430: 12 80 00 0c bne 2041460 <msdos_filename_unix2dos+0x68> <== NOT EXECUTED
2041434: 82 10 20 2e mov 0x2e, %g1 <== NOT EXECUTED
dn[0] = '.';
return 0;
}
if (un[0] == '.' && un[1] == '.' && unlen == 2) {
2041438: 02 80 00 0e be 2041470 <msdos_filename_unix2dos+0x78> <== NOT EXECUTED
204143c: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
2041440: c2 4a 20 01 ldsb [ %o0 + 1 ], %g1 <== NOT EXECUTED
2041444: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
2041448: 12 80 00 0a bne 2041470 <msdos_filename_unix2dos+0x78> <== NOT EXECUTED
204144c: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
2041450: 80 a2 60 02 cmp %o1, 2 <== NOT EXECUTED
2041454: 12 80 00 07 bne 2041470 <msdos_filename_unix2dos+0x78> <== NOT EXECUTED
2041458: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
dn[0] = '.';
dn[1] = '.';
204145c: c2 2a a0 01 stb %g1, [ %o2 + 1 ] <== NOT EXECUTED
return 0;
2041460: 10 80 00 41 b 2041564 <msdos_filename_unix2dos+0x16c> <== NOT EXECUTED
2041464: c2 2a 80 00 stb %g1, [ %o2 ] <== NOT EXECUTED
/*
* Remove any dots from the start of a file name.
*/
while (unlen && (*un == '.')) {
un++;
unlen--;
2041468: 92 02 7f ff add %o1, -1, %o1 <== NOT EXECUTED
}
/*
* Remove any dots from the start of a file name.
*/
while (unlen && (*un == '.')) {
204146c: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
2041470: 32 80 00 06 bne,a 2041488 <msdos_filename_unix2dos+0x90> <== NOT EXECUTED
2041474: 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)
2041478: 07 00 81 9e sethi %hi(0x2067800), %g3 <== NOT EXECUTED
}
/*
* Remove any dots from the start of a file name.
*/
while (unlen && (*un == '.')) {
204147c: 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)
2041480: 10 80 00 0e b 20414b8 <msdos_filename_unix2dos+0xc0> <== NOT EXECUTED
2041484: 86 10 e2 a8 or %g3, 0x2a8, %g3 <== NOT EXECUTED
}
/*
* Remove any dots from the start of a file name.
*/
while (unlen && (*un == '.')) {
2041488: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
204148c: 22 bf ff f7 be,a 2041468 <msdos_filename_unix2dos+0x70> <== NOT EXECUTED
2041490: 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)
2041494: 10 bf ff fa b 204147c <msdos_filename_unix2dos+0x84> <== NOT EXECUTED
2041498: 07 00 81 9e sethi %hi(0x2067800), %g3 <== NOT EXECUTED
204149c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
20414a0: 02 80 00 17 be 20414fc <msdos_filename_unix2dos+0x104> <== NOT EXECUTED
20414a4: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
break;
dn[i] = msdos_map[c];
20414a8: c4 2a 80 01 stb %g2, [ %o2 + %g1 ] <== NOT EXECUTED
un++;
20414ac: 90 02 20 01 inc %o0 <== NOT EXECUTED
unlen--;
20414b0: 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++) {
20414b4: 82 00 60 01 inc %g1 <== NOT EXECUTED
20414b8: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
20414bc: 02 80 00 16 be 2041514 <msdos_filename_unix2dos+0x11c> <== NOT EXECUTED
20414c0: 80 a0 60 07 cmp %g1, 7 <== NOT EXECUTED
20414c4: 14 80 00 0e bg 20414fc <msdos_filename_unix2dos+0x104> <== NOT EXECUTED
20414c8: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
20414cc: c4 0a 00 00 ldub [ %o0 ], %g2 <== NOT EXECUTED
20414d0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
20414d4: 02 80 00 09 be 20414f8 <msdos_filename_unix2dos+0x100> <== NOT EXECUTED
20414d8: 80 a0 a0 2e cmp %g2, 0x2e <== NOT EXECUTED
20414dc: 32 bf ff f0 bne,a 204149c <msdos_filename_unix2dos+0xa4> <== NOT EXECUTED
20414e0: 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)) {
20414e4: 10 80 00 06 b 20414fc <msdos_filename_unix2dos+0x104> <== NOT EXECUTED
20414e8: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
un++;
20414ec: 90 02 20 01 inc %o0 <== NOT EXECUTED
unlen--;
/* Make sure we've skipped over the dot before stopping. */
if (c == '.')
20414f0: 02 80 00 09 be 2041514 <msdos_filename_unix2dos+0x11c> <== NOT EXECUTED
20414f4: 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)) {
20414f8: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
20414fc: 02 80 00 07 be 2041518 <msdos_filename_unix2dos+0x120> <== NOT EXECUTED
2041500: 07 00 81 9e sethi %hi(0x2067800), %g3 <== NOT EXECUTED
2041504: c2 0a 00 00 ldub [ %o0 ], %g1 <== NOT EXECUTED
2041508: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
204150c: 12 bf ff f8 bne 20414ec <msdos_filename_unix2dos+0xf4> <== NOT EXECUTED
2041510: 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)
2041514: 07 00 81 9e sethi %hi(0x2067800), %g3 <== NOT EXECUTED
/*
* Strip any further characters up to a '.' or the end of the
* string.
*/
while (unlen && (c = *un)) {
2041518: 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)
204151c: 10 80 00 08 b 204153c <msdos_filename_unix2dos+0x144> <== NOT EXECUTED
2041520: 86 10 e2 a8 or %g3, 0x2a8, %g3 <== NOT EXECUTED
2041524: c4 08 c0 02 ldub [ %g3 + %g2 ], %g2 <== NOT EXECUTED
2041528: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
204152c: 02 80 00 0e be 2041564 <msdos_filename_unix2dos+0x16c> <== NOT EXECUTED
2041530: 01 00 00 00 nop <== NOT EXECUTED
break;
dn[i] = msdos_map[c];
2041534: 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++) {
2041538: 82 00 60 01 inc %g1 <== NOT EXECUTED
204153c: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
2041540: 02 80 00 09 be 2041564 <msdos_filename_unix2dos+0x16c> <== NOT EXECUTED
2041544: 84 02 00 01 add %o0, %g1, %g2 <== NOT EXECUTED
2041548: 80 a0 60 0a cmp %g1, 0xa <== NOT EXECUTED
204154c: 14 80 00 06 bg 2041564 <msdos_filename_unix2dos+0x16c> <== NOT EXECUTED
2041550: 01 00 00 00 nop <== NOT EXECUTED
2041554: c4 08 bf f8 ldub [ %g2 + -8 ], %g2 <== NOT EXECUTED
2041558: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
204155c: 12 bf ff f2 bne 2041524 <msdos_filename_unix2dos+0x12c> <== NOT EXECUTED
2041560: 92 02 7f ff add %o1, -1, %o1 <== NOT EXECUTED
dn[i] = msdos_map[c];
un++;
unlen--;
}
return 0;
}
2041564: 81 c3 e0 08 retl <== NOT EXECUTED
2041568: 90 10 20 00 clr %o0 <== NOT EXECUTED
020382b4 <msdos_find_name>:
msdos_find_name(
rtems_filesystem_location_info_t *parent_loc,
const char *name,
int name_len
)
{
20382b4: 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;
20382b8: 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);
20382bc: 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;
20382c0: 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);
20382c4: 92 10 20 00 clr %o1 <== NOT EXECUTED
20382c8: 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;
20382cc: 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);
20382d0: 40 00 38 35 call 20463a4 <memset> <== NOT EXECUTED
20382d4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
name_type = msdos_long_to_short (name,
20382d8: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
20382dc: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
20382e0: 96 10 20 0b mov 0xb, %o3 <== NOT EXECUTED
20382e4: 7f ff fe 8b call 2037d10 <msdos_long_to_short> <== NOT EXECUTED
20382e8: 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
)
{
20382ec: 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,
20382f0: 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,
20382f4: e2 23 a0 5c st %l1, [ %sp + 0x5c ] <== NOT EXECUTED
20382f8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20382fc: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
2038300: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
2038304: a4 07 bf ec add %fp, -20, %l2 <== NOT EXECUTED
2038308: 92 10 20 00 clr %o1 <== NOT EXECUTED
203830c: 7f ff ff a7 call 20381a8 <msdos_get_name_node> <== NOT EXECUTED
2038310: 9a 10 00 12 mov %l2, %o5 <== NOT EXECUTED
&dir_pos, node_entry);
if (rc != RC_OK)
2038314: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2038318: 12 80 00 6d bne 20384cc <msdos_find_name+0x218> <== NOT EXECUTED
203831c: c2 0f bf d3 ldub [ %fp + -45 ], %g1 <== NOT EXECUTED
return rc;
if (((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_VOLUME_ID) ||
2038320: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED
2038324: 12 80 00 6f bne 20384e0 <msdos_find_name+0x22c> <== NOT EXECUTED
2038328: 82 08 60 3f and %g1, 0x3f, %g1 <== NOT EXECUTED
203832c: 80 a0 60 0f cmp %g1, 0xf <== NOT EXECUTED
2038330: 02 80 00 6c be 20384e0 <msdos_find_name+0x22c> <== NOT EXECUTED
2038334: 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);
2038338: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
203833c: 7f ff b4 c6 call 2025654 <fat_file_open> <== NOT EXECUTED
2038340: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
if (rc != RC_OK)
2038344: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2038348: 12 80 00 61 bne 20384cc <msdos_find_name+0x218> <== NOT EXECUTED
203834c: f4 07 bf fc ld [ %fp + -4 ], %i2 <== NOT EXECUTED
return rc;
fat_fd->dir_pos = dir_pos;
2038350: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2038354: 90 06 a0 20 add %i2, 0x20, %o0 <== NOT EXECUTED
2038358: 40 00 37 80 call 2046158 <memcpy> <== NOT EXECUTED
203835c: 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)
2038360: e4 06 a0 08 ld [ %i2 + 8 ], %l2 <== NOT EXECUTED
2038364: 80 a4 a0 01 cmp %l2, 1 <== NOT EXECUTED
2038368: 32 80 00 50 bne,a 20384a8 <msdos_find_name+0x1f4> <== NOT EXECUTED
203836c: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
{
fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(node_entry);
2038370: da 14 60 1a lduh [ %l1 + 0x1a ], %o5 <== NOT EXECUTED
2038374: c8 14 60 14 lduh [ %l1 + 0x14 ], %g4 <== NOT EXECUTED
time_val = *MSDOS_DIR_WRITE_TIME(node_entry);
2038378: d4 14 60 16 lduh [ %l1 + 0x16 ], %o2 <== NOT EXECUTED
date = *MSDOS_DIR_WRITE_DATE(node_entry);
203837c: 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);
2038380: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
2038384: 9b 2b 60 10 sll %o5, 0x10, %o5 <== NOT EXECUTED
2038388: 97 31 20 18 srl %g4, 0x18, %o3 <== NOT EXECUTED
203838c: 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));
2038390: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
2038394: 95 2a a0 10 sll %o2, 0x10, %o2 <== NOT EXECUTED
2038398: 85 30 e0 18 srl %g3, 0x18, %g2 <== NOT EXECUTED
203839c: 91 32 a0 18 srl %o2, 0x18, %o0 <== NOT EXECUTED
20383a0: 87 30 e0 08 srl %g3, 8, %g3 <== NOT EXECUTED
20383a4: 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);
20383a8: 89 31 20 08 srl %g4, 8, %g4 <== NOT EXECUTED
20383ac: 9b 33 60 08 srl %o5, 8, %o5 <== NOT EXECUTED
20383b0: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED
20383b4: 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));
20383b8: 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);
20383bc: 88 09 00 01 and %g4, %g1, %g4 <== NOT EXECUTED
20383c0: 9a 0b 40 01 and %o5, %g1, %o5 <== NOT EXECUTED
20383c4: 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));
20383c8: 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);
20383cc: 9a 13 40 0c or %o5, %o4, %o5 <== NOT EXECUTED
20383d0: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
20383d4: 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));
20383d8: 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);
20383dc: 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));
20383e0: 40 00 23 bb call 20412cc <msdos_date_dos2unix> <== NOT EXECUTED
20383e4: 90 10 40 02 or %g1, %g2, %o0 <== NOT EXECUTED
20383e8: d0 26 a0 40 st %o0, [ %i2 + 0x40 ] <== NOT EXECUTED
if ((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_DIRECTORY)
20383ec: c4 0f bf d3 ldub [ %fp + -45 ], %g2 <== NOT EXECUTED
20383f0: 80 88 a0 10 btst 0x10, %g2 <== NOT EXECUTED
20383f4: 02 80 00 0e be 203842c <msdos_find_name+0x178> <== NOT EXECUTED
20383f8: 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);
20383fc: 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;
2038400: 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;
2038404: 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);
2038408: 92 10 00 01 mov %g1, %o1 <== NOT EXECUTED
203840c: 7f ff b1 a3 call 2024a98 <fat_file_size> <== NOT EXECUTED
2038410: c4 20 60 14 st %g2, [ %g1 + 0x14 ] <== NOT EXECUTED
if (rc != RC_OK)
2038414: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2038418: 02 80 00 17 be 2038474 <msdos_find_name+0x1c0> <== NOT EXECUTED
203841c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
{
fat_file_close(parent_loc->mt_entry, fat_fd);
2038420: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
2038424: 10 80 00 28 b 20384c4 <msdos_find_name+0x210> <== NOT EXECUTED
2038428: 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));
203842c: c4 04 60 1c ld [ %l1 + 0x1c ], %g2 <== NOT EXECUTED
fat_fd->fat_file_type = FAT_FILE;
2038430: 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));
2038434: 89 30 a0 18 srl %g2, 0x18, %g4 <== NOT EXECUTED
2038438: 9b 28 a0 18 sll %g2, 0x18, %o5 <== NOT EXECUTED
fat_fd->fat_file_type = FAT_FILE;
203843c: 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));
2038440: 9a 13 40 04 or %o5, %g4, %o5 <== NOT EXECUTED
2038444: 87 30 a0 10 srl %g2, 0x10, %g3 <== NOT EXECUTED
2038448: 89 30 a0 08 srl %g2, 8, %g4 <== NOT EXECUTED
203844c: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED
2038450: 88 09 20 ff and %g4, 0xff, %g4 <== NOT EXECUTED
2038454: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
2038458: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
203845c: 84 13 40 04 or %o5, %g4, %g2 <== NOT EXECUTED
2038460: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
2038464: 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;
2038468: 84 10 3f ff mov -1, %g2 <== NOT EXECUTED
203846c: 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;
2038470: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
fat_fd->map.disk_cln = fat_fd->cln;
2038474: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 <== NOT EXECUTED
if ((fat_fd->fat_file_size != 0) &&
2038478: 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;
203847c: c0 20 60 34 clr [ %g1 + 0x34 ] <== NOT EXECUTED
fat_fd->map.disk_cln = fat_fd->cln;
if ((fat_fd->fat_file_size != 0) &&
2038480: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
2038484: 02 80 00 06 be 203849c <msdos_find_name+0x1e8> <== NOT EXECUTED
2038488: c4 20 60 38 st %g2, [ %g1 + 0x38 ] <== NOT EXECUTED
(fat_fd->fat_file_size <= fs_info->fat.vol.bpc))
203848c: c8 14 e0 06 lduh [ %l3 + 6 ], %g4 <== NOT EXECUTED
2038490: 80 a0 c0 04 cmp %g3, %g4 <== NOT EXECUTED
2038494: 28 80 00 04 bleu,a 20384a4 <msdos_find_name+0x1f0> <== NOT EXECUTED
2038498: 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;
203849c: 84 10 3f ff mov -1, %g2 <== NOT EXECUTED
20384a0: 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);
20384a4: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
20384a8: 7f ff b4 3c call 2025598 <fat_file_close> <== NOT EXECUTED
20384ac: d2 04 00 00 ld [ %l0 ], %o1 <== NOT EXECUTED
if (rc != RC_OK)
20384b0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20384b4: 02 80 00 08 be 20384d4 <msdos_find_name+0x220> <== NOT EXECUTED
20384b8: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
{
fat_file_close(parent_loc->mt_entry, fat_fd);
20384bc: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
20384c0: 92 10 00 01 mov %g1, %o1 <== NOT EXECUTED
20384c4: 7f ff b4 35 call 2025598 <fat_file_close> <== NOT EXECUTED
20384c8: 01 00 00 00 nop <== NOT EXECUTED
return rc;
20384cc: 81 c7 e0 08 ret <== NOT EXECUTED
20384d0: 81 e8 00 00 restore <== NOT EXECUTED
}
/* update node_info_ptr field */
parent_loc->node_access = fat_fd;
20384d4: c2 24 00 00 st %g1, [ %l0 ] <== NOT EXECUTED
return rc;
20384d8: 81 c7 e0 08 ret <== NOT EXECUTED
20384dc: 81 e8 00 00 restore <== NOT EXECUTED
20384e0: 31 00 00 1f sethi %hi(0x7c00), %i0 <== NOT EXECUTED
20384e4: b0 16 21 01 or %i0, 0x101, %i0 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
}
20384e8: 81 c7 e0 08 ret <== NOT EXECUTED
20384ec: 81 e8 00 00 restore <== NOT EXECUTED
02036d80 <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
)
{
2036d80: 9d e3 bf 68 save %sp, -152, %sp <== NOT EXECUTED
2036d84: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED
2036d88: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED
2036d8c: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED
2036d90: f4 2f bf ef stb %i2, [ %fp + -17 ] <== NOT EXECUTED
2036d94: 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);
2036d98: 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
)
{
2036d9c: e4 07 a0 5c ld [ %fp + 0x5c ], %l2 <== NOT EXECUTED
2036da0: 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);
2036da4: 14 80 00 0a bg 2036dcc <msdos_find_name_in_fat_file+0x4c> <== NOT EXECUTED
2036da8: e8 06 20 34 ld [ %i0 + 0x34 ], %l4 <== NOT EXECUTED
2036dac: 11 00 81 9a sethi %hi(0x2066800), %o0 <== NOT EXECUTED
2036db0: 15 00 81 9a sethi %hi(0x2066800), %o2 <== NOT EXECUTED
2036db4: 17 00 81 9a sethi %hi(0x2066800), %o3 <== NOT EXECUTED
2036db8: 90 12 20 50 or %o0, 0x50, %o0 <== NOT EXECUTED
2036dbc: 94 12 a1 80 or %o2, 0x180, %o2 <== NOT EXECUTED
2036dc0: 96 12 e0 b8 or %o3, 0xb8, %o3 <== NOT EXECUTED
2036dc4: 10 80 00 42 b 2036ecc <msdos_find_name_in_fat_file+0x14c> <== NOT EXECUTED
2036dc8: 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;
2036dcc: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
2036dd0: 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;
2036dd4: 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))
2036dd8: 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;
2036ddc: c0 24 80 00 clr [ %l2 ] <== NOT EXECUTED
2036de0: 80 88 60 ff btst 0xff, %g1 <== NOT EXECUTED
2036de4: 02 80 00 06 be 2036dfc <msdos_find_name_in_fat_file+0x7c> <== NOT EXECUTED
2036de8: c0 24 a0 04 clr [ %l2 + 4 ] <== NOT EXECUTED
2036dec: c4 07 a0 58 ld [ %fp + 0x58 ], %g2 <== NOT EXECUTED
2036df0: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED
2036df4: 02 80 00 07 be 2036e10 <msdos_find_name_in_fat_file+0x90> <== NOT EXECUTED
2036df8: a6 10 20 00 clr %l3 <== NOT EXECUTED
lfn_entries = 0;
else
lfn_entries =
2036dfc: c6 07 a0 54 ld [ %fp + 0x54 ], %g3 <== NOT EXECUTED
2036e00: 92 10 20 0d mov 0xd, %o1 <== NOT EXECUTED
2036e04: 40 00 90 b8 call 205b0e4 <.div> <== NOT EXECUTED
2036e08: 90 00 e0 0c add %g3, 0xc, %o0 <== NOT EXECUTED
2036e0c: 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) &&
2036e10: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
2036e14: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2036e18: 32 80 00 0b bne,a 2036e44 <msdos_find_name_in_fat_file+0xc4><== NOT EXECUTED
2036e1c: e2 15 20 06 lduh [ %l4 + 6 ], %l1 <== NOT EXECUTED
2036e20: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED
2036e24: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2036e28: 32 80 00 07 bne,a 2036e44 <msdos_find_name_in_fat_file+0xc4><== NOT EXECUTED
2036e2c: e2 15 20 06 lduh [ %l4 + 6 ], %l1 <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
2036e30: c2 0d 20 0a ldub [ %l4 + 0xa ], %g1 <== NOT EXECUTED
2036e34: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
2036e38: 22 80 00 03 be,a 2036e44 <msdos_find_name_in_fat_file+0xc4><== NOT EXECUTED
2036e3c: e2 15 20 06 lduh [ %l4 + 6 ], %l1 <== NOT EXECUTED
2036e40: e2 06 60 18 ld [ %i1 + 0x18 ], %l1 <== NOT EXECUTED
2036e44: 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;
2036e48: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
2036e4c: ac 10 20 00 clr %l6 <== NOT EXECUTED
2036e50: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED
2036e54: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED
2036e58: 88 10 20 00 clr %g4 <== NOT EXECUTED
2036e5c: 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))
2036e60: 98 04 e0 01 add %l3, 1, %o4 <== NOT EXECUTED
2036e64: aa 10 00 10 mov %l0, %l5 <== NOT EXECUTED
2036e68: 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;
2036e6c: 9a 10 20 00 clr %o5 <== NOT EXECUTED
2036e70: b8 10 20 00 clr %i4 <== NOT EXECUTED
2036e74: ae 10 20 00 clr %l7 <== NOT EXECUTED
2036e78: b4 10 20 00 clr %i2 <== NOT EXECUTED
2036e7c: b0 10 20 00 clr %i0 <== NOT EXECUTED
2036e80: 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))
2036e84: 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;
2036e88: 84 10 3f ff mov -1, %g2 <== NOT EXECUTED
2036e8c: b6 10 00 16 mov %l6, %i3 <== NOT EXECUTED
2036e90: 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),
2036e94: 10 80 00 ef b 2037250 <msdos_find_name_in_fat_file+0x4d0> <== NOT EXECUTED
2036e98: 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)
2036e9c: 80 a2 20 1f cmp %o0, 0x1f <== NOT EXECUTED
2036ea0: 04 80 01 e6 ble 2037638 <msdos_find_name_in_fat_file+0x8b8><== NOT EXECUTED
2036ea4: 80 a2 00 11 cmp %o0, %l1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
assert(ret == bts2rd);
2036ea8: 02 80 00 0b be 2036ed4 <msdos_find_name_in_fat_file+0x154><== NOT EXECUTED
2036eac: 82 10 20 00 clr %g1 <== NOT EXECUTED
2036eb0: 11 00 81 9a sethi %hi(0x2066800), %o0 <== NOT EXECUTED
2036eb4: 15 00 81 9a sethi %hi(0x2066800), %o2 <== NOT EXECUTED
2036eb8: 17 00 81 9a sethi %hi(0x2066800), %o3 <== NOT EXECUTED
2036ebc: 90 12 20 50 or %o0, 0x50, %o0 <== NOT EXECUTED
2036ec0: 94 12 a1 80 or %o2, 0x180, %o2 <== NOT EXECUTED
2036ec4: 96 12 e0 a8 or %o3, 0xa8, %o3 <== NOT EXECUTED
2036ec8: 92 10 24 49 mov 0x449, %o1 <== NOT EXECUTED
2036ecc: 7f ff c5 53 call 2028418 <__assert_func> <== NOT EXECUTED
2036ed0: 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;
2036ed4: 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)
2036ed8: 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) ==
2036edc: 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)
2036ee0: 12 80 00 04 bne 2036ef0 <msdos_find_name_in_fat_file+0x170><== NOT EXECUTED
2036ee4: 86 00 c0 01 add %g3, %g1, %g3 <== NOT EXECUTED
2036ee8: ae 10 00 01 mov %g1, %l7 <== NOT EXECUTED
2036eec: b6 10 00 18 mov %i0, %i3 <== NOT EXECUTED
{
empty_space_entry = dir_entry;
empty_space_offset = dir_offset;
}
if (remainder_empty)
2036ef0: 98 89 20 ff andcc %g4, 0xff, %o4 <== NOT EXECUTED
2036ef4: 12 80 00 10 bne 2036f34 <msdos_find_name_in_fat_file+0x1b4><== NOT EXECUTED
2036ef8: 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)
2036efc: de 0f bf ef ldub [ %fp + -17 ], %o7 <== NOT EXECUTED
2036f00: ac 10 00 1b mov %i3, %l6 <== NOT EXECUTED
2036f04: a0 10 00 15 mov %l5, %l0 <== NOT EXECUTED
2036f08: 80 8b e0 ff btst 0xff, %o7 <== NOT EXECUTED
2036f0c: 02 80 01 d8 be 203766c <msdos_find_name_in_fat_file+0x8ec><== NOT EXECUTED
2036f10: 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)
2036f14: 80 8b 60 ff btst 0xff, %o5 <== NOT EXECUTED
2036f18: 12 80 00 e1 bne 203729c <msdos_find_name_in_fat_file+0x51c><== NOT EXECUTED
2036f1c: d8 07 a0 58 ld [ %fp + 0x58 ], %o4 <== NOT EXECUTED
{
empty_space_count +=
2036f20: ab 30 60 05 srl %g1, 5, %l5 <== NOT EXECUTED
entries_per_block - (dir_entry / MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
2036f24: 83 34 60 05 srl %l1, 5, %g1 <== NOT EXECUTED
2036f28: 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 +=
2036f2c: 10 80 00 dc b 203729c <msdos_find_name_in_fat_file+0x51c> <== NOT EXECUTED
2036f30: 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)
2036f34: 12 80 00 0d bne 2036f68 <msdos_find_name_in_fat_file+0x1e8><== NOT EXECUTED
2036f38: d4 07 bf e0 ld [ %fp + -32 ], %o2 <== NOT EXECUTED
{
if (create_node)
2036f3c: c6 07 bf e0 ld [ %fp + -32 ], %g3 <== NOT EXECUTED
2036f40: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
2036f44: 22 80 00 be be,a 203723c <msdos_find_name_in_fat_file+0x4bc><== NOT EXECUTED
2036f48: 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))
2036f4c: 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++;
2036f50: b8 07 20 01 inc %i4 <== NOT EXECUTED
if (empty_space_count == (lfn_entries + 1))
2036f54: 80 a7 00 04 cmp %i4, %g4 <== NOT EXECUTED
2036f58: 22 80 00 b8 be,a 2037238 <msdos_find_name_in_fat_file+0x4b8><== NOT EXECUTED
2036f5c: 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)
2036f60: 10 80 00 b7 b 203723c <msdos_find_name_in_fat_file+0x4bc> <== NOT EXECUTED
2036f64: 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)
2036f68: 80 a2 a0 00 cmp %o2, 0 <== NOT EXECUTED
2036f6c: 02 80 00 07 be 2036f88 <msdos_find_name_in_fat_file+0x208><== NOT EXECUTED
2036f70: d8 08 e0 0b ldub [ %g3 + 0xb ], %o4 <== NOT EXECUTED
2036f74: 80 8b 60 ff btst 0xff, %o5 <== NOT EXECUTED
2036f78: 12 80 00 04 bne 2036f88 <msdos_find_name_in_fat_file+0x208><== NOT EXECUTED
2036f7c: 01 00 00 00 nop <== NOT EXECUTED
2036f80: b8 10 20 00 clr %i4 ! 0 <PROM_START> <== NOT EXECUTED
2036f84: 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) ==
2036f88: 98 0b 20 3f and %o4, 0x3f, %o4 <== NOT EXECUTED
2036f8c: 80 a3 20 0f cmp %o4, 0xf <== NOT EXECUTED
2036f90: 12 80 00 56 bne 20370e8 <msdos_find_name_in_fat_file+0x368><== NOT EXECUTED
2036f94: 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)
2036f98: d8 07 bf f4 ld [ %fp + -12 ], %o4 <== NOT EXECUTED
2036f9c: 80 a3 3f ff cmp %o4, -1 <== NOT EXECUTED
2036fa0: 32 80 00 10 bne,a 2036fe0 <msdos_find_name_in_fat_file+0x260><== NOT EXECUTED
2036fa4: 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) &
2036fa8: 88 09 20 ff and %g4, 0xff, %g4 <== NOT EXECUTED
2036fac: 80 89 20 40 btst 0x40, %g4 <== NOT EXECUTED
2036fb0: 02 80 00 a2 be 2037238 <msdos_find_name_in_fat_file+0x4b8><== NOT EXECUTED
2036fb4: 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) &
2036fb8: 88 09 20 3f and %g4, 0x3f, %g4 <== NOT EXECUTED
2036fbc: 80 a4 c0 04 cmp %l3, %g4 <== NOT EXECUTED
2036fc0: 32 80 00 9f bne,a 203723c <msdos_find_name_in_fat_file+0x4bc><== NOT EXECUTED
2036fc4: 82 00 60 20 add %g1, 0x20, %g1 <== NOT EXECUTED
continue;
/*
* Get the checksum of the short entry.
*/
lfn_start.cln = dir_offset;
2036fc8: f0 27 bf f4 st %i0, [ %fp + -12 ] <== NOT EXECUTED
lfn_start.ofs = dir_entry;
2036fcc: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED
lfn_entry = lfn_entries;
lfn_checksum = *MSDOS_DIR_LFN_CHECKSUM(entry);
2036fd0: e4 08 e0 0d ldub [ %g3 + 0xd ], %l2 <== NOT EXECUTED
2036fd4: b4 10 00 13 mov %l3, %i2 <== NOT EXECUTED
2036fd8: 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) &
2036fdc: c8 08 c0 00 ldub [ %g3 ], %g4 <== NOT EXECUTED
2036fe0: 88 09 20 3f and %g4, 0x3f, %g4 <== NOT EXECUTED
2036fe4: 80 a6 80 04 cmp %i2, %g4 <== NOT EXECUTED
2036fe8: 32 80 00 94 bne,a 2037238 <msdos_find_name_in_fat_file+0x4b8><== NOT EXECUTED
2036fec: c4 27 bf f4 st %g2, [ %fp + -12 ] <== NOT EXECUTED
MSDOS_LAST_LONG_ENTRY_MASK)) ||
(lfn_checksum != *MSDOS_DIR_LFN_CHECKSUM(entry)))
2036ff0: c8 08 e0 0d ldub [ %g3 + 0xd ], %g4 <== NOT EXECUTED
2036ff4: 98 0c a0 ff and %l2, 0xff, %o4 <== NOT EXECUTED
2036ff8: 80 a3 00 04 cmp %o4, %g4 <== NOT EXECUTED
2036ffc: 02 80 00 04 be 203700c <msdos_find_name_in_fat_file+0x28c><== NOT EXECUTED
2037000: 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;
2037004: 10 80 00 8d b 2037238 <msdos_find_name_in_fat_file+0x4b8> <== NOT EXECUTED
2037008: c4 27 bf f4 st %g2, [ %fp + -12 ] <== NOT EXECUTED
}
lfn_entry--;
203700c: 98 06 bf ff add %i2, -1, %o4 <== NOT EXECUTED
o = lfn_entry * MSDOS_LFN_LEN_PER_ENTRY;
p = entry + 1;
2037010: 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;
2037014: 97 2b 20 02 sll %o4, 2, %o3 <== NOT EXECUTED
2037018: 95 2b 20 04 sll %o4, 4, %o2 <== NOT EXECUTED
p = entry + 1;
203701c: 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;
2037020: 96 22 80 0b sub %o2, %o3, %o3 <== NOT EXECUTED
2037024: 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]))
2037028: 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')
203702c: d4 48 c0 00 ldsb [ %g3 ], %o2 <== NOT EXECUTED
2037030: 80 a2 a0 00 cmp %o2, 0 <== NOT EXECUTED
2037034: 12 80 00 0c bne 2037064 <msdos_find_name_in_fat_file+0x2e4><== NOT EXECUTED
2037038: 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) &&
203703c: 80 a6 80 13 cmp %i2, %l3 <== NOT EXECUTED
2037040: 12 80 00 22 bne 20370c8 <msdos_find_name_in_fat_file+0x348><== NOT EXECUTED
2037044: 80 a3 20 00 cmp %o4, 0 <== NOT EXECUTED
2037048: c6 07 a0 54 ld [ %fp + 0x54 ], %g3 <== NOT EXECUTED
203704c: 88 01 00 0b add %g4, %o3, %g4 <== NOT EXECUTED
2037050: 80 a1 00 03 cmp %g4, %g3 <== NOT EXECUTED
2037054: 32 80 00 1c bne,a 20370c4 <msdos_find_name_in_fat_file+0x344><== NOT EXECUTED
2037058: c4 27 bf f4 st %g2, [ %fp + -12 ] <== NOT EXECUTED
p += 2;
break;
}
}
lfn_matched = ((lfn_entry == 0) &&
203705c: 10 80 00 1b b 20370c8 <msdos_find_name_in_fat_file+0x348> <== NOT EXECUTED
2037060: 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]))
2037064: 90 01 00 0b add %g4, %o3, %o0 <== NOT EXECUTED
2037068: 80 a2 00 0f cmp %o0, %o7 <== NOT EXECUTED
203706c: 36 80 00 16 bge,a 20370c4 <msdos_find_name_in_fat_file+0x344><== NOT EXECUTED
2037070: c4 27 bf f4 st %g2, [ %fp + -12 ] <== NOT EXECUTED
2037074: d0 4a 40 04 ldsb [ %o1 + %g4 ], %o0 <== NOT EXECUTED
2037078: 80 a2 80 08 cmp %o2, %o0 <== NOT EXECUTED
203707c: 02 80 00 04 be 203708c <msdos_find_name_in_fat_file+0x30c><== NOT EXECUTED
2037080: 80 a1 20 04 cmp %g4, 4 <== NOT EXECUTED
{
lfn_start.cln = FAT_FILE_SHORT_NAME;
break;
2037084: 10 80 00 10 b 20370c4 <msdos_find_name_in_fat_file+0x344> <== NOT EXECUTED
2037088: c4 27 bf f4 st %g2, [ %fp + -12 ] <== NOT EXECUTED
}
switch (i)
203708c: 02 80 00 06 be 20370a4 <msdos_find_name_in_fat_file+0x324><== NOT EXECUTED
2037090: 80 a1 20 0a cmp %g4, 0xa <== NOT EXECUTED
2037094: 32 80 00 08 bne,a 20370b4 <msdos_find_name_in_fat_file+0x334><== NOT EXECUTED
2037098: 86 00 e0 02 add %g3, 2, %g3 <== NOT EXECUTED
{
case 4:
p += 5;
break;
case 10:
p += 4;
203709c: 10 80 00 04 b 20370ac <msdos_find_name_in_fat_file+0x32c> <== NOT EXECUTED
20370a0: 86 00 e0 04 add %g3, 4, %g3 <== NOT EXECUTED
switch (i)
{
case 4:
p += 5;
break;
20370a4: 10 80 00 04 b 20370b4 <msdos_find_name_in_fat_file+0x334> <== NOT EXECUTED
20370a8: 86 00 e0 05 add %g3, 5, %g3 <== NOT EXECUTED
case 10:
p += 4;
break;
20370ac: 10 80 00 03 b 20370b8 <msdos_find_name_in_fat_file+0x338> <== NOT EXECUTED
20370b0: 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++)
20370b4: 88 01 20 01 inc %g4 <== NOT EXECUTED
20370b8: 80 a1 20 0d cmp %g4, 0xd <== NOT EXECUTED
20370bc: 32 bf ff dd bne,a 2037030 <msdos_find_name_in_fat_file+0x2b0><== NOT EXECUTED
20370c0: d4 48 c0 00 ldsb [ %g3 ], %o2 <== NOT EXECUTED
p += 2;
break;
}
}
lfn_matched = ((lfn_entry == 0) &&
20370c4: 80 a3 20 00 cmp %o4, 0 <== NOT EXECUTED
20370c8: 12 80 00 06 bne 20370e0 <msdos_find_name_in_fat_file+0x360><== NOT EXECUTED
20370cc: a0 10 20 00 clr %l0 <== NOT EXECUTED
20370d0: c6 07 bf f4 ld [ %fp + -12 ], %g3 <== NOT EXECUTED
20370d4: 86 38 00 03 xnor %g0, %g3, %g3 <== NOT EXECUTED
20370d8: 80 a0 00 03 cmp %g0, %g3 <== NOT EXECUTED
20370dc: a0 40 20 00 addx %g0, 0, %l0 <== NOT EXECUTED
20370e0: 10 80 00 56 b 2037238 <msdos_find_name_in_fat_file+0x4b8> <== NOT EXECUTED
20370e4: 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)
20370e8: 02 80 00 18 be 2037148 <msdos_find_name_in_fat_file+0x3c8><== NOT EXECUTED
20370ec: c8 07 a0 58 ld [ %fp + 0x58 ], %g4 <== NOT EXECUTED
20370f0: 88 10 20 00 clr %g4 <== NOT EXECUTED
20370f4: 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;
20370f8: d6 08 c0 04 ldub [ %g3 + %g4 ], %o3 <== NOT EXECUTED
20370fc: 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++)
2037100: 88 01 20 01 inc %g4 <== NOT EXECUTED
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
2037104: 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++)
2037108: 80 a1 20 0b cmp %g4, 0xb <== NOT EXECUTED
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
203710c: 96 02 80 0b add %o2, %o3, %o3 <== NOT EXECUTED
2037110: 98 0b 20 01 and %o4, 1, %o4 <== NOT EXECUTED
2037114: 98 20 00 0c neg %o4 <== NOT EXECUTED
2037118: 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++)
203711c: 12 bf ff f7 bne 20370f8 <msdos_find_name_in_fat_file+0x378><== NOT EXECUTED
2037120: 98 02 c0 0c add %o3, %o4, %o4 <== NOT EXECUTED
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
if (lfn_entry || (lfn_checksum != cs))
2037124: 98 0b 20 ff and %o4, 0xff, %o4 <== NOT EXECUTED
2037128: 88 0c a0 ff and %l2, 0xff, %g4 <== NOT EXECUTED
203712c: 80 a1 00 0c cmp %g4, %o4 <== NOT EXECUTED
2037130: 12 80 00 06 bne 2037148 <msdos_find_name_in_fat_file+0x3c8><== NOT EXECUTED
2037134: c8 07 a0 58 ld [ %fp + 0x58 ], %g4 <== NOT EXECUTED
2037138: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
203713c: 22 80 00 19 be,a 20371a0 <msdos_find_name_in_fat_file+0x420><== NOT EXECUTED
2037140: 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 ||
2037144: c8 07 a0 58 ld [ %fp + 0x58 ], %g4 <== NOT EXECUTED
2037148: 80 a1 20 01 cmp %g4, 1 <== NOT EXECUTED
203714c: 32 80 00 3a bne,a 2037234 <msdos_find_name_in_fat_file+0x4b4><== NOT EXECUTED
2037150: c4 27 bf f4 st %g2, [ %fp + -12 ] <== NOT EXECUTED
2037154: c8 07 bf f4 ld [ %fp + -12 ], %g4 <== NOT EXECUTED
2037158: 80 a1 3f ff cmp %g4, -1 <== NOT EXECUTED
203715c: 32 80 00 36 bne,a 2037234 <msdos_find_name_in_fat_file+0x4b4><== NOT EXECUTED
2037160: 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),
2037164: 90 10 00 03 mov %g3, %o0 <== NOT EXECUTED
2037168: c2 27 bf d4 st %g1, [ %fp + -44 ] <== NOT EXECUTED
203716c: c4 27 bf cc st %g2, [ %fp + -52 ] <== NOT EXECUTED
2037170: c6 27 bf d8 st %g3, [ %fp + -40 ] <== NOT EXECUTED
2037174: da 27 bf d0 st %o5, [ %fp + -48 ] <== NOT EXECUTED
2037178: 92 10 00 1d mov %i5, %o1 <== NOT EXECUTED
203717c: 40 00 3b c6 call 2046094 <memcmp> <== NOT EXECUTED
2037180: 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 ||
2037184: c2 07 bf d4 ld [ %fp + -44 ], %g1 <== NOT EXECUTED
2037188: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203718c: c4 07 bf cc ld [ %fp + -52 ], %g2 <== NOT EXECUTED
2037190: c6 07 bf d8 ld [ %fp + -40 ], %g3 <== NOT EXECUTED
2037194: 12 80 00 27 bne 2037230 <msdos_find_name_in_fat_file+0x4b0><== NOT EXECUTED
2037198: da 07 bf d0 ld [ %fp + -48 ], %o5 <== NOT EXECUTED
203719c: e4 07 bf e4 ld [ %fp + -28 ], %l2 <== NOT EXECUTED
20371a0: a0 10 00 15 mov %l5, %l0 <== NOT EXECUTED
20371a4: b6 10 00 03 mov %g3, %i3 <== NOT EXECUTED
20371a8: 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,
20371ac: 96 10 00 16 mov %l6, %o3 <== NOT EXECUTED
20371b0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20371b4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
20371b8: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
20371bc: 7f ff b6 eb call 2024d68 <fat_file_ioctl> <== NOT EXECUTED
20371c0: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED
dir_offset * bts2rd,
&dir_pos->sname.cln);
if (rc != RC_OK)
20371c4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20371c8: 12 80 01 2d bne 203767c <msdos_find_name_in_fat_file+0x8fc><== NOT EXECUTED
20371cc: 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)
20371d0: 80 a2 7f ff cmp %o1, -1 <== NOT EXECUTED
20371d4: 02 80 00 0d be 2037208 <msdos_find_name_in_fat_file+0x488><== NOT EXECUTED
20371d8: ea 24 a0 04 st %l5, [ %l2 + 4 ] <== NOT EXECUTED
{
rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
20371dc: 7f ff 2e 07 call 20029f8 <.umul> <== NOT EXECUTED
20371e0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
20371e4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
20371e8: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
20371ec: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
20371f0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20371f4: 7f ff b6 dd call 2024d68 <fat_file_ioctl> <== NOT EXECUTED
20371f8: 98 07 bf f4 add %fp, -12, %o4 <== NOT EXECUTED
lfn_start.cln * bts2rd,
&lfn_start.cln);
if (rc != RC_OK)
20371fc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2037200: 12 80 01 1f bne 203767c <msdos_find_name_in_fat_file+0x8fc><== NOT EXECUTED
2037204: 01 00 00 00 nop <== NOT EXECUTED
return rc;
}
dir_pos->lname.cln = lfn_start.cln;
2037208: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
dir_pos->lname.ofs = lfn_start.ofs;
memcpy(name_dir_entry, entry,
203720c: 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;
2037210: c2 24 a0 08 st %g1, [ %l2 + 8 ] <== NOT EXECUTED
dir_pos->lname.ofs = lfn_start.ofs;
2037214: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
memcpy(name_dir_entry, entry,
2037218: 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;
203721c: c2 24 a0 0c st %g1, [ %l2 + 0xc ] <== NOT EXECUTED
memcpy(name_dir_entry, entry,
2037220: 40 00 3b ce call 2046158 <memcpy> <== NOT EXECUTED
2037224: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED
#endif
/*
* The one more is the short entry.
*/
while (lfn_entry < (lfn_entries + 1))
2037228: 10 80 01 15 b 203767c <msdos_find_name_in_fat_file+0x8fc> <== NOT EXECUTED
203722c: 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;
2037230: c4 27 bf f4 st %g2, [ %fp + -12 ] <== NOT EXECUTED
2037234: 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)
2037238: 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;
203723c: 80 a0 40 11 cmp %g1, %l1 <== NOT EXECUTED
2037240: 2a bf ff 26 bcs,a 2036ed8 <msdos_find_name_in_fat_file+0x158><== NOT EXECUTED
2037244: c6 05 20 9c ld [ %l4 + 0x9c ], %g3 <== NOT EXECUTED
2037248: ac 05 80 11 add %l6, %l1, %l6 <== NOT EXECUTED
}
if (remainder_empty)
break;
dir_offset++;
203724c: 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),
2037250: d8 05 20 9c ld [ %l4 + 0x9c ], %o4 <== NOT EXECUTED
2037254: c4 27 bf cc st %g2, [ %fp + -52 ] <== NOT EXECUTED
2037258: da 27 bf d0 st %o5, [ %fp + -48 ] <== NOT EXECUTED
203725c: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
2037260: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2037264: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED
2037268: 7f ff b8 4b call 2025394 <fat_file_read> <== NOT EXECUTED
203726c: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
2037270: c4 07 bf cc ld [ %fp + -52 ], %g2 <== NOT EXECUTED
2037274: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2037278: 12 bf ff 09 bne 2036e9c <msdos_find_name_in_fat_file+0x11c><== NOT EXECUTED
203727c: 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)
2037280: d4 0f bf ef ldub [ %fp + -17 ], %o2 <== NOT EXECUTED
2037284: ac 10 00 1b mov %i3, %l6 <== NOT EXECUTED
2037288: a0 10 00 15 mov %l5, %l0 <== NOT EXECUTED
203728c: 80 8a a0 ff btst 0xff, %o2 <== NOT EXECUTED
2037290: 02 80 00 f7 be 203766c <msdos_find_name_in_fat_file+0x8ec><== NOT EXECUTED
2037294: 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)
2037298: d8 07 a0 58 ld [ %fp + 0x58 ], %o4 <== NOT EXECUTED
203729c: 80 a3 20 02 cmp %o4, 2 <== NOT EXECUTED
20372a0: 32 80 00 26 bne,a 2037338 <msdos_find_name_in_fat_file+0x5b8><== NOT EXECUTED
20372a4: 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;
20372a8: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
20372ac: 7f ff 2d d3 call 20029f8 <.umul> <== NOT EXECUTED
20372b0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20372b4: aa 04 e0 01 add %l3, 1, %l5 <== NOT EXECUTED
20372b8: 90 02 00 17 add %o0, %l7, %o0 <== NOT EXECUTED
20372bc: 82 10 20 00 clr %g1 <== NOT EXECUTED
20372c0: 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 = '~';
20372c4: 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;
20372c8: 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 == '.'))
20372cc: c4 4f 40 01 ldsb [ %i5 + %g1 ], %g2 <== NOT EXECUTED
20372d0: 80 a0 a0 2e cmp %g2, 0x2e <== NOT EXECUTED
20372d4: 22 80 00 06 be,a 20372ec <msdos_find_name_in_fat_file+0x56c><== NOT EXECUTED
20372d8: c6 2f 40 01 stb %g3, [ %i5 + %g1 ] <== NOT EXECUTED
20372dc: 80 a0 a0 20 cmp %g2, 0x20 <== NOT EXECUTED
20372e0: 32 80 00 04 bne,a 20372f0 <msdos_find_name_in_fat_file+0x570><== NOT EXECUTED
20372e4: 82 00 60 01 inc %g1 <== NOT EXECUTED
*c = '~';
20372e8: 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++)
20372ec: 82 00 60 01 inc %g1 <== NOT EXECUTED
20372f0: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED
20372f4: 32 bf ff f7 bne,a 20372d0 <msdos_find_name_in_fat_file+0x550><== NOT EXECUTED
20372f8: 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];
20372fc: 03 00 81 9a sethi %hi(0x2066800), %g1 <== NOT EXECUTED
2037300: c6 00 61 9c ld [ %g1 + 0x19c ], %g3 ! 206699c <hex.7058> <== NOT EXECUTED
char* c = MSDOS_DIR_NAME(sfn);
int i;
for (i = 0; i < 3; i++, c++)
if ((*c == ' ') || (*c == '.'))
*c = '~';
*c++ = '~';
2037304: 82 10 20 7e mov 0x7e, %g1 <== NOT EXECUTED
2037308: 84 07 60 04 add %i5, 4, %g2 <== NOT EXECUTED
203730c: c2 2f 60 03 stb %g1, [ %i5 + 3 ] <== NOT EXECUTED
for (i = 0; i < 4; i++, c++)
*c = hex[(num >> ((3 - i) * 4)) & 0xf];
2037310: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
2037314: 89 3d 40 01 sra %l5, %g1, %g4 <== NOT EXECUTED
2037318: 88 09 20 0f and %g4, 0xf, %g4 <== NOT EXECUTED
203731c: 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++)
2037320: 82 00 7f fc add %g1, -4, %g1 <== NOT EXECUTED
*c = hex[(num >> ((3 - i) * 4)) & 0xf];
2037324: 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++)
2037328: 80 a0 7f fc cmp %g1, -4 <== NOT EXECUTED
203732c: 12 bf ff fa bne 2037314 <msdos_find_name_in_fat_file+0x594><== NOT EXECUTED
2037330: 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)
2037334: c0 2f bf ef clrb [ %fp + -17 ] <== NOT EXECUTED
2037338: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
203733c: 02 80 00 0f be 2037378 <msdos_find_name_in_fat_file+0x5f8><== NOT EXECUTED
2037340: 82 10 20 00 clr %g1 <== NOT EXECUTED
2037344: 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 =
2037348: c6 0f 40 01 ldub [ %i5 + %g1 ], %g3 <== NOT EXECUTED
203734c: 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++)
2037350: 82 00 60 01 inc %g1 <== NOT EXECUTED
lfn_checksum =
2037354: 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++)
2037358: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED
lfn_checksum =
203735c: 86 01 00 03 add %g4, %g3, %g3 <== NOT EXECUTED
2037360: 84 08 a0 01 and %g2, 1, %g2 <== NOT EXECUTED
2037364: 84 20 00 02 neg %g2 <== NOT EXECUTED
2037368: 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++)
203736c: 12 bf ff f7 bne 2037348 <msdos_find_name_in_fat_file+0x5c8><== NOT EXECUTED
2037370: 84 00 c0 02 add %g3, %g2, %g2 <== NOT EXECUTED
2037374: 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)
2037378: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED
203737c: 12 80 00 05 bne 2037390 <msdos_find_name_in_fat_file+0x610><== NOT EXECUTED
2037380: 80 a6 00 16 cmp %i0, %l6 <== NOT EXECUTED
2037384: b8 10 20 01 mov 1, %i4 <== NOT EXECUTED
2037388: 10 80 00 05 b 203739c <msdos_find_name_in_fat_file+0x61c> <== NOT EXECUTED
203738c: 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)
2037390: 12 80 00 04 bne 20373a0 <msdos_find_name_in_fat_file+0x620><== NOT EXECUTED
2037394: b8 10 20 01 mov 1, %i4 <== NOT EXECUTED
2037398: b8 10 20 00 clr %i4 <== NOT EXECUTED
203739c: 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;
20373a0: 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,
20373a4: 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;
20373a8: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED
20373ac: 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,
20373b0: 7f ff 2d 92 call 20029f8 <.umul> <== NOT EXECUTED
20373b4: 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)
20373b8: 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,
20373bc: b6 10 20 00 clr %i3 <== NOT EXECUTED
20373c0: 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)
20373c4: de 27 bf e8 st %o7, [ %fp + -24 ] <== NOT EXECUTED
#endif
/*
* The one more is the short entry.
*/
while (lfn_entry < (lfn_entries + 1))
20373c8: 10 80 00 a4 b 2037658 <msdos_find_name_in_fat_file+0x8d8> <== NOT EXECUTED
20373cc: b0 10 00 1d mov %i5, %i0 <== NOT EXECUTED
{
int length = 0;
if (read_cluster)
20373d0: 02 80 00 26 be 2037468 <msdos_find_name_in_fat_file+0x6e8><== NOT EXECUTED
20373d4: 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,
20373d8: d8 05 20 9c ld [ %l4 + 0x9c ], %o4 <== NOT EXECUTED
20373dc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20373e0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
20373e4: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED
20373e8: 7f ff b7 eb call 2025394 <fat_file_read> <== NOT EXECUTED
20373ec: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
(empty_space_offset * bts2rd), bts2rd,
fs_info->cl_buf);
if (ret != bts2rd)
20373f0: 80 a2 00 11 cmp %o0, %l1 <== NOT EXECUTED
20373f4: 02 80 00 1c be 2037464 <msdos_find_name_in_fat_file+0x6e4><== NOT EXECUTED
20373f8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
{
if (ret != FAT_EOF)
20373fc: 12 80 00 8f bne 2037638 <msdos_find_name_in_fat_file+0x8b8><== NOT EXECUTED
2037400: 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,
2037404: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2037408: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED
203740c: 7f ff b6 cd call 2024f40 <fat_file_extend> <== NOT EXECUTED
2037410: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
&new_length);
if (ret != RC_OK)
2037414: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2037418: 12 80 00 99 bne 203767c <msdos_find_name_in_fat_file+0x8fc><== NOT EXECUTED
203741c: 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))
2037420: 80 a0 40 15 cmp %g1, %l5 <== NOT EXECUTED
2037424: 12 80 00 85 bne 2037638 <msdos_find_name_in_fat_file+0x8b8><== NOT EXECUTED
2037428: 92 10 20 00 clr %o1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
memset(fs_info->cl_buf, 0, bts2rd);
203742c: d0 05 20 9c ld [ %l4 + 0x9c ], %o0 <== NOT EXECUTED
2037430: 40 00 3b dd call 20463a4 <memset> <== NOT EXECUTED
2037434: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
ret = fat_file_write(mt_entry, fat_fd,
2037438: d8 05 20 9c ld [ %l4 + 0x9c ], %o4 <== NOT EXECUTED
203743c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2037440: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2037444: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED
2037448: 7f ff b7 3b call 2025134 <fat_file_write> <== NOT EXECUTED
203744c: 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)
2037450: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED
2037454: 02 80 00 89 be 2037678 <msdos_find_name_in_fat_file+0x8f8><== NOT EXECUTED
2037458: 80 a2 00 11 cmp %o0, %l1 <== NOT EXECUTED
return ret;
else if (ret != bts2rd)
203745c: 12 80 00 77 bne 2037638 <msdos_find_name_in_fat_file+0x8b8><== NOT EXECUTED
2037460: 01 00 00 00 nop <== NOT EXECUTED
2037464: c4 07 bf e8 ld [ %fp + -24 ], %g2 <== NOT EXECUTED
2037468: 86 38 00 1b xnor %g0, %i3, %g3 <== NOT EXECUTED
203746c: 86 00 c0 13 add %g3, %l3, %g3 <== NOT EXECUTED
2037470: 82 06 e0 01 add %i3, 1, %g1 <== NOT EXECUTED
2037474: 89 28 e0 04 sll %g3, 4, %g4 <== NOT EXECUTED
2037478: 82 20 80 01 sub %g2, %g1, %g1 <== NOT EXECUTED
203747c: 85 28 e0 02 sll %g3, 2, %g2 <== NOT EXECUTED
2037480: 84 21 00 02 sub %g4, %g2, %g2 <== NOT EXECUTED
2037484: 84 00 80 03 add %g2, %g3, %g2 <== NOT EXECUTED
2037488: c6 07 a0 50 ld [ %fp + 0x50 ], %g3 <== NOT EXECUTED
203748c: b8 10 00 17 mov %l7, %i4 <== NOT EXECUTED
2037490: 84 00 c0 02 add %g3, %g2, %g2 <== NOT EXECUTED
2037494: 10 80 00 5a b 20375fc <msdos_find_name_in_fat_file+0x87c> <== NOT EXECUTED
2037498: 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))
203749c: 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++;
20374a0: 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;
20374a4: 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))
20374a8: 80 a6 c0 04 cmp %i3, %g4 <== NOT EXECUTED
20374ac: 12 80 00 23 bne 2037538 <msdos_find_name_in_fat_file+0x7b8><== NOT EXECUTED
20374b0: 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,
20374b4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20374b8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
20374bc: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
20374c0: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
20374c4: 7f ff b6 29 call 2024d68 <fat_file_ioctl> <== NOT EXECUTED
20374c8: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED
empty_space_offset * bts2rd,
&dir_pos->sname.cln);
if (rc != RC_OK)
20374cc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20374d0: 12 80 00 6b bne 203767c <msdos_find_name_in_fat_file+0x8fc><== NOT EXECUTED
20374d4: 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)
20374d8: 80 a2 7f ff cmp %o1, -1 <== NOT EXECUTED
20374dc: 02 80 00 0d be 2037510 <msdos_find_name_in_fat_file+0x790><== NOT EXECUTED
20374e0: f8 24 a0 04 st %i4, [ %l2 + 4 ] <== NOT EXECUTED
{
rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
20374e4: 7f ff 2d 45 call 20029f8 <.umul> <== NOT EXECUTED
20374e8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
20374ec: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
20374f0: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
20374f4: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
20374f8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20374fc: 7f ff b6 1b call 2024d68 <fat_file_ioctl> <== NOT EXECUTED
2037500: 98 07 bf f4 add %fp, -12, %o4 <== NOT EXECUTED
lfn_start.cln * bts2rd,
&lfn_start.cln);
if (rc != RC_OK)
2037504: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2037508: 12 80 00 5d bne 203767c <msdos_find_name_in_fat_file+0x8fc><== NOT EXECUTED
203750c: 01 00 00 00 nop <== NOT EXECUTED
return rc;
}
dir_pos->lname.cln = lfn_start.cln;
2037510: 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,
2037514: 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;
2037518: c2 24 a0 08 st %g1, [ %l2 + 8 ] <== NOT EXECUTED
dir_pos->lname.ofs = lfn_start.ofs;
203751c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
/* write new node entry */
memcpy (entry, (uint8_t *) name_dir_entry,
2037520: 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;
2037524: c2 24 a0 0c st %g1, [ %l2 + 0xc ] <== NOT EXECUTED
/* write new node entry */
memcpy (entry, (uint8_t *) name_dir_entry,
2037528: 40 00 3b 0c call 2046158 <memcpy> <== NOT EXECUTED
203752c: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
break;
2037530: 10 80 00 37 b 203760c <msdos_find_name_in_fat_file+0x88c> <== NOT EXECUTED
2037534: 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)
2037538: c6 07 bf f4 ld [ %fp + -12 ], %g3 <== NOT EXECUTED
203753c: 80 a0 ff ff cmp %g3, -1 <== NOT EXECUTED
2037540: 12 80 00 04 bne 2037550 <msdos_find_name_in_fat_file+0x7d0><== NOT EXECUTED
2037544: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED
{
lfn_start.cln = empty_space_offset;
2037548: ec 27 bf f4 st %l6, [ %fp + -12 ] <== NOT EXECUTED
lfn_start.ofs = dir_entry;
203754c: 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);
2037550: c2 27 bf d4 st %g1, [ %fp + -44 ] <== NOT EXECUTED
2037554: c4 27 bf cc st %g2, [ %fp + -52 ] <== NOT EXECUTED
2037558: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED
203755c: 40 00 3b 92 call 20463a4 <memset> <== NOT EXECUTED
2037560: 92 10 20 00 clr %o1 <== NOT EXECUTED
*MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;
2037564: d4 0f bf ef ldub [ %fp + -17 ], %o2 <== NOT EXECUTED
p = entry + 1;
2037568: 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;
203756c: d4 2f 60 0d stb %o2, [ %i5 + 0xd ] <== NOT EXECUTED
p = entry + 1;
2037570: c4 07 bf cc ld [ %fp + -52 ], %g2 <== NOT EXECUTED
2037574: c2 07 bf d4 ld [ %fp + -44 ], %g1 <== NOT EXECUTED
2037578: 9a 10 00 02 mov %g2, %o5 <== NOT EXECUTED
203757c: 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;
2037580: d8 0b 40 00 ldub [ %o5 ], %o4 <== NOT EXECUTED
2037584: d8 28 c0 00 stb %o4, [ %g3 ] <== NOT EXECUTED
if (*n != 0)
2037588: d8 4b 40 00 ldsb [ %o5 ], %o4 <== NOT EXECUTED
n++;
203758c: 80 a0 00 0c cmp %g0, %o4 <== NOT EXECUTED
2037590: 9a 40 00 0d addx %g0, %o5, %o5 <== NOT EXECUTED
switch (i)
2037594: 80 a1 20 04 cmp %g4, 4 <== NOT EXECUTED
2037598: 02 80 00 06 be 20375b0 <msdos_find_name_in_fat_file+0x830><== NOT EXECUTED
203759c: 80 a1 20 0a cmp %g4, 0xa <== NOT EXECUTED
20375a0: 32 80 00 08 bne,a 20375c0 <msdos_find_name_in_fat_file+0x840><== NOT EXECUTED
20375a4: 86 00 e0 02 add %g3, 2, %g3 <== NOT EXECUTED
{
case 4:
p += 5;
break;
case 10:
p += 4;
20375a8: 10 80 00 04 b 20375b8 <msdos_find_name_in_fat_file+0x838> <== NOT EXECUTED
20375ac: 86 00 e0 04 add %g3, 4, %g3 <== NOT EXECUTED
switch (i)
{
case 4:
p += 5;
break;
20375b0: 10 80 00 04 b 20375c0 <msdos_find_name_in_fat_file+0x840> <== NOT EXECUTED
20375b4: 86 00 e0 05 add %g3, 5, %g3 <== NOT EXECUTED
case 10:
p += 4;
break;
20375b8: 10 80 00 03 b 20375c4 <msdos_find_name_in_fat_file+0x844> <== NOT EXECUTED
20375bc: 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++)
20375c0: 88 01 20 01 inc %g4 <== NOT EXECUTED
20375c4: 80 a1 20 0d cmp %g4, 0xd <== NOT EXECUTED
20375c8: 32 bf ff ef bne,a 2037584 <msdos_find_name_in_fat_file+0x804><== NOT EXECUTED
20375cc: d8 0b 40 00 ldub [ %o5 ], %o4 <== NOT EXECUTED
break;
}
}
*MSDOS_DIR_ENTRY_TYPE(entry) = (lfn_entries - lfn_entry) + 1;
if (lfn_entry == 1)
20375d0: 80 a6 e0 01 cmp %i3, 1 <== NOT EXECUTED
20375d4: 12 80 00 04 bne 20375e4 <msdos_find_name_in_fat_file+0x864><== NOT EXECUTED
20375d8: c2 2f 40 00 stb %g1, [ %i5 ] <== NOT EXECUTED
*MSDOS_DIR_ENTRY_TYPE(entry) |= MSDOS_LAST_LONG_ENTRY;
20375dc: 86 10 60 40 or %g1, 0x40, %g3 <== NOT EXECUTED
20375e0: c6 2f 40 00 stb %g3, [ %i5 ] <== NOT EXECUTED
*MSDOS_DIR_ATTR(entry) |= MSDOS_ATTR_LFN;
20375e4: 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)
20375e8: 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;
20375ec: 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)
20375f0: 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;
20375f4: 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)
20375f8: 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;
20375fc: 80 a7 00 11 cmp %i4, %l1 <== NOT EXECUTED
2037600: 2a bf ff a7 bcs,a 203749c <msdos_find_name_in_fat_file+0x71c><== NOT EXECUTED
2037604: 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,
2037608: d8 05 20 9c ld [ %l4 + 0x9c ], %o4 <== NOT EXECUTED
203760c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2037610: 98 03 00 17 add %o4, %l7, %o4 <== NOT EXECUTED
2037614: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2037618: 94 05 40 17 add %l5, %l7, %o2 <== NOT EXECUTED
203761c: 7f ff b6 c6 call 2025134 <fat_file_write> <== NOT EXECUTED
2037620: 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)
2037624: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED
2037628: 02 80 00 14 be 2037678 <msdos_find_name_in_fat_file+0x8f8><== NOT EXECUTED
203762c: 80 a2 00 1a cmp %o0, %i2 <== NOT EXECUTED
return ret;
else if (ret != length)
2037630: 02 80 00 07 be 203764c <msdos_find_name_in_fat_file+0x8cc><== NOT EXECUTED
2037634: aa 05 40 11 add %l5, %l1, %l5 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2037638: 40 00 2d 7c call 2042c28 <__errno> <== NOT EXECUTED
203763c: 01 00 00 00 nop <== NOT EXECUTED
2037640: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
2037644: 10 80 00 0d b 2037678 <msdos_find_name_in_fat_file+0x8f8> <== NOT EXECUTED
2037648: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
empty_space_offset++;
203764c: ac 05 a0 01 inc %l6 <== NOT EXECUTED
2037650: ae 10 20 00 clr %l7 <== NOT EXECUTED
2037654: b8 10 20 01 mov 1, %i4 <== NOT EXECUTED
#endif
/*
* The one more is the short entry.
*/
while (lfn_entry < (lfn_entries + 1))
2037658: 80 a4 c0 1b cmp %l3, %i3 <== NOT EXECUTED
203765c: 16 bf ff 5d bge 20373d0 <msdos_find_name_in_fat_file+0x650><== NOT EXECUTED
2037660: 80 8f 20 ff btst 0xff, %i4 <== NOT EXECUTED
2037664: 10 80 00 06 b 203767c <msdos_find_name_in_fat_file+0x8fc> <== NOT EXECUTED
2037668: 90 10 20 00 clr %o0 <== NOT EXECUTED
203766c: 11 00 00 1f sethi %hi(0x7c00), %o0 <== NOT EXECUTED
2037670: 10 80 00 03 b 203767c <msdos_find_name_in_fat_file+0x8fc> <== NOT EXECUTED
2037674: 90 12 21 01 or %o0, 0x101, %o0 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
2037678: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
empty_space_entry = 0;
read_cluster = true;
}
return 0;
}
203767c: 81 c7 e0 08 ret <== NOT EXECUTED
2037680: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02036bfc <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
)
{
2036bfc: 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) &&
2036c00: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
2036c04: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2036c08: 12 80 00 0f bne 2036c44 <msdos_find_node_by_cluster_num_in_fat_file+0x48><== NOT EXECUTED
2036c0c: e8 06 20 34 ld [ %i0 + 0x34 ], %l4 <== NOT EXECUTED
2036c10: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED
2036c14: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2036c18: 32 80 00 07 bne,a 2036c34 <msdos_find_node_by_cluster_num_in_fat_file+0x38><== NOT EXECUTED
2036c1c: e2 15 20 06 lduh [ %l4 + 6 ], %l1 <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
2036c20: c2 0d 20 0a ldub [ %l4 + 0xa ], %g1 <== NOT EXECUTED
2036c24: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
2036c28: 22 80 00 03 be,a 2036c34 <msdos_find_node_by_cluster_num_in_fat_file+0x38><== NOT EXECUTED
2036c2c: e2 15 20 06 lduh [ %l4 + 6 ], %l1 <== NOT EXECUTED
bts2rd = fat_fd->fat_file_size;
2036c30: 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)
2036c34: 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) &&
2036c38: 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)
2036c3c: 10 80 00 44 b 2036d4c <msdos_find_node_by_cluster_num_in_fat_file+0x150><== NOT EXECUTED
2036c40: 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;
2036c44: 10 bf ff fc b 2036c34 <msdos_find_node_by_cluster_num_in_fat_file+0x38><== NOT EXECUTED
2036c48: 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 )
2036c4c: 14 80 00 08 bg 2036c6c <msdos_find_node_by_cluster_num_in_fat_file+0x70><== NOT EXECUTED
2036c50: 80 a2 00 11 cmp %o0, %l1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
2036c54: 40 00 2f f5 call 2042c28 <__errno> <== NOT EXECUTED
2036c58: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2036c5c: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2036c60: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2036c64: 81 c7 e0 08 ret <== NOT EXECUTED
2036c68: 81 e8 00 00 restore <== NOT EXECUTED
assert(ret == bts2rd);
2036c6c: 22 80 00 0a be,a 2036c94 <msdos_find_node_by_cluster_num_in_fat_file+0x98><== NOT EXECUTED
2036c70: e0 05 20 9c ld [ %l4 + 0x9c ], %l0 <== NOT EXECUTED
2036c74: 11 00 81 9a sethi %hi(0x2066800), %o0 <== NOT EXECUTED
2036c78: 15 00 81 9a sethi %hi(0x2066800), %o2 <== NOT EXECUTED
2036c7c: 17 00 81 9a sethi %hi(0x2066800), %o3 <== NOT EXECUTED
2036c80: 90 12 20 50 or %o0, 0x50, %o0 <== NOT EXECUTED
2036c84: 94 12 a1 50 or %o2, 0x150, %o2 <== NOT EXECUTED
2036c88: 96 12 e0 a8 or %o3, 0xa8, %o3 <== NOT EXECUTED
2036c8c: 7f ff c5 e3 call 2028418 <__assert_func> <== NOT EXECUTED
2036c90: 92 10 26 95 mov 0x695, %o1 <== NOT EXECUTED
2036c94: 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)) ==
2036c98: c2 0c 00 00 ldub [ %l0 ], %g1 <== NOT EXECUTED
2036c9c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2036ca0: 02 80 00 34 be 2036d70 <msdos_find_node_by_cluster_num_in_fat_file+0x174><== NOT EXECUTED
2036ca4: 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)) ==
2036ca8: 22 80 00 25 be,a 2036d3c <msdos_find_node_by_cluster_num_in_fat_file+0x140><== NOT EXECUTED
2036cac: 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)
2036cb0: c2 14 20 1a lduh [ %l0 + 0x1a ], %g1 <== NOT EXECUTED
2036cb4: c4 14 20 14 lduh [ %l0 + 0x14 ], %g2 <== NOT EXECUTED
2036cb8: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
2036cbc: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
2036cc0: 87 30 60 18 srl %g1, 0x18, %g3 <== NOT EXECUTED
2036cc4: 89 30 a0 18 srl %g2, 0x18, %g4 <== NOT EXECUTED
2036cc8: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED
2036ccc: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
2036cd0: 82 08 40 15 and %g1, %l5, %g1 <== NOT EXECUTED
2036cd4: 84 08 80 15 and %g2, %l5, %g2 <== NOT EXECUTED
2036cd8: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
2036cdc: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
2036ce0: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
2036ce4: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
2036ce8: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED
2036cec: 32 80 00 14 bne,a 2036d3c <msdos_find_node_by_cluster_num_in_fat_file+0x140><== NOT EXECUTED
2036cf0: 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,
2036cf4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2036cf8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2036cfc: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
2036d00: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
2036d04: 7f ff b8 19 call 2024d68 <fat_file_ioctl> <== NOT EXECUTED
2036d08: 98 10 00 1b mov %i3, %o4 <== NOT EXECUTED
&dir_pos->sname.cln);
if (rc != RC_OK)
2036d0c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2036d10: 12 bf ff d5 bne 2036c64 <msdos_find_node_by_cluster_num_in_fat_file+0x68><== NOT EXECUTED
2036d14: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
return rc;
dir_pos->sname.ofs = i;
2036d18: 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,
2036d1c: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
2036d20: 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;
2036d24: 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;
2036d28: c2 26 e0 08 st %g1, [ %i3 + 8 ] <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
memcpy(dir_entry, entry,
2036d2c: 40 00 3d 0b call 2046158 <memcpy> <== NOT EXECUTED
2036d30: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
return RC_OK;
2036d34: 81 c7 e0 08 ret <== NOT EXECUTED
2036d38: 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)
2036d3c: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED
2036d40: 0a bf ff d6 bcs 2036c98 <msdos_find_node_by_cluster_num_in_fat_file+0x9c><== NOT EXECUTED
2036d44: a0 04 20 20 add %l0, 0x20, %l0 <== NOT EXECUTED
2036d48: 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,
2036d4c: d8 05 20 9c ld [ %l4 + 0x9c ], %o4 <== NOT EXECUTED
2036d50: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2036d54: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2036d58: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
2036d5c: 7f ff b9 8e call 2025394 <fat_file_read> <== NOT EXECUTED
2036d60: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
2036d64: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2036d68: 12 bf ff b9 bne 2036c4c <msdos_find_node_by_cluster_num_in_fat_file+0x50><== NOT EXECUTED
2036d6c: 80 a2 20 1f cmp %o0, 0x1f <== NOT EXECUTED
2036d70: 31 00 00 1f sethi %hi(0x7c00), %i0 <== NOT EXECUTED
2036d74: b0 16 21 01 or %i0, 0x101, %i0 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
}
}
j++;
}
return MSDOS_NAME_NOT_FOUND_ERR;
}
2036d78: 81 c7 e0 08 ret <== NOT EXECUTED
2036d7c: 81 e8 00 00 restore <== NOT EXECUTED
0201f290 <msdos_format>:
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
201f290: 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,
201f294: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
201f298: 96 10 00 18 mov %i0, %o3 <== NOT EXECUTED
201f29c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201f2a0: 15 00 81 87 sethi %hi(0x2061c00), %o2 <== NOT EXECUTED
201f2a4: 7f ff ff 7b call 201f090 <msdos_format_printf> <== NOT EXECUTED
201f2a8: 94 12 a3 80 or %o2, 0x380, %o2 ! 2061f80 <C.6.6032+0xdb0> <== NOT EXECUTED
"formating: %s\n", devname);
/*
* sanity check on device
*/
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
201f2ac: 96 10 00 18 mov %i0, %o3 <== NOT EXECUTED
201f2b0: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201f2b4: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
201f2b8: 15 00 81 87 sethi %hi(0x2061c00), %o2 <== NOT EXECUTED
201f2bc: 7f ff ff 75 call 201f090 <msdos_format_printf> <== NOT EXECUTED
201f2c0: 94 12 a3 90 or %o2, 0x390, %o2 ! 2061f90 <C.6.6032+0xdc0> <== NOT EXECUTED
"stat check: %s\n", devname);
if (ret_val == 0) {
rc = stat(devname, &stat_buf);
201f2c4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
201f2c8: 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);
201f2cc: 7f ff aa 26 call 2009b64 <stat> <== NOT EXECUTED
201f2d0: 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) &&
201f2d4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
201f2d8: 12 80 00 13 bne 201f324 <msdos_format+0x94> <== NOT EXECUTED
201f2dc: a4 10 20 00 clr %l2 <== NOT EXECUTED
(!S_ISBLK(stat_buf.st_mode))) {
201f2e0: c4 07 bf b4 ld [ %fp + -76 ], %g2 <== NOT EXECUTED
201f2e4: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
201f2e8: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED
201f2ec: 03 00 00 18 sethi %hi(0x6000), %g1 <== NOT EXECUTED
201f2f0: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
201f2f4: 02 80 02 ec be 201fea4 <msdos_format+0xc14> <== NOT EXECUTED
201f2f8: 01 00 00 00 nop <== NOT EXECUTED
errno = ENOTTY;
201f2fc: 40 00 8e 4b call 2042c28 <__errno> <== NOT EXECUTED
201f300: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
201f304: 82 10 20 19 mov 0x19, %g1 <== NOT EXECUTED
201f308: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
201f30c: 10 80 00 06 b 201f324 <msdos_format+0x94> <== NOT EXECUTED
201f310: 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;
201f314: 40 00 8e 45 call 2042c28 <__errno> <== NOT EXECUTED
201f318: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
201f31c: 82 10 20 19 mov 0x19, %g1 <== NOT EXECUTED
201f320: 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) &&
201f324: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
201f328: 12 80 02 d8 bne 201fe88 <msdos_format+0xbf8> <== NOT EXECUTED
201f32c: a2 10 3f ff mov -1, %l1 <== NOT EXECUTED
201f330: 10 80 01 5f b 201f8ac <msdos_format+0x61c> <== NOT EXECUTED
201f334: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
}
/*
* determine number of FATs
*/
if (ret_val == 0) {
if ((rqdata == NULL) ||
201f338: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
201f33c: 12 80 00 04 bne 201f34c <msdos_format+0xbc> <== NOT EXECUTED
201f340: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED
(rqdata->fat_num == 0)) {
fmt_params->fat_num = 2;
201f344: 10 80 00 04 b 201f354 <msdos_format+0xc4> <== NOT EXECUTED
201f348: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED
}
else if (rqdata->fat_num <= 6) {
201f34c: 18 80 00 f8 bgu 201f72c <msdos_format+0x49c> <== NOT EXECUTED
201f350: a0 10 20 16 mov 0x16, %l0 <== NOT EXECUTED
fmt_params->fat_num = rqdata->fat_num;
201f354: 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,
201f358: d6 0f bf 88 ldub [ %fp + -120 ], %o3 <== NOT EXECUTED
201f35c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201f360: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
201f364: 15 00 81 87 sethi %hi(0x2061c00), %o2 <== NOT EXECUTED
201f368: 7f ff ff 4a call 201f090 <msdos_format_printf> <== NOT EXECUTED
201f36c: 94 12 a3 a0 or %o2, 0x3a0, %o2 ! 2061fa0 <C.6.6032+0xdd0> <== NOT EXECUTED
/*
* determine FAT type and sectors per cluster
* depends on
*/
if (ret_val == 0) {
fmt_params->sectors_per_cluster = 1;
201f370: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
if ((rqdata != NULL) &&
201f374: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
201f378: 02 80 00 15 be 201f3cc <msdos_format+0x13c> <== NOT EXECUTED
201f37c: c2 27 bf 64 st %g1, [ %fp + -156 ] <== NOT EXECUTED
201f380: c2 0e 60 14 ldub [ %i1 + 0x14 ], %g1 <== NOT EXECUTED
201f384: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
201f388: 02 80 00 07 be 201f3a4 <msdos_format+0x114> <== NOT EXECUTED
201f38c: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
(rqdata->fattype == MSDOS_FMT_FAT12)) {
fmt_params->fattype = FAT_FAT12;
}
else if ((rqdata != NULL) &&
201f390: 02 80 00 05 be 201f3a4 <msdos_format+0x114> <== NOT EXECUTED
201f394: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED
(rqdata->fattype == MSDOS_FMT_FAT16)) {
fmt_params->fattype = FAT_FAT16;
}
else if ((rqdata != NULL) &&
201f398: 12 80 00 06 bne 201f3b0 <msdos_format+0x120> <== NOT EXECUTED
201f39c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
(rqdata->fattype == MSDOS_FMT_FAT32)) {
fmt_params->fattype = FAT_FAT32;
201f3a0: 82 10 20 04 mov 4, %g1 <== NOT EXECUTED
201f3a4: c2 2f bf 8a stb %g1, [ %fp + -118 ] <== NOT EXECUTED
201f3a8: 10 80 00 32 b 201f470 <msdos_format+0x1e0> <== NOT EXECUTED
201f3ac: a0 10 20 00 clr %l0 <== NOT EXECUTED
}
else if ((rqdata != NULL) &&
201f3b0: 02 80 00 08 be 201f3d0 <msdos_format+0x140> <== NOT EXECUTED
201f3b4: c2 07 bf 5c ld [ %fp + -164 ], %g1 <== NOT EXECUTED
(rqdata->fattype != MSDOS_FMT_FATANY)) {
ret_val = -1;
errno = EINVAL;
201f3b8: 40 00 8e 1c call 2042c28 <__errno> <== NOT EXECUTED
201f3bc: a0 10 3f ff mov -1, %l0 <== NOT EXECUTED
201f3c0: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
201f3c4: 10 80 00 2b b 201f470 <msdos_format+0x1e0> <== NOT EXECUTED
201f3c8: 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
201f3cc: c2 07 bf 5c ld [ %fp + -164 ], %g1 <== NOT EXECUTED
201f3d0: 05 00 00 1f sethi %hi(0x7c00), %g2 <== NOT EXECUTED
201f3d4: 84 10 a3 a7 or %g2, 0x3a7, %g2 ! 7fa7 <PROM_START+0x7fa7> <== NOT EXECUTED
201f3d8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
201f3dc: 18 80 00 04 bgu 201f3ec <msdos_format+0x15c> <== NOT EXECUTED
201f3e0: 05 00 07 ff sethi %hi(0x1ffc00), %g2 <== NOT EXECUTED
< ((uint32_t)FAT_FAT12_MAX_CLN)*8) {
fmt_params->fattype = FAT_FAT12;
201f3e4: 10 80 00 07 b 201f400 <msdos_format+0x170> <== NOT EXECUTED
201f3e8: 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
201f3ec: 84 10 a2 9f or %g2, 0x29f, %g2 <== NOT EXECUTED
201f3f0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
201f3f4: 18 80 00 06 bgu 201f40c <msdos_format+0x17c> <== NOT EXECUTED
201f3f8: 84 10 20 00 clr %g2 <== NOT EXECUTED
< ((uint32_t)FAT_FAT16_MAX_CLN)*32) {
fmt_params->fattype = FAT_FAT16;
201f3fc: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED
201f400: c2 2f bf 8a stb %g1, [ %fp + -118 ] <== NOT EXECUTED
/* start trying with small clusters */
fmt_params->sectors_per_cluster = 2;
201f404: 10 80 00 15 b 201f458 <msdos_format+0x1c8> <== NOT EXECUTED
201f408: 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;
201f40c: 07 10 00 00 sethi %hi(0x40000000), %g3 <== NOT EXECUTED
201f410: aa 85 40 03 addcc %l5, %g3, %l5 <== NOT EXECUTED
201f414: 83 35 60 1e srl %l5, 0x1e, %g1 <== NOT EXECUTED
201f418: 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)
201f41c: 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;
201f420: a9 2d 20 02 sll %l4, 2, %l4 <== NOT EXECUTED
201f424: a8 15 00 01 or %l4, %g1, %l4 <== NOT EXECUTED
201f428: 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)
201f42c: 87 28 80 01 sll %g2, %g1, %g3 <== NOT EXECUTED
201f430: 80 88 c0 14 btst %g3, %l4 <== NOT EXECUTED
201f434: 32 80 00 06 bne,a 201f44c <msdos_format+0x1bc> <== NOT EXECUTED
201f438: 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--)
201f43c: 82 80 7f ff addcc %g1, -1, %g1 <== NOT EXECUTED
201f440: 12 bf ff fc bne 201f430 <msdos_format+0x1a0> <== NOT EXECUTED
201f444: 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;
201f448: 84 10 20 04 mov 4, %g2 <== NOT EXECUTED
201f44c: 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;
201f450: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
201f454: 83 28 80 01 sll %g2, %g1, %g1 <== NOT EXECUTED
201f458: c2 27 bf 64 st %g1, [ %fp + -156 ] <== NOT EXECUTED
}
}
/*
* try to use user requested cluster size
*/
if ((rqdata != NULL) &&
201f45c: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
201f460: 12 80 00 04 bne 201f470 <msdos_format+0x1e0> <== NOT EXECUTED
201f464: a0 10 20 00 clr %l0 <== NOT EXECUTED
201f468: 10 80 00 06 b 201f480 <msdos_format+0x1f0> <== NOT EXECUTED
201f46c: a0 10 00 19 mov %i1, %l0 <== NOT EXECUTED
(rqdata->sectors_per_cluster > 0)) {
201f470: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
}
}
/*
* try to use user requested cluster size
*/
if ((rqdata != NULL) &&
201f474: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
201f478: 32 80 00 02 bne,a 201f480 <msdos_format+0x1f0> <== NOT EXECUTED
201f47c: 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) {
201f480: e6 07 bf 58 ld [ %fp + -168 ], %l3 <== NOT EXECUTED
201f484: d6 07 bf 64 ld [ %fp + -156 ], %o3 <== NOT EXECUTED
201f488: 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) {
201f48c: 80 a2 c0 14 cmp %o3, %l4 <== NOT EXECUTED
201f490: 2a 80 00 0a bcs,a 201f4b8 <msdos_format+0x228> <== NOT EXECUTED
201f494: a9 35 20 01 srl %l4, 1, %l4 <== NOT EXECUTED
fmt_params->sectors_per_cluster = onebit;
if (fmt_params->sectors_per_cluster
201f498: 11 00 00 20 sethi %hi(0x8000), %o0 <== NOT EXECUTED
201f49c: 40 00 ef 10 call 205b0dc <.udiv> <== NOT EXECUTED
201f4a0: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
201f4a4: 80 a5 00 08 cmp %l4, %o0 <== NOT EXECUTED
201f4a8: 18 80 00 03 bgu 201f4b4 <msdos_format+0x224> <== NOT EXECUTED
201f4ac: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
201f4b0: 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) {
201f4b4: a9 35 20 01 srl %l4, 1, %l4 <== NOT EXECUTED
201f4b8: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED
201f4bc: 12 bf ff f5 bne 201f490 <msdos_format+0x200> <== NOT EXECUTED
201f4c0: 80 a2 c0 14 cmp %o3, %l4 <== NOT EXECUTED
}
}
}
}
if (ret_val == 0) {
201f4c4: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
201f4c8: 12 80 00 99 bne 201f72c <msdos_format+0x49c> <== NOT EXECUTED
201f4cc: d6 27 bf 64 st %o3, [ %fp + -156 ] <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
201f4d0: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201f4d4: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
201f4d8: 15 00 81 87 sethi %hi(0x2061c00), %o2 <== NOT EXECUTED
201f4dc: 7f ff fe ed call 201f090 <msdos_format_printf> <== NOT EXECUTED
201f4e0: 94 12 a3 b8 or %o2, 0x3b8, %o2 ! 2061fb8 <C.6.6032+0xde8> <== NOT EXECUTED
"sectors per cluster: %d\n", fmt_params->sectors_per_cluster);
if (fmt_params->fattype == FAT_FAT32) {
201f4e4: c2 0f bf 8a ldub [ %fp + -118 ], %g1 <== NOT EXECUTED
201f4e8: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED
201f4ec: 12 80 00 0a bne 201f514 <msdos_format+0x284> <== NOT EXECUTED
201f4f0: 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;
201f4f4: 82 10 20 20 mov 0x20, %g1 <== NOT EXECUTED
201f4f8: 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;
201f4fc: 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;
201f500: c0 27 bf 70 clr [ %fp + -144 ] <== NOT EXECUTED
/* location of copy of MBR */
fmt_params->mbr_copy_sec = 6;
201f504: c2 27 bf 80 st %g1, [ %fp + -128 ] <== NOT EXECUTED
/* location of fsinfo sector */
fmt_params->fsinfo_sec = 1;
201f508: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
201f50c: 10 80 00 19 b 201f570 <msdos_format+0x2e0> <== NOT EXECUTED
201f510: 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) &&
201f514: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
201f518: 02 80 00 06 be 201f530 <msdos_format+0x2a0> <== NOT EXECUTED
201f51c: c2 27 bf 60 st %g1, [ %fp + -160 ] <== NOT EXECUTED
(rqdata->files_per_root_dir > 0)) {
201f520: 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) &&
201f524: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
201f528: 32 80 00 08 bne,a 201f548 <msdos_format+0x2b8> <== NOT EXECUTED
201f52c: 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) {
201f530: c2 0f bf 8a ldub [ %fp + -118 ], %g1 <== NOT EXECUTED
201f534: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
201f538: 32 80 00 03 bne,a 201f544 <msdos_format+0x2b4> <== NOT EXECUTED
201f53c: 82 10 20 40 mov 0x40, %g1 <== NOT EXECUTED
201f540: 82 10 22 00 mov 0x200, %g1 <== NOT EXECUTED
fmt_params->files_per_root_dir = 512;
}
else {
fmt_params->files_per_root_dir = 64;
201f544: c2 27 bf 70 st %g1, [ %fp + -144 ] <== NOT EXECUTED
}
}
fmt_params->files_per_root_dir = (fmt_params->files_per_root_dir +
201f548: d2 07 bf 58 ld [ %fp + -168 ], %o1 <== NOT EXECUTED
201f54c: e6 07 bf 70 ld [ %fp + -144 ], %l3 <== NOT EXECUTED
201f550: 93 2a 60 01 sll %o1, 1, %o1 <== NOT EXECUTED
201f554: a6 04 ff ff add %l3, -1, %l3 <== NOT EXECUTED
201f558: 93 32 60 05 srl %o1, 5, %o1 <== NOT EXECUTED
201f55c: 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 %
201f560: 40 00 ef 8b call 205b38c <.urem> <== NOT EXECUTED
201f564: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
201f568: 90 24 c0 08 sub %l3, %o0, %o0 <== NOT EXECUTED
201f56c: 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)
201f570: c2 07 bf 70 ld [ %fp + -144 ], %g1 <== NOT EXECUTED
+ fmt_params->bytes_per_sector - 1)
201f574: 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)
201f578: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED
201f57c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
201f580: 90 06 3f ff add %i0, -1, %o0 <== NOT EXECUTED
201f584: 40 00 ee d6 call 205b0dc <.udiv> <== NOT EXECUTED
201f588: 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 -
201f58c: c2 07 bf 60 ld [ %fp + -160 ], %g1 <== NOT EXECUTED
201f590: 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 =
201f594: 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 -
201f598: 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) {
201f59c: 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 -
201f5a0: 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
201f5a4: 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) {
201f5a8: 40 00 ee cd call 205b0dc <.udiv> <== NOT EXECUTED
201f5ac: 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,
201f5b0: f6 0f bf 88 ldub [ %fp + -120 ], %i3 <== NOT EXECUTED
201f5b4: 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) {
201f5b8: 80 a2 00 14 cmp %o0, %l4 <== NOT EXECUTED
201f5bc: 2a bf ff ff bcs,a 201f5b8 <msdos_format+0x328> <== NOT EXECUTED
201f5c0: 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)) ||
201f5c4: 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 -
201f5c8: 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)) ||
201f5cc: b8 17 23 f5 or %i4, 0x3f5, %i4 <== NOT EXECUTED
}
else { /* FAT32 */
fat_capacity = fatdata_cluster_cnt * 4;
}
sectors_per_fat = ((fat_capacity
201f5d0: 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)
201f5d4: 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;
201f5d8: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
201f5dc: 40 00 ee c0 call 205b0dc <.udiv> <== NOT EXECUTED
201f5e0: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
if (fattype == FAT_FAT12) {
201f5e4: 80 a5 60 01 cmp %l5, 1 <== NOT EXECUTED
201f5e8: 12 80 00 06 bne 201f600 <msdos_format+0x370> <== NOT EXECUTED
201f5ec: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
fat_capacity = fatdata_cluster_cnt * 3 / 2;
201f5f0: 91 2a 20 01 sll %o0, 1, %o0 <== NOT EXECUTED
201f5f4: 90 02 00 13 add %o0, %l3, %o0 <== NOT EXECUTED
201f5f8: 10 80 00 06 b 201f610 <msdos_format+0x380> <== NOT EXECUTED
201f5fc: 91 32 20 01 srl %o0, 1, %o0 <== NOT EXECUTED
}
else if (fattype == FAT_FAT16) {
201f600: 80 a5 60 02 cmp %l5, 2 <== NOT EXECUTED
201f604: 12 80 00 03 bne 201f610 <msdos_format+0x380> <== NOT EXECUTED
201f608: 91 2a 20 02 sll %o0, 2, %o0 <== NOT EXECUTED
fat_capacity = fatdata_cluster_cnt * 2;
201f60c: 91 2c e0 01 sll %l3, 1, %o0 <== NOT EXECUTED
}
else { /* FAT32 */
fat_capacity = fatdata_cluster_cnt * 4;
}
sectors_per_fat = ((fat_capacity
201f610: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
201f614: 40 00 ee b2 call 205b0dc <.udiv> <== NOT EXECUTED
201f618: 90 07 40 08 add %i5, %o0, %o0 <== NOT EXECUTED
+ (bytes_per_sector - 1))
/ bytes_per_sector);
data_cluster_cnt = (fatdata_cluster_cnt -
201f61c: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
201f620: 7f ff 8c f6 call 20029f8 <.umul> <== NOT EXECUTED
201f624: ac 10 00 08 mov %o0, %l6 <== NOT EXECUTED
201f628: 82 05 3f ff add %l4, -1, %g1 <== NOT EXECUTED
201f62c: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
201f630: 40 00 ee ab call 205b0dc <.udiv> <== NOT EXECUTED
201f634: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED
201f638: 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)) ||
201f63c: 80 a2 2f f5 cmp %o0, 0xff5 <== NOT EXECUTED
201f640: 08 80 00 06 bleu 201f658 <msdos_format+0x3c8> <== NOT EXECUTED
201f644: 80 a2 00 1c cmp %o0, %i4 <== NOT EXECUTED
201f648: 80 a5 60 01 cmp %l5, 1 <== NOT EXECUTED
201f64c: 22 80 00 0a be,a 201f674 <msdos_format+0x3e4> <== NOT EXECUTED
201f650: a9 2d 20 01 sll %l4, 1, %l4 <== NOT EXECUTED
201f654: 80 a2 00 1c cmp %o0, %i4 <== NOT EXECUTED
201f658: 08 80 00 08 bleu 201f678 <msdos_format+0x3e8> <== NOT EXECUTED
201f65c: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED
201f660: 80 a5 60 02 cmp %l5, 2 <== NOT EXECUTED
201f664: 22 80 00 04 be,a 201f674 <msdos_format+0x3e4> <== NOT EXECUTED
201f668: 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)
201f66c: 10 80 00 04 b 201f67c <msdos_format+0x3ec> <== NOT EXECUTED
201f670: 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;
201f674: 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)
201f678: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
201f67c: 7f ff 8c df call 20029f8 <.umul> <== NOT EXECUTED
201f680: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
201f684: 80 a2 00 17 cmp %o0, %l7 <== NOT EXECUTED
201f688: 18 80 00 06 bgu 201f6a0 <msdos_format+0x410> <== NOT EXECUTED
201f68c: 80 8c e0 ff btst 0xff, %l3 <== NOT EXECUTED
> MS_BYTES_PER_CLUSTER_LIMIT) {
ret_val = EINVAL;
finished = true;
}
} while (!finished);
201f690: 02 bf ff d3 be 201f5dc <msdos_format+0x34c> <== NOT EXECUTED
201f694: 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;
201f698: 10 80 00 07 b 201f6b4 <msdos_format+0x424> <== NOT EXECUTED
201f69c: 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);
201f6a0: 40 00 8d 62 call 2042c28 <__errno> <== NOT EXECUTED
201f6a4: a8 10 20 00 clr %l4 <== NOT EXECUTED
201f6a8: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
201f6ac: a0 10 3f ff mov -1, %l0 <== NOT EXECUTED
201f6b0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
/*
* determine media code
*/
if (ret_val == 0) {
201f6b4: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
201f6b8: 02 80 00 04 be 201f6c8 <msdos_format+0x438> <== NOT EXECUTED
201f6bc: e8 27 bf 64 st %l4, [ %fp + -156 ] <== NOT EXECUTED
201f6c0: 10 80 00 1b b 201f72c <msdos_format+0x49c> <== NOT EXECUTED
201f6c4: a0 10 3f ff mov -1, %l0 <== NOT EXECUTED
if ((rqdata != NULL) &&
201f6c8: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
201f6cc: 02 80 00 17 be 201f728 <msdos_format+0x498> <== NOT EXECUTED
201f6d0: 82 10 3f f8 mov -8, %g1 <== NOT EXECUTED
201f6d4: e8 0e 60 15 ldub [ %i1 + 0x15 ], %l4 <== NOT EXECUTED
201f6d8: 92 8d 20 ff andcc %l4, 0xff, %o1 <== NOT EXECUTED
201f6dc: 22 80 00 14 be,a 201f72c <msdos_format+0x49c> <== NOT EXECUTED
201f6e0: 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};
201f6e4: 03 00 81 88 sethi %hi(0x2062000), %g1 <== NOT EXECUTED
201f6e8: c4 18 60 c8 ldd [ %g1 + 0xc8 ], %g2 ! 20620c8 <C.13.7331> <== NOT EXECUTED
201f6ec: 82 10 60 c8 or %g1, 0xc8, %g1 <== NOT EXECUTED
201f6f0: c2 08 60 08 ldub [ %g1 + 8 ], %g1 <== NOT EXECUTED
201f6f4: c4 3f bf f0 std %g2, [ %fp + -16 ] <== NOT EXECUTED
201f6f8: c2 2f bf f8 stb %g1, [ %fp + -8 ] <== NOT EXECUTED
if (NULL==memchr(valid_media_codes,
201f6fc: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED
201f700: 40 00 9a 23 call 2045f8c <memchr> <== NOT EXECUTED
201f704: 94 10 20 09 mov 9, %o2 <== NOT EXECUTED
201f708: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
201f70c: 32 80 00 08 bne,a 201f72c <msdos_format+0x49c> <== NOT EXECUTED
201f710: e8 2f bf 89 stb %l4, [ %fp + -119 ] <== NOT EXECUTED
rqdata->media,
sizeof(valid_media_codes))) {
ret_val = -1;
errno = EINVAL;
201f714: 40 00 8d 45 call 2042c28 <__errno> <== NOT EXECUTED
201f718: a0 10 3f ff mov -1, %l0 <== NOT EXECUTED
201f71c: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
201f720: 10 80 00 03 b 201f72c <msdos_format+0x49c> <== NOT EXECUTED
201f724: 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;
201f728: 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) {
201f72c: e8 07 bf 74 ld [ %fp + -140 ], %l4 <== NOT EXECUTED
201f730: d0 0f bf 88 ldub [ %fp + -120 ], %o0 <== NOT EXECUTED
201f734: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED
201f738: 02 80 00 08 be 201f758 <msdos_format+0x4c8> <== NOT EXECUTED
201f73c: e6 07 bf 60 ld [ %fp + -160 ], %l3 <== NOT EXECUTED
fmt_params->root_dir_start_sec =
201f740: d2 07 bf 68 ld [ %fp + -152 ], %o1 <== NOT EXECUTED
201f744: 7f ff 8c ad call 20029f8 <.umul> <== NOT EXECUTED
201f748: 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;
201f74c: 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 =
201f750: 10 80 00 08 b 201f770 <msdos_format+0x4e0> <== NOT EXECUTED
201f754: 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 =
201f758: d2 07 bf 68 ld [ %fp + -152 ], %o1 <== NOT EXECUTED
201f75c: 7f ff 8c a7 call 20029f8 <.umul> <== NOT EXECUTED
201f760: 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;
201f764: 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 =
201f768: 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;
201f76c: c2 27 bf 7c st %g1, [ %fp + -132 ] <== NOT EXECUTED
}
/*
* determine usable OEMName
*/
if (ret_val == 0) {
201f770: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
201f774: 12 80 00 49 bne 201f898 <msdos_format+0x608> <== NOT EXECUTED
201f778: 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) &&
201f77c: 05 00 81 87 sethi %hi(0x2061c00), %g2 <== NOT EXECUTED
201f780: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
201f784: 02 80 00 08 be 201f7a4 <msdos_format+0x514> <== NOT EXECUTED
201f788: 84 10 a3 d8 or %g2, 0x3d8, %g2 <== NOT EXECUTED
(rqdata->OEMName != NULL)) {
201f78c: 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) &&
201f790: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
201f794: 32 80 00 05 bne,a 201f7a8 <msdos_format+0x518> <== NOT EXECUTED
201f798: 03 00 81 a6 sethi %hi(0x2069800), %g1 <== NOT EXECUTED
201f79c: 05 00 81 87 sethi %hi(0x2061c00), %g2 <== NOT EXECUTED
201f7a0: 84 10 a3 d8 or %g2, 0x3d8, %g2 ! 2061fd8 <C.6.6032+0xe08> <== NOT EXECUTED
from = rqdata->OEMName;
}
for (cnt = 0;
cnt < (sizeof(fmt_params->OEMName)-1);
cnt++) {
if (isprint((unsigned char)*from)) {
201f7a4: 03 00 81 a6 sethi %hi(0x2069800), %g1 <== NOT EXECUTED
}
/*=========================================================================*\
| Function: |
\*-------------------------------------------------------------------------*/
int msdos_format
201f7a8: 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)) {
201f7ac: c6 00 63 c4 ld [ %g1 + 0x3c4 ], %g3 <== NOT EXECUTED
/*
* non-printable character in given name, so keep stuck
* at that character and replace all following characters
* with a ' '
*/
*to++=' ';
201f7b0: 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)) {
201f7b4: 10 80 00 0c b 201f7e4 <msdos_format+0x554> <== NOT EXECUTED
201f7b8: 82 07 bf 8c add %fp, -116, %g1 <== NOT EXECUTED
201f7bc: 96 09 20 ff and %g4, 0xff, %o3 <== NOT EXECUTED
201f7c0: 96 00 c0 0b add %g3, %o3, %o3 <== NOT EXECUTED
201f7c4: d6 4a e0 01 ldsb [ %o3 + 1 ], %o3 <== NOT EXECUTED
201f7c8: 80 8a e0 97 btst 0x97, %o3 <== NOT EXECUTED
201f7cc: 22 80 00 04 be,a 201f7dc <msdos_format+0x54c> <== NOT EXECUTED
201f7d0: da 28 7f ff stb %o5, [ %g1 + -1 ] <== NOT EXECUTED
*to++ = *from++;
201f7d4: c8 28 7f ff stb %g4, [ %g1 + -1 ] <== NOT EXECUTED
201f7d8: 84 00 a0 01 inc %g2 <== NOT EXECUTED
* at that character and replace all following characters
* with a ' '
*/
*to++=' ';
}
*to = '\0';
201f7dc: c0 28 40 00 clrb [ %g1 ] <== NOT EXECUTED
201f7e0: 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;
201f7e4: 80 a0 40 0c cmp %g1, %o4 <== NOT EXECUTED
201f7e8: 32 bf ff f5 bne,a 201f7bc <msdos_format+0x52c> <== NOT EXECUTED
201f7ec: 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) &&
201f7f0: 05 00 81 87 sethi %hi(0x2061c00), %g2 <== NOT EXECUTED
201f7f4: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
201f7f8: 02 80 00 0a be 201f820 <msdos_format+0x590> <== NOT EXECUTED
201f7fc: 84 10 a3 e0 or %g2, 0x3e0, %g2 <== NOT EXECUTED
(rqdata->VolLabel != NULL)) {
201f800: 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) &&
201f804: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
201f808: 32 80 00 05 bne,a 201f81c <msdos_format+0x58c> <== NOT EXECUTED
201f80c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
201f810: 05 00 81 87 sethi %hi(0x2061c00), %g2 <== NOT EXECUTED
201f814: 10 80 00 03 b 201f820 <msdos_format+0x590> <== NOT EXECUTED
201f818: 84 10 a3 e0 or %g2, 0x3e0, %g2 ! 2061fe0 <C.6.6032+0xe10> <== NOT EXECUTED
(rqdata->VolLabel != NULL)) {
from = rqdata->VolLabel;
fmt_params->VolLabel_present = true;
201f81c: c2 2f bf a0 stb %g1, [ %fp + -96 ] <== NOT EXECUTED
}
/*=========================================================================*\
| Function: |
\*-------------------------------------------------------------------------*/
int msdos_format
201f820: 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;
201f824: 82 07 bf 95 add %fp, -107, %g1 <== NOT EXECUTED
}
/*=========================================================================*\
| Function: |
\*-------------------------------------------------------------------------*/
int msdos_format
201f828: 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++=' ';
201f82c: 10 80 00 0c b 201f85c <msdos_format+0x5cc> <== NOT EXECUTED
201f830: 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)) {
201f834: 96 09 20 ff and %g4, 0xff, %o3 <== NOT EXECUTED
201f838: 96 00 c0 0b add %g3, %o3, %o3 <== NOT EXECUTED
201f83c: d6 4a e0 01 ldsb [ %o3 + 1 ], %o3 <== NOT EXECUTED
201f840: 80 8a e0 97 btst 0x97, %o3 <== NOT EXECUTED
201f844: 22 80 00 04 be,a 201f854 <msdos_format+0x5c4> <== NOT EXECUTED
201f848: da 28 7f ff stb %o5, [ %g1 + -1 ] <== NOT EXECUTED
*to++ = *from++;
201f84c: c8 28 7f ff stb %g4, [ %g1 + -1 ] <== NOT EXECUTED
201f850: 84 00 a0 01 inc %g2 <== NOT EXECUTED
* at that character and replace all following characters
* with a ' '
*/
*to++=' ';
}
*to = '\0';
201f854: c0 28 40 00 clrb [ %g1 ] <== NOT EXECUTED
201f858: 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;
201f85c: 80 a0 40 0c cmp %g1, %o4 <== NOT EXECUTED
201f860: 32 bf ff f5 bne,a 201f834 <msdos_format+0x5a4> <== NOT EXECUTED
201f864: 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);
201f868: 7f ff b2 af call 200c324 <rtems_clock_get_tod_timeval> <== NOT EXECUTED
201f86c: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED
if (rc == RTEMS_SUCCESSFUL) {
201f870: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
201f874: 12 80 00 05 bne 201f888 <msdos_format+0x5f8> <== NOT EXECUTED
201f878: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
*volid_ptr = time_value.tv_sec + time_value.tv_sec;
201f87c: 83 28 60 01 sll %g1, 1, %g1 <== NOT EXECUTED
201f880: 10 80 00 0a b 201f8a8 <msdos_format+0x618> <== NOT EXECUTED
201f884: c2 27 bf a4 st %g1, [ %fp + -92 ] <== NOT EXECUTED
}
else {
*volid_ptr = rand();
201f888: 40 00 a1 f6 call 2048060 <rand> <== NOT EXECUTED
201f88c: 01 00 00 00 nop <== NOT EXECUTED
201f890: 10 80 00 06 b 201f8a8 <msdos_format+0x618> <== NOT EXECUTED
201f894: 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);
201f898: 40 00 8c e4 call 2042c28 <__errno> <== NOT EXECUTED
201f89c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
201f8a0: 10 80 01 75 b 201fe74 <msdos_format+0xbe4> <== NOT EXECUTED
201f8a4: 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) &&
201f8a8: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
201f8ac: 02 80 00 11 be 201f8f0 <msdos_format+0x660> <== NOT EXECUTED
201f8b0: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
(rqdata != NULL) &&
!(rqdata->quick_format)) {
201f8b4: c2 0e 60 16 ldub [ %i1 + 0x16 ], %g1 <== NOT EXECUTED
201f8b8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
201f8bc: 12 80 00 0e bne 201f8f4 <msdos_format+0x664> <== NOT EXECUTED
201f8c0: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
ret_val = msdos_format_fill_sectors
201f8c4: d6 07 bf 5c ld [ %fp + -164 ], %o3 <== NOT EXECUTED
201f8c8: d8 07 bf 58 ld [ %fp + -168 ], %o4 <== NOT EXECUTED
201f8cc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201f8d0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
201f8d4: 94 10 20 00 clr %o2 <== NOT EXECUTED
201f8d8: 7f ff fe 1d call 201f14c <msdos_format_fill_sectors> <== NOT EXECUTED
201f8dc: 9a 10 3f e5 mov -27, %o5 <== NOT EXECUTED
0xe5);
}
/*
* create master boot record
*/
if (ret_val == 0) {
201f8e0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
201f8e4: 12 80 01 65 bne 201fe78 <msdos_format+0xbe8> <== NOT EXECUTED
201f8e8: 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,
201f8ec: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201f8f0: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
201f8f4: 15 00 81 87 sethi %hi(0x2061c00), %o2 <== NOT EXECUTED
201f8f8: 7f ff fd e6 call 201f090 <msdos_format_printf> <== NOT EXECUTED
201f8fc: 94 12 a3 e8 or %o2, 0x3e8, %o2 ! 2061fe8 <C.6.6032+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)) {
201f900: 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,
201f904: 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)) {
201f908: 92 10 20 00 clr %o1 <== NOT EXECUTED
201f90c: 94 10 20 00 clr %o2 <== NOT EXECUTED
201f910: 40 00 27 e9 call 20298b4 <lseek> <== NOT EXECUTED
201f914: 96 10 20 00 clr %o3 <== NOT EXECUTED
201f918: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
201f91c: 06 80 00 08 bl 201f93c <msdos_format+0x6ac> <== NOT EXECUTED
201f920: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
ret_val = -1;
}
if (ret_val == 0) {
if (0 > read(fd,buffer,sector_size)) {
201f924: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
201f928: 7f ff a7 74 call 20096f8 <read> <== NOT EXECUTED
201f92c: 92 07 bd 58 add %fp, -680, %o1 <== NOT EXECUTED
201f930: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
201f934: 36 80 01 88 bge,a 201ff54 <msdos_format+0xcc4> <== NOT EXECUTED
201f938: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201f93c: 10 80 01 4e b 201fe74 <msdos_format+0xbe4> <== NOT EXECUTED
201f940: 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);
201f944: a0 07 bd 58 add %fp, -680, %l0 <== NOT EXECUTED
201f948: 92 10 20 00 clr %o1 <== NOT EXECUTED
201f94c: 94 10 21 be mov 0x1be, %o2 <== NOT EXECUTED
201f950: 40 00 9a 95 call 20463a4 <memset> <== NOT EXECUTED
201f954: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
* with 0xEB,....
*/
/*
* fill OEMName
*/
memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),
201f958: 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,
201f95c: c0 37 bf 56 clrh [ %fp + -170 ] <== NOT EXECUTED
* with 0xEB,....
*/
/*
* fill OEMName
*/
memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),
201f960: 92 07 bf 8b add %fp, -117, %o1 <== NOT EXECUTED
201f964: 40 00 99 fd call 2046158 <memcpy> <== NOT EXECUTED
201f968: 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);
201f96c: 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);
201f970: 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);
201f974: 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);
201f978: 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) {
201f97c: 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);
201f980: 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);
201f984: 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);
201f988: 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);
201f98c: 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);
201f990: 89 30 e0 08 srl %g3, 8, %g4 <== NOT EXECUTED
201f994: 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);
201f998: 89 30 a0 08 srl %g2, 8, %g4 <== NOT EXECUTED
201f99c: 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);
201f9a0: 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... */
201f9a4: 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);
201f9a8: c8 2c 20 12 stb %g4, [ %l0 + 0x12 ] <== NOT EXECUTED
FAT_SET_BR_TOTAL_SECTORS_NUM16(mbr , total_sectors_num16);
201f9ac: 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... */
201f9b0: 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);
201f9b4: 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... */
201f9b8: 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);
201f9bc: 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);
201f9c0: 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);
201f9c4: c8 2c 20 23 stb %g4, [ %l0 + 0x23 ] <== NOT EXECUTED
201f9c8: 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... */
201f9cc: 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);
201f9d0: 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);
201f9d4: 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);
201f9d8: 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... */
201f9dc: c0 2c 20 19 clrb [ %l0 + 0x19 ] <== NOT EXECUTED
FAT_SET_BR_NUMBER_OF_HEADS(mbr , 6); /* only needed for INT13... */
201f9e0: c0 2c 20 1b clrb [ %l0 + 0x1b ] <== NOT EXECUTED
FAT_SET_BR_HIDDEN_SECTORS(mbr , 1); /* only needed for INT13... */
201f9e4: c0 2c 20 1d clrb [ %l0 + 0x1d ] <== NOT EXECUTED
201f9e8: c0 2c 20 1e clrb [ %l0 + 0x1e ] <== NOT EXECUTED
201f9ec: 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 */
201f9f0: 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... */
201f9f4: 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 */
201f9f8: 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... */
201f9fc: c8 2c 20 1c stb %g4, [ %l0 + 0x1c ] <== NOT EXECUTED
FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);
201fa00: 07 00 00 3f sethi %hi(0xfc00), %g3 <== NOT EXECUTED
201fa04: c2 2c 20 22 stb %g1, [ %l0 + 0x22 ] <== NOT EXECUTED
201fa08: 86 10 e3 ff or %g3, 0x3ff, %g3 <== NOT EXECUTED
201fa0c: a8 0d 00 03 and %l4, %g3, %l4 <== NOT EXECUTED
201fa10: a9 35 20 08 srl %l4, 8, %l4 <== NOT EXECUTED
201fa14: e8 2c 20 21 stb %l4, [ %l0 + 0x21 ] <== NOT EXECUTED
if (fmt_params->fattype != FAT_FAT32) {
201fa18: 80 a3 20 04 cmp %o4, 4 <== NOT EXECUTED
201fa1c: 02 80 00 1f be 201fa98 <msdos_format+0x808> <== NOT EXECUTED
201fa20: 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 */
201fa24: 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);
201fa28: 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 */
201fa2c: 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);
201fa30: 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 */
201fa34: 87 30 e0 08 srl %g3, 8, %g3 <== NOT EXECUTED
201fa38: 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);
201fa3c: 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 */
201fa40: 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);
201fa44: 82 10 20 29 mov 0x29, %g1 <== NOT EXECUTED
FAT_SET_BR_VOLID(mbr , fmt_params->vol_id); /* volume id */
201fa48: 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);
201fa4c: 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),
201fa50: 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 */
201fa54: c8 2c 20 2a stb %g4, [ %l0 + 0x2a ] <== NOT EXECUTED
201fa58: 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... */
201fa5c: c0 2c 20 24 clrb [ %l0 + 0x24 ] <== NOT EXECUTED
FAT_SET_BR_RSVD1(mbr , 0); /* fill with zero */
201fa60: 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 */
201fa64: c4 2c 20 29 stb %g2, [ %l0 + 0x29 ] <== NOT EXECUTED
memcpy(FAT_GET_ADDR_BR_VOLLAB(mbr),
201fa68: 90 07 bd 83 add %fp, -637, %o0 <== NOT EXECUTED
201fa6c: 40 00 99 bb call 2046158 <memcpy> <== NOT EXECUTED
201fa70: 94 10 20 0b mov 0xb, %o2 <== NOT EXECUTED
fmt_params->VolLabel,
FAT_BR_VOLLAB_SIZE);
memcpy(FAT_GET_ADDR_BR_FILSYSTYPE(mbr),
201fa74: c2 0f bf 8a ldub [ %fp + -118 ], %g1 <== NOT EXECUTED
201fa78: 13 00 81 88 sethi %hi(0x2062000), %o1 <== NOT EXECUTED
201fa7c: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
201fa80: 02 80 00 04 be 201fa90 <msdos_format+0x800> <== NOT EXECUTED
201fa84: 92 12 60 10 or %o1, 0x10, %o1 <== NOT EXECUTED
201fa88: 13 00 81 88 sethi %hi(0x2062000), %o1 <== NOT EXECUTED
201fa8c: 92 12 60 00 mov %o1, %o1 ! 2062000 <C.6.6032+0xe30> <== NOT EXECUTED
201fa90: 10 80 00 2b b 201fb3c <msdos_format+0x8ac> <== NOT EXECUTED
201fa94: 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 */
201fa98: 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);
201fa9c: 86 08 40 03 and %g1, %g3, %g3 <== NOT EXECUTED
201faa0: 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*/
201faa4: 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);
201faa8: c6 2c 20 25 stb %g3, [ %l0 + 0x25 ] <== NOT EXECUTED
201faac: 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 */
201fab0: 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);
201fab4: c2 2c 20 24 stb %g1, [ %l0 + 0x24 ] <== NOT EXECUTED
201fab8: 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 */
201fabc: 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);
201fac0: 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 */
201fac4: c6 2c 20 33 stb %g3, [ %l0 + 0x33 ] <== NOT EXECUTED
201fac8: 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);
201facc: 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);
201fad0: 92 10 20 00 clr %o1 <== NOT EXECUTED
201fad4: 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);
201fad8: c0 2c 20 28 clrb [ %l0 + 0x28 ] <== NOT EXECUTED
201fadc: c0 2c 20 29 clrb [ %l0 + 0x29 ] <== NOT EXECUTED
FAT_SET_BR_FSVER(mbr , 0); /* FAT32 Version:0.0 */
201fae0: c0 2c 20 2a clrb [ %l0 + 0x2a ] <== NOT EXECUTED
201fae4: c0 2c 20 2b clrb [ %l0 + 0x2b ] <== NOT EXECUTED
FAT_SET_BR_FAT32_ROOT_CLUSTER(mbr , 2); /* put root dir to cluster 2 */
201fae8: c0 2c 20 2d clrb [ %l0 + 0x2d ] <== NOT EXECUTED
201faec: c0 2c 20 2e clrb [ %l0 + 0x2e ] <== NOT EXECUTED
201faf0: c0 2c 20 2f clrb [ %l0 + 0x2f ] <== NOT EXECUTED
FAT_SET_BR_FAT32_FS_INFO_SECTOR(mbr, 1); /* Put fsinfo to rsrvd sec 1*/
201faf4: 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);
201faf8: 40 00 9a 2b call 20463a4 <memset> <== NOT EXECUTED
201fafc: 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);
201fb00: 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);
201fb04: 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... */
201fb08: c0 2c 20 40 clrb [ %l0 + 0x40 ] <== NOT EXECUTED
FAT_SET_BR_FAT32_RSVD1(mbr , 0); /* fill with zero */
201fb0c: 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 */
201fb10: c0 2c 20 43 clrb [ %l0 + 0x43 ] <== NOT EXECUTED
201fb14: c0 2c 20 44 clrb [ %l0 + 0x44 ] <== NOT EXECUTED
201fb18: c0 2c 20 45 clrb [ %l0 + 0x45 ] <== NOT EXECUTED
201fb1c: c0 2c 20 46 clrb [ %l0 + 0x46 ] <== NOT EXECUTED
memset(FAT_GET_ADDR_BR_FAT32_VOLLAB(mbr) ,0,FAT_BR_VOLLAB_SIZE);
201fb20: 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);
201fb24: 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);
201fb28: 40 00 9a 1f call 20463a4 <memset> <== NOT EXECUTED
201fb2c: 90 07 bd 9f add %fp, -609, %o0 <== NOT EXECUTED
memcpy(FAT_GET_ADDR_BR_FAT32_FILSYSTYPE(mbr),
201fb30: 13 00 81 88 sethi %hi(0x2062000), %o1 <== NOT EXECUTED
201fb34: 90 07 bd aa add %fp, -598, %o0 <== NOT EXECUTED
201fb38: 92 12 60 20 or %o1, 0x20, %o1 <== NOT EXECUTED
201fb3c: 40 00 99 87 call 2046158 <memcpy> <== NOT EXECUTED
201fb40: 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);
201fb44: 82 10 20 55 mov 0x55, %g1 <== NOT EXECUTED
201fb48: c2 2c 21 fe stb %g1, [ %l0 + 0x1fe ] <== NOT EXECUTED
201fb4c: 82 10 3f aa mov -86, %g1 <== NOT EXECUTED
201fb50: 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);
201fb54: 82 10 3f eb mov -21, %g1 <== NOT EXECUTED
201fb58: c2 2c 00 00 stb %g1, [ %l0 ] <== NOT EXECUTED
FAT_SET_VAL8(mbr,1,0x3c);
201fb5c: 82 10 20 3c mov 0x3c, %g1 <== NOT EXECUTED
201fb60: c2 2c 20 01 stb %g1, [ %l0 + 1 ] <== NOT EXECUTED
FAT_SET_VAL8(mbr,2,0x90);
201fb64: 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,
201fb68: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201fb6c: 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);
201fb70: 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,
201fb74: 15 00 81 88 sethi %hi(0x2062000), %o2 <== NOT EXECUTED
201fb78: 7f ff fd 46 call 201f090 <msdos_format_printf> <== NOT EXECUTED
201fb7c: 94 12 a0 30 or %o2, 0x30, %o2 ! 2062030 <C.6.6032+0xe60> <== NOT EXECUTED
"write MRB sector\n");
ret_val = msdos_format_write_sec(fd,
201fb80: d4 07 bf 58 ld [ %fp + -168 ], %o2 <== NOT EXECUTED
201fb84: a8 07 bd 58 add %fp, -680, %l4 <== NOT EXECUTED
201fb88: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
201fb8c: 92 10 20 00 clr %o1 <== NOT EXECUTED
201fb90: 7f ff fd 55 call 201f0e4 <msdos_format_write_sec> <== NOT EXECUTED
201fb94: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
0,
fmt_params.bytes_per_sector,
tmp_sec);
}
if ((ret_val == 0) &&
201fb98: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
201fb9c: 12 80 00 b6 bne 201fe74 <msdos_format+0xbe4> <== NOT EXECUTED
201fba0: c2 07 bf 80 ld [ %fp + -128 ], %g1 <== NOT EXECUTED
201fba4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
201fba8: 02 80 00 0f be 201fbe4 <msdos_format+0x954> <== NOT EXECUTED
201fbac: 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,
201fbb0: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
201fbb4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201fbb8: 15 00 81 88 sethi %hi(0x2062000), %o2 <== NOT EXECUTED
201fbbc: 7f ff fd 35 call 201f090 <msdos_format_printf> <== NOT EXECUTED
201fbc0: 94 12 a0 48 or %o2, 0x48, %o2 ! 2062048 <C.6.6032+0xe78> <== NOT EXECUTED
"write back up MRB sector\n");
ret_val = msdos_format_write_sec(fd,
201fbc4: d2 07 bf 80 ld [ %fp + -128 ], %o1 <== NOT EXECUTED
201fbc8: d4 07 bf 58 ld [ %fp + -168 ], %o2 <== NOT EXECUTED
201fbcc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
201fbd0: 7f ff fd 45 call 201f0e4 <msdos_format_write_sec> <== NOT EXECUTED
201fbd4: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
}
}
/*
* for FAT32: initialize info sector on disk
*/
if ((ret_val == 0) &&
201fbd8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
201fbdc: 12 80 00 a6 bne 201fe74 <msdos_format+0xbe4> <== NOT EXECUTED
201fbe0: c2 07 bf 84 ld [ %fp + -124 ], %g1 <== NOT EXECUTED
201fbe4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
201fbe8: 02 80 00 e9 be 201ff8c <msdos_format+0xcfc> <== NOT EXECUTED
201fbec: d2 07 bf 84 ld [ %fp + -124 ], %o1 <== NOT EXECUTED
\*=========================================================================*/
{
/*
* clear fsinfo sector data
*/
memset(fsinfo,0,FAT_TOTAL_FSINFO_SIZE);
201fbf0: 90 07 bd 58 add %fp, -680, %o0 <== NOT EXECUTED
201fbf4: 92 10 20 00 clr %o1 <== NOT EXECUTED
201fbf8: 40 00 99 eb call 20463a4 <memset> <== NOT EXECUTED
201fbfc: 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,
201fc00: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
0xffffffff);
FAT_SET_FSINFO_NEXT_FREE_CLUSTER (fsinfo+FAT_FSI_INFO,
201fc04: 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,
201fc08: c2 2c 21 e8 stb %g1, [ %l0 + 0x1e8 ] <== NOT EXECUTED
201fc0c: c2 2c 21 e9 stb %g1, [ %l0 + 0x1e9 ] <== NOT EXECUTED
201fc10: c2 2c 21 ea stb %g1, [ %l0 + 0x1ea ] <== NOT EXECUTED
201fc14: c2 2c 21 eb stb %g1, [ %l0 + 0x1eb ] <== NOT EXECUTED
0xffffffff);
FAT_SET_FSINFO_NEXT_FREE_CLUSTER (fsinfo+FAT_FSI_INFO,
201fc18: c2 2c 21 ec stb %g1, [ %l0 + 0x1ec ] <== NOT EXECUTED
201fc1c: c2 2c 21 ed stb %g1, [ %l0 + 0x1ed ] <== NOT EXECUTED
201fc20: 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 );
201fc24: 82 10 20 52 mov 0x52, %g1 <== NOT EXECUTED
201fc28: c2 2c 20 01 stb %g1, [ %l0 + 1 ] <== NOT EXECUTED
201fc2c: c2 2c 00 00 stb %g1, [ %l0 ] <== NOT EXECUTED
201fc30: 82 10 20 61 mov 0x61, %g1 <== NOT EXECUTED
FAT_SET_FSINFO_STRUC_SIGNATURE(fsinfo,FAT_FSINFO_STRUC_SIGNATURE_VALUE);
201fc34: 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 );
201fc38: c2 2c 20 02 stb %g1, [ %l0 + 2 ] <== NOT EXECUTED
201fc3c: 82 10 20 41 mov 0x41, %g1 <== NOT EXECUTED
FAT_SET_FSINFO_STRUC_SIGNATURE(fsinfo,FAT_FSINFO_STRUC_SIGNATURE_VALUE);
201fc40: 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 );
201fc44: c2 2c 20 03 stb %g1, [ %l0 + 3 ] <== NOT EXECUTED
FAT_SET_FSINFO_STRUC_SIGNATURE(fsinfo,FAT_FSINFO_STRUC_SIGNATURE_VALUE);
201fc48: 82 10 20 72 mov 0x72, %g1 <== NOT EXECUTED
201fc4c: c2 2c 21 e5 stb %g1, [ %l0 + 0x1e5 ] <== NOT EXECUTED
201fc50: c2 2c 21 e4 stb %g1, [ %l0 + 0x1e4 ] <== NOT EXECUTED
FAT_SET_FSINFO_TRAIL_SIGNATURE(fsinfo,FAT_FSINFO_TRAIL_SIGNATURE_VALUE);
201fc54: 82 10 20 55 mov 0x55, %g1 <== NOT EXECUTED
201fc58: c2 2c 21 fe stb %g1, [ %l0 + 0x1fe ] <== NOT EXECUTED
201fc5c: 82 10 3f aa mov -86, %g1 <== NOT EXECUTED
201fc60: 10 80 00 ca b 201ff88 <msdos_format+0xcf8> <== NOT EXECUTED
201fc64: 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,
201fc68: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
201fc6c: 7f ff fd 1e call 201f0e4 <msdos_format_write_sec> <== NOT EXECUTED
201fc70: 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) {
201fc74: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
201fc78: 12 80 00 80 bne 201fe78 <msdos_format+0xbe8> <== NOT EXECUTED
201fc7c: 80 a4 7f ff cmp %l1, -1 <== NOT EXECUTED
ret_val = msdos_format_fill_sectors
201fc80: d2 07 bf 68 ld [ %fp + -152 ], %o1 <== NOT EXECUTED
201fc84: 7f ff 8b 5d call 20029f8 <.umul> <== NOT EXECUTED
201fc88: d0 0f bf 88 ldub [ %fp + -120 ], %o0 <== NOT EXECUTED
201fc8c: d4 07 bf 60 ld [ %fp + -160 ], %o2 <== NOT EXECUTED
201fc90: d8 07 bf 58 ld [ %fp + -168 ], %o4 <== NOT EXECUTED
201fc94: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
201fc98: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
201fc9c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201fca0: 7f ff fd 2b call 201f14c <msdos_format_fill_sectors> <== NOT EXECUTED
201fca4: 9a 10 20 00 clr %o5 <== NOT EXECUTED
}
/*
* clear/init root directory
* -> write all directory sectors as 0x00
*/
if (ret_val == 0) {
201fca8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
201fcac: 12 80 00 72 bne 201fe74 <msdos_format+0xbe4> <== NOT EXECUTED
201fcb0: d4 1f bf 78 ldd [ %fp + -136 ], %o2 <== NOT EXECUTED
ret_val = msdos_format_fill_sectors
201fcb4: d8 07 bf 58 ld [ %fp + -168 ], %o4 <== NOT EXECUTED
201fcb8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201fcbc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
201fcc0: 7f ff fd 23 call 201f14c <msdos_format_fill_sectors> <== NOT EXECUTED
201fcc4: 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) {
201fcc8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
201fccc: 12 80 00 6a bne 201fe74 <msdos_format+0xbe4> <== NOT EXECUTED
201fcd0: c2 0f bf a0 ldub [ %fp + -96 ], %g1 <== NOT EXECUTED
201fcd4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
201fcd8: 02 80 00 17 be 201fd34 <msdos_format+0xaa4> <== NOT EXECUTED
201fcdc: a8 07 bd 58 add %fp, -680, %l4 <== NOT EXECUTED
memset(tmp_sec,0,sizeof(tmp_sec));
201fce0: 92 10 20 00 clr %o1 <== NOT EXECUTED
201fce4: 94 10 22 00 mov 0x200, %o2 <== NOT EXECUTED
201fce8: 40 00 99 af call 20463a4 <memset> <== NOT EXECUTED
201fcec: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
memcpy(MSDOS_DIR_NAME(tmp_sec),fmt_params.VolLabel,MSDOS_SHORT_NAME_LEN);
201fcf0: 92 07 bf 94 add %fp, -108, %o1 <== NOT EXECUTED
201fcf4: 94 10 20 0b mov 0xb, %o2 <== NOT EXECUTED
201fcf8: 40 00 99 18 call 2046158 <memcpy> <== NOT EXECUTED
201fcfc: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
*MSDOS_DIR_ATTR(tmp_sec) = MSDOS_ATTR_VOLUME_ID;
ret_val = msdos_format_write_sec
201fd00: d2 07 bf 78 ld [ %fp + -136 ], %o1 <== NOT EXECUTED
201fd04: 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;
201fd08: 82 10 20 08 mov 8, %g1 <== NOT EXECUTED
ret_val = msdos_format_write_sec
201fd0c: 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;
201fd10: c2 2d 20 0b stb %g1, [ %l4 + 0xb ] <== NOT EXECUTED
ret_val = msdos_format_write_sec
201fd14: 7f ff fc f4 call 201f0e4 <msdos_format_write_sec> <== NOT EXECUTED
201fd18: 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){
201fd1c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
201fd20: 02 80 00 04 be 201fd30 <msdos_format+0xaa0> <== NOT EXECUTED
201fd24: c2 0f bf a0 ldub [ %fp + -96 ], %g1 <== NOT EXECUTED
201fd28: 10 80 00 53 b 201fe74 <msdos_format+0xbe4> <== NOT EXECUTED
201fd2c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
201fd30: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
201fd34: 02 80 00 51 be 201fe78 <msdos_format+0xbe8> <== NOT EXECUTED
201fd38: 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));
201fd3c: a8 07 bd 58 add %fp, -680, %l4 <== NOT EXECUTED
201fd40: 92 10 20 00 clr %o1 <== NOT EXECUTED
201fd44: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
201fd48: 40 00 99 97 call 20463a4 <memset> <== NOT EXECUTED
201fd4c: 94 10 22 00 mov 0x200, %o2 <== NOT EXECUTED
switch(fmt_params.fattype) {
201fd50: c2 0f bf 8a ldub [ %fp + -118 ], %g1 <== NOT EXECUTED
201fd54: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
201fd58: 02 80 00 0b be 201fd84 <msdos_format+0xaf4> <== NOT EXECUTED
201fd5c: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED
201fd60: 02 80 00 11 be 201fda4 <msdos_format+0xb14> <== NOT EXECUTED
201fd64: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
201fd68: 12 80 00 21 bne 201fdec <msdos_format+0xb5c> <== NOT EXECUTED
201fd6c: 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));
201fd70: 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)));
201fd74: 82 10 3f 8f mov -113, %g1 <== NOT EXECUTED
201fd78: 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));
201fd7c: 10 80 00 08 b 201fd9c <msdos_format+0xb0c> <== NOT EXECUTED
201fd80: 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);
201fd84: c4 0f bf 89 ldub [ %fp + -119 ], %g2 <== NOT EXECUTED
201fd88: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
201fd8c: c4 2c 00 00 stb %g2, [ %l0 ] <== NOT EXECUTED
/* FAT entry 1: EOC */
FAT_SET_VAL16(tmp_sec,2,FAT_FAT16_EOC);
201fd90: 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);
201fd94: c2 2d 20 01 stb %g1, [ %l4 + 1 ] <== NOT EXECUTED
/* FAT entry 1: EOC */
FAT_SET_VAL16(tmp_sec,2,FAT_FAT16_EOC);
201fd98: 82 10 3f f8 mov -8, %g1 <== NOT EXECUTED
break;
201fd9c: 10 80 00 18 b 201fdfc <msdos_format+0xb6c> <== NOT EXECUTED
201fda0: 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);
201fda4: c4 0f bf 89 ldub [ %fp + -119 ], %g2 <== NOT EXECUTED
201fda8: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
/* FAT entry 1: EOC */
FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);
201fdac: 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);
201fdb0: 84 10 bf 00 or %g2, -256, %g2 <== NOT EXECUTED
201fdb4: c4 2c 00 00 stb %g2, [ %l0 ] <== NOT EXECUTED
201fdb8: c2 2d 20 02 stb %g1, [ %l4 + 2 ] <== NOT EXECUTED
201fdbc: c2 2d 20 03 stb %g1, [ %l4 + 3 ] <== NOT EXECUTED
/* FAT entry 1: EOC */
FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);
201fdc0: 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);
201fdc4: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED
201fdc8: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff <PROM_START+0xffff> <== NOT EXECUTED
201fdcc: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED
/* FAT entry 1: EOC */
FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);
201fdd0: 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);
201fdd4: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
/* FAT entry 1: EOC */
FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);
201fdd8: 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);
201fddc: c4 2d 20 01 stb %g2, [ %l4 + 1 ] <== NOT EXECUTED
/* FAT entry 1: EOC */
FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);
201fde0: 82 10 20 0f mov 0xf, %g1 <== NOT EXECUTED
break;
201fde4: 10 80 00 06 b 201fdfc <msdos_format+0xb6c> <== NOT EXECUTED
201fde8: c2 2d 20 07 stb %g1, [ %l4 + 7 ] <== NOT EXECUTED
default:
ret_val = -1;
errno = EINVAL;
201fdec: 40 00 8b 8f call 2042c28 <__errno> <== NOT EXECUTED
201fdf0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
201fdf4: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
201fdf8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
if (fmt_params.fattype == FAT_FAT32) {
201fdfc: c2 0f bf 8a ldub [ %fp + -118 ], %g1 <== NOT EXECUTED
201fe00: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED
201fe04: 12 80 00 0a bne 201fe2c <msdos_format+0xb9c> <== NOT EXECUTED
201fe08: 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);
201fe0c: 84 10 3f ff mov -1, %g2 <== NOT EXECUTED
201fe10: 82 07 bd 58 add %fp, -680, %g1 <== NOT EXECUTED
201fe14: c4 28 60 0a stb %g2, [ %g1 + 0xa ] <== NOT EXECUTED
201fe18: c4 28 60 09 stb %g2, [ %g1 + 9 ] <== NOT EXECUTED
201fe1c: 84 10 3f f8 mov -8, %g2 <== NOT EXECUTED
201fe20: c4 28 60 08 stb %g2, [ %g1 + 8 ] <== NOT EXECUTED
201fe24: 84 10 20 0f mov 0xf, %g2 <== NOT EXECUTED
201fe28: 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
201fe2c: 10 80 00 0b b 201fe58 <msdos_format+0xbc8> <== NOT EXECUTED
201fe30: a8 07 bd 58 add %fp, -680, %l4 <== NOT EXECUTED
201fe34: 7f ff 8a f1 call 20029f8 <.umul> <== NOT EXECUTED
201fe38: a0 04 20 01 inc %l0 <== NOT EXECUTED
201fe3c: d2 07 bf 60 ld [ %fp + -160 ], %o1 <== NOT EXECUTED
201fe40: d4 07 bf 58 ld [ %fp + -168 ], %o2 <== NOT EXECUTED
201fe44: 92 02 00 09 add %o0, %o1, %o1 <== NOT EXECUTED
201fe48: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
201fe4c: 7f ff fc a6 call 201f0e4 <msdos_format_write_sec> <== NOT EXECUTED
201fe50: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
201fe54: 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;
201fe58: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
201fe5c: 12 80 00 06 bne 201fe74 <msdos_format+0xbe4> <== NOT EXECUTED
201fe60: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
201fe64: c2 0f bf 88 ldub [ %fp + -120 ], %g1 <== NOT EXECUTED
201fe68: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED
201fe6c: 06 bf ff f2 bl 201fe34 <msdos_format+0xba4> <== NOT EXECUTED
201fe70: 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) {
201fe74: 80 a4 7f ff cmp %l1, -1 <== NOT EXECUTED
201fe78: 02 80 00 05 be 201fe8c <msdos_format+0xbfc> <== NOT EXECUTED
201fe7c: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
close(fd);
201fe80: 7f ff 9f c0 call 2007d80 <close> <== NOT EXECUTED
201fe84: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
}
if (dd != NULL) {
201fe88: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
201fe8c: 02 80 00 04 be 201fe9c <msdos_format+0xc0c> <== NOT EXECUTED
201fe90: 01 00 00 00 nop <== NOT EXECUTED
rtems_disk_release(dd);
201fe94: 7f ff 9c 18 call 2006ef4 <rtems_disk_release> <== NOT EXECUTED
201fe98: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
}
return ret_val;
}
201fe9c: 81 c7 e0 08 ret <== NOT EXECUTED
201fea0: 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);
201fea4: 7f ff 9c 26 call 2006f3c <rtems_disk_obtain> <== NOT EXECUTED
201fea8: d0 1f bf c0 ldd [ %fp + -64 ], %o0 <== NOT EXECUTED
if (dd == NULL) {
201feac: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
201feb0: 02 bf fd 19 be 201f314 <msdos_format+0x84> <== NOT EXECUTED
201feb4: 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,
201feb8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201febc: 15 00 81 88 sethi %hi(0x2062000), %o2 <== NOT EXECUTED
201fec0: 7f ff fc 74 call 201f090 <msdos_format_printf> <== NOT EXECUTED
201fec4: 94 12 a0 68 or %o2, 0x68, %o2 ! 2062068 <C.6.6032+0xe98> <== NOT EXECUTED
"open device\n");
fd = open(devname, O_RDWR);
201fec8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
201fecc: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
201fed0: 7f ff a5 2c call 2009380 <open> <== NOT EXECUTED
201fed4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
if (fd == -1)
201fed8: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED
201fedc: 02 bf fd 12 be 201f324 <msdos_format+0x94> <== NOT EXECUTED
201fee0: 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));
201fee4: 94 10 20 50 mov 0x50, %o2 <== NOT EXECUTED
201fee8: 92 10 20 00 clr %o1 <== NOT EXECUTED
201feec: 40 00 99 2e call 20463a4 <memset> <== NOT EXECUTED
201fef0: 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;
201fef4: e6 04 a0 20 ld [ %l2 + 0x20 ], %l3 <== NOT EXECUTED
fmt_params->totl_sector_cnt = dd->size;
total_size = dd->block_size * dd->size;
201fef8: 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;
201fefc: e6 27 bf 58 st %l3, [ %fp + -168 ] <== NOT EXECUTED
fmt_params->totl_sector_cnt = dd->size;
201ff00: e0 04 a0 1c ld [ %l2 + 0x1c ], %l0 <== NOT EXECUTED
total_size = dd->block_size * dd->size;
201ff04: 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;
201ff08: e0 27 bf 5c st %l0, [ %fp + -164 ] <== NOT EXECUTED
total_size = dd->block_size * dd->size;
201ff0c: 7f ff 8a bb call 20029f8 <.umul> <== NOT EXECUTED
201ff10: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
201ff14: 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;
201ff18: aa 10 00 08 mov %o0, %l5 <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
201ff1c: d0 23 a0 5c st %o0, [ %sp + 0x5c ] <== NOT EXECUTED
201ff20: 98 10 00 10 mov %l0, %o4 <== NOT EXECUTED
201ff24: e8 3f bd 50 std %l4, [ %fp + -688 ] <== NOT EXECUTED
201ff28: 9a 10 20 00 clr %o5 <== NOT EXECUTED
201ff2c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201ff30: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
201ff34: 15 00 81 88 sethi %hi(0x2062000), %o2 <== NOT EXECUTED
201ff38: 7f ff fc 56 call 201f090 <msdos_format_printf> <== NOT EXECUTED
201ff3c: 94 12 a0 78 or %o2, 0x78, %o2 ! 2062078 <C.6.6032+0xea8> <== NOT EXECUTED
}
/*
* determine number of FATs
*/
if (ret_val == 0) {
if ((rqdata == NULL) ||
201ff40: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
201ff44: 32 bf fc fd bne,a 201f338 <msdos_format+0xa8> <== NOT EXECUTED
201ff48: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
201ff4c: 10 bf fd 02 b 201f354 <msdos_format+0xc4> <== NOT EXECUTED
201ff50: 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,
201ff54: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
201ff58: 15 00 81 88 sethi %hi(0x2062000), %o2 <== NOT EXECUTED
201ff5c: 7f ff fc 4d call 201f090 <msdos_format_printf> <== NOT EXECUTED
201ff60: 94 12 a0 b0 or %o2, 0xb0, %o2 ! 20620b0 <C.6.6032+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) {
201ff64: e8 07 bf 5c ld [ %fp + -164 ], %l4 <== NOT EXECUTED
201ff68: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED
201ff6c: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff <PROM_START+0xffff> <== NOT EXECUTED
201ff70: 80 a5 00 01 cmp %l4, %g1 <== NOT EXECUTED
201ff74: 18 bf fe 74 bgu 201f944 <msdos_format+0x6b4> <== NOT EXECUTED
201ff78: b0 10 20 00 clr %i0 <== NOT EXECUTED
201ff7c: b0 10 00 14 mov %l4, %i0 <== NOT EXECUTED
201ff80: 10 bf fe 71 b 201f944 <msdos_format+0x6b4> <== NOT EXECUTED
201ff84: a8 10 20 00 clr %l4 <== NOT EXECUTED
}
/*
* write fsinfo sector
*/
if ((ret_val == 0) &&
(fmt_params.fsinfo_sec != 0)) {
201ff88: 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) &&
201ff8c: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
201ff90: 22 bf ff 3d be,a 201fc84 <msdos_format+0x9f4> <== NOT EXECUTED
201ff94: d2 07 bf 68 ld [ %fp + -152 ], %o1 <== NOT EXECUTED
(fmt_params.fsinfo_sec != 0)) {
ret_val = msdos_format_write_sec(fd,
201ff98: 10 bf ff 34 b 201fc68 <msdos_format+0x9d8> <== NOT EXECUTED
201ff9c: d4 07 bf 58 ld [ %fp + -168 ], %o2 <== NOT EXECUTED
0201f14c <msdos_format_fill_sectors>:
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
201f14c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
/*
* allocate and fill buffer
*/
if (ret_val == 0) {
fill_buffer = malloc(sector_size);
201f150: 7f ff a6 0b call 200897c <malloc> <== NOT EXECUTED
201f154: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
201f158: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
/*
* allocate and fill buffer
*/
if (ret_val == 0) {
fill_buffer = malloc(sector_size);
201f15c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
if (fill_buffer == NULL) {
201f160: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
201f164: 12 80 00 07 bne 201f180 <msdos_format_fill_sectors+0x34> <== NOT EXECUTED
201f168: 92 10 00 1d mov %i5, %o1 <== NOT EXECUTED
errno = ENOMEM;
201f16c: 40 00 8e af call 2042c28 <__errno> <== NOT EXECUTED
201f170: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
201f174: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
201f178: 10 80 00 05 b 201f18c <msdos_format_fill_sectors+0x40> <== NOT EXECUTED
201f17c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
ret_val = -1;
}
else {
memset(fill_buffer,fill_byte,sector_size);
201f180: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
201f184: 40 00 9c 88 call 20463a4 <memset> <== NOT EXECUTED
201f188: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
}
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
201f18c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
201f190: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
201f194: 15 00 81 87 sethi %hi(0x2061c00), %o2 <== NOT EXECUTED
201f198: 7f ff ff be call 201f090 <msdos_format_printf> <== NOT EXECUTED
201f19c: 94 12 a3 40 or %o2, 0x340, %o2 ! 2061f40 <C.6.6032+0xd70> <== NOT EXECUTED
201f1a0: 83 2e e0 04 sll %i3, 4, %g1 <== NOT EXECUTED
201f1a4: 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, ".");
201f1a8: 2b 00 81 87 sethi %hi(0x2061c00), %l5 <== NOT EXECUTED
else {
memset(fill_buffer,fill_byte,sector_size);
}
}
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
201f1ac: a4 04 80 01 add %l2, %g1, %l2 <== NOT EXECUTED
201f1b0: a6 10 00 1b mov %i3, %l3 <== NOT EXECUTED
201f1b4: 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, ".");
201f1b8: aa 15 63 50 or %l5, 0x350, %l5 <== NOT EXECUTED
else {
memset(fill_buffer,fill_byte,sector_size);
}
}
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
201f1bc: a4 04 80 01 add %l2, %g1, %l2 <== NOT EXECUTED
"Filling : ");
/*
* write to consecutive sectors
*/
while ((ret_val == 0) &&
201f1c0: 10 80 00 18 b 201f220 <msdos_format_fill_sectors+0xd4> <== NOT EXECUTED
201f1c4: a8 10 3f ff mov -1, %l4 <== NOT EXECUTED
(sector_cnt > 0)) {
int percent = (sector_cnt * 100) / total_sectors;
201f1c8: 40 00 ef c5 call 205b0dc <.udiv> <== NOT EXECUTED
201f1cc: 01 00 00 00 nop <== NOT EXECUTED
if (percent != last_percent) {
201f1d0: 80 a2 00 14 cmp %o0, %l4 <== NOT EXECUTED
201f1d4: 02 80 00 09 be 201f1f8 <msdos_format_fill_sectors+0xac> <== NOT EXECUTED
201f1d8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
if ((percent & 1) == 0)
201f1dc: 80 8a 20 01 btst 1, %o0 <== NOT EXECUTED
201f1e0: 12 80 00 07 bne 201f1fc <msdos_format_fill_sectors+0xb0> <== NOT EXECUTED
201f1e4: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, ".");
201f1e8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
201f1ec: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
201f1f0: 7f ff ff a8 call 201f090 <msdos_format_printf> <== NOT EXECUTED
201f1f4: 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);
201f1f8: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
start_sector++;
sector_cnt--;
201f1fc: 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);
201f200: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201f204: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
201f208: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
201f20c: 7f ff ff b6 call 201f0e4 <msdos_format_write_sec> <== NOT EXECUTED
201f210: a6 04 ff ff add %l3, -1, %l3 <== NOT EXECUTED
start_sector++;
sector_cnt--;
201f214: 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++;
201f218: 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);
201f21c: 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;
201f220: 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) &&
201f224: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
201f228: 02 80 00 05 be 201f23c <msdos_format_fill_sectors+0xf0> <== NOT EXECUTED
201f22c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
201f230: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
201f234: 02 bf ff e5 be 201f1c8 <msdos_format_fill_sectors+0x7c> <== NOT EXECUTED
201f238: 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");
201f23c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
201f240: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
201f244: 15 00 81 87 sethi %hi(0x2061c00), %o2 <== NOT EXECUTED
201f248: 7f ff ff 92 call 201f090 <msdos_format_printf> <== NOT EXECUTED
201f24c: 94 12 a3 58 or %o2, 0x358, %o2 ! 2061f58 <C.6.6032+0xd88> <== NOT EXECUTED
if (ret_val)
201f250: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
201f254: 02 80 00 09 be 201f278 <msdos_format_fill_sectors+0x12c> <== NOT EXECUTED
201f258: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_INFO,
201f25c: 15 00 81 87 sethi %hi(0x2061c00), %o2 <== NOT EXECUTED
201f260: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
201f264: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
201f268: 94 12 a3 60 or %o2, 0x360, %o2 <== NOT EXECUTED
201f26c: 7f ff ff 89 call 201f090 <msdos_format_printf> <== NOT EXECUTED
201f270: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
"filling error on sector: %d\n", start_sector);
/*
* cleanup
*/
if (fill_buffer != NULL) {
201f274: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
201f278: 02 80 00 04 be 201f288 <msdos_format_fill_sectors+0x13c> <== NOT EXECUTED
201f27c: 01 00 00 00 nop <== NOT EXECUTED
free(fill_buffer);
201f280: 7f ff a3 f8 call 2008260 <free> <== NOT EXECUTED
201f284: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
fill_buffer = NULL;
}
return ret_val;
}
201f288: 81 c7 e0 08 ret <== NOT EXECUTED
201f28c: 81 e8 00 00 restore <== NOT EXECUTED
0201f090 <msdos_format_printf>:
*/
static void
msdos_format_printf (const msdos_format_request_param_t *rqdata,
int info_level,
const char *format, ...)
{
201f090: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
va_list args;
va_start (args, format);
201f094: 94 07 a0 50 add %fp, 0x50, %o2 <== NOT EXECUTED
201f098: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED
201f09c: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED
201f0a0: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED
201f0a4: d4 27 bf fc st %o2, [ %fp + -4 ] <== NOT EXECUTED
if (rqdata != NULL && rqdata->info_level >= info_level)
201f0a8: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
201f0ac: 02 80 00 0c be 201f0dc <msdos_format_printf+0x4c> <== NOT EXECUTED
201f0b0: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
201f0b4: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
201f0b8: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED
201f0bc: 06 80 00 08 bl 201f0dc <msdos_format_printf+0x4c> <== NOT EXECUTED
201f0c0: 21 00 81 a6 sethi %hi(0x2069800), %l0 <== NOT EXECUTED
{
vfprintf (stdout, format, args);
201f0c4: c2 04 23 d0 ld [ %l0 + 0x3d0 ], %g1 ! 2069bd0 <_impure_ptr><== NOT EXECUTED
201f0c8: 40 00 cb 25 call 2051d5c <vfprintf> <== NOT EXECUTED
201f0cc: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED
fflush (stdout);
201f0d0: c2 04 23 d0 ld [ %l0 + 0x3d0 ], %g1 <== NOT EXECUTED
201f0d4: 40 00 8f df call 2043050 <fflush> <== NOT EXECUTED
201f0d8: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED
201f0dc: 81 c7 e0 08 ret <== NOT EXECUTED
201f0e0: 81 e8 00 00 restore <== NOT EXECUTED
0201f0e4 <msdos_format_write_sec>:
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
201f0e4: 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)) {
201f0e8: 94 10 20 00 clr %o2 <== NOT EXECUTED
201f0ec: 96 10 00 19 mov %i1, %o3 <== NOT EXECUTED
201f0f0: 90 10 20 00 clr %o0 <== NOT EXECUTED
201f0f4: 40 00 f1 52 call 205b63c <__muldi3> <== NOT EXECUTED
201f0f8: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
201f0fc: 84 10 00 08 mov %o0, %g2 <== NOT EXECUTED
201f100: 86 10 00 09 mov %o1, %g3 <== NOT EXECUTED
201f104: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
201f108: 92 10 00 02 mov %g2, %o1 <== NOT EXECUTED
201f10c: 94 10 00 03 mov %g3, %o2 <== NOT EXECUTED
201f110: 40 00 29 e9 call 20298b4 <lseek> <== NOT EXECUTED
201f114: 96 10 20 00 clr %o3 <== NOT EXECUTED
201f118: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
201f11c: 06 80 00 09 bl 201f140 <msdos_format_write_sec+0x5c> <== NOT EXECUTED
201f120: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
ret_val = -1;
}
if (ret_val == 0) {
if (0 > write(fd,buffer,sector_size)) {
201f124: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
201f128: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
201f12c: 7f ff b3 df call 200c0a8 <write> <== NOT EXECUTED
201f130: b0 10 20 00 clr %i0 <== NOT EXECUTED
201f134: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
201f138: 16 80 00 03 bge 201f144 <msdos_format_write_sec+0x60> <== NOT EXECUTED
201f13c: 01 00 00 00 nop <== NOT EXECUTED
201f140: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
ret_val = -1;
}
}
return ret_val;
}
201f144: 81 c7 e0 08 ret <== NOT EXECUTED
201f148: 81 e8 00 00 restore <== NOT EXECUTED
02036b4c <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)
{
2036b4c: 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;
2036b50: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
2036b54: 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;
2036b58: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
2036b5c: 94 10 20 00 clr %o2 <== NOT EXECUTED
2036b60: 7f ff 57 e4 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2036b64: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2036b68: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2036b6c: 22 80 00 08 be,a 2036b8c <msdos_free_node_info+0x40> <== NOT EXECUTED
2036b70: d2 06 00 00 ld [ %i0 ], %o1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2036b74: 40 00 30 2d call 2042c28 <__errno> <== NOT EXECUTED
2036b78: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2036b7c: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2036b80: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2036b84: 81 c7 e0 08 ret <== NOT EXECUTED
2036b88: 81 e8 00 00 restore <== NOT EXECUTED
rc = fat_file_close(pathloc->mt_entry, pathloc->node_access);
2036b8c: 7f ff ba 83 call 2025598 <fat_file_close> <== NOT EXECUTED
2036b90: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED
2036b94: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
2036b98: 7f ff 58 1d call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2036b9c: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
}
2036ba0: 81 c7 e0 08 ret <== NOT EXECUTED
2036ba4: 81 e8 00 00 restore <== NOT EXECUTED
02037f00 <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
)
{
2037f00: 9d e3 bf 50 save %sp, -176, %sp <== NOT EXECUTED
int rc = RC_OK;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
2037f04: 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);
2037f08: 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
)
{
2037f0c: 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;
2037f10: 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);
2037f14: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
2037f18: 7f ff b5 cf call 2025654 <fat_file_open> <== NOT EXECUTED
2037f1c: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
if (rc != RC_OK)
2037f20: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2037f24: 12 80 00 9a bne 203818c <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x28c><== NOT EXECUTED
2037f28: 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;
2037f2c: 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;
2037f30: 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;
2037f34: 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;
2037f38: f2 20 60 1c st %i1, [ %g1 + 0x1c ] <== NOT EXECUTED
fat_fd->fat_file_type = FAT_DIRECTORY;
2037f3c: e6 20 60 10 st %l3, [ %g1 + 0x10 ] <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
fat_fd->map.file_cln = 0;
2037f40: 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);
2037f44: 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;
2037f48: 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);
2037f4c: 7f ff b2 d3 call 2024a98 <fat_file_size> <== NOT EXECUTED
2037f50: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc != RC_OK)
2037f54: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2037f58: 12 80 00 18 bne 2037fb8 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0xb8><== NOT EXECUTED
2037f5c: 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);
2037f60: a4 07 bf d8 add %fp, -40, %l2 <== NOT EXECUTED
2037f64: 92 10 20 00 clr %o1 <== NOT EXECUTED
2037f68: 40 00 39 0f call 20463a4 <memset> <== NOT EXECUTED
2037f6c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
msdos_long_to_short(".", 1, dot_node, MSDOS_SHORT_NAME_LEN);
2037f70: 29 00 81 9a sethi %hi(0x2066800), %l4 <== NOT EXECUTED
2037f74: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2037f78: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2037f7c: 96 10 20 0b mov 0xb, %o3 <== NOT EXECUTED
2037f80: 7f ff ff 64 call 2037d10 <msdos_long_to_short> <== NOT EXECUTED
2037f84: 90 15 21 08 or %l4, 0x108, %o0 <== NOT EXECUTED
rc = msdos_find_name_in_fat_file(mt_entry, fat_fd, false, ".", 1,
2037f88: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
2037f8c: f4 23 a0 5c st %i2, [ %sp + 0x5c ] <== NOT EXECUTED
2037f90: e4 23 a0 60 st %l2, [ %sp + 0x60 ] <== NOT EXECUTED
2037f94: 96 15 21 08 or %l4, 0x108, %o3 <== NOT EXECUTED
2037f98: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2037f9c: 94 10 20 00 clr %o2 <== NOT EXECUTED
2037fa0: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED
2037fa4: 7f ff fb 77 call 2036d80 <msdos_find_name_in_fat_file> <== NOT EXECUTED
2037fa8: 9a 10 20 01 mov 1, %o5 <== NOT EXECUTED
MSDOS_NAME_SHORT, dir_pos, dot_node);
if (rc != RC_OK)
2037fac: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2037fb0: 22 80 00 04 be,a 2037fc0 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0xc0><== NOT EXECUTED
2037fb4: b0 07 bf b8 add %fp, -72, %i0 <== NOT EXECUTED
{
fat_file_close(mt_entry, fat_fd);
2037fb8: 10 80 00 73 b 2038184 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x284><== NOT EXECUTED
2037fbc: 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);
2037fc0: 92 10 20 00 clr %o1 <== NOT EXECUTED
2037fc4: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED
2037fc8: 40 00 38 f7 call 20463a4 <memset> <== NOT EXECUTED
2037fcc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
msdos_long_to_short("..", 2, dotdot_node, MSDOS_SHORT_NAME_LEN);
2037fd0: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
2037fd4: 29 00 81 9a sethi %hi(0x2066800), %l4 <== NOT EXECUTED
2037fd8: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
2037fdc: 96 10 20 0b mov 0xb, %o3 <== NOT EXECUTED
2037fe0: 7f ff ff 4c call 2037d10 <msdos_long_to_short> <== NOT EXECUTED
2037fe4: 90 15 21 10 or %l4, 0x110, %o0 <== NOT EXECUTED
rc = msdos_find_name_in_fat_file(mt_entry, fat_fd, false, "..", 2,
2037fe8: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
2037fec: f0 23 a0 60 st %i0, [ %sp + 0x60 ] <== NOT EXECUTED
2037ff0: f4 23 a0 5c st %i2, [ %sp + 0x5c ] <== NOT EXECUTED
2037ff4: 96 15 21 10 or %l4, 0x110, %o3 <== NOT EXECUTED
2037ff8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2037ffc: 94 10 20 00 clr %o2 <== NOT EXECUTED
2038000: 98 10 20 02 mov 2, %o4 <== NOT EXECUTED
2038004: 7f ff fb 5f call 2036d80 <msdos_find_name_in_fat_file> <== NOT EXECUTED
2038008: 9a 10 20 01 mov 1, %o5 <== NOT EXECUTED
MSDOS_NAME_SHORT, dir_pos,
dotdot_node);
if (rc != RC_OK)
203800c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2038010: 12 80 00 5d bne 2038184 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x284><== NOT EXECUTED
2038014: 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);
2038018: e8 14 a0 14 lduh [ %l2 + 0x14 ], %l4 <== NOT EXECUTED
/* close fat-file corresponded to ".." directory */
rc = fat_file_close(mt_entry, fat_fd);
203801c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2038020: 7f ff b5 5e call 2025598 <fat_file_close> <== NOT EXECUTED
2038024: e4 14 a0 1a lduh [ %l2 + 0x1a ], %l2 <== NOT EXECUTED
if ( rc != RC_OK )
2038028: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203802c: 12 80 00 58 bne 203818c <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x28c><== NOT EXECUTED
2038030: c2 17 bf cc lduh [ %fp + -52 ], %g1 <== NOT EXECUTED
return rc;
if ( (MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)
2038034: 05 00 00 3f sethi %hi(0xfc00), %g2 <== NOT EXECUTED
2038038: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
203803c: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
2038040: 87 30 60 18 srl %g1, 0x18, %g3 <== NOT EXECUTED
2038044: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED
2038048: 82 08 40 02 and %g1, %g2, %g1 <== NOT EXECUTED
203804c: 80 90 40 03 orcc %g1, %g3, %g0 <== NOT EXECUTED
2038050: 12 80 00 10 bne 2038090 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x190><== NOT EXECUTED
2038054: c2 17 bf d2 lduh [ %fp + -46 ], %g1 <== NOT EXECUTED
2038058: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
203805c: 87 30 60 08 srl %g1, 8, %g3 <== NOT EXECUTED
2038060: 80 88 c0 02 btst %g3, %g2 <== NOT EXECUTED
2038064: 12 80 00 0c bne 2038094 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x194><== NOT EXECUTED
2038068: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203806c: 83 30 60 18 srl %g1, 0x18, %g1 <== NOT EXECUTED
2038070: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2038074: 12 80 00 09 bne 2038098 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x198><== NOT EXECUTED
2038078: 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;
203807c: 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;
2038080: 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;
2038084: 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;
2038088: 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;
203808c: 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);
2038090: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2038094: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
2038098: 7f ff b5 6f call 2025654 <fat_file_open> <== NOT EXECUTED
203809c: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
if (rc != RC_OK)
20380a0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20380a4: 12 80 00 3a bne 203818c <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x28c><== NOT EXECUTED
20380a8: c6 17 bf cc lduh [ %fp + -52 ], %g3 <== NOT EXECUTED
return rc;
if ((MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)
20380ac: c8 17 bf d2 lduh [ %fp + -46 ], %g4 <== NOT EXECUTED
20380b0: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
20380b4: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
20380b8: 99 30 e0 18 srl %g3, 0x18, %o4 <== NOT EXECUTED
20380bc: 85 30 e0 08 srl %g3, 8, %g2 <== NOT EXECUTED
20380c0: 9b 31 20 18 srl %g4, 0x18, %o5 <== NOT EXECUTED
20380c4: 07 00 00 3f sethi %hi(0xfc00), %g3 <== NOT EXECUTED
20380c8: 83 31 20 08 srl %g4, 8, %g1 <== NOT EXECUTED
20380cc: 86 10 e3 ff or %g3, 0x3ff, %g3 <== NOT EXECUTED
20380d0: 84 08 80 03 and %g2, %g3, %g2 <== NOT EXECUTED
20380d4: 82 08 40 03 and %g1, %g3, %g1 <== NOT EXECUTED
20380d8: 84 10 80 0c or %g2, %o4, %g2 <== NOT EXECUTED
20380dc: 82 10 40 0d or %g1, %o5, %g1 <== NOT EXECUTED
20380e0: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
20380e4: 82 90 80 01 orcc %g2, %g1, %g1 <== NOT EXECUTED
20380e8: 12 80 00 03 bne 20380f4 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x1f4><== NOT EXECUTED
20380ec: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
fat_fd->cln = fs_info->fat.vol.rdir_cl;
20380f0: c2 04 60 38 ld [ %l1 + 0x38 ], %g1 <== NOT EXECUTED
else
fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node);
20380f4: c2 22 60 1c st %g1, [ %o1 + 0x1c ] <== NOT EXECUTED
fat_fd->fat_file_type = FAT_DIRECTORY;
20380f8: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
20380fc: 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;
2038100: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 <== NOT EXECUTED
rc = fat_file_size(mt_entry, fat_fd);
2038104: 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;
2038108: 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;
203810c: 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;
2038110: c6 20 60 10 st %g3, [ %g1 + 0x10 ] <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
fat_fd->map.file_cln = 0;
2038114: 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;
2038118: 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);
203811c: 7f ff b2 5f call 2024a98 <fat_file_size> <== NOT EXECUTED
2038120: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc != RC_OK)
2038124: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2038128: 12 80 00 17 bne 2038184 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x284><== NOT EXECUTED
203812c: 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,
2038130: a9 2d 20 10 sll %l4, 0x10, %l4 <== NOT EXECUTED
2038134: a5 2c a0 10 sll %l2, 0x10, %l2 <== NOT EXECUTED
2038138: 85 35 20 18 srl %l4, 0x18, %g2 <== NOT EXECUTED
203813c: 87 34 a0 18 srl %l2, 0x18, %g3 <== NOT EXECUTED
2038140: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED
2038144: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff <PROM_START+0xffff> <== NOT EXECUTED
2038148: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
203814c: 98 10 00 1b mov %i3, %o4 <== NOT EXECUTED
2038150: a9 35 20 08 srl %l4, 8, %l4 <== NOT EXECUTED
2038154: a5 34 a0 08 srl %l2, 8, %l2 <== NOT EXECUTED
2038158: 94 0d 00 01 and %l4, %g1, %o2 <== NOT EXECUTED
203815c: a4 0c 80 01 and %l2, %g1, %l2 <== NOT EXECUTED
2038160: 94 12 80 02 or %o2, %g2, %o2 <== NOT EXECUTED
2038164: a4 14 80 03 or %l2, %g3, %l2 <== NOT EXECUTED
2038168: 95 2a a0 10 sll %o2, 0x10, %o2 <== NOT EXECUTED
203816c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2038170: 7f ff fa a3 call 2036bfc <msdos_find_node_by_cluster_num_in_fat_file><== NOT EXECUTED
2038174: 94 12 80 12 or %o2, %l2, %o2 <== NOT EXECUTED
dir_pos, dir_entry);
if (rc != RC_OK)
2038178: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203817c: 02 80 00 06 be 2038194 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x294><== NOT EXECUTED
2038180: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
{
fat_file_close(mt_entry, fat_fd);
2038184: 7f ff b5 05 call 2025598 <fat_file_close> <== NOT EXECUTED
2038188: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
203818c: 81 c7 e0 08 ret <== NOT EXECUTED
2038190: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = fat_file_close(mt_entry, fat_fd);
2038194: 7f ff b5 01 call 2025598 <fat_file_close> <== NOT EXECUTED
2038198: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203819c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
return rc;
}
20381a0: 81 c7 e0 08 ret <== NOT EXECUTED
20381a4: 81 e8 00 00 restore <== NOT EXECUTED
020381a8 <msdos_get_name_node>:
int name_len,
msdos_name_type_t name_type,
fat_dir_pos_t *dir_pos,
char *name_dir_entry
)
{
20381a8: 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,
20381ac: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED
20381b0: 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
)
{
20381b4: 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,
20381b8: fa 23 a0 5c st %i5, [ %sp + 0x5c ] <== NOT EXECUTED
20381bc: e0 23 a0 60 st %l0, [ %sp + 0x60 ] <== NOT EXECUTED
20381c0: 98 10 00 1b mov %i3, %o4 <== NOT EXECUTED
20381c4: 9a 10 00 1c mov %i4, %o5 <== NOT EXECUTED
20381c8: 94 0e 60 ff and %i1, 0xff, %o2 <== NOT EXECUTED
20381cc: 7f ff fa ed call 2036d80 <msdos_find_name_in_fat_file> <== NOT EXECUTED
20381d0: 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
)
{
20381d4: 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))
20381d8: 03 00 00 1f sethi %hi(0x7c00), %g1 <== NOT EXECUTED
20381dc: 82 10 61 01 or %g1, 0x101, %g1 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
20381e0: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED
20381e4: 02 80 00 05 be 20381f8 <msdos_get_name_node+0x50> <== NOT EXECUTED
20381e8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
20381ec: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20381f0: 12 80 00 2f bne 20382ac <msdos_get_name_node+0x104> <== NOT EXECUTED
20381f4: 01 00 00 00 nop <== NOT EXECUTED
return rc;
if (!create_node)
20381f8: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED
20381fc: 12 80 00 26 bne 2038294 <msdos_get_name_node+0xec> <== NOT EXECUTED
2038200: 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)
2038204: 82 10 61 01 or %g1, 0x101, %g1 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
2038208: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED
203820c: 02 80 00 22 be 2038294 <msdos_get_name_node+0xec> <== NOT EXECUTED
2038210: 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)
2038214: 12 80 00 20 bne 2038294 <msdos_get_name_node+0xec> <== NOT EXECUTED
2038218: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
{
if (strncmp(name, "..", 2) == 0)
203821c: 13 00 81 9a sethi %hi(0x2066800), %o1 <== NOT EXECUTED
2038220: 94 10 20 02 mov 2, %o2 <== NOT EXECUTED
2038224: 40 00 46 91 call 2049c68 <strncmp> <== NOT EXECUTED
2038228: 92 12 61 10 or %o1, 0x110, %o1 <== NOT EXECUTED
203822c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2038230: 12 80 00 1f bne 20382ac <msdos_get_name_node+0x104> <== NOT EXECUTED
2038234: 01 00 00 00 nop <== NOT EXECUTED
{
dotdot_cln = MSDOS_EXTRACT_CLUSTER_NUM((name_dir_entry));
2038238: c4 14 20 14 lduh [ %l0 + 0x14 ], %g2 <== NOT EXECUTED
203823c: c6 14 20 1a lduh [ %l0 + 0x1a ], %g3 <== NOT EXECUTED
2038240: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
2038244: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
2038248: 9b 30 a0 18 srl %g2, 0x18, %o5 <== NOT EXECUTED
203824c: 83 30 a0 08 srl %g2, 8, %g1 <== NOT EXECUTED
2038250: 89 30 e0 18 srl %g3, 0x18, %g4 <== NOT EXECUTED
2038254: 05 00 00 3f sethi %hi(0xfc00), %g2 <== NOT EXECUTED
2038258: b3 30 e0 08 srl %g3, 8, %i1 <== NOT EXECUTED
203825c: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
2038260: 82 08 40 02 and %g1, %g2, %g1 <== NOT EXECUTED
2038264: b2 0e 40 02 and %i1, %g2, %i1 <== NOT EXECUTED
2038268: 82 10 40 0d or %g1, %o5, %g1 <== NOT EXECUTED
203826c: b2 16 40 04 or %i1, %g4, %i1 <== NOT EXECUTED
2038270: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
/* are we right under root dir ? */
if (dotdot_cln == 0)
2038274: b2 90 40 19 orcc %g1, %i1, %i1 <== NOT EXECUTED
2038278: 12 80 00 09 bne 203829c <msdos_get_name_node+0xf4> <== NOT EXECUTED
203827c: 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;
2038280: 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;
2038284: 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;
2038288: 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;
203828c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2038290: c2 27 40 00 st %g1, [ %i5 ] <== NOT EXECUTED
2038294: 81 c7 e0 08 ret <== NOT EXECUTED
2038298: 81 e8 00 00 restore <== NOT EXECUTED
}
else
{
rc =
msdos_get_dotdot_dir_info_cluster_num_and_offset(parent_loc->mt_entry,
203829c: f0 04 60 10 ld [ %l1 + 0x10 ], %i0 <== NOT EXECUTED
20382a0: b4 10 00 1d mov %i5, %i2 <== NOT EXECUTED
20382a4: 7f ff ff 17 call 2037f00 <msdos_get_dotdot_dir_info_cluster_num_and_offset><== NOT EXECUTED
20382a8: 97 e8 00 10 restore %g0, %l0, %o3 <== NOT EXECUTED
}
}
}
}
return rc;
}
20382ac: 81 c7 e0 08 ret <== NOT EXECUTED
20382b0: 81 e8 00 00 restore <== NOT EXECUTED
02037c18 <msdos_get_token>:
msdos_token_types_t
msdos_get_token(const char *path,
int pathlen,
const char **ret_token,
int *ret_token_len)
{
2037c18: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
msdos_token_types_t type = MSDOS_NAME;
int i = 0;
*ret_token = NULL;
2037c1c: c0 26 80 00 clr [ %i2 ] <== NOT EXECUTED
*ret_token_len = 0;
2037c20: 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)
{
2037c24: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
int i = 0;
*ret_token = NULL;
*ret_token_len = 0;
if (pathlen == 0)
2037c28: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2037c2c: a0 10 20 00 clr %l0 <== NOT EXECUTED
2037c30: 12 80 00 0a bne 2037c58 <msdos_get_token+0x40> <== NOT EXECUTED
2037c34: b0 10 20 00 clr %i0 <== NOT EXECUTED
2037c38: 30 80 00 34 b,a 2037d08 <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]) )
2037c3c: 7f ff ff da call 2037ba4 <msdos_is_valid_name_char> <== NOT EXECUTED
2037c40: a0 04 20 01 inc %l0 <== NOT EXECUTED
2037c44: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2037c48: 02 80 00 2f be 2037d04 <msdos_get_token+0xec> <== NOT EXECUTED
2037c4c: 80 a4 21 04 cmp %l0, 0x104 <== NOT EXECUTED
return MSDOS_INVALID_TOKEN;
++i;
if ( i == MSDOS_NAME_MAX_LFN_WITH_DOT )
2037c50: 02 80 00 2e be 2037d08 <msdos_get_token+0xf0> <== NOT EXECUTED
2037c54: 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))
2037c58: 7f ff 48 1d call 2009ccc <rtems_filesystem_is_separator> <== NOT EXECUTED
2037c5c: d0 4c 40 10 ldsb [ %l1 + %l0 ], %o0 <== NOT EXECUTED
2037c60: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2037c64: 12 80 00 04 bne 2037c74 <msdos_get_token+0x5c> <== NOT EXECUTED
2037c68: 80 a4 00 19 cmp %l0, %i1 <== NOT EXECUTED
2037c6c: 26 bf ff f4 bl,a 2037c3c <msdos_get_token+0x24> <== NOT EXECUTED
2037c70: 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;
2037c74: e2 26 80 00 st %l1, [ %i2 ] <== NOT EXECUTED
/*
* If it is just a separator then it is the current dir.
*/
if ( i == 0 )
2037c78: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
2037c7c: 12 80 00 08 bne 2037c9c <msdos_get_token+0x84> <== NOT EXECUTED
2037c80: b0 10 20 03 mov 3, %i0 <== NOT EXECUTED
{
if ( (*path != '\0') && pathlen )
2037c84: c2 4c 40 00 ldsb [ %l1 ], %g1 <== NOT EXECUTED
2037c88: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2037c8c: 02 80 00 04 be 2037c9c <msdos_get_token+0x84> <== NOT EXECUTED
2037c90: b0 10 20 00 clr %i0 <== NOT EXECUTED
2037c94: a0 10 20 01 mov 1, %l0 <== NOT EXECUTED
2037c98: 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 )
2037c9c: 80 a6 20 03 cmp %i0, 3 <== NOT EXECUTED
2037ca0: 12 80 00 1a bne 2037d08 <msdos_get_token+0xf0> <== NOT EXECUTED
2037ca4: e0 26 c0 00 st %l0, [ %i3 ] <== NOT EXECUTED
{
if ((i == 2) && ((*ret_token)[0] == '.') && ((*ret_token)[1] == '.'))
2037ca8: 80 a4 20 02 cmp %l0, 2 <== NOT EXECUTED
2037cac: 12 80 00 0d bne 2037ce0 <msdos_get_token+0xc8> <== NOT EXECUTED
2037cb0: 80 a4 20 01 cmp %l0, 1 <== NOT EXECUTED
2037cb4: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
2037cb8: c4 48 40 00 ldsb [ %g1 ], %g2 <== NOT EXECUTED
2037cbc: 80 a0 a0 2e cmp %g2, 0x2e <== NOT EXECUTED
2037cc0: 12 80 00 12 bne 2037d08 <msdos_get_token+0xf0> <== NOT EXECUTED
2037cc4: 01 00 00 00 nop <== NOT EXECUTED
2037cc8: c2 48 60 01 ldsb [ %g1 + 1 ], %g1 <== NOT EXECUTED
2037ccc: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
2037cd0: 12 80 00 0e bne 2037d08 <msdos_get_token+0xf0> <== NOT EXECUTED
2037cd4: 01 00 00 00 nop <== NOT EXECUTED
2037cd8: 81 c7 e0 08 ret <== NOT EXECUTED
2037cdc: 91 e8 20 02 restore %g0, 2, %o0 <== NOT EXECUTED
{
type = MSDOS_UP_DIR;
return type;
}
if ((i == 1) && ((*ret_token)[0] == '.'))
2037ce0: 12 80 00 0a bne 2037d08 <msdos_get_token+0xf0> <== NOT EXECUTED
2037ce4: 01 00 00 00 nop <== NOT EXECUTED
2037ce8: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
2037cec: c2 48 40 00 ldsb [ %g1 ], %g1 <== NOT EXECUTED
2037cf0: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
2037cf4: 12 80 00 05 bne 2037d08 <msdos_get_token+0xf0> <== NOT EXECUTED
2037cf8: 01 00 00 00 nop <== NOT EXECUTED
2037cfc: 81 c7 e0 08 ret <== NOT EXECUTED
2037d00: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED
2037d04: b0 10 20 04 mov 4, %i0 <== NOT EXECUTED
return type;
}
}
return type;
}
2037d08: 81 c7 e0 08 ret <== NOT EXECUTED
2037d0c: 81 e8 00 00 restore <== NOT EXECUTED
0201ffc8 <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
)
{
201ffc8: 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));
201ffcc: 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;
201ffd0: 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));
201ffd4: 92 10 20 a0 mov 0xa0, %o1 <== NOT EXECUTED
201ffd8: 7f ff 9f 13 call 2007c24 <calloc> <== NOT EXECUTED
201ffdc: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
if (!fs_info)
201ffe0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
201ffe4: 02 80 00 41 be 20200e8 <msdos_initialize_support+0x120> <== NOT EXECUTED
201ffe8: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
temp_mt_entry->fs_info = fs_info;
201ffec: d0 24 60 34 st %o0, [ %l1 + 0x34 ] <== NOT EXECUTED
rc = fat_init_volume_info(temp_mt_entry);
201fff0: 40 00 18 71 call 20261b4 <fat_init_volume_info> <== NOT EXECUTED
201fff4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rc != RC_OK)
201fff8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
201fffc: 12 80 00 2b bne 20200a8 <msdos_initialize_support+0xe0> <== NOT EXECUTED
2020000: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
{
free(fs_info);
return rc;
}
fs_info->file_handlers = file_handlers;
2020004: f4 24 20 94 st %i2, [ %l0 + 0x94 ] <== NOT EXECUTED
fs_info->directory_handlers = directory_handlers;
2020008: 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;
202000c: 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;
2020010: 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;
2020014: 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;
2020018: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED
rc = fat_file_open(temp_mt_entry, &root_pos, &fat_fd);
202001c: 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;
2020020: e4 27 bf ec st %l2, [ %fp + -20 ] <== NOT EXECUTED
rc = fat_file_open(temp_mt_entry, &root_pos, &fat_fd);
2020024: 92 07 bf ec add %fp, -20, %o1 <== NOT EXECUTED
2020028: 40 00 15 8b call 2025654 <fat_file_open> <== NOT EXECUTED
202002c: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
if (rc != RC_OK)
2020030: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2020034: 12 80 00 1b bne 20200a0 <msdos_initialize_support+0xd8> <== NOT EXECUTED
2020038: 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;
202003c: 03 00 08 00 sethi %hi(0x200000), %g1 <== NOT EXECUTED
2020040: c2 22 60 14 st %g1, [ %o1 + 0x14 ] <== NOT EXECUTED
fat_fd->cln = fs_info->fat.vol.rdir_cl;
2020044: 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;
2020048: 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;
202004c: c2 22 60 1c st %g1, [ %o1 + 0x1c ] <== NOT EXECUTED
fat_fd->map.file_cln = 0;
2020050: 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 )
2020054: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2020058: 12 80 00 0a bne 2020080 <msdos_initialize_support+0xb8> <== NOT EXECUTED
202005c: c2 22 60 38 st %g1, [ %o1 + 0x38 ] <== NOT EXECUTED
{
fat_fd->fat_file_size = fs_info->fat.vol.rdir_size;
2020060: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED
cl_buf_size = (fs_info->fat.vol.bpc > fs_info->fat.vol.rdir_size) ?
2020064: 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;
2020068: c2 22 60 18 st %g1, [ %o1 + 0x18 ] <== NOT EXECUTED
cl_buf_size = (fs_info->fat.vol.bpc > fs_info->fat.vol.rdir_size) ?
202006c: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED
2020070: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED
2020074: 2a 80 00 11 bcs,a 20200b8 <msdos_initialize_support+0xf0><== NOT EXECUTED
2020078: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
202007c: 30 80 00 0f b,a 20200b8 <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);
2020080: 40 00 12 86 call 2024a98 <fat_file_size> <== NOT EXECUTED
2020084: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
if ( rc != RC_OK )
2020088: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
202008c: 22 80 00 0b be,a 20200b8 <msdos_initialize_support+0xf0> <== NOT EXECUTED
2020090: d0 14 20 06 lduh [ %l0 + 6 ], %o0 <== NOT EXECUTED
{
fat_file_close(temp_mt_entry, fat_fd);
2020094: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
2020098: 40 00 15 40 call 2025598 <fat_file_close> <== NOT EXECUTED
202009c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
fat_shutdown_drive(temp_mt_entry);
20200a0: 40 00 17 98 call 2025f00 <fat_shutdown_drive> <== NOT EXECUTED
20200a4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
free(fs_info);
20200a8: 7f ff a0 6e call 2008260 <free> <== NOT EXECUTED
20200ac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
20200b0: 81 c7 e0 08 ret <== NOT EXECUTED
20200b4: 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));
20200b8: 7f ff 9e db call 2007c24 <calloc> <== NOT EXECUTED
20200bc: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
if (fs_info->cl_buf == NULL)
20200c0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20200c4: 12 80 00 0d bne 20200f8 <msdos_initialize_support+0x130> <== NOT EXECUTED
20200c8: d0 24 20 9c st %o0, [ %l0 + 0x9c ] <== NOT EXECUTED
{
fat_file_close(temp_mt_entry, fat_fd);
20200cc: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
20200d0: 40 00 15 32 call 2025598 <fat_file_close> <== NOT EXECUTED
20200d4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
fat_shutdown_drive(temp_mt_entry);
20200d8: 40 00 17 8a call 2025f00 <fat_shutdown_drive> <== NOT EXECUTED
20200dc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
free(fs_info);
20200e0: 7f ff a0 60 call 2008260 <free> <== NOT EXECUTED
20200e4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
20200e8: 40 00 8a d0 call 2042c28 <__errno> <== NOT EXECUTED
20200ec: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20200f0: 10 80 00 17 b 202014c <msdos_initialize_support+0x184> <== NOT EXECUTED
20200f4: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
}
sc = rtems_semaphore_create(3,
20200f8: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
20200fc: 90 10 20 03 mov 3, %o0 <== NOT EXECUTED
2020100: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED
2020104: 96 10 20 00 clr %o3 <== NOT EXECUTED
2020108: 7f ff b1 bf call 200c804 <rtems_semaphore_create> <== NOT EXECUTED
202010c: 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)
2020110: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020114: 02 80 00 11 be 2020158 <msdos_initialize_support+0x190> <== NOT EXECUTED
2020118: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
{
fat_file_close(temp_mt_entry, fat_fd);
202011c: 40 00 15 1f call 2025598 <fat_file_close> <== NOT EXECUTED
2020120: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
fat_shutdown_drive(temp_mt_entry);
2020124: 40 00 17 77 call 2025f00 <fat_shutdown_drive> <== NOT EXECUTED
2020128: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
free(fs_info->cl_buf);
202012c: d0 04 20 9c ld [ %l0 + 0x9c ], %o0 <== NOT EXECUTED
2020130: 7f ff a0 4c call 2008260 <free> <== NOT EXECUTED
2020134: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
free(fs_info);
2020138: 7f ff a0 4a call 2008260 <free> <== NOT EXECUTED
202013c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
2020140: 40 00 8a ba call 2042c28 <__errno> <== NOT EXECUTED
2020144: 01 00 00 00 nop <== NOT EXECUTED
2020148: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
202014c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2020150: 81 c7 e0 08 ret <== NOT EXECUTED
2020154: 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;
2020158: 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;
202015c: d2 24 60 1c st %o1, [ %l1 + 0x1c ] <== NOT EXECUTED
temp_mt_entry->mt_fs_root.handlers = directory_handlers;
2020160: f6 24 60 24 st %i3, [ %l1 + 0x24 ] <== NOT EXECUTED
temp_mt_entry->mt_fs_root.ops = op_table;
return rc;
}
2020164: 81 c7 e0 08 ret <== NOT EXECUTED
2020168: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
02037ba4 <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)
{
2037ba4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (strchr(" +,;=[]", ch) != NULL)
2037ba8: 11 00 81 9a sethi %hi(0x2066800), %o0 <== NOT EXECUTED
2037bac: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
2037bb0: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
2037bb4: 90 12 20 e8 or %o0, 0xe8, %o0 <== NOT EXECUTED
2037bb8: 40 00 45 50 call 20490f8 <strchr> <== NOT EXECUTED
2037bbc: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
2037bc0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2037bc4: 12 80 00 10 bne 2037c04 <msdos_is_valid_name_char+0x60> <== NOT EXECUTED
2037bc8: 80 a4 20 2e cmp %l0, 0x2e <== NOT EXECUTED
return MSDOS_NAME_LONG;
if ((ch == '.') || isalnum((unsigned char)ch) ||
2037bcc: 02 80 00 10 be 2037c0c <msdos_is_valid_name_char+0x68> <== NOT EXECUTED
2037bd0: 03 00 81 a6 sethi %hi(0x2069800), %g1 <== NOT EXECUTED
2037bd4: c2 00 63 c4 ld [ %g1 + 0x3c4 ], %g1 ! 2069bc4 <__ctype_ptr__><== NOT EXECUTED
2037bd8: a2 0c 20 ff and %l0, 0xff, %l1 <== NOT EXECUTED
2037bdc: a2 00 40 11 add %g1, %l1, %l1 <== NOT EXECUTED
2037be0: c2 0c 60 01 ldub [ %l1 + 1 ], %g1 <== NOT EXECUTED
2037be4: 80 88 60 07 btst 7, %g1 <== NOT EXECUTED
2037be8: 12 80 00 09 bne 2037c0c <msdos_is_valid_name_char+0x68> <== NOT EXECUTED
2037bec: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
(strchr("$%'-_@~`!(){}^#&", ch) != NULL))
2037bf0: 11 00 81 9a sethi %hi(0x2066800), %o0 <== NOT EXECUTED
2037bf4: 40 00 45 41 call 20490f8 <strchr> <== NOT EXECUTED
2037bf8: 90 12 20 f0 or %o0, 0xf0, %o0 ! 20668f0 <msdos_file_handlers+0xd8><== NOT EXECUTED
2037bfc: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
2037c00: b0 40 20 00 addx %g0, 0, %i0 <== NOT EXECUTED
2037c04: 81 c7 e0 08 ret <== NOT EXECUTED
2037c08: 81 e8 00 00 restore <== NOT EXECUTED
2037c0c: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
return MSDOS_NAME_SHORT;
return MSDOS_NAME_INVALID;
}
2037c10: 81 c7 e0 08 ret <== NOT EXECUTED
2037c14: 81 e8 00 00 restore <== NOT EXECUTED
02037d10 <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)
{
2037d10: 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);
2037d14: 92 10 20 20 mov 0x20, %o1 <== NOT EXECUTED
2037d18: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED
2037d1c: 40 00 39 a2 call 20463a4 <memset> <== NOT EXECUTED
2037d20: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
/*
* Handle '.' and '..' specially.
*/
if ((lfn[0] == '.') && (lfn_len == 1))
2037d24: c2 4e 00 00 ldsb [ %i0 ], %g1 <== NOT EXECUTED
2037d28: 82 18 60 2e xor %g1, 0x2e, %g1 <== NOT EXECUTED
2037d2c: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
2037d30: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED
2037d34: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED
2037d38: 12 80 00 07 bne 2037d54 <msdos_long_to_short+0x44> <== NOT EXECUTED
2037d3c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
2037d40: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2037d44: 02 80 00 05 be 2037d58 <msdos_long_to_short+0x48> <== NOT EXECUTED
2037d48: 82 10 20 2e mov 0x2e, %g1 <== NOT EXECUTED
{
sfn[0] = '.';
2037d4c: 10 80 00 0e b 2037d84 <msdos_long_to_short+0x74> <== NOT EXECUTED
2037d50: 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))
2037d54: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2037d58: 02 80 00 15 be 2037dac <msdos_long_to_short+0x9c> <== NOT EXECUTED
2037d5c: 82 10 20 00 clr %g1 <== NOT EXECUTED
2037d60: c2 4c 20 01 ldsb [ %l0 + 1 ], %g1 <== NOT EXECUTED
2037d64: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
2037d68: 32 80 00 11 bne,a 2037dac <msdos_long_to_short+0x9c> <== NOT EXECUTED
2037d6c: 82 10 20 00 clr %g1 <== NOT EXECUTED
2037d70: 80 a6 60 02 cmp %i1, 2 <== NOT EXECUTED
2037d74: 32 80 00 0e bne,a 2037dac <msdos_long_to_short+0x9c> <== NOT EXECUTED
2037d78: 82 10 20 00 clr %g1 <== NOT EXECUTED
{
sfn[0] = sfn[1] = '.';
2037d7c: c2 2e 80 00 stb %g1, [ %i2 ] <== NOT EXECUTED
2037d80: 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;
2037d84: 81 c7 e0 08 ret <== NOT EXECUTED
2037d88: 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] != '.'))
2037d8c: 80 a0 a0 2e cmp %g2, 0x2e <== NOT EXECUTED
2037d90: 02 80 00 07 be 2037dac <msdos_long_to_short+0x9c> <== NOT EXECUTED
2037d94: 82 00 60 01 inc %g1 <== NOT EXECUTED
2037d98: 80 a0 a0 20 cmp %g2, 0x20 <== NOT EXECUTED
2037d9c: 02 80 00 05 be 2037db0 <msdos_long_to_short+0xa0> <== NOT EXECUTED
2037da0: 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++;
2037da4: 10 80 00 38 b 2037e84 <msdos_long_to_short+0x174> <== NOT EXECUTED
2037da8: a4 10 20 00 clr %l2 <== NOT EXECUTED
}
/*
* Filenames with only blanks and dots are not allowed!
*/
for (i = 0; i < lfn_len; i++)
2037dac: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED
2037db0: 26 bf ff f7 bl,a 2037d8c <msdos_long_to_short+0x7c> <== NOT EXECUTED
2037db4: c4 4c 00 01 ldsb [ %l0 + %g1 ], %g2 <== NOT EXECUTED
if ((lfn[i] != ' ') && (lfn[i] != '.'))
break;
if (i == lfn_len)
2037db8: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED
2037dbc: 12 80 00 31 bne 2037e80 <msdos_long_to_short+0x170> <== NOT EXECUTED
2037dc0: b0 10 20 00 clr %i0 <== NOT EXECUTED
2037dc4: 30 80 00 4b b,a 2037ef0 <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);
2037dc8: 7f ff ff 77 call 2037ba4 <msdos_is_valid_name_char> <== NOT EXECUTED
2037dcc: 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))
2037dd0: 80 a2 20 02 cmp %o0, 2 <== NOT EXECUTED
2037dd4: 02 80 00 3f be 2037ed0 <msdos_long_to_short+0x1c0> <== NOT EXECUTED
2037dd8: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
2037ddc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2037de0: 02 80 00 3c be 2037ed0 <msdos_long_to_short+0x1c0> <== NOT EXECUTED
2037de4: 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 == '.';
2037de8: 80 a0 00 14 cmp %g0, %l4 <== NOT EXECUTED
2037dec: 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)
2037df0: 80 a4 ff ff cmp %l3, -1 <== NOT EXECUTED
2037df4: 02 80 00 09 be 2037e18 <msdos_long_to_short+0x108> <== NOT EXECUTED
2037df8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
{
if (is_dot || ((count - dot_at) > 3))
2037dfc: 12 80 00 3f bne 2037ef8 <msdos_long_to_short+0x1e8> <== NOT EXECUTED
2037e00: 82 24 80 13 sub %l2, %l3, %g1 <== NOT EXECUTED
2037e04: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED
2037e08: 04 80 00 10 ble 2037e48 <msdos_long_to_short+0x138> <== NOT EXECUTED
2037e0c: 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;
2037e10: 10 80 00 33 b 2037edc <msdos_long_to_short+0x1cc> <== NOT EXECUTED
2037e14: a2 10 20 02 mov 2, %l1 <== NOT EXECUTED
return MSDOS_NAME_LONG;
}
}
else
{
if (count == 8 && !is_dot)
2037e18: 80 a4 a0 08 cmp %l2, 8 <== NOT EXECUTED
2037e1c: 12 80 00 07 bne 2037e38 <msdos_long_to_short+0x128> <== NOT EXECUTED
2037e20: 82 08 60 ff and %g1, 0xff, %g1 <== NOT EXECUTED
2037e24: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2037e28: 32 80 00 14 bne,a 2037e78 <msdos_long_to_short+0x168> <== NOT EXECUTED
2037e2c: 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;
2037e30: 10 80 00 2b b 2037edc <msdos_long_to_short+0x1cc> <== NOT EXECUTED
2037e34: a2 10 20 02 mov 2, %l1 <== NOT EXECUTED
#endif
return MSDOS_NAME_LONG;
}
}
if (is_dot)
2037e38: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2037e3c: 32 80 00 0f bne,a 2037e78 <msdos_long_to_short+0x168> <== NOT EXECUTED
2037e40: a6 10 00 12 mov %l2, %l3 <== NOT EXECUTED
dot_at = count;
else if ((*name >= 'A') && (*name <= 'Z'))
2037e44: 82 05 7f bf add %l5, -65, %g1 <== NOT EXECUTED
2037e48: 82 08 60 ff and %g1, 0xff, %g1 <== NOT EXECUTED
2037e4c: 80 a0 60 19 cmp %g1, 0x19 <== NOT EXECUTED
2037e50: 18 80 00 04 bgu 2037e60 <msdos_long_to_short+0x150> <== NOT EXECUTED
2037e54: aa 05 7f 9f add %l5, -97, %l5 <== NOT EXECUTED
2037e58: 10 80 00 08 b 2037e78 <msdos_long_to_short+0x168> <== NOT EXECUTED
2037e5c: ac 10 20 01 mov 1, %l6 <== NOT EXECUTED
uppercase = true;
else if ((*name >= 'a') && (*name <= 'z'))
2037e60: aa 0d 60 ff and %l5, 0xff, %l5 <== NOT EXECUTED
2037e64: 80 a5 60 19 cmp %l5, 0x19 <== NOT EXECUTED
2037e68: 28 80 00 04 bleu,a 2037e78 <msdos_long_to_short+0x168> <== NOT EXECUTED
2037e6c: ae 10 20 01 mov 1, %l7 <== NOT EXECUTED
lowercase = true;
count++;
2037e70: 10 80 00 08 b 2037e90 <msdos_long_to_short+0x180> <== NOT EXECUTED
2037e74: a4 04 a0 01 inc %l2 <== NOT EXECUTED
2037e78: 10 80 00 06 b 2037e90 <msdos_long_to_short+0x180> <== NOT EXECUTED
2037e7c: a4 04 a0 01 inc %l2 <== NOT EXECUTED
2037e80: a4 10 20 00 clr %l2 <== NOT EXECUTED
2037e84: a6 10 3f ff mov -1, %l3 <== NOT EXECUTED
2037e88: ac 10 20 00 clr %l6 <== NOT EXECUTED
2037e8c: ae 10 20 00 clr %l7 <== NOT EXECUTED
bool lowercase = false;
bool uppercase = false;
int dot_at = -1;
int count = 0;
while (*name && (count < name_len))
2037e90: 80 a4 80 19 cmp %l2, %i1 <== NOT EXECUTED
2037e94: 16 80 00 07 bge 2037eb0 <msdos_long_to_short+0x1a0> <== NOT EXECUTED
2037e98: ea 0c 00 12 ldub [ %l0 + %l2 ], %l5 <== NOT EXECUTED
2037e9c: a9 2d 60 18 sll %l5, 0x18, %l4 <== NOT EXECUTED
2037ea0: a9 3d 20 18 sra %l4, 0x18, %l4 <== NOT EXECUTED
2037ea4: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED
2037ea8: 12 bf ff c8 bne 2037dc8 <msdos_long_to_short+0xb8> <== NOT EXECUTED
2037eac: 01 00 00 00 nop <== NOT EXECUTED
count++;
name++;
}
if (lowercase && uppercase)
2037eb0: 80 8d e0 ff btst 0xff, %l7 <== NOT EXECUTED
2037eb4: 02 80 00 0a be 2037edc <msdos_long_to_short+0x1cc> <== NOT EXECUTED
2037eb8: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED
2037ebc: 80 8d a0 ff btst 0xff, %l6 <== NOT EXECUTED
2037ec0: 32 80 00 07 bne,a 2037edc <msdos_long_to_short+0x1cc> <== NOT EXECUTED
2037ec4: 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);
2037ec8: 10 80 00 06 b 2037ee0 <msdos_long_to_short+0x1d0> <== NOT EXECUTED
2037ecc: 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)
2037ed0: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
2037ed4: 02 80 00 07 be 2037ef0 <msdos_long_to_short+0x1e0> <== NOT EXECUTED
2037ed8: 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);
2037edc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2037ee0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2037ee4: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2037ee8: 40 00 25 44 call 20413f8 <msdos_filename_unix2dos> <== NOT EXECUTED
2037eec: 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;
}
2037ef0: 81 c7 e0 08 ret <== NOT EXECUTED
2037ef4: 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;
2037ef8: 10 bf ff f9 b 2037edc <msdos_long_to_short+0x1cc> <== NOT EXECUTED
2037efc: a2 10 20 02 mov 2, %l1 <== NOT EXECUTED
0202016c <msdos_mknod>:
const char *name,
mode_t mode,
dev_t dev,
rtems_filesystem_location_info_t *pathloc
)
{
202016c: 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;
2020170: 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))
2020174: 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;
2020178: 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))
202017c: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
2020180: 82 0e 40 01 and %i1, %g1, %g1 <== NOT EXECUTED
2020184: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2020188: 02 80 00 09 be 20201ac <msdos_mknod+0x40> <== NOT EXECUTED
202018c: 05 00 00 20 sethi %hi(0x8000), %g2 <== NOT EXECUTED
{
type = MSDOS_DIRECTORY;
}
else if (S_ISREG(mode))
2020190: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2020194: 02 80 00 07 be 20201b0 <msdos_mknod+0x44> <== NOT EXECUTED
2020198: a2 10 20 05 mov 5, %l1 <== NOT EXECUTED
{
type = MSDOS_REGULAR_FILE;
}
else
rtems_set_errno_and_return_minus_one(EINVAL);
202019c: 40 00 8a a3 call 2042c28 <__errno> <== NOT EXECUTED
20201a0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20201a4: 10 80 00 0d b 20201d8 <msdos_mknod+0x6c> <== NOT EXECUTED
20201a8: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
20201ac: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
20201b0: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
20201b4: 92 10 20 00 clr %o1 <== NOT EXECUTED
20201b8: 7f ff b2 4e call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
20201bc: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
20201c0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20201c4: 02 80 00 08 be 20201e4 <msdos_mknod+0x78> <== NOT EXECUTED
20201c8: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
20201cc: 40 00 8a 97 call 2042c28 <__errno> <== NOT EXECUTED
20201d0: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
20201d4: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
20201d8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20201dc: 81 c7 e0 08 ret <== NOT EXECUTED
20201e0: 81 e8 00 00 restore <== NOT EXECUTED
/* Create an MSDOS node */
rc = msdos_creat_node(pathloc, type, name, strlen(name), mode, NULL);
20201e4: 40 00 a6 39 call 2049ac8 <strlen> <== NOT EXECUTED
20201e8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20201ec: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
20201f0: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
20201f4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20201f8: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
20201fc: 98 10 00 19 mov %i1, %o4 <== NOT EXECUTED
2020200: 40 00 56 62 call 2035b88 <msdos_creat_node> <== NOT EXECUTED
2020204: 9a 10 20 00 clr %o5 <== NOT EXECUTED
2020208: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
202020c: 7f ff b2 80 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2020210: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
}
2020214: 81 c7 e0 08 ret <== NOT EXECUTED
2020218: 81 e8 00 00 restore <== NOT EXECUTED
0202021c <msdos_node_type>:
* node type
*
*/
rtems_filesystem_node_types_t
msdos_node_type(rtems_filesystem_location_info_t *pathloc)
{
202021c: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED
* call
*/
fat_fd = pathloc->node_access;
return fat_fd->fat_file_type;
}
2020220: 81 c3 e0 08 retl <== NOT EXECUTED
2020224: d0 00 60 10 ld [ %g1 + 0x10 ], %o0 <== NOT EXECUTED
02020228 <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)
{
2020228: 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;
202022c: 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)) {
2020230: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
2020234: 40 00 a6 25 call 2049ac8 <strlen> <== NOT EXECUTED
2020238: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
202023c: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
2020240: 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;
2020244: 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)) {
2020248: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
202024c: 40 00 5e 73 call 2037c18 <msdos_get_token> <== NOT EXECUTED
2020250: 96 07 bf f8 add %fp, -8, %o3 <== NOT EXECUTED
2020254: 80 a2 20 03 cmp %o0, 3 <== NOT EXECUTED
2020258: 22 80 00 06 be,a 2020270 <msdos_rename+0x48> <== NOT EXECUTED
202025c: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENAMETOOLONG);
2020260: 40 00 8a 72 call 2042c28 <__errno> <== NOT EXECUTED
2020264: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2020268: 10 80 00 0b b 2020294 <msdos_rename+0x6c> <== NOT EXECUTED
202026c: 82 10 20 5b mov 0x5b, %g1 <== NOT EXECUTED
}
/*
* lock volume
*/
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
2020270: 92 10 20 00 clr %o1 <== NOT EXECUTED
2020274: 7f ff b2 1f call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2020278: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
202027c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020280: 02 80 00 08 be 20202a0 <msdos_rename+0x78> <== NOT EXECUTED
2020284: d6 07 bf f8 ld [ %fp + -8 ], %o3 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2020288: 40 00 8a 68 call 2042c28 <__errno> <== NOT EXECUTED
202028c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2020290: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2020294: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2020298: 81 c7 e0 08 ret <== NOT EXECUTED
202029c: 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,
20202a0: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
20202a4: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED
20202a8: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED
20202ac: 19 00 00 20 sethi %hi(0x8000), %o4 <== NOT EXECUTED
20202b0: 40 00 56 36 call 2035b88 <msdos_creat_node> <== NOT EXECUTED
20202b4: 9a 10 00 11 mov %l1, %o5 <== NOT EXECUTED
MSDOS_HARD_LINK,new_name,len,S_IFREG,
old_fat_fd);
if (rc != RC_OK)
20202b8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20202bc: 22 80 00 06 be,a 20202d4 <msdos_rename+0xac> <== NOT EXECUTED
20202c0: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
20202c4: 7f ff b2 52 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
20202c8: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
20202cc: 81 c7 e0 08 ret <== NOT EXECUTED
20202d0: 81 e8 00 00 restore <== NOT EXECUTED
}
/*
* mark file removed
*/
rc = msdos_set_first_char4file_name(old_loc->mt_entry,
20202d4: 92 04 60 20 add %l1, 0x20, %o1 <== NOT EXECUTED
20202d8: 40 00 5d 9f call 2037954 <msdos_set_first_char4file_name> <== NOT EXECUTED
20202dc: 94 10 20 e5 mov 0xe5, %o2 <== NOT EXECUTED
20202e0: 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);
20202e4: 7f ff b2 4a call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
20202e8: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
}
20202ec: 81 c7 e0 08 ret <== NOT EXECUTED
20202f0: 81 e8 00 00 restore <== NOT EXECUTED
02037ab0 <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
)
{
2037ab0: 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);
2037ab4: d0 06 60 40 ld [ %i1 + 0x40 ], %o0 <== NOT EXECUTED
2037ab8: 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;
2037abc: 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);
2037ac0: 40 00 25 b1 call 2041184 <msdos_date_unix2dos> <== NOT EXECUTED
2037ac4: 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);
2037ac8: 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)) )
2037acc: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2037ad0: 12 80 00 08 bne 2037af0 <msdos_set_dir_wrt_time_and_date+0x40><== NOT EXECUTED
2037ad4: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 <== NOT EXECUTED
2037ad8: c6 08 60 0a ldub [ %g1 + 0xa ], %g3 <== NOT EXECUTED
2037adc: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED
2037ae0: 22 80 00 05 be,a 2037af4 <msdos_set_dir_wrt_time_and_date+0x44><== NOT EXECUTED
2037ae4: c6 00 60 30 ld [ %g1 + 0x30 ], %g3 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
2037ae8: 10 80 00 07 b 2037b04 <msdos_set_dir_wrt_time_and_date+0x54><== NOT EXECUTED
2037aec: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
2037af0: c6 00 60 30 ld [ %g1 + 0x30 ], %g3 <== NOT EXECUTED
2037af4: c8 08 60 05 ldub [ %g1 + 5 ], %g4 <== NOT EXECUTED
2037af8: 82 00 bf fe add %g2, -2, %g1 <== NOT EXECUTED
2037afc: 83 28 40 04 sll %g1, %g4, %g1 <== NOT EXECUTED
2037b00: 82 00 40 03 add %g1, %g3, %g1 <== NOT EXECUTED
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
2037b04: c4 06 60 24 ld [ %i1 + 0x24 ], %g2 <== NOT EXECUTED
2037b08: 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);
2037b0c: 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);
2037b10: a3 30 80 11 srl %g2, %l1, %l1 <== NOT EXECUTED
2037b14: 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);
2037b18: 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);
2037b1c: a0 04 3f ff add %l0, -1, %l0 <== NOT EXECUTED
time_val = CT_LE_W(time_val);
2037b20: 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);
2037b24: a0 0c 00 02 and %l0, %g2, %l0 <== NOT EXECUTED
time_val = CT_LE_W(time_val);
2037b28: 85 30 60 18 srl %g1, 0x18, %g2 <== NOT EXECUTED
2037b2c: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED
2037b30: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
ret1 = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_WTIME_OFFSET,
2037b34: 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);
2037b38: c2 37 bf fe sth %g1, [ %fp + -2 ] <== NOT EXECUTED
ret1 = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_WTIME_OFFSET,
2037b3c: 94 04 20 16 add %l0, 0x16, %o2 <== NOT EXECUTED
2037b40: 96 10 20 02 mov 2, %o3 <== NOT EXECUTED
2037b44: 98 07 bf fe add %fp, -2, %o4 <== NOT EXECUTED
2037b48: 7f ff b8 93 call 2025d94 <_fat_block_write> <== NOT EXECUTED
2037b4c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2, (char *)(&time_val));
date = CT_LE_W(date);
2037b50: 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,
2037b54: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
2, (char *)(&time_val));
date = CT_LE_W(date);
2037b58: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
2037b5c: 85 30 60 18 srl %g1, 0x18, %g2 <== NOT EXECUTED
2037b60: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED
2037b64: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
ret2 = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_WDATE_OFFSET,
2037b68: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2037b6c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2037b70: 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);
2037b74: c2 37 bf fc sth %g1, [ %fp + -4 ] <== NOT EXECUTED
ret2 = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_WDATE_OFFSET,
2037b78: 96 10 20 02 mov 2, %o3 <== NOT EXECUTED
2037b7c: 7f ff b8 86 call 2025d94 <_fat_block_write> <== NOT EXECUTED
2037b80: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
2, (char *)(&date));
if ( (ret1 < 0) || (ret2 < 0) )
2037b84: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2037b88: 06 80 00 04 bl 2037b98 <msdos_set_dir_wrt_time_and_date+0xe8><== NOT EXECUTED
2037b8c: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
2037b90: 16 80 00 03 bge 2037b9c <msdos_set_dir_wrt_time_and_date+0xec><== NOT EXECUTED
2037b94: b0 10 20 00 clr %i0 <== NOT EXECUTED
2037b98: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return -1;
return RC_OK;
}
2037b9c: 81 c7 e0 08 ret <== NOT EXECUTED
2037ba0: 81 e8 00 00 restore <== NOT EXECUTED
020377c0 <msdos_set_file_size>:
int
msdos_set_file_size(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
20377c0: 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);
20377c4: 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
)
{
20377c8: 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)) )
20377cc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20377d0: 12 80 00 08 bne 20377f0 <msdos_set_file_size+0x30> <== NOT EXECUTED
20377d4: c4 06 20 34 ld [ %i0 + 0x34 ], %g2 <== NOT EXECUTED
20377d8: c6 08 a0 0a ldub [ %g2 + 0xa ], %g3 <== NOT EXECUTED
20377dc: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED
20377e0: 22 80 00 05 be,a 20377f4 <msdos_set_file_size+0x34> <== NOT EXECUTED
20377e4: c6 08 a0 05 ldub [ %g2 + 5 ], %g3 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
20377e8: 10 80 00 07 b 2037804 <msdos_set_file_size+0x44> <== NOT EXECUTED
20377ec: c6 00 a0 1c ld [ %g2 + 0x1c ], %g3 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
20377f0: c6 08 a0 05 ldub [ %g2 + 5 ], %g3 <== NOT EXECUTED
20377f4: c8 00 a0 30 ld [ %g2 + 0x30 ], %g4 <== NOT EXECUTED
20377f8: 82 00 7f fe add %g1, -2, %g1 <== NOT EXECUTED
20377fc: 87 28 40 03 sll %g1, %g3, %g3 <== NOT EXECUTED
2037800: 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));
2037804: 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);
2037808: c8 06 60 24 ld [ %i1 + 0x24 ], %g4 <== NOT EXECUTED
byte = (fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
203780c: 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);
2037810: c4 08 a0 02 ldub [ %g2 + 2 ], %g2 <== NOT EXECUTED
byte = (fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
2037814: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED
2037818: 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);
203781c: 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,
2037820: 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));
2037824: 87 30 60 18 srl %g1, 0x18, %g3 <== NOT EXECUTED
2037828: 85 30 60 10 srl %g1, 0x10, %g2 <== NOT EXECUTED
203782c: 89 28 60 18 sll %g1, 0x18, %g4 <== NOT EXECUTED
2037830: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
2037834: 88 11 00 03 or %g4, %g3, %g4 <== NOT EXECUTED
2037838: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203783c: 87 30 60 08 srl %g1, 8, %g3 <== NOT EXECUTED
2037840: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED
2037844: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
2037848: 82 11 00 03 or %g4, %g3, %g1 <== NOT EXECUTED
203784c: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
ret = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_SIZE_OFFSET, 4,
2037850: 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));
2037854: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
ret = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_SIZE_OFFSET, 4,
2037858: 96 10 20 04 mov 4, %o3 <== NOT EXECUTED
203785c: 7f ff b9 4e call 2025d94 <_fat_block_write> <== NOT EXECUTED
2037860: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
(char *)(&le_new_length));
if ( ret < 0 )
return -1;
return RC_OK;
}
2037864: b1 3a 20 1f sra %o0, 0x1f, %i0 <== NOT EXECUTED
2037868: 81 c7 e0 08 ret <== NOT EXECUTED
203786c: 81 e8 00 00 restore <== NOT EXECUTED
02037954 <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
)
{
2037954: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
ssize_t ret;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
2037958: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
uint32_t dir_block_size;
fat_pos_t start = dir_pos->lname;
203795c: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
2037960: 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
)
{
2037964: 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;
2037968: c4 27 bf f8 st %g2, [ %fp + -8 ] <== NOT EXECUTED
203796c: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
fat_pos_t end = dir_pos->sname;
2037970: e4 06 40 00 ld [ %i1 ], %l2 <== NOT EXECUTED
if ((end.cln == fs_info->fat.vol.rdir_cl) &&
2037974: 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
)
{
2037978: 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) &&
203797c: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED
2037980: 12 80 00 08 bne 20379a0 <msdos_set_first_char4file_name+0x4c><== NOT EXECUTED
2037984: ec 06 60 04 ld [ %i1 + 4 ], %l6 <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
2037988: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED
203798c: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
2037990: 22 80 00 05 be,a 20379a4 <msdos_set_first_char4file_name+0x50><== NOT EXECUTED
2037994: 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) &&
2037998: 10 80 00 03 b 20379a4 <msdos_set_first_char4file_name+0x50><== NOT EXECUTED
203799c: 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;
20379a0: e6 14 20 06 lduh [ %l0 + 6 ], %l3 <== NOT EXECUTED
if (dir_pos->lname.cln == FAT_FILE_SHORT_NAME)
20379a4: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
20379a8: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED
20379ac: 12 80 00 06 bne 20379c4 <msdos_set_first_char4file_name+0x70><== NOT EXECUTED
20379b0: aa 07 a0 4c add %fp, 0x4c, %l5 <== NOT EXECUTED
start = dir_pos->sname;
20379b4: c4 06 60 04 ld [ %i1 + 4 ], %g2 <== NOT EXECUTED
20379b8: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
20379bc: c4 27 bf fc st %g2, [ %fp + -4 ] <== NOT EXECUTED
20379c0: 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);
20379c4: 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) +
20379c8: 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)) )
20379cc: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
20379d0: 12 80 00 08 bne 20379f0 <msdos_set_first_char4file_name+0x9c><== NOT EXECUTED
20379d4: c2 04 60 34 ld [ %l1 + 0x34 ], %g1 <== NOT EXECUTED
20379d8: c4 08 60 0a ldub [ %g1 + 0xa ], %g2 <== NOT EXECUTED
20379dc: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED
20379e0: 22 80 00 05 be,a 20379f4 <msdos_set_first_char4file_name+0xa0><== NOT EXECUTED
20379e4: c8 00 60 30 ld [ %g1 + 0x30 ], %g4 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
20379e8: 10 80 00 07 b 2037a04 <msdos_set_first_char4file_name+0xb0><== NOT EXECUTED
20379ec: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
20379f0: c8 00 60 30 ld [ %g1 + 0x30 ], %g4 <== NOT EXECUTED
20379f4: c2 08 60 05 ldub [ %g1 + 5 ], %g1 <== NOT EXECUTED
20379f8: 84 00 ff fe add %g3, -2, %g2 <== NOT EXECUTED
20379fc: 85 28 80 01 sll %g2, %g1, %g2 <== NOT EXECUTED
2037a00: 84 00 80 04 add %g2, %g4, %g2 <== NOT EXECUTED
(start.ofs >> fs_info->fat.vol.sec_log2));
2037a04: 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,
2037a08: d2 0c 20 02 ldub [ %l0 + 2 ], %o1 <== NOT EXECUTED
2037a0c: d4 14 00 00 lduh [ %l0 ], %o2 <== NOT EXECUTED
2037a10: 93 30 40 09 srl %g1, %o1, %o1 <== NOT EXECUTED
2037a14: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED
2037a18: 92 00 80 09 add %g2, %o1, %o1 <== NOT EXECUTED
2037a1c: 94 0a 80 01 and %o2, %g1, %o2 <== NOT EXECUTED
2037a20: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2037a24: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
2037a28: 7f ff b8 db call 2025d94 <_fat_block_write> <== NOT EXECUTED
2037a2c: 98 10 00 15 mov %l5, %o4 <== NOT EXECUTED
&fchar);
if (ret < 0)
2037a30: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2037a34: 06 80 00 1c bl 2037aa4 <msdos_set_first_char4file_name+0x150><== NOT EXECUTED
2037a38: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
return -1;
if ((start.cln == end.cln) && (start.ofs == end.ofs))
2037a3c: 80 a0 40 12 cmp %g1, %l2 <== NOT EXECUTED
2037a40: 12 80 00 05 bne 2037a54 <msdos_set_first_char4file_name+0x100><== NOT EXECUTED
2037a44: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2037a48: 80 a0 40 16 cmp %g1, %l6 <== NOT EXECUTED
2037a4c: 02 80 00 17 be 2037aa8 <msdos_set_first_char4file_name+0x154><== NOT EXECUTED
2037a50: 90 10 20 00 clr %o0 <== NOT EXECUTED
break;
start.ofs += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;
2037a54: 82 00 60 20 add %g1, 0x20, %g1 <== NOT EXECUTED
if (start.ofs >= dir_block_size)
2037a58: 80 a0 40 13 cmp %g1, %l3 <== NOT EXECUTED
2037a5c: 0a bf ff db bcs 20379c8 <msdos_set_first_char4file_name+0x74><== NOT EXECUTED
2037a60: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
{
int rc;
if ((end.cln == fs_info->fat.vol.rdir_cl) &&
2037a64: c2 04 20 38 ld [ %l0 + 0x38 ], %g1 <== NOT EXECUTED
2037a68: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED
2037a6c: 12 80 00 06 bne 2037a84 <msdos_set_first_char4file_name+0x130><== NOT EXECUTED
2037a70: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
2037a74: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED
2037a78: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
2037a7c: 12 80 00 0b bne 2037aa8 <msdos_set_first_char4file_name+0x154><== NOT EXECUTED
2037a80: 90 10 20 00 clr %o0 <== NOT EXECUTED
break;
rc = fat_get_fat_cluster(mt_entry, start.cln, &start.cln);
2037a84: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2037a88: 40 00 1c 35 call 203eb5c <fat_get_fat_cluster> <== NOT EXECUTED
2037a8c: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
2037a90: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2037a94: 12 80 00 05 bne 2037aa8 <msdos_set_first_char4file_name+0x154><== NOT EXECUTED
2037a98: 01 00 00 00 nop <== NOT EXECUTED
return rc;
start.ofs = 0;
2037a9c: 10 bf ff cb b 20379c8 <msdos_set_first_char4file_name+0x74><== NOT EXECUTED
2037aa0: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
2037aa4: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
}
}
return RC_OK;
}
2037aa8: 81 c7 e0 08 ret <== NOT EXECUTED
2037aac: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02037870 <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
)
{
2037870: 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);
2037874: 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;
2037878: 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)) )
203787c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2037880: 12 80 00 08 bne 20378a0 <msdos_set_first_cluster_num+0x30><== NOT EXECUTED
2037884: e4 06 60 1c ld [ %i1 + 0x1c ], %l2 <== NOT EXECUTED
2037888: c6 08 a0 0a ldub [ %g2 + 0xa ], %g3 <== NOT EXECUTED
203788c: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED
2037890: 22 80 00 05 be,a 20378a4 <msdos_set_first_cluster_num+0x34><== NOT EXECUTED
2037894: c8 08 a0 05 ldub [ %g2 + 5 ], %g4 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
2037898: 10 80 00 07 b 20378b4 <msdos_set_first_cluster_num+0x44> <== NOT EXECUTED
203789c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
20378a0: c8 08 a0 05 ldub [ %g2 + 5 ], %g4 <== NOT EXECUTED
20378a4: c6 00 a0 30 ld [ %g2 + 0x30 ], %g3 <== NOT EXECUTED
20378a8: 82 00 7f fe add %g1, -2, %g1 <== NOT EXECUTED
20378ac: 83 28 40 04 sll %g1, %g4, %g1 <== NOT EXECUTED
20378b0: 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);
20378b4: e2 08 a0 02 ldub [ %g2 + 2 ], %l1 <== NOT EXECUTED
20378b8: 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);
20378bc: 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);
20378c0: a3 30 c0 11 srl %g3, %l1, %l1 <== NOT EXECUTED
20378c4: 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));
20378c8: 83 2c a0 10 sll %l2, 0x10, %g1 <== NOT EXECUTED
20378cc: 85 30 60 18 srl %g1, 0x18, %g2 <== NOT EXECUTED
20378d0: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED
20378d4: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
ret1 = _fat_block_write(mt_entry, sec,
20378d8: 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));
20378dc: c2 37 bf fe sth %g1, [ %fp + -2 ] <== NOT EXECUTED
ret1 = _fat_block_write(mt_entry, sec,
20378e0: 96 10 20 02 mov 2, %o3 <== NOT EXECUTED
20378e4: 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);
20378e8: 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;
20378ec: 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);
20378f0: 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,
20378f4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20378f8: 7f ff b9 27 call 2025d94 <_fat_block_write> <== NOT EXECUTED
20378fc: 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));
2037900: a5 34 a0 10 srl %l2, 0x10, %l2 <== NOT EXECUTED
2037904: a5 2c a0 10 sll %l2, 0x10, %l2 <== NOT EXECUTED
2037908: 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,
203790c: 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,
2037910: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2037914: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2037918: 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));
203791c: a5 34 a0 08 srl %l2, 8, %l2 <== NOT EXECUTED
ret2 = _fat_block_write(mt_entry, sec,
2037920: 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));
2037924: a4 14 80 01 or %l2, %g1, %l2 <== NOT EXECUTED
ret2 = _fat_block_write(mt_entry, sec,
2037928: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
203792c: 7f ff b9 1a call 2025d94 <_fat_block_write> <== NOT EXECUTED
2037930: 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) )
2037934: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2037938: 06 80 00 04 bl 2037948 <msdos_set_first_cluster_num+0xd8> <== NOT EXECUTED
203793c: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
2037940: 16 80 00 03 bge 203794c <msdos_set_first_cluster_num+0xdc><== NOT EXECUTED
2037944: b0 10 20 00 clr %i0 <== NOT EXECUTED
2037948: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return -1;
return RC_OK;
}
203794c: 81 c7 e0 08 ret <== NOT EXECUTED
2037950: 81 e8 00 00 restore <== NOT EXECUTED
02036ba8 <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)
{
2036ba8: 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)
2036bac: 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;
2036bb0: 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)
2036bb4: 7f ff ba 79 call 2025598 <fat_file_close> <== NOT EXECUTED
2036bb8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2036bbc: 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)
{
2036bc0: 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)
2036bc4: 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)
2036bc8: 7f ff bc ce call 2025f00 <fat_shutdown_drive> <== NOT EXECUTED
2036bcc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2036bd0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2036bd4: 32 80 00 02 bne,a 2036bdc <msdos_shut_down+0x34> <== NOT EXECUTED
2036bd8: 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);
2036bdc: 7f ff 57 7e call 200c9d4 <rtems_semaphore_delete> <== NOT EXECUTED
2036be0: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
free(fs_info->cl_buf);
2036be4: 7f ff 45 9f call 2008260 <free> <== NOT EXECUTED
2036be8: d0 04 60 9c ld [ %l1 + 0x9c ], %o0 <== NOT EXECUTED
free(temp_mt_entry->fs_info);
2036bec: 7f ff 45 9d call 2008260 <free> <== NOT EXECUTED
2036bf0: d0 04 20 34 ld [ %l0 + 0x34 ], %o0 <== NOT EXECUTED
return rc;
}
2036bf4: 81 c7 e0 08 ret <== NOT EXECUTED
2036bf8: 81 e8 00 00 restore <== NOT EXECUTED
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 5c ld [ %i1 + 0x15c ], %l0
ptr = _REENT;
2003460: 03 00 80 70 sethi %hi(0x201c000), %g1
2003464: e0 00 62 f0 ld [ %g1 + 0x2f0 ], %l0 ! 201c2f0 <_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 6e sethi %hi(0x201b800), %g1
2003474: c2 00 63 d0 ld [ %g1 + 0x3d0 ], %g1 ! 201bbd0 <_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 32 3f call 200fd84 <_fwalk>
200348c: 92 12 60 b4 or %o1, 0xb4, %o1
#if REENT_MALLOCED
free(ptr);
#else
_Workspace_Free(ptr);
2003490: 40 00 19 4f call 20099cc <_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 5c clr [ %i1 + 0x15c ]
_REENT = 0;
20034a4: 03 00 80 70 sethi %hi(0x201c000), %g1
20034a8: c0 20 62 f0 clr [ %g1 + 0x2f0 ] ! 201c2f0 <_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 31 33 call 200f984 <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 30 60 call 200f67c <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 85 sethi %hi(0x2021400), %g1
2002d24: c4 48 63 84 ldsb [ %g1 + 0x384 ], %g2 ! 2021784 <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 7c sethi %hi(0x201f000), %o0
)
{
rtems_device_driver status;
if ( !initialized ) {
initialized = 1;
2002d38: c4 28 63 84 stb %g2, [ %g1 + 0x384 ]
status = rtems_io_register_name(
2002d3c: 90 12 22 30 or %o0, 0x230, %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 86 sethi %hi(0x2021800), %g1
rtems_fatal_error_occurred(status);
2002d58: 40 00 12 d1 call 200789c <rtems_fatal_error_occurred> <== NOT EXECUTED
2002d5c: 01 00 00 00 nop <== NOT EXECUTED
NULL_major = major;
2002d60: f0 20 62 34 st %i0, [ %g1 + 0x234 ]
}
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 21 e5 call 200bef8 <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 33 36 call 2010450 <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 2f 5d call 200f51c <__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 33 18 call 2010450 <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 21 df call 200bfc8 <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 31 69 call 200fe0c <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 2f 1b call 200f51c <__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 72 sethi %hi(0x201c800), %g1
rc = ftruncate( iop - rtems_libio_iops, 0 );
20038c8: c2 00 62 48 ld [ %g1 + 0x248 ], %g1 ! 201ca48 <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 20 d6 call 200bc58 <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 72 sethi %hi(0x201c800), %g1
if(errno) rc = errno;
2003914: 40 00 2f 02 call 200f51c <__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 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED
200392c: 40 00 2e fc call 200f51c <__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 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED
200393c: c2 00 62 48 ld [ %g1 + 0x248 ], %g1 ! 201ca48 <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 20 8a call 200bb9c <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 72 sethi %hi(0x201c800), %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 41 call 200be98 <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 2e d3 call 200f51c <__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 62 48 ld [ %g1 + 0x248 ], %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 6c sethi %hi(0x201b000), %l0
20036c0: 92 10 20 00 clr %o1
20036c4: 90 14 20 20 or %l0, 0x20, %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 20 or %l0, 0x20, %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 20 or %l0, 0x20, %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 a3 call 20069a8 <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 6c sethi %hi(0x201b000), %o0
200429c: 92 10 20 01 mov 1, %o1
20042a0: 90 12 20 30 or %o0, 0x30, %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 6c sethi %hi(0x201b000), %o0
2004318: 7f ff ff 79 call 20040fc <rtems_termios_puts>
200431c: 90 12 20 38 or %o0, 0x38, %o0 ! 201b038 <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 70 sethi %hi(0x201c000), %g1 <== NOT EXECUTED
2004348: c2 00 62 e8 ld [ %g1 + 0x2e8 ], %g1 ! 201c2e8 <__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 70 sethi %hi(0x201c000), %g2
2004374: c4 00 a2 e8 ld [ %g2 + 0x2e8 ], %g2 ! 201c2e8 <__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
0200e544 <pipe_create>:
* Called by pipe() to create an anonymous pipe.
*/
int pipe_create(
int filsdes[2]
)
{
200e544: 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)
200e548: 23 00 80 6e sethi %hi(0x201b800), %l1
200e54c: a0 07 bf dc add %fp, -36, %l0
200e550: 92 10 20 03 mov 3, %o1
200e554: 90 14 60 00 mov %l1, %o0
200e558: 94 10 20 07 mov 7, %o2
200e55c: 96 10 00 10 mov %l0, %o3
200e560: 7f ff d1 4a call 2002a88 <rtems_filesystem_evaluate_path>
200e564: 98 10 20 01 mov 1, %o4
200e568: 80 a2 20 00 cmp %o0, 0
200e56c: 02 80 00 10 be 200e5ac <pipe_create+0x68> <== NEVER TAKEN
200e570: c2 07 bf e8 ld [ %fp + -24 ], %g1
!= 0) {
if (errno != ENOENT)
200e574: 40 00 03 ea call 200f51c <__errno>
200e578: 01 00 00 00 nop
200e57c: c2 02 00 00 ld [ %o0 ], %g1
200e580: 80 a0 60 02 cmp %g1, 2
200e584: 32 80 00 59 bne,a 200e6e8 <pipe_create+0x1a4> <== NEVER TAKEN
200e588: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return -1;
if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0)
200e58c: 90 14 60 00 mov %l1, %o0
200e590: 7f ff d2 7b call 2002f7c <mkdir>
200e594: 92 10 23 ff mov 0x3ff, %o1
200e598: 80 a2 20 00 cmp %o0, 0
200e59c: 02 80 00 0e be 200e5d4 <pipe_create+0x90> <== ALWAYS TAKEN
200e5a0: 03 00 80 72 sethi %hi(0x201c800), %g1
}
unlink(fifopath);
}
rtems_set_errno_and_return_minus_one(err);
}
200e5a4: 81 c7 e0 08 ret <== NOT EXECUTED
200e5a8: 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);
200e5ac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200e5b0: 22 80 00 09 be,a 200e5d4 <pipe_create+0x90> <== NOT EXECUTED
200e5b4: 03 00 80 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED
200e5b8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 201c81c <rtems_termios_linesw+0x58><== NOT EXECUTED
200e5bc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200e5c0: 22 80 00 05 be,a 200e5d4 <pipe_create+0x90> <== NOT EXECUTED
200e5c4: 03 00 80 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED
200e5c8: 9f c0 40 00 call %g1 <== NOT EXECUTED
200e5cc: 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 ++);
200e5d0: 03 00 80 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED
200e5d4: c4 10 60 d4 lduh [ %g1 + 0xd4 ], %g2 ! 201c8d4 <rtems_pipe_no>
else
rtems_filesystem_freenode(&loc);
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
200e5d8: 07 0b cb 99 sethi %hi(0x2f2e6400), %g3
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
200e5dc: 95 28 a0 10 sll %g2, 0x10, %o2
200e5e0: 84 00 a0 01 inc %g2
else
rtems_filesystem_freenode(&loc);
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
200e5e4: 86 10 e2 69 or %g3, 0x269, %g3
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
200e5e8: c4 30 60 d4 sth %g2, [ %g1 + 0xd4 ]
else
rtems_filesystem_freenode(&loc);
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
200e5ec: 05 0b dd 1b sethi %hi(0x2f746c00), %g2
200e5f0: 03 00 00 19 sethi %hi(0x6400), %g1
200e5f4: 84 10 a1 70 or %g2, 0x170, %g2
200e5f8: 82 10 62 6f or %g1, 0x26f, %g1
200e5fc: a0 07 bf f0 add %fp, -16, %l0
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
200e600: 95 32 a0 10 srl %o2, 0x10, %o2
else
rtems_filesystem_freenode(&loc);
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
200e604: c4 3f bf f0 std %g2, [ %fp + -16 ]
200e608: c2 34 20 08 sth %g1, [ %l0 + 8 ]
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
200e60c: 90 07 bf fa add %fp, -6, %o0
200e610: 13 00 80 6e sethi %hi(0x201b800), %o1
200e614: 40 00 06 ae call 20100cc <sprintf>
200e618: 92 12 60 08 or %o1, 8, %o1 ! 201b808 <__FUNCTION__.6077+0x20>
/* Try creating FIFO file until find an available file name */
while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {
200e61c: 90 10 00 10 mov %l0, %o0
200e620: 40 00 01 ae call 200ecd8 <mkfifo>
200e624: 92 10 21 80 mov 0x180, %o1
200e628: 80 a2 20 00 cmp %o0, 0
200e62c: 02 80 00 05 be 200e640 <pipe_create+0xfc> <== ALWAYS TAKEN
200e630: 90 10 00 10 mov %l0, %o0
if (errno != EEXIST){
200e634: 40 00 03 ba call 200f51c <__errno> <== NOT EXECUTED
200e638: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200e63c: 30 80 00 2b b,a 200e6e8 <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);
200e640: 7f ff d4 3b call 200372c <open>
200e644: 13 00 00 10 sethi %hi(0x4000), %o1
if (filsdes[0] < 0) {
200e648: 80 a2 20 00 cmp %o0, 0
200e64c: 16 80 00 07 bge 200e668 <pipe_create+0x124> <== NEVER TAKEN
200e650: d0 26 00 00 st %o0, [ %i0 ]
err = errno;
200e654: 40 00 03 b2 call 200f51c <__errno>
200e658: 01 00 00 00 nop
200e65c: 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);
200e660: 10 80 00 1d b 200e6d4 <pipe_create+0x190>
200e664: 90 10 00 10 mov %l0, %o0
}
else {
/* Reset open file to blocking mode */
iop = rtems_libio_iop(filsdes[0]);
200e668: 03 00 80 70 sethi %hi(0x201c000), %g1 <== NOT EXECUTED
200e66c: c4 00 60 b4 ld [ %g1 + 0xb4 ], %g2 ! 201c0b4 <rtems_libio_number_iops><== NOT EXECUTED
200e670: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED
200e674: 1a 80 00 08 bcc 200e694 <pipe_create+0x150> <== NOT EXECUTED
200e678: 82 10 20 00 clr %g1 <== NOT EXECUTED
200e67c: 03 00 80 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED
200e680: c2 00 62 48 ld [ %g1 + 0x248 ], %g1 ! 201ca48 <rtems_libio_iops><== NOT EXECUTED
200e684: 85 2a 20 06 sll %o0, 6, %g2 <== NOT EXECUTED
200e688: 91 2a 20 03 sll %o0, 3, %o0 <== NOT EXECUTED
200e68c: 90 02 00 02 add %o0, %g2, %o0 <== NOT EXECUTED
200e690: 82 00 40 08 add %g1, %o0, %g1 <== NOT EXECUTED
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
200e694: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 <== NOT EXECUTED
filsdes[1] = open(fifopath, O_WRONLY);
200e698: 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;
200e69c: 84 08 bf fe and %g2, -2, %g2 <== NOT EXECUTED
filsdes[1] = open(fifopath, O_WRONLY);
200e6a0: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
200e6a4: 7f ff d4 22 call 200372c <open> <== NOT EXECUTED
200e6a8: c4 20 60 18 st %g2, [ %g1 + 0x18 ] <== NOT EXECUTED
200e6ac: d0 26 20 04 st %o0, [ %i0 + 4 ] <== NOT EXECUTED
if (filsdes[1] < 0) {
200e6b0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200e6b4: 16 80 00 07 bge 200e6d0 <pipe_create+0x18c> <== NOT EXECUTED
200e6b8: a2 10 20 00 clr %l1 <== NOT EXECUTED
err = errno;
200e6bc: 40 00 03 98 call 200f51c <__errno> <== NOT EXECUTED
200e6c0: 01 00 00 00 nop <== NOT EXECUTED
200e6c4: e2 02 00 00 ld [ %o0 ], %l1 <== NOT EXECUTED
close(filsdes[0]);
200e6c8: 7f ff f5 35 call 200bb9c <close> <== NOT EXECUTED
200e6cc: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED
}
unlink(fifopath);
200e6d0: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED
200e6d4: 40 00 01 89 call 200ecf8 <unlink>
200e6d8: b0 10 3f ff mov -1, %i0
}
rtems_set_errno_and_return_minus_one(err);
200e6dc: 40 00 03 90 call 200f51c <__errno>
200e6e0: 01 00 00 00 nop
200e6e4: e2 22 00 00 st %l1, [ %o0 ]
}
200e6e8: 81 c7 e0 08 ret
200e6ec: 81 e8 00 00 restore
0200a4e8 <pipe_free>:
/* Called with rtems_pipe_semaphore held. */
static inline void pipe_free(
pipe_control_t *pipe
)
{
200a4e8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_barrier_delete(pipe->readBarrier);
200a4ec: 40 00 08 16 call 200c544 <rtems_barrier_delete> <== NOT EXECUTED
200a4f0: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
rtems_barrier_delete(pipe->writeBarrier);
200a4f4: 40 00 08 14 call 200c544 <rtems_barrier_delete> <== NOT EXECUTED
200a4f8: d0 06 20 30 ld [ %i0 + 0x30 ], %o0 <== NOT EXECUTED
rtems_semaphore_delete(pipe->Semaphore);
200a4fc: 7f ff ef 64 call 200628c <rtems_semaphore_delete> <== NOT EXECUTED
200a500: d0 06 20 28 ld [ %i0 + 0x28 ], %o0 <== NOT EXECUTED
free(pipe->Buffer);
200a504: 7f ff e1 7e call 2002afc <free> <== NOT EXECUTED
200a508: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED
free(pipe);
200a50c: 7f ff e1 7c call 2002afc <free> <== NOT EXECUTED
200a510: 81 e8 00 00 restore <== NOT EXECUTED
0200a128 <pipe_ioctl>:
pipe_control_t *pipe,
uint32_t cmd,
void *buffer,
rtems_libio_t *iop
)
{
200a128: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (cmd == FIONREAD) {
200a12c: 03 10 01 19 sethi %hi(0x40046400), %g1 <== NOT EXECUTED
pipe_control_t *pipe,
uint32_t cmd,
void *buffer,
rtems_libio_t *iop
)
{
200a130: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
if (cmd == FIONREAD) {
200a134: 82 10 62 7f or %g1, 0x27f, %g1 <== NOT EXECUTED
200a138: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
200a13c: 12 80 00 12 bne 200a184 <pipe_ioctl+0x5c> <== NOT EXECUTED
200a140: b0 10 3f ea mov -22, %i0 <== NOT EXECUTED
if (buffer == NULL)
200a144: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
200a148: 02 80 00 0f be 200a184 <pipe_ioctl+0x5c> <== NOT EXECUTED
200a14c: b0 10 3f f2 mov -14, %i0 <== NOT EXECUTED
return -EFAULT;
if (! PIPE_LOCK(pipe))
200a150: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
200a154: 92 10 20 00 clr %o1 <== NOT EXECUTED
200a158: 94 10 20 00 clr %o2 <== NOT EXECUTED
200a15c: 7f ff f0 7a call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
200a160: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED
200a164: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a168: 12 80 00 07 bne 200a184 <pipe_ioctl+0x5c> <== NOT EXECUTED
200a16c: 01 00 00 00 nop <== NOT EXECUTED
return -EINTR;
/* Return length of pipe */
*(unsigned int *)buffer = pipe->Length;
200a170: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
PIPE_UNLOCK(pipe);
200a174: 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;
200a178: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
PIPE_UNLOCK(pipe);
200a17c: 7f ff f0 b9 call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200a180: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
return -EINVAL;
}
200a184: 81 c7 e0 08 ret <== NOT EXECUTED
200a188: 81 e8 00 00 restore <== NOT EXECUTED
0200a0b4 <pipe_lseek>:
rtems_libio_t *iop
)
{
/* Seek on pipe is not supported */
return -ESPIPE;
}
200a0b4: 81 c3 e0 08 retl <== NOT EXECUTED
200a0b8: 90 10 3f e3 mov -29, %o0 <== NOT EXECUTED
0200a34c <pipe_read>:
pipe_control_t *pipe,
void *buffer,
size_t count,
rtems_libio_t *iop
)
{
200a34c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
200a350: d0 06 20 28 ld [ %i0 + 0x28 ], %o0 <== NOT EXECUTED
pipe_control_t *pipe,
void *buffer,
size_t count,
rtems_libio_t *iop
)
{
200a354: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
200a358: 92 10 20 00 clr %o1 <== NOT EXECUTED
200a35c: 94 10 20 00 clr %o2 <== NOT EXECUTED
200a360: 7f ff ef f9 call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
200a364: b0 10 20 00 clr %i0 <== NOT EXECUTED
200a368: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a36c: 02 80 00 54 be 200a4bc <pipe_read+0x170> <== NOT EXECUTED
200a370: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED
200a374: 81 c7 e0 08 ret <== NOT EXECUTED
200a378: 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)
200a37c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a380: 02 80 00 53 be 200a4cc <pipe_read+0x180> <== NOT EXECUTED
200a384: a2 10 20 00 clr %l1 <== NOT EXECUTED
goto out_locked;
if (LIBIO_NODELAY(iop)) {
200a388: c2 06 e0 18 ld [ %i3 + 0x18 ], %g1 <== NOT EXECUTED
200a38c: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
200a390: 22 80 00 04 be,a 200a3a0 <pipe_read+0x54> <== NOT EXECUTED
200a394: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED
200a398: 10 80 00 4d b 200a4cc <pipe_read+0x180> <== NOT EXECUTED
200a39c: 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);
200a3a0: 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 ++;
200a3a4: 82 00 60 01 inc %g1 <== NOT EXECUTED
PIPE_UNLOCK(pipe);
200a3a8: 7f ff f0 2e call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200a3ac: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED
if (! PIPE_READWAIT(pipe))
200a3b0: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
200a3b4: 40 00 08 95 call 200c608 <rtems_barrier_wait> <== NOT EXECUTED
200a3b8: 92 10 20 00 clr %o1 <== NOT EXECUTED
200a3bc: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
200a3c0: 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))
200a3c4: a2 40 3f ff addx %g0, -1, %l1 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
200a3c8: 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))
200a3cc: a2 0c 60 04 and %l1, 4, %l1 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
200a3d0: 94 10 20 00 clr %o2 <== NOT EXECUTED
200a3d4: 7f ff ef dc call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
200a3d8: a2 04 7f fc add %l1, -4, %l1 <== NOT EXECUTED
200a3dc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a3e0: 22 80 00 04 be,a 200a3f0 <pipe_read+0xa4> <== NOT EXECUTED
200a3e4: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED
200a3e8: 10 80 00 3b b 200a4d4 <pipe_read+0x188> <== NOT EXECUTED
200a3ec: a2 10 3f fc mov -4, %l1 <== NOT EXECUTED
/* WARN waitingReaders not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingReaders --;
if (ret != 0)
200a3f0: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
if (! PIPE_LOCK(pipe)) {
/* WARN waitingReaders not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingReaders --;
200a3f4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
if (ret != 0)
200a3f8: 12 80 00 35 bne 200a4cc <pipe_read+0x180> <== NOT EXECUTED
200a3fc: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED
if (! PIPE_LOCK(pipe))
return -EINTR;
while (read < count) {
while (PIPE_EMPTY(pipe)) {
200a400: e2 04 20 0c ld [ %l0 + 0xc ], %l1 <== NOT EXECUTED
200a404: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
200a408: 22 bf ff dd be,a 200a37c <pipe_read+0x30> <== NOT EXECUTED
200a40c: 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);
200a410: 82 26 80 18 sub %i2, %i0, %g1 <== NOT EXECUTED
200a414: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
200a418: 38 80 00 02 bgu,a 200a420 <pipe_read+0xd4> <== NOT EXECUTED
200a41c: a2 10 00 01 mov %g1, %l1 <== NOT EXECUTED
chunk1 = pipe->Size - pipe->Start;
200a420: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED
200a424: e4 04 20 04 ld [ %l0 + 4 ], %l2 <== NOT EXECUTED
200a428: 90 06 40 18 add %i1, %i0, %o0 <== NOT EXECUTED
200a42c: a4 24 80 01 sub %l2, %g1, %l2 <== NOT EXECUTED
if (chunk > chunk1) {
200a430: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED
200a434: 04 80 00 0a ble 200a45c <pipe_read+0x110> <== NOT EXECUTED
200a438: d2 04 00 00 ld [ %l0 ], %o1 <== NOT EXECUTED
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);
200a43c: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED
200a440: 40 00 16 73 call 200fe0c <memcpy> <== NOT EXECUTED
200a444: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);
200a448: 90 06 00 12 add %i0, %l2, %o0 <== NOT EXECUTED
200a44c: d2 04 00 00 ld [ %l0 ], %o1 <== NOT EXECUTED
200a450: 94 24 40 12 sub %l1, %l2, %o2 <== NOT EXECUTED
200a454: 10 80 00 04 b 200a464 <pipe_read+0x118> <== NOT EXECUTED
200a458: 90 06 40 08 add %i1, %o0, %o0 <== NOT EXECUTED
}
else
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);
200a45c: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED
200a460: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
200a464: 40 00 16 6a call 200fe0c <memcpy> <== NOT EXECUTED
200a468: 01 00 00 00 nop <== NOT EXECUTED
pipe->Start += chunk;
200a46c: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED
pipe->Start %= pipe->Size;
200a470: 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;
200a474: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED
pipe->Start %= pipe->Size;
200a478: 40 00 3a 28 call 2018d18 <.urem> <== NOT EXECUTED
200a47c: d0 24 20 08 st %o0, [ %l0 + 8 ] <== NOT EXECUTED
pipe->Length -= chunk;
200a480: 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;
200a484: d0 24 20 08 st %o0, [ %l0 + 8 ] <== NOT EXECUTED
pipe->Length -= chunk;
200a488: 82 20 40 11 sub %g1, %l1, %g1 <== NOT EXECUTED
/* For buffering optimization */
if (PIPE_EMPTY(pipe))
200a48c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a490: 12 80 00 03 bne 200a49c <pipe_read+0x150> <== NOT EXECUTED
200a494: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED
pipe->Start = 0;
200a498: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED
if (pipe->waitingWriters > 0)
200a49c: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
200a4a0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a4a4: 22 80 00 06 be,a 200a4bc <pipe_read+0x170> <== NOT EXECUTED
200a4a8: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
200a4ac: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED
200a4b0: 40 00 08 3f call 200c5ac <rtems_barrier_release> <== NOT EXECUTED
200a4b4: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
read += chunk;
200a4b8: 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) {
200a4bc: 80 a6 00 1a cmp %i0, %i2 <== NOT EXECUTED
200a4c0: 2a bf ff d1 bcs,a 200a404 <pipe_read+0xb8> <== NOT EXECUTED
200a4c4: e2 04 20 0c ld [ %l0 + 0xc ], %l1 <== NOT EXECUTED
200a4c8: a2 10 20 00 clr %l1 <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
read += chunk;
}
out_locked:
PIPE_UNLOCK(pipe);
200a4cc: 7f ff ef e5 call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200a4d0: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
out_nolock:
if (read > 0)
200a4d4: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
200a4d8: 24 80 00 02 ble,a 200a4e0 <pipe_read+0x194> <== NOT EXECUTED
200a4dc: b0 10 00 11 mov %l1, %i0 <== NOT EXECUTED
return read;
return ret;
}
200a4e0: 81 c7 e0 08 ret <== NOT EXECUTED
200a4e4: 81 e8 00 00 restore <== NOT EXECUTED
0200a518 <pipe_release>:
*/
int pipe_release(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
200a518: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
pipe_control_t *pipe = *pipep;
200a51c: e0 06 00 00 ld [ %i0 ], %l0 <== NOT EXECUTED
uint32_t mode;
rtems_status_code sc;
sc = rtems_semaphore_obtain(pipe->Semaphore,
200a520: 92 10 20 00 clr %o1 <== NOT EXECUTED
200a524: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
200a528: 7f ff ef 87 call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
200a52c: 94 10 20 00 clr %o2 <== NOT EXECUTED
RTEMS_WAIT, RTEMS_NO_TIMEOUT);
/* WARN pipe not released! */
if(sc != RTEMS_SUCCESSFUL)
200a530: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a534: 12 80 00 17 bne 200a590 <pipe_release+0x78> <== NOT EXECUTED
200a538: 01 00 00 00 nop <== NOT EXECUTED
rtems_fatal_error_occurred(sc);
mode = LIBIO_ACCMODE(iop);
200a53c: e2 06 60 18 ld [ %i1 + 0x18 ], %l1 <== NOT EXECUTED
if (mode & LIBIO_FLAGS_READ)
200a540: 80 8c 60 02 btst 2, %l1 <== NOT EXECUTED
200a544: 02 80 00 05 be 200a558 <pipe_release+0x40> <== NOT EXECUTED
200a548: a2 0c 60 06 and %l1, 6, %l1 <== NOT EXECUTED
pipe->Readers --;
200a54c: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
200a550: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
200a554: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED
if (mode & LIBIO_FLAGS_WRITE)
200a558: 80 8c 60 04 btst 4, %l1 <== NOT EXECUTED
200a55c: 02 80 00 06 be 200a574 <pipe_release+0x5c> <== NOT EXECUTED
200a560: 03 00 80 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED
pipe->Writers --;
200a564: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
200a568: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
200a56c: c2 24 20 14 st %g1, [ %l0 + 0x14 ] <== NOT EXECUTED
sc = rtems_semaphore_obtain(rtems_pipe_semaphore,
200a570: 03 00 80 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED
200a574: d0 00 60 cc ld [ %g1 + 0xcc ], %o0 ! 201c8cc <rtems_pipe_semaphore><== NOT EXECUTED
200a578: 92 10 20 00 clr %o1 <== NOT EXECUTED
200a57c: 7f ff ef 72 call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
200a580: 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)
200a584: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a588: 02 80 00 04 be 200a598 <pipe_release+0x80> <== NOT EXECUTED
200a58c: 01 00 00 00 nop <== NOT EXECUTED
rtems_fatal_error_occurred(sc);
200a590: 7f ff f1 06 call 20069a8 <rtems_fatal_error_occurred> <== NOT EXECUTED
200a594: 01 00 00 00 nop <== NOT EXECUTED
PIPE_UNLOCK(pipe);
200a598: 7f ff ef b2 call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200a59c: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
if (pipe->Readers == 0 && pipe->Writers == 0) {
200a5a0: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
200a5a4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a5a8: 12 80 00 0a bne 200a5d0 <pipe_release+0xb8> <== NOT EXECUTED
200a5ac: 80 a4 60 04 cmp %l1, 4 <== NOT EXECUTED
200a5b0: c4 04 20 14 ld [ %l0 + 0x14 ], %g2 <== NOT EXECUTED
200a5b4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
200a5b8: 12 80 00 06 bne 200a5d0 <pipe_release+0xb8> <== NOT EXECUTED
200a5bc: 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);
200a5c0: 7f ff ff ca call 200a4e8 <pipe_free> <== NOT EXECUTED
200a5c4: 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) {
200a5c8: 10 80 00 12 b 200a610 <pipe_release+0xf8> <== NOT EXECUTED
200a5cc: 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)
200a5d0: 02 80 00 07 be 200a5ec <pipe_release+0xd4> <== NOT EXECUTED
200a5d4: 80 a4 60 02 cmp %l1, 2 <== NOT EXECUTED
200a5d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a5dc: 12 80 00 04 bne 200a5ec <pipe_release+0xd4> <== NOT EXECUTED
200a5e0: 80 a4 60 02 cmp %l1, 2 <== NOT EXECUTED
/* Notify waiting Writers that all their partners left */
PIPE_WAKEUPWRITERS(pipe);
200a5e4: 10 80 00 09 b 200a608 <pipe_release+0xf0> <== NOT EXECUTED
200a5e8: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED
else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ)
200a5ec: 02 80 00 0a be 200a614 <pipe_release+0xfc> <== NOT EXECUTED
200a5f0: 03 00 80 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED
200a5f4: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
200a5f8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a5fc: 12 80 00 06 bne 200a614 <pipe_release+0xfc> <== NOT EXECUTED
200a600: 03 00 80 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
200a604: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
200a608: 40 00 07 e9 call 200c5ac <rtems_barrier_release> <== NOT EXECUTED
200a60c: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
rtems_semaphore_release(rtems_pipe_semaphore);
200a610: 03 00 80 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED
200a614: d0 00 60 cc ld [ %g1 + 0xcc ], %o0 ! 201c8cc <rtems_pipe_semaphore><== NOT EXECUTED
200a618: 7f ff ef 92 call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200a61c: b0 10 20 00 clr %i0 <== NOT EXECUTED
if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))
return -errno;
#endif
return 0;
}
200a620: 81 c7 e0 08 ret <== NOT EXECUTED
200a624: 81 e8 00 00 restore <== NOT EXECUTED
0200a18c <pipe_write>:
pipe_control_t *pipe,
const void *buffer,
size_t count,
rtems_libio_t *iop
)
{
200a18c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
200a190: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
int chunk, chunk1, written = 0, ret = 0;
/* Write nothing */
if (count == 0)
200a194: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
200a198: 02 80 00 6b be 200a344 <pipe_write+0x1b8> <== NOT EXECUTED
200a19c: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
if (! PIPE_LOCK(pipe))
200a1a0: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
200a1a4: 92 10 20 00 clr %o1 <== NOT EXECUTED
200a1a8: 94 10 20 00 clr %o2 <== NOT EXECUTED
200a1ac: 7f ff f0 66 call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
200a1b0: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED
200a1b4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a1b8: 12 80 00 63 bne 200a344 <pipe_write+0x1b8> <== NOT EXECUTED
200a1bc: a2 10 3f e0 mov -32, %l1 <== NOT EXECUTED
return -EINTR;
if (pipe->Readers == 0) {
200a1c0: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
200a1c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a1c8: 02 80 00 5a be 200a330 <pipe_write+0x1a4> <== NOT EXECUTED
200a1cc: 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;
200a1d0: c2 04 20 04 ld [ %l0 + 4 ], %g1 <== NOT EXECUTED
200a1d4: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED
200a1d8: 08 80 00 04 bleu 200a1e8 <pipe_write+0x5c> <== NOT EXECUTED
200a1dc: a6 10 00 1a mov %i2, %l3 <== NOT EXECUTED
200a1e0: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED
200a1e4: 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);
200a1e8: 10 80 00 4e b 200a320 <pipe_write+0x194> <== NOT EXECUTED
200a1ec: 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)) {
200a1f0: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
200a1f4: 22 80 00 04 be,a 200a204 <pipe_write+0x78> <== NOT EXECUTED
200a1f8: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
200a1fc: 10 80 00 4d b 200a330 <pipe_write+0x1a4> <== NOT EXECUTED
200a200: 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);
200a204: 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 ++;
200a208: 82 00 60 01 inc %g1 <== NOT EXECUTED
PIPE_UNLOCK(pipe);
200a20c: 7f ff f0 95 call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200a210: c2 24 20 1c st %g1, [ %l0 + 0x1c ] <== NOT EXECUTED
if (! PIPE_WRITEWAIT(pipe))
200a214: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED
200a218: 40 00 08 fc call 200c608 <rtems_barrier_wait> <== NOT EXECUTED
200a21c: 92 10 20 00 clr %o1 <== NOT EXECUTED
200a220: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
200a224: 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))
200a228: a2 40 3f ff addx %g0, -1, %l1 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
200a22c: 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))
200a230: a2 0c 60 04 and %l1, 4, %l1 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
200a234: 94 10 20 00 clr %o2 <== NOT EXECUTED
200a238: 7f ff f0 43 call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
200a23c: a2 04 7f fc add %l1, -4, %l1 <== NOT EXECUTED
200a240: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a244: 22 80 00 04 be,a 200a254 <pipe_write+0xc8> <== NOT EXECUTED
200a248: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
200a24c: 10 80 00 3b b 200a338 <pipe_write+0x1ac> <== NOT EXECUTED
200a250: a2 10 3f fc mov -4, %l1 <== NOT EXECUTED
/* WARN waitingWriters not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingWriters --;
if (ret != 0)
200a254: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
if (! PIPE_LOCK(pipe)) {
/* WARN waitingWriters not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingWriters --;
200a258: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
if (ret != 0)
200a25c: 12 80 00 35 bne 200a330 <pipe_write+0x1a4> <== NOT EXECUTED
200a260: c2 24 20 1c st %g1, [ %l0 + 0x1c ] <== NOT EXECUTED
goto out_locked;
if (pipe->Readers == 0) {
200a264: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
200a268: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a26c: 32 80 00 04 bne,a 200a27c <pipe_write+0xf0> <== NOT EXECUTED
200a270: e4 04 20 04 ld [ %l0 + 4 ], %l2 <== NOT EXECUTED
200a274: 10 80 00 2f b 200a330 <pipe_write+0x1a4> <== NOT EXECUTED
200a278: 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) {
200a27c: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
200a280: a2 24 80 01 sub %l2, %g1, %l1 <== NOT EXECUTED
200a284: 80 a4 40 13 cmp %l1, %l3 <== NOT EXECUTED
200a288: 2a bf ff da bcs,a 200a1f0 <pipe_write+0x64> <== NOT EXECUTED
200a28c: c2 06 e0 18 ld [ %i3 + 0x18 ], %g1 <== NOT EXECUTED
ret = -EPIPE;
goto out_locked;
}
}
chunk = MIN(count - written, PIPE_SPACE(pipe));
200a290: 84 26 80 18 sub %i2, %i0, %g2 <== NOT EXECUTED
200a294: 80 a4 40 02 cmp %l1, %g2 <== NOT EXECUTED
200a298: 38 80 00 02 bgu,a 200a2a0 <pipe_write+0x114> <== NOT EXECUTED
200a29c: a2 10 00 02 mov %g2, %l1 <== NOT EXECUTED
chunk1 = pipe->Size - PIPE_WSTART(pipe);
200a2a0: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED
200a2a4: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
200a2a8: 40 00 3a 9c call 2018d18 <.urem> <== NOT EXECUTED
200a2ac: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED
200a2b0: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
200a2b4: a4 24 80 08 sub %l2, %o0, %l2 <== NOT EXECUTED
if (chunk > chunk1) {
200a2b8: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED
200a2bc: 04 80 00 0a ble 200a2e4 <pipe_write+0x158> <== NOT EXECUTED
200a2c0: 92 06 40 18 add %i1, %i0, %o1 <== NOT EXECUTED
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
200a2c4: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
200a2c8: 40 00 16 d1 call 200fe0c <memcpy> <== NOT EXECUTED
200a2cc: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED
memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
200a2d0: 92 04 80 18 add %l2, %i0, %o1 <== NOT EXECUTED
200a2d4: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED
200a2d8: 94 24 40 12 sub %l1, %l2, %o2 <== NOT EXECUTED
200a2dc: 10 80 00 04 b 200a2ec <pipe_write+0x160> <== NOT EXECUTED
200a2e0: 92 06 40 09 add %i1, %o1, %o1 <== NOT EXECUTED
}
else
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
200a2e4: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED
200a2e8: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
200a2ec: 40 00 16 c8 call 200fe0c <memcpy> <== NOT EXECUTED
200a2f0: 01 00 00 00 nop <== NOT EXECUTED
pipe->Length += chunk;
200a2f4: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED
if (pipe->waitingReaders > 0)
200a2f8: 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;
200a2fc: 84 00 80 11 add %g2, %l1, %g2 <== NOT EXECUTED
if (pipe->waitingReaders > 0)
200a300: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a304: 02 80 00 05 be 200a318 <pipe_write+0x18c> <== NOT EXECUTED
200a308: c4 24 20 0c st %g2, [ %l0 + 0xc ] <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
200a30c: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
200a310: 40 00 08 a7 call 200c5ac <rtems_barrier_release> <== NOT EXECUTED
200a314: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
written += chunk;
200a318: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED
200a31c: 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) {
200a320: 80 a6 00 1a cmp %i0, %i2 <== NOT EXECUTED
200a324: 2a bf ff d6 bcs,a 200a27c <pipe_write+0xf0> <== NOT EXECUTED
200a328: e4 04 20 04 ld [ %l0 + 4 ], %l2 <== NOT EXECUTED
200a32c: 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);
200a330: 7f ff f0 4c call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200a334: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
/* Signal SIGPIPE */
if (ret == -EPIPE)
kill(getpid(), SIGPIPE);
#endif
if (written > 0)
200a338: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
200a33c: 24 80 00 02 ble,a 200a344 <pipe_write+0x1b8> <== NOT EXECUTED
200a340: b0 10 00 11 mov %l1, %i0 <== NOT EXECUTED
return written;
return ret;
}
200a344: 81 c7 e0 08 ret <== NOT EXECUTED
200a348: 81 e8 00 00 restore <== NOT EXECUTED
0200701c <posix_memalign>:
)
{
/*
* Update call statistics
*/
MSBUMP(memalign_calls, 1);
200701c: 05 00 80 9a sethi %hi(0x2026800), %g2
2007020: 84 10 a1 08 or %g2, 0x108, %g2 ! 2026908 <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
0200b568 <ramdisk_allocate>:
void *area_begin,
uint32_t block_size,
rtems_blkdev_bnum block_count,
bool trace
)
{
200b568: 9d e3 bf a0 save %sp, -96, %sp
struct ramdisk *rd = malloc(sizeof(struct ramdisk));
200b56c: 7f ff e2 63 call 2003ef8 <malloc>
200b570: 90 10 20 10 mov 0x10, %o0
200b574: a0 10 00 08 mov %o0, %l0
void *area_begin,
uint32_t block_size,
rtems_blkdev_bnum block_count,
bool trace
)
{
200b578: 90 10 00 18 mov %i0, %o0
struct ramdisk *rd = malloc(sizeof(struct ramdisk));
if (rd == NULL) {
200b57c: 80 a4 20 00 cmp %l0, 0
200b580: 02 80 00 17 be 200b5dc <ramdisk_allocate+0x74> <== NEVER TAKEN
200b584: a2 10 00 10 mov %l0, %l1
return NULL;
}
if (area_begin == NULL) {
200b588: 80 a6 20 00 cmp %i0, 0
200b58c: 32 80 00 0e bne,a 200b5c4 <ramdisk_allocate+0x5c> <== NEVER TAKEN
200b590: c0 2c 20 0d clrb [ %l0 + 0xd ] <== NOT EXECUTED
area_begin = calloc(block_count, block_size);
200b594: 90 10 00 1a mov %i2, %o0
200b598: 7f ff e0 e7 call 2003934 <calloc>
200b59c: 92 10 00 19 mov %i1, %o1
if (area_begin == NULL) {
200b5a0: 80 a2 20 00 cmp %o0, 0
200b5a4: 12 80 00 07 bne 200b5c0 <ramdisk_allocate+0x58> <== ALWAYS TAKEN
200b5a8: 82 10 20 01 mov 1, %g1
free(rd);
200b5ac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
200b5b0: 7f ff e1 73 call 2003b7c <free> <== NOT EXECUTED
200b5b4: a0 10 20 00 clr %l0 <== NOT EXECUTED
return NULL;
200b5b8: 81 c7 e0 08 ret <== NOT EXECUTED
200b5bc: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED
200b5c0: 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;
200b5c4: 82 10 20 01 mov 1, %g1
}
rd->malloced = true;
} else {
rd->malloced = false;
}
rd->block_size = block_size;
200b5c8: f2 24 40 00 st %i1, [ %l1 ]
rd->block_num = block_count;
200b5cc: f4 24 60 04 st %i2, [ %l1 + 4 ]
rd->area = area_begin;
200b5d0: d0 24 60 08 st %o0, [ %l1 + 8 ]
rd->trace = trace;
200b5d4: f6 2c 60 0e stb %i3, [ %l1 + 0xe ]
rd->initialized = true;
200b5d8: c2 2c 60 0c stb %g1, [ %l1 + 0xc ]
return rd;
}
200b5dc: b0 10 00 10 mov %l0, %i0
200b5e0: 81 c7 e0 08 ret
200b5e4: 81 e8 00 00 restore
0200b530 <ramdisk_free>:
return rd;
}
void ramdisk_free(ramdisk *rd)
{
200b530: 9d e3 bf a0 save %sp, -96, %sp
if (rd != NULL) {
200b534: 80 a6 20 00 cmp %i0, 0
200b538: 02 80 00 0a be 200b560 <ramdisk_free+0x30> <== NEVER TAKEN
200b53c: 01 00 00 00 nop
if (rd->malloced) {
200b540: c2 0e 20 0d ldub [ %i0 + 0xd ], %g1
200b544: 80 a0 60 00 cmp %g1, 0
200b548: 02 80 00 04 be 200b558 <ramdisk_free+0x28> <== NEVER TAKEN
200b54c: 01 00 00 00 nop
free(rd->area);
200b550: 7f ff e1 8b call 2003b7c <free>
200b554: d0 06 20 08 ld [ %i0 + 8 ], %o0
}
free(rd);
200b558: 7f ff e1 89 call 2003b7c <free>
200b55c: 81 e8 00 00 restore
200b560: 81 c7 e0 08 ret <== NOT EXECUTED
200b564: 81 e8 00 00 restore <== NOT EXECUTED
02020d0c <ramdisk_initialize>:
rtems_device_driver
ramdisk_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor __attribute__((unused)),
void *arg __attribute__((unused)))
{
2020d0c: 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();
2020d10: 7f ff 97 87 call 2006b2c <rtems_disk_io_initialize> <== NOT EXECUTED
2020d14: 01 00 00 00 nop <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
2020d18: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2020d1c: 12 80 00 44 bne 2020e2c <ramdisk_initialize+0x120> <== NOT EXECUTED
2020d20: 39 00 81 a4 sethi %hi(0x2069000), %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));
2020d24: d0 07 21 30 ld [ %i4 + 0x130 ], %o0 ! 2069130 <rtems_ramdisk_configuration_size><== NOT EXECUTED
2020d28: 92 10 20 10 mov 0x10, %o1 <== NOT EXECUTED
2020d2c: 7f ff 9b be call 2007c24 <calloc> <== NOT EXECUTED
2020d30: 25 00 81 a4 sethi %hi(0x2069000), %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,
2020d34: 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";
2020d38: 2d 0b d9 19 sethi %hi(0x2f646400), %l6 <== NOT EXECUTED
2020d3c: 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++)
2020d40: b8 17 21 30 or %i4, 0x130, %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;
2020d44: 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));
2020d48: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
r->trace = false;
2020d4c: c0 2a 20 0e clrb [ %o0 + 0xe ] <== NOT EXECUTED
2020d50: a4 14 a1 24 or %l2, 0x124, %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,
2020d54: ba 17 62 34 or %i5, 0x234, %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";
2020d58: ac 15 a1 76 or %l6, 0x176, %l6 <== NOT EXECUTED
2020d5c: 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,
2020d60: 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++)
2020d64: 10 80 00 2e b 2020e1c <ramdisk_initialize+0x110> <== NOT EXECUTED
2020d68: 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;
2020d6c: d0 04 a0 04 ld [ %l2 + 4 ], %o0 <== NOT EXECUTED
if (c->location == NULL)
2020d70: c2 04 a0 08 ld [ %l2 + 8 ], %g1 <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
2020d74: f0 27 bf f8 st %i0, [ %fp + -8 ] <== NOT EXECUTED
temp.__overlay.minor = _minor;
2020d78: 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";
2020d7c: ec 3f bf e8 std %l6, [ %fp + -24 ] <== NOT EXECUTED
name [sizeof(RAMDISK_DEVICE_BASE_NAME)] += i;
2020d80: e6 2f bf f0 stb %l3, [ %fp + -16 ] <== NOT EXECUTED
r->block_size = c->block_size;
2020d84: d2 24 40 00 st %o1, [ %l1 ] <== NOT EXECUTED
r->block_num = c->block_num;
2020d88: d0 24 60 04 st %o0, [ %l1 + 4 ] <== NOT EXECUTED
if (c->location == NULL)
2020d8c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2020d90: 12 80 00 0b bne 2020dbc <ramdisk_initialize+0xb0> <== NOT EXECUTED
2020d94: f4 1f bf f8 ldd [ %fp + -8 ], %i2 <== NOT EXECUTED
{
r->malloced = true;
r->area = malloc(r->block_size * r->block_num);
2020d98: 7f ff 87 18 call 20029f8 <.umul> <== NOT EXECUTED
2020d9c: e8 2c 60 0d stb %l4, [ %l1 + 0xd ] <== NOT EXECUTED
2020da0: 7f ff 9e f7 call 200897c <malloc> <== NOT EXECUTED
2020da4: 01 00 00 00 nop <== NOT EXECUTED
if (r->area == NULL) /* No enough memory for this disk */
2020da8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020dac: 12 80 00 06 bne 2020dc4 <ramdisk_initialize+0xb8> <== NOT EXECUTED
2020db0: d0 24 60 08 st %o0, [ %l1 + 8 ] <== NOT EXECUTED
{
if (r->malloced)
{
free(r->area);
}
r->initialized = false;
2020db4: 10 80 00 17 b 2020e10 <ramdisk_initialize+0x104> <== NOT EXECUTED
2020db8: c0 2c 60 0c clrb [ %l1 + 0xc ] <== NOT EXECUTED
}
else
{
r->malloced = false;
r->initialized = true;
r->area = c->location;
2020dbc: c2 24 60 08 st %g1, [ %l1 + 8 ] <== NOT EXECUTED
r->initialized = true;
}
}
else
{
r->malloced = false;
2020dc0: 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,
2020dc4: d4 04 80 00 ld [ %l2 ], %o2 <== NOT EXECUTED
2020dc8: d6 04 a0 04 ld [ %l2 + 4 ], %o3 <== NOT EXECUTED
}
}
else
{
r->malloced = false;
r->initialized = true;
2020dcc: 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,
2020dd0: ea 23 a0 5c st %l5, [ %sp + 0x5c ] <== NOT EXECUTED
2020dd4: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
2020dd8: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
2020ddc: 98 10 00 1d mov %i5, %o4 <== NOT EXECUTED
2020de0: 7f ff 99 24 call 2007270 <rtems_disk_create_phys> <== NOT EXECUTED
2020de4: 9a 10 00 11 mov %l1, %o5 <== NOT EXECUTED
ramdisk_ioctl, r, name);
if (rc != RTEMS_SUCCESSFUL)
2020de8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020dec: 22 80 00 0a be,a 2020e14 <ramdisk_initialize+0x108> <== NOT EXECUTED
2020df0: a6 04 e0 01 inc %l3 <== NOT EXECUTED
{
if (r->malloced)
2020df4: c2 0c 60 0d ldub [ %l1 + 0xd ], %g1 <== NOT EXECUTED
2020df8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2020dfc: 22 80 00 05 be,a 2020e10 <ramdisk_initialize+0x104> <== NOT EXECUTED
2020e00: c0 2c 60 0c clrb [ %l1 + 0xc ] <== NOT EXECUTED
{
free(r->area);
2020e04: 7f ff 9d 17 call 2008260 <free> <== NOT EXECUTED
2020e08: d0 04 60 08 ld [ %l1 + 8 ], %o0 <== NOT EXECUTED
}
r->initialized = false;
2020e0c: 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++)
2020e10: a6 04 e0 01 inc %l3 <== NOT EXECUTED
2020e14: a4 04 a0 0c add %l2, 0xc, %l2 <== NOT EXECUTED
2020e18: a2 04 60 10 add %l1, 0x10, %l1 <== NOT EXECUTED
2020e1c: c2 07 00 00 ld [ %i4 ], %g1 <== NOT EXECUTED
2020e20: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED
2020e24: 2a bf ff d2 bcs,a 2020d6c <ramdisk_initialize+0x60> <== NOT EXECUTED
2020e28: d2 04 80 00 ld [ %l2 ], %o1 <== NOT EXECUTED
}
r->initialized = false;
}
}
return RTEMS_SUCCESSFUL;
}
2020e2c: 81 c7 e0 08 ret <== NOT EXECUTED
2020e30: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED
0200b428 <ramdisk_ioctl>:
return 0;
}
int
ramdisk_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)
{
200b428: 9d e3 bf a0 save %sp, -96, %sp
switch (req)
200b42c: 03 30 06 10 sethi %hi(0xc0184000), %g1
200b430: 82 10 62 01 or %g1, 0x201, %g1 ! c0184201 <RAM_END+0xbdd84201>
200b434: 80 a6 40 01 cmp %i1, %g1
200b438: 12 80 00 3b bne 200b524 <ramdisk_ioctl+0xfc>
200b43c: 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)
200b440: c4 06 80 00 ld [ %i2 ], %g2
200b444: 80 a0 a0 00 cmp %g2, 0
200b448: 02 80 00 07 be 200b464 <ramdisk_ioctl+0x3c> <== NEVER TAKEN
200b44c: e4 06 20 2c ld [ %i0 + 0x2c ], %l2
200b450: 80 a0 a0 01 cmp %g2, 1
200b454: 12 80 00 2e bne 200b50c <ramdisk_ioctl+0xe4> <== NEVER TAKEN
200b458: 01 00 00 00 nop
}
static int
ramdisk_write(struct ramdisk *rd, rtems_blkdev_request *req)
{
uint8_t *to = rd->area;
200b45c: 10 80 00 15 b 200b4b0 <ramdisk_ioctl+0x88>
200b460: 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;
200b464: 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++)
200b468: a2 06 a0 18 add %i2, 0x18, %l1 <== NOT EXECUTED
200b46c: 10 80 00 0b b 200b498 <ramdisk_ioctl+0x70> <== NOT EXECUTED
200b470: 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);
200b474: d0 04 80 00 ld [ %l2 ], %o0 <== NOT EXECUTED
200b478: 40 00 44 d5 call 201c7cc <.umul> <== NOT EXECUTED
200b47c: ea 04 60 08 ld [ %l1 + 8 ], %l5 <== NOT EXECUTED
200b480: d4 04 60 04 ld [ %l1 + 4 ], %o2 <== NOT EXECUTED
200b484: 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++)
200b488: 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);
200b48c: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
200b490: 40 00 22 63 call 2013e1c <memcpy> <== NOT EXECUTED
200b494: 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++)
200b498: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
200b49c: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED
200b4a0: 2a bf ff f5 bcs,a 200b474 <ramdisk_ioctl+0x4c> <== NOT EXECUTED
200b4a4: 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);
200b4a8: 10 80 00 12 b 200b4f0 <ramdisk_ioctl+0xc8> <== NOT EXECUTED
200b4ac: 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++)
200b4b0: a2 06 a0 18 add %i2, 0x18, %l1
200b4b4: 10 80 00 0a b 200b4dc <ramdisk_ioctl+0xb4>
200b4b8: 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);
200b4bc: d0 04 80 00 ld [ %l2 ], %o0
200b4c0: 40 00 44 c3 call 201c7cc <.umul>
200b4c4: a6 04 e0 01 inc %l3
200b4c8: d2 04 60 08 ld [ %l1 + 8 ], %o1
200b4cc: d4 04 60 04 ld [ %l1 + 4 ], %o2
200b4d0: 90 05 00 08 add %l4, %o0, %o0
200b4d4: 40 00 22 52 call 2013e1c <memcpy>
200b4d8: 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++)
200b4dc: c2 04 20 10 ld [ %l0 + 0x10 ], %g1
200b4e0: 80 a4 c0 01 cmp %l3, %g1
200b4e4: 2a bf ff f6 bcs,a 200b4bc <ramdisk_ioctl+0x94>
200b4e8: 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);
200b4ec: d0 04 20 08 ld [ %l0 + 8 ], %o0
200b4f0: 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;
200b4f4: c0 24 20 0c clr [ %l0 + 0xc ]
req->req_done(req->done_arg, RTEMS_SUCCESSFUL);
200b4f8: 92 10 20 00 clr %o1
200b4fc: 9f c0 40 00 call %g1
200b500: 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);
200b504: 81 c7 e0 08 ret
200b508: 81 e8 00 00 restore
default:
errno = EINVAL;
200b50c: 40 00 20 08 call 201352c <__errno> <== NOT EXECUTED
200b510: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200b514: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
200b518: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return -1;
200b51c: 81 c7 e0 08 ret <== NOT EXECUTED
200b520: 81 e8 00 00 restore <== NOT EXECUTED
}
break;
}
default:
return rtems_blkdev_ioctl (dd, req, argp);
200b524: 40 00 09 fa call 200dd0c <rtems_blkdev_ioctl>
200b528: 81 e8 00 00 restore
0200b5e8 <ramdisk_register>:
rtems_blkdev_bnum block_count,
bool trace,
const char *disk,
dev_t *dev_ptr
)
{
200b5e8: 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);
200b5ec: 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;
200b5f0: c0 27 bf fc clr [ %fp + -4 ]
rtems_blkdev_bnum block_count,
bool trace,
const char *disk,
dev_t *dev_ptr
)
{
200b5f4: 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);
200b5f8: 13 00 80 7b sethi %hi(0x201ec00), %o1
200b5fc: 94 07 bf fc add %fp, -4, %o2
200b600: 92 12 63 14 or %o1, 0x314, %o1
200b604: 7f ff f1 fe call 2007dfc <rtems_io_register_driver>
200b608: b0 10 20 0d mov 0xd, %i0
if (sc != RTEMS_SUCCESSFUL) {
200b60c: 80 a2 20 00 cmp %o0, 0
200b610: 12 80 00 0a bne 200b638 <ramdisk_register+0x50> <== NEVER TAKEN
200b614: 96 0e a0 ff and %i2, 0xff, %o3
return RTEMS_UNSATISFIED;
}
rd = ramdisk_allocate(NULL, block_size, block_count, trace);
200b618: 92 10 00 10 mov %l0, %o1
200b61c: 7f ff ff d3 call 200b568 <ramdisk_allocate>
200b620: 94 10 00 19 mov %i1, %o2
if (rd == NULL) {
200b624: a4 92 20 00 orcc %o0, 0, %l2
200b628: 12 80 00 06 bne 200b640 <ramdisk_register+0x58> <== ALWAYS TAKEN
200b62c: e2 07 bf fc ld [ %fp + -4 ], %l1
rtems_io_unregister_driver(major);
200b630: 7f ff f2 52 call 2007f78 <rtems_io_unregister_driver> <== NOT EXECUTED
200b634: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
return RTEMS_UNSATISFIED;
200b638: 81 c7 e0 08 ret <== NOT EXECUTED
200b63c: 81 e8 00 00 restore <== NOT EXECUTED
}
dev = rtems_filesystem_make_dev_t(major, 0);
sc = rtems_disk_create_phys(
200b640: f6 23 a0 5c st %i3, [ %sp + 0x5c ]
200b644: 94 10 00 10 mov %l0, %o2
200b648: 96 10 00 19 mov %i1, %o3
200b64c: 90 10 00 11 mov %l1, %o0
200b650: 92 10 20 00 clr %o1
200b654: 19 00 80 2d sethi %hi(0x200b400), %o4
200b658: 9a 10 00 12 mov %l2, %o5
200b65c: 7f ff de a2 call 20030e4 <rtems_disk_create_phys>
200b660: 98 13 20 28 or %o4, 0x28, %o4
block_count,
ramdisk_ioctl,
rd,
disk
);
if (sc != RTEMS_SUCCESSFUL) {
200b664: 80 a2 20 00 cmp %o0, 0
200b668: 22 80 00 09 be,a 200b68c <ramdisk_register+0xa4> <== ALWAYS TAKEN
200b66c: e2 27 00 00 st %l1, [ %i4 ]
ramdisk_free(rd);
200b670: 7f ff ff b0 call 200b530 <ramdisk_free> <== NOT EXECUTED
200b674: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
rtems_io_unregister_driver(major);
200b678: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
200b67c: 7f ff f2 3f call 2007f78 <rtems_io_unregister_driver> <== NOT EXECUTED
200b680: b0 10 20 0d mov 0xd, %i0 <== NOT EXECUTED
return RTEMS_UNSATISFIED;
200b684: 81 c7 e0 08 ret <== NOT EXECUTED
200b688: 81 e8 00 00 restore <== NOT EXECUTED
}
*dev_ptr = dev;
200b68c: c0 27 20 04 clr [ %i4 + 4 ]
200b690: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
}
200b694: 81 c7 e0 08 ret
200b698: 81 e8 00 00 restore
0201a18c <read>:
ssize_t read(
int fd,
void *buffer,
size_t count
)
{
201a18c: 9d e3 bf a0 save %sp, -96, %sp
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
201a190: 03 00 80 70 sethi %hi(0x201c000), %g1
201a194: c2 00 60 b4 ld [ %g1 + 0xb4 ], %g1 ! 201c0b4 <rtems_libio_number_iops>
ssize_t read(
int fd,
void *buffer,
size_t count
)
{
201a198: 92 10 00 19 mov %i1, %o1
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
201a19c: 80 a6 00 01 cmp %i0, %g1
201a1a0: 1a 80 00 17 bcc 201a1fc <read+0x70> <== NEVER TAKEN
201a1a4: 94 10 00 1a mov %i2, %o2
iop = rtems_libio_iop( fd );
201a1a8: 03 00 80 72 sethi %hi(0x201c800), %g1
201a1ac: e0 00 62 48 ld [ %g1 + 0x248 ], %l0 ! 201ca48 <rtems_libio_iops>
201a1b0: 83 2e 20 06 sll %i0, 6, %g1
201a1b4: b1 2e 20 03 sll %i0, 3, %i0
201a1b8: b0 06 00 01 add %i0, %g1, %i0
201a1bc: a0 04 00 18 add %l0, %i0, %l0
rtems_libio_check_is_open( iop );
201a1c0: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
201a1c4: 80 88 61 00 btst 0x100, %g1
201a1c8: 02 80 00 0d be 201a1fc <read+0x70>
201a1cc: 80 a6 60 00 cmp %i1, 0
rtems_libio_check_buffer( buffer );
201a1d0: 12 80 00 06 bne 201a1e8 <read+0x5c> <== ALWAYS TAKEN
201a1d4: 80 a6 a0 00 cmp %i2, 0
201a1d8: 7f ff d4 d1 call 200f51c <__errno> <== NOT EXECUTED
201a1dc: 01 00 00 00 nop <== NOT EXECUTED
201a1e0: 10 80 00 12 b 201a228 <read+0x9c> <== NOT EXECUTED
201a1e4: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
rtems_libio_check_count( count );
201a1e8: 02 80 00 1c be 201a258 <read+0xcc> <== NEVER TAKEN
201a1ec: 90 10 20 00 clr %o0
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
201a1f0: 80 88 60 02 btst 2, %g1
201a1f4: 32 80 00 06 bne,a 201a20c <read+0x80> <== ALWAYS TAKEN
201a1f8: c2 04 20 40 ld [ %l0 + 0x40 ], %g1
201a1fc: 7f ff d4 c8 call 200f51c <__errno>
201a200: 01 00 00 00 nop
201a204: 10 80 00 09 b 201a228 <read+0x9c>
201a208: 82 10 20 09 mov 9, %g1 ! 9 <PROM_START+0x9>
/*
* Now process the read().
*/
if ( !iop->handlers->read_h )
201a20c: c2 00 60 08 ld [ %g1 + 8 ], %g1
201a210: 80 a0 60 00 cmp %g1, 0
201a214: 12 80 00 08 bne 201a234 <read+0xa8> <== ALWAYS TAKEN
201a218: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOTSUP );
201a21c: 7f ff d4 c0 call 200f51c <__errno> <== NOT EXECUTED
201a220: 01 00 00 00 nop <== NOT EXECUTED
201a224: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
201a228: c2 22 00 00 st %g1, [ %o0 ]
201a22c: 10 80 00 0b b 201a258 <read+0xcc>
201a230: 90 10 3f ff mov -1, %o0
rc = (*iop->handlers->read_h)( iop, buffer, count );
201a234: 9f c0 40 00 call %g1
201a238: 90 10 00 10 mov %l0, %o0
if ( rc > 0 )
201a23c: 80 a2 20 00 cmp %o0, 0
201a240: 04 80 00 06 ble 201a258 <read+0xcc>
201a244: 85 3a 20 1f sra %o0, 0x1f, %g2
iop->offset += rc;
201a248: d8 1c 20 10 ldd [ %l0 + 0x10 ], %o4
201a24c: 86 83 40 08 addcc %o5, %o0, %g3
201a250: 84 43 00 02 addx %o4, %g2, %g2
201a254: c4 3c 20 10 std %g2, [ %l0 + 0x10 ]
return rc;
}
201a258: 81 c7 e0 08 ret
201a25c: 91 e8 00 08 restore %g0, %o0, %o0
0202a158 <readlink>:
ssize_t readlink(
const char *pathname,
char *buf,
size_t bufsize
)
{
202a158: 9d e3 bf 88 save %sp, -120, %sp
rtems_filesystem_location_info_t loc;
int result;
if (!buf)
202a15c: 80 a6 60 00 cmp %i1, 0
202a160: 12 80 00 06 bne 202a178 <readlink+0x20> <== ALWAYS TAKEN
202a164: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EFAULT );
202a168: 40 00 62 b0 call 2042c28 <__errno> <== NOT EXECUTED
202a16c: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
202a170: 10 80 00 32 b 202a238 <readlink+0xe0> <== NOT EXECUTED
202a174: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED
result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ),
202a178: 40 00 7e 54 call 2049ac8 <strlen>
202a17c: 90 10 00 18 mov %i0, %o0
202a180: a0 07 bf ec add %fp, -20, %l0
202a184: 92 10 00 08 mov %o0, %o1
202a188: 94 10 20 00 clr %o2
202a18c: 90 10 00 18 mov %i0, %o0
202a190: 96 10 00 10 mov %l0, %o3
202a194: 98 10 20 00 clr %o4
202a198: 7f ff 78 15 call 20081ec <rtems_filesystem_evaluate_path>
202a19c: b0 10 3f ff mov -1, %i0
0, &loc, false );
if ( result != 0 )
202a1a0: 80 a2 20 00 cmp %o0, 0
202a1a4: 12 80 00 26 bne 202a23c <readlink+0xe4> <== NEVER TAKEN
202a1a8: c4 07 bf f8 ld [ %fp + -8 ], %g2
return -1;
if ( !loc.ops->node_type_h ){
202a1ac: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1
202a1b0: 80 a0 60 00 cmp %g1, 0
202a1b4: 22 80 00 19 be,a 202a218 <readlink+0xc0> <== NEVER TAKEN
202a1b8: 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 ){
202a1bc: 9f c0 40 00 call %g1
202a1c0: 90 10 00 10 mov %l0, %o0
202a1c4: 80 a2 20 04 cmp %o0, 4
202a1c8: 02 80 00 0f be 202a204 <readlink+0xac>
202a1cc: c4 07 bf f8 ld [ %fp + -8 ], %g2
rtems_filesystem_freenode( &loc );
202a1d0: 80 a0 a0 00 cmp %g2, 0
202a1d4: 02 80 00 08 be 202a1f4 <readlink+0x9c> <== NEVER TAKEN
202a1d8: 01 00 00 00 nop
202a1dc: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1
202a1e0: 80 a0 60 00 cmp %g1, 0
202a1e4: 02 80 00 04 be 202a1f4 <readlink+0x9c> <== NEVER TAKEN
202a1e8: 01 00 00 00 nop
202a1ec: 9f c0 40 00 call %g1
202a1f0: 90 10 00 10 mov %l0, %o0
rtems_set_errno_and_return_minus_one( EINVAL );
202a1f4: 40 00 62 8d call 2042c28 <__errno>
202a1f8: b0 10 3f ff mov -1, %i0
202a1fc: 10 80 00 0f b 202a238 <readlink+0xe0>
202a200: 82 10 20 16 mov 0x16, %g1
}
if ( !loc.ops->readlink_h ){
202a204: c2 00 a0 3c ld [ %g2 + 0x3c ], %g1
202a208: 80 a0 60 00 cmp %g1, 0
202a20c: 12 80 00 0e bne 202a244 <readlink+0xec> <== ALWAYS TAKEN
202a210: 92 10 00 19 mov %i1, %o1
rtems_filesystem_freenode( &loc );
202a214: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
202a218: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202a21c: 02 80 00 04 be 202a22c <readlink+0xd4> <== NOT EXECUTED
202a220: 01 00 00 00 nop <== NOT EXECUTED
202a224: 9f c0 40 00 call %g1 <== NOT EXECUTED
202a228: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
202a22c: 40 00 62 7f call 2042c28 <__errno> <== NOT EXECUTED
202a230: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202a234: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
202a238: c2 22 00 00 st %g1, [ %o0 ]
202a23c: 81 c7 e0 08 ret
202a240: 81 e8 00 00 restore
}
result = (*loc.ops->readlink_h)( &loc, buf, bufsize );
202a244: 94 10 00 1a mov %i2, %o2
202a248: 9f c0 40 00 call %g1
202a24c: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &loc );
202a250: c2 07 bf f8 ld [ %fp + -8 ], %g1
202a254: 80 a0 60 00 cmp %g1, 0
202a258: 02 bf ff f9 be 202a23c <readlink+0xe4> <== NEVER TAKEN
202a25c: b0 10 00 08 mov %o0, %i0
202a260: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202a264: 80 a0 60 00 cmp %g1, 0
202a268: 02 80 00 04 be 202a278 <readlink+0x120> <== NEVER TAKEN
202a26c: 01 00 00 00 nop
202a270: 9f c0 40 00 call %g1
202a274: 90 10 00 10 mov %l0, %o0
return result;
}
202a278: 81 c7 e0 08 ret
202a27c: 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 7a sethi %hi(0x201e800), %g1
2004790: c2 00 63 a4 ld [ %g1 + 0x3a4 ], %g1 ! 201eba4 <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 7f sethi %hi(0x201fc00), %g1
20047a4: e4 00 61 0c ld [ %g1 + 0x10c ], %l2 ! 201fd0c <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 2f 87 call 20105ec <__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 2f 78 call 20105ec <__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 2f 6d call 20105ec <__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
0201a2e4 <realloc>:
{
uintptr_t old_size;
char *new_area;
uintptr_t resize;
MSBUMP(realloc_calls, 1);
201a2e4: 9d e3 bf 98 save %sp, -104, %sp
201a2e8: 03 00 80 72 sethi %hi(0x201c800), %g1
201a2ec: 82 10 62 60 or %g1, 0x260, %g1 ! 201ca60 <rtems_malloc_statistics>
201a2f0: 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())) {
201a2f4: 05 00 80 73 sethi %hi(0x201cc00), %g2
201a2f8: c4 00 a1 c0 ld [ %g2 + 0x1c0 ], %g2 ! 201cdc0 <_System_state_Current>
{
uintptr_t old_size;
char *new_area;
uintptr_t resize;
MSBUMP(realloc_calls, 1);
201a2fc: 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())) {
201a300: 80 a0 a0 03 cmp %g2, 3
201a304: 12 80 00 0c bne 201a334 <realloc+0x50> <== NEVER TAKEN
201a308: c6 20 60 10 st %g3, [ %g1 + 0x10 ]
if (_Thread_Dispatch_disable_level > 0)
201a30c: 03 00 80 73 sethi %hi(0x201cc00), %g1
201a310: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 ! 201cc20 <_Thread_Dispatch_disable_level>
201a314: 80 a0 60 00 cmp %g1, 0
201a318: 32 80 00 13 bne,a 201a364 <realloc+0x80> <== NEVER TAKEN
201a31c: b0 10 20 00 clr %i0 <== NOT EXECUTED
return (void *) 0;
if (_ISR_Nest_level > 0)
201a320: 03 00 80 73 sethi %hi(0x201cc00), %g1
201a324: c2 00 60 bc ld [ %g1 + 0xbc ], %g1 ! 201ccbc <_ISR_Nest_level>
201a328: 80 a0 60 00 cmp %g1, 0
201a32c: 32 80 00 0e bne,a 201a364 <realloc+0x80> <== NEVER TAKEN
201a330: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
/*
* Continue with realloc().
*/
if ( !ptr )
201a334: 80 a6 20 00 cmp %i0, 0
201a338: 12 80 00 06 bne 201a350 <realloc+0x6c>
201a33c: 80 a6 60 00 cmp %i1, 0
return malloc( size );
201a340: 7f ff a2 ce call 2002e78 <malloc>
201a344: 90 10 00 19 mov %i1, %o0
201a348: 81 c7 e0 08 ret
201a34c: 91 e8 00 08 restore %g0, %o0, %o0
if ( !size ) {
201a350: 12 80 00 07 bne 201a36c <realloc+0x88> <== ALWAYS TAKEN
201a354: 21 00 80 70 sethi %hi(0x201c000), %l0
free( ptr );
201a358: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
201a35c: 7f ff a1 e8 call 2002afc <free> <== NOT EXECUTED
201a360: b0 10 20 00 clr %i0 <== NOT EXECUTED
return (void *) 0;
201a364: 81 c7 e0 08 ret <== NOT EXECUTED
201a368: 81 e8 00 00 restore <== NOT EXECUTED
}
if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
201a36c: d0 04 20 c0 ld [ %l0 + 0xc0 ], %o0
201a370: 92 10 00 18 mov %i0, %o1
201a374: 40 00 00 60 call 201a4f4 <_Protected_heap_Get_block_size>
201a378: 94 07 bf fc add %fp, -4, %o2
201a37c: 80 8a 20 ff btst 0xff, %o0
201a380: 12 80 00 08 bne 201a3a0 <realloc+0xbc>
201a384: d0 04 20 c0 ld [ %l0 + 0xc0 ], %o0
errno = EINVAL;
201a388: 7f ff d4 65 call 200f51c <__errno>
201a38c: b0 10 20 00 clr %i0
201a390: 82 10 20 16 mov 0x16, %g1
201a394: c2 22 00 00 st %g1, [ %o0 ]
return (void *) 0;
201a398: 81 c7 e0 08 ret
201a39c: 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 ) ) {
201a3a0: 92 10 00 18 mov %i0, %o1
201a3a4: 40 00 00 61 call 201a528 <_Protected_heap_Resize_block>
201a3a8: 94 10 00 19 mov %i1, %o2
201a3ac: 80 8a 20 ff btst 0xff, %o0
201a3b0: 12 80 00 1a bne 201a418 <realloc+0x134>
201a3b4: 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 );
201a3b8: 7f ff a2 b0 call 2002e78 <malloc>
201a3bc: 90 10 00 19 mov %i1, %o0
MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */
201a3c0: 03 00 80 72 sethi %hi(0x201c800), %g1
201a3c4: 82 10 62 60 or %g1, 0x260, %g1 ! 201ca60 <rtems_malloc_statistics>
201a3c8: 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 );
201a3cc: a0 10 00 08 mov %o0, %l0
MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */
201a3d0: 84 00 bf ff add %g2, -1, %g2
if ( !new_area ) {
201a3d4: 80 a2 20 00 cmp %o0, 0
201a3d8: 02 80 00 0f be 201a414 <realloc+0x130>
201a3dc: c4 20 60 04 st %g2, [ %g1 + 4 ]
return (void *) 0;
}
memcpy( new_area, ptr, (size < old_size) ? size : old_size );
201a3e0: c2 07 bf fc ld [ %fp + -4 ], %g1
201a3e4: 80 a6 40 01 cmp %i1, %g1
201a3e8: 08 80 00 03 bleu 201a3f4 <realloc+0x110> <== NEVER TAKEN
201a3ec: 94 10 00 19 mov %i1, %o2
201a3f0: 94 10 00 01 mov %g1, %o2
201a3f4: 92 10 00 18 mov %i0, %o1
201a3f8: 7f ff d6 85 call 200fe0c <memcpy>
201a3fc: 90 10 00 10 mov %l0, %o0
free( ptr );
201a400: 90 10 00 18 mov %i0, %o0
201a404: 7f ff a1 be call 2002afc <free>
201a408: b0 10 00 10 mov %l0, %i0
return new_area;
201a40c: 81 c7 e0 08 ret
201a410: 81 e8 00 00 restore
201a414: b0 10 20 00 clr %i0
}
201a418: 81 c7 e0 08 ret
201a41c: 81 e8 00 00 restore
0202a280 <rmdir>:
#include <rtems/seterr.h>
int rmdir(
const char *pathname
)
{
202a280: 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 );
202a284: 7f ff 77 8e call 20080bc <rtems_filesystem_dirname>
202a288: 90 10 00 18 mov %i0, %o0
if ( parentpathlen == 0 )
202a28c: a6 92 20 00 orcc %o0, 0, %l3
202a290: 12 80 00 09 bne 202a2b4 <rmdir+0x34>
202a294: 96 07 bf e8 add %fp, -24, %o3
rtems_filesystem_get_start_loc( pathname, &i, &parentloc );
202a298: 94 10 00 0b mov %o3, %o2
202a29c: 90 10 00 18 mov %i0, %o0
202a2a0: 92 07 bf fc add %fp, -4, %o1
202a2a4: 7f ff 7e 73 call 2009c70 <rtems_filesystem_get_start_loc>
202a2a8: a2 10 20 00 clr %l1
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
202a2ac: 10 80 00 0b b 202a2d8 <rmdir+0x58>
202a2b0: 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,
202a2b4: 90 10 00 18 mov %i0, %o0
202a2b8: 92 10 00 13 mov %l3, %o1
202a2bc: 94 10 20 02 mov 2, %o2
202a2c0: 7f ff 77 cb call 20081ec <rtems_filesystem_evaluate_path>
202a2c4: 98 10 20 00 clr %o4
RTEMS_LIBIO_PERMS_WRITE,
&parentloc,
false );
if ( result != 0 )
202a2c8: 80 a2 20 00 cmp %o0, 0
202a2cc: 12 80 00 89 bne 202a4f0 <rmdir+0x270> <== NEVER TAKEN
202a2d0: a2 10 20 01 mov 1, %l1
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
202a2d4: 94 10 20 14 mov 0x14, %o2
202a2d8: a0 07 bf d4 add %fp, -44, %l0
202a2dc: a4 07 bf e8 add %fp, -24, %l2
202a2e0: 90 10 00 10 mov %l0, %o0
202a2e4: 40 00 6f 9d call 2046158 <memcpy>
202a2e8: 92 10 00 12 mov %l2, %o1
name = pathname + parentpathlen;
202a2ec: b0 06 00 13 add %i0, %l3, %i0
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
202a2f0: 40 00 7d f6 call 2049ac8 <strlen>
202a2f4: 90 10 00 18 mov %i0, %o0
202a2f8: 92 10 00 08 mov %o0, %o1
202a2fc: 7f ff 77 5e call 2008074 <rtems_filesystem_prefix_separators>
202a300: 90 10 00 18 mov %i0, %o0
202a304: b0 06 00 08 add %i0, %o0, %i0
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
202a308: 40 00 7d f0 call 2049ac8 <strlen>
202a30c: 90 10 00 18 mov %i0, %o0
202a310: 94 10 20 00 clr %o2
202a314: 92 10 00 08 mov %o0, %o1
202a318: 96 10 00 10 mov %l0, %o3
202a31c: 90 10 00 18 mov %i0, %o0
202a320: 7f ff 77 77 call 20080fc <rtems_filesystem_evaluate_relative_path>
202a324: 98 10 20 00 clr %o4
0, &loc, false );
if ( result != 0 ) {
202a328: 80 a2 20 00 cmp %o0, 0
202a32c: 02 80 00 11 be 202a370 <rmdir+0xf0>
202a330: c4 07 bf e0 ld [ %fp + -32 ], %g2
if ( free_parentloc )
202a334: 80 8c 60 ff btst 0xff, %l1
202a338: 02 80 00 0c be 202a368 <rmdir+0xe8> <== ALWAYS TAKEN
202a33c: b0 10 3f ff mov -1, %i0
rtems_filesystem_freenode( &parentloc );
202a340: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
202a344: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202a348: 02 80 00 6b be 202a4f4 <rmdir+0x274> <== NOT EXECUTED
202a34c: 01 00 00 00 nop <== NOT EXECUTED
202a350: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
202a354: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202a358: 02 80 00 04 be 202a368 <rmdir+0xe8> <== NOT EXECUTED
202a35c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
202a360: 9f c0 40 00 call %g1 <== NOT EXECUTED
202a364: 01 00 00 00 nop <== NOT EXECUTED
202a368: 81 c7 e0 08 ret
202a36c: 81 e8 00 00 restore
/*
* Verify you can remove this node as a directory.
*/
if ( !loc.ops->node_type_h ){
202a370: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1
202a374: 80 a0 60 00 cmp %g1, 0
202a378: 12 80 00 04 bne 202a388 <rmdir+0x108> <== ALWAYS TAKEN
202a37c: 01 00 00 00 nop
rtems_filesystem_freenode( &loc );
202a380: 10 80 00 2b b 202a42c <rmdir+0x1ac> <== NOT EXECUTED
202a384: 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 ){
202a388: 9f c0 40 00 call %g1
202a38c: 90 10 00 10 mov %l0, %o0
202a390: 80 a2 20 01 cmp %o0, 1
202a394: 02 80 00 1d be 202a408 <rmdir+0x188>
202a398: c2 07 bf dc ld [ %fp + -36 ], %g1
rtems_filesystem_freenode( &loc );
202a39c: c2 07 bf e0 ld [ %fp + -32 ], %g1
202a3a0: 80 a0 60 00 cmp %g1, 0
202a3a4: 02 80 00 09 be 202a3c8 <rmdir+0x148> <== NEVER TAKEN
202a3a8: 80 8c 60 ff btst 0xff, %l1
202a3ac: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202a3b0: 80 a0 60 00 cmp %g1, 0
202a3b4: 02 80 00 05 be 202a3c8 <rmdir+0x148> <== NEVER TAKEN
202a3b8: 80 8c 60 ff btst 0xff, %l1
202a3bc: 9f c0 40 00 call %g1
202a3c0: 90 10 00 10 mov %l0, %o0
if ( free_parentloc )
202a3c4: 80 8c 60 ff btst 0xff, %l1
202a3c8: 02 80 00 0c be 202a3f8 <rmdir+0x178> <== NEVER TAKEN
202a3cc: 01 00 00 00 nop
rtems_filesystem_freenode( &parentloc );
202a3d0: c2 07 bf f4 ld [ %fp + -12 ], %g1
202a3d4: 80 a0 60 00 cmp %g1, 0
202a3d8: 02 80 00 08 be 202a3f8 <rmdir+0x178> <== NEVER TAKEN
202a3dc: 01 00 00 00 nop
202a3e0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202a3e4: 80 a0 60 00 cmp %g1, 0
202a3e8: 02 80 00 04 be 202a3f8 <rmdir+0x178> <== NEVER TAKEN
202a3ec: 01 00 00 00 nop
202a3f0: 9f c0 40 00 call %g1
202a3f4: 90 07 bf e8 add %fp, -24, %o0
rtems_set_errno_and_return_minus_one( ENOTDIR );
202a3f8: 40 00 62 0c call 2042c28 <__errno>
202a3fc: b0 10 3f ff mov -1, %i0
202a400: 10 80 00 1f b 202a47c <rmdir+0x1fc>
202a404: 82 10 20 14 mov 0x14, %g1
/*
* Use the filesystems rmnod to remove the node.
*/
if ( !loc.handlers->rmnod_h ){
202a408: c2 00 60 34 ld [ %g1 + 0x34 ], %g1
202a40c: 80 a0 60 00 cmp %g1, 0
202a410: 12 80 00 1e bne 202a488 <rmdir+0x208> <== ALWAYS TAKEN
202a414: 90 10 00 12 mov %l2, %o0
rtems_filesystem_freenode( &loc );
202a418: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
202a41c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202a420: 02 80 00 09 be 202a444 <rmdir+0x1c4> <== NOT EXECUTED
202a424: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED
202a428: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
202a42c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202a430: 02 80 00 05 be 202a444 <rmdir+0x1c4> <== NOT EXECUTED
202a434: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED
202a438: 9f c0 40 00 call %g1 <== NOT EXECUTED
202a43c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if ( free_parentloc )
202a440: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED
202a444: 02 80 00 0b be 202a470 <rmdir+0x1f0> <== NOT EXECUTED
202a448: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
202a44c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202a450: 02 80 00 08 be 202a470 <rmdir+0x1f0> <== NOT EXECUTED
202a454: 01 00 00 00 nop <== NOT EXECUTED
202a458: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
202a45c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202a460: 02 80 00 04 be 202a470 <rmdir+0x1f0> <== NOT EXECUTED
202a464: 01 00 00 00 nop <== NOT EXECUTED
202a468: 9f c0 40 00 call %g1 <== NOT EXECUTED
202a46c: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
202a470: 40 00 61 ee call 2042c28 <__errno> <== NOT EXECUTED
202a474: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202a478: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
202a47c: c2 22 00 00 st %g1, [ %o0 ]
202a480: 81 c7 e0 08 ret
202a484: 81 e8 00 00 restore
}
result = (*loc.handlers->rmnod_h)( &parentloc, &loc );
202a488: 9f c0 40 00 call %g1
202a48c: 92 10 00 10 mov %l0, %o1
rtems_filesystem_freenode( &loc );
202a490: c2 07 bf e0 ld [ %fp + -32 ], %g1
202a494: 80 a0 60 00 cmp %g1, 0
202a498: 02 80 00 08 be 202a4b8 <rmdir+0x238> <== NEVER TAKEN
202a49c: b0 10 00 08 mov %o0, %i0
202a4a0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202a4a4: 80 a0 60 00 cmp %g1, 0
202a4a8: 02 80 00 05 be 202a4bc <rmdir+0x23c> <== NEVER TAKEN
202a4ac: 80 8c 60 ff btst 0xff, %l1
202a4b0: 9f c0 40 00 call %g1
202a4b4: 90 10 00 10 mov %l0, %o0
if ( free_parentloc )
202a4b8: 80 8c 60 ff btst 0xff, %l1
202a4bc: 02 bf ff ab be 202a368 <rmdir+0xe8>
202a4c0: c2 07 bf f4 ld [ %fp + -12 ], %g1
rtems_filesystem_freenode( &parentloc );
202a4c4: 80 a0 60 00 cmp %g1, 0
202a4c8: 02 80 00 0b be 202a4f4 <rmdir+0x274> <== NEVER TAKEN
202a4cc: 01 00 00 00 nop
202a4d0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202a4d4: 80 a0 60 00 cmp %g1, 0
202a4d8: 02 80 00 07 be 202a4f4 <rmdir+0x274> <== NEVER TAKEN
202a4dc: 01 00 00 00 nop
202a4e0: 9f c0 40 00 call %g1
202a4e4: 90 07 bf e8 add %fp, -24, %o0
202a4e8: 81 c7 e0 08 ret
202a4ec: 81 e8 00 00 restore
202a4f0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return result;
}
202a4f4: 81 c7 e0 08 ret <== NOT EXECUTED
202a4f8: 81 e8 00 00 restore <== NOT EXECUTED
0201482c <rtems_assoc_name_bad>:
uint32_t bad_value
#else
uint32_t bad_value __attribute((unused))
#endif
)
{
201482c: 11 00 80 96 sethi %hi(0x2025800), %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;
}
2014830: 81 c3 e0 08 retl <== NOT EXECUTED
2014834: 90 12 20 78 or %o0, 0x78, %o0 ! 2025878 <bad_buffer.4916> <== NOT EXECUTED
020114f0 <rtems_assoc_name_by_local>:
const char *rtems_assoc_name_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
20114f0: 9d e3 bf a0 save %sp, -96, %sp
const rtems_assoc_t *nap;
nap = rtems_assoc_ptr_by_local(ap, local_value);
20114f4: 90 10 00 18 mov %i0, %o0
20114f8: 40 00 00 0b call 2011524 <rtems_assoc_ptr_by_local>
20114fc: 92 10 00 19 mov %i1, %o1
if (nap)
2011500: 80 a2 20 00 cmp %o0, 0
2011504: 02 80 00 05 be 2011518 <rtems_assoc_name_by_local+0x28> <== NEVER TAKEN
2011508: 01 00 00 00 nop
return nap->name;
return rtems_assoc_name_bad(local_value);
}
201150c: f0 02 00 00 ld [ %o0 ], %i0
2011510: 81 c7 e0 08 ret
2011514: 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);
2011518: 40 00 0c c5 call 201482c <rtems_assoc_name_bad> <== NOT EXECUTED
201151c: 91 e8 00 19 restore %g0, %i1, %o0 <== NOT EXECUTED
0200f49c <rtems_assoc_ptr_by_local>:
const rtems_assoc_t *rtems_assoc_ptr_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
200f49c: 9d e3 bf a0 save %sp, -96, %sp
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
200f4a0: d0 06 00 00 ld [ %i0 ], %o0
200f4a4: 80 a2 20 00 cmp %o0, 0
200f4a8: 02 80 00 0e be 200f4e0 <rtems_assoc_ptr_by_local+0x44> <== NEVER TAKEN
200f4ac: 82 10 20 00 clr %g1
200f4b0: 13 00 80 6e sethi %hi(0x201b800), %o1
200f4b4: 40 00 03 81 call 20102b8 <strcmp>
200f4b8: 92 12 61 38 or %o1, 0x138, %o1 ! 201b938 <errno_assoc+0x88>
200f4bc: 80 a2 20 00 cmp %o0, 0
200f4c0: 02 80 00 07 be 200f4dc <rtems_assoc_ptr_by_local+0x40> <== NEVER TAKEN
200f4c4: 82 10 00 18 mov %i0, %g1
default_ap = ap++;
200f4c8: 10 80 00 06 b 200f4e0 <rtems_assoc_ptr_by_local+0x44>
200f4cc: 82 10 20 00 clr %g1
for ( ; ap->name; ap++)
if (ap->local_value == local_value)
200f4d0: 80 a0 80 19 cmp %g2, %i1
200f4d4: 02 80 00 08 be 200f4f4 <rtems_assoc_ptr_by_local+0x58>
200f4d8: 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++)
200f4dc: b0 06 20 0c add %i0, 0xc, %i0
200f4e0: c4 06 00 00 ld [ %i0 ], %g2
200f4e4: 80 a0 a0 00 cmp %g2, 0
200f4e8: 32 bf ff fa bne,a 200f4d0 <rtems_assoc_ptr_by_local+0x34>
200f4ec: c4 06 20 04 ld [ %i0 + 4 ], %g2
200f4f0: b0 10 00 01 mov %g1, %i0
if (ap->local_value == local_value)
return ap;
return default_ap;
}
200f4f4: 81 c7 e0 08 ret
200f4f8: 81 e8 00 00 restore
0200ec78 <rtems_assoc_ptr_by_remote>:
const rtems_assoc_t *rtems_assoc_ptr_by_remote(
const rtems_assoc_t *ap,
uint32_t remote_value
)
{
200ec78: 9d e3 bf a0 save %sp, -96, %sp
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
200ec7c: d0 06 00 00 ld [ %i0 ], %o0
200ec80: 80 a2 20 00 cmp %o0, 0
200ec84: 02 80 00 0e be 200ecbc <rtems_assoc_ptr_by_remote+0x44> <== NEVER TAKEN
200ec88: 82 10 20 00 clr %g1
200ec8c: 13 00 80 6e sethi %hi(0x201b800), %o1
200ec90: 40 00 05 8a call 20102b8 <strcmp>
200ec94: 92 12 60 10 or %o1, 0x10, %o1 ! 201b810 <__FUNCTION__.6077+0x28>
200ec98: 80 a2 20 00 cmp %o0, 0
200ec9c: 02 80 00 07 be 200ecb8 <rtems_assoc_ptr_by_remote+0x40> <== NEVER TAKEN
200eca0: 82 10 00 18 mov %i0, %g1
default_ap = ap++;
200eca4: 10 80 00 06 b 200ecbc <rtems_assoc_ptr_by_remote+0x44>
200eca8: 82 10 20 00 clr %g1
for ( ; ap->name; ap++)
if (ap->remote_value == remote_value)
200ecac: 80 a0 80 19 cmp %g2, %i1
200ecb0: 02 80 00 08 be 200ecd0 <rtems_assoc_ptr_by_remote+0x58>
200ecb4: 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++)
200ecb8: b0 06 20 0c add %i0, 0xc, %i0
200ecbc: c4 06 00 00 ld [ %i0 ], %g2
200ecc0: 80 a0 a0 00 cmp %g2, 0
200ecc4: 32 bf ff fa bne,a 200ecac <rtems_assoc_ptr_by_remote+0x34>
200ecc8: c4 06 20 08 ld [ %i0 + 8 ], %g2
200eccc: b0 10 00 01 mov %g1, %i0
if (ap->remote_value == remote_value)
return ap;
return default_ap;
}
200ecd0: 81 c7 e0 08 ret
200ecd4: 81 e8 00 00 restore
0200f474 <rtems_assoc_remote_by_local>:
uint32_t rtems_assoc_remote_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
200f474: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
const rtems_assoc_t *nap;
nap = rtems_assoc_ptr_by_local(ap, local_value);
200f478: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
200f47c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
200f480: 40 00 00 07 call 200f49c <rtems_assoc_ptr_by_local> <== NOT EXECUTED
200f484: b0 10 20 00 clr %i0 <== NOT EXECUTED
if (nap)
200f488: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200f48c: 32 80 00 02 bne,a 200f494 <rtems_assoc_remote_by_local+0x20><== NOT EXECUTED
200f490: f0 02 20 08 ld [ %o0 + 8 ], %i0 <== NOT EXECUTED
return nap->remote_value;
return 0;
}
200f494: 81 c7 e0 08 ret <== NOT EXECUTED
200f498: 81 e8 00 00 restore <== NOT EXECUTED
0200bb58 <rtems_bdbuf_add_to_modified_list_after_access>:
}
}
static void
rtems_bdbuf_add_to_modified_list_after_access (rtems_bdbuf_buffer *bd)
{
200bb58: 9d e3 bf a0 save %sp, -96, %sp
if (bdbuf_cache.sync_active && bdbuf_cache.sync_device == bd->dev)
200bb5c: 21 00 80 81 sethi %hi(0x2020400), %l0
200bb60: a0 14 21 f0 or %l0, 0x1f0, %l0 ! 20205f0 <bdbuf_cache>
200bb64: c2 0c 20 30 ldub [ %l0 + 0x30 ], %g1
200bb68: 80 a0 60 00 cmp %g1, 0
200bb6c: 02 80 00 15 be 200bbc0 <rtems_bdbuf_add_to_modified_list_after_access+0x68><== ALWAYS TAKEN
200bb70: 01 00 00 00 nop
200bb74: c4 1c 20 38 ldd [ %l0 + 0x38 ], %g2 <== NOT EXECUTED
200bb78: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 <== NOT EXECUTED
200bb7c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
200bb80: 12 80 00 10 bne 200bbc0 <rtems_bdbuf_add_to_modified_list_after_access+0x68><== NOT EXECUTED
200bb84: 01 00 00 00 nop <== NOT EXECUTED
200bb88: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
200bb8c: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
200bb90: 12 80 00 0c bne 200bbc0 <rtems_bdbuf_add_to_modified_list_after_access+0x68><== NOT EXECUTED
200bb94: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_bdbuf_unlock_cache ();
200bb98: 7f ff ff 86 call 200b9b0 <rtems_bdbuf_unlock_cache> <== NOT EXECUTED
200bb9c: 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);
200bba0: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
200bba4: 13 10 80 00 sethi %hi(0x42000000), %o1 <== NOT EXECUTED
200bba8: 7f ff fe eb call 200b754 <rtems_bdbuf_lock> <== NOT EXECUTED
200bbac: 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 ();
200bbb0: 7f ff ff 8b call 200b9dc <rtems_bdbuf_unlock_sync> <== NOT EXECUTED
200bbb4: 01 00 00 00 nop <== NOT EXECUTED
rtems_bdbuf_lock_cache ();
200bbb8: 7f ff fe f3 call 200b784 <rtems_bdbuf_lock_cache> <== NOT EXECUTED
200bbbc: 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)
200bbc0: 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
200bbc4: 80 a0 60 03 cmp %g1, 3
200bbc8: 02 80 00 07 be 200bbe4 <rtems_bdbuf_add_to_modified_list_after_access+0x8c>
200bbcc: 03 00 80 7a sethi %hi(0x201e800), %g1
|| bd->state == RTEMS_BDBUF_STATE_ACCESS_EMPTY)
200bbd0: 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
200bbd4: 80 a0 60 05 cmp %g1, 5
200bbd8: 12 80 00 06 bne 200bbf0 <rtems_bdbuf_add_to_modified_list_after_access+0x98>
200bbdc: 82 10 20 07 mov 7, %g1
|| bd->state == RTEMS_BDBUF_STATE_ACCESS_EMPTY)
bd->hold_timer = bdbuf_config.swap_block_hold;
200bbe0: 03 00 80 7a sethi %hi(0x201e800), %g1
200bbe4: c2 00 60 3c ld [ %g1 + 0x3c ], %g1 ! 201e83c <rtems_bdbuf_configuration+0x10>
200bbe8: 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;
200bbec: 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 );
200bbf0: 11 00 80 81 sethi %hi(0x2020400), %o0
200bbf4: c2 26 20 28 st %g1, [ %i0 + 0x28 ]
200bbf8: 90 12 22 40 or %o0, 0x240, %o0
200bbfc: 7f ff f1 7e call 20081f4 <_Chain_Append>
200bc00: 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)
200bc04: c2 06 20 2c ld [ %i0 + 0x2c ], %g1
200bc08: 80 a0 60 00 cmp %g1, 0
200bc0c: 02 80 00 05 be 200bc20 <rtems_bdbuf_add_to_modified_list_after_access+0xc8>
200bc10: 03 00 80 81 sethi %hi(0x2020400), %g1
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
200bc14: 31 00 80 81 sethi %hi(0x2020400), %i0
200bc18: 7f ff fe e3 call 200b7a4 <rtems_bdbuf_wake>
200bc1c: 91 ee 22 58 restore %i0, 0x258, %o0
}
static bool
rtems_bdbuf_has_buffer_waiters (void)
{
return bdbuf_cache.buffer_waiters.count;
200bc20: c2 00 62 68 ld [ %g1 + 0x268 ], %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 ())
200bc24: 80 a0 60 00 cmp %g1, 0
200bc28: 02 80 00 04 be 200bc38 <rtems_bdbuf_add_to_modified_list_after_access+0xe0>
200bc2c: 01 00 00 00 nop
rtems_bdbuf_wake_swapper ();
200bc30: 7f ff ff be call 200bb28 <rtems_bdbuf_wake_swapper>
200bc34: 81 e8 00 00 restore
200bc38: 81 c7 e0 08 ret
200bc3c: 81 e8 00 00 restore
0200bdb4 <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)
{
200bdb4: 9d e3 bf a0 save %sp, -96, %sp
rtems_mode prev_mode;
/*
* Indicate we are waiting.
*/
++waiters->count;
200bdb8: c2 06 00 00 ld [ %i0 ], %g1
200bdbc: 82 00 60 01 inc %g1
200bdc0: 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 ();
200bdc4: 7f ff ff e0 call 200bd44 <rtems_bdbuf_disable_preemption>
200bdc8: 01 00 00 00 nop
/*
* Unlock the cache, wait, and lock the cache when we return.
*/
rtems_bdbuf_unlock_cache ();
200bdcc: 7f ff fe f9 call 200b9b0 <rtems_bdbuf_unlock_cache>
200bdd0: a0 10 00 08 mov %o0, %l0
sc = rtems_semaphore_obtain (waiters->sema, RTEMS_WAIT, RTEMS_BDBUF_WAIT_TIMEOUT);
200bdd4: d0 06 20 04 ld [ %i0 + 4 ], %o0
200bdd8: 92 10 20 00 clr %o1
200bddc: 7f ff ee 49 call 2007700 <rtems_semaphore_obtain>
200bde0: 94 10 20 00 clr %o2
if (sc == RTEMS_TIMEOUT)
200bde4: 80 a2 20 06 cmp %o0, 6
200bde8: 12 80 00 05 bne 200bdfc <rtems_bdbuf_anonymous_wait+0x48> <== ALWAYS TAKEN
200bdec: 80 a2 20 0d cmp %o0, 0xd
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAIT_TO);
200bdf0: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200bdf4: 10 80 00 05 b 200be08 <rtems_bdbuf_anonymous_wait+0x54> <== NOT EXECUTED
200bdf8: 90 12 20 12 or %o0, 0x12, %o0 ! 42000012 <RAM_END+0x3fc00012><== NOT EXECUTED
if (sc != RTEMS_UNSATISFIED)
200bdfc: 02 80 00 05 be 200be10 <rtems_bdbuf_anonymous_wait+0x5c> <== ALWAYS TAKEN
200be00: 11 10 80 00 sethi %hi(0x42000000), %o0
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAIT_2);
200be04: 90 12 20 10 or %o0, 0x10, %o0 ! 42000010 <RAM_END+0x3fc00010><== NOT EXECUTED
200be08: 7f ff ef bf call 2007d04 <rtems_fatal_error_occurred> <== NOT EXECUTED
200be0c: 01 00 00 00 nop <== NOT EXECUTED
rtems_bdbuf_lock_cache ();
200be10: 7f ff fe 5d call 200b784 <rtems_bdbuf_lock_cache>
200be14: 01 00 00 00 nop
rtems_bdbuf_restore_preemption (prev_mode);
200be18: 7f ff ff d9 call 200bd7c <rtems_bdbuf_restore_preemption>
200be1c: 90 10 00 10 mov %l0, %o0
--waiters->count;
200be20: c2 06 00 00 ld [ %i0 ], %g1
200be24: 82 00 7f ff add %g1, -1, %g1
200be28: c2 26 00 00 st %g1, [ %i0 ]
}
200be2c: 81 c7 e0 08 ret
200be30: 81 e8 00 00 restore
0200bd44 <rtems_bdbuf_disable_preemption>:
--bd->group->users;
}
static rtems_mode
rtems_bdbuf_disable_preemption (void)
{
200bd44: 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);
200bd48: 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;
200bd4c: c0 27 bf fc clr [ %fp + -4 ]
sc = rtems_task_mode (RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &prev_mode);
200bd50: 92 10 21 00 mov 0x100, %o1
200bd54: 40 00 12 a5 call 20107e8 <rtems_task_mode>
200bd58: 94 07 bf fc add %fp, -4, %o2
if (sc != RTEMS_SUCCESSFUL)
200bd5c: 80 a2 20 00 cmp %o0, 0
200bd60: 22 80 00 05 be,a 200bd74 <rtems_bdbuf_disable_preemption+0x30><== ALWAYS TAKEN
200bd64: f0 07 bf fc ld [ %fp + -4 ], %i0
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_PREEMPT_DIS);
200bd68: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200bd6c: 7f ff ef e6 call 2007d04 <rtems_fatal_error_occurred> <== NOT EXECUTED
200bd70: 90 12 20 0f or %o0, 0xf, %o0 ! 4200000f <RAM_END+0x3fc0000f><== NOT EXECUTED
return prev_mode;
}
200bd74: 81 c7 e0 08 ret
200bd78: 81 e8 00 00 restore
0200d980 <rtems_bdbuf_get>:
rtems_status_code
rtems_bdbuf_get (dev_t dev,
rtems_blkdev_bnum block,
rtems_bdbuf_buffer **bd_ptr)
{
200d980: 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);
200d984: 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;
200d988: c0 27 bf fc clr [ %fp + -4 ]
rtems_bdbuf_buffer *bd = NULL;
rtems_blkdev_bnum media_block = 0;
200d98c: c0 27 bf f8 clr [ %fp + -8 ]
size_t bds_per_group = 0;
200d990: c0 27 bf f4 clr [ %fp + -12 ]
sc = rtems_bdbuf_obtain_disk (dev, block, &dd, &media_block, &bds_per_group);
200d994: 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)
{
200d998: 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);
200d99c: 96 07 bf fc add %fp, -4, %o3
200d9a0: 92 10 00 19 mov %i1, %o1
200d9a4: 98 07 bf f8 add %fp, -8, %o4
200d9a8: 7f ff f8 18 call 200ba08 <rtems_bdbuf_obtain_disk>
200d9ac: 9a 07 bf f4 add %fp, -12, %o5
if (sc != RTEMS_SUCCESSFUL)
200d9b0: b0 92 20 00 orcc %o0, 0, %i0
200d9b4: 12 80 00 24 bne 200da44 <rtems_bdbuf_get+0xc4> <== NEVER TAKEN
200d9b8: 01 00 00 00 nop
return sc;
rtems_bdbuf_lock_cache ();
200d9bc: 7f ff f7 72 call 200b784 <rtems_bdbuf_lock_cache>
200d9c0: 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);
200d9c4: d4 07 bf f8 ld [ %fp + -8 ], %o2
200d9c8: d6 07 bf f4 ld [ %fp + -12 ], %o3
200d9cc: 90 10 00 10 mov %l0, %o0
200d9d0: 7f ff ff 50 call 200d710 <rtems_bdbuf_get_buffer_for_access>
200d9d4: 92 10 00 19 mov %i1, %o1
switch (bd->state)
200d9d8: c2 02 20 28 ld [ %o0 + 0x28 ], %g1
200d9dc: 80 a0 60 02 cmp %g1, 2
200d9e0: 02 80 00 08 be 200da00 <rtems_bdbuf_get+0x80>
200d9e4: a0 10 00 08 mov %o0, %l0
200d9e8: 80 a0 60 07 cmp %g1, 7
200d9ec: 02 80 00 07 be 200da08 <rtems_bdbuf_get+0x88>
200d9f0: 80 a0 60 01 cmp %g1, 1
200d9f4: 12 80 00 0e bne 200da2c <rtems_bdbuf_get+0xac> <== NEVER TAKEN
200d9f8: 82 10 20 05 mov 5, %g1
200d9fc: 30 80 00 04 b,a 200da0c <rtems_bdbuf_get+0x8c>
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200da00: 10 80 00 03 b 200da0c <rtems_bdbuf_get+0x8c>
200da04: 82 10 20 03 mov 3, %g1
200da08: 82 10 20 04 mov 4, %g1
200da0c: c2 24 20 28 st %g1, [ %l0 + 0x28 ]
{
rtems_bdbuf_show_users ("get", bd);
rtems_bdbuf_show_usage ();
}
rtems_bdbuf_unlock_cache ();
200da10: 7f ff f7 e8 call 200b9b0 <rtems_bdbuf_unlock_cache>
200da14: 01 00 00 00 nop
rtems_bdbuf_release_disk (dd);
200da18: 7f ff f8 3a call 200bb00 <rtems_bdbuf_release_disk>
200da1c: d0 07 bf fc ld [ %fp + -4 ], %o0
200da20: e0 26 c0 00 st %l0, [ %i3 ]
200da24: 81 c7 e0 08 ret
200da28: 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);
200da2c: 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);
200da30: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200da34: 82 10 60 1e or %g1, 0x1e, %g1 ! 4200001e <RAM_END+0x3fc0001e><== NOT EXECUTED
200da38: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200da3c: 7f ff e8 b2 call 2007d04 <rtems_fatal_error_occurred> <== NOT EXECUTED
200da40: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
rtems_bdbuf_release_disk (dd);
*bd_ptr = bd;
return RTEMS_SUCCESSFUL;
}
200da44: 81 c7 e0 08 ret <== NOT EXECUTED
200da48: 81 e8 00 00 restore <== NOT EXECUTED
0200d710 <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)
{
200d710: 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;
200d714: 23 00 80 81 sethi %hi(0x2020400), %l1
static bool
rtems_bdbuf_wait_for_recycle (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
200d718: 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;
200d71c: a2 14 61 f0 or %l1, 0x1f0, %l1
static rtems_bdbuf_buffer *
rtems_bdbuf_get_buffer_for_access (dev_t dev,
rtems_blkdev_bnum block,
size_t bds_per_group)
{
200d720: a0 10 00 18 mov %i0, %l0
static bool
rtems_bdbuf_wait_for_recycle (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
200d724: b8 17 22 f0 or %i4, 0x2f0, %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);
200d728: 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);
200d72c: 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;
200d730: ac 10 20 08 mov 8, %l6
200d734: 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);
200d738: 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);
200d73c: 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;
200d740: 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;
200d744: 10 80 00 11 b 200d788 <rtems_bdbuf_get_buffer_for_access+0x78>
200d748: 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)))
200d74c: 80 a4 00 01 cmp %l0, %g1
200d750: 38 80 00 0e bgu,a 200d788 <rtems_bdbuf_get_buffer_for_access+0x78>
200d754: f0 06 20 0c ld [ %i0 + 0xc ], %i0
200d758: 80 a4 00 01 cmp %l0, %g1
200d75c: 12 80 00 0a bne 200d784 <rtems_bdbuf_get_buffer_for_access+0x74><== ALWAYS TAKEN
200d760: 80 a6 40 02 cmp %i1, %g2
200d764: 38 80 00 09 bgu,a 200d788 <rtems_bdbuf_get_buffer_for_access+0x78><== NOT EXECUTED
200d768: f0 06 20 0c ld [ %i0 + 0xc ], %i0 <== NOT EXECUTED
{
p = p->avl.right;
}
else
{
p = p->avl.left;
200d76c: 10 80 00 07 b 200d788 <rtems_bdbuf_get_buffer_for_access+0x78><== NOT EXECUTED
200d770: 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)))
200d774: 3a 80 00 05 bcc,a 200d788 <rtems_bdbuf_get_buffer_for_access+0x78>
200d778: f0 06 20 08 ld [ %i0 + 8 ], %i0
{
p = p->avl.right;
200d77c: 10 80 00 03 b 200d788 <rtems_bdbuf_get_buffer_for_access+0x78>
200d780: f0 06 20 0c ld [ %i0 + 0xc ], %i0
}
else
{
p = p->avl.left;
200d784: 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)))
200d788: 80 a6 20 00 cmp %i0, 0
200d78c: 02 80 00 0f be 200d7c8 <rtems_bdbuf_get_buffer_for_access+0xb8>
200d790: 90 10 00 10 mov %l0, %o0
200d794: c2 06 20 18 ld [ %i0 + 0x18 ], %g1
200d798: 80 a0 40 10 cmp %g1, %l0
200d79c: 12 bf ff ec bne 200d74c <rtems_bdbuf_get_buffer_for_access+0x3c>
200d7a0: c4 06 20 1c ld [ %i0 + 0x1c ], %g2
200d7a4: 80 a0 80 19 cmp %g2, %i1
200d7a8: 12 bf ff ea bne 200d750 <rtems_bdbuf_get_buffer_for_access+0x40><== NEVER TAKEN
200d7ac: 80 a4 00 01 cmp %l0, %g1
200d7b0: c2 06 20 20 ld [ %i0 + 0x20 ], %g1
200d7b4: 80 a0 40 1a cmp %g1, %i2
200d7b8: 12 bf ff ef bne 200d774 <rtems_bdbuf_get_buffer_for_access+0x64>
200d7bc: 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)
200d7c0: 10 80 00 6b b 200d96c <rtems_bdbuf_get_buffer_for_access+0x25c>
200d7c4: c2 06 20 30 ld [ %i0 + 0x30 ], %g1
bd = NULL;
}
}
else
{
bd = rtems_bdbuf_get_buffer_from_lru_list (dev, block, bds_per_group);
200d7c8: 92 10 00 19 mov %i1, %o1
200d7cc: 94 10 00 1a mov %i2, %o2
200d7d0: 7f ff fe d9 call 200d334 <rtems_bdbuf_get_buffer_from_lru_list>
200d7d4: 96 10 00 1b mov %i3, %o3
if (bd == NULL)
200d7d8: b0 92 20 00 orcc %o0, 0, %i0
200d7dc: 32 80 00 3c bne,a 200d8cc <rtems_bdbuf_get_buffer_for_access+0x1bc>
200d7e0: 25 00 80 2d sethi %hi(0x200b400), %l2
200d7e4: 10 80 00 31 b 200d8a8 <rtems_bdbuf_get_buffer_for_access+0x198>
200d7e8: c2 04 60 50 ld [ %l1 + 0x50 ], %g1
static bool
rtems_bdbuf_wait_for_recycle (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
200d7ec: c2 06 20 28 ld [ %i0 + 0x28 ], %g1
200d7f0: 80 a0 60 0a cmp %g1, 0xa
200d7f4: 18 80 00 1d bgu 200d868 <rtems_bdbuf_get_buffer_for_access+0x158><== NEVER TAKEN
200d7f8: 01 00 00 00 nop
200d7fc: 83 28 60 02 sll %g1, 2, %g1
200d800: c2 07 00 01 ld [ %i4 + %g1 ], %g1
200d804: 81 c0 40 00 jmp %g1
200d808: 01 00 00 00 nop
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
200d80c: 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;
200d810: ec 26 20 28 st %l6, [ %i0 + 0x28 ] <== NOT EXECUTED
200d814: 7f ff ea 84 call 2008224 <_Chain_Extract> <== NOT EXECUTED
200d818: 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 );
200d81c: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
200d820: 7f ff ea 75 call 20081f4 <_Chain_Append> <== NOT EXECUTED
200d824: 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 ();
200d828: 7f ff f8 c0 call 200bb28 <rtems_bdbuf_wake_swapper> <== NOT EXECUTED
200d82c: 01 00 00 00 nop <== NOT EXECUTED
200d830: 30 bf ff ef b,a 200d7ec <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)
200d834: c2 06 20 2c ld [ %i0 + 0x2c ], %g1
200d838: 80 a0 60 00 cmp %g1, 0
200d83c: 02 80 00 10 be 200d87c <rtems_bdbuf_get_buffer_for_access+0x16c><== NEVER TAKEN
200d840: 01 00 00 00 nop
200d844: 30 80 00 1e b,a 200d8bc <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);
200d848: 90 10 00 18 mov %i0, %o0
200d84c: 10 80 00 04 b 200d85c <rtems_bdbuf_get_buffer_for_access+0x14c>
200d850: 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);
200d854: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
200d858: 92 10 00 1d mov %i5, %o1 <== NOT EXECUTED
200d85c: 7f ff f9 76 call 200be34 <rtems_bdbuf_wait>
200d860: 01 00 00 00 nop
200d864: 30 bf ff e2 b,a 200d7ec <rtems_bdbuf_get_buffer_for_access+0xdc>
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_8);
200d868: 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);
200d86c: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200d870: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200d874: 10 80 00 36 b 200d94c <rtems_bdbuf_get_buffer_for_access+0x23c><== NOT EXECUTED
200d878: 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);
200d87c: 7f ff fb 83 call 200c688 <rtems_bdbuf_remove_from_tree_and_lru_list><== NOT EXECUTED
200d880: 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);
200d884: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
200d888: 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;
200d88c: c0 26 20 28 clr [ %i0 + 0x28 ] <== NOT EXECUTED
200d890: 40 00 0c f8 call 2010c70 <_Chain_Insert> <== NOT EXECUTED
200d894: 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);
200d898: 7f ff f7 c3 call 200b7a4 <rtems_bdbuf_wake> <== NOT EXECUTED
200d89c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
200d8a0: 10 bf ff ba b 200d788 <rtems_bdbuf_get_buffer_for_access+0x78><== NOT EXECUTED
200d8a4: 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;
200d8a8: 80 a0 40 13 cmp %g1, %l3
200d8ac: 02 80 00 04 be 200d8bc <rtems_bdbuf_get_buffer_for_access+0x1ac>
200d8b0: 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 ();
200d8b4: 7f ff f8 9d call 200bb28 <rtems_bdbuf_wake_swapper>
200d8b8: 01 00 00 00 nop
rtems_bdbuf_anonymous_wait (&bdbuf_cache.buffer_waiters);
200d8bc: 7f ff f9 3e call 200bdb4 <rtems_bdbuf_anonymous_wait>
200d8c0: 90 10 00 12 mov %l2, %o0
200d8c4: 10 bf ff b1 b 200d788 <rtems_bdbuf_get_buffer_for_access+0x78>
200d8c8: 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);
200d8cc: 21 00 80 81 sethi %hi(0x2020400), %l0
static void
rtems_bdbuf_wait_for_access (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
200d8d0: a4 14 a2 c8 or %l2, 0x2c8, %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);
200d8d4: a0 14 22 60 or %l0, 0x260, %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);
200d8d8: a2 04 3f f8 add %l0, -8, %l1
static void
rtems_bdbuf_wait_for_access (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
200d8dc: c2 06 20 28 ld [ %i0 + 0x28 ], %g1
200d8e0: 82 00 7f ff add %g1, -1, %g1
200d8e4: 80 a0 60 09 cmp %g1, 9
200d8e8: 18 80 00 15 bgu 200d93c <rtems_bdbuf_get_buffer_for_access+0x22c><== NEVER TAKEN
200d8ec: 83 28 60 02 sll %g1, 2, %g1
200d8f0: c2 04 80 01 ld [ %l2 + %g1 ], %g1
200d8f4: 81 c0 40 00 jmp %g1
200d8f8: 01 00 00 00 nop
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
200d8fc: c2 06 20 30 ld [ %i0 + 0x30 ], %g1
200d900: c4 00 60 0c ld [ %g1 + 0xc ], %g2
200d904: 84 00 bf ff add %g2, -1, %g2
200d908: c4 20 60 0c st %g2, [ %g1 + 0xc ]
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
200d90c: 7f ff ea 46 call 2008224 <_Chain_Extract>
200d910: 90 10 00 18 mov %i0, %o0
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
200d914: 10 80 00 11 b 200d958 <rtems_bdbuf_get_buffer_for_access+0x248>
200d918: 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);
200d91c: 90 10 00 18 mov %i0, %o0
200d920: 10 80 00 04 b 200d930 <rtems_bdbuf_get_buffer_for_access+0x220>
200d924: 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);
200d928: 90 10 00 18 mov %i0, %o0
200d92c: 92 10 00 10 mov %l0, %o1
200d930: 7f ff f9 41 call 200be34 <rtems_bdbuf_wait>
200d934: 01 00 00 00 nop
200d938: 30 bf ff e9 b,a 200d8dc <rtems_bdbuf_get_buffer_for_access+0x1cc>
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_7);
200d93c: 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);
200d940: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200d944: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200d948: 82 10 60 05 or %g1, 5, %g1 <== NOT EXECUTED
200d94c: 7f ff e8 ee call 2007d04 <rtems_fatal_error_occurred> <== NOT EXECUTED
200d950: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
200d954: c2 06 20 30 ld [ %i0 + 0x30 ], %g1
200d958: c4 00 60 0c ld [ %g1 + 0xc ], %g2
200d95c: 84 00 a0 01 inc %g2
200d960: c4 20 60 0c st %g2, [ %g1 + 0xc ]
rtems_bdbuf_wait_for_access (bd);
rtems_bdbuf_group_obtain (bd);
return bd;
}
200d964: 81 c7 e0 08 ret
200d968: 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)
200d96c: c2 00 60 08 ld [ %g1 + 8 ], %g1
200d970: 80 a0 40 1b cmp %g1, %i3
200d974: 22 bf ff d6 be,a 200d8cc <rtems_bdbuf_get_buffer_for_access+0x1bc>
200d978: 25 00 80 2d sethi %hi(0x200b400), %l2
200d97c: 30 bf ff 9c b,a 200d7ec <rtems_bdbuf_get_buffer_for_access+0xdc>
0200d334 <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)
{
200d334: 9d e3 bf 20 save %sp, -224, %sp
200d338: a0 10 00 18 mov %i0, %l0
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
200d33c: 31 00 80 81 sethi %hi(0x2020400), %i0
200d340: b0 16 21 f0 or %i0, 0x1f0, %i0 ! 20205f0 <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)
200d344: a6 10 00 18 mov %i0, %l3
200d348: 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;
200d34c: 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;
200d350: 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);
200d354: 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))
200d358: 10 80 00 e5 b 200d6ec <rtems_bdbuf_get_buffer_from_lru_list+0x3b8>
200d35c: 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)
200d360: c2 04 a0 2c ld [ %l2 + 0x2c ], %g1
200d364: 80 a0 60 00 cmp %g1, 0
200d368: 32 80 00 e1 bne,a 200d6ec <rtems_bdbuf_get_buffer_from_lru_list+0x3b8>
200d36c: e4 04 80 00 ld [ %l2 ], %l2
{
if (bd->group->bds_per_group == bds_per_group)
200d370: e2 04 a0 30 ld [ %l2 + 0x30 ], %l1
200d374: d2 04 60 08 ld [ %l1 + 8 ], %o1
200d378: 80 a2 40 1b cmp %o1, %i3
200d37c: 32 80 00 06 bne,a 200d394 <rtems_bdbuf_get_buffer_from_lru_list+0x60>
200d380: c2 04 60 0c ld [ %l1 + 0xc ], %g1
{
rtems_bdbuf_remove_from_tree_and_lru_list (bd);
200d384: 7f ff fc c1 call 200c688 <rtems_bdbuf_remove_from_tree_and_lru_list>
200d388: 90 10 00 12 mov %l2, %o0
200d38c: 10 80 00 2a b 200d434 <rtems_bdbuf_get_buffer_from_lru_list+0x100>
200d390: 86 10 00 12 mov %l2, %g3
empty_bd = bd;
}
else if (bd->group->users == 0)
200d394: 80 a0 60 00 cmp %g1, 0
200d398: 32 80 00 d5 bne,a 200d6ec <rtems_bdbuf_get_buffer_from_lru_list+0x3b8>
200d39c: 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)
200d3a0: d0 04 e0 20 ld [ %l3 + 0x20 ], %o0
200d3a4: 40 00 3d 44 call 201c8b4 <.udiv>
200d3a8: e8 04 60 10 ld [ %l1 + 0x10 ], %l4
200d3ac: aa 10 20 00 clr %l5
200d3b0: 10 80 00 05 b 200d3c4 <rtems_bdbuf_get_buffer_from_lru_list+0x90>
200d3b4: ad 2a 20 06 sll %o0, 6, %l6
200d3b8: aa 05 60 01 inc %l5
rtems_bdbuf_remove_from_tree_and_lru_list (bd);
200d3bc: 7f ff fc b3 call 200c688 <rtems_bdbuf_remove_from_tree_and_lru_list>
200d3c0: 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;
200d3c4: c2 04 60 08 ld [ %l1 + 8 ], %g1
200d3c8: 80 a5 40 01 cmp %l5, %g1
200d3cc: 2a bf ff fb bcs,a 200d3b8 <rtems_bdbuf_get_buffer_from_lru_list+0x84>
200d3d0: 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;
200d3d4: 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;
200d3d8: d0 07 20 20 ld [ %i4 + 0x20 ], %o0
200d3dc: 40 00 3d 36 call 201c8b4 <.udiv>
200d3e0: 92 10 00 1b mov %i3, %o1
200d3e4: ea 04 60 10 ld [ %l1 + 0x10 ], %l5
200d3e8: ad 2a 20 06 sll %o0, 6, %l6
200d3ec: a8 10 20 01 mov 1, %l4
200d3f0: 10 80 00 08 b 200d410 <rtems_bdbuf_get_buffer_from_lru_list+0xdc>
200d3f4: 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;
200d3f8: c0 25 60 28 clr [ %l5 + 0x28 ]
200d3fc: 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)
200d400: a8 05 20 01 inc %l4
200d404: aa 05 40 16 add %l5, %l6, %l5
200d408: 40 00 0e 1a call 2010c70 <_Chain_Insert>
200d40c: 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;
200d410: c2 04 60 08 ld [ %l1 + 8 ], %g1
200d414: 80 a5 00 01 cmp %l4, %g1
200d418: 0a bf ff f8 bcs 200d3f8 <rtems_bdbuf_get_buffer_from_lru_list+0xc4>
200d41c: 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)
200d420: 28 80 00 05 bleu,a 200d434 <rtems_bdbuf_get_buffer_from_lru_list+0x100>
200d424: c6 04 60 10 ld [ %l1 + 0x10 ], %g3
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
200d428: 7f ff f8 df call 200b7a4 <rtems_bdbuf_wake>
200d42c: 90 10 00 17 mov %l7, %o0
return group->bdbuf;
200d430: 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)
200d434: 80 a0 e0 00 cmp %g3, 0
200d438: 22 80 00 ad be,a 200d6ec <rtems_bdbuf_get_buffer_from_lru_list+0x3b8><== NEVER TAKEN
200d43c: 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;
200d440: c0 20 e0 08 clr [ %g3 + 8 ]
bd->avl.right = NULL;
200d444: 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;
200d448: 05 00 80 81 sethi %hi(0x2020400), %g2
200d44c: 84 10 a1 f0 or %g2, 0x1f0, %g2 ! 20205f0 <bdbuf_cache>
200d450: 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;
200d454: e0 20 e0 18 st %l0, [ %g3 + 0x18 ]
200d458: f2 20 e0 1c st %i1, [ %g3 + 0x1c ]
bd->block = block;
200d45c: f4 20 e0 20 st %i2, [ %g3 + 0x20 ]
bd->avl.left = NULL;
bd->avl.right = NULL;
bd->waiters = 0;
200d460: 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)
200d464: 80 a0 60 00 cmp %g1, 0
200d468: 22 80 00 06 be,a 200d480 <rtems_bdbuf_get_buffer_from_lru_list+0x14c>
200d46c: c6 20 a0 40 st %g3, [ %g2 + 0x40 ]
200d470: 9a 07 bf 80 add %fp, -128, %o5
break;
}
}
else if ((p->dev != dev) || (p->block != block))
{
p->avl.cache = -1;
200d474: 96 10 3f ff mov -1, %o3
{
*buf_prev++ = p;
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
{
p->avl.cache = 1;
200d478: 10 80 00 1e b 200d4f0 <rtems_bdbuf_get_buffer_from_lru_list+0x1bc>
200d47c: 98 10 20 01 mov 1, %o4
bool modified = false;
if (p == NULL)
{
*root = node;
node->avl.left = NULL;
200d480: c0 20 e0 08 clr [ %g3 + 8 ]
node->avl.right = NULL;
200d484: c0 20 e0 0c clr [ %g3 + 0xc ]
node->avl.bal = 0;
200d488: 10 80 00 95 b 200d6dc <rtems_bdbuf_get_buffer_from_lru_list+0x3a8>
200d48c: c0 28 e0 11 clrb [ %g3 + 0x11 ]
while (p != NULL)
{
*buf_prev++ = p;
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200d490: 32 80 00 12 bne,a 200d4d8 <rtems_bdbuf_get_buffer_from_lru_list+0x1a4><== NEVER TAKEN
200d494: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED
200d498: 80 a1 00 19 cmp %g4, %i1
200d49c: 32 80 00 0f bne,a 200d4d8 <rtems_bdbuf_get_buffer_from_lru_list+0x1a4><== NEVER TAKEN
200d4a0: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED
200d4a4: c4 00 60 20 ld [ %g1 + 0x20 ], %g2
200d4a8: 80 a0 80 1a cmp %g2, %i2
200d4ac: 1a 80 00 08 bcc 200d4cc <rtems_bdbuf_get_buffer_from_lru_list+0x198>
200d4b0: 01 00 00 00 nop
{
p->avl.cache = 1;
q = p->avl.right;
200d4b4: c4 00 60 0c ld [ %g1 + 0xc ], %g2
if (q == NULL)
200d4b8: 80 a0 a0 00 cmp %g2, 0
200d4bc: 12 80 00 0c bne 200d4ec <rtems_bdbuf_get_buffer_from_lru_list+0x1b8>
200d4c0: d8 28 60 10 stb %o4, [ %g1 + 0x10 ]
{
q = node;
p->avl.right = q = node;
200d4c4: 10 80 00 19 b 200d528 <rtems_bdbuf_get_buffer_from_lru_list+0x1f4>
200d4c8: c6 20 60 0c st %g3, [ %g1 + 0xc ]
break;
}
}
else if ((p->dev != dev) || (p->block != block))
200d4cc: 02 80 00 8e be 200d704 <rtems_bdbuf_get_buffer_from_lru_list+0x3d0><== NEVER TAKEN
200d4d0: 11 10 80 00 sethi %hi(0x42000000), %o0
{
p->avl.cache = -1;
q = p->avl.left;
200d4d4: c4 00 60 08 ld [ %g1 + 8 ], %g2
if (q == NULL)
200d4d8: 80 a0 a0 00 cmp %g2, 0
200d4dc: 12 80 00 04 bne 200d4ec <rtems_bdbuf_get_buffer_from_lru_list+0x1b8>
200d4e0: d6 28 60 10 stb %o3, [ %g1 + 0x10 ]
{
q = node;
p->avl.left = q;
200d4e4: 10 80 00 11 b 200d528 <rtems_bdbuf_get_buffer_from_lru_list+0x1f4>
200d4e8: c6 20 60 08 st %g3, [ %g1 + 8 ]
200d4ec: 82 10 00 02 mov %g2, %g1
while (p != NULL)
{
*buf_prev++ = p;
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200d4f0: c4 00 60 18 ld [ %g1 + 0x18 ], %g2
return 0;
}
while (p != NULL)
{
*buf_prev++ = p;
200d4f4: c2 23 40 00 st %g1, [ %o5 ]
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200d4f8: 80 a4 00 02 cmp %l0, %g2
return 0;
}
while (p != NULL)
{
*buf_prev++ = p;
200d4fc: 9a 03 60 04 add %o5, 4, %o5
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200d500: 18 bf ff ed bgu 200d4b4 <rtems_bdbuf_get_buffer_from_lru_list+0x180><== NEVER TAKEN
200d504: c8 00 60 1c ld [ %g1 + 0x1c ], %g4
200d508: 80 a4 00 02 cmp %l0, %g2
200d50c: 12 bf ff e1 bne 200d490 <rtems_bdbuf_get_buffer_from_lru_list+0x15c><== NEVER TAKEN
200d510: 80 a0 80 10 cmp %g2, %l0
200d514: 80 a6 40 04 cmp %i1, %g4
200d518: 38 bf ff e8 bgu,a 200d4b8 <rtems_bdbuf_get_buffer_from_lru_list+0x184><== NEVER TAKEN
200d51c: c4 00 60 0c ld [ %g1 + 0xc ], %g2 <== NOT EXECUTED
200d520: 10 bf ff dc b 200d490 <rtems_bdbuf_get_buffer_from_lru_list+0x15c>
200d524: 80 a0 80 10 cmp %g2, %l0
}
p = q;
}
q->avl.left = q->avl.right = NULL;
200d528: c0 20 e0 0c clr [ %g3 + 0xc ]
200d52c: c0 20 e0 08 clr [ %g3 + 8 ]
q->avl.bal = 0;
200d530: c0 28 e0 11 clrb [ %g3 + 0x11 ]
modified = true;
buf_prev--;
200d534: 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;
200d538: 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;
200d53c: 96 10 3f ff mov -1, %o3
default:
break;
}
}
q = p;
if (buf_prev > buf_stack)
200d540: 94 07 bf 80 add %fp, -128, %o2
modified = true;
buf_prev--;
while (modified)
{
if (p->avl.cache == -1)
200d544: c8 48 60 10 ldsb [ %g1 + 0x10 ], %g4
200d548: 80 a1 3f ff cmp %g4, -1
200d54c: 12 80 00 27 bne 200d5e8 <rtems_bdbuf_get_buffer_from_lru_list+0x2b4>
200d550: c4 08 60 11 ldub [ %g1 + 0x11 ], %g2
{
switch (p->avl.bal)
200d554: 85 28 a0 18 sll %g2, 0x18, %g2
200d558: 85 38 a0 18 sra %g2, 0x18, %g2
200d55c: 80 a0 a0 00 cmp %g2, 0
200d560: 22 80 00 4d be,a 200d694 <rtems_bdbuf_get_buffer_from_lru_list+0x360>
200d564: c8 28 60 11 stb %g4, [ %g1 + 0x11 ]
200d568: 80 a0 a0 01 cmp %g2, 1
200d56c: 02 80 00 29 be 200d610 <rtems_bdbuf_get_buffer_from_lru_list+0x2dc><== NEVER TAKEN
200d570: 80 a0 bf ff cmp %g2, -1
200d574: 32 80 00 49 bne,a 200d698 <rtems_bdbuf_get_buffer_from_lru_list+0x364><== NEVER TAKEN
200d578: 84 10 00 01 mov %g1, %g2 <== NOT EXECUTED
200d57c: 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 */
200d580: d2 48 a0 11 ldsb [ %g2 + 0x11 ], %o1
200d584: 80 a2 7f ff cmp %o1, -1
200d588: 12 80 00 06 bne 200d5a0 <rtems_bdbuf_get_buffer_from_lru_list+0x26c><== ALWAYS TAKEN
200d58c: c8 00 a0 0c ld [ %g2 + 0xc ], %g4
{
p->avl.left = p1->avl.right;
200d590: c8 20 60 08 st %g4, [ %g1 + 8 ] <== NOT EXECUTED
p1->avl.right = p;
p->avl.bal = 0;
200d594: 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;
200d598: 10 80 00 3c b 200d688 <rtems_bdbuf_get_buffer_from_lru_list+0x354><== NOT EXECUTED
200d59c: 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;
200d5a0: d2 01 20 08 ld [ %g4 + 8 ], %o1
p2->avl.left = p1;
200d5a4: c4 21 20 08 st %g2, [ %g4 + 8 ]
p = p1;
}
else /* double LR-turn */
{
p2 = p1->avl.right;
p1->avl.right = p2->avl.left;
200d5a8: d2 20 a0 0c st %o1, [ %g2 + 0xc ]
p2->avl.left = p1;
p->avl.left = p2->avl.right;
200d5ac: 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;
200d5b0: 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;
200d5b4: 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;
200d5b8: 80 a2 7f ff cmp %o1, -1
200d5bc: 12 80 00 04 bne 200d5cc <rtems_bdbuf_get_buffer_from_lru_list+0x298><== ALWAYS TAKEN
200d5c0: c2 21 20 0c st %g1, [ %g4 + 0xc ]
200d5c4: 10 80 00 03 b 200d5d0 <rtems_bdbuf_get_buffer_from_lru_list+0x29c><== NOT EXECUTED
200d5c8: d8 28 60 11 stb %o4, [ %g1 + 0x11 ] <== NOT EXECUTED
200d5cc: c0 28 60 11 clrb [ %g1 + 0x11 ]
if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
200d5d0: c2 49 20 11 ldsb [ %g4 + 0x11 ], %g1
200d5d4: 80 a0 60 01 cmp %g1, 1
200d5d8: 32 80 00 2b bne,a 200d684 <rtems_bdbuf_get_buffer_from_lru_list+0x350><== ALWAYS TAKEN
200d5dc: c0 28 a0 11 clrb [ %g2 + 0x11 ]
200d5e0: 10 80 00 29 b 200d684 <rtems_bdbuf_get_buffer_from_lru_list+0x350><== NOT EXECUTED
200d5e4: d6 28 a0 11 stb %o3, [ %g2 + 0x11 ] <== NOT EXECUTED
break;
}
}
else
{
switch (p->avl.bal)
200d5e8: 85 28 a0 18 sll %g2, 0x18, %g2
200d5ec: 85 38 a0 18 sra %g2, 0x18, %g2
200d5f0: 80 a0 a0 00 cmp %g2, 0
200d5f4: 22 80 00 28 be,a 200d694 <rtems_bdbuf_get_buffer_from_lru_list+0x360>
200d5f8: d8 28 60 11 stb %o4, [ %g1 + 0x11 ]
200d5fc: 80 a0 a0 01 cmp %g2, 1
200d600: 02 80 00 07 be 200d61c <rtems_bdbuf_get_buffer_from_lru_list+0x2e8>
200d604: 80 a0 bf ff cmp %g2, -1
200d608: 32 80 00 24 bne,a 200d698 <rtems_bdbuf_get_buffer_from_lru_list+0x364><== NEVER TAKEN
200d60c: 84 10 00 01 mov %g1, %g2 <== NOT EXECUTED
{
case -1:
p->avl.bal = 0;
200d610: c0 28 60 11 clrb [ %g1 + 0x11 ]
200d614: 10 80 00 1e b 200d68c <rtems_bdbuf_get_buffer_from_lru_list+0x358>
200d618: 84 10 00 01 mov %g1, %g2
case 0:
p->avl.bal = 1;
break;
case 1:
p1 = p->avl.right;
200d61c: c4 00 60 0c ld [ %g1 + 0xc ], %g2
if (p1->avl.bal == 1) /* simple RR-turn */
200d620: d2 48 a0 11 ldsb [ %g2 + 0x11 ], %o1
200d624: 80 a2 60 01 cmp %o1, 1
200d628: 12 80 00 06 bne 200d640 <rtems_bdbuf_get_buffer_from_lru_list+0x30c><== NEVER TAKEN
200d62c: c8 00 a0 08 ld [ %g2 + 8 ], %g4
{
p->avl.right = p1->avl.left;
200d630: c8 20 60 0c st %g4, [ %g1 + 0xc ]
p1->avl.left = p;
p->avl.bal = 0;
200d634: 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;
200d638: 10 80 00 14 b 200d688 <rtems_bdbuf_get_buffer_from_lru_list+0x354>
200d63c: c2 20 a0 08 st %g1, [ %g2 + 8 ]
p = p1;
}
else /* double RL-turn */
{
p2 = p1->avl.left;
p1->avl.left = p2->avl.right;
200d640: d2 01 20 0c ld [ %g4 + 0xc ], %o1 <== NOT EXECUTED
p2->avl.right = p1;
200d644: 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;
200d648: d2 20 a0 08 st %o1, [ %g2 + 8 ] <== NOT EXECUTED
p2->avl.right = p1;
p->avl.right = p2->avl.left;
200d64c: 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;
200d650: 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;
200d654: 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;
200d658: 80 a2 60 01 cmp %o1, 1 <== NOT EXECUTED
200d65c: 12 80 00 04 bne 200d66c <rtems_bdbuf_get_buffer_from_lru_list+0x338><== NOT EXECUTED
200d660: c2 21 20 08 st %g1, [ %g4 + 8 ] <== NOT EXECUTED
200d664: 10 80 00 03 b 200d670 <rtems_bdbuf_get_buffer_from_lru_list+0x33c><== NOT EXECUTED
200d668: d6 28 60 11 stb %o3, [ %g1 + 0x11 ] <== NOT EXECUTED
200d66c: c0 28 60 11 clrb [ %g1 + 0x11 ] <== NOT EXECUTED
if (p2->avl.bal == -1) p1->avl.bal = +1; else p1->avl.bal = 0;
200d670: c2 49 20 11 ldsb [ %g4 + 0x11 ], %g1 <== NOT EXECUTED
200d674: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED
200d678: 32 80 00 03 bne,a 200d684 <rtems_bdbuf_get_buffer_from_lru_list+0x350><== NOT EXECUTED
200d67c: c0 28 a0 11 clrb [ %g2 + 0x11 ] <== NOT EXECUTED
200d680: d8 28 a0 11 stb %o4, [ %g2 + 0x11 ] <== NOT EXECUTED
200d684: 84 10 00 04 mov %g4, %g2
p = p2;
}
p->avl.bal = 0;
200d688: c0 28 a0 11 clrb [ %g2 + 0x11 ]
200d68c: 10 80 00 04 b 200d69c <rtems_bdbuf_get_buffer_from_lru_list+0x368>
200d690: 88 10 20 00 clr %g4
200d694: 84 10 00 01 mov %g1, %g2
200d698: 88 10 20 01 mov 1, %g4
default:
break;
}
}
q = p;
if (buf_prev > buf_stack)
200d69c: 80 a3 40 0a cmp %o5, %o2
200d6a0: 08 80 00 0a bleu 200d6c8 <rtems_bdbuf_get_buffer_from_lru_list+0x394>
200d6a4: 03 00 80 81 sethi %hi(0x2020400), %g1
{
p = *--buf_prev;
200d6a8: 9a 03 7f fc add %o5, -4, %o5
200d6ac: c2 03 40 00 ld [ %o5 ], %g1
if (p->avl.cache == -1)
200d6b0: d2 48 60 10 ldsb [ %g1 + 0x10 ], %o1
200d6b4: 80 a2 7f ff cmp %o1, -1
200d6b8: 32 80 00 06 bne,a 200d6d0 <rtems_bdbuf_get_buffer_from_lru_list+0x39c>
200d6bc: c4 20 60 0c st %g2, [ %g1 + 0xc ]
{
p->avl.left = q;
200d6c0: 10 80 00 04 b 200d6d0 <rtems_bdbuf_get_buffer_from_lru_list+0x39c>
200d6c4: c4 20 60 08 st %g2, [ %g1 + 8 ]
p->avl.right = q;
}
}
else
{
*root = p;
200d6c8: 10 80 00 05 b 200d6dc <rtems_bdbuf_get_buffer_from_lru_list+0x3a8>
200d6cc: c4 20 62 30 st %g2, [ %g1 + 0x230 ]
q->avl.left = q->avl.right = NULL;
q->avl.bal = 0;
modified = true;
buf_prev--;
while (modified)
200d6d0: 80 89 20 ff btst 0xff, %g4
200d6d4: 32 bf ff 9d bne,a 200d548 <rtems_bdbuf_get_buffer_from_lru_list+0x214>
200d6d8: 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;
200d6dc: 82 10 20 01 mov 1, %g1
200d6e0: c2 20 e0 28 st %g1, [ %g3 + 0x28 ]
if (empty_bd != NULL)
{
rtems_bdbuf_setup_empty_buffer (empty_bd, dev, block);
return empty_bd;
200d6e4: 81 c7 e0 08 ret
200d6e8: 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;
200d6ec: 80 a4 80 18 cmp %l2, %i0
200d6f0: 12 bf ff 1c bne 200d360 <rtems_bdbuf_get_buffer_from_lru_list+0x2c>
200d6f4: 86 10 20 00 clr %g3
node = rtems_chain_next (node);
}
return NULL;
}
200d6f8: b0 10 00 03 mov %g3, %i0
200d6fc: 81 c7 e0 08 ret
200d700: 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);
200d704: 7f ff e9 80 call 2007d04 <rtems_fatal_error_occurred> <== NOT EXECUTED
200d708: 90 12 20 1b or %o0, 0x1b, %o0 <== NOT EXECUTED
0200be84 <rtems_bdbuf_init>:
*
* @return rtems_status_code The initialisation status.
*/
rtems_status_code
rtems_bdbuf_init (void)
{
200be84: 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())
200be88: 03 00 80 82 sethi %hi(0x2020800), %g1
200be8c: c2 00 62 6c ld [ %g1 + 0x26c ], %g1 ! 2020a6c <_ISR_Nest_level>
200be90: 80 a0 60 00 cmp %g1, 0
200be94: 12 80 00 16 bne 200beec <rtems_bdbuf_init+0x68> <== NEVER TAKEN
200be98: 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)
200be9c: 27 00 80 7a sethi %hi(0x201e800), %l3
200bea0: a6 14 e0 2c or %l3, 0x2c, %l3 ! 201e82c <rtems_bdbuf_configuration>
200bea4: e8 04 e0 24 ld [ %l3 + 0x24 ], %l4
200bea8: e2 04 e0 20 ld [ %l3 + 0x20 ], %l1
200beac: 90 10 00 14 mov %l4, %o0
200beb0: 92 10 00 11 mov %l1, %o1
200beb4: 40 00 43 2c call 201cb64 <.urem>
200beb8: b0 10 20 0a mov 0xa, %i0
200bebc: 80 a2 20 00 cmp %o0, 0
200bec0: 12 80 00 ef bne 200c27c <rtems_bdbuf_init+0x3f8> <== NEVER TAKEN
200bec4: 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 ();
200bec8: 7f ff ff 9f call 200bd44 <rtems_bdbuf_disable_preemption>
200becc: 21 00 80 81 sethi %hi(0x2020400), %l0
if (bdbuf_cache.initialised)
200bed0: a0 14 21 f0 or %l0, 0x1f0, %l0 ! 20205f0 <bdbuf_cache>
200bed4: c2 0c 20 88 ldub [ %l0 + 0x88 ], %g1
200bed8: 80 a0 60 00 cmp %g1, 0
200bedc: 02 80 00 06 be 200bef4 <rtems_bdbuf_init+0x70> <== ALWAYS TAKEN
200bee0: a4 10 00 08 mov %o0, %l2
{
rtems_bdbuf_restore_preemption (prev_mode);
200bee4: 7f ff ff a6 call 200bd7c <rtems_bdbuf_restore_preemption> <== NOT EXECUTED
200bee8: b0 10 20 0c mov 0xc, %i0 <== NOT EXECUTED
return RTEMS_RESOURCE_IN_USE;
200beec: 81 c7 e0 08 ret <== NOT EXECUTED
200bef0: 81 e8 00 00 restore <== NOT EXECUTED
}
memset(&bdbuf_cache, 0, sizeof(bdbuf_cache));
200bef4: 92 10 20 00 clr %o1
200bef8: 94 10 20 90 mov 0x90, %o2
200befc: 40 00 20 07 call 2013f18 <memset>
200bf00: 90 10 00 10 mov %l0, %o0
bdbuf_cache.initialised = true;
200bf04: 82 10 20 01 mov 1, %g1
rtems_bdbuf_restore_preemption (prev_mode);
200bf08: 90 10 00 12 mov %l2, %o0
200bf0c: 7f ff ff 9c call 200bd7c <rtems_bdbuf_restore_preemption>
200bf10: 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);
200bf14: 82 04 20 0c add %l0, 0xc, %g1
200bf18: c2 24 20 08 st %g1, [ %l0 + 8 ]
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
200bf1c: 82 04 20 08 add %l0, 8, %g1
200bf20: 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);
200bf24: 82 04 20 48 add %l0, 0x48, %g1
200bf28: c2 24 20 44 st %g1, [ %l0 + 0x44 ]
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
200bf2c: 82 04 20 44 add %l0, 0x44, %g1
200bf30: 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);
200bf34: 82 04 20 54 add %l0, 0x54, %g1
200bf38: c2 24 20 50 st %g1, [ %l0 + 0x50 ]
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
200bf3c: 82 04 20 50 add %l0, 0x50, %g1
200bf40: 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);
200bf44: 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;
200bf48: 05 3f ff ff sethi %hi(0xfffffc00), %g2
200bf4c: c2 24 20 5c st %g1, [ %l0 + 0x5c ]
200bf50: 84 10 a3 ff or %g2, 0x3ff, %g2
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
200bf54: 82 04 20 5c add %l0, 0x5c, %g1
200bf58: 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;
200bf5c: c0 24 20 0c clr [ %l0 + 0xc ]
200bf60: c0 24 20 48 clr [ %l0 + 0x48 ]
200bf64: c0 24 20 54 clr [ %l0 + 0x54 ]
200bf68: c0 24 20 60 clr [ %l0 + 0x60 ]
200bf6c: c4 3c 20 38 std %g2, [ %l0 + 0x38 ]
the_chain->last = _Chain_Head(the_chain);
200bf70: 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'),
200bf74: 25 10 91 10 sethi %hi(0x42444000), %l2
200bf78: 92 10 20 01 mov 1, %o1
200bf7c: 90 14 a3 6c or %l2, 0x36c, %o0
200bf80: 94 10 20 54 mov 0x54, %o2
200bf84: 96 10 20 00 clr %o3
200bf88: 7f ff ed 3c call 2007478 <rtems_semaphore_create>
200bf8c: 98 04 20 28 add %l0, 0x28, %o4
1, RTEMS_BDBUF_CACHE_LOCK_ATTRIBS, 0,
&bdbuf_cache.lock);
if (sc != RTEMS_SUCCESSFUL)
200bf90: 80 a2 20 00 cmp %o0, 0
200bf94: 12 80 00 9a bne 200c1fc <rtems_bdbuf_init+0x378> <== NEVER TAKEN
200bf98: 03 00 80 81 sethi %hi(0x2020400), %g1
goto error;
rtems_bdbuf_lock_cache ();
200bf9c: 7f ff fd fa call 200b784 <rtems_bdbuf_lock_cache>
200bfa0: 01 00 00 00 nop
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 's'),
200bfa4: 90 14 a3 73 or %l2, 0x373, %o0
200bfa8: 92 10 20 01 mov 1, %o1
200bfac: 94 10 20 54 mov 0x54, %o2
200bfb0: 96 10 20 00 clr %o3
200bfb4: 7f ff ed 31 call 2007478 <rtems_semaphore_create>
200bfb8: 98 04 20 2c add %l0, 0x2c, %o4
1, RTEMS_BDBUF_CACHE_LOCK_ATTRIBS, 0,
&bdbuf_cache.sync_lock);
if (sc != RTEMS_SUCCESSFUL)
200bfbc: 80 a2 20 00 cmp %o0, 0
200bfc0: 12 80 00 8f bne 200c1fc <rtems_bdbuf_init+0x378> <== NEVER TAKEN
200bfc4: 03 00 80 81 sethi %hi(0x2020400), %g1
goto error;
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 'a'),
200bfc8: 90 14 a3 61 or %l2, 0x361, %o0
200bfcc: 92 10 20 00 clr %o1
200bfd0: 94 10 20 24 mov 0x24, %o2
200bfd4: 96 10 20 00 clr %o3
200bfd8: 7f ff ed 28 call 2007478 <rtems_semaphore_create>
200bfdc: 98 04 20 6c add %l0, 0x6c, %o4
0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
&bdbuf_cache.access_waiters.sema);
if (sc != RTEMS_SUCCESSFUL)
200bfe0: 80 a2 20 00 cmp %o0, 0
200bfe4: 12 80 00 86 bne 200c1fc <rtems_bdbuf_init+0x378> <== NEVER TAKEN
200bfe8: 03 00 80 81 sethi %hi(0x2020400), %g1
goto error;
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 't'),
200bfec: 90 14 a3 74 or %l2, 0x374, %o0
200bff0: 92 10 20 00 clr %o1
200bff4: 94 10 20 24 mov 0x24, %o2
200bff8: 96 10 20 00 clr %o3
200bffc: 7f ff ed 1f call 2007478 <rtems_semaphore_create>
200c000: 98 04 20 74 add %l0, 0x74, %o4
0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
&bdbuf_cache.transfer_waiters.sema);
if (sc != RTEMS_SUCCESSFUL)
200c004: 80 a2 20 00 cmp %o0, 0
200c008: 12 80 00 7d bne 200c1fc <rtems_bdbuf_init+0x378> <== NEVER TAKEN
200c00c: 03 00 80 81 sethi %hi(0x2020400), %g1
goto error;
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 'b'),
200c010: 90 14 a3 62 or %l2, 0x362, %o0
200c014: 92 10 20 00 clr %o1
200c018: 94 10 20 24 mov 0x24, %o2
200c01c: 96 10 20 00 clr %o3
200c020: 7f ff ed 16 call 2007478 <rtems_semaphore_create>
200c024: 98 04 20 7c add %l0, 0x7c, %o4
0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
&bdbuf_cache.buffer_waiters.sema);
if (sc != RTEMS_SUCCESSFUL)
200c028: 80 a2 20 00 cmp %o0, 0
200c02c: 12 80 00 74 bne 200c1fc <rtems_bdbuf_init+0x378> <== NEVER TAKEN
200c030: 03 00 80 81 sethi %hi(0x2020400), %g1
/*
* Compute the various number of elements in the cache.
*/
bdbuf_cache.buffer_min_count =
bdbuf_config.size / bdbuf_config.buffer_min;
200c034: d0 04 e0 1c ld [ %l3 + 0x1c ], %o0
200c038: 40 00 42 1f call 201c8b4 <.udiv>
200c03c: 92 10 00 11 mov %l1, %o1
bdbuf_cache.max_bds_per_group =
bdbuf_config.buffer_max / bdbuf_config.buffer_min;
200c040: 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;
200c044: a4 10 00 08 mov %o0, %l2
bdbuf_cache.max_bds_per_group =
bdbuf_config.buffer_max / bdbuf_config.buffer_min;
200c048: 90 10 00 14 mov %l4, %o0
200c04c: 40 00 42 1a call 201c8b4 <.udiv>
200c050: e4 24 20 1c st %l2, [ %l0 + 0x1c ]
bdbuf_cache.group_count =
200c054: 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 =
200c058: d0 24 20 20 st %o0, [ %l0 + 0x20 ]
bdbuf_config.buffer_max / bdbuf_config.buffer_min;
bdbuf_cache.group_count =
200c05c: 40 00 42 16 call 201c8b4 <.udiv>
200c060: 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),
200c064: 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 =
200c068: 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),
200c06c: 7f ff de 32 call 2003934 <calloc>
200c070: 90 10 20 40 mov 0x40, %o0
bdbuf_cache.buffer_min_count);
if (!bdbuf_cache.bds)
200c074: 80 a2 20 00 cmp %o0, 0
200c078: 02 80 00 60 be 200c1f8 <rtems_bdbuf_init+0x374> <== NEVER TAKEN
200c07c: 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),
200c080: d2 04 20 80 ld [ %l0 + 0x80 ], %o1
200c084: 7f ff de 2c call 2003934 <calloc>
200c088: 90 10 20 14 mov 0x14, %o0
bdbuf_cache.group_count);
if (!bdbuf_cache.groups)
200c08c: 80 a2 20 00 cmp %o0, 0
200c090: 02 80 00 5a be 200c1f8 <rtems_bdbuf_init+0x374> <== NEVER TAKEN
200c094: 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,
200c098: 21 00 80 81 sethi %hi(0x2020400), %l0
200c09c: a0 14 21 f0 or %l0, 0x1f0, %l0 ! 20205f0 <bdbuf_cache>
200c0a0: d2 04 20 1c ld [ %l0 + 0x1c ], %o1
200c0a4: 40 00 41 ca call 201c7cc <.umul>
200c0a8: 90 10 00 11 mov %l1, %o0
200c0ac: 92 10 20 20 mov 0x20, %o1
200c0b0: 94 10 00 08 mov %o0, %o2
200c0b4: 40 00 10 89 call 20102d8 <rtems_memalign>
200c0b8: 90 04 20 18 add %l0, 0x18, %o0
200c0bc: 80 a2 20 00 cmp %o0, 0
200c0c0: 12 80 00 4f bne 200c1fc <rtems_bdbuf_init+0x378> <== NEVER TAKEN
200c0c4: 03 00 80 81 sethi %hi(0x2020400), %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,
200c0c8: a4 10 00 10 mov %l0, %l2
200c0cc: ea 04 20 84 ld [ %l0 + 0x84 ], %l5
bd = bdbuf_cache.bds, buffer = bdbuf_cache.buffers;
200c0d0: e6 04 20 14 ld [ %l0 + 0x14 ], %l3
200c0d4: 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;
200c0d8: 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;
200c0dc: a0 10 20 00 clr %l0
b < bdbuf_cache.buffer_min_count;
b++, bd++, buffer += bdbuf_config.buffer_min)
{
bd->dev = BDBUF_INVALID_DEV;
200c0e0: b8 17 23 ff or %i4, 0x3ff, %i4
200c0e4: 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,
200c0e8: 10 80 00 11 b 200c12c <rtems_bdbuf_init+0x2a8>
200c0ec: 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;
200c0f0: 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;
200c0f4: ea 24 e0 30 st %l5, [ %l3 + 0x30 ]
200c0f8: 7f ff f0 3f call 20081f4 <_Chain_Append>
200c0fc: 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) ==
200c100: ec 04 a0 20 ld [ %l2 + 0x20 ], %l6
200c104: 90 10 00 10 mov %l0, %o0
200c108: 92 10 00 16 mov %l6, %o1
200c10c: 40 00 42 96 call 201cb64 <.urem>
200c110: a6 04 e0 40 add %l3, 0x40, %l3
200c114: 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)
200c118: 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) ==
200c11c: 80 a2 00 16 cmp %o0, %l6
200c120: 12 80 00 03 bne 200c12c <rtems_bdbuf_init+0x2a8>
200c124: a0 04 20 01 inc %l0
(bdbuf_cache.max_bds_per_group - 1))
group++;
200c128: 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,
200c12c: c2 04 a0 1c ld [ %l2 + 0x1c ], %g1
200c130: 92 10 00 13 mov %l3, %o1
200c134: 80 a4 00 01 cmp %l0, %g1
200c138: 0a bf ff ee bcs 200c0f0 <rtems_bdbuf_init+0x26c>
200c13c: 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;
200c140: c8 04 a0 20 ld [ %l2 + 0x20 ], %g4
(bdbuf_cache.max_bds_per_group - 1))
group++;
}
for (b = 0,
group = bdbuf_cache.groups,
200c144: c2 04 a0 84 ld [ %l2 + 0x84 ], %g1
bd = bdbuf_cache.bds;
200c148: c6 04 a0 14 ld [ %l2 + 0x14 ], %g3
b < bdbuf_cache.group_count;
200c14c: d8 04 a0 80 ld [ %l2 + 0x80 ], %o4
b++,
group++,
bd += bdbuf_cache.max_bds_per_group)
200c150: 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,
200c154: 10 80 00 06 b 200c16c <rtems_bdbuf_init+0x2e8>
200c158: 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;
200c15c: 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++,
200c160: 84 00 a0 01 inc %g2
group++,
200c164: 82 00 60 14 add %g1, 0x14, %g1
bd += bdbuf_cache.max_bds_per_group)
200c168: 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,
200c16c: 80 a0 80 0c cmp %g2, %o4
200c170: 2a bf ff fb bcs,a 200c15c <rtems_bdbuf_init+0x2d8>
200c174: 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 ?
200c178: 03 00 80 7a sethi %hi(0x201e800), %g1
200c17c: d2 00 60 34 ld [ %g1 + 0x34 ], %o1 ! 201e834 <rtems_bdbuf_configuration+0x8>
/*
* Create and start swapout task. This task will create and manage the worker
* threads.
*/
bdbuf_cache.swapout_enabled = true;
200c180: 84 10 20 01 mov 1, %g2
200c184: 03 00 80 81 sethi %hi(0x2020400), %g1
200c188: 82 10 61 f0 or %g1, 0x1f0, %g1 ! 20205f0 <bdbuf_cache>
200c18c: c4 28 60 04 stb %g2, [ %g1 + 4 ]
sc = rtems_task_create (rtems_build_name('B', 'S', 'W', 'P'),
200c190: 80 a2 60 00 cmp %o1, 0
200c194: 22 80 00 02 be,a 200c19c <rtems_bdbuf_init+0x318> <== NEVER TAKEN
200c198: 92 10 20 0f mov 0xf, %o1 <== NOT EXECUTED
200c19c: 11 10 94 d5 sethi %hi(0x42535400), %o0
200c1a0: 15 00 00 08 sethi %hi(0x2000), %o2
200c1a4: 90 12 23 50 or %o0, 0x350, %o0
200c1a8: 96 10 24 00 mov 0x400, %o3
200c1ac: 98 10 20 00 clr %o4
200c1b0: 21 00 80 81 sethi %hi(0x2020400), %l0
200c1b4: 7f ff ed c6 call 20078cc <rtems_task_create>
200c1b8: 9a 14 21 f0 or %l0, 0x1f0, %o5 ! 20205f0 <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)
200c1bc: 80 a2 20 00 cmp %o0, 0
200c1c0: 12 80 00 0f bne 200c1fc <rtems_bdbuf_init+0x378> <== NEVER TAKEN
200c1c4: 03 00 80 81 sethi %hi(0x2020400), %g1
goto error;
sc = rtems_task_start (bdbuf_cache.swapout,
200c1c8: d0 04 21 f0 ld [ %l0 + 0x1f0 ], %o0
200c1cc: 94 14 21 f0 or %l0, 0x1f0, %o2
200c1d0: 13 00 80 33 sethi %hi(0x200cc00), %o1
200c1d4: 7f ff ee 4c call 2007b04 <rtems_task_start>
200c1d8: 92 12 61 ac or %o1, 0x1ac, %o1 ! 200cdac <rtems_bdbuf_swapout_task>
rtems_bdbuf_swapout_task,
(rtems_task_argument) &bdbuf_cache);
if (sc != RTEMS_SUCCESSFUL)
200c1dc: 80 a2 20 00 cmp %o0, 0
200c1e0: 12 80 00 07 bne 200c1fc <rtems_bdbuf_init+0x378> <== NEVER TAKEN
200c1e4: 03 00 80 81 sethi %hi(0x2020400), %g1
goto error;
rtems_bdbuf_unlock_cache ();
200c1e8: 7f ff fd f2 call 200b9b0 <rtems_bdbuf_unlock_cache>
200c1ec: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
200c1f0: 81 c7 e0 08 ret
200c1f4: 81 e8 00 00 restore
error:
if (bdbuf_cache.swapout != 0)
200c1f8: 03 00 80 81 sethi %hi(0x2020400), %g1 <== NOT EXECUTED
200c1fc: d0 00 61 f0 ld [ %g1 + 0x1f0 ], %o0 ! 20205f0 <bdbuf_cache><== NOT EXECUTED
200c200: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200c204: 02 80 00 04 be 200c214 <rtems_bdbuf_init+0x390> <== NOT EXECUTED
200c208: 21 00 80 81 sethi %hi(0x2020400), %l0 <== NOT EXECUTED
rtems_task_delete (bdbuf_cache.swapout);
200c20c: 7f ff ed fd call 2007a00 <rtems_task_delete> <== NOT EXECUTED
200c210: 01 00 00 00 nop <== NOT EXECUTED
free (bdbuf_cache.buffers);
200c214: a0 14 21 f0 or %l0, 0x1f0, %l0 <== NOT EXECUTED
200c218: 7f ff de 59 call 2003b7c <free> <== NOT EXECUTED
200c21c: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 <== NOT EXECUTED
free (bdbuf_cache.groups);
200c220: 7f ff de 57 call 2003b7c <free> <== NOT EXECUTED
200c224: d0 04 20 84 ld [ %l0 + 0x84 ], %o0 <== NOT EXECUTED
free (bdbuf_cache.bds);
200c228: 7f ff de 55 call 2003b7c <free> <== NOT EXECUTED
200c22c: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.buffer_waiters.sema);
200c230: 7f ff ed 06 call 2007648 <rtems_semaphore_delete> <== NOT EXECUTED
200c234: d0 04 20 7c ld [ %l0 + 0x7c ], %o0 <== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.access_waiters.sema);
200c238: 7f ff ed 04 call 2007648 <rtems_semaphore_delete> <== NOT EXECUTED
200c23c: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.transfer_waiters.sema);
200c240: 7f ff ed 02 call 2007648 <rtems_semaphore_delete> <== NOT EXECUTED
200c244: d0 04 20 74 ld [ %l0 + 0x74 ], %o0 <== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.sync_lock);
200c248: 7f ff ed 00 call 2007648 <rtems_semaphore_delete> <== NOT EXECUTED
200c24c: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
if (bdbuf_cache.lock != 0)
200c250: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED
200c254: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200c258: 02 80 00 07 be 200c274 <rtems_bdbuf_init+0x3f0> <== NOT EXECUTED
200c25c: 03 00 80 81 sethi %hi(0x2020400), %g1 <== NOT EXECUTED
{
rtems_bdbuf_unlock_cache ();
200c260: 7f ff fd d4 call 200b9b0 <rtems_bdbuf_unlock_cache> <== NOT EXECUTED
200c264: 01 00 00 00 nop <== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.lock);
200c268: 7f ff ec f8 call 2007648 <rtems_semaphore_delete> <== NOT EXECUTED
200c26c: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
}
bdbuf_cache.initialised = false;
200c270: 03 00 80 81 sethi %hi(0x2020400), %g1 <== NOT EXECUTED
200c274: b0 10 20 0d mov 0xd, %i0 <== NOT EXECUTED
200c278: c0 28 62 78 clrb [ %g1 + 0x278 ] <== NOT EXECUTED
return RTEMS_UNSATISFIED;
}
200c27c: 81 c7 e0 08 ret <== NOT EXECUTED
200c280: 81 e8 00 00 restore <== NOT EXECUTED
0200b754 <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)
{
200b754: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code sc = rtems_semaphore_obtain (lock,
200b758: 92 10 20 00 clr %o1
200b75c: 90 10 00 18 mov %i0, %o0
200b760: 7f ff ef e8 call 2007700 <rtems_semaphore_obtain>
200b764: 94 10 20 00 clr %o2
RTEMS_WAIT,
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
200b768: 80 a2 20 00 cmp %o0, 0
200b76c: 02 80 00 04 be 200b77c <rtems_bdbuf_lock+0x28> <== ALWAYS TAKEN
200b770: 01 00 00 00 nop
rtems_fatal_error_occurred (fatal_error_code);
200b774: 7f ff f1 64 call 2007d04 <rtems_fatal_error_occurred> <== NOT EXECUTED
200b778: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
200b77c: 81 c7 e0 08 ret
200b780: 81 e8 00 00 restore
0200ba08 <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)
{
200ba08: 9d e3 bf a0 save %sp, -96, %sp
rtems_disk_device *dd = NULL;
if (!bdbuf_cache.initialised)
200ba0c: 03 00 80 81 sethi %hi(0x2020400), %g1
200ba10: c2 08 62 78 ldub [ %g1 + 0x278 ], %g1 ! 2020678 <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)
{
200ba14: 90 10 00 18 mov %i0, %o0
rtems_disk_device *dd = NULL;
if (!bdbuf_cache.initialised)
200ba18: 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)
{
200ba1c: 92 10 00 19 mov %i1, %o1
rtems_disk_device *dd = NULL;
if (!bdbuf_cache.initialised)
200ba20: 02 80 00 33 be 200baec <rtems_bdbuf_obtain_disk+0xe4> <== NEVER TAKEN
200ba24: 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);
200ba28: 7f ff dc e2 call 2002db0 <rtems_disk_obtain>
200ba2c: b0 10 20 04 mov 4, %i0
if (dd == NULL)
200ba30: a0 92 20 00 orcc %o0, 0, %l0
200ba34: 02 80 00 2e be 200baec <rtems_bdbuf_obtain_disk+0xe4> <== NEVER TAKEN
200ba38: 80 a7 20 00 cmp %i4, 0
return RTEMS_INVALID_ID;
*dd_ptr = dd;
if (media_block_ptr != NULL)
200ba3c: 02 80 00 11 be 200ba80 <rtems_bdbuf_obtain_disk+0x78>
200ba40: 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)
200ba44: d6 04 20 20 ld [ %l0 + 0x20 ], %o3
200ba48: 94 10 20 00 clr %o2
200ba4c: 92 10 00 1a mov %i2, %o1
200ba50: 40 00 44 f1 call 201ce14 <__muldi3>
200ba54: 90 10 20 00 clr %o0
200ba58: d6 04 20 24 ld [ %l0 + 0x24 ], %o3
200ba5c: 40 00 47 00 call 201d65c <__udivdi3>
200ba60: 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)
200ba64: c2 04 20 1c ld [ %l0 + 0x1c ], %g1
200ba68: 80 a2 40 01 cmp %o1, %g1
200ba6c: 1a 80 00 1e bcc 200bae4 <rtems_bdbuf_obtain_disk+0xdc> <== NEVER TAKEN
200ba70: 90 10 00 10 mov %l0, %o0
{
rtems_disk_release(dd);
return RTEMS_INVALID_NUMBER;
}
*media_block_ptr = mb + dd->start;
200ba74: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
200ba78: 92 02 40 01 add %o1, %g1, %o1
200ba7c: d2 27 00 00 st %o1, [ %i4 ]
}
if (bds_per_group_ptr != NULL)
200ba80: 80 a7 60 00 cmp %i5, 0
200ba84: 02 80 00 1a be 200baec <rtems_bdbuf_obtain_disk+0xe4>
200ba88: b0 10 20 00 clr %i0
{
size_t bds_per_group = rtems_bdbuf_bds_per_group (dd->block_size);
200ba8c: 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)
200ba90: 03 00 80 7a sethi %hi(0x201e800), %g1
200ba94: 82 10 60 2c or %g1, 0x2c, %g1 ! 201e82c <rtems_bdbuf_configuration>
200ba98: c4 00 60 24 ld [ %g1 + 0x24 ], %g2
200ba9c: 80 a2 00 02 cmp %o0, %g2
200baa0: 38 80 00 11 bgu,a 200bae4 <rtems_bdbuf_obtain_disk+0xdc> <== NEVER TAKEN
200baa4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return 0;
bufs_per_size = ((size - 1) / bdbuf_config.buffer_min) + 1;
200baa8: d2 00 60 20 ld [ %g1 + 0x20 ], %o1
200baac: 40 00 43 82 call 201c8b4 <.udiv>
200bab0: 90 02 3f ff add %o0, -1, %o0
200bab4: 92 10 20 01 mov 1, %o1
200bab8: 90 02 20 01 inc %o0
for (bds_per_size = 1;
200babc: 80 a2 40 08 cmp %o1, %o0
200bac0: 2a bf ff ff bcs,a 200babc <rtems_bdbuf_obtain_disk+0xb4>
200bac4: 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;
200bac8: 03 00 80 81 sethi %hi(0x2020400), %g1
200bacc: 40 00 43 7a call 201c8b4 <.udiv>
200bad0: d0 00 62 10 ld [ %g1 + 0x210 ], %o0 ! 2020610 <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)
200bad4: 80 a2 20 00 cmp %o0, 0
200bad8: 32 80 00 07 bne,a 200baf4 <rtems_bdbuf_obtain_disk+0xec> <== ALWAYS TAKEN
200badc: d0 27 40 00 st %o0, [ %i5 ]
{
rtems_disk_release (dd);
200bae0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
200bae4: 7f ff dc a1 call 2002d68 <rtems_disk_release> <== NOT EXECUTED
200bae8: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
200baec: 81 c7 e0 08 ret
200baf0: 81 e8 00 00 restore
}
*bds_per_group_ptr = bds_per_group;
200baf4: b0 10 20 00 clr %i0
}
return RTEMS_SUCCESSFUL;
}
200baf8: 81 c7 e0 08 ret
200bafc: 81 e8 00 00 restore
0200c8d8 <rtems_bdbuf_purge>:
}
}
static void
rtems_bdbuf_purge (rtems_bdbuf_purge_compare compare, dev_t dev)
{
200c8d8: 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);
200c8dc: 82 07 bf f8 add %fp, -8, %g1
the_chain->permanent_null = NULL;
200c8e0: 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);
200c8e4: c2 27 bf f4 st %g1, [ %fp + -12 ]
200c8e8: a0 07 bf f4 add %fp, -12, %l0
rtems_chain_control purge_list;
rtems_chain_initialize_empty (&purge_list);
rtems_bdbuf_lock_cache ();
200c8ec: 7f ff fb a6 call 200b784 <rtems_bdbuf_lock_cache>
200c8f0: 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;
200c8f4: 03 00 80 81 sethi %hi(0x2020400), %g1
while (cur != NULL)
{
if ((*compare) (cur->dev, dev))
{
switch (cur->state)
200c8f8: 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;
200c8fc: 82 10 61 f0 or %g1, 0x1f0, %g1
}
}
static void
rtems_bdbuf_purge (rtems_bdbuf_purge_compare compare, dev_t dev)
{
200c900: b8 10 00 19 mov %i1, %i4
200c904: 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;
200c908: 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);
200c90c: ac 00 60 70 add %g1, 0x70, %l6
while (cur != NULL)
{
if ((*compare) (cur->dev, dev))
{
switch (cur->state)
200c910: aa 15 62 9c or %l5, 0x29c, %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;
200c914: e2 00 60 40 ld [ %g1 + 0x40 ], %l1
*prev = NULL;
200c918: 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;
200c91c: a8 10 20 06 mov 6, %l4
200c920: 10 80 00 40 b 200ca20 <rtems_bdbuf_purge+0x148>
200c924: a6 10 20 0a mov 0xa, %l3
*prev = NULL;
while (cur != NULL)
{
if ((*compare) (cur->dev, dev))
200c928: 94 10 00 1c mov %i4, %o2
200c92c: 9f c6 00 00 call %i0
200c930: 96 10 00 1d mov %i5, %o3
200c934: 80 8a 20 ff btst 0xff, %o0
200c938: 22 80 00 20 be,a 200c9b8 <rtems_bdbuf_purge+0xe0> <== NEVER TAKEN
200c93c: c2 04 60 08 ld [ %l1 + 8 ], %g1 <== NOT EXECUTED
{
switch (cur->state)
200c940: c2 04 60 28 ld [ %l1 + 0x28 ], %g1
200c944: 80 a0 60 0a cmp %g1, 0xa
200c948: 38 80 00 19 bgu,a 200c9ac <rtems_bdbuf_purge+0xd4> <== NEVER TAKEN
200c94c: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200c950: 83 28 60 02 sll %g1, 2, %g1
200c954: c2 05 40 01 ld [ %l5 + %g1 ], %g1
200c958: 81 c0 40 00 jmp %g1
200c95c: 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);
200c960: 7f ff fb 91 call 200b7a4 <rtems_bdbuf_wake>
200c964: 90 10 00 16 mov %l6, %o0
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
200c968: c2 04 60 30 ld [ %l1 + 0x30 ], %g1
200c96c: c4 00 60 0c ld [ %g1 + 0xc ], %g2
200c970: 84 00 bf ff add %g2, -1, %g2
200c974: c4 20 60 0c st %g2, [ %g1 + 0xc ]
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
200c978: 7f ff ee 2b call 2008224 <_Chain_Extract>
200c97c: 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 );
200c980: 90 10 00 10 mov %l0, %o0
200c984: 7f ff ee 1c call 20081f4 <_Chain_Append>
200c988: 92 10 00 11 mov %l1, %o1
default:
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_STATE_11);
}
}
if (cur->avl.left != NULL)
200c98c: 10 80 00 0b b 200c9b8 <rtems_bdbuf_purge+0xe0>
200c990: 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;
200c994: e6 24 60 28 st %l3, [ %l1 + 0x28 ]
default:
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_STATE_11);
}
}
if (cur->avl.left != NULL)
200c998: 10 80 00 08 b 200c9b8 <rtems_bdbuf_purge+0xe0>
200c99c: 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;
200c9a0: e8 24 60 28 st %l4, [ %l1 + 0x28 ]
default:
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_STATE_11);
}
}
if (cur->avl.left != NULL)
200c9a4: 10 80 00 05 b 200c9b8 <rtems_bdbuf_purge+0xe0>
200c9a8: 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);
200c9ac: 7f ff ec d6 call 2007d04 <rtems_fatal_error_occurred> <== NOT EXECUTED
200c9b0: 90 12 20 01 or %o0, 1, %o0 <== NOT EXECUTED
}
}
if (cur->avl.left != NULL)
200c9b4: c2 04 60 08 ld [ %l1 + 8 ], %g1 <== NOT EXECUTED
200c9b8: 80 a0 60 00 cmp %g1, 0
200c9bc: 22 80 00 06 be,a 200c9d4 <rtems_bdbuf_purge+0xfc> <== ALWAYS TAKEN
200c9c0: c2 04 60 0c ld [ %l1 + 0xc ], %g1
{
/* Left */
++prev;
200c9c4: a4 04 a0 04 add %l2, 4, %l2 <== NOT EXECUTED
*prev = cur;
200c9c8: e2 24 80 00 st %l1, [ %l2 ] <== NOT EXECUTED
cur = cur->avl.left;
200c9cc: 10 80 00 14 b 200ca1c <rtems_bdbuf_purge+0x144> <== NOT EXECUTED
200c9d0: c2 04 60 08 ld [ %l1 + 8 ], %g1 <== NOT EXECUTED
}
else if (cur->avl.right != NULL)
200c9d4: 80 a0 60 00 cmp %g1, 0
200c9d8: 22 80 00 08 be,a 200c9f8 <rtems_bdbuf_purge+0x120> <== ALWAYS TAKEN
200c9dc: c2 04 80 00 ld [ %l2 ], %g1
{
/* Right */
++prev;
200c9e0: a4 04 a0 04 add %l2, 4, %l2 <== NOT EXECUTED
*prev = cur;
200c9e4: e2 24 80 00 st %l1, [ %l2 ] <== NOT EXECUTED
cur = cur->avl.right;
200c9e8: 10 80 00 0d b 200ca1c <rtems_bdbuf_purge+0x144> <== NOT EXECUTED
200c9ec: c2 04 60 0c ld [ %l1 + 0xc ], %g1 <== NOT EXECUTED
{
while (*prev != NULL && cur == (*prev)->avl.right)
{
/* Up */
cur = *prev;
--prev;
200c9f0: a2 10 00 01 mov %g1, %l1 <== NOT EXECUTED
*prev = cur;
cur = cur->avl.right;
}
else
{
while (*prev != NULL && cur == (*prev)->avl.right)
200c9f4: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED
200c9f8: 80 a0 60 00 cmp %g1, 0
200c9fc: 22 80 00 09 be,a 200ca20 <rtems_bdbuf_purge+0x148> <== ALWAYS TAKEN
200ca00: a2 10 00 01 mov %g1, %l1
200ca04: c4 00 60 0c ld [ %g1 + 0xc ], %g2 <== NOT EXECUTED
200ca08: 80 a4 40 02 cmp %l1, %g2 <== NOT EXECUTED
200ca0c: 22 bf ff f9 be,a 200c9f0 <rtems_bdbuf_purge+0x118> <== NOT EXECUTED
200ca10: a4 04 bf fc add %l2, -4, %l2 <== NOT EXECUTED
cur = *prev;
--prev;
}
if (*prev != NULL)
/* Right */
cur = (*prev)->avl.right;
200ca14: 10 80 00 1c b 200ca84 <rtems_bdbuf_purge+0x1ac> <== NOT EXECUTED
200ca18: 82 10 00 02 mov %g2, %g1 <== NOT EXECUTED
*prev = cur;
cur = cur->avl.right;
}
else
{
while (*prev != NULL && cur == (*prev)->avl.right)
200ca1c: 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)
200ca20: 80 a4 60 00 cmp %l1, 0
200ca24: 32 bf ff c1 bne,a 200c928 <rtems_bdbuf_purge+0x50>
200ca28: d0 1c 60 18 ldd [ %l1 + 0x18 ], %o0
200ca2c: 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 );
200ca30: 10 80 00 08 b 200ca50 <rtems_bdbuf_purge+0x178>
200ca34: 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)
200ca38: c2 02 20 2c ld [ %o0 + 0x2c ], %g1
200ca3c: 80 a0 60 00 cmp %g1, 0
200ca40: 22 80 00 02 be,a 200ca48 <rtems_bdbuf_purge+0x170>
200ca44: a0 10 20 01 mov 1, %l0
wake_buffer_waiters = true;
rtems_bdbuf_discard_buffer (bd);
200ca48: 7f ff ff 23 call 200c6d4 <rtems_bdbuf_discard_buffer>
200ca4c: 01 00 00 00 nop
200ca50: 7f ff ed ff call 200824c <_Chain_Get>
200ca54: 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)
200ca58: 80 a2 20 00 cmp %o0, 0
200ca5c: 12 bf ff f7 bne 200ca38 <rtems_bdbuf_purge+0x160>
200ca60: 80 8c 20 ff btst 0xff, %l0
wake_buffer_waiters = true;
rtems_bdbuf_discard_buffer (bd);
}
if (wake_buffer_waiters)
200ca64: 02 80 00 04 be 200ca74 <rtems_bdbuf_purge+0x19c>
200ca68: 11 00 80 81 sethi %hi(0x2020400), %o0
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
200ca6c: 7f ff fb 4e call 200b7a4 <rtems_bdbuf_wake>
200ca70: 90 12 22 68 or %o0, 0x268, %o0 ! 2020668 <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 ();
200ca74: 7f ff fb cf call 200b9b0 <rtems_bdbuf_unlock_cache>
200ca78: 01 00 00 00 nop
}
200ca7c: 81 c7 e0 08 ret
200ca80: 81 e8 00 00 restore
*prev = cur;
cur = cur->avl.right;
}
else
{
while (*prev != NULL && cur == (*prev)->avl.right)
200ca84: 10 bf ff e7 b 200ca20 <rtems_bdbuf_purge+0x148> <== NOT EXECUTED
200ca88: a2 10 00 01 mov %g1, %l1 <== NOT EXECUTED
0200b724 <rtems_bdbuf_purge_compare_dev>:
rtems_bdbuf_unlock_cache ();
}
static bool
rtems_bdbuf_purge_compare_dev (dev_t a, dev_t b)
{
200b724: 80 a2 00 0a cmp %o0, %o2
200b728: 12 80 00 05 bne 200b73c <rtems_bdbuf_purge_compare_dev+0x18><== NEVER TAKEN
200b72c: 90 10 20 00 clr %o0
200b730: 80 a2 40 0b cmp %o1, %o3
200b734: 22 80 00 02 be,a 200b73c <rtems_bdbuf_purge_compare_dev+0x18><== ALWAYS TAKEN
200b738: 90 10 20 01 mov 1, %o0
return a == b;
}
200b73c: 81 c3 e0 08 retl
0200b744 <rtems_bdbuf_purge_compare_major>:
dev_t device
)
{
union __rtems_dev_t temp;
temp.device = device;
200b744: 90 1a 00 0a xor %o0, %o2, %o0 <== NOT EXECUTED
200b748: 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);
}
200b74c: 81 c3 e0 08 retl <== NOT EXECUTED
200b750: 90 60 3f ff subx %g0, -1, %o0 <== NOT EXECUTED
0200ca8c <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);
200ca8c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
200ca90: 94 10 20 00 clr %o2 <== NOT EXECUTED
200ca94: 11 00 80 2d sethi %hi(0x200b400), %o0 <== NOT EXECUTED
200ca98: 90 12 23 44 or %o0, 0x344, %o0 ! 200b744 <rtems_bdbuf_purge_compare_major><== NOT EXECUTED
200ca9c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
200caa0: 7f ff ff 8e call 200c8d8 <rtems_bdbuf_purge> <== NOT EXECUTED
200caa4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
0200da4c <rtems_bdbuf_read>:
rtems_status_code
rtems_bdbuf_read (dev_t dev,
rtems_blkdev_bnum block,
rtems_bdbuf_buffer **bd_ptr)
{
200da4c: 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);
200da50: 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;
200da54: c0 27 bf fc clr [ %fp + -4 ]
rtems_blkdev_request *req = NULL;
rtems_bdbuf_buffer *bd = NULL;
rtems_blkdev_bnum media_block = 0;
200da58: c0 27 bf f8 clr [ %fp + -8 ]
size_t bds_per_group = 0;
200da5c: c0 27 bf f4 clr [ %fp + -12 ]
sc = rtems_bdbuf_obtain_disk (dev, block, &dd, &media_block, &bds_per_group);
200da60: 94 10 00 1a mov %i2, %o2
200da64: 92 10 00 19 mov %i1, %o1
200da68: 96 07 bf fc add %fp, -4, %o3
200da6c: 98 07 bf f8 add %fp, -8, %o4
200da70: 7f ff f7 e6 call 200ba08 <rtems_bdbuf_obtain_disk>
200da74: 9a 07 bf f4 add %fp, -12, %o5
if (sc != RTEMS_SUCCESSFUL)
200da78: b0 92 20 00 orcc %o0, 0, %i0
200da7c: 12 80 00 a0 bne 200dcfc <rtems_bdbuf_read+0x2b0> <== NEVER TAKEN
200da80: 03 00 80 7a sethi %hi(0x201e800), %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) +
200da84: e6 00 60 2c ld [ %g1 + 0x2c ], %l3 ! 201e82c <rtems_bdbuf_configuration>
200da88: a6 04 e0 01 inc %l3
200da8c: 83 2c e0 04 sll %l3, 4, %g1
200da90: 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 ();
200da94: 7f ff f7 3c call 200b784 <rtems_bdbuf_lock_cache>
200da98: 9c 23 80 01 sub %sp, %g1, %sp
rtems_bdbuf_create_read_request (dd, media_block, bds_per_group, req, &bd);
200da9c: e2 07 bf fc ld [ %fp + -4 ], %l1
200daa0: 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;
200daa4: ee 04 60 20 ld [ %l1 + 0x20 ], %l7
200daa8: d2 04 60 24 ld [ %l1 + 0x24 ], %o1
200daac: 40 00 3b 82 call 201c8b4 <.udiv>
200dab0: 90 10 00 17 mov %l7, %o0
dev_t dev = dd->dev;
200dab4: c2 04 60 18 ld [ %l1 + 0x18 ], %g1
200dab8: 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;
200dabc: d0 27 bf ec st %o0, [ %fp + -20 ]
dev_t dev = dd->dev;
200dac0: 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) +
200dac4: 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;
200dac8: 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);
200dacc: 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;
200dad0: 80 a7 40 13 cmp %i5, %l3
200dad4: e8 04 40 00 ld [ %l1 ], %l4
200dad8: 08 80 00 03 bleu 200dae4 <rtems_bdbuf_read+0x98>
200dadc: ec 04 60 04 ld [ %l1 + 4 ], %l6
200dae0: 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;
200dae4: 03 00 80 2f sethi %hi(0x200bc00), %g1
200dae8: 82 10 60 40 or %g1, 0x40, %g1 ! 200bc40 <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;
200daec: c0 24 00 00 clr [ %l0 ]
req->req_done = rtems_bdbuf_transfer_done;
200daf0: c2 24 20 04 st %g1, [ %l0 + 4 ]
req->done_arg = req;
req->io_task = rtems_task_self ();
200daf4: 40 00 0b 95 call 2010948 <rtems_task_self>
200daf8: e0 24 20 08 st %l0, [ %l0 + 8 ]
req->status = RTEMS_RESOURCE_IN_USE;
200dafc: 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 ();
200db00: d0 24 20 14 st %o0, [ %l0 + 0x14 ]
req->status = RTEMS_RESOURCE_IN_USE;
200db04: c2 24 20 0c st %g1, [ %l0 + 0xc ]
req->bufnum = 0;
200db08: c0 24 20 10 clr [ %l0 + 0x10 ]
bd = rtems_bdbuf_get_buffer_for_access (dev, media_block, bds_per_group);
200db0c: 90 10 00 14 mov %l4, %o0
200db10: 92 10 00 16 mov %l6, %o1
200db14: 94 10 00 12 mov %l2, %o2
200db18: 7f ff fe fe call 200d710 <rtems_bdbuf_get_buffer_for_access>
200db1c: 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;
200db20: c4 02 20 24 ld [ %o0 + 0x24 ], %g2
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_users ("read", bd);
switch (bd->state)
200db24: 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;
200db28: 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;
200db2c: d0 24 20 24 st %o0, [ %l0 + 0x24 ]
req->bufs [0].block = media_block;
200db30: e4 24 20 18 st %l2, [ %l0 + 0x18 ]
req->bufs [0].length = block_size;
200db34: 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)
200db38: 80 a0 60 02 cmp %g1, 2
200db3c: 02 80 00 4b be 200dc68 <rtems_bdbuf_read+0x21c>
200db40: a2 10 00 08 mov %o0, %l1
200db44: 80 a0 60 07 cmp %g1, 7
200db48: 02 80 00 48 be 200dc68 <rtems_bdbuf_read+0x21c>
200db4c: 80 a0 60 01 cmp %g1, 1
200db50: 12 80 00 09 bne 200db74 <rtems_bdbuf_read+0x128> <== NEVER TAKEN
200db54: 33 00 80 81 sethi %hi(0x2020400), %i1
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200db58: 82 10 20 09 mov 9, %g1
200db5c: 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;
200db60: b2 16 61 f0 or %i1, 0x1f0, %i1
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200db64: a6 10 00 10 mov %l0, %l3
200db68: aa 10 20 01 mov 1, %l5
200db6c: 10 80 00 3b b 200dc58 <rtems_bdbuf_read+0x20c>
200db70: 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);
200db74: 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);
200db78: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200db7c: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200db80: 10 80 00 59 b 200dce4 <rtems_bdbuf_read+0x298> <== NOT EXECUTED
200db84: 82 10 60 1d or %g1, 0x1d, %g1 <== NOT EXECUTED
break;
}
while (transfer_index < transfer_count)
{
media_block += media_block_count;
200db88: 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;
200db8c: 10 80 00 10 b 200dbcc <rtems_bdbuf_read+0x180>
200db90: 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)))
200db94: 38 80 00 0e bgu,a 200dbcc <rtems_bdbuf_read+0x180> <== NOT EXECUTED
200db98: c2 00 60 0c ld [ %g1 + 0xc ], %g1 <== NOT EXECUTED
200db9c: 80 a5 00 02 cmp %l4, %g2 <== NOT EXECUTED
200dba0: 12 80 00 0a bne 200dbc8 <rtems_bdbuf_read+0x17c> <== NOT EXECUTED
200dba4: 80 a5 80 03 cmp %l6, %g3 <== NOT EXECUTED
200dba8: 38 80 00 09 bgu,a 200dbcc <rtems_bdbuf_read+0x180> <== NOT EXECUTED
200dbac: c2 00 60 0c ld [ %g1 + 0xc ], %g1 <== NOT EXECUTED
{
p = p->avl.right;
}
else
{
p = p->avl.left;
200dbb0: 10 80 00 07 b 200dbcc <rtems_bdbuf_read+0x180> <== NOT EXECUTED
200dbb4: 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)))
200dbb8: 3a 80 00 05 bcc,a 200dbcc <rtems_bdbuf_read+0x180> <== NEVER TAKEN
200dbbc: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED
{
p = p->avl.right;
200dbc0: 10 80 00 03 b 200dbcc <rtems_bdbuf_read+0x180>
200dbc4: c2 00 60 0c ld [ %g1 + 0xc ], %g1
}
else
{
p = p->avl.left;
200dbc8: 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)))
200dbcc: 80 a0 60 00 cmp %g1, 0
200dbd0: 02 80 00 0f be 200dc0c <rtems_bdbuf_read+0x1c0>
200dbd4: 90 10 00 14 mov %l4, %o0
200dbd8: c4 18 60 18 ldd [ %g1 + 0x18 ], %g2
200dbdc: 80 a0 80 14 cmp %g2, %l4
200dbe0: 12 bf ff ed bne 200db94 <rtems_bdbuf_read+0x148> <== NEVER TAKEN
200dbe4: 80 a5 00 02 cmp %l4, %g2
200dbe8: 80 a0 c0 16 cmp %g3, %l6
200dbec: 12 bf ff ea bne 200db94 <rtems_bdbuf_read+0x148> <== NEVER TAKEN
200dbf0: 80 a5 00 02 cmp %l4, %g2
200dbf4: c4 00 60 20 ld [ %g1 + 0x20 ], %g2
200dbf8: 80 a0 80 12 cmp %g2, %l2
200dbfc: 12 bf ff ef bne 200dbb8 <rtems_bdbuf_read+0x16c> <== ALWAYS TAKEN
200dc00: 01 00 00 00 nop
rtems_bdbuf_show_users ("read-ahead", bd);
++transfer_index;
}
req->bufnum = transfer_index;
200dc04: 10 80 00 19 b 200dc68 <rtems_bdbuf_read+0x21c> <== NOT EXECUTED
200dc08: 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);
200dc0c: 92 10 00 16 mov %l6, %o1
200dc10: 94 10 00 12 mov %l2, %o2
200dc14: 96 10 00 1c mov %i4, %o3
200dc18: 7f ff fd c7 call 200d334 <rtems_bdbuf_get_buffer_from_lru_list>
200dc1c: a6 04 e0 10 add %l3, 0x10, %l3
if (bd != NULL)
200dc20: 80 a2 20 00 cmp %o0, 0
200dc24: 22 80 00 11 be,a 200dc68 <rtems_bdbuf_read+0x21c> <== ALWAYS TAKEN
200dc28: ea 24 20 10 st %l5, [ %l0 + 0x10 ]
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
200dc2c: 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;
200dc30: c6 02 20 24 ld [ %o0 + 0x24 ], %g3 <== NOT EXECUTED
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
200dc34: 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;
200dc38: c6 24 e0 20 st %g3, [ %l3 + 0x20 ] <== NOT EXECUTED
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
200dc3c: 84 00 a0 01 inc %g2 <== NOT EXECUTED
200dc40: 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;
200dc44: 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;
200dc48: d0 24 e0 24 st %o0, [ %l3 + 0x24 ] <== NOT EXECUTED
req->bufs [transfer_index].block = media_block;
200dc4c: e4 24 e0 18 st %l2, [ %l3 + 0x18 ] <== NOT EXECUTED
req->bufs [transfer_index].length = block_size;
200dc50: 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;
200dc54: 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)
200dc58: 80 a5 40 1d cmp %l5, %i5
200dc5c: 0a bf ff cb bcs 200db88 <rtems_bdbuf_read+0x13c>
200dc60: c2 07 bf ec ld [ %fp + -20 ], %g1
rtems_bdbuf_show_users ("read-ahead", bd);
++transfer_index;
}
req->bufnum = transfer_index;
200dc64: 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)
200dc68: c2 04 20 10 ld [ %l0 + 0x10 ], %g1
200dc6c: 80 a0 60 00 cmp %g1, 0
200dc70: 02 80 00 0e be 200dca8 <rtems_bdbuf_read+0x25c>
200dc74: 92 10 00 10 mov %l0, %o1
{
sc = rtems_bdbuf_execute_transfer_request (dd, req, true);
200dc78: d0 07 bf fc ld [ %fp + -4 ], %o0
200dc7c: 7f ff fb 94 call 200cacc <rtems_bdbuf_execute_transfer_request>
200dc80: 94 10 20 01 mov 1, %o2
if (sc == RTEMS_SUCCESSFUL)
200dc84: 80 a2 20 00 cmp %o0, 0
200dc88: 32 80 00 1f bne,a 200dd04 <rtems_bdbuf_read+0x2b8>
200dc8c: c0 26 c0 00 clr [ %i3 ]
200dc90: 7f ff e9 65 call 2008224 <_Chain_Extract>
200dc94: 90 10 00 11 mov %l1, %o0
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
200dc98: c2 04 60 30 ld [ %l1 + 0x30 ], %g1
200dc9c: c4 00 60 0c ld [ %g1 + 0xc ], %g2
200dca0: 84 00 a0 01 inc %g2
200dca4: c4 20 60 0c st %g2, [ %g1 + 0xc ]
}
}
if (sc == RTEMS_SUCCESSFUL)
{
switch (bd->state)
200dca8: c2 04 60 28 ld [ %l1 + 0x28 ], %g1
200dcac: 80 a0 60 02 cmp %g1, 2
200dcb0: 02 80 00 05 be 200dcc4 <rtems_bdbuf_read+0x278>
200dcb4: 80 a0 60 07 cmp %g1, 7
200dcb8: 12 80 00 07 bne 200dcd4 <rtems_bdbuf_read+0x288> <== NEVER TAKEN
200dcbc: 82 10 20 04 mov 4, %g1
200dcc0: 30 80 00 02 b,a 200dcc8 <rtems_bdbuf_read+0x27c>
200dcc4: 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;
200dcc8: c2 24 60 28 st %g1, [ %l1 + 0x28 ]
{
rtems_bdbuf_show_users ("read", bd);
rtems_bdbuf_show_usage ();
}
*bd_ptr = bd;
200dccc: 10 80 00 08 b 200dcec <rtems_bdbuf_read+0x2a0>
200dcd0: 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);
200dcd4: 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);
200dcd8: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200dcdc: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200dce0: 82 10 60 02 or %g1, 2, %g1 <== NOT EXECUTED
200dce4: 7f ff e8 08 call 2007d04 <rtems_fatal_error_occurred> <== NOT EXECUTED
200dce8: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
*bd_ptr = bd;
}
else
*bd_ptr = NULL;
rtems_bdbuf_unlock_cache ();
200dcec: 7f ff f7 31 call 200b9b0 <rtems_bdbuf_unlock_cache>
200dcf0: 01 00 00 00 nop
rtems_bdbuf_release_disk (dd);
200dcf4: 7f ff f7 83 call 200bb00 <rtems_bdbuf_release_disk>
200dcf8: d0 07 bf fc ld [ %fp + -4 ], %o0
return sc;
}
200dcfc: 81 c7 e0 08 ret
200dd00: 81 e8 00 00 restore
}
*bd_ptr = bd;
}
else
*bd_ptr = NULL;
200dd04: 10 bf ff fa b 200dcec <rtems_bdbuf_read+0x2a0>
200dd08: b0 10 00 08 mov %o0, %i0
0200c7ec <rtems_bdbuf_release>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_release (rtems_bdbuf_buffer *bd)
{
200c7ec: 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)
200c7f0: 21 00 80 81 sethi %hi(0x2020400), %l0
200c7f4: a0 14 21 f0 or %l0, 0x1f0, %l0 ! 20205f0 <bdbuf_cache>
200c7f8: c2 0c 20 88 ldub [ %l0 + 0x88 ], %g1
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_release (rtems_bdbuf_buffer *bd)
{
200c7fc: 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)
200c800: 80 a0 60 00 cmp %g1, 0
200c804: 02 80 00 33 be 200c8d0 <rtems_bdbuf_release+0xe4> <== NEVER TAKEN
200c808: b0 10 20 16 mov 0x16, %i0
return RTEMS_NOT_CONFIGURED;
if (bd == NULL)
200c80c: 80 a4 60 00 cmp %l1, 0
200c810: 02 80 00 30 be 200c8d0 <rtems_bdbuf_release+0xe4> <== NEVER TAKEN
200c814: 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();
200c818: 7f ff fb db call 200b784 <rtems_bdbuf_lock_cache>
200c81c: 01 00 00 00 nop
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
200c820: c2 04 60 28 ld [ %l1 + 0x28 ], %g1
200c824: 80 a0 60 04 cmp %g1, 4
200c828: 02 80 00 1f be 200c8a4 <rtems_bdbuf_release+0xb8>
200c82c: 01 00 00 00 nop
200c830: 18 80 00 07 bgu 200c84c <rtems_bdbuf_release+0x60>
200c834: 80 a0 60 06 cmp %g1, 6
200c838: 80 a0 60 03 cmp %g1, 3
200c83c: 12 80 00 1d bne 200c8b0 <rtems_bdbuf_release+0xc4> <== NEVER TAKEN
200c840: 01 00 00 00 nop
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
200c844: 10 80 00 05 b 200c858 <rtems_bdbuf_release+0x6c>
200c848: 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)
200c84c: 18 80 00 19 bgu 200c8b0 <rtems_bdbuf_release+0xc4> <== NEVER TAKEN
200c850: 01 00 00 00 nop
200c854: 30 80 00 11 b,a 200c898 <rtems_bdbuf_release+0xac>
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200c858: 86 10 20 02 mov 2, %g3 ! 2 <PROM_START+0x2>
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
200c85c: 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 );
200c860: 90 04 20 44 add %l0, 0x44, %o0
200c864: 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;
200c868: c6 24 60 28 st %g3, [ %l1 + 0x28 ]
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
200c86c: c4 20 60 0c st %g2, [ %g1 + 0xc ]
200c870: 7f ff ee 61 call 20081f4 <_Chain_Append>
200c874: 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)
200c878: c2 04 60 2c ld [ %l1 + 0x2c ], %g1
200c87c: 80 a0 60 00 cmp %g1, 0
200c880: 12 80 00 03 bne 200c88c <rtems_bdbuf_release+0xa0>
200c884: 90 04 20 68 add %l0, 0x68, %o0
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
else
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
200c888: 90 04 20 78 add %l0, 0x78, %o0
200c88c: 7f ff fb c6 call 200b7a4 <rtems_bdbuf_wake>
200c890: 01 00 00 00 nop
200c894: 30 80 00 0d b,a 200c8c8 <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);
200c898: 7f ff ff 9e call 200c710 <rtems_bdbuf_discard_buffer_after_access>
200c89c: 90 10 00 11 mov %l1, %o0
break;
200c8a0: 30 80 00 0a b,a 200c8c8 <rtems_bdbuf_release+0xdc>
case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:
rtems_bdbuf_add_to_modified_list_after_access (bd);
200c8a4: 7f ff fc ad call 200bb58 <rtems_bdbuf_add_to_modified_list_after_access>
200c8a8: 90 10 00 11 mov %l1, %o0
break;
200c8ac: 30 80 00 07 b,a 200c8c8 <rtems_bdbuf_release+0xdc>
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_0);
200c8b0: 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);
200c8b4: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200c8b8: 82 10 60 1c or %g1, 0x1c, %g1 ! 4200001c <RAM_END+0x3fc0001c><== NOT EXECUTED
200c8bc: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200c8c0: 7f ff ed 11 call 2007d04 <rtems_fatal_error_occurred> <== NOT EXECUTED
200c8c4: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
}
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_usage ();
rtems_bdbuf_unlock_cache ();
200c8c8: 7f ff fc 3a call 200b9b0 <rtems_bdbuf_unlock_cache>
200c8cc: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
}
200c8d0: 81 c7 e0 08 ret
200c8d4: 81 e8 00 00 restore
0200bb00 <rtems_bdbuf_release_disk>:
static void
rtems_bdbuf_release_disk (rtems_disk_device *dd)
{
200bb00: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code sc = RTEMS_SUCCESSFUL;
sc = rtems_disk_release (dd);
200bb04: 7f ff dc 99 call 2002d68 <rtems_disk_release>
200bb08: 90 10 00 18 mov %i0, %o0
if (sc != RTEMS_SUCCESSFUL)
200bb0c: 80 a2 20 00 cmp %o0, 0
200bb10: 02 80 00 04 be 200bb20 <rtems_bdbuf_release_disk+0x20> <== ALWAYS TAKEN
200bb14: 11 10 80 00 sethi %hi(0x42000000), %o0
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_DISK_REL);
200bb18: 7f ff f0 7b call 2007d04 <rtems_fatal_error_occurred> <== NOT EXECUTED
200bb1c: 90 12 20 1f or %o0, 0x1f, %o0 ! 4200001f <RAM_END+0x3fc0001f><== NOT EXECUTED
200bb20: 81 c7 e0 08 ret
200bb24: 81 e8 00 00 restore
0200c754 <rtems_bdbuf_release_modified>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_release_modified (rtems_bdbuf_buffer *bd)
{
200c754: 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)
200c758: 03 00 80 81 sethi %hi(0x2020400), %g1
200c75c: c2 08 62 78 ldub [ %g1 + 0x278 ], %g1 ! 2020678 <bdbuf_cache+0x88>
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_release_modified (rtems_bdbuf_buffer *bd)
{
200c760: 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)
200c764: 80 a0 60 00 cmp %g1, 0
200c768: 02 80 00 1f be 200c7e4 <rtems_bdbuf_release_modified+0x90><== NEVER TAKEN
200c76c: b0 10 20 16 mov 0x16, %i0
return RTEMS_NOT_CONFIGURED;
if (bd == NULL)
200c770: 80 a2 20 00 cmp %o0, 0
200c774: 02 80 00 1c be 200c7e4 <rtems_bdbuf_release_modified+0x90><== NEVER TAKEN
200c778: 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();
200c77c: 7f ff fc 02 call 200b784 <rtems_bdbuf_lock_cache>
200c780: 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)
200c784: d0 07 bf fc ld [ %fp + -4 ], %o0
200c788: c2 02 20 28 ld [ %o0 + 0x28 ], %g1
200c78c: 80 a0 60 03 cmp %g1, 3
200c790: 0a 80 00 0d bcs 200c7c4 <rtems_bdbuf_release_modified+0x70><== NEVER TAKEN
200c794: 80 a0 60 05 cmp %g1, 5
200c798: 08 80 00 05 bleu 200c7ac <rtems_bdbuf_release_modified+0x58>
200c79c: 80 a0 60 06 cmp %g1, 6
200c7a0: 12 80 00 09 bne 200c7c4 <rtems_bdbuf_release_modified+0x70><== NEVER TAKEN
200c7a4: 01 00 00 00 nop
200c7a8: 30 80 00 04 b,a 200c7b8 <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);
200c7ac: 7f ff fc eb call 200bb58 <rtems_bdbuf_add_to_modified_list_after_access>
200c7b0: 01 00 00 00 nop
break;
200c7b4: 30 80 00 0a b,a 200c7dc <rtems_bdbuf_release_modified+0x88>
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
rtems_bdbuf_discard_buffer_after_access (bd);
200c7b8: 7f ff ff d6 call 200c710 <rtems_bdbuf_discard_buffer_after_access>
200c7bc: 01 00 00 00 nop
break;
200c7c0: 30 80 00 07 b,a 200c7dc <rtems_bdbuf_release_modified+0x88>
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_6);
200c7c4: 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);
200c7c8: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200c7cc: 82 10 60 04 or %g1, 4, %g1 ! 42000004 <RAM_END+0x3fc00004><== NOT EXECUTED
200c7d0: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200c7d4: 7f ff ed 4c call 2007d04 <rtems_fatal_error_occurred> <== NOT EXECUTED
200c7d8: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
}
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_usage ();
rtems_bdbuf_unlock_cache ();
200c7dc: 7f ff fc 75 call 200b9b0 <rtems_bdbuf_unlock_cache>
200c7e0: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
}
200c7e4: 81 c7 e0 08 ret
200c7e8: 81 e8 00 00 restore
0200c2dc <rtems_bdbuf_remove_from_tree>:
return bdbuf_cache.buffer_waiters.count;
}
static void
rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd)
{
200c2dc: 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;
200c2e0: 03 00 80 81 sethi %hi(0x2020400), %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));
200c2e4: 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;
200c2e8: e2 06 20 18 ld [ %i0 + 0x18 ], %l1
200c2ec: e8 06 20 1c ld [ %i0 + 0x1c ], %l4
rtems_blkdev_bnum block = node->block;
200c2f0: e6 06 20 20 ld [ %i0 + 0x20 ], %l3
rtems_bdbuf_buffer* p = *root;
200c2f4: e0 00 62 30 ld [ %g1 + 0x230 ], %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));
200c2f8: 90 10 00 12 mov %l2, %o0
200c2fc: 92 10 20 00 clr %o1
200c300: 40 00 1f 06 call 2013f18 <memset>
200c304: 94 10 20 80 mov 0x80, %o2
{
*buf_prev++ = p;
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
{
p->avl.cache = 1;
200c308: 88 10 20 01 mov 1, %g4
p = p->avl.right;
}
else if ((p->dev != dev) || (p->block != block))
{
p->avl.cache = -1;
200c30c: 10 80 00 1e b 200c384 <rtems_bdbuf_remove_from_tree+0xa8>
200c310: 86 10 3f ff mov -1, %g3
memset (buf_stack, 0, sizeof(buf_stack));
while (p != NULL)
{
*buf_prev++ = p;
200c314: e0 24 80 00 st %l0, [ %l2 ]
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200c318: 80 a4 40 01 cmp %l1, %g1
memset (buf_stack, 0, sizeof(buf_stack));
while (p != NULL)
{
*buf_prev++ = p;
200c31c: a4 04 a0 04 add %l2, 4, %l2
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200c320: 18 80 00 12 bgu 200c368 <rtems_bdbuf_remove_from_tree+0x8c><== NEVER TAKEN
200c324: c4 04 20 1c ld [ %l0 + 0x1c ], %g2
200c328: 80 a4 40 01 cmp %l1, %g1
200c32c: 12 80 00 06 bne 200c344 <rtems_bdbuf_remove_from_tree+0x68><== NEVER TAKEN
200c330: 80 a0 40 11 cmp %g1, %l1
200c334: 80 a5 00 02 cmp %l4, %g2
200c338: 38 80 00 0d bgu,a 200c36c <rtems_bdbuf_remove_from_tree+0x90><== NEVER TAKEN
200c33c: c8 2c 20 10 stb %g4, [ %l0 + 0x10 ] <== NOT EXECUTED
200c340: 80 a0 40 11 cmp %g1, %l1
200c344: 32 80 00 0f bne,a 200c380 <rtems_bdbuf_remove_from_tree+0xa4><== NEVER TAKEN
200c348: c6 2c 20 10 stb %g3, [ %l0 + 0x10 ] <== NOT EXECUTED
200c34c: 80 a0 80 14 cmp %g2, %l4
200c350: 32 80 00 0c bne,a 200c380 <rtems_bdbuf_remove_from_tree+0xa4><== NEVER TAKEN
200c354: c6 2c 20 10 stb %g3, [ %l0 + 0x10 ] <== NOT EXECUTED
200c358: c2 04 20 20 ld [ %l0 + 0x20 ], %g1
200c35c: 80 a0 40 13 cmp %g1, %l3
200c360: 1a 80 00 05 bcc 200c374 <rtems_bdbuf_remove_from_tree+0x98>
200c364: 01 00 00 00 nop
{
p->avl.cache = 1;
200c368: c8 2c 20 10 stb %g4, [ %l0 + 0x10 ]
p = p->avl.right;
200c36c: 10 80 00 06 b 200c384 <rtems_bdbuf_remove_from_tree+0xa8>
200c370: e0 04 20 0c ld [ %l0 + 0xc ], %l0
}
else if ((p->dev != dev) || (p->block != block))
200c374: 02 80 00 08 be 200c394 <rtems_bdbuf_remove_from_tree+0xb8>
200c378: 84 04 bf fc add %l2, -4, %g2
{
p->avl.cache = -1;
200c37c: c6 2c 20 10 stb %g3, [ %l0 + 0x10 ]
p = p->avl.left;
200c380: e0 04 20 08 ld [ %l0 + 8 ], %l0
bool modified = false;
memset (buf_stack, 0, sizeof(buf_stack));
while (p != NULL)
200c384: 80 a4 20 00 cmp %l0, 0
200c388: 32 bf ff e3 bne,a 200c314 <rtems_bdbuf_remove_from_tree+0x38><== ALWAYS TAKEN
200c38c: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
200c390: 30 80 00 b7 b,a 200c66c <rtems_bdbuf_remove_from_tree+0x390><== NOT EXECUTED
}
q = p;
buf_prev--;
if (buf_prev > buf_stack)
200c394: 82 07 bf 80 add %fp, -128, %g1
200c398: 80 a0 80 01 cmp %g2, %g1
200c39c: 08 80 00 03 bleu 200c3a8 <rtems_bdbuf_remove_from_tree+0xcc>
200c3a0: 86 10 20 00 clr %g3
{
p = *(buf_prev - 1);
200c3a4: 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)
200c3a8: c2 04 20 0c ld [ %l0 + 0xc ], %g1
200c3ac: 80 a0 60 00 cmp %g1, 0
200c3b0: 32 80 00 08 bne,a 200c3d0 <rtems_bdbuf_remove_from_tree+0xf4>
200c3b4: da 00 60 08 ld [ %g1 + 8 ], %o5
{
r = q->avl.left;
200c3b8: c2 04 20 08 ld [ %l0 + 8 ], %g1
if (r != NULL)
200c3bc: 80 a0 60 00 cmp %g1, 0
200c3c0: 02 80 00 21 be 200c444 <rtems_bdbuf_remove_from_tree+0x168>
200c3c4: a4 10 00 02 mov %g2, %l2
{
r->avl.bal = 0;
200c3c8: 10 80 00 1f b 200c444 <rtems_bdbuf_remove_from_tree+0x168>
200c3cc: c0 28 60 11 clrb [ %g1 + 0x11 ]
{
rtems_bdbuf_buffer **t;
r = q->avl.right;
if (r->avl.left == NULL)
200c3d0: 88 10 00 01 mov %g1, %g4
200c3d4: 80 a3 60 00 cmp %o5, 0
200c3d8: 12 80 00 0c bne 200c408 <rtems_bdbuf_remove_from_tree+0x12c><== NEVER TAKEN
200c3dc: 9a 10 3f ff mov -1, %o5
{
r->avl.left = q->avl.left;
r->avl.bal = q->avl.bal;
200c3e0: da 0c 20 11 ldub [ %l0 + 0x11 ], %o5
r = q->avl.right;
if (r->avl.left == NULL)
{
r->avl.left = q->avl.left;
200c3e4: c8 04 20 08 ld [ %l0 + 8 ], %g4
r->avl.bal = q->avl.bal;
200c3e8: da 28 60 11 stb %o5, [ %g1 + 0x11 ]
r = q->avl.right;
if (r->avl.left == NULL)
{
r->avl.left = q->avl.left;
200c3ec: 10 80 00 13 b 200c438 <rtems_bdbuf_remove_from_tree+0x15c>
200c3f0: c8 20 60 08 st %g4, [ %g1 + 8 ]
s = r;
while (s->avl.left != NULL)
{
*buf_prev++ = r = s;
s = r->avl.left;
200c3f4: d8 00 60 08 ld [ %g1 + 8 ], %o4 <== NOT EXECUTED
r->avl.cache = -1;
200c3f8: da 28 60 10 stb %o5, [ %g1 + 0x10 ] <== NOT EXECUTED
200c3fc: 88 10 00 01 mov %g1, %g4 <== NOT EXECUTED
t = buf_prev++;
s = r;
while (s->avl.left != NULL)
{
*buf_prev++ = r = s;
200c400: a4 04 a0 04 add %l2, 4, %l2 <== NOT EXECUTED
s = r->avl.left;
r->avl.cache = -1;
200c404: 82 10 00 0c mov %o4, %g1 <== NOT EXECUTED
else
{
t = buf_prev++;
s = r;
while (s->avl.left != NULL)
200c408: d8 00 60 08 ld [ %g1 + 8 ], %o4 <== NOT EXECUTED
200c40c: 80 a3 20 00 cmp %o4, 0 <== NOT EXECUTED
200c410: 32 bf ff f9 bne,a 200c3f4 <rtems_bdbuf_remove_from_tree+0x118><== NOT EXECUTED
200c414: 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;
200c418: d4 04 20 08 ld [ %l0 + 8 ], %o2 <== NOT EXECUTED
r->avl.left = s->avl.right;
200c41c: d6 00 60 0c ld [ %g1 + 0xc ], %o3 <== NOT EXECUTED
s->avl.right = q->avl.right;
s->avl.bal = q->avl.bal;
200c420: 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;
200c424: 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;
200c428: d4 20 60 08 st %o2, [ %g1 + 8 ] <== NOT EXECUTED
r->avl.left = s->avl.right;
200c42c: d6 21 20 08 st %o3, [ %g4 + 8 ] <== NOT EXECUTED
s->avl.right = q->avl.right;
200c430: d8 20 60 0c st %o4, [ %g1 + 0xc ] <== NOT EXECUTED
s->avl.bal = q->avl.bal;
200c434: da 28 60 11 stb %o5, [ %g1 + 0x11 ] <== NOT EXECUTED
s->avl.cache = 1;
200c438: 88 10 20 01 mov 1, %g4
200c43c: c8 28 60 10 stb %g4, [ %g1 + 0x10 ]
*t = q = s;
200c440: c2 20 80 00 st %g1, [ %g2 ]
}
}
if (p != NULL)
200c444: 80 a0 e0 00 cmp %g3, 0
200c448: 02 80 00 0d be 200c47c <rtems_bdbuf_remove_from_tree+0x1a0>
200c44c: 05 00 80 81 sethi %hi(0x2020400), %g2
{
if (p->avl.cache == -1)
200c450: c4 48 e0 10 ldsb [ %g3 + 0x10 ], %g2
200c454: 80 a0 bf ff cmp %g2, -1
200c458: 32 80 00 03 bne,a 200c464 <rtems_bdbuf_remove_from_tree+0x188>
200c45c: c2 20 e0 0c st %g1, [ %g3 + 0xc ]
200c460: c2 20 e0 08 st %g1, [ %g3 + 8 ]
modified = true;
while (modified)
{
if (buf_prev > buf_stack)
200c464: 82 07 bf 80 add %fp, -128, %g1
200c468: 80 a4 80 01 cmp %l2, %g1
200c46c: 18 80 00 06 bgu 200c484 <rtems_bdbuf_remove_from_tree+0x1a8>
200c470: 94 10 00 01 mov %g1, %o2
200c474: 81 c7 e0 08 ret
200c478: 81 e8 00 00 restore
p->avl.right = q;
}
}
else
{
*root = q;
200c47c: 10 bf ff fa b 200c464 <rtems_bdbuf_remove_from_tree+0x188>
200c480: c2 20 a2 30 st %g1, [ %g2 + 0x230 ]
{
case -1:
p->avl.bal = 0;
break;
case 0:
p->avl.bal = 1;
200c484: 9a 10 20 01 mov 1, %o5
case +1:
p->avl.bal = 0;
break;
case 0:
p->avl.bal = -1;
200c488: 96 10 3f ff mov -1, %o3
while (modified)
{
if (buf_prev > buf_stack)
{
p = *--buf_prev;
200c48c: a4 04 bf fc add %l2, -4, %l2
200c490: c2 04 80 00 ld [ %l2 ], %g1
else
{
break;
}
if (p->avl.cache == -1)
200c494: d8 48 60 10 ldsb [ %g1 + 0x10 ], %o4
200c498: 80 a3 3f ff cmp %o4, -1
200c49c: 12 80 00 2c bne 200c54c <rtems_bdbuf_remove_from_tree+0x270>
200c4a0: c4 08 60 11 ldub [ %g1 + 0x11 ], %g2
{
/* rebalance left branch */
switch (p->avl.bal)
200c4a4: 85 28 a0 18 sll %g2, 0x18, %g2
200c4a8: 85 38 a0 18 sra %g2, 0x18, %g2
200c4ac: 80 a0 a0 00 cmp %g2, 0
200c4b0: 22 80 00 35 be,a 200c584 <rtems_bdbuf_remove_from_tree+0x2a8>
200c4b4: da 28 60 11 stb %o5, [ %g1 + 0x11 ]
200c4b8: 80 a0 a0 01 cmp %g2, 1
200c4bc: 02 80 00 06 be 200c4d4 <rtems_bdbuf_remove_from_tree+0x1f8>
200c4c0: 80 a0 bf ff cmp %g2, -1
200c4c4: 12 80 00 57 bne 200c620 <rtems_bdbuf_remove_from_tree+0x344><== NEVER TAKEN
200c4c8: 84 10 00 01 mov %g1, %g2
{
/* rebalance right branch */
switch (p->avl.bal)
{
case +1:
p->avl.bal = 0;
200c4cc: 10 80 00 55 b 200c620 <rtems_bdbuf_remove_from_tree+0x344>
200c4d0: c0 28 60 11 clrb [ %g1 + 0x11 ]
p->avl.bal = 1;
modified = false;
break;
case +1:
p1 = p->avl.right;
200c4d4: c6 00 60 0c ld [ %g1 + 0xc ], %g3
if (p1->avl.bal >= 0) /* simple RR-turn */
200c4d8: c4 48 e0 11 ldsb [ %g3 + 0x11 ], %g2
200c4dc: 80 a0 a0 00 cmp %g2, 0
200c4e0: 06 80 00 08 bl 200c500 <rtems_bdbuf_remove_from_tree+0x224><== NEVER TAKEN
200c4e4: c8 00 e0 08 ld [ %g3 + 8 ], %g4
{
p->avl.right = p1->avl.left;
200c4e8: c8 20 60 0c st %g4, [ %g1 + 0xc ]
p1->avl.left = p;
if (p1->avl.bal == 0)
200c4ec: 80 a0 a0 00 cmp %g2, 0
200c4f0: 12 80 00 33 bne 200c5bc <rtems_bdbuf_remove_from_tree+0x2e0><== NEVER TAKEN
200c4f4: c2 20 e0 08 st %g1, [ %g3 + 8 ]
{
p1->avl.bal = -1;
200c4f8: 10 80 00 2f b 200c5b4 <rtems_bdbuf_remove_from_tree+0x2d8>
200c4fc: d8 28 e0 11 stb %o4, [ %g3 + 0x11 ]
}
else /* double RL-turn */
{
p2 = p1->avl.left;
p1->avl.left = p2->avl.right;
200c500: c4 01 20 0c ld [ %g4 + 0xc ], %g2 <== NOT EXECUTED
p2->avl.right = p1;
200c504: c6 21 20 0c st %g3, [ %g4 + 0xc ] <== NOT EXECUTED
}
else /* double RL-turn */
{
p2 = p1->avl.left;
p1->avl.left = p2->avl.right;
200c508: c4 20 e0 08 st %g2, [ %g3 + 8 ] <== NOT EXECUTED
p2->avl.right = p1;
p->avl.right = p2->avl.left;
200c50c: 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;
200c510: 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;
200c514: d2 20 60 0c st %o1, [ %g1 + 0xc ] <== NOT EXECUTED
p2->avl.left = p;
200c518: c2 21 20 08 st %g1, [ %g4 + 8 ] <== NOT EXECUTED
if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
200c51c: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED
200c520: 12 80 00 04 bne 200c530 <rtems_bdbuf_remove_from_tree+0x254><== NOT EXECUTED
200c524: 84 10 00 04 mov %g4, %g2 <== NOT EXECUTED
200c528: 10 80 00 03 b 200c534 <rtems_bdbuf_remove_from_tree+0x258><== NOT EXECUTED
200c52c: d8 28 60 11 stb %o4, [ %g1 + 0x11 ] <== NOT EXECUTED
200c530: c0 28 60 11 clrb [ %g1 + 0x11 ] <== NOT EXECUTED
if (p2->avl.bal == -1) p1->avl.bal = 1; else p1->avl.bal = 0;
200c534: c2 49 20 11 ldsb [ %g4 + 0x11 ], %g1 <== NOT EXECUTED
200c538: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED
200c53c: 32 80 00 36 bne,a 200c614 <rtems_bdbuf_remove_from_tree+0x338><== NOT EXECUTED
200c540: c0 28 e0 11 clrb [ %g3 + 0x11 ] <== NOT EXECUTED
200c544: 10 80 00 34 b 200c614 <rtems_bdbuf_remove_from_tree+0x338><== NOT EXECUTED
200c548: da 28 e0 11 stb %o5, [ %g3 + 0x11 ] <== NOT EXECUTED
}
}
else
{
/* rebalance right branch */
switch (p->avl.bal)
200c54c: 85 28 a0 18 sll %g2, 0x18, %g2
200c550: 85 38 a0 18 sra %g2, 0x18, %g2
200c554: 80 a0 a0 00 cmp %g2, 0
200c558: 22 80 00 0b be,a 200c584 <rtems_bdbuf_remove_from_tree+0x2a8><== NEVER TAKEN
200c55c: d6 28 60 11 stb %o3, [ %g1 + 0x11 ] <== NOT EXECUTED
200c560: 80 a0 a0 01 cmp %g2, 1
200c564: 02 80 00 06 be 200c57c <rtems_bdbuf_remove_from_tree+0x2a0><== ALWAYS TAKEN
200c568: 80 a0 bf ff cmp %g2, -1
200c56c: 12 80 00 2d bne 200c620 <rtems_bdbuf_remove_from_tree+0x344><== NOT EXECUTED
200c570: 84 10 00 01 mov %g1, %g2 <== NOT EXECUTED
p->avl.bal = -1;
modified = false;
break;
case -1:
p1 = p->avl.left;
200c574: 10 80 00 07 b 200c590 <rtems_bdbuf_remove_from_tree+0x2b4><== NOT EXECUTED
200c578: c6 00 60 08 ld [ %g1 + 8 ], %g3 <== NOT EXECUTED
{
/* rebalance right branch */
switch (p->avl.bal)
{
case +1:
p->avl.bal = 0;
200c57c: 10 80 00 28 b 200c61c <rtems_bdbuf_remove_from_tree+0x340>
200c580: c0 28 60 11 clrb [ %g1 + 0x11 ]
break;
case 0:
p->avl.bal = -1;
200c584: 84 10 00 01 mov %g1, %g2
200c588: 10 80 00 27 b 200c624 <rtems_bdbuf_remove_from_tree+0x348>
200c58c: 82 10 20 00 clr %g1
break;
case -1:
p1 = p->avl.left;
if (p1->avl.bal <= 0) /* simple LL-turn */
200c590: c4 48 e0 11 ldsb [ %g3 + 0x11 ], %g2 <== NOT EXECUTED
200c594: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
200c598: 14 80 00 0d bg 200c5cc <rtems_bdbuf_remove_from_tree+0x2f0><== NOT EXECUTED
200c59c: c8 00 e0 0c ld [ %g3 + 0xc ], %g4 <== NOT EXECUTED
{
p->avl.left = p1->avl.right;
200c5a0: c8 20 60 08 st %g4, [ %g1 + 8 ] <== NOT EXECUTED
p1->avl.right = p;
if (p1->avl.bal == 0)
200c5a4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
200c5a8: 12 80 00 05 bne 200c5bc <rtems_bdbuf_remove_from_tree+0x2e0><== NOT EXECUTED
200c5ac: c2 20 e0 0c st %g1, [ %g3 + 0xc ] <== NOT EXECUTED
{
p1->avl.bal = 1;
200c5b0: da 28 e0 11 stb %o5, [ %g3 + 0x11 ] <== NOT EXECUTED
200c5b4: 10 bf ff f5 b 200c588 <rtems_bdbuf_remove_from_tree+0x2ac>
200c5b8: 84 10 00 03 mov %g3, %g2
modified = false;
}
else
{
p->avl.bal = 0;
200c5bc: c0 28 60 11 clrb [ %g1 + 0x11 ] <== NOT EXECUTED
p1->avl.bal = 0;
200c5c0: c0 28 e0 11 clrb [ %g3 + 0x11 ] <== NOT EXECUTED
200c5c4: 10 80 00 17 b 200c620 <rtems_bdbuf_remove_from_tree+0x344><== NOT EXECUTED
200c5c8: 84 10 00 03 mov %g3, %g2 <== NOT EXECUTED
}
else /* double LR-turn */
{
p2 = p1->avl.right;
p1->avl.right = p2->avl.left;
200c5cc: c4 01 20 08 ld [ %g4 + 8 ], %g2 <== NOT EXECUTED
p2->avl.left = p1;
200c5d0: c6 21 20 08 st %g3, [ %g4 + 8 ] <== NOT EXECUTED
}
else /* double LR-turn */
{
p2 = p1->avl.right;
p1->avl.right = p2->avl.left;
200c5d4: c4 20 e0 0c st %g2, [ %g3 + 0xc ] <== NOT EXECUTED
p2->avl.left = p1;
p->avl.left = p2->avl.right;
200c5d8: 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;
200c5dc: 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;
200c5e0: d8 20 60 08 st %o4, [ %g1 + 8 ] <== NOT EXECUTED
p2->avl.right = p;
200c5e4: c2 21 20 0c st %g1, [ %g4 + 0xc ] <== NOT EXECUTED
if (p2->avl.bal == -1) p->avl.bal = 1; else p->avl.bal = 0;
200c5e8: 80 a0 bf ff cmp %g2, -1 <== NOT EXECUTED
200c5ec: 12 80 00 04 bne 200c5fc <rtems_bdbuf_remove_from_tree+0x320><== NOT EXECUTED
200c5f0: 84 10 00 04 mov %g4, %g2 <== NOT EXECUTED
200c5f4: 10 80 00 03 b 200c600 <rtems_bdbuf_remove_from_tree+0x324><== NOT EXECUTED
200c5f8: da 28 60 11 stb %o5, [ %g1 + 0x11 ] <== NOT EXECUTED
200c5fc: c0 28 60 11 clrb [ %g1 + 0x11 ] <== NOT EXECUTED
if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
200c600: c2 49 20 11 ldsb [ %g4 + 0x11 ], %g1 <== NOT EXECUTED
200c604: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
200c608: 32 80 00 03 bne,a 200c614 <rtems_bdbuf_remove_from_tree+0x338><== NOT EXECUTED
200c60c: c0 28 e0 11 clrb [ %g3 + 0x11 ] <== NOT EXECUTED
200c610: d6 28 e0 11 stb %o3, [ %g3 + 0x11 ] <== NOT EXECUTED
p = p2;
p2->avl.bal = 0;
200c614: 10 80 00 03 b 200c620 <rtems_bdbuf_remove_from_tree+0x344><== NOT EXECUTED
200c618: c0 29 20 11 clrb [ %g4 + 0x11 ] <== NOT EXECUTED
200c61c: 84 10 00 01 mov %g1, %g2
200c620: 82 10 20 01 mov 1, %g1
default:
break;
}
}
if (buf_prev > buf_stack)
200c624: 80 a4 80 0a cmp %l2, %o2
200c628: 28 80 00 09 bleu,a 200c64c <rtems_bdbuf_remove_from_tree+0x370>
200c62c: 03 00 80 81 sethi %hi(0x2020400), %g1
{
q = *(buf_prev - 1);
200c630: c6 04 bf fc ld [ %l2 + -4 ], %g3
if (q->avl.cache == -1)
200c634: c8 48 e0 10 ldsb [ %g3 + 0x10 ], %g4
200c638: 80 a1 3f ff cmp %g4, -1
200c63c: 32 80 00 07 bne,a 200c658 <rtems_bdbuf_remove_from_tree+0x37c><== NEVER TAKEN
200c640: c4 20 e0 0c st %g2, [ %g3 + 0xc ] <== NOT EXECUTED
{
q->avl.left = p;
200c644: 10 80 00 05 b 200c658 <rtems_bdbuf_remove_from_tree+0x37c>
200c648: c4 20 e0 08 st %g2, [ %g3 + 8 ]
q->avl.right = p;
}
}
else
{
*root = p;
200c64c: c4 20 62 30 st %g2, [ %g1 + 0x230 ]
200c650: 81 c7 e0 08 ret
200c654: 81 e8 00 00 restore
*root = q;
}
modified = true;
while (modified)
200c658: 80 88 60 ff btst 0xff, %g1
200c65c: 12 bf ff 8d bne 200c490 <rtems_bdbuf_remove_from_tree+0x1b4><== ALWAYS TAKEN
200c660: a4 04 bf fc add %l2, -4, %l2
200c664: 81 c7 e0 08 ret <== NOT EXECUTED
200c668: 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);
200c66c: 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);
200c670: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200c674: 82 10 60 09 or %g1, 9, %g1 ! 42000009 <RAM_END+0x3fc00009><== NOT EXECUTED
200c678: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200c67c: 7f ff ed a2 call 2007d04 <rtems_fatal_error_occurred> <== NOT EXECUTED
200c680: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
0200c688 <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)
{
200c688: 9d e3 bf a0 save %sp, -96, %sp
switch (bd->state)
200c68c: c2 06 20 28 ld [ %i0 + 0x28 ], %g1
200c690: 80 a0 60 00 cmp %g1, 0
200c694: 02 80 00 0d be 200c6c8 <rtems_bdbuf_remove_from_tree_and_lru_list+0x40>
200c698: 80 a0 60 02 cmp %g1, 2
200c69c: 12 80 00 05 bne 200c6b0 <rtems_bdbuf_remove_from_tree_and_lru_list+0x28><== NEVER TAKEN
200c6a0: 01 00 00 00 nop
{
case RTEMS_BDBUF_STATE_FREE:
break;
case RTEMS_BDBUF_STATE_CACHED:
rtems_bdbuf_remove_from_tree (bd);
200c6a4: 7f ff ff 0e call 200c2dc <rtems_bdbuf_remove_from_tree>
200c6a8: 90 10 00 18 mov %i0, %o0
break;
200c6ac: 30 80 00 07 b,a 200c6c8 <rtems_bdbuf_remove_from_tree_and_lru_list+0x40>
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_10);
200c6b0: 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);
200c6b4: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200c6b8: 82 10 60 08 or %g1, 8, %g1 ! 42000008 <RAM_END+0x3fc00008><== NOT EXECUTED
200c6bc: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200c6c0: 7f ff ed 91 call 2007d04 <rtems_fatal_error_occurred> <== NOT EXECUTED
200c6c4: 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 );
200c6c8: 7f ff ee d7 call 2008224 <_Chain_Extract>
200c6cc: 81 e8 00 00 restore
0200bd7c <rtems_bdbuf_restore_preemption>:
static void
rtems_bdbuf_restore_preemption (rtems_mode prev_mode)
{
200bd7c: 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);
200bd80: 13 00 00 3f sethi %hi(0xfc00), %o1
return prev_mode;
}
static void
rtems_bdbuf_restore_preemption (rtems_mode prev_mode)
{
200bd84: 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);
200bd88: 90 10 00 18 mov %i0, %o0
200bd8c: 92 12 63 ff or %o1, 0x3ff, %o1
200bd90: 40 00 12 96 call 20107e8 <rtems_task_mode>
200bd94: 94 07 a0 44 add %fp, 0x44, %o2
if (sc != RTEMS_SUCCESSFUL)
200bd98: 80 a2 20 00 cmp %o0, 0
200bd9c: 02 80 00 04 be 200bdac <rtems_bdbuf_restore_preemption+0x30><== ALWAYS TAKEN
200bda0: 11 10 80 00 sethi %hi(0x42000000), %o0
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_PREEMPT_RST);
200bda4: 7f ff ef d8 call 2007d04 <rtems_fatal_error_occurred> <== NOT EXECUTED
200bda8: 90 12 20 11 or %o0, 0x11, %o0 ! 42000011 <RAM_END+0x3fc00011><== NOT EXECUTED
200bdac: 81 c7 e0 08 ret
200bdb0: 81 e8 00 00 restore
0200b7dc <rtems_bdbuf_swapout_modified_processing>:
rtems_chain_control* chain,
rtems_chain_control* transfer,
bool sync_active,
bool update_timers,
uint32_t timer_delta)
{
200b7dc: 9d e3 bf a0 save %sp, -96, %sp
if (!rtems_chain_is_empty (chain))
200b7e0: 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;
200b7e4: b2 06 60 04 add %i1, 4, %i1
200b7e8: 80 a2 40 19 cmp %o1, %i1
200b7ec: 02 80 00 6a be 200b994 <rtems_bdbuf_swapout_modified_processing+0x1b8>
200b7f0: 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))
200b7f4: 80 8e e0 ff btst 0xff, %i3
200b7f8: 02 80 00 0a be 200b820 <rtems_bdbuf_swapout_modified_processing+0x44>
200b7fc: 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,
200b800: c2 06 00 00 ld [ %i0 ], %g1
200b804: 80 a0 7f ff cmp %g1, -1
200b808: 12 80 00 07 bne 200b824 <rtems_bdbuf_swapout_modified_processing+0x48>
200b80c: 29 00 80 81 sethi %hi(0x2020400), %l4
200b810: c2 06 20 04 ld [ %i0 + 4 ], %g1
200b814: 80 a0 7f ff cmp %g1, -1
200b818: 22 80 00 03 be,a 200b824 <rtems_bdbuf_swapout_modified_processing+0x48><== ALWAYS TAKEN
200b81c: aa 10 20 01 mov 1, %l5
}
static bool
rtems_bdbuf_has_buffer_waiters (void)
{
return bdbuf_cache.buffer_waiters.count;
200b820: 29 00 80 81 sethi %hi(0x2020400), %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))
200b824: aa 0d 60 ff and %l5, 0xff, %l5
200b828: b6 0e e0 ff and %i3, 0xff, %i3
|| rtems_bdbuf_has_buffer_waiters ())
bd->hold_timer = 0;
if (bd->hold_timer)
{
if (update_timers)
200b82c: b8 0f 20 ff and %i4, 0xff, %i4
}
static bool
rtems_bdbuf_has_buffer_waiters (void)
{
return bdbuf_cache.buffer_waiters.count;
200b830: a8 15 21 f0 or %l4, 0x1f0, %l4
200b834: 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;
200b838: 10 80 00 54 b 200b988 <rtems_bdbuf_swapout_modified_processing+0x1ac>
200b83c: 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))
200b840: 12 80 00 12 bne 200b888 <rtems_bdbuf_swapout_modified_processing+0xac>
200b844: 80 a6 e0 00 cmp %i3, 0
200b848: 02 80 00 0c be 200b878 <rtems_bdbuf_swapout_modified_processing+0x9c>
200b84c: 01 00 00 00 nop
200b850: c4 06 00 00 ld [ %i0 ], %g2
200b854: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
200b858: 80 a0 80 01 cmp %g2, %g1
200b85c: 12 80 00 07 bne 200b878 <rtems_bdbuf_swapout_modified_processing+0x9c>
200b860: 01 00 00 00 nop
200b864: c4 06 20 04 ld [ %i0 + 4 ], %g2
200b868: c2 04 20 1c ld [ %l0 + 0x1c ], %g1
200b86c: 80 a0 80 01 cmp %g2, %g1
200b870: 02 80 00 06 be 200b888 <rtems_bdbuf_swapout_modified_processing+0xac><== ALWAYS TAKEN
200b874: 01 00 00 00 nop
}
static bool
rtems_bdbuf_has_buffer_waiters (void)
{
return bdbuf_cache.buffer_waiters.count;
200b878: 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))
200b87c: 80 a0 60 00 cmp %g1, 0
200b880: 02 80 00 03 be 200b88c <rtems_bdbuf_swapout_modified_processing+0xb0>
200b884: 01 00 00 00 nop
|| rtems_bdbuf_has_buffer_waiters ())
bd->hold_timer = 0;
200b888: c0 24 20 34 clr [ %l0 + 0x34 ]
if (bd->hold_timer)
200b88c: c2 04 20 34 ld [ %l0 + 0x34 ], %g1
200b890: 80 a0 60 00 cmp %g1, 0
200b894: 22 80 00 13 be,a 200b8e0 <rtems_bdbuf_swapout_modified_processing+0x104>
200b898: c2 06 00 00 ld [ %i0 ], %g1
{
if (update_timers)
200b89c: 80 a7 20 00 cmp %i4, 0
200b8a0: 02 80 00 0b be 200b8cc <rtems_bdbuf_swapout_modified_processing+0xf0>
200b8a4: 01 00 00 00 nop
{
if (bd->hold_timer > timer_delta)
200b8a8: c2 04 20 34 ld [ %l0 + 0x34 ], %g1
200b8ac: 80 a0 40 1d cmp %g1, %i5
200b8b0: 08 80 00 06 bleu 200b8c8 <rtems_bdbuf_swapout_modified_processing+0xec>
200b8b4: 01 00 00 00 nop
bd->hold_timer -= timer_delta;
200b8b8: c2 04 20 34 ld [ %l0 + 0x34 ], %g1
200b8bc: 82 20 40 1d sub %g1, %i5, %g1
200b8c0: c2 24 20 34 st %g1, [ %l0 + 0x34 ]
200b8c4: 30 80 00 02 b,a 200b8cc <rtems_bdbuf_swapout_modified_processing+0xf0>
else
bd->hold_timer = 0;
200b8c8: c0 24 20 34 clr [ %l0 + 0x34 ]
}
if (bd->hold_timer)
200b8cc: c2 04 20 34 ld [ %l0 + 0x34 ], %g1
200b8d0: 80 a0 60 00 cmp %g1, 0
200b8d4: 32 80 00 2d bne,a 200b988 <rtems_bdbuf_swapout_modified_processing+0x1ac>
200b8d8: 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)
200b8dc: c2 06 00 00 ld [ %i0 ], %g1
200b8e0: 80 a0 7f ff cmp %g1, -1
200b8e4: 32 80 00 09 bne,a 200b908 <rtems_bdbuf_swapout_modified_processing+0x12c>
200b8e8: c4 04 20 18 ld [ %l0 + 0x18 ], %g2
200b8ec: c2 06 20 04 ld [ %i0 + 4 ], %g1
200b8f0: 80 a0 7f ff cmp %g1, -1
200b8f4: 32 80 00 05 bne,a 200b908 <rtems_bdbuf_swapout_modified_processing+0x12c><== NEVER TAKEN
200b8f8: c4 04 20 18 ld [ %l0 + 0x18 ], %g2 <== NOT EXECUTED
*dev = bd->dev;
200b8fc: c4 1c 20 18 ldd [ %l0 + 0x18 ], %g2
200b900: c4 3e 00 00 std %g2, [ %i0 ]
if (bd->dev == *dev)
200b904: c4 04 20 18 ld [ %l0 + 0x18 ], %g2
200b908: c2 06 00 00 ld [ %i0 ], %g1
200b90c: 80 a0 80 01 cmp %g2, %g1
200b910: 32 80 00 1e bne,a 200b988 <rtems_bdbuf_swapout_modified_processing+0x1ac><== NEVER TAKEN
200b914: e0 04 00 00 ld [ %l0 ], %l0 <== NOT EXECUTED
200b918: c4 04 20 1c ld [ %l0 + 0x1c ], %g2
200b91c: c2 06 20 04 ld [ %i0 + 4 ], %g1
200b920: 80 a0 80 01 cmp %g2, %g1
200b924: 32 80 00 19 bne,a 200b988 <rtems_bdbuf_swapout_modified_processing+0x1ac><== NEVER TAKEN
200b928: 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 );
200b92c: 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;
200b930: e4 24 20 28 st %l2, [ %l0 + 0x28 ]
200b934: 7f ff f2 3c call 2008224 <_Chain_Extract>
200b938: e2 04 00 00 ld [ %l0 ], %l1
rtems_chain_extract (node);
tnode = tnode->previous;
while (node && !rtems_chain_is_head (transfer, tnode))
200b93c: 10 80 00 0a b 200b964 <rtems_bdbuf_swapout_modified_processing+0x188>
200b940: d0 04 e0 04 ld [ %l3 + 4 ], %o0
{
rtems_bdbuf_buffer* tbd = (rtems_bdbuf_buffer*) tnode;
if (bd->block > tbd->block)
200b944: c4 04 20 20 ld [ %l0 + 0x20 ], %g2
200b948: 80 a0 80 01 cmp %g2, %g1
200b94c: 28 80 00 06 bleu,a 200b964 <rtems_bdbuf_swapout_modified_processing+0x188>
200b950: 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 );
200b954: 40 00 14 c7 call 2010c70 <_Chain_Insert>
200b958: 92 10 00 10 mov %l0, %o1
rtems_chain_extract (node);
tnode = tnode->previous;
while (node && !rtems_chain_is_head (transfer, tnode))
200b95c: 10 80 00 0b b 200b988 <rtems_bdbuf_swapout_modified_processing+0x1ac>
200b960: a0 10 00 11 mov %l1, %l0
200b964: 80 a4 20 00 cmp %l0, 0
200b968: 12 80 00 04 bne 200b978 <rtems_bdbuf_swapout_modified_processing+0x19c><== ALWAYS TAKEN
200b96c: 80 a2 00 1a cmp %o0, %i2
200b970: 10 80 00 06 b 200b988 <rtems_bdbuf_swapout_modified_processing+0x1ac><== NOT EXECUTED
200b974: a0 10 00 11 mov %l1, %l0 <== NOT EXECUTED
200b978: 32 bf ff f3 bne,a 200b944 <rtems_bdbuf_swapout_modified_processing+0x168>
200b97c: 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);
200b980: 10 80 00 07 b 200b99c <rtems_bdbuf_swapout_modified_processing+0x1c0>
200b984: 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))
200b988: 80 a4 00 19 cmp %l0, %i1
200b98c: 12 bf ff ad bne 200b840 <rtems_bdbuf_swapout_modified_processing+0x64>
200b990: 80 a5 60 00 cmp %l5, 0
200b994: 81 c7 e0 08 ret
200b998: 81 e8 00 00 restore
200b99c: 90 10 00 1a mov %i2, %o0
200b9a0: 40 00 14 b4 call 2010c70 <_Chain_Insert>
200b9a4: a0 10 00 11 mov %l1, %l0
200b9a8: 10 bf ff f9 b 200b98c <rtems_bdbuf_swapout_modified_processing+0x1b0>
200b9ac: 80 a4 00 19 cmp %l0, %i1
0200cdac <rtems_bdbuf_swapout_task>:
* not this.
* @return rtems_task Not used.
*/
static rtems_task
rtems_bdbuf_swapout_task (rtems_task_argument arg)
{
200cdac: 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;;
200cdb0: 21 00 80 7a sethi %hi(0x201e800), %l0
200cdb4: a0 14 20 2c or %l0, 0x2c, %l0 ! 201e82c <rtems_bdbuf_configuration>
uint32_t timer_delta;
transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
200cdb8: 7f ff fd 33 call 200c284 <rtems_bdbuf_swapout_writereq_alloc>
200cdbc: 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);
200cdc0: 03 00 80 7f sethi %hi(0x201fc00), %g1
200cdc4: d2 00 62 4c ld [ %g1 + 0x24c ], %o1 ! 201fe4c <Configuration+0xc>
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
200cdc8: 82 07 bf d0 add %fp, -48, %g1
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
200cdcc: 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);
200cdd0: 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;
200cdd4: 05 3f ff ff sethi %hi(0xfffffc00), %g2
200cdd8: c2 27 bf d0 st %g1, [ %fp + -48 ]
200cddc: 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);
200cde0: 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;
200cde4: 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 ();
200cde8: d0 27 bf ec st %o0, [ %fp + -20 ]
rtems_chain_initialize_empty (&transfer.bds);
transfer.dev = BDBUF_INVALID_DEV;
200cdec: c4 3f bf e0 std %g2, [ %fp + -32 ]
the_chain->permanent_null = NULL;
200cdf0: c0 27 bf d4 clr [ %fp + -44 ]
transfer.syncing = false;
200cdf4: c0 2f bf e8 clrb [ %fp + -24 ]
/*
* Localise the period.
*/
period_in_ticks = RTEMS_MICROSECONDS_TO_TICKS (period_in_msecs * 1000);
200cdf8: 91 2c a0 07 sll %l2, 7, %o0
200cdfc: 90 22 00 01 sub %o0, %g1, %o0
200ce00: 90 02 00 12 add %o0, %l2, %o0
200ce04: 40 00 3e ac call 201c8b4 <.udiv>
200ce08: 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 );
200ce0c: 3b 00 80 81 sethi %hi(0x2020400), %i5
200ce10: b6 10 00 08 mov %o0, %i3
rtems_bdbuf_swapout_workers_open (void)
{
rtems_status_code sc;
size_t w;
rtems_bdbuf_lock_cache ();
200ce14: 7f ff fa 5c call 200b784 <rtems_bdbuf_lock_cache>
200ce18: 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,
200ce1c: 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;
200ce20: 31 3f ff ff sethi %hi(0xfffffc00), %i0
sc = rtems_task_create (rtems_build_name('B', 'D', 'o', 'a' + w),
(bdbuf_config.swapout_priority ?
200ce24: 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;
200ce28: b0 16 23 ff or %i0, 0x3ff, %i0
sc = rtems_task_create (rtems_build_name('B', 'D', 'o', 'a' + w),
(bdbuf_config.swapout_priority ?
200ce2c: e6 04 20 08 ld [ %l0 + 8 ], %l3
200ce30: ba 17 61 f8 or %i5, 0x1f8, %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),
200ce34: 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,
200ce38: ac 15 a1 2c or %l6, 0x12c, %l6
rtems_status_code sc;
size_t w;
rtems_bdbuf_lock_cache ();
for (w = 0; w < bdbuf_config.swapout_workers; w++)
200ce3c: 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;
200ce40: 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;
200ce44: 10 80 00 31 b 200cf08 <rtems_bdbuf_swapout_task+0x15c>
200ce48: 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));
200ce4c: 7f ff dc 2b call 2003ef8 <malloc> <== NOT EXECUTED
200ce50: 90 10 20 38 mov 0x38, %o0 <== NOT EXECUTED
if (!worker)
200ce54: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
200ce58: 12 80 00 05 bne 200ce6c <rtems_bdbuf_swapout_task+0xc0> <== NOT EXECUTED
200ce5c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_NOMEM);
200ce60: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200ce64: 10 80 00 1e b 200cedc <rtems_bdbuf_swapout_task+0x130> <== NOT EXECUTED
200ce68: 90 12 20 15 or %o0, 0x15, %o0 ! 42000015 <RAM_END+0x3fc00015><== NOT EXECUTED
200ce6c: 7f ff ec e2 call 20081f4 <_Chain_Append> <== NOT EXECUTED
200ce70: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED
rtems_chain_append (&bdbuf_cache.swapout_workers, &worker->link);
worker->enabled = true;
200ce74: e8 2c 20 0c stb %l4, [ %l0 + 0xc ] <== NOT EXECUTED
worker->transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
200ce78: 7f ff fd 03 call 200c284 <rtems_bdbuf_swapout_writereq_alloc><== NOT EXECUTED
200ce7c: 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);
200ce80: 82 04 20 14 add %l0, 0x14, %g1 <== NOT EXECUTED
200ce84: d0 24 20 2c st %o0, [ %l0 + 0x2c ] <== NOT EXECUTED
200ce88: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
200ce8c: c0 24 20 14 clr [ %l0 + 0x14 ] <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
200ce90: 82 04 20 10 add %l0, 0x10, %g1 <== NOT EXECUTED
rtems_chain_initialize_empty (&worker->transfer.bds);
worker->transfer.dev = BDBUF_INVALID_DEV;
200ce94: f0 3c 20 20 std %i0, [ %l0 + 0x20 ] <== NOT EXECUTED
200ce98: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED
sc = rtems_task_create (rtems_build_name('B', 'D', 'o', 'a' + w),
200ce9c: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
200cea0: 12 80 00 03 bne 200ceac <rtems_bdbuf_swapout_task+0x100> <== NOT EXECUTED
200cea4: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
200cea8: 92 10 20 0f mov 0xf, %o1 <== NOT EXECUTED
200ceac: 90 04 60 61 add %l1, 0x61, %o0 <== NOT EXECUTED
200ceb0: 15 00 00 08 sethi %hi(0x2000), %o2 <== NOT EXECUTED
200ceb4: 90 12 00 17 or %o0, %l7, %o0 <== NOT EXECUTED
200ceb8: 96 10 24 00 mov 0x400, %o3 <== NOT EXECUTED
200cebc: 98 10 20 00 clr %o4 <== NOT EXECUTED
200cec0: 7f ff ea 83 call 20078cc <rtems_task_create> <== NOT EXECUTED
200cec4: 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)
200cec8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200cecc: 22 80 00 06 be,a 200cee4 <rtems_bdbuf_swapout_task+0x138><== NOT EXECUTED
200ced0: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_CREATE);
200ced4: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200ced8: 90 12 20 16 or %o0, 0x16, %o0 ! 42000016 <RAM_END+0x3fc00016><== NOT EXECUTED
200cedc: 7f ff eb 8a call 2007d04 <rtems_fatal_error_occurred> <== NOT EXECUTED
200cee0: 01 00 00 00 nop <== NOT EXECUTED
sc = rtems_task_start (worker->id,
200cee4: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
200cee8: 7f ff eb 07 call 2007b04 <rtems_task_start> <== NOT EXECUTED
200ceec: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
rtems_bdbuf_swapout_worker_task,
(rtems_task_argument) worker);
if (sc != RTEMS_SUCCESSFUL)
200cef0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200cef4: 22 80 00 05 be,a 200cf08 <rtems_bdbuf_swapout_task+0x15c><== NOT EXECUTED
200cef8: a2 04 60 01 inc %l1 <== NOT EXECUTED
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_START);
200cefc: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200cf00: 10 bf ff f7 b 200cedc <rtems_bdbuf_swapout_task+0x130> <== NOT EXECUTED
200cf04: 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++)
200cf08: 80 a4 40 15 cmp %l1, %l5
200cf0c: 0a bf ff d0 bcs 200ce4c <rtems_bdbuf_swapout_task+0xa0> <== NEVER TAKEN
200cf10: 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 ();
200cf14: 7f ff fa a7 call 200b9b0 <rtems_bdbuf_unlock_cache>
200cf18: 23 00 80 81 sethi %hi(0x2020400), %l1
/*
* Create the worker threads.
*/
rtems_bdbuf_swapout_workers_open ();
while (bdbuf_cache.swapout_enabled)
200cf1c: a2 14 61 f0 or %l1, 0x1f0, %l1 ! 20205f0 <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)
200cf20: 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 );
200cf24: 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,
200cf28: b4 04 60 5c add %l1, 0x5c, %i2
timer_delta);
/*
* Process the cache's modified list.
*/
rtems_bdbuf_swapout_modified_processing (&transfer->dev,
200cf2c: 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)
200cf30: a8 10 00 11 mov %l1, %l4
/*
* Create the worker threads.
*/
rtems_bdbuf_swapout_workers_open ();
while (bdbuf_cache.swapout_enabled)
200cf34: 10 80 00 67 b 200d0d0 <rtems_bdbuf_swapout_task+0x324>
200cf38: 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 ();
200cf3c: 7f ff fa 12 call 200b784 <rtems_bdbuf_lock_cache>
200cf40: 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)
200cf44: c2 0c 60 30 ldub [ %l1 + 0x30 ], %g1
200cf48: a6 10 20 00 clr %l3
200cf4c: 80 a0 60 00 cmp %g1, 0
200cf50: 12 80 00 08 bne 200cf70 <rtems_bdbuf_swapout_task+0x1c4>
200cf54: a0 10 00 16 mov %l6, %l0
200cf58: 7f ff ec bd call 200824c <_Chain_Get>
200cf5c: 90 10 00 1c mov %i4, %o0
worker = NULL;
else
{
worker = (rtems_bdbuf_swapout_worker*)
rtems_chain_get (&bdbuf_cache.swapout_workers);
if (worker)
200cf60: a6 92 20 00 orcc %o0, 0, %l3
200cf64: 12 80 00 03 bne 200cf70 <rtems_bdbuf_swapout_task+0x1c4> <== NEVER TAKEN
200cf68: a0 04 e0 10 add %l3, 0x10, %l0
200cf6c: 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;
200cf70: c2 0c 60 30 ldub [ %l1 + 0x30 ], %g1
if (worker)
transfer = &worker->transfer;
}
rtems_chain_initialize_empty (&transfer->bds);
transfer->dev = BDBUF_INVALID_DEV;
200cf74: 05 3f ff ff sethi %hi(0xfffffc00), %g2
transfer->syncing = bdbuf_cache.sync_active;
200cf78: 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)
200cf7c: c2 0c 60 30 ldub [ %l1 + 0x30 ], %g1
if (worker)
transfer = &worker->transfer;
}
rtems_chain_initialize_empty (&transfer->bds);
transfer->dev = BDBUF_INVALID_DEV;
200cf80: 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;
200cf84: ae 04 20 04 add %l0, 4, %l7
200cf88: 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;
200cf8c: c0 24 20 04 clr [ %l0 + 4 ]
the_chain->last = _Chain_Head(the_chain);
200cf90: e0 24 20 08 st %l0, [ %l0 + 8 ]
200cf94: 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)
200cf98: 80 a0 60 00 cmp %g1, 0
200cf9c: 02 80 00 04 be 200cfac <rtems_bdbuf_swapout_task+0x200>
200cfa0: ee 24 00 00 st %l7, [ %l0 ]
transfer->dev = bdbuf_cache.sync_device;
200cfa4: c4 1c 60 38 ldd [ %l1 + 0x38 ], %g2
200cfa8: 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,
200cfac: ba 04 20 10 add %l0, 0x10, %i5
200cfb0: 96 10 20 01 mov 1, %o3
200cfb4: 98 10 20 00 clr %o4
200cfb8: 9a 10 00 12 mov %l2, %o5
200cfbc: 90 10 00 1d mov %i5, %o0
200cfc0: 92 10 00 1a mov %i2, %o1
200cfc4: 7f ff fa 06 call 200b7dc <rtems_bdbuf_swapout_modified_processing>
200cfc8: 94 10 00 10 mov %l0, %o2
timer_delta);
/*
* Process the cache's modified list.
*/
rtems_bdbuf_swapout_modified_processing (&transfer->dev,
200cfcc: d6 0c 60 30 ldub [ %l1 + 0x30 ], %o3
200cfd0: 90 10 00 1d mov %i5, %o0
200cfd4: 92 10 00 19 mov %i1, %o1
200cfd8: 94 10 00 10 mov %l0, %o2
200cfdc: 98 0d 60 01 and %l5, 1, %o4
200cfe0: 7f ff f9 ff call 200b7dc <rtems_bdbuf_swapout_modified_processing>
200cfe4: 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 ();
200cfe8: 7f ff fa 72 call 200b9b0 <rtems_bdbuf_unlock_cache>
200cfec: 01 00 00 00 nop
/*
* If there are buffers to transfer to the media transfer them.
*/
if (!rtems_chain_is_empty (&transfer->bds))
200cff0: c4 04 00 00 ld [ %l0 ], %g2
200cff4: 80 a0 80 17 cmp %g2, %l7
200cff8: 02 80 00 11 be 200d03c <rtems_bdbuf_swapout_task+0x290>
200cffc: 82 10 20 00 clr %g1
{
if (worker)
200d000: 80 a4 e0 00 cmp %l3, 0
200d004: 02 80 00 0b be 200d030 <rtems_bdbuf_swapout_task+0x284> <== ALWAYS TAKEN
200d008: 01 00 00 00 nop
{
rtems_status_code sc = rtems_event_send (worker->id,
200d00c: d0 04 e0 08 ld [ %l3 + 8 ], %o0 <== NOT EXECUTED
200d010: 7f ff e8 7e call 2007208 <rtems_event_send> <== NOT EXECUTED
200d014: 92 10 20 04 mov 4, %o1 <== NOT EXECUTED
RTEMS_BDBUF_SWAPOUT_SYNC);
if (sc != RTEMS_SUCCESSFUL)
200d018: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200d01c: 02 80 00 08 be 200d03c <rtems_bdbuf_swapout_task+0x290> <== NOT EXECUTED
200d020: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WAKE);
200d024: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200d028: 10 bf ff ad b 200cedc <rtems_bdbuf_swapout_task+0x130> <== NOT EXECUTED
200d02c: 90 12 20 14 or %o0, 0x14, %o0 ! 42000014 <RAM_END+0x3fc00014><== NOT EXECUTED
}
else
{
rtems_bdbuf_swapout_write (transfer);
200d030: 7f ff fe f7 call 200cc0c <rtems_bdbuf_swapout_write>
200d034: 90 10 00 10 mov %l0, %o0
200d038: 82 10 20 01 mov 1, %g1
}
transfered_buffers = true;
}
if (bdbuf_cache.sync_active && !transfered_buffers)
200d03c: c4 0c 60 30 ldub [ %l1 + 0x30 ], %g2
200d040: 80 a0 a0 00 cmp %g2, 0
200d044: 02 80 00 14 be 200d094 <rtems_bdbuf_swapout_task+0x2e8>
200d048: 82 08 60 ff and %g1, 0xff, %g1
200d04c: 80 a0 60 00 cmp %g1, 0
200d050: 12 bf ff bb bne 200cf3c <rtems_bdbuf_swapout_task+0x190>
200d054: aa 10 20 00 clr %l5
{
rtems_id sync_requester;
rtems_bdbuf_lock_cache ();
200d058: 7f ff f9 cb call 200b784 <rtems_bdbuf_lock_cache>
200d05c: 01 00 00 00 nop
sync_requester = bdbuf_cache.sync_requester;
200d060: e0 05 20 34 ld [ %l4 + 0x34 ], %l0
bdbuf_cache.sync_active = false;
200d064: c0 2d 20 30 clrb [ %l4 + 0x30 ]
bdbuf_cache.sync_requester = 0;
200d068: c0 25 20 34 clr [ %l4 + 0x34 ]
rtems_bdbuf_unlock_cache ();
200d06c: 7f ff fa 51 call 200b9b0 <rtems_bdbuf_unlock_cache>
200d070: 01 00 00 00 nop
if (sync_requester)
200d074: 80 a4 20 00 cmp %l0, 0
200d078: 22 80 00 0b be,a 200d0a4 <rtems_bdbuf_swapout_task+0x2f8><== NEVER TAKEN
200d07c: 90 10 20 04 mov 4, %o0 <== NOT EXECUTED
rtems_event_send (sync_requester, RTEMS_BDBUF_TRANSFER_SYNC);
200d080: 90 10 00 10 mov %l0, %o0
200d084: 7f ff e8 61 call 2007208 <rtems_event_send>
200d088: 92 10 20 02 mov 2, %o1
*/
update_timers = false;
}
while (transfered_buffers);
sc = rtems_event_receive (RTEMS_BDBUF_SWAPOUT_SYNC,
200d08c: 10 80 00 06 b 200d0a4 <rtems_bdbuf_swapout_task+0x2f8>
200d090: 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,
200d094: 80 a0 60 00 cmp %g1, 0
200d098: 12 bf ff a9 bne 200cf3c <rtems_bdbuf_swapout_task+0x190>
200d09c: aa 10 20 00 clr %l5
*/
update_timers = false;
}
while (transfered_buffers);
sc = rtems_event_receive (RTEMS_BDBUF_SWAPOUT_SYNC,
200d0a0: 90 10 20 04 mov 4, %o0
200d0a4: 92 10 20 00 clr %o1
200d0a8: 94 10 00 1b mov %i3, %o2
200d0ac: 7f ff e7 f5 call 2007080 <rtems_event_receive>
200d0b0: 96 10 00 18 mov %i0, %o3
RTEMS_EVENT_ALL | RTEMS_WAIT,
period_in_ticks,
&out);
if ((sc != RTEMS_SUCCESSFUL) && (sc != RTEMS_TIMEOUT))
200d0b4: 80 a2 20 06 cmp %o0, 6
200d0b8: 02 80 00 06 be 200d0d0 <rtems_bdbuf_swapout_task+0x324>
200d0bc: 80 a2 20 00 cmp %o0, 0
200d0c0: 02 80 00 04 be 200d0d0 <rtems_bdbuf_swapout_task+0x324> <== ALWAYS TAKEN
200d0c4: 11 10 80 00 sethi %hi(0x42000000), %o0
rtems_fatal_error_occurred (BLKDEV_FATAL_BDBUF_SWAPOUT_RE);
200d0c8: 10 bf ff 85 b 200cedc <rtems_bdbuf_swapout_task+0x130> <== NOT EXECUTED
200d0cc: 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)
200d0d0: c2 0c 60 04 ldub [ %l1 + 4 ], %g1
200d0d4: 80 a0 60 00 cmp %g1, 0
200d0d8: 12 bf ff 99 bne 200cf3c <rtems_bdbuf_swapout_task+0x190> <== ALWAYS TAKEN
200d0dc: aa 10 20 01 mov 1, %l5
static void
rtems_bdbuf_swapout_workers_close (void)
{
rtems_chain_node* node;
rtems_bdbuf_lock_cache ();
200d0e0: 7f ff f9 a9 call 200b784 <rtems_bdbuf_lock_cache> <== NOT EXECUTED
200d0e4: 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;
200d0e8: 10 80 00 06 b 200d100 <rtems_bdbuf_swapout_task+0x354> <== NOT EXECUTED
200d0ec: 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;
200d0f0: c0 2c 20 0c clrb [ %l0 + 0xc ] <== NOT EXECUTED
rtems_event_send (worker->id, RTEMS_BDBUF_SWAPOUT_SYNC);
200d0f4: 7f ff e8 45 call 2007208 <rtems_event_send> <== NOT EXECUTED
200d0f8: 92 10 20 04 mov 4, %o1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
200d0fc: 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;
200d100: 80 a4 00 12 cmp %l0, %l2 <== NOT EXECUTED
200d104: 32 bf ff fb bne,a 200d0f0 <rtems_bdbuf_swapout_task+0x344><== NOT EXECUTED
200d108: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED
node = rtems_chain_next (node);
}
rtems_bdbuf_unlock_cache ();
200d10c: 7f ff fa 29 call 200b9b0 <rtems_bdbuf_unlock_cache> <== NOT EXECUTED
200d110: 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);
200d114: 7f ff da 9a call 2003b7c <free> <== NOT EXECUTED
200d118: d0 07 bf ec ld [ %fp + -20 ], %o0 <== NOT EXECUTED
rtems_task_delete (RTEMS_SELF);
200d11c: 7f ff ea 39 call 2007a00 <rtems_task_delete> <== NOT EXECUTED
200d120: 90 10 20 00 clr %o0 <== NOT EXECUTED
}
200d124: 81 c7 e0 08 ret <== NOT EXECUTED
200d128: 81 e8 00 00 restore <== NOT EXECUTED
0200d12c <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)
{
200d12c: 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 );
200d130: 2b 00 80 81 sethi %hi(0x2020400), %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;
200d134: 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)
{
200d138: 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;
200d13c: a4 14 a3 ff or %l2, 0x3ff, %l2 <== NOT EXECUTED
200d140: aa 15 61 f8 or %l5, 0x1f8, %l5 <== NOT EXECUTED
while (worker->enabled)
{
rtems_bdbuf_wait_for_event (RTEMS_BDBUF_SWAPOUT_SYNC);
rtems_bdbuf_swapout_write (&worker->transfer);
200d144: a2 06 20 10 add %i0, 0x10, %l1 <== NOT EXECUTED
200d148: 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)
200d14c: 10 80 00 11 b 200d190 <rtems_bdbuf_swapout_worker_task+0x64><== NOT EXECUTED
200d150: a6 10 00 12 mov %l2, %l3 <== NOT EXECUTED
{
rtems_bdbuf_wait_for_event (RTEMS_BDBUF_SWAPOUT_SYNC);
200d154: 7f ff fa c3 call 200bc60 <rtems_bdbuf_wait_for_event> <== NOT EXECUTED
200d158: 01 00 00 00 nop <== NOT EXECUTED
rtems_bdbuf_swapout_write (&worker->transfer);
200d15c: 7f ff fe ac call 200cc0c <rtems_bdbuf_swapout_write> <== NOT EXECUTED
200d160: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
rtems_bdbuf_lock_cache ();
200d164: 7f ff f9 88 call 200b784 <rtems_bdbuf_lock_cache> <== NOT EXECUTED
200d168: 01 00 00 00 nop <== NOT EXECUTED
200d16c: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
200d170: 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);
200d174: e8 24 20 10 st %l4, [ %l0 + 0x10 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
200d178: c0 24 20 14 clr [ %l0 + 0x14 ] <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
200d17c: e2 24 20 18 st %l1, [ %l0 + 0x18 ] <== NOT EXECUTED
200d180: 7f ff ec 1d call 20081f4 <_Chain_Append> <== NOT EXECUTED
200d184: 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 ();
200d188: 7f ff fa 0a call 200b9b0 <rtems_bdbuf_unlock_cache> <== NOT EXECUTED
200d18c: 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)
200d190: c2 0c 20 0c ldub [ %l0 + 0xc ], %g1 <== NOT EXECUTED
200d194: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200d198: 12 bf ff ef bne 200d154 <rtems_bdbuf_swapout_worker_task+0x28><== NOT EXECUTED
200d19c: 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);
200d1a0: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
200d1a4: 7f ff da 76 call 2003b7c <free> <== NOT EXECUTED
200d1a8: b0 10 20 00 clr %i0 <== NOT EXECUTED
free (worker);
200d1ac: 7f ff da 74 call 2003b7c <free> <== NOT EXECUTED
200d1b0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_task_delete (RTEMS_SELF);
200d1b4: 7f ff ea 13 call 2007a00 <rtems_task_delete> <== NOT EXECUTED
200d1b8: 81 e8 00 00 restore <== NOT EXECUTED
0200cc0c <rtems_bdbuf_swapout_write>:
*
* @param transfer The transfer transaction.
*/
static void
rtems_bdbuf_swapout_write (rtems_bdbuf_swapout_transfer* transfer)
{
200cc0c: 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))
200cc10: 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;
200cc14: a4 06 20 04 add %i0, 4, %l2
200cc18: 80 a0 40 12 cmp %g1, %l2
200cc1c: 02 80 00 62 be 200cda4 <rtems_bdbuf_swapout_write+0x198> <== NEVER TAKEN
200cc20: 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);
200cc24: 7f ff d8 63 call 2002db0 <rtems_disk_obtain>
200cc28: d0 1e 20 10 ldd [ %i0 + 0x10 ], %o0
if (dd == NULL)
200cc2c: b0 92 20 00 orcc %o0, 0, %i0
200cc30: 32 80 00 05 bne,a 200cc44 <rtems_bdbuf_swapout_write+0x38>
200cc34: d0 06 20 20 ld [ %i0 + 0x20 ], %o0
200cc38: 31 00 80 7f sethi %hi(0x201fc00), %i0
200cc3c: b0 16 23 60 or %i0, 0x360, %i0 ! 201ff60 <null_disk.7603>
dd = &null_disk;
bufs_per_bd = dd->block_size / bdbuf_config.buffer_min;
200cc40: d0 06 20 20 ld [ %i0 + 0x20 ], %o0
200cc44: 27 00 80 7a sethi %hi(0x201e800), %l3
200cc48: a6 14 e0 2c or %l3, 0x2c, %l3 ! 201e82c <rtems_bdbuf_configuration>
200cc4c: d2 04 e0 20 ld [ %l3 + 0x20 ], %o1
200cc50: 40 00 3f 19 call 201c8b4 <.udiv>
200cc54: 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;
200cc58: 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))
200cc5c: 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;
200cc60: 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;
200cc64: 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;
200cc68: 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;
200cc6c: c4 20 60 0c st %g2, [ %g1 + 0xc ]
transfer->write_req->bufnum = 0;
while ((node = rtems_chain_get(&transfer->bds)) != NULL)
200cc70: 10 80 00 35 b 200cd44 <rtems_bdbuf_swapout_write+0x138>
200cc74: 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) &&
200cc78: c4 00 a0 0c ld [ %g2 + 0xc ], %g2
200cc7c: 80 88 a0 01 btst 1, %g2
200cc80: 02 80 00 0f be 200ccbc <rtems_bdbuf_swapout_write+0xb0> <== ALWAYS TAKEN
200cc84: 82 10 20 00 clr %g1
transfer->write_req->bufnum &&
200cc88: c6 04 20 1c ld [ %l0 + 0x1c ], %g3 <== NOT EXECUTED
200cc8c: c6 00 e0 10 ld [ %g3 + 0x10 ], %g3 <== NOT EXECUTED
200cc90: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
200cc94: 02 80 00 0a be 200ccbc <rtems_bdbuf_swapout_write+0xb0> <== NOT EXECUTED
200cc98: 84 04 40 15 add %l1, %l5, %g2 <== NOT EXECUTED
(bd->block != (last_block + bufs_per_bd)))
200cc9c: c6 02 20 20 ld [ %o0 + 0x20 ], %g3 <== NOT EXECUTED
200cca0: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED
200cca4: 02 80 00 06 be 200ccbc <rtems_bdbuf_swapout_write+0xb0> <== NOT EXECUTED
200cca8: 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);
200ccac: 40 00 0f f1 call 2010c70 <_Chain_Insert> <== NOT EXECUTED
200ccb0: 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) &&
200ccb4: 10 80 00 13 b 200cd00 <rtems_bdbuf_swapout_write+0xf4> <== NOT EXECUTED
200ccb8: 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];
200ccbc: 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;
200ccc0: 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];
200ccc4: c6 00 a0 10 ld [ %g2 + 0x10 ], %g3
transfer->write_req->bufnum++;
200ccc8: 88 00 e0 01 add %g3, 1, %g4
200cccc: c8 20 a0 10 st %g4, [ %g2 + 0x10 ]
buf->user = bd;
buf->block = bd->block;
200ccd0: d8 02 20 20 ld [ %o0 + 0x20 ], %o4
200ccd4: 89 28 e0 04 sll %g3, 4, %g4
200ccd8: 88 00 80 04 add %g2, %g4, %g4
200ccdc: d8 21 20 18 st %o4, [ %g4 + 0x18 ]
buf->length = dd->block_size;
200cce0: 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;
200cce4: 86 00 e0 02 add %g3, 2, %g3
buf->block = bd->block;
buf->length = dd->block_size;
200cce8: d8 21 20 1c st %o4, [ %g4 + 0x1c ]
buf->buffer = bd->buffer;
last_block = bd->block;
200ccec: 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;
200ccf0: 87 28 e0 04 sll %g3, 4, %g3
buf->block = bd->block;
buf->length = dd->block_size;
buf->buffer = bd->buffer;
200ccf4: 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;
200ccf8: 84 00 80 03 add %g2, %g3, %g2
200ccfc: 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) ||
200cd00: 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);
200cd04: 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) ||
200cd08: 80 a0 80 12 cmp %g2, %l2
200cd0c: 02 80 00 09 be 200cd30 <rtems_bdbuf_swapout_write+0x124>
200cd10: 94 10 20 00 clr %o2
(transfer->write_req->bufnum >= bdbuf_config.max_write_blocks))
200cd14: c4 04 20 1c ld [ %l0 + 0x1c ], %g2
200cd18: c4 00 a0 10 ld [ %g2 + 0x10 ], %g2
200cd1c: 80 a0 80 14 cmp %g2, %l4
200cd20: 1a 80 00 04 bcc 200cd30 <rtems_bdbuf_swapout_write+0x124>
200cd24: 80 88 60 ff btst 0xff, %g1
write = true;
if (write)
200cd28: 02 80 00 07 be 200cd44 <rtems_bdbuf_swapout_write+0x138> <== ALWAYS TAKEN
200cd2c: 01 00 00 00 nop
{
rtems_bdbuf_execute_transfer_request (dd, transfer->write_req, false);
200cd30: 7f ff ff 67 call 200cacc <rtems_bdbuf_execute_transfer_request>
200cd34: d2 04 20 1c ld [ %l0 + 0x1c ], %o1
transfer->write_req->status = RTEMS_RESOURCE_IN_USE;
200cd38: c2 04 20 1c ld [ %l0 + 0x1c ], %g1
transfer->write_req->bufnum = 0;
200cd3c: 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;
200cd40: 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 );
200cd44: 7f ff ed 42 call 200824c <_Chain_Get>
200cd48: 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)
200cd4c: 80 a2 20 00 cmp %o0, 0
200cd50: 32 bf ff ca bne,a 200cc78 <rtems_bdbuf_swapout_write+0x6c>
200cd54: 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)
200cd58: 03 00 80 7f sethi %hi(0x201fc00), %g1
200cd5c: 82 10 63 60 or %g1, 0x360, %g1 ! 201ff60 <null_disk.7603>
200cd60: 80 a6 00 01 cmp %i0, %g1
200cd64: 02 80 00 10 be 200cda4 <rtems_bdbuf_swapout_write+0x198> <== NEVER TAKEN
200cd68: 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 &&
200cd6c: c2 0c 20 18 ldub [ %l0 + 0x18 ], %g1
200cd70: 80 a0 60 00 cmp %g1, 0
200cd74: 02 80 00 0a be 200cd9c <rtems_bdbuf_swapout_write+0x190>
200cd78: 01 00 00 00 nop
(dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_SYNC))
200cd7c: 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 &&
200cd80: c2 02 20 0c ld [ %o0 + 0xc ], %g1
200cd84: 80 88 60 02 btst 2, %g1
200cd88: 02 80 00 05 be 200cd9c <rtems_bdbuf_swapout_write+0x190> <== ALWAYS TAKEN
200cd8c: 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);
200cd90: c2 06 20 28 ld [ %i0 + 0x28 ], %g1 <== NOT EXECUTED
200cd94: 9f c0 40 00 call %g1 <== NOT EXECUTED
200cd98: 94 10 20 00 clr %o2 <== NOT EXECUTED
/* How should the error be handled ? */
}
rtems_disk_release (dd);
200cd9c: 7f ff d7 f3 call 2002d68 <rtems_disk_release>
200cda0: 81 e8 00 00 restore
200cda4: 81 c7 e0 08 ret <== NOT EXECUTED
200cda8: 81 e8 00 00 restore <== NOT EXECUTED
0200c284 <rtems_bdbuf_swapout_writereq_alloc>:
*
* @return rtems_blkdev_request* The write reference memory.
*/
static rtems_blkdev_request*
rtems_bdbuf_swapout_writereq_alloc (void)
{
200c284: 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) +
200c288: 03 00 80 7a sethi %hi(0x201e800), %g1
200c28c: d0 00 60 30 ld [ %g1 + 0x30 ], %o0 ! 201e830 <rtems_bdbuf_configuration+0x4>
200c290: 91 2a 20 04 sll %o0, 4, %o0
200c294: 7f ff df 19 call 2003ef8 <malloc>
200c298: 90 02 20 18 add %o0, 0x18, %o0
(bdbuf_config.max_write_blocks * sizeof (rtems_blkdev_sg_buffer)));
if (!write_req)
200c29c: a0 92 20 00 orcc %o0, 0, %l0
200c2a0: 12 80 00 05 bne 200c2b4 <rtems_bdbuf_swapout_writereq_alloc+0x30><== ALWAYS TAKEN
200c2a4: 82 10 20 01 mov 1, %g1
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_NOMEM);
200c2a8: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200c2ac: 7f ff ee 96 call 2007d04 <rtems_fatal_error_occurred> <== NOT EXECUTED
200c2b0: 90 12 20 15 or %o0, 0x15, %o0 ! 42000015 <RAM_END+0x3fc00015><== NOT EXECUTED
write_req->req = RTEMS_BLKDEV_REQ_WRITE;
200c2b4: c2 24 00 00 st %g1, [ %l0 ]
write_req->req_done = rtems_bdbuf_transfer_done;
200c2b8: 03 00 80 2f sethi %hi(0x200bc00), %g1
200c2bc: 82 10 60 40 or %g1, 0x40, %g1 ! 200bc40 <rtems_bdbuf_transfer_done>
write_req->done_arg = write_req;
200c2c0: 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;
200c2c4: c2 24 20 04 st %g1, [ %l0 + 4 ]
write_req->done_arg = write_req;
write_req->io_task = rtems_task_self ();
200c2c8: 40 00 11 a0 call 2010948 <rtems_task_self>
200c2cc: b0 10 00 10 mov %l0, %i0
200c2d0: d0 24 20 14 st %o0, [ %l0 + 0x14 ]
return write_req;
}
200c2d4: 81 c7 e0 08 ret
200c2d8: 81 e8 00 00 restore
0200d1c0 <rtems_bdbuf_sync>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_sync (rtems_bdbuf_buffer *bd)
{
200d1c0: 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)
200d1c4: 21 00 80 81 sethi %hi(0x2020400), %l0
200d1c8: a0 14 21 f0 or %l0, 0x1f0, %l0 ! 20205f0 <bdbuf_cache>
200d1cc: c2 0c 20 88 ldub [ %l0 + 0x88 ], %g1
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_sync (rtems_bdbuf_buffer *bd)
{
200d1d0: 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)
200d1d4: 80 a0 60 00 cmp %g1, 0
200d1d8: 02 80 00 55 be 200d32c <rtems_bdbuf_sync+0x16c> <== NEVER TAKEN
200d1dc: b0 10 20 16 mov 0x16, %i0
return RTEMS_NOT_CONFIGURED;
if (bd == NULL)
200d1e0: 80 a4 60 00 cmp %l1, 0
200d1e4: 02 80 00 52 be 200d32c <rtems_bdbuf_sync+0x16c> <== NEVER TAKEN
200d1e8: 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();
200d1ec: 7f ff f9 66 call 200b784 <rtems_bdbuf_lock_cache>
200d1f0: 01 00 00 00 nop
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "sync");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
200d1f4: c2 04 60 28 ld [ %l1 + 0x28 ], %g1
200d1f8: 80 a0 60 03 cmp %g1, 3
200d1fc: 0a 80 00 44 bcs 200d30c <rtems_bdbuf_sync+0x14c> <== NEVER TAKEN
200d200: 80 a0 60 05 cmp %g1, 5
200d204: 28 80 00 06 bleu,a 200d21c <rtems_bdbuf_sync+0x5c>
200d208: 82 10 20 08 mov 8, %g1
200d20c: 80 a0 60 06 cmp %g1, 6
200d210: 12 80 00 3f bne 200d30c <rtems_bdbuf_sync+0x14c> <== NEVER TAKEN
200d214: 01 00 00 00 nop
200d218: 30 80 00 3a b,a 200d300 <rtems_bdbuf_sync+0x140>
200d21c: 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;
200d220: c2 24 60 28 st %g1, [ %l1 + 0x28 ]
200d224: 7f ff eb f4 call 20081f4 <_Chain_Append>
200d228: 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)
200d22c: c2 04 60 2c ld [ %l1 + 0x2c ], %g1
200d230: 80 a0 60 00 cmp %g1, 0
200d234: 02 80 00 04 be 200d244 <rtems_bdbuf_sync+0x84>
200d238: 01 00 00 00 nop
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
200d23c: 7f ff f9 5a call 200b7a4 <rtems_bdbuf_wake>
200d240: 90 04 20 68 add %l0, 0x68, %o0
rtems_bdbuf_wake_swapper ();
200d244: 7f ff fa 39 call 200bb28 <rtems_bdbuf_wake_swapper>
200d248: 21 00 80 81 sethi %hi(0x2020400), %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);
200d24c: a0 14 22 60 or %l0, 0x260, %l0 ! 2020660 <bdbuf_cache+0x70>
static void
rtems_bdbuf_wait_for_sync_done (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
200d250: c2 04 60 28 ld [ %l1 + 0x28 ], %g1
200d254: 80 a0 60 01 cmp %g1, 1
200d258: 0a 80 00 0a bcs 200d280 <rtems_bdbuf_sync+0xc0> <== NEVER TAKEN
200d25c: 80 a0 60 07 cmp %g1, 7
200d260: 08 80 00 0d bleu 200d294 <rtems_bdbuf_sync+0xd4>
200d264: 80 a0 60 0a cmp %g1, 0xa
200d268: 18 80 00 06 bgu 200d280 <rtems_bdbuf_sync+0xc0> <== NEVER TAKEN
200d26c: 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);
200d270: 90 10 00 11 mov %l1, %o0
200d274: 7f ff fa f0 call 200be34 <rtems_bdbuf_wait>
200d278: 92 10 00 10 mov %l0, %o1
200d27c: 30 bf ff f5 b,a 200d250 <rtems_bdbuf_sync+0x90>
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_9);
200d280: 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);
200d284: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200d288: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200d28c: 10 80 00 24 b 200d31c <rtems_bdbuf_sync+0x15c> <== NOT EXECUTED
200d290: 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
200d294: 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
200d298: 80 a0 60 00 cmp %g1, 0
200d29c: 12 80 00 22 bne 200d324 <rtems_bdbuf_sync+0x164>
200d2a0: 01 00 00 00 nop
&& (bd->state == RTEMS_BDBUF_STATE_CACHED
|| bd->state == RTEMS_BDBUF_STATE_EMPTY))
200d2a4: 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
200d2a8: 80 a0 60 02 cmp %g1, 2
200d2ac: 02 80 00 06 be 200d2c4 <rtems_bdbuf_sync+0x104>
200d2b0: 01 00 00 00 nop
&& (bd->state == RTEMS_BDBUF_STATE_CACHED
|| bd->state == RTEMS_BDBUF_STATE_EMPTY))
200d2b4: 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
200d2b8: 80 a0 60 01 cmp %g1, 1
200d2bc: 12 80 00 1a bne 200d324 <rtems_bdbuf_sync+0x164> <== NEVER TAKEN
200d2c0: 01 00 00 00 nop
&& (bd->state == RTEMS_BDBUF_STATE_CACHED
|| bd->state == RTEMS_BDBUF_STATE_EMPTY))
{
if (bd->state == RTEMS_BDBUF_STATE_EMPTY)
200d2c4: c2 04 60 28 ld [ %l1 + 0x28 ], %g1
200d2c8: 80 a0 60 01 cmp %g1, 1
200d2cc: 32 80 00 0a bne,a 200d2f4 <rtems_bdbuf_sync+0x134>
200d2d0: 11 00 80 81 sethi %hi(0x2020400), %o0
{
rtems_bdbuf_remove_from_tree (bd);
200d2d4: 7f ff fc 02 call 200c2dc <rtems_bdbuf_remove_from_tree>
200d2d8: 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);
200d2dc: 11 00 80 81 sethi %hi(0x2020400), %o0
200d2e0: 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;
200d2e4: c0 24 60 28 clr [ %l1 + 0x28 ]
200d2e8: 40 00 0e 62 call 2010c70 <_Chain_Insert>
200d2ec: 90 12 22 34 or %o0, 0x234, %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);
200d2f0: 11 00 80 81 sethi %hi(0x2020400), %o0
200d2f4: 7f ff f9 2c call 200b7a4 <rtems_bdbuf_wake>
200d2f8: 90 12 22 68 or %o0, 0x268, %o0 ! 2020668 <bdbuf_cache+0x78>
200d2fc: 30 80 00 0a b,a 200d324 <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);
200d300: 7f ff fd 04 call 200c710 <rtems_bdbuf_discard_buffer_after_access>
200d304: 90 10 00 11 mov %l1, %o0
break;
200d308: 30 80 00 07 b,a 200d324 <rtems_bdbuf_sync+0x164>
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_5);
200d30c: 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);
200d310: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200d314: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200d318: 82 10 60 03 or %g1, 3, %g1 <== NOT EXECUTED
200d31c: 7f ff ea 7a call 2007d04 <rtems_fatal_error_occurred> <== NOT EXECUTED
200d320: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
}
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_usage ();
rtems_bdbuf_unlock_cache ();
200d324: 7f ff f9 a3 call 200b9b0 <rtems_bdbuf_unlock_cache>
200d328: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
}
200d32c: 81 c7 e0 08 ret
200d330: 81 e8 00 00 restore
0200bca8 <rtems_bdbuf_syncdev>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_syncdev (dev_t dev)
{
200bca8: 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);
200bcac: 94 10 20 00 clr %o2
200bcb0: 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;
200bcb4: c0 27 bf fc clr [ %fp + -4 ]
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_syncdev (dev_t dev)
{
200bcb8: 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);
200bcbc: 92 10 00 19 mov %i1, %o1
200bcc0: 96 07 bf fc add %fp, -4, %o3
200bcc4: 98 10 20 00 clr %o4
200bcc8: 9a 10 20 00 clr %o5
200bccc: 7f ff ff 4f call 200ba08 <rtems_bdbuf_obtain_disk>
200bcd0: a2 10 00 19 mov %i1, %l1
if (sc != RTEMS_SUCCESSFUL)
200bcd4: b0 92 20 00 orcc %o0, 0, %i0
200bcd8: 12 80 00 19 bne 200bd3c <rtems_bdbuf_syncdev+0x94> <== NEVER TAKEN
200bcdc: 25 00 80 81 sethi %hi(0x2020400), %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);
200bce0: a4 14 a1 f0 or %l2, 0x1f0, %l2 ! 20205f0 <bdbuf_cache>
200bce4: d0 04 a0 2c ld [ %l2 + 0x2c ], %o0
200bce8: 13 10 80 00 sethi %hi(0x42000000), %o1
200bcec: 7f ff fe 9a call 200b754 <rtems_bdbuf_lock>
200bcf0: 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 ();
200bcf4: 7f ff fe a4 call 200b784 <rtems_bdbuf_lock_cache>
200bcf8: 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;
200bcfc: 82 10 20 01 mov 1, %g1 ! 1 <PROM_START+0x1>
200bd00: c2 2c a0 30 stb %g1, [ %l2 + 0x30 ]
bdbuf_cache.sync_requester = rtems_task_self ();
200bd04: 40 00 13 11 call 2010948 <rtems_task_self>
200bd08: 01 00 00 00 nop
200bd0c: d0 24 a0 34 st %o0, [ %l2 + 0x34 ]
bdbuf_cache.sync_device = dev;
200bd10: e0 3c a0 38 std %l0, [ %l2 + 0x38 ]
rtems_bdbuf_wake_swapper ();
200bd14: 7f ff ff 85 call 200bb28 <rtems_bdbuf_wake_swapper>
200bd18: 01 00 00 00 nop
rtems_bdbuf_unlock_cache ();
200bd1c: 7f ff ff 25 call 200b9b0 <rtems_bdbuf_unlock_cache>
200bd20: 01 00 00 00 nop
rtems_bdbuf_wait_for_event (RTEMS_BDBUF_TRANSFER_SYNC);
200bd24: 7f ff ff cf call 200bc60 <rtems_bdbuf_wait_for_event>
200bd28: 90 10 20 02 mov 2, %o0 ! 2 <PROM_START+0x2>
rtems_bdbuf_unlock_sync ();
200bd2c: 7f ff ff 2c call 200b9dc <rtems_bdbuf_unlock_sync>
200bd30: 01 00 00 00 nop
rtems_bdbuf_release_disk (dd);
200bd34: 7f ff ff 73 call 200bb00 <rtems_bdbuf_release_disk>
200bd38: d0 07 bf fc ld [ %fp + -4 ], %o0
return RTEMS_SUCCESSFUL;
}
200bd3c: 81 c7 e0 08 ret
200bd40: 81 e8 00 00 restore
0200b9b0 <rtems_bdbuf_unlock_cache>:
/**
* Unlock the cache.
*/
static void
rtems_bdbuf_unlock_cache (void)
{
200b9b0: 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);
200b9b4: 03 00 80 81 sethi %hi(0x2020400), %g1
200b9b8: 7f ff ef 99 call 200781c <rtems_semaphore_release>
200b9bc: d0 00 62 18 ld [ %g1 + 0x218 ], %o0 ! 2020618 <bdbuf_cache+0x28>
if (sc != RTEMS_SUCCESSFUL)
200b9c0: 80 a2 20 00 cmp %o0, 0
200b9c4: 02 80 00 04 be 200b9d4 <rtems_bdbuf_unlock_cache+0x24> <== ALWAYS TAKEN
200b9c8: 11 10 80 00 sethi %hi(0x42000000), %o0
rtems_fatal_error_occurred (fatal_error_code);
200b9cc: 7f ff f0 ce call 2007d04 <rtems_fatal_error_occurred> <== NOT EXECUTED
200b9d0: 90 12 20 0e or %o0, 0xe, %o0 ! 4200000e <RAM_END+0x3fc0000e><== NOT EXECUTED
200b9d4: 81 c7 e0 08 ret
200b9d8: 81 e8 00 00 restore
0200b9dc <rtems_bdbuf_unlock_sync>:
/**
* Unlock the cache's sync lock. Any blocked writers are woken.
*/
static void
rtems_bdbuf_unlock_sync (void)
{
200b9dc: 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);
200b9e0: 03 00 80 81 sethi %hi(0x2020400), %g1
200b9e4: 7f ff ef 8e call 200781c <rtems_semaphore_release>
200b9e8: d0 00 62 1c ld [ %g1 + 0x21c ], %o0 ! 202061c <bdbuf_cache+0x2c>
if (sc != RTEMS_SUCCESSFUL)
200b9ec: 80 a2 20 00 cmp %o0, 0
200b9f0: 02 80 00 04 be 200ba00 <rtems_bdbuf_unlock_sync+0x24> <== ALWAYS TAKEN
200b9f4: 11 10 80 00 sethi %hi(0x42000000), %o0
rtems_fatal_error_occurred (fatal_error_code);
200b9f8: 7f ff f0 c3 call 2007d04 <rtems_fatal_error_occurred> <== NOT EXECUTED
200b9fc: 90 12 20 0c or %o0, 0xc, %o0 ! 4200000c <RAM_END+0x3fc0000c><== NOT EXECUTED
200ba00: 81 c7 e0 08 ret
200ba04: 81 e8 00 00 restore
0200bc60 <rtems_bdbuf_wait_for_event>:
return RTEMS_UNSATISFIED;
}
static void
rtems_bdbuf_wait_for_event (rtems_event_set event)
{
200bc60: 9d e3 bf 98 save %sp, -104, %sp
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_event_set out = 0;
sc = rtems_event_receive (event,
200bc64: 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;
200bc68: c0 27 bf fc clr [ %fp + -4 ]
sc = rtems_event_receive (event,
200bc6c: 90 10 00 18 mov %i0, %o0
200bc70: 94 10 20 00 clr %o2
200bc74: 7f ff ed 03 call 2007080 <rtems_event_receive>
200bc78: 96 07 bf fc add %fp, -4, %o3
RTEMS_EVENT_ALL | RTEMS_WAIT,
RTEMS_NO_TIMEOUT,
&out);
if (sc != RTEMS_SUCCESSFUL || out != event)
200bc7c: 80 a2 20 00 cmp %o0, 0
200bc80: 12 80 00 05 bne 200bc94 <rtems_bdbuf_wait_for_event+0x34> <== NEVER TAKEN
200bc84: c2 07 bf fc ld [ %fp + -4 ], %g1
200bc88: 80 a0 40 18 cmp %g1, %i0
200bc8c: 02 80 00 05 be 200bca0 <rtems_bdbuf_wait_for_event+0x40> <== ALWAYS TAKEN
200bc90: 01 00 00 00 nop
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_WAIT_EVNT);
200bc94: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200bc98: 7f ff f0 1b call 2007d04 <rtems_fatal_error_occurred> <== NOT EXECUTED
200bc9c: 90 12 20 1a or %o0, 0x1a, %o0 ! 4200001a <RAM_END+0x3fc0001a><== NOT EXECUTED
200bca0: 81 c7 e0 08 ret
200bca4: 81 e8 00 00 restore
0200b7a4 <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)
{
200b7a4: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code sc = RTEMS_SUCCESSFUL;
if (waiters->count > 0)
200b7a8: c2 06 00 00 ld [ %i0 ], %g1
200b7ac: 80 a0 60 00 cmp %g1, 0
200b7b0: 02 80 00 09 be 200b7d4 <rtems_bdbuf_wake+0x30>
200b7b4: 01 00 00 00 nop
{
sc = rtems_semaphore_flush (waiters->sema);
200b7b8: 40 00 13 e5 call 201074c <rtems_semaphore_flush>
200b7bc: d0 06 20 04 ld [ %i0 + 4 ], %o0
if (sc != RTEMS_SUCCESSFUL)
200b7c0: 80 a2 20 00 cmp %o0, 0
200b7c4: 02 80 00 04 be 200b7d4 <rtems_bdbuf_wake+0x30> <== ALWAYS TAKEN
200b7c8: 11 10 80 00 sethi %hi(0x42000000), %o0
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAKE);
200b7cc: 7f ff f1 4e call 2007d04 <rtems_fatal_error_occurred> <== NOT EXECUTED
200b7d0: 90 12 20 13 or %o0, 0x13, %o0 ! 42000013 <RAM_END+0x3fc00013><== NOT EXECUTED
200b7d4: 81 c7 e0 08 ret
200b7d8: 81 e8 00 00 restore
0200bb28 <rtems_bdbuf_wake_swapper>:
}
}
static void
rtems_bdbuf_wake_swapper (void)
{
200bb28: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code sc = rtems_event_send (bdbuf_cache.swapout,
200bb2c: 03 00 80 81 sethi %hi(0x2020400), %g1
200bb30: d0 00 61 f0 ld [ %g1 + 0x1f0 ], %o0 ! 20205f0 <bdbuf_cache>
200bb34: 7f ff ed b5 call 2007208 <rtems_event_send>
200bb38: 92 10 20 04 mov 4, %o1
RTEMS_BDBUF_SWAPOUT_SYNC);
if (sc != RTEMS_SUCCESSFUL)
200bb3c: 80 a2 20 00 cmp %o0, 0
200bb40: 02 80 00 04 be 200bb50 <rtems_bdbuf_wake_swapper+0x28> <== ALWAYS TAKEN
200bb44: 11 10 80 00 sethi %hi(0x42000000), %o0
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WAKE);
200bb48: 7f ff f0 6f call 2007d04 <rtems_fatal_error_occurred> <== NOT EXECUTED
200bb4c: 90 12 20 14 or %o0, 0x14, %o0 ! 42000014 <RAM_END+0x3fc00014><== NOT EXECUTED
200bb50: 81 c7 e0 08 ret
200bb54: 81 e8 00 00 restore
02023870 <rtems_bdpart_create>:
const rtems_bdpart_format *format,
rtems_bdpart_partition *pt,
const unsigned *dist,
size_t count
)
{
2023870: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
bool dos_compatibility = format != NULL
2023874: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2023878: 02 80 00 08 be 2023898 <rtems_bdpart_create+0x28> <== NOT EXECUTED
202387c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
&& format->type == RTEMS_BDPART_FORMAT_MBR
2023880: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
2023884: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2023888: 32 80 00 05 bne,a 202389c <rtems_bdpart_create+0x2c> <== NOT EXECUTED
202388c: a2 10 20 00 clr %l1 <== NOT EXECUTED
2023890: 10 80 00 03 b 202389c <rtems_bdpart_create+0x2c> <== NOT EXECUTED
2023894: e2 0e 60 08 ldub [ %i1 + 8 ], %l1 <== NOT EXECUTED
2023898: 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;
202389c: 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) {
20238a0: 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;
20238a4: 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) {
20238a8: 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;
20238ac: 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) {
20238b0: 02 80 00 72 be 2023a78 <rtems_bdpart_create+0x208> <== NOT EXECUTED
20238b4: a0 04 20 01 inc %l0 <== NOT EXECUTED
/* Nothing to do */
return RTEMS_SUCCESSFUL;
}
/* Check parameter */
if (format == NULL || pt == NULL || dist == NULL) {
20238b8: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
20238bc: 02 80 00 6c be 2023a6c <rtems_bdpart_create+0x1fc> <== NOT EXECUTED
20238c0: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
20238c4: 02 80 00 6a be 2023a6c <rtems_bdpart_create+0x1fc> <== NOT EXECUTED
20238c8: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
20238cc: 02 80 00 68 be 2023a6c <rtems_bdpart_create+0x1fc> <== NOT EXECUTED
20238d0: 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;
20238d4: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
20238d8: 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;
20238dc: 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);
20238e0: 40 00 01 80 call 2023ee0 <rtems_bdpart_get_disk_data> <== NOT EXECUTED
20238e4: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
20238e8: 82 10 20 00 clr %g1 <== NOT EXECUTED
20238ec: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
20238f0: 02 80 00 0c be 2023920 <rtems_bdpart_create+0xb0> <== NOT EXECUTED
20238f4: 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;
}
20238f8: 81 c7 e0 08 ret <== NOT EXECUTED
20238fc: 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];
2023900: c6 06 c0 02 ld [ %i3 + %g2 ], %g3 <== NOT EXECUTED
2023904: 84 05 00 03 add %l4, %g3, %g2 <== NOT EXECUTED
if (dist_sum < prev_sum) {
2023908: 80 a0 80 14 cmp %g2, %l4 <== NOT EXECUTED
202390c: 0a 80 00 5a bcs 2023a74 <rtems_bdpart_create+0x204> <== NOT EXECUTED
2023910: 82 00 60 01 inc %g1 <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
}
if (dist [i] == 0) {
2023914: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
2023918: 02 80 00 57 be 2023a74 <rtems_bdpart_create+0x204> <== NOT EXECUTED
202391c: 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) {
2023920: 80 a0 40 1c cmp %g1, %i4 <== NOT EXECUTED
2023924: 0a bf ff f7 bcs 2023900 <rtems_bdpart_create+0x90> <== NOT EXECUTED
2023928: 85 28 60 02 sll %g1, 2, %g2 <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
}
}
/* Check format */
if (format->type != RTEMS_BDPART_FORMAT_MBR) {
202392c: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
2023930: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2023934: 02 80 00 04 be 2023944 <rtems_bdpart_create+0xd4> <== NOT EXECUTED
2023938: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
202393c: 10 80 00 4f b 2023a78 <rtems_bdpart_create+0x208> <== NOT EXECUTED
2023940: 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) {
2023944: 02 80 00 09 be 2023968 <rtems_bdpart_create+0xf8> <== NOT EXECUTED
2023948: 80 a7 20 04 cmp %i4, 4 <== NOT EXECUTED
disk_end -= (disk_end % record_space);
202394c: e6 07 bf fc ld [ %fp + -4 ], %l3 <== NOT EXECUTED
2023950: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2023954: 40 00 de 8e call 205b38c <.urem> <== NOT EXECUTED
2023958: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
202395c: 90 24 c0 08 sub %l3, %o0, %o0 <== NOT EXECUTED
2023960: 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) {
2023964: 80 a7 20 04 cmp %i4, 4 <== NOT EXECUTED
2023968: 08 80 00 06 bleu 2023980 <rtems_bdpart_create+0x110> <== NOT EXECUTED
202396c: b2 10 00 10 mov %l0, %i1 <== NOT EXECUTED
overhead += (count - 3) * record_space;
2023970: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2023974: 7f ff 7c 21 call 20029f8 <.umul> <== NOT EXECUTED
2023978: 92 07 3f fd add %i4, -3, %o1 <== NOT EXECUTED
202397c: b2 02 00 10 add %o0, %l0, %i1 <== NOT EXECUTED
/*
* Account space to align every partition on cylinder boundaries if
* necessary.
*/
if (dos_compatibility) {
2023980: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
2023984: 02 80 00 07 be 20239a0 <rtems_bdpart_create+0x130> <== NOT EXECUTED
2023988: ea 07 bf fc ld [ %fp + -4 ], %l5 <== NOT EXECUTED
overhead += (count - 1) * record_space;
202398c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2023990: 7f ff 7c 1a call 20029f8 <.umul> <== NOT EXECUTED
2023994: 92 07 3f ff add %i4, -1, %o1 <== NOT EXECUTED
2023998: b2 06 40 08 add %i1, %o0, %i1 <== NOT EXECUTED
}
/* Check disk space */
if ((overhead + count) > disk_end) {
202399c: ea 07 bf fc ld [ %fp + -4 ], %l5 <== NOT EXECUTED
20239a0: 82 06 40 1c add %i1, %i4, %g1 <== NOT EXECUTED
20239a4: 80 a0 40 15 cmp %g1, %l5 <== NOT EXECUTED
20239a8: 08 80 00 04 bleu 20239b8 <rtems_bdpart_create+0x148> <== NOT EXECUTED
20239ac: ac 25 40 19 sub %l5, %i1, %l6 <== NOT EXECUTED
20239b0: 10 80 00 32 b 2023a78 <rtems_bdpart_create+0x208> <== NOT EXECUTED
20239b4: 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;
20239b8: a6 10 00 10 mov %l0, %l3 <== NOT EXECUTED
20239bc: b2 10 00 1a mov %i2, %i1 <== NOT EXECUTED
for (i = 0; i < count; ++i) {
20239c0: 10 80 00 1f b 2023a3c <rtems_bdpart_create+0x1cc> <== NOT EXECUTED
20239c4: a2 10 20 00 clr %l1 <== NOT EXECUTED
rtems_bdpart_partition *p = pt + i;
/* Partition size */
rtems_blkdev_bnum s = free_space * dist [i];
20239c8: fa 06 c0 01 ld [ %i3 + %g1 ], %i5 <== NOT EXECUTED
20239cc: 7f ff 7c 0b call 20029f8 <.umul> <== NOT EXECUTED
20239d0: 92 10 00 1d mov %i5, %o1 <== NOT EXECUTED
if (s < free_space || s < dist [i]) {
20239d4: 80 a2 00 16 cmp %o0, %l6 <== NOT EXECUTED
20239d8: 0a 80 00 27 bcs 2023a74 <rtems_bdpart_create+0x204> <== NOT EXECUTED
20239dc: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
20239e0: 80 a2 00 1d cmp %o0, %i5 <== NOT EXECUTED
20239e4: 2a 80 00 25 bcs,a 2023a78 <rtems_bdpart_create+0x208> <== NOT EXECUTED
20239e8: a4 10 20 0a mov 0xa, %l2 <== NOT EXECUTED
/* TODO: Calculate without overflow */
return RTEMS_INVALID_NUMBER;
}
s /= dist_sum;
20239ec: 40 00 dd bc call 205b0dc <.udiv> <== NOT EXECUTED
20239f0: 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;
20239f4: 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) {
20239f8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20239fc: 12 80 00 03 bne 2023a08 <rtems_bdpart_create+0x198> <== NOT EXECUTED
2023a00: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED
2023a04: 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;
2023a08: e6 26 40 00 st %l3, [ %i1 ] <== NOT EXECUTED
pos += s;
2023a0c: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
2023a10: 40 00 de 5f call 205b38c <.urem> <== NOT EXECUTED
2023a14: a6 05 c0 01 add %l7, %g1, %l3 <== NOT EXECUTED
2023a18: 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) {
2023a1c: 80 a4 60 02 cmp %l1, 2 <== NOT EXECUTED
2023a20: 08 80 00 05 bleu 2023a34 <rtems_bdpart_create+0x1c4> <== NOT EXECUTED
2023a24: e6 26 60 04 st %l3, [ %i1 + 4 ] <== NOT EXECUTED
2023a28: 80 a7 20 04 cmp %i4, 4 <== NOT EXECUTED
2023a2c: 38 80 00 02 bgu,a 2023a34 <rtems_bdpart_create+0x1c4> <== NOT EXECUTED
2023a30: 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) {
2023a34: a2 04 60 01 inc %l1 <== NOT EXECUTED
2023a38: 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];
2023a3c: 83 2c 60 02 sll %l1, 2, %g1 <== NOT EXECUTED
if (s == 0) {
s = 1;
}
/* Align partition upwards */
s += record_space - (s % record_space);
2023a40: 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) {
2023a44: 80 a4 40 1c cmp %l1, %i4 <== NOT EXECUTED
2023a48: 0a bf ff e0 bcs 20239c8 <rtems_bdpart_create+0x158> <== NOT EXECUTED
2023a4c: 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;
2023a50: b8 07 3f ff add %i4, -1, %i4 <== NOT EXECUTED
2023a54: 83 2f 20 06 sll %i4, 6, %g1 <== NOT EXECUTED
2023a58: b9 2f 20 04 sll %i4, 4, %i4 <== NOT EXECUTED
2023a5c: b8 20 40 1c sub %g1, %i4, %i4 <== NOT EXECUTED
2023a60: b4 06 80 1c add %i2, %i4, %i2 <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
2023a64: 10 80 00 05 b 2023a78 <rtems_bdpart_create+0x208> <== NOT EXECUTED
2023a68: ea 26 a0 04 st %l5, [ %i2 + 4 ] <== NOT EXECUTED
2023a6c: 10 80 00 03 b 2023a78 <rtems_bdpart_create+0x208> <== NOT EXECUTED
2023a70: a4 10 20 09 mov 9, %l2 <== NOT EXECUTED
2023a74: a4 10 20 0a mov 0xa, %l2 <== NOT EXECUTED
}
2023a78: b0 10 00 12 mov %l2, %i0 <== NOT EXECUTED
2023a7c: 81 c7 e0 08 ret <== NOT EXECUTED
2023a80: 81 e8 00 00 restore <== NOT EXECUTED
02023a84 <rtems_bdpart_dump>:
{
uuid_unparse_lower( type, str);
}
void rtems_bdpart_dump( const rtems_bdpart_partition *pt, size_t count)
{
2023a84: 9d e3 bf 68 save %sp, -152, %sp <== NOT EXECUTED
size_t i = 0;
printf(
2023a88: 11 00 81 8b sethi %hi(0x2062c00), %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;
2023a8c: 39 00 81 8b sethi %hi(0x2062c00), %i4 <== NOT EXECUTED
void rtems_bdpart_dump( const rtems_bdpart_partition *pt, size_t count)
{
size_t i = 0;
printf(
2023a90: 90 12 21 b8 or %o0, 0x1b8, %o0 <== NOT EXECUTED
break;
case RTEMS_BDPART_MBR_DATA:
type = "DATA";
break;
default:
snprintf( type_buffer, sizeof( type_buffer), "0x%02" PRIx8, type_mbr);
2023a94: 3b 00 81 8b sethi %hi(0x2062c00), %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) {
2023a98: 2f 00 81 8b sethi %hi(0x2062c00), %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;
2023a9c: 2d 00 81 8b sethi %hi(0x2062c00), %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;
2023aa0: 2b 00 81 8b sethi %hi(0x2062c00), %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) {
2023aa4: 29 00 81 8b sethi %hi(0x2062c00), %l4 <== NOT EXECUTED
2023aa8: 27 00 81 8b sethi %hi(0x2062c00), %l3 <== NOT EXECUTED
} else {
rtems_bdpart_type_to_string( p->type, type_buffer);
type = type_buffer;
}
printf(
2023aac: 25 00 81 8b sethi %hi(0x2062c00), %l2 <== NOT EXECUTED
void rtems_bdpart_dump( const rtems_bdpart_partition *pt, size_t count)
{
size_t i = 0;
printf(
2023ab0: 40 00 8f 05 call 20476c4 <puts> <== NOT EXECUTED
2023ab4: 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)) {
2023ab8: 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;
2023abc: b8 17 23 18 or %i4, 0x318, %i4 <== NOT EXECUTED
break;
case RTEMS_BDPART_MBR_DATA:
type = "DATA";
break;
default:
snprintf( type_buffer, sizeof( type_buffer), "0x%02" PRIx8, type_mbr);
2023ac0: ba 17 63 38 or %i5, 0x338, %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) {
2023ac4: ae 15 e3 08 or %l7, 0x308, %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;
2023ac8: ac 15 a3 30 or %l6, 0x330, %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;
2023acc: aa 15 63 20 or %l5, 0x320, %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) {
2023ad0: a8 15 23 00 or %l4, 0x300, %l4 <== NOT EXECUTED
2023ad4: a6 14 e2 f8 or %l3, 0x2f8, %l3 <== NOT EXECUTED
} else {
rtems_bdpart_type_to_string( p->type, type_buffer);
type = type_buffer;
}
printf(
2023ad8: a4 14 a3 40 or %l2, 0x340, %l2 <== NOT EXECUTED
"------------+------------+-----------------------------------------------------\n"
" BEGIN | END | TYPE\n"
"------------+------------+-----------------------------------------------------\n"
);
for (i = 0; i < count; ++i) {
2023adc: 10 80 00 2f b 2023b98 <rtems_bdpart_dump+0x114> <== NOT EXECUTED
2023ae0: 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)) {
2023ae4: b4 06 20 08 add %i0, 8, %i2 <== NOT EXECUTED
2023ae8: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
2023aec: 40 00 01 1b call 2023f58 <rtems_bdpart_to_mbr_partition_type><== NOT EXECUTED
2023af0: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
2023af4: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED
2023af8: 02 80 00 1e be 2023b70 <rtems_bdpart_dump+0xec> <== NOT EXECUTED
2023afc: c4 0f bf ff ldub [ %fp + -1 ], %g2 <== NOT EXECUTED
switch (type_mbr) {
2023b00: 82 08 a0 ff and %g2, 0xff, %g1 <== NOT EXECUTED
2023b04: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED
2023b08: 02 80 00 1e be 2023b80 <rtems_bdpart_dump+0xfc> <== NOT EXECUTED
2023b0c: 96 10 00 1c mov %i4, %o3 <== NOT EXECUTED
2023b10: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED
2023b14: 18 80 00 08 bgu 2023b34 <rtems_bdpart_dump+0xb0> <== NOT EXECUTED
2023b18: 80 a0 60 0e cmp %g1, 0xe <== NOT EXECUTED
2023b1c: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2023b20: 02 80 00 18 be 2023b80 <rtems_bdpart_dump+0xfc> <== NOT EXECUTED
2023b24: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
2023b28: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED
2023b2c: 10 80 00 09 b 2023b50 <rtems_bdpart_dump+0xcc> <== NOT EXECUTED
2023b30: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
2023b34: 02 80 00 13 be 2023b80 <rtems_bdpart_dump+0xfc> <== NOT EXECUTED
2023b38: 96 10 00 17 mov %l7, %o3 <== NOT EXECUTED
2023b3c: 80 a0 60 da cmp %g1, 0xda <== NOT EXECUTED
2023b40: 02 80 00 10 be 2023b80 <rtems_bdpart_dump+0xfc> <== NOT EXECUTED
2023b44: 96 10 00 16 mov %l6, %o3 <== NOT EXECUTED
2023b48: 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;
2023b4c: 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) {
2023b50: 02 80 00 0c be 2023b80 <rtems_bdpart_dump+0xfc> <== NOT EXECUTED
2023b54: 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);
2023b58: 96 08 a0 ff and %g2, 0xff, %o3 <== NOT EXECUTED
2023b5c: 92 10 20 34 mov 0x34, %o1 <== NOT EXECUTED
2023b60: 40 00 94 11 call 2048ba4 <snprintf> <== NOT EXECUTED
2023b64: 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);
2023b68: 10 80 00 06 b 2023b80 <rtems_bdpart_dump+0xfc> <== NOT EXECUTED
2023b6c: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
2023b70: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
2023b74: 40 00 6a d2 call 203e6bc <uuid_unparse_lower> <== NOT EXECUTED
2023b78: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2023b7c: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
} else {
rtems_bdpart_type_to_string( p->type, type_buffer);
type = type_buffer;
}
printf(
2023b80: d2 06 00 00 ld [ %i0 ], %o1 <== NOT EXECUTED
2023b84: d4 06 20 04 ld [ %i0 + 4 ], %o2 <== NOT EXECUTED
"------------+------------+-----------------------------------------------------\n"
" BEGIN | END | TYPE\n"
"------------+------------+-----------------------------------------------------\n"
);
for (i = 0; i < count; ++i) {
2023b88: a2 04 60 01 inc %l1 <== NOT EXECUTED
2023b8c: b0 06 20 30 add %i0, 0x30, %i0 <== NOT EXECUTED
} else {
rtems_bdpart_type_to_string( p->type, type_buffer);
type = type_buffer;
}
printf(
2023b90: 40 00 8e 21 call 2047414 <printf> <== NOT EXECUTED
2023b94: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
"------------+------------+-----------------------------------------------------\n"
" BEGIN | END | TYPE\n"
"------------+------------+-----------------------------------------------------\n"
);
for (i = 0; i < count; ++i) {
2023b98: 80 a4 40 19 cmp %l1, %i1 <== NOT EXECUTED
2023b9c: 2a bf ff d2 bcs,a 2023ae4 <rtems_bdpart_dump+0x60> <== NOT EXECUTED
2023ba0: c0 2f bf ff clrb [ %fp + -1 ] <== NOT EXECUTED
p->end,
type
);
}
puts( "------------+------------+-----------------------------------------------------");
2023ba4: 11 00 81 8b sethi %hi(0x2062c00), %o0 <== NOT EXECUTED
2023ba8: 40 00 8e c7 call 20476c4 <puts> <== NOT EXECUTED
2023bac: 90 12 23 58 or %o0, 0x358, %o0 ! 2062f58 <C.51.7928+0x1e0><== NOT EXECUTED
}
2023bb0: 81 c7 e0 08 ret <== NOT EXECUTED
2023bb4: 81 e8 00 00 restore <== NOT EXECUTED
02023ee0 <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
)
{
2023ee0: 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);
2023ee4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2023ee8: 7f ff 97 1f call 2009b64 <stat> <== NOT EXECUTED
2023eec: 92 07 bf b8 add %fp, -72, %o1 <== NOT EXECUTED
if (rv != 0) {
2023ef0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023ef4: 12 80 00 17 bne 2023f50 <rtems_bdpart_get_disk_data+0x70> <== NOT EXECUTED
2023ef8: 90 10 20 03 mov 3, %o0 <== NOT EXECUTED
return RTEMS_INVALID_NAME;
}
*disk = st.st_rdev;
2023efc: d0 1f bf d0 ldd [ %fp + -48 ], %o0 <== NOT EXECUTED
/* Get disk begin, end and block size */
dd = rtems_disk_obtain( *disk);
2023f00: 7f ff 8c 0f call 2006f3c <rtems_disk_obtain> <== NOT EXECUTED
2023f04: d0 3e 40 00 std %o0, [ %i1 ] <== NOT EXECUTED
if (dd == NULL) {
2023f08: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED
2023f0c: 22 80 00 11 be,a 2023f50 <rtems_bdpart_get_disk_data+0x70><== NOT EXECUTED
2023f10: 90 10 20 03 mov 3, %o0 <== NOT EXECUTED
return RTEMS_INVALID_NAME;
}
disk_begin = dd->start;
*disk_end = dd->size;
2023f14: 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;
2023f18: f2 00 60 18 ld [ %g1 + 0x18 ], %i1 <== NOT EXECUTED
*disk_end = dd->size;
2023f1c: c4 26 80 00 st %g2, [ %i2 ] <== NOT EXECUTED
block_size = dd->block_size;
sc = rtems_disk_release( dd);
2023f20: 7f ff 8b f5 call 2006ef4 <rtems_disk_release> <== NOT EXECUTED
2023f24: f4 00 60 20 ld [ %g1 + 0x20 ], %i2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2023f28: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023f2c: 12 80 00 09 bne 2023f50 <rtems_bdpart_get_disk_data+0x70> <== NOT EXECUTED
2023f30: 80 a6 a1 ff cmp %i2, 0x1ff <== NOT EXECUTED
return sc;
}
/* Check block size */
if (block_size < RTEMS_BDPART_BLOCK_SIZE) {
2023f34: 08 80 00 06 bleu 2023f4c <rtems_bdpart_get_disk_data+0x6c><== NOT EXECUTED
2023f38: 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) {
2023f3c: 02 80 00 05 be 2023f50 <rtems_bdpart_get_disk_data+0x70> <== NOT EXECUTED
2023f40: 01 00 00 00 nop <== NOT EXECUTED
2023f44: 10 80 00 03 b 2023f50 <rtems_bdpart_get_disk_data+0x70> <== NOT EXECUTED
2023f48: 90 10 20 1b mov 0x1b, %o0 ! 1b <PROM_START+0x1b> <== NOT EXECUTED
2023f4c: 90 10 20 1b mov 0x1b, %o0 <== NOT EXECUTED
return RTEMS_IO_ERROR;
}
return RTEMS_SUCCESSFUL;
}
2023f50: 81 c7 e0 08 ret <== NOT EXECUTED
2023f54: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02023cd0 <rtems_bdpart_mount>:
const char *disk_name,
const rtems_bdpart_partition *pt __attribute__((unused)),
size_t count,
const char *mount_base
)
{
2023cd0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_status_code esc = RTEMS_SUCCESSFUL;
const char *disk_file_name = strrchr( disk_name, '/');
2023cd4: 92 10 20 2f mov 0x2f, %o1 <== NOT EXECUTED
2023cd8: 40 00 9b 1a call 204a940 <strrchr> <== NOT EXECUTED
2023cdc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2023ce0: 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);
2023ce4: 40 00 97 79 call 2049ac8 <strlen> <== NOT EXECUTED
2023ce8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2023cec: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
size_t mount_base_size = strlen( mount_base);
2023cf0: 40 00 97 76 call 2049ac8 <strlen> <== NOT EXECUTED
2023cf4: 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) {
2023cf8: 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);
2023cfc: 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);
2023d00: 7f ff 93 1f call 200897c <malloc> <== NOT EXECUTED
2023d04: 90 04 e0 04 add %l3, 4, %o0 <== NOT EXECUTED
if (logical_disk_name == NULL) {
2023d08: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2023d0c: 02 80 00 4d be 2023e40 <rtems_bdpart_mount+0x170> <== NOT EXECUTED
2023d10: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
strncpy( logical_disk_name, disk_name, disk_name_size);
2023d14: 40 00 98 31 call 2049dd8 <strncpy> <== NOT EXECUTED
2023d18: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
/* Get disk file name */
if (disk_file_name != NULL) {
2023d1c: ac 10 00 18 mov %i0, %l6 <== NOT EXECUTED
2023d20: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
2023d24: 02 80 00 06 be 2023d3c <rtems_bdpart_mount+0x6c> <== NOT EXECUTED
2023d28: a8 10 00 13 mov %l3, %l4 <== NOT EXECUTED
disk_file_name += 1;
2023d2c: ac 04 60 01 add %l1, 1, %l6 <== NOT EXECUTED
disk_file_name_size = strlen( disk_file_name);
2023d30: 40 00 97 66 call 2049ac8 <strlen> <== NOT EXECUTED
2023d34: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
2023d38: 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);
2023d3c: aa 05 00 12 add %l4, %l2, %l5 <== NOT EXECUTED
if (mount_point == NULL) {
2023d40: 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);
2023d44: 7f ff 93 0e call 200897c <malloc> <== NOT EXECUTED
2023d48: 90 05 60 05 add %l5, 5, %o0 <== NOT EXECUTED
if (mount_point == NULL) {
2023d4c: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2023d50: 02 80 00 38 be 2023e30 <rtems_bdpart_mount+0x160> <== NOT EXECUTED
2023d54: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
esc = RTEMS_NO_MEMORY;
goto cleanup;
}
strncpy( mount_point, mount_base, mount_base_size);
2023d58: 40 00 98 20 call 2049dd8 <strncpy> <== NOT EXECUTED
2023d5c: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
mount_point [mount_base_size] = '/';
2023d60: 82 10 20 2f mov 0x2f, %g1 <== NOT EXECUTED
strncpy( mount_point + mount_base_size + 1, disk_file_name, disk_file_name_size);
2023d64: 90 04 a0 01 add %l2, 1, %o0 <== NOT EXECUTED
2023d68: 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] = '/';
2023d6c: c2 2c 40 12 stb %g1, [ %l1 + %l2 ] <== NOT EXECUTED
strncpy( mount_point + mount_base_size + 1, disk_file_name, disk_file_name_size);
2023d70: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
2023d74: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED
/* Markers */
logical_disk_marker = logical_disk_name + disk_name_size;
2023d78: b0 04 00 13 add %l0, %l3, %i0 <== NOT EXECUTED
mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
2023d7c: 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);
2023d80: 29 00 81 8b sethi %hi(0x2062c00), %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);
2023d84: 40 00 98 15 call 2049dd8 <strncpy> <== NOT EXECUTED
2023d88: 27 00 81 8b sethi %hi(0x2062c00), %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;
2023d8c: 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);
2023d90: a8 15 23 a8 or %l4, 0x3a8, %l4 <== NOT EXECUTED
esc = RTEMS_IO_ERROR;
goto cleanup;
}
/* Mount */
rv = mount(
2023d94: a6 14 e3 b0 or %l3, 0x3b0, %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) {
2023d98: 10 80 00 22 b 2023e20 <rtems_bdpart_mount+0x150> <== NOT EXECUTED
2023d9c: 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);
2023da0: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
2023da4: a4 04 a0 01 inc %l2 <== NOT EXECUTED
2023da8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2023dac: 40 00 93 7e call 2048ba4 <snprintf> <== NOT EXECUTED
2023db0: 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);
2023db4: 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) {
2023db8: 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);
2023dbc: 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) {
2023dc0: 04 80 00 04 ble 2023dd0 <rtems_bdpart_mount+0x100> <== NOT EXECUTED
2023dc4: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
2023dc8: 10 80 00 1a b 2023e30 <rtems_bdpart_mount+0x160> <== NOT EXECUTED
2023dcc: 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);
2023dd0: 40 00 98 02 call 2049dd8 <strncpy> <== NOT EXECUTED
2023dd4: 01 00 00 00 nop <== NOT EXECUTED
rv = rtems_mkdir( mount_point, S_IRWXU | S_IRWXG | S_IRWXO);
2023dd8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2023ddc: 7f ff 96 f7 call 20099b8 <rtems_mkdir> <== NOT EXECUTED
2023de0: 92 10 21 ff mov 0x1ff, %o1 <== NOT EXECUTED
if (rv != 0) {
2023de4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023de8: 02 80 00 04 be 2023df8 <rtems_bdpart_mount+0x128> <== NOT EXECUTED
2023dec: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2023df0: 10 80 00 10 b 2023e30 <rtems_bdpart_mount+0x160> <== NOT EXECUTED
2023df4: ae 10 20 1b mov 0x1b, %l7 <== NOT EXECUTED
esc = RTEMS_IO_ERROR;
goto cleanup;
}
/* Mount */
rv = mount(
2023df8: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
2023dfc: 96 10 20 00 clr %o3 <== NOT EXECUTED
2023e00: 98 10 20 00 clr %o4 <== NOT EXECUTED
2023e04: 7f ff 93 c5 call 2008d18 <mount> <== NOT EXECUTED
2023e08: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
mount_point,
"msdos",
0,
NULL
);
if (rv != 0) {
2023e0c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023e10: 02 80 00 05 be 2023e24 <rtems_bdpart_mount+0x154> <== NOT EXECUTED
2023e14: 80 a4 80 1a cmp %l2, %i2 <== NOT EXECUTED
rmdir( mount_point);
2023e18: 40 00 19 1a call 202a280 <rmdir> <== NOT EXECUTED
2023e1c: 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) {
2023e20: 80 a4 80 1a cmp %l2, %i2 <== NOT EXECUTED
2023e24: 0a bf ff df bcs 2023da0 <rtems_bdpart_mount+0xd0> <== NOT EXECUTED
2023e28: 92 10 20 04 mov 4, %o1 <== NOT EXECUTED
2023e2c: ae 10 20 00 clr %l7 <== NOT EXECUTED
}
}
cleanup:
free( logical_disk_name);
2023e30: 7f ff 91 0c call 2008260 <free> <== NOT EXECUTED
2023e34: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
free( mount_point);
2023e38: 7f ff 91 0a call 2008260 <free> <== NOT EXECUTED
2023e3c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
return esc;
}
2023e40: 81 c7 e0 08 ret <== NOT EXECUTED
2023e44: 91 e8 00 17 restore %g0, %l7, %o0 <== NOT EXECUTED
02024340 <rtems_bdpart_new_record>:
static rtems_status_code rtems_bdpart_new_record(
dev_t disk,
rtems_blkdev_bnum index,
rtems_bdbuf_buffer **block
)
{
2024340: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
/* Synchronize previous block if necessary */
if (*block != NULL) {
2024344: 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
)
{
2024348: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
/* Synchronize previous block if necessary */
if (*block != NULL) {
202434c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2024350: 02 80 00 07 be 202436c <rtems_bdpart_new_record+0x2c> <== NOT EXECUTED
2024354: a2 10 00 19 mov %i1, %l1 <== NOT EXECUTED
sc = rtems_bdbuf_sync( *block);
2024358: 7f ff 84 32 call 2005420 <rtems_bdbuf_sync> <== NOT EXECUTED
202435c: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2024360: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2024364: 12 80 00 1b bne 20243d0 <rtems_bdpart_new_record+0x90> <== NOT EXECUTED
2024368: 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);
202436c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2024370: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2024374: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2024378: 7f ff 86 4d call 2005cac <rtems_bdbuf_read> <== NOT EXECUTED
202437c: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2024380: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2024384: 12 80 00 13 bne 20243d0 <rtems_bdpart_new_record+0x90> <== NOT EXECUTED
2024388: 01 00 00 00 nop <== NOT EXECUTED
return sc;
}
/* just in case block did not get filled in */
if ( *block == NULL ) {
202438c: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
2024390: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2024394: 32 80 00 04 bne,a 20243a4 <rtems_bdpart_new_record+0x64> <== NOT EXECUTED
2024398: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
202439c: 81 c7 e0 08 ret <== NOT EXECUTED
20243a0: 91 e8 20 09 restore %g0, 9, %o0 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
}
/* Clear record */
memset( (*block)->buffer, 0, RTEMS_BDPART_BLOCK_SIZE);
20243a4: 92 10 20 00 clr %o1 <== NOT EXECUTED
20243a8: 40 00 87 ff call 20463a4 <memset> <== NOT EXECUTED
20243ac: 94 10 22 00 mov 0x200, %o2 <== NOT EXECUTED
/* Write signature */
(*block)->buffer [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_0] =
20243b0: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
20243b4: 84 10 20 55 mov 0x55, %g2 <== NOT EXECUTED
20243b8: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
20243bc: c4 28 61 fe stb %g2, [ %g1 + 0x1fe ] <== NOT EXECUTED
RTEMS_BDPART_MBR_SIGNATURE_0;
(*block)->buffer [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_1] =
20243c0: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
20243c4: 84 10 3f aa mov -86, %g2 <== NOT EXECUTED
20243c8: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
20243cc: c4 28 61 ff stb %g2, [ %g1 + 0x1ff ] <== NOT EXECUTED
RTEMS_BDPART_MBR_SIGNATURE_1;
return RTEMS_SUCCESSFUL;
}
20243d0: 81 c7 e0 08 ret <== NOT EXECUTED
20243d4: 81 e8 00 00 restore <== NOT EXECUTED
020240a4 <rtems_bdpart_read>:
const char *disk_name,
rtems_bdpart_format *format,
rtems_bdpart_partition *pt,
size_t *count
)
{
20240a4: 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);
20240a8: a2 10 20 00 clr %l1 <== NOT EXECUTED
20240ac: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
20240b0: 02 80 00 06 be 20240c8 <rtems_bdpart_read+0x24> <== NOT EXECUTED
20240b4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20240b8: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
20240bc: a3 28 60 06 sll %g1, 6, %l1 <== NOT EXECUTED
20240c0: 83 28 60 04 sll %g1, 4, %g1 <== NOT EXECUTED
20240c4: 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) {
20240c8: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
20240cc: 02 80 00 9a be 2024334 <rtems_bdpart_read+0x290> <== NOT EXECUTED
20240d0: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
20240d4: 02 80 00 98 be 2024334 <rtems_bdpart_read+0x290> <== NOT EXECUTED
20240d8: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
20240dc: 02 80 00 96 be 2024334 <rtems_bdpart_read+0x290> <== NOT EXECUTED
20240e0: 82 06 bf d0 add %i2, -48, %g1 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
}
/* Set count to a save value */
*count = 0;
20240e4: 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;
20240e8: c0 27 bf e8 clr [ %fp + -24 ] <== NOT EXECUTED
20240ec: 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;
20240f0: 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 */
20240f4: 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;
20240f8: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
rtems_bdpart_partition *p = pt - 1;
20240fc: 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);
2024100: 92 07 bf e8 add %fp, -24, %o1 <== NOT EXECUTED
2024104: 7f ff ff 77 call 2023ee0 <rtems_bdpart_get_disk_data> <== NOT EXECUTED
2024108: 94 07 bf f0 add %fp, -16, %o2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
202410c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2024110: 12 80 00 87 bne 202432c <rtems_bdpart_read+0x288> <== NOT EXECUTED
2024114: d0 1f bf e8 ldd [ %fp + -24 ], %o0 <== NOT EXECUTED
return sc;
}
/* Read MBR */
sc = rtems_bdpart_read_record( disk, 0, &block);
2024118: 94 10 20 00 clr %o2 <== NOT EXECUTED
202411c: 7f ff ff 4b call 2023e48 <rtems_bdpart_read_record> <== NOT EXECUTED
2024120: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2024124: aa 92 20 00 orcc %o0, 0, %l5 <== NOT EXECUTED
2024128: 12 80 00 7c bne 2024318 <rtems_bdpart_read+0x274> <== NOT EXECUTED
202412c: 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;
2024130: 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);
2024134: 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;
2024138: e8 00 60 24 ld [ %g1 + 0x24 ], %l4 <== NOT EXECUTED
sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);
202413c: 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;
2024140: a0 05 21 be add %l4, 0x1be, %l0 <== NOT EXECUTED
sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);
2024144: a6 07 bf f4 add %fp, -12, %l3 <== NOT EXECUTED
2024148: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202414c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2024150: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2024154: 7f ff ff 96 call 2023fac <rtems_bdpart_read_mbr_partition><== NOT EXECUTED
2024158: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
202415c: aa 92 20 00 orcc %o0, 0, %l5 <== NOT EXECUTED
2024160: 12 80 00 6e bne 2024318 <rtems_bdpart_read+0x274> <== NOT EXECUTED
2024164: 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) {
2024168: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
202416c: c2 08 60 08 ldub [ %g1 + 8 ], %g1 <== NOT EXECUTED
2024170: 80 a0 60 ee cmp %g1, 0xee <== NOT EXECUTED
2024174: 02 80 00 69 be 2024318 <rtems_bdpart_read+0x274> <== NOT EXECUTED
2024178: 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(
202417c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
esc = RTEMS_NOT_IMPLEMENTED;
goto cleanup;
}
/* Set format */
format->type = RTEMS_BDPART_FORMAT_MBR;
2024180: c0 26 40 00 clr [ %i1 ] <== NOT EXECUTED
format->mbr.disk_id = rtems_uint32_from_little_endian(
2024184: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
}
return RTEMS_SUCCESSFUL;
}
rtems_status_code rtems_bdpart_read(
2024188: 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(
202418c: c4 08 61 b8 ldub [ %g1 + 0x1b8 ], %g2 <== NOT EXECUTED
2024190: 82 00 61 b8 add %g1, 0x1b8, %g1 <== NOT EXECUTED
2024194: c6 08 60 01 ldub [ %g1 + 1 ], %g3 <== NOT EXECUTED
2024198: c8 08 60 02 ldub [ %g1 + 2 ], %g4 <== NOT EXECUTED
202419c: da 08 60 03 ldub [ %g1 + 3 ], %o5 <== NOT EXECUTED
20241a0: 83 2b 60 08 sll %o5, 8, %g1 <== NOT EXECUTED
20241a4: 82 00 40 04 add %g1, %g4, %g1 <== NOT EXECUTED
20241a8: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
20241ac: 82 00 40 03 add %g1, %g3, %g1 <== NOT EXECUTED
20241b0: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
20241b4: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
20241b8: c2 26 60 04 st %g1, [ %i1 + 4 ] <== NOT EXECUTED
block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID
);
format->mbr.dos_compatibility = true;
20241bc: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20241c0: 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;
20241c4: a0 04 20 10 add %l0, 0x10, %l0 <== NOT EXECUTED
sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);
20241c8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
20241cc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20241d0: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
20241d4: 7f ff ff 76 call 2023fac <rtems_bdpart_read_mbr_partition><== NOT EXECUTED
20241d8: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
20241dc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20241e0: 12 80 00 15 bne 2024234 <rtems_bdpart_read+0x190> <== NOT EXECUTED
20241e4: 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) {
20241e8: 32 bf ff f8 bne,a 20241c8 <rtems_bdpart_read+0x124> <== NOT EXECUTED
20241ec: a0 04 20 10 add %l0, 0x10, %l0 <== NOT EXECUTED
goto cleanup;
}
}
/* Iterate through the logical partitions within the extended partition */
ebr = ep_begin;
20241f0: f2 07 bf f4 ld [ %fp + -12 ], %i1 <== NOT EXECUTED
while (ebr != 0) {
20241f4: 10 80 00 35 b 20242c8 <rtems_bdpart_read+0x224> <== NOT EXECUTED
20241f8: 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);
20241fc: 7f ff ff 13 call 2023e48 <rtems_bdpart_read_record> <== NOT EXECUTED
2024200: d0 1f bf e8 ldd [ %fp + -24 ], %o0 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Read first partition entry */
sc = rtems_bdpart_read_mbr_partition(
2024204: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2024208: 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) {
202420c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024210: 12 80 00 09 bne 2024234 <rtems_bdpart_read+0x190> <== NOT EXECUTED
2024214: 96 10 20 00 clr %o3 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Read first partition entry */
sc = rtems_bdpart_read_mbr_partition(
2024218: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
202421c: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
2024220: 7f ff ff 63 call 2023fac <rtems_bdpart_read_mbr_partition><== NOT EXECUTED
2024224: 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) {
2024228: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202422c: 02 80 00 04 be 202423c <rtems_bdpart_read+0x198> <== NOT EXECUTED
2024230: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
2024234: 10 80 00 38 b 2024314 <rtems_bdpart_read+0x270> <== NOT EXECUTED
2024238: aa 10 00 08 mov %o0, %l5 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Adjust partition begin */
tmp = p->begin + ebr;
202423c: c4 00 40 00 ld [ %g1 ], %g2 <== NOT EXECUTED
2024240: 86 06 40 02 add %i1, %g2, %g3 <== NOT EXECUTED
if (tmp > p->begin) {
2024244: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED
2024248: 08 80 00 33 bleu 2024314 <rtems_bdpart_read+0x270> <== NOT EXECUTED
202424c: aa 10 20 1b mov 0x1b, %l5 <== NOT EXECUTED
esc = RTEMS_IO_ERROR;
goto cleanup;
}
/* Adjust partition end */
tmp = p->end + ebr;
2024250: c4 00 60 04 ld [ %g1 + 4 ], %g2 <== NOT EXECUTED
2024254: b2 06 40 02 add %i1, %g2, %i1 <== NOT EXECUTED
if (tmp > p->end) {
2024258: 80 a6 40 02 cmp %i1, %g2 <== NOT EXECUTED
202425c: 08 80 00 2e bleu 2024314 <rtems_bdpart_read+0x270> <== NOT EXECUTED
2024260: c6 20 40 00 st %g3, [ %g1 ] <== NOT EXECUTED
p->end = tmp;
2024264: 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(
2024268: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
202426c: 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);
2024270: 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) {
2024274: c8 08 61 d2 ldub [ %g1 + 0x1d2 ], %g4 <== NOT EXECUTED
2024278: c6 08 a0 01 ldub [ %g2 + 1 ], %g3 <== NOT EXECUTED
202427c: f2 08 a0 03 ldub [ %g2 + 3 ], %i1 <== NOT EXECUTED
2024280: c2 08 61 d6 ldub [ %g1 + 0x1d6 ], %g1 <== NOT EXECUTED
2024284: c4 08 a0 02 ldub [ %g2 + 2 ], %g2 <== NOT EXECUTED
2024288: b3 2e 60 08 sll %i1, 8, %i1 <== NOT EXECUTED
202428c: 80 a1 20 05 cmp %g4, 5 <== NOT EXECUTED
2024290: b2 06 40 02 add %i1, %g2, %i1 <== NOT EXECUTED
2024294: b3 2e 60 08 sll %i1, 8, %i1 <== NOT EXECUTED
2024298: b2 06 40 03 add %i1, %g3, %i1 <== NOT EXECUTED
202429c: b3 2e 60 08 sll %i1, 8, %i1 <== NOT EXECUTED
20242a0: 12 80 00 0e bne 20242d8 <rtems_bdpart_read+0x234> <== NOT EXECUTED
20242a4: 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) {
20242a8: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
20242ac: 02 80 00 0c be 20242dc <rtems_bdpart_read+0x238> <== NOT EXECUTED
20242b0: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
/* Adjust partition EBR block index */
tmp = ebr + ep_begin;
20242b4: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
20242b8: 82 06 40 01 add %i1, %g1, %g1 <== NOT EXECUTED
if (tmp > ebr) {
20242bc: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED
20242c0: 08 80 00 15 bleu 2024314 <rtems_bdpart_read+0x270> <== NOT EXECUTED
20242c4: 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);
20242c8: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
}
}
/* Iterate through the logical partitions within the extended partition */
ebr = ep_begin;
while (ebr != 0) {
20242cc: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
20242d0: 12 bf ff cb bne 20241fc <rtems_bdpart_read+0x158> <== NOT EXECUTED
20242d4: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
}
}
}
/* Return partition count */
*count = (size_t) (p - pt + 1);
20242d8: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
20242dc: aa 10 20 00 clr %l5 <== NOT EXECUTED
20242e0: b4 20 40 1a sub %g1, %i2, %i2 <== NOT EXECUTED
20242e4: b5 3e a0 04 sra %i2, 4, %i2 <== NOT EXECUTED
20242e8: 83 2e a0 02 sll %i2, 2, %g1 <== NOT EXECUTED
20242ec: 82 00 40 1a add %g1, %i2, %g1 <== NOT EXECUTED
20242f0: 85 28 60 04 sll %g1, 4, %g2 <== NOT EXECUTED
20242f4: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
20242f8: 85 28 60 08 sll %g1, 8, %g2 <== NOT EXECUTED
20242fc: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
2024300: 85 28 60 10 sll %g1, 0x10, %g2 <== NOT EXECUTED
2024304: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
2024308: 82 20 00 01 neg %g1 <== NOT EXECUTED
202430c: 82 00 60 01 inc %g1 <== NOT EXECUTED
2024310: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED
cleanup:
if (block != NULL) {
2024314: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
2024318: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202431c: 02 80 00 04 be 202432c <rtems_bdpart_read+0x288> <== NOT EXECUTED
2024320: b0 10 00 15 mov %l5, %i0 <== NOT EXECUTED
rtems_bdbuf_release( block);
2024324: 7f ff 81 ca call 2004a4c <rtems_bdbuf_release> <== NOT EXECUTED
2024328: 01 00 00 00 nop <== NOT EXECUTED
202432c: 81 c7 e0 08 ret <== NOT EXECUTED
2024330: 81 e8 00 00 restore <== NOT EXECUTED
2024334: b0 10 20 09 mov 9, %i0 <== NOT EXECUTED
}
return esc;
}
2024338: 81 c7 e0 08 ret <== NOT EXECUTED
202433c: 81 e8 00 00 restore <== NOT EXECUTED
02023fac <rtems_bdpart_read_mbr_partition>:
const uint8_t *data,
rtems_bdpart_partition **p,
const rtems_bdpart_partition *p_end,
rtems_blkdev_bnum *ep_begin
)
{
2023fac: 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);
2023fb0: 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);
2023fb4: 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];
2023fb8: c8 08 a0 01 ldub [ %g2 + 1 ], %g4 <== NOT EXECUTED
2023fbc: c6 08 60 01 ldub [ %g1 + 1 ], %g3 <== NOT EXECUTED
2023fc0: e2 08 a0 03 ldub [ %g2 + 3 ], %l1 <== NOT EXECUTED
2023fc4: d8 08 a0 02 ldub [ %g2 + 2 ], %o4 <== NOT EXECUTED
2023fc8: e6 08 60 03 ldub [ %g1 + 3 ], %l3 <== NOT EXECUTED
2023fcc: da 08 60 02 ldub [ %g1 + 2 ], %o5 <== NOT EXECUTED
2023fd0: c4 0e 20 08 ldub [ %i0 + 8 ], %g2 <== NOT EXECUTED
2023fd4: 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) {
2023fd8: e4 0e 20 04 ldub [ %i0 + 4 ], %l2 <== NOT EXECUTED
2023fdc: a3 2c 60 08 sll %l1, 8, %l1 <== NOT EXECUTED
2023fe0: a7 2c e0 08 sll %l3, 8, %l3 <== NOT EXECUTED
2023fe4: a2 04 40 0c add %l1, %o4, %l1 <== NOT EXECUTED
2023fe8: a6 04 c0 0d add %l3, %o5, %l3 <== NOT EXECUTED
2023fec: a3 2c 60 08 sll %l1, 8, %l1 <== NOT EXECUTED
2023ff0: a7 2c e0 08 sll %l3, 8, %l3 <== NOT EXECUTED
2023ff4: a2 04 40 04 add %l1, %g4, %l1 <== NOT EXECUTED
2023ff8: a6 04 c0 03 add %l3, %g3, %l3 <== NOT EXECUTED
2023ffc: a3 2c 60 08 sll %l1, 8, %l1 <== NOT EXECUTED
2024000: 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
)
{
2024004: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
2024008: 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) {
202400c: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
2024010: 02 80 00 22 be 2024098 <rtems_bdpart_read_mbr_partition+0xec><== NOT EXECUTED
2024014: a6 04 c0 01 add %l3, %g1, %l3 <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
} else if (*p == p_end) {
2024018: d0 06 40 00 ld [ %i1 ], %o0 <== NOT EXECUTED
202401c: 80 a2 00 1a cmp %o0, %i2 <== NOT EXECUTED
2024020: 02 80 00 1f be 202409c <rtems_bdpart_read_mbr_partition+0xf0><== NOT EXECUTED
2024024: 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;
2024028: 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) {
202402c: 80 a4 40 13 cmp %l1, %l3 <== NOT EXECUTED
2024030: 1a 80 00 1b bcc 202409c <rtems_bdpart_read_mbr_partition+0xf0><== NOT EXECUTED
2024034: b0 10 20 1b mov 0x1b, %i0 <== NOT EXECUTED
return RTEMS_IO_ERROR;
} else if (type == RTEMS_BDPART_MBR_EXTENDED) {
2024038: 80 a4 a0 05 cmp %l2, 5 <== NOT EXECUTED
202403c: 32 80 00 07 bne,a 2024058 <rtems_bdpart_read_mbr_partition+0xac><== NOT EXECUTED
2024040: 90 02 20 30 add %o0, 0x30, %o0 <== NOT EXECUTED
if (ep_begin != NULL) {
2024044: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2024048: 22 80 00 15 be,a 202409c <rtems_bdpart_read_mbr_partition+0xf0><== NOT EXECUTED
202404c: b0 10 20 00 clr %i0 <== NOT EXECUTED
*ep_begin = begin;
2024050: 10 80 00 10 b 2024090 <rtems_bdpart_read_mbr_partition+0xe4><== NOT EXECUTED
2024054: e2 26 c0 00 st %l1, [ %i3 ] <== NOT EXECUTED
} else {
/* Increment partition index */
++(*p);
/* Clear partition */
memset( *p, 0, sizeof( rtems_bdpart_partition));
2024058: 92 10 20 00 clr %o1 <== NOT EXECUTED
202405c: 94 10 20 30 mov 0x30, %o2 <== NOT EXECUTED
2024060: 40 00 88 d1 call 20463a4 <memset> <== NOT EXECUTED
2024064: d0 26 40 00 st %o0, [ %i1 ] <== NOT EXECUTED
/* Set values */
(*p)->begin = begin;
2024068: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED
(*p)->end = end;
rtems_bdpart_to_partition_type( type, (*p)->type);
202406c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
/* Clear partition */
memset( *p, 0, sizeof( rtems_bdpart_partition));
/* Set values */
(*p)->begin = begin;
2024070: e2 22 40 00 st %l1, [ %o1 ] <== NOT EXECUTED
(*p)->end = end;
2024074: e6 22 60 04 st %l3, [ %o1 + 4 ] <== NOT EXECUTED
rtems_bdpart_to_partition_type( type, (*p)->type);
2024078: 7f ff ff c4 call 2023f88 <rtems_bdpart_to_partition_type> <== NOT EXECUTED
202407c: 92 02 60 08 add %o1, 8, %o1 <== NOT EXECUTED
(*p)->flags = data [RTEMS_BDPART_MBR_OFFSET_FLAGS];
2024080: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
2024084: c4 0c 00 00 ldub [ %l0 ], %g2 <== NOT EXECUTED
2024088: c0 20 60 28 clr [ %g1 + 0x28 ] <== NOT EXECUTED
202408c: c4 20 60 2c st %g2, [ %g1 + 0x2c ] <== NOT EXECUTED
2024090: 81 c7 e0 08 ret <== NOT EXECUTED
2024094: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
2024098: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
return RTEMS_SUCCESSFUL;
}
202409c: 81 c7 e0 08 ret <== NOT EXECUTED
20240a0: 81 e8 00 00 restore <== NOT EXECUTED
02023e48 <rtems_bdpart_read_record>:
static rtems_status_code rtems_bdpart_read_record(
dev_t disk,
rtems_blkdev_bnum index,
rtems_bdbuf_buffer **block
)
{
2023e48: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
/* Release previous block if necessary */
if (*block != NULL) {
2023e4c: 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
)
{
2023e50: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
/* Release previous block if necessary */
if (*block != NULL) {
2023e54: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2023e58: 02 80 00 07 be 2023e74 <rtems_bdpart_read_record+0x2c> <== NOT EXECUTED
2023e5c: a2 10 00 19 mov %i1, %l1 <== NOT EXECUTED
sc = rtems_bdbuf_release( *block);
2023e60: 7f ff 82 fb call 2004a4c <rtems_bdbuf_release> <== NOT EXECUTED
2023e64: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2023e68: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023e6c: 12 80 00 1b bne 2023ed8 <rtems_bdpart_read_record+0x90> <== NOT EXECUTED
2023e70: 01 00 00 00 nop <== NOT EXECUTED
return sc;
}
}
/* Read the record block */
sc = rtems_bdbuf_read( disk, index, block);
2023e74: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2023e78: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2023e7c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2023e80: 7f ff 87 8b call 2005cac <rtems_bdbuf_read> <== NOT EXECUTED
2023e84: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2023e88: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023e8c: 12 80 00 13 bne 2023ed8 <rtems_bdpart_read_record+0x90> <== NOT EXECUTED
2023e90: 01 00 00 00 nop <== NOT EXECUTED
return sc;
}
/* just in case block did not get filled in */
if ( *block == NULL ) {
2023e94: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
2023e98: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2023e9c: 32 80 00 04 bne,a 2023eac <rtems_bdpart_read_record+0x64><== NOT EXECUTED
2023ea0: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 <== NOT EXECUTED
2023ea4: 10 80 00 0d b 2023ed8 <rtems_bdpart_read_record+0x90> <== NOT EXECUTED
2023ea8: 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]
2023eac: c6 08 a1 fe ldub [ %g2 + 0x1fe ], %g3 <== NOT EXECUTED
2023eb0: 80 a0 e0 55 cmp %g3, 0x55 <== NOT EXECUTED
2023eb4: 12 80 00 06 bne 2023ecc <rtems_bdpart_read_record+0x84> <== NOT EXECUTED
2023eb8: 82 10 20 00 clr %g1 <== NOT EXECUTED
2023ebc: c2 08 a1 ff ldub [ %g2 + 0x1ff ], %g1 <== NOT EXECUTED
2023ec0: 82 18 60 aa xor %g1, 0xaa, %g1 <== NOT EXECUTED
2023ec4: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
2023ec8: 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)) {
2023ecc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2023ed0: 22 80 00 02 be,a 2023ed8 <rtems_bdpart_read_record+0x90> <== NOT EXECUTED
2023ed4: 90 10 20 1b mov 0x1b, %o0 <== NOT EXECUTED
return RTEMS_IO_ERROR;
}
return RTEMS_SUCCESSFUL;
}
2023ed8: 81 c7 e0 08 ret <== NOT EXECUTED
2023edc: 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 0e b6 call 2049ac8 <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 77 b6 call 2023ee0 <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 0f 66 call 2049dd8 <strncpy> <== NOT EXECUTED
2006044: 27 00 81 78 sethi %hi(0x205e000), %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 e2 a0 or %l3, 0x2a0, %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 0a cd call 2048ba4 <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 77 eb call 20240a4 <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
02023f58 <rtems_bdpart_to_mbr_partition_type>:
bool rtems_bdpart_to_mbr_partition_type(
const uuid_t type,
uint8_t *mbr_type
)
{
2023f58: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
*mbr_type = rtems_bdpart_mbr_partition_type( type);
2023f5c: c2 0e 00 00 ldub [ %i0 ], %g1 <== NOT EXECUTED
return memcmp(
2023f60: 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);
2023f64: c2 2e 40 00 stb %g1, [ %i1 ] <== NOT EXECUTED
return memcmp(
2023f68: 94 10 20 0f mov 0xf, %o2 <== NOT EXECUTED
2023f6c: 13 00 81 8b sethi %hi(0x2062c00), %o1 <== NOT EXECUTED
2023f70: 40 00 88 49 call 2046094 <memcmp> <== NOT EXECUTED
2023f74: 92 12 63 b9 or %o1, 0x3b9, %o1 ! 2062fb9 <RTEMS_BDPART_MBR_MASTER_TYPE+0x1><== NOT EXECUTED
2023f78: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
2023f7c: b0 60 3f ff subx %g0, -1, %i0 <== NOT EXECUTED
type + 1,
RTEMS_BDPART_MBR_MASTER_TYPE + 1,
sizeof( uuid_t) - 1
) == 0;
}
2023f80: 81 c7 e0 08 ret <== NOT EXECUTED
2023f84: 81 e8 00 00 restore <== NOT EXECUTED
02023f88 <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;
2023f88: d0 2a 40 00 stb %o0, [ %o1 ] <== NOT EXECUTED
memcpy( type + 1, RTEMS_BDPART_MBR_MASTER_TYPE + 1, sizeof( uuid_t) - 1);
2023f8c: 94 10 20 0f mov 0xf, %o2 <== NOT EXECUTED
2023f90: 90 02 60 01 add %o1, 1, %o0 <== NOT EXECUTED
2023f94: 13 00 81 8b sethi %hi(0x2062c00), %o1 <== NOT EXECUTED
2023f98: 92 12 63 b9 or %o1, 0x3b9, %o1 ! 2062fb9 <RTEMS_BDPART_MBR_MASTER_TYPE+0x1><== NOT EXECUTED
2023f9c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2023fa0: 40 00 88 6e call 2046158 <memcpy> <== NOT EXECUTED
2023fa4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02023bb8 <rtems_bdpart_unmount>:
const char *disk_name,
const rtems_bdpart_partition *pt __attribute__((unused)),
size_t count,
const char *mount_base
)
{
2023bb8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_status_code esc = RTEMS_SUCCESSFUL;
const char *disk_file_name = strrchr( disk_name, '/');
2023bbc: 92 10 20 2f mov 0x2f, %o1 <== NOT EXECUTED
2023bc0: 40 00 9b 60 call 204a940 <strrchr> <== NOT EXECUTED
2023bc4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2023bc8: 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);
2023bcc: 40 00 97 bf call 2049ac8 <strlen> <== NOT EXECUTED
2023bd0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2023bd4: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
size_t mount_base_size = strlen( mount_base);
2023bd8: 40 00 97 bc call 2049ac8 <strlen> <== NOT EXECUTED
2023bdc: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
size_t i = 0;
/* Get disk file name */
if (disk_file_name != NULL) {
2023be0: a8 10 00 18 mov %i0, %l4 <== NOT EXECUTED
2023be4: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
2023be8: 02 80 00 06 be 2023c00 <rtems_bdpart_unmount+0x48> <== NOT EXECUTED
2023bec: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
disk_file_name += 1;
2023bf0: a8 04 20 01 add %l0, 1, %l4 <== NOT EXECUTED
disk_file_name_size = strlen( disk_file_name);
2023bf4: 40 00 97 b5 call 2049ac8 <strlen> <== NOT EXECUTED
2023bf8: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
2023bfc: 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);
2023c00: a4 04 c0 11 add %l3, %l1, %l2 <== NOT EXECUTED
if (mount_point == NULL) {
2023c04: 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);
2023c08: 7f ff 93 5d call 200897c <malloc> <== NOT EXECUTED
2023c0c: 90 04 a0 05 add %l2, 5, %o0 <== NOT EXECUTED
if (mount_point == NULL) {
2023c10: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2023c14: 02 80 00 2b be 2023cc0 <rtems_bdpart_unmount+0x108> <== NOT EXECUTED
2023c18: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
esc = RTEMS_NO_MEMORY;
goto cleanup;
}
strncpy( mount_point, mount_base, mount_base_size);
2023c1c: 40 00 98 6f call 2049dd8 <strncpy> <== NOT EXECUTED
2023c20: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
mount_point [mount_base_size] = '/';
2023c24: 82 10 20 2f mov 0x2f, %g1 <== NOT EXECUTED
strncpy( mount_point + mount_base_size + 1, disk_file_name, disk_file_name_size);
2023c28: 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] = '/';
2023c2c: c2 2c 00 11 stb %g1, [ %l0 + %l1 ] <== NOT EXECUTED
strncpy( mount_point + mount_base_size + 1, disk_file_name, disk_file_name_size);
2023c30: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
2023c34: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
2023c38: 90 04 00 08 add %l0, %o0, %o0 <== NOT EXECUTED
/* Marker */
mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
2023c3c: 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);
2023c40: 40 00 98 66 call 2049dd8 <strncpy> <== NOT EXECUTED
2023c44: 31 00 81 8b sethi %hi(0x2062c00), %i0 <== NOT EXECUTED
/* Marker */
mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
2023c48: 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);
2023c4c: b0 16 23 a8 or %i0, 0x3a8, %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) {
2023c50: 10 80 00 18 b 2023cb0 <rtems_bdpart_unmount+0xf8> <== NOT EXECUTED
2023c54: a2 10 20 00 clr %l1 <== NOT EXECUTED
/* Create mount point */
int rv = snprintf( mount_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
2023c58: 92 10 20 04 mov 4, %o1 <== NOT EXECUTED
2023c5c: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
2023c60: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
2023c64: 40 00 93 d0 call 2048ba4 <snprintf> <== NOT EXECUTED
2023c68: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
if (rv >= RTEMS_BDPART_NUMBER_SIZE) {
2023c6c: 80 a2 20 03 cmp %o0, 3 <== NOT EXECUTED
2023c70: 04 80 00 04 ble 2023c80 <rtems_bdpart_unmount+0xc8> <== NOT EXECUTED
2023c74: 01 00 00 00 nop <== NOT EXECUTED
2023c78: 10 80 00 12 b 2023cc0 <rtems_bdpart_unmount+0x108> <== NOT EXECUTED
2023c7c: b0 10 20 03 mov 3, %i0 ! 3 <PROM_START+0x3> <== NOT EXECUTED
esc = RTEMS_INVALID_NAME;
goto cleanup;
}
/* Unmount */
rv = unmount( mount_point);
2023c80: 40 00 1b 21 call 202a904 <unmount> <== NOT EXECUTED
2023c84: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rv == 0) {
2023c88: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023c8c: 12 80 00 0a bne 2023cb4 <rtems_bdpart_unmount+0xfc> <== NOT EXECUTED
2023c90: 80 a4 40 1a cmp %l1, %i2 <== NOT EXECUTED
/* Remove mount point */
rv = rmdir( mount_point);
2023c94: 40 00 19 7b call 202a280 <rmdir> <== NOT EXECUTED
2023c98: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rv != 0) {
2023c9c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023ca0: 02 80 00 05 be 2023cb4 <rtems_bdpart_unmount+0xfc> <== NOT EXECUTED
2023ca4: 80 a4 40 1a cmp %l1, %i2 <== NOT EXECUTED
2023ca8: 10 80 00 06 b 2023cc0 <rtems_bdpart_unmount+0x108> <== NOT EXECUTED
2023cac: 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) {
2023cb0: 80 a4 40 1a cmp %l1, %i2 <== NOT EXECUTED
2023cb4: 2a bf ff e9 bcs,a 2023c58 <rtems_bdpart_unmount+0xa0> <== NOT EXECUTED
2023cb8: a2 04 60 01 inc %l1 <== NOT EXECUTED
2023cbc: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
}
cleanup:
free( mount_point);
2023cc0: 7f ff 91 68 call 2008260 <free> <== NOT EXECUTED
2023cc4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return esc;
}
2023cc8: 81 c7 e0 08 ret <== NOT EXECUTED
2023ccc: 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 77 d7 call 2023ee0 <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
020243d8 <rtems_bdpart_write>:
const char *disk_name,
const rtems_bdpart_format *format,
const rtems_bdpart_partition *pt,
size_t count
)
{
20243d8: 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
20243dc: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
20243e0: 02 80 00 08 be 2024400 <rtems_bdpart_write+0x28> <== NOT EXECUTED
20243e4: 82 10 00 18 mov %i0, %g1 <== NOT EXECUTED
&& format->type == RTEMS_BDPART_FORMAT_MBR
20243e8: c4 06 40 00 ld [ %i1 ], %g2 <== NOT EXECUTED
20243ec: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
20243f0: 32 80 00 05 bne,a 2024404 <rtems_bdpart_write+0x2c> <== NOT EXECUTED
20243f4: a6 10 20 00 clr %l3 <== NOT EXECUTED
20243f8: 10 80 00 03 b 2024404 <rtems_bdpart_write+0x2c> <== NOT EXECUTED
20243fc: e6 0e 60 08 ldub [ %i1 + 8 ], %l3 <== NOT EXECUTED
2024400: 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;
2024404: a0 0c e0 ff and %l3, 0xff, %l0 <== NOT EXECUTED
2024408: 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) {
202440c: 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;
2024410: 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) {
2024414: 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;
2024418: 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) {
202441c: 02 80 01 11 be 2024860 <rtems_bdpart_write+0x488> <== NOT EXECUTED
2024420: a2 04 60 01 inc %l1 <== NOT EXECUTED
/* Nothing to do */
return RTEMS_SUCCESSFUL;
}
/* Check parameter */
if (format == NULL || pt == NULL) {
2024424: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
2024428: 02 80 00 04 be 2024438 <rtems_bdpart_write+0x60> <== NOT EXECUTED
202442c: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2024430: 32 80 00 04 bne,a 2024440 <rtems_bdpart_write+0x68> <== NOT EXECUTED
2024434: c0 27 bf e8 clr [ %fp + -24 ] <== NOT EXECUTED
2024438: 81 c7 e0 08 ret <== NOT EXECUTED
202443c: 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;
2024440: 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;
2024444: 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;
2024448: 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);
202444c: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
2024450: 92 07 bf e8 add %fp, -24, %o1 <== NOT EXECUTED
2024454: 7f ff fe a3 call 2023ee0 <rtems_bdpart_get_disk_data> <== NOT EXECUTED
2024458: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
202445c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2024460: 12 80 01 00 bne 2024860 <rtems_bdpart_write+0x488> <== NOT EXECUTED
2024464: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
return sc;
}
/* Align end of disk on cylinder boundary if necessary */
if (dos_compatibility) {
2024468: 22 80 00 09 be,a 202448c <rtems_bdpart_write+0xb4> <== NOT EXECUTED
202446c: c8 07 bf f4 ld [ %fp + -12 ], %g4 <== NOT EXECUTED
disk_end -= (disk_end % record_space);
2024470: e0 07 bf f4 ld [ %fp + -12 ], %l0 <== NOT EXECUTED
2024474: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2024478: 40 00 db c5 call 205b38c <.urem> <== NOT EXECUTED
202447c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2024480: 90 24 00 08 sub %l0, %o0, %o0 <== NOT EXECUTED
2024484: 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) {
2024488: c8 07 bf f4 ld [ %fp + -12 ], %g4 <== NOT EXECUTED
202448c: a4 10 00 1a mov %i2, %l2 <== NOT EXECUTED
2024490: 82 10 00 1a mov %i2, %g1 <== NOT EXECUTED
2024494: 10 80 00 12 b 20244dc <rtems_bdpart_write+0x104> <== NOT EXECUTED
2024498: 84 10 20 00 clr %g2 <== NOT EXECUTED
202449c: 80 a0 c0 04 cmp %g3, %g4 <== NOT EXECUTED
20244a0: 1a 80 00 ea bcc 2024848 <rtems_bdpart_write+0x470> <== NOT EXECUTED
20244a4: aa 10 20 0a mov 0xa, %l5 <== NOT EXECUTED
20244a8: da 00 60 04 ld [ %g1 + 4 ], %o5 <== NOT EXECUTED
20244ac: 80 a3 40 04 cmp %o5, %g4 <== NOT EXECUTED
20244b0: 18 80 00 e6 bgu 2024848 <rtems_bdpart_write+0x470> <== NOT EXECUTED
20244b4: 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) {
20244b8: 1a 80 00 e4 bcc 2024848 <rtems_bdpart_write+0x470> <== NOT EXECUTED
20244bc: 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) {
20244c0: 02 80 00 06 be 20244d8 <rtems_bdpart_write+0x100> <== NOT EXECUTED
20244c4: 84 00 a0 01 inc %g2 <== NOT EXECUTED
20244c8: da 00 7f d4 ld [ %g1 + -44 ], %o5 <== NOT EXECUTED
20244cc: 80 a3 40 03 cmp %o5, %g3 <== NOT EXECUTED
20244d0: 18 80 00 de bgu 2024848 <rtems_bdpart_write+0x470> <== NOT EXECUTED
20244d4: 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) {
20244d8: 82 00 60 30 add %g1, 0x30, %g1 <== NOT EXECUTED
20244dc: 80 a0 80 1b cmp %g2, %i3 <== NOT EXECUTED
20244e0: 2a bf ff ef bcs,a 202449c <rtems_bdpart_write+0xc4> <== NOT EXECUTED
20244e4: c6 00 40 00 ld [ %g1 ], %g3 <== NOT EXECUTED
goto cleanup;
}
}
/* Check format */
if (format->type != RTEMS_BDPART_FORMAT_MBR) {
20244e8: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
20244ec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20244f0: 12 80 00 d6 bne 2024848 <rtems_bdpart_write+0x470> <== NOT EXECUTED
20244f4: 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;
20244f8: 80 a6 e0 04 cmp %i3, 4 <== NOT EXECUTED
20244fc: 18 80 00 03 bgu 2024508 <rtems_bdpart_write+0x130> <== NOT EXECUTED
2024500: a0 10 20 03 mov 3, %l0 <== NOT EXECUTED
2024504: 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) {
2024508: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
202450c: 32 80 00 0f bne,a 2024548 <rtems_bdpart_write+0x170> <== NOT EXECUTED
2024510: 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) {
2024514: 82 04 3f ff add %l0, -1, %g1 <== NOT EXECUTED
2024518: 85 2c 20 04 sll %l0, 4, %g2 <== NOT EXECUTED
202451c: 87 28 60 06 sll %g1, 6, %g3 <== NOT EXECUTED
2024520: 83 28 60 04 sll %g1, 4, %g1 <== NOT EXECUTED
2024524: a9 2c 20 06 sll %l0, 6, %l4 <== NOT EXECUTED
2024528: 86 20 c0 01 sub %g3, %g1, %g3 <== NOT EXECUTED
202452c: a8 25 00 02 sub %l4, %g2, %l4 <== NOT EXECUTED
2024530: 86 06 80 03 add %i2, %g3, %g3 <== NOT EXECUTED
2024534: a6 06 80 14 add %i2, %l4, %l3 <== NOT EXECUTED
2024538: 86 00 e0 04 add %g3, 4, %g3 <== NOT EXECUTED
202453c: 84 10 00 10 mov %l0, %g2 <== NOT EXECUTED
2024540: 10 80 00 0e b 2024578 <rtems_bdpart_write+0x1a0> <== NOT EXECUTED
2024544: 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) {
2024548: 80 a0 60 3f cmp %g1, 0x3f <== NOT EXECUTED
202454c: 32 80 00 bf bne,a 2024848 <rtems_bdpart_write+0x470> <== NOT EXECUTED
2024550: 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) {
2024554: 10 bf ff f1 b 2024518 <rtems_bdpart_write+0x140> <== NOT EXECUTED
2024558: 82 04 3f ff add %l0, -1, %g1 <== NOT EXECUTED
202455c: c8 00 c0 00 ld [ %g3 ], %g4 <== NOT EXECUTED
2024560: 82 00 60 30 add %g1, 0x30, %g1 <== NOT EXECUTED
2024564: 88 23 40 04 sub %o5, %g4, %g4 <== NOT EXECUTED
2024568: 80 a1 00 11 cmp %g4, %l1 <== NOT EXECUTED
202456c: 0a 80 00 b2 bcs 2024834 <rtems_bdpart_write+0x45c> <== NOT EXECUTED
2024570: 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) {
2024574: 84 00 a0 01 inc %g2 <== NOT EXECUTED
2024578: 80 a0 80 1b cmp %g2, %i3 <== NOT EXECUTED
202457c: 2a bf ff f8 bcs,a 202455c <rtems_bdpart_write+0x184> <== NOT EXECUTED
2024580: da 00 40 00 ld [ %g1 ], %o5 <== NOT EXECUTED
2024584: aa 10 00 1a mov %i2, %l5 <== NOT EXECUTED
2024588: 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)) {
202458c: 10 80 00 11 b 20245d0 <rtems_bdpart_write+0x1f8> <== NOT EXECUTED
2024590: ae 07 bf ff add %fp, -1, %l7 <== NOT EXECUTED
2024594: 90 05 60 08 add %l5, 8, %o0 <== NOT EXECUTED
2024598: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
202459c: 7f ff fe 6f call 2023f58 <rtems_bdpart_to_mbr_partition_type><== NOT EXECUTED
20245a0: ac 05 a0 01 inc %l6 <== NOT EXECUTED
20245a4: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED
20245a8: 22 80 00 a8 be,a 2024848 <rtems_bdpart_write+0x470> <== NOT EXECUTED
20245ac: aa 10 20 04 mov 4, %l5 <== NOT EXECUTED
esc = RTEMS_INVALID_ID;
goto cleanup;
}
/* Check flags */
if (p->flags > 0xffU) {
20245b0: c4 05 60 28 ld [ %l5 + 0x28 ], %g2 <== NOT EXECUTED
20245b4: c2 05 60 2c ld [ %l5 + 0x2c ], %g1 <== NOT EXECUTED
20245b8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
20245bc: 12 80 00 a0 bne 202483c <rtems_bdpart_write+0x464> <== NOT EXECUTED
20245c0: aa 05 60 30 add %l5, 0x30, %l5 <== NOT EXECUTED
20245c4: 80 a0 60 ff cmp %g1, 0xff <== NOT EXECUTED
20245c8: 38 80 00 a0 bgu,a 2024848 <rtems_bdpart_write+0x470> <== NOT EXECUTED
20245cc: 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) {
20245d0: 80 a5 80 1b cmp %l6, %i3 <== NOT EXECUTED
20245d4: 2a bf ff f0 bcs,a 2024594 <rtems_bdpart_write+0x1bc> <== NOT EXECUTED
20245d8: c0 2f bf ff clrb [ %fp + -1 ] <== NOT EXECUTED
/* Check ID */
/* TODO */
}
/* New MBR */
sc = rtems_bdpart_new_record( disk, 0, &block);
20245dc: d0 1f bf e8 ldd [ %fp + -24 ], %o0 <== NOT EXECUTED
20245e0: 94 10 20 00 clr %o2 <== NOT EXECUTED
20245e4: 7f ff ff 57 call 2024340 <rtems_bdpart_new_record> <== NOT EXECUTED
20245e8: 96 07 bf f8 add %fp, -8, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
20245ec: aa 92 20 00 orcc %o0, 0, %l5 <== NOT EXECUTED
20245f0: 12 80 00 97 bne 202484c <rtems_bdpart_write+0x474> <== NOT EXECUTED
20245f4: d0 07 bf f8 ld [ %fp + -8 ], %o0 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Write disk ID */
rtems_uint32_to_little_endian(
20245f8: c4 07 bf f8 ld [ %fp + -8 ], %g2 <== NOT EXECUTED
20245fc: c2 06 60 04 ld [ %i1 + 4 ], %g1 <== NOT EXECUTED
2024600: 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;
2024604: 87 30 60 18 srl %g1, 0x18, %g3 <== NOT EXECUTED
2024608: c2 28 a1 b8 stb %g1, [ %g2 + 0x1b8 ] <== NOT EXECUTED
202460c: 84 00 a1 b8 add %g2, 0x1b8, %g2 <== NOT EXECUTED
2024610: c6 28 a0 03 stb %g3, [ %g2 + 3 ] <== NOT EXECUTED
value >>= 8;
2024614: 87 30 60 08 srl %g1, 8, %g3 <== NOT EXECUTED
2024618: 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;
202461c: c6 28 a0 01 stb %g3, [ %g2 + 1 ] <== NOT EXECUTED
2024620: 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;
2024624: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
2024628: 9a 10 20 00 clr %o5 <== NOT EXECUTED
202462c: c8 00 60 24 ld [ %g1 + 0x24 ], %g4 <== NOT EXECUTED
2024630: 88 01 21 be add %g4, 0x1be, %g4 <== NOT EXECUTED
for (i = 0; i < ppc; ++i) {
2024634: 10 80 00 18 b 2024694 <rtems_bdpart_write+0x2bc> <== NOT EXECUTED
2024638: 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
202463c: 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];
2024640: 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(
2024644: 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;
2024648: d8 28 40 00 stb %o4, [ %g1 ] <== NOT EXECUTED
202464c: 99 30 e0 18 srl %g3, 0x18, %o4 <== NOT EXECUTED
2024650: d8 28 60 0f stb %o4, [ %g1 + 0xf ] <== NOT EXECUTED
value >>= 8;
2024654: 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;
2024658: c4 28 60 08 stb %g2, [ %g1 + 8 ] <== NOT EXECUTED
202465c: d8 28 60 09 stb %o4, [ %g1 + 9 ] <== NOT EXECUTED
value >>= 8;
2024660: 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;
2024664: 85 30 a0 18 srl %g2, 0x18, %g2 <== NOT EXECUTED
2024668: c6 28 60 0c stb %g3, [ %g1 + 0xc ] <== NOT EXECUTED
202466c: 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;
2024670: d6 28 60 04 stb %o3, [ %g1 + 4 ] <== NOT EXECUTED
value >>= 8;
2024674: 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;
2024678: d8 28 60 0a stb %o4, [ %g1 + 0xa ] <== NOT EXECUTED
202467c: c4 28 60 0d stb %g2, [ %g1 + 0xd ] <== NOT EXECUTED
value >>= 8;
2024680: 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) {
2024684: 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;
2024688: c6 28 60 0e stb %g3, [ %g1 + 0xe ] <== NOT EXECUTED
202468c: 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;
2024690: 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) {
2024694: 80 a3 40 10 cmp %o5, %l0 <== NOT EXECUTED
2024698: 2a bf ff e9 bcs,a 202463c <rtems_bdpart_write+0x264> <== NOT EXECUTED
202469c: c4 1c 80 00 ldd [ %l2 ], %g2 <== NOT EXECUTED
20246a0: 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) {
20246a4: 80 a4 00 1b cmp %l0, %i3 <== NOT EXECUTED
20246a8: 02 80 00 67 be 2024844 <rtems_bdpart_write+0x46c> <== NOT EXECUTED
20246ac: 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;
20246b0: f2 06 80 14 ld [ %i2 + %l4 ], %i1 <== NOT EXECUTED
/* Write extended partition */
rtems_bdpart_write_mbr_partition(
20246b4: 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;
20246b8: b2 26 40 11 sub %i1, %l1, %i1 <== NOT EXECUTED
20246bc: f2 28 60 08 stb %i1, [ %g1 + 8 ] <== NOT EXECUTED
value >>= 8;
20246c0: 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);
20246c4: 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;
20246c8: d8 28 e0 01 stb %o4, [ %g3 + 1 ] <== NOT EXECUTED
value >>= 8;
20246cc: 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;
20246d0: d8 28 e0 02 stb %o4, [ %g3 + 2 ] <== NOT EXECUTED
20246d4: 99 36 60 18 srl %i1, 0x18, %o4 <== NOT EXECUTED
20246d8: 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(
20246dc: 84 20 80 19 sub %g2, %i1, %g2 <== NOT EXECUTED
20246e0: c4 28 60 0c stb %g2, [ %g1 + 0xc ] <== NOT EXECUTED
20246e4: 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);
20246e8: 86 00 60 0c add %g1, 0xc, %g3 <== NOT EXECUTED
20246ec: d8 28 e0 03 stb %o4, [ %g3 + 3 ] <== NOT EXECUTED
value >>= 8;
20246f0: 99 30 a0 08 srl %g2, 8, %o4 <== NOT EXECUTED
20246f4: 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;
20246f8: d8 28 e0 01 stb %o4, [ %g3 + 1 ] <== NOT EXECUTED
20246fc: c4 28 e0 02 stb %g2, [ %g3 + 2 ] <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;
2024700: 84 10 20 05 mov 5, %g2 <== NOT EXECUTED
2024704: c4 28 60 04 stb %g2, [ %g1 + 4 ] <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;
2024708: b4 04 e0 04 add %l3, 4, %i2 <== NOT EXECUTED
202470c: c0 29 00 0d clrb [ %g4 + %o5 ] <== NOT EXECUTED
2024710: 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;
2024714: a8 10 20 05 mov 5, %l4 <== NOT EXECUTED
RTEMS_BDPART_MBR_EXTENDED,
0
);
/* Write logical partitions */
for (i = ppc; i < count; ++i) {
2024718: 10 80 00 42 b 2024820 <rtems_bdpart_write+0x448> <== NOT EXECUTED
202471c: a6 07 bf f8 add %fp, -8, %l3 <== NOT EXECUTED
const rtems_bdpart_partition *p = pt + i;
/* Write second partition entry */
if (i > ppc) {
2024720: 28 80 00 1c bleu,a 2024790 <rtems_bdpart_write+0x3b8> <== NOT EXECUTED
2024724: d4 06 bf fc ld [ %i2 + -4 ], %o2 <== NOT EXECUTED
rtems_blkdev_bnum begin = p->begin - record_space;
rtems_bdpart_write_mbr_partition(
2024728: 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;
202472c: c4 06 bf fc ld [ %i2 + -4 ], %g2 <== NOT EXECUTED
rtems_bdpart_write_mbr_partition(
2024730: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
2024734: 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;
2024738: 84 20 80 11 sub %g2, %l1, %g2 <== NOT EXECUTED
rtems_bdpart_write_mbr_partition(
202473c: 86 20 80 19 sub %g2, %i1, %g3 <== NOT EXECUTED
2024740: c6 28 61 d6 stb %g3, [ %g1 + 0x1d6 ] <== NOT EXECUTED
2024744: 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);
2024748: 88 00 61 d6 add %g1, 0x1d6, %g4 <== NOT EXECUTED
202474c: d8 29 20 03 stb %o4, [ %g4 + 3 ] <== NOT EXECUTED
value >>= 8;
2024750: 99 30 e0 08 srl %g3, 8, %o4 <== NOT EXECUTED
2024754: 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;
2024758: d8 29 20 01 stb %o4, [ %g4 + 1 ] <== NOT EXECUTED
202475c: 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(
2024760: 84 23 40 02 sub %o5, %g2, %g2 <== NOT EXECUTED
2024764: c4 28 61 da stb %g2, [ %g1 + 0x1da ] <== NOT EXECUTED
2024768: 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);
202476c: 86 00 61 da add %g1, 0x1da, %g3 <== NOT EXECUTED
2024770: c8 28 e0 03 stb %g4, [ %g3 + 3 ] <== NOT EXECUTED
value >>= 8;
2024774: 89 30 a0 08 srl %g2, 8, %g4 <== NOT EXECUTED
2024778: 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;
202477c: c8 28 e0 01 stb %g4, [ %g3 + 1 ] <== NOT EXECUTED
2024780: c4 28 e0 02 stb %g2, [ %g3 + 2 ] <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;
data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;
2024784: 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;
2024788: 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);
202478c: d4 06 bf fc ld [ %i2 + -4 ], %o2 <== NOT EXECUTED
2024790: d0 1f bf e8 ldd [ %fp + -24 ], %o0 <== NOT EXECUTED
2024794: 94 22 80 11 sub %o2, %l1, %o2 <== NOT EXECUTED
2024798: 7f ff fe ea call 2024340 <rtems_bdpart_new_record> <== NOT EXECUTED
202479c: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
20247a0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20247a4: 02 80 00 04 be 20247b4 <rtems_bdpart_write+0x3dc> <== NOT EXECUTED
20247a8: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
20247ac: 10 80 00 27 b 2024848 <rtems_bdpart_write+0x470> <== NOT EXECUTED
20247b0: aa 10 00 08 mov %o0, %l5 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Write first partition entry */
rtems_bdpart_write_mbr_partition(
20247b4: d4 06 80 00 ld [ %i2 ], %o2 <== NOT EXECUTED
20247b8: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 <== NOT EXECUTED
20247bc: d6 06 bf fc ld [ %i2 + -4 ], %o3 <== NOT EXECUTED
20247c0: 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
20247c4: da 06 a0 28 ld [ %i2 + 0x28 ], %o5 <== NOT EXECUTED
20247c8: 82 10 00 02 mov %g2, %g1 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Write first partition entry */
rtems_bdpart_write_mbr_partition(
20247cc: 86 00 a1 be add %g2, 0x1be, %g3 <== NOT EXECUTED
RTEMS_BDPART_MBR_SIGNATURE_1;
return RTEMS_SUCCESSFUL;
}
rtems_status_code rtems_bdpart_write(
20247d0: 92 00 a0 04 add %g2, 4, %o1 <== NOT EXECUTED
20247d4: 88 10 00 11 mov %l1, %g4 <== NOT EXECUTED
20247d8: c8 28 61 c6 stb %g4, [ %g1 + 0x1c6 ] <== NOT EXECUTED
20247dc: 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) {
20247e0: 80 a0 40 09 cmp %g1, %o1 <== NOT EXECUTED
20247e4: 12 bf ff fd bne 20247d8 <rtems_bdpart_write+0x400> <== NOT EXECUTED
20247e8: 88 10 20 00 clr %g4 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Write first partition entry */
rtems_bdpart_write_mbr_partition(
20247ec: 82 22 80 0b sub %o2, %o3, %g1 <== NOT EXECUTED
data [i] = (uint8_t) value;
20247f0: c2 28 e0 0c stb %g1, [ %g3 + 0xc ] <== NOT EXECUTED
20247f4: 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);
20247f8: 88 00 e0 0c add %g3, 0xc, %g4 <== NOT EXECUTED
20247fc: d6 29 20 03 stb %o3, [ %g4 + 3 ] <== NOT EXECUTED
value >>= 8;
2024800: 97 30 60 08 srl %g1, 8, %o3 <== NOT EXECUTED
2024804: 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;
2024808: d6 29 20 01 stb %o3, [ %g4 + 1 ] <== NOT EXECUTED
202480c: c2 29 20 02 stb %g1, [ %g4 + 2 ] <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;
2024810: d8 28 e0 04 stb %o4, [ %g3 + 4 ] <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;
2024814: da 28 a1 be stb %o5, [ %g2 + 0x1be ] <== NOT EXECUTED
RTEMS_BDPART_MBR_EXTENDED,
0
);
/* Write logical partitions */
for (i = ppc; i < count; ++i) {
2024818: a4 04 a0 01 inc %l2 <== NOT EXECUTED
202481c: b4 06 a0 30 add %i2, 0x30, %i2 <== NOT EXECUTED
2024820: 80 a4 80 1b cmp %l2, %i3 <== NOT EXECUTED
2024824: 0a bf ff bf bcs 2024720 <rtems_bdpart_write+0x348> <== NOT EXECUTED
2024828: 80 a4 80 10 cmp %l2, %l0 <== NOT EXECUTED
202482c: 10 80 00 07 b 2024848 <rtems_bdpart_write+0x470> <== NOT EXECUTED
2024830: aa 10 20 00 clr %l5 <== NOT EXECUTED
2024834: 10 80 00 05 b 2024848 <rtems_bdpart_write+0x470> <== NOT EXECUTED
2024838: aa 10 20 0a mov 0xa, %l5 <== NOT EXECUTED
202483c: 10 80 00 03 b 2024848 <rtems_bdpart_write+0x470> <== NOT EXECUTED
2024840: aa 10 20 04 mov 4, %l5 <== NOT EXECUTED
2024844: aa 10 20 00 clr %l5 <== NOT EXECUTED
}
}
cleanup:
if (block != NULL) {
2024848: d0 07 bf f8 ld [ %fp + -8 ], %o0 <== NOT EXECUTED
202484c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024850: 02 80 00 04 be 2024860 <rtems_bdpart_write+0x488> <== NOT EXECUTED
2024854: b0 10 00 15 mov %l5, %i0 <== NOT EXECUTED
rtems_bdbuf_sync( block);
2024858: 7f ff 82 f2 call 2005420 <rtems_bdbuf_sync> <== NOT EXECUTED
202485c: 01 00 00 00 nop <== NOT EXECUTED
}
return esc;
}
2024860: 81 c7 e0 08 ret <== NOT EXECUTED
2024864: 81 e8 00 00 restore <== NOT EXECUTED
0200ddb4 <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)
{
200ddb4: 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;
200ddb8: c2 06 80 00 ld [ %i2 ], %g1
int rc;
switch (args->command)
200ddbc: d2 06 a0 04 ld [ %i2 + 4 ], %o1
200ddc0: 05 10 01 10 sethi %hi(0x40044000), %g2
200ddc4: 86 10 a2 03 or %g2, 0x203, %g3 ! 40044203 <RAM_END+0x3dc44203>
200ddc8: 80 a2 40 03 cmp %o1, %g3
200ddcc: 02 80 00 1e be 200de44 <rtems_blkdev_generic_ioctl+0x90> <== NEVER TAKEN
200ddd0: c2 00 60 38 ld [ %g1 + 0x38 ], %g1
200ddd4: 80 a2 40 03 cmp %o1, %g3
200ddd8: 18 80 00 0c bgu 200de08 <rtems_blkdev_generic_ioctl+0x54> <== ALWAYS TAKEN
200dddc: 07 20 01 10 sethi %hi(0x80044000), %g3
200dde0: 07 08 00 10 sethi %hi(0x20004000), %g3 <== NOT EXECUTED
200dde4: 86 10 e2 06 or %g3, 0x206, %g3 ! 20004206 <RAM_END+0x1dc04206><== NOT EXECUTED
200dde8: 80 a2 40 03 cmp %o1, %g3 <== NOT EXECUTED
200ddec: 02 80 00 21 be 200de70 <rtems_blkdev_generic_ioctl+0xbc> <== NOT EXECUTED
200ddf0: 84 10 a2 02 or %g2, 0x202, %g2 <== NOT EXECUTED
200ddf4: 80 a2 40 02 cmp %o1, %g2 <== NOT EXECUTED
200ddf8: 32 80 00 26 bne,a 200de90 <rtems_blkdev_generic_ioctl+0xdc><== NOT EXECUTED
200ddfc: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED
{
case RTEMS_BLKIO_GETMEDIABLKSIZE:
*((uint32_t *) args->buffer) = dd->media_block_size;
200de00: 10 80 00 0f b 200de3c <rtems_blkdev_generic_ioctl+0x88> <== NOT EXECUTED
200de04: 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)
200de08: 86 10 e2 04 or %g3, 0x204, %g3
200de0c: 80 a2 40 03 cmp %o1, %g3
200de10: 02 80 00 12 be 200de58 <rtems_blkdev_generic_ioctl+0xa4> <== ALWAYS TAKEN
200de14: 07 30 06 10 sethi %hi(0xc0184000), %g3
200de18: 86 10 e2 01 or %g3, 0x201, %g3 ! c0184201 <RAM_END+0xbdd84201><== NOT EXECUTED
200de1c: 80 a2 40 03 cmp %o1, %g3 <== NOT EXECUTED
200de20: 02 80 00 19 be 200de84 <rtems_blkdev_generic_ioctl+0xd0> <== NOT EXECUTED
200de24: 84 10 a2 05 or %g2, 0x205, %g2 <== NOT EXECUTED
200de28: 80 a2 40 02 cmp %o1, %g2 <== NOT EXECUTED
200de2c: 32 80 00 19 bne,a 200de90 <rtems_blkdev_generic_ioctl+0xdc><== NOT EXECUTED
200de30: 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;
200de34: 10 80 00 0d b 200de68 <rtems_blkdev_generic_ioctl+0xb4> <== NOT EXECUTED
200de38: 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;
200de3c: 10 80 00 04 b 200de4c <rtems_blkdev_generic_ioctl+0x98> <== NOT EXECUTED
200de40: c2 06 a0 08 ld [ %i2 + 8 ], %g1 <== NOT EXECUTED
200de44: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 <== NOT EXECUTED
200de48: c2 06 a0 08 ld [ %i2 + 8 ], %g1 <== NOT EXECUTED
200de4c: c4 20 40 00 st %g2, [ %g1 ] <== NOT EXECUTED
args->ioctl_return = 0;
break;
200de50: 10 80 00 14 b 200dea0 <rtems_blkdev_generic_ioctl+0xec>
200de54: c0 26 a0 0c clr [ %i2 + 0xc ]
case RTEMS_BLKIO_SETBLKSIZE:
dd->block_size = *((uint32_t *) args->buffer);
200de58: c4 06 a0 08 ld [ %i2 + 8 ], %g2
200de5c: c4 00 80 00 ld [ %g2 ], %g2
200de60: 10 bf ff fc b 200de50 <rtems_blkdev_generic_ioctl+0x9c>
200de64: 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;
200de68: 10 bf ff f9 b 200de4c <rtems_blkdev_generic_ioctl+0x98> <== NOT EXECUTED
200de6c: 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);
200de70: 7f ff f7 8e call 200bca8 <rtems_bdbuf_syncdev> <== NOT EXECUTED
200de74: d0 18 40 00 ldd [ %g1 ], %o0 <== NOT EXECUTED
args->ioctl_return = (uint32_t) (rc == RTEMS_SUCCESSFUL ? 0 : -1);
200de78: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
200de7c: 10 80 00 03 b 200de88 <rtems_blkdev_generic_ioctl+0xd4> <== NOT EXECUTED
200de80: 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;
200de84: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
break;
200de88: 10 80 00 06 b 200dea0 <rtems_blkdev_generic_ioctl+0xec> <== NOT EXECUTED
200de8c: c2 26 a0 0c st %g1, [ %i2 + 0xc ] <== NOT EXECUTED
default:
args->ioctl_return = (uint32_t) dd->ioctl(dd->phys_dev,
200de90: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 <== NOT EXECUTED
200de94: 9f c0 40 00 call %g1 <== NOT EXECUTED
200de98: d4 06 a0 08 ld [ %i2 + 8 ], %o2 <== NOT EXECUTED
200de9c: d0 26 a0 0c st %o0, [ %i2 + 0xc ] <== NOT EXECUTED
args->buffer);
break;
}
return RTEMS_SUCCESSFUL;
}
200dea0: 81 c7 e0 08 ret
200dea4: 91 e8 20 00 restore %g0, 0, %o0
0200e000 <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)
{
200e000: 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;
200e004: 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);
200e008: 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;
200e00c: 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);
200e010: 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;
200e014: 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);
200e018: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
200e01c: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
200e020: 40 00 3b b0 call 201cee0 <__divdi3> <== NOT EXECUTED
200e024: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
200e028: 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);
200e02c: a8 10 00 09 mov %o1, %l4 <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
200e030: 94 10 20 00 clr %o2 <== NOT EXECUTED
200e034: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
200e038: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
200e03c: 40 00 3c 90 call 201d27c <__moddi3> <== NOT EXECUTED
200e040: 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);
200e044: 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;
200e048: 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);
200e04c: a2 10 00 09 mov %o1, %l1 <== NOT EXECUTED
dev_t dev = dd->dev;
args->bytes_moved = 0;
200e050: c0 26 a0 1c clr [ %i2 + 0x1c ] <== NOT EXECUTED
while (count > 0)
200e054: 10 80 00 1d b 200e0c8 <rtems_blkdev_generic_read+0xc8> <== NOT EXECUTED
200e058: e0 06 a0 14 ld [ %i2 + 0x14 ], %l0 <== NOT EXECUTED
{
rtems_bdbuf_buffer *diskbuf;
uint32_t copy;
rc = rtems_bdbuf_read(dev, block, &diskbuf);
200e05c: 7f ff fe 7c call 200da4c <rtems_bdbuf_read> <== NOT EXECUTED
200e060: 01 00 00 00 nop <== NOT EXECUTED
200e064: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
200e068: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
200e06c: 12 80 00 1e bne 200e0e4 <rtems_blkdev_generic_read+0xe4> <== NOT EXECUTED
200e070: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
break;
copy = block_size - blkofs;
200e074: aa 24 c0 11 sub %l3, %l1, %l5 <== NOT EXECUTED
if (copy > count)
copy = count;
memcpy(buf, (char *)diskbuf->buffer + blkofs, copy);
200e078: 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;
200e07c: 80 a5 40 10 cmp %l5, %l0 <== NOT EXECUTED
200e080: 08 80 00 03 bleu 200e08c <rtems_blkdev_generic_read+0x8c> <== NOT EXECUTED
200e084: a8 05 20 01 inc %l4 <== NOT EXECUTED
200e088: aa 10 00 10 mov %l0, %l5 <== NOT EXECUTED
if (copy > count)
copy = count;
memcpy(buf, (char *)diskbuf->buffer + blkofs, copy);
200e08c: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
200e090: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED
200e094: 40 00 17 62 call 2013e1c <memcpy> <== NOT EXECUTED
200e098: 92 02 40 11 add %o1, %l1, %o1 <== NOT EXECUTED
rc = rtems_bdbuf_release(diskbuf);
200e09c: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
200e0a0: 7f ff f9 d3 call 200c7ec <rtems_bdbuf_release> <== NOT EXECUTED
200e0a4: a4 04 80 15 add %l2, %l5, %l2 <== NOT EXECUTED
args->bytes_moved += copy;
200e0a8: 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);
200e0ac: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
args->bytes_moved += copy;
200e0b0: 82 00 40 15 add %g1, %l5, %g1 <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
200e0b4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200e0b8: 12 80 00 0b bne 200e0e4 <rtems_blkdev_generic_read+0xe4> <== NOT EXECUTED
200e0bc: c2 26 a0 1c st %g1, [ %i2 + 0x1c ] <== NOT EXECUTED
break;
count -= copy;
200e0c0: a0 24 00 15 sub %l0, %l5, %l0 <== NOT EXECUTED
buf += copy;
blkofs = 0;
block++;
200e0c4: 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);
200e0c8: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
200e0cc: 96 10 00 16 mov %l6, %o3 <== NOT EXECUTED
200e0d0: 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)
200e0d4: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
200e0d8: 12 bf ff e1 bne 200e05c <rtems_blkdev_generic_read+0x5c> <== NOT EXECUTED
200e0dc: 92 10 00 1d mov %i5, %o1 <== NOT EXECUTED
200e0e0: b0 10 20 00 clr %i0 <== NOT EXECUTED
blkofs = 0;
block++;
}
return rc;
}
200e0e4: 81 c7 e0 08 ret <== NOT EXECUTED
200e0e8: 81 e8 00 00 restore <== NOT EXECUTED
0200def0 <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)
{
200def0: 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;
200def4: 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);
200def8: 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;
200defc: 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);
200df00: 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;
200df04: 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);
200df08: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
200df0c: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
200df10: 40 00 3b f4 call 201cee0 <__divdi3> <== NOT EXECUTED
200df14: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
200df18: 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);
200df1c: a6 10 00 09 mov %o1, %l3 <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
200df20: 94 10 20 00 clr %o2 <== NOT EXECUTED
200df24: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
200df28: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
200df2c: 40 00 3c d4 call 201d27c <__moddi3> <== NOT EXECUTED
200df30: 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);
200df34: 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;
200df38: 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);
200df3c: a2 10 00 09 mov %o1, %l1 <== NOT EXECUTED
dev_t dev = dd->dev;
args->bytes_moved = 0;
200df40: c0 26 a0 1c clr [ %i2 + 0x1c ] <== NOT EXECUTED
while (count > 0)
200df44: 10 80 00 29 b 200dfe8 <rtems_blkdev_generic_write+0xf8> <== NOT EXECUTED
200df48: e0 06 a0 14 ld [ %i2 + 0x14 ], %l0 <== NOT EXECUTED
{
rtems_bdbuf_buffer *diskbuf;
uint32_t copy;
if ((blkofs == 0) && (count >= block_size))
200df4c: 0a 80 00 0c bcs 200df7c <rtems_blkdev_generic_write+0x8c> <== NOT EXECUTED
200df50: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
200df54: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
200df58: 12 80 00 0a bne 200df80 <rtems_blkdev_generic_write+0x90> <== NOT EXECUTED
200df5c: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
rc = rtems_bdbuf_get(dev, block, &diskbuf);
200df60: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
200df64: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
200df68: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
200df6c: 7f ff fe 85 call 200d980 <rtems_bdbuf_get> <== NOT EXECUTED
200df70: 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);
200df74: 10 80 00 07 b 200df90 <rtems_blkdev_generic_write+0xa0> <== NOT EXECUTED
200df78: 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);
200df7c: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
200df80: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
200df84: 7f ff fe b2 call 200da4c <rtems_bdbuf_read> <== NOT EXECUTED
200df88: 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);
200df8c: 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)
200df90: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200df94: 12 80 00 19 bne 200dff8 <rtems_blkdev_generic_write+0x108><== NOT EXECUTED
200df98: 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);
200df9c: 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;
200dfa0: 80 a7 40 10 cmp %i5, %l0 <== NOT EXECUTED
200dfa4: 08 80 00 03 bleu 200dfb0 <rtems_blkdev_generic_write+0xc0><== NOT EXECUTED
200dfa8: a6 04 e0 01 inc %l3 <== NOT EXECUTED
200dfac: ba 10 00 10 mov %l0, %i5 <== NOT EXECUTED
if (copy > count)
copy = count;
memcpy((char *)diskbuf->buffer + blkofs, buf, copy);
200dfb0: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
200dfb4: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
200dfb8: 40 00 17 99 call 2013e1c <memcpy> <== NOT EXECUTED
200dfbc: 90 02 00 11 add %o0, %l1, %o0 <== NOT EXECUTED
args->bytes_moved += copy;
200dfc0: c2 06 a0 1c ld [ %i2 + 0x1c ], %g1 <== NOT EXECUTED
rc = rtems_bdbuf_release_modified(diskbuf);
200dfc4: 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;
200dfc8: 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;
200dfcc: 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);
200dfd0: 7f ff f9 e1 call 200c754 <rtems_bdbuf_release_modified> <== NOT EXECUTED
200dfd4: c2 26 a0 1c st %g1, [ %i2 + 0x1c ] <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
200dfd8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200dfdc: 12 80 00 07 bne 200dff8 <rtems_blkdev_generic_write+0x108><== NOT EXECUTED
200dfe0: a0 24 00 1d sub %l0, %i5, %l0 <== NOT EXECUTED
break;
count -= copy;
buf += copy;
blkofs = 0;
block++;
200dfe4: 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)
200dfe8: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
200dfec: 32 bf ff d8 bne,a 200df4c <rtems_blkdev_generic_write+0x5c><== NOT EXECUTED
200dff0: 80 a4 00 12 cmp %l0, %l2 <== NOT EXECUTED
200dff4: 90 10 20 00 clr %o0 <== NOT EXECUTED
blkofs = 0;
block++;
}
return rc;
}
200dff8: 81 c7 e0 08 ret <== NOT EXECUTED
200dffc: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0200dd0c <rtems_blkdev_ioctl>:
return RTEMS_SUCCESSFUL;
}
int
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)
{
200dd0c: 9d e3 bf a0 save %sp, -96, %sp
size_t *arg_size = argp;
int rc = 0;
switch (req)
200dd10: 05 10 01 10 sethi %hi(0x40044000), %g2
200dd14: 86 10 a2 03 or %g2, 0x203, %g3 ! 40044203 <RAM_END+0x3dc44203>
200dd18: 80 a6 40 03 cmp %i1, %g3
200dd1c: 02 80 00 16 be 200dd74 <rtems_blkdev_ioctl+0x68> <== NEVER TAKEN
200dd20: 82 10 00 18 mov %i0, %g1
200dd24: 80 a6 40 03 cmp %i1, %g3
200dd28: 38 80 00 08 bgu,a 200dd48 <rtems_blkdev_ioctl+0x3c> <== NEVER TAKEN
200dd2c: 84 10 a2 05 or %g2, 0x205, %g2 <== NOT EXECUTED
200dd30: 84 10 a2 02 or %g2, 0x202, %g2
200dd34: 80 a6 40 02 cmp %i1, %g2
200dd38: 12 80 00 19 bne 200dd9c <rtems_blkdev_ioctl+0x90> <== ALWAYS TAKEN
200dd3c: 01 00 00 00 nop
{
case RTEMS_BLKIO_GETMEDIABLKSIZE:
*arg_size = dd->media_block_size;
200dd40: 10 80 00 0b b 200dd6c <rtems_blkdev_ioctl+0x60> <== NOT EXECUTED
200dd44: 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)
200dd48: 80 a6 40 02 cmp %i1, %g2 <== NOT EXECUTED
200dd4c: 02 80 00 0f be 200dd88 <rtems_blkdev_ioctl+0x7c> <== NOT EXECUTED
200dd50: 05 20 01 10 sethi %hi(0x80044000), %g2 <== NOT EXECUTED
200dd54: 84 10 a2 04 or %g2, 0x204, %g2 ! 80044204 <RAM_END+0x7dc44204><== NOT EXECUTED
200dd58: 80 a6 40 02 cmp %i1, %g2 <== NOT EXECUTED
200dd5c: 12 80 00 10 bne 200dd9c <rtems_blkdev_ioctl+0x90> <== NOT EXECUTED
200dd60: 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;
200dd64: 10 80 00 06 b 200dd7c <rtems_blkdev_ioctl+0x70> <== NOT EXECUTED
200dd68: c4 06 80 00 ld [ %i2 ], %g2 <== NOT EXECUTED
break;
case RTEMS_BLKIO_GETSIZE:
*arg_size = dd->size;
200dd6c: 10 80 00 09 b 200dd90 <rtems_blkdev_ioctl+0x84> <== NOT EXECUTED
200dd70: 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;
200dd74: 10 80 00 06 b 200dd8c <rtems_blkdev_ioctl+0x80> <== NOT EXECUTED
200dd78: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED
break;
case RTEMS_BLKIO_SETBLKSIZE:
dd->block_size = *arg_size;
200dd7c: c4 20 60 20 st %g2, [ %g1 + 0x20 ] <== NOT EXECUTED
break;
200dd80: 81 c7 e0 08 ret <== NOT EXECUTED
200dd84: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
case RTEMS_BLKIO_GETSIZE:
*arg_size = dd->size;
200dd88: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
200dd8c: b0 10 20 00 clr %i0 <== NOT EXECUTED
200dd90: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
break;
200dd94: 81 c7 e0 08 ret <== NOT EXECUTED
200dd98: 81 e8 00 00 restore <== NOT EXECUTED
default:
errno = EINVAL;
200dd9c: 40 00 15 e4 call 201352c <__errno>
200dda0: b0 10 3f ff mov -1, %i0
200dda4: 82 10 20 16 mov 0x16, %g1
200dda8: c2 22 00 00 st %g1, [ %o0 ]
rc = -1;
break;
}
return rc;
}
200ddac: 81 c7 e0 08 ret
200ddb0: 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 38 41 call 201066c <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 da call 2008c24 <_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 8e sethi %hi(0x2023800), %o0
20030d0: 94 10 00 1d mov %i5, %o2
20030d4: 40 00 21 05 call 200b4e8 <_Timespec_Subtract>
20030d8: 90 12 22 4c or %o0, 0x24c, %o0
}
}
}
#endif
(*print)(
20030dc: 90 10 00 18 mov %i0, %o0
20030e0: 13 00 80 81 sethi %hi(0x2020400), %o1
20030e4: 21 00 80 8d sethi %hi(0x2023400), %l0
20030e8: 92 12 62 a8 or %o1, 0x2a8, %o1
if ( !the_thread )
continue;
rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
(*print)(
20030ec: 39 00 80 82 sethi %hi(0x2020800), %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 8e sethi %hi(0x2023800), %l6
/*
* Print the information
*/
(*print)( context,
20030f4: 37 00 80 82 sethi %hi(0x2020800), %i3
}
}
}
#endif
(*print)(
20030f8: 9f c6 40 00 call %i1
20030fc: 35 00 80 8e sethi %hi(0x2023800), %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 22 f4 or %l0, 0x2f4, %l0
if ( !the_thread )
continue;
rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
(*print)(
2003108: b8 17 20 20 or %i4, 0x20, %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 a0 50 or %l6, 0x50, %l6
/*
* Print the information
*/
(*print)( context,
2003110: b6 16 e0 38 or %i3, 0x38, %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 a0 58 or %i2, 0x58, %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 20 cd call 200b4e8 <_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 20 call 200b240 <_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 35 call 200b2a8 <_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 6b 34 call 201deb0 <.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 8d sethi %hi(0x2023400), %g1
2003224: 82 10 63 04 or %g1, 0x304, %g1 ! 2023704 <_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 6b 1e call 201deb0 <.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 82 sethi %hi(0x2020800), %o1
200324c: 90 10 00 18 mov %i0, %o0
2003250: 9f c6 40 00 call %i1
2003254: 92 12 60 50 or %o1, 0x50, %o1
2003258: 81 c7 e0 08 ret
200325c: 81 e8 00 00 restore
0200f440 <rtems_deviceio_errno>:
{ 0, 0, 0 },
};
int
rtems_deviceio_errno(rtems_status_code code)
{
200f440: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc;
if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code)))
200f444: 11 00 80 6e sethi %hi(0x201b800), %o0 <== NOT EXECUTED
200f448: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
200f44c: 40 00 00 0a call 200f474 <rtems_assoc_remote_by_local> <== NOT EXECUTED
200f450: 90 12 20 b0 or %o0, 0xb0, %o0 <== NOT EXECUTED
200f454: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
200f458: 02 80 00 05 be 200f46c <rtems_deviceio_errno+0x2c> <== NOT EXECUTED
200f45c: 01 00 00 00 nop <== NOT EXECUTED
{
errno = rc;
200f460: 40 00 00 2f call 200f51c <__errno> <== NOT EXECUTED
200f464: 01 00 00 00 nop <== NOT EXECUTED
200f468: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED
return -1;
}
return -1;
}
200f46c: 81 c7 e0 08 ret <== NOT EXECUTED
200f470: 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 81 sethi %hi(0x2020400), %i3
rtems_disk_device_table *dtab = disktab + major;
2002c1c: 39 00 80 81 sethi %hi(0x2020400), %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 e0 d0 or %i3, 0xd0, %i3
rtems_disk_device_table *dtab = disktab + major;
2002c24: b8 17 20 cc or %i4, 0xcc, %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 81 sethi %hi(0x2020400), %g2
2002cf8: c4 00 a0 cc ld [ %g2 + 0xcc ], %g2 ! 20204cc <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 81 sethi %hi(0x2020400), %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 a0 cc ld [ %g2 + 0xcc ], %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 81 sethi %hi(0x2020400), %l0
2002904: 29 00 80 81 sethi %hi(0x2020400), %l4
2002908: a0 14 20 d0 or %l0, 0xd0, %l0
rtems_disk_device_table *dtab = disktab + major;
200290c: a8 15 20 cc or %l4, 0xcc, %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 81 sethi %hi(0x2020400), %l1
free_disk_device(dd);
}
}
free(dtab->minor);
}
free(disktab);
2002974: d0 04 60 cc ld [ %l1 + 0xcc ], %o0 ! 20204cc <disktab>
2002978: 40 00 04 81 call 2003b7c <free>
200297c: 25 00 80 81 sethi %hi(0x2020400), %l2
rtems_semaphore_delete(diskdevs_mutex);
2002980: d0 04 a0 d4 ld [ %l2 + 0xd4 ], %o0 ! 20204d4 <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 a0 d4 clr [ %l2 + 0xd4 ]
disktab = NULL;
2002990: c0 24 60 cc clr [ %l1 + 0xcc ]
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 81 sethi %hi(0x2020400), %l1
20029a8: c2 04 60 d0 ld [ %l1 + 0xd0 ], %g1 ! 20204d0 <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 81 sethi %hi(0x2020400), %l0
20029c8: d0 24 20 cc st %o0, [ %l0 + 0xcc ] ! 20204cc <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 81 sethi %hi(0x2020400), %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 60 d8 clrb [ %g1 + 0xd8 ]
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 81 sethi %hi(0x2020400), %l2
20029f8: 40 00 12 a0 call 2007478 <rtems_semaphore_create>
20029fc: 98 14 a0 d4 or %l2, 0xd4, %o4 ! 20204d4 <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 20 cc ld [ %l0 + 0xcc ], %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 1a call 200be84 <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 a0 d4 ld [ %l2 + 0xd4 ], %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 20 cc ld [ %l0 + 0xcc ], %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 60 d0 st %g1, [ %l1 + 0xd0 ]
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 81 sethi %hi(0x2020400), %g1
return NULL;
}
if (major >= disktab_size) {
2002b24: c6 00 60 d0 ld [ %g1 + 0xd0 ], %g3 ! 20204d0 <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 81 sethi %hi(0x2020400), %g1
disk_unlock();
return NULL;
}
dtab = disktab + major;
2002b34: c4 00 60 cc ld [ %g1 + 0xcc ], %g2 ! 20204cc <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 81 sethi %hi(0x2020400), %g1
2002dc4: c2 08 60 d8 ldub [ %g1 + 0xd8 ], %g1 ! 20204d8 <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
0201ffa0 <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,
201ffa0: 13 00 81 88 sethi %hi(0x2062000), %o1 <== NOT EXECUTED
201ffa4: 15 00 81 9a sethi %hi(0x2066800), %o2 <== NOT EXECUTED
201ffa8: 17 00 81 99 sethi %hi(0x2066400), %o3 <== NOT EXECUTED
201ffac: 92 12 60 d8 or %o1, 0xd8, %o1 <== NOT EXECUTED
201ffb0: 94 12 a0 18 or %o2, 0x18, %o2 <== NOT EXECUTED
201ffb4: 96 12 e3 e0 or %o3, 0x3e0, %o3 <== NOT EXECUTED
201ffb8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
201ffbc: 40 00 00 03 call 201ffc8 <msdos_initialize_support> <== NOT EXECUTED
201ffc0: 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 32 a1 call 200f51c <__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 32 9a call 200f51c <__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 32 dc call 200f51c <__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 32 d5 call 200f51c <__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 32 b0 call 200f51c <__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
0200c1b0 <rtems_filesystem_get_mount_handler>:
rtems_filesystem_fsmount_me_t
rtems_filesystem_get_mount_handler(
const char *type
)
{
200c1b0: 9d e3 bf 98 save %sp, -104, %sp
find_arg fa = {
.type = type,
.mount_h = NULL
};
200c1b4: c0 27 bf fc clr [ %fp + -4 ]
if ( type != NULL ) {
200c1b8: 80 a6 20 00 cmp %i0, 0
200c1bc: 02 80 00 06 be 200c1d4 <rtems_filesystem_get_mount_handler+0x24><== NEVER TAKEN
200c1c0: f0 27 bf f8 st %i0, [ %fp + -8 ]
rtems_filesystem_iterate( find_handler, &fa );
200c1c4: 11 00 80 2f sethi %hi(0x200bc00), %o0
200c1c8: 92 07 bf f8 add %fp, -8, %o1
200c1cc: 7f ff ff c8 call 200c0ec <rtems_filesystem_iterate>
200c1d0: 90 12 23 fc or %o0, 0x3fc, %o0
}
return fa.mount_h;
}
200c1d4: f0 07 bf fc ld [ %fp + -4 ], %i0
200c1d8: 81 c7 e0 08 ret
200c1dc: 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 70 sethi %hi(0x201c000), %l1
20027c4: c2 04 62 80 ld [ %l1 + 0x280 ], %g1 ! 201c280 <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 6a sethi %hi(0x201a800), %g1
20027d4: c2 00 62 e8 ld [ %g1 + 0x2e8 ], %g1 ! 201aae8 <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 70 sethi %hi(0x201c000), %g1
20027ec: c2 00 60 bc ld [ %g1 + 0xbc ], %g1 ! 201c0bc <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 62 80 ld [ %l1 + 0x280 ], %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 63 call 20069a8 <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 6b sethi %hi(0x201ac00), %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 98 or %l2, 0x398, %o0
rtems_filesystem_root = loc;
2002848: d0 04 62 80 ld [ %l1 + 0x280 ], %o0
200284c: 92 10 00 10 mov %l0, %o1
2002850: 94 10 20 14 mov 0x14, %o2
2002854: 40 00 35 6e call 200fe0c <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 98 or %l2, 0x398, %o0
rtems_filesystem_current = loc;
2002874: d0 04 62 80 ld [ %l1 + 0x280 ], %o0
2002878: 92 10 00 10 mov %l0, %o1
200287c: 94 10 20 14 mov 0x14, %o2
2002880: 40 00 35 63 call 200fe0c <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 6b sethi %hi(0x201ac00), %o0
2002890: 40 00 01 bb call 2002f7c <mkdir>
2002894: 90 12 23 a0 or %o0, 0x3a0, %o0 ! 201afa0 <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 72 sethi %hi(0x201c800), %g1
20030e8: d0 00 62 50 ld [ %g1 + 0x250 ], %o0 ! 201ca50 <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 70 sethi %hi(0x201c000), %g1
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
2003100: 25 00 80 70 sethi %hi(0x201c000), %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 62 60 ld [ %g1 + 0x260 ], %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 a2 64 or %l2, 0x264, %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 72 sethi %hi(0x201c800), %g1
2003144: 40 00 0c c7 call 2006460 <rtems_semaphore_release>
2003148: d0 00 62 50 ld [ %g1 + 0x250 ], %o0 ! 201ca50 <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
0200c1e0 <rtems_filesystem_register>:
int
rtems_filesystem_register(
const char *type,
rtems_filesystem_fsmount_me_t mount_h
)
{
200c1e0: 9d e3 bf a0 save %sp, -96, %sp
size_t fsn_size = sizeof( filesystem_node ) + strlen(type) + 1;
200c1e4: 40 00 10 9b call 2010450 <strlen>
200c1e8: 90 10 00 18 mov %i0, %o0
filesystem_node *fsn = malloc( fsn_size );
200c1ec: 7f ff db 23 call 2002e78 <malloc>
200c1f0: 90 02 20 11 add %o0, 0x11, %o0
char *type_storage = (char *) fsn + sizeof( filesystem_node );
if ( fsn == NULL )
200c1f4: a0 92 20 00 orcc %o0, 0, %l0
200c1f8: 12 80 00 08 bne 200c218 <rtems_filesystem_register+0x38> <== ALWAYS TAKEN
200c1fc: a4 04 20 10 add %l0, 0x10, %l2
rtems_set_errno_and_return_minus_one( ENOMEM );
200c200: 40 00 0c c7 call 200f51c <__errno> <== NOT EXECUTED
200c204: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200c208: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
200c20c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200c210: 81 c7 e0 08 ret <== NOT EXECUTED
200c214: 81 e8 00 00 restore <== NOT EXECUTED
strcpy(type_storage, type);
200c218: 92 10 00 18 mov %i0, %o1
200c21c: 40 00 10 55 call 2010370 <strcpy>
200c220: 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 );
200c224: 23 00 80 72 sethi %hi(0x201c800), %l1
200c228: d0 04 62 50 ld [ %l1 + 0x250 ], %o0 ! 201ca50 <rtems_libio_semaphore>
200c22c: 92 10 20 00 clr %o1
200c230: 94 10 20 00 clr %o2
fsn->entry.type = type_storage;
200c234: e4 24 20 08 st %l2, [ %l0 + 8 ]
200c238: 7f ff e8 43 call 2006344 <rtems_semaphore_obtain>
200c23c: 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 ) {
200c240: 7f ff ff dc call 200c1b0 <rtems_filesystem_get_mount_handler>
200c244: 90 10 00 18 mov %i0, %o0
200c248: 80 a2 20 00 cmp %o0, 0
200c24c: 12 80 00 0a bne 200c274 <rtems_filesystem_register+0x94> <== NEVER TAKEN
200c250: 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 );
200c254: 11 00 80 70 sethi %hi(0x201c000), %o0
200c258: 7f ff ea 94 call 2006ca8 <_Chain_Append>
200c25c: 90 12 22 88 or %o0, 0x288, %o0 ! 201c288 <filesystem_chain>
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
200c260: d0 04 62 50 ld [ %l1 + 0x250 ], %o0
200c264: 7f ff e8 7f call 2006460 <rtems_semaphore_release>
200c268: b0 10 20 00 clr %i0
rtems_set_errno_and_return_minus_one( EINVAL );
}
rtems_libio_unlock();
return 0;
200c26c: 81 c7 e0 08 ret
200c270: 81 e8 00 00 restore
200c274: d0 04 62 50 ld [ %l1 + 0x250 ], %o0 <== NOT EXECUTED
200c278: 7f ff e8 7a call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200c27c: 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 );
200c280: 7f ff da 1f call 2002afc <free> <== NOT EXECUTED
200c284: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
200c288: 40 00 0c a5 call 200f51c <__errno> <== NOT EXECUTED
200c28c: 01 00 00 00 nop <== NOT EXECUTED
200c290: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
200c294: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
rtems_libio_unlock();
return 0;
}
200c298: 81 c7 e0 08 ret <== NOT EXECUTED
200c29c: 81 e8 00 00 restore <== NOT EXECUTED
0200c030 <rtems_filesystem_unregister>:
int
rtems_filesystem_unregister(
const char *type
)
{
200c030: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_chain_node *node = NULL;
if ( type == NULL ) {
200c034: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
200c038: 12 80 00 08 bne 200c058 <rtems_filesystem_unregister+0x28><== NOT EXECUTED
200c03c: 03 00 80 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
200c040: 40 00 0d 37 call 200f51c <__errno> <== NOT EXECUTED
200c044: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200c048: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
200c04c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200c050: 81 c7 e0 08 ret <== NOT EXECUTED
200c054: 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 );
200c058: d0 00 62 50 ld [ %g1 + 0x250 ], %o0 <== NOT EXECUTED
200c05c: 92 10 20 00 clr %o1 <== NOT EXECUTED
200c060: 7f ff e8 b9 call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
200c064: 94 10 20 00 clr %o2 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
200c068: 03 00 80 70 sethi %hi(0x201c000), %g1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200c06c: 23 00 80 70 sethi %hi(0x201c000), %l1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
200c070: e0 00 62 88 ld [ %g1 + 0x288 ], %l0 <== NOT EXECUTED
}
rtems_libio_lock();
for (
200c074: 10 80 00 11 b 200c0b8 <rtems_filesystem_unregister+0x88> <== NOT EXECUTED
200c078: a2 14 62 8c or %l1, 0x28c, %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 ) {
200c07c: 40 00 10 8f call 20102b8 <strcmp> <== NOT EXECUTED
200c080: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
200c084: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200c088: 32 80 00 0c bne,a 200c0b8 <rtems_filesystem_unregister+0x88><== NOT EXECUTED
200c08c: 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 );
200c090: 7f ff eb 12 call 2006cd8 <_Chain_Extract> <== NOT EXECUTED
200c094: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_chain_extract( node );
free( fsn );
200c098: 7f ff da 99 call 2002afc <free> <== NOT EXECUTED
200c09c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
200c0a0: 03 00 80 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED
200c0a4: d0 00 62 50 ld [ %g1 + 0x250 ], %o0 ! 201ca50 <rtems_libio_semaphore><== NOT EXECUTED
200c0a8: 7f ff e8 ee call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200c0ac: b0 10 20 00 clr %i0 <== NOT EXECUTED
rtems_libio_unlock();
return 0;
200c0b0: 81 c7 e0 08 ret <== NOT EXECUTED
200c0b4: 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;
200c0b8: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED
200c0bc: 32 bf ff f0 bne,a 200c07c <rtems_filesystem_unregister+0x4c><== NOT EXECUTED
200c0c0: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED
200c0c4: 03 00 80 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED
200c0c8: d0 00 62 50 ld [ %g1 + 0x250 ], %o0 ! 201ca50 <rtems_libio_semaphore><== NOT EXECUTED
200c0cc: 7f ff e8 e5 call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200c0d0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
}
}
rtems_libio_unlock();
rtems_set_errno_and_return_minus_one( ENOENT );
200c0d4: 40 00 0d 12 call 200f51c <__errno> <== NOT EXECUTED
200c0d8: 01 00 00 00 nop <== NOT EXECUTED
200c0dc: 82 10 20 02 mov 2, %g1 ! 2 <PROM_START+0x2> <== NOT EXECUTED
200c0e0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
200c0e4: 81 c7 e0 08 ret <== NOT EXECUTED
200c0e8: 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 a6 sethi %hi(0x2069800), %l1 <== NOT EXECUTED
2007328: 2b 00 81 79 sethi %hi(0x205e400), %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 79 sethi %hi(0x205e400), %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 79 sethi %hi(0x205e400), %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 63 d0 or %l1, 0x3d0, %l1 <== NOT EXECUTED
2007338: aa 15 60 c8 or %l5, 0xc8, %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 20 98 or %l4, 0x98, %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 e0 60 or %l3, 0x60, %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 ee 2c call 2042c28 <__errno> <== NOT EXECUTED
200737c: ee 00 60 08 ld [ %g1 + 8 ], %l7 <== NOT EXECUTED
2007380: 40 01 08 c6 call 2049698 <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 f0 d5 call 20436e8 <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 ee 1a call 2042c28 <__errno> <== NOT EXECUTED
20073c4: ec 06 20 04 ld [ %i0 + 4 ], %l6 <== NOT EXECUTED
20073c8: 40 01 08 b4 call 2049698 <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 f0 c2 call 20436e8 <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 f0 b4 call 20436e8 <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 37 76 call 2010450 <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 33 94 call 200f51c <__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 37 48 call 2010450 <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
02009228 <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)
{
2009228: 9d e3 bf a0 save %sp, -96, %sp
uint32_t i;
uint32_t api_index;
Thread_Control *the_thread;
Objects_Information *information;
if ( !routine )
200922c: 80 a6 20 00 cmp %i0, 0
2009230: 02 80 00 1d be 20092a4 <rtems_iterate_over_all_threads+0x7c><== NEVER TAKEN
2009234: 21 00 80 8d sethi %hi(0x2023400), %l0
2009238: a0 14 22 f4 or %l0, 0x2f4, %l0 ! 20236f4 <_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)
200923c: 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 ] )
2009240: c2 04 00 00 ld [ %l0 ], %g1
2009244: 80 a0 60 00 cmp %g1, 0
2009248: 22 80 00 14 be,a 2009298 <rtems_iterate_over_all_threads+0x70>
200924c: a0 04 20 04 add %l0, 4, %l0
continue;
information = _Objects_Information_table[ api_index ][ 1 ];
2009250: e4 00 60 04 ld [ %g1 + 4 ], %l2
if ( !information )
2009254: 80 a4 a0 00 cmp %l2, 0
2009258: 12 80 00 0b bne 2009284 <rtems_iterate_over_all_threads+0x5c>
200925c: a2 10 20 01 mov 1, %l1
continue;
for ( i=1 ; i <= information->maximum ; i++ ) {
2009260: 10 80 00 0e b 2009298 <rtems_iterate_over_all_threads+0x70>
2009264: a0 04 20 04 add %l0, 4, %l0
the_thread = (Thread_Control *)information->local_table[ i ];
2009268: c2 04 a0 1c ld [ %l2 + 0x1c ], %g1
200926c: d0 00 40 02 ld [ %g1 + %g2 ], %o0
if ( !the_thread )
2009270: 80 a2 20 00 cmp %o0, 0
2009274: 02 80 00 04 be 2009284 <rtems_iterate_over_all_threads+0x5c><== NEVER TAKEN
2009278: a2 04 60 01 inc %l1
continue;
(*routine)(the_thread);
200927c: 9f c6 00 00 call %i0
2009280: 01 00 00 00 nop
information = _Objects_Information_table[ api_index ][ 1 ];
if ( !information )
continue;
for ( i=1 ; i <= information->maximum ; i++ ) {
2009284: c2 14 a0 10 lduh [ %l2 + 0x10 ], %g1
2009288: 80 a4 40 01 cmp %l1, %g1
200928c: 08 bf ff f7 bleu 2009268 <rtems_iterate_over_all_threads+0x40>
2009290: 85 2c 60 02 sll %l1, 2, %g2
2009294: 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++ ) {
2009298: 80 a4 00 13 cmp %l0, %l3
200929c: 32 bf ff ea bne,a 2009244 <rtems_iterate_over_all_threads+0x1c>
20092a0: c2 04 00 00 ld [ %l0 ], %g1
20092a4: 81 c7 e0 08 ret
20092a8: 81 e8 00 00 restore
0200bef8 <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 )
{
200bef8: 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 );
200befc: 03 00 80 72 sethi %hi(0x201c800), %g1
200bf00: d0 00 62 50 ld [ %g1 + 0x250 ], %o0 ! 201ca50 <rtems_libio_semaphore>
200bf04: 92 10 20 00 clr %o1
200bf08: 7f ff e9 0f call 2006344 <rtems_semaphore_obtain>
200bf0c: 94 10 20 00 clr %o2
rtems_status_code rc;
rtems_id sema;
rtems_libio_lock();
if (rtems_libio_iop_freelist) {
200bf10: 21 00 80 72 sethi %hi(0x201c800), %l0
200bf14: c2 04 22 4c ld [ %l0 + 0x24c ], %g1 ! 201ca4c <rtems_libio_iop_freelist>
200bf18: 80 a0 60 00 cmp %g1, 0
200bf1c: 02 80 00 26 be 200bfb4 <rtems_libio_allocate+0xbc>
200bf20: b0 10 20 00 clr %i0
rc = rtems_semaphore_create(
200bf24: 05 00 80 72 sethi %hi(0x201c800), %g2
200bf28: c4 00 a2 48 ld [ %g2 + 0x248 ], %g2 ! 201ca48 <rtems_libio_iops>
200bf2c: 92 10 20 01 mov 1, %o1
200bf30: 82 20 40 02 sub %g1, %g2, %g1
200bf34: 83 38 60 03 sra %g1, 3, %g1
200bf38: 87 28 60 06 sll %g1, 6, %g3
200bf3c: 85 28 60 03 sll %g1, 3, %g2
200bf40: 84 20 c0 02 sub %g3, %g2, %g2
200bf44: 87 28 a0 06 sll %g2, 6, %g3
200bf48: 84 00 80 03 add %g2, %g3, %g2
200bf4c: 84 00 80 01 add %g2, %g1, %g2
200bf50: 87 28 a0 0f sll %g2, 0xf, %g3
200bf54: 84 20 c0 02 sub %g3, %g2, %g2
200bf58: 07 13 10 92 sethi %hi(0x4c424800), %g3
200bf5c: 85 28 a0 03 sll %g2, 3, %g2
200bf60: 86 10 e1 00 or %g3, 0x100, %g3
200bf64: 82 00 80 01 add %g2, %g1, %g1
200bf68: 94 10 20 54 mov 0x54, %o2
200bf6c: 96 10 20 00 clr %o3
200bf70: 90 10 40 03 or %g1, %g3, %o0
200bf74: 7f ff e8 52 call 20060bc <rtems_semaphore_create>
200bf78: 98 07 bf fc add %fp, -4, %o4
1,
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
0,
&sema
);
if (rc != RTEMS_SUCCESSFUL)
200bf7c: 80 a2 20 00 cmp %o0, 0
200bf80: 32 80 00 0d bne,a 200bfb4 <rtems_libio_allocate+0xbc> <== NEVER TAKEN
200bf84: b0 10 20 00 clr %i0 <== NOT EXECUTED
goto failed;
iop = rtems_libio_iop_freelist;
200bf88: f0 04 22 4c ld [ %l0 + 0x24c ], %i0
next = iop->data1;
(void) memset( iop, 0, sizeof(rtems_libio_t) );
200bf8c: 92 10 20 00 clr %o1
&sema
);
if (rc != RTEMS_SUCCESSFUL)
goto failed;
iop = rtems_libio_iop_freelist;
next = iop->data1;
200bf90: e2 06 20 38 ld [ %i0 + 0x38 ], %l1
(void) memset( iop, 0, sizeof(rtems_libio_t) );
200bf94: 90 10 00 18 mov %i0, %o0
200bf98: 40 00 0f dc call 200ff08 <memset>
200bf9c: 94 10 20 48 mov 0x48, %o2
iop->flags = LIBIO_FLAGS_OPEN;
iop->sem = sema;
200bfa0: c2 07 bf fc ld [ %fp + -4 ], %g1
rtems_libio_iop_freelist = next;
200bfa4: e2 24 22 4c st %l1, [ %l0 + 0x24c ]
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;
200bfa8: 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;
200bfac: 82 10 21 00 mov 0x100, %g1
200bfb0: c2 26 20 18 st %g1, [ %i0 + 0x18 ]
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
200bfb4: 03 00 80 72 sethi %hi(0x201c800), %g1
200bfb8: 7f ff e9 2a call 2006460 <rtems_semaphore_release>
200bfbc: d0 00 62 50 ld [ %g1 + 0x250 ], %o0 ! 201ca50 <rtems_libio_semaphore>
iop = 0;
done:
rtems_libio_unlock();
return iop;
}
200bfc0: 81 c7 e0 08 ret
200bfc4: 81 e8 00 00 restore
0200be98 <rtems_libio_free>:
*/
void rtems_libio_free(
rtems_libio_t *iop
)
{
200be98: 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 );
200be9c: 03 00 80 72 sethi %hi(0x201c800), %g1
200bea0: d0 00 62 50 ld [ %g1 + 0x250 ], %o0 ! 201ca50 <rtems_libio_semaphore>
200bea4: 92 10 20 00 clr %o1
200bea8: 7f ff e9 27 call 2006344 <rtems_semaphore_obtain>
200beac: 94 10 20 00 clr %o2
rtems_libio_lock();
if (iop->sem)
200beb0: d0 06 20 30 ld [ %i0 + 0x30 ], %o0
200beb4: 80 a2 20 00 cmp %o0, 0
200beb8: 02 80 00 04 be 200bec8 <rtems_libio_free+0x30> <== NEVER TAKEN
200bebc: a0 10 00 18 mov %i0, %l0
rtems_semaphore_delete(iop->sem);
200bec0: 7f ff e8 f3 call 200628c <rtems_semaphore_delete>
200bec4: 01 00 00 00 nop
iop->flags &= ~LIBIO_FLAGS_OPEN;
200bec8: c4 04 20 18 ld [ %l0 + 0x18 ], %g2
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
200becc: 07 00 80 72 sethi %hi(0x201c800), %g3
iop->data1 = rtems_libio_iop_freelist;
200bed0: 03 00 80 72 sethi %hi(0x201c800), %g1
200bed4: f0 00 e2 50 ld [ %g3 + 0x250 ], %i0
200bed8: c6 00 62 4c ld [ %g1 + 0x24c ], %g3
rtems_libio_iop_freelist = iop;
200bedc: e0 20 62 4c st %l0, [ %g1 + 0x24c ]
rtems_libio_lock();
if (iop->sem)
rtems_semaphore_delete(iop->sem);
iop->flags &= ~LIBIO_FLAGS_OPEN;
200bee0: 82 08 be ff and %g2, -257, %g1
iop->data1 = rtems_libio_iop_freelist;
200bee4: c6 24 20 38 st %g3, [ %l0 + 0x38 ]
rtems_libio_lock();
if (iop->sem)
rtems_semaphore_delete(iop->sem);
iop->flags &= ~LIBIO_FLAGS_OPEN;
200bee8: c2 24 20 18 st %g1, [ %l0 + 0x18 ]
200beec: 7f ff e9 5d call 2006460 <rtems_semaphore_release>
200bef0: 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 70 sethi %hi(0x201c000), %l0
2002c38: d0 04 20 b4 ld [ %l0 + 0xb4 ], %o0 ! 201c0b4 <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 72 sethi %hi(0x201c800), %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 62 48 st %o0, [ %g1 + 0x248 ]
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 72 sethi %hi(0x201c800), %g2
for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)
2002c6c: c8 04 20 b4 ld [ %l0 + 0xb4 ], %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 a2 4c st %o0, [ %g2 + 0x24c ]
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 72 sethi %hi(0x201c800), %o4
2002cb4: 40 00 0d 02 call 20060bc <rtems_semaphore_create>
2002cb8: 98 13 22 50 or %o4, 0x250, %o4 ! 201ca50 <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 70 sethi %hi(0x201c000), %g1
rtems_fatal_error_occurred( rc );
2002cc8: 40 00 0f 38 call 20069a8 <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 60 b0 ld [ %g1 + 0xb0 ], %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
0202a048 <rtems_libio_set_private_env>:
rtems_filesystem_freenode( &env->root_directory);
free(env);
}
}
rtems_status_code rtems_libio_set_private_env(void) {
202a048: 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);
202a04c: 90 10 20 00 clr %o0
202a050: 92 10 20 00 clr %o1
202a054: 40 00 05 21 call 202b4d8 <rtems_task_ident>
202a058: 94 07 bf fc add %fp, -4, %o2
if (sc != RTEMS_SUCCESSFUL) return sc;
202a05c: b0 92 20 00 orcc %o0, 0, %i0
202a060: 12 80 00 19 bne 202a0c4 <rtems_libio_set_private_env+0x7c><== NEVER TAKEN
202a064: 21 00 81 a5 sethi %hi(0x2069400), %l0
/* Only for the first time a malloc is necesary */
if (rtems_current_user_env==&rtems_global_user_env) {
202a068: c4 04 20 34 ld [ %l0 + 0x34 ], %g2 ! 2069434 <rtems_current_user_env>
202a06c: 03 00 81 b4 sethi %hi(0x206d000), %g1
202a070: 82 10 62 3c or %g1, 0x23c, %g1 ! 206d23c <rtems_global_user_env>
202a074: 80 a0 80 01 cmp %g2, %g1
202a078: 12 80 00 15 bne 202a0cc <rtems_libio_set_private_env+0x84>
202a07c: a4 14 20 34 or %l0, 0x34, %l2
rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t));
202a080: 7f ff 7a 3f call 200897c <malloc>
202a084: 90 10 20 48 mov 0x48, %o0
if (!tmp)
202a088: a2 92 20 00 orcc %o0, 0, %l1
202a08c: 12 80 00 04 bne 202a09c <rtems_libio_set_private_env+0x54><== ALWAYS TAKEN
202a090: 92 10 00 12 mov %l2, %o1
202a094: 81 c7 e0 08 ret <== NOT EXECUTED
202a098: 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);
202a09c: 90 10 20 00 clr %o0
202a0a0: 15 00 80 a7 sethi %hi(0x2029c00), %o2
202a0a4: 40 00 05 af call 202b760 <rtems_task_variable_add>
202a0a8: 94 12 a3 14 or %o2, 0x314, %o2 ! 2029f14 <free_user_env>
if (sc != RTEMS_SUCCESSFUL) {
202a0ac: 82 92 20 00 orcc %o0, 0, %g1
202a0b0: 22 80 00 07 be,a 202a0cc <rtems_libio_set_private_env+0x84><== ALWAYS TAKEN
202a0b4: e2 24 20 34 st %l1, [ %l0 + 0x34 ]
/* don't use free_user_env because the pathlocs are
* not initialized yet
*/
free(tmp);
202a0b8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
202a0bc: 7f ff 78 69 call 2008260 <free> <== NOT EXECUTED
202a0c0: b0 10 00 01 mov %g1, %i0 <== NOT EXECUTED
return sc;
202a0c4: 81 c7 e0 08 ret <== NOT EXECUTED
202a0c8: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_current_user_env = tmp;
};
*rtems_current_user_env = rtems_global_user_env; /* get the global values*/
202a0cc: 23 00 81 a5 sethi %hi(0x2069400), %l1
202a0d0: e4 04 60 34 ld [ %l1 + 0x34 ], %l2 ! 2069434 <rtems_current_user_env>
202a0d4: 94 10 20 48 mov 0x48, %o2
202a0d8: 90 10 00 12 mov %l2, %o0
202a0dc: 13 00 81 b4 sethi %hi(0x206d000), %o1
202a0e0: 40 00 70 1e call 2046158 <memcpy>
202a0e4: 92 12 62 3c or %o1, 0x23c, %o1 ! 206d23c <rtems_global_user_env>
rtems_current_user_env->task_id=task_id; /* mark the local values*/
202a0e8: 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);
202a0ec: 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*/
202a0f0: 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);
202a0f4: 96 10 00 10 mov %l0, %o3
202a0f8: 98 10 20 00 clr %o4
202a0fc: 25 00 81 8d sethi %hi(0x2063400), %l2
202a100: 92 10 20 01 mov 1, %o1
202a104: 94 10 20 00 clr %o2
202a108: 7f ff 78 39 call 20081ec <rtems_filesystem_evaluate_path>
202a10c: 90 14 a3 a8 or %l2, 0x3a8, %o0
rtems_filesystem_root = loc;
202a110: d0 04 60 34 ld [ %l1 + 0x34 ], %o0
202a114: 92 10 00 10 mov %l0, %o1
202a118: 94 10 20 14 mov 0x14, %o2
202a11c: 40 00 70 0f call 2046158 <memcpy>
202a120: 90 02 20 18 add %o0, 0x18, %o0
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
202a124: 92 10 20 01 mov 1, %o1
202a128: 94 10 20 00 clr %o2
202a12c: 90 14 a3 a8 or %l2, 0x3a8, %o0
202a130: 96 10 00 10 mov %l0, %o3
202a134: 7f ff 78 2e call 20081ec <rtems_filesystem_evaluate_path>
202a138: 98 10 20 00 clr %o4
rtems_filesystem_current = loc;
202a13c: d0 04 60 34 ld [ %l1 + 0x34 ], %o0
202a140: 92 10 00 10 mov %l0, %o1
202a144: 90 02 20 04 add %o0, 4, %o0
202a148: 40 00 70 04 call 2046158 <memcpy>
202a14c: 94 10 20 14 mov 0x14, %o2
return RTEMS_SUCCESSFUL;
}
202a150: 81 c7 e0 08 ret
202a154: 81 e8 00 00 restore
02029f8c <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) {
2029f8c: 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);
2029f90: 90 10 20 00 clr %o0 <== NOT EXECUTED
2029f94: 92 10 20 00 clr %o1 <== NOT EXECUTED
2029f98: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED
2029f9c: 40 00 05 4f call 202b4d8 <rtems_task_ident> <== NOT EXECUTED
2029fa0: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) return sc;
2029fa4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029fa8: 12 80 00 26 bne 202a040 <rtems_libio_share_private_env+0xb4><== NOT EXECUTED
2029fac: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED
if (rtems_current_user_env->task_id==current_task_id) {
2029fb0: 13 00 81 a5 sethi %hi(0x2069400), %o1 <== NOT EXECUTED
2029fb4: e0 02 60 34 ld [ %o1 + 0x34 ], %l0 ! 2069434 <rtems_current_user_env><== NOT EXECUTED
2029fb8: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
2029fbc: c4 04 00 00 ld [ %l0 ], %g2 <== NOT EXECUTED
2029fc0: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2029fc4: 12 80 00 09 bne 2029fe8 <rtems_libio_share_private_env+0x5c><== NOT EXECUTED
2029fc8: 92 12 60 34 or %o1, 0x34, %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);
2029fcc: 40 00 06 11 call 202b810 <rtems_task_variable_delete> <== NOT EXECUTED
2029fd0: 01 00 00 00 nop <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) return sc;
2029fd4: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED
2029fd8: 12 80 00 1a bne 202a040 <rtems_libio_share_private_env+0xb4><== NOT EXECUTED
2029fdc: 01 00 00 00 nop <== NOT EXECUTED
free_user_env(tmp);
2029fe0: 7f ff ff cd call 2029f14 <free_user_env> <== NOT EXECUTED
2029fe4: 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,
2029fe8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2029fec: 21 00 81 a5 sethi %hi(0x2069400), %l0 <== NOT EXECUTED
2029ff0: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
2029ff4: a2 14 20 34 or %l0, 0x34, %l1 <== NOT EXECUTED
2029ff8: 40 00 06 2c call 202b8a8 <rtems_task_variable_get> <== NOT EXECUTED
2029ffc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
(void*)&shared_user_env );
if (sc != RTEMS_SUCCESSFUL)
202a000: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED
202a004: 12 80 00 0c bne 202a034 <rtems_libio_share_private_env+0xa8><== NOT EXECUTED
202a008: 07 00 81 b4 sethi %hi(0x206d000), %g3 <== NOT EXECUTED
goto bailout;
sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env);
202a00c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
202a010: 15 00 80 a7 sethi %hi(0x2029c00), %o2 <== NOT EXECUTED
202a014: 40 00 05 d3 call 202b760 <rtems_task_variable_add> <== NOT EXECUTED
202a018: 94 12 a3 14 or %o2, 0x314, %o2 ! 2029f14 <free_user_env> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
202a01c: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED
202a020: 12 80 00 05 bne 202a034 <rtems_libio_share_private_env+0xa8><== NOT EXECUTED
202a024: 07 00 81 b4 sethi %hi(0x206d000), %g3 <== NOT EXECUTED
goto bailout;
/* the current_user_env is the same pointer that remote env */
rtems_current_user_env = shared_user_env;
202a028: 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;
202a02c: 10 80 00 05 b 202a040 <rtems_libio_share_private_env+0xb4><== NOT EXECUTED
202a030: c4 24 20 34 st %g2, [ %l0 + 0x34 ] <== NOT EXECUTED
bailout:
/* fallback to the global env */
rtems_current_user_env = &rtems_global_user_env;
202a034: 05 00 81 a5 sethi %hi(0x2069400), %g2 <== NOT EXECUTED
202a038: 86 10 e2 3c or %g3, 0x23c, %g3 <== NOT EXECUTED
202a03c: c6 20 a0 34 st %g3, [ %g2 + 0x34 ] <== NOT EXECUTED
return sc;
}
202a040: 81 c7 e0 08 ret <== NOT EXECUTED
202a044: 91 e8 00 01 restore %g0, %g1, %o0 <== NOT EXECUTED
0200bd4c <rtems_libio_to_fcntl_flags>:
uint32_t flags
)
{
uint32_t fcntl_flags = 0;
if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) {
200bd4c: 84 0a 20 06 and %o0, 6, %g2
200bd50: 80 a0 a0 06 cmp %g2, 6
200bd54: 02 80 00 07 be 200bd70 <rtems_libio_to_fcntl_flags+0x24> <== NEVER TAKEN
200bd58: 82 10 20 02 mov 2, %g1
fcntl_flags |= O_RDWR;
} else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {
200bd5c: 82 0a 20 02 and %o0, 2, %g1
200bd60: 80 a0 00 01 cmp %g0, %g1
200bd64: 83 32 20 02 srl %o0, 2, %g1
200bd68: 84 60 3f ff subx %g0, -1, %g2
200bd6c: 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 ) {
200bd70: 80 8a 20 01 btst 1, %o0
200bd74: 02 80 00 04 be 200bd84 <rtems_libio_to_fcntl_flags+0x38>
200bd78: 80 8a 22 00 btst 0x200, %o0
fcntl_flags |= O_NONBLOCK;
200bd7c: 05 00 00 10 sethi %hi(0x4000), %g2
200bd80: 82 10 40 02 or %g1, %g2, %g1
}
if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) {
200bd84: 32 80 00 02 bne,a 200bd8c <rtems_libio_to_fcntl_flags+0x40>
200bd88: 82 10 60 08 or %g1, 8, %g1
fcntl_flags |= O_APPEND;
}
if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) {
200bd8c: 80 8a 24 00 btst 0x400, %o0
200bd90: 32 80 00 02 bne,a 200bd98 <rtems_libio_to_fcntl_flags+0x4c>
200bd94: 82 10 62 00 or %g1, 0x200, %g1
fcntl_flags |= O_CREAT;
}
return fcntl_flags;
}
200bd98: 81 c3 e0 08 retl
200bd9c: 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 a4 sethi %hi(0x2069000), %g1 <== NOT EXECUTED
2008a88: d0 00 60 10 ld [ %g1 + 0x10 ], %o0 ! 2069010 <RTEMS_Malloc_Heap><== NOT EXECUTED
2008a8c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
2008a90: 40 00 17 f2 call 200ea58 <_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 b4 sethi %hi(0x206d000), %g1 <== NOT EXECUTED
MSBUMP(lifetime_freed, size);
2008aa4: c8 07 bf fc ld [ %fp + -4 ], %g4 <== NOT EXECUTED
2008aa8: 82 10 62 00 or %g1, 0x200, %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 a4 sethi %hi(0x2069000), %g1
return;
_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
2008ad4: d0 00 60 10 ld [ %g1 + 0x10 ], %o0 ! 2069010 <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 17 df call 200ea58 <_Protected_heap_Get_block_size>
2008ae0: 94 07 bf fc add %fp, -4, %o2
MSBUMP(lifetime_allocated, actual_size);
2008ae4: 03 00 81 b4 sethi %hi(0x206d000), %g1
2008ae8: c8 07 bf fc ld [ %fp + -4 ], %g4
2008aec: 82 10 62 00 or %g1, 0x200, %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
020102d8 <rtems_memalign>:
int rtems_memalign(
void **pointer,
size_t alignment,
size_t size
)
{
20102d8: 9d e3 bf a0 save %sp, -96, %sp
void *return_this;
/*
* Parameter error checks
*/
if ( !pointer )
20102dc: a0 96 20 00 orcc %i0, 0, %l0
20102e0: 02 80 00 20 be 2010360 <rtems_memalign+0x88>
20102e4: 03 00 80 82 sethi %hi(0x2020800), %g1
*pointer = NULL;
/*
* Do not attempt to allocate memory if not in correct system state.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
20102e8: c2 00 63 70 ld [ %g1 + 0x370 ], %g1 ! 2020b70 <_System_state_Current>
20102ec: 80 a0 60 03 cmp %g1, 3
20102f0: 12 80 00 07 bne 201030c <rtems_memalign+0x34> <== NEVER TAKEN
20102f4: c0 24 00 00 clr [ %l0 ]
20102f8: 7f ff ce 9e call 2003d70 <malloc_is_system_state_OK>
20102fc: 01 00 00 00 nop
2010300: 80 8a 20 ff btst 0xff, %o0
2010304: 02 80 00 18 be 2010364 <rtems_memalign+0x8c> <== NEVER TAKEN
2010308: b0 10 20 16 mov 0x16, %i0
/*
*
* If some free's have been deferred, then do them now.
*/
malloc_deferred_frees_process();
201030c: 7f ff ce b2 call 2003dd4 <malloc_deferred_frees_process>
2010310: b0 10 20 0c mov 0xc, %i0
uintptr_t size,
uintptr_t alignment
)
{
return
_Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 );
2010314: 03 00 80 7f sethi %hi(0x201fc00), %g1
2010318: d0 00 61 b0 ld [ %g1 + 0x1b0 ], %o0 ! 201fdb0 <RTEMS_Malloc_Heap>
201031c: 94 10 00 19 mov %i1, %o2
2010320: 92 10 00 1a mov %i2, %o1
2010324: 7f ff e3 dd call 2009298 <_Protected_heap_Allocate_aligned_with_boundary>
2010328: 96 10 20 00 clr %o3
return_this = _Protected_heap_Allocate_aligned(
RTEMS_Malloc_Heap,
size,
alignment
);
if ( !return_this )
201032c: b2 92 20 00 orcc %o0, 0, %i1
2010330: 02 80 00 0d be 2010364 <rtems_memalign+0x8c>
2010334: 03 00 80 81 sethi %hi(0x2020400), %g1
return ENOMEM;
/*
* If configured, update the more involved statistics
*/
if ( rtems_malloc_statistics_helpers )
2010338: c2 00 60 b8 ld [ %g1 + 0xb8 ], %g1 ! 20204b8 <rtems_malloc_statistics_helpers>
201033c: 80 a0 60 00 cmp %g1, 0
2010340: 22 80 00 06 be,a 2010358 <rtems_memalign+0x80> <== ALWAYS TAKEN
2010344: f2 24 00 00 st %i1, [ %l0 ]
(*rtems_malloc_statistics_helpers->at_malloc)(pointer);
2010348: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED
201034c: 9f c0 40 00 call %g1 <== NOT EXECUTED
2010350: 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;
2010354: f2 24 00 00 st %i1, [ %l0 ] <== NOT EXECUTED
return 0;
2010358: 81 c7 e0 08 ret
201035c: 91 e8 20 00 restore %g0, 0, %o0
2010360: b0 10 20 16 mov 0x16, %i0
}
2010364: 81 c7 e0 08 ret
2010368: 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 00 fe 93 call 2049408 <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 e4 69 call 2042c28 <__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 e4 63 call 2042c28 <__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 e4 52 call 2042c28 <__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 e4 4d call 2042c28 <__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
020209e4 <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)
{
20209e4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
uint32_t b;
rtems_nvdisk_crc16_factor = malloc (sizeof (uint16_t) * 256);
20209e8: 7f ff 9f e5 call 200897c <malloc> <== NOT EXECUTED
20209ec: 90 10 22 00 mov 0x200, %o0 <== NOT EXECUTED
20209f0: 03 00 81 b3 sethi %hi(0x206cc00), %g1 <== NOT EXECUTED
20209f4: d0 20 61 e4 st %o0, [ %g1 + 0x1e4 ] ! 206cde4 <rtems_nvdisk_crc16_factor><== NOT EXECUTED
if (!rtems_nvdisk_crc16_factor)
20209f8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20209fc: 82 10 20 00 clr %g1 <== NOT EXECUTED
2020a00: 02 80 00 13 be 2020a4c <rtems_nvdisk_crc16_gen_factors+0x68><== NOT EXECUTED
2020a04: 84 10 20 1a mov 0x1a, %g2 <== NOT EXECUTED
2020a08: 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--;)
2020a0c: 10 80 00 06 b 2020a24 <rtems_nvdisk_crc16_gen_factors+0x40><== NOT EXECUTED
2020a10: 86 10 20 08 mov 8, %g3 <== NOT EXECUTED
v = v & 1 ? (v >> 1) ^ pattern : v >> 1;
2020a14: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
2020a18: 02 80 00 03 be 2020a24 <rtems_nvdisk_crc16_gen_factors+0x40><== NOT EXECUTED
2020a1c: 85 30 a0 11 srl %g2, 0x11, %g2 <== NOT EXECUTED
2020a20: 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--;)
2020a24: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED
2020a28: 80 a0 ff ff cmp %g3, -1 <== NOT EXECUTED
2020a2c: 12 bf ff fa bne 2020a14 <rtems_nvdisk_crc16_gen_factors+0x30><== NOT EXECUTED
2020a30: 80 88 a0 01 btst 1, %g2 <== NOT EXECUTED
v = v & 1 ? (v >> 1) ^ pattern : v >> 1;
rtems_nvdisk_crc16_factor[b] = v & 0xffff;
2020a34: 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++)
2020a38: 82 00 60 01 inc %g1 <== NOT EXECUTED
2020a3c: 80 a0 61 00 cmp %g1, 0x100 <== NOT EXECUTED
2020a40: 12 bf ff f2 bne 2020a08 <rtems_nvdisk_crc16_gen_factors+0x24><== NOT EXECUTED
2020a44: c4 32 00 03 sth %g2, [ %o0 + %g3 ] <== NOT EXECUTED
2020a48: 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;
}
2020a4c: 81 c7 e0 08 ret <== NOT EXECUTED
2020a50: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
020202f4 <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, ...)
{
20202f4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int ret;
va_list args;
va_start (args, format);
fprintf (stderr, "nvdisk:error:");
20202f8: 21 00 81 a6 sethi %hi(0x2069800), %l0 <== NOT EXECUTED
20202fc: c2 04 23 d0 ld [ %l0 + 0x3d0 ], %g1 ! 2069bd0 <_impure_ptr><== NOT EXECUTED
static int
rtems_nvdisk_error (const char *format, ...)
{
int ret;
va_list args;
va_start (args, format);
2020300: f2 27 a0 48 st %i1, [ %fp + 0x48 ] <== NOT EXECUTED
2020304: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED
2020308: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED
202030c: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED
2020310: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED
fprintf (stderr, "nvdisk:error:");
2020314: 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);
2020318: 82 07 a0 48 add %fp, 0x48, %g1 <== NOT EXECUTED
fprintf (stderr, "nvdisk:error:");
202031c: 11 00 81 88 sethi %hi(0x2062000), %o0 <== NOT EXECUTED
static int
rtems_nvdisk_error (const char *format, ...)
{
int ret;
va_list args;
va_start (args, format);
2020320: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
fprintf (stderr, "nvdisk:error:");
2020324: 40 00 8d 4f call 2043860 <fputs> <== NOT EXECUTED
2020328: 90 12 21 20 or %o0, 0x120, %o0 <== NOT EXECUTED
ret = vfprintf (stderr, format, args);
202032c: c2 04 23 d0 ld [ %l0 + 0x3d0 ], %g1 <== NOT EXECUTED
2020330: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
2020334: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED
2020338: 40 00 c6 89 call 2051d5c <vfprintf> <== NOT EXECUTED
202033c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
fprintf (stderr, "\n");
2020340: c2 04 23 d0 ld [ %l0 + 0x3d0 ], %g1 <== NOT EXECUTED
{
int ret;
va_list args;
va_start (args, format);
fprintf (stderr, "nvdisk:error:");
ret = vfprintf (stderr, format, args);
2020344: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
fprintf (stderr, "\n");
2020348: d2 00 60 0c ld [ %g1 + 0xc ], %o1 <== NOT EXECUTED
202034c: 40 00 8d 01 call 2043750 <fputc> <== NOT EXECUTED
2020350: 90 10 20 0a mov 0xa, %o0 <== NOT EXECUTED
fflush (stderr);
2020354: c2 04 23 d0 ld [ %l0 + 0x3d0 ], %g1 <== NOT EXECUTED
2020358: 40 00 8b 3e call 2043050 <fflush> <== NOT EXECUTED
202035c: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED
va_end (args);
return ret;
}
2020360: 81 c7 e0 08 ret <== NOT EXECUTED
2020364: 81 e8 00 00 restore <== NOT EXECUTED
02020368 <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)
{
2020368: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
uint32_t device;
if (block >= nvd->block_count)
202036c: 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)
{
2020370: 82 10 00 18 mov %i0, %g1 <== NOT EXECUTED
uint32_t device;
if (block >= nvd->block_count)
2020374: 80 a6 40 02 cmp %i1, %g2 <== NOT EXECUTED
2020378: 1a 80 00 06 bcc 2020390 <rtems_nvdisk_get_device+0x28> <== NOT EXECUTED
202037c: 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++)
2020380: da 06 20 18 ld [ %i0 + 0x18 ], %o5 <== NOT EXECUTED
2020384: 86 10 20 00 clr %g3 <== NOT EXECUTED
2020388: 10 80 00 15 b 20203dc <rtems_nvdisk_get_device+0x74> <== NOT EXECUTED
202038c: 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);
2020390: 11 00 81 88 sethi %hi(0x2062000), %o0 <== NOT EXECUTED
2020394: b0 10 20 00 clr %i0 <== NOT EXECUTED
2020398: 7f ff ff d7 call 20202f4 <rtems_nvdisk_error> <== NOT EXECUTED
202039c: 90 12 21 30 or %o0, 0x130, %o0 <== NOT EXECUTED
return NULL;
20203a0: 81 c7 e0 08 ret <== NOT EXECUTED
20203a4: 81 e8 00 00 restore <== NOT EXECUTED
}
for (device = 0; device < nvd->device_count; device++)
20203a8: 84 00 a0 01 inc %g2 <== NOT EXECUTED
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
20203ac: b0 06 00 03 add %i0, %g3, %i0 <== NOT EXECUTED
if ((block >= dc->block_base) &&
20203b0: c8 06 20 0c ld [ %i0 + 0xc ], %g4 <== NOT EXECUTED
20203b4: 80 a2 40 04 cmp %o1, %g4 <== NOT EXECUTED
20203b8: 0a 80 00 09 bcs 20203dc <rtems_nvdisk_get_device+0x74> <== NOT EXECUTED
20203bc: 86 00 e0 14 add %g3, 0x14, %g3 <== NOT EXECUTED
(block < (dc->block_base + dc->pages - dc->pages_desc)))
20203c0: d6 06 20 04 ld [ %i0 + 4 ], %o3 <== NOT EXECUTED
20203c4: d8 06 20 08 ld [ %i0 + 8 ], %o4 <== NOT EXECUTED
20203c8: 88 01 00 0b add %g4, %o3, %g4 <== NOT EXECUTED
20203cc: 88 21 00 0c sub %g4, %o4, %g4 <== NOT EXECUTED
20203d0: 80 a2 40 04 cmp %o1, %g4 <== NOT EXECUTED
20203d4: 0a 80 00 09 bcs 20203f8 <rtems_nvdisk_get_device+0x90> <== NOT EXECUTED
20203d8: 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++)
20203dc: 80 a0 80 0d cmp %g2, %o5 <== NOT EXECUTED
20203e0: 2a bf ff f2 bcs,a 20203a8 <rtems_nvdisk_get_device+0x40> <== NOT EXECUTED
20203e4: 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);
20203e8: 11 00 81 88 sethi %hi(0x2062000), %o0 <== NOT EXECUTED
20203ec: b0 10 20 00 clr %i0 <== NOT EXECUTED
20203f0: 7f ff ff c1 call 20202f4 <rtems_nvdisk_error> <== NOT EXECUTED
20203f4: 90 12 21 50 or %o0, 0x150, %o0 <== NOT EXECUTED
return NULL;
}
20203f8: 81 c7 e0 08 ret <== NOT EXECUTED
20203fc: 81 e8 00 00 restore <== NOT EXECUTED
02020a54 <rtems_nvdisk_initialize>:
*/
rtems_device_driver
rtems_nvdisk_initialize (rtems_device_major_number major,
rtems_device_minor_number minor,
void* arg __attribute__((unused)))
{
2020a54: 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 ();
2020a58: 7f ff 98 35 call 2006b2c <rtems_disk_io_initialize> <== NOT EXECUTED
2020a5c: a8 10 00 18 mov %i0, %l4 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2020a60: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020a64: 12 80 00 8d bne 2020c98 <rtems_nvdisk_initialize+0x244> <== NOT EXECUTED
2020a68: b4 10 00 08 mov %o0, %i2 <== NOT EXECUTED
return sc;
sc = rtems_nvdisk_crc16_gen_factors (0x8408);
2020a6c: 11 00 00 21 sethi %hi(0x8400), %o0 <== NOT EXECUTED
2020a70: 7f ff ff dd call 20209e4 <rtems_nvdisk_crc16_gen_factors> <== NOT EXECUTED
2020a74: 90 12 20 08 or %o0, 8, %o0 ! 8408 <PROM_START+0x8408> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2020a78: b4 92 20 00 orcc %o0, 0, %i2 <== NOT EXECUTED
2020a7c: 32 80 00 88 bne,a 2020c9c <rtems_nvdisk_initialize+0x248><== NOT EXECUTED
2020a80: b0 10 00 1a mov %i2, %i0 <== NOT EXECUTED
return sc;
rtems_nvdisks = calloc (rtems_nvdisk_configuration_size,
2020a84: 37 00 81 a4 sethi %hi(0x2069000), %i3 <== NOT EXECUTED
2020a88: d0 06 e1 5c ld [ %i3 + 0x15c ], %o0 ! 206915c <rtems_nvdisk_configuration_size><== NOT EXECUTED
2020a8c: 92 10 20 28 mov 0x28, %o1 <== NOT EXECUTED
2020a90: 7f ff 9c 65 call 2007c24 <calloc> <== NOT EXECUTED
2020a94: 39 00 81 b3 sethi %hi(0x206cc00), %i4 <== NOT EXECUTED
sizeof (rtems_nvdisk));
if (!rtems_nvdisks)
2020a98: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020a9c: 02 80 00 7e be 2020c94 <rtems_nvdisk_initialize+0x240> <== NOT EXECUTED
2020aa0: d0 27 21 dc st %o0, [ %i4 + 0x1dc ] <== NOT EXECUTED
2020aa4: 23 00 81 77 sethi %hi(0x205dc00), %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";
2020aa8: 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,
2020aac: 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,
2020ab0: 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++)
2020ab4: b6 16 e1 5c or %i3, 0x15c, %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];
2020ab8: b8 17 21 dc or %i4, 0x1dc, %i4 <== NOT EXECUTED
return sc;
rtems_nvdisks = calloc (rtems_nvdisk_configuration_size,
sizeof (rtems_nvdisk));
if (!rtems_nvdisks)
2020abc: a2 14 62 54 or %l1, 0x254, %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";
2020ac0: 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,
2020ac4: ae 15 e0 00 mov %l7, %l7 <== NOT EXECUTED
{
rtems_nvdisk_error ("disk create phy failed");
return sc;
}
sc = rtems_semaphore_create (rtems_build_name ('N', 'V', 'D', 'K'), 1,
2020ac8: 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)
2020acc: a6 10 20 00 clr %l3 <== NOT EXECUTED
2020ad0: 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,
2020ad4: 10 80 00 68 b 2020c74 <rtems_nvdisk_initialize+0x220> <== NOT EXECUTED
2020ad8: 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];
2020adc: e0 07 00 00 ld [ %i4 ], %l0 <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
2020ae0: e8 27 bf f8 st %l4, [ %fp + -8 ] <== NOT EXECUTED
temp.__overlay.minor = _minor;
2020ae4: e4 27 bf fc st %l2, [ %fp + -4 ] <== NOT EXECUTED
name [sizeof(RTEMS_NVDISK_DEVICE_BASE_NAME)] += minor;
2020ae8: 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";
2020aec: 05 0b d9 19 sethi %hi(0x2f646400), %g2 <== NOT EXECUTED
2020af0: 07 0b db 9d sethi %hi(0x2f6e7400), %g3 <== NOT EXECUTED
2020af4: 84 10 a1 76 or %g2, 0x176, %g2 <== NOT EXECUTED
2020af8: 86 10 e2 64 or %g3, 0x264, %g3 <== NOT EXECUTED
2020afc: c4 3f bf e8 std %g2, [ %fp + -24 ] <== NOT EXECUTED
return temp.device;
2020b00: 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;
2020b04: 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];
2020b08: a0 04 00 13 add %l0, %l3, %l0 <== NOT EXECUTED
name [sizeof(RTEMS_NVDISK_DEVICE_BASE_NAME)] += minor;
nvd->major = major;
nvd->minor = minor;
2020b0c: e4 24 20 04 st %l2, [ %l0 + 4 ] <== NOT EXECUTED
nvd->flags = c->flags;
2020b10: c2 04 60 0c ld [ %l1 + 0xc ], %g1 <== NOT EXECUTED
2020b14: c4 3f bf e0 std %g2, [ %fp + -32 ] <== NOT EXECUTED
2020b18: c2 24 20 08 st %g1, [ %l0 + 8 ] <== NOT EXECUTED
nvd->block_size = c->block_size;
2020b1c: 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));
2020b20: 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;
2020b24: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED
nvd->info_level = c->info_level;
2020b28: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED
2020b2c: c2 24 20 24 st %g1, [ %l0 + 0x24 ] <== NOT EXECUTED
nvd->devices = calloc (c->device_count, sizeof (rtems_nvdisk_device_ctl));
2020b30: 7f ff 9c 3d call 2007c24 <calloc> <== NOT EXECUTED
2020b34: d0 04 60 04 ld [ %l1 + 4 ], %o0 <== NOT EXECUTED
if (!nvd->devices)
2020b38: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020b3c: 02 80 00 56 be 2020c94 <rtems_nvdisk_initialize+0x240> <== NOT EXECUTED
2020b40: d0 24 20 14 st %o0, [ %l0 + 0x14 ] <== NOT EXECUTED
2020b44: b0 10 20 00 clr %i0 <== NOT EXECUTED
2020b48: b4 10 20 00 clr %i2 <== NOT EXECUTED
2020b4c: 10 80 00 26 b 2020be4 <rtems_nvdisk_initialize+0x190> <== NOT EXECUTED
2020b50: 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;
2020b54: 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];
2020b58: 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;
2020b5c: 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;
2020b60: 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;
2020b64: d2 04 20 0c ld [ %l0 + 0xc ], %o1 <== NOT EXECUTED
2020b68: 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];
2020b6c: 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;
2020b70: c4 27 bf d0 st %g2, [ %fp + -48 ] <== NOT EXECUTED
2020b74: 40 00 e9 5a call 205b0dc <.udiv> <== NOT EXECUTED
2020b78: 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]);
2020b7c: 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;
2020b80: 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;
2020b84: 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]);
2020b88: 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;
2020b8c: 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;
2020b90: d0 00 a0 08 ld [ %g2 + 8 ], %o0 <== NOT EXECUTED
2020b94: 92 10 00 04 mov %g4, %o1 <== NOT EXECUTED
2020b98: c6 27 bf d8 st %g3, [ %fp + -40 ] <== NOT EXECUTED
2020b9c: 40 00 e9 50 call 205b0dc <.udiv> <== NOT EXECUTED
2020ba0: c8 27 bf dc st %g4, [ %fp + -36 ] <== NOT EXECUTED
2020ba4: c8 07 bf dc ld [ %fp + -36 ], %g4 <== NOT EXECUTED
2020ba8: 91 2a 20 01 sll %o0, 1, %o0 <== NOT EXECUTED
2020bac: 92 10 00 04 mov %g4, %o1 <== NOT EXECUTED
2020bb0: 40 00 e9 4b call 205b0dc <.udiv> <== NOT EXECUTED
2020bb4: 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];
2020bb8: c2 07 bf d4 ld [ %fp + -44 ], %g1 <== NOT EXECUTED
2020bbc: 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;
2020bc0: 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;
2020bc4: 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;
2020bc8: f4 20 60 0c st %i2, [ %g1 + 0xc ] <== NOT EXECUTED
blocks += dc->pages - dc->pages_desc;
2020bcc: 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++)
2020bd0: b2 06 60 01 inc %i1 <== NOT EXECUTED
2020bd4: 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];
2020bd8: 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;
2020bdc: 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]);
2020be0: 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++)
2020be4: c2 04 60 04 ld [ %l1 + 4 ], %g1 <== NOT EXECUTED
2020be8: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
2020bec: 0a bf ff da bcs 2020b54 <rtems_nvdisk_initialize+0x100> <== NOT EXECUTED
2020bf0: 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;
2020bf4: f4 24 20 10 st %i2, [ %l0 + 0x10 ] <== NOT EXECUTED
nvd->device_count = c->device_count;
2020bf8: c2 04 60 04 ld [ %l1 + 4 ], %g1 <== NOT EXECUTED
sc = rtems_disk_create_phys(dev, c->block_size, blocks,
2020bfc: 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;
2020c00: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED
sc = rtems_disk_create_phys(dev, c->block_size, blocks,
2020c04: d4 04 40 00 ld [ %l1 ], %o2 <== NOT EXECUTED
2020c08: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
2020c0c: ea 23 a0 5c st %l5, [ %sp + 0x5c ] <== NOT EXECUTED
2020c10: 98 10 00 17 mov %l7, %o4 <== NOT EXECUTED
2020c14: 7f ff 99 97 call 2007270 <rtems_disk_create_phys> <== NOT EXECUTED
2020c18: 9a 10 20 00 clr %o5 <== NOT EXECUTED
rtems_nvdisk_ioctl, NULL, name);
if (sc != RTEMS_SUCCESSFUL)
2020c1c: b4 92 20 00 orcc %o0, 0, %i2 <== NOT EXECUTED
2020c20: 02 80 00 05 be 2020c34 <rtems_nvdisk_initialize+0x1e0> <== NOT EXECUTED
2020c24: 98 04 20 20 add %l0, 0x20, %o4 <== NOT EXECUTED
{
rtems_nvdisk_error ("disk create phy failed");
2020c28: 11 00 81 88 sethi %hi(0x2062000), %o0 <== NOT EXECUTED
2020c2c: 10 80 00 0d b 2020c60 <rtems_nvdisk_initialize+0x20c> <== NOT EXECUTED
2020c30: 90 12 21 b0 or %o0, 0x1b0, %o0 ! 20621b0 <msdos_ops+0xd8> <== NOT EXECUTED
return sc;
}
sc = rtems_semaphore_create (rtems_build_name ('N', 'V', 'D', 'K'), 1,
2020c34: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
2020c38: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2020c3c: 94 10 20 54 mov 0x54, %o2 <== NOT EXECUTED
2020c40: 96 10 20 00 clr %o3 <== NOT EXECUTED
2020c44: 7f ff ae f0 call 200c804 <rtems_semaphore_create> <== NOT EXECUTED
2020c48: 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)
2020c4c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020c50: 02 80 00 07 be 2020c6c <rtems_nvdisk_initialize+0x218> <== NOT EXECUTED
2020c54: b4 10 00 08 mov %o0, %i2 <== NOT EXECUTED
{
rtems_nvdisk_error ("disk lock create failed");
2020c58: 11 00 81 88 sethi %hi(0x2062000), %o0 <== NOT EXECUTED
2020c5c: 90 12 21 c8 or %o0, 0x1c8, %o0 ! 20621c8 <msdos_ops+0xf0> <== NOT EXECUTED
2020c60: 7f ff fd a5 call 20202f4 <rtems_nvdisk_error> <== NOT EXECUTED
2020c64: b0 10 00 1a mov %i2, %i0 <== NOT EXECUTED
return sc;
2020c68: 30 80 00 0d b,a 2020c9c <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++)
2020c6c: a4 04 a0 01 inc %l2 <== NOT EXECUTED
2020c70: a2 04 60 14 add %l1, 0x14, %l1 <== NOT EXECUTED
2020c74: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
2020c78: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED
2020c7c: 2a bf ff 98 bcs,a 2020adc <rtems_nvdisk_initialize+0x88> <== NOT EXECUTED
2020c80: 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;
2020c84: 05 00 81 b3 sethi %hi(0x206cc00), %g2 <== NOT EXECUTED
2020c88: b4 10 20 00 clr %i2 <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
2020c8c: 10 80 00 03 b 2020c98 <rtems_nvdisk_initialize+0x244> <== NOT EXECUTED
2020c90: c2 20 a1 e0 st %g1, [ %g2 + 0x1e0 ] <== NOT EXECUTED
2020c94: b4 10 20 1a mov 0x1a, %i2 <== NOT EXECUTED
}
2020c98: b0 10 00 1a mov %i2, %i0 <== NOT EXECUTED
2020c9c: 81 c7 e0 08 ret <== NOT EXECUTED
2020ca0: 81 e8 00 00 restore <== NOT EXECUTED
02020400 <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)
{
2020400: 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)
2020404: 03 00 81 b3 sethi %hi(0x206cc00), %g1 <== NOT EXECUTED
2020408: c4 00 61 e0 ld [ %g1 + 0x1e0 ], %g2 ! 206cde0 <rtems_nvdisk_count><== NOT EXECUTED
dev_t device
)
{
union __rtems_dev_t temp;
temp.device = device;
202040c: c2 06 20 04 ld [ %i0 + 4 ], %g1 <== NOT EXECUTED
2020410: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2020414: 1a 80 00 0b bcc 2020440 <rtems_nvdisk_ioctl+0x40> <== NOT EXECUTED
2020418: 87 28 60 05 sll %g1, 5, %g3 <== NOT EXECUTED
{
errno = ENODEV;
return -1;
}
if (rtems_nvdisks[minor].device_count == 0)
202041c: 23 00 81 b3 sethi %hi(0x206cc00), %l1 <== NOT EXECUTED
2020420: c4 04 61 dc ld [ %l1 + 0x1dc ], %g2 ! 206cddc <rtems_nvdisks><== NOT EXECUTED
2020424: a1 28 60 03 sll %g1, 3, %l0 <== NOT EXECUTED
2020428: a0 04 00 03 add %l0, %g3, %l0 <== NOT EXECUTED
202042c: 82 00 80 10 add %g2, %l0, %g1 <== NOT EXECUTED
2020430: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED
2020434: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2020438: 12 80 00 08 bne 2020458 <rtems_nvdisk_ioctl+0x58> <== NOT EXECUTED
202043c: 01 00 00 00 nop <== NOT EXECUTED
{
errno = ENODEV;
2020440: 40 00 89 fa call 2042c28 <__errno> <== NOT EXECUTED
2020444: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
2020448: 82 10 20 13 mov 0x13, %g1 <== NOT EXECUTED
202044c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return -1;
2020450: 81 c7 e0 08 ret <== NOT EXECUTED
2020454: 81 e8 00 00 restore <== NOT EXECUTED
}
errno = 0;
2020458: 40 00 89 f4 call 2042c28 <__errno> <== NOT EXECUTED
202045c: 01 00 00 00 nop <== NOT EXECUTED
sc = rtems_semaphore_obtain (rtems_nvdisks[minor].lock, RTEMS_WAIT, 0);
2020460: c2 04 61 dc ld [ %l1 + 0x1dc ], %g1 <== NOT EXECUTED
{
errno = ENODEV;
return -1;
}
errno = 0;
2020464: c0 22 00 00 clr [ %o0 ] <== NOT EXECUTED
sc = rtems_semaphore_obtain (rtems_nvdisks[minor].lock, RTEMS_WAIT, 0);
2020468: 82 00 40 10 add %g1, %l0, %g1 <== NOT EXECUTED
202046c: d0 00 60 20 ld [ %g1 + 0x20 ], %o0 <== NOT EXECUTED
2020470: 92 10 20 00 clr %o1 <== NOT EXECUTED
2020474: 7f ff b1 9f call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2020478: 94 10 20 00 clr %o2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
202047c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020480: 12 80 01 46 bne 2020998 <rtems_nvdisk_ioctl+0x598> <== NOT EXECUTED
2020484: 01 00 00 00 nop <== NOT EXECUTED
errno = EIO;
else
{
errno = 0;
2020488: 40 00 89 e8 call 2042c28 <__errno> <== NOT EXECUTED
202048c: 01 00 00 00 nop <== NOT EXECUTED
switch (req)
2020490: 03 08 00 10 sethi %hi(0x20004000), %g1 <== NOT EXECUTED
2020494: 84 10 62 82 or %g1, 0x282, %g2 ! 20004282 <RAM_END+0x1dc04282><== NOT EXECUTED
2020498: 80 a6 40 02 cmp %i1, %g2 <== NOT EXECUTED
202049c: 02 80 01 30 be 202095c <rtems_nvdisk_ioctl+0x55c> <== NOT EXECUTED
20204a0: c0 22 00 00 clr [ %o0 ] <== NOT EXECUTED
20204a4: 05 30 06 10 sethi %hi(0xc0184000), %g2 <== NOT EXECUTED
20204a8: 84 10 a2 01 or %g2, 0x201, %g2 ! c0184201 <RAM_END+0xbdd84201><== NOT EXECUTED
20204ac: 80 a6 40 02 cmp %i1, %g2 <== NOT EXECUTED
20204b0: 02 80 00 06 be 20204c8 <rtems_nvdisk_ioctl+0xc8> <== NOT EXECUTED
20204b4: 82 10 62 80 or %g1, 0x280, %g1 <== NOT EXECUTED
20204b8: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
20204bc: 32 80 01 2c bne,a 202096c <rtems_nvdisk_ioctl+0x56c> <== NOT EXECUTED
20204c0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20204c4: 30 80 00 f8 b,a 20208a4 <rtems_nvdisk_ioctl+0x4a4> <== NOT EXECUTED
{
case RTEMS_BLKIO_REQUEST:
switch (r->req)
20204c8: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
20204cc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20204d0: 02 80 00 05 be 20204e4 <rtems_nvdisk_ioctl+0xe4> <== NOT EXECUTED
20204d4: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
20204d8: 12 80 00 ee bne 2020890 <rtems_nvdisk_ioctl+0x490> <== NOT EXECUTED
20204dc: 01 00 00 00 nop <== NOT EXECUTED
20204e0: 30 80 00 7d b,a 20206d4 <rtems_nvdisk_ioctl+0x2d4> <== NOT EXECUTED
{
case RTEMS_BLKDEV_REQ_READ:
errno = rtems_nvdisk_read (&rtems_nvdisks[minor], r);
20204e4: 40 00 89 d1 call 2042c28 <__errno> <== NOT EXECUTED
20204e8: 37 00 00 3f sethi %hi(0xfc00), %i3 <== NOT EXECUTED
20204ec: e2 04 61 dc ld [ %l1 + 0x1dc ], %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);
20204f0: 33 00 81 b3 sethi %hi(0x206cc00), %i1 <== NOT EXECUTED
{
case RTEMS_BLKIO_REQUEST:
switch (r->req)
{
case RTEMS_BLKDEV_REQ_READ:
errno = rtems_nvdisk_read (&rtems_nvdisks[minor], r);
20204f4: d0 27 bf f4 st %o0, [ %fp + -12 ] <== NOT EXECUTED
20204f8: 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)
20204fc: 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);
2020500: b2 16 61 e4 or %i1, 0x1e4, %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;
2020504: a4 06 a0 18 add %i2, 0x18, %l2 <== NOT EXECUTED
2020508: 10 80 00 66 b 20206a0 <rtems_nvdisk_ioctl+0x2a0> <== NOT EXECUTED
202050c: 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;
2020510: d2 04 60 0c ld [ %l1 + 0xc ], %o1 <== NOT EXECUTED
2020514: 40 00 ea f2 call 205b0dc <.udiv> <== NOT EXECUTED
2020518: aa 10 20 00 clr %l5 <== NOT EXECUTED
data = sg->buffer;
202051c: 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;
2020520: 10 80 00 5b b 202068c <rtems_nvdisk_ioctl+0x28c> <== NOT EXECUTED
2020524: 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);
2020528: 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);
202052c: 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);
2020530: 7f ff ff 8e call 2020368 <rtems_nvdisk_get_device> <== NOT EXECUTED
2020534: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
if (!dc)
2020538: a8 92 20 00 orcc %o0, 0, %l4 <== NOT EXECUTED
202053c: 02 80 00 51 be 2020680 <rtems_nvdisk_ioctl+0x280> <== NOT EXECUTED
2020540: 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);
2020544: 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;
2020548: c4 04 60 14 ld [ %l1 + 0x14 ], %g2 <== NOT EXECUTED
202054c: 87 2a 20 02 sll %o0, 2, %g3 <== NOT EXECUTED
2020550: 83 2a 20 04 sll %o0, 4, %g1 <== NOT EXECUTED
2020554: 82 00 c0 01 add %g3, %g1, %g1 <== NOT EXECUTED
2020558: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
202055c: 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;
2020560: 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);
2020564: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 <== NOT EXECUTED
2020568: d4 00 a0 04 ld [ %g2 + 4 ], %o2 <== NOT EXECUTED
202056c: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED
2020570: 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;
2020574: 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);
2020578: 97 2f 60 01 sll %i5, 1, %o3 <== NOT EXECUTED
202057c: 9f c0 40 00 call %g1 <== NOT EXECUTED
2020580: 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)
2020584: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2020588: 12 80 00 3f bne 2020684 <rtems_nvdisk_ioctl+0x284> <== NOT EXECUTED
202058c: c2 17 bf fe lduh [ %fp + -2 ], %g1 <== NOT EXECUTED
return ret;
if (crc == 0xffff)
2020590: 80 a0 40 1b cmp %g1, %i3 <== NOT EXECUTED
2020594: 12 80 00 08 bne 20205b4 <rtems_nvdisk_ioctl+0x1b4> <== NOT EXECUTED
2020598: 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);
202059c: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
20205a0: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
20205a4: 40 00 97 80 call 20463a4 <memset> <== NOT EXECUTED
20205a8: 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)
20205ac: 10 80 01 07 b 20209c8 <rtems_nvdisk_ioctl+0x5c8> <== NOT EXECUTED
20205b0: 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);
20205b4: 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;
20205b8: c6 04 60 14 ld [ %l1 + 0x14 ], %g3 <== NOT EXECUTED
20205bc: 89 28 a0 02 sll %g2, 2, %g4 <== NOT EXECUTED
20205c0: 83 28 a0 04 sll %g2, 4, %g1 <== NOT EXECUTED
20205c4: 82 01 00 01 add %g4, %g1, %g1 <== NOT EXECUTED
20205c8: 82 00 c0 01 add %g3, %g1, %g1 <== NOT EXECUTED
20205cc: 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);
20205d0: d0 05 20 08 ld [ %l4 + 8 ], %o0 <== NOT EXECUTED
20205d4: c2 00 e0 0c ld [ %g3 + 0xc ], %g1 <== NOT EXECUTED
20205d8: e8 00 e0 04 ld [ %g3 + 4 ], %l4 <== NOT EXECUTED
20205dc: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
20205e0: 90 07 40 08 add %i5, %o0, %o0 <== NOT EXECUTED
20205e4: c2 27 bf e4 st %g1, [ %fp + -28 ] <== NOT EXECUTED
20205e8: fa 00 c0 00 ld [ %g3 ], %i5 <== NOT EXECUTED
20205ec: 7f ff 89 03 call 20029f8 <.umul> <== NOT EXECUTED
20205f0: c4 27 bf e8 st %g2, [ %fp + -24 ] <== NOT EXECUTED
20205f4: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
20205f8: c4 07 bf e8 ld [ %fp + -24 ], %g2 <== NOT EXECUTED
20205fc: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED
2020600: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2020604: 9a 10 00 18 mov %i0, %o5 <== NOT EXECUTED
2020608: 90 10 00 02 mov %g2, %o0 <== NOT EXECUTED
202060c: 92 10 00 1d mov %i5, %o1 <== NOT EXECUTED
2020610: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
2020614: 9f c0 40 00 call %g1 <== NOT EXECUTED
2020618: 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)
202061c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2020620: 12 80 00 19 bne 2020684 <rtems_nvdisk_ioctl+0x284> <== NOT EXECUTED
2020624: 82 10 20 00 clr %g1 <== NOT EXECUTED
return ret;
cs = rtems_nvdisk_page_checksum (buffer, nvd->block_size);
2020628: 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);
202062c: c4 06 40 00 ld [ %i1 ], %g2 <== NOT EXECUTED
2020630: 10 80 00 08 b 2020650 <rtems_nvdisk_ioctl+0x250> <== NOT EXECUTED
2020634: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED
2020638: 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++)
202063c: 82 00 60 01 inc %g1 <== NOT EXECUTED
cs = rtems_nvdisk_calc_crc16 (cs, *buffer);
2020640: 88 19 00 0d xor %g4, %o5, %g4 <== NOT EXECUTED
2020644: 88 09 20 ff and %g4, 0xff, %g4 <== NOT EXECUTED
2020648: 89 29 20 01 sll %g4, 1, %g4 <== NOT EXECUTED
202064c: d4 10 80 04 lduh [ %g2 + %g4 ], %o2 <== NOT EXECUTED
2020650: 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++)
2020654: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
2020658: 0a bf ff f8 bcs 2020638 <rtems_nvdisk_ioctl+0x238> <== NOT EXECUTED
202065c: 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)
2020660: d6 17 bf fe lduh [ %fp + -2 ], %o3 <== NOT EXECUTED
2020664: 80 a1 00 0b cmp %g4, %o3 <== NOT EXECUTED
2020668: 02 80 00 d7 be 20209c4 <rtems_nvdisk_ioctl+0x5c4> <== NOT EXECUTED
202066c: 94 10 00 04 mov %g4, %o2 <== NOT EXECUTED
{
rtems_nvdisk_error ("read-block: crc failure: %d: buffer:%04x page:%04x",
2020670: 11 00 81 88 sethi %hi(0x2062000), %o0 <== NOT EXECUTED
2020674: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
2020678: 7f ff ff 1f call 20202f4 <rtems_nvdisk_error> <== NOT EXECUTED
202067c: 90 12 21 78 or %o0, 0x178, %o0 <== NOT EXECUTED
2020680: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
2020684: 10 80 00 0d b 20206b8 <rtems_nvdisk_ioctl+0x2b8> <== NOT EXECUTED
2020688: 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)
202068c: 80 a5 40 1c cmp %l5, %i4 <== NOT EXECUTED
2020690: 2a bf ff a6 bcs,a 2020528 <rtems_nvdisk_ioctl+0x128> <== NOT EXECUTED
2020694: 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++)
2020698: 10 80 00 cf b 20209d4 <rtems_nvdisk_ioctl+0x5d4> <== NOT EXECUTED
202069c: ae 05 e0 01 inc %l7 <== NOT EXECUTED
20206a0: c2 06 a0 10 ld [ %i2 + 0x10 ], %g1 <== NOT EXECUTED
20206a4: 80 a5 c0 01 cmp %l7, %g1 <== NOT EXECUTED
20206a8: 2a bf ff 9a bcs,a 2020510 <rtems_nvdisk_ioctl+0x110> <== NOT EXECUTED
20206ac: d0 04 a0 04 ld [ %l2 + 4 ], %o0 <== NOT EXECUTED
20206b0: b0 10 20 00 clr %i0 <== NOT EXECUTED
20206b4: 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);
20206b8: c2 06 a0 04 ld [ %i2 + 4 ], %g1 <== NOT EXECUTED
20206bc: d0 06 a0 08 ld [ %i2 + 8 ], %o0 <== NOT EXECUTED
20206c0: 9f c0 40 00 call %g1 <== NOT EXECUTED
20206c4: 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);
20206c8: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
break;
20206cc: 10 80 00 ab b 2020978 <rtems_nvdisk_ioctl+0x578> <== NOT EXECUTED
20206d0: f0 20 40 00 st %i0, [ %g1 ] <== NOT EXECUTED
case RTEMS_BLKDEV_REQ_WRITE:
errno = rtems_nvdisk_write (&rtems_nvdisks[minor], r);
20206d4: 40 00 89 55 call 2042c28 <__errno> <== NOT EXECUTED
20206d8: 37 00 81 b3 sethi %hi(0x206cc00), %i3 <== NOT EXECUTED
20206dc: e2 04 61 dc ld [ %l1 + 0x1dc ], %l1 <== NOT EXECUTED
20206e0: d0 27 bf f4 st %o0, [ %fp + -12 ] <== NOT EXECUTED
20206e4: 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);
20206e8: b6 16 e1 e4 or %i3, 0x1e4, %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;
20206ec: a4 06 a0 18 add %i2, 0x18, %l2 <== NOT EXECUTED
20206f0: 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);
20206f4: 10 80 00 5b b 2020860 <rtems_nvdisk_ioctl+0x460> <== NOT EXECUTED
20206f8: 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;
20206fc: d2 04 60 0c ld [ %l1 + 0xc ], %o1 <== NOT EXECUTED
2020700: 40 00 ea 77 call 205b0dc <.udiv> <== NOT EXECUTED
2020704: aa 10 20 00 clr %l5 <== NOT EXECUTED
data = sg->buffer;
2020708: 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;
202070c: 10 80 00 4e b 2020844 <rtems_nvdisk_ioctl+0x444> <== NOT EXECUTED
2020710: 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);
2020714: 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);
2020718: 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);
202071c: 7f ff ff 13 call 2020368 <rtems_nvdisk_get_device> <== NOT EXECUTED
2020720: 92 10 00 1d mov %i5, %o1 <== NOT EXECUTED
if (!dc)
2020724: a6 92 20 00 orcc %o0, 0, %l3 <== NOT EXECUTED
2020728: 02 80 00 4c be 2020858 <rtems_nvdisk_ioctl+0x458> <== NOT EXECUTED
202072c: 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;
2020730: 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);
2020734: 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;
2020738: 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);
202073c: c4 06 c0 00 ld [ %i3 ], %g2 <== NOT EXECUTED
2020740: 10 80 00 08 b 2020760 <rtems_nvdisk_ioctl+0x360> <== NOT EXECUTED
2020744: 82 10 20 00 clr %g1 <== NOT EXECUTED
2020748: 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++)
202074c: 82 00 60 01 inc %g1 <== NOT EXECUTED
cs = rtems_nvdisk_calc_crc16 (cs, *buffer);
2020750: 86 18 c0 04 xor %g3, %g4, %g3 <== NOT EXECUTED
2020754: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED
2020758: 87 28 e0 01 sll %g3, 1, %g3 <== NOT EXECUTED
202075c: ee 10 80 03 lduh [ %g2 + %g3 ], %l7 <== NOT EXECUTED
2020760: 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++)
2020764: 80 a0 40 18 cmp %g1, %i0 <== NOT EXECUTED
2020768: 0a bf ff f8 bcs 2020748 <rtems_nvdisk_ioctl+0x348> <== NOT EXECUTED
202076c: 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);
2020770: 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;
2020774: c6 04 60 14 ld [ %l1 + 0x14 ], %g3 <== NOT EXECUTED
2020778: 89 28 a0 02 sll %g2, 2, %g4 <== NOT EXECUTED
202077c: 83 28 a0 04 sll %g2, 4, %g1 <== NOT EXECUTED
2020780: 82 01 00 01 add %g4, %g1, %g1 <== NOT EXECUTED
2020784: 82 00 c0 01 add %g3, %g1, %g1 <== NOT EXECUTED
2020788: 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);
202078c: d0 04 e0 08 ld [ %l3 + 8 ], %o0 <== NOT EXECUTED
2020790: c2 00 e0 0c ld [ %g3 + 0xc ], %g1 <== NOT EXECUTED
2020794: d4 00 e0 04 ld [ %g3 + 4 ], %o2 <== NOT EXECUTED
2020798: c6 00 c0 00 ld [ %g3 ], %g3 <== NOT EXECUTED
202079c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
20207a0: c2 27 bf e4 st %g1, [ %fp + -28 ] <== NOT EXECUTED
20207a4: c4 27 bf e8 st %g2, [ %fp + -24 ] <== NOT EXECUTED
20207a8: c6 27 bf f0 st %g3, [ %fp + -16 ] <== NOT EXECUTED
20207ac: d4 27 bf ec st %o2, [ %fp + -20 ] <== NOT EXECUTED
20207b0: 7f ff 88 92 call 20029f8 <.umul> <== NOT EXECUTED
20207b4: 90 07 40 08 add %i5, %o0, %o0 <== NOT EXECUTED
20207b8: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
20207bc: c4 07 bf e8 ld [ %fp + -24 ], %g2 <== NOT EXECUTED
20207c0: c6 07 bf f0 ld [ %fp + -16 ], %g3 <== NOT EXECUTED
20207c4: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED
20207c8: d4 07 bf ec ld [ %fp + -20 ], %o2 <== NOT EXECUTED
20207cc: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
20207d0: 92 10 00 03 mov %g3, %o1 <== NOT EXECUTED
20207d4: 90 10 00 02 mov %g2, %o0 <== NOT EXECUTED
20207d8: 9a 10 00 18 mov %i0, %o5 <== NOT EXECUTED
20207dc: 9f c0 40 00 call %g1 <== NOT EXECUTED
20207e0: 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)
20207e4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20207e8: 12 80 00 23 bne 2020874 <rtems_nvdisk_ioctl+0x474> <== NOT EXECUTED
20207ec: 92 10 20 1b mov 0x1b, %o1 <== NOT EXECUTED
return ret;
return rtems_nvdisk_write_checksum (nvd, dc->device, page, cs);
20207f0: 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;
20207f4: c4 04 60 14 ld [ %l1 + 0x14 ], %g2 <== NOT EXECUTED
20207f8: 87 2a 20 02 sll %o0, 2, %g3 <== NOT EXECUTED
20207fc: 83 2a 20 04 sll %o0, 4, %g1 <== NOT EXECUTED
2020800: 82 00 c0 01 add %g3, %g1, %g1 <== NOT EXECUTED
2020804: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
2020808: 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);
202080c: 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);
2020810: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 <== NOT EXECUTED
2020814: d4 00 a0 04 ld [ %g2 + 4 ], %o2 <== NOT EXECUTED
2020818: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED
202081c: d2 00 80 00 ld [ %g2 ], %o1 <== NOT EXECUTED
2020820: 97 2f 60 01 sll %i5, 1, %o3 <== NOT EXECUTED
2020824: 98 10 00 19 mov %i1, %o4 <== NOT EXECUTED
2020828: 9f c0 40 00 call %g1 <== NOT EXECUTED
202082c: 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)
2020830: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020834: 12 80 00 09 bne 2020858 <rtems_nvdisk_ioctl+0x458> <== NOT EXECUTED
2020838: 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)
202083c: c2 04 60 0c ld [ %l1 + 0xc ], %g1 <== NOT EXECUTED
2020840: a8 05 00 01 add %l4, %g1, %l4 <== NOT EXECUTED
2020844: 80 a5 40 1c cmp %l5, %i4 <== NOT EXECUTED
2020848: 2a bf ff b3 bcs,a 2020714 <rtems_nvdisk_ioctl+0x314> <== NOT EXECUTED
202084c: 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++)
2020850: 10 80 00 63 b 20209dc <rtems_nvdisk_ioctl+0x5dc> <== NOT EXECUTED
2020854: 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)
2020858: 10 80 00 07 b 2020874 <rtems_nvdisk_ioctl+0x474> <== NOT EXECUTED
202085c: 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++)
2020860: c2 06 a0 10 ld [ %i2 + 0x10 ], %g1 <== NOT EXECUTED
2020864: 80 a5 80 01 cmp %l6, %g1 <== NOT EXECUTED
2020868: 2a bf ff a5 bcs,a 20206fc <rtems_nvdisk_ioctl+0x2fc> <== NOT EXECUTED
202086c: d0 04 a0 04 ld [ %l2 + 4 ], %o0 <== NOT EXECUTED
2020870: 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);
2020874: c2 06 a0 04 ld [ %i2 + 4 ], %g1 <== NOT EXECUTED
2020878: d0 06 a0 08 ld [ %i2 + 8 ], %o0 <== NOT EXECUTED
202087c: 9f c0 40 00 call %g1 <== NOT EXECUTED
2020880: 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);
2020884: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
break;
2020888: 10 80 00 3c b 2020978 <rtems_nvdisk_ioctl+0x578> <== NOT EXECUTED
202088c: c0 20 40 00 clr [ %g1 ] <== NOT EXECUTED
default:
errno = EINVAL;
2020890: 40 00 88 e6 call 2042c28 <__errno> <== NOT EXECUTED
2020894: 01 00 00 00 nop <== NOT EXECUTED
2020898: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
202089c: 10 80 00 37 b 2020978 <rtems_nvdisk_ioctl+0x578> <== NOT EXECUTED
20208a0: 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]);
20208a4: 40 00 88 e1 call 2042c28 <__errno> <== NOT EXECUTED
20208a8: a8 10 20 00 clr %l4 <== NOT EXECUTED
20208ac: e6 04 61 dc ld [ %l1 + 0x1dc ], %l3 <== NOT EXECUTED
20208b0: ac 10 00 08 mov %o0, %l6 <== NOT EXECUTED
20208b4: a6 04 c0 10 add %l3, %l0, %l3 <== NOT EXECUTED
20208b8: 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);
20208bc: 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);
20208c0: 10 80 00 20 b 2020940 <rtems_nvdisk_ioctl+0x540> <== NOT EXECUTED
20208c4: 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];
20208c8: a2 10 20 00 clr %l1 <== NOT EXECUTED
20208cc: 10 80 00 13 b 2020918 <rtems_nvdisk_ioctl+0x518> <== NOT EXECUTED
20208d0: 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);
20208d4: 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;
20208d8: c4 04 e0 14 ld [ %l3 + 0x14 ], %g2 <== NOT EXECUTED
20208dc: 87 2a 20 02 sll %o0, 2, %g3 <== NOT EXECUTED
20208e0: 83 2a 20 04 sll %o0, 4, %g1 <== NOT EXECUTED
20208e4: 82 00 c0 01 add %g3, %g1, %g1 <== NOT EXECUTED
20208e8: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
20208ec: 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);
20208f0: 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);
20208f4: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 <== NOT EXECUTED
20208f8: d4 00 a0 04 ld [ %g2 + 4 ], %o2 <== NOT EXECUTED
20208fc: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED
2020900: 9f c0 40 00 call %g1 <== NOT EXECUTED
2020904: 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)
2020908: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202090c: 32 80 00 1b bne,a 2020978 <rtems_nvdisk_ioctl+0x578> <== NOT EXECUTED
2020910: 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++)
2020914: a2 04 60 01 inc %l1 <== NOT EXECUTED
2020918: c4 05 60 04 ld [ %l5 + 4 ], %g2 <== NOT EXECUTED
202091c: 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);
2020920: 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++)
2020924: 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);
2020928: 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++)
202092c: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
2020930: 0a bf ff e9 bcs 20208d4 <rtems_nvdisk_ioctl+0x4d4> <== NOT EXECUTED
2020934: 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++)
2020938: a4 04 a0 01 inc %l2 <== NOT EXECUTED
202093c: a8 05 20 14 add %l4, 0x14, %l4 <== NOT EXECUTED
2020940: c2 04 e0 18 ld [ %l3 + 0x18 ], %g1 <== NOT EXECUTED
2020944: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED
2020948: 2a bf ff e0 bcs,a 20208c8 <rtems_nvdisk_ioctl+0x4c8> <== NOT EXECUTED
202094c: ea 04 e0 14 ld [ %l3 + 0x14 ], %l5 <== NOT EXECUTED
2020950: 90 10 20 00 clr %o0 <== NOT EXECUTED
}
break;
case RTEMS_NVDISK_IOCTL_ERASE_DISK:
errno = rtems_nvdisk_erase_disk (&rtems_nvdisks[minor]);
break;
2020954: 10 80 00 09 b 2020978 <rtems_nvdisk_ioctl+0x578> <== NOT EXECUTED
2020958: d0 25 80 00 st %o0, [ %l6 ] <== NOT EXECUTED
case RTEMS_NVDISK_IOCTL_INFO_LEVEL:
rtems_nvdisks[minor].info_level = (uintptr_t) argp;
202095c: c2 04 61 dc ld [ %l1 + 0x1dc ], %g1 <== NOT EXECUTED
2020960: 82 00 40 10 add %g1, %l0, %g1 <== NOT EXECUTED
break;
2020964: 10 80 00 05 b 2020978 <rtems_nvdisk_ioctl+0x578> <== NOT EXECUTED
2020968: f4 20 60 24 st %i2, [ %g1 + 0x24 ] <== NOT EXECUTED
default:
rtems_blkdev_ioctl (dd, req, argp);
202096c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2020970: 7f ff 95 ec call 2006120 <rtems_blkdev_ioctl> <== NOT EXECUTED
2020974: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
break;
}
sc = rtems_semaphore_release (rtems_nvdisks[minor].lock);
2020978: 03 00 81 b3 sethi %hi(0x206cc00), %g1 <== NOT EXECUTED
202097c: c2 00 61 dc ld [ %g1 + 0x1dc ], %g1 ! 206cddc <rtems_nvdisks><== NOT EXECUTED
2020980: a0 00 40 10 add %g1, %l0, %l0 <== NOT EXECUTED
2020984: 7f ff b0 a2 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2020988: d0 04 20 20 ld [ %l0 + 0x20 ], %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
202098c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020990: 02 80 00 06 be 20209a8 <rtems_nvdisk_ioctl+0x5a8> <== NOT EXECUTED
2020994: 01 00 00 00 nop <== NOT EXECUTED
errno = EIO;
2020998: 40 00 88 a4 call 2042c28 <__errno> <== NOT EXECUTED
202099c: 01 00 00 00 nop <== NOT EXECUTED
20209a0: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
20209a4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
return errno == 0 ? 0 : -1;
20209a8: 40 00 88 a0 call 2042c28 <__errno> <== NOT EXECUTED
20209ac: 01 00 00 00 nop <== NOT EXECUTED
20209b0: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED
20209b4: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
20209b8: b0 60 20 00 subx %g0, 0, %i0 <== NOT EXECUTED
}
20209bc: 81 c7 e0 08 ret <== NOT EXECUTED
20209c0: 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)
20209c4: c2 04 60 0c ld [ %l1 + 0xc ], %g1 <== NOT EXECUTED
20209c8: aa 05 60 01 inc %l5 <== NOT EXECUTED
20209cc: 10 bf ff 30 b 202068c <rtems_nvdisk_ioctl+0x28c> <== NOT EXECUTED
20209d0: 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++)
20209d4: 10 bf ff 33 b 20206a0 <rtems_nvdisk_ioctl+0x2a0> <== NOT EXECUTED
20209d8: 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++)
20209dc: 10 bf ff a1 b 2020860 <rtems_nvdisk_ioctl+0x460> <== NOT EXECUTED
20209e0: a4 04 a0 10 add %l2, 0x10, %l2 <== NOT EXECUTED
02020cec <rtems_nvdisk_sram_read>:
uint32_t flags __attribute__((unused)),
void* base,
uint32_t offset,
void* buffer,
size_t size)
{
2020cec: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
memcpy (buffer, (base + offset), size);
return 0;
}
2020cf0: b0 10 20 00 clr %i0 <== NOT EXECUTED
void* base,
uint32_t offset,
void* buffer,
size_t size)
{
memcpy (buffer, (base + offset), size);
2020cf4: 92 06 80 1b add %i2, %i3, %o1 <== NOT EXECUTED
2020cf8: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
2020cfc: 40 00 95 17 call 2046158 <memcpy> <== NOT EXECUTED
2020d00: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
return 0;
}
2020d04: 81 c7 e0 08 ret <== NOT EXECUTED
2020d08: 81 e8 00 00 restore <== NOT EXECUTED
02020ca4 <rtems_nvdisk_sram_verify>:
uint32_t flags __attribute__((unused)),
void* base,
uint32_t offset,
const void* buffer,
size_t size)
{
2020ca4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
return memcmp ((base + offset), buffer, size) == 0 ? 0 : EIO;
2020ca8: 90 06 80 1b add %i2, %i3, %o0 <== NOT EXECUTED
2020cac: 92 10 00 1c mov %i4, %o1 <== NOT EXECUTED
2020cb0: 40 00 94 f9 call 2046094 <memcmp> <== NOT EXECUTED
2020cb4: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
2020cb8: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
2020cbc: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED
2020cc0: b0 0e 3f fb and %i0, -5, %i0 <== NOT EXECUTED
}
2020cc4: 81 c7 e0 08 ret <== NOT EXECUTED
2020cc8: 91 ee 20 05 restore %i0, 5, %o0 <== NOT EXECUTED
02020ccc <rtems_nvdisk_sram_write>:
uint32_t flags __attribute__((unused)),
void* base,
uint32_t offset,
const void* buffer,
size_t size)
{
2020ccc: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
memcpy ((base + offset), buffer, size);
return 0;
}
2020cd0: b0 10 20 00 clr %i0 <== NOT EXECUTED
void* base,
uint32_t offset,
const void* buffer,
size_t size)
{
memcpy ((base + offset), buffer, size);
2020cd4: 90 06 80 1b add %i2, %i3, %o0 <== NOT EXECUTED
2020cd8: 92 10 00 1c mov %i4, %o1 <== NOT EXECUTED
2020cdc: 40 00 95 1f call 2046158 <memcpy> <== NOT EXECUTED
2020ce0: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
return 0;
}
2020ce4: 81 c7 e0 08 ret <== NOT EXECUTED
2020ce8: 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 f5 sethi %hi(0x203d400), %g1
20136a8: c4 00 63 90 ld [ %g1 + 0x390 ], %g2 ! 203d790 <_Thread_Dispatch_disable_level>
20136ac: 84 00 a0 01 inc %g2
20136b0: c4 20 63 90 st %g2, [ %g1 + 0x390 ]
* 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 f5 sethi %hi(0x203d400), %l2
20136b8: 40 00 11 b6 call 2017d90 <_Objects_Allocate>
20136bc: 90 14 a1 94 or %l2, 0x194, %o0 ! 203d594 <_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 9f call 2018d48 <_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 64 49 call 202c814 <.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 52 call 2016850 <_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 94 or %l2, 0x194, %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 86 call 2018d48 <_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
0200a0bc <rtems_pipe_initialize>:
/*
* Initialization of FIFO/pipe module.
*/
void rtems_pipe_initialize (void)
{
200a0bc: 9d e3 bf a0 save %sp, -96, %sp
if (!rtems_pipe_configured)
200a0c0: 03 00 80 71 sethi %hi(0x201c400), %g1
200a0c4: c2 08 63 a4 ldub [ %g1 + 0x3a4 ], %g1 ! 201c7a4 <rtems_pipe_configured>
200a0c8: 80 a0 60 00 cmp %g1, 0
200a0cc: 02 80 00 15 be 200a120 <rtems_pipe_initialize+0x64> <== ALWAYS TAKEN
200a0d0: 19 00 80 72 sethi %hi(0x201c800), %o4
return;
if (rtems_pipe_semaphore)
200a0d4: c2 03 20 cc ld [ %o4 + 0xcc ], %g1 ! 201c8cc <rtems_pipe_semaphore><== NOT EXECUTED
200a0d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a0dc: 12 80 00 11 bne 200a120 <rtems_pipe_initialize+0x64> <== NOT EXECUTED
200a0e0: 98 13 20 cc or %o4, 0xcc, %o4 <== NOT EXECUTED
return;
rtems_status_code sc;
sc = rtems_semaphore_create(
200a0e4: 11 14 12 54 sethi %hi(0x50495000), %o0 <== NOT EXECUTED
200a0e8: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
200a0ec: 90 12 20 45 or %o0, 0x45, %o0 <== NOT EXECUTED
200a0f0: 94 10 20 54 mov 0x54, %o2 <== NOT EXECUTED
200a0f4: 7f ff ef f2 call 20060bc <rtems_semaphore_create> <== NOT EXECUTED
200a0f8: 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)
200a0fc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a100: 02 80 00 04 be 200a110 <rtems_pipe_initialize+0x54> <== NOT EXECUTED
200a104: 01 00 00 00 nop <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
200a108: 7f ff f2 28 call 20069a8 <rtems_fatal_error_occurred> <== NOT EXECUTED
200a10c: 01 00 00 00 nop <== NOT EXECUTED
rtems_interval now;
now = rtems_clock_get_ticks_since_boot();
200a110: 7f ff ee cc call 2005c40 <rtems_clock_get_ticks_since_boot><== NOT EXECUTED
200a114: 01 00 00 00 nop <== NOT EXECUTED
rtems_pipe_no = now;
200a118: 03 00 80 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED
200a11c: d0 30 60 d4 sth %o0, [ %g1 + 0xd4 ] ! 201c8d4 <rtems_pipe_no><== NOT EXECUTED
200a120: 81 c7 e0 08 ret
200a124: 81 e8 00 00 restore
0203fc8c <rtems_rate_monotonic_period>:
rtems_status_code rtems_rate_monotonic_period(
rtems_id id,
rtems_interval length
)
{
203fc8c: 9d e3 bf 98 save %sp, -104, %sp
203fc90: 11 00 81 b6 sethi %hi(0x206d800), %o0
203fc94: 92 10 00 18 mov %i0, %o1
203fc98: 90 12 20 40 or %o0, 0x40, %o0
203fc9c: 7f ff 3a c9 call 200e7c0 <_Objects_Get>
203fca0: 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 ) {
203fca4: c2 07 bf fc ld [ %fp + -4 ], %g1
203fca8: 80 a0 60 00 cmp %g1, 0
203fcac: 12 80 00 63 bne 203fe38 <rtems_rate_monotonic_period+0x1ac>
203fcb0: a0 10 00 08 mov %o0, %l0
case OBJECTS_LOCAL:
if ( !_Thread_Is_executing( the_period->owner ) ) {
203fcb4: 25 00 81 b5 sethi %hi(0x206d400), %l2
203fcb8: c4 02 20 40 ld [ %o0 + 0x40 ], %g2
203fcbc: c2 04 a0 80 ld [ %l2 + 0x80 ], %g1
203fcc0: 80 a0 80 01 cmp %g2, %g1
203fcc4: 02 80 00 06 be 203fcdc <rtems_rate_monotonic_period+0x50>
203fcc8: 80 a6 60 00 cmp %i1, 0
_Thread_Enable_dispatch();
203fccc: 7f ff 3d 2f call 200f188 <_Thread_Enable_dispatch>
203fcd0: b0 10 20 17 mov 0x17, %i0
return RTEMS_NOT_OWNER_OF_RESOURCE;
203fcd4: 81 c7 e0 08 ret
203fcd8: 81 e8 00 00 restore
}
if ( length == RTEMS_PERIOD_STATUS ) {
203fcdc: 12 80 00 0b bne 203fd08 <rtems_rate_monotonic_period+0x7c>
203fce0: 01 00 00 00 nop
switch ( the_period->state ) {
203fce4: c2 02 20 38 ld [ %o0 + 0x38 ], %g1
203fce8: 80 a0 60 04 cmp %g1, 4
203fcec: 18 80 00 4f bgu 203fe28 <rtems_rate_monotonic_period+0x19c><== NEVER TAKEN
203fcf0: b0 10 20 00 clr %i0
203fcf4: 83 28 60 02 sll %g1, 2, %g1
203fcf8: 05 00 81 9d sethi %hi(0x2067400), %g2
203fcfc: 84 10 a1 58 or %g2, 0x158, %g2 ! 2067558 <CSWTCH.48>
203fd00: 10 80 00 4a b 203fe28 <rtems_rate_monotonic_period+0x19c>
203fd04: f0 00 80 01 ld [ %g2 + %g1 ], %i0
}
_Thread_Enable_dispatch();
return( return_value );
}
_ISR_Disable( level );
203fd08: 7f ff 0e a9 call 20037ac <sparc_disable_interrupts>
203fd0c: 01 00 00 00 nop
203fd10: a6 10 00 08 mov %o0, %l3
switch ( the_period->state ) {
203fd14: e2 04 20 38 ld [ %l0 + 0x38 ], %l1
203fd18: 80 a4 60 02 cmp %l1, 2
203fd1c: 02 80 00 1a be 203fd84 <rtems_rate_monotonic_period+0xf8>
203fd20: 80 a4 60 04 cmp %l1, 4
203fd24: 02 80 00 34 be 203fdf4 <rtems_rate_monotonic_period+0x168>
203fd28: 80 a4 60 00 cmp %l1, 0
203fd2c: 12 80 00 43 bne 203fe38 <rtems_rate_monotonic_period+0x1ac><== NEVER TAKEN
203fd30: 01 00 00 00 nop
case RATE_MONOTONIC_INACTIVE: {
_ISR_Enable( level );
203fd34: 7f ff 0e a2 call 20037bc <sparc_enable_interrupts>
203fd38: 01 00 00 00 nop
/*
* Baseline statistics information for the beginning of a period.
*/
_Rate_monotonic_Initiate_statistics( the_period );
203fd3c: 7f ff ff 50 call 203fa7c <_Rate_monotonic_Initiate_statistics>
203fd40: 90 10 00 10 mov %l0, %o0
the_period->state = RATE_MONOTONIC_ACTIVE;
203fd44: 82 10 20 02 mov 2, %g1
203fd48: c2 24 20 38 st %g1, [ %l0 + 0x38 ]
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
203fd4c: 03 00 80 ff sethi %hi(0x203fc00), %g1
203fd50: 82 10 62 40 or %g1, 0x240, %g1 ! 203fe40 <_Rate_monotonic_Timeout>
the_watchdog->id = id;
203fd54: f0 24 20 30 st %i0, [ %l0 + 0x30 ]
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
203fd58: 92 04 20 10 add %l0, 0x10, %o1
203fd5c: 11 00 81 b5 sethi %hi(0x206d400), %o0
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
203fd60: f2 24 20 1c st %i1, [ %l0 + 0x1c ]
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
203fd64: 90 12 20 a0 or %o0, 0xa0, %o0
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
203fd68: c0 24 20 18 clr [ %l0 + 0x18 ]
the_watchdog->routine = routine;
the_watchdog->id = id;
the_watchdog->user_data = user_data;
203fd6c: c0 24 20 34 clr [ %l0 + 0x34 ]
_Rate_monotonic_Timeout,
id,
NULL
);
the_period->next_length = length;
203fd70: f2 24 20 3c st %i1, [ %l0 + 0x3c ]
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
203fd74: c2 24 20 2c st %g1, [ %l0 + 0x2c ]
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
203fd78: 7f ff 41 68 call 2010318 <_Watchdog_Insert>
203fd7c: b0 10 20 00 clr %i0
203fd80: 30 80 00 2a b,a 203fe28 <rtems_rate_monotonic_period+0x19c>
case RATE_MONOTONIC_ACTIVE:
/*
* Update statistics from the concluding period.
*/
_Rate_monotonic_Update_statistics( the_period );
203fd84: 7f ff ff 84 call 203fb94 <_Rate_monotonic_Update_statistics>
203fd88: 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;
203fd8c: 82 10 20 01 mov 1, %g1
the_period->next_length = length;
203fd90: 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;
203fd94: c2 24 20 38 st %g1, [ %l0 + 0x38 ]
the_period->next_length = length;
_ISR_Enable( level );
203fd98: 7f ff 0e 89 call 20037bc <sparc_enable_interrupts>
203fd9c: 90 10 00 13 mov %l3, %o0
_Thread_Executing->Wait.id = the_period->Object.id;
203fda0: c2 04 a0 80 ld [ %l2 + 0x80 ], %g1
203fda4: c4 04 20 08 ld [ %l0 + 8 ], %g2
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
203fda8: 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;
203fdac: c4 20 60 20 st %g2, [ %g1 + 0x20 ]
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
203fdb0: 7f ff 3f 62 call 200fb38 <_Thread_Set_state>
203fdb4: 13 00 00 10 sethi %hi(0x4000), %o1
/*
* Did the watchdog timer expire while we were actually blocking
* on it?
*/
_ISR_Disable( level );
203fdb8: 7f ff 0e 7d call 20037ac <sparc_disable_interrupts>
203fdbc: 01 00 00 00 nop
local_state = the_period->state;
203fdc0: e6 04 20 38 ld [ %l0 + 0x38 ], %l3
the_period->state = RATE_MONOTONIC_ACTIVE;
203fdc4: e2 24 20 38 st %l1, [ %l0 + 0x38 ]
_ISR_Enable( level );
203fdc8: 7f ff 0e 7d call 20037bc <sparc_enable_interrupts>
203fdcc: 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 )
203fdd0: 80 a4 e0 03 cmp %l3, 3
203fdd4: 12 80 00 04 bne 203fde4 <rtems_rate_monotonic_period+0x158>
203fdd8: d0 04 a0 80 ld [ %l2 + 0x80 ], %o0
_Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
203fddc: 7f ff 3b d9 call 200ed40 <_Thread_Clear_state>
203fde0: 13 00 00 10 sethi %hi(0x4000), %o1
_Thread_Enable_dispatch();
203fde4: 7f ff 3c e9 call 200f188 <_Thread_Enable_dispatch>
203fde8: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
203fdec: 81 c7 e0 08 ret
203fdf0: 81 e8 00 00 restore
case RATE_MONOTONIC_EXPIRED:
/*
* Update statistics from the concluding period
*/
_Rate_monotonic_Update_statistics( the_period );
203fdf4: 7f ff ff 68 call 203fb94 <_Rate_monotonic_Update_statistics>
203fdf8: 90 10 00 10 mov %l0, %o0
_ISR_Enable( level );
203fdfc: 7f ff 0e 70 call 20037bc <sparc_enable_interrupts>
203fe00: 90 10 00 13 mov %l3, %o0
the_period->state = RATE_MONOTONIC_ACTIVE;
203fe04: 82 10 20 02 mov 2, %g1
203fe08: 92 04 20 10 add %l0, 0x10, %o1
203fe0c: 11 00 81 b5 sethi %hi(0x206d400), %o0
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
203fe10: f2 24 20 1c st %i1, [ %l0 + 0x1c ]
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
203fe14: 90 12 20 a0 or %o0, 0xa0, %o0
the_period->next_length = length;
203fe18: f2 24 20 3c st %i1, [ %l0 + 0x3c ]
*/
_Rate_monotonic_Update_statistics( the_period );
_ISR_Enable( level );
the_period->state = RATE_MONOTONIC_ACTIVE;
203fe1c: c2 24 20 38 st %g1, [ %l0 + 0x38 ]
203fe20: 7f ff 41 3e call 2010318 <_Watchdog_Insert>
203fe24: b0 10 20 06 mov 6, %i0
the_period->next_length = length;
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
203fe28: 7f ff 3c d8 call 200f188 <_Thread_Enable_dispatch>
203fe2c: 01 00 00 00 nop
return RTEMS_TIMEOUT;
203fe30: 81 c7 e0 08 ret
203fe34: 81 e8 00 00 restore
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
203fe38: 81 c7 e0 08 ret
203fe3c: 91 e8 20 04 restore %g0, 4, %o0
0202b1dc <rtems_rate_monotonic_report_statistics_with_plugin>:
*/
void rtems_rate_monotonic_report_statistics_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
202b1dc: 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 )
202b1e0: 80 a6 60 00 cmp %i1, 0
202b1e4: 02 80 00 7a be 202b3cc <rtems_rate_monotonic_report_statistics_with_plugin+0x1f0><== NEVER TAKEN
202b1e8: 90 10 00 18 mov %i0, %o0
return;
(*print)( context, "Period information by period\n" );
202b1ec: 13 00 81 8e sethi %hi(0x2063800), %o1
202b1f0: 9f c6 40 00 call %i1
202b1f4: 92 12 60 58 or %o1, 0x58, %o1 ! 2063858 <_TOD_Days_per_month+0x6c>
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
(*print)( context, "--- CPU times are in seconds ---\n" );
202b1f8: 90 10 00 18 mov %i0, %o0
202b1fc: 13 00 81 8e sethi %hi(0x2063800), %o1
202b200: 9f c6 40 00 call %i1
202b204: 92 12 60 78 or %o1, 0x78, %o1 ! 2063878 <_TOD_Days_per_month+0x8c>
(*print)( context, "--- Wall times are in seconds ---\n" );
202b208: 90 10 00 18 mov %i0, %o0
202b20c: 13 00 81 8e sethi %hi(0x2063800), %o1
202b210: 9f c6 40 00 call %i1
202b214: 92 12 60 a0 or %o1, 0xa0, %o1 ! 20638a0 <_TOD_Days_per_month+0xb4>
Be sure to test the various cases.
(*print)( context,"\
1234567890123456789012345678901234567890123456789012345678901234567890123456789\
\n");
*/
(*print)( context, " ID OWNER COUNT MISSED "
202b218: 90 10 00 18 mov %i0, %o0
202b21c: 13 00 81 8e sethi %hi(0x2063800), %o1
202b220: 9f c6 40 00 call %i1
202b224: 92 12 60 c8 or %o1, 0xc8, %o1 ! 20638c8 <_TOD_Days_per_month+0xdc>
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
" "
#endif
" WALL TIME\n"
);
(*print)( context, " "
202b228: 90 10 00 18 mov %i0, %o0
202b22c: 13 00 81 8e sethi %hi(0x2063800), %o1
202b230: 9f c6 40 00 call %i1
202b234: 92 12 61 18 or %o1, 0x118, %o1 ! 2063918 <_TOD_Days_per_month+0x12c>
/*
* 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 ;
202b238: 03 00 81 b6 sethi %hi(0x206d800), %g1
rtems_object_get_name( the_status.owner, sizeof(name), name );
/*
* Print part of report line that is not dependent on granularity
*/
(*print)( context,
202b23c: 2d 00 81 8e sethi %hi(0x2063800), %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 ;
202b240: 82 10 60 40 or %g1, 0x40, %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,
202b244: 2b 00 81 8e sethi %hi(0x2063800), %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,
202b248: 29 00 81 8e sethi %hi(0x2063800), %l4
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
(*print)( context, "\n" );
202b24c: 27 00 81 8e sethi %hi(0x2063800), %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 );
202b250: 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 ;
202b254: 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,
202b258: ac 15 a1 68 or %l6, 0x168, %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,
202b25c: aa 15 61 88 or %l5, 0x188, %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,
202b260: a8 15 21 a8 or %l4, 0x1a8, %l4
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
(*print)( context, "\n" );
202b264: a6 14 e1 80 or %l3, 0x180, %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 ;
202b268: 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 );
202b26c: 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 );
202b270: 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 );
202b274: 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 ;
202b278: 10 80 00 51 b 202b3bc <rtems_rate_monotonic_report_statistics_with_plugin+0x1e0>
202b27c: a2 07 bf f0 add %fp, -16, %l1
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
status = rtems_rate_monotonic_get_statistics( id, &the_stats );
202b280: 40 00 51 a3 call 203f90c <rtems_rate_monotonic_get_statistics>
202b284: 92 10 00 1d mov %i5, %o1
if ( status != RTEMS_SUCCESSFUL )
202b288: 80 a2 20 00 cmp %o0, 0
202b28c: 32 80 00 4c bne,a 202b3bc <rtems_rate_monotonic_report_statistics_with_plugin+0x1e0>
202b290: 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 );
202b294: 92 10 00 1c mov %i4, %o1
202b298: 40 00 51 ca call 203f9c0 <rtems_rate_monotonic_get_status>
202b29c: 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 );
202b2a0: d0 07 bf d8 ld [ %fp + -40 ], %o0
202b2a4: 94 10 00 12 mov %l2, %o2
202b2a8: 7f ff 85 53 call 200c7f4 <rtems_object_get_name>
202b2ac: 92 10 20 05 mov 5, %o1
/*
* Print part of report line that is not dependent on granularity
*/
(*print)( context,
202b2b0: d8 1f bf a0 ldd [ %fp + -96 ], %o4
202b2b4: 92 10 00 16 mov %l6, %o1
202b2b8: 94 10 00 10 mov %l0, %o2
202b2bc: 90 10 00 18 mov %i0, %o0
202b2c0: 9f c6 40 00 call %i1
202b2c4: 96 10 00 12 mov %l2, %o3
);
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
202b2c8: 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 );
202b2cc: 94 10 00 11 mov %l1, %o2
202b2d0: 90 10 00 1a mov %i2, %o0
);
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
202b2d4: 80 a0 60 00 cmp %g1, 0
202b2d8: 12 80 00 06 bne 202b2f0 <rtems_rate_monotonic_report_statistics_with_plugin+0x114>
202b2dc: 92 10 00 13 mov %l3, %o1
(*print)( context, "\n" );
202b2e0: 9f c6 40 00 call %i1
202b2e4: 90 10 00 18 mov %i0, %o0
continue;
202b2e8: 10 80 00 35 b 202b3bc <rtems_rate_monotonic_report_statistics_with_plugin+0x1e0>
202b2ec: 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 );
202b2f0: 40 00 05 87 call 202c90c <_Timespec_Divide_by_integer>
202b2f4: 92 10 00 01 mov %g1, %o1
(*print)( context,
202b2f8: d0 07 bf ac ld [ %fp + -84 ], %o0
202b2fc: 40 00 bf 7a call 205b0e4 <.div>
202b300: 92 10 23 e8 mov 0x3e8, %o1
202b304: 96 10 00 08 mov %o0, %o3
202b308: d0 07 bf b4 ld [ %fp + -76 ], %o0
202b30c: d6 27 bf 9c st %o3, [ %fp + -100 ]
202b310: 40 00 bf 75 call 205b0e4 <.div>
202b314: 92 10 23 e8 mov 0x3e8, %o1
202b318: c2 07 bf f0 ld [ %fp + -16 ], %g1
202b31c: b6 10 00 08 mov %o0, %i3
202b320: d0 07 bf f4 ld [ %fp + -12 ], %o0
202b324: c2 23 a0 5c st %g1, [ %sp + 0x5c ]
202b328: 40 00 bf 6f call 205b0e4 <.div>
202b32c: 92 10 23 e8 mov 0x3e8, %o1
202b330: d8 07 bf b0 ld [ %fp + -80 ], %o4
202b334: d6 07 bf 9c ld [ %fp + -100 ], %o3
202b338: d4 07 bf a8 ld [ %fp + -88 ], %o2
202b33c: 9a 10 00 1b mov %i3, %o5
202b340: d0 23 a0 60 st %o0, [ %sp + 0x60 ]
202b344: 92 10 00 15 mov %l5, %o1
202b348: 9f c6 40 00 call %i1
202b34c: 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);
202b350: d2 07 bf a0 ld [ %fp + -96 ], %o1
202b354: 94 10 00 11 mov %l1, %o2
202b358: 40 00 05 6d call 202c90c <_Timespec_Divide_by_integer>
202b35c: 90 07 bf d0 add %fp, -48, %o0
(*print)( context,
202b360: d0 07 bf c4 ld [ %fp + -60 ], %o0
202b364: 40 00 bf 60 call 205b0e4 <.div>
202b368: 92 10 23 e8 mov 0x3e8, %o1
202b36c: 96 10 00 08 mov %o0, %o3
202b370: d0 07 bf cc ld [ %fp + -52 ], %o0
202b374: d6 27 bf 9c st %o3, [ %fp + -100 ]
202b378: 40 00 bf 5b call 205b0e4 <.div>
202b37c: 92 10 23 e8 mov 0x3e8, %o1
202b380: c2 07 bf f0 ld [ %fp + -16 ], %g1
202b384: b6 10 00 08 mov %o0, %i3
202b388: d0 07 bf f4 ld [ %fp + -12 ], %o0
202b38c: 92 10 23 e8 mov 0x3e8, %o1
202b390: 40 00 bf 55 call 205b0e4 <.div>
202b394: c2 23 a0 5c st %g1, [ %sp + 0x5c ]
202b398: d4 07 bf c0 ld [ %fp + -64 ], %o2
202b39c: d6 07 bf 9c ld [ %fp + -100 ], %o3
202b3a0: d8 07 bf c8 ld [ %fp + -56 ], %o4
202b3a4: d0 23 a0 60 st %o0, [ %sp + 0x60 ]
202b3a8: 9a 10 00 1b mov %i3, %o5
202b3ac: 90 10 00 18 mov %i0, %o0
202b3b0: 9f c6 40 00 call %i1
202b3b4: 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++ ) {
202b3b8: 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 ;
202b3bc: c2 05 e0 0c ld [ %l7 + 0xc ], %g1
202b3c0: 80 a4 00 01 cmp %l0, %g1
202b3c4: 08 bf ff af bleu 202b280 <rtems_rate_monotonic_report_statistics_with_plugin+0xa4>
202b3c8: 90 10 00 10 mov %l0, %o0
202b3cc: 81 c7 e0 08 ret
202b3d0: 81 e8 00 00 restore
02041dfc <rtems_rfs_bitmap_close>:
return rtems_rfs_bitmap_create_search (control);
}
int
rtems_rfs_bitmap_close (rtems_rfs_bitmap_control* control)
{
2041dfc: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
free (control->search_bits);
2041e00: d0 06 20 14 ld [ %i0 + 0x14 ], %o0 <== NOT EXECUTED
2041e04: 7f ff 19 17 call 2008260 <free> <== NOT EXECUTED
2041e08: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2041e0c: 81 c7 e0 08 ret <== NOT EXECUTED
2041e10: 81 e8 00 00 restore <== NOT EXECUTED
02041e60 <rtems_rfs_bitmap_create_search>:
return 0;
}
int
rtems_rfs_bitmap_create_search (rtems_rfs_bitmap_control* control)
{
2041e60: 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);
2041e64: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
2041e68: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2041e6c: 7f ff ff ea call 2041e14 <rtems_rfs_bitmap_load_map> <== NOT EXECUTED
2041e70: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
if (rc > 0)
2041e74: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2041e78: 14 80 00 2e bg 2041f30 <rtems_rfs_bitmap_create_search+0xd0><== NOT EXECUTED
2041e7c: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
return rc;
control->free = 0;
search_map = control->search_bits;
2041e80: 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;
2041e84: 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;
2041e88: c2 20 c0 00 st %g1, [ %g3 ] <== NOT EXECUTED
2041e8c: 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;
2041e90: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
bit = 0;
*search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
2041e94: 84 10 20 00 clr %g2 <== NOT EXECUTED
rtems_rfs_bitmap_mask_section (0, size));
available = size;
}
else
{
bits = *map;
2041e98: 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;
2041e9c: 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)
2041ea0: 10 80 00 20 b 2041f20 <rtems_rfs_bitmap_create_search+0xc0><== NOT EXECUTED
2041ea4: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
{
rtems_rfs_bitmap_element bits;
int available;
if (size < rtems_rfs_bitmap_element_bits ())
2041ea8: 18 80 00 07 bgu 2041ec4 <rtems_rfs_bitmap_create_search+0x64><== NOT EXECUTED
2041eac: 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;
2041eb0: 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;
2041eb4: 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;
2041eb8: 89 32 80 04 srl %o2, %g4, %g4 <== NOT EXECUTED
2041ebc: 10 80 00 03 b 2041ec8 <rtems_rfs_bitmap_create_search+0x68><== NOT EXECUTED
2041ec0: 96 09 00 0b and %g4, %o3, %o3 <== NOT EXECUTED
rtems_rfs_bitmap_mask_section (0, size));
available = size;
}
else
{
bits = *map;
2041ec4: 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))
2041ec8: 80 a2 e0 00 cmp %o3, 0 <== NOT EXECUTED
2041ecc: 02 80 00 0e be 2041f04 <rtems_rfs_bitmap_create_search+0xa4><== NOT EXECUTED
2041ed0: 80 a0 a0 20 cmp %g2, 0x20 <== NOT EXECUTED
2041ed4: 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))
2041ed8: 9f 2a 40 04 sll %o1, %g4, %o7 <== NOT EXECUTED
2041edc: 80 8b c0 0b btst %o7, %o3 <== NOT EXECUTED
2041ee0: 02 80 00 05 be 2041ef4 <rtems_rfs_bitmap_create_search+0x94><== NOT EXECUTED
2041ee4: 88 01 20 01 inc %g4 <== NOT EXECUTED
control->free++;
2041ee8: de 04 20 10 ld [ %l0 + 0x10 ], %o7 <== NOT EXECUTED
2041eec: 9e 03 e0 01 inc %o7 <== NOT EXECUTED
2041ef0: 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++)
2041ef4: 80 a1 00 0c cmp %g4, %o4 <== NOT EXECUTED
2041ef8: 06 bf ff f9 bl 2041edc <rtems_rfs_bitmap_create_search+0x7c><== NOT EXECUTED
2041efc: 9f 2a 40 04 sll %o1, %g4, %o7 <== NOT EXECUTED
control->free++;
}
size -= available;
if (bit == rtems_rfs_bitmap_element_bits ())
2041f00: 80 a0 a0 20 cmp %g2, 0x20 <== NOT EXECUTED
2041f04: 32 80 00 05 bne,a 2041f18 <rtems_rfs_bitmap_create_search+0xb8><== NOT EXECUTED
2041f08: 84 00 a0 01 inc %g2 <== NOT EXECUTED
{
bit = 0;
search_map++;
2041f0c: 86 00 e0 04 add %g3, 4, %g3 <== NOT EXECUTED
*search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
2041f10: 84 10 20 00 clr %g2 <== NOT EXECUTED
2041f14: 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;
2041f18: 82 20 40 0c sub %g1, %o4, %g1 <== NOT EXECUTED
2041f1c: 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)
2041f20: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2041f24: 12 bf ff e1 bne 2041ea8 <rtems_rfs_bitmap_create_search+0x48><== NOT EXECUTED
2041f28: 80 a0 60 1f cmp %g1, 0x1f <== NOT EXECUTED
2041f2c: 90 10 20 00 clr %o0 <== NOT EXECUTED
bit++;
map++;
}
return 0;
}
2041f30: 81 c7 e0 08 ret <== NOT EXECUTED
2041f34: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02041e14 <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)
{
2041e14: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc;
if (!control->buffer)
2041e18: d2 06 00 00 ld [ %i0 ], %o1 <== NOT EXECUTED
2041e1c: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
2041e20: 02 80 00 0e be 2041e58 <rtems_rfs_bitmap_load_map+0x44> <== NOT EXECUTED
2041e24: 90 10 20 06 mov 6, %o0 <== NOT EXECUTED
return ENXIO;
*map = NULL;
rc = rtems_rfs_buffer_handle_request (control->fs,
2041e28: d0 06 20 04 ld [ %i0 + 4 ], %o0 <== NOT EXECUTED
2041e2c: d4 06 20 08 ld [ %i0 + 8 ], %o2 <== NOT EXECUTED
int rc;
if (!control->buffer)
return ENXIO;
*map = NULL;
2041e30: c0 26 40 00 clr [ %i1 ] <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (control->fs,
2041e34: 7f ff de bf call 2039930 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
2041e38: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
control->buffer,
control->block,
true);
if (rc)
2041e3c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2041e40: 12 80 00 06 bne 2041e58 <rtems_rfs_bitmap_load_map+0x44> <== NOT EXECUTED
2041e44: 01 00 00 00 nop <== NOT EXECUTED
return rc;
*map = rtems_rfs_buffer_data (control->buffer);
2041e48: c2 06 00 00 ld [ %i0 ], %g1 <== NOT EXECUTED
2041e4c: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED
2041e50: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
2041e54: c2 26 40 00 st %g1, [ %i1 ] <== NOT EXECUTED
return 0;
}
2041e58: 81 c7 e0 08 ret <== NOT EXECUTED
2041e5c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02042448 <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)
{
2042448: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc = 0;
/*
* By default we assume the allocation failed.
*/
*allocated = false;
204244c: 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))
2042450: 10 80 00 26 b 20424e8 <rtems_rfs_bitmap_map_alloc+0xa0> <== NOT EXECUTED
2042454: 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)
2042458: 1a 80 00 0f bcc 2042494 <rtems_rfs_bitmap_map_alloc+0x4c> <== NOT EXECUTED
204245c: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
{
*bit = upper_seed;
2042460: e0 26 c0 00 st %l0, [ %i3 ] <== NOT EXECUTED
rc = rtems_rfs_search_map_for_clear_bit (control, bit, allocated,
2042464: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2042468: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
204246c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2042470: 7f ff ff 73 call 204223c <T.54> <== NOT EXECUTED
2042474: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
window, 1);
if ((rc > 0) || *allocated)
2042478: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
204247c: 14 80 00 29 bg 2042520 <rtems_rfs_bitmap_map_alloc+0xd8> <== NOT EXECUTED
2042480: 01 00 00 00 nop <== NOT EXECUTED
2042484: c2 0e 80 00 ldub [ %i2 ], %g1 <== NOT EXECUTED
2042488: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
204248c: 12 80 00 25 bne 2042520 <rtems_rfs_bitmap_map_alloc+0xd8> <== NOT EXECUTED
2042490: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
break;
}
if (lower_seed >= 0)
2042494: 06 80 00 0e bl 20424cc <rtems_rfs_bitmap_map_alloc+0x84> <== NOT EXECUTED
2042498: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
{
*bit = lower_seed;
204249c: f2 26 c0 00 st %i1, [ %i3 ] <== NOT EXECUTED
rc = rtems_rfs_search_map_for_clear_bit (control, bit, allocated,
20424a0: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
20424a4: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
20424a8: 7f ff ff 65 call 204223c <T.54> <== NOT EXECUTED
20424ac: 96 10 3f ff mov -1, %o3 <== NOT EXECUTED
window, -1);
if ((rc > 0) || *allocated)
20424b0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20424b4: 14 80 00 1b bg 2042520 <rtems_rfs_bitmap_map_alloc+0xd8> <== NOT EXECUTED
20424b8: 01 00 00 00 nop <== NOT EXECUTED
20424bc: c2 0e 80 00 ldub [ %i2 ], %g1 <== NOT EXECUTED
20424c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20424c4: 12 80 00 17 bne 2042520 <rtems_rfs_bitmap_map_alloc+0xd8> <== NOT EXECUTED
20424c8: 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)
20424cc: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
20424d0: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED
20424d4: 2a 80 00 02 bcs,a 20424dc <rtems_rfs_bitmap_map_alloc+0x94><== NOT EXECUTED
20424d8: a0 04 28 00 add %l0, 0x800, %l0 <== NOT EXECUTED
upper_seed += window;
if (lower_seed >= 0)
20424dc: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
20424e0: 36 80 00 02 bge,a 20424e8 <rtems_rfs_bitmap_map_alloc+0xa0><== NOT EXECUTED
20424e4: 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))
20424e8: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
20424ec: 06 80 00 07 bl 2042508 <rtems_rfs_bitmap_map_alloc+0xc0> <== NOT EXECUTED
20424f0: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
20424f4: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
20424f8: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED
20424fc: 0a bf ff d7 bcs 2042458 <rtems_rfs_bitmap_map_alloc+0x10> <== NOT EXECUTED
2042500: 01 00 00 00 nop <== NOT EXECUTED
2042504: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2042508: 06 80 00 06 bl 2042520 <rtems_rfs_bitmap_map_alloc+0xd8> <== NOT EXECUTED
204250c: 01 00 00 00 nop <== NOT EXECUTED
|| ((lower_seed >= 0) && (lower_seed < control->size)))
2042510: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
2042514: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
2042518: 0a bf ff d0 bcs 2042458 <rtems_rfs_bitmap_map_alloc+0x10> <== NOT EXECUTED
204251c: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED
if (lower_seed >= 0)
lower_seed -= window;
}
return 0;
}
2042520: 81 c7 e0 08 ret <== NOT EXECUTED
2042524: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
02042124 <rtems_rfs_bitmap_map_clear>:
}
int
rtems_rfs_bitmap_map_clear (rtems_rfs_bitmap_control* control,
rtems_rfs_bitmap_bit bit)
{
2042124: 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);
2042128: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
204212c: 7f ff ff 3a call 2041e14 <rtems_rfs_bitmap_load_map> <== NOT EXECUTED
2042130: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rc > 0)
2042134: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2042138: 14 80 00 1b bg 20421a4 <rtems_rfs_bitmap_map_clear+0x80> <== NOT EXECUTED
204213c: 01 00 00 00 nop <== NOT EXECUTED
return rc;
if (bit >= control->size)
2042140: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
2042144: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
2042148: 1a 80 00 17 bcc 20421a4 <rtems_rfs_bitmap_map_clear+0x80> <== NOT EXECUTED
204214c: 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);
2042150: 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);
2042154: 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;
2042158: 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);
204215c: 9b 29 20 02 sll %g4, 2, %o5 <== NOT EXECUTED
2042160: d4 03 00 0d ld [ %o4 + %o5 ], %o2 <== NOT EXECUTED
2042164: 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);
2042168: 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);
204216c: 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);
2042170: 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);
2042174: b2 12 80 19 or %o2, %i1, %i1 <== NOT EXECUTED
2042178: 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);
204217c: 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);
2042180: da 00 c0 02 ld [ %g3 + %g2 ], %o5 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
control->free++;
2042184: 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);
2042188: 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);
204218c: 83 28 40 04 sll %g1, %g4, %g1 <== NOT EXECUTED
2042190: 82 13 40 01 or %o5, %g1, %g1 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
control->free++;
2042194: 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);
2042198: c2 20 c0 02 st %g1, [ %g3 + %g2 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
control->free++;
204219c: 82 02 e0 01 add %o3, 1, %g1 <== NOT EXECUTED
20421a0: c2 26 20 10 st %g1, [ %i0 + 0x10 ] <== NOT EXECUTED
return 0;
}
20421a4: 81 c7 e0 08 ret <== NOT EXECUTED
20421a8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02041f80 <rtems_rfs_bitmap_map_clear_all>:
return 0;
}
int
rtems_rfs_bitmap_map_clear_all (rtems_rfs_bitmap_control* control)
{
2041f80: 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);
2041f84: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
2041f88: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2041f8c: 7f ff ff a2 call 2041e14 <rtems_rfs_bitmap_load_map> <== NOT EXECUTED
2041f90: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
if (rc > 0)
2041f94: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2041f98: 14 80 00 25 bg 204202c <rtems_rfs_bitmap_map_clear_all+0xac><== NOT EXECUTED
2041f9c: da 07 bf fc ld [ %fp + -4 ], %o5 <== NOT EXECUTED
return rc;
elements = rtems_rfs_bitmap_elements (control->size);
2041fa0: c8 06 20 0c ld [ %i0 + 0xc ], %g4 <== NOT EXECUTED
2041fa4: 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;
2041fa8: 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);
2041fac: 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;
2041fb0: 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);
2041fb4: 82 01 20 01 add %g4, 1, %g1 <== NOT EXECUTED
control->free = elements;
for (e = 0; e < elements; e++)
2041fb8: 10 80 00 04 b 2041fc8 <rtems_rfs_bitmap_map_clear_all+0x48><== NOT EXECUTED
2041fbc: c2 26 20 10 st %g1, [ %i0 + 0x10 ] <== NOT EXECUTED
2041fc0: 84 00 a0 01 inc %g2 <== NOT EXECUTED
map[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
2041fc4: 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++)
2041fc8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2041fcc: 0a bf ff fd bcs 2041fc0 <rtems_rfs_bitmap_map_clear_all+0x40><== NOT EXECUTED
2041fd0: 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)
2041fd4: 86 88 60 1f andcc %g1, 0x1f, %g3 <== NOT EXECUTED
2041fd8: 22 80 00 02 be,a 2041fe0 <rtems_rfs_bitmap_map_clear_all+0x60><== NOT EXECUTED
2041fdc: 86 10 20 20 mov 0x20, %g3 <== NOT EXECUTED
last_search_bit = rtems_rfs_bitmap_element_bits ();
elements = rtems_rfs_bitmap_elements (elements);
2041fe0: 89 31 20 05 srl %g4, 5, %g4 <== NOT EXECUTED
return 0;
}
int
rtems_rfs_bitmap_map_clear_all (rtems_rfs_bitmap_control* control)
2041fe4: 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++)
2041fe8: 10 80 00 05 b 2041ffc <rtems_rfs_bitmap_map_clear_all+0x7c><== NOT EXECUTED
2041fec: 9a 10 3f ff mov -1, %o5 <== NOT EXECUTED
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
2041ff0: 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++)
2041ff4: 82 00 60 01 inc %g1 <== NOT EXECUTED
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
2041ff8: 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++)
2041ffc: 80 a0 40 04 cmp %g1, %g4 <== NOT EXECUTED
2042000: 12 bf ff fc bne 2041ff0 <rtems_rfs_bitmap_map_clear_all+0x70><== NOT EXECUTED
2042004: 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);
2042008: 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] =
204200c: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
2042010: 86 20 00 03 neg %g3 <== NOT EXECUTED
2042014: 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);
2042018: 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] =
204201c: 87 33 40 03 srl %o5, %g3, %g3 <== NOT EXECUTED
2042020: 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);
2042024: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2042028: c2 29 00 00 stb %g1, [ %g4 ] <== NOT EXECUTED
return 0;
}
204202c: 81 c7 e0 08 ret <== NOT EXECUTED
2042030: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
020421ac <rtems_rfs_bitmap_map_set>:
}
int
rtems_rfs_bitmap_map_set (rtems_rfs_bitmap_control* control,
rtems_rfs_bitmap_bit bit)
{
20421ac: 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);
20421b0: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
20421b4: 7f ff ff 18 call 2041e14 <rtems_rfs_bitmap_load_map> <== NOT EXECUTED
20421b8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rc > 0)
20421bc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20421c0: 14 80 00 1d bg 2042234 <rtems_rfs_bitmap_map_set+0x88> <== NOT EXECUTED
20421c4: 01 00 00 00 nop <== NOT EXECUTED
return rc;
if (bit >= control->size)
20421c8: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
20421cc: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
20421d0: 1a 80 00 19 bcc 2042234 <rtems_rfs_bitmap_map_set+0x88> <== NOT EXECUTED
20421d4: 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);
20421d8: 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);
20421dc: 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);
20421e0: 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);
20421e4: c4 03 40 04 ld [ %o5 + %g4 ], %g2 <== NOT EXECUTED
20421e8: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20421ec: 99 28 40 19 sll %g1, %i1, %o4 <== NOT EXECUTED
20421f0: 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);
20421f4: c4 23 40 04 st %g2, [ %o5 + %g4 ] <== NOT EXECUTED
if (rtems_rfs_bitmap_match(map[index], RTEMS_RFS_BITMAP_ELEMENT_SET))
20421f8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
20421fc: 90 10 20 00 clr %o0 <== NOT EXECUTED
2042200: 12 80 00 0d bne 2042234 <rtems_rfs_bitmap_map_set+0x88> <== NOT EXECUTED
2042204: 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);
2042208: b3 3e 60 0a sra %i1, 0xa, %i1 <== NOT EXECUTED
control->free--;
rtems_rfs_buffer_mark_dirty (control->buffer);
204220c: 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);
2042210: b3 2e 60 02 sll %i1, 2, %i1 <== NOT EXECUTED
2042214: da 00 80 19 ld [ %g2 + %i1 ], %o5 <== NOT EXECUTED
control->free--;
2042218: c8 06 20 10 ld [ %i0 + 0x10 ], %g4 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
204221c: 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);
2042220: 83 28 40 03 sll %g1, %g3, %g1 <== NOT EXECUTED
2042224: 82 2b 40 01 andn %o5, %g1, %g1 <== NOT EXECUTED
2042228: c2 20 80 19 st %g1, [ %g2 + %i1 ] <== NOT EXECUTED
control->free--;
204222c: 82 01 3f ff add %g4, -1, %g1 <== NOT EXECUTED
2042230: c2 26 20 10 st %g1, [ %i0 + 0x10 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
}
return 0;
}
2042234: 81 c7 e0 08 ret <== NOT EXECUTED
2042238: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02042034 <rtems_rfs_bitmap_map_set_all>:
return 0;
}
int
rtems_rfs_bitmap_map_set_all (rtems_rfs_bitmap_control* control)
{
2042034: 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);
2042038: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
204203c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2042040: 7f ff ff 75 call 2041e14 <rtems_rfs_bitmap_load_map> <== NOT EXECUTED
2042044: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
if (rc > 0)
2042048: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
204204c: 14 80 00 1c bg 20420bc <rtems_rfs_bitmap_map_set_all+0x88><== NOT EXECUTED
2042050: 82 10 20 00 clr %g1 <== NOT EXECUTED
return rc;
elements = rtems_rfs_bitmap_elements (control->size);
2042054: c4 06 20 0c ld [ %i0 + 0xc ], %g2 <== NOT EXECUTED
control->free = 0;
2042058: 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);
204205c: 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;
2042060: 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);
2042064: 85 30 a0 05 srl %g2, 5, %g2 <== NOT EXECUTED
control->free = 0;
for (e = 0; e < elements; e++)
2042068: 10 80 00 04 b 2042078 <rtems_rfs_bitmap_map_set_all+0x44> <== NOT EXECUTED
204206c: 86 00 a0 01 add %g2, 1, %g3 <== NOT EXECUTED
2042070: 82 00 60 01 inc %g1 <== NOT EXECUTED
map[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
2042074: 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++)
2042078: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
204207c: 0a bf ff fd bcs 2042070 <rtems_rfs_bitmap_map_set_all+0x3c><== NOT EXECUTED
2042080: 9b 28 60 02 sll %g1, 2, %o5 <== NOT EXECUTED
map[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
elements = rtems_rfs_bitmap_elements (elements);
2042084: 85 30 a0 05 srl %g2, 5, %g2 <== NOT EXECUTED
2042088: 82 10 20 00 clr %g1 <== NOT EXECUTED
for (e = 0; e < elements; e++)
204208c: 10 80 00 05 b 20420a0 <rtems_rfs_bitmap_map_set_all+0x6c> <== NOT EXECUTED
2042090: 84 00 a0 01 inc %g2 <== NOT EXECUTED
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
2042094: 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++)
2042098: 82 00 60 01 inc %g1 <== NOT EXECUTED
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
204209c: 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++)
20420a0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
20420a4: 2a bf ff fc bcs,a 2042094 <rtems_rfs_bitmap_map_set_all+0x60><== NOT EXECUTED
20420a8: 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);
20420ac: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
20420b0: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
20420b4: 90 10 20 00 clr %o0 <== NOT EXECUTED
20420b8: c4 28 40 00 stb %g2, [ %g1 ] <== NOT EXECUTED
return 0;
}
20420bc: 81 c7 e0 08 ret <== NOT EXECUTED
20420c0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
020420c4 <rtems_rfs_bitmap_map_test>:
int
rtems_rfs_bitmap_map_test (rtems_rfs_bitmap_control* control,
rtems_rfs_bitmap_bit bit,
bool* state)
{
20420c4: 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);
20420c8: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
20420cc: 7f ff ff 52 call 2041e14 <rtems_rfs_bitmap_load_map> <== NOT EXECUTED
20420d0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rc > 0)
20420d4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20420d8: 14 80 00 11 bg 204211c <rtems_rfs_bitmap_map_test+0x58> <== NOT EXECUTED
20420dc: 01 00 00 00 nop <== NOT EXECUTED
return rc;
if (bit >= control->size)
20420e0: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
20420e4: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
20420e8: 1a 80 00 0d bcc 204211c <rtems_rfs_bitmap_map_test+0x58> <== NOT EXECUTED
20420ec: 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);
20420f0: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED
20420f4: 83 3e 60 05 sra %i1, 5, %g1 <== NOT EXECUTED
20420f8: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
20420fc: c2 00 80 01 ld [ %g2 + %g1 ], %g1 <== NOT EXECUTED
2042100: 90 10 20 00 clr %o0 <== NOT EXECUTED
2042104: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
2042108: b3 28 80 19 sll %g2, %i1, %i1 <== NOT EXECUTED
204210c: b2 0e 40 01 and %i1, %g1, %i1 <== NOT EXECUTED
2042110: 80 a0 00 19 cmp %g0, %i1 <== NOT EXECUTED
2042114: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED
2042118: c2 2e 80 00 stb %g1, [ %i2 ] <== NOT EXECUTED
return 0;
}
204211c: 81 c7 e0 08 ret <== NOT EXECUTED
2042120: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02041dc4 <rtems_rfs_bitmap_mask>:
return 0;
}
rtems_rfs_bitmap_element
rtems_rfs_bitmap_mask (unsigned int size)
{
2041dc4: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
2041dc8: 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;
}
2041dcc: 81 c3 e0 08 retl <== NOT EXECUTED
2041dd0: 91 30 40 08 srl %g1, %o0, %o0 <== NOT EXECUTED
02041dd4 <rtems_rfs_bitmap_mask_section>:
rtems_rfs_bitmap_element
rtems_rfs_bitmap_mask_section (unsigned int start, unsigned int end)
{
2041dd4: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED
rtems_rfs_bitmap_element mask = 0;
if (end > start)
2041dd8: 80 a2 40 08 cmp %o1, %o0 <== NOT EXECUTED
2041ddc: 08 80 00 06 bleu 2041df4 <rtems_rfs_bitmap_mask_section+0x20><== NOT EXECUTED
2041de0: 90 10 20 00 clr %o0 <== NOT EXECUTED
mask = rtems_rfs_bitmap_mask (end - start) << start;
2041de4: 92 20 40 09 sub %g1, %o1, %o1 <== NOT EXECUTED
2041de8: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
2041dec: 91 32 00 09 srl %o0, %o1, %o0 <== NOT EXECUTED
2041df0: 91 2a 00 01 sll %o0, %g1, %o0 <== NOT EXECUTED
return mask;
}
2041df4: 81 c3 e0 08 retl <== NOT EXECUTED
02041f38 <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)
{
2041f38: 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));
2041f3c: 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;
2041f40: 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));
2041f44: 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;
2041f48: 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));
2041f4c: 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;
2041f50: 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));
2041f54: 91 2a 20 02 sll %o0, 2, %o0 <== NOT EXECUTED
2041f58: 7f ff 1a 89 call 200897c <malloc> <== NOT EXECUTED
2041f5c: f6 26 20 0c st %i3, [ %i0 + 0xc ] <== NOT EXECUTED
if (!control->search_bits)
2041f60: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2041f64: 12 80 00 04 bne 2041f74 <rtems_rfs_bitmap_open+0x3c> <== NOT EXECUTED
2041f68: d0 26 20 14 st %o0, [ %i0 + 0x14 ] <== NOT EXECUTED
return ENOMEM;
return rtems_rfs_bitmap_create_search (control);
}
2041f6c: 81 c7 e0 08 ret <== NOT EXECUTED
2041f70: 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);
2041f74: 7f ff ff bb call 2041e60 <rtems_rfs_bitmap_create_search> <== NOT EXECUTED
2041f78: 81 e8 00 00 restore <== NOT EXECUTED
020387b0 <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)
{
20387b0: 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);
20387b4: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
20387b8: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
20387bc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20387c0: 40 00 04 5c call 2039930 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
20387c4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
if (rc > 0)
20387c8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20387cc: 14 80 00 1b bg 2038838 <rtems_rfs_block_find_indirect+0x88><== NOT EXECUTED
20387d0: 83 2e e0 02 sll %i3, 2, %g1 <== NOT EXECUTED
return rc;
*result = rtems_rfs_block_get_number (buffer, offset);
20387d4: c4 06 60 08 ld [ %i1 + 8 ], %g2 <== NOT EXECUTED
20387d8: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
20387dc: 82 00 60 02 add %g1, 2, %g1 <== NOT EXECUTED
20387e0: c6 08 80 01 ldub [ %g2 + %g1 ], %g3 <== NOT EXECUTED
20387e4: b7 2e e0 02 sll %i3, 2, %i3 <== NOT EXECUTED
20387e8: c2 08 80 1b ldub [ %g2 + %i3 ], %g1 <== NOT EXECUTED
20387ec: 84 00 80 1b add %g2, %i3, %g2 <== NOT EXECUTED
20387f0: c8 08 a0 01 ldub [ %g2 + 1 ], %g4 <== NOT EXECUTED
20387f4: da 08 a0 03 ldub [ %g2 + 3 ], %o5 <== NOT EXECUTED
20387f8: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
if ((*result + 1) == 0)
*result = 0;
if (*result >= rtems_rfs_fs_blocks (fs))
20387fc: 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);
2038800: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED
2038804: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
2038808: 82 13 40 01 or %o5, %g1, %g1 <== NOT EXECUTED
203880c: 82 10 40 04 or %g1, %g4, %g1 <== NOT EXECUTED
2038810: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
if ((*result + 1) == 0)
2038814: 86 38 00 01 xnor %g0, %g1, %g3 <== NOT EXECUTED
2038818: 80 a0 00 03 cmp %g0, %g3 <== NOT EXECUTED
203881c: 86 60 20 00 subx %g0, 0, %g3 <== NOT EXECUTED
2038820: 82 08 40 03 and %g1, %g3, %g1 <== NOT EXECUTED
2038824: c2 27 00 00 st %g1, [ %i4 ] <== NOT EXECUTED
*result = 0;
if (*result >= rtems_rfs_fs_blocks (fs))
2038828: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203882c: 0a 80 00 03 bcs 2038838 <rtems_rfs_block_find_indirect+0x88><== NOT EXECUTED
2038830: 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;
2038834: c0 27 00 00 clr [ %i4 ] <== NOT EXECUTED
rc = EIO;
}
return 0;
}
2038838: 81 c7 e0 08 ret <== NOT EXECUTED
203883c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
020386fc <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)
{
20386fc: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (pos == 0)
2038700: 80 96 40 1a orcc %i1, %i2, %g0 <== NOT EXECUTED
2038704: 32 80 00 06 bne,a 203871c <rtems_rfs_block_get_block_size+0x20><== NOT EXECUTED
2038708: 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;
203870c: 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;
2038710: c0 26 c0 00 clr [ %i3 ] <== NOT EXECUTED
2038714: 81 c7 e0 08 ret <== NOT EXECUTED
2038718: 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;
203871c: 94 10 20 00 clr %o2 <== NOT EXECUTED
2038720: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
2038724: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
2038728: 40 00 8e 2a call 205bfd0 <__udivdi3> <== NOT EXECUTED
203872c: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
2038730: 92 02 60 01 inc %o1 <== NOT EXECUTED
size->offset = pos % rtems_rfs_fs_block_size (fs);
2038734: 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;
2038738: d2 26 c0 00 st %o1, [ %i3 ] <== NOT EXECUTED
size->offset = pos % rtems_rfs_fs_block_size (fs);
203873c: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
2038740: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
2038744: 40 00 8e f4 call 205c314 <__umoddi3> <== NOT EXECUTED
2038748: 94 10 20 00 clr %o2 <== NOT EXECUTED
203874c: d2 26 e0 04 st %o1, [ %i3 + 4 ] <== NOT EXECUTED
2038750: 81 c7 e0 08 ret <== NOT EXECUTED
2038754: 81 e8 00 00 restore <== NOT EXECUTED
0203869c <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)
{
203869c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
bpos->bno = pos / rtems_rfs_fs_block_size (fs);
20386a0: e0 06 20 08 ld [ %i0 + 8 ], %l0 <== NOT EXECUTED
20386a4: 94 10 20 00 clr %o2 <== NOT EXECUTED
20386a8: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
20386ac: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
20386b0: 40 00 8e 48 call 205bfd0 <__udivdi3> <== NOT EXECUTED
20386b4: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
bpos->boff = pos % rtems_rfs_fs_block_size (fs);
20386b8: 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);
20386bc: d2 26 c0 00 st %o1, [ %i3 ] <== NOT EXECUTED
bpos->boff = pos % rtems_rfs_fs_block_size (fs);
20386c0: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
20386c4: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
20386c8: 40 00 8f 13 call 205c314 <__umoddi3> <== NOT EXECUTED
20386cc: 94 10 20 00 clr %o2 <== NOT EXECUTED
20386d0: d2 26 e0 04 st %o1, [ %i3 + 4 ] <== NOT EXECUTED
}
20386d4: 81 c7 e0 08 ret <== NOT EXECUTED
20386d8: 81 e8 00 00 restore <== NOT EXECUTED
020386dc <rtems_rfs_block_get_pos>:
rtems_rfs_pos
rtems_rfs_block_get_pos (rtems_rfs_file_system* fs,
rtems_rfs_block_pos* bpos)
{
20386dc: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
20386e0: d0 06 20 08 ld [ %i0 + 8 ], %o0 <== NOT EXECUTED
20386e4: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED
20386e8: 7f ff 28 c4 call 20029f8 <.umul> <== NOT EXECUTED
20386ec: b0 10 20 00 clr %i0 <== NOT EXECUTED
20386f0: f2 06 60 04 ld [ %i1 + 4 ], %i1 <== NOT EXECUTED
return (bpos->bno * rtems_rfs_fs_block_size (fs)) + bpos->boff;
}
20386f4: 81 c7 e0 08 ret <== NOT EXECUTED
20386f8: 93 ea 00 19 restore %o0, %i1, %o1 <== NOT EXECUTED
02038758 <rtems_rfs_block_get_size>:
}
rtems_rfs_pos
rtems_rfs_block_get_size (rtems_rfs_file_system* fs,
rtems_rfs_block_size* size)
{
2038758: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
uint32_t offset;
uint64_t block_size;
if (size->count == 0)
203875c: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED
2038760: 84 10 20 00 clr %g2 <== NOT EXECUTED
2038764: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
2038768: 02 80 00 0f be 20387a4 <rtems_rfs_block_get_size+0x4c> <== NOT EXECUTED
203876c: 86 10 20 00 clr %g3 <== NOT EXECUTED
return 0;
if (size->offset == 0)
2038770: c2 06 60 04 ld [ %i1 + 4 ], %g1 <== NOT EXECUTED
2038774: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2038778: 22 80 00 02 be,a 2038780 <rtems_rfs_block_get_size+0x28> <== NOT EXECUTED
203877c: 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;
2038780: d6 06 20 08 ld [ %i0 + 8 ], %o3 <== NOT EXECUTED
2038784: b2 10 00 01 mov %g1, %i1 <== NOT EXECUTED
2038788: b0 10 20 00 clr %i0 <== NOT EXECUTED
203878c: 92 02 7f ff add %o1, -1, %o1 <== NOT EXECUTED
2038790: 90 10 20 00 clr %o0 <== NOT EXECUTED
2038794: 40 00 8b aa call 205b63c <__muldi3> <== NOT EXECUTED
2038798: 94 10 20 00 clr %o2 <== NOT EXECUTED
203879c: 86 86 40 09 addcc %i1, %o1, %g3 <== NOT EXECUTED
20387a0: 84 46 00 08 addx %i0, %o0, %g2 <== NOT EXECUTED
}
20387a4: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED
20387a8: 81 c7 e0 08 ret <== NOT EXECUTED
20387ac: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
020392fc <rtems_rfs_block_map_close>:
}
int
rtems_rfs_block_map_close (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map)
{
20392fc: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc = 0;
int brc;
if (map->dirty && map->inode)
2039300: c2 0e 40 00 ldub [ %i1 ], %g1 <== NOT EXECUTED
2039304: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2039308: 02 80 00 5e be 2039480 <rtems_rfs_block_map_close+0x184> <== NOT EXECUTED
203930c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
2039310: d2 06 60 04 ld [ %i1 + 4 ], %o1 <== NOT EXECUTED
2039314: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
2039318: 22 80 00 5b be,a 2039484 <rtems_rfs_block_map_close+0x188><== NOT EXECUTED
203931c: b0 10 20 00 clr %i0 <== NOT EXECUTED
{
brc = rtems_rfs_inode_load (fs, map->inode);
2039320: 40 00 0f 14 call 203cf70 <rtems_rfs_inode_load> <== NOT EXECUTED
2039324: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (brc > 0)
2039328: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203932c: 14 80 00 57 bg 2039488 <rtems_rfs_block_map_close+0x18c> <== NOT EXECUTED
2039330: 92 06 60 38 add %i1, 0x38, %o1 <== NOT EXECUTED
2039334: 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);
2039338: 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]);
203933c: c6 06 60 04 ld [ %i1 + 4 ], %g3 <== NOT EXECUTED
2039340: 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);
2039344: da 00 e0 0c ld [ %g3 + 0xc ], %o5 <== NOT EXECUTED
2039348: c8 01 20 24 ld [ %g4 + 0x24 ], %g4 <== NOT EXECUTED
203934c: 9a 03 40 01 add %o5, %g1, %o5 <== NOT EXECUTED
2039350: 99 31 20 18 srl %g4, 0x18, %o4 <== NOT EXECUTED
2039354: d8 2b 60 1c stb %o4, [ %o5 + 0x1c ] <== NOT EXECUTED
2039358: da 00 e0 0c ld [ %g3 + 0xc ], %o5 <== NOT EXECUTED
203935c: 99 31 20 10 srl %g4, 0x10, %o4 <== NOT EXECUTED
2039360: 9a 03 40 01 add %o5, %g1, %o5 <== NOT EXECUTED
2039364: d8 2b 60 1d stb %o4, [ %o5 + 0x1d ] <== NOT EXECUTED
2039368: da 00 e0 0c ld [ %g3 + 0xc ], %o5 <== NOT EXECUTED
203936c: 99 31 20 08 srl %g4, 8, %o4 <== NOT EXECUTED
2039370: 9a 03 40 01 add %o5, %g1, %o5 <== NOT EXECUTED
2039374: d8 2b 60 1e stb %o4, [ %o5 + 0x1e ] <== NOT EXECUTED
2039378: da 00 e0 0c ld [ %g3 + 0xc ], %o5 <== NOT EXECUTED
203937c: 9a 03 40 01 add %o5, %g1, %o5 <== NOT EXECUTED
2039380: c8 2b 60 1f stb %g4, [ %o5 + 0x1f ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
2039384: 82 00 60 04 add %g1, 4, %g1 <== NOT EXECUTED
if (rc == 0)
{
int b;
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
2039388: 80 a0 60 14 cmp %g1, 0x14 <== NOT EXECUTED
203938c: 12 bf ff ec bne 203933c <rtems_rfs_block_map_close+0x40> <== NOT EXECUTED
2039390: 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);
2039394: c6 06 60 04 ld [ %i1 + 4 ], %g3 <== NOT EXECUTED
2039398: 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);
203939c: c8 00 e0 0c ld [ %g3 + 0xc ], %g4 <== NOT EXECUTED
20393a0: 9b 30 60 18 srl %g1, 0x18, %o5 <== NOT EXECUTED
20393a4: da 29 20 0c stb %o5, [ %g4 + 0xc ] <== NOT EXECUTED
20393a8: c8 00 e0 0c ld [ %g3 + 0xc ], %g4 <== NOT EXECUTED
20393ac: 9b 30 60 10 srl %g1, 0x10, %o5 <== NOT EXECUTED
20393b0: da 29 20 0d stb %o5, [ %g4 + 0xd ] <== NOT EXECUTED
20393b4: c8 00 e0 0c ld [ %g3 + 0xc ], %g4 <== NOT EXECUTED
20393b8: 9b 30 60 08 srl %g1, 8, %o5 <== NOT EXECUTED
20393bc: da 29 20 0e stb %o5, [ %g4 + 0xe ] <== NOT EXECUTED
20393c0: 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);
20393c4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20393c8: 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);
20393cc: c8 06 60 04 ld [ %i1 + 4 ], %g4 <== NOT EXECUTED
20393d0: 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);
20393d4: 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);
20393d8: 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);
20393dc: 87 30 60 08 srl %g1, 8, %g3 <== NOT EXECUTED
20393e0: c6 2b 60 0a stb %g3, [ %o5 + 0xa ] <== NOT EXECUTED
20393e4: 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);
20393e8: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
20393ec: 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);
20393f0: c6 06 60 04 ld [ %i1 + 4 ], %g3 <== NOT EXECUTED
20393f4: 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);
20393f8: 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);
20393fc: 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);
2039400: 89 30 60 18 srl %g1, 0x18, %g4 <== NOT EXECUTED
2039404: c8 2b 60 30 stb %g4, [ %o5 + 0x30 ] <== NOT EXECUTED
2039408: c8 00 e0 0c ld [ %g3 + 0xc ], %g4 <== NOT EXECUTED
203940c: 9b 30 60 10 srl %g1, 0x10, %o5 <== NOT EXECUTED
2039410: da 29 20 31 stb %o5, [ %g4 + 0x31 ] <== NOT EXECUTED
2039414: c8 00 e0 0c ld [ %g3 + 0xc ], %g4 <== NOT EXECUTED
2039418: 9b 30 60 08 srl %g1, 8, %o5 <== NOT EXECUTED
203941c: da 29 20 32 stb %o5, [ %g4 + 0x32 ] <== NOT EXECUTED
2039420: c8 00 e0 0c ld [ %g3 + 0xc ], %g4 <== NOT EXECUTED
2039424: c2 29 20 33 stb %g1, [ %g4 + 0x33 ] <== NOT EXECUTED
rtems_rfs_inode_set_last_data_block (map->inode, map->last_data_block);
2039428: c2 06 60 04 ld [ %i1 + 4 ], %g1 <== NOT EXECUTED
203942c: 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);
2039430: 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);
2039434: 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);
2039438: 87 31 20 18 srl %g4, 0x18, %g3 <== NOT EXECUTED
203943c: c6 2b 60 34 stb %g3, [ %o5 + 0x34 ] <== NOT EXECUTED
2039440: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
2039444: 9b 31 20 10 srl %g4, 0x10, %o5 <== NOT EXECUTED
2039448: da 28 e0 35 stb %o5, [ %g3 + 0x35 ] <== NOT EXECUTED
203944c: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
2039450: 9b 31 20 08 srl %g4, 8, %o5 <== NOT EXECUTED
2039454: da 28 e0 36 stb %o5, [ %g3 + 0x36 ] <== NOT EXECUTED
2039458: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
203945c: c8 28 e0 37 stb %g4, [ %g3 + 0x37 ] <== NOT EXECUTED
brc = rtems_rfs_inode_unload (fs, map->inode, true);
2039460: d2 06 60 04 ld [ %i1 + 4 ], %o1 <== NOT EXECUTED
2039464: 40 00 0e 89 call 203ce88 <rtems_rfs_inode_unload> <== NOT EXECUTED
2039468: c4 28 60 10 stb %g2, [ %g1 + 0x10 ] <== NOT EXECUTED
if (brc > 0)
rc = brc;
map->dirty = false;
203946c: 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);
2039470: 82 38 00 08 xnor %g0, %o0, %g1 <== NOT EXECUTED
2039474: 83 38 60 1f sra %g1, 0x1f, %g1 <== NOT EXECUTED
2039478: 10 80 00 03 b 2039484 <rtems_rfs_block_map_close+0x188> <== NOT EXECUTED
203947c: b0 0a 00 01 and %o0, %g1, %i0 <== NOT EXECUTED
if (brc > 0)
rc = brc;
map->dirty = false;
2039480: 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);
2039484: 92 06 60 38 add %i1, 0x38, %o1 <== NOT EXECUTED
}
}
map->inode = NULL;
2039488: c0 26 60 04 clr [ %i1 + 4 ] <== NOT EXECUTED
203948c: 40 00 00 df call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2039490: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039494: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
handle->dirty = false;
2039498: c0 2e 60 38 clrb [ %i1 + 0x38 ] <== NOT EXECUTED
handle->bnum = 0;
203949c: c0 26 60 3c clr [ %i1 + 0x3c ] <== NOT EXECUTED
handle->buffer = NULL;
20394a0: 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);
20394a4: 40 00 00 d9 call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
20394a8: 92 06 60 44 add %i1, 0x44, %o1 <== NOT EXECUTED
handle->dirty = false;
handle->bnum = 0;
handle->buffer = NULL;
20394ac: 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;
20394b0: c0 2e 60 44 clrb [ %i1 + 0x44 ] <== NOT EXECUTED
handle->bnum = 0;
20394b4: 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;
}
20394b8: 81 c7 e0 08 ret <== NOT EXECUTED
20394bc: 81 e8 00 00 restore <== NOT EXECUTED
02038840 <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)
{
2038840: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int rc = 0;
*block = 0;
2038844: 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))
2038848: e4 06 80 00 ld [ %i2 ], %l2 <== NOT EXECUTED
203884c: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
2038850: 02 80 00 06 be 2038868 <rtems_rfs_block_map_find+0x28> <== NOT EXECUTED
2038854: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
2038858: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
203885c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2038860: 22 80 00 50 be,a 20389a0 <rtems_rfs_block_map_find+0x160><== NOT EXECUTED
2038864: b0 10 20 06 mov 6, %i0 <== NOT EXECUTED
2038868: e8 06 60 08 ld [ %i1 + 8 ], %l4 <== NOT EXECUTED
203886c: 80 a4 80 14 cmp %l2, %l4 <== NOT EXECUTED
2038870: 3a 80 00 4c bcc,a 20389a0 <rtems_rfs_block_map_find+0x160><== NOT EXECUTED
2038874: 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))
2038878: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
203887c: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED
2038880: 12 80 00 07 bne 203889c <rtems_rfs_block_map_find+0x5c> <== NOT EXECUTED
2038884: 80 a5 20 05 cmp %l4, 5 <== NOT EXECUTED
2038888: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED
203888c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2038890: 32 80 00 3b bne,a 203897c <rtems_rfs_block_map_find+0x13c><== NOT EXECUTED
2038894: 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)
2038898: 80 a5 20 05 cmp %l4, 5 <== NOT EXECUTED
203889c: 38 80 00 08 bgu,a 20388bc <rtems_rfs_block_map_find+0x7c><== NOT EXECUTED
20388a0: e6 04 20 30 ld [ %l0 + 0x30 ], %l3 <== NOT EXECUTED
{
*block = map->blocks[bpos->bno];
20388a4: a4 04 a0 08 add %l2, 8, %l2 <== NOT EXECUTED
20388a8: a5 2c a0 02 sll %l2, 2, %l2 <== NOT EXECUTED
20388ac: a4 06 40 12 add %i1, %l2, %l2 <== NOT EXECUTED
20388b0: c2 04 a0 04 ld [ %l2 + 4 ], %g1 <== NOT EXECUTED
20388b4: 10 80 00 32 b 203897c <rtems_rfs_block_map_find+0x13c> <== NOT EXECUTED
20388b8: 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;
20388bc: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
20388c0: 40 00 8a b3 call 205b38c <.urem> <== NOT EXECUTED
20388c4: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
singly = bpos->bno / fs->blocks_per_block;
20388c8: 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;
20388cc: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
singly = bpos->bno / fs->blocks_per_block;
20388d0: 40 00 8a 03 call 205b0dc <.udiv> <== NOT EXECUTED
20388d4: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
if (map->size.count <= fs->block_map_singly_blocks)
20388d8: 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;
20388dc: d0 27 bf fc st %o0, [ %fp + -4 ] <== NOT EXECUTED
if (map->size.count <= fs->block_map_singly_blocks)
20388e0: 80 a5 00 01 cmp %l4, %g1 <== NOT EXECUTED
20388e4: 18 80 00 07 bgu 2038900 <rtems_rfs_block_map_find+0xc0> <== NOT EXECUTED
20388e8: 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,
20388ec: aa 02 20 08 add %o0, 8, %l5 <== NOT EXECUTED
20388f0: ab 2d 60 02 sll %l5, 2, %l5 <== NOT EXECUTED
20388f4: aa 06 40 15 add %i1, %l5, %l5 <== NOT EXECUTED
20388f8: 10 80 00 19 b 203895c <rtems_rfs_block_map_find+0x11c> <== NOT EXECUTED
20388fc: 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)
2038900: c2 04 20 38 ld [ %l0 + 0x38 ], %g1 <== NOT EXECUTED
2038904: 80 a5 00 01 cmp %l4, %g1 <== NOT EXECUTED
2038908: 1a 80 00 26 bcc 20389a0 <rtems_rfs_block_map_find+0x160> <== NOT EXECUTED
203890c: 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;
2038910: 40 00 8a 9f call 205b38c <.urem> <== NOT EXECUTED
2038914: 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,
2038918: 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;
203891c: 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,
2038920: 40 00 89 ef call 205b0dc <.udiv> <== NOT EXECUTED
2038924: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
2038928: 82 02 20 08 add %o0, 8, %g1 <== NOT EXECUTED
203892c: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
2038930: 82 06 40 01 add %i1, %g1, %g1 <== NOT EXECUTED
2038934: d4 00 60 04 ld [ %g1 + 4 ], %o2 <== NOT EXECUTED
2038938: 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;
203893c: 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,
2038940: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2038944: 92 06 60 44 add %i1, 0x44, %o1 <== NOT EXECUTED
2038948: 7f ff ff 9a call 20387b0 <rtems_rfs_block_find_indirect> <== NOT EXECUTED
203894c: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
&map->doubly_buffer,
map->blocks[doubly],
singly, &singly);
if (rc == 0)
2038950: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2038954: 12 80 00 13 bne 20389a0 <rtems_rfs_block_map_find+0x160> <== NOT EXECUTED
2038958: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
{
rc = rtems_rfs_block_find_indirect (fs,
203895c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2038960: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
2038964: 92 06 60 38 add %i1, 0x38, %o1 <== NOT EXECUTED
2038968: 7f ff ff 92 call 20387b0 <rtems_rfs_block_find_indirect> <== NOT EXECUTED
203896c: 98 10 00 1b mov %i3, %o4 <== NOT EXECUTED
}
}
}
}
if (rc == 0)
2038970: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2038974: 12 80 00 0b bne 20389a0 <rtems_rfs_block_map_find+0x160> <== NOT EXECUTED
2038978: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_rfs_block_copy_bpos (&map->bpos, bpos);
203897c: c6 06 a0 08 ld [ %i2 + 8 ], %g3 <== NOT EXECUTED
2038980: c2 06 a0 04 ld [ %i2 + 4 ], %g1 <== NOT EXECUTED
2038984: c4 06 80 00 ld [ %i2 ], %g2 <== NOT EXECUTED
2038988: c6 26 60 18 st %g3, [ %i1 + 0x18 ] <== NOT EXECUTED
203898c: c4 26 60 10 st %g2, [ %i1 + 0x10 ] <== NOT EXECUTED
2038990: c2 26 60 14 st %g1, [ %i1 + 0x14 ] <== NOT EXECUTED
map->bpos.block = *block;
2038994: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
2038998: c2 26 60 18 st %g1, [ %i1 + 0x18 ] <== NOT EXECUTED
203899c: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
return rc;
}
20389a0: 81 c7 e0 08 ret <== NOT EXECUTED
20389a4: 81 e8 00 00 restore <== NOT EXECUTED
02038e38 <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);
2038e38: d4 02 60 08 ld [ %o1 + 8 ], %o2 <== NOT EXECUTED
2038e3c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2038e40: 7f ff ff 37 call 2038b1c <rtems_rfs_block_map_shrink> <== NOT EXECUTED
2038e44: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02038f64 <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)
{
2038f64: 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))
2038f68: c2 06 20 38 ld [ %i0 + 0x38 ], %g1 <== NOT EXECUTED
2038f6c: 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)
{
2038f70: 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))
2038f74: 84 06 80 02 add %i2, %g2, %g2 <== NOT EXECUTED
2038f78: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2038f7c: 1a 80 00 b6 bcc 2039254 <rtems_rfs_block_map_grow+0x2f0> <== NOT EXECUTED
2038f80: b0 10 20 1b mov 0x1b, %i0 <== NOT EXECUTED
&map->blocks[singly],
upping);
}
else
{
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
2038f84: a8 06 60 38 add %i1, 0x38, %l4 <== NOT EXECUTED
return rc;
}
}
else
{
rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
2038f88: ae 06 60 44 add %i1, 0x44, %l7 <== NOT EXECUTED
2038f8c: 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,
2038f90: b8 07 bf fc add %fp, -4, %i4 <== NOT EXECUTED
return rc;
}
}
}
rtems_rfs_block_set_number (&map->singly_buffer, direct, block);
2038f94: 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,
2038f98: 10 80 00 d3 b 20392e4 <rtems_rfs_block_map_grow+0x380> <== NOT EXECUTED
2038f9c: 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,
2038fa0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2038fa4: 94 10 20 00 clr %o2 <== NOT EXECUTED
2038fa8: 40 00 0e 50 call 203c8e8 <rtems_rfs_group_bitmap_alloc> <== NOT EXECUTED
2038fac: 96 10 00 1c mov %i4, %o3 <== NOT EXECUTED
false, &block);
if (rc > 0)
2038fb0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2038fb4: 14 80 00 d0 bg 20392f4 <rtems_rfs_block_map_grow+0x390> <== NOT EXECUTED
2038fb8: 01 00 00 00 nop <== NOT EXECUTED
return rc;
if (map->size.count < RTEMS_RFS_INODE_BLOCKS)
2038fbc: e2 06 60 08 ld [ %i1 + 8 ], %l1 <== NOT EXECUTED
2038fc0: 80 a4 60 04 cmp %l1, 4 <== NOT EXECUTED
2038fc4: 38 80 00 08 bgu,a 2038fe4 <rtems_rfs_block_map_grow+0x80><== NOT EXECUTED
2038fc8: f0 04 20 30 ld [ %l0 + 0x30 ], %i0 <== NOT EXECUTED
map->blocks[map->size.count] = block;
2038fcc: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2038fd0: a2 04 60 08 add %l1, 8, %l1 <== NOT EXECUTED
2038fd4: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED
2038fd8: a2 06 40 11 add %i1, %l1, %l1 <== NOT EXECUTED
2038fdc: 10 80 00 b6 b 20392b4 <rtems_rfs_block_map_grow+0x350> <== NOT EXECUTED
2038fe0: 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;
2038fe4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2038fe8: 40 00 88 e9 call 205b38c <.urem> <== NOT EXECUTED
2038fec: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
singly = map->size.count / fs->blocks_per_block;
2038ff0: 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;
2038ff4: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
singly = map->size.count / fs->blocks_per_block;
2038ff8: 40 00 88 39 call 205b0dc <.udiv> <== NOT EXECUTED
2038ffc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
if (map->size.count < fs->block_map_singly_blocks)
2039000: c4 04 20 34 ld [ %l0 + 0x34 ], %g2 <== NOT EXECUTED
2039004: 80 a4 40 02 cmp %l1, %g2 <== NOT EXECUTED
2039008: 1a 80 00 1b bcc 2039074 <rtems_rfs_block_map_grow+0x110> <== NOT EXECUTED
203900c: 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) ||
2039010: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
2039014: 22 80 00 07 be,a 2039030 <rtems_rfs_block_map_grow+0xcc> <== NOT EXECUTED
2039018: a2 1c 60 05 xor %l1, 5, %l1 <== NOT EXECUTED
203901c: 80 a4 a0 05 cmp %l2, 5 <== NOT EXECUTED
2039020: 12 80 00 10 bne 2039060 <rtems_rfs_block_map_grow+0xfc> <== NOT EXECUTED
2039024: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2039028: 12 80 00 0e bne 2039060 <rtems_rfs_block_map_grow+0xfc> <== NOT EXECUTED
203902c: 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,
2039030: 80 a0 00 11 cmp %g0, %l1 <== NOT EXECUTED
2039034: 96 00 60 08 add %g1, 8, %o3 <== NOT EXECUTED
2039038: 98 60 3f ff subx %g0, -1, %o4 <== NOT EXECUTED
203903c: 97 2a e0 02 sll %o3, 2, %o3 <== NOT EXECUTED
2039040: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039044: 96 06 40 0b add %i1, %o3, %o3 <== NOT EXECUTED
2039048: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203904c: 96 02 e0 04 add %o3, 4, %o3 <== NOT EXECUTED
2039050: 7f ff ff 7f call 2038e4c <rtems_rfs_block_map_indirect_alloc><== NOT EXECUTED
2039054: 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)
2039058: 10 80 00 79 b 203923c <rtems_rfs_block_map_grow+0x2d8> <== NOT EXECUTED
203905c: 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,
2039060: 82 00 60 08 add %g1, 8, %g1 <== NOT EXECUTED
2039064: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
2039068: 82 06 40 01 add %i1, %g1, %g1 <== NOT EXECUTED
203906c: 10 80 00 6f b 2039228 <rtems_rfs_block_map_grow+0x2c4> <== NOT EXECUTED
2039070: 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;
2039074: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
2039078: 40 00 88 19 call 205b0dc <.udiv> <== NOT EXECUTED
203907c: d0 27 bf f4 st %o0, [ %fp + -12 ] <== NOT EXECUTED
singly %= fs->blocks_per_block;
2039080: 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;
2039084: aa 10 00 08 mov %o0, %l5 <== NOT EXECUTED
singly %= fs->blocks_per_block;
2039088: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
203908c: 40 00 88 c0 call 205b38c <.urem> <== NOT EXECUTED
2039090: 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)
2039094: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
2039098: 12 80 00 49 bne 20391bc <rtems_rfs_block_map_grow+0x258> <== NOT EXECUTED
203909c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
{
rc = rtems_rfs_block_map_indirect_alloc (fs, map,
20390a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20390a4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
20390a8: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
20390ac: 96 10 00 1d mov %i5, %o3 <== NOT EXECUTED
20390b0: 7f ff ff 67 call 2038e4c <rtems_rfs_block_map_indirect_alloc><== NOT EXECUTED
20390b4: 98 10 20 00 clr %o4 <== NOT EXECUTED
&map->singly_buffer,
&singly_block,
false);
if (rc > 0)
20390b8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20390bc: 14 80 00 62 bg 2039244 <rtems_rfs_block_map_grow+0x2e0> <== NOT EXECUTED
20390c0: 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) ||
20390c4: 22 80 00 08 be,a 20390e4 <rtems_rfs_block_map_grow+0x180><== NOT EXECUTED
20390c8: c4 06 60 08 ld [ %i1 + 8 ], %g2 <== NOT EXECUTED
20390cc: 80 a4 60 05 cmp %l1, 5 <== NOT EXECUTED
20390d0: 12 80 00 13 bne 203911c <rtems_rfs_block_map_grow+0x1b8> <== NOT EXECUTED
20390d4: 80 a5 60 00 cmp %l5, 0 <== NOT EXECUTED
20390d8: 32 80 00 12 bne,a 2039120 <rtems_rfs_block_map_grow+0x1bc><== NOT EXECUTED
20390dc: 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,
20390e0: c4 06 60 08 ld [ %i1 + 8 ], %g2 <== NOT EXECUTED
20390e4: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 <== NOT EXECUTED
20390e8: 96 05 60 08 add %l5, 8, %o3 <== NOT EXECUTED
20390ec: 82 18 80 01 xor %g2, %g1, %g1 <== NOT EXECUTED
20390f0: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
20390f4: 97 2a e0 02 sll %o3, 2, %o3 <== NOT EXECUTED
20390f8: 98 60 3f ff subx %g0, -1, %o4 <== NOT EXECUTED
20390fc: 96 06 40 0b add %i1, %o3, %o3 <== NOT EXECUTED
2039100: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039104: 96 02 e0 04 add %o3, 4, %o3 <== NOT EXECUTED
2039108: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203910c: 7f ff ff 50 call 2038e4c <rtems_rfs_block_map_indirect_alloc><== NOT EXECUTED
2039110: 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)
2039114: 10 80 00 0b b 2039140 <rtems_rfs_block_map_grow+0x1dc> <== NOT EXECUTED
2039118: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
return rc;
}
}
else
{
rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
203911c: aa 05 60 08 add %l5, 8, %l5 <== NOT EXECUTED
2039120: ab 2d 60 02 sll %l5, 2, %l5 <== NOT EXECUTED
2039124: aa 06 40 15 add %i1, %l5, %l5 <== NOT EXECUTED
2039128: d4 05 60 04 ld [ %l5 + 4 ], %o2 <== NOT EXECUTED
203912c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039130: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
2039134: 40 00 01 ff call 2039930 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
2039138: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
map->blocks[doubly], true);
if (rc > 0)
203913c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2039140: 24 80 00 09 ble,a 2039164 <rtems_rfs_block_map_grow+0x200><== NOT EXECUTED
2039144: c2 06 60 4c ld [ %i1 + 0x4c ], %g1 <== NOT EXECUTED
{
rtems_rfs_group_bitmap_free (fs, false, singly_block);
2039148: d4 07 bf f8 ld [ %fp + -8 ], %o2 <== NOT EXECUTED
203914c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039150: 40 00 0d c3 call 203c85c <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
2039154: 92 10 20 00 clr %o1 <== NOT EXECUTED
rtems_rfs_group_bitmap_free (fs, false, block);
2039158: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203915c: 10 80 00 3c b 203924c <rtems_rfs_block_map_grow+0x2e8> <== NOT EXECUTED
2039160: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
return rc;
}
}
rtems_rfs_block_set_number (&map->doubly_buffer,
2039164: c6 0f bf f8 ldub [ %fp + -8 ], %g3 <== NOT EXECUTED
2039168: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 <== NOT EXECUTED
203916c: 83 2c 60 02 sll %l1, 2, %g1 <== NOT EXECUTED
2039170: c6 28 80 01 stb %g3, [ %g2 + %g1 ] <== NOT EXECUTED
2039174: c4 06 60 4c ld [ %i1 + 0x4c ], %g2 <== NOT EXECUTED
2039178: c6 17 bf f8 lduh [ %fp + -8 ], %g3 <== NOT EXECUTED
203917c: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
2039180: a2 00 60 02 add %g1, 2, %l1 <== NOT EXECUTED
2039184: 84 00 80 01 add %g2, %g1, %g2 <== NOT EXECUTED
2039188: c6 28 a0 01 stb %g3, [ %g2 + 1 ] <== NOT EXECUTED
203918c: c4 06 60 4c ld [ %i1 + 0x4c ], %g2 <== NOT EXECUTED
2039190: c6 07 bf f8 ld [ %fp + -8 ], %g3 <== NOT EXECUTED
2039194: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
2039198: 87 30 e0 08 srl %g3, 8, %g3 <== NOT EXECUTED
203919c: c6 28 80 11 stb %g3, [ %g2 + %l1 ] <== NOT EXECUTED
20391a0: c4 06 60 4c ld [ %i1 + 0x4c ], %g2 <== NOT EXECUTED
20391a4: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
20391a8: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
20391ac: c4 07 bf f8 ld [ %fp + -8 ], %g2 <== NOT EXECUTED
20391b0: c4 28 60 03 stb %g2, [ %g1 + 3 ] <== NOT EXECUTED
20391b4: 10 80 00 2a b 203925c <rtems_rfs_block_map_grow+0x2f8> <== NOT EXECUTED
20391b8: ec 2e 60 44 stb %l6, [ %i1 + 0x44 ] <== NOT EXECUTED
singly,
singly_block);
}
else
{
rc = rtems_rfs_buffer_handle_request (fs,
20391bc: aa 05 60 08 add %l5, 8, %l5 <== NOT EXECUTED
20391c0: ab 2d 60 02 sll %l5, 2, %l5 <== NOT EXECUTED
20391c4: aa 06 40 15 add %i1, %l5, %l5 <== NOT EXECUTED
20391c8: d4 05 60 04 ld [ %l5 + 4 ], %o2 <== NOT EXECUTED
20391cc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20391d0: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
20391d4: 40 00 01 d7 call 2039930 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
20391d8: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
&map->doubly_buffer,
map->blocks[doubly],
true);
if (rc > 0)
20391dc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20391e0: 14 80 00 19 bg 2039244 <rtems_rfs_block_map_grow+0x2e0> <== NOT EXECUTED
20391e4: 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,
20391e8: c2 06 60 4c ld [ %i1 + 0x4c ], %g1 <== NOT EXECUTED
20391ec: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
20391f0: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED
20391f4: 84 00 a0 02 add %g2, 2, %g2 <== NOT EXECUTED
20391f8: d4 08 40 11 ldub [ %g1 + %l1 ], %o2 <== NOT EXECUTED
20391fc: c4 08 40 02 ldub [ %g1 + %g2 ], %g2 <== NOT EXECUTED
2039200: 82 00 40 11 add %g1, %l1, %g1 <== NOT EXECUTED
2039204: c6 08 60 01 ldub [ %g1 + 1 ], %g3 <== NOT EXECUTED
2039208: c2 08 60 03 ldub [ %g1 + 3 ], %g1 <== NOT EXECUTED
203920c: 95 2a a0 18 sll %o2, 0x18, %o2 <== NOT EXECUTED
2039210: 94 10 40 0a or %g1, %o2, %o2 <== NOT EXECUTED
2039214: 83 28 e0 10 sll %g3, 0x10, %g1 <== NOT EXECUTED
2039218: 94 12 80 01 or %o2, %g1, %o2 <== NOT EXECUTED
203921c: 83 28 a0 08 sll %g2, 8, %g1 <== NOT EXECUTED
2039220: 94 12 80 01 or %o2, %g1, %o2 <== NOT EXECUTED
2039224: d4 27 bf f8 st %o2, [ %fp + -8 ] <== NOT EXECUTED
singly);
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
2039228: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203922c: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
2039230: 40 00 01 c0 call 2039930 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
2039234: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
singly_block, true);
if (rc > 0)
2039238: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203923c: 24 80 00 09 ble,a 2039260 <rtems_rfs_block_map_grow+0x2fc><== NOT EXECUTED
2039240: c2 06 60 40 ld [ %i1 + 0x40 ], %g1 <== NOT EXECUTED
{
rtems_rfs_group_bitmap_free (fs, false, block);
2039244: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
2039248: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203924c: 40 00 0d 84 call 203c85c <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
2039250: 92 10 20 00 clr %o1 <== NOT EXECUTED
return rc;
2039254: 81 c7 e0 08 ret <== NOT EXECUTED
2039258: 81 e8 00 00 restore <== NOT EXECUTED
}
}
}
rtems_rfs_block_set_number (&map->singly_buffer, direct, block);
203925c: c2 06 60 40 ld [ %i1 + 0x40 ], %g1 <== NOT EXECUTED
2039260: c6 0f bf fc ldub [ %fp + -4 ], %g3 <== NOT EXECUTED
2039264: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 <== NOT EXECUTED
2039268: 83 2c a0 02 sll %l2, 2, %g1 <== NOT EXECUTED
203926c: c6 28 80 01 stb %g3, [ %g2 + %g1 ] <== NOT EXECUTED
2039270: c4 06 60 40 ld [ %i1 + 0x40 ], %g2 <== NOT EXECUTED
2039274: c6 17 bf fc lduh [ %fp + -4 ], %g3 <== NOT EXECUTED
2039278: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
203927c: a4 00 60 02 add %g1, 2, %l2 <== NOT EXECUTED
2039280: 84 00 80 01 add %g2, %g1, %g2 <== NOT EXECUTED
2039284: c6 28 a0 01 stb %g3, [ %g2 + 1 ] <== NOT EXECUTED
2039288: c4 06 60 40 ld [ %i1 + 0x40 ], %g2 <== NOT EXECUTED
203928c: c6 07 bf fc ld [ %fp + -4 ], %g3 <== NOT EXECUTED
2039290: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
2039294: 87 30 e0 08 srl %g3, 8, %g3 <== NOT EXECUTED
2039298: c6 28 80 12 stb %g3, [ %g2 + %l2 ] <== NOT EXECUTED
203929c: c4 06 60 40 ld [ %i1 + 0x40 ], %g2 <== NOT EXECUTED
20392a0: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
20392a4: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
20392a8: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED
20392ac: c4 28 60 03 stb %g2, [ %g1 + 3 ] <== NOT EXECUTED
20392b0: ec 2e 60 38 stb %l6, [ %i1 + 0x38 ] <== NOT EXECUTED
}
map->size.count++;
20392b4: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
map->size.offset = 0;
20392b8: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED
}
rtems_rfs_block_set_number (&map->singly_buffer, direct, block);
}
map->size.count++;
20392bc: 82 00 60 01 inc %g1 <== NOT EXECUTED
map->size.offset = 0;
if (b == 0)
20392c0: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
20392c4: 12 80 00 04 bne 20392d4 <rtems_rfs_block_map_grow+0x370> <== NOT EXECUTED
20392c8: c2 26 60 08 st %g1, [ %i1 + 8 ] <== NOT EXECUTED
*new_block = block;
20392cc: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
20392d0: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED
map->last_data_block = block;
20392d4: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
map->dirty = true;
20392d8: 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;
20392dc: 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++)
20392e0: a6 04 e0 01 inc %l3 <== NOT EXECUTED
20392e4: 80 a4 c0 1a cmp %l3, %i2 <== NOT EXECUTED
20392e8: 2a bf ff 2e bcs,a 2038fa0 <rtems_rfs_block_map_grow+0x3c><== NOT EXECUTED
20392ec: d2 06 60 20 ld [ %i1 + 0x20 ], %o1 <== NOT EXECUTED
20392f0: b0 10 20 00 clr %i0 <== NOT EXECUTED
map->last_data_block = block;
map->dirty = true;
}
return 0;
}
20392f4: 81 c7 e0 08 ret <== NOT EXECUTED
20392f8: 81 e8 00 00 restore <== NOT EXECUTED
02038e4c <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)
{
2038e4c: 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);
2038e50: d2 06 60 1c ld [ %i1 + 0x1c ], %o1 <== NOT EXECUTED
2038e54: 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)
{
2038e58: 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);
2038e5c: 94 10 20 00 clr %o2 <== NOT EXECUTED
2038e60: 40 00 0e a2 call 203c8e8 <rtems_rfs_group_bitmap_alloc> <== NOT EXECUTED
2038e64: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
if (rc > 0)
2038e68: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2038e6c: 14 80 00 0c bg 2038e9c <rtems_rfs_block_map_indirect_alloc+0x50><== NOT EXECUTED
2038e70: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
return rc;
rc = rtems_rfs_buffer_handle_request (fs, buffer, new_block, false);
2038e74: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2038e78: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
2038e7c: 40 00 02 ad call 2039930 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
2038e80: 96 10 20 00 clr %o3 <== NOT EXECUTED
if (rc > 0)
2038e84: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2038e88: 04 80 00 07 ble 2038ea4 <rtems_rfs_block_map_indirect_alloc+0x58><== NOT EXECUTED
2038e8c: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
{
rtems_rfs_group_bitmap_free (fs, false, new_block);
2038e90: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2038e94: 40 00 0e 72 call 203c85c <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
2038e98: 92 10 20 00 clr %o1 <== NOT EXECUTED
return rc;
2038e9c: 81 c7 e0 08 ret <== NOT EXECUTED
2038ea0: 81 e8 00 00 restore <== NOT EXECUTED
}
memset (rtems_rfs_buffer_data (buffer), 0xff, rtems_rfs_fs_block_size (fs));
2038ea4: c2 06 a0 08 ld [ %i2 + 8 ], %g1 <== NOT EXECUTED
2038ea8: d4 04 20 08 ld [ %l0 + 8 ], %o2 <== NOT EXECUTED
2038eac: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
2038eb0: 40 00 35 3d call 20463a4 <memset> <== NOT EXECUTED
2038eb4: 92 10 20 ff mov 0xff, %o1 <== NOT EXECUTED
if (upping)
2038eb8: 80 8f 20 ff btst 0xff, %i4 <== NOT EXECUTED
2038ebc: 02 80 00 23 be 2038f48 <rtems_rfs_block_map_indirect_alloc+0xfc><== NOT EXECUTED
2038ec0: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2038ec4: 84 10 00 19 mov %i1, %g2 <== NOT EXECUTED
2038ec8: 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]);
2038ecc: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED
2038ed0: c8 06 a0 08 ld [ %i2 + 8 ], %g4 <== NOT EXECUTED
2038ed4: da 08 a0 24 ldub [ %g2 + 0x24 ], %o5 <== NOT EXECUTED
2038ed8: c8 01 20 24 ld [ %g4 + 0x24 ], %g4 <== NOT EXECUTED
2038edc: da 29 00 01 stb %o5, [ %g4 + %g1 ] <== NOT EXECUTED
2038ee0: c8 06 a0 08 ld [ %i2 + 8 ], %g4 <== NOT EXECUTED
2038ee4: da 10 a0 24 lduh [ %g2 + 0x24 ], %o5 <== NOT EXECUTED
2038ee8: c8 01 20 24 ld [ %g4 + 0x24 ], %g4 <== NOT EXECUTED
2038eec: 88 01 00 01 add %g4, %g1, %g4 <== NOT EXECUTED
2038ef0: da 29 20 01 stb %o5, [ %g4 + 1 ] <== NOT EXECUTED
2038ef4: c8 06 a0 08 ld [ %i2 + 8 ], %g4 <== NOT EXECUTED
2038ef8: da 00 a0 24 ld [ %g2 + 0x24 ], %o5 <== NOT EXECUTED
2038efc: c8 01 20 24 ld [ %g4 + 0x24 ], %g4 <== NOT EXECUTED
2038f00: 9b 33 60 08 srl %o5, 8, %o5 <== NOT EXECUTED
2038f04: 88 01 00 01 add %g4, %g1, %g4 <== NOT EXECUTED
2038f08: da 29 20 02 stb %o5, [ %g4 + 2 ] <== NOT EXECUTED
2038f0c: c8 06 a0 08 ld [ %i2 + 8 ], %g4 <== NOT EXECUTED
2038f10: da 00 a0 24 ld [ %g2 + 0x24 ], %o5 <== NOT EXECUTED
2038f14: c8 01 20 24 ld [ %g4 + 0x24 ], %g4 <== NOT EXECUTED
2038f18: 84 00 a0 04 add %g2, 4, %g2 <== NOT EXECUTED
2038f1c: 88 01 00 01 add %g4, %g1, %g4 <== NOT EXECUTED
2038f20: da 29 20 03 stb %o5, [ %g4 + 3 ] <== NOT EXECUTED
2038f24: 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++)
2038f28: 80 a0 60 14 cmp %g1, 0x14 <== NOT EXECUTED
2038f2c: 12 bf ff e9 bne 2038ed0 <rtems_rfs_block_map_indirect_alloc+0x84><== NOT EXECUTED
2038f30: 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));
2038f34: 90 06 60 24 add %i1, 0x24, %o0 <== NOT EXECUTED
2038f38: 92 10 20 00 clr %o1 <== NOT EXECUTED
2038f3c: 40 00 35 1a call 20463a4 <memset> <== NOT EXECUTED
2038f40: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
}
rtems_rfs_buffer_mark_dirty (buffer);
*block = new_block;
2038f44: 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);
2038f48: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
*block = new_block;
2038f4c: 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);
2038f50: c4 2e 80 00 stb %g2, [ %i2 ] <== NOT EXECUTED
*block = new_block;
map->last_map_block = new_block;
2038f54: c2 26 60 1c st %g1, [ %i1 + 0x1c ] <== NOT EXECUTED
2038f58: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2038f5c: 81 c7 e0 08 ret <== NOT EXECUTED
2038f60: 81 e8 00 00 restore <== NOT EXECUTED
02038a44 <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)
{
2038a44: 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) ||
2038a48: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED
2038a4c: 02 80 00 0a be 2038a74 <rtems_rfs_block_map_indirect_shrink+0x30><== NOT EXECUTED
2038a50: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2038a54: 80 a7 20 05 cmp %i4, 5 <== NOT EXECUTED
2038a58: 32 80 00 2f bne,a 2038b14 <rtems_rfs_block_map_indirect_shrink+0xd0><== NOT EXECUTED
2038a5c: 90 10 20 00 clr %o0 <== NOT EXECUTED
2038a60: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2038a64: 02 80 00 05 be 2038a78 <rtems_rfs_block_map_indirect_shrink+0x34><== NOT EXECUTED
2038a68: 80 a7 20 05 cmp %i4, 5 <== NOT EXECUTED
2038a6c: 10 80 00 2a b 2038b14 <rtems_rfs_block_map_indirect_shrink+0xd0><== NOT EXECUTED
2038a70: 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))
2038a74: 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];
2038a78: 82 06 e0 08 add %i3, 8, %g1 <== NOT EXECUTED
2038a7c: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
2038a80: 82 06 40 01 add %i1, %g1, %g1 <== NOT EXECUTED
if ((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS))
2038a84: 12 80 00 1a bne 2038aec <rtems_rfs_block_map_indirect_shrink+0xa8><== NOT EXECUTED
2038a88: f8 00 60 04 ld [ %g1 + 4 ], %i4 <== NOT EXECUTED
2038a8c: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2038a90: 32 80 00 18 bne,a 2038af0 <rtems_rfs_block_map_indirect_shrink+0xac><== NOT EXECUTED
2038a94: b6 06 e0 08 add %i3, 8, %i3 <== NOT EXECUTED
2038a98: c2 06 a0 08 ld [ %i2 + 8 ], %g1 <== NOT EXECUTED
2038a9c: 84 10 20 00 clr %g2 <== NOT EXECUTED
2038aa0: 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);
2038aa4: c6 08 60 02 ldub [ %g1 + 2 ], %g3 <== NOT EXECUTED
2038aa8: d8 08 40 00 ldub [ %g1 ], %o4 <== NOT EXECUTED
2038aac: c8 08 60 01 ldub [ %g1 + 1 ], %g4 <== NOT EXECUTED
2038ab0: da 08 60 03 ldub [ %g1 + 3 ], %o5 <== NOT EXECUTED
2038ab4: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
2038ab8: 99 2b 20 18 sll %o4, 0x18, %o4 <== NOT EXECUTED
2038abc: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
2038ac0: 88 13 00 04 or %o4, %g4, %g4 <== NOT EXECUTED
2038ac4: 88 11 00 0d or %g4, %o5, %g4 <== NOT EXECUTED
2038ac8: 88 11 00 03 or %g4, %g3, %g4 <== NOT EXECUTED
2038acc: 86 06 40 02 add %i1, %g2, %g3 <== NOT EXECUTED
2038ad0: c8 20 e0 24 st %g4, [ %g3 + 0x24 ] <== NOT EXECUTED
2038ad4: 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++)
2038ad8: 80 a0 a0 14 cmp %g2, 0x14 <== NOT EXECUTED
2038adc: 12 bf ff f2 bne 2038aa4 <rtems_rfs_block_map_indirect_shrink+0x60><== NOT EXECUTED
2038ae0: 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);
2038ae4: 10 80 00 07 b 2038b00 <rtems_rfs_block_map_indirect_shrink+0xbc><== NOT EXECUTED
2038ae8: 92 10 20 00 clr %o1 <== NOT EXECUTED
else
{
/*
* One less singly indirect block in the inode.
*/
map->blocks[indirect] = 0;
2038aec: b6 06 e0 08 add %i3, 8, %i3 <== NOT EXECUTED
2038af0: b7 2e e0 02 sll %i3, 2, %i3 <== NOT EXECUTED
2038af4: b6 06 40 1b add %i1, %i3, %i3 <== NOT EXECUTED
2038af8: c0 26 e0 04 clr [ %i3 + 4 ] <== NOT EXECUTED
}
rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);
2038afc: 92 10 20 00 clr %o1 <== NOT EXECUTED
2038b00: 40 00 0f 57 call 203c85c <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
2038b04: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
if (rc > 0)
2038b08: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2038b0c: 24 80 00 02 ble,a 2038b14 <rtems_rfs_block_map_indirect_shrink+0xd0><== NOT EXECUTED
2038b10: f8 26 60 1c st %i4, [ %i1 + 0x1c ] <== NOT EXECUTED
map->last_map_block = block_to_free;
}
return rc;
}
2038b14: 81 c7 e0 08 ret <== NOT EXECUTED
2038b18: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
020389a8 <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)
{
20389a8: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED
rtems_rfs_block_pos bpos;
bpos.bno = map->bpos.bno + 1;
20389ac: 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)
{
20389b0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
rtems_rfs_block_pos bpos;
bpos.bno = map->bpos.bno + 1;
20389b4: 82 00 60 01 inc %g1 <== NOT EXECUTED
bpos.boff = 0;
20389b8: 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;
20389bc: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED
bpos.boff = 0;
bpos.block = 0;
20389c0: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
return rtems_rfs_block_map_find (fs, map, &bpos, block);
20389c4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20389c8: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
20389cc: 7f ff ff 9d call 2038840 <rtems_rfs_block_map_find> <== NOT EXECUTED
20389d0: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED
}
20389d4: 81 c7 e0 08 ret <== NOT EXECUTED
20389d8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
020394c0 <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)
{
20394c0: 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;
20394c4: c0 2e 80 00 clrb [ %i2 ] <== NOT EXECUTED
map->inode = NULL;
20394c8: 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;
20394cc: c0 26 a0 08 clr [ %i2 + 8 ] <== NOT EXECUTED
size->offset = 0;
20394d0: 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;
20394d4: c0 26 a0 10 clr [ %i2 + 0x10 ] <== NOT EXECUTED
bpos->boff = 0;
20394d8: c0 26 a0 14 clr [ %i2 + 0x14 ] <== NOT EXECUTED
bpos->block = 0;
20394dc: 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;
20394e0: c0 2e a0 38 clrb [ %i2 + 0x38 ] <== NOT EXECUTED
handle->bnum = 0;
20394e4: c0 26 a0 3c clr [ %i2 + 0x3c ] <== NOT EXECUTED
handle->buffer = NULL;
20394e8: 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;
20394ec: c0 2e a0 44 clrb [ %i2 + 0x44 ] <== NOT EXECUTED
handle->bnum = 0;
20394f0: c0 26 a0 48 clr [ %i2 + 0x48 ] <== NOT EXECUTED
handle->buffer = NULL;
20394f4: 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);
20394f8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20394fc: 40 00 0e 9d call 203cf70 <rtems_rfs_inode_load> <== NOT EXECUTED
2039500: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
if (rc > 0)
2039504: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2039508: 24 80 00 11 ble,a 203954c <rtems_rfs_block_map_open+0x8c><== NOT EXECUTED
203950c: 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);
2039510: 92 06 a0 38 add %i2, 0x38, %o1 <== NOT EXECUTED
2039514: 40 00 00 bd call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2039518: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203951c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
handle->dirty = false;
2039520: c0 2e a0 38 clrb [ %i2 + 0x38 ] <== NOT EXECUTED
handle->bnum = 0;
2039524: c0 26 a0 3c clr [ %i2 + 0x3c ] <== NOT EXECUTED
handle->buffer = NULL;
2039528: 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);
203952c: 92 06 a0 44 add %i2, 0x44, %o1 <== NOT EXECUTED
2039530: 40 00 00 b6 call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2039534: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED
handle->dirty = false;
handle->bnum = 0;
handle->buffer = NULL;
2039538: 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;
203953c: c0 2e a0 44 clrb [ %i2 + 0x44 ] <== NOT EXECUTED
handle->bnum = 0;
2039540: 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;
}
2039544: 81 c7 e0 08 ret <== NOT EXECUTED
2039548: 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;
203954c: 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,
2039550: 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;
2039554: 84 10 00 1a mov %i2, %g2 <== NOT EXECUTED
2039558: 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);
203955c: d6 08 40 00 ldub [ %g1 ], %o3 <== NOT EXECUTED
2039560: c8 08 60 01 ldub [ %g1 + 1 ], %g4 <== NOT EXECUTED
2039564: d8 08 60 03 ldub [ %g1 + 3 ], %o4 <== NOT EXECUTED
2039568: da 08 60 02 ldub [ %g1 + 2 ], %o5 <== NOT EXECUTED
203956c: 97 2a e0 18 sll %o3, 0x18, %o3 <== NOT EXECUTED
2039570: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
2039574: 9b 2b 60 08 sll %o5, 8, %o5 <== NOT EXECUTED
2039578: 88 12 c0 04 or %o3, %g4, %g4 <== NOT EXECUTED
203957c: 88 11 00 0c or %g4, %o4, %g4 <== NOT EXECUTED
2039580: 88 11 00 0d or %g4, %o5, %g4 <== NOT EXECUTED
2039584: c8 20 a0 24 st %g4, [ %g2 + 0x24 ] <== NOT EXECUTED
2039588: 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++)
203958c: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
2039590: 12 bf ff f3 bne 203955c <rtems_rfs_block_map_open+0x9c> <== NOT EXECUTED
2039594: 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);
2039598: 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);
203959c: d8 08 60 0c ldub [ %g1 + 0xc ], %o4 <== NOT EXECUTED
20395a0: 84 00 60 0c add %g1, 0xc, %g2 <== NOT EXECUTED
20395a4: da 08 a0 03 ldub [ %g2 + 3 ], %o5 <== NOT EXECUTED
20395a8: c6 08 a0 02 ldub [ %g2 + 2 ], %g3 <== NOT EXECUTED
20395ac: c8 08 a0 01 ldub [ %g2 + 1 ], %g4 <== NOT EXECUTED
20395b0: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
20395b4: 85 2b 20 18 sll %o4, 0x18, %g2 <== NOT EXECUTED
20395b8: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
20395bc: 84 13 40 02 or %o5, %g2, %g2 <== NOT EXECUTED
20395c0: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
20395c4: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
20395c8: c4 26 a0 08 st %g2, [ %i2 + 8 ] <== NOT EXECUTED
map->size.offset = rtems_rfs_inode_get_block_offset (inode);
20395cc: c6 08 60 0b ldub [ %g1 + 0xb ], %g3 <== NOT EXECUTED
20395d0: c4 08 60 0a ldub [ %g1 + 0xa ], %g2 <== NOT EXECUTED
20395d4: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
20395d8: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED
20395dc: 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);
20395e0: 84 00 60 30 add %g1, 0x30, %g2 <== NOT EXECUTED
map->last_map_block = rtems_rfs_inode_get_last_map_block (inode);
20395e4: d8 08 60 30 ldub [ %g1 + 0x30 ], %o4 <== NOT EXECUTED
20395e8: da 08 a0 03 ldub [ %g2 + 3 ], %o5 <== NOT EXECUTED
20395ec: c6 08 a0 02 ldub [ %g2 + 2 ], %g3 <== NOT EXECUTED
20395f0: c8 08 a0 01 ldub [ %g2 + 1 ], %g4 <== NOT EXECUTED
20395f4: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
20395f8: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
20395fc: 85 2b 20 18 sll %o4, 0x18, %g2 <== NOT EXECUTED
2039600: 84 13 40 02 or %o5, %g2, %g2 <== NOT EXECUTED
2039604: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
2039608: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
203960c: c4 26 a0 1c st %g2, [ %i2 + 0x1c ] <== NOT EXECUTED
map->last_data_block = rtems_rfs_inode_get_last_data_block (inode);
2039610: 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);
2039614: 82 00 60 34 add %g1, 0x34, %g1 <== NOT EXECUTED
2039618: c4 08 60 02 ldub [ %g1 + 2 ], %g2 <== NOT EXECUTED
203961c: c8 08 60 03 ldub [ %g1 + 3 ], %g4 <== NOT EXECUTED
2039620: c6 08 60 01 ldub [ %g1 + 1 ], %g3 <== NOT EXECUTED
2039624: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2039628: 83 2b 60 18 sll %o5, 0x18, %g1 <== NOT EXECUTED
203962c: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
2039630: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
2039634: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
2039638: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
203963c: c2 26 a0 20 st %g1, [ %i2 + 0x20 ] <== NOT EXECUTED
rc = rtems_rfs_inode_unload (fs, inode, false);
2039640: 40 00 0e 12 call 203ce88 <rtems_rfs_inode_unload> <== NOT EXECUTED
2039644: 95 e8 20 00 restore %g0, 0, %o2 <== NOT EXECUTED
020389dc <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)
{
20389dc: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED
rtems_rfs_block_pos bpos;
rtems_rfs_block_copy_bpos (&bpos, &map->bpos);
20389e0: e0 06 60 14 ld [ %i1 + 0x14 ], %l0 <== NOT EXECUTED
20389e4: 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,
20389e8: d2 06 20 08 ld [ %i0 + 8 ], %o1 <== NOT EXECUTED
20389ec: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
20389f0: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
20389f4: e0 27 bf f8 st %l0, [ %fp + -8 ] <== NOT EXECUTED
20389f8: 7f ff 28 00 call 20029f8 <.umul> <== NOT EXECUTED
20389fc: d0 27 bf f4 st %o0, [ %fp + -12 ] <== NOT EXECUTED
2038a00: 82 02 00 10 add %o0, %l0, %g1 <== NOT EXECUTED
2038a04: b6 86 c0 01 addcc %i3, %g1, %i3 <== NOT EXECUTED
2038a08: a0 07 bf f4 add %fp, -12, %l0 <== NOT EXECUTED
2038a0c: b4 46 a0 00 addx %i2, 0, %i2 <== NOT EXECUTED
2038a10: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2038a14: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
2038a18: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
2038a1c: 7f ff ff 20 call 203869c <rtems_rfs_block_get_bpos> <== NOT EXECUTED
2038a20: 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)
{
2038a24: 96 10 00 1c mov %i4, %o3 <== NOT EXECUTED
rtems_rfs_block_get_pos (fs, bpos) + offset,
bpos);
bpos->block = 0;
2038a28: 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);
2038a2c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2038a30: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2038a34: 7f ff ff 83 call 2038840 <rtems_rfs_block_map_find> <== NOT EXECUTED
2038a38: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
}
2038a3c: 81 c7 e0 08 ret <== NOT EXECUTED
2038a40: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02038b1c <rtems_rfs_block_map_shrink>:
int
rtems_rfs_block_map_shrink (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map,
size_t blocks)
{
2038b1c: 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)
2038b20: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
2038b24: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2038b28: 02 80 00 c1 be 2038e2c <rtems_rfs_block_map_shrink+0x310> <== NOT EXECUTED
2038b2c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
2038b30: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED
2038b34: 38 80 00 02 bgu,a 2038b3c <rtems_rfs_block_map_shrink+0x20><== NOT EXECUTED
2038b38: 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,
2038b3c: 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,
2038b40: 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;
2038b44: 10 80 00 95 b 2038d98 <rtems_rfs_block_map_shrink+0x27c> <== NOT EXECUTED
2038b48: 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;
2038b4c: ae 00 7f ff add %g1, -1, %l7 <== NOT EXECUTED
if (block < RTEMS_RFS_INODE_BLOCKS)
2038b50: 80 a5 e0 04 cmp %l7, 4 <== NOT EXECUTED
2038b54: 38 80 00 08 bgu,a 2038b74 <rtems_rfs_block_map_shrink+0x58><== NOT EXECUTED
2038b58: 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];
2038b5c: 82 00 60 07 add %g1, 7, %g1 <== NOT EXECUTED
2038b60: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
2038b64: 82 06 40 01 add %i1, %g1, %g1 <== NOT EXECUTED
2038b68: e2 00 60 04 ld [ %g1 + 4 ], %l1 <== NOT EXECUTED
map->blocks[block] = 0;
2038b6c: 10 80 00 7e b 2038d64 <rtems_rfs_block_map_shrink+0x248> <== NOT EXECUTED
2038b70: 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;
2038b74: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED
2038b78: 40 00 8a 05 call 205b38c <.urem> <== NOT EXECUTED
2038b7c: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
singly = block / fs->blocks_per_block;
2038b80: 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;
2038b84: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
singly = block / fs->blocks_per_block;
2038b88: 40 00 89 55 call 205b0dc <.udiv> <== NOT EXECUTED
2038b8c: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED
if (block < fs->block_map_singly_blocks)
2038b90: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 <== NOT EXECUTED
2038b94: 80 a5 c0 01 cmp %l7, %g1 <== NOT EXECUTED
2038b98: 1a 80 00 27 bcc 2038c34 <rtems_rfs_block_map_shrink+0x118><== NOT EXECUTED
2038b9c: 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,
2038ba0: 82 02 20 08 add %o0, 8, %g1 <== NOT EXECUTED
2038ba4: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
2038ba8: 82 06 40 01 add %i1, %g1, %g1 <== NOT EXECUTED
2038bac: d4 00 60 04 ld [ %g1 + 4 ], %o2 <== NOT EXECUTED
2038bb0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2038bb4: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2038bb8: 40 00 03 5e call 2039930 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
2038bbc: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
map->blocks[singly], true);
if (rc > 0)
2038bc0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2038bc4: 14 80 00 9b bg 2038e30 <rtems_rfs_block_map_shrink+0x314> <== NOT EXECUTED
2038bc8: 87 2c 60 02 sll %l1, 2, %g3 <== NOT EXECUTED
return rc;
block_to_free = rtems_rfs_block_get_number (&map->singly_buffer,
2038bcc: c2 06 60 40 ld [ %i1 + 0x40 ], %g1 <== NOT EXECUTED
2038bd0: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
direct);
rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
2038bd4: 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,
2038bd8: 84 00 40 03 add %g1, %g3, %g2 <== NOT EXECUTED
direct);
rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
2038bdc: 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,
2038be0: fa 08 a0 03 ldub [ %g2 + 3 ], %i5 <== NOT EXECUTED
2038be4: a2 00 e0 02 add %g3, 2, %l1 <== NOT EXECUTED
2038be8: ee 08 40 03 ldub [ %g1 + %g3 ], %l7 <== NOT EXECUTED
2038bec: ec 08 a0 01 ldub [ %g2 + 1 ], %l6 <== NOT EXECUTED
2038bf0: ea 08 40 11 ldub [ %g1 + %l1 ], %l5 <== NOT EXECUTED
direct);
rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
2038bf4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2038bf8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2038bfc: 7f ff ff 92 call 2038a44 <rtems_rfs_block_map_indirect_shrink><== NOT EXECUTED
2038c00: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
singly, direct);
if (rc)
2038c04: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2038c08: 12 80 00 8a bne 2038e30 <rtems_rfs_block_map_shrink+0x314><== NOT EXECUTED
2038c0c: 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,
2038c10: af 2d e0 18 sll %l7, 0x18, %l7 <== NOT EXECUTED
2038c14: ac 0d a0 ff and %l6, 0xff, %l6 <== NOT EXECUTED
2038c18: a2 14 40 17 or %l1, %l7, %l1 <== NOT EXECUTED
2038c1c: aa 0d 60 ff and %l5, 0xff, %l5 <== NOT EXECUTED
2038c20: ad 2d a0 10 sll %l6, 0x10, %l6 <== NOT EXECUTED
2038c24: ab 2d 60 08 sll %l5, 8, %l5 <== NOT EXECUTED
2038c28: a2 14 40 16 or %l1, %l6, %l1 <== NOT EXECUTED
2038c2c: 10 80 00 4e b 2038d64 <rtems_rfs_block_map_shrink+0x248> <== NOT EXECUTED
2038c30: 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)
2038c34: c2 04 20 38 ld [ %l0 + 0x38 ], %g1 <== NOT EXECUTED
2038c38: 80 a5 c0 01 cmp %l7, %g1 <== NOT EXECUTED
2038c3c: 3a 80 00 5a bcc,a 2038da4 <rtems_rfs_block_map_shrink+0x288><== NOT EXECUTED
2038c40: 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;
2038c44: 40 00 89 26 call 205b0dc <.udiv> <== NOT EXECUTED
2038c48: 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,
2038c4c: 82 02 20 08 add %o0, 8, %g1 <== NOT EXECUTED
2038c50: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
2038c54: 82 06 40 01 add %i1, %g1, %g1 <== NOT EXECUTED
2038c58: 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;
2038c5c: 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,
2038c60: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2038c64: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2038c68: 40 00 03 32 call 2039930 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
2038c6c: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
map->blocks[doubly], true);
if (rc > 0)
2038c70: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2038c74: 14 80 00 6f bg 2038e30 <rtems_rfs_block_map_shrink+0x314> <== NOT EXECUTED
2038c78: 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;
2038c7c: 40 00 89 c4 call 205b38c <.urem> <== NOT EXECUTED
2038c80: 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,
2038c84: c2 06 60 4c ld [ %i1 + 0x4c ], %g1 <== NOT EXECUTED
2038c88: 85 2a 20 02 sll %o0, 2, %g2 <== NOT EXECUTED
2038c8c: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
2038c90: 86 00 a0 02 add %g2, 2, %g3 <== NOT EXECUTED
2038c94: ec 08 40 02 ldub [ %g1 + %g2 ], %l6 <== NOT EXECUTED
2038c98: c6 08 40 03 ldub [ %g1 + %g3 ], %g3 <== NOT EXECUTED
2038c9c: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
2038ca0: c4 08 60 01 ldub [ %g1 + 1 ], %g2 <== NOT EXECUTED
2038ca4: c2 08 60 03 ldub [ %g1 + 3 ], %g1 <== NOT EXECUTED
2038ca8: ad 2d a0 18 sll %l6, 0x18, %l6 <== NOT EXECUTED
2038cac: ac 10 40 16 or %g1, %l6, %l6 <== NOT EXECUTED
2038cb0: 83 28 a0 10 sll %g2, 0x10, %g1 <== NOT EXECUTED
2038cb4: ac 15 80 01 or %l6, %g1, %l6 <== NOT EXECUTED
2038cb8: 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;
2038cbc: 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,
2038cc0: 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,
2038cc4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2038cc8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2038ccc: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED
2038cd0: 40 00 03 18 call 2039930 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
2038cd4: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
singly, true);
if (rc > 0)
2038cd8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2038cdc: 14 80 00 55 bg 2038e30 <rtems_rfs_block_map_shrink+0x314> <== NOT EXECUTED
2038ce0: 85 2c 60 02 sll %l1, 2, %g2 <== NOT EXECUTED
return rc;
block_to_free = rtems_rfs_block_get_number (&map->singly_buffer,
2038ce4: c2 06 60 40 ld [ %i1 + 0x40 ], %g1 <== NOT EXECUTED
2038ce8: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
2038cec: 86 00 a0 02 add %g2, 2, %g3 <== NOT EXECUTED
2038cf0: c8 08 40 02 ldub [ %g1 + %g2 ], %g4 <== NOT EXECUTED
2038cf4: c6 08 40 03 ldub [ %g1 + %g3 ], %g3 <== NOT EXECUTED
2038cf8: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
2038cfc: c4 08 60 01 ldub [ %g1 + 1 ], %g2 <== NOT EXECUTED
2038d00: c2 08 60 03 ldub [ %g1 + 3 ], %g1 <== NOT EXECUTED
direct);
if (direct == 0)
2038d04: 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,
2038d08: a3 29 20 18 sll %g4, 0x18, %l1 <== NOT EXECUTED
2038d0c: a2 10 40 11 or %g1, %l1, %l1 <== NOT EXECUTED
2038d10: 83 28 a0 10 sll %g2, 0x10, %g1 <== NOT EXECUTED
2038d14: a2 14 40 01 or %l1, %g1, %l1 <== NOT EXECUTED
2038d18: 83 28 e0 08 sll %g3, 8, %g1 <== NOT EXECUTED
direct);
if (direct == 0)
2038d1c: 12 80 00 12 bne 2038d64 <rtems_rfs_block_map_shrink+0x248><== NOT EXECUTED
2038d20: a2 14 40 01 or %l1, %g1, %l1 <== NOT EXECUTED
{
rc = rtems_rfs_group_bitmap_free (fs, false, singly);
2038d24: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2038d28: 92 10 20 00 clr %o1 <== NOT EXECUTED
2038d2c: 40 00 0e cc call 203c85c <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
2038d30: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED
if (rc > 0)
2038d34: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2038d38: 14 80 00 3e bg 2038e30 <rtems_rfs_block_map_shrink+0x314> <== NOT EXECUTED
2038d3c: 96 10 00 17 mov %l7, %o3 <== NOT EXECUTED
return rc;
map->last_map_block = singly;
2038d40: ec 26 60 1c st %l6, [ %i1 + 0x1c ] <== NOT EXECUTED
rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->doubly_buffer,
2038d44: 98 10 00 15 mov %l5, %o4 <== NOT EXECUTED
2038d48: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2038d4c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2038d50: 7f ff ff 3d call 2038a44 <rtems_rfs_block_map_indirect_shrink><== NOT EXECUTED
2038d54: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
doubly, doubly_singly);
if (rc)
2038d58: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2038d5c: 12 80 00 35 bne 2038e30 <rtems_rfs_block_map_shrink+0x314><== NOT EXECUTED
2038d60: 01 00 00 00 nop <== NOT EXECUTED
{
rc = EIO;
break;
}
}
rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);
2038d64: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2038d68: 92 10 20 00 clr %o1 <== NOT EXECUTED
2038d6c: 40 00 0e bc call 203c85c <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
2038d70: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc > 0)
2038d74: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2038d78: 14 80 00 2e bg 2038e30 <rtems_rfs_block_map_shrink+0x314> <== NOT EXECUTED
2038d7c: b4 06 bf ff add %i2, -1, %i2 <== NOT EXECUTED
return rc;
map->size.count--;
2038d80: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
map->size.offset = 0;
map->last_data_block = block_to_free;
2038d84: 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--;
2038d88: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
map->size.offset = 0;
2038d8c: 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--;
2038d90: c2 26 60 08 st %g1, [ %i1 + 8 ] <== NOT EXECUTED
map->size.offset = 0;
map->last_data_block = block_to_free;
map->dirty = true;
2038d94: e8 2e 40 00 stb %l4, [ %i1 ] <== NOT EXECUTED
return 0;
if (blocks > map->size.count)
blocks = map->size.count;
while (blocks)
2038d98: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
2038d9c: 12 bf ff 6c bne 2038b4c <rtems_rfs_block_map_shrink+0x30> <== NOT EXECUTED
2038da0: 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)
2038da4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2038da8: 32 80 00 05 bne,a 2038dbc <rtems_rfs_block_map_shrink+0x2a0><== NOT EXECUTED
2038dac: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
{
map->last_map_block = 0;
2038db0: c0 26 60 1c clr [ %i1 + 0x1c ] <== NOT EXECUTED
map->last_data_block = 0;
2038db4: 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))
2038db8: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
2038dbc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2038dc0: 02 80 00 06 be 2038dd8 <rtems_rfs_block_map_shrink+0x2bc> <== NOT EXECUTED
2038dc4: c4 06 60 08 ld [ %i1 + 8 ], %g2 <== NOT EXECUTED
2038dc8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2038dcc: 22 80 00 10 be,a 2038e0c <rtems_rfs_block_map_shrink+0x2f0><== NOT EXECUTED
2038dd0: c4 06 60 0c ld [ %i1 + 0xc ], %g2 <== NOT EXECUTED
2038dd4: c4 06 60 08 ld [ %i1 + 8 ], %g2 <== NOT EXECUTED
2038dd8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2038ddc: 3a 80 00 0c bcc,a 2038e0c <rtems_rfs_block_map_shrink+0x2f0><== NOT EXECUTED
2038de0: c4 06 60 0c ld [ %i1 + 0xc ], %g2 <== NOT EXECUTED
2038de4: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
2038de8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2038dec: 12 80 00 11 bne 2038e30 <rtems_rfs_block_map_shrink+0x314><== NOT EXECUTED
2038df0: 90 10 20 00 clr %o0 <== NOT EXECUTED
2038df4: c4 06 60 14 ld [ %i1 + 0x14 ], %g2 <== NOT EXECUTED
2038df8: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
2038dfc: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2038e00: 08 80 00 0c bleu 2038e30 <rtems_rfs_block_map_shrink+0x314><== NOT EXECUTED
2038e04: 01 00 00 00 nop <== NOT EXECUTED
rtems_rfs_block_size_get_bpos (&map->size, &map->bpos);
2038e08: c4 06 60 0c ld [ %i1 + 0xc ], %g2 <== NOT EXECUTED
2038e0c: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
2038e10: c4 26 60 14 st %g2, [ %i1 + 0x14 ] <== NOT EXECUTED
2038e14: c2 26 60 10 st %g1, [ %i1 + 0x10 ] <== NOT EXECUTED
2038e18: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2038e1c: 02 80 00 04 be 2038e2c <rtems_rfs_block_map_shrink+0x310> <== NOT EXECUTED
2038e20: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED
2038e24: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
2038e28: c2 26 60 10 st %g1, [ %i1 + 0x10 ] <== NOT EXECUTED
2038e2c: 90 10 20 00 clr %o0 <== NOT EXECUTED
return 0;
}
2038e30: 81 c7 e0 08 ret <== NOT EXECUTED
2038e34: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02042528 <rtems_rfs_buffer_bdbuf_release>:
}
int
rtems_rfs_buffer_bdbuf_release (rtems_rfs_buffer* buffer,
bool modified)
{
2042528: 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)
204252c: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED
2042530: 02 80 00 06 be 2042548 <rtems_rfs_buffer_bdbuf_release+0x20><== NOT EXECUTED
2042534: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
sc = rtems_bdbuf_release_modified (buffer);
2042538: 7f ff 09 1f call 20049b4 <rtems_bdbuf_release_modified> <== NOT EXECUTED
204253c: 01 00 00 00 nop <== NOT EXECUTED
else
sc = rtems_bdbuf_release (buffer);
if (sc != RTEMS_SUCCESSFUL)
2042540: 10 80 00 05 b 2042554 <rtems_rfs_buffer_bdbuf_release+0x2c><== NOT EXECUTED
2042544: 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);
2042548: 7f ff 09 41 call 2004a4c <rtems_bdbuf_release> <== NOT EXECUTED
204254c: 01 00 00 00 nop <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2042550: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
2042554: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED
2042558: b0 0e 3f fb and %i0, -5, %i0 <== NOT EXECUTED
#endif
rc = EIO;
}
return rc;
}
204255c: 81 c7 e0 08 ret <== NOT EXECUTED
2042560: 91 ee 20 05 restore %i0, 5, %o0 <== NOT EXECUTED
02042564 <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)
{
2042564: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_status_code sc;
int rc = 0;
if (read)
2042568: 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)
{
204256c: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
2042570: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
rtems_status_code sc;
int rc = 0;
if (read)
2042574: 02 80 00 06 be 204258c <rtems_rfs_buffer_bdbuf_request+0x28><== NOT EXECUTED
2042578: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
sc = rtems_bdbuf_read (rtems_rfs_fs_device (fs), block, buffer);
204257c: 7f ff 0d cc call 2005cac <rtems_bdbuf_read> <== NOT EXECUTED
2042580: 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)
2042584: 10 80 00 05 b 2042598 <rtems_rfs_buffer_bdbuf_request+0x34><== NOT EXECUTED
2042588: 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);
204258c: 7f ff 0d 95 call 2005be0 <rtems_bdbuf_get> <== NOT EXECUTED
2042590: d0 18 40 00 ldd [ %g1 ], %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2042594: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
2042598: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED
204259c: b0 0e 3f fb and %i0, -5, %i0 <== NOT EXECUTED
#endif
rc = EIO;
}
return rc;
}
20425a0: 81 c7 e0 08 ret <== NOT EXECUTED
20425a4: 91 ee 20 05 restore %i0, 5, %o0 <== NOT EXECUTED
02039780 <rtems_rfs_buffer_close>:
return 0;
}
int
rtems_rfs_buffer_close (rtems_rfs_file_system* fs)
{
2039780: 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));
2039784: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
2039788: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203978c: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
2039790: 7f ff ff e8 call 2039730 <rtems_rfs_buffer_setblksize> <== NOT EXECUTED
2039794: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
2039798: 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);
203979c: 7f ff 35 d6 call 2006ef4 <rtems_disk_release> <== NOT EXECUTED
20397a0: d0 04 20 0c ld [ %l0 + 0xc ], %o0 <== NOT EXECUTED
rc, strerror (rc));
}
#endif
return rc;
}
20397a4: 81 c7 e0 08 ret <== NOT EXECUTED
20397a8: 81 e8 00 00 restore <== NOT EXECUTED
02039b48 <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)
{
2039b48: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_buffer_handle_release (fs, handle);
2039b4c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2039b50: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2039b54: 7f ff ff 2d call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2039b58: b0 10 20 00 clr %i0 <== NOT EXECUTED
handle->dirty = false;
handle->bnum = 0;
handle->buffer = NULL;
2039b5c: 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;
2039b60: c0 2e 40 00 clrb [ %i1 ] <== NOT EXECUTED
handle->bnum = 0;
2039b64: c0 26 60 04 clr [ %i1 + 4 ] <== NOT EXECUTED
handle->buffer = NULL;
return 0;
}
2039b68: 81 c7 e0 08 ret <== NOT EXECUTED
2039b6c: 81 e8 00 00 restore <== NOT EXECUTED
02039808 <rtems_rfs_buffer_handle_release>:
}
int
rtems_rfs_buffer_handle_release (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
2039808: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc = 0;
if (rtems_rfs_buffer_handle_has_block (handle))
203980c: 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)
{
2039810: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
int rc = 0;
if (rtems_rfs_buffer_handle_has_block (handle))
2039814: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2039818: 02 80 00 44 be 2039928 <rtems_rfs_buffer_handle_release+0x120><== NOT EXECUTED
203981c: 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)
2039820: c2 02 20 38 ld [ %o0 + 0x38 ], %g1 <== NOT EXECUTED
2039824: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2039828: 04 80 00 03 ble 2039834 <rtems_rfs_buffer_handle_release+0x2c><== NOT EXECUTED
203982c: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
rtems_rfs_buffer_refs_down (handle);
2039830: c2 22 20 38 st %g1, [ %o0 + 0x38 ] <== NOT EXECUTED
if (rtems_rfs_buffer_refs (handle) == 0)
2039834: c2 02 20 38 ld [ %o0 + 0x38 ], %g1 <== NOT EXECUTED
2039838: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203983c: 12 80 00 3a bne 2039924 <rtems_rfs_buffer_handle_release+0x11c><== NOT EXECUTED
2039840: b0 10 20 00 clr %i0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
2039844: 7f ff 4f c0 call 200d744 <_Chain_Extract> <== NOT EXECUTED
2039848: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_chain_extract (rtems_rfs_buffer_link (handle));
fs->buffers_count--;
203984c: c4 04 20 4c ld [ %l0 + 0x4c ], %g2 <== NOT EXECUTED
if (rtems_rfs_fs_no_local_cache (fs))
2039850: 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--;
2039854: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
if (rtems_rfs_fs_no_local_cache (fs))
2039858: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
203985c: 02 80 00 08 be 203987c <rtems_rfs_buffer_handle_release+0x74><== NOT EXECUTED
2039860: c4 24 20 4c st %g2, [ %l0 + 0x4c ] <== NOT EXECUTED
{
handle->buffer->user = (void*) 0;
2039864: d0 06 60 08 ld [ %i1 + 8 ], %o0 <== NOT EXECUTED
rc = rtems_rfs_buffer_io_release (handle->buffer,
2039868: d2 0e 40 00 ldub [ %i1 ], %o1 <== NOT EXECUTED
203986c: 40 00 23 2f call 2042528 <rtems_rfs_buffer_bdbuf_release> <== NOT EXECUTED
2039870: c0 22 20 3c clr [ %o0 + 0x3c ] <== NOT EXECUTED
2039874: 10 80 00 2c b 2039924 <rtems_rfs_buffer_handle_release+0x11c><== NOT EXECUTED
2039878: 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 +
203987c: c4 04 20 5c ld [ %l0 + 0x5c ], %g2 <== NOT EXECUTED
2039880: c2 04 20 6c ld [ %l0 + 0x6c ], %g1 <== NOT EXECUTED
fs->release_modified_count) >= fs->max_held_buffers)
2039884: 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 +
2039888: 88 00 40 02 add %g1, %g2, %g4 <== NOT EXECUTED
fs->release_modified_count) >= fs->max_held_buffers)
203988c: 80 a1 00 03 cmp %g4, %g3 <== NOT EXECUTED
2039890: 0a 80 00 16 bcs 20398e8 <rtems_rfs_buffer_handle_release+0xe0><== NOT EXECUTED
2039894: 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)
2039898: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203989c: 08 80 00 09 bleu 20398c0 <rtems_rfs_buffer_handle_release+0xb8><== NOT EXECUTED
20398a0: 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 );
20398a4: 7f ff 4f b2 call 200d76c <_Chain_Get> <== NOT EXECUTED
20398a8: 90 04 20 50 add %l0, 0x50, %o0 <== NOT EXECUTED
{
buffer = (rtems_rfs_buffer*) rtems_chain_get (&fs->release);
fs->release_count--;
20398ac: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED
20398b0: 92 10 20 00 clr %o1 <== NOT EXECUTED
20398b4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
20398b8: 10 80 00 08 b 20398d8 <rtems_rfs_buffer_handle_release+0xd0><== NOT EXECUTED
20398bc: c2 24 20 5c st %g1, [ %l0 + 0x5c ] <== NOT EXECUTED
20398c0: 7f ff 4f ab call 200d76c <_Chain_Get> <== NOT EXECUTED
20398c4: 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--;
20398c8: c2 04 20 6c ld [ %l0 + 0x6c ], %g1 <== NOT EXECUTED
20398cc: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
20398d0: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
20398d4: c2 24 20 6c st %g1, [ %l0 + 0x6c ] <== NOT EXECUTED
modified = true;
}
buffer->user = (void*) 0;
20398d8: c0 22 20 3c clr [ %o0 + 0x3c ] <== NOT EXECUTED
rc = rtems_rfs_buffer_io_release (buffer, modified);
20398dc: 40 00 23 13 call 2042528 <rtems_rfs_buffer_bdbuf_release> <== NOT EXECUTED
20398e0: 92 0a 60 01 and %o1, 1, %o1 <== NOT EXECUTED
20398e4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
}
if (rtems_rfs_buffer_dirty (handle))
20398e8: c2 0e 40 00 ldub [ %i1 ], %g1 <== NOT EXECUTED
20398ec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20398f0: 02 80 00 08 be 2039910 <rtems_rfs_buffer_handle_release+0x108><== NOT EXECUTED
20398f4: 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 );
20398f8: 7f ff 4f 87 call 200d714 <_Chain_Append> <== NOT EXECUTED
20398fc: 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++;
2039900: c2 04 20 6c ld [ %l0 + 0x6c ], %g1 <== NOT EXECUTED
2039904: 82 00 60 01 inc %g1 <== NOT EXECUTED
2039908: 10 80 00 07 b 2039924 <rtems_rfs_buffer_handle_release+0x11c><== NOT EXECUTED
203990c: c2 24 20 6c st %g1, [ %l0 + 0x6c ] <== NOT EXECUTED
2039910: 7f ff 4f 81 call 200d714 <_Chain_Append> <== NOT EXECUTED
2039914: 90 04 20 50 add %l0, 0x50, %o0 <== NOT EXECUTED
}
else
{
rtems_chain_append (&fs->release, rtems_rfs_buffer_link (handle));
fs->release_count++;
2039918: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED
203991c: 82 00 60 01 inc %g1 <== NOT EXECUTED
2039920: c2 24 20 5c st %g1, [ %l0 + 0x5c ] <== NOT EXECUTED
}
}
}
handle->buffer = NULL;
2039924: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED
}
return rc;
}
2039928: 81 c7 e0 08 ret <== NOT EXECUTED
203992c: 81 e8 00 00 restore <== NOT EXECUTED
02039930 <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)
{
2039930: 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))
2039934: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
2039938: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203993c: 02 80 00 11 be 2039980 <rtems_rfs_buffer_handle_request+0x50><== NOT EXECUTED
2039940: 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))
2039944: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
2039948: 02 80 00 07 be 2039964 <rtems_rfs_buffer_handle_request+0x34><== NOT EXECUTED
203994c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039950: c2 06 60 04 ld [ %i1 + 4 ], %g1 <== NOT EXECUTED
2039954: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED
2039958: 02 80 00 7a be 2039b40 <rtems_rfs_buffer_handle_request+0x210><== NOT EXECUTED
203995c: 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);
2039960: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039964: 7f ff ff a9 call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2039968: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
if (rc > 0)
203996c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2039970: 14 80 00 74 bg 2039b40 <rtems_rfs_buffer_handle_request+0x210><== NOT EXECUTED
2039974: 01 00 00 00 nop <== NOT EXECUTED
return rc;
handle->dirty = false;
2039978: c0 2e 40 00 clrb [ %i1 ] <== NOT EXECUTED
handle->bnum = 0;
203997c: 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)
2039980: c4 04 20 4c ld [ %l0 + 0x4c ], %g2 <== NOT EXECUTED
2039984: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2039988: 22 80 00 16 be,a 20399e0 <rtems_rfs_buffer_handle_request+0xb0><== NOT EXECUTED
203998c: 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,
2039990: 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;
2039994: 10 80 00 0d b 20399c8 <rtems_rfs_buffer_handle_request+0x98><== NOT EXECUTED
2039998: 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)
203999c: 80 a1 00 1a cmp %g4, %i2 <== NOT EXECUTED
20399a0: 12 80 00 09 bne 20399c4 <rtems_rfs_buffer_handle_request+0x94><== NOT EXECUTED
20399a4: 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)--;
20399a8: 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 );
20399ac: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
20399b0: 7f ff 4f 65 call 200d744 <_Chain_Extract> <== NOT EXECUTED
20399b4: 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;
20399b8: c0 24 60 04 clr [ %l1 + 4 ] <== NOT EXECUTED
20399bc: 10 80 00 07 b 20399d8 <rtems_rfs_buffer_handle_request+0xa8><== NOT EXECUTED
20399c0: c0 24 40 00 clr [ %l1 ] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Previous(
Chain_Node *the_node
)
{
return the_node->previous;
20399c4: 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))
20399c8: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
20399cc: 32 bf ff f4 bne,a 203999c <rtems_rfs_buffer_handle_request+0x6c><== NOT EXECUTED
20399d0: c8 00 60 3c ld [ %g1 + 0x3c ], %g4 <== NOT EXECUTED
20399d4: 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,
20399d8: 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) &&
20399dc: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
20399e0: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
20399e4: 12 80 00 3c bne 2039ad4 <rtems_rfs_buffer_handle_request+0x1a4><== NOT EXECUTED
20399e8: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
!rtems_rfs_buffer_handle_has_block (handle))
20399ec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20399f0: 12 80 00 47 bne 2039b0c <rtems_rfs_buffer_handle_request+0x1dc><== NOT EXECUTED
20399f4: 01 00 00 00 nop <== NOT EXECUTED
{
/*
* Check the local cache of released buffers.
*/
if (fs->release_count)
20399f8: c4 04 20 5c ld [ %l0 + 0x5c ], %g2 <== NOT EXECUTED
20399fc: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2039a00: 02 80 00 17 be 2039a5c <rtems_rfs_buffer_handle_request+0x12c><== NOT EXECUTED
2039a04: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
handle->buffer = rtems_rfs_scan_chain (&fs->release,
2039a08: 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;
2039a0c: 10 80 00 0d b 2039a40 <rtems_rfs_buffer_handle_request+0x110><== NOT EXECUTED
2039a10: 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)
2039a14: 80 a1 00 1a cmp %g4, %i2 <== NOT EXECUTED
2039a18: 12 80 00 09 bne 2039a3c <rtems_rfs_buffer_handle_request+0x10c><== NOT EXECUTED
2039a1c: 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)--;
2039a20: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
2039a24: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
2039a28: 7f ff 4f 47 call 200d744 <_Chain_Extract> <== NOT EXECUTED
2039a2c: 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;
2039a30: c0 24 60 04 clr [ %l1 + 4 ] <== NOT EXECUTED
2039a34: 10 80 00 07 b 2039a50 <rtems_rfs_buffer_handle_request+0x120><== NOT EXECUTED
2039a38: c0 24 40 00 clr [ %l1 ] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Previous(
Chain_Node *the_node
)
{
return the_node->previous;
2039a3c: 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))
2039a40: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
2039a44: 32 bf ff f4 bne,a 2039a14 <rtems_rfs_buffer_handle_request+0xe4><== NOT EXECUTED
2039a48: c8 00 60 3c ld [ %g1 + 0x3c ], %g4 <== NOT EXECUTED
2039a4c: 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,
2039a50: e2 26 60 08 st %l1, [ %i1 + 8 ] <== NOT EXECUTED
&fs->release_count,
block);
if (!rtems_rfs_buffer_handle_has_block (handle) &&
2039a54: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
2039a58: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2039a5c: 32 80 00 1e bne,a 2039ad4 <rtems_rfs_buffer_handle_request+0x1a4><== NOT EXECUTED
2039a60: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
fs->release_modified_count)
2039a64: 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) &&
2039a68: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2039a6c: 22 80 00 1a be,a 2039ad4 <rtems_rfs_buffer_handle_request+0x1a4><== NOT EXECUTED
2039a70: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
fs->release_modified_count)
{
handle->buffer = rtems_rfs_scan_chain (&fs->release_modified,
2039a74: 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;
2039a78: 10 80 00 0d b 2039aac <rtems_rfs_buffer_handle_request+0x17c><== NOT EXECUTED
2039a7c: 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)
2039a80: 80 a1 00 1a cmp %g4, %i2 <== NOT EXECUTED
2039a84: 12 80 00 09 bne 2039aa8 <rtems_rfs_buffer_handle_request+0x178><== NOT EXECUTED
2039a88: 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)--;
2039a8c: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
2039a90: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
2039a94: 7f ff 4f 2c call 200d744 <_Chain_Extract> <== NOT EXECUTED
2039a98: 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;
2039a9c: c0 24 60 04 clr [ %l1 + 4 ] <== NOT EXECUTED
2039aa0: 10 80 00 07 b 2039abc <rtems_rfs_buffer_handle_request+0x18c><== NOT EXECUTED
2039aa4: c0 24 40 00 clr [ %l1 ] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Previous(
Chain_Node *the_node
)
{
return the_node->previous;
2039aa8: 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))
2039aac: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
2039ab0: 32 bf ff f4 bne,a 2039a80 <rtems_rfs_buffer_handle_request+0x150><== NOT EXECUTED
2039ab4: c8 00 60 3c ld [ %g1 + 0x3c ], %g4 <== NOT EXECUTED
2039ab8: 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))
2039abc: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
2039ac0: 02 80 00 04 be 2039ad0 <rtems_rfs_buffer_handle_request+0x1a0><== NOT EXECUTED
2039ac4: e2 26 60 08 st %l1, [ %i1 + 8 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (handle);
2039ac8: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2039acc: 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))
2039ad0: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
2039ad4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2039ad8: 32 80 00 0d bne,a 2039b0c <rtems_rfs_buffer_handle_request+0x1dc><== NOT EXECUTED
2039adc: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
{
rc = rtems_rfs_buffer_io_request (fs, block, read, &handle->buffer);
2039ae0: 94 0e e0 ff and %i3, 0xff, %o2 <== NOT EXECUTED
2039ae4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039ae8: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
2039aec: 40 00 22 9e call 2042564 <rtems_rfs_buffer_bdbuf_request> <== NOT EXECUTED
2039af0: 96 06 60 08 add %i1, 8, %o3 <== NOT EXECUTED
rtems_chain_set_off_chain (rtems_rfs_buffer_link(handle));
2039af4: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
if (rc > 0)
2039af8: 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;
2039afc: c0 20 40 00 clr [ %g1 ] <== NOT EXECUTED
2039b00: 14 80 00 10 bg 2039b40 <rtems_rfs_buffer_handle_request+0x210><== NOT EXECUTED
2039b04: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED
}
/*
* Increase the reference count of the buffer.
*/
rtems_rfs_buffer_refs_up (handle);
2039b08: 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 );
2039b0c: 90 04 20 40 add %l0, 0x40, %o0 <== NOT EXECUTED
2039b10: c4 00 60 38 ld [ %g1 + 0x38 ], %g2 <== NOT EXECUTED
2039b14: 92 10 00 01 mov %g1, %o1 <== NOT EXECUTED
2039b18: 84 00 a0 01 inc %g2 <== NOT EXECUTED
2039b1c: 7f ff 4e fe call 200d714 <_Chain_Append> <== NOT EXECUTED
2039b20: c4 20 60 38 st %g2, [ %g1 + 0x38 ] <== NOT EXECUTED
rtems_chain_append (&fs->buffers, rtems_rfs_buffer_link (handle));
fs->buffers_count++;
2039b24: c4 04 20 4c ld [ %l0 + 0x4c ], %g2 <== NOT EXECUTED
handle->buffer->user = (void*) ((intptr_t) block);
2039b28: 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++;
2039b2c: 84 00 a0 01 inc %g2 <== NOT EXECUTED
2039b30: c4 24 20 4c st %g2, [ %l0 + 0x4c ] <== NOT EXECUTED
handle->buffer->user = (void*) ((intptr_t) block);
handle->bnum = block;
2039b34: 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);
2039b38: f4 20 60 3c st %i2, [ %g1 + 0x3c ] <== NOT EXECUTED
handle->bnum = block;
2039b3c: 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;
}
2039b40: 81 c7 e0 08 ret <== NOT EXECUTED
2039b44: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
020397ac <rtems_rfs_buffer_open>:
return rc;
}
int
rtems_rfs_buffer_open (const char* name, rtems_rfs_file_system* fs)
{
20397ac: 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)
20397b0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20397b4: 92 07 bf b8 add %fp, -72, %o1 <== NOT EXECUTED
20397b8: 7f ff 40 eb call 2009b64 <stat> <== NOT EXECUTED
20397bc: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
20397c0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20397c4: 06 80 00 0f bl 2039800 <rtems_rfs_buffer_open+0x54> <== NOT EXECUTED
20397c8: 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))
20397cc: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
20397d0: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED
20397d4: 03 00 00 18 sethi %hi(0x6000), %g1 <== NOT EXECUTED
20397d8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
20397dc: 12 80 00 09 bne 2039800 <rtems_rfs_buffer_open+0x54> <== NOT EXECUTED
20397e0: 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);
20397e4: d0 1f bf d0 ldd [ %fp + -48 ], %o0 <== NOT EXECUTED
20397e8: 7f ff 35 d5 call 2006f3c <rtems_disk_obtain> <== NOT EXECUTED
20397ec: b0 10 20 00 clr %i0 <== NOT EXECUTED
if (!fs->disk)
20397f0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20397f4: 12 80 00 03 bne 2039800 <rtems_rfs_buffer_open+0x54> <== NOT EXECUTED
20397f8: d0 26 60 0c st %o0, [ %i1 + 0xc ] <== NOT EXECUTED
20397fc: 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;
}
2039800: 81 c7 e0 08 ret <== NOT EXECUTED
2039804: 81 e8 00 00 restore <== NOT EXECUTED
02039730 <rtems_rfs_buffer_setblksize>:
int
rtems_rfs_buffer_setblksize (rtems_rfs_file_system* fs, size_t size)
{
2039730: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
2039734: 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);
2039738: 7f ff ff df call 20396b4 <rtems_rfs_buffers_release> <== NOT EXECUTED
203973c: 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);
2039740: 7f ff ff f0 call 2039700 <rtems_rfs_buffer_sync> <== NOT EXECUTED
2039744: 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);
2039748: d0 06 20 0c ld [ %i0 + 0xc ], %o0 <== NOT EXECUTED
203974c: 13 20 01 10 sethi %hi(0x80044000), %o1 <== NOT EXECUTED
2039750: c2 02 20 28 ld [ %o0 + 0x28 ], %g1 <== NOT EXECUTED
2039754: 92 12 62 04 or %o1, 0x204, %o1 <== NOT EXECUTED
2039758: 9f c0 40 00 call %g1 <== NOT EXECUTED
203975c: 94 07 a0 48 add %fp, 0x48, %o2 <== NOT EXECUTED
if (rc < 0)
2039760: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2039764: 16 80 00 05 bge 2039778 <rtems_rfs_buffer_setblksize+0x48><== NOT EXECUTED
2039768: 01 00 00 00 nop <== NOT EXECUTED
rc = errno;
203976c: 40 00 25 2f call 2042c28 <__errno> <== NOT EXECUTED
2039770: 01 00 00 00 nop <== NOT EXECUTED
2039774: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED
#endif
return rc;
}
2039778: 81 c7 e0 08 ret <== NOT EXECUTED
203977c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02039700 <rtems_rfs_buffer_sync>:
return rc;
}
int
rtems_rfs_buffer_sync (rtems_rfs_file_system* fs)
{
2039700: 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));
2039704: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
2039708: 7f ff 2a 00 call 2003f08 <rtems_bdbuf_syncdev> <== NOT EXECUTED
203970c: d0 18 40 00 ldd [ %g1 ], %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2039710: 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);
2039714: 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)
2039718: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED
203971c: 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);
2039720: 7f ff 35 f5 call 2006ef4 <rtems_disk_release> <== NOT EXECUTED
2039724: 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;
}
2039728: 81 c7 e0 08 ret <== NOT EXECUTED
203972c: 81 e8 00 00 restore <== NOT EXECUTED
020396b4 <rtems_rfs_buffers_release>:
int
rtems_rfs_buffers_release (rtems_rfs_file_system* fs)
{
20396b4: 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,
20396b8: 94 10 20 00 clr %o2 <== NOT EXECUTED
20396bc: 92 06 20 5c add %i0, 0x5c, %o1 <== NOT EXECUTED
20396c0: 7f ff ff e3 call 203964c <rtems_rfs_release_chain> <== NOT EXECUTED
20396c4: 90 06 20 50 add %i0, 0x50, %o0 <== NOT EXECUTED
20396c8: 82 38 00 08 xnor %g0, %o0, %g1 <== NOT EXECUTED
20396cc: 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,
20396d0: 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,
20396d4: 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,
20396d8: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
20396dc: 7f ff ff dc call 203964c <rtems_rfs_release_chain> <== NOT EXECUTED
20396e0: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED
&fs->release_modified_count,
true);
if ((rc > 0) && (rrc == 0))
20396e4: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
20396e8: 12 80 00 04 bne 20396f8 <rtems_rfs_buffers_release+0x44> <== NOT EXECUTED
20396ec: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20396f0: 34 80 00 02 bg,a 20396f8 <rtems_rfs_buffers_release+0x44><== NOT EXECUTED
20396f4: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
rrc = rc;
return rrc;
}
20396f8: 81 c7 e0 08 ret <== NOT EXECUTED
20396fc: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED
0203a2a8 <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)
{
203a2a8: 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);
203a2ac: 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)
{
203a2b0: 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);
203a2b4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203a2b8: a2 07 bf 94 add %fp, -108, %l1 <== NOT EXECUTED
203a2bc: 7f ff fc 81 call 20394c0 <rtems_rfs_block_map_open> <== NOT EXECUTED
203a2c0: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc > 0)
203a2c4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203a2c8: 14 80 00 76 bg 203a4a0 <rtems_rfs_dir_add_entry+0x1f8> <== NOT EXECUTED
203a2cc: 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;
203a2d0: c0 2f bf e4 clrb [ %fp + -28 ] <== NOT EXECUTED
handle->bnum = 0;
203a2d4: c0 27 bf e8 clr [ %fp + -24 ] <== NOT EXECUTED
handle->buffer = NULL;
203a2d8: 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;
203a2dc: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
bpos->boff = 0;
203a2e0: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
bpos->block = 0;
203a2e4: 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)
203a2e8: 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);
203a2ec: ac 07 bf f0 add %fp, -16, %l6 <== NOT EXECUTED
203a2f0: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
read = false;
}
bpos.bno++;
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, read);
203a2f4: 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) <
203a2f8: 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);
203a2fc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a300: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203a304: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED
203a308: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
203a30c: 7f ff f9 4d call 2038840 <rtems_rfs_block_map_find> <== NOT EXECUTED
203a310: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED
if (rc > 0)
203a314: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203a318: 04 80 00 0b ble 203a344 <rtems_rfs_dir_add_entry+0x9c> <== NOT EXECUTED
203a31c: 80 a6 20 06 cmp %i0, 6 <== NOT EXECUTED
{
if (rc != ENXIO)
203a320: 12 80 00 7e bne 203a518 <rtems_rfs_dir_add_entry+0x270> <== NOT EXECUTED
203a324: 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);
203a328: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203a32c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203a330: 7f ff fb 0d call 2038f64 <rtems_rfs_block_map_grow> <== NOT EXECUTED
203a334: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
if (rc > 0)
203a338: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203a33c: 14 80 00 77 bg 203a518 <rtems_rfs_dir_add_entry+0x270> <== NOT EXECUTED
203a340: a6 10 20 00 clr %l3 <== NOT EXECUTED
}
read = false;
}
bpos.bno++;
203a344: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, read);
203a348: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
}
read = false;
}
bpos.bno++;
203a34c: 82 00 60 01 inc %g1 <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, read);
203a350: a6 0c e0 ff and %l3, 0xff, %l3 <== NOT EXECUTED
}
read = false;
}
bpos.bno++;
203a354: c2 27 bf f0 st %g1, [ %fp + -16 ] <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, read);
203a358: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a35c: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
203a360: 7f ff fd 74 call 2039930 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203a364: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
if (rc > 0)
203a368: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203a36c: 14 80 00 6b bg 203a518 <rtems_rfs_dir_add_entry+0x270> <== NOT EXECUTED
203a370: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED
break;
}
entry = rtems_rfs_buffer_data (&buffer);
if (!read)
203a374: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
203a378: 12 80 00 06 bne 203a390 <rtems_rfs_dir_add_entry+0xe8> <== NOT EXECUTED
203a37c: e6 00 60 24 ld [ %g1 + 0x24 ], %l3 <== NOT EXECUTED
memset (entry, 0xff, rtems_rfs_fs_block_size (fs));
203a380: d4 04 20 08 ld [ %l0 + 8 ], %o2 <== NOT EXECUTED
203a384: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
203a388: 40 00 30 07 call 20463a4 <memset> <== NOT EXECUTED
203a38c: 92 10 20 ff mov 0xff, %o1 <== NOT EXECUTED
offset = 0;
while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
203a390: da 04 20 08 ld [ %l0 + 8 ], %o5 <== NOT EXECUTED
203a394: 88 10 20 00 clr %g4 <== NOT EXECUTED
203a398: 10 80 00 5b b 203a504 <rtems_rfs_dir_add_entry+0x25c> <== NOT EXECUTED
203a39c: 94 03 7f f6 add %o5, -10, %o2 <== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
203a3a0: c6 0c e0 08 ldub [ %l3 + 8 ], %g3 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203a3a4: 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);
203a3a8: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
203a3ac: 86 10 c0 01 or %g3, %g1, %g3 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203a3b0: c2 0c e0 01 ldub [ %l3 + 1 ], %g1 <== NOT EXECUTED
203a3b4: d8 0c e0 02 ldub [ %l3 + 2 ], %o4 <== NOT EXECUTED
203a3b8: d6 0c e0 03 ldub [ %l3 + 3 ], %o3 <== NOT EXECUTED
203a3bc: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED
203a3c0: 82 08 60 ff and %g1, 0xff, %g1 <== NOT EXECUTED
203a3c4: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
203a3c8: 98 0b 20 ff and %o4, 0xff, %o4 <== NOT EXECUTED
203a3cc: 96 0a e0 ff and %o3, 0xff, %o3 <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203a3d0: 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);
203a3d4: 96 12 c0 02 or %o3, %g2, %o3 <== NOT EXECUTED
203a3d8: 99 2b 20 08 sll %o4, 8, %o4 <== NOT EXECUTED
203a3dc: 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);
203a3e0: ba 04 e0 08 add %l3, 8, %i5 <== NOT EXECUTED
203a3e4: b0 04 e0 09 add %l3, 9, %i0 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203a3e8: 84 04 e0 01 add %l3, 1, %g2 <== NOT EXECUTED
203a3ec: 82 04 e0 02 add %l3, 2, %g1 <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203a3f0: 12 80 00 2e bne 203a4a8 <rtems_rfs_dir_add_entry+0x200> <== NOT EXECUTED
203a3f4: b2 04 e0 03 add %l3, 3, %i1 <== NOT EXECUTED
{
if ((length + RTEMS_RFS_DIR_ENTRY_SIZE) <
203a3f8: 88 23 40 04 sub %o5, %g4, %g4 <== NOT EXECUTED
203a3fc: 80 a5 00 04 cmp %l4, %g4 <== NOT EXECUTED
203a400: 3a bf ff c0 bcc,a 203a300 <rtems_rfs_dir_add_entry+0x58> <== NOT EXECUTED
203a404: 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);
203a408: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
203a40c: c2 27 bf 8c st %g1, [ %fp + -116 ] <== NOT EXECUTED
203a410: c4 27 bf 88 st %g2, [ %fp + -120 ] <== NOT EXECUTED
203a414: 40 00 20 71 call 20425d8 <rtems_rfs_dir_hash> <== NOT EXECUTED
203a418: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
rtems_rfs_dir_set_entry_hash (entry, hash);
203a41c: 87 32 20 18 srl %o0, 0x18, %g3 <== NOT EXECUTED
203a420: c6 2c e0 04 stb %g3, [ %l3 + 4 ] <== NOT EXECUTED
203a424: 87 32 20 10 srl %o0, 0x10, %g3 <== NOT EXECUTED
203a428: d0 2c e0 07 stb %o0, [ %l3 + 7 ] <== NOT EXECUTED
203a42c: c6 2c e0 05 stb %g3, [ %l3 + 5 ] <== NOT EXECUTED
203a430: 91 32 20 08 srl %o0, 8, %o0 <== NOT EXECUTED
rtems_rfs_dir_set_entry_ino (entry, ino);
203a434: 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);
203a438: d0 2c e0 06 stb %o0, [ %l3 + 6 ] <== NOT EXECUTED
rtems_rfs_dir_set_entry_ino (entry, ino);
203a43c: c6 2c c0 00 stb %g3, [ %l3 ] <== NOT EXECUTED
203a440: c4 07 bf 88 ld [ %fp + -120 ], %g2 <== NOT EXECUTED
203a444: 87 37 20 10 srl %i4, 0x10, %g3 <== NOT EXECUTED
203a448: c6 28 80 00 stb %g3, [ %g2 ] <== NOT EXECUTED
203a44c: c2 07 bf 8c ld [ %fp + -116 ], %g1 <== NOT EXECUTED
203a450: 85 37 20 08 srl %i4, 8, %g2 <== NOT EXECUTED
203a454: c4 28 40 00 stb %g2, [ %g1 ] <== NOT EXECUTED
203a458: f8 2e 40 00 stb %i4, [ %i1 ] <== NOT EXECUTED
rtems_rfs_dir_set_entry_length (entry,
203a45c: 82 06 e0 0a add %i3, 0xa, %g1 <== NOT EXECUTED
203a460: 85 30 60 08 srl %g1, 8, %g2 <== NOT EXECUTED
203a464: c4 2f 40 00 stb %g2, [ %i5 ] <== NOT EXECUTED
203a468: c2 2e 00 00 stb %g1, [ %i0 ] <== NOT EXECUTED
RTEMS_RFS_DIR_ENTRY_SIZE + length);
memcpy (entry + RTEMS_RFS_DIR_ENTRY_SIZE, name, length);
203a46c: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED
203a470: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
203a474: 40 00 2f 39 call 2046158 <memcpy> <== NOT EXECUTED
203a478: 90 04 e0 0a add %l3, 0xa, %o0 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&buffer);
203a47c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &buffer);
203a480: 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);
203a484: c2 2f bf e4 stb %g1, [ %fp + -28 ] <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &buffer);
203a488: 7f ff fd b0 call 2039b48 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203a48c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
203a490: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a494: 92 07 bf 94 add %fp, -108, %o1 <== NOT EXECUTED
203a498: 7f ff fb 99 call 20392fc <rtems_rfs_block_map_close> <== NOT EXECUTED
203a49c: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
203a4a0: 81 c7 e0 08 ret <== NOT EXECUTED
203a4a4: 81 e8 00 00 restore <== NOT EXECUTED
}
break;
}
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
203a4a8: 80 a0 e0 0a cmp %g3, 0xa <== NOT EXECUTED
203a4ac: 04 80 00 0d ble 203a4e0 <rtems_rfs_dir_add_entry+0x238> <== NOT EXECUTED
203a4b0: 88 01 00 03 add %g4, %g3, %g4 <== NOT EXECUTED
203a4b4: 98 92 c0 0c orcc %o3, %o4, %o4 <== NOT EXECUTED
203a4b8: 02 80 00 0b be 203a4e4 <rtems_rfs_dir_add_entry+0x23c> <== NOT EXECUTED
203a4bc: 92 07 bf e4 add %fp, -28, %o1 <== NOT EXECUTED
203a4c0: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED
203a4c4: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED
203a4c8: 1a 80 00 07 bcc 203a4e4 <rtems_rfs_dir_add_entry+0x23c> <== NOT EXECUTED
203a4cc: a6 04 c0 03 add %l3, %g3, %l3 <== NOT EXECUTED
203a4d0: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
203a4d4: 80 a3 00 01 cmp %o4, %g1 <== NOT EXECUTED
203a4d8: 08 80 00 0c bleu 203a508 <rtems_rfs_dir_add_entry+0x260> <== NOT EXECUTED
203a4dc: 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);
203a4e0: 92 07 bf e4 add %fp, -28, %o1 <== NOT EXECUTED
203a4e4: 7f ff fd 99 call 2039b48 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203a4e8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
203a4ec: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a4f0: 92 07 bf 94 add %fp, -108, %o1 <== NOT EXECUTED
203a4f4: 7f ff fb 82 call 20392fc <rtems_rfs_block_map_close> <== NOT EXECUTED
203a4f8: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
return EIO;
203a4fc: 81 c7 e0 08 ret <== NOT EXECUTED
203a500: 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))
203a504: 80 a1 00 0a cmp %g4, %o2 <== NOT EXECUTED
203a508: 1a bf ff 7e bcc 203a300 <rtems_rfs_dir_add_entry+0x58> <== NOT EXECUTED
203a50c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
203a510: 10 bf ff a4 b 203a3a0 <rtems_rfs_dir_add_entry+0xf8> <== NOT EXECUTED
203a514: c2 0c e0 09 ldub [ %l3 + 9 ], %g1 <== NOT EXECUTED
entry += elength;
offset += elength;
}
}
rtems_rfs_buffer_handle_close (fs, &buffer);
203a518: 92 07 bf e4 add %fp, -28, %o1 <== NOT EXECUTED
203a51c: 7f ff fd 8b call 2039b48 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203a520: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
203a524: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a528: 7f ff fb 75 call 20392fc <rtems_rfs_block_map_close> <== NOT EXECUTED
203a52c: 92 07 bf 94 add %fp, -108, %o1 <== NOT EXECUTED
return rc;
}
203a530: 81 c7 e0 08 ret <== NOT EXECUTED
203a534: 81 e8 00 00 restore <== NOT EXECUTED
0203a008 <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)
{
203a008: 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);
203a00c: 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)
{
203a010: 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);
203a014: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203a018: a2 07 bf a0 add %fp, -96, %l1 <== NOT EXECUTED
203a01c: 7f ff fd 29 call 20394c0 <rtems_rfs_block_map_open> <== NOT EXECUTED
203a020: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc > 0)
203a024: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203a028: 14 80 00 7f bg 203a224 <rtems_rfs_dir_del_entry+0x21c> <== NOT EXECUTED
203a02c: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
return rc;
rc = rtems_rfs_block_map_seek (fs, &map, offset, &block);
203a030: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a034: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203a038: 94 10 20 00 clr %o2 <== NOT EXECUTED
203a03c: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
203a040: 7f ff fa 67 call 20389dc <rtems_rfs_block_map_seek> <== NOT EXECUTED
203a044: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED
if (rc > 0)
203a048: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203a04c: 04 80 00 06 ble 203a064 <rtems_rfs_dir_del_entry+0x5c> <== NOT EXECUTED
203a050: 80 a6 20 06 cmp %i0, 6 <== NOT EXECUTED
{
if (rc == ENXIO)
203a054: 22 80 00 71 be,a 203a218 <rtems_rfs_dir_del_entry+0x210> <== NOT EXECUTED
203a058: 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);
203a05c: 10 80 00 70 b 203a21c <rtems_rfs_dir_del_entry+0x214> <== NOT EXECUTED
203a060: 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)
203a064: 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)
203a068: 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;
203a06c: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
203a070: a6 14 e3 ff or %l3, 0x3ff, %l3 <== NOT EXECUTED
handle->bnum = 0;
203a074: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
203a078: 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)
203a07c: 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;
203a080: 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);
203a084: 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)
203a088: 10 80 00 7d b 203a27c <rtems_rfs_dir_del_entry+0x274> <== NOT EXECUTED
203a08c: aa 10 00 13 mov %l3, %l5 <== NOT EXECUTED
{
uint8_t* entry;
int eoffset;
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
203a090: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a094: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
203a098: 7f ff fe 26 call 2039930 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203a09c: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
203a0a0: 84 92 20 00 orcc %o0, 0, %g2 <== NOT EXECUTED
203a0a4: 04 80 00 04 ble 203a0b4 <rtems_rfs_dir_del_entry+0xac> <== NOT EXECUTED
203a0a8: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED
203a0ac: 10 80 00 77 b 203a288 <rtems_rfs_dir_del_entry+0x280> <== NOT EXECUTED
203a0b0: 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)
203a0b4: 12 80 00 08 bne 203a0d4 <rtems_rfs_dir_del_entry+0xcc> <== NOT EXECUTED
203a0b8: b8 10 20 00 clr %i4 <== NOT EXECUTED
eoffset = 0;
else
eoffset = offset % rtems_rfs_fs_block_size (fs);
203a0bc: d2 04 20 08 ld [ %l0 + 8 ], %o1 <== NOT EXECUTED
203a0c0: c4 27 bf 9c st %g2, [ %fp + -100 ] <== NOT EXECUTED
203a0c4: 40 00 84 b2 call 205b38c <.urem> <== NOT EXECUTED
203a0c8: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
203a0cc: c4 07 bf 9c ld [ %fp + -100 ], %g2 <== NOT EXECUTED
203a0d0: b8 10 00 08 mov %o0, %i4 <== NOT EXECUTED
entry = rtems_rfs_buffer_data (&buffer) + eoffset;
203a0d4: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
while (eoffset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
203a0d8: 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;
203a0dc: ee 00 60 24 ld [ %g1 + 0x24 ], %l7 <== NOT EXECUTED
while (eoffset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
203a0e0: 98 00 ff f6 add %g3, -10, %o4 <== NOT EXECUTED
203a0e4: 10 80 00 55 b 203a238 <rtems_rfs_dir_del_entry+0x230> <== NOT EXECUTED
203a0e8: ae 05 c0 1c add %l7, %i4, %l7 <== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
203a0ec: fa 0d e0 08 ldub [ %l7 + 8 ], %i5 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203a0f0: 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);
203a0f4: bb 2f 60 08 sll %i5, 8, %i5 <== NOT EXECUTED
203a0f8: ba 17 40 01 or %i5, %g1, %i5 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203a0fc: c2 0d e0 01 ldub [ %l7 + 1 ], %g1 <== NOT EXECUTED
203a100: da 0d e0 02 ldub [ %l7 + 2 ], %o5 <== NOT EXECUTED
203a104: c8 0d e0 03 ldub [ %l7 + 3 ], %g4 <== NOT EXECUTED
203a108: 82 08 60 ff and %g1, 0xff, %g1 <== NOT EXECUTED
203a10c: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
203a110: 97 2a e0 18 sll %o3, 0x18, %o3 <== NOT EXECUTED
203a114: 9a 0b 60 ff and %o5, 0xff, %o5 <== NOT EXECUTED
203a118: 88 09 20 ff and %g4, 0xff, %g4 <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203a11c: 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);
203a120: 88 11 00 0b or %g4, %o3, %g4 <== NOT EXECUTED
203a124: 9b 2b 60 08 sll %o5, 8, %o5 <== NOT EXECUTED
203a128: 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);
203a12c: b2 05 e0 09 add %l7, 9, %i1 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203a130: 02 80 00 45 be 203a244 <rtems_rfs_dir_del_entry+0x23c> <== NOT EXECUTED
203a134: 82 05 e0 08 add %l7, 8, %g1 <== NOT EXECUTED
break;
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
203a138: 80 a7 60 0a cmp %i5, 0xa <== NOT EXECUTED
203a13c: 04 80 00 4e ble 203a274 <rtems_rfs_dir_del_entry+0x26c> <== NOT EXECUTED
203a140: 88 91 00 0d orcc %g4, %o5, %g4 <== NOT EXECUTED
203a144: 22 80 00 4d be,a 203a278 <rtems_rfs_dir_del_entry+0x270> <== NOT EXECUTED
203a148: 84 10 20 05 mov 5, %g2 <== NOT EXECUTED
203a14c: da 04 20 18 ld [ %l0 + 0x18 ], %o5 <== NOT EXECUTED
203a150: 80 a7 40 0d cmp %i5, %o5 <== NOT EXECUTED
203a154: 3a 80 00 49 bcc,a 203a278 <rtems_rfs_dir_del_entry+0x270><== NOT EXECUTED
203a158: 84 10 20 05 mov 5, %g2 <== NOT EXECUTED
203a15c: da 04 20 10 ld [ %l0 + 0x10 ], %o5 <== NOT EXECUTED
203a160: 80 a1 00 0d cmp %g4, %o5 <== NOT EXECUTED
203a164: 18 80 00 44 bgu 203a274 <rtems_rfs_dir_del_entry+0x26c> <== NOT EXECUTED
203a168: 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))
203a16c: 12 80 00 30 bne 203a22c <rtems_rfs_dir_del_entry+0x224> <== NOT EXECUTED
203a170: 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);
203a174: c2 27 bf 9c st %g1, [ %fp + -100 ] <== NOT EXECUTED
203a178: 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);
203a17c: a2 07 00 1d add %i4, %i5, %l1 <== NOT EXECUTED
memmove (entry, entry + elength, remaining);
203a180: 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);
203a184: a2 20 c0 11 sub %g3, %l1, %l1 <== NOT EXECUTED
memmove (entry, entry + elength, remaining);
203a188: 40 00 30 33 call 2046254 <memmove> <== NOT EXECUTED
203a18c: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
memset (entry + remaining, 0xff, elength);
203a190: 90 05 c0 11 add %l7, %l1, %o0 <== NOT EXECUTED
203a194: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
203a198: 40 00 30 83 call 20463a4 <memset> <== NOT EXECUTED
203a19c: 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);
203a1a0: c2 07 bf 9c ld [ %fp + -100 ], %g1 <== NOT EXECUTED
203a1a4: c4 0e 40 00 ldub [ %i1 ], %g2 <== NOT EXECUTED
203a1a8: c2 08 40 00 ldub [ %g1 ], %g1 <== NOT EXECUTED
203a1ac: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
203a1b0: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
203a1b4: 80 a0 40 15 cmp %g1, %l5 <== NOT EXECUTED
203a1b8: 12 80 00 13 bne 203a204 <rtems_rfs_dir_del_entry+0x1fc> <== NOT EXECUTED
203a1bc: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED
203a1c0: 12 80 00 11 bne 203a204 <rtems_rfs_dir_del_entry+0x1fc> <== NOT EXECUTED
203a1c4: 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) &&
203a1c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203a1cc: 12 80 00 06 bne 203a1e4 <rtems_rfs_dir_del_entry+0x1dc> <== NOT EXECUTED
203a1d0: c4 07 bf a8 ld [ %fp + -88 ], %g2 <== NOT EXECUTED
203a1d4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203a1d8: 02 80 00 08 be 203a1f8 <rtems_rfs_dir_del_entry+0x1f0> <== NOT EXECUTED
203a1dc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a1e0: c4 07 bf a8 ld [ %fp + -88 ], %g2 <== NOT EXECUTED
203a1e4: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
203a1e8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203a1ec: 12 80 00 07 bne 203a208 <rtems_rfs_dir_del_entry+0x200> <== NOT EXECUTED
203a1f0: 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);
203a1f4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a1f8: 92 07 bf a0 add %fp, -96, %o1 <== NOT EXECUTED
203a1fc: 7f ff fa 48 call 2038b1c <rtems_rfs_block_map_shrink> <== NOT EXECUTED
203a200: 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);
203a204: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &buffer);
203a208: 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);
203a20c: c2 2f bf f0 stb %g1, [ %fp + -16 ] <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &buffer);
203a210: 7f ff fe 4e call 2039b48 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203a214: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
203a218: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a21c: 7f ff fc 38 call 20392fc <rtems_rfs_block_map_close> <== NOT EXECUTED
203a220: 92 07 bf a0 add %fp, -96, %o1 <== NOT EXECUTED
return 0;
203a224: 81 c7 e0 08 ret <== NOT EXECUTED
203a228: 81 e8 00 00 restore <== NOT EXECUTED
}
if (!search)
203a22c: 02 80 00 12 be 203a274 <rtems_rfs_dir_del_entry+0x26c> <== NOT EXECUTED
203a230: b8 07 00 1d add %i4, %i5, %i4 <== NOT EXECUTED
{
rc = EIO;
break;
}
entry += elength;
203a234: 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))
203a238: 80 a7 00 0c cmp %i4, %o4 <== NOT EXECUTED
203a23c: 2a bf ff ac bcs,a 203a0ec <rtems_rfs_dir_del_entry+0xe4> <== NOT EXECUTED
203a240: c2 0d e0 09 ldub [ %l7 + 9 ], %g1 <== NOT EXECUTED
entry += elength;
eoffset += elength;
}
if (rc == 0)
203a244: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203a248: 12 80 00 0d bne 203a27c <rtems_rfs_dir_del_entry+0x274> <== NOT EXECUTED
203a24c: b0 10 00 02 mov %g2, %i0 <== NOT EXECUTED
{
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
203a250: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a254: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203a258: 7f ff f9 d4 call 20389a8 <rtems_rfs_block_map_next_block> <== NOT EXECUTED
203a25c: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
if (rc == ENXIO)
203a260: 80 a2 20 06 cmp %o0, 6 <== NOT EXECUTED
203a264: 12 80 00 06 bne 203a27c <rtems_rfs_dir_del_entry+0x274> <== NOT EXECUTED
203a268: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
203a26c: 10 80 00 07 b 203a288 <rtems_rfs_dir_del_entry+0x280> <== NOT EXECUTED
203a270: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
203a274: 84 10 20 05 mov 5, %g2 <== NOT EXECUTED
203a278: 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)
203a27c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
203a280: 02 bf ff 84 be 203a090 <rtems_rfs_dir_del_entry+0x88> <== NOT EXECUTED
203a284: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
if (rc == ENXIO)
rc = ENOENT;
}
}
rtems_rfs_buffer_handle_close (fs, &buffer);
203a288: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
203a28c: 7f ff fe 2f call 2039b48 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203a290: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
203a294: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a298: 7f ff fc 19 call 20392fc <rtems_rfs_block_map_close> <== NOT EXECUTED
203a29c: 92 07 bf a0 add %fp, -96, %o1 <== NOT EXECUTED
return rc;
}
203a2a0: 81 c7 e0 08 ret <== NOT EXECUTED
203a2a4: 81 e8 00 00 restore <== NOT EXECUTED
02039b70 <rtems_rfs_dir_empty>:
}
int
rtems_rfs_dir_empty (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* dir)
{
2039b70: 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);
2039b74: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
}
int
rtems_rfs_dir_empty (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* dir)
{
2039b78: 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);
2039b7c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2039b80: a2 07 bf a0 add %fp, -96, %l1 <== NOT EXECUTED
2039b84: 7f ff fe 4f call 20394c0 <rtems_rfs_block_map_open> <== NOT EXECUTED
2039b88: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc > 0)
2039b8c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2039b90: 14 80 00 0e bg 2039bc8 <rtems_rfs_dir_empty+0x58> <== NOT EXECUTED
2039b94: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
return rc;
rc = rtems_rfs_block_map_seek (fs, &map, 0, &block);
2039b98: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039b9c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2039ba0: 94 10 20 00 clr %o2 <== NOT EXECUTED
2039ba4: 96 10 20 00 clr %o3 <== NOT EXECUTED
2039ba8: 7f ff fb 8d call 20389dc <rtems_rfs_block_map_seek> <== NOT EXECUTED
2039bac: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED
if (rc > 0)
2039bb0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2039bb4: 04 80 00 07 ble 2039bd0 <rtems_rfs_dir_empty+0x60> <== NOT EXECUTED
2039bb8: 29 00 00 3f sethi %hi(0xfc00), %l4 <== NOT EXECUTED
{
rtems_rfs_block_map_close (fs, &map);
2039bbc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039bc0: 7f ff fd cf call 20392fc <rtems_rfs_block_map_close> <== NOT EXECUTED
2039bc4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
2039bc8: 81 c7 e0 08 ret <== NOT EXECUTED
2039bcc: 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;
2039bd0: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
2039bd4: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
2039bd8: 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)
2039bdc: 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);
2039be0: a6 07 bf f0 add %fp, -16, %l3 <== NOT EXECUTED
2039be4: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
2039be8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039bec: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2039bf0: 7f ff ff 50 call 2039930 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
2039bf4: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
2039bf8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2039bfc: 14 80 00 46 bg 2039d14 <rtems_rfs_dir_empty+0x1a4> <== NOT EXECUTED
2039c00: 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))
2039c04: d8 04 20 08 ld [ %l0 + 8 ], %o4 <== NOT EXECUTED
2039c08: 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);
2039c0c: 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))
2039c10: 10 80 00 2f b 2039ccc <rtems_rfs_dir_empty+0x15c> <== NOT EXECUTED
2039c14: 86 10 20 00 clr %g3 <== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
2039c18: c4 08 60 08 ldub [ %g1 + 8 ], %g2 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
2039c1c: 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);
2039c20: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
2039c24: 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);
2039c28: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
2039c2c: d4 08 60 03 ldub [ %g1 + 3 ], %o2 <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
2039c30: 80 a0 80 14 cmp %g2, %l4 <== NOT EXECUTED
2039c34: 02 80 00 29 be 2039cd8 <rtems_rfs_dir_empty+0x168> <== NOT EXECUTED
2039c38: c8 08 60 02 ldub [ %g1 + 2 ], %g4 <== NOT EXECUTED
break;
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
2039c3c: 80 a0 a0 0a cmp %g2, 0xa <== NOT EXECUTED
2039c40: 04 80 00 26 ble 2039cd8 <rtems_rfs_dir_empty+0x168> <== NOT EXECUTED
2039c44: 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);
2039c48: 9b 2b 60 18 sll %o5, 0x18, %o5 <== NOT EXECUTED
2039c4c: 96 0a e0 ff and %o3, 0xff, %o3 <== NOT EXECUTED
2039c50: 9a 12 80 0d or %o2, %o5, %o5 <== NOT EXECUTED
2039c54: 88 09 20 ff and %g4, 0xff, %g4 <== NOT EXECUTED
2039c58: 97 2a e0 10 sll %o3, 0x10, %o3 <== NOT EXECUTED
2039c5c: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2039c60: 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))
2039c64: 88 93 40 04 orcc %o5, %g4, %g4 <== NOT EXECUTED
2039c68: 02 80 00 1d be 2039cdc <rtems_rfs_dir_empty+0x16c> <== NOT EXECUTED
2039c6c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039c70: da 04 20 18 ld [ %l0 + 0x18 ], %o5 <== NOT EXECUTED
2039c74: 80 a0 80 0d cmp %g2, %o5 <== NOT EXECUTED
2039c78: 1a 80 00 1a bcc 2039ce0 <rtems_rfs_dir_empty+0x170> <== NOT EXECUTED
2039c7c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2039c80: d6 04 20 10 ld [ %l0 + 0x10 ], %o3 <== NOT EXECUTED
2039c84: 80 a1 00 0b cmp %g4, %o3 <== NOT EXECUTED
2039c88: 18 80 00 16 bgu 2039ce0 <rtems_rfs_dir_empty+0x170> <== NOT EXECUTED
2039c8c: 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)) ||
2039c90: 12 80 00 04 bne 2039ca0 <rtems_rfs_dir_empty+0x130> <== NOT EXECUTED
2039c94: 80 a0 a0 0c cmp %g2, 0xc <== NOT EXECUTED
(entry[RTEMS_RFS_DIR_ENTRY_SIZE] != '.')) &&
2039c98: 10 80 00 09 b 2039cbc <rtems_rfs_dir_empty+0x14c> <== NOT EXECUTED
2039c9c: 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)) ||
2039ca0: 12 80 00 1b bne 2039d0c <rtems_rfs_dir_empty+0x19c> <== NOT EXECUTED
2039ca4: 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] != '.') ||
2039ca8: c8 08 60 0a ldub [ %g1 + 0xa ], %g4 <== NOT EXECUTED
2039cac: 80 a1 20 2e cmp %g4, 0x2e <== NOT EXECUTED
2039cb0: 12 80 00 17 bne 2039d0c <rtems_rfs_dir_empty+0x19c> <== NOT EXECUTED
2039cb4: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
(entry[RTEMS_RFS_DIR_ENTRY_SIZE + 1] != '.')))
2039cb8: c8 08 60 0b ldub [ %g1 + 0xb ], %g4 <== NOT EXECUTED
2039cbc: 80 a1 20 2e cmp %g4, 0x2e <== NOT EXECUTED
2039cc0: 12 80 00 12 bne 2039d08 <rtems_rfs_dir_empty+0x198> <== NOT EXECUTED
2039cc4: 86 00 c0 02 add %g3, %g2, %g3 <== NOT EXECUTED
{
empty = false;
break;
}
entry += elength;
2039cc8: 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))
2039ccc: 80 a0 c0 0c cmp %g3, %o4 <== NOT EXECUTED
2039cd0: 2a bf ff d2 bcs,a 2039c18 <rtems_rfs_dir_empty+0xa8> <== NOT EXECUTED
2039cd4: c8 08 60 09 ldub [ %g1 + 9 ], %g4 <== NOT EXECUTED
offset += elength;
}
if (empty)
{
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
2039cd8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039cdc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2039ce0: 7f ff fb 32 call 20389a8 <rtems_rfs_block_map_next_block> <== NOT EXECUTED
2039ce4: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
if (rc > 0)
2039ce8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2039cec: 04 bf ff bf ble 2039be8 <rtems_rfs_dir_empty+0x78> <== NOT EXECUTED
2039cf0: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
{
if (rc == ENXIO)
2039cf4: 82 1e 20 06 xor %i0, 6, %g1 <== NOT EXECUTED
2039cf8: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
2039cfc: 82 60 20 00 subx %g0, 0, %g1 <== NOT EXECUTED
2039d00: 10 80 00 05 b 2039d14 <rtems_rfs_dir_empty+0x1a4> <== NOT EXECUTED
2039d04: b0 0e 00 01 and %i0, %g1, %i0 <== NOT EXECUTED
break;
}
}
}
if ((rc == 0) && !empty)
2039d08: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
2039d0c: 22 80 00 02 be,a 2039d14 <rtems_rfs_dir_empty+0x1a4> <== NOT EXECUTED
2039d10: b0 10 20 5a mov 0x5a, %i0 <== NOT EXECUTED
rc = ENOTEMPTY;
rtems_rfs_buffer_handle_close (fs, &buffer);
2039d14: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
2039d18: 7f ff ff 8c call 2039b48 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
2039d1c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
2039d20: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039d24: 7f ff fd 76 call 20392fc <rtems_rfs_block_map_close> <== NOT EXECUTED
2039d28: 92 07 bf a0 add %fp, -96, %o1 <== NOT EXECUTED
return rc;
}
2039d2c: 81 c7 e0 08 ret <== NOT EXECUTED
2039d30: 81 e8 00 00 restore <== NOT EXECUTED
020425d8 <rtems_rfs_dir_hash>:
*/
#define initval (20010928)
uint32_t
rtems_rfs_dir_hash (const void *key, size_t length)
{
20425d8: 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;
20425dc: 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;
20425e0: 31 37 f7 c5 sethi %hi(0xdfdf1400), %i0 <== NOT EXECUTED
20425e4: b0 16 22 9f or %i0, 0x29f, %i0 ! dfdf169f <RAM_END+0xdd9f169f><== NOT EXECUTED
20425e8: 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;
20425ec: 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)
20425f0: 10 80 00 48 b 2042710 <rtems_rfs_dir_hash+0x138> <== NOT EXECUTED
20425f4: 86 10 00 18 mov %i0, %g3 <== NOT EXECUTED
{
a += k[0];
20425f8: e0 08 60 02 ldub [ %g1 + 2 ], %l0 <== NOT EXECUTED
a += ((uint32_t)k[1])<<8;
20425fc: e4 08 40 00 ldub [ %g1 ], %l2 <== NOT EXECUTED
a += ((uint32_t)k[2])<<16;
2042600: 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];
2042604: d6 08 60 09 ldub [ %g1 + 9 ], %o3 <== NOT EXECUTED
c += ((uint32_t)k[9])<<8;
c += ((uint32_t)k[10])<<16;
2042608: 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;
204260c: 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];
2042610: de 08 60 05 ldub [ %g1 + 5 ], %o7 <== NOT EXECUTED
2042614: d4 08 60 06 ldub [ %g1 + 6 ], %o2 <== NOT EXECUTED
b += ((uint32_t)k[5])<<8;
2042618: d0 08 60 04 ldub [ %g1 + 4 ], %o0 <== NOT EXECUTED
b += ((uint32_t)k[6])<<16;
204261c: d2 08 60 07 ldub [ %g1 + 7 ], %o1 <== NOT EXECUTED
b += ((uint32_t)k[7])<<24;
c += k[8];
2042620: c8 08 60 0a ldub [ %g1 + 0xa ], %g4 <== NOT EXECUTED
2042624: 97 2a e0 08 sll %o3, 8, %o3 <== NOT EXECUTED
c += ((uint32_t)k[9])<<8;
c += ((uint32_t)k[10])<<16;
2042628: 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];
204262c: a7 2c e0 08 sll %l3, 8, %l3 <== NOT EXECUTED
2042630: a1 2c 20 10 sll %l0, 0x10, %l0 <== NOT EXECUTED
a += ((uint32_t)k[1])<<8;
a += ((uint32_t)k[2])<<16;
2042634: 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];
2042638: a0 04 c0 10 add %l3, %l0, %l0 <== NOT EXECUTED
a += ((uint32_t)k[1])<<8;
204263c: a0 04 00 12 add %l0, %l2, %l0 <== NOT EXECUTED
a += ((uint32_t)k[2])<<16;
2042640: a0 04 00 11 add %l0, %l1, %l0 <== NOT EXECUTED
a += ((uint32_t)k[3])<<24;
2042644: 86 04 00 03 add %l0, %g3, %g3 <== NOT EXECUTED
b += k[4];
2042648: 9f 2b e0 08 sll %o7, 8, %o7 <== NOT EXECUTED
204264c: 95 2a a0 10 sll %o2, 0x10, %o2 <== NOT EXECUTED
b += ((uint32_t)k[5])<<8;
b += ((uint32_t)k[6])<<16;
2042650: 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];
2042654: 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];
2042658: 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;
204265c: 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];
2042660: 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;
2042664: 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;
2042668: 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;
204266c: 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;
2042670: 88 01 00 0d add %g4, %o5, %g4 <== NOT EXECUTED
c += ((uint32_t)k[11])<<24;
2042674: 88 01 00 18 add %g4, %i0, %g4 <== NOT EXECUTED
mix(a,b,c);
2042678: 96 01 00 02 add %g4, %g2, %o3 <== NOT EXECUTED
204267c: b0 20 c0 04 sub %g3, %g4, %i0 <== NOT EXECUTED
2042680: 87 31 20 1c srl %g4, 0x1c, %g3 <== NOT EXECUTED
2042684: 89 29 20 04 sll %g4, 4, %g4 <== NOT EXECUTED
2042688: 88 10 c0 04 or %g3, %g4, %g4 <== NOT EXECUTED
204268c: b0 1e 00 04 xor %i0, %g4, %i0 <== NOT EXECUTED
2042690: 98 06 00 0b add %i0, %o3, %o4 <== NOT EXECUTED
2042694: 84 20 80 18 sub %g2, %i0, %g2 <== NOT EXECUTED
2042698: 9b 36 20 1a srl %i0, 0x1a, %o5 <== NOT EXECUTED
204269c: b1 2e 20 06 sll %i0, 6, %i0 <== NOT EXECUTED
20426a0: 9a 13 40 18 or %o5, %i0, %o5 <== NOT EXECUTED
20426a4: 9a 1b 40 02 xor %o5, %g2, %o5 <== NOT EXECUTED
20426a8: 88 03 40 0c add %o5, %o4, %g4 <== NOT EXECUTED
20426ac: 96 22 c0 0d sub %o3, %o5, %o3 <== NOT EXECUTED
20426b0: 87 33 60 18 srl %o5, 0x18, %g3 <== NOT EXECUTED
20426b4: 9b 2b 60 08 sll %o5, 8, %o5 <== NOT EXECUTED
20426b8: 86 10 c0 0d or %g3, %o5, %g3 <== NOT EXECUTED
20426bc: 86 18 c0 0b xor %g3, %o3, %g3 <== NOT EXECUTED
20426c0: b0 00 c0 04 add %g3, %g4, %i0 <== NOT EXECUTED
20426c4: 98 23 00 03 sub %o4, %g3, %o4 <== NOT EXECUTED
20426c8: 85 30 e0 10 srl %g3, 0x10, %g2 <== NOT EXECUTED
20426cc: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
20426d0: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
20426d4: 84 18 80 0c xor %g2, %o4, %g2 <== NOT EXECUTED
20426d8: 86 00 80 18 add %g2, %i0, %g3 <== NOT EXECUTED
20426dc: 9b 30 a0 0d srl %g2, 0xd, %o5 <== NOT EXECUTED
20426e0: 88 21 00 02 sub %g4, %g2, %g4 <== NOT EXECUTED
20426e4: 85 28 a0 13 sll %g2, 0x13, %g2 <== NOT EXECUTED
20426e8: 84 13 40 02 or %o5, %g2, %g2 <== NOT EXECUTED
length -= 12;
20426ec: 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);
20426f0: 88 18 80 04 xor %g2, %g4, %g4 <== NOT EXECUTED
length -= 12;
k += 12;
20426f4: 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);
20426f8: b0 26 00 04 sub %i0, %g4, %i0 <== NOT EXECUTED
20426fc: 9b 31 20 1c srl %g4, 0x1c, %o5 <== NOT EXECUTED
2042700: 84 01 00 03 add %g4, %g3, %g2 <== NOT EXECUTED
2042704: 89 29 20 04 sll %g4, 4, %g4 <== NOT EXECUTED
2042708: 88 13 40 04 or %o5, %g4, %g4 <== NOT EXECUTED
204270c: 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)
2042710: 80 a6 60 0c cmp %i1, 0xc <== NOT EXECUTED
2042714: 38 bf ff b9 bgu,a 20425f8 <rtems_rfs_dir_hash+0x20> <== NOT EXECUTED
2042718: 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 */
204271c: b2 06 7f ff add %i1, -1, %i1 <== NOT EXECUTED
2042720: 80 a6 60 0b cmp %i1, 0xb <== NOT EXECUTED
2042724: 18 80 00 4b bgu 2042850 <rtems_rfs_dir_hash+0x278> <== NOT EXECUTED
2042728: b3 2e 60 02 sll %i1, 2, %i1 <== NOT EXECUTED
204272c: 09 00 81 09 sethi %hi(0x2042400), %g4 <== NOT EXECUTED
2042730: 88 11 21 a8 or %g4, 0x1a8, %g4 ! 20425a8 <rtems_rfs_buffer_bdbuf_request+0x44><== NOT EXECUTED
2042734: c8 01 00 19 ld [ %g4 + %i1 ], %g4 <== NOT EXECUTED
2042738: 81 c1 00 00 jmp %g4 <== NOT EXECUTED
204273c: 01 00 00 00 nop <== NOT EXECUTED
{
case 12: c+=((uint32_t)k[11])<<24;
2042740: c8 08 60 0b ldub [ %g1 + 0xb ], %g4 <== NOT EXECUTED
2042744: 89 29 20 18 sll %g4, 0x18, %g4 <== NOT EXECUTED
2042748: b0 01 00 18 add %g4, %i0, %i0 <== NOT EXECUTED
case 11: c+=((uint32_t)k[10])<<16;
204274c: c8 08 60 0a ldub [ %g1 + 0xa ], %g4 <== NOT EXECUTED
2042750: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
2042754: b0 06 00 04 add %i0, %g4, %i0 <== NOT EXECUTED
case 10: c+=((uint32_t)k[9])<<8;
2042758: c8 08 60 09 ldub [ %g1 + 9 ], %g4 <== NOT EXECUTED
204275c: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2042760: b0 06 00 04 add %i0, %g4, %i0 <== NOT EXECUTED
case 9 : c+=k[8];
2042764: c8 08 60 08 ldub [ %g1 + 8 ], %g4 <== NOT EXECUTED
2042768: b0 06 00 04 add %i0, %g4, %i0 <== NOT EXECUTED
case 8 : b+=((uint32_t)k[7])<<24;
204276c: c8 08 60 07 ldub [ %g1 + 7 ], %g4 <== NOT EXECUTED
2042770: 89 29 20 18 sll %g4, 0x18, %g4 <== NOT EXECUTED
2042774: 84 01 00 02 add %g4, %g2, %g2 <== NOT EXECUTED
case 7 : b+=((uint32_t)k[6])<<16;
2042778: c8 08 60 06 ldub [ %g1 + 6 ], %g4 <== NOT EXECUTED
204277c: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
2042780: 84 00 80 04 add %g2, %g4, %g2 <== NOT EXECUTED
case 6 : b+=((uint32_t)k[5])<<8;
2042784: c8 08 60 05 ldub [ %g1 + 5 ], %g4 <== NOT EXECUTED
2042788: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
204278c: 84 00 80 04 add %g2, %g4, %g2 <== NOT EXECUTED
case 5 : b+=k[4];
2042790: c8 08 60 04 ldub [ %g1 + 4 ], %g4 <== NOT EXECUTED
2042794: 84 00 80 04 add %g2, %g4, %g2 <== NOT EXECUTED
case 4 : a+=((uint32_t)k[3])<<24;
2042798: c8 08 60 03 ldub [ %g1 + 3 ], %g4 <== NOT EXECUTED
204279c: 89 29 20 18 sll %g4, 0x18, %g4 <== NOT EXECUTED
20427a0: 86 01 00 03 add %g4, %g3, %g3 <== NOT EXECUTED
case 3 : a+=((uint32_t)k[2])<<16;
20427a4: c8 08 60 02 ldub [ %g1 + 2 ], %g4 <== NOT EXECUTED
20427a8: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
20427ac: 86 00 c0 04 add %g3, %g4, %g3 <== NOT EXECUTED
case 2 : a+=((uint32_t)k[1])<<8;
20427b0: c8 08 60 01 ldub [ %g1 + 1 ], %g4 <== NOT EXECUTED
20427b4: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
20427b8: 86 00 c0 04 add %g3, %g4, %g3 <== NOT EXECUTED
case 1 : a+=k[0];
20427bc: c2 08 40 00 ldub [ %g1 ], %g1 <== NOT EXECUTED
break;
case 0 : return c;
}
}
final(a,b,c);
20427c0: 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];
20427c4: 86 00 c0 01 add %g3, %g1, %g3 <== NOT EXECUTED
break;
case 0 : return c;
}
}
final(a,b,c);
20427c8: 83 28 a0 0e sll %g2, 0xe, %g1 <== NOT EXECUTED
20427cc: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
20427d0: b0 1e 00 02 xor %i0, %g2, %i0 <== NOT EXECUTED
20427d4: b0 26 00 01 sub %i0, %g1, %i0 <== NOT EXECUTED
20427d8: 89 36 20 15 srl %i0, 0x15, %g4 <== NOT EXECUTED
20427dc: 83 2e 20 0b sll %i0, 0xb, %g1 <== NOT EXECUTED
20427e0: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
20427e4: 86 1e 00 03 xor %i0, %g3, %g3 <== NOT EXECUTED
20427e8: 86 20 c0 01 sub %g3, %g1, %g3 <== NOT EXECUTED
20427ec: 89 30 e0 07 srl %g3, 7, %g4 <== NOT EXECUTED
20427f0: 83 28 e0 19 sll %g3, 0x19, %g1 <== NOT EXECUTED
20427f4: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
20427f8: 84 18 c0 02 xor %g3, %g2, %g2 <== NOT EXECUTED
20427fc: 84 20 80 01 sub %g2, %g1, %g2 <== NOT EXECUTED
2042800: 89 30 a0 10 srl %g2, 0x10, %g4 <== NOT EXECUTED
2042804: 83 28 a0 10 sll %g2, 0x10, %g1 <== NOT EXECUTED
2042808: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
204280c: b0 18 80 18 xor %g2, %i0, %i0 <== NOT EXECUTED
2042810: b0 26 00 01 sub %i0, %g1, %i0 <== NOT EXECUTED
2042814: 89 36 20 1c srl %i0, 0x1c, %g4 <== NOT EXECUTED
2042818: 83 2e 20 04 sll %i0, 4, %g1 <== NOT EXECUTED
204281c: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
2042820: 86 1e 00 03 xor %i0, %g3, %g3 <== NOT EXECUTED
2042824: 86 20 c0 01 sub %g3, %g1, %g3 <== NOT EXECUTED
2042828: 83 28 e0 0e sll %g3, 0xe, %g1 <== NOT EXECUTED
204282c: 84 18 c0 02 xor %g3, %g2, %g2 <== NOT EXECUTED
2042830: 87 30 e0 12 srl %g3, 0x12, %g3 <== NOT EXECUTED
2042834: 86 10 c0 01 or %g3, %g1, %g3 <== NOT EXECUTED
2042838: 84 20 80 03 sub %g2, %g3, %g2 <== NOT EXECUTED
204283c: b0 18 80 18 xor %g2, %i0, %i0 <== NOT EXECUTED
2042840: 83 28 a0 18 sll %g2, 0x18, %g1 <== NOT EXECUTED
2042844: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
2042848: 84 10 80 01 or %g2, %g1, %g2 <== NOT EXECUTED
204284c: b0 26 00 02 sub %i0, %g2, %i0 <== NOT EXECUTED
return c;
}
2042850: 81 c7 e0 08 ret <== NOT EXECUTED
2042854: 81 e8 00 00 restore <== NOT EXECUTED
0203a538 <rtems_rfs_dir_lookup_ino>:
rtems_rfs_inode_handle* inode,
const char* name,
int length,
rtems_rfs_ino* ino,
uint32_t* offset)
{
203a538: 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;
203a53c: c0 27 00 00 clr [ %i4 ] <== NOT EXECUTED
*offset = 0;
rc = rtems_rfs_block_map_open (fs, inode, &map);
203a540: 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)
{
203a544: 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);
203a548: 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;
203a54c: c0 27 40 00 clr [ %i5 ] <== NOT EXECUTED
rc = rtems_rfs_block_map_open (fs, inode, &map);
203a550: a2 07 bf a0 add %fp, -96, %l1 <== NOT EXECUTED
203a554: 7f ff fb db call 20394c0 <rtems_rfs_block_map_open> <== NOT EXECUTED
203a558: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc > 0)
203a55c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203a560: 14 80 00 5e bg 203a6d8 <rtems_rfs_dir_lookup_ino+0x1a0> <== NOT EXECUTED
203a564: 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;
203a568: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
203a56c: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
203a570: 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);
203a574: 40 00 20 19 call 20425d8 <rtems_rfs_dir_hash> <== NOT EXECUTED
203a578: 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);
203a57c: 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);
203a580: 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);
203a584: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203a588: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a58c: 94 10 20 00 clr %o2 <== NOT EXECUTED
203a590: 96 10 20 00 clr %o3 <== NOT EXECUTED
203a594: 7f ff f9 12 call 20389dc <rtems_rfs_block_map_seek> <== NOT EXECUTED
203a598: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED
if (rc > 0)
203a59c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203a5a0: 04 80 00 68 ble 203a740 <rtems_rfs_dir_lookup_ino+0x208> <== NOT EXECUTED
203a5a4: 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)
203a5a8: 22 80 00 02 be,a 203a5b0 <rtems_rfs_dir_lookup_ino+0x78> <== NOT EXECUTED
203a5ac: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
rc = ENOENT;
rtems_rfs_buffer_handle_close (fs, &entries);
203a5b0: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
203a5b4: 10 80 00 44 b 203a6c4 <rtems_rfs_dir_lookup_ino+0x18c> <== NOT EXECUTED
203a5b8: 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);
203a5bc: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
203a5c0: 7f ff fc dc call 2039930 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203a5c4: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
203a5c8: ae 92 20 00 orcc %o0, 0, %l7 <== NOT EXECUTED
203a5cc: 14 80 00 68 bg 203a76c <rtems_rfs_dir_lookup_ino+0x234> <== NOT EXECUTED
203a5d0: 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;
203a5d4: c0 27 bf b4 clr [ %fp + -76 ] <== NOT EXECUTED
while (map.bpos.boff < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
203a5d8: 10 80 00 45 b 203a6ec <rtems_rfs_dir_lookup_ino+0x1b4> <== NOT EXECUTED
203a5dc: 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);
203a5e0: c4 0d a0 02 ldub [ %l6 + 2 ], %g2 <== NOT EXECUTED
203a5e4: c8 0d a0 03 ldub [ %l6 + 3 ], %g4 <== NOT EXECUTED
203a5e8: 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);
203a5ec: f2 0d a0 08 ldub [ %l6 + 8 ], %i1 <== NOT EXECUTED
203a5f0: d8 0d a0 09 ldub [ %l6 + 9 ], %o4 <== NOT EXECUTED
*ino = rtems_rfs_dir_entry_ino (entry);
203a5f4: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
203a5f8: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203a5fc: 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);
203a600: da 0d a0 05 ldub [ %l6 + 5 ], %o5 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
*ino = rtems_rfs_dir_entry_ino (entry);
203a604: 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);
203a608: c8 0d a0 04 ldub [ %l6 + 4 ], %g4 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
*ino = rtems_rfs_dir_entry_ino (entry);
203a60c: 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);
203a610: c6 0d a0 07 ldub [ %l6 + 7 ], %g3 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
*ino = rtems_rfs_dir_entry_ino (entry);
203a614: 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);
203a618: c4 0d a0 06 ldub [ %l6 + 6 ], %g2 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
203a61c: b3 2e 60 08 sll %i1, 8, %i1 <== NOT EXECUTED
203a620: b2 16 40 0c or %i1, %o4, %i1 <== NOT EXECUTED
*ino = rtems_rfs_dir_entry_ino (entry);
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203a624: 80 a6 40 15 cmp %i1, %l5 <== NOT EXECUTED
203a628: 02 80 00 37 be 203a704 <rtems_rfs_dir_lookup_ino+0x1cc> <== NOT EXECUTED
203a62c: c2 27 00 00 st %g1, [ %i4 ] <== NOT EXECUTED
break;
if (rtems_rfs_dir_entry_valid (fs, elength, *ino))
203a630: 80 a6 60 0a cmp %i1, 0xa <== NOT EXECUTED
203a634: 24 80 00 41 ble,a 203a738 <rtems_rfs_dir_lookup_ino+0x200><== NOT EXECUTED
203a638: ae 10 20 05 mov 5, %l7 <== NOT EXECUTED
203a63c: d8 04 20 18 ld [ %l0 + 0x18 ], %o4 <== NOT EXECUTED
203a640: 80 a6 40 0c cmp %i1, %o4 <== NOT EXECUTED
203a644: 1a 80 00 3c bcc 203a734 <rtems_rfs_dir_lookup_ino+0x1fc> <== NOT EXECUTED
203a648: 89 29 20 18 sll %g4, 0x18, %g4 <== NOT EXECUTED
203a64c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203a650: 22 80 00 3a be,a 203a738 <rtems_rfs_dir_lookup_ino+0x200><== NOT EXECUTED
203a654: ae 10 20 05 mov 5, %l7 <== NOT EXECUTED
203a658: d8 04 20 10 ld [ %l0 + 0x10 ], %o4 <== NOT EXECUTED
203a65c: 80 a0 40 0c cmp %g1, %o4 <== NOT EXECUTED
203a660: 18 80 00 35 bgu 203a734 <rtems_rfs_dir_lookup_ino+0x1fc> <== NOT EXECUTED
203a664: 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)
203a668: 83 2b 60 10 sll %o5, 0x10, %g1 <== NOT EXECUTED
203a66c: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED
203a670: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
203a674: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
203a678: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
203a67c: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203a680: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
203a684: 80 a0 40 13 cmp %g1, %l3 <== NOT EXECUTED
203a688: 12 80 00 16 bne 203a6e0 <rtems_rfs_dir_lookup_ino+0x1a8> <== NOT EXECUTED
203a68c: 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)
203a690: 90 05 a0 0a add %l6, 0xa, %o0 <== NOT EXECUTED
203a694: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
203a698: 40 00 2e 7f call 2046094 <memcmp> <== NOT EXECUTED
203a69c: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED
203a6a0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203a6a4: 12 80 00 0f bne 203a6e0 <rtems_rfs_dir_lookup_ino+0x1a8> <== NOT EXECUTED
203a6a8: c2 07 bf b4 ld [ %fp + -76 ], %g1 <== NOT EXECUTED
{
*offset = rtems_rfs_block_map_pos (fs, &map);
203a6ac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a6b0: 7f ff f8 0b call 20386dc <rtems_rfs_block_get_pos> <== NOT EXECUTED
203a6b4: 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);
203a6b8: 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);
203a6bc: 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);
203a6c0: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
203a6c4: 7f ff fd 21 call 2039b48 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203a6c8: 01 00 00 00 nop <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
203a6cc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a6d0: 7f ff fb 0b call 20392fc <rtems_rfs_block_map_close> <== NOT EXECUTED
203a6d4: 92 07 bf a0 add %fp, -96, %o1 <== NOT EXECUTED
return 0;
203a6d8: 81 c7 e0 08 ret <== NOT EXECUTED
203a6dc: 81 e8 00 00 restore <== NOT EXECUTED
}
}
map.bpos.boff += elength;
entry += elength;
203a6e0: ac 05 80 19 add %l6, %i1, %l6 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
return 0;
}
}
map.bpos.boff += elength;
203a6e4: b2 00 40 19 add %g1, %i1, %i1 <== NOT EXECUTED
203a6e8: 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))
203a6ec: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED
203a6f0: c4 07 bf b4 ld [ %fp + -76 ], %g2 <== NOT EXECUTED
203a6f4: 82 00 7f f6 add %g1, -10, %g1 <== NOT EXECUTED
203a6f8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203a6fc: 2a bf ff b9 bcs,a 203a5e0 <rtems_rfs_dir_lookup_ino+0xa8><== NOT EXECUTED
203a700: c6 0d a0 01 ldub [ %l6 + 1 ], %g3 <== NOT EXECUTED
map.bpos.boff += elength;
entry += elength;
}
if (rc == 0)
203a704: 80 a5 e0 00 cmp %l7, 0 <== NOT EXECUTED
203a708: 12 80 00 11 bne 203a74c <rtems_rfs_dir_lookup_ino+0x214> <== NOT EXECUTED
203a70c: b0 10 00 17 mov %l7, %i0 <== NOT EXECUTED
{
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
203a710: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a714: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203a718: 7f ff f8 a4 call 20389a8 <rtems_rfs_block_map_next_block> <== NOT EXECUTED
203a71c: 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)
203a720: 80 a2 20 06 cmp %o0, 6 <== NOT EXECUTED
203a724: 12 80 00 0a bne 203a74c <rtems_rfs_dir_lookup_ino+0x214> <== NOT EXECUTED
203a728: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
203a72c: 10 80 00 11 b 203a770 <rtems_rfs_dir_lookup_ino+0x238> <== NOT EXECUTED
203a730: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
203a734: ae 10 20 05 mov 5, %l7 <== NOT EXECUTED
203a738: 10 80 00 05 b 203a74c <rtems_rfs_dir_lookup_ino+0x214> <== NOT EXECUTED
203a73c: 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)
203a740: 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);
203a744: 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)
203a748: 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)
203a74c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
203a750: 12 80 00 08 bne 203a770 <rtems_rfs_dir_lookup_ino+0x238> <== NOT EXECUTED
203a754: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
203a758: 80 a2 a0 00 cmp %o2, 0 <== NOT EXECUTED
203a75c: 12 bf ff 98 bne 203a5bc <rtems_rfs_dir_lookup_ino+0x84> <== NOT EXECUTED
203a760: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc == ENXIO)
rc = ENOENT;
}
}
if ((rc == 0) && (block == 0))
203a764: 10 80 00 0b b 203a790 <rtems_rfs_dir_lookup_ino+0x258> <== NOT EXECUTED
203a768: 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)
203a76c: 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);
203a770: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
203a774: 7f ff fc f5 call 2039b48 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203a778: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
203a77c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a780: 7f ff fa df call 20392fc <rtems_rfs_block_map_close> <== NOT EXECUTED
203a784: 92 07 bf a0 add %fp, -96, %o1 <== NOT EXECUTED
return rc;
}
203a788: 81 c7 e0 08 ret <== NOT EXECUTED
203a78c: 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);
203a790: 10 bf ff f9 b 203a774 <rtems_rfs_dir_lookup_ino+0x23c> <== NOT EXECUTED
203a794: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
02039d34 <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)
{
2039d34: 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);
2039d38: 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)
{
2039d3c: 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);
2039d40: 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;
2039d44: c0 27 40 00 clr [ %i5 ] <== NOT EXECUTED
rc = rtems_rfs_block_map_open (fs, dir, &map);
2039d48: 7f ff fd de call 20394c0 <rtems_rfs_block_map_open> <== NOT EXECUTED
2039d4c: 94 07 bf a0 add %fp, -96, %o2 <== NOT EXECUTED
if (rc > 0)
2039d50: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2039d54: 14 80 00 45 bg 2039e68 <rtems_rfs_dir_read+0x134> <== NOT EXECUTED
2039d58: 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))
2039d5c: e4 04 20 08 ld [ %l0 + 8 ], %l2 <== NOT EXECUTED
2039d60: 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) -
2039d64: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
(offset % rtems_rfs_fs_block_size (fs))) <= RTEMS_RFS_DIR_ENTRY_SIZE))
2039d68: 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) -
2039d6c: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
2039d70: 40 00 87 a0 call 205bbf0 <__moddi3> <== NOT EXECUTED
2039d74: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2039d78: 86 a4 c0 09 subcc %l3, %o1, %g3 <== NOT EXECUTED
2039d7c: 84 64 80 08 subx %l2, %o0, %g2 <== NOT EXECUTED
2039d80: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2039d84: 34 80 00 15 bg,a 2039dd8 <rtems_rfs_dir_read+0xa4> <== NOT EXECUTED
2039d88: a4 07 bf a0 add %fp, -96, %l2 <== NOT EXECUTED
2039d8c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2039d90: 32 80 00 06 bne,a 2039da8 <rtems_rfs_dir_read+0x74> <== NOT EXECUTED
2039d94: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
2039d98: 80 a0 e0 0a cmp %g3, 0xa <== NOT EXECUTED
2039d9c: 38 80 00 0f bgu,a 2039dd8 <rtems_rfs_dir_read+0xa4> <== NOT EXECUTED
2039da0: 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) *
2039da4: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
2039da8: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
2039dac: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2039db0: 40 00 86 a9 call 205b854 <__divdi3> <== NOT EXECUTED
2039db4: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
2039db8: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2039dbc: 92 82 60 01 inccc %o1 <== NOT EXECUTED
2039dc0: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
2039dc4: 40 00 86 1e call 205b63c <__muldi3> <== NOT EXECUTED
2039dc8: 90 42 20 00 addx %o0, 0, %o0 <== NOT EXECUTED
2039dcc: b4 10 00 08 mov %o0, %i2 <== NOT EXECUTED
2039dd0: 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);
2039dd4: a4 07 bf a0 add %fp, -96, %l2 <== NOT EXECUTED
2039dd8: a2 07 bf fc add %fp, -4, %l1 <== NOT EXECUTED
2039ddc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039de0: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2039de4: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2039de8: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
2039dec: 7f ff fa fc call 20389dc <rtems_rfs_block_map_seek> <== NOT EXECUTED
2039df0: 98 10 00 11 mov %l1, %o4 <== NOT EXECUTED
if (rc > 0)
2039df4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2039df8: 04 80 00 06 ble 2039e10 <rtems_rfs_dir_read+0xdc> <== NOT EXECUTED
2039dfc: 80 a6 20 06 cmp %i0, 6 <== NOT EXECUTED
{
if (rc == ENXIO)
2039e00: 22 80 00 17 be,a 2039e5c <rtems_rfs_dir_read+0x128> <== NOT EXECUTED
2039e04: 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);
2039e08: 10 80 00 16 b 2039e60 <rtems_rfs_dir_read+0x12c> <== NOT EXECUTED
2039e0c: 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)
2039e10: 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;
2039e14: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
2039e18: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
2039e1c: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
2039e20: 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);
2039e24: a6 07 bf f0 add %fp, -16, %l3 <== NOT EXECUTED
2039e28: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
2039e2c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2039e30: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
2039e34: 7f ff fe bf call 2039930 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
2039e38: 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);
2039e3c: 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);
2039e40: 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);
2039e44: 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)
2039e48: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
2039e4c: 04 80 00 09 ble 2039e70 <rtems_rfs_dir_read+0x13c> <== NOT EXECUTED
2039e50: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &buffer);
2039e54: 7f ff ff 3d call 2039b48 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
2039e58: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
2039e5c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039e60: 7f ff fd 27 call 20392fc <rtems_rfs_block_map_close> <== NOT EXECUTED
2039e64: 92 07 bf a0 add %fp, -96, %o1 <== NOT EXECUTED
return rc;
2039e68: 81 c7 e0 08 ret <== NOT EXECUTED
2039e6c: 81 e8 00 00 restore <== NOT EXECUTED
}
entry = rtems_rfs_buffer_data (&buffer);
2039e70: c4 07 bf f8 ld [ %fp + -8 ], %g2 <== NOT EXECUTED
entry += map.bpos.boff;
2039e74: 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);
2039e78: 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);
2039e7c: 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;
2039e80: aa 05 40 01 add %l5, %g1, %l5 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
2039e84: c6 0d 60 02 ldub [ %l5 + 2 ], %g3 <== NOT EXECUTED
2039e88: da 0d 60 03 ldub [ %l5 + 3 ], %o5 <== NOT EXECUTED
2039e8c: 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);
2039e90: ec 0d 60 08 ldub [ %l5 + 8 ], %l6 <== NOT EXECUTED
2039e94: d8 0d 60 09 ldub [ %l5 + 9 ], %o4 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
2039e98: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
2039e9c: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED
2039ea0: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
2039ea4: 84 13 40 02 or %o5, %g2, %g2 <== NOT EXECUTED
2039ea8: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
2039eac: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
2039eb0: 86 05 60 01 add %l5, 1, %g3 <== NOT EXECUTED
2039eb4: 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);
2039eb8: ad 2d a0 08 sll %l6, 8, %l6 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
2039ebc: 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);
2039ec0: ac 15 80 0c or %l6, %o4, %l6 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
if (elength != RTEMS_RFS_DIR_ENTRY_EMPTY)
2039ec4: 80 a5 80 14 cmp %l6, %l4 <== NOT EXECUTED
2039ec8: 02 80 00 38 be 2039fa8 <rtems_rfs_dir_read+0x274> <== NOT EXECUTED
2039ecc: b2 05 60 03 add %l5, 3, %i1 <== NOT EXECUTED
{
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
2039ed0: 80 a5 a0 0a cmp %l6, 0xa <== NOT EXECUTED
2039ed4: 24 80 00 45 ble,a 2039fe8 <rtems_rfs_dir_read+0x2b4> <== NOT EXECUTED
2039ed8: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
2039edc: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED
2039ee0: 80 a5 80 01 cmp %l6, %g1 <== NOT EXECUTED
2039ee4: 3a 80 00 41 bcc,a 2039fe8 <rtems_rfs_dir_read+0x2b4> <== NOT EXECUTED
2039ee8: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
2039eec: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2039ef0: 22 80 00 3e be,a 2039fe8 <rtems_rfs_dir_read+0x2b4> <== NOT EXECUTED
2039ef4: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
2039ef8: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
2039efc: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2039f00: 38 80 00 3a bgu,a 2039fe8 <rtems_rfs_dir_read+0x2b4> <== NOT EXECUTED
2039f04: 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));
2039f08: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
2039f0c: 92 10 20 00 clr %o1 <== NOT EXECUTED
2039f10: 40 00 31 25 call 20463a4 <memset> <== NOT EXECUTED
2039f14: 94 10 21 18 mov 0x118, %o2 <== NOT EXECUTED
dirent->d_off = offset;
dirent->d_reclen = sizeof (struct dirent);
*length += elength;
2039f18: 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));
2039f1c: 84 10 21 18 mov 0x118, %g2 <== NOT EXECUTED
dirent->d_off = offset;
dirent->d_reclen = sizeof (struct dirent);
*length += elength;
2039f20: 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);
2039f24: c4 37 20 10 sth %g2, [ %i4 + 0x10 ] <== NOT EXECUTED
*length += elength;
2039f28: c2 27 40 00 st %g1, [ %i5 ] <== NOT EXECUTED
remaining = rtems_rfs_fs_block_size (fs) - (map.bpos.boff + elength);
2039f2c: c4 07 bf b4 ld [ %fp + -76 ], %g2 <== NOT EXECUTED
2039f30: c6 04 20 08 ld [ %l0 + 8 ], %g3 <== NOT EXECUTED
2039f34: 84 20 c0 02 sub %g3, %g2, %g2 <== NOT EXECUTED
2039f38: 84 20 80 16 sub %g2, %l6, %g2 <== NOT EXECUTED
if (remaining <= RTEMS_RFS_DIR_ENTRY_SIZE)
2039f3c: 80 a0 a0 0a cmp %g2, 0xa <== NOT EXECUTED
2039f40: 14 80 00 04 bg 2039f50 <rtems_rfs_dir_read+0x21c> <== NOT EXECUTED
2039f44: f4 3f 20 08 std %i2, [ %i4 + 8 ] <== NOT EXECUTED
*length += remaining;
2039f48: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
2039f4c: c2 27 40 00 st %g1, [ %i5 ] <== NOT EXECUTED
elength -= RTEMS_RFS_DIR_ENTRY_SIZE;
2039f50: ac 05 bf f6 add %l6, -10, %l6 <== NOT EXECUTED
2039f54: 80 a5 a0 ff cmp %l6, 0xff <== NOT EXECUTED
2039f58: 34 80 00 02 bg,a 2039f60 <rtems_rfs_dir_read+0x22c> <== NOT EXECUTED
2039f5c: 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);
2039f60: 90 07 20 14 add %i4, 0x14, %o0 <== NOT EXECUTED
2039f64: 92 05 60 0a add %l5, 0xa, %o1 <== NOT EXECUTED
2039f68: 40 00 30 7c call 2046158 <memcpy> <== NOT EXECUTED
2039f6c: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED
dirent->d_ino = rtems_rfs_dir_entry_ino (entry);
2039f70: c4 07 bf 9c ld [ %fp + -100 ], %g2 <== NOT EXECUTED
2039f74: c8 0d 40 00 ldub [ %l5 ], %g4 <== NOT EXECUTED
2039f78: c2 08 80 00 ldub [ %g2 ], %g1 <== NOT EXECUTED
2039f7c: c6 0e 40 00 ldub [ %i1 ], %g3 <== NOT EXECUTED
2039f80: c4 0d c0 00 ldub [ %l7 ], %g2 <== NOT EXECUTED
2039f84: 89 29 20 18 sll %g4, 0x18, %g4 <== NOT EXECUTED
2039f88: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
2039f8c: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2039f90: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
dirent->d_namlen = elength;
2039f94: 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);
2039f98: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
2039f9c: 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;
2039fa0: 10 80 00 12 b 2039fe8 <rtems_rfs_dir_read+0x2b4> <== NOT EXECUTED
2039fa4: c2 27 00 00 st %g1, [ %i4 ] <== NOT EXECUTED
}
*length += rtems_rfs_fs_block_size (fs) - map.bpos.boff;
2039fa8: c6 04 20 08 ld [ %l0 + 8 ], %g3 <== NOT EXECUTED
2039fac: c4 07 40 00 ld [ %i5 ], %g2 <== NOT EXECUTED
2039fb0: 82 20 c0 01 sub %g3, %g1, %g1 <== NOT EXECUTED
2039fb4: 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);
2039fb8: 7f ff fa 7c call 20389a8 <rtems_rfs_block_map_next_block> <== NOT EXECUTED
2039fbc: c2 27 40 00 st %g1, [ %i5 ] <== NOT EXECUTED
if (rc == ENXIO)
2039fc0: 80 a2 20 06 cmp %o0, 6 <== NOT EXECUTED
2039fc4: 12 80 00 04 bne 2039fd4 <rtems_rfs_dir_read+0x2a0> <== NOT EXECUTED
2039fc8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
2039fcc: 10 80 00 07 b 2039fe8 <rtems_rfs_dir_read+0x2b4> <== NOT EXECUTED
2039fd0: 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)
2039fd4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2039fd8: 02 bf ff 95 be 2039e2c <rtems_rfs_dir_read+0xf8> <== NOT EXECUTED
2039fdc: 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);
2039fe0: 10 80 00 03 b 2039fec <rtems_rfs_dir_read+0x2b8> <== NOT EXECUTED
2039fe4: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
2039fe8: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
2039fec: 7f ff fe d7 call 2039b48 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
2039ff0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
2039ff4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039ff8: 7f ff fc c1 call 20392fc <rtems_rfs_block_map_close> <== NOT EXECUTED
2039ffc: 92 07 bf a0 add %fp, -96, %o1 <== NOT EXECUTED
return rc;
}
203a000: 81 c7 e0 08 ret <== NOT EXECUTED
203a004: 81 e8 00 00 restore <== NOT EXECUTED
0203aef8 <rtems_rfs_file_close>:
}
int
rtems_rfs_file_close (rtems_rfs_file_system* fs,
rtems_rfs_file_handle* handle)
{
203aef8: 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)
203aefc: c2 06 60 1c ld [ %i1 + 0x1c ], %g1 <== NOT EXECUTED
203af00: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED
203af04: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203af08: 04 80 00 03 ble 203af14 <rtems_rfs_file_close+0x1c> <== NOT EXECUTED
203af0c: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
handle->shared->references--;
203af10: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED
if (handle->shared->references == 0)
203af14: d2 06 60 1c ld [ %i1 + 0x1c ], %o1 <== NOT EXECUTED
203af18: c2 02 60 08 ld [ %o1 + 8 ], %g1 <== NOT EXECUTED
203af1c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203af20: 12 80 00 5e bne 203b098 <rtems_rfs_file_close+0x1a0> <== NOT EXECUTED
203af24: a0 10 20 00 clr %l0 <== NOT EXECUTED
{
if (!rtems_rfs_inode_is_loaded (&handle->shared->inode))
203af28: c2 02 60 18 ld [ %o1 + 0x18 ], %g1 <== NOT EXECUTED
203af2c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203af30: 32 80 00 09 bne,a 203af54 <rtems_rfs_file_close+0x5c> <== NOT EXECUTED
203af34: c4 06 60 1c ld [ %i1 + 0x1c ], %g2 <== NOT EXECUTED
rrc = rtems_rfs_inode_load (fs, &handle->shared->inode);
203af38: 92 02 60 0c add %o1, 0xc, %o1 <== NOT EXECUTED
203af3c: 40 00 08 0d call 203cf70 <rtems_rfs_inode_load> <== NOT EXECUTED
203af40: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rrc == 0)
203af44: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203af48: 32 80 00 3f bne,a 203b044 <rtems_rfs_file_close+0x14c> <== NOT EXECUTED
203af4c: 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,
203af50: 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);
203af54: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED
203af58: 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);
203af5c: c8 00 a0 18 ld [ %g2 + 0x18 ], %g4 <== NOT EXECUTED
203af60: 9b 30 60 18 srl %g1, 0x18, %o5 <== NOT EXECUTED
203af64: da 29 20 10 stb %o5, [ %g4 + 0x10 ] <== NOT EXECUTED
203af68: c8 00 a0 18 ld [ %g2 + 0x18 ], %g4 <== NOT EXECUTED
203af6c: 9b 30 60 10 srl %g1, 0x10, %o5 <== NOT EXECUTED
203af70: da 29 20 11 stb %o5, [ %g4 + 0x11 ] <== NOT EXECUTED
203af74: c8 00 a0 18 ld [ %g2 + 0x18 ], %g4 <== NOT EXECUTED
203af78: 9b 30 60 08 srl %g1, 8, %o5 <== NOT EXECUTED
203af7c: da 29 20 12 stb %o5, [ %g4 + 0x12 ] <== NOT EXECUTED
203af80: c8 00 a0 18 ld [ %g2 + 0x18 ], %g4 <== NOT EXECUTED
203af84: c2 29 20 13 stb %g1, [ %g4 + 0x13 ] <== NOT EXECUTED
handle->shared->atime);
rtems_rfs_inode_set_mtime (&handle->shared->inode,
203af88: c2 06 60 1c ld [ %i1 + 0x1c ], %g1 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203af8c: 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);
203af90: c8 00 60 18 ld [ %g1 + 0x18 ], %g4 <== NOT EXECUTED
203af94: c4 00 60 90 ld [ %g1 + 0x90 ], %g2 <== NOT EXECUTED
203af98: 9b 30 a0 18 srl %g2, 0x18, %o5 <== NOT EXECUTED
203af9c: da 29 20 14 stb %o5, [ %g4 + 0x14 ] <== NOT EXECUTED
203afa0: c8 00 60 18 ld [ %g1 + 0x18 ], %g4 <== NOT EXECUTED
203afa4: 9b 30 a0 10 srl %g2, 0x10, %o5 <== NOT EXECUTED
203afa8: da 29 20 15 stb %o5, [ %g4 + 0x15 ] <== NOT EXECUTED
203afac: c8 00 60 18 ld [ %g1 + 0x18 ], %g4 <== NOT EXECUTED
203afb0: 9b 30 a0 08 srl %g2, 8, %o5 <== NOT EXECUTED
203afb4: da 29 20 16 stb %o5, [ %g4 + 0x16 ] <== NOT EXECUTED
203afb8: c8 00 60 18 ld [ %g1 + 0x18 ], %g4 <== NOT EXECUTED
203afbc: c4 29 20 17 stb %g2, [ %g4 + 0x17 ] <== NOT EXECUTED
handle->shared->mtime);
rtems_rfs_inode_set_ctime (&handle->shared->inode,
203afc0: c4 06 60 1c ld [ %i1 + 0x1c ], %g2 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203afc4: 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);
203afc8: c8 00 a0 18 ld [ %g2 + 0x18 ], %g4 <== NOT EXECUTED
203afcc: c2 00 a0 94 ld [ %g2 + 0x94 ], %g1 <== NOT EXECUTED
203afd0: 9b 30 60 18 srl %g1, 0x18, %o5 <== NOT EXECUTED
203afd4: da 29 20 18 stb %o5, [ %g4 + 0x18 ] <== NOT EXECUTED
203afd8: c8 00 a0 18 ld [ %g2 + 0x18 ], %g4 <== NOT EXECUTED
203afdc: 9b 30 60 10 srl %g1, 0x10, %o5 <== NOT EXECUTED
203afe0: da 29 20 19 stb %o5, [ %g4 + 0x19 ] <== NOT EXECUTED
203afe4: c8 00 a0 18 ld [ %g2 + 0x18 ], %g4 <== NOT EXECUTED
203afe8: 9b 30 60 08 srl %g1, 8, %o5 <== NOT EXECUTED
203afec: da 29 20 1a stb %o5, [ %g4 + 0x1a ] <== NOT EXECUTED
203aff0: c8 00 a0 18 ld [ %g2 + 0x18 ], %g4 <== NOT EXECUTED
203aff4: c2 29 20 1b stb %g1, [ %g4 + 0x1b ] <== NOT EXECUTED
handle->shared->ctime);
if (!rtems_rfs_block_size_equal (&handle->shared->size,
203aff8: c2 06 60 1c ld [ %i1 + 0x1c ], %g1 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203affc: c6 28 a0 1c stb %g3, [ %g2 + 0x1c ] <== NOT EXECUTED
203b000: c4 00 60 84 ld [ %g1 + 0x84 ], %g2 <== NOT EXECUTED
203b004: c6 00 60 3c ld [ %g1 + 0x3c ], %g3 <== NOT EXECUTED
203b008: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED
203b00c: 32 80 00 08 bne,a 203b02c <rtems_rfs_file_close+0x134> <== NOT EXECUTED
203b010: c6 00 60 88 ld [ %g1 + 0x88 ], %g3 <== NOT EXECUTED
203b014: c8 00 60 88 ld [ %g1 + 0x88 ], %g4 <== NOT EXECUTED
203b018: c6 00 60 40 ld [ %g1 + 0x40 ], %g3 <== NOT EXECUTED
203b01c: 80 a1 00 03 cmp %g4, %g3 <== NOT EXECUTED
203b020: 02 80 00 08 be 203b040 <rtems_rfs_file_close+0x148> <== NOT EXECUTED
203b024: 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);
203b028: c6 00 60 88 ld [ %g1 + 0x88 ], %g3 <== NOT EXECUTED
203b02c: c4 20 60 3c st %g2, [ %g1 + 0x3c ] <== NOT EXECUTED
203b030: c6 20 60 40 st %g3, [ %g1 + 0x40 ] <== NOT EXECUTED
map->dirty = true;
203b034: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
203b038: a0 10 20 00 clr %l0 <== NOT EXECUTED
203b03c: 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);
203b040: d2 06 60 1c ld [ %i1 + 0x1c ], %o1 <== NOT EXECUTED
203b044: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203b048: 7f ff f8 ad call 20392fc <rtems_rfs_block_map_close> <== NOT EXECUTED
203b04c: 92 02 60 34 add %o1, 0x34, %o1 <== NOT EXECUTED
if (rc > 0)
203b050: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b054: 04 80 00 04 ble 203b064 <rtems_rfs_file_close+0x16c> <== NOT EXECUTED
203b058: 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)
203b05c: 22 80 00 02 be,a 203b064 <rtems_rfs_file_close+0x16c> <== NOT EXECUTED
203b060: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
rrc = rc;
}
rc = rtems_rfs_inode_close (fs, &handle->shared->inode);
203b064: d2 06 60 1c ld [ %i1 + 0x1c ], %o1 <== NOT EXECUTED
203b068: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203b06c: 40 00 07 b2 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203b070: 92 02 60 0c add %o1, 0xc, %o1 <== NOT EXECUTED
if (rc > 0)
203b074: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b078: 04 80 00 04 ble 203b088 <rtems_rfs_file_close+0x190> <== NOT EXECUTED
203b07c: 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)
203b080: 22 80 00 02 be,a 203b088 <rtems_rfs_file_close+0x190> <== NOT EXECUTED
203b084: 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 );
203b088: 7f ff 49 af call 200d744 <_Chain_Extract> <== NOT EXECUTED
203b08c: d0 06 60 1c ld [ %i1 + 0x1c ], %o0 <== NOT EXECUTED
rrc = rc;
}
rtems_chain_extract (&handle->shared->link);
free (handle->shared);
203b090: 7f ff 34 74 call 2008260 <free> <== NOT EXECUTED
203b094: 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);
203b098: 92 06 60 04 add %i1, 4, %o1 <== NOT EXECUTED
203b09c: 7f ff f9 db call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203b0a0: 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);
203b0a4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
handle->dirty = false;
203b0a8: c0 2e 60 04 clrb [ %i1 + 4 ] <== NOT EXECUTED
handle->bnum = 0;
203b0ac: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED
handle->buffer = NULL;
203b0b0: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED
203b0b4: 7f ff 34 6b call 2008260 <free> <== NOT EXECUTED
203b0b8: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED
return rrc;
}
203b0bc: 81 c7 e0 08 ret <== NOT EXECUTED
203b0c0: 81 e8 00 00 restore <== NOT EXECUTED
0203a798 <rtems_rfs_file_get_shared>:
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
203a798: 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))
203a79c: 10 80 00 06 b 203a7b4 <rtems_rfs_file_get_shared+0x1c> <== NOT EXECUTED
203a7a0: 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)
203a7a4: 80 a0 c0 09 cmp %g3, %o1 <== NOT EXECUTED
203a7a8: 02 80 00 07 be 203a7c4 <rtems_rfs_file_get_shared+0x2c> <== NOT EXECUTED
203a7ac: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
203a7b0: 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))
203a7b4: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203a7b8: 32 bf ff fb bne,a 203a7a4 <rtems_rfs_file_get_shared+0xc><== NOT EXECUTED
203a7bc: c6 00 60 14 ld [ %g1 + 0x14 ], %g3 <== NOT EXECUTED
203a7c0: 90 10 20 00 clr %o0 <== NOT EXECUTED
if (shared->inode.ino == ino)
return shared;
node = rtems_chain_next (node);
}
return NULL;
}
203a7c4: 81 c3 e0 08 retl <== NOT EXECUTED
0203ad14 <rtems_rfs_file_io_end>:
int
rtems_rfs_file_io_end (rtems_rfs_file_handle* handle,
size_t size,
bool read)
{
203ad14: 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))
203ad18: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
203ad1c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203ad20: 02 80 00 1d be 203ad94 <rtems_rfs_file_io_end+0x80> <== NOT EXECUTED
203ad24: 80 8e a0 ff btst 0xff, %i2 <== NOT EXECUTED
{
if (!read)
203ad28: 32 80 00 05 bne,a 203ad3c <rtems_rfs_file_io_end+0x28> <== NOT EXECUTED
203ad2c: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (rtems_rfs_file_buffer (handle));
203ad30: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203ad34: c2 2e 20 04 stb %g1, [ %i0 + 4 ] <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
203ad38: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
203ad3c: 92 06 20 04 add %i0, 4, %o1 <== NOT EXECUTED
203ad40: 7f ff fa b2 call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203ad44: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
rtems_rfs_file_buffer (handle));
if (rc > 0)
203ad48: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203ad4c: 04 80 00 13 ble 203ad98 <rtems_rfs_file_io_end+0x84> <== NOT EXECUTED
203ad50: 23 00 81 9a sethi %hi(0x2066800), %l1 <== NOT EXECUTED
{
printf (
203ad54: 80 8e a0 ff btst 0xff, %i2 <== NOT EXECUTED
203ad58: 12 80 00 04 bne 203ad68 <rtems_rfs_file_io_end+0x54> <== NOT EXECUTED
203ad5c: a2 14 61 d0 or %l1, 0x1d0, %l1 <== NOT EXECUTED
203ad60: 23 00 81 9a sethi %hi(0x2066800), %l1 <== NOT EXECUTED
203ad64: a2 14 61 c8 or %l1, 0x1c8, %l1 ! 20669c8 <__FUNCTION__.7657+0x28><== NOT EXECUTED
203ad68: 40 00 3a 4c call 2049698 <strerror> <== NOT EXECUTED
203ad6c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203ad70: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203ad74: 98 10 00 08 mov %o0, %o4 <== NOT EXECUTED
203ad78: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
203ad7c: 11 00 81 9a sethi %hi(0x2066800), %o0 <== NOT EXECUTED
203ad80: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
203ad84: 40 00 31 a4 call 2047414 <printf> <== NOT EXECUTED
203ad88: 90 12 21 d8 or %o0, 0x1d8, %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;
203ad8c: 81 c7 e0 08 ret <== NOT EXECUTED
203ad90: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED
203ad94: 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)))
203ad98: 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;
203ad9c: c4 06 20 14 ld [ %i0 + 0x14 ], %g2 <== NOT EXECUTED
if (handle->bpos.boff >=
rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))
203ada0: 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;
203ada4: b2 06 40 02 add %i1, %g2, %i1 <== NOT EXECUTED
if (handle->bpos.boff >=
rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))
203ada8: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED
203adac: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
203adb0: 0a 80 00 07 bcs 203adcc <rtems_rfs_file_io_end+0xb8> <== NOT EXECUTED
203adb4: f2 26 20 14 st %i1, [ %i0 + 0x14 ] <== NOT EXECUTED
{
handle->bpos.bno++;
203adb8: c4 06 20 10 ld [ %i0 + 0x10 ], %g2 <== NOT EXECUTED
handle->bpos.boff -= rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
203adbc: 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++;
203adc0: 82 00 a0 01 add %g2, 1, %g1 <== NOT EXECUTED
handle->bpos.boff -= rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
203adc4: 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++;
203adc8: c2 26 20 10 st %g1, [ %i0 + 0x10 ] <== NOT EXECUTED
}
length = false;
mtime = false;
if (!read &&
203adcc: 80 8e a0 ff btst 0xff, %i2 <== NOT EXECUTED
203add0: 12 80 00 20 bne 203ae50 <rtems_rfs_file_io_end+0x13c> <== NOT EXECUTED
203add4: 82 10 20 00 clr %g1 <== NOT EXECUTED
rtems_rfs_block_map_past_end (rtems_rfs_file_map (handle),
203add8: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
}
length = false;
mtime = false;
if (!read &&
203addc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203ade0: 02 80 00 07 be 203adfc <rtems_rfs_file_io_end+0xe8> <== NOT EXECUTED
203ade4: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 <== NOT EXECUTED
rtems_rfs_block_map_past_end (rtems_rfs_file_map (handle),
203ade8: c4 00 a0 3c ld [ %g2 + 0x3c ], %g2 <== NOT EXECUTED
203adec: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203adf0: 22 80 00 11 be,a 203ae34 <rtems_rfs_file_io_end+0x120> <== NOT EXECUTED
203adf4: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
203adf8: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 <== NOT EXECUTED
203adfc: c6 00 a0 3c ld [ %g2 + 0x3c ], %g3 <== NOT EXECUTED
}
length = false;
mtime = false;
if (!read &&
203ae00: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
203ae04: 3a 80 00 0c bcc,a 203ae34 <rtems_rfs_file_io_end+0x120> <== NOT EXECUTED
203ae08: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
203ae0c: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED
203ae10: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
203ae14: 12 80 00 0f bne 203ae50 <rtems_rfs_file_io_end+0x13c> <== NOT EXECUTED
203ae18: 82 10 20 00 clr %g1 <== NOT EXECUTED
rtems_rfs_block_map_past_end (rtems_rfs_file_map (handle),
203ae1c: c2 00 a0 40 ld [ %g2 + 0x40 ], %g1 <== NOT EXECUTED
203ae20: c4 06 20 14 ld [ %i0 + 0x14 ], %g2 <== NOT EXECUTED
203ae24: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203ae28: 28 80 00 0a bleu,a 203ae50 <rtems_rfs_file_io_end+0x13c> <== NOT EXECUTED
203ae2c: 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),
203ae30: 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;
203ae34: c4 06 20 14 ld [ %i0 + 0x14 ], %g2 <== NOT EXECUTED
map->dirty = true;
203ae38: 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;
203ae3c: c4 20 60 40 st %g2, [ %g1 + 0x40 ] <== NOT EXECUTED
map->dirty = true;
203ae40: c6 28 60 34 stb %g3, [ %g1 + 0x34 ] <== NOT EXECUTED
203ae44: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
203ae48: 10 80 00 03 b 203ae54 <rtems_rfs_file_io_end+0x140> <== NOT EXECUTED
203ae4c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203ae50: 84 10 20 00 clr %g2 <== NOT EXECUTED
handle->bpos.boff);
length = true;
mtime = true;
}
atime = rtems_rfs_file_update_atime (handle);
203ae54: e2 06 00 00 ld [ %i0 ], %l1 <== NOT EXECUTED
mtime = rtems_rfs_file_update_mtime (handle) && mtime;
203ae58: 86 0c 60 02 and %l1, 2, %g3 <== NOT EXECUTED
203ae5c: 80 a0 00 03 cmp %g0, %g3 <== NOT EXECUTED
length = rtems_rfs_file_update_length (handle) && length;
203ae60: 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;
203ae64: b2 60 3f ff subx %g0, -1, %i1 <== NOT EXECUTED
length = rtems_rfs_file_update_length (handle) && length;
203ae68: 80 a0 00 03 cmp %g0, %g3 <== NOT EXECUTED
handle->bpos.boff);
length = true;
mtime = true;
}
atime = rtems_rfs_file_update_atime (handle);
203ae6c: 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;
203ae70: a4 60 3f ff subx %g0, -1, %l2 <== NOT EXECUTED
handle->bpos.boff);
length = true;
mtime = true;
}
atime = rtems_rfs_file_update_atime (handle);
203ae74: a2 0c 60 01 and %l1, 1, %l1 <== NOT EXECUTED
mtime = rtems_rfs_file_update_mtime (handle) && mtime;
203ae78: 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)
203ae7c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
203ae80: 12 80 00 05 bne 203ae94 <rtems_rfs_file_io_end+0x180> <== NOT EXECUTED
203ae84: a4 0c 80 01 and %l2, %g1, %l2 <== NOT EXECUTED
203ae88: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
203ae8c: 02 80 00 11 be 203aed0 <rtems_rfs_file_io_end+0x1bc> <== NOT EXECUTED
203ae90: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
{
time_t now = time (NULL);
203ae94: 40 00 50 07 call 204eeb0 <time> <== NOT EXECUTED
203ae98: 90 10 20 00 clr %o0 <== NOT EXECUTED
if (read && atime)
203ae9c: 80 8e a0 ff btst 0xff, %i2 <== NOT EXECUTED
203aea0: 02 80 00 08 be 203aec0 <rtems_rfs_file_io_end+0x1ac> <== NOT EXECUTED
203aea4: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
203aea8: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
203aeac: 02 80 00 09 be 203aed0 <rtems_rfs_file_io_end+0x1bc> <== NOT EXECUTED
203aeb0: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
handle->shared->atime = now;
203aeb4: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
203aeb8: 10 80 00 06 b 203aed0 <rtems_rfs_file_io_end+0x1bc> <== NOT EXECUTED
203aebc: d0 20 60 8c st %o0, [ %g1 + 0x8c ] <== NOT EXECUTED
if (!read && mtime)
203aec0: 02 80 00 04 be 203aed0 <rtems_rfs_file_io_end+0x1bc> <== NOT EXECUTED
203aec4: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
handle->shared->mtime = now;
203aec8: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
203aecc: d0 20 60 90 st %o0, [ %g1 + 0x90 ] <== NOT EXECUTED
}
if (length)
203aed0: 22 80 00 08 be,a 203aef0 <rtems_rfs_file_io_end+0x1dc> <== NOT EXECUTED
203aed4: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED
{
handle->shared->size.count =
rtems_rfs_block_map_count (rtems_rfs_file_map (handle));
203aed8: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
if (!read && mtime)
handle->shared->mtime = now;
}
if (length)
{
handle->shared->size.count =
203aedc: c6 00 60 3c ld [ %g1 + 0x3c ], %g3 <== NOT EXECUTED
rtems_rfs_block_map_count (rtems_rfs_file_map (handle));
handle->shared->size.offset =
203aee0: c4 00 60 40 ld [ %g1 + 0x40 ], %g2 <== NOT EXECUTED
if (!read && mtime)
handle->shared->mtime = now;
}
if (length)
{
handle->shared->size.count =
203aee4: c6 20 60 84 st %g3, [ %g1 + 0x84 ] <== NOT EXECUTED
rtems_rfs_block_map_count (rtems_rfs_file_map (handle));
handle->shared->size.offset =
203aee8: c4 20 60 88 st %g2, [ %g1 + 0x88 ] <== NOT EXECUTED
rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle));
}
return rc;
}
203aeec: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED
203aef0: 81 c7 e0 08 ret <== NOT EXECUTED
203aef4: 81 e8 00 00 restore <== NOT EXECUTED
0203a92c <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))
203a92c: c2 02 20 0c ld [ %o0 + 0xc ], %g1 <== NOT EXECUTED
203a930: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203a934: 32 80 00 04 bne,a 203a944 <rtems_rfs_file_io_release+0x18><== NOT EXECUTED
203a938: 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;
}
203a93c: 81 c3 e0 08 retl <== NOT EXECUTED
203a940: 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),
203a944: 92 02 20 04 add %o0, 4, %o1 <== NOT EXECUTED
203a948: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
203a94c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
203a950: 7f ff fb ae call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203a954: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
0203a7cc <rtems_rfs_file_io_start>:
int
rtems_rfs_file_io_start (rtems_rfs_file_handle* handle,
size_t* available,
bool read)
{
203a7cc: 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))
203a7d0: 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)
{
203a7d4: 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))
203a7d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203a7dc: 12 80 00 38 bne 203a8bc <rtems_rfs_file_io_start+0xf0> <== NOT EXECUTED
203a7e0: 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),
203a7e4: d2 06 20 1c ld [ %i0 + 0x1c ], %o1 <== NOT EXECUTED
203a7e8: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
203a7ec: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
203a7f0: 94 06 20 10 add %i0, 0x10, %o2 <== NOT EXECUTED
203a7f4: 92 02 60 34 add %o1, 0x34, %o1 <== NOT EXECUTED
203a7f8: 7f ff f8 12 call 2038840 <rtems_rfs_block_map_find> <== NOT EXECUTED
203a7fc: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
rtems_rfs_file_map (handle),
rtems_rfs_file_bpos (handle),
&block);
if (rc > 0)
203a800: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203a804: 04 80 00 16 ble 203a85c <rtems_rfs_file_io_start+0x90> <== NOT EXECUTED
203a808: 82 0e a0 ff and %i2, 0xff, %g1 <== NOT EXECUTED
{
/*
* Has the read reached the EOF ?
*/
if (read && (rc == ENXIO))
203a80c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203a810: 02 80 00 07 be 203a82c <rtems_rfs_file_io_start+0x60> <== NOT EXECUTED
203a814: 80 a2 20 06 cmp %o0, 6 <== NOT EXECUTED
203a818: 12 80 00 43 bne 203a924 <rtems_rfs_file_io_start+0x158> <== NOT EXECUTED
203a81c: 01 00 00 00 nop <== NOT EXECUTED
{
*available = 0;
203a820: c0 26 40 00 clr [ %i1 ] <== NOT EXECUTED
return 0;
203a824: 10 80 00 40 b 203a924 <rtems_rfs_file_io_start+0x158> <== NOT EXECUTED
203a828: 90 10 20 00 clr %o0 <== NOT EXECUTED
}
if (rc != ENXIO)
203a82c: 12 80 00 3e bne 203a924 <rtems_rfs_file_io_start+0x158> <== NOT EXECUTED
203a830: 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),
203a834: d2 06 20 1c ld [ %i0 + 0x1c ], %o1 <== NOT EXECUTED
203a838: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
203a83c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203a840: 7f ff f9 c9 call 2038f64 <rtems_rfs_block_map_grow> <== NOT EXECUTED
203a844: 92 02 60 34 add %o1, 0x34, %o1 <== NOT EXECUTED
rtems_rfs_file_map (handle),
1, &block);
if (rc > 0)
203a848: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203a84c: 14 80 00 36 bg 203a924 <rtems_rfs_file_io_start+0x158> <== NOT EXECUTED
203a850: 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),
203a854: 10 80 00 12 b 203a89c <rtems_rfs_file_io_start+0xd0> <== NOT EXECUTED
203a858: 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 &&
203a85c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203a860: 32 80 00 0f bne,a 203a89c <rtems_rfs_file_io_start+0xd0> <== NOT EXECUTED
203a864: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
(rtems_rfs_file_block_offset (handle) ||
203a868: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 <== NOT EXECUTED
203a86c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203a870: 12 80 00 0a bne 203a898 <rtems_rfs_file_io_start+0xcc> <== NOT EXECUTED
203a874: b4 10 20 01 mov 1, %i2 <== NOT EXECUTED
(*available < rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))))
203a878: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
203a87c: c4 06 40 00 ld [ %i1 ], %g2 <== NOT EXECUTED
203a880: c2 00 60 98 ld [ %g1 + 0x98 ], %g1 <== NOT EXECUTED
203a884: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED
203a888: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203a88c: 2a 80 00 04 bcs,a 203a89c <rtems_rfs_file_io_start+0xd0> <== NOT EXECUTED
203a890: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203a894: 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),
203a898: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203a89c: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
203a8a0: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
203a8a4: 96 0e a0 ff and %i2, 0xff, %o3 <== NOT EXECUTED
203a8a8: 7f ff fc 22 call 2039930 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203a8ac: 92 04 20 04 add %l0, 4, %o1 <== NOT EXECUTED
rtems_rfs_file_buffer (handle),
block, request_read);
if (rc > 0)
203a8b0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203a8b4: 14 80 00 1c bg 203a924 <rtems_rfs_file_io_start+0x158> <== NOT EXECUTED
203a8b8: 01 00 00 00 nop <== NOT EXECUTED
return rc;
}
if (read
203a8bc: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED
203a8c0: 02 80 00 13 be 203a90c <rtems_rfs_file_io_start+0x140> <== NOT EXECUTED
203a8c4: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
&& rtems_rfs_block_map_last (rtems_rfs_file_map (handle))
203a8c8: c4 00 60 44 ld [ %g1 + 0x44 ], %g2 <== NOT EXECUTED
block, request_read);
if (rc > 0)
return rc;
}
if (read
203a8cc: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203a8d0: 12 80 00 06 bne 203a8e8 <rtems_rfs_file_io_start+0x11c> <== NOT EXECUTED
203a8d4: c6 00 60 3c ld [ %g1 + 0x3c ], %g3 <== NOT EXECUTED
&& rtems_rfs_block_map_last (rtems_rfs_file_map (handle))
203a8d8: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
203a8dc: 22 80 00 08 be,a 203a8fc <rtems_rfs_file_io_start+0x130> <== NOT EXECUTED
203a8e0: c2 00 60 40 ld [ %g1 + 0x40 ], %g1 <== NOT EXECUTED
block, request_read);
if (rc > 0)
return rc;
}
if (read
203a8e4: c6 00 60 3c ld [ %g1 + 0x3c ], %g3 <== NOT EXECUTED
203a8e8: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED
203a8ec: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED
203a8f0: 32 80 00 07 bne,a 203a90c <rtems_rfs_file_io_start+0x140><== NOT EXECUTED
203a8f4: 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)))
203a8f8: c2 00 60 40 ld [ %g1 + 0x40 ], %g1 <== NOT EXECUTED
block, request_read);
if (rc > 0)
return rc;
}
if (read
203a8fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203a900: 32 80 00 06 bne,a 203a918 <rtems_rfs_file_io_start+0x14c><== NOT EXECUTED
203a904: 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));
203a908: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203a90c: c2 00 60 98 ld [ %g1 + 0x98 ], %g1 <== NOT EXECUTED
203a910: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED
*available = size - rtems_rfs_file_block_offset (handle);
203a914: c4 04 20 14 ld [ %l0 + 0x14 ], %g2 <== NOT EXECUTED
203a918: 90 10 20 00 clr %o0 <== NOT EXECUTED
203a91c: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED
203a920: 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;
}
203a924: 81 c7 e0 08 ret <== NOT EXECUTED
203a928: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203b0c4 <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)
{
203b0c4: 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));
203b0c8: 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;
203b0cc: 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));
203b0d0: 7f ff 36 2b call 200897c <malloc> <== NOT EXECUTED
203b0d4: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
if (!handle)
203b0d8: b0 10 20 0c mov 0xc, %i0 <== NOT EXECUTED
203b0dc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b0e0: 02 80 00 25 be 203b174 <rtems_rfs_file_open+0xb0> <== NOT EXECUTED
203b0e4: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
return ENOMEM;
memset (handle, 0, sizeof (rtems_rfs_file_handle));
203b0e8: 92 10 20 00 clr %o1 <== NOT EXECUTED
203b0ec: 40 00 2c ae call 20463a4 <memset> <== NOT EXECUTED
203b0f0: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
203b0f4: 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;
203b0f8: c0 2c 20 04 clrb [ %l0 + 4 ] <== NOT EXECUTED
handle->bnum = 0;
203b0fc: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED
handle->buffer = NULL;
203b100: 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;
203b104: 10 80 00 06 b 203b11c <rtems_rfs_file_open+0x58> <== NOT EXECUTED
203b108: 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)
203b10c: 80 a0 c0 19 cmp %g3, %i1 <== NOT EXECUTED
203b110: 02 80 00 07 be 203b12c <rtems_rfs_file_open+0x68> <== NOT EXECUTED
203b114: a4 10 00 01 mov %g1, %l2 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
203b118: 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))
203b11c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203b120: 32 bf ff fb bne,a 203b10c <rtems_rfs_file_open+0x48> <== NOT EXECUTED
203b124: c6 00 60 14 ld [ %g1 + 0x14 ], %g3 <== NOT EXECUTED
203b128: 30 80 00 05 b,a 203b13c <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++;
203b12c: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED
203b130: 82 00 60 01 inc %g1 <== NOT EXECUTED
203b134: 10 80 00 71 b 203b2f8 <rtems_rfs_file_open+0x234> <== NOT EXECUTED
203b138: 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));
203b13c: 7f ff 36 10 call 200897c <malloc> <== NOT EXECUTED
203b140: 90 10 20 9c mov 0x9c, %o0 <== NOT EXECUTED
if (!shared)
203b144: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
203b148: 12 80 00 0d bne 203b17c <rtems_rfs_file_open+0xb8> <== NOT EXECUTED
203b14c: 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);
203b150: 92 04 20 04 add %l0, 4, %o1 <== NOT EXECUTED
203b154: 7f ff f9 ad call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203b158: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle->buffer);
free (handle);
203b15c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
handle->dirty = false;
203b160: c0 2c 20 04 clrb [ %l0 + 4 ] <== NOT EXECUTED
handle->bnum = 0;
203b164: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED
handle->buffer = NULL;
203b168: c0 24 20 0c clr [ %l0 + 0xc ] <== NOT EXECUTED
203b16c: 7f ff 34 3d call 2008260 <free> <== NOT EXECUTED
203b170: b0 10 20 0c mov 0xc, %i0 <== NOT EXECUTED
return ENOMEM;
203b174: 81 c7 e0 08 ret <== NOT EXECUTED
203b178: 81 e8 00 00 restore <== NOT EXECUTED
}
memset (shared, 0, sizeof (rtems_rfs_file_shared));
203b17c: 40 00 2c 8a call 20463a4 <memset> <== NOT EXECUTED
203b180: 94 10 20 9c mov 0x9c, %o2 <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &shared->inode, true);
203b184: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203b188: a6 04 a0 0c add %l2, 0xc, %l3 <== NOT EXECUTED
203b18c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203b190: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
203b194: 40 00 07 91 call 203cfd8 <rtems_rfs_inode_open> <== NOT EXECUTED
203b198: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
203b19c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203b1a0: 14 80 00 0a bg 203b1c8 <rtems_rfs_file_open+0x104> <== NOT EXECUTED
203b1a4: 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);
203b1a8: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203b1ac: 7f ff f8 c5 call 20394c0 <rtems_rfs_block_map_open> <== NOT EXECUTED
203b1b0: 94 04 a0 34 add %l2, 0x34, %o2 <== NOT EXECUTED
if (rc > 0)
203b1b4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203b1b8: 04 80 00 10 ble 203b1f8 <rtems_rfs_file_open+0x134> <== NOT EXECUTED
203b1bc: 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);
203b1c0: 40 00 07 5d call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203b1c4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
free (shared);
203b1c8: 7f ff 34 26 call 2008260 <free> <== NOT EXECUTED
203b1cc: 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);
203b1d0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203b1d4: 7f ff f9 8d call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203b1d8: 92 04 20 04 add %l0, 4, %o1 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle->buffer);
free (handle);
203b1dc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
handle->dirty = false;
203b1e0: c0 2c 20 04 clrb [ %l0 + 4 ] <== NOT EXECUTED
handle->bnum = 0;
203b1e4: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED
203b1e8: 7f ff 34 1e call 2008260 <free> <== NOT EXECUTED
203b1ec: c0 24 20 0c clr [ %l0 + 0xc ] <== NOT EXECUTED
return rc;
203b1f0: 81 c7 e0 08 ret <== NOT EXECUTED
203b1f4: 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);
203b1f8: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 <== NOT EXECUTED
}
shared->references = 1;
203b1fc: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
203b200: c4 24 a0 08 st %g2, [ %l2 + 8 ] <== NOT EXECUTED
203b204: 84 00 60 0c add %g1, 0xc, %g2 <== NOT EXECUTED
shared->size.count = rtems_rfs_inode_get_block_count (&shared->inode);
203b208: d8 08 60 0c ldub [ %g1 + 0xc ], %o4 <== NOT EXECUTED
203b20c: da 08 a0 03 ldub [ %g2 + 3 ], %o5 <== NOT EXECUTED
203b210: c6 08 a0 02 ldub [ %g2 + 2 ], %g3 <== NOT EXECUTED
203b214: c8 08 a0 01 ldub [ %g2 + 1 ], %g4 <== NOT EXECUTED
203b218: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
203b21c: 85 2b 20 18 sll %o4, 0x18, %g2 <== NOT EXECUTED
203b220: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
203b224: 84 13 40 02 or %o5, %g2, %g2 <== NOT EXECUTED
203b228: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
203b22c: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
203b230: c4 24 a0 84 st %g2, [ %l2 + 0x84 ] <== NOT EXECUTED
shared->size.offset = rtems_rfs_inode_get_block_offset (&shared->inode);
203b234: c6 08 60 0b ldub [ %g1 + 0xb ], %g3 <== NOT EXECUTED
203b238: 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 );
203b23c: 90 04 60 70 add %l1, 0x70, %o0 <== NOT EXECUTED
203b240: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203b244: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED
203b248: 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);
203b24c: 84 00 60 10 add %g1, 0x10, %g2 <== NOT EXECUTED
shared->atime = rtems_rfs_inode_get_atime (&shared->inode);
203b250: d8 08 60 10 ldub [ %g1 + 0x10 ], %o4 <== NOT EXECUTED
203b254: da 08 a0 03 ldub [ %g2 + 3 ], %o5 <== NOT EXECUTED
203b258: c6 08 a0 02 ldub [ %g2 + 2 ], %g3 <== NOT EXECUTED
203b25c: c8 08 a0 01 ldub [ %g2 + 1 ], %g4 <== NOT EXECUTED
203b260: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
203b264: 85 2b 20 18 sll %o4, 0x18, %g2 <== NOT EXECUTED
203b268: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
203b26c: 84 13 40 02 or %o5, %g2, %g2 <== NOT EXECUTED
203b270: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
203b274: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
203b278: 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);
203b27c: 84 00 60 14 add %g1, 0x14, %g2 <== NOT EXECUTED
shared->mtime = rtems_rfs_inode_get_mtime (&shared->inode);
203b280: d8 08 60 14 ldub [ %g1 + 0x14 ], %o4 <== NOT EXECUTED
203b284: da 08 a0 03 ldub [ %g2 + 3 ], %o5 <== NOT EXECUTED
203b288: c6 08 a0 02 ldub [ %g2 + 2 ], %g3 <== NOT EXECUTED
203b28c: c8 08 a0 01 ldub [ %g2 + 1 ], %g4 <== NOT EXECUTED
203b290: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
203b294: 85 2b 20 18 sll %o4, 0x18, %g2 <== NOT EXECUTED
203b298: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
203b29c: 84 13 40 02 or %o5, %g2, %g2 <== NOT EXECUTED
203b2a0: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
203b2a4: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
203b2a8: c4 24 a0 90 st %g2, [ %l2 + 0x90 ] <== NOT EXECUTED
shared->ctime = rtems_rfs_inode_get_ctime (&shared->inode);
203b2ac: 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);
203b2b0: 82 00 60 18 add %g1, 0x18, %g1 <== NOT EXECUTED
203b2b4: c4 08 60 02 ldub [ %g1 + 2 ], %g2 <== NOT EXECUTED
203b2b8: c8 08 60 03 ldub [ %g1 + 3 ], %g4 <== NOT EXECUTED
203b2bc: c6 08 60 01 ldub [ %g1 + 1 ], %g3 <== NOT EXECUTED
203b2c0: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203b2c4: 83 2b 60 18 sll %o5, 0x18, %g1 <== NOT EXECUTED
203b2c8: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
203b2cc: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
203b2d0: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
203b2d4: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
203b2d8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203b2dc: c2 24 a0 94 st %g1, [ %l2 + 0x94 ] <== NOT EXECUTED
203b2e0: 7f ff 49 0d call 200d714 <_Chain_Append> <== NOT EXECUTED
203b2e4: 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);
203b2e8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203b2ec: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203b2f0: 40 00 06 e6 call 203ce88 <rtems_rfs_inode_unload> <== NOT EXECUTED
203b2f4: 94 10 20 00 clr %o2 <== NOT EXECUTED
}
handle->flags = flags;
handle->shared = shared;
*file = handle;
203b2f8: 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;
203b2fc: f4 24 00 00 st %i2, [ %l0 ] <== NOT EXECUTED
handle->shared = shared;
203b300: e4 24 20 1c st %l2, [ %l0 + 0x1c ] <== NOT EXECUTED
*file = handle;
203b304: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
203b308: 81 c7 e0 08 ret <== NOT EXECUTED
203b30c: 81 e8 00 00 restore <== NOT EXECUTED
0203ac44 <rtems_rfs_file_seek>:
int
rtems_rfs_file_seek (rtems_rfs_file_handle* handle,
rtems_rfs_pos pos,
rtems_rfs_pos* new_pos)
{
203ac44: 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),
203ac48: 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)
{
203ac4c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
203ac50: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
203ac54: 7f ff f6 c1 call 2038758 <rtems_rfs_block_get_size> <== NOT EXECUTED
203ac58: 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),
203ac5c: 80 a2 00 19 cmp %o0, %i1 <== NOT EXECUTED
203ac60: 38 80 00 08 bgu,a 203ac80 <rtems_rfs_file_seek+0x3c> <== NOT EXECUTED
203ac64: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203ac68: 80 a2 00 19 cmp %o0, %i1 <== NOT EXECUTED
203ac6c: 12 80 00 20 bne 203acec <rtems_rfs_file_seek+0xa8> <== NOT EXECUTED
203ac70: 80 a2 40 1a cmp %o1, %i2 <== NOT EXECUTED
203ac74: 08 80 00 1e bleu 203acec <rtems_rfs_file_seek+0xa8> <== NOT EXECUTED
203ac78: 01 00 00 00 nop <== NOT EXECUTED
handle->shared))
{
rtems_rfs_file_set_bpos (handle, pos);
203ac7c: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203ac80: a2 04 20 10 add %l0, 0x10, %l1 <== NOT EXECUTED
203ac84: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
203ac88: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203ac8c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
203ac90: 7f ff f6 83 call 203869c <rtems_rfs_block_get_bpos> <== NOT EXECUTED
203ac94: 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))
203ac98: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
203ac9c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203aca0: 02 80 00 18 be 203ad00 <rtems_rfs_file_seek+0xbc> <== NOT EXECUTED
203aca4: 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),
203aca8: d2 04 20 1c ld [ %l0 + 0x1c ], %o1 <== NOT EXECUTED
203acac: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
203acb0: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
203acb4: 7f ff f6 e3 call 2038840 <rtems_rfs_block_map_find> <== NOT EXECUTED
203acb8: 92 02 60 34 add %o1, 0x34, %o1 <== NOT EXECUTED
rtems_rfs_file_map (handle),
rtems_rfs_file_bpos (handle),
&block);
if (rc > 0)
203acbc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203acc0: 14 80 00 13 bg 203ad0c <rtems_rfs_file_seek+0xc8> <== NOT EXECUTED
203acc4: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
return rc;
if (rtems_rfs_buffer_bnum (&handle->buffer) != block)
203acc8: c4 04 20 08 ld [ %l0 + 8 ], %g2 <== NOT EXECUTED
203accc: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203acd0: 02 80 00 0c be 203ad00 <rtems_rfs_file_seek+0xbc> <== NOT EXECUTED
203acd4: 92 04 20 04 add %l0, 4, %o1 <== NOT EXECUTED
{
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
203acd8: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203acdc: 7f ff fa cb call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203ace0: 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)
203ace4: 10 80 00 05 b 203acf8 <rtems_rfs_file_seek+0xb4> <== NOT EXECUTED
203ace8: 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);
203acec: 7f ff ff 10 call 203a92c <rtems_rfs_file_io_release> <== NOT EXECUTED
203acf0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc > 0)
203acf4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203acf8: 14 80 00 05 bg 203ad0c <rtems_rfs_file_seek+0xc8> <== NOT EXECUTED
203acfc: 01 00 00 00 nop <== NOT EXECUTED
return rc;
}
*new_pos = pos;
203ad00: f4 26 e0 04 st %i2, [ %i3 + 4 ] <== NOT EXECUTED
203ad04: f2 26 c0 00 st %i1, [ %i3 ] <== NOT EXECUTED
203ad08: 90 10 20 00 clr %o0 <== NOT EXECUTED
return 0;
}
203ad0c: 81 c7 e0 08 ret <== NOT EXECUTED
203ad10: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203a95c <rtems_rfs_file_set_size>:
}
int
rtems_rfs_file_set_size (rtems_rfs_file_handle* handle,
rtems_rfs_pos new_size)
{
203a95c: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED
rtems_rfs_block_map* map = rtems_rfs_file_map (handle);
203a960: 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)
{
203a964: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
203a968: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
203a96c: 92 04 60 84 add %l1, 0x84, %o1 <== NOT EXECUTED
203a970: 7f ff f7 7a call 2038758 <rtems_rfs_block_get_size> <== NOT EXECUTED
203a974: 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)
203a978: 80 a2 00 19 cmp %o0, %i1 <== NOT EXECUTED
203a97c: 12 80 00 05 bne 203a990 <rtems_rfs_file_set_size+0x34> <== NOT EXECUTED
203a980: a6 10 00 1a mov %i2, %l3 <== NOT EXECUTED
203a984: 80 a2 40 1a cmp %o1, %i2 <== NOT EXECUTED
203a988: 22 80 00 ad be,a 203ac3c <rtems_rfs_file_set_size+0x2e0> <== NOT EXECUTED
203a98c: 90 10 20 00 clr %o0 <== NOT EXECUTED
{
/*
* Short cut for the common truncate on open call.
*/
if (new_size == 0)
203a990: 80 94 80 13 orcc %l2, %l3, %g0 <== NOT EXECUTED
203a994: 12 80 00 0b bne 203a9c0 <rtems_rfs_file_set_size+0x64> <== NOT EXECUTED
203a998: ac 04 60 34 add %l1, 0x34, %l6 <== NOT EXECUTED
{
rc = rtems_rfs_block_map_free_all (rtems_rfs_file_fs (handle), map);
203a99c: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203a9a0: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
203a9a4: 7f ff f9 25 call 2038e38 <rtems_rfs_block_map_free_all> <== NOT EXECUTED
203a9a8: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
if (rc > 0)
203a9ac: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203a9b0: 14 80 00 a3 bg 203ac3c <rtems_rfs_file_set_size+0x2e0> <== NOT EXECUTED
203a9b4: 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);
203a9b8: 10 80 00 95 b 203ac0c <rtems_rfs_file_set_size+0x2b0> <== NOT EXECUTED
203a9bc: e4 04 20 1c ld [ %l0 + 0x1c ], %l2 <== NOT EXECUTED
if (rc > 0)
return rc;
}
else
{
if (size < new_size)
203a9c0: 80 a4 80 08 cmp %l2, %o0 <== NOT EXECUTED
203a9c4: 38 80 00 09 bgu,a 203a9e8 <rtems_rfs_file_set_size+0x8c> <== NOT EXECUTED
203a9c8: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203a9cc: 80 a4 80 08 cmp %l2, %o0 <== NOT EXECUTED
203a9d0: 32 80 00 58 bne,a 203ab30 <rtems_rfs_file_set_size+0x1d4><== NOT EXECUTED
203a9d4: ea 04 20 1c ld [ %l0 + 0x1c ], %l5 <== NOT EXECUTED
203a9d8: 80 a4 c0 09 cmp %l3, %o1 <== NOT EXECUTED
203a9dc: 28 80 00 55 bleu,a 203ab30 <rtems_rfs_file_set_size+0x1d4><== NOT EXECUTED
203a9e0: 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));
203a9e4: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
*/
rtems_rfs_pos count;
uint32_t length;
bool read_block;
count = new_size - size;
203a9e8: a6 a4 c0 09 subcc %l3, %o1, %l3 <== NOT EXECUTED
length = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
203a9ec: c2 00 60 98 ld [ %g1 + 0x98 ], %g1 <== NOT EXECUTED
*/
rtems_rfs_pos count;
uint32_t length;
bool read_block;
count = new_size - size;
203a9f0: 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),
203a9f4: 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));
203a9f8: 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),
203a9fc: 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),
203aa00: b6 07 bf f0 add %fp, -16, %i3 <== NOT EXECUTED
203aa04: 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)
203aa08: 10 80 00 45 b 203ab1c <rtems_rfs_file_set_size+0x1c0> <== NOT EXECUTED
203aa0c: 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);
203aa10: c2 27 bf f0 st %g1, [ %fp + -16 ] <== NOT EXECUTED
203aa14: c4 04 60 40 ld [ %l1 + 0x40 ], %g2 <== NOT EXECUTED
203aa18: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
203aa1c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203aa20: 02 80 00 04 be 203aa30 <rtems_rfs_file_set_size+0xd4> <== NOT EXECUTED
203aa24: c4 27 bf f4 st %g2, [ %fp + -12 ] <== NOT EXECUTED
203aa28: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
203aa2c: c2 27 bf f0 st %g1, [ %fp + -16 ] <== NOT EXECUTED
rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),
203aa30: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203aa34: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
203aa38: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
203aa3c: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED
203aa40: 7f ff f7 80 call 2038840 <rtems_rfs_block_map_find> <== NOT EXECUTED
203aa44: 96 10 00 17 mov %l7, %o3 <== NOT EXECUTED
map, &bpos, &block);
if (rc > 0)
203aa48: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203aa4c: 04 80 00 0c ble 203aa7c <rtems_rfs_file_set_size+0x120> <== NOT EXECUTED
203aa50: 80 a2 20 06 cmp %o0, 6 <== NOT EXECUTED
{
/*
* Have we reached the EOF ?
*/
if (rc != ENXIO)
203aa54: 12 80 00 7a bne 203ac3c <rtems_rfs_file_set_size+0x2e0> <== NOT EXECUTED
203aa58: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
return rc;
rc = rtems_rfs_block_map_grow (rtems_rfs_file_fs (handle),
203aa5c: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203aa60: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
203aa64: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203aa68: 7f ff f9 3f call 2038f64 <rtems_rfs_block_map_grow> <== NOT EXECUTED
203aa6c: 96 10 00 17 mov %l7, %o3 <== NOT EXECUTED
map, 1, &block);
if (rc > 0)
203aa70: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203aa74: 14 80 00 72 bg 203ac3c <rtems_rfs_file_set_size+0x2e0> <== NOT EXECUTED
203aa78: 01 00 00 00 nop <== NOT EXECUTED
return rc;
}
if (count < (length - bpos.boff))
203aa7c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
203aa80: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
203aa84: 12 80 00 0a bne 203aaac <rtems_rfs_file_set_size+0x150> <== NOT EXECUTED
203aa88: 84 25 00 01 sub %l4, %g1, %g2 <== NOT EXECUTED
203aa8c: 80 a0 80 13 cmp %g2, %l3 <== NOT EXECUTED
203aa90: 28 80 00 08 bleu,a 203aab0 <rtems_rfs_file_set_size+0x154><== NOT EXECUTED
203aa94: c0 24 60 40 clr [ %l1 + 0x40 ] <== NOT EXECUTED
{
length = count + bpos.boff;
203aa98: 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;
203aa9c: 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;
203aaa0: e8 24 60 40 st %l4, [ %l1 + 0x40 ] <== NOT EXECUTED
map->dirty = true;
203aaa4: 10 80 00 04 b 203aab4 <rtems_rfs_file_set_size+0x158> <== NOT EXECUTED
203aaa8: 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;
203aaac: c0 24 60 40 clr [ %l1 + 0x40 ] <== NOT EXECUTED
map->dirty = true;
203aab0: 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),
203aab4: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203aab8: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
203aabc: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
203aac0: 92 10 00 1c mov %i4, %o1 <== NOT EXECUTED
203aac4: 7f ff fb 9b call 2039930 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203aac8: 96 0f 60 01 and %i5, 1, %o3 <== NOT EXECUTED
rtems_rfs_file_buffer (handle),
block, read_block);
if (rc > 0)
203aacc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203aad0: 14 80 00 5b bg 203ac3c <rtems_rfs_file_set_size+0x2e0> <== NOT EXECUTED
203aad4: 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);
203aad8: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED
203aadc: d0 00 a0 24 ld [ %g2 + 0x24 ], %o0 <== NOT EXECUTED
203aae0: 94 25 00 01 sub %l4, %g1, %o2 <== NOT EXECUTED
203aae4: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED
203aae8: 40 00 2e 2f call 20463a4 <memset> <== NOT EXECUTED
203aaec: 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),
203aaf0: 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));
203aaf4: ea 2c 20 04 stb %l5, [ %l0 + 4 ] <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
203aaf8: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
203aafc: 7f ff fb 43 call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203ab00: 92 10 00 1c mov %i4, %o1 <== NOT EXECUTED
rtems_rfs_file_buffer (handle));
if (rc > 0)
203ab04: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203ab08: 14 80 00 4d bg 203ac3c <rtems_rfs_file_set_size+0x2e0> <== NOT EXECUTED
203ab0c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
return rc;
count -= length - bpos.boff;
203ab10: 82 25 00 01 sub %l4, %g1, %g1 <== NOT EXECUTED
203ab14: a6 a4 c0 01 subcc %l3, %g1, %l3 <== NOT EXECUTED
203ab18: 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)
203ab1c: 80 94 80 13 orcc %l2, %l3, %g0 <== NOT EXECUTED
203ab20: 32 bf ff bc bne,a 203aa10 <rtems_rfs_file_set_size+0xb4> <== NOT EXECUTED
203ab24: 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);
203ab28: 10 80 00 39 b 203ac0c <rtems_rfs_file_set_size+0x2b0> <== NOT EXECUTED
203ab2c: e4 04 20 1c ld [ %l0 + 0x1c ], %l2 <== NOT EXECUTED
* Shrink
*/
rtems_rfs_block_no blocks;
uint32_t offset;
blocks =
203ab30: 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);
203ab34: ec 05 60 98 ld [ %l5 + 0x98 ], %l6 <== NOT EXECUTED
* Shrink
*/
rtems_rfs_block_no blocks;
uint32_t offset;
blocks =
203ab38: 90 44 bf ff addx %l2, -1, %o0 <== NOT EXECUTED
rtems_rfs_block_map_count (map) -
(((new_size - 1) /
203ab3c: e8 05 a0 08 ld [ %l6 + 8 ], %l4 <== NOT EXECUTED
* Shrink
*/
rtems_rfs_block_no blocks;
uint32_t offset;
blocks =
203ab40: 94 10 20 00 clr %o2 <== NOT EXECUTED
203ab44: 40 00 85 23 call 205bfd0 <__udivdi3> <== NOT EXECUTED
203ab48: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
203ab4c: c2 04 60 3c ld [ %l1 + 0x3c ], %g1 <== NOT EXECUTED
203ab50: 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)
203ab54: 94 82 80 01 addcc %o2, %g1, %o2 <== NOT EXECUTED
203ab58: 02 80 00 09 be 203ab7c <rtems_rfs_file_set_size+0x220> <== NOT EXECUTED
203ab5c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
{
int rc;
rc = rtems_rfs_block_map_shrink (rtems_rfs_file_fs (handle),
203ab60: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
203ab64: 7f ff f7 ee call 2038b1c <rtems_rfs_block_map_shrink> <== NOT EXECUTED
203ab68: 92 05 60 34 add %l5, 0x34, %o1 <== NOT EXECUTED
rtems_rfs_file_map (handle),
blocks);
if (rc > 0)
203ab6c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203ab70: 14 80 00 33 bg 203ac3c <rtems_rfs_file_set_size+0x2e0> <== NOT EXECUTED
203ab74: 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 =
203ab78: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
203ab7c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203ab80: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
203ab84: 40 00 85 e4 call 205c314 <__umoddi3> <== NOT EXECUTED
203ab88: 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;
203ab8c: 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),
203ab90: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
map->dirty = true;
203ab94: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
203ab98: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203ab9c: 02 80 00 06 be 203abb4 <rtems_rfs_file_set_size+0x258> <== NOT EXECUTED
203aba0: 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);
203aba4: c4 04 60 3c ld [ %l1 + 0x3c ], %g2 <== NOT EXECUTED
203aba8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203abac: 22 80 00 0f be,a 203abe8 <rtems_rfs_file_set_size+0x28c> <== NOT EXECUTED
203abb0: 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),
203abb4: c4 04 60 3c ld [ %l1 + 0x3c ], %g2 <== NOT EXECUTED
203abb8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203abbc: 3a 80 00 0b bcc,a 203abe8 <rtems_rfs_file_set_size+0x28c><== NOT EXECUTED
203abc0: c2 04 60 3c ld [ %l1 + 0x3c ], %g1 <== NOT EXECUTED
203abc4: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
203abc8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203abcc: 32 80 00 10 bne,a 203ac0c <rtems_rfs_file_set_size+0x2b0><== NOT EXECUTED
203abd0: e4 04 20 1c ld [ %l0 + 0x1c ], %l2 <== NOT EXECUTED
203abd4: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
203abd8: 80 a0 40 09 cmp %g1, %o1 <== NOT EXECUTED
203abdc: 28 80 00 0c bleu,a 203ac0c <rtems_rfs_file_set_size+0x2b0><== NOT EXECUTED
203abe0: 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),
203abe4: c2 04 60 3c ld [ %l1 + 0x3c ], %g1 <== NOT EXECUTED
203abe8: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED
203abec: c4 04 60 40 ld [ %l1 + 0x40 ], %g2 <== NOT EXECUTED
203abf0: c0 24 20 18 clr [ %l0 + 0x18 ] <== NOT EXECUTED
203abf4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203abf8: 02 80 00 04 be 203ac08 <rtems_rfs_file_set_size+0x2ac> <== NOT EXECUTED
203abfc: c4 24 20 14 st %g2, [ %l0 + 0x14 ] <== NOT EXECUTED
203ac00: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
203ac04: 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);
203ac08: e4 04 20 1c ld [ %l0 + 0x1c ], %l2 <== NOT EXECUTED
203ac0c: c2 04 60 3c ld [ %l1 + 0x3c ], %g1 <== NOT EXECUTED
handle->shared->size.offset = rtems_rfs_block_map_size_offset (map);
203ac10: 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);
203ac14: c2 24 a0 84 st %g1, [ %l2 + 0x84 ] <== NOT EXECUTED
handle->shared->size.offset = rtems_rfs_block_map_size_offset (map);
203ac18: c4 24 a0 88 st %g2, [ %l2 + 0x88 ] <== NOT EXECUTED
if (rtems_rfs_file_update_mtime (handle))
203ac1c: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
203ac20: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
203ac24: 12 80 00 06 bne 203ac3c <rtems_rfs_file_set_size+0x2e0> <== NOT EXECUTED
203ac28: 90 10 20 00 clr %o0 <== NOT EXECUTED
handle->shared->mtime = time (NULL);
203ac2c: 40 00 50 a1 call 204eeb0 <time> <== NOT EXECUTED
203ac30: 90 10 20 00 clr %o0 <== NOT EXECUTED
203ac34: d0 24 a0 90 st %o0, [ %l2 + 0x90 ] <== NOT EXECUTED
203ac38: 90 10 20 00 clr %o0 <== NOT EXECUTED
}
return 0;
}
203ac3c: 81 c7 e0 08 ret <== NOT EXECUTED
203ac40: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203b9fc <rtems_rfs_format>:
return rc;
}
int
rtems_rfs_format (const char* name, const rtems_rfs_format_config* config)
{
203b9fc: 9d e3 be c0 save %sp, -320, %sp <== NOT EXECUTED
rtems_rfs_file_system fs;
int group;
int rc;
if (config->verbose)
203ba00: c2 0e 60 15 ldub [ %i1 + 0x15 ], %g1 <== NOT EXECUTED
203ba04: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203ba08: 02 80 00 07 be 203ba24 <rtems_rfs_format+0x28> <== NOT EXECUTED
203ba0c: a0 07 bf 2c add %fp, -212, %l0 <== NOT EXECUTED
printf ("rtems-rfs: format: %s\n", name);
203ba10: 11 00 81 9a sethi %hi(0x2066800), %o0 <== NOT EXECUTED
203ba14: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
203ba18: 40 00 2e 7f call 2047414 <printf> <== NOT EXECUTED
203ba1c: 90 12 22 20 or %o0, 0x220, %o0 <== NOT EXECUTED
memset (&fs, 0, sizeof (rtems_rfs_file_system));
203ba20: a0 07 bf 2c add %fp, -212, %l0 <== NOT EXECUTED
203ba24: 92 10 20 00 clr %o1 <== NOT EXECUTED
203ba28: 94 10 20 80 mov 0x80, %o2 <== NOT EXECUTED
203ba2c: 40 00 2a 5e call 20463a4 <memset> <== NOT EXECUTED
203ba30: 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);
203ba34: 82 07 bf 70 add %fp, -144, %g1 <== NOT EXECUTED
203ba38: c2 27 bf 6c st %g1, [ %fp + -148 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
203ba3c: 82 07 bf 6c add %fp, -148, %g1 <== NOT EXECUTED
203ba40: 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);
203ba44: 82 07 bf 80 add %fp, -128, %g1 <== NOT EXECUTED
203ba48: c2 27 bf 7c st %g1, [ %fp + -132 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
203ba4c: 82 07 bf 7c add %fp, -132, %g1 <== NOT EXECUTED
203ba50: 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);
203ba54: 82 07 bf 90 add %fp, -112, %g1 <== NOT EXECUTED
203ba58: c2 27 bf 8c st %g1, [ %fp + -116 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
203ba5c: 82 07 bf 8c add %fp, -116, %g1 <== NOT EXECUTED
203ba60: 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);
203ba64: 82 07 bf a0 add %fp, -96, %g1 <== NOT EXECUTED
203ba68: c2 27 bf 9c st %g1, [ %fp + -100 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
203ba6c: 82 07 bf 9c add %fp, -100, %g1 <== NOT EXECUTED
203ba70: 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;
203ba74: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203ba78: 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;
203ba7c: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED
/*
* Open the buffer interface.
*/
rc = rtems_rfs_buffer_open (name, &fs);
203ba80: 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;
203ba84: c2 27 bf 2c st %g1, [ %fp + -212 ] <== NOT EXECUTED
/*
* Open the buffer interface.
*/
rc = rtems_rfs_buffer_open (name, &fs);
203ba88: 7f ff f7 49 call 20397ac <rtems_rfs_buffer_open> <== NOT EXECUTED
203ba8c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
if (rc > 0)
203ba90: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
203ba94: 04 80 00 09 ble 203bab8 <rtems_rfs_format+0xbc> <== NOT EXECUTED
203ba98: c2 07 bf 38 ld [ %fp + -200 ], %g1 <== NOT EXECUTED
{
printf ("rtems-rfs: format: buffer open failed: %d: %s\n",
203ba9c: 40 00 36 ff call 2049698 <strerror> <== NOT EXECUTED
203baa0: 01 00 00 00 nop <== NOT EXECUTED
203baa4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203baa8: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203baac: 11 00 81 9a sethi %hi(0x2066800), %o0 <== NOT EXECUTED
203bab0: 10 80 02 7d b 203c4a4 <rtems_rfs_format+0xaa8> <== NOT EXECUTED
203bab4: 90 12 22 38 or %o0, 0x238, %o0 ! 2066a38 <__FUNCTION__.7657+0x98><== NOT EXECUTED
}
/*
* Check the media.
*/
if (rtems_rfs_fs_media_block_size (&fs) == 0)
203bab8: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
203babc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203bac0: 32 80 00 06 bne,a 203bad8 <rtems_rfs_format+0xdc> <== NOT EXECUTED
203bac4: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
{
printf ("rtems-rfs: media block is invalid: %" PRIu32 "\n",
203bac8: 11 00 81 9a sethi %hi(0x2066800), %o0 <== NOT EXECUTED
203bacc: 92 10 20 00 clr %o1 <== NOT EXECUTED
203bad0: 10 80 01 7f b 203c0cc <rtems_rfs_format+0x6d0> <== NOT EXECUTED
203bad4: 90 12 22 68 or %o0, 0x268, %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)
203bad8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203badc: 12 80 00 2a bne 203bb84 <rtems_rfs_format+0x188> <== NOT EXECUTED
203bae0: c2 27 bf 34 st %g1, [ %fp + -204 ] <== NOT EXECUTED
{
uint64_t total_size = rtems_rfs_fs_media_size (fs);
203bae4: 7f ff fe 14 call 203b334 <rtems_rfs_fs_media_size> <== NOT EXECUTED
203bae8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (total_size >= GIGS (1))
203baec: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203baf0: 12 80 00 08 bne 203bb10 <rtems_rfs_format+0x114> <== NOT EXECUTED
203baf4: 84 10 20 00 clr %g2 <== NOT EXECUTED
203baf8: 03 00 03 ff sethi %hi(0xffc00), %g1 <== NOT EXECUTED
203bafc: 82 10 63 ff or %g1, 0x3ff, %g1 ! fffff <PROM_START+0xfffff><== NOT EXECUTED
203bb00: 80 a2 40 01 cmp %o1, %g1 <== NOT EXECUTED
203bb04: 08 80 00 16 bleu 203bb5c <rtems_rfs_format+0x160> <== NOT EXECUTED
203bb08: c2 07 bf 34 ld [ %fp + -204 ], %g1 <== NOT EXECUTED
{
uint32_t gigs = (total_size + GIGS (1)) / GIGS (1);
203bb0c: 84 10 20 00 clr %g2 <== NOT EXECUTED
203bb10: 07 00 04 00 sethi %hi(0x100000), %g3 <== NOT EXECUTED
203bb14: 92 82 40 03 addcc %o1, %g3, %o1 <== NOT EXECUTED
203bb18: 83 32 60 14 srl %o1, 0x14, %g1 <== NOT EXECUTED
203bb1c: 90 42 00 02 addx %o0, %g2, %o0 <== NOT EXECUTED
int b;
for (b = 31; b > 0; b--)
if ((gigs & (1 << b)) != 0)
203bb20: 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);
203bb24: 91 2a 20 0c sll %o0, 0xc, %o0 <== NOT EXECUTED
203bb28: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
203bb2c: 82 10 20 1f mov 0x1f, %g1 <== NOT EXECUTED
int b;
for (b = 31; b > 0; b--)
if ((gigs & (1 << b)) != 0)
203bb30: 87 28 80 01 sll %g2, %g1, %g3 <== NOT EXECUTED
203bb34: 80 88 c0 08 btst %g3, %o0 <== NOT EXECUTED
203bb38: 32 80 00 06 bne,a 203bb50 <rtems_rfs_format+0x154> <== NOT EXECUTED
203bb3c: 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--)
203bb40: 82 80 7f ff addcc %g1, -1, %g1 <== NOT EXECUTED
203bb44: 12 bf ff fc bne 203bb34 <rtems_rfs_format+0x138> <== NOT EXECUTED
203bb48: 87 28 80 01 sll %g2, %g1, %g3 <== NOT EXECUTED
if ((gigs & (1 << b)) != 0)
break;
fs->block_size = 1 << b;
203bb4c: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
203bb50: 83 28 80 01 sll %g2, %g1, %g1 <== NOT EXECUTED
203bb54: c2 27 bf 34 st %g1, [ %fp + -204 ] <== NOT EXECUTED
}
if (fs->block_size < 512)
203bb58: c2 07 bf 34 ld [ %fp + -204 ], %g1 <== NOT EXECUTED
203bb5c: 80 a0 61 ff cmp %g1, 0x1ff <== NOT EXECUTED
203bb60: 18 80 00 05 bgu 203bb74 <rtems_rfs_format+0x178> <== NOT EXECUTED
203bb64: c4 07 bf 34 ld [ %fp + -204 ], %g2 <== NOT EXECUTED
fs->block_size = 512;
203bb68: 82 10 22 00 mov 0x200, %g1 <== NOT EXECUTED
203bb6c: c2 27 bf 34 st %g1, [ %fp + -204 ] <== NOT EXECUTED
if (fs->block_size > (4 * 1024))
203bb70: c4 07 bf 34 ld [ %fp + -204 ], %g2 <== NOT EXECUTED
203bb74: 03 00 00 04 sethi %hi(0x1000), %g1 <== NOT EXECUTED
203bb78: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203bb7c: 38 80 00 02 bgu,a 203bb84 <rtems_rfs_format+0x188> <== NOT EXECUTED
203bb80: 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)
203bb84: c2 07 bf 38 ld [ %fp + -200 ], %g1 <== NOT EXECUTED
203bb88: e0 07 bf 34 ld [ %fp + -204 ], %l0 <== NOT EXECUTED
203bb8c: e2 00 60 24 ld [ %g1 + 0x24 ], %l1 <== NOT EXECUTED
203bb90: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203bb94: 40 00 7d fe call 205b38c <.urem> <== NOT EXECUTED
203bb98: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203bb9c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203bba0: 22 80 00 07 be,a 203bbbc <rtems_rfs_format+0x1c0> <== NOT EXECUTED
203bba4: c2 06 60 04 ld [ %i1 + 4 ], %g1 <== NOT EXECUTED
{
printf ("block size (%zd) is not a multiple of media block size (%" PRId32 ")\n",
203bba8: 11 00 81 9a sethi %hi(0x2066800), %o0 <== NOT EXECUTED
203bbac: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203bbb0: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
203bbb4: 10 80 02 3c b 203c4a4 <rtems_rfs_format+0xaa8> <== NOT EXECUTED
203bbb8: 90 12 22 90 or %o0, 0x290, %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)
203bbbc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203bbc0: 12 80 00 04 bne 203bbd0 <rtems_rfs_format+0x1d4> <== NOT EXECUTED
203bbc4: 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);
203bbc8: a1 2c 20 03 sll %l0, 3, %l0 <== NOT EXECUTED
203bbcc: e0 27 bf 50 st %l0, [ %fp + -176 ] <== NOT EXECUTED
}
if (fs->group_blocks > rtems_rfs_bitmap_numof_bits (fs->block_size))
203bbd0: c2 07 bf 34 ld [ %fp + -204 ], %g1 <== NOT EXECUTED
203bbd4: c4 07 bf 50 ld [ %fp + -176 ], %g2 <== NOT EXECUTED
203bbd8: 83 28 60 03 sll %g1, 3, %g1 <== NOT EXECUTED
{
printf ("group block count is higher than bits in block\n");
203bbdc: 11 00 81 9a sethi %hi(0x2066800), %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))
203bbe0: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203bbe4: 18 80 01 2a bgu 203c08c <rtems_rfs_format+0x690> <== NOT EXECUTED
203bbe8: 90 12 22 d0 or %o0, 0x2d0, %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;
203bbec: 7f ff fd d2 call 203b334 <rtems_rfs_fs_media_size> <== NOT EXECUTED
203bbf0: 90 07 bf 2c add %fp, -212, %o0 <== NOT EXECUTED
203bbf4: e0 07 bf 34 ld [ %fp + -204 ], %l0 <== NOT EXECUTED
203bbf8: 94 10 20 00 clr %o2 <== NOT EXECUTED
203bbfc: 40 00 80 f5 call 205bfd0 <__udivdi3> <== NOT EXECUTED
203bc00: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
203bc04: d2 27 bf 30 st %o1, [ %fp + -208 ] <== NOT EXECUTED
203bc08: 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)
203bc0c: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
203bc10: 02 80 00 06 be 203bc28 <rtems_rfs_format+0x22c> <== NOT EXECUTED
203bc14: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
203bc18: 93 2c 20 03 sll %l0, 3, %o1 <== NOT EXECUTED
203bc1c: 40 00 7d 30 call 205b0dc <.udiv> <== NOT EXECUTED
203bc20: 90 04 7f ff add %l1, -1, %o0 <== NOT EXECUTED
203bc24: 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;
203bc28: 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),
203bc2c: 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)
203bc30: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203bc34: 12 80 00 19 bne 203bc98 <rtems_rfs_format+0x29c> <== NOT EXECUTED
203bc38: 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)
203bc3c: d0 06 60 0c ld [ %i1 + 0xc ], %o0 <== NOT EXECUTED
203bc40: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203bc44: 22 80 00 02 be,a 203bc4c <rtems_rfs_format+0x250> <== NOT EXECUTED
203bc48: 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) -
203bc4c: 7f ff 1b 6b call 20029f8 <.umul> <== NOT EXECUTED
203bc50: 92 04 7f ff add %l1, -1, %o1 <== NOT EXECUTED
203bc54: 92 10 20 64 mov 0x64, %o1 <== NOT EXECUTED
203bc58: 40 00 7d 21 call 205b0dc <.udiv> <== NOT EXECUTED
203bc5c: 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)
203bc60: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203bc64: 22 80 00 07 be,a 203bc80 <rtems_rfs_format+0x284> <== NOT EXECUTED
203bc68: d0 07 bf 34 ld [ %fp + -204 ], %o0 <== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
203bc6c: 90 02 3f ff add %o0, -1, %o0 <== NOT EXECUTED
203bc70: 40 00 7d 1b call 205b0dc <.udiv> <== NOT EXECUTED
203bc74: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203bc78: 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);
203bc7c: d0 07 bf 34 ld [ %fp + -204 ], %o0 <== NOT EXECUTED
203bc80: 40 00 7d 17 call 205b0dc <.udiv> <== NOT EXECUTED
203bc84: 92 10 20 38 mov 0x38, %o1 <== NOT EXECUTED
203bc88: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
203bc8c: 7f ff 1b 5b call 20029f8 <.umul> <== NOT EXECUTED
203bc90: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203bc94: 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;
203bc98: d0 07 bf 34 ld [ %fp + -204 ], %o0 <== NOT EXECUTED
203bc9c: 40 00 7d 10 call 205b0dc <.udiv> <== NOT EXECUTED
203bca0: 92 10 20 38 mov 0x38, %o1 <== NOT EXECUTED
fs->group_inodes =
rtems_rfs_rup_quotient (fs->group_inodes,
203bca4: 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;
203bca8: d0 27 bf 58 st %o0, [ %fp + -168 ] <== NOT EXECUTED
203bcac: 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)
203bcb0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203bcb4: 02 80 00 06 be 203bccc <rtems_rfs_format+0x2d0> <== NOT EXECUTED
203bcb8: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
203bcbc: 90 00 7f ff add %g1, -1, %o0 <== NOT EXECUTED
203bcc0: 40 00 7d 07 call 205b0dc <.udiv> <== NOT EXECUTED
203bcc4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203bcc8: 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,
203bccc: 7f ff 1b 4b call 20029f8 <.umul> <== NOT EXECUTED
203bcd0: 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))
203bcd4: c2 07 bf 34 ld [ %fp + -204 ], %g1 <== NOT EXECUTED
203bcd8: 83 28 60 03 sll %g1, 3, %g1 <== NOT EXECUTED
203bcdc: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED
203bce0: 08 80 00 03 bleu 203bcec <rtems_rfs_format+0x2f0> <== NOT EXECUTED
203bce4: d0 27 bf 54 st %o0, [ %fp + -172 ] <== NOT EXECUTED
fs->group_inodes = rtems_rfs_bitmap_numof_bits (fs->block_size);
203bce8: c2 27 bf 54 st %g1, [ %fp + -172 ] <== NOT EXECUTED
fs->max_name_length = config->max_name_length;
203bcec: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
if (!fs->max_name_length)
203bcf0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203bcf4: 12 80 02 7e bne 203c6ec <rtems_rfs_format+0xcf0> <== NOT EXECUTED
203bcf8: c2 27 bf 44 st %g1, [ %fp + -188 ] <== NOT EXECUTED
{
fs->max_name_length = 512;
203bcfc: 82 10 22 00 mov 0x200, %g1 <== NOT EXECUTED
203bd00: 10 80 02 7b b 203c6ec <rtems_rfs_format+0xcf0> <== NOT EXECUTED
203bd04: 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",
203bd08: 7f ff fd 8b call 203b334 <rtems_rfs_fs_media_size> <== NOT EXECUTED
203bd0c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203bd10: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED
203bd14: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
203bd18: 11 00 81 9a sethi %hi(0x2066800), %o0 <== NOT EXECUTED
203bd1c: 40 00 2d be call 2047414 <printf> <== NOT EXECUTED
203bd20: 90 12 23 00 or %o0, 0x300, %o0 ! 2066b00 <__FUNCTION__.7657+0x160><== NOT EXECUTED
rtems_rfs_fs_media_size (&fs));
printf ("rtems-rfs: format: media blocks = %" PRIu32 "\n",
203bd24: c2 07 bf 38 ld [ %fp + -200 ], %g1 <== NOT EXECUTED
203bd28: 11 00 81 9a sethi %hi(0x2066800), %o0 <== NOT EXECUTED
203bd2c: d2 00 60 1c ld [ %g1 + 0x1c ], %o1 <== NOT EXECUTED
203bd30: 40 00 2d b9 call 2047414 <printf> <== NOT EXECUTED
203bd34: 90 12 23 28 or %o0, 0x328, %o0 <== NOT EXECUTED
rtems_rfs_fs_media_blocks (&fs));
printf ("rtems-rfs: format: media block size = %" PRIu32 "\n",
203bd38: c2 07 bf 38 ld [ %fp + -200 ], %g1 <== NOT EXECUTED
203bd3c: 11 00 81 9a sethi %hi(0x2066800), %o0 <== NOT EXECUTED
203bd40: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
203bd44: 40 00 2d b4 call 2047414 <printf> <== NOT EXECUTED
203bd48: 90 12 23 50 or %o0, 0x350, %o0 <== NOT EXECUTED
rtems_rfs_fs_media_block_size (&fs));
printf ("rtems-rfs: format: size = %" PRIu64 "\n",
203bd4c: 7f ff fd 71 call 203b310 <rtems_rfs_fs_size> <== NOT EXECUTED
203bd50: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203bd54: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED
203bd58: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
203bd5c: 11 00 81 9a sethi %hi(0x2066800), %o0 <== NOT EXECUTED
203bd60: 40 00 2d ad call 2047414 <printf> <== NOT EXECUTED
203bd64: 90 12 23 80 or %o0, 0x380, %o0 ! 2066b80 <__FUNCTION__.7657+0x1e0><== NOT EXECUTED
rtems_rfs_fs_size (&fs));
printf ("rtems-rfs: format: blocks = %zu\n",
203bd68: d2 07 bf 30 ld [ %fp + -208 ], %o1 <== NOT EXECUTED
203bd6c: 11 00 81 9a sethi %hi(0x2066800), %o0 <== NOT EXECUTED
203bd70: 40 00 2d a9 call 2047414 <printf> <== NOT EXECUTED
203bd74: 90 12 23 a0 or %o0, 0x3a0, %o0 ! 2066ba0 <__FUNCTION__.7657+0x200><== NOT EXECUTED
rtems_rfs_fs_blocks (&fs));
printf ("rtems-rfs: format: block size = %zu\n",
203bd78: d2 07 bf 34 ld [ %fp + -204 ], %o1 <== NOT EXECUTED
203bd7c: 11 00 81 9a sethi %hi(0x2066800), %o0 <== NOT EXECUTED
203bd80: 40 00 2d a5 call 2047414 <printf> <== NOT EXECUTED
203bd84: 90 12 23 c8 or %o0, 0x3c8, %o0 ! 2066bc8 <__FUNCTION__.7657+0x228><== NOT EXECUTED
rtems_rfs_fs_block_size (&fs));
printf ("rtems-rfs: format: bits per block = %u\n",
203bd88: d2 07 bf 34 ld [ %fp + -204 ], %o1 <== NOT EXECUTED
203bd8c: 11 00 81 9a sethi %hi(0x2066800), %o0 <== NOT EXECUTED
203bd90: 93 2a 60 03 sll %o1, 3, %o1 <== NOT EXECUTED
203bd94: 40 00 2d a0 call 2047414 <printf> <== NOT EXECUTED
203bd98: 90 12 23 f0 or %o0, 0x3f0, %o0 <== NOT EXECUTED
rtems_rfs_bits_per_block (&fs));
printf ("rtems-rfs: format: inode size = %zu\n", RTEMS_RFS_INODE_SIZE);
203bd9c: 92 10 20 38 mov 0x38, %o1 <== NOT EXECUTED
203bda0: 11 00 81 9b sethi %hi(0x2066c00), %o0 <== NOT EXECUTED
203bda4: 40 00 2d 9c call 2047414 <printf> <== NOT EXECUTED
203bda8: 90 12 20 18 or %o0, 0x18, %o0 ! 2066c18 <__FUNCTION__.7657+0x278><== NOT EXECUTED
printf ("rtems-rfs: format: inodes = %zu (%d.%d%%)\n",
203bdac: 7f ff fe ef call 203b968 <rtems_rfs_inode_overhead> <== NOT EXECUTED
203bdb0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203bdb4: d2 07 bf 54 ld [ %fp + -172 ], %o1 <== NOT EXECUTED
203bdb8: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
203bdbc: 7f ff 1b 0f call 20029f8 <.umul> <== NOT EXECUTED
203bdc0: d0 07 bf 4c ld [ %fp + -180 ], %o0 <== NOT EXECUTED
203bdc4: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED
203bdc8: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
203bdcc: 40 00 7c c6 call 205b0e4 <.div> <== NOT EXECUTED
203bdd0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203bdd4: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED
203bdd8: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
203bddc: 40 00 7d 6e call 205b394 <.rem> <== NOT EXECUTED
203bde0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203bde4: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
203bde8: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
203bdec: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203bdf0: 11 00 81 9b sethi %hi(0x2066c00), %o0 <== NOT EXECUTED
203bdf4: 40 00 2d 88 call 2047414 <printf> <== NOT EXECUTED
203bdf8: 90 12 20 40 or %o0, 0x40, %o0 ! 2066c40 <__FUNCTION__.7657+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);
203bdfc: d2 07 bf 4c ld [ %fp + -180 ], %o1 <== NOT EXECUTED
203be00: 11 00 81 9b sethi %hi(0x2066c00), %o0 <== NOT EXECUTED
203be04: 40 00 2d 84 call 2047414 <printf> <== NOT EXECUTED
203be08: 90 12 20 70 or %o0, 0x70, %o0 ! 2066c70 <__FUNCTION__.7657+0x2d0><== NOT EXECUTED
printf ("rtems-rfs: format: group blocks = %zu\n", fs.group_blocks);
203be0c: d2 07 bf 50 ld [ %fp + -176 ], %o1 <== NOT EXECUTED
203be10: 11 00 81 9b sethi %hi(0x2066c00), %o0 <== NOT EXECUTED
203be14: 40 00 2d 80 call 2047414 <printf> <== NOT EXECUTED
203be18: 90 12 20 90 or %o0, 0x90, %o0 ! 2066c90 <__FUNCTION__.7657+0x2f0><== NOT EXECUTED
printf ("rtems-rfs: format: group inodes = %zu\n", fs.group_inodes);
203be1c: d2 07 bf 54 ld [ %fp + -172 ], %o1 <== NOT EXECUTED
203be20: 11 00 81 9b sethi %hi(0x2066c00), %o0 <== NOT EXECUTED
203be24: 40 00 2d 7c call 2047414 <printf> <== NOT EXECUTED
203be28: 90 12 20 b8 or %o0, 0xb8, %o0 ! 2066cb8 <__FUNCTION__.7657+0x318><== NOT EXECUTED
}
rc = rtems_rfs_buffer_setblksize (&fs, rtems_rfs_fs_block_size (&fs));
203be2c: d2 07 bf 34 ld [ %fp + -204 ], %o1 <== NOT EXECUTED
203be30: a6 07 bf 2c add %fp, -212, %l3 <== NOT EXECUTED
203be34: 7f ff f6 3f call 2039730 <rtems_rfs_buffer_setblksize> <== NOT EXECUTED
203be38: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
if (rc > 0)
203be3c: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203be40: 24 80 00 09 ble,a 203be64 <rtems_rfs_format+0x468> <== NOT EXECUTED
203be44: c0 2f bf ec clrb [ %fp + -20 ] <== NOT EXECUTED
{
printf ("rtems-rfs: format: setting block size failed: %d: %s\n",
203be48: 40 00 36 14 call 2049698 <strerror> <== NOT EXECUTED
203be4c: 01 00 00 00 nop <== NOT EXECUTED
203be50: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203be54: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203be58: 11 00 81 9b sethi %hi(0x2066c00), %o0 <== NOT EXECUTED
203be5c: 10 80 01 92 b 203c4a4 <rtems_rfs_format+0xaa8> <== NOT EXECUTED
203be60: 90 12 20 e0 or %o0, 0xe0, %o0 ! 2066ce0 <__FUNCTION__.7657+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;
203be64: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
handle->buffer = NULL;
203be68: 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);
203be6c: a4 07 bf ec add %fp, -20, %l2 <== NOT EXECUTED
203be70: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
203be74: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203be78: 94 10 20 00 clr %o2 <== NOT EXECUTED
203be7c: 7f ff f6 ad call 2039930 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203be80: 96 10 20 00 clr %o3 <== NOT EXECUTED
if (rc > 0)
203be84: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203be88: 04 80 00 0b ble 203beb4 <rtems_rfs_format+0x4b8> <== NOT EXECUTED
203be8c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
203be90: 7f ff fe d1 call 203b9d4 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203be94: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
printf ("rtems-rfs: write-superblock: request failed: %d: %s\n",
203be98: 40 00 36 00 call 2049698 <strerror> <== NOT EXECUTED
203be9c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203bea0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203bea4: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203bea8: 11 00 81 9b sethi %hi(0x2066c00), %o0 <== NOT EXECUTED
203beac: 10 80 00 74 b 203c07c <rtems_rfs_format+0x680> <== NOT EXECUTED
203beb0: 90 12 21 18 or %o0, 0x118, %o0 ! 2066d18 <__FUNCTION__.7657+0x378><== NOT EXECUTED
rc, strerror (rc));
return false;
}
sb = rtems_rfs_buffer_data (&handle);
203beb4: 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));
203beb8: 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);
203bebc: 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));
203bec0: 92 10 20 ff mov 0xff, %o1 <== NOT EXECUTED
203bec4: 40 00 29 38 call 20463a4 <memset> <== NOT EXECUTED
203bec8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_MAGIC, RTEMS_RFS_SB_MAGIC);
203becc: 84 10 20 28 mov 0x28, %g2 <== NOT EXECUTED
203bed0: c4 2c 00 00 stb %g2, [ %l0 ] <== NOT EXECUTED
203bed4: 84 10 20 09 mov 9, %g2 <== NOT EXECUTED
203bed8: c4 2c 20 01 stb %g2, [ %l0 + 1 ] <== NOT EXECUTED
203bedc: 84 10 20 20 mov 0x20, %g2 <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_VERSION, RTEMS_RFS_VERSION);
203bee0: c0 2c 20 04 clrb [ %l0 + 4 ] <== NOT EXECUTED
203bee4: c0 2c 20 05 clrb [ %l0 + 5 ] <== NOT EXECUTED
203bee8: c0 2c 20 06 clrb [ %l0 + 6 ] <== NOT EXECUTED
203beec: 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);
203bef0: c4 2c 20 02 stb %g2, [ %l0 + 2 ] <== NOT EXECUTED
203bef4: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203bef8: 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));
203befc: 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);
203bf00: 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));
203bf04: c4 2c 20 0c stb %g2, [ %l0 + 0xc ] <== NOT EXECUTED
203bf08: 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);
203bf0c: 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));
203bf10: c4 2c 20 0d stb %g2, [ %l0 + 0xd ] <== NOT EXECUTED
203bf14: c4 07 bf 30 ld [ %fp + -208 ], %g2 <== NOT EXECUTED
203bf18: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
203bf1c: c4 2c 20 0e stb %g2, [ %l0 + 0xe ] <== NOT EXECUTED
203bf20: c4 07 bf 30 ld [ %fp + -208 ], %g2 <== NOT EXECUTED
203bf24: c4 2c 20 0f stb %g2, [ %l0 + 0xf ] <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE, rtems_rfs_fs_block_size (fs));
203bf28: c4 0f bf 34 ldub [ %fp + -204 ], %g2 <== NOT EXECUTED
203bf2c: c4 2c 20 08 stb %g2, [ %l0 + 8 ] <== NOT EXECUTED
203bf30: c4 17 bf 34 lduh [ %fp + -204 ], %g2 <== NOT EXECUTED
203bf34: c4 2c 20 09 stb %g2, [ %l0 + 9 ] <== NOT EXECUTED
203bf38: c4 07 bf 34 ld [ %fp + -204 ], %g2 <== NOT EXECUTED
203bf3c: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
203bf40: c4 2c 20 0a stb %g2, [ %l0 + 0xa ] <== NOT EXECUTED
203bf44: c4 07 bf 34 ld [ %fp + -204 ], %g2 <== NOT EXECUTED
203bf48: c4 2c 20 0b stb %g2, [ %l0 + 0xb ] <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_BAD_BLOCKS, fs->bad_blocks);
203bf4c: c4 0f bf 40 ldub [ %fp + -192 ], %g2 <== NOT EXECUTED
203bf50: c4 2c 20 10 stb %g2, [ %l0 + 0x10 ] <== NOT EXECUTED
203bf54: c4 17 bf 40 lduh [ %fp + -192 ], %g2 <== NOT EXECUTED
203bf58: c4 2c 20 11 stb %g2, [ %l0 + 0x11 ] <== NOT EXECUTED
203bf5c: c4 07 bf 40 ld [ %fp + -192 ], %g2 <== NOT EXECUTED
203bf60: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
203bf64: c4 2c 20 12 stb %g2, [ %l0 + 0x12 ] <== NOT EXECUTED
203bf68: c4 07 bf 40 ld [ %fp + -192 ], %g2 <== NOT EXECUTED
203bf6c: c4 2c 20 13 stb %g2, [ %l0 + 0x13 ] <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH, fs->max_name_length);
203bf70: c4 0f bf 44 ldub [ %fp + -188 ], %g2 <== NOT EXECUTED
203bf74: c4 2c 20 14 stb %g2, [ %l0 + 0x14 ] <== NOT EXECUTED
203bf78: c4 17 bf 44 lduh [ %fp + -188 ], %g2 <== NOT EXECUTED
203bf7c: c4 2c 20 15 stb %g2, [ %l0 + 0x15 ] <== NOT EXECUTED
203bf80: c4 07 bf 44 ld [ %fp + -188 ], %g2 <== NOT EXECUTED
203bf84: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
203bf88: c4 2c 20 16 stb %g2, [ %l0 + 0x16 ] <== NOT EXECUTED
203bf8c: c4 07 bf 44 ld [ %fp + -188 ], %g2 <== NOT EXECUTED
203bf90: c4 2c 20 17 stb %g2, [ %l0 + 0x17 ] <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_GROUPS, fs->group_count);
203bf94: c4 0f bf 4c ldub [ %fp + -180 ], %g2 <== NOT EXECUTED
203bf98: c4 2c 20 18 stb %g2, [ %l0 + 0x18 ] <== NOT EXECUTED
203bf9c: c4 17 bf 4c lduh [ %fp + -180 ], %g2 <== NOT EXECUTED
203bfa0: c4 2c 20 19 stb %g2, [ %l0 + 0x19 ] <== NOT EXECUTED
203bfa4: c4 07 bf 4c ld [ %fp + -180 ], %g2 <== NOT EXECUTED
203bfa8: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
203bfac: c4 2c 20 1a stb %g2, [ %l0 + 0x1a ] <== NOT EXECUTED
203bfb0: c4 07 bf 4c ld [ %fp + -180 ], %g2 <== NOT EXECUTED
203bfb4: c4 2c 20 1b stb %g2, [ %l0 + 0x1b ] <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS, fs->group_blocks);
203bfb8: c4 0f bf 50 ldub [ %fp + -176 ], %g2 <== NOT EXECUTED
203bfbc: c4 2c 20 1c stb %g2, [ %l0 + 0x1c ] <== NOT EXECUTED
203bfc0: c4 17 bf 50 lduh [ %fp + -176 ], %g2 <== NOT EXECUTED
203bfc4: c4 2c 20 1d stb %g2, [ %l0 + 0x1d ] <== NOT EXECUTED
203bfc8: c4 07 bf 50 ld [ %fp + -176 ], %g2 <== NOT EXECUTED
203bfcc: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
203bfd0: c4 2c 20 1e stb %g2, [ %l0 + 0x1e ] <== NOT EXECUTED
203bfd4: c4 07 bf 50 ld [ %fp + -176 ], %g2 <== NOT EXECUTED
203bfd8: c4 2c 20 1f stb %g2, [ %l0 + 0x1f ] <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES, fs->group_inodes);
203bfdc: c4 0f bf 54 ldub [ %fp + -172 ], %g2 <== NOT EXECUTED
203bfe0: c4 2c 20 20 stb %g2, [ %l0 + 0x20 ] <== NOT EXECUTED
203bfe4: c4 17 bf 54 lduh [ %fp + -172 ], %g2 <== NOT EXECUTED
203bfe8: c4 2c 20 21 stb %g2, [ %l0 + 0x21 ] <== NOT EXECUTED
203bfec: c4 07 bf 54 ld [ %fp + -172 ], %g2 <== NOT EXECUTED
203bff0: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
203bff4: c4 2c 20 22 stb %g2, [ %l0 + 0x22 ] <== NOT EXECUTED
203bff8: c4 07 bf 54 ld [ %fp + -172 ], %g2 <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_INODE_SIZE, RTEMS_RFS_INODE_SIZE);
203bffc: 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);
203c000: c4 2c 20 23 stb %g2, [ %l0 + 0x23 ] <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_INODE_SIZE, RTEMS_RFS_INODE_SIZE);
203c004: c0 2c 20 25 clrb [ %l0 + 0x25 ] <== NOT EXECUTED
203c008: c0 2c 20 26 clrb [ %l0 + 0x26 ] <== NOT EXECUTED
203c00c: 84 10 20 38 mov 0x38, %g2 <== NOT EXECUTED
203c010: c4 2c 20 27 stb %g2, [ %l0 + 0x27 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle);
rc = rtems_rfs_buffer_handle_release (fs, &handle);
203c014: 7f ff f5 fd call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203c018: c2 2f bf ec stb %g1, [ %fp + -20 ] <== NOT EXECUTED
if (rc > 0)
203c01c: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203c020: 04 80 00 0b ble 203c04c <rtems_rfs_format+0x650> <== NOT EXECUTED
203c024: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
203c028: 7f ff fe 6b call 203b9d4 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203c02c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
printf ("rtems-rfs: write-superblock: buffer release failed: %d: %s\n",
203c030: 40 00 35 9a call 2049698 <strerror> <== NOT EXECUTED
203c034: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203c038: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203c03c: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203c040: 11 00 81 9b sethi %hi(0x2066c00), %o0 <== NOT EXECUTED
203c044: 10 80 00 0e b 203c07c <rtems_rfs_format+0x680> <== NOT EXECUTED
203c048: 90 12 21 50 or %o0, 0x150, %o0 ! 2066d50 <__FUNCTION__.7657+0x3b0><== NOT EXECUTED
rc, strerror (rc));
return false;
}
rc = rtems_rfs_buffer_handle_close (fs, &handle);
203c04c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
203c050: 7f ff fe 61 call 203b9d4 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203c054: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
if (rc > 0)
203c058: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203c05c: 04 80 00 fa ble 203c444 <rtems_rfs_format+0xa48> <== NOT EXECUTED
203c060: 35 00 81 9b sethi %hi(0x2066c00), %i2 <== NOT EXECUTED
{
printf ("rtems-rfs: write-superblock: buffer handle close failed: %d: %s\n",
203c064: 40 00 35 8d call 2049698 <strerror> <== NOT EXECUTED
203c068: 01 00 00 00 nop <== NOT EXECUTED
203c06c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203c070: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203c074: 11 00 81 9b sethi %hi(0x2066c00), %o0 <== NOT EXECUTED
203c078: 90 12 21 90 or %o0, 0x190, %o0 ! 2066d90 <__FUNCTION__.7657+0x3f0><== NOT EXECUTED
203c07c: 40 00 2c e6 call 2047414 <printf> <== NOT EXECUTED
203c080: 01 00 00 00 nop <== NOT EXECUTED
return -1;
}
if (!rtems_rfs_write_superblock (&fs))
{
printf ("rtems-rfs: format: superblock write failed\n");
203c084: 11 00 81 9b sethi %hi(0x2066c00), %o0 <== NOT EXECUTED
203c088: 90 12 21 d8 or %o0, 0x1d8, %o0 ! 2066dd8 <__FUNCTION__.7657+0x438><== NOT EXECUTED
203c08c: 40 00 2d 8e call 20476c4 <puts> <== NOT EXECUTED
203c090: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203c094: 30 80 01 94 b,a 203c6e4 <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);
203c098: ea 07 bf 50 ld [ %fp + -176 ], %l5 <== NOT EXECUTED
203c09c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203c0a0: 7f ff 1a 56 call 20029f8 <.umul> <== NOT EXECUTED
203c0a4: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
if (group_base > rtems_rfs_fs_blocks (fs))
203c0a8: 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);
203c0ac: a8 02 20 01 add %o0, 1, %l4 <== NOT EXECUTED
203c0b0: b8 10 00 08 mov %o0, %i4 <== NOT EXECUTED
if (group_base > rtems_rfs_fs_blocks (fs))
203c0b4: 80 a5 00 01 cmp %l4, %g1 <== NOT EXECUTED
203c0b8: 08 80 00 08 bleu 203c0d8 <rtems_rfs_format+0x6dc> <== NOT EXECUTED
203c0bc: f6 0e 60 14 ldub [ %i1 + 0x14 ], %i3 <== NOT EXECUTED
{
printf ("rtems-rfs: write-group: group %d base beyond disk limit\n",
203c0c0: 11 00 81 9b sethi %hi(0x2066c00), %o0 <== NOT EXECUTED
203c0c4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203c0c8: 90 12 22 08 or %o0, 0x208, %o0 <== NOT EXECUTED
203c0cc: 40 00 2c d2 call 2047414 <printf> <== NOT EXECUTED
203c0d0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203c0d4: 30 80 01 84 b,a 203c6e4 <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))
203c0d8: 84 05 00 15 add %l4, %l5, %g2 <== NOT EXECUTED
203c0dc: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203c0e0: 38 80 00 02 bgu,a 203c0e8 <rtems_rfs_format+0x6ec> <== NOT EXECUTED
203c0e4: aa 20 40 14 sub %g1, %l4, %l5 <== NOT EXECUTED
group_size = rtems_rfs_fs_blocks (fs) - group_base;
if (verbose)
203c0e8: 80 8d a0 ff btst 0xff, %l6 <== NOT EXECUTED
203c0ec: 22 80 00 08 be,a 203c10c <rtems_rfs_format+0x710> <== NOT EXECUTED
203c0f0: c0 2f bf ec clrb [ %fp + -20 ] <== NOT EXECUTED
printf ("\rrtems-rfs: format: group %3d: base = %" PRId32 ", size = %zd",
203c0f4: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
203c0f8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203c0fc: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
203c100: 40 00 2c c5 call 2047414 <printf> <== NOT EXECUTED
203c104: 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;
203c108: c0 2f bf ec clrb [ %fp + -20 ] <== NOT EXECUTED
handle->bnum = 0;
203c10c: 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)
203c110: 80 8d a0 ff btst 0xff, %l6 <== NOT EXECUTED
203c114: 02 80 00 05 be 203c128 <rtems_rfs_format+0x72c> <== NOT EXECUTED
203c118: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
printf (", blocks");
203c11c: 11 00 81 9b sethi %hi(0x2066c00), %o0 <== NOT EXECUTED
203c120: 40 00 2c bd call 2047414 <printf> <== NOT EXECUTED
203c124: 90 12 22 80 or %o0, 0x280, %o0 ! 2066e80 <__FUNCTION__.7657+0x4e0><== NOT EXECUTED
/*
* Open the block bitmap using the new buffer.
*/
rc = rtems_rfs_bitmap_open (&bitmap, fs, &handle, group_size,
203c128: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203c12c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203c130: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
203c134: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
203c138: 40 00 17 80 call 2041f38 <rtems_rfs_bitmap_open> <== NOT EXECUTED
203c13c: 98 10 00 14 mov %l4, %o4 <== NOT EXECUTED
group_base + RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
if (rc > 0)
203c140: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
203c144: 04 80 00 0c ble 203c174 <rtems_rfs_format+0x778> <== NOT EXECUTED
203c148: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
203c14c: 7f ff fe 22 call 203b9d4 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203c150: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: open block bitmap failed: %d: %s\n",
203c154: 40 00 35 51 call 2049698 <strerror> <== NOT EXECUTED
203c158: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED
203c15c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203c160: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
203c164: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
203c168: 11 00 81 9b sethi %hi(0x2066c00), %o0 <== NOT EXECUTED
203c16c: 10 80 00 80 b 203c36c <rtems_rfs_format+0x970> <== NOT EXECUTED
203c170: 90 12 22 90 or %o0, 0x290, %o0 ! 2066e90 <__FUNCTION__.7657+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));
203c174: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
203c178: d4 07 bf 34 ld [ %fp + -204 ], %o2 <== NOT EXECUTED
203c17c: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
203c180: 40 00 28 89 call 20463a4 <memset> <== NOT EXECUTED
203c184: 92 10 20 ff mov 0xff, %o1 <== NOT EXECUTED
/*
* Clear the bitmap.
*/
rc = rtems_rfs_bitmap_map_clear_all (&bitmap);
203c188: 40 00 17 7e call 2041f80 <rtems_rfs_bitmap_map_clear_all> <== NOT EXECUTED
203c18c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
if (rc > 0)
203c190: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
203c194: 24 80 00 0f ble,a 203c1d0 <rtems_rfs_format+0x7d4> <== NOT EXECUTED
203c198: 92 10 20 00 clr %o1 <== NOT EXECUTED
{
rtems_rfs_bitmap_close (&bitmap);
203c19c: 40 00 17 18 call 2041dfc <rtems_rfs_bitmap_close> <== NOT EXECUTED
203c1a0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle);
203c1a4: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203c1a8: 7f ff fe 0b call 203b9d4 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203c1ac: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: block bitmap clear all failed: %d: %s\n",
203c1b0: 40 00 35 3a call 2049698 <strerror> <== NOT EXECUTED
203c1b4: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED
203c1b8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203c1bc: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
203c1c0: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
203c1c4: 11 00 81 9b sethi %hi(0x2066c00), %o0 <== NOT EXECUTED
203c1c8: 10 80 00 69 b 203c36c <rtems_rfs_format+0x970> <== NOT EXECUTED
203c1cc: 90 12 22 d8 or %o0, 0x2d8, %o0 ! 2066ed8 <__FUNCTION__.7657+0x538><== NOT EXECUTED
}
/*
* Forced allocation of the block bitmap.
*/
rtems_rfs_bitmap_map_set (&bitmap, RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
203c1d0: 40 00 17 f7 call 20421ac <rtems_rfs_bitmap_map_set> <== NOT EXECUTED
203c1d4: 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);
203c1d8: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
203c1dc: 40 00 17 f4 call 20421ac <rtems_rfs_bitmap_map_set> <== NOT EXECUTED
203c1e0: 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);
203c1e4: d0 07 bf 54 ld [ %fp + -172 ], %o0 <== NOT EXECUTED
203c1e8: 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)
203c1ec: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203c1f0: 02 80 00 05 be 203c204 <rtems_rfs_format+0x808> <== NOT EXECUTED
203c1f4: ba 10 20 01 mov 1, %i5 <== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
203c1f8: 40 00 7b b9 call 205b0dc <.udiv> <== NOT EXECUTED
203c1fc: 90 02 3f ff add %o0, -1, %o0 <== NOT EXECUTED
203c200: ba 02 20 01 add %o0, 1, %i5 <== NOT EXECUTED
203c204: 10 80 00 07 b 203c220 <rtems_rfs_format+0x824> <== NOT EXECUTED
203c208: 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++)
203c20c: 82 00 60 01 inc %g1 <== NOT EXECUTED
rtems_rfs_bitmap_map_set (&bitmap, b + RTEMS_RFS_GROUP_INODE_BLOCK);
203c210: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203c214: 40 00 17 e6 call 20421ac <rtems_rfs_bitmap_map_set> <== NOT EXECUTED
203c218: c2 27 bf 24 st %g1, [ %fp + -220 ] <== NOT EXECUTED
203c21c: 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++)
203c220: 80 a0 40 1d cmp %g1, %i5 <== NOT EXECUTED
203c224: 06 bf ff fa bl 203c20c <rtems_rfs_format+0x810> <== NOT EXECUTED
203c228: 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);
203c22c: 40 00 16 f4 call 2041dfc <rtems_rfs_bitmap_close> <== NOT EXECUTED
203c230: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
if (rc > 0)
203c234: 94 92 20 00 orcc %o0, 0, %o2 <== NOT EXECUTED
203c238: 04 80 00 0f ble 203c274 <rtems_rfs_format+0x878> <== NOT EXECUTED
203c23c: 80 8d a0 ff btst 0xff, %l6 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
203c240: 92 07 bf ec add %fp, -20, %o1 <== NOT EXECUTED
203c244: d4 27 bf 24 st %o2, [ %fp + -220 ] <== NOT EXECUTED
203c248: 7f ff fd e3 call 203b9d4 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203c24c: 90 07 bf 2c add %fp, -212, %o0 <== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: close block bitmap failed: %d: %s\n",
203c250: d4 07 bf 24 ld [ %fp + -220 ], %o2 <== NOT EXECUTED
203c254: 40 00 35 11 call 2049698 <strerror> <== NOT EXECUTED
203c258: 90 10 00 0a mov %o2, %o0 <== NOT EXECUTED
203c25c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203c260: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
203c264: d4 07 bf 24 ld [ %fp + -220 ], %o2 <== NOT EXECUTED
203c268: 11 00 81 9b sethi %hi(0x2066c00), %o0 <== NOT EXECUTED
203c26c: 10 80 00 40 b 203c36c <rtems_rfs_format+0x970> <== NOT EXECUTED
203c270: 90 12 23 28 or %o0, 0x328, %o0 ! 2066f28 <__FUNCTION__.7657+0x588><== NOT EXECUTED
return false;
}
rtems_rfs_buffer_mark_dirty (&handle);
if (verbose)
203c274: 02 80 00 05 be 203c288 <rtems_rfs_format+0x88c> <== NOT EXECUTED
203c278: ee 2f bf ec stb %l7, [ %fp + -20 ] <== NOT EXECUTED
printf (", inodes");
203c27c: 11 00 81 9b sethi %hi(0x2066c00), %o0 <== NOT EXECUTED
203c280: 40 00 2c 65 call 2047414 <printf> <== NOT EXECUTED
203c284: 90 12 23 70 or %o0, 0x370, %o0 ! 2066f70 <__FUNCTION__.7657+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,
203c288: 98 05 20 01 add %l4, 1, %o4 <== NOT EXECUTED
203c28c: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
203c290: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203c294: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203c298: 40 00 17 28 call 2041f38 <rtems_rfs_bitmap_open> <== NOT EXECUTED
203c29c: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
group_base + RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK);
if (rc > 0)
203c2a0: a8 92 20 00 orcc %o0, 0, %l4 <== NOT EXECUTED
203c2a4: 04 80 00 0c ble 203c2d4 <rtems_rfs_format+0x8d8> <== NOT EXECUTED
203c2a8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
203c2ac: 7f ff fd ca call 203b9d4 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203c2b0: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: open inode bitmap failed: %d: %s\n",
203c2b4: 40 00 34 f9 call 2049698 <strerror> <== NOT EXECUTED
203c2b8: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
203c2bc: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203c2c0: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
203c2c4: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
203c2c8: 11 00 81 9b sethi %hi(0x2066c00), %o0 <== NOT EXECUTED
203c2cc: 10 80 00 28 b 203c36c <rtems_rfs_format+0x970> <== NOT EXECUTED
203c2d0: 90 12 23 80 or %o0, 0x380, %o0 ! 2066f80 <__FUNCTION__.7657+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));
203c2d4: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
203c2d8: d4 07 bf 34 ld [ %fp + -204 ], %o2 <== NOT EXECUTED
203c2dc: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
203c2e0: 40 00 28 31 call 20463a4 <memset> <== NOT EXECUTED
203c2e4: 92 10 20 00 clr %o1 <== NOT EXECUTED
/*
* Clear the inode bitmap.
*/
rc = rtems_rfs_bitmap_map_clear_all (&bitmap);
203c2e8: 40 00 17 26 call 2041f80 <rtems_rfs_bitmap_map_clear_all> <== NOT EXECUTED
203c2ec: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
if (rc > 0)
203c2f0: a8 92 20 00 orcc %o0, 0, %l4 <== NOT EXECUTED
203c2f4: 04 80 00 0f ble 203c330 <rtems_rfs_format+0x934> <== NOT EXECUTED
203c2f8: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_rfs_bitmap_close (&bitmap);
203c2fc: 40 00 16 c0 call 2041dfc <rtems_rfs_bitmap_close> <== NOT EXECUTED
203c300: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle);
203c304: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203c308: 7f ff fd b3 call 203b9d4 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203c30c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: inode bitmap" \
203c310: 40 00 34 e2 call 2049698 <strerror> <== NOT EXECUTED
203c314: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
203c318: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203c31c: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
203c320: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
203c324: 11 00 81 9b sethi %hi(0x2066c00), %o0 <== NOT EXECUTED
203c328: 10 80 00 11 b 203c36c <rtems_rfs_format+0x970> <== NOT EXECUTED
203c32c: 90 12 23 c8 or %o0, 0x3c8, %o0 ! 2066fc8 <__FUNCTION__.7657+0x628><== NOT EXECUTED
}
/*
* Close the inode bitmap.
*/
rc = rtems_rfs_bitmap_close (&bitmap);
203c330: 40 00 16 b3 call 2041dfc <rtems_rfs_bitmap_close> <== NOT EXECUTED
203c334: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
if (rc > 0)
203c338: a8 92 20 00 orcc %o0, 0, %l4 <== NOT EXECUTED
203c33c: 24 80 00 0f ble,a 203c378 <rtems_rfs_format+0x97c> <== NOT EXECUTED
203c340: ee 2f bf ec stb %l7, [ %fp + -20 ] <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
203c344: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203c348: 7f ff fd a3 call 203b9d4 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203c34c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: close inode" \
203c350: 40 00 34 d2 call 2049698 <strerror> <== NOT EXECUTED
203c354: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
203c358: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203c35c: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
203c360: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
203c364: 11 00 81 9c sethi %hi(0x2067000), %o0 <== NOT EXECUTED
203c368: 90 12 20 18 or %o0, 0x18, %o0 ! 2067018 <__FUNCTION__.7657+0x678><== NOT EXECUTED
203c36c: 40 00 2c 2a call 2047414 <printf> <== NOT EXECUTED
203c370: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203c374: 30 80 00 dc b,a 203c6e4 <rtems_rfs_format+0xce8> <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle);
/*
* Initialise the inode tables if required to do so.
*/
if (initialise_inodes)
203c378: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
203c37c: b8 07 20 03 add %i4, 3, %i4 <== NOT EXECUTED
203c380: 12 80 00 1e bne 203c3f8 <rtems_rfs_format+0x9fc> <== NOT EXECUTED
203c384: a8 10 20 00 clr %l4 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle);
}
}
rc = rtems_rfs_buffer_handle_close (fs, &handle);
203c388: 10 80 00 23 b 203c414 <rtems_rfs_format+0xa18> <== NOT EXECUTED
203c38c: 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,
203c390: 7f ff f5 68 call 2039930 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203c394: a8 05 20 01 inc %l4 <== NOT EXECUTED
group_base + b + RTEMS_RFS_GROUP_INODE_BLOCK,
false);
if (rc > 0)
203c398: aa 92 20 00 orcc %o0, 0, %l5 <== NOT EXECUTED
203c39c: 04 80 00 10 ble 203c3dc <rtems_rfs_format+0x9e0> <== NOT EXECUTED
203c3a0: 82 07 20 01 add %i4, 1, %g1 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
203c3a4: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203c3a8: 7f ff fd 8b call 203b9d4 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203c3ac: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: block %" PRId32 " request failed: %d: %s\n",
203c3b0: 40 00 34 ba call 2049698 <strerror> <== NOT EXECUTED
203c3b4: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
203c3b8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203c3bc: 98 10 00 08 mov %o0, %o4 <== NOT EXECUTED
203c3c0: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
203c3c4: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
203c3c8: 11 00 81 9c sethi %hi(0x2067000), %o0 <== NOT EXECUTED
203c3cc: 40 00 2c 12 call 2047414 <printf> <== NOT EXECUTED
203c3d0: 90 12 20 60 or %o0, 0x60, %o0 ! 2067060 <__FUNCTION__.7657+0x6c0><== NOT EXECUTED
printf ("\n");
rc = rtems_rfs_buffer_close (&fs);
if (rc > 0)
{
printf ("rtems-rfs: format: buffer close failed: %d: %s\n",
203c3d4: 81 c7 e0 08 ret <== NOT EXECUTED
203c3d8: 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));
203c3dc: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED
203c3e0: d4 07 bf 34 ld [ %fp + -204 ], %o2 <== NOT EXECUTED
203c3e4: 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++)
203c3e8: 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));
203c3ec: 40 00 27 ee call 20463a4 <memset> <== NOT EXECUTED
203c3f0: 92 10 20 ff mov 0xff, %o1 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle);
203c3f4: 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,
203c3f8: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
203c3fc: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203c400: 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++)
203c404: 80 a5 00 1d cmp %l4, %i5 <== NOT EXECUTED
203c408: 06 bf ff e2 bl 203c390 <rtems_rfs_format+0x994> <== NOT EXECUTED
203c40c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle);
}
}
rc = rtems_rfs_buffer_handle_close (fs, &handle);
203c410: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
203c414: 7f ff fd 70 call 203b9d4 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203c418: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
if (rc > 0)
203c41c: a8 92 20 00 orcc %o0, 0, %l4 <== NOT EXECUTED
203c420: 24 80 00 0d ble,a 203c454 <rtems_rfs_format+0xa58> <== NOT EXECUTED
203c424: a0 04 20 01 inc %l0 <== NOT EXECUTED
{
printf ("\nrtems-rfs: write-group: buffer handle close failed: %d: %s\n",
203c428: 40 00 34 9c call 2049698 <strerror> <== NOT EXECUTED
203c42c: 01 00 00 00 nop <== NOT EXECUTED
203c430: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
203c434: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203c438: 11 00 81 9c sethi %hi(0x2067000), %o0 <== NOT EXECUTED
203c43c: 10 80 00 1a b 203c4a4 <rtems_rfs_format+0xaa8> <== NOT EXECUTED
203c440: 90 12 20 a8 or %o0, 0xa8, %o0 ! 20670a8 <__FUNCTION__.7657+0x708><== NOT EXECUTED
203c444: 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",
203c448: b4 16 a2 48 or %i2, 0x248, %i2 <== NOT EXECUTED
printf (", blocks");
/*
* Open the block bitmap using the new buffer.
*/
rc = rtems_rfs_bitmap_open (&bitmap, fs, &handle, group_size,
203c44c: 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);
203c450: 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++)
203c454: c2 07 bf 4c ld [ %fp + -180 ], %g1 <== NOT EXECUTED
203c458: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED
203c45c: 06 bf ff 0f bl 203c098 <rtems_rfs_format+0x69c> <== NOT EXECUTED
203c460: 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)
203c464: 80 a5 a0 00 cmp %l6, 0 <== NOT EXECUTED
203c468: 02 80 00 04 be 203c478 <rtems_rfs_format+0xa7c> <== NOT EXECUTED
203c46c: 01 00 00 00 nop <== NOT EXECUTED
printf ("\n");
203c470: 40 00 2c 61 call 20475f4 <putchar> <== NOT EXECUTED
203c474: 90 10 20 0a mov 0xa, %o0 ! a <PROM_START+0xa> <== NOT EXECUTED
rc = rtems_rfs_buffer_close (&fs);
203c478: 7f ff f4 c2 call 2039780 <rtems_rfs_buffer_close> <== NOT EXECUTED
203c47c: 90 07 bf 2c add %fp, -212, %o0 <== NOT EXECUTED
if (rc > 0)
203c480: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203c484: 24 80 00 0c ble,a 203c4b4 <rtems_rfs_format+0xab8> <== NOT EXECUTED
203c488: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
{
printf ("rtems-rfs: format: buffer close failed: %d: %s\n",
203c48c: 40 00 34 83 call 2049698 <strerror> <== NOT EXECUTED
203c490: 01 00 00 00 nop <== NOT EXECUTED
203c494: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203c498: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203c49c: 11 00 81 9c sethi %hi(0x2067000), %o0 <== NOT EXECUTED
203c4a0: 90 12 20 e8 or %o0, 0xe8, %o0 ! 20670e8 <__FUNCTION__.7657+0x748><== NOT EXECUTED
203c4a4: 40 00 2b dc call 2047414 <printf> <== NOT EXECUTED
203c4a8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rc, strerror (rc));
return -1;
203c4ac: 81 c7 e0 08 ret <== NOT EXECUTED
203c4b0: 81 e8 00 00 restore <== NOT EXECUTED
int rc;
/*
* External API so returns -1.
*/
rc = rtems_rfs_fs_open (name, NULL,
203c4b4: 92 10 20 00 clr %o1 <== NOT EXECUTED
203c4b8: 94 10 20 06 mov 6, %o2 <== NOT EXECUTED
203c4bc: 96 10 20 00 clr %o3 <== NOT EXECUTED
203c4c0: 7f ff fb c5 call 203b3d4 <rtems_rfs_fs_open> <== NOT EXECUTED
203c4c4: 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)
203c4c8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203c4cc: 36 80 00 0d bge,a 203c500 <rtems_rfs_format+0xb04> <== NOT EXECUTED
203c4d0: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
{
printf ("rtems-rfs: format: file system open failed: %d: %s\n",
203c4d4: 40 00 19 d5 call 2042c28 <__errno> <== NOT EXECUTED
203c4d8: 01 00 00 00 nop <== NOT EXECUTED
203c4dc: 40 00 19 d3 call 2042c28 <__errno> <== NOT EXECUTED
203c4e0: e0 02 00 00 ld [ %o0 ], %l0 <== NOT EXECUTED
203c4e4: 40 00 34 6d call 2049698 <strerror> <== NOT EXECUTED
203c4e8: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED
203c4ec: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203c4f0: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203c4f4: 11 00 81 9c sethi %hi(0x2067000), %o0 <== NOT EXECUTED
203c4f8: 10 80 00 6d b 203c6ac <rtems_rfs_format+0xcb0> <== NOT EXECUTED
203c4fc: 90 12 21 18 or %o0, 0x118, %o0 ! 2067118 <__FUNCTION__.7657+0x778><== NOT EXECUTED
errno, strerror (errno));
return -1;
}
rc = rtems_rfs_inode_alloc (fs, RTEMS_RFS_ROOT_INO, &ino);
203c500: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
203c504: 40 00 03 0c call 203d134 <rtems_rfs_inode_alloc> <== NOT EXECUTED
203c508: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED
if (rc > 0)
203c50c: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
203c510: 04 80 00 0a ble 203c538 <rtems_rfs_format+0xb3c> <== NOT EXECUTED
203c514: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
{
printf ("rtems-rfs: format: inode allocation failed: %d: %s\n",
203c518: 40 00 34 60 call 2049698 <strerror> <== NOT EXECUTED
203c51c: 01 00 00 00 nop <== NOT EXECUTED
203c520: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203c524: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203c528: 11 00 81 9c sethi %hi(0x2067000), %o0 <== NOT EXECUTED
203c52c: 40 00 2b ba call 2047414 <printf> <== NOT EXECUTED
203c530: 90 12 21 50 or %o0, 0x150, %o0 ! 2067150 <__FUNCTION__.7657+0x7b0><== NOT EXECUTED
203c534: 30 80 00 1e b,a 203c5ac <rtems_rfs_format+0xbb0> <== NOT EXECUTED
rc, strerror (rc));
rtems_rfs_fs_close (fs);
return rc;
}
if (ino != RTEMS_RFS_ROOT_INO)
203c538: 80 a2 60 01 cmp %o1, 1 <== NOT EXECUTED
203c53c: 02 80 00 08 be 203c55c <rtems_rfs_format+0xb60> <== NOT EXECUTED
203c540: 11 00 81 9c sethi %hi(0x2067000), %o0 <== NOT EXECUTED
{
printf ("rtems-rfs: format: allocated inode not root ino: %" PRId32 "\n", ino);
203c544: 40 00 2b b4 call 2047414 <printf> <== NOT EXECUTED
203c548: 90 12 21 88 or %o0, 0x188, %o0 ! 2067188 <__FUNCTION__.7657+0x7e8><== NOT EXECUTED
rtems_rfs_fs_close (fs);
203c54c: 7f ff fb 84 call 203b35c <rtems_rfs_fs_close> <== NOT EXECUTED
203c550: 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",
203c554: 81 c7 e0 08 ret <== NOT EXECUTED
203c558: 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);
203c55c: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
203c560: a0 07 bf ac add %fp, -84, %l0 <== NOT EXECUTED
203c564: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
203c568: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
203c56c: 40 00 02 9b call 203cfd8 <rtems_rfs_inode_open> <== NOT EXECUTED
203c570: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
203c574: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
203c578: 24 80 00 10 ble,a 203c5b8 <rtems_rfs_format+0xbbc> <== NOT EXECUTED
203c57c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
printf ("rtems-rfs: format: inode open failed: %d: %s\n",
203c580: 40 00 34 46 call 2049698 <strerror> <== NOT EXECUTED
203c584: 01 00 00 00 nop <== NOT EXECUTED
203c588: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203c58c: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203c590: 11 00 81 9c sethi %hi(0x2067000), %o0 <== NOT EXECUTED
203c594: 40 00 2b a0 call 2047414 <printf> <== NOT EXECUTED
203c598: 90 12 21 c0 or %o0, 0x1c0, %o0 ! 20671c0 <__FUNCTION__.7657+0x820><== NOT EXECUTED
rc, strerror (rc));
rtems_rfs_group_bitmap_free (fs, true, ino);
203c59c: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
203c5a0: d4 07 bf f8 ld [ %fp + -8 ], %o2 <== NOT EXECUTED
203c5a4: 40 00 00 ae call 203c85c <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
203c5a8: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
rtems_rfs_fs_close (fs);
203c5ac: 7f ff fb 6c call 203b35c <rtems_rfs_fs_close> <== NOT EXECUTED
203c5b0: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
203c5b4: 30 80 00 44 b,a 203c6c4 <rtems_rfs_format+0xcc8> <== NOT EXECUTED
return rc;
}
rc = rtems_rfs_inode_initialise (&inode, 0,
203c5b8: 92 10 20 00 clr %o1 <== NOT EXECUTED
203c5bc: 15 00 00 10 sethi %hi(0x4000), %o2 <== NOT EXECUTED
203c5c0: 96 10 20 00 clr %o3 <== NOT EXECUTED
203c5c4: 94 12 a1 c9 or %o2, 0x1c9, %o2 <== NOT EXECUTED
203c5c8: 40 00 01 da call 203cd30 <rtems_rfs_inode_initialise> <== NOT EXECUTED
203c5cc: 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)
203c5d0: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203c5d4: 24 80 00 0a ble,a 203c5fc <rtems_rfs_format+0xc00> <== NOT EXECUTED
203c5d8: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
printf ("rtems-rfs: format: inode initialise failed: %d: %s\n",
203c5dc: 40 00 34 2f call 2049698 <strerror> <== NOT EXECUTED
203c5e0: 01 00 00 00 nop <== NOT EXECUTED
203c5e4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203c5e8: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203c5ec: 11 00 81 9c sethi %hi(0x2067000), %o0 <== NOT EXECUTED
203c5f0: 40 00 2b 89 call 2047414 <printf> <== NOT EXECUTED
203c5f4: 90 12 21 f0 or %o0, 0x1f0, %o0 ! 20671f0 <__FUNCTION__.7657+0x850><== NOT EXECUTED
rc, strerror (rc));
rc = rtems_rfs_dir_add_entry (fs, &inode, ".", 1, ino);
203c5f8: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
203c5fc: d8 07 bf f8 ld [ %fp + -8 ], %o4 <== NOT EXECUTED
203c600: 92 07 bf ac add %fp, -84, %o1 <== NOT EXECUTED
203c604: 15 00 81 9c sethi %hi(0x2067000), %o2 <== NOT EXECUTED
203c608: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
203c60c: 7f ff f7 27 call 203a2a8 <rtems_rfs_dir_add_entry> <== NOT EXECUTED
203c610: 94 12 a2 28 or %o2, 0x228, %o2 <== NOT EXECUTED
if (rc > 0)
203c614: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203c618: 24 80 00 0a ble,a 203c640 <rtems_rfs_format+0xc44> <== NOT EXECUTED
203c61c: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
printf ("rtems-rfs: format: directory add failed: %d: %s\n",
203c620: 40 00 34 1e call 2049698 <strerror> <== NOT EXECUTED
203c624: 01 00 00 00 nop <== NOT EXECUTED
203c628: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203c62c: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203c630: 11 00 81 9c sethi %hi(0x2067000), %o0 <== NOT EXECUTED
203c634: 40 00 2b 78 call 2047414 <printf> <== NOT EXECUTED
203c638: 90 12 22 30 or %o0, 0x230, %o0 ! 2067230 <__FUNCTION__.7657+0x890><== NOT EXECUTED
rc, strerror (rc));
rc = rtems_rfs_inode_close (fs, &inode);
203c63c: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
203c640: 40 00 02 3d call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203c644: 92 07 bf ac add %fp, -84, %o1 <== NOT EXECUTED
if (rc > 0)
203c648: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203c64c: 04 80 00 09 ble 203c670 <rtems_rfs_format+0xc74> <== NOT EXECUTED
203c650: 01 00 00 00 nop <== NOT EXECUTED
printf ("rtems-rfs: format: inode close failed: %d: %s\n",
203c654: 40 00 34 11 call 2049698 <strerror> <== NOT EXECUTED
203c658: 01 00 00 00 nop <== NOT EXECUTED
203c65c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203c660: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203c664: 11 00 81 9c sethi %hi(0x2067000), %o0 <== NOT EXECUTED
203c668: 40 00 2b 6b call 2047414 <printf> <== NOT EXECUTED
203c66c: 90 12 22 68 or %o0, 0x268, %o0 ! 2067268 <__FUNCTION__.7657+0x8c8><== NOT EXECUTED
rc, strerror (rc));
rc = rtems_rfs_fs_close (fs);
203c670: 7f ff fb 3b call 203b35c <rtems_rfs_fs_close> <== NOT EXECUTED
203c674: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
if (rc < 0)
203c678: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
203c67c: 16 80 00 10 bge 203c6bc <rtems_rfs_format+0xcc0> <== NOT EXECUTED
203c680: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
printf ("rtems-rfs: format: file system close failed: %d: %s\n",
203c684: 40 00 19 69 call 2042c28 <__errno> <== NOT EXECUTED
203c688: 01 00 00 00 nop <== NOT EXECUTED
203c68c: 40 00 19 67 call 2042c28 <__errno> <== NOT EXECUTED
203c690: e0 02 00 00 ld [ %o0 ], %l0 <== NOT EXECUTED
203c694: 40 00 34 01 call 2049698 <strerror> <== NOT EXECUTED
203c698: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED
203c69c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203c6a0: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203c6a4: 11 00 81 9c sethi %hi(0x2067000), %o0 <== NOT EXECUTED
203c6a8: 90 12 22 98 or %o0, 0x298, %o0 ! 2067298 <__FUNCTION__.7657+0x8f8><== NOT EXECUTED
203c6ac: 40 00 2b 5a call 2047414 <printf> <== NOT EXECUTED
203c6b0: 01 00 00 00 nop <== NOT EXECUTED
203c6b4: 81 c7 e0 08 ret <== NOT EXECUTED
203c6b8: 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)
203c6bc: 04 bf ff 7c ble 203c4ac <rtems_rfs_format+0xab0> <== NOT EXECUTED
203c6c0: b0 10 20 00 clr %i0 <== NOT EXECUTED
{
printf ("rtems-rfs: format: writing root dir failed: %d: %s\n",
203c6c4: 40 00 33 f5 call 2049698 <strerror> <== NOT EXECUTED
203c6c8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203c6cc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203c6d0: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203c6d4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203c6d8: 11 00 81 9c sethi %hi(0x2067000), %o0 <== NOT EXECUTED
203c6dc: 40 00 2b 4e call 2047414 <printf> <== NOT EXECUTED
203c6e0: 90 12 22 d0 or %o0, 0x2d0, %o0 ! 20672d0 <__FUNCTION__.7657+0x930><== NOT EXECUTED
rc, strerror (rc));
return -1;
}
return 0;
}
203c6e4: 81 c7 e0 08 ret <== NOT EXECUTED
203c6e8: 81 e8 00 00 restore <== NOT EXECUTED
* Check the configuration data.
*/
if (!rtems_rfs_check_config (&fs, config))
return -1;
if (config->verbose)
203c6ec: c2 0e 60 15 ldub [ %i1 + 0x15 ], %g1 <== NOT EXECUTED
203c6f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203c6f4: 02 bf fd cf be 203be30 <rtems_rfs_format+0x434> <== NOT EXECUTED
203c6f8: d2 07 bf 34 ld [ %fp + -204 ], %o1 <== NOT EXECUTED
{
printf ("rtems-rfs: format: media size = %" PRIu64 "\n",
203c6fc: 10 bf fd 83 b 203bd08 <rtems_rfs_format+0x30c> <== NOT EXECUTED
203c700: a0 07 bf 2c add %fp, -212, %l0 <== NOT EXECUTED
0203b35c <rtems_rfs_fs_close>:
return 0;
}
int
rtems_rfs_fs_close (rtems_rfs_file_system* fs)
{
203b35c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
203b360: a4 10 20 00 clr %l2 <== NOT EXECUTED
203b364: 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++)
203b368: 10 80 00 07 b 203b384 <rtems_rfs_fs_close+0x28> <== NOT EXECUTED
203b36c: a2 10 20 00 clr %l1 <== NOT EXECUTED
rtems_rfs_group_close (fs, &fs->groups[group]);
203b370: 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++)
203b374: a2 04 60 01 inc %l1 <== NOT EXECUTED
rtems_rfs_group_close (fs, &fs->groups[group]);
203b378: 92 02 40 12 add %o1, %l2, %o1 <== NOT EXECUTED
203b37c: 40 00 05 cb call 203caa8 <rtems_rfs_group_close> <== NOT EXECUTED
203b380: 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++)
203b384: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED
203b388: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
203b38c: 06 bf ff f9 bl 203b370 <rtems_rfs_fs_close+0x14> <== NOT EXECUTED
203b390: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_group_close (fs, &fs->groups[group]);
rtems_rfs_buffer_close (fs);
203b394: 7f ff f8 fb call 2039780 <rtems_rfs_buffer_close> <== NOT EXECUTED
203b398: b0 10 20 00 clr %i0 <== NOT EXECUTED
free (fs);
203b39c: 7f ff 33 b1 call 2008260 <free> <== NOT EXECUTED
203b3a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return 0;
}
203b3a4: 81 c7 e0 08 ret <== NOT EXECUTED
203b3a8: 81 e8 00 00 restore <== NOT EXECUTED
0203b334 <rtems_rfs_fs_media_size>:
uint64_t
rtems_rfs_fs_media_size (rtems_rfs_file_system* fs)
{
203b334: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
uint64_t media_blocks = (uint64_t) rtems_rfs_fs_media_blocks (fs);
203b338: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
203b33c: 94 10 20 00 clr %o2 <== NOT EXECUTED
203b340: d6 00 60 1c ld [ %g1 + 0x1c ], %o3 <== NOT EXECUTED
203b344: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
203b348: 40 00 80 bd call 205b63c <__muldi3> <== NOT EXECUTED
203b34c: 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;
}
203b350: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
203b354: 81 c7 e0 08 ret <== NOT EXECUTED
203b358: 93 e8 00 09 restore %g0, %o1, %o1 <== NOT EXECUTED
0203b3d4 <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)
{
203b3d4: 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));
203b3d8: 7f ff 35 69 call 200897c <malloc> <== NOT EXECUTED
203b3dc: 90 10 20 80 mov 0x80, %o0 <== NOT EXECUTED
if (!*fs)
203b3e0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b3e4: 12 80 00 06 bne 203b3fc <rtems_rfs_fs_open+0x28> <== NOT EXECUTED
203b3e8: 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;
203b3ec: 40 00 1e 0f call 2042c28 <__errno> <== NOT EXECUTED
203b3f0: 01 00 00 00 nop <== NOT EXECUTED
203b3f4: 10 80 01 34 b 203b8c4 <rtems_rfs_fs_open+0x4f0> <== NOT EXECUTED
203b3f8: 82 10 20 0c mov 0xc, %g1 ! c <PROM_START+0xc> <== NOT EXECUTED
return -1;
}
memset (*fs, 0, sizeof (rtems_rfs_file_system));
203b3fc: 92 10 20 00 clr %o1 <== NOT EXECUTED
203b400: 40 00 2b e9 call 20463a4 <memset> <== NOT EXECUTED
203b404: 94 10 20 80 mov 0x80, %o2 <== NOT EXECUTED
(*fs)->user = user;
203b408: c2 07 00 00 ld [ %i4 ], %g1 <== NOT EXECUTED
group_base = 0;
/*
* Open the buffer interface.
*/
rc = rtems_rfs_buffer_open (name, *fs);
203b40c: 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);
203b410: 84 00 60 44 add %g1, 0x44, %g2 <== NOT EXECUTED
203b414: c4 20 60 40 st %g2, [ %g1 + 0x40 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
203b418: 84 00 60 40 add %g1, 0x40, %g2 <== NOT EXECUTED
203b41c: 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);
203b420: 84 00 60 54 add %g1, 0x54, %g2 <== NOT EXECUTED
203b424: c4 20 60 50 st %g2, [ %g1 + 0x50 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
203b428: 84 00 60 50 add %g1, 0x50, %g2 <== NOT EXECUTED
203b42c: 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);
203b430: 84 00 60 64 add %g1, 0x64, %g2 <== NOT EXECUTED
203b434: c4 20 60 60 st %g2, [ %g1 + 0x60 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
203b438: 84 00 60 60 add %g1, 0x60, %g2 <== NOT EXECUTED
203b43c: 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);
203b440: 84 00 60 74 add %g1, 0x74, %g2 <== NOT EXECUTED
203b444: c4 20 60 70 st %g2, [ %g1 + 0x70 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
203b448: 84 00 60 70 add %g1, 0x70, %g2 <== NOT EXECUTED
return -1;
}
memset (*fs, 0, sizeof (rtems_rfs_file_system));
(*fs)->user = user;
203b44c: 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;
203b450: 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;
203b454: 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;
203b458: c0 20 60 44 clr [ %g1 + 0x44 ] <== NOT EXECUTED
203b45c: c0 20 60 54 clr [ %g1 + 0x54 ] <== NOT EXECUTED
203b460: c0 20 60 64 clr [ %g1 + 0x64 ] <== NOT EXECUTED
203b464: 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;
203b468: c0 20 60 4c clr [ %g1 + 0x4c ] <== NOT EXECUTED
(*fs)->release_count = 0;
203b46c: c0 20 60 5c clr [ %g1 + 0x5c ] <== NOT EXECUTED
(*fs)->release_modified_count = 0;
203b470: c0 20 60 6c clr [ %g1 + 0x6c ] <== NOT EXECUTED
group_base = 0;
/*
* Open the buffer interface.
*/
rc = rtems_rfs_buffer_open (name, *fs);
203b474: 92 10 00 01 mov %g1, %o1 <== NOT EXECUTED
203b478: 7f ff f8 cd call 20397ac <rtems_rfs_buffer_open> <== NOT EXECUTED
203b47c: c4 20 60 78 st %g2, [ %g1 + 0x78 ] <== NOT EXECUTED
if (rc > 0)
203b480: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203b484: 04 80 00 04 ble 203b494 <rtems_rfs_fs_open+0xc0> <== NOT EXECUTED
203b488: f0 07 00 00 ld [ %i4 ], %i0 <== NOT EXECUTED
{
free (*fs);
203b48c: 10 80 01 18 b 203b8ec <rtems_rfs_fs_open+0x518> <== NOT EXECUTED
203b490: 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;
203b494: c0 2f bf f4 clrb [ %fp + -12 ] <== NOT EXECUTED
handle->bnum = 0;
203b498: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
handle->buffer = NULL;
203b49c: 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);
203b4a0: a2 07 bf f4 add %fp, -12, %l1 <== NOT EXECUTED
203b4a4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203b4a8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203b4ac: 94 10 20 00 clr %o2 <== NOT EXECUTED
203b4b0: 7f ff f9 20 call 2039930 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203b4b4: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
203b4b8: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
203b4bc: 14 80 00 dc bg 203b82c <rtems_rfs_fs_open+0x458> <== NOT EXECUTED
203b4c0: 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);
203b4c4: 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);
203b4c8: 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)
203b4cc: c2 0c 20 02 ldub [ %l0 + 2 ], %g1 <== NOT EXECUTED
203b4d0: c8 0c 20 03 ldub [ %l0 + 3 ], %g4 <== NOT EXECUTED
203b4d4: c4 0c 00 00 ldub [ %l0 ], %g2 <== NOT EXECUTED
203b4d8: c6 0c 20 01 ldub [ %l0 + 1 ], %g3 <== NOT EXECUTED
203b4dc: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
203b4e0: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED
203b4e4: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
203b4e8: 84 11 00 02 or %g4, %g2, %g2 <== NOT EXECUTED
203b4ec: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
203b4f0: 84 10 80 01 or %g2, %g1, %g2 <== NOT EXECUTED
203b4f4: 03 0a 02 48 sethi %hi(0x28092000), %g1 <== NOT EXECUTED
203b4f8: 82 10 60 01 or %g1, 1, %g1 ! 28092001 <RAM_END+0x25c92001><== NOT EXECUTED
203b4fc: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203b500: 12 80 00 2e bne 203b5b8 <rtems_rfs_fs_open+0x1e4> <== NOT EXECUTED
203b504: 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);
203b508: c6 0c 20 0d ldub [ %l0 + 0xd ], %g3 <== NOT EXECUTED
203b50c: c2 0c 20 0e ldub [ %l0 + 0xe ], %g1 <== NOT EXECUTED
203b510: c4 0c 20 0f ldub [ %l0 + 0xf ], %g2 <== NOT EXECUTED
203b514: d6 0c 20 0c ldub [ %l0 + 0xc ], %o3 <== NOT EXECUTED
203b518: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
203b51c: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
203b520: 97 2a e0 18 sll %o3, 0x18, %o3 <== NOT EXECUTED
203b524: 96 12 c0 03 or %o3, %g3, %o3 <== NOT EXECUTED
203b528: 96 12 c0 02 or %o3, %g2, %o3 <== NOT EXECUTED
203b52c: 96 12 c0 01 or %o3, %g1, %o3 <== NOT EXECUTED
203b530: d6 26 20 04 st %o3, [ %i0 + 4 ] <== NOT EXECUTED
fs->block_size = read_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE);
203b534: c6 0c 20 09 ldub [ %l0 + 9 ], %g3 <== NOT EXECUTED
203b538: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED
203b53c: c4 0c 20 0b ldub [ %l0 + 0xb ], %g2 <== NOT EXECUTED
203b540: e2 0c 20 08 ldub [ %l0 + 8 ], %l1 <== NOT EXECUTED
203b544: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
203b548: 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);
203b54c: 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))
203b550: 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);
203b554: a3 2c 60 18 sll %l1, 0x18, %l1 <== NOT EXECUTED
if (rtems_rfs_fs_size(fs) > rtems_rfs_fs_media_size (fs))
203b558: 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);
203b55c: a2 14 40 03 or %l1, %g3, %l1 <== NOT EXECUTED
203b560: a2 14 40 02 or %l1, %g2, %l1 <== NOT EXECUTED
203b564: a2 14 40 01 or %l1, %g1, %l1 <== NOT EXECUTED
203b568: e2 26 20 08 st %l1, [ %i0 + 8 ] <== NOT EXECUTED
if (rtems_rfs_fs_size(fs) > rtems_rfs_fs_media_size (fs))
203b56c: 40 00 80 34 call 205b63c <__muldi3> <== NOT EXECUTED
203b570: 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);
203b574: 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))
203b578: 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);
203b57c: 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))
203b580: 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);
203b584: 94 10 20 00 clr %o2 <== NOT EXECUTED
203b588: 40 00 80 2d call 205b63c <__muldi3> <== NOT EXECUTED
203b58c: 90 10 20 00 clr %o0 <== NOT EXECUTED
203b590: 80 a6 40 08 cmp %i1, %o0 <== NOT EXECUTED
203b594: 38 80 00 08 bgu,a 203b5b4 <rtems_rfs_fs_open+0x1e0> <== NOT EXECUTED
203b598: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203b59c: 32 80 00 0a bne,a 203b5c4 <rtems_rfs_fs_open+0x1f0> <== NOT EXECUTED
203b5a0: c8 0c 20 24 ldub [ %l0 + 0x24 ], %g4 <== NOT EXECUTED
203b5a4: 80 a4 c0 09 cmp %l3, %o1 <== NOT EXECUTED
203b5a8: 28 80 00 07 bleu,a 203b5c4 <rtems_rfs_fs_open+0x1f0> <== NOT EXECUTED
203b5ac: 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);
203b5b0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203b5b4: 92 07 bf f4 add %fp, -12, %o1 <== NOT EXECUTED
203b5b8: 7f ff ff 7d call 203b3ac <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203b5bc: a4 10 20 05 mov 5, %l2 <== NOT EXECUTED
203b5c0: 30 80 00 9b b,a 203b82c <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)
203b5c4: c2 0c 20 25 ldub [ %l0 + 0x25 ], %g1 <== NOT EXECUTED
203b5c8: c6 0c 20 27 ldub [ %l0 + 0x27 ], %g3 <== NOT EXECUTED
203b5cc: c4 0c 20 26 ldub [ %l0 + 0x26 ], %g2 <== NOT EXECUTED
203b5d0: 89 29 20 18 sll %g4, 0x18, %g4 <== NOT EXECUTED
203b5d4: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
203b5d8: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203b5dc: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
203b5e0: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
203b5e4: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
203b5e8: 80 a0 60 38 cmp %g1, 0x38 <== NOT EXECUTED
203b5ec: 32 bf ff f2 bne,a 203b5b4 <rtems_rfs_fs_open+0x1e0> <== NOT EXECUTED
203b5f0: 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);
203b5f4: c6 0c 20 13 ldub [ %l0 + 0x13 ], %g3 <== NOT EXECUTED
203b5f8: c8 0c 20 10 ldub [ %l0 + 0x10 ], %g4 <== NOT EXECUTED
203b5fc: c2 0c 20 11 ldub [ %l0 + 0x11 ], %g1 <== NOT EXECUTED
203b600: c4 0c 20 12 ldub [ %l0 + 0x12 ], %g2 <== NOT EXECUTED
203b604: 89 29 20 18 sll %g4, 0x18, %g4 <== NOT EXECUTED
203b608: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203b60c: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
203b610: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
203b614: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
203b618: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
203b61c: c2 26 20 14 st %g1, [ %i0 + 0x14 ] <== NOT EXECUTED
fs->max_name_length = read_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH);
203b620: c6 0c 20 17 ldub [ %l0 + 0x17 ], %g3 <== NOT EXECUTED
203b624: c8 0c 20 14 ldub [ %l0 + 0x14 ], %g4 <== NOT EXECUTED
203b628: c2 0c 20 15 ldub [ %l0 + 0x15 ], %g1 <== NOT EXECUTED
203b62c: c4 0c 20 16 ldub [ %l0 + 0x16 ], %g2 <== NOT EXECUTED
203b630: 89 29 20 18 sll %g4, 0x18, %g4 <== NOT EXECUTED
203b634: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203b638: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
203b63c: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
203b640: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
203b644: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
203b648: c2 26 20 18 st %g1, [ %i0 + 0x18 ] <== NOT EXECUTED
fs->group_count = read_sb (RTEMS_RFS_SB_OFFSET_GROUPS);
203b64c: c2 0c 20 1a ldub [ %l0 + 0x1a ], %g1 <== NOT EXECUTED
203b650: c4 0c 20 1b ldub [ %l0 + 0x1b ], %g2 <== NOT EXECUTED
203b654: e6 0c 20 18 ldub [ %l0 + 0x18 ], %l3 <== NOT EXECUTED
203b658: c6 0c 20 19 ldub [ %l0 + 0x19 ], %g3 <== NOT EXECUTED
203b65c: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
203b660: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
203b664: a7 2c e0 18 sll %l3, 0x18, %l3 <== NOT EXECUTED
203b668: a6 14 c0 03 or %l3, %g3, %l3 <== NOT EXECUTED
203b66c: a6 14 c0 02 or %l3, %g2, %l3 <== NOT EXECUTED
203b670: a6 14 c0 01 or %l3, %g1, %l3 <== NOT EXECUTED
203b674: e6 26 20 20 st %l3, [ %i0 + 0x20 ] <== NOT EXECUTED
fs->group_blocks = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS);
203b678: c2 0c 20 1e ldub [ %l0 + 0x1e ], %g1 <== NOT EXECUTED
203b67c: c4 0c 20 1f ldub [ %l0 + 0x1f ], %g2 <== NOT EXECUTED
203b680: e4 0c 20 1c ldub [ %l0 + 0x1c ], %l2 <== NOT EXECUTED
203b684: c6 0c 20 1d ldub [ %l0 + 0x1d ], %g3 <== NOT EXECUTED
203b688: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
203b68c: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
203b690: a5 2c a0 18 sll %l2, 0x18, %l2 <== NOT EXECUTED
203b694: a4 14 80 03 or %l2, %g3, %l2 <== NOT EXECUTED
203b698: a4 14 80 02 or %l2, %g2, %l2 <== NOT EXECUTED
203b69c: a4 14 80 01 or %l2, %g1, %l2 <== NOT EXECUTED
203b6a0: e4 26 20 24 st %l2, [ %i0 + 0x24 ] <== NOT EXECUTED
fs->group_inodes = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES);
203b6a4: c2 0c 20 22 ldub [ %l0 + 0x22 ], %g1 <== NOT EXECUTED
203b6a8: c8 0c 20 20 ldub [ %l0 + 0x20 ], %g4 <== NOT EXECUTED
203b6ac: c4 0c 20 23 ldub [ %l0 + 0x23 ], %g2 <== NOT EXECUTED
203b6b0: c6 0c 20 21 ldub [ %l0 + 0x21 ], %g3 <== NOT EXECUTED
203b6b4: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
203b6b8: a1 29 20 18 sll %g4, 0x18, %l0 <== NOT EXECUTED
203b6bc: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
203b6c0: a0 14 00 03 or %l0, %g3, %l0 <== NOT EXECUTED
203b6c4: a0 14 00 02 or %l0, %g2, %l0 <== NOT EXECUTED
203b6c8: 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);
203b6cc: 83 34 60 02 srl %l1, 2, %g1 <== NOT EXECUTED
fs->block_map_singly_blocks =
203b6d0: 85 28 60 02 sll %g1, 2, %g2 <== NOT EXECUTED
fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;
fs->block_map_doubly_blocks =
203b6d4: 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 =
203b6d8: 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 =
203b6dc: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;
fs->block_map_doubly_blocks =
203b6e0: 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 =
203b6e4: c2 26 20 34 st %g1, [ %i0 + 0x34 ] <== NOT EXECUTED
fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;
fs->block_map_doubly_blocks =
203b6e8: 7f ff 1c c4 call 20029f8 <.umul> <== NOT EXECUTED
203b6ec: e0 26 20 28 st %l0, [ %i0 + 0x28 ] <== NOT EXECUTED
203b6f0: 83 2a 20 02 sll %o0, 2, %g1 <== NOT EXECUTED
203b6f4: 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;
203b6f8: 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 =
203b6fc: 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;
203b700: 7f ff 1c be call 20029f8 <.umul> <== NOT EXECUTED
203b704: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
fs->inodes_per_block = fs->block_size / RTEMS_RFS_INODE_SIZE;
203b708: 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;
203b70c: d0 26 20 10 st %o0, [ %i0 + 0x10 ] <== NOT EXECUTED
fs->inodes_per_block = fs->block_size / RTEMS_RFS_INODE_SIZE;
203b710: 40 00 7e 73 call 205b0dc <.udiv> <== NOT EXECUTED
203b714: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203b718: d0 26 20 2c st %o0, [ %i0 + 0x2c ] <== NOT EXECUTED
if (fs->group_blocks >
203b71c: a3 2c 60 03 sll %l1, 3, %l1 <== NOT EXECUTED
203b720: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED
203b724: 08 80 00 05 bleu 203b738 <rtems_rfs_fs_open+0x364> <== NOT EXECUTED
203b728: 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);
203b72c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203b730: 10 bf ff a2 b 203b5b8 <rtems_rfs_fs_open+0x1e4> <== NOT EXECUTED
203b734: 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);
203b738: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203b73c: 7f ff ff 1c call 203b3ac <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203b740: 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));
203b744: d2 06 20 08 ld [ %i0 + 8 ], %o1 <== NOT EXECUTED
203b748: 7f ff f7 fa call 2039730 <rtems_rfs_buffer_setblksize> <== NOT EXECUTED
203b74c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rc > 0)
203b750: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
203b754: 04 80 00 04 ble 203b764 <rtems_rfs_fs_open+0x390> <== NOT EXECUTED
203b758: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
203b75c: 10 80 00 2a b 203b804 <rtems_rfs_fs_open+0x430> <== NOT EXECUTED
203b760: 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));
203b764: d0 06 20 20 ld [ %i0 + 0x20 ], %o0 <== NOT EXECUTED
203b768: 7f ff 31 2f call 2007c24 <calloc> <== NOT EXECUTED
203b76c: 92 10 20 50 mov 0x50, %o1 <== NOT EXECUTED
203b770: d0 26 20 1c st %o0, [ %i0 + 0x1c ] <== NOT EXECUTED
if (!fs->groups)
203b774: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b778: a2 10 20 00 clr %l1 <== NOT EXECUTED
203b77c: 12 80 00 26 bne 203b814 <rtems_rfs_fs_open+0x440> <== NOT EXECUTED
203b780: a0 10 20 00 clr %l0 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
203b784: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203b788: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203b78c: 7f ff ff 08 call 203b3ac <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203b790: a4 10 20 0c mov 0xc, %l2 <== NOT EXECUTED
203b794: 30 80 00 26 b,a 203b82c <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),
203b798: 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,
203b79c: 7f ff 1c 97 call 20029f8 <.umul> <== NOT EXECUTED
203b7a0: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203b7a4: d8 06 20 1c ld [ %i0 + 0x1c ], %o4 <== NOT EXECUTED
203b7a8: d6 06 20 28 ld [ %i0 + 0x28 ], %o3 <== NOT EXECUTED
203b7ac: 92 02 20 01 add %o0, 1, %o1 <== NOT EXECUTED
203b7b0: 98 03 00 11 add %o4, %l1, %o4 <== NOT EXECUTED
203b7b4: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
203b7b8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203b7bc: 40 00 04 d5 call 203cb10 <rtems_rfs_group_open> <== NOT EXECUTED
203b7c0: 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)
203b7c4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b7c8: 04 80 00 12 ble 203b810 <rtems_rfs_fs_open+0x43c> <== NOT EXECUTED
203b7cc: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
203b7d0: a6 10 20 00 clr %l3 <== NOT EXECUTED
203b7d4: 10 80 00 07 b 203b7f0 <rtems_rfs_fs_open+0x41c> <== NOT EXECUTED
203b7d8: a2 10 20 00 clr %l1 <== NOT EXECUTED
{
int g;
for (g = 0; g < group; g++)
203b7dc: a2 04 60 01 inc %l1 <== NOT EXECUTED
rtems_rfs_group_close (fs, &fs->groups[g]);
203b7e0: 92 02 40 13 add %o1, %l3, %o1 <== NOT EXECUTED
203b7e4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203b7e8: 40 00 04 b0 call 203caa8 <rtems_rfs_group_close> <== NOT EXECUTED
203b7ec: 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++)
203b7f0: 80 a4 40 10 cmp %l1, %l0 <== NOT EXECUTED
203b7f4: 26 bf ff fa bl,a 203b7dc <rtems_rfs_fs_open+0x408> <== NOT EXECUTED
203b7f8: 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);
203b7fc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203b800: 92 07 bf f4 add %fp, -12, %o1 <== NOT EXECUTED
203b804: 7f ff fe ea call 203b3ac <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203b808: 01 00 00 00 nop <== NOT EXECUTED
203b80c: 30 80 00 08 b,a 203b82c <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++)
203b810: a0 04 20 01 inc %l0 <== NOT EXECUTED
203b814: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED
203b818: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED
203b81c: 06 bf ff df bl 203b798 <rtems_rfs_fs_open+0x3c4> <== NOT EXECUTED
203b820: 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);
203b824: 10 80 00 3e b 203b91c <rtems_rfs_fs_open+0x548> <== NOT EXECUTED
203b828: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
}
rc = rtems_rfs_fs_read_superblock (*fs);
if (rc > 0)
{
rtems_rfs_buffer_close (*fs);
203b82c: 7f ff f7 d5 call 2039780 <rtems_rfs_buffer_close> <== NOT EXECUTED
203b830: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
free (*fs);
203b834: 7f ff 32 8b call 2008260 <free> <== NOT EXECUTED
203b838: 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;
203b83c: 40 00 1c fb call 2042c28 <__errno> <== NOT EXECUTED
203b840: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203b844: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
203b848: 81 c7 e0 08 ret <== NOT EXECUTED
203b84c: 81 e8 00 00 restore <== NOT EXECUTED
rc, strerror (rc));
errno = rc;
return -1;
}
if (((*fs)->flags & RTEMS_RFS_FS_FORCE_OPEN) == 0)
203b850: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED
203b854: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED
203b858: 12 80 00 1d bne 203b8cc <rtems_rfs_fs_open+0x4f8> <== NOT EXECUTED
203b85c: 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);
203b860: c6 08 a0 03 ldub [ %g2 + 3 ], %g3 <== NOT EXECUTED
203b864: 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))
203b868: 05 00 00 3f sethi %hi(0xfc00), %g2 <== NOT EXECUTED
203b86c: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
203b870: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
203b874: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
203b878: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
203b87c: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED
203b880: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203b884: 02 80 00 07 be 203b8a0 <rtems_rfs_fs_open+0x4cc> <== NOT EXECUTED
203b888: 05 00 00 3c sethi %hi(0xf000), %g2 <== NOT EXECUTED
203b88c: 82 08 40 02 and %g1, %g2, %g1 <== NOT EXECUTED
203b890: 05 00 00 10 sethi %hi(0x4000), %g2 <== NOT EXECUTED
203b894: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203b898: 02 80 00 0d be 203b8cc <rtems_rfs_fs_open+0x4f8> <== NOT EXECUTED
203b89c: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_rfs_inode_close (*fs, &inode);
203b8a0: 40 00 05 a5 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203b8a4: 92 07 bf cc add %fp, -52, %o1 <== NOT EXECUTED
rtems_rfs_buffer_close (*fs);
203b8a8: 7f ff f7 b6 call 2039780 <rtems_rfs_buffer_close> <== NOT EXECUTED
203b8ac: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
free (*fs);
203b8b0: 7f ff 32 6c call 2008260 <free> <== NOT EXECUTED
203b8b4: 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;
203b8b8: 40 00 1c dc call 2042c28 <__errno> <== NOT EXECUTED
203b8bc: 01 00 00 00 nop <== NOT EXECUTED
203b8c0: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
203b8c4: 10 80 00 0f b 203b900 <rtems_rfs_fs_open+0x52c> <== NOT EXECUTED
203b8c8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return -1;
}
}
rc = rtems_rfs_inode_close (*fs, &inode);
203b8cc: 40 00 05 9a call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203b8d0: 92 07 bf cc add %fp, -52, %o1 <== NOT EXECUTED
if (rc > 0)
203b8d4: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203b8d8: 04 80 00 0c ble 203b908 <rtems_rfs_fs_open+0x534> <== NOT EXECUTED
203b8dc: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_rfs_buffer_close (*fs);
203b8e0: 7f ff f7 a8 call 2039780 <rtems_rfs_buffer_close> <== NOT EXECUTED
203b8e4: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
free (*fs);
203b8e8: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
203b8ec: 7f ff 32 5d call 2008260 <free> <== NOT EXECUTED
203b8f0: 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;
203b8f4: 40 00 1c cd call 2042c28 <__errno> <== NOT EXECUTED
203b8f8: 01 00 00 00 nop <== NOT EXECUTED
203b8fc: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED
return -1;
203b900: 81 c7 e0 08 ret <== NOT EXECUTED
203b904: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
}
errno = 0;
203b908: 40 00 1c c8 call 2042c28 <__errno> <== NOT EXECUTED
203b90c: b0 10 20 00 clr %i0 <== NOT EXECUTED
203b910: c0 22 00 00 clr [ %o0 ] <== NOT EXECUTED
return 0;
}
203b914: 81 c7 e0 08 ret <== NOT EXECUTED
203b918: 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);
203b91c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
203b920: 94 07 bf cc add %fp, -52, %o2 <== NOT EXECUTED
203b924: 40 00 05 ad call 203cfd8 <rtems_rfs_inode_open> <== NOT EXECUTED
203b928: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
203b92c: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203b930: 24 bf ff c8 ble,a 203b850 <rtems_rfs_fs_open+0x47c> <== NOT EXECUTED
203b934: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
203b938: 30 bf ff ea b,a 203b8e0 <rtems_rfs_fs_open+0x50c> <== NOT EXECUTED
0203b310 <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)
{
203b310: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
203b314: d6 06 20 04 ld [ %i0 + 4 ], %o3 <== NOT EXECUTED
203b318: d2 06 20 08 ld [ %i0 + 8 ], %o1 <== NOT EXECUTED
203b31c: 94 10 20 00 clr %o2 <== NOT EXECUTED
203b320: 40 00 80 c7 call 205b63c <__muldi3> <== NOT EXECUTED
203b324: 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;
}
203b328: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
203b32c: 81 c7 e0 08 ret <== NOT EXECUTED
203b330: 93 e8 00 09 restore %g0, %o1, %o1 <== NOT EXECUTED
0203c8e8 <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)
{
203c8e8: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
203c8ec: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
rtems_rfs_bitmap_bit bit;
int offset;
bool updown;
int direction;
if (inode)
203c8f0: 80 8e a0 ff btst 0xff, %i2 <== NOT EXECUTED
203c8f4: 02 80 00 05 be 203c908 <rtems_rfs_group_bitmap_alloc+0x20><== NOT EXECUTED
203c8f8: a2 10 00 19 mov %i1, %l1 <== NOT EXECUTED
{
size = fs->group_inodes;
goal -= RTEMS_RFS_ROOT_INO;
203c8fc: a2 06 7f ff add %i1, -1, %l1 <== NOT EXECUTED
bool updown;
int direction;
if (inode)
{
size = fs->group_inodes;
203c900: 10 80 00 03 b 203c90c <rtems_rfs_group_bitmap_alloc+0x24> <== NOT EXECUTED
203c904: e6 06 20 28 ld [ %i0 + 0x28 ], %l3 <== NOT EXECUTED
goal -= RTEMS_RFS_ROOT_INO;
}
else
size = fs->group_blocks;
203c908: e6 06 20 24 ld [ %i0 + 0x24 ], %l3 <== NOT EXECUTED
group_start = goal / size;
203c90c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203c910: 40 00 79 f3 call 205b0dc <.udiv> <== NOT EXECUTED
203c914: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
bit = (rtems_rfs_bitmap_bit) (goal % size);
203c918: 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;
203c91c: b2 04 ff ff add %l3, -1, %i1 <== NOT EXECUTED
goal -= RTEMS_RFS_ROOT_INO;
}
else
size = fs->group_blocks;
group_start = goal / size;
203c920: b8 10 00 08 mov %o0, %i4 <== NOT EXECUTED
bit = (rtems_rfs_bitmap_bit) (goal % size);
203c924: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED
203c928: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203c92c: 40 00 7a 98 call 205b38c <.urem> <== NOT EXECUTED
203c930: a8 10 20 01 mov 1, %l4 <== NOT EXECUTED
203c934: a6 10 20 00 clr %l3 <== NOT EXECUTED
203c938: d0 27 bf f8 st %o0, [ %fp + -8 ] <== NOT EXECUTED
direction = direction > 0 ? -1 : 1;
updown = false;
continue;
}
if (inode)
203c93c: 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);
203c940: ae 07 bf ff add %fp, -1, %l7 <== NOT EXECUTED
203c944: 10 80 00 03 b 203c950 <rtems_rfs_group_bitmap_alloc+0x68> <== NOT EXECUTED
203c948: 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);
203c94c: a8 10 20 00 clr %l4 <== NOT EXECUTED
*/
while (true)
{
rtems_rfs_bitmap_control* bitmap;
int group;
bool allocated = false;
203c950: 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);
203c954: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
203c958: 7f ff 18 28 call 20029f8 <.umul> <== NOT EXECUTED
203c95c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
if (offset)
203c960: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
203c964: 02 80 00 07 be 203c980 <rtems_rfs_group_bitmap_alloc+0x98><== NOT EXECUTED
203c968: a2 02 00 1c add %o0, %i4, %l1 <== NOT EXECUTED
bit = direction > 0 ? 0 : size - 1;
203c96c: 82 1c a0 01 xor %l2, 1, %g1 <== NOT EXECUTED
203c970: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
203c974: 82 60 20 00 subx %g0, 0, %g1 <== NOT EXECUTED
203c978: 82 0e 40 01 and %i1, %g1, %g1 <== NOT EXECUTED
203c97c: 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))
203c980: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
203c984: 06 80 00 06 bl 203c99c <rtems_rfs_group_bitmap_alloc+0xb4><== NOT EXECUTED
203c988: 80 8d 20 ff btst 0xff, %l4 <== NOT EXECUTED
203c98c: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED
203c990: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
203c994: 06 80 00 08 bl 203c9b4 <rtems_rfs_group_bitmap_alloc+0xcc><== NOT EXECUTED
203c998: 80 8d 20 ff btst 0xff, %l4 <== NOT EXECUTED
{
if (!updown)
203c99c: 02 80 00 40 be 203ca9c <rtems_rfs_group_bitmap_alloc+0x1b4><== NOT EXECUTED
203c9a0: 80 a4 a0 01 cmp %l2, 1 <== NOT EXECUTED
break;
direction = direction > 0 ? -1 : 1;
203c9a4: 22 bf ff ea be,a 203c94c <rtems_rfs_group_bitmap_alloc+0x64><== NOT EXECUTED
203c9a8: a4 10 3f ff mov -1, %l2 <== NOT EXECUTED
203c9ac: 10 bf ff e8 b 203c94c <rtems_rfs_group_bitmap_alloc+0x64> <== NOT EXECUTED
203c9b0: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED
updown = false;
continue;
}
if (inode)
203c9b4: 80 a7 60 00 cmp %i5, 0 <== NOT EXECUTED
203c9b8: ab 2c 60 04 sll %l1, 4, %l5 <== NOT EXECUTED
203c9bc: 85 2c 60 06 sll %l1, 6, %g2 <== NOT EXECUTED
203c9c0: 02 80 00 06 be 203c9d8 <rtems_rfs_group_bitmap_alloc+0xf0><== NOT EXECUTED
203c9c4: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
bitmap = &fs->groups[group].inode_bitmap;
203c9c8: aa 05 40 02 add %l5, %g2, %l5 <== NOT EXECUTED
203c9cc: aa 00 40 15 add %g1, %l5, %l5 <== NOT EXECUTED
203c9d0: 10 80 00 05 b 203c9e4 <rtems_rfs_group_bitmap_alloc+0xfc> <== NOT EXECUTED
203c9d4: aa 05 60 2c add %l5, 0x2c, %l5 <== NOT EXECUTED
else
bitmap = &fs->groups[group].block_bitmap;
203c9d8: aa 05 40 02 add %l5, %g2, %l5 <== NOT EXECUTED
203c9dc: aa 00 40 15 add %g1, %l5, %l5 <== NOT EXECUTED
203c9e0: aa 05 60 08 add %l5, 8, %l5 <== NOT EXECUTED
rc = rtems_rfs_bitmap_map_alloc (bitmap, bit, &allocated, &bit);
203c9e4: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
203c9e8: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
203c9ec: 94 10 00 17 mov %l7, %o2 <== NOT EXECUTED
203c9f0: 40 00 16 96 call 2042448 <rtems_rfs_bitmap_map_alloc> <== NOT EXECUTED
203c9f4: 96 10 00 16 mov %l6, %o3 <== NOT EXECUTED
if (rc > 0)
203c9f8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203c9fc: 14 80 00 29 bg 203caa0 <rtems_rfs_group_bitmap_alloc+0x1b8><== NOT EXECUTED
203ca00: 01 00 00 00 nop <== NOT EXECUTED
return rc;
if (rtems_rfs_fs_release_bitmaps (fs))
203ca04: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
203ca08: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
203ca0c: 12 80 00 06 bne 203ca24 <rtems_rfs_group_bitmap_alloc+0x13c><== NOT EXECUTED
203ca10: c2 0f bf ff ldub [ %fp + -1 ], %g1 <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
203ca14: d2 05 40 00 ld [ %l5 ], %o1 <== NOT EXECUTED
203ca18: 7f ff f3 7c call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203ca1c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (allocated)
203ca20: c2 0f bf ff ldub [ %fp + -1 ], %g1 <== NOT EXECUTED
203ca24: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203ca28: 02 80 00 16 be 203ca80 <rtems_rfs_group_bitmap_alloc+0x198><== NOT EXECUTED
203ca2c: 80 8d 20 ff btst 0xff, %l4 <== NOT EXECUTED
{
if (inode)
203ca30: 80 8e a0 ff btst 0xff, %i2 <== NOT EXECUTED
203ca34: 02 80 00 0a be 203ca5c <rtems_rfs_group_bitmap_alloc+0x174><== NOT EXECUTED
203ca38: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
*result = rtems_rfs_group_inode (fs, group, bit);
203ca3c: d2 04 20 28 ld [ %l0 + 0x28 ], %o1 <== NOT EXECUTED
203ca40: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203ca44: 7f ff 17 ed call 20029f8 <.umul> <== NOT EXECUTED
203ca48: a0 00 60 01 add %g1, 1, %l0 <== NOT EXECUTED
203ca4c: 90 04 00 08 add %l0, %o0, %o0 <== NOT EXECUTED
203ca50: d0 26 c0 00 st %o0, [ %i3 ] <== NOT EXECUTED
203ca54: 10 80 00 13 b 203caa0 <rtems_rfs_group_bitmap_alloc+0x1b8><== NOT EXECUTED
203ca58: 90 10 20 00 clr %o0 <== NOT EXECUTED
else
*result = rtems_rfs_group_block (&fs->groups[group], bit);
203ca5c: c4 04 20 1c ld [ %l0 + 0x1c ], %g2 <== NOT EXECUTED
203ca60: 87 2c 60 06 sll %l1, 6, %g3 <== NOT EXECUTED
203ca64: a3 2c 60 04 sll %l1, 4, %l1 <== NOT EXECUTED
203ca68: a2 04 40 03 add %l1, %g3, %l1 <== NOT EXECUTED
203ca6c: e0 00 80 11 ld [ %g2 + %l1 ], %l0 <== NOT EXECUTED
203ca70: 90 10 20 00 clr %o0 <== NOT EXECUTED
203ca74: 82 00 40 10 add %g1, %l0, %g1 <== NOT EXECUTED
203ca78: 10 80 00 0a b 203caa0 <rtems_rfs_group_bitmap_alloc+0x1b8><== NOT EXECUTED
203ca7c: 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)
203ca80: 02 bf ff b4 be 203c950 <rtems_rfs_group_bitmap_alloc+0x68><== NOT EXECUTED
203ca84: a6 04 e0 01 inc %l3 <== NOT EXECUTED
direction = direction > 0 ? -1 : 1;
203ca88: a4 1c a0 01 xor %l2, 1, %l2 <== NOT EXECUTED
203ca8c: 80 a0 00 12 cmp %g0, %l2 <== NOT EXECUTED
203ca90: a4 40 3f ff addx %g0, -1, %l2 <== NOT EXECUTED
203ca94: 10 bf ff af b 203c950 <rtems_rfs_group_bitmap_alloc+0x68> <== NOT EXECUTED
203ca98: a4 14 a0 01 or %l2, 1, %l2 <== NOT EXECUTED
offset++;
203ca9c: 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;
}
203caa0: 81 c7 e0 08 ret <== NOT EXECUTED
203caa4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203c85c <rtems_rfs_group_bitmap_free>:
int
rtems_rfs_group_bitmap_free (rtems_rfs_file_system* fs,
bool inode,
rtems_rfs_bitmap_bit no)
{
203c85c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
203c860: 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)
203c864: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED
203c868: 02 80 00 04 be 203c878 <rtems_rfs_group_bitmap_free+0x1c> <== NOT EXECUTED
203c86c: b4 06 bf ff add %i2, -1, %i2 <== NOT EXECUTED
{
no -= RTEMS_RFS_ROOT_INO;
size = fs->group_inodes;
203c870: 10 80 00 03 b 203c87c <rtems_rfs_group_bitmap_free+0x20> <== NOT EXECUTED
203c874: e2 06 20 28 ld [ %i0 + 0x28 ], %l1 <== NOT EXECUTED
}
else
{
no -= RTEMS_RFS_SUPERBLOCK_SIZE;
size = fs->group_blocks;
203c878: e2 06 20 24 ld [ %i0 + 0x24 ], %l1 <== NOT EXECUTED
}
group = no / size;
203c87c: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
203c880: 40 00 7a 17 call 205b0dc <.udiv> <== NOT EXECUTED
203c884: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
bit = (rtems_rfs_bitmap_bit) (no % size);
if (inode)
203c888: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED
203c88c: 85 2a 20 06 sll %o0, 6, %g2 <== NOT EXECUTED
203c890: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203c894: 02 80 00 06 be 203c8ac <rtems_rfs_group_bitmap_free+0x50> <== NOT EXECUTED
203c898: 91 2a 20 04 sll %o0, 4, %o0 <== NOT EXECUTED
bitmap = &fs->groups[group].inode_bitmap;
203c89c: b2 02 00 02 add %o0, %g2, %i1 <== NOT EXECUTED
203c8a0: b2 00 40 19 add %g1, %i1, %i1 <== NOT EXECUTED
203c8a4: 10 80 00 05 b 203c8b8 <rtems_rfs_group_bitmap_free+0x5c> <== NOT EXECUTED
203c8a8: b2 06 60 2c add %i1, 0x2c, %i1 <== NOT EXECUTED
else
bitmap = &fs->groups[group].block_bitmap;
203c8ac: b2 02 00 02 add %o0, %g2, %i1 <== NOT EXECUTED
203c8b0: b2 00 40 19 add %g1, %i1, %i1 <== NOT EXECUTED
203c8b4: b2 06 60 08 add %i1, 8, %i1 <== NOT EXECUTED
rc = rtems_rfs_bitmap_map_clear (bitmap, bit);
203c8b8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203c8bc: 40 00 7a b4 call 205b38c <.urem> <== NOT EXECUTED
203c8c0: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
203c8c4: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
203c8c8: 40 00 16 17 call 2042124 <rtems_rfs_bitmap_map_clear> <== NOT EXECUTED
203c8cc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
203c8d0: 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);
203c8d4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
203c8d8: 7f ff f3 cc call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203c8dc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
}
203c8e0: 81 c7 e0 08 ret <== NOT EXECUTED
203c8e4: 81 e8 00 00 restore <== NOT EXECUTED
0203c79c <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)
{
203c79c: 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)
203c7a0: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED
203c7a4: 02 80 00 0b be 203c7d0 <rtems_rfs_group_bitmap_test+0x34> <== NOT EXECUTED
203c7a8: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
{
if ((no < RTEMS_RFS_ROOT_INO) || (no > rtems_rfs_fs_inodes (fs)))
203c7ac: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
203c7b0: 04 80 00 29 ble 203c854 <rtems_rfs_group_bitmap_test+0xb8><== NOT EXECUTED
203c7b4: 01 00 00 00 nop <== NOT EXECUTED
203c7b8: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
203c7bc: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED
203c7c0: 18 80 00 25 bgu 203c854 <rtems_rfs_group_bitmap_test+0xb8><== NOT EXECUTED
203c7c4: b4 06 bf ff add %i2, -1, %i2 <== NOT EXECUTED
return EINVAL;
no -= RTEMS_RFS_ROOT_INO;
size = fs->group_inodes;
203c7c8: 10 80 00 07 b 203c7e4 <rtems_rfs_group_bitmap_test+0x48> <== NOT EXECUTED
203c7cc: e2 06 20 28 ld [ %i0 + 0x28 ], %l1 <== NOT EXECUTED
}
else
{
if (no >= rtems_rfs_fs_blocks (fs))
203c7d0: c2 06 20 04 ld [ %i0 + 4 ], %g1 <== NOT EXECUTED
203c7d4: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED
203c7d8: 1a 80 00 1f bcc 203c854 <rtems_rfs_group_bitmap_test+0xb8><== NOT EXECUTED
203c7dc: 01 00 00 00 nop <== NOT EXECUTED
return EINVAL;
size = fs->group_blocks;
203c7e0: e2 06 20 24 ld [ %i0 + 0x24 ], %l1 <== NOT EXECUTED
}
group = no / size;
203c7e4: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
203c7e8: 40 00 7a 3d call 205b0dc <.udiv> <== NOT EXECUTED
203c7ec: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
bit = (rtems_rfs_bitmap_bit) (no % size);
if (inode)
203c7f0: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED
203c7f4: 85 2a 20 06 sll %o0, 6, %g2 <== NOT EXECUTED
203c7f8: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203c7fc: 02 80 00 06 be 203c814 <rtems_rfs_group_bitmap_test+0x78> <== NOT EXECUTED
203c800: 91 2a 20 04 sll %o0, 4, %o0 <== NOT EXECUTED
bitmap = &fs->groups[group].inode_bitmap;
203c804: b2 02 00 02 add %o0, %g2, %i1 <== NOT EXECUTED
203c808: b2 00 40 19 add %g1, %i1, %i1 <== NOT EXECUTED
203c80c: 10 80 00 05 b 203c820 <rtems_rfs_group_bitmap_test+0x84> <== NOT EXECUTED
203c810: b2 06 60 2c add %i1, 0x2c, %i1 <== NOT EXECUTED
else
bitmap = &fs->groups[group].block_bitmap;
203c814: b2 02 00 02 add %o0, %g2, %i1 <== NOT EXECUTED
203c818: b2 00 40 19 add %g1, %i1, %i1 <== NOT EXECUTED
203c81c: b2 06 60 08 add %i1, 8, %i1 <== NOT EXECUTED
rc = rtems_rfs_bitmap_map_test (bitmap, bit, state);
203c820: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203c824: 40 00 7a da call 205b38c <.urem> <== NOT EXECUTED
203c828: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
203c82c: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED
203c830: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
203c834: 40 00 16 24 call 20420c4 <rtems_rfs_bitmap_map_test> <== NOT EXECUTED
203c838: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
203c83c: 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);
203c840: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
203c844: 7f ff f3 f1 call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203c848: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
203c84c: 81 c7 e0 08 ret <== NOT EXECUTED
203c850: 81 e8 00 00 restore <== NOT EXECUTED
}
203c854: 81 c7 e0 08 ret <== NOT EXECUTED
203c858: 91 e8 20 16 restore %g0, 0x16, %o0 <== NOT EXECUTED
0203caa8 <rtems_rfs_group_close>:
return 0;
}
int
rtems_rfs_group_close (rtems_rfs_file_system* fs, rtems_rfs_group* group)
{
203caa8: 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);
203caac: 40 00 14 d4 call 2041dfc <rtems_rfs_bitmap_close> <== NOT EXECUTED
203cab0: 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);
203cab4: 92 06 60 44 add %i1, 0x44, %o1 <== NOT EXECUTED
203cab8: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
203cabc: 7f ff f3 53 call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203cac0: 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)
{
203cac4: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
handle->dirty = false;
203cac8: c0 2e 60 44 clrb [ %i1 + 0x44 ] <== NOT EXECUTED
handle->bnum = 0;
203cacc: c0 26 60 48 clr [ %i1 + 0x48 ] <== NOT EXECUTED
handle->buffer = NULL;
203cad0: 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);
203cad4: 40 00 14 ca call 2041dfc <rtems_rfs_bitmap_close> <== NOT EXECUTED
203cad8: 90 06 60 08 add %i1, 8, %o0 <== NOT EXECUTED
if (rc > 0)
203cadc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203cae0: 14 80 00 05 bg 203caf4 <rtems_rfs_group_close+0x4c> <== NOT EXECUTED
203cae4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203cae8: b0 38 00 11 xnor %g0, %l1, %i0 <== NOT EXECUTED
203caec: b1 3e 20 1f sra %i0, 0x1f, %i0 <== NOT EXECUTED
203caf0: 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);
203caf4: 7f ff f3 45 call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203caf8: 92 06 60 20 add %i1, 0x20, %o1 <== NOT EXECUTED
handle->dirty = false;
handle->bnum = 0;
handle->buffer = NULL;
203cafc: 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;
203cb00: c0 2e 60 20 clrb [ %i1 + 0x20 ] <== NOT EXECUTED
handle->bnum = 0;
203cb04: 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;
}
203cb08: 81 c7 e0 08 ret <== NOT EXECUTED
203cb0c: 81 e8 00 00 restore <== NOT EXECUTED
0203cb10 <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)
{
203cb10: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc;
if (base >= rtems_rfs_fs_blocks (fs))
203cb14: 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)
{
203cb18: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
203cb1c: 98 10 00 19 mov %i1, %o4 <== NOT EXECUTED
int rc;
if (base >= rtems_rfs_fs_blocks (fs))
203cb20: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
203cb24: 1a 80 00 34 bcc 203cbf4 <rtems_rfs_group_open+0xe4> <== NOT EXECUTED
203cb28: 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))
203cb2c: 84 06 80 19 add %i2, %i1, %g2 <== NOT EXECUTED
203cb30: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203cb34: 3a 80 00 02 bcc,a 203cb3c <rtems_rfs_group_open+0x2c> <== NOT EXECUTED
203cb38: 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;
203cb3c: d8 27 00 00 st %o4, [ %i4 ] <== NOT EXECUTED
group->size = size;
203cb40: 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;
203cb44: c0 2f 20 20 clrb [ %i4 + 0x20 ] <== NOT EXECUTED
handle->bnum = 0;
203cb48: c0 27 20 24 clr [ %i4 + 0x24 ] <== NOT EXECUTED
handle->buffer = NULL;
203cb4c: 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,
203cb50: a4 07 20 08 add %i4, 8, %l2 <== NOT EXECUTED
203cb54: a2 07 20 20 add %i4, 0x20, %l1 <== NOT EXECUTED
203cb58: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
203cb5c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203cb60: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
203cb64: 40 00 14 f5 call 2041f38 <rtems_rfs_bitmap_open> <== NOT EXECUTED
203cb68: 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)
203cb6c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203cb70: 14 80 00 1c bg 203cbe0 <rtems_rfs_group_open+0xd0> <== NOT EXECUTED
203cb74: 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;
203cb78: c0 2f 20 44 clrb [ %i4 + 0x44 ] <== NOT EXECUTED
handle->bnum = 0;
203cb7c: c0 27 20 48 clr [ %i4 + 0x48 ] <== NOT EXECUTED
handle->buffer = NULL;
203cb80: 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,
203cb84: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
203cb88: 80 a6 80 1b cmp %i2, %i3 <== NOT EXECUTED
203cb8c: a6 07 20 44 add %i4, 0x44, %l3 <== NOT EXECUTED
203cb90: 08 80 00 03 bleu 203cb9c <rtems_rfs_group_open+0x8c> <== NOT EXECUTED
203cb94: 90 07 20 2c add %i4, 0x2c, %o0 <== NOT EXECUTED
203cb98: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
203cb9c: d8 07 00 00 ld [ %i4 ], %o4 <== NOT EXECUTED
203cba0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203cba4: 98 03 20 01 inc %o4 <== NOT EXECUTED
203cba8: 40 00 14 e4 call 2041f38 <rtems_rfs_bitmap_open> <== NOT EXECUTED
203cbac: 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)
203cbb0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203cbb4: 24 80 00 12 ble,a 203cbfc <rtems_rfs_group_open+0xec> <== NOT EXECUTED
203cbb8: 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);
203cbbc: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203cbc0: 7f ff f3 12 call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203cbc4: 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);
203cbc8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
handle->dirty = false;
203cbcc: c0 2f 20 44 clrb [ %i4 + 0x44 ] <== NOT EXECUTED
handle->bnum = 0;
203cbd0: c0 27 20 48 clr [ %i4 + 0x48 ] <== NOT EXECUTED
203cbd4: 40 00 14 8a call 2041dfc <rtems_rfs_bitmap_close> <== NOT EXECUTED
203cbd8: 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);
203cbdc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203cbe0: 7f ff f3 0a call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203cbe4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
handle->dirty = false;
handle->bnum = 0;
handle->buffer = NULL;
203cbe8: 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;
203cbec: c0 2f 20 20 clrb [ %i4 + 0x20 ] <== NOT EXECUTED
handle->bnum = 0;
203cbf0: c0 27 20 24 clr [ %i4 + 0x24 ] <== NOT EXECUTED
203cbf4: 81 c7 e0 08 ret <== NOT EXECUTED
203cbf8: 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))
203cbfc: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
203cc00: 12 bf ff fd bne 203cbf4 <rtems_rfs_group_open+0xe4> <== NOT EXECUTED
203cc04: b0 10 20 00 clr %i0 <== NOT EXECUTED
{
rtems_rfs_bitmap_release_buffer (fs, &group->block_bitmap);
203cc08: d2 07 20 08 ld [ %i4 + 8 ], %o1 <== NOT EXECUTED
203cc0c: 7f ff f2 ff call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203cc10: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, &group->inode_bitmap);
203cc14: d2 07 20 2c ld [ %i4 + 0x2c ], %o1 <== NOT EXECUTED
203cc18: 7f ff f2 fc call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203cc1c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
}
return 0;
}
203cc20: 81 c7 e0 08 ret <== NOT EXECUTED
203cc24: 81 e8 00 00 restore <== NOT EXECUTED
0203c704 <rtems_rfs_group_usage>:
int
rtems_rfs_group_usage (rtems_rfs_file_system* fs,
size_t* blocks,
size_t* inodes)
{
203c704: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int g;
*blocks = 0;
203c708: c0 26 40 00 clr [ %i1 ] <== NOT EXECUTED
*inodes = 0;
203c70c: c0 26 80 00 clr [ %i2 ] <== NOT EXECUTED
203c710: 88 10 20 00 clr %g4 <== NOT EXECUTED
for (g = 0; g < fs->group_count; g++)
203c714: 10 80 00 11 b 203c758 <rtems_rfs_group_usage+0x54> <== NOT EXECUTED
203c718: 86 10 20 00 clr %g3 <== NOT EXECUTED
{
rtems_rfs_group* group = &fs->groups[g];
203c71c: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
int g;
*blocks = 0;
*inodes = 0;
for (g = 0; g < fs->group_count; g++)
203c720: 86 00 e0 01 inc %g3 <== NOT EXECUTED
{
rtems_rfs_group* group = &fs->groups[g];
203c724: 82 00 40 04 add %g1, %g4, %g1 <== NOT EXECUTED
*blocks +=
203c728: d8 00 60 14 ld [ %g1 + 0x14 ], %o4 <== NOT EXECUTED
203c72c: da 00 60 18 ld [ %g1 + 0x18 ], %o5 <== NOT EXECUTED
int g;
*blocks = 0;
*inodes = 0;
for (g = 0; g < fs->group_count; g++)
203c730: 88 01 20 50 add %g4, 0x50, %g4 <== NOT EXECUTED
{
rtems_rfs_group* group = &fs->groups[g];
*blocks +=
203c734: 9a 23 00 0d sub %o4, %o5, %o5 <== NOT EXECUTED
203c738: 84 00 80 0d add %g2, %o5, %g2 <== NOT EXECUTED
203c73c: 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 +=
203c740: da 00 60 3c ld [ %g1 + 0x3c ], %o5 <== NOT EXECUTED
203c744: c4 06 80 00 ld [ %i2 ], %g2 <== NOT EXECUTED
203c748: c2 00 60 38 ld [ %g1 + 0x38 ], %g1 <== NOT EXECUTED
203c74c: 82 20 40 0d sub %g1, %o5, %g1 <== NOT EXECUTED
203c750: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
203c754: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
int g;
*blocks = 0;
*inodes = 0;
for (g = 0; g < fs->group_count; g++)
203c758: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED
203c75c: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED
203c760: 06 bf ff ef bl 203c71c <rtems_rfs_group_usage+0x18> <== NOT EXECUTED
203c764: 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))
203c768: c2 06 20 04 ld [ %i0 + 4 ], %g1 <== NOT EXECUTED
203c76c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203c770: 28 80 00 02 bleu,a 203c778 <rtems_rfs_group_usage+0x74> <== NOT EXECUTED
203c774: 82 10 00 02 mov %g2, %g1 <== NOT EXECUTED
203c778: c2 26 40 00 st %g1, [ %i1 ] <== NOT EXECUTED
*blocks = rtems_rfs_fs_blocks (fs);
if (*inodes > rtems_rfs_fs_inodes (fs))
203c77c: c4 06 20 10 ld [ %i0 + 0x10 ], %g2 <== NOT EXECUTED
203c780: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
203c784: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203c788: 38 80 00 02 bgu,a 203c790 <rtems_rfs_group_usage+0x8c> <== NOT EXECUTED
203c78c: 82 10 00 02 mov %g2, %g1 <== NOT EXECUTED
203c790: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
*inodes = rtems_rfs_fs_inodes (fs);
return 0;
}
203c794: 81 c7 e0 08 ret <== NOT EXECUTED
203c798: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
0203d134 <rtems_rfs_inode_alloc>:
int
rtems_rfs_inode_alloc (rtems_rfs_file_system* fs,
rtems_rfs_bitmap_bit goal,
rtems_rfs_ino* ino)
{
203d134: 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);
203d138: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203d13c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203d140: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203d144: 7f ff fd e9 call 203c8e8 <rtems_rfs_group_bitmap_alloc> <== NOT EXECUTED
203d148: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
*ino = bit;
203d14c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203d150: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
return rc;
}
203d154: 81 c7 e0 08 ret <== NOT EXECUTED
203d158: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203cf34 <rtems_rfs_inode_close>:
}
int
rtems_rfs_inode_close (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
203cf34: 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);
203cf38: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203cf3c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203cf40: 7f ff ff d2 call 203ce88 <rtems_rfs_inode_unload> <== NOT EXECUTED
203cf44: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
if ((rc == 0) && (handle->loads > 0))
203cf48: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203cf4c: 32 80 00 07 bne,a 203cf68 <rtems_rfs_inode_close+0x34> <== NOT EXECUTED
203cf50: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED
203cf54: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED
203cf58: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203cf5c: 34 80 00 02 bg,a 203cf64 <rtems_rfs_inode_close+0x30> <== NOT EXECUTED
203cf60: 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;
203cf64: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED
return rc;
}
203cf68: 81 c7 e0 08 ret <== NOT EXECUTED
203cf6c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203d15c <rtems_rfs_inode_create>:
uint16_t mode,
uint16_t links,
uid_t uid,
gid_t gid,
rtems_rfs_ino* ino)
{
203d15c: 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)
203d160: 23 00 00 3c sethi %hi(0xf000), %l1 <== NOT EXECUTED
203d164: b9 2f 20 10 sll %i4, 0x10, %i4 <== NOT EXECUTED
203d168: 03 00 00 18 sethi %hi(0x6000), %g1 <== NOT EXECUTED
203d16c: 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)
{
203d170: 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)
203d174: 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)
{
203d178: 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)
203d17c: 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)
{
203d180: 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)
203d184: 02 80 00 11 be 203d1c8 <rtems_rfs_inode_create+0x6c> <== NOT EXECUTED
203d188: e4 07 a0 64 ld [ %fp + 0x64 ], %l2 <== NOT EXECUTED
203d18c: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
203d190: 14 80 00 08 bg 203d1b0 <rtems_rfs_inode_create+0x54> <== NOT EXECUTED
203d194: 03 00 00 20 sethi %hi(0x8000), %g1 <== NOT EXECUTED
203d198: 03 00 00 08 sethi %hi(0x2000), %g1 <== NOT EXECUTED
203d19c: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
203d1a0: 02 80 00 0a be 203d1c8 <rtems_rfs_inode_create+0x6c> <== NOT EXECUTED
203d1a4: 03 00 00 10 sethi %hi(0x4000), %g1 <== NOT EXECUTED
203d1a8: 10 80 00 06 b 203d1c0 <rtems_rfs_inode_create+0x64> <== NOT EXECUTED
203d1ac: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
203d1b0: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
203d1b4: 02 80 00 05 be 203d1c8 <rtems_rfs_inode_create+0x6c> <== NOT EXECUTED
203d1b8: 03 00 00 28 sethi %hi(0xa000), %g1 <== NOT EXECUTED
203d1bc: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
203d1c0: 12 80 00 26 bne 203d258 <rtems_rfs_inode_create+0xfc> <== NOT EXECUTED
203d1c4: b0 10 20 16 mov 0x16, %i0 <== NOT EXECUTED
break;
default:
return EINVAL;
}
rc = rtems_rfs_inode_alloc (fs, parent, ino);
203d1c8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d1cc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203d1d0: 7f ff ff d9 call 203d134 <rtems_rfs_inode_alloc> <== NOT EXECUTED
203d1d4: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
if (rc > 0)
203d1d8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d1dc: 14 80 00 1f bg 203d258 <rtems_rfs_inode_create+0xfc> <== NOT EXECUTED
203d1e0: a6 07 bf b0 add %fp, -80, %l3 <== NOT EXECUTED
return rc;
rc = rtems_rfs_inode_open (fs, *ino, &inode, true);
203d1e4: d2 04 80 00 ld [ %l2 ], %o1 <== NOT EXECUTED
203d1e8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d1ec: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
203d1f0: 7f ff ff 7a call 203cfd8 <rtems_rfs_inode_open> <== NOT EXECUTED
203d1f4: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
203d1f8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d1fc: 04 80 00 04 ble 203d20c <rtems_rfs_inode_create+0xb0> <== NOT EXECUTED
203d200: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_inode_free (fs, *ino);
203d204: 10 80 00 13 b 203d250 <rtems_rfs_inode_create+0xf4> <== NOT EXECUTED
203d208: d2 04 80 00 ld [ %l2 ], %o1 <== NOT EXECUTED
return rc;
}
rc = rtems_rfs_inode_initialise (&inode, links, mode, uid, gid);
203d20c: 93 2f 60 10 sll %i5, 0x10, %o1 <== NOT EXECUTED
203d210: 97 2d 60 10 sll %l5, 0x10, %o3 <== NOT EXECUTED
203d214: 99 2d 20 10 sll %l4, 0x10, %o4 <== NOT EXECUTED
203d218: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED
203d21c: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
203d220: 97 32 e0 10 srl %o3, 0x10, %o3 <== NOT EXECUTED
203d224: 99 33 20 10 srl %o4, 0x10, %o4 <== NOT EXECUTED
203d228: 7f ff fe c2 call 203cd30 <rtems_rfs_inode_initialise> <== NOT EXECUTED
203d22c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
if (rc > 0)
203d230: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d234: 04 80 00 0b ble 203d260 <rtems_rfs_inode_create+0x104> <== NOT EXECUTED
203d238: 03 00 00 10 sethi %hi(0x4000), %g1 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
203d23c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203d240: 7f ff ff 3d call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203d244: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_inode_free (fs, *ino);
203d248: d2 04 80 00 ld [ %l2 ], %o1 <== NOT EXECUTED
203d24c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d250: 7f ff ff 8f call 203d08c <rtems_rfs_inode_free> <== NOT EXECUTED
203d254: 01 00 00 00 nop <== NOT EXECUTED
return rc;
203d258: 81 c7 e0 08 ret <== NOT EXECUTED
203d25c: 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))
203d260: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
203d264: 12 80 00 17 bne 203d2c0 <rtems_rfs_inode_create+0x164> <== NOT EXECUTED
203d268: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
{
rc = rtems_rfs_dir_add_entry (fs, &inode, ".", 1, *ino);
203d26c: d8 04 80 00 ld [ %l2 ], %o4 <== NOT EXECUTED
203d270: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d274: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203d278: 15 00 81 9c sethi %hi(0x2067000), %o2 <== NOT EXECUTED
203d27c: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
203d280: 7f ff f4 0a call 203a2a8 <rtems_rfs_dir_add_entry> <== NOT EXECUTED
203d284: 94 12 a3 08 or %o2, 0x308, %o2 <== NOT EXECUTED
if (rc == 0)
203d288: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d28c: 12 80 00 0b bne 203d2b8 <rtems_rfs_inode_create+0x15c> <== NOT EXECUTED
203d290: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
rc = rtems_rfs_dir_add_entry (fs, &inode, "..", 2, parent);
203d294: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203d298: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d29c: 15 00 81 9c sethi %hi(0x2067000), %o2 <== NOT EXECUTED
203d2a0: 96 10 20 02 mov 2, %o3 <== NOT EXECUTED
203d2a4: 94 12 a3 10 or %o2, 0x310, %o2 <== NOT EXECUTED
203d2a8: 7f ff f4 00 call 203a2a8 <rtems_rfs_dir_add_entry> <== NOT EXECUTED
203d2ac: 98 10 00 19 mov %i1, %o4 <== NOT EXECUTED
203d2b0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
if (rc > 0)
203d2b4: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
203d2b8: 14 80 00 0a bg 203d2e0 <rtems_rfs_inode_create+0x184> <== NOT EXECUTED
203d2bc: 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);
203d2c0: a6 07 bf d8 add %fp, -40, %l3 <== NOT EXECUTED
203d2c4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d2c8: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
203d2cc: 7f ff ff 43 call 203cfd8 <rtems_rfs_inode_open> <== NOT EXECUTED
203d2d0: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
203d2d4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d2d8: 24 80 00 04 ble,a 203d2e8 <rtems_rfs_inode_create+0x18c> <== NOT EXECUTED
203d2dc: d8 04 80 00 ld [ %l2 ], %o4 <== NOT EXECUTED
{
rtems_rfs_inode_delete (fs, &inode);
203d2e0: 10 80 00 30 b 203d3a0 <rtems_rfs_inode_create+0x244> <== NOT EXECUTED
203d2e4: 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);
203d2e8: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
203d2ec: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
203d2f0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d2f4: 7f ff f3 ed call 203a2a8 <rtems_rfs_dir_add_entry> <== NOT EXECUTED
203d2f8: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
if (rc > 0)
203d2fc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d300: 04 80 00 0c ble 203d330 <rtems_rfs_inode_create+0x1d4> <== NOT EXECUTED
203d304: 03 00 00 10 sethi %hi(0x4000), %g1 <== NOT EXECUTED
{
rtems_rfs_inode_delete (fs, &inode);
203d308: a2 07 bf b0 add %fp, -80, %l1 <== NOT EXECUTED
203d30c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d310: 7f ff ff 65 call 203d0a4 <rtems_rfs_inode_delete> <== NOT EXECUTED
203d314: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
203d318: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203d31c: 7f ff ff 06 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203d320: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &parent_inode);
203d324: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d328: 10 80 00 23 b 203d3b4 <rtems_rfs_inode_create+0x258> <== NOT EXECUTED
203d32c: 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))
203d330: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
203d334: 12 80 00 15 bne 203d388 <rtems_rfs_inode_create+0x22c> <== NOT EXECUTED
203d338: 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);
203d33c: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
if (links == 0xffff)
203d340: 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);
203d344: c6 08 60 01 ldub [ %g1 + 1 ], %g3 <== NOT EXECUTED
203d348: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED
203d34c: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203d350: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
if (links == 0xffff)
203d354: 87 28 a0 10 sll %g2, 0x10, %g3 <== NOT EXECUTED
203d358: 87 30 e0 10 srl %g3, 0x10, %g3 <== NOT EXECUTED
203d35c: 86 39 00 03 xnor %g4, %g3, %g3 <== NOT EXECUTED
203d360: 80 a0 00 03 cmp %g0, %g3 <== NOT EXECUTED
203d364: 86 60 20 00 subx %g0, 0, %g3 <== NOT EXECUTED
203d368: 84 08 80 03 and %g2, %g3, %g2 <== NOT EXECUTED
rtems_rfs_inode_set_links (&parent_inode,
203d36c: 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);
203d370: 87 30 a0 08 srl %g2, 8, %g3 <== NOT EXECUTED
203d374: c6 28 40 00 stb %g3, [ %g1 ] <== NOT EXECUTED
203d378: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
203d37c: c4 28 60 01 stb %g2, [ %g1 + 1 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203d380: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203d384: 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);
203d388: 92 07 bf d8 add %fp, -40, %o1 <== NOT EXECUTED
203d38c: 7f ff fe ea call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203d390: a2 07 bf b0 add %fp, -80, %l1 <== NOT EXECUTED
if (rc > 0)
203d394: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d398: 04 80 00 0b ble 203d3c4 <rtems_rfs_inode_create+0x268> <== NOT EXECUTED
203d39c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
{
rtems_rfs_inode_delete (fs, &inode);
203d3a0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203d3a4: 7f ff ff 40 call 203d0a4 <rtems_rfs_inode_delete> <== NOT EXECUTED
203d3a8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
203d3ac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d3b0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203d3b4: 7f ff fe e0 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203d3b8: 01 00 00 00 nop <== NOT EXECUTED
return rc;
203d3bc: 81 c7 e0 08 ret <== NOT EXECUTED
203d3c0: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = rtems_rfs_inode_close (fs, &inode);
203d3c4: 7f ff fe dc call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203d3c8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc > 0)
203d3cc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d3d0: 34 80 00 04 bg,a 203d3e0 <rtems_rfs_inode_create+0x284> <== NOT EXECUTED
203d3d4: d2 04 80 00 ld [ %l2 ], %o1 <== NOT EXECUTED
203d3d8: 81 c7 e0 08 ret <== NOT EXECUTED
203d3dc: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
{
rtems_rfs_inode_free (fs, *ino);
203d3e0: 7f ff ff 2b call 203d08c <rtems_rfs_inode_free> <== NOT EXECUTED
203d3e4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
}
return 0;
}
203d3e8: 81 c7 e0 08 ret <== NOT EXECUTED
203d3ec: 81 e8 00 00 restore <== NOT EXECUTED
0203d0a4 <rtems_rfs_inode_delete>:
}
int
rtems_rfs_inode_delete (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
203d0a4: 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))
203d0a8: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
203d0ac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203d0b0: 02 80 00 1f be 203d12c <rtems_rfs_inode_delete+0x88> <== NOT EXECUTED
203d0b4: 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);
203d0b8: d2 06 60 08 ld [ %i1 + 8 ], %o1 <== NOT EXECUTED
203d0bc: 7f ff ff f4 call 203d08c <rtems_rfs_inode_free> <== NOT EXECUTED
203d0c0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rc > 0)
203d0c4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203d0c8: 14 80 00 19 bg 203d12c <rtems_rfs_inode_delete+0x88> <== NOT EXECUTED
203d0cc: 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);
203d0d0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203d0d4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203d0d8: 7f ff f0 fa call 20394c0 <rtems_rfs_block_map_open> <== NOT EXECUTED
203d0dc: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc == 0)
203d0e0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203d0e4: 12 80 00 12 bne 203d12c <rtems_rfs_inode_delete+0x88> <== NOT EXECUTED
203d0e8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
{
int rrc;
rrc = rtems_rfs_block_map_free_all (fs, &map);
203d0ec: 7f ff ef 53 call 2038e38 <rtems_rfs_block_map_free_all> <== NOT EXECUTED
203d0f0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
rc = rtems_rfs_block_map_close (fs, &map);
203d0f4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203d0f8: 7f ff f0 81 call 20392fc <rtems_rfs_block_map_close> <== NOT EXECUTED
203d0fc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rc > 0)
rrc = rc;
memset (handle->node, 0xff, RTEMS_RFS_INODE_SIZE);
203d100: d0 06 60 0c ld [ %i1 + 0xc ], %o0 <== NOT EXECUTED
203d104: 92 10 20 ff mov 0xff, %o1 <== NOT EXECUTED
203d108: 40 00 24 a7 call 20463a4 <memset> <== NOT EXECUTED
203d10c: 94 10 20 38 mov 0x38, %o2 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203d110: 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);
203d114: 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);
203d118: 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);
203d11c: 7f ff f1 bb call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203d120: 92 06 60 10 add %i1, 0x10, %o1 <== NOT EXECUTED
handle->loads = 0;
handle->node = NULL;
203d124: 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;
203d128: c0 26 60 24 clr [ %i1 + 0x24 ] <== NOT EXECUTED
handle->node = NULL;
}
}
return rc;
}
203d12c: 81 c7 e0 08 ret <== NOT EXECUTED
203d130: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203d08c <rtems_rfs_inode_free>:
}
int
rtems_rfs_inode_free (rtems_rfs_file_system* fs,
rtems_rfs_ino ino)
{
203d08c: 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);
203d090: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
203d094: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
203d098: 7f ff fd f1 call 203c85c <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
203d09c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
0203cc28 <rtems_rfs_inode_get_size>:
}
rtems_rfs_pos
rtems_rfs_inode_get_size (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
203cc28: 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);
203cc2c: 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);
203cc30: 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);
203cc34: d8 08 60 0c ldub [ %g1 + 0xc ], %o4 <== NOT EXECUTED
203cc38: 84 00 60 0c add %g1, 0xc, %g2 <== NOT EXECUTED
203cc3c: da 08 a0 03 ldub [ %g2 + 3 ], %o5 <== NOT EXECUTED
203cc40: c6 08 a0 02 ldub [ %g2 + 2 ], %g3 <== NOT EXECUTED
203cc44: c8 08 a0 01 ldub [ %g2 + 1 ], %g4 <== NOT EXECUTED
203cc48: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
203cc4c: 85 2b 20 18 sll %o4, 0x18, %g2 <== NOT EXECUTED
203cc50: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
203cc54: 84 13 40 02 or %o5, %g2, %g2 <== NOT EXECUTED
203cc58: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
203cc5c: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
203cc60: c4 27 bf f8 st %g2, [ %fp + -8 ] <== NOT EXECUTED
size.offset = rtems_rfs_inode_get_block_offset (handle);
203cc64: c4 08 60 0b ldub [ %g1 + 0xb ], %g2 <== NOT EXECUTED
203cc68: c2 08 60 0a ldub [ %g1 + 0xa ], %g1 <== NOT EXECUTED
return rtems_rfs_block_get_size (fs, &size);
203cc6c: 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);
203cc70: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
203cc74: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
return rtems_rfs_block_get_size (fs, &size);
203cc78: 7f ff ee b8 call 2038758 <rtems_rfs_block_get_size> <== NOT EXECUTED
203cc7c: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
}
203cc80: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
203cc84: 81 c7 e0 08 ret <== NOT EXECUTED
203cc88: 93 e8 00 09 restore %g0, %o1, %o1 <== NOT EXECUTED
0203cd30 <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);
203cd30: c4 02 20 0c ld [ %o0 + 0xc ], %g2 <== NOT EXECUTED
203cd34: 87 32 60 08 srl %o1, 8, %g3 <== NOT EXECUTED
203cd38: c6 28 80 00 stb %g3, [ %g2 ] <== NOT EXECUTED
203cd3c: 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);
203cd40: 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);
203cd44: 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);
203cd48: 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);
203cd4c: 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);
203cd50: c0 28 e0 08 clrb [ %g3 + 8 ] <== NOT EXECUTED
203cd54: 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)
{
203cd58: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED
203cd5c: 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);
203cd60: c6 02 20 0c ld [ %o0 + 0xc ], %g3 <== NOT EXECUTED
203cd64: c4 28 e0 02 stb %g2, [ %g3 + 2 ] <== NOT EXECUTED
203cd68: 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);
203cd6c: 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);
203cd70: 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);
203cd74: c6 02 20 0c ld [ %o0 + 0xc ], %g3 <== NOT EXECUTED
203cd78: 85 30 a0 10 srl %g2, 0x10, %g2 <== NOT EXECUTED
203cd7c: 84 13 00 02 or %o4, %g2, %g2 <== NOT EXECUTED
203cd80: 89 30 a0 18 srl %g2, 0x18, %g4 <== NOT EXECUTED
203cd84: c8 28 e0 04 stb %g4, [ %g3 + 4 ] <== NOT EXECUTED
203cd88: c6 02 20 0c ld [ %o0 + 0xc ], %g3 <== NOT EXECUTED
203cd8c: 89 30 a0 10 srl %g2, 0x10, %g4 <== NOT EXECUTED
203cd90: c8 28 e0 05 stb %g4, [ %g3 + 5 ] <== NOT EXECUTED
203cd94: c6 02 20 0c ld [ %o0 + 0xc ], %g3 <== NOT EXECUTED
203cd98: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
203cd9c: c4 28 e0 06 stb %g2, [ %g3 + 6 ] <== NOT EXECUTED
203cda0: 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);
203cda4: 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);
203cda8: 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);
203cdac: c4 02 20 0c ld [ %o0 + 0xc ], %g2 <== NOT EXECUTED
203cdb0: c0 28 a0 0a clrb [ %g2 + 0xa ] <== NOT EXECUTED
203cdb4: 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);
203cdb8: 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);
203cdbc: 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);
203cdc0: c8 02 20 0c ld [ %o0 + 0xc ], %g4 <== NOT EXECUTED
203cdc4: c0 29 20 0c clrb [ %g4 + 0xc ] <== NOT EXECUTED
203cdc8: c8 02 20 0c ld [ %o0 + 0xc ], %g4 <== NOT EXECUTED
203cdcc: c0 29 20 0d clrb [ %g4 + 0xd ] <== NOT EXECUTED
203cdd0: c8 02 20 0c ld [ %o0 + 0xc ], %g4 <== NOT EXECUTED
203cdd4: c0 29 20 0e clrb [ %g4 + 0xe ] <== NOT EXECUTED
203cdd8: c8 02 20 0c ld [ %o0 + 0xc ], %g4 <== NOT EXECUTED
203cddc: c0 29 20 0f clrb [ %g4 + 0xf ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203cde0: 88 10 20 01 mov 1, %g4 <== NOT EXECUTED
203cde4: 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);
203cde8: c8 00 60 0c ld [ %g1 + 0xc ], %g4 <== NOT EXECUTED
203cdec: 88 01 00 03 add %g4, %g3, %g4 <== NOT EXECUTED
203cdf0: c0 29 20 1c clrb [ %g4 + 0x1c ] <== NOT EXECUTED
203cdf4: c8 00 60 0c ld [ %g1 + 0xc ], %g4 <== NOT EXECUTED
203cdf8: 88 01 00 03 add %g4, %g3, %g4 <== NOT EXECUTED
203cdfc: c0 29 20 1d clrb [ %g4 + 0x1d ] <== NOT EXECUTED
203ce00: c8 00 60 0c ld [ %g1 + 0xc ], %g4 <== NOT EXECUTED
203ce04: 88 01 00 03 add %g4, %g3, %g4 <== NOT EXECUTED
203ce08: c0 29 20 1e clrb [ %g4 + 0x1e ] <== NOT EXECUTED
203ce0c: c8 00 60 0c ld [ %g1 + 0xc ], %g4 <== NOT EXECUTED
203ce10: 88 01 00 03 add %g4, %g3, %g4 <== NOT EXECUTED
203ce14: c0 29 20 1f clrb [ %g4 + 0x1f ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203ce18: 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++)
203ce1c: 80 a0 e0 14 cmp %g3, 0x14 <== NOT EXECUTED
203ce20: 12 bf ff f2 bne 203cde8 <rtems_rfs_inode_initialise+0xb8> <== NOT EXECUTED
203ce24: 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);
203ce28: 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);
203ce2c: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
203ce30: c0 28 e0 30 clrb [ %g3 + 0x30 ] <== NOT EXECUTED
203ce34: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
203ce38: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
203ce3c: c0 28 e0 31 clrb [ %g3 + 0x31 ] <== NOT EXECUTED
203ce40: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
203ce44: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203ce48: c0 28 e0 32 clrb [ %g3 + 0x32 ] <== NOT EXECUTED
203ce4c: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
203ce50: 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);
203ce54: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
203ce58: c0 28 e0 34 clrb [ %g3 + 0x34 ] <== NOT EXECUTED
203ce5c: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
203ce60: c0 28 e0 35 clrb [ %g3 + 0x35 ] <== NOT EXECUTED
203ce64: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
203ce68: c0 28 e0 36 clrb [ %g3 + 0x36 ] <== NOT EXECUTED
203ce6c: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
203ce70: c0 28 e0 37 clrb [ %g3 + 0x37 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203ce74: c4 28 60 10 stb %g2, [ %g1 + 0x10 ] <== NOT EXECUTED
203ce78: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
203ce7c: 7f ff ff 84 call 203cc8c <rtems_rfs_inode_time_stamp_now> <== NOT EXECUTED
203ce80: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
0203cf70 <rtems_rfs_inode_load>:
int
rtems_rfs_inode_load (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
203cf70: 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))
203cf74: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
203cf78: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203cf7c: 12 80 00 11 bne 203cfc0 <rtems_rfs_inode_load+0x50> <== NOT EXECUTED
203cf80: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
{
int rc;
rc = rtems_rfs_buffer_handle_request (fs,&handle->buffer,
203cf84: d4 06 60 1c ld [ %i1 + 0x1c ], %o2 <== NOT EXECUTED
203cf88: 92 06 60 10 add %i1, 0x10, %o1 <== NOT EXECUTED
203cf8c: 7f ff f2 69 call 2039930 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203cf90: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
handle->block, true);
if (rc > 0)
203cf94: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203cf98: 14 80 00 0e bg 203cfd0 <rtems_rfs_inode_load+0x60> <== NOT EXECUTED
203cf9c: 01 00 00 00 nop <== NOT EXECUTED
return rc;
handle->node = rtems_rfs_buffer_data (&handle->buffer);
203cfa0: c4 06 60 18 ld [ %i1 + 0x18 ], %g2 <== NOT EXECUTED
handle->node += handle->offset;
203cfa4: 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);
203cfa8: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
handle->node += handle->offset;
203cfac: 87 28 60 06 sll %g1, 6, %g3 <== NOT EXECUTED
203cfb0: 83 28 60 03 sll %g1, 3, %g1 <== NOT EXECUTED
203cfb4: 82 20 c0 01 sub %g3, %g1, %g1 <== NOT EXECUTED
203cfb8: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
203cfbc: c2 26 60 0c st %g1, [ %i1 + 0xc ] <== NOT EXECUTED
}
handle->loads++;
203cfc0: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED
203cfc4: 90 10 20 00 clr %o0 <== NOT EXECUTED
203cfc8: 82 00 60 01 inc %g1 <== NOT EXECUTED
203cfcc: c2 26 60 24 st %g1, [ %i1 + 0x24 ] <== NOT EXECUTED
return 0;
}
203cfd0: 81 c7 e0 08 ret <== NOT EXECUTED
203cfd4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203cfd8 <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)
{
203cfd8: 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)
203cfdc: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
203cfe0: 02 80 00 28 be 203d080 <rtems_rfs_inode_open+0xa8> <== NOT EXECUTED
203cfe4: a2 06 7f ff add %i1, -1, %l1 <== NOT EXECUTED
return EINVAL;
if ((ino - RTEMS_RFS_ROOT_INO) > rtems_rfs_fs_inodes (fs))
203cfe8: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
203cfec: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
203cff0: 38 80 00 25 bgu,a 203d084 <rtems_rfs_inode_open+0xac> <== NOT EXECUTED
203cff4: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
return EINVAL;
handle->ino = ino;
handle->node = NULL;
handle->loads = 0;
203cff8: c0 26 a0 24 clr [ %i2 + 0x24 ] <== NOT EXECUTED
gino = ino - RTEMS_RFS_ROOT_INO;
group = gino / fs->group_inodes;
203cffc: 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;
203d000: 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;
203d004: 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;
203d008: 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;
203d00c: 40 00 78 e0 call 205b38c <.urem> <== NOT EXECUTED
203d010: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
index = (gino / fs->inodes_per_block) + RTEMS_RFS_GROUP_INODE_BLOCK;
203d014: 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;
203d018: 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;
203d01c: 40 00 78 dc call 205b38c <.urem> <== NOT EXECUTED
203d020: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
handle->block = rtems_rfs_group_block (&fs->groups[group], index);
203d024: 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;
203d028: d0 26 a0 20 st %o0, [ %i2 + 0x20 ] <== NOT EXECUTED
handle->block = rtems_rfs_group_block (&fs->groups[group], index);
203d02c: 40 00 78 2c call 205b0dc <.udiv> <== NOT EXECUTED
203d030: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203d034: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
203d038: 85 2a 20 06 sll %o0, 6, %g2 <== NOT EXECUTED
203d03c: 91 2a 20 04 sll %o0, 4, %o0 <== NOT EXECUTED
203d040: 90 02 00 02 add %o0, %g2, %o0 <== NOT EXECUTED
203d044: e0 00 40 08 ld [ %g1 + %o0 ], %l0 <== NOT EXECUTED
203d048: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203d04c: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
203d050: 40 00 78 23 call 205b0dc <.udiv> <== NOT EXECUTED
203d054: 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;
203d058: c0 2e a0 10 clrb [ %i2 + 0x10 ] <== NOT EXECUTED
203d05c: 90 04 00 08 add %l0, %o0, %o0 <== NOT EXECUTED
handle->bnum = 0;
203d060: c0 26 a0 14 clr [ %i2 + 0x14 ] <== NOT EXECUTED
203d064: d0 26 a0 1c st %o0, [ %i2 + 0x1c ] <== NOT EXECUTED
handle->buffer = NULL;
203d068: c0 26 a0 18 clr [ %i2 + 0x18 ] <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_open (fs, &handle->buffer);
if ((rc == 0) && load)
203d06c: 80 8e e0 ff btst 0xff, %i3 <== NOT EXECUTED
203d070: 02 80 00 05 be 203d084 <rtems_rfs_inode_open+0xac> <== NOT EXECUTED
203d074: 82 10 20 00 clr %g1 <== NOT EXECUTED
rc = rtems_rfs_inode_load (fs, handle);
203d078: 7f ff ff be call 203cf70 <rtems_rfs_inode_load> <== NOT EXECUTED
203d07c: 93 e8 00 1a restore %g0, %i2, %o1 <== NOT EXECUTED
203d080: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
return rc;
}
203d084: 81 c7 e0 08 ret <== NOT EXECUTED
203d088: 91 e8 00 01 restore %g0, %g1, %o0 <== NOT EXECUTED
0203b968 <rtems_rfs_inode_overhead>:
/**
* Return the inode overhead given a number of inodes.
*/
static int
rtems_rfs_inode_overhead (rtems_rfs_file_system* fs)
{
203b968: 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,
203b96c: c2 06 20 28 ld [ %i0 + 0x28 ], %g1 <== NOT EXECUTED
rtems_rfs_fs_block_size (fs));
203b970: 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,
203b974: 91 28 60 06 sll %g1, 6, %o0 <== NOT EXECUTED
203b978: 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)
203b97c: 82 a2 00 01 subcc %o0, %g1, %g1 <== NOT EXECUTED
203b980: 02 80 00 06 be 203b998 <rtems_rfs_inode_overhead+0x30> <== NOT EXECUTED
203b984: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
203b988: 90 00 7f ff add %g1, -1, %o0 <== NOT EXECUTED
203b98c: 40 00 7d d4 call 205b0dc <.udiv> <== NOT EXECUTED
203b990: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203b994: 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))
203b998: 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));
203b99c: 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))
203b9a0: 92 02 7f ff add %o1, -1, %o1 <== NOT EXECUTED
203b9a4: 80 a4 00 09 cmp %l0, %o1 <== NOT EXECUTED
203b9a8: 28 80 00 02 bleu,a 203b9b0 <rtems_rfs_inode_overhead+0x48><== NOT EXECUTED
203b9ac: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
bits_per_block = rtems_rfs_fs_blocks (fs) - RTEMS_RFS_SUPERBLOCK_SIZE;
203b9b0: 90 02 20 01 inc %o0 <== NOT EXECUTED
203b9b4: 85 2a 20 07 sll %o0, 7, %g2 <== NOT EXECUTED
203b9b8: 83 2a 20 02 sll %o0, 2, %g1 <== NOT EXECUTED
203b9bc: 82 20 80 01 sub %g2, %g1, %g1 <== NOT EXECUTED
203b9c0: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED
203b9c4: 40 00 7d c8 call 205b0e4 <.div> <== NOT EXECUTED
203b9c8: 91 2a 20 03 sll %o0, 3, %o0 <== NOT EXECUTED
return ((blocks + 1) * 100 * 10) / bits_per_block;
}
203b9cc: 81 c7 e0 08 ret <== NOT EXECUTED
203b9d0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203cc8c <rtems_rfs_inode_time_stamp_now>:
int
rtems_rfs_inode_time_stamp_now (rtems_rfs_inode_handle* handle,
bool atime,
bool mtime)
{
203cc8c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
time_t now;
if (!rtems_rfs_inode_is_loaded (handle))
203cc90: 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)
{
203cc94: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
time_t now;
if (!rtems_rfs_inode_is_loaded (handle))
203cc98: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203cc9c: 02 80 00 23 be 203cd28 <rtems_rfs_inode_time_stamp_now+0x9c><== NOT EXECUTED
203cca0: b0 10 20 06 mov 6, %i0 <== NOT EXECUTED
return ENXIO;
now = time (NULL);
203cca4: 40 00 48 83 call 204eeb0 <time> <== NOT EXECUTED
203cca8: 90 10 20 00 clr %o0 <== NOT EXECUTED
if (atime)
203ccac: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED
203ccb0: 02 80 00 0f be 203ccec <rtems_rfs_inode_time_stamp_now+0x60><== NOT EXECUTED
203ccb4: 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);
203ccb8: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
203ccbc: 85 32 20 18 srl %o0, 0x18, %g2 <== NOT EXECUTED
203ccc0: c4 28 60 10 stb %g2, [ %g1 + 0x10 ] <== NOT EXECUTED
203ccc4: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
203ccc8: 85 32 20 10 srl %o0, 0x10, %g2 <== NOT EXECUTED
203cccc: c4 28 60 11 stb %g2, [ %g1 + 0x11 ] <== NOT EXECUTED
203ccd0: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
203ccd4: 85 32 20 08 srl %o0, 8, %g2 <== NOT EXECUTED
203ccd8: c4 28 60 12 stb %g2, [ %g1 + 0x12 ] <== NOT EXECUTED
203ccdc: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
203cce0: d0 28 60 13 stb %o0, [ %g1 + 0x13 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203cce4: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203cce8: c2 2c 20 10 stb %g1, [ %l0 + 0x10 ] <== NOT EXECUTED
rtems_rfs_inode_set_atime (handle, now);
if (mtime)
203ccec: 02 80 00 0f be 203cd28 <rtems_rfs_inode_time_stamp_now+0x9c><== NOT EXECUTED
203ccf0: 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);
203ccf4: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
203ccf8: 85 32 20 18 srl %o0, 0x18, %g2 <== NOT EXECUTED
203ccfc: c4 28 60 14 stb %g2, [ %g1 + 0x14 ] <== NOT EXECUTED
203cd00: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
203cd04: 85 32 20 10 srl %o0, 0x10, %g2 <== NOT EXECUTED
203cd08: c4 28 60 15 stb %g2, [ %g1 + 0x15 ] <== NOT EXECUTED
203cd0c: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
203cd10: 85 32 20 08 srl %o0, 8, %g2 <== NOT EXECUTED
203cd14: c4 28 60 16 stb %g2, [ %g1 + 0x16 ] <== NOT EXECUTED
203cd18: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
203cd1c: d0 28 60 17 stb %o0, [ %g1 + 0x17 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203cd20: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203cd24: c2 2c 20 10 stb %g1, [ %l0 + 0x10 ] <== NOT EXECUTED
rtems_rfs_inode_set_mtime (handle, now);
return 0;
}
203cd28: 81 c7 e0 08 ret <== NOT EXECUTED
203cd2c: 81 e8 00 00 restore <== NOT EXECUTED
0203ce88 <rtems_rfs_inode_unload>:
int
rtems_rfs_inode_unload (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle,
bool update_ctime)
{
203ce88: 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))
203ce8c: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
203ce90: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203ce94: 02 80 00 25 be 203cf28 <rtems_rfs_inode_unload+0xa0> <== NOT EXECUTED
203ce98: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
{
if (handle->loads == 0)
203ce9c: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED
203cea0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203cea4: 02 80 00 22 be 203cf2c <rtems_rfs_inode_unload+0xa4> <== NOT EXECUTED
203cea8: 90 10 20 05 mov 5, %o0 <== NOT EXECUTED
return EIO;
handle->loads--;
203ceac: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
if (handle->loads == 0)
203ceb0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203ceb4: 12 80 00 1d bne 203cf28 <rtems_rfs_inode_unload+0xa0> <== NOT EXECUTED
203ceb8: 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)
203cebc: c2 0e 60 10 ldub [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
203cec0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203cec4: 02 80 00 15 be 203cf18 <rtems_rfs_inode_unload+0x90> <== NOT EXECUTED
203cec8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203cecc: 80 8e a0 ff btst 0xff, %i2 <== NOT EXECUTED
203ced0: 02 80 00 12 be 203cf18 <rtems_rfs_inode_unload+0x90> <== NOT EXECUTED
203ced4: 01 00 00 00 nop <== NOT EXECUTED
rtems_rfs_inode_set_ctime (handle, time (NULL));
203ced8: 40 00 47 f6 call 204eeb0 <time> <== NOT EXECUTED
203cedc: 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);
203cee0: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
203cee4: 85 32 20 18 srl %o0, 0x18, %g2 <== NOT EXECUTED
203cee8: c4 28 60 18 stb %g2, [ %g1 + 0x18 ] <== NOT EXECUTED
203ceec: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
203cef0: 85 32 20 10 srl %o0, 0x10, %g2 <== NOT EXECUTED
203cef4: c4 28 60 19 stb %g2, [ %g1 + 0x19 ] <== NOT EXECUTED
203cef8: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
203cefc: 85 32 20 08 srl %o0, 8, %g2 <== NOT EXECUTED
203cf00: c4 28 60 1a stb %g2, [ %g1 + 0x1a ] <== NOT EXECUTED
203cf04: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
203cf08: d0 28 60 1b stb %o0, [ %g1 + 0x1b ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203cf0c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203cf10: c2 2e 60 10 stb %g1, [ %i1 + 0x10 ] <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (fs, &handle->buffer);
203cf14: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203cf18: 7f ff f2 3c call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203cf1c: 92 06 60 10 add %i1, 0x10, %o1 <== NOT EXECUTED
handle->node = NULL;
203cf20: 10 80 00 03 b 203cf2c <rtems_rfs_inode_unload+0xa4> <== NOT EXECUTED
203cf24: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED
203cf28: 90 10 20 00 clr %o0 <== NOT EXECUTED
}
}
return rc;
}
203cf2c: 81 c7 e0 08 ret <== NOT EXECUTED
203cf30: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203d9f0 <rtems_rfs_link>:
const char* name,
int length,
rtems_rfs_ino parent,
rtems_rfs_ino target,
bool link_dir)
{
203d9f0: 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);
203d9f4: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
203d9f8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203d9fc: 92 10 00 1c mov %i4, %o1 <== NOT EXECUTED
203da00: a2 07 bf b0 add %fp, -80, %l1 <== NOT EXECUTED
203da04: 7f ff fd 75 call 203cfd8 <rtems_rfs_inode_open> <== NOT EXECUTED
203da08: 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)
{
203da0c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
203da10: 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)
203da14: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203da18: 12 80 00 11 bne 203da5c <rtems_rfs_link+0x6c> <== NOT EXECUTED
203da1c: 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)))
203da20: 80 8f 60 ff btst 0xff, %i5 <== NOT EXECUTED
203da24: 12 80 00 10 bne 203da64 <rtems_rfs_link+0x74> <== NOT EXECUTED
203da28: c2 07 bf bc ld [ %fp + -68 ], %g1 <== NOT EXECUTED
203da2c: c4 08 60 02 ldub [ %g1 + 2 ], %g2 <== NOT EXECUTED
203da30: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
203da34: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203da38: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED
203da3c: 03 00 00 10 sethi %hi(0x4000), %g1 <== NOT EXECUTED
203da40: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203da44: 32 80 00 09 bne,a 203da68 <rtems_rfs_link+0x78> <== NOT EXECUTED
203da48: a2 07 bf d8 add %fp, -40, %l1 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &target_inode);
203da4c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203da50: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203da54: 7f ff fd 38 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203da58: b0 10 20 86 mov 0x86, %i0 <== NOT EXECUTED
return ENOTSUP;
203da5c: 81 c7 e0 08 ret <== NOT EXECUTED
203da60: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);
203da64: a2 07 bf d8 add %fp, -40, %l1 <== NOT EXECUTED
203da68: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203da6c: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
203da70: 7f ff fd 5a call 203cfd8 <rtems_rfs_inode_open> <== NOT EXECUTED
203da74: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc)
203da78: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203da7c: 12 80 00 26 bne 203db14 <rtems_rfs_link+0x124> <== NOT EXECUTED
203da80: 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);
203da84: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
203da88: 98 10 00 1c mov %i4, %o4 <== NOT EXECUTED
203da8c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203da90: 7f ff f2 06 call 203a2a8 <rtems_rfs_dir_add_entry> <== NOT EXECUTED
203da94: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc > 0)
203da98: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203da9c: 14 80 00 1b bg 203db08 <rtems_rfs_link+0x118> <== NOT EXECUTED
203daa0: 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)
203daa4: 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);
203daa8: c6 08 60 01 ldub [ %g1 + 1 ], %g3 <== NOT EXECUTED
203daac: 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);
203dab0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203dab4: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203dab8: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
if (links == 0xffff)
203dabc: 87 28 a0 10 sll %g2, 0x10, %g3 <== NOT EXECUTED
203dac0: 87 30 e0 10 srl %g3, 0x10, %g3 <== NOT EXECUTED
203dac4: 86 39 00 03 xnor %g4, %g3, %g3 <== NOT EXECUTED
203dac8: 80 a0 00 03 cmp %g0, %g3 <== NOT EXECUTED
203dacc: 86 60 20 00 subx %g0, 0, %g3 <== NOT EXECUTED
203dad0: 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;
203dad4: 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);
203dad8: 87 30 a0 08 srl %g2, 8, %g3 <== NOT EXECUTED
203dadc: c6 28 40 00 stb %g3, [ %g1 ] <== NOT EXECUTED
203dae0: 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);
203dae4: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
203dae8: c4 28 60 01 stb %g2, [ %g1 + 1 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203daec: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203daf0: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203daf4: 7f ff fc 66 call 203cc8c <rtems_rfs_inode_time_stamp_now> <== NOT EXECUTED
203daf8: c2 2f bf c0 stb %g1, [ %fp + -64 ] <== NOT EXECUTED
if (rc > 0)
203dafc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203db00: 24 80 00 08 ble,a 203db20 <rtems_rfs_link+0x130> <== NOT EXECUTED
203db04: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &parent_inode);
203db08: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203db0c: 7f ff fd 0a call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203db10: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &target_inode);
203db14: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203db18: 10 80 00 08 b 203db38 <rtems_rfs_link+0x148> <== NOT EXECUTED
203db1c: 92 07 bf b0 add %fp, -80, %o1 <== NOT EXECUTED
return rc;
}
rc = rtems_rfs_inode_close (fs, &parent_inode);
203db20: 7f ff fd 05 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203db24: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc > 0)
203db28: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203db2c: 04 80 00 07 ble 203db48 <rtems_rfs_link+0x158> <== NOT EXECUTED
203db30: 92 07 bf b0 add %fp, -80, %o1 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &target_inode);
203db34: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203db38: 7f ff fc ff call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203db3c: 01 00 00 00 nop <== NOT EXECUTED
return rc;
203db40: 81 c7 e0 08 ret <== NOT EXECUTED
203db44: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = rtems_rfs_inode_close (fs, &target_inode);
203db48: 7f ff fc fb call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203db4c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203db50: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
return rc;
}
203db54: 81 c7 e0 08 ret <== NOT EXECUTED
203db58: 81 e8 00 00 restore <== NOT EXECUTED
0203db7c <rtems_rfs_mutex_create>:
RTEMS_NO_INHERIT_PRIORITY | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL)
#endif
int
rtems_rfs_mutex_create (rtems_rfs_mutex* mutex)
{
203db7c: 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'),
203db80: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
203db84: 98 10 00 18 mov %i0, %o4 <== NOT EXECUTED
203db88: 94 10 20 24 mov 0x24, %o2 <== NOT EXECUTED
203db8c: 96 10 20 00 clr %o3 <== NOT EXECUTED
203db90: 11 14 91 94 sethi %hi(0x52465000), %o0 <== NOT EXECUTED
203db94: 7f ff 3b 1c call 200c804 <rtems_semaphore_create> <== NOT EXECUTED
203db98: 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)
203db9c: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
203dba0: b0 60 20 00 subx %g0, 0, %i0 <== NOT EXECUTED
rtems_status_text (sc));
return EIO;
}
#endif
return 0;
}
203dba4: b0 0e 20 05 and %i0, 5, %i0 <== NOT EXECUTED
203dba8: 81 c7 e0 08 ret <== NOT EXECUTED
203dbac: 81 e8 00 00 restore <== NOT EXECUTED
0203db5c <rtems_rfs_mutex_destroy>:
return 0;
}
int
rtems_rfs_mutex_destroy (rtems_rfs_mutex* mutex)
{
203db5c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
#if __rtems__
rtems_status_code sc;
sc = rtems_semaphore_delete (*mutex);
203db60: 7f ff 3b 9d call 200c9d4 <rtems_semaphore_delete> <== NOT EXECUTED
203db64: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
203db68: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
203db6c: b0 60 20 00 subx %g0, 0, %i0 <== NOT EXECUTED
rtems_status_text (sc));
return EIO;
}
#endif
return 0;
}
203db70: b0 0e 20 05 and %i0, 5, %i0 <== NOT EXECUTED
203db74: 81 c7 e0 08 ret <== NOT EXECUTED
203db78: 81 e8 00 00 restore <== NOT EXECUTED
0203964c <rtems_rfs_release_chain>:
static int
rtems_rfs_release_chain (rtems_chain_control* chain,
uint32_t* count,
bool modified)
{
203964c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
2039650: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
2039654: 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);
2039658: 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))
203965c: 10 80 00 10 b 203969c <rtems_rfs_release_chain+0x50> <== NOT EXECUTED
2039660: 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 );
2039664: 7f ff 50 42 call 200d76c <_Chain_Get> <== NOT EXECUTED
2039668: 01 00 00 00 nop <== NOT EXECUTED
{
buffer = (rtems_rfs_buffer*) rtems_chain_get (chain);
(*count)--;
203966c: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
buffer->user = (void*) 0;
2039670: 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)--;
2039674: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
buffer->user = (void*) 0;
rc = rtems_rfs_buffer_io_release (buffer, modified);
2039678: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
203967c: 40 00 23 ab call 2042528 <rtems_rfs_buffer_bdbuf_release> <== NOT EXECUTED
2039680: c2 26 40 00 st %g1, [ %i1 ] <== NOT EXECUTED
if ((rc > 0) && (rrc == 0))
2039684: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2039688: 24 80 00 06 ble,a 20396a0 <rtems_rfs_release_chain+0x54> <== NOT EXECUTED
203968c: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
2039690: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
2039694: 22 80 00 02 be,a 203969c <rtems_rfs_release_chain+0x50> <== NOT EXECUTED
2039698: 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))
203969c: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
20396a0: 80 a0 40 11 cmp %g1, %l1 <== NOT EXECUTED
20396a4: 12 bf ff f0 bne 2039664 <rtems_rfs_release_chain+0x18> <== NOT EXECUTED
20396a8: 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;
}
20396ac: 81 c7 e0 08 ret <== NOT EXECUTED
20396b0: 81 e8 00 00 restore <== NOT EXECUTED
02020f8c <rtems_rfs_rtems_chown>:
static int
rtems_rfs_rtems_chown (rtems_filesystem_location_info_t *pathloc,
uid_t owner,
gid_t group)
{
2020f8c: 9d e3 bf 78 save %sp, -136, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2020f90: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
2020f94: 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);
2020f98: 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);
2020f9c: 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);
2020fa0: 7f ff ff eb call 2020f4c <rtems_rfs_rtems_lock> <== NOT EXECUTED
2020fa4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
2020fa8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2020fac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2020fb0: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2020fb4: 40 00 70 09 call 203cfd8 <rtems_rfs_inode_open> <== NOT EXECUTED
2020fb8: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
2020fbc: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2020fc0: 04 80 00 09 ble 2020fe4 <rtems_rfs_rtems_chown+0x58> <== NOT EXECUTED
2020fc4: 84 10 00 19 mov %i1, %g2 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
2020fc8: 7f ff ff e9 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2020fcc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("chown: opening inode", rc);
2020fd0: 40 00 87 16 call 2042c28 <__errno> <== NOT EXECUTED
2020fd4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2020fd8: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
2020fdc: 81 c7 e0 08 ret <== NOT EXECUTED
2020fe0: 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);
2020fe4: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
2020fe8: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED
2020fec: b3 2e 60 10 sll %i1, 0x10, %i1 <== NOT EXECUTED
2020ff0: b3 36 60 10 srl %i1, 0x10, %i1 <== NOT EXECUTED
2020ff4: b2 16 80 19 or %i2, %i1, %i1 <== NOT EXECUTED
2020ff8: 87 36 60 18 srl %i1, 0x18, %g3 <== NOT EXECUTED
2020ffc: c6 28 60 04 stb %g3, [ %g1 + 4 ] <== NOT EXECUTED
2021000: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
2021004: 87 36 60 10 srl %i1, 0x10, %g3 <== NOT EXECUTED
2021008: c6 28 60 05 stb %g3, [ %g1 + 5 ] <== NOT EXECUTED
202100c: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
2021010: b3 36 60 08 srl %i1, 8, %i1 <== NOT EXECUTED
2021014: f2 28 60 06 stb %i1, [ %g1 + 6 ] <== NOT EXECUTED
2021018: 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);
202101c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2021020: c4 28 60 07 stb %g2, [ %g1 + 7 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
2021024: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2021028: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202102c: 40 00 6f c2 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
2021030: c2 2f bf e8 stb %g1, [ %fp + -24 ] <== NOT EXECUTED
if (rc)
2021034: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2021038: 02 80 00 09 be 202105c <rtems_rfs_rtems_chown+0xd0> <== NOT EXECUTED
202103c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
2021040: 7f ff ff cb call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021044: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("chown: closing inode", rc);
2021048: 40 00 86 f8 call 2042c28 <__errno> <== NOT EXECUTED
202104c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2021050: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2021054: 81 c7 e0 08 ret <== NOT EXECUTED
2021058: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
202105c: 7f ff ff c4 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021060: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2021064: 81 c7 e0 08 ret <== NOT EXECUTED
2021068: 81 e8 00 00 restore <== NOT EXECUTED
0203dcc0 <rtems_rfs_rtems_device_close>:
* @return int
*/
static int
rtems_rfs_rtems_device_close (rtems_libio_t* iop)
{
203dcc0: 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;
203dcc4: d0 06 20 34 ld [ %i0 + 0x34 ], %o0 <== NOT EXECUTED
minor = (intptr_t) iop->data1;
203dcc8: d2 06 20 38 ld [ %i0 + 0x38 ], %o1 <== NOT EXECUTED
args.iop = iop;
203dccc: f0 27 bf f4 st %i0, [ %fp + -12 ] <== NOT EXECUTED
args.flags = 0;
203dcd0: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
args.mode = 0;
203dcd4: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
status = rtems_io_close (major, minor, (void *) &args);
203dcd8: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED
203dcdc: 40 00 08 89 call 203ff00 <rtems_io_close> <== NOT EXECUTED
203dce0: b0 10 20 00 clr %i0 <== NOT EXECUTED
if (status)
203dce4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203dce8: 02 80 00 05 be 203dcfc <rtems_rfs_rtems_device_close+0x3c><== NOT EXECUTED
203dcec: 01 00 00 00 nop <== NOT EXECUTED
return rtems_deviceio_errno (status);
203dcf0: 40 00 02 79 call 203e6d4 <rtems_deviceio_errno> <== NOT EXECUTED
203dcf4: 01 00 00 00 nop <== NOT EXECUTED
203dcf8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
return 0;
}
203dcfc: 81 c7 e0 08 ret <== NOT EXECUTED
203dd00: 81 e8 00 00 restore <== NOT EXECUTED
0203dbbc <rtems_rfs_rtems_device_ftruncate>:
static int
rtems_rfs_rtems_device_ftruncate (rtems_libio_t* iop, rtems_off64_t length)
{
return 0;
}
203dbbc: 81 c3 e0 08 retl <== NOT EXECUTED
203dbc0: 90 10 20 00 clr %o0 <== NOT EXECUTED
0203dbc4 <rtems_rfs_rtems_device_ioctl>:
static int
rtems_rfs_rtems_device_ioctl (rtems_libio_t* iop,
uint32_t command,
void* buffer)
{
203dbc4: 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;
203dbc8: 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;
203dbcc: d0 06 20 34 ld [ %i0 + 0x34 ], %o0 <== NOT EXECUTED
minor = (intptr_t) iop->data1;
args.iop = iop;
args.command = command;
args.buffer = buffer;
203dbd0: 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;
203dbd4: f0 3f bf f0 std %i0, [ %fp + -16 ] <== NOT EXECUTED
args.buffer = buffer;
status = rtems_io_control (major, minor, (void *) &args);
203dbd8: 40 00 08 e0 call 203ff58 <rtems_io_control> <== NOT EXECUTED
203dbdc: 94 07 bf f0 add %fp, -16, %o2 <== NOT EXECUTED
if (status)
203dbe0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203dbe4: 22 80 00 06 be,a 203dbfc <rtems_rfs_rtems_device_ioctl+0x38><== NOT EXECUTED
203dbe8: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
return rtems_deviceio_errno (status);
203dbec: 40 00 02 ba call 203e6d4 <rtems_deviceio_errno> <== NOT EXECUTED
203dbf0: 01 00 00 00 nop <== NOT EXECUTED
203dbf4: 81 c7 e0 08 ret <== NOT EXECUTED
203dbf8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
return args.ioctl_return;
}
203dbfc: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
203dc00: 81 c7 e0 08 ret <== NOT EXECUTED
203dc04: 81 e8 00 00 restore <== NOT EXECUTED
0203dbb0 <rtems_rfs_rtems_device_lseek>:
rtems_rfs_rtems_device_lseek (rtems_libio_t* iop,
rtems_off64_t offset,
int whence)
{
return offset;
}
203dbb0: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED
203dbb4: 81 c3 e0 08 retl <== NOT EXECUTED
203dbb8: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED
0203dd24 <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)
{
203dd24: 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);
203dd28: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_iop_ino (iop);
203dd2c: 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);
203dd30: 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);
203dd34: 92 10 20 00 clr %o1 <== NOT EXECUTED
203dd38: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
203dd3c: 94 10 20 00 clr %o2 <== NOT EXECUTED
203dd40: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
203dd44: 7f ff 3b 6b call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
203dd48: 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);
203dd4c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203dd50: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203dd54: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
203dd58: 7f ff fc a0 call 203cfd8 <rtems_rfs_inode_open> <== NOT EXECUTED
203dd5c: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
203dd60: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
203dd64: 04 80 00 09 ble 203dd88 <rtems_rfs_rtems_device_open+0x64><== NOT EXECUTED
203dd68: c2 07 bf d8 ld [ %fp + -40 ], %g1 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
203dd6c: 7f ff ff e6 call 203dd04 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203dd70: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("device_open: opening inode", rc);
203dd74: 40 00 13 ad call 2042c28 <__errno> <== NOT EXECUTED
203dd78: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203dd7c: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
203dd80: 81 c7 e0 08 ret <== NOT EXECUTED
203dd84: 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);
203dd88: 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]);
203dd8c: ee 08 60 1c ldub [ %g1 + 0x1c ], %l7 <== NOT EXECUTED
203dd90: 82 00 60 1c add %g1, 0x1c, %g1 <== NOT EXECUTED
203dd94: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203dd98: e4 08 60 07 ldub [ %g1 + 7 ], %l2 <== NOT EXECUTED
203dd9c: ec 08 60 01 ldub [ %g1 + 1 ], %l6 <== NOT EXECUTED
203dda0: ea 08 60 02 ldub [ %g1 + 2 ], %l5 <== NOT EXECUTED
203dda4: fa 08 60 03 ldub [ %g1 + 3 ], %i5 <== NOT EXECUTED
203dda8: e8 08 60 04 ldub [ %g1 + 4 ], %l4 <== NOT EXECUTED
203ddac: e6 08 60 05 ldub [ %g1 + 5 ], %l3 <== NOT EXECUTED
203ddb0: 7f ff fc 61 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203ddb4: e2 08 60 06 ldub [ %g1 + 6 ], %l1 <== NOT EXECUTED
if (rc > 0)
203ddb8: b8 92 20 00 orcc %o0, 0, %i4 <== NOT EXECUTED
203ddbc: 04 80 00 09 ble 203dde0 <rtems_rfs_rtems_device_open+0xbc><== NOT EXECUTED
203ddc0: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
203ddc4: 7f ff ff d0 call 203dd04 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203ddc8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("device_open: closing inode", rc);
203ddcc: 40 00 13 97 call 2042c28 <__errno> <== NOT EXECUTED
203ddd0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203ddd4: f8 22 00 00 st %i4, [ %o0 ] <== NOT EXECUTED
203ddd8: 81 c7 e0 08 ret <== NOT EXECUTED
203dddc: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
203dde0: 7f ff ff c9 call 203dd04 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203dde4: 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;
203dde8: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 <== NOT EXECUTED
args.mode = mode;
203ddec: 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;
203ddf0: 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;
203ddf4: f0 27 bf f4 st %i0, [ %fp + -12 ] <== NOT EXECUTED
203ddf8: ba 0f 60 ff and %i5, 0xff, %i5 <== NOT EXECUTED
203ddfc: af 2d e0 18 sll %l7, 0x18, %l7 <== NOT EXECUTED
203de00: ac 0d a0 ff and %l6, 0xff, %l6 <== NOT EXECUTED
203de04: ae 17 40 17 or %i5, %l7, %l7 <== NOT EXECUTED
203de08: aa 0d 60 ff and %l5, 0xff, %l5 <== NOT EXECUTED
203de0c: ad 2d a0 10 sll %l6, 0x10, %l6 <== NOT EXECUTED
203de10: ab 2d 60 08 sll %l5, 8, %l5 <== NOT EXECUTED
203de14: ac 15 c0 16 or %l7, %l6, %l6 <== NOT EXECUTED
203de18: a9 2d 20 18 sll %l4, 0x18, %l4 <== NOT EXECUTED
203de1c: aa 15 80 15 or %l6, %l5, %l5 <== NOT EXECUTED
203de20: 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;
203de24: ea 26 20 34 st %l5, [ %i0 + 0x34 ] <== NOT EXECUTED
203de28: a4 0c a0 ff and %l2, 0xff, %l2 <== NOT EXECUTED
203de2c: a7 2c e0 10 sll %l3, 0x10, %l3 <== NOT EXECUTED
203de30: a2 0c 60 ff and %l1, 0xff, %l1 <== NOT EXECUTED
203de34: a8 15 00 13 or %l4, %l3, %l4 <== NOT EXECUTED
203de38: a3 2c 60 08 sll %l1, 8, %l1 <== NOT EXECUTED
203de3c: 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);
203de40: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
203de44: a2 14 80 11 or %l2, %l1, %l1 <== NOT EXECUTED
203de48: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
iop->data0 = major;
iop->data1 = (void*)((intptr_t) minor);
203de4c: 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);
203de50: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203de54: 40 00 08 57 call 203ffb0 <rtems_io_open> <== NOT EXECUTED
203de58: b0 10 20 00 clr %i0 <== NOT EXECUTED
if (status)
203de5c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203de60: 02 80 00 05 be 203de74 <rtems_rfs_rtems_device_open+0x150><== NOT EXECUTED
203de64: 01 00 00 00 nop <== NOT EXECUTED
return rtems_deviceio_errno(status);
203de68: 40 00 02 1b call 203e6d4 <rtems_deviceio_errno> <== NOT EXECUTED
203de6c: 01 00 00 00 nop <== NOT EXECUTED
203de70: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
return 0;
}
203de74: 81 c7 e0 08 ret <== NOT EXECUTED
203de78: 81 e8 00 00 restore <== NOT EXECUTED
0203dc64 <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)
{
203dc64: 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;
203dc68: 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;
203dc6c: d0 06 20 34 ld [ %i0 + 0x34 ], %o0 <== NOT EXECUTED
minor = (intptr_t) iop->data1;
args.iop = iop;
args.offset = iop->offset;
203dc70: 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;
203dc74: d2 06 20 38 ld [ %i0 + 0x38 ], %o1 <== NOT EXECUTED
args.iop = iop;
args.offset = iop->offset;
args.buffer = buffer;
203dc78: 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;
203dc7c: c4 3f bf e8 std %g2, [ %fp + -24 ] <== NOT EXECUTED
args.buffer = buffer;
args.count = count;
203dc80: f4 27 bf f4 st %i2, [ %fp + -12 ] <== NOT EXECUTED
args.flags = iop->flags;
203dc84: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED
int minor;
major = (int) iop->data0;
minor = (intptr_t) iop->data1;
args.iop = iop;
203dc88: 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;
203dc8c: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
status = rtems_io_read (major, minor, (void *) &args);
203dc90: 40 00 08 de call 2040008 <rtems_io_read> <== NOT EXECUTED
203dc94: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED
if (status)
203dc98: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203dc9c: 22 80 00 06 be,a 203dcb4 <rtems_rfs_rtems_device_read+0x50><== NOT EXECUTED
203dca0: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
return rtems_deviceio_errno (status);
203dca4: 40 00 02 8c call 203e6d4 <rtems_deviceio_errno> <== NOT EXECUTED
203dca8: 01 00 00 00 nop <== NOT EXECUTED
203dcac: 81 c7 e0 08 ret <== NOT EXECUTED
203dcb0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
}
203dcb4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
203dcb8: 81 c7 e0 08 ret <== NOT EXECUTED
203dcbc: 81 e8 00 00 restore <== NOT EXECUTED
0203dc08 <rtems_rfs_rtems_device_write>:
static ssize_t
rtems_rfs_rtems_device_write (rtems_libio_t* iop,
const void* buffer,
size_t count)
{
203dc08: 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;
203dc0c: 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;
203dc10: d0 06 20 34 ld [ %i0 + 0x34 ], %o0 <== NOT EXECUTED
minor = (intptr_t) iop->data1;
args.iop = iop;
args.offset = iop->offset;
203dc14: 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;
203dc18: d2 06 20 38 ld [ %i0 + 0x38 ], %o1 <== NOT EXECUTED
args.iop = iop;
args.offset = iop->offset;
args.buffer = (void *) buffer;
203dc1c: 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;
203dc20: c4 3f bf e8 std %g2, [ %fp + -24 ] <== NOT EXECUTED
args.buffer = (void *) buffer;
args.count = count;
203dc24: f4 27 bf f4 st %i2, [ %fp + -12 ] <== NOT EXECUTED
args.flags = iop->flags;
203dc28: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED
int minor;
major = (int) iop->data0;
minor = (intptr_t) iop->data1;
args.iop = iop;
203dc2c: 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;
203dc30: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
status = rtems_io_write (major, minor, (void *) &args);
203dc34: 40 00 09 0b call 2040060 <rtems_io_write> <== NOT EXECUTED
203dc38: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED
if (status)
203dc3c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203dc40: 22 80 00 06 be,a 203dc58 <rtems_rfs_rtems_device_write+0x50><== NOT EXECUTED
203dc44: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
return rtems_deviceio_errno (status);
203dc48: 40 00 02 a3 call 203e6d4 <rtems_deviceio_errno> <== NOT EXECUTED
203dc4c: 01 00 00 00 nop <== NOT EXECUTED
203dc50: 81 c7 e0 08 ret <== NOT EXECUTED
203dc54: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
}
203dc58: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
203dc5c: 81 c7 e0 08 ret <== NOT EXECUTED
203dc60: 81 e8 00 00 restore <== NOT EXECUTED
0203de7c <rtems_rfs_rtems_dir_close>:
{
/*
* The RFS does not hold any resources. Nothing to do.
*/
return 0;
}
203de7c: 81 c3 e0 08 retl <== NOT EXECUTED
203de80: 90 10 20 00 clr %o0 <== NOT EXECUTED
0203de84 <rtems_rfs_rtems_dir_lseek>:
*/
static rtems_off64_t
rtems_rfs_rtems_dir_lseek (rtems_libio_t* iop,
rtems_off64_t offset,
int whence)
{
203de84: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
switch (whence)
203de88: 84 10 20 00 clr %g2 <== NOT EXECUTED
203de8c: 80 a6 e0 01 cmp %i3, 1 <== NOT EXECUTED
203de90: 08 80 00 09 bleu 203deb4 <rtems_rfs_rtems_dir_lseek+0x30> <== NOT EXECUTED
203de94: 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);
203de98: 40 00 13 64 call 2042c28 <__errno> <== NOT EXECUTED
203de9c: 01 00 00 00 nop <== NOT EXECUTED
203dea0: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
203dea4: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED
203dea8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203deac: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
203deb0: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED
break;
}
return 0;
}
203deb4: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED
203deb8: 81 c7 e0 08 ret <== NOT EXECUTED
203debc: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
0203e078 <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)
{
203e078: 9d e3 bf 78 save %sp, -136, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
203e07c: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_iop_ino (iop);
203e080: 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);
203e084: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
203e088: 92 10 20 00 clr %o1 <== NOT EXECUTED
203e08c: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
203e090: 94 10 20 00 clr %o2 <== NOT EXECUTED
203e094: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
203e098: 7f ff 3a 96 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
203e09c: 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);
203e0a0: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203e0a4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e0a8: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
203e0ac: 7f ff fb cb call 203cfd8 <rtems_rfs_inode_open> <== NOT EXECUTED
203e0b0: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc)
203e0b4: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
203e0b8: 02 80 00 09 be 203e0dc <rtems_rfs_rtems_dir_open+0x64> <== NOT EXECUTED
203e0bc: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
203e0c0: 7f ff ff 80 call 203dec0 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203e0c4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_open: opening inode", rc);
203e0c8: 40 00 12 d8 call 2042c28 <__errno> <== NOT EXECUTED
203e0cc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203e0d0: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
203e0d4: 81 c7 e0 08 ret <== NOT EXECUTED
203e0d8: 81 e8 00 00 restore <== NOT EXECUTED
}
if (!RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)))
203e0dc: c4 08 60 02 ldub [ %g1 + 2 ], %g2 <== NOT EXECUTED
203e0e0: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
203e0e4: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203e0e8: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED
203e0ec: 03 00 00 10 sethi %hi(0x4000), %g1 <== NOT EXECUTED
203e0f0: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203e0f4: 02 80 00 0c be 203e124 <rtems_rfs_rtems_dir_open+0xac> <== NOT EXECUTED
203e0f8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
203e0fc: 7f ff fb 8e call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203e100: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
203e104: 7f ff ff 6f call 203dec0 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203e108: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_open: not dir", ENOTDIR);
203e10c: 40 00 12 c7 call 2042c28 <__errno> <== NOT EXECUTED
203e110: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203e114: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED
203e118: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203e11c: 81 c7 e0 08 ret <== NOT EXECUTED
203e120: 81 e8 00 00 restore <== NOT EXECUTED
}
iop->offset = 0;
203e124: c0 26 20 10 clr [ %i0 + 0x10 ] <== NOT EXECUTED
203e128: c0 26 20 14 clr [ %i0 + 0x14 ] <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
203e12c: 7f ff fb 82 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203e130: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
203e134: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e138: 7f ff ff 62 call 203dec0 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203e13c: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
203e140: 81 c7 e0 08 ret <== NOT EXECUTED
203e144: 81 e8 00 00 restore <== NOT EXECUTED
0203df7c <rtems_rfs_rtems_dir_read>:
*/
static ssize_t
rtems_rfs_rtems_dir_read (rtems_libio_t* iop,
void* buffer,
size_t count)
{
203df7c: 9d e3 bf 70 save %sp, -144, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
203df80: 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);
203df84: 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);
203df88: 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);
203df8c: 40 00 74 54 call 205b0dc <.udiv> <== NOT EXECUTED
203df90: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
203df94: c2 04 60 7c ld [ %l1 + 0x7c ], %g1 <== NOT EXECUTED
203df98: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
203df9c: 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);
203dfa0: e6 06 20 3c ld [ %i0 + 0x3c ], %l3 <== NOT EXECUTED
203dfa4: 92 10 20 00 clr %o1 <== NOT EXECUTED
203dfa8: 7f ff 3a d2 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
203dfac: 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);
203dfb0: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203dfb4: aa 07 bf d4 add %fp, -44, %l5 <== NOT EXECUTED
203dfb8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203dfbc: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED
203dfc0: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
203dfc4: 7f ff fc 05 call 203cfd8 <rtems_rfs_inode_open> <== NOT EXECUTED
203dfc8: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
if (rc)
203dfcc: a6 92 20 00 orcc %o0, 0, %l3 <== NOT EXECUTED
203dfd0: 12 80 00 04 bne 203dfe0 <rtems_rfs_rtems_dir_read+0x64> <== NOT EXECUTED
203dfd4: a8 07 bf fc add %fp, -4, %l4 <== NOT EXECUTED
203dfd8: 10 80 00 1a b 203e040 <rtems_rfs_rtems_dir_read+0xc4> <== NOT EXECUTED
203dfdc: b0 10 20 00 clr %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
203dfe0: 7f ff ff b8 call 203dec0 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203dfe4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_read: read inode", rc);
203dfe8: 40 00 13 10 call 2042c28 <__errno> <== NOT EXECUTED
203dfec: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203dff0: e6 22 00 00 st %l3, [ %o0 ] <== NOT EXECUTED
203dff4: 81 c7 e0 08 ret <== NOT EXECUTED
203dff8: 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);
203dffc: 7f ff ef 4e call 2039d34 <rtems_rfs_dir_read> <== NOT EXECUTED
203e000: d4 1c 20 10 ldd [ %l0 + 0x10 ], %o2 <== NOT EXECUTED
if (rc == ENOENT)
203e004: 80 a2 20 02 cmp %o0, 2 <== NOT EXECUTED
203e008: 02 80 00 15 be 203e05c <rtems_rfs_rtems_dir_read+0xe0> <== NOT EXECUTED
203e00c: ac 10 00 08 mov %o0, %l6 <== NOT EXECUTED
{
rc = 0;
break;
}
if (rc > 0)
203e010: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203e014: 24 80 00 06 ble,a 203e02c <rtems_rfs_rtems_dir_read+0xb0><== NOT EXECUTED
203e018: c4 1c 20 10 ldd [ %l0 + 0x10 ], %g2 <== NOT EXECUTED
{
bytes_transferred = rtems_rfs_rtems_error ("dir_read: dir read", rc);
203e01c: 40 00 13 03 call 2042c28 <__errno> <== NOT EXECUTED
203e020: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203e024: 10 80 00 0e b 203e05c <rtems_rfs_rtems_dir_read+0xe0> <== NOT EXECUTED
203e028: ec 22 00 00 st %l6, [ %o0 ] <== NOT EXECUTED
break;
}
iop->offset += size;
203e02c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203e030: b0 06 21 18 add %i0, 0x118, %i0 <== NOT EXECUTED
203e034: 86 80 c0 01 addcc %g3, %g1, %g3 <== NOT EXECUTED
203e038: 84 40 a0 00 addx %g2, 0, %g2 <== NOT EXECUTED
203e03c: 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++)
203e040: 80 a4 c0 12 cmp %l3, %l2 <== NOT EXECUTED
{
size_t size;
rc = rtems_rfs_dir_read (fs, &inode, iop->offset, dirent, &size);
203e044: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203e048: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
203e04c: 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++)
203e050: a6 04 e0 01 inc %l3 <== NOT EXECUTED
203e054: 0a bf ff ea bcs 203dffc <rtems_rfs_rtems_dir_read+0x80> <== NOT EXECUTED
203e058: 98 06 40 18 add %i1, %i0, %o4 <== NOT EXECUTED
}
iop->offset += size;
bytes_transferred += sizeof (struct dirent);
}
rtems_rfs_inode_close (fs, &inode);
203e05c: 92 07 bf d4 add %fp, -44, %o1 <== NOT EXECUTED
203e060: 7f ff fb b5 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203e064: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
203e068: 7f ff ff 96 call 203dec0 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203e06c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
return bytes_transferred;
}
203e070: 81 c7 e0 08 ret <== NOT EXECUTED
203e074: 81 e8 00 00 restore <== NOT EXECUTED
0203dee0 <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)
{
203dee0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
203dee4: 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);
203dee8: 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);
203deec: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_pathloc);
203def0: 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)
203def4: 80 a4 60 01 cmp %l1, 1 <== NOT EXECUTED
203def8: 12 80 00 08 bne 203df18 <rtems_rfs_rtems_dir_rmnod+0x38> <== NOT EXECUTED
203defc: e4 06 60 04 ld [ %i1 + 4 ], %l2 <== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_rmnod: root inode", EBUSY);
203df00: 40 00 13 4a call 2042c28 <__errno> <== NOT EXECUTED
203df04: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203df08: 82 10 20 10 mov 0x10, %g1 <== NOT EXECUTED
203df0c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203df10: 81 c7 e0 08 ret <== NOT EXECUTED
203df14: 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);
203df18: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
203df1c: 92 10 20 00 clr %o1 <== NOT EXECUTED
203df20: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
203df24: 7f ff 3a f3 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
203df28: 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);
203df2c: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
203df30: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203df34: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203df38: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
203df3c: 7f ff fe 1f call 203d7b8 <rtems_rfs_unlink> <== NOT EXECUTED
203df40: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED
if (rc)
203df44: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
203df48: 02 80 00 09 be 203df6c <rtems_rfs_rtems_dir_rmnod+0x8c> <== NOT EXECUTED
203df4c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
203df50: 7f ff ff dc call 203dec0 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203df54: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_rmnod: unlinking", rc);
203df58: 40 00 13 34 call 2042c28 <__errno> <== NOT EXECUTED
203df5c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203df60: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
203df64: 81 c7 e0 08 ret <== NOT EXECUTED
203df68: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
203df6c: 7f ff ff d5 call 203dec0 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203df70: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
203df74: 81 c7 e0 08 ret <== NOT EXECUTED
203df78: 81 e8 00 00 restore <== NOT EXECUTED
02021dd4 <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)
{
2021dd4: 9d e3 bf 68 save %sp, -152, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2021dd8: 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);
2021ddc: 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);
2021de0: 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);
2021de4: c4 27 bf fc st %g2, [ %fp + -4 ] <== NOT EXECUTED
rtems_rfs_ino node_ino;
uint32_t doff = 0;
2021de8: 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);
2021dec: 40 00 9f 37 call 2049ac8 <strlen> <== NOT EXECUTED
2021df0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2021df4: 90 06 00 08 add %i0, %o0, %o0 <== NOT EXECUTED
while (*name != path)
2021df8: 10 80 00 0b b 2021e24 <rtems_rfs_rtems_eval_for_make+0x50><== NOT EXECUTED
2021dfc: d0 26 80 00 st %o0, [ %i2 ] <== NOT EXECUTED
{
(*name)--;
2021e00: c4 26 80 00 st %g2, [ %i2 ] <== NOT EXECUTED
if (rtems_filesystem_is_separator (**name))
2021e04: 7f ff 9f b2 call 2009ccc <rtems_filesystem_is_separator> <== NOT EXECUTED
2021e08: d0 48 7f ff ldsb [ %g1 + -1 ], %o0 <== NOT EXECUTED
2021e0c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2021e10: 02 80 00 06 be 2021e28 <rtems_rfs_rtems_eval_for_make+0x54><== NOT EXECUTED
2021e14: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
{
(*name)++;
2021e18: 82 00 60 01 inc %g1 <== NOT EXECUTED
break;
2021e1c: 10 80 00 06 b 2021e34 <rtems_rfs_rtems_eval_for_make+0x60><== NOT EXECUTED
2021e20: 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)
2021e24: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
2021e28: 80 a0 40 18 cmp %g1, %i0 <== NOT EXECUTED
2021e2c: 12 bf ff f5 bne 2021e00 <rtems_rfs_rtems_eval_for_make+0x2c><== NOT EXECUTED
2021e30: 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));
2021e34: 40 00 9f 25 call 2049ac8 <strlen> <== NOT EXECUTED
2021e38: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2021e3c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
2021e40: 7f ff 98 8d call 2008074 <rtems_filesystem_prefix_separators><== NOT EXECUTED
2021e44: 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);
2021e48: 2f 00 81 88 sethi %hi(0x2062000), %l7 <== NOT EXECUTED
/*
* Eat any separators at start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, strlen(path));
path += stripped;
2021e4c: 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);
2021e50: 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);
2021e54: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2021e58: 7f ff fc 3d call 2020f4c <rtems_rfs_rtems_lock> <== NOT EXECUTED
2021e5c: 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);
2021e60: ae 15 e2 30 or %l7, 0x230, %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)) &&
2021e64: 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,
2021e68: a8 07 bf fc add %fp, -4, %l4 <== NOT EXECUTED
2021e6c: 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);
2021e70: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
2021e74: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2021e78: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2021e7c: 40 00 6c 57 call 203cfd8 <rtems_rfs_inode_open> <== NOT EXECUTED
2021e80: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
2021e84: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2021e88: 14 80 00 d0 bg 20221c8 <rtems_rfs_rtems_eval_for_make+0x3f4><== NOT EXECUTED
2021e8c: 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)) &&
2021e90: c4 08 60 03 ldub [ %g1 + 3 ], %g2 <== NOT EXECUTED
2021e94: c2 08 60 02 ldub [ %g1 + 2 ], %g1 <== NOT EXECUTED
2021e98: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2021e9c: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2021ea0: 82 08 40 16 and %g1, %l6, %g1 <== NOT EXECUTED
2021ea4: 80 a0 40 15 cmp %g1, %l5 <== NOT EXECUTED
2021ea8: 32 80 00 09 bne,a 2021ecc <rtems_rfs_rtems_eval_for_make+0xf8><== NOT EXECUTED
2021eac: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
2021eb0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2021eb4: 40 00 01 a5 call 2022548 <rtems_rfs_rtems_eval_perms> <== NOT EXECUTED
2021eb8: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2021ebc: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED
2021ec0: 22 80 00 9f be,a 202213c <rtems_rfs_rtems_eval_for_make+0x368><== NOT EXECUTED
2021ec4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
}
/*
* Is this the end of the pathname we where given ?
*/
if (path == *name)
2021ec8: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
2021ecc: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED
2021ed0: 02 80 00 82 be 20220d8 <rtems_rfs_rtems_eval_for_make+0x304><== NOT EXECUTED
2021ed4: a4 10 00 18 mov %i0, %l2 <== NOT EXECUTED
2021ed8: 10 80 00 03 b 2021ee4 <rtems_rfs_rtems_eval_for_make+0x110><== NOT EXECUTED
2021edc: 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++;
2021ee0: 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) &&
2021ee4: 7f ff 9f 7a call 2009ccc <rtems_filesystem_is_separator> <== NOT EXECUTED
2021ee8: d0 4c 80 00 ldsb [ %l2 ], %o0 <== NOT EXECUTED
2021eec: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2021ef0: 12 80 00 0b bne 2021f1c <rtems_rfs_rtems_eval_for_make+0x148><== NOT EXECUTED
2021ef4: 01 00 00 00 nop <== NOT EXECUTED
2021ef8: c2 4c 80 00 ldsb [ %l2 ], %g1 <== NOT EXECUTED
2021efc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2021f00: 02 80 00 07 be 2021f1c <rtems_rfs_rtems_eval_for_make+0x148><== NOT EXECUTED
2021f04: 01 00 00 00 nop <== NOT EXECUTED
(*path != '\0') &&
(node_len < (rtems_rfs_fs_max_name (fs) - 1)))
2021f08: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED
2021f0c: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
2021f10: 80 a7 40 01 cmp %i5, %g1 <== NOT EXECUTED
2021f14: 2a bf ff f3 bcs,a 2021ee0 <rtems_rfs_rtems_eval_for_make+0x10c><== NOT EXECUTED
2021f18: 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));
2021f1c: 40 00 9e eb call 2049ac8 <strlen> <== NOT EXECUTED
2021f20: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2021f24: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
2021f28: 7f ff 98 53 call 2008074 <rtems_filesystem_prefix_separators><== NOT EXECUTED
2021f2c: 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))
2021f30: c2 4e 00 00 ldsb [ %i0 ], %g1 <== NOT EXECUTED
2021f34: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
2021f38: 12 80 00 13 bne 2021f84 <rtems_rfs_rtems_eval_for_make+0x1b0><== NOT EXECUTED
2021f3c: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED
2021f40: d0 4e 20 01 ldsb [ %i0 + 1 ], %o0 <== NOT EXECUTED
2021f44: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2021f48: 22 80 00 07 be,a 2021f64 <rtems_rfs_rtems_eval_for_make+0x190><== NOT EXECUTED
2021f4c: c2 4c 80 00 ldsb [ %l2 ], %g1 <== NOT EXECUTED
2021f50: 7f ff 9f 5f call 2009ccc <rtems_filesystem_is_separator> <== NOT EXECUTED
2021f54: 01 00 00 00 nop <== NOT EXECUTED
2021f58: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2021f5c: 02 80 00 0b be 2021f88 <rtems_rfs_rtems_eval_for_make+0x1b4><== NOT EXECUTED
2021f60: c2 4c 80 00 ldsb [ %l2 ], %g1 <== NOT EXECUTED
{
if (*path)
2021f64: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2021f68: 02 80 00 5d be 20220dc <rtems_rfs_rtems_eval_for_make+0x308><== NOT EXECUTED
2021f6c: c2 07 bf d8 ld [ %fp + -40 ], %g1 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
2021f70: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2021f74: 40 00 6b f0 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
2021f78: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
continue;
2021f7c: 10 bf ff bd b 2021e70 <rtems_rfs_rtems_eval_for_make+0x9c><== NOT EXECUTED
2021f80: 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))
2021f84: c2 4c 80 00 ldsb [ %l2 ], %g1 <== NOT EXECUTED
2021f88: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
2021f8c: 12 80 00 3a bne 2022074 <rtems_rfs_rtems_eval_for_make+0x2a0><== NOT EXECUTED
2021f90: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
2021f94: c2 4c a0 01 ldsb [ %l2 + 1 ], %g1 <== NOT EXECUTED
2021f98: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
2021f9c: 12 80 00 37 bne 2022078 <rtems_rfs_rtems_eval_for_make+0x2a4><== NOT EXECUTED
2021fa0: 96 10 00 1d mov %i5, %o3 <== NOT EXECUTED
2021fa4: d0 4c a0 02 ldsb [ %l2 + 2 ], %o0 <== NOT EXECUTED
2021fa8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2021fac: 02 80 00 07 be 2021fc8 <rtems_rfs_rtems_eval_for_make+0x1f4><== NOT EXECUTED
2021fb0: b8 04 a0 02 add %l2, 2, %i4 <== NOT EXECUTED
2021fb4: 7f ff 9f 46 call 2009ccc <rtems_filesystem_is_separator> <== NOT EXECUTED
2021fb8: 01 00 00 00 nop <== NOT EXECUTED
2021fbc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2021fc0: 02 80 00 2d be 2022074 <rtems_rfs_rtems_eval_for_make+0x2a0><== NOT EXECUTED
2021fc4: 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)
2021fc8: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2021fcc: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2021fd0: 12 80 00 14 bne 2022020 <rtems_rfs_rtems_eval_for_make+0x24c><== NOT EXECUTED
2021fd4: 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);
2021fd8: 92 07 bf cc add %fp, -52, %o1 <== NOT EXECUTED
2021fdc: 40 00 6b d6 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
2021fe0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
2021fe4: 7f ff fb e2 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021fe8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*pathloc = pathloc->mt_entry->mt_point_node;
2021fec: d2 06 60 10 ld [ %i1 + 0x10 ], %o1 <== NOT EXECUTED
2021ff0: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
2021ff4: 92 02 60 08 add %o1, 8, %o1 <== NOT EXECUTED
2021ff8: 40 00 90 58 call 2046158 <memcpy> <== NOT EXECUTED
2021ffc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
return (*pathloc->ops->evalformake_h)(path + 2, pathloc, name);
2022000: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
2022004: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
2022008: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED
202200c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2022010: 9f c0 40 00 call %g1 <== NOT EXECUTED
2022014: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2022018: 81 c7 e0 08 ret <== NOT EXECUTED
202201c: 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)))
2022020: c4 08 60 03 ldub [ %g1 + 3 ], %g2 <== NOT EXECUTED
2022024: c2 08 60 02 ldub [ %g1 + 2 ], %g1 <== NOT EXECUTED
2022028: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
202202c: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2022030: 82 08 40 16 and %g1, %l6, %g1 <== NOT EXECUTED
2022034: 80 a0 40 15 cmp %g1, %l5 <== NOT EXECUTED
2022038: 22 80 00 0b be,a 2022064 <rtems_rfs_rtems_eval_for_make+0x290><== NOT EXECUTED
202203c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
2022040: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2022044: 40 00 6b bc call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
2022048: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
202204c: 7f ff fb c8 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2022050: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: not dir", ENOTSUP);
2022054: 40 00 82 f5 call 2042c28 <__errno> <== NOT EXECUTED
2022058: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202205c: 10 80 00 54 b 20221ac <rtems_rfs_rtems_eval_for_make+0x3d8><== NOT EXECUTED
2022060: 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);
2022064: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2022068: 94 10 00 17 mov %l7, %o2 <== NOT EXECUTED
202206c: 10 80 00 05 b 2022080 <rtems_rfs_rtems_eval_for_make+0x2ac><== NOT EXECUTED
2022070: 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,
2022074: 96 10 00 1d mov %i5, %o3 <== NOT EXECUTED
2022078: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202207c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2022080: 98 10 00 14 mov %l4, %o4 <== NOT EXECUTED
2022084: 40 00 61 2d call 203a538 <rtems_rfs_dir_lookup_ino> <== NOT EXECUTED
2022088: 9a 10 00 13 mov %l3, %o5 <== NOT EXECUTED
node, node_len - stripped, &ino, &doff);
if (rc > 0)
202208c: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
2022090: 04 80 00 06 ble 20220a8 <rtems_rfs_rtems_eval_for_make+0x2d4><== NOT EXECUTED
2022094: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
2022098: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
202209c: 40 00 6b a6 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
20220a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20220a4: 30 80 00 06 b,a 20220bc <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);
20220a8: 40 00 6b a3 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
20220ac: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc > 0)
20220b0: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
20220b4: 24 bf ff 6f ble,a 2021e70 <rtems_rfs_rtems_eval_for_make+0x9c><== NOT EXECUTED
20220b8: b0 10 00 12 mov %l2, %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
20220bc: 7f ff fb ac call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20220c0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: closing node", rc);
20220c4: 40 00 82 d9 call 2042c28 <__errno> <== NOT EXECUTED
20220c8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20220cc: fa 22 00 00 st %i5, [ %o0 ] <== NOT EXECUTED
20220d0: 81 c7 e0 08 ret <== NOT EXECUTED
20220d4: 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);
20220d8: c2 07 bf d8 ld [ %fp + -40 ], %g1 <== NOT EXECUTED
}
}
if (!RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)))
20220dc: c4 08 60 02 ldub [ %g1 + 2 ], %g2 <== NOT EXECUTED
20220e0: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
20220e4: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
20220e8: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED
20220ec: 03 00 00 10 sethi %hi(0x4000), %g1 <== NOT EXECUTED
20220f0: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
20220f4: 02 80 00 0b be 2022120 <rtems_rfs_rtems_eval_for_make+0x34c><== NOT EXECUTED
20220f8: a2 07 bf cc add %fp, -52, %l1 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
20220fc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2022100: 40 00 6b 8d call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
2022104: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
2022108: 7f ff fb 99 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
202210c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: not dir", ENOTDIR);
2022110: 40 00 82 c6 call 2042c28 <__errno> <== NOT EXECUTED
2022114: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2022118: 10 80 00 25 b 20221ac <rtems_rfs_rtems_eval_for_make+0x3d8><== NOT EXECUTED
202211c: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED
}
if (!rtems_rfs_rtems_eval_perms (&inode, RTEMS_LIBIO_PERMS_WX))
2022120: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2022124: 40 00 01 09 call 2022548 <rtems_rfs_rtems_eval_perms> <== NOT EXECUTED
2022128: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED
202212c: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED
2022130: 32 80 00 0b bne,a 202215c <rtems_rfs_rtems_eval_for_make+0x388><== NOT EXECUTED
2022134: e4 06 80 00 ld [ %i2 ], %l2 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
2022138: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
202213c: 40 00 6b 7e call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
2022140: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
2022144: 7f ff fb 8a call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2022148: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: cannot write", EACCES);
202214c: 40 00 82 b7 call 2042c28 <__errno> <== NOT EXECUTED
2022150: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2022154: 10 80 00 16 b 20221ac <rtems_rfs_rtems_eval_for_make+0x3d8><== NOT EXECUTED
2022158: 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),
202215c: 40 00 9e 5b call 2049ac8 <strlen> <== NOT EXECUTED
2022160: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2022164: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2022168: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
202216c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2022170: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2022174: 98 07 bf f8 add %fp, -8, %o4 <== NOT EXECUTED
2022178: 40 00 60 f0 call 203a538 <rtems_rfs_dir_lookup_ino> <== NOT EXECUTED
202217c: 9a 07 bf f4 add %fp, -12, %o5 <== NOT EXECUTED
&node_ino, &doff);
if (rc == 0)
2022180: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2022184: 12 80 00 0d bne 20221b8 <rtems_rfs_rtems_eval_for_make+0x3e4><== NOT EXECUTED
2022188: 80 a4 a0 02 cmp %l2, 2 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
202218c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2022190: 40 00 6b 69 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
2022194: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
2022198: 7f ff fb 75 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
202219c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: found name", EEXIST);
20221a0: 40 00 82 a2 call 2042c28 <__errno> <== NOT EXECUTED
20221a4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20221a8: 82 10 20 11 mov 0x11, %g1 <== NOT EXECUTED
20221ac: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20221b0: 81 c7 e0 08 ret <== NOT EXECUTED
20221b4: 81 e8 00 00 restore <== NOT EXECUTED
}
if (rc != ENOENT)
20221b8: 02 80 00 0b be 20221e4 <rtems_rfs_rtems_eval_for_make+0x410><== NOT EXECUTED
20221bc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
20221c0: 40 00 6b 5d call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
20221c4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
20221c8: 7f ff fb 69 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20221cc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: look up", rc);
20221d0: 40 00 82 96 call 2042c28 <__errno> <== NOT EXECUTED
20221d4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20221d8: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
20221dc: 81 c7 e0 08 ret <== NOT EXECUTED
20221e0: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Set the parent ino in the path location.
*/
rtems_rfs_rtems_set_pathloc_ino (pathloc, ino);
20221e4: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
20221e8: c2 26 40 00 st %g1, [ %i1 ] <== NOT EXECUTED
rtems_rfs_rtems_set_pathloc_doff (pathloc, doff);
20221ec: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
rc = rtems_rfs_rtems_set_handlers (pathloc, &inode) ? 0 : EIO;
20221f0: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
20221f4: 40 00 00 e7 call 2022590 <rtems_rfs_rtems_set_handlers> <== NOT EXECUTED
20221f8: c2 26 60 04 st %g1, [ %i1 + 4 ] <== NOT EXECUTED
20221fc: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED
2022200: 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);
2022204: 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;
2022208: 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);
202220c: 40 00 6b 4a call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
2022210: 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;
2022214: 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);
2022218: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202221c: 7f ff fb 54 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2022220: b0 06 20 05 add %i0, 5, %i0 <== NOT EXECUTED
return rc;
}
2022224: 81 c7 e0 08 ret <== NOT EXECUTED
2022228: 81 e8 00 00 restore <== NOT EXECUTED
0202222c <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)
{
202222c: 9d e3 bf 70 save %sp, -144, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2022230: 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);
2022234: 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);
2022238: 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);
202223c: 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);
2022240: 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);
2022244: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2022248: 7f ff 97 8b call 2008074 <rtems_filesystem_prefix_separators><== NOT EXECUTED
202224c: 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);
2022250: 2f 00 81 88 sethi %hi(0x2062000), %l7 <== NOT EXECUTED
/*
* Eat any separators at the start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, pathlen);
path += stripped;
pathlen -= stripped;
2022254: 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;
2022258: 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);
202225c: 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);
2022260: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2022264: 7f ff fb 3a call 2020f4c <rtems_rfs_rtems_lock> <== NOT EXECUTED
2022268: ae 15 e2 30 or %l7, 0x230, %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)) &&
202226c: 2d 00 00 3c sethi %hi(0xf000), %l6 <== NOT EXECUTED
2022270: 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,
2022274: a8 07 bf fc add %fp, -4, %l4 <== NOT EXECUTED
2022278: 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);
202227c: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
2022280: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2022284: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2022288: 40 00 6b 54 call 203cfd8 <rtems_rfs_inode_open> <== NOT EXECUTED
202228c: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
2022290: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2022294: 24 80 00 09 ble,a 20222b8 <rtems_rfs_rtems_eval_path+0x8c><== NOT EXECUTED
2022298: c2 4e 00 00 ldsb [ %i0 ], %g1 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
202229c: 7f ff fb 34 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20222a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_path: opening inode", rc);
20222a4: 40 00 82 61 call 2042c28 <__errno> <== NOT EXECUTED
20222a8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20222ac: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
20222b0: 81 c7 e0 08 ret <== NOT EXECUTED
20222b4: 81 e8 00 00 restore <== NOT EXECUTED
}
/*
* Is this the end of the pathname we where given ?
*/
if ((*path == '\0') || (pathlen == 0))
20222b8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20222bc: 02 80 00 8f be 20224f8 <rtems_rfs_rtems_eval_path+0x2cc> <== NOT EXECUTED
20222c0: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
20222c4: 02 80 00 8d be 20224f8 <rtems_rfs_rtems_eval_path+0x2cc> <== NOT EXECUTED
20222c8: 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)) &&
20222cc: c4 08 60 03 ldub [ %g1 + 3 ], %g2 <== NOT EXECUTED
20222d0: c2 08 60 02 ldub [ %g1 + 2 ], %g1 <== NOT EXECUTED
20222d4: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
20222d8: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
20222dc: 82 08 40 16 and %g1, %l6, %g1 <== NOT EXECUTED
20222e0: 80 a0 40 15 cmp %g1, %l5 <== NOT EXECUTED
20222e4: 02 80 00 05 be 20222f8 <rtems_rfs_rtems_eval_path+0xcc> <== NOT EXECUTED
20222e8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
20222ec: a4 10 00 18 mov %i0, %l2 <== NOT EXECUTED
20222f0: 10 80 00 14 b 2022340 <rtems_rfs_rtems_eval_path+0x114> <== NOT EXECUTED
20222f4: ba 10 20 00 clr %i5 <== NOT EXECUTED
20222f8: 40 00 00 94 call 2022548 <rtems_rfs_rtems_eval_perms> <== NOT EXECUTED
20222fc: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2022300: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED
2022304: 12 bf ff fb bne 20222f0 <rtems_rfs_rtems_eval_path+0xc4> <== NOT EXECUTED
2022308: 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);
202230c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2022310: 40 00 6b 09 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
2022314: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
2022318: 7f ff fb 15 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
202231c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_path: eval perms", EACCES);
2022320: 40 00 82 42 call 2042c28 <__errno> <== NOT EXECUTED
2022324: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2022328: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED
202232c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2022330: 81 c7 e0 08 ret <== NOT EXECUTED
2022334: 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--;
2022338: b2 06 7f ff add %i1, -1, %i1 <== NOT EXECUTED
202233c: 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) &&
2022340: 7f ff 9e 63 call 2009ccc <rtems_filesystem_is_separator> <== NOT EXECUTED
2022344: d0 4c 80 00 ldsb [ %l2 ], %o0 <== NOT EXECUTED
2022348: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202234c: 12 80 00 0c bne 202237c <rtems_rfs_rtems_eval_path+0x150> <== NOT EXECUTED
2022350: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2022354: 02 80 00 0b be 2022380 <rtems_rfs_rtems_eval_path+0x154> <== NOT EXECUTED
2022358: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
202235c: c4 4c 80 00 ldsb [ %l2 ], %g2 <== NOT EXECUTED
2022360: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2022364: 02 80 00 07 be 2022380 <rtems_rfs_rtems_eval_path+0x154> <== NOT EXECUTED
2022368: 82 07 60 01 add %i5, 1, %g1 <== NOT EXECUTED
(*path != '\0') && pathlen &&
((node_len + 1) < rtems_rfs_fs_max_name (fs)))
202236c: c4 04 20 18 ld [ %l0 + 0x18 ], %g2 <== NOT EXECUTED
2022370: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022374: 2a bf ff f1 bcs,a 2022338 <rtems_rfs_rtems_eval_path+0x10c><== NOT EXECUTED
2022378: a4 04 a0 01 inc %l2 <== NOT EXECUTED
}
/*
* Eat any separators at start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, pathlen);
202237c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2022380: 7f ff 97 3d call 2008074 <rtems_filesystem_prefix_separators><== NOT EXECUTED
2022384: 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))
2022388: c2 4e 00 00 ldsb [ %i0 ], %g1 <== NOT EXECUTED
}
/*
* Eat any separators at start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, pathlen);
202238c: b8 10 00 08 mov %o0, %i4 <== NOT EXECUTED
path += stripped;
2022390: 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))
2022394: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
2022398: 12 80 00 15 bne 20223ec <rtems_rfs_rtems_eval_path+0x1c0> <== NOT EXECUTED
202239c: b2 26 40 08 sub %i1, %o0, %i1 <== NOT EXECUTED
20223a0: d0 4e 20 01 ldsb [ %i0 + 1 ], %o0 <== NOT EXECUTED
20223a4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20223a8: 22 80 00 08 be,a 20223c8 <rtems_rfs_rtems_eval_path+0x19c><== NOT EXECUTED
20223ac: c2 4c 80 00 ldsb [ %l2 ], %g1 <== NOT EXECUTED
20223b0: 7f ff 9e 47 call 2009ccc <rtems_filesystem_is_separator> <== NOT EXECUTED
20223b4: 01 00 00 00 nop <== NOT EXECUTED
20223b8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20223bc: 22 80 00 0b be,a 20223e8 <rtems_rfs_rtems_eval_path+0x1bc><== NOT EXECUTED
20223c0: c2 4e 00 00 ldsb [ %i0 ], %g1 <== NOT EXECUTED
{
if (*path)
20223c4: c2 4c 80 00 ldsb [ %l2 ], %g1 <== NOT EXECUTED
20223c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20223cc: 02 80 00 4c be 20224fc <rtems_rfs_rtems_eval_path+0x2d0> <== NOT EXECUTED
20223d0: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
20223d4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20223d8: 40 00 6a d7 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
20223dc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
continue;
20223e0: 10 bf ff a7 b 202227c <rtems_rfs_rtems_eval_path+0x50> <== NOT EXECUTED
20223e4: 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))
20223e8: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
20223ec: 12 80 00 2a bne 2022494 <rtems_rfs_rtems_eval_path+0x268> <== NOT EXECUTED
20223f0: ba 07 00 1d add %i4, %i5, %i5 <== NOT EXECUTED
20223f4: c2 4e 20 01 ldsb [ %i0 + 1 ], %g1 <== NOT EXECUTED
20223f8: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
20223fc: 12 80 00 27 bne 2022498 <rtems_rfs_rtems_eval_path+0x26c> <== NOT EXECUTED
2022400: 96 27 40 1c sub %i5, %i4, %o3 <== NOT EXECUTED
2022404: d0 4e 20 02 ldsb [ %i0 + 2 ], %o0 <== NOT EXECUTED
2022408: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202240c: 02 80 00 08 be 202242c <rtems_rfs_rtems_eval_path+0x200> <== NOT EXECUTED
2022410: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2022414: 7f ff 9e 2e call 2009ccc <rtems_filesystem_is_separator> <== NOT EXECUTED
2022418: 01 00 00 00 nop <== NOT EXECUTED
202241c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2022420: 02 80 00 1e be 2022498 <rtems_rfs_rtems_eval_path+0x26c> <== NOT EXECUTED
2022424: 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)
2022428: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
202242c: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2022430: 12 80 00 15 bne 2022484 <rtems_rfs_rtems_eval_path+0x258> <== NOT EXECUTED
2022434: 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);
2022438: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
202243c: 40 00 6a be call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
2022440: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
2022444: 7f ff fa ca call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2022448: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*pathloc = pathloc->mt_entry->mt_point_node;
202244c: d2 06 e0 10 ld [ %i3 + 0x10 ], %o1 <== NOT EXECUTED
2022450: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
2022454: 92 02 60 08 add %o1, 8, %o1 <== NOT EXECUTED
2022458: 40 00 8f 40 call 2046158 <memcpy> <== NOT EXECUTED
202245c: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
return (*pathloc->ops->evalpath_h)(path - node_len, pathlen + node_len,
2022460: c2 06 e0 0c ld [ %i3 + 0xc ], %g1 <== NOT EXECUTED
2022464: 92 07 40 19 add %i5, %i1, %o1 <== NOT EXECUTED
2022468: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED
202246c: 90 24 80 1d sub %l2, %i5, %o0 <== NOT EXECUTED
2022470: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2022474: 9f c0 40 00 call %g1 <== NOT EXECUTED
2022478: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
202247c: 81 c7 e0 08 ret <== NOT EXECUTED
2022480: 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);
2022484: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2022488: 94 10 00 17 mov %l7, %o2 <== NOT EXECUTED
202248c: 10 80 00 06 b 20224a4 <rtems_rfs_rtems_eval_path+0x278> <== NOT EXECUTED
2022490: 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,
2022494: 96 27 40 1c sub %i5, %i4, %o3 <== NOT EXECUTED
2022498: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
202249c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20224a0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20224a4: 98 10 00 14 mov %l4, %o4 <== NOT EXECUTED
20224a8: 40 00 60 24 call 203a538 <rtems_rfs_dir_lookup_ino> <== NOT EXECUTED
20224ac: 9a 10 00 13 mov %l3, %o5 <== NOT EXECUTED
node, node_len - stripped, &ino, &doff);
if (rc > 0)
20224b0: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
20224b4: 14 80 00 07 bg 20224d0 <rtems_rfs_rtems_eval_path+0x2a4> <== NOT EXECUTED
20224b8: 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);
20224bc: 40 00 6a 9e call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
20224c0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc > 0)
20224c4: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
20224c8: 24 bf ff 6d ble,a 202227c <rtems_rfs_rtems_eval_path+0x50><== NOT EXECUTED
20224cc: b0 10 00 12 mov %l2, %i0 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
20224d0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20224d4: 40 00 6a 98 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
20224d8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
20224dc: 7f ff fa a4 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20224e0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_path: closing node", rc);
20224e4: 40 00 81 d1 call 2042c28 <__errno> <== NOT EXECUTED
20224e8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20224ec: fa 22 00 00 st %i5, [ %o0 ] <== NOT EXECUTED
20224f0: 81 c7 e0 08 ret <== NOT EXECUTED
20224f4: 81 e8 00 00 restore <== NOT EXECUTED
}
}
rtems_rfs_rtems_set_pathloc_ino (pathloc, ino);
20224f8: 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;
20224fc: 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);
2022500: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED
rtems_rfs_rtems_set_pathloc_doff (pathloc, doff);
2022504: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
rc = rtems_rfs_rtems_set_handlers (pathloc, &inode) ? 0 : EIO;
2022508: 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);
202250c: c2 26 e0 04 st %g1, [ %i3 + 4 ] <== NOT EXECUTED
rc = rtems_rfs_rtems_set_handlers (pathloc, &inode) ? 0 : EIO;
2022510: 40 00 00 20 call 2022590 <rtems_rfs_rtems_set_handlers> <== NOT EXECUTED
2022514: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
2022518: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED
202251c: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
2022520: 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;
2022524: b0 60 20 00 subx %g0, 0, %i0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
2022528: 40 00 6a 83 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
202252c: 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;
2022530: b0 0e 3f fb and %i0, -5, %i0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
rtems_rfs_rtems_unlock (fs);
2022534: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2022538: 7f ff fa 8d call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
202253c: 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;
}
2022540: 81 c7 e0 08 ret <== NOT EXECUTED
2022544: 81 e8 00 00 restore <== NOT EXECUTED
02022548 <rtems_rfs_rtems_eval_perms>:
2022548: c2 02 20 0c ld [ %o0 + 0xc ], %g1 <== 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))
flags_to_test |= flags << 6;
202254c: 87 2a 60 06 sll %o1, 6, %g3 <== NOT EXECUTED
2022550: c4 08 60 03 ldub [ %g1 + 3 ], %g2 <== NOT EXECUTED
2022554: c2 08 60 02 ldub [ %g1 + 2 ], %g1 <== NOT EXECUTED
2022558: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
202255c: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2022560: 85 2a 60 03 sll %o1, 3, %g2 <== NOT EXECUTED
2022564: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED
2022568: 92 10 80 09 or %g2, %o1, %o1 <== NOT EXECUTED
202256c: 92 0a 61 ff and %o1, 0x1ff, %o1 <== NOT EXECUTED
2022570: 92 08 40 09 and %g1, %o1, %o1 <== NOT EXECUTED
2022574: 80 a0 00 09 cmp %g0, %o1 <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_EVAL_PERMS))
printf("rtems-rfs: eval-perms: perms failed\n");
return false;
}
2022578: 81 c3 e0 08 retl <== NOT EXECUTED
202257c: 90 40 20 00 addx %g0, 0, %o0 <== NOT EXECUTED
0202106c <rtems_rfs_rtems_fchmod>:
* @return int
*/
int
rtems_rfs_rtems_fchmod (rtems_filesystem_location_info_t* pathloc,
mode_t mode)
{
202106c: 9d e3 bf 78 save %sp, -136, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2021070: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
2021074: 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);
2021078: 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);
202107c: 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);
2021080: 7f ff ff b3 call 2020f4c <rtems_rfs_rtems_lock> <== NOT EXECUTED
2021084: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
2021088: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
202108c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2021090: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2021094: 40 00 6f d1 call 203cfd8 <rtems_rfs_inode_open> <== NOT EXECUTED
2021098: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc)
202109c: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
20210a0: 02 80 00 09 be 20210c4 <rtems_rfs_rtems_fchmod+0x58> <== NOT EXECUTED
20210a4: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
20210a8: 7f ff ff b1 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20210ac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("fchmod: opening inode", rc);
20210b0: 40 00 86 de call 2042c28 <__errno> <== NOT EXECUTED
20210b4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20210b8: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
20210bc: 81 c7 e0 08 ret <== NOT EXECUTED
20210c0: 81 e8 00 00 restore <== NOT EXECUTED
return rtems_rfs_rtems_error ("fchmod: not owner", EPERM);
}
#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);
20210c4: 84 0e 6f ff and %i1, 0xfff, %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);
20210c8: f2 08 60 02 ldub [ %g1 + 2 ], %i1 <== NOT EXECUTED
rtems_rfs_inode_set_mode (&inode, imode);
rc = rtems_rfs_inode_close (fs, &inode);
20210cc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20210d0: b3 2e 60 08 sll %i1, 8, %i1 <== 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);
20210d4: b2 0e 70 00 and %i1, -4096, %i1 <== NOT EXECUTED
imode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
20210d8: b2 16 40 02 or %i1, %g2, %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);
20210dc: 85 36 60 08 srl %i1, 8, %g2 <== NOT EXECUTED
20210e0: c4 28 60 02 stb %g2, [ %g1 + 2 ] <== NOT EXECUTED
20210e4: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
rtems_rfs_inode_set_mode (&inode, imode);
rc = rtems_rfs_inode_close (fs, &inode);
20210e8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20210ec: f2 28 60 03 stb %i1, [ %g1 + 3 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
20210f0: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20210f4: 40 00 6f 90 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
20210f8: c2 2f bf e8 stb %g1, [ %fp + -24 ] <== NOT EXECUTED
if (rc > 0)
20210fc: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2021100: 04 80 00 09 ble 2021124 <rtems_rfs_rtems_fchmod+0xb8> <== NOT EXECUTED
2021104: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
2021108: 7f ff ff 99 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
202110c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("fchmod: closing inode", rc);
2021110: 40 00 86 c6 call 2042c28 <__errno> <== NOT EXECUTED
2021114: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2021118: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
202111c: 81 c7 e0 08 ret <== NOT EXECUTED
2021120: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
2021124: 7f ff ff 92 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021128: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
202112c: 81 c7 e0 08 ret <== NOT EXECUTED
2021130: 81 e8 00 00 restore <== NOT EXECUTED
02020f44 <rtems_rfs_rtems_fcntl>:
int
rtems_rfs_rtems_fcntl (int cmd,
rtems_libio_t* iop)
{
return 0;
}
2020f44: 81 c3 e0 08 retl <== NOT EXECUTED
2020f48: 90 10 20 00 clr %o0 <== NOT EXECUTED
020217d4 <rtems_rfs_rtems_fdatasync>:
* @param iop
* @return int
*/
int
rtems_rfs_rtems_fdatasync (rtems_libio_t* iop)
{
20217d4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc;
rc = rtems_rfs_buffer_sync (rtems_rfs_rtems_pathloc_dev (&iop->pathinfo));
20217d8: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
if (rc)
20217dc: 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));
20217e0: 40 00 5f c8 call 2039700 <rtems_rfs_buffer_sync> <== NOT EXECUTED
20217e4: d0 00 60 34 ld [ %g1 + 0x34 ], %o0 <== NOT EXECUTED
if (rc)
20217e8: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
20217ec: 02 80 00 05 be 2021800 <rtems_rfs_rtems_fdatasync+0x2c> <== NOT EXECUTED
20217f0: 01 00 00 00 nop <== NOT EXECUTED
return rtems_rfs_rtems_error ("fdatasync: sync", rc);
20217f4: 40 00 85 0d call 2042c28 <__errno> <== NOT EXECUTED
20217f8: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
20217fc: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED
return 0;
}
2021800: 81 c7 e0 08 ret <== NOT EXECUTED
2021804: 81 e8 00 00 restore <== NOT EXECUTED
0203e170 <rtems_rfs_rtems_file_close>:
* @param iop
* @return int
*/
static int
rtems_rfs_rtems_file_close (rtems_libio_t* iop)
{
203e170: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
203e174: 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);
203e178: 94 10 20 00 clr %o2 <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_file_fs (file);
203e17c: c2 04 60 1c ld [ %l1 + 0x1c ], %g1 <== NOT EXECUTED
203e180: 92 10 20 00 clr %o1 <== NOT EXECUTED
203e184: e0 00 60 98 ld [ %g1 + 0x98 ], %l0 <== NOT EXECUTED
203e188: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
203e18c: 7f ff 3a 59 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
203e190: 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);
203e194: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e198: 7f ff f3 58 call 203aef8 <rtems_rfs_file_close> <== NOT EXECUTED
203e19c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc > 0)
203e1a0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e1a4: 04 80 00 06 ble 203e1bc <rtems_rfs_rtems_file_close+0x4c> <== NOT EXECUTED
203e1a8: 01 00 00 00 nop <== NOT EXECUTED
rc = rtems_rfs_rtems_error ("file-close: file close", rc);
203e1ac: 40 00 12 9f call 2042c28 <__errno> <== NOT EXECUTED
203e1b0: 01 00 00 00 nop <== NOT EXECUTED
203e1b4: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED
203e1b8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
203e1bc: 7f ff ff e5 call 203e150 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203e1c0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
}
203e1c4: 81 c7 e0 08 ret <== NOT EXECUTED
203e1c8: 81 e8 00 00 restore <== NOT EXECUTED
0203e258 <rtems_rfs_rtems_file_ftruncate>:
* @return int
*/
int
rtems_rfs_rtems_file_ftruncate (rtems_libio_t* iop,
rtems_off64_t length)
{
203e258: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
203e25c: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED
203e260: 92 10 20 00 clr %o1 <== NOT EXECUTED
203e264: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203e268: 94 10 20 00 clr %o2 <== NOT EXECUTED
203e26c: 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)
{
203e270: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
203e274: c2 00 60 7c ld [ %g1 + 0x7c ], %g1 <== NOT EXECUTED
203e278: 7f ff 3a 1e call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
203e27c: 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);
203e280: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e284: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203e288: 7f ff f1 b5 call 203a95c <rtems_rfs_file_set_size> <== NOT EXECUTED
203e28c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
if (rc)
203e290: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e294: 22 80 00 07 be,a 203e2b0 <rtems_rfs_rtems_file_ftruncate+0x58><== NOT EXECUTED
203e298: d2 04 20 1c ld [ %l0 + 0x1c ], %o1 <== NOT EXECUTED
rc = rtems_rfs_rtems_error ("file_ftruncate: set size", rc);
203e29c: 40 00 12 63 call 2042c28 <__errno> <== NOT EXECUTED
203e2a0: 01 00 00 00 nop <== NOT EXECUTED
203e2a4: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED
203e2a8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
iop->size = rtems_rfs_file_size (file);
203e2ac: d2 04 20 1c ld [ %l0 + 0x1c ], %o1 <== NOT EXECUTED
203e2b0: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
203e2b4: 7f ff e9 29 call 2038758 <rtems_rfs_block_get_size> <== NOT EXECUTED
203e2b8: 92 02 60 84 add %o1, 0x84, %o1 <== NOT EXECUTED
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
203e2bc: 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);
203e2c0: d0 3c 60 08 std %o0, [ %l1 + 8 ] <== NOT EXECUTED
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
203e2c4: 7f ff ff a3 call 203e150 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203e2c8: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
}
203e2cc: 81 c7 e0 08 ret <== NOT EXECUTED
203e2d0: 81 e8 00 00 restore <== NOT EXECUTED
0203e148 <rtems_rfs_rtems_file_ioctl>:
int
rtems_rfs_rtems_file_ioctl (rtems_libio_t* iop, uint32_t command, void* buffer)
{
return 0;
}
203e148: 81 c3 e0 08 retl <== NOT EXECUTED
203e14c: 90 10 20 00 clr %o0 <== NOT EXECUTED
0203e2d4 <rtems_rfs_rtems_file_lseek>:
*/
rtems_off64_t
rtems_rfs_rtems_file_lseek (rtems_libio_t* iop,
rtems_off64_t offset,
int whence)
{
203e2d4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
203e2d8: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED
203e2dc: 92 10 20 00 clr %o1 <== NOT EXECUTED
203e2e0: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203e2e4: 94 10 20 00 clr %o2 <== NOT EXECUTED
203e2e8: c2 00 60 98 ld [ %g1 + 0x98 ], %g1 <== NOT EXECUTED
203e2ec: c2 00 60 7c ld [ %g1 + 0x7c ], %g1 <== NOT EXECUTED
203e2f0: 7f ff 3a 00 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
203e2f4: 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;
203e2f8: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED
rc = rtems_rfs_file_seek (file, pos, &pos);
203e2fc: 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;
203e300: c4 3f bf f8 std %g2, [ %fp + -8 ] <== NOT EXECUTED
rc = rtems_rfs_file_seek (file, pos, &pos);
203e304: 92 10 00 02 mov %g2, %o1 <== NOT EXECUTED
203e308: 94 10 00 03 mov %g3, %o2 <== NOT EXECUTED
203e30c: 7f ff f2 4e call 203ac44 <rtems_rfs_file_seek> <== NOT EXECUTED
203e310: 96 07 bf f8 add %fp, -8, %o3 <== NOT EXECUTED
203e314: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
if (rc)
203e318: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203e31c: 02 80 00 0b be 203e348 <rtems_rfs_rtems_file_lseek+0x74> <== NOT EXECUTED
203e320: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
203e324: 7f ff ff 8b call 203e150 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203e328: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("file_lseek: lseek", rc);
203e32c: 40 00 12 3f call 2042c28 <__errno> <== NOT EXECUTED
203e330: 01 00 00 00 nop <== NOT EXECUTED
203e334: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED
203e338: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
203e33c: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
203e340: 10 80 00 05 b 203e354 <rtems_rfs_rtems_file_lseek+0x80> <== NOT EXECUTED
203e344: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
203e348: 7f ff ff 82 call 203e150 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203e34c: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
return iop->offset;
203e350: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED
}
203e354: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED
203e358: 81 c7 e0 08 ret <== NOT EXECUTED
203e35c: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
0203e1cc <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)
{
203e1cc: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
203e1d0: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
203e1d4: 92 10 20 00 clr %o1 <== NOT EXECUTED
203e1d8: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
203e1dc: 94 10 20 00 clr %o2 <== NOT EXECUTED
203e1e0: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
203e1e4: 7f ff 3a 43 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
203e1e8: 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);
203e1ec: d2 06 20 3c ld [ %i0 + 0x3c ], %o1 <== NOT EXECUTED
203e1f0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e1f4: 94 10 20 00 clr %o2 <== NOT EXECUTED
203e1f8: 7f ff f3 b3 call 203b0c4 <rtems_rfs_file_open> <== NOT EXECUTED
203e1fc: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
if (rc > 0)
203e200: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
203e204: 04 80 00 09 ble 203e228 <rtems_rfs_rtems_file_open+0x5c> <== NOT EXECUTED
203e208: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
203e20c: 7f ff ff d1 call 203e150 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203e210: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("file-open: open", rc);
203e214: 40 00 12 85 call 2042c28 <__errno> <== NOT EXECUTED
203e218: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203e21c: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
203e220: 81 c7 e0 08 ret <== NOT EXECUTED
203e224: 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);
203e228: d2 00 60 1c ld [ %g1 + 0x1c ], %o1 <== NOT EXECUTED
203e22c: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
203e230: 7f ff e9 4a call 2038758 <rtems_rfs_block_get_size> <== NOT EXECUTED
203e234: 92 02 60 84 add %o1, 0x84, %o1 <== NOT EXECUTED
iop->file_info = file;
203e238: 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);
203e23c: d0 3e 20 08 std %o0, [ %i0 + 8 ] <== NOT EXECUTED
iop->file_info = file;
203e240: c2 26 20 3c st %g1, [ %i0 + 0x3c ] <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
203e244: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e248: 7f ff ff c2 call 203e150 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203e24c: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
203e250: 81 c7 e0 08 ret <== NOT EXECUTED
203e254: 81 e8 00 00 restore <== NOT EXECUTED
0203e4ec <rtems_rfs_rtems_file_read>:
*/
ssize_t
rtems_rfs_rtems_file_read (rtems_libio_t* iop,
void* buffer,
size_t count)
{
203e4ec: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
203e4f0: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED
203e4f4: 92 10 20 00 clr %o1 <== NOT EXECUTED
203e4f8: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203e4fc: 94 10 20 00 clr %o2 <== NOT EXECUTED
203e500: c2 00 60 98 ld [ %g1 + 0x98 ], %g1 <== NOT EXECUTED
203e504: c2 00 60 7c ld [ %g1 + 0x7c ], %g1 <== NOT EXECUTED
203e508: 7f ff 39 7a call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
203e50c: 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))
203e510: 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;
203e514: e2 06 20 10 ld [ %i0 + 0x10 ], %l1 <== NOT EXECUTED
203e518: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
203e51c: e4 06 20 14 ld [ %i0 + 0x14 ], %l2 <== NOT EXECUTED
203e520: 7f ff e8 8e call 2038758 <rtems_rfs_block_get_size> <== NOT EXECUTED
203e524: 92 02 60 84 add %o1, 0x84, %o1 <== NOT EXECUTED
if (pos < rtems_rfs_file_size (file))
203e528: 80 a2 00 11 cmp %o0, %l1 <== NOT EXECUTED
203e52c: 38 80 00 2f bgu,a 203e5e8 <rtems_rfs_rtems_file_read+0xfc><== NOT EXECUTED
203e530: b0 10 20 00 clr %i0 <== NOT EXECUTED
203e534: 80 a2 00 11 cmp %o0, %l1 <== NOT EXECUTED
203e538: 12 80 00 04 bne 203e548 <rtems_rfs_rtems_file_read+0x5c> <== NOT EXECUTED
203e53c: 80 a2 40 12 cmp %o1, %l2 <== NOT EXECUTED
203e540: 38 80 00 2a bgu,a 203e5e8 <rtems_rfs_rtems_file_read+0xfc><== NOT EXECUTED
203e544: b0 10 20 00 clr %i0 <== NOT EXECUTED
203e548: 10 80 00 2e b 203e600 <rtems_rfs_rtems_file_read+0x114> <== NOT EXECUTED
203e54c: b0 10 20 00 clr %i0 <== NOT EXECUTED
{
while (count)
{
size_t size;
rc = rtems_rfs_file_io_start (file, &size, true);
203e550: 7f ff f0 9f call 203a7cc <rtems_rfs_file_io_start> <== NOT EXECUTED
203e554: 01 00 00 00 nop <== NOT EXECUTED
203e558: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
if (rc > 0)
203e55c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
203e560: 04 80 00 06 ble 203e578 <rtems_rfs_rtems_file_read+0x8c> <== NOT EXECUTED
203e564: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
{
read = rtems_rfs_rtems_error ("file-read: read: io-start", rc);
203e568: 40 00 11 b0 call 2042c28 <__errno> <== NOT EXECUTED
203e56c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203e570: 10 80 00 24 b 203e600 <rtems_rfs_rtems_file_read+0x114> <== NOT EXECUTED
203e574: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
break;
}
if (size == 0)
203e578: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203e57c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203e580: 02 80 00 20 be 203e600 <rtems_rfs_rtems_file_read+0x114> <== NOT EXECUTED
203e584: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED
break;
if (size > count)
203e588: 38 80 00 02 bgu,a 203e590 <rtems_rfs_rtems_file_read+0xa4><== NOT EXECUTED
203e58c: f4 27 bf fc st %i2, [ %fp + -4 ] <== NOT EXECUTED
size = count;
memcpy (data, rtems_rfs_file_data (file), size);
203e590: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED
203e594: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
203e598: d2 00 a0 24 ld [ %g2 + 0x24 ], %o1 <== NOT EXECUTED
203e59c: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
203e5a0: 40 00 1e ee call 2046158 <memcpy> <== NOT EXECUTED
203e5a4: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED
data += size;
203e5a8: e2 07 bf fc ld [ %fp + -4 ], %l1 <== NOT EXECUTED
count -= size;
read += size;
rc = rtems_rfs_file_io_end (file, size, true);
203e5ac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e5b0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203e5b4: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203e5b8: 7f ff f1 d7 call 203ad14 <rtems_rfs_file_io_end> <== NOT EXECUTED
203e5bc: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED
if (rc > 0)
203e5c0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203e5c4: 14 80 00 05 bg 203e5d8 <rtems_rfs_rtems_file_read+0xec> <== NOT EXECUTED
203e5c8: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
if (size > count)
size = count;
memcpy (data, rtems_rfs_file_data (file), size);
data += size;
203e5cc: b2 06 40 11 add %i1, %l1, %i1 <== NOT EXECUTED
count -= size;
203e5d0: 10 80 00 07 b 203e5ec <rtems_rfs_rtems_file_read+0x100> <== NOT EXECUTED
203e5d4: 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);
203e5d8: 40 00 11 94 call 2042c28 <__errno> <== NOT EXECUTED
203e5dc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203e5e0: 10 80 00 08 b 203e600 <rtems_rfs_rtems_file_read+0x114> <== NOT EXECUTED
203e5e4: e6 22 00 00 st %l3, [ %o0 ] <== NOT EXECUTED
{
while (count)
{
size_t size;
rc = rtems_rfs_file_io_start (file, &size, true);
203e5e8: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
203e5ec: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203e5f0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
pos = iop->offset;
if (pos < rtems_rfs_file_size (file))
{
while (count)
203e5f4: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
203e5f8: 12 bf ff d6 bne 203e550 <rtems_rfs_rtems_file_read+0x64> <== NOT EXECUTED
203e5fc: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
break;
}
}
}
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
203e600: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203e604: 7f ff fe d3 call 203e150 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203e608: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
return read;
}
203e60c: 81 c7 e0 08 ret <== NOT EXECUTED
203e610: 81 e8 00 00 restore <== NOT EXECUTED
0203e360 <rtems_rfs_rtems_file_write>:
*/
ssize_t
rtems_rfs_rtems_file_write (rtems_libio_t* iop,
const void* buffer,
size_t count)
{
203e360: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
203e364: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED
203e368: 92 10 20 00 clr %o1 <== NOT EXECUTED
203e36c: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203e370: 94 10 20 00 clr %o2 <== NOT EXECUTED
203e374: 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)
{
203e378: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
203e37c: c2 00 60 7c ld [ %g1 + 0x7c ], %g1 <== NOT EXECUTED
203e380: 7f ff 39 dc call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
203e384: 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))
203e388: 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;
203e38c: e4 1e 20 10 ldd [ %i0 + 0x10 ], %l2 <== NOT EXECUTED
203e390: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
203e394: 7f ff e8 f1 call 2038758 <rtems_rfs_block_get_size> <== NOT EXECUTED
203e398: 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))
203e39c: 80 a2 00 12 cmp %o0, %l2 <== NOT EXECUTED
203e3a0: 38 80 00 19 bgu,a 203e404 <rtems_rfs_rtems_file_write+0xa4><== NOT EXECUTED
203e3a4: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203e3a8: 80 a2 00 12 cmp %o0, %l2 <== NOT EXECUTED
203e3ac: 12 80 00 06 bne 203e3c4 <rtems_rfs_rtems_file_write+0x64> <== NOT EXECUTED
203e3b0: 86 84 e0 01 addcc %l3, 1, %g3 <== NOT EXECUTED
203e3b4: 80 a2 40 13 cmp %o1, %l3 <== NOT EXECUTED
203e3b8: 38 80 00 13 bgu,a 203e404 <rtems_rfs_rtems_file_write+0xa4><== NOT EXECUTED
203e3bc: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
{
rc = rtems_rfs_file_set_size (file, pos + 1);
203e3c0: 86 84 e0 01 addcc %l3, 1, %g3 <== NOT EXECUTED
203e3c4: 84 44 a0 00 addx %l2, 0, %g2 <== NOT EXECUTED
203e3c8: 94 10 00 03 mov %g3, %o2 <== NOT EXECUTED
203e3cc: 92 10 00 02 mov %g2, %o1 <== NOT EXECUTED
203e3d0: 7f ff f1 63 call 203a95c <rtems_rfs_file_set_size> <== NOT EXECUTED
203e3d4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc)
203e3d8: a8 92 20 00 orcc %o0, 0, %l4 <== NOT EXECUTED
203e3dc: 02 80 00 0a be 203e404 <rtems_rfs_rtems_file_write+0xa4> <== NOT EXECUTED
203e3e0: 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);
203e3e4: 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));
203e3e8: 7f ff ff 5a call 203e150 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203e3ec: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("file-write: write extend", rc);
203e3f0: 40 00 12 0e call 2042c28 <__errno> <== NOT EXECUTED
203e3f4: 01 00 00 00 nop <== NOT EXECUTED
203e3f8: e8 22 00 00 st %l4, [ %o0 ] <== NOT EXECUTED
203e3fc: 81 c7 e0 08 ret <== NOT EXECUTED
203e400: 81 e8 00 00 restore <== NOT EXECUTED
}
}
rtems_rfs_file_set_bpos (file, pos);
203e404: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
203e408: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
203e40c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203e410: 96 04 20 10 add %l0, 0x10, %o3 <== NOT EXECUTED
203e414: 7f ff e8 a2 call 203869c <rtems_rfs_block_get_bpos> <== NOT EXECUTED
203e418: b0 10 20 00 clr %i0 <== NOT EXECUTED
while (count)
203e41c: 10 80 00 25 b 203e4b0 <rtems_rfs_rtems_file_write+0x150> <== NOT EXECUTED
203e420: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED
{
size_t size = count;
rc = rtems_rfs_file_io_start (file, &size, false);
203e424: 7f ff f0 ea call 203a7cc <rtems_rfs_file_io_start> <== NOT EXECUTED
203e428: f4 27 bf fc st %i2, [ %fp + -4 ] <== NOT EXECUTED
}
if (size > count)
size = count;
memcpy (rtems_rfs_file_data (file), data, size);
203e42c: 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)
203e430: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203e434: 02 80 00 06 be 203e44c <rtems_rfs_rtems_file_write+0xec> <== NOT EXECUTED
203e438: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
{
write = rtems_rfs_rtems_error ("file-write: write open", rc);
203e43c: 40 00 11 fb call 2042c28 <__errno> <== NOT EXECUTED
203e440: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203e444: 10 80 00 20 b 203e4c4 <rtems_rfs_rtems_file_write+0x164> <== NOT EXECUTED
203e448: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
break;
}
if (size > count)
203e44c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203e450: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED
203e454: 38 80 00 02 bgu,a 203e45c <rtems_rfs_rtems_file_write+0xfc><== NOT EXECUTED
203e458: f4 27 bf fc st %i2, [ %fp + -4 ] <== NOT EXECUTED
size = count;
memcpy (rtems_rfs_file_data (file), data, size);
203e45c: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED
203e460: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
203e464: d0 00 a0 24 ld [ %g2 + 0x24 ], %o0 <== NOT EXECUTED
203e468: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
203e46c: 40 00 1f 3b call 2046158 <memcpy> <== NOT EXECUTED
203e470: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED
data += size;
203e474: e4 07 bf fc ld [ %fp + -4 ], %l2 <== NOT EXECUTED
count -= size;
write += size;
rc = rtems_rfs_file_io_end (file, size, false);
203e478: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e47c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203e480: 94 10 20 00 clr %o2 <== NOT EXECUTED
203e484: 7f ff f2 24 call 203ad14 <rtems_rfs_file_io_end> <== NOT EXECUTED
203e488: b0 06 00 12 add %i0, %l2, %i0 <== NOT EXECUTED
if (rc)
203e48c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203e490: 02 80 00 06 be 203e4a8 <rtems_rfs_rtems_file_write+0x148> <== NOT EXECUTED
203e494: a8 10 00 08 mov %o0, %l4 <== NOT EXECUTED
{
write = rtems_rfs_rtems_error ("file-write: write close", rc);
203e498: 40 00 11 e4 call 2042c28 <__errno> <== NOT EXECUTED
203e49c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203e4a0: 10 80 00 09 b 203e4c4 <rtems_rfs_rtems_file_write+0x164> <== NOT EXECUTED
203e4a4: e8 22 00 00 st %l4, [ %o0 ] <== NOT EXECUTED
if (size > count)
size = count;
memcpy (rtems_rfs_file_data (file), data, size);
data += size;
203e4a8: b2 06 40 12 add %i1, %l2, %i1 <== NOT EXECUTED
count -= size;
203e4ac: 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);
203e4b0: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203e4b4: 94 10 20 00 clr %o2 <== NOT EXECUTED
}
}
rtems_rfs_file_set_bpos (file, pos);
while (count)
203e4b8: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
203e4bc: 12 bf ff da bne 203e424 <rtems_rfs_rtems_file_write+0xc4> <== NOT EXECUTED
203e4c0: 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);
203e4c4: d2 04 20 1c ld [ %l0 + 0x1c ], %o1 <== NOT EXECUTED
203e4c8: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
203e4cc: 7f ff e8 a3 call 2038758 <rtems_rfs_block_get_size> <== NOT EXECUTED
203e4d0: 92 02 60 84 add %o1, 0x84, %o1 <== NOT EXECUTED
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
203e4d4: 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);
203e4d8: d0 3c 60 08 std %o0, [ %l1 + 8 ] <== NOT EXECUTED
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
203e4dc: 7f ff ff 1d call 203e150 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203e4e0: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
return write;
}
203e4e4: 81 c7 e0 08 ret <== NOT EXECUTED
203e4e8: 81 e8 00 00 restore <== NOT EXECUTED
02020f3c <rtems_rfs_rtems_freenodinfo>:
int
rtems_rfs_rtems_freenodinfo (rtems_filesystem_location_info_t* pathloc)
{
return 0;
}
2020f3c: 81 c3 e0 08 retl <== NOT EXECUTED
2020f40: 90 10 20 00 clr %o0 ! 0 <PROM_START> <== NOT EXECUTED
02022580 <rtems_rfs_rtems_imode>:
{
/*
* Mapping matches RTEMS so no need to change.
*/
return mode;
}
2022580: 81 c3 e0 08 retl <== NOT EXECUTED
0202133c <rtems_rfs_rtems_initialise>:
*/
int
rtems_rfs_rtems_initialise (rtems_filesystem_mount_table_entry_t* mt_entry,
const void* data)
{
202133c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
/*
* Parse the options the user specifiies.
*/
while (options)
{
printf ("options=%s\n", options);
2021340: 2b 00 81 88 sethi %hi(0x2062000), %l5 <== NOT EXECUTED
if (strncmp (options, "hold-bitmaps",
2021344: 29 00 81 88 sethi %hi(0x2062000), %l4 <== NOT EXECUTED
sizeof ("hold-bitmaps") - 1) == 0)
flags |= RTEMS_RFS_FS_BITMAPS_HOLD;
else if (strncmp (options, "no-local-cache",
2021348: 27 00 81 88 sethi %hi(0x2062000), %l3 <== NOT EXECUTED
sizeof ("no-local-cache") - 1) == 0)
flags |= RTEMS_RFS_FS_NO_LOCAL_CACHE;
else if (strncmp (options, "max-held-bufs",
202134c: 21 00 81 88 sethi %hi(0x2062000), %l0 <== NOT EXECUTED
/*
* Parse the options the user specifiies.
*/
while (options)
{
printf ("options=%s\n", options);
2021350: aa 15 61 f0 or %l5, 0x1f0, %l5 <== NOT EXECUTED
if (strncmp (options, "hold-bitmaps",
2021354: a8 15 22 00 or %l4, 0x200, %l4 <== NOT EXECUTED
sizeof ("hold-bitmaps") - 1) == 0)
flags |= RTEMS_RFS_FS_BITMAPS_HOLD;
else if (strncmp (options, "no-local-cache",
2021358: a6 14 e2 10 or %l3, 0x210, %l3 <== NOT EXECUTED
sizeof ("no-local-cache") - 1) == 0)
flags |= RTEMS_RFS_FS_NO_LOCAL_CACHE;
else if (strncmp (options, "max-held-bufs",
202135c: a0 14 22 20 or %l0, 0x220, %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;
2021360: a4 10 20 05 mov 5, %l2 <== NOT EXECUTED
int rc;
/*
* Parse the options the user specifiies.
*/
while (options)
2021364: 10 80 00 2e b 202141c <rtems_rfs_rtems_initialise+0xe0> <== NOT EXECUTED
2021368: a2 10 20 00 clr %l1 <== NOT EXECUTED
{
printf ("options=%s\n", options);
202136c: 40 00 98 2a call 2047414 <printf> <== NOT EXECUTED
2021370: 01 00 00 00 nop <== NOT EXECUTED
if (strncmp (options, "hold-bitmaps",
2021374: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
2021378: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
202137c: 40 00 a2 3b call 2049c68 <strncmp> <== NOT EXECUTED
2021380: 94 10 20 0c mov 0xc, %o2 <== NOT EXECUTED
2021384: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2021388: 12 80 00 04 bne 2021398 <rtems_rfs_rtems_initialise+0x5c> <== NOT EXECUTED
202138c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
sizeof ("hold-bitmaps") - 1) == 0)
flags |= RTEMS_RFS_FS_BITMAPS_HOLD;
2021390: 10 80 00 19 b 20213f4 <rtems_rfs_rtems_initialise+0xb8> <== NOT EXECUTED
2021394: a2 14 60 01 or %l1, 1, %l1 <== NOT EXECUTED
else if (strncmp (options, "no-local-cache",
2021398: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
202139c: 40 00 a2 33 call 2049c68 <strncmp> <== NOT EXECUTED
20213a0: 94 10 20 0e mov 0xe, %o2 <== NOT EXECUTED
20213a4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20213a8: 12 80 00 04 bne 20213b8 <rtems_rfs_rtems_initialise+0x7c> <== NOT EXECUTED
20213ac: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
sizeof ("no-local-cache") - 1) == 0)
flags |= RTEMS_RFS_FS_NO_LOCAL_CACHE;
20213b0: 10 80 00 11 b 20213f4 <rtems_rfs_rtems_initialise+0xb8> <== NOT EXECUTED
20213b4: a2 14 60 02 or %l1, 2, %l1 <== NOT EXECUTED
else if (strncmp (options, "max-held-bufs",
20213b8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
20213bc: 40 00 a2 2b call 2049c68 <strncmp> <== NOT EXECUTED
20213c0: 94 10 20 0d mov 0xd, %o2 <== NOT EXECUTED
20213c4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20213c8: 12 80 00 07 bne 20213e4 <rtems_rfs_rtems_initialise+0xa8> <== NOT EXECUTED
20213cc: 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);
20213d0: 90 06 60 0e add %i1, 0xe, %o0 <== NOT EXECUTED
20213d4: 40 00 a7 72 call 204b19c <strtoul> <== NOT EXECUTED
20213d8: 94 10 20 00 clr %o2 <== NOT EXECUTED
20213dc: 10 80 00 06 b 20213f4 <rtems_rfs_rtems_initialise+0xb8> <== NOT EXECUTED
20213e0: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
}
else
return rtems_rfs_rtems_error ("initialise: invalid option", EINVAL);
20213e4: 40 00 86 11 call 2042c28 <__errno> <== NOT EXECUTED
20213e8: 01 00 00 00 nop <== NOT EXECUTED
20213ec: 10 80 00 17 b 2021448 <rtems_rfs_rtems_initialise+0x10c> <== NOT EXECUTED
20213f0: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
options = strchr (options, ',');
20213f4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
20213f8: 40 00 9f 40 call 20490f8 <strchr> <== NOT EXECUTED
20213fc: 92 10 20 2c mov 0x2c, %o1 <== NOT EXECUTED
if (options)
2021400: b2 92 20 00 orcc %o0, 0, %i1 <== NOT EXECUTED
2021404: 02 80 00 09 be 2021428 <rtems_rfs_rtems_initialise+0xec> <== NOT EXECUTED
2021408: b2 06 60 01 inc %i1 <== NOT EXECUTED
{
++options;
if (*options == '\0')
202140c: c2 4e 40 00 ldsb [ %i1 ], %g1 <== NOT EXECUTED
2021410: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2021414: 02 80 00 05 be 2021428 <rtems_rfs_rtems_initialise+0xec> <== NOT EXECUTED
2021418: 01 00 00 00 nop <== NOT EXECUTED
int rc;
/*
* Parse the options the user specifiies.
*/
while (options)
202141c: 92 96 60 00 orcc %i1, 0, %o1 <== NOT EXECUTED
2021420: 12 bf ff d3 bne 202136c <rtems_rfs_rtems_initialise+0x30> <== NOT EXECUTED
2021424: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
if (*options == '\0')
options = NULL;
}
}
rtems = malloc (sizeof (rtems_rfs_rtems_private));
2021428: 7f ff 9d 55 call 200897c <malloc> <== NOT EXECUTED
202142c: 90 10 20 04 mov 4, %o0 <== NOT EXECUTED
if (!rtems)
2021430: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2021434: 12 80 00 07 bne 2021450 <rtems_rfs_rtems_initialise+0x114><== NOT EXECUTED
2021438: 01 00 00 00 nop <== NOT EXECUTED
return rtems_rfs_rtems_error ("initialise: local data", ENOMEM);
202143c: 40 00 85 fb call 2042c28 <__errno> <== NOT EXECUTED
2021440: 01 00 00 00 nop <== NOT EXECUTED
2021444: 82 10 20 0c mov 0xc, %g1 ! c <PROM_START+0xc> <== NOT EXECUTED
2021448: 10 80 00 21 b 20214cc <rtems_rfs_rtems_initialise+0x190> <== NOT EXECUTED
202144c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
memset (rtems, 0, sizeof (rtems_rfs_rtems_private));
rc = rtems_rfs_mutex_create (&rtems->access);
2021450: 40 00 71 cb call 203db7c <rtems_rfs_mutex_create> <== NOT EXECUTED
2021454: c0 24 00 00 clr [ %l0 ] <== NOT EXECUTED
if (rc > 0)
2021458: a6 92 20 00 orcc %o0, 0, %l3 <== NOT EXECUTED
202145c: 24 80 00 09 ble,a 2021480 <rtems_rfs_rtems_initialise+0x144><== NOT EXECUTED
2021460: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED
{
free (rtems);
2021464: 7f ff 9b 7f call 2008260 <free> <== NOT EXECUTED
2021468: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("initialise: cannot create mutex", rc);
202146c: 40 00 85 ef call 2042c28 <__errno> <== NOT EXECUTED
2021470: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2021474: e6 22 00 00 st %l3, [ %o0 ] <== NOT EXECUTED
2021478: 81 c7 e0 08 ret <== NOT EXECUTED
202147c: 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);
2021480: 92 10 20 00 clr %o1 <== NOT EXECUTED
2021484: 7f ff ad 9b call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2021488: 94 10 20 00 clr %o2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
202148c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2021490: 22 80 00 1d be,a 2021504 <rtems_rfs_rtems_initialise+0x1c8><== NOT EXECUTED
2021494: 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);
2021498: 40 00 71 b1 call 203db5c <rtems_rfs_mutex_destroy> <== NOT EXECUTED
202149c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
free (rtems);
20214a0: 7f ff 9b 70 call 2008260 <free> <== NOT EXECUTED
20214a4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("initialise: cannot lock access mutex", rc);
20214a8: 40 00 85 e0 call 2042c28 <__errno> <== NOT EXECUTED
20214ac: 01 00 00 00 nop <== NOT EXECUTED
20214b0: 10 bf ff e6 b 2021448 <rtems_rfs_rtems_initialise+0x10c> <== NOT EXECUTED
20214b4: 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);
20214b8: 7f ff 9b 6a call 2008260 <free> <== NOT EXECUTED
20214bc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("initialise: open", rc);
20214c0: 40 00 85 da call 2042c28 <__errno> <== NOT EXECUTED
20214c4: 01 00 00 00 nop <== NOT EXECUTED
20214c8: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
20214cc: 81 c7 e0 08 ret <== NOT EXECUTED
20214d0: 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;
20214d4: c2 26 20 1c st %g1, [ %i0 + 0x1c ] <== NOT EXECUTED
mt_entry->mt_fs_root.handlers = &rtems_rfs_rtems_dir_handlers;
20214d8: 03 00 81 9c sethi %hi(0x2067000), %g1 <== NOT EXECUTED
20214dc: 82 10 63 50 or %g1, 0x350, %g1 ! 2067350 <rtems_rfs_rtems_dir_handlers><== NOT EXECUTED
20214e0: c2 26 20 24 st %g1, [ %i0 + 0x24 ] <== NOT EXECUTED
mt_entry->mt_fs_root.ops = &rtems_rfs_ops;
20214e4: 03 00 81 88 sethi %hi(0x2062000), %g1 <== NOT EXECUTED
20214e8: 82 10 62 70 or %g1, 0x270, %g1 ! 2062270 <rtems_rfs_ops> <== NOT EXECUTED
{
free (rtems);
return rtems_rfs_rtems_error ("initialise: open", rc);
}
mt_entry->fs_info = fs;
20214ec: 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;
20214f0: c2 26 20 28 st %g1, [ %i0 + 0x28 ] <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
20214f4: 7f ff fe 9e call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20214f8: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
20214fc: 81 c7 e0 08 ret <== NOT EXECUTED
2021500: 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);
2021504: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2021508: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
202150c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2021510: 40 00 67 b1 call 203b3d4 <rtems_rfs_fs_open> <== NOT EXECUTED
2021514: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
if (rc)
2021518: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
202151c: 12 bf ff e7 bne 20214b8 <rtems_rfs_rtems_initialise+0x17c><== NOT EXECUTED
2021520: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
{
free (rtems);
return rtems_rfs_rtems_error ("initialise: open", rc);
}
mt_entry->fs_info = fs;
2021524: 10 bf ff ec b 20214d4 <rtems_rfs_rtems_initialise+0x198> <== NOT EXECUTED
2021528: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
020215c0 <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)
{
20215c0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (to_loc);
20215c4: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino target = rtems_rfs_rtems_get_pathloc_ino (to_loc);
20215c8: 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);
20215cc: 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);
20215d0: 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);
20215d4: 7f ff fe 5e call 2020f4c <rtems_rfs_rtems_lock> <== NOT EXECUTED
20215d8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = rtems_rfs_link (fs, name, strlen (name), parent, target, false);
20215dc: 40 00 a1 3b call 2049ac8 <strlen> <== NOT EXECUTED
20215e0: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
20215e4: 98 10 00 11 mov %l1, %o4 <== NOT EXECUTED
20215e8: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
20215ec: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
20215f0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20215f4: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
20215f8: 40 00 70 fe call 203d9f0 <rtems_rfs_link> <== NOT EXECUTED
20215fc: 9a 10 20 00 clr %o5 <== NOT EXECUTED
if (rc)
2021600: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2021604: 02 80 00 09 be 2021628 <rtems_rfs_rtems_link+0x68> <== NOT EXECUTED
2021608: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
202160c: 7f ff fe 58 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021610: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("link: linking", rc);
2021614: 40 00 85 85 call 2042c28 <__errno> <== NOT EXECUTED
2021618: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202161c: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2021620: 81 c7 e0 08 ret <== NOT EXECUTED
2021624: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
2021628: 7f ff fe 51 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
202162c: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2021630: 81 c7 e0 08 ret <== NOT EXECUTED
2021634: 81 e8 00 00 restore <== NOT EXECUTED
02020f4c <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);
2020f4c: c2 02 20 7c ld [ %o0 + 0x7c ], %g1 <== NOT EXECUTED
2020f50: 92 10 20 00 clr %o1 <== NOT EXECUTED
2020f54: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
2020f58: 94 10 20 00 clr %o2 <== NOT EXECUTED
2020f5c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2020f60: 7f ff ae e4 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2020f64: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02021808 <rtems_rfs_rtems_mknod>:
int
rtems_rfs_rtems_mknod (const char *name,
mode_t mode,
dev_t dev,
rtems_filesystem_location_info_t *pathloc)
{
2021808: 9d e3 bf 60 save %sp, -160, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
202180c: c2 07 20 10 ld [ %i4 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (pathloc);
2021810: e4 07 00 00 ld [ %i4 ], %l2 <== NOT EXECUTED
rtems_rfs_rtems_mknod (const char *name,
mode_t mode,
dev_t dev,
rtems_filesystem_location_info_t *pathloc)
{
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2021814: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
#else
uid = 0;
gid = 0;
#endif
rtems_rfs_rtems_lock (fs);
2021818: 7f ff fd cd call 2020f4c <rtems_rfs_rtems_lock> <== NOT EXECUTED
202181c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = rtems_rfs_inode_create (fs, parent, name, strlen (name),
2021820: 40 00 a0 aa call 2049ac8 <strlen> <== NOT EXECUTED
2021824: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2021828: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
rtems_rfs_rtems_imode (mode),
202182c: 40 00 03 55 call 2022580 <rtems_rfs_rtems_imode> <== NOT EXECUTED
2021830: 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),
2021834: 82 07 bf fc add %fp, -4, %g1 <== NOT EXECUTED
2021838: 99 2a 20 10 sll %o0, 0x10, %o4 <== NOT EXECUTED
202183c: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
2021840: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2021844: c0 23 a0 5c clr [ %sp + 0x5c ] <== NOT EXECUTED
2021848: c0 23 a0 60 clr [ %sp + 0x60 ] <== NOT EXECUTED
202184c: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
2021850: 99 33 20 10 srl %o4, 0x10, %o4 <== NOT EXECUTED
2021854: c2 23 a0 64 st %g1, [ %sp + 0x64 ] <== NOT EXECUTED
2021858: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202185c: 40 00 6e 40 call 203d15c <rtems_rfs_inode_create> <== NOT EXECUTED
2021860: 9a 10 20 01 mov 1, %o5 <== NOT EXECUTED
rtems_rfs_rtems_imode (mode),
1, uid, gid, &ino);
if (rc > 0)
2021864: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2021868: 14 80 00 49 bg 202198c <rtems_rfs_rtems_mknod+0x184> <== NOT EXECUTED
202186c: 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);
2021870: a2 07 bf d4 add %fp, -44, %l1 <== NOT EXECUTED
2021874: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2021878: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
202187c: 40 00 6d d7 call 203cfd8 <rtems_rfs_inode_open> <== NOT EXECUTED
2021880: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
2021884: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2021888: 04 80 00 09 ble 20218ac <rtems_rfs_rtems_mknod+0xa4> <== NOT EXECUTED
202188c: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
2021890: 7f ff fd b7 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021894: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("mknod: inode open", rc);
2021898: 40 00 84 e4 call 2042c28 <__errno> <== NOT EXECUTED
202189c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20218a0: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
20218a4: 81 c7 e0 08 ret <== NOT EXECUTED
20218a8: 81 e8 00 00 restore <== NOT EXECUTED
}
if (S_ISDIR(mode) || S_ISREG(mode))
20218ac: b2 0e 40 01 and %i1, %g1, %i1 <== NOT EXECUTED
20218b0: 03 00 00 20 sethi %hi(0x8000), %g1 <== NOT EXECUTED
20218b4: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
20218b8: 02 80 00 2f be 2021974 <rtems_rfs_rtems_mknod+0x16c> <== NOT EXECUTED
20218bc: 03 00 00 10 sethi %hi(0x4000), %g1 <== NOT EXECUTED
20218c0: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
20218c4: 02 80 00 2c be 2021974 <rtems_rfs_rtems_mknod+0x16c> <== NOT EXECUTED
20218c8: 03 00 00 18 sethi %hi(0x6000), %g1 <== NOT EXECUTED
{
}
else if (S_ISCHR (mode) || S_ISBLK (mode))
20218cc: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
20218d0: 02 80 00 06 be 20218e8 <rtems_rfs_rtems_mknod+0xe0> <== NOT EXECUTED
20218d4: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
20218d8: 03 00 00 08 sethi %hi(0x2000), %g1 <== NOT EXECUTED
20218dc: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
20218e0: 12 80 00 1a bne 2021948 <rtems_rfs_rtems_mknod+0x140> <== NOT EXECUTED
20218e4: 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);
20218e8: 85 36 a0 18 srl %i2, 0x18, %g2 <== NOT EXECUTED
20218ec: c4 28 60 1c stb %g2, [ %g1 + 0x1c ] <== NOT EXECUTED
20218f0: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
20218f4: 85 36 a0 10 srl %i2, 0x10, %g2 <== NOT EXECUTED
20218f8: c4 28 60 1d stb %g2, [ %g1 + 0x1d ] <== NOT EXECUTED
20218fc: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
2021900: 85 36 a0 08 srl %i2, 8, %g2 <== NOT EXECUTED
2021904: c4 28 60 1e stb %g2, [ %g1 + 0x1e ] <== NOT EXECUTED
2021908: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
202190c: 85 36 e0 18 srl %i3, 0x18, %g2 <== NOT EXECUTED
2021910: f4 28 60 1f stb %i2, [ %g1 + 0x1f ] <== NOT EXECUTED
2021914: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
2021918: 87 36 e0 10 srl %i3, 0x10, %g3 <== NOT EXECUTED
202191c: c4 28 60 20 stb %g2, [ %g1 + 0x20 ] <== NOT EXECUTED
2021920: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
2021924: 85 36 e0 08 srl %i3, 8, %g2 <== NOT EXECUTED
2021928: c6 28 60 21 stb %g3, [ %g1 + 0x21 ] <== NOT EXECUTED
202192c: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
2021930: c4 28 60 22 stb %g2, [ %g1 + 0x22 ] <== NOT EXECUTED
2021934: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
2021938: f6 28 60 23 stb %i3, [ %g1 + 0x23 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
202193c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2021940: 10 80 00 0d b 2021974 <rtems_rfs_rtems_mknod+0x16c> <== NOT EXECUTED
2021944: 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);
2021948: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
202194c: 40 00 6d 7a call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
2021950: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
2021954: 7f ff fd 86 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021958: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("mknod: bad mode", EINVAL);
202195c: 40 00 84 b3 call 2042c28 <__errno> <== NOT EXECUTED
2021960: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2021964: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
2021968: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202196c: 81 c7 e0 08 ret <== NOT EXECUTED
2021970: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = rtems_rfs_inode_close (fs, &inode);
2021974: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2021978: 40 00 6d 6f call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
202197c: 92 07 bf d4 add %fp, -44, %o1 <== NOT EXECUTED
if (rc > 0)
2021980: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2021984: 04 80 00 09 ble 20219a8 <rtems_rfs_rtems_mknod+0x1a0> <== NOT EXECUTED
2021988: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
202198c: 7f ff fd 78 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021990: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("mknod: closing inode", rc);
2021994: 40 00 84 a5 call 2042c28 <__errno> <== NOT EXECUTED
2021998: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202199c: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
20219a0: 81 c7 e0 08 ret <== NOT EXECUTED
20219a4: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
20219a8: 7f ff fd 71 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20219ac: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
20219b0: 81 c7 e0 08 ret <== NOT EXECUTED
20219b4: 81 e8 00 00 restore <== NOT EXECUTED
02022588 <rtems_rfs_rtems_mode>:
{
/*
* Mapping matches RTEMS so no need to change.
*/
return imode;
}
2022588: 81 c3 e0 08 retl <== NOT EXECUTED
0202122c <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)
{
202122c: 9d e3 bf 78 save %sp, -136, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2021230: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
2021234: 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);
2021238: 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);
202123c: 7f ff ff 44 call 2020f4c <rtems_rfs_rtems_lock> <== NOT EXECUTED
2021240: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
2021244: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2021248: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202124c: 94 07 bf d8 add %fp, -40, %o2 <== NOT EXECUTED
2021250: 40 00 6f 62 call 203cfd8 <rtems_rfs_inode_open> <== NOT EXECUTED
2021254: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
2021258: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
202125c: 14 80 00 1d bg 20212d0 <rtems_rfs_rtems_node_type+0xa4> <== NOT EXECUTED
2021260: 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))
2021264: 05 00 00 3c sethi %hi(0xf000), %g2 <== NOT EXECUTED
2021268: c2 08 60 02 ldub [ %g1 + 2 ], %g1 <== NOT EXECUTED
202126c: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2021270: 82 08 40 02 and %g1, %g2, %g1 <== NOT EXECUTED
2021274: 05 00 00 10 sethi %hi(0x4000), %g2 <== NOT EXECUTED
2021278: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
202127c: 02 80 00 0f be 20212b8 <rtems_rfs_rtems_node_type+0x8c> <== NOT EXECUTED
2021280: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
type = RTEMS_FILESYSTEM_DIRECTORY;
else if (RTEMS_RFS_S_ISLNK (mode))
2021284: 05 00 00 28 sethi %hi(0xa000), %g2 <== NOT EXECUTED
2021288: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
202128c: 02 80 00 0b be 20212b8 <rtems_rfs_rtems_node_type+0x8c> <== NOT EXECUTED
2021290: 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))
2021294: 05 00 00 08 sethi %hi(0x2000), %g2 <== NOT EXECUTED
2021298: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
202129c: 02 80 00 07 be 20212b8 <rtems_rfs_rtems_node_type+0x8c> <== NOT EXECUTED
20212a0: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
20212a4: 05 00 00 18 sethi %hi(0x6000), %g2 <== NOT EXECUTED
20212a8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
20212ac: 12 80 00 03 bne 20212b8 <rtems_rfs_rtems_node_type+0x8c> <== NOT EXECUTED
20212b0: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
20212b4: 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);
20212b8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20212bc: 40 00 6f 1e call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
20212c0: 92 07 bf d8 add %fp, -40, %o1 <== NOT EXECUTED
if (rc > 0)
20212c4: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
20212c8: 04 80 00 09 ble 20212ec <rtems_rfs_rtems_node_type+0xc0> <== NOT EXECUTED
20212cc: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
20212d0: 7f ff ff 27 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20212d4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("node_type: closing inode", rc);
20212d8: 40 00 86 54 call 2042c28 <__errno> <== NOT EXECUTED
20212dc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20212e0: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
20212e4: 81 c7 e0 08 ret <== NOT EXECUTED
20212e8: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
20212ec: 7f ff ff 20 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20212f0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return type;
}
20212f4: 81 c7 e0 08 ret <== NOT EXECUTED
20212f8: 81 e8 00 00 restore <== NOT EXECUTED
02021ce0 <rtems_rfs_rtems_readlink>:
int
rtems_rfs_rtems_readlink (rtems_filesystem_location_info_t* pathloc,
char* buf,
size_t bufsize)
{
2021ce0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2021ce4: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
2021ce8: 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);
2021cec: 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);
2021cf0: 7f ff fc 97 call 2020f4c <rtems_rfs_rtems_lock> <== NOT EXECUTED
2021cf4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = rtems_rfs_symlink_read (fs, ino, buf, bufsize, &length);
2021cf8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2021cfc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2021d00: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
2021d04: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
2021d08: 40 00 6d ba call 203d3f0 <rtems_rfs_symlink_read> <== NOT EXECUTED
2021d0c: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
if (rc)
2021d10: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2021d14: 02 80 00 09 be 2021d38 <rtems_rfs_rtems_readlink+0x58> <== NOT EXECUTED
2021d18: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
2021d1c: 7f ff fc 94 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021d20: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("readlink: reading link", rc);
2021d24: 40 00 83 c1 call 2042c28 <__errno> <== NOT EXECUTED
2021d28: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2021d2c: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2021d30: 81 c7 e0 08 ret <== NOT EXECUTED
2021d34: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
2021d38: 7f ff fc 8d call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021d3c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return (int) length;
2021d40: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED
}
2021d44: 81 c7 e0 08 ret <== NOT EXECUTED
2021d48: 81 e8 00 00 restore <== NOT EXECUTED
02021638 <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)
{
2021638: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (old_loc);
202163c: 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);
2021640: 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);
2021644: 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);
2021648: 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);
202164c: 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);
2021650: 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);
2021654: 7f ff fe 3e call 2020f4c <rtems_rfs_rtems_lock> <== NOT EXECUTED
2021658: 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);
202165c: 40 00 a1 1b call 2049ac8 <strlen> <== NOT EXECUTED
2021660: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
2021664: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
2021668: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
202166c: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
2021670: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2021674: 98 10 00 11 mov %l1, %o4 <== NOT EXECUTED
2021678: 40 00 70 de call 203d9f0 <rtems_rfs_link> <== NOT EXECUTED
202167c: 9a 10 20 01 mov 1, %o5 <== NOT EXECUTED
if (rc)
2021680: a8 92 20 00 orcc %o0, 0, %l4 <== NOT EXECUTED
2021684: 02 80 00 09 be 20216a8 <rtems_rfs_rtems_rename+0x70> <== NOT EXECUTED
2021688: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
202168c: 7f ff fe 38 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021690: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("rename: linking", rc);
2021694: 40 00 85 65 call 2042c28 <__errno> <== NOT EXECUTED
2021698: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202169c: e8 22 00 00 st %l4, [ %o0 ] <== NOT EXECUTED
20216a0: 81 c7 e0 08 ret <== NOT EXECUTED
20216a4: 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,
20216a8: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
20216ac: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
20216b0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20216b4: 40 00 70 41 call 203d7b8 <rtems_rfs_unlink> <== NOT EXECUTED
20216b8: 98 10 20 02 mov 2, %o4 <== NOT EXECUTED
rtems_rfs_unlink_dir_allowed);
if (rc)
20216bc: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
20216c0: 02 80 00 09 be 20216e4 <rtems_rfs_rtems_rename+0xac> <== NOT EXECUTED
20216c4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
20216c8: 7f ff fe 29 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20216cc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("rename: unlinking", rc);
20216d0: 40 00 85 56 call 2042c28 <__errno> <== NOT EXECUTED
20216d4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20216d8: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
20216dc: 81 c7 e0 08 ret <== NOT EXECUTED
20216e0: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
20216e4: 7f ff fe 22 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20216e8: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
20216ec: 81 c7 e0 08 ret <== NOT EXECUTED
20216f0: 81 e8 00 00 restore <== NOT EXECUTED
020216f4 <rtems_rfs_rtems_rmnod>:
* @return int
*/
int
rtems_rfs_rtems_rmnod (rtems_filesystem_location_info_t* parent_pathloc,
rtems_filesystem_location_info_t* pathloc)
{
20216f4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
20216f8: 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);
20216fc: 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);
2021700: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_pathloc);
2021704: e6 06 00 00 ld [ %i0 ], %l3 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
2021708: 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);
202170c: 7f ff fe 10 call 2020f4c <rtems_rfs_rtems_lock> <== NOT EXECUTED
2021710: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = rtems_rfs_unlink (fs, parent, ino, doff, rtems_rfs_unlink_dir_denied);
2021714: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
2021718: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202171c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2021720: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2021724: 40 00 70 25 call 203d7b8 <rtems_rfs_unlink> <== NOT EXECUTED
2021728: 98 10 20 00 clr %o4 <== NOT EXECUTED
if (rc)
202172c: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2021730: 02 80 00 09 be 2021754 <rtems_rfs_rtems_rmnod+0x60> <== NOT EXECUTED
2021734: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
2021738: 7f ff fe 0d call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
202173c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("rmnod: unlinking", rc);
2021740: 40 00 85 3a call 2042c28 <__errno> <== NOT EXECUTED
2021744: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2021748: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
202174c: 81 c7 e0 08 ret <== NOT EXECUTED
2021750: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
2021754: 7f ff fe 06 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021758: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
202175c: 81 c7 e0 08 ret <== NOT EXECUTED
2021760: 81 e8 00 00 restore <== NOT EXECUTED
02022590 <rtems_rfs_rtems_set_handlers>:
*/
bool
rtems_rfs_rtems_set_handlers (rtems_filesystem_location_info_t* loc,
rtems_rfs_inode_handle* inode)
{
2022590: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
2022594: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
2022598: c4 08 60 03 ldub [ %g1 + 3 ], %g2 <== NOT EXECUTED
202259c: d2 08 60 02 ldub [ %g1 + 2 ], %o1 <== NOT EXECUTED
20225a0: 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))
20225a4: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
20225a8: 92 12 40 02 or %o1, %g2, %o1 <== NOT EXECUTED
20225ac: 05 00 00 10 sethi %hi(0x4000), %g2 <== NOT EXECUTED
20225b0: 93 2a 60 10 sll %o1, 0x10, %o1 <== NOT EXECUTED
20225b4: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED
20225b8: 82 0a 40 01 and %o1, %g1, %g1 <== NOT EXECUTED
20225bc: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
20225c0: 12 80 00 05 bne 20225d4 <rtems_rfs_rtems_set_handlers+0x44><== NOT EXECUTED
20225c4: c0 26 20 08 clr [ %i0 + 8 ] <== NOT EXECUTED
loc->handlers = rtems_rfs_rtems_handlers (dir);
20225c8: 03 00 81 9c sethi %hi(0x2067000), %g1 <== NOT EXECUTED
20225cc: 10 80 00 17 b 2022628 <rtems_rfs_rtems_set_handlers+0x98> <== NOT EXECUTED
20225d0: 82 10 63 50 or %g1, 0x350, %g1 ! 2067350 <rtems_rfs_rtems_dir_handlers><== NOT EXECUTED
else if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK(mode))
20225d4: 05 00 00 18 sethi %hi(0x6000), %g2 <== NOT EXECUTED
20225d8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
20225dc: 02 80 00 05 be 20225f0 <rtems_rfs_rtems_set_handlers+0x60><== NOT EXECUTED
20225e0: 05 00 00 08 sethi %hi(0x2000), %g2 <== NOT EXECUTED
20225e4: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
20225e8: 12 80 00 05 bne 20225fc <rtems_rfs_rtems_set_handlers+0x6c><== NOT EXECUTED
20225ec: 05 00 00 28 sethi %hi(0xa000), %g2 <== NOT EXECUTED
loc->handlers = rtems_rfs_rtems_handlers (device);
20225f0: 03 00 81 9c sethi %hi(0x2067000), %g1 <== NOT EXECUTED
20225f4: 10 80 00 0d b 2022628 <rtems_rfs_rtems_set_handlers+0x98> <== NOT EXECUTED
20225f8: 82 10 63 18 or %g1, 0x318, %g1 ! 2067318 <rtems_rfs_rtems_device_handlers><== NOT EXECUTED
else if (RTEMS_RFS_S_ISLNK (mode))
20225fc: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022600: 12 80 00 05 bne 2022614 <rtems_rfs_rtems_set_handlers+0x84><== NOT EXECUTED
2022604: 05 00 00 20 sethi %hi(0x8000), %g2 <== NOT EXECUTED
loc->handlers = rtems_rfs_rtems_handlers (link);
2022608: 03 00 81 88 sethi %hi(0x2062000), %g1 <== NOT EXECUTED
202260c: 10 80 00 07 b 2022628 <rtems_rfs_rtems_set_handlers+0x98> <== NOT EXECUTED
2022610: 82 10 62 38 or %g1, 0x238, %g1 ! 2062238 <rtems_rfs_rtems_link_handlers><== NOT EXECUTED
else if (RTEMS_RFS_S_ISREG (mode))
2022614: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022618: 12 80 00 07 bne 2022634 <rtems_rfs_rtems_set_handlers+0xa4><== NOT EXECUTED
202261c: 11 00 81 88 sethi %hi(0x2062000), %o0 <== NOT EXECUTED
loc->handlers = rtems_rfs_rtems_handlers (file);
2022620: 03 00 81 9c sethi %hi(0x2067000), %g1 <== NOT EXECUTED
2022624: 82 10 63 88 or %g1, 0x388, %g1 ! 2067388 <rtems_rfs_rtems_file_handlers><== NOT EXECUTED
2022628: c2 26 20 08 st %g1, [ %i0 + 8 ] <== NOT EXECUTED
202262c: 81 c7 e0 08 ret <== NOT EXECUTED
2022630: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED
else
{
printf ("rtems-rfs: mode type unknown: %04x\n", mode);
2022634: b0 10 20 00 clr %i0 <== NOT EXECUTED
2022638: 40 00 93 77 call 2047414 <printf> <== NOT EXECUTED
202263c: 90 12 22 b8 or %o0, 0x2b8, %o0 <== NOT EXECUTED
return false;
}
return true;
}
2022640: 81 c7 e0 08 ret <== NOT EXECUTED
2022644: 81 e8 00 00 restore <== NOT EXECUTED
020212fc <rtems_rfs_rtems_shutdown>:
/**
* Shutdown the file system.
*/
int
rtems_rfs_rtems_shutdown (rtems_filesystem_mount_table_entry_t* mt_entry)
{
20212fc: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = mt_entry->fs_info;
2021300: 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);
2021304: 40 00 68 16 call 203b35c <rtems_rfs_fs_close> <== NOT EXECUTED
2021308: e2 02 20 7c ld [ %o0 + 0x7c ], %l1 <== NOT EXECUTED
202130c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
rtems_rfs_mutex_destroy (&rtems->access);
2021310: 40 00 72 13 call 203db5c <rtems_rfs_mutex_destroy> <== NOT EXECUTED
2021314: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
free (rtems);
2021318: 7f ff 9b d2 call 2008260 <free> <== NOT EXECUTED
202131c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("shutdown: close", rc);
2021320: 40 00 86 42 call 2042c28 <__errno> <== NOT EXECUTED
2021324: 01 00 00 00 nop <== NOT EXECUTED
}
2021328: 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);
202132c: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED
}
2021330: b0 60 20 00 subx %g0, 0, %i0 <== NOT EXECUTED
2021334: 81 c7 e0 08 ret <== NOT EXECUTED
2021338: 81 e8 00 00 restore <== NOT EXECUTED
020219b8 <rtems_rfs_rtems_stat>:
*/
int
rtems_rfs_rtems_stat (rtems_filesystem_location_info_t* pathloc,
struct stat* buf)
{
20219b8: 9d e3 bf 78 save %sp, -136, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
20219bc: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
20219c0: 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);
20219c4: 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);
20219c8: 7f ff fd 61 call 2020f4c <rtems_rfs_rtems_lock> <== NOT EXECUTED
20219cc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
20219d0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20219d4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20219d8: 94 07 bf d8 add %fp, -40, %o2 <== NOT EXECUTED
20219dc: 40 00 6d 7f call 203cfd8 <rtems_rfs_inode_open> <== NOT EXECUTED
20219e0: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc)
20219e4: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
20219e8: 02 80 00 09 be 2021a0c <rtems_rfs_rtems_stat+0x54> <== NOT EXECUTED
20219ec: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
20219f0: 7f ff fd 5f call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20219f4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("stat: opening inode", rc);
20219f8: 40 00 84 8c call 2042c28 <__errno> <== NOT EXECUTED
20219fc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2021a00: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
2021a04: 81 c7 e0 08 ret <== NOT EXECUTED
2021a08: 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))
2021a0c: 07 00 00 18 sethi %hi(0x6000), %g3 <== NOT EXECUTED
2021a10: c4 08 60 03 ldub [ %g1 + 3 ], %g2 <== NOT EXECUTED
2021a14: d0 08 60 02 ldub [ %g1 + 2 ], %o0 <== NOT EXECUTED
2021a18: 91 2a 20 08 sll %o0, 8, %o0 <== NOT EXECUTED
2021a1c: 90 12 00 02 or %o0, %g2, %o0 <== NOT EXECUTED
2021a20: 05 00 00 3c sethi %hi(0xf000), %g2 <== NOT EXECUTED
2021a24: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
2021a28: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED
2021a2c: 84 0a 00 02 and %o0, %g2, %g2 <== NOT EXECUTED
2021a30: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED
2021a34: 22 80 00 07 be,a 2021a50 <rtems_rfs_rtems_stat+0x98> <== NOT EXECUTED
2021a38: da 08 60 1c ldub [ %g1 + 0x1c ], %o5 <== NOT EXECUTED
2021a3c: 07 00 00 08 sethi %hi(0x2000), %g3 <== NOT EXECUTED
2021a40: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED
2021a44: 32 80 00 1a bne,a 2021aac <rtems_rfs_rtems_stat+0xf4> <== NOT EXECUTED
2021a48: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
2021a4c: 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]);
2021a50: 82 00 60 1c add %g1, 0x1c, %g1 <== NOT EXECUTED
2021a54: d4 08 60 04 ldub [ %g1 + 4 ], %o2 <== NOT EXECUTED
2021a58: d6 08 60 07 ldub [ %g1 + 7 ], %o3 <== NOT EXECUTED
2021a5c: d8 08 60 06 ldub [ %g1 + 6 ], %o4 <== NOT EXECUTED
2021a60: d2 08 60 05 ldub [ %g1 + 5 ], %o1 <== NOT EXECUTED
2021a64: c4 08 60 02 ldub [ %g1 + 2 ], %g2 <== NOT EXECUTED
2021a68: c8 08 60 03 ldub [ %g1 + 3 ], %g4 <== NOT EXECUTED
2021a6c: c6 08 60 01 ldub [ %g1 + 1 ], %g3 <== NOT EXECUTED
2021a70: 95 2a a0 18 sll %o2, 0x18, %o2 <== NOT EXECUTED
2021a74: 83 2a 60 10 sll %o1, 0x10, %g1 <== NOT EXECUTED
2021a78: 99 2b 20 08 sll %o4, 8, %o4 <== NOT EXECUTED
2021a7c: 82 12 80 01 or %o2, %g1, %g1 <== NOT EXECUTED
2021a80: 82 10 40 0b or %g1, %o3, %g1 <== NOT EXECUTED
2021a84: 82 10 40 0c or %g1, %o4, %g1 <== NOT EXECUTED
2021a88: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
{
buf->st_rdev =
2021a8c: c2 26 60 1c st %g1, [ %i1 + 0x1c ] <== NOT EXECUTED
2021a90: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2021a94: 83 2b 60 18 sll %o5, 0x18, %g1 <== NOT EXECUTED
2021a98: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
2021a9c: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
2021aa0: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2021aa4: 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);
2021aa8: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
buf->st_ino = ino;
2021aac: 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);
2021ab0: c4 18 40 00 ldd [ %g1 ], %g2 <== NOT EXECUTED
buf->st_ino = ino;
buf->st_mode = rtems_rfs_rtems_mode (mode);
2021ab4: 40 00 02 b5 call 2022588 <rtems_rfs_rtems_mode> <== NOT EXECUTED
2021ab8: 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);
2021abc: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
2021ac0: d0 26 60 0c st %o0, [ %i1 + 0xc ] <== NOT EXECUTED
2021ac4: c6 08 60 01 ldub [ %g1 + 1 ], %g3 <== NOT EXECUTED
2021ac8: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED
if (links == 0xffff)
2021acc: 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);
2021ad0: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2021ad4: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
if (links == 0xffff)
2021ad8: 87 28 a0 10 sll %g2, 0x10, %g3 <== NOT EXECUTED
2021adc: 87 30 e0 10 srl %g3, 0x10, %g3 <== NOT EXECUTED
2021ae0: 86 39 00 03 xnor %g4, %g3, %g3 <== NOT EXECUTED
2021ae4: 80 a0 00 03 cmp %g0, %g3 <== NOT EXECUTED
2021ae8: 86 60 20 00 subx %g0, 0, %g3 <== NOT EXECUTED
2021aec: 84 08 80 03 and %g2, %g3, %g2 <== NOT EXECUTED
buf->st_nlink = rtems_rfs_inode_get_links (&inode);
2021af0: c4 36 60 10 sth %g2, [ %i1 + 0x10 ] <== NOT EXECUTED
buf->st_uid = rtems_rfs_inode_get_uid (&inode);
2021af4: c6 08 60 07 ldub [ %g1 + 7 ], %g3 <== NOT EXECUTED
2021af8: 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);
2021afc: 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);
2021b00: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2021b04: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
2021b08: c4 36 60 12 sth %g2, [ %i1 + 0x12 ] <== NOT EXECUTED
buf->st_gid = rtems_rfs_inode_get_gid (&inode);
2021b0c: c4 08 60 05 ldub [ %g1 + 5 ], %g2 <== NOT EXECUTED
2021b10: c2 08 60 04 ldub [ %g1 + 4 ], %g1 <== NOT EXECUTED
2021b14: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
2021b18: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED
2021b1c: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2021b20: 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);
2021b24: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2021b28: 40 00 63 1c call 203a798 <rtems_rfs_file_get_shared> <== NOT EXECUTED
2021b2c: c2 36 60 14 sth %g1, [ %i1 + 0x14 ] <== NOT EXECUTED
if (shared)
2021b30: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2021b34: 02 80 00 17 be 2021b90 <rtems_rfs_rtems_stat+0x1d8> <== NOT EXECUTED
2021b38: c6 06 60 0c ld [ %i1 + 0xc ], %g3 <== NOT EXECUTED
{
buf->st_atime = rtems_rfs_file_shared_get_atime (shared);
2021b3c: 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))
2021b40: 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);
2021b44: c2 26 60 28 st %g1, [ %i1 + 0x28 ] <== NOT EXECUTED
buf->st_mtime = rtems_rfs_file_shared_get_mtime (shared);
2021b48: 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))
2021b4c: 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);
2021b50: c2 26 60 30 st %g1, [ %i1 + 0x30 ] <== NOT EXECUTED
buf->st_ctime = rtems_rfs_file_shared_get_ctime (shared);
2021b54: 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))
2021b58: 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);
2021b5c: c2 26 60 38 st %g1, [ %i1 + 0x38 ] <== NOT EXECUTED
buf->st_blocks = rtems_rfs_file_shared_get_block_count (shared);
2021b60: c2 02 20 84 ld [ %o0 + 0x84 ], %g1 <== NOT EXECUTED
if (S_ISLNK (buf->st_mode))
2021b64: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED
2021b68: 12 80 00 05 bne 2021b7c <rtems_rfs_rtems_stat+0x1c4> <== NOT EXECUTED
2021b6c: c2 26 60 44 st %g1, [ %i1 + 0x44 ] <== NOT EXECUTED
buf->st_size = rtems_rfs_file_shared_get_block_offset (shared);
2021b70: c2 12 20 8a lduh [ %o0 + 0x8a ], %g1 <== NOT EXECUTED
2021b74: 10 80 00 43 b 2021c80 <rtems_rfs_rtems_stat+0x2c8> <== NOT EXECUTED
2021b78: 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);
2021b7c: 92 02 20 84 add %o0, 0x84, %o1 <== NOT EXECUTED
2021b80: 40 00 5a f6 call 2038758 <rtems_rfs_block_get_size> <== NOT EXECUTED
2021b84: 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);
2021b88: 10 80 00 43 b 2021c94 <rtems_rfs_rtems_stat+0x2dc> <== NOT EXECUTED
2021b8c: 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);
2021b90: 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);
2021b94: d6 08 60 10 ldub [ %g1 + 0x10 ], %o3 <== NOT EXECUTED
2021b98: 84 00 60 10 add %g1, 0x10, %g2 <== NOT EXECUTED
2021b9c: d8 08 a0 03 ldub [ %g2 + 3 ], %o4 <== NOT EXECUTED
2021ba0: c8 08 a0 02 ldub [ %g2 + 2 ], %g4 <== NOT EXECUTED
2021ba4: da 08 a0 01 ldub [ %g2 + 1 ], %o5 <== NOT EXECUTED
2021ba8: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2021bac: 85 2a e0 18 sll %o3, 0x18, %g2 <== NOT EXECUTED
2021bb0: 9b 2b 60 10 sll %o5, 0x10, %o5 <== NOT EXECUTED
2021bb4: 84 13 00 02 or %o4, %g2, %g2 <== NOT EXECUTED
2021bb8: 84 10 80 0d or %g2, %o5, %g2 <== NOT EXECUTED
2021bbc: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
2021bc0: 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);
2021bc4: 84 00 60 14 add %g1, 0x14, %g2 <== NOT EXECUTED
buf->st_mtime = rtems_rfs_inode_get_mtime (&inode);
2021bc8: d6 08 60 14 ldub [ %g1 + 0x14 ], %o3 <== NOT EXECUTED
2021bcc: d8 08 a0 03 ldub [ %g2 + 3 ], %o4 <== NOT EXECUTED
2021bd0: c8 08 a0 02 ldub [ %g2 + 2 ], %g4 <== NOT EXECUTED
2021bd4: da 08 a0 01 ldub [ %g2 + 1 ], %o5 <== NOT EXECUTED
2021bd8: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2021bdc: 85 2a e0 18 sll %o3, 0x18, %g2 <== NOT EXECUTED
2021be0: 9b 2b 60 10 sll %o5, 0x10, %o5 <== NOT EXECUTED
2021be4: 84 13 00 02 or %o4, %g2, %g2 <== NOT EXECUTED
2021be8: 84 10 80 0d or %g2, %o5, %g2 <== NOT EXECUTED
2021bec: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
2021bf0: 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);
2021bf4: 84 00 60 18 add %g1, 0x18, %g2 <== NOT EXECUTED
buf->st_ctime = rtems_rfs_inode_get_ctime (&inode);
2021bf8: d6 08 60 18 ldub [ %g1 + 0x18 ], %o3 <== NOT EXECUTED
2021bfc: d8 08 a0 03 ldub [ %g2 + 3 ], %o4 <== NOT EXECUTED
2021c00: c8 08 a0 02 ldub [ %g2 + 2 ], %g4 <== NOT EXECUTED
2021c04: da 08 a0 01 ldub [ %g2 + 1 ], %o5 <== NOT EXECUTED
2021c08: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2021c0c: 85 2a e0 18 sll %o3, 0x18, %g2 <== NOT EXECUTED
2021c10: 9b 2b 60 10 sll %o5, 0x10, %o5 <== NOT EXECUTED
2021c14: 84 13 00 02 or %o4, %g2, %g2 <== NOT EXECUTED
2021c18: 84 10 80 0d or %g2, %o5, %g2 <== NOT EXECUTED
2021c1c: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
2021c20: 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);
2021c24: 84 00 60 0c add %g1, 0xc, %g2 <== NOT EXECUTED
buf->st_blocks = rtems_rfs_inode_get_block_count (&inode);
2021c28: d6 08 60 0c ldub [ %g1 + 0xc ], %o3 <== NOT EXECUTED
2021c2c: c8 08 a0 02 ldub [ %g2 + 2 ], %g4 <== NOT EXECUTED
2021c30: d8 08 a0 03 ldub [ %g2 + 3 ], %o4 <== NOT EXECUTED
2021c34: da 08 a0 01 ldub [ %g2 + 1 ], %o5 <== NOT EXECUTED
2021c38: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2021c3c: 85 2a e0 18 sll %o3, 0x18, %g2 <== NOT EXECUTED
2021c40: 9b 2b 60 10 sll %o5, 0x10, %o5 <== NOT EXECUTED
2021c44: 84 13 00 02 or %o4, %g2, %g2 <== NOT EXECUTED
2021c48: 84 10 80 0d or %g2, %o5, %g2 <== NOT EXECUTED
2021c4c: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
2021c50: c4 26 60 44 st %g2, [ %i1 + 0x44 ] <== NOT EXECUTED
if (S_ISLNK (buf->st_mode))
2021c54: 05 00 00 3c sethi %hi(0xf000), %g2 <== NOT EXECUTED
2021c58: 86 08 c0 02 and %g3, %g2, %g3 <== NOT EXECUTED
2021c5c: 05 00 00 28 sethi %hi(0xa000), %g2 <== NOT EXECUTED
2021c60: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED
2021c64: 12 80 00 09 bne 2021c88 <rtems_rfs_rtems_stat+0x2d0> <== NOT EXECUTED
2021c68: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
buf->st_size = rtems_rfs_inode_get_block_offset (&inode);
2021c6c: c4 08 60 0b ldub [ %g1 + 0xb ], %g2 <== NOT EXECUTED
2021c70: c2 08 60 0a ldub [ %g1 + 0xa ], %g1 <== NOT EXECUTED
2021c74: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED
2021c78: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2021c7c: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
2021c80: 10 80 00 05 b 2021c94 <rtems_rfs_rtems_stat+0x2dc> <== NOT EXECUTED
2021c84: c2 26 60 24 st %g1, [ %i1 + 0x24 ] <== NOT EXECUTED
else
buf->st_size = rtems_rfs_inode_get_size (fs, &inode);
2021c88: 40 00 6b e8 call 203cc28 <rtems_rfs_inode_get_size> <== NOT EXECUTED
2021c8c: 92 07 bf d8 add %fp, -40, %o1 <== NOT EXECUTED
2021c90: d0 3e 60 20 std %o0, [ %i1 + 0x20 ] <== NOT EXECUTED
}
buf->st_blksize = rtems_rfs_fs_block_size (fs);
2021c94: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED
rc = rtems_rfs_inode_close (fs, &inode);
2021c98: 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);
2021c9c: c2 26 60 40 st %g1, [ %i1 + 0x40 ] <== NOT EXECUTED
rc = rtems_rfs_inode_close (fs, &inode);
2021ca0: 40 00 6c a5 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
2021ca4: 92 07 bf d8 add %fp, -40, %o1 <== NOT EXECUTED
if (rc > 0)
2021ca8: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2021cac: 04 80 00 09 ble 2021cd0 <rtems_rfs_rtems_stat+0x318> <== NOT EXECUTED
2021cb0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
2021cb4: 7f ff fc ae call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021cb8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("stat: closing inode", rc);
2021cbc: 40 00 83 db call 2042c28 <__errno> <== NOT EXECUTED
2021cc0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2021cc4: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2021cc8: 81 c7 e0 08 ret <== NOT EXECUTED
2021ccc: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
2021cd0: 7f ff fc a7 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021cd4: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2021cd8: 81 c7 e0 08 ret <== NOT EXECUTED
2021cdc: 81 e8 00 00 restore <== NOT EXECUTED
0202152c <rtems_rfs_rtems_statvfs>:
* @return int
*/
int
rtems_rfs_rtems_statvfs (rtems_filesystem_location_info_t* pathloc,
struct statvfs* sb)
{
202152c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2021530: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
size_t blocks;
size_t inodes;
rtems_rfs_group_usage (fs, &blocks, &inodes);
2021534: 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);
2021538: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
size_t blocks;
size_t inodes;
rtems_rfs_group_usage (fs, &blocks, &inodes);
202153c: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED
2021540: 40 00 6c 71 call 203c704 <rtems_rfs_group_usage> <== NOT EXECUTED
2021544: 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);
2021548: 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);
202154c: 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);
2021550: 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);
2021554: c4 26 40 00 st %g2, [ %i1 ] <== NOT EXECUTED
sb->f_frsize = rtems_rfs_fs_media_block_size (fs);
2021558: 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;
202155c: 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);
2021560: 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);
2021564: 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);
2021568: 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;
202156c: 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);
2021570: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED
sb->f_ffree = rtems_rfs_fs_inodes (fs) - inodes;
2021574: 82 20 80 01 sub %g2, %g1, %g1 <== NOT EXECUTED
sb->f_favail = sb->f_ffree;
2021578: 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;
202157c: c2 26 60 24 st %g1, [ %i1 + 0x24 ] <== NOT EXECUTED
sb->f_favail = sb->f_ffree;
sb->f_fsid = RTEMS_RFS_SB_MAGIC;
2021580: 03 0a 02 48 sethi %hi(0x28092000), %g1 <== NOT EXECUTED
2021584: 82 10 60 01 or %g1, 1, %g1 ! 28092001 <RAM_END+0x25c92001><== NOT EXECUTED
2021588: c2 26 60 2c st %g1, [ %i1 + 0x2c ] <== NOT EXECUTED
sb->f_flag = rtems_rfs_fs_flags (fs);
202158c: 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;
2021590: 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);
2021594: c2 26 60 30 st %g1, [ %i1 + 0x30 ] <== NOT EXECUTED
sb->f_namemax = rtems_rfs_fs_max_name (fs);
2021598: 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);
202159c: 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);
20215a0: 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;
20215a4: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
sb->f_bavail = sb->f_bfree;
20215a8: 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;
20215ac: 82 20 80 01 sub %g2, %g1, %g1 <== NOT EXECUTED
sb->f_bavail = sb->f_bfree;
20215b0: 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;
20215b4: 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;
}
20215b8: 81 c7 e0 08 ret <== NOT EXECUTED
20215bc: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
02021d4c <rtems_rfs_rtems_symlink>:
int
rtems_rfs_rtems_symlink (rtems_filesystem_location_info_t* parent_loc,
const char* link_name,
const char* node_name)
{
2021d4c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (parent_loc);
2021d50: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_loc);
2021d54: e2 06 00 00 ld [ %i0 ], %l1 <== NOT EXECUTED
int
rtems_rfs_rtems_symlink (rtems_filesystem_location_info_t* parent_loc,
const char* link_name,
const char* node_name)
{
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (parent_loc);
2021d58: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
#else
uid = 0;
gid = 0;
#endif
rtems_rfs_rtems_lock (fs);
2021d5c: 7f ff fc 7c call 2020f4c <rtems_rfs_rtems_lock> <== NOT EXECUTED
2021d60: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = rtems_rfs_symlink (fs, node_name, strlen (node_name),
2021d64: 40 00 9f 59 call 2049ac8 <strlen> <== NOT EXECUTED
2021d68: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
2021d6c: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
link_name, strlen (link_name),
2021d70: 40 00 9f 56 call 2049ac8 <strlen> <== NOT EXECUTED
2021d74: 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),
2021d78: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
link_name, strlen (link_name),
2021d7c: 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),
2021d80: e2 23 a0 60 st %l1, [ %sp + 0x60 ] <== NOT EXECUTED
2021d84: c0 23 a0 5c clr [ %sp + 0x5c ] <== NOT EXECUTED
2021d88: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2021d8c: 96 10 00 19 mov %i1, %o3 <== NOT EXECUTED
2021d90: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2021d94: 40 00 6e 0a call 203d5bc <rtems_rfs_symlink> <== NOT EXECUTED
2021d98: 9a 10 20 00 clr %o5 <== NOT EXECUTED
link_name, strlen (link_name),
uid, gid, parent);
if (rc)
2021d9c: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2021da0: 02 80 00 09 be 2021dc4 <rtems_rfs_rtems_symlink+0x78> <== NOT EXECUTED
2021da4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
2021da8: 7f ff fc 71 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021dac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("symlink: linking", rc);
2021db0: 40 00 83 9e call 2042c28 <__errno> <== NOT EXECUTED
2021db4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2021db8: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2021dbc: 81 c7 e0 08 ret <== NOT EXECUTED
2021dc0: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
2021dc4: 7f ff fc 6a call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021dc8: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2021dcc: 81 c7 e0 08 ret <== NOT EXECUTED
2021dd0: 81 e8 00 00 restore <== NOT EXECUTED
02021764 <rtems_rfs_rtems_unlink>:
*/
int
rtems_rfs_rtems_unlink (rtems_filesystem_location_info_t* parent_loc,
rtems_filesystem_location_info_t* loc)
{
2021764: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (parent_loc);
2021768: 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);
202176c: 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);
2021770: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_loc);
2021774: e6 06 00 00 ld [ %i0 ], %l3 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (loc);
2021778: 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);
202177c: 7f ff fd f4 call 2020f4c <rtems_rfs_rtems_lock> <== NOT EXECUTED
2021780: 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);
2021784: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
2021788: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202178c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2021790: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2021794: 40 00 70 09 call 203d7b8 <rtems_rfs_unlink> <== NOT EXECUTED
2021798: 98 10 20 00 clr %o4 <== NOT EXECUTED
if (rc)
202179c: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
20217a0: 02 80 00 09 be 20217c4 <rtems_rfs_rtems_unlink+0x60> <== NOT EXECUTED
20217a4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
20217a8: 7f ff fd f1 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20217ac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("unlink: unlink inode", rc);
20217b0: 40 00 85 1e call 2042c28 <__errno> <== NOT EXECUTED
20217b4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20217b8: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
20217bc: 81 c7 e0 08 ret <== NOT EXECUTED
20217c0: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
20217c4: 7f ff fd ea call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20217c8: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
20217cc: 81 c7 e0 08 ret <== NOT EXECUTED
20217d0: 81 e8 00 00 restore <== NOT EXECUTED
02020f6c <rtems_rfs_rtems_unlock>:
/**
* Unlock the RFS file system.
*/
static inline void
rtems_rfs_rtems_unlock (rtems_rfs_file_system* fs)
{
2020f6c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_rtems_private* rtems = rtems_rfs_fs_user (fs);
2020f70: e0 06 20 7c ld [ %i0 + 0x7c ], %l0 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2020f74: 40 00 61 d0 call 20396b4 <rtems_rfs_buffers_release> <== NOT EXECUTED
2020f78: 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);
2020f7c: f0 04 00 00 ld [ %l0 ], %i0 <== NOT EXECUTED
2020f80: 7f ff af 23 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2020f84: 81 e8 00 00 restore <== NOT EXECUTED
02021134 <rtems_rfs_rtems_utime>:
int
rtems_rfs_rtems_utime(rtems_filesystem_location_info_t* pathloc,
time_t atime,
time_t mtime)
{
2021134: 9d e3 bf 78 save %sp, -136, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2021138: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
202113c: 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);
2021140: 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);
2021144: 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);
2021148: 7f ff ff 81 call 2020f4c <rtems_rfs_rtems_lock> <== NOT EXECUTED
202114c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
2021150: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2021154: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2021158: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
202115c: 40 00 6f 9f call 203cfd8 <rtems_rfs_inode_open> <== NOT EXECUTED
2021160: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc)
2021164: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2021168: 02 80 00 09 be 202118c <rtems_rfs_rtems_utime+0x58> <== NOT EXECUTED
202116c: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
2021170: 7f ff ff 7f call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021174: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("utime: read inode", rc);
2021178: 40 00 86 ac call 2042c28 <__errno> <== NOT EXECUTED
202117c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2021180: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
2021184: 81 c7 e0 08 ret <== NOT EXECUTED
2021188: 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);
202118c: 85 36 60 18 srl %i1, 0x18, %g2 <== NOT EXECUTED
2021190: c4 28 60 10 stb %g2, [ %g1 + 0x10 ] <== NOT EXECUTED
2021194: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
2021198: 85 36 60 10 srl %i1, 0x10, %g2 <== NOT EXECUTED
202119c: c4 28 60 11 stb %g2, [ %g1 + 0x11 ] <== NOT EXECUTED
20211a0: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
20211a4: 85 36 60 08 srl %i1, 8, %g2 <== NOT EXECUTED
20211a8: c4 28 60 12 stb %g2, [ %g1 + 0x12 ] <== NOT EXECUTED
20211ac: 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);
20211b0: 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);
20211b4: 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);
20211b8: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
20211bc: 87 36 a0 10 srl %i2, 0x10, %g3 <== NOT EXECUTED
20211c0: c4 28 60 14 stb %g2, [ %g1 + 0x14 ] <== NOT EXECUTED
20211c4: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
20211c8: 85 36 a0 08 srl %i2, 8, %g2 <== NOT EXECUTED
20211cc: c6 28 60 15 stb %g3, [ %g1 + 0x15 ] <== NOT EXECUTED
20211d0: 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);
20211d4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20211d8: c4 28 60 16 stb %g2, [ %g1 + 0x16 ] <== NOT EXECUTED
20211dc: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
20211e0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20211e4: f4 28 60 17 stb %i2, [ %g1 + 0x17 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
20211e8: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20211ec: 40 00 6f 52 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
20211f0: c2 2f bf e8 stb %g1, [ %fp + -24 ] <== NOT EXECUTED
if (rc)
20211f4: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
20211f8: 02 80 00 09 be 202121c <rtems_rfs_rtems_utime+0xe8> <== NOT EXECUTED
20211fc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
2021200: 7f ff ff 5b call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021204: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("utime: closing inode", rc);
2021208: 40 00 86 88 call 2042c28 <__errno> <== NOT EXECUTED
202120c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2021210: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2021214: 81 c7 e0 08 ret <== NOT EXECUTED
2021218: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
202121c: 7f ff ff 54 call 2020f6c <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021220: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2021224: 81 c7 e0 08 ret <== NOT EXECUTED
2021228: 81 e8 00 00 restore <== NOT EXECUTED
0203b93c <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)
{
203b93c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
203b940: 82 10 00 18 mov %i0, %g1 <== NOT EXECUTED
if (dividend == 0)
203b944: 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)
{
203b948: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
if (dividend == 0)
203b94c: 02 80 00 05 be 203b960 <rtems_rfs_rup_quotient+0x24> <== NOT EXECUTED
203b950: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
203b954: 40 00 7d e2 call 205b0dc <.udiv> <== NOT EXECUTED
203b958: 90 00 7f ff add %g1, -1, %o0 <== NOT EXECUTED
203b95c: b0 02 20 01 add %o0, 1, %i0 <== NOT EXECUTED
}
203b960: 81 c7 e0 08 ret <== NOT EXECUTED
203b964: 81 e8 00 00 restore <== NOT EXECUTED
0202321c <rtems_rfs_shell_block>:
return 0;
}
static int
rtems_rfs_shell_block (rtems_rfs_file_system* fs, int argc, char *argv[])
{
202321c: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED
uint8_t* data;
bool state;
int b;
int rc;
if (argc <= 1)
2023220: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED
2023224: 34 80 00 07 bg,a 2023240 <rtems_rfs_shell_block+0x24> <== NOT EXECUTED
2023228: d0 06 a0 04 ld [ %i2 + 4 ], %o0 <== NOT EXECUTED
{
printf ("error: no block number provided\n");
202322c: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
2023230: 40 00 91 25 call 20476c4 <puts> <== NOT EXECUTED
2023234: 90 12 23 40 or %o0, 0x340, %o0 ! 2062740 <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",
2023238: 81 c7 e0 08 ret <== NOT EXECUTED
202323c: 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);
2023240: 92 10 20 00 clr %o1 <== NOT EXECUTED
2023244: 40 00 9f d6 call 204b19c <strtoul> <== NOT EXECUTED
2023248: 94 10 20 00 clr %o2 <== NOT EXECUTED
202324c: c2 06 20 7c ld [ %i0 + 0x7c ], %g1 <== NOT EXECUTED
2023250: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
2023254: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
2023258: 92 10 20 00 clr %o1 <== NOT EXECUTED
202325c: 7f ff a6 25 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2023260: 94 10 20 00 clr %o2 <== NOT EXECUTED
rtems_rfs_shell_lock_rfs (fs);
rc = rtems_rfs_group_bitmap_test (fs, false, block, &state);
2023264: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2023268: 92 10 20 00 clr %o1 <== NOT EXECUTED
202326c: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2023270: 40 00 65 4b call 203c79c <rtems_rfs_group_bitmap_test> <== NOT EXECUTED
2023274: 96 07 bf ff add %fp, -1, %o3 <== NOT EXECUTED
if (rc > 0)
2023278: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
202327c: 04 80 00 0c ble 20232ac <rtems_rfs_shell_block+0x90> <== NOT EXECUTED
2023280: c2 0f bf ff ldub [ %fp + -1 ], %g1 <== NOT EXECUTED
{
rtems_rfs_shell_unlock_rfs (fs);
2023284: 7f ff fd 8b call 20228b0 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
2023288: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
printf ("error: testing block state: block=%" PRIu32 ": (%d) %s\n",
202328c: 40 00 99 03 call 2049698 <strerror> <== NOT EXECUTED
2023290: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2023294: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2023298: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
202329c: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
20232a0: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
20232a4: 10 80 00 27 b 2023340 <rtems_rfs_shell_block+0x124> <== NOT EXECUTED
20232a8: 90 12 23 60 or %o0, 0x360, %o0 ! 2062760 <rtems_rfs_ops+0x4f0><== NOT EXECUTED
block, rc, strerror (rc));
return 1;
}
printf (" %5" PRIu32 ": block %s\n", block, state ? "allocated" : "free");
20232ac: 15 00 81 89 sethi %hi(0x2062400), %o2 <== NOT EXECUTED
20232b0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20232b4: 12 80 00 04 bne 20232c4 <rtems_rfs_shell_block+0xa8> <== NOT EXECUTED
20232b8: 94 12 a3 98 or %o2, 0x398, %o2 <== NOT EXECUTED
20232bc: 15 00 81 89 sethi %hi(0x2062400), %o2 <== NOT EXECUTED
20232c0: 94 12 a3 90 or %o2, 0x390, %o2 ! 2062790 <rtems_rfs_ops+0x520><== NOT EXECUTED
20232c4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
20232c8: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
20232cc: 40 00 90 52 call 2047414 <printf> <== NOT EXECUTED
20232d0: 90 12 23 a8 or %o0, 0x3a8, %o0 ! 20627a8 <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);
20232d4: 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;
20232d8: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
20232dc: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
20232e0: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
20232e4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20232e8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20232ec: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
20232f0: 40 00 59 90 call 2039930 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
20232f4: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
20232f8: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
20232fc: 04 80 00 15 ble 2023350 <rtems_rfs_shell_block+0x134> <== NOT EXECUTED
2023300: 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);
2023304: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2023308: 40 00 59 40 call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
202330c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_shell_unlock_rfs (fs);
2023310: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
handle->dirty = false;
2023314: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
2023318: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
202331c: 7f ff fd 65 call 20228b0 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
2023320: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
printf ("error: requesting buffer handle: block=%" PRIu32 ": (%d) %s\n",
2023324: 40 00 98 dd call 2049698 <strerror> <== NOT EXECUTED
2023328: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
202332c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2023330: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2023334: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2023338: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
202333c: 90 12 23 c0 or %o0, 0x3c0, %o0 ! 20627c0 <rtems_rfs_ops+0x550><== NOT EXECUTED
2023340: 40 00 90 35 call 2047414 <printf> <== NOT EXECUTED
2023344: 01 00 00 00 nop <== NOT EXECUTED
block, rc, strerror (rc));
return 1;
2023348: 81 c7 e0 08 ret <== NOT EXECUTED
202334c: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED
int mod = b % 16;
if (mod == 0)
{
if (b)
printf ("\n");
printf ("%04x ", b);
2023350: 25 00 81 8a sethi %hi(0x2062800), %l2 <== NOT EXECUTED
}
if (mod == 8)
printf (" ");
printf ("%02x ", *data);
2023354: 23 00 81 8a sethi %hi(0x2062800), %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);
2023358: e6 00 60 24 ld [ %g1 + 0x24 ], %l3 <== NOT EXECUTED
int mod = b % 16;
if (mod == 0)
{
if (b)
printf ("\n");
printf ("%04x ", b);
202335c: a4 14 a0 88 or %l2, 0x88, %l2 <== NOT EXECUTED
}
if (mod == 8)
printf (" ");
printf ("%02x ", *data);
2023360: a2 14 60 90 or %l1, 0x90, %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);
2023364: 10 80 00 16 b 20233bc <rtems_rfs_shell_block+0x1a0> <== NOT EXECUTED
2023368: a0 10 20 00 clr %l0 <== NOT EXECUTED
b < rtems_rfs_fs_block_size (fs);
b++, data++)
{
int mod = b % 16;
if (mod == 0)
202336c: 12 80 00 0c bne 202339c <rtems_rfs_shell_block+0x180> <== NOT EXECUTED
2023370: 80 a0 60 08 cmp %g1, 8 <== NOT EXECUTED
{
if (b)
2023374: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
2023378: 02 80 00 05 be 202338c <rtems_rfs_shell_block+0x170> <== NOT EXECUTED
202337c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
printf ("\n");
2023380: 40 00 90 9d call 20475f4 <putchar> <== NOT EXECUTED
2023384: 90 10 20 0a mov 0xa, %o0 <== NOT EXECUTED
printf ("%04x ", b);
2023388: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
202338c: 40 00 90 22 call 2047414 <printf> <== NOT EXECUTED
2023390: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
}
if (mod == 8)
printf (" ");
printf ("%02x ", *data);
2023394: 10 80 00 07 b 20233b0 <rtems_rfs_shell_block+0x194> <== NOT EXECUTED
2023398: d2 0c c0 10 ldub [ %l3 + %l0 ], %o1 <== NOT EXECUTED
{
if (b)
printf ("\n");
printf ("%04x ", b);
}
if (mod == 8)
202339c: 32 80 00 05 bne,a 20233b0 <rtems_rfs_shell_block+0x194> <== NOT EXECUTED
20233a0: d2 0c c0 10 ldub [ %l3 + %l0 ], %o1 <== NOT EXECUTED
printf (" ");
20233a4: 40 00 90 94 call 20475f4 <putchar> <== NOT EXECUTED
20233a8: 90 10 20 20 mov 0x20, %o0 <== NOT EXECUTED
printf ("%02x ", *data);
20233ac: d2 0c c0 10 ldub [ %l3 + %l0 ], %o1 <== NOT EXECUTED
20233b0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
20233b4: 40 00 90 18 call 2047414 <printf> <== NOT EXECUTED
20233b8: 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);
20233bc: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED
20233c0: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED
20233c4: 0a bf ff ea bcs 202336c <rtems_rfs_shell_block+0x150> <== NOT EXECUTED
20233c8: 82 8c 20 0f andcc %l0, 0xf, %g1 <== NOT EXECUTED
if (mod == 8)
printf (" ");
printf ("%02x ", *data);
}
printf ("\n");
20233cc: 40 00 90 8a call 20475f4 <putchar> <== NOT EXECUTED
20233d0: 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);
20233d4: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
20233d8: 40 00 59 0c call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
20233dc: 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);
20233e0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
handle->dirty = false;
20233e4: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
20233e8: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
20233ec: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
20233f0: 7f ff fd 30 call 20228b0 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
20233f4: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
20233f8: 81 c7 e0 08 ret <== NOT EXECUTED
20233fc: 81 e8 00 00 restore <== NOT EXECUTED
02023400 <rtems_rfs_shell_data>:
return rc;
}
static int
rtems_rfs_shell_data (rtems_rfs_file_system* fs, int argc, char *argv[])
{
2023400: 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");
2023404: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
2023408: 40 00 90 af call 20476c4 <puts> <== NOT EXECUTED
202340c: 90 12 20 98 or %o0, 0x98, %o0 ! 2062898 <rtems_rfs_ops+0x628><== NOT EXECUTED
printf (" flags: %08" PRIx32 "\n", fs->flags);
2023410: d2 06 00 00 ld [ %i0 ], %o1 <== NOT EXECUTED
2023414: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
2023418: 40 00 8f ff call 2047414 <printf> <== NOT EXECUTED
202341c: 90 12 20 b0 or %o0, 0xb0, %o0 ! 20628b0 <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));
2023420: d2 06 20 04 ld [ %i0 + 4 ], %o1 <== NOT EXECUTED
2023424: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
2023428: 40 00 8f fb call 2047414 <printf> <== NOT EXECUTED
202342c: 90 12 20 d0 or %o0, 0xd0, %o0 ! 20628d0 <rtems_rfs_ops+0x660><== NOT EXECUTED
printf (" block size: %zu\n", rtems_rfs_fs_block_size (fs));
2023430: d2 06 20 08 ld [ %i0 + 8 ], %o1 <== NOT EXECUTED
2023434: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
2023438: 40 00 8f f7 call 2047414 <printf> <== NOT EXECUTED
202343c: 90 12 20 f0 or %o0, 0xf0, %o0 ! 20628f0 <rtems_rfs_ops+0x680><== NOT EXECUTED
printf (" size: %" PRIu64 "\n", rtems_rfs_fs_size (fs));
2023440: 40 00 5f b4 call 203b310 <rtems_rfs_fs_size> <== NOT EXECUTED
2023444: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2023448: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED
202344c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
2023450: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
2023454: 40 00 8f f0 call 2047414 <printf> <== NOT EXECUTED
2023458: 90 12 21 10 or %o0, 0x110, %o0 ! 2062910 <rtems_rfs_ops+0x6a0><== NOT EXECUTED
printf (" media block size: %" PRIu32 "\n", rtems_rfs_fs_media_block_size (fs));
202345c: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
2023460: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
2023464: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
2023468: 40 00 8f eb call 2047414 <printf> <== NOT EXECUTED
202346c: 90 12 21 30 or %o0, 0x130, %o0 <== NOT EXECUTED
printf (" media size: %" PRIu64 "\n", rtems_rfs_fs_media_size (fs));
2023470: 40 00 5f b1 call 203b334 <rtems_rfs_fs_media_size> <== NOT EXECUTED
2023474: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2023478: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED
202347c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
2023480: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
2023484: 40 00 8f e4 call 2047414 <printf> <== NOT EXECUTED
2023488: 90 12 21 50 or %o0, 0x150, %o0 ! 2062950 <rtems_rfs_ops+0x6e0><== NOT EXECUTED
printf (" inodes: %" PRIu32 "\n", rtems_rfs_fs_inodes (fs));
202348c: d2 06 20 10 ld [ %i0 + 0x10 ], %o1 <== NOT EXECUTED
2023490: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
2023494: 40 00 8f e0 call 2047414 <printf> <== NOT EXECUTED
2023498: 90 12 21 70 or %o0, 0x170, %o0 ! 2062970 <rtems_rfs_ops+0x700><== NOT EXECUTED
printf (" bad blocks: %" PRIu32 "\n", fs->bad_blocks);
202349c: d2 06 20 14 ld [ %i0 + 0x14 ], %o1 <== NOT EXECUTED
20234a0: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
20234a4: 40 00 8f dc call 2047414 <printf> <== NOT EXECUTED
20234a8: 90 12 21 90 or %o0, 0x190, %o0 ! 2062990 <rtems_rfs_ops+0x720><== NOT EXECUTED
printf (" max. name length: %" PRIu32 "\n", rtems_rfs_fs_max_name (fs));
20234ac: d2 06 20 18 ld [ %i0 + 0x18 ], %o1 <== NOT EXECUTED
20234b0: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
20234b4: 40 00 8f d8 call 2047414 <printf> <== NOT EXECUTED
20234b8: 90 12 21 b0 or %o0, 0x1b0, %o0 ! 20629b0 <rtems_rfs_ops+0x740><== NOT EXECUTED
printf (" groups: %d\n", fs->group_count);
20234bc: d2 06 20 20 ld [ %i0 + 0x20 ], %o1 <== NOT EXECUTED
20234c0: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
20234c4: 40 00 8f d4 call 2047414 <printf> <== NOT EXECUTED
20234c8: 90 12 21 d0 or %o0, 0x1d0, %o0 ! 20629d0 <rtems_rfs_ops+0x760><== NOT EXECUTED
printf (" group blocks: %zd\n", fs->group_blocks);
20234cc: d2 06 20 24 ld [ %i0 + 0x24 ], %o1 <== NOT EXECUTED
20234d0: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
20234d4: 40 00 8f d0 call 2047414 <printf> <== NOT EXECUTED
20234d8: 90 12 21 e8 or %o0, 0x1e8, %o0 ! 20629e8 <rtems_rfs_ops+0x778><== NOT EXECUTED
printf (" group inodes: %zd\n", fs->group_inodes);
20234dc: d2 06 20 28 ld [ %i0 + 0x28 ], %o1 <== NOT EXECUTED
20234e0: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
20234e4: 40 00 8f cc call 2047414 <printf> <== NOT EXECUTED
20234e8: 90 12 22 08 or %o0, 0x208, %o0 ! 2062a08 <rtems_rfs_ops+0x798><== NOT EXECUTED
printf (" inodes per block: %zd\n", fs->inodes_per_block);
20234ec: d2 06 20 2c ld [ %i0 + 0x2c ], %o1 <== NOT EXECUTED
20234f0: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
20234f4: 40 00 8f c8 call 2047414 <printf> <== NOT EXECUTED
20234f8: 90 12 22 28 or %o0, 0x228, %o0 ! 2062a28 <rtems_rfs_ops+0x7b8><== NOT EXECUTED
printf (" blocks per block: %zd\n", fs->blocks_per_block);
20234fc: d2 06 20 30 ld [ %i0 + 0x30 ], %o1 <== NOT EXECUTED
2023500: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
2023504: 40 00 8f c4 call 2047414 <printf> <== NOT EXECUTED
2023508: 90 12 22 48 or %o0, 0x248, %o0 ! 2062a48 <rtems_rfs_ops+0x7d8><== NOT EXECUTED
printf (" singly blocks: %zd\n", fs->block_map_singly_blocks);
202350c: d2 06 20 34 ld [ %i0 + 0x34 ], %o1 <== NOT EXECUTED
2023510: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
2023514: 40 00 8f c0 call 2047414 <printf> <== NOT EXECUTED
2023518: 90 12 22 68 or %o0, 0x268, %o0 ! 2062a68 <rtems_rfs_ops+0x7f8><== NOT EXECUTED
printf (" doublly blocks: %zd\n", fs->block_map_doubly_blocks);
202351c: d2 06 20 38 ld [ %i0 + 0x38 ], %o1 <== NOT EXECUTED
2023520: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
2023524: 40 00 8f bc call 2047414 <printf> <== NOT EXECUTED
2023528: 90 12 22 88 or %o0, 0x288, %o0 ! 2062a88 <rtems_rfs_ops+0x818><== NOT EXECUTED
printf (" max. held buffers: %" PRId32 "\n", fs->max_held_buffers);
202352c: d2 06 20 3c ld [ %i0 + 0x3c ], %o1 <== NOT EXECUTED
2023530: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
2023534: 40 00 8f b8 call 2047414 <printf> <== NOT EXECUTED
2023538: 90 12 22 a8 or %o0, 0x2a8, %o0 ! 2062aa8 <rtems_rfs_ops+0x838><== NOT EXECUTED
202353c: c2 06 20 7c ld [ %i0 + 0x7c ], %g1 <== NOT EXECUTED
2023540: 92 10 20 00 clr %o1 <== NOT EXECUTED
2023544: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
2023548: 7f ff a5 6a call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
202354c: 94 10 20 00 clr %o2 <== NOT EXECUTED
rtems_rfs_shell_lock_rfs (fs);
rtems_rfs_group_usage (fs, &blocks, &inodes);
2023550: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED
2023554: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
2023558: 40 00 64 6b call 203c704 <rtems_rfs_group_usage> <== NOT EXECUTED
202355c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
rtems_rfs_shell_unlock_rfs (fs);
2023560: 7f ff fc d4 call 20228b0 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
2023564: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
bpcent = (blocks * 1000) / rtems_rfs_fs_blocks (fs);
2023568: e0 07 bf fc ld [ %fp + -4 ], %l0 <== NOT EXECUTED
202356c: d2 06 20 04 ld [ %i0 + 4 ], %o1 <== NOT EXECUTED
2023570: 83 2c 20 02 sll %l0, 2, %g1 <== NOT EXECUTED
2023574: 91 2c 20 07 sll %l0, 7, %o0 <== NOT EXECUTED
2023578: 90 22 00 01 sub %o0, %g1, %o0 <== NOT EXECUTED
202357c: 90 02 00 10 add %o0, %l0, %o0 <== NOT EXECUTED
2023580: 40 00 de d7 call 205b0dc <.udiv> <== NOT EXECUTED
2023584: 91 2a 20 03 sll %o0, 3, %o0 <== NOT EXECUTED
ipcent = (inodes * 1000) / rtems_rfs_fs_inodes (fs);
2023588: 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[])
{
202358c: 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);
2023590: d2 04 60 10 ld [ %l1 + 0x10 ], %o1 <== NOT EXECUTED
2023594: 87 28 60 07 sll %g1, 7, %g3 <== NOT EXECUTED
2023598: 85 28 60 02 sll %g1, 2, %g2 <== NOT EXECUTED
202359c: 84 20 c0 02 sub %g3, %g2, %g2 <== NOT EXECUTED
20235a0: 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);
20235a4: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
ipcent = (inodes * 1000) / rtems_rfs_fs_inodes (fs);
20235a8: 40 00 de cd call 205b0dc <.udiv> <== NOT EXECUTED
20235ac: 91 28 60 03 sll %g1, 3, %o0 <== NOT EXECUTED
printf (" blocks used: %zd (%d.%d%%)\n",
20235b0: 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);
20235b4: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
printf (" blocks used: %zd (%d.%d%%)\n",
20235b8: 40 00 de cb call 205b0e4 <.div> <== NOT EXECUTED
20235bc: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
20235c0: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED
20235c4: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
20235c8: 40 00 df 73 call 205b394 <.rem> <== NOT EXECUTED
20235cc: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
20235d0: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
20235d4: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
20235d8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
20235dc: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
20235e0: 40 00 8f 8d call 2047414 <printf> <== NOT EXECUTED
20235e4: 90 12 22 c8 or %o0, 0x2c8, %o0 ! 2062ac8 <rtems_rfs_ops+0x858><== NOT EXECUTED
blocks, bpcent / 10, bpcent % 10);
printf (" inodes used: %zd (%d.%d%%)\n",
20235e8: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED
20235ec: 40 00 de be call 205b0e4 <.div> <== NOT EXECUTED
20235f0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
20235f4: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED
20235f8: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
20235fc: 40 00 df 66 call 205b394 <.rem> <== NOT EXECUTED
2023600: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2023604: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
inodes, ipcent / 10, ipcent % 10);
return 0;
}
2023608: 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",
202360c: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2023610: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2023614: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
2023618: 40 00 8f 7f call 2047414 <printf> <== NOT EXECUTED
202361c: 90 12 22 f0 or %o0, 0x2f0, %o0 ! 2062af0 <rtems_rfs_ops+0x880><== NOT EXECUTED
inodes, ipcent / 10, ipcent % 10);
return 0;
}
2023620: 81 c7 e0 08 ret <== NOT EXECUTED
2023624: 81 e8 00 00 restore <== NOT EXECUTED
02022f40 <rtems_rfs_shell_dir>:
return 0;
}
static int
rtems_rfs_shell_dir (rtems_rfs_file_system* fs, int argc, char *argv[])
{
2022f40: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED
bool state;
int entry;
int b;
int rc;
if (argc <= 1)
2022f44: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED
2022f48: 34 80 00 07 bg,a 2022f64 <rtems_rfs_shell_dir+0x24> <== NOT EXECUTED
2022f4c: d0 06 a0 04 ld [ %i2 + 4 ], %o0 <== NOT EXECUTED
{
printf ("error: no block number provided\n");
2022f50: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
2022f54: 40 00 91 dc call 20476c4 <puts> <== NOT EXECUTED
2022f58: 90 12 23 40 or %o0, 0x340, %o0 ! 2062740 <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",
2022f5c: 81 c7 e0 08 ret <== NOT EXECUTED
2022f60: 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);
2022f64: 92 10 20 00 clr %o1 <== NOT EXECUTED
2022f68: 40 00 a0 8d call 204b19c <strtoul> <== NOT EXECUTED
2022f6c: 94 10 20 00 clr %o2 <== NOT EXECUTED
2022f70: c2 06 20 7c ld [ %i0 + 0x7c ], %g1 <== NOT EXECUTED
2022f74: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
2022f78: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
2022f7c: 92 10 20 00 clr %o1 <== NOT EXECUTED
2022f80: 7f ff a6 dc call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2022f84: 94 10 20 00 clr %o2 <== NOT EXECUTED
rtems_rfs_shell_lock_rfs (fs);
rc = rtems_rfs_group_bitmap_test (fs, false, block, &state);
2022f88: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2022f8c: 92 10 20 00 clr %o1 <== NOT EXECUTED
2022f90: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2022f94: 40 00 66 02 call 203c79c <rtems_rfs_group_bitmap_test> <== NOT EXECUTED
2022f98: 96 07 bf ff add %fp, -1, %o3 <== NOT EXECUTED
if (rc > 0)
2022f9c: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2022fa0: 04 80 00 0c ble 2022fd0 <rtems_rfs_shell_dir+0x90> <== NOT EXECUTED
2022fa4: c2 0f bf ff ldub [ %fp + -1 ], %g1 <== NOT EXECUTED
{
rtems_rfs_shell_unlock_rfs (fs);
2022fa8: 7f ff fe 42 call 20228b0 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
2022fac: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
printf ("error: testing block state: block=%" PRIu32 ": (%d) %s\n",
2022fb0: 40 00 99 ba call 2049698 <strerror> <== NOT EXECUTED
2022fb4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2022fb8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2022fbc: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2022fc0: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2022fc4: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
2022fc8: 10 80 00 27 b 2023064 <rtems_rfs_shell_dir+0x124> <== NOT EXECUTED
2022fcc: 90 12 23 60 or %o0, 0x360, %o0 ! 2062760 <rtems_rfs_ops+0x4f0><== NOT EXECUTED
block, rc, strerror (rc));
return 1;
}
printf (" %5" PRIu32 ": block %s\n", block, state ? "allocated" : "free");
2022fd0: 15 00 81 89 sethi %hi(0x2062400), %o2 <== NOT EXECUTED
2022fd4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2022fd8: 12 80 00 04 bne 2022fe8 <rtems_rfs_shell_dir+0xa8> <== NOT EXECUTED
2022fdc: 94 12 a3 98 or %o2, 0x398, %o2 <== NOT EXECUTED
2022fe0: 15 00 81 89 sethi %hi(0x2062400), %o2 <== NOT EXECUTED
2022fe4: 94 12 a3 90 or %o2, 0x390, %o2 ! 2062790 <rtems_rfs_ops+0x520><== NOT EXECUTED
2022fe8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2022fec: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
2022ff0: 40 00 91 09 call 2047414 <printf> <== NOT EXECUTED
2022ff4: 90 12 23 a8 or %o0, 0x3a8, %o0 ! 20627a8 <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);
2022ff8: 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;
2022ffc: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
2023000: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
2023004: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
2023008: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
202300c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2023010: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2023014: 40 00 5a 47 call 2039930 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
2023018: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
202301c: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2023020: 04 80 00 15 ble 2023074 <rtems_rfs_shell_dir+0x134> <== NOT EXECUTED
2023024: 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);
2023028: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
202302c: 40 00 59 f7 call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2023030: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_shell_unlock_rfs (fs);
2023034: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
handle->dirty = false;
2023038: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
202303c: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
2023040: 7f ff fe 1c call 20228b0 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
2023044: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
printf ("error: requesting buffer handle: block=%" PRIu32 ": (%d) %s\n",
2023048: 40 00 99 94 call 2049698 <strerror> <== NOT EXECUTED
202304c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2023050: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2023054: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2023058: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
202305c: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
2023060: 90 12 23 c0 or %o0, 0x3c0, %o0 ! 20627c0 <rtems_rfs_ops+0x550><== NOT EXECUTED
2023064: 40 00 90 ec call 2047414 <printf> <== NOT EXECUTED
2023068: 01 00 00 00 nop <== NOT EXECUTED
block, rc, strerror (rc));
return 1;
202306c: 81 c7 e0 08 ret <== NOT EXECUTED
2023070: 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)
2023074: 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]=",
2023078: 2d 00 81 8a sethi %hi(0x2062800), %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 ("...");
202307c: 2b 00 81 8a sethi %hi(0x2062800), %l5 <== NOT EXECUTED
return 1;
}
b = 0;
entry = 1;
data = rtems_rfs_buffer_data (&buffer);
2023080: 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)
2023084: 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]=",
2023088: ac 15 a0 50 or %l6, 0x50, %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 ("...");
202308c: aa 15 60 80 or %l5, 0x80, %l5 <== NOT EXECUTED
return 1;
}
b = 0;
entry = 1;
data = rtems_rfs_buffer_data (&buffer);
2023090: a6 10 20 00 clr %l3 <== NOT EXECUTED
while (b < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE - 1))
2023094: 10 80 00 52 b 20231dc <rtems_rfs_shell_dir+0x29c> <== NOT EXECUTED
2023098: 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);
202309c: 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);
20230a0: c6 0c 00 00 ldub [ %l0 ], %g3 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (data);
20230a4: 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);
20230a8: c4 0c 20 01 ldub [ %l0 + 1 ], %g2 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (data);
20230ac: 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);
20230b0: d6 0c 20 03 ldub [ %l0 + 3 ], %o3 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (data);
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
20230b4: 80 a4 40 17 cmp %l1, %l7 <== NOT EXECUTED
20230b8: 02 80 00 4e be 20231f0 <rtems_rfs_shell_dir+0x2b0> <== NOT EXECUTED
20230bc: c2 0c 20 02 ldub [ %l0 + 2 ], %g1 <== NOT EXECUTED
break;
if ((elength < RTEMS_RFS_DIR_ENTRY_SIZE) ||
20230c0: 80 a4 60 09 cmp %l1, 9 <== NOT EXECUTED
20230c4: 04 80 00 07 ble 20230e0 <rtems_rfs_shell_dir+0x1a0> <== NOT EXECUTED
20230c8: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
(elength >= rtems_rfs_fs_max_name (fs)))
20230cc: c8 06 20 18 ld [ %i0 + 0x18 ], %g4 <== NOT EXECUTED
20230d0: 80 a4 40 04 cmp %l1, %g4 <== NOT EXECUTED
20230d4: 0a 80 00 07 bcs 20230f0 <rtems_rfs_shell_dir+0x1b0> <== NOT EXECUTED
20230d8: 96 0a e0 ff and %o3, 0xff, %o3 <== NOT EXECUTED
{
printf (" %5d: entry length appears corrupt: %d\n", entry, elength);
20230dc: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
20230e0: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
20230e4: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
20230e8: 10 80 00 14 b 2023138 <rtems_rfs_shell_dir+0x1f8> <== NOT EXECUTED
20230ec: 90 12 23 f8 or %o0, 0x3f8, %o0 <== NOT EXECUTED
rtems_rfs_ino eino;
int elength;
int length;
int c;
eino = rtems_rfs_dir_entry_ino (data);
20230f0: 87 28 e0 18 sll %g3, 0x18, %g3 <== NOT EXECUTED
20230f4: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
20230f8: 96 12 c0 03 or %o3, %g3, %o3 <== NOT EXECUTED
20230fc: 82 08 60 ff and %g1, 0xff, %g1 <== NOT EXECUTED
2023100: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
2023104: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2023108: 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)))
202310c: 96 92 c0 01 orcc %o3, %g1, %o3 <== NOT EXECUTED
2023110: 02 80 00 07 be 202312c <rtems_rfs_shell_dir+0x1ec> <== NOT EXECUTED
2023114: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
2023118: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
202311c: 80 a2 c0 01 cmp %o3, %g1 <== NOT EXECUTED
2023120: 2a 80 00 0a bcs,a 2023148 <rtems_rfs_shell_dir+0x208> <== NOT EXECUTED
2023124: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED
{
printf (" %5d: entry ino appears corrupt: ino=%" PRId32 "\n", entry, eino);
2023128: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
202312c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2023130: 94 10 00 0b mov %o3, %o2 <== NOT EXECUTED
2023134: 90 12 20 20 or %o0, 0x20, %o0 <== NOT EXECUTED
2023138: 40 00 90 b7 call 2047414 <printf> <== NOT EXECUTED
202313c: 01 00 00 00 nop <== NOT EXECUTED
break;
2023140: 10 80 00 2d b 20231f4 <rtems_rfs_shell_dir+0x2b4> <== NOT EXECUTED
2023144: 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]=",
2023148: c2 0c 20 06 ldub [ %l0 + 6 ], %g1 <== NOT EXECUTED
202314c: d8 0c 20 04 ldub [ %l0 + 4 ], %o4 <== NOT EXECUTED
2023150: c4 0c 20 07 ldub [ %l0 + 7 ], %g2 <== NOT EXECUTED
2023154: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
2023158: 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;
202315c: a8 04 7f f6 add %l1, -10, %l4 <== NOT EXECUTED
printf (" %5d: %04x inode=%-6" PRIu32 " hash=%08" PRIx32 " name[%03u]=",
2023160: 99 2b 20 18 sll %o4, 0x18, %o4 <== NOT EXECUTED
2023164: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
2023168: 98 13 00 03 or %o4, %g3, %o4 <== NOT EXECUTED
202316c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2023170: 98 13 00 02 or %o4, %g2, %o4 <== NOT EXECUTED
2023174: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
2023178: 98 13 00 01 or %o4, %g1, %o4 <== NOT EXECUTED
202317c: 40 00 90 a6 call 2047414 <printf> <== NOT EXECUTED
2023180: 9a 10 00 14 mov %l4, %o5 <== NOT EXECUTED
2023184: 80 a5 20 32 cmp %l4, 0x32 <== NOT EXECUTED
2023188: 04 80 00 03 ble 2023194 <rtems_rfs_shell_dir+0x254> <== NOT EXECUTED
202318c: b8 10 00 14 mov %l4, %i4 <== NOT EXECUTED
2023190: b8 10 20 32 mov 0x32, %i4 <== NOT EXECUTED
length);
if (length > 50)
length = 50;
for (c = 0; c < length; c++)
2023194: 10 80 00 05 b 20231a8 <rtems_rfs_shell_dir+0x268> <== NOT EXECUTED
2023198: ba 10 20 00 clr %i5 <== NOT EXECUTED
printf ("%c", data[RTEMS_RFS_DIR_ENTRY_SIZE + c]);
202319c: d0 08 60 0a ldub [ %g1 + 0xa ], %o0 <== NOT EXECUTED
20231a0: 40 00 91 15 call 20475f4 <putchar> <== NOT EXECUTED
20231a4: ba 07 60 01 inc %i5 <== NOT EXECUTED
length);
if (length > 50)
length = 50;
for (c = 0; c < length; c++)
20231a8: 80 a7 40 1c cmp %i5, %i4 <== NOT EXECUTED
20231ac: 06 bf ff fc bl 202319c <rtems_rfs_shell_dir+0x25c> <== NOT EXECUTED
20231b0: 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)
20231b4: 80 a7 00 14 cmp %i4, %l4 <== NOT EXECUTED
20231b8: 36 80 00 05 bge,a 20231cc <rtems_rfs_shell_dir+0x28c> <== NOT EXECUTED
20231bc: a0 04 00 11 add %l0, %l1, %l0 <== NOT EXECUTED
printf ("...");
20231c0: 40 00 90 95 call 2047414 <printf> <== NOT EXECUTED
20231c4: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
printf ("\n");
b += elength;
data += elength;
20231c8: 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;
20231cc: a6 04 c0 11 add %l3, %l1, %l3 <== NOT EXECUTED
data += elength;
entry++;
20231d0: 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");
20231d4: 40 00 91 08 call 20475f4 <putchar> <== NOT EXECUTED
20231d8: 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))
20231dc: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED
20231e0: 82 00 7f f5 add %g1, -11, %g1 <== NOT EXECUTED
20231e4: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED
20231e8: 2a bf ff ad bcs,a 202309c <rtems_rfs_shell_dir+0x15c> <== NOT EXECUTED
20231ec: 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);
20231f0: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
20231f4: 40 00 59 85 call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
20231f8: 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);
20231fc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
handle->dirty = false;
2023200: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
2023204: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
2023208: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
202320c: 7f ff fd a9 call 20228b0 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
2023210: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2023214: 81 c7 e0 08 ret <== NOT EXECUTED
2023218: 81 e8 00 00 restore <== NOT EXECUTED
02022da0 <rtems_rfs_shell_group>:
return 0;
}
static int
rtems_rfs_shell_group (rtems_rfs_file_system* fs, int argc, char *argv[])
{
2022da0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int g;
start = 0;
end = fs->group_count - 1;
switch (argc)
2022da4: 80 a6 60 02 cmp %i1, 2 <== NOT EXECUTED
2022da8: 02 80 00 09 be 2022dcc <rtems_rfs_shell_group+0x2c> <== NOT EXECUTED
2022dac: e0 06 20 20 ld [ %i0 + 0x20 ], %l0 <== NOT EXECUTED
2022db0: 80 a6 60 03 cmp %i1, 3 <== NOT EXECUTED
2022db4: 02 80 00 0d be 2022de8 <rtems_rfs_shell_group+0x48> <== NOT EXECUTED
2022db8: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED
2022dbc: 12 80 00 16 bne 2022e14 <rtems_rfs_shell_group+0x74> <== NOT EXECUTED
2022dc0: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
int start;
int end;
int g;
start = 0;
end = fs->group_count - 1;
2022dc4: 10 80 00 18 b 2022e24 <rtems_rfs_shell_group+0x84> <== NOT EXECUTED
2022dc8: a0 04 3f ff add %l0, -1, %l0 <== NOT EXECUTED
switch (argc)
{
case 1:
break;
case 2:
start = end = strtoul (argv[1], 0, 0);
2022dcc: d0 06 a0 04 ld [ %i2 + 4 ], %o0 <== NOT EXECUTED
2022dd0: 92 10 20 00 clr %o1 <== NOT EXECUTED
2022dd4: 40 00 a0 f2 call 204b19c <strtoul> <== NOT EXECUTED
2022dd8: 94 10 20 00 clr %o2 <== NOT EXECUTED
2022ddc: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
break;
2022de0: 10 80 00 12 b 2022e28 <rtems_rfs_shell_group+0x88> <== NOT EXECUTED
2022de4: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
case 3:
start = strtoul (argv[1], 0, 0);
2022de8: d0 06 a0 04 ld [ %i2 + 4 ], %o0 <== NOT EXECUTED
2022dec: 92 10 20 00 clr %o1 <== NOT EXECUTED
2022df0: 40 00 a0 eb call 204b19c <strtoul> <== NOT EXECUTED
2022df4: 94 10 20 00 clr %o2 <== NOT EXECUTED
2022df8: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
end = strtoul (argv[2], 0, 0);
2022dfc: d0 06 a0 08 ld [ %i2 + 8 ], %o0 <== NOT EXECUTED
2022e00: 92 10 20 00 clr %o1 <== NOT EXECUTED
2022e04: 40 00 a0 e6 call 204b19c <strtoul> <== NOT EXECUTED
2022e08: 94 10 20 00 clr %o2 <== NOT EXECUTED
break;
2022e0c: 10 80 00 07 b 2022e28 <rtems_rfs_shell_group+0x88> <== NOT EXECUTED
2022e10: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
default:
printf ("error: too many arguments.\n");
2022e14: 40 00 92 2c call 20476c4 <puts> <== NOT EXECUTED
2022e18: 90 12 22 b0 or %o0, 0x2b0, %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);
2022e1c: 81 c7 e0 08 ret <== NOT EXECUTED
2022e20: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED
int start;
int end;
int g;
start = 0;
end = fs->group_count - 1;
2022e24: a6 10 20 00 clr %l3 <== NOT EXECUTED
default:
printf ("error: too many arguments.\n");
return 1;
}
if ((start < 0) || (end < 0) ||
2022e28: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
2022e2c: 06 80 00 0a bl 2022e54 <rtems_rfs_shell_group+0xb4> <== NOT EXECUTED
2022e30: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
2022e34: 26 80 00 09 bl,a 2022e58 <rtems_rfs_shell_group+0xb8> <== NOT EXECUTED
2022e38: d2 06 20 20 ld [ %i0 + 0x20 ], %o1 <== NOT EXECUTED
(start >= fs->group_count) || (end >= fs->group_count))
2022e3c: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED
default:
printf ("error: too many arguments.\n");
return 1;
}
if ((start < 0) || (end < 0) ||
2022e40: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED
2022e44: 16 80 00 04 bge 2022e54 <rtems_rfs_shell_group+0xb4> <== NOT EXECUTED
2022e48: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED
2022e4c: 26 80 00 08 bl,a 2022e6c <rtems_rfs_shell_group+0xcc> <== NOT EXECUTED
2022e50: 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);
2022e54: d2 06 20 20 ld [ %i0 + 0x20 ], %o1 <== NOT EXECUTED
2022e58: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
2022e5c: 40 00 91 6e call 2047414 <printf> <== NOT EXECUTED
2022e60: 90 12 22 d0 or %o0, 0x2d0, %o0 ! 20626d0 <rtems_rfs_ops+0x460><== NOT EXECUTED
return 1;
2022e64: 81 c7 e0 08 ret <== NOT EXECUTED
2022e68: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED
2022e6c: a3 2c e0 04 sll %l3, 4, %l1 <== NOT EXECUTED
2022e70: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
2022e74: a4 10 00 13 mov %l3, %l2 <== NOT EXECUTED
2022e78: a7 2c e0 06 sll %l3, 6, %l3 <== NOT EXECUTED
2022e7c: 92 10 20 00 clr %o1 <== NOT EXECUTED
2022e80: 94 10 20 00 clr %o2 <== NOT EXECUTED
2022e84: 7f ff a7 1b call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2022e88: 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",
2022e8c: 27 00 81 89 sethi %hi(0x2062400), %l3 <== NOT EXECUTED
return 1;
}
rtems_rfs_shell_lock_rfs (fs);
for (g = start; g <= end; g++)
2022e90: 10 80 00 24 b 2022f20 <rtems_rfs_shell_group+0x180> <== NOT EXECUTED
2022e94: a6 14 e2 f8 or %l3, 0x2f8, %l3 ! 20626f8 <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);
2022e98: 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];
2022e9c: 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);
2022ea0: f4 00 60 04 ld [ %g1 + 4 ], %i2 <== NOT EXECUTED
2022ea4: 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",
2022ea8: 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);
2022eac: 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);
2022eb0: 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",
2022eb4: 85 2d 60 02 sll %l5, 2, %g2 <== NOT EXECUTED
2022eb8: 83 2d 60 04 sll %l5, 4, %g1 <== NOT EXECUTED
2022ebc: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
2022ec0: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
2022ec4: 91 28 60 02 sll %g1, 2, %o0 <== NOT EXECUTED
2022ec8: 40 00 e0 85 call 205b0dc <.udiv> <== NOT EXECUTED
2022ecc: 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);
2022ed0: ac 25 c0 16 sub %l7, %l6, %l6 <== NOT EXECUTED
printf (" %4d: base=%-7" PRIu32 " size=%-6zu blocks=%-5zu (%3zu%%) inode=%-5zu (%3zu%%)\n",
2022ed4: 83 2d a0 04 sll %l6, 4, %g1 <== NOT EXECUTED
2022ed8: a8 10 00 08 mov %o0, %l4 <== NOT EXECUTED
2022edc: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
2022ee0: ec 23 a0 5c st %l6, [ %sp + 0x5c ] <== NOT EXECUTED
2022ee4: ad 2d a0 02 sll %l6, 2, %l6 <== NOT EXECUTED
2022ee8: ac 05 80 01 add %l6, %g1, %l6 <== NOT EXECUTED
2022eec: 91 2d a0 02 sll %l6, 2, %o0 <== NOT EXECUTED
2022ef0: 40 00 e0 7b call 205b0dc <.udiv> <== NOT EXECUTED
2022ef4: 90 05 80 08 add %l6, %o0, %o0 <== NOT EXECUTED
2022ef8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2022efc: d0 23 a0 60 st %o0, [ %sp + 0x60 ] <== NOT EXECUTED
2022f00: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
2022f04: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
2022f08: 98 10 00 15 mov %l5, %o4 <== NOT EXECUTED
2022f0c: 9a 10 00 14 mov %l4, %o5 <== NOT EXECUTED
return 1;
}
rtems_rfs_shell_lock_rfs (fs);
for (g = start; g <= end; g++)
2022f10: a2 04 60 50 add %l1, 0x50, %l1 <== NOT EXECUTED
2022f14: 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",
2022f18: 40 00 91 3f call 2047414 <printf> <== NOT EXECUTED
2022f1c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
return 1;
}
rtems_rfs_shell_lock_rfs (fs);
for (g = start; g <= end; g++)
2022f20: 80 a4 80 10 cmp %l2, %l0 <== NOT EXECUTED
2022f24: 24 bf ff dd ble,a 2022e98 <rtems_rfs_shell_group+0xf8> <== NOT EXECUTED
2022f28: 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);
2022f2c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2022f30: 7f ff fe 60 call 20228b0 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
2022f34: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2022f38: 81 c7 e0 08 ret <== NOT EXECUTED
2022f3c: 81 e8 00 00 restore <== NOT EXECUTED
020228d0 <rtems_rfs_shell_inode>:
return 0;
}
static int
rtems_rfs_shell_inode (rtems_rfs_file_system* fs, int argc, char *argv[])
{
20228d0: 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;
20228d4: d0 06 20 20 ld [ %i0 + 0x20 ], %o0 <== NOT EXECUTED
20228d8: d2 06 20 28 ld [ %i0 + 0x28 ], %o1 <== NOT EXECUTED
20228dc: 7f ff 80 47 call 20029f8 <.umul> <== NOT EXECUTED
20228e0: 37 00 81 89 sethi %hi(0x2062400), %i3 <== NOT EXECUTED
}
}
else
{
if (have_end && have_start)
printf ("warning: option ignored: %s\n", argv[arg]);
20228e4: b6 16 e1 38 or %i3, 0x138, %i3 ! 2062538 <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;
20228e8: 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;
20228ec: ac 10 00 08 mov %o0, %l6 <== NOT EXECUTED
start = RTEMS_RFS_ROOT_INO;
end = total - 1;
20228f0: aa 10 20 01 mov 1, %l5 <== NOT EXECUTED
20228f4: a2 10 00 17 mov %l7, %l1 <== NOT EXECUTED
20228f8: b8 10 20 00 clr %i4 <== NOT EXECUTED
20228fc: ba 10 20 00 clr %i5 <== NOT EXECUTED
2022900: a4 10 20 00 clr %l2 <== NOT EXECUTED
2022904: a6 10 20 00 clr %l3 <== NOT EXECUTED
2022908: 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++)
202290c: 10 80 00 30 b 20229cc <rtems_rfs_shell_inode+0xfc> <== NOT EXECUTED
2022910: a0 10 20 01 mov 1, %l0 <== NOT EXECUTED
{
if (argv[arg][0] == '-')
2022914: d2 06 80 01 ld [ %i2 + %g1 ], %o1 <== NOT EXECUTED
2022918: c2 4a 40 00 ldsb [ %o1 ], %g1 <== NOT EXECUTED
202291c: 80 a0 60 2d cmp %g1, 0x2d <== NOT EXECUTED
2022920: 12 80 00 12 bne 2022968 <rtems_rfs_shell_inode+0x98> <== NOT EXECUTED
2022924: 80 8f 20 ff btst 0xff, %i4 <== NOT EXECUTED
{
switch (argv[arg][1])
2022928: c2 4a 60 01 ldsb [ %o1 + 1 ], %g1 <== NOT EXECUTED
202292c: 80 a0 60 65 cmp %g1, 0x65 <== NOT EXECUTED
2022930: 02 80 00 08 be 2022950 <rtems_rfs_shell_inode+0x80> <== NOT EXECUTED
2022934: 80 a0 60 66 cmp %g1, 0x66 <== NOT EXECUTED
2022938: 02 80 00 0a be 2022960 <rtems_rfs_shell_inode+0x90> <== NOT EXECUTED
202293c: 80 a0 60 61 cmp %g1, 0x61 <== NOT EXECUTED
2022940: 12 80 00 0f bne 202297c <rtems_rfs_shell_inode+0xac> <== NOT EXECUTED
2022944: 01 00 00 00 nop <== NOT EXECUTED
2022948: 10 80 00 04 b 2022958 <rtems_rfs_shell_inode+0x88> <== NOT EXECUTED
202294c: a8 10 20 01 mov 1, %l4 ! 1 <PROM_START+0x1> <== NOT EXECUTED
2022950: 10 80 00 1e b 20229c8 <rtems_rfs_shell_inode+0xf8> <== NOT EXECUTED
2022954: 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++)
2022958: 10 80 00 1d b 20229cc <rtems_rfs_shell_inode+0xfc> <== NOT EXECUTED
202295c: aa 05 60 01 inc %l5 <== NOT EXECUTED
case 'e':
error_check_only = true;
break;
case 'f':
forced = true;
break;
2022960: 10 80 00 1a b 20229c8 <rtems_rfs_shell_inode+0xf8> <== NOT EXECUTED
2022964: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED
break;
}
}
else
{
if (have_end && have_start)
2022968: 02 80 00 09 be 202298c <rtems_rfs_shell_inode+0xbc> <== NOT EXECUTED
202296c: 82 0f 60 ff and %i5, 0xff, %g1 <== NOT EXECUTED
2022970: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2022974: 02 80 00 09 be 2022998 <rtems_rfs_shell_inode+0xc8> <== NOT EXECUTED
2022978: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED
printf ("warning: option ignored: %s\n", argv[arg]);
202297c: 40 00 92 a6 call 2047414 <printf> <== NOT EXECUTED
2022980: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
break;
}
}
else
{
if (have_end && have_start)
2022984: 10 80 00 12 b 20229cc <rtems_rfs_shell_inode+0xfc> <== NOT EXECUTED
2022988: aa 05 60 01 inc %l5 <== NOT EXECUTED
printf ("warning: option ignored: %s\n", argv[arg]);
else if (!have_start)
202298c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2022990: 12 80 00 09 bne 20229b4 <rtems_rfs_shell_inode+0xe4> <== NOT EXECUTED
2022994: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED
{
start = end = strtoul (argv[arg], 0, 0);
2022998: 94 10 20 00 clr %o2 <== NOT EXECUTED
202299c: 92 10 20 00 clr %o1 <== NOT EXECUTED
20229a0: 40 00 a1 ff call 204b19c <strtoul> <== NOT EXECUTED
20229a4: ba 10 20 01 mov 1, %i5 <== NOT EXECUTED
20229a8: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
20229ac: 10 80 00 07 b 20229c8 <rtems_rfs_shell_inode+0xf8> <== NOT EXECUTED
20229b0: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
have_start = true;
}
else
{
end = strtoul (argv[arg], 0, 0);
20229b4: 94 10 20 00 clr %o2 <== NOT EXECUTED
20229b8: 92 10 20 00 clr %o1 <== NOT EXECUTED
20229bc: 40 00 a1 f8 call 204b19c <strtoul> <== NOT EXECUTED
20229c0: b8 10 20 01 mov 1, %i4 <== NOT EXECUTED
20229c4: 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++)
20229c8: aa 05 60 01 inc %l5 <== NOT EXECUTED
20229cc: 80 a5 40 19 cmp %l5, %i1 <== NOT EXECUTED
20229d0: 06 bf ff d1 bl 2022914 <rtems_rfs_shell_inode+0x44> <== NOT EXECUTED
20229d4: 83 2d 60 02 sll %l5, 2, %g1 <== NOT EXECUTED
have_end = true;
}
}
}
if ((start >= total) || (end >= total))
20229d8: 80 a4 40 16 cmp %l1, %l6 <== NOT EXECUTED
20229dc: 1a 80 00 04 bcc 20229ec <rtems_rfs_shell_inode+0x11c> <== NOT EXECUTED
20229e0: 80 a4 00 16 cmp %l0, %l6 <== NOT EXECUTED
20229e4: 2a 80 00 08 bcs,a 2022a04 <rtems_rfs_shell_inode+0x134> <== NOT EXECUTED
20229e8: c2 06 20 7c ld [ %i0 + 0x7c ], %g1 <== NOT EXECUTED
{
printf ("error: inode out of range (0->%" PRId32 ").\n", total - 1);
20229ec: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
20229f0: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
20229f4: 40 00 92 88 call 2047414 <printf> <== NOT EXECUTED
20229f8: 90 12 21 58 or %o0, 0x158, %o0 ! 2062558 <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",
20229fc: 81 c7 e0 08 ret <== NOT EXECUTED
2022a00: 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);
2022a04: 92 10 20 00 clr %o1 <== NOT EXECUTED
2022a08: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
2022a0c: 94 10 20 00 clr %o2 <== NOT EXECUTED
}
}
if (!error_check_only || error)
{
printf (" %5" PRIu32 ": pos=%06" PRIu32 ":%04zx %c ",
2022a10: 39 00 81 89 sethi %hi(0x2062400), %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)
2022a14: 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=[",
2022a18: 2f 00 81 89 sethi %hi(0x2062400), %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));
2022a1c: 2d 00 81 89 sethi %hi(0x2062400), %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))
2022a20: 2b 00 81 89 sethi %hi(0x2062400), %l5 <== NOT EXECUTED
2022a24: 37 00 81 89 sethi %hi(0x2062400), %i3 <== NOT EXECUTED
2022a28: 7f ff a8 32 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2022a2c: 33 00 81 89 sethi %hi(0x2062400), %i1 <== NOT EXECUTED
}
}
if (!error_check_only || error)
{
printf (" %5" PRIu32 ": pos=%06" PRIu32 ":%04zx %c ",
2022a30: b8 17 21 e0 or %i4, 0x1e0, %i4 <== NOT EXECUTED
2022a34: 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=[",
2022a38: ae 15 e2 38 or %l7, 0x238, %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));
2022a3c: ac 15 a2 70 or %l6, 0x270, %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))
2022a40: aa 15 62 30 or %l5, 0x230, %l5 <== NOT EXECUTED
2022a44: b6 16 e2 28 or %i3, 0x228, %i3 <== NOT EXECUTED
return 1;
}
rtems_rfs_shell_lock_rfs (fs);
for (ino = start; ino <= end; ino++)
2022a48: 10 80 00 cf b 2022d84 <rtems_rfs_shell_inode+0x4b4> <== NOT EXECUTED
2022a4c: b2 16 62 20 or %i1, 0x220, %i1 <== NOT EXECUTED
{
rtems_rfs_inode_handle inode;
bool allocated;
rc = rtems_rfs_group_bitmap_test (fs, true, ino, &allocated);
2022a50: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2022a54: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2022a58: 40 00 67 51 call 203c79c <rtems_rfs_group_bitmap_test> <== NOT EXECUTED
2022a5c: 96 07 bf ff add %fp, -1, %o3 <== NOT EXECUTED
if (rc > 0)
2022a60: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2022a64: 04 80 00 0d ble 2022a98 <rtems_rfs_shell_inode+0x1c8> <== NOT EXECUTED
2022a68: 80 8d 20 ff btst 0xff, %l4 <== NOT EXECUTED
2022a6c: b4 10 00 08 mov %o0, %i2 <== NOT EXECUTED
{
rtems_rfs_shell_unlock_rfs (fs);
2022a70: 7f ff ff 90 call 20228b0 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
2022a74: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
printf ("error: testing inode state: ino=%" PRIu32 ": (%d) %s\n",
2022a78: 40 00 9b 08 call 2049698 <strerror> <== NOT EXECUTED
2022a7c: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
2022a80: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2022a84: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2022a88: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2022a8c: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
2022a90: 10 80 00 b9 b 2022d74 <rtems_rfs_shell_inode+0x4a4> <== NOT EXECUTED
2022a94: 90 12 21 80 or %o0, 0x180, %o0 ! 2062580 <rtems_rfs_ops+0x310><== NOT EXECUTED
ino, rc, strerror (rc));
return 1;
}
if (show_all || allocated)
2022a98: 12 80 00 05 bne 2022aac <rtems_rfs_shell_inode+0x1dc> <== NOT EXECUTED
2022a9c: c2 0f bf ff ldub [ %fp + -1 ], %g1 <== NOT EXECUTED
2022aa0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2022aa4: 22 80 00 b8 be,a 2022d84 <rtems_rfs_shell_inode+0x4b4> <== NOT EXECUTED
2022aa8: a0 04 20 01 inc %l0 <== NOT EXECUTED
{
uint16_t mode;
bool error;
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
2022aac: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2022ab0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2022ab4: 94 07 bf d4 add %fp, -44, %o2 <== NOT EXECUTED
2022ab8: 40 00 69 48 call 203cfd8 <rtems_rfs_inode_open> <== NOT EXECUTED
2022abc: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
2022ac0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2022ac4: 04 80 00 0d ble 2022af8 <rtems_rfs_shell_inode+0x228> <== NOT EXECUTED
2022ac8: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
2022acc: b4 10 00 08 mov %o0, %i2 <== NOT EXECUTED
{
rtems_rfs_shell_unlock_rfs (fs);
2022ad0: 7f ff ff 78 call 20228b0 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
2022ad4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
printf ("error: opening inode handle: ino=%" PRIu32 ": (%d) %s\n",
2022ad8: 40 00 9a f0 call 2049698 <strerror> <== NOT EXECUTED
2022adc: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
2022ae0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2022ae4: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2022ae8: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2022aec: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
2022af0: 10 80 00 a1 b 2022d74 <rtems_rfs_shell_inode+0x4a4> <== NOT EXECUTED
2022af4: 90 12 21 b0 or %o0, 0x1b0, %o0 ! 20625b0 <rtems_rfs_ops+0x340><== NOT EXECUTED
error = false;
mode = rtems_rfs_inode_get_mode (&inode);
if (error_check_only)
2022af8: 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);
2022afc: c4 08 60 03 ldub [ %g1 + 3 ], %g2 <== NOT EXECUTED
2022b00: f4 08 60 02 ldub [ %g1 + 2 ], %i2 <== NOT EXECUTED
2022b04: b5 2e a0 08 sll %i2, 8, %i2 <== NOT EXECUTED
2022b08: 02 80 00 15 be 2022b5c <rtems_rfs_shell_inode+0x28c> <== NOT EXECUTED
2022b0c: b4 16 80 02 or %i2, %g2, %i2 <== NOT EXECUTED
{
if (!RTEMS_RFS_S_ISDIR (mode) &&
2022b10: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
2022b14: 05 00 00 08 sethi %hi(0x2000), %g2 <== NOT EXECUTED
2022b18: 82 0e 80 01 and %i2, %g1, %g1 <== NOT EXECUTED
2022b1c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022b20: 02 80 00 86 be 2022d38 <rtems_rfs_shell_inode+0x468> <== NOT EXECUTED
2022b24: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2022b28: 05 00 00 10 sethi %hi(0x4000), %g2 <== NOT EXECUTED
2022b2c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022b30: 02 80 00 82 be 2022d38 <rtems_rfs_shell_inode+0x468> <== NOT EXECUTED
2022b34: 05 00 00 18 sethi %hi(0x6000), %g2 <== NOT EXECUTED
2022b38: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022b3c: 02 80 00 7f be 2022d38 <rtems_rfs_shell_inode+0x468> <== NOT EXECUTED
2022b40: 05 00 00 20 sethi %hi(0x8000), %g2 <== NOT EXECUTED
2022b44: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022b48: 02 80 00 7c be 2022d38 <rtems_rfs_shell_inode+0x468> <== NOT EXECUTED
2022b4c: 05 00 00 28 sethi %hi(0xa000), %g2 <== NOT EXECUTED
}
#endif
}
}
if (!error_check_only || error)
2022b50: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022b54: 02 80 00 79 be 2022d38 <rtems_rfs_shell_inode+0x468> <== NOT EXECUTED
2022b58: 01 00 00 00 nop <== NOT EXECUTED
{
printf (" %5" PRIu32 ": pos=%06" PRIu32 ":%04zx %c ",
2022b5c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
2022b60: c4 0f bf ff ldub [ %fp + -1 ], %g2 <== NOT EXECUTED
2022b64: d4 07 bf e8 ld [ %fp + -24 ], %o2 <== NOT EXECUTED
2022b68: 80 a0 00 02 cmp %g0, %g2 <== NOT EXECUTED
2022b6c: 97 28 60 06 sll %g1, 6, %o3 <== NOT EXECUTED
2022b70: 83 28 60 03 sll %g1, 3, %g1 <== NOT EXECUTED
2022b74: 98 60 20 00 subx %g0, 0, %o4 <== NOT EXECUTED
2022b78: 96 22 c0 01 sub %o3, %g1, %o3 <== NOT EXECUTED
2022b7c: 98 0b 3f fb and %o4, -5, %o4 <== NOT EXECUTED
2022b80: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
2022b84: 98 03 20 46 add %o4, 0x46, %o4 <== NOT EXECUTED
2022b88: 40 00 92 23 call 2047414 <printf> <== NOT EXECUTED
2022b8c: 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)
2022b90: c2 0f bf ff ldub [ %fp + -1 ], %g1 <== NOT EXECUTED
2022b94: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2022b98: 32 80 00 0a bne,a 2022bc0 <rtems_rfs_shell_inode+0x2f0> <== NOT EXECUTED
2022b9c: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED
2022ba0: 80 8c a0 ff btst 0xff, %l2 <== NOT EXECUTED
2022ba4: 32 80 00 07 bne,a 2022bc0 <rtems_rfs_shell_inode+0x2f0> <== NOT EXECUTED
2022ba8: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED
printf (" --\n");
2022bac: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
2022bb0: 40 00 92 c5 call 20476c4 <puts> <== NOT EXECUTED
2022bb4: 90 12 22 00 or %o0, 0x200, %o0 ! 2062600 <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)
2022bb8: 10 80 00 60 b 2022d38 <rtems_rfs_shell_inode+0x468> <== NOT EXECUTED
2022bbc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
printf (" --\n");
else
{
const char* type;
type = "UKN";
if (RTEMS_RFS_S_ISDIR (mode))
2022bc0: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
2022bc4: 95 36 a0 10 srl %i2, 0x10, %o2 <== NOT EXECUTED
2022bc8: 05 00 00 10 sethi %hi(0x4000), %g2 <== NOT EXECUTED
2022bcc: 82 0a 80 01 and %o2, %g1, %g1 <== NOT EXECUTED
2022bd0: 17 00 81 89 sethi %hi(0x2062400), %o3 <== NOT EXECUTED
2022bd4: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022bd8: 02 80 00 15 be 2022c2c <rtems_rfs_shell_inode+0x35c> <== NOT EXECUTED
2022bdc: 96 12 e2 08 or %o3, 0x208, %o3 <== NOT EXECUTED
type = "DIR";
else if (RTEMS_RFS_S_ISCHR (mode))
2022be0: 05 00 00 08 sethi %hi(0x2000), %g2 <== NOT EXECUTED
2022be4: 17 00 81 89 sethi %hi(0x2062400), %o3 <== NOT EXECUTED
2022be8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022bec: 02 80 00 10 be 2022c2c <rtems_rfs_shell_inode+0x35c> <== NOT EXECUTED
2022bf0: 96 12 e2 10 or %o3, 0x210, %o3 <== NOT EXECUTED
type = "CHR";
else if (RTEMS_RFS_S_ISBLK (mode))
2022bf4: 05 00 00 18 sethi %hi(0x6000), %g2 <== NOT EXECUTED
2022bf8: 17 00 81 89 sethi %hi(0x2062400), %o3 <== NOT EXECUTED
2022bfc: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022c00: 02 80 00 0b be 2022c2c <rtems_rfs_shell_inode+0x35c> <== NOT EXECUTED
2022c04: 96 12 e2 18 or %o3, 0x218, %o3 <== NOT EXECUTED
type = "BLK";
else if (RTEMS_RFS_S_ISREG (mode))
2022c08: 05 00 00 20 sethi %hi(0x8000), %g2 <== NOT EXECUTED
2022c0c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022c10: 02 80 00 07 be 2022c2c <rtems_rfs_shell_inode+0x35c> <== NOT EXECUTED
2022c14: 96 10 00 19 mov %i1, %o3 <== NOT EXECUTED
type = "REG";
else if (RTEMS_RFS_S_ISLNK (mode))
2022c18: 05 00 00 28 sethi %hi(0xa000), %g2 <== NOT EXECUTED
2022c1c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022c20: 12 80 00 03 bne 2022c2c <rtems_rfs_shell_inode+0x35c> <== NOT EXECUTED
2022c24: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
2022c28: 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);
2022c2c: 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=[",
2022c30: b4 10 20 00 clr %i2 <== NOT EXECUTED
2022c34: d0 08 e0 01 ldub [ %g3 + 1 ], %o0 <== NOT EXECUTED
2022c38: c2 08 c0 00 ldub [ %g3 ], %g1 <== NOT EXECUTED
2022c3c: d2 08 e0 0b ldub [ %g3 + 0xb ], %o1 <== NOT EXECUTED
2022c40: 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);
2022c44: 9e 00 e0 0c add %g3, 0xc, %o7 <== NOT EXECUTED
2022c48: da 08 e0 0a ldub [ %g3 + 0xa ], %o5 <== NOT EXECUTED
2022c4c: d8 0b e0 03 ldub [ %o7 + 3 ], %o4 <== NOT EXECUTED
2022c50: c4 0b e0 02 ldub [ %o7 + 2 ], %g2 <== NOT EXECUTED
2022c54: 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);
2022c58: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2022c5c: 82 10 40 08 or %g1, %o0, %g1 <== NOT EXECUTED
2022c60: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
if (links == 0xffff)
2022c64: 91 28 60 10 sll %g1, 0x10, %o0 <== NOT EXECUTED
2022c68: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2022c6c: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED
2022c70: 9b 2b 60 08 sll %o5, 8, %o5 <== NOT EXECUTED
2022c74: 90 1a 00 1d xor %o0, %i5, %o0 <== NOT EXECUTED
2022c78: 9a 12 40 0d or %o1, %o5, %o5 <== NOT EXECUTED
2022c7c: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
2022c80: 89 29 20 18 sll %g4, 0x18, %g4 <== NOT EXECUTED
2022c84: 92 60 20 00 subx %g0, 0, %o1 <== NOT EXECUTED
2022c88: 88 13 00 04 or %o4, %g4, %g4 <== NOT EXECUTED
2022c8c: 92 08 40 09 and %g1, %o1, %o1 <== NOT EXECUTED
2022c90: 82 11 00 03 or %g4, %g3, %g1 <== NOT EXECUTED
2022c94: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2022c98: 93 2a 60 10 sll %o1, 0x10, %o1 <== NOT EXECUTED
2022c9c: c2 23 a0 5c st %g1, [ %sp + 0x5c ] <== NOT EXECUTED
2022ca0: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED
2022ca4: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED
2022ca8: 40 00 91 db call 2047414 <printf> <== NOT EXECUTED
2022cac: 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]);
2022cb0: 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));
2022cb4: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
2022cb8: 82 00 60 1c add %g1, 0x1c, %g1 <== NOT EXECUTED
2022cbc: d2 08 40 1a ldub [ %g1 + %i2 ], %o1 <== NOT EXECUTED
2022cc0: 82 00 40 1a add %g1, %i2, %g1 <== NOT EXECUTED
2022cc4: c4 08 60 02 ldub [ %g1 + 2 ], %g2 <== NOT EXECUTED
2022cc8: c6 08 60 03 ldub [ %g1 + 3 ], %g3 <== NOT EXECUTED
2022ccc: c2 08 60 01 ldub [ %g1 + 1 ], %g1 <== NOT EXECUTED
2022cd0: 93 2a 60 18 sll %o1, 0x18, %o1 <== NOT EXECUTED
2022cd4: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
2022cd8: 92 10 c0 09 or %g3, %o1, %o1 <== NOT EXECUTED
2022cdc: 92 12 40 01 or %o1, %g1, %o1 <== NOT EXECUTED
2022ce0: 83 28 a0 08 sll %g2, 8, %g1 <== NOT EXECUTED
2022ce4: 40 00 91 cc call 2047414 <printf> <== NOT EXECUTED
2022ce8: 92 12 40 01 or %o1, %g1, %o1 <== NOT EXECUTED
2022cec: 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++)
2022cf0: 80 a6 a0 10 cmp %i2, 0x10 <== NOT EXECUTED
2022cf4: 12 bf ff f0 bne 2022cb4 <rtems_rfs_shell_inode+0x3e4> <== NOT EXECUTED
2022cf8: 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));
2022cfc: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
2022d00: 82 00 60 1c add %g1, 0x1c, %g1 <== NOT EXECUTED
2022d04: c4 08 60 12 ldub [ %g1 + 0x12 ], %g2 <== NOT EXECUTED
2022d08: d2 08 60 10 ldub [ %g1 + 0x10 ], %o1 <== NOT EXECUTED
2022d0c: c6 08 60 11 ldub [ %g1 + 0x11 ], %g3 <== NOT EXECUTED
2022d10: c2 08 60 13 ldub [ %g1 + 0x13 ], %g1 <== NOT EXECUTED
2022d14: 93 2a 60 18 sll %o1, 0x18, %o1 <== NOT EXECUTED
2022d18: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
2022d1c: 92 12 40 03 or %o1, %g3, %o1 <== NOT EXECUTED
2022d20: 92 12 40 01 or %o1, %g1, %o1 <== NOT EXECUTED
2022d24: 83 28 a0 08 sll %g2, 8, %g1 <== NOT EXECUTED
2022d28: 90 12 22 78 or %o0, 0x278, %o0 <== NOT EXECUTED
2022d2c: 40 00 91 ba call 2047414 <printf> <== NOT EXECUTED
2022d30: 92 12 40 01 or %o1, %g1, %o1 <== NOT EXECUTED
}
}
rc = rtems_rfs_inode_close (fs, &inode);
2022d34: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2022d38: 40 00 68 7f call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
2022d3c: 92 07 bf d4 add %fp, -44, %o1 <== NOT EXECUTED
if (rc > 0)
2022d40: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2022d44: 24 80 00 10 ble,a 2022d84 <rtems_rfs_shell_inode+0x4b4> <== NOT EXECUTED
2022d48: a0 04 20 01 inc %l0 <== NOT EXECUTED
2022d4c: b4 10 00 08 mov %o0, %i2 <== NOT EXECUTED
{
rtems_rfs_shell_unlock_rfs (fs);
2022d50: 7f ff fe d8 call 20228b0 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
2022d54: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
printf ("error: closing inode handle: ino=%" PRIu32 ": (%d) %s\n",
2022d58: 40 00 9a 50 call 2049698 <strerror> <== NOT EXECUTED
2022d5c: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
2022d60: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2022d64: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2022d68: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2022d6c: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
2022d70: 90 12 22 80 or %o0, 0x280, %o0 ! 2062680 <rtems_rfs_ops+0x410><== NOT EXECUTED
2022d74: 40 00 91 a8 call 2047414 <printf> <== NOT EXECUTED
2022d78: 01 00 00 00 nop <== NOT EXECUTED
ino, rc, strerror (rc));
return 1;
2022d7c: 81 c7 e0 08 ret <== NOT EXECUTED
2022d80: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED
return 1;
}
rtems_rfs_shell_lock_rfs (fs);
for (ino = start; ino <= end; ino++)
2022d84: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED
2022d88: 08 bf ff 32 bleu 2022a50 <rtems_rfs_shell_inode+0x180> <== NOT EXECUTED
2022d8c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
return 1;
}
}
}
rtems_rfs_shell_unlock_rfs (fs);
2022d90: 7f ff fe c8 call 20228b0 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
2022d94: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2022d98: 81 c7 e0 08 ret <== NOT EXECUTED
2022d9c: 81 e8 00 00 restore <== NOT EXECUTED
020228b0 <rtems_rfs_shell_unlock_rfs>:
/**
* Unlock the file system.
*/
static void
rtems_rfs_shell_unlock_rfs (rtems_rfs_file_system* fs)
{
20228b0: 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);
20228b4: e0 06 20 7c ld [ %i0 + 0x7c ], %l0 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
20228b8: 40 00 5b 7f call 20396b4 <rtems_rfs_buffers_release> <== NOT EXECUTED
20228bc: 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);
20228c0: f0 04 00 00 ld [ %l0 ], %i0 <== NOT EXECUTED
20228c4: 7f ff a8 d2 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
20228c8: 81 e8 00 00 restore <== NOT EXECUTED
02022648 <rtems_rfs_shell_usage>:
}
void
rtems_rfs_shell_usage (const char* arg)
{
2022648: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
printf ("%s: RFS debugger\n", arg);
202264c: 11 00 81 88 sethi %hi(0x2062000), %o0 <== NOT EXECUTED
2022650: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
2022654: 40 00 93 70 call 2047414 <printf> <== NOT EXECUTED
2022658: 90 12 22 e0 or %o0, 0x2e0, %o0 <== NOT EXECUTED
printf (" %s [-hl] <path> <command>\n", arg);
202265c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
2022660: 11 00 81 88 sethi %hi(0x2062000), %o0 <== NOT EXECUTED
2022664: 40 00 93 6c call 2047414 <printf> <== NOT EXECUTED
2022668: 90 12 22 f8 or %o0, 0x2f8, %o0 ! 20622f8 <rtems_rfs_ops+0x88><== NOT EXECUTED
printf (" where:\n");
202266c: 11 00 81 88 sethi %hi(0x2062000), %o0 <== NOT EXECUTED
2022670: 40 00 94 15 call 20476c4 <puts> <== NOT EXECUTED
2022674: 90 12 23 18 or %o0, 0x318, %o0 ! 2062318 <rtems_rfs_ops+0xa8><== NOT EXECUTED
printf (" path: Path to the mounted RFS file system\n");
2022678: 11 00 81 88 sethi %hi(0x2062000), %o0 <== NOT EXECUTED
202267c: 40 00 94 12 call 20476c4 <puts> <== NOT EXECUTED
2022680: 90 12 23 28 or %o0, 0x328, %o0 ! 2062328 <rtems_rfs_ops+0xb8><== NOT EXECUTED
printf (" command: A debugger command. See -l for a list plus help.\n");
2022684: 11 00 81 88 sethi %hi(0x2062000), %o0 <== NOT EXECUTED
2022688: 40 00 94 0f call 20476c4 <puts> <== NOT EXECUTED
202268c: 90 12 23 60 or %o0, 0x360, %o0 ! 2062360 <rtems_rfs_ops+0xf0><== NOT EXECUTED
printf (" -h: This help\n");
2022690: 11 00 81 88 sethi %hi(0x2062000), %o0 <== NOT EXECUTED
2022694: 40 00 94 0c call 20476c4 <puts> <== NOT EXECUTED
2022698: 90 12 23 a0 or %o0, 0x3a0, %o0 ! 20623a0 <rtems_rfs_ops+0x130><== NOT EXECUTED
printf (" -l: The debugger command list.\n");
202269c: 31 00 81 88 sethi %hi(0x2062000), %i0 <== NOT EXECUTED
20226a0: 40 00 94 09 call 20476c4 <puts> <== NOT EXECUTED
20226a4: 91 ee 23 b8 restore %i0, 0x3b8, %o0 <== NOT EXECUTED
0203d5bc <rtems_rfs_symlink>:
const char* link,
int link_length,
uid_t uid,
gid_t gid,
rtems_rfs_ino parent)
{
203d5bc: 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))
203d5c0: 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)
{
203d5c4: 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))
203d5c8: 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)
{
203d5cc: 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))
203d5d0: 1a 80 00 6b bcc 203d77c <rtems_rfs_symlink+0x1c0> <== NOT EXECUTED
203d5d4: b0 10 20 5b mov 0x5b, %i0 <== NOT EXECUTED
return ENAMETOOLONG;
rc = rtems_rfs_inode_create (fs, parent, name, strlen (name),
203d5d8: 40 00 31 3c call 2049ac8 <strlen> <== NOT EXECUTED
203d5dc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
203d5e0: d2 07 a0 60 ld [ %fp + 0x60 ], %o1 <== NOT EXECUTED
203d5e4: 82 07 bf fc add %fp, -4, %g1 <== NOT EXECUTED
203d5e8: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
203d5ec: bb 2f 60 10 sll %i5, 0x10, %i5 <== NOT EXECUTED
203d5f0: a3 2c 60 10 sll %l1, 0x10, %l1 <== NOT EXECUTED
203d5f4: bb 37 60 10 srl %i5, 0x10, %i5 <== NOT EXECUTED
203d5f8: a3 34 60 10 srl %l1, 0x10, %l1 <== NOT EXECUTED
203d5fc: fa 23 a0 5c st %i5, [ %sp + 0x5c ] <== NOT EXECUTED
203d600: e2 23 a0 60 st %l1, [ %sp + 0x60 ] <== NOT EXECUTED
203d604: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
203d608: c2 23 a0 64 st %g1, [ %sp + 0x64 ] <== NOT EXECUTED
203d60c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d610: 19 00 00 28 sethi %hi(0xa000), %o4 <== NOT EXECUTED
203d614: 9a 10 20 01 mov 1, %o5 <== NOT EXECUTED
203d618: 7f ff fe d1 call 203d15c <rtems_rfs_inode_create> <== NOT EXECUTED
203d61c: 98 13 21 ff or %o4, 0x1ff, %o4 <== NOT EXECUTED
RTEMS_RFS_S_SYMLINK,
1, uid, gid, &ino);
if (rc > 0)
203d620: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d624: 14 80 00 56 bg 203d77c <rtems_rfs_symlink+0x1c0> <== NOT EXECUTED
203d628: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
return rc;
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
203d62c: a2 07 bf c4 add %fp, -60, %l1 <== NOT EXECUTED
203d630: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d634: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
203d638: 7f ff fe 68 call 203cfd8 <rtems_rfs_inode_open> <== NOT EXECUTED
203d63c: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
203d640: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d644: 14 80 00 4e bg 203d77c <rtems_rfs_symlink+0x1c0> <== NOT EXECUTED
203d648: 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)
203d64c: 18 80 00 15 bgu 203d6a0 <rtems_rfs_symlink+0xe4> <== NOT EXECUTED
203d650: a4 07 bf 74 add %fp, -140, %l2 <== NOT EXECUTED
{
memset (inode.node->data.name, 0, RTEMS_RFS_INODE_DATA_NAME_SIZE);
203d654: d0 07 bf d0 ld [ %fp + -48 ], %o0 <== NOT EXECUTED
203d658: 92 10 20 00 clr %o1 <== NOT EXECUTED
203d65c: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
203d660: 40 00 23 51 call 20463a4 <memset> <== NOT EXECUTED
203d664: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED
memcpy (inode.node->data.name, link, link_length);
203d668: d0 07 bf d0 ld [ %fp + -48 ], %o0 <== NOT EXECUTED
203d66c: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
203d670: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED
203d674: 40 00 22 b9 call 2046158 <memcpy> <== NOT EXECUTED
203d678: 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);
203d67c: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED
203d680: c0 28 60 0c clrb [ %g1 + 0xc ] <== NOT EXECUTED
203d684: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED
203d688: c0 28 60 0d clrb [ %g1 + 0xd ] <== NOT EXECUTED
203d68c: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED
203d690: c0 28 60 0e clrb [ %g1 + 0xe ] <== NOT EXECUTED
203d694: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED
203d698: 10 80 00 3b b 203d784 <rtems_rfs_symlink+0x1c8> <== NOT EXECUTED
203d69c: 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);
203d6a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d6a4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203d6a8: 7f ff ef 86 call 20394c0 <rtems_rfs_block_map_open> <== NOT EXECUTED
203d6ac: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
if (rc > 0)
203d6b0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d6b4: 14 80 00 30 bg 203d774 <rtems_rfs_symlink+0x1b8> <== NOT EXECUTED
203d6b8: 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);
203d6bc: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203d6c0: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203d6c4: 7f ff ee 28 call 2038f64 <rtems_rfs_block_map_grow> <== NOT EXECUTED
203d6c8: 96 07 bf f8 add %fp, -8, %o3 <== NOT EXECUTED
if (rc > 0)
203d6cc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d6d0: 14 80 00 0e bg 203d708 <rtems_rfs_symlink+0x14c> <== NOT EXECUTED
203d6d4: 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);
203d6d8: 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;
203d6dc: c0 2f bf ec clrb [ %fp + -20 ] <== NOT EXECUTED
handle->bnum = 0;
203d6e0: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
handle->buffer = NULL;
203d6e4: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
203d6e8: a6 07 bf ec add %fp, -20, %l3 <== NOT EXECUTED
203d6ec: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d6f0: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203d6f4: 7f ff f0 8f call 2039930 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203d6f8: 96 10 20 00 clr %o3 <== NOT EXECUTED
if (rc > 0)
203d6fc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d700: 04 80 00 06 ble 203d718 <rtems_rfs_symlink+0x15c> <== NOT EXECUTED
203d704: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
{
rtems_rfs_block_map_close (fs, &map);
203d708: 7f ff ee fd call 20392fc <rtems_rfs_block_map_close> <== NOT EXECUTED
203d70c: 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);
203d710: 10 80 00 19 b 203d774 <rtems_rfs_symlink+0x1b8> <== NOT EXECUTED
203d714: 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);
203d718: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
memset (data, 0xff, rtems_rfs_fs_block_size (fs));
203d71c: 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);
203d720: f2 00 60 24 ld [ %g1 + 0x24 ], %i1 <== NOT EXECUTED
memset (data, 0xff, rtems_rfs_fs_block_size (fs));
203d724: 92 10 20 ff mov 0xff, %o1 <== NOT EXECUTED
203d728: 40 00 23 1f call 20463a4 <memset> <== NOT EXECUTED
203d72c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
memcpy (data, link, link_length);
203d730: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
203d734: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
203d738: 40 00 22 88 call 2046158 <memcpy> <== NOT EXECUTED
203d73c: 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);
203d740: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203d744: 7f ff f0 31 call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203d748: 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);
203d74c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
handle->dirty = false;
203d750: c0 2f bf ec clrb [ %fp + -20 ] <== NOT EXECUTED
handle->bnum = 0;
203d754: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
handle->buffer = NULL;
203d758: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
203d75c: 7f ff ee e8 call 20392fc <rtems_rfs_block_map_close> <== NOT EXECUTED
203d760: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc > 0)
203d764: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d768: 04 80 00 08 ble 203d788 <rtems_rfs_symlink+0x1cc> <== NOT EXECUTED
203d76c: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
203d770: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d774: 7f ff fd f0 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203d778: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
203d77c: 81 c7 e0 08 ret <== NOT EXECUTED
203d780: 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);
203d784: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED
203d788: 85 37 20 08 srl %i4, 8, %g2 <== NOT EXECUTED
203d78c: c4 28 60 0a stb %g2, [ %g1 + 0xa ] <== NOT EXECUTED
203d790: 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);
203d794: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d798: f8 28 60 0b stb %i4, [ %g1 + 0xb ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203d79c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203d7a0: 92 07 bf c4 add %fp, -60, %o1 <== NOT EXECUTED
203d7a4: 7f ff fd e4 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203d7a8: c2 2f bf d4 stb %g1, [ %fp + -44 ] <== NOT EXECUTED
203d7ac: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
return rc;
}
203d7b0: 81 c7 e0 08 ret <== NOT EXECUTED
203d7b4: 81 e8 00 00 restore <== NOT EXECUTED
0203d3f0 <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)
{
203d3f0: 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);
203d3f4: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
203d3f8: 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)
{
203d3fc: 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);
203d400: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203d404: a2 07 bf c8 add %fp, -56, %l1 <== NOT EXECUTED
203d408: 7f ff fe f4 call 203cfd8 <rtems_rfs_inode_open> <== NOT EXECUTED
203d40c: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc)
203d410: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d414: 12 80 00 15 bne 203d468 <rtems_rfs_symlink_read+0x78> <== NOT EXECUTED
203d418: d2 07 bf d4 ld [ %fp + -44 ], %o1 <== NOT EXECUTED
return rc;
if (!RTEMS_RFS_S_ISLNK (rtems_rfs_inode_get_mode (&inode)))
203d41c: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
203d420: c4 0a 60 02 ldub [ %o1 + 2 ], %g2 <== NOT EXECUTED
203d424: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203d428: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED
203d42c: 03 00 00 28 sethi %hi(0xa000), %g1 <== NOT EXECUTED
203d430: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203d434: 12 80 00 0a bne 203d45c <rtems_rfs_symlink_read+0x6c> <== NOT EXECUTED
203d438: 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);
203d43c: d4 0a 60 0a ldub [ %o1 + 0xa ], %o2 <== NOT EXECUTED
203d440: c2 0a 60 0b ldub [ %o1 + 0xb ], %g1 <== NOT EXECUTED
203d444: 95 2a a0 08 sll %o2, 8, %o2 <== NOT EXECUTED
203d448: 94 10 40 0a or %g1, %o2, %o2 <== NOT EXECUTED
if (size < *length)
203d44c: 80 a6 c0 0a cmp %i3, %o2 <== NOT EXECUTED
203d450: 1a 80 00 08 bcc 203d470 <rtems_rfs_symlink_read+0x80> <== NOT EXECUTED
203d454: d4 27 00 00 st %o2, [ %i4 ] <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
203d458: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d45c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203d460: 7f ff fe b5 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203d464: b0 10 20 16 mov 0x16, %i0 <== NOT EXECUTED
return EINVAL;
203d468: 81 c7 e0 08 ret <== NOT EXECUTED
203d46c: 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);
203d470: 82 02 60 0c add %o1, 0xc, %g1 <== NOT EXECUTED
}
if (rtems_rfs_inode_get_block_count (&inode) == 0)
203d474: c4 08 60 03 ldub [ %g1 + 3 ], %g2 <== NOT EXECUTED
203d478: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203d47c: 12 80 00 13 bne 203d4c8 <rtems_rfs_symlink_read+0xd8> <== NOT EXECUTED
203d480: a2 07 bf c8 add %fp, -56, %l1 <== NOT EXECUTED
203d484: c4 0a 60 0c ldub [ %o1 + 0xc ], %g2 <== NOT EXECUTED
203d488: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203d48c: 12 80 00 10 bne 203d4cc <rtems_rfs_symlink_read+0xdc> <== NOT EXECUTED
203d490: a4 07 bf 78 add %fp, -136, %l2 <== NOT EXECUTED
203d494: c4 08 60 01 ldub [ %g1 + 1 ], %g2 <== NOT EXECUTED
203d498: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203d49c: 12 80 00 0d bne 203d4d0 <rtems_rfs_symlink_read+0xe0> <== NOT EXECUTED
203d4a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d4a4: c2 08 60 02 ldub [ %g1 + 2 ], %g1 <== NOT EXECUTED
203d4a8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203d4ac: 32 80 00 0a bne,a 203d4d4 <rtems_rfs_symlink_read+0xe4> <== NOT EXECUTED
203d4b0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
{
memcpy (path, inode.node->data.name, *length);
203d4b4: 92 02 60 1c add %o1, 0x1c, %o1 <== NOT EXECUTED
203d4b8: 40 00 23 28 call 2046158 <memcpy> <== NOT EXECUTED
203d4bc: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
return rc;
}
}
path[*length] = '\0';
203d4c0: 10 80 00 38 b 203d5a0 <rtems_rfs_symlink_read+0x1b0> <== NOT EXECUTED
203d4c4: 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);
203d4c8: a4 07 bf 78 add %fp, -136, %l2 <== NOT EXECUTED
203d4cc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d4d0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203d4d4: 7f ff ef fb call 20394c0 <rtems_rfs_block_map_open> <== NOT EXECUTED
203d4d8: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
if (rc > 0)
203d4dc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d4e0: 14 80 00 2c bg 203d590 <rtems_rfs_symlink_read+0x1a0> <== NOT EXECUTED
203d4e4: 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);
203d4e8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203d4ec: 94 10 20 00 clr %o2 <== NOT EXECUTED
203d4f0: 96 10 20 00 clr %o3 <== NOT EXECUTED
203d4f4: 7f ff ed 3a call 20389dc <rtems_rfs_block_map_seek> <== NOT EXECUTED
203d4f8: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
if (rc > 0)
203d4fc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d500: 14 80 00 0e bg 203d538 <rtems_rfs_symlink_read+0x148> <== NOT EXECUTED
203d504: 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);
203d508: 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;
203d50c: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
203d510: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
203d514: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
203d518: a6 07 bf f0 add %fp, -16, %l3 <== NOT EXECUTED
203d51c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d520: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203d524: 7f ff f1 03 call 2039930 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203d528: 96 10 20 00 clr %o3 <== NOT EXECUTED
if (rc > 0)
203d52c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d530: 04 80 00 06 ble 203d548 <rtems_rfs_symlink_read+0x158> <== NOT EXECUTED
203d534: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
{
rtems_rfs_block_map_close (fs, &map);
203d538: 7f ff ef 71 call 20392fc <rtems_rfs_block_map_close> <== NOT EXECUTED
203d53c: 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);
203d540: 10 80 00 14 b 203d590 <rtems_rfs_symlink_read+0x1a0> <== NOT EXECUTED
203d544: 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);
203d548: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
203d54c: d4 07 00 00 ld [ %i4 ], %o2 <== NOT EXECUTED
203d550: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
203d554: 40 00 23 01 call 2046158 <memcpy> <== NOT EXECUTED
203d558: 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);
203d55c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203d560: 7f ff f0 aa call 2039808 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203d564: 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);
203d568: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
handle->dirty = false;
203d56c: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
203d570: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
203d574: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
203d578: 7f ff ef 61 call 20392fc <rtems_rfs_block_map_close> <== NOT EXECUTED
203d57c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc > 0)
203d580: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d584: 24 80 00 07 ble,a 203d5a0 <rtems_rfs_symlink_read+0x1b0> <== NOT EXECUTED
203d588: c2 07 00 00 ld [ %i4 ], %g1 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
203d58c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d590: 7f ff fe 69 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203d594: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
203d598: 81 c7 e0 08 ret <== NOT EXECUTED
203d59c: 81 e8 00 00 restore <== NOT EXECUTED
}
}
path[*length] = '\0';
rc = rtems_rfs_inode_close (fs, &inode);
203d5a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
return rc;
}
}
path[*length] = '\0';
203d5a4: c0 2e 80 01 clrb [ %i2 + %g1 ] <== NOT EXECUTED
rc = rtems_rfs_inode_close (fs, &inode);
203d5a8: 7f ff fe 63 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203d5ac: 92 07 bf c8 add %fp, -56, %o1 <== NOT EXECUTED
203d5b0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
return rc;
}
203d5b4: 81 c7 e0 08 ret <== NOT EXECUTED
203d5b8: 81 e8 00 00 restore <== NOT EXECUTED
0203d7b8 <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)
{
203d7b8: 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);
203d7bc: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
203d7c0: 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)
{
203d7c4: 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);
203d7c8: a2 07 bf b0 add %fp, -80, %l1 <== NOT EXECUTED
203d7cc: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
203d7d0: 7f ff fe 02 call 203cfd8 <rtems_rfs_inode_open> <== NOT EXECUTED
203d7d4: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc)
203d7d8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d7dc: 12 80 00 17 bne 203d838 <rtems_rfs_unlink+0x80> <== NOT EXECUTED
203d7e0: 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));
203d7e4: 05 00 00 3c sethi %hi(0xf000), %g2 <== NOT EXECUTED
203d7e8: c2 08 60 02 ldub [ %g1 + 2 ], %g1 <== NOT EXECUTED
203d7ec: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
203d7f0: 82 08 40 02 and %g1, %g2, %g1 <== NOT EXECUTED
203d7f4: 05 00 00 10 sethi %hi(0x4000), %g2 <== NOT EXECUTED
203d7f8: 82 18 40 02 xor %g1, %g2, %g1 <== NOT EXECUTED
203d7fc: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
203d800: a4 60 3f ff subx %g0, -1, %l2 <== NOT EXECUTED
if (dir)
203d804: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
203d808: 02 80 00 13 be 203d854 <rtems_rfs_unlink+0x9c> <== NOT EXECUTED
203d80c: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED
{
switch (dir_mode)
203d810: 22 80 00 07 be,a 203d82c <rtems_rfs_unlink+0x74> <== NOT EXECUTED
203d814: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d818: 80 a7 20 01 cmp %i4, 1 <== NOT EXECUTED
203d81c: 12 80 00 0f bne 203d858 <rtems_rfs_unlink+0xa0> <== NOT EXECUTED
203d820: 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);
203d824: 10 80 00 07 b 203d840 <rtems_rfs_unlink+0x88> <== NOT EXECUTED
203d828: 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);
203d82c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203d830: 7f ff fd c1 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203d834: b0 10 20 15 mov 0x15, %i0 <== NOT EXECUTED
return EISDIR;
203d838: 81 c7 e0 08 ret <== NOT EXECUTED
203d83c: 81 e8 00 00 restore <== NOT EXECUTED
case rtems_rfs_unlink_dir_if_empty:
rc = rtems_rfs_dir_empty (fs, &target_inode);
203d840: 7f ff f0 cc call 2039b70 <rtems_rfs_dir_empty> <== NOT EXECUTED
203d844: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc > 0)
203d848: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d84c: 14 80 00 31 bg 203d910 <rtems_rfs_unlink+0x158> <== NOT EXECUTED
203d850: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
default:
break;
}
}
rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);
203d854: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203d858: a2 07 bf d8 add %fp, -40, %l1 <== NOT EXECUTED
203d85c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d860: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
203d864: 7f ff fd dd call 203cfd8 <rtems_rfs_inode_open> <== NOT EXECUTED
203d868: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc)
203d86c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d870: 12 80 00 4e bne 203d9a8 <rtems_rfs_unlink+0x1f0> <== NOT EXECUTED
203d874: 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);
203d878: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
203d87c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d880: 7f ff f1 e2 call 203a008 <rtems_rfs_dir_del_entry> <== NOT EXECUTED
203d884: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc > 0)
203d888: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d88c: 14 80 00 44 bg 203d99c <rtems_rfs_unlink+0x1e4> <== NOT EXECUTED
203d890: 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)
203d894: 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);
203d898: c6 08 60 01 ldub [ %g1 + 1 ], %g3 <== NOT EXECUTED
203d89c: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED
if (links == 0xffff)
203d8a0: 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);
203d8a4: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203d8a8: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
if (links == 0xffff)
203d8ac: 87 28 a0 10 sll %g2, 0x10, %g3 <== NOT EXECUTED
203d8b0: 87 30 e0 10 srl %g3, 0x10, %g3 <== NOT EXECUTED
203d8b4: 80 a0 c0 04 cmp %g3, %g4 <== NOT EXECUTED
203d8b8: 02 80 00 0b be 203d8e4 <rtems_rfs_unlink+0x12c> <== NOT EXECUTED
203d8bc: 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)
203d8c0: 08 80 00 09 bleu 203d8e4 <rtems_rfs_unlink+0x12c> <== NOT EXECUTED
203d8c4: 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);
203d8c8: 87 30 a0 08 srl %g2, 8, %g3 <== NOT EXECUTED
203d8cc: c6 28 40 00 stb %g3, [ %g1 ] <== NOT EXECUTED
203d8d0: c2 07 bf bc ld [ %fp + -68 ], %g1 <== NOT EXECUTED
203d8d4: c4 28 60 01 stb %g2, [ %g1 + 1 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203d8d8: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203d8dc: 10 80 00 28 b 203d97c <rtems_rfs_unlink+0x1c4> <== NOT EXECUTED
203d8e0: 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);
203d8e4: a2 07 bf b0 add %fp, -80, %l1 <== NOT EXECUTED
203d8e8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d8ec: 7f ff fd ee call 203d0a4 <rtems_rfs_inode_delete> <== NOT EXECUTED
203d8f0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc > 0)
203d8f4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d8f8: 04 80 00 08 ble 203d918 <rtems_rfs_unlink+0x160> <== NOT EXECUTED
203d8fc: 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);
203d900: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d904: 7f ff fd 8c call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203d908: 92 07 bf d8 add %fp, -40, %o1 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &target_inode);
203d90c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d910: 10 80 00 2f b 203d9cc <rtems_rfs_unlink+0x214> <== NOT EXECUTED
203d914: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
}
if (dir)
203d918: 02 80 00 1a be 203d980 <rtems_rfs_unlink+0x1c8> <== NOT EXECUTED
203d91c: 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);
203d920: c4 07 bf e4 ld [ %fp + -28 ], %g2 <== NOT EXECUTED
203d924: c2 08 a0 01 ldub [ %g2 + 1 ], %g1 <== NOT EXECUTED
203d928: c6 08 80 00 ldub [ %g2 ], %g3 <== NOT EXECUTED
203d92c: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
203d930: 86 10 c0 01 or %g3, %g1, %g3 <== NOT EXECUTED
if (links == 0xffff)
203d934: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED
203d938: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff <PROM_START+0xffff> <== NOT EXECUTED
203d93c: 89 28 e0 10 sll %g3, 0x10, %g4 <== NOT EXECUTED
203d940: 89 31 20 10 srl %g4, 0x10, %g4 <== NOT EXECUTED
203d944: 80 a1 00 01 cmp %g4, %g1 <== NOT EXECUTED
203d948: 12 80 00 04 bne 203d958 <rtems_rfs_unlink+0x1a0> <== NOT EXECUTED
203d94c: 82 10 00 03 mov %g3, %g1 <== NOT EXECUTED
203d950: 10 80 00 05 b 203d964 <rtems_rfs_unlink+0x1ac> <== NOT EXECUTED
203d954: 82 10 20 00 clr %g1 <== NOT EXECUTED
{
links = rtems_rfs_inode_get_links (&parent_inode);
if (links > 1)
203d958: 80 a1 20 01 cmp %g4, 1 <== NOT EXECUTED
203d95c: 38 80 00 02 bgu,a 203d964 <rtems_rfs_unlink+0x1ac> <== NOT EXECUTED
203d960: 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);
203d964: 87 30 60 08 srl %g1, 8, %g3 <== NOT EXECUTED
203d968: c6 28 80 00 stb %g3, [ %g2 ] <== NOT EXECUTED
203d96c: c4 07 bf e4 ld [ %fp + -28 ], %g2 <== NOT EXECUTED
203d970: c2 28 a0 01 stb %g1, [ %g2 + 1 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203d974: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203d978: 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);
203d97c: a2 07 bf d8 add %fp, -40, %l1 <== NOT EXECUTED
203d980: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
203d984: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203d988: 7f ff fc c1 call 203cc8c <rtems_rfs_inode_time_stamp_now> <== NOT EXECUTED
203d98c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
if (rc > 0)
203d990: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d994: 24 80 00 08 ble,a 203d9b4 <rtems_rfs_unlink+0x1fc> <== NOT EXECUTED
203d998: 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);
203d99c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203d9a0: 7f ff fd 65 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203d9a4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &target_inode);
203d9a8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d9ac: 10 80 00 08 b 203d9cc <rtems_rfs_unlink+0x214> <== NOT EXECUTED
203d9b0: 92 07 bf b0 add %fp, -80, %o1 <== NOT EXECUTED
return rc;
}
rc = rtems_rfs_inode_close (fs, &parent_inode);
203d9b4: 7f ff fd 60 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203d9b8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc > 0)
203d9bc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d9c0: 04 80 00 07 ble 203d9dc <rtems_rfs_unlink+0x224> <== NOT EXECUTED
203d9c4: 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);
203d9c8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d9cc: 7f ff fd 5a call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203d9d0: 01 00 00 00 nop <== NOT EXECUTED
return rc;
203d9d4: 81 c7 e0 08 ret <== NOT EXECUTED
203d9d8: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = rtems_rfs_inode_close (fs, &target_inode);
203d9dc: 7f ff fd 56 call 203cf34 <rtems_rfs_inode_close> <== NOT EXECUTED
203d9e0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d9e4: 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;
}
203d9e8: 81 c7 e0 08 ret <== NOT EXECUTED
203d9ec: 81 e8 00 00 restore <== NOT EXECUTED
02023628 <rtems_shell_debugrfs>:
printf (" -l: The debugger command list.\n");
}
int
rtems_shell_debugrfs (int argc, char *argv[])
{
2023628: 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>" }
};
202362c: 13 00 81 8b sethi %hi(0x2062c00), %o1 <== NOT EXECUTED
2023630: 90 07 bf 74 add %fp, -140, %o0 <== NOT EXECUTED
2023634: 92 12 61 78 or %o1, 0x178, %o1 <== NOT EXECUTED
2023638: 40 00 8a c8 call 2046158 <memcpy> <== NOT EXECUTED
202363c: 94 10 20 3c mov 0x3c, %o2 <== NOT EXECUTED
int arg;
int t;
for (arg = 1; arg < argc; arg++)
2023640: 80 a6 20 01 cmp %i0, 1 <== NOT EXECUTED
2023644: 04 80 00 32 ble 202370c <rtems_shell_debugrfs+0xe4> <== NOT EXECUTED
2023648: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
{
if (argv[arg][0] != '-')
202364c: e2 06 60 04 ld [ %i1 + 4 ], %l1 <== NOT EXECUTED
2023650: c2 4c 40 00 ldsb [ %l1 ], %g1 <== NOT EXECUTED
2023654: 80 a0 60 2d cmp %g1, 0x2d <== NOT EXECUTED
2023658: 12 80 00 2b bne 2023704 <rtems_shell_debugrfs+0xdc> <== NOT EXECUTED
202365c: 80 a6 20 02 cmp %i0, 2 <== NOT EXECUTED
break;
switch (argv[arg][1])
2023660: c2 4c 60 01 ldsb [ %l1 + 1 ], %g1 <== NOT EXECUTED
2023664: 80 a0 60 68 cmp %g1, 0x68 <== NOT EXECUTED
2023668: 02 80 00 06 be 2023680 <rtems_shell_debugrfs+0x58> <== NOT EXECUTED
202366c: 80 a0 60 6c cmp %g1, 0x6c <== NOT EXECUTED
2023670: 32 80 00 22 bne,a 20236f8 <rtems_shell_debugrfs+0xd0> <== NOT EXECUTED
2023674: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
{
case 'h':
rtems_rfs_shell_usage (argv[0]);
return 0;
case 'l':
printf ("%s: commands are:\n", argv[0]);
2023678: 10 80 00 06 b 2023690 <rtems_shell_debugrfs+0x68> <== NOT EXECUTED
202367c: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED
break;
switch (argv[arg][1])
{
case 'h':
rtems_rfs_shell_usage (argv[0]);
2023680: 7f ff fb f2 call 2022648 <rtems_rfs_shell_usage> <== NOT EXECUTED
2023684: 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);
2023688: 10 80 00 77 b 2023864 <rtems_shell_debugrfs+0x23c> <== NOT EXECUTED
202368c: 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]);
2023690: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
2023694: 40 00 8f 60 call 2047414 <printf> <== NOT EXECUTED
2023698: 90 12 23 18 or %o0, 0x318, %o0 ! 2062b18 <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);
202369c: d2 07 bf 74 ld [ %fp + -140 ], %o1 <== NOT EXECUTED
20236a0: d4 07 bf 7c ld [ %fp + -132 ], %o2 <== NOT EXECUTED
20236a4: 21 00 81 8a sethi %hi(0x2062800), %l0 <== NOT EXECUTED
20236a8: 40 00 8f 5b call 2047414 <printf> <== NOT EXECUTED
20236ac: 90 14 23 30 or %l0, 0x330, %o0 ! 2062b30 <rtems_rfs_ops+0x8c0><== NOT EXECUTED
20236b0: d2 07 bf 80 ld [ %fp + -128 ], %o1 <== NOT EXECUTED
20236b4: d4 07 bf 88 ld [ %fp + -120 ], %o2 <== NOT EXECUTED
20236b8: 40 00 8f 57 call 2047414 <printf> <== NOT EXECUTED
20236bc: 90 14 23 30 or %l0, 0x330, %o0 <== NOT EXECUTED
20236c0: d2 07 bf 8c ld [ %fp + -116 ], %o1 <== NOT EXECUTED
20236c4: d4 07 bf 94 ld [ %fp + -108 ], %o2 <== NOT EXECUTED
20236c8: 40 00 8f 53 call 2047414 <printf> <== NOT EXECUTED
20236cc: 90 14 23 30 or %l0, 0x330, %o0 <== NOT EXECUTED
20236d0: d2 07 bf 98 ld [ %fp + -104 ], %o1 <== NOT EXECUTED
20236d4: d4 07 bf a0 ld [ %fp + -96 ], %o2 <== NOT EXECUTED
20236d8: 40 00 8f 4f call 2047414 <printf> <== NOT EXECUTED
20236dc: 90 14 23 30 or %l0, 0x330, %o0 <== NOT EXECUTED
20236e0: d2 07 bf a4 ld [ %fp + -92 ], %o1 <== NOT EXECUTED
20236e4: d4 07 bf ac ld [ %fp + -84 ], %o2 <== NOT EXECUTED
20236e8: 40 00 8f 4b call 2047414 <printf> <== NOT EXECUTED
20236ec: 90 14 23 30 or %l0, 0x330, %o0 <== NOT EXECUTED
20236f0: 10 80 00 5d b 2023864 <rtems_shell_debugrfs+0x23c> <== NOT EXECUTED
20236f4: 90 10 20 00 clr %o0 <== NOT EXECUTED
return 0;
default:
printf ("error: unknown option: %s\n", argv[arg]);
20236f8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20236fc: 10 80 00 57 b 2023858 <rtems_shell_debugrfs+0x230> <== NOT EXECUTED
2023700: 90 12 23 40 or %o0, 0x340, %o0 <== NOT EXECUTED
return 1;
}
}
if ((argc - arg) < 2)
2023704: 32 80 00 06 bne,a 202371c <rtems_shell_debugrfs+0xf4> <== NOT EXECUTED
2023708: 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]);
202370c: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
2023710: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED
2023714: 10 80 00 51 b 2023858 <rtems_shell_debugrfs+0x230> <== NOT EXECUTED
2023718: 90 12 23 60 or %o0, 0x360, %o0 <== NOT EXECUTED
rtems_rfs_get_fs (const char* path, rtems_rfs_file_system** fs)
{
struct statvfs sb;
int rc;
rc = statvfs (path, &sb);
202371c: 40 00 1b 78 call 202a4fc <statvfs> <== NOT EXECUTED
2023720: 92 07 bf b0 add %fp, -80, %o1 <== NOT EXECUTED
if (rc < 0)
2023724: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023728: 16 80 00 10 bge 2023768 <rtems_shell_debugrfs+0x140> <== NOT EXECUTED
202372c: c4 07 bf dc ld [ %fp + -36 ], %g2 <== NOT EXECUTED
{
printf ("error: cannot statvfs path: %s: (%d) %s\n",
2023730: 40 00 7d 3e call 2042c28 <__errno> <== NOT EXECUTED
2023734: 01 00 00 00 nop <== NOT EXECUTED
2023738: 40 00 7d 3c call 2042c28 <__errno> <== NOT EXECUTED
202373c: e0 02 00 00 ld [ %o0 ], %l0 <== NOT EXECUTED
2023740: 40 00 97 d6 call 2049698 <strerror> <== NOT EXECUTED
2023744: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED
2023748: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
202374c: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2023750: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2023754: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
2023758: 40 00 8f 2f call 2047414 <printf> <== NOT EXECUTED
202375c: 90 12 23 98 or %o0, 0x398, %o0 ! 2062b98 <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]);
2023760: 10 80 00 41 b 2023864 <rtems_shell_debugrfs+0x23c> <== NOT EXECUTED
2023764: 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)
2023768: 03 0a 02 48 sethi %hi(0x28092000), %g1 <== NOT EXECUTED
202376c: 82 10 60 01 or %g1, 1, %g1 ! 28092001 <RAM_END+0x25c92001><== NOT EXECUTED
2023770: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2023774: 02 80 00 05 be 2023788 <rtems_shell_debugrfs+0x160> <== NOT EXECUTED
2023778: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
{
printf ("error: path '%s' is not on an RFS file system\n", path);
202377c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2023780: 10 80 00 36 b 2023858 <rtems_shell_debugrfs+0x230> <== NOT EXECUTED
2023784: 90 12 23 c8 or %o0, 0x3c8, %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);
2023788: 40 00 98 d0 call 2049ac8 <strlen> <== NOT EXECUTED
202378c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2023790: 94 10 20 00 clr %o2 <== NOT EXECUTED
2023794: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
2023798: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED
202379c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
20237a0: a2 07 bf ec add %fp, -20, %l1 <== NOT EXECUTED
20237a4: 7f ff 92 92 call 20081ec <rtems_filesystem_evaluate_path> <== NOT EXECUTED
20237a8: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
*fs = rtems_rfs_rtems_pathloc_dev (&pathloc);
rtems_filesystem_freenode (&pathloc);
20237ac: 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);
20237b0: 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);
20237b4: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
*fs = rtems_rfs_rtems_pathloc_dev (&pathloc);
rtems_filesystem_freenode (&pathloc);
20237b8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20237bc: 02 80 00 08 be 20237dc <rtems_shell_debugrfs+0x1b4> <== NOT EXECUTED
20237c0: e8 00 a0 34 ld [ %g2 + 0x34 ], %l4 <== NOT EXECUTED
20237c4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
20237c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20237cc: 02 80 00 05 be 20237e0 <rtems_shell_debugrfs+0x1b8> <== NOT EXECUTED
20237d0: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
20237d4: 9f c0 40 00 call %g1 <== NOT EXECUTED
20237d8: 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)
20237dc: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
20237e0: a2 10 20 00 clr %l1 <== NOT EXECUTED
20237e4: a4 07 bf 74 add %fp, -140, %l2 <== NOT EXECUTED
20237e8: 12 80 00 1f bne 2023864 <rtems_shell_debugrfs+0x23c> <== NOT EXECUTED
20237ec: 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)
20237f0: b2 06 60 08 add %i1, 8, %i1 <== NOT EXECUTED
20237f4: d2 04 80 00 ld [ %l2 ], %o1 <== NOT EXECUTED
20237f8: e6 06 40 00 ld [ %i1 ], %l3 <== NOT EXECUTED
20237fc: a4 04 a0 0c add %l2, 0xc, %l2 <== NOT EXECUTED
2023800: 40 00 96 b1 call 20492c4 <strcmp> <== NOT EXECUTED
2023804: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
2023808: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202380c: 32 80 00 0d bne,a 2023840 <rtems_shell_debugrfs+0x218> <== NOT EXECUTED
2023810: a2 04 60 01 inc %l1 <== NOT EXECUTED
return table[t].handler (fs, argc - 2, argv + 2);
2023814: 83 2c 60 04 sll %l1, 4, %g1 <== NOT EXECUTED
2023818: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED
202381c: a2 20 40 11 sub %g1, %l1, %l1 <== NOT EXECUTED
2023820: a2 07 80 11 add %fp, %l1, %l1 <== NOT EXECUTED
2023824: c2 04 7f 78 ld [ %l1 + -136 ], %g1 <== NOT EXECUTED
2023828: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
202382c: 92 04 3f fe add %l0, -2, %o1 <== NOT EXECUTED
2023830: 9f c0 40 00 call %g1 <== NOT EXECUTED
2023834: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
2023838: 81 c7 e0 08 ret <== NOT EXECUTED
202383c: 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++)
2023840: 80 a4 60 05 cmp %l1, 5 <== NOT EXECUTED
2023844: 32 bf ff ed bne,a 20237f8 <rtems_shell_debugrfs+0x1d0> <== NOT EXECUTED
2023848: 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]);
202384c: 11 00 81 8a sethi %hi(0x2062800), %o0 <== NOT EXECUTED
2023850: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2023854: 90 12 23 f8 or %o0, 0x3f8, %o0 <== NOT EXECUTED
2023858: 40 00 8e ef call 2047414 <printf> <== NOT EXECUTED
202385c: 01 00 00 00 nop <== NOT EXECUTED
2023860: 90 10 20 01 mov 1, %o0 ! 1 <PROM_START+0x1> <== NOT EXECUTED
}
}
return 1;
}
2023864: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
2023868: 81 c7 e0 08 ret <== NOT EXECUTED
202386c: 81 e8 00 00 restore <== NOT EXECUTED
020226ac <rtems_shell_rfs_format>:
return 1;
}
int
rtems_shell_rfs_format (int argc, char* argv[])
{
20226ac: 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));
20226b0: 92 10 20 00 clr %o1 <== NOT EXECUTED
20226b4: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED
20226b8: 94 10 20 18 mov 0x18, %o2 <== NOT EXECUTED
20226bc: 40 00 8f 3a call 20463a4 <memset> <== NOT EXECUTED
20226c0: a0 10 20 01 mov 1, %l0 <== NOT EXECUTED
20226c4: a2 10 20 00 clr %l1 <== NOT EXECUTED
for (arg = 1; arg < argc; arg++)
20226c8: 10 80 00 5d b 202283c <rtems_shell_rfs_format+0x190> <== NOT EXECUTED
20226cc: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED
{
if (argv[arg][0] == '-')
20226d0: d2 06 40 01 ld [ %i1 + %g1 ], %o1 <== NOT EXECUTED
20226d4: c2 4a 40 00 ldsb [ %o1 ], %g1 <== NOT EXECUTED
20226d8: 80 a0 60 2d cmp %g1, 0x2d <== NOT EXECUTED
20226dc: 12 80 00 4f bne 2022818 <rtems_shell_rfs_format+0x16c> <== NOT EXECUTED
20226e0: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
{
switch (argv[arg][1])
20226e4: c2 4a 60 01 ldsb [ %o1 + 1 ], %g1 <== NOT EXECUTED
20226e8: 80 a0 60 69 cmp %g1, 0x69 <== NOT EXECUTED
20226ec: 22 80 00 2f be,a 20227a8 <rtems_shell_rfs_format+0xfc> <== NOT EXECUTED
20226f0: a0 04 20 01 inc %l0 <== NOT EXECUTED
20226f4: 14 80 00 09 bg 2022718 <rtems_shell_rfs_format+0x6c> <== NOT EXECUTED
20226f8: 80 a0 60 73 cmp %g1, 0x73 <== NOT EXECUTED
20226fc: 80 a0 60 49 cmp %g1, 0x49 <== NOT EXECUTED
2022700: 02 80 00 36 be 20227d8 <rtems_shell_rfs_format+0x12c> <== NOT EXECUTED
2022704: 80 a0 60 62 cmp %g1, 0x62 <== NOT EXECUTED
2022708: 12 80 00 42 bne 2022810 <rtems_shell_rfs_format+0x164> <== NOT EXECUTED
202270c: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
}
config.block_size = strtoul (argv[arg], 0, 0);
break;
case 'b':
arg++;
2022710: 10 80 00 1a b 2022778 <rtems_shell_rfs_format+0xcc> <== NOT EXECUTED
2022714: a0 04 20 01 inc %l0 <== NOT EXECUTED
for (arg = 1; arg < argc; arg++)
{
if (argv[arg][0] == '-')
{
switch (argv[arg][1])
2022718: 02 80 00 0a be 2022740 <rtems_shell_rfs_format+0x94> <== NOT EXECUTED
202271c: 80 a0 60 76 cmp %g1, 0x76 <== NOT EXECUTED
2022720: 02 80 00 06 be 2022738 <rtems_shell_rfs_format+0x8c> <== NOT EXECUTED
2022724: 80 a0 60 6f cmp %g1, 0x6f <== NOT EXECUTED
2022728: 12 80 00 3a bne 2022810 <rtems_shell_rfs_format+0x164> <== NOT EXECUTED
202272c: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
case 'I':
config.initialise_inodes = true;
break;
case 'o':
arg++;
2022730: 10 80 00 2c b 20227e0 <rtems_shell_rfs_format+0x134> <== NOT EXECUTED
2022734: a0 04 20 01 inc %l0 <== NOT EXECUTED
if (argv[arg][0] == '-')
{
switch (argv[arg][1])
{
case 'v':
config.verbose = true;
2022738: 10 80 00 0e b 2022770 <rtems_shell_rfs_format+0xc4> <== NOT EXECUTED
202273c: e4 2f bf fd stb %l2, [ %fp + -3 ] <== NOT EXECUTED
break;
case 's':
arg++;
2022740: a0 04 20 01 inc %l0 <== NOT EXECUTED
if (arg >= argc)
2022744: 80 a4 00 18 cmp %l0, %i0 <== NOT EXECUTED
2022748: 06 80 00 05 bl 202275c <rtems_shell_rfs_format+0xb0> <== NOT EXECUTED
202274c: 83 2c 20 02 sll %l0, 2, %g1 <== NOT EXECUTED
{
printf ("error: block size needs an argument\n");
2022750: 11 00 81 88 sethi %hi(0x2062000), %o0 <== NOT EXECUTED
2022754: 10 80 00 42 b 202285c <rtems_shell_rfs_format+0x1b0> <== NOT EXECUTED
2022758: 90 12 23 e8 or %o0, 0x3e8, %o0 ! 20623e8 <rtems_rfs_ops+0x178><== NOT EXECUTED
return 1;
}
config.block_size = strtoul (argv[arg], 0, 0);
202275c: d0 06 40 01 ld [ %i1 + %g1 ], %o0 <== NOT EXECUTED
2022760: 92 10 20 00 clr %o1 <== NOT EXECUTED
2022764: 40 00 a2 8e call 204b19c <strtoul> <== NOT EXECUTED
2022768: 94 10 20 00 clr %o2 <== NOT EXECUTED
202276c: d0 27 bf e8 st %o0, [ %fp + -24 ] <== NOT EXECUTED
break;
2022770: 10 80 00 31 b 2022834 <rtems_shell_rfs_format+0x188> <== NOT EXECUTED
2022774: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
case 'b':
arg++;
if (arg >= argc)
2022778: 80 a4 00 18 cmp %l0, %i0 <== NOT EXECUTED
202277c: 06 80 00 05 bl 2022790 <rtems_shell_rfs_format+0xe4> <== NOT EXECUTED
2022780: 83 2c 20 02 sll %l0, 2, %g1 <== NOT EXECUTED
{
printf ("error: group block count needs an argument\n");
2022784: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
2022788: 10 80 00 35 b 202285c <rtems_shell_rfs_format+0x1b0> <== NOT EXECUTED
202278c: 90 12 20 10 or %o0, 0x10, %o0 ! 2062410 <rtems_rfs_ops+0x1a0><== NOT EXECUTED
return 1;
}
config.group_blocks = strtoul (argv[arg], 0, 0);
2022790: d0 06 40 01 ld [ %i1 + %g1 ], %o0 <== NOT EXECUTED
2022794: 92 10 20 00 clr %o1 <== NOT EXECUTED
2022798: 40 00 a2 81 call 204b19c <strtoul> <== NOT EXECUTED
202279c: 94 10 20 00 clr %o2 <== NOT EXECUTED
20227a0: 10 bf ff f4 b 2022770 <rtems_shell_rfs_format+0xc4> <== NOT EXECUTED
20227a4: d0 27 bf ec st %o0, [ %fp + -20 ] <== NOT EXECUTED
break;
case 'i':
arg++;
if (arg >= argc)
20227a8: 80 a4 00 18 cmp %l0, %i0 <== NOT EXECUTED
20227ac: 06 80 00 05 bl 20227c0 <rtems_shell_rfs_format+0x114> <== NOT EXECUTED
20227b0: 83 2c 20 02 sll %l0, 2, %g1 <== NOT EXECUTED
{
printf ("error: group inode count needs an argument\n");
20227b4: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
20227b8: 10 80 00 29 b 202285c <rtems_shell_rfs_format+0x1b0> <== NOT EXECUTED
20227bc: 90 12 20 40 or %o0, 0x40, %o0 ! 2062440 <rtems_rfs_ops+0x1d0><== NOT EXECUTED
return 1;
}
config.group_inodes = strtoul (argv[arg], 0, 0);
20227c0: d0 06 40 01 ld [ %i1 + %g1 ], %o0 <== NOT EXECUTED
20227c4: 92 10 20 00 clr %o1 <== NOT EXECUTED
20227c8: 40 00 a2 75 call 204b19c <strtoul> <== NOT EXECUTED
20227cc: 94 10 20 00 clr %o2 <== NOT EXECUTED
20227d0: 10 bf ff e8 b 2022770 <rtems_shell_rfs_format+0xc4> <== NOT EXECUTED
20227d4: d0 27 bf f0 st %o0, [ %fp + -16 ] <== NOT EXECUTED
break;
case 'I':
config.initialise_inodes = true;
20227d8: 10 bf ff e6 b 2022770 <rtems_shell_rfs_format+0xc4> <== NOT EXECUTED
20227dc: e4 2f bf fc stb %l2, [ %fp + -4 ] <== NOT EXECUTED
break;
case 'o':
arg++;
if (arg >= argc)
20227e0: 80 a4 00 18 cmp %l0, %i0 <== NOT EXECUTED
20227e4: 06 80 00 05 bl 20227f8 <rtems_shell_rfs_format+0x14c> <== NOT EXECUTED
20227e8: 83 2c 20 02 sll %l0, 2, %g1 <== NOT EXECUTED
{
printf ("error: inode percentage overhead needs an argument\n");
20227ec: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
20227f0: 10 80 00 1b b 202285c <rtems_shell_rfs_format+0x1b0> <== NOT EXECUTED
20227f4: 90 12 20 70 or %o0, 0x70, %o0 ! 2062470 <rtems_rfs_ops+0x200><== NOT EXECUTED
return 1;
}
config.inode_overhead = strtoul (argv[arg], 0, 0);
20227f8: d0 06 40 01 ld [ %i1 + %g1 ], %o0 <== NOT EXECUTED
20227fc: 92 10 20 00 clr %o1 <== NOT EXECUTED
2022800: 40 00 a2 67 call 204b19c <strtoul> <== NOT EXECUTED
2022804: 94 10 20 00 clr %o2 <== NOT EXECUTED
2022808: 10 bf ff da b 2022770 <rtems_shell_rfs_format+0xc4> <== NOT EXECUTED
202280c: d0 27 bf f4 st %o0, [ %fp + -12 ] <== NOT EXECUTED
break;
default:
printf ("error: invalid option: %s\n", argv[arg]);
2022810: 10 80 00 06 b 2022828 <rtems_shell_rfs_format+0x17c> <== NOT EXECUTED
2022814: 90 12 20 a8 or %o0, 0xa8, %o0 <== NOT EXECUTED
return 1;
}
}
else
{
if (!driver)
2022818: 22 80 00 08 be,a 2022838 <rtems_shell_rfs_format+0x18c> <== NOT EXECUTED
202281c: a0 04 20 01 inc %l0 <== NOT EXECUTED
driver = argv[arg];
else
{
printf ("error: only one driver name allowed: %s\n", argv[arg]);
2022820: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
2022824: 90 12 20 c8 or %o0, 0xc8, %o0 ! 20624c8 <rtems_rfs_ops+0x258><== NOT EXECUTED
2022828: 40 00 92 fb call 2047414 <printf> <== NOT EXECUTED
202282c: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
2022830: 30 80 00 1e b,a 20228a8 <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++)
2022834: a0 04 20 01 inc %l0 <== NOT EXECUTED
2022838: a2 10 00 09 mov %o1, %l1 <== NOT EXECUTED
202283c: 80 a4 00 18 cmp %l0, %i0 <== NOT EXECUTED
2022840: 06 bf ff a4 bl 20226d0 <rtems_shell_rfs_format+0x24> <== NOT EXECUTED
2022844: 83 2c 20 02 sll %l0, 2, %g1 <== NOT EXECUTED
return 1;
}
}
}
if (!driver) {
2022848: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
202284c: 12 80 00 08 bne 202286c <rtems_shell_rfs_format+0x1c0> <== NOT EXECUTED
2022850: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
printf ("error: no driver name provided\n");
2022854: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
2022858: 90 12 20 f8 or %o0, 0xf8, %o0 ! 20624f8 <rtems_rfs_ops+0x288><== NOT EXECUTED
202285c: 40 00 93 9a call 20476c4 <puts> <== NOT EXECUTED
2022860: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
return 1;
2022864: 81 c7 e0 08 ret <== NOT EXECUTED
2022868: 81 e8 00 00 restore <== NOT EXECUTED
}
if (rtems_rfs_format (driver, &config) < 0)
202286c: 92 07 bf e8 add %fp, -24, %o1 <== NOT EXECUTED
2022870: 40 00 64 63 call 203b9fc <rtems_rfs_format> <== NOT EXECUTED
2022874: b0 10 20 00 clr %i0 <== NOT EXECUTED
2022878: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202287c: 16 80 00 0b bge 20228a8 <rtems_shell_rfs_format+0x1fc> <== NOT EXECUTED
2022880: 01 00 00 00 nop <== NOT EXECUTED
{
printf ("error: format of %s failed: %s\n",
2022884: 40 00 80 e9 call 2042c28 <__errno> <== NOT EXECUTED
2022888: b0 10 20 01 mov 1, %i0 ! 1 <PROM_START+0x1> <== NOT EXECUTED
202288c: 40 00 9b 83 call 2049698 <strerror> <== NOT EXECUTED
2022890: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED
2022894: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2022898: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
202289c: 11 00 81 89 sethi %hi(0x2062400), %o0 <== NOT EXECUTED
20228a0: 40 00 92 dd call 2047414 <printf> <== NOT EXECUTED
20228a4: 90 12 21 18 or %o0, 0x118, %o0 ! 2062518 <rtems_rfs_ops+0x2a8><== NOT EXECUTED
driver, strerror (errno));
return 1;
}
return 0;
}
20228a8: 81 c7 e0 08 ret <== NOT EXECUTED
20228ac: 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 5f call 2018dd4 <_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 60 ld [ %o0 + 0x160 ], %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 f6 sethi %hi(0x203d800), %g1
2014ca4: c4 00 60 2c ld [ %g1 + 0x2c ], %g2 ! 203d82c <_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 f6 sethi %hi(0x203d800), %g2
2014cbc: c4 00 a0 50 ld [ %g2 + 0x50 ], %g2 ! 203d850 <_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 f6 sethi %hi(0x203d800), %g2
_ISR_Signals_to_thread_executing = true;
2014ccc: 10 80 00 04 b 2014cdc <rtems_signal_send+0x98>
2014cd0: c2 28 a0 e8 stb %g1, [ %g2 + 0xe8 ] ! 203d8e8 <_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 1b call 2018d48 <_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 17 call 2018d48 <_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 b4 sethi %hi(0x206d000), %o1
return;
the_pattern = Stack_check_Get_pattern_area(&the_thread->Start.Initial_stack);
*the_pattern = Stack_check_Pattern;
2006514: d0 06 20 c4 ld [ %i0 + 0xc4 ], %o0
2006518: 90 02 20 08 add %o0, 8, %o0
200651c: 92 12 61 c8 or %o1, 0x1c8, %o1
2006520: 40 00 ff 0e call 2046158 <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 c0 ld [ %i1 + 0xc0 ], %o2
2006988: d0 06 60 c4 ld [ %i1 + 0xc4 ], %o0
200698c: 40 00 fe 86 call 20463a4 <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 b5 sethi %hi(0x206d400), %g1
20067e4: c2 00 60 80 ld [ %g1 + 0x80 ], %g1 ! 206d480 <_Thread_Executing>
)
{
#if defined(__GNUC__)
void *sp = __builtin_frame_address(0);
if ( sp < the_stack->area ) {
20067e8: d0 00 60 c4 ld [ %g1 + 0xc4 ], %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 c0 ld [ %g1 + 0xc0 ], %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 a9 sethi %hi(0x206a400), %g1
200680c: c2 00 62 68 ld [ %g1 + 0x268 ], %g1 ! 206a668 <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 b4 sethi %hi(0x206d000), %o1
2006824: 94 10 20 10 mov 0x10, %o2
2006828: 40 00 fe 1b call 2046094 <memcmp>
200682c: 92 12 61 c8 or %o1, 0x1c8, %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 b5 sethi %hi(0x206d400), %g1 <== NOT EXECUTED
2006850: d0 00 60 80 ld [ %g1 + 0x80 ], %o0 ! 206d480 <_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 a9 sethi %hi(0x206a400), %l1 <== NOT EXECUTED
print_handler = print;
20066c8: 21 00 81 a9 sethi %hi(0x206a400), %l0 <== NOT EXECUTED
void rtems_stack_checker_report_usage_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
print_context = context;
20066cc: f0 24 62 6c st %i0, [ %l1 + 0x26c ] <== NOT EXECUTED
print_handler = print;
20066d0: f2 24 22 70 st %i1, [ %l0 + 0x270 ] <== NOT EXECUTED
(*print)( context, "Stack usage by thread\n");
20066d4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20066d8: 13 00 81 78 sethi %hi(0x205e000), %o1 <== NOT EXECUTED
20066dc: 9f c6 40 00 call %i1 <== NOT EXECUTED
20066e0: 92 12 63 00 or %o1, 0x300, %o1 ! 205e300 <write_test_string.7990+0x470><== NOT EXECUTED
(*print)( context,
20066e4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20066e8: 13 00 81 78 sethi %hi(0x205e000), %o1 <== NOT EXECUTED
20066ec: 9f c6 40 00 call %i1 <== NOT EXECUTED
20066f0: 92 12 63 18 or %o1, 0x318, %o1 ! 205e318 <write_test_string.7990+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 92 call 200e140 <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 62 6c clr [ %l1 + 0x26c ] <== NOT EXECUTED
print_handler = NULL;
200670c: c0 24 22 70 clr [ %l0 + 0x270 ] <== 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 c4 ld [ %i0 + 0xc4 ], %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 c0 ld [ %i0 + 0xc0 ], %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 b4 sethi %hi(0x206d000), %o1
2006894: 94 10 20 10 mov 0x10, %o2
2006898: 40 00 fd ff call 2046094 <memcmp>
200689c: 92 12 61 c8 or %o1, 0x1c8, %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
0200c128 <rtems_string_to_double>:
rtems_status_code rtems_string_to_double (
const char *s,
double *n,
char **endptr
)
{
200c128: 9d e3 bf 90 save %sp, -112, %sp
200c12c: a0 10 00 18 mov %i0, %l0
double result;
char *end;
if ( !n )
200c130: 80 a6 60 00 cmp %i1, 0
200c134: 02 80 00 2e be 200c1ec <rtems_string_to_double+0xc4>
200c138: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
200c13c: 40 00 09 f0 call 200e8fc <__errno>
200c140: 01 00 00 00 nop
*n = 0;
result = strtod( s, &end );
200c144: 92 07 bf fc add %fp, -4, %o1
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
200c148: c0 22 00 00 clr [ %o0 ]
*n = 0;
200c14c: c0 26 40 00 clr [ %i1 ]
200c150: c0 26 60 04 clr [ %i1 + 4 ]
result = strtod( s, &end );
200c154: 40 00 15 69 call 20116f8 <strtod>
200c158: 90 10 00 10 mov %l0, %o0
if ( endptr )
200c15c: 80 a6 a0 00 cmp %i2, 0
200c160: 02 80 00 03 be 200c16c <rtems_string_to_double+0x44>
200c164: c2 07 bf fc ld [ %fp + -4 ], %g1
*endptr = end;
200c168: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
200c16c: c2 07 bf fc ld [ %fp + -4 ], %g1
200c170: 80 a0 40 10 cmp %g1, %l0
200c174: 02 80 00 1e be 200c1ec <rtems_string_to_double+0xc4>
200c178: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200c17c: c1 27 bf f4 st %f0, [ %fp + -12 ]
200c180: 40 00 09 df call 200e8fc <__errno>
200c184: c3 27 bf f0 st %f1, [ %fp + -16 ]
200c188: c2 02 00 00 ld [ %o0 ], %g1
200c18c: c1 07 bf f4 ld [ %fp + -12 ], %f0
200c190: 80 a0 60 22 cmp %g1, 0x22
200c194: 12 80 00 12 bne 200c1dc <rtems_string_to_double+0xb4>
200c198: c3 07 bf f0 ld [ %fp + -16 ], %f1
200c19c: 03 00 80 75 sethi %hi(0x201d400), %g1
200c1a0: d1 18 62 10 ldd [ %g1 + 0x210 ], %f8 ! 201d610 <_CPU_Trap_slot_template+0x14>
200c1a4: 81 a8 0a 48 fcmpd %f0, %f8
200c1a8: 01 00 00 00 nop
200c1ac: 13 80 00 0f fbe 200c1e8 <rtems_string_to_double+0xc0>
200c1b0: 03 00 80 75 sethi %hi(0x201d400), %g1
200c1b4: d1 18 62 18 ldd [ %g1 + 0x218 ], %f8 ! 201d618 <_CPU_Trap_slot_template+0x1c>
200c1b8: 81 a8 0a c8 fcmped %f0, %f8
200c1bc: 01 00 00 00 nop
200c1c0: 0d 80 00 0a fbg 200c1e8 <rtems_string_to_double+0xc0>
200c1c4: 03 00 80 75 sethi %hi(0x201d400), %g1
200c1c8: d1 18 62 20 ldd [ %g1 + 0x220 ], %f8 ! 201d620 <_CPU_Trap_slot_template+0x24><== NOT EXECUTED
200c1cc: 81 a8 0a c8 fcmped %f0, %f8 <== NOT EXECUTED
200c1d0: 01 00 00 00 nop <== NOT EXECUTED
200c1d4: 29 80 00 06 fbl,a 200c1ec <rtems_string_to_double+0xc4> <== NOT EXECUTED
200c1d8: 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;
200c1dc: c1 3e 40 00 std %f0, [ %i1 ]
return RTEMS_SUCCESSFUL;
200c1e0: 81 c7 e0 08 ret
200c1e4: 91 e8 20 00 restore %g0, 0, %o0
200c1e8: b0 10 20 0a mov 0xa, %i0
}
200c1ec: 81 c7 e0 08 ret
200c1f0: 81 e8 00 00 restore
0200c1f4 <rtems_string_to_float>:
rtems_status_code rtems_string_to_float (
const char *s,
float *n,
char **endptr
)
{
200c1f4: 9d e3 bf 90 save %sp, -112, %sp
200c1f8: a0 10 00 18 mov %i0, %l0
float result;
char *end;
if ( !n )
200c1fc: 80 a6 60 00 cmp %i1, 0
200c200: 02 80 00 2b be 200c2ac <rtems_string_to_float+0xb8>
200c204: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
200c208: 40 00 09 bd call 200e8fc <__errno>
200c20c: 01 00 00 00 nop
*n = 0;
result = strtof( s, &end );
200c210: 92 07 bf fc add %fp, -4, %o1
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
200c214: c0 22 00 00 clr [ %o0 ]
*n = 0;
200c218: c0 26 40 00 clr [ %i1 ]
result = strtof( s, &end );
200c21c: 40 00 15 22 call 20116a4 <strtof>
200c220: 90 10 00 10 mov %l0, %o0
if ( endptr )
200c224: 80 a6 a0 00 cmp %i2, 0
200c228: 02 80 00 03 be 200c234 <rtems_string_to_float+0x40>
200c22c: c2 07 bf fc ld [ %fp + -4 ], %g1
*endptr = end;
200c230: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
200c234: c2 07 bf fc ld [ %fp + -4 ], %g1
200c238: 80 a0 40 10 cmp %g1, %l0
200c23c: 02 80 00 1c be 200c2ac <rtems_string_to_float+0xb8>
200c240: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200c244: 40 00 09 ae call 200e8fc <__errno>
200c248: c1 27 bf f4 st %f0, [ %fp + -12 ]
200c24c: c2 02 00 00 ld [ %o0 ], %g1
200c250: 80 a0 60 22 cmp %g1, 0x22
200c254: 12 80 00 12 bne 200c29c <rtems_string_to_float+0xa8>
200c258: c1 07 bf f4 ld [ %fp + -12 ], %f0
200c25c: 03 00 80 75 sethi %hi(0x201d400), %g1
200c260: d1 00 62 28 ld [ %g1 + 0x228 ], %f8 ! 201d628 <_CPU_Trap_slot_template+0x2c>
200c264: 81 a8 0a 28 fcmps %f0, %f8
200c268: 01 00 00 00 nop
200c26c: 13 80 00 0f fbe 200c2a8 <rtems_string_to_float+0xb4>
200c270: 03 00 80 75 sethi %hi(0x201d400), %g1
200c274: d1 00 62 2c ld [ %g1 + 0x22c ], %f8 ! 201d62c <_CPU_Trap_slot_template+0x30>
200c278: 81 a8 0a a8 fcmpes %f0, %f8
200c27c: 01 00 00 00 nop
200c280: 0d 80 00 0a fbg 200c2a8 <rtems_string_to_float+0xb4>
200c284: 03 00 80 75 sethi %hi(0x201d400), %g1
200c288: d1 00 62 30 ld [ %g1 + 0x230 ], %f8 ! 201d630 <_CPU_Trap_slot_template+0x34><== NOT EXECUTED
200c28c: 81 a8 0a a8 fcmpes %f0, %f8 <== NOT EXECUTED
200c290: 01 00 00 00 nop <== NOT EXECUTED
200c294: 29 80 00 06 fbl,a 200c2ac <rtems_string_to_float+0xb8> <== NOT EXECUTED
200c298: 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;
200c29c: c1 26 40 00 st %f0, [ %i1 ]
return RTEMS_SUCCESSFUL;
200c2a0: 81 c7 e0 08 ret
200c2a4: 91 e8 20 00 restore %g0, 0, %o0
200c2a8: b0 10 20 0a mov 0xa, %i0
}
200c2ac: 81 c7 e0 08 ret
200c2b0: 81 e8 00 00 restore
0201ee8c <rtems_string_to_int>:
const char *s,
int *n,
char **endptr,
int base
)
{
201ee8c: 9d e3 bf 98 save %sp, -104, %sp
201ee90: a0 10 00 18 mov %i0, %l0
long result;
char *end;
if ( !n )
201ee94: 80 a6 60 00 cmp %i1, 0
201ee98: 02 80 00 27 be 201ef34 <rtems_string_to_int+0xa8>
201ee9c: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
201eea0: 40 00 8f 62 call 2042c28 <__errno>
201eea4: 01 00 00 00 nop
201eea8: c0 22 00 00 clr [ %o0 ]
*n = 0;
201eeac: c0 26 40 00 clr [ %i1 ]
result = strtol( s, &end, base );
201eeb0: 94 10 00 1b mov %i3, %o2
201eeb4: 90 10 00 10 mov %l0, %o0
201eeb8: 40 00 af 81 call 204acbc <strtol>
201eebc: 92 07 bf fc add %fp, -4, %o1
if ( endptr )
201eec0: 80 a6 a0 00 cmp %i2, 0
201eec4: 02 80 00 04 be 201eed4 <rtems_string_to_int+0x48>
201eec8: a2 10 00 08 mov %o0, %l1
*endptr = end;
201eecc: c2 07 bf fc ld [ %fp + -4 ], %g1
201eed0: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
201eed4: c2 07 bf fc ld [ %fp + -4 ], %g1
201eed8: 80 a0 40 10 cmp %g1, %l0
201eedc: 02 80 00 16 be 201ef34 <rtems_string_to_int+0xa8>
201eee0: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
201eee4: 40 00 8f 51 call 2042c28 <__errno>
201eee8: 01 00 00 00 nop
201eeec: c2 02 00 00 ld [ %o0 ], %g1
201eef0: 80 a0 60 22 cmp %g1, 0x22
201eef4: 32 80 00 0d bne,a 201ef28 <rtems_string_to_int+0x9c>
201eef8: e2 26 40 00 st %l1, [ %i1 ]
201eefc: 03 1f ff ff sethi %hi(0x7ffffc00), %g1
201ef00: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff <RAM_END+0x7dbfffff>
201ef04: 80 a4 40 01 cmp %l1, %g1
201ef08: 02 80 00 0a be 201ef30 <rtems_string_to_int+0xa4> <== ALWAYS TAKEN
201ef0c: 80 a4 60 00 cmp %l1, 0
201ef10: 02 80 00 08 be 201ef30 <rtems_string_to_int+0xa4> <== NOT EXECUTED
201ef14: 03 20 00 00 sethi %hi(0x80000000), %g1 <== NOT EXECUTED
201ef18: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
201ef1c: 22 80 00 06 be,a 201ef34 <rtems_string_to_int+0xa8> <== NOT EXECUTED
201ef20: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED
errno = ERANGE;
return RTEMS_INVALID_NUMBER;
}
#endif
*n = result;
201ef24: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
201ef28: 81 c7 e0 08 ret
201ef2c: 91 e8 20 00 restore %g0, 0, %o0
201ef30: b0 10 20 0a mov 0xa, %i0
}
201ef34: 81 c7 e0 08 ret
201ef38: 81 e8 00 00 restore
0200c438 <rtems_string_to_long>:
const char *s,
long *n,
char **endptr,
int base
)
{
200c438: 9d e3 bf 98 save %sp, -104, %sp
200c43c: a0 10 00 18 mov %i0, %l0
long result;
char *end;
if ( !n )
200c440: 80 a6 60 00 cmp %i1, 0
200c444: 02 80 00 27 be 200c4e0 <rtems_string_to_long+0xa8>
200c448: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
200c44c: 40 00 09 2c call 200e8fc <__errno>
200c450: 01 00 00 00 nop
*n = 0;
result = strtol( s, &end, base );
200c454: 94 10 00 1b mov %i3, %o2
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
200c458: c0 22 00 00 clr [ %o0 ]
*n = 0;
200c45c: c0 26 40 00 clr [ %i1 ]
result = strtol( s, &end, base );
200c460: 90 10 00 10 mov %l0, %o0
200c464: 40 00 15 30 call 2011924 <strtol>
200c468: 92 07 bf fc add %fp, -4, %o1
if ( endptr )
200c46c: 80 a6 a0 00 cmp %i2, 0
200c470: 02 80 00 04 be 200c480 <rtems_string_to_long+0x48>
200c474: a2 10 00 08 mov %o0, %l1
*endptr = end;
200c478: c2 07 bf fc ld [ %fp + -4 ], %g1
200c47c: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
200c480: c2 07 bf fc ld [ %fp + -4 ], %g1
200c484: 80 a0 40 10 cmp %g1, %l0
200c488: 02 80 00 16 be 200c4e0 <rtems_string_to_long+0xa8>
200c48c: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200c490: 40 00 09 1b call 200e8fc <__errno>
200c494: 01 00 00 00 nop
200c498: c2 02 00 00 ld [ %o0 ], %g1
200c49c: 80 a0 60 22 cmp %g1, 0x22
200c4a0: 32 80 00 0d bne,a 200c4d4 <rtems_string_to_long+0x9c>
200c4a4: e2 26 40 00 st %l1, [ %i1 ]
200c4a8: 03 1f ff ff sethi %hi(0x7ffffc00), %g1
200c4ac: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff <RAM_END+0x7dbfffff>
200c4b0: 80 a4 40 01 cmp %l1, %g1
200c4b4: 02 80 00 0a be 200c4dc <rtems_string_to_long+0xa4>
200c4b8: 80 a4 60 00 cmp %l1, 0
200c4bc: 02 80 00 08 be 200c4dc <rtems_string_to_long+0xa4> <== NEVER TAKEN
200c4c0: 03 20 00 00 sethi %hi(0x80000000), %g1
200c4c4: 80 a4 40 01 cmp %l1, %g1
200c4c8: 22 80 00 06 be,a 200c4e0 <rtems_string_to_long+0xa8> <== ALWAYS TAKEN
200c4cc: b0 10 20 0a mov 0xa, %i0
(( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
return RTEMS_INVALID_NUMBER;
*n = result;
200c4d0: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
200c4d4: 81 c7 e0 08 ret
200c4d8: 91 e8 20 00 restore %g0, 0, %o0
200c4dc: b0 10 20 0a mov 0xa, %i0
}
200c4e0: 81 c7 e0 08 ret
200c4e4: 81 e8 00 00 restore
0200c364 <rtems_string_to_long_long>:
const char *s,
long long *n,
char **endptr,
int base
)
{
200c364: 9d e3 bf 98 save %sp, -104, %sp
200c368: a0 10 00 18 mov %i0, %l0
long long result;
char *end;
if ( !n )
200c36c: 80 a6 60 00 cmp %i1, 0
200c370: 02 80 00 30 be 200c430 <rtems_string_to_long_long+0xcc>
200c374: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
200c378: 40 00 09 61 call 200e8fc <__errno>
200c37c: 01 00 00 00 nop
*n = 0;
result = strtoll( s, &end, base );
200c380: 94 10 00 1b mov %i3, %o2
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
200c384: c0 22 00 00 clr [ %o0 ]
*n = 0;
200c388: c0 26 40 00 clr [ %i1 ]
200c38c: c0 26 60 04 clr [ %i1 + 4 ]
result = strtoll( s, &end, base );
200c390: 90 10 00 10 mov %l0, %o0
200c394: 40 00 15 6e call 201194c <strtoll>
200c398: 92 07 bf fc add %fp, -4, %o1
if ( endptr )
200c39c: 80 a6 a0 00 cmp %i2, 0
return RTEMS_INVALID_ADDRESS;
errno = 0;
*n = 0;
result = strtoll( s, &end, base );
200c3a0: a2 10 00 08 mov %o0, %l1
if ( endptr )
200c3a4: 02 80 00 04 be 200c3b4 <rtems_string_to_long_long+0x50>
200c3a8: a4 10 00 09 mov %o1, %l2
*endptr = end;
200c3ac: c2 07 bf fc ld [ %fp + -4 ], %g1
200c3b0: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
200c3b4: c2 07 bf fc ld [ %fp + -4 ], %g1
200c3b8: 80 a0 40 10 cmp %g1, %l0
200c3bc: 02 80 00 1d be 200c430 <rtems_string_to_long_long+0xcc>
200c3c0: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200c3c4: 40 00 09 4e call 200e8fc <__errno>
200c3c8: 01 00 00 00 nop
200c3cc: c2 02 00 00 ld [ %o0 ], %g1
200c3d0: 80 a0 60 22 cmp %g1, 0x22
200c3d4: 32 80 00 13 bne,a 200c420 <rtems_string_to_long_long+0xbc>
200c3d8: e4 26 60 04 st %l2, [ %i1 + 4 ]
200c3dc: 03 1f ff ff sethi %hi(0x7ffffc00), %g1
200c3e0: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff <RAM_END+0x7dbfffff>
200c3e4: 80 a4 40 01 cmp %l1, %g1
200c3e8: 12 80 00 05 bne 200c3fc <rtems_string_to_long_long+0x98>
200c3ec: 80 94 40 12 orcc %l1, %l2, %g0
200c3f0: 80 a4 bf ff cmp %l2, -1
200c3f4: 02 80 00 0e be 200c42c <rtems_string_to_long_long+0xc8> <== ALWAYS TAKEN
200c3f8: 80 94 40 12 orcc %l1, %l2, %g0
200c3fc: 02 80 00 0c be 200c42c <rtems_string_to_long_long+0xc8> <== NEVER TAKEN
200c400: 03 20 00 00 sethi %hi(0x80000000), %g1
200c404: 80 a4 40 01 cmp %l1, %g1
200c408: 32 80 00 06 bne,a 200c420 <rtems_string_to_long_long+0xbc><== NEVER TAKEN
200c40c: e4 26 60 04 st %l2, [ %i1 + 4 ] <== NOT EXECUTED
200c410: 80 a4 a0 00 cmp %l2, 0
200c414: 22 80 00 07 be,a 200c430 <rtems_string_to_long_long+0xcc><== ALWAYS TAKEN
200c418: b0 10 20 0a mov 0xa, %i0
(( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
return RTEMS_INVALID_NUMBER;
*n = result;
200c41c: e4 26 60 04 st %l2, [ %i1 + 4 ] <== NOT EXECUTED
200c420: e2 26 40 00 st %l1, [ %i1 ]
return RTEMS_SUCCESSFUL;
200c424: 81 c7 e0 08 ret
200c428: 91 e8 20 00 restore %g0, 0, %o0
200c42c: b0 10 20 0a mov 0xa, %i0
}
200c430: 81 c7 e0 08 ret
200c434: 81 e8 00 00 restore
0201ef50 <rtems_string_to_unsigned_char>:
const char *s,
unsigned char *n,
char **endptr,
int base
)
{
201ef50: 9d e3 bf 98 save %sp, -104, %sp
201ef54: a0 10 00 18 mov %i0, %l0
unsigned long result;
char *end;
if ( !n )
201ef58: 80 a6 60 00 cmp %i1, 0
201ef5c: 02 80 00 24 be 201efec <rtems_string_to_unsigned_char+0x9c>
201ef60: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
201ef64: 40 00 8f 31 call 2042c28 <__errno>
201ef68: 01 00 00 00 nop
201ef6c: c0 22 00 00 clr [ %o0 ]
*n = 0;
201ef70: c0 2e 40 00 clrb [ %i1 ]
result = strtoul( s, &end, base );
201ef74: 94 10 00 1b mov %i3, %o2
201ef78: 90 10 00 10 mov %l0, %o0
201ef7c: 40 00 b0 88 call 204b19c <strtoul>
201ef80: 92 07 bf fc add %fp, -4, %o1
if ( endptr )
201ef84: 80 a6 a0 00 cmp %i2, 0
201ef88: 02 80 00 04 be 201ef98 <rtems_string_to_unsigned_char+0x48>
201ef8c: a2 10 00 08 mov %o0, %l1
*endptr = end;
201ef90: c2 07 bf fc ld [ %fp + -4 ], %g1
201ef94: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
201ef98: c2 07 bf fc ld [ %fp + -4 ], %g1
201ef9c: 80 a0 40 10 cmp %g1, %l0
201efa0: 02 80 00 13 be 201efec <rtems_string_to_unsigned_char+0x9c>
201efa4: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
201efa8: 40 00 8f 20 call 2042c28 <__errno>
201efac: 01 00 00 00 nop
201efb0: c2 02 00 00 ld [ %o0 ], %g1
201efb4: 80 a0 60 22 cmp %g1, 0x22
201efb8: 12 80 00 07 bne 201efd4 <rtems_string_to_unsigned_char+0x84><== ALWAYS TAKEN
201efbc: 80 a4 60 ff cmp %l1, 0xff
201efc0: 82 04 7f ff add %l1, -1, %g1 <== NOT EXECUTED
201efc4: 80 a0 7f fd cmp %g1, -3 <== NOT EXECUTED
201efc8: 18 80 00 09 bgu 201efec <rtems_string_to_unsigned_char+0x9c><== NOT EXECUTED
201efcc: 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 ) {
201efd0: 80 a4 60 ff cmp %l1, 0xff <== NOT EXECUTED
201efd4: 28 80 00 08 bleu,a 201eff4 <rtems_string_to_unsigned_char+0xa4><== ALWAYS TAKEN
201efd8: e2 2e 40 00 stb %l1, [ %i1 ]
errno = ERANGE;
201efdc: 40 00 8f 13 call 2042c28 <__errno> <== NOT EXECUTED
201efe0: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED
201efe4: 82 10 20 22 mov 0x22, %g1 <== NOT EXECUTED
201efe8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
201efec: 81 c7 e0 08 ret
201eff0: 81 e8 00 00 restore
}
#endif
*n = result;
201eff4: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
}
201eff8: 81 c7 e0 08 ret
201effc: 81 e8 00 00 restore
0200c5ac <rtems_string_to_unsigned_int>:
const char *s,
unsigned int *n,
char **endptr,
int base
)
{
200c5ac: 9d e3 bf 98 save %sp, -104, %sp
200c5b0: a0 10 00 18 mov %i0, %l0
unsigned long result;
char *end;
if ( !n )
200c5b4: 80 a6 60 00 cmp %i1, 0
200c5b8: 02 80 00 1f be 200c634 <rtems_string_to_unsigned_int+0x88>
200c5bc: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
200c5c0: 40 00 08 cf call 200e8fc <__errno>
200c5c4: 01 00 00 00 nop
200c5c8: c0 22 00 00 clr [ %o0 ]
*n = 0;
200c5cc: c0 26 40 00 clr [ %i1 ]
result = strtoul( s, &end, base );
200c5d0: 94 10 00 1b mov %i3, %o2
200c5d4: 90 10 00 10 mov %l0, %o0
200c5d8: 40 00 16 0b call 2011e04 <strtoul>
200c5dc: 92 07 bf fc add %fp, -4, %o1
if ( endptr )
200c5e0: 80 a6 a0 00 cmp %i2, 0
200c5e4: 02 80 00 04 be 200c5f4 <rtems_string_to_unsigned_int+0x48>
200c5e8: a2 10 00 08 mov %o0, %l1
*endptr = end;
200c5ec: c2 07 bf fc ld [ %fp + -4 ], %g1
200c5f0: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
200c5f4: c2 07 bf fc ld [ %fp + -4 ], %g1
200c5f8: 80 a0 40 10 cmp %g1, %l0
200c5fc: 02 80 00 0e be 200c634 <rtems_string_to_unsigned_int+0x88>
200c600: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200c604: 40 00 08 be call 200e8fc <__errno>
200c608: 01 00 00 00 nop
200c60c: c2 02 00 00 ld [ %o0 ], %g1
200c610: 80 a0 60 22 cmp %g1, 0x22
200c614: 32 80 00 07 bne,a 200c630 <rtems_string_to_unsigned_int+0x84>
200c618: e2 26 40 00 st %l1, [ %i1 ]
200c61c: 82 04 7f ff add %l1, -1, %g1
200c620: 80 a0 7f fd cmp %g1, -3
200c624: 18 80 00 04 bgu 200c634 <rtems_string_to_unsigned_int+0x88><== ALWAYS TAKEN
200c628: b0 10 20 0a mov 0xa, %i0
errno = ERANGE;
return RTEMS_INVALID_NUMBER;
}
#endif
*n = result;
200c62c: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED
200c630: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
}
200c634: 81 c7 e0 08 ret
200c638: 81 e8 00 00 restore
0201f000 <rtems_string_to_unsigned_long>:
const char *s,
unsigned long *n,
char **endptr,
int base
)
{
201f000: 9d e3 bf 98 save %sp, -104, %sp
201f004: a0 10 00 18 mov %i0, %l0
unsigned long result;
char *end;
if ( !n )
201f008: 80 a6 60 00 cmp %i1, 0
201f00c: 02 80 00 1f be 201f088 <rtems_string_to_unsigned_long+0x88>
201f010: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
201f014: 40 00 8f 05 call 2042c28 <__errno>
201f018: 01 00 00 00 nop
*n = 0;
result = strtoul( s, &end, base );
201f01c: 94 10 00 1b mov %i3, %o2
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
201f020: c0 22 00 00 clr [ %o0 ]
*n = 0;
201f024: c0 26 40 00 clr [ %i1 ]
result = strtoul( s, &end, base );
201f028: 90 10 00 10 mov %l0, %o0
201f02c: 40 00 b0 5c call 204b19c <strtoul>
201f030: 92 07 bf fc add %fp, -4, %o1
if ( endptr )
201f034: 80 a6 a0 00 cmp %i2, 0
201f038: 02 80 00 04 be 201f048 <rtems_string_to_unsigned_long+0x48>
201f03c: a2 10 00 08 mov %o0, %l1
*endptr = end;
201f040: c2 07 bf fc ld [ %fp + -4 ], %g1
201f044: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
201f048: c2 07 bf fc ld [ %fp + -4 ], %g1
201f04c: 80 a0 40 10 cmp %g1, %l0
201f050: 02 80 00 0e be 201f088 <rtems_string_to_unsigned_long+0x88>
201f054: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
201f058: 40 00 8e f4 call 2042c28 <__errno>
201f05c: 01 00 00 00 nop
201f060: c2 02 00 00 ld [ %o0 ], %g1
201f064: 80 a0 60 22 cmp %g1, 0x22
201f068: 32 80 00 07 bne,a 201f084 <rtems_string_to_unsigned_long+0x84>
201f06c: e2 26 40 00 st %l1, [ %i1 ]
201f070: 82 04 7f ff add %l1, -1, %g1
201f074: 80 a0 7f fd cmp %g1, -3
201f078: 18 80 00 04 bgu 201f088 <rtems_string_to_unsigned_long+0x88><== ALWAYS TAKEN
201f07c: b0 10 20 0a mov 0xa, %i0
(( result == 0 ) || ( result == ULONG_MAX )))
return RTEMS_INVALID_NUMBER;
*n = result;
201f080: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED
201f084: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
}
201f088: 81 c7 e0 08 ret
201f08c: 81 e8 00 00 restore
0200c63c <rtems_string_to_unsigned_long_long>:
const char *s,
unsigned long long *n,
char **endptr,
int base
)
{
200c63c: 9d e3 bf 98 save %sp, -104, %sp
200c640: a0 10 00 18 mov %i0, %l0
unsigned long long result;
char *end;
if ( !n )
200c644: 80 a6 60 00 cmp %i1, 0
200c648: 02 80 00 25 be 200c6dc <rtems_string_to_unsigned_long_long+0xa0>
200c64c: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
200c650: 40 00 08 ab call 200e8fc <__errno>
200c654: 01 00 00 00 nop
*n = 0;
result = strtoull( s, &end, base );
200c658: 94 10 00 1b mov %i3, %o2
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
200c65c: c0 22 00 00 clr [ %o0 ]
*n = 0;
200c660: c0 26 40 00 clr [ %i1 ]
200c664: c0 26 60 04 clr [ %i1 + 4 ]
result = strtoull( s, &end, base );
200c668: 90 10 00 10 mov %l0, %o0
200c66c: 40 00 15 f0 call 2011e2c <strtoull>
200c670: 92 07 bf fc add %fp, -4, %o1
if ( endptr )
200c674: 80 a6 a0 00 cmp %i2, 0
return RTEMS_INVALID_ADDRESS;
errno = 0;
*n = 0;
result = strtoull( s, &end, base );
200c678: a4 10 00 08 mov %o0, %l2
if ( endptr )
200c67c: 02 80 00 04 be 200c68c <rtems_string_to_unsigned_long_long+0x50>
200c680: a6 10 00 09 mov %o1, %l3
*endptr = end;
200c684: c2 07 bf fc ld [ %fp + -4 ], %g1
200c688: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
200c68c: c2 07 bf fc ld [ %fp + -4 ], %g1
200c690: 80 a0 40 10 cmp %g1, %l0
200c694: 02 80 00 12 be 200c6dc <rtems_string_to_unsigned_long_long+0xa0>
200c698: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200c69c: 40 00 08 98 call 200e8fc <__errno>
200c6a0: 01 00 00 00 nop
200c6a4: c2 02 00 00 ld [ %o0 ], %g1
200c6a8: 80 a0 60 22 cmp %g1, 0x22
200c6ac: 32 80 00 0b bne,a 200c6d8 <rtems_string_to_unsigned_long_long+0x9c>
200c6b0: e4 3e 40 00 std %l2, [ %i1 ]
200c6b4: 86 84 ff ff addcc %l3, -1, %g3
200c6b8: 84 44 bf ff addx %l2, -1, %g2
200c6bc: 80 a0 bf ff cmp %g2, -1
200c6c0: 32 80 00 06 bne,a 200c6d8 <rtems_string_to_unsigned_long_long+0x9c><== NEVER TAKEN
200c6c4: e4 3e 40 00 std %l2, [ %i1 ] <== NOT EXECUTED
200c6c8: 80 a0 ff fd cmp %g3, -3
200c6cc: 18 80 00 04 bgu 200c6dc <rtems_string_to_unsigned_long_long+0xa0><== ALWAYS TAKEN
200c6d0: b0 10 20 0a mov 0xa, %i0
(( result == 0 ) || ( result == ULONG_LONG_MAX )))
return RTEMS_INVALID_NUMBER;
*n = result;
200c6d4: e4 3e 40 00 std %l2, [ %i1 ] <== NOT EXECUTED
200c6d8: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
}
200c6dc: 81 c7 e0 08 ret
200c6e0: 81 e8 00 00 restore
0200ef80 <rtems_task_mode>:
rtems_status_code rtems_task_mode(
rtems_mode mode_set,
rtems_mode mask,
rtems_mode *previous_mode_set
)
{
200ef80: 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 )
200ef84: 80 a6 a0 00 cmp %i2, 0
200ef88: 02 80 00 54 be 200f0d8 <rtems_task_mode+0x158>
200ef8c: 82 10 20 09 mov 9, %g1
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
200ef90: 03 00 80 73 sethi %hi(0x201cc00), %g1
200ef94: e0 00 60 e0 ld [ %g1 + 0xe0 ], %l0 ! 201cce0 <_Thread_Executing>
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
200ef98: c4 0c 20 75 ldub [ %l0 + 0x75 ], %g2
if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
200ef9c: 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;
200efa0: 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 ];
200efa4: e2 04 21 60 ld [ %l0 + 0x160 ], %l1
asr = &api->Signal;
old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
200efa8: a4 60 3f ff subx %g0, -1, %l2
if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
200efac: 80 a0 60 00 cmp %g1, 0
200efb0: 02 80 00 03 be 200efbc <rtems_task_mode+0x3c>
200efb4: a5 2c a0 08 sll %l2, 8, %l2
old_mode |= RTEMS_NO_TIMESLICE;
else
old_mode |= RTEMS_TIMESLICE;
200efb8: 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;
200efbc: c2 0c 60 08 ldub [ %l1 + 8 ], %g1
200efc0: 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();
200efc4: 7f ff eb e1 call 2009f48 <_CPU_ISR_Get_level>
200efc8: 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;
200efcc: 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;
200efd0: a6 14 c0 08 or %l3, %o0, %l3
old_mode |= _ISR_Get_level();
*previous_mode_set = old_mode;
200efd4: a4 14 c0 12 or %l3, %l2, %l2
/*
* These are generic thread scheduling characteristics.
*/
if ( mask & RTEMS_PREEMPT_MASK )
200efd8: 80 8e 61 00 btst 0x100, %i1
200efdc: 02 80 00 06 be 200eff4 <rtems_task_mode+0x74>
200efe0: e4 26 80 00 st %l2, [ %i2 ]
executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
200efe4: 83 36 20 08 srl %i0, 8, %g1
200efe8: 82 18 60 01 xor %g1, 1, %g1
200efec: 82 08 60 01 and %g1, 1, %g1
200eff0: c2 2c 20 75 stb %g1, [ %l0 + 0x75 ]
if ( mask & RTEMS_TIMESLICE_MASK ) {
200eff4: 80 8e 62 00 btst 0x200, %i1
200eff8: 02 80 00 0b be 200f024 <rtems_task_mode+0xa4>
200effc: 80 8e 60 0f btst 0xf, %i1
if ( _Modes_Is_timeslice(mode_set) ) {
200f000: 80 8e 22 00 btst 0x200, %i0
200f004: 22 80 00 07 be,a 200f020 <rtems_task_mode+0xa0>
200f008: c0 24 20 7c clr [ %l0 + 0x7c ]
executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
200f00c: 03 00 80 72 sethi %hi(0x201c800), %g1
200f010: c2 00 63 78 ld [ %g1 + 0x378 ], %g1 ! 201cb78 <_Thread_Ticks_per_timeslice>
200f014: 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;
200f018: 82 10 20 01 mov 1, %g1
200f01c: c2 24 20 7c st %g1, [ %l0 + 0x7c ]
/*
* Set the new interrupt level
*/
if ( mask & RTEMS_INTERRUPT_MASK )
200f020: 80 8e 60 0f btst 0xf, %i1
200f024: 02 80 00 06 be 200f03c <rtems_task_mode+0xbc>
200f028: 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 ) );
200f02c: 90 0e 20 0f and %i0, 0xf, %o0
200f030: 7f ff cb e9 call 2001fd4 <sparc_enable_interrupts>
200f034: 91 2a 20 08 sll %o0, 8, %o0
*/
is_asr_enabled = false;
needs_asr_dispatching = false;
if ( mask & RTEMS_ASR_MASK ) {
200f038: 80 8e 64 00 btst 0x400, %i1
200f03c: 22 80 00 18 be,a 200f09c <rtems_task_mode+0x11c>
200f040: 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;
200f044: 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(
200f048: b1 36 20 0a srl %i0, 0xa, %i0
200f04c: b0 1e 20 01 xor %i0, 1, %i0
200f050: 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;
200f054: 80 a6 00 01 cmp %i0, %g1
200f058: 22 80 00 11 be,a 200f09c <rtems_task_mode+0x11c>
200f05c: a0 10 20 00 clr %l0
)
{
rtems_signal_set _signals;
ISR_Level _level;
_ISR_Disable( _level );
200f060: 7f ff cb d9 call 2001fc4 <sparc_disable_interrupts>
200f064: f0 2c 60 08 stb %i0, [ %l1 + 8 ]
_signals = information->signals_pending;
200f068: c4 04 60 18 ld [ %l1 + 0x18 ], %g2
information->signals_pending = information->signals_posted;
200f06c: c2 04 60 14 ld [ %l1 + 0x14 ], %g1
information->signals_posted = _signals;
200f070: 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;
200f074: c2 24 60 18 st %g1, [ %l1 + 0x18 ]
information->signals_posted = _signals;
_ISR_Enable( _level );
200f078: 7f ff cb d7 call 2001fd4 <sparc_enable_interrupts>
200f07c: 01 00 00 00 nop
200f080: c2 04 60 14 ld [ %l1 + 0x14 ], %g1
200f084: 80 a0 60 00 cmp %g1, 0
200f088: 22 80 00 05 be,a 200f09c <rtems_task_mode+0x11c>
200f08c: 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;
200f090: 82 10 20 01 mov 1, %g1
200f094: c2 2c 20 74 stb %g1, [ %l0 + 0x74 ]
200f098: a0 10 20 01 mov 1, %l0
}
}
}
if ( _System_state_Is_up( _System_state_Get() ) )
200f09c: 03 00 80 73 sethi %hi(0x201cc00), %g1
200f0a0: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 201cdc0 <_System_state_Current>
200f0a4: 80 a0 60 03 cmp %g1, 3
200f0a8: 12 80 00 0c bne 200f0d8 <rtems_task_mode+0x158> <== NEVER TAKEN
200f0ac: 82 10 20 00 clr %g1
if ( _Thread_Evaluate_mode() || needs_asr_dispatching )
200f0b0: 40 00 00 7a call 200f298 <_Thread_Evaluate_mode>
200f0b4: 01 00 00 00 nop
200f0b8: 80 8a 20 ff btst 0xff, %o0
200f0bc: 12 80 00 04 bne 200f0cc <rtems_task_mode+0x14c>
200f0c0: 80 8c 20 ff btst 0xff, %l0
200f0c4: 02 80 00 05 be 200f0d8 <rtems_task_mode+0x158>
200f0c8: 82 10 20 00 clr %g1
_Thread_Dispatch();
200f0cc: 7f ff e4 cb call 20083f8 <_Thread_Dispatch>
200f0d0: 01 00 00 00 nop
200f0d4: 82 10 20 00 clr %g1 ! 0 <PROM_START>
return RTEMS_SUCCESSFUL;
}
200f0d8: 81 c7 e0 08 ret
200f0dc: 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 82 sethi %hi(0x2020800), %g1
200afdc: c2 08 62 54 ldub [ %g1 + 0x254 ], %g1 ! 2020a54 <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 21 call 200d07c <_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 60 call 200c9c4 <_Thread_Change_priority>
200b048: 94 10 20 00 clr %o2
}
_Thread_Enable_dispatch();
200b04c: 40 00 07 e9 call 200cff0 <_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 70 sethi %hi(0x201c000), %g1 <== NOT EXECUTED
2003b4c: d0 20 62 70 st %o0, [ %g1 + 0x270 ] ! 201c270 <rtems_termios_cbufsize><== NOT EXECUTED
rtems_termios_raw_input_size = raw_input;
2003b50: 03 00 80 70 sethi %hi(0x201c000), %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 62 74 st %o1, [ %g1 + 0x274 ] <== NOT EXECUTED
rtems_termios_raw_output_size = raw_output;
2003b5c: 03 00 80 70 sethi %hi(0x201c000), %g1 <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
2003b60: 81 c3 e0 08 retl <== NOT EXECUTED
2003b64: d4 20 62 78 st %o2, [ %g1 + 0x278 ] ! 201c278 <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 72 sethi %hi(0x201c800), %g1
20051a0: d0 00 62 90 ld [ %g1 + 0x290 ], %o0 ! 201ca90 <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 71 sethi %hi(0x201c400), %g1
20051e0: 85 28 a0 05 sll %g2, 5, %g2
20051e4: 82 10 63 c4 or %g1, 0x3c4, %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 cf call 20069a8 <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 72 sethi %hi(0x201c800), %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 a2 94 st %g1, [ %g2 + 0x294 ]
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 72 sethi %hi(0x201c800), %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 a2 98 st %g1, [ %g2 + 0x298 ]
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 72 sethi %hi(0x201c800), %g1
200534c: d0 00 62 90 ld [ %g1 + 0x290 ], %o0 ! 201ca90 <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 03 call 20069a8 <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 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED
/*
* call any line discipline start function
*/
if (rtems_termios_linesw[tty->t_line].l_start != NULL) {
2003db4: c2 00 60 78 ld [ %g1 + 0x78 ], %g1 ! 201c878 <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 71 sethi %hi(0x201c400), %l2 <== NOT EXECUTED
2003dec: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED
2003df0: a4 14 a3 c4 or %l2, 0x3c4, %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 53 66 call 2018d18 <.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 53 5d call 2018d18 <.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 72 sethi %hi(0x201c800), %o4
2003b04: c2 03 22 90 ld [ %o4 + 0x290 ], %g1 ! 201ca90 <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 22 90 or %o4, 0x290, %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 9c call 20069a8 <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 71 sethi %hi(0x201c400), %g1 <== NOT EXECUTED
2004e5c: 85 28 a0 05 sll %g2, 5, %g2 <== NOT EXECUTED
2004e60: 82 10 63 c4 or %g1, 0x3c4, %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 2b df call 200fe0c <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 2b db call 200fe0c <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 4e 53 call 2018980 <.umul>
2005038: 92 10 00 12 mov %l2, %o1
200503c: 40 00 4e 8b call 2018a68 <.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 71 sethi %hi(0x201c400), %g1 <== NOT EXECUTED
20050e0: 85 28 a0 05 sll %g2, 5, %g2 <== NOT EXECUTED
20050e4: 82 10 63 c4 or %g1, 0x3c4, %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 71 sethi %hi(0x201c400), %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 e3 c4 or %g3, 0x3c4, %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
0200c2e0 <rtems_termios_number_to_baud>:
#include <rtems/termiostypes.h>
int rtems_termios_number_to_baud(
int32_t baud
)
{
200c2e0: 82 10 00 08 mov %o0, %g1
int termios_baud;
switch (baud) {
200c2e4: 80 a2 24 b0 cmp %o0, 0x4b0
200c2e8: 02 80 00 19 be 200c34c <rtems_termios_number_to_baud+0x6c>
200c2ec: 90 10 20 09 mov 9, %o0
200c2f0: 80 a0 64 b0 cmp %g1, 0x4b0
200c2f4: 14 80 00 29 bg 200c398 <rtems_termios_number_to_baud+0xb8>
200c2f8: 05 00 00 12 sethi %hi(0x4800), %g2
200c2fc: 80 a0 60 86 cmp %g1, 0x86
200c300: 02 80 00 13 be 200c34c <rtems_termios_number_to_baud+0x6c>
200c304: 90 10 20 04 mov 4, %o0
200c308: 80 a0 60 86 cmp %g1, 0x86
200c30c: 14 80 00 12 bg 200c354 <rtems_termios_number_to_baud+0x74>
200c310: 80 a0 60 c8 cmp %g1, 0xc8
200c314: 80 a0 60 32 cmp %g1, 0x32
200c318: 02 80 00 0d be 200c34c <rtems_termios_number_to_baud+0x6c>
200c31c: 90 10 20 01 mov 1, %o0
200c320: 80 a0 60 32 cmp %g1, 0x32
200c324: 34 80 00 05 bg,a 200c338 <rtems_termios_number_to_baud+0x58>
200c328: 80 a0 60 4b cmp %g1, 0x4b
200c32c: 80 a0 60 00 cmp %g1, 0
200c330: 10 80 00 52 b 200c478 <rtems_termios_number_to_baud+0x198>
200c334: 90 10 20 00 clr %o0
200c338: 02 80 00 05 be 200c34c <rtems_termios_number_to_baud+0x6c>
200c33c: 90 10 20 02 mov 2, %o0
200c340: 80 a0 60 6e cmp %g1, 0x6e
200c344: 12 80 00 4f bne 200c480 <rtems_termios_number_to_baud+0x1a0><== NEVER TAKEN
200c348: 90 10 20 03 mov 3, %o0
200c34c: 81 c3 e0 08 retl
200c350: 01 00 00 00 nop
200c354: 02 bf ff fe be 200c34c <rtems_termios_number_to_baud+0x6c>
200c358: 90 10 20 06 mov 6, %o0 ! 6 <PROM_START+0x6>
200c35c: 80 a0 60 c8 cmp %g1, 0xc8
200c360: 14 80 00 07 bg 200c37c <rtems_termios_number_to_baud+0x9c>
200c364: 80 a0 61 2c cmp %g1, 0x12c
200c368: 80 a0 60 96 cmp %g1, 0x96
200c36c: 12 80 00 45 bne 200c480 <rtems_termios_number_to_baud+0x1a0><== NEVER TAKEN
200c370: 90 10 20 05 mov 5, %o0
200c374: 81 c3 e0 08 retl
200c378: 01 00 00 00 nop
200c37c: 02 bf ff f4 be 200c34c <rtems_termios_number_to_baud+0x6c>
200c380: 90 10 20 07 mov 7, %o0 ! 7 <PROM_START+0x7>
200c384: 80 a0 62 58 cmp %g1, 0x258
200c388: 12 80 00 3e bne 200c480 <rtems_termios_number_to_baud+0x1a0><== NEVER TAKEN
200c38c: 90 10 20 08 mov 8, %o0
200c390: 81 c3 e0 08 retl
200c394: 01 00 00 00 nop
200c398: 84 10 a3 00 or %g2, 0x300, %g2
200c39c: 80 a0 40 02 cmp %g1, %g2
200c3a0: 02 bf ff eb be 200c34c <rtems_termios_number_to_baud+0x6c>
200c3a4: 90 10 20 0e mov 0xe, %o0
200c3a8: 80 a0 40 02 cmp %g1, %g2
200c3ac: 14 80 00 18 bg 200c40c <rtems_termios_number_to_baud+0x12c>
200c3b0: 07 00 00 70 sethi %hi(0x1c000), %g3
200c3b4: 80 a0 69 60 cmp %g1, 0x960
200c3b8: 02 bf ff e5 be 200c34c <rtems_termios_number_to_baud+0x6c>
200c3bc: 90 10 20 0b mov 0xb, %o0
200c3c0: 80 a0 69 60 cmp %g1, 0x960
200c3c4: 34 80 00 07 bg,a 200c3e0 <rtems_termios_number_to_baud+0x100>
200c3c8: 05 00 00 04 sethi %hi(0x1000), %g2
200c3cc: 80 a0 67 08 cmp %g1, 0x708
200c3d0: 12 80 00 2c bne 200c480 <rtems_termios_number_to_baud+0x1a0><== NEVER TAKEN
200c3d4: 90 10 20 0a mov 0xa, %o0
200c3d8: 81 c3 e0 08 retl
200c3dc: 01 00 00 00 nop
200c3e0: 84 10 a2 c0 or %g2, 0x2c0, %g2
200c3e4: 80 a0 40 02 cmp %g1, %g2
200c3e8: 02 bf ff d9 be 200c34c <rtems_termios_number_to_baud+0x6c>
200c3ec: 90 10 20 0c mov 0xc, %o0
200c3f0: 05 00 00 09 sethi %hi(0x2400), %g2
200c3f4: 84 10 a1 80 or %g2, 0x180, %g2 ! 2580 <PROM_START+0x2580>
200c3f8: 80 a0 40 02 cmp %g1, %g2
200c3fc: 12 80 00 21 bne 200c480 <rtems_termios_number_to_baud+0x1a0>
200c400: 90 10 20 0d mov 0xd, %o0
200c404: 81 c3 e0 08 retl
200c408: 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;
200c40c: 05 00 00 04 sethi %hi(0x1000), %g2
int32_t baud
)
{
int termios_baud;
switch (baud) {
200c410: 86 10 e2 00 or %g3, 0x200, %g3
200c414: 80 a0 40 03 cmp %g1, %g3
200c418: 02 bf ff cd be 200c34c <rtems_termios_number_to_baud+0x6c>
200c41c: 90 10 a0 02 or %g2, 2, %o0
200c420: 80 a0 40 03 cmp %g1, %g3
200c424: 14 80 00 0f bg 200c460 <rtems_termios_number_to_baud+0x180>
200c428: 07 00 00 e1 sethi %hi(0x38400), %g3
200c42c: 07 00 00 25 sethi %hi(0x9400), %g3
200c430: 86 10 e2 00 or %g3, 0x200, %g3 ! 9600 <PROM_START+0x9600>
200c434: 80 a0 40 03 cmp %g1, %g3
200c438: 02 bf ff c5 be 200c34c <rtems_termios_number_to_baud+0x6c>
200c43c: 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;
200c440: 90 10 a0 01 or %g2, 1, %o0
int32_t baud
)
{
int termios_baud;
switch (baud) {
200c444: 05 00 00 38 sethi %hi(0xe000), %g2
200c448: 84 10 a1 00 or %g2, 0x100, %g2 ! e100 <PROM_START+0xe100>
200c44c: 80 a0 40 02 cmp %g1, %g2
200c450: 32 bf ff bf bne,a 200c34c <rtems_termios_number_to_baud+0x6c><== NEVER TAKEN
200c454: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
200c458: 81 c3 e0 08 retl
200c45c: 01 00 00 00 nop
200c460: 80 a0 40 03 cmp %g1, %g3
200c464: 02 bf ff ba be 200c34c <rtems_termios_number_to_baud+0x6c>
200c468: 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;
200c46c: 90 10 a0 04 or %g2, 4, %o0
int32_t baud
)
{
int termios_baud;
switch (baud) {
200c470: 05 00 01 c2 sethi %hi(0x70800), %g2
200c474: 80 a0 40 02 cmp %g1, %g2
200c478: 02 80 00 03 be 200c484 <rtems_termios_number_to_baud+0x1a4>
200c47c: 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;
200c480: 90 10 3f ff mov -1, %o0 ! ffffffff <RAM_END+0xfdbfffff>
default: termios_baud = -1; break;
}
return termios_baud;
}
200c484: 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 72 sethi %hi(0x201c800), %g1
2005368: d0 00 62 90 ld [ %g1 + 0x290 ], %o0 ! 201ca90 <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 72 sethi %hi(0x201c800), %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 62 98 ld [ %g1 + 0x298 ], %l2 ! 201ca98 <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 70 sethi %hi(0x201c000), %g1
20053c4: c2 00 62 74 ld [ %g1 + 0x274 ], %g1 ! 201c274 <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 72 sethi %hi(0x201c800), %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 62 90 ld [ %g1 + 0x290 ], %o0 <== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
/*
* allocate raw output buffer
*/
tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;
20053fc: 03 00 80 70 sethi %hi(0x201c000), %g1
2005400: c2 00 62 78 ld [ %g1 + 0x278 ], %g1 ! 201c278 <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 70 sethi %hi(0x201c000), %g1
2005430: 7f ff f6 92 call 2002e78 <malloc>
2005434: d0 00 62 70 ld [ %g1 + 0x270 ], %o0 ! 201c270 <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 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
/*
* link tty
*/
tty->forw = rtems_termios_ttyHead;
200546c: 03 00 80 72 sethi %hi(0x201c800), %g1
2005470: c2 00 62 98 ld [ %g1 + 0x298 ], %g1 ! 201ca98 <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 72 sethi %hi(0x201c800), %g1
20054a0: c4 00 62 94 ld [ %g1 + 0x294 ], %g2 ! 201ca94 <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 72 sethi %hi(0x201c800), %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 e2 98 st %l1, [ %g3 + 0x298 ]
rtems_termios_ttyTail = tty;
20054b4: e2 20 62 94 st %l1, [ %g1 + 0x294 ]
tty->major = major;
/*
* Set up mutex semaphores
*/
sc = rtems_semaphore_create (
20054b8: 27 00 80 70 sethi %hi(0x201c000), %l3
20054bc: d0 4c e2 7c ldsb [ %l3 + 0x27c ], %o0 ! 201c27c <c.6362>
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 e2 7c ldsb [ %l3 + 0x27c ], %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 e2 7c ldsb [ %l3 + 0x27c ], %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 2a 2f call 200fe0c <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 e2 7c ldsb [ %l3 + 0x27c ], %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 e2 7c ldsb [ %l3 + 0x27c ], %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 70 sethi %hi(0x201c000), %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 70 sethi %hi(0x201c000), %g1 <== NOT EXECUTED
20055e8: d0 48 62 7c ldsb [ %g1 + 0x27c ], %o0 ! 201c27c <c.6362> <== 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 70 sethi %hi(0x201c000), %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 62 7c ldub [ %g1 + 0x27c ], %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 62 7c stb %g3, [ %g1 + 0x27c ]
c = 'a';
20056ec: 84 10 20 61 mov 0x61, %g2 <== NOT EXECUTED
20056f0: c4 28 62 7c stb %g2, [ %g1 + 0x27c ] <== 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 72 sethi %hi(0x201c800), %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 72 sethi %hi(0x201c800), %g1 <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
2005778: 40 00 04 8c call 20069a8 <rtems_fatal_error_occurred> <== NOT EXECUTED
200577c: 01 00 00 00 nop <== NOT EXECUTED
}
}
rtems_semaphore_release (rtems_termios_ttyMutex);
2005780: 03 00 80 72 sethi %hi(0x201c800), %g1
2005784: d0 00 62 90 ld [ %g1 + 0x290 ], %o0 ! 201ca90 <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 72 sethi %hi(0x201c800), %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 52 f6 call 2018d18 <.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 0d call 20069a8 <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 71 sethi %hi(0x201c400), %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 a3 c4 or %g2, 0x3c4, %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 70 sethi %hi(0x201c000), %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 70 sethi %hi(0x201c000), %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 e2 70 or %l7, 0x270, %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 50 53 call 2018d18 <.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 50 4a call 2018d18 <.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 54 29 call 2018d18 <.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 71 sethi %hi(0x201c400), %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 63 c4 or %l1, 0x3c4, %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 71 sethi %hi(0x201c400), %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 63 c4 or %g1, 0x3c4, %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 f6 sethi %hi(0x203d800), %o0
2015604: 92 10 00 18 mov %i0, %o1
2015608: 90 12 22 98 or %o0, 0x298, %o0
201560c: 40 00 0b 32 call 20182d4 <_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 13 d3 call 201a580 <_Watchdog_Remove>
2015638: 90 02 20 10 add %o0, 0x10, %o0
_Thread_Enable_dispatch();
201563c: 40 00 0d c3 call 2018d48 <_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 f6 sethi %hi(0x203d800), %g1
2015af4: e0 00 62 d8 ld [ %g1 + 0x2d8 ], %l0 ! 203dad8 <_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 f5 sethi %hi(0x203d400), %g1
2015b0c: c2 08 63 a4 ldub [ %g1 + 0x3a4 ], %g1 ! 203d7a4 <_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 f6 sethi %hi(0x203d800), %l3
2015b48: c2 04 e0 24 ld [ %l3 + 0x24 ], %g1 ! 203d824 <_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 f6 sethi %hi(0x203d800), %o0
2015b5c: 92 10 00 11 mov %l1, %o1
2015b60: 90 12 22 98 or %o0, 0x298, %o0
2015b64: 40 00 09 dc call 20182d4 <_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 80 call 201a580 <_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 e0 24 ld [ %l3 + 0x24 ], %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 62 call 2018d48 <_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 98 sethi %hi(0x2026000), %g2 <== NOT EXECUTED
2007758: c2 00 a1 14 ld [ %g2 + 0x114 ], %g1 ! 2026114 <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 a1 14 st %g3, [ %g2 + 0x114 ] <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
200776c: 03 00 80 98 sethi %hi(0x2026000), %g1 <== NOT EXECUTED
2007770: c4 00 62 f0 ld [ %g1 + 0x2f0 ], %g2 ! 20262f0 <_Thread_Dispatch_disable_level><== NOT EXECUTED
2007774: 84 00 a0 01 inc %g2 <== NOT EXECUTED
2007778: c4 20 62 f0 st %g2, [ %g1 + 0x2f0 ] <== NOT EXECUTED
_Thread_Disable_dispatch(); /* disable task switches */
/* don't aggravate things */
if (rtems_panic_in_progress > 2)
200777c: 03 00 80 98 sethi %hi(0x2026000), %g1 <== NOT EXECUTED
2007780: c2 00 61 14 ld [ %g1 + 0x114 ], %g1 ! 2026114 <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 96 sethi %hi(0x2025800), %g1 <== NOT EXECUTED
2007794: c2 00 60 b8 ld [ %g1 + 0xb8 ], %g1 ! 20258b8 <_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 36 3c call 2015090 <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 35 2c call 2014c68 <__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 96 sethi %hi(0x2025800), %l4 <== NOT EXECUTED
20077c8: c2 05 20 b8 ld [ %l4 + 0xb8 ], %g1 ! 20258b8 <_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 4d b6 call 201aeac <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 20 b8 ld [ %l4 + 0xb8 ], %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 8e sethi %hi(0x2023800), %o1 <== NOT EXECUTED
20077fc: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2007800: 92 12 60 98 or %o1, 0x98, %o1 <== NOT EXECUTED
2007804: 40 00 36 f7 call 20153e0 <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 96 sethi %hi(0x2025800), %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 96 sethi %hi(0x2025800), %g1 <== NOT EXECUTED
2007828: 40 00 3a 41 call 201612c <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 96 sethi %hi(0x2025800), %g1 <== NOT EXECUTED
chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
2007840: c2 00 60 b8 ld [ %g1 + 0xb8 ], %g1 ! 20258b8 <_impure_ptr><== NOT EXECUTED
2007844: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2007848: 40 00 3a 39 call 201612c <strerror> <== NOT EXECUTED
200784c: e6 00 60 0c ld [ %g1 + 0xc ], %l3 <== NOT EXECUTED
2007850: 13 00 80 8e sethi %hi(0x2023800), %o1 <== NOT EXECUTED
2007854: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2007858: 92 12 60 a8 or %o1, 0xa8, %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 60 b8 ld [ %g1 + 0xb8 ], %g1 <== NOT EXECUTED
2007868: 13 00 80 8e sethi %hi(0x2023800), %o1 <== NOT EXECUTED
200786c: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED
2007870: 92 12 60 b8 or %o1, 0xb8, %o1 <== NOT EXECUTED
2007874: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2007878: 40 00 36 da call 20153e0 <fprintf> <== NOT EXECUTED
200787c: 27 00 80 96 sethi %hi(0x2025800), %l3 <== NOT EXECUTED
2007880: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED
}
chars_written += fprintf(stderr, "\n");
2007884: c2 04 e0 b8 ld [ %l3 + 0xb8 ], %g1 <== NOT EXECUTED
2007888: 13 00 80 8e sethi %hi(0x2023800), %o1 <== NOT EXECUTED
200788c: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED
2007890: 40 00 36 d4 call 20153e0 <fprintf> <== NOT EXECUTED
2007894: 92 12 60 d0 or %o1, 0xd0, %o1 <== NOT EXECUTED
(void) fflush(stderr);
2007898: c2 04 e0 b8 ld [ %l3 + 0xb8 ], %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 35 fb call 2015090 <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 8e sethi %hi(0x2023800), %o1 <== NOT EXECUTED
{
rtems_error(0, "fatal error, exiting");
20078c4: 13 00 80 8e sethi %hi(0x2023800), %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 d8 or %o1, 0xd8, %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 60 f0 or %o1, 0xf0, %o1 <== NOT EXECUTED
abort();
20078e8: 40 00 34 d2 call 2014c30 <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
02028cd4 <scanInt>:
/*
* Extract an integer value from the database
*/
static int
scanInt(FILE *fp, int *val)
{
2028cd4: 9d e3 bf a0 save %sp, -96, %sp
2028cd8: 27 1f ff ff sethi %hi(0x7ffffc00), %l3
unsigned int limit = INT_MAX;
int sign = 0;
int d;
for (;;) {
c = getc(fp);
2028cdc: 2b 00 81 a6 sethi %hi(0x2069800), %l5
limit++;
continue;
}
sign = 1;
}
if (!isdigit(c))
2028ce0: 29 00 81 a6 sethi %hi(0x2069800), %l4
/*
* Extract an integer value from the database
*/
static int
scanInt(FILE *fp, int *val)
{
2028ce4: a6 14 e3 ff or %l3, 0x3ff, %l3
unsigned int limit = INT_MAX;
int sign = 0;
int d;
for (;;) {
c = getc(fp);
2028ce8: aa 15 63 d0 or %l5, 0x3d0, %l5
limit++;
continue;
}
sign = 1;
}
if (!isdigit(c))
2028cec: a8 15 23 c4 or %l4, 0x3c4, %l4
/*
* Extract an integer value from the database
*/
static int
scanInt(FILE *fp, int *val)
{
2028cf0: a2 10 20 00 clr %l1
2028cf4: a0 10 20 00 clr %l0
unsigned int limit = INT_MAX;
int sign = 0;
int d;
for (;;) {
c = getc(fp);
2028cf8: c2 06 20 04 ld [ %i0 + 4 ], %g1
2028cfc: 82 00 7f ff add %g1, -1, %g1
2028d00: 80 a0 60 00 cmp %g1, 0
2028d04: 16 80 00 07 bge 2028d20 <scanInt+0x4c> <== ALWAYS TAKEN
2028d08: c2 26 20 04 st %g1, [ %i0 + 4 ]
2028d0c: d0 05 40 00 ld [ %l5 ], %o0 <== NOT EXECUTED
2028d10: 40 00 7e 11 call 2048554 <__srget_r> <== NOT EXECUTED
2028d14: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
2028d18: 10 80 00 06 b 2028d30 <scanInt+0x5c> <== NOT EXECUTED
2028d1c: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
2028d20: c2 06 00 00 ld [ %i0 ], %g1
2028d24: 84 00 60 01 add %g1, 1, %g2
2028d28: e4 08 40 00 ldub [ %g1 ], %l2
2028d2c: c4 26 00 00 st %g2, [ %i0 ]
if (c == ':')
2028d30: 80 a4 a0 3a cmp %l2, 0x3a
2028d34: 02 80 00 22 be 2028dbc <scanInt+0xe8>
2028d38: 80 a4 60 00 cmp %l1, 0
break;
if (sign == 0) {
2028d3c: 32 80 00 09 bne,a 2028d60 <scanInt+0x8c> <== NEVER TAKEN
2028d40: c2 05 00 00 ld [ %l4 ], %g1 <== NOT EXECUTED
if (c == '-') {
2028d44: 80 a4 a0 2d cmp %l2, 0x2d
2028d48: 12 80 00 05 bne 2028d5c <scanInt+0x88> <== ALWAYS TAKEN
2028d4c: a2 10 20 01 mov 1, %l1
sign = -1;
limit++;
2028d50: a6 04 e0 01 inc %l3 <== NOT EXECUTED
continue;
2028d54: 10 bf ff e9 b 2028cf8 <scanInt+0x24> <== NOT EXECUTED
2028d58: a2 10 3f ff mov -1, %l1 <== NOT EXECUTED
}
sign = 1;
}
if (!isdigit(c))
2028d5c: c2 05 00 00 ld [ %l4 ], %g1
2028d60: 82 00 40 12 add %g1, %l2, %g1
2028d64: c2 08 60 01 ldub [ %g1 + 1 ], %g1
2028d68: 80 88 60 04 btst 4, %g1
2028d6c: 02 80 00 1c be 2028ddc <scanInt+0x108> <== NEVER TAKEN
2028d70: 90 10 00 13 mov %l3, %o0
return 0;
d = c - '0';
if ((i > (limit / 10))
2028d74: 40 00 c8 da call 205b0dc <.udiv>
2028d78: 92 10 20 0a mov 0xa, %o1
2028d7c: 80 a4 00 08 cmp %l0, %o0
2028d80: 18 80 00 17 bgu 2028ddc <scanInt+0x108> <== NEVER TAKEN
2028d84: 01 00 00 00 nop
2028d88: 12 80 00 08 bne 2028da8 <scanInt+0xd4> <== ALWAYS TAKEN
2028d8c: a4 04 bf d0 add %l2, -48, %l2
2028d90: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
2028d94: 40 00 c9 7e call 205b38c <.urem> <== NOT EXECUTED
2028d98: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED
2028d9c: 80 a4 80 08 cmp %l2, %o0 <== NOT EXECUTED
2028da0: 18 80 00 0f bgu 2028ddc <scanInt+0x108> <== NOT EXECUTED
2028da4: 01 00 00 00 nop <== NOT EXECUTED
|| ((i == (limit / 10)) && (d > (limit % 10))))
return 0;
i = i * 10 + d;
2028da8: 83 2c 20 03 sll %l0, 3, %g1
2028dac: a1 2c 20 01 sll %l0, 1, %l0
2028db0: a0 04 00 01 add %l0, %g1, %l0
2028db4: 10 bf ff d1 b 2028cf8 <scanInt+0x24>
2028db8: a0 04 80 10 add %l2, %l0, %l0
}
if (sign == 0)
2028dbc: 02 80 00 08 be 2028ddc <scanInt+0x108> <== NEVER TAKEN
2028dc0: 90 10 00 11 mov %l1, %o0
return 0;
*val = i * sign;
2028dc4: 92 10 00 10 mov %l0, %o1
2028dc8: 7f ff 67 0c call 20029f8 <.umul>
2028dcc: b0 10 20 01 mov 1, %i0
2028dd0: d0 26 40 00 st %o0, [ %i1 ]
return 1;
2028dd4: 81 c7 e0 08 ret
2028dd8: 81 e8 00 00 restore
}
2028ddc: 81 c7 e0 08 ret <== NOT EXECUTED
2028de0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
02028de4 <scanString>:
/*
* Extract a string value from the database
*/
static int
scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
{
2028de4: 9d e3 bf a0 save %sp, -96, %sp
int c;
*name = *bufp;
2028de8: c2 06 80 00 ld [ %i2 ], %g1
for (;;) {
c = getc(fp);
2028dec: 21 00 81 a6 sethi %hi(0x2069800), %l0
static int
scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
{
int c;
*name = *bufp;
2028df0: c2 26 40 00 st %g1, [ %i1 ]
for (;;) {
c = getc(fp);
2028df4: a0 14 23 d0 or %l0, 0x3d0, %l0
2028df8: c2 06 20 04 ld [ %i0 + 4 ], %g1
2028dfc: 82 00 7f ff add %g1, -1, %g1
2028e00: 80 a0 60 00 cmp %g1, 0
2028e04: 16 80 00 07 bge 2028e20 <scanString+0x3c>
2028e08: c2 26 20 04 st %g1, [ %i0 + 4 ]
2028e0c: d0 04 00 00 ld [ %l0 ], %o0
2028e10: 40 00 7d d1 call 2048554 <__srget_r>
2028e14: 92 10 00 18 mov %i0, %o1
if (c == ':') {
2028e18: 10 80 00 07 b 2028e34 <scanString+0x50>
2028e1c: 80 a2 20 3a cmp %o0, 0x3a
{
int c;
*name = *bufp;
for (;;) {
c = getc(fp);
2028e20: c2 06 00 00 ld [ %i0 ], %g1
2028e24: 84 00 60 01 add %g1, 1, %g2
2028e28: d0 08 40 00 ldub [ %g1 ], %o0
2028e2c: c4 26 00 00 st %g2, [ %i0 ]
if (c == ':') {
2028e30: 80 a2 20 3a cmp %o0, 0x3a
2028e34: 12 80 00 07 bne 2028e50 <scanString+0x6c>
2028e38: 80 a2 20 0a cmp %o0, 0xa
if (nlFlag)
2028e3c: 80 a7 20 00 cmp %i4, 0
2028e40: 22 80 00 1a be,a 2028ea8 <scanString+0xc4> <== ALWAYS TAKEN
2028e44: c2 06 80 00 ld [ %i2 ], %g1
--(*nleft);
}
**bufp = '\0';
++(*bufp);
--(*nleft);
return 1;
2028e48: 81 c7 e0 08 ret <== NOT EXECUTED
2028e4c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
if (c == ':') {
if (nlFlag)
return 0;
break;
}
if (c == '\n') {
2028e50: 12 80 00 07 bne 2028e6c <scanString+0x88>
2028e54: 80 a2 3f ff cmp %o0, -1
if (!nlFlag)
2028e58: 80 a7 20 00 cmp %i4, 0
2028e5c: 32 80 00 13 bne,a 2028ea8 <scanString+0xc4> <== ALWAYS TAKEN
2028e60: c2 06 80 00 ld [ %i2 ], %g1
--(*nleft);
}
**bufp = '\0';
++(*bufp);
--(*nleft);
return 1;
2028e64: 81 c7 e0 08 ret <== NOT EXECUTED
2028e68: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
if (c == '\n') {
if (!nlFlag)
return 0;
break;
}
if (c == EOF)
2028e6c: 22 80 00 17 be,a 2028ec8 <scanString+0xe4> <== NEVER TAKEN
2028e70: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
if (*nleft < 2)
2028e74: c2 06 c0 00 ld [ %i3 ], %g1
2028e78: 80 a0 60 01 cmp %g1, 1
2028e7c: 28 80 00 13 bleu,a 2028ec8 <scanString+0xe4> <== NEVER TAKEN
2028e80: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
**bufp = c;
2028e84: c2 06 80 00 ld [ %i2 ], %g1
2028e88: d0 28 40 00 stb %o0, [ %g1 ]
++(*bufp);
2028e8c: c4 06 80 00 ld [ %i2 ], %g2
--(*nleft);
2028e90: c2 06 c0 00 ld [ %i3 ], %g1
if (c == EOF)
return 0;
if (*nleft < 2)
return 0;
**bufp = c;
++(*bufp);
2028e94: 84 00 a0 01 inc %g2
--(*nleft);
2028e98: 82 00 7f ff add %g1, -1, %g1
if (c == EOF)
return 0;
if (*nleft < 2)
return 0;
**bufp = c;
++(*bufp);
2028e9c: c4 26 80 00 st %g2, [ %i2 ]
--(*nleft);
}
2028ea0: 10 bf ff d6 b 2028df8 <scanString+0x14>
2028ea4: c2 26 c0 00 st %g1, [ %i3 ]
**bufp = '\0';
2028ea8: c0 28 40 00 clrb [ %g1 ]
++(*bufp);
2028eac: c4 06 80 00 ld [ %i2 ], %g2
--(*nleft);
2028eb0: c2 06 c0 00 ld [ %i3 ], %g1
**bufp = c;
++(*bufp);
--(*nleft);
}
**bufp = '\0';
++(*bufp);
2028eb4: 84 00 a0 01 inc %g2
--(*nleft);
2028eb8: 82 00 7f ff add %g1, -1, %g1
**bufp = c;
++(*bufp);
--(*nleft);
}
**bufp = '\0';
++(*bufp);
2028ebc: c4 26 80 00 st %g2, [ %i2 ]
--(*nleft);
2028ec0: c2 26 c0 00 st %g1, [ %i3 ]
2028ec4: b0 10 20 01 mov 1, %i0
return 1;
}
2028ec8: 81 c7 e0 08 ret
2028ecc: 81 e8 00 00 restore
02028ed0 <scangr>:
FILE *fp,
struct group *grp,
char *buffer,
size_t bufsize
)
{
2028ed0: 9d e3 bf 98 save %sp, -104, %sp
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
2028ed4: 98 10 20 00 clr %o4
FILE *fp,
struct group *grp,
char *buffer,
size_t bufsize
)
{
2028ed8: f4 27 a0 4c st %i2, [ %fp + 0x4c ]
2028edc: f6 27 a0 50 st %i3, [ %fp + 0x50 ]
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
2028ee0: a2 07 a0 4c add %fp, 0x4c, %l1
2028ee4: a0 07 a0 50 add %fp, 0x50, %l0
2028ee8: 90 10 00 18 mov %i0, %o0
2028eec: 92 10 00 19 mov %i1, %o1
2028ef0: 94 10 00 11 mov %l1, %o2
2028ef4: 7f ff ff bc call 2028de4 <scanString>
2028ef8: 96 10 00 10 mov %l0, %o3
2028efc: 80 a2 20 00 cmp %o0, 0
2028f00: 02 80 00 41 be 2029004 <scangr+0x134> <== NEVER TAKEN
2028f04: 90 10 00 18 mov %i0, %o0
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
2028f08: 92 06 60 04 add %i1, 4, %o1
2028f0c: 94 10 00 11 mov %l1, %o2
2028f10: 96 10 00 10 mov %l0, %o3
2028f14: 7f ff ff b4 call 2028de4 <scanString>
2028f18: 98 10 20 00 clr %o4
{
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
2028f1c: 80 a2 20 00 cmp %o0, 0
2028f20: 02 80 00 39 be 2029004 <scangr+0x134> <== NEVER TAKEN
2028f24: 90 10 00 18 mov %i0, %o0
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &grgid)
2028f28: 7f ff ff 6b call 2028cd4 <scanInt>
2028f2c: 92 07 bf fc add %fp, -4, %o1
{
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
2028f30: 80 a2 20 00 cmp %o0, 0
2028f34: 02 80 00 34 be 2029004 <scangr+0x134> <== NEVER TAKEN
2028f38: 90 10 00 18 mov %i0, %o0
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &grgid)
|| !scanString(fp, &grmem, &buffer, &bufsize, 1))
2028f3c: 94 10 00 11 mov %l1, %o2
2028f40: 96 10 00 10 mov %l0, %o3
2028f44: 92 07 bf f8 add %fp, -8, %o1
2028f48: 7f ff ff a7 call 2028de4 <scanString>
2028f4c: 98 10 20 01 mov 1, %o4
{
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
2028f50: 80 a2 20 00 cmp %o0, 0
2028f54: 02 80 00 2c be 2029004 <scangr+0x134> <== NEVER TAKEN
2028f58: c2 07 bf fc ld [ %fp + -4 ], %g1
grp->gr_gid = grgid;
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
2028f5c: 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;
2028f60: c2 36 60 08 sth %g1, [ %i1 + 8 ]
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
2028f64: 84 10 00 03 mov %g3, %g2
2028f68: 10 80 00 05 b 2028f7c <scangr+0xac>
2028f6c: 82 10 20 01 mov 1, %g1
if(*cp == ',')
memcount++;
2028f70: 88 19 20 2c xor %g4, 0x2c, %g4
2028f74: 80 a0 00 04 cmp %g0, %g4
2028f78: 82 60 7f ff subx %g1, -1, %g1
grp->gr_gid = grgid;
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
2028f7c: c8 48 80 00 ldsb [ %g2 ], %g4
2028f80: 80 a1 20 00 cmp %g4, 0
2028f84: 12 bf ff fb bne 2028f70 <scangr+0xa0>
2028f88: 84 00 a0 01 inc %g2
}
/*
* Hack to produce (hopefully) a suitably-aligned array of pointers
*/
if (bufsize < (((memcount+1)*sizeof(char *)) + 15))
2028f8c: c4 07 a0 50 ld [ %fp + 0x50 ], %g2
2028f90: 83 28 60 02 sll %g1, 2, %g1
2028f94: 82 00 60 13 add %g1, 0x13, %g1
2028f98: 80 a0 80 01 cmp %g2, %g1
2028f9c: 0a 80 00 1a bcs 2029004 <scangr+0x134> <== NEVER TAKEN
2028fa0: 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;
2028fa4: 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);
2028fa8: 82 00 60 0f add %g1, 0xf, %g1
2028fac: 82 08 7f f0 and %g1, -16, %g1
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
2028fb0: 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);
2028fb4: c2 26 60 0c st %g1, [ %i1 + 0xc ]
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
2028fb8: 10 80 00 09 b 2028fdc <scangr+0x10c>
2028fbc: c2 07 bf f8 ld [ %fp + -8 ], %g1
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
if(*cp == ',') {
2028fc0: 32 80 00 08 bne,a 2028fe0 <scangr+0x110> <== ALWAYS TAKEN
2028fc4: 82 00 60 01 inc %g1
*cp = '\0';
2028fc8: c0 28 7f ff clrb [ %g1 + -1 ] <== NOT EXECUTED
grp->gr_mem[memcount++] = cp + 1;
2028fcc: c8 06 60 0c ld [ %i1 + 0xc ], %g4 <== NOT EXECUTED
2028fd0: 87 28 a0 02 sll %g2, 2, %g3 <== NOT EXECUTED
2028fd4: 84 00 a0 01 inc %g2 <== NOT EXECUTED
2028fd8: c2 21 00 03 st %g1, [ %g4 + %g3 ] <== NOT EXECUTED
2028fdc: 82 00 60 01 inc %g1
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
2028fe0: c6 48 7f ff ldsb [ %g1 + -1 ], %g3
2028fe4: 80 a0 e0 00 cmp %g3, 0
2028fe8: 32 bf ff f6 bne,a 2028fc0 <scangr+0xf0>
2028fec: 80 a0 e0 2c cmp %g3, 0x2c
if(*cp == ',') {
*cp = '\0';
grp->gr_mem[memcount++] = cp + 1;
}
}
grp->gr_mem[memcount] = NULL;
2028ff0: c2 06 60 0c ld [ %i1 + 0xc ], %g1
2028ff4: 85 28 a0 02 sll %g2, 2, %g2
2028ff8: c0 20 40 02 clr [ %g1 + %g2 ]
return 1;
2028ffc: 81 c7 e0 08 ret
2029000: 91 e8 20 01 restore %g0, 1, %o0
}
2029004: 81 c7 e0 08 ret <== NOT EXECUTED
2029008: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
02029054 <scanpw>:
FILE *fp,
struct passwd *pwd,
char *buffer,
size_t bufsize
)
{
2029054: 9d e3 bf 98 save %sp, -104, %sp
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
2029058: 98 10 20 00 clr %o4
FILE *fp,
struct passwd *pwd,
char *buffer,
size_t bufsize
)
{
202905c: f4 27 a0 4c st %i2, [ %fp + 0x4c ]
2029060: f6 27 a0 50 st %i3, [ %fp + 0x50 ]
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
2029064: a2 07 a0 4c add %fp, 0x4c, %l1
2029068: a0 07 a0 50 add %fp, 0x50, %l0
202906c: 90 10 00 18 mov %i0, %o0
2029070: 92 10 00 19 mov %i1, %o1
2029074: 94 10 00 11 mov %l1, %o2
2029078: 7f ff ff 5b call 2028de4 <scanString>
202907c: 96 10 00 10 mov %l0, %o3
2029080: 80 a2 20 00 cmp %o0, 0
2029084: 02 80 00 39 be 2029168 <scanpw+0x114> <== NEVER TAKEN
2029088: 90 10 00 18 mov %i0, %o0
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
202908c: 92 06 60 04 add %i1, 4, %o1
2029090: 94 10 00 11 mov %l1, %o2
2029094: 96 10 00 10 mov %l0, %o3
2029098: 7f ff ff 53 call 2028de4 <scanString>
202909c: 98 10 20 00 clr %o4
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
20290a0: 80 a2 20 00 cmp %o0, 0
20290a4: 02 80 00 31 be 2029168 <scanpw+0x114> <== NEVER TAKEN
20290a8: 90 10 00 18 mov %i0, %o0
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &pwuid)
20290ac: 7f ff ff 0a call 2028cd4 <scanInt>
20290b0: 92 07 bf fc add %fp, -4, %o1
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
20290b4: 80 a2 20 00 cmp %o0, 0
20290b8: 02 80 00 2c be 2029168 <scanpw+0x114> <== NEVER TAKEN
20290bc: 90 10 00 18 mov %i0, %o0
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &pwuid)
|| !scanInt(fp, &pwgid)
20290c0: 7f ff ff 05 call 2028cd4 <scanInt>
20290c4: 92 07 bf f8 add %fp, -8, %o1
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
20290c8: 80 a2 20 00 cmp %o0, 0
20290cc: 02 80 00 27 be 2029168 <scanpw+0x114> <== NEVER TAKEN
20290d0: 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)
20290d4: 92 06 60 0c add %i1, 0xc, %o1
20290d8: 94 10 00 11 mov %l1, %o2
20290dc: 96 10 00 10 mov %l0, %o3
20290e0: 7f ff ff 41 call 2028de4 <scanString>
20290e4: 98 10 20 00 clr %o4
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
20290e8: 80 a2 20 00 cmp %o0, 0
20290ec: 02 80 00 1f be 2029168 <scanpw+0x114> <== NEVER TAKEN
20290f0: 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)
20290f4: 92 06 60 10 add %i1, 0x10, %o1
20290f8: 94 10 00 11 mov %l1, %o2
20290fc: 96 10 00 10 mov %l0, %o3
2029100: 7f ff ff 39 call 2028de4 <scanString>
2029104: 98 10 20 00 clr %o4
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
2029108: 80 a2 20 00 cmp %o0, 0
202910c: 02 80 00 17 be 2029168 <scanpw+0x114> <== NEVER TAKEN
2029110: 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)
2029114: 92 06 60 14 add %i1, 0x14, %o1
2029118: 94 10 00 11 mov %l1, %o2
202911c: 96 10 00 10 mov %l0, %o3
2029120: 7f ff ff 31 call 2028de4 <scanString>
2029124: 98 10 20 00 clr %o4
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
2029128: 80 a2 20 00 cmp %o0, 0
202912c: 02 80 00 0f be 2029168 <scanpw+0x114> <== NEVER TAKEN
2029130: 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))
2029134: 94 10 00 11 mov %l1, %o2
2029138: 96 10 00 10 mov %l0, %o3
202913c: 92 06 60 18 add %i1, 0x18, %o1
2029140: 7f ff ff 29 call 2028de4 <scanString>
2029144: 98 10 20 01 mov 1, %o4
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
2029148: 80 a2 20 00 cmp %o0, 0
202914c: 02 80 00 07 be 2029168 <scanpw+0x114> <== NEVER TAKEN
2029150: 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;
2029154: c2 36 60 08 sth %g1, [ %i1 + 8 ]
pwd->pw_gid = pwgid;
2029158: c2 07 bf f8 ld [ %fp + -8 ], %g1
202915c: c2 36 60 0a sth %g1, [ %i1 + 0xa ]
return 1;
2029160: 81 c7 e0 08 ret
2029164: 91 e8 20 01 restore %g0, 1, %o0
}
2029168: 81 c7 e0 08 ret <== NOT EXECUTED
202916c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
02028c70 <setgid>:
int setgid(
gid_t gid
)
{
_POSIX_types_Gid = gid;
2028c70: 03 00 81 a5 sethi %hi(0x2069400), %g1 <== NOT EXECUTED
2028c74: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 ! 2069434 <rtems_current_user_env><== NOT EXECUTED
2028c78: d0 30 60 34 sth %o0, [ %g1 + 0x34 ] <== NOT EXECUTED
return 0;
}
2028c7c: 81 c3 e0 08 retl <== NOT EXECUTED
2028c80: 90 10 20 00 clr %o0 <== NOT EXECUTED
02029290 <setgrent>:
return NULL;
return &grent;
}
void setgrent(void)
{
2029290: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
init_etc_passwd_group();
2029294: 7f ff ff c9 call 20291b8 <init_etc_passwd_group> <== NOT EXECUTED
2029298: 01 00 00 00 nop <== NOT EXECUTED
if (group_fp != NULL)
202929c: 03 00 81 b3 sethi %hi(0x206cc00), %g1 <== NOT EXECUTED
20292a0: d0 00 62 dc ld [ %g1 + 0x2dc ], %o0 ! 206cedc <group_fp> <== NOT EXECUTED
20292a4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20292a8: 22 80 00 05 be,a 20292bc <setgrent+0x2c> <== NOT EXECUTED
20292ac: 11 00 81 8d sethi %hi(0x2063400), %o0 <== NOT EXECUTED
fclose(group_fp);
20292b0: 40 00 66 b6 call 2042d88 <fclose> <== NOT EXECUTED
20292b4: 01 00 00 00 nop <== NOT EXECUTED
group_fp = fopen("/etc/group", "r");
20292b8: 11 00 81 8d sethi %hi(0x2063400), %o0 <== NOT EXECUTED
20292bc: 13 00 81 8d sethi %hi(0x2063400), %o1 <== NOT EXECUTED
20292c0: 90 12 22 a8 or %o0, 0x2a8, %o0 <== NOT EXECUTED
20292c4: 40 00 69 01 call 20436c8 <fopen> <== NOT EXECUTED
20292c8: 92 12 62 30 or %o1, 0x230, %o1 <== NOT EXECUTED
20292cc: 03 00 81 b3 sethi %hi(0x206cc00), %g1 <== NOT EXECUTED
20292d0: d0 20 62 dc st %o0, [ %g1 + 0x2dc ] ! 206cedc <group_fp> <== NOT EXECUTED
}
20292d4: 81 c7 e0 08 ret <== NOT EXECUTED
20292d8: 81 e8 00 00 restore <== NOT EXECUTED
02029484 <setpwent>:
return NULL;
return &pwent;
}
void setpwent(void)
{
2029484: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
init_etc_passwd_group();
2029488: 7f ff ff 4c call 20291b8 <init_etc_passwd_group> <== NOT EXECUTED
202948c: 01 00 00 00 nop <== NOT EXECUTED
if (passwd_fp != NULL)
2029490: 03 00 81 b3 sethi %hi(0x206cc00), %g1 <== NOT EXECUTED
2029494: d0 00 61 f4 ld [ %g1 + 0x1f4 ], %o0 ! 206cdf4 <passwd_fp> <== NOT EXECUTED
2029498: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202949c: 22 80 00 05 be,a 20294b0 <setpwent+0x2c> <== NOT EXECUTED
20294a0: 11 00 81 8d sethi %hi(0x2063400), %o0 <== NOT EXECUTED
fclose(passwd_fp);
20294a4: 40 00 66 39 call 2042d88 <fclose> <== NOT EXECUTED
20294a8: 01 00 00 00 nop <== NOT EXECUTED
passwd_fp = fopen("/etc/passwd", "r");
20294ac: 11 00 81 8d sethi %hi(0x2063400), %o0 <== NOT EXECUTED
20294b0: 13 00 81 8d sethi %hi(0x2063400), %o1 <== NOT EXECUTED
20294b4: 90 12 22 20 or %o0, 0x220, %o0 <== NOT EXECUTED
20294b8: 40 00 68 84 call 20436c8 <fopen> <== NOT EXECUTED
20294bc: 92 12 62 30 or %o1, 0x230, %o1 <== NOT EXECUTED
20294c0: 03 00 81 b3 sethi %hi(0x206cc00), %g1 <== NOT EXECUTED
20294c4: d0 20 61 f4 st %o0, [ %g1 + 0x1f4 ] ! 206cdf4 <passwd_fp> <== NOT EXECUTED
}
20294c8: 81 c7 e0 08 ret <== NOT EXECUTED
20294cc: 81 e8 00 00 restore <== NOT EXECUTED
020083a4 <setuid>:
int setuid(
uid_t uid
)
{
_POSIX_types_Uid = uid;
20083a4: 03 00 81 a5 sethi %hi(0x2069400), %g1 <== NOT EXECUTED
20083a8: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 ! 2069434 <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
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 e4 2d call 2042c28 <__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 00 ff d1 call 2049ac8 <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 e4 0e call 2042c28 <__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 f1 e6 call 20463a4 <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
0202a4fc <statvfs>:
#include <sys/statvfs.h>
int
statvfs (const char *path, struct statvfs *sb)
{
202a4fc: 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 ) )
202a500: 40 00 7d 72 call 2049ac8 <strlen> <== NOT EXECUTED
202a504: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
202a508: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED
202a50c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
202a510: 94 10 20 00 clr %o2 <== NOT EXECUTED
202a514: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
202a518: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
202a51c: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED
202a520: 7f ff 77 33 call 20081ec <rtems_filesystem_evaluate_path> <== NOT EXECUTED
202a524: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202a528: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202a52c: 12 80 00 0b bne 202a558 <statvfs+0x5c> <== NOT EXECUTED
202a530: 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;
202a534: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 <== NOT EXECUTED
202a538: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 <== NOT EXECUTED
202a53c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202a540: 12 80 00 08 bne 202a560 <statvfs+0x64> <== NOT EXECUTED
202a544: 92 10 20 00 clr %o1 <== NOT EXECUTED
if ( !fs_mount_root->ops->statvfs_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
202a548: 40 00 61 b8 call 2042c28 <__errno> <== NOT EXECUTED
202a54c: 01 00 00 00 nop <== NOT EXECUTED
202a550: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
202a554: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202a558: 81 c7 e0 08 ret <== NOT EXECUTED
202a55c: 81 e8 00 00 restore <== NOT EXECUTED
memset (sb, 0, sizeof (struct statvfs));
202a560: 94 10 20 38 mov 0x38, %o2 <== NOT EXECUTED
202a564: 40 00 6f 90 call 20463a4 <memset> <== NOT EXECUTED
202a568: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb );
202a56c: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 <== NOT EXECUTED
202a570: 90 04 60 1c add %l1, 0x1c, %o0 <== NOT EXECUTED
202a574: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 <== NOT EXECUTED
202a578: 9f c0 40 00 call %g1 <== NOT EXECUTED
202a57c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
202a580: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
202a584: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202a588: 02 bf ff f4 be 202a558 <statvfs+0x5c> <== NOT EXECUTED
202a58c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
202a590: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
202a594: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202a598: 02 80 00 04 be 202a5a8 <statvfs+0xac> <== NOT EXECUTED
202a59c: 01 00 00 00 nop <== NOT EXECUTED
202a5a0: 9f c0 40 00 call %g1 <== NOT EXECUTED
202a5a4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return result;
}
202a5a8: 81 c7 e0 08 ret <== NOT EXECUTED
202a5ac: 81 e8 00 00 restore <== NOT EXECUTED
0202a5f0 <symlink>:
int symlink(
const char *actualpath,
const char *sympath
)
{
202a5f0: 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 );
202a5f4: a0 07 bf e4 add %fp, -28, %l0
202a5f8: 90 10 00 19 mov %i1, %o0
202a5fc: 92 07 bf fc add %fp, -4, %o1
202a600: 7f ff 7d 9c call 2009c70 <rtems_filesystem_get_start_loc>
202a604: 94 10 00 10 mov %l0, %o2
if ( !loc.ops->evalformake_h ) {
202a608: c2 07 bf f0 ld [ %fp + -16 ], %g1
202a60c: c2 00 60 04 ld [ %g1 + 4 ], %g1
202a610: 80 a0 60 00 cmp %g1, 0
202a614: 02 80 00 15 be 202a668 <symlink+0x78> <== NEVER TAKEN
202a618: 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 );
202a61c: d0 07 bf fc ld [ %fp + -4 ], %o0
202a620: 92 10 00 10 mov %l0, %o1
202a624: 90 06 40 08 add %i1, %o0, %o0
202a628: 94 07 bf f8 add %fp, -8, %o2
202a62c: 9f c0 40 00 call %g1
202a630: b0 10 3f ff mov -1, %i0
if ( result != 0 )
202a634: 80 a2 20 00 cmp %o0, 0
202a638: 12 80 00 10 bne 202a678 <symlink+0x88>
202a63c: c4 07 bf f0 ld [ %fp + -16 ], %g2
return -1;
if ( !loc.ops->symlink_h ) {
202a640: c2 00 a0 38 ld [ %g2 + 0x38 ], %g1
202a644: 80 a0 60 00 cmp %g1, 0
202a648: 12 80 00 0e bne 202a680 <symlink+0x90> <== ALWAYS TAKEN
202a64c: d4 07 bf f8 ld [ %fp + -8 ], %o2
rtems_filesystem_freenode( &loc );
202a650: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
202a654: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202a658: 02 80 00 04 be 202a668 <symlink+0x78> <== NOT EXECUTED
202a65c: 01 00 00 00 nop <== NOT EXECUTED
202a660: 9f c0 40 00 call %g1 <== NOT EXECUTED
202a664: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
202a668: 40 00 61 70 call 2042c28 <__errno> <== NOT EXECUTED
202a66c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202a670: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
202a674: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202a678: 81 c7 e0 08 ret
202a67c: 81 e8 00 00 restore
}
result = (*loc.ops->symlink_h)( &loc, actualpath, name_start);
202a680: 92 10 00 11 mov %l1, %o1
202a684: 9f c0 40 00 call %g1
202a688: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &loc );
202a68c: c2 07 bf f0 ld [ %fp + -16 ], %g1
202a690: 80 a0 60 00 cmp %g1, 0
202a694: 02 bf ff f9 be 202a678 <symlink+0x88> <== NEVER TAKEN
202a698: b0 10 00 08 mov %o0, %i0
202a69c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202a6a0: 80 a0 60 00 cmp %g1, 0
202a6a4: 02 80 00 04 be 202a6b4 <symlink+0xc4> <== NEVER TAKEN
202a6a8: 01 00 00 00 nop
202a6ac: 9f c0 40 00 call %g1
202a6b0: 90 10 00 10 mov %l0, %o0
return result;
}
202a6b4: 81 c7 e0 08 ret
202a6b8: 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 5c ld [ %i0 + 0x15c ], %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 7b sethi %hi(0x201ec00), %l0
current_reent = _Thread_Executing->libc_reent;
2004fe8: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 ! 201ec40 <_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 5c ld [ %g1 + 0x15c ], %l1
_Thread_Executing->libc_reent = this_reent;
2004ff4: c4 20 61 5c st %g2, [ %g1 + 0x15c ]
_fwalk (t->libc_reent, sync_wrapper);
2004ff8: d0 06 21 5c ld [ %i0 + 0x15c ], %o0
2004ffc: 40 00 32 3c call 20118ec <_fwalk>
2005000: 92 12 60 3c or %o1, 0x3c, %o1
_Thread_Executing->libc_reent = current_reent;
2005004: c2 04 20 40 ld [ %l0 + 0x40 ], %g1
2005008: e2 20 61 5c st %l1, [ %g1 + 0x15c ]
200500c: 81 c7 e0 08 ret
2005010: 81 e8 00 00 restore
02013740 <tcsetattr>:
int tcsetattr(
int fd,
int opt,
struct termios *tp
)
{
2013740: 9d e3 bf a0 save %sp, -96, %sp
switch (opt) {
2013744: 80 a6 60 00 cmp %i1, 0
2013748: 02 80 00 10 be 2013788 <tcsetattr+0x48> <== ALWAYS TAKEN
201374c: 80 a6 60 01 cmp %i1, 1
2013750: 02 80 00 08 be 2013770 <tcsetattr+0x30> <== NOT EXECUTED
2013754: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one( ENOTSUP );
2013758: 40 00 11 be call 2017e50 <__errno> <== NOT EXECUTED
201375c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2013760: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
2013764: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2013768: 81 c7 e0 08 ret <== NOT EXECUTED
201376c: 81 e8 00 00 restore <== NOT EXECUTED
case TCSADRAIN:
if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0)
2013770: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED
2013774: 40 00 0f 4d call 20174a8 <ioctl> <== NOT EXECUTED
2013778: 94 10 20 00 clr %o2 <== NOT EXECUTED
201377c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2013780: 26 80 00 04 bl,a 2013790 <tcsetattr+0x50> <== NOT EXECUTED
2013784: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return -1;
/*
* Fall through to....
*/
case TCSANOW:
return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );
2013788: 40 00 0f 48 call 20174a8 <ioctl>
201378c: 93 e8 20 02 restore %g0, 2, %o1
}
}
2013790: 81 c7 e0 08 ret <== NOT EXECUTED
2013794: 81 e8 00 00 restore <== NOT EXECUTED
0200ecf8 <unlink>:
#include <rtems/seterr.h>
int unlink(
const char *path
)
{
200ecf8: 9d e3 bf 70 save %sp, -144, %sp
/*
* Get the node to be unlinked. Find the parent path first.
*/
parentpathlen = rtems_filesystem_dirname ( path );
200ecfc: 7f ff cf 17 call 2002958 <rtems_filesystem_dirname>
200ed00: 90 10 00 18 mov %i0, %o0
if ( parentpathlen == 0 )
200ed04: a6 92 20 00 orcc %o0, 0, %l3
200ed08: 12 80 00 09 bne 200ed2c <unlink+0x34>
200ed0c: 96 07 bf e8 add %fp, -24, %o3
rtems_filesystem_get_start_loc( path, &i, &parentloc );
200ed10: 94 10 00 0b mov %o3, %o2
200ed14: 90 10 00 18 mov %i0, %o0
200ed18: 92 07 bf fc add %fp, -4, %o1
200ed1c: 7f ff d3 56 call 2003a74 <rtems_filesystem_get_start_loc>
200ed20: a2 10 20 00 clr %l1
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
200ed24: 10 80 00 0b b 200ed50 <unlink+0x58>
200ed28: 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,
200ed2c: 90 10 00 18 mov %i0, %o0
200ed30: 92 10 00 13 mov %l3, %o1
200ed34: 94 10 20 02 mov 2, %o2
200ed38: 7f ff cf 54 call 2002a88 <rtems_filesystem_evaluate_path>
200ed3c: 98 10 20 00 clr %o4
RTEMS_LIBIO_PERMS_WRITE,
&parentloc,
false );
if ( result != 0 )
200ed40: 80 a2 20 00 cmp %o0, 0
200ed44: 12 80 00 82 bne 200ef4c <unlink+0x254> <== NEVER TAKEN
200ed48: a2 10 20 01 mov 1, %l1
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
200ed4c: 94 10 20 14 mov 0x14, %o2
200ed50: a0 07 bf d4 add %fp, -44, %l0
200ed54: a4 07 bf e8 add %fp, -24, %l2
200ed58: 90 10 00 10 mov %l0, %o0
200ed5c: 40 00 04 2c call 200fe0c <memcpy>
200ed60: 92 10 00 12 mov %l2, %o1
name = path + parentpathlen;
200ed64: b0 06 00 13 add %i0, %l3, %i0
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
200ed68: 40 00 05 ba call 2010450 <strlen>
200ed6c: 90 10 00 18 mov %i0, %o0
200ed70: 92 10 00 08 mov %o0, %o1
200ed74: 7f ff ce e7 call 2002910 <rtems_filesystem_prefix_separators>
200ed78: 90 10 00 18 mov %i0, %o0
200ed7c: b0 06 00 08 add %i0, %o0, %i0
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
200ed80: 40 00 05 b4 call 2010450 <strlen>
200ed84: 90 10 00 18 mov %i0, %o0
200ed88: 94 10 20 00 clr %o2
200ed8c: 92 10 00 08 mov %o0, %o1
200ed90: 96 10 00 10 mov %l0, %o3
200ed94: 90 10 00 18 mov %i0, %o0
200ed98: 7f ff cf 00 call 2002998 <rtems_filesystem_evaluate_relative_path>
200ed9c: 98 10 20 00 clr %o4
0, &loc, false );
if ( result != 0 ) {
200eda0: 80 a2 20 00 cmp %o0, 0
200eda4: 02 80 00 11 be 200ede8 <unlink+0xf0>
200eda8: c4 07 bf e0 ld [ %fp + -32 ], %g2
if ( free_parentloc )
200edac: 80 8c 60 ff btst 0xff, %l1
200edb0: 02 80 00 0c be 200ede0 <unlink+0xe8> <== NEVER TAKEN
200edb4: b0 10 3f ff mov -1, %i0
rtems_filesystem_freenode( &parentloc );
200edb8: c2 07 bf f4 ld [ %fp + -12 ], %g1
200edbc: 80 a0 60 00 cmp %g1, 0
200edc0: 02 80 00 64 be 200ef50 <unlink+0x258> <== NEVER TAKEN
200edc4: 01 00 00 00 nop
200edc8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
200edcc: 80 a0 60 00 cmp %g1, 0
200edd0: 02 80 00 04 be 200ede0 <unlink+0xe8> <== NEVER TAKEN
200edd4: 90 10 00 12 mov %l2, %o0
200edd8: 9f c0 40 00 call %g1
200eddc: 01 00 00 00 nop
200ede0: 81 c7 e0 08 ret
200ede4: 81 e8 00 00 restore
return -1;
}
if ( !loc.ops->node_type_h ) {
200ede8: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1
200edec: 80 a0 60 00 cmp %g1, 0
200edf0: 22 80 00 26 be,a 200ee88 <unlink+0x190> <== NEVER TAKEN
200edf4: 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 ) {
200edf8: 9f c0 40 00 call %g1
200edfc: 90 10 00 10 mov %l0, %o0
200ee00: 80 a2 20 01 cmp %o0, 1
200ee04: 12 80 00 1c bne 200ee74 <unlink+0x17c>
200ee08: c4 07 bf e0 ld [ %fp + -32 ], %g2
rtems_filesystem_freenode( &loc );
200ee0c: 80 a0 a0 00 cmp %g2, 0
200ee10: 02 80 00 09 be 200ee34 <unlink+0x13c> <== NEVER TAKEN
200ee14: 80 8c 60 ff btst 0xff, %l1
200ee18: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1
200ee1c: 80 a0 60 00 cmp %g1, 0
200ee20: 02 80 00 05 be 200ee34 <unlink+0x13c> <== NEVER TAKEN
200ee24: 80 8c 60 ff btst 0xff, %l1
200ee28: 9f c0 40 00 call %g1
200ee2c: 90 10 00 10 mov %l0, %o0
if ( free_parentloc )
200ee30: 80 8c 60 ff btst 0xff, %l1
200ee34: 02 80 00 0c be 200ee64 <unlink+0x16c> <== ALWAYS TAKEN
200ee38: 01 00 00 00 nop
rtems_filesystem_freenode( &parentloc );
200ee3c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
200ee40: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200ee44: 02 80 00 08 be 200ee64 <unlink+0x16c> <== NOT EXECUTED
200ee48: 01 00 00 00 nop <== NOT EXECUTED
200ee4c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
200ee50: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200ee54: 02 80 00 04 be 200ee64 <unlink+0x16c> <== NOT EXECUTED
200ee58: 01 00 00 00 nop <== NOT EXECUTED
200ee5c: 9f c0 40 00 call %g1 <== NOT EXECUTED
200ee60: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EISDIR );
200ee64: 40 00 01 ae call 200f51c <__errno>
200ee68: b0 10 3f ff mov -1, %i0
200ee6c: 10 80 00 1b b 200eed8 <unlink+0x1e0>
200ee70: 82 10 20 15 mov 0x15, %g1
}
if ( !loc.ops->unlink_h ) {
200ee74: c2 00 a0 0c ld [ %g2 + 0xc ], %g1
200ee78: 80 a0 60 00 cmp %g1, 0
200ee7c: 12 80 00 1a bne 200eee4 <unlink+0x1ec> <== ALWAYS TAKEN
200ee80: 90 10 00 12 mov %l2, %o0
rtems_filesystem_freenode( &loc );
200ee84: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
200ee88: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200ee8c: 02 80 00 05 be 200eea0 <unlink+0x1a8> <== NOT EXECUTED
200ee90: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED
200ee94: 9f c0 40 00 call %g1 <== NOT EXECUTED
200ee98: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if ( free_parentloc )
200ee9c: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED
200eea0: 02 80 00 0b be 200eecc <unlink+0x1d4> <== NOT EXECUTED
200eea4: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
200eea8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200eeac: 02 80 00 08 be 200eecc <unlink+0x1d4> <== NOT EXECUTED
200eeb0: 01 00 00 00 nop <== NOT EXECUTED
200eeb4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
200eeb8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200eebc: 02 80 00 04 be 200eecc <unlink+0x1d4> <== NOT EXECUTED
200eec0: 01 00 00 00 nop <== NOT EXECUTED
200eec4: 9f c0 40 00 call %g1 <== NOT EXECUTED
200eec8: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
200eecc: 40 00 01 94 call 200f51c <__errno> <== NOT EXECUTED
200eed0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200eed4: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
200eed8: c2 22 00 00 st %g1, [ %o0 ]
200eedc: 81 c7 e0 08 ret
200eee0: 81 e8 00 00 restore
}
result = (*loc.ops->unlink_h)( &parentloc, &loc );
200eee4: 9f c0 40 00 call %g1
200eee8: 92 10 00 10 mov %l0, %o1
rtems_filesystem_freenode( &loc );
200eeec: c2 07 bf e0 ld [ %fp + -32 ], %g1
200eef0: 80 a0 60 00 cmp %g1, 0
200eef4: 02 80 00 08 be 200ef14 <unlink+0x21c> <== NEVER TAKEN
200eef8: b0 10 00 08 mov %o0, %i0
200eefc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
200ef00: 80 a0 60 00 cmp %g1, 0
200ef04: 02 80 00 05 be 200ef18 <unlink+0x220> <== NEVER TAKEN
200ef08: 80 8c 60 ff btst 0xff, %l1
200ef0c: 9f c0 40 00 call %g1
200ef10: 90 10 00 10 mov %l0, %o0
if ( free_parentloc )
200ef14: 80 8c 60 ff btst 0xff, %l1
200ef18: 02 bf ff b2 be 200ede0 <unlink+0xe8>
200ef1c: c2 07 bf f4 ld [ %fp + -12 ], %g1
rtems_filesystem_freenode( &parentloc );
200ef20: 80 a0 60 00 cmp %g1, 0
200ef24: 02 80 00 0b be 200ef50 <unlink+0x258> <== NEVER TAKEN
200ef28: 01 00 00 00 nop
200ef2c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
200ef30: 80 a0 60 00 cmp %g1, 0
200ef34: 02 80 00 07 be 200ef50 <unlink+0x258> <== NEVER TAKEN
200ef38: 01 00 00 00 nop
200ef3c: 9f c0 40 00 call %g1
200ef40: 90 07 bf e8 add %fp, -24, %o0
200ef44: 81 c7 e0 08 ret
200ef48: 81 e8 00 00 restore
200ef4c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return result;
}
200ef50: 81 c7 e0 08 ret <== NOT EXECUTED
200ef54: 81 e8 00 00 restore <== NOT EXECUTED
0202a904 <unmount>:
*/
int unmount(
const char *path
)
{
202a904: 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 ) )
202a908: 40 00 7c 70 call 2049ac8 <strlen>
202a90c: 90 10 00 18 mov %i0, %o0
202a910: a0 07 bf ec add %fp, -20, %l0
202a914: 92 10 00 08 mov %o0, %o1
202a918: 94 10 20 00 clr %o2
202a91c: 90 10 00 18 mov %i0, %o0
202a920: 96 10 00 10 mov %l0, %o3
202a924: 7f ff 76 32 call 20081ec <rtems_filesystem_evaluate_path>
202a928: 98 10 20 01 mov 1, %o4
202a92c: 80 a2 20 00 cmp %o0, 0
202a930: 12 80 00 6f bne 202aaec <unmount+0x1e8>
202a934: 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;
202a938: c4 07 bf ec ld [ %fp + -20 ], %g2
202a93c: c6 04 60 1c ld [ %l1 + 0x1c ], %g3
202a940: 80 a0 c0 02 cmp %g3, %g2
202a944: 02 80 00 0f be 202a980 <unmount+0x7c>
202a948: 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 );
202a94c: 80 a0 60 00 cmp %g1, 0
202a950: 02 80 00 08 be 202a970 <unmount+0x6c> <== NEVER TAKEN
202a954: 01 00 00 00 nop
202a958: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202a95c: 80 a0 60 00 cmp %g1, 0
202a960: 02 80 00 04 be 202a970 <unmount+0x6c> <== NEVER TAKEN
202a964: 01 00 00 00 nop
202a968: 9f c0 40 00 call %g1
202a96c: 90 10 00 10 mov %l0, %o0
rtems_set_errno_and_return_minus_one( EACCES );
202a970: 40 00 60 ae call 2042c28 <__errno>
202a974: 01 00 00 00 nop
202a978: 10 80 00 21 b 202a9fc <unmount+0xf8>
202a97c: 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 );
202a980: 80 a0 60 00 cmp %g1, 0
202a984: 22 80 00 09 be,a 202a9a8 <unmount+0xa4> <== NEVER TAKEN
202a988: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED
202a98c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202a990: 80 a0 60 00 cmp %g1, 0
202a994: 22 80 00 05 be,a 202a9a8 <unmount+0xa4> <== NEVER TAKEN
202a998: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED
202a99c: 9f c0 40 00 call %g1
202a9a0: 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;
202a9a4: c2 04 60 14 ld [ %l1 + 0x14 ], %g1
202a9a8: c2 00 60 28 ld [ %g1 + 0x28 ], %g1
202a9ac: 80 a0 60 00 cmp %g1, 0
202a9b0: 02 80 00 07 be 202a9cc <unmount+0xc8> <== NEVER TAKEN
202a9b4: 01 00 00 00 nop
fs_root_loc = &mt_entry->mt_fs_root;
202a9b8: c2 04 60 28 ld [ %l1 + 0x28 ], %g1
202a9bc: c2 00 60 2c ld [ %g1 + 0x2c ], %g1
202a9c0: 80 a0 60 00 cmp %g1, 0
202a9c4: 32 80 00 06 bne,a 202a9dc <unmount+0xd8> <== ALWAYS TAKEN
202a9c8: 03 00 81 a5 sethi %hi(0x2069400), %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 );
202a9cc: 40 00 60 97 call 2042c28 <__errno> <== NOT EXECUTED
202a9d0: 01 00 00 00 nop <== NOT EXECUTED
202a9d4: 10 80 00 0a b 202a9fc <unmount+0xf8> <== NOT EXECUTED
202a9d8: 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 )
202a9dc: c2 00 60 34 ld [ %g1 + 0x34 ], %g1
202a9e0: c2 00 60 14 ld [ %g1 + 0x14 ], %g1
202a9e4: 80 a0 40 11 cmp %g1, %l1
202a9e8: 32 80 00 08 bne,a 202aa08 <unmount+0x104>
202a9ec: d2 04 60 2c ld [ %l1 + 0x2c ], %o1
rtems_set_errno_and_return_minus_one( EBUSY );
202a9f0: 40 00 60 8e call 2042c28 <__errno>
202a9f4: 01 00 00 00 nop
202a9f8: 82 10 20 10 mov 0x10, %g1 ! 10 <PROM_START+0x10>
202a9fc: c2 22 00 00 st %g1, [ %o0 ]
202aa00: 81 c7 e0 08 ret
202aa04: 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,
202aa08: 11 00 80 aa sethi %hi(0x202a800), %o0
202aa0c: 7f ff 78 a6 call 2008ca4 <rtems_filesystem_mount_iterate>
202aa10: 90 12 20 f0 or %o0, 0xf0, %o0 ! 202a8f0 <is_fs_below_mount_point>
202aa14: 80 8a 20 ff btst 0xff, %o0
202aa18: 12 bf ff f6 bne 202a9f0 <unmount+0xec>
202aa1c: 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 )
202aa20: 7f ff 76 f5 call 20085f4 <rtems_libio_is_open_files_in_fs>
202aa24: 90 10 00 11 mov %l1, %o0
202aa28: 80 a2 20 01 cmp %o0, 1
202aa2c: 02 bf ff f1 be 202a9f0 <unmount+0xec>
202aa30: 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 )
202aa34: c2 04 60 14 ld [ %l1 + 0x14 ], %g1
202aa38: c2 00 60 28 ld [ %g1 + 0x28 ], %g1
202aa3c: 9f c0 40 00 call %g1
202aa40: 90 10 00 11 mov %l1, %o0
202aa44: 80 a2 20 00 cmp %o0, 0
202aa48: 12 80 00 29 bne 202aaec <unmount+0x1e8> <== NEVER TAKEN
202aa4c: 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){
202aa50: c2 04 60 28 ld [ %l1 + 0x28 ], %g1
202aa54: c2 00 60 2c ld [ %g1 + 0x2c ], %g1
202aa58: 9f c0 40 00 call %g1
202aa5c: 90 10 00 11 mov %l1, %o0
202aa60: 80 a2 20 00 cmp %o0, 0
202aa64: 02 80 00 0b be 202aa90 <unmount+0x18c> <== ALWAYS TAKEN
202aa68: 21 00 81 b4 sethi %hi(0x206d000), %l0
if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 )
202aa6c: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED
202aa70: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 <== NOT EXECUTED
202aa74: 9f c0 40 00 call %g1 <== NOT EXECUTED
202aa78: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
202aa7c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202aa80: 02 80 00 1b be 202aaec <unmount+0x1e8> <== NOT EXECUTED
202aa84: 01 00 00 00 nop <== NOT EXECUTED
rtems_fatal_error_occurred( 0 );
202aa88: 7f ff 8a 04 call 200d298 <rtems_fatal_error_occurred> <== NOT EXECUTED
202aa8c: 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 );
202aa90: d0 04 21 ec ld [ %l0 + 0x1ec ], %o0
202aa94: 92 10 20 00 clr %o1
202aa98: 7f ff 88 16 call 200caf0 <rtems_semaphore_obtain>
202aa9c: 94 10 20 00 clr %o2
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
202aaa0: 7f ff 8b 29 call 200d744 <_Chain_Extract>
202aaa4: 90 10 00 11 mov %l1, %o0
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
202aaa8: 7f ff 88 59 call 200cc0c <rtems_semaphore_release>
202aaac: d0 04 21 ec ld [ %l0 + 0x1ec ], %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 );
202aab0: c2 04 60 14 ld [ %l1 + 0x14 ], %g1
202aab4: 80 a0 60 00 cmp %g1, 0
202aab8: 02 80 00 09 be 202aadc <unmount+0x1d8> <== NEVER TAKEN
202aabc: 90 10 00 11 mov %l1, %o0
202aac0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202aac4: 80 a0 60 00 cmp %g1, 0
202aac8: 02 80 00 05 be 202aadc <unmount+0x1d8> <== NEVER TAKEN
202aacc: 01 00 00 00 nop
202aad0: 9f c0 40 00 call %g1
202aad4: 90 04 60 08 add %l1, 8, %o0
free( mt_entry );
202aad8: 90 10 00 11 mov %l1, %o0
202aadc: 7f ff 75 e1 call 2008260 <free>
202aae0: b0 10 20 00 clr %i0
return 0;
202aae4: 81 c7 e0 08 ret
202aae8: 81 e8 00 00 restore
}
202aaec: 81 c7 e0 08 ret
202aaf0: 91 e8 3f ff restore %g0, -1, %o0
0202aaf4 <utime>:
int utime(
const char *path,
const struct utimbuf *times
)
{
202aaf4: 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 ) )
202aaf8: 40 00 7b f4 call 2049ac8 <strlen>
202aafc: 90 10 00 18 mov %i0, %o0
202ab00: a0 07 bf ec add %fp, -20, %l0
202ab04: 92 10 00 08 mov %o0, %o1
202ab08: 94 10 20 00 clr %o2
202ab0c: 90 10 00 18 mov %i0, %o0
202ab10: 96 10 00 10 mov %l0, %o3
202ab14: 98 10 20 01 mov 1, %o4
202ab18: 7f ff 75 b5 call 20081ec <rtems_filesystem_evaluate_path>
202ab1c: b0 10 3f ff mov -1, %i0
202ab20: 80 a2 20 00 cmp %o0, 0
202ab24: 12 80 00 10 bne 202ab64 <utime+0x70>
202ab28: c4 07 bf f8 ld [ %fp + -8 ], %g2
return -1;
if ( !temp_loc.ops->utime_h ){
202ab2c: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1
202ab30: 80 a0 60 00 cmp %g1, 0
202ab34: 32 80 00 0e bne,a 202ab6c <utime+0x78> <== ALWAYS TAKEN
202ab38: d4 06 60 04 ld [ %i1 + 4 ], %o2
rtems_filesystem_freenode( &temp_loc );
202ab3c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
202ab40: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202ab44: 02 80 00 04 be 202ab54 <utime+0x60> <== NOT EXECUTED
202ab48: 01 00 00 00 nop <== NOT EXECUTED
202ab4c: 9f c0 40 00 call %g1 <== NOT EXECUTED
202ab50: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
202ab54: 40 00 60 35 call 2042c28 <__errno> <== NOT EXECUTED
202ab58: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202ab5c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
202ab60: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202ab64: 81 c7 e0 08 ret
202ab68: 81 e8 00 00 restore
}
result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime );
202ab6c: d2 06 40 00 ld [ %i1 ], %o1
202ab70: 9f c0 40 00 call %g1
202ab74: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &temp_loc );
202ab78: c2 07 bf f8 ld [ %fp + -8 ], %g1
202ab7c: 80 a0 60 00 cmp %g1, 0
202ab80: 02 bf ff f9 be 202ab64 <utime+0x70> <== NEVER TAKEN
202ab84: b0 10 00 08 mov %o0, %i0
202ab88: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202ab8c: 80 a0 60 00 cmp %g1, 0
202ab90: 02 80 00 04 be 202aba0 <utime+0xac> <== NEVER TAKEN
202ab94: 01 00 00 00 nop
202ab98: 9f c0 40 00 call %g1
202ab9c: 90 10 00 10 mov %l0, %o0
return result;
}
202aba0: 81 c7 e0 08 ret
202aba4: 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 70 sethi %hi(0x201c000), %l1
for (n = 0; n < count; n++) {
BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]);
20058e4: 39 00 80 6c sethi %hi(0x201b000), %i4
unsigned i, len;
char *s, *str;
str = va_arg(ap, char *);
if ( str == NULL ) {
20058e8: 3b 00 80 6c sethi %hi(0x201b000), %i5
unsigned_num = n;
}
toPrint[count++] = (char) unsigned_num;
for (n=maxwidth ; n > count; n-- )
BSP_output_char(lead);
20058ec: a2 14 62 5c or %l1, 0x25c, %l1
for (n = 0; n < count; n++) {
BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]);
20058f0: b8 17 20 60 or %i4, 0x60, %i4
unsigned i, len;
char *s, *str;
str = va_arg(ap, char *);
if ( str == NULL ) {
20058f4: ba 17 60 58 or %i5, 0x58, %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 4b 7f call 2018980 <.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 4b b1 call 2018a68 <.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
0201a420 <write>:
ssize_t write(
int fd,
const void *buffer,
size_t count
)
{
201a420: 9d e3 bf a0 save %sp, -96, %sp
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
201a424: 03 00 80 70 sethi %hi(0x201c000), %g1
201a428: c2 00 60 b4 ld [ %g1 + 0xb4 ], %g1 ! 201c0b4 <rtems_libio_number_iops>
ssize_t write(
int fd,
const void *buffer,
size_t count
)
{
201a42c: 92 10 00 19 mov %i1, %o1
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
201a430: 80 a6 00 01 cmp %i0, %g1
201a434: 1a 80 00 17 bcc 201a490 <write+0x70> <== NEVER TAKEN
201a438: 94 10 00 1a mov %i2, %o2
iop = rtems_libio_iop( fd );
201a43c: 03 00 80 72 sethi %hi(0x201c800), %g1
201a440: e0 00 62 48 ld [ %g1 + 0x248 ], %l0 ! 201ca48 <rtems_libio_iops>
201a444: 83 2e 20 06 sll %i0, 6, %g1
201a448: b1 2e 20 03 sll %i0, 3, %i0
201a44c: b0 06 00 01 add %i0, %g1, %i0
201a450: a0 04 00 18 add %l0, %i0, %l0
rtems_libio_check_is_open( iop );
201a454: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
201a458: 80 88 61 00 btst 0x100, %g1
201a45c: 02 80 00 0d be 201a490 <write+0x70> <== NEVER TAKEN
201a460: 80 a6 60 00 cmp %i1, 0
rtems_libio_check_buffer( buffer );
201a464: 12 80 00 06 bne 201a47c <write+0x5c> <== ALWAYS TAKEN
201a468: 80 a6 a0 00 cmp %i2, 0
201a46c: 7f ff d4 2c call 200f51c <__errno> <== NOT EXECUTED
201a470: 01 00 00 00 nop <== NOT EXECUTED
201a474: 10 80 00 12 b 201a4bc <write+0x9c> <== NOT EXECUTED
201a478: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
rtems_libio_check_count( count );
201a47c: 02 80 00 1c be 201a4ec <write+0xcc>
201a480: 90 10 20 00 clr %o0
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
201a484: 80 88 60 04 btst 4, %g1
201a488: 32 80 00 06 bne,a 201a4a0 <write+0x80> <== ALWAYS TAKEN
201a48c: c2 04 20 40 ld [ %l0 + 0x40 ], %g1
201a490: 7f ff d4 23 call 200f51c <__errno> <== NOT EXECUTED
201a494: 01 00 00 00 nop <== NOT EXECUTED
201a498: 10 80 00 09 b 201a4bc <write+0x9c> <== NOT EXECUTED
201a49c: 82 10 20 09 mov 9, %g1 ! 9 <PROM_START+0x9> <== NOT EXECUTED
/*
* Now process the write() request.
*/
if ( !iop->handlers->write_h )
201a4a0: c2 00 60 0c ld [ %g1 + 0xc ], %g1
201a4a4: 80 a0 60 00 cmp %g1, 0
201a4a8: 12 80 00 08 bne 201a4c8 <write+0xa8> <== ALWAYS TAKEN
201a4ac: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOTSUP );
201a4b0: 7f ff d4 1b call 200f51c <__errno> <== NOT EXECUTED
201a4b4: 01 00 00 00 nop <== NOT EXECUTED
201a4b8: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
201a4bc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
201a4c0: 10 80 00 0b b 201a4ec <write+0xcc> <== NOT EXECUTED
201a4c4: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
rc = (*iop->handlers->write_h)( iop, buffer, count );
201a4c8: 9f c0 40 00 call %g1
201a4cc: 90 10 00 10 mov %l0, %o0
if ( rc > 0 )
201a4d0: 80 a2 20 00 cmp %o0, 0
201a4d4: 04 80 00 06 ble 201a4ec <write+0xcc> <== NEVER TAKEN
201a4d8: 85 3a 20 1f sra %o0, 0x1f, %g2
iop->offset += rc;
201a4dc: d8 1c 20 10 ldd [ %l0 + 0x10 ], %o4
201a4e0: 86 83 40 08 addcc %o5, %o0, %g3
201a4e4: 84 43 00 02 addx %o4, %g2, %g2
201a4e8: c4 3c 20 10 std %g2, [ %l0 + 0x10 ]
return rc;
}
201a4ec: 81 c7 e0 08 ret
201a4f0: 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 7a sethi %hi(0x201e800), %g1
2006d24: c2 00 63 a4 ld [ %g1 + 0x3a4 ], %g1 ! 201eba4 <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 7f sethi %hi(0x201fc00), %g1
2006d38: e4 00 61 0c ld [ %g1 + 0x10c ], %l2 ! 201fd0c <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 26 22 call 20105ec <__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 26 13 call 20105ec <__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 26 08 call 20105ec <__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