RTEMS 4.10.2Annotated Report
Tue Dec 13 19:33:12 2011
0200b5e4 <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 ) {
200b5e4: c2 02 00 00 ld [ %o0 ], %g1
)
{
IMFS_jnode_t *node = loc->node_access;
IMFS_fs_info_t *fs_info;
fs_info = loc->mt_entry->fs_info;
200b5e8: c4 02 20 10 ld [ %o0 + 0x10 ], %g2
switch( node->type ) {
200b5ec: c2 00 60 4c ld [ %g1 + 0x4c ], %g1
200b5f0: 80 a0 60 07 cmp %g1, 7
200b5f4: 18 80 00 0a bgu 200b61c <IMFS_Set_handlers+0x38> <== NEVER TAKEN
200b5f8: c4 00 a0 34 ld [ %g2 + 0x34 ], %g2
200b5fc: 83 28 60 02 sll %g1, 2, %g1
200b600: 07 00 80 2d sethi %hi(0x200b400), %g3
200b604: 86 10 e1 c4 or %g3, 0x1c4, %g3 ! 200b5c4 <IMFS_create_node+0x114>
200b608: c2 00 c0 01 ld [ %g3 + %g1 ], %g1
200b60c: 81 c0 40 00 jmp %g1
200b610: 01 00 00 00 nop
case IMFS_DIRECTORY:
loc->handlers = fs_info->directory_handlers;
200b614: c2 00 a0 0c ld [ %g2 + 0xc ], %g1
200b618: c2 22 20 08 st %g1, [ %o0 + 8 ]
loc->handlers = &IMFS_fifo_handlers;
break;
}
return 0;
}
200b61c: 81 c3 e0 08 retl
200b620: 90 10 20 00 clr %o0
break;
case IMFS_LINEAR_FILE:
loc->handlers = fs_info->memfile_handlers;
break;
case IMFS_MEMORY_FILE:
loc->handlers = fs_info->memfile_handlers;
200b624: c2 00 a0 08 ld [ %g2 + 8 ], %g1
200b628: c2 22 20 08 st %g1, [ %o0 + 8 ]
loc->handlers = &IMFS_fifo_handlers;
break;
}
return 0;
}
200b62c: 81 c3 e0 08 retl
200b630: 90 10 20 00 clr %o0
case IMFS_DEVICE:
loc->handlers = &IMFS_device_handlers;
break;
case IMFS_SYM_LINK:
case IMFS_HARD_LINK:
loc->handlers = &IMFS_link_handlers;
200b634: 03 00 80 71 sethi %hi(0x201c400), %g1
200b638: 82 10 60 48 or %g1, 0x48, %g1 ! 201c448 <IMFS_link_handlers>
200b63c: c2 22 20 08 st %g1, [ %o0 + 8 ]
loc->handlers = &IMFS_fifo_handlers;
break;
}
return 0;
}
200b640: 81 c3 e0 08 retl
200b644: 90 10 20 00 clr %o0
break;
case IMFS_MEMORY_FILE:
loc->handlers = fs_info->memfile_handlers;
break;
case IMFS_FIFO:
loc->handlers = &IMFS_fifo_handlers;
200b648: 03 00 80 70 sethi %hi(0x201c000), %g1
200b64c: 82 10 63 00 or %g1, 0x300, %g1 ! 201c300 <IMFS_fifo_handlers>
200b650: c2 22 20 08 st %g1, [ %o0 + 8 ]
break;
}
return 0;
}
200b654: 81 c3 e0 08 retl
200b658: 90 10 20 00 clr %o0
switch( node->type ) {
case IMFS_DIRECTORY:
loc->handlers = fs_info->directory_handlers;
break;
case IMFS_DEVICE:
loc->handlers = &IMFS_device_handlers;
200b65c: 03 00 80 70 sethi %hi(0x201c000), %g1
200b660: 82 10 63 d8 or %g1, 0x3d8, %g1 ! 201c3d8 <IMFS_device_handlers>
200b664: c2 22 20 08 st %g1, [ %o0 + 8 ]
loc->handlers = &IMFS_fifo_handlers;
break;
}
return 0;
}
200b668: 81 c3 e0 08 retl
200b66c: 90 10 20 00 clr %o0
0200b40c <IMFS_allocate_node>:
IMFS_jnode_t *IMFS_allocate_node(
IMFS_jnode_types_t type,
const char *name,
mode_t mode
)
{
200b40c: 9d e3 bf 98 save %sp, -104, %sp
struct timeval tv;
/*
* Allocate an IMFS jnode
*/
node = calloc( 1, sizeof( IMFS_jnode_t ) );
200b410: 90 10 20 01 mov 1, %o0
200b414: 7f ff dd 93 call 2002a60 <calloc>
200b418: 92 10 20 68 mov 0x68, %o1
if ( !node )
200b41c: a0 92 20 00 orcc %o0, 0, %l0
200b420: 02 80 00 12 be 200b468 <IMFS_allocate_node+0x5c> <== NEVER TAKEN
200b424: 82 10 20 01 mov 1, %g1
/*
* Fill in the basic information
*/
node->st_nlink = 1;
node->type = type;
strncpy( node->name, name, IMFS_NAME_MAX );
200b428: 92 10 00 19 mov %i1, %o1
return NULL;
/*
* Fill in the basic information
*/
node->st_nlink = 1;
200b42c: c2 34 20 34 sth %g1, [ %l0 + 0x34 ]
node->type = type;
strncpy( node->name, name, IMFS_NAME_MAX );
200b430: 94 10 20 20 mov 0x20, %o2
/*
* Fill in the basic information
*/
node->st_nlink = 1;
node->type = type;
200b434: f0 24 20 4c st %i0, [ %l0 + 0x4c ]
strncpy( node->name, name, IMFS_NAME_MAX );
200b438: 40 00 18 08 call 2011458 <strncpy>
200b43c: 90 04 20 0c add %l0, 0xc, %o0
#endif
/*
* Now set all the times.
*/
gettimeofday( &tv, 0 );
200b440: 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;
200b444: 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;
200b448: c0 34 20 3c clrh [ %l0 + 0x3c ]
node->st_gid = 0;
200b44c: c0 34 20 3e clrh [ %l0 + 0x3e ]
#endif
/*
* Now set all the times.
*/
gettimeofday( &tv, 0 );
200b450: 7f ff de 52 call 2002d98 <gettimeofday>
200b454: 92 10 20 00 clr %o1
node->stat_atime = (time_t) tv.tv_sec;
200b458: c2 07 bf f8 ld [ %fp + -8 ], %g1
node->stat_mtime = (time_t) tv.tv_sec;
node->stat_ctime = (time_t) tv.tv_sec;
200b45c: c2 24 20 48 st %g1, [ %l0 + 0x48 ]
/*
* Now set all the times.
*/
gettimeofday( &tv, 0 );
node->stat_atime = (time_t) tv.tv_sec;
200b460: c2 24 20 40 st %g1, [ %l0 + 0x40 ]
node->stat_mtime = (time_t) tv.tv_sec;
200b464: c2 24 20 44 st %g1, [ %l0 + 0x44 ]
node->stat_ctime = (time_t) tv.tv_sec;
return node;
}
200b468: 81 c7 e0 08 ret
200b46c: 91 e8 00 10 restore %g0, %l0, %o0
0200b4b0 <IMFS_create_node>:
IMFS_jnode_types_t type,
const char *name,
mode_t mode,
const IMFS_types_union *info
)
{
200b4b0: 9d e3 bf a0 save %sp, -96, %sp
IMFS_fs_info_t *fs_info;
/*
* MUST have a parent node to call this routine.
*/
if ( parent_loc == NULL )
200b4b4: 80 a6 20 00 cmp %i0, 0
200b4b8: 12 80 00 04 bne 200b4c8 <IMFS_create_node+0x18> <== ALWAYS TAKEN
200b4bc: a0 10 20 00 clr %l0
node->st_ino = ++fs_info->ino_count;
rtems_chain_append( &parent->info.directory.Entries, &node->Node );
return node;
}
200b4c0: 81 c7 e0 08 ret <== NOT EXECUTED
200b4c4: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED
return NULL;
/*
* Allocate filesystem node and fill in basic information
*/
node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask );
200b4c8: 03 00 80 74 sethi %hi(0x201d000), %g1
200b4cc: c2 00 62 10 ld [ %g1 + 0x210 ], %g1 ! 201d210 <rtems_current_user_env>
200b4d0: 92 10 00 1a mov %i2, %o1
200b4d4: d4 00 60 2c ld [ %g1 + 0x2c ], %o2
200b4d8: 90 10 00 19 mov %i1, %o0
200b4dc: 7f ff ff cc call 200b40c <IMFS_allocate_node>
200b4e0: 94 2e c0 0a andn %i3, %o2, %o2
if ( !node )
200b4e4: a0 92 20 00 orcc %o0, 0, %l0
200b4e8: 02 bf ff f6 be 200b4c0 <IMFS_create_node+0x10> <== NEVER TAKEN
200b4ec: 80 a6 60 07 cmp %i1, 7
return NULL;
/*
* Set the type specific information
*/
switch (type) {
200b4f0: 28 80 00 0a bleu,a 200b518 <IMFS_create_node+0x68> <== ALWAYS TAKEN
200b4f4: b3 2e 60 02 sll %i1, 2, %i1
case IMFS_FIFO:
node->info.fifo.pipe = NULL;
break;
default:
assert(0);
200b4f8: 11 00 80 70 sethi %hi(0x201c000), %o0 <== NOT EXECUTED
200b4fc: 15 00 80 70 sethi %hi(0x201c000), %o2 <== NOT EXECUTED
200b500: 17 00 80 70 sethi %hi(0x201c000), %o3 <== NOT EXECUTED
200b504: 90 12 22 28 or %o0, 0x228, %o0 <== NOT EXECUTED
200b508: 94 12 a2 80 or %o2, 0x280, %o2 <== NOT EXECUTED
200b50c: 96 12 e2 78 or %o3, 0x278, %o3 <== NOT EXECUTED
200b510: 40 00 04 76 call 200c6e8 <__assert_func> <== NOT EXECUTED
200b514: 92 10 20 5c mov 0x5c, %o1 <== NOT EXECUTED
return NULL;
/*
* Set the type specific information
*/
switch (type) {
200b518: 03 00 80 2c sethi %hi(0x200b000), %g1
200b51c: 82 10 63 ec or %g1, 0x3ec, %g1 ! 200b3ec <IMFS_chown+0x2c>
200b520: c2 00 40 19 ld [ %g1 + %i1 ], %g1
200b524: 81 c0 40 00 jmp %g1
200b528: 01 00 00 00 nop
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;
200b52c: c2 07 00 00 ld [ %i4 ], %g1
200b530: c2 24 20 50 st %g1, [ %l0 + 0x50 ]
/*
* 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;
200b534: c2 06 20 10 ld [ %i0 + 0x10 ], %g1
}
/*
* This node MUST have a parent, so put it in that directory list.
*/
parent = parent_loc->node_access;
200b538: d0 06 00 00 ld [ %i0 ], %o0
fs_info = parent_loc->mt_entry->fs_info;
200b53c: c4 00 60 34 ld [ %g1 + 0x34 ], %g2
node->Parent = parent;
200b540: d0 24 20 08 st %o0, [ %l0 + 8 ]
node->st_ino = ++fs_info->ino_count;
200b544: c2 00 a0 04 ld [ %g2 + 4 ], %g1
200b548: 90 02 20 50 add %o0, 0x50, %o0
200b54c: 82 00 60 01 inc %g1
200b550: c2 20 a0 04 st %g1, [ %g2 + 4 ]
200b554: c2 24 20 38 st %g1, [ %l0 + 0x38 ]
200b558: 92 10 00 10 mov %l0, %o1
200b55c: 7f ff ef 51 call 20072a0 <_Chain_Append>
200b560: b0 10 00 10 mov %l0, %i0
rtems_chain_append( &parent->info.directory.Entries, &node->Node );
return node;
}
200b564: 81 c7 e0 08 ret
200b568: 81 e8 00 00 restore
node->info.device.major = info->device.major;
node->info.device.minor = info->device.minor;
break;
case IMFS_LINEAR_FILE:
node->info.linearfile.size = 0;
200b56c: c0 24 20 50 clr [ %l0 + 0x50 ] <== NOT EXECUTED
200b570: c0 24 20 54 clr [ %l0 + 0x54 ] <== NOT EXECUTED
node->info.linearfile.direct = 0;
200b574: c0 24 20 58 clr [ %l0 + 0x58 ] <== NOT EXECUTED
case IMFS_MEMORY_FILE:
node->info.file.size = 0;
200b578: c0 24 20 50 clr [ %l0 + 0x50 ]
200b57c: c0 24 20 54 clr [ %l0 + 0x54 ]
node->info.file.indirect = 0;
200b580: c0 24 20 58 clr [ %l0 + 0x58 ]
node->info.file.doubly_indirect = 0;
200b584: c0 24 20 5c clr [ %l0 + 0x5c ]
node->info.file.triply_indirect = 0;
break;
200b588: 10 bf ff eb b 200b534 <IMFS_create_node+0x84>
200b58c: c0 24 20 60 clr [ %l0 + 0x60 ]
case IMFS_FIFO:
node->info.fifo.pipe = NULL;
break;
200b590: 10 bf ff e9 b 200b534 <IMFS_create_node+0x84>
200b594: c0 24 20 50 clr [ %l0 + 0x50 ]
node->info.sym_link.name = info->sym_link.name;
break;
case IMFS_DEVICE:
node->info.device.major = info->device.major;
node->info.device.minor = info->device.minor;
200b598: 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;
200b59c: c2 07 00 00 ld [ %i4 ], %g1
node->info.device.minor = info->device.minor;
200b5a0: c4 24 20 54 st %g2, [ %l0 + 0x54 ]
break;
200b5a4: 10 bf ff e4 b 200b534 <IMFS_create_node+0x84>
200b5a8: c2 24 20 50 st %g1, [ %l0 + 0x50 ]
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
200b5ac: 82 04 20 54 add %l0, 0x54, %g1
the_chain->permanent_null = NULL;
200b5b0: c0 24 20 54 clr [ %l0 + 0x54 ]
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
200b5b4: c2 24 20 50 st %g1, [ %l0 + 0x50 ]
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
200b5b8: 82 04 20 50 add %l0, 0x50, %g1
200b5bc: 10 bf ff de b 200b534 <IMFS_create_node+0x84>
200b5c0: c2 24 20 58 st %g1, [ %l0 + 0x58 ]
0200b470 <IMFS_create_root_node>:
IMFS_jnode_t *IMFS_create_root_node(void)
{
200b470: 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) );
200b474: 90 10 20 01 mov 1, %o0
200b478: 13 00 80 70 sethi %hi(0x201c000), %o1
200b47c: 15 00 00 10 sethi %hi(0x4000), %o2
200b480: 92 12 62 20 or %o1, 0x220, %o1
200b484: 7f ff ff e2 call 200b40c <IMFS_allocate_node>
200b488: 94 12 a1 ed or %o2, 0x1ed, %o2
if ( !node )
200b48c: 80 a2 20 00 cmp %o0, 0
200b490: 02 80 00 06 be 200b4a8 <IMFS_create_root_node+0x38> <== NEVER TAKEN
200b494: 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;
200b498: 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);
200b49c: c2 22 20 50 st %g1, [ %o0 + 0x50 ]
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
200b4a0: 82 02 20 50 add %o0, 0x50, %g1
200b4a4: 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;
}
200b4a8: 81 c7 e0 08 ret
200b4ac: 91 e8 00 08 restore %g0, %o0, %o0
02004b38 <IMFS_dump_directory>:
void IMFS_dump_directory(
IMFS_jnode_t *the_directory,
int level
)
{
2004b38: 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 );
2004b3c: 80 a6 20 00 cmp %i0, 0
2004b40: 02 80 00 2b be 2004bec <IMFS_dump_directory+0xb4> <== NEVER TAKEN
2004b44: 80 a6 60 00 cmp %i1, 0
assert( level >= 0 );
2004b48: 06 80 00 38 bl 2004c28 <IMFS_dump_directory+0xf0> <== NEVER TAKEN
2004b4c: 11 00 80 93 sethi %hi(0x2024c00), %o0
assert( the_directory->type == IMFS_DIRECTORY );
2004b50: c2 06 20 4c ld [ %i0 + 0x4c ], %g1
2004b54: 80 a0 60 01 cmp %g1, 1
2004b58: 12 80 00 2d bne 2004c0c <IMFS_dump_directory+0xd4> <== NEVER TAKEN
2004b5c: a8 06 20 54 add %i0, 0x54, %l4
the_chain = &the_directory->info.directory.Entries;
for ( the_node = the_chain->first;
2004b60: e6 06 20 50 ld [ %i0 + 0x50 ], %l3
2004b64: 80 a4 c0 14 cmp %l3, %l4
2004b68: 02 80 00 1b be 2004bd4 <IMFS_dump_directory+0x9c>
2004b6c: 25 00 80 9b sethi %hi(0x2026c00), %l2
2004b70: 23 00 80 93 sethi %hi(0x2024c00), %l1
2004b74: a4 14 a0 e0 or %l2, 0xe0, %l2
the_node = the_node->next ) {
the_jnode = (IMFS_jnode_t *) the_node;
for ( i=0 ; i<=level ; i++ )
fprintf(stdout, "...." );
2004b78: a2 14 63 80 or %l1, 0x380, %l1
IMFS_print_jnode( the_jnode );
if ( the_jnode->type == IMFS_DIRECTORY )
IMFS_dump_directory( the_jnode, level + 1 );
2004b7c: aa 06 60 01 add %i1, 1, %l5
for ( the_node = the_chain->first;
!rtems_chain_is_tail( the_chain, the_node );
the_node = the_node->next ) {
the_jnode = (IMFS_jnode_t *) the_node;
2004b80: a0 10 20 00 clr %l0
for ( i=0 ; i<=level ; i++ )
fprintf(stdout, "...." );
2004b84: c2 04 80 00 ld [ %l2 ], %g1
2004b88: 90 10 00 11 mov %l1, %o0
2004b8c: d6 00 60 08 ld [ %g1 + 8 ], %o3
2004b90: 92 10 20 01 mov 1, %o1
2004b94: 40 00 43 f1 call 2015b58 <fwrite>
2004b98: 94 10 20 04 mov 4, %o2
!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++ )
2004b9c: a0 04 20 01 inc %l0
2004ba0: 80 a6 40 10 cmp %i1, %l0
2004ba4: 36 bf ff f9 bge,a 2004b88 <IMFS_dump_directory+0x50>
2004ba8: c2 04 80 00 ld [ %l2 ], %g1
fprintf(stdout, "...." );
IMFS_print_jnode( the_jnode );
2004bac: 7f ff ff 7d call 20049a0 <IMFS_print_jnode>
2004bb0: 90 10 00 13 mov %l3, %o0
if ( the_jnode->type == IMFS_DIRECTORY )
2004bb4: c2 04 e0 4c ld [ %l3 + 0x4c ], %g1
2004bb8: 80 a0 60 01 cmp %g1, 1
2004bbc: 22 80 00 08 be,a 2004bdc <IMFS_dump_directory+0xa4>
2004bc0: 90 10 00 13 mov %l3, %o0
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 ) {
2004bc4: e6 04 c0 00 ld [ %l3 ], %l3
assert( the_directory->type == IMFS_DIRECTORY );
the_chain = &the_directory->info.directory.Entries;
for ( the_node = the_chain->first;
2004bc8: 80 a4 c0 14 cmp %l3, %l4
2004bcc: 12 bf ff ee bne 2004b84 <IMFS_dump_directory+0x4c>
2004bd0: a0 10 20 00 clr %l0
2004bd4: 81 c7 e0 08 ret
2004bd8: 81 e8 00 00 restore
for ( i=0 ; i<=level ; i++ )
fprintf(stdout, "...." );
IMFS_print_jnode( the_jnode );
if ( the_jnode->type == IMFS_DIRECTORY )
IMFS_dump_directory( the_jnode, level + 1 );
2004bdc: 7f ff ff d7 call 2004b38 <IMFS_dump_directory>
2004be0: 92 10 00 15 mov %l5, %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 ) {
2004be4: 10 bf ff f9 b 2004bc8 <IMFS_dump_directory+0x90>
2004be8: e6 04 c0 00 ld [ %l3 ], %l3
rtems_chain_node *the_node;
rtems_chain_control *the_chain;
IMFS_jnode_t *the_jnode;
int i;
assert( the_directory );
2004bec: 11 00 80 93 sethi %hi(0x2024c00), %o0 <== NOT EXECUTED
2004bf0: 15 00 80 94 sethi %hi(0x2025000), %o2 <== NOT EXECUTED
2004bf4: 17 00 80 93 sethi %hi(0x2024c00), %o3 <== NOT EXECUTED
2004bf8: 90 12 22 50 or %o0, 0x250, %o0 <== NOT EXECUTED
2004bfc: 94 12 a0 48 or %o2, 0x48, %o2 <== NOT EXECUTED
2004c00: 96 12 e3 38 or %o3, 0x338, %o3 <== NOT EXECUTED
2004c04: 40 00 02 3a call 20054ec <__assert_func> <== NOT EXECUTED
2004c08: 92 10 20 84 mov 0x84, %o1 <== NOT EXECUTED
assert( level >= 0 );
assert( the_directory->type == IMFS_DIRECTORY );
2004c0c: 15 00 80 94 sethi %hi(0x2025000), %o2 <== NOT EXECUTED
2004c10: 17 00 80 93 sethi %hi(0x2024c00), %o3 <== NOT EXECUTED
2004c14: 90 12 22 50 or %o0, 0x250, %o0 <== NOT EXECUTED
2004c18: 94 12 a0 48 or %o2, 0x48, %o2 <== NOT EXECUTED
2004c1c: 96 12 e3 58 or %o3, 0x358, %o3 <== NOT EXECUTED
2004c20: 40 00 02 33 call 20054ec <__assert_func> <== NOT EXECUTED
2004c24: 92 10 20 88 mov 0x88, %o1 <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
int i;
assert( the_directory );
assert( level >= 0 );
2004c28: 15 00 80 94 sethi %hi(0x2025000), %o2 <== NOT EXECUTED
2004c2c: 17 00 80 93 sethi %hi(0x2024c00), %o3 <== NOT EXECUTED
2004c30: 90 12 22 50 or %o0, 0x250, %o0 <== NOT EXECUTED
2004c34: 94 12 a0 48 or %o2, 0x48, %o2 <== NOT EXECUTED
2004c38: 96 12 e3 48 or %o3, 0x348, %o3 <== NOT EXECUTED
2004c3c: 40 00 02 2c call 20054ec <__assert_func> <== NOT EXECUTED
2004c40: 92 10 20 86 mov 0x86, %o1 <== NOT EXECUTED
0200b7d4 <IMFS_eval_path>:
const char *pathname, /* IN */
size_t pathnamelen, /* IN */
int flags, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
200b7d4: 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 ) ) {
200b7d8: 80 8e bf f8 btst -8, %i2
200b7dc: 12 80 00 ee bne 200bb94 <IMFS_eval_path+0x3c0> <== NEVER TAKEN
200b7e0: a0 10 00 18 mov %i0, %l0
/*
* This was filled in by the caller and is valid in the
* mount table.
*/
node = pathloc->node_access;
200b7e4: e4 06 c0 00 ld [ %i3 ], %l2
case IMFS_UP_DIR:
/*
* Am I at the root of all filesystems? (chroot'ed?)
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access )
200b7e8: 2b 00 80 74 sethi %hi(0x201d000), %l5
/*
* This was filled in by the caller and is valid in the
* mount table.
*/
node = pathloc->node_access;
200b7ec: a2 10 20 00 clr %l1
case IMFS_UP_DIR:
/*
* Am I at the root of all filesystems? (chroot'ed?)
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access )
200b7f0: aa 15 62 10 or %l5, 0x210, %l5
200b7f4: a6 07 bf d8 add %fp, -40, %l3
200b7f8: a8 07 bf fc add %fp, -4, %l4
* 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 );
200b7fc: 90 04 00 11 add %l0, %l1, %o0
200b800: 92 10 00 19 mov %i1, %o1
200b804: 94 10 00 13 mov %l3, %o2
200b808: 40 00 03 15 call 200c45c <IMFS_get_token>
200b80c: 96 10 00 14 mov %l4, %o3
pathnamelen -= len;
i += len;
if ( !pathloc->node_access )
200b810: 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 );
200b814: ac 10 00 08 mov %o0, %l6
pathnamelen -= len;
i += len;
if ( !pathloc->node_access )
200b818: 80 a0 60 00 cmp %g1, 0
200b81c: 02 80 00 87 be 200ba38 <IMFS_eval_path+0x264> <== NEVER TAKEN
200b820: c4 07 bf fc ld [ %fp + -4 ], %g2
while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );
pathnamelen -= len;
i += len;
200b824: a2 04 40 02 add %l1, %g2, %l1
rtems_set_errno_and_return_minus_one( ENOENT );
/*
* I cannot move out of this directory without execute permission.
*/
if ( type != IMFS_NO_MORE_PATH )
200b828: 80 a2 20 00 cmp %o0, 0
200b82c: 12 80 00 11 bne 200b870 <IMFS_eval_path+0x9c>
200b830: b2 26 40 02 sub %i1, %g2, %i1
* 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 ) {
200b834: c4 00 60 4c ld [ %g1 + 0x4c ], %g2
200b838: 80 a0 a0 01 cmp %g2, 1
200b83c: 22 80 00 85 be,a 200ba50 <IMFS_eval_path+0x27c>
200b840: c4 00 60 5c ld [ %g1 + 0x5c ], %g2
flags, pathloc );
} else {
result = IMFS_Set_handlers( pathloc );
}
} else {
result = IMFS_Set_handlers( pathloc );
200b844: 7f ff ff 68 call 200b5e4 <IMFS_Set_handlers>
200b848: 90 10 00 1b mov %i3, %o0
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( pathloc, flags ) )
200b84c: 92 10 00 1a mov %i2, %o1
flags, pathloc );
} else {
result = IMFS_Set_handlers( pathloc );
}
} else {
result = IMFS_Set_handlers( pathloc );
200b850: b0 10 00 08 mov %o0, %i0
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( pathloc, flags ) )
200b854: 7f ff ff 87 call 200b670 <IMFS_evaluate_permission>
200b858: 90 10 00 1b mov %i3, %o0
200b85c: 80 a2 20 00 cmp %o0, 0
200b860: 02 80 00 98 be 200bac0 <IMFS_eval_path+0x2ec>
200b864: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EACCES );
return result;
}
200b868: 81 c7 e0 08 ret
200b86c: 81 e8 00 00 restore
/*
* I cannot move out of this directory without execute permission.
*/
if ( type != IMFS_NO_MORE_PATH )
if ( node->type == IMFS_DIRECTORY )
200b870: c4 04 a0 4c ld [ %l2 + 0x4c ], %g2
200b874: 80 a0 a0 01 cmp %g2, 1
200b878: 02 80 00 60 be 200b9f8 <IMFS_eval_path+0x224>
200b87c: 90 10 00 1b mov %i3, %o0
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
rtems_set_errno_and_return_minus_one( EACCES );
node = pathloc->node_access;
switch( type ) {
200b880: 80 a5 a0 03 cmp %l6, 3
200b884: 02 80 00 0b be 200b8b0 <IMFS_eval_path+0xdc>
200b888: a4 10 00 01 mov %g1, %l2
200b88c: 80 a5 a0 04 cmp %l6, 4
200b890: 02 80 00 2f be 200b94c <IMFS_eval_path+0x178>
200b894: 80 a5 a0 02 cmp %l6, 2
200b898: 02 80 00 1a be 200b900 <IMFS_eval_path+0x12c>
200b89c: 80 a5 a0 04 cmp %l6, 4
/*
* Evaluate all tokens until we are done or an error occurs.
*/
while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
200b8a0: 12 bf ff d8 bne 200b800 <IMFS_eval_path+0x2c> <== ALWAYS TAKEN
200b8a4: 90 04 00 11 add %l0, %l1, %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 ) {
200b8a8: 10 bf ff e4 b 200b838 <IMFS_eval_path+0x64> <== NOT EXECUTED
200b8ac: c4 00 60 4c ld [ %g1 + 0x4c ], %g2 <== NOT EXECUTED
case IMFS_NAME:
/*
* If we are at a link follow it.
*/
if ( node->type == IMFS_HARD_LINK ) {
200b8b0: c2 00 60 4c ld [ %g1 + 0x4c ], %g1
200b8b4: 80 a0 60 03 cmp %g1, 3
200b8b8: 02 80 00 57 be 200ba14 <IMFS_eval_path+0x240>
200b8bc: 80 a0 60 04 cmp %g1, 4
node = pathloc->node_access;
if ( !node )
rtems_set_errno_and_return_minus_one( ENOTDIR );
} else if ( node->type == IMFS_SYM_LINK ) {
200b8c0: 02 80 00 99 be 200bb24 <IMFS_eval_path+0x350>
200b8c4: 90 10 00 1b mov %i3, %o0
/*
* Only a directory can be decended into.
*/
if ( node->type != IMFS_DIRECTORY )
200b8c8: 80 a0 60 01 cmp %g1, 1
200b8cc: 12 80 00 77 bne 200baa8 <IMFS_eval_path+0x2d4>
200b8d0: 90 10 00 12 mov %l2, %o0
/*
* Find the token name in the current node.
*/
node = IMFS_find_match_in_dir( node, token );
200b8d4: 40 00 02 b1 call 200c398 <IMFS_find_match_in_dir>
200b8d8: 92 10 00 13 mov %l3, %o1
if ( !node )
200b8dc: a4 92 20 00 orcc %o0, 0, %l2
200b8e0: 02 80 00 56 be 200ba38 <IMFS_eval_path+0x264>
200b8e4: 01 00 00 00 nop
* 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 )) {
200b8e8: c2 04 a0 4c ld [ %l2 + 0x4c ], %g1
200b8ec: 80 a0 60 01 cmp %g1, 1
200b8f0: 22 80 00 1d be,a 200b964 <IMFS_eval_path+0x190>
200b8f4: c2 04 a0 5c ld [ %l2 + 0x5c ], %g1
/*
* Set the node access to the point we have found.
*/
pathloc->node_access = node;
break;
200b8f8: 10 bf ff c1 b 200b7fc <IMFS_eval_path+0x28>
200b8fc: e4 26 c0 00 st %l2, [ %i3 ]
case IMFS_UP_DIR:
/*
* Am I at the root of all filesystems? (chroot'ed?)
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access )
200b900: c4 05 40 00 ld [ %l5 ], %g2
200b904: c4 00 a0 18 ld [ %g2 + 0x18 ], %g2
200b908: 80 a0 80 01 cmp %g2, %g1
200b90c: 02 bf ff bd be 200b800 <IMFS_eval_path+0x2c>
200b910: 90 04 00 11 add %l0, %l1, %o0
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
pathloc->mt_entry->mt_fs_root.node_access) {
200b914: d2 06 e0 10 ld [ %i3 + 0x10 ], %o1
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
200b918: c4 02 60 1c ld [ %o1 + 0x1c ], %g2
200b91c: 80 a0 80 01 cmp %g2, %g1
200b920: 02 80 00 8f be 200bb5c <IMFS_eval_path+0x388>
200b924: 92 02 60 08 add %o1, 8, %o1
return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),
pathnamelen+len,
flags,pathloc);
}
} else {
if ( !node->Parent )
200b928: e4 00 60 08 ld [ %g1 + 8 ], %l2
200b92c: 80 a4 a0 00 cmp %l2, 0
200b930: 32 bf ff b4 bne,a 200b800 <IMFS_eval_path+0x2c>
200b934: e4 26 c0 00 st %l2, [ %i3 ]
rtems_set_errno_and_return_minus_one( ENOENT );
200b938: 40 00 12 c6 call 2010450 <__errno>
200b93c: b0 10 3f ff mov -1, %i0
200b940: ec 22 00 00 st %l6, [ %o0 ]
200b944: 81 c7 e0 08 ret
200b948: 81 e8 00 00 restore
case IMFS_NO_MORE_PATH:
case IMFS_CURRENT_DIR:
break;
case IMFS_INVALID_TOKEN:
rtems_set_errno_and_return_minus_one( ENAMETOOLONG );
200b94c: 40 00 12 c1 call 2010450 <__errno>
200b950: b0 10 3f ff mov -1, %i0
200b954: 82 10 20 5b mov 0x5b, %g1
200b958: c2 22 00 00 st %g1, [ %o0 ]
200b95c: 81 c7 e0 08 ret
200b960: 81 e8 00 00 restore
* 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 )) {
200b964: 80 a0 60 00 cmp %g1, 0
200b968: 02 bf ff e4 be 200b8f8 <IMFS_eval_path+0x124>
200b96c: ac 04 00 11 add %l0, %l1, %l6
const char *path, /* IN */
size_t *len, /* IN/OUT */
int *index /* IN/OUT */
)
{
while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) {
200b970: d0 4d 80 00 ldsb [ %l6 ], %o0
200b974: 7f ff e1 20 call 2003df4 <rtems_filesystem_is_separator>
200b978: b0 10 00 16 mov %l6, %i0
200b97c: 80 a2 20 00 cmp %o0, 0
200b980: 22 80 00 11 be,a 200b9c4 <IMFS_eval_path+0x1f0> <== NEVER TAKEN
200b984: c2 0d 80 00 ldub [ %l6 ], %g1 <== NOT EXECUTED
200b988: c2 0d 80 00 ldub [ %l6 ], %g1
200b98c: 83 28 60 18 sll %g1, 0x18, %g1
200b990: 80 a0 60 00 cmp %g1, 0
200b994: 02 80 00 51 be 200bad8 <IMFS_eval_path+0x304>
200b998: 80 a6 60 00 cmp %i1, 0
200b99c: 02 80 00 0b be 200b9c8 <IMFS_eval_path+0x1f4> <== NEVER TAKEN
200b9a0: ac 05 a0 01 inc %l6
200b9a4: d0 4d 80 00 ldsb [ %l6 ], %o0
200b9a8: 7f ff e1 13 call 2003df4 <rtems_filesystem_is_separator>
200b9ac: a2 04 60 01 inc %l1
++(*index);
--(*len);
200b9b0: 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 ) {
200b9b4: 80 a2 20 00 cmp %o0, 0
200b9b8: 12 bf ff f4 bne 200b988 <IMFS_eval_path+0x1b4>
200b9bc: b0 10 00 16 mov %l6, %i0
200b9c0: c2 0d 80 00 ldub [ %l6 ], %g1
200b9c4: 83 28 60 18 sll %g1, 0x18, %g1
* 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] != '.')) {
200b9c8: 83 38 60 18 sra %g1, 0x18, %g1
200b9cc: 80 a0 60 2e cmp %g1, 0x2e
200b9d0: 12 80 00 42 bne 200bad8 <IMFS_eval_path+0x304>
200b9d4: 82 04 00 11 add %l0, %l1, %g1
200b9d8: c2 48 60 01 ldsb [ %g1 + 1 ], %g1
200b9dc: 80 a0 60 2e cmp %g1, 0x2e
200b9e0: 12 80 00 3e bne 200bad8 <IMFS_eval_path+0x304>
200b9e4: a2 04 60 02 add %l1, 2, %l1
pathnamelen,
flags, pathloc );
}
i += 2;
pathnamelen -= 2;
node = node->Parent;
200b9e8: e4 04 a0 08 ld [ %l2 + 8 ], %l2
return (*pathloc->ops->evalpath_h)( &pathname[i],
pathnamelen,
flags, pathloc );
}
i += 2;
pathnamelen -= 2;
200b9ec: b2 06 7f fe add %i1, -2, %i1
/*
* Set the node access to the point we have found.
*/
pathloc->node_access = node;
200b9f0: 10 bf ff 83 b 200b7fc <IMFS_eval_path+0x28>
200b9f4: e4 26 c0 00 st %l2, [ %i3 ]
/*
* I cannot move out of this directory without execute permission.
*/
if ( type != IMFS_NO_MORE_PATH )
if ( node->type == IMFS_DIRECTORY )
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
200b9f8: 7f ff ff 1e call 200b670 <IMFS_evaluate_permission>
200b9fc: 92 10 20 01 mov 1, %o1
200ba00: 80 a2 20 00 cmp %o0, 0
200ba04: 02 80 00 50 be 200bb44 <IMFS_eval_path+0x370>
200ba08: 01 00 00 00 nop
200ba0c: 10 bf ff 9d b 200b880 <IMFS_eval_path+0xac>
200ba10: c2 06 c0 00 ld [ %i3 ], %g1
* If we are at a link follow it.
*/
if ( node->type == IMFS_HARD_LINK ) {
IMFS_evaluate_hard_link( pathloc, 0 );
200ba14: 90 10 00 1b mov %i3, %o0
200ba18: 7f ff ff 27 call 200b6b4 <IMFS_evaluate_hard_link>
200ba1c: 92 10 20 00 clr %o1
node = pathloc->node_access;
200ba20: e4 06 c0 00 ld [ %i3 ], %l2
if ( !node )
200ba24: 80 a4 a0 00 cmp %l2, 0
200ba28: 02 80 00 20 be 200baa8 <IMFS_eval_path+0x2d4> <== NEVER TAKEN
200ba2c: 01 00 00 00 nop
} else if ( node->type == IMFS_SYM_LINK ) {
result = IMFS_evaluate_sym_link( pathloc, 0 );
node = pathloc->node_access;
200ba30: 10 bf ff a6 b 200b8c8 <IMFS_eval_path+0xf4>
200ba34: c2 04 a0 4c ld [ %l2 + 0x4c ], %g1
*/
node = IMFS_find_match_in_dir( node, token );
if ( !node )
rtems_set_errno_and_return_minus_one( ENOENT );
200ba38: 40 00 12 86 call 2010450 <__errno>
200ba3c: b0 10 3f ff mov -1, %i0
200ba40: 82 10 20 02 mov 2, %g1
200ba44: c2 22 00 00 st %g1, [ %o0 ]
200ba48: 81 c7 e0 08 ret
200ba4c: 81 e8 00 00 restore
*
* NOTE: The behavior of stat() on a mount point appears to be questionable.
*/
if ( node->type == IMFS_DIRECTORY ) {
if ( node->info.directory.mt_fs != NULL ) {
200ba50: 80 a0 a0 00 cmp %g2, 0
200ba54: 02 bf ff 7c be 200b844 <IMFS_eval_path+0x70> <== ALWAYS TAKEN
200ba58: c2 07 bf fc ld [ %fp + -4 ], %g1
*pathloc = node->info.directory.mt_fs->mt_fs_root;
200ba5c: c6 00 a0 1c ld [ %g2 + 0x1c ], %g3 <== NOT EXECUTED
200ba60: c6 26 c0 00 st %g3, [ %i3 ] <== NOT EXECUTED
200ba64: c6 00 a0 20 ld [ %g2 + 0x20 ], %g3 <== NOT EXECUTED
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
200ba68: 92 06 40 01 add %i1, %g1, %o1 <== NOT EXECUTED
* NOTE: The behavior of stat() on a mount point appears to be questionable.
*/
if ( node->type == IMFS_DIRECTORY ) {
if ( node->info.directory.mt_fs != NULL ) {
*pathloc = node->info.directory.mt_fs->mt_fs_root;
200ba6c: c6 26 e0 04 st %g3, [ %i3 + 4 ] <== NOT EXECUTED
200ba70: c6 00 a0 24 ld [ %g2 + 0x24 ], %g3 <== NOT EXECUTED
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
200ba74: 90 24 40 01 sub %l1, %g1, %o0 <== NOT EXECUTED
* NOTE: The behavior of stat() on a mount point appears to be questionable.
*/
if ( node->type == IMFS_DIRECTORY ) {
if ( node->info.directory.mt_fs != NULL ) {
*pathloc = node->info.directory.mt_fs->mt_fs_root;
200ba78: c6 26 e0 08 st %g3, [ %i3 + 8 ] <== NOT EXECUTED
200ba7c: c2 00 a0 28 ld [ %g2 + 0x28 ], %g1 <== NOT EXECUTED
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
200ba80: 90 04 00 08 add %l0, %o0, %o0 <== NOT EXECUTED
* NOTE: The behavior of stat() on a mount point appears to be questionable.
*/
if ( node->type == IMFS_DIRECTORY ) {
if ( node->info.directory.mt_fs != NULL ) {
*pathloc = node->info.directory.mt_fs->mt_fs_root;
200ba84: c2 26 e0 0c st %g1, [ %i3 + 0xc ] <== NOT EXECUTED
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
200ba88: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED
* NOTE: The behavior of stat() on a mount point appears to be questionable.
*/
if ( node->type == IMFS_DIRECTORY ) {
if ( node->info.directory.mt_fs != NULL ) {
*pathloc = node->info.directory.mt_fs->mt_fs_root;
200ba8c: c4 00 a0 2c ld [ %g2 + 0x2c ], %g2 <== NOT EXECUTED
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
200ba90: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
* NOTE: The behavior of stat() on a mount point appears to be questionable.
*/
if ( node->type == IMFS_DIRECTORY ) {
if ( node->info.directory.mt_fs != NULL ) {
*pathloc = node->info.directory.mt_fs->mt_fs_root;
200ba94: c4 26 e0 10 st %g2, [ %i3 + 0x10 ] <== NOT EXECUTED
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
200ba98: 9f c0 40 00 call %g1 <== NOT EXECUTED
200ba9c: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
200baa0: 81 c7 e0 08 ret <== NOT EXECUTED
200baa4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
/*
* Only a directory can be decended into.
*/
if ( node->type != IMFS_DIRECTORY )
rtems_set_errno_and_return_minus_one( ENOTDIR );
200baa8: 40 00 12 6a call 2010450 <__errno>
200baac: b0 10 3f ff mov -1, %i0
200bab0: 82 10 20 14 mov 0x14, %g1
200bab4: c2 22 00 00 st %g1, [ %o0 ]
200bab8: 81 c7 e0 08 ret
200babc: 81 e8 00 00 restore
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( pathloc, flags ) )
rtems_set_errno_and_return_minus_one( EACCES );
200bac0: 40 00 12 64 call 2010450 <__errno>
200bac4: b0 10 3f ff mov -1, %i0
200bac8: 82 10 20 0d mov 0xd, %g1
200bacc: c2 22 00 00 st %g1, [ %o0 ]
return result;
}
200bad0: 81 c7 e0 08 ret
200bad4: 81 e8 00 00 restore
* path.
*/
if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
IMFS_skip_separator( pathname, &pathnamelen, &i);
if ((pathname[i] != '.') || (pathname[i + 1] != '.')) {
*pathloc = node->info.directory.mt_fs->mt_fs_root;
200bad8: c4 04 a0 5c ld [ %l2 + 0x5c ], %g2
return (*pathloc->ops->evalpath_h)( &pathname[i],
200badc: 90 10 00 18 mov %i0, %o0
* path.
*/
if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
IMFS_skip_separator( pathname, &pathnamelen, &i);
if ((pathname[i] != '.') || (pathname[i + 1] != '.')) {
*pathloc = node->info.directory.mt_fs->mt_fs_root;
200bae0: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1
return (*pathloc->ops->evalpath_h)( &pathname[i],
200bae4: 92 10 00 19 mov %i1, %o1
* path.
*/
if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
IMFS_skip_separator( pathname, &pathnamelen, &i);
if ((pathname[i] != '.') || (pathname[i + 1] != '.')) {
*pathloc = node->info.directory.mt_fs->mt_fs_root;
200bae8: c2 26 c0 00 st %g1, [ %i3 ]
200baec: c2 00 a0 20 ld [ %g2 + 0x20 ], %g1
return (*pathloc->ops->evalpath_h)( &pathname[i],
200baf0: 94 10 00 1a mov %i2, %o2
* path.
*/
if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
IMFS_skip_separator( pathname, &pathnamelen, &i);
if ((pathname[i] != '.') || (pathname[i + 1] != '.')) {
*pathloc = node->info.directory.mt_fs->mt_fs_root;
200baf4: c2 26 e0 04 st %g1, [ %i3 + 4 ]
200baf8: c2 00 a0 24 ld [ %g2 + 0x24 ], %g1
return (*pathloc->ops->evalpath_h)( &pathname[i],
200bafc: 96 10 00 1b mov %i3, %o3
* path.
*/
if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
IMFS_skip_separator( pathname, &pathnamelen, &i);
if ((pathname[i] != '.') || (pathname[i + 1] != '.')) {
*pathloc = node->info.directory.mt_fs->mt_fs_root;
200bb00: c2 26 e0 08 st %g1, [ %i3 + 8 ]
200bb04: c2 00 a0 28 ld [ %g2 + 0x28 ], %g1
200bb08: c2 26 e0 0c st %g1, [ %i3 + 0xc ]
return (*pathloc->ops->evalpath_h)( &pathname[i],
200bb0c: c2 00 40 00 ld [ %g1 ], %g1
* path.
*/
if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
IMFS_skip_separator( pathname, &pathnamelen, &i);
if ((pathname[i] != '.') || (pathname[i + 1] != '.')) {
*pathloc = node->info.directory.mt_fs->mt_fs_root;
200bb10: c4 00 a0 2c ld [ %g2 + 0x2c ], %g2
return (*pathloc->ops->evalpath_h)( &pathname[i],
200bb14: 9f c0 40 00 call %g1
200bb18: c4 26 e0 10 st %g2, [ %i3 + 0x10 ]
200bb1c: 81 c7 e0 08 ret
200bb20: 91 e8 00 08 restore %g0, %o0, %o0
if ( !node )
rtems_set_errno_and_return_minus_one( ENOTDIR );
} else if ( node->type == IMFS_SYM_LINK ) {
result = IMFS_evaluate_sym_link( pathloc, 0 );
200bb24: 7f ff fe ff call 200b720 <IMFS_evaluate_sym_link>
200bb28: 92 10 20 00 clr %o1
node = pathloc->node_access;
200bb2c: e4 06 c0 00 ld [ %i3 ], %l2
if ( result == -1 )
200bb30: 80 a2 3f ff cmp %o0, -1
200bb34: 02 bf ff 4d be 200b868 <IMFS_eval_path+0x94> <== NEVER TAKEN
200bb38: b0 10 00 08 mov %o0, %i0
} else if ( node->type == IMFS_SYM_LINK ) {
result = IMFS_evaluate_sym_link( pathloc, 0 );
node = pathloc->node_access;
200bb3c: 10 bf ff 63 b 200b8c8 <IMFS_eval_path+0xf4>
200bb40: c2 04 a0 4c ld [ %l2 + 0x4c ], %g1
* I cannot move out of this directory without execute permission.
*/
if ( type != IMFS_NO_MORE_PATH )
if ( node->type == IMFS_DIRECTORY )
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
rtems_set_errno_and_return_minus_one( EACCES );
200bb44: 40 00 12 43 call 2010450 <__errno>
200bb48: b0 10 3f ff mov -1, %i0
200bb4c: 82 10 20 0d mov 0xd, %g1
200bb50: c2 22 00 00 st %g1, [ %o0 ]
200bb54: 81 c7 e0 08 ret
200bb58: 81 e8 00 00 restore
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
break; /* Throw out the .. in this case */
} else {
*pathloc = pathloc->mt_entry->mt_point_node;
200bb5c: 94 10 20 14 mov 0x14, %o2
200bb60: 40 00 14 78 call 2010d40 <memcpy>
200bb64: 90 10 00 1b mov %i3, %o0
return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),
200bb68: c2 06 e0 0c ld [ %i3 + 0xc ], %g1
200bb6c: c4 07 bf fc ld [ %fp + -4 ], %g2
200bb70: c2 00 40 00 ld [ %g1 ], %g1
200bb74: 92 06 40 02 add %i1, %g2, %o1
200bb78: 84 24 40 02 sub %l1, %g2, %g2
200bb7c: 94 10 00 1a mov %i2, %o2
200bb80: 90 04 00 02 add %l0, %g2, %o0
200bb84: 9f c0 40 00 call %g1
200bb88: 96 10 00 1b mov %i3, %o3
200bb8c: 81 c7 e0 08 ret
200bb90: 91 e8 00 08 restore %g0, %o0, %o0
char token[ IMFS_NAME_MAX + 1 ];
IMFS_jnode_t *node;
int result;
if ( !rtems_libio_is_valid_perms( flags ) ) {
assert( 0 );
200bb94: 11 00 80 70 sethi %hi(0x201c000), %o0 <== NOT EXECUTED
200bb98: 15 00 80 70 sethi %hi(0x201c000), %o2 <== NOT EXECUTED
200bb9c: 17 00 80 70 sethi %hi(0x201c000), %o3 <== NOT EXECUTED
200bba0: 90 12 22 a8 or %o0, 0x2a8, %o0 <== NOT EXECUTED
200bba4: 94 12 a2 98 or %o2, 0x298, %o2 <== NOT EXECUTED
200bba8: 96 12 e2 f8 or %o3, 0x2f8, %o3 <== NOT EXECUTED
200bbac: 40 00 02 cf call 200c6e8 <__assert_func> <== NOT EXECUTED
200bbb0: 92 10 22 08 mov 0x208, %o1 <== NOT EXECUTED
0200bc90 <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 */
)
{
200bc90: 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;
200bc94: e0 06 40 00 ld [ %i1 ], %l0
/*
* Get the path length.
*/
pathlen = strlen( path );
200bc98: 90 10 00 18 mov %i0, %o0
200bc9c: 40 00 15 ba call 2011384 <strlen>
200bca0: 2d 00 80 74 sethi %hi(0x201d000), %l6
int IMFS_evaluate_for_make(
const char *path, /* IN */
rtems_filesystem_location_info_t *pathloc, /* IN/OUT */
const char **name /* OUT */
)
{
200bca4: a2 10 00 18 mov %i0, %l1
node = pathloc->node_access;
/*
* Get the path length.
*/
pathlen = strlen( path );
200bca8: a6 10 20 00 clr %l3
200bcac: a8 07 bf d8 add %fp, -40, %l4
200bcb0: aa 07 bf fc add %fp, -4, %l5
200bcb4: a4 10 00 08 mov %o0, %l2
case IMFS_UP_DIR:
/*
* Am I at the root of all filesystems? (chroot'ed?)
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access )
200bcb8: ac 15 a2 10 or %l6, 0x210, %l6
* Evaluate all tokens until we are done or an error occurs.
*/
while( !done ) {
type = IMFS_get_token( &path[i], pathlen, token, &len );
200bcbc: 90 04 40 13 add %l1, %l3, %o0
200bcc0: 92 10 00 12 mov %l2, %o1
200bcc4: 94 10 00 14 mov %l4, %o2
200bcc8: 40 00 01 e5 call 200c45c <IMFS_get_token>
200bccc: 96 10 00 15 mov %l5, %o3
pathlen -= len;
i += len;
if ( !pathloc->node_access )
200bcd0: 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 );
200bcd4: ae 10 00 08 mov %o0, %l7
pathlen -= len;
i += len;
if ( !pathloc->node_access )
200bcd8: 80 a0 60 00 cmp %g1, 0
200bcdc: 02 80 00 85 be 200bef0 <IMFS_evaluate_for_make+0x260> <== NEVER TAKEN
200bce0: fa 07 bf fc ld [ %fp + -4 ], %i5
/*
* I cannot move out of this directory without execute permission.
*/
if ( type != IMFS_NO_MORE_PATH )
200bce4: 80 a2 20 00 cmp %o0, 0
200bce8: 32 80 00 08 bne,a 200bd08 <IMFS_evaluate_for_make+0x78>
200bcec: c4 04 20 4c ld [ %l0 + 0x4c ], %g2
pathloc->node_access = node;
}
break;
case IMFS_NO_MORE_PATH:
rtems_set_errno_and_return_minus_one( EEXIST );
200bcf0: 40 00 11 d8 call 2010450 <__errno>
200bcf4: b0 10 3f ff mov -1, %i0
200bcf8: 82 10 20 11 mov 0x11, %g1
200bcfc: c2 22 00 00 st %g1, [ %o0 ]
200bd00: 81 c7 e0 08 ret
200bd04: 81 e8 00 00 restore
/*
* I cannot move out of this directory without execute permission.
*/
if ( type != IMFS_NO_MORE_PATH )
if ( node->type == IMFS_DIRECTORY )
200bd08: 80 a0 a0 01 cmp %g2, 1
200bd0c: 02 80 00 69 be 200beb0 <IMFS_evaluate_for_make+0x220>
200bd10: 90 10 00 19 mov %i1, %o0
while( !done ) {
type = IMFS_get_token( &path[i], pathlen, token, &len );
pathlen -= len;
i += len;
200bd14: a6 04 c0 1d add %l3, %i5, %l3
*/
while( !done ) {
type = IMFS_get_token( &path[i], pathlen, token, &len );
pathlen -= len;
200bd18: a4 24 80 1d sub %l2, %i5, %l2
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
rtems_set_errno_and_return_minus_one( EACCES );
node = pathloc->node_access;
switch( type ) {
200bd1c: 80 a5 e0 02 cmp %l7, 2
200bd20: 02 80 00 30 be 200bde0 <IMFS_evaluate_for_make+0x150>
200bd24: a0 10 00 01 mov %g1, %l0
200bd28: 80 a5 e0 02 cmp %l7, 2
200bd2c: 08 80 00 0d bleu 200bd60 <IMFS_evaluate_for_make+0xd0>
200bd30: 80 a5 e0 00 cmp %l7, 0
200bd34: 80 a5 e0 03 cmp %l7, 3
200bd38: 02 80 00 12 be 200bd80 <IMFS_evaluate_for_make+0xf0>
200bd3c: 80 a5 e0 04 cmp %l7, 4
200bd40: 12 bf ff e0 bne 200bcc0 <IMFS_evaluate_for_make+0x30> <== NEVER TAKEN
200bd44: 90 04 40 13 add %l1, %l3, %o0
case IMFS_NO_MORE_PATH:
rtems_set_errno_and_return_minus_one( EEXIST );
break;
case IMFS_INVALID_TOKEN:
rtems_set_errno_and_return_minus_one( ENAMETOOLONG );
200bd48: 40 00 11 c2 call 2010450 <__errno>
200bd4c: b0 10 3f ff mov -1, %i0
200bd50: 82 10 20 5b mov 0x5b, %g1
200bd54: c2 22 00 00 st %g1, [ %o0 ]
200bd58: 81 c7 e0 08 ret
200bd5c: 81 e8 00 00 restore
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
rtems_set_errno_and_return_minus_one( EACCES );
node = pathloc->node_access;
switch( type ) {
200bd60: 12 bf ff d8 bne 200bcc0 <IMFS_evaluate_for_make+0x30> <== ALWAYS TAKEN
200bd64: 90 04 40 13 add %l1, %l3, %o0
pathloc->node_access = node;
}
break;
case IMFS_NO_MORE_PATH:
rtems_set_errno_and_return_minus_one( EEXIST );
200bd68: 40 00 11 ba call 2010450 <__errno> <== NOT EXECUTED
200bd6c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200bd70: 82 10 20 11 mov 0x11, %g1 <== NOT EXECUTED
200bd74: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200bd78: 81 c7 e0 08 ret <== NOT EXECUTED
200bd7c: 81 e8 00 00 restore <== NOT EXECUTED
case IMFS_NAME:
/*
* If we are at a link follow it.
*/
if ( node->type == IMFS_HARD_LINK ) {
200bd80: c2 00 60 4c ld [ %g1 + 0x4c ], %g1
200bd84: 80 a0 60 03 cmp %g1, 3
200bd88: 02 80 00 83 be 200bf94 <IMFS_evaluate_for_make+0x304>
200bd8c: 80 a0 60 04 cmp %g1, 4
result = IMFS_evaluate_link( pathloc, 0 );
if ( result == -1 )
return -1;
} else if ( node->type == IMFS_SYM_LINK ) {
200bd90: 02 80 00 82 be 200bf98 <IMFS_evaluate_for_make+0x308>
200bd94: 90 10 00 19 mov %i1, %o0
if ( result == -1 )
return -1;
}
node = pathloc->node_access;
if ( !node )
200bd98: 80 a4 20 00 cmp %l0, 0
200bd9c: 02 80 00 78 be 200bf7c <IMFS_evaluate_for_make+0x2ec> <== NEVER TAKEN
200bda0: 01 00 00 00 nop
/*
* Only a directory can be decended into.
*/
if ( node->type != IMFS_DIRECTORY )
200bda4: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
200bda8: 80 a0 60 01 cmp %g1, 1
200bdac: 12 80 00 74 bne 200bf7c <IMFS_evaluate_for_make+0x2ec>
200bdb0: 90 10 00 10 mov %l0, %o0
/*
* Find the token name in the present location.
*/
node = IMFS_find_match_in_dir( node, token );
200bdb4: 40 00 01 79 call 200c398 <IMFS_find_match_in_dir>
200bdb8: 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 )
200bdbc: a0 92 20 00 orcc %o0, 0, %l0
200bdc0: 02 80 00 52 be 200bf08 <IMFS_evaluate_for_make+0x278>
200bdc4: c2 07 bf fc ld [ %fp + -4 ], %g1
done = true;
else {
if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
200bdc8: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
200bdcc: 80 a0 60 01 cmp %g1, 1
200bdd0: 22 80 00 17 be,a 200be2c <IMFS_evaluate_for_make+0x19c>
200bdd4: c2 04 20 5c ld [ %l0 + 0x5c ], %g1
i += 2;
pathlen -= 2;
node = node->Parent;
}
pathloc->node_access = node;
200bdd8: 10 bf ff b9 b 200bcbc <IMFS_evaluate_for_make+0x2c>
200bddc: e0 26 40 00 st %l0, [ %i1 ]
case IMFS_UP_DIR:
/*
* Am I at the root of all filesystems? (chroot'ed?)
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access )
200bde0: c4 05 80 00 ld [ %l6 ], %g2
200bde4: c4 00 a0 18 ld [ %g2 + 0x18 ], %g2
200bde8: 80 a0 80 01 cmp %g2, %g1
200bdec: 02 bf ff b5 be 200bcc0 <IMFS_evaluate_for_make+0x30>
200bdf0: 90 04 40 13 add %l1, %l3, %o0
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){
200bdf4: d2 06 60 10 ld [ %i1 + 0x10 ], %o1
200bdf8: c4 02 60 1c ld [ %o1 + 0x1c ], %g2
200bdfc: 80 a0 80 01 cmp %g2, %g1
200be00: 02 80 00 85 be 200c014 <IMFS_evaluate_for_make+0x384>
200be04: 92 02 60 08 add %o1, 8, %o1
} else {
*pathloc = pathloc->mt_entry->mt_point_node;
return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
}
} else {
if ( !node->Parent )
200be08: e0 00 60 08 ld [ %g1 + 8 ], %l0
200be0c: 80 a4 20 00 cmp %l0, 0
200be10: 32 bf ff ac bne,a 200bcc0 <IMFS_evaluate_for_make+0x30>
200be14: e0 26 40 00 st %l0, [ %i1 ]
rtems_set_errno_and_return_minus_one( ENOENT );
200be18: 40 00 11 8e call 2010450 <__errno>
200be1c: b0 10 3f ff mov -1, %i0
200be20: ee 22 00 00 st %l7, [ %o0 ]
200be24: 81 c7 e0 08 ret
200be28: 81 e8 00 00 restore
*/
if ( ! node )
done = true;
else {
if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
200be2c: 80 a0 60 00 cmp %g1, 0
200be30: 12 80 00 0d bne 200be64 <IMFS_evaluate_for_make+0x1d4>
200be34: ae 04 40 13 add %l1, %l3, %l7
200be38: 10 bf ff a1 b 200bcbc <IMFS_evaluate_for_make+0x2c>
200be3c: e0 26 40 00 st %l0, [ %i1 ]
const char *path, /* IN */
size_t *len, /* IN/OUT */
int *index /* IN/OUT */
)
{
while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) {
200be40: 83 28 60 18 sll %g1, 0x18, %g1
200be44: 80 a0 60 00 cmp %g1, 0
200be48: 02 80 00 5b be 200bfb4 <IMFS_evaluate_for_make+0x324> <== NEVER TAKEN
200be4c: ae 05 e0 01 inc %l7
200be50: 80 a4 a0 00 cmp %l2, 0
200be54: 02 80 00 0c be 200be84 <IMFS_evaluate_for_make+0x1f4> <== NEVER TAKEN
200be58: 83 38 60 18 sra %g1, 0x18, %g1
++(*index);
200be5c: a6 04 e0 01 inc %l3
--(*len);
200be60: a4 04 bf ff add %l2, -1, %l2
const char *path, /* IN */
size_t *len, /* IN/OUT */
int *index /* IN/OUT */
)
{
while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) {
200be64: d0 4d c0 00 ldsb [ %l7 ], %o0
200be68: 7f ff df e3 call 2003df4 <rtems_filesystem_is_separator>
200be6c: ba 10 00 17 mov %l7, %i5
200be70: 80 a2 20 00 cmp %o0, 0
200be74: 12 bf ff f3 bne 200be40 <IMFS_evaluate_for_make+0x1b0>
200be78: c2 0d c0 00 ldub [ %l7 ], %g1
200be7c: 83 28 60 18 sll %g1, 0x18, %g1
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] != '.')) {
200be80: 83 38 60 18 sra %g1, 0x18, %g1
200be84: 80 a0 60 2e cmp %g1, 0x2e
200be88: 12 80 00 4b bne 200bfb4 <IMFS_evaluate_for_make+0x324>
200be8c: 82 04 40 13 add %l1, %l3, %g1
200be90: c2 48 60 01 ldsb [ %g1 + 1 ], %g1
200be94: 80 a0 60 2e cmp %g1, 0x2e
200be98: 12 80 00 47 bne 200bfb4 <IMFS_evaluate_for_make+0x324> <== NEVER TAKEN
200be9c: a6 04 e0 02 add %l3, 2, %l3
pathloc,
name );
}
i += 2;
pathlen -= 2;
node = node->Parent;
200bea0: e0 04 20 08 ld [ %l0 + 8 ], %l0
return (*pathloc->ops->evalformake_h)( &path[i],
pathloc,
name );
}
i += 2;
pathlen -= 2;
200bea4: a4 04 bf fe add %l2, -2, %l2
node = node->Parent;
}
pathloc->node_access = node;
200bea8: 10 bf ff 85 b 200bcbc <IMFS_evaluate_for_make+0x2c>
200beac: e0 26 40 00 st %l0, [ %i1 ]
* I cannot move out of this directory without execute permission.
*/
if ( type != IMFS_NO_MORE_PATH )
if ( node->type == IMFS_DIRECTORY )
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
200beb0: 7f ff fd f0 call 200b670 <IMFS_evaluate_permission>
200beb4: 92 10 20 01 mov 1, %o1
200beb8: 80 a2 20 00 cmp %o0, 0
200bebc: 02 80 00 50 be 200bffc <IMFS_evaluate_for_make+0x36c>
200bec0: 01 00 00 00 nop
200bec4: 10 bf ff 94 b 200bd14 <IMFS_evaluate_for_make+0x84>
200bec8: c2 06 40 00 ld [ %i1 ], %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++) {
200becc: 91 2a 20 18 sll %o0, 0x18, %o0
200bed0: 80 a2 20 00 cmp %o0, 0
200bed4: 02 80 00 15 be 200bf28 <IMFS_evaluate_for_make+0x298>
200bed8: a2 04 60 01 inc %l1
if ( !IMFS_is_separator( path[ i ] ) )
200bedc: 7f ff df c6 call 2003df4 <rtems_filesystem_is_separator>
200bee0: 91 3a 20 18 sra %o0, 0x18, %o0
200bee4: 80 a2 20 00 cmp %o0, 0
200bee8: 32 bf ff f9 bne,a 200becc <IMFS_evaluate_for_make+0x23c>
200beec: d0 0c 60 01 ldub [ %l1 + 1 ], %o0
rtems_set_errno_and_return_minus_one( ENOENT );
200bef0: 40 00 11 58 call 2010450 <__errno>
200bef4: b0 10 3f ff mov -1, %i0
200bef8: 82 10 20 02 mov 2, %g1
200befc: c2 22 00 00 st %g1, [ %o0 ]
200bf00: 81 c7 e0 08 ret
200bf04: 81 e8 00 00 restore
case IMFS_CURRENT_DIR:
break;
}
}
*name = &path[ i - len ];
200bf08: 82 24 c0 01 sub %l3, %g1, %g1
200bf0c: 82 04 40 01 add %l1, %g1, %g1
200bf10: c2 26 80 00 st %g1, [ %i2 ]
/*
* 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++) {
200bf14: d0 0c 40 13 ldub [ %l1 + %l3 ], %o0
200bf18: 91 2a 20 18 sll %o0, 0x18, %o0
200bf1c: 80 a2 20 00 cmp %o0, 0
200bf20: 12 bf ff ef bne 200bedc <IMFS_evaluate_for_make+0x24c>
200bf24: a2 04 40 13 add %l1, %l3, %l1
/*
* Verify we can execute and write to this directory.
*/
result = IMFS_Set_handlers( pathloc );
200bf28: 7f ff fd af call 200b5e4 <IMFS_Set_handlers>
200bf2c: 90 10 00 19 mov %i1, %o0
/*
* The returned node must be a directory
*/
node = pathloc->node_access;
200bf30: c2 06 40 00 ld [ %i1 ], %g1
200bf34: c2 00 60 4c ld [ %g1 + 0x4c ], %g1
200bf38: 80 a0 60 01 cmp %g1, 1
200bf3c: 12 80 00 10 bne 200bf7c <IMFS_evaluate_for_make+0x2ec> <== NEVER TAKEN
200bf40: b0 10 00 08 mov %o0, %i0
/*
* We must have Write and execute permission on the returned node.
*/
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) )
200bf44: 90 10 00 19 mov %i1, %o0
200bf48: 7f ff fd ca call 200b670 <IMFS_evaluate_permission>
200bf4c: 92 10 20 03 mov 3, %o1
200bf50: 80 a2 20 00 cmp %o0, 0
200bf54: 02 80 00 04 be 200bf64 <IMFS_evaluate_for_make+0x2d4>
200bf58: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EACCES );
return result;
}
200bf5c: 81 c7 e0 08 ret
200bf60: 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 ) )
rtems_set_errno_and_return_minus_one( EACCES );
200bf64: 40 00 11 3b call 2010450 <__errno>
200bf68: b0 10 3f ff mov -1, %i0
200bf6c: 82 10 20 0d mov 0xd, %g1
200bf70: c2 22 00 00 st %g1, [ %o0 ]
return result;
}
200bf74: 81 c7 e0 08 ret
200bf78: 81 e8 00 00 restore
/*
* The returned node must be a directory
*/
node = pathloc->node_access;
if ( node->type != IMFS_DIRECTORY )
rtems_set_errno_and_return_minus_one( ENOTDIR );
200bf7c: 40 00 11 35 call 2010450 <__errno>
200bf80: b0 10 3f ff mov -1, %i0
200bf84: 82 10 20 14 mov 0x14, %g1
200bf88: c2 22 00 00 st %g1, [ %o0 ]
200bf8c: 81 c7 e0 08 ret
200bf90: 81 e8 00 00 restore
if ( result == -1 )
return -1;
} else if ( node->type == IMFS_SYM_LINK ) {
result = IMFS_evaluate_link( pathloc, 0 );
200bf94: 90 10 00 19 mov %i1, %o0
200bf98: 7f ff ff 08 call 200bbb8 <IMFS_evaluate_link>
200bf9c: 92 10 20 00 clr %o1
if ( result == -1 )
200bfa0: 80 a2 3f ff cmp %o0, -1
200bfa4: 02 bf ff 57 be 200bd00 <IMFS_evaluate_for_make+0x70> <== NEVER TAKEN
200bfa8: b0 10 00 08 mov %o0, %i0
200bfac: 10 bf ff 7b b 200bd98 <IMFS_evaluate_for_make+0x108>
200bfb0: e0 06 40 00 ld [ %i1 ], %l0
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] != '.')) {
*pathloc = node->info.directory.mt_fs->mt_fs_root;
200bfb4: c4 04 20 5c ld [ %l0 + 0x5c ], %g2
return (*pathloc->ops->evalformake_h)( &path[i],
200bfb8: 90 10 00 1d mov %i5, %o0
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] != '.')) {
*pathloc = node->info.directory.mt_fs->mt_fs_root;
200bfbc: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1
return (*pathloc->ops->evalformake_h)( &path[i],
200bfc0: 92 10 00 19 mov %i1, %o1
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] != '.')) {
*pathloc = node->info.directory.mt_fs->mt_fs_root;
200bfc4: c2 26 40 00 st %g1, [ %i1 ]
200bfc8: c2 00 a0 20 ld [ %g2 + 0x20 ], %g1
return (*pathloc->ops->evalformake_h)( &path[i],
200bfcc: 94 10 00 1a mov %i2, %o2
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] != '.')) {
*pathloc = node->info.directory.mt_fs->mt_fs_root;
200bfd0: c2 26 60 04 st %g1, [ %i1 + 4 ]
200bfd4: c2 00 a0 24 ld [ %g2 + 0x24 ], %g1
200bfd8: c2 26 60 08 st %g1, [ %i1 + 8 ]
200bfdc: c2 00 a0 28 ld [ %g2 + 0x28 ], %g1
200bfe0: c2 26 60 0c st %g1, [ %i1 + 0xc ]
return (*pathloc->ops->evalformake_h)( &path[i],
200bfe4: c2 00 60 04 ld [ %g1 + 4 ], %g1
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] != '.')) {
*pathloc = node->info.directory.mt_fs->mt_fs_root;
200bfe8: c4 00 a0 2c ld [ %g2 + 0x2c ], %g2
return (*pathloc->ops->evalformake_h)( &path[i],
200bfec: 9f c0 40 00 call %g1
200bff0: c4 26 60 10 st %g2, [ %i1 + 0x10 ]
200bff4: 81 c7 e0 08 ret
200bff8: 91 e8 00 08 restore %g0, %o0, %o0
*/
if ( type != IMFS_NO_MORE_PATH )
if ( node->type == IMFS_DIRECTORY )
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
rtems_set_errno_and_return_minus_one( EACCES );
200bffc: 40 00 11 15 call 2010450 <__errno>
200c000: b0 10 3f ff mov -1, %i0
200c004: 82 10 20 0d mov 0xd, %g1
200c008: c2 22 00 00 st %g1, [ %o0 ]
200c00c: 81 c7 e0 08 ret
200c010: 81 e8 00 00 restore
if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
break;
} else {
*pathloc = pathloc->mt_entry->mt_point_node;
200c014: 94 10 20 14 mov 0x14, %o2
200c018: 40 00 13 4a call 2010d40 <memcpy>
200c01c: 90 10 00 19 mov %i1, %o0
return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
200c020: c2 06 60 0c ld [ %i1 + 0xc ], %g1
200c024: d0 07 bf fc ld [ %fp + -4 ], %o0
200c028: c2 00 60 04 ld [ %g1 + 4 ], %g1
200c02c: 90 24 c0 08 sub %l3, %o0, %o0
200c030: 92 10 00 19 mov %i1, %o1
200c034: 90 04 40 08 add %l1, %o0, %o0
200c038: 9f c0 40 00 call %g1
200c03c: 94 10 00 1a mov %i2, %o2
200c040: 81 c7 e0 08 ret
200c044: 91 e8 00 08 restore %g0, %o0, %o0
0200b6b4 <IMFS_evaluate_hard_link>:
int IMFS_evaluate_hard_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
200b6b4: 9d e3 bf a0 save %sp, -96, %sp
IMFS_jnode_t *jnode = node->node_access;
200b6b8: c2 06 00 00 ld [ %i0 ], %g1
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_HARD_LINK )
200b6bc: c4 00 60 4c ld [ %g1 + 0x4c ], %g2
200b6c0: 80 a0 a0 03 cmp %g2, 3
200b6c4: 12 80 00 14 bne 200b714 <IMFS_evaluate_hard_link+0x60> <== NEVER TAKEN
200b6c8: 90 10 00 18 mov %i0, %o0
/*
* Set the hard link value and the handlers.
*/
node->node_access = jnode->info.hard_link.link_node;
200b6cc: c2 00 60 50 ld [ %g1 + 0x50 ], %g1
IMFS_Set_handlers( node );
200b6d0: 7f ff ff c5 call 200b5e4 <IMFS_Set_handlers>
200b6d4: c2 26 00 00 st %g1, [ %i0 ]
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( node, flags ) )
200b6d8: 90 10 00 18 mov %i0, %o0
200b6dc: 92 10 00 19 mov %i1, %o1
200b6e0: 7f ff ff e4 call 200b670 <IMFS_evaluate_permission>
200b6e4: b0 10 20 00 clr %i0
200b6e8: 80 a2 20 00 cmp %o0, 0
200b6ec: 02 80 00 04 be 200b6fc <IMFS_evaluate_hard_link+0x48> <== NEVER TAKEN
200b6f0: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EACCES );
return result;
}
200b6f4: 81 c7 e0 08 ret
200b6f8: 81 e8 00 00 restore
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( node, flags ) )
rtems_set_errno_and_return_minus_one( EACCES );
200b6fc: 40 00 13 55 call 2010450 <__errno> <== NOT EXECUTED
200b700: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200b704: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED
200b708: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return result;
}
200b70c: 81 c7 e0 08 ret <== NOT EXECUTED
200b710: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_HARD_LINK )
rtems_fatal_error_occurred (0xABCD0000);
200b714: 7f ff ee 0f call 2006f50 <rtems_fatal_error_occurred> <== NOT EXECUTED
200b718: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED
0200bbb8 <IMFS_evaluate_link>:
int IMFS_evaluate_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
200bbb8: 9d e3 bf a0 save %sp, -96, %sp
200bbbc: 21 00 80 74 sethi %hi(0x201d000), %l0
200bbc0: a2 10 00 18 mov %i0, %l1
200bbc4: c2 04 22 10 ld [ %l0 + 0x210 ], %g1
else if (jnode->type == IMFS_SYM_LINK )
result = IMFS_evaluate_sym_link( node, flags );
} while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) ||
( jnode->type == IMFS_HARD_LINK ) ) );
200bbc8: 10 80 00 07 b 200bbe4 <IMFS_evaluate_link+0x2c>
200bbcc: a6 14 22 10 or %l0, 0x210, %l3
*/
if ( jnode->type == IMFS_HARD_LINK )
result = IMFS_evaluate_hard_link( node, flags );
else if (jnode->type == IMFS_SYM_LINK )
200bbd0: 02 80 00 21 be 200bc54 <IMFS_evaluate_link+0x9c>
200bbd4: 84 00 bf fd add %g2, -3, %g2
result = IMFS_evaluate_sym_link( node, flags );
} while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) ||
( jnode->type == IMFS_HARD_LINK ) ) );
200bbd8: 80 a0 a0 01 cmp %g2, 1
200bbdc: 18 80 00 1b bgu 200bc48 <IMFS_evaluate_link+0x90> <== ALWAYS TAKEN
200bbe0: 90 10 20 00 clr %o0
/*
* Increment and check the link counter.
*/
rtems_filesystem_link_counts ++;
200bbe4: c4 10 60 30 lduh [ %g1 + 0x30 ], %g2
{
IMFS_jnode_t *jnode;
int result = 0;
do {
jnode = node->node_access;
200bbe8: e4 04 40 00 ld [ %l1 ], %l2
/*
* Increment and check the link counter.
*/
rtems_filesystem_link_counts ++;
200bbec: 84 00 a0 01 inc %g2
200bbf0: c4 30 60 30 sth %g2, [ %g1 + 0x30 ]
if ( rtems_filesystem_link_counts > MAXSYMLINK ) {
200bbf4: 85 28 a0 10 sll %g2, 0x10, %g2
200bbf8: 85 30 a0 10 srl %g2, 0x10, %g2
200bbfc: 80 a0 a0 05 cmp %g2, 5
200bc00: 18 80 00 1d bgu 200bc74 <IMFS_evaluate_link+0xbc>
200bc04: 01 00 00 00 nop
/*
* Follow the Link node.
*/
if ( jnode->type == IMFS_HARD_LINK )
200bc08: c4 04 a0 4c ld [ %l2 + 0x4c ], %g2
200bc0c: 80 a0 a0 03 cmp %g2, 3
200bc10: 12 bf ff f0 bne 200bbd0 <IMFS_evaluate_link+0x18>
200bc14: 80 a0 a0 04 cmp %g2, 4
result = IMFS_evaluate_hard_link( node, flags );
200bc18: 90 10 00 11 mov %l1, %o0
200bc1c: 7f ff fe a6 call 200b6b4 <IMFS_evaluate_hard_link>
200bc20: 92 10 00 19 mov %i1, %o1
else if (jnode->type == IMFS_SYM_LINK )
result = IMFS_evaluate_sym_link( node, flags );
} while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) ||
( jnode->type == IMFS_HARD_LINK ) ) );
200bc24: 80 a2 20 00 cmp %o0, 0
200bc28: 12 80 00 08 bne 200bc48 <IMFS_evaluate_link+0x90> <== NEVER TAKEN
200bc2c: c2 04 22 10 ld [ %l0 + 0x210 ], %g1
200bc30: c4 04 a0 4c ld [ %l2 + 0x4c ], %g2
200bc34: 84 00 bf fd add %g2, -3, %g2
200bc38: 80 a0 a0 01 cmp %g2, 1
200bc3c: 08 bf ff ea bleu 200bbe4 <IMFS_evaluate_link+0x2c> <== ALWAYS TAKEN
200bc40: c2 04 c0 00 ld [ %l3 ], %g1
200bc44: 90 10 20 00 clr %o0 <== NOT EXECUTED
/*
* Clear link counter.
*/
rtems_filesystem_link_counts = 0;
200bc48: c0 30 60 30 clrh [ %g1 + 0x30 ]
return result;
}
200bc4c: 81 c7 e0 08 ret
200bc50: 91 e8 00 08 restore %g0, %o0, %o0
if ( jnode->type == IMFS_HARD_LINK )
result = IMFS_evaluate_hard_link( node, flags );
else if (jnode->type == IMFS_SYM_LINK )
result = IMFS_evaluate_sym_link( node, flags );
200bc54: 90 10 00 11 mov %l1, %o0
200bc58: 7f ff fe b2 call 200b720 <IMFS_evaluate_sym_link>
200bc5c: 92 10 00 19 mov %i1, %o1
} while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) ||
( jnode->type == IMFS_HARD_LINK ) ) );
200bc60: 80 a2 20 00 cmp %o0, 0
200bc64: 22 bf ff f4 be,a 200bc34 <IMFS_evaluate_link+0x7c>
200bc68: c4 04 a0 4c ld [ %l2 + 0x4c ], %g2
200bc6c: 10 bf ff f7 b 200bc48 <IMFS_evaluate_link+0x90>
200bc70: c2 04 22 10 ld [ %l0 + 0x210 ], %g1
*/
rtems_filesystem_link_counts ++;
if ( rtems_filesystem_link_counts > MAXSYMLINK ) {
rtems_filesystem_link_counts = 0;
rtems_set_errno_and_return_minus_one( ELOOP );
200bc74: 40 00 11 f7 call 2010450 <__errno>
200bc78: c0 30 60 30 clrh [ %g1 + 0x30 ]
200bc7c: 82 10 20 5c mov 0x5c, %g1
200bc80: c2 22 00 00 st %g1, [ %o0 ]
200bc84: 90 10 3f ff mov -1, %o0
*/
rtems_filesystem_link_counts = 0;
return result;
}
200bc88: 81 c7 e0 08 ret
200bc8c: 91 e8 00 08 restore %g0, %o0, %o0
0200b670 <IMFS_evaluate_permission>:
int IMFS_evaluate_permission(
rtems_filesystem_location_info_t *node,
int flags
)
{
200b670: 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 ) )
200b674: 80 8e 7f f8 btst -8, %i1
200b678: 12 80 00 09 bne 200b69c <IMFS_evaluate_permission+0x2c> <== NEVER TAKEN
200b67c: b3 2e 60 06 sll %i1, 6, %i1
/*
* If all of the flags are set we have permission
* to do this.
*/
if ( ( flags_to_test & jnode->st_mode) == flags_to_test )
200b680: c2 06 00 00 ld [ %i0 ], %g1
200b684: c2 00 60 30 ld [ %g1 + 0x30 ], %g1
200b688: b2 2e 40 01 andn %i1, %g1, %i1
200b68c: 80 a0 00 19 cmp %g0, %i1
200b690: b0 60 3f ff subx %g0, -1, %i0
return 1;
return 0;
}
200b694: 81 c7 e0 08 ret
200b698: 81 e8 00 00 restore
gid_t st_gid;
IMFS_jnode_t *jnode;
int flags_to_test;
if ( !rtems_libio_is_valid_perms( flags ) )
rtems_set_errno_and_return_minus_one( EPERM );
200b69c: 40 00 13 6d call 2010450 <__errno> <== NOT EXECUTED
200b6a0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200b6a4: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
200b6a8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200b6ac: 81 c7 e0 08 ret <== NOT EXECUTED
200b6b0: 81 e8 00 00 restore <== NOT EXECUTED
0200b720 <IMFS_evaluate_sym_link>:
int IMFS_evaluate_sym_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
200b720: 9d e3 bf 98 save %sp, -104, %sp
IMFS_jnode_t *jnode = node->node_access;
200b724: e0 06 00 00 ld [ %i0 ], %l0
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_SYM_LINK )
200b728: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
200b72c: 80 a0 60 04 cmp %g1, 4
200b730: 12 80 00 26 bne 200b7c8 <IMFS_evaluate_sym_link+0xa8> <== NEVER TAKEN
200b734: 01 00 00 00 nop
rtems_fatal_error_occurred (0xABCD0000);
if ( !jnode->Parent )
200b738: c2 04 20 08 ld [ %l0 + 8 ], %g1
200b73c: 80 a0 60 00 cmp %g1, 0
200b740: 02 80 00 20 be 200b7c0 <IMFS_evaluate_sym_link+0xa0> <== NEVER TAKEN
200b744: 92 07 bf fc add %fp, -4, %o1
/*
* Move the node_access to either the symbolic links parent or
* root depending on the symbolic links path.
*/
node->node_access = jnode->Parent;
200b748: c2 26 00 00 st %g1, [ %i0 ]
rtems_filesystem_get_sym_start_loc(
200b74c: d0 04 20 50 ld [ %l0 + 0x50 ], %o0
200b750: 40 00 05 dc call 200cec0 <rtems_filesystem_get_sym_start_loc>
200b754: 94 10 00 18 mov %i0, %o2
/*
* Use eval path to evaluate the path of the symbolic link.
*/
result = IMFS_eval_path(
200b758: c2 07 bf fc ld [ %fp + -4 ], %g1
200b75c: e0 04 20 50 ld [ %l0 + 0x50 ], %l0
200b760: a0 04 00 01 add %l0, %g1, %l0
200b764: 40 00 17 08 call 2011384 <strlen>
200b768: 90 10 00 10 mov %l0, %o0
200b76c: 94 10 00 19 mov %i1, %o2
200b770: 92 10 00 08 mov %o0, %o1
200b774: 96 10 00 18 mov %i0, %o3
200b778: 40 00 00 17 call 200b7d4 <IMFS_eval_path>
200b77c: 90 10 00 10 mov %l0, %o0
200b780: a0 10 00 08 mov %o0, %l0
strlen( &jnode->info.sym_link.name[i] ),
flags,
node
);
IMFS_Set_handlers( node );
200b784: 7f ff ff 98 call 200b5e4 <IMFS_Set_handlers>
200b788: 90 10 00 18 mov %i0, %o0
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( node, flags ) )
200b78c: 90 10 00 18 mov %i0, %o0
200b790: 7f ff ff b8 call 200b670 <IMFS_evaluate_permission>
200b794: 92 10 00 19 mov %i1, %o1
200b798: 80 a2 20 00 cmp %o0, 0
200b79c: 02 80 00 04 be 200b7ac <IMFS_evaluate_sym_link+0x8c> <== NEVER TAKEN
200b7a0: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EACCES );
return result;
}
200b7a4: 81 c7 e0 08 ret
200b7a8: 91 e8 00 10 restore %g0, %l0, %o0
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( node, flags ) )
rtems_set_errno_and_return_minus_one( EACCES );
200b7ac: 40 00 13 29 call 2010450 <__errno> <== NOT EXECUTED
200b7b0: a0 10 3f ff mov -1, %l0 <== NOT EXECUTED
200b7b4: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED
200b7b8: 10 bf ff fb b 200b7a4 <IMFS_evaluate_sym_link+0x84> <== NOT EXECUTED
200b7bc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
if ( jnode->type != IMFS_SYM_LINK )
rtems_fatal_error_occurred (0xABCD0000);
if ( !jnode->Parent )
rtems_fatal_error_occurred( 0xBAD00000 );
200b7c0: 7f ff ed e4 call 2006f50 <rtems_fatal_error_occurred> <== NOT EXECUTED
200b7c4: 11 2e b4 00 sethi %hi(0xbad00000), %o0 <== NOT EXECUTED
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_SYM_LINK )
rtems_fatal_error_occurred (0xABCD0000);
200b7c8: 7f ff ed e2 call 2006f50 <rtems_fatal_error_occurred> <== NOT EXECUTED
200b7cc: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED
0200c208 <IMFS_fifo_close>:
}
int IMFS_fifo_close(
rtems_libio_t *iop
)
{
200c208: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
200c20c: e2 06 20 3c ld [ %i0 + 0x3c ], %l1 <== NOT EXECUTED
int err = pipe_release(&JNODE2PIPE(jnode), iop);
200c210: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
}
int IMFS_fifo_close(
rtems_libio_t *iop
)
{
200c214: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
int err = pipe_release(&JNODE2PIPE(jnode), iop);
200c218: 7f ff fb 14 call 200ae68 <pipe_release> <== NOT EXECUTED
200c21c: 90 04 60 50 add %l1, 0x50, %o0 <== NOT EXECUTED
if (! err) {
200c220: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
200c224: 02 80 00 06 be 200c23c <IMFS_fifo_close+0x34> <== NOT EXECUTED
200c228: 80 a6 20 00 cmp %i0, 0 <== 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)
free(jnode);
}
IMFS_FIFO_RETURN(err);
200c22c: 06 80 00 14 bl 200c27c <IMFS_fifo_close+0x74> <== NOT EXECUTED
200c230: 01 00 00 00 nop <== NOT EXECUTED
}
200c234: 81 c7 e0 08 ret <== NOT EXECUTED
200c238: 81 e8 00 00 restore <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
int err = pipe_release(&JNODE2PIPE(jnode), iop);
if (! err) {
iop->flags &= ~LIBIO_FLAGS_OPEN;
200c23c: c2 04 20 18 ld [ %l0 + 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)
200c240: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
int err = pipe_release(&JNODE2PIPE(jnode), iop);
if (! err) {
iop->flags &= ~LIBIO_FLAGS_OPEN;
200c244: 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)
200c248: 40 00 01 c9 call 200c96c <rtems_libio_is_file_open> <== NOT EXECUTED
200c24c: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED
200c250: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200c254: 12 80 00 08 bne 200c274 <IMFS_fifo_close+0x6c> <== NOT EXECUTED
200c258: 01 00 00 00 nop <== NOT EXECUTED
200c25c: c2 14 60 34 lduh [ %l1 + 0x34 ], %g1 <== NOT EXECUTED
200c260: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200c264: 12 80 00 04 bne 200c274 <IMFS_fifo_close+0x6c> <== NOT EXECUTED
200c268: 01 00 00 00 nop <== NOT EXECUTED
free(jnode);
200c26c: 7f ff da a0 call 2002cec <free> <== NOT EXECUTED
200c270: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
200c274: 81 c7 e0 08 ret <== NOT EXECUTED
200c278: 81 e8 00 00 restore <== NOT EXECUTED
}
IMFS_FIFO_RETURN(err);
200c27c: 40 00 10 75 call 2010450 <__errno> <== NOT EXECUTED
200c280: b0 20 00 18 neg %i0 <== NOT EXECUTED
200c284: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED
}
200c288: 81 c7 e0 08 ret <== NOT EXECUTED
200c28c: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
0200c0a4 <IMFS_fifo_ioctl>:
int IMFS_fifo_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
200c0a4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int err;
if (command == FIONBIO) {
200c0a8: 03 20 01 19 sethi %hi(0x80046400), %g1 <== NOT EXECUTED
200c0ac: 82 10 62 7e or %g1, 0x27e, %g1 ! 8004667e <RAM_END+0x7dc4667e><== NOT EXECUTED
200c0b0: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
200c0b4: 02 80 00 0c be 200c0e4 <IMFS_fifo_ioctl+0x40> <== NOT EXECUTED
200c0b8: 96 10 00 18 mov %i0, %o3 <== NOT EXECUTED
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
return 0;
}
}
else
err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop);
200c0bc: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED
200c0c0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
200c0c4: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 <== NOT EXECUTED
200c0c8: 7f ff fa 62 call 200aa50 <pipe_ioctl> <== NOT EXECUTED
200c0cc: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
200c0d0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
200c0d4: 06 80 00 13 bl 200c120 <IMFS_fifo_ioctl+0x7c> <== NOT EXECUTED
200c0d8: b2 20 00 18 neg %i0, %i1 <== NOT EXECUTED
}
200c0dc: 81 c7 e0 08 ret <== NOT EXECUTED
200c0e0: 81 e8 00 00 restore <== NOT EXECUTED
)
{
int err;
if (command == FIONBIO) {
if (buffer == NULL)
200c0e4: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
200c0e8: 02 80 00 0e be 200c120 <IMFS_fifo_ioctl+0x7c> <== NOT EXECUTED
200c0ec: b2 10 20 0e mov 0xe, %i1 <== NOT EXECUTED
err = -EFAULT;
else {
if (*(int *)buffer)
200c0f0: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
200c0f4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200c0f8: 02 80 00 06 be 200c110 <IMFS_fifo_ioctl+0x6c> <== NOT EXECUTED
200c0fc: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 <== NOT EXECUTED
iop->flags |= LIBIO_FLAGS_NO_DELAY;
200c100: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED
200c104: c2 22 e0 18 st %g1, [ %o3 + 0x18 ] <== NOT EXECUTED
200c108: 81 c7 e0 08 ret <== NOT EXECUTED
200c10c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
else
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
200c110: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED
200c114: c2 22 e0 18 st %g1, [ %o3 + 0x18 ] <== NOT EXECUTED
200c118: 81 c7 e0 08 ret <== NOT EXECUTED
200c11c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
}
}
else
err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop);
IMFS_FIFO_RETURN(err);
200c120: 40 00 10 cc call 2010450 <__errno> <== NOT EXECUTED
200c124: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200c128: f2 22 00 00 st %i1, [ %o0 ] <== NOT EXECUTED
}
200c12c: 81 c7 e0 08 ret <== NOT EXECUTED
200c130: 81 e8 00 00 restore <== NOT EXECUTED
0200c048 <IMFS_fifo_lseek>:
rtems_off64_t IMFS_fifo_lseek(
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
200c048: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);
200c04c: 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
)
{
200c050: 98 10 00 18 mov %i0, %o4 <== NOT EXECUTED
off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);
200c054: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 <== NOT EXECUTED
200c058: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
200c05c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
200c060: 7f ff fa 5e call 200a9d8 <pipe_lseek> <== NOT EXECUTED
200c064: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
200c068: 85 3a 20 1f sra %o0, 0x1f, %g2 <== NOT EXECUTED
200c06c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
200c070: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
200c074: 06 80 00 05 bl 200c088 <IMFS_fifo_lseek+0x40> <== NOT EXECUTED
200c078: 86 10 00 08 mov %o0, %g3 <== NOT EXECUTED
}
200c07c: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED
200c080: 81 c7 e0 08 ret <== NOT EXECUTED
200c084: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
rtems_off64_t offset,
int whence
)
{
off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);
IMFS_FIFO_RETURN(err);
200c088: 40 00 10 f2 call 2010450 <__errno> <== NOT EXECUTED
200c08c: a0 20 00 10 neg %l0 <== NOT EXECUTED
200c090: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED
200c094: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED
200c098: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
200c09c: 10 bf ff f8 b 200c07c <IMFS_fifo_lseek+0x34> <== NOT EXECUTED
200c0a0: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED
0200c290 <IMFS_fifo_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
200c290: 9d e3 bf a0 save %sp, -96, %sp
IMFS_jnode_t *jnode = iop->file_info;
int err = fifo_open(&JNODE2PIPE(jnode), iop);
200c294: d0 06 20 3c ld [ %i0 + 0x3c ], %o0
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
200c298: 92 10 00 18 mov %i0, %o1
IMFS_jnode_t *jnode = iop->file_info;
int err = fifo_open(&JNODE2PIPE(jnode), iop);
200c29c: 7f ff fb 44 call 200afac <fifo_open>
200c2a0: 90 02 20 50 add %o0, 0x50, %o0
IMFS_FIFO_RETURN(err);
200c2a4: b0 92 20 00 orcc %o0, 0, %i0
200c2a8: 06 80 00 04 bl 200c2b8 <IMFS_fifo_open+0x28> <== ALWAYS TAKEN
200c2ac: 01 00 00 00 nop
}
200c2b0: 81 c7 e0 08 ret <== NOT EXECUTED
200c2b4: 81 e8 00 00 restore <== NOT EXECUTED
)
{
IMFS_jnode_t *jnode = iop->file_info;
int err = fifo_open(&JNODE2PIPE(jnode), iop);
IMFS_FIFO_RETURN(err);
200c2b8: 40 00 10 66 call 2010450 <__errno>
200c2bc: b0 20 00 18 neg %i0
200c2c0: f0 22 00 00 st %i0, [ %o0 ]
}
200c2c4: 81 c7 e0 08 ret
200c2c8: 91 e8 3f ff restore %g0, -1, %o0
0200c1a0 <IMFS_fifo_read>:
ssize_t IMFS_fifo_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
200c1a0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
200c1a4: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED
ssize_t IMFS_fifo_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
200c1a8: 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);
200c1ac: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 <== NOT EXECUTED
200c1b0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
200c1b4: 7f ff fa be call 200acac <pipe_read> <== NOT EXECUTED
200c1b8: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
if (err > 0)
200c1bc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
200c1c0: 04 80 00 08 ble 200c1e0 <IMFS_fifo_read+0x40> <== NOT EXECUTED
200c1c4: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED
IMFS_update_atime(jnode);
200c1c8: 7f ff da f4 call 2002d98 <gettimeofday> <== NOT EXECUTED
200c1cc: 92 10 20 00 clr %o1 <== NOT EXECUTED
200c1d0: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
200c1d4: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED
200c1d8: 81 c7 e0 08 ret <== NOT EXECUTED
200c1dc: 81 e8 00 00 restore <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
200c1e0: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
200c1e4: 12 80 00 04 bne 200c1f4 <IMFS_fifo_read+0x54> <== NOT EXECUTED
200c1e8: 01 00 00 00 nop <== NOT EXECUTED
}
200c1ec: 81 c7 e0 08 ret <== NOT EXECUTED
200c1f0: 81 e8 00 00 restore <== NOT EXECUTED
int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop);
if (err > 0)
IMFS_update_atime(jnode);
IMFS_FIFO_RETURN(err);
200c1f4: 40 00 10 97 call 2010450 <__errno> <== NOT EXECUTED
200c1f8: b0 20 00 18 neg %i0 <== NOT EXECUTED
200c1fc: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED
}
200c200: 81 c7 e0 08 ret <== NOT EXECUTED
200c204: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
0200c134 <IMFS_fifo_write>:
ssize_t IMFS_fifo_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
200c134: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
200c138: 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
)
{
200c13c: 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);
200c140: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 <== NOT EXECUTED
200c144: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
200c148: 7f ff fa 5b call 200aab4 <pipe_write> <== NOT EXECUTED
200c14c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
if (err > 0) {
200c150: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
200c154: 04 80 00 09 ble 200c178 <IMFS_fifo_write+0x44> <== NOT EXECUTED
200c158: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED
IMFS_mtime_ctime_update(jnode);
200c15c: 7f ff db 0f call 2002d98 <gettimeofday> <== NOT EXECUTED
200c160: 92 10 20 00 clr %o1 <== NOT EXECUTED
200c164: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
200c168: c2 24 20 48 st %g1, [ %l0 + 0x48 ] <== NOT EXECUTED
200c16c: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED
200c170: 81 c7 e0 08 ret <== NOT EXECUTED
200c174: 81 e8 00 00 restore <== NOT EXECUTED
}
IMFS_FIFO_RETURN(err);
200c178: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
200c17c: 12 80 00 04 bne 200c18c <IMFS_fifo_write+0x58> <== NOT EXECUTED
200c180: 01 00 00 00 nop <== NOT EXECUTED
}
200c184: 81 c7 e0 08 ret <== NOT EXECUTED
200c188: 81 e8 00 00 restore <== NOT EXECUTED
int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop);
if (err > 0) {
IMFS_mtime_ctime_update(jnode);
}
IMFS_FIFO_RETURN(err);
200c18c: 40 00 10 b1 call 2010450 <__errno> <== NOT EXECUTED
200c190: b0 20 00 18 neg %i0 <== NOT EXECUTED
200c194: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED
}
200c198: 81 c7 e0 08 ret <== NOT EXECUTED
200c19c: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
0200c398 <IMFS_find_match_in_dir>:
IMFS_jnode_t *IMFS_find_match_in_dir(
IMFS_jnode_t *directory,
char *name
)
{
200c398: 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 );
200c39c: 80 a6 20 00 cmp %i0, 0
200c3a0: 02 80 00 26 be 200c438 <IMFS_find_match_in_dir+0xa0> <== NEVER TAKEN
200c3a4: 80 a6 60 00 cmp %i1, 0
if ( !name )
200c3a8: 02 80 00 11 be 200c3ec <IMFS_find_match_in_dir+0x54> <== NEVER TAKEN
200c3ac: 90 10 00 19 mov %i1, %o0
/*
* Check for "." and ".."
*/
if ( !strcmp( name, dotname ) )
200c3b0: 13 00 80 70 sethi %hi(0x201c000), %o1
200c3b4: 40 00 13 8e call 20111ec <strcmp>
200c3b8: 92 12 63 a0 or %o1, 0x3a0, %o1 ! 201c3a0 <dotname>
200c3bc: 80 a2 20 00 cmp %o0, 0
200c3c0: 02 80 00 09 be 200c3e4 <IMFS_find_match_in_dir+0x4c> <== NEVER TAKEN
200c3c4: 90 10 00 19 mov %i1, %o0
return directory;
if ( !strcmp( name, dotdotname ) )
200c3c8: 13 00 80 70 sethi %hi(0x201c000), %o1
200c3cc: 40 00 13 88 call 20111ec <strcmp>
200c3d0: 92 12 63 a8 or %o1, 0x3a8, %o1 ! 201c3a8 <dotdotname>
200c3d4: 80 a2 20 00 cmp %o0, 0
200c3d8: 32 80 00 07 bne,a 200c3f4 <IMFS_find_match_in_dir+0x5c> <== ALWAYS TAKEN
200c3dc: e0 06 20 50 ld [ %i0 + 0x50 ], %l0
return directory->Parent;
200c3e0: f0 06 20 08 ld [ %i0 + 8 ], %i0 <== NOT EXECUTED
200c3e4: 81 c7 e0 08 ret <== NOT EXECUTED
200c3e8: 81 e8 00 00 restore <== NOT EXECUTED
if ( !strcmp( name, the_jnode->name ) )
return the_jnode;
}
return 0;
}
200c3ec: 81 c7 e0 08 ret
200c3f0: 91 e8 20 00 restore %g0, 0, %o0
200c3f4: b0 06 20 54 add %i0, 0x54, %i0
if ( !strcmp( name, dotdotname ) )
return directory->Parent;
the_chain = &directory->info.directory.Entries;
for ( the_node = the_chain->first;
200c3f8: 80 a4 00 18 cmp %l0, %i0
200c3fc: 12 80 00 07 bne 200c418 <IMFS_find_match_in_dir+0x80>
200c400: 90 10 00 19 mov %i1, %o0
200c404: 81 c7 e0 08 ret
200c408: 91 e8 20 00 restore %g0, 0, %o0
200c40c: 80 a4 00 18 cmp %l0, %i0
200c410: 02 bf ff f7 be 200c3ec <IMFS_find_match_in_dir+0x54>
200c414: 90 10 00 19 mov %i1, %o0
!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 ) )
200c418: 40 00 13 75 call 20111ec <strcmp>
200c41c: 92 04 20 0c add %l0, 0xc, %o1
200c420: 80 a2 20 00 cmp %o0, 0
200c424: 32 bf ff fa bne,a 200c40c <IMFS_find_match_in_dir+0x74>
200c428: e0 04 00 00 ld [ %l0 ], %l0
200c42c: b0 10 00 10 mov %l0, %i0
200c430: 81 c7 e0 08 ret
200c434: 81 e8 00 00 restore
/*
* Check for fatal errors. A NULL directory show a problem in the
* the IMFS code.
*/
assert( directory );
200c438: 11 00 80 70 sethi %hi(0x201c000), %o0 <== NOT EXECUTED
200c43c: 15 00 80 70 sethi %hi(0x201c000), %o2 <== NOT EXECUTED
200c440: 17 00 80 70 sethi %hi(0x201c000), %o3 <== NOT EXECUTED
200c444: 90 12 23 38 or %o0, 0x338, %o0 <== NOT EXECUTED
200c448: 94 12 a3 b0 or %o2, 0x3b0, %o2 <== NOT EXECUTED
200c44c: 96 12 e3 90 or %o3, 0x390, %o3 <== NOT EXECUTED
200c450: 40 00 00 a6 call 200c6e8 <__assert_func> <== NOT EXECUTED
200c454: 92 10 20 2a mov 0x2a, %o1 <== NOT EXECUTED
0200c2d4 <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
)
{
200c2d4: 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;
200c2d8: c8 06 20 20 ld [ %i0 + 0x20 ], %g4
200c2dc: c6 06 20 24 ld [ %i0 + 0x24 ], %g3
200c2e0: c4 06 20 28 ld [ %i0 + 0x28 ], %g2
200c2e4: c2 06 20 2c ld [ %i0 + 0x2c ], %g1
/*
* 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;
200c2e8: e4 06 20 1c ld [ %i0 + 0x1c ], %l2
loc = temp_mt_entry->mt_fs_root;
200c2ec: c8 27 bf f0 st %g4, [ %fp + -16 ]
200c2f0: c6 27 bf f4 st %g3, [ %fp + -12 ]
200c2f4: c4 27 bf f8 st %g2, [ %fp + -8 ]
200c2f8: c2 27 bf fc st %g1, [ %fp + -4 ]
/*
* Set this to null to indicate that it is being unmounted.
*/
temp_mt_entry->mt_fs_root.node_access = NULL;
200c2fc: c0 26 20 1c clr [ %i0 + 0x1c ]
200c300: a0 07 bf ec add %fp, -20, %l0
do {
next = jnode->Parent;
loc.node_access = (void *)jnode;
200c304: e4 27 bf ec st %l2, [ %fp + -20 ]
*/
temp_mt_entry->mt_fs_root.node_access = NULL;
do {
next = jnode->Parent;
200c308: e2 04 a0 08 ld [ %l2 + 8 ], %l1
loc.node_access = (void *)jnode;
IMFS_Set_handlers( &loc );
200c30c: 7f ff fc b6 call 200b5e4 <IMFS_Set_handlers>
200c310: 90 10 00 10 mov %l0, %o0
if ( jnode->type != IMFS_DIRECTORY ) {
200c314: c2 04 a0 4c ld [ %l2 + 0x4c ], %g1
200c318: 80 a0 60 01 cmp %g1, 1
200c31c: 12 80 00 17 bne 200c378 <IMFS_fsunmount+0xa4>
200c320: 84 04 a0 54 add %l2, 0x54, %g2
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200c324: c2 04 a0 50 ld [ %l2 + 0x50 ], %g1
200c328: 80 a0 40 02 cmp %g1, %g2
200c32c: 22 80 00 14 be,a 200c37c <IMFS_fsunmount+0xa8>
200c330: 90 10 20 00 clr %o0
result = IMFS_unlink( NULL, &loc );
if (result != 0)
return -1;
jnode = next;
}
if ( jnode != NULL ) {
200c334: 80 a4 a0 00 cmp %l2, 0
200c338: 02 80 00 0e be 200c370 <IMFS_fsunmount+0x9c>
200c33c: 01 00 00 00 nop
if ( jnode->type == IMFS_DIRECTORY ) {
200c340: c2 04 a0 4c ld [ %l2 + 0x4c ], %g1
200c344: 80 a0 60 01 cmp %g1, 1
200c348: 32 bf ff f0 bne,a 200c308 <IMFS_fsunmount+0x34> <== NEVER TAKEN
200c34c: e4 27 bf ec st %l2, [ %fp + -20 ] <== NOT EXECUTED
200c350: c2 04 a0 50 ld [ %l2 + 0x50 ], %g1
200c354: 84 04 a0 54 add %l2, 0x54, %g2
200c358: 80 a0 40 02 cmp %g1, %g2
200c35c: 22 bf ff eb be,a 200c308 <IMFS_fsunmount+0x34>
200c360: e4 27 bf ec st %l2, [ %fp + -20 ]
if ( jnode_has_children( jnode ) )
jnode = jnode_get_first_child( jnode );
}
}
} while (jnode != NULL);
200c364: a4 90 60 00 orcc %g1, 0, %l2
200c368: 32 bf ff e8 bne,a 200c308 <IMFS_fsunmount+0x34> <== ALWAYS TAKEN
200c36c: e4 27 bf ec st %l2, [ %fp + -20 ]
return 0;
}
200c370: 81 c7 e0 08 ret
200c374: 91 e8 20 00 restore %g0, 0, %o0
result = IMFS_unlink( NULL, &loc );
if (result != 0)
return -1;
jnode = next;
} else if ( jnode_has_no_children( jnode ) ) {
result = IMFS_unlink( NULL, &loc );
200c378: 90 10 20 00 clr %o0
200c37c: 7f ff d8 c4 call 200268c <IMFS_unlink>
200c380: 92 10 00 10 mov %l0, %o1
if (result != 0)
200c384: 80 a2 20 00 cmp %o0, 0
200c388: 02 bf ff eb be 200c334 <IMFS_fsunmount+0x60> <== ALWAYS TAKEN
200c38c: a4 10 00 11 mov %l1, %l2
if ( jnode->type == IMFS_DIRECTORY ) {
if ( jnode_has_children( jnode ) )
jnode = jnode_get_first_child( jnode );
}
}
} while (jnode != NULL);
200c390: 81 c7 e0 08 ret <== NOT EXECUTED
200c394: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
0200c45c <IMFS_get_token>:
const char *path,
int pathlen,
char *token,
int *token_len
)
{
200c45c: 9d e3 bf a0 save %sp, -96, %sp
register char c;
/*
* Copy a name into token. (Remember NULL is a token.)
*/
c = path[i];
200c460: a0 10 20 00 clr %l0
while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
200c464: 10 80 00 08 b 200c484 <IMFS_get_token+0x28>
200c468: e2 0e 00 00 ldub [ %i0 ], %l1
200c46c: 16 80 00 0c bge 200c49c <IMFS_get_token+0x40>
200c470: 80 a4 20 20 cmp %l0, 0x20
token[i] = c;
200c474: e2 2e 80 10 stb %l1, [ %i2 + %l0 ]
if ( i == IMFS_NAME_MAX )
200c478: 02 80 00 2c be 200c528 <IMFS_get_token+0xcc>
200c47c: a0 04 20 01 inc %l0
return IMFS_INVALID_TOKEN;
if ( !IMFS_is_valid_name_char(c) )
type = IMFS_INVALID_TOKEN;
c = path [++i];
200c480: 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) ) {
200c484: a5 2c 60 18 sll %l1, 0x18, %l2
200c488: 7f ff de 5b call 2003df4 <rtems_filesystem_is_separator>
200c48c: 91 3c a0 18 sra %l2, 0x18, %o0
200c490: 80 a2 20 00 cmp %o0, 0
200c494: 02 bf ff f6 be 200c46c <IMFS_get_token+0x10>
200c498: 80 a4 00 19 cmp %l0, %i1
/*
* Copy a seperator into token.
*/
if ( i == 0 ) {
200c49c: 80 a4 20 00 cmp %l0, 0
200c4a0: 12 80 00 0c bne 200c4d0 <IMFS_get_token+0x74>
200c4a4: 82 06 80 10 add %i2, %l0, %g1
token[i] = c;
if ( (token[i] != '\0') && pathlen ) {
200c4a8: 80 a4 a0 00 cmp %l2, 0
200c4ac: 02 80 00 21 be 200c530 <IMFS_get_token+0xd4>
200c4b0: e2 2e 80 00 stb %l1, [ %i2 ]
200c4b4: 80 a6 60 00 cmp %i1, 0
200c4b8: 22 80 00 1f be,a 200c534 <IMFS_get_token+0xd8>
200c4bc: e0 26 c0 00 st %l0, [ %i3 ]
200c4c0: a0 10 20 01 mov 1, %l0
/*
* Set token_len to the number of characters copied.
*/
*token_len = i;
200c4c4: e0 26 c0 00 st %l0, [ %i3 ]
*/
if ( i == 0 ) {
token[i] = c;
if ( (token[i] != '\0') && pathlen ) {
200c4c8: 81 c7 e0 08 ret
200c4cc: 91 e8 20 01 restore %g0, 1, %o0
i++;
type = IMFS_CURRENT_DIR;
} else {
type = IMFS_NO_MORE_PATH;
}
} else if (token[ i-1 ] != '\0') {
200c4d0: c2 48 7f ff ldsb [ %g1 + -1 ], %g1
200c4d4: 80 a0 60 00 cmp %g1, 0
200c4d8: 32 80 00 02 bne,a 200c4e0 <IMFS_get_token+0x84> <== ALWAYS TAKEN
200c4dc: c0 2e 80 10 clrb [ %i2 + %l0 ]
/*
* Set token_len to the number of characters copied.
*/
*token_len = i;
200c4e0: e0 26 c0 00 st %l0, [ %i3 ]
* If we copied something that was not a seperator see if
* it was a special name.
*/
if ( type == IMFS_NAME ) {
if ( strcmp( token, "..") == 0 )
200c4e4: 90 10 00 1a mov %i2, %o0
200c4e8: 13 00 80 70 sethi %hi(0x201c000), %o1
200c4ec: b0 10 20 02 mov 2, %i0
200c4f0: 40 00 13 3f call 20111ec <strcmp>
200c4f4: 92 12 63 d0 or %o1, 0x3d0, %o1
200c4f8: 80 a2 20 00 cmp %o0, 0
200c4fc: 02 80 00 09 be 200c520 <IMFS_get_token+0xc4>
200c500: 90 10 00 1a mov %i2, %o0
type = IMFS_UP_DIR;
else if ( strcmp( token, "." ) == 0 )
200c504: 13 00 80 70 sethi %hi(0x201c000), %o1
200c508: 40 00 13 39 call 20111ec <strcmp>
200c50c: 92 12 63 c8 or %o1, 0x3c8, %o1 ! 201c3c8 <__FUNCTION__.5476+0x18>
200c510: 80 a0 00 08 cmp %g0, %o0
200c514: b0 60 20 00 subx %g0, 0, %i0
200c518: b0 0e 20 02 and %i0, 2, %i0
200c51c: b0 06 20 01 inc %i0
type = IMFS_CURRENT_DIR;
}
return type;
}
200c520: 81 c7 e0 08 ret
200c524: 81 e8 00 00 restore
c = path[i];
while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
token[i] = c;
if ( i == IMFS_NAME_MAX )
200c528: 81 c7 e0 08 ret
200c52c: 91 e8 20 04 restore %g0, 4, %o0
/*
* Set token_len to the number of characters copied.
*/
*token_len = i;
200c530: e0 26 c0 00 st %l0, [ %i3 ]
type = IMFS_CURRENT_DIR;
} else {
type = IMFS_NO_MORE_PATH;
}
} else if (token[ i-1 ] != '\0') {
token[i] = '\0';
200c534: 81 c7 e0 08 ret
200c538: 91 e8 20 00 restore %g0, 0, %o0
02002220 <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
)
{
2002220: 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,
2002224: 03 00 80 74 sethi %hi(0x201d000), %g1
2002228: c2 00 60 48 ld [ %g1 + 0x48 ], %g1 ! 201d048 <imfs_rq_memfile_bytes_per_block>
int bit_mask;
/*
* check, whether requested bytes per block is valid
*/
for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
200222c: 80 a0 60 10 cmp %g1, 0x10
2002230: 02 80 00 0a be 2002258 <IMFS_initialize_support+0x38> <== NEVER TAKEN
2002234: 86 10 20 00 clr %g3
2002238: 84 10 20 20 mov 0x20, %g2
200223c: 80 a0 40 02 cmp %g1, %g2
2002240: 02 80 00 06 be 2002258 <IMFS_initialize_support+0x38>
2002244: 86 00 e0 01 inc %g3
2002248: 80 a0 e0 05 cmp %g3, 5
200224c: 12 bf ff fc bne 200223c <IMFS_initialize_support+0x1c> <== ALWAYS TAKEN
2002250: 85 28 a0 01 sll %g2, 1, %g2
2002254: 82 10 20 80 mov 0x80, %g1 <== NOT EXECUTED
if (bit_mask == requested_bytes_per_block) {
is_valid = true;
}
}
*dest_bytes_per_block = ((is_valid)
2002258: 05 00 80 75 sethi %hi(0x201d400), %g2
/*
* 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();
200225c: 40 00 24 85 call 200b470 <IMFS_create_root_node>
2002260: c2 20 a3 4c st %g1, [ %g2 + 0x34c ] ! 201d74c <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;
2002264: 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();
2002268: 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;
200226c: 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;
2002270: 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;
2002274: 13 00 80 70 sethi %hi(0x201c000), %o1
2002278: 90 06 20 38 add %i0, 0x38, %o0
200227c: 40 00 3a b1 call 2010d40 <memcpy>
2002280: 92 12 61 ec or %o1, 0x1ec, %o1
/*
* Create custom file system data.
*/
fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) );
2002284: 90 10 20 01 mov 1, %o0
2002288: 40 00 01 f6 call 2002a60 <calloc>
200228c: 92 10 20 10 mov 0x10, %o1
if ( !fs_info ) {
2002290: 80 a2 20 00 cmp %o0, 0
2002294: 02 80 00 11 be 20022d8 <IMFS_initialize_support+0xb8> <== NEVER TAKEN
2002298: 05 00 80 75 sethi %hi(0x201d400), %g2
fs_info->ino_count = 1;
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;
200229c: c8 06 20 1c ld [ %i0 + 0x1c ], %g4
/*
* Set st_ino for the root to 1.
*/
fs_info->instance = imfs_instance++;
20022a0: c2 00 a3 50 ld [ %g2 + 0x350 ], %g1
fs_info->ino_count = 1;
20022a4: 86 10 20 01 mov 1, %g3
20022a8: c6 22 20 04 st %g3, [ %o0 + 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;
20022ac: c6 21 20 38 st %g3, [ %g4 + 0x38 ]
/*
* Set st_ino for the root to 1.
*/
fs_info->instance = imfs_instance++;
20022b0: 86 00 60 01 add %g1, 1, %g3
20022b4: c6 20 a3 50 st %g3, [ %g2 + 0x350 ]
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;
20022b8: d0 26 20 34 st %o0, [ %i0 + 0x34 ]
*/
fs_info->instance = imfs_instance++;
fs_info->ino_count = 1;
fs_info->memfile_handlers = memfile_handlers;
fs_info->directory_handlers = directory_handlers;
20022bc: f6 22 20 0c st %i3, [ %o0 + 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;
20022c0: f4 22 20 08 st %i2, [ %o0 + 8 ]
/*
* Set st_ino for the root to 1.
*/
fs_info->instance = imfs_instance++;
20022c4: c2 22 00 00 st %g1, [ %o0 ]
jnode = temp_mt_entry->mt_fs_root.node_access;
jnode->st_ino = fs_info->ino_count;
/* Initialize POSIX FIFO/pipe module */
rtems_pipe_initialize();
20022c8: 40 00 21 c6 call 200a9e0 <rtems_pipe_initialize>
20022cc: b0 10 20 00 clr %i0
return 0;
}
20022d0: 81 c7 e0 08 ret
20022d4: 81 e8 00 00 restore
/*
* Create custom file system data.
*/
fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) );
if ( !fs_info ) {
free(temp_mt_entry->mt_fs_root.node_access);
20022d8: d0 06 20 1c ld [ %i0 + 0x1c ], %o0 <== NOT EXECUTED
20022dc: 40 00 02 84 call 2002cec <free> <== NOT EXECUTED
20022e0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
20022e4: 40 00 38 5b call 2010450 <__errno> <== NOT EXECUTED
20022e8: 01 00 00 00 nop <== NOT EXECUTED
20022ec: 82 10 20 0c mov 0xc, %g1 ! c <PROM_START+0xc> <== NOT EXECUTED
20022f0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20022f4: 81 c7 e0 08 ret <== NOT EXECUTED
20022f8: 81 e8 00 00 restore <== NOT EXECUTED
020022fc <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 */
)
{
20022fc: 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;
2002300: c2 06 00 00 ld [ %i0 ], %g1
2002304: c2 27 bf d8 st %g1, [ %fp + -40 ]
if ( info.hard_link.link_node->st_nlink >= LINK_MAX )
2002308: c2 10 60 34 lduh [ %g1 + 0x34 ], %g1
200230c: 80 a0 60 07 cmp %g1, 7
2002310: 18 80 00 1f bgu 200238c <IMFS_link+0x90>
2002314: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EMLINK );
/*
* Remove any separators at the end of the string.
*/
IMFS_get_token( token, strlen( token ), new_name, &i );
2002318: 40 00 3c 1b call 2011384 <strlen>
200231c: 90 10 00 1a mov %i2, %o0
2002320: a0 07 bf b0 add %fp, -80, %l0
2002324: 92 10 00 08 mov %o0, %o1
2002328: 96 07 bf fc add %fp, -4, %o3
200232c: 94 10 00 10 mov %l0, %o2
2002330: 40 00 28 4b call 200c45c <IMFS_get_token>
2002334: 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(
2002338: 90 10 00 19 mov %i1, %o0
200233c: 94 10 00 10 mov %l0, %o2
2002340: 92 10 20 03 mov 3, %o1
2002344: 17 00 00 28 sethi %hi(0xa000), %o3
2002348: 98 07 bf d8 add %fp, -40, %o4
200234c: 40 00 24 59 call 200b4b0 <IMFS_create_node>
2002350: 96 12 e1 ff or %o3, 0x1ff, %o3
new_name,
( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),
&info
);
if ( !new_node )
2002354: 80 a2 20 00 cmp %o0, 0
2002358: 02 80 00 13 be 20023a4 <IMFS_link+0xa8> <== NEVER TAKEN
200235c: c2 07 bf d8 ld [ %fp + -40 ], %g1
/*
* 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 );
2002360: 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++;
2002364: c4 10 60 34 lduh [ %g1 + 0x34 ], %g2
IMFS_update_ctime( info.hard_link.link_node );
2002368: 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++;
200236c: 84 00 a0 01 inc %g2
IMFS_update_ctime( info.hard_link.link_node );
2002370: 40 00 02 8a call 2002d98 <gettimeofday>
2002374: c4 30 60 34 sth %g2, [ %g1 + 0x34 ]
2002378: c4 07 bf f4 ld [ %fp + -12 ], %g2
200237c: c2 07 bf d8 ld [ %fp + -40 ], %g1
2002380: c4 20 60 48 st %g2, [ %g1 + 0x48 ]
return 0;
}
2002384: 81 c7 e0 08 ret
2002388: 91 e8 20 00 restore %g0, 0, %o0
/*
* Verify this node can be linked to.
*/
info.hard_link.link_node = to_loc->node_access;
if ( info.hard_link.link_node->st_nlink >= LINK_MAX )
rtems_set_errno_and_return_minus_one( EMLINK );
200238c: 40 00 38 31 call 2010450 <__errno>
2002390: b0 10 3f ff mov -1, %i0
2002394: 82 10 20 1f mov 0x1f, %g1
2002398: c2 22 00 00 st %g1, [ %o0 ]
200239c: 81 c7 e0 08 ret
20023a0: 81 e8 00 00 restore
( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),
&info
);
if ( !new_node )
rtems_set_errno_and_return_minus_one( ENOMEM );
20023a4: 40 00 38 2b call 2010450 <__errno> <== NOT EXECUTED
20023a8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20023ac: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
20023b0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20023b4: 81 c7 e0 08 ret <== NOT EXECUTED
20023b8: 81 e8 00 00 restore <== NOT EXECUTED
0200e8ac <IMFS_memfile_addblock>:
MEMFILE_STATIC int IMFS_memfile_addblock(
IMFS_jnode_t *the_jnode,
unsigned int block
)
{
200e8ac: 9d e3 bf a0 save %sp, -96, %sp
block_p memory;
block_p *block_entry_ptr;
assert( the_jnode );
200e8b0: 80 a6 20 00 cmp %i0, 0
200e8b4: 02 80 00 18 be 200e914 <IMFS_memfile_addblock+0x68> <== NEVER TAKEN
200e8b8: 11 00 80 71 sethi %hi(0x201c400), %o0
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
200e8bc: c2 06 20 4c ld [ %i0 + 0x4c ], %g1
200e8c0: 80 a0 60 05 cmp %g1, 5
200e8c4: 12 80 00 1b bne 200e930 <IMFS_memfile_addblock+0x84> <== NEVER TAKEN
200e8c8: 90 10 00 18 mov %i0, %o0
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 );
200e8cc: 92 10 00 19 mov %i1, %o1
200e8d0: 7f ff fe 61 call 200e254 <IMFS_memfile_get_block_pointer>
200e8d4: 94 10 20 01 mov 1, %o2
if ( *block_entry_ptr )
200e8d8: 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 );
200e8dc: a0 10 00 08 mov %o0, %l0
if ( *block_entry_ptr )
200e8e0: 80 a0 60 00 cmp %g1, 0
200e8e4: 02 80 00 04 be 200e8f4 <IMFS_memfile_addblock+0x48>
200e8e8: b0 10 20 00 clr %i0
if ( !memory )
return 1;
*block_entry_ptr = memory;
return 0;
}
200e8ec: 81 c7 e0 08 ret
200e8f0: 81 e8 00 00 restore
#if 0
fprintf(stdout, "%d %p", block, block_entry_ptr );
fflush(stdout);
#endif
memory = memfile_alloc_block();
200e8f4: 7f ff fe 4b call 200e220 <memfile_alloc_block>
200e8f8: b0 10 20 01 mov 1, %i0
if ( !memory )
200e8fc: 80 a2 20 00 cmp %o0, 0
200e900: 02 bf ff fb be 200e8ec <IMFS_memfile_addblock+0x40> <== NEVER TAKEN
200e904: 01 00 00 00 nop
return 1;
*block_entry_ptr = memory;
200e908: d0 24 00 00 st %o0, [ %l0 ]
return 0;
}
200e90c: 81 c7 e0 08 ret
200e910: 91 e8 20 00 restore %g0, 0, %o0
)
{
block_p memory;
block_p *block_entry_ptr;
assert( the_jnode );
200e914: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED
200e918: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED
200e91c: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED
200e920: 94 12 a3 60 or %o2, 0x360, %o2 <== NOT EXECUTED
200e924: 96 12 e2 00 or %o3, 0x200, %o3 <== NOT EXECUTED
200e928: 7f ff f7 70 call 200c6e8 <__assert_func> <== NOT EXECUTED
200e92c: 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 );
200e930: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED
200e934: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED
200e938: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED
200e93c: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED
200e940: 94 12 a3 60 or %o2, 0x360, %o2 <== NOT EXECUTED
200e944: 96 12 e2 10 or %o3, 0x210, %o3 <== NOT EXECUTED
200e948: 7f ff f7 68 call 200c6e8 <__assert_func> <== NOT EXECUTED
200e94c: 92 10 21 6d mov 0x16d, %o1 <== NOT EXECUTED
0200e954 <IMFS_memfile_extend>:
MEMFILE_STATIC int IMFS_memfile_extend(
IMFS_jnode_t *the_jnode,
off_t new_length
)
{
200e954: 9d e3 bf a0 save %sp, -96, %sp
/*
* Perform internal consistency checks
*/
assert( the_jnode );
200e958: 80 a6 20 00 cmp %i0, 0
200e95c: 02 80 00 5b be 200eac8 <IMFS_memfile_extend+0x174> <== NEVER TAKEN
200e960: 11 00 80 71 sethi %hi(0x201c400), %o0
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
200e964: c2 06 20 4c ld [ %i0 + 0x4c ], %g1
200e968: 80 a0 60 05 cmp %g1, 5
200e96c: 12 80 00 50 bne 200eaac <IMFS_memfile_extend+0x158> <== NEVER TAKEN
200e970: 03 00 80 75 sethi %hi(0x201d400), %g1
if ( the_jnode->type != IMFS_MEMORY_FILE )
rtems_set_errno_and_return_minus_one( EIO );
if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )
200e974: e2 00 63 4c ld [ %g1 + 0x34c ], %l1 ! 201d74c <imfs_memfile_bytes_per_block>
200e978: a1 34 60 02 srl %l1, 2, %l0
200e97c: 92 10 00 10 mov %l0, %o1
200e980: 40 00 2b cd call 20198b4 <.umul>
200e984: 90 04 20 01 add %l0, 1, %o0
200e988: 92 10 00 10 mov %l0, %o1
200e98c: 40 00 2b ca call 20198b4 <.umul>
200e990: 90 02 20 01 inc %o0
200e994: 92 10 00 11 mov %l1, %o1
200e998: 40 00 2b c7 call 20198b4 <.umul>
200e99c: 90 02 3f ff add %o0, -1, %o0
200e9a0: 82 10 20 00 clr %g1
200e9a4: 80 a0 40 19 cmp %g1, %i1
200e9a8: 04 80 00 37 ble 200ea84 <IMFS_memfile_extend+0x130> <== ALWAYS TAKEN
200e9ac: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EINVAL );
if ( new_length <= the_jnode->info.file.size )
200e9b0: e4 1e 20 50 ldd [ %i0 + 0x50 ], %l2 <== NOT EXECUTED
200e9b4: 80 a6 40 12 cmp %i1, %l2
200e9b8: 04 80 00 29 ble 200ea5c <IMFS_memfile_extend+0x108> <== ALWAYS TAKEN
200e9bc: a9 3c 60 1f sra %l1, 0x1f, %l4
/*
* Calculate the number of range of blocks to allocate
*/
new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;
200e9c0: 96 10 00 11 mov %l1, %o3
200e9c4: 94 10 00 14 mov %l4, %o2
200e9c8: 90 10 00 19 mov %i1, %o0
200e9cc: 40 00 2d 4c call 2019efc <__divdi3>
200e9d0: 92 10 00 1a mov %i2, %o1
old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
200e9d4: 90 10 00 12 mov %l2, %o0
/*
* Calculate the number of range of blocks to allocate
*/
new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;
200e9d8: a0 10 00 09 mov %o1, %l0
old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
200e9dc: 94 10 00 14 mov %l4, %o2
200e9e0: 92 10 00 13 mov %l3, %o1
200e9e4: 40 00 2d 46 call 2019efc <__divdi3>
200e9e8: 96 10 00 11 mov %l1, %o3
/*
* Now allocate each of those blocks.
*/
for ( block=old_blocks ; block<=new_blocks ; block++ ) {
200e9ec: 80 a4 00 09 cmp %l0, %o1
200e9f0: 0a 80 00 21 bcs 200ea74 <IMFS_memfile_extend+0x120> <== NEVER TAKEN
200e9f4: a4 10 00 09 mov %o1, %l2
200e9f8: 10 80 00 05 b 200ea0c <IMFS_memfile_extend+0xb8>
200e9fc: a2 10 00 09 mov %o1, %l1
200ea00: 80 a4 00 11 cmp %l0, %l1
200ea04: 2a 80 00 1d bcs,a 200ea78 <IMFS_memfile_extend+0x124>
200ea08: f4 26 20 54 st %i2, [ %i0 + 0x54 ]
if ( IMFS_memfile_addblock( the_jnode, block ) ) {
200ea0c: 90 10 00 18 mov %i0, %o0
200ea10: 7f ff ff a7 call 200e8ac <IMFS_memfile_addblock>
200ea14: 92 10 00 11 mov %l1, %o1
200ea18: 80 a2 20 00 cmp %o0, 0
200ea1c: 22 bf ff f9 be,a 200ea00 <IMFS_memfile_extend+0xac> <== ALWAYS TAKEN
200ea20: a2 04 60 01 inc %l1
for ( ; block>=old_blocks ; block-- ) {
200ea24: 10 80 00 06 b 200ea3c <IMFS_memfile_extend+0xe8> <== NOT EXECUTED
200ea28: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED
IMFS_memfile_remove_block( the_jnode, block );
200ea2c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
200ea30: 7f ff fe dc call 200e5a0 <IMFS_memfile_remove_block> <== NOT EXECUTED
200ea34: a2 04 7f ff add %l1, -1, %l1 <== 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-- ) {
200ea38: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED
200ea3c: 08 bf ff fc bleu 200ea2c <IMFS_memfile_extend+0xd8> <== NOT EXECUTED
200ea40: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
IMFS_memfile_remove_block( the_jnode, block );
}
rtems_set_errno_and_return_minus_one( ENOSPC );
200ea44: 40 00 06 83 call 2010450 <__errno> <== NOT EXECUTED
200ea48: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200ea4c: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED
200ea50: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200ea54: 81 c7 e0 08 ret <== NOT EXECUTED
200ea58: 81 e8 00 00 restore <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )
rtems_set_errno_and_return_minus_one( EINVAL );
if ( new_length <= the_jnode->info.file.size )
200ea5c: 12 80 00 04 bne 200ea6c <IMFS_memfile_extend+0x118> <== NEVER TAKEN
200ea60: 80 a6 80 13 cmp %i2, %l3
200ea64: 18 bf ff d7 bgu 200e9c0 <IMFS_memfile_extend+0x6c>
200ea68: a9 3c 60 1f sra %l1, 0x1f, %l4
200ea6c: 81 c7 e0 08 ret
200ea70: 91 e8 20 00 restore %g0, 0, %o0
/*
* Set the new length of the file.
*/
the_jnode->info.file.size = new_length;
200ea74: f4 26 20 54 st %i2, [ %i0 + 0x54 ] <== NOT EXECUTED
200ea78: f2 26 20 50 st %i1, [ %i0 + 0x50 ]
return 0;
}
200ea7c: 81 c7 e0 08 ret
200ea80: 91 e8 20 00 restore %g0, 0, %o0
assert( the_jnode->type == IMFS_MEMORY_FILE );
if ( the_jnode->type != IMFS_MEMORY_FILE )
rtems_set_errno_and_return_minus_one( EIO );
if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )
200ea84: 12 80 00 04 bne 200ea94 <IMFS_memfile_extend+0x140> <== NEVER TAKEN
200ea88: 80 a2 00 1a cmp %o0, %i2
200ea8c: 38 bf ff ca bgu,a 200e9b4 <IMFS_memfile_extend+0x60> <== ALWAYS TAKEN
200ea90: e4 1e 20 50 ldd [ %i0 + 0x50 ], %l2
rtems_set_errno_and_return_minus_one( EINVAL );
200ea94: 40 00 06 6f call 2010450 <__errno> <== NOT EXECUTED
200ea98: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200ea9c: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
200eaa0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200eaa4: 81 c7 e0 08 ret <== NOT EXECUTED
200eaa8: 81 e8 00 00 restore <== NOT EXECUTED
assert( the_jnode );
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
200eaac: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED
200eab0: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED
200eab4: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED
200eab8: 94 12 a3 78 or %o2, 0x378, %o2 <== NOT EXECUTED
200eabc: 96 12 e2 10 or %o3, 0x210, %o3 <== NOT EXECUTED
200eac0: 7f ff f7 0a call 200c6e8 <__assert_func> <== NOT EXECUTED
200eac4: 92 10 21 35 mov 0x135, %o1 <== NOT EXECUTED
/*
* Perform internal consistency checks
*/
assert( the_jnode );
200eac8: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED
200eacc: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED
200ead0: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED
200ead4: 94 12 a3 78 or %o2, 0x378, %o2 <== NOT EXECUTED
200ead8: 96 12 e2 00 or %o3, 0x200, %o3 <== NOT EXECUTED
200eadc: 7f ff f7 03 call 200c6e8 <__assert_func> <== NOT EXECUTED
200eae0: 92 10 21 31 mov 0x131, %o1 <== NOT EXECUTED
0200e254 <IMFS_memfile_get_block_pointer>:
#endif
IMFS_jnode_t *the_jnode,
unsigned int block,
int malloc_it
)
{
200e254: 9d e3 bf a0 save %sp, -96, %sp
/*
* Perform internal consistency checks
*/
assert( the_jnode );
200e258: 80 a6 20 00 cmp %i0, 0
200e25c: 02 80 00 94 be 200e4ac <IMFS_memfile_get_block_pointer+0x258><== NEVER TAKEN
200e260: 11 00 80 71 sethi %hi(0x201c400), %o0
if ( !the_jnode )
return NULL;
assert( the_jnode->type == IMFS_MEMORY_FILE );
200e264: c2 06 20 4c ld [ %i0 + 0x4c ], %g1
200e268: 80 a0 60 05 cmp %g1, 5
200e26c: 12 80 00 97 bne 200e4c8 <IMFS_memfile_get_block_pointer+0x274><== NEVER TAKEN
200e270: 03 00 80 75 sethi %hi(0x201d400), %g1
/*
* Is the block number in the simple indirect portion?
*/
if ( my_block <= LAST_INDIRECT ) {
200e274: e0 00 63 4c ld [ %g1 + 0x34c ], %l0 ! 201d74c <imfs_memfile_bytes_per_block>
200e278: a1 34 20 02 srl %l0, 2, %l0
200e27c: 82 04 3f ff add %l0, -1, %g1
200e280: 80 a6 40 01 cmp %i1, %g1
200e284: 08 80 00 20 bleu 200e304 <IMFS_memfile_get_block_pointer+0xb0><== ALWAYS TAKEN
200e288: 80 a6 a0 00 cmp %i2, 0
/*
* Is the block number in the doubly indirect portion?
*/
if ( my_block <= LAST_DOUBLY_INDIRECT ) {
200e28c: 90 04 20 01 add %l0, 1, %o0 <== NOT EXECUTED
200e290: 40 00 2d 89 call 20198b4 <.umul> <== NOT EXECUTED
200e294: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
200e298: 82 02 3f ff add %o0, -1, %g1 <== NOT EXECUTED
200e29c: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
200e2a0: 18 80 00 21 bgu 200e324 <IMFS_memfile_get_block_pointer+0xd0><== NOT EXECUTED
200e2a4: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
#if 0
fprintf(stdout, "(d %d) ", block );
fflush(stdout);
#endif
my_block -= FIRST_DOUBLY_INDIRECT;
200e2a8: b2 26 40 10 sub %i1, %l0, %i1 <== NOT EXECUTED
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
200e2ac: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
200e2b0: 40 00 2e 67 call 2019c4c <.urem> <== NOT EXECUTED
200e2b4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
200e2b8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
fflush(stdout);
#endif
my_block -= FIRST_DOUBLY_INDIRECT;
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
200e2bc: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
200e2c0: 40 00 2d b7 call 201999c <.udiv> <== NOT EXECUTED
200e2c4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
p = info->doubly_indirect;
if ( malloc_it ) {
200e2c8: 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;
200e2cc: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
p = info->doubly_indirect;
if ( malloc_it ) {
200e2d0: 02 80 00 42 be 200e3d8 <IMFS_memfile_get_block_pointer+0x184><== NOT EXECUTED
200e2d4: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 <== NOT EXECUTED
if ( !p ) {
200e2d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200e2dc: 02 80 00 5e be 200e454 <IMFS_memfile_get_block_pointer+0x200><== NOT EXECUTED
200e2e0: 01 00 00 00 nop <== NOT EXECUTED
if ( !p )
return 0;
info->doubly_indirect = p;
}
p1 = (block_p *)p[ doubly ];
200e2e4: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED
200e2e8: d0 00 40 10 ld [ %g1 + %l0 ], %o0 <== NOT EXECUTED
if ( !p1 ) {
200e2ec: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200e2f0: 02 80 00 52 be 200e438 <IMFS_memfile_get_block_pointer+0x1e4><== NOT EXECUTED
200e2f4: a0 00 40 10 add %g1, %l0, %l0 <== NOT EXECUTED
if ( !p1 )
return 0;
p[ doubly ] = (block_p) p1;
}
return (block_p *)&p1[ singly ];
200e2f8: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED
200e2fc: 81 c7 e0 08 ret <== NOT EXECUTED
200e300: 91 ea 00 11 restore %o0, %l1, %o0 <== NOT EXECUTED
fprintf(stdout, "(s %d) ", block );
fflush(stdout);
#endif
p = info->indirect;
if ( malloc_it ) {
200e304: 02 80 00 40 be 200e404 <IMFS_memfile_get_block_pointer+0x1b0>
200e308: d0 06 20 58 ld [ %i0 + 0x58 ], %o0
if ( !p ) {
200e30c: 80 a2 20 00 cmp %o0, 0
200e310: 02 80 00 43 be 200e41c <IMFS_memfile_get_block_pointer+0x1c8>
200e314: 01 00 00 00 nop
p2 = memfile_alloc_block();
if ( !p2 )
return 0;
p1[ doubly ] = (block_p) p2;
}
return (block_p *)&p2[ singly ];
200e318: b3 2e 60 02 sll %i1, 2, %i1
200e31c: 81 c7 e0 08 ret
200e320: 91 ea 00 19 restore %o0, %i1, %o0
#endif
/*
* Is the block number in the triply indirect portion?
*/
if ( my_block <= LAST_TRIPLY_INDIRECT ) {
200e324: 90 02 20 01 inc %o0 <== NOT EXECUTED
200e328: 40 00 2d 63 call 20198b4 <.umul> <== NOT EXECUTED
200e32c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
200e330: 90 02 3f ff add %o0, -1, %o0 <== NOT EXECUTED
200e334: 80 a6 40 08 cmp %i1, %o0 <== NOT EXECUTED
200e338: 18 80 00 31 bgu 200e3fc <IMFS_memfile_get_block_pointer+0x1a8><== NOT EXECUTED
200e33c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
my_block -= FIRST_TRIPLY_INDIRECT;
200e340: a2 26 40 11 sub %i1, %l1, %l1 <== NOT EXECUTED
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
200e344: 40 00 2e 42 call 2019c4c <.urem> <== NOT EXECUTED
200e348: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
200e34c: 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;
200e350: b2 10 00 08 mov %o0, %i1 <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
200e354: 40 00 2d 92 call 201999c <.udiv> <== NOT EXECUTED
200e358: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;
200e35c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
200e360: 40 00 2d 8f call 201999c <.udiv> <== NOT EXECUTED
200e364: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
doubly %= IMFS_MEMFILE_BLOCK_SLOTS;
200e368: 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;
200e36c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
doubly %= IMFS_MEMFILE_BLOCK_SLOTS;
200e370: 40 00 2e 37 call 2019c4c <.urem> <== NOT EXECUTED
200e374: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
p = info->triply_indirect;
if ( malloc_it ) {
200e378: 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;
200e37c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
p = info->triply_indirect;
if ( malloc_it ) {
200e380: 02 80 00 3c be 200e470 <IMFS_memfile_get_block_pointer+0x21c><== NOT EXECUTED
200e384: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 <== NOT EXECUTED
if ( !p ) {
200e388: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200e38c: 02 80 00 56 be 200e4e4 <IMFS_memfile_get_block_pointer+0x290><== NOT EXECUTED
200e390: 01 00 00 00 nop <== NOT EXECUTED
if ( !p )
return 0;
info->triply_indirect = p;
}
p1 = (block_p *) p[ triply ];
200e394: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED
200e398: c4 00 40 11 ld [ %g1 + %l1 ], %g2 <== NOT EXECUTED
if ( !p1 ) {
200e39c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
200e3a0: 02 80 00 58 be 200e500 <IMFS_memfile_get_block_pointer+0x2ac><== NOT EXECUTED
200e3a4: a2 00 40 11 add %g1, %l1, %l1 <== NOT EXECUTED
if ( !p1 )
return 0;
p[ triply ] = (block_p) p1;
}
p2 = (block_p *)p1[ doubly ];
200e3a8: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED
200e3ac: d0 00 80 10 ld [ %g2 + %l0 ], %o0 <== NOT EXECUTED
if ( !p2 ) {
200e3b0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200e3b4: 12 bf ff d9 bne 200e318 <IMFS_memfile_get_block_pointer+0xc4><== NOT EXECUTED
200e3b8: a0 00 80 10 add %g2, %l0, %l0 <== NOT EXECUTED
p2 = memfile_alloc_block();
200e3bc: 7f ff ff 99 call 200e220 <memfile_alloc_block> <== NOT EXECUTED
200e3c0: 01 00 00 00 nop <== NOT EXECUTED
if ( !p2 )
200e3c4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200e3c8: 22 80 00 13 be,a 200e414 <IMFS_memfile_get_block_pointer+0x1c0><== NOT EXECUTED
200e3cc: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
p1[ doubly ] = (block_p) p2;
200e3d0: 10 bf ff d2 b 200e318 <IMFS_memfile_get_block_pointer+0xc4><== NOT EXECUTED
200e3d4: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED
}
return (block_p *)&p1[ singly ];
}
if ( !p )
200e3d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200e3dc: 02 80 00 0e be 200e414 <IMFS_memfile_get_block_pointer+0x1c0><== NOT EXECUTED
200e3e0: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
p = (block_p *)p[ doubly ];
200e3e4: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED
200e3e8: 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 ];
200e3ec: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED
if ( !p )
return 0;
p = (block_p *)p[ doubly ];
if ( !p )
200e3f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200e3f4: 12 80 00 08 bne 200e414 <IMFS_memfile_get_block_pointer+0x1c0><== NOT EXECUTED
200e3f8: b0 00 40 11 add %g1, %l1, %i0 <== NOT EXECUTED
/*
* This means the requested block number is out of range.
*/
return 0;
}
200e3fc: 81 c7 e0 08 ret <== NOT EXECUTED
200e400: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
}
if ( !p )
return 0;
return &info->indirect[ my_block ];
200e404: b3 2e 60 02 sll %i1, 2, %i1
info->indirect = p;
}
return &info->indirect[ my_block ];
}
if ( !p )
200e408: 80 a2 20 00 cmp %o0, 0
200e40c: 02 bf ff fc be 200e3fc <IMFS_memfile_get_block_pointer+0x1a8><== NEVER TAKEN
200e410: b0 02 00 19 add %o0, %i1, %i0
/*
* This means the requested block number is out of range.
*/
return 0;
}
200e414: 81 c7 e0 08 ret
200e418: 81 e8 00 00 restore
p = info->indirect;
if ( malloc_it ) {
if ( !p ) {
p = memfile_alloc_block();
200e41c: 7f ff ff 81 call 200e220 <memfile_alloc_block>
200e420: 01 00 00 00 nop
if ( !p )
200e424: 80 a2 20 00 cmp %o0, 0
200e428: 22 bf ff fb be,a 200e414 <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
200e42c: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
info->indirect = p;
200e430: 10 bf ff ba b 200e318 <IMFS_memfile_get_block_pointer+0xc4>
200e434: d0 26 20 58 st %o0, [ %i0 + 0x58 ]
info->doubly_indirect = p;
}
p1 = (block_p *)p[ doubly ];
if ( !p1 ) {
p1 = memfile_alloc_block();
200e438: 7f ff ff 7a call 200e220 <memfile_alloc_block> <== NOT EXECUTED
200e43c: 01 00 00 00 nop <== NOT EXECUTED
if ( !p1 )
200e440: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200e444: 22 bf ff f4 be,a 200e414 <IMFS_memfile_get_block_pointer+0x1c0><== NOT EXECUTED
200e448: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
p[ doubly ] = (block_p) p1;
200e44c: 10 bf ff ab b 200e2f8 <IMFS_memfile_get_block_pointer+0xa4><== NOT EXECUTED
200e450: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED
p = info->doubly_indirect;
if ( malloc_it ) {
if ( !p ) {
p = memfile_alloc_block();
200e454: 7f ff ff 73 call 200e220 <memfile_alloc_block> <== NOT EXECUTED
200e458: 01 00 00 00 nop <== NOT EXECUTED
if ( !p )
200e45c: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED
200e460: 22 bf ff ed be,a 200e414 <IMFS_memfile_get_block_pointer+0x1c0><== NOT EXECUTED
200e464: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
info->doubly_indirect = p;
200e468: 10 bf ff 9f b 200e2e4 <IMFS_memfile_get_block_pointer+0x90><== NOT EXECUTED
200e46c: c2 26 20 5c st %g1, [ %i0 + 0x5c ] <== NOT EXECUTED
p1[ doubly ] = (block_p) p2;
}
return (block_p *)&p2[ singly ];
}
if ( !p )
200e470: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200e474: 02 bf ff e8 be 200e414 <IMFS_memfile_get_block_pointer+0x1c0><== NOT EXECUTED
200e478: 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 ];
200e47c: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED
200e480: c2 00 40 11 ld [ %g1 + %l1 ], %g1 <== NOT EXECUTED
if ( !p1 )
200e484: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200e488: 02 bf ff e3 be 200e414 <IMFS_memfile_get_block_pointer+0x1c0><== NOT EXECUTED
200e48c: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED
return 0;
p2 = (block_p *)p1[ doubly ];
200e490: c2 00 40 10 ld [ %g1 + %l0 ], %g1 <== NOT EXECUTED
if ( !p2 )
return 0;
return (block_p *)&p2[ singly ];
200e494: b3 2e 60 02 sll %i1, 2, %i1 <== NOT EXECUTED
p1 = (block_p *) p[ triply ];
if ( !p1 )
return 0;
p2 = (block_p *)p1[ doubly ];
if ( !p2 )
200e498: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200e49c: 02 bf ff d8 be 200e3fc <IMFS_memfile_get_block_pointer+0x1a8><== NOT EXECUTED
200e4a0: b0 00 40 19 add %g1, %i1, %i0 <== NOT EXECUTED
/*
* This means the requested block number is out of range.
*/
return 0;
}
200e4a4: 81 c7 e0 08 ret <== NOT EXECUTED
200e4a8: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Perform internal consistency checks
*/
assert( the_jnode );
200e4ac: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED
200e4b0: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED
200e4b4: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED
200e4b8: 94 12 a2 b8 or %o2, 0x2b8, %o2 <== NOT EXECUTED
200e4bc: 96 12 e2 00 or %o3, 0x200, %o3 <== NOT EXECUTED
200e4c0: 7f ff f8 8a call 200c6e8 <__assert_func> <== NOT EXECUTED
200e4c4: 92 10 23 88 mov 0x388, %o1 <== NOT EXECUTED
if ( !the_jnode )
return NULL;
assert( the_jnode->type == IMFS_MEMORY_FILE );
200e4c8: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED
200e4cc: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED
200e4d0: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED
200e4d4: 94 12 a2 b8 or %o2, 0x2b8, %o2 <== NOT EXECUTED
200e4d8: 96 12 e2 10 or %o3, 0x210, %o3 <== NOT EXECUTED
200e4dc: 7f ff f8 83 call 200c6e8 <__assert_func> <== NOT EXECUTED
200e4e0: 92 10 23 8c mov 0x38c, %o1 <== NOT EXECUTED
p = info->triply_indirect;
if ( malloc_it ) {
if ( !p ) {
p = memfile_alloc_block();
200e4e4: 7f ff ff 4f call 200e220 <memfile_alloc_block> <== NOT EXECUTED
200e4e8: 01 00 00 00 nop <== NOT EXECUTED
if ( !p )
200e4ec: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED
200e4f0: 22 bf ff c9 be,a 200e414 <IMFS_memfile_get_block_pointer+0x1c0><== NOT EXECUTED
200e4f4: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
info->triply_indirect = p;
200e4f8: 10 bf ff a7 b 200e394 <IMFS_memfile_get_block_pointer+0x140><== NOT EXECUTED
200e4fc: c2 26 20 60 st %g1, [ %i0 + 0x60 ] <== NOT EXECUTED
}
p1 = (block_p *) p[ triply ];
if ( !p1 ) {
p1 = memfile_alloc_block();
200e500: 7f ff ff 48 call 200e220 <memfile_alloc_block> <== NOT EXECUTED
200e504: 01 00 00 00 nop <== NOT EXECUTED
if ( !p1 )
200e508: 84 92 20 00 orcc %o0, 0, %g2 <== NOT EXECUTED
200e50c: 22 bf ff c2 be,a 200e414 <IMFS_memfile_get_block_pointer+0x1c0><== NOT EXECUTED
200e510: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
p[ triply ] = (block_p) p1;
200e514: 10 bf ff a5 b 200e3a8 <IMFS_memfile_get_block_pointer+0x154><== NOT EXECUTED
200e518: c4 24 40 00 st %g2, [ %l1 ] <== NOT EXECUTED
0200efb4 <IMFS_memfile_read>:
IMFS_jnode_t *the_jnode,
off_t start,
unsigned char *destination,
unsigned int length
)
{
200efb4: 9d e3 bf 98 save %sp, -104, %sp
/*
* Perform internal consistency checks
*/
assert( the_jnode );
200efb8: a0 96 20 00 orcc %i0, 0, %l0
IMFS_jnode_t *the_jnode,
off_t start,
unsigned char *destination,
unsigned int length
)
{
200efbc: a4 10 00 19 mov %i1, %l2
/*
* Perform internal consistency checks
*/
assert( the_jnode );
200efc0: 02 80 00 b5 be 200f294 <IMFS_memfile_read+0x2e0> <== NEVER TAKEN
200efc4: a6 10 00 1a mov %i2, %l3
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE ||
200efc8: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
200efcc: 84 00 7f fb add %g1, -5, %g2
200efd0: 80 a0 a0 01 cmp %g2, 1
200efd4: 18 80 00 a8 bgu 200f274 <IMFS_memfile_read+0x2c0> <== NEVER TAKEN
200efd8: 80 a6 e0 00 cmp %i3, 0
/*
* Error checks on arguments
*/
assert( dest );
200efdc: 02 80 00 96 be 200f234 <IMFS_memfile_read+0x280> <== NEVER TAKEN
200efe0: 80 a7 20 00 cmp %i4, 0
/*
* If there is nothing to read, then quick exit.
*/
my_length = length;
if ( !my_length )
200efe4: 02 80 00 86 be 200f1fc <IMFS_memfile_read+0x248> <== NEVER TAKEN
200efe8: 80 a0 60 06 cmp %g1, 6
/*
* Linear files (as created from a tar file are easier to handle
* than block files).
*/
if (the_jnode->type == IMFS_LINEAR_FILE) {
200efec: 02 80 00 5f be 200f168 <IMFS_memfile_read+0x1b4> <== NEVER TAKEN
200eff0: 86 10 20 00 clr %g3
* 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 )
200eff4: c4 04 20 50 ld [ %l0 + 0x50 ], %g2
/*
* 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;
200eff8: 82 10 00 1a mov %i2, %g1
if ( last_byte > the_jnode->info.file.size )
200effc: 80 a0 c0 02 cmp %g3, %g2
200f000: c8 04 20 54 ld [ %l0 + 0x54 ], %g4
200f004: 04 80 00 52 ble 200f14c <IMFS_memfile_read+0x198> <== ALWAYS TAKEN
200f008: 9a 07 00 1a add %i4, %i2, %o5
my_length = the_jnode->info.file.size - start;
200f00c: b8 21 00 01 sub %g4, %g1, %i4 <== NOT EXECUTED
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
200f010: 29 00 80 75 sethi %hi(0x201d400), %l4 <== NOT EXECUTED
200f014: e2 05 23 4c ld [ %l4 + 0x34c ], %l1 ! 201d74c <imfs_memfile_bytes_per_block><== NOT EXECUTED
200f018: 90 10 00 12 mov %l2, %o0
200f01c: ab 3c 60 1f sra %l1, 0x1f, %l5
200f020: 96 10 00 11 mov %l1, %o3
200f024: 94 10 00 15 mov %l5, %o2
200f028: 40 00 2c 9c call 201a298 <__moddi3>
200f02c: 92 10 00 13 mov %l3, %o1
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
200f030: 90 10 00 12 mov %l2, %o0
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
200f034: ac 10 00 09 mov %o1, %l6
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
200f038: 94 10 00 15 mov %l5, %o2
200f03c: 92 10 00 13 mov %l3, %o1
200f040: 40 00 2b af call 2019efc <__divdi3>
200f044: 96 10 00 11 mov %l1, %o3
if ( start_offset ) {
200f048: 80 a5 a0 00 cmp %l6, 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;
200f04c: a4 10 00 09 mov %o1, %l2
if ( start_offset ) {
200f050: aa 10 00 1b mov %i3, %l5
200f054: 02 80 00 14 be 200f0a4 <IMFS_memfile_read+0xf0>
200f058: 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 );
200f05c: 90 10 00 10 mov %l0, %o0
200f060: 7f ff fc 7d call 200e254 <IMFS_memfile_get_block_pointer>
200f064: 94 10 20 00 clr %o2
assert( block_ptr );
200f068: 80 a2 20 00 cmp %o0, 0
200f06c: 02 80 00 92 be 200f2b4 <IMFS_memfile_read+0x300> <== NEVER TAKEN
200f070: a2 24 40 16 sub %l1, %l6, %l1
*/
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;
200f074: 80 a7 00 11 cmp %i4, %l1
200f078: 18 80 00 4f bgu 200f1b4 <IMFS_memfile_read+0x200>
200f07c: b0 10 00 1c mov %i4, %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 );
200f080: d2 02 00 00 ld [ %o0 ], %o1
200f084: 94 10 00 18 mov %i0, %o2
200f088: 90 10 00 1b mov %i3, %o0
200f08c: 40 00 07 2d call 2010d40 <memcpy>
200f090: 92 02 40 16 add %o1, %l6, %o1
dest += to_copy;
block++;
my_length -= to_copy;
200f094: e2 05 23 4c ld [ %l4 + 0x34c ], %l1
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 );
dest += to_copy;
200f098: aa 06 c0 18 add %i3, %i0, %l5
block++;
200f09c: a4 04 a0 01 inc %l2
my_length -= to_copy;
200f0a0: b8 27 00 18 sub %i4, %i0, %i4
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
200f0a4: 80 a7 00 11 cmp %i4, %l1
200f0a8: 0a 80 00 15 bcs 200f0fc <IMFS_memfile_read+0x148>
200f0ac: 80 a7 20 00 cmp %i4, 0
200f0b0: a8 15 23 4c or %l4, 0x34c, %l4
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
200f0b4: 90 10 00 10 mov %l0, %o0
200f0b8: 92 10 00 12 mov %l2, %o1
200f0bc: 7f ff fc 66 call 200e254 <IMFS_memfile_get_block_pointer>
200f0c0: 94 10 20 00 clr %o2
assert( block_ptr );
200f0c4: 80 a2 20 00 cmp %o0, 0
200f0c8: 02 80 00 53 be 200f214 <IMFS_memfile_read+0x260> <== NEVER TAKEN
200f0cc: 94 10 00 11 mov %l1, %o2
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], to_copy );
200f0d0: d2 02 00 00 ld [ %o0 ], %o1
200f0d4: 40 00 07 1b call 2010d40 <memcpy>
200f0d8: 90 10 00 15 mov %l5, %o0
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
200f0dc: c2 05 00 00 ld [ %l4 ], %g1
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], to_copy );
dest += to_copy;
block++;
my_length -= to_copy;
200f0e0: b8 27 00 11 sub %i4, %l1, %i4
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;
200f0e4: aa 05 40 11 add %l5, %l1, %l5
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
200f0e8: 80 a0 40 1c cmp %g1, %i4
assert( block_ptr );
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], to_copy );
dest += to_copy;
block++;
200f0ec: a4 04 a0 01 inc %l2
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
200f0f0: 08 bf ff f1 bleu 200f0b4 <IMFS_memfile_read+0x100>
200f0f4: b0 06 00 11 add %i0, %l1, %i0
* Phase 3: possibly the first part of one block
*/
assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );
if ( my_length ) {
200f0f8: 80 a7 20 00 cmp %i4, 0
200f0fc: 02 80 00 0e be 200f134 <IMFS_memfile_read+0x180>
200f100: 90 07 bf f8 add %fp, -8, %o0
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
200f104: 92 10 00 12 mov %l2, %o1
200f108: 90 10 00 10 mov %l0, %o0
200f10c: 7f ff fc 52 call 200e254 <IMFS_memfile_get_block_pointer>
200f110: 94 10 20 00 clr %o2
assert( block_ptr );
200f114: 80 a2 20 00 cmp %o0, 0
200f118: 02 80 00 4f be 200f254 <IMFS_memfile_read+0x2a0> <== NEVER TAKEN
200f11c: b0 06 00 1c add %i0, %i4, %i0
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], my_length );
200f120: d2 02 00 00 ld [ %o0 ], %o1
200f124: 90 10 00 15 mov %l5, %o0
200f128: 40 00 07 06 call 2010d40 <memcpy>
200f12c: 94 10 00 1c mov %i4, %o2
copied += my_length;
}
IMFS_update_atime( the_jnode );
200f130: 90 07 bf f8 add %fp, -8, %o0
200f134: 7f ff cf 19 call 2002d98 <gettimeofday>
200f138: 92 10 20 00 clr %o1
200f13c: c2 07 bf f8 ld [ %fp + -8 ], %g1
200f140: c2 24 20 40 st %g1, [ %l0 + 0x40 ]
return copied;
}
200f144: 81 c7 e0 08 ret
200f148: 81 e8 00 00 restore
* 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 )
200f14c: 12 bf ff b2 bne 200f014 <IMFS_memfile_read+0x60> <== NEVER TAKEN
200f150: 29 00 80 75 sethi %hi(0x201d400), %l4
200f154: 80 a3 40 04 cmp %o5, %g4
200f158: 08 bf ff b0 bleu 200f018 <IMFS_memfile_read+0x64>
200f15c: e2 05 23 4c ld [ %l4 + 0x34c ], %l1
my_length = the_jnode->info.file.size - start;
200f160: 10 bf ff ae b 200f018 <IMFS_memfile_read+0x64>
200f164: b8 21 00 01 sub %g4, %g1, %i4
if (the_jnode->type == IMFS_LINEAR_FILE) {
unsigned char *file_ptr;
file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;
if (my_length > (the_jnode->info.linearfile.size - start))
200f168: d8 1c 20 50 ldd [ %l0 + 0x50 ], %o4 <== NOT EXECUTED
200f16c: 82 10 20 00 clr %g1 <== NOT EXECUTED
200f170: 86 a3 40 1a subcc %o5, %i2, %g3 <== NOT EXECUTED
200f174: 84 63 00 19 subx %o4, %i1, %g2 <== NOT EXECUTED
200f178: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
200f17c: 04 80 00 10 ble 200f1bc <IMFS_memfile_read+0x208> <== NOT EXECUTED
200f180: d2 04 20 58 ld [ %l0 + 0x58 ], %o1 <== NOT EXECUTED
my_length = the_jnode->info.linearfile.size - start;
200f184: b0 23 40 13 sub %o5, %l3, %i0 <== NOT EXECUTED
memcpy(dest, &file_ptr[start], my_length);
200f188: 92 02 40 13 add %o1, %l3, %o1 <== NOT EXECUTED
200f18c: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
200f190: 40 00 06 ec call 2010d40 <memcpy> <== NOT EXECUTED
200f194: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
IMFS_update_atime( the_jnode );
200f198: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED
200f19c: 7f ff ce ff call 2002d98 <gettimeofday> <== NOT EXECUTED
200f1a0: 92 10 20 00 clr %o1 <== NOT EXECUTED
200f1a4: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
200f1a8: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED
return my_length;
200f1ac: 81 c7 e0 08 ret <== NOT EXECUTED
200f1b0: 81 e8 00 00 restore <== 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;
200f1b4: 10 bf ff b3 b 200f080 <IMFS_memfile_read+0xcc>
200f1b8: b0 10 00 11 mov %l1, %i0
if (the_jnode->type == IMFS_LINEAR_FILE) {
unsigned char *file_ptr;
file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;
if (my_length > (the_jnode->info.linearfile.size - start))
200f1bc: 12 80 00 04 bne 200f1cc <IMFS_memfile_read+0x218> <== NOT EXECUTED
200f1c0: 80 a7 00 03 cmp %i4, %g3 <== NOT EXECUTED
200f1c4: 38 bf ff f1 bgu,a 200f188 <IMFS_memfile_read+0x1d4> <== NOT EXECUTED
200f1c8: b0 23 40 13 sub %o5, %l3, %i0 <== NOT EXECUTED
my_length = the_jnode->info.linearfile.size - start;
memcpy(dest, &file_ptr[start], my_length);
200f1cc: 92 02 40 13 add %o1, %l3, %o1 <== NOT EXECUTED
if (the_jnode->type == IMFS_LINEAR_FILE) {
unsigned char *file_ptr;
file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;
if (my_length > (the_jnode->info.linearfile.size - start))
200f1d0: b0 10 00 1c mov %i4, %i0 <== NOT EXECUTED
my_length = the_jnode->info.linearfile.size - start;
memcpy(dest, &file_ptr[start], my_length);
200f1d4: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
200f1d8: 40 00 06 da call 2010d40 <memcpy> <== NOT EXECUTED
200f1dc: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
IMFS_update_atime( the_jnode );
200f1e0: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED
200f1e4: 7f ff ce ed call 2002d98 <gettimeofday> <== NOT EXECUTED
200f1e8: 92 10 20 00 clr %o1 <== NOT EXECUTED
200f1ec: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
200f1f0: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED
return my_length;
200f1f4: 81 c7 e0 08 ret <== NOT EXECUTED
200f1f8: 81 e8 00 00 restore <== NOT EXECUTED
* If there is nothing to read, then quick exit.
*/
my_length = length;
if ( !my_length )
rtems_set_errno_and_return_minus_one( EINVAL );
200f1fc: 40 00 04 95 call 2010450 <__errno> <== NOT EXECUTED
200f200: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200f204: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
200f208: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200f20c: 81 c7 e0 08 ret <== NOT EXECUTED
200f210: 81 e8 00 00 restore <== NOT EXECUTED
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
200f214: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED
200f218: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED
200f21c: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED
200f220: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED
200f224: 94 12 a2 f0 or %o2, 0x2f0, %o2 <== NOT EXECUTED
200f228: 96 12 e2 48 or %o3, 0x248, %o3 <== NOT EXECUTED
200f22c: 7f ff f5 2f call 200c6e8 <__assert_func> <== NOT EXECUTED
200f230: 92 10 22 a7 mov 0x2a7, %o1 <== NOT EXECUTED
/*
* Error checks on arguments
*/
assert( dest );
200f234: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED
200f238: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED
200f23c: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED
200f240: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED
200f244: 94 12 a2 f0 or %o2, 0x2f0, %o2 <== NOT EXECUTED
200f248: 96 12 e2 b0 or %o3, 0x2b0, %o3 <== NOT EXECUTED
200f24c: 7f ff f5 27 call 200c6e8 <__assert_func> <== NOT EXECUTED
200f250: 92 10 22 5a mov 0x25a, %o1 <== NOT EXECUTED
assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );
if ( my_length ) {
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
200f254: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED
200f258: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED
200f25c: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED
200f260: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED
200f264: 94 12 a2 f0 or %o2, 0x2f0, %o2 <== NOT EXECUTED
200f268: 96 12 e2 48 or %o3, 0x248, %o3 <== NOT EXECUTED
200f26c: 7f ff f5 1f call 200c6e8 <__assert_func> <== NOT EXECUTED
200f270: 92 10 22 b9 mov 0x2b9, %o1 <== NOT EXECUTED
assert( the_jnode );
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE ||
200f274: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED
200f278: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED
200f27c: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED
200f280: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED
200f284: 94 12 a2 f0 or %o2, 0x2f0, %o2 <== NOT EXECUTED
200f288: 96 12 e2 60 or %o3, 0x260, %o3 <== NOT EXECUTED
200f28c: 7f ff f5 17 call 200c6e8 <__assert_func> <== NOT EXECUTED
200f290: 92 10 22 51 mov 0x251, %o1 <== NOT EXECUTED
/*
* Perform internal consistency checks
*/
assert( the_jnode );
200f294: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED
200f298: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED
200f29c: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED
200f2a0: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED
200f2a4: 94 12 a2 f0 or %o2, 0x2f0, %o2 <== NOT EXECUTED
200f2a8: 96 12 e2 00 or %o3, 0x200, %o3 <== NOT EXECUTED
200f2ac: 7f ff f5 0f call 200c6e8 <__assert_func> <== NOT EXECUTED
200f2b0: 92 10 22 4c mov 0x24c, %o1 <== NOT EXECUTED
if ( start_offset ) {
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;
if ( to_copy > my_length )
to_copy = my_length;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
200f2b4: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED
200f2b8: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED
200f2bc: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED
200f2c0: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED
200f2c4: 94 12 a2 f0 or %o2, 0x2f0, %o2 <== NOT EXECUTED
200f2c8: 96 12 e2 48 or %o3, 0x248, %o3 <== NOT EXECUTED
200f2cc: 7f ff f5 07 call 200c6e8 <__assert_func> <== NOT EXECUTED
200f2d0: 92 10 22 96 mov 0x296, %o1 <== NOT EXECUTED
0200e5fc <IMFS_memfile_remove>:
*/
int IMFS_memfile_remove(
IMFS_jnode_t *the_jnode
)
{
200e5fc: 9d e3 bf a0 save %sp, -96, %sp
/*
* Perform internal consistency checks
*/
assert( the_jnode );
200e600: 80 a6 20 00 cmp %i0, 0
200e604: 02 80 00 62 be 200e78c <IMFS_memfile_remove+0x190> <== NEVER TAKEN
200e608: 11 00 80 71 sethi %hi(0x201c400), %o0
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
200e60c: c2 06 20 4c ld [ %i0 + 0x4c ], %g1
200e610: 80 a0 60 05 cmp %g1, 5
200e614: 12 80 00 65 bne 200e7a8 <IMFS_memfile_remove+0x1ac> <== NEVER TAKEN
200e618: 23 00 80 75 sethi %hi(0x201d400), %l1
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
200e61c: c2 06 20 58 ld [ %i0 + 0x58 ], %g1
/*
* 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;
200e620: e6 04 63 4c ld [ %l1 + 0x34c ], %l3
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
200e624: 80 a0 60 00 cmp %g1, 0
200e628: 02 80 00 05 be 200e63c <IMFS_memfile_remove+0x40>
200e62c: a7 34 e0 02 srl %l3, 2, %l3
if ( info->indirect ) {
memfile_free_blocks_in_table( &info->indirect, to_free );
200e630: 90 06 20 58 add %i0, 0x58, %o0
200e634: 7f ff ff ba call 200e51c <memfile_free_blocks_in_table>
200e638: 92 10 00 13 mov %l3, %o1
}
if ( info->doubly_indirect ) {
200e63c: c2 06 20 5c ld [ %i0 + 0x5c ], %g1
200e640: 80 a0 60 00 cmp %g1, 0
200e644: 02 80 00 1b be 200e6b0 <IMFS_memfile_remove+0xb4> <== ALWAYS TAKEN
200e648: c4 04 63 4c ld [ %l1 + 0x34c ], %g2
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
200e64c: 85 30 a0 02 srl %g2, 2, %g2 <== NOT EXECUTED
200e650: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
200e654: 02 80 00 14 be 200e6a4 <IMFS_memfile_remove+0xa8> <== NOT EXECUTED
200e658: 90 10 20 00 clr %o0 <== NOT EXECUTED
200e65c: 25 00 80 75 sethi %hi(0x201d400), %l2 <== NOT EXECUTED
200e660: a4 14 a3 4c or %l2, 0x34c, %l2 ! 201d74c <imfs_memfile_bytes_per_block><== NOT EXECUTED
200e664: 10 80 00 03 b 200e670 <IMFS_memfile_remove+0x74> <== NOT EXECUTED
200e668: a0 10 20 00 clr %l0 <== NOT EXECUTED
200e66c: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 <== NOT EXECUTED
if ( info->doubly_indirect[i] ) {
200e670: 91 2a 20 02 sll %o0, 2, %o0 <== NOT EXECUTED
200e674: c4 00 40 08 ld [ %g1 + %o0 ], %g2 <== NOT EXECUTED
200e678: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
200e67c: 02 80 00 04 be 200e68c <IMFS_memfile_remove+0x90> <== NOT EXECUTED
200e680: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED
memfile_free_blocks_in_table(
200e684: 7f ff ff a6 call 200e51c <memfile_free_blocks_in_table> <== NOT EXECUTED
200e688: 92 10 00 13 mov %l3, %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++ ) {
200e68c: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED
200e690: a0 04 20 01 inc %l0 <== NOT EXECUTED
200e694: 83 30 60 02 srl %g1, 2, %g1 <== NOT EXECUTED
200e698: 80 a0 40 10 cmp %g1, %l0 <== NOT EXECUTED
200e69c: 18 bf ff f4 bgu 200e66c <IMFS_memfile_remove+0x70> <== NOT EXECUTED
200e6a0: 90 10 00 10 mov %l0, %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 );
200e6a4: 90 06 20 5c add %i0, 0x5c, %o0 <== NOT EXECUTED
200e6a8: 7f ff ff 9d call 200e51c <memfile_free_blocks_in_table> <== NOT EXECUTED
200e6ac: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
}
if ( info->triply_indirect ) {
200e6b0: d0 06 20 60 ld [ %i0 + 0x60 ], %o0
200e6b4: 80 a2 20 00 cmp %o0, 0
200e6b8: 02 80 00 33 be 200e784 <IMFS_memfile_remove+0x188> <== ALWAYS TAKEN
200e6bc: c2 04 63 4c ld [ %l1 + 0x34c ], %g1
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
200e6c0: 83 30 60 02 srl %g1, 2, %g1 <== NOT EXECUTED
200e6c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200e6c8: 22 80 00 2d be,a 200e77c <IMFS_memfile_remove+0x180> <== NOT EXECUTED
200e6cc: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED
p = (block_p *) info->triply_indirect[i];
200e6d0: e2 02 00 00 ld [ %o0 ], %l1 <== NOT EXECUTED
if ( !p ) /* ensure we have a valid pointer */
200e6d4: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
200e6d8: 22 80 00 29 be,a 200e77c <IMFS_memfile_remove+0x180> <== NOT EXECUTED
200e6dc: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED
200e6e0: 25 00 80 75 sethi %hi(0x201d400), %l2 <== NOT EXECUTED
200e6e4: aa 10 20 00 clr %l5 <== NOT EXECUTED
200e6e8: a4 14 a3 4c or %l2, 0x34c, %l2 <== NOT EXECUTED
200e6ec: a8 10 20 00 clr %l4 <== NOT EXECUTED
break;
for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {
200e6f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200e6f4: 02 80 00 13 be 200e740 <IMFS_memfile_remove+0x144> <== NOT EXECUTED
200e6f8: 90 02 00 15 add %o0, %l5, %o0 <== NOT EXECUTED
200e6fc: 90 10 20 00 clr %o0 <== NOT EXECUTED
200e700: a0 10 20 00 clr %l0 <== NOT EXECUTED
if ( p[j] ) {
200e704: 91 2a 20 02 sll %o0, 2, %o0 <== NOT EXECUTED
200e708: c2 04 40 08 ld [ %l1 + %o0 ], %g1 <== NOT EXECUTED
200e70c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200e710: 02 80 00 04 be 200e720 <IMFS_memfile_remove+0x124> <== NOT EXECUTED
200e714: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
200e718: 7f ff ff 81 call 200e51c <memfile_free_blocks_in_table> <== NOT EXECUTED
200e71c: 92 10 00 13 mov %l3, %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++ ) {
200e720: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED
200e724: a0 04 20 01 inc %l0 <== NOT EXECUTED
200e728: 83 30 60 02 srl %g1, 2, %g1 <== NOT EXECUTED
200e72c: 80 a0 40 10 cmp %g1, %l0 <== NOT EXECUTED
200e730: 18 bf ff f5 bgu 200e704 <IMFS_memfile_remove+0x108> <== NOT EXECUTED
200e734: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
200e738: d0 06 20 60 ld [ %i0 + 0x60 ], %o0 <== NOT EXECUTED
if ( p[j] ) {
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
}
}
memfile_free_blocks_in_table(
200e73c: 90 02 00 15 add %o0, %l5, %o0 <== NOT EXECUTED
200e740: 7f ff ff 77 call 200e51c <memfile_free_blocks_in_table> <== NOT EXECUTED
200e744: 92 10 00 13 mov %l3, %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++ ) {
200e748: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED
200e74c: a8 05 20 01 inc %l4 <== NOT EXECUTED
200e750: 83 30 60 02 srl %g1, 2, %g1 <== NOT EXECUTED
200e754: 80 a0 40 14 cmp %g1, %l4 <== NOT EXECUTED
200e758: 08 80 00 09 bleu 200e77c <IMFS_memfile_remove+0x180> <== NOT EXECUTED
200e75c: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED
p = (block_p *) info->triply_indirect[i];
200e760: d0 06 20 60 ld [ %i0 + 0x60 ], %o0 <== NOT EXECUTED
if ( !p ) /* ensure we have a valid pointer */
200e764: ab 2d 20 02 sll %l4, 2, %l5 <== NOT EXECUTED
}
if ( info->triply_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
p = (block_p *) info->triply_indirect[i];
200e768: e2 02 00 15 ld [ %o0 + %l5 ], %l1 <== NOT EXECUTED
if ( !p ) /* ensure we have a valid pointer */
200e76c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
200e770: 12 bf ff e1 bne 200e6f4 <IMFS_memfile_remove+0xf8> <== NOT EXECUTED
200e774: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
}
}
memfile_free_blocks_in_table(
(block_p **)&info->triply_indirect[i], to_free );
}
memfile_free_blocks_in_table(
200e778: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED
200e77c: 7f ff ff 68 call 200e51c <memfile_free_blocks_in_table> <== NOT EXECUTED
200e780: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
(block_p **)&info->triply_indirect, to_free );
}
return 0;
}
200e784: 81 c7 e0 08 ret
200e788: 91 e8 20 00 restore %g0, 0, %o0
/*
* Perform internal consistency checks
*/
assert( the_jnode );
200e78c: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED
200e790: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED
200e794: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED
200e798: 94 12 a3 08 or %o2, 0x308, %o2 <== NOT EXECUTED
200e79c: 96 12 e2 00 or %o3, 0x200, %o3 <== NOT EXECUTED
200e7a0: 7f ff f7 d2 call 200c6e8 <__assert_func> <== NOT EXECUTED
200e7a4: 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 );
200e7a8: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED
200e7ac: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED
200e7b0: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED
200e7b4: 94 12 a3 08 or %o2, 0x308, %o2 <== NOT EXECUTED
200e7b8: 96 12 e2 10 or %o3, 0x210, %o3 <== NOT EXECUTED
200e7bc: 7f ff f7 cb call 200c6e8 <__assert_func> <== NOT EXECUTED
200e7c0: 92 10 21 f2 mov 0x1f2, %o1 <== NOT EXECUTED
0200e5a0 <IMFS_memfile_remove_block>:
MEMFILE_STATIC int IMFS_memfile_remove_block(
IMFS_jnode_t *the_jnode,
unsigned int block
)
{
200e5a0: 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 );
200e5a4: 94 10 20 00 clr %o2 <== NOT EXECUTED
200e5a8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
200e5ac: 7f ff ff 2a call 200e254 <IMFS_memfile_get_block_pointer> <== NOT EXECUTED
200e5b0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
assert( block_ptr );
200e5b4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200e5b8: 02 80 00 08 be 200e5d8 <IMFS_memfile_remove_block+0x38> <== NOT EXECUTED
200e5bc: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
if ( block_ptr ) {
ptr = *block_ptr;
200e5c0: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED
*block_ptr = 0;
200e5c4: c0 22 00 00 clr [ %o0 ] <== NOT EXECUTED
memfile_free_block( ptr );
200e5c8: 7f ff ff 0d call 200e1fc <memfile_free_block> <== NOT EXECUTED
200e5cc: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
}
return 1;
}
200e5d0: 81 c7 e0 08 ret <== NOT EXECUTED
200e5d4: 81 e8 00 00 restore <== NOT EXECUTED
{
block_p *block_ptr;
block_p ptr;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
200e5d8: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED
200e5dc: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED
200e5e0: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED
200e5e4: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED
200e5e8: 94 12 a3 40 or %o2, 0x340, %o2 <== NOT EXECUTED
200e5ec: 96 12 e2 48 or %o3, 0x248, %o3 <== NOT EXECUTED
200e5f0: 7f ff f8 3e call 200c6e8 <__assert_func> <== NOT EXECUTED
200e5f4: 92 10 21 96 mov 0x196, %o1 <== NOT EXECUTED
0200ec10 <IMFS_memfile_write>:
IMFS_jnode_t *the_jnode,
off_t start,
const unsigned char *source,
unsigned int length
)
{
200ec10: 9d e3 bf 98 save %sp, -104, %sp
/*
* Perform internal consistency checks
*/
assert( the_jnode );
200ec14: a0 96 20 00 orcc %i0, 0, %l0
200ec18: 02 80 00 8e be 200ee50 <IMFS_memfile_write+0x240> <== NEVER TAKEN
200ec1c: 11 00 80 71 sethi %hi(0x201c400), %o0
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
200ec20: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
200ec24: 80 a0 60 05 cmp %g1, 5
200ec28: 12 80 00 83 bne 200ee34 <IMFS_memfile_write+0x224> <== NEVER TAKEN
200ec2c: 80 a6 e0 00 cmp %i3, 0
/*
* Error check arguments
*/
assert( source );
200ec30: 02 80 00 9f be 200eeac <IMFS_memfile_write+0x29c> <== NEVER TAKEN
200ec34: 80 a7 20 00 cmp %i4, 0
/*
* If there is nothing to write, then quick exit.
*/
my_length = length;
if ( !my_length )
200ec38: 02 80 00 71 be 200edfc <IMFS_memfile_write+0x1ec> <== NEVER TAKEN
200ec3c: 01 00 00 00 nop
* 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 ) {
200ec40: c2 04 20 50 ld [ %l0 + 0x50 ], %g1
200ec44: 80 a0 60 00 cmp %g1, 0
200ec48: 06 80 00 57 bl 200eda4 <IMFS_memfile_write+0x194> <== NEVER TAKEN
200ec4c: 94 07 00 1a add %i4, %i2, %o2
200ec50: 80 a0 60 00 cmp %g1, 0
200ec54: 22 80 00 51 be,a 200ed98 <IMFS_memfile_write+0x188> <== ALWAYS TAKEN
200ec58: c2 04 20 54 ld [ %l0 + 0x54 ], %g1
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
200ec5c: 25 00 80 75 sethi %hi(0x201d400), %l2 <== NOT EXECUTED
200ec60: e2 04 a3 4c ld [ %l2 + 0x34c ], %l1 ! 201d74c <imfs_memfile_bytes_per_block>
200ec64: 90 10 00 19 mov %i1, %o0
200ec68: a7 3c 60 1f sra %l1, 0x1f, %l3
200ec6c: 96 10 00 11 mov %l1, %o3
200ec70: 94 10 00 13 mov %l3, %o2
200ec74: 40 00 2d 89 call 201a298 <__moddi3>
200ec78: 92 10 00 1a mov %i2, %o1
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
200ec7c: 94 10 00 13 mov %l3, %o2
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
200ec80: a8 10 00 09 mov %o1, %l4
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
200ec84: 90 10 00 19 mov %i1, %o0
200ec88: 92 10 00 1a mov %i2, %o1
200ec8c: 40 00 2c 9c call 2019efc <__divdi3>
200ec90: 96 10 00 11 mov %l1, %o3
if ( start_offset ) {
200ec94: b0 10 20 00 clr %i0
200ec98: 80 a5 20 00 cmp %l4, 0
200ec9c: 12 80 00 2d bne 200ed50 <IMFS_memfile_write+0x140>
200eca0: a6 10 00 09 mov %o1, %l3
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
200eca4: 80 a7 00 11 cmp %i4, %l1
200eca8: 0a 80 00 15 bcs 200ecfc <IMFS_memfile_write+0xec>
200ecac: 80 a7 20 00 cmp %i4, 0
200ecb0: a4 14 a3 4c or %l2, 0x34c, %l2
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
200ecb4: 90 10 00 10 mov %l0, %o0
200ecb8: 92 10 00 13 mov %l3, %o1
200ecbc: 7f ff fd 66 call 200e254 <IMFS_memfile_get_block_pointer>
200ecc0: 94 10 20 00 clr %o2
assert( block_ptr );
200ecc4: 80 a2 20 00 cmp %o0, 0
200ecc8: 02 80 00 53 be 200ee14 <IMFS_memfile_write+0x204> <== NEVER TAKEN
200eccc: 92 10 00 1b mov %i3, %o1
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 );
200ecd0: d0 02 00 00 ld [ %o0 ], %o0
200ecd4: 40 00 08 1b call 2010d40 <memcpy>
200ecd8: 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 ) {
200ecdc: c2 04 80 00 ld [ %l2 ], %g1
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;
block++;
my_length -= to_copy;
200ece0: b8 27 00 11 sub %i4, %l1, %i4
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;
200ece4: b6 06 c0 11 add %i3, %l1, %i3
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
200ece8: 80 a0 40 1c cmp %g1, %i4
#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;
block++;
200ecec: a6 04 e0 01 inc %l3
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
200ecf0: 08 bf ff f1 bleu 200ecb4 <IMFS_memfile_write+0xa4>
200ecf4: b0 06 00 11 add %i0, %l1, %i0
*/
assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );
to_copy = my_length;
if ( my_length ) {
200ecf8: 80 a7 20 00 cmp %i4, 0
200ecfc: 02 80 00 0e be 200ed34 <IMFS_memfile_write+0x124>
200ed00: 90 07 bf f8 add %fp, -8, %o0
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
200ed04: 92 10 00 13 mov %l3, %o1
200ed08: 90 10 00 10 mov %l0, %o0
200ed0c: 7f ff fd 52 call 200e254 <IMFS_memfile_get_block_pointer>
200ed10: 94 10 20 00 clr %o2
assert( block_ptr );
200ed14: 80 a2 20 00 cmp %o0, 0
200ed18: 02 80 00 5d be 200ee8c <IMFS_memfile_write+0x27c> <== NEVER TAKEN
200ed1c: 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 );
200ed20: d0 02 00 00 ld [ %o0 ], %o0
200ed24: 92 10 00 1b mov %i3, %o1
200ed28: 40 00 08 06 call 2010d40 <memcpy>
200ed2c: 94 10 00 1c mov %i4, %o2
my_length = 0;
copied += to_copy;
}
IMFS_mtime_ctime_update( the_jnode );
200ed30: 90 07 bf f8 add %fp, -8, %o0
200ed34: 7f ff d0 19 call 2002d98 <gettimeofday>
200ed38: 92 10 20 00 clr %o1
200ed3c: c2 07 bf f8 ld [ %fp + -8 ], %g1
200ed40: c2 24 20 48 st %g1, [ %l0 + 0x48 ]
200ed44: c2 24 20 44 st %g1, [ %l0 + 0x44 ]
return copied;
}
200ed48: 81 c7 e0 08 ret
200ed4c: 81 e8 00 00 restore
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
if ( start_offset ) {
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;
if ( to_copy > my_length )
to_copy = my_length;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
200ed50: 90 10 00 10 mov %l0, %o0
200ed54: 7f ff fd 40 call 200e254 <IMFS_memfile_get_block_pointer>
200ed58: 94 10 20 00 clr %o2
assert( block_ptr );
200ed5c: 80 a2 20 00 cmp %o0, 0
200ed60: 02 80 00 43 be 200ee6c <IMFS_memfile_write+0x25c> <== NEVER TAKEN
200ed64: b0 24 40 14 sub %l1, %l4, %i0
*/
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;
200ed68: 80 a6 00 1c cmp %i0, %i4
200ed6c: 18 80 00 1a bgu 200edd4 <IMFS_memfile_write+0x1c4>
200ed70: d0 02 00 00 ld [ %o0 ], %o0
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 );
200ed74: 92 10 00 1b mov %i3, %o1
200ed78: 90 02 00 14 add %o0, %l4, %o0
200ed7c: 94 10 00 18 mov %i0, %o2
200ed80: 40 00 07 f0 call 2010d40 <memcpy>
200ed84: b6 06 c0 18 add %i3, %i0, %i3
src += to_copy;
block++;
200ed88: a6 04 e0 01 inc %l3
my_length -= to_copy;
copied += to_copy;
200ed8c: e2 04 a3 4c ld [ %l2 + 0x34c ], %l1
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 );
src += to_copy;
block++;
my_length -= to_copy;
200ed90: 10 bf ff c5 b 200eca4 <IMFS_memfile_write+0x94>
200ed94: b8 27 00 18 sub %i4, %i0, %i4
* 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 ) {
200ed98: 80 a0 40 0a cmp %g1, %o2
200ed9c: 1a bf ff b1 bcc 200ec60 <IMFS_memfile_write+0x50> <== NEVER TAKEN
200eda0: 25 00 80 75 sethi %hi(0x201d400), %l2
status = IMFS_memfile_extend( the_jnode, last_byte );
200eda4: 90 10 00 10 mov %l0, %o0
200eda8: 7f ff fe eb call 200e954 <IMFS_memfile_extend>
200edac: 92 10 20 00 clr %o1
if ( status )
200edb0: 80 a2 20 00 cmp %o0, 0
200edb4: 02 bf ff ab be 200ec60 <IMFS_memfile_write+0x50> <== ALWAYS TAKEN
200edb8: 25 00 80 75 sethi %hi(0x201d400), %l2
rtems_set_errno_and_return_minus_one( ENOSPC );
200edbc: 40 00 05 a5 call 2010450 <__errno> <== NOT EXECUTED
200edc0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200edc4: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED
200edc8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200edcc: 81 c7 e0 08 ret <== NOT EXECUTED
200edd0: 81 e8 00 00 restore <== 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;
200edd4: b0 10 00 1c mov %i4, %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 );
200edd8: 92 10 00 1b mov %i3, %o1
200eddc: 90 02 00 14 add %o0, %l4, %o0
200ede0: 94 10 00 18 mov %i0, %o2
200ede4: 40 00 07 d7 call 2010d40 <memcpy>
200ede8: b6 06 c0 18 add %i3, %i0, %i3
src += to_copy;
block++;
200edec: a6 04 e0 01 inc %l3
my_length -= to_copy;
copied += to_copy;
200edf0: e2 04 a3 4c ld [ %l2 + 0x34c ], %l1
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 );
src += to_copy;
block++;
my_length -= to_copy;
200edf4: 10 bf ff ac b 200eca4 <IMFS_memfile_write+0x94>
200edf8: b8 27 00 18 sub %i4, %i0, %i4
* If there is nothing to write, then quick exit.
*/
my_length = length;
if ( !my_length )
rtems_set_errno_and_return_minus_one( EINVAL );
200edfc: 40 00 05 95 call 2010450 <__errno> <== NOT EXECUTED
200ee00: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200ee04: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
200ee08: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200ee0c: 81 c7 e0 08 ret <== NOT EXECUTED
200ee10: 81 e8 00 00 restore <== NOT EXECUTED
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
200ee14: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED
200ee18: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED
200ee1c: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED
200ee20: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED
200ee24: 94 12 a2 d8 or %o2, 0x2d8, %o2 <== NOT EXECUTED
200ee28: 96 12 e2 48 or %o3, 0x248, %o3 <== NOT EXECUTED
200ee2c: 7f ff f6 2f call 200c6e8 <__assert_func> <== NOT EXECUTED
200ee30: 92 10 23 30 mov 0x330, %o1 <== NOT EXECUTED
assert( the_jnode );
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
200ee34: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED
200ee38: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED
200ee3c: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED
200ee40: 94 12 a2 d8 or %o2, 0x2d8, %o2 <== NOT EXECUTED
200ee44: 96 12 e2 10 or %o3, 0x210, %o3 <== NOT EXECUTED
200ee48: 7f ff f6 28 call 200c6e8 <__assert_func> <== NOT EXECUTED
200ee4c: 92 10 22 e7 mov 0x2e7, %o1 <== NOT EXECUTED
/*
* Perform internal consistency checks
*/
assert( the_jnode );
200ee50: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED
200ee54: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED
200ee58: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED
200ee5c: 94 12 a2 d8 or %o2, 0x2d8, %o2 <== NOT EXECUTED
200ee60: 96 12 e2 00 or %o3, 0x200, %o3 <== NOT EXECUTED
200ee64: 7f ff f6 21 call 200c6e8 <__assert_func> <== NOT EXECUTED
200ee68: 92 10 22 e3 mov 0x2e3, %o1 <== NOT EXECUTED
if ( start_offset ) {
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;
if ( to_copy > my_length )
to_copy = my_length;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
200ee6c: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED
200ee70: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED
200ee74: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED
200ee78: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED
200ee7c: 94 12 a2 d8 or %o2, 0x2d8, %o2 <== NOT EXECUTED
200ee80: 96 12 e2 48 or %o3, 0x248, %o3 <== NOT EXECUTED
200ee84: 7f ff f6 19 call 200c6e8 <__assert_func> <== NOT EXECUTED
200ee88: 92 10 23 1c mov 0x31c, %o1 <== NOT EXECUTED
assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );
to_copy = my_length;
if ( my_length ) {
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
200ee8c: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED
200ee90: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED
200ee94: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED
200ee98: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED
200ee9c: 94 12 a2 d8 or %o2, 0x2d8, %o2 <== NOT EXECUTED
200eea0: 96 12 e2 48 or %o3, 0x248, %o3 <== NOT EXECUTED
200eea4: 7f ff f6 11 call 200c6e8 <__assert_func> <== NOT EXECUTED
200eea8: 92 10 23 46 mov 0x346, %o1 <== NOT EXECUTED
/*
* Error check arguments
*/
assert( source );
200eeac: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED
200eeb0: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED
200eeb4: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED
200eeb8: 94 12 a2 d8 or %o2, 0x2d8, %o2 <== NOT EXECUTED
200eebc: 96 12 e2 58 or %o3, 0x258, %o3 <== NOT EXECUTED
200eec0: 7f ff f6 0a call 200c6e8 <__assert_func> <== NOT EXECUTED
200eec4: 92 10 22 ef mov 0x2ef, %o1 <== NOT EXECUTED
020023bc <IMFS_mknod>:
const char *token, /* IN */
mode_t mode, /* IN */
dev_t dev, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
20023bc: 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 );
20023c0: 40 00 3b f1 call 2011384 <strlen>
20023c4: 90 10 00 18 mov %i0, %o0
20023c8: a0 07 bf b8 add %fp, -72, %l0
20023cc: 92 10 00 08 mov %o0, %o1
20023d0: 96 07 bf fc add %fp, -4, %o3
20023d4: 90 10 00 18 mov %i0, %o0
20023d8: 40 00 28 21 call 200c45c <IMFS_get_token>
20023dc: 94 10 00 10 mov %l0, %o2
/*
* Figure out what type of IMFS node this is.
*/
if ( S_ISDIR(mode) )
20023e0: 03 00 00 3c sethi %hi(0xf000), %g1
20023e4: 05 00 00 10 sethi %hi(0x4000), %g2
20023e8: 82 0e 40 01 and %i1, %g1, %g1
20023ec: 80 a0 40 02 cmp %g1, %g2
20023f0: 02 80 00 23 be 200247c <IMFS_mknod+0xc0>
20023f4: 05 00 00 20 sethi %hi(0x8000), %g2
type = IMFS_DIRECTORY;
else if ( S_ISREG(mode) )
20023f8: 80 a0 40 02 cmp %g1, %g2
20023fc: 02 80 00 08 be 200241c <IMFS_mknod+0x60>
2002400: 92 10 20 05 mov 5, %o1
type = IMFS_MEMORY_FILE;
else if ( S_ISBLK(mode) || S_ISCHR(mode) ) {
2002404: 05 00 00 08 sethi %hi(0x2000), %g2
2002408: 80 a0 40 02 cmp %g1, %g2
200240c: 12 80 00 0f bne 2002448 <IMFS_mknod+0x8c>
2002410: 05 00 00 18 sethi %hi(0x6000), %g2
type = IMFS_DEVICE;
rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor );
2002414: f4 3f bf e0 std %i2, [ %fp + -32 ]
2002418: 92 10 20 02 mov 2, %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(
200241c: 90 10 00 1c mov %i4, %o0
2002420: 94 10 00 10 mov %l0, %o2
2002424: 96 10 00 19 mov %i1, %o3
2002428: 98 07 bf e0 add %fp, -32, %o4
200242c: 40 00 24 21 call 200b4b0 <IMFS_create_node>
2002430: b0 10 20 00 clr %i0
new_name,
mode,
&info
);
if ( !new_node )
2002434: 80 a2 20 00 cmp %o0, 0
2002438: 02 80 00 1b be 20024a4 <IMFS_mknod+0xe8> <== NEVER TAKEN
200243c: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOMEM );
return 0;
}
2002440: 81 c7 e0 08 ret
2002444: 81 e8 00 00 restore
*/
if ( S_ISDIR(mode) )
type = IMFS_DIRECTORY;
else if ( S_ISREG(mode) )
type = IMFS_MEMORY_FILE;
else if ( S_ISBLK(mode) || S_ISCHR(mode) ) {
2002448: 80 a0 40 02 cmp %g1, %g2
200244c: 22 bf ff f3 be,a 2002418 <IMFS_mknod+0x5c>
2002450: f4 3f bf e0 std %i2, [ %fp + -32 ]
type = IMFS_DEVICE;
rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor );
}
else if (S_ISFIFO(mode))
2002454: 05 00 00 04 sethi %hi(0x1000), %g2
2002458: 80 a0 40 02 cmp %g1, %g2
200245c: 02 bf ff f0 be 200241c <IMFS_mknod+0x60> <== ALWAYS TAKEN
2002460: 92 10 20 07 mov 7, %o1
type = IMFS_FIFO;
else {
rtems_set_errno_and_return_minus_one( EINVAL );
2002464: 40 00 37 fb call 2010450 <__errno> <== NOT EXECUTED
2002468: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200246c: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
2002470: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2002474: 81 c7 e0 08 ret <== NOT EXECUTED
2002478: 81 e8 00 00 restore <== NOT EXECUTED
200247c: 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(
2002480: 90 10 00 1c mov %i4, %o0
2002484: 94 10 00 10 mov %l0, %o2
2002488: 96 10 00 19 mov %i1, %o3
200248c: 98 07 bf e0 add %fp, -32, %o4
2002490: 40 00 24 08 call 200b4b0 <IMFS_create_node>
2002494: b0 10 20 00 clr %i0
new_name,
mode,
&info
);
if ( !new_node )
2002498: 80 a2 20 00 cmp %o0, 0
200249c: 12 80 00 06 bne 20024b4 <IMFS_mknod+0xf8> <== ALWAYS TAKEN
20024a0: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOMEM );
20024a4: 40 00 37 eb call 2010450 <__errno> <== NOT EXECUTED
20024a8: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
20024ac: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
20024b0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return 0;
}
20024b4: 81 c7 e0 08 ret
20024b8: 81 e8 00 00 restore
020024bc <IMFS_mount>:
#include <rtems/seterr.h>
int IMFS_mount(
rtems_filesystem_mount_table_entry_t *mt_entry
)
{
20024bc: 9d e3 bf a0 save %sp, -96, %sp
IMFS_jnode_t *node;
node = mt_entry->mt_point_node.node_access;
20024c0: c2 06 20 08 ld [ %i0 + 8 ], %g1
/*
* Is the node that we are mounting onto a directory node ?
*/
if ( node->type != IMFS_DIRECTORY )
20024c4: c4 00 60 4c ld [ %g1 + 0x4c ], %g2
20024c8: 80 a0 a0 01 cmp %g2, 1
20024cc: 12 80 00 05 bne 20024e0 <IMFS_mount+0x24> <== NEVER TAKEN
20024d0: 01 00 00 00 nop
/*
* Set mt_fs pointer to point to the mount table entry for
* the mounted file system.
*/
node->info.directory.mt_fs = mt_entry;
20024d4: f0 20 60 5c st %i0, [ %g1 + 0x5c ]
return 0;
}
20024d8: 81 c7 e0 08 ret
20024dc: 91 e8 20 00 restore %g0, 0, %o0
/*
* Is the node that we are mounting onto a directory node ?
*/
if ( node->type != IMFS_DIRECTORY )
rtems_set_errno_and_return_minus_one( ENOTDIR );
20024e0: 40 00 37 dc call 2010450 <__errno> <== NOT EXECUTED
20024e4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20024e8: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED
20024ec: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20024f0: 81 c7 e0 08 ret <== NOT EXECUTED
20024f4: 81 e8 00 00 restore <== NOT EXECUTED
020049a0 <IMFS_print_jnode>:
*/
void IMFS_print_jnode(
IMFS_jnode_t *the_jnode
)
{
20049a0: 9d e3 bf a0 save %sp, -96, %sp
assert( the_jnode );
20049a4: 80 a6 20 00 cmp %i0, 0
20049a8: 02 80 00 5b be 2004b14 <IMFS_print_jnode+0x174> <== NEVER TAKEN
20049ac: 21 00 80 9b sethi %hi(0x2026c00), %l0
fprintf(stdout, "%s", the_jnode->name );
20049b0: c2 04 20 e0 ld [ %l0 + 0xe0 ], %g1 ! 2026ce0 <_impure_ptr>
20049b4: 90 06 20 0c add %i0, 0xc, %o0
20049b8: 40 00 41 49 call 2014edc <fputs>
20049bc: d2 00 60 08 ld [ %g1 + 8 ], %o1
switch( the_jnode->type ) {
20049c0: d4 06 20 4c ld [ %i0 + 0x4c ], %o2
20049c4: 80 a2 a0 07 cmp %o2, 7
20049c8: 08 80 00 0f bleu 2004a04 <IMFS_print_jnode+0x64> <== ALWAYS TAKEN
20049cc: 83 2a a0 02 sll %o2, 2, %g1
fprintf(stdout, " FIFO not printed\n" );
assert(0);
break;
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
20049d0: c2 04 20 e0 ld [ %l0 + 0xe0 ], %g1 <== NOT EXECUTED
20049d4: 13 00 80 93 sethi %hi(0x2024c00), %o1 <== NOT EXECUTED
20049d8: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED
20049dc: 40 00 40 e2 call 2014d64 <fprintf> <== NOT EXECUTED
20049e0: 92 12 63 20 or %o1, 0x320, %o1 <== NOT EXECUTED
assert(0);
20049e4: 92 10 20 6c mov 0x6c, %o1 <== NOT EXECUTED
assert(0);
break;
case IMFS_SYM_LINK:
fprintf(stdout, " links not printed\n" );
assert(0);
20049e8: 11 00 80 93 sethi %hi(0x2024c00), %o0 <== NOT EXECUTED
20049ec: 15 00 80 94 sethi %hi(0x2025000), %o2 <== NOT EXECUTED
20049f0: 17 00 80 93 sethi %hi(0x2024c00), %o3 <== NOT EXECUTED
20049f4: 90 12 22 50 or %o0, 0x250, %o0 <== NOT EXECUTED
20049f8: 94 12 a0 60 or %o2, 0x60, %o2 <== NOT EXECUTED
20049fc: 40 00 02 bc call 20054ec <__assert_func> <== NOT EXECUTED
2004a00: 96 12 e3 00 or %o3, 0x300, %o3 <== NOT EXECUTED
)
{
assert( the_jnode );
fprintf(stdout, "%s", the_jnode->name );
switch( the_jnode->type ) {
2004a04: 05 00 80 12 sethi %hi(0x2004800), %g2
2004a08: 84 10 a1 44 or %g2, 0x144, %g2 ! 2004944 <console_inbyte_nonblocking+0xac>
2004a0c: c2 00 80 01 ld [ %g2 + %g1 ], %g1
2004a10: 81 c0 40 00 jmp %g1
2004a14: 01 00 00 00 nop
fprintf(stdout, " links not printed\n" );
assert(0);
break;
case IMFS_FIFO:
fprintf(stdout, " FIFO not printed\n" );
2004a18: c2 04 20 e0 ld [ %l0 + 0xe0 ], %g1 <== NOT EXECUTED
2004a1c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2004a20: d6 00 60 08 ld [ %g1 + 8 ], %o3 <== NOT EXECUTED
2004a24: 94 10 20 12 mov 0x12, %o2 <== NOT EXECUTED
2004a28: 11 00 80 93 sethi %hi(0x2024c00), %o0 <== NOT EXECUTED
2004a2c: 40 00 44 4b call 2015b58 <fwrite> <== NOT EXECUTED
2004a30: 90 12 23 08 or %o0, 0x308, %o0 ! 2024f08 <rtems_filesystem_mount_table_size+0x16c0><== NOT EXECUTED
assert(0);
2004a34: 10 bf ff ed b 20049e8 <IMFS_print_jnode+0x48> <== NOT EXECUTED
2004a38: 92 10 20 67 mov 0x67, %o1 <== NOT EXECUTED
fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",
the_jnode->info.device.major, the_jnode->info.device.minor );
break;
case IMFS_LINEAR_FILE:
fprintf(stdout, " (file %" PRId32 " %p)",
2004a3c: c2 04 20 e0 ld [ %l0 + 0xe0 ], %g1 <== NOT EXECUTED
2004a40: d6 06 20 58 ld [ %i0 + 0x58 ], %o3 <== NOT EXECUTED
2004a44: d4 06 20 54 ld [ %i0 + 0x54 ], %o2 <== NOT EXECUTED
2004a48: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED
2004a4c: 13 00 80 93 sethi %hi(0x2024c00), %o1 <== NOT EXECUTED
2004a50: 40 00 40 c5 call 2014d64 <fprintf> <== NOT EXECUTED
2004a54: 92 12 62 c8 or %o1, 0x2c8, %o1 ! 2024ec8 <rtems_filesystem_mount_table_size+0x1680><== NOT EXECUTED
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
assert(0);
break;
}
puts("");
2004a58: 31 00 80 93 sethi %hi(0x2024c00), %i0 <== NOT EXECUTED
2004a5c: 40 00 48 49 call 2016b80 <puts> <== NOT EXECUTED
2004a60: 91 ee 23 30 restore %i0, 0x330, %o0 <== NOT EXECUTED
the_jnode->info.file.indirect,
the_jnode->info.file.doubly_indirect,
the_jnode->info.file.triply_indirect
);
#else
fprintf(stdout, " (file %" PRId32 ")",
2004a64: c2 04 20 e0 ld [ %l0 + 0xe0 ], %g1
2004a68: d4 06 20 54 ld [ %i0 + 0x54 ], %o2
2004a6c: d0 00 60 08 ld [ %g1 + 8 ], %o0
2004a70: 13 00 80 93 sethi %hi(0x2024c00), %o1
2004a74: 40 00 40 bc call 2014d64 <fprintf>
2004a78: 92 12 62 d8 or %o1, 0x2d8, %o1 ! 2024ed8 <rtems_filesystem_mount_table_size+0x1690>
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
assert(0);
break;
}
puts("");
2004a7c: 31 00 80 93 sethi %hi(0x2024c00), %i0
2004a80: 40 00 48 40 call 2016b80 <puts>
2004a84: 91 ee 23 30 restore %i0, 0x330, %o0
fprintf(stdout, " links not printed\n" );
assert(0);
break;
case IMFS_SYM_LINK:
fprintf(stdout, " links not printed\n" );
2004a88: c2 04 20 e0 ld [ %l0 + 0xe0 ], %g1 <== NOT EXECUTED
2004a8c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2004a90: d6 00 60 08 ld [ %g1 + 8 ], %o3 <== NOT EXECUTED
2004a94: 94 10 20 13 mov 0x13, %o2 <== NOT EXECUTED
2004a98: 11 00 80 93 sethi %hi(0x2024c00), %o0 <== NOT EXECUTED
2004a9c: 40 00 44 2f call 2015b58 <fwrite> <== NOT EXECUTED
2004aa0: 90 12 22 e8 or %o0, 0x2e8, %o0 ! 2024ee8 <rtems_filesystem_mount_table_size+0x16a0><== NOT EXECUTED
assert(0);
2004aa4: 10 bf ff d1 b 20049e8 <IMFS_print_jnode+0x48> <== NOT EXECUTED
2004aa8: 92 10 20 62 mov 0x62, %o1 <== NOT EXECUTED
(uint32_t)the_jnode->info.file.size );
#endif
break;
case IMFS_HARD_LINK:
fprintf(stdout, " links not printed\n" );
2004aac: c2 04 20 e0 ld [ %l0 + 0xe0 ], %g1 <== NOT EXECUTED
2004ab0: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2004ab4: d6 00 60 08 ld [ %g1 + 8 ], %o3 <== NOT EXECUTED
2004ab8: 94 10 20 13 mov 0x13, %o2 <== NOT EXECUTED
2004abc: 11 00 80 93 sethi %hi(0x2024c00), %o0 <== NOT EXECUTED
2004ac0: 40 00 44 26 call 2015b58 <fwrite> <== NOT EXECUTED
2004ac4: 90 12 22 e8 or %o0, 0x2e8, %o0 ! 2024ee8 <rtems_filesystem_mount_table_size+0x16a0><== NOT EXECUTED
assert(0);
2004ac8: 10 bf ff c8 b 20049e8 <IMFS_print_jnode+0x48> <== NOT EXECUTED
2004acc: 92 10 20 5d mov 0x5d, %o1 <== NOT EXECUTED
case IMFS_DIRECTORY:
fprintf(stdout, "/" );
break;
case IMFS_DEVICE:
fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",
2004ad0: c2 04 20 e0 ld [ %l0 + 0xe0 ], %g1
2004ad4: d6 06 20 54 ld [ %i0 + 0x54 ], %o3
2004ad8: d4 06 20 50 ld [ %i0 + 0x50 ], %o2
2004adc: d0 00 60 08 ld [ %g1 + 8 ], %o0
2004ae0: 13 00 80 93 sethi %hi(0x2024c00), %o1
2004ae4: 40 00 40 a0 call 2014d64 <fprintf>
2004ae8: 92 12 62 b0 or %o1, 0x2b0, %o1 ! 2024eb0 <rtems_filesystem_mount_table_size+0x1668>
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
assert(0);
break;
}
puts("");
2004aec: 31 00 80 93 sethi %hi(0x2024c00), %i0
2004af0: 40 00 48 24 call 2016b80 <puts>
2004af4: 91 ee 23 30 restore %i0, 0x330, %o0
assert( the_jnode );
fprintf(stdout, "%s", the_jnode->name );
switch( the_jnode->type ) {
case IMFS_DIRECTORY:
fprintf(stdout, "/" );
2004af8: c2 04 20 e0 ld [ %l0 + 0xe0 ], %g1
2004afc: 90 10 20 2f mov 0x2f, %o0
2004b00: d2 00 60 08 ld [ %g1 + 8 ], %o1
2004b04: 40 00 40 b2 call 2014dcc <fputc>
2004b08: 31 00 80 93 sethi %hi(0x2024c00), %i0
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
assert(0);
break;
}
puts("");
2004b0c: 40 00 48 1d call 2016b80 <puts>
2004b10: 91 ee 23 30 restore %i0, 0x330, %o0
void IMFS_print_jnode(
IMFS_jnode_t *the_jnode
)
{
assert( the_jnode );
2004b14: 11 00 80 93 sethi %hi(0x2024c00), %o0 <== NOT EXECUTED
2004b18: 15 00 80 94 sethi %hi(0x2025000), %o2 <== NOT EXECUTED
2004b1c: 17 00 80 93 sethi %hi(0x2024c00), %o3 <== NOT EXECUTED
2004b20: 90 12 22 50 or %o0, 0x250, %o0 <== NOT EXECUTED
2004b24: 94 12 a0 60 or %o2, 0x60, %o2 <== NOT EXECUTED
2004b28: 96 12 e2 a0 or %o3, 0x2a0, %o3 <== NOT EXECUTED
2004b2c: 40 00 02 70 call 20054ec <__assert_func> <== NOT EXECUTED
2004b30: 92 10 20 38 mov 0x38, %o1 <== NOT EXECUTED
02002504 <IMFS_readlink>:
int IMFS_readlink(
rtems_filesystem_location_info_t *loc,
char *buf, /* OUT */
size_t bufsize
)
{
2002504: 9d e3 bf a0 save %sp, -96, %sp
IMFS_jnode_t *node;
int i;
node = loc->node_access;
2002508: c2 06 00 00 ld [ %i0 ], %g1
if ( node->type != IMFS_SYM_LINK )
200250c: c4 00 60 4c ld [ %g1 + 0x4c ], %g2
2002510: 80 a0 a0 04 cmp %g2, 4
2002514: 12 80 00 19 bne 2002578 <IMFS_readlink+0x74> <== NEVER TAKEN
2002518: 80 a6 a0 00 cmp %i2, 0
rtems_set_errno_and_return_minus_one( EINVAL );
for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
200251c: 02 80 00 15 be 2002570 <IMFS_readlink+0x6c> <== NEVER TAKEN
2002520: 86 10 20 00 clr %g3
2002524: c4 00 60 50 ld [ %g1 + 0x50 ], %g2
2002528: c8 48 80 00 ldsb [ %g2 ], %g4
int i;
node = loc->node_access;
if ( node->type != IMFS_SYM_LINK )
rtems_set_errno_and_return_minus_one( EINVAL );
200252c: b0 10 20 00 clr %i0
for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
2002530: 80 a1 20 00 cmp %g4, 0
2002534: 12 80 00 08 bne 2002554 <IMFS_readlink+0x50> <== ALWAYS TAKEN
2002538: c4 08 80 00 ldub [ %g2 ], %g2
200253c: 30 80 00 13 b,a 2002588 <IMFS_readlink+0x84> <== NOT EXECUTED
2002540: c4 00 60 50 ld [ %g1 + 0x50 ], %g2
2002544: c8 48 80 18 ldsb [ %g2 + %i0 ], %g4
2002548: 80 a1 20 00 cmp %g4, 0
200254c: 02 80 00 07 be 2002568 <IMFS_readlink+0x64>
2002550: c4 08 80 18 ldub [ %g2 + %i0 ], %g2
buf[i] = node->info.sym_link.name[i];
2002554: c4 2e 40 03 stb %g2, [ %i1 + %g3 ]
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++ )
2002558: b0 06 20 01 inc %i0
200255c: 80 a6 80 18 cmp %i2, %i0
2002560: 18 bf ff f8 bgu 2002540 <IMFS_readlink+0x3c>
2002564: 86 10 00 18 mov %i0, %g3
buf[i] = node->info.sym_link.name[i];
return i;
}
2002568: 81 c7 e0 08 ret
200256c: 81 e8 00 00 restore
2002570: 81 c7 e0 08 ret <== NOT EXECUTED
2002574: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
int i;
node = loc->node_access;
if ( node->type != IMFS_SYM_LINK )
rtems_set_errno_and_return_minus_one( EINVAL );
2002578: 40 00 37 b6 call 2010450 <__errno> <== NOT EXECUTED
200257c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2002580: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
2002584: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2002588: 81 c7 e0 08 ret <== NOT EXECUTED
200258c: 81 e8 00 00 restore <== NOT EXECUTED
02002590 <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 */
)
{
2002590: 9d e3 bf 98 save %sp, -104, %sp
IMFS_jnode_t *the_jnode;
IMFS_jnode_t *new_parent;
the_jnode = old_loc->node_access;
2002594: e0 06 40 00 ld [ %i1 ], %l0
strncpy( the_jnode->name, new_name, IMFS_NAME_MAX );
2002598: 92 10 00 1b mov %i3, %o1
200259c: 90 04 20 0c add %l0, 0xc, %o0
20025a0: 40 00 3b ae call 2011458 <strncpy>
20025a4: 94 10 20 20 mov 0x20, %o2
if ( the_jnode->Parent != NULL )
20025a8: c2 04 20 08 ld [ %l0 + 8 ], %g1
20025ac: 80 a0 60 00 cmp %g1, 0
20025b0: 22 80 00 05 be,a 20025c4 <IMFS_rename+0x34> <== NEVER TAKEN
20025b4: 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 );
20025b8: 40 00 13 46 call 20072d0 <_Chain_Extract>
20025bc: 90 10 00 10 mov %l0, %o0
rtems_chain_extract( (rtems_chain_node *) the_jnode );
new_parent = new_parent_loc->node_access;
20025c0: 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 );
20025c4: 92 10 00 10 mov %l0, %o1
20025c8: 90 00 60 50 add %g1, 0x50, %o0
20025cc: 40 00 13 35 call 20072a0 <_Chain_Append>
20025d0: 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 );
20025d4: 90 07 bf f8 add %fp, -8, %o0
20025d8: 40 00 01 f0 call 2002d98 <gettimeofday>
20025dc: 92 10 20 00 clr %o1
20025e0: c2 07 bf f8 ld [ %fp + -8 ], %g1
20025e4: c2 24 20 48 st %g1, [ %l0 + 0x48 ]
return 0;
}
20025e8: 81 c7 e0 08 ret
20025ec: 91 e8 20 00 restore %g0, 0, %o0
0200c53c <IMFS_rmnod>:
int IMFS_rmnod(
rtems_filesystem_location_info_t *parent_pathloc, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN */
)
{
200c53c: 9d e3 bf 98 save %sp, -104, %sp
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) pathloc->node_access;
200c540: 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 ) {
200c544: c2 04 20 08 ld [ %l0 + 8 ], %g1
200c548: 80 a0 60 00 cmp %g1, 0
200c54c: 22 80 00 06 be,a 200c564 <IMFS_rmnod+0x28> <== NEVER TAKEN
200c550: 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 );
200c554: 7f ff eb 5f call 20072d0 <_Chain_Extract>
200c558: 90 10 00 10 mov %l0, %o0
rtems_chain_extract( (rtems_chain_node *) the_jnode );
the_jnode->Parent = NULL;
200c55c: c0 24 20 08 clr [ %l0 + 8 ]
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
200c560: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1
IMFS_update_ctime( the_jnode );
200c564: 92 10 20 00 clr %o1
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
200c568: 82 00 7f ff add %g1, -1, %g1
IMFS_update_ctime( the_jnode );
200c56c: 90 07 bf f8 add %fp, -8, %o0
200c570: 7f ff da 0a call 2002d98 <gettimeofday>
200c574: c2 34 20 34 sth %g1, [ %l0 + 0x34 ]
200c578: 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) ) {
200c57c: 90 10 00 10 mov %l0, %o0
200c580: 40 00 00 fb call 200c96c <rtems_libio_is_file_open>
200c584: c2 24 20 48 st %g1, [ %l0 + 0x48 ]
200c588: 80 a2 20 00 cmp %o0, 0
200c58c: 12 80 00 12 bne 200c5d4 <IMFS_rmnod+0x98> <== NEVER TAKEN
200c590: 01 00 00 00 nop
200c594: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1
200c598: 80 a0 60 00 cmp %g1, 0
200c59c: 12 80 00 0e bne 200c5d4 <IMFS_rmnod+0x98> <== NEVER TAKEN
200c5a0: 03 00 80 74 sethi %hi(0x201d000), %g1
/*
* Is rtems_filesystem_current this node?
*/
if ( rtems_filesystem_current.node_access == pathloc->node_access )
200c5a4: c2 00 62 10 ld [ %g1 + 0x210 ], %g1 ! 201d210 <rtems_current_user_env>
200c5a8: c4 06 40 00 ld [ %i1 ], %g2
200c5ac: c6 00 60 04 ld [ %g1 + 4 ], %g3
200c5b0: 80 a0 c0 02 cmp %g3, %g2
200c5b4: 22 80 00 02 be,a 200c5bc <IMFS_rmnod+0x80> <== NEVER TAKEN
200c5b8: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED
/*
* Free memory associated with a memory file.
*/
if ( the_jnode->type == IMFS_SYM_LINK ) {
200c5bc: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
200c5c0: 80 a0 60 04 cmp %g1, 4
200c5c4: 22 80 00 06 be,a 200c5dc <IMFS_rmnod+0xa0>
200c5c8: d0 04 20 50 ld [ %l0 + 0x50 ], %o0
if ( the_jnode->info.sym_link.name )
free( (void*) the_jnode->info.sym_link.name );
}
free( the_jnode );
200c5cc: 7f ff d9 c8 call 2002cec <free>
200c5d0: 90 10 00 10 mov %l0, %o0
}
return 0;
}
200c5d4: 81 c7 e0 08 ret
200c5d8: 91 e8 20 00 restore %g0, 0, %o0
/*
* Free memory associated with a memory file.
*/
if ( the_jnode->type == IMFS_SYM_LINK ) {
if ( the_jnode->info.sym_link.name )
200c5dc: 80 a2 20 00 cmp %o0, 0
200c5e0: 02 bf ff fb be 200c5cc <IMFS_rmnod+0x90> <== NEVER TAKEN
200c5e4: 01 00 00 00 nop
free( (void*) the_jnode->info.sym_link.name );
200c5e8: 7f ff d9 c1 call 2002cec <free>
200c5ec: 01 00 00 00 nop
200c5f0: 30 bf ff f7 b,a 200c5cc <IMFS_rmnod+0x90>
0200c614 <IMFS_stat>:
int IMFS_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
200c614: 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;
200c618: c2 06 00 00 ld [ %i0 ], %g1
switch ( the_jnode->type ) {
200c61c: c4 00 60 4c ld [ %g1 + 0x4c ], %g2
200c620: 80 a0 a0 07 cmp %g2, 7
200c624: 08 80 00 08 bleu 200c644 <IMFS_stat+0x30> <== ALWAYS TAKEN
200c628: 85 28 a0 02 sll %g2, 2, %g2
case IMFS_FIFO:
buf->st_size = 0;
break;
default:
rtems_set_errno_and_return_minus_one( ENOTSUP );
200c62c: 40 00 0f 89 call 2010450 <__errno> <== NOT EXECUTED
200c630: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200c634: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
200c638: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200c63c: 81 c7 e0 08 ret <== NOT EXECUTED
200c640: 81 e8 00 00 restore <== NOT EXECUTED
IMFS_device_t *io;
the_jnode = loc->node_access;
switch ( the_jnode->type ) {
200c644: 07 00 80 31 sethi %hi(0x200c400), %g3
200c648: 86 10 e1 f4 or %g3, 0x1f4, %g3 ! 200c5f4 <IMFS_rmnod+0xb8>
200c64c: c4 00 c0 02 ld [ %g3 + %g2 ], %g2
200c650: 81 c0 80 00 jmp %g2
200c654: 01 00 00 00 nop
case IMFS_SYM_LINK:
buf->st_size = 0;
break;
case IMFS_FIFO:
buf->st_size = 0;
200c658: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED
200c65c: c0 26 60 24 clr [ %i1 + 0x24 ] <== 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;
200c660: c6 00 60 30 ld [ %g1 + 0x30 ], %g3
buf->st_nlink = the_jnode->st_nlink;
200c664: 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;
200c668: c6 26 60 0c st %g3, [ %i1 + 0xc ]
buf->st_nlink = the_jnode->st_nlink;
buf->st_ino = the_jnode->st_ino;
200c66c: 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 );
200c670: 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;
200c674: 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;
200c678: 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;
200c67c: 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;
200c680: 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 );
200c684: 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;
200c688: 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;
200c68c: 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;
200c690: 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;
200c694: 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 );
200c698: 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;
200c69c: c4 00 60 48 ld [ %g1 + 0x48 ], %g2
buf->st_blksize = imfs_rq_memfile_bytes_per_block;
200c6a0: 07 00 80 74 sethi %hi(0x201d000), %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;
200c6a4: 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;
200c6a8: c6 00 e0 48 ld [ %g3 + 0x48 ], %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;
200c6ac: 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 =
200c6b0: 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;
200c6b4: 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;
200c6b8: c4 26 60 38 st %g2, [ %i1 + 0x38 ]
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
200c6bc: 03 00 00 3f sethi %hi(0xfc00), %g1
200c6c0: 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 =
200c6c4: 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;
}
200c6c8: 81 c7 e0 08 ret
200c6cc: 91 e8 20 00 restore %g0, 0, %o0
200c6d0: c4 18 60 50 ldd [ %g1 + 0x50 ], %g2
switch ( the_jnode->type ) {
case IMFS_DEVICE:
io = &the_jnode->info.device;
buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor );
break;
200c6d4: 10 bf ff e3 b 200c660 <IMFS_stat+0x4c>
200c6d8: c4 3e 60 18 std %g2, [ %i1 + 0x18 ]
case IMFS_LINEAR_FILE:
case IMFS_MEMORY_FILE:
buf->st_size = the_jnode->info.file.size;
200c6dc: c4 18 60 50 ldd [ %g1 + 0x50 ], %g2
break;
200c6e0: 10 bf ff e0 b 200c660 <IMFS_stat+0x4c>
200c6e4: c4 3e 60 20 std %g2, [ %i1 + 0x20 ]
020025f0 <IMFS_symlink>:
int IMFS_symlink(
rtems_filesystem_location_info_t *parent_loc,
const char *link_name,
const char *node_name
)
{
20025f0: 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 );
20025f4: 40 00 3b 64 call 2011384 <strlen>
20025f8: 90 10 00 1a mov %i2, %o0
20025fc: 96 07 bf fc add %fp, -4, %o3
2002600: 92 10 00 08 mov %o0, %o1
2002604: a0 07 bf b8 add %fp, -72, %l0
2002608: 90 10 00 1a mov %i2, %o0
200260c: 40 00 27 94 call 200c45c <IMFS_get_token>
2002610: 94 10 00 10 mov %l0, %o2
/*
* Duplicate link name
*/
info.sym_link.name = strdup(link_name);
2002614: 40 00 3b 47 call 2011330 <strdup>
2002618: 90 10 00 19 mov %i1, %o0
if (info.sym_link.name == NULL) {
200261c: 80 a2 20 00 cmp %o0, 0
2002620: 02 80 00 15 be 2002674 <IMFS_symlink+0x84> <== NEVER TAKEN
2002624: d0 27 bf e0 st %o0, [ %fp + -32 ]
* 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(
2002628: 90 10 00 18 mov %i0, %o0
200262c: 94 10 00 10 mov %l0, %o2
2002630: 92 10 20 04 mov 4, %o1
2002634: 17 00 00 28 sethi %hi(0xa000), %o3
2002638: 98 07 bf e0 add %fp, -32, %o4
200263c: 96 12 e1 ff or %o3, 0x1ff, %o3
2002640: 40 00 23 9c call 200b4b0 <IMFS_create_node>
2002644: b0 10 20 00 clr %i0
new_name,
( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),
&info
);
if (new_node == NULL) {
2002648: 80 a2 20 00 cmp %o0, 0
200264c: 12 80 00 08 bne 200266c <IMFS_symlink+0x7c> <== ALWAYS TAKEN
2002650: d0 07 bf e0 ld [ %fp + -32 ], %o0
free(info.sym_link.name);
2002654: 40 00 01 a6 call 2002cec <free> <== NOT EXECUTED
2002658: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
200265c: 40 00 37 7d call 2010450 <__errno> <== NOT EXECUTED
2002660: 01 00 00 00 nop <== NOT EXECUTED
2002664: 82 10 20 0c mov 0xc, %g1 ! c <PROM_START+0xc> <== NOT EXECUTED
2002668: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
return 0;
}
200266c: 81 c7 e0 08 ret
2002670: 81 e8 00 00 restore
/*
* Duplicate link name
*/
info.sym_link.name = strdup(link_name);
if (info.sym_link.name == NULL) {
rtems_set_errno_and_return_minus_one(ENOMEM);
2002674: 40 00 37 77 call 2010450 <__errno> <== NOT EXECUTED
2002678: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200267c: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
2002680: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2002684: 81 c7 e0 08 ret <== NOT EXECUTED
2002688: 81 e8 00 00 restore <== NOT EXECUTED
0200268c <IMFS_unlink>:
int IMFS_unlink(
rtems_filesystem_location_info_t *parentloc, /* IN */
rtems_filesystem_location_info_t *loc /* IN */
)
{
200268c: 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;
2002690: 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 ) {
2002694: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
2002698: 80 a0 60 03 cmp %g1, 3
200269c: 02 80 00 09 be 20026c0 <IMFS_unlink+0x34>
20026a0: a2 10 00 18 mov %i0, %l1
/*
* Now actually free the node we were asked to free.
*/
result = (*loc->handlers->rmnod_h)( parentloc, loc );
20026a4: c2 06 60 08 ld [ %i1 + 8 ], %g1
20026a8: 90 10 00 11 mov %l1, %o0
20026ac: c2 00 60 34 ld [ %g1 + 0x34 ], %g1
20026b0: 9f c0 40 00 call %g1
20026b4: 92 10 00 19 mov %i1, %o1
return result;
}
20026b8: 81 c7 e0 08 ret
20026bc: 91 e8 00 08 restore %g0, %o0, %o0
* free the node.
*/
if ( node->type == IMFS_HARD_LINK ) {
if ( !node->info.hard_link.link_node )
20026c0: c2 04 20 50 ld [ %l0 + 0x50 ], %g1
20026c4: 80 a0 60 00 cmp %g1, 0
20026c8: 02 80 00 25 be 200275c <IMFS_unlink+0xd0> <== NEVER TAKEN
20026cc: a4 07 bf e4 add %fp, -28, %l2
rtems_set_errno_and_return_minus_one( EINVAL );
the_link = *loc;
20026d0: c4 06 60 10 ld [ %i1 + 0x10 ], %g2
20026d4: da 06 60 04 ld [ %i1 + 4 ], %o5
20026d8: c8 06 60 08 ld [ %i1 + 8 ], %g4
20026dc: c6 06 60 0c ld [ %i1 + 0xc ], %g3
20026e0: c4 27 bf f4 st %g2, [ %fp + -12 ]
the_link.node_access = node->info.hard_link.link_node;
20026e4: c2 27 bf e4 st %g1, [ %fp + -28 ]
if ( node->type == IMFS_HARD_LINK ) {
if ( !node->info.hard_link.link_node )
rtems_set_errno_and_return_minus_one( EINVAL );
the_link = *loc;
20026e8: da 27 bf e8 st %o5, [ %fp + -24 ]
20026ec: c8 27 bf ec st %g4, [ %fp + -20 ]
20026f0: c6 27 bf f0 st %g3, [ %fp + -16 ]
the_link.node_access = node->info.hard_link.link_node;
IMFS_Set_handlers( &the_link );
20026f4: 40 00 23 bc call 200b5e4 <IMFS_Set_handlers>
20026f8: 90 10 00 12 mov %l2, %o0
/*
* 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)
20026fc: c2 04 20 50 ld [ %l0 + 0x50 ], %g1
2002700: c4 10 60 34 lduh [ %g1 + 0x34 ], %g2
2002704: 80 a0 a0 01 cmp %g2, 1
2002708: 02 80 00 0a be 2002730 <IMFS_unlink+0xa4>
200270c: 86 00 bf ff add %g2, -1, %g3
return -1;
}
else
{
node->info.hard_link.link_node->st_nlink --;
IMFS_update_ctime( node->info.hard_link.link_node );
2002710: 90 07 bf f8 add %fp, -8, %o0
if ( result != 0 )
return -1;
}
else
{
node->info.hard_link.link_node->st_nlink --;
2002714: c6 30 60 34 sth %g3, [ %g1 + 0x34 ]
IMFS_update_ctime( node->info.hard_link.link_node );
2002718: 40 00 01 a0 call 2002d98 <gettimeofday>
200271c: 92 10 20 00 clr %o1
2002720: c2 04 20 50 ld [ %l0 + 0x50 ], %g1
2002724: c4 07 bf f8 ld [ %fp + -8 ], %g2
2002728: 10 bf ff df b 20026a4 <IMFS_unlink+0x18>
200272c: c4 20 60 48 st %g2, [ %g1 + 0x48 ]
* to remove the node that is a link and the node itself.
*/
if ( node->info.hard_link.link_node->st_nlink == 1)
{
result = (*the_link.handlers->rmnod_h)( parentloc, &the_link );
2002730: c2 07 bf ec ld [ %fp + -20 ], %g1
2002734: 90 10 00 18 mov %i0, %o0
2002738: c2 00 60 34 ld [ %g1 + 0x34 ], %g1
200273c: 92 10 00 12 mov %l2, %o1
2002740: 9f c0 40 00 call %g1
2002744: b0 10 3f ff mov -1, %i0
if ( result != 0 )
2002748: 80 a2 20 00 cmp %o0, 0
200274c: 22 bf ff d7 be,a 20026a8 <IMFS_unlink+0x1c>
2002750: c2 06 60 08 ld [ %i1 + 8 ], %g1
*/
result = (*loc->handlers->rmnod_h)( parentloc, loc );
return result;
}
2002754: 81 c7 e0 08 ret
2002758: 81 e8 00 00 restore
*/
if ( node->type == IMFS_HARD_LINK ) {
if ( !node->info.hard_link.link_node )
rtems_set_errno_and_return_minus_one( EINVAL );
200275c: 40 00 37 3d call 2010450 <__errno> <== NOT EXECUTED
2002760: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2002764: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
2002768: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200276c: 81 c7 e0 08 ret <== NOT EXECUTED
2002770: 81 e8 00 00 restore <== NOT EXECUTED
02002774 <IMFS_unmount>:
#include <rtems/seterr.h>
int IMFS_unmount(
rtems_filesystem_mount_table_entry_t *mt_entry
)
{
2002774: 9d e3 bf a0 save %sp, -96, %sp
IMFS_jnode_t *node;
node = mt_entry->mt_point_node.node_access;
2002778: c2 06 20 08 ld [ %i0 + 8 ], %g1
/*
* Is the node that we are mounting onto a directory node ?
*/
if ( node->type != IMFS_DIRECTORY )
200277c: c4 00 60 4c ld [ %g1 + 0x4c ], %g2
2002780: 80 a0 a0 01 cmp %g2, 1
2002784: 12 80 00 09 bne 20027a8 <IMFS_unmount+0x34> <== NEVER TAKEN
2002788: 01 00 00 00 nop
/*
* Did the node indicate that there was a directory mounted here?
*/
if ( node->info.directory.mt_fs == NULL )
200278c: c4 00 60 5c ld [ %g1 + 0x5c ], %g2
2002790: 80 a0 a0 00 cmp %g2, 0
2002794: 02 80 00 0b be 20027c0 <IMFS_unmount+0x4c> <== NEVER TAKEN
2002798: 01 00 00 00 nop
/*
* Set the mt_fs pointer to indicate that there is no longer
* a file system mounted to this point.
*/
node->info.directory.mt_fs = NULL;
200279c: c0 20 60 5c clr [ %g1 + 0x5c ]
return 0;
}
20027a0: 81 c7 e0 08 ret
20027a4: 91 e8 20 00 restore %g0, 0, %o0
/*
* Is the node that we are mounting onto a directory node ?
*/
if ( node->type != IMFS_DIRECTORY )
rtems_set_errno_and_return_minus_one( ENOTDIR );
20027a8: 40 00 37 2a call 2010450 <__errno> <== NOT EXECUTED
20027ac: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20027b0: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED
20027b4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20027b8: 81 c7 e0 08 ret <== NOT EXECUTED
20027bc: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Did the node indicate that there was a directory mounted here?
*/
if ( node->info.directory.mt_fs == NULL )
rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */
20027c0: 40 00 37 24 call 2010450 <__errno> <== NOT EXECUTED
20027c4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20027c8: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
20027cc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20027d0: 81 c7 e0 08 ret <== NOT EXECUTED
20027d4: 81 e8 00 00 restore <== NOT EXECUTED
02002f98 <RTEMS_Malloc_Initialize>:
void RTEMS_Malloc_Initialize(
void *heap_begin,
uintptr_t heap_size,
size_t sbrk_amount
)
{
2002f98: 9d e3 bf a0 save %sp, -96, %sp
#endif
/*
* If configured, initialize the statistics support
*/
if ( rtems_malloc_statistics_helpers != NULL ) {
2002f9c: 03 00 80 75 sethi %hi(0x201d400), %g1
2002fa0: c2 00 63 38 ld [ %g1 + 0x338 ], %g1 ! 201d738 <rtems_malloc_statistics_helpers>
2002fa4: 80 a0 60 00 cmp %g1, 0
2002fa8: 02 80 00 05 be 2002fbc <RTEMS_Malloc_Initialize+0x24>
2002fac: 01 00 00 00 nop
(*rtems_malloc_statistics_helpers->initialize)();
2002fb0: c2 00 40 00 ld [ %g1 ], %g1
2002fb4: 9f c0 40 00 call %g1
2002fb8: 01 00 00 00 nop
}
/*
* Initialize the garbage collection list to start with nothing on it.
*/
malloc_deferred_frees_initialize();
2002fbc: 7f ff ff dc call 2002f2c <malloc_deferred_frees_initialize>
2002fc0: 01 00 00 00 nop
/*
* Initialize the optional sbrk support for extending the heap
*/
if ( rtems_malloc_sbrk_helpers != NULL ) {
2002fc4: 03 00 80 75 sethi %hi(0x201d400), %g1
2002fc8: c2 00 63 3c ld [ %g1 + 0x33c ], %g1 ! 201d73c <rtems_malloc_sbrk_helpers>
2002fcc: 80 a0 60 00 cmp %g1, 0
2002fd0: 02 80 00 08 be 2002ff0 <RTEMS_Malloc_Initialize+0x58> <== ALWAYS TAKEN
2002fd4: 90 10 00 18 mov %i0, %o0
void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)(
2002fd8: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED
heap_begin,
sbrk_amount
);
heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin;
2002fdc: 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)(
2002fe0: 9f c0 40 00 call %g1 <== NOT EXECUTED
2002fe4: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
heap_begin,
sbrk_amount
);
heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin;
2002fe8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
2002fec: 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 (
2002ff0: 23 00 80 75 sethi %hi(0x201d400), %l1
2002ff4: c2 0c 63 35 ldub [ %l1 + 0x335 ], %g1 ! 201d735 <rtems_unified_work_area>
2002ff8: 80 a0 60 00 cmp %g1, 0
2002ffc: 12 80 00 10 bne 200303c <RTEMS_Malloc_Initialize+0xa4>
2003000: 21 00 80 74 sethi %hi(0x201d000), %l0
!rtems_unified_work_area
&& rtems_configuration_get_do_zero_of_workspace()
2003004: 03 00 80 74 sethi %hi(0x201d000), %g1
2003008: c2 08 61 20 ldub [ %g1 + 0x120 ], %g1 ! 201d120 <Configuration+0x28>
200300c: 80 a0 60 00 cmp %g1, 0
2003010: 12 80 00 13 bne 200305c <RTEMS_Malloc_Initialize+0xc4>
2003014: 90 10 00 18 mov %i0, %o0
void *area_begin,
uintptr_t area_size,
uintptr_t page_size
)
{
return _Heap_Initialize( heap, area_begin, area_size, page_size );
2003018: 21 00 80 74 sethi %hi(0x201d000), %l0
200301c: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 ! 201d050 <RTEMS_Malloc_Heap>
2003020: 92 10 00 18 mov %i0, %o1
2003024: 94 10 00 19 mov %i1, %o2
2003028: 40 00 12 23 call 20078b4 <_Heap_Initialize>
200302c: 96 10 20 08 mov 8, %o3
RTEMS_Malloc_Heap,
heap_begin,
heap_size,
CPU_HEAP_ALIGNMENT
);
if ( status == 0 ) {
2003030: 80 a2 20 00 cmp %o0, 0
2003034: 02 80 00 13 be 2003080 <RTEMS_Malloc_Initialize+0xe8> <== NEVER TAKEN
2003038: 01 00 00 00 nop
rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
}
}
MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) );
200303c: d0 04 20 50 ld [ %l0 + 0x50 ], %o0
2003040: 21 00 80 76 sethi %hi(0x201d800), %l0
2003044: 40 00 15 76 call 200861c <_Protected_heap_Get_size>
2003048: e2 04 21 f0 ld [ %l0 + 0x1f0 ], %l1 ! 201d9f0 <rtems_malloc_statistics>
200304c: 90 02 00 11 add %o0, %l1, %o0
2003050: d0 24 21 f0 st %o0, [ %l0 + 0x1f0 ]
printk( "\n" );
rtems_print_buffer( (heap_begin + heap_size) - 48, 48 );
rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
}
#endif
}
2003054: 81 c7 e0 08 ret
2003058: 81 e8 00 00 restore
if (
!rtems_unified_work_area
&& rtems_configuration_get_do_zero_of_workspace()
) {
memset( heap_begin, 0, heap_size );
200305c: 92 10 20 00 clr %o1
2003060: 40 00 37 77 call 2010e3c <memset>
2003064: 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 ) {
2003068: c2 0c 63 35 ldub [ %l1 + 0x335 ], %g1
200306c: 80 a0 60 00 cmp %g1, 0
2003070: 22 bf ff eb be,a 200301c <RTEMS_Malloc_Initialize+0x84> <== ALWAYS TAKEN
2003074: 21 00 80 74 sethi %hi(0x201d000), %l0
if ( status == 0 ) {
rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
}
}
MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) );
2003078: 10 bf ff f2 b 2003040 <RTEMS_Malloc_Initialize+0xa8> <== NOT EXECUTED
200307c: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 ! 201d050 <RTEMS_Malloc_Heap><== NOT EXECUTED
heap_begin,
heap_size,
CPU_HEAP_ALIGNMENT
);
if ( status == 0 ) {
rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
2003080: 40 00 0f b4 call 2006f50 <rtems_fatal_error_occurred> <== NOT EXECUTED
2003084: 90 10 20 1a mov 0x1a, %o0 <== NOT EXECUTED
02006a08 <Stack_check_Dump_threads_usage>:
static rtems_printk_plugin_t print_handler;
void Stack_check_Dump_threads_usage(
Thread_Control *the_thread
)
{
2006a08: 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 )
2006a0c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
2006a10: 02 80 00 3b be 2006afc <Stack_check_Dump_threads_usage+0xf4><== NOT EXECUTED
2006a14: 27 00 81 c1 sethi %hi(0x2070400), %l3 <== NOT EXECUTED
return;
if ( !print_handler )
2006a18: e8 04 e1 60 ld [ %l3 + 0x160 ], %l4 ! 2070560 <print_handler><== NOT EXECUTED
2006a1c: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED
2006a20: 02 80 00 37 be 2006afc <Stack_check_Dump_threads_usage+0xf4><== NOT EXECUTED
2006a24: 80 a6 3f ff cmp %i0, -1 <== NOT EXECUTED
/*
* Obtain interrupt stack information
*/
if (the_thread == (Thread_Control *) -1) {
2006a28: 02 80 00 3e be 2006b20 <Stack_check_Dump_threads_usage+0x118><== NOT EXECUTED
2006a2c: a4 06 20 c0 add %i0, 0xc0, %l2 <== 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);
2006a30: ea 04 a0 04 ld [ %l2 + 4 ], %l5 <== NOT EXECUTED
size = Stack_check_usable_stack_size(stack);
2006a34: e2 04 80 00 ld [ %l2 ], %l1 <== 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);
2006a38: aa 05 60 10 add %l5, 0x10, %l5 <== NOT EXECUTED
size = Stack_check_usable_stack_size(stack);
2006a3c: a2 04 7f f0 add %l1, -16, %l1 <== NOT EXECUTED
}
else
return;
} else {
stack = &the_thread->Start.Initial_stack;
current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
2006a40: ec 06 21 48 ld [ %i0 + 0x148 ], %l6 <== 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);
2006a44: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
2006a48: 7f ff ff d8 call 20069a8 <Stack_check_find_high_water_mark><== NOT EXECUTED
2006a4c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if ( high_water_mark )
2006a50: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
used = Stack_check_Calculate_used( low, size, high_water_mark );
2006a54: a0 05 40 11 add %l5, %l1, %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 )
2006a58: 82 60 20 00 subx %g0, 0, %g1 <== NOT EXECUTED
used = Stack_check_Calculate_used( low, size, high_water_mark );
2006a5c: a0 24 00 08 sub %l0, %o0, %l0 <== NOT EXECUTED
else
used = 0;
if ( the_thread ) {
2006a60: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
2006a64: 02 80 00 44 be 2006b74 <Stack_check_Dump_threads_usage+0x16c><== NOT EXECUTED
2006a68: a0 0c 00 01 and %l0, %g1, %l0 <== NOT EXECUTED
(*print_handler)(
2006a6c: ee 06 20 08 ld [ %i0 + 8 ], %l7 <== NOT EXECUTED
2006a70: 2b 00 81 c1 sethi %hi(0x2070400), %l5 <== NOT EXECUTED
2006a74: fa 05 61 5c ld [ %l5 + 0x15c ], %i5 ! 207055c <print_context><== NOT EXECUTED
2006a78: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED
2006a7c: 92 10 20 05 mov 5, %o1 <== NOT EXECUTED
2006a80: 40 00 1a 30 call 200d340 <rtems_object_get_name> <== NOT EXECUTED
2006a84: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED
2006a88: 13 00 81 90 sethi %hi(0x2064000), %o1 <== NOT EXECUTED
2006a8c: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2006a90: 94 10 00 17 mov %l7, %o2 <== NOT EXECUTED
2006a94: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED
2006a98: 9f c5 00 00 call %l4 <== NOT EXECUTED
2006a9c: 92 12 62 58 or %o1, 0x258, %o1 <== NOT EXECUTED
);
} else {
(*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 );
}
(*print_handler)(
2006aa0: d6 04 80 00 ld [ %l2 ], %o3 <== NOT EXECUTED
2006aa4: c2 04 e1 60 ld [ %l3 + 0x160 ], %g1 <== NOT EXECUTED
2006aa8: d4 04 a0 04 ld [ %l2 + 4 ], %o2 <== NOT EXECUTED
2006aac: d0 05 61 5c ld [ %l5 + 0x15c ], %o0 <== NOT EXECUTED
2006ab0: 96 02 ff ff add %o3, -1, %o3 <== NOT EXECUTED
2006ab4: 98 10 00 16 mov %l6, %o4 <== NOT EXECUTED
2006ab8: 96 02 80 0b add %o2, %o3, %o3 <== NOT EXECUTED
2006abc: 9a 10 00 11 mov %l1, %o5 <== NOT EXECUTED
2006ac0: 13 00 81 90 sethi %hi(0x2064000), %o1 <== NOT EXECUTED
2006ac4: 9f c0 40 00 call %g1 <== NOT EXECUTED
2006ac8: 92 12 62 78 or %o1, 0x278, %o1 ! 2064278 <write_test_string.7990+0x438><== NOT EXECUTED
stack->area + stack->size - 1,
current,
size
);
if (Stack_check_Initialized == 0) {
2006acc: 03 00 81 c1 sethi %hi(0x2070400), %g1 <== NOT EXECUTED
2006ad0: c4 00 61 58 ld [ %g1 + 0x158 ], %g2 ! 2070558 <Stack_check_Initialized><== NOT EXECUTED
);
} else {
(*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 );
}
(*print_handler)(
2006ad4: 03 00 81 c1 sethi %hi(0x2070400), %g1 <== NOT EXECUTED
stack->area + stack->size - 1,
current,
size
);
if (Stack_check_Initialized == 0) {
2006ad8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2006adc: 02 80 00 0a be 2006b04 <Stack_check_Dump_threads_usage+0xfc><== NOT EXECUTED
2006ae0: 05 00 81 c1 sethi %hi(0x2070400), %g2 <== NOT EXECUTED
(*print_handler)( print_context, "Unavailable\n" );
} else {
(*print_handler)( print_context, "%8" PRId32 "\n", used );
2006ae4: c2 00 61 60 ld [ %g1 + 0x160 ], %g1 <== NOT EXECUTED
2006ae8: d0 00 a1 5c ld [ %g2 + 0x15c ], %o0 <== NOT EXECUTED
2006aec: 13 00 81 90 sethi %hi(0x2064000), %o1 <== NOT EXECUTED
2006af0: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2006af4: 9f c0 40 00 call %g1 <== NOT EXECUTED
2006af8: 92 12 62 a8 or %o1, 0x2a8, %o1 <== NOT EXECUTED
2006afc: 81 c7 e0 08 ret <== NOT EXECUTED
2006b00: 81 e8 00 00 restore <== NOT EXECUTED
current,
size
);
if (Stack_check_Initialized == 0) {
(*print_handler)( print_context, "Unavailable\n" );
2006b04: c2 00 61 60 ld [ %g1 + 0x160 ], %g1 <== NOT EXECUTED
2006b08: d0 00 a1 5c ld [ %g2 + 0x15c ], %o0 <== NOT EXECUTED
2006b0c: 13 00 81 90 sethi %hi(0x2064000), %o1 <== NOT EXECUTED
2006b10: 9f c0 40 00 call %g1 <== NOT EXECUTED
2006b14: 92 12 62 98 or %o1, 0x298, %o1 ! 2064298 <write_test_string.7990+0x458><== NOT EXECUTED
2006b18: 81 c7 e0 08 ret <== NOT EXECUTED
2006b1c: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Obtain interrupt stack information
*/
if (the_thread == (Thread_Control *) -1) {
if (Stack_check_Interrupt_stack.area) {
2006b20: 25 00 81 cc sethi %hi(0x2073000), %l2 <== NOT EXECUTED
2006b24: a4 14 a0 c8 or %l2, 0xc8, %l2 ! 20730c8 <Stack_check_Interrupt_stack><== NOT EXECUTED
2006b28: c2 04 a0 04 ld [ %l2 + 4 ], %g1 <== NOT EXECUTED
2006b2c: ac 10 20 00 clr %l6 <== NOT EXECUTED
2006b30: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2006b34: 02 bf ff f2 be 2006afc <Stack_check_Dump_threads_usage+0xf4><== NOT EXECUTED
2006b38: b0 10 20 00 clr %i0 <== 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);
2006b3c: ea 04 a0 04 ld [ %l2 + 4 ], %l5 <== NOT EXECUTED
size = Stack_check_usable_stack_size(stack);
2006b40: e2 04 80 00 ld [ %l2 ], %l1 <== 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);
2006b44: aa 05 60 10 add %l5, 0x10, %l5 <== NOT EXECUTED
size = Stack_check_usable_stack_size(stack);
2006b48: a2 04 7f f0 add %l1, -16, %l1 <== NOT EXECUTED
high_water_mark = Stack_check_find_high_water_mark(low, size);
2006b4c: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
2006b50: 7f ff ff 96 call 20069a8 <Stack_check_find_high_water_mark><== NOT EXECUTED
2006b54: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if ( high_water_mark )
2006b58: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
used = Stack_check_Calculate_used( low, size, high_water_mark );
2006b5c: a0 05 40 11 add %l5, %l1, %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 )
2006b60: 82 60 20 00 subx %g0, 0, %g1 <== NOT EXECUTED
used = Stack_check_Calculate_used( low, size, high_water_mark );
2006b64: a0 24 00 08 sub %l0, %o0, %l0 <== NOT EXECUTED
else
used = 0;
if ( the_thread ) {
2006b68: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
2006b6c: 12 bf ff c0 bne 2006a6c <Stack_check_Dump_threads_usage+0x64><== NOT EXECUTED
2006b70: a0 0c 00 01 and %l0, %g1, %l0 <== 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 );
2006b74: 2b 00 81 c1 sethi %hi(0x2070400), %l5 <== NOT EXECUTED
2006b78: d0 05 61 5c ld [ %l5 + 0x15c ], %o0 ! 207055c <print_context><== NOT EXECUTED
2006b7c: 13 00 81 90 sethi %hi(0x2064000), %o1 <== NOT EXECUTED
2006b80: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED
2006b84: 9f c5 00 00 call %l4 <== NOT EXECUTED
2006b88: 92 12 62 68 or %o1, 0x268, %o1 <== NOT EXECUTED
}
(*print_handler)(
2006b8c: 10 bf ff c6 b 2006aa4 <Stack_check_Dump_threads_usage+0x9c><== NOT EXECUTED
2006b90: d6 04 80 00 ld [ %l2 ], %o3 <== NOT EXECUTED
02006da8 <Stack_check_Initialize>:
/*
* Stack_check_Initialize
*/
void Stack_check_Initialize( void )
{
2006da8: 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)
2006dac: 21 00 81 c1 sethi %hi(0x2070400), %l0
2006db0: c2 04 21 58 ld [ %l0 + 0x158 ], %g1 ! 2070558 <Stack_check_Initialized>
2006db4: 80 a0 60 00 cmp %g1, 0
2006db8: 12 80 00 20 bne 2006e38 <Stack_check_Initialize+0x90>
2006dbc: 1b 00 81 cc sethi %hi(0x2073000), %o5
2006dc0: 09 00 81 91 sethi %hi(0x2064400), %g4
2006dc4: 9a 13 60 b8 or %o5, 0xb8, %o5
2006dc8: 88 11 20 00 mov %g4, %g4
/*
* Dope the pattern and fill areas
*/
p = Stack_check_Pattern.pattern;
for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) {
p[i] = pattern[ i%4 ];
2006dcc: 84 08 60 03 and %g1, 3, %g2
2006dd0: 85 28 a0 02 sll %g2, 2, %g2
2006dd4: c6 01 00 02 ld [ %g4 + %g2 ], %g3
2006dd8: 85 28 60 02 sll %g1, 2, %g2
/*
* Dope the pattern and fill areas
*/
p = Stack_check_Pattern.pattern;
for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) {
2006ddc: 82 00 60 01 inc %g1
2006de0: 80 a0 60 04 cmp %g1, 4
2006de4: 12 bf ff fa bne 2006dcc <Stack_check_Initialize+0x24>
2006de8: c6 23 40 02 st %g3, [ %o5 + %g2 ]
/*
* 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) {
2006dec: 03 00 81 cc sethi %hi(0x2073000), %g1
2006df0: c2 00 62 c0 ld [ %g1 + 0x2c0 ], %g1 ! 20732c0 <_CPU_Interrupt_stack_low>
2006df4: 80 a0 60 00 cmp %g1, 0
2006df8: 02 80 00 0e be 2006e30 <Stack_check_Initialize+0x88> <== NEVER TAKEN
2006dfc: 05 00 81 cc sethi %hi(0x2073000), %g2
2006e00: c6 00 a2 0c ld [ %g2 + 0x20c ], %g3 ! 207320c <_CPU_Interrupt_stack_high>
2006e04: 80 a0 e0 00 cmp %g3, 0
2006e08: 02 80 00 0a be 2006e30 <Stack_check_Initialize+0x88> <== NEVER TAKEN
2006e0c: 86 20 c0 01 sub %g3, %g1, %g3
Stack_check_Interrupt_stack.area = _CPU_Interrupt_stack_low;
2006e10: 05 00 81 cc sethi %hi(0x2073000), %g2
Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high -
2006e14: c6 20 a0 c8 st %g3, [ %g2 + 0xc8 ] ! 20730c8 <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;
2006e18: 84 10 a0 c8 or %g2, 0xc8, %g2
Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high -
(char *) _CPU_Interrupt_stack_low;
Stack_check_Dope_stack(&Stack_check_Interrupt_stack);
2006e1c: 90 10 00 01 mov %g1, %o0
2006e20: 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;
2006e24: 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);
2006e28: 40 01 15 66 call 204c3c0 <memset>
2006e2c: 92 10 20 a5 mov 0xa5, %o1
}
#endif
Stack_check_Initialized = 1;
2006e30: 82 10 20 01 mov 1, %g1
2006e34: c2 24 21 58 st %g1, [ %l0 + 0x158 ]
2006e38: 81 c7 e0 08 ret
2006e3c: 81 e8 00 00 restore
020069a8 <Stack_check_find_high_water_mark>:
/*
* start at lower memory and find first word that does not
* match pattern
*/
base += PATTERN_SIZE_WORDS;
20069a8: 82 02 20 10 add %o0, 0x10, %g1 <== NOT EXECUTED
for (ebase = base + length; base < ebase; base++)
20069ac: 86 0a 7f fc and %o1, -4, %g3 <== NOT EXECUTED
20069b0: 86 00 40 03 add %g1, %g3, %g3 <== NOT EXECUTED
20069b4: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
20069b8: 1a 80 00 10 bcc 20069f8 <Stack_check_find_high_water_mark+0x50><== NOT EXECUTED
20069bc: 05 29 69 69 sethi %hi(0xa5a5a400), %g2 <== NOT EXECUTED
if (*base != U32_PATTERN)
20069c0: c8 02 20 10 ld [ %o0 + 0x10 ], %g4 <== NOT EXECUTED
20069c4: 84 10 a1 a5 or %g2, 0x1a5, %g2 <== NOT EXECUTED
20069c8: 80 a1 00 02 cmp %g4, %g2 <== NOT EXECUTED
20069cc: 22 80 00 08 be,a 20069ec <Stack_check_find_high_water_mark+0x44><== NOT EXECUTED
20069d0: 82 00 60 04 add %g1, 4, %g1 <== NOT EXECUTED
return (void *) base;
20069d4: 81 c3 e0 08 retl <== NOT EXECUTED
20069d8: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
* match pattern
*/
base += PATTERN_SIZE_WORDS;
for (ebase = base + length; base < ebase; base++)
if (*base != U32_PATTERN)
20069dc: 80 a0 80 04 cmp %g2, %g4 <== NOT EXECUTED
20069e0: 12 80 00 08 bne 2006a00 <Stack_check_find_high_water_mark+0x58><== NOT EXECUTED
20069e4: 90 10 00 01 mov %g1, %o0 <== 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++)
20069e8: 82 00 60 04 add %g1, 4, %g1 <== NOT EXECUTED
20069ec: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED
20069f0: 38 bf ff fb bgu,a 20069dc <Stack_check_find_high_water_mark+0x34><== NOT EXECUTED
20069f4: c4 00 40 00 ld [ %g1 ], %g2 <== NOT EXECUTED
if (*base != U32_PATTERN)
return (void *) base;
#endif
return (void *)0;
}
20069f8: 81 c3 e0 08 retl <== NOT EXECUTED
20069fc: 90 10 20 00 clr %o0 <== NOT EXECUTED
*/
base += PATTERN_SIZE_WORDS;
for (ebase = base + length; base < ebase; base++)
if (*base != U32_PATTERN)
return (void *) base;
2006a00: 81 c3 e0 08 retl <== NOT EXECUTED
02006c08 <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)
{
2006c08: 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");
2006c0c: 11 00 81 90 sethi %hi(0x2064000), %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);
2006c10: e0 06 20 c4 ld [ %i0 + 0xc4 ], %l0
char name [32];
printk("BLOWN STACK!!!\n");
2006c14: 40 00 0c 99 call 2009e78 <printk>
2006c18: 90 12 23 18 or %o0, 0x318, %o0
printk("task control block: 0x%08" PRIxPTR "\n", running);
2006c1c: 92 10 00 18 mov %i0, %o1
2006c20: 11 00 81 90 sethi %hi(0x2064000), %o0
2006c24: 40 00 0c 95 call 2009e78 <printk>
2006c28: 90 12 23 28 or %o0, 0x328, %o0 ! 2064328 <write_test_string.7990+0x4e8>
printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id);
2006c2c: d2 06 20 08 ld [ %i0 + 8 ], %o1
2006c30: 11 00 81 90 sethi %hi(0x2064000), %o0
2006c34: 40 00 0c 91 call 2009e78 <printk>
2006c38: 90 12 23 48 or %o0, 0x348, %o0 ! 2064348 <write_test_string.7990+0x508>
printk(
2006c3c: d2 06 20 0c ld [ %i0 + 0xc ], %o1
2006c40: 11 00 81 90 sethi %hi(0x2064000), %o0
2006c44: 40 00 0c 8d call 2009e78 <printk>
2006c48: 90 12 23 60 or %o0, 0x360, %o0 ! 2064360 <write_test_string.7990+0x520>
"task name: 0x%08" PRIx32 "\n",
running->Object.name.name_u32
);
printk(
2006c4c: d0 06 20 08 ld [ %i0 + 8 ], %o0
2006c50: 94 07 bf e0 add %fp, -32, %o2
2006c54: 40 00 19 bb call 200d340 <rtems_object_get_name>
2006c58: 92 10 20 20 mov 0x20, %o1
2006c5c: 92 10 00 08 mov %o0, %o1
2006c60: 11 00 81 90 sethi %hi(0x2064000), %o0
2006c64: 40 00 0c 85 call 2009e78 <printk>
2006c68: 90 12 23 78 or %o0, 0x378, %o0 ! 2064378 <write_test_string.7990+0x538>
"task name string: %s\n",
rtems_object_get_name(running->Object.id, sizeof(name), name)
);
printk(
2006c6c: d2 06 20 c0 ld [ %i0 + 0xc0 ], %o1
2006c70: d4 06 20 c4 ld [ %i0 + 0xc4 ], %o2
2006c74: 11 00 81 90 sethi %hi(0x2064000), %o0
2006c78: 96 02 80 09 add %o2, %o1, %o3
2006c7c: 40 00 0c 7f call 2009e78 <printk>
2006c80: 90 12 23 90 or %o0, 0x390, %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) {
2006c84: 80 8e 60 ff btst 0xff, %i1
2006c88: 02 80 00 04 be 2006c98 <Stack_check_report_blown_task+0x90><== ALWAYS TAKEN
2006c8c: 96 04 20 18 add %l0, 0x18, %o3
rtems_configuration_get_user_multiprocessing_table()->node
);
}
#endif
rtems_fatal_error_occurred(0x81);
2006c90: 40 00 1c 6b call 200de3c <rtems_fatal_error_occurred>
2006c94: 90 10 20 81 mov 0x81, %o0
(unsigned long) stack->size,
stack->area,
((char *) stack->area + stack->size)
);
if (!pattern_ok) {
printk(
2006c98: 11 00 81 90 sethi %hi(0x2064000), %o0
2006c9c: 92 10 20 10 mov 0x10, %o1
2006ca0: 90 12 23 c8 or %o0, 0x3c8, %o0
2006ca4: 40 00 0c 75 call 2009e78 <printk>
2006ca8: 94 04 20 08 add %l0, 8, %o2
2006cac: 30 bf ff f9 b,a 2006c90 <Stack_check_report_blown_task+0x88>
02048168 <T.54>:
return 0;
}
static int
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
2048168: 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;
204816c: c0 2e 80 00 clrb [ %i2 ] <== NOT EXECUTED
/*
* Load the bitmap.
*/
rc = rtems_rfs_bitmap_load_map (control, &map);
2048170: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2048174: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
2048178: 7f ff fe dd call 2047cec <rtems_rfs_bitmap_load_map> <== NOT EXECUTED
204817c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
if (rc > 0)
2048180: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2048184: 24 80 00 04 ble,a 2048194 <T.54+0x2c> <== NOT EXECUTED
2048188: e2 06 40 00 ld [ %i1 ], %l1 <== NOT EXECUTED
}
while (((direction < 0) && (test_bit >= end_bit))
|| ((direction > 0) && (test_bit <= end_bit)));
return 0;
}
204818c: 81 c7 e0 08 ret <== NOT EXECUTED
2048190: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
/*
* Calculate the bit we are testing plus the end point we search over.
*/
test_bit = *bit;
end_bit = test_bit + (window * direction);
2048194: a5 2e e0 0b sll %i3, 0xb, %l2 <== NOT EXECUTED
if (end_bit < 0)
2048198: a4 84 80 11 addcc %l2, %l1, %l2 <== NOT EXECUTED
204819c: 2c 80 00 06 bneg,a 20481b4 <T.54+0x4c> <== NOT EXECUTED
20481a0: a4 10 20 00 clr %l2 <== NOT EXECUTED
end_bit = 0;
else if (end_bit >= control->size)
20481a4: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
20481a8: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED
20481ac: 3a 80 00 02 bcc,a 20481b4 <T.54+0x4c> <== NOT EXECUTED
20481b0: 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];
20481b4: ee 04 20 14 ld [ %l0 + 0x14 ], %l7 <== NOT EXECUTED
20481b8: 83 3c 60 0a sra %l1, 0xa, %g1 <== NOT EXECUTED
map_bits = &map[map_index];
20481bc: ea 07 bf fc ld [ %fp + -4 ], %l5 <== 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];
20481c0: 83 28 60 02 sll %g1, 2, %g1 <== 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);
20481c4: a9 3c 60 05 sra %l1, 5, %l4 <== 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];
20481c8: ae 05 c0 01 add %l7, %g1, %l7 <== NOT EXECUTED
map_bits = &map[map_index];
20481cc: 83 2d 20 02 sll %l4, 2, %g1 <== NOT EXECUTED
test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset;
search_offset += direction;
if (((direction < 0) && (test_bit <= end_bit))
20481d0: b9 36 e0 1f srl %i3, 0x1f, %i4 <== 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];
20481d4: aa 05 40 01 add %l5, %g1, %l5 <== 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);
20481d8: ac 0c 60 1f and %l1, 0x1f, %l6 <== NOT EXECUTED
search_index = rtems_rfs_bitmap_map_index (map_index);
search_offset = rtems_rfs_bitmap_map_offset (map_index);
20481dc: 90 0d 20 1f and %l4, 0x1f, %o0 <== NOT EXECUTED
map_offset += direction;
test_bit += direction;
}
}
map_bits += direction;
20481e0: bb 2e e0 02 sll %i3, 2, %i5 <== NOT EXECUTED
return 0;
}
static int
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
20481e4: 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);
20481e8: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED
test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset;
search_offset += direction;
if (((direction < 0) && (test_bit <= end_bit))
20481ec: b0 0f 20 ff and %i4, 0xff, %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))
20481f0: d6 05 c0 00 ld [ %l7 ], %o3 <== NOT EXECUTED
return 0;
}
static int
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
20481f4: 98 05 00 1b add %l4, %i3, %o4 <== 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))
20481f8: 80 a2 e0 00 cmp %o3, 0 <== NOT EXECUTED
20481fc: 12 80 00 30 bne 20482bc <T.54+0x154> <== NOT EXECUTED
2048200: 99 2b 20 05 sll %o4, 5, %o4 <== 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)
2048204: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2048208: 04 80 00 80 ble 2048408 <T.54+0x2a0> <== NOT EXECUTED
204820c: a2 0c 7f e0 and %l1, -32, %l1 <== NOT EXECUTED
{
bits_skipped = rtems_rfs_bitmap_element_bits () - search_offset;
2048210: 84 10 20 20 mov 0x20, %g2 <== NOT EXECUTED
test_bit += bits_skipped * rtems_rfs_bitmap_element_bits ();
2048214: ac 10 20 00 clr %l6 <== 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;
2048218: 90 20 80 08 sub %g2, %o0, %o0 <== NOT EXECUTED
test_bit += bits_skipped * rtems_rfs_bitmap_element_bits ();
204821c: 85 2a 20 05 sll %o0, 5, %g2 <== NOT EXECUTED
2048220: a2 00 80 11 add %g2, %l1, %l1 <== 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;
2048224: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED
2048228: 7f fe ea 59 call 2002b8c <.umul> <== NOT EXECUTED
204822c: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
2048230: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
map_index += direction * bits_skipped;
2048234: a8 05 00 08 add %l4, %o0, %l4 <== 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;
2048238: 91 2a 20 02 sll %o0, 2, %o0 <== NOT EXECUTED
204823c: aa 05 40 08 add %l5, %o0, %l5 <== NOT EXECUTED
map_index += direction * bits_skipped;
}
search_bits += direction;
search_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
2048240: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2048244: 04 80 00 6a ble 20483ec <T.54+0x284> <== NOT EXECUTED
2048248: ae 05 c0 1d add %l7, %i5, %l7 <== NOT EXECUTED
204824c: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED
2048250: 14 80 00 4d bg 2048384 <T.54+0x21c> <== NOT EXECUTED
2048254: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED
2048258: 84 10 20 00 clr %g2 <== NOT EXECUTED
204825c: 90 10 20 00 clr %o0 <== NOT EXECUTED
}
while (((direction < 0) && (test_bit >= end_bit))
|| ((direction > 0) && (test_bit <= end_bit)));
2048260: 80 88 e0 ff btst 0xff, %g3 <== NOT EXECUTED
2048264: 12 80 00 3f bne 2048360 <T.54+0x1f8> <== NOT EXECUTED
2048268: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED
204826c: 16 80 00 42 bge 2048374 <T.54+0x20c> <== NOT EXECUTED
2048270: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2048274: 10 bf ff c6 b 204818c <T.54+0x24> <== NOT EXECUTED
2048278: 90 10 20 00 clr %o0 <== NOT EXECUTED
return 0;
}
static int
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
204827c: a8 06 c0 14 add %i3, %l4, %l4 <== NOT EXECUTED
}
}
map_bits += direction;
map_index += direction;
map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
2048280: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2048284: a2 10 20 00 clr %l1 <== NOT EXECUTED
2048288: 04 80 00 42 ble 2048390 <T.54+0x228> <== NOT EXECUTED
204828c: ac 10 20 00 clr %l6 <== NOT EXECUTED
test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset;
2048290: a2 03 00 11 add %o4, %l1, %l1 <== NOT EXECUTED
search_offset += direction;
if (((direction < 0) && (test_bit <= end_bit))
2048294: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED
2048298: 16 80 00 28 bge 2048338 <T.54+0x1d0> <== NOT EXECUTED
204829c: 84 10 00 1c mov %i4, %g2 <== NOT EXECUTED
20482a0: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED
20482a4: 14 80 00 05 bg 20482b8 <T.54+0x150> <== NOT EXECUTED
20482a8: 98 03 00 01 add %o4, %g1, %o4 <== NOT EXECUTED
20482ac: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
20482b0: 34 80 00 4d bg,a 20483e4 <T.54+0x27c> <== NOT EXECUTED
20482b4: ae 05 c0 1d add %l7, %i5, %l7 <== NOT EXECUTED
20482b8: 90 06 c0 08 add %i3, %o0, %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)
20482bc: 80 a2 20 1f cmp %o0, 0x1f <== NOT EXECUTED
20482c0: 18 bf ff e1 bgu 2048244 <T.54+0xdc> <== NOT EXECUTED
20482c4: 80 a6 e0 00 cmp %i3, 0 <== 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);
20482c8: 95 2c c0 08 sll %l3, %o0, %o2 <== 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))
20482cc: 80 8a 80 0b btst %o2, %o3 <== NOT EXECUTED
20482d0: 22 bf ff eb be,a 204827c <T.54+0x114> <== NOT EXECUTED
20482d4: aa 05 40 1d add %l5, %i5, %l5 <== 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))
20482d8: da 05 40 00 ld [ %l5 ], %o5 <== 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);
20482dc: 87 2c c0 16 sll %l3, %l6, %g3 <== 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))
20482e0: 80 88 c0 0d btst %g3, %o5 <== NOT EXECUTED
20482e4: 12 80 00 2e bne 204839c <T.54+0x234> <== NOT EXECUTED
20482e8: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED
*found = true;
rtems_rfs_buffer_mark_dirty (control->buffer);
return 0;
}
if (test_bit == end_bit)
20482ec: ac 05 80 1b add %l6, %i3, %l6 <== NOT EXECUTED
20482f0: 12 80 00 0d bne 2048324 <T.54+0x1bc> <== NOT EXECUTED
20482f4: 84 04 40 1b add %l1, %i3, %g2 <== NOT EXECUTED
map_offset += direction;
test_bit += direction;
}
}
map_bits += direction;
20482f8: 10 bf ff e1 b 204827c <T.54+0x114> <== NOT EXECUTED
20482fc: aa 05 40 1d add %l5, %i5, %l5 <== NOT EXECUTED
*found = true;
rtems_rfs_buffer_mark_dirty (control->buffer);
return 0;
}
if (test_bit == end_bit)
2048300: a2 10 00 02 mov %g2, %l1 <== 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))
2048304: 80 88 c0 0d btst %g3, %o5 <== NOT EXECUTED
2048308: 12 80 00 25 bne 204839c <T.54+0x234> <== NOT EXECUTED
204830c: ac 05 80 1b add %l6, %i3, %l6 <== NOT EXECUTED
*search_bits = rtems_rfs_bitmap_set (*search_bits,
1 << search_offset);
control->free--;
*bit = test_bit;
*found = true;
rtems_rfs_buffer_mark_dirty (control->buffer);
2048310: 84 00 80 1b add %g2, %i3, %g2 <== NOT EXECUTED
return 0;
}
if (test_bit == end_bit)
2048314: 88 20 80 1b sub %g2, %i3, %g4 <== NOT EXECUTED
2048318: 80 a4 80 04 cmp %l2, %g4 <== NOT EXECUTED
204831c: 22 bf ff d8 be,a 204827c <T.54+0x114> <== NOT EXECUTED
2048320: aa 05 40 1d add %l5, %i5, %l5 <== 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)
2048324: 80 a5 a0 1f cmp %l6, 0x1f <== NOT EXECUTED
2048328: 28 bf ff f6 bleu,a 2048300 <T.54+0x198> <== NOT EXECUTED
204832c: 87 2c c0 16 sll %l3, %l6, %g3 <== NOT EXECUTED
map_offset += direction;
test_bit += direction;
}
}
map_bits += direction;
2048330: 10 bf ff d3 b 204827c <T.54+0x114> <== NOT EXECUTED
2048334: aa 05 40 1d add %l5, %i5, %l5 <== NOT EXECUTED
test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset;
search_offset += direction;
if (((direction < 0) && (test_bit <= end_bit))
2048338: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
204833c: 02 bf ff da be 20482a4 <T.54+0x13c> <== NOT EXECUTED
2048340: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED
}
map_bits += direction * bits_skipped;
map_index += direction * bits_skipped;
}
search_bits += direction;
2048344: ae 05 c0 1d add %l7, %i5, %l7 <== NOT EXECUTED
2048348: 04 80 00 03 ble 2048354 <T.54+0x1ec> <== NOT EXECUTED
204834c: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED
2048350: 86 10 20 00 clr %g3 <== NOT EXECUTED
2048354: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
2048358: 10 bf ff c2 b 2048260 <T.54+0xf8> <== NOT EXECUTED
204835c: 90 10 20 1f mov 0x1f, %o0 <== 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)));
2048360: 80 88 a0 ff btst 0xff, %g2 <== NOT EXECUTED
2048364: 32 bf ff a4 bne,a 20481f4 <T.54+0x8c> <== NOT EXECUTED
2048368: d6 05 c0 00 ld [ %l7 ], %o3 <== NOT EXECUTED
204836c: 10 bf ff c0 b 204826c <T.54+0x104> <== NOT EXECUTED
2048370: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED
2048374: 34 bf ff a0 bg,a 20481f4 <T.54+0x8c> <== NOT EXECUTED
2048378: d6 05 c0 00 ld [ %l7 ], %o3 <== NOT EXECUTED
204837c: 10 bf ff 84 b 204818c <T.54+0x24> <== NOT EXECUTED
2048380: 90 10 20 00 clr %o0 <== NOT EXECUTED
map_bits += direction * bits_skipped;
map_index += direction * bits_skipped;
}
search_bits += direction;
search_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
2048384: 86 10 20 00 clr %g3 <== NOT EXECUTED
2048388: 10 bf ff b5 b 204825c <T.54+0xf4> <== NOT EXECUTED
204838c: 84 10 20 00 clr %g2 <== NOT EXECUTED
}
}
map_bits += direction;
map_index += direction;
map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
2048390: a2 10 20 1f mov 0x1f, %l1 <== NOT EXECUTED
2048394: 10 bf ff bf b 2048290 <T.54+0x128> <== NOT EXECUTED
2048398: ac 10 20 1f mov 0x1f, %l6 <== 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);
204839c: 86 2b 40 03 andn %o5, %g3, %g3 <== 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,
20483a0: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
20483a4: 12 80 00 05 bne 20483b8 <T.54+0x250> <== NOT EXECUTED
20483a8: c6 25 40 00 st %g3, [ %l5 ] <== NOT EXECUTED
RTEMS_RFS_BITMAP_ELEMENT_SET))
*search_bits = rtems_rfs_bitmap_set (*search_bits,
20483ac: c2 05 c0 00 ld [ %l7 ], %g1 <== NOT EXECUTED
20483b0: 94 28 40 0a andn %g1, %o2, %o2 <== NOT EXECUTED
20483b4: d4 25 c0 00 st %o2, [ %l7 ] <== NOT EXECUTED
1 << search_offset);
control->free--;
20483b8: c4 04 20 10 ld [ %l0 + 0x10 ], %g2 <== NOT EXECUTED
*bit = test_bit;
*found = true;
rtems_rfs_buffer_mark_dirty (control->buffer);
20483bc: 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;
20483c0: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20483c4: c2 2e 80 00 stb %g1, [ %i2 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
20483c8: c2 28 c0 00 stb %g1, [ %g3 ] <== NOT EXECUTED
20483cc: 90 10 20 00 clr %o0 <== 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--;
20483d0: 82 00 bf ff add %g2, -1, %g1 <== NOT EXECUTED
*bit = test_bit;
20483d4: 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--;
20483d8: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED
}
while (((direction < 0) && (test_bit >= end_bit))
|| ((direction > 0) && (test_bit <= end_bit)));
return 0;
}
20483dc: 81 c7 e0 08 ret <== NOT EXECUTED
20483e0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
}
map_bits += direction * bits_skipped;
map_index += direction * bits_skipped;
}
search_bits += direction;
20483e4: 10 bf ff 9e b 204825c <T.54+0xf4> <== NOT EXECUTED
20483e8: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED
search_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
20483ec: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED
20483f0: 84 10 00 1c mov %i4, %g2 <== NOT EXECUTED
20483f4: 04 bf ff d9 ble 2048358 <T.54+0x1f0> <== NOT EXECUTED
20483f8: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED
20483fc: 86 10 20 00 clr %g3 <== NOT EXECUTED
}
map_bits += direction * bits_skipped;
map_index += direction * bits_skipped;
}
search_bits += direction;
2048400: 10 bf ff 98 b 2048260 <T.54+0xf8> <== NOT EXECUTED
2048404: 90 10 20 1f mov 0x1f, %o0 <== 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;
2048408: 85 2a 20 05 sll %o0, 5, %g2 <== NOT EXECUTED
204840c: ac 10 20 1f mov 0x1f, %l6 <== NOT EXECUTED
2048410: 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;
2048414: 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;
2048418: 10 bf ff 83 b 2048224 <T.54+0xbc> <== NOT EXECUTED
204841c: a2 00 80 11 add %g2, %l1, %l1 <== NOT EXECUTED
02007110 <_API_extensions_Run_postdriver>:
*
* _API_extensions_Run_postdriver
*/
void _API_extensions_Run_postdriver( void )
{
2007110: 9d e3 bf a0 save %sp, -96, %sp
Chain_Node *the_node;
API_extensions_Control *the_extension;
for ( the_node = _API_extensions_List.first ;
2007114: 23 00 80 77 sethi %hi(0x201dc00), %l1
2007118: e0 04 61 f4 ld [ %l1 + 0x1f4 ], %l0 ! 201ddf4 <_API_extensions_List>
200711c: a2 14 61 f4 or %l1, 0x1f4, %l1
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
2007120: a2 04 60 04 add %l1, 4, %l1
2007124: 80 a4 00 11 cmp %l0, %l1
2007128: 02 80 00 09 be 200714c <_API_extensions_Run_postdriver+0x3c><== NEVER TAKEN
200712c: 01 00 00 00 nop
* Currently all APIs configure this hook so it is always non-NULL.
*/
#if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
if ( the_extension->postdriver_hook )
#endif
(*the_extension->postdriver_hook)();
2007130: c2 04 20 08 ld [ %l0 + 8 ], %g1
2007134: 9f c0 40 00 call %g1
2007138: 01 00 00 00 nop
Chain_Node *the_node;
API_extensions_Control *the_extension;
for ( the_node = _API_extensions_List.first ;
!_Chain_Is_tail( &_API_extensions_List, the_node ) ;
the_node = the_node->next ) {
200713c: e0 04 00 00 ld [ %l0 ], %l0
void _API_extensions_Run_postdriver( void )
{
Chain_Node *the_node;
API_extensions_Control *the_extension;
for ( the_node = _API_extensions_List.first ;
2007140: 80 a4 00 11 cmp %l0, %l1
2007144: 32 bf ff fc bne,a 2007134 <_API_extensions_Run_postdriver+0x24><== NEVER TAKEN
2007148: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED
200714c: 81 c7 e0 08 ret
2007150: 81 e8 00 00 restore
02007154 <_API_extensions_Run_postswitch>:
*
* _API_extensions_Run_postswitch
*/
void _API_extensions_Run_postswitch( void )
{
2007154: 9d e3 bf a0 save %sp, -96, %sp
Chain_Node *the_node;
API_extensions_Control *the_extension;
for ( the_node = _API_extensions_List.first ;
2007158: 23 00 80 77 sethi %hi(0x201dc00), %l1
200715c: e0 04 61 f4 ld [ %l1 + 0x1f4 ], %l0 ! 201ddf4 <_API_extensions_List>
2007160: a2 14 61 f4 or %l1, 0x1f4, %l1
2007164: a2 04 60 04 add %l1, 4, %l1
2007168: 80 a4 00 11 cmp %l0, %l1
200716c: 02 80 00 0a be 2007194 <_API_extensions_Run_postswitch+0x40><== NEVER TAKEN
2007170: 25 00 80 77 sethi %hi(0x201dc00), %l2
2007174: a4 14 a0 70 or %l2, 0x70, %l2 ! 201dc70 <_Thread_Executing>
* provide this hook.
*/
#if defined(RTEMS_ITRON_API)
if ( the_extension->postswitch_hook )
#endif
(*the_extension->postswitch_hook)( _Thread_Executing );
2007178: c2 04 20 0c ld [ %l0 + 0xc ], %g1
200717c: 9f c0 40 00 call %g1
2007180: d0 04 80 00 ld [ %l2 ], %o0
Chain_Node *the_node;
API_extensions_Control *the_extension;
for ( the_node = _API_extensions_List.first ;
!_Chain_Is_tail( &_API_extensions_List, the_node ) ;
the_node = the_node->next ) {
2007184: e0 04 00 00 ld [ %l0 ], %l0
void _API_extensions_Run_postswitch( void )
{
Chain_Node *the_node;
API_extensions_Control *the_extension;
for ( the_node = _API_extensions_List.first ;
2007188: 80 a4 00 11 cmp %l0, %l1
200718c: 32 bf ff fc bne,a 200717c <_API_extensions_Run_postswitch+0x28><== NEVER TAKEN
2007190: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
2007194: 81 c7 e0 08 ret
2007198: 81 e8 00 00 restore
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
02017af0 <_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
)
{
2017af0: 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 ) {
2017af4: 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
)
{
2017af8: 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 ) {
2017afc: 80 a0 40 1a cmp %g1, %i2
2017b00: 0a 80 00 17 bcs 2017b5c <_CORE_message_queue_Broadcast+0x6c><== NEVER TAKEN
2017b04: 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 ) {
2017b08: c2 04 20 48 ld [ %l0 + 0x48 ], %g1
2017b0c: 80 a0 60 00 cmp %g1, 0
2017b10: 02 80 00 0a be 2017b38 <_CORE_message_queue_Broadcast+0x48>
2017b14: a4 10 20 00 clr %l2
*count = 0;
2017b18: c0 27 40 00 clr [ %i5 ]
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
2017b1c: 81 c7 e0 08 ret
2017b20: 91 e8 20 00 restore %g0, 0, %o0
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
2017b24: d0 04 60 2c ld [ %l1 + 0x2c ], %o0
2017b28: 40 00 29 fb call 2022314 <memcpy>
2017b2c: a4 04 a0 01 inc %l2
buffer,
waitp->return_argument_second.mutable_object,
size
);
*(size_t *) the_thread->Wait.return_argument = size;
2017b30: c2 04 60 28 ld [ %l1 + 0x28 ], %g1
2017b34: 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))) {
2017b38: 40 00 0a 9e call 201a5b0 <_Thread_queue_Dequeue>
2017b3c: 90 10 00 10 mov %l0, %o0
2017b40: 92 10 00 19 mov %i1, %o1
2017b44: a2 10 00 08 mov %o0, %l1
/*
* There must be no pending messages if there is a thread waiting to
* receive a message.
*/
number_broadcasted = 0;
while ((the_thread =
2017b48: 80 a2 20 00 cmp %o0, 0
2017b4c: 12 bf ff f6 bne 2017b24 <_CORE_message_queue_Broadcast+0x34>
2017b50: 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;
2017b54: e4 27 40 00 st %l2, [ %i5 ]
2017b58: b0 10 20 00 clr %i0
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
}
2017b5c: 81 c7 e0 08 ret
2017b60: 81 e8 00 00 restore
020111b0 <_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
)
{
20111b0: 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;
20111b4: 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;
20111b8: 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;
20111bc: 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)) {
20111c0: 80 8e e0 03 btst 3, %i3
20111c4: 02 80 00 09 be 20111e8 <_CORE_message_queue_Initialize+0x38>
20111c8: a2 10 00 1b mov %i3, %l1
allocated_message_size += sizeof(uint32_t);
20111cc: a2 06 e0 04 add %i3, 4, %l1
allocated_message_size &= ~(sizeof(uint32_t) - 1);
20111d0: a2 0c 7f fc and %l1, -4, %l1
}
if (allocated_message_size < maximum_message_size)
20111d4: 80 a6 c0 11 cmp %i3, %l1
20111d8: 08 80 00 05 bleu 20111ec <_CORE_message_queue_Initialize+0x3c><== ALWAYS TAKEN
20111dc: a0 04 60 10 add %l1, 0x10, %l0
STATES_WAITING_FOR_MESSAGE,
CORE_MESSAGE_QUEUE_STATUS_TIMEOUT
);
return true;
}
20111e0: 81 c7 e0 08 ret
20111e4: 91 e8 20 00 restore %g0, 0, %o0
/*
* 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));
20111e8: 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 *
20111ec: 92 10 00 1a mov %i2, %o1
20111f0: 40 00 53 06 call 2025e08 <.umul>
20111f4: 90 10 00 10 mov %l0, %o0
(allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
if (message_buffering_required < allocated_message_size)
20111f8: 80 a2 00 11 cmp %o0, %l1
20111fc: 0a bf ff f9 bcs 20111e0 <_CORE_message_queue_Initialize+0x30><== NEVER TAKEN
2011200: 01 00 00 00 nop
return false;
/*
* Attempt to allocate the message memory
*/
the_message_queue->message_buffers = (CORE_message_queue_Buffer *)
2011204: 40 00 0c 7a call 20143ec <_Workspace_Allocate>
2011208: 01 00 00 00 nop
_Workspace_Allocate( message_buffering_required );
if (the_message_queue->message_buffers == 0)
201120c: 80 a2 20 00 cmp %o0, 0
2011210: 02 bf ff f4 be 20111e0 <_CORE_message_queue_Initialize+0x30>
2011214: d0 26 20 5c st %o0, [ %i0 + 0x5c ]
/*
* Initialize the pool of inactive messages, pending messages,
* and set of waiting threads.
*/
_Chain_Initialize (
2011218: 92 10 00 08 mov %o0, %o1
201121c: 94 10 00 1a mov %i2, %o2
2011220: 90 06 20 60 add %i0, 0x60, %o0
2011224: 40 00 19 cf call 2017960 <_Chain_Initialize>
2011228: 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(
201122c: 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;
2011230: c0 26 20 54 clr [ %i0 + 0x54 ]
2011234: 82 18 60 01 xor %g1, 1, %g1
2011238: 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);
201123c: 82 06 20 54 add %i0, 0x54, %g1
2011240: c2 26 20 50 st %g1, [ %i0 + 0x50 ]
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
2011244: 82 06 20 50 add %i0, 0x50, %g1
2011248: 90 10 00 18 mov %i0, %o0
201124c: c2 26 20 58 st %g1, [ %i0 + 0x58 ]
2011250: 92 60 3f ff subx %g0, -1, %o1
2011254: 94 10 20 80 mov 0x80, %o2
2011258: 96 10 20 06 mov 6, %o3
201125c: 40 00 09 22 call 20136e4 <_Thread_queue_Initialize>
2011260: 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;
2011264: 81 c7 e0 08 ret
2011268: 81 e8 00 00 restore
020074bc <_CORE_mutex_Seize>:
Objects_Id _id,
bool _wait,
Watchdog_Interval _timeout,
ISR_Level _level
)
{
20074bc: 9d e3 bf a0 save %sp, -96, %sp
_CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level );
20074c0: 21 00 80 76 sethi %hi(0x201d800), %l0
20074c4: c2 04 23 b0 ld [ %l0 + 0x3b0 ], %g1 ! 201dbb0 <_Thread_Dispatch_disable_level>
20074c8: 80 a0 60 00 cmp %g1, 0
20074cc: 02 80 00 05 be 20074e0 <_CORE_mutex_Seize+0x24>
20074d0: f8 27 a0 54 st %i4, [ %fp + 0x54 ]
20074d4: 80 8e a0 ff btst 0xff, %i2
20074d8: 12 80 00 1a bne 2007540 <_CORE_mutex_Seize+0x84> <== ALWAYS TAKEN
20074dc: 03 00 80 77 sethi %hi(0x201dc00), %g1
20074e0: 90 10 00 18 mov %i0, %o0
20074e4: 40 00 18 a1 call 200d768 <_CORE_mutex_Seize_interrupt_trylock>
20074e8: 92 07 a0 54 add %fp, 0x54, %o1
20074ec: 80 a2 20 00 cmp %o0, 0
20074f0: 02 80 00 12 be 2007538 <_CORE_mutex_Seize+0x7c>
20074f4: 80 8e a0 ff btst 0xff, %i2
20074f8: 02 80 00 1a be 2007560 <_CORE_mutex_Seize+0xa4>
20074fc: 01 00 00 00 nop
2007500: c4 04 23 b0 ld [ %l0 + 0x3b0 ], %g2
2007504: 03 00 80 77 sethi %hi(0x201dc00), %g1
2007508: c2 00 60 70 ld [ %g1 + 0x70 ], %g1 ! 201dc70 <_Thread_Executing>
200750c: f2 20 60 20 st %i1, [ %g1 + 0x20 ]
2007510: f0 20 60 44 st %i0, [ %g1 + 0x44 ]
2007514: 82 00 a0 01 add %g2, 1, %g1
2007518: c2 24 23 b0 st %g1, [ %l0 + 0x3b0 ]
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;
200751c: 82 10 20 01 mov 1, %g1
2007520: c2 26 20 30 st %g1, [ %i0 + 0x30 ]
2007524: 7f ff ea e4 call 20020b4 <sparc_enable_interrupts>
2007528: d0 07 a0 54 ld [ %fp + 0x54 ], %o0
200752c: 90 10 00 18 mov %i0, %o0
2007530: 7f ff ff c0 call 2007430 <_CORE_mutex_Seize_interrupt_blocking>
2007534: 92 10 00 1b mov %i3, %o1
2007538: 81 c7 e0 08 ret
200753c: 81 e8 00 00 restore
2007540: c2 00 61 50 ld [ %g1 + 0x150 ], %g1
2007544: 80 a0 60 01 cmp %g1, 1
2007548: 28 bf ff e7 bleu,a 20074e4 <_CORE_mutex_Seize+0x28>
200754c: 90 10 00 18 mov %i0, %o0
2007550: 90 10 20 00 clr %o0
2007554: 92 10 20 00 clr %o1
2007558: 40 00 01 c5 call 2007c6c <_Internal_error_Occurred>
200755c: 94 10 20 13 mov 0x13, %o2
2007560: 7f ff ea d5 call 20020b4 <sparc_enable_interrupts>
2007564: d0 07 a0 54 ld [ %fp + 0x54 ], %o0
2007568: 03 00 80 77 sethi %hi(0x201dc00), %g1
200756c: c2 00 60 70 ld [ %g1 + 0x70 ], %g1 ! 201dc70 <_Thread_Executing>
2007570: 84 10 20 01 mov 1, %g2
2007574: c4 20 60 34 st %g2, [ %g1 + 0x34 ]
2007578: 81 c7 e0 08 ret
200757c: 81 e8 00 00 restore
0200d768 <_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
)
{
200d768: 9d e3 bf a0 save %sp, -96, %sp
{
Thread_Control *executing;
/* disabled when you get here */
executing = _Thread_Executing;
200d76c: 03 00 80 77 sethi %hi(0x201dc00), %g1
200d770: c2 00 60 70 ld [ %g1 + 0x70 ], %g1 ! 201dc70 <_Thread_Executing>
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
200d774: c0 20 60 34 clr [ %g1 + 0x34 ]
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
200d778: c4 06 20 50 ld [ %i0 + 0x50 ], %g2
200d77c: 80 a0 a0 00 cmp %g2, 0
200d780: 22 80 00 13 be,a 200d7cc <_CORE_mutex_Seize_interrupt_trylock+0x64>
200d784: c4 06 20 5c ld [ %i0 + 0x5c ], %g2
the_mutex->lock = CORE_MUTEX_LOCKED;
200d788: c0 26 20 50 clr [ %i0 + 0x50 ]
the_mutex->holder = executing;
the_mutex->holder_id = executing->Object.id;
200d78c: 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;
200d790: 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;
200d794: 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;
200d798: c2 26 20 5c st %g1, [ %i0 + 0x5c ]
the_mutex->holder_id = executing->Object.id;
the_mutex->nest_count = 1;
200d79c: 86 10 20 01 mov 1, %g3
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
200d7a0: 80 a0 a0 02 cmp %g2, 2
200d7a4: 02 80 00 0f be 200d7e0 <_CORE_mutex_Seize_interrupt_trylock+0x78>
200d7a8: c6 26 20 54 st %g3, [ %i0 + 0x54 ]
200d7ac: 80 a0 a0 03 cmp %g2, 3
200d7b0: 22 80 00 1f be,a 200d82c <_CORE_mutex_Seize_interrupt_trylock+0xc4>
200d7b4: da 00 60 1c ld [ %g1 + 0x1c ], %o5
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;
_ISR_Enable( *level_p );
200d7b8: d0 06 40 00 ld [ %i1 ], %o0
200d7bc: 7f ff d2 3e call 20020b4 <sparc_enable_interrupts>
200d7c0: b0 10 20 00 clr %i0
200d7c4: 81 c7 e0 08 ret
200d7c8: 81 e8 00 00 restore
/*
* 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 ) ) {
200d7cc: 80 a0 40 02 cmp %g1, %g2
200d7d0: 22 80 00 0c be,a 200d800 <_CORE_mutex_Seize_interrupt_trylock+0x98>
200d7d4: c4 06 20 40 ld [ %i0 + 0x40 ], %g2
return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p );
}
200d7d8: 81 c7 e0 08 ret
200d7dc: 91 e8 20 01 restore %g0, 1, %o0
_Chain_Prepend_unprotected( &executing->lock_mutex,
&the_mutex->queue.lock_queue );
the_mutex->queue.priority_before = executing->current_priority;
#endif
executing->resource_count++;
200d7e0: c4 00 60 1c ld [ %g1 + 0x1c ], %g2
200d7e4: 84 00 a0 01 inc %g2
200d7e8: c4 20 60 1c st %g2, [ %g1 + 0x1c ]
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;
_ISR_Enable( *level_p );
200d7ec: d0 06 40 00 ld [ %i1 ], %o0
200d7f0: 7f ff d2 31 call 20020b4 <sparc_enable_interrupts>
200d7f4: b0 10 20 00 clr %i0
200d7f8: 81 c7 e0 08 ret
200d7fc: 81 e8 00 00 restore
* 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 ) ) {
switch ( the_mutex->Attributes.lock_nesting_behavior ) {
200d800: 80 a0 a0 00 cmp %g2, 0
200d804: 12 80 00 2b bne 200d8b0 <_CORE_mutex_Seize_interrupt_trylock+0x148>
200d808: 80 a0 a0 01 cmp %g2, 1
case CORE_MUTEX_NESTING_ACQUIRES:
the_mutex->nest_count++;
200d80c: c2 06 20 54 ld [ %i0 + 0x54 ], %g1
200d810: 82 00 60 01 inc %g1
200d814: c2 26 20 54 st %g1, [ %i0 + 0x54 ]
_ISR_Enable( *level_p );
200d818: d0 06 40 00 ld [ %i1 ], %o0
200d81c: 7f ff d2 26 call 20020b4 <sparc_enable_interrupts>
200d820: b0 10 20 00 clr %i0
200d824: 81 c7 e0 08 ret
200d828: 81 e8 00 00 restore
{
Priority_Control ceiling;
Priority_Control current;
ceiling = the_mutex->Attributes.priority_ceiling;
current = executing->current_priority;
200d82c: c4 00 60 14 ld [ %g1 + 0x14 ], %g2
_Chain_Prepend_unprotected( &executing->lock_mutex,
&the_mutex->queue.lock_queue );
the_mutex->queue.priority_before = executing->current_priority;
#endif
executing->resource_count++;
200d830: 88 03 60 01 add %o5, 1, %g4
200d834: c8 20 60 1c st %g4, [ %g1 + 0x1c ]
*/
{
Priority_Control ceiling;
Priority_Control current;
ceiling = the_mutex->Attributes.priority_ceiling;
200d838: c8 06 20 4c ld [ %i0 + 0x4c ], %g4
current = executing->current_priority;
if ( current == ceiling ) {
200d83c: 80 a1 00 02 cmp %g4, %g2
200d840: 02 bf ff de be 200d7b8 <_CORE_mutex_Seize_interrupt_trylock+0x50>
200d844: 01 00 00 00 nop
_ISR_Enable( *level_p );
return 0;
}
if ( current > ceiling ) {
200d848: 1a 80 00 11 bcc 200d88c <_CORE_mutex_Seize_interrupt_trylock+0x124>
200d84c: 84 10 20 06 mov 6, %g2 ! 6 <PROM_START+0x6>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
200d850: 03 00 80 76 sethi %hi(0x201d800), %g1
200d854: c4 00 63 b0 ld [ %g1 + 0x3b0 ], %g2 ! 201dbb0 <_Thread_Dispatch_disable_level>
200d858: 84 00 a0 01 inc %g2
200d85c: c4 20 63 b0 st %g2, [ %g1 + 0x3b0 ]
_Thread_Disable_dispatch();
_ISR_Enable( *level_p );
200d860: 7f ff d2 15 call 20020b4 <sparc_enable_interrupts>
200d864: d0 06 40 00 ld [ %i1 ], %o0
_Thread_Change_priority(
200d868: d2 06 20 4c ld [ %i0 + 0x4c ], %o1
200d86c: d0 06 20 5c ld [ %i0 + 0x5c ], %o0
200d870: 94 10 20 00 clr %o2
200d874: 7f ff eb 83 call 2008680 <_Thread_Change_priority>
200d878: b0 10 20 00 clr %i0
the_mutex->holder,
the_mutex->Attributes.priority_ceiling,
false
);
_Thread_Enable_dispatch();
200d87c: 7f ff ed 1f call 2008cf8 <_Thread_Enable_dispatch>
200d880: 01 00 00 00 nop
200d884: 81 c7 e0 08 ret
200d888: 81 e8 00 00 restore
return 0;
}
/* if ( current < ceiling ) */ {
executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED;
200d88c: c4 20 60 34 st %g2, [ %g1 + 0x34 ]
the_mutex->lock = CORE_MUTEX_UNLOCKED;
200d890: c6 26 20 50 st %g3, [ %i0 + 0x50 ]
the_mutex->nest_count = 0; /* undo locking above */
200d894: c0 26 20 54 clr [ %i0 + 0x54 ]
executing->resource_count--; /* undo locking above */
200d898: da 20 60 1c st %o5, [ %g1 + 0x1c ]
_ISR_Enable( *level_p );
200d89c: d0 06 40 00 ld [ %i1 ], %o0
200d8a0: 7f ff d2 05 call 20020b4 <sparc_enable_interrupts>
200d8a4: b0 10 20 00 clr %i0
200d8a8: 81 c7 e0 08 ret
200d8ac: 81 e8 00 00 restore
* 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 ) ) {
switch ( the_mutex->Attributes.lock_nesting_behavior ) {
200d8b0: 12 bf ff ca bne 200d7d8 <_CORE_mutex_Seize_interrupt_trylock+0x70><== ALWAYS TAKEN
200d8b4: 84 10 20 02 mov 2, %g2
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;
200d8b8: 10 bf ff c0 b 200d7b8 <_CORE_mutex_Seize_interrupt_trylock+0x50><== NOT EXECUTED
200d8bc: c4 20 60 34 st %g2, [ %g1 + 0x34 ] <== NOT EXECUTED
0200771c <_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
)
{
200771c: 9d e3 bf a0 save %sp, -96, %sp
2007720: 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)) ) {
2007724: b0 10 20 00 clr %i0
2007728: 40 00 06 79 call 200910c <_Thread_queue_Dequeue>
200772c: 90 10 00 10 mov %l0, %o0
2007730: 80 a2 20 00 cmp %o0, 0
2007734: 02 80 00 04 be 2007744 <_CORE_semaphore_Surrender+0x28>
2007738: 01 00 00 00 nop
status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;
_ISR_Enable( level );
}
return status;
}
200773c: 81 c7 e0 08 ret
2007740: 81 e8 00 00 restore
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
(*api_semaphore_mp_support) ( the_thread, id );
#endif
} else {
_ISR_Disable( level );
2007744: 7f ff ea 58 call 20020a4 <sparc_disable_interrupts>
2007748: 01 00 00 00 nop
if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
200774c: c2 04 20 48 ld [ %l0 + 0x48 ], %g1
2007750: c4 04 20 40 ld [ %l0 + 0x40 ], %g2
2007754: 80 a0 40 02 cmp %g1, %g2
2007758: 1a 80 00 05 bcc 200776c <_CORE_semaphore_Surrender+0x50> <== NEVER TAKEN
200775c: b0 10 20 04 mov 4, %i0
the_semaphore->count += 1;
2007760: 82 00 60 01 inc %g1
2007764: b0 10 20 00 clr %i0
2007768: c2 24 20 48 st %g1, [ %l0 + 0x48 ]
else
status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;
_ISR_Enable( level );
200776c: 7f ff ea 52 call 20020b4 <sparc_enable_interrupts>
2007770: 01 00 00 00 nop
}
return status;
}
2007774: 81 c7 e0 08 ret
2007778: 81 e8 00 00 restore
0200d64c <_Chain_Initialize>:
Chain_Node *current;
Chain_Node *next;
count = number_nodes;
current = _Chain_Head( the_chain );
the_chain->permanent_null = NULL;
200d64c: c0 22 20 04 clr [ %o0 + 4 ]
next = starting_address;
while ( count-- ) {
200d650: 80 a2 a0 00 cmp %o2, 0
200d654: 02 80 00 08 be 200d674 <_Chain_Initialize+0x28> <== NEVER TAKEN
200d658: 82 10 00 08 mov %o0, %g1
current->next = next;
next->previous = current;
200d65c: c2 22 60 04 st %g1, [ %o1 + 4 ]
count = number_nodes;
current = _Chain_Head( the_chain );
the_chain->permanent_null = NULL;
next = starting_address;
while ( count-- ) {
current->next = next;
200d660: d2 20 40 00 st %o1, [ %g1 ]
count = number_nodes;
current = _Chain_Head( the_chain );
the_chain->permanent_null = NULL;
next = starting_address;
while ( count-- ) {
200d664: 94 82 bf ff addcc %o2, -1, %o2
current->next = next;
next->previous = current;
current = next;
next = (Chain_Node *)
200d668: 82 10 00 09 mov %o1, %g1
count = number_nodes;
current = _Chain_Head( the_chain );
the_chain->permanent_null = NULL;
next = starting_address;
while ( count-- ) {
200d66c: 12 bf ff fc bne 200d65c <_Chain_Initialize+0x10>
200d670: 92 02 40 0b add %o1, %o3, %o1
next->previous = current;
current = next;
next = (Chain_Node *)
_Addresses_Add_offset( (void *) next, node_size );
}
current->next = _Chain_Tail( the_chain );
200d674: 84 02 20 04 add %o0, 4, %g2
200d678: c4 20 40 00 st %g2, [ %g1 ]
the_chain->last = current;
}
200d67c: 81 c3 e0 08 retl
200d680: c2 22 20 08 st %g1, [ %o0 + 8 ]
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
020062cc <_Event_Seize>:
rtems_event_set event_in,
rtems_option option_set,
rtems_interval ticks,
rtems_event_set *event_out
)
{
20062cc: 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;
20062d0: 03 00 80 77 sethi %hi(0x201dc00), %g1
20062d4: e0 00 60 70 ld [ %g1 + 0x70 ], %l0 ! 201dc70 <_Thread_Executing>
executing->Wait.return_code = RTEMS_SUCCESSFUL;
20062d8: c0 24 20 34 clr [ %l0 + 0x34 ]
api = executing->API_Extensions[ THREAD_API_RTEMS ];
_ISR_Disable( level );
20062dc: 7f ff ef 72 call 20020a4 <sparc_disable_interrupts>
20062e0: e4 04 21 60 ld [ %l0 + 0x160 ], %l2
pending_events = api->pending_events;
20062e4: c2 04 80 00 ld [ %l2 ], %g1
seized_events = _Event_sets_Get( pending_events, event_in );
if ( !_Event_sets_Is_empty( seized_events ) &&
20062e8: a2 8e 00 01 andcc %i0, %g1, %l1
20062ec: 02 80 00 07 be 2006308 <_Event_Seize+0x3c>
20062f0: 80 8e 60 01 btst 1, %i1
20062f4: 80 a6 00 11 cmp %i0, %l1
20062f8: 02 80 00 23 be 2006384 <_Event_Seize+0xb8>
20062fc: 80 8e 60 02 btst 2, %i1
2006300: 12 80 00 21 bne 2006384 <_Event_Seize+0xb8> <== ALWAYS TAKEN
2006304: 80 8e 60 01 btst 1, %i1
_ISR_Enable( level );
*event_out = seized_events;
return;
}
if ( _Options_Is_no_wait( option_set ) ) {
2006308: 12 80 00 18 bne 2006368 <_Event_Seize+0x9c>
200630c: 82 10 20 01 mov 1, %g1
* set properly when we are marked as in the event critical section.
*
* 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;
2006310: f2 24 20 30 st %i1, [ %l0 + 0x30 ]
executing->Wait.count = (uint32_t) event_in;
2006314: f0 24 20 24 st %i0, [ %l0 + 0x24 ]
executing->Wait.return_argument = event_out;
2006318: f6 24 20 28 st %i3, [ %l0 + 0x28 ]
_Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
200631c: 33 00 80 77 sethi %hi(0x201dc00), %i1
2006320: c2 26 62 6c st %g1, [ %i1 + 0x26c ] ! 201de6c <_Event_Sync_state>
_ISR_Enable( level );
2006324: 7f ff ef 64 call 20020b4 <sparc_enable_interrupts>
2006328: 01 00 00 00 nop
if ( ticks ) {
200632c: 80 a6 a0 00 cmp %i2, 0
2006330: 32 80 00 1c bne,a 20063a0 <_Event_Seize+0xd4>
2006334: c2 04 20 08 ld [ %l0 + 8 ], %g1
NULL
);
_Watchdog_Insert_ticks( &executing->Timer, ticks );
}
_Thread_Set_state( executing, STATES_WAITING_FOR_EVENT );
2006338: 90 10 00 10 mov %l0, %o0
200633c: 40 00 0c f5 call 2009710 <_Thread_Set_state>
2006340: 92 10 21 00 mov 0x100, %o1
_ISR_Disable( level );
2006344: 7f ff ef 58 call 20020a4 <sparc_disable_interrupts>
2006348: 01 00 00 00 nop
sync_state = _Event_Sync_state;
200634c: f0 06 62 6c ld [ %i1 + 0x26c ], %i0
_Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
2006350: c0 26 62 6c clr [ %i1 + 0x26c ]
if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) {
2006354: 80 a6 20 01 cmp %i0, 1
2006358: 02 80 00 1f be 20063d4 <_Event_Seize+0x108>
200635c: b2 10 00 10 mov %l0, %i1
* 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 );
2006360: 40 00 08 b1 call 2008624 <_Thread_blocking_operation_Cancel>
2006364: 95 e8 00 08 restore %g0, %o0, %o2
*event_out = seized_events;
return;
}
if ( _Options_Is_no_wait( option_set ) ) {
_ISR_Enable( level );
2006368: 7f ff ef 53 call 20020b4 <sparc_enable_interrupts>
200636c: 01 00 00 00 nop
executing->Wait.return_code = RTEMS_UNSATISFIED;
2006370: 82 10 20 0d mov 0xd, %g1 ! d <PROM_START+0xd>
2006374: c2 24 20 34 st %g1, [ %l0 + 0x34 ]
*event_out = seized_events;
2006378: e2 26 c0 00 st %l1, [ %i3 ]
200637c: 81 c7 e0 08 ret
2006380: 81 e8 00 00 restore
pending_events = api->pending_events;
seized_events = _Event_sets_Get( pending_events, event_in );
if ( !_Event_sets_Is_empty( seized_events ) &&
(seized_events == event_in || _Options_Is_any( option_set )) ) {
api->pending_events =
2006384: 82 28 40 11 andn %g1, %l1, %g1
2006388: c2 24 80 00 st %g1, [ %l2 ]
_Event_sets_Clear( pending_events, seized_events );
_ISR_Enable( level );
200638c: 7f ff ef 4a call 20020b4 <sparc_enable_interrupts>
2006390: 01 00 00 00 nop
*event_out = seized_events;
2006394: e2 26 c0 00 st %l1, [ %i3 ]
return;
2006398: 81 c7 e0 08 ret
200639c: 81 e8 00 00 restore
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
20063a0: f4 24 20 54 st %i2, [ %l0 + 0x54 ]
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
the_watchdog->id = id;
20063a4: c2 24 20 68 st %g1, [ %l0 + 0x68 ]
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
20063a8: 03 00 80 19 sethi %hi(0x2006400), %g1
20063ac: 82 10 61 70 or %g1, 0x170, %g1 ! 2006570 <_Event_Timeout>
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
20063b0: c0 24 20 50 clr [ %l0 + 0x50 ]
the_watchdog->routine = routine;
the_watchdog->id = id;
the_watchdog->user_data = user_data;
20063b4: c0 24 20 6c clr [ %l0 + 0x6c ]
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
20063b8: c2 24 20 64 st %g1, [ %l0 + 0x64 ]
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
20063bc: 11 00 80 77 sethi %hi(0x201dc00), %o0
20063c0: 92 04 20 48 add %l0, 0x48, %o1
20063c4: 40 00 0e dd call 2009f38 <_Watchdog_Insert>
20063c8: 90 12 20 90 or %o0, 0x90, %o0
NULL
);
_Watchdog_Insert_ticks( &executing->Timer, ticks );
}
_Thread_Set_state( executing, STATES_WAITING_FOR_EVENT );
20063cc: 10 bf ff dc b 200633c <_Event_Seize+0x70>
20063d0: 90 10 00 10 mov %l0, %o0
_ISR_Disable( level );
sync_state = _Event_Sync_state;
_Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) {
_ISR_Enable( level );
20063d4: 7f ff ef 38 call 20020b4 <sparc_enable_interrupts>
20063d8: 91 e8 00 08 restore %g0, %o0, %o0
02006438 <_Event_Surrender>:
*/
void _Event_Surrender(
Thread_Control *the_thread
)
{
2006438: 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 ];
200643c: e0 06 21 60 ld [ %i0 + 0x160 ], %l0
option_set = (rtems_option) the_thread->Wait.option;
_ISR_Disable( level );
2006440: 7f ff ef 19 call 20020a4 <sparc_disable_interrupts>
2006444: e4 06 20 30 ld [ %i0 + 0x30 ], %l2
2006448: a2 10 00 08 mov %o0, %l1
pending_events = api->pending_events;
200644c: c4 04 00 00 ld [ %l0 ], %g2
event_condition = (rtems_event_set) the_thread->Wait.count;
2006450: c2 06 20 24 ld [ %i0 + 0x24 ], %g1
seized_events = _Event_sets_Get( pending_events, event_condition );
/*
* No events were seized in this operation
*/
if ( _Event_sets_Is_empty( seized_events ) ) {
2006454: 86 88 40 02 andcc %g1, %g2, %g3
2006458: 02 80 00 3a be 2006540 <_Event_Surrender+0x108>
200645c: 09 00 80 77 sethi %hi(0x201dc00), %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() &&
2006460: c8 01 20 4c ld [ %g4 + 0x4c ], %g4 ! 201dc4c <_ISR_Nest_level>
2006464: 80 a1 20 00 cmp %g4, 0
2006468: 12 80 00 1d bne 20064dc <_Event_Surrender+0xa4>
200646c: 09 00 80 77 sethi %hi(0x201dc00), %g4
}
/*
* Otherwise, this is a normal send to another thread
*/
if ( _States_Is_waiting_for_event( the_thread->current_state ) ) {
2006470: c8 06 20 10 ld [ %i0 + 0x10 ], %g4
2006474: 80 89 21 00 btst 0x100, %g4
2006478: 02 80 00 32 be 2006540 <_Event_Surrender+0x108>
200647c: 80 a0 40 03 cmp %g1, %g3
if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
2006480: 02 80 00 04 be 2006490 <_Event_Surrender+0x58>
2006484: 80 8c a0 02 btst 2, %l2
2006488: 02 80 00 2e be 2006540 <_Event_Surrender+0x108> <== NEVER TAKEN
200648c: 01 00 00 00 nop
api->pending_events = _Event_sets_Clear( pending_events, seized_events );
the_thread->Wait.count = 0;
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
2006490: c2 06 20 28 ld [ %i0 + 0x28 ], %g1
/*
* 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 );
2006494: 84 28 80 03 andn %g2, %g3, %g2
2006498: c4 24 00 00 st %g2, [ %l0 ]
the_thread->Wait.count = 0;
200649c: c0 26 20 24 clr [ %i0 + 0x24 ]
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
20064a0: c6 20 40 00 st %g3, [ %g1 ]
_ISR_Flash( level );
20064a4: 7f ff ef 04 call 20020b4 <sparc_enable_interrupts>
20064a8: 90 10 00 11 mov %l1, %o0
20064ac: 7f ff ee fe call 20020a4 <sparc_disable_interrupts>
20064b0: 01 00 00 00 nop
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
20064b4: c2 06 20 50 ld [ %i0 + 0x50 ], %g1
20064b8: 80 a0 60 02 cmp %g1, 2
20064bc: 02 80 00 23 be 2006548 <_Event_Surrender+0x110>
20064c0: 82 10 20 03 mov 3, %g1
_ISR_Enable( level );
20064c4: 90 10 00 11 mov %l1, %o0
20064c8: 7f ff ee fb call 20020b4 <sparc_enable_interrupts>
20064cc: 33 04 00 ff sethi %hi(0x1003fc00), %i1
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
20064d0: b2 16 63 f8 or %i1, 0x3f8, %i1 ! 1003fff8 <RAM_END+0xdc3fff8>
20064d4: 40 00 08 ef call 2008890 <_Thread_Clear_state>
20064d8: 81 e8 00 00 restore
/*
* 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() &&
20064dc: c8 01 20 70 ld [ %g4 + 0x70 ], %g4
20064e0: 80 a6 00 04 cmp %i0, %g4
20064e4: 32 bf ff e4 bne,a 2006474 <_Event_Surrender+0x3c>
20064e8: c8 06 20 10 ld [ %i0 + 0x10 ], %g4
_Thread_Is_executing( the_thread ) &&
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
20064ec: 09 00 80 77 sethi %hi(0x201dc00), %g4
20064f0: da 01 22 6c ld [ %g4 + 0x26c ], %o5 ! 201de6c <_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() &&
20064f4: 80 a3 60 02 cmp %o5, 2
20064f8: 02 80 00 07 be 2006514 <_Event_Surrender+0xdc> <== NEVER TAKEN
20064fc: 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)) ) {
2006500: da 01 22 6c ld [ %g4 + 0x26c ], %o5
/*
* 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() &&
2006504: 80 a3 60 01 cmp %o5, 1
2006508: 32 bf ff db bne,a 2006474 <_Event_Surrender+0x3c>
200650c: c8 06 20 10 ld [ %i0 + 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) ) {
2006510: 80 a0 40 03 cmp %g1, %g3
2006514: 02 80 00 04 be 2006524 <_Event_Surrender+0xec>
2006518: 80 8c a0 02 btst 2, %l2
200651c: 02 80 00 09 be 2006540 <_Event_Surrender+0x108> <== NEVER TAKEN
2006520: 01 00 00 00 nop
api->pending_events = _Event_sets_Clear( pending_events,seized_events );
the_thread->Wait.count = 0;
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
2006524: c2 06 20 28 ld [ %i0 + 0x28 ], %g1
if ( _ISR_Is_in_progress() &&
_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 );
2006528: 84 28 80 03 andn %g2, %g3, %g2
200652c: c4 24 00 00 st %g2, [ %l0 ]
the_thread->Wait.count = 0;
2006530: c0 26 20 24 clr [ %i0 + 0x24 ]
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
2006534: c6 20 40 00 st %g3, [ %g1 ]
_Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;
2006538: 82 10 20 03 mov 3, %g1
200653c: c2 21 22 6c st %g1, [ %g4 + 0x26c ]
_Thread_Unblock( the_thread );
}
return;
}
}
_ISR_Enable( level );
2006540: 7f ff ee dd call 20020b4 <sparc_enable_interrupts>
2006544: 91 e8 00 11 restore %g0, %l1, %o0
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_REMOVE_IT;
2006548: c2 26 20 50 st %g1, [ %i0 + 0x50 ]
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
_ISR_Enable( level );
_Thread_Unblock( the_thread );
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
200654c: 7f ff ee da call 20020b4 <sparc_enable_interrupts>
2006550: 90 10 00 11 mov %l1, %o0
(void) _Watchdog_Remove( &the_thread->Timer );
2006554: 40 00 0e e2 call 200a0dc <_Watchdog_Remove>
2006558: 90 06 20 48 add %i0, 0x48, %o0
200655c: 33 04 00 ff sethi %hi(0x1003fc00), %i1
2006560: b2 16 63 f8 or %i1, 0x3f8, %i1 ! 1003fff8 <RAM_END+0xdc3fff8>
2006564: 40 00 08 cb call 2008890 <_Thread_Clear_state>
2006568: 81 e8 00 00 restore
02006570 <_Event_Timeout>:
void _Event_Timeout(
Objects_Id id,
void *ignored
)
{
2006570: 9d e3 bf 98 save %sp, -104, %sp
Thread_Control *the_thread;
Objects_Locations location;
ISR_Level level;
the_thread = _Thread_Get( id, &location );
2006574: 90 10 00 18 mov %i0, %o0
2006578: 40 00 09 ee call 2008d30 <_Thread_Get>
200657c: 92 07 bf fc add %fp, -4, %o1
switch ( location ) {
2006580: c2 07 bf fc ld [ %fp + -4 ], %g1
2006584: 80 a0 60 00 cmp %g1, 0
2006588: 12 80 00 15 bne 20065dc <_Event_Timeout+0x6c> <== NEVER TAKEN
200658c: 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 );
2006590: 7f ff ee c5 call 20020a4 <sparc_disable_interrupts>
2006594: 01 00 00 00 nop
return;
}
#endif
the_thread->Wait.count = 0;
if ( _Thread_Is_executing( the_thread ) ) {
2006598: 03 00 80 77 sethi %hi(0x201dc00), %g1
200659c: c2 00 60 70 ld [ %g1 + 0x70 ], %g1 ! 201dc70 <_Thread_Executing>
20065a0: 80 a4 00 01 cmp %l0, %g1
20065a4: 02 80 00 10 be 20065e4 <_Event_Timeout+0x74>
20065a8: c0 24 20 24 clr [ %l0 + 0x24 ]
if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
_Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
}
the_thread->Wait.return_code = RTEMS_TIMEOUT;
20065ac: 82 10 20 06 mov 6, %g1
20065b0: c2 24 20 34 st %g1, [ %l0 + 0x34 ]
_ISR_Enable( level );
20065b4: 7f ff ee c0 call 20020b4 <sparc_enable_interrupts>
20065b8: 01 00 00 00 nop
20065bc: 90 10 00 10 mov %l0, %o0
20065c0: 13 04 00 ff sethi %hi(0x1003fc00), %o1
20065c4: 40 00 08 b3 call 2008890 <_Thread_Clear_state>
20065c8: 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;
20065cc: 03 00 80 76 sethi %hi(0x201d800), %g1
20065d0: c4 00 63 b0 ld [ %g1 + 0x3b0 ], %g2 ! 201dbb0 <_Thread_Dispatch_disable_level>
20065d4: 84 00 bf ff add %g2, -1, %g2
20065d8: c4 20 63 b0 st %g2, [ %g1 + 0x3b0 ]
20065dc: 81 c7 e0 08 ret
20065e0: 81 e8 00 00 restore
}
#endif
the_thread->Wait.count = 0;
if ( _Thread_Is_executing( the_thread ) ) {
if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
20065e4: 03 00 80 77 sethi %hi(0x201dc00), %g1
20065e8: c4 00 62 6c ld [ %g1 + 0x26c ], %g2 ! 201de6c <_Event_Sync_state>
20065ec: 80 a0 a0 01 cmp %g2, 1
20065f0: 32 bf ff f0 bne,a 20065b0 <_Event_Timeout+0x40>
20065f4: 82 10 20 06 mov 6, %g1
_Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
20065f8: 84 10 20 02 mov 2, %g2
20065fc: c4 20 62 6c st %g2, [ %g1 + 0x26c ]
}
the_thread->Wait.return_code = RTEMS_TIMEOUT;
2006600: 10 bf ff ec b 20065b0 <_Event_Timeout+0x40>
2006604: 82 10 20 06 mov 6, %g1
020012f0 <_Extension_Manager_initialization>:
#include <rtems/extension.h>
#include <rtems/score/interr.h>
void _Extension_Manager_initialization(void)
{
}
20012f0: 81 c3 e0 08 retl
0200d93c <_Heap_Allocate_aligned_with_boundary>:
Heap_Control *heap,
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
200d93c: 9d e3 bf 98 save %sp, -104, %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;
200d940: a8 06 60 04 add %i1, 4, %l4
Heap_Control *heap,
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
200d944: a0 10 00 18 mov %i0, %l0
- HEAP_BLOCK_SIZE_OFFSET;
uintptr_t const page_size = heap->page_size;
uintptr_t alloc_begin = 0;
uint32_t search_count = 0;
if ( block_size_floor < alloc_size ) {
200d948: 80 a6 40 14 cmp %i1, %l4
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
200d94c: e4 06 20 08 ld [ %i0 + 8 ], %l2
200d950: 18 80 00 72 bgu 200db18 <_Heap_Allocate_aligned_with_boundary+0x1dc>
200d954: fa 06 20 10 ld [ %i0 + 0x10 ], %i5
/* Integer overflow occured */
return NULL;
}
if ( boundary != 0 ) {
200d958: 80 a6 e0 00 cmp %i3, 0
200d95c: 12 80 00 6d bne 200db10 <_Heap_Allocate_aligned_with_boundary+0x1d4>
200d960: 80 a6 40 1b cmp %i1, %i3
if ( alignment == 0 ) {
alignment = page_size;
}
}
while ( block != free_list_tail ) {
200d964: 80 a4 00 12 cmp %l0, %l2
200d968: 02 80 00 6f be 200db24 <_Heap_Allocate_aligned_with_boundary+0x1e8>
200d96c: 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;
200d970: 82 10 20 04 mov 4, %g1
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;
200d974: b8 07 60 07 add %i5, 7, %i4
uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET;
uintptr_t alloc_begin = alloc_end - alloc_size;
200d978: 82 20 40 19 sub %g1, %i1, %g1
200d97c: 10 80 00 09 b 200d9a0 <_Heap_Allocate_aligned_with_boundary+0x64>
200d980: c2 27 bf fc st %g1, [ %fp + -4 ]
boundary
);
}
}
if ( alloc_begin != 0 ) {
200d984: 80 a6 20 00 cmp %i0, 0
200d988: 32 80 00 54 bne,a 200dad8 <_Heap_Allocate_aligned_with_boundary+0x19c><== ALWAYS TAKEN
200d98c: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
break;
}
block = block->next;
200d990: e4 04 a0 08 ld [ %l2 + 8 ], %l2
if ( alignment == 0 ) {
alignment = page_size;
}
}
while ( block != free_list_tail ) {
200d994: 80 a4 00 12 cmp %l0, %l2
200d998: 22 80 00 57 be,a 200daf4 <_Heap_Allocate_aligned_with_boundary+0x1b8>
200d99c: b0 10 20 00 clr %i0
/*
* 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 ) {
200d9a0: e6 04 a0 04 ld [ %l2 + 4 ], %l3
200d9a4: 80 a5 00 13 cmp %l4, %l3
200d9a8: 1a bf ff fa bcc 200d990 <_Heap_Allocate_aligned_with_boundary+0x54>
200d9ac: a2 04 60 01 inc %l1
if ( alignment == 0 ) {
200d9b0: 80 a6 a0 00 cmp %i2, 0
200d9b4: 02 bf ff f4 be 200d984 <_Heap_Allocate_aligned_with_boundary+0x48>
200d9b8: b0 04 a0 08 add %l2, 8, %i0
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;
200d9bc: c2 07 bf fc ld [ %fp + -4 ], %g1
uintptr_t alignment,
uintptr_t boundary
)
{
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
200d9c0: ee 04 20 14 ld [ %l0 + 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;
200d9c4: a6 0c ff fe and %l3, -2, %l3
200d9c8: 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;
200d9cc: b0 00 40 13 add %g1, %l3, %i0
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;
200d9d0: 82 27 00 17 sub %i4, %l7, %g1
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
200d9d4: 90 10 00 18 mov %i0, %o0
200d9d8: a6 00 40 13 add %g1, %l3, %l3
200d9dc: 40 00 30 9c call 2019c4c <.urem>
200d9e0: 92 10 00 1a mov %i2, %o1
200d9e4: b0 26 00 08 sub %i0, %o0, %i0
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 ) {
200d9e8: 80 a4 c0 18 cmp %l3, %i0
200d9ec: 1a 80 00 06 bcc 200da04 <_Heap_Allocate_aligned_with_boundary+0xc8>
200d9f0: ac 04 a0 08 add %l2, 8, %l6
200d9f4: 90 10 00 13 mov %l3, %o0
200d9f8: 40 00 30 95 call 2019c4c <.urem>
200d9fc: 92 10 00 1a mov %i2, %o1
200da00: b0 24 c0 08 sub %l3, %o0, %i0
}
alloc_end = alloc_begin + alloc_size;
/* Ensure boundary constaint */
if ( boundary != 0 ) {
200da04: 80 a6 e0 00 cmp %i3, 0
200da08: 02 80 00 24 be 200da98 <_Heap_Allocate_aligned_with_boundary+0x15c>
200da0c: 80 a5 80 18 cmp %l6, %i0
/* 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;
200da10: a6 06 00 19 add %i0, %i1, %l3
200da14: 92 10 00 1b mov %i3, %o1
200da18: 40 00 30 8d call 2019c4c <.urem>
200da1c: 90 10 00 13 mov %l3, %o0
200da20: 90 24 c0 08 sub %l3, %o0, %o0
/* 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 ) {
200da24: 80 a4 c0 08 cmp %l3, %o0
200da28: 08 80 00 1b bleu 200da94 <_Heap_Allocate_aligned_with_boundary+0x158>
200da2c: 80 a6 00 08 cmp %i0, %o0
200da30: 1a 80 00 1a bcc 200da98 <_Heap_Allocate_aligned_with_boundary+0x15c>
200da34: 80 a5 80 18 cmp %l6, %i0
alloc_end = alloc_begin + alloc_size;
/* Ensure boundary constaint */
if ( boundary != 0 ) {
uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;
200da38: aa 05 80 19 add %l6, %i1, %l5
uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
if ( boundary_line < boundary_floor ) {
200da3c: 80 a5 40 08 cmp %l5, %o0
200da40: 28 80 00 09 bleu,a 200da64 <_Heap_Allocate_aligned_with_boundary+0x128>
200da44: b0 22 00 19 sub %o0, %i1, %i0
if ( alloc_begin != 0 ) {
break;
}
block = block->next;
200da48: 10 bf ff d3 b 200d994 <_Heap_Allocate_aligned_with_boundary+0x58>
200da4c: e4 04 a0 08 ld [ %l2 + 8 ], %l2
/* 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 ) {
200da50: 1a 80 00 11 bcc 200da94 <_Heap_Allocate_aligned_with_boundary+0x158>
200da54: 80 a5 40 08 cmp %l5, %o0
if ( boundary_line < boundary_floor ) {
200da58: 38 bf ff cf bgu,a 200d994 <_Heap_Allocate_aligned_with_boundary+0x58><== NEVER TAKEN
200da5c: e4 04 a0 08 ld [ %l2 + 8 ], %l2 <== NOT EXECUTED
return 0;
}
alloc_begin = boundary_line - alloc_size;
200da60: b0 22 00 19 sub %o0, %i1, %i0
200da64: 92 10 00 1a mov %i2, %o1
200da68: 40 00 30 79 call 2019c4c <.urem>
200da6c: 90 10 00 18 mov %i0, %o0
200da70: 92 10 00 1b mov %i3, %o1
200da74: b0 26 00 08 sub %i0, %o0, %i0
alloc_begin = _Heap_Align_down( alloc_begin, alignment );
alloc_end = alloc_begin + alloc_size;
200da78: a6 06 00 19 add %i0, %i1, %l3
200da7c: 40 00 30 74 call 2019c4c <.urem>
200da80: 90 10 00 13 mov %l3, %o0
200da84: 90 24 c0 08 sub %l3, %o0, %o0
/* 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 ) {
200da88: 80 a4 c0 08 cmp %l3, %o0
200da8c: 18 bf ff f1 bgu 200da50 <_Heap_Allocate_aligned_with_boundary+0x114>
200da90: 80 a6 00 08 cmp %i0, %o0
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 ) {
200da94: 80 a5 80 18 cmp %l6, %i0
200da98: 18 bf ff be bgu 200d990 <_Heap_Allocate_aligned_with_boundary+0x54>
200da9c: 82 10 3f f8 mov -8, %g1
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;
200daa0: 90 10 00 18 mov %i0, %o0
200daa4: a6 20 40 12 sub %g1, %l2, %l3
200daa8: 92 10 00 1d mov %i5, %o1
200daac: 40 00 30 68 call 2019c4c <.urem>
200dab0: a6 04 c0 18 add %l3, %i0, %l3
if ( free_size >= min_block_size || free_size == 0 ) {
200dab4: 90 a4 c0 08 subcc %l3, %o0, %o0
200dab8: 02 bf ff b4 be 200d988 <_Heap_Allocate_aligned_with_boundary+0x4c>
200dabc: 80 a6 20 00 cmp %i0, 0
200dac0: 80 a5 c0 08 cmp %l7, %o0
200dac4: 18 bf ff b3 bgu 200d990 <_Heap_Allocate_aligned_with_boundary+0x54>
200dac8: 80 a6 20 00 cmp %i0, 0
boundary
);
}
}
if ( alloc_begin != 0 ) {
200dacc: 22 bf ff b2 be,a 200d994 <_Heap_Allocate_aligned_with_boundary+0x58><== NEVER TAKEN
200dad0: e4 04 a0 08 ld [ %l2 + 8 ], %l2 <== NOT EXECUTED
block = block->next;
}
if ( alloc_begin != 0 ) {
/* Statistics */
stats->searches += search_count;
200dad4: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
200dad8: 92 10 00 12 mov %l2, %o1
block = block->next;
}
if ( alloc_begin != 0 ) {
/* Statistics */
stats->searches += search_count;
200dadc: 82 00 40 11 add %g1, %l1, %g1
block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
200dae0: 96 10 00 19 mov %i1, %o3
block = block->next;
}
if ( alloc_begin != 0 ) {
/* Statistics */
stats->searches += search_count;
200dae4: c2 24 20 4c st %g1, [ %l0 + 0x4c ]
block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
200dae8: 90 10 00 10 mov %l0, %o0
200daec: 7f ff e8 0f call 2007b28 <_Heap_Block_allocate>
200daf0: 94 10 00 18 mov %i0, %o2
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
Heap_Statistics *const stats = &heap->stats;
200daf4: c2 04 20 44 ld [ %l0 + 0x44 ], %g1
200daf8: 80 a0 40 11 cmp %g1, %l1
200dafc: 1a 80 00 08 bcc 200db1c <_Heap_Allocate_aligned_with_boundary+0x1e0>
200db00: 01 00 00 00 nop
);
}
/* Statistics */
if ( stats->max_search < search_count ) {
stats->max_search = search_count;
200db04: e2 24 20 44 st %l1, [ %l0 + 0x44 ]
200db08: 81 c7 e0 08 ret
200db0c: 81 e8 00 00 restore
/* Integer overflow occured */
return NULL;
}
if ( boundary != 0 ) {
if ( boundary < alloc_size ) {
200db10: 08 80 00 07 bleu 200db2c <_Heap_Allocate_aligned_with_boundary+0x1f0>
200db14: 80 a6 a0 00 cmp %i2, 0
);
}
/* Statistics */
if ( stats->max_search < search_count ) {
stats->max_search = search_count;
200db18: b0 10 20 00 clr %i0
}
return (void *) alloc_begin;
}
200db1c: 81 c7 e0 08 ret
200db20: 81 e8 00 00 restore
if ( alignment == 0 ) {
alignment = page_size;
}
}
while ( block != free_list_tail ) {
200db24: 10 bf ff f4 b 200daf4 <_Heap_Allocate_aligned_with_boundary+0x1b8>
200db28: b0 10 20 00 clr %i0
if ( boundary != 0 ) {
if ( boundary < alloc_size ) {
return NULL;
}
if ( alignment == 0 ) {
200db2c: 22 bf ff 8e be,a 200d964 <_Heap_Allocate_aligned_with_boundary+0x28>
200db30: b4 10 00 1d mov %i5, %i2
alignment = page_size;
}
}
while ( block != free_list_tail ) {
200db34: 10 bf ff 8d b 200d968 <_Heap_Allocate_aligned_with_boundary+0x2c>
200db38: 80 a4 00 12 cmp %l0, %l2
02012590 <_Heap_Extend>:
Heap_Control *heap,
void *area_begin_ptr,
uintptr_t area_size,
uintptr_t *amount_extended
)
{
2012590: 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;
2012594: c2 06 20 1c ld [ %i0 + 0x1c ], %g1
Heap_Control *heap,
void *area_begin_ptr,
uintptr_t area_size,
uintptr_t *amount_extended
)
{
2012598: 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 ) {
201259c: 80 a6 40 01 cmp %i1, %g1
20125a0: 0a 80 00 2a bcs 2012648 <_Heap_Extend+0xb8>
20125a4: e2 06 20 24 ld [ %i0 + 0x24 ], %l1
return HEAP_EXTEND_ERROR; /* case 3 */
} else if ( area_begin != heap_area_end ) {
20125a8: 80 a6 40 01 cmp %i1, %g1
20125ac: 12 80 00 25 bne 2012640 <_Heap_Extend+0xb0>
20125b0: 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);
20125b4: 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;
20125b8: 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
20125bc: 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;
20125c0: f4 24 20 1c st %i2, [ %l0 + 0x1c ]
extend_size = new_heap_area_end
20125c4: b2 06 7f f8 add %i1, -8, %i1
20125c8: 7f ff c7 71 call 200438c <.urem>
20125cc: 90 10 00 19 mov %i1, %o0
20125d0: 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;
20125d4: d0 26 c0 00 st %o0, [ %i3 ]
if( extend_size >= heap->min_block_size ) {
20125d8: c2 04 20 14 ld [ %l0 + 0x14 ], %g1
20125dc: 80 a0 40 08 cmp %g1, %o0
20125e0: 18 80 00 18 bgu 2012640 <_Heap_Extend+0xb0> <== NEVER TAKEN
20125e4: 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;
20125e8: 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 =
20125ec: c4 04 20 20 ld [ %l0 + 0x20 ], %g2
20125f0: 82 08 60 01 and %g1, 1, %g1
20125f4: 82 12 00 01 or %o0, %g1, %g1
20125f8: 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);
20125fc: 82 02 00 11 add %o0, %l1, %g1
2012600: 84 20 80 01 sub %g2, %g1, %g2
2012604: 84 10 a0 01 or %g2, 1, %g2
2012608: c4 20 60 04 st %g2, [ %g1 + 4 ]
heap->last_block = new_last_block;
/* Statistics */
stats->size += extend_size;
++stats->used_blocks;
201260c: c6 04 20 40 ld [ %l0 + 0x40 ], %g3
| HEAP_PREV_BLOCK_USED;
heap->last_block = new_last_block;
/* Statistics */
stats->size += extend_size;
2012610: f2 04 20 2c ld [ %l0 + 0x2c ], %i1
++stats->used_blocks;
--stats->frees; /* Do not count subsequent call as actual free() */
2012614: 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;
2012618: c2 24 20 24 st %g1, [ %l0 + 0x24 ]
/* Statistics */
stats->size += extend_size;
++stats->used_blocks;
201261c: 82 00 e0 01 add %g3, 1, %g1
| HEAP_PREV_BLOCK_USED;
heap->last_block = new_last_block;
/* Statistics */
stats->size += extend_size;
2012620: 90 06 40 08 add %i1, %o0, %o0
++stats->used_blocks;
2012624: c2 24 20 40 st %g1, [ %l0 + 0x40 ]
--stats->frees; /* Do not count subsequent call as actual free() */
2012628: 82 00 bf ff add %g2, -1, %g1
| HEAP_PREV_BLOCK_USED;
heap->last_block = new_last_block;
/* Statistics */
stats->size += extend_size;
201262c: d0 24 20 2c st %o0, [ %l0 + 0x2c ]
++stats->used_blocks;
--stats->frees; /* Do not count subsequent call as actual free() */
2012630: c2 24 20 50 st %g1, [ %l0 + 0x50 ]
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block ));
2012634: 90 10 00 10 mov %l0, %o0
2012638: 7f ff e4 93 call 200b884 <_Heap_Free>
201263c: 92 04 60 08 add %l1, 8, %o1
}
return HEAP_EXTEND_SUCCESSFUL;
}
2012640: 81 c7 e0 08 ret
2012644: 81 e8 00 00 restore
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;
2012648: c4 06 20 18 ld [ %i0 + 0x18 ], %g2
201264c: 80 a6 40 02 cmp %i1, %g2
2012650: 0a bf ff d6 bcs 20125a8 <_Heap_Extend+0x18>
2012654: b0 10 20 01 mov 1, %i0
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block ));
}
return HEAP_EXTEND_SUCCESSFUL;
}
2012658: 81 c7 e0 08 ret
201265c: 81 e8 00 00 restore
0200db3c <_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 )
{
200db3c: 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 )
200db40: d2 06 20 10 ld [ %i0 + 0x10 ], %o1
200db44: 40 00 30 42 call 2019c4c <.urem>
200db48: 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;
200db4c: 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 )
200db50: b2 06 7f f8 add %i1, -8, %i1
200db54: 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
200db58: 80 a2 00 01 cmp %o0, %g1
200db5c: 0a 80 00 36 bcs 200dc34 <_Heap_Free+0xf8>
200db60: 01 00 00 00 nop
&& (uintptr_t) block <= (uintptr_t) heap->last_block;
200db64: c6 06 20 24 ld [ %i0 + 0x24 ], %g3
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
200db68: 80 a2 00 03 cmp %o0, %g3
200db6c: 18 80 00 32 bgu 200dc34 <_Heap_Free+0xf8>
200db70: 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;
200db74: da 02 20 04 ld [ %o0 + 4 ], %o5
200db78: 88 0b 7f fe and %o5, -2, %g4
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
200db7c: 84 02 00 04 add %o0, %g4, %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
200db80: 80 a0 40 02 cmp %g1, %g2
200db84: 18 80 00 2c bgu 200dc34 <_Heap_Free+0xf8> <== NEVER TAKEN
200db88: 80 a0 c0 02 cmp %g3, %g2
200db8c: 0a 80 00 2a bcs 200dc34 <_Heap_Free+0xf8> <== NEVER TAKEN
200db90: 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;
200db94: d8 00 a0 04 ld [ %g2 + 4 ], %o4
if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {
_HAssert( false );
return false;
}
if ( !_Heap_Is_prev_used( next_block ) ) {
200db98: 80 8b 20 01 btst 1, %o4
200db9c: 02 80 00 26 be 200dc34 <_Heap_Free+0xf8> <== NEVER TAKEN
200dba0: 96 0b 3f fe and %o4, -2, %o3
_HAssert( false );
return false;
}
next_block_size = _Heap_Block_size( next_block );
next_is_free = next_block != heap->last_block
200dba4: 80 a0 c0 02 cmp %g3, %g2
200dba8: 02 80 00 06 be 200dbc0 <_Heap_Free+0x84>
200dbac: 98 10 20 00 clr %o4
#include <rtems/system.h>
#include <rtems/score/sysstate.h>
#include <rtems/score/heap.h>
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )
200dbb0: 98 00 80 0b add %g2, %o3, %o4
200dbb4: d8 03 20 04 ld [ %o4 + 4 ], %o4
200dbb8: 98 0b 20 01 and %o4, 1, %o4
200dbbc: 98 1b 20 01 xor %o4, 1, %o4
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 ));
if ( !_Heap_Is_prev_used( block ) ) {
200dbc0: 80 8b 60 01 btst 1, %o5
200dbc4: 12 80 00 1e bne 200dc3c <_Heap_Free+0x100>
200dbc8: 80 8b 20 ff btst 0xff, %o4
uintptr_t const prev_size = block->prev_size;
200dbcc: d4 02 00 00 ld [ %o0 ], %o2
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
200dbd0: 9a 22 00 0a sub %o0, %o2, %o5
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
200dbd4: 80 a0 40 0d cmp %g1, %o5
200dbd8: 18 80 00 17 bgu 200dc34 <_Heap_Free+0xf8> <== NEVER TAKEN
200dbdc: 80 a0 c0 0d cmp %g3, %o5
200dbe0: 0a 80 00 15 bcs 200dc34 <_Heap_Free+0xf8> <== NEVER TAKEN
200dbe4: 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) ) {
200dbe8: c2 03 60 04 ld [ %o5 + 4 ], %g1
200dbec: 80 88 60 01 btst 1, %g1
200dbf0: 02 80 00 11 be 200dc34 <_Heap_Free+0xf8> <== NEVER TAKEN
200dbf4: 80 8b 20 ff btst 0xff, %o4
_HAssert( false );
return( false );
}
if ( next_is_free ) { /* coalesce both */
200dbf8: 22 80 00 3a be,a 200dce0 <_Heap_Free+0x1a4>
200dbfc: 94 01 00 0a add %g4, %o2, %o2
uintptr_t const size = block_size + prev_size + next_block_size;
_Heap_Free_list_remove( next_block );
stats->free_blocks -= 1;
200dc00: c6 06 20 38 ld [ %i0 + 0x38 ], %g3
}
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block )
{
Heap_Block *next = block->next;
Heap_Block *prev = block->prev;
200dc04: c2 00 a0 0c ld [ %g2 + 0xc ], %g1
return _Heap_Free_list_tail(heap)->prev;
}
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block )
{
Heap_Block *next = block->next;
200dc08: c4 00 a0 08 ld [ %g2 + 8 ], %g2
200dc0c: 86 00 ff ff add %g3, -1, %g3
200dc10: c6 26 20 38 st %g3, [ %i0 + 0x38 ]
_HAssert( false );
return( false );
}
if ( next_is_free ) { /* coalesce both */
uintptr_t const size = block_size + prev_size + next_block_size;
200dc14: 96 01 00 0b add %g4, %o3, %o3
Heap_Block *prev = block->prev;
prev->next = next;
next->prev = prev;
200dc18: c2 20 a0 0c st %g1, [ %g2 + 0xc ]
200dc1c: 94 02 c0 0a add %o3, %o2, %o2
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block )
{
Heap_Block *next = block->next;
Heap_Block *prev = block->prev;
prev->next = next;
200dc20: c4 20 60 08 st %g2, [ %g1 + 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;
200dc24: d4 23 40 0a st %o2, [ %o5 + %o2 ]
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;
200dc28: 94 12 a0 01 or %o2, 1, %o2
200dc2c: 10 80 00 10 b 200dc6c <_Heap_Free+0x130>
200dc30: d4 23 60 04 st %o2, [ %o5 + 4 ]
--stats->used_blocks;
++stats->frees;
stats->free_size += block_size;
return( true );
}
200dc34: 81 c7 e0 08 ret
200dc38: 91 e8 20 00 restore %g0, 0, %o0
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;
next_block->prev_size = size;
}
} else if ( next_is_free ) { /* coalesce next */
200dc3c: 02 80 00 17 be 200dc98 <_Heap_Free+0x15c>
200dc40: 82 11 20 01 or %g4, 1, %g1
Heap_Block *old_block,
Heap_Block *new_block
)
{
Heap_Block *next = old_block->next;
Heap_Block *prev = old_block->prev;
200dc44: 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;
200dc48: c4 00 a0 08 ld [ %g2 + 8 ], %g2
Heap_Block *prev = old_block->prev;
new_block->next = next;
new_block->prev = prev;
200dc4c: c2 22 20 0c st %g1, [ %o0 + 0xc ]
)
{
Heap_Block *next = old_block->next;
Heap_Block *prev = old_block->prev;
new_block->next = next;
200dc50: c4 22 20 08 st %g2, [ %o0 + 8 ]
uintptr_t const size = block_size + next_block_size;
200dc54: 96 02 c0 04 add %o3, %g4, %o3
new_block->prev = prev;
next->prev = new_block;
200dc58: d0 20 a0 0c st %o0, [ %g2 + 0xc ]
_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;
200dc5c: d6 22 00 0b st %o3, [ %o0 + %o3 ]
prev->next = new_block;
200dc60: d0 20 60 08 st %o0, [ %g1 + 8 ]
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;
200dc64: 96 12 e0 01 or %o3, 1, %o3
200dc68: d6 22 20 04 st %o3, [ %o0 + 4 ]
stats->max_free_blocks = stats->free_blocks;
}
}
/* Statistics */
--stats->used_blocks;
200dc6c: c4 06 20 40 ld [ %i0 + 0x40 ], %g2
++stats->frees;
200dc70: c2 06 20 50 ld [ %i0 + 0x50 ], %g1
stats->free_size += block_size;
200dc74: c6 06 20 30 ld [ %i0 + 0x30 ], %g3
stats->max_free_blocks = stats->free_blocks;
}
}
/* Statistics */
--stats->used_blocks;
200dc78: 84 00 bf ff add %g2, -1, %g2
++stats->frees;
stats->free_size += block_size;
200dc7c: 88 00 c0 04 add %g3, %g4, %g4
stats->max_free_blocks = stats->free_blocks;
}
}
/* Statistics */
--stats->used_blocks;
200dc80: c4 26 20 40 st %g2, [ %i0 + 0x40 ]
++stats->frees;
stats->free_size += block_size;
200dc84: c8 26 20 30 st %g4, [ %i0 + 0x30 ]
}
}
/* Statistics */
--stats->used_blocks;
++stats->frees;
200dc88: 82 00 60 01 inc %g1
200dc8c: c2 26 20 50 st %g1, [ %i0 + 0x50 ]
stats->free_size += block_size;
return( true );
200dc90: 81 c7 e0 08 ret
200dc94: 91 e8 20 01 restore %g0, 1, %o0
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;
200dc98: c2 22 20 04 st %g1, [ %o0 + 4 ]
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
200dc9c: 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;
200dca0: c6 06 20 08 ld [ %i0 + 8 ], %g3
200dca4: 82 08 7f fe and %g1, -2, %g1
next_block->prev_size = block_size;
200dca8: c8 22 00 04 st %g4, [ %o0 + %g4 ]
} 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;
200dcac: c2 20 a0 04 st %g1, [ %g2 + 4 ]
next_block->prev_size = block_size;
/* Statistics */
++stats->free_blocks;
200dcb0: c2 06 20 38 ld [ %i0 + 0x38 ], %g1
new_block->next = next;
200dcb4: c6 22 20 08 st %g3, [ %o0 + 8 ]
new_block->prev = block_before;
200dcb8: 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;
200dcbc: 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;
200dcc0: 82 00 60 01 inc %g1
block_before->next = new_block;
next->prev = new_block;
200dcc4: d0 20 e0 0c st %o0, [ %g3 + 0xc ]
{
Heap_Block *next = block_before->next;
new_block->next = next;
new_block->prev = block_before;
block_before->next = new_block;
200dcc8: 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;
200dccc: 80 a0 40 02 cmp %g1, %g2
200dcd0: 08 bf ff e7 bleu 200dc6c <_Heap_Free+0x130>
200dcd4: 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;
200dcd8: 10 bf ff e5 b 200dc6c <_Heap_Free+0x130>
200dcdc: c2 26 20 3c st %g1, [ %i0 + 0x3c ]
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;
200dce0: 82 12 a0 01 or %o2, 1, %g1
200dce4: c2 23 60 04 st %g1, [ %o5 + 4 ]
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
200dce8: c2 00 a0 04 ld [ %g2 + 4 ], %g1
next_block->prev_size = size;
200dcec: d4 22 00 04 st %o2, [ %o0 + %g4 ]
_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;
200dcf0: 82 08 7f fe and %g1, -2, %g1
200dcf4: 10 bf ff de b 200dc6c <_Heap_Free+0x130>
200dcf8: c2 20 a0 04 st %g1, [ %g2 + 4 ]
020300ec <_Heap_Get_free_information>:
void _Heap_Get_free_information(
Heap_Control *the_heap,
Heap_Information *info
)
{
20300ec: 9d e3 bf a0 save %sp, -96, %sp
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
20300f0: c2 06 20 08 ld [ %i0 + 8 ], %g1
Heap_Block *the_block;
Heap_Block *const tail = _Heap_Free_list_tail(the_heap);
info->number = 0;
20300f4: c0 26 40 00 clr [ %i1 ]
info->largest = 0;
20300f8: c0 26 60 04 clr [ %i1 + 4 ]
info->total = 0;
for(the_block = _Heap_Free_list_first(the_heap);
20300fc: 80 a6 00 01 cmp %i0, %g1
2030100: 02 80 00 13 be 203014c <_Heap_Get_free_information+0x60> <== NEVER TAKEN
2030104: c0 26 60 08 clr [ %i1 + 8 ]
2030108: 88 10 20 01 mov 1, %g4
203010c: 10 80 00 03 b 2030118 <_Heap_Get_free_information+0x2c>
2030110: 86 10 20 00 clr %g3
2030114: 88 10 00 02 mov %g2, %g4
- 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;
2030118: c4 00 60 04 ld [ %g1 + 4 ], %g2
/* As we always coalesce free blocks, prev block must have been used. */
_HAssert(_Heap_Is_prev_used(the_block));
info->number++;
info->total += the_size;
if ( info->largest < the_size )
203011c: da 06 60 04 ld [ %i1 + 4 ], %o5
2030120: 84 08 bf fe and %g2, -2, %g2
2030124: 80 a3 40 02 cmp %o5, %g2
2030128: 1a 80 00 03 bcc 2030134 <_Heap_Get_free_information+0x48>
203012c: 86 00 c0 02 add %g3, %g2, %g3
info->largest = the_size;
2030130: c4 26 60 04 st %g2, [ %i1 + 4 ]
info->largest = 0;
info->total = 0;
for(the_block = _Heap_Free_list_first(the_heap);
the_block != tail;
the_block = the_block->next)
2030134: c2 00 60 08 ld [ %g1 + 8 ], %g1
info->number = 0;
info->largest = 0;
info->total = 0;
for(the_block = _Heap_Free_list_first(the_heap);
2030138: 80 a6 00 01 cmp %i0, %g1
203013c: 12 bf ff f6 bne 2030114 <_Heap_Get_free_information+0x28>
2030140: 84 01 20 01 add %g4, 1, %g2
2030144: c6 26 60 08 st %g3, [ %i1 + 8 ]
2030148: c8 26 40 00 st %g4, [ %i1 ]
203014c: 81 c7 e0 08 ret
2030150: 81 e8 00 00 restore
02045efc <_Heap_Get_information>:
void _Heap_Get_information(
Heap_Control *the_heap,
Heap_Information_block *the_info
)
{
2045efc: 9d e3 bf a0 save %sp, -96, %sp
Heap_Block *the_block = the_heap->first_block;
Heap_Block *const end = the_heap->last_block;
2045f00: c4 06 20 24 ld [ %i0 + 0x24 ], %g2
void _Heap_Get_information(
Heap_Control *the_heap,
Heap_Information_block *the_info
)
{
Heap_Block *the_block = the_heap->first_block;
2045f04: c2 06 20 20 ld [ %i0 + 0x20 ], %g1
Heap_Block *const end = the_heap->last_block;
_HAssert(the_block->prev_size == the_heap->page_size);
_HAssert(_Heap_Is_prev_used(the_block));
the_info->Free.number = 0;
2045f08: c0 26 40 00 clr [ %i1 ]
the_info->Free.total = 0;
2045f0c: c0 26 60 08 clr [ %i1 + 8 ]
the_info->Free.largest = 0;
2045f10: c0 26 60 04 clr [ %i1 + 4 ]
the_info->Used.number = 0;
2045f14: c0 26 60 0c clr [ %i1 + 0xc ]
the_info->Used.total = 0;
2045f18: c0 26 60 14 clr [ %i1 + 0x14 ]
the_info->Used.largest = 0;
2045f1c: c0 26 60 10 clr [ %i1 + 0x10 ]
while ( the_block != end ) {
2045f20: 80 a0 40 02 cmp %g1, %g2
2045f24: 02 80 00 1a be 2045f8c <_Heap_Get_information+0x90> <== NEVER TAKEN
2045f28: 86 10 20 08 mov 8, %g3
2045f2c: da 00 60 04 ld [ %g1 + 4 ], %o5
uintptr_t const the_size = _Heap_Block_size(the_block);
Heap_Block *const next_block = _Heap_Block_at(the_block, the_size);
Heap_Information *info;
if ( _Heap_Is_prev_used(next_block) )
info = &the_info->Used;
2045f30: 92 06 60 0c add %i1, 0xc, %o1
- 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;
2045f34: 88 0b 7f fe and %o5, -2, %g4
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
2045f38: 82 00 40 04 add %g1, %g4, %g1
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;
2045f3c: da 00 60 04 ld [ %g1 + 4 ], %o5
while ( the_block != end ) {
uintptr_t const the_size = _Heap_Block_size(the_block);
Heap_Block *const next_block = _Heap_Block_at(the_block, the_size);
Heap_Information *info;
if ( _Heap_Is_prev_used(next_block) )
2045f40: 80 8b 60 01 btst 1, %o5
2045f44: 12 80 00 03 bne 2045f50 <_Heap_Get_information+0x54>
2045f48: 86 10 00 09 mov %o1, %g3
2045f4c: 86 10 00 19 mov %i1, %g3
info = &the_info->Used;
else
info = &the_info->Free;
info->number++;
2045f50: d4 00 c0 00 ld [ %g3 ], %o2
info->total += the_size;
2045f54: d6 00 e0 08 ld [ %g3 + 8 ], %o3
if ( info->largest < the_size )
2045f58: d8 00 e0 04 ld [ %g3 + 4 ], %o4
if ( _Heap_Is_prev_used(next_block) )
info = &the_info->Used;
else
info = &the_info->Free;
info->number++;
2045f5c: 94 02 a0 01 inc %o2
info->total += the_size;
2045f60: 96 02 c0 04 add %o3, %g4, %o3
if ( _Heap_Is_prev_used(next_block) )
info = &the_info->Used;
else
info = &the_info->Free;
info->number++;
2045f64: d4 20 c0 00 st %o2, [ %g3 ]
info->total += the_size;
if ( info->largest < the_size )
2045f68: 80 a3 00 04 cmp %o4, %g4
2045f6c: 1a 80 00 03 bcc 2045f78 <_Heap_Get_information+0x7c>
2045f70: d6 20 e0 08 st %o3, [ %g3 + 8 ]
info->largest = the_size;
2045f74: c8 20 e0 04 st %g4, [ %g3 + 4 ]
the_info->Free.largest = 0;
the_info->Used.number = 0;
the_info->Used.total = 0;
the_info->Used.largest = 0;
while ( the_block != end ) {
2045f78: 80 a0 80 01 cmp %g2, %g1
2045f7c: 12 bf ff ef bne 2045f38 <_Heap_Get_information+0x3c>
2045f80: 88 0b 7f fe and %o5, -2, %g4
2045f84: c6 06 60 14 ld [ %i1 + 0x14 ], %g3
2045f88: 86 00 e0 08 add %g3, 8, %g3
/*
* Handle the last dummy block. Don't consider this block to be
* "used" as client never allocated it. Make 'Used.total' contain this
* blocks' overhead though.
*/
the_info->Used.total += HEAP_BLOCK_HEADER_SIZE;
2045f8c: c6 26 60 14 st %g3, [ %i1 + 0x14 ]
}
2045f90: 81 c7 e0 08 ret
2045f94: 81 e8 00 00 restore
0201b678 <_Heap_Size_of_alloc_area>:
bool _Heap_Size_of_alloc_area(
Heap_Control *heap,
void *alloc_begin_ptr,
uintptr_t *alloc_size
)
{
201b678: 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 )
201b67c: d2 06 20 10 ld [ %i0 + 0x10 ], %o1
201b680: 7f ff f9 73 call 2019c4c <.urem>
201b684: 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;
201b688: 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 )
201b68c: 84 06 7f f8 add %i1, -8, %g2
201b690: 84 20 80 08 sub %g2, %o0, %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
201b694: 80 a0 80 01 cmp %g2, %g1
201b698: 0a 80 00 16 bcs 201b6f0 <_Heap_Size_of_alloc_area+0x78>
201b69c: 01 00 00 00 nop
&& (uintptr_t) block <= (uintptr_t) heap->last_block;
201b6a0: c6 06 20 24 ld [ %i0 + 0x24 ], %g3
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
201b6a4: 80 a0 80 03 cmp %g2, %g3
201b6a8: 18 80 00 12 bgu 201b6f0 <_Heap_Size_of_alloc_area+0x78> <== NEVER TAKEN
201b6ac: 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);
201b6b0: c8 00 a0 04 ld [ %g2 + 4 ], %g4
201b6b4: 88 09 3f fe and %g4, -2, %g4
201b6b8: 84 00 80 04 add %g2, %g4, %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
201b6bc: 80 a0 40 02 cmp %g1, %g2
201b6c0: 18 80 00 0c bgu 201b6f0 <_Heap_Size_of_alloc_area+0x78> <== NEVER TAKEN
201b6c4: 80 a0 c0 02 cmp %g3, %g2
201b6c8: 0a 80 00 0a bcs 201b6f0 <_Heap_Size_of_alloc_area+0x78> <== NEVER TAKEN
201b6cc: 01 00 00 00 nop
}
block_size = _Heap_Block_size( block );
next_block = _Heap_Block_at( block, block_size );
if (
201b6d0: c2 00 a0 04 ld [ %g2 + 4 ], %g1
201b6d4: 80 88 60 01 btst 1, %g1
201b6d8: 02 80 00 06 be 201b6f0 <_Heap_Size_of_alloc_area+0x78> <== NEVER TAKEN
201b6dc: 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;
201b6e0: 84 00 a0 04 add %g2, 4, %g2
201b6e4: c4 26 80 00 st %g2, [ %i2 ]
return true;
201b6e8: 81 c7 e0 08 ret
201b6ec: 91 e8 20 01 restore %g0, 1, %o0
}
201b6f0: 81 c7 e0 08 ret
201b6f4: 91 e8 20 00 restore %g0, 0, %o0
02008a88 <_Heap_Walk>:
bool _Heap_Walk(
Heap_Control *heap,
int source,
bool dump
)
{
2008a88: 9d e3 bf 80 save %sp, -128, %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;
2008a8c: 25 00 80 24 sethi %hi(0x2009000), %l2
2008a90: 80 8e a0 ff btst 0xff, %i2
2008a94: a4 14 a0 b8 or %l2, 0xb8, %l2
Heap_Control *heap,
int source,
bool dump
)
{
uintptr_t const page_size = heap->page_size;
2008a98: ea 06 20 10 ld [ %i0 + 0x10 ], %l5
uintptr_t const min_block_size = heap->min_block_size;
2008a9c: e6 06 20 14 ld [ %i0 + 0x14 ], %l3
Heap_Block *const last_block = heap->last_block;
2008aa0: 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;
2008aa4: 12 80 00 04 bne 2008ab4 <_Heap_Walk+0x2c>
2008aa8: e0 06 20 20 ld [ %i0 + 0x20 ], %l0
2008aac: 25 00 80 22 sethi %hi(0x2008800), %l2
2008ab0: a4 14 a2 80 or %l2, 0x280, %l2 ! 2008a80 <_Heap_Walk_print_nothing>
if ( !_System_state_Is_up( _System_state_Get() ) ) {
2008ab4: 03 00 80 81 sethi %hi(0x2020400), %g1
2008ab8: c2 00 62 f0 ld [ %g1 + 0x2f0 ], %g1 ! 20206f0 <_System_state_Current>
2008abc: 80 a0 60 03 cmp %g1, 3
2008ac0: 22 80 00 04 be,a 2008ad0 <_Heap_Walk+0x48>
2008ac4: da 06 20 18 ld [ %i0 + 0x18 ], %o5
block = next_block;
}
return true;
}
2008ac8: 81 c7 e0 08 ret
2008acc: 91 e8 20 01 restore %g0, 1, %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)(
2008ad0: c6 06 20 1c ld [ %i0 + 0x1c ], %g3
2008ad4: c4 06 20 08 ld [ %i0 + 8 ], %g2
2008ad8: c2 06 20 0c ld [ %i0 + 0xc ], %g1
2008adc: 90 10 00 19 mov %i1, %o0
2008ae0: c6 23 a0 5c st %g3, [ %sp + 0x5c ]
2008ae4: c4 23 a0 68 st %g2, [ %sp + 0x68 ]
2008ae8: c2 23 a0 6c st %g1, [ %sp + 0x6c ]
2008aec: e0 23 a0 60 st %l0, [ %sp + 0x60 ]
2008af0: e8 23 a0 64 st %l4, [ %sp + 0x64 ]
2008af4: 92 10 20 00 clr %o1
2008af8: 15 00 80 75 sethi %hi(0x201d400), %o2
2008afc: 96 10 00 15 mov %l5, %o3
2008b00: 94 12 a2 80 or %o2, 0x280, %o2
2008b04: 9f c4 80 00 call %l2
2008b08: 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 ) {
2008b0c: 80 a5 60 00 cmp %l5, 0
2008b10: 02 80 00 36 be 2008be8 <_Heap_Walk+0x160>
2008b14: 80 8d 60 07 btst 7, %l5
(*printer)( source, true, "page size is zero\n" );
return false;
}
if ( !_Addresses_Is_aligned( (void *) page_size ) ) {
2008b18: 12 80 00 3c bne 2008c08 <_Heap_Walk+0x180>
2008b1c: 90 10 00 13 mov %l3, %o0
);
return false;
}
if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {
2008b20: 7f ff e3 e9 call 2001ac4 <.urem>
2008b24: 92 10 00 15 mov %l5, %o1
2008b28: 80 a2 20 00 cmp %o0, 0
2008b2c: 12 80 00 40 bne 2008c2c <_Heap_Walk+0x1a4>
2008b30: 90 04 20 08 add %l0, 8, %o0
);
return false;
}
if (
2008b34: 7f ff e3 e4 call 2001ac4 <.urem>
2008b38: 92 10 00 15 mov %l5, %o1
2008b3c: 80 a2 20 00 cmp %o0, 0
2008b40: 32 80 00 44 bne,a 2008c50 <_Heap_Walk+0x1c8>
2008b44: 90 10 00 19 mov %i1, %o0
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;
2008b48: ec 04 20 04 ld [ %l0 + 4 ], %l6
);
return false;
}
if ( !_Heap_Is_prev_used( first_block ) ) {
2008b4c: ba 8d a0 01 andcc %l6, 1, %i5
2008b50: 22 80 00 48 be,a 2008c70 <_Heap_Walk+0x1e8>
2008b54: 90 10 00 19 mov %i1, %o0
);
return false;
}
if ( first_block->prev_size != page_size ) {
2008b58: d6 04 00 00 ld [ %l0 ], %o3
2008b5c: 80 a5 40 0b cmp %l5, %o3
2008b60: 32 80 00 1a bne,a 2008bc8 <_Heap_Walk+0x140>
2008b64: 90 10 00 19 mov %i1, %o0
);
return false;
}
if ( _Heap_Is_free( last_block ) ) {
2008b68: c2 05 20 04 ld [ %l4 + 4 ], %g1
2008b6c: 82 08 7f fe and %g1, -2, %g1
2008b70: 82 05 00 01 add %l4, %g1, %g1
2008b74: c2 00 60 04 ld [ %g1 + 4 ], %g1
2008b78: 80 88 60 01 btst 1, %g1
2008b7c: 22 80 01 2e be,a 2009034 <_Heap_Walk+0x5ac>
2008b80: 90 10 00 19 mov %i1, %o0
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
2008b84: ee 06 20 08 ld [ %i0 + 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 ) {
2008b88: 80 a6 00 17 cmp %i0, %l7
2008b8c: 02 80 00 79 be 2008d70 <_Heap_Walk+0x2e8>
2008b90: f8 06 20 10 ld [ %i0 + 0x10 ], %i4
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;
2008b94: f6 06 20 20 ld [ %i0 + 0x20 ], %i3
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
2008b98: 80 a6 c0 17 cmp %i3, %l7
2008b9c: 28 80 00 3c bleu,a 2008c8c <_Heap_Walk+0x204> <== ALWAYS TAKEN
2008ba0: f4 06 20 24 ld [ %i0 + 0x24 ], %i2
if ( !_Heap_Is_block_in_heap( heap, free_block ) ) {
(*printer)(
2008ba4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
2008ba8: 96 10 00 17 mov %l7, %o3
2008bac: 92 10 20 01 mov 1, %o1
2008bb0: 15 00 80 76 sethi %hi(0x201d800), %o2
2008bb4: b0 10 20 00 clr %i0
2008bb8: 9f c4 80 00 call %l2
2008bbc: 94 12 a0 28 or %o2, 0x28, %o2
2008bc0: 81 c7 e0 08 ret
2008bc4: 81 e8 00 00 restore
return false;
}
if ( first_block->prev_size != page_size ) {
(*printer)(
2008bc8: 98 10 00 15 mov %l5, %o4
2008bcc: 92 10 20 01 mov 1, %o1
2008bd0: 15 00 80 75 sethi %hi(0x201d400), %o2
2008bd4: b0 10 20 00 clr %i0
2008bd8: 9f c4 80 00 call %l2
2008bdc: 94 12 a3 e0 or %o2, 0x3e0, %o2
2008be0: 81 c7 e0 08 ret
2008be4: 81 e8 00 00 restore
first_block, last_block,
first_free_block, last_free_block
);
if ( page_size == 0 ) {
(*printer)( source, true, "page size is zero\n" );
2008be8: 90 10 00 19 mov %i1, %o0
2008bec: 92 10 20 01 mov 1, %o1
2008bf0: 15 00 80 75 sethi %hi(0x201d400), %o2
2008bf4: b0 10 20 00 clr %i0
2008bf8: 9f c4 80 00 call %l2
2008bfc: 94 12 a3 18 or %o2, 0x318, %o2
2008c00: 81 c7 e0 08 ret
2008c04: 81 e8 00 00 restore
return false;
}
if ( !_Addresses_Is_aligned( (void *) page_size ) ) {
(*printer)(
2008c08: 90 10 00 19 mov %i1, %o0
2008c0c: 96 10 00 15 mov %l5, %o3
2008c10: 92 10 20 01 mov 1, %o1
2008c14: 15 00 80 75 sethi %hi(0x201d400), %o2
2008c18: b0 10 20 00 clr %i0
2008c1c: 9f c4 80 00 call %l2
2008c20: 94 12 a3 30 or %o2, 0x330, %o2
2008c24: 81 c7 e0 08 ret
2008c28: 81 e8 00 00 restore
return false;
}
if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {
(*printer)(
2008c2c: 90 10 00 19 mov %i1, %o0
2008c30: 96 10 00 13 mov %l3, %o3
2008c34: 92 10 20 01 mov 1, %o1
2008c38: 15 00 80 75 sethi %hi(0x201d400), %o2
2008c3c: b0 10 20 00 clr %i0
2008c40: 9f c4 80 00 call %l2
2008c44: 94 12 a3 50 or %o2, 0x350, %o2
2008c48: 81 c7 e0 08 ret
2008c4c: 81 e8 00 00 restore
}
if (
!_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
) {
(*printer)(
2008c50: 96 10 00 10 mov %l0, %o3
2008c54: 92 10 20 01 mov 1, %o1
2008c58: 15 00 80 75 sethi %hi(0x201d400), %o2
2008c5c: b0 10 20 00 clr %i0
2008c60: 9f c4 80 00 call %l2
2008c64: 94 12 a3 78 or %o2, 0x378, %o2
2008c68: 81 c7 e0 08 ret
2008c6c: 81 e8 00 00 restore
return false;
}
if ( !_Heap_Is_prev_used( first_block ) ) {
(*printer)(
2008c70: 92 10 20 01 mov 1, %o1
2008c74: 15 00 80 75 sethi %hi(0x201d400), %o2
2008c78: b0 10 20 00 clr %i0
2008c7c: 9f c4 80 00 call %l2
2008c80: 94 12 a3 b0 or %o2, 0x3b0, %o2
2008c84: 81 c7 e0 08 ret
2008c88: 81 e8 00 00 restore
2008c8c: 80 a5 c0 1a cmp %l7, %i2
2008c90: 18 bf ff c6 bgu 2008ba8 <_Heap_Walk+0x120> <== NEVER TAKEN
2008c94: 90 10 00 19 mov %i1, %o0
);
return false;
}
if (
2008c98: 90 05 e0 08 add %l7, 8, %o0
2008c9c: 7f ff e3 8a call 2001ac4 <.urem>
2008ca0: 92 10 00 1c mov %i4, %o1
2008ca4: 80 a2 20 00 cmp %o0, 0
2008ca8: 12 80 00 ea bne 2009050 <_Heap_Walk+0x5c8> <== NEVER TAKEN
2008cac: 90 10 00 19 mov %i1, %o0
);
return false;
}
if ( _Heap_Is_used( free_block ) ) {
2008cb0: c2 05 e0 04 ld [ %l7 + 4 ], %g1
2008cb4: 82 08 7f fe and %g1, -2, %g1
2008cb8: 82 05 c0 01 add %l7, %g1, %g1
2008cbc: c2 00 60 04 ld [ %g1 + 4 ], %g1
2008cc0: 80 88 60 01 btst 1, %g1
2008cc4: 12 80 00 f5 bne 2009098 <_Heap_Walk+0x610> <== NEVER TAKEN
2008cc8: 01 00 00 00 nop
);
return false;
}
if ( free_block->prev != prev_block ) {
2008ccc: e2 05 e0 0c ld [ %l7 + 0xc ], %l1
2008cd0: 80 a4 40 18 cmp %l1, %i0
2008cd4: 12 80 00 e9 bne 2009078 <_Heap_Walk+0x5f0> <== NEVER TAKEN
2008cd8: 96 10 00 17 mov %l7, %o3
2008cdc: fa 27 bf fc st %i5, [ %fp + -4 ]
2008ce0: ba 10 00 15 mov %l5, %i5
2008ce4: aa 10 00 13 mov %l3, %l5
2008ce8: a6 10 00 10 mov %l0, %l3
2008cec: 10 80 00 18 b 2008d4c <_Heap_Walk+0x2c4>
2008cf0: a0 10 00 1c mov %i4, %l0
2008cf4: 18 bf ff ad bgu 2008ba8 <_Heap_Walk+0x120>
2008cf8: 90 10 00 19 mov %i1, %o0
2008cfc: 80 a5 c0 1a cmp %l7, %i2
2008d00: 18 bf ff ab bgu 2008bac <_Heap_Walk+0x124> <== NEVER TAKEN
2008d04: 96 10 00 17 mov %l7, %o3
);
return false;
}
if (
2008d08: 90 05 e0 08 add %l7, 8, %o0
2008d0c: 7f ff e3 6e call 2001ac4 <.urem>
2008d10: 92 10 00 10 mov %l0, %o1
2008d14: 80 a2 20 00 cmp %o0, 0
2008d18: 32 80 00 ce bne,a 2009050 <_Heap_Walk+0x5c8>
2008d1c: 90 10 00 19 mov %i1, %o0
);
return false;
}
if ( _Heap_Is_used( free_block ) ) {
2008d20: c2 05 e0 04 ld [ %l7 + 4 ], %g1
2008d24: 82 08 7f fe and %g1, -2, %g1
2008d28: 82 00 40 17 add %g1, %l7, %g1
2008d2c: c2 00 60 04 ld [ %g1 + 4 ], %g1
2008d30: 80 88 60 01 btst 1, %g1
2008d34: 32 80 00 d9 bne,a 2009098 <_Heap_Walk+0x610>
2008d38: 90 10 00 19 mov %i1, %o0
);
return false;
}
if ( free_block->prev != prev_block ) {
2008d3c: c2 05 e0 0c ld [ %l7 + 0xc ], %g1
2008d40: 80 a7 00 01 cmp %i4, %g1
2008d44: 32 80 00 cb bne,a 2009070 <_Heap_Walk+0x5e8>
2008d48: a2 10 00 01 mov %g1, %l1
(*printer)(
2008d4c: b8 10 00 17 mov %l7, %i4
return false;
}
prev_block = free_block;
free_block = free_block->next;
2008d50: 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 ) {
2008d54: 80 a4 40 17 cmp %l1, %l7
2008d58: 12 bf ff e7 bne 2008cf4 <_Heap_Walk+0x26c>
2008d5c: 80 a6 c0 17 cmp %i3, %l7
2008d60: a0 10 00 13 mov %l3, %l0
2008d64: a6 10 00 15 mov %l5, %l3
2008d68: aa 10 00 1d mov %i5, %l5
2008d6c: fa 07 bf fc ld [ %fp + -4 ], %i5
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
}
while ( block != last_block ) {
2008d70: 80 a5 00 10 cmp %l4, %l0
2008d74: 02 bf ff 55 be 2008ac8 <_Heap_Walk+0x40> <== NEVER TAKEN
2008d78: 37 00 80 76 sethi %hi(0x201d800), %i3
"block 0x%08x: size %u\n",
block,
block_size
);
} else {
(*printer)(
2008d7c: 35 00 80 76 sethi %hi(0x201d800), %i2
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
block->next,
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
2008d80: 39 00 80 76 sethi %hi(0x201d800), %i4
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
2008d84: 82 10 00 1d mov %i5, %g1
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)(
2008d88: b6 16 e0 d0 or %i3, 0xd0, %i3
2008d8c: ba 10 00 15 mov %l5, %i5
"block 0x%08x: size %u\n",
block,
block_size
);
} else {
(*printer)(
2008d90: b4 16 a0 e8 or %i2, 0xe8, %i2
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
block->next,
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
2008d94: b8 17 21 e8 or %i4, 0x1e8, %i4
2008d98: aa 10 00 14 mov %l4, %l5
- 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;
2008d9c: ac 0d bf fe and %l6, -2, %l6
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 ) {
2008da0: 80 a0 60 00 cmp %g1, 0
2008da4: 02 80 00 16 be 2008dfc <_Heap_Walk+0x374>
2008da8: a2 05 80 10 add %l6, %l0, %l1
(*printer)(
2008dac: 90 10 00 19 mov %i1, %o0
2008db0: 92 10 20 00 clr %o1
2008db4: 94 10 00 1b mov %i3, %o2
2008db8: 96 10 00 10 mov %l0, %o3
2008dbc: 9f c4 80 00 call %l2
2008dc0: 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
2008dc4: c2 06 20 20 ld [ %i0 + 0x20 ], %g1
2008dc8: 80 a0 40 11 cmp %g1, %l1
2008dcc: 28 80 00 18 bleu,a 2008e2c <_Heap_Walk+0x3a4> <== ALWAYS TAKEN
2008dd0: c2 06 20 24 ld [ %i0 + 0x24 ], %g1
block->prev_size
);
}
if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {
(*printer)(
2008dd4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
2008dd8: 96 10 00 10 mov %l0, %o3
2008ddc: 98 10 00 11 mov %l1, %o4
2008de0: 92 10 20 01 mov 1, %o1
2008de4: 15 00 80 76 sethi %hi(0x201d800), %o2
2008de8: b0 10 20 00 clr %i0
2008dec: 9f c4 80 00 call %l2
2008df0: 94 12 a1 10 or %o2, 0x110, %o2
"block 0x%08x: next block 0x%08x not in heap\n",
block,
next_block
);
return false;
2008df4: 81 c7 e0 08 ret
2008df8: 81 e8 00 00 restore
"block 0x%08x: size %u\n",
block,
block_size
);
} else {
(*printer)(
2008dfc: da 04 00 00 ld [ %l0 ], %o5
2008e00: 90 10 00 19 mov %i1, %o0
2008e04: 92 10 20 00 clr %o1
2008e08: 94 10 00 1a mov %i2, %o2
2008e0c: 96 10 00 10 mov %l0, %o3
2008e10: 9f c4 80 00 call %l2
2008e14: 98 10 00 16 mov %l6, %o4
2008e18: c2 06 20 20 ld [ %i0 + 0x20 ], %g1
2008e1c: 80 a0 40 11 cmp %g1, %l1
2008e20: 18 bf ff ee bgu 2008dd8 <_Heap_Walk+0x350> <== NEVER TAKEN
2008e24: 90 10 00 19 mov %i1, %o0
2008e28: c2 06 20 24 ld [ %i0 + 0x24 ], %g1
2008e2c: 80 a0 40 11 cmp %g1, %l1
2008e30: 0a bf ff ea bcs 2008dd8 <_Heap_Walk+0x350>
2008e34: 90 10 00 19 mov %i1, %o0
);
return false;
}
if ( !_Heap_Is_aligned( block_size, page_size ) ) {
2008e38: 90 10 00 16 mov %l6, %o0
2008e3c: 7f ff e3 22 call 2001ac4 <.urem>
2008e40: 92 10 00 1d mov %i5, %o1
2008e44: 80 a2 20 00 cmp %o0, 0
2008e48: 12 80 00 5d bne 2008fbc <_Heap_Walk+0x534>
2008e4c: 80 a4 c0 16 cmp %l3, %l6
);
return false;
}
if ( block_size < min_block_size ) {
2008e50: 18 80 00 65 bgu 2008fe4 <_Heap_Walk+0x55c>
2008e54: 80 a4 00 11 cmp %l0, %l1
);
return false;
}
if ( next_block_begin <= block_begin ) {
2008e58: 3a 80 00 6e bcc,a 2009010 <_Heap_Walk+0x588>
2008e5c: 90 10 00 19 mov %i1, %o0
);
return false;
}
if ( !_Heap_Is_prev_used( next_block ) ) {
2008e60: c2 04 60 04 ld [ %l1 + 4 ], %g1
2008e64: 80 88 60 01 btst 1, %g1
2008e68: 12 80 00 40 bne 2008f68 <_Heap_Walk+0x4e0>
2008e6c: 80 a5 40 11 cmp %l5, %l1
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;
2008e70: e8 04 20 04 ld [ %l0 + 4 ], %l4
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)(
2008e74: 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;
2008e78: 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;
2008e7c: ac 0d 3f fe and %l4, -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;
2008e80: 1b 00 80 76 sethi %hi(0x201d800), %o5
2008e84: 80 a0 40 0c cmp %g1, %o4
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_last( Heap_Control *heap )
{
return _Heap_Free_list_tail(heap)->prev;
2008e88: 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);
2008e8c: 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;
2008e90: 02 80 00 07 be 2008eac <_Heap_Walk+0x424>
2008e94: 9a 13 61 d8 or %o5, 0x1d8, %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)" : ""),
2008e98: 1b 00 80 76 sethi %hi(0x201d800), %o5
2008e9c: 80 a3 00 18 cmp %o4, %i0
2008ea0: 02 80 00 03 be 2008eac <_Heap_Walk+0x424>
2008ea4: 9a 13 61 f0 or %o5, 0x1f0, %o5
2008ea8: 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)(
2008eac: c2 04 20 08 ld [ %l0 + 8 ], %g1
2008eb0: 05 00 80 76 sethi %hi(0x201d800), %g2
2008eb4: 80 a0 c0 01 cmp %g3, %g1
2008eb8: 02 80 00 07 be 2008ed4 <_Heap_Walk+0x44c>
2008ebc: 84 10 a2 00 or %g2, 0x200, %g2
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
block->next,
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
2008ec0: 05 00 80 76 sethi %hi(0x201d800), %g2
2008ec4: 80 a0 40 18 cmp %g1, %i0
2008ec8: 02 80 00 03 be 2008ed4 <_Heap_Walk+0x44c>
2008ecc: 84 10 a2 10 or %g2, 0x210, %g2
2008ed0: 84 10 00 1c mov %i4, %g2
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)(
2008ed4: c2 23 a0 5c st %g1, [ %sp + 0x5c ]
2008ed8: c4 23 a0 60 st %g2, [ %sp + 0x60 ]
2008edc: 90 10 00 19 mov %i1, %o0
2008ee0: 92 10 20 00 clr %o1
2008ee4: 15 00 80 76 sethi %hi(0x201d800), %o2
2008ee8: 96 10 00 10 mov %l0, %o3
2008eec: 9f c4 80 00 call %l2
2008ef0: 94 12 a2 20 or %o2, 0x220, %o2
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
);
if ( block_size != next_block->prev_size ) {
2008ef4: da 05 c0 00 ld [ %l7 ], %o5
2008ef8: 80 a5 80 0d cmp %l6, %o5
2008efc: 02 80 00 0c be 2008f2c <_Heap_Walk+0x4a4>
2008f00: 90 10 00 19 mov %i1, %o0
(*printer)(
2008f04: ee 23 a0 5c st %l7, [ %sp + 0x5c ]
2008f08: 96 10 00 10 mov %l0, %o3
2008f0c: 98 10 00 16 mov %l6, %o4
2008f10: 92 10 20 01 mov 1, %o1
2008f14: 15 00 80 76 sethi %hi(0x201d800), %o2
2008f18: b0 10 20 00 clr %i0
2008f1c: 9f c4 80 00 call %l2
2008f20: 94 12 a2 50 or %o2, 0x250, %o2
2008f24: 81 c7 e0 08 ret
2008f28: 81 e8 00 00 restore
);
return false;
}
if ( !prev_used ) {
2008f2c: 80 8d 20 01 btst 1, %l4
2008f30: 02 80 00 1c be 2008fa0 <_Heap_Walk+0x518>
2008f34: 96 10 00 10 mov %l0, %o3
2008f38: c2 06 20 08 ld [ %i0 + 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 ) {
2008f3c: 80 a0 40 18 cmp %g1, %i0
2008f40: 12 80 00 07 bne 2008f5c <_Heap_Walk+0x4d4> <== ALWAYS TAKEN
2008f44: 80 a0 40 10 cmp %g1, %l0
return false;
}
if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {
(*printer)(
2008f48: 10 80 00 0f b 2008f84 <_Heap_Walk+0x4fc> <== NOT EXECUTED
2008f4c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
)
{
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 ) {
2008f50: 80 a0 40 18 cmp %g1, %i0
2008f54: 02 80 00 0a be 2008f7c <_Heap_Walk+0x4f4>
2008f58: 80 a0 40 10 cmp %g1, %l0
if ( free_block == block ) {
2008f5c: 32 bf ff fd bne,a 2008f50 <_Heap_Walk+0x4c8>
2008f60: c2 00 60 08 ld [ %g1 + 8 ], %g1
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
}
while ( block != last_block ) {
2008f64: 80 a5 40 11 cmp %l5, %l1
2008f68: 02 bf fe d8 be 2008ac8 <_Heap_Walk+0x40>
2008f6c: a0 10 00 11 mov %l1, %l0
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 ) {
2008f70: ec 04 60 04 ld [ %l1 + 4 ], %l6
2008f74: 10 bf ff 8a b 2008d9c <_Heap_Walk+0x314>
2008f78: 82 0d a0 01 and %l6, 1, %g1
return false;
}
if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {
(*printer)(
2008f7c: 90 10 00 19 mov %i1, %o0
2008f80: 96 10 00 10 mov %l0, %o3
2008f84: 92 10 20 01 mov 1, %o1
2008f88: 15 00 80 76 sethi %hi(0x201d800), %o2
2008f8c: b0 10 20 00 clr %i0
2008f90: 9f c4 80 00 call %l2
2008f94: 94 12 a2 c0 or %o2, 0x2c0, %o2
2008f98: 81 c7 e0 08 ret
2008f9c: 81 e8 00 00 restore
return false;
}
if ( !prev_used ) {
(*printer)(
2008fa0: 92 10 20 01 mov 1, %o1
2008fa4: 15 00 80 76 sethi %hi(0x201d800), %o2
2008fa8: b0 10 20 00 clr %i0
2008fac: 9f c4 80 00 call %l2
2008fb0: 94 12 a2 90 or %o2, 0x290, %o2
2008fb4: 81 c7 e0 08 ret
2008fb8: 81 e8 00 00 restore
return false;
}
if ( !_Heap_Is_aligned( block_size, page_size ) ) {
(*printer)(
2008fbc: 90 10 00 19 mov %i1, %o0
2008fc0: 96 10 00 10 mov %l0, %o3
2008fc4: 98 10 00 16 mov %l6, %o4
2008fc8: 92 10 20 01 mov 1, %o1
2008fcc: 15 00 80 76 sethi %hi(0x201d800), %o2
2008fd0: b0 10 20 00 clr %i0
2008fd4: 9f c4 80 00 call %l2
2008fd8: 94 12 a1 40 or %o2, 0x140, %o2
"block 0x%08x: block size %u not page aligned\n",
block,
block_size
);
return false;
2008fdc: 81 c7 e0 08 ret
2008fe0: 81 e8 00 00 restore
}
if ( block_size < min_block_size ) {
(*printer)(
2008fe4: 90 10 00 19 mov %i1, %o0
2008fe8: 96 10 00 10 mov %l0, %o3
2008fec: 98 10 00 16 mov %l6, %o4
2008ff0: 9a 10 00 13 mov %l3, %o5
2008ff4: 92 10 20 01 mov 1, %o1
2008ff8: 15 00 80 76 sethi %hi(0x201d800), %o2
2008ffc: b0 10 20 00 clr %i0
2009000: 9f c4 80 00 call %l2
2009004: 94 12 a1 70 or %o2, 0x170, %o2
block,
block_size,
min_block_size
);
return false;
2009008: 81 c7 e0 08 ret
200900c: 81 e8 00 00 restore
}
if ( next_block_begin <= block_begin ) {
(*printer)(
2009010: 96 10 00 10 mov %l0, %o3
2009014: 98 10 00 11 mov %l1, %o4
2009018: 92 10 20 01 mov 1, %o1
200901c: 15 00 80 76 sethi %hi(0x201d800), %o2
2009020: b0 10 20 00 clr %i0
2009024: 9f c4 80 00 call %l2
2009028: 94 12 a1 a0 or %o2, 0x1a0, %o2
"block 0x%08x: next block 0x%08x is not a successor\n",
block,
next_block
);
return false;
200902c: 81 c7 e0 08 ret
2009030: 81 e8 00 00 restore
return false;
}
if ( _Heap_Is_free( last_block ) ) {
(*printer)(
2009034: 92 10 20 01 mov 1, %o1
2009038: 15 00 80 76 sethi %hi(0x201d800), %o2
200903c: b0 10 20 00 clr %i0
2009040: 9f c4 80 00 call %l2
2009044: 94 12 a0 10 or %o2, 0x10, %o2
2009048: 81 c7 e0 08 ret
200904c: 81 e8 00 00 restore
}
if (
!_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
) {
(*printer)(
2009050: 96 10 00 17 mov %l7, %o3
2009054: 92 10 20 01 mov 1, %o1
2009058: 15 00 80 76 sethi %hi(0x201d800), %o2
200905c: b0 10 20 00 clr %i0
2009060: 9f c4 80 00 call %l2
2009064: 94 12 a0 48 or %o2, 0x48, %o2
2009068: 81 c7 e0 08 ret
200906c: 81 e8 00 00 restore
return false;
}
if ( free_block->prev != prev_block ) {
(*printer)(
2009070: 90 10 00 19 mov %i1, %o0
2009074: 96 10 00 17 mov %l7, %o3
2009078: 98 10 00 11 mov %l1, %o4
200907c: 92 10 20 01 mov 1, %o1
2009080: 15 00 80 76 sethi %hi(0x201d800), %o2
2009084: b0 10 20 00 clr %i0
2009088: 9f c4 80 00 call %l2
200908c: 94 12 a0 98 or %o2, 0x98, %o2
2009090: 81 c7 e0 08 ret
2009094: 81 e8 00 00 restore
return false;
}
if ( _Heap_Is_used( free_block ) ) {
(*printer)(
2009098: 96 10 00 17 mov %l7, %o3
200909c: 92 10 20 01 mov 1, %o1
20090a0: 15 00 80 76 sethi %hi(0x201d800), %o2
20090a4: b0 10 20 00 clr %i0
20090a8: 9f c4 80 00 call %l2
20090ac: 94 12 a0 78 or %o2, 0x78, %o2
20090b0: 81 c7 e0 08 ret
20090b4: 81 e8 00 00 restore
02006f74 <_IO_Initialize_all_drivers>:
*
* Output Parameters: NONE
*/
void _IO_Initialize_all_drivers( void )
{
2006f74: 9d e3 bf a0 save %sp, -96, %sp
rtems_device_major_number major;
for ( major=0 ; major < _IO_Number_of_drivers ; major ++ )
2006f78: 23 00 80 77 sethi %hi(0x201dc00), %l1
2006f7c: c2 04 62 70 ld [ %l1 + 0x270 ], %g1 ! 201de70 <_IO_Number_of_drivers>
2006f80: 80 a0 60 00 cmp %g1, 0
2006f84: 02 80 00 0c be 2006fb4 <_IO_Initialize_all_drivers+0x40> <== NEVER TAKEN
2006f88: a2 14 62 70 or %l1, 0x270, %l1
2006f8c: a0 10 20 00 clr %l0
(void) rtems_io_initialize( major, 0, NULL );
2006f90: 90 10 00 10 mov %l0, %o0
2006f94: 92 10 20 00 clr %o1
2006f98: 40 00 19 96 call 200d5f0 <rtems_io_initialize>
2006f9c: 94 10 20 00 clr %o2
void _IO_Initialize_all_drivers( void )
{
rtems_device_major_number major;
for ( major=0 ; major < _IO_Number_of_drivers ; major ++ )
2006fa0: c2 04 40 00 ld [ %l1 ], %g1
2006fa4: a0 04 20 01 inc %l0
2006fa8: 80 a0 40 10 cmp %g1, %l0
2006fac: 18 bf ff fa bgu 2006f94 <_IO_Initialize_all_drivers+0x20>
2006fb0: 90 10 00 10 mov %l0, %o0
2006fb4: 81 c7 e0 08 ret
2006fb8: 81 e8 00 00 restore
02006fbc <_IO_Manager_initialization>:
* workspace.
*
*/
void _IO_Manager_initialization(void)
{
2006fbc: 9d e3 bf a0 save %sp, -96, %sp
uint32_t index;
rtems_driver_address_table *driver_table;
uint32_t drivers_in_table;
uint32_t number_of_drivers;
driver_table = Configuration.Device_driver_table;
2006fc0: 03 00 80 74 sethi %hi(0x201d000), %g1
2006fc4: 82 10 60 f8 or %g1, 0xf8, %g1 ! 201d0f8 <Configuration>
drivers_in_table = Configuration.number_of_device_drivers;
number_of_drivers = Configuration.maximum_drivers;
2006fc8: e6 00 60 2c ld [ %g1 + 0x2c ], %l3
rtems_driver_address_table *driver_table;
uint32_t drivers_in_table;
uint32_t number_of_drivers;
driver_table = Configuration.Device_driver_table;
drivers_in_table = Configuration.number_of_device_drivers;
2006fcc: e2 00 60 30 ld [ %g1 + 0x30 ], %l1
/*
* If the user claims there are less drivers than are actually in
* the table, then let's just go with the table's count.
*/
if ( number_of_drivers <= drivers_in_table )
2006fd0: 80 a4 40 13 cmp %l1, %l3
2006fd4: 0a 80 00 08 bcs 2006ff4 <_IO_Manager_initialization+0x38>
2006fd8: e0 00 60 34 ld [ %g1 + 0x34 ], %l0
* If the maximum number of driver is the same as the number in the
* table, then we do not have to copy the driver table. They can't
* register any dynamically.
*/
if ( number_of_drivers == drivers_in_table ) {
_IO_Driver_address_table = driver_table;
2006fdc: 03 00 80 77 sethi %hi(0x201dc00), %g1
2006fe0: e0 20 62 74 st %l0, [ %g1 + 0x274 ] ! 201de74 <_IO_Driver_address_table>
_IO_Number_of_drivers = number_of_drivers;
2006fe4: 03 00 80 77 sethi %hi(0x201dc00), %g1
2006fe8: e2 20 62 70 st %l1, [ %g1 + 0x270 ] ! 201de70 <_IO_Number_of_drivers>
return;
2006fec: 81 c7 e0 08 ret
2006ff0: 81 e8 00 00 restore
* have to allocate a new driver table and copy theirs to it.
*/
_IO_Driver_address_table = (rtems_driver_address_table *)
_Workspace_Allocate_or_fatal_error(
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
2006ff4: 83 2c e0 03 sll %l3, 3, %g1
2006ff8: a5 2c e0 05 sll %l3, 5, %l2
2006ffc: a4 24 80 01 sub %l2, %g1, %l2
/*
* The application requested extra slots in the driver table, so we
* have to allocate a new driver table and copy theirs to it.
*/
_IO_Driver_address_table = (rtems_driver_address_table *)
2007000: 40 00 0c 97 call 200a25c <_Workspace_Allocate_or_fatal_error>
2007004: 90 10 00 12 mov %l2, %o0
_Workspace_Allocate_or_fatal_error(
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
);
_IO_Number_of_drivers = number_of_drivers;
2007008: 03 00 80 77 sethi %hi(0x201dc00), %g1
memset(
200700c: 94 10 00 12 mov %l2, %o2
_IO_Driver_address_table = (rtems_driver_address_table *)
_Workspace_Allocate_or_fatal_error(
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
);
_IO_Number_of_drivers = number_of_drivers;
2007010: e6 20 62 70 st %l3, [ %g1 + 0x270 ]
/*
* The application requested extra slots in the driver table, so we
* have to allocate a new driver table and copy theirs to it.
*/
_IO_Driver_address_table = (rtems_driver_address_table *)
2007014: 25 00 80 77 sethi %hi(0x201dc00), %l2
_Workspace_Allocate_or_fatal_error(
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
);
_IO_Number_of_drivers = number_of_drivers;
memset(
2007018: 92 10 20 00 clr %o1
200701c: 40 00 27 88 call 2010e3c <memset>
2007020: d0 24 a2 74 st %o0, [ %l2 + 0x274 ]
_IO_Driver_address_table, 0,
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
);
for ( index = 0 ; index < drivers_in_table ; index++ )
2007024: 80 a4 60 00 cmp %l1, 0
2007028: 02 bf ff f1 be 2006fec <_IO_Manager_initialization+0x30> <== NEVER TAKEN
200702c: da 04 a2 74 ld [ %l2 + 0x274 ], %o5
2007030: 82 10 20 00 clr %g1
2007034: 88 10 20 00 clr %g4
_IO_Driver_address_table[index] = driver_table[index];
2007038: c4 04 00 01 ld [ %l0 + %g1 ], %g2
200703c: 86 04 00 01 add %l0, %g1, %g3
2007040: c4 23 40 01 st %g2, [ %o5 + %g1 ]
2007044: d8 00 e0 04 ld [ %g3 + 4 ], %o4
2007048: 84 03 40 01 add %o5, %g1, %g2
200704c: d8 20 a0 04 st %o4, [ %g2 + 4 ]
2007050: d8 00 e0 08 ld [ %g3 + 8 ], %o4
memset(
_IO_Driver_address_table, 0,
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
);
for ( index = 0 ; index < drivers_in_table ; index++ )
2007054: 88 01 20 01 inc %g4
_IO_Driver_address_table[index] = driver_table[index];
2007058: d8 20 a0 08 st %o4, [ %g2 + 8 ]
200705c: d8 00 e0 0c ld [ %g3 + 0xc ], %o4
memset(
_IO_Driver_address_table, 0,
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
);
for ( index = 0 ; index < drivers_in_table ; index++ )
2007060: 82 00 60 18 add %g1, 0x18, %g1
_IO_Driver_address_table[index] = driver_table[index];
2007064: d8 20 a0 0c st %o4, [ %g2 + 0xc ]
2007068: d8 00 e0 10 ld [ %g3 + 0x10 ], %o4
memset(
_IO_Driver_address_table, 0,
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
);
for ( index = 0 ; index < drivers_in_table ; index++ )
200706c: 80 a4 40 04 cmp %l1, %g4
_IO_Driver_address_table[index] = driver_table[index];
2007070: d8 20 a0 10 st %o4, [ %g2 + 0x10 ]
2007074: c6 00 e0 14 ld [ %g3 + 0x14 ], %g3
memset(
_IO_Driver_address_table, 0,
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
);
for ( index = 0 ; index < drivers_in_table ; index++ )
2007078: 18 bf ff f0 bgu 2007038 <_IO_Manager_initialization+0x7c>
200707c: c6 20 a0 14 st %g3, [ %g2 + 0x14 ]
2007080: 81 c7 e0 08 ret
2007084: 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
02007d28 <_Objects_Allocate>:
*/
Objects_Control *_Objects_Allocate(
Objects_Information *information
)
{
2007d28: 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 )
2007d2c: c2 06 20 18 ld [ %i0 + 0x18 ], %g1
*/
Objects_Control *_Objects_Allocate(
Objects_Information *information
)
{
2007d30: 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 )
2007d34: 80 a0 60 00 cmp %g1, 0
2007d38: 02 80 00 19 be 2007d9c <_Objects_Allocate+0x74> <== NEVER TAKEN
2007d3c: 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 );
2007d40: a2 04 20 20 add %l0, 0x20, %l1
2007d44: 7f ff fd 6d call 20072f8 <_Chain_Get>
2007d48: 90 10 00 11 mov %l1, %o0
if ( information->auto_extend ) {
2007d4c: c2 0c 20 12 ldub [ %l0 + 0x12 ], %g1
2007d50: 80 a0 60 00 cmp %g1, 0
2007d54: 02 80 00 12 be 2007d9c <_Objects_Allocate+0x74>
2007d58: 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 ) {
2007d5c: 80 a2 20 00 cmp %o0, 0
2007d60: 02 80 00 11 be 2007da4 <_Objects_Allocate+0x7c>
2007d64: 01 00 00 00 nop
}
if ( the_object ) {
uint32_t block;
block = (uint32_t) _Objects_Get_index( the_object->id ) -
2007d68: c2 14 20 0a lduh [ %l0 + 0xa ], %g1
2007d6c: d0 16 20 0a lduh [ %i0 + 0xa ], %o0
_Objects_Get_index( information->minimum_id );
block /= information->allocation_size;
information->inactive_per_block[ block ]--;
2007d70: d2 14 20 14 lduh [ %l0 + 0x14 ], %o1
2007d74: 40 00 47 0a call 201999c <.udiv>
2007d78: 90 22 00 01 sub %o0, %g1, %o0
2007d7c: c2 04 20 30 ld [ %l0 + 0x30 ], %g1
2007d80: 91 2a 20 02 sll %o0, 2, %o0
information->inactive--;
2007d84: 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 ]--;
2007d88: c4 00 40 08 ld [ %g1 + %o0 ], %g2
information->inactive--;
2007d8c: 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 ]--;
2007d90: 84 00 bf ff add %g2, -1, %g2
information->inactive--;
2007d94: 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 ]--;
2007d98: c4 20 40 08 st %g2, [ %g1 + %o0 ]
information->inactive--;
}
}
return the_object;
}
2007d9c: 81 c7 e0 08 ret
2007da0: 81 e8 00 00 restore
* If the list is empty then we are out of objects and need to
* extend information base.
*/
if ( !the_object ) {
_Objects_Extend_information( information );
2007da4: 40 00 00 11 call 2007de8 <_Objects_Extend_information>
2007da8: 90 10 00 10 mov %l0, %o0
the_object = (Objects_Control *) _Chain_Get( &information->Inactive );
2007dac: 7f ff fd 53 call 20072f8 <_Chain_Get>
2007db0: 90 10 00 11 mov %l1, %o0
}
if ( the_object ) {
2007db4: b0 92 20 00 orcc %o0, 0, %i0
2007db8: 32 bf ff ed bne,a 2007d6c <_Objects_Allocate+0x44>
2007dbc: c2 14 20 0a lduh [ %l0 + 0xa ], %g1
information->inactive--;
}
}
return the_object;
}
2007dc0: 81 c7 e0 08 ret
2007dc4: 81 e8 00 00 restore
02007de8 <_Objects_Extend_information>:
*/
void _Objects_Extend_information(
Objects_Information *information
)
{
2007de8: 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 )
2007dec: e8 06 20 34 ld [ %i0 + 0x34 ], %l4
2007df0: 80 a5 20 00 cmp %l4, 0
2007df4: 02 80 00 ab be 20080a0 <_Objects_Extend_information+0x2b8>
2007df8: e6 16 20 0a lduh [ %i0 + 0xa ], %l3
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
2007dfc: ea 16 20 10 lduh [ %i0 + 0x10 ], %l5
2007e00: e4 16 20 14 lduh [ %i0 + 0x14 ], %l2
2007e04: ab 2d 60 10 sll %l5, 0x10, %l5
2007e08: 92 10 00 12 mov %l2, %o1
2007e0c: 40 00 46 e4 call 201999c <.udiv>
2007e10: 91 35 60 10 srl %l5, 0x10, %o0
2007e14: 91 2a 20 10 sll %o0, 0x10, %o0
2007e18: b9 32 20 10 srl %o0, 0x10, %i4
for ( ; block < block_count; block++ ) {
2007e1c: 80 a7 20 00 cmp %i4, 0
2007e20: 02 80 00 a7 be 20080bc <_Objects_Extend_information+0x2d4><== NEVER TAKEN
2007e24: 90 10 00 12 mov %l2, %o0
if ( information->object_blocks[ block ] == NULL )
2007e28: c2 05 00 00 ld [ %l4 ], %g1
2007e2c: 80 a0 60 00 cmp %g1, 0
2007e30: 02 80 00 a4 be 20080c0 <_Objects_Extend_information+0x2d8><== NEVER TAKEN
2007e34: a2 10 00 13 mov %l3, %l1
2007e38: 10 80 00 06 b 2007e50 <_Objects_Extend_information+0x68>
2007e3c: a0 10 20 00 clr %l0
2007e40: c2 05 00 01 ld [ %l4 + %g1 ], %g1
2007e44: 80 a0 60 00 cmp %g1, 0
2007e48: 22 80 00 08 be,a 2007e68 <_Objects_Extend_information+0x80>
2007e4c: ab 35 60 10 srl %l5, 0x10, %l5
if ( information->object_blocks == NULL )
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
for ( ; block < block_count; block++ ) {
2007e50: a0 04 20 01 inc %l0
if ( information->object_blocks[ block ] == NULL )
break;
else
index_base += information->allocation_size;
2007e54: a2 04 40 12 add %l1, %l2, %l1
if ( information->object_blocks == NULL )
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
for ( ; block < block_count; block++ ) {
2007e58: 80 a7 00 10 cmp %i4, %l0
2007e5c: 18 bf ff f9 bgu 2007e40 <_Objects_Extend_information+0x58>
2007e60: 83 2c 20 02 sll %l0, 2, %g1
else
index_base += information->allocation_size;
}
}
maximum = (uint32_t) information->maximum + information->allocation_size;
2007e64: ab 35 60 10 srl %l5, 0x10, %l5
/*
* 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 ) {
2007e68: 03 00 00 3f sethi %hi(0xfc00), %g1
else
index_base += information->allocation_size;
}
}
maximum = (uint32_t) information->maximum + information->allocation_size;
2007e6c: aa 05 40 08 add %l5, %o0, %l5
/*
* 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 ) {
2007e70: 82 10 63 ff or %g1, 0x3ff, %g1
2007e74: 80 a5 40 01 cmp %l5, %g1
2007e78: 18 80 00 96 bgu 20080d0 <_Objects_Extend_information+0x2e8><== NEVER TAKEN
2007e7c: 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;
2007e80: 40 00 46 8d call 20198b4 <.umul>
2007e84: d2 06 20 18 ld [ %i0 + 0x18 ], %o1
if ( information->auto_extend ) {
2007e88: c2 0e 20 12 ldub [ %i0 + 0x12 ], %g1
2007e8c: 80 a0 60 00 cmp %g1, 0
2007e90: 12 80 00 6d bne 2008044 <_Objects_Extend_information+0x25c>
2007e94: 01 00 00 00 nop
new_object_block = _Workspace_Allocate( block_size );
if ( !new_object_block )
return;
} else {
new_object_block = _Workspace_Allocate_or_fatal_error( block_size );
2007e98: 40 00 08 f1 call 200a25c <_Workspace_Allocate_or_fatal_error>
2007e9c: 01 00 00 00 nop
2007ea0: 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 ) {
2007ea4: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1
2007ea8: 80 a4 40 01 cmp %l1, %g1
2007eac: 2a 80 00 43 bcs,a 2007fb8 <_Objects_Extend_information+0x1d0>
2007eb0: c2 06 20 34 ld [ %i0 + 0x34 ], %g1
*/
/*
* Up the block count and maximum
*/
block_count++;
2007eb4: a8 07 20 01 add %i4, 1, %l4
* 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 );
2007eb8: 91 2d 20 01 sll %l4, 1, %o0
2007ebc: 90 02 00 14 add %o0, %l4, %o0
2007ec0: 90 05 40 08 add %l5, %o0, %o0
2007ec4: 90 02 00 13 add %o0, %l3, %o0
2007ec8: 40 00 08 f4 call 200a298 <_Workspace_Allocate>
2007ecc: 91 2a 20 02 sll %o0, 2, %o0
if ( !object_blocks ) {
2007ed0: ac 92 20 00 orcc %o0, 0, %l6
2007ed4: 02 80 00 7d be 20080c8 <_Objects_Extend_information+0x2e0>
2007ed8: a9 2d 20 02 sll %l4, 2, %l4
* Take the block count down. Saves all the (block_count - 1)
* in the copies.
*/
block_count--;
if ( information->maximum > minimum_index ) {
2007edc: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1
2007ee0: 80 a4 c0 01 cmp %l3, %g1
RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset (
const void *base,
uintptr_t offset
)
{
return (void *)((uintptr_t)base + offset);
2007ee4: ae 05 80 14 add %l6, %l4, %l7
2007ee8: 0a 80 00 5e bcs 2008060 <_Objects_Extend_information+0x278>
2007eec: a8 05 c0 14 add %l7, %l4, %l4
} else {
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
2007ef0: 80 a4 e0 00 cmp %l3, 0
information->object_blocks,
block_count * sizeof(void*) );
memcpy( inactive_per_block,
information->inactive_per_block,
block_count * sizeof(uint32_t) );
memcpy( local_table,
2007ef4: 82 10 20 00 clr %g1
} else {
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
2007ef8: 02 80 00 08 be 2007f18 <_Objects_Extend_information+0x130><== NEVER TAKEN
2007efc: bb 2f 20 02 sll %i4, 2, %i5
local_table[ index ] = NULL;
2007f00: 85 28 60 02 sll %g1, 2, %g2
} else {
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
2007f04: 82 00 60 01 inc %g1
2007f08: 80 a4 c0 01 cmp %l3, %g1
2007f0c: 18 bf ff fd bgu 2007f00 <_Objects_Extend_information+0x118><== NEVER TAKEN
2007f10: c0 20 80 14 clr [ %g2 + %l4 ]
2007f14: bb 2f 20 02 sll %i4, 2, %i5
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
2007f18: c6 16 20 14 lduh [ %i0 + 0x14 ], %g3
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
2007f1c: c0 25 c0 1d clr [ %l7 + %i5 ]
for ( index=index_base ;
index < ( information->allocation_size + index_base );
2007f20: 86 04 40 03 add %l1, %g3, %g3
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
2007f24: 80 a4 40 03 cmp %l1, %g3
2007f28: 1a 80 00 0a bcc 2007f50 <_Objects_Extend_information+0x168><== NEVER TAKEN
2007f2c: c0 25 80 1d clr [ %l6 + %i5 ]
2007f30: 85 2c 60 02 sll %l1, 2, %g2
2007f34: 82 10 00 11 mov %l1, %g1
2007f38: 84 05 00 02 add %l4, %g2, %g2
index < ( information->allocation_size + index_base );
index++ ) {
local_table[ index ] = NULL;
2007f3c: c0 20 80 00 clr [ %g2 ]
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
index++ ) {
2007f40: 82 00 60 01 inc %g1
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
2007f44: 80 a0 c0 01 cmp %g3, %g1
2007f48: 18 bf ff fd bgu 2007f3c <_Objects_Extend_information+0x154>
2007f4c: 84 00 a0 04 add %g2, 4, %g2
index < ( information->allocation_size + index_base );
index++ ) {
local_table[ index ] = NULL;
}
_ISR_Disable( level );
2007f50: 7f ff e8 55 call 20020a4 <sparc_disable_interrupts>
2007f54: 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(
2007f58: c6 06 00 00 ld [ %i0 ], %g3
2007f5c: 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;
2007f60: ea 36 20 10 sth %l5, [ %i0 + 0x10 ]
local_table[ index ] = NULL;
}
_ISR_Disable( level );
old_tables = information->object_blocks;
2007f64: e6 06 20 34 ld [ %i0 + 0x34 ], %l3
information->object_blocks = object_blocks;
information->inactive_per_block = inactive_per_block;
2007f68: ee 26 20 30 st %l7, [ %i0 + 0x30 ]
information->local_table = local_table;
2007f6c: e8 26 20 1c st %l4, [ %i0 + 0x1c ]
information->maximum = (Objects_Maximum) maximum;
information->maximum_id = _Objects_Build_id(
2007f70: 87 28 e0 18 sll %g3, 0x18, %g3
2007f74: 85 28 a0 1b sll %g2, 0x1b, %g2
_ISR_Disable( level );
old_tables = information->object_blocks;
information->object_blocks = object_blocks;
2007f78: ec 26 20 34 st %l6, [ %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(
2007f7c: ab 2d 60 10 sll %l5, 0x10, %l5
2007f80: 03 00 00 40 sethi %hi(0x10000), %g1
2007f84: ab 35 60 10 srl %l5, 0x10, %l5
2007f88: 82 10 c0 01 or %g3, %g1, %g1
2007f8c: 82 10 40 02 or %g1, %g2, %g1
2007f90: 82 10 40 15 or %g1, %l5, %g1
2007f94: c2 26 20 0c st %g1, [ %i0 + 0xc ]
information->the_class,
_Objects_Local_node,
information->maximum
);
_ISR_Enable( level );
2007f98: 7f ff e8 47 call 20020b4 <sparc_enable_interrupts>
2007f9c: 01 00 00 00 nop
if ( old_tables )
2007fa0: 80 a4 e0 00 cmp %l3, 0
2007fa4: 22 80 00 05 be,a 2007fb8 <_Objects_Extend_information+0x1d0>
2007fa8: c2 06 20 34 ld [ %i0 + 0x34 ], %g1
_Workspace_Free( old_tables );
2007fac: 40 00 08 c4 call 200a2bc <_Workspace_Free>
2007fb0: 90 10 00 13 mov %l3, %o0
}
/*
* Assign the new object block to the object block table.
*/
information->object_blocks[ block ] = new_object_block;
2007fb4: c2 06 20 34 ld [ %i0 + 0x34 ], %g1
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
2007fb8: d4 16 20 14 lduh [ %i0 + 0x14 ], %o2
2007fbc: d6 06 20 18 ld [ %i0 + 0x18 ], %o3
2007fc0: 92 10 00 12 mov %l2, %o1
}
/*
* Assign the new object block to the object block table.
*/
information->object_blocks[ block ] = new_object_block;
2007fc4: a1 2c 20 02 sll %l0, 2, %l0
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
2007fc8: a6 06 20 20 add %i0, 0x20, %l3
}
/*
* Assign the new object block to the object block table.
*/
information->object_blocks[ block ] = new_object_block;
2007fcc: e4 20 40 10 st %l2, [ %g1 + %l0 ]
*/
index = index_base;
while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
the_object->id = _Objects_Build_id(
2007fd0: 29 00 00 40 sethi %hi(0x10000), %l4
information->object_blocks[ block ] = new_object_block;
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
2007fd4: a4 07 bf f4 add %fp, -12, %l2
2007fd8: 40 00 15 9d call 200d64c <_Chain_Initialize>
2007fdc: 90 10 00 12 mov %l2, %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 ) {
2007fe0: 30 80 00 0c b,a 2008010 <_Objects_Extend_information+0x228>
the_object->id = _Objects_Build_id(
2007fe4: c4 16 20 04 lduh [ %i0 + 4 ], %g2
2007fe8: 83 28 60 18 sll %g1, 0x18, %g1
2007fec: 85 28 a0 1b sll %g2, 0x1b, %g2
2007ff0: 82 10 40 14 or %g1, %l4, %g1
2007ff4: 82 10 40 02 or %g1, %g2, %g1
2007ff8: 82 10 40 11 or %g1, %l1, %g1
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
2007ffc: 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(
2008000: c2 22 20 08 st %g1, [ %o0 + 8 ]
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
2008004: a2 04 60 01 inc %l1
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
2008008: 7f ff fc a6 call 20072a0 <_Chain_Append>
200800c: 90 10 00 13 mov %l3, %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 ) {
2008010: 7f ff fc ba call 20072f8 <_Chain_Get>
2008014: 90 10 00 12 mov %l2, %o0
2008018: 80 a2 20 00 cmp %o0, 0
200801c: 32 bf ff f2 bne,a 2007fe4 <_Objects_Extend_information+0x1fc>
2008020: c2 06 00 00 ld [ %i0 ], %g1
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
information->inactive =
2008024: c2 16 20 2c lduh [ %i0 + 0x2c ], %g1
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
2008028: c8 16 20 14 lduh [ %i0 + 0x14 ], %g4
200802c: c4 06 20 30 ld [ %i0 + 0x30 ], %g2
information->inactive =
2008030: 82 01 00 01 add %g4, %g1, %g1
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
2008034: c8 20 80 10 st %g4, [ %g2 + %l0 ]
information->inactive =
2008038: c2 36 20 2c sth %g1, [ %i0 + 0x2c ]
200803c: 81 c7 e0 08 ret
2008040: 81 e8 00 00 restore
* 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;
if ( information->auto_extend ) {
new_object_block = _Workspace_Allocate( block_size );
2008044: 40 00 08 95 call 200a298 <_Workspace_Allocate>
2008048: 01 00 00 00 nop
if ( !new_object_block )
200804c: a4 92 20 00 orcc %o0, 0, %l2
2008050: 32 bf ff 96 bne,a 2007ea8 <_Objects_Extend_information+0xc0>
2008054: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1
2008058: 81 c7 e0 08 ret
200805c: 81 e8 00 00 restore
/*
* 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,
2008060: d2 06 20 34 ld [ %i0 + 0x34 ], %o1
information->object_blocks,
block_count * sizeof(void*) );
2008064: bb 2f 20 02 sll %i4, 2, %i5
/*
* 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,
2008068: 40 00 23 36 call 2010d40 <memcpy>
200806c: 94 10 00 1d mov %i5, %o2
information->object_blocks,
block_count * sizeof(void*) );
memcpy( inactive_per_block,
2008070: d2 06 20 30 ld [ %i0 + 0x30 ], %o1
2008074: 94 10 00 1d mov %i5, %o2
2008078: 40 00 23 32 call 2010d40 <memcpy>
200807c: 90 10 00 17 mov %l7, %o0
information->inactive_per_block,
block_count * sizeof(uint32_t) );
memcpy( local_table,
2008080: d4 16 20 10 lduh [ %i0 + 0x10 ], %o2
2008084: d2 06 20 1c ld [ %i0 + 0x1c ], %o1
2008088: 94 04 c0 0a add %l3, %o2, %o2
200808c: 90 10 00 14 mov %l4, %o0
2008090: 40 00 23 2c call 2010d40 <memcpy>
2008094: 95 2a a0 02 sll %o2, 2, %o2
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
2008098: 10 bf ff a1 b 2007f1c <_Objects_Extend_information+0x134>
200809c: c6 16 20 14 lduh [ %i0 + 0x14 ], %g3
minimum_index = _Objects_Get_index( information->minimum_id );
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
20080a0: ea 16 20 10 lduh [ %i0 + 0x10 ], %l5
20080a4: d0 16 20 14 lduh [ %i0 + 0x14 ], %o0
20080a8: ab 2d 60 10 sll %l5, 0x10, %l5
20080ac: a2 10 00 13 mov %l3, %l1
20080b0: a0 10 20 00 clr %l0
20080b4: 10 bf ff 6c b 2007e64 <_Objects_Extend_information+0x7c>
20080b8: b8 10 20 00 clr %i4
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
for ( ; block < block_count; block++ ) {
if ( information->object_blocks[ block ] == NULL )
20080bc: a2 10 00 13 mov %l3, %l1 <== NOT EXECUTED
20080c0: 10 bf ff 69 b 2007e64 <_Objects_Extend_information+0x7c> <== NOT EXECUTED
20080c4: a0 10 20 00 clr %l0 <== NOT EXECUTED
(sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
((maximum + minimum_index) * sizeof(Objects_Control *));
object_blocks = (void**) _Workspace_Allocate( block_size );
if ( !object_blocks ) {
_Workspace_Free( new_object_block );
20080c8: 40 00 08 7d call 200a2bc <_Workspace_Free>
20080cc: 90 10 00 12 mov %l2, %o0
return;
20080d0: 81 c7 e0 08 ret
20080d4: 81 e8 00 00 restore
02008184 <_Objects_Get_information>:
Objects_Information *_Objects_Get_information(
Objects_APIs the_api,
uint32_t the_class
)
{
2008184: 9d e3 bf a0 save %sp, -96, %sp
Objects_Information *info;
int the_class_api_maximum;
if ( !the_class )
2008188: 80 a6 60 00 cmp %i1, 0
200818c: 12 80 00 04 bne 200819c <_Objects_Get_information+0x18>
2008190: 01 00 00 00 nop
if ( info->maximum == 0 )
return NULL;
#endif
return info;
}
2008194: 81 c7 e0 08 ret
2008198: 91 e8 20 00 restore %g0, 0, %o0
/*
* 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 );
200819c: 40 00 16 d8 call 200dcfc <_Objects_API_maximum_class>
20081a0: 90 10 00 18 mov %i0, %o0
if ( the_class_api_maximum == 0 )
20081a4: 80 a2 20 00 cmp %o0, 0
20081a8: 22 80 00 15 be,a 20081fc <_Objects_Get_information+0x78>
20081ac: b0 10 20 00 clr %i0
return NULL;
if ( the_class > (uint32_t) the_class_api_maximum )
20081b0: 80 a6 40 08 cmp %i1, %o0
20081b4: 38 80 00 12 bgu,a 20081fc <_Objects_Get_information+0x78>
20081b8: b0 10 20 00 clr %i0
return NULL;
if ( !_Objects_Information_table[ the_api ] )
20081bc: b1 2e 20 02 sll %i0, 2, %i0
20081c0: 03 00 80 76 sethi %hi(0x201d800), %g1
20081c4: 82 10 63 10 or %g1, 0x310, %g1 ! 201db10 <_Objects_Information_table>
20081c8: c2 00 40 18 ld [ %g1 + %i0 ], %g1
20081cc: 80 a0 60 00 cmp %g1, 0
20081d0: 02 80 00 0b be 20081fc <_Objects_Get_information+0x78> <== NEVER TAKEN
20081d4: b0 10 20 00 clr %i0
return NULL;
info = _Objects_Information_table[ the_api ][ the_class ];
20081d8: b3 2e 60 02 sll %i1, 2, %i1
20081dc: f0 00 40 19 ld [ %g1 + %i1 ], %i0
if ( !info )
20081e0: 80 a6 20 00 cmp %i0, 0
20081e4: 02 80 00 06 be 20081fc <_Objects_Get_information+0x78> <== NEVER TAKEN
20081e8: 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 )
20081ec: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1
20081f0: 80 a0 60 00 cmp %g1, 0
20081f4: 22 80 00 02 be,a 20081fc <_Objects_Get_information+0x78>
20081f8: b0 10 20 00 clr %i0
return NULL;
#endif
return info;
}
20081fc: 81 c7 e0 08 ret
2008200: 81 e8 00 00 restore
02017488 <_Objects_Get_name_as_string>:
char *_Objects_Get_name_as_string(
Objects_Id id,
size_t length,
char *name
)
{
2017488: 9d e3 bf 90 save %sp, -112, %sp
char lname[5];
Objects_Control *the_object;
Objects_Locations location;
Objects_Id tmpId;
if ( length == 0 )
201748c: 80 a6 60 00 cmp %i1, 0
2017490: 12 80 00 05 bne 20174a4 <_Objects_Get_name_as_string+0x1c>
2017494: 80 a6 a0 00 cmp %i2, 0
}
}
*d = '\0';
_Thread_Enable_dispatch();
return name;
2017498: b4 10 20 00 clr %i2
}
return NULL; /* unreachable path */
}
201749c: 81 c7 e0 08 ret
20174a0: 91 e8 00 1a restore %g0, %i2, %o0
Objects_Id tmpId;
if ( length == 0 )
return NULL;
if ( name == NULL )
20174a4: 02 bf ff fe be 201749c <_Objects_Get_name_as_string+0x14>
20174a8: 80 a6 20 00 cmp %i0, 0
return NULL;
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
20174ac: 12 80 00 04 bne 20174bc <_Objects_Get_name_as_string+0x34>
20174b0: 03 00 80 c1 sethi %hi(0x2030400), %g1
20174b4: c2 00 62 30 ld [ %g1 + 0x230 ], %g1 ! 2030630 <_Thread_Executing>
20174b8: f0 00 60 08 ld [ %g1 + 8 ], %i0
information = _Objects_Get_information_id( tmpId );
20174bc: 7f ff db ae call 200e374 <_Objects_Get_information_id>
20174c0: 90 10 00 18 mov %i0, %o0
if ( !information )
20174c4: 80 a2 20 00 cmp %o0, 0
20174c8: 22 bf ff f5 be,a 201749c <_Objects_Get_name_as_string+0x14>
20174cc: b4 10 20 00 clr %i2
return NULL;
the_object = _Objects_Get( information, tmpId, &location );
20174d0: 92 10 00 18 mov %i0, %o1
20174d4: 7f ff db ec call 200e484 <_Objects_Get>
20174d8: 94 07 bf fc add %fp, -4, %o2
switch ( location ) {
20174dc: c2 07 bf fc ld [ %fp + -4 ], %g1
20174e0: 80 a0 60 00 cmp %g1, 0
20174e4: 32 bf ff ee bne,a 201749c <_Objects_Get_name_as_string+0x14>
20174e8: b4 10 20 00 clr %i2
if ( information->is_string ) {
s = the_object->name.name_p;
} else
#endif
{
uint32_t u32_name = (uint32_t) the_object->name.name_u32;
20174ec: c2 02 20 0c ld [ %o0 + 0xc ], %g1
lname[ 0 ] = (u32_name >> 24) & 0xff;
lname[ 1 ] = (u32_name >> 16) & 0xff;
lname[ 2 ] = (u32_name >> 8) & 0xff;
lname[ 3 ] = (u32_name >> 0) & 0xff;
lname[ 4 ] = '\0';
20174f0: c0 2f bf f4 clrb [ %fp + -12 ]
} else
#endif
{
uint32_t u32_name = (uint32_t) the_object->name.name_u32;
lname[ 0 ] = (u32_name >> 24) & 0xff;
20174f4: 87 30 60 18 srl %g1, 0x18, %g3
lname[ 1 ] = (u32_name >> 16) & 0xff;
20174f8: 85 30 60 10 srl %g1, 0x10, %g2
lname[ 2 ] = (u32_name >> 8) & 0xff;
lname[ 3 ] = (u32_name >> 0) & 0xff;
20174fc: c2 2f bf f3 stb %g1, [ %fp + -13 ]
#endif
{
uint32_t u32_name = (uint32_t) the_object->name.name_u32;
lname[ 0 ] = (u32_name >> 24) & 0xff;
lname[ 1 ] = (u32_name >> 16) & 0xff;
2017500: c4 2f bf f1 stb %g2, [ %fp + -15 ]
lname[ 2 ] = (u32_name >> 8) & 0xff;
2017504: 83 30 60 08 srl %g1, 8, %g1
} else
#endif
{
uint32_t u32_name = (uint32_t) the_object->name.name_u32;
lname[ 0 ] = (u32_name >> 24) & 0xff;
2017508: c6 2f bf f0 stb %g3, [ %fp + -16 ]
lname[ 1 ] = (u32_name >> 16) & 0xff;
lname[ 2 ] = (u32_name >> 8) & 0xff;
201750c: c2 2f bf f2 stb %g1, [ %fp + -14 ]
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
2017510: b2 86 7f ff addcc %i1, -1, %i1
2017514: 02 80 00 1d be 2017588 <_Objects_Get_name_as_string+0x100><== NEVER TAKEN
2017518: 84 10 00 03 mov %g3, %g2
201751c: 80 a0 e0 00 cmp %g3, 0
2017520: 02 80 00 1a be 2017588 <_Objects_Get_name_as_string+0x100>
2017524: 17 00 80 bd sethi %hi(0x202f400), %o3
2017528: 86 10 00 1a mov %i2, %g3
201752c: 96 12 e1 28 or %o3, 0x128, %o3
2017530: 82 10 20 00 clr %g1
2017534: 10 80 00 06 b 201754c <_Objects_Get_name_as_string+0xc4>
2017538: 98 07 bf f0 add %fp, -16, %o4
201753c: c8 4b 00 01 ldsb [ %o4 + %g1 ], %g4
2017540: 80 a1 20 00 cmp %g4, 0
2017544: 02 80 00 0e be 201757c <_Objects_Get_name_as_string+0xf4>
2017548: c4 0b 00 01 ldub [ %o4 + %g1 ], %g2
*d = (isprint((unsigned char)*s)) ? *s : '*';
201754c: da 02 c0 00 ld [ %o3 ], %o5
2017550: 88 08 a0 ff and %g2, 0xff, %g4
2017554: 88 03 40 04 add %o5, %g4, %g4
2017558: c8 49 20 01 ldsb [ %g4 + 1 ], %g4
201755c: 80 89 20 97 btst 0x97, %g4
2017560: 12 80 00 03 bne 201756c <_Objects_Get_name_as_string+0xe4>
2017564: 82 00 60 01 inc %g1
2017568: 84 10 20 2a mov 0x2a, %g2
201756c: c4 28 c0 00 stb %g2, [ %g3 ]
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
2017570: 80 a0 40 19 cmp %g1, %i1
2017574: 0a bf ff f2 bcs 201753c <_Objects_Get_name_as_string+0xb4>
2017578: 86 00 e0 01 inc %g3
*d = (isprint((unsigned char)*s)) ? *s : '*';
}
}
*d = '\0';
_Thread_Enable_dispatch();
201757c: 7f ff de 87 call 200ef98 <_Thread_Enable_dispatch>
2017580: c0 28 c0 00 clrb [ %g3 ]
return name;
2017584: 30 bf ff c6 b,a 201749c <_Objects_Get_name_as_string+0x14>
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
2017588: 10 bf ff fd b 201757c <_Objects_Get_name_as_string+0xf4>
201758c: 86 10 00 1a mov %i2, %g3
020195e8 <_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;
20195e8: c4 02 20 08 ld [ %o0 + 8 ], %g2
if ( information->maximum >= index ) {
20195ec: 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;
20195f0: 84 22 40 02 sub %o1, %g2, %g2
20195f4: 84 00 a0 01 inc %g2
if ( information->maximum >= index ) {
20195f8: 80 a0 80 01 cmp %g2, %g1
20195fc: 18 80 00 09 bgu 2019620 <_Objects_Get_no_protection+0x38>
2019600: 85 28 a0 02 sll %g2, 2, %g2
if ( (the_object = information->local_table[ index ]) != NULL ) {
2019604: c2 02 20 1c ld [ %o0 + 0x1c ], %g1
2019608: d0 00 40 02 ld [ %g1 + %g2 ], %o0
201960c: 80 a2 20 00 cmp %o0, 0
2019610: 02 80 00 05 be 2019624 <_Objects_Get_no_protection+0x3c> <== NEVER TAKEN
2019614: 82 10 20 01 mov 1, %g1
*location = OBJECTS_LOCAL;
return the_object;
2019618: 81 c3 e0 08 retl
201961c: 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;
2019620: 82 10 20 01 mov 1, %g1
2019624: 90 10 20 00 clr %o0
return NULL;
}
2019628: 81 c3 e0 08 retl
201962c: c2 22 80 00 st %g1, [ %o2 ]
0200e4f8 <_Objects_Id_to_name>:
*/
Objects_Name_or_id_lookup_errors _Objects_Id_to_name (
Objects_Id id,
Objects_Name *name
)
{
200e4f8: 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;
200e4fc: 92 96 20 00 orcc %i0, 0, %o1
200e500: 12 80 00 06 bne 200e518 <_Objects_Id_to_name+0x20>
200e504: 83 32 60 18 srl %o1, 0x18, %g1
200e508: 03 00 80 c1 sethi %hi(0x2030400), %g1
200e50c: c2 00 62 30 ld [ %g1 + 0x230 ], %g1 ! 2030630 <_Thread_Executing>
200e510: 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);
200e514: 83 32 60 18 srl %o1, 0x18, %g1
200e518: 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 )
200e51c: 84 00 7f ff add %g1, -1, %g2
200e520: 80 a0 a0 03 cmp %g2, 3
200e524: 18 80 00 18 bgu 200e584 <_Objects_Id_to_name+0x8c>
200e528: 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 ] )
200e52c: 05 00 80 c1 sethi %hi(0x2030400), %g2
200e530: 84 10 a0 d0 or %g2, 0xd0, %g2 ! 20304d0 <_Objects_Information_table>
200e534: c2 00 80 01 ld [ %g2 + %g1 ], %g1
200e538: 80 a0 60 00 cmp %g1, 0
200e53c: 02 80 00 12 be 200e584 <_Objects_Id_to_name+0x8c>
200e540: 85 32 60 1b srl %o1, 0x1b, %g2
return OBJECTS_INVALID_ID;
the_class = _Objects_Get_class( tmpId );
information = _Objects_Information_table[ the_api ][ the_class ];
200e544: 85 28 a0 02 sll %g2, 2, %g2
200e548: d0 00 40 02 ld [ %g1 + %g2 ], %o0
if ( !information )
200e54c: 80 a2 20 00 cmp %o0, 0
200e550: 02 80 00 0d be 200e584 <_Objects_Id_to_name+0x8c> <== NEVER TAKEN
200e554: 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 );
200e558: 7f ff ff cb call 200e484 <_Objects_Get>
200e55c: 94 07 bf fc add %fp, -4, %o2
if ( !the_object )
200e560: 80 a2 20 00 cmp %o0, 0
200e564: 02 80 00 08 be 200e584 <_Objects_Id_to_name+0x8c>
200e568: 01 00 00 00 nop
return OBJECTS_INVALID_ID;
*name = the_object->name;
200e56c: c2 02 20 0c ld [ %o0 + 0xc ], %g1
_Thread_Enable_dispatch();
200e570: b0 10 20 00 clr %i0
200e574: 40 00 02 89 call 200ef98 <_Thread_Enable_dispatch>
200e578: c2 26 40 00 st %g1, [ %i1 ]
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
200e57c: 81 c7 e0 08 ret
200e580: 81 e8 00 00 restore
}
200e584: 81 c7 e0 08 ret
200e588: 91 e8 20 03 restore %g0, 3, %o0
020082ec <_Objects_Initialize_information>:
,
bool supports_global,
Objects_Thread_queue_Extract_callout extract
#endif
)
{
20082ec: 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;
20082f0: 05 00 80 76 sethi %hi(0x201d800), %g2
20082f4: 83 2e 60 02 sll %i1, 2, %g1
20082f8: 84 10 a3 10 or %g2, 0x310, %g2
20082fc: 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;
2008300: 85 2f 20 10 sll %i4, 0x10, %g2
2008304: 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;
2008308: 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;
200830c: 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;
2008310: 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;
2008314: 85 36 e0 1f srl %i3, 0x1f, %g2
maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS;
2008318: 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;
200831c: f2 26 00 00 st %i1, [ %i0 ]
information->the_class = the_class;
2008320: f4 36 20 04 sth %i2, [ %i0 + 4 ]
information->size = size;
information->local_table = 0;
2008324: c0 26 20 1c clr [ %i0 + 0x1c ]
information->inactive_per_block = 0;
2008328: c0 26 20 30 clr [ %i0 + 0x30 ]
information->object_blocks = 0;
200832c: c0 26 20 34 clr [ %i0 + 0x34 ]
information->inactive = 0;
2008330: 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;
2008334: 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 =
2008338: c4 2e 20 12 stb %g2, [ %i0 + 0x12 ]
(maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;
maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS;
200833c: b6 2e c0 01 andn %i3, %g1, %i3
/*
* Unlimited and maximum of zero is illogical.
*/
if ( information->auto_extend && maximum_per_allocation == 0) {
2008340: 80 a0 a0 00 cmp %g2, 0
2008344: 02 80 00 05 be 2008358 <_Objects_Initialize_information+0x6c>
2008348: c2 07 a0 5c ld [ %fp + 0x5c ], %g1
200834c: 80 a6 e0 00 cmp %i3, 0
2008350: 02 80 00 28 be 20083f0 <_Objects_Initialize_information+0x104>
2008354: 90 10 20 00 clr %o0
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;
2008358: 07 00 80 76 sethi %hi(0x201d800), %g3
200835c: 86 10 e0 58 or %g3, 0x58, %g3 ! 201d858 <null_local_table.3567>
/*
* Calculate minimum and maximum Id's
*/
minimum_index = (maximum_per_allocation == 0) ? 0 : 1;
information->minimum_id =
2008360: 80 a0 00 1b cmp %g0, %i3
2008364: b3 2e 60 18 sll %i1, 0x18, %i1
2008368: 84 40 20 00 addx %g0, 0, %g2
200836c: 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;
2008370: c6 26 20 1c st %g3, [ %i0 + 0x1c ]
}
/*
* The allocation unit is the maximum value
*/
information->allocation_size = maximum_per_allocation;
2008374: 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 =
2008378: 07 00 00 40 sethi %hi(0x10000), %g3
200837c: b2 16 40 03 or %i1, %g3, %i1
2008380: b4 16 40 1a or %i1, %i2, %i2
2008384: b4 16 80 02 or %i2, %g2, %i2
2008388: 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) &
200838c: 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) )
2008390: 80 88 60 03 btst 3, %g1
2008394: 02 80 00 0c be 20083c4 <_Objects_Initialize_information+0xd8><== ALWAYS TAKEN
2008398: 84 08 bf fc and %g2, -4, %g2
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
200839c: 82 06 20 24 add %i0, 0x24, %g1 <== NOT EXECUTED
name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &
~(OBJECTS_NAME_ALIGNMENT-1);
information->name_length = name_length;
20083a0: c4 36 20 38 sth %g2, [ %i0 + 0x38 ] <== NOT EXECUTED
20083a4: c2 26 20 20 st %g1, [ %i0 + 0x20 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
20083a8: c0 26 20 24 clr [ %i0 + 0x24 ] <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
20083ac: 82 06 20 20 add %i0, 0x20, %g1 <== NOT EXECUTED
_Chain_Initialize_empty( &information->Inactive );
/*
* Initialize objects .. if there are any
*/
if ( maximum_per_allocation ) {
20083b0: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
20083b4: 12 80 00 0d bne 20083e8 <_Objects_Initialize_information+0xfc><== NOT EXECUTED
20083b8: c2 26 20 28 st %g1, [ %i0 + 0x28 ] <== NOT EXECUTED
20083bc: 81 c7 e0 08 ret
20083c0: 81 e8 00 00 restore
/*
* Calculate the maximum name length
*/
name_length = maximum_name_length;
if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )
20083c4: 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);
20083c8: 82 06 20 24 add %i0, 0x24, %g1
name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &
~(OBJECTS_NAME_ALIGNMENT-1);
information->name_length = name_length;
20083cc: c4 36 20 38 sth %g2, [ %i0 + 0x38 ]
20083d0: c2 26 20 20 st %g1, [ %i0 + 0x20 ]
the_chain->permanent_null = NULL;
20083d4: c0 26 20 24 clr [ %i0 + 0x24 ]
the_chain->last = _Chain_Head(the_chain);
20083d8: 82 06 20 20 add %i0, 0x20, %g1
_Chain_Initialize_empty( &information->Inactive );
/*
* Initialize objects .. if there are any
*/
if ( maximum_per_allocation ) {
20083dc: 80 a6 e0 00 cmp %i3, 0
20083e0: 02 bf ff f7 be 20083bc <_Objects_Initialize_information+0xd0>
20083e4: 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 );
20083e8: 7f ff fe 80 call 2007de8 <_Objects_Extend_information>
20083ec: 81 e8 00 00 restore
/*
* Unlimited and maximum of zero is illogical.
*/
if ( information->auto_extend && maximum_per_allocation == 0) {
_Internal_error_Occurred(
20083f0: 92 10 20 01 mov 1, %o1
20083f4: 7f ff fe 1e call 2007c6c <_Internal_error_Occurred>
20083f8: 94 10 20 14 mov 0x14, %o2
020084c0 <_Objects_Shrink_information>:
*/
void _Objects_Shrink_information(
Objects_Information *information
)
{
20084c0: 9d e3 bf a0 save %sp, -96, %sp
/*
* Search the list to find block or chunk with all objects inactive.
*/
index_base = _Objects_Get_index( information->minimum_id );
20084c4: e0 16 20 0a lduh [ %i0 + 0xa ], %l0
block_count = (information->maximum - index_base) /
20084c8: e2 16 20 14 lduh [ %i0 + 0x14 ], %l1
20084cc: d0 16 20 10 lduh [ %i0 + 0x10 ], %o0
20084d0: 92 10 00 11 mov %l1, %o1
20084d4: 40 00 45 32 call 201999c <.udiv>
20084d8: 90 22 00 10 sub %o0, %l0, %o0
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
20084dc: 80 a2 20 00 cmp %o0, 0
20084e0: 02 80 00 12 be 2008528 <_Objects_Shrink_information+0x68> <== NEVER TAKEN
20084e4: a4 10 20 04 mov 4, %l2
if ( information->inactive_per_block[ block ] ==
20084e8: c6 06 20 30 ld [ %i0 + 0x30 ], %g3
20084ec: c4 00 c0 00 ld [ %g3 ], %g2
20084f0: 80 a4 40 02 cmp %l1, %g2
20084f4: 12 80 00 09 bne 2008518 <_Objects_Shrink_information+0x58><== ALWAYS TAKEN
20084f8: 82 10 20 00 clr %g1
20084fc: 10 80 00 0d b 2008530 <_Objects_Shrink_information+0x70> <== NOT EXECUTED
2008500: a4 10 20 00 clr %l2 <== NOT EXECUTED
information->inactive -= information->allocation_size;
return;
}
index_base += information->allocation_size;
2008504: a0 04 00 11 add %l0, %l1, %l0
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
if ( information->inactive_per_block[ block ] ==
2008508: 80 a4 40 02 cmp %l1, %g2
200850c: 02 80 00 09 be 2008530 <_Objects_Shrink_information+0x70>
2008510: 84 04 a0 04 add %l2, 4, %g2
2008514: a4 10 00 02 mov %g2, %l2
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
2008518: 82 00 60 01 inc %g1
200851c: 80 a2 00 01 cmp %o0, %g1
2008520: 38 bf ff f9 bgu,a 2008504 <_Objects_Shrink_information+0x44>
2008524: c4 00 c0 12 ld [ %g3 + %l2 ], %g2
2008528: 81 c7 e0 08 ret
200852c: 81 e8 00 00 restore
information->allocation_size ) {
/*
* Assume the Inactive chain is never empty at this point
*/
the_object = (Objects_Control *) information->Inactive.first;
2008530: 10 80 00 06 b 2008548 <_Objects_Shrink_information+0x88>
2008534: d0 06 20 20 ld [ %i0 + 0x20 ], %o0
if ((index >= index_base) &&
(index < (index_base + information->allocation_size))) {
_Chain_Extract( &extract_me->Node );
}
}
while ( the_object );
2008538: 80 a4 60 00 cmp %l1, 0
200853c: 22 80 00 12 be,a 2008584 <_Objects_Shrink_information+0xc4>
2008540: c2 06 20 34 ld [ %i0 + 0x34 ], %g1
2008544: 90 10 00 11 mov %l1, %o0
* Assume the Inactive chain is never empty at this point
*/
the_object = (Objects_Control *) information->Inactive.first;
do {
index = _Objects_Get_index( the_object->id );
2008548: c2 12 20 0a lduh [ %o0 + 0xa ], %g1
/*
* Get the next node before the node is extracted
*/
extract_me = the_object;
the_object = (Objects_Control *) the_object->Node.next;
if ((index >= index_base) &&
200854c: 80 a0 40 10 cmp %g1, %l0
2008550: 0a bf ff fa bcs 2008538 <_Objects_Shrink_information+0x78>
2008554: e2 02 00 00 ld [ %o0 ], %l1
(index < (index_base + information->allocation_size))) {
2008558: c4 16 20 14 lduh [ %i0 + 0x14 ], %g2
200855c: 84 04 00 02 add %l0, %g2, %g2
2008560: 80 a0 40 02 cmp %g1, %g2
2008564: 1a bf ff f6 bcc 200853c <_Objects_Shrink_information+0x7c>
2008568: 80 a4 60 00 cmp %l1, 0
_Chain_Extract( &extract_me->Node );
200856c: 7f ff fb 59 call 20072d0 <_Chain_Extract>
2008570: 01 00 00 00 nop
}
}
while ( the_object );
2008574: 80 a4 60 00 cmp %l1, 0
2008578: 12 bf ff f4 bne 2008548 <_Objects_Shrink_information+0x88><== ALWAYS TAKEN
200857c: 90 10 00 11 mov %l1, %o0
/*
* Free the memory and reset the structures in the object' information
*/
_Workspace_Free( information->object_blocks[ block ] );
2008580: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 <== NOT EXECUTED
2008584: 40 00 07 4e call 200a2bc <_Workspace_Free>
2008588: d0 00 40 12 ld [ %g1 + %l2 ], %o0
information->object_blocks[ block ] = NULL;
information->inactive_per_block[ block ] = 0;
information->inactive -= information->allocation_size;
200858c: c6 16 20 2c lduh [ %i0 + 0x2c ], %g3
/*
* Free the memory and reset the structures in the object' information
*/
_Workspace_Free( information->object_blocks[ block ] );
information->object_blocks[ block ] = NULL;
2008590: c2 06 20 34 ld [ %i0 + 0x34 ], %g1
information->inactive_per_block[ block ] = 0;
2008594: c8 06 20 30 ld [ %i0 + 0x30 ], %g4
information->inactive -= information->allocation_size;
2008598: c4 16 20 14 lduh [ %i0 + 0x14 ], %g2
* Free the memory and reset the structures in the object' information
*/
_Workspace_Free( information->object_blocks[ block ] );
information->object_blocks[ block ] = NULL;
information->inactive_per_block[ block ] = 0;
200859c: c0 21 00 12 clr [ %g4 + %l2 ]
information->inactive -= information->allocation_size;
20085a0: 84 20 c0 02 sub %g3, %g2, %g2
/*
* Free the memory and reset the structures in the object' information
*/
_Workspace_Free( information->object_blocks[ block ] );
information->object_blocks[ block ] = NULL;
20085a4: c0 20 40 12 clr [ %g1 + %l2 ]
information->inactive_per_block[ block ] = 0;
information->inactive -= information->allocation_size;
20085a8: c4 36 20 2c sth %g2, [ %i0 + 0x2c ]
return;
20085ac: 81 c7 e0 08 ret
20085b0: 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
02006ca8 <_RTEMS_tasks_Initialize_user_tasks_body>:
*
* Output parameters: NONE
*/
void _RTEMS_tasks_Initialize_user_tasks_body( void )
{
2006ca8: 9d e3 bf 98 save %sp, -104, %sp
rtems_initialization_tasks_table *user_tasks;
/*
* Move information into local variables
*/
user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table;
2006cac: 03 00 80 74 sethi %hi(0x201d000), %g1
2006cb0: 82 10 60 c0 or %g1, 0xc0, %g1 ! 201d0c0 <Configuration_RTEMS_API>
2006cb4: e0 00 60 2c ld [ %g1 + 0x2c ], %l0
maximum = Configuration_RTEMS_API.number_of_initialization_tasks;
/*
* Verify that we have a set of user tasks to iterate
*/
if ( !user_tasks )
2006cb8: 80 a4 20 00 cmp %l0, 0
2006cbc: 02 80 00 1a be 2006d24 <_RTEMS_tasks_Initialize_user_tasks_body+0x7c>
2006cc0: e4 00 60 28 ld [ %g1 + 0x28 ], %l2
return;
/*
* Now iterate over the initialization tasks and create/start them.
*/
for ( index=0 ; index < maximum ; index++ ) {
2006cc4: 80 a4 a0 00 cmp %l2, 0
2006cc8: 02 80 00 17 be 2006d24 <_RTEMS_tasks_Initialize_user_tasks_body+0x7c><== NEVER TAKEN
2006ccc: a2 10 20 00 clr %l1
2006cd0: a6 07 bf fc add %fp, -4, %l3
return_value = rtems_task_create(
2006cd4: d0 04 00 00 ld [ %l0 ], %o0
2006cd8: d2 04 20 08 ld [ %l0 + 8 ], %o1
2006cdc: d4 04 20 04 ld [ %l0 + 4 ], %o2
2006ce0: d6 04 20 14 ld [ %l0 + 0x14 ], %o3
2006ce4: d8 04 20 0c ld [ %l0 + 0xc ], %o4
2006ce8: 7f ff ff 6e call 2006aa0 <rtems_task_create>
2006cec: 9a 10 00 13 mov %l3, %o5
user_tasks[ index ].stack_size,
user_tasks[ index ].mode_set,
user_tasks[ index ].attribute_set,
&id
);
if ( !rtems_is_status_successful( return_value ) )
2006cf0: 80 a2 20 00 cmp %o0, 0
2006cf4: 12 80 00 0f bne 2006d30 <_RTEMS_tasks_Initialize_user_tasks_body+0x88>
2006cf8: 94 10 00 08 mov %o0, %o2
_Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
return_value = rtems_task_start(
2006cfc: d0 07 bf fc ld [ %fp + -4 ], %o0
2006d00: d2 04 20 10 ld [ %l0 + 0x10 ], %o1
2006d04: 40 00 00 0f call 2006d40 <rtems_task_start>
2006d08: d4 04 20 18 ld [ %l0 + 0x18 ], %o2
id,
user_tasks[ index ].entry_point,
user_tasks[ index ].argument
);
if ( !rtems_is_status_successful( return_value ) )
2006d0c: 80 a2 20 00 cmp %o0, 0
2006d10: 12 80 00 07 bne 2006d2c <_RTEMS_tasks_Initialize_user_tasks_body+0x84>
2006d14: a2 04 60 01 inc %l1
return;
/*
* Now iterate over the initialization tasks and create/start them.
*/
for ( index=0 ; index < maximum ; index++ ) {
2006d18: 80 a4 80 11 cmp %l2, %l1
2006d1c: 18 bf ff ee bgu 2006cd4 <_RTEMS_tasks_Initialize_user_tasks_body+0x2c><== NEVER TAKEN
2006d20: a0 04 20 1c add %l0, 0x1c, %l0
2006d24: 81 c7 e0 08 ret
2006d28: 81 e8 00 00 restore
id,
user_tasks[ index ].entry_point,
user_tasks[ index ].argument
);
if ( !rtems_is_status_successful( return_value ) )
_Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
2006d2c: 94 10 00 08 mov %o0, %o2
2006d30: 92 10 20 01 mov 1, %o1
2006d34: 40 00 03 ce call 2007c6c <_Internal_error_Occurred>
2006d38: 90 10 20 01 mov 1, %o0
0200d3fc <_RTEMS_tasks_Post_switch_extension>:
*/
void _RTEMS_tasks_Post_switch_extension(
Thread_Control *executing
)
{
200d3fc: 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 ];
200d400: e0 06 21 60 ld [ %i0 + 0x160 ], %l0
if ( !api )
200d404: 80 a4 20 00 cmp %l0, 0
200d408: 02 80 00 1f be 200d484 <_RTEMS_tasks_Post_switch_extension+0x88><== NEVER TAKEN
200d40c: 01 00 00 00 nop
* Signal Processing
*/
asr = &api->Signal;
_ISR_Disable( level );
200d410: 7f ff d3 25 call 20020a4 <sparc_disable_interrupts>
200d414: 01 00 00 00 nop
signal_set = asr->signals_posted;
200d418: e2 04 20 14 ld [ %l0 + 0x14 ], %l1
asr->signals_posted = 0;
200d41c: c0 24 20 14 clr [ %l0 + 0x14 ]
_ISR_Enable( level );
200d420: 7f ff d3 25 call 20020b4 <sparc_enable_interrupts>
200d424: 01 00 00 00 nop
if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */
200d428: 80 a4 60 00 cmp %l1, 0
200d42c: 32 80 00 04 bne,a 200d43c <_RTEMS_tasks_Post_switch_extension+0x40><== ALWAYS TAKEN
200d430: c2 04 20 1c ld [ %l0 + 0x1c ], %g1
200d434: 81 c7 e0 08 ret <== NOT EXECUTED
200d438: 81 e8 00 00 restore <== NOT EXECUTED
return;
asr->nest_level += 1;
rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode );
200d43c: d0 04 20 10 ld [ %l0 + 0x10 ], %o0
if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */
return;
asr->nest_level += 1;
200d440: 82 00 60 01 inc %g1
rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode );
200d444: a4 07 bf fc add %fp, -4, %l2
if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */
return;
asr->nest_level += 1;
200d448: c2 24 20 1c st %g1, [ %l0 + 0x1c ]
rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode );
200d44c: 94 10 00 12 mov %l2, %o2
200d450: 27 00 00 3f sethi %hi(0xfc00), %l3
200d454: 40 00 0a 6b call 200fe00 <rtems_task_mode>
200d458: 92 14 e3 ff or %l3, 0x3ff, %o1 ! ffff <PROM_START+0xffff>
(*asr->handler)( signal_set );
200d45c: c2 04 20 0c ld [ %l0 + 0xc ], %g1
200d460: 9f c0 40 00 call %g1
200d464: 90 10 00 11 mov %l1, %o0
asr->nest_level -= 1;
200d468: c2 04 20 1c ld [ %l0 + 0x1c ], %g1
rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );
200d46c: 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;
200d470: 82 00 7f ff add %g1, -1, %g1
rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );
200d474: 92 14 e3 ff or %l3, 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;
200d478: c2 24 20 1c st %g1, [ %l0 + 0x1c ]
rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );
200d47c: 40 00 0a 61 call 200fe00 <rtems_task_mode>
200d480: 94 10 00 12 mov %l2, %o2
200d484: 81 c7 e0 08 ret
200d488: 81 e8 00 00 restore
0200d320 <_RTEMS_tasks_Switch_extension>:
/*
* Per Task Variables
*/
tvp = executing->task_variables;
200d320: c2 02 21 70 ld [ %o0 + 0x170 ], %g1
while (tvp) {
200d324: 80 a0 60 00 cmp %g1, 0
200d328: 22 80 00 0b be,a 200d354 <_RTEMS_tasks_Switch_extension+0x34>
200d32c: c2 02 61 70 ld [ %o1 + 0x170 ], %g1
tvp->tval = *tvp->ptr;
200d330: c4 00 60 04 ld [ %g1 + 4 ], %g2
*tvp->ptr = tvp->gval;
200d334: c6 00 60 08 ld [ %g1 + 8 ], %g3
* Per Task Variables
*/
tvp = executing->task_variables;
while (tvp) {
tvp->tval = *tvp->ptr;
200d338: c8 00 80 00 ld [ %g2 ], %g4
200d33c: c8 20 60 0c st %g4, [ %g1 + 0xc ]
*tvp->ptr = tvp->gval;
tvp = (rtems_task_variable_t *)tvp->next;
200d340: c2 00 40 00 ld [ %g1 ], %g1
/*
* Per Task Variables
*/
tvp = executing->task_variables;
while (tvp) {
200d344: 80 a0 60 00 cmp %g1, 0
200d348: 12 bf ff fa bne 200d330 <_RTEMS_tasks_Switch_extension+0x10><== NEVER TAKEN
200d34c: c6 20 80 00 st %g3, [ %g2 ]
tvp->tval = *tvp->ptr;
*tvp->ptr = tvp->gval;
tvp = (rtems_task_variable_t *)tvp->next;
}
tvp = heir->task_variables;
200d350: c2 02 61 70 ld [ %o1 + 0x170 ], %g1
while (tvp) {
200d354: 80 a0 60 00 cmp %g1, 0
200d358: 02 80 00 0a be 200d380 <_RTEMS_tasks_Switch_extension+0x60>
200d35c: 01 00 00 00 nop
tvp->gval = *tvp->ptr;
200d360: c4 00 60 04 ld [ %g1 + 4 ], %g2
*tvp->ptr = tvp->tval;
200d364: c6 00 60 0c ld [ %g1 + 0xc ], %g3
tvp = (rtems_task_variable_t *)tvp->next;
}
tvp = heir->task_variables;
while (tvp) {
tvp->gval = *tvp->ptr;
200d368: c8 00 80 00 ld [ %g2 ], %g4
200d36c: c8 20 60 08 st %g4, [ %g1 + 8 ]
*tvp->ptr = tvp->tval;
tvp = (rtems_task_variable_t *)tvp->next;
200d370: c2 00 40 00 ld [ %g1 ], %g1
*tvp->ptr = tvp->gval;
tvp = (rtems_task_variable_t *)tvp->next;
}
tvp = heir->task_variables;
while (tvp) {
200d374: 80 a0 60 00 cmp %g1, 0
200d378: 12 bf ff fa bne 200d360 <_RTEMS_tasks_Switch_extension+0x40><== NEVER TAKEN
200d37c: c6 20 80 00 st %g3, [ %g2 ]
200d380: 81 c3 e0 08 retl
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
02045a4c <_Rate_monotonic_Timeout>:
void _Rate_monotonic_Timeout(
Objects_Id id,
void *ignored
)
{
2045a4c: 9d e3 bf 98 save %sp, -104, %sp
2045a50: 11 00 81 cd sethi %hi(0x2073400), %o0
2045a54: 92 10 00 18 mov %i0, %o1
2045a58: 90 12 23 30 or %o0, 0x330, %o0
2045a5c: 7f ff 26 99 call 200f4c0 <_Objects_Get>
2045a60: 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 ) {
2045a64: c2 07 bf fc ld [ %fp + -4 ], %g1
2045a68: 80 a0 60 00 cmp %g1, 0
2045a6c: 12 80 00 16 bne 2045ac4 <_Rate_monotonic_Timeout+0x78> <== NEVER TAKEN
2045a70: a0 10 00 08 mov %o0, %l0
case OBJECTS_LOCAL:
the_thread = the_period->owner;
2045a74: d0 02 20 40 ld [ %o0 + 0x40 ], %o0
if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
2045a78: 03 00 00 10 sethi %hi(0x4000), %g1
2045a7c: c4 02 20 10 ld [ %o0 + 0x10 ], %g2
2045a80: 80 88 80 01 btst %g2, %g1
2045a84: 22 80 00 08 be,a 2045aa4 <_Rate_monotonic_Timeout+0x58>
2045a88: c2 04 20 38 ld [ %l0 + 0x38 ], %g1
the_thread->Wait.id == the_period->Object.id ) {
2045a8c: c4 02 20 20 ld [ %o0 + 0x20 ], %g2
2045a90: c2 04 20 08 ld [ %l0 + 8 ], %g1
2045a94: 80 a0 80 01 cmp %g2, %g1
2045a98: 02 80 00 19 be 2045afc <_Rate_monotonic_Timeout+0xb0>
2045a9c: 13 04 00 ff sethi %hi(0x1003fc00), %o1
_Thread_Unblock( the_thread );
_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 ) {
2045aa0: c2 04 20 38 ld [ %l0 + 0x38 ], %g1
2045aa4: 80 a0 60 01 cmp %g1, 1
2045aa8: 02 80 00 09 be 2045acc <_Rate_monotonic_Timeout+0x80>
2045aac: 82 10 20 04 mov 4, %g1
_Rate_monotonic_Initiate_statistics( the_period );
_Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
} else
the_period->state = RATE_MONOTONIC_EXPIRED;
2045ab0: 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;
2045ab4: 03 00 81 cc sethi %hi(0x2073000), %g1
2045ab8: c4 00 62 b0 ld [ %g1 + 0x2b0 ], %g2 ! 20732b0 <_Thread_Dispatch_disable_level>
2045abc: 84 00 bf ff add %g2, -1, %g2
2045ac0: c4 20 62 b0 st %g2, [ %g1 + 0x2b0 ]
2045ac4: 81 c7 e0 08 ret
2045ac8: 81 e8 00 00 restore
_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;
2045acc: 82 10 20 03 mov 3, %g1
_Rate_monotonic_Initiate_statistics( the_period );
2045ad0: 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;
2045ad4: c2 24 20 38 st %g1, [ %l0 + 0x38 ]
_Rate_monotonic_Initiate_statistics( the_period );
2045ad8: 7f ff fe e5 call 204566c <_Rate_monotonic_Initiate_statistics>
2045adc: 01 00 00 00 nop
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
2045ae0: c2 04 20 3c ld [ %l0 + 0x3c ], %g1
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
2045ae4: 92 04 20 10 add %l0, 0x10, %o1
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
2045ae8: c2 24 20 1c st %g1, [ %l0 + 0x1c ]
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
2045aec: 11 00 81 cc sethi %hi(0x2073000), %o0
2045af0: 7f ff 2d b6 call 20111c8 <_Watchdog_Insert>
2045af4: 90 12 23 90 or %o0, 0x390, %o0 ! 2073390 <_Watchdog_Ticks_chain>
2045af8: 30 bf ff ef b,a 2045ab4 <_Rate_monotonic_Timeout+0x68>
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
2045afc: 7f ff 27 f3 call 200fac8 <_Thread_Clear_state>
2045b00: 92 12 63 f8 or %o1, 0x3f8, %o1
the_thread = the_period->owner;
if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
the_thread->Wait.id == the_period->Object.id ) {
_Thread_Unblock( the_thread );
_Rate_monotonic_Initiate_statistics( the_period );
2045b04: 10 bf ff f5 b 2045ad8 <_Rate_monotonic_Timeout+0x8c>
2045b08: 90 10 00 10 mov %l0, %o0
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
0200782c <_TOD_Tickle_ticks>:
*
* Output parameters: NONE
*/
void _TOD_Tickle_ticks( void )
{
200782c: 9d e3 bf 98 save %sp, -104, %sp
/* Convert the tick quantum to a timestamp */
_Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
/* Update the counter of ticks since boot */
_Watchdog_Ticks_since_boot += 1;
2007830: 05 00 80 77 sethi %hi(0x201dc00), %g2
2007834: c6 00 a1 04 ld [ %g2 + 0x104 ], %g3 ! 201dd04 <_Watchdog_Ticks_since_boot>
{
Timestamp_Control tick;
uint32_t seconds;
/* Convert the tick quantum to a timestamp */
_Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
2007838: 03 00 80 74 sethi %hi(0x201d000), %g1
200783c: c2 00 61 04 ld [ %g1 + 0x104 ], %g1 ! 201d104 <Configuration+0xc>
/* Update the counter of ticks since boot */
_Watchdog_Ticks_since_boot += 1;
2007840: 86 00 e0 01 inc %g3
2007844: c6 20 a1 04 st %g3, [ %g2 + 0x104 ]
{
Timestamp_Control tick;
uint32_t seconds;
/* Convert the tick quantum to a timestamp */
_Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
2007848: 87 28 60 07 sll %g1, 7, %g3
200784c: 85 28 60 02 sll %g1, 2, %g2
2007850: 84 20 c0 02 sub %g3, %g2, %g2
2007854: 82 00 80 01 add %g2, %g1, %g1
2007858: 83 28 60 03 sll %g1, 3, %g1
/* Update the counter of ticks since boot */
_Watchdog_Ticks_since_boot += 1;
/* Update the timespec format uptime */
_Timestamp_Add_to( &_TOD_Uptime, &tick );
200785c: a0 07 bf f8 add %fp, -8, %l0
{
Timestamp_Control tick;
uint32_t seconds;
/* Convert the tick quantum to a timestamp */
_Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
2007860: c2 27 bf fc st %g1, [ %fp + -4 ]
/* Update the counter of ticks since boot */
_Watchdog_Ticks_since_boot += 1;
/* Update the timespec format uptime */
_Timestamp_Add_to( &_TOD_Uptime, &tick );
2007864: 92 10 00 10 mov %l0, %o1
{
Timestamp_Control tick;
uint32_t seconds;
/* Convert the tick quantum to a timestamp */
_Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
2007868: c0 27 bf f8 clr [ %fp + -8 ]
/* Update the counter of ticks since boot */
_Watchdog_Ticks_since_boot += 1;
/* Update the timespec format uptime */
_Timestamp_Add_to( &_TOD_Uptime, &tick );
200786c: 11 00 80 77 sethi %hi(0x201dc00), %o0
2007870: 40 00 08 c5 call 2009b84 <_Timespec_Add_to>
2007874: 90 12 20 30 or %o0, 0x30, %o0 ! 201dc30 <_TOD_Uptime>
/* we do not care how much the uptime changed */
/* Update the timespec format TOD */
seconds = _Timestamp_Add_to_at_tick( &_TOD_Now, &tick );
2007878: 92 10 00 10 mov %l0, %o1
200787c: 11 00 80 77 sethi %hi(0x201dc00), %o0
2007880: 40 00 08 c1 call 2009b84 <_Timespec_Add_to>
2007884: 90 12 20 44 or %o0, 0x44, %o0 ! 201dc44 <_TOD_Now>
while ( seconds ) {
2007888: a0 92 20 00 orcc %o0, 0, %l0
200788c: 02 80 00 08 be 20078ac <_TOD_Tickle_ticks+0x80>
2007890: 23 00 80 77 sethi %hi(0x201dc00), %l1
*/
RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_seconds( void )
{
_Watchdog_Tickle( &_Watchdog_Seconds_chain );
2007894: a2 14 60 84 or %l1, 0x84, %l1 ! 201dc84 <_Watchdog_Seconds_chain>
2007898: 40 00 0a 47 call 200a1b4 <_Watchdog_Tickle>
200789c: 90 10 00 11 mov %l1, %o0
20078a0: a0 84 3f ff addcc %l0, -1, %l0
20078a4: 12 bf ff fd bne 2007898 <_TOD_Tickle_ticks+0x6c> <== NEVER TAKEN
20078a8: 01 00 00 00 nop
20078ac: 81 c7 e0 08 ret
20078b0: 81 e8 00 00 restore
02007958 <_TOD_Validate>:
*/
bool _TOD_Validate(
const rtems_time_of_day *the_tod
)
{
2007958: 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();
200795c: 03 00 80 8e sethi %hi(0x2023800), %g1
if ((!the_tod) ||
2007960: 80 a6 20 00 cmp %i0, 0
2007964: 02 80 00 2e be 2007a1c <_TOD_Validate+0xc4> <== NEVER TAKEN
2007968: d2 00 60 f4 ld [ %g1 + 0xf4 ], %o1
200796c: 11 00 03 d0 sethi %hi(0xf4000), %o0
2007970: 40 00 5d 3f call 201ee6c <.udiv>
2007974: 90 12 22 40 or %o0, 0x240, %o0 ! f4240 <PROM_START+0xf4240>
(the_tod->ticks >= ticks_per_second) ||
2007978: c2 06 20 18 ld [ %i0 + 0x18 ], %g1
200797c: 80 a2 00 01 cmp %o0, %g1
2007980: 08 80 00 27 bleu 2007a1c <_TOD_Validate+0xc4>
2007984: 01 00 00 00 nop
(the_tod->second >= TOD_SECONDS_PER_MINUTE) ||
2007988: c2 06 20 14 ld [ %i0 + 0x14 ], %g1
200798c: 80 a0 60 3b cmp %g1, 0x3b
2007990: 18 80 00 23 bgu 2007a1c <_TOD_Validate+0xc4>
2007994: 01 00 00 00 nop
(the_tod->minute >= TOD_MINUTES_PER_HOUR) ||
2007998: c2 06 20 10 ld [ %i0 + 0x10 ], %g1
200799c: 80 a0 60 3b cmp %g1, 0x3b
20079a0: 18 80 00 1f bgu 2007a1c <_TOD_Validate+0xc4>
20079a4: 01 00 00 00 nop
(the_tod->hour >= TOD_HOURS_PER_DAY) ||
20079a8: c2 06 20 0c ld [ %i0 + 0xc ], %g1
20079ac: 80 a0 60 17 cmp %g1, 0x17
20079b0: 18 80 00 1b bgu 2007a1c <_TOD_Validate+0xc4>
20079b4: 01 00 00 00 nop
(the_tod->month == 0) ||
20079b8: 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) ||
20079bc: 80 a0 60 00 cmp %g1, 0
20079c0: 02 80 00 17 be 2007a1c <_TOD_Validate+0xc4> <== NEVER TAKEN
20079c4: 80 a0 60 0c cmp %g1, 0xc
20079c8: 18 80 00 15 bgu 2007a1c <_TOD_Validate+0xc4>
20079cc: 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) ||
20079d0: c4 06 00 00 ld [ %i0 ], %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) ||
20079d4: 80 a0 a7 c3 cmp %g2, 0x7c3
20079d8: 08 80 00 11 bleu 2007a1c <_TOD_Validate+0xc4>
20079dc: 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) )
20079e0: c6 06 20 08 ld [ %i0 + 8 ], %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) ||
20079e4: 80 a0 e0 00 cmp %g3, 0
20079e8: 02 80 00 0d be 2007a1c <_TOD_Validate+0xc4> <== NEVER TAKEN
20079ec: 80 88 a0 03 btst 3, %g2
(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 )
20079f0: 32 80 00 0d bne,a 2007a24 <_TOD_Validate+0xcc>
20079f4: 83 28 60 02 sll %g1, 2, %g1
days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];
20079f8: 82 00 60 0d add %g1, 0xd, %g1
20079fc: 05 00 80 87 sethi %hi(0x2021c00), %g2
2007a00: 83 28 60 02 sll %g1, 2, %g1
2007a04: 84 10 a3 f4 or %g2, 0x3f4, %g2
2007a08: c2 00 80 01 ld [ %g2 + %g1 ], %g1
* false - if the the_tod is invalid
*
* NOTE: This routine only works for leap-years through 2099.
*/
bool _TOD_Validate(
2007a0c: 80 a0 40 03 cmp %g1, %g3
2007a10: b0 60 3f ff subx %g0, -1, %i0
2007a14: 81 c7 e0 08 ret
2007a18: 81 e8 00 00 restore
if ( the_tod->day > days_in_month )
return false;
return true;
}
2007a1c: 81 c7 e0 08 ret
2007a20: 91 e8 20 00 restore %g0, 0, %o0
return false;
if ( (the_tod->year % 4) == 0 )
days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];
else
days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];
2007a24: 05 00 80 87 sethi %hi(0x2021c00), %g2
2007a28: 84 10 a3 f4 or %g2, 0x3f4, %g2 ! 2021ff4 <_TOD_Days_per_month>
2007a2c: 10 bf ff f8 b 2007a0c <_TOD_Validate+0xb4>
2007a30: c2 00 80 01 ld [ %g2 + %g1 ], %g1
02008680 <_Thread_Change_priority>:
void _Thread_Change_priority(
Thread_Control *the_thread,
Priority_Control new_priority,
bool prepend_it
)
{
2008680: 9d e3 bf a0 save %sp, -96, %sp
*/
/*
* Save original state
*/
original_state = the_thread->current_state;
2008684: 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 );
2008688: 40 00 04 84 call 2009898 <_Thread_Set_transient>
200868c: 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 )
2008690: c2 06 20 14 ld [ %i0 + 0x14 ], %g1
2008694: 80 a0 40 19 cmp %g1, %i1
2008698: 02 80 00 05 be 20086ac <_Thread_Change_priority+0x2c>
200869c: a0 10 00 18 mov %i0, %l0
_Thread_Set_priority( the_thread, new_priority );
20086a0: 92 10 00 19 mov %i1, %o1
20086a4: 40 00 04 01 call 20096a8 <_Thread_Set_priority>
20086a8: 90 10 00 18 mov %i0, %o0
_ISR_Disable( level );
20086ac: 7f ff e6 7e call 20020a4 <sparc_disable_interrupts>
20086b0: 01 00 00 00 nop
20086b4: 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;
20086b8: e4 04 20 10 ld [ %l0 + 0x10 ], %l2
if ( state != STATES_TRANSIENT ) {
20086bc: 80 a4 a0 04 cmp %l2, 4
20086c0: 02 80 00 18 be 2008720 <_Thread_Change_priority+0xa0>
20086c4: 80 8c 60 04 btst 4, %l1
/* Only clear the transient state if it wasn't set already */
if ( ! _States_Is_transient( original_state ) )
20086c8: 02 80 00 0b be 20086f4 <_Thread_Change_priority+0x74> <== ALWAYS TAKEN
20086cc: 82 0c bf fb and %l2, -5, %g1
the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
_ISR_Enable( level );
20086d0: 7f ff e6 79 call 20020b4 <sparc_enable_interrupts> <== NOT EXECUTED
20086d4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if ( _States_Is_waiting_on_thread_queue( state ) ) {
20086d8: 03 00 00 ef sethi %hi(0x3bc00), %g1 <== NOT EXECUTED
20086dc: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 <PROM_START+0x3bee0><== NOT EXECUTED
20086e0: 80 8c 80 01 btst %l2, %g1 <== NOT EXECUTED
20086e4: 32 80 00 0d bne,a 2008718 <_Thread_Change_priority+0x98> <== NOT EXECUTED
20086e8: f0 04 20 44 ld [ %l0 + 0x44 ], %i0 <== NOT EXECUTED
20086ec: 81 c7 e0 08 ret
20086f0: 81 e8 00 00 restore
*/
state = the_thread->current_state;
if ( state != STATES_TRANSIENT ) {
/* Only clear the transient state if it wasn't set already */
if ( ! _States_Is_transient( original_state ) )
the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
20086f4: c2 24 20 10 st %g1, [ %l0 + 0x10 ]
_ISR_Enable( level );
20086f8: 7f ff e6 6f call 20020b4 <sparc_enable_interrupts>
20086fc: 90 10 00 18 mov %i0, %o0
if ( _States_Is_waiting_on_thread_queue( state ) ) {
2008700: 03 00 00 ef sethi %hi(0x3bc00), %g1
2008704: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 <PROM_START+0x3bee0>
2008708: 80 8c 80 01 btst %l2, %g1
200870c: 02 bf ff f8 be 20086ec <_Thread_Change_priority+0x6c>
2008710: 01 00 00 00 nop
_Thread_queue_Requeue( the_thread->Wait.queue, the_thread );
2008714: f0 04 20 44 ld [ %l0 + 0x44 ], %i0
2008718: 40 00 03 b4 call 20095e8 <_Thread_queue_Requeue>
200871c: 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 ) ) {
2008720: 12 80 00 14 bne 2008770 <_Thread_Change_priority+0xf0> <== NEVER TAKEN
2008724: 23 00 80 77 sethi %hi(0x201dc00), %l1
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (
Priority_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
2008728: c2 04 20 90 ld [ %l0 + 0x90 ], %g1
200872c: c4 14 20 96 lduh [ %l0 + 0x96 ], %g2
2008730: c6 10 40 00 lduh [ %g1 ], %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 );
2008734: c0 24 20 10 clr [ %l0 + 0x10 ]
2008738: 84 10 c0 02 or %g3, %g2, %g2
200873c: c4 30 40 00 sth %g2, [ %g1 ]
_Priority_Major_bit_map |= the_priority_map->ready_major;
2008740: c4 14 60 64 lduh [ %l1 + 0x64 ], %g2
2008744: c2 14 20 94 lduh [ %l0 + 0x94 ], %g1
_Priority_Add_to_bit_map( &the_thread->Priority_map );
if ( prepend_it )
2008748: 80 8e a0 ff btst 0xff, %i2
200874c: 82 10 80 01 or %g2, %g1, %g1
2008750: c2 34 60 64 sth %g1, [ %l1 + 0x64 ]
2008754: 02 80 00 48 be 2008874 <_Thread_Change_priority+0x1f4>
2008758: c2 04 20 8c ld [ %l0 + 0x8c ], %g1
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
200875c: c4 00 40 00 ld [ %g1 ], %g2
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
2008760: c2 24 20 04 st %g1, [ %l0 + 4 ]
before_node = after_node->next;
after_node->next = the_node;
2008764: e0 20 40 00 st %l0, [ %g1 ]
the_node->next = before_node;
before_node->previous = the_node;
2008768: 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;
200876c: c4 24 00 00 st %g2, [ %l0 ]
_Chain_Prepend_unprotected( the_thread->ready, &the_thread->Object.Node );
else
_Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node );
}
_ISR_Flash( level );
2008770: 7f ff e6 51 call 20020b4 <sparc_enable_interrupts>
2008774: 90 10 00 18 mov %i0, %o0
2008778: 7f ff e6 4b call 20020a4 <sparc_disable_interrupts>
200877c: 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 );
2008780: c2 14 60 64 lduh [ %l1 + 0x64 ], %g1
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
_Thread_Ready_chain[ _Priority_Get_highest() ].first;
2008784: 05 00 80 76 sethi %hi(0x201d800), %g2
2008788: 83 28 60 10 sll %g1, 0x10, %g1
200878c: da 00 a3 04 ld [ %g2 + 0x304 ], %o5
2008790: 85 30 60 10 srl %g1, 0x10, %g2
2008794: 80 a0 a0 ff cmp %g2, 0xff
2008798: 08 80 00 27 bleu 2008834 <_Thread_Change_priority+0x1b4>
200879c: 07 00 80 70 sethi %hi(0x201c000), %g3
20087a0: 83 30 60 18 srl %g1, 0x18, %g1
20087a4: 86 10 e0 78 or %g3, 0x78, %g3
20087a8: c4 08 c0 01 ldub [ %g3 + %g1 ], %g2
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
20087ac: 09 00 80 77 sethi %hi(0x201dc00), %g4
20087b0: 85 28 a0 10 sll %g2, 0x10, %g2
20087b4: 88 11 20 e0 or %g4, 0xe0, %g4
20087b8: 83 30 a0 0f srl %g2, 0xf, %g1
20087bc: c2 11 00 01 lduh [ %g4 + %g1 ], %g1
20087c0: 83 28 60 10 sll %g1, 0x10, %g1
20087c4: 89 30 60 10 srl %g1, 0x10, %g4
20087c8: 80 a1 20 ff cmp %g4, 0xff
20087cc: 18 80 00 28 bgu 200886c <_Thread_Change_priority+0x1ec>
20087d0: 83 30 60 18 srl %g1, 0x18, %g1
20087d4: c2 08 c0 04 ldub [ %g3 + %g4 ], %g1
20087d8: 82 00 60 08 add %g1, 8, %g1
* ready thread.
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
20087dc: 85 30 a0 0c srl %g2, 0xc, %g2
20087e0: 83 28 60 10 sll %g1, 0x10, %g1
20087e4: 83 30 60 10 srl %g1, 0x10, %g1
20087e8: 82 00 40 02 add %g1, %g2, %g1
20087ec: 85 28 60 04 sll %g1, 4, %g2
20087f0: 83 28 60 02 sll %g1, 2, %g1
20087f4: 82 20 80 01 sub %g2, %g1, %g1
20087f8: c2 03 40 01 ld [ %o5 + %g1 ], %g1
* is also the heir thread, and false otherwise.
*/
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void )
{
return ( _Thread_Executing == _Thread_Heir );
20087fc: 05 00 80 77 sethi %hi(0x201dc00), %g2
2008800: c4 00 a0 70 ld [ %g2 + 0x70 ], %g2 ! 201dc70 <_Thread_Executing>
* ready thread.
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
2008804: 07 00 80 77 sethi %hi(0x201dc00), %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() &&
2008808: 80 a0 40 02 cmp %g1, %g2
200880c: 02 80 00 08 be 200882c <_Thread_Change_priority+0x1ac>
2008810: c2 20 e0 40 st %g1, [ %g3 + 0x40 ]
_Thread_Executing->is_preemptible )
2008814: c2 08 a0 75 ldub [ %g2 + 0x75 ], %g1
2008818: 80 a0 60 00 cmp %g1, 0
200881c: 02 80 00 04 be 200882c <_Thread_Change_priority+0x1ac>
2008820: 84 10 20 01 mov 1, %g2
_Context_Switch_necessary = true;
2008824: 03 00 80 77 sethi %hi(0x201dc00), %g1
2008828: c4 28 60 80 stb %g2, [ %g1 + 0x80 ] ! 201dc80 <_Context_Switch_necessary>
_ISR_Enable( level );
200882c: 7f ff e6 22 call 20020b4 <sparc_enable_interrupts>
2008830: 81 e8 00 00 restore
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 );
2008834: 86 10 e0 78 or %g3, 0x78, %g3
2008838: c4 08 c0 02 ldub [ %g3 + %g2 ], %g2
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
200883c: 09 00 80 77 sethi %hi(0x201dc00), %g4
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 );
2008840: 84 00 a0 08 add %g2, 8, %g2
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
2008844: 88 11 20 e0 or %g4, 0xe0, %g4
2008848: 85 28 a0 10 sll %g2, 0x10, %g2
200884c: 83 30 a0 0f srl %g2, 0xf, %g1
2008850: c2 11 00 01 lduh [ %g4 + %g1 ], %g1
2008854: 83 28 60 10 sll %g1, 0x10, %g1
2008858: 89 30 60 10 srl %g1, 0x10, %g4
200885c: 80 a1 20 ff cmp %g4, 0xff
2008860: 28 bf ff de bleu,a 20087d8 <_Thread_Change_priority+0x158>
2008864: c2 08 c0 04 ldub [ %g3 + %g4 ], %g1
2008868: 83 30 60 18 srl %g1, 0x18, %g1
200886c: 10 bf ff dc b 20087dc <_Thread_Change_priority+0x15c>
2008870: c2 08 c0 01 ldub [ %g3 + %g1 ], %g1
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
2008874: 84 00 60 04 add %g1, 4, %g2
2008878: c4 24 00 00 st %g2, [ %l0 ]
old_last_node = the_chain->last;
200887c: c4 00 60 08 ld [ %g1 + 8 ], %g2
the_chain->last = the_node;
2008880: e0 20 60 08 st %l0, [ %g1 + 8 ]
old_last_node->next = the_node;
the_node->previous = old_last_node;
2008884: 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;
2008888: 10 bf ff ba b 2008770 <_Thread_Change_priority+0xf0>
200888c: e0 20 80 00 st %l0, [ %g2 ]
02008890 <_Thread_Clear_state>:
void _Thread_Clear_state(
Thread_Control *the_thread,
States_Control state
)
{
2008890: 9d e3 bf a0 save %sp, -96, %sp
ISR_Level level;
States_Control current_state;
_ISR_Disable( level );
2008894: 7f ff e6 04 call 20020a4 <sparc_disable_interrupts>
2008898: a0 10 00 18 mov %i0, %l0
200889c: b0 10 00 08 mov %o0, %i0
current_state = the_thread->current_state;
20088a0: c2 04 20 10 ld [ %l0 + 0x10 ], %g1
if ( current_state & state ) {
20088a4: 80 8e 40 01 btst %i1, %g1
20088a8: 02 80 00 06 be 20088c0 <_Thread_Clear_state+0x30>
20088ac: 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);
20088b0: 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 ) ) {
20088b4: 80 a6 60 00 cmp %i1, 0
20088b8: 02 80 00 04 be 20088c8 <_Thread_Clear_state+0x38>
20088bc: f2 24 20 10 st %i1, [ %l0 + 0x10 ]
the_thread->current_priority == 0 )
_Context_Switch_necessary = true;
}
}
}
_ISR_Enable( level );
20088c0: 7f ff e5 fd call 20020b4 <sparc_enable_interrupts>
20088c4: 81 e8 00 00 restore
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (
Priority_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
20088c8: c4 04 20 90 ld [ %l0 + 0x90 ], %g2
if ( _States_Is_ready( current_state ) ) {
_Priority_Add_to_bit_map( &the_thread->Priority_map );
_Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
20088cc: c2 04 20 8c ld [ %l0 + 0x8c ], %g1
20088d0: c8 10 80 00 lduh [ %g2 ], %g4
20088d4: c6 14 20 96 lduh [ %l0 + 0x96 ], %g3
20088d8: 86 11 00 03 or %g4, %g3, %g3
20088dc: c6 30 80 00 sth %g3, [ %g2 ]
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
20088e0: 84 00 60 04 add %g1, 4, %g2
_Priority_Major_bit_map |= the_priority_map->ready_major;
20088e4: c8 14 20 94 lduh [ %l0 + 0x94 ], %g4
20088e8: c4 24 00 00 st %g2, [ %l0 ]
20088ec: 07 00 80 77 sethi %hi(0x201dc00), %g3
old_last_node = the_chain->last;
20088f0: c4 00 60 08 ld [ %g1 + 8 ], %g2
20088f4: da 10 e0 64 lduh [ %g3 + 0x64 ], %o5
the_chain->last = the_node;
20088f8: e0 20 60 08 st %l0, [ %g1 + 8 ]
old_last_node->next = the_node;
the_node->previous = old_last_node;
20088fc: c4 24 20 04 st %g2, [ %l0 + 4 ]
2008900: 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;
2008904: e0 20 80 00 st %l0, [ %g2 ]
2008908: c2 30 e0 64 sth %g1, [ %g3 + 0x64 ]
_ISR_Flash( level );
200890c: 7f ff e5 ea call 20020b4 <sparc_enable_interrupts>
2008910: 01 00 00 00 nop
2008914: 7f ff e5 e4 call 20020a4 <sparc_disable_interrupts>
2008918: 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 ) {
200891c: 03 00 80 77 sethi %hi(0x201dc00), %g1
2008920: c6 00 60 40 ld [ %g1 + 0x40 ], %g3 ! 201dc40 <_Thread_Heir>
2008924: c4 04 20 14 ld [ %l0 + 0x14 ], %g2
2008928: c6 00 e0 14 ld [ %g3 + 0x14 ], %g3
200892c: 80 a0 80 03 cmp %g2, %g3
2008930: 1a bf ff e4 bcc 20088c0 <_Thread_Clear_state+0x30>
2008934: 07 00 80 77 sethi %hi(0x201dc00), %g3
_Thread_Heir = the_thread;
if ( _Thread_Executing->is_preemptible ||
2008938: c6 00 e0 70 ld [ %g3 + 0x70 ], %g3 ! 201dc70 <_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;
200893c: e0 20 60 40 st %l0, [ %g1 + 0x40 ]
if ( _Thread_Executing->is_preemptible ||
2008940: c2 08 e0 75 ldub [ %g3 + 0x75 ], %g1
2008944: 80 a0 60 00 cmp %g1, 0
2008948: 32 80 00 05 bne,a 200895c <_Thread_Clear_state+0xcc>
200894c: 84 10 20 01 mov 1, %g2
2008950: 80 a0 a0 00 cmp %g2, 0
2008954: 12 bf ff db bne 20088c0 <_Thread_Clear_state+0x30> <== ALWAYS TAKEN
2008958: 84 10 20 01 mov 1, %g2
the_thread->current_priority == 0 )
_Context_Switch_necessary = true;
200895c: 03 00 80 77 sethi %hi(0x201dc00), %g1
2008960: c4 28 60 80 stb %g2, [ %g1 + 0x80 ] ! 201dc80 <_Context_Switch_necessary>
}
}
}
_ISR_Enable( level );
2008964: 7f ff e5 d4 call 20020b4 <sparc_enable_interrupts>
2008968: 81 e8 00 00 restore
02008b18 <_Thread_Delay_ended>:
void _Thread_Delay_ended(
Objects_Id id,
void *ignored __attribute__((unused))
)
{
2008b18: 9d e3 bf 98 save %sp, -104, %sp
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
2008b1c: 90 10 00 18 mov %i0, %o0
2008b20: 40 00 00 84 call 2008d30 <_Thread_Get>
2008b24: 92 07 bf fc add %fp, -4, %o1
switch ( location ) {
2008b28: c2 07 bf fc ld [ %fp + -4 ], %g1
2008b2c: 80 a0 60 00 cmp %g1, 0
2008b30: 12 80 00 08 bne 2008b50 <_Thread_Delay_ended+0x38> <== NEVER TAKEN
2008b34: 13 04 00 00 sethi %hi(0x10000000), %o1
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
#endif
break;
case OBJECTS_LOCAL:
_Thread_Clear_state(
2008b38: 7f ff ff 56 call 2008890 <_Thread_Clear_state>
2008b3c: 92 12 60 18 or %o1, 0x18, %o1 ! 10000018 <RAM_END+0xdc00018>
2008b40: 03 00 80 76 sethi %hi(0x201d800), %g1
2008b44: c4 00 63 b0 ld [ %g1 + 0x3b0 ], %g2 ! 201dbb0 <_Thread_Dispatch_disable_level>
2008b48: 84 00 bf ff add %g2, -1, %g2
2008b4c: c4 20 63 b0 st %g2, [ %g1 + 0x3b0 ]
2008b50: 81 c7 e0 08 ret
2008b54: 81 e8 00 00 restore
02008b58 <_Thread_Dispatch>:
* dispatch thread
* no dispatch thread
*/
void _Thread_Dispatch( void )
{
2008b58: 9d e3 bf 90 save %sp, -112, %sp
Thread_Control *executing;
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
2008b5c: 2b 00 80 77 sethi %hi(0x201dc00), %l5
_ISR_Disable( level );
2008b60: 7f ff e5 51 call 20020a4 <sparc_disable_interrupts>
2008b64: e0 05 60 70 ld [ %l5 + 0x70 ], %l0 ! 201dc70 <_Thread_Executing>
while ( _Context_Switch_necessary == true ) {
2008b68: 2d 00 80 77 sethi %hi(0x201dc00), %l6
2008b6c: c2 0d a0 80 ldub [ %l6 + 0x80 ], %g1 ! 201dc80 <_Context_Switch_necessary>
2008b70: 80 a0 60 00 cmp %g1, 0
2008b74: 02 80 00 50 be 2008cb4 <_Thread_Dispatch+0x15c>
2008b78: 33 00 80 77 sethi %hi(0x201dc00), %i1
2008b7c: 25 00 80 77 sethi %hi(0x201dc00), %l2
2008b80: 35 00 80 77 sethi %hi(0x201dc00), %i2
2008b84: a4 14 a0 78 or %l2, 0x78, %l2
#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;
2008b88: 31 00 80 76 sethi %hi(0x201d800), %i0
#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 );
2008b8c: 2f 00 80 77 sethi %hi(0x201dc00), %l7
2008b90: 03 00 80 76 sethi %hi(0x201d800), %g1
2008b94: ac 15 a0 80 or %l6, 0x80, %l6
2008b98: aa 15 60 70 or %l5, 0x70, %l5
2008b9c: b2 16 60 40 or %i1, 0x40, %i1
2008ba0: b4 16 a0 3c or %i2, 0x3c, %i2
2008ba4: b0 16 23 08 or %i0, 0x308, %i0
2008ba8: ae 15 e0 38 or %l7, 0x38, %l7
2008bac: b6 10 63 b0 or %g1, 0x3b0, %i3
2008bb0: a8 07 bf f8 add %fp, -8, %l4
2008bb4: a6 07 bf f0 add %fp, -16, %l3
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Context_Switch_necessary == true ) {
heir = _Thread_Heir;
_Thread_Dispatch_disable_level = 1;
2008bb8: b8 10 20 01 mov 1, %i4
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
{
Timestamp_Control uptime, ran;
_TOD_Get_uptime( &uptime );
_Timestamp_Subtract(
2008bbc: 10 80 00 34 b 2008c8c <_Thread_Dispatch+0x134>
2008bc0: ba 10 00 12 mov %l2, %i5
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;
_ISR_Enable( level );
2008bc4: 7f ff e5 3c call 20020b4 <sparc_enable_interrupts>
2008bc8: 01 00 00 00 nop
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
{
Timestamp_Control uptime, ran;
_TOD_Get_uptime( &uptime );
2008bcc: 40 00 13 3d call 200d8c0 <_TOD_Get_uptime>
2008bd0: 90 10 00 14 mov %l4, %o0
_Timestamp_Subtract(
2008bd4: 90 10 00 1d mov %i5, %o0
2008bd8: 92 10 00 14 mov %l4, %o1
2008bdc: 40 00 04 03 call 2009be8 <_Timespec_Subtract>
2008be0: 94 10 00 13 mov %l3, %o2
&_Thread_Time_of_last_context_switch,
&uptime,
&ran
);
_Timestamp_Add_to( &executing->cpu_time_used, &ran );
2008be4: 92 10 00 13 mov %l3, %o1
2008be8: 40 00 03 e7 call 2009b84 <_Timespec_Add_to>
2008bec: 90 04 20 84 add %l0, 0x84, %o0
_Thread_Time_of_last_context_switch = uptime;
2008bf0: c4 07 bf f8 ld [ %fp + -8 ], %g2
#endif
/*
* Switch libc's task specific data.
*/
if ( _Thread_libc_reent ) {
2008bf4: c2 06 80 00 ld [ %i2 ], %g1
&_Thread_Time_of_last_context_switch,
&uptime,
&ran
);
_Timestamp_Add_to( &executing->cpu_time_used, &ran );
_Thread_Time_of_last_context_switch = uptime;
2008bf8: c4 24 80 00 st %g2, [ %l2 ]
2008bfc: c4 07 bf fc ld [ %fp + -4 ], %g2
if ( _Thread_libc_reent ) {
executing->libc_reent = *_Thread_libc_reent;
*_Thread_libc_reent = heir->libc_reent;
}
_User_extensions_Thread_switch( executing, heir );
2008c00: 90 10 00 10 mov %l0, %o0
&_Thread_Time_of_last_context_switch,
&uptime,
&ran
);
_Timestamp_Add_to( &executing->cpu_time_used, &ran );
_Thread_Time_of_last_context_switch = uptime;
2008c04: c4 24 a0 04 st %g2, [ %l2 + 4 ]
#endif
/*
* Switch libc's task specific data.
*/
if ( _Thread_libc_reent ) {
2008c08: 80 a0 60 00 cmp %g1, 0
2008c0c: 02 80 00 06 be 2008c24 <_Thread_Dispatch+0xcc> <== NEVER TAKEN
2008c10: 92 10 00 11 mov %l1, %o1
executing->libc_reent = *_Thread_libc_reent;
2008c14: c4 00 40 00 ld [ %g1 ], %g2
2008c18: c4 24 21 5c st %g2, [ %l0 + 0x15c ]
*_Thread_libc_reent = heir->libc_reent;
2008c1c: c4 04 61 5c ld [ %l1 + 0x15c ], %g2
2008c20: c4 20 40 00 st %g2, [ %g1 ]
}
_User_extensions_Thread_switch( executing, heir );
2008c24: 40 00 04 b3 call 2009ef0 <_User_extensions_Thread_switch>
2008c28: 01 00 00 00 nop
if ( executing->fp_context != NULL )
_Context_Save_fp( &executing->fp_context );
#endif
#endif
_Context_Switch( &executing->Registers, &heir->Registers );
2008c2c: 92 04 60 d0 add %l1, 0xd0, %o1
2008c30: 40 00 06 00 call 200a430 <_CPU_Context_switch>
2008c34: 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) &&
2008c38: c2 04 21 58 ld [ %l0 + 0x158 ], %g1
2008c3c: 80 a0 60 00 cmp %g1, 0
2008c40: 02 80 00 0d be 2008c74 <_Thread_Dispatch+0x11c>
2008c44: 01 00 00 00 nop
2008c48: d0 05 c0 00 ld [ %l7 ], %o0
2008c4c: 80 a4 00 08 cmp %l0, %o0
2008c50: 02 80 00 09 be 2008c74 <_Thread_Dispatch+0x11c>
2008c54: 80 a2 20 00 cmp %o0, 0
!_Thread_Is_allocated_fp( executing ) ) {
if ( _Thread_Allocated_fp != NULL )
2008c58: 02 80 00 04 be 2008c68 <_Thread_Dispatch+0x110>
2008c5c: 01 00 00 00 nop
_Context_Save_fp( &_Thread_Allocated_fp->fp_context );
2008c60: 40 00 05 ba call 200a348 <_CPU_Context_save_fp>
2008c64: 90 02 21 58 add %o0, 0x158, %o0
_Context_Restore_fp( &executing->fp_context );
2008c68: 40 00 05 d5 call 200a3bc <_CPU_Context_restore_fp>
2008c6c: 90 04 21 58 add %l0, 0x158, %o0
_Thread_Allocated_fp = executing;
2008c70: e0 25 c0 00 st %l0, [ %l7 ]
#endif
#endif
executing = _Thread_Executing;
_ISR_Disable( level );
2008c74: 7f ff e5 0c call 20020a4 <sparc_disable_interrupts>
2008c78: e0 05 40 00 ld [ %l5 ], %l0
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Context_Switch_necessary == true ) {
2008c7c: c2 0d 80 00 ldub [ %l6 ], %g1
2008c80: 80 a0 60 00 cmp %g1, 0
2008c84: 02 80 00 0d be 2008cb8 <_Thread_Dispatch+0x160>
2008c88: 03 00 80 76 sethi %hi(0x201d800), %g1
heir = _Thread_Heir;
2008c8c: e2 06 40 00 ld [ %i1 ], %l1
_Thread_Dispatch_disable_level = 1;
2008c90: f8 26 c0 00 st %i4, [ %i3 ]
_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 )
2008c94: 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;
2008c98: 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 )
2008c9c: 80 a0 60 01 cmp %g1, 1
2008ca0: 12 bf ff c9 bne 2008bc4 <_Thread_Dispatch+0x6c>
2008ca4: e2 25 40 00 st %l1, [ %l5 ]
heir->cpu_time_budget = _Thread_Ticks_per_timeslice;
2008ca8: c2 06 00 00 ld [ %i0 ], %g1
2008cac: 10 bf ff c6 b 2008bc4 <_Thread_Dispatch+0x6c>
2008cb0: c2 24 60 78 st %g1, [ %l1 + 0x78 ]
executing = _Thread_Executing;
_ISR_Disable( level );
}
_Thread_Dispatch_disable_level = 0;
2008cb4: 03 00 80 76 sethi %hi(0x201d800), %g1
2008cb8: c0 20 63 b0 clr [ %g1 + 0x3b0 ] ! 201dbb0 <_Thread_Dispatch_disable_level>
_ISR_Enable( level );
2008cbc: 7f ff e4 fe call 20020b4 <sparc_enable_interrupts>
2008cc0: 01 00 00 00 nop
if ( _Thread_Do_post_task_switch_extension ||
2008cc4: 03 00 80 77 sethi %hi(0x201dc00), %g1
2008cc8: c2 00 60 54 ld [ %g1 + 0x54 ], %g1 ! 201dc54 <_Thread_Do_post_task_switch_extension>
2008ccc: 80 a0 60 00 cmp %g1, 0
2008cd0: 12 80 00 06 bne 2008ce8 <_Thread_Dispatch+0x190> <== NEVER TAKEN
2008cd4: 01 00 00 00 nop
executing->do_post_task_switch_extension ) {
2008cd8: c2 0c 20 74 ldub [ %l0 + 0x74 ], %g1
2008cdc: 80 a0 60 00 cmp %g1, 0
2008ce0: 02 80 00 04 be 2008cf0 <_Thread_Dispatch+0x198>
2008ce4: 01 00 00 00 nop
executing->do_post_task_switch_extension = false;
_API_extensions_Run_postswitch();
2008ce8: 7f ff f9 1b call 2007154 <_API_extensions_Run_postswitch>
2008cec: c0 2c 20 74 clrb [ %l0 + 0x74 ]
2008cf0: 81 c7 e0 08 ret
2008cf4: 81 e8 00 00 restore
02010184 <_Thread_Evaluate_mode>:
bool _Thread_Evaluate_mode( void )
{
Thread_Control *executing;
executing = _Thread_Executing;
2010184: 03 00 80 77 sethi %hi(0x201dc00), %g1
2010188: c2 00 60 70 ld [ %g1 + 0x70 ], %g1 ! 201dc70 <_Thread_Executing>
if ( !_States_Is_ready( executing->current_state ) ||
201018c: c4 00 60 10 ld [ %g1 + 0x10 ], %g2
2010190: 80 a0 a0 00 cmp %g2, 0
2010194: 12 80 00 0b bne 20101c0 <_Thread_Evaluate_mode+0x3c> <== NEVER TAKEN
2010198: 84 10 20 01 mov 1, %g2
201019c: 05 00 80 77 sethi %hi(0x201dc00), %g2
20101a0: c4 00 a0 40 ld [ %g2 + 0x40 ], %g2 ! 201dc40 <_Thread_Heir>
20101a4: 80 a0 40 02 cmp %g1, %g2
20101a8: 02 80 00 0b be 20101d4 <_Thread_Evaluate_mode+0x50>
20101ac: 01 00 00 00 nop
( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) {
20101b0: c2 08 60 75 ldub [ %g1 + 0x75 ], %g1
20101b4: 80 a0 60 00 cmp %g1, 0
20101b8: 02 80 00 07 be 20101d4 <_Thread_Evaluate_mode+0x50> <== NEVER TAKEN
20101bc: 84 10 20 01 mov 1, %g2
_Context_Switch_necessary = true;
20101c0: 03 00 80 77 sethi %hi(0x201dc00), %g1
20101c4: 90 10 20 01 mov 1, %o0
20101c8: c4 28 60 80 stb %g2, [ %g1 + 0x80 ]
return true;
20101cc: 81 c3 e0 08 retl
20101d0: 01 00 00 00 nop
}
return false;
}
20101d4: 81 c3 e0 08 retl
20101d8: 90 10 20 00 clr %o0 ! 0 <PROM_START>
020101dc <_Thread_Handler>:
*
* Output parameters: NONE
*/
void _Thread_Handler( void )
{
20101dc: 9d e3 bf a0 save %sp, -96, %sp
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
static char doneConstructors;
char doneCons;
#endif
executing = _Thread_Executing;
20101e0: 03 00 80 77 sethi %hi(0x201dc00), %g1
20101e4: e0 00 60 70 ld [ %g1 + 0x70 ], %l0 ! 201dc70 <_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();
20101e8: 3f 00 80 40 sethi %hi(0x2010000), %i7
20101ec: be 17 e1 dc or %i7, 0x1dc, %i7 ! 20101dc <_Thread_Handler>
/*
* have to put level into a register for those cpu's that use
* inline asm here
*/
level = executing->Start.isr_level;
20101f0: d0 04 20 b8 ld [ %l0 + 0xb8 ], %o0
_ISR_Set_level(level);
20101f4: 7f ff c7 b0 call 20020b4 <sparc_enable_interrupts>
20101f8: 91 2a 20 08 sll %o0, 8, %o0
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
doneCons = doneConstructors;
20101fc: 03 00 80 76 sethi %hi(0x201d800), %g1
doneConstructors = 1;
2010200: 84 10 20 01 mov 1, %g2
level = executing->Start.isr_level;
_ISR_Set_level(level);
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
doneCons = doneConstructors;
2010204: e4 08 60 66 ldub [ %g1 + 0x66 ], %l2
doneConstructors = 1;
2010208: c4 28 60 66 stb %g2, [ %g1 + 0x66 ]
#endif
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
if ( (executing->fp_context != NULL) &&
201020c: c2 04 21 58 ld [ %l0 + 0x158 ], %g1
2010210: 80 a0 60 00 cmp %g1, 0
2010214: 02 80 00 0b be 2010240 <_Thread_Handler+0x64>
2010218: 23 00 80 77 sethi %hi(0x201dc00), %l1
#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 );
201021c: d0 04 60 38 ld [ %l1 + 0x38 ], %o0 ! 201dc38 <_Thread_Allocated_fp>
2010220: 80 a4 00 08 cmp %l0, %o0
2010224: 02 80 00 07 be 2010240 <_Thread_Handler+0x64>
2010228: 80 a2 20 00 cmp %o0, 0
!_Thread_Is_allocated_fp( executing ) ) {
if ( _Thread_Allocated_fp != NULL )
201022c: 22 80 00 05 be,a 2010240 <_Thread_Handler+0x64>
2010230: e0 24 60 38 st %l0, [ %l1 + 0x38 ]
_Context_Save_fp( &_Thread_Allocated_fp->fp_context );
2010234: 7f ff e8 45 call 200a348 <_CPU_Context_save_fp>
2010238: 90 02 21 58 add %o0, 0x158, %o0
_Thread_Allocated_fp = executing;
201023c: e0 24 60 38 st %l0, [ %l1 + 0x38 ]
/*
* 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 );
2010240: 7f ff e6 ae call 2009cf8 <_User_extensions_Thread_begin>
2010244: 90 10 00 10 mov %l0, %o0
/*
* At this point, the dispatch disable level BETTER be 1.
*/
_Thread_Enable_dispatch();
2010248: 7f ff e2 ac call 2008cf8 <_Thread_Enable_dispatch>
201024c: a5 2c a0 18 sll %l2, 0x18, %l2
/*
* _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) */ {
2010250: 80 a4 a0 00 cmp %l2, 0
2010254: 02 80 00 0c be 2010284 <_Thread_Handler+0xa8>
2010258: 01 00 00 00 nop
INIT_NAME ();
}
#endif
if ( executing->Start.prototype == THREAD_START_NUMERIC ) {
201025c: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1
2010260: 80 a0 60 00 cmp %g1, 0
2010264: 22 80 00 0f be,a 20102a0 <_Thread_Handler+0xc4> <== ALWAYS TAKEN
2010268: c2 04 20 9c ld [ %l0 + 0x9c ], %g1
* 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 );
201026c: 7f ff e6 b7 call 2009d48 <_User_extensions_Thread_exitted>
2010270: 90 10 00 10 mov %l0, %o0
_Internal_error_Occurred(
2010274: 90 10 20 00 clr %o0
2010278: 92 10 20 01 mov 1, %o1
201027c: 7f ff de 7c call 2007c6c <_Internal_error_Occurred>
2010280: 94 10 20 06 mov 6, %o2
* _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) */ {
INIT_NAME ();
2010284: 40 00 33 5d call 201cff8 <_init>
2010288: 01 00 00 00 nop
}
#endif
if ( executing->Start.prototype == THREAD_START_NUMERIC ) {
201028c: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1
2010290: 80 a0 60 00 cmp %g1, 0
2010294: 12 bf ff f6 bne 201026c <_Thread_Handler+0x90> <== NEVER TAKEN
2010298: 01 00 00 00 nop
executing->Wait.return_argument =
(*(Thread_Entry_numeric) executing->Start.entry_point)(
201029c: c2 04 20 9c ld [ %l0 + 0x9c ], %g1
20102a0: 9f c0 40 00 call %g1
20102a4: d0 04 20 a8 ld [ %l0 + 0xa8 ], %o0
INIT_NAME ();
}
#endif
if ( executing->Start.prototype == THREAD_START_NUMERIC ) {
executing->Wait.return_argument =
20102a8: 10 bf ff f1 b 201026c <_Thread_Handler+0x90>
20102ac: d0 24 20 28 st %o0, [ %l0 + 0x28 ]
02008ddc <_Thread_Initialize>:
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
2008ddc: 9d e3 bf a0 save %sp, -96, %sp
2008de0: 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;
2008de4: 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
)
{
2008de8: e2 00 40 00 ld [ %g1 ], %l1
/*
* Zero out all the allocated memory fields
*/
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
the_thread->API_Extensions[i] = NULL;
2008dec: c0 26 61 64 clr [ %i1 + 0x164 ]
2008df0: c0 26 61 68 clr [ %i1 + 0x168 ]
extensions_area = NULL;
the_thread->libc_reent = NULL;
2008df4: 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
)
{
2008df8: e0 0f a0 5f ldub [ %fp + 0x5f ], %l0
/*
* 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 );
2008dfc: 90 10 00 19 mov %i1, %o0
2008e00: 40 00 02 ca call 2009928 <_Thread_Stack_Allocate>
2008e04: 92 10 00 1b mov %i3, %o1
if ( !actual_stack_size || actual_stack_size < stack_size )
2008e08: 80 a6 c0 08 cmp %i3, %o0
2008e0c: 18 80 00 5a bgu 2008f74 <_Thread_Initialize+0x198>
2008e10: 80 a2 20 00 cmp %o0, 0
2008e14: 02 80 00 58 be 2008f74 <_Thread_Initialize+0x198> <== NEVER TAKEN
2008e18: 80 8f 20 ff btst 0xff, %i4
Stack_Control *the_stack,
void *starting_address,
size_t size
)
{
the_stack->area = starting_address;
2008e1c: c2 06 60 cc ld [ %i1 + 0xcc ], %g1
the_stack->size = size;
2008e20: d0 26 60 c0 st %o0, [ %i1 + 0xc0 ]
Stack_Control *the_stack,
void *starting_address,
size_t size
)
{
the_stack->area = starting_address;
2008e24: 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 ) {
2008e28: 82 10 20 00 clr %g1
2008e2c: 12 80 00 54 bne 2008f7c <_Thread_Initialize+0x1a0>
2008e30: a4 10 20 00 clr %l2
#endif
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
2008e34: 27 00 80 77 sethi %hi(0x201dc00), %l3
2008e38: c4 04 e0 50 ld [ %l3 + 0x50 ], %g2 ! 201dc50 <_Thread_Maximum_extensions>
if ( !fp_area )
goto failed;
fp_area = _Context_Fp_start( fp_area, 0 );
}
the_thread->fp_context = fp_area;
the_thread->Start.fp_context = fp_area;
2008e3c: c2 26 60 c8 st %g1, [ %i1 + 0xc8 ]
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;
2008e40: c2 26 61 58 st %g1, [ %i1 + 0x158 ]
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
2008e44: c0 26 60 50 clr [ %i1 + 0x50 ]
the_watchdog->routine = routine;
2008e48: c0 26 60 64 clr [ %i1 + 0x64 ]
the_watchdog->id = id;
2008e4c: c0 26 60 68 clr [ %i1 + 0x68 ]
#endif
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
2008e50: 80 a0 a0 00 cmp %g2, 0
2008e54: 12 80 00 5a bne 2008fbc <_Thread_Initialize+0x1e0>
2008e58: c0 26 60 6c clr [ %i1 + 0x6c ]
(_Thread_Maximum_extensions + 1) * sizeof( void * )
);
if ( !extensions_area )
goto failed;
}
the_thread->extensions = (void **) extensions_area;
2008e5c: c0 26 61 6c clr [ %i1 + 0x16c ]
2008e60: b6 10 20 00 clr %i3
/*
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
the_thread->Start.budget_algorithm = budget_algorithm;
2008e64: 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 );
2008e68: 92 10 00 1d mov %i5, %o1
/*
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
the_thread->Start.budget_algorithm = budget_algorithm;
2008e6c: c2 26 60 b0 st %g1, [ %i1 + 0xb0 ]
the_thread->Start.budget_callout = budget_callout;
2008e70: 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 );
2008e74: 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;
2008e78: c2 26 60 b4 st %g1, [ %i1 + 0xb4 ]
case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:
break;
#endif
}
the_thread->Start.isr_level = isr_level;
2008e7c: c2 07 a0 68 ld [ %fp + 0x68 ], %g1
/*
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
2008e80: e0 2e 60 ac stb %l0, [ %i1 + 0xac ]
case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:
break;
#endif
}
the_thread->Start.isr_level = isr_level;
2008e84: c2 26 60 b8 st %g1, [ %i1 + 0xb8 ]
the_thread->current_state = STATES_DORMANT;
2008e88: 82 10 20 01 mov 1, %g1
the_thread->Wait.queue = NULL;
2008e8c: c0 26 60 44 clr [ %i1 + 0x44 ]
#endif
}
the_thread->Start.isr_level = isr_level;
the_thread->current_state = STATES_DORMANT;
2008e90: c2 26 60 10 st %g1, [ %i1 + 0x10 ]
the_thread->Wait.queue = NULL;
the_thread->resource_count = 0;
2008e94: c0 26 60 1c clr [ %i1 + 0x1c ]
#if defined(RTEMS_ITRON_API)
the_thread->suspend_count = 0;
#endif
the_thread->real_priority = priority;
2008e98: fa 26 60 18 st %i5, [ %i1 + 0x18 ]
the_thread->Start.initial_priority = priority;
_Thread_Set_priority( the_thread, priority );
2008e9c: 40 00 02 03 call 20096a8 <_Thread_Set_priority>
2008ea0: fa 26 60 bc st %i5, [ %i1 + 0xbc ]
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
2008ea4: c2 16 60 0a lduh [ %i1 + 0xa ], %g1
2008ea8: c4 06 20 1c ld [ %i0 + 0x1c ], %g2
2008eac: 83 28 60 02 sll %g1, 2, %g1
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
2008eb0: e2 26 60 0c st %l1, [ %i1 + 0xc ]
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
2008eb4: 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 );
2008eb8: c0 26 60 84 clr [ %i1 + 0x84 ]
2008ebc: 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 );
2008ec0: 90 10 00 19 mov %i1, %o0
2008ec4: 40 00 03 c8 call 2009de4 <_User_extensions_Thread_create>
2008ec8: b0 10 20 01 mov 1, %i0
if ( extension_status )
2008ecc: 80 8a 20 ff btst 0xff, %o0
2008ed0: 12 80 00 27 bne 2008f6c <_Thread_Initialize+0x190>
2008ed4: 01 00 00 00 nop
return true;
failed:
if ( the_thread->libc_reent )
2008ed8: d0 06 61 5c ld [ %i1 + 0x15c ], %o0
2008edc: 80 a2 20 00 cmp %o0, 0
2008ee0: 22 80 00 05 be,a 2008ef4 <_Thread_Initialize+0x118>
2008ee4: d0 06 61 60 ld [ %i1 + 0x160 ], %o0
_Workspace_Free( the_thread->libc_reent );
2008ee8: 40 00 04 f5 call 200a2bc <_Workspace_Free>
2008eec: 01 00 00 00 nop
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
if ( the_thread->API_Extensions[i] )
2008ef0: d0 06 61 60 ld [ %i1 + 0x160 ], %o0
2008ef4: 80 a2 20 00 cmp %o0, 0
2008ef8: 22 80 00 05 be,a 2008f0c <_Thread_Initialize+0x130>
2008efc: d0 06 61 64 ld [ %i1 + 0x164 ], %o0
_Workspace_Free( the_thread->API_Extensions[i] );
2008f00: 40 00 04 ef call 200a2bc <_Workspace_Free>
2008f04: 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] )
2008f08: d0 06 61 64 ld [ %i1 + 0x164 ], %o0
2008f0c: 80 a2 20 00 cmp %o0, 0
2008f10: 22 80 00 05 be,a 2008f24 <_Thread_Initialize+0x148> <== ALWAYS TAKEN
2008f14: d0 06 61 68 ld [ %i1 + 0x168 ], %o0
_Workspace_Free( the_thread->API_Extensions[i] );
2008f18: 40 00 04 e9 call 200a2bc <_Workspace_Free> <== NOT EXECUTED
2008f1c: 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] )
2008f20: d0 06 61 68 ld [ %i1 + 0x168 ], %o0 <== NOT EXECUTED
2008f24: 80 a2 20 00 cmp %o0, 0
2008f28: 02 80 00 05 be 2008f3c <_Thread_Initialize+0x160> <== ALWAYS TAKEN
2008f2c: 80 a6 e0 00 cmp %i3, 0
_Workspace_Free( the_thread->API_Extensions[i] );
2008f30: 40 00 04 e3 call 200a2bc <_Workspace_Free> <== NOT EXECUTED
2008f34: 01 00 00 00 nop <== NOT EXECUTED
if ( extensions_area )
2008f38: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2008f3c: 02 80 00 05 be 2008f50 <_Thread_Initialize+0x174>
2008f40: 80 a4 a0 00 cmp %l2, 0
(void) _Workspace_Free( extensions_area );
2008f44: 40 00 04 de call 200a2bc <_Workspace_Free>
2008f48: 90 10 00 1b mov %i3, %o0
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( fp_area )
2008f4c: 80 a4 a0 00 cmp %l2, 0
2008f50: 02 80 00 05 be 2008f64 <_Thread_Initialize+0x188>
2008f54: 90 10 00 19 mov %i1, %o0
(void) _Workspace_Free( fp_area );
2008f58: 40 00 04 d9 call 200a2bc <_Workspace_Free>
2008f5c: 90 10 00 12 mov %l2, %o0
#endif
_Thread_Stack_Free( the_thread );
2008f60: 90 10 00 19 mov %i1, %o0
2008f64: 40 00 02 8c call 2009994 <_Thread_Stack_Free>
2008f68: b0 10 20 00 clr %i0
return false;
}
2008f6c: 81 c7 e0 08 ret
2008f70: 81 e8 00 00 restore
/*
* 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 );
if ( !actual_stack_size || actual_stack_size < stack_size )
2008f74: 81 c7 e0 08 ret
2008f78: 91 e8 20 00 restore %g0, 0, %o0
/*
* Allocate the floating point area for this thread
*/
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( is_fp ) {
fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );
2008f7c: 40 00 04 c7 call 200a298 <_Workspace_Allocate>
2008f80: 90 10 20 88 mov 0x88, %o0
if ( !fp_area )
2008f84: b6 10 20 00 clr %i3
2008f88: a4 92 20 00 orcc %o0, 0, %l2
2008f8c: 02 bf ff d3 be 2008ed8 <_Thread_Initialize+0xfc>
2008f90: 82 10 00 12 mov %l2, %g1
#endif
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
2008f94: 27 00 80 77 sethi %hi(0x201dc00), %l3
2008f98: c4 04 e0 50 ld [ %l3 + 0x50 ], %g2 ! 201dc50 <_Thread_Maximum_extensions>
if ( !fp_area )
goto failed;
fp_area = _Context_Fp_start( fp_area, 0 );
}
the_thread->fp_context = fp_area;
the_thread->Start.fp_context = fp_area;
2008f9c: c2 26 60 c8 st %g1, [ %i1 + 0xc8 ]
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;
2008fa0: c2 26 61 58 st %g1, [ %i1 + 0x158 ]
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
2008fa4: c0 26 60 50 clr [ %i1 + 0x50 ]
the_watchdog->routine = routine;
2008fa8: c0 26 60 64 clr [ %i1 + 0x64 ]
the_watchdog->id = id;
2008fac: c0 26 60 68 clr [ %i1 + 0x68 ]
#endif
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
2008fb0: 80 a0 a0 00 cmp %g2, 0
2008fb4: 02 bf ff aa be 2008e5c <_Thread_Initialize+0x80>
2008fb8: c0 26 60 6c clr [ %i1 + 0x6c ]
extensions_area = _Workspace_Allocate(
2008fbc: 84 00 a0 01 inc %g2
2008fc0: 40 00 04 b6 call 200a298 <_Workspace_Allocate>
2008fc4: 91 28 a0 02 sll %g2, 2, %o0
(_Thread_Maximum_extensions + 1) * sizeof( void * )
);
if ( !extensions_area )
2008fc8: b6 92 20 00 orcc %o0, 0, %i3
2008fcc: 02 bf ff c3 be 2008ed8 <_Thread_Initialize+0xfc>
2008fd0: c8 04 e0 50 ld [ %l3 + 0x50 ], %g4
goto failed;
}
the_thread->extensions = (void **) extensions_area;
2008fd4: f6 26 61 6c st %i3, [ %i1 + 0x16c ]
2008fd8: 86 10 00 1b mov %i3, %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++ )
2008fdc: 84 10 20 00 clr %g2
2008fe0: 10 80 00 03 b 2008fec <_Thread_Initialize+0x210>
2008fe4: 82 10 20 00 clr %g1
2008fe8: c6 06 61 6c ld [ %i1 + 0x16c ], %g3
the_thread->extensions[i] = NULL;
2008fec: 85 28 a0 02 sll %g2, 2, %g2
2008ff0: c0 20 c0 02 clr [ %g3 + %g2 ]
* 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++ )
2008ff4: 82 00 60 01 inc %g1
2008ff8: 80 a1 00 01 cmp %g4, %g1
2008ffc: 1a bf ff fb bcc 2008fe8 <_Thread_Initialize+0x20c>
2009000: 84 10 00 01 mov %g1, %g2
/*
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
the_thread->Start.budget_algorithm = budget_algorithm;
2009004: 10 bf ff 99 b 2008e68 <_Thread_Initialize+0x8c>
2009008: c2 07 a0 60 ld [ %fp + 0x60 ], %g1
0200e128 <_Thread_Reset_timeslice>:
* ready chain
* select heir
*/
void _Thread_Reset_timeslice( void )
{
200e128: 9d e3 bf a0 save %sp, -96, %sp
ISR_Level level;
Thread_Control *executing;
Chain_Control *ready;
executing = _Thread_Executing;
200e12c: 03 00 80 77 sethi %hi(0x201dc00), %g1
200e130: e0 00 60 70 ld [ %g1 + 0x70 ], %l0 ! 201dc70 <_Thread_Executing>
ready = executing->ready;
_ISR_Disable( level );
200e134: 7f ff cf dc call 20020a4 <sparc_disable_interrupts>
200e138: e2 04 20 8c ld [ %l0 + 0x8c ], %l1
200e13c: b0 10 00 08 mov %o0, %i0
if ( _Chain_Has_only_one_node( ready ) ) {
200e140: c4 04 40 00 ld [ %l1 ], %g2
200e144: c2 04 60 08 ld [ %l1 + 8 ], %g1
200e148: 80 a0 80 01 cmp %g2, %g1
200e14c: 02 80 00 17 be 200e1a8 <_Thread_Reset_timeslice+0x80>
200e150: 86 04 60 04 add %l1, 4, %g3
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
200e154: c2 04 00 00 ld [ %l0 ], %g1
previous = the_node->previous;
200e158: c4 04 20 04 ld [ %l0 + 4 ], %g2
next->previous = previous;
previous->next = next;
200e15c: c2 20 80 00 st %g1, [ %g2 ]
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
200e160: c6 24 00 00 st %g3, [ %l0 ]
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
next->previous = previous;
200e164: 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;
200e168: c2 04 60 08 ld [ %l1 + 8 ], %g1
the_chain->last = the_node;
200e16c: e0 24 60 08 st %l0, [ %l1 + 8 ]
old_last_node->next = the_node;
the_node->previous = old_last_node;
200e170: 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;
200e174: e0 20 40 00 st %l0, [ %g1 ]
return;
}
_Chain_Extract_unprotected( &executing->Object.Node );
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
200e178: 7f ff cf cf call 20020b4 <sparc_enable_interrupts>
200e17c: 01 00 00 00 nop
200e180: 7f ff cf c9 call 20020a4 <sparc_disable_interrupts>
200e184: 01 00 00 00 nop
if ( _Thread_Is_heir( executing ) )
200e188: 03 00 80 77 sethi %hi(0x201dc00), %g1
200e18c: c4 00 60 40 ld [ %g1 + 0x40 ], %g2 ! 201dc40 <_Thread_Heir>
200e190: 80 a4 00 02 cmp %l0, %g2
200e194: 22 80 00 07 be,a 200e1b0 <_Thread_Reset_timeslice+0x88> <== ALWAYS TAKEN
200e198: c4 04 40 00 ld [ %l1 ], %g2
_Thread_Heir = (Thread_Control *) ready->first;
_Context_Switch_necessary = true;
200e19c: 84 10 20 01 mov 1, %g2
200e1a0: 03 00 80 77 sethi %hi(0x201dc00), %g1
200e1a4: c4 28 60 80 stb %g2, [ %g1 + 0x80 ] ! 201dc80 <_Context_Switch_necessary>
_ISR_Enable( level );
200e1a8: 7f ff cf c3 call 20020b4 <sparc_enable_interrupts>
200e1ac: 81 e8 00 00 restore
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
if ( _Thread_Is_heir( executing ) )
_Thread_Heir = (Thread_Control *) ready->first;
200e1b0: 10 bf ff fb b 200e19c <_Thread_Reset_timeslice+0x74>
200e1b4: c4 20 60 40 st %g2, [ %g1 + 0x40 ]
0200d0a0 <_Thread_Resume>:
void _Thread_Resume(
Thread_Control *the_thread,
bool force
)
{
200d0a0: 9d e3 bf a0 save %sp, -96, %sp
ISR_Level level;
States_Control current_state;
_ISR_Disable( level );
200d0a4: 7f ff d4 50 call 20021e4 <sparc_disable_interrupts>
200d0a8: a0 10 00 18 mov %i0, %l0
200d0ac: b0 10 00 08 mov %o0, %i0
_ISR_Enable( level );
return;
}
#endif
current_state = the_thread->current_state;
200d0b0: c2 04 20 10 ld [ %l0 + 0x10 ], %g1
if ( current_state & STATES_SUSPENDED ) {
200d0b4: 80 88 60 02 btst 2, %g1
200d0b8: 02 80 00 05 be 200d0cc <_Thread_Resume+0x2c> <== NEVER TAKEN
200d0bc: 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 ) ) {
200d0c0: 80 a0 60 00 cmp %g1, 0
200d0c4: 02 80 00 04 be 200d0d4 <_Thread_Resume+0x34>
200d0c8: c2 24 20 10 st %g1, [ %l0 + 0x10 ]
_Context_Switch_necessary = true;
}
}
}
_ISR_Enable( level );
200d0cc: 7f ff d4 4a call 20021f4 <sparc_enable_interrupts>
200d0d0: 81 e8 00 00 restore
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (
Priority_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
200d0d4: c4 04 20 90 ld [ %l0 + 0x90 ], %g2
if ( _States_Is_ready( current_state ) ) {
_Priority_Add_to_bit_map( &the_thread->Priority_map );
_Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
200d0d8: c2 04 20 8c ld [ %l0 + 0x8c ], %g1
200d0dc: c8 10 80 00 lduh [ %g2 ], %g4
200d0e0: c6 14 20 96 lduh [ %l0 + 0x96 ], %g3
200d0e4: 86 11 00 03 or %g4, %g3, %g3
200d0e8: c6 30 80 00 sth %g3, [ %g2 ]
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
200d0ec: 84 00 60 04 add %g1, 4, %g2
_Priority_Major_bit_map |= the_priority_map->ready_major;
200d0f0: c8 14 20 94 lduh [ %l0 + 0x94 ], %g4
200d0f4: c4 24 00 00 st %g2, [ %l0 ]
200d0f8: 07 00 80 86 sethi %hi(0x2021800), %g3
old_last_node = the_chain->last;
200d0fc: c4 00 60 08 ld [ %g1 + 8 ], %g2
200d100: da 10 e1 f4 lduh [ %g3 + 0x1f4 ], %o5
the_chain->last = the_node;
200d104: e0 20 60 08 st %l0, [ %g1 + 8 ]
old_last_node->next = the_node;
the_node->previous = old_last_node;
200d108: c4 24 20 04 st %g2, [ %l0 + 4 ]
200d10c: 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;
200d110: e0 20 80 00 st %l0, [ %g2 ]
200d114: c2 30 e1 f4 sth %g1, [ %g3 + 0x1f4 ]
_ISR_Flash( level );
200d118: 7f ff d4 37 call 20021f4 <sparc_enable_interrupts>
200d11c: 01 00 00 00 nop
200d120: 7f ff d4 31 call 20021e4 <sparc_disable_interrupts>
200d124: 01 00 00 00 nop
if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
200d128: 03 00 80 86 sethi %hi(0x2021800), %g1
200d12c: c6 00 61 d0 ld [ %g1 + 0x1d0 ], %g3 ! 20219d0 <_Thread_Heir>
200d130: c4 04 20 14 ld [ %l0 + 0x14 ], %g2
200d134: c6 00 e0 14 ld [ %g3 + 0x14 ], %g3
200d138: 80 a0 80 03 cmp %g2, %g3
200d13c: 1a bf ff e4 bcc 200d0cc <_Thread_Resume+0x2c>
200d140: 07 00 80 86 sethi %hi(0x2021800), %g3
_Thread_Heir = the_thread;
if ( _Thread_Executing->is_preemptible ||
200d144: c6 00 e2 00 ld [ %g3 + 0x200 ], %g3 ! 2021a00 <_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;
200d148: e0 20 61 d0 st %l0, [ %g1 + 0x1d0 ]
if ( _Thread_Executing->is_preemptible ||
200d14c: c2 08 e0 75 ldub [ %g3 + 0x75 ], %g1
200d150: 80 a0 60 00 cmp %g1, 0
200d154: 32 80 00 05 bne,a 200d168 <_Thread_Resume+0xc8>
200d158: 84 10 20 01 mov 1, %g2
200d15c: 80 a0 a0 00 cmp %g2, 0
200d160: 12 bf ff db bne 200d0cc <_Thread_Resume+0x2c> <== ALWAYS TAKEN
200d164: 84 10 20 01 mov 1, %g2
the_thread->current_priority == 0 )
_Context_Switch_necessary = true;
200d168: 03 00 80 86 sethi %hi(0x2021800), %g1
200d16c: c4 28 62 10 stb %g2, [ %g1 + 0x210 ] ! 2021a10 <_Context_Switch_necessary>
}
}
}
_ISR_Enable( level );
200d170: 7f ff d4 21 call 20021f4 <sparc_enable_interrupts>
200d174: 81 e8 00 00 restore
02009ad8 <_Thread_Yield_processor>:
* ready chain
* select heir
*/
void _Thread_Yield_processor( void )
{
2009ad8: 9d e3 bf a0 save %sp, -96, %sp
ISR_Level level;
Thread_Control *executing;
Chain_Control *ready;
executing = _Thread_Executing;
2009adc: 03 00 80 77 sethi %hi(0x201dc00), %g1
2009ae0: e0 00 60 70 ld [ %g1 + 0x70 ], %l0 ! 201dc70 <_Thread_Executing>
ready = executing->ready;
_ISR_Disable( level );
2009ae4: 7f ff e1 70 call 20020a4 <sparc_disable_interrupts>
2009ae8: e2 04 20 8c ld [ %l0 + 0x8c ], %l1
2009aec: b0 10 00 08 mov %o0, %i0
if ( !_Chain_Has_only_one_node( ready ) ) {
2009af0: c4 04 40 00 ld [ %l1 ], %g2
2009af4: c2 04 60 08 ld [ %l1 + 8 ], %g1
2009af8: 80 a0 80 01 cmp %g2, %g1
2009afc: 02 80 00 19 be 2009b60 <_Thread_Yield_processor+0x88>
2009b00: 86 04 60 04 add %l1, 4, %g3
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
2009b04: c2 04 00 00 ld [ %l0 ], %g1
previous = the_node->previous;
2009b08: c4 04 20 04 ld [ %l0 + 4 ], %g2
next->previous = previous;
previous->next = next;
2009b0c: c2 20 80 00 st %g1, [ %g2 ]
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
2009b10: c6 24 00 00 st %g3, [ %l0 ]
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
next->previous = previous;
2009b14: 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;
2009b18: c2 04 60 08 ld [ %l1 + 8 ], %g1
the_chain->last = the_node;
2009b1c: e0 24 60 08 st %l0, [ %l1 + 8 ]
old_last_node->next = the_node;
the_node->previous = old_last_node;
2009b20: 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;
2009b24: e0 20 40 00 st %l0, [ %g1 ]
_Chain_Extract_unprotected( &executing->Object.Node );
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
2009b28: 7f ff e1 63 call 20020b4 <sparc_enable_interrupts>
2009b2c: 01 00 00 00 nop
2009b30: 7f ff e1 5d call 20020a4 <sparc_disable_interrupts>
2009b34: 01 00 00 00 nop
if ( _Thread_Is_heir( executing ) )
2009b38: 03 00 80 77 sethi %hi(0x201dc00), %g1
2009b3c: c4 00 60 40 ld [ %g1 + 0x40 ], %g2 ! 201dc40 <_Thread_Heir>
2009b40: 80 a4 00 02 cmp %l0, %g2
2009b44: 22 80 00 0e be,a 2009b7c <_Thread_Yield_processor+0xa4> <== ALWAYS TAKEN
2009b48: c4 04 40 00 ld [ %l1 ], %g2
_Thread_Heir = (Thread_Control *) ready->first;
_Context_Switch_necessary = true;
}
else if ( !_Thread_Is_heir( executing ) )
_Context_Switch_necessary = true;
2009b4c: 84 10 20 01 mov 1, %g2
2009b50: 03 00 80 77 sethi %hi(0x201dc00), %g1
2009b54: c4 28 60 80 stb %g2, [ %g1 + 0x80 ] ! 201dc80 <_Context_Switch_necessary>
_ISR_Enable( level );
2009b58: 7f ff e1 57 call 20020b4 <sparc_enable_interrupts>
2009b5c: 81 e8 00 00 restore
if ( _Thread_Is_heir( executing ) )
_Thread_Heir = (Thread_Control *) ready->first;
_Context_Switch_necessary = true;
}
else if ( !_Thread_Is_heir( executing ) )
2009b60: 03 00 80 77 sethi %hi(0x201dc00), %g1
2009b64: c2 00 60 40 ld [ %g1 + 0x40 ], %g1 ! 201dc40 <_Thread_Heir>
2009b68: 80 a4 00 01 cmp %l0, %g1
2009b6c: 32 bf ff f9 bne,a 2009b50 <_Thread_Yield_processor+0x78> <== NEVER TAKEN
2009b70: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
_Context_Switch_necessary = true;
_ISR_Enable( level );
2009b74: 7f ff e1 50 call 20020b4 <sparc_enable_interrupts>
2009b78: 81 e8 00 00 restore
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
if ( _Thread_Is_heir( executing ) )
_Thread_Heir = (Thread_Control *) ready->first;
2009b7c: 10 bf ff f4 b 2009b4c <_Thread_Yield_processor+0x74>
2009b80: c4 20 60 40 st %g2, [ %g1 + 0x40 ]
0200932c <_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
)
{
200932c: 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;
2009330: 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);
2009334: 82 06 60 3c add %i1, 0x3c, %g1
the_chain->permanent_null = NULL;
2009338: 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);
200933c: c2 26 60 38 st %g1, [ %i1 + 0x38 ]
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
2009340: 82 06 60 38 add %i1, 0x38, %g1
2009344: c2 26 60 40 st %g1, [ %i1 + 0x40 ]
2009348: 2d 00 80 74 sethi %hi(0x201d000), %l6
header_index = _Thread_queue_Header_number( priority );
header = &the_thread_queue->Queues.Priority[ header_index ];
200934c: 83 34 20 06 srl %l0, 6, %g1
block_state = the_thread_queue->state;
if ( _Thread_queue_Is_reverse_search( priority ) )
2009350: 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 ];
2009354: ab 28 60 04 sll %g1, 4, %l5
2009358: ac 15 a0 f4 or %l6, 0xf4, %l6
200935c: 83 28 60 02 sll %g1, 2, %g1
block_state = the_thread_queue->state;
2009360: e8 06 20 38 ld [ %i0 + 0x38 ], %l4
_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 ];
2009364: aa 25 40 01 sub %l5, %g1, %l5
block_state = the_thread_queue->state;
if ( _Thread_queue_Is_reverse_search( priority ) )
2009368: 12 80 00 24 bne 20093f8 <_Thread_queue_Enqueue_priority+0xcc>
200936c: aa 06 00 15 add %i0, %l5, %l5
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
2009370: ac 05 60 04 add %l5, 4, %l6
goto restart_reverse_search;
restart_forward_search:
search_priority = PRIORITY_MINIMUM - 1;
_ISR_Disable( level );
2009374: 7f ff e3 4c call 20020a4 <sparc_disable_interrupts>
2009378: 01 00 00 00 nop
200937c: a4 10 00 08 mov %o0, %l2
search_thread = (Thread_Control *) header->first;
2009380: c2 05 40 00 ld [ %l5 ], %g1
while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {
2009384: 80 a0 40 16 cmp %g1, %l6
2009388: 02 80 00 3a be 2009470 <_Thread_queue_Enqueue_priority+0x144>
200938c: a2 10 00 01 mov %g1, %l1
search_priority = search_thread->current_priority;
2009390: e6 00 60 14 ld [ %g1 + 0x14 ], %l3
if ( priority <= search_priority )
2009394: 80 a4 00 13 cmp %l0, %l3
2009398: 18 80 00 0b bgu 20093c4 <_Thread_queue_Enqueue_priority+0x98>
200939c: 01 00 00 00 nop
}
search_thread =
(Thread_Control *)search_thread->Object.Node.next;
}
if ( the_thread_queue->sync_state !=
20093a0: 10 80 00 36 b 2009478 <_Thread_queue_Enqueue_priority+0x14c>
20093a4: c4 06 20 30 ld [ %i0 + 0x30 ], %g2
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 ) ) {
20093a8: 80 a4 40 16 cmp %l1, %l6
20093ac: 02 80 00 32 be 2009474 <_Thread_queue_Enqueue_priority+0x148>
20093b0: 82 10 00 11 mov %l1, %g1
search_priority = search_thread->current_priority;
20093b4: e6 04 60 14 ld [ %l1 + 0x14 ], %l3
if ( priority <= search_priority )
20093b8: 80 a4 00 13 cmp %l0, %l3
20093bc: 28 80 00 2f bleu,a 2009478 <_Thread_queue_Enqueue_priority+0x14c>
20093c0: c4 06 20 30 ld [ %i0 + 0x30 ], %g2
break;
search_priority = search_thread->current_priority;
if ( priority <= search_priority )
break;
#endif
_ISR_Flash( level );
20093c4: 7f ff e3 3c call 20020b4 <sparc_enable_interrupts>
20093c8: 90 10 00 12 mov %l2, %o0
20093cc: 7f ff e3 36 call 20020a4 <sparc_disable_interrupts>
20093d0: 01 00 00 00 nop
if ( !_States_Are_set( search_thread->current_state, block_state) ) {
20093d4: c2 04 60 10 ld [ %l1 + 0x10 ], %g1
20093d8: 80 8d 00 01 btst %l4, %g1
20093dc: 32 bf ff f3 bne,a 20093a8 <_Thread_queue_Enqueue_priority+0x7c><== ALWAYS TAKEN
20093e0: e2 04 40 00 ld [ %l1 ], %l1
_ISR_Enable( level );
20093e4: 7f ff e3 34 call 20020b4 <sparc_enable_interrupts> <== NOT EXECUTED
20093e8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
goto restart_forward_search;
20093ec: 30 bf ff e2 b,a 2009374 <_Thread_queue_Enqueue_priority+0x48><== NOT EXECUTED
if ( priority >= search_priority )
break;
#endif
_ISR_Flash( level );
if ( !_States_Are_set( search_thread->current_state, block_state) ) {
_ISR_Enable( level );
20093f0: 7f ff e3 31 call 20020b4 <sparc_enable_interrupts>
20093f4: 90 10 00 12 mov %l2, %o0
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
restart_reverse_search:
search_priority = PRIORITY_MAXIMUM + 1;
_ISR_Disable( level );
20093f8: 7f ff e3 2b call 20020a4 <sparc_disable_interrupts>
20093fc: e6 0d 80 00 ldub [ %l6 ], %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;
2009400: a6 04 e0 01 inc %l3
_ISR_Disable( level );
2009404: a4 10 00 08 mov %o0, %l2
search_thread = (Thread_Control *) header->last;
2009408: c2 05 60 08 ld [ %l5 + 8 ], %g1
while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {
200940c: 80 a0 40 15 cmp %g1, %l5
2009410: 02 80 00 20 be 2009490 <_Thread_queue_Enqueue_priority+0x164>
2009414: a2 10 00 01 mov %g1, %l1
search_priority = search_thread->current_priority;
2009418: e6 00 60 14 ld [ %g1 + 0x14 ], %l3
if ( priority >= search_priority )
200941c: 80 a4 00 13 cmp %l0, %l3
2009420: 0a 80 00 0b bcs 200944c <_Thread_queue_Enqueue_priority+0x120>
2009424: 01 00 00 00 nop
}
search_thread = (Thread_Control *)
search_thread->Object.Node.previous;
}
if ( the_thread_queue->sync_state !=
2009428: 10 80 00 1b b 2009494 <_Thread_queue_Enqueue_priority+0x168>
200942c: c4 06 20 30 ld [ %i0 + 0x30 ], %g2
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 ) ) {
2009430: 80 a4 40 15 cmp %l1, %l5
2009434: 02 80 00 17 be 2009490 <_Thread_queue_Enqueue_priority+0x164>
2009438: 82 10 00 11 mov %l1, %g1
search_priority = search_thread->current_priority;
200943c: e6 04 60 14 ld [ %l1 + 0x14 ], %l3
if ( priority >= search_priority )
2009440: 80 a4 00 13 cmp %l0, %l3
2009444: 3a 80 00 14 bcc,a 2009494 <_Thread_queue_Enqueue_priority+0x168>
2009448: c4 06 20 30 ld [ %i0 + 0x30 ], %g2
break;
search_priority = search_thread->current_priority;
if ( priority >= search_priority )
break;
#endif
_ISR_Flash( level );
200944c: 7f ff e3 1a call 20020b4 <sparc_enable_interrupts>
2009450: 90 10 00 12 mov %l2, %o0
2009454: 7f ff e3 14 call 20020a4 <sparc_disable_interrupts>
2009458: 01 00 00 00 nop
if ( !_States_Are_set( search_thread->current_state, block_state) ) {
200945c: c2 04 60 10 ld [ %l1 + 0x10 ], %g1
2009460: 80 8d 00 01 btst %l4, %g1
2009464: 32 bf ff f3 bne,a 2009430 <_Thread_queue_Enqueue_priority+0x104>
2009468: e2 04 60 04 ld [ %l1 + 4 ], %l1
200946c: 30 bf ff e1 b,a 20093f0 <_Thread_queue_Enqueue_priority+0xc4>
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 ) ) {
2009470: a6 10 3f ff mov -1, %l3
}
search_thread =
(Thread_Control *)search_thread->Object.Node.next;
}
if ( the_thread_queue->sync_state !=
2009474: c4 06 20 30 ld [ %i0 + 0x30 ], %g2
2009478: 80 a0 a0 01 cmp %g2, 1
200947c: 02 80 00 17 be 20094d8 <_Thread_queue_Enqueue_priority+0x1ac>
2009480: 80 a4 00 13 cmp %l0, %l3
* 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;
2009484: e4 26 80 00 st %l2, [ %i2 ]
return the_thread_queue->sync_state;
}
2009488: 81 c7 e0 08 ret
200948c: 91 e8 00 02 restore %g0, %g2, %o0
}
search_thread = (Thread_Control *)
search_thread->Object.Node.previous;
}
if ( the_thread_queue->sync_state !=
2009490: c4 06 20 30 ld [ %i0 + 0x30 ], %g2
2009494: 80 a0 a0 01 cmp %g2, 1
2009498: 32 bf ff fc bne,a 2009488 <_Thread_queue_Enqueue_priority+0x15c>
200949c: e4 26 80 00 st %l2, [ %i2 ]
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
if ( priority == search_priority )
20094a0: 80 a4 00 13 cmp %l0, %l3
20094a4: 02 80 00 1a be 200950c <_Thread_queue_Enqueue_priority+0x1e0>
20094a8: c0 26 20 30 clr [ %i0 + 0x30 ]
goto equal_priority;
search_node = (Chain_Node *) search_thread;
next_node = search_node->next;
20094ac: c4 00 40 00 ld [ %g1 ], %g2
the_node = (Chain_Node *) the_thread;
the_node->next = next_node;
the_node->previous = search_node;
20094b0: c2 26 60 04 st %g1, [ %i1 + 4 ]
search_node = (Chain_Node *) search_thread;
next_node = search_node->next;
the_node = (Chain_Node *) the_thread;
the_node->next = next_node;
20094b4: c4 26 40 00 st %g2, [ %i1 ]
the_node->previous = search_node;
search_node->next = the_node;
next_node->previous = the_node;
the_thread->Wait.queue = the_thread_queue;
20094b8: 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;
20094bc: f2 20 40 00 st %i1, [ %g1 ]
next_node->previous = the_node;
20094c0: f2 20 a0 04 st %i1, [ %g2 + 4 ]
the_thread->Wait.queue = the_thread_queue;
_ISR_Enable( level );
20094c4: b0 10 20 01 mov 1, %i0
20094c8: 7f ff e2 fb call 20020b4 <sparc_enable_interrupts>
20094cc: 90 10 00 12 mov %l2, %o0
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
20094d0: 81 c7 e0 08 ret
20094d4: 81 e8 00 00 restore
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
if ( priority == search_priority )
20094d8: 02 80 00 0d be 200950c <_Thread_queue_Enqueue_priority+0x1e0>
20094dc: c0 26 20 30 clr [ %i0 + 0x30 ]
goto equal_priority;
search_node = (Chain_Node *) search_thread;
previous_node = search_node->previous;
20094e0: c4 00 60 04 ld [ %g1 + 4 ], %g2
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
20094e4: c2 26 40 00 st %g1, [ %i1 ]
the_node->previous = previous_node;
20094e8: c4 26 60 04 st %g2, [ %i1 + 4 ]
previous_node->next = the_node;
search_node->previous = the_node;
the_thread->Wait.queue = the_thread_queue;
20094ec: 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;
20094f0: f2 20 80 00 st %i1, [ %g2 ]
search_node->previous = the_node;
20094f4: f2 20 60 04 st %i1, [ %g1 + 4 ]
the_thread->Wait.queue = the_thread_queue;
_ISR_Enable( level );
20094f8: b0 10 20 01 mov 1, %i0
20094fc: 7f ff e2 ee call 20020b4 <sparc_enable_interrupts>
2009500: 90 10 00 12 mov %l2, %o0
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
2009504: 81 c7 e0 08 ret
2009508: 81 e8 00 00 restore
200950c: 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;
2009510: c2 04 60 04 ld [ %l1 + 4 ], %g1
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
2009514: e2 26 40 00 st %l1, [ %i1 ]
the_node->previous = previous_node;
2009518: 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;
200951c: 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;
2009520: f2 20 40 00 st %i1, [ %g1 ]
search_node->previous = the_node;
2009524: f2 24 60 04 st %i1, [ %l1 + 4 ]
the_thread->Wait.queue = the_thread_queue;
_ISR_Enable( level );
2009528: b0 10 20 01 mov 1, %i0
200952c: 7f ff e2 e2 call 20020b4 <sparc_enable_interrupts>
2009530: 90 10 00 12 mov %l2, %o0
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
2009534: 81 c7 e0 08 ret
2009538: 81 e8 00 00 restore
020095e8 <_Thread_queue_Requeue>:
void _Thread_queue_Requeue(
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread
)
{
20095e8: 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 )
20095ec: 80 a6 20 00 cmp %i0, 0
20095f0: 02 80 00 13 be 200963c <_Thread_queue_Requeue+0x54> <== NEVER TAKEN
20095f4: 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 ) {
20095f8: e2 06 20 34 ld [ %i0 + 0x34 ], %l1
20095fc: 80 a4 60 01 cmp %l1, 1
2009600: 02 80 00 04 be 2009610 <_Thread_queue_Requeue+0x28> <== ALWAYS TAKEN
2009604: 01 00 00 00 nop
2009608: 81 c7 e0 08 ret <== NOT EXECUTED
200960c: 81 e8 00 00 restore <== NOT EXECUTED
Thread_queue_Control *tq = the_thread_queue;
ISR_Level level;
ISR_Level level_ignored;
_ISR_Disable( level );
2009610: 7f ff e2 a5 call 20020a4 <sparc_disable_interrupts>
2009614: 01 00 00 00 nop
2009618: a0 10 00 08 mov %o0, %l0
if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
200961c: c4 06 60 10 ld [ %i1 + 0x10 ], %g2
2009620: 03 00 00 ef sethi %hi(0x3bc00), %g1
2009624: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 <PROM_START+0x3bee0>
2009628: 80 88 80 01 btst %g2, %g1
200962c: 12 80 00 06 bne 2009644 <_Thread_queue_Requeue+0x5c> <== ALWAYS TAKEN
2009630: 90 10 00 18 mov %i0, %o0
_Thread_queue_Enter_critical_section( tq );
_Thread_queue_Extract_priority_helper( tq, the_thread, true );
(void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
}
_ISR_Enable( level );
2009634: 7f ff e2 a0 call 20020b4 <sparc_enable_interrupts>
2009638: 90 10 00 10 mov %l0, %o0
200963c: 81 c7 e0 08 ret
2009640: 81 e8 00 00 restore
ISR_Level level_ignored;
_ISR_Disable( level );
if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
_Thread_queue_Enter_critical_section( tq );
_Thread_queue_Extract_priority_helper( tq, the_thread, true );
2009644: 92 10 00 19 mov %i1, %o1
2009648: e2 26 20 30 st %l1, [ %i0 + 0x30 ]
200964c: 40 00 12 17 call 200dea8 <_Thread_queue_Extract_priority_helper>
2009650: 94 10 20 01 mov 1, %o2
(void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
2009654: 90 10 00 18 mov %i0, %o0
2009658: 92 10 00 19 mov %i1, %o1
200965c: 7f ff ff 34 call 200932c <_Thread_queue_Enqueue_priority>
2009660: 94 07 bf fc add %fp, -4, %o2
2009664: 30 bf ff f4 b,a 2009634 <_Thread_queue_Requeue+0x4c>
02009668 <_Thread_queue_Timeout>:
void _Thread_queue_Timeout(
Objects_Id id,
void *ignored __attribute__((unused))
)
{
2009668: 9d e3 bf 98 save %sp, -104, %sp
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
200966c: 90 10 00 18 mov %i0, %o0
2009670: 7f ff fd b0 call 2008d30 <_Thread_Get>
2009674: 92 07 bf fc add %fp, -4, %o1
switch ( location ) {
2009678: c2 07 bf fc ld [ %fp + -4 ], %g1
200967c: 80 a0 60 00 cmp %g1, 0
2009680: 12 80 00 08 bne 20096a0 <_Thread_queue_Timeout+0x38> <== NEVER TAKEN
2009684: 01 00 00 00 nop
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
#endif
break;
case OBJECTS_LOCAL:
_Thread_queue_Process_timeout( the_thread );
2009688: 40 00 12 41 call 200df8c <_Thread_queue_Process_timeout>
200968c: 01 00 00 00 nop
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
2009690: 03 00 80 76 sethi %hi(0x201d800), %g1
2009694: c4 00 63 b0 ld [ %g1 + 0x3b0 ], %g2 ! 201dbb0 <_Thread_Dispatch_disable_level>
2009698: 84 00 bf ff add %g2, -1, %g2
200969c: c4 20 63 b0 st %g2, [ %g1 + 0x3b0 ]
20096a0: 81 c7 e0 08 ret
20096a4: 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
02016f7c <_Timer_server_Body>:
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
2016f7c: 9d e3 bf 88 save %sp, -120, %sp
2016f80: 2d 00 80 fd sethi %hi(0x203f400), %l6
2016f84: ba 07 bf f4 add %fp, -12, %i5
2016f88: a8 07 bf f8 add %fp, -8, %l4
2016f8c: a4 07 bf e8 add %fp, -24, %l2
2016f90: ae 07 bf ec add %fp, -20, %l7
2016f94: 2b 00 80 fd sethi %hi(0x203f400), %l5
2016f98: 39 00 80 fc sethi %hi(0x203f000), %i4
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
2016f9c: c0 27 bf f8 clr [ %fp + -8 ]
2016fa0: c0 27 bf ec clr [ %fp + -20 ]
the_chain->last = _Chain_Head(the_chain);
2016fa4: fa 27 bf fc st %i5, [ %fp + -4 ]
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
2016fa8: e8 27 bf f4 st %l4, [ %fp + -12 ]
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
2016fac: e4 27 bf f0 st %l2, [ %fp + -16 ]
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
2016fb0: ee 27 bf e8 st %l7, [ %fp + -24 ]
2016fb4: ac 15 a0 d4 or %l6, 0xd4, %l6
2016fb8: aa 15 60 14 or %l5, 0x14, %l5
2016fbc: b8 17 23 80 or %i4, 0x380, %i4
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
watchdogs->last_snapshot = snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
2016fc0: a2 06 20 30 add %i0, 0x30, %l1
/*
* 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 );
2016fc4: a6 06 20 68 add %i0, 0x68, %l3
static void _Timer_server_Stop_interval_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );
2016fc8: b2 06 20 08 add %i0, 8, %i1
static void _Timer_server_Stop_tod_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
2016fcc: b4 06 20 40 add %i0, 0x40, %i2
_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;
2016fd0: b6 10 20 01 mov 1, %i3
{
/*
* 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;
2016fd4: fa 26 20 78 st %i5, [ %i0 + 0x78 ]
static void _Timer_server_Process_interval_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;
2016fd8: c2 05 80 00 ld [ %l6 ], %g1
/*
* We assume adequate unsigned arithmetic here.
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
2016fdc: d2 06 20 3c ld [ %i0 + 0x3c ], %o1
watchdogs->last_snapshot = snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
2016fe0: 90 10 00 11 mov %l1, %o0
2016fe4: 92 20 40 09 sub %g1, %o1, %o1
/*
* We assume adequate unsigned arithmetic here.
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
watchdogs->last_snapshot = snapshot;
2016fe8: c2 26 20 3c st %g1, [ %i0 + 0x3c ]
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
2016fec: 40 00 12 22 call 201b874 <_Watchdog_Adjust_to_chain>
2016ff0: 94 10 00 12 mov %l2, %o2
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
Watchdog_Interval last_snapshot = watchdogs->last_snapshot;
2016ff4: d2 06 20 74 ld [ %i0 + 0x74 ], %o1
static void _Timer_server_Process_tod_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
2016ff8: e0 05 40 00 ld [ %l5 ], %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 ) {
2016ffc: 80 a4 00 09 cmp %l0, %o1
2017000: 38 80 00 2f bgu,a 20170bc <_Timer_server_Body+0x140>
2017004: 92 24 00 09 sub %l0, %o1, %o1
* TOD has been set forward.
*/
delta = snapshot - last_snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
} else if ( snapshot < last_snapshot ) {
2017008: 80 a4 00 09 cmp %l0, %o1
201700c: 0a 80 00 30 bcs 20170cc <_Timer_server_Body+0x150>
2017010: 94 22 40 10 sub %o1, %l0, %o2
*/
delta = last_snapshot - snapshot;
_Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta );
}
watchdogs->last_snapshot = snapshot;
2017014: 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 );
2017018: d0 06 20 78 ld [ %i0 + 0x78 ], %o0
201701c: 40 00 02 94 call 2017a6c <_Chain_Get>
2017020: 01 00 00 00 nop
if ( timer == NULL ) {
2017024: 80 a2 20 00 cmp %o0, 0
2017028: 02 80 00 10 be 2017068 <_Timer_server_Body+0xec>
201702c: 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 ) {
2017030: c2 02 20 38 ld [ %o0 + 0x38 ], %g1
2017034: 80 a0 60 01 cmp %g1, 1
2017038: 02 80 00 29 be 20170dc <_Timer_server_Body+0x160>
201703c: 80 a0 60 03 cmp %g1, 3
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
} else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {
2017040: 12 bf ff f6 bne 2017018 <_Timer_server_Body+0x9c> <== NEVER TAKEN
2017044: 92 02 20 10 add %o0, 0x10, %o1
_Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );
2017048: 40 00 12 41 call 201b94c <_Watchdog_Insert>
201704c: 90 10 00 13 mov %l3, %o0
}
static void _Timer_server_Process_insertions( Timer_server_Control *ts )
{
while ( true ) {
Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain );
2017050: d0 06 20 78 ld [ %i0 + 0x78 ], %o0
2017054: 40 00 02 86 call 2017a6c <_Chain_Get>
2017058: 01 00 00 00 nop
if ( timer == NULL ) {
201705c: 80 a2 20 00 cmp %o0, 0
2017060: 32 bf ff f5 bne,a 2017034 <_Timer_server_Body+0xb8> <== NEVER TAKEN
2017064: c2 02 20 38 ld [ %o0 + 0x38 ], %g1 <== NOT EXECUTED
* of zero it will be processed in the next iteration of the timer server
* body loop.
*/
_Timer_server_Process_insertions( ts );
_ISR_Disable( level );
2017068: 7f ff e0 f4 call 200f438 <sparc_disable_interrupts>
201706c: 01 00 00 00 nop
if ( _Chain_Is_empty( insert_chain ) ) {
2017070: c2 07 bf f4 ld [ %fp + -12 ], %g1
2017074: 80 a5 00 01 cmp %l4, %g1
2017078: 02 80 00 1d be 20170ec <_Timer_server_Body+0x170> <== ALWAYS TAKEN
201707c: 01 00 00 00 nop
ts->insert_chain = NULL;
_ISR_Enable( level );
break;
} else {
_ISR_Enable( level );
2017080: 7f ff e0 f2 call 200f448 <sparc_enable_interrupts> <== NOT EXECUTED
2017084: 01 00 00 00 nop <== NOT EXECUTED
static void _Timer_server_Process_interval_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;
2017088: c2 05 80 00 ld [ %l6 ], %g1 <== NOT EXECUTED
/*
* We assume adequate unsigned arithmetic here.
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
201708c: d2 06 20 3c ld [ %i0 + 0x3c ], %o1 <== NOT EXECUTED
watchdogs->last_snapshot = snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
2017090: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2017094: 92 20 40 09 sub %g1, %o1, %o1 <== NOT EXECUTED
/*
* We assume adequate unsigned arithmetic here.
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
watchdogs->last_snapshot = snapshot;
2017098: c2 26 20 3c st %g1, [ %i0 + 0x3c ] <== NOT EXECUTED
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
201709c: 40 00 11 f6 call 201b874 <_Watchdog_Adjust_to_chain> <== NOT EXECUTED
20170a0: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
Watchdog_Interval last_snapshot = watchdogs->last_snapshot;
20170a4: d2 06 20 74 ld [ %i0 + 0x74 ], %o1 <== NOT EXECUTED
static void _Timer_server_Process_tod_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
20170a8: e0 05 40 00 ld [ %l5 ], %l0 <== NOT EXECUTED
/*
* 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 ) {
20170ac: 80 a4 00 09 cmp %l0, %o1 <== NOT EXECUTED
20170b0: 08 bf ff d7 bleu 201700c <_Timer_server_Body+0x90> <== NOT EXECUTED
20170b4: 01 00 00 00 nop <== NOT EXECUTED
/*
* 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 );
20170b8: 92 24 00 09 sub %l0, %o1, %o1 <== NOT EXECUTED
20170bc: 90 10 00 13 mov %l3, %o0
20170c0: 40 00 11 ed call 201b874 <_Watchdog_Adjust_to_chain>
20170c4: 94 10 00 12 mov %l2, %o2
20170c8: 30 bf ff d3 b,a 2017014 <_Timer_server_Body+0x98>
/*
* 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 );
20170cc: 90 10 00 13 mov %l3, %o0
20170d0: 40 00 11 b9 call 201b7b4 <_Watchdog_Adjust>
20170d4: 92 10 20 01 mov 1, %o1
20170d8: 30 bf ff cf b,a 2017014 <_Timer_server_Body+0x98>
Timer_server_Control *ts,
Timer_Control *timer
)
{
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
20170dc: 92 02 20 10 add %o0, 0x10, %o1
20170e0: 40 00 12 1b call 201b94c <_Watchdog_Insert>
20170e4: 90 10 00 11 mov %l1, %o0
20170e8: 30 bf ff cc b,a 2017018 <_Timer_server_Body+0x9c>
*/
_Timer_server_Process_insertions( ts );
_ISR_Disable( level );
if ( _Chain_Is_empty( insert_chain ) ) {
ts->insert_chain = NULL;
20170ec: c0 26 20 78 clr [ %i0 + 0x78 ]
_ISR_Enable( level );
20170f0: 7f ff e0 d6 call 200f448 <sparc_enable_interrupts>
20170f4: 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 ) ) {
20170f8: c2 07 bf e8 ld [ %fp + -24 ], %g1
20170fc: 80 a5 c0 01 cmp %l7, %g1
2017100: 12 80 00 0c bne 2017130 <_Timer_server_Body+0x1b4>
2017104: 01 00 00 00 nop
2017108: 30 80 00 13 b,a 2017154 <_Timer_server_Body+0x1d8>
* service routine may remove a watchdog from the chain.
*/
_ISR_Disable( level );
watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
if ( watchdog != NULL ) {
watchdog->state = WATCHDOG_INACTIVE;
201710c: c0 24 20 08 clr [ %l0 + 8 ]
Chain_Node *return_node;
Chain_Node *new_first;
return_node = the_chain->first;
new_first = return_node->next;
the_chain->first = new_first;
2017110: c2 27 bf e8 st %g1, [ %fp + -24 ]
new_first->previous = _Chain_Head(the_chain);
2017114: e4 20 60 04 st %l2, [ %g1 + 4 ]
_ISR_Enable( level );
2017118: 7f ff e0 cc call 200f448 <sparc_enable_interrupts>
201711c: 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 );
2017120: d2 04 20 24 ld [ %l0 + 0x24 ], %o1
2017124: c2 04 20 1c ld [ %l0 + 0x1c ], %g1
2017128: 9f c0 40 00 call %g1
201712c: d0 04 20 20 ld [ %l0 + 0x20 ], %o0
/*
* It is essential that interrupts are disable here since an interrupt
* service routine may remove a watchdog from the chain.
*/
_ISR_Disable( level );
2017130: 7f ff e0 c2 call 200f438 <sparc_disable_interrupts>
2017134: 01 00 00 00 nop
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
2017138: 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))
201713c: 80 a5 c0 10 cmp %l7, %l0
2017140: 32 bf ff f3 bne,a 201710c <_Timer_server_Body+0x190>
2017144: c2 04 00 00 ld [ %l0 ], %g1
watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
if ( watchdog != NULL ) {
watchdog->state = WATCHDOG_INACTIVE;
_ISR_Enable( level );
} else {
_ISR_Enable( level );
2017148: 7f ff e0 c0 call 200f448 <sparc_enable_interrupts>
201714c: 01 00 00 00 nop
2017150: 30 bf ff a1 b,a 2016fd4 <_Timer_server_Body+0x58>
* the active flag of the timer server is true.
*/
(*watchdog->routine)( watchdog->id, watchdog->user_data );
}
} else {
ts->active = false;
2017154: c0 2e 20 7c clrb [ %i0 + 0x7c ]
2017158: c2 07 00 00 ld [ %i4 ], %g1
201715c: 82 00 60 01 inc %g1
2017160: c2 27 00 00 st %g1, [ %i4 ]
/*
* Block until there is something to do.
*/
_Thread_Disable_dispatch();
_Thread_Set_state( ts->thread, STATES_DELAYING );
2017164: d0 06 00 00 ld [ %i0 ], %o0
2017168: 40 00 0e ed call 201ad1c <_Thread_Set_state>
201716c: 92 10 20 08 mov 8, %o1
_Timer_server_Reset_interval_system_watchdog( ts );
2017170: 7f ff ff 59 call 2016ed4 <_Timer_server_Reset_interval_system_watchdog>
2017174: 90 10 00 18 mov %i0, %o0
_Timer_server_Reset_tod_system_watchdog( ts );
2017178: 7f ff ff 6c call 2016f28 <_Timer_server_Reset_tod_system_watchdog>
201717c: 90 10 00 18 mov %i0, %o0
_Thread_Enable_dispatch();
2017180: 40 00 0b f1 call 201a144 <_Thread_Enable_dispatch>
2017184: 01 00 00 00 nop
static void _Timer_server_Stop_interval_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );
2017188: 90 10 00 19 mov %i1, %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;
201718c: f6 2e 20 7c stb %i3, [ %i0 + 0x7c ]
static void _Timer_server_Stop_interval_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );
2017190: 40 00 12 58 call 201baf0 <_Watchdog_Remove>
2017194: 01 00 00 00 nop
static void _Timer_server_Stop_tod_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
2017198: 40 00 12 56 call 201baf0 <_Watchdog_Remove>
201719c: 90 10 00 1a mov %i2, %o0
20171a0: 30 bf ff 8d b,a 2016fd4 <_Timer_server_Body+0x58>
02009b84 <_Timespec_Add_to>:
uint32_t _Timespec_Add_to(
struct timespec *time,
const struct timespec *add
)
{
2009b84: 9d e3 bf a0 save %sp, -96, %sp
2009b88: 82 10 00 18 mov %i0, %g1
uint32_t seconds = add->tv_sec;
/* Add the basics */
time->tv_sec += add->tv_sec;
time->tv_nsec += add->tv_nsec;
2009b8c: c8 06 60 04 ld [ %i1 + 4 ], %g4
uint32_t _Timespec_Add_to(
struct timespec *time,
const struct timespec *add
)
{
uint32_t seconds = add->tv_sec;
2009b90: f0 06 40 00 ld [ %i1 ], %i0
/* Add the basics */
time->tv_sec += add->tv_sec;
2009b94: c6 00 40 00 ld [ %g1 ], %g3
time->tv_nsec += add->tv_nsec;
2009b98: c4 00 60 04 ld [ %g1 + 4 ], %g2
)
{
uint32_t seconds = add->tv_sec;
/* Add the basics */
time->tv_sec += add->tv_sec;
2009b9c: 86 00 c0 18 add %g3, %i0, %g3
time->tv_nsec += add->tv_nsec;
2009ba0: 84 01 00 02 add %g4, %g2, %g2
)
{
uint32_t seconds = add->tv_sec;
/* Add the basics */
time->tv_sec += add->tv_sec;
2009ba4: c6 20 40 00 st %g3, [ %g1 ]
time->tv_nsec += add->tv_nsec;
/* Now adjust it so nanoseconds is in range */
while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
2009ba8: 1b 0e e6 b2 sethi %hi(0x3b9ac800), %o5
2009bac: 9a 13 61 ff or %o5, 0x1ff, %o5 ! 3b9ac9ff <RAM_END+0x395ac9ff>
2009bb0: 80 a0 80 0d cmp %g2, %o5
2009bb4: 08 80 00 0b bleu 2009be0 <_Timespec_Add_to+0x5c>
2009bb8: c4 20 60 04 st %g2, [ %g1 + 4 ]
time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND;
2009bbc: 09 31 19 4d sethi %hi(0xc4653400), %g4
2009bc0: 88 11 22 00 or %g4, 0x200, %g4 ! c4653600 <RAM_END+0xc2253600>
2009bc4: 84 00 80 04 add %g2, %g4, %g2
*
* This routines adds two timespecs. The second argument is added
* to the first.
*/
uint32_t _Timespec_Add_to(
2009bc8: 86 00 e0 01 inc %g3
/* Add the basics */
time->tv_sec += add->tv_sec;
time->tv_nsec += add->tv_nsec;
/* Now adjust it so nanoseconds is in range */
while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
2009bcc: 80 a0 80 0d cmp %g2, %o5
2009bd0: 18 bf ff fd bgu 2009bc4 <_Timespec_Add_to+0x40> <== NEVER TAKEN
2009bd4: b0 06 20 01 inc %i0
2009bd8: c6 20 40 00 st %g3, [ %g1 ]
2009bdc: c4 20 60 04 st %g2, [ %g1 + 4 ]
time->tv_sec++;
seconds++;
}
return seconds;
}
2009be0: 81 c7 e0 08 ret
2009be4: 81 e8 00 00 restore
02046100 <_Timespec_Greater_than>:
bool _Timespec_Greater_than(
const struct timespec *lhs,
const struct timespec *rhs
)
{
if ( lhs->tv_sec > rhs->tv_sec )
2046100: c6 02 00 00 ld [ %o0 ], %g3
2046104: c4 02 40 00 ld [ %o1 ], %g2
bool _Timespec_Greater_than(
const struct timespec *lhs,
const struct timespec *rhs
)
{
2046108: 82 10 00 08 mov %o0, %g1
if ( lhs->tv_sec > rhs->tv_sec )
204610c: 80 a0 c0 02 cmp %g3, %g2
2046110: 14 80 00 0a bg 2046138 <_Timespec_Greater_than+0x38>
2046114: 90 10 20 01 mov 1, %o0
return true;
if ( lhs->tv_sec < rhs->tv_sec )
2046118: 80 a0 c0 02 cmp %g3, %g2
204611c: 06 80 00 07 bl 2046138 <_Timespec_Greater_than+0x38> <== NEVER TAKEN
2046120: 90 10 20 00 clr %o0
#include <rtems/system.h>
#include <rtems/score/timespec.h>
#include <rtems/score/tod.h>
bool _Timespec_Greater_than(
2046124: c4 00 60 04 ld [ %g1 + 4 ], %g2
2046128: c2 02 60 04 ld [ %o1 + 4 ], %g1
204612c: 80 a0 80 01 cmp %g2, %g1
2046130: 04 80 00 04 ble 2046140 <_Timespec_Greater_than+0x40>
2046134: 90 10 20 01 mov 1, %o0
/* ASSERT: lhs->tv_sec == rhs->tv_sec */
if ( lhs->tv_nsec > rhs->tv_nsec )
return true;
return false;
}
2046138: 81 c3 e0 08 retl
204613c: 01 00 00 00 nop
2046140: 81 c3 e0 08 retl
2046144: 90 10 20 00 clr %o0 ! 0 <PROM_START>
02009d94 <_User_extensions_Fatal>:
void _User_extensions_Fatal (
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
2009d94: 9d e3 bf a0 save %sp, -96, %sp
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
2009d98: 23 00 80 77 sethi %hi(0x201dc00), %l1
2009d9c: a2 14 61 e8 or %l1, 0x1e8, %l1 ! 201dde8 <_User_extensions_List>
2009da0: e0 04 60 08 ld [ %l1 + 8 ], %l0
2009da4: 80 a4 00 11 cmp %l0, %l1
2009da8: 02 80 00 0d be 2009ddc <_User_extensions_Fatal+0x48> <== NEVER TAKEN
2009dac: b2 0e 60 ff and %i1, 0xff, %i1
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.fatal != NULL )
2009db0: c2 04 20 30 ld [ %l0 + 0x30 ], %g1
2009db4: 80 a0 60 00 cmp %g1, 0
2009db8: 02 80 00 05 be 2009dcc <_User_extensions_Fatal+0x38>
2009dbc: 90 10 00 18 mov %i0, %o0
(*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
2009dc0: 92 10 00 19 mov %i1, %o1
2009dc4: 9f c0 40 00 call %g1
2009dc8: 94 10 00 1a mov %i2, %o2
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
2009dcc: e0 04 20 04 ld [ %l0 + 4 ], %l0
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
2009dd0: 80 a4 00 11 cmp %l0, %l1
2009dd4: 32 bf ff f8 bne,a 2009db4 <_User_extensions_Fatal+0x20>
2009dd8: c2 04 20 30 ld [ %l0 + 0x30 ], %g1
2009ddc: 81 c7 e0 08 ret
2009de0: 81 e8 00 00 restore
02009c40 <_User_extensions_Handler_initialization>:
#include <rtems/score/userext.h>
#include <rtems/score/wkspace.h>
#include <string.h>
void _User_extensions_Handler_initialization(void)
{
2009c40: 9d e3 bf a0 save %sp, -96, %sp
User_extensions_Control *extension;
uint32_t i;
uint32_t number_of_extensions;
User_extensions_Table *initial_extensions;
number_of_extensions = Configuration.number_of_initial_extensions;
2009c44: 07 00 80 74 sethi %hi(0x201d000), %g3
2009c48: 86 10 e0 f8 or %g3, 0xf8, %g3 ! 201d0f8 <Configuration>
initial_extensions = Configuration.User_extension_table;
2009c4c: e6 00 e0 3c ld [ %g3 + 0x3c ], %l3
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
2009c50: 1b 00 80 77 sethi %hi(0x201dc00), %o5
2009c54: 09 00 80 76 sethi %hi(0x201d800), %g4
2009c58: 84 13 61 e8 or %o5, 0x1e8, %g2
2009c5c: 82 11 23 b4 or %g4, 0x3b4, %g1
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
2009c60: c4 20 a0 08 st %g2, [ %g2 + 8 ]
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
2009c64: c0 20 a0 04 clr [ %g2 + 4 ]
the_chain->last = _Chain_Head(the_chain);
2009c68: c2 20 60 08 st %g1, [ %g1 + 8 ]
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
2009c6c: c0 20 60 04 clr [ %g1 + 4 ]
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
2009c70: 84 00 a0 04 add %g2, 4, %g2
2009c74: 82 00 60 04 add %g1, 4, %g1
2009c78: c4 23 61 e8 st %g2, [ %o5 + 0x1e8 ]
2009c7c: c2 21 23 b4 st %g1, [ %g4 + 0x3b4 ]
_Chain_Initialize_empty( &_User_extensions_List );
_Chain_Initialize_empty( &_User_extensions_Switches_list );
if ( initial_extensions ) {
2009c80: 80 a4 e0 00 cmp %l3, 0
2009c84: 02 80 00 1b be 2009cf0 <_User_extensions_Handler_initialization+0xb0>
2009c88: e4 00 e0 38 ld [ %g3 + 0x38 ], %l2
extension = (User_extensions_Control *)
_Workspace_Allocate_or_fatal_error(
number_of_extensions * sizeof( User_extensions_Control )
2009c8c: 83 2c a0 02 sll %l2, 2, %g1
2009c90: a3 2c a0 04 sll %l2, 4, %l1
2009c94: a2 24 40 01 sub %l1, %g1, %l1
2009c98: a2 04 40 12 add %l1, %l2, %l1
2009c9c: a3 2c 60 02 sll %l1, 2, %l1
_Chain_Initialize_empty( &_User_extensions_List );
_Chain_Initialize_empty( &_User_extensions_Switches_list );
if ( initial_extensions ) {
extension = (User_extensions_Control *)
2009ca0: 40 00 01 6f call 200a25c <_Workspace_Allocate_or_fatal_error>
2009ca4: 90 10 00 11 mov %l1, %o0
_Workspace_Allocate_or_fatal_error(
number_of_extensions * sizeof( User_extensions_Control )
);
memset (
2009ca8: 94 10 00 11 mov %l1, %o2
_Chain_Initialize_empty( &_User_extensions_List );
_Chain_Initialize_empty( &_User_extensions_Switches_list );
if ( initial_extensions ) {
extension = (User_extensions_Control *)
2009cac: a0 10 00 08 mov %o0, %l0
_Workspace_Allocate_or_fatal_error(
number_of_extensions * sizeof( User_extensions_Control )
);
memset (
2009cb0: 40 00 1c 63 call 2010e3c <memset>
2009cb4: 92 10 20 00 clr %o1
extension,
0,
number_of_extensions * sizeof( User_extensions_Control )
);
for ( i = 0 ; i < number_of_extensions ; i++ ) {
2009cb8: 80 a4 a0 00 cmp %l2, 0
2009cbc: 02 80 00 0d be 2009cf0 <_User_extensions_Handler_initialization+0xb0><== NEVER TAKEN
2009cc0: a2 10 20 00 clr %l1
RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table(
User_extensions_Control *extension,
const User_extensions_Table *extension_table
)
{
extension->Callouts = *extension_table;
2009cc4: 93 2c 60 05 sll %l1, 5, %o1
2009cc8: 94 10 20 20 mov 0x20, %o2
2009ccc: 92 04 c0 09 add %l3, %o1, %o1
2009cd0: 40 00 1c 1c call 2010d40 <memcpy>
2009cd4: 90 04 20 14 add %l0, 0x14, %o0
_User_extensions_Add_set( extension );
2009cd8: 40 00 11 38 call 200e1b8 <_User_extensions_Add_set>
2009cdc: 90 10 00 10 mov %l0, %o0
2009ce0: a2 04 60 01 inc %l1
2009ce4: 80 a4 80 11 cmp %l2, %l1
2009ce8: 18 bf ff f7 bgu 2009cc4 <_User_extensions_Handler_initialization+0x84>
2009cec: a0 04 20 34 add %l0, 0x34, %l0
2009cf0: 81 c7 e0 08 ret
2009cf4: 81 e8 00 00 restore
02009cf8 <_User_extensions_Thread_begin>:
#include <rtems/score/userext.h>
void _User_extensions_Thread_begin (
Thread_Control *executing
)
{
2009cf8: 9d e3 bf a0 save %sp, -96, %sp
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
2009cfc: 23 00 80 77 sethi %hi(0x201dc00), %l1
2009d00: e0 04 61 e8 ld [ %l1 + 0x1e8 ], %l0 ! 201dde8 <_User_extensions_List>
2009d04: a2 14 61 e8 or %l1, 0x1e8, %l1
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
2009d08: a2 04 60 04 add %l1, 4, %l1
2009d0c: 80 a4 00 11 cmp %l0, %l1
2009d10: 02 80 00 0c be 2009d40 <_User_extensions_Thread_begin+0x48><== NEVER TAKEN
2009d14: 01 00 00 00 nop
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_begin != NULL )
2009d18: c2 04 20 28 ld [ %l0 + 0x28 ], %g1
2009d1c: 80 a0 60 00 cmp %g1, 0
2009d20: 02 80 00 04 be 2009d30 <_User_extensions_Thread_begin+0x38>
2009d24: 90 10 00 18 mov %i0, %o0
(*the_extension->Callouts.thread_begin)( executing );
2009d28: 9f c0 40 00 call %g1
2009d2c: 01 00 00 00 nop
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
2009d30: e0 04 00 00 ld [ %l0 ], %l0
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
2009d34: 80 a4 00 11 cmp %l0, %l1
2009d38: 32 bf ff f9 bne,a 2009d1c <_User_extensions_Thread_begin+0x24>
2009d3c: c2 04 20 28 ld [ %l0 + 0x28 ], %g1
2009d40: 81 c7 e0 08 ret
2009d44: 81 e8 00 00 restore
02009de4 <_User_extensions_Thread_create>:
#include <rtems/score/userext.h>
bool _User_extensions_Thread_create (
Thread_Control *the_thread
)
{
2009de4: 9d e3 bf a0 save %sp, -96, %sp
Chain_Node *the_node;
User_extensions_Control *the_extension;
bool status;
for ( the_node = _User_extensions_List.first ;
2009de8: 23 00 80 77 sethi %hi(0x201dc00), %l1
2009dec: e0 04 61 e8 ld [ %l1 + 0x1e8 ], %l0 ! 201dde8 <_User_extensions_List>
2009df0: a2 14 61 e8 or %l1, 0x1e8, %l1
2009df4: a2 04 60 04 add %l1, 4, %l1
2009df8: 80 a4 00 11 cmp %l0, %l1
2009dfc: 02 80 00 10 be 2009e3c <_User_extensions_Thread_create+0x58><== NEVER TAKEN
2009e00: 25 00 80 77 sethi %hi(0x201dc00), %l2
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_create != NULL ) {
status = (*the_extension->Callouts.thread_create)(
2009e04: a4 14 a0 70 or %l2, 0x70, %l2 ! 201dc70 <_Thread_Executing>
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_create != NULL ) {
2009e08: c2 04 20 14 ld [ %l0 + 0x14 ], %g1
2009e0c: 80 a0 60 00 cmp %g1, 0
2009e10: 02 80 00 07 be 2009e2c <_User_extensions_Thread_create+0x48>
2009e14: 92 10 00 18 mov %i0, %o1
status = (*the_extension->Callouts.thread_create)(
2009e18: 9f c0 40 00 call %g1
2009e1c: d0 04 80 00 ld [ %l2 ], %o0
_Thread_Executing,
the_thread
);
if ( !status )
2009e20: 80 8a 20 ff btst 0xff, %o0
2009e24: 02 80 00 08 be 2009e44 <_User_extensions_Thread_create+0x60>
2009e28: 01 00 00 00 nop
User_extensions_Control *the_extension;
bool status;
for ( the_node = _User_extensions_List.first ;
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
2009e2c: e0 04 00 00 ld [ %l0 ], %l0
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
bool status;
for ( the_node = _User_extensions_List.first ;
2009e30: 80 a4 00 11 cmp %l0, %l1
2009e34: 32 bf ff f6 bne,a 2009e0c <_User_extensions_Thread_create+0x28>
2009e38: c2 04 20 14 ld [ %l0 + 0x14 ], %g1
return false;
}
}
return true;
}
2009e3c: 81 c7 e0 08 ret
2009e40: 91 e8 20 01 restore %g0, 1, %o0
if ( the_extension->Callouts.thread_create != NULL ) {
status = (*the_extension->Callouts.thread_create)(
_Thread_Executing,
the_thread
);
if ( !status )
2009e44: 81 c7 e0 08 ret
2009e48: 91 e8 20 00 restore %g0, 0, %o0
02009e4c <_User_extensions_Thread_delete>:
#include <rtems/score/userext.h>
void _User_extensions_Thread_delete (
Thread_Control *the_thread
)
{
2009e4c: 9d e3 bf a0 save %sp, -96, %sp
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
2009e50: 23 00 80 77 sethi %hi(0x201dc00), %l1
2009e54: a2 14 61 e8 or %l1, 0x1e8, %l1 ! 201dde8 <_User_extensions_List>
2009e58: e0 04 60 08 ld [ %l1 + 8 ], %l0
2009e5c: 80 a4 00 11 cmp %l0, %l1
2009e60: 02 80 00 0d be 2009e94 <_User_extensions_Thread_delete+0x48><== NEVER TAKEN
2009e64: 25 00 80 77 sethi %hi(0x201dc00), %l2
the_node = the_node->previous ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_delete != NULL )
(*the_extension->Callouts.thread_delete)(
2009e68: a4 14 a0 70 or %l2, 0x70, %l2 ! 201dc70 <_Thread_Executing>
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_delete != NULL )
2009e6c: c2 04 20 20 ld [ %l0 + 0x20 ], %g1
2009e70: 80 a0 60 00 cmp %g1, 0
2009e74: 02 80 00 04 be 2009e84 <_User_extensions_Thread_delete+0x38>
2009e78: 92 10 00 18 mov %i0, %o1
(*the_extension->Callouts.thread_delete)(
2009e7c: 9f c0 40 00 call %g1
2009e80: d0 04 80 00 ld [ %l2 ], %o0
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
2009e84: e0 04 20 04 ld [ %l0 + 4 ], %l0
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
2009e88: 80 a4 00 11 cmp %l0, %l1
2009e8c: 32 bf ff f9 bne,a 2009e70 <_User_extensions_Thread_delete+0x24>
2009e90: c2 04 20 20 ld [ %l0 + 0x20 ], %g1
2009e94: 81 c7 e0 08 ret
2009e98: 81 e8 00 00 restore
02009d48 <_User_extensions_Thread_exitted>:
}
void _User_extensions_Thread_exitted (
Thread_Control *executing
)
{
2009d48: 9d e3 bf a0 save %sp, -96, %sp
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
2009d4c: 23 00 80 77 sethi %hi(0x201dc00), %l1
2009d50: a2 14 61 e8 or %l1, 0x1e8, %l1 ! 201dde8 <_User_extensions_List>
2009d54: e0 04 60 08 ld [ %l1 + 8 ], %l0
2009d58: 80 a4 00 11 cmp %l0, %l1
2009d5c: 02 80 00 0c be 2009d8c <_User_extensions_Thread_exitted+0x44><== NEVER TAKEN
2009d60: 01 00 00 00 nop
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_exitted != NULL )
2009d64: c2 04 20 2c ld [ %l0 + 0x2c ], %g1
2009d68: 80 a0 60 00 cmp %g1, 0
2009d6c: 02 80 00 04 be 2009d7c <_User_extensions_Thread_exitted+0x34>
2009d70: 90 10 00 18 mov %i0, %o0
(*the_extension->Callouts.thread_exitted)( executing );
2009d74: 9f c0 40 00 call %g1
2009d78: 01 00 00 00 nop
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
2009d7c: e0 04 20 04 ld [ %l0 + 4 ], %l0
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
2009d80: 80 a4 00 11 cmp %l0, %l1
2009d84: 32 bf ff f9 bne,a 2009d68 <_User_extensions_Thread_exitted+0x20>
2009d88: c2 04 20 2c ld [ %l0 + 0x2c ], %g1
2009d8c: 81 c7 e0 08 ret
2009d90: 81 e8 00 00 restore
0200aba4 <_User_extensions_Thread_restart>:
#include <rtems/score/userext.h>
void _User_extensions_Thread_restart (
Thread_Control *the_thread
)
{
200aba4: 9d e3 bf a0 save %sp, -96, %sp
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
200aba8: 23 00 80 89 sethi %hi(0x2022400), %l1
200abac: e0 04 63 a8 ld [ %l1 + 0x3a8 ], %l0 ! 20227a8 <_User_extensions_List>
200abb0: a2 14 63 a8 or %l1, 0x3a8, %l1
200abb4: a2 04 60 04 add %l1, 4, %l1
200abb8: 80 a4 00 11 cmp %l0, %l1
200abbc: 02 80 00 0d be 200abf0 <_User_extensions_Thread_restart+0x4c><== NEVER TAKEN
200abc0: 25 00 80 89 sethi %hi(0x2022400), %l2
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_restart != NULL )
(*the_extension->Callouts.thread_restart)(
200abc4: a4 14 a2 30 or %l2, 0x230, %l2 ! 2022630 <_Thread_Executing>
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_restart != NULL )
200abc8: c2 04 20 1c ld [ %l0 + 0x1c ], %g1
200abcc: 80 a0 60 00 cmp %g1, 0
200abd0: 02 80 00 04 be 200abe0 <_User_extensions_Thread_restart+0x3c>
200abd4: 92 10 00 18 mov %i0, %o1
(*the_extension->Callouts.thread_restart)(
200abd8: 9f c0 40 00 call %g1
200abdc: d0 04 80 00 ld [ %l2 ], %o0
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
200abe0: e0 04 00 00 ld [ %l0 ], %l0
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
200abe4: 80 a4 00 11 cmp %l0, %l1
200abe8: 32 bf ff f9 bne,a 200abcc <_User_extensions_Thread_restart+0x28>
200abec: c2 04 20 1c ld [ %l0 + 0x1c ], %g1
200abf0: 81 c7 e0 08 ret
200abf4: 81 e8 00 00 restore
02009e9c <_User_extensions_Thread_start>:
#include <rtems/score/userext.h>
void _User_extensions_Thread_start (
Thread_Control *the_thread
)
{
2009e9c: 9d e3 bf a0 save %sp, -96, %sp
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
2009ea0: 23 00 80 77 sethi %hi(0x201dc00), %l1
2009ea4: e0 04 61 e8 ld [ %l1 + 0x1e8 ], %l0 ! 201dde8 <_User_extensions_List>
2009ea8: a2 14 61 e8 or %l1, 0x1e8, %l1
2009eac: a2 04 60 04 add %l1, 4, %l1
2009eb0: 80 a4 00 11 cmp %l0, %l1
2009eb4: 02 80 00 0d be 2009ee8 <_User_extensions_Thread_start+0x4c><== NEVER TAKEN
2009eb8: 25 00 80 77 sethi %hi(0x201dc00), %l2
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_start != NULL )
(*the_extension->Callouts.thread_start)(
2009ebc: a4 14 a0 70 or %l2, 0x70, %l2 ! 201dc70 <_Thread_Executing>
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_start != NULL )
2009ec0: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
2009ec4: 80 a0 60 00 cmp %g1, 0
2009ec8: 02 80 00 04 be 2009ed8 <_User_extensions_Thread_start+0x3c>
2009ecc: 92 10 00 18 mov %i0, %o1
(*the_extension->Callouts.thread_start)(
2009ed0: 9f c0 40 00 call %g1
2009ed4: d0 04 80 00 ld [ %l2 ], %o0
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
2009ed8: e0 04 00 00 ld [ %l0 ], %l0
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
2009edc: 80 a4 00 11 cmp %l0, %l1
2009ee0: 32 bf ff f9 bne,a 2009ec4 <_User_extensions_Thread_start+0x28>
2009ee4: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
2009ee8: 81 c7 e0 08 ret
2009eec: 81 e8 00 00 restore
02009ef0 <_User_extensions_Thread_switch>:
void _User_extensions_Thread_switch (
Thread_Control *executing,
Thread_Control *heir
)
{
2009ef0: 9d e3 bf a0 save %sp, -96, %sp
Chain_Node *the_node;
User_extensions_Switch_control *the_extension_switch;
for ( the_node = _User_extensions_Switches_list.first ;
2009ef4: 23 00 80 76 sethi %hi(0x201d800), %l1
2009ef8: e0 04 63 b4 ld [ %l1 + 0x3b4 ], %l0 ! 201dbb4 <_User_extensions_Switches_list>
2009efc: a2 14 63 b4 or %l1, 0x3b4, %l1
2009f00: a2 04 60 04 add %l1, 4, %l1
2009f04: 80 a4 00 11 cmp %l0, %l1
2009f08: 02 80 00 0a be 2009f30 <_User_extensions_Thread_switch+0x40><== NEVER TAKEN
2009f0c: 01 00 00 00 nop
!_Chain_Is_tail( &_User_extensions_Switches_list, the_node ) ;
the_node = the_node->next ) {
the_extension_switch = (User_extensions_Switch_control *) the_node;
(*the_extension_switch->thread_switch)( executing, heir );
2009f10: c2 04 20 08 ld [ %l0 + 8 ], %g1
2009f14: 90 10 00 18 mov %i0, %o0
2009f18: 9f c0 40 00 call %g1
2009f1c: 92 10 00 19 mov %i1, %o1
Chain_Node *the_node;
User_extensions_Switch_control *the_extension_switch;
for ( the_node = _User_extensions_Switches_list.first ;
!_Chain_Is_tail( &_User_extensions_Switches_list, the_node ) ;
the_node = the_node->next ) {
2009f20: e0 04 00 00 ld [ %l0 ], %l0
)
{
Chain_Node *the_node;
User_extensions_Switch_control *the_extension_switch;
for ( the_node = _User_extensions_Switches_list.first ;
2009f24: 80 a4 00 11 cmp %l0, %l1
2009f28: 32 bf ff fb bne,a 2009f14 <_User_extensions_Thread_switch+0x24>
2009f2c: c2 04 20 08 ld [ %l0 + 8 ], %g1
2009f30: 81 c7 e0 08 ret
2009f34: 81 e8 00 00 restore
0200c164 <_Watchdog_Adjust>:
void _Watchdog_Adjust(
Chain_Control *header,
Watchdog_Adjust_directions direction,
Watchdog_Interval units
)
{
200c164: 9d e3 bf a0 save %sp, -96, %sp
ISR_Level level;
_ISR_Disable( level );
200c168: 7f ff db ac call 2003018 <sparc_disable_interrupts>
200c16c: 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));
200c170: 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;
200c174: 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 ) ) {
200c178: 80 a0 40 11 cmp %g1, %l1
200c17c: 02 80 00 1f be 200c1f8 <_Watchdog_Adjust+0x94>
200c180: 80 a6 60 00 cmp %i1, 0
switch ( direction ) {
200c184: 12 80 00 1f bne 200c200 <_Watchdog_Adjust+0x9c>
200c188: 80 a6 60 01 cmp %i1, 1
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
break;
case WATCHDOG_FORWARD:
while ( units ) {
200c18c: 80 a6 a0 00 cmp %i2, 0
200c190: 02 80 00 1a be 200c1f8 <_Watchdog_Adjust+0x94> <== NEVER TAKEN
200c194: 01 00 00 00 nop
if ( units < _Watchdog_First( header )->delta_interval ) {
200c198: f2 00 60 10 ld [ %g1 + 0x10 ], %i1
200c19c: 80 a6 80 19 cmp %i2, %i1
200c1a0: 1a 80 00 0b bcc 200c1cc <_Watchdog_Adjust+0x68> <== ALWAYS TAKEN
200c1a4: a4 10 20 01 mov 1, %l2
_Watchdog_First( header )->delta_interval -= units;
200c1a8: 10 80 00 1d b 200c21c <_Watchdog_Adjust+0xb8> <== NOT EXECUTED
200c1ac: b4 26 40 1a sub %i1, %i2, %i2 <== NOT EXECUTED
switch ( direction ) {
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
break;
case WATCHDOG_FORWARD:
while ( units ) {
200c1b0: b4 a6 80 19 subcc %i2, %i1, %i2
200c1b4: 02 80 00 11 be 200c1f8 <_Watchdog_Adjust+0x94> <== NEVER TAKEN
200c1b8: 01 00 00 00 nop
if ( units < _Watchdog_First( header )->delta_interval ) {
200c1bc: f2 00 60 10 ld [ %g1 + 0x10 ], %i1
200c1c0: 80 a6 40 1a cmp %i1, %i2
200c1c4: 38 80 00 16 bgu,a 200c21c <_Watchdog_Adjust+0xb8>
200c1c8: b4 26 40 1a sub %i1, %i2, %i2
_Watchdog_First( header )->delta_interval -= units;
break;
} else {
units -= _Watchdog_First( header )->delta_interval;
_Watchdog_First( header )->delta_interval = 1;
200c1cc: e4 20 60 10 st %l2, [ %g1 + 0x10 ]
_ISR_Enable( level );
200c1d0: 7f ff db 96 call 2003028 <sparc_enable_interrupts>
200c1d4: 01 00 00 00 nop
_Watchdog_Tickle( header );
200c1d8: 40 00 00 b2 call 200c4a0 <_Watchdog_Tickle>
200c1dc: 90 10 00 10 mov %l0, %o0
_ISR_Disable( level );
200c1e0: 7f ff db 8e call 2003018 <sparc_disable_interrupts>
200c1e4: 01 00 00 00 nop
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
200c1e8: c4 04 00 00 ld [ %l0 ], %g2
if ( _Chain_Is_empty( header ) )
200c1ec: 80 a4 40 02 cmp %l1, %g2
200c1f0: 12 bf ff f0 bne 200c1b0 <_Watchdog_Adjust+0x4c>
200c1f4: 82 10 00 02 mov %g2, %g1
}
break;
}
}
_ISR_Enable( level );
200c1f8: 7f ff db 8c call 2003028 <sparc_enable_interrupts>
200c1fc: 91 e8 00 08 restore %g0, %o0, %o0
* unmodified across that call.
*
* Till Straumann, 7/2003
*/
if ( !_Chain_Is_empty( header ) ) {
switch ( direction ) {
200c200: 12 bf ff fe bne 200c1f8 <_Watchdog_Adjust+0x94> <== NEVER TAKEN
200c204: 01 00 00 00 nop
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
200c208: c4 00 60 10 ld [ %g1 + 0x10 ], %g2
200c20c: b4 00 80 1a add %g2, %i2, %i2
200c210: f4 20 60 10 st %i2, [ %g1 + 0x10 ]
}
break;
}
}
_ISR_Enable( level );
200c214: 7f ff db 85 call 2003028 <sparc_enable_interrupts>
200c218: 91 e8 00 08 restore %g0, %o0, %o0
break;
case WATCHDOG_FORWARD:
while ( units ) {
if ( units < _Watchdog_First( header )->delta_interval ) {
_Watchdog_First( header )->delta_interval -= units;
break;
200c21c: 10 bf ff f7 b 200c1f8 <_Watchdog_Adjust+0x94>
200c220: f4 20 60 10 st %i2, [ %g1 + 0x10 ]
0200a0dc <_Watchdog_Remove>:
*/
Watchdog_States _Watchdog_Remove(
Watchdog_Control *the_watchdog
)
{
200a0dc: 9d e3 bf a0 save %sp, -96, %sp
ISR_Level level;
Watchdog_States previous_state;
Watchdog_Control *next_watchdog;
_ISR_Disable( level );
200a0e0: 7f ff df f1 call 20020a4 <sparc_disable_interrupts>
200a0e4: 01 00 00 00 nop
previous_state = the_watchdog->state;
200a0e8: e0 06 20 08 ld [ %i0 + 8 ], %l0
switch ( previous_state ) {
200a0ec: 80 a4 20 01 cmp %l0, 1
200a0f0: 02 80 00 2a be 200a198 <_Watchdog_Remove+0xbc>
200a0f4: 03 00 80 77 sethi %hi(0x201dc00), %g1
200a0f8: 1a 80 00 09 bcc 200a11c <_Watchdog_Remove+0x40>
200a0fc: 80 a4 20 03 cmp %l0, 3
_Watchdog_Sync_level = _ISR_Nest_level;
_Chain_Extract_unprotected( &the_watchdog->Node );
break;
}
the_watchdog->stop_time = _Watchdog_Ticks_since_boot;
200a100: 03 00 80 77 sethi %hi(0x201dc00), %g1
200a104: c2 00 61 04 ld [ %g1 + 0x104 ], %g1 ! 201dd04 <_Watchdog_Ticks_since_boot>
200a108: c2 26 20 18 st %g1, [ %i0 + 0x18 ]
_ISR_Enable( level );
200a10c: 7f ff df ea call 20020b4 <sparc_enable_interrupts>
200a110: b0 10 00 10 mov %l0, %i0
return( previous_state );
}
200a114: 81 c7 e0 08 ret
200a118: 81 e8 00 00 restore
Watchdog_States previous_state;
Watchdog_Control *next_watchdog;
_ISR_Disable( level );
previous_state = the_watchdog->state;
switch ( previous_state ) {
200a11c: 18 bf ff fa bgu 200a104 <_Watchdog_Remove+0x28> <== NEVER TAKEN
200a120: 03 00 80 77 sethi %hi(0x201dc00), %g1
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_Next(
Watchdog_Control *the_watchdog
)
{
return ( (Watchdog_Control *) the_watchdog->Node.next );
200a124: c2 06 00 00 ld [ %i0 ], %g1
break;
case WATCHDOG_ACTIVE:
case WATCHDOG_REMOVE_IT:
the_watchdog->state = WATCHDOG_INACTIVE;
200a128: c0 26 20 08 clr [ %i0 + 8 ]
next_watchdog = _Watchdog_Next( the_watchdog );
if ( _Watchdog_Next(next_watchdog) )
200a12c: c4 00 40 00 ld [ %g1 ], %g2
200a130: 80 a0 a0 00 cmp %g2, 0
200a134: 02 80 00 07 be 200a150 <_Watchdog_Remove+0x74>
200a138: 05 00 80 77 sethi %hi(0x201dc00), %g2
next_watchdog->delta_interval += the_watchdog->delta_interval;
200a13c: c6 00 60 10 ld [ %g1 + 0x10 ], %g3
200a140: c4 06 20 10 ld [ %i0 + 0x10 ], %g2
200a144: 84 00 c0 02 add %g3, %g2, %g2
200a148: c4 20 60 10 st %g2, [ %g1 + 0x10 ]
if ( _Watchdog_Sync_count )
200a14c: 05 00 80 77 sethi %hi(0x201dc00), %g2
200a150: c4 00 a1 00 ld [ %g2 + 0x100 ], %g2 ! 201dd00 <_Watchdog_Sync_count>
200a154: 80 a0 a0 00 cmp %g2, 0
200a158: 22 80 00 07 be,a 200a174 <_Watchdog_Remove+0x98>
200a15c: c4 06 20 04 ld [ %i0 + 4 ], %g2
_Watchdog_Sync_level = _ISR_Nest_level;
200a160: 05 00 80 77 sethi %hi(0x201dc00), %g2
200a164: c6 00 a0 4c ld [ %g2 + 0x4c ], %g3 ! 201dc4c <_ISR_Nest_level>
200a168: 05 00 80 77 sethi %hi(0x201dc00), %g2
200a16c: c6 20 a0 6c st %g3, [ %g2 + 0x6c ] ! 201dc6c <_Watchdog_Sync_level>
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
200a170: c4 06 20 04 ld [ %i0 + 4 ], %g2
next->previous = previous;
previous->next = next;
200a174: c2 20 80 00 st %g1, [ %g2 ]
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
next->previous = previous;
200a178: c4 20 60 04 st %g2, [ %g1 + 4 ]
_Chain_Extract_unprotected( &the_watchdog->Node );
break;
}
the_watchdog->stop_time = _Watchdog_Ticks_since_boot;
200a17c: 03 00 80 77 sethi %hi(0x201dc00), %g1
200a180: c2 00 61 04 ld [ %g1 + 0x104 ], %g1 ! 201dd04 <_Watchdog_Ticks_since_boot>
200a184: c2 26 20 18 st %g1, [ %i0 + 0x18 ]
_ISR_Enable( level );
200a188: 7f ff df cb call 20020b4 <sparc_enable_interrupts>
200a18c: b0 10 00 10 mov %l0, %i0
return( previous_state );
}
200a190: 81 c7 e0 08 ret
200a194: 81 e8 00 00 restore
_Watchdog_Sync_level = _ISR_Nest_level;
_Chain_Extract_unprotected( &the_watchdog->Node );
break;
}
the_watchdog->stop_time = _Watchdog_Ticks_since_boot;
200a198: c2 00 61 04 ld [ %g1 + 0x104 ], %g1
/*
* It is not actually on the chain so just change the state and
* the Insert operation we interrupted will be aborted.
*/
the_watchdog->state = WATCHDOG_INACTIVE;
200a19c: c0 26 20 08 clr [ %i0 + 8 ]
_Watchdog_Sync_level = _ISR_Nest_level;
_Chain_Extract_unprotected( &the_watchdog->Node );
break;
}
the_watchdog->stop_time = _Watchdog_Ticks_since_boot;
200a1a0: c2 26 20 18 st %g1, [ %i0 + 0x18 ]
_ISR_Enable( level );
200a1a4: 7f ff df c4 call 20020b4 <sparc_enable_interrupts>
200a1a8: b0 10 00 10 mov %l0, %i0
return( previous_state );
}
200a1ac: 81 c7 e0 08 ret
200a1b0: 81 e8 00 00 restore
0200b930 <_Watchdog_Report_chain>:
void _Watchdog_Report_chain(
const char *name,
Chain_Control *header
)
{
200b930: 9d e3 bf a0 save %sp, -96, %sp
ISR_Level level;
Chain_Node *node;
_ISR_Disable( level );
200b934: 7f ff dc 80 call 2002b34 <sparc_disable_interrupts>
200b938: a0 10 00 18 mov %i0, %l0
200b93c: b0 10 00 08 mov %o0, %i0
printk( "Watchdog Chain: %s %p\n", name, header );
200b940: 11 00 80 86 sethi %hi(0x2021800), %o0
200b944: 94 10 00 19 mov %i1, %o2
200b948: 90 12 22 40 or %o0, 0x240, %o0
200b94c: 7f ff e4 4f call 2004a88 <printk>
200b950: 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));
200b954: 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;
200b958: b2 06 60 04 add %i1, 4, %i1
if ( !_Chain_Is_empty( header ) ) {
200b95c: 80 a4 40 19 cmp %l1, %i1
200b960: 02 80 00 0f be 200b99c <_Watchdog_Report_chain+0x6c>
200b964: 11 00 80 86 sethi %hi(0x2021800), %o0
node != _Chain_Tail(header) ;
node = node->next )
{
Watchdog_Control *watch = (Watchdog_Control *) node;
_Watchdog_Report( NULL, watch );
200b968: 92 10 00 11 mov %l1, %o1
200b96c: 40 00 00 11 call 200b9b0 <_Watchdog_Report>
200b970: 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 )
200b974: 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 ;
200b978: 80 a4 40 19 cmp %l1, %i1
200b97c: 12 bf ff fc bne 200b96c <_Watchdog_Report_chain+0x3c> <== NEVER TAKEN
200b980: 92 10 00 11 mov %l1, %o1
{
Watchdog_Control *watch = (Watchdog_Control *) node;
_Watchdog_Report( NULL, watch );
}
printk( "== end of %s \n", name );
200b984: 92 10 00 10 mov %l0, %o1
200b988: 11 00 80 86 sethi %hi(0x2021800), %o0
200b98c: 7f ff e4 3f call 2004a88 <printk>
200b990: 90 12 22 58 or %o0, 0x258, %o0 ! 2021a58 <_Status_Object_name_errors_to_status+0x30>
} else {
printk( "Chain is empty\n" );
}
_ISR_Enable( level );
200b994: 7f ff dc 6c call 2002b44 <sparc_enable_interrupts>
200b998: 81 e8 00 00 restore
_Watchdog_Report( NULL, watch );
}
printk( "== end of %s \n", name );
} else {
printk( "Chain is empty\n" );
200b99c: 7f ff e4 3b call 2004a88 <printk>
200b9a0: 90 12 22 68 or %o0, 0x268, %o0
}
_ISR_Enable( level );
200b9a4: 7f ff dc 68 call 2002b44 <sparc_enable_interrupts>
200b9a8: 81 e8 00 00 restore
02023970 <__kill>:
#endif
int __kill( pid_t pid, int sig )
{
return 0;
}
2023970: 81 c3 e0 08 retl <== NOT EXECUTED
2023974: 90 10 20 00 clr %o0 <== NOT EXECUTED
0201b13c <_exit>:
/*
* If the toolset uses init/fini sections, then we need to
* run the global destructors now.
*/
#if defined(__USE_INIT_FINI__)
FINI_SYMBOL();
201b13c: 9d e3 bf a0 save %sp, -96, %sp
201b140: 40 00 07 b5 call 201d014 <_fini>
201b144: 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();
201b148: 7f ff ff e2 call 201b0d0 <libc_wrapup>
201b14c: 01 00 00 00 nop
rtems_shutdown_executive(status);
201b150: 40 00 00 50 call 201b290 <rtems_shutdown_executive>
201b154: 90 10 00 18 mov %i0, %o0
201b158: 30 80 00 00 b,a 201b158 <_exit+0x1c> <== NOT EXECUTED
02029904 <_fat_block_read>:
uint32_t start,
uint32_t offset,
uint32_t count,
void *buff
)
{
2029904: 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;
2029908: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
uint32_t blk = start;
uint32_t ofs = offset;
rtems_bdbuf_buffer *block = NULL;
uint32_t c = 0;
while (count > 0)
202990c: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2029910: 02 80 00 1d be 2029984 <_fat_block_read+0x80> <== NOT EXECUTED
2029914: b0 10 20 00 clr %i0 <== NOT EXECUTED
int rc = RC_OK;
register fat_fs_info_t *fs_info = mt_entry->fs_info;
ssize_t cmpltd = 0;
uint32_t blk = start;
uint32_t ofs = offset;
rtems_bdbuf_buffer *block = NULL;
2029918: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
202991c: 10 80 00 10 b 202995c <_fat_block_read+0x58> <== NOT EXECUTED
2029920: a2 07 bf fc add %fp, -4, %l1 <== 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));
2029924: e4 14 00 00 lduh [ %l0 ], %l2 <== NOT EXECUTED
2029928: a4 24 80 1a sub %l2, %i2, %l2 <== NOT EXECUTED
202992c: 80 a4 80 1b cmp %l2, %i3 <== NOT EXECUTED
2029930: 08 80 00 03 bleu 202993c <_fat_block_read+0x38> <== NOT EXECUTED
2029934: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2029938: a4 10 00 1b mov %i3, %l2 <== NOT EXECUTED
memcpy((buff + cmpltd), (block->buffer + ofs), c);
202993c: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
2029940: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2029944: 40 00 8a 0c call 204c174 <memcpy> <== NOT EXECUTED
2029948: 92 02 40 1a add %o1, %i2, %o1 <== NOT EXECUTED
uint32_t blk = start;
uint32_t ofs = offset;
rtems_bdbuf_buffer *block = NULL;
uint32_t c = 0;
while (count > 0)
202994c: b6 a6 c0 12 subcc %i3, %l2, %i3 <== NOT EXECUTED
2029950: 02 80 00 0d be 2029984 <_fat_block_read+0x80> <== NOT EXECUTED
2029954: b0 04 80 18 add %l2, %i0, %i0 <== NOT EXECUTED
c = MIN(count, (fs_info->vol.bps - ofs));
memcpy((buff + cmpltd), (block->buffer + ofs), c);
count -= c;
cmpltd += c;
blk++;
2029958: b4 10 20 00 clr %i2 <== NOT EXECUTED
rtems_bdbuf_buffer *block = NULL;
uint32_t c = 0;
while (count > 0)
{
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block);
202995c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2029960: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
2029964: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2029968: 7f ff fe 6c call 2029318 <fat_buf_access> <== NOT EXECUTED
202996c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
c = MIN(count, (fs_info->vol.bps - ofs));
memcpy((buff + cmpltd), (block->buffer + ofs), c);
count -= c;
cmpltd += c;
blk++;
2029970: b2 06 60 01 inc %i1 <== NOT EXECUTED
uint32_t c = 0;
while (count > 0)
{
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block);
if (rc != RC_OK)
2029974: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029978: 02 bf ff eb be 2029924 <_fat_block_read+0x20> <== NOT EXECUTED
202997c: 90 07 00 18 add %i4, %i0, %o0 <== NOT EXECUTED
c = MIN(count, (fs_info->vol.bps - ofs));
memcpy((buff + cmpltd), (block->buffer + ofs), c);
count -= c;
cmpltd += c;
blk++;
2029980: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
ofs = 0;
}
return cmpltd;
}
2029984: 81 c7 e0 08 ret <== NOT EXECUTED
2029988: 81 e8 00 00 restore <== NOT EXECUTED
02029304 <_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);
2029304: d0 02 20 34 ld [ %o0 + 0x34 ], %o0 <== NOT EXECUTED
2029308: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
202930c: 7f ff ff 9c call 202917c <fat_buf_release> <== NOT EXECUTED
2029310: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02029538 <_fat_block_write>:
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t start,
uint32_t offset,
uint32_t count,
const void *buff)
{
2029538: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
202953c: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED
uint32_t blk = start;
uint32_t ofs = offset;
rtems_bdbuf_buffer *block = NULL;
uint32_t c = 0;
while(count > 0)
2029540: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2029544: 02 80 00 2a be 20295ec <_fat_block_write+0xb4> <== NOT EXECUTED
2029548: b0 10 20 00 clr %i0 <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
ssize_t cmpltd = 0;
uint32_t blk = start;
uint32_t ofs = offset;
rtems_bdbuf_buffer *block = NULL;
202954c: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
2029550: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
}
static inline void
fat_buf_mark_modified(fat_fs_info_t *fs_info)
{
fs_info->c.modified = true;
2029554: 10 80 00 13 b 20295a0 <_fat_block_write+0x68> <== NOT EXECUTED
2029558: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED
c = MIN(count, (fs_info->vol.bps - ofs));
if (c == fs_info->vol.bps)
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_GET, &block);
else
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block);
202955c: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
2029560: 7f ff ff 6e call 2029318 <fat_buf_access> <== NOT EXECUTED
2029564: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
if (rc != RC_OK)
return -1;
memcpy((block->buffer + ofs), (buff + cmpltd), c);
2029568: 92 07 00 18 add %i4, %i0, %o1 <== NOT EXECUTED
if (c == fs_info->vol.bps)
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_GET, &block);
else
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block);
if (rc != RC_OK)
202956c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029570: 12 80 00 1e bne 20295e8 <_fat_block_write+0xb0> <== NOT EXECUTED
2029574: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
return -1;
memcpy((block->buffer + ofs), (buff + cmpltd), c);
2029578: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
count -= c;
cmpltd +=c;
202957c: b0 04 00 18 add %l0, %i0, %i0 <== NOT EXECUTED
else
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block);
if (rc != RC_OK)
return -1;
memcpy((block->buffer + ofs), (buff + cmpltd), c);
2029580: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
count -= c;
cmpltd +=c;
blk++;
2029584: b2 06 60 01 inc %i1 <== NOT EXECUTED
else
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block);
if (rc != RC_OK)
return -1;
memcpy((block->buffer + ofs), (buff + cmpltd), c);
2029588: 40 00 8a fb call 204c174 <memcpy> <== NOT EXECUTED
202958c: 90 02 00 1a add %o0, %i2, %o0 <== NOT EXECUTED
uint32_t blk = start;
uint32_t ofs = offset;
rtems_bdbuf_buffer *block = NULL;
uint32_t c = 0;
while(count > 0)
2029590: b6 a6 c0 10 subcc %i3, %l0, %i3 <== NOT EXECUTED
2029594: 02 80 00 16 be 20295ec <_fat_block_write+0xb4> <== NOT EXECUTED
2029598: e6 2c 60 84 stb %l3, [ %l1 + 0x84 ] <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
count -= c;
cmpltd +=c;
blk++;
202959c: b4 10 20 00 clr %i2 <== NOT EXECUTED
rtems_bdbuf_buffer *block = NULL;
uint32_t c = 0;
while(count > 0)
{
c = MIN(count, (fs_info->vol.bps - ofs));
20295a0: c2 14 40 00 lduh [ %l1 ], %g1 <== NOT EXECUTED
20295a4: a0 20 40 1a sub %g1, %i2, %l0 <== NOT EXECUTED
20295a8: 80 a4 00 1b cmp %l0, %i3 <== NOT EXECUTED
20295ac: 08 80 00 03 bleu 20295b8 <_fat_block_write+0x80> <== NOT EXECUTED
20295b0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
20295b4: a0 10 00 1b mov %i3, %l0 <== NOT EXECUTED
if (c == fs_info->vol.bps)
20295b8: 80 a0 40 10 cmp %g1, %l0 <== NOT EXECUTED
20295bc: 32 bf ff e8 bne,a 202955c <_fat_block_write+0x24> <== NOT EXECUTED
20295c0: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_GET, &block);
20295c4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
20295c8: 94 10 20 02 mov 2, %o2 <== NOT EXECUTED
20295cc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
20295d0: 7f ff ff 52 call 2029318 <fat_buf_access> <== NOT EXECUTED
20295d4: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
else
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block);
if (rc != RC_OK)
return -1;
memcpy((block->buffer + ofs), (buff + cmpltd), c);
20295d8: 92 07 00 18 add %i4, %i0, %o1 <== NOT EXECUTED
if (c == fs_info->vol.bps)
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_GET, &block);
else
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block);
if (rc != RC_OK)
20295dc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20295e0: 02 bf ff e6 be 2029578 <_fat_block_write+0x40> <== NOT EXECUTED
20295e4: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
count -= c;
cmpltd +=c;
blk++;
20295e8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
ofs = 0;
}
return cmpltd;
}
20295ec: 81 c7 e0 08 ret <== NOT EXECUTED
20295f0: 81 e8 00 00 restore <== NOT EXECUTED
020452dc <_fcntl_r>:
int fd,
int cmd,
int arg
)
{
return fcntl( fd, cmd, arg );
20452dc: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED
20452e0: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED
20452e4: 94 10 00 0b mov %o3, %o2 <== NOT EXECUTED
20452e8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
20452ec: 7f ff ff 69 call 2045090 <fcntl> <== NOT EXECUTED
20452f0: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02023944 <_getpid_r>:
pid_t _getpid_r(
struct _reent *ptr __attribute__((unused))
)
{
return getpid();
}
2023944: 81 c3 e0 08 retl <== NOT EXECUTED
2023948: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED
02002dfc <_gettimeofday>:
int _gettimeofday(
struct timeval *tp,
struct timezone *tzp
)
{
return gettimeofday( tp, tzp );
2002dfc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2002e00: 7f ff ff e6 call 2002d98 <gettimeofday> <== NOT EXECUTED
2002e04: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02023968 <_kill_r>:
#include <reent.h>
int _kill_r( struct _reent *ptr, pid_t pid, int sig )
{
return 0;
}
2023968: 81 c3 e0 08 retl <== NOT EXECUTED
202396c: 90 10 20 00 clr %o0 <== NOT EXECUTED
0202d5a8 <_link_r>:
struct _reent *ptr __attribute__((unused)),
const char *existing,
const char *new
)
{
return link( existing, new );
202d5a8: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED
202d5ac: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED
202d5b0: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
202d5b4: 7f ff ff 70 call 202d374 <link> <== NOT EXECUTED
202d5b8: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
0202d880 <_lstat_r>:
struct _reent *ptr __attribute__((unused)),
const char *path,
struct stat *buf
)
{
return _STAT_NAME( path, buf );
202d880: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED
202d884: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED
202d888: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
202d88c: 7f ff ff b1 call 202d750 <lstat> <== NOT EXECUTED
202d890: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
0201b25c <_realloc_r>:
struct _reent *ignored __attribute__((unused)),
void *ptr,
size_t size
)
{
return realloc( ptr, size );
201b25c: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED
201b260: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED
201b264: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
201b268: 40 00 00 17 call 201b2c4 <realloc> <== NOT EXECUTED
201b26c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02062820 <_rename_r>:
int _rename_r(
struct _reent *ptr __attribute__((unused)),
const char *old,
const char *new
)
{
2062820: 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 );
2062824: 7f fe 97 bb call 2008710 <rtems_filesystem_dirname>
2062828: 90 10 00 19 mov %i1, %o0
if ( old_parent_pathlen == 0 )
206282c: 80 a2 20 00 cmp %o0, 0
2062830: 12 80 00 9d bne 2062aa4 <_rename_r+0x284>
2062834: a0 07 bf d0 add %fp, -48, %l0
rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );
2062838: 90 10 00 19 mov %i1, %o0
206283c: 92 07 bf fc add %fp, -4, %o1
2062840: 94 10 00 10 mov %l0, %o2
2062844: 7f fe 9f 29 call 200a4e8 <rtems_filesystem_get_start_loc>
2062848: a2 10 20 00 clr %l1
206284c: a4 10 20 00 clr %l2
/*
* Start from the parent to find the node that should be under it.
*/
old_loc = old_parent_loc;
2062850: c2 07 bf d0 ld [ %fp + -48 ], %g1
name = old + old_parent_pathlen;
2062854: b2 06 40 11 add %i1, %l1, %i1
/*
* Start from the parent to find the node that should be under it.
*/
old_loc = old_parent_loc;
2062858: c2 27 bf e4 st %g1, [ %fp + -28 ]
206285c: c2 07 bf d4 ld [ %fp + -44 ], %g1
name = old + old_parent_pathlen;
2062860: f2 27 bf f8 st %i1, [ %fp + -8 ]
/*
* Start from the parent to find the node that should be under it.
*/
old_loc = old_parent_loc;
2062864: c2 27 bf e8 st %g1, [ %fp + -24 ]
2062868: c2 07 bf d8 ld [ %fp + -40 ], %g1
name = old + old_parent_pathlen;
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
206286c: 90 10 00 19 mov %i1, %o0
/*
* Start from the parent to find the node that should be under it.
*/
old_loc = old_parent_loc;
2062870: c2 27 bf ec st %g1, [ %fp + -20 ]
2062874: c2 07 bf dc ld [ %fp + -36 ], %g1
2062878: c2 27 bf f0 st %g1, [ %fp + -16 ]
206287c: c2 07 bf e0 ld [ %fp + -32 ], %g1
name = old + old_parent_pathlen;
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
2062880: 7f ff b4 99 call 204fae4 <strlen>
2062884: c2 27 bf f4 st %g1, [ %fp + -12 ]
2062888: 92 10 00 08 mov %o0, %o1
206288c: 7f fe 97 86 call 20086a4 <rtems_filesystem_prefix_separators>
2062890: 90 10 00 19 mov %i1, %o0
2062894: b2 06 40 08 add %i1, %o0, %i1
2062898: f2 27 bf f8 st %i1, [ %fp + -8 ]
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
206289c: 7f ff b4 92 call 204fae4 <strlen>
20628a0: 90 10 00 19 mov %i1, %o0
20628a4: 94 10 20 00 clr %o2
20628a8: 92 10 00 08 mov %o0, %o1
20628ac: 98 10 20 00 clr %o4
20628b0: 90 10 00 19 mov %i1, %o0
20628b4: b2 07 bf e4 add %fp, -28, %i1
20628b8: 7f fe 97 a9 call 200875c <rtems_filesystem_evaluate_relative_path>
20628bc: 96 10 00 19 mov %i1, %o3
0, &old_loc, false );
if ( result != 0 ) {
20628c0: 80 a2 20 00 cmp %o0, 0
20628c4: 12 80 00 41 bne 20629c8 <_rename_r+0x1a8>
20628c8: a2 07 bf bc add %fp, -68, %l1
/*
* Get the parent of the new node we are renaming to.
*/
rtems_filesystem_get_start_loc( new, &i, &new_parent_loc );
20628cc: 90 10 00 1a mov %i2, %o0
20628d0: 92 07 bf fc add %fp, -4, %o1
20628d4: 7f fe 9f 05 call 200a4e8 <rtems_filesystem_get_start_loc>
20628d8: 94 10 00 11 mov %l1, %o2
if ( !new_parent_loc.ops->evalformake_h ) {
20628dc: c2 07 bf c8 ld [ %fp + -56 ], %g1
20628e0: c2 00 60 04 ld [ %g1 + 4 ], %g1
20628e4: 80 a0 60 00 cmp %g1, 0
20628e8: 02 80 00 a4 be 2062b78 <_rename_r+0x358>
20628ec: 92 10 00 11 mov %l1, %o1
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 );
20628f0: d0 07 bf fc ld [ %fp + -4 ], %o0
20628f4: 90 06 80 08 add %i2, %o0, %o0
20628f8: 9f c0 40 00 call %g1
20628fc: 94 07 bf f8 add %fp, -8, %o2
if ( result != 0 ) {
2062900: 80 a2 20 00 cmp %o0, 0
2062904: 12 80 00 74 bne 2062ad4 <_rename_r+0x2b4>
2062908: c2 07 bf cc ld [ %fp + -52 ], %g1
/*
* 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 ) {
206290c: c4 07 bf e0 ld [ %fp + -32 ], %g2
2062910: 80 a0 80 01 cmp %g2, %g1
2062914: 12 80 00 32 bne 20629dc <_rename_r+0x1bc>
2062918: c4 07 bf c8 ld [ %fp + -56 ], %g2
rtems_filesystem_freenode( &old_parent_loc );
rtems_filesystem_freenode( &old_loc );
rtems_set_errno_and_return_minus_one( EXDEV );
}
if ( !new_parent_loc.ops->rename_h ) {
206291c: c2 00 a0 40 ld [ %g2 + 0x40 ], %g1
2062920: 80 a0 60 00 cmp %g1, 0
2062924: 02 80 00 8f be 2062b60 <_rename_r+0x340>
2062928: d6 07 bf f8 ld [ %fp + -8 ], %o3
rtems_filesystem_freenode( &old_parent_loc );
rtems_filesystem_freenode( &old_loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name );
206292c: 90 10 00 10 mov %l0, %o0
2062930: 92 10 00 19 mov %i1, %o1
2062934: 9f c0 40 00 call %g1
2062938: 94 10 00 11 mov %l1, %o2
rtems_filesystem_freenode( &new_parent_loc );
206293c: c2 07 bf c8 ld [ %fp + -56 ], %g1
2062940: 80 a0 60 00 cmp %g1, 0
2062944: 02 80 00 08 be 2062964 <_rename_r+0x144> <== NEVER TAKEN
2062948: b0 10 00 08 mov %o0, %i0
206294c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2062950: 80 a0 60 00 cmp %g1, 0
2062954: 02 80 00 05 be 2062968 <_rename_r+0x148> <== NEVER TAKEN
2062958: 80 8c a0 ff btst 0xff, %l2
206295c: 9f c0 40 00 call %g1
2062960: 90 10 00 11 mov %l1, %o0
if ( free_old_parentloc )
2062964: 80 8c a0 ff btst 0xff, %l2
2062968: 02 80 00 0d be 206299c <_rename_r+0x17c>
206296c: c2 07 bf f0 ld [ %fp + -16 ], %g1
rtems_filesystem_freenode( &old_parent_loc );
2062970: c2 07 bf dc ld [ %fp + -36 ], %g1
2062974: 80 a0 60 00 cmp %g1, 0
2062978: 22 80 00 09 be,a 206299c <_rename_r+0x17c> <== NEVER TAKEN
206297c: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
2062980: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2062984: 80 a0 60 00 cmp %g1, 0
2062988: 22 80 00 05 be,a 206299c <_rename_r+0x17c> <== NEVER TAKEN
206298c: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
2062990: 9f c0 40 00 call %g1
2062994: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &old_loc );
2062998: c2 07 bf f0 ld [ %fp + -16 ], %g1
206299c: 80 a0 60 00 cmp %g1, 0
20629a0: 02 80 00 91 be 2062be4 <_rename_r+0x3c4> <== NEVER TAKEN
20629a4: 01 00 00 00 nop
20629a8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
20629ac: 80 a0 60 00 cmp %g1, 0
20629b0: 02 80 00 8d be 2062be4 <_rename_r+0x3c4> <== NEVER TAKEN
20629b4: 01 00 00 00 nop
20629b8: 9f c0 40 00 call %g1
20629bc: 90 10 00 19 mov %i1, %o0
20629c0: 81 c7 e0 08 ret
20629c4: 81 e8 00 00 restore
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
0, &old_loc, false );
if ( result != 0 ) {
if ( free_old_parentloc )
20629c8: 80 8c a0 ff btst 0xff, %l2
20629cc: 12 80 00 2b bne 2062a78 <_rename_r+0x258> <== ALWAYS TAKEN
20629d0: c2 07 bf dc ld [ %fp + -36 ], %g1
if ( free_old_parentloc )
rtems_filesystem_freenode( &old_parent_loc );
rtems_filesystem_freenode( &old_loc );
return result;
}
20629d4: 81 c7 e0 08 ret <== NOT EXECUTED
20629d8: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
* 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 ) {
rtems_filesystem_freenode( &new_parent_loc );
20629dc: c2 07 bf c8 ld [ %fp + -56 ], %g1
20629e0: 80 a0 60 00 cmp %g1, 0
20629e4: 02 80 00 09 be 2062a08 <_rename_r+0x1e8> <== NEVER TAKEN
20629e8: 80 8c a0 ff btst 0xff, %l2
20629ec: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
20629f0: 80 a0 60 00 cmp %g1, 0
20629f4: 02 80 00 05 be 2062a08 <_rename_r+0x1e8> <== NEVER TAKEN
20629f8: 80 8c a0 ff btst 0xff, %l2
20629fc: 9f c0 40 00 call %g1
2062a00: 90 10 00 11 mov %l1, %o0
if ( free_old_parentloc )
2062a04: 80 8c a0 ff btst 0xff, %l2
2062a08: 02 80 00 0d be 2062a3c <_rename_r+0x21c>
2062a0c: c2 07 bf f0 ld [ %fp + -16 ], %g1
rtems_filesystem_freenode( &old_parent_loc );
2062a10: c2 07 bf dc ld [ %fp + -36 ], %g1
2062a14: 80 a0 60 00 cmp %g1, 0
2062a18: 22 80 00 09 be,a 2062a3c <_rename_r+0x21c> <== NEVER TAKEN
2062a1c: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
2062a20: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2062a24: 80 a0 60 00 cmp %g1, 0
2062a28: 22 80 00 05 be,a 2062a3c <_rename_r+0x21c> <== NEVER TAKEN
2062a2c: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
2062a30: 9f c0 40 00 call %g1
2062a34: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &old_loc );
2062a38: c2 07 bf f0 ld [ %fp + -16 ], %g1
2062a3c: 80 a0 60 00 cmp %g1, 0
2062a40: 02 80 00 08 be 2062a60 <_rename_r+0x240> <== NEVER TAKEN
2062a44: 01 00 00 00 nop
2062a48: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2062a4c: 80 a0 60 00 cmp %g1, 0
2062a50: 02 80 00 04 be 2062a60 <_rename_r+0x240> <== NEVER TAKEN
2062a54: 01 00 00 00 nop
2062a58: 9f c0 40 00 call %g1
2062a5c: 90 10 00 19 mov %i1, %o0
rtems_set_errno_and_return_minus_one( EXDEV );
2062a60: 7f ff 98 79 call 2048c44 <__errno>
2062a64: b0 10 3f ff mov -1, %i0
2062a68: 82 10 20 12 mov 0x12, %g1
2062a6c: c2 22 00 00 st %g1, [ %o0 ]
2062a70: 81 c7 e0 08 ret
2062a74: 81 e8 00 00 restore
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
0, &old_loc, false );
if ( result != 0 ) {
if ( free_old_parentloc )
rtems_filesystem_freenode( &old_parent_loc );
2062a78: 80 a0 60 00 cmp %g1, 0
2062a7c: 02 bf ff d1 be 20629c0 <_rename_r+0x1a0> <== NEVER TAKEN
2062a80: b0 10 3f ff mov -1, %i0
2062a84: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2062a88: 80 a0 60 00 cmp %g1, 0
2062a8c: 02 bf ff cd be 20629c0 <_rename_r+0x1a0> <== NEVER TAKEN
2062a90: 90 10 00 10 mov %l0, %o0
2062a94: 9f c0 40 00 call %g1
2062a98: 01 00 00 00 nop
2062a9c: 81 c7 e0 08 ret
2062aa0: 81 e8 00 00 restore
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,
2062aa4: a2 10 00 08 mov %o0, %l1
2062aa8: 90 10 00 19 mov %i1, %o0
2062aac: 92 10 00 11 mov %l1, %o1
2062ab0: 94 10 20 02 mov 2, %o2
2062ab4: 96 10 00 10 mov %l0, %o3
2062ab8: 7f fe 97 6a call 2008860 <rtems_filesystem_evaluate_path>
2062abc: 98 10 20 00 clr %o4
RTEMS_LIBIO_PERMS_WRITE,
&old_parent_loc,
false );
if ( result != 0 )
2062ac0: 80 a2 20 00 cmp %o0, 0
2062ac4: 12 bf ff c4 bne 20629d4 <_rename_r+0x1b4> <== NEVER TAKEN
2062ac8: a4 10 20 01 mov 1, %l2
/*
* Start from the parent to find the node that should be under it.
*/
old_loc = old_parent_loc;
2062acc: 10 bf ff 62 b 2062854 <_rename_r+0x34>
2062ad0: c2 07 bf d0 ld [ %fp + -48 ], %g1
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name );
if ( result != 0 ) {
rtems_filesystem_freenode( &new_parent_loc );
2062ad4: c2 07 bf c8 ld [ %fp + -56 ], %g1
2062ad8: 80 a0 60 00 cmp %g1, 0
2062adc: 02 80 00 09 be 2062b00 <_rename_r+0x2e0> <== NEVER TAKEN
2062ae0: 80 8c a0 ff btst 0xff, %l2
2062ae4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2062ae8: 80 a0 60 00 cmp %g1, 0
2062aec: 02 80 00 05 be 2062b00 <_rename_r+0x2e0> <== NEVER TAKEN
2062af0: 80 8c a0 ff btst 0xff, %l2
2062af4: 9f c0 40 00 call %g1
2062af8: 90 10 00 11 mov %l1, %o0
if ( free_old_parentloc )
2062afc: 80 8c a0 ff btst 0xff, %l2
2062b00: 02 80 00 0d be 2062b34 <_rename_r+0x314> <== NEVER TAKEN
2062b04: c2 07 bf f0 ld [ %fp + -16 ], %g1
rtems_filesystem_freenode( &old_parent_loc );
2062b08: c2 07 bf dc ld [ %fp + -36 ], %g1
2062b0c: 80 a0 60 00 cmp %g1, 0
2062b10: 22 80 00 09 be,a 2062b34 <_rename_r+0x314> <== NEVER TAKEN
2062b14: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
2062b18: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2062b1c: 80 a0 60 00 cmp %g1, 0
2062b20: 22 80 00 05 be,a 2062b34 <_rename_r+0x314> <== NEVER TAKEN
2062b24: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
2062b28: 9f c0 40 00 call %g1
2062b2c: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &old_loc );
2062b30: c2 07 bf f0 ld [ %fp + -16 ], %g1
2062b34: 80 a0 60 00 cmp %g1, 0
2062b38: 02 bf ff a2 be 20629c0 <_rename_r+0x1a0> <== NEVER TAKEN
2062b3c: b0 10 3f ff mov -1, %i0
2062b40: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2062b44: 80 a0 60 00 cmp %g1, 0
2062b48: 02 bf ff 9e be 20629c0 <_rename_r+0x1a0> <== NEVER TAKEN
2062b4c: 90 10 00 19 mov %i1, %o0
2062b50: 9f c0 40 00 call %g1
2062b54: 01 00 00 00 nop
2062b58: 81 c7 e0 08 ret
2062b5c: 81 e8 00 00 restore
rtems_filesystem_freenode( &old_loc );
rtems_set_errno_and_return_minus_one( EXDEV );
}
if ( !new_parent_loc.ops->rename_h ) {
rtems_filesystem_freenode( &new_parent_loc );
2062b60: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1
2062b64: 80 a0 60 00 cmp %g1, 0
2062b68: 02 80 00 05 be 2062b7c <_rename_r+0x35c> <== NEVER TAKEN
2062b6c: 80 8c a0 ff btst 0xff, %l2
2062b70: 9f c0 40 00 call %g1
2062b74: 90 10 00 11 mov %l1, %o0
if ( free_old_parentloc )
2062b78: 80 8c a0 ff btst 0xff, %l2
2062b7c: 02 80 00 0d be 2062bb0 <_rename_r+0x390> <== NEVER TAKEN
2062b80: c2 07 bf f0 ld [ %fp + -16 ], %g1
rtems_filesystem_freenode( &old_parent_loc );
2062b84: c2 07 bf dc ld [ %fp + -36 ], %g1
2062b88: 80 a0 60 00 cmp %g1, 0
2062b8c: 22 80 00 09 be,a 2062bb0 <_rename_r+0x390> <== NEVER TAKEN
2062b90: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
2062b94: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2062b98: 80 a0 60 00 cmp %g1, 0
2062b9c: 22 80 00 05 be,a 2062bb0 <_rename_r+0x390> <== NEVER TAKEN
2062ba0: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
2062ba4: 9f c0 40 00 call %g1
2062ba8: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &old_loc );
2062bac: c2 07 bf f0 ld [ %fp + -16 ], %g1
2062bb0: 80 a0 60 00 cmp %g1, 0
2062bb4: 02 80 00 08 be 2062bd4 <_rename_r+0x3b4> <== NEVER TAKEN
2062bb8: 01 00 00 00 nop
2062bbc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2062bc0: 80 a0 60 00 cmp %g1, 0
2062bc4: 02 80 00 04 be 2062bd4 <_rename_r+0x3b4> <== NEVER TAKEN
2062bc8: 01 00 00 00 nop
2062bcc: 9f c0 40 00 call %g1
2062bd0: 90 10 00 19 mov %i1, %o0
rtems_set_errno_and_return_minus_one( ENOTSUP );
2062bd4: 7f ff 98 1c call 2048c44 <__errno>
2062bd8: b0 10 3f ff mov -1, %i0
2062bdc: 82 10 20 86 mov 0x86, %g1
2062be0: c2 22 00 00 st %g1, [ %o0 ]
2062be4: 81 c7 e0 08 ret
2062be8: 81 e8 00 00 restore
0200a4d0 <_stat_r>:
struct _reent *ptr __attribute__((unused)),
const char *path,
struct stat *buf
)
{
return _STAT_NAME( path, buf );
200a4d0: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED
200a4d4: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED
200a4d8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
200a4dc: 7f ff ff b1 call 200a3a0 <stat> <== NOT EXECUTED
200a4e0: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
0200fdd8 <_unlink_r>:
int _unlink_r(
struct _reent *ptr __attribute__((unused)),
const char *path
)
{
return unlink( path );
200fdd8: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED
200fddc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
200fde0: 7f ff ff 5d call 200fb54 <unlink> <== NOT EXECUTED
200fde4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02002a60 <calloc>:
)
{
register char *cptr;
size_t length;
MSBUMP(calloc_calls, 1);
2002a60: 9d e3 bf a0 save %sp, -96, %sp
2002a64: 21 00 80 76 sethi %hi(0x201d800), %l0
2002a68: a0 14 21 f0 or %l0, 0x1f0, %l0 ! 201d9f0 <rtems_malloc_statistics>
2002a6c: c2 04 20 14 ld [ %l0 + 0x14 ], %g1
length = nelem * elsize;
2002a70: 92 10 00 18 mov %i0, %o1
)
{
register char *cptr;
size_t length;
MSBUMP(calloc_calls, 1);
2002a74: 82 00 60 01 inc %g1
length = nelem * elsize;
2002a78: 90 10 00 19 mov %i1, %o0
2002a7c: 40 00 5b 8e call 20198b4 <.umul>
2002a80: c2 24 20 14 st %g1, [ %l0 + 0x14 ]
cptr = malloc( length );
2002a84: 40 00 01 82 call 200308c <malloc>
2002a88: a2 10 00 08 mov %o0, %l1
if ( cptr )
2002a8c: b0 92 20 00 orcc %o0, 0, %i0
2002a90: 02 80 00 04 be 2002aa0 <calloc+0x40> <== NEVER TAKEN
2002a94: 94 10 00 11 mov %l1, %o2
memset( cptr, '\0', length );
2002a98: 40 00 38 e9 call 2010e3c <memset>
2002a9c: 92 10 20 00 clr %o1
MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */
2002aa0: c2 04 20 04 ld [ %l0 + 4 ], %g1
2002aa4: 82 00 7f ff add %g1, -1, %g1
2002aa8: c2 24 20 04 st %g1, [ %l0 + 4 ]
return cptr;
}
2002aac: 81 c7 e0 08 ret
2002ab0: 81 e8 00 00 restore
0202c164 <chdir>:
#include <rtems/seterr.h>
int chdir(
const char *pathname
)
{
202c164: 9d e3 bf 88 save %sp, -120, %sp
rtems_filesystem_location_info_t loc;
int result;
if ( !pathname )
202c168: 80 a6 20 00 cmp %i0, 0
202c16c: 02 80 00 31 be 202c230 <chdir+0xcc>
202c170: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EFAULT );
/*
* Get the node where we wish to go.
*/
result = rtems_filesystem_evaluate_path(
202c174: 40 00 8e 5c call 204fae4 <strlen>
202c178: 90 10 00 18 mov %i0, %o0
202c17c: a0 07 bf ec add %fp, -20, %l0
202c180: 92 10 00 08 mov %o0, %o1
202c184: 94 10 20 01 mov 1, %o2
202c188: 90 10 00 18 mov %i0, %o0
202c18c: 96 10 00 10 mov %l0, %o3
202c190: 98 10 20 01 mov 1, %o4
202c194: 7f ff 71 b3 call 2008860 <rtems_filesystem_evaluate_path>
202c198: b0 10 3f ff mov -1, %i0
pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true );
if ( result != 0 )
202c19c: 80 a2 20 00 cmp %o0, 0
202c1a0: 12 80 00 28 bne 202c240 <chdir+0xdc>
202c1a4: c4 07 bf f8 ld [ %fp + -8 ], %g2
return -1;
/*
* Verify you can change directory into this node.
*/
if ( !loc.ops->node_type_h ) {
202c1a8: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1
202c1ac: 80 a0 60 00 cmp %g1, 0
202c1b0: 22 80 00 35 be,a 202c284 <chdir+0x120> <== NEVER TAKEN
202c1b4: 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_DIRECTORY ) {
202c1b8: 9f c0 40 00 call %g1
202c1bc: 90 10 00 10 mov %l0, %o0
202c1c0: 80 a2 20 01 cmp %o0, 1
202c1c4: 12 80 00 21 bne 202c248 <chdir+0xe4>
202c1c8: c2 07 bf f8 ld [ %fp + -8 ], %g1
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTDIR );
}
rtems_filesystem_freenode( &rtems_filesystem_current );
202c1cc: 21 00 81 bc sethi %hi(0x206f000), %l0
202c1d0: d0 04 23 24 ld [ %l0 + 0x324 ], %o0 ! 206f324 <rtems_current_user_env>
202c1d4: c2 02 20 10 ld [ %o0 + 0x10 ], %g1
202c1d8: 80 a0 60 00 cmp %g1, 0
202c1dc: 22 80 00 0a be,a 202c204 <chdir+0xa0> <== NEVER TAKEN
202c1e0: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED
202c1e4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202c1e8: 80 a0 60 00 cmp %g1, 0
202c1ec: 22 80 00 06 be,a 202c204 <chdir+0xa0> <== NEVER TAKEN
202c1f0: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED
202c1f4: 9f c0 40 00 call %g1
202c1f8: 90 02 20 04 add %o0, 4, %o0
202c1fc: d0 04 23 24 ld [ %l0 + 0x324 ], %o0
rtems_filesystem_current = loc;
202c200: c2 07 bf ec ld [ %fp + -20 ], %g1
202c204: c2 22 20 04 st %g1, [ %o0 + 4 ]
202c208: c2 07 bf f0 ld [ %fp + -16 ], %g1
202c20c: c2 22 20 08 st %g1, [ %o0 + 8 ]
202c210: c2 07 bf f4 ld [ %fp + -12 ], %g1
202c214: c2 22 20 0c st %g1, [ %o0 + 0xc ]
202c218: c2 07 bf f8 ld [ %fp + -8 ], %g1
202c21c: c2 22 20 10 st %g1, [ %o0 + 0x10 ]
202c220: c2 07 bf fc ld [ %fp + -4 ], %g1
202c224: c2 22 20 14 st %g1, [ %o0 + 0x14 ]
return 0;
}
202c228: 81 c7 e0 08 ret
202c22c: 91 e8 20 00 restore %g0, 0, %o0
{
rtems_filesystem_location_info_t loc;
int result;
if ( !pathname )
rtems_set_errno_and_return_minus_one( EFAULT );
202c230: 40 00 72 85 call 2048c44 <__errno>
202c234: b0 10 3f ff mov -1, %i0
202c238: 82 10 20 0e mov 0xe, %g1
202c23c: c2 22 00 00 st %g1, [ %o0 ]
202c240: 81 c7 e0 08 ret
202c244: 81 e8 00 00 restore
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
rtems_filesystem_freenode( &loc );
202c248: 80 a0 60 00 cmp %g1, 0
202c24c: 02 80 00 08 be 202c26c <chdir+0x108> <== NEVER TAKEN
202c250: 01 00 00 00 nop
202c254: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202c258: 80 a0 60 00 cmp %g1, 0
202c25c: 02 80 00 04 be 202c26c <chdir+0x108> <== NEVER TAKEN
202c260: 01 00 00 00 nop
202c264: 9f c0 40 00 call %g1
202c268: 90 10 00 10 mov %l0, %o0
rtems_set_errno_and_return_minus_one( ENOTDIR );
202c26c: 40 00 72 76 call 2048c44 <__errno>
202c270: b0 10 3f ff mov -1, %i0
202c274: 82 10 20 14 mov 0x14, %g1
202c278: c2 22 00 00 st %g1, [ %o0 ]
202c27c: 81 c7 e0 08 ret
202c280: 81 e8 00 00 restore
/*
* Verify you can change directory into this node.
*/
if ( !loc.ops->node_type_h ) {
rtems_filesystem_freenode( &loc );
202c284: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202c288: 02 80 00 04 be 202c298 <chdir+0x134> <== NOT EXECUTED
202c28c: 01 00 00 00 nop <== NOT EXECUTED
202c290: 9f c0 40 00 call %g1 <== NOT EXECUTED
202c294: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
202c298: 40 00 72 6b call 2048c44 <__errno> <== NOT EXECUTED
202c29c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202c2a0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
202c2a4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202c2a8: 81 c7 e0 08 ret <== NOT EXECUTED
202c2ac: 81 e8 00 00 restore <== NOT EXECUTED
020082a8 <chmod>:
int chmod(
const char *path,
mode_t mode
)
{
20082a8: 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 );
20082ac: 40 01 1e 0e call 204fae4 <strlen>
20082b0: 90 10 00 18 mov %i0, %o0
20082b4: a0 07 bf ec add %fp, -20, %l0
20082b8: 92 10 00 08 mov %o0, %o1
20082bc: 94 10 20 00 clr %o2
20082c0: 90 10 00 18 mov %i0, %o0
20082c4: 96 10 00 10 mov %l0, %o3
20082c8: 98 10 20 01 mov 1, %o4
20082cc: 40 00 01 65 call 2008860 <rtems_filesystem_evaluate_path>
20082d0: b0 10 3f ff mov -1, %i0
if ( status != 0 )
20082d4: 80 a2 20 00 cmp %o0, 0
20082d8: 12 80 00 15 bne 200832c <chmod+0x84>
20082dc: c2 07 bf f4 ld [ %fp + -12 ], %g1
return -1;
if ( !loc.handlers ){
20082e0: 80 a0 60 00 cmp %g1, 0
20082e4: 22 80 00 24 be,a 2008374 <chmod+0xcc> <== NEVER TAKEN
20082e8: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( EBADF );
}
if ( !loc.handlers->fchmod_h ){
20082ec: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
20082f0: 80 a0 60 00 cmp %g1, 0
20082f4: 02 80 00 10 be 2008334 <chmod+0x8c> <== NEVER TAKEN
20082f8: 92 10 00 19 mov %i1, %o1
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.handlers->fchmod_h)( &loc, mode );
20082fc: 9f c0 40 00 call %g1
2008300: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &loc );
2008304: c2 07 bf f8 ld [ %fp + -8 ], %g1
2008308: 80 a0 60 00 cmp %g1, 0
200830c: 02 80 00 08 be 200832c <chmod+0x84> <== NEVER TAKEN
2008310: b0 10 00 08 mov %o0, %i0
2008314: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2008318: 80 a0 60 00 cmp %g1, 0
200831c: 02 80 00 23 be 20083a8 <chmod+0x100> <== NEVER TAKEN
2008320: 01 00 00 00 nop
2008324: 9f c0 40 00 call %g1
2008328: 90 10 00 10 mov %l0, %o0
return result;
}
200832c: 81 c7 e0 08 ret
2008330: 81 e8 00 00 restore
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( EBADF );
}
if ( !loc.handlers->fchmod_h ){
rtems_filesystem_freenode( &loc );
2008334: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
2008338: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200833c: 02 80 00 08 be 200835c <chmod+0xb4> <== NOT EXECUTED
2008340: 01 00 00 00 nop <== NOT EXECUTED
2008344: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
2008348: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200834c: 02 80 00 04 be 200835c <chmod+0xb4> <== NOT EXECUTED
2008350: 01 00 00 00 nop <== NOT EXECUTED
2008354: 9f c0 40 00 call %g1 <== NOT EXECUTED
2008358: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
200835c: 40 01 02 3a call 2048c44 <__errno> <== NOT EXECUTED
2008360: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2008364: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
2008368: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200836c: 81 c7 e0 08 ret <== NOT EXECUTED
2008370: 81 e8 00 00 restore <== NOT EXECUTED
status = rtems_filesystem_evaluate_path( path, strlen( path ), 0, &loc, true );
if ( status != 0 )
return -1;
if ( !loc.handlers ){
rtems_filesystem_freenode( &loc );
2008374: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2008378: 02 80 00 08 be 2008398 <chmod+0xf0> <== NOT EXECUTED
200837c: 01 00 00 00 nop <== NOT EXECUTED
2008380: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
2008384: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2008388: 02 80 00 04 be 2008398 <chmod+0xf0> <== NOT EXECUTED
200838c: 01 00 00 00 nop <== NOT EXECUTED
2008390: 9f c0 40 00 call %g1 <== NOT EXECUTED
2008394: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EBADF );
2008398: 40 01 02 2b call 2048c44 <__errno> <== NOT EXECUTED
200839c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20083a0: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED
20083a4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20083a8: 81 c7 e0 08 ret <== NOT EXECUTED
20083ac: 81 e8 00 00 restore <== NOT EXECUTED
0202c2b0 <chown>:
int chown(
const char *path,
uid_t owner,
gid_t group
)
{
202c2b0: 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 ) )
202c2b4: 40 00 8e 0c call 204fae4 <strlen>
202c2b8: 90 10 00 18 mov %i0, %o0
202c2bc: a0 07 bf ec add %fp, -20, %l0
202c2c0: 92 10 00 08 mov %o0, %o1
202c2c4: 94 10 20 00 clr %o2
202c2c8: 90 10 00 18 mov %i0, %o0
202c2cc: 96 10 00 10 mov %l0, %o3
202c2d0: 98 10 20 01 mov 1, %o4
202c2d4: 7f ff 71 63 call 2008860 <rtems_filesystem_evaluate_path>
202c2d8: b0 10 3f ff mov -1, %i0
202c2dc: 80 a2 20 00 cmp %o0, 0
202c2e0: 12 80 00 15 bne 202c334 <chown+0x84>
202c2e4: c4 07 bf f8 ld [ %fp + -8 ], %g2
return -1;
if ( !loc.ops->chown_h ) {
202c2e8: c2 00 a0 18 ld [ %g2 + 0x18 ], %g1
202c2ec: 80 a0 60 00 cmp %g1, 0
202c2f0: 02 80 00 13 be 202c33c <chown+0x8c> <== NEVER TAKEN
202c2f4: 93 2e 60 10 sll %i1, 0x10, %o1
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->chown_h)( &loc, owner, group );
202c2f8: 95 2e a0 10 sll %i2, 0x10, %o2
202c2fc: 93 32 60 10 srl %o1, 0x10, %o1
202c300: 95 32 a0 10 srl %o2, 0x10, %o2
202c304: 9f c0 40 00 call %g1
202c308: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &loc );
202c30c: c2 07 bf f8 ld [ %fp + -8 ], %g1
202c310: 80 a0 60 00 cmp %g1, 0
202c314: 02 80 00 08 be 202c334 <chown+0x84> <== NEVER TAKEN
202c318: b0 10 00 08 mov %o0, %i0
202c31c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202c320: 80 a0 60 00 cmp %g1, 0
202c324: 02 80 00 10 be 202c364 <chown+0xb4> <== NEVER TAKEN
202c328: 01 00 00 00 nop
202c32c: 9f c0 40 00 call %g1
202c330: 90 10 00 10 mov %l0, %o0
return result;
}
202c334: 81 c7 e0 08 ret
202c338: 81 e8 00 00 restore
if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) )
return -1;
if ( !loc.ops->chown_h ) {
rtems_filesystem_freenode( &loc );
202c33c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
202c340: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202c344: 02 80 00 04 be 202c354 <chown+0xa4> <== NOT EXECUTED
202c348: 01 00 00 00 nop <== NOT EXECUTED
202c34c: 9f c0 40 00 call %g1 <== NOT EXECUTED
202c350: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
202c354: 40 00 72 3c call 2048c44 <__errno> <== NOT EXECUTED
202c358: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202c35c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
202c360: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202c364: 81 c7 e0 08 ret <== NOT EXECUTED
202c368: 81 e8 00 00 restore <== NOT EXECUTED
0202c36c <chroot>:
#include <rtems/seterr.h>
int chroot(
const char *pathname
)
{
202c36c: 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) {
202c370: 21 00 81 bc sethi %hi(0x206f000), %l0
202c374: e2 04 23 24 ld [ %l0 + 0x324 ], %l1 ! 206f324 <rtems_current_user_env>
202c378: 03 00 81 cc sethi %hi(0x2073000), %g1
202c37c: 82 10 61 2c or %g1, 0x12c, %g1 ! 207312c <rtems_global_user_env>
202c380: 80 a4 40 01 cmp %l1, %g1
202c384: 02 80 00 28 be 202c424 <chroot+0xb8> <== ALWAYS TAKEN
202c388: 01 00 00 00 nop
rtems_libio_set_private_env(); /* try to set a new private env*/
if (rtems_current_user_env == &rtems_global_user_env) /* not ok */
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = chdir(pathname);
202c38c: 7f ff ff 76 call 202c164 <chdir>
202c390: 90 10 00 18 mov %i0, %o0
if (result) {
202c394: 80 a2 20 00 cmp %o0, 0
202c398: 12 80 00 2f bne 202c454 <chroot+0xe8> <== NEVER TAKEN
202c39c: 11 00 81 a5 sethi %hi(0x2069400), %o0
rtems_set_errno_and_return_minus_one( errno );
}
/* clone the new root location */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
202c3a0: 92 10 20 01 mov 1, %o1
202c3a4: 90 12 21 78 or %o0, 0x178, %o0
202c3a8: 94 10 20 00 clr %o2
202c3ac: 96 07 bf ec add %fp, -20, %o3
202c3b0: 7f ff 71 2c call 2008860 <rtems_filesystem_evaluate_path>
202c3b4: 98 10 20 00 clr %o4
202c3b8: 80 a2 20 00 cmp %o0, 0
202c3bc: 12 80 00 26 bne 202c454 <chroot+0xe8> <== NEVER TAKEN
202c3c0: d0 04 23 24 ld [ %l0 + 0x324 ], %o0
/* our cwd has changed, though - but there is no easy way of return :-( */
rtems_set_errno_and_return_minus_one( errno );
}
rtems_filesystem_freenode(&rtems_filesystem_root);
202c3c4: c2 02 20 24 ld [ %o0 + 0x24 ], %g1
202c3c8: 80 a0 60 00 cmp %g1, 0
202c3cc: 22 80 00 0b be,a 202c3f8 <chroot+0x8c> <== NEVER TAKEN
202c3d0: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED
202c3d4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202c3d8: 80 a0 60 00 cmp %g1, 0
202c3dc: 22 80 00 07 be,a 202c3f8 <chroot+0x8c> <== NEVER TAKEN
202c3e0: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED
202c3e4: 9f c0 40 00 call %g1
202c3e8: 90 02 20 18 add %o0, 0x18, %o0
202c3ec: 03 00 81 bc sethi %hi(0x206f000), %g1
202c3f0: d0 00 63 24 ld [ %g1 + 0x324 ], %o0 ! 206f324 <rtems_current_user_env>
rtems_filesystem_root = loc;
202c3f4: c2 07 bf ec ld [ %fp + -20 ], %g1
202c3f8: c2 22 20 18 st %g1, [ %o0 + 0x18 ]
202c3fc: c2 07 bf f0 ld [ %fp + -16 ], %g1
202c400: c2 22 20 1c st %g1, [ %o0 + 0x1c ]
202c404: c2 07 bf f4 ld [ %fp + -12 ], %g1
202c408: c2 22 20 20 st %g1, [ %o0 + 0x20 ]
202c40c: c2 07 bf f8 ld [ %fp + -8 ], %g1
202c410: c2 22 20 24 st %g1, [ %o0 + 0x24 ]
202c414: c2 07 bf fc ld [ %fp + -4 ], %g1
202c418: c2 22 20 28 st %g1, [ %o0 + 0x28 ]
return 0;
}
202c41c: 81 c7 e0 08 ret
202c420: 91 e8 20 00 restore %g0, 0, %o0
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) {
rtems_libio_set_private_env(); /* try to set a new private env*/
202c424: 40 00 06 75 call 202ddf8 <rtems_libio_set_private_env>
202c428: 01 00 00 00 nop
if (rtems_current_user_env == &rtems_global_user_env) /* not ok */
202c42c: c2 04 23 24 ld [ %l0 + 0x324 ], %g1
202c430: 80 a0 40 11 cmp %g1, %l1
202c434: 12 bf ff d6 bne 202c38c <chroot+0x20> <== ALWAYS TAKEN
202c438: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOTSUP );
202c43c: 40 00 72 02 call 2048c44 <__errno> <== NOT EXECUTED
202c440: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
202c444: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
202c448: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202c44c: 81 c7 e0 08 ret <== NOT EXECUTED
202c450: 81 e8 00 00 restore <== NOT EXECUTED
}
/* clone the new root location */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
/* our cwd has changed, though - but there is no easy way of return :-( */
rtems_set_errno_and_return_minus_one( errno );
202c454: 40 00 71 fc call 2048c44 <__errno> <== NOT EXECUTED
202c458: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202c45c: 40 00 71 fa call 2048c44 <__errno> <== NOT EXECUTED
202c460: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
202c464: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED
202c468: c2 24 00 00 st %g1, [ %l0 ] <== NOT EXECUTED
202c46c: 81 c7 e0 08 ret <== NOT EXECUTED
202c470: 81 e8 00 00 restore <== NOT EXECUTED
0200c730 <close>:
#include <rtems/libio_.h>
int close(
int fd
)
{
200c730: 9d e3 bf a0 save %sp, -96, %sp
rtems_libio_t *iop;
rtems_status_code rc;
rtems_libio_check_fd(fd);
200c734: 03 00 80 74 sethi %hi(0x201d000), %g1
200c738: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 ! 201d044 <rtems_libio_number_iops>
200c73c: 80 a6 00 01 cmp %i0, %g1
200c740: 1a 80 00 21 bcc 200c7c4 <close+0x94>
200c744: 03 00 80 76 sethi %hi(0x201d800), %g1
iop = rtems_libio_iop(fd);
200c748: e0 00 61 d8 ld [ %g1 + 0x1d8 ], %l0 ! 201d9d8 <rtems_libio_iops>
200c74c: 83 2e 20 06 sll %i0, 6, %g1
200c750: b1 2e 20 03 sll %i0, 3, %i0
200c754: b0 06 00 01 add %i0, %g1, %i0
200c758: a0 04 00 18 add %l0, %i0, %l0
rtems_libio_check_is_open(iop);
200c75c: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
200c760: 80 88 61 00 btst 0x100, %g1
200c764: 02 80 00 18 be 200c7c4 <close+0x94>
200c768: 01 00 00 00 nop
rc = RTEMS_SUCCESSFUL;
if ( iop->handlers->close_h )
200c76c: c2 04 20 40 ld [ %l0 + 0x40 ], %g1
200c770: c2 00 60 04 ld [ %g1 + 4 ], %g1
200c774: 80 a0 60 00 cmp %g1, 0
200c778: 02 80 00 05 be 200c78c <close+0x5c> <== NEVER TAKEN
200c77c: b0 10 20 00 clr %i0
rc = (*iop->handlers->close_h)( iop );
200c780: 9f c0 40 00 call %g1
200c784: 90 10 00 10 mov %l0, %o0
200c788: b0 10 00 08 mov %o0, %i0
rtems_filesystem_freenode( &iop->pathinfo );
200c78c: c2 04 20 28 ld [ %l0 + 0x28 ], %g1
200c790: 80 a0 60 00 cmp %g1, 0
200c794: 02 80 00 08 be 200c7b4 <close+0x84> <== NEVER TAKEN
200c798: 01 00 00 00 nop
200c79c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
200c7a0: 80 a0 60 00 cmp %g1, 0
200c7a4: 02 80 00 04 be 200c7b4 <close+0x84>
200c7a8: 01 00 00 00 nop
200c7ac: 9f c0 40 00 call %g1
200c7b0: 90 04 20 1c add %l0, 0x1c, %o0
rtems_libio_free( iop );
200c7b4: 40 00 00 b0 call 200ca74 <rtems_libio_free>
200c7b8: 90 10 00 10 mov %l0, %o0
return rc;
}
200c7bc: 81 c7 e0 08 ret
200c7c0: 81 e8 00 00 restore
rtems_libio_t *iop;
rtems_status_code rc;
rtems_libio_check_fd(fd);
iop = rtems_libio_iop(fd);
rtems_libio_check_is_open(iop);
200c7c4: 40 00 0f 23 call 2010450 <__errno>
200c7c8: b0 10 3f ff mov -1, %i0
200c7cc: 82 10 20 09 mov 9, %g1
200c7d0: c2 22 00 00 st %g1, [ %o0 ]
200c7d4: 81 c7 e0 08 ret
200c7d8: 81 e8 00 00 restore
02002f3c <create_disk>:
return disktab [major].minor + minor;
}
static rtems_status_code
create_disk(dev_t dev, const char *name, rtems_disk_device **dd_ptr)
{
2002f3c: 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) {
2002f40: 23 00 80 85 sethi %hi(0x2021400), %l1
2002f44: e4 04 62 a0 ld [ %l1 + 0x2a0 ], %l2 ! 20216a0 <disktab_size>
2002f48: 80 a6 00 12 cmp %i0, %l2
2002f4c: 1a 80 00 4a bcc 2003074 <create_disk+0x138>
2002f50: a0 10 00 18 mov %i0, %l0
2002f54: 29 00 80 85 sethi %hi(0x2021400), %l4
2002f58: e6 05 22 9c ld [ %l4 + 0x29c ], %l3 ! 202169c <disktab>
memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
disktab = table;
disktab_size = new_size;
}
if (disktab [major].minor == NULL || minor >= disktab[major].size) {
2002f5c: a3 2c 20 03 sll %l0, 3, %l1
2002f60: e4 04 c0 11 ld [ %l3 + %l1 ], %l2
2002f64: 80 a4 a0 00 cmp %l2, 0
2002f68: 02 80 00 2b be 2003014 <create_disk+0xd8>
2002f6c: a6 04 c0 11 add %l3, %l1, %l3
2002f70: ea 04 e0 04 ld [ %l3 + 4 ], %l5
2002f74: 80 a6 40 15 cmp %i1, %l5
2002f78: 1a 80 00 29 bcc 200301c <create_disk+0xe0> <== NEVER TAKEN
2002f7c: 80 a5 60 00 cmp %l5, 0
memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
disktab [major].minor = table;
disktab [major].size = new_size;
}
return disktab [major].minor + minor;
2002f80: 83 2e 60 02 sll %i1, 2, %g1
{
rtems_disk_device **dd_entry = create_disk_table_entry(dev);
rtems_disk_device *dd = NULL;
char *alloc_name = NULL;
if (dd_entry == NULL) {
2002f84: a2 84 80 01 addcc %l2, %g1, %l1
2002f88: 02 80 00 4e be 20030c0 <create_disk+0x184> <== NEVER TAKEN
2002f8c: 01 00 00 00 nop
return RTEMS_NO_MEMORY;
}
if (*dd_entry != NULL) {
2002f90: c2 04 80 01 ld [ %l2 + %g1 ], %g1
2002f94: 80 a0 60 00 cmp %g1, 0
2002f98: 12 80 00 51 bne 20030dc <create_disk+0x1a0>
2002f9c: b0 10 20 0c mov 0xc, %i0
return RTEMS_RESOURCE_IN_USE;
}
dd = malloc(sizeof(*dd));
2002fa0: 40 00 04 64 call 2004130 <malloc>
2002fa4: 90 10 20 38 mov 0x38, %o0
if (dd == NULL) {
2002fa8: a4 92 20 00 orcc %o0, 0, %l2
2002fac: 02 80 00 45 be 20030c0 <create_disk+0x184> <== NEVER TAKEN
2002fb0: 80 a6 a0 00 cmp %i2, 0
return RTEMS_NO_MEMORY;
}
if (name != NULL) {
2002fb4: 02 80 00 0f be 2002ff0 <create_disk+0xb4>
2002fb8: a6 10 20 00 clr %l3
alloc_name = strdup(name);
2002fbc: 40 00 49 38 call 201549c <strdup>
2002fc0: 90 10 00 1a mov %i2, %o0
if (alloc_name == NULL) {
2002fc4: b4 92 20 00 orcc %o0, 0, %i2
2002fc8: 02 80 00 47 be 20030e4 <create_disk+0x1a8> <== NEVER TAKEN
2002fcc: a6 10 00 1a mov %i2, %l3
return RTEMS_NO_MEMORY;
}
}
if (name != NULL) {
if (mknod(alloc_name, 0777 | S_IFBLK, dev) < 0) {
2002fd0: 13 00 00 18 sethi %hi(0x6000), %o1
2002fd4: 94 10 00 10 mov %l0, %o2
2002fd8: 92 12 61 ff or %o1, 0x1ff, %o1
2002fdc: 40 00 04 9d call 2004250 <mknod>
2002fe0: 96 10 00 19 mov %i1, %o3
2002fe4: 80 a2 20 00 cmp %o0, 0
2002fe8: 06 80 00 38 bl 20030c8 <create_disk+0x18c> <== NEVER TAKEN
2002fec: 01 00 00 00 nop
dd->dev = dev;
dd->name = alloc_name;
dd->uses = 0;
dd->deleted = false;
*dd_entry = dd;
2002ff0: e4 24 40 00 st %l2, [ %l1 ]
*dd_ptr = dd;
2002ff4: e4 26 c0 00 st %l2, [ %i3 ]
free(dd);
return RTEMS_UNSATISFIED;
}
}
dd->dev = dev;
2002ff8: e0 24 80 00 st %l0, [ %l2 ]
2002ffc: f2 24 a0 04 st %i1, [ %l2 + 4 ]
dd->name = alloc_name;
2003000: e6 24 a0 10 st %l3, [ %l2 + 0x10 ]
dd->uses = 0;
2003004: c0 24 a0 14 clr [ %l2 + 0x14 ]
dd->deleted = false;
2003008: c0 2c a0 30 clrb [ %l2 + 0x30 ]
*dd_entry = dd;
*dd_ptr = dd;
return RTEMS_SUCCESSFUL;
200300c: 81 c7 e0 08 ret
2003010: 91 e8 20 00 restore %g0, 0, %o0
memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
disktab = table;
disktab_size = new_size;
}
if (disktab [major].minor == NULL || minor >= disktab[major].size) {
2003014: ea 04 e0 04 ld [ %l3 + 4 ], %l5
rtems_disk_device **table = disktab [major].minor;
rtems_device_minor_number old_size = disktab [major].size;
rtems_device_minor_number new_size = 0;
if (old_size == 0) {
2003018: 80 a5 60 00 cmp %l5, 0
200301c: 12 80 00 03 bne 2003028 <create_disk+0xec> <== NEVER TAKEN
2003020: a7 2d 60 01 sll %l5, 1, %l3
2003024: a6 10 20 08 mov 8, %l3
new_size = DISKTAB_INITIAL_SIZE;
} else {
new_size = 2 * old_size;
}
if (minor >= new_size) {
2003028: 80 a6 40 13 cmp %i1, %l3
200302c: 3a 80 00 02 bcc,a 2003034 <create_disk+0xf8>
2003030: a6 06 60 01 add %i1, 1, %l3
new_size = minor + 1;
}
table = realloc(table, new_size * sizeof(*table));
2003034: 90 10 00 12 mov %l2, %o0
2003038: 40 00 07 75 call 2004e0c <realloc>
200303c: 93 2c e0 02 sll %l3, 2, %o1
if (table == NULL) {
2003040: a4 92 20 00 orcc %o0, 0, %l2
2003044: 02 80 00 1f be 20030c0 <create_disk+0x184>
2003048: 91 2d 60 02 sll %l5, 2, %o0
return NULL;
}
memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
200304c: 94 24 c0 15 sub %l3, %l5, %o2
2003050: 90 04 80 08 add %l2, %o0, %o0
2003054: 95 2a a0 02 sll %o2, 2, %o2
2003058: 40 00 48 02 call 2015060 <memset>
200305c: 92 10 20 00 clr %o1
disktab [major].minor = table;
2003060: c2 05 22 9c ld [ %l4 + 0x29c ], %g1
2003064: e4 20 40 11 st %l2, [ %g1 + %l1 ]
2003068: a2 00 40 11 add %g1, %l1, %l1
disktab [major].size = new_size;
200306c: 10 bf ff c5 b 2002f80 <create_disk+0x44>
2003070: e6 24 60 04 st %l3, [ %l1 + 4 ]
rtems_device_minor_number minor = 0;
rtems_filesystem_split_dev_t(dev, major, minor);
if (major >= disktab_size) {
rtems_disk_device_table *table = disktab;
2003074: 29 00 80 85 sethi %hi(0x2021400), %l4
rtems_device_major_number old_size = disktab_size;
rtems_device_major_number new_size = 2 * old_size;
2003078: ab 2c a0 01 sll %l2, 1, %l5
if (major >= new_size) {
200307c: 80 a6 00 15 cmp %i0, %l5
2003080: 0a 80 00 03 bcs 200308c <create_disk+0x150> <== NEVER TAKEN
2003084: d0 05 22 9c ld [ %l4 + 0x29c ], %o0
new_size = major + 1;
2003088: aa 06 20 01 add %i0, 1, %l5
}
table = realloc(table, new_size * sizeof(*table));
200308c: 40 00 07 60 call 2004e0c <realloc>
2003090: 93 2d 60 03 sll %l5, 3, %o1
if (table == NULL) {
2003094: a6 92 20 00 orcc %o0, 0, %l3
2003098: 02 80 00 0a be 20030c0 <create_disk+0x184> <== ALWAYS TAKEN
200309c: 91 2c a0 03 sll %l2, 3, %o0
return NULL;
}
memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
20030a0: 94 25 40 12 sub %l5, %l2, %o2 <== NOT EXECUTED
20030a4: 90 04 c0 08 add %l3, %o0, %o0 <== NOT EXECUTED
20030a8: 95 2a a0 03 sll %o2, 3, %o2 <== NOT EXECUTED
20030ac: 40 00 47 ed call 2015060 <memset> <== NOT EXECUTED
20030b0: 92 10 20 00 clr %o1 <== NOT EXECUTED
disktab = table;
disktab_size = new_size;
20030b4: ea 24 62 a0 st %l5, [ %l1 + 0x2a0 ] <== NOT EXECUTED
if (table == NULL) {
return NULL;
}
memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
disktab = table;
20030b8: 10 bf ff a9 b 2002f5c <create_disk+0x20> <== NOT EXECUTED
20030bc: e6 25 22 9c st %l3, [ %l4 + 0x29c ] <== NOT EXECUTED
*dd_entry = dd;
*dd_ptr = dd;
return RTEMS_SUCCESSFUL;
}
20030c0: 81 c7 e0 08 ret
20030c4: 91 e8 20 1a restore %g0, 0x1a, %o0
}
}
if (name != NULL) {
if (mknod(alloc_name, 0777 | S_IFBLK, dev) < 0) {
free(alloc_name);
20030c8: 40 00 03 32 call 2003d90 <free> <== NOT EXECUTED
20030cc: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
free(dd);
20030d0: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
20030d4: 40 00 03 2f call 2003d90 <free> <== NOT EXECUTED
20030d8: b0 10 20 0d mov 0xd, %i0 <== NOT EXECUTED
return RTEMS_UNSATISFIED;
20030dc: 81 c7 e0 08 ret
20030e0: 81 e8 00 00 restore
if (name != NULL) {
alloc_name = strdup(name);
if (alloc_name == NULL) {
free(dd);
20030e4: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
20030e8: 40 00 03 2a call 2003d90 <free> <== NOT EXECUTED
20030ec: b0 10 20 1a mov 0x1a, %i0 <== NOT EXECUTED
return RTEMS_NO_MEMORY;
20030f0: 81 c7 e0 08 ret <== NOT EXECUTED
20030f4: 81 e8 00 00 restore <== NOT EXECUTED
02009f60 <devFS_close>:
#include "devfs.h"
int devFS_close(
rtems_libio_t *iop
)
{
2009f60: 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;
2009f64: c2 06 20 3c ld [ %i0 + 0x3c ], %g1
args.iop = iop;
args.flags = 0;
2009f68: c0 27 bf f8 clr [ %fp + -8 ]
args.mode = 0;
2009f6c: c0 27 bf fc clr [ %fp + -4 ]
status = rtems_io_close(
2009f70: d2 00 60 0c ld [ %g1 + 0xc ], %o1
2009f74: 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;
2009f78: f0 27 bf f4 st %i0, [ %fp + -12 ]
args.flags = 0;
args.mode = 0;
status = rtems_io_close(
2009f7c: 94 07 bf f4 add %fp, -12, %o2
2009f80: 40 00 04 21 call 200b004 <rtems_io_close>
2009f84: b0 10 20 00 clr %i0
np->major,
np->minor,
(void *) &args
);
if ( status ) {
2009f88: 80 a2 20 00 cmp %o0, 0
2009f8c: 12 80 00 04 bne 2009f9c <devFS_close+0x3c> <== NEVER TAKEN
2009f90: 01 00 00 00 nop
return rtems_deviceio_errno(status);
}
return 0;
}
2009f94: 81 c7 e0 08 ret
2009f98: 81 e8 00 00 restore
np->major,
np->minor,
(void *) &args
);
if ( status ) {
return rtems_deviceio_errno(status);
2009f9c: 40 00 00 48 call 200a0bc <rtems_deviceio_errno> <== NOT EXECUTED
2009fa0: 01 00 00 00 nop <== NOT EXECUTED
}
return 0;
}
2009fa4: 81 c7 e0 08 ret <== NOT EXECUTED
2009fa8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02009fb8 <devFS_evaluate_path>:
const char *pathname,
size_t pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc
)
{
2009fb8: 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 ) )
2009fbc: 80 8e bf f8 btst -8, %i2
2009fc0: 12 80 00 33 bne 200a08c <devFS_evaluate_path+0xd4> <== NEVER TAKEN
2009fc4: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EPERM );
/* get the device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
2009fc8: e4 06 c0 00 ld [ %i3 ], %l2
if (!device_name_table)
2009fcc: 80 a4 a0 00 cmp %l2, 0
2009fd0: 02 80 00 35 be 200a0a4 <devFS_evaluate_path+0xec> <== NEVER TAKEN
2009fd4: 03 00 80 3e sethi %hi(0x200f800), %g1
rtems_set_errno_and_return_minus_one( EFAULT );
for (i = 0; i < rtems_device_table_size; i++) {
2009fd8: e6 00 62 88 ld [ %g1 + 0x288 ], %l3 ! 200fa88 <rtems_device_table_size>
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 );
2009fdc: a0 10 20 00 clr %l0
for (i = 0; i < rtems_device_table_size; i++) {
2009fe0: 80 a4 e0 00 cmp %l3, 0
2009fe4: 02 80 00 18 be 200a044 <devFS_evaluate_path+0x8c> <== NEVER TAKEN
2009fe8: 82 10 20 00 clr %g1
if (!device_name_table[i].device_name)
2009fec: 85 28 60 04 sll %g1, 4, %g2
2009ff0: a9 28 60 02 sll %g1, 2, %l4
2009ff4: a8 05 00 02 add %l4, %g2, %l4
2009ff8: e2 04 80 14 ld [ %l2 + %l4 ], %l1
/* 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++) {
2009ffc: a0 04 20 01 inc %l0
if (!device_name_table[i].device_name)
200a000: 80 a4 60 00 cmp %l1, 0
200a004: 02 80 00 0d be 200a038 <devFS_evaluate_path+0x80>
200a008: a8 04 80 14 add %l2, %l4, %l4
continue;
if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0)
200a00c: 90 10 00 18 mov %i0, %o0
200a010: 92 10 00 11 mov %l1, %o1
200a014: 40 00 0b d1 call 200cf58 <strncmp>
200a018: 94 10 00 19 mov %i1, %o2
200a01c: 80 a2 20 00 cmp %o0, 0
200a020: 12 80 00 07 bne 200a03c <devFS_evaluate_path+0x84> <== NEVER TAKEN
200a024: 80 a4 c0 10 cmp %l3, %l0
continue;
if (device_name_table[i].device_name[pathnamelen] != '\0')
200a028: c2 4c 40 19 ldsb [ %l1 + %i1 ], %g1
200a02c: 80 a0 60 00 cmp %g1, 0
200a030: 02 80 00 0b be 200a05c <devFS_evaluate_path+0xa4>
200a034: 03 00 80 3f sethi %hi(0x200fc00), %g1
/* 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++) {
200a038: 80 a4 c0 10 cmp %l3, %l0
200a03c: 18 bf ff ec bgu 2009fec <devFS_evaluate_path+0x34>
200a040: 82 10 00 10 mov %l0, %g1
pathloc->mt_entry = rtems_filesystem_root.mt_entry;
return 0;
}
/* no such file or directory */
rtems_set_errno_and_return_minus_one( ENOENT );
200a044: 40 00 08 24 call 200c0d4 <__errno>
200a048: b0 10 3f ff mov -1, %i0
200a04c: 82 10 20 02 mov 2, %g1
200a050: c2 22 00 00 st %g1, [ %o0 ]
}
200a054: 81 c7 e0 08 ret
200a058: 81 e8 00 00 restore
/* 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;
200a05c: c2 00 60 b8 ld [ %g1 + 0xb8 ], %g1
if (device_name_table[i].device_name[pathnamelen] != '\0')
continue;
/* find the device, set proper values */
pathloc->node_access = (void *)&device_name_table[i];
200a060: e8 26 c0 00 st %l4, [ %i3 ]
pathloc->handlers = &devFS_file_handlers;
pathloc->ops = &devFS_ops;
pathloc->mt_entry = rtems_filesystem_root.mt_entry;
200a064: c2 00 60 28 ld [ %g1 + 0x28 ], %g1
200a068: 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;
200a06c: 03 00 80 3f sethi %hi(0x200fc00), %g1
200a070: 82 10 60 60 or %g1, 0x60, %g1 ! 200fc60 <devFS_file_handlers>
200a074: c2 26 e0 08 st %g1, [ %i3 + 8 ]
pathloc->ops = &devFS_ops;
200a078: 03 00 80 3f sethi %hi(0x200fc00), %g1
200a07c: 82 10 60 18 or %g1, 0x18, %g1 ! 200fc18 <devFS_ops>
200a080: c2 26 e0 0c st %g1, [ %i3 + 0xc ]
pathloc->mt_entry = rtems_filesystem_root.mt_entry;
return 0;
200a084: 81 c7 e0 08 ret
200a088: 91 e8 20 00 restore %g0, 0, %o0
int i;
rtems_device_name_t *device_name_table;
/* see if 'flags' is valid */
if ( !rtems_libio_is_valid_perms( flags ) )
rtems_set_errno_and_return_minus_one( EPERM );
200a08c: 40 00 08 12 call 200c0d4 <__errno> <== NOT EXECUTED
200a090: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200a094: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
200a098: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200a09c: 81 c7 e0 08 ret <== NOT EXECUTED
200a0a0: 81 e8 00 00 restore <== NOT EXECUTED
/* 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 );
200a0a4: 40 00 08 0c call 200c0d4 <__errno> <== NOT EXECUTED
200a0a8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200a0ac: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED
200a0b0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200a0b4: 81 c7 e0 08 ret <== NOT EXECUTED
200a0b8: 81 e8 00 00 restore <== NOT EXECUTED
02001fd8 <devFS_initialize>:
int devFS_initialize(
rtems_filesystem_mount_table_entry_t *temp_mt_entry,
const void *data
)
{
2001fd8: 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(
2001fdc: 23 00 80 3e sethi %hi(0x200f800), %l1
2001fe0: c2 04 62 88 ld [ %l1 + 0x288 ], %g1 ! 200fa88 <rtems_device_table_size>
2001fe4: 85 28 60 04 sll %g1, 4, %g2
2001fe8: 83 28 60 02 sll %g1, 2, %g1
2001fec: 40 00 1e 0d call 2009820 <_Workspace_Allocate>
2001ff0: 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)
2001ff4: a0 92 20 00 orcc %o0, 0, %l0
2001ff8: 02 80 00 10 be 2002038 <devFS_initialize+0x60> <== NEVER TAKEN
2001ffc: c2 04 62 88 ld [ %l1 + 0x288 ], %g1
rtems_set_errno_and_return_minus_one( ENOMEM );
memset(
2002000: 92 10 20 00 clr %o1
2002004: 85 28 60 04 sll %g1, 4, %g2
2002008: 83 28 60 02 sll %g1, 2, %g1
200200c: 40 00 2a 93 call 200ca58 <memset>
2002010: 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;
2002014: 03 00 80 3f sethi %hi(0x200fc00), %g1
2002018: 82 10 60 60 or %g1, 0x60, %g1 ! 200fc60 <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;
200201c: 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;
2002020: c2 26 20 24 st %g1, [ %i0 + 0x24 ]
temp_mt_entry->mt_fs_root.ops = &devFS_ops;
2002024: 03 00 80 3f sethi %hi(0x200fc00), %g1
2002028: 82 10 60 18 or %g1, 0x18, %g1 ! 200fc18 <devFS_ops>
200202c: 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;
}
2002030: 81 c7 e0 08 ret
2002034: 91 e8 20 00 restore %g0, 0, %o0
sizeof( rtems_device_name_t ) * ( rtems_device_table_size )
);
/* no memory for device filesystem */
if (!device_name_table)
rtems_set_errno_and_return_minus_one( ENOMEM );
2002038: 40 00 28 27 call 200c0d4 <__errno> <== NOT EXECUTED
200203c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2002040: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
2002044: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2002048: 81 c7 e0 08 ret <== NOT EXECUTED
200204c: 81 e8 00 00 restore <== NOT EXECUTED
020021fc <devFS_ioctl>:
int devFS_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
20021fc: 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;
2002200: c2 06 20 3c ld [ %i0 + 0x3c ], %g1
args.iop = iop;
args.command = command;
2002204: f2 27 bf f4 st %i1, [ %fp + -12 ]
args.buffer = buffer;
status = rtems_io_control(
2002208: d2 00 60 0c ld [ %g1 + 0xc ], %o1
200220c: 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;
2002210: f0 27 bf f0 st %i0, [ %fp + -16 ]
args.command = command;
args.buffer = buffer;
2002214: f4 27 bf f8 st %i2, [ %fp + -8 ]
status = rtems_io_control(
2002218: 40 00 11 45 call 200672c <rtems_io_control>
200221c: 94 07 bf f0 add %fp, -16, %o2
np->major,
np->minor,
(void *) &args
);
if ( status )
2002220: 80 a2 20 00 cmp %o0, 0
2002224: 12 80 00 05 bne 2002238 <devFS_ioctl+0x3c> <== NEVER TAKEN
2002228: 01 00 00 00 nop
return rtems_deviceio_errno(status);
return args.ioctl_return;
200222c: f0 07 bf fc ld [ %fp + -4 ], %i0
}
2002230: 81 c7 e0 08 ret
2002234: 81 e8 00 00 restore
np->minor,
(void *) &args
);
if ( status )
return rtems_deviceio_errno(status);
2002238: 40 00 1f a1 call 200a0bc <rtems_deviceio_errno> <== NOT EXECUTED
200223c: 01 00 00 00 nop <== NOT EXECUTED
2002240: 81 c7 e0 08 ret <== NOT EXECUTED
2002244: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02002050 <devFS_mknod>:
const char *path,
mode_t mode,
dev_t dev,
rtems_filesystem_location_info_t *pathloc
)
{
2002050: 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') &&
2002054: c2 4e 00 00 ldsb [ %i0 ], %g1
2002058: 80 a0 60 64 cmp %g1, 0x64
200205c: 02 80 00 43 be 2002168 <devFS_mknod+0x118> <== ALWAYS TAKEN
2002060: a0 10 00 18 mov %i0, %l0
(path[2] == 'v') && (path[3] == '\0'))
return 0;
/* must be a character device or a block device */
if (!S_ISBLK(mode) && !S_ISCHR(mode))
2002064: 03 00 00 3c sethi %hi(0xf000), %g1
2002068: 05 00 00 08 sethi %hi(0x2000), %g2
200206c: 82 0e 40 01 and %i1, %g1, %g1
2002070: 80 a0 40 02 cmp %g1, %g2
2002074: 12 80 00 4b bne 20021a0 <devFS_mknod+0x150> <== NEVER TAKEN
2002078: 05 00 00 18 sethi %hi(0x6000), %g2
rtems_set_errno_and_return_minus_one( EINVAL );
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;
200207c: e4 07 00 00 ld [ %i4 ], %l2
if (!device_name_table)
2002080: 80 a4 a0 00 cmp %l2, 0
2002084: 02 80 00 56 be 20021dc <devFS_mknod+0x18c> <== NEVER TAKEN
2002088: 03 00 80 3e sethi %hi(0x200f800), %g1
rtems_set_errno_and_return_minus_one( EFAULT );
for (slot = -1, i = 0; i < rtems_device_table_size; i++){
200208c: e6 00 62 88 ld [ %g1 + 0x288 ], %l3 ! 200fa88 <rtems_device_table_size>
2002090: 80 a4 e0 00 cmp %l3, 0
2002094: 02 80 00 4c be 20021c4 <devFS_mknod+0x174> <== NEVER TAKEN
2002098: 82 10 20 00 clr %g1
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)
rtems_set_errno_and_return_minus_one( EFAULT );
200209c: a8 10 3f ff mov -1, %l4
20020a0: 10 80 00 0a b 20020c8 <devFS_mknod+0x78>
20020a4: a2 10 20 00 clr %l1
for (slot = -1, i = 0; i < rtems_device_table_size; i++){
if (device_name_table[i].device_name == NULL)
slot = i;
else
if (strcmp(path, device_name_table[i].device_name) == 0)
20020a8: 40 00 2b 26 call 200cd40 <strcmp>
20020ac: 01 00 00 00 nop
20020b0: 80 a2 20 00 cmp %o0, 0
20020b4: 02 80 00 27 be 2002150 <devFS_mknod+0x100> <== NEVER TAKEN
20020b8: a2 04 60 01 inc %l1
/* 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++){
20020bc: 80 a4 40 13 cmp %l1, %l3
20020c0: 1a 80 00 0e bcc 20020f8 <devFS_mknod+0xa8> <== ALWAYS TAKEN
20020c4: 82 10 00 11 mov %l1, %g1
if (device_name_table[i].device_name == NULL)
20020c8: 85 28 60 04 sll %g1, 4, %g2
20020cc: 83 28 60 02 sll %g1, 2, %g1
20020d0: 82 00 40 02 add %g1, %g2, %g1
20020d4: d2 04 80 01 ld [ %l2 + %g1 ], %o1
20020d8: 80 a2 60 00 cmp %o1, 0
20020dc: 12 bf ff f3 bne 20020a8 <devFS_mknod+0x58>
20020e0: 90 10 00 10 mov %l0, %o0
slot = i;
else
if (strcmp(path, device_name_table[i].device_name) == 0)
rtems_set_errno_and_return_minus_one( EEXIST );
20020e4: a8 10 00 11 mov %l1, %l4
/* 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++){
20020e8: a2 04 60 01 inc %l1
20020ec: 80 a4 40 13 cmp %l1, %l3
20020f0: 0a bf ff f6 bcs 20020c8 <devFS_mknod+0x78>
20020f4: 82 10 00 11 mov %l1, %g1
else
if (strcmp(path, device_name_table[i].device_name) == 0)
rtems_set_errno_and_return_minus_one( EEXIST );
}
if (slot == -1)
20020f8: 80 a5 3f ff cmp %l4, -1
20020fc: 02 80 00 32 be 20021c4 <devFS_mknod+0x174> <== NEVER TAKEN
2002100: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOMEM );
_ISR_Disable(level);
2002104: 7f ff ff 3e call 2001dfc <sparc_disable_interrupts>
2002108: 01 00 00 00 nop
200210c: a2 10 00 08 mov %o0, %l1
device_name_table[slot].device_name = (char *)path;
2002110: 83 2d 20 04 sll %l4, 4, %g1
device_name_table[slot].device_name_length = strlen(path);
2002114: 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;
2002118: a9 2d 20 02 sll %l4, 2, %l4
200211c: a8 05 00 01 add %l4, %g1, %l4
2002120: e0 24 80 14 st %l0, [ %l2 + %l4 ]
device_name_table[slot].device_name_length = strlen(path);
2002124: 40 00 2b 58 call 200ce84 <strlen>
2002128: a4 04 80 14 add %l2, %l4, %l2
device_name_table[slot].major = major;
device_name_table[slot].minor = minor;
device_name_table[slot].mode = mode;
200212c: f2 24 a0 10 st %i1, [ %l2 + 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);
2002130: d0 24 a0 04 st %o0, [ %l2 + 4 ]
device_name_table[slot].major = major;
2002134: f4 24 a0 08 st %i2, [ %l2 + 8 ]
device_name_table[slot].minor = minor;
2002138: f6 24 a0 0c st %i3, [ %l2 + 0xc ]
device_name_table[slot].mode = mode;
_ISR_Enable(level);
200213c: b0 10 20 00 clr %i0
2002140: 7f ff ff 33 call 2001e0c <sparc_enable_interrupts>
2002144: 90 10 00 11 mov %l1, %o0
return 0;
}
2002148: 81 c7 e0 08 ret
200214c: 81 e8 00 00 restore
for (slot = -1, i = 0; i < rtems_device_table_size; i++){
if (device_name_table[i].device_name == NULL)
slot = i;
else
if (strcmp(path, device_name_table[i].device_name) == 0)
rtems_set_errno_and_return_minus_one( EEXIST );
2002150: 40 00 27 e1 call 200c0d4 <__errno> <== NOT EXECUTED
2002154: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2002158: 82 10 20 11 mov 0x11, %g1 <== NOT EXECUTED
200215c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2002160: 81 c7 e0 08 ret <== NOT EXECUTED
2002164: 81 e8 00 00 restore <== NOT EXECUTED
* 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') &&
2002168: c2 4e 20 01 ldsb [ %i0 + 1 ], %g1
200216c: 80 a0 60 65 cmp %g1, 0x65
2002170: 12 bf ff be bne 2002068 <devFS_mknod+0x18> <== NEVER TAKEN
2002174: 03 00 00 3c sethi %hi(0xf000), %g1
(path[2] == 'v') && (path[3] == '\0'))
2002178: c2 4e 20 02 ldsb [ %i0 + 2 ], %g1
200217c: 80 a0 60 76 cmp %g1, 0x76
2002180: 12 bf ff ba bne 2002068 <devFS_mknod+0x18> <== NEVER TAKEN
2002184: 03 00 00 3c sethi %hi(0xf000), %g1
2002188: c2 4e 20 03 ldsb [ %i0 + 3 ], %g1
200218c: 80 a0 60 00 cmp %g1, 0
2002190: 12 bf ff b5 bne 2002064 <devFS_mknod+0x14>
2002194: b0 10 20 00 clr %i0
device_name_table[slot].minor = minor;
device_name_table[slot].mode = mode;
_ISR_Enable(level);
return 0;
}
2002198: 81 c7 e0 08 ret
200219c: 81 e8 00 00 restore
if ((path[0] == 'd') && (path[1] == 'e') &&
(path[2] == 'v') && (path[3] == '\0'))
return 0;
/* must be a character device or a block device */
if (!S_ISBLK(mode) && !S_ISCHR(mode))
20021a0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
20021a4: 22 bf ff b7 be,a 2002080 <devFS_mknod+0x30> <== NOT EXECUTED
20021a8: e4 07 00 00 ld [ %i4 ], %l2 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
20021ac: 40 00 27 ca call 200c0d4 <__errno> <== NOT EXECUTED
20021b0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20021b4: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
20021b8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20021bc: 81 c7 e0 08 ret <== NOT EXECUTED
20021c0: 81 e8 00 00 restore <== NOT EXECUTED
if (strcmp(path, device_name_table[i].device_name) == 0)
rtems_set_errno_and_return_minus_one( EEXIST );
}
if (slot == -1)
rtems_set_errno_and_return_minus_one( ENOMEM );
20021c4: 40 00 27 c4 call 200c0d4 <__errno> <== NOT EXECUTED
20021c8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20021cc: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
20021d0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20021d4: 81 c7 e0 08 ret <== NOT EXECUTED
20021d8: 81 e8 00 00 restore <== NOT EXECUTED
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)
rtems_set_errno_and_return_minus_one( EFAULT );
20021dc: 40 00 27 be call 200c0d4 <__errno> <== NOT EXECUTED
20021e0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20021e4: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED
20021e8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20021ec: 81 c7 e0 08 ret <== NOT EXECUTED
20021f0: 81 e8 00 00 restore <== NOT EXECUTED
02002248 <devFS_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
2002248: 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;
200224c: 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;
2002250: c2 06 20 3c ld [ %i0 + 0x3c ], %g1
args.iop = iop;
args.flags = iop->flags;
2002254: c4 27 bf f8 st %g2, [ %fp + -8 ]
args.mode = mode;
2002258: f6 27 bf fc st %i3, [ %fp + -4 ]
status = rtems_io_open(
200225c: d2 00 60 0c ld [ %g1 + 0xc ], %o1
2002260: 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;
2002264: f0 27 bf f4 st %i0, [ %fp + -12 ]
args.flags = iop->flags;
args.mode = mode;
status = rtems_io_open(
2002268: 94 07 bf f4 add %fp, -12, %o2
200226c: 40 00 11 8d call 20068a0 <rtems_io_open>
2002270: b0 10 20 00 clr %i0
np->major,
np->minor,
(void *) &args
);
if ( status )
2002274: 80 a2 20 00 cmp %o0, 0
2002278: 12 80 00 04 bne 2002288 <devFS_open+0x40> <== NEVER TAKEN
200227c: 01 00 00 00 nop
return rtems_deviceio_errno(status);
return 0;
}
2002280: 81 c7 e0 08 ret
2002284: 81 e8 00 00 restore
np->major,
np->minor,
(void *) &args
);
if ( status )
return rtems_deviceio_errno(status);
2002288: 40 00 1f 8d call 200a0bc <rtems_deviceio_errno> <== NOT EXECUTED
200228c: 01 00 00 00 nop <== NOT EXECUTED
return 0;
}
2002290: 81 c7 e0 08 ret <== NOT EXECUTED
2002294: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02002298 <devFS_read>:
ssize_t devFS_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
2002298: 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;
200229c: 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;
20022a0: 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;
20022a4: 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;
20022a8: f4 27 bf f4 st %i2, [ %fp + -12 ] <== NOT EXECUTED
args.flags = iop->flags;
args.bytes_moved = 0;
20022ac: 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;
20022b0: 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(
20022b4: d2 00 60 0c ld [ %g1 + 0xc ], %o1 <== NOT EXECUTED
20022b8: 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;
20022bc: c4 3f bf e8 std %g2, [ %fp + -24 ] <== NOT EXECUTED
args.buffer = buffer;
20022c0: 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;
20022c4: 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(
20022c8: 40 00 11 8e call 2006900 <rtems_io_read> <== NOT EXECUTED
20022cc: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED
np->major,
np->minor,
(void *) &args
);
if ( status )
20022d0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20022d4: 12 80 00 05 bne 20022e8 <devFS_read+0x50> <== NOT EXECUTED
20022d8: 01 00 00 00 nop <== NOT EXECUTED
return rtems_deviceio_errno(status);
return (ssize_t) args.bytes_moved;
20022dc: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED
}
20022e0: 81 c7 e0 08 ret <== NOT EXECUTED
20022e4: 81 e8 00 00 restore <== NOT EXECUTED
np->minor,
(void *) &args
);
if ( status )
return rtems_deviceio_errno(status);
20022e8: 40 00 1f 75 call 200a0bc <rtems_deviceio_errno> <== NOT EXECUTED
20022ec: 01 00 00 00 nop <== NOT EXECUTED
20022f0: 81 c7 e0 08 ret <== NOT EXECUTED
20022f4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
020022f8 <devFS_stat>:
int devFS_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
20022f8: 9d e3 bf a0 save %sp, -96, %sp
rtems_device_name_t *the_dev;
the_dev = (rtems_device_name_t *)loc->node_access;
20022fc: c2 06 00 00 ld [ %i0 ], %g1
if (!the_dev)
2002300: 80 a0 60 00 cmp %g1, 0
2002304: 02 80 00 0a be 200232c <devFS_stat+0x34> <== NEVER TAKEN
2002308: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EFAULT );
buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor );
200230c: c4 00 60 0c ld [ %g1 + 0xc ], %g2
buf->st_mode = the_dev->mode;
2002310: c6 00 60 10 ld [ %g1 + 0x10 ], %g3
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
2002314: 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 );
2002318: c4 26 60 1c st %g2, [ %i1 + 0x1c ]
buf->st_mode = the_dev->mode;
200231c: 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 );
2002320: c2 26 60 18 st %g1, [ %i1 + 0x18 ]
buf->st_mode = the_dev->mode;
return 0;
}
2002324: 81 c7 e0 08 ret
2002328: 91 e8 20 00 restore %g0, 0, %o0
{
rtems_device_name_t *the_dev;
the_dev = (rtems_device_name_t *)loc->node_access;
if (!the_dev)
rtems_set_errno_and_return_minus_one( EFAULT );
200232c: 40 00 27 6a call 200c0d4 <__errno> <== NOT EXECUTED
2002330: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2002334: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED
2002338: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200233c: 81 c7 e0 08 ret <== NOT EXECUTED
2002340: 81 e8 00 00 restore <== NOT EXECUTED
02002344 <devFS_write>:
ssize_t devFS_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
2002344: 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;
2002348: 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;
200234c: 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;
2002350: 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;
2002354: f4 27 bf f4 st %i2, [ %fp + -12 ]
args.flags = iop->flags;
args.bytes_moved = 0;
2002358: 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;
200235c: 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(
2002360: d2 00 60 0c ld [ %g1 + 0xc ], %o1
2002364: 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;
2002368: c4 3f bf e8 std %g2, [ %fp + -24 ]
args.buffer = (void *) buffer;
200236c: 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;
2002370: 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(
2002374: 40 00 11 7b call 2006960 <rtems_io_write>
2002378: 94 07 bf e0 add %fp, -32, %o2
np->major,
np->minor,
(void *) &args
);
if ( status )
200237c: 80 a2 20 00 cmp %o0, 0
2002380: 12 80 00 05 bne 2002394 <devFS_write+0x50> <== NEVER TAKEN
2002384: 01 00 00 00 nop
return rtems_deviceio_errno(status);
return (ssize_t) args.bytes_moved;
2002388: f0 07 bf fc ld [ %fp + -4 ], %i0
}
200238c: 81 c7 e0 08 ret
2002390: 81 e8 00 00 restore
np->minor,
(void *) &args
);
if ( status )
return rtems_deviceio_errno(status);
2002394: 40 00 1f 4a call 200a0bc <rtems_deviceio_errno> <== NOT EXECUTED
2002398: 01 00 00 00 nop <== NOT EXECUTED
200239c: 81 c7 e0 08 ret <== NOT EXECUTED
20023a0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0200f5c8 <device_close>:
*/
int device_close(
rtems_libio_t *iop
)
{
200f5c8: 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;
200f5cc: c2 06 20 3c ld [ %i0 + 0x3c ], %g1
args.iop = iop;
200f5d0: f0 27 bf f4 st %i0, [ %fp + -12 ]
args.flags = 0;
200f5d4: c0 27 bf f8 clr [ %fp + -8 ]
args.mode = 0;
200f5d8: c0 27 bf fc clr [ %fp + -4 ]
status = rtems_io_close(
200f5dc: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0
200f5e0: 94 07 bf f4 add %fp, -12, %o2
200f5e4: 40 00 02 70 call 200ffa4 <rtems_io_close>
200f5e8: b0 10 20 00 clr %i0
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status ) {
200f5ec: 80 a2 20 00 cmp %o0, 0
200f5f0: 12 80 00 04 bne 200f600 <device_close+0x38> <== NEVER TAKEN
200f5f4: 01 00 00 00 nop
return rtems_deviceio_errno(status);
}
return 0;
}
200f5f8: 81 c7 e0 08 ret
200f5fc: 81 e8 00 00 restore
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status ) {
return rtems_deviceio_errno(status);
200f600: 40 00 03 51 call 2010344 <rtems_deviceio_errno> <== NOT EXECUTED
200f604: 01 00 00 00 nop <== NOT EXECUTED
}
return 0;
}
200f608: 81 c7 e0 08 ret <== NOT EXECUTED
200f60c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0200f4c8 <device_ioctl>:
int device_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
200f4c8: 9d e3 bf 90 save %sp, -112, %sp
args.iop = iop;
args.command = command;
args.buffer = buffer;
the_jnode = iop->file_info;
200f4cc: 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;
200f4d0: f2 27 bf f4 st %i1, [ %fp + -12 ]
args.buffer = buffer;
200f4d4: 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;
200f4d8: f0 27 bf f0 st %i0, [ %fp + -16 ]
args.command = command;
args.buffer = buffer;
the_jnode = iop->file_info;
status = rtems_io_control(
200f4dc: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0
200f4e0: 40 00 02 c9 call 2010004 <rtems_io_control>
200f4e4: 94 07 bf f0 add %fp, -16, %o2
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
200f4e8: 80 a2 20 00 cmp %o0, 0
200f4ec: 12 80 00 05 bne 200f500 <device_ioctl+0x38> <== NEVER TAKEN
200f4f0: 01 00 00 00 nop
return rtems_deviceio_errno(status);
return args.ioctl_return;
200f4f4: f0 07 bf fc ld [ %fp + -4 ], %i0
}
200f4f8: 81 c7 e0 08 ret
200f4fc: 81 e8 00 00 restore
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
return rtems_deviceio_errno(status);
200f500: 40 00 03 91 call 2010344 <rtems_deviceio_errno> <== NOT EXECUTED
200f504: 01 00 00 00 nop <== NOT EXECUTED
200f508: 81 c7 e0 08 ret <== NOT EXECUTED
200f50c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0200f610 <device_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
200f610: 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;
200f614: 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;
200f618: c2 06 20 3c ld [ %i0 + 0x3c ], %g1
args.iop = iop;
200f61c: f0 27 bf f4 st %i0, [ %fp + -12 ]
args.flags = iop->flags;
200f620: c4 27 bf f8 st %g2, [ %fp + -8 ]
args.mode = mode;
200f624: f6 27 bf fc st %i3, [ %fp + -4 ]
status = rtems_io_open(
200f628: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0
200f62c: 94 07 bf f4 add %fp, -12, %o2
200f630: 40 00 02 8d call 2010064 <rtems_io_open>
200f634: b0 10 20 00 clr %i0
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
200f638: 80 a2 20 00 cmp %o0, 0
200f63c: 12 80 00 04 bne 200f64c <device_open+0x3c> <== NEVER TAKEN
200f640: 01 00 00 00 nop
return rtems_deviceio_errno(status);
return 0;
}
200f644: 81 c7 e0 08 ret
200f648: 81 e8 00 00 restore
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
return rtems_deviceio_errno(status);
200f64c: 40 00 03 3e call 2010344 <rtems_deviceio_errno> <== NOT EXECUTED
200f650: 01 00 00 00 nop <== NOT EXECUTED
return 0;
}
200f654: 81 c7 e0 08 ret <== NOT EXECUTED
200f658: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0200f56c <device_read>:
ssize_t device_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
200f56c: 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;
200f570: 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;
200f574: c2 06 20 3c ld [ %i0 + 0x3c ], %g1
args.iop = iop;
args.offset = iop->offset;
200f578: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4
args.buffer = buffer;
200f57c: 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;
200f580: d8 3f bf e8 std %o4, [ %fp + -24 ]
args.buffer = buffer;
args.count = count;
200f584: f4 27 bf f4 st %i2, [ %fp + -12 ]
args.flags = iop->flags;
200f588: 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;
200f58c: 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;
200f590: c0 27 bf fc clr [ %fp + -4 ]
status = rtems_io_read(
200f594: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0
200f598: 40 00 02 cb call 20100c4 <rtems_io_read>
200f59c: 94 07 bf e0 add %fp, -32, %o2
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
200f5a0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200f5a4: 12 80 00 05 bne 200f5b8 <device_read+0x4c> <== NOT EXECUTED
200f5a8: 01 00 00 00 nop <== NOT EXECUTED
return rtems_deviceio_errno(status);
return (ssize_t) args.bytes_moved;
200f5ac: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED
}
200f5b0: 81 c7 e0 08 ret <== NOT EXECUTED
200f5b4: 81 e8 00 00 restore <== NOT EXECUTED
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
return rtems_deviceio_errno(status);
200f5b8: 40 00 03 63 call 2010344 <rtems_deviceio_errno> <== NOT EXECUTED
200f5bc: 01 00 00 00 nop <== NOT EXECUTED
200f5c0: 81 c7 e0 08 ret <== NOT EXECUTED
200f5c4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0200f510 <device_write>:
ssize_t device_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
200f510: 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;
200f514: 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;
200f518: c2 06 20 3c ld [ %i0 + 0x3c ], %g1
args.iop = iop;
args.offset = iop->offset;
200f51c: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4
args.buffer = (void *) buffer;
200f520: 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;
200f524: d8 3f bf e8 std %o4, [ %fp + -24 ]
args.buffer = (void *) buffer;
args.count = count;
200f528: f4 27 bf f4 st %i2, [ %fp + -12 ]
args.flags = iop->flags;
200f52c: 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;
200f530: 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;
200f534: c0 27 bf fc clr [ %fp + -4 ]
status = rtems_io_write(
200f538: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0
200f53c: 40 00 02 fa call 2010124 <rtems_io_write>
200f540: 94 07 bf e0 add %fp, -32, %o2
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
200f544: 80 a2 20 00 cmp %o0, 0
200f548: 12 80 00 05 bne 200f55c <device_write+0x4c> <== NEVER TAKEN
200f54c: 01 00 00 00 nop
return rtems_deviceio_errno(status);
return (ssize_t) args.bytes_moved;
200f550: f0 07 bf fc ld [ %fp + -4 ], %i0
}
200f554: 81 c7 e0 08 ret
200f558: 81 e8 00 00 restore
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
return rtems_deviceio_errno(status);
200f55c: 40 00 03 7a call 2010344 <rtems_deviceio_errno> <== NOT EXECUTED
200f560: 01 00 00 00 nop <== NOT EXECUTED
200f564: 81 c7 e0 08 ret <== NOT EXECUTED
200f568: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02002b28 <disk_lock>:
*/
static volatile bool diskdevs_protected;
static rtems_status_code
disk_lock(void)
{
2002b28: 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);
2002b2c: 03 00 80 85 sethi %hi(0x2021400), %g1
2002b30: d0 00 62 a4 ld [ %g1 + 0x2a4 ], %o0 ! 20216a4 <diskdevs_mutex>
2002b34: 92 10 20 00 clr %o1
2002b38: 94 10 20 00 clr %o2
2002b3c: 40 00 14 63 call 2007cc8 <rtems_semaphore_obtain>
2002b40: b0 10 20 16 mov 0x16, %i0
if (sc == RTEMS_SUCCESSFUL) {
2002b44: 80 a2 20 00 cmp %o0, 0
2002b48: 12 80 00 05 bne 2002b5c <disk_lock+0x34> <== NEVER TAKEN
2002b4c: 84 10 20 01 mov 1, %g2
diskdevs_protected = true;
2002b50: 03 00 80 85 sethi %hi(0x2021400), %g1
2002b54: b0 10 20 00 clr %i0
2002b58: c4 28 62 a8 stb %g2, [ %g1 + 0x2a8 ]
return RTEMS_SUCCESSFUL;
} else {
return RTEMS_NOT_CONFIGURED;
}
}
2002b5c: 81 c7 e0 08 ret
2002b60: 81 e8 00 00 restore
02002b64 <disk_unlock>:
static void
disk_unlock(void)
{
2002b64: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code sc = RTEMS_SUCCESSFUL;
diskdevs_protected = false;
sc = rtems_semaphore_release(diskdevs_mutex);
2002b68: 03 00 80 85 sethi %hi(0x2021400), %g1
2002b6c: d0 00 62 a4 ld [ %g1 + 0x2a4 ], %o0 ! 20216a4 <diskdevs_mutex>
static void
disk_unlock(void)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
diskdevs_protected = false;
2002b70: 03 00 80 85 sethi %hi(0x2021400), %g1
2002b74: c0 28 62 a8 clrb [ %g1 + 0x2a8 ] ! 20216a8 <diskdevs_protected>
sc = rtems_semaphore_release(diskdevs_mutex);
2002b78: 40 00 14 9b call 2007de4 <rtems_semaphore_release>
2002b7c: 01 00 00 00 nop
if (sc != RTEMS_SUCCESSFUL) {
2002b80: 80 a2 20 00 cmp %o0, 0
2002b84: 12 80 00 04 bne 2002b94 <disk_unlock+0x30> <== NEVER TAKEN
2002b88: 11 37 ab 6f sethi %hi(0xdeadbc00), %o0
2002b8c: 81 c7 e0 08 ret
2002b90: 81 e8 00 00 restore
/* FIXME: Error number */
rtems_fatal_error_occurred(0xdeadbeef);
2002b94: 40 00 15 d4 call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
2002b98: 90 12 22 ef or %o0, 0x2ef, %o0 <== NOT EXECUTED
02004d38 <drainOutput>:
/*
* Drain output queue
*/
static void
drainOutput (struct rtems_termios_tty *tty)
{
2004d38: 9d e3 bf a0 save %sp, -96, %sp
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {
2004d3c: c2 06 20 b4 ld [ %i0 + 0xb4 ], %g1
2004d40: 80 a0 60 00 cmp %g1, 0
2004d44: 12 80 00 04 bne 2004d54 <drainOutput+0x1c> <== NEVER TAKEN
2004d48: 01 00 00 00 nop
2004d4c: 81 c7 e0 08 ret
2004d50: 81 e8 00 00 restore
rtems_interrupt_disable (level);
2004d54: 7f ff f4 d4 call 20020a4 <sparc_disable_interrupts> <== NOT EXECUTED
2004d58: 01 00 00 00 nop <== NOT EXECUTED
while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {
2004d5c: c4 06 20 84 ld [ %i0 + 0x84 ], %g2 <== NOT EXECUTED
2004d60: c2 06 20 80 ld [ %i0 + 0x80 ], %g1 <== NOT EXECUTED
2004d64: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2004d68: 02 80 00 14 be 2004db8 <drainOutput+0x80> <== NOT EXECUTED
2004d6c: 01 00 00 00 nop <== NOT EXECUTED
tty->rawOutBufState = rob_wait;
2004d70: a0 10 20 02 mov 2, %l0 ! 2 <PROM_START+0x2> <== NOT EXECUTED
2004d74: e0 26 20 94 st %l0, [ %i0 + 0x94 ] <== NOT EXECUTED
rtems_interrupt_enable (level);
2004d78: 7f ff f4 cf call 20020b4 <sparc_enable_interrupts> <== NOT EXECUTED
2004d7c: 01 00 00 00 nop <== NOT EXECUTED
sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore,
2004d80: d0 06 20 8c ld [ %i0 + 0x8c ], %o0 <== NOT EXECUTED
2004d84: 92 10 20 00 clr %o1 <== NOT EXECUTED
2004d88: 40 00 06 d3 call 20068d4 <rtems_semaphore_obtain> <== NOT EXECUTED
2004d8c: 94 10 20 00 clr %o2 <== NOT EXECUTED
RTEMS_WAIT,
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2004d90: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2004d94: 12 80 00 0b bne 2004dc0 <drainOutput+0x88> <== NOT EXECUTED
2004d98: 01 00 00 00 nop <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
rtems_interrupt_disable (level);
2004d9c: 7f ff f4 c2 call 20020a4 <sparc_disable_interrupts> <== NOT EXECUTED
2004da0: 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) {
2004da4: c4 06 20 84 ld [ %i0 + 0x84 ], %g2 <== NOT EXECUTED
2004da8: c2 06 20 80 ld [ %i0 + 0x80 ], %g1 <== NOT EXECUTED
2004dac: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2004db0: 32 bf ff f2 bne,a 2004d78 <drainOutput+0x40> <== NOT EXECUTED
2004db4: e0 26 20 94 st %l0, [ %i0 + 0x94 ] <== NOT EXECUTED
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
rtems_interrupt_disable (level);
}
rtems_interrupt_enable (level);
2004db8: 7f ff f4 bf call 20020b4 <sparc_enable_interrupts> <== NOT EXECUTED
2004dbc: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
rtems_interrupt_enable (level);
sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore,
RTEMS_WAIT,
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
2004dc0: 40 00 08 64 call 2006f50 <rtems_fatal_error_occurred> <== NOT EXECUTED
0200346c <dup2>:
int dup2(
int fildes,
int fildes2
)
{
200346c: 9d e3 bf 58 save %sp, -168, %sp
/*
* If fildes is not valid, then fildes2 should not be closed.
*/
status = fstat( fildes, &buf );
2003470: a0 07 bf b8 add %fp, -72, %l0
2003474: 90 10 00 18 mov %i0, %o0
2003478: 40 00 01 ed call 2003c2c <fstat>
200347c: 92 10 00 10 mov %l0, %o1
if ( status == -1 )
2003480: 80 a2 3f ff cmp %o0, -1
2003484: 12 80 00 04 bne 2003494 <dup2+0x28> <== ALWAYS TAKEN
2003488: 92 10 00 10 mov %l0, %o1
/*
* This fcntl handles everything else.
*/
return fcntl( fildes, F_DUPFD, fildes2 );
}
200348c: 81 c7 e0 08 ret
2003490: 91 e8 3f ff restore %g0, -1, %o0
/*
* If fildes2 is not valid, then we should not do anything either.
*/
status = fstat( fildes2, &buf );
2003494: 40 00 01 e6 call 2003c2c <fstat>
2003498: 90 10 00 19 mov %i1, %o0
if ( status == -1 )
200349c: 80 a2 3f ff cmp %o0, -1
20034a0: 02 bf ff fb be 200348c <dup2+0x20> <== ALWAYS TAKEN
20034a4: 90 10 00 18 mov %i0, %o0
/*
* This fcntl handles everything else.
*/
return fcntl( fildes, F_DUPFD, fildes2 );
20034a8: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
20034ac: 40 00 00 a2 call 2003734 <fcntl> <== NOT EXECUTED
20034b0: 92 10 20 00 clr %o1 <== NOT EXECUTED
20034b4: 81 c7 e0 08 ret <== NOT EXECUTED
20034b8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02004764 <echo>:
/*
* Echo a typed character
*/
static void
echo (unsigned char c, struct rtems_termios_tty *tty)
{
2004764: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) {
2004768: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED
200476c: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED
2004770: 02 80 00 09 be 2004794 <echo+0x30> <== NOT EXECUTED
2004774: 90 0e 20 ff and %i0, 0xff, %o0 <== NOT EXECUTED
2004778: 05 00 80 74 sethi %hi(0x201d000), %g2 <== NOT EXECUTED
200477c: c4 00 a2 78 ld [ %g2 + 0x278 ], %g2 ! 201d278 <__ctype_ptr__><== NOT EXECUTED
2004780: 82 00 80 08 add %g2, %o0, %g1 <== NOT EXECUTED
2004784: c2 08 60 01 ldub [ %g1 + 1 ], %g1 <== NOT EXECUTED
2004788: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED
200478c: 12 80 00 06 bne 20047a4 <echo+0x40> <== NOT EXECUTED
2004790: 80 a2 20 09 cmp %o0, 9 <== NOT EXECUTED
echobuf[1] = c ^ 0x40;
rtems_termios_puts (echobuf, 2, tty);
tty->column += 2;
}
else {
oproc (c, tty);
2004794: 7f ff ff 87 call 20045b0 <oproc> <== NOT EXECUTED
2004798: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
200479c: 81 c7 e0 08 ret <== NOT EXECUTED
20047a0: 81 e8 00 00 restore <== 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')) {
20047a4: 02 bf ff fc be 2004794 <echo+0x30> <== NOT EXECUTED
20047a8: 80 a2 20 0a cmp %o0, 0xa <== NOT EXECUTED
20047ac: 02 bf ff fa be 2004794 <echo+0x30> <== NOT EXECUTED
20047b0: 82 10 20 5e mov 0x5e, %g1 <== NOT EXECUTED
char echobuf[2];
echobuf[0] = '^';
echobuf[1] = c ^ 0x40;
20047b4: 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] = '^';
20047b8: c2 2f bf f8 stb %g1, [ %fp + -8 ] <== NOT EXECUTED
echobuf[1] = c ^ 0x40;
20047bc: f0 2f bf f9 stb %i0, [ %fp + -7 ] <== NOT EXECUTED
rtems_termios_puts (echobuf, 2, tty);
20047c0: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED
20047c4: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
20047c8: 7f ff ff 2b call 2004474 <rtems_termios_puts> <== NOT EXECUTED
20047cc: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
tty->column += 2;
20047d0: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 <== NOT EXECUTED
20047d4: 82 00 60 02 add %g1, 2, %g1 <== NOT EXECUTED
20047d8: 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')) {
20047dc: 81 c7 e0 08 ret <== NOT EXECUTED
20047e0: 81 e8 00 00 restore <== NOT EXECUTED
0202c8f0 <endgrent>:
group_fp = fopen("/etc/group", "r");
}
void endgrent(void)
{
if (group_fp != NULL)
202c8f0: 03 00 81 cb sethi %hi(0x2072c00), %g1 <== NOT EXECUTED
202c8f4: d0 00 61 cc ld [ %g1 + 0x1cc ], %o0 ! 2072dcc <group_fp> <== NOT EXECUTED
202c8f8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202c8fc: 02 80 00 05 be 202c910 <endgrent+0x20> <== NOT EXECUTED
202c900: 01 00 00 00 nop <== NOT EXECUTED
fclose(group_fp);
202c904: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
202c908: 40 00 71 27 call 2048da4 <fclose> <== NOT EXECUTED
202c90c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
202c910: 81 c3 e0 08 retl <== NOT EXECUTED
0202c918 <endpwent>:
passwd_fp = fopen("/etc/passwd", "r");
}
void endpwent(void)
{
if (passwd_fp != NULL)
202c918: 03 00 81 cb sethi %hi(0x2072c00), %g1 <== NOT EXECUTED
202c91c: d0 00 60 e4 ld [ %g1 + 0xe4 ], %o0 ! 2072ce4 <passwd_fp> <== NOT EXECUTED
202c920: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202c924: 02 80 00 05 be 202c938 <endpwent+0x20> <== NOT EXECUTED
202c928: 01 00 00 00 nop <== NOT EXECUTED
fclose(passwd_fp);
202c92c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
202c930: 40 00 71 1d call 2048da4 <fclose> <== NOT EXECUTED
202c934: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
202c938: 81 c3 e0 08 retl <== NOT EXECUTED
020047e4 <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)
{
20047e4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (tty->ccount == 0)
20047e8: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED
20047ec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20047f0: 02 80 00 36 be 20048c8 <erase+0xe4> <== NOT EXECUTED
20047f4: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
return;
if (lineFlag) {
20047f8: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
20047fc: 12 80 00 35 bne 20048d0 <erase+0xec> <== NOT EXECUTED
2004800: c4 06 20 3c ld [ %i0 + 0x3c ], %g2 <== NOT EXECUTED
rtems_termios_puts ("\b", 1, tty);
tty->column--;
}
}
else {
if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {
2004804: 27 00 80 74 sethi %hi(0x201d000), %l3 <== NOT EXECUTED
2004808: 29 00 80 70 sethi %hi(0x201c000), %l4 <== NOT EXECUTED
200480c: 25 00 80 70 sethi %hi(0x201c000), %l2 <== NOT EXECUTED
2004810: a6 14 e2 78 or %l3, 0x278, %l3 <== NOT EXECUTED
rtems_termios_puts ("\b \b", 3, tty);
2004814: a8 15 20 20 or %l4, 0x20, %l4 <== NOT EXECUTED
/*
* Back up over the tab
*/
while (tty->column > col) {
rtems_termios_puts ("\b", 1, tty);
2004818: 10 80 00 0c b 2004848 <erase+0x64> <== NOT EXECUTED
200481c: a4 14 a0 18 or %l2, 0x18, %l2 <== NOT EXECUTED
tty->column--;
}
}
else {
if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {
2004820: 12 80 00 6a bne 20049c8 <erase+0x1e4> <== NOT EXECUTED
2004824: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
if (tty->column)
tty->column--;
}
}
}
if (!lineFlag)
2004828: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
200482c: 02 80 00 63 be 20049b8 <erase+0x1d4> <== NOT EXECUTED
2004830: 01 00 00 00 nop <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOK)
echo ('\n', tty);
return;
}
}
while (tty->ccount) {
2004834: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED
2004838: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200483c: 02 80 00 5f be 20049b8 <erase+0x1d4> <== NOT EXECUTED
2004840: 01 00 00 00 nop <== NOT EXECUTED
2004844: c4 04 20 3c ld [ %l0 + 0x3c ], %g2 <== NOT EXECUTED
unsigned char c = tty->cbuf[--tty->ccount];
2004848: c8 04 20 1c ld [ %l0 + 0x1c ], %g4 <== NOT EXECUTED
200484c: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
2004850: c2 24 20 20 st %g1, [ %l0 + 0x20 ] <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO) {
2004854: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED
2004858: 02 bf ff f4 be 2004828 <erase+0x44> <== NOT EXECUTED
200485c: e2 09 00 01 ldub [ %g4 + %g1 ], %l1 <== NOT EXECUTED
if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {
2004860: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2004864: 12 80 00 05 bne 2004878 <erase+0x94> <== NOT EXECUTED
2004868: a2 0c 60 ff and %l1, 0xff, %l1 <== NOT EXECUTED
200486c: 80 88 a0 10 btst 0x10, %g2 <== NOT EXECUTED
2004870: 22 80 00 54 be,a 20049c0 <erase+0x1dc> <== NOT EXECUTED
2004874: f0 0c 20 43 ldub [ %l0 + 0x43 ], %i0 <== NOT EXECUTED
echo (tty->termios.c_cc[VERASE], tty);
}
else if (c == '\t') {
2004878: 80 a4 60 09 cmp %l1, 9 <== NOT EXECUTED
200487c: 02 80 00 24 be 200490c <erase+0x128> <== NOT EXECUTED
2004880: a2 04 60 01 inc %l1 <== NOT EXECUTED
rtems_termios_puts ("\b", 1, tty);
tty->column--;
}
}
else {
if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {
2004884: c2 04 c0 00 ld [ %l3 ], %g1 <== NOT EXECUTED
2004888: c2 08 40 11 ldub [ %g1 + %l1 ], %g1 <== NOT EXECUTED
200488c: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED
2004890: 12 bf ff e4 bne 2004820 <erase+0x3c> <== NOT EXECUTED
2004894: 80 88 a2 00 btst 0x200, %g2 <== 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);
2004898: 11 00 80 70 sethi %hi(0x201c000), %o0 <== NOT EXECUTED
200489c: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED
20048a0: 90 12 20 20 or %o0, 0x20, %o0 <== NOT EXECUTED
20048a4: 7f ff fe f4 call 2004474 <rtems_termios_puts> <== NOT EXECUTED
20048a8: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
if (tty->column)
20048ac: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED
20048b0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20048b4: 02 bf ff de be 200482c <erase+0x48> <== NOT EXECUTED
20048b8: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
tty->column--;
20048bc: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
}
}
}
if (!lineFlag)
20048c0: 12 bf ff dd bne 2004834 <erase+0x50> <== NOT EXECUTED
20048c4: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED
20048c8: 81 c7 e0 08 ret <== NOT EXECUTED
20048cc: 81 e8 00 00 restore <== NOT EXECUTED
erase (struct rtems_termios_tty *tty, int lineFlag)
{
if (tty->ccount == 0)
return;
if (lineFlag) {
if (!(tty->termios.c_lflag & ECHO)) {
20048d0: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED
20048d4: 02 80 00 38 be 20049b4 <erase+0x1d0> <== NOT EXECUTED
20048d8: 80 88 a0 10 btst 0x10, %g2 <== NOT EXECUTED
tty->ccount = 0;
return;
}
if (!(tty->termios.c_lflag & ECHOE)) {
20048dc: 12 bf ff cb bne 2004808 <erase+0x24> <== NOT EXECUTED
20048e0: 27 00 80 74 sethi %hi(0x201d000), %l3 <== NOT EXECUTED
tty->ccount = 0;
echo (tty->termios.c_cc[VKILL], tty);
20048e4: 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;
20048e8: c0 26 20 20 clr [ %i0 + 0x20 ] <== NOT EXECUTED
echo (tty->termios.c_cc[VKILL], tty);
20048ec: 7f ff ff 9e call 2004764 <echo> <== NOT EXECUTED
20048f0: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOK)
20048f4: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED
20048f8: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED
20048fc: 02 bf ff f3 be 20048c8 <erase+0xe4> <== NOT EXECUTED
2004900: b2 10 00 18 mov %i0, %i1 <== NOT EXECUTED
echo ('\n', tty);
2004904: 7f ff ff 98 call 2004764 <echo> <== NOT EXECUTED
2004908: 91 e8 20 0a restore %g0, 0xa, %o0 <== NOT EXECUTED
int i = 0;
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
200490c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2004910: 02 80 00 17 be 200496c <erase+0x188> <== NOT EXECUTED
2004914: e2 04 20 2c ld [ %l0 + 0x2c ], %l1 <== NOT EXECUTED
c = tty->cbuf[i++];
if (c == '\t') {
col = (col | 7) + 1;
}
else if (iscntrl (c)) {
if (tty->termios.c_lflag & ECHOCTL)
2004918: 96 08 a2 00 and %g2, 0x200, %o3 <== NOT EXECUTED
while (i != tty->ccount) {
c = tty->cbuf[i++];
if (c == '\t') {
col = (col | 7) + 1;
}
else if (iscntrl (c)) {
200491c: d8 04 c0 00 ld [ %l3 ], %o4 <== NOT EXECUTED
2004920: 10 80 00 07 b 200493c <erase+0x158> <== NOT EXECUTED
2004924: 84 10 20 00 clr %g2 <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOCTL)
2004928: 32 80 00 02 bne,a 2004930 <erase+0x14c> <== NOT EXECUTED
200492c: a2 04 60 02 add %l1, 2, %l1 <== NOT EXECUTED
int i = 0;
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
2004930: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2004934: 22 80 00 0f be,a 2004970 <erase+0x18c> <== NOT EXECUTED
2004938: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED
c = tty->cbuf[i++];
200493c: c6 09 00 02 ldub [ %g4 + %g2 ], %g3 <== NOT EXECUTED
2004940: 84 00 a0 01 inc %g2 <== NOT EXECUTED
if (c == '\t') {
2004944: 80 a0 e0 09 cmp %g3, 9 <== NOT EXECUTED
2004948: 02 80 00 18 be 20049a8 <erase+0x1c4> <== NOT EXECUTED
200494c: 9a 03 00 03 add %o4, %g3, %o5 <== NOT EXECUTED
col = (col | 7) + 1;
}
else if (iscntrl (c)) {
2004950: c6 0b 60 01 ldub [ %o5 + 1 ], %g3 <== NOT EXECUTED
2004954: 80 88 e0 20 btst 0x20, %g3 <== NOT EXECUTED
2004958: 12 bf ff f4 bne 2004928 <erase+0x144> <== NOT EXECUTED
200495c: 80 a2 e0 00 cmp %o3, 0 <== NOT EXECUTED
int i = 0;
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
2004960: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2004964: 12 bf ff f6 bne 200493c <erase+0x158> <== NOT EXECUTED
2004968: a2 04 60 01 inc %l1 <== NOT EXECUTED
}
/*
* Back up over the tab
*/
while (tty->column > col) {
200496c: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED
2004970: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
2004974: 16 bf ff ae bge 200482c <erase+0x48> <== NOT EXECUTED
2004978: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
rtems_termios_puts ("\b", 1, tty);
200497c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2004980: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2004984: 7f ff fe bc call 2004474 <rtems_termios_puts> <== NOT EXECUTED
2004988: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
tty->column--;
200498c: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED
2004990: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
}
/*
* Back up over the tab
*/
while (tty->column > col) {
2004994: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
2004998: 06 bf ff f9 bl 200497c <erase+0x198> <== NOT EXECUTED
200499c: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED
if (tty->column)
tty->column--;
}
}
}
if (!lineFlag)
20049a0: 10 bf ff a3 b 200482c <erase+0x48> <== NOT EXECUTED
20049a4: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
* Find the character before the tab
*/
while (i != tty->ccount) {
c = tty->cbuf[i++];
if (c == '\t') {
col = (col | 7) + 1;
20049a8: a2 14 60 07 or %l1, 7, %l1 <== NOT EXECUTED
20049ac: 10 bf ff e1 b 2004930 <erase+0x14c> <== NOT EXECUTED
20049b0: a2 04 60 01 inc %l1 <== NOT EXECUTED
{
if (tty->ccount == 0)
return;
if (lineFlag) {
if (!(tty->termios.c_lflag & ECHO)) {
tty->ccount = 0;
20049b4: c0 26 20 20 clr [ %i0 + 0x20 ] <== NOT EXECUTED
return;
20049b8: 81 c7 e0 08 ret <== NOT EXECUTED
20049bc: 81 e8 00 00 restore <== NOT EXECUTED
while (tty->ccount) {
unsigned char c = tty->cbuf[--tty->ccount];
if (tty->termios.c_lflag & ECHO) {
if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {
echo (tty->termios.c_cc[VERASE], tty);
20049c0: 7f ff ff 69 call 2004764 <echo> <== NOT EXECUTED
20049c4: 93 e8 00 10 restore %g0, %l0, %o1 <== NOT EXECUTED
tty->column--;
}
}
else {
if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {
rtems_termios_puts ("\b \b", 3, tty);
20049c8: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED
20049cc: 7f ff fe aa call 2004474 <rtems_termios_puts> <== NOT EXECUTED
20049d0: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
if (tty->column)
20049d4: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED
20049d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20049dc: 22 80 00 05 be,a 20049f0 <erase+0x20c> <== NOT EXECUTED
20049e0: c2 04 c0 00 ld [ %l3 ], %g1 <== NOT EXECUTED
tty->column--;
20049e4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
20049e8: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED
}
if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {
20049ec: c2 04 c0 00 ld [ %l3 ], %g1 <== NOT EXECUTED
20049f0: c2 08 40 11 ldub [ %g1 + %l1 ], %g1 <== NOT EXECUTED
20049f4: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED
20049f8: 02 bf ff a9 be 200489c <erase+0xb8> <== NOT EXECUTED
20049fc: 11 00 80 70 sethi %hi(0x201c000), %o0 <== NOT EXECUTED
2004a00: c4 04 20 3c ld [ %l0 + 0x3c ], %g2 <== NOT EXECUTED
2004a04: 80 88 a2 00 btst 0x200, %g2 <== NOT EXECUTED
2004a08: 12 bf ff a6 bne 20048a0 <erase+0xbc> <== NOT EXECUTED
2004a0c: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED
if (tty->column)
tty->column--;
}
}
}
if (!lineFlag)
2004a10: 10 bf ff 87 b 200482c <erase+0x48> <== NOT EXECUTED
2004a14: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
02029318 <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)
{
2029318: 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)
202931c: c2 0e 20 85 ldub [ %i0 + 0x85 ], %g1 <== NOT EXECUTED
2029320: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2029324: 02 80 00 5c be 2029494 <fat_buf_access+0x17c> <== NOT EXECUTED
2029328: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED
202932c: c2 06 20 80 ld [ %i0 + 0x80 ], %g1 <== NOT EXECUTED
fs_info->c.blk_num = blk;
fs_info->c.modified = 0;
fs_info->c.state = FAT_CACHE_ACTUAL;
}
sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) &&
2029330: c4 16 20 14 lduh [ %i0 + 0x14 ], %g2 <== NOT EXECUTED
2029334: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2029338: 08 80 00 67 bleu 20294d4 <fat_buf_access+0x1bc> <== NOT EXECUTED
202933c: a0 10 20 00 clr %l0 <== NOT EXECUTED
(fs_info->c.blk_num < fs_info->vol.rdir_loc));
if (fs_info->c.blk_num != blk)
2029340: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
2029344: 22 80 00 51 be,a 2029488 <fat_buf_access+0x170> <== NOT EXECUTED
2029348: c2 06 20 88 ld [ %i0 + 0x88 ], %g1 <== NOT EXECUTED
{
if (fs_info->c.modified)
202934c: c2 0e 20 84 ldub [ %i0 + 0x84 ], %g1 <== NOT EXECUTED
2029350: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2029354: 02 80 00 3c be 2029444 <fat_buf_access+0x12c> <== NOT EXECUTED
2029358: a0 8c 20 ff andcc %l0, 0xff, %l0 <== NOT EXECUTED
{
if (sec_of_fat && !fs_info->vol.mirror)
202935c: 02 80 00 06 be 2029374 <fat_buf_access+0x5c> <== NOT EXECUTED
2029360: 01 00 00 00 nop <== NOT EXECUTED
2029364: c2 0e 20 48 ldub [ %i0 + 0x48 ], %g1 <== NOT EXECUTED
2029368: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202936c: 22 80 00 63 be,a 20294f8 <fat_buf_access+0x1e0> <== NOT EXECUTED
2029370: c2 06 20 88 ld [ %i0 + 0x88 ], %g1 <== NOT EXECUTED
memcpy(fs_info->sec_buf, fs_info->c.buf->buffer,
fs_info->vol.bps);
sc = rtems_bdbuf_release_modified(fs_info->c.buf);
2029374: 7f ff 6e 57 call 2004cd0 <rtems_bdbuf_release_modified> <== NOT EXECUTED
2029378: d0 06 20 88 ld [ %i0 + 0x88 ], %o0 <== NOT EXECUTED
fs_info->c.state = FAT_CACHE_EMPTY;
202937c: c0 2e 20 85 clrb [ %i0 + 0x85 ] <== NOT EXECUTED
fs_info->c.modified = 0;
if (sc != RTEMS_SUCCESSFUL)
2029380: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029384: 12 80 00 67 bne 2029520 <fat_buf_access+0x208> <== NOT EXECUTED
2029388: 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)
202938c: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
2029390: 02 80 00 33 be 202945c <fat_buf_access+0x144> <== NOT EXECUTED
2029394: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED
2029398: c2 0e 20 48 ldub [ %i0 + 0x48 ], %g1 <== NOT EXECUTED
202939c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20293a0: 12 80 00 2f bne 202945c <fat_buf_access+0x144> <== NOT EXECUTED
20293a4: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED
{
rtems_bdbuf_buffer *b;
for (i = 1; i < fs_info->vol.fats; i++)
20293a8: c2 0e 20 09 ldub [ %i0 + 9 ], %g1 <== NOT EXECUTED
20293ac: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
20293b0: 08 80 00 2a bleu 2029458 <fat_buf_access+0x140> <== NOT EXECUTED
20293b4: a0 10 20 01 mov 1, %l0 <== NOT EXECUTED
20293b8: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED
20293bc: 10 80 00 10 b 20293fc <fat_buf_access+0xe4> <== NOT EXECUTED
20293c0: a2 07 bf fc add %fp, -4, %l1 <== NOT EXECUTED
fs_info->c.blk_num +
fs_info->vol.fat_length * i,
&b);
if ( sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(ENOMEM);
memcpy(b->buffer, fs_info->sec_buf, fs_info->vol.bps);
20293c4: d2 06 20 8c ld [ %i0 + 0x8c ], %o1 <== NOT EXECUTED
20293c8: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
20293cc: d4 16 00 00 lduh [ %i0 ], %o2 <== NOT EXECUTED
20293d0: 40 00 8b 69 call 204c174 <memcpy> <== NOT EXECUTED
20293d4: a0 04 20 01 inc %l0 <== NOT EXECUTED
sc = rtems_bdbuf_release_modified(b);
20293d8: 7f ff 6e 3e call 2004cd0 <rtems_bdbuf_release_modified> <== NOT EXECUTED
20293dc: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
if ( sc != RTEMS_SUCCESSFUL)
20293e0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20293e4: 12 80 00 12 bne 202942c <fat_buf_access+0x114> <== NOT EXECUTED
20293e8: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED
if (sec_of_fat && !fs_info->vol.mirror)
{
rtems_bdbuf_buffer *b;
for (i = 1; i < fs_info->vol.fats; i++)
20293ec: c2 0e 20 09 ldub [ %i0 + 9 ], %g1 <== NOT EXECUTED
20293f0: 80 a0 40 08 cmp %g1, %o0 <== NOT EXECUTED
20293f4: 08 80 00 1a bleu 202945c <fat_buf_access+0x144> <== NOT EXECUTED
20293f8: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED
{
sc = rtems_bdbuf_get(fs_info->vol.dev,
20293fc: d2 06 20 18 ld [ %i0 + 0x18 ], %o1 <== NOT EXECUTED
2029400: 7f ff 65 e3 call 2002b8c <.umul> <== NOT EXECUTED
2029404: e4 1e 20 58 ldd [ %i0 + 0x58 ], %l2 <== NOT EXECUTED
2029408: d4 06 20 80 ld [ %i0 + 0x80 ], %o2 <== NOT EXECUTED
202940c: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
2029410: 94 02 00 0a add %o0, %o2, %o2 <== NOT EXECUTED
2029414: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2029418: 7f ff 72 f7 call 2005ff4 <rtems_bdbuf_get> <== NOT EXECUTED
202941c: 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)
2029420: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029424: 02 bf ff e8 be 20293c4 <fat_buf_access+0xac> <== NOT EXECUTED
2029428: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
memcpy(b->buffer, fs_info->sec_buf, fs_info->vol.bps);
sc = rtems_bdbuf_release_modified(b);
if ( sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(ENOMEM);
202942c: 40 00 7e 06 call 2048c44 <__errno> <== NOT EXECUTED
2029430: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2029434: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
2029438: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202943c: 81 c7 e0 08 ret <== NOT EXECUTED
2029440: 81 e8 00 00 restore <== NOT EXECUTED
}
}
}
else
{
sc = rtems_bdbuf_release(fs_info->c.buf);
2029444: 7f ff 6e 46 call 2004d5c <rtems_bdbuf_release> <== NOT EXECUTED
2029448: d0 06 20 88 ld [ %i0 + 0x88 ], %o0 <== NOT EXECUTED
fs_info->c.state = FAT_CACHE_EMPTY;
if (sc != RTEMS_SUCCESSFUL)
202944c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029450: 12 80 00 34 bne 2029520 <fat_buf_access+0x208> <== NOT EXECUTED
2029454: c0 2e 20 85 clrb [ %i0 + 0x85 ] <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
}
if (op_type == FAT_OP_TYPE_READ)
2029458: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED
202945c: 02 80 00 2c be 202950c <fat_buf_access+0x1f4> <== NOT EXECUTED
2029460: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
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);
2029464: d0 1e 20 58 ldd [ %i0 + 0x58 ], %o0 <== NOT EXECUTED
2029468: 7f ff 72 e3 call 2005ff4 <rtems_bdbuf_get> <== NOT EXECUTED
202946c: 96 06 20 88 add %i0, 0x88, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2029470: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029474: 12 80 00 2b bne 2029520 <fat_buf_access+0x208> <== NOT EXECUTED
2029478: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
fs_info->c.blk_num = blk;
202947c: f2 26 20 80 st %i1, [ %i0 + 0x80 ] <== NOT EXECUTED
fs_info->c.state = FAT_CACHE_ACTUAL;
2029480: c2 2e 20 85 stb %g1, [ %i0 + 0x85 ] <== NOT EXECUTED
}
*buf = fs_info->c.buf;
2029484: c2 06 20 88 ld [ %i0 + 0x88 ], %g1 <== NOT EXECUTED
2029488: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED
return RC_OK;
}
202948c: 81 c7 e0 08 ret <== NOT EXECUTED
2029490: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
bool sec_of_fat;
if (fs_info->c.state == FAT_CACHE_EMPTY)
{
if (op_type == FAT_OP_TYPE_READ)
2029494: 02 80 00 14 be 20294e4 <fat_buf_access+0x1cc> <== NOT EXECUTED
2029498: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
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);
202949c: d0 1e 20 58 ldd [ %i0 + 0x58 ], %o0 <== NOT EXECUTED
20294a0: 7f ff 72 d5 call 2005ff4 <rtems_bdbuf_get> <== NOT EXECUTED
20294a4: 96 06 20 88 add %i0, 0x88, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
20294a8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20294ac: 12 80 00 1d bne 2029520 <fat_buf_access+0x208> <== NOT EXECUTED
20294b0: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
fs_info->c.blk_num = blk;
fs_info->c.modified = 0;
fs_info->c.state = FAT_CACHE_ACTUAL;
}
sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) &&
20294b4: c4 16 20 14 lduh [ %i0 + 0x14 ], %g2 <== NOT EXECUTED
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);
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
fs_info->c.blk_num = blk;
20294b8: f2 26 20 80 st %i1, [ %i0 + 0x80 ] <== NOT EXECUTED
fs_info->c.modified = 0;
fs_info->c.state = FAT_CACHE_ACTUAL;
20294bc: c2 2e 20 85 stb %g1, [ %i0 + 0x85 ] <== NOT EXECUTED
else
sc = rtems_bdbuf_get(fs_info->vol.dev, blk, &fs_info->c.buf);
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
fs_info->c.blk_num = blk;
fs_info->c.modified = 0;
20294c0: c0 2e 20 84 clrb [ %i0 + 0x84 ] <== NOT EXECUTED
fs_info->c.state = FAT_CACHE_ACTUAL;
20294c4: 82 10 00 19 mov %i1, %g1 <== NOT EXECUTED
}
sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) &&
20294c8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
20294cc: 18 bf ff 9d bgu 2029340 <fat_buf_access+0x28> <== NOT EXECUTED
20294d0: a0 10 20 00 clr %l0 <== NOT EXECUTED
20294d4: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 <== NOT EXECUTED
20294d8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
20294dc: 10 bf ff 99 b 2029340 <fat_buf_access+0x28> <== NOT EXECUTED
20294e0: a0 40 20 00 addx %g0, 0, %l0 <== 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);
20294e4: d0 1e 20 58 ldd [ %i0 + 0x58 ], %o0 <== NOT EXECUTED
20294e8: 7f ff 72 f8 call 20060c8 <rtems_bdbuf_read> <== NOT EXECUTED
20294ec: 96 06 20 88 add %i0, 0x88, %o3 <== NOT EXECUTED
else
sc = rtems_bdbuf_get(fs_info->vol.dev, blk, &fs_info->c.buf);
if (sc != RTEMS_SUCCESSFUL)
20294f0: 10 bf ff ef b 20294ac <fat_buf_access+0x194> <== NOT EXECUTED
20294f4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
if (fs_info->c.blk_num != blk)
{
if (fs_info->c.modified)
{
if (sec_of_fat && !fs_info->vol.mirror)
memcpy(fs_info->sec_buf, fs_info->c.buf->buffer,
20294f8: d0 06 20 8c ld [ %i0 + 0x8c ], %o0 <== NOT EXECUTED
20294fc: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
2029500: 40 00 8b 1d call 204c174 <memcpy> <== NOT EXECUTED
2029504: d4 16 00 00 lduh [ %i0 ], %o2 <== NOT EXECUTED
2029508: 30 bf ff 9b b,a 2029374 <fat_buf_access+0x5c> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
}
if (op_type == FAT_OP_TYPE_READ)
sc = rtems_bdbuf_read(fs_info->vol.dev, blk, &fs_info->c.buf);
202950c: d0 1e 20 58 ldd [ %i0 + 0x58 ], %o0 <== NOT EXECUTED
2029510: 7f ff 72 ee call 20060c8 <rtems_bdbuf_read> <== NOT EXECUTED
2029514: 96 06 20 88 add %i0, 0x88, %o3 <== NOT EXECUTED
else
sc = rtems_bdbuf_get(fs_info->vol.dev, blk, &fs_info->c.buf);
if (sc != RTEMS_SUCCESSFUL)
2029518: 10 bf ff d7 b 2029474 <fat_buf_access+0x15c> <== NOT EXECUTED
202951c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2029520: 40 00 7d c9 call 2048c44 <__errno> <== NOT EXECUTED
2029524: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2029528: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
202952c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2029530: 81 c7 e0 08 ret <== NOT EXECUTED
2029534: 81 e8 00 00 restore <== NOT EXECUTED
0202917c <fat_buf_release>:
return RC_OK;
}
int
fat_buf_release(fat_fs_info_t *fs_info)
{
202917c: 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)
2029180: c2 0e 20 85 ldub [ %i0 + 0x85 ], %g1 <== NOT EXECUTED
return RC_OK;
}
int
fat_buf_release(fat_fs_info_t *fs_info)
{
2029184: 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)
2029188: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202918c: 02 80 00 41 be 2029290 <fat_buf_release+0x114> <== NOT EXECUTED
2029190: b0 10 20 00 clr %i0 <== NOT EXECUTED
return RC_OK;
sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) &&
2029194: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 <== NOT EXECUTED
2029198: c4 14 20 14 lduh [ %l0 + 0x14 ], %g2 <== NOT EXECUTED
202919c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
20291a0: 1a 80 00 46 bcc 20292b8 <fat_buf_release+0x13c> <== NOT EXECUTED
20291a4: a2 10 20 00 clr %l1 <== NOT EXECUTED
(fs_info->c.blk_num < fs_info->vol.rdir_loc));
if (fs_info->c.modified)
20291a8: c2 0c 20 84 ldub [ %l0 + 0x84 ], %g1 <== NOT EXECUTED
20291ac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20291b0: 02 80 00 3a be 2029298 <fat_buf_release+0x11c> <== NOT EXECUTED
20291b4: a2 8c 60 ff andcc %l1, 0xff, %l1 <== NOT EXECUTED
{
if (sec_of_fat && !fs_info->vol.mirror)
20291b8: 02 80 00 06 be 20291d0 <fat_buf_release+0x54> <== NOT EXECUTED
20291bc: 01 00 00 00 nop <== NOT EXECUTED
20291c0: c2 0c 20 48 ldub [ %l0 + 0x48 ], %g1 <== NOT EXECUTED
20291c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20291c8: 22 80 00 44 be,a 20292d8 <fat_buf_release+0x15c> <== NOT EXECUTED
20291cc: c2 04 20 88 ld [ %l0 + 0x88 ], %g1 <== NOT EXECUTED
memcpy(fs_info->sec_buf, fs_info->c.buf->buffer, fs_info->vol.bps);
sc = rtems_bdbuf_release_modified(fs_info->c.buf);
20291d0: 7f ff 6e c0 call 2004cd0 <rtems_bdbuf_release_modified> <== NOT EXECUTED
20291d4: d0 04 20 88 ld [ %l0 + 0x88 ], %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
20291d8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20291dc: 12 80 00 44 bne 20292ec <fat_buf_release+0x170> <== NOT EXECUTED
20291e0: 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)
20291e4: 02 80 00 32 be 20292ac <fat_buf_release+0x130> <== NOT EXECUTED
20291e8: c0 2c 20 84 clrb [ %l0 + 0x84 ] <== NOT EXECUTED
20291ec: c2 0c 20 48 ldub [ %l0 + 0x48 ], %g1 <== NOT EXECUTED
20291f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20291f4: 32 80 00 2f bne,a 20292b0 <fat_buf_release+0x134> <== NOT EXECUTED
20291f8: c0 2c 20 85 clrb [ %l0 + 0x85 ] <== NOT EXECUTED
{
rtems_bdbuf_buffer *b;
for (i = 1; i < fs_info->vol.fats; i++)
20291fc: c2 0c 20 09 ldub [ %l0 + 9 ], %g1 <== NOT EXECUTED
2029200: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2029204: 08 80 00 2a bleu 20292ac <fat_buf_release+0x130> <== NOT EXECUTED
2029208: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED
202920c: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED
2029210: 10 80 00 10 b 2029250 <fat_buf_release+0xd4> <== NOT EXECUTED
2029214: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
fs_info->c.blk_num +
fs_info->vol.fat_length * i,
&b);
if ( sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(ENOMEM);
memcpy(b->buffer, fs_info->sec_buf, fs_info->vol.bps);
2029218: d2 04 20 8c ld [ %l0 + 0x8c ], %o1 <== NOT EXECUTED
202921c: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
2029220: d4 14 00 00 lduh [ %l0 ], %o2 <== NOT EXECUTED
2029224: 40 00 8b d4 call 204c174 <memcpy> <== NOT EXECUTED
2029228: a2 04 60 01 inc %l1 <== NOT EXECUTED
sc = rtems_bdbuf_release_modified(b);
202922c: 7f ff 6e a9 call 2004cd0 <rtems_bdbuf_release_modified> <== NOT EXECUTED
2029230: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
if ( sc != RTEMS_SUCCESSFUL)
2029234: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029238: 12 80 00 12 bne 2029280 <fat_buf_release+0x104> <== NOT EXECUTED
202923c: 90 0c 60 ff and %l1, 0xff, %o0 <== NOT EXECUTED
if (sec_of_fat && !fs_info->vol.mirror)
{
rtems_bdbuf_buffer *b;
for (i = 1; i < fs_info->vol.fats; i++)
2029240: c2 0c 20 09 ldub [ %l0 + 9 ], %g1 <== NOT EXECUTED
2029244: 80 a0 40 08 cmp %g1, %o0 <== NOT EXECUTED
2029248: 28 80 00 1a bleu,a 20292b0 <fat_buf_release+0x134> <== NOT EXECUTED
202924c: c0 2c 20 85 clrb [ %l0 + 0x85 ] <== NOT EXECUTED
{
sc = rtems_bdbuf_get(fs_info->vol.dev,
2029250: d2 04 20 18 ld [ %l0 + 0x18 ], %o1 <== NOT EXECUTED
2029254: 7f ff 66 4e call 2002b8c <.umul> <== NOT EXECUTED
2029258: e8 1c 20 58 ldd [ %l0 + 0x58 ], %l4 <== NOT EXECUTED
202925c: d4 04 20 80 ld [ %l0 + 0x80 ], %o2 <== NOT EXECUTED
2029260: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
2029264: 94 02 00 0a add %o0, %o2, %o2 <== NOT EXECUTED
2029268: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
202926c: 7f ff 73 62 call 2005ff4 <rtems_bdbuf_get> <== NOT EXECUTED
2029270: 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)
2029274: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029278: 02 bf ff e8 be 2029218 <fat_buf_release+0x9c> <== NOT EXECUTED
202927c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
memcpy(b->buffer, fs_info->sec_buf, fs_info->vol.bps);
sc = rtems_bdbuf_release_modified(b);
if ( sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(ENOMEM);
2029280: 40 00 7e 71 call 2048c44 <__errno> <== NOT EXECUTED
2029284: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2029288: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
202928c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2029290: 81 c7 e0 08 ret <== NOT EXECUTED
2029294: 81 e8 00 00 restore <== NOT EXECUTED
}
}
}
else
{
sc = rtems_bdbuf_release(fs_info->c.buf);
2029298: 7f ff 6e b1 call 2004d5c <rtems_bdbuf_release> <== NOT EXECUTED
202929c: d0 04 20 88 ld [ %l0 + 0x88 ], %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
20292a0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20292a4: 12 80 00 12 bne 20292ec <fat_buf_release+0x170> <== NOT EXECUTED
20292a8: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
}
fs_info->c.state = FAT_CACHE_EMPTY;
20292ac: c0 2c 20 85 clrb [ %l0 + 0x85 ] <== NOT EXECUTED
return RC_OK;
}
20292b0: 81 c7 e0 08 ret <== NOT EXECUTED
20292b4: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
*buf = fs_info->c.buf;
return RC_OK;
}
int
fat_buf_release(fat_fs_info_t *fs_info)
20292b8: c4 04 20 1c ld [ %l0 + 0x1c ], %g2 <== NOT EXECUTED
20292bc: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
return RC_OK;
sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) &&
(fs_info->c.blk_num < fs_info->vol.rdir_loc));
if (fs_info->c.modified)
20292c0: c2 0c 20 84 ldub [ %l0 + 0x84 ], %g1 <== NOT EXECUTED
*buf = fs_info->c.buf;
return RC_OK;
}
int
fat_buf_release(fat_fs_info_t *fs_info)
20292c4: a2 40 20 00 addx %g0, 0, %l1 <== NOT EXECUTED
return RC_OK;
sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) &&
(fs_info->c.blk_num < fs_info->vol.rdir_loc));
if (fs_info->c.modified)
20292c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20292cc: 32 bf ff bb bne,a 20291b8 <fat_buf_release+0x3c> <== NOT EXECUTED
20292d0: a2 8c 60 ff andcc %l1, 0xff, %l1 <== NOT EXECUTED
20292d4: 30 bf ff f1 b,a 2029298 <fat_buf_release+0x11c> <== NOT EXECUTED
{
if (sec_of_fat && !fs_info->vol.mirror)
memcpy(fs_info->sec_buf, fs_info->c.buf->buffer, fs_info->vol.bps);
20292d8: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 <== NOT EXECUTED
20292dc: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
20292e0: 40 00 8b a5 call 204c174 <memcpy> <== NOT EXECUTED
20292e4: d4 14 00 00 lduh [ %l0 ], %o2 <== NOT EXECUTED
20292e8: 30 bf ff ba b,a 20291d0 <fat_buf_release+0x54> <== NOT EXECUTED
}
else
{
sc = rtems_bdbuf_release(fs_info->c.buf);
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
20292ec: 40 00 7e 56 call 2048c44 <__errno> <== NOT EXECUTED
20292f0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20292f4: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
20292f8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20292fc: 81 c7 e0 08 ret <== NOT EXECUTED
2029300: 81 e8 00 00 restore <== NOT EXECUTED
0202a150 <fat_cluster_read>:
fat_cluster_read(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
void *buff
)
{
202a150: 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)) )
202a154: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
202a158: 12 80 00 06 bne 202a170 <fat_cluster_read+0x20> <== NOT EXECUTED
202a15c: c4 02 20 34 ld [ %o0 + 0x34 ], %g2 <== NOT EXECUTED
202a160: c2 08 a0 0a ldub [ %g2 + 0xa ], %g1 <== NOT EXECUTED
202a164: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
202a168: 32 80 00 0e bne,a 202a1a0 <fat_cluster_read+0x50> <== NOT EXECUTED
202a16c: c2 08 a0 02 ldub [ %g2 + 2 ], %g1 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
202a170: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 <== NOT EXECUTED
202a174: c6 08 a0 05 ldub [ %g2 + 5 ], %g3 <== NOT EXECUTED
202a178: 92 02 7f fe add %o1, -2, %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,
202a17c: d6 08 a0 04 ldub [ %g2 + 4 ], %o3 <== NOT EXECUTED
202a180: 93 2a 40 03 sll %o1, %g3, %o1 <== NOT EXECUTED
202a184: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED
202a188: c2 08 a0 02 ldub [ %g2 + 2 ], %g1 <== NOT EXECUTED
202a18c: 94 10 20 00 clr %o2 <== NOT EXECUTED
202a190: 97 2a c0 01 sll %o3, %g1, %o3 <== NOT EXECUTED
202a194: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
202a198: 7f ff fd db call 2029904 <_fat_block_read> <== NOT EXECUTED
202a19c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
202a1a0: d6 08 a0 04 ldub [ %g2 + 4 ], %o3 <== NOT EXECUTED
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
return fs_info->vol.rdir_loc;
202a1a4: d2 00 a0 1c ld [ %g2 + 0x1c ], %o1 <== NOT EXECUTED
202a1a8: 97 2a c0 01 sll %o3, %g1, %o3 <== NOT EXECUTED
202a1ac: 94 10 20 00 clr %o2 <== NOT EXECUTED
202a1b0: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
202a1b4: 7f ff fd d4 call 2029904 <_fat_block_read> <== NOT EXECUTED
202a1b8: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
020297d4 <fat_cluster_write>:
fat_cluster_write(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
const void *buff
)
{
20297d4: 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)) )
20297d8: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
20297dc: 12 80 00 06 bne 20297f4 <fat_cluster_write+0x20> <== NOT EXECUTED
20297e0: c4 02 20 34 ld [ %o0 + 0x34 ], %g2 <== NOT EXECUTED
20297e4: c2 08 a0 0a ldub [ %g2 + 0xa ], %g1 <== NOT EXECUTED
20297e8: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
20297ec: 32 80 00 0e bne,a 2029824 <fat_cluster_write+0x50> <== NOT EXECUTED
20297f0: c2 08 a0 02 ldub [ %g2 + 2 ], %g1 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
20297f4: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 <== NOT EXECUTED
20297f8: c6 08 a0 05 ldub [ %g2 + 5 ], %g3 <== NOT EXECUTED
20297fc: 92 02 7f fe add %o1, -2, %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,
2029800: d6 08 a0 04 ldub [ %g2 + 4 ], %o3 <== NOT EXECUTED
2029804: 93 2a 40 03 sll %o1, %g3, %o1 <== NOT EXECUTED
2029808: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED
202980c: c2 08 a0 02 ldub [ %g2 + 2 ], %g1 <== NOT EXECUTED
2029810: 94 10 20 00 clr %o2 <== NOT EXECUTED
2029814: 97 2a c0 01 sll %o3, %g1, %o3 <== NOT EXECUTED
2029818: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
202981c: 7f ff ff 47 call 2029538 <_fat_block_write> <== NOT EXECUTED
2029820: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
2029824: d6 08 a0 04 ldub [ %g2 + 4 ], %o3 <== NOT EXECUTED
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
return fs_info->vol.rdir_loc;
2029828: d2 00 a0 1c ld [ %g2 + 0x1c ], %o1 <== NOT EXECUTED
202982c: 97 2a c0 01 sll %o3, %g1, %o3 <== NOT EXECUTED
2029830: 94 10 20 00 clr %o2 <== NOT EXECUTED
2029834: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2029838: 7f ff ff 40 call 2029538 <_fat_block_write> <== NOT EXECUTED
202983c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
020295f4 <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
)
{
20295f4: 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;
20295f8: 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);
20295fc: 89 2e 60 18 sll %i1, 0x18, %g4 <== NOT EXECUTED
le_next_free = CT_LE_L(next_free);
ret1 = _fat_block_write(mt_entry,
2029600: 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);
2029604: 87 36 60 10 srl %i1, 0x10, %g3 <== NOT EXECUTED
2029608: 83 36 60 18 srl %i1, 0x18, %g1 <== NOT EXECUTED
202960c: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED
2029610: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
2029614: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
2029618: b3 36 60 08 srl %i1, 8, %i1 <== NOT EXECUTED
202961c: b2 0e 60 ff and %i1, 0xff, %i1 <== NOT EXECUTED
2029620: b3 2e 60 10 sll %i1, 0x10, %i1 <== NOT EXECUTED
2029624: 82 10 40 19 or %g1, %i1, %g1 <== NOT EXECUTED
2029628: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
le_next_free = CT_LE_L(next_free);
202962c: 85 36 a0 10 srl %i2, 0x10, %g2 <== NOT EXECUTED
2029630: 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);
2029634: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
le_next_free = CT_LE_L(next_free);
2029638: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
202963c: 83 36 a0 18 srl %i2, 0x18, %g1 <== NOT EXECUTED
2029640: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2029644: 82 10 c0 01 or %g3, %g1, %g1 <== NOT EXECUTED
2029648: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED
202964c: b4 0e a0 ff and %i2, 0xff, %i2 <== NOT EXECUTED
2029650: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED
2029654: 82 10 40 1a or %g1, %i2, %g1 <== NOT EXECUTED
2029658: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
ret1 = _fat_block_write(mt_entry,
202965c: 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);
2029660: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED
ret1 = _fat_block_write(mt_entry,
2029664: 96 10 20 04 mov 4, %o3 <== NOT EXECUTED
2029668: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
202966c: 7f ff ff b3 call 2029538 <_fat_block_write> <== NOT EXECUTED
2029670: 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,
2029674: 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,
2029678: 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,
202967c: 94 10 21 ec mov 0x1ec, %o2 <== NOT EXECUTED
2029680: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2029684: 96 10 20 04 mov 4, %o3 <== NOT EXECUTED
2029688: 7f ff ff ac call 2029538 <_fat_block_write> <== NOT EXECUTED
202968c: 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) )
2029690: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029694: 06 80 00 06 bl 20296ac <fat_fat32_update_fsinfo_sector+0xb8><== NOT EXECUTED
2029698: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
202969c: 06 80 00 04 bl 20296ac <fat_fat32_update_fsinfo_sector+0xb8><== NOT EXECUTED
20296a0: b0 10 20 00 clr %i0 <== NOT EXECUTED
return -1;
return RC_OK;
}
20296a4: 81 c7 e0 08 ret <== NOT EXECUTED
20296a8: 81 e8 00 00 restore <== NOT EXECUTED
20296ac: 81 c7 e0 08 ret <== NOT EXECUTED
20296b0: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
02028cc0 <fat_file_close>:
int
fat_file_close(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
2028cc0: 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)
2028cc4: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
2028cc8: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2028ccc: 08 80 00 07 bleu 2028ce8 <fat_file_close+0x28> <== NOT EXECUTED
2028cd0: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
{
fat_fd->links_num--;
2028cd4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
2028cd8: 90 10 20 00 clr %o0 <== NOT EXECUTED
2028cdc: c2 26 60 08 st %g1, [ %i1 + 8 ] <== NOT EXECUTED
* flush any modified "cached" buffer back to disk
*/
rc = fat_buf_release(fs_info);
return rc;
}
2028ce0: 81 c7 e0 08 ret <== NOT EXECUTED
2028ce4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
return rc;
}
key = fat_construct_key(mt_entry, &fat_fd->dir_pos.sname);
if (fat_fd->flags & FAT_FILE_REMOVED)
2028ce8: c2 0e 60 30 ldub [ %i1 + 0x30 ], %g1 <== NOT EXECUTED
2028cec: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
2028cf0: 22 80 00 16 be,a 2028d48 <fat_file_close+0x88> <== NOT EXECUTED
2028cf4: d2 06 60 0c ld [ %i1 + 0xc ], %o1 <== NOT EXECUTED
{
rc = fat_file_truncate(mt_entry, fat_fd, 0);
2028cf8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2028cfc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2028d00: 7f ff fe 0b call 202852c <fat_file_truncate> <== NOT EXECUTED
2028d04: 94 10 20 00 clr %o2 <== NOT EXECUTED
if ( rc != RC_OK )
2028d08: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2028d0c: 12 bf ff f5 bne 2028ce0 <fat_file_close+0x20> <== NOT EXECUTED
2028d10: 01 00 00 00 nop <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
2028d14: 7f ff 95 8d call 200e348 <_Chain_Extract> <== NOT EXECUTED
2028d18: 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) )
2028d1c: d2 06 60 0c ld [ %i1 + 0xc ], %o1 <== NOT EXECUTED
2028d20: 40 00 00 d4 call 2029070 <fat_ino_is_unique> <== NOT EXECUTED
2028d24: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2028d28: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED
2028d2c: 32 80 00 13 bne,a 2028d78 <fat_file_close+0xb8> <== NOT EXECUTED
2028d30: d2 06 60 0c ld [ %i1 + 0xc ], %o1 <== NOT EXECUTED
fat_fd->links_num = 0;
}
else
{
_hash_delete(fs_info->vhash, key, fat_fd->ino, fat_fd);
free(fat_fd);
2028d34: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
2028d38: 7f ff 7e e9 call 20088dc <free> <== NOT EXECUTED
2028d3c: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED
}
}
/*
* flush any modified "cached" buffer back to disk
*/
rc = fat_buf_release(fs_info);
2028d40: 40 00 01 0f call 202917c <fat_buf_release> <== NOT EXECUTED
2028d44: 81 e8 00 00 restore <== NOT EXECUTED
free(fat_fd);
}
else
{
if (fat_ino_is_unique(mt_entry, fat_fd->ino))
2028d48: 40 00 00 ca call 2029070 <fat_ino_is_unique> <== NOT EXECUTED
2028d4c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2028d50: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED
2028d54: 02 80 00 05 be 2028d68 <fat_file_close+0xa8> <== NOT EXECUTED
2028d58: 01 00 00 00 nop <== NOT EXECUTED
{
fat_fd->links_num = 0;
2028d5c: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED
}
}
/*
* flush any modified "cached" buffer back to disk
*/
rc = fat_buf_release(fs_info);
2028d60: 40 00 01 07 call 202917c <fat_buf_release> <== NOT EXECUTED
2028d64: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED
2028d68: 7f ff 95 78 call 200e348 <_Chain_Extract> <== NOT EXECUTED
2028d6c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
fat_fd->links_num = 0;
}
else
{
_hash_delete(fs_info->vhash, key, fat_fd->ino, fat_fd);
free(fat_fd);
2028d70: 10 bf ff f2 b 2028d38 <fat_file_close+0x78> <== NOT EXECUTED
2028d74: 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) )
fat_free_unique_ino(mt_entry, fat_fd->ino);
2028d78: 40 00 00 b0 call 2029038 <fat_free_unique_ino> <== NOT EXECUTED
2028d7c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
fat_fd->links_num = 0;
}
else
{
_hash_delete(fs_info->vhash, key, fat_fd->ino, fat_fd);
free(fat_fd);
2028d80: 10 bf ff ee b 2028d38 <fat_file_close+0x78> <== NOT EXECUTED
2028d84: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
020282d8 <fat_file_datasync>:
int
fat_file_datasync(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
20282d8: 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)
20282dc: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED
int
fat_file_datasync(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
20282e0: a8 10 00 18 mov %i0, %l4 <== 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)
20282e4: 80 a0 60 00 cmp %g1, 0 <== 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;
20282e8: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED
uint32_t cur_cln = fat_fd->cln;
20282ec: c2 06 60 1c ld [ %i1 + 0x1c ], %g1 <== NOT EXECUTED
rtems_bdbuf_buffer *block = NULL;
uint32_t sec = 0;
uint32_t i = 0;
if (fat_fd->fat_file_size == 0)
20282f0: 02 80 00 33 be 20283bc <fat_file_datasync+0xe4> <== NOT EXECUTED
20282f4: b0 10 20 00 clr %i0 <== 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;
20282f8: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
rtems_bdbuf_buffer *block = NULL;
20282fc: 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);
2028300: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2028304: 40 00 03 9e call 202917c <fat_buf_release> <== NOT EXECUTED
2028308: a4 07 bf f8 add %fp, -8, %l2 <== NOT EXECUTED
if (rc != RC_OK)
202830c: aa 92 20 00 orcc %o0, 0, %l5 <== NOT EXECUTED
2028310: 12 80 00 33 bne 20283dc <fat_file_datasync+0x104> <== NOT EXECUTED
2028314: ac 07 bf fc add %fp, -4, %l6 <== NOT EXECUTED
return rc;
/* for each cluster of the file ... */
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
2028318: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
202831c: c4 04 60 0c ld [ %l1 + 0xc ], %g2 <== NOT EXECUTED
2028320: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED
2028324: 84 0a 40 02 and %o1, %g2, %g2 <== NOT EXECUTED
2028328: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
202832c: 1a 80 00 2c bcc 20283dc <fat_file_datasync+0x104> <== NOT EXECUTED
2028330: 80 a2 60 00 cmp %o1, 0 <== 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)) )
2028334: 02 80 00 24 be 20283c4 <fat_file_datasync+0xec> <== NOT EXECUTED
2028338: c2 05 20 34 ld [ %l4 + 0x34 ], %g1 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
202833c: c4 00 60 30 ld [ %g1 + 0x30 ], %g2 <== NOT EXECUTED
2028340: c2 08 60 05 ldub [ %g1 + 5 ], %g1 <== NOT EXECUTED
2028344: a6 02 7f fe add %o1, -2, %l3 <== NOT EXECUTED
2028348: a7 2c c0 01 sll %l3, %g1, %l3 <== NOT EXECUTED
202834c: a6 04 c0 02 add %l3, %g2, %l3 <== NOT EXECUTED
{
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++ )
2028350: c2 0c 60 04 ldub [ %l1 + 4 ], %g1 <== NOT EXECUTED
2028354: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2028358: 02 80 00 23 be 20283e4 <fat_file_datasync+0x10c> <== NOT EXECUTED
202835c: a0 10 20 00 clr %l0 <== NOT EXECUTED
{
/* ... sync it */
sc = rtems_bdbuf_read(fs_info->vol.dev, (sec + i), &block);
2028360: 10 80 00 0c b 2028390 <fat_file_datasync+0xb8> <== NOT EXECUTED
2028364: d0 1c 60 58 ldd [ %l1 + 0x58 ], %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one( EIO );
sc = rtems_bdbuf_sync(block);
2028368: 7f ff 75 21 call 20057ec <rtems_bdbuf_sync> <== NOT EXECUTED
202836c: d0 07 bf f8 ld [ %fp + -8 ], %o0 <== NOT EXECUTED
if ( sc != RTEMS_SUCCESSFUL )
2028370: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2028374: 12 80 00 0e bne 20283ac <fat_file_datasync+0xd4> <== NOT EXECUTED
2028378: 01 00 00 00 nop <== 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++ )
202837c: c2 0c 60 04 ldub [ %l1 + 4 ], %g1 <== NOT EXECUTED
2028380: 80 a0 40 10 cmp %g1, %l0 <== NOT EXECUTED
2028384: 08 80 00 18 bleu 20283e4 <fat_file_datasync+0x10c> <== NOT EXECUTED
2028388: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
{
/* ... sync it */
sc = rtems_bdbuf_read(fs_info->vol.dev, (sec + i), &block);
202838c: d0 1c 60 58 ldd [ %l1 + 0x58 ], %o0 <== NOT EXECUTED
2028390: 94 04 00 13 add %l0, %l3, %o2 <== NOT EXECUTED
2028394: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
2028398: 7f ff 77 4c call 20060c8 <rtems_bdbuf_read> <== NOT EXECUTED
202839c: a0 04 20 01 inc %l0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
20283a0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20283a4: 02 bf ff f1 be 2028368 <fat_file_datasync+0x90> <== NOT EXECUTED
20283a8: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
sc = rtems_bdbuf_sync(block);
if ( sc != RTEMS_SUCCESSFUL )
rtems_set_errno_and_return_minus_one( EIO );
20283ac: 40 00 82 26 call 2048c44 <__errno> <== NOT EXECUTED
20283b0: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
20283b4: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
20283b8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20283bc: 81 c7 e0 08 ret <== NOT EXECUTED
20283c0: 81 e8 00 00 restore <== 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)) )
20283c4: c4 08 60 0a ldub [ %g1 + 0xa ], %g2 <== NOT EXECUTED
20283c8: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED
20283cc: 22 bf ff dd be,a 2028340 <fat_file_datasync+0x68> <== NOT EXECUTED
20283d0: c4 00 60 30 ld [ %g1 + 0x30 ], %g2 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
20283d4: 10 bf ff df b 2028350 <fat_file_datasync+0x78> <== NOT EXECUTED
20283d8: e6 00 60 1c ld [ %g1 + 0x1c ], %l3 <== NOT EXECUTED
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
if ( rc != RC_OK )
return rc;
}
return rc;
}
20283dc: 81 c7 e0 08 ret <== NOT EXECUTED
20283e0: 91 e8 00 15 restore %g0, %l5, %o0 <== 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);
20283e4: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
20283e8: 40 00 70 81 call 20445ec <fat_get_fat_cluster> <== NOT EXECUTED
20283ec: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
20283f0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20283f4: 02 bf ff ca be 202831c <fat_file_datasync+0x44> <== NOT EXECUTED
20283f8: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
return rc;
}
return rc;
}
20283fc: 81 c7 e0 08 ret <== NOT EXECUTED
2028400: 81 e8 00 00 restore <== NOT EXECUTED
02028634 <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
)
{
2028634: 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;
2028638: f4 26 c0 00 st %i2, [ %i3 ] <== NOT EXECUTED
if (new_length <= fat_fd->fat_file_size)
202863c: 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;
2028640: 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;
2028644: 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
)
{
2028648: 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)
202864c: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED
2028650: 08 80 00 3f bleu 202874c <fat_file_extend+0x118> <== NOT EXECUTED
2028654: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED
return RC_OK;
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
2028658: c4 06 60 20 ld [ %i1 + 0x20 ], %g2 <== NOT EXECUTED
202865c: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED
2028660: 22 80 00 3d be,a 2028754 <fat_file_extend+0x120> <== NOT EXECUTED
2028664: c4 06 60 24 ld [ %i1 + 0x24 ], %g2 <== NOT EXECUTED
(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))) &
2028668: c6 14 60 06 lduh [ %l1 + 6 ], %g3 <== NOT EXECUTED
(fs_info->vol.bpc - 1);
bytes2add = new_length - fat_fd->fat_file_size;
202866c: 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))) &
2028670: 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 -
2028674: a4 08 80 01 and %g2, %g1, %l2 <== NOT EXECUTED
2028678: a4 20 c0 12 sub %g3, %l2, %l2 <== NOT EXECUTED
202867c: 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)
2028680: 80 a4 80 14 cmp %l2, %l4 <== NOT EXECUTED
2028684: 1a 80 00 3f bcc 2028780 <fat_file_extend+0x14c> <== NOT EXECUTED
2028688: 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)
202868c: a8 a5 00 12 subcc %l4, %l2, %l4 <== NOT EXECUTED
2028690: 02 80 00 3c be 2028780 <fat_file_extend+0x14c> <== NOT EXECUTED
2028694: a6 05 3f ff add %l4, -1, %l3 <== NOT EXECUTED
return RC_OK;
cls2add = ((bytes2add - 1) >> fs_info->vol.bpc_log2) + 1;
2028698: c2 0c 60 08 ldub [ %l1 + 8 ], %g1 <== NOT EXECUTED
rc = fat_scan_fat_for_free_clusters(mt_entry, &chain, cls2add,
202869c: 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;
20286a0: a7 34 c0 01 srl %l3, %g1, %l3 <== NOT EXECUTED
rc = fat_scan_fat_for_free_clusters(mt_entry, &chain, cls2add,
20286a4: 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;
20286a8: a6 04 e0 01 inc %l3 <== NOT EXECUTED
rc = fat_scan_fat_for_free_clusters(mt_entry, &chain, cls2add,
20286ac: 96 07 bf f0 add %fp, -16, %o3 <== NOT EXECUTED
20286b0: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
20286b4: 40 00 70 8a call 20448dc <fat_scan_fat_for_free_clusters> <== NOT EXECUTED
20286b8: 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)
20286bc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20286c0: 12 80 00 30 bne 2028780 <fat_file_extend+0x14c> <== NOT EXECUTED
20286c4: 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))
20286c8: 02 80 00 53 be 2028814 <fat_file_extend+0x1e0> <== NOT EXECUTED
20286cc: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOSPC);
/* check wether we satisfied request for 'cls2add' clusters */
if (cls2add != cls_added)
20286d0: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED
20286d4: 02 80 00 0b be 2028700 <fat_file_extend+0xcc> <== NOT EXECUTED
20286d8: 88 38 00 01 xnor %g0, %g1, %g4 <== NOT EXECUTED
*a_length = new_length -
20286dc: c6 0c 60 08 ldub [ %l1 + 8 ], %g3 <== NOT EXECUTED
20286e0: c4 14 60 06 lduh [ %l1 + 6 ], %g2 <== NOT EXECUTED
20286e4: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
20286e8: a6 01 00 13 add %g4, %l3, %l3 <== NOT EXECUTED
20286ec: a8 0d 00 02 and %l4, %g2, %l4 <== NOT EXECUTED
20286f0: a7 2c c0 03 sll %l3, %g3, %l3 <== NOT EXECUTED
20286f4: a6 26 80 13 sub %i2, %l3, %l3 <== NOT EXECUTED
20286f8: a8 24 c0 14 sub %l3, %l4, %l4 <== NOT EXECUTED
20286fc: 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 )
2028700: d6 06 60 18 ld [ %i1 + 0x18 ], %o3 <== NOT EXECUTED
2028704: 80 a2 e0 00 cmp %o3, 0 <== NOT EXECUTED
2028708: 32 80 00 20 bne,a 2028788 <fat_file_extend+0x154> <== NOT EXECUTED
202870c: d2 06 60 3c ld [ %i1 + 0x3c ], %o1 <== NOT EXECUTED
{
fat_fd->map.disk_cln = fat_fd->cln = chain;
2028710: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED
fat_fd->map.file_cln = 0;
2028714: 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;
2028718: c4 26 60 38 st %g2, [ %i1 + 0x38 ] <== NOT EXECUTED
202871c: c4 26 60 1c st %g2, [ %i1 + 0x1c ] <== NOT EXECUTED
}
fat_buf_release(fs_info);
}
/* update number of the last cluster of the file if it changed */
if (cls_added != 0)
2028720: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2028724: 22 80 00 08 be,a 2028744 <fat_file_extend+0x110> <== NOT EXECUTED
2028728: f4 26 60 18 st %i2, [ %i1 + 0x18 ] <== NOT EXECUTED
{
fat_fd->map.last_cln = last_cl;
202872c: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED
if (fat_fd->fat_file_type == FAT_DIRECTORY)
2028730: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
2028734: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2028738: 02 80 00 22 be 20287c0 <fat_file_extend+0x18c> <== NOT EXECUTED
202873c: c4 26 60 3c st %g2, [ %i1 + 0x3c ] <== NOT EXECUTED
return rc;
}
}
}
fat_fd->fat_file_size = new_length;
2028740: f4 26 60 18 st %i2, [ %i1 + 0x18 ] <== NOT EXECUTED
return RC_OK;
2028744: 81 c7 e0 08 ret <== NOT EXECUTED
2028748: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
}
202874c: 81 c7 e0 08 ret <== NOT EXECUTED
2028750: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
*a_length = new_length;
if (new_length <= fat_fd->fat_file_size)
return RC_OK;
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
2028754: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2028758: 32 bf ff c5 bne,a 202866c <fat_file_extend+0x38> <== NOT EXECUTED
202875c: c6 14 60 06 lduh [ %l1 + 6 ], %g3 <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
2028760: c4 0c 60 0a ldub [ %l1 + 0xa ], %g2 <== NOT EXECUTED
2028764: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED
2028768: 22 bf ff c1 be,a 202866c <fat_file_extend+0x38> <== NOT EXECUTED
202876c: c6 14 60 06 lduh [ %l1 + 6 ], %g3 <== NOT EXECUTED
if (rc != RC_OK)
return rc;
/* this means that no space left on device */
if ((cls_added == 0) && (bytes_remain == 0))
rtems_set_errno_and_return_minus_one(ENOSPC);
2028770: 40 00 81 35 call 2048c44 <__errno> <== NOT EXECUTED
2028774: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2028778: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED
202877c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2028780: 81 c7 e0 08 ret <== NOT EXECUTED
2028784: 81 e8 00 00 restore <== NOT EXECUTED
fat_fd->map.disk_cln = fat_fd->cln = chain;
fat_fd->map.file_cln = 0;
}
else
{
if (fat_fd->map.last_cln != FAT_UNDEFINED_VALUE)
2028788: 80 a2 7f ff cmp %o1, -1 <== NOT EXECUTED
202878c: 02 80 00 18 be 20287ec <fat_file_extend+0x1b8> <== NOT EXECUTED
2028790: 96 02 ff ff add %o3, -1, %o3 <== NOT EXECUTED
{
old_last_cl = fat_fd->map.last_cln;
2028794: d2 27 bf f8 st %o1, [ %fp + -8 ] <== NOT EXECUTED
fat_free_fat_clusters_chain(mt_entry, chain);
return rc;
}
}
rc = fat_set_fat_cluster(mt_entry, old_last_cl, chain);
2028798: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
202879c: 40 00 6e cf call 20442d8 <fat_set_fat_cluster> <== NOT EXECUTED
20287a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if ( rc != RC_OK )
20287a4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20287a8: 12 80 00 0d bne 20287dc <fat_file_extend+0x1a8> <== NOT EXECUTED
20287ac: 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);
20287b0: 40 00 02 73 call 202917c <fat_buf_release> <== NOT EXECUTED
20287b4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
20287b8: 10 bf ff da b 2028720 <fat_file_extend+0xec> <== NOT EXECUTED
20287bc: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
if (cls_added != 0)
{
fat_fd->map.last_cln = last_cl;
if (fat_fd->fat_file_type == FAT_DIRECTORY)
{
rc = fat_init_clusters_chain(mt_entry, chain);
20287c0: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
20287c4: 40 00 04 20 call 2029844 <fat_init_clusters_chain> <== NOT EXECUTED
20287c8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if ( rc != RC_OK )
20287cc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20287d0: 22 bf ff dd be,a 2028744 <fat_file_extend+0x110> <== NOT EXECUTED
20287d4: f4 26 60 18 st %i2, [ %i1 + 0x18 ] <== NOT EXECUTED
{
fat_free_fat_clusters_chain(mt_entry, chain);
20287d8: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
20287dc: 40 00 70 08 call 20447fc <fat_free_fat_clusters_chain> <== NOT EXECUTED
20287e0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
20287e4: 81 c7 e0 08 ret <== NOT EXECUTED
20287e8: 81 e8 00 00 restore <== NOT EXECUTED
{
old_last_cl = fat_fd->map.last_cln;
}
else
{
rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
20287ec: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20287f0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
20287f4: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
20287f8: 7f ff ff 18 call 2028458 <fat_file_ioctl> <== NOT EXECUTED
20287fc: 98 07 bf f8 add %fp, -8, %o4 <== NOT EXECUTED
(fat_fd->fat_file_size - 1), &old_last_cl);
if ( rc != RC_OK )
2028800: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2028804: 12 bf ff f5 bne 20287d8 <fat_file_extend+0x1a4> <== NOT EXECUTED
2028808: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
fat_free_fat_clusters_chain(mt_entry, chain);
return rc;
}
}
rc = fat_set_fat_cluster(mt_entry, old_last_cl, chain);
202880c: 10 bf ff e4 b 202879c <fat_file_extend+0x168> <== NOT EXECUTED
2028810: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
/* this means that low level I/O error occured */
if (rc != RC_OK)
return rc;
/* this means that no space left on device */
if ((cls_added == 0) && (bytes_remain == 0))
2028814: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2028818: 12 bf ff af bne 20286d4 <fat_file_extend+0xa0> <== NOT EXECUTED
202881c: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED
2028820: 30 bf ff d4 b,a 2028770 <fat_file_extend+0x13c> <== NOT EXECUTED
02028458 <fat_file_ioctl>:
fat_file_ioctl(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd,
int cmd,
...)
{
2028458: 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);
202845c: 82 07 a0 50 add %fp, 0x50, %g1 <== NOT EXECUTED
2028460: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED
2028464: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED
2028468: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED
202846c: 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;
2028470: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
uint32_t *ret;
va_list ap;
va_start(ap, cmd);
switch (cmd)
2028474: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED
2028478: 02 80 00 08 be 2028498 <fat_file_ioctl+0x40> <== NOT EXECUTED
202847c: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 <== NOT EXECUTED
*ret = cur_cln;
break;
default:
errno = EINVAL;
2028480: 40 00 81 f1 call 2048c44 <__errno> <== NOT EXECUTED
2028484: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2028488: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
202848c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
rc = -1;
break;
}
return rc;
}
2028490: 81 c7 e0 08 ret <== NOT EXECUTED
2028494: 81 e8 00 00 restore <== 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 )
2028498: 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 *);
202849c: 86 07 a0 58 add %fp, 0x58, %g3 <== NOT EXECUTED
/* sanity check */
if ( pos >= fat_fd->fat_file_size )
20284a0: 80 a6 c0 02 cmp %i3, %g2 <== NOT EXECUTED
20284a4: 1a 80 00 1c bcc 2028514 <fat_file_ioctl+0xbc> <== NOT EXECUTED
20284a8: c6 27 bf f8 st %g3, [ %fp + -8 ] <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
20284ac: c4 06 60 20 ld [ %i1 + 0x20 ], %g2 <== NOT EXECUTED
20284b0: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED
20284b4: 22 80 00 0e be,a 20284ec <fat_file_ioctl+0x94> <== NOT EXECUTED
20284b8: c4 06 60 24 ld [ %i1 + 0x24 ], %g2 <== NOT EXECUTED
return RC_OK;
}
cl_start = pos >> fs_info->vol.bpc_log2;
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
20284bc: d4 08 60 08 ldub [ %g1 + 8 ], %o2 <== NOT EXECUTED
20284c0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20284c4: 95 36 c0 0a srl %i3, %o2, %o2 <== NOT EXECUTED
20284c8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
20284cc: 7f ff ff 55 call 2028220 <fat_file_lseek> <== NOT EXECUTED
20284d0: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
if ( rc != RC_OK )
20284d4: b0 92 60 00 orcc %o1, 0, %i0 <== NOT EXECUTED
20284d8: 12 bf ff ee bne 2028490 <fat_file_ioctl+0x38> <== NOT EXECUTED
20284dc: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
return rc;
*ret = cur_cln;
20284e0: c2 27 00 00 st %g1, [ %i4 ] <== NOT EXECUTED
break;
20284e4: 81 c7 e0 08 ret <== NOT EXECUTED
20284e8: 81 e8 00 00 restore <== NOT EXECUTED
/* sanity check */
if ( pos >= fat_fd->fat_file_size )
rtems_set_errno_and_return_minus_one( EIO );
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
20284ec: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
20284f0: 32 bf ff f4 bne,a 20284c0 <fat_file_ioctl+0x68> <== NOT EXECUTED
20284f4: d4 08 60 08 ldub [ %g1 + 8 ], %o2 <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
20284f8: c4 08 60 0a ldub [ %g1 + 0xa ], %g2 <== NOT EXECUTED
20284fc: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED
2028500: 22 bf ff f0 be,a 20284c0 <fat_file_ioctl+0x68> <== NOT EXECUTED
2028504: d4 08 60 08 ldub [ %g1 + 8 ], %o2 <== NOT EXECUTED
{
/* cluster 0 (zero) reserved for root dir */
*ret = 0;
2028508: c0 27 00 00 clr [ %i4 ] <== NOT EXECUTED
return RC_OK;
202850c: 81 c7 e0 08 ret <== NOT EXECUTED
2028510: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
pos = va_arg(ap, uint32_t );
ret = va_arg(ap, uint32_t *);
/* sanity check */
if ( pos >= fat_fd->fat_file_size )
rtems_set_errno_and_return_minus_one( EIO );
2028514: 40 00 81 cc call 2048c44 <__errno> <== NOT EXECUTED
2028518: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202851c: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2028520: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2028524: 81 c7 e0 08 ret <== NOT EXECUTED
2028528: 81 e8 00 00 restore <== NOT EXECUTED
02028220 <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
)
{
2028220: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int rc = RC_OK;
if (file_cln == fat_fd->map.file_cln)
2028224: e2 06 60 34 ld [ %i1 + 0x34 ], %l1 <== NOT EXECUTED
2028228: 80 a4 40 1a cmp %l1, %i2 <== NOT EXECUTED
202822c: 22 80 00 25 be,a 20282c0 <fat_file_lseek+0xa0> <== NOT EXECUTED
2028230: c2 06 60 38 ld [ %i1 + 0x38 ], %g1 <== NOT EXECUTED
{
uint32_t cur_cln;
uint32_t count;
uint32_t i;
if (file_cln > fat_fd->map.file_cln)
2028234: 2a 80 00 18 bcs,a 2028294 <fat_file_lseek+0x74> <== NOT EXECUTED
2028238: d2 06 60 38 ld [ %i1 + 0x38 ], %o1 <== NOT EXECUTED
cur_cln = fat_fd->map.disk_cln;
count = file_cln - fat_fd->map.file_cln;
}
else
{
cur_cln = fat_fd->cln;
202823c: d2 06 60 1c ld [ %i1 + 0x1c ], %o1 <== NOT EXECUTED
2028240: a2 10 00 1a mov %i2, %l1 <== NOT EXECUTED
2028244: d2 27 bf fc st %o1, [ %fp + -4 ] <== NOT EXECUTED
count = file_cln;
}
/* skip over the clusters */
for (i = 0; i < count; i++)
2028248: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
202824c: 02 80 00 15 be 20282a0 <fat_file_lseek+0x80> <== NOT EXECUTED
2028250: a0 10 20 00 clr %l0 <== NOT EXECUTED
2028254: 10 80 00 05 b 2028268 <fat_file_lseek+0x48> <== NOT EXECUTED
2028258: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
202825c: 80 a4 40 10 cmp %l1, %l0 <== NOT EXECUTED
2028260: 08 80 00 10 bleu 20282a0 <fat_file_lseek+0x80> <== NOT EXECUTED
2028264: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
{
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
2028268: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
202826c: 40 00 70 e0 call 20445ec <fat_get_fat_cluster> <== NOT EXECUTED
2028270: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
2028274: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2028278: 22 bf ff f9 be,a 202825c <fat_file_lseek+0x3c> <== NOT EXECUTED
202827c: a0 04 20 01 inc %l0 <== NOT EXECUTED
return rc;
2028280: 86 10 00 08 mov %o0, %g3 <== NOT EXECUTED
2028284: 85 3a 20 1f sra %o0, 0x1f, %g2 <== NOT EXECUTED
fat_fd->map.disk_cln = cur_cln;
*disk_cln = cur_cln;
}
return RC_OK;
}
2028288: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED
202828c: 81 c7 e0 08 ret <== NOT EXECUTED
2028290: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
uint32_t i;
if (file_cln > fat_fd->map.file_cln)
{
cur_cln = fat_fd->map.disk_cln;
count = file_cln - fat_fd->map.file_cln;
2028294: a2 26 80 11 sub %i2, %l1, %l1 <== NOT EXECUTED
uint32_t count;
uint32_t i;
if (file_cln > fat_fd->map.file_cln)
{
cur_cln = fat_fd->map.disk_cln;
2028298: 10 bf ff ec b 2028248 <fat_file_lseek+0x28> <== NOT EXECUTED
202829c: d2 27 bf fc st %o1, [ %fp + -4 ] <== NOT EXECUTED
if ( rc != RC_OK )
return rc;
}
/* update cache */
fat_fd->map.file_cln = file_cln;
20282a0: f4 26 60 34 st %i2, [ %i1 + 0x34 ] <== NOT EXECUTED
fat_fd->map.disk_cln = cur_cln;
20282a4: d2 26 60 38 st %o1, [ %i1 + 0x38 ] <== NOT EXECUTED
*disk_cln = cur_cln;
20282a8: 84 10 20 00 clr %g2 <== NOT EXECUTED
20282ac: 86 10 20 00 clr %g3 <== NOT EXECUTED
20282b0: d2 26 c0 00 st %o1, [ %i3 ] <== NOT EXECUTED
}
return RC_OK;
}
20282b4: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED
20282b8: 81 c7 e0 08 ret <== NOT EXECUTED
20282bc: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
)
{
int rc = RC_OK;
if (file_cln == fat_fd->map.file_cln)
*disk_cln = fat_fd->map.disk_cln;
20282c0: 84 10 20 00 clr %g2 <== NOT EXECUTED
20282c4: 86 10 20 00 clr %g3 <== NOT EXECUTED
20282c8: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED
fat_fd->map.disk_cln = cur_cln;
*disk_cln = cur_cln;
}
return RC_OK;
}
20282cc: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED
20282d0: 81 c7 e0 08 ret <== NOT EXECUTED
20282d4: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
02028404 <fat_file_mark_removed>:
void
fat_file_mark_removed(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
2028404: 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) +
2028408: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
202840c: 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)
2028410: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
(pos->ofs >> FAT_SECTOR512_BITS)) << 4) +
2028414: 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 );
2028418: 7f ff 97 cc call 200e348 <_Chain_Extract> <== NOT EXECUTED
202841c: 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 );
2028420: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED
2028424: a3 34 60 05 srl %l1, 5, %l1 <== NOT EXECUTED
2028428: a2 0c 60 01 and %l1, 1, %l1 <== NOT EXECUTED
202842c: 83 2c 60 04 sll %l1, 4, %g1 <== NOT EXECUTED
2028430: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2028434: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED
2028438: a2 20 40 11 sub %g1, %l1, %l1 <== NOT EXECUTED
202843c: 7f ff 97 b7 call 200e318 <_Chain_Append> <== NOT EXECUTED
2028440: 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;
2028444: c2 0e 60 30 ldub [ %i1 + 0x30 ], %g1 <== NOT EXECUTED
2028448: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED
202844c: c2 2e 60 30 stb %g1, [ %i1 + 0x30 ] <== NOT EXECUTED
}
2028450: 81 c7 e0 08 ret <== NOT EXECUTED
2028454: 81 e8 00 00 restore <== NOT EXECUTED
02028d88 <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
)
{
2028d88: 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) +
2028d8c: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
2028d90: 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)
2028d94: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2028d98: 02 80 00 0c be 2028dc8 <fat_file_open+0x40> <== NOT EXECUTED
2028d9c: 84 10 20 01 mov 1, %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)) )
2028da0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2028da4: 32 80 00 7d bne,a 2028f98 <fat_file_open+0x210> <== NOT EXECUTED
2028da8: c4 0c 20 05 ldub [ %l0 + 5 ], %g2 <== NOT EXECUTED
2028dac: c4 0c 20 0a ldub [ %l0 + 0xa ], %g2 <== NOT EXECUTED
2028db0: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED
2028db4: 22 80 00 79 be,a 2028f98 <fat_file_open+0x210> <== NOT EXECUTED
2028db8: c4 0c 20 05 ldub [ %l0 + 5 ], %g2 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
2028dbc: c4 04 20 1c ld [ %l0 + 0x1c ], %g2 <== 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) <<
2028dc0: c2 0c 20 03 ldub [ %l0 + 3 ], %g1 <== NOT EXECUTED
2028dc4: 85 28 80 01 sll %g2, %g1, %g2 <== NOT EXECUTED
(pos->ofs >> FAT_SECTOR512_BITS)) << 4) +
2028dc8: 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;
2028dcc: da 04 20 68 ld [ %l0 + 0x68 ], %o5 <== 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) +
2028dd0: 87 30 60 05 srl %g1, 5, %g3 <== NOT EXECUTED
2028dd4: a3 30 60 09 srl %g1, 9, %l1 <== NOT EXECUTED
2028dd8: 86 08 e0 0f and %g3, 0xf, %g3 <== NOT EXECUTED
2028ddc: a2 00 80 11 add %g2, %l1, %l1 <== NOT EXECUTED
2028de0: a3 2c 60 04 sll %l1, 4, %l1 <== NOT EXECUTED
2028de4: a2 04 40 03 add %l1, %g3, %l1 <== NOT EXECUTED
2028de8: 82 0c 60 01 and %l1, 1, %g1 <== NOT EXECUTED
2028dec: a7 28 60 04 sll %g1, 4, %l3 <== NOT EXECUTED
2028df0: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
2028df4: a6 24 c0 01 sub %l3, %g1, %l3 <== NOT EXECUTED
2028df8: c2 03 40 13 ld [ %o5 + %l3 ], %g1 <== NOT EXECUTED
2028dfc: 9a 03 40 13 add %o5, %l3, %o5 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
2028e00: 9a 03 60 04 add %o5, 4, %o5 <== NOT EXECUTED
for ( ; !rtems_chain_is_tail((hash) + mod, the_node) ; )
2028e04: 80 a3 40 01 cmp %o5, %g1 <== NOT EXECUTED
2028e08: 22 80 00 1f be,a 2028e84 <fat_file_open+0xfc> <== NOT EXECUTED
2028e0c: da 04 20 6c ld [ %l0 + 0x6c ], %o5 <== NOT EXECUTED
2028e10: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 <== NOT EXECUTED
uint32_t cln
)
{
fat_fs_info_t *fs_info = mt_entry->fs_info;
if (cln == 1)
2028e14: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED
2028e18: 02 80 00 0c be 2028e48 <fat_file_open+0xc0> <== NOT EXECUTED
2028e1c: 88 10 20 01 mov 1, %g4 <== 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)) )
2028e20: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2028e24: 32 80 00 67 bne,a 2028fc0 <fat_file_open+0x238> <== NOT EXECUTED
2028e28: c8 0c 20 05 ldub [ %l0 + 5 ], %g4 <== NOT EXECUTED
2028e2c: c6 0c 20 0a ldub [ %l0 + 0xa ], %g3 <== NOT EXECUTED
2028e30: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED
2028e34: 22 80 00 63 be,a 2028fc0 <fat_file_open+0x238> <== NOT EXECUTED
2028e38: c8 0c 20 05 ldub [ %l0 + 5 ], %g4 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
2028e3c: c8 04 20 1c ld [ %l0 + 0x1c ], %g4 <== 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) <<
2028e40: c6 0c 20 03 ldub [ %l0 + 3 ], %g3 <== NOT EXECUTED
2028e44: 89 29 00 03 sll %g4, %g3, %g4 <== NOT EXECUTED
(pos->ofs >> FAT_SECTOR512_BITS)) << 4) +
2028e48: c6 00 60 24 ld [ %g1 + 0x24 ], %g3 <== NOT EXECUTED
{
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)
2028e4c: 85 30 e0 05 srl %g3, 5, %g2 <== NOT EXECUTED
2028e50: 87 30 e0 09 srl %g3, 9, %g3 <== NOT EXECUTED
2028e54: 84 08 a0 0f and %g2, 0xf, %g2 <== NOT EXECUTED
2028e58: 88 01 00 03 add %g4, %g3, %g4 <== NOT EXECUTED
2028e5c: 89 29 20 04 sll %g4, 4, %g4 <== NOT EXECUTED
2028e60: 88 01 00 02 add %g4, %g2, %g4 <== NOT EXECUTED
2028e64: 80 a4 40 04 cmp %l1, %g4 <== NOT EXECUTED
2028e68: 22 80 00 62 be,a 2028ff0 <fat_file_open+0x268> <== NOT EXECUTED
2028e6c: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED
{
*ret = (void *)the_node;
return 0;
}
}
the_node = the_node->next;
2028e70: 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) ; )
2028e74: 80 a3 40 01 cmp %o5, %g1 <== NOT EXECUTED
2028e78: 32 bf ff e7 bne,a 2028e14 <fat_file_open+0x8c> <== NOT EXECUTED
2028e7c: 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;
2028e80: da 04 20 6c ld [ %l0 + 0x6c ], %o5 <== NOT EXECUTED
2028e84: c2 03 40 13 ld [ %o5 + %l3 ], %g1 <== NOT EXECUTED
2028e88: 9a 03 40 13 add %o5, %l3, %o5 <== NOT EXECUTED
2028e8c: 9a 03 60 04 add %o5, 4, %o5 <== NOT EXECUTED
for ( ; !rtems_chain_is_tail((hash) + mod, the_node) ; )
2028e90: 80 a0 40 0d cmp %g1, %o5 <== NOT EXECUTED
2028e94: 02 80 00 1f be 2028f10 <fat_file_open+0x188> <== NOT EXECUTED
2028e98: a8 10 3f ff mov -1, %l4 <== 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) +
2028e9c: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 <== NOT EXECUTED
uint32_t cln
)
{
fat_fs_info_t *fs_info = mt_entry->fs_info;
if (cln == 1)
2028ea0: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED
2028ea4: 02 80 00 0c be 2028ed4 <fat_file_open+0x14c> <== NOT EXECUTED
2028ea8: 88 10 20 01 mov 1, %g4 <== 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)) )
2028eac: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2028eb0: 32 80 00 3f bne,a 2028fac <fat_file_open+0x224> <== NOT EXECUTED
2028eb4: c8 0c 20 05 ldub [ %l0 + 5 ], %g4 <== NOT EXECUTED
2028eb8: c6 0c 20 0a ldub [ %l0 + 0xa ], %g3 <== NOT EXECUTED
2028ebc: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED
2028ec0: 22 80 00 3b be,a 2028fac <fat_file_open+0x224> <== NOT EXECUTED
2028ec4: c8 0c 20 05 ldub [ %l0 + 5 ], %g4 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
2028ec8: c8 04 20 1c ld [ %l0 + 0x1c ], %g4 <== 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) <<
2028ecc: c6 0c 20 03 ldub [ %l0 + 3 ], %g3 <== NOT EXECUTED
2028ed0: 89 29 00 03 sll %g4, %g3, %g4 <== NOT EXECUTED
(pos->ofs >> FAT_SECTOR512_BITS)) << 4) +
2028ed4: c6 00 60 24 ld [ %g1 + 0x24 ], %g3 <== NOT EXECUTED
{
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)
2028ed8: 85 30 e0 05 srl %g3, 5, %g2 <== NOT EXECUTED
2028edc: 87 30 e0 09 srl %g3, 9, %g3 <== NOT EXECUTED
2028ee0: 84 08 a0 0f and %g2, 0xf, %g2 <== NOT EXECUTED
2028ee4: 88 01 00 03 add %g4, %g3, %g4 <== NOT EXECUTED
2028ee8: 89 29 20 04 sll %g4, 4, %g4 <== NOT EXECUTED
2028eec: 88 01 00 02 add %g4, %g2, %g4 <== NOT EXECUTED
2028ef0: 80 a4 40 04 cmp %l1, %g4 <== NOT EXECUTED
2028ef4: 02 80 00 38 be 2028fd4 <fat_file_open+0x24c> <== NOT EXECUTED
2028ef8: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
{
*ret = (void *)the_node;
return 0;
}
}
the_node = the_node->next;
2028efc: 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) ; )
2028f00: 80 a3 40 01 cmp %o5, %g1 <== NOT EXECUTED
2028f04: 32 bf ff e7 bne,a 2028ea0 <fat_file_open+0x118> <== NOT EXECUTED
2028f08: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 <== NOT EXECUTED
2028f0c: 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));
2028f10: 7f ff 80 54 call 2009060 <malloc> <== NOT EXECUTED
2028f14: 90 10 20 44 mov 0x44, %o0 <== NOT EXECUTED
2028f18: d0 26 80 00 st %o0, [ %i2 ] <== NOT EXECUTED
if ( lfat_fd == NULL )
2028f1c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2028f20: 02 80 00 40 be 2029020 <fat_file_open+0x298> <== NOT EXECUTED
2028f24: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
memset(lfat_fd, 0, sizeof(fat_file_fd_t));
2028f28: 92 10 20 00 clr %o1 <== NOT EXECUTED
2028f2c: 40 00 8d 25 call 204c3c0 <memset> <== NOT EXECUTED
2028f30: 94 10 20 44 mov 0x44, %o2 <== NOT EXECUTED
lfat_fd->links_num = 1;
lfat_fd->flags &= ~FAT_FILE_REMOVED;
2028f34: c2 0c a0 30 ldub [ %l2 + 0x30 ], %g1 <== NOT EXECUTED
lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE;
lfat_fd->dir_pos = *dir_pos;
2028f38: c4 06 60 0c ld [ %i1 + 0xc ], %g2 <== 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;
2028f3c: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED
lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE;
lfat_fd->dir_pos = *dir_pos;
2028f40: da 06 40 00 ld [ %i1 ], %o5 <== NOT EXECUTED
2028f44: c8 06 60 04 ld [ %i1 + 4 ], %g4 <== NOT EXECUTED
2028f48: c6 06 60 08 ld [ %i1 + 8 ], %g3 <== 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;
2028f4c: c2 2c a0 30 stb %g1, [ %l2 + 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;
2028f50: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
lfat_fd->flags &= ~FAT_FILE_REMOVED;
lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE;
lfat_fd->dir_pos = *dir_pos;
2028f54: da 24 a0 20 st %o5, [ %l2 + 0x20 ] <== 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;
2028f58: c2 24 a0 08 st %g1, [ %l2 + 8 ] <== NOT EXECUTED
lfat_fd->flags &= ~FAT_FILE_REMOVED;
lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE;
lfat_fd->dir_pos = *dir_pos;
2028f5c: c8 24 a0 24 st %g4, [ %l2 + 0x24 ] <== 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;
2028f60: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
lfat_fd->dir_pos = *dir_pos;
2028f64: c6 24 a0 28 st %g3, [ %l2 + 0x28 ] <== NOT EXECUTED
2028f68: c4 24 a0 2c st %g2, [ %l2 + 0x2c ] <== NOT EXECUTED
if ( rc != RC_OK )
2028f6c: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED
2028f70: 02 80 00 25 be 2029004 <fat_file_open+0x27c> <== NOT EXECUTED
2028f74: c2 24 a0 3c st %g1, [ %l2 + 0x3c ] <== NOT EXECUTED
lfat_fd->ino = key;
2028f78: e2 24 a0 0c st %l1, [ %l2 + 0xc ] <== 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 );
2028f7c: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED
2028f80: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2028f84: 90 02 00 13 add %o0, %l3, %o0 <== NOT EXECUTED
2028f88: 7f ff 94 e4 call 200e318 <_Chain_Append> <== NOT EXECUTED
2028f8c: b0 10 20 00 clr %i0 <== NOT EXECUTED
* other fields of fat-file descriptor will be initialized on upper
* level
*/
return RC_OK;
}
2028f90: 81 c7 e0 08 ret <== NOT EXECUTED
2028f94: 81 e8 00 00 restore <== NOT EXECUTED
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
return fs_info->vol.rdir_loc;
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
2028f98: c6 04 20 30 ld [ %l0 + 0x30 ], %g3 <== NOT EXECUTED
2028f9c: 82 00 7f fe add %g1, -2, %g1 <== NOT EXECUTED
2028fa0: 85 28 40 02 sll %g1, %g2, %g2 <== NOT EXECUTED
2028fa4: 10 bf ff 87 b 2028dc0 <fat_file_open+0x38> <== NOT EXECUTED
2028fa8: 84 00 80 03 add %g2, %g3, %g2 <== NOT EXECUTED
2028fac: c6 04 20 30 ld [ %l0 + 0x30 ], %g3 <== NOT EXECUTED
2028fb0: 84 00 bf fe add %g2, -2, %g2 <== NOT EXECUTED
2028fb4: 89 28 80 04 sll %g2, %g4, %g4 <== NOT EXECUTED
2028fb8: 10 bf ff c5 b 2028ecc <fat_file_open+0x144> <== NOT EXECUTED
2028fbc: 88 01 00 03 add %g4, %g3, %g4 <== NOT EXECUTED
2028fc0: c6 04 20 30 ld [ %l0 + 0x30 ], %g3 <== NOT EXECUTED
2028fc4: 84 00 bf fe add %g2, -2, %g2 <== NOT EXECUTED
2028fc8: 89 28 80 04 sll %g2, %g4, %g4 <== NOT EXECUTED
2028fcc: 10 bf ff 9d b 2028e40 <fat_file_open+0xb8> <== NOT EXECUTED
2028fd0: 88 01 00 03 add %g4, %g3, %g4 <== NOT EXECUTED
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)
{
if ( ((key2) == 0) || ((key2) == ffd->ino) )
2028fd4: 02 bf ff cf be 2028f10 <fat_file_open+0x188> <== NOT EXECUTED
2028fd8: a8 10 20 00 clr %l4 <== NOT EXECUTED
2028fdc: c4 00 60 0c ld [ %g1 + 0xc ], %g2 <== NOT EXECUTED
2028fe0: 80 a4 40 02 cmp %l1, %g2 <== NOT EXECUTED
2028fe4: 32 bf ff c7 bne,a 2028f00 <fat_file_open+0x178> <== NOT EXECUTED
2028fe8: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED
2028fec: 30 bf ff c9 b,a 2028f10 <fat_file_open+0x188> <== 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;
2028ff0: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
lfat_fd->links_num++;
2028ff4: 84 00 a0 01 inc %g2 <== NOT EXECUTED
2028ff8: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED
return rc;
2028ffc: 81 c7 e0 08 ret <== NOT EXECUTED
2029000: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
if ( rc != RC_OK )
lfat_fd->ino = key;
else
{
lfat_fd->ino = fat_get_unique_ino(mt_entry);
2029004: 40 00 00 20 call 2029084 <fat_get_unique_ino> <== NOT EXECUTED
2029008: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if ( lfat_fd->ino == 0 )
202900c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029010: 12 bf ff db bne 2028f7c <fat_file_open+0x1f4> <== NOT EXECUTED
2029014: d0 24 a0 0c st %o0, [ %l2 + 0xc ] <== NOT EXECUTED
{
free((*fat_fd));
2029018: 7f ff 7e 31 call 20088dc <free> <== NOT EXECUTED
202901c: 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 );
2029020: 40 00 7f 09 call 2048c44 <__errno> <== NOT EXECUTED
2029024: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2029028: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
202902c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2029030: 81 c7 e0 08 ret <== NOT EXECUTED
2029034: 81 e8 00 00 restore <== NOT EXECUTED
02028a94 <fat_file_read>:
fat_file_fd_t *fat_fd,
uint32_t start,
uint32_t count,
uint8_t *buf
)
{
2028a94: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
2028a98: 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)
2028a9c: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2028aa0: 02 80 00 50 be 2028be0 <fat_file_read+0x14c> <== NOT EXECUTED
2028aa4: e4 06 20 34 ld [ %i0 + 0x34 ], %l2 <== NOT EXECUTED
/*
* >= because start is offset and computed from 0 and file_size
* computed from 1
*/
if ( start >= fat_fd->fat_file_size )
2028aa8: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED
2028aac: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED
2028ab0: 08 80 00 4c bleu 2028be0 <fat_file_read+0x14c> <== NOT EXECUTED
2028ab4: 80 a6 c0 01 cmp %i3, %g1 <== NOT EXECUTED
return FAT_EOF;
if ((count > fat_fd->fat_file_size) ||
2028ab8: 08 80 00 68 bleu 2028c58 <fat_file_read+0x1c4> <== NOT EXECUTED
2028abc: 84 20 40 1b sub %g1, %i3, %g2 <== NOT EXECUTED
(start > fat_fd->fat_file_size - count))
count = fat_fd->fat_file_size - start;
2028ac0: b6 20 40 1a sub %g1, %i2, %i3 <== NOT EXECUTED
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
2028ac4: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
2028ac8: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2028acc: 02 80 00 47 be 2028be8 <fat_file_read+0x154> <== NOT EXECUTED
2028ad0: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
return -1;
return ret;
}
cl_start = start >> fs_info->vol.bpc_log2;
2028ad4: ea 0c a0 08 ldub [ %l2 + 8 ], %l5 <== NOT EXECUTED
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
2028ad8: e2 14 a0 06 lduh [ %l2 + 6 ], %l1 <== NOT EXECUTED
return -1;
return ret;
}
cl_start = start >> fs_info->vol.bpc_log2;
2028adc: ab 36 80 15 srl %i2, %l5, %l5 <== NOT EXECUTED
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
2028ae0: a8 07 bf fc add %fp, -4, %l4 <== NOT EXECUTED
2028ae4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2028ae8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2028aec: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED
2028af0: 7f ff fd cc call 2028220 <fat_file_lseek> <== NOT EXECUTED
2028af4: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
if (rc != RC_OK)
2028af8: b0 92 60 00 orcc %o1, 0, %i0 <== NOT EXECUTED
2028afc: 12 80 00 66 bne 2028c94 <fat_file_read+0x200> <== NOT EXECUTED
2028b00: a3 2c 60 10 sll %l1, 0x10, %l1 <== NOT EXECUTED
return rc;
while (count > 0)
2028b04: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
return ret;
}
cl_start = start >> fs_info->vol.bpc_log2;
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
2028b08: a3 34 60 10 srl %l1, 0x10, %l1 <== NOT EXECUTED
2028b0c: a2 04 7f ff add %l1, -1, %l1 <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
if (rc != RC_OK)
return rc;
while (count > 0)
2028b10: 02 80 00 63 be 2028c9c <fat_file_read+0x208> <== NOT EXECUTED
2028b14: b4 0e 80 11 and %i2, %l1, %i2 <== NOT EXECUTED
cl_start = start >> fs_info->vol.bpc_log2;
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
if (rc != RC_OK)
2028b18: c6 0c a0 02 ldub [ %l2 + 2 ], %g3 <== NOT EXECUTED
2028b1c: d4 14 80 00 lduh [ %l2 ], %o2 <== NOT EXECUTED
2028b20: 82 10 00 1a mov %i2, %g1 <== NOT EXECUTED
2028b24: 10 80 00 20 b 2028ba4 <fat_file_read+0x110> <== NOT EXECUTED
2028b28: a6 10 20 00 clr %l3 <== 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)) )
2028b2c: da 08 a0 0a ldub [ %g2 + 0xa ], %o5 <== NOT EXECUTED
2028b30: 80 8b 60 03 btst 3, %o5 <== NOT EXECUTED
2028b34: 22 80 00 27 be,a 2028bd0 <fat_file_read+0x13c> <== NOT EXECUTED
2028b38: da 00 a0 30 ld [ %g2 + 0x30 ], %o5 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
2028b3c: d2 00 a0 1c ld [ %g2 + 0x1c ], %o1 <== 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);
2028b40: 87 30 40 03 srl %g1, %g3, %g3 <== NOT EXECUTED
2028b44: 98 07 00 13 add %i4, %l3, %o4 <== NOT EXECUTED
2028b48: 92 02 40 03 add %o1, %g3, %o1 <== NOT EXECUTED
2028b4c: 95 2a a0 10 sll %o2, 0x10, %o2 <== NOT EXECUTED
2028b50: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
2028b54: 95 32 a0 10 srl %o2, 0x10, %o2 <== NOT EXECUTED
2028b58: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2028b5c: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED
2028b60: 40 00 03 69 call 2029904 <_fat_block_read> <== NOT EXECUTED
2028b64: 94 0a 80 01 and %o2, %g1, %o2 <== NOT EXECUTED
if ( ret < 0 )
return -1;
count -= c;
cmpltd += c;
2028b68: a6 04 c0 11 add %l3, %l1, %l3 <== 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 )
2028b6c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
return -1;
count -= c;
cmpltd += c;
save_cln = cur_cln;
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
2028b70: 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 )
2028b74: 06 80 00 37 bl 2028c50 <fat_file_read+0x1bc> <== NOT EXECUTED
2028b78: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return -1;
count -= c;
cmpltd += c;
save_cln = cur_cln;
2028b7c: ec 07 bf fc ld [ %fp + -4 ], %l6 <== NOT EXECUTED
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
2028b80: 40 00 6e 9b call 20445ec <fat_get_fat_cluster> <== NOT EXECUTED
2028b84: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
if ( rc != RC_OK )
2028b88: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2028b8c: 12 80 00 38 bne 2028c6c <fat_file_read+0x1d8> <== NOT EXECUTED
2028b90: b6 a6 c0 11 subcc %i3, %l1, %i3 <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
if (rc != RC_OK)
return rc;
while (count > 0)
2028b94: 02 80 00 38 be 2028c74 <fat_file_read+0x1e0> <== NOT EXECUTED
2028b98: 82 10 20 00 clr %g1 <== NOT EXECUTED
2028b9c: c6 0c a0 02 ldub [ %l2 + 2 ], %g3 <== NOT EXECUTED
2028ba0: d4 14 80 00 lduh [ %l2 ], %o2 <== NOT EXECUTED
{
c = MIN(count, (fs_info->vol.bpc - ofs));
2028ba4: e2 14 a0 06 lduh [ %l2 + 6 ], %l1 <== NOT EXECUTED
2028ba8: a2 24 40 01 sub %l1, %g1, %l1 <== NOT EXECUTED
2028bac: 80 a4 40 1b cmp %l1, %i3 <== NOT EXECUTED
2028bb0: 08 80 00 03 bleu 2028bbc <fat_file_read+0x128> <== NOT EXECUTED
2028bb4: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED
2028bb8: a2 10 00 1b mov %i3, %l1 <== 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)) )
2028bbc: 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) +
2028bc0: 88 00 bf fe add %g2, -2, %g4 <== 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)) )
2028bc4: 02 bf ff da be 2028b2c <fat_file_read+0x98> <== NOT EXECUTED
2028bc8: c4 04 20 34 ld [ %l0 + 0x34 ], %g2 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
2028bcc: da 00 a0 30 ld [ %g2 + 0x30 ], %o5 <== NOT EXECUTED
2028bd0: d2 08 a0 05 ldub [ %g2 + 5 ], %o1 <== NOT EXECUTED
2028bd4: 93 29 00 09 sll %g4, %o1, %o1 <== NOT EXECUTED
2028bd8: 10 bf ff da b 2028b40 <fat_file_read+0xac> <== NOT EXECUTED
2028bdc: 92 02 40 0d add %o1, %o5, %o1 <== 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;
2028be0: 81 c7 e0 08 ret <== NOT EXECUTED
2028be4: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
if ((count > fat_fd->fat_file_size) ||
(start > fat_fd->fat_file_size - count))
count = fat_fd->fat_file_size - start;
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
2028be8: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED
2028bec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2028bf0: 32 bf ff ba bne,a 2028ad8 <fat_file_read+0x44> <== NOT EXECUTED
2028bf4: ea 0c a0 08 ldub [ %l2 + 8 ], %l5 <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
2028bf8: c2 0c a0 0a ldub [ %l2 + 0xa ], %g1 <== NOT EXECUTED
2028bfc: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
2028c00: 22 bf ff b6 be,a 2028ad8 <fat_file_read+0x44> <== NOT EXECUTED
2028c04: ea 0c a0 08 ldub [ %l2 + 8 ], %l5 <== NOT EXECUTED
{
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->cln);
2028c08: c2 06 60 1c ld [ %i1 + 0x1c ], %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)) )
2028c0c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2028c10: 32 80 00 27 bne,a 2028cac <fat_file_read+0x218> <== NOT EXECUTED
2028c14: c6 0c a0 05 ldub [ %l2 + 5 ], %g3 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
2028c18: d2 04 a0 1c ld [ %l2 + 0x1c ], %o1 <== 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);
2028c1c: d4 14 80 00 lduh [ %l2 ], %o2 <== NOT EXECUTED
2028c20: c2 0c a0 02 ldub [ %l2 + 2 ], %g1 <== NOT EXECUTED
2028c24: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED
2028c28: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2028c2c: 94 0e 80 0a and %i2, %o2, %o2 <== NOT EXECUTED
2028c30: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
2028c34: b5 36 80 01 srl %i2, %g1, %i2 <== NOT EXECUTED
2028c38: 98 10 00 1c mov %i4, %o4 <== NOT EXECUTED
2028c3c: 40 00 03 32 call 2029904 <_fat_block_read> <== NOT EXECUTED
2028c40: 92 02 40 1a add %o1, %i2, %o1 <== NOT EXECUTED
if ( ret < 0 )
2028c44: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2028c48: 16 80 00 13 bge 2028c94 <fat_file_read+0x200> <== NOT EXECUTED
2028c4c: 01 00 00 00 nop <== NOT EXECUTED
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;
}
2028c50: 81 c7 e0 08 ret <== NOT EXECUTED
2028c54: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
* computed from 1
*/
if ( start >= fat_fd->fat_file_size )
return FAT_EOF;
if ((count > fat_fd->fat_file_size) ||
2028c58: 80 a6 80 02 cmp %i2, %g2 <== NOT EXECUTED
2028c5c: 28 bf ff 9b bleu,a 2028ac8 <fat_file_read+0x34> <== NOT EXECUTED
2028c60: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
(start > fat_fd->fat_file_size - count))
count = fat_fd->fat_file_size - start;
2028c64: 10 bf ff 98 b 2028ac4 <fat_file_read+0x30> <== NOT EXECUTED
2028c68: b6 20 40 1a sub %g1, %i2, %i3 <== NOT EXECUTED
count -= c;
cmpltd += c;
save_cln = cur_cln;
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
if ( rc != RC_OK )
2028c6c: 81 c7 e0 08 ret <== NOT EXECUTED
2028c70: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
if (rc != RC_OK)
return rc;
while (count > 0)
2028c74: b0 10 00 13 mov %l3, %i0 <== NOT EXECUTED
ofs = 0;
}
/* update cache */
/* XXX: check this - I'm not sure :( */
fat_fd->map.file_cln = cl_start +
2028c78: c2 0c a0 08 ldub [ %l2 + 8 ], %g1 <== NOT EXECUTED
2028c7c: 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;
2028c80: ec 26 60 38 st %l6, [ %i1 + 0x38 ] <== NOT EXECUTED
ofs = 0;
}
/* update cache */
/* XXX: check this - I'm not sure :( */
fat_fd->map.file_cln = cl_start +
2028c84: a6 06 80 13 add %i2, %l3, %l3 <== NOT EXECUTED
2028c88: a7 34 c0 01 srl %l3, %g1, %l3 <== NOT EXECUTED
2028c8c: aa 04 c0 15 add %l3, %l5, %l5 <== NOT EXECUTED
2028c90: ea 26 60 34 st %l5, [ %i1 + 0x34 ] <== NOT EXECUTED
((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2);
fat_fd->map.disk_cln = save_cln;
return cmpltd;
2028c94: 81 c7 e0 08 ret <== NOT EXECUTED
2028c98: 81 e8 00 00 restore <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
if (rc != RC_OK)
return rc;
while (count > 0)
2028c9c: b0 10 20 00 clr %i0 <== NOT EXECUTED
2028ca0: ac 10 20 00 clr %l6 <== NOT EXECUTED
2028ca4: 10 bf ff f5 b 2028c78 <fat_file_read+0x1e4> <== NOT EXECUTED
2028ca8: a6 10 20 00 clr %l3 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
2028cac: c4 04 a0 30 ld [ %l2 + 0x30 ], %g2 <== NOT EXECUTED
2028cb0: 82 00 7f fe add %g1, -2, %g1 <== NOT EXECUTED
2028cb4: 93 28 40 03 sll %g1, %g3, %o1 <== NOT EXECUTED
2028cb8: 10 bf ff d9 b 2028c1c <fat_file_read+0x188> <== NOT EXECUTED
2028cbc: 92 02 40 02 add %o1, %g2, %o1 <== NOT EXECUTED
02028134 <fat_file_reopen>:
* RC_OK
*/
int
fat_file_reopen(fat_file_fd_t *fat_fd)
{
fat_fd->links_num++;
2028134: c4 02 20 08 ld [ %o0 + 8 ], %g2 <== NOT EXECUTED
* RETURNS:
* RC_OK
*/
int
fat_file_reopen(fat_file_fd_t *fat_fd)
{
2028138: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED
fat_fd->links_num++;
202813c: 84 00 a0 01 inc %g2 <== NOT EXECUTED
return RC_OK;
}
2028140: 90 10 20 00 clr %o0 <== NOT EXECUTED
2028144: 81 c3 e0 08 retl <== NOT EXECUTED
2028148: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED
0202814c <fat_file_size>:
int
fat_file_size(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
202814c: 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)) &&
2028150: 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
)
{
2028154: 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)) &&
2028158: 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;
202815c: 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)) &&
2028160: 02 80 00 24 be 20281f0 <fat_file_size+0xa4> <== NOT EXECUTED
2028164: e2 06 60 1c ld [ %i1 + 0x1c ], %l1 <== NOT EXECUTED
{
fat_fd->fat_file_size = fs_info->vol.rdir_size;
return rc;
}
fat_fd->fat_file_size = 0;
2028168: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
202816c: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED
2028170: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
2028174: 84 0c 40 02 and %l1, %g2, %g2 <== NOT EXECUTED
2028178: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
202817c: 1a 80 00 18 bcc 20281dc <fat_file_size+0x90> <== NOT EXECUTED
2028180: a6 07 bf fc add %fp, -4, %l3 <== 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;
2028184: 10 80 00 0d b 20281b8 <fat_file_size+0x6c> <== NOT EXECUTED
2028188: e2 27 bf fc st %l1, [ %fp + -4 ] <== NOT EXECUTED
save_cln = cur_cln;
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
if ( rc != RC_OK )
return rc;
fat_fd->fat_file_size += fs_info->vol.bpc;
202818c: c4 14 20 06 lduh [ %l0 + 6 ], %g2 <== NOT EXECUTED
return rc;
}
fat_fd->fat_file_size = 0;
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
2028190: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
save_cln = cur_cln;
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
if ( rc != RC_OK )
return rc;
fat_fd->fat_file_size += fs_info->vol.bpc;
2028194: 84 00 c0 02 add %g3, %g2, %g2 <== NOT EXECUTED
2028198: 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)
202819c: c6 04 20 0c ld [ %l0 + 0xc ], %g3 <== NOT EXECUTED
20281a0: c4 04 20 10 ld [ %l0 + 0x10 ], %g2 <== NOT EXECUTED
20281a4: 86 08 40 03 and %g1, %g3, %g3 <== NOT EXECUTED
20281a8: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED
20281ac: 1a 80 00 0e bcc 20281e4 <fat_file_size+0x98> <== NOT EXECUTED
20281b0: 90 10 20 00 clr %o0 <== NOT EXECUTED
20281b4: a2 10 00 01 mov %g1, %l1 <== NOT EXECUTED
{
save_cln = cur_cln;
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
20281b8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20281bc: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
20281c0: 40 00 71 0b call 20445ec <fat_get_fat_cluster> <== NOT EXECUTED
20281c4: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
20281c8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20281cc: 22 bf ff f0 be,a 202818c <fat_file_size+0x40> <== NOT EXECUTED
20281d0: c6 06 60 18 ld [ %i1 + 0x18 ], %g3 <== NOT EXECUTED
fat_fd->fat_file_size += fs_info->vol.bpc;
}
fat_fd->map.last_cln = save_cln;
return rc;
}
20281d4: 81 c7 e0 08 ret <== NOT EXECUTED
20281d8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
return rc;
}
fat_fd->fat_file_size = 0;
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
20281dc: a2 10 20 00 clr %l1 <== NOT EXECUTED
if ( rc != RC_OK )
return rc;
fat_fd->fat_file_size += fs_info->vol.bpc;
}
fat_fd->map.last_cln = save_cln;
20281e0: 90 10 20 00 clr %o0 <== NOT EXECUTED
20281e4: e2 26 60 3c st %l1, [ %i1 + 0x3c ] <== NOT EXECUTED
return rc;
}
20281e8: 81 c7 e0 08 ret <== NOT EXECUTED
20281ec: 91 e8 00 08 restore %g0, %o0, %o0 <== 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)) &&
20281f0: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED
20281f4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20281f8: 32 bf ff dd bne,a 202816c <fat_file_size+0x20> <== NOT EXECUTED
20281fc: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
2028200: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED
2028204: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
2028208: 22 bf ff d9 be,a 202816c <fat_file_size+0x20> <== NOT EXECUTED
202820c: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED
{
fat_fd->fat_file_size = fs_info->vol.rdir_size;
2028210: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED
2028214: 90 10 20 00 clr %o0 <== NOT EXECUTED
return rc;
2028218: 10 bf ff ef b 20281d4 <fat_file_size+0x88> <== NOT EXECUTED
202821c: c2 26 60 18 st %g1, [ %i1 + 0x18 ] <== NOT EXECUTED
0202852c <fat_file_truncate>:
fat_file_truncate(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd,
uint32_t new_length
)
{
202852c: 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 )
2028530: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED
2028534: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED
2028538: 08 80 00 33 bleu 2028604 <fat_file_truncate+0xd8> <== NOT EXECUTED
202853c: 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;
2028540: 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;
2028544: 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);
2028548: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202854c: 02 80 00 31 be 2028610 <fat_file_truncate+0xe4> <== NOT EXECUTED
2028550: c6 27 bf f8 st %g3, [ %fp + -8 ] <== NOT EXECUTED
cl_start = (new_length + fs_info->vol.bpc - 1) >> fs_info->vol.bpc_log2;
2028554: c6 10 a0 06 lduh [ %g2 + 6 ], %g3 <== NOT EXECUTED
2028558: c4 08 a0 08 ldub [ %g2 + 8 ], %g2 <== NOT EXECUTED
202855c: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED
2028560: b4 00 c0 1a add %g3, %i2, %i2 <== NOT EXECUTED
2028564: b5 36 80 02 srl %i2, %g2, %i2 <== NOT EXECUTED
if ((cl_start << fs_info->vol.bpc_log2) >= fat_fd->fat_file_size)
2028568: 85 2e 80 02 sll %i2, %g2, %g2 <== NOT EXECUTED
202856c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2028570: 08 80 00 25 bleu 2028604 <fat_file_truncate+0xd8> <== NOT EXECUTED
2028574: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
return RC_OK;
if (cl_start != 0)
2028578: 02 80 00 09 be 202859c <fat_file_truncate+0x70> <== NOT EXECUTED
202857c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
{
rc = fat_file_lseek(mt_entry, fat_fd, cl_start - 1, &new_last_cln);
2028580: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2028584: 94 06 bf ff add %i2, -1, %o2 <== NOT EXECUTED
2028588: 7f ff ff 26 call 2028220 <fat_file_lseek> <== NOT EXECUTED
202858c: 96 07 bf f8 add %fp, -8, %o3 <== NOT EXECUTED
if (rc != RC_OK)
2028590: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
2028594: 12 80 00 1d bne 2028608 <fat_file_truncate+0xdc> <== NOT EXECUTED
2028598: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
return rc;
}
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
202859c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
20285a0: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
20285a4: 7f ff ff 1f call 2028220 <fat_file_lseek> <== NOT EXECUTED
20285a8: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
if (rc != RC_OK)
20285ac: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
20285b0: 12 80 00 16 bne 2028608 <fat_file_truncate+0xdc> <== NOT EXECUTED
20285b4: 01 00 00 00 nop <== NOT EXECUTED
return rc;
rc = fat_free_fat_clusters_chain(mt_entry, cur_cln);
20285b8: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
20285bc: 40 00 70 90 call 20447fc <fat_free_fat_clusters_chain> <== NOT EXECUTED
20285c0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rc != RC_OK)
20285c4: 92 92 20 00 orcc %o0, 0, %o1 <== NOT EXECUTED
20285c8: 12 80 00 10 bne 2028608 <fat_file_truncate+0xdc> <== NOT EXECUTED
20285cc: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
return rc;
if (cl_start != 0)
20285d0: 02 80 00 0e be 2028608 <fat_file_truncate+0xdc> <== NOT EXECUTED
20285d4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
{
rc = fat_set_fat_cluster(mt_entry, new_last_cln, FAT_GENFAT_EOC);
20285d8: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
20285dc: 40 00 6f 3f call 20442d8 <fat_set_fat_cluster> <== NOT EXECUTED
20285e0: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
20285e4: 92 92 20 00 orcc %o0, 0, %o1 <== NOT EXECUTED
20285e8: 12 80 00 08 bne 2028608 <fat_file_truncate+0xdc> <== NOT EXECUTED
20285ec: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
return rc;
fat_fd->map.file_cln = cl_start - 1;
20285f0: 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;
20285f4: 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;
20285f8: f4 26 60 34 st %i2, [ %i1 + 0x34 ] <== NOT EXECUTED
fat_fd->map.disk_cln = new_last_cln;
20285fc: 10 80 00 03 b 2028608 <fat_file_truncate+0xdc> <== NOT EXECUTED
2028600: c2 26 60 38 st %g1, [ %i1 + 0x38 ] <== NOT EXECUTED
fat_fd->map.last_cln = new_last_cln;
2028604: 92 10 20 00 clr %o1 <== NOT EXECUTED
}
return RC_OK;
}
2028608: 81 c7 e0 08 ret <== NOT EXECUTED
202860c: 91 e8 00 09 restore %g0, %o1, %o0 <== NOT EXECUTED
if ( new_length >= fat_fd->fat_file_size )
return rc;
assert(fat_fd->fat_file_size);
2028610: 11 00 81 a4 sethi %hi(0x2069000), %o0 <== NOT EXECUTED
2028614: 15 00 81 a4 sethi %hi(0x2069000), %o2 <== NOT EXECUTED
2028618: 17 00 81 a4 sethi %hi(0x2069000), %o3 <== NOT EXECUTED
202861c: 90 12 21 c8 or %o0, 0x1c8, %o0 <== NOT EXECUTED
2028620: 94 12 a2 30 or %o2, 0x230, %o2 <== NOT EXECUTED
2028624: 96 12 e2 18 or %o3, 0x218, %o3 <== NOT EXECUTED
2028628: 40 00 0e 48 call 202bf48 <__assert_func> <== NOT EXECUTED
202862c: 92 10 22 6d mov 0x26d, %o1 <== NOT EXECUTED
02028824 <fat_file_write>:
fat_file_fd_t *fat_fd,
uint32_t start,
uint32_t count,
const uint8_t *buf
)
{
2028824: 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 )
2028828: 90 10 20 00 clr %o0 <== NOT EXECUTED
fat_file_fd_t *fat_fd,
uint32_t start,
uint32_t count,
const uint8_t *buf
)
{
202882c: 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 )
2028830: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2028834: 02 80 00 81 be 2028a38 <fat_file_write+0x214> <== NOT EXECUTED
2028838: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED
return cmpltd;
if ( start > fat_fd->fat_file_size )
202883c: 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;
2028840: 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 )
2028844: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED
2028848: 0a 80 00 7e bcs 2028a40 <fat_file_write+0x21c> <== NOT EXECUTED
202884c: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
if ((count > fat_fd->size_limit) ||
2028850: c2 06 60 14 ld [ %i1 + 0x14 ], %g1 <== NOT EXECUTED
2028854: 80 a6 c0 01 cmp %i3, %g1 <== NOT EXECUTED
2028858: 18 80 00 7a bgu 2028a40 <fat_file_write+0x21c> <== NOT EXECUTED
202885c: 82 20 40 1b sub %g1, %i3, %g1 <== NOT EXECUTED
2028860: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED
2028864: 18 80 00 77 bgu 2028a40 <fat_file_write+0x21c> <== NOT EXECUTED
2028868: a4 06 c0 1a add %i3, %i2, %l2 <== NOT EXECUTED
(start > fat_fd->size_limit - count))
rtems_set_errno_and_return_minus_one( EIO );
rc = fat_file_extend(mt_entry, fat_fd, start + count, &c);
202886c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2028870: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2028874: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2028878: 7f ff ff 6f call 2028634 <fat_file_extend> <== NOT EXECUTED
202887c: 96 07 bf f8 add %fp, -8, %o3 <== NOT EXECUTED
if (rc != RC_OK)
2028880: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2028884: 12 80 00 6d bne 2028a38 <fat_file_write+0x214> <== NOT EXECUTED
2028888: 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))
202888c: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED
2028890: 32 80 00 02 bne,a 2028898 <fat_file_write+0x74> <== NOT EXECUTED
2028894: b6 20 40 1a sub %g1, %i2, %i3 <== NOT EXECUTED
count = c - start;
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
2028898: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
202889c: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
20288a0: 22 80 00 48 be,a 20289c0 <fat_file_write+0x19c> <== NOT EXECUTED
20288a4: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED
return -1;
return ret;
}
cl_start = start >> fs_info->vol.bpc_log2;
20288a8: e8 0c 60 08 ldub [ %l1 + 8 ], %l4 <== NOT EXECUTED
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
20288ac: e4 14 60 06 lduh [ %l1 + 6 ], %l2 <== NOT EXECUTED
return -1;
return ret;
}
cl_start = start >> fs_info->vol.bpc_log2;
20288b0: a9 36 80 14 srl %i2, %l4, %l4 <== NOT EXECUTED
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
20288b4: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED
20288b8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20288bc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
20288c0: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
20288c4: 7f ff fe 57 call 2028220 <fat_file_lseek> <== NOT EXECUTED
20288c8: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
if (rc != RC_OK)
20288cc: 90 92 60 00 orcc %o1, 0, %o0 <== NOT EXECUTED
20288d0: 12 80 00 5a bne 2028a38 <fat_file_write+0x214> <== NOT EXECUTED
20288d4: 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);
20288d8: a5 34 a0 10 srl %l2, 0x10, %l2 <== NOT EXECUTED
20288dc: a4 04 bf ff add %l2, -1, %l2 <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
if (rc != RC_OK)
return rc;
while (count > 0)
20288e0: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
return ret;
}
cl_start = start >> fs_info->vol.bpc_log2;
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
20288e4: b4 0e 80 12 and %i2, %l2, %i2 <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
if (rc != RC_OK)
return rc;
while (count > 0)
20288e8: ac 10 20 00 clr %l6 <== NOT EXECUTED
20288ec: 02 80 00 5c be 2028a5c <fat_file_write+0x238> <== NOT EXECUTED
20288f0: a4 10 20 00 clr %l2 <== NOT EXECUTED
cl_start = start >> fs_info->vol.bpc_log2;
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
if (rc != RC_OK)
20288f4: c8 0c 60 02 ldub [ %l1 + 2 ], %g4 <== NOT EXECUTED
20288f8: d4 14 40 00 lduh [ %l1 ], %o2 <== NOT EXECUTED
20288fc: 10 80 00 22 b 2028984 <fat_file_write+0x160> <== NOT EXECUTED
2028900: 84 10 00 1a mov %i2, %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)) )
2028904: d8 08 e0 0a ldub [ %g3 + 0xa ], %o4 <== NOT EXECUTED
2028908: 80 8b 20 03 btst 3, %o4 <== NOT EXECUTED
202890c: 22 80 00 29 be,a 20289b0 <fat_file_write+0x18c> <== NOT EXECUTED
2028910: d8 00 e0 30 ld [ %g3 + 0x30 ], %o4 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
2028914: d2 00 e0 1c ld [ %g3 + 0x1c ], %o1 <== 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);
2028918: 89 30 80 04 srl %g2, %g4, %g4 <== NOT EXECUTED
202891c: 95 2a a0 10 sll %o2, 0x10, %o2 <== NOT EXECUTED
2028920: 92 02 40 04 add %o1, %g4, %o1 <== NOT EXECUTED
2028924: 96 10 00 01 mov %g1, %o3 <== NOT EXECUTED
2028928: 95 32 a0 10 srl %o2, 0x10, %o2 <== NOT EXECUTED
if (rc != RC_OK)
return rc;
while (count > 0)
{
c = MIN(count, (fs_info->vol.bpc - ofs));
202892c: 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);
2028930: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED
2028934: 98 07 00 12 add %i4, %l2, %o4 <== NOT EXECUTED
2028938: 94 0a 80 02 and %o2, %g2, %o2 <== NOT EXECUTED
202893c: 40 00 02 ff call 2029538 <_fat_block_write> <== NOT EXECUTED
2028940: 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);
2028944: 94 10 00 13 mov %l3, %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 )
2028948: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202894c: 06 80 00 3a bl 2028a34 <fat_file_write+0x210> <== NOT EXECUTED
2028950: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return -1;
count -= c;
cmpltd += c;
save_cln = cur_cln;
2028954: ec 07 bf fc ld [ %fp + -4 ], %l6 <== NOT EXECUTED
ret = _fat_block_write(mt_entry, sec, byte, c, buf + cmpltd);
if ( ret < 0 )
return -1;
count -= c;
2028958: ea 07 bf f8 ld [ %fp + -8 ], %l5 <== NOT EXECUTED
cmpltd += c;
save_cln = cur_cln;
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
202895c: 40 00 6f 24 call 20445ec <fat_get_fat_cluster> <== NOT EXECUTED
2028960: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
if ( rc != RC_OK )
2028964: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2028968: 12 80 00 34 bne 2028a38 <fat_file_write+0x214> <== NOT EXECUTED
202896c: b6 a6 c0 15 subcc %i3, %l5, %i3 <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
if (rc != RC_OK)
return rc;
while (count > 0)
2028970: 02 80 00 3a be 2028a58 <fat_file_write+0x234> <== NOT EXECUTED
2028974: a4 04 80 15 add %l2, %l5, %l2 <== NOT EXECUTED
2028978: c8 0c 60 02 ldub [ %l1 + 2 ], %g4 <== NOT EXECUTED
202897c: d4 14 40 00 lduh [ %l1 ], %o2 <== NOT EXECUTED
2028980: 84 10 20 00 clr %g2 <== NOT EXECUTED
{
c = MIN(count, (fs_info->vol.bpc - ofs));
2028984: c2 14 60 06 lduh [ %l1 + 6 ], %g1 <== NOT EXECUTED
2028988: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED
202898c: 80 a0 40 1b cmp %g1, %i3 <== NOT EXECUTED
2028990: 08 80 00 03 bleu 202899c <fat_file_write+0x178> <== NOT EXECUTED
2028994: c6 07 bf fc ld [ %fp + -4 ], %g3 <== NOT EXECUTED
2028998: 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)) )
202899c: 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) +
20289a0: 9a 00 ff fe add %g3, -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)) )
20289a4: 02 bf ff d8 be 2028904 <fat_file_write+0xe0> <== NOT EXECUTED
20289a8: c6 04 20 34 ld [ %l0 + 0x34 ], %g3 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
20289ac: d8 00 e0 30 ld [ %g3 + 0x30 ], %o4 <== NOT EXECUTED
20289b0: d2 08 e0 05 ldub [ %g3 + 5 ], %o1 <== NOT EXECUTED
20289b4: 93 2b 40 09 sll %o5, %o1, %o1 <== NOT EXECUTED
20289b8: 10 bf ff d8 b 2028918 <fat_file_write+0xf4> <== NOT EXECUTED
20289bc: 92 02 40 0c add %o1, %o4, %o1 <== NOT EXECUTED
* file of 'start + count' bytes
*/
if (c != (start + count))
count = c - start;
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
20289c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20289c4: 32 bf ff ba bne,a 20288ac <fat_file_write+0x88> <== NOT EXECUTED
20289c8: e8 0c 60 08 ldub [ %l1 + 8 ], %l4 <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
20289cc: c2 0c 60 0a ldub [ %l1 + 0xa ], %g1 <== NOT EXECUTED
20289d0: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
20289d4: 22 bf ff b6 be,a 20288ac <fat_file_write+0x88> <== NOT EXECUTED
20289d8: e8 0c 60 08 ldub [ %l1 + 8 ], %l4 <== NOT EXECUTED
{
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->cln);
20289dc: 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)) )
20289e0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
20289e4: 12 80 00 26 bne 2028a7c <fat_file_write+0x258> <== NOT EXECUTED
20289e8: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 <== NOT EXECUTED
20289ec: c6 08 60 0a ldub [ %g1 + 0xa ], %g3 <== NOT EXECUTED
20289f0: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED
20289f4: 22 80 00 23 be,a 2028a80 <fat_file_write+0x25c> <== NOT EXECUTED
20289f8: c6 00 60 30 ld [ %g1 + 0x30 ], %g3 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
20289fc: d2 00 60 1c ld [ %g1 + 0x1c ], %o1 <== 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);
2028a00: d4 14 40 00 lduh [ %l1 ], %o2 <== NOT EXECUTED
2028a04: c2 0c 60 02 ldub [ %l1 + 2 ], %g1 <== NOT EXECUTED
2028a08: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED
2028a0c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2028a10: 94 0e 80 0a and %i2, %o2, %o2 <== NOT EXECUTED
2028a14: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
2028a18: b5 36 80 01 srl %i2, %g1, %i2 <== NOT EXECUTED
2028a1c: 98 10 00 1c mov %i4, %o4 <== NOT EXECUTED
2028a20: 40 00 02 c6 call 2029538 <_fat_block_write> <== NOT EXECUTED
2028a24: 92 02 40 1a add %o1, %i2, %o1 <== NOT EXECUTED
if ( ret < 0 )
2028a28: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2028a2c: 16 80 00 03 bge 2028a38 <fat_file_write+0x214> <== NOT EXECUTED
2028a30: 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;
2028a34: 90 10 3f ff mov -1, %o0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
}
2028a38: 81 c7 e0 08 ret <== NOT EXECUTED
2028a3c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
if ( start > fat_fd->fat_file_size )
rtems_set_errno_and_return_minus_one( EIO );
if ((count > fat_fd->size_limit) ||
(start > fat_fd->size_limit - count))
rtems_set_errno_and_return_minus_one( EIO );
2028a40: 40 00 80 81 call 2048c44 <__errno> <== NOT EXECUTED
2028a44: 01 00 00 00 nop <== NOT EXECUTED
2028a48: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
2028a4c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2028a50: 10 bf ff fa b 2028a38 <fat_file_write+0x214> <== NOT EXECUTED
2028a54: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
if (rc != RC_OK)
return rc;
while (count > 0)
2028a58: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
ofs = 0;
}
/* update cache */
/* XXX: check this - I'm not sure :( */
fat_fd->map.file_cln = cl_start +
2028a5c: c2 0c 60 08 ldub [ %l1 + 8 ], %g1 <== NOT EXECUTED
2028a60: 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;
2028a64: ec 26 60 38 st %l6, [ %i1 + 0x38 ] <== NOT EXECUTED
ofs = 0;
}
/* update cache */
/* XXX: check this - I'm not sure :( */
fat_fd->map.file_cln = cl_start +
2028a68: a4 06 80 12 add %i2, %l2, %l2 <== NOT EXECUTED
2028a6c: a5 34 80 01 srl %l2, %g1, %l2 <== NOT EXECUTED
2028a70: a8 04 80 14 add %l2, %l4, %l4 <== NOT EXECUTED
((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2);
fat_fd->map.disk_cln = save_cln;
return cmpltd;
2028a74: 10 bf ff f1 b 2028a38 <fat_file_write+0x214> <== NOT EXECUTED
2028a78: e8 26 60 34 st %l4, [ %i1 + 0x34 ] <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
2028a7c: c6 00 60 30 ld [ %g1 + 0x30 ], %g3 <== NOT EXECUTED
2028a80: c2 08 60 05 ldub [ %g1 + 5 ], %g1 <== NOT EXECUTED
2028a84: 84 00 bf fe add %g2, -2, %g2 <== NOT EXECUTED
2028a88: 93 28 80 01 sll %g2, %g1, %o1 <== NOT EXECUTED
2028a8c: 10 bf ff dd b 2028a00 <fat_file_write+0x1dc> <== NOT EXECUTED
2028a90: 92 02 40 03 add %o1, %g3, %o1 <== NOT EXECUTED
020447fc <fat_free_fat_clusters_chain>:
int
fat_free_fat_clusters_chain(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t chain
)
{
20447fc: 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;
2044800: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
uint32_t cur_cln = chain;
uint32_t next_cln = 0;
2044804: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
uint32_t freed_cls_cnt = 0;
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
2044808: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED
204480c: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
2044810: 84 0e 40 02 and %i1, %g2, %g2 <== NOT EXECUTED
int
fat_free_fat_clusters_chain(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t chain
)
{
2044814: a2 10 00 18 mov %i0, %l1 <== 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)
2044818: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
204481c: a6 10 20 00 clr %l3 <== NOT EXECUTED
2044820: 08 80 00 24 bleu 20448b0 <fat_free_fat_clusters_chain+0xb4><== NOT EXECUTED
2044824: aa 10 20 00 clr %l5 <== NOT EXECUTED
2044828: a4 10 00 19 mov %i1, %l2 <== NOT EXECUTED
204482c: 10 80 00 0e b 2044864 <fat_free_fat_clusters_chain+0x68> <== NOT EXECUTED
2044830: a8 07 bf fc add %fp, -4, %l4 <== NOT EXECUTED
fat_buf_release(fs_info);
return rc;
}
rc = fat_set_fat_cluster(mt_entry, cur_cln, FAT_GENFAT_FREE);
2044834: 7f ff fe a9 call 20442d8 <fat_set_fat_cluster> <== NOT EXECUTED
2044838: 01 00 00 00 nop <== NOT EXECUTED
if ( rc != RC_OK )
204483c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2044840: 02 80 00 03 be 204484c <fat_free_fat_clusters_chain+0x50> <== NOT EXECUTED
2044844: e4 07 bf fc ld [ %fp + -4 ], %l2 <== NOT EXECUTED
2044848: aa 10 00 08 mov %o0, %l5 <== 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)
204484c: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED
2044850: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
2044854: 84 0c 80 02 and %l2, %g2, %g2 <== NOT EXECUTED
2044858: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
204485c: 1a 80 00 15 bcc 20448b0 <fat_free_fat_clusters_chain+0xb4><== NOT EXECUTED
2044860: a6 04 e0 01 inc %l3 <== NOT EXECUTED
{
rc = fat_get_fat_cluster(mt_entry, cur_cln, &next_cln);
2044864: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2044868: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
204486c: 7f ff ff 60 call 20445ec <fat_get_fat_cluster> <== NOT EXECUTED
2044870: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
fat_buf_release(fs_info);
return rc;
}
rc = fat_set_fat_cluster(mt_entry, cur_cln, FAT_GENFAT_FREE);
2044874: 92 10 00 12 mov %l2, %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);
2044878: 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);
204487c: 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 )
2044880: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
2044884: 02 bf ff ec be 2044834 <fat_free_fat_clusters_chain+0x38> <== NOT EXECUTED
2044888: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
{
if(fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)
204488c: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 <== NOT EXECUTED
2044890: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED
2044894: 02 80 00 03 be 20448a0 <fat_free_fat_clusters_chain+0xa4> <== NOT EXECUTED
2044898: 82 04 c0 01 add %l3, %g1, %g1 <== NOT EXECUTED
fs_info->vol.free_cls += freed_cls_cnt;
204489c: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED
fat_buf_release(fs_info);
20448a0: 7f ff 92 37 call 202917c <fat_buf_release> <== NOT EXECUTED
20448a4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
20448a8: 81 c7 e0 08 ret <== NOT EXECUTED
20448ac: 81 e8 00 00 restore <== NOT EXECUTED
freed_cls_cnt++;
cur_cln = next_cln;
}
fs_info->vol.next_cl = chain;
if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)
20448b0: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 <== NOT EXECUTED
20448b4: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED
20448b8: 02 80 00 04 be 20448c8 <fat_free_fat_clusters_chain+0xcc> <== NOT EXECUTED
20448bc: f2 24 20 44 st %i1, [ %l0 + 0x44 ] <== NOT EXECUTED
fs_info->vol.free_cls += freed_cls_cnt;
20448c0: 82 04 c0 01 add %l3, %g1, %g1 <== NOT EXECUTED
20448c4: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED
fat_buf_release(fs_info);
20448c8: b0 10 00 15 mov %l5, %i0 <== NOT EXECUTED
20448cc: 7f ff 92 2c call 202917c <fat_buf_release> <== NOT EXECUTED
20448d0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc1 != RC_OK)
return rc1;
return RC_OK;
}
20448d4: 81 c7 e0 08 ret <== NOT EXECUTED
20448d8: 81 e8 00 00 restore <== NOT EXECUTED
02029038 <fat_free_unique_ino>:
void
fat_free_unique_ino(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t ino
)
{
2029038: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
202903c: c4 06 20 34 ld [ %i0 + 0x34 ], %g2 <== NOT EXECUTED
FAT_SET_UNIQ_INO_FREE((ino - fs_info->uino_base), fs_info->uino);
2029040: 9a 10 20 01 mov 1, %o5 <== NOT EXECUTED
2029044: c2 00 a0 70 ld [ %g2 + 0x70 ], %g1 <== NOT EXECUTED
2029048: c4 00 a0 7c ld [ %g2 + 0x7c ], %g2 <== NOT EXECUTED
202904c: 84 26 40 02 sub %i1, %g2, %g2 <== NOT EXECUTED
2029050: 87 30 a0 03 srl %g2, 3, %g3 <== NOT EXECUTED
2029054: c8 08 40 03 ldub [ %g1 + %g3 ], %g4 <== NOT EXECUTED
2029058: 84 08 a0 07 and %g2, 7, %g2 <== NOT EXECUTED
202905c: 85 2b 40 02 sll %o5, %g2, %g2 <== NOT EXECUTED
2029060: 84 29 00 02 andn %g4, %g2, %g2 <== NOT EXECUTED
2029064: c4 28 40 03 stb %g2, [ %g1 + %g3 ] <== NOT EXECUTED
}
2029068: 81 c7 e0 08 ret <== NOT EXECUTED
202906c: 81 e8 00 00 restore <== NOT EXECUTED
020445ec <fat_get_fat_cluster>:
fat_get_fat_cluster(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
uint32_t *ret_val
)
{
20445ec: 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;
20445f0: 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)) )
20445f4: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED
20445f8: 08 80 00 6c bleu 20447a8 <fat_get_fat_cluster+0x1bc> <== NOT EXECUTED
20445fc: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
2044600: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 <== NOT EXECUTED
2044604: 82 00 60 01 inc %g1 <== NOT EXECUTED
2044608: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
204460c: 18 80 00 67 bgu 20447a8 <fat_get_fat_cluster+0x1bc> <== NOT EXECUTED
2044610: 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) +
2044614: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED
2044618: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
204461c: 12 80 00 24 bne 20446ac <fat_get_fat_cluster+0xc0> <== NOT EXECUTED
2044620: e6 0c 20 02 ldub [ %l0 + 2 ], %l3 <== NOT EXECUTED
2044624: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
2044628: 02 80 00 27 be 20446c4 <fat_get_fat_cluster+0xd8> <== NOT EXECUTED
204462c: 01 00 00 00 nop <== NOT EXECUTED
2044630: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 <== NOT EXECUTED
2044634: a3 2e 60 01 sll %i1, 1, %l1 <== NOT EXECUTED
2044638: a7 34 40 13 srl %l1, %l3, %l3 <== NOT EXECUTED
204463c: a6 04 c0 01 add %l3, %g1, %l3 <== NOT EXECUTED
fs_info->vol.afat_loc;
ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
2044640: e8 14 00 00 lduh [ %l0 ], %l4 <== NOT EXECUTED
rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &block0);
2044644: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
2044648: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
204464c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2044650: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
2044654: 7f ff 93 31 call 2029318 <fat_buf_access> <== NOT EXECUTED
2044658: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
if (rc != RC_OK)
204465c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2044660: 12 80 00 11 bne 20446a4 <fat_get_fat_cluster+0xb8> <== NOT EXECUTED
2044664: a9 2d 20 10 sll %l4, 0x10, %l4 <== NOT EXECUTED
return rc;
switch ( fs_info->vol.type )
2044668: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED
204466c: 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);
2044670: a9 35 20 10 srl %l4, 0x10, %l4 <== NOT EXECUTED
2044674: 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 )
2044678: 02 80 00 18 be 20446d8 <fat_get_fat_cluster+0xec> <== NOT EXECUTED
204467c: a2 0c 40 14 and %l1, %l4, %l1 <== NOT EXECUTED
2044680: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED
2044684: 02 80 00 35 be 2044758 <fat_get_fat_cluster+0x16c> <== NOT EXECUTED
2044688: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
204468c: 02 80 00 20 be 204470c <fat_get_fat_cluster+0x120> <== NOT EXECUTED
2044690: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
*ret_val = *((uint32_t *)(block0->buffer + ofs));
*ret_val = CF_LE_L(*ret_val);
break;
default:
rtems_set_errno_and_return_minus_one(EIO);
2044694: 40 00 11 6c call 2048c44 <__errno> <== NOT EXECUTED
2044698: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
204469c: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
20446a0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
break;
}
return RC_OK;
}
20446a4: 81 c7 e0 08 ret <== NOT EXECUTED
20446a8: 81 e8 00 00 restore <== 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) +
20446ac: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 <== NOT EXECUTED
20446b0: a3 36 60 01 srl %i1, 1, %l1 <== NOT EXECUTED
20446b4: a2 04 40 19 add %l1, %i1, %l1 <== NOT EXECUTED
20446b8: a7 34 40 13 srl %l1, %l3, %l3 <== NOT EXECUTED
20446bc: 10 bf ff e1 b 2044640 <fat_get_fat_cluster+0x54> <== NOT EXECUTED
20446c0: a6 04 c0 01 add %l3, %g1, %l3 <== NOT EXECUTED
20446c4: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 <== NOT EXECUTED
20446c8: a3 2e 60 02 sll %i1, 2, %l1 <== NOT EXECUTED
20446cc: a7 34 40 13 srl %l1, %l3, %l3 <== NOT EXECUTED
20446d0: 10 bf ff dc b 2044640 <fat_get_fat_cluster+0x54> <== NOT EXECUTED
20446d4: a6 04 c0 01 add %l3, %g1, %l3 <== NOT EXECUTED
else
*ret_val = (*ret_val) & FAT_FAT12_MASK;
break;
case FAT_FAT16:
*ret_val = *((uint16_t *)(block0->buffer + ofs));
20446d8: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
*ret_val = CF_LE_W(*ret_val);
20446dc: 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));
20446e0: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
*ret_val = CF_LE_W(*ret_val);
20446e4: 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));
20446e8: c2 10 40 11 lduh [ %g1 + %l1 ], %g1 <== NOT EXECUTED
*ret_val = CF_LE_W(*ret_val);
20446ec: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
20446f0: 85 30 60 18 srl %g1, 0x18, %g2 <== NOT EXECUTED
20446f4: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED
20446f8: 82 08 40 03 and %g1, %g3, %g1 <== NOT EXECUTED
20446fc: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2044700: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
break;
2044704: 81 c7 e0 08 ret <== NOT EXECUTED
2044708: 91 e8 20 00 restore %g0, 0, %o0 <== 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) )
204470c: 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)));
2044710: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 <== NOT EXECUTED
if ( ofs == (fs_info->vol.bps - 1) )
2044714: 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)));
2044718: c2 08 80 11 ldub [ %g2 + %l1 ], %g1 <== NOT EXECUTED
if ( ofs == (fs_info->vol.bps - 1) )
204471c: 80 a0 c0 11 cmp %g3, %l1 <== NOT EXECUTED
2044720: 02 80 00 28 be 20447c0 <fat_get_fat_cluster+0x1d4> <== NOT EXECUTED
2044724: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
*ret_val |= (*((uint8_t *)(block0->buffer)))<<8;
}
else
{
*ret_val |= (*((uint8_t *)(block0->buffer + ofs + 1)))<<8;
2044728: a2 00 80 11 add %g2, %l1, %l1 <== NOT EXECUTED
204472c: c4 0c 60 01 ldub [ %l1 + 1 ], %g2 <== NOT EXECUTED
2044730: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2044734: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
2044738: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
}
if ( FAT_CLUSTER_IS_ODD(cln) )
204473c: 80 8e 60 01 btst 1, %i1 <== NOT EXECUTED
2044740: 22 80 00 17 be,a 204479c <fat_get_fat_cluster+0x1b0> <== NOT EXECUTED
2044744: 82 08 6f ff and %g1, 0xfff, %g1 <== NOT EXECUTED
*ret_val = (*ret_val) >> FAT12_SHIFT;
2044748: 83 30 60 04 srl %g1, 4, %g1 <== NOT EXECUTED
204474c: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
2044750: 81 c7 e0 08 ret <== NOT EXECUTED
2044754: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
*ret_val = *((uint16_t *)(block0->buffer + ofs));
*ret_val = CF_LE_W(*ret_val);
break;
case FAT_FAT32:
*ret_val = *((uint32_t *)(block0->buffer + ofs));
2044758: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
204475c: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
2044760: c2 00 40 11 ld [ %g1 + %l1 ], %g1 <== NOT EXECUTED
*ret_val = CF_LE_L(*ret_val);
2044764: 85 30 60 10 srl %g1, 0x10, %g2 <== NOT EXECUTED
2044768: 89 28 60 18 sll %g1, 0x18, %g4 <== NOT EXECUTED
204476c: 87 30 60 18 srl %g1, 0x18, %g3 <== NOT EXECUTED
2044770: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
2044774: 86 11 00 03 or %g4, %g3, %g3 <== NOT EXECUTED
2044778: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
204477c: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED
2044780: 82 08 60 ff and %g1, 0xff, %g1 <== NOT EXECUTED
2044784: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
2044788: 82 10 c0 01 or %g3, %g1, %g1 <== NOT EXECUTED
204478c: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2044790: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
break;
2044794: 81 c7 e0 08 ret <== NOT EXECUTED
2044798: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
}
if ( FAT_CLUSTER_IS_ODD(cln) )
*ret_val = (*ret_val) >> FAT12_SHIFT;
else
*ret_val = (*ret_val) & FAT_FAT12_MASK;
204479c: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
20447a0: 81 c7 e0 08 ret <== NOT EXECUTED
20447a4: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
uint32_t sec = 0;
uint32_t ofs = 0;
/* sanity check */
if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )
rtems_set_errno_and_return_minus_one(EIO);
20447a8: 40 00 11 27 call 2048c44 <__errno> <== NOT EXECUTED
20447ac: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20447b0: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
20447b4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20447b8: 81 c7 e0 08 ret <== NOT EXECUTED
20447bc: 81 e8 00 00 restore <== NOT EXECUTED
* align problems for some architectures
*/
*ret_val = (*((uint8_t *)(block0->buffer + ofs)));
if ( ofs == (fs_info->vol.bps - 1) )
{
rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
20447c0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20447c4: 92 04 e0 01 add %l3, 1, %o1 <== NOT EXECUTED
20447c8: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
20447cc: 7f ff 92 d3 call 2029318 <fat_buf_access> <== NOT EXECUTED
20447d0: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
&block0);
if (rc != RC_OK)
20447d4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20447d8: 12 bf ff b3 bne 20446a4 <fat_get_fat_cluster+0xb8> <== NOT EXECUTED
20447dc: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED
return rc;
*ret_val |= (*((uint8_t *)(block0->buffer)))<<8;
20447e0: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
20447e4: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
20447e8: c4 08 80 00 ldub [ %g2 ], %g2 <== NOT EXECUTED
20447ec: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
20447f0: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
20447f4: 10 bf ff d2 b 204473c <fat_get_fat_cluster+0x150> <== NOT EXECUTED
20447f8: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
02029084 <fat_get_unique_ino>:
* 0 means FAILED !!!
*
*/
uint32_t
fat_get_unique_ino(rtems_filesystem_mount_table_entry_t *mt_entry)
{
2029084: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
register fat_fs_info_t *fs_info = mt_entry->fs_info;
2029088: 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))
202908c: 23 03 ff ff sethi %hi(0xffffc00), %l1 <== NOT EXECUTED
2029090: da 04 20 78 ld [ %l0 + 0x78 ], %o5 <== NOT EXECUTED
2029094: a2 14 63 ff or %l1, 0x3ff, %l1 <== NOT EXECUTED
uint32_t j = 0;
bool resrc_unsuff = false;
while (!resrc_unsuff)
{
for (j = 0; j < fs_info->uino_pool_size; j++)
2029098: 80 a3 60 00 cmp %o5, 0 <== NOT EXECUTED
202909c: 02 80 00 20 be 202911c <fat_get_unique_ino+0x98> <== NOT EXECUTED
20290a0: 92 10 00 0d mov %o5, %o1 <== NOT EXECUTED
{
if (!FAT_UNIQ_INO_IS_BUSY(fs_info->index, fs_info->uino))
20290a4: c6 04 20 70 ld [ %l0 + 0x70 ], %g3 <== NOT EXECUTED
20290a8: c2 04 20 74 ld [ %l0 + 0x74 ], %g1 <== NOT EXECUTED
20290ac: 85 30 60 03 srl %g1, 3, %g2 <== NOT EXECUTED
20290b0: c8 48 c0 02 ldsb [ %g3 + %g2 ], %g4 <== NOT EXECUTED
20290b4: 98 08 60 07 and %g1, 7, %o4 <== NOT EXECUTED
20290b8: 96 00 c0 02 add %g3, %g2, %o3 <== NOT EXECUTED
20290bc: 89 39 00 0c sra %g4, %o4, %g4 <== NOT EXECUTED
20290c0: 80 89 20 01 btst 1, %g4 <== NOT EXECUTED
20290c4: 02 80 00 1e be 202913c <fat_get_unique_ino+0xb8> <== NOT EXECUTED
20290c8: c4 08 c0 02 ldub [ %g3 + %g2 ], %g2 <== NOT EXECUTED
{
FAT_SET_UNIQ_INO_BUSY(fs_info->index, fs_info->uino);
return (fs_info->uino_base + fs_info->index);
20290cc: 10 80 00 0a b 20290f4 <fat_get_unique_ino+0x70> <== NOT EXECUTED
20290d0: 88 10 20 00 clr %g4 <== 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))
20290d4: 85 30 60 03 srl %g1, 3, %g2 <== NOT EXECUTED
20290d8: d6 48 c0 02 ldsb [ %g3 + %g2 ], %o3 <== NOT EXECUTED
20290dc: 98 08 60 07 and %g1, 7, %o4 <== NOT EXECUTED
20290e0: 97 3a c0 0c sra %o3, %o4, %o3 <== NOT EXECUTED
20290e4: 80 8a e0 01 btst 1, %o3 <== NOT EXECUTED
20290e8: 96 00 c0 02 add %g3, %g2, %o3 <== NOT EXECUTED
20290ec: 02 80 00 14 be 202913c <fat_get_unique_ino+0xb8> <== NOT EXECUTED
20290f0: c4 08 c0 02 ldub [ %g3 + %g2 ], %g2 <== NOT EXECUTED
{
FAT_SET_UNIQ_INO_BUSY(fs_info->index, fs_info->uino);
return (fs_info->uino_base + fs_info->index);
}
fs_info->index++;
20290f4: 82 00 60 01 inc %g1 <== NOT EXECUTED
if (fs_info->index >= fs_info->uino_pool_size)
20290f8: 80 a3 40 01 cmp %o5, %g1 <== NOT EXECUTED
20290fc: 18 80 00 03 bgu 2029108 <fat_get_unique_ino+0x84> <== NOT EXECUTED
2029100: c2 24 20 74 st %g1, [ %l0 + 0x74 ] <== NOT EXECUTED
fs_info->index = 0;
2029104: 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++)
2029108: 88 01 20 01 inc %g4 <== NOT EXECUTED
202910c: 80 a1 00 0d cmp %g4, %o5 <== NOT EXECUTED
2029110: 2a bf ff f1 bcs,a 20290d4 <fat_get_unique_ino+0x50> <== NOT EXECUTED
2029114: c2 04 20 74 ld [ %l0 + 0x74 ], %g1 <== NOT EXECUTED
2029118: 92 10 00 0d mov %o5, %o1 <== 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))
202911c: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
2029120: 93 2a 60 01 sll %o1, 1, %o1 <== NOT EXECUTED
2029124: 82 24 40 01 sub %l1, %g1, %g1 <== NOT EXECUTED
2029128: 80 a2 40 01 cmp %o1, %g1 <== NOT EXECUTED
202912c: 2a 80 00 0c bcs,a 202915c <fat_get_unique_ino+0xd8> <== NOT EXECUTED
2029130: d0 04 20 70 ld [ %l0 + 0x70 ], %o0 <== NOT EXECUTED
}
else
resrc_unsuff = true;
}
return 0;
}
2029134: 81 c7 e0 08 ret <== NOT EXECUTED
2029138: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
{
for (j = 0; j < fs_info->uino_pool_size; j++)
{
if (!FAT_UNIQ_INO_IS_BUSY(fs_info->index, fs_info->uino))
{
FAT_SET_UNIQ_INO_BUSY(fs_info->index, fs_info->uino);
202913c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2029140: 99 28 40 0c sll %g1, %o4, %o4 <== NOT EXECUTED
2029144: 84 13 00 02 or %o4, %g2, %g2 <== NOT EXECUTED
2029148: c4 2a c0 00 stb %g2, [ %o3 ] <== NOT EXECUTED
return (fs_info->uino_base + fs_info->index);
202914c: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
2029150: f0 04 20 74 ld [ %l0 + 0x74 ], %i0 <== NOT EXECUTED
2029154: 81 c7 e0 08 ret <== NOT EXECUTED
2029158: 91 ee 00 01 restore %i0, %g1, %o0 <== NOT EXECUTED
}
if ((fs_info->uino_pool_size << 1) < (0x0FFFFFFF - fs_info->uino_base))
{
fs_info->uino_pool_size <<= 1;
fs_info->uino = realloc(fs_info->uino, fs_info->uino_pool_size);
202915c: 7f ff 83 9f call 2009fd8 <realloc> <== NOT EXECUTED
2029160: d2 24 20 78 st %o1, [ %l0 + 0x78 ] <== NOT EXECUTED
if (fs_info->uino != NULL)
2029164: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029168: 02 bf ff f3 be 2029134 <fat_get_unique_ino+0xb0> <== NOT EXECUTED
202916c: d0 24 20 70 st %o0, [ %l0 + 0x70 ] <== NOT EXECUTED
fs_info->index = fs_info->uino_pool_size;
2029170: da 04 20 78 ld [ %l0 + 0x78 ], %o5 <== NOT EXECUTED
2029174: 10 bf ff c9 b 2029098 <fat_get_unique_ino+0x14> <== NOT EXECUTED
2029178: da 24 20 74 st %o5, [ %l0 + 0x74 ] <== NOT EXECUTED
02029844 <fat_init_clusters_chain>:
int
fat_init_clusters_chain(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t start_cln
)
{
2029844: 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;
2029848: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
uint32_t cur_cln = start_cln;
202984c: f2 27 bf fc st %i1, [ %fp + -4 ] <== NOT EXECUTED
char *buf;
buf = calloc(fs_info->vol.bpc, sizeof(char));
2029850: d0 14 20 06 lduh [ %l0 + 6 ], %o0 <== NOT EXECUTED
2029854: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2029858: 7f ff 7a 7f call 2008254 <calloc> <== NOT EXECUTED
202985c: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
if ( buf == NULL )
2029860: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2029864: 02 80 00 22 be 20298ec <fat_init_clusters_chain+0xa8> <== NOT EXECUTED
2029868: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
202986c: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
2029870: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED
2029874: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
2029878: 84 0a 40 02 and %o1, %g2, %g2 <== NOT EXECUTED
202987c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2029880: 1a 80 00 11 bcc 20298c4 <fat_init_clusters_chain+0x80> <== NOT EXECUTED
2029884: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
{
ret = fat_cluster_write(mt_entry, cur_cln, buf);
2029888: 7f ff ff d3 call 20297d4 <fat_cluster_write> <== NOT EXECUTED
202988c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
{
free(buf);
return -1;
}
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
2029890: 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 )
2029894: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED
2029898: 02 80 00 10 be 20298d8 <fat_init_clusters_chain+0x94> <== NOT EXECUTED
202989c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
{
free(buf);
return -1;
}
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
20298a0: 40 00 6b 53 call 20445ec <fat_get_fat_cluster> <== NOT EXECUTED
20298a4: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
if ( rc != RC_OK )
20298a8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20298ac: 02 bf ff f1 be 2029870 <fat_init_clusters_chain+0x2c> <== NOT EXECUTED
20298b0: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
{
free(buf);
20298b4: 7f ff 7c 0a call 20088dc <free> <== NOT EXECUTED
20298b8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
return rc;
20298bc: 81 c7 e0 08 ret <== NOT EXECUTED
20298c0: 81 e8 00 00 restore <== NOT EXECUTED
}
}
free(buf);
20298c4: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
20298c8: 7f ff 7c 05 call 20088dc <free> <== NOT EXECUTED
20298cc: b0 10 20 00 clr %i0 <== NOT EXECUTED
return rc;
}
20298d0: 81 c7 e0 08 ret <== NOT EXECUTED
20298d4: 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);
if ( ret == -1 )
{
free(buf);
20298d8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
20298dc: 7f ff 7c 00 call 20088dc <free> <== NOT EXECUTED
20298e0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return -1;
20298e4: 81 c7 e0 08 ret <== NOT EXECUTED
20298e8: 81 e8 00 00 restore <== NOT EXECUTED
uint32_t cur_cln = start_cln;
char *buf;
buf = calloc(fs_info->vol.bpc, sizeof(char));
if ( buf == NULL )
rtems_set_errno_and_return_minus_one( EIO );
20298ec: 40 00 7c d6 call 2048c44 <__errno> <== NOT EXECUTED
20298f0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20298f4: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
20298f8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20298fc: 81 c7 e0 08 ret <== NOT EXECUTED
2029900: 81 e8 00 00 restore <== NOT EXECUTED
0202998c <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)
{
202998c: 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);
2029990: 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;
2029994: 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)
{
2029998: 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;
202999c: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
rc = stat(mt_entry->dev, &stat_buf);
20299a0: 7f ff 82 80 call 200a3a0 <stat> <== NOT EXECUTED
20299a4: 92 07 bf a8 add %fp, -88, %o1 <== NOT EXECUTED
if (rc == -1)
20299a8: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED
20299ac: 02 80 00 ed be 2029d60 <fat_init_volume_info+0x3d4> <== NOT EXECUTED
20299b0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
return rc;
/* Must be a block device. */
if (!S_ISBLK(stat_buf.st_mode))
20299b4: c4 07 bf b4 ld [ %fp + -76 ], %g2 <== NOT EXECUTED
20299b8: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
20299bc: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED
20299c0: 03 00 00 18 sethi %hi(0x6000), %g1 <== NOT EXECUTED
20299c4: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
20299c8: 12 80 01 7d bne 2029fbc <fat_init_volume_info+0x630> <== NOT EXECUTED
20299cc: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOTTY);
/* check that device is registred as block device and lock it */
vol->dd = rtems_disk_obtain(stat_buf.st_rdev);
20299d0: 7f ff 76 b0 call 2007490 <rtems_disk_obtain> <== NOT EXECUTED
20299d4: d0 1f bf c0 ldd [ %fp + -64 ], %o0 <== NOT EXECUTED
if (vol->dd == NULL)
20299d8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20299dc: 02 80 01 aa be 202a084 <fat_init_volume_info+0x6f8> <== NOT EXECUTED
20299e0: d0 24 20 60 st %o0, [ %l0 + 0x60 ] <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
vol->dev = stat_buf.st_rdev;
20299e4: 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);
20299e8: 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;
20299ec: 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);
20299f0: 7f ff 71 b6 call 20060c8 <rtems_bdbuf_read> <== NOT EXECUTED
20299f4: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
20299f8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20299fc: 12 80 01 8e bne 202a034 <fat_init_volume_info+0x6a8> <== NOT EXECUTED
2029a00: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
{
rtems_disk_release(vol->dd);
rtems_set_errno_and_return_minus_one( EIO);
}
memcpy( boot_rec, block->buffer, FAT_MAX_BPB_SIZE);
2029a04: 94 10 20 5a mov 0x5a, %o2 <== NOT EXECUTED
2029a08: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
2029a0c: 40 00 89 da call 204c174 <memcpy> <== NOT EXECUTED
2029a10: 90 07 bf 48 add %fp, -184, %o0 <== NOT EXECUTED
sc = rtems_bdbuf_release( block);
2029a14: 7f ff 6c d2 call 2004d5c <rtems_bdbuf_release> <== NOT EXECUTED
2029a18: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2029a1c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029a20: 12 80 01 85 bne 202a034 <fat_init_volume_info+0x6a8> <== NOT EXECUTED
2029a24: c4 0f bf 53 ldub [ %fp + -173 ], %g2 <== NOT EXECUTED
rtems_disk_release(vol->dd);
rtems_set_errno_and_return_minus_one( EIO );
}
/* Evaluate boot record */
vol->bps = FAT_GET_BR_BYTES_PER_SECTOR(boot_rec);
2029a28: c2 0f bf 54 ldub [ %fp + -172 ], %g1 <== NOT EXECUTED
2029a2c: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2029a30: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2029a34: c2 34 00 00 sth %g1, [ %l0 ] <== NOT EXECUTED
if ( (vol->bps != 512) &&
2029a38: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
2029a3c: 85 30 60 10 srl %g1, 0x10, %g2 <== NOT EXECUTED
2029a40: 80 a0 a4 00 cmp %g2, 0x400 <== NOT EXECUTED
2029a44: 12 80 00 c9 bne 2029d68 <fat_init_volume_info+0x3dc> <== NOT EXECUTED
2029a48: 80 a0 a2 00 cmp %g2, 0x200 <== 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;
2029a4c: 83 30 60 19 srl %g1, 0x19, %g1 <== NOT EXECUTED
2029a50: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
2029a54: 12 80 00 09 bne 2029a78 <fat_init_volume_info+0xec> <== NOT EXECUTED
2029a58: c0 2c 20 03 clrb [ %l0 + 3 ] <== NOT EXECUTED
2029a5c: c4 0c 20 03 ldub [ %l0 + 3 ], %g2 <== NOT EXECUTED
i >>= 1, vol->sec_mul++);
2029a60: 83 38 60 01 sra %g1, 1, %g1 <== NOT EXECUTED
2029a64: 86 00 a0 01 add %g2, 1, %g3 <== 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;
2029a68: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
2029a6c: 02 bf ff fd be 2029a60 <fat_init_volume_info+0xd4> <== NOT EXECUTED
2029a70: 84 10 00 03 mov %g3, %g2 <== NOT EXECUTED
2029a74: c6 2c 20 03 stb %g3, [ %l0 + 3 ] <== NOT EXECUTED
i >>= 1, vol->sec_mul++);
for (vol->sec_log2 = 0, i = vol->bps; (i & 1) == 0;
2029a78: c4 14 00 00 lduh [ %l0 ], %g2 <== NOT EXECUTED
2029a7c: c0 2c 20 02 clrb [ %l0 + 2 ] <== NOT EXECUTED
2029a80: 80 88 a0 01 btst 1, %g2 <== NOT EXECUTED
2029a84: 12 80 00 0a bne 2029aac <fat_init_volume_info+0x120> <== NOT EXECUTED
2029a88: 82 10 00 02 mov %g2, %g1 <== NOT EXECUTED
2029a8c: 10 80 00 03 b 2029a98 <fat_init_volume_info+0x10c> <== NOT EXECUTED
2029a90: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED
2029a94: 86 10 00 04 mov %g4, %g3 <== NOT EXECUTED
i >>= 1, vol->sec_log2++);
2029a98: 85 38 a0 01 sra %g2, 1, %g2 <== 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;
2029a9c: 80 88 a0 01 btst 1, %g2 <== NOT EXECUTED
2029aa0: 02 bf ff fd be 2029a94 <fat_init_volume_info+0x108> <== NOT EXECUTED
2029aa4: 88 00 e0 01 add %g3, 1, %g4 <== NOT EXECUTED
2029aa8: c6 2c 20 02 stb %g3, [ %l0 + 2 ] <== NOT EXECUTED
if ( (ret1 < 0) || (ret2 < 0) )
return -1;
return RC_OK;
}
2029aac: 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);
2029ab0: 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)
2029ab4: 84 88 a0 ff andcc %g2, 0xff, %g2 <== NOT EXECUTED
2029ab8: 02 80 01 47 be 2029fd4 <fat_init_volume_info+0x648> <== NOT EXECUTED
2029abc: 80 88 a0 01 btst 1, %g2 <== 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;
2029ac0: c0 2c 20 05 clrb [ %l0 + 5 ] <== NOT EXECUTED
2029ac4: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED
2029ac8: 02 80 00 05 be 2029adc <fat_init_volume_info+0x150> <== NOT EXECUTED
2029acc: 88 10 20 00 clr %g4 <== 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)
2029ad0: 10 80 00 0a b 2029af8 <fat_init_volume_info+0x16c> <== NOT EXECUTED
2029ad4: 85 28 60 10 sll %g1, 0x10, %g2 <== 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;
2029ad8: 86 10 00 04 mov %g4, %g3 <== NOT EXECUTED
i >>= 1, vol->spc_log2++);
2029adc: 85 38 a0 01 sra %g2, 1, %g2 <== 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;
2029ae0: 80 88 a0 01 btst 1, %g2 <== NOT EXECUTED
2029ae4: 02 bf ff fd be 2029ad8 <fat_init_volume_info+0x14c> <== NOT EXECUTED
2029ae8: 88 00 e0 01 add %g3, 1, %g4 <== NOT EXECUTED
2029aec: c6 2c 20 05 stb %g3, [ %l0 + 5 ] <== NOT EXECUTED
2029af0: 88 08 e0 ff and %g3, 0xff, %g4 <== 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)
2029af4: 85 28 60 10 sll %g1, 0x10, %g2 <== NOT EXECUTED
2029af8: 85 30 a0 10 srl %g2, 0x10, %g2 <== NOT EXECUTED
2029afc: 85 28 80 04 sll %g2, %g4, %g2 <== NOT EXECUTED
2029b00: c4 34 20 06 sth %g2, [ %l0 + 6 ] <== NOT EXECUTED
2029b04: 07 00 00 20 sethi %hi(0x8000), %g3 <== NOT EXECUTED
2029b08: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
2029b0c: 85 30 a0 10 srl %g2, 0x10, %g2 <== NOT EXECUTED
2029b10: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED
2029b14: 18 80 01 30 bgu 2029fd4 <fat_init_volume_info+0x648> <== NOT EXECUTED
2029b18: 80 88 a0 01 btst 1, %g2 <== 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;
2029b1c: 12 80 00 0a bne 2029b44 <fat_init_volume_info+0x1b8> <== NOT EXECUTED
2029b20: c0 2c 20 08 clrb [ %l0 + 8 ] <== NOT EXECUTED
2029b24: 10 80 00 03 b 2029b30 <fat_init_volume_info+0x1a4> <== NOT EXECUTED
2029b28: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED
2029b2c: 86 10 00 04 mov %g4, %g3 <== NOT EXECUTED
i >>= 1, vol->bpc_log2++);
2029b30: 85 38 a0 01 sra %g2, 1, %g2 <== 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;
2029b34: 80 88 a0 01 btst 1, %g2 <== NOT EXECUTED
2029b38: 02 bf ff fd be 2029b2c <fat_init_volume_info+0x1a0> <== NOT EXECUTED
2029b3c: 88 00 e0 01 add %g3, 1, %g4 <== NOT EXECUTED
2029b40: c6 2c 20 08 stb %g3, [ %l0 + 8 ] <== NOT EXECUTED
if ( (ret1 < 0) || (ret2 < 0) )
return -1;
return RC_OK;
}
2029b44: e6 0f bf 58 ldub [ %fp + -168 ], %l3 <== 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)) /
2029b48: 83 28 60 10 sll %g1, 0x10, %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);
2029b4c: e6 2c 20 09 stb %l3, [ %l0 + 9 ] <== NOT EXECUTED
vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec);
2029b50: c4 0f bf 56 ldub [ %fp + -170 ], %g2 <== NOT EXECUTED
2029b54: e4 0f bf 57 ldub [ %fp + -169 ], %l2 <== 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)) /
2029b58: 83 30 60 10 srl %g1, 0x10, %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);
vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec);
2029b5c: a5 2c a0 08 sll %l2, 8, %l2 <== NOT EXECUTED
2029b60: a4 14 80 02 or %l2, %g2, %l2 <== NOT EXECUTED
2029b64: e4 34 20 14 sth %l2, [ %l0 + 0x14 ] <== NOT EXECUTED
vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec);
2029b68: c6 0f bf 59 ldub [ %fp + -167 ], %g3 <== NOT EXECUTED
2029b6c: 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)) /
2029b70: 92 10 00 01 mov %g1, %o1 <== 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);
2029b74: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2029b78: 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)) /
2029b7c: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
2029b80: 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);
2029b84: 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)) /
2029b88: 85 30 e0 0b srl %g3, 0xb, %g2 <== NOT EXECUTED
2029b8c: 40 00 dd 5d call 2061100 <.div> <== NOT EXECUTED
2029b90: 90 00 40 02 add %g1, %g2, %o0 <== NOT EXECUTED
vol->bps;
vol->rdir_size = vol->rdir_secs << vol->sec_log2;
2029b94: c4 0c 20 02 ldub [ %l0 + 2 ], %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)) /
2029b98: d0 24 20 24 st %o0, [ %l0 + 0x24 ] <== NOT EXECUTED
vol->bps;
vol->rdir_size = vol->rdir_secs << vol->sec_log2;
2029b9c: 85 2a 00 02 sll %o0, %g2, %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)) /
2029ba0: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED
vol->bps;
vol->rdir_size = vol->rdir_secs << vol->sec_log2;
2029ba4: c4 24 20 28 st %g2, [ %l0 + 0x28 ] <== NOT EXECUTED
if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0)
2029ba8: d0 0f bf 5f ldub [ %fp + -161 ], %o0 <== NOT EXECUTED
2029bac: c4 0f bf 5e ldub [ %fp + -162 ], %g2 <== NOT EXECUTED
2029bb0: 91 2a 20 08 sll %o0, 8, %o0 <== NOT EXECUTED
2029bb4: 90 12 00 02 or %o0, %g2, %o0 <== NOT EXECUTED
2029bb8: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
2029bbc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029bc0: 22 80 00 ec be,a 2029f70 <fat_init_volume_info+0x5e4> <== NOT EXECUTED
2029bc4: d0 0f bf 6d ldub [ %fp + -147 ], %o0 <== NOT EXECUTED
vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT(boot_rec);
2029bc8: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED
2029bcc: d0 24 20 18 st %o0, [ %l0 + 0x18 ] <== NOT EXECUTED
else
vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT32(boot_rec);
vol->data_fsec = vol->fat_loc + vol->fats * vol->fat_length +
2029bd0: 92 0c e0 ff and %l3, 0xff, %o1 <== NOT EXECUTED
2029bd4: a5 2c a0 10 sll %l2, 0x10, %l2 <== NOT EXECUTED
2029bd8: a5 34 a0 10 srl %l2, 0x10, %l2 <== NOT EXECUTED
2029bdc: 7f ff 63 ec call 2002b8c <.umul> <== NOT EXECUTED
2029be0: a4 00 40 12 add %g1, %l2, %l2 <== NOT EXECUTED
vol->rdir_secs;
/* for FAT12/16 root dir starts at(sector) */
vol->rdir_loc = vol->fat_loc + vol->fats * vol->fat_length;
2029be4: d2 04 20 18 ld [ %l0 + 0x18 ], %o1 <== 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 +
2029be8: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED
vol->rdir_secs;
/* for FAT12/16 root dir starts at(sector) */
vol->rdir_loc = vol->fat_loc + vol->fats * vol->fat_length;
2029bec: d0 0c 20 09 ldub [ %l0 + 9 ], %o0 <== NOT EXECUTED
2029bf0: 7f ff 63 e7 call 2002b8c <.umul> <== NOT EXECUTED
2029bf4: e4 24 20 30 st %l2, [ %l0 + 0x30 ] <== NOT EXECUTED
2029bf8: c2 14 20 14 lduh [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
2029bfc: 82 02 00 01 add %o0, %g1, %g1 <== NOT EXECUTED
2029c00: c2 24 20 1c st %g1, [ %l0 + 0x1c ] <== NOT EXECUTED
if ( (FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec)) != 0)
2029c04: d0 0f bf 5c ldub [ %fp + -164 ], %o0 <== NOT EXECUTED
2029c08: c2 0f bf 5b ldub [ %fp + -165 ], %g1 <== NOT EXECUTED
2029c0c: 91 2a 20 08 sll %o0, 8, %o0 <== NOT EXECUTED
2029c10: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
2029c14: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
2029c18: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029c1c: 22 80 00 ca be,a 2029f44 <fat_init_volume_info+0x5b8> <== NOT EXECUTED
2029c20: d0 0f bf 69 ldub [ %fp + -151 ], %o0 <== NOT EXECUTED
vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec);
2029c24: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED
2029c28: d0 24 20 2c st %o0, [ %l0 + 0x2c ] <== NOT EXECUTED
else
vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM32(boot_rec);
data_secs = vol->tot_secs - vol->data_fsec;
vol->data_cls = data_secs / vol->spc;
2029c2c: d2 0c 20 04 ldub [ %l0 + 4 ], %o1 <== NOT EXECUTED
2029c30: 40 00 dd 32 call 20610f8 <.udiv> <== NOT EXECUTED
2029c34: 90 22 00 12 sub %o0, %l2, %o0 <== NOT EXECUTED
/* determine FAT type at least */
if ( vol->data_cls < FAT_FAT12_MAX_CLN)
2029c38: 80 a2 2f f4 cmp %o0, 0xff4 <== NOT EXECUTED
2029c3c: 18 80 00 56 bgu 2029d94 <fat_init_volume_info+0x408> <== NOT EXECUTED
2029c40: d0 24 20 34 st %o0, [ %l0 + 0x34 ] <== NOT EXECUTED
{
vol->type = FAT_FAT12;
2029c44: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2029c48: c2 2c 20 0a stb %g1, [ %l0 + 0xa ] <== NOT EXECUTED
vol->mask = FAT_FAT12_MASK;
2029c4c: 82 10 2f ff mov 0xfff, %g1 <== NOT EXECUTED
2029c50: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED
vol->eoc_val = FAT_FAT12_EOC;
2029c54: 82 10 2f f8 mov 0xff8, %g1 <== NOT EXECUTED
2029c58: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED
else
{
vol->rdir_cl = 0;
vol->mirror = 0;
vol->afat = 0;
vol->free_cls = 0xFFFFFFFF;
2029c5c: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
}
}
}
else
{
vol->rdir_cl = 0;
2029c60: c0 24 20 38 clr [ %l0 + 0x38 ] <== NOT EXECUTED
vol->mirror = 0;
2029c64: c0 2c 20 48 clrb [ %l0 + 0x48 ] <== NOT EXECUTED
vol->afat = 0;
2029c68: c0 2c 20 50 clrb [ %l0 + 0x50 ] <== NOT EXECUTED
vol->free_cls = 0xFFFFFFFF;
vol->next_cl = 0xFFFFFFFF;
2029c6c: 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;
2029c70: 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);
2029c74: 7f ff fd 42 call 202917c <fat_buf_release> <== NOT EXECUTED
2029c78: 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;
2029c7c: d2 04 20 18 ld [ %l0 + 0x18 ], %o1 <== NOT EXECUTED
2029c80: 7f ff 63 c3 call 2002b8c <.umul> <== NOT EXECUTED
2029c84: d0 0c 20 50 ldub [ %l0 + 0x50 ], %o0 <== NOT EXECUTED
2029c88: 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));
2029c8c: 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;
2029c90: 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));
2029c94: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED
2029c98: 7f ff 79 6f call 2008254 <calloc> <== NOT EXECUTED
2029c9c: c2 24 20 4c st %g1, [ %l0 + 0x4c ] <== NOT EXECUTED
if ( fs_info->vhash == NULL )
2029ca0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029ca4: 02 80 01 1d be 202a118 <fat_init_volume_info+0x78c> <== NOT EXECUTED
2029ca8: 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);
2029cac: 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;
2029cb0: c0 22 20 04 clr [ %o0 + 4 ] <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
2029cb4: d0 22 20 08 st %o0, [ %o0 + 8 ] <== NOT EXECUTED
2029cb8: 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;
2029cbc: 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);
2029cc0: 82 02 20 04 add %o0, 4, %g1 <== NOT EXECUTED
2029cc4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2029cc8: 82 02 20 10 add %o0, 0x10, %g1 <== NOT EXECUTED
fs_info->rhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control));
2029ccc: 92 10 20 0c mov 0xc, %o1 <== NOT EXECUTED
2029cd0: c2 22 20 0c st %g1, [ %o0 + 0xc ] <== NOT EXECUTED
2029cd4: 7f ff 79 60 call 2008254 <calloc> <== NOT EXECUTED
2029cd8: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED
if ( fs_info->rhash == NULL )
2029cdc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029ce0: 02 80 01 03 be 202a0ec <fat_init_volume_info+0x760> <== NOT EXECUTED
2029ce4: d0 24 20 6c st %o0, [ %l0 + 0x6c ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
2029ce8: c0 22 20 04 clr [ %o0 + 4 ] <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
2029cec: 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);
2029cf0: 82 02 20 0c add %o0, 0xc, %g1 <== NOT EXECUTED
2029cf4: 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;
2029cf8: 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);
2029cfc: 82 02 20 04 add %o0, 4, %g1 <== NOT EXECUTED
2029d00: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2029d04: 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;
2029d08: c4 04 20 2c ld [ %l0 + 0x2c ], %g2 <== NOT EXECUTED
2029d0c: c2 22 20 0c st %g1, [ %o0 + 0xc ] <== NOT EXECUTED
2029d10: c2 0c 20 03 ldub [ %l0 + 3 ], %g1 <== NOT EXECUTED
fs_info->index = 0;
2029d14: 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;
2029d18: 83 28 80 01 sll %g2, %g1, %g1 <== NOT EXECUTED
2029d1c: 83 28 60 04 sll %g1, 4, %g1 <== NOT EXECUTED
2029d20: 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;
2029d24: 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));
2029d28: 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;
2029d2c: 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));
2029d30: 7f ff 79 49 call 2008254 <calloc> <== NOT EXECUTED
2029d34: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
if ( fs_info->uino == NULL )
2029d38: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029d3c: 02 80 00 d8 be 202a09c <fat_init_volume_info+0x710> <== NOT EXECUTED
2029d40: d0 24 20 70 st %o0, [ %l0 + 0x70 ] <== NOT EXECUTED
rtems_disk_release(vol->dd);
free(fs_info->vhash);
free(fs_info->rhash);
rtems_set_errno_and_return_minus_one( ENOMEM );
}
fs_info->sec_buf = (uint8_t *)calloc(vol->bps, sizeof(uint8_t));
2029d44: d0 14 00 00 lduh [ %l0 ], %o0 <== NOT EXECUTED
2029d48: 7f ff 79 43 call 2008254 <calloc> <== NOT EXECUTED
2029d4c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2029d50: d0 24 20 8c st %o0, [ %l0 + 0x8c ] <== NOT EXECUTED
if (fs_info->sec_buf == NULL)
2029d54: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029d58: 02 80 00 a8 be 2029ff8 <fat_init_volume_info+0x66c> <== NOT EXECUTED
2029d5c: b0 10 20 00 clr %i0 <== NOT EXECUTED
free(fs_info->uino);
rtems_set_errno_and_return_minus_one( ENOMEM );
}
return RC_OK;
}
2029d60: 81 c7 e0 08 ret <== NOT EXECUTED
2029d64: 81 e8 00 00 restore <== NOT EXECUTED
}
/* Evaluate boot record */
vol->bps = FAT_GET_BR_BYTES_PER_SECTOR(boot_rec);
if ( (vol->bps != 512) &&
2029d68: 22 bf ff 3a be,a 2029a50 <fat_init_volume_info+0xc4> <== NOT EXECUTED
2029d6c: 83 30 60 19 srl %g1, 0x19, %g1 <== NOT EXECUTED
2029d70: 80 a0 a8 00 cmp %g2, 0x800 <== NOT EXECUTED
2029d74: 02 80 00 05 be 2029d88 <fat_init_volume_info+0x3fc> <== NOT EXECUTED
2029d78: 07 00 00 04 sethi %hi(0x1000), %g3 <== NOT EXECUTED
2029d7c: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED
2029d80: 32 80 00 96 bne,a 2029fd8 <fat_init_volume_info+0x64c> <== NOT EXECUTED
2029d84: 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;
2029d88: c0 2c 20 03 clrb [ %l0 + 3 ] <== NOT EXECUTED
2029d8c: 10 bf ff 34 b 2029a5c <fat_init_volume_info+0xd0> <== NOT EXECUTED
2029d90: 83 30 60 19 srl %g1, 0x19, %g1 <== NOT EXECUTED
vol->mask = FAT_FAT12_MASK;
vol->eoc_val = FAT_FAT12_EOC;
}
else
{
if ( vol->data_cls < FAT_FAT16_MAX_CLN)
2029d94: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED
2029d98: 84 10 63 f4 or %g1, 0x3f4, %g2 ! fff4 <PROM_START+0xfff4> <== NOT EXECUTED
2029d9c: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED
2029da0: 08 80 00 7f bleu 2029f9c <fat_init_volume_info+0x610> <== NOT EXECUTED
2029da4: 84 10 63 f8 or %g1, 0x3f8, %g2 <== NOT EXECUTED
vol->eoc_val = FAT_FAT16_EOC;
}
else
{
vol->type = FAT_FAT32;
vol->mask = FAT_FAT32_MASK;
2029da8: 03 03 ff ff sethi %hi(0xffffc00), %g1 <== NOT EXECUTED
vol->eoc_val = FAT_FAT32_EOC;
2029dac: 84 10 63 f8 or %g1, 0x3f8, %g2 ! ffffff8 <RAM_END+0xdbffff8><== NOT EXECUTED
vol->eoc_val = FAT_FAT16_EOC;
}
else
{
vol->type = FAT_FAT32;
vol->mask = FAT_FAT32_MASK;
2029db0: 82 10 63 ff or %g1, 0x3ff, %g1 <== NOT EXECUTED
vol->eoc_val = FAT_FAT32_EOC;
2029db4: 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;
2029db8: 84 10 20 04 mov 4, %g2 <== NOT EXECUTED
vol->mask = FAT_FAT32_MASK;
2029dbc: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED
vol->mask = FAT_FAT16_MASK;
vol->eoc_val = FAT_FAT16_EOC;
}
else
{
vol->type = FAT_FAT32;
2029dc0: c4 2c 20 0a stb %g2, [ %l0 + 0xa ] <== NOT EXECUTED
}
}
if (vol->type == FAT_FAT32)
{
vol->rdir_cl = FAT_GET_BR_FAT32_ROOT_CLUSTER(boot_rec);
2029dc4: c8 0f bf 75 ldub [ %fp + -139 ], %g4 <== NOT EXECUTED
2029dc8: c4 0f bf 76 ldub [ %fp + -138 ], %g2 <== NOT EXECUTED
2029dcc: c6 0f bf 74 ldub [ %fp + -140 ], %g3 <== NOT EXECUTED
2029dd0: c2 0f bf 77 ldub [ %fp + -137 ], %g1 <== NOT EXECUTED
2029dd4: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2029dd8: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
2029ddc: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED
2029de0: 84 11 00 02 or %g4, %g2, %g2 <== NOT EXECUTED
2029de4: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
2029de8: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
2029dec: c2 24 20 38 st %g1, [ %l0 + 0x38 ] <== NOT EXECUTED
vol->mirror = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_MIRROR;
2029df0: c4 0f bf 71 ldub [ %fp + -143 ], %g2 <== NOT EXECUTED
2029df4: c2 0f bf 70 ldub [ %fp + -144 ], %g1 <== NOT EXECUTED
2029df8: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2029dfc: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
2029e00: 82 08 7f 80 and %g1, -128, %g1 <== NOT EXECUTED
if (vol->mirror)
2029e04: 80 88 60 80 btst 0x80, %g1 <== NOT EXECUTED
2029e08: 02 80 00 6b be 2029fb4 <fat_init_volume_info+0x628> <== NOT EXECUTED
2029e0c: 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;
2029e10: c2 0f bf 70 ldub [ %fp + -144 ], %g1 <== NOT EXECUTED
2029e14: 82 08 60 0f and %g1, 0xf, %g1 <== NOT EXECUTED
2029e18: c2 2c 20 50 stb %g1, [ %l0 + 0x50 ] <== NOT EXECUTED
else
vol->afat = 0;
vol->info_sec = FAT_GET_BR_FAT32_FS_INFO_SECTOR(boot_rec);
2029e1c: c2 0f bf 79 ldub [ %fp + -135 ], %g1 <== NOT EXECUTED
2029e20: c4 0f bf 78 ldub [ %fp + -136 ], %g2 <== NOT EXECUTED
2029e24: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2029e28: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2029e2c: c2 34 20 3c sth %g1, [ %l0 + 0x3c ] <== NOT EXECUTED
if( vol->info_sec == 0 )
2029e30: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
2029e34: 93 30 60 10 srl %g1, 0x10, %o1 <== NOT EXECUTED
2029e38: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
2029e3c: 02 80 00 66 be 2029fd4 <fat_init_volume_info+0x648> <== NOT EXECUTED
2029e40: a4 07 bf f0 add %fp, -16, %l2 <== NOT EXECUTED
rtems_disk_release(vol->dd);
rtems_set_errno_and_return_minus_one( EINVAL );
}
else
{
ret = _fat_block_read(mt_entry, vol->info_sec , 0,
2029e44: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2029e48: 94 10 20 00 clr %o2 <== NOT EXECUTED
2029e4c: 96 10 20 04 mov 4, %o3 <== NOT EXECUTED
2029e50: 7f ff fe ad call 2029904 <_fat_block_read> <== NOT EXECUTED
2029e54: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED
FAT_FSI_LEADSIG_SIZE, fs_info_sector);
if ( ret < 0 )
2029e58: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029e5c: 06 80 00 b8 bl 202a13c <fat_init_volume_info+0x7b0> <== NOT EXECUTED
2029e60: c2 0f bf f3 ldub [ %fp + -13 ], %g1 <== NOT EXECUTED
{
rtems_disk_release(vol->dd);
return -1;
}
if (FAT_GET_FSINFO_LEAD_SIGNATURE(fs_info_sector) !=
2029e64: c8 0f bf f1 ldub [ %fp + -15 ], %g4 <== NOT EXECUTED
2029e68: c4 0f bf f2 ldub [ %fp + -14 ], %g2 <== NOT EXECUTED
2029e6c: c6 0f bf f0 ldub [ %fp + -16 ], %g3 <== NOT EXECUTED
2029e70: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED
2029e74: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2029e78: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
2029e7c: 84 11 00 02 or %g4, %g2, %g2 <== NOT EXECUTED
2029e80: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
2029e84: 84 10 80 01 or %g2, %g1, %g2 <== NOT EXECUTED
2029e88: 03 10 58 54 sethi %hi(0x41615000), %g1 <== NOT EXECUTED
2029e8c: 82 10 62 52 or %g1, 0x252, %g1 ! 41615252 <RAM_END+0x3f215252><== NOT EXECUTED
2029e90: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2029e94: 12 80 00 71 bne 202a058 <fat_init_volume_info+0x6cc> <== NOT EXECUTED
2029e98: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED
rtems_disk_release(vol->dd);
rtems_set_errno_and_return_minus_one( EINVAL );
}
else
{
ret = _fat_block_read(mt_entry, vol->info_sec , FAT_FSI_INFO,
2029e9c: d2 14 20 3c lduh [ %l0 + 0x3c ], %o1 <== NOT EXECUTED
2029ea0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2029ea4: 94 10 21 e4 mov 0x1e4, %o2 <== NOT EXECUTED
2029ea8: 7f ff fe 97 call 2029904 <_fat_block_read> <== NOT EXECUTED
2029eac: 96 10 20 0c mov 0xc, %o3 <== NOT EXECUTED
FAT_USEFUL_INFO_SIZE, fs_info_sector);
if ( ret < 0 )
2029eb0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029eb4: 06 80 00 87 bl 202a0d0 <fat_init_volume_info+0x744> <== NOT EXECUTED
2029eb8: c6 0f bf f4 ldub [ %fp + -12 ], %g3 <== NOT EXECUTED
_fat_block_release(mt_entry);
rtems_disk_release(vol->dd);
return -1;
}
vol->free_cls = FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector);
2029ebc: c8 0f bf f5 ldub [ %fp + -11 ], %g4 <== NOT EXECUTED
2029ec0: c4 0f bf f6 ldub [ %fp + -10 ], %g2 <== NOT EXECUTED
2029ec4: c2 0f bf f7 ldub [ %fp + -9 ], %g1 <== NOT EXECUTED
2029ec8: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2029ecc: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
2029ed0: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED
2029ed4: 84 11 00 02 or %g4, %g2, %g2 <== NOT EXECUTED
2029ed8: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
2029edc: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
2029ee0: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED
vol->next_cl = FAT_GET_FSINFO_NEXT_FREE_CLUSTER(fs_info_sector);
2029ee4: c8 0f bf f9 ldub [ %fp + -7 ], %g4 <== NOT EXECUTED
2029ee8: c4 0f bf fa ldub [ %fp + -6 ], %g2 <== NOT EXECUTED
2029eec: c6 0f bf f8 ldub [ %fp + -8 ], %g3 <== NOT EXECUTED
2029ef0: c2 0f bf fb ldub [ %fp + -5 ], %g1 <== NOT EXECUTED
2029ef4: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2029ef8: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
2029efc: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED
2029f00: 84 11 00 02 or %g4, %g2, %g2 <== NOT EXECUTED
2029f04: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
2029f08: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
rc = fat_fat32_update_fsinfo_sector(mt_entry, 0xFFFFFFFF,
2029f0c: 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);
2029f10: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED
rc = fat_fat32_update_fsinfo_sector(mt_entry, 0xFFFFFFFF,
2029f14: 92 10 3f ff mov -1, %o1 <== NOT EXECUTED
2029f18: 7f ff fd b7 call 20295f4 <fat_fat32_update_fsinfo_sector> <== NOT EXECUTED
2029f1c: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED
0xFFFFFFFF);
if ( rc != RC_OK )
2029f20: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2029f24: 02 bf ff 54 be 2029c74 <fat_init_volume_info+0x2e8> <== NOT EXECUTED
2029f28: 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);
2029f2c: 7f ff fc 94 call 202917c <fat_buf_release> <== NOT EXECUTED
2029f30: d0 04 60 34 ld [ %l1 + 0x34 ], %o0 <== 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);
2029f34: 7f ff 75 42 call 200743c <rtems_disk_release> <== NOT EXECUTED
2029f38: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
return rc;
2029f3c: 81 c7 e0 08 ret <== NOT EXECUTED
2029f40: 81 e8 00 00 restore <== NOT EXECUTED
vol->rdir_loc = vol->fat_loc + vol->fats * vol->fat_length;
if ( (FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec)) != 0)
vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec);
else
vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM32(boot_rec);
2029f44: c6 0f bf 6a ldub [ %fp + -150 ], %g3 <== NOT EXECUTED
2029f48: c4 0f bf 68 ldub [ %fp + -152 ], %g2 <== NOT EXECUTED
2029f4c: c2 0f bf 6b ldub [ %fp + -149 ], %g1 <== NOT EXECUTED
2029f50: 91 2a 20 08 sll %o0, 8, %o0 <== NOT EXECUTED
2029f54: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
2029f58: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED
2029f5c: 90 12 00 03 or %o0, %g3, %o0 <== NOT EXECUTED
2029f60: 90 12 00 02 or %o0, %g2, %o0 <== NOT EXECUTED
2029f64: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
2029f68: 10 bf ff 31 b 2029c2c <fat_init_volume_info+0x2a0> <== NOT EXECUTED
2029f6c: d0 24 20 2c st %o0, [ %l0 + 0x2c ] <== NOT EXECUTED
vol->rdir_size = vol->rdir_secs << vol->sec_log2;
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);
2029f70: c8 0f bf 6e ldub [ %fp + -146 ], %g4 <== NOT EXECUTED
2029f74: c6 0f bf 6c ldub [ %fp + -148 ], %g3 <== NOT EXECUTED
2029f78: c4 0f bf 6f ldub [ %fp + -145 ], %g2 <== NOT EXECUTED
2029f7c: 91 2a 20 08 sll %o0, 8, %o0 <== NOT EXECUTED
2029f80: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
2029f84: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED
2029f88: 90 12 00 04 or %o0, %g4, %o0 <== NOT EXECUTED
2029f8c: 90 12 00 03 or %o0, %g3, %o0 <== NOT EXECUTED
2029f90: 90 12 00 02 or %o0, %g2, %o0 <== NOT EXECUTED
2029f94: 10 bf ff 0f b 2029bd0 <fat_init_volume_info+0x244> <== NOT EXECUTED
2029f98: d0 24 20 18 st %o0, [ %l0 + 0x18 ] <== NOT EXECUTED
else
{
if ( vol->data_cls < FAT_FAT16_MAX_CLN)
{
vol->type = FAT_FAT16;
vol->mask = FAT_FAT16_MASK;
2029f9c: 82 10 63 ff or %g1, 0x3ff, %g1 <== NOT EXECUTED
vol->eoc_val = FAT_FAT16_EOC;
2029fa0: c4 24 20 10 st %g2, [ %l0 + 0x10 ] <== NOT EXECUTED
else
{
if ( vol->data_cls < FAT_FAT16_MAX_CLN)
{
vol->type = FAT_FAT16;
vol->mask = FAT_FAT16_MASK;
2029fa4: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED
}
else
{
if ( vol->data_cls < FAT_FAT16_MAX_CLN)
{
vol->type = FAT_FAT16;
2029fa8: 84 10 20 02 mov 2, %g2 <== NOT EXECUTED
2029fac: 10 bf ff 2c b 2029c5c <fat_init_volume_info+0x2d0> <== NOT EXECUTED
2029fb0: c4 2c 20 0a stb %g2, [ %l0 + 0xa ] <== NOT EXECUTED
vol->mirror = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_MIRROR;
if (vol->mirror)
vol->afat = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_FAT_NUM;
else
vol->afat = 0;
2029fb4: 10 bf ff 9a b 2029e1c <fat_init_volume_info+0x490> <== NOT EXECUTED
2029fb8: c0 2c 20 50 clrb [ %l0 + 0x50 ] <== NOT EXECUTED
if (rc == -1)
return rc;
/* Must be a block device. */
if (!S_ISBLK(stat_buf.st_mode))
rtems_set_errno_and_return_minus_one(ENOTTY);
2029fbc: 40 00 7b 22 call 2048c44 <__errno> <== NOT EXECUTED
2029fc0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2029fc4: 82 10 20 19 mov 0x19, %g1 <== NOT EXECUTED
2029fc8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2029fcc: 81 c7 e0 08 ret <== NOT EXECUTED
2029fd0: 81 e8 00 00 restore <== NOT EXECUTED
vol->afat = 0;
vol->info_sec = FAT_GET_BR_FAT32_FS_INFO_SECTOR(boot_rec);
if( vol->info_sec == 0 )
{
rtems_disk_release(vol->dd);
2029fd4: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
2029fd8: 7f ff 75 19 call 200743c <rtems_disk_release> <== NOT EXECUTED
2029fdc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
2029fe0: 40 00 7b 19 call 2048c44 <__errno> <== NOT EXECUTED
2029fe4: 01 00 00 00 nop <== NOT EXECUTED
2029fe8: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
2029fec: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2029ff0: 81 c7 e0 08 ret <== NOT EXECUTED
2029ff4: 81 e8 00 00 restore <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
}
fs_info->sec_buf = (uint8_t *)calloc(vol->bps, sizeof(uint8_t));
if (fs_info->sec_buf == NULL)
{
rtems_disk_release(vol->dd);
2029ff8: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
2029ffc: 7f ff 75 10 call 200743c <rtems_disk_release> <== NOT EXECUTED
202a000: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
free(fs_info->vhash);
202a004: 7f ff 7a 36 call 20088dc <free> <== NOT EXECUTED
202a008: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED
free(fs_info->rhash);
202a00c: 7f ff 7a 34 call 20088dc <free> <== NOT EXECUTED
202a010: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED
free(fs_info->uino);
202a014: 7f ff 7a 32 call 20088dc <free> <== NOT EXECUTED
202a018: d0 04 20 70 ld [ %l0 + 0x70 ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
202a01c: 40 00 7b 0a call 2048c44 <__errno> <== NOT EXECUTED
202a020: 01 00 00 00 nop <== NOT EXECUTED
202a024: 82 10 20 0c mov 0xc, %g1 ! c <PROM_START+0xc> <== NOT EXECUTED
202a028: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
return RC_OK;
}
202a02c: 81 c7 e0 08 ret <== NOT EXECUTED
202a030: 81 e8 00 00 restore <== NOT EXECUTED
memcpy( boot_rec, block->buffer, FAT_MAX_BPB_SIZE);
sc = rtems_bdbuf_release( block);
if (sc != RTEMS_SUCCESSFUL)
{
rtems_disk_release(vol->dd);
202a034: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
202a038: 7f ff 75 01 call 200743c <rtems_disk_release> <== NOT EXECUTED
202a03c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
202a040: 40 00 7b 01 call 2048c44 <__errno> <== NOT EXECUTED
202a044: 01 00 00 00 nop <== NOT EXECUTED
202a048: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
202a04c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202a050: 81 c7 e0 08 ret <== NOT EXECUTED
202a054: 81 e8 00 00 restore <== 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);
202a058: d0 04 60 34 ld [ %l1 + 0x34 ], %o0 <== NOT EXECUTED
202a05c: 7f ff fc 48 call 202917c <fat_buf_release> <== NOT EXECUTED
202a060: 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);
202a064: 7f ff 74 f6 call 200743c <rtems_disk_release> <== NOT EXECUTED
202a068: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
202a06c: 40 00 7a f6 call 2048c44 <__errno> <== NOT EXECUTED
202a070: 01 00 00 00 nop <== NOT EXECUTED
202a074: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
202a078: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202a07c: 81 c7 e0 08 ret <== NOT EXECUTED
202a080: 81 e8 00 00 restore <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOTTY);
/* 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);
202a084: 40 00 7a f0 call 2048c44 <__errno> <== NOT EXECUTED
202a088: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202a08c: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
202a090: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202a094: 81 c7 e0 08 ret <== NOT EXECUTED
202a098: 81 e8 00 00 restore <== 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);
202a09c: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
202a0a0: 7f ff 74 e7 call 200743c <rtems_disk_release> <== NOT EXECUTED
202a0a4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
free(fs_info->vhash);
202a0a8: 7f ff 7a 0d call 20088dc <free> <== NOT EXECUTED
202a0ac: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED
free(fs_info->rhash);
202a0b0: 7f ff 7a 0b call 20088dc <free> <== NOT EXECUTED
202a0b4: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
202a0b8: 40 00 7a e3 call 2048c44 <__errno> <== NOT EXECUTED
202a0bc: 01 00 00 00 nop <== NOT EXECUTED
202a0c0: 82 10 20 0c mov 0xc, %g1 ! c <PROM_START+0xc> <== NOT EXECUTED
202a0c4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202a0c8: 81 c7 e0 08 ret <== NOT EXECUTED
202a0cc: 81 e8 00 00 restore <== 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);
202a0d0: d0 04 60 34 ld [ %l1 + 0x34 ], %o0 <== NOT EXECUTED
202a0d4: 7f ff fc 2a call 202917c <fat_buf_release> <== NOT EXECUTED
202a0d8: b0 10 3f ff mov -1, %i0 <== 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);
202a0dc: 7f ff 74 d8 call 200743c <rtems_disk_release> <== NOT EXECUTED
202a0e0: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
return -1;
202a0e4: 81 c7 e0 08 ret <== NOT EXECUTED
202a0e8: 81 e8 00 00 restore <== 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);
202a0ec: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
202a0f0: 7f ff 74 d3 call 200743c <rtems_disk_release> <== NOT EXECUTED
202a0f4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
free(fs_info->vhash);
202a0f8: 7f ff 79 f9 call 20088dc <free> <== NOT EXECUTED
202a0fc: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
202a100: 40 00 7a d1 call 2048c44 <__errno> <== NOT EXECUTED
202a104: 01 00 00 00 nop <== NOT EXECUTED
202a108: 82 10 20 0c mov 0xc, %g1 ! c <PROM_START+0xc> <== NOT EXECUTED
202a10c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202a110: 81 c7 e0 08 ret <== NOT EXECUTED
202a114: 81 e8 00 00 restore <== 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);
202a118: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
202a11c: 7f ff 74 c8 call 200743c <rtems_disk_release> <== NOT EXECUTED
202a120: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
202a124: 40 00 7a c8 call 2048c44 <__errno> <== NOT EXECUTED
202a128: 01 00 00 00 nop <== NOT EXECUTED
202a12c: 82 10 20 0c mov 0xc, %g1 ! c <PROM_START+0xc> <== NOT EXECUTED
202a130: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202a134: 81 c7 e0 08 ret <== NOT EXECUTED
202a138: 81 e8 00 00 restore <== NOT EXECUTED
{
ret = _fat_block_read(mt_entry, vol->info_sec , 0,
FAT_FSI_LEADSIG_SIZE, fs_info_sector);
if ( ret < 0 )
{
rtems_disk_release(vol->dd);
202a13c: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
202a140: 7f ff 74 bf call 200743c <rtems_disk_release> <== NOT EXECUTED
202a144: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return -1;
202a148: 81 c7 e0 08 ret <== NOT EXECUTED
202a14c: 81 e8 00 00 restore <== NOT EXECUTED
02029070 <fat_ino_is_unique>:
inline bool
fat_ino_is_unique(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t ino
)
{
2029070: c2 02 20 34 ld [ %o0 + 0x34 ], %g1 <== NOT EXECUTED
2029074: c2 00 60 7c ld [ %g1 + 0x7c ], %g1 <== NOT EXECUTED
2029078: 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);
}
202907c: 81 c3 e0 08 retl <== NOT EXECUTED
2029080: 90 60 3f ff subx %g0, -1, %o0 <== NOT EXECUTED
020448dc <fat_scan_fat_for_free_clusters>:
uint32_t *chain,
uint32_t count,
uint32_t *cls_added,
uint32_t *last_cl
)
{
20448dc: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
20448e0: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED
uint32_t cl4find = 2;
uint32_t next_cln = 0;
20448e4: 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;
20448e8: e8 04 60 34 ld [ %l1 + 0x34 ], %l4 <== NOT EXECUTED
uint32_t i = 2;
*cls_added = 0;
20448ec: c0 26 c0 00 clr [ %i3 ] <== NOT EXECUTED
uint32_t *chain,
uint32_t count,
uint32_t *cls_added,
uint32_t *last_cl
)
{
20448f0: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
uint32_t data_cls_val = fs_info->vol.data_cls + 2;
uint32_t i = 2;
*cls_added = 0;
if (count == 0)
20448f4: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
20448f8: 02 80 00 47 be 2044a14 <fat_scan_fat_for_free_clusters+0x138><== NOT EXECUTED
20448fc: b0 10 20 00 clr %i0 <== NOT EXECUTED
return rc;
if (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE)
2044900: e4 04 60 44 ld [ %l1 + 0x44 ], %l2 <== NOT EXECUTED
2044904: 80 a4 bf ff cmp %l2, -1 <== NOT EXECUTED
2044908: 22 80 00 02 be,a 2044910 <fat_scan_fat_for_free_clusters+0x34><== NOT EXECUTED
204490c: a4 10 20 02 mov 2, %l2 <== 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;
2044910: a8 05 20 02 add %l4, 2, %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)
2044914: 80 a5 20 02 cmp %l4, 2 <== NOT EXECUTED
2044918: 08 80 00 41 bleu 2044a1c <fat_scan_fat_for_free_clusters+0x140><== NOT EXECUTED
204491c: ac 10 20 00 clr %l6 <== NOT EXECUTED
2044920: a6 10 20 02 mov 2, %l3 <== NOT EXECUTED
2044924: 10 80 00 17 b 2044980 <fat_scan_fat_for_free_clusters+0xa4><== NOT EXECUTED
2044928: aa 07 bf fc add %fp, -4, %l5 <== NOT EXECUTED
* wouldn't work properly
*/
if (*cls_added == 0)
{
*chain = cl4find;
rc = fat_set_fat_cluster(mt_entry, cl4find, FAT_GENFAT_EOC);
204492c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2044930: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2044934: 7f ff fe 69 call 20442d8 <fat_set_fat_cluster> <== NOT EXECUTED
2044938: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
204493c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2044940: 12 80 00 59 bne 2044aa4 <fat_scan_fat_for_free_clusters+0x1c8><== NOT EXECUTED
2044944: 01 00 00 00 nop <== NOT EXECUTED
return rc;
}
}
save_cln = cl4find;
(*cls_added)++;
2044948: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
204494c: 82 00 60 01 inc %g1 <== NOT EXECUTED
/* have we satisfied request ? */
if (*cls_added == count)
2044950: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED
2044954: 02 80 00 47 be 2044a70 <fat_scan_fat_for_free_clusters+0x194><== NOT EXECUTED
2044958: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED
fs_info->vol.next_cl = save_cln;
if (fs_info->vol.free_cls != 0xFFFFFFFF)
fs_info->vol.free_cls -= (*cls_added);
*last_cl = save_cln;
fat_buf_release(fs_info);
return rc;
204495c: ac 10 00 12 mov %l2, %l6 <== NOT EXECUTED
}
}
i++;
cl4find++;
2044960: a4 04 a0 01 inc %l2 <== NOT EXECUTED
if (cl4find >= data_cls_val)
2044964: 80 a5 00 12 cmp %l4, %l2 <== NOT EXECUTED
2044968: 18 80 00 03 bgu 2044974 <fat_scan_fat_for_free_clusters+0x98><== NOT EXECUTED
204496c: a6 04 e0 01 inc %l3 <== NOT EXECUTED
2044970: a4 10 20 02 mov 2, %l2 <== 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)
2044974: 80 a5 00 13 cmp %l4, %l3 <== NOT EXECUTED
2044978: 28 80 00 2a bleu,a 2044a20 <fat_scan_fat_for_free_clusters+0x144><== NOT EXECUTED
204497c: c2 04 60 40 ld [ %l1 + 0x40 ], %g1 <== NOT EXECUTED
{
rc = fat_get_fat_cluster(mt_entry, cl4find, &next_cln);
2044980: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2044984: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2044988: 7f ff ff 19 call 20445ec <fat_get_fat_cluster> <== NOT EXECUTED
204498c: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
2044990: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED
2044994: 32 80 00 2f bne,a 2044a50 <fat_scan_fat_for_free_clusters+0x174><== NOT EXECUTED
2044998: c4 06 c0 00 ld [ %i3 ], %g2 <== NOT EXECUTED
if (*cls_added != 0)
fat_free_fat_clusters_chain(mt_entry, (*chain));
return rc;
}
if (next_cln == FAT_GENFAT_FREE)
204499c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
20449a0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20449a4: 32 bf ff f0 bne,a 2044964 <fat_scan_fat_for_free_clusters+0x88><== NOT EXECUTED
20449a8: 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)
20449ac: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
20449b0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20449b4: 22 bf ff de be,a 204492c <fat_scan_fat_for_free_clusters+0x50><== NOT EXECUTED
20449b8: e4 26 40 00 st %l2, [ %i1 ] <== NOT EXECUTED
}
}
else
{
/* set EOC value to new allocated cluster */
rc = fat_set_fat_cluster(mt_entry, cl4find, FAT_GENFAT_EOC);
20449bc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20449c0: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
20449c4: 7f ff fe 45 call 20442d8 <fat_set_fat_cluster> <== NOT EXECUTED
20449c8: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
20449cc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20449d0: 12 80 00 23 bne 2044a5c <fat_scan_fat_for_free_clusters+0x180><== NOT EXECUTED
20449d4: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
/* cleanup activity */
fat_free_fat_clusters_chain(mt_entry, (*chain));
return rc;
}
rc = fat_set_fat_cluster(mt_entry, save_cln, cl4find);
20449d8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20449dc: 7f ff fe 3f call 20442d8 <fat_set_fat_cluster> <== NOT EXECUTED
20449e0: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
20449e4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20449e8: 22 bf ff d9 be,a 204494c <fat_scan_fat_for_free_clusters+0x70><== NOT EXECUTED
20449ec: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
{
/* cleanup activity */
fat_free_fat_clusters_chain(mt_entry, (*chain));
20449f0: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED
20449f4: 7f ff ff 82 call 20447fc <fat_free_fat_clusters_chain> <== NOT EXECUTED
20449f8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
/* trying to save last allocated cluster for future use */
fat_set_fat_cluster(mt_entry, cl4find, FAT_GENFAT_FREE);
20449fc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2044a00: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2044a04: 7f ff fe 35 call 20442d8 <fat_set_fat_cluster> <== NOT EXECUTED
2044a08: 94 10 20 00 clr %o2 <== NOT EXECUTED
fat_buf_release(fs_info);
2044a0c: 7f ff 91 dc call 202917c <fat_buf_release> <== NOT EXECUTED
2044a10: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
return rc;
2044a14: 81 c7 e0 08 ret <== NOT EXECUTED
2044a18: 81 e8 00 00 restore <== NOT EXECUTED
if (cl4find >= data_cls_val)
cl4find = 2;
}
fs_info->vol.next_cl = save_cln;
if (fs_info->vol.free_cls != 0xFFFFFFFF)
2044a1c: c2 04 60 40 ld [ %l1 + 0x40 ], %g1 <== NOT EXECUTED
2044a20: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED
2044a24: 02 80 00 05 be 2044a38 <fat_scan_fat_for_free_clusters+0x15c><== NOT EXECUTED
2044a28: ec 24 60 44 st %l6, [ %l1 + 0x44 ] <== NOT EXECUTED
fs_info->vol.free_cls -= (*cls_added);
2044a2c: c4 06 c0 00 ld [ %i3 ], %g2 <== NOT EXECUTED
2044a30: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED
2044a34: c2 24 60 40 st %g1, [ %l1 + 0x40 ] <== NOT EXECUTED
*last_cl = save_cln;
2044a38: ec 27 00 00 st %l6, [ %i4 ] <== NOT EXECUTED
fat_buf_release(fs_info);
2044a3c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2044a40: 7f ff 91 cf call 202917c <fat_buf_release> <== NOT EXECUTED
2044a44: b0 10 20 00 clr %i0 <== NOT EXECUTED
return RC_OK;
}
2044a48: 81 c7 e0 08 ret <== NOT EXECUTED
2044a4c: 81 e8 00 00 restore <== NOT EXECUTED
while (i < data_cls_val)
{
rc = fat_get_fat_cluster(mt_entry, cl4find, &next_cln);
if ( rc != RC_OK )
{
if (*cls_added != 0)
2044a50: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2044a54: 02 bf ff f0 be 2044a14 <fat_scan_fat_for_free_clusters+0x138><== NOT EXECUTED
2044a58: 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));
2044a5c: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED
2044a60: 7f ff ff 67 call 20447fc <fat_free_fat_clusters_chain> <== NOT EXECUTED
2044a64: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
2044a68: 81 c7 e0 08 ret <== NOT EXECUTED
2044a6c: 81 e8 00 00 restore <== NOT EXECUTED
/* have we satisfied request ? */
if (*cls_added == count)
{
fs_info->vol.next_cl = save_cln;
if (fs_info->vol.free_cls != 0xFFFFFFFF)
2044a70: c2 04 60 40 ld [ %l1 + 0x40 ], %g1 <== NOT EXECUTED
2044a74: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED
2044a78: 02 80 00 05 be 2044a8c <fat_scan_fat_for_free_clusters+0x1b0><== NOT EXECUTED
2044a7c: e4 24 60 44 st %l2, [ %l1 + 0x44 ] <== NOT EXECUTED
fs_info->vol.free_cls -= (*cls_added);
2044a80: c4 06 c0 00 ld [ %i3 ], %g2 <== NOT EXECUTED
2044a84: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED
2044a88: c2 24 60 40 st %g1, [ %l1 + 0x40 ] <== NOT EXECUTED
*last_cl = save_cln;
2044a8c: e4 27 00 00 st %l2, [ %i4 ] <== NOT EXECUTED
fat_buf_release(fs_info);
2044a90: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2044a94: 7f ff 91 ba call 202917c <fat_buf_release> <== NOT EXECUTED
2044a98: b0 10 20 00 clr %i0 <== NOT EXECUTED
return rc;
2044a9c: 81 c7 e0 08 ret <== NOT EXECUTED
2044aa0: 81 e8 00 00 restore <== NOT EXECUTED
2044aa4: 81 c7 e0 08 ret <== NOT EXECUTED
2044aa8: 81 e8 00 00 restore <== NOT EXECUTED
020442d8 <fat_set_fat_cluster>:
fat_set_fat_cluster(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
uint32_t in_val
)
{
20442d8: 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;
20442dc: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
/* sanity check */
if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )
20442e0: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED
20442e4: 08 80 00 93 bleu 2044530 <fat_set_fat_cluster+0x258> <== NOT EXECUTED
20442e8: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
20442ec: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 <== NOT EXECUTED
20442f0: 82 00 60 01 inc %g1 <== NOT EXECUTED
20442f4: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
20442f8: 18 80 00 8e bgu 2044530 <fat_set_fat_cluster+0x258> <== NOT EXECUTED
20442fc: 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) +
2044300: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED
2044304: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
2044308: 12 80 00 24 bne 2044398 <fat_set_fat_cluster+0xc0> <== NOT EXECUTED
204430c: e8 0c 20 02 ldub [ %l0 + 2 ], %l4 <== NOT EXECUTED
2044310: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
2044314: 02 80 00 27 be 20443b0 <fat_set_fat_cluster+0xd8> <== NOT EXECUTED
2044318: 01 00 00 00 nop <== NOT EXECUTED
204431c: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 <== NOT EXECUTED
2044320: a3 2e 60 01 sll %i1, 1, %l1 <== NOT EXECUTED
2044324: a9 34 40 14 srl %l1, %l4, %l4 <== NOT EXECUTED
2044328: a8 05 00 01 add %l4, %g1, %l4 <== NOT EXECUTED
fs_info->vol.afat_loc;
ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
204432c: ea 14 00 00 lduh [ %l0 ], %l5 <== NOT EXECUTED
rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &block0);
2044330: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED
2044334: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2044338: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
204433c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
2044340: 7f ff 93 f6 call 2029318 <fat_buf_access> <== NOT EXECUTED
2044344: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
if (rc != RC_OK)
2044348: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
204434c: 12 80 00 11 bne 2044390 <fat_set_fat_cluster+0xb8> <== NOT EXECUTED
2044350: ab 2d 60 10 sll %l5, 0x10, %l5 <== NOT EXECUTED
return rc;
switch ( fs_info->vol.type )
2044354: e4 0c 20 0a ldub [ %l0 + 0xa ], %l2 <== NOT EXECUTED
2044358: 80 a4 a0 02 cmp %l2, 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);
204435c: ab 35 60 10 srl %l5, 0x10, %l5 <== NOT EXECUTED
2044360: 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 )
2044364: 02 80 00 18 be 20443c4 <fat_set_fat_cluster+0xec> <== NOT EXECUTED
2044368: a2 0c 40 15 and %l1, %l5, %l1 <== NOT EXECUTED
204436c: 80 a4 a0 04 cmp %l2, 4 <== NOT EXECUTED
2044370: 02 80 00 3e be 2044468 <fat_set_fat_cluster+0x190> <== NOT EXECUTED
2044374: 80 a4 a0 01 cmp %l2, 1 <== NOT EXECUTED
2044378: 02 80 00 1e be 20443f0 <fat_set_fat_cluster+0x118> <== NOT EXECUTED
204437c: 80 8e 60 01 btst 1, %i1 <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
break;
default:
rtems_set_errno_and_return_minus_one(EIO);
2044380: 40 00 12 31 call 2048c44 <__errno> <== NOT EXECUTED
2044384: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2044388: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
204438c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
break;
}
return RC_OK;
}
2044390: 81 c7 e0 08 ret <== NOT EXECUTED
2044394: 81 e8 00 00 restore <== 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) +
2044398: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 <== NOT EXECUTED
204439c: a3 36 60 01 srl %i1, 1, %l1 <== NOT EXECUTED
20443a0: a2 04 40 19 add %l1, %i1, %l1 <== NOT EXECUTED
20443a4: a9 34 40 14 srl %l1, %l4, %l4 <== NOT EXECUTED
20443a8: 10 bf ff e1 b 204432c <fat_set_fat_cluster+0x54> <== NOT EXECUTED
20443ac: a8 05 00 01 add %l4, %g1, %l4 <== NOT EXECUTED
20443b0: c2 04 20 4c ld [ %l0 + 0x4c ], %g1 <== NOT EXECUTED
20443b4: a3 2e 60 02 sll %i1, 2, %l1 <== NOT EXECUTED
20443b8: a9 34 40 14 srl %l1, %l4, %l4 <== NOT EXECUTED
20443bc: 10 bf ff dc b 204432c <fat_set_fat_cluster+0x54> <== NOT EXECUTED
20443c0: a8 05 00 01 add %l4, %g1, %l4 <== NOT EXECUTED
}
}
break;
case FAT_FAT16:
*((uint16_t *)(block0->buffer + ofs)) =
20443c4: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
20443c8: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED
20443cc: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
20443d0: 85 36 a0 18 srl %i2, 0x18, %g2 <== NOT EXECUTED
20443d4: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED
20443d8: b4 16 80 02 or %i2, %g2, %i2 <== NOT EXECUTED
20443dc: f4 30 40 11 sth %i2, [ %g1 + %l1 ] <== NOT EXECUTED
}
static inline void
fat_buf_mark_modified(fat_fs_info_t *fs_info)
{
fs_info->c.modified = true;
20443e0: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20443e4: c2 2c 20 84 stb %g1, [ %l0 + 0x84 ] <== NOT EXECUTED
20443e8: 81 c7 e0 08 ret <== NOT EXECUTED
20443ec: 81 e8 00 00 restore <== NOT EXECUTED
return rc;
switch ( fs_info->vol.type )
{
case FAT_FAT12:
if ( FAT_CLUSTER_IS_ODD(cln) )
20443f0: 02 80 00 35 be 20444c4 <fat_set_fat_cluster+0x1ec> <== NOT EXECUTED
20443f4: 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;
*((uint8_t *)(block0->buffer + ofs)) =
20443f8: 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)) =
(*((uint8_t *)(block0->buffer + ofs))) & 0x0F;
20443fc: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== 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)) =
2044400: c6 08 40 11 ldub [ %g1 + %l1 ], %g3 <== NOT EXECUTED
2044404: 86 08 e0 0f and %g3, 0xf, %g3 <== NOT EXECUTED
2044408: c6 28 40 11 stb %g3, [ %g1 + %l1 ] <== NOT EXECUTED
(*((uint8_t *)(block0->buffer + ofs))) & 0x0F;
*((uint8_t *)(block0->buffer + ofs)) =
(*((uint8_t *)(block0->buffer + ofs))) |
204440c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2044410: 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)) =
2044414: c6 08 40 11 ldub [ %g1 + %l1 ], %g3 <== NOT EXECUTED
2044418: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED
204441c: c4 28 40 11 stb %g2, [ %g1 + %l1 ] <== 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) )
2044420: c2 14 00 00 lduh [ %l0 ], %g1 <== NOT EXECUTED
2044424: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
2044428: 80 a0 40 11 cmp %g1, %l1 <== NOT EXECUTED
204442c: 02 80 00 5c be 204459c <fat_set_fat_cluster+0x2c4> <== NOT EXECUTED
2044430: e4 2c 20 84 stb %l2, [ %l0 + 0x84 ] <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
}
else
{
*((uint8_t *)(block0->buffer + ofs + 1)) &= 0x00;
2044434: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2044438: a2 04 60 01 inc %l1 <== NOT EXECUTED
204443c: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs + 1)) =
2044440: b5 2e a0 14 sll %i2, 0x14, %i2 <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
}
else
{
*((uint8_t *)(block0->buffer + ofs + 1)) &= 0x00;
2044444: c0 28 40 11 clrb [ %g1 + %l1 ] <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs + 1)) =
(*((uint8_t *)(block0->buffer + ofs + 1))) |
2044448: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
}
else
{
*((uint8_t *)(block0->buffer + ofs + 1)) &= 0x00;
*((uint8_t *)(block0->buffer + ofs + 1)) =
204444c: b5 36 a0 18 srl %i2, 0x18, %i2 <== NOT EXECUTED
(*((uint8_t *)(block0->buffer + ofs + 1))) |
2044450: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
}
else
{
*((uint8_t *)(block0->buffer + ofs + 1)) &= 0x00;
*((uint8_t *)(block0->buffer + ofs + 1)) =
2044454: c4 08 40 11 ldub [ %g1 + %l1 ], %g2 <== NOT EXECUTED
2044458: 84 10 80 1a or %g2, %i2, %g2 <== NOT EXECUTED
204445c: c4 28 40 11 stb %g2, [ %g1 + %l1 ] <== NOT EXECUTED
2044460: 81 c7 e0 08 ret <== NOT EXECUTED
2044464: 81 e8 00 00 restore <== 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));
2044468: 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));
204446c: 05 3c 00 00 sethi %hi(0xf0000000), %g2 <== NOT EXECUTED
*((uint32_t *)(block0->buffer + ofs)) =
(*((uint32_t *)(block0->buffer + ofs))) & (CT_LE_L(0xF0000000));
2044470: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
*((uint32_t *)(block0->buffer + ofs)) =
2044474: 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)) =
2044478: c6 00 40 11 ld [ %g1 + %l1 ], %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));
204447c: b4 2e 80 02 andn %i2, %g2, %i2 <== NOT EXECUTED
*((uint32_t *)(block0->buffer + ofs)) =
2044480: 86 08 e0 f0 and %g3, 0xf0, %g3 <== NOT EXECUTED
(*((uint32_t *)(block0->buffer + ofs))) & (CT_LE_L(0xF0000000));
*((uint32_t *)(block0->buffer + ofs)) =
2044484: 89 36 a0 10 srl %i2, 0x10, %g4 <== NOT EXECUTED
2044488: 85 36 a0 18 srl %i2, 0x18, %g2 <== NOT EXECUTED
204448c: 88 09 20 ff and %g4, 0xff, %g4 <== NOT EXECUTED
2044490: 84 13 40 02 or %o5, %g2, %g2 <== NOT EXECUTED
2044494: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2044498: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED
204449c: b4 0e a0 ff and %i2, 0xff, %i2 <== NOT EXECUTED
20444a0: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED
20444a4: 84 10 80 1a or %g2, %i2, %g2 <== NOT EXECUTED
20444a8: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
20444ac: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED
20444b0: c4 20 40 11 st %g2, [ %g1 + %l1 ] <== NOT EXECUTED
20444b4: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20444b8: c2 2c 20 84 stb %g1, [ %l0 + 0x84 ] <== NOT EXECUTED
20444bc: 81 c7 e0 08 ret <== NOT EXECUTED
20444c0: 81 e8 00 00 restore <== NOT EXECUTED
(uint8_t )((fat16_clv & 0xFF00)>>8);
}
}
else
{
fat16_clv = ((uint16_t )in_val) & FAT_FAT12_MASK;
20444c4: b4 0e af ff and %i2, 0xfff, %i2 <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs)) &= 0x00;
20444c8: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
20444cc: c0 28 40 11 clrb [ %g1 + %l1 ] <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs)) =
(*((uint8_t *)(block0->buffer + ofs))) |
20444d0: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
20444d4: 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)) =
20444d8: c4 08 40 11 ldub [ %g1 + %l1 ], %g2 <== NOT EXECUTED
20444dc: 84 16 80 02 or %i2, %g2, %g2 <== NOT EXECUTED
20444e0: c4 28 40 11 stb %g2, [ %g1 + %l1 ] <== 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) )
20444e4: c2 14 00 00 lduh [ %l0 ], %g1 <== NOT EXECUTED
20444e8: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
20444ec: 80 a0 40 11 cmp %g1, %l1 <== NOT EXECUTED
20444f0: 02 80 00 16 be 2044548 <fat_set_fat_cluster+0x270> <== NOT EXECUTED
20444f4: e4 2c 20 84 stb %l2, [ %l0 + 0x84 ] <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
}
else
{
*((uint8_t *)(block0->buffer + ofs + 1)) =
(*((uint8_t *)(block0->buffer + ofs + 1))) & 0xF0;
20444f8: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
20444fc: a2 04 60 01 inc %l1 <== NOT EXECUTED
2044500: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs+1)) =
2044504: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
}
else
{
*((uint8_t *)(block0->buffer + ofs + 1)) =
2044508: c4 08 40 11 ldub [ %g1 + %l1 ], %g2 <== NOT EXECUTED
204450c: 84 08 bf f0 and %g2, -16, %g2 <== NOT EXECUTED
2044510: c4 28 40 11 stb %g2, [ %g1 + %l1 ] <== NOT EXECUTED
(*((uint8_t *)(block0->buffer + ofs + 1))) & 0xF0;
*((uint8_t *)(block0->buffer + ofs+1)) =
(*((uint8_t *)(block0->buffer + ofs+1))) |
2044514: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2044518: 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)) =
204451c: c4 08 40 11 ldub [ %g1 + %l1 ], %g2 <== NOT EXECUTED
2044520: b4 10 80 1a or %g2, %i2, %i2 <== NOT EXECUTED
2044524: f4 28 40 11 stb %i2, [ %g1 + %l1 ] <== NOT EXECUTED
2044528: 81 c7 e0 08 ret <== NOT EXECUTED
204452c: 81 e8 00 00 restore <== NOT EXECUTED
uint32_t fat32_clv = 0;
rtems_bdbuf_buffer *block0 = NULL;
/* sanity check */
if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )
rtems_set_errno_and_return_minus_one(EIO);
2044530: 40 00 11 c5 call 2048c44 <__errno> <== NOT EXECUTED
2044534: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2044538: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
204453c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2044540: 81 c7 e0 08 ret <== NOT EXECUTED
2044544: 81 e8 00 00 restore <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
if ( ofs == (fs_info->vol.bps - 1) )
{
rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
2044548: 92 05 20 01 add %l4, 1, %o1 <== NOT EXECUTED
204454c: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
2044550: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2044554: 7f ff 93 71 call 2029318 <fat_buf_access> <== NOT EXECUTED
2044558: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
&block0);
if (rc != RC_OK)
204455c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2044560: 12 bf ff 8c bne 2044390 <fat_set_fat_cluster+0xb8> <== NOT EXECUTED
2044564: 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)) =
2044568: 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;
204456c: 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)) =
2044570: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED
2044574: 84 08 bf f0 and %g2, -16, %g2 <== NOT EXECUTED
2044578: c4 28 40 00 stb %g2, [ %g1 ] <== NOT EXECUTED
(*((uint8_t *)(block0->buffer))) & 0xF0;
*((uint8_t *)(block0->buffer)) =
(*((uint8_t *)(block0->buffer))) |
204457c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2044580: 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)) =
2044584: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED
2044588: 84 16 80 02 or %i2, %g2, %g2 <== NOT EXECUTED
204458c: c4 28 40 00 stb %g2, [ %g1 ] <== NOT EXECUTED
2044590: e4 2c 20 84 stb %l2, [ %l0 + 0x84 ] <== NOT EXECUTED
2044594: 81 c7 e0 08 ret <== NOT EXECUTED
2044598: 81 e8 00 00 restore <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
if ( ofs == (fs_info->vol.bps - 1) )
{
rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
204459c: 92 05 20 01 add %l4, 1, %o1 <== NOT EXECUTED
20445a0: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
20445a4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20445a8: 7f ff 93 5c call 2029318 <fat_buf_access> <== NOT EXECUTED
20445ac: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
&block0);
if (rc != RC_OK)
20445b0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20445b4: 12 bf ff 77 bne 2044390 <fat_set_fat_cluster+0xb8> <== NOT EXECUTED
20445b8: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
return rc;
*((uint8_t *)(block0->buffer)) &= 0x00;
*((uint8_t *)(block0->buffer)) =
20445bc: 87 2e a0 14 sll %i2, 0x14, %g3 <== 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;
20445c0: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
*((uint8_t *)(block0->buffer)) =
20445c4: 87 30 e0 18 srl %g3, 0x18, %g3 <== 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;
20445c8: c0 28 40 00 clrb [ %g1 ] <== NOT EXECUTED
*((uint8_t *)(block0->buffer)) =
(*((uint8_t *)(block0->buffer))) |
20445cc: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
20445d0: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
if (rc != RC_OK)
return rc;
*((uint8_t *)(block0->buffer)) &= 0x00;
*((uint8_t *)(block0->buffer)) =
20445d4: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED
20445d8: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED
20445dc: c4 28 40 00 stb %g2, [ %g1 ] <== NOT EXECUTED
20445e0: e4 2c 20 84 stb %l2, [ %l0 + 0x84 ] <== NOT EXECUTED
20445e4: 81 c7 e0 08 ret <== NOT EXECUTED
20445e8: 81 e8 00 00 restore <== NOT EXECUTED
020296b4 <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)
{
20296b4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
20296b8: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
int i = 0;
if (fs_info->vol.type & FAT_FAT32)
20296bc: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED
20296c0: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED
20296c4: 12 80 00 3a bne 20297ac <fat_shutdown_drive+0xf8> <== NOT EXECUTED
20296c8: a2 10 20 00 clr %l1 <== NOT EXECUTED
fs_info->vol.next_cl);
if ( rc != RC_OK )
rc = -1;
}
fat_buf_release(fs_info);
20296cc: 7f ff fe ac call 202917c <fat_buf_release> <== NOT EXECUTED
20296d0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rtems_bdbuf_syncdev(fs_info->vol.dev) != RTEMS_SUCCESSFUL)
20296d4: 7f ff 6a c1 call 20041d8 <rtems_bdbuf_syncdev> <== NOT EXECUTED
20296d8: d0 1c 20 58 ldd [ %l0 + 0x58 ], %o0 <== NOT EXECUTED
20296dc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20296e0: 32 80 00 3b bne,a 20297cc <fat_shutdown_drive+0x118> <== NOT EXECUTED
20296e4: a2 10 3f ff mov -1, %l1 <== NOT EXECUTED
20296e8: a6 10 20 00 clr %l3 <== 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;
20296ec: e4 04 20 68 ld [ %l0 + 0x68 ], %l2 <== NOT EXECUTED
while ( (node = rtems_chain_get(the_chain)) != NULL )
20296f0: 10 80 00 04 b 2029700 <fat_shutdown_drive+0x4c> <== NOT EXECUTED
20296f4: a4 04 80 13 add %l2, %l3, %l2 <== NOT EXECUTED
free(node);
20296f8: 7f ff 7c 79 call 20088dc <free> <== NOT EXECUTED
20296fc: 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 );
2029700: 7f ff 93 1c call 200e370 <_Chain_Get> <== NOT EXECUTED
2029704: 90 10 00 12 mov %l2, %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 )
2029708: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202970c: 12 bf ff fb bne 20296f8 <fat_shutdown_drive+0x44> <== NOT EXECUTED
2029710: 01 00 00 00 nop <== NOT EXECUTED
2029714: a6 04 e0 0c add %l3, 0xc, %l3 <== 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++)
2029718: 80 a4 e0 18 cmp %l3, 0x18 <== NOT EXECUTED
202971c: 32 bf ff f5 bne,a 20296f0 <fat_shutdown_drive+0x3c> <== NOT EXECUTED
2029720: e4 04 20 68 ld [ %l0 + 0x68 ], %l2 <== NOT EXECUTED
2029724: a6 10 20 00 clr %l3 <== NOT EXECUTED
}
for (i = 0; i < FAT_HASH_SIZE; i++)
{
rtems_chain_node *node = NULL;
rtems_chain_control *the_chain = fs_info->rhash + i;
2029728: e4 04 20 6c ld [ %l0 + 0x6c ], %l2 <== NOT EXECUTED
while ( (node = rtems_chain_get(the_chain)) != NULL )
202972c: 10 80 00 04 b 202973c <fat_shutdown_drive+0x88> <== NOT EXECUTED
2029730: a4 04 80 13 add %l2, %l3, %l2 <== NOT EXECUTED
free(node);
2029734: 7f ff 7c 6a call 20088dc <free> <== NOT EXECUTED
2029738: 01 00 00 00 nop <== NOT EXECUTED
202973c: 7f ff 93 0d call 200e370 <_Chain_Get> <== NOT EXECUTED
2029740: 90 10 00 12 mov %l2, %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 )
2029744: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029748: 12 bf ff fb bne 2029734 <fat_shutdown_drive+0x80> <== NOT EXECUTED
202974c: 01 00 00 00 nop <== NOT EXECUTED
2029750: a6 04 e0 0c add %l3, 0xc, %l3 <== NOT EXECUTED
while ( (node = rtems_chain_get(the_chain)) != NULL )
free(node);
}
for (i = 0; i < FAT_HASH_SIZE; i++)
2029754: 80 a4 e0 18 cmp %l3, 0x18 <== NOT EXECUTED
2029758: 32 bf ff f5 bne,a 202972c <fat_shutdown_drive+0x78> <== NOT EXECUTED
202975c: e4 04 20 6c ld [ %l0 + 0x6c ], %l2 <== NOT EXECUTED
while ( (node = rtems_chain_get(the_chain)) != NULL )
free(node);
}
free(fs_info->vhash);
2029760: 7f ff 7c 5f call 20088dc <free> <== NOT EXECUTED
2029764: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED
free(fs_info->rhash);
2029768: 7f ff 7c 5d call 20088dc <free> <== NOT EXECUTED
202976c: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED
free(fs_info->uino);
2029770: 7f ff 7c 5b call 20088dc <free> <== NOT EXECUTED
2029774: d0 04 20 70 ld [ %l0 + 0x70 ], %o0 <== NOT EXECUTED
free(fs_info->sec_buf);
2029778: 7f ff 7c 59 call 20088dc <free> <== NOT EXECUTED
202977c: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 <== NOT EXECUTED
rtems_disk_release(fs_info->vol.dd);
2029780: 7f ff 77 2f call 200743c <rtems_disk_release> <== NOT EXECUTED
2029784: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
if (rc)
2029788: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
202978c: 02 80 00 06 be 20297a4 <fat_shutdown_drive+0xf0> <== NOT EXECUTED
2029790: 01 00 00 00 nop <== NOT EXECUTED
errno = EIO;
2029794: 40 00 7d 2c call 2048c44 <__errno> <== NOT EXECUTED
2029798: 01 00 00 00 nop <== NOT EXECUTED
202979c: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
20297a0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return rc;
}
20297a4: 81 c7 e0 08 ret <== NOT EXECUTED
20297a8: 91 e8 00 11 restore %g0, %l1, %o0 <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
int i = 0;
if (fs_info->vol.type & FAT_FAT32)
{
rc = fat_fat32_update_fsinfo_sector(mt_entry, fs_info->vol.free_cls,
20297ac: d2 04 20 40 ld [ %l0 + 0x40 ], %o1 <== NOT EXECUTED
20297b0: d4 04 20 44 ld [ %l0 + 0x44 ], %o2 <== NOT EXECUTED
20297b4: 7f ff ff 90 call 20295f4 <fat_fat32_update_fsinfo_sector> <== NOT EXECUTED
20297b8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
fs_info->vol.next_cl);
if ( rc != RC_OK )
20297bc: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
20297c0: 32 bf ff c3 bne,a 20296cc <fat_shutdown_drive+0x18> <== NOT EXECUTED
20297c4: a2 10 3f ff mov -1, %l1 <== NOT EXECUTED
20297c8: 30 bf ff c1 b,a 20296cc <fat_shutdown_drive+0x18> <== NOT EXECUTED
rc = -1;
}
fat_buf_release(fs_info);
if (rtems_bdbuf_syncdev(fs_info->vol.dev) != RTEMS_SUCCESSFUL)
20297cc: 10 bf ff c8 b 20296ec <fat_shutdown_drive+0x38> <== NOT EXECUTED
20297d0: a6 10 20 00 clr %l3 <== NOT EXECUTED
02044ea8 <fchdir>:
#include <rtems/seterr.h>
int fchdir(
int fd
)
{
2044ea8: 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 );
2044eac: 03 00 81 bb sethi %hi(0x206ec00), %g1 <== NOT EXECUTED
2044eb0: c2 00 62 f4 ld [ %g1 + 0x2f4 ], %g1 ! 206eef4 <rtems_libio_number_iops><== NOT EXECUTED
2044eb4: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED
2044eb8: 1a 80 00 53 bcc 2045004 <fchdir+0x15c> <== NOT EXECUTED
2044ebc: 03 00 81 cc sethi %hi(0x2073000), %g1 <== NOT EXECUTED
iop = rtems_libio_iop( fd );
2044ec0: c2 00 60 d4 ld [ %g1 + 0xd4 ], %g1 ! 20730d4 <rtems_libio_iops><== NOT EXECUTED
2044ec4: 85 2e 20 06 sll %i0, 6, %g2 <== NOT EXECUTED
2044ec8: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED
2044ecc: b0 06 00 02 add %i0, %g2, %i0 <== NOT EXECUTED
2044ed0: b0 00 40 18 add %g1, %i0, %i0 <== NOT EXECUTED
rtems_libio_check_is_open(iop);
2044ed4: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 <== NOT EXECUTED
2044ed8: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED
2044edc: 02 80 00 4a be 2045004 <fchdir+0x15c> <== NOT EXECUTED
2044ee0: 01 00 00 00 nop <== NOT EXECUTED
/*
* Verify you can change directory into this node.
*/
if ( !iop->pathinfo.ops ) {
2044ee4: c2 06 20 28 ld [ %i0 + 0x28 ], %g1 <== NOT EXECUTED
2044ee8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2044eec: 02 80 00 59 be 2045050 <fchdir+0x1a8> <== NOT EXECUTED
2044ef0: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( !iop->pathinfo.ops->node_type_h ) {
2044ef4: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 <== NOT EXECUTED
2044ef8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2044efc: 02 80 00 55 be 2045050 <fchdir+0x1a8> <== NOT EXECUTED
2044f00: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) !=
2044f04: 9f c0 40 00 call %g1 <== NOT EXECUTED
2044f08: 90 06 20 1c add %i0, 0x1c, %o0 <== NOT EXECUTED
2044f0c: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED
2044f10: 12 80 00 37 bne 2044fec <fchdir+0x144> <== NOT EXECUTED
2044f14: 21 00 81 bc sethi %hi(0x206f000), %l0 <== NOT EXECUTED
* but note the race condition. Threads who
* share their rtems_filesystem_current better
* be synchronized!
*/
saved = rtems_filesystem_current;
2044f18: c2 04 23 24 ld [ %l0 + 0x324 ], %g1 ! 206f324 <rtems_current_user_env><== NOT EXECUTED
rtems_filesystem_current = iop->pathinfo;
/* clone the current node */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
2044f1c: 11 00 81 b5 sethi %hi(0x206d400), %o0 <== NOT EXECUTED
* but note the race condition. Threads who
* share their rtems_filesystem_current better
* be synchronized!
*/
saved = rtems_filesystem_current;
2044f20: c4 00 60 04 ld [ %g1 + 4 ], %g2 <== NOT EXECUTED
rtems_filesystem_current = iop->pathinfo;
/* clone the current node */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
2044f24: 90 12 20 40 or %o0, 0x40, %o0 <== NOT EXECUTED
* but note the race condition. Threads who
* share their rtems_filesystem_current better
* be synchronized!
*/
saved = rtems_filesystem_current;
2044f28: c4 27 bf d8 st %g2, [ %fp + -40 ] <== NOT EXECUTED
2044f2c: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED
rtems_filesystem_current = iop->pathinfo;
/* clone the current node */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
2044f30: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
* but note the race condition. Threads who
* share their rtems_filesystem_current better
* be synchronized!
*/
saved = rtems_filesystem_current;
2044f34: c4 27 bf dc st %g2, [ %fp + -36 ] <== NOT EXECUTED
2044f38: c4 00 60 0c ld [ %g1 + 0xc ], %g2 <== NOT EXECUTED
rtems_filesystem_current = iop->pathinfo;
/* clone the current node */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
2044f3c: 94 10 20 00 clr %o2 <== NOT EXECUTED
* but note the race condition. Threads who
* share their rtems_filesystem_current better
* be synchronized!
*/
saved = rtems_filesystem_current;
2044f40: c4 27 bf e0 st %g2, [ %fp + -32 ] <== NOT EXECUTED
2044f44: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 <== NOT EXECUTED
rtems_filesystem_current = iop->pathinfo;
/* clone the current node */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
2044f48: 96 07 bf ec add %fp, -20, %o3 <== NOT EXECUTED
* but note the race condition. Threads who
* share their rtems_filesystem_current better
* be synchronized!
*/
saved = rtems_filesystem_current;
2044f4c: c4 27 bf e4 st %g2, [ %fp + -28 ] <== NOT EXECUTED
2044f50: c4 00 60 14 ld [ %g1 + 0x14 ], %g2 <== NOT EXECUTED
rtems_filesystem_current = iop->pathinfo;
/* clone the current node */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
2044f54: 98 10 20 00 clr %o4 <== NOT EXECUTED
* but note the race condition. Threads who
* share their rtems_filesystem_current better
* be synchronized!
*/
saved = rtems_filesystem_current;
2044f58: c4 27 bf e8 st %g2, [ %fp + -24 ] <== NOT EXECUTED
rtems_filesystem_current = iop->pathinfo;
2044f5c: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 <== NOT EXECUTED
2044f60: c4 20 60 04 st %g2, [ %g1 + 4 ] <== NOT EXECUTED
2044f64: c4 06 20 20 ld [ %i0 + 0x20 ], %g2 <== NOT EXECUTED
2044f68: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED
2044f6c: c4 06 20 24 ld [ %i0 + 0x24 ], %g2 <== NOT EXECUTED
2044f70: c4 20 60 0c st %g2, [ %g1 + 0xc ] <== NOT EXECUTED
2044f74: c4 06 20 28 ld [ %i0 + 0x28 ], %g2 <== NOT EXECUTED
2044f78: c4 20 60 10 st %g2, [ %g1 + 0x10 ] <== NOT EXECUTED
2044f7c: c4 06 20 2c ld [ %i0 + 0x2c ], %g2 <== NOT EXECUTED
/* clone the current node */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
2044f80: 7f ff 0e 38 call 2008860 <rtems_filesystem_evaluate_path> <== NOT EXECUTED
2044f84: c4 20 60 14 st %g2, [ %g1 + 0x14 ] <== NOT EXECUTED
2044f88: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2044f8c: 12 80 00 24 bne 204501c <fchdir+0x174> <== NOT EXECUTED
2044f90: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
/* cloning failed; restore original and bail out */
rtems_filesystem_current = saved;
return -1;
}
/* release the old one */
rtems_filesystem_freenode( &saved );
2044f94: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2044f98: 02 80 00 09 be 2044fbc <fchdir+0x114> <== NOT EXECUTED
2044f9c: c4 07 bf ec ld [ %fp + -20 ], %g2 <== NOT EXECUTED
2044fa0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
2044fa4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2044fa8: 22 80 00 06 be,a 2044fc0 <fchdir+0x118> <== NOT EXECUTED
2044fac: c2 04 23 24 ld [ %l0 + 0x324 ], %g1 <== NOT EXECUTED
2044fb0: 9f c0 40 00 call %g1 <== NOT EXECUTED
2044fb4: 90 07 bf d8 add %fp, -40, %o0 <== NOT EXECUTED
rtems_filesystem_current = loc;
2044fb8: c4 07 bf ec ld [ %fp + -20 ], %g2 <== NOT EXECUTED
2044fbc: c2 04 23 24 ld [ %l0 + 0x324 ], %g1 <== NOT EXECUTED
2044fc0: c4 20 60 04 st %g2, [ %g1 + 4 ] <== NOT EXECUTED
2044fc4: c4 07 bf f0 ld [ %fp + -16 ], %g2 <== NOT EXECUTED
2044fc8: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED
2044fcc: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED
2044fd0: c4 20 60 0c st %g2, [ %g1 + 0xc ] <== NOT EXECUTED
2044fd4: c4 07 bf f8 ld [ %fp + -8 ], %g2 <== NOT EXECUTED
2044fd8: c4 20 60 10 st %g2, [ %g1 + 0x10 ] <== NOT EXECUTED
2044fdc: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED
2044fe0: c4 20 60 14 st %g2, [ %g1 + 0x14 ] <== NOT EXECUTED
return 0;
}
2044fe4: 81 c7 e0 08 ret <== NOT EXECUTED
2044fe8: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) !=
RTEMS_FILESYSTEM_DIRECTORY ) {
rtems_set_errno_and_return_minus_one( ENOTDIR );
2044fec: 40 00 0f 16 call 2048c44 <__errno> <== NOT EXECUTED
2044ff0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2044ff4: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED
2044ff8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2044ffc: 81 c7 e0 08 ret <== NOT EXECUTED
2045000: 81 e8 00 00 restore <== NOT EXECUTED
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc, saved;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
2045004: 40 00 0f 10 call 2048c44 <__errno> <== NOT EXECUTED
2045008: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
204500c: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED
2045010: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2045014: 81 c7 e0 08 ret <== NOT EXECUTED
2045018: 81 e8 00 00 restore <== NOT EXECUTED
rtems_filesystem_current = iop->pathinfo;
/* clone the current node */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
/* cloning failed; restore original and bail out */
rtems_filesystem_current = saved;
204501c: c4 07 bf d8 ld [ %fp + -40 ], %g2 <== NOT EXECUTED
2045020: c2 04 23 24 ld [ %l0 + 0x324 ], %g1 <== NOT EXECUTED
2045024: c4 20 60 04 st %g2, [ %g1 + 4 ] <== NOT EXECUTED
2045028: c4 07 bf dc ld [ %fp + -36 ], %g2 <== NOT EXECUTED
204502c: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED
2045030: c4 07 bf e0 ld [ %fp + -32 ], %g2 <== NOT EXECUTED
2045034: c4 20 60 0c st %g2, [ %g1 + 0xc ] <== NOT EXECUTED
2045038: c4 07 bf e4 ld [ %fp + -28 ], %g2 <== NOT EXECUTED
204503c: c4 20 60 10 st %g2, [ %g1 + 0x10 ] <== NOT EXECUTED
2045040: c4 07 bf e8 ld [ %fp + -24 ], %g2 <== NOT EXECUTED
2045044: c4 20 60 14 st %g2, [ %g1 + 0x14 ] <== NOT EXECUTED
return -1;
2045048: 81 c7 e0 08 ret <== NOT EXECUTED
204504c: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
if ( !iop->pathinfo.ops ) {
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( !iop->pathinfo.ops->node_type_h ) {
rtems_set_errno_and_return_minus_one( ENOTSUP );
2045050: 40 00 0e fd call 2048c44 <__errno> <== NOT EXECUTED
2045054: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2045058: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
204505c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2045060: 81 c7 e0 08 ret <== NOT EXECUTED
2045064: 81 e8 00 00 restore <== NOT EXECUTED
0202c474 <fchmod>:
int fchmod(
int fd,
mode_t mode
)
{
202c474: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
202c478: 03 00 81 bb sethi %hi(0x206ec00), %g1 <== NOT EXECUTED
202c47c: c2 00 62 f4 ld [ %g1 + 0x2f4 ], %g1 ! 206eef4 <rtems_libio_number_iops><== NOT EXECUTED
202c480: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED
202c484: 1a 80 00 16 bcc 202c4dc <fchmod+0x68> <== NOT EXECUTED
202c488: 03 00 81 cc sethi %hi(0x2073000), %g1 <== NOT EXECUTED
iop = rtems_libio_iop( fd );
202c48c: d0 00 60 d4 ld [ %g1 + 0xd4 ], %o0 ! 20730d4 <rtems_libio_iops><== NOT EXECUTED
202c490: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED
202c494: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED
202c498: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED
202c49c: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED
rtems_libio_check_is_open(iop);
202c4a0: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED
202c4a4: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED
202c4a8: 02 80 00 0d be 202c4dc <fchmod+0x68> <== NOT EXECUTED
202c4ac: 01 00 00 00 nop <== NOT EXECUTED
/*
* Now process the fchmod().
*/
if ( !iop->handlers->fchmod_h )
202c4b0: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 <== NOT EXECUTED
202c4b4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
202c4b8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202c4bc: 02 80 00 0e be 202c4f4 <fchmod+0x80> <== NOT EXECUTED
202c4c0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode );
202c4c4: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 <== NOT EXECUTED
202c4c8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
202c4cc: 9f c0 40 00 call %g1 <== NOT EXECUTED
202c4d0: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED
}
202c4d4: 81 c7 e0 08 ret <== NOT EXECUTED
202c4d8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
{
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
202c4dc: 40 00 71 da call 2048c44 <__errno> <== NOT EXECUTED
202c4e0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202c4e4: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED
202c4e8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202c4ec: 81 c7 e0 08 ret <== NOT EXECUTED
202c4f0: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Now process the fchmod().
*/
if ( !iop->handlers->fchmod_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
202c4f4: 40 00 71 d4 call 2048c44 <__errno> <== NOT EXECUTED
202c4f8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202c4fc: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
202c500: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202c504: 81 c7 e0 08 ret <== NOT EXECUTED
202c508: 81 e8 00 00 restore <== NOT EXECUTED
0202c50c <fchown>:
int fchown(
int fd,
uid_t owner,
gid_t group
)
{
202c50c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
202c510: 03 00 81 bb sethi %hi(0x206ec00), %g1 <== NOT EXECUTED
202c514: c2 00 62 f4 ld [ %g1 + 0x2f4 ], %g1 ! 206eef4 <rtems_libio_number_iops><== NOT EXECUTED
202c518: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED
202c51c: 1a 80 00 19 bcc 202c580 <fchown+0x74> <== NOT EXECUTED
202c520: 03 00 81 cc sethi %hi(0x2073000), %g1 <== NOT EXECUTED
iop = rtems_libio_iop( fd );
202c524: d0 00 60 d4 ld [ %g1 + 0xd4 ], %o0 ! 20730d4 <rtems_libio_iops><== NOT EXECUTED
202c528: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED
202c52c: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED
202c530: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED
202c534: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED
rtems_libio_check_is_open(iop);
202c538: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED
202c53c: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED
202c540: 02 80 00 10 be 202c580 <fchown+0x74> <== NOT EXECUTED
202c544: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
202c548: 02 80 00 14 be 202c598 <fchown+0x8c> <== NOT EXECUTED
202c54c: 01 00 00 00 nop <== NOT EXECUTED
if ( !iop->pathinfo.ops->chown_h )
202c550: c2 02 20 28 ld [ %o0 + 0x28 ], %g1 <== NOT EXECUTED
202c554: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED
202c558: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202c55c: 02 80 00 15 be 202c5b0 <fchown+0xa4> <== NOT EXECUTED
202c560: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group );
202c564: 95 2e a0 10 sll %i2, 0x10, %o2 <== NOT EXECUTED
202c568: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED
202c56c: 95 32 a0 10 srl %o2, 0x10, %o2 <== NOT EXECUTED
202c570: 9f c0 40 00 call %g1 <== NOT EXECUTED
202c574: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED
}
202c578: 81 c7 e0 08 ret <== NOT EXECUTED
202c57c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
{
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
202c580: 40 00 71 b1 call 2048c44 <__errno> <== NOT EXECUTED
202c584: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202c588: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED
202c58c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202c590: 81 c7 e0 08 ret <== NOT EXECUTED
202c594: 81 e8 00 00 restore <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
202c598: 40 00 71 ab call 2048c44 <__errno> <== NOT EXECUTED
202c59c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202c5a0: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
202c5a4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202c5a8: 81 c7 e0 08 ret <== NOT EXECUTED
202c5ac: 81 e8 00 00 restore <== NOT EXECUTED
if ( !iop->pathinfo.ops->chown_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
202c5b0: 40 00 71 a5 call 2048c44 <__errno> <== NOT EXECUTED
202c5b4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202c5b8: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
202c5bc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202c5c0: 81 c7 e0 08 ret <== NOT EXECUTED
202c5c4: 81 e8 00 00 restore <== NOT EXECUTED
02045090 <fcntl>:
int fcntl(
int fd,
int cmd,
...
)
{
2045090: 9d e3 bf 90 save %sp, -112, %sp
int fd2;
int flags;
int mask;
int ret = 0;
rtems_libio_check_fd( fd );
2045094: 03 00 81 bb sethi %hi(0x206ec00), %g1
2045098: c2 00 62 f4 ld [ %g1 + 0x2f4 ], %g1 ! 206eef4 <rtems_libio_number_iops>
...
)
{
int ret;
va_list ap;
va_start( ap, cmd );
204509c: 84 07 a0 4c add %fp, 0x4c, %g2
20450a0: f4 27 a0 4c st %i2, [ %fp + 0x4c ]
20450a4: f6 27 a0 50 st %i3, [ %fp + 0x50 ]
20450a8: f8 27 a0 54 st %i4, [ %fp + 0x54 ]
20450ac: fa 27 a0 58 st %i5, [ %fp + 0x58 ]
int fd2;
int flags;
int mask;
int ret = 0;
rtems_libio_check_fd( fd );
20450b0: 80 a6 00 01 cmp %i0, %g1
20450b4: 1a 80 00 7a bcc 204529c <fcntl+0x20c> <== NEVER TAKEN
20450b8: c4 27 bf fc st %g2, [ %fp + -4 ]
iop = rtems_libio_iop( fd );
20450bc: 21 00 81 cc sethi %hi(0x2073000), %l0
20450c0: c6 04 20 d4 ld [ %l0 + 0xd4 ], %g3 ! 20730d4 <rtems_libio_iops>
20450c4: 89 2e 20 06 sll %i0, 6, %g4
20450c8: 93 2e 20 03 sll %i0, 3, %o1
20450cc: 92 02 40 04 add %o1, %g4, %o1
20450d0: 92 00 c0 09 add %g3, %o1, %o1
rtems_libio_check_is_open(iop);
20450d4: d0 02 60 18 ld [ %o1 + 0x18 ], %o0
20450d8: 80 8a 21 00 btst 0x100, %o0
20450dc: 02 80 00 70 be 204529c <fcntl+0x20c> <== NEVER TAKEN
20450e0: 80 a6 60 09 cmp %i1, 9
/*
* This switch should contain all the cases from POSIX.
*/
switch ( cmd ) {
20450e4: 08 80 00 08 bleu 2045104 <fcntl+0x74>
20450e8: 89 2e 60 02 sll %i1, 2, %g4
errno = ENOTSUP;
ret = -1;
break;
default:
errno = EINVAL;
20450ec: 40 00 0e d6 call 2048c44 <__errno>
20450f0: b0 10 3f ff mov -1, %i0
20450f4: 82 10 20 16 mov 0x16, %g1
20450f8: c2 22 00 00 st %g1, [ %o0 ]
20450fc: 81 c7 e0 08 ret
2045100: 81 e8 00 00 restore
/*
* This switch should contain all the cases from POSIX.
*/
switch ( cmd ) {
2045104: 1b 00 81 14 sethi %hi(0x2045000), %o5
2045108: 9a 13 60 68 or %o5, 0x68, %o5 ! 2045068 <fchdir+0x1c0>
204510c: c8 03 40 04 ld [ %o5 + %g4 ], %g4
2045110: 81 c1 00 00 jmp %g4
2045114: 01 00 00 00 nop
errno = ENOTSUP;
ret = -1;
break;
case F_GETOWN: /* for sockets. */
errno = ENOTSUP;
2045118: 40 00 0e cb call 2048c44 <__errno>
204511c: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff>
2045120: 82 10 20 86 mov 0x86, %g1
2045124: c2 22 00 00 st %g1, [ %o0 ]
2045128: 81 c7 e0 08 ret
204512c: 81 e8 00 00 restore
case F_GETFL: /* more flags (cloexec) */
ret = rtems_libio_to_fcntl_flags( iop->flags );
break;
case F_SETFL:
flags = rtems_libio_fcntl_flags( va_arg( ap, int ) );
2045130: d0 00 80 00 ld [ %g2 ], %o0
2045134: 7f ff 0f 53 call 2008e80 <rtems_libio_fcntl_flags>
2045138: d2 27 bf f4 st %o1, [ %fp + -12 ]
/*
* XXX If we are turning on append, should we seek to the end?
*/
iop->flags = (iop->flags & ~mask) | (flags & mask);
204513c: d2 07 bf f4 ld [ %fp + -12 ], %o1
2045140: 90 0a 22 01 and %o0, 0x201, %o0
2045144: c2 02 60 18 ld [ %o1 + 0x18 ], %g1
2045148: b0 10 20 00 clr %i0
204514c: 82 08 7d fe and %g1, -514, %g1
2045150: 82 12 00 01 or %o0, %g1, %g1
2045154: c2 22 60 18 st %g1, [ %o1 + 0x18 ]
* If we got this far successfully, then we give the optional
* filesystem specific handler a chance to process this.
*/
if (ret >= 0) {
if (iop->handlers->fcntl_h) {
2045158: c2 02 60 40 ld [ %o1 + 0x40 ], %g1
204515c: c2 00 60 30 ld [ %g1 + 0x30 ], %g1
2045160: 80 a0 60 00 cmp %g1, 0
2045164: 02 80 00 52 be 20452ac <fcntl+0x21c> <== NEVER TAKEN
2045168: 01 00 00 00 nop
int err = (*iop->handlers->fcntl_h)( cmd, iop );
204516c: 9f c0 40 00 call %g1
2045170: 90 10 00 19 mov %i1, %o0
if (err) {
2045174: b2 92 20 00 orcc %o0, 0, %i1
2045178: 12 80 00 04 bne 2045188 <fcntl+0xf8> <== NEVER TAKEN
204517c: 01 00 00 00 nop
va_list ap;
va_start( ap, cmd );
ret = vfcntl(fd,cmd,ap);
va_end(ap);
return ret;
}
2045180: 81 c7 e0 08 ret
2045184: 81 e8 00 00 restore
if (ret >= 0) {
if (iop->handlers->fcntl_h) {
int err = (*iop->handlers->fcntl_h)( cmd, iop );
if (err) {
errno = err;
2045188: 40 00 0e af call 2048c44 <__errno> <== NOT EXECUTED
204518c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2045190: f2 22 00 00 st %i1, [ %o0 ] <== NOT EXECUTED
va_list ap;
va_start( ap, cmd );
ret = vfcntl(fd,cmd,ap);
va_end(ap);
return ret;
}
2045194: 81 c7 e0 08 ret <== NOT EXECUTED
2045198: 81 e8 00 00 restore <== NOT EXECUTED
else
iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;
break;
case F_GETFL: /* more flags (cloexec) */
ret = rtems_libio_to_fcntl_flags( iop->flags );
204519c: 7f ff 0e 89 call 2008bc0 <rtems_libio_to_fcntl_flags>
20451a0: d2 27 bf f4 st %o1, [ %fp + -12 ]
20451a4: d2 07 bf f4 ld [ %fp + -12 ], %o1
20451a8: b0 10 00 08 mov %o0, %i0
/*
* If we got this far successfully, then we give the optional
* filesystem specific handler a chance to process this.
*/
if (ret >= 0) {
20451ac: 80 a6 20 00 cmp %i0, 0
20451b0: 36 bf ff eb bge,a 204515c <fcntl+0xcc> <== ALWAYS TAKEN
20451b4: c2 02 60 40 ld [ %o1 + 0x40 ], %g1
va_list ap;
va_start( ap, cmd );
ret = vfcntl(fd,cmd,ap);
va_end(ap);
return ret;
}
20451b8: 81 c7 e0 08 ret <== NOT EXECUTED
20451bc: 81 e8 00 00 restore <== NOT EXECUTED
* 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 ) )
20451c0: c2 00 80 00 ld [ %g2 ], %g1
20451c4: 80 a0 60 00 cmp %g1, 0
20451c8: 22 80 00 2c be,a 2045278 <fcntl+0x1e8> <== NEVER TAKEN
20451cc: 90 0a 37 ff and %o0, -2049, %o0 <== NOT EXECUTED
iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;
20451d0: 90 12 28 00 or %o0, 0x800, %o0
20451d4: b0 10 20 00 clr %i0
20451d8: 10 bf ff e0 b 2045158 <fcntl+0xc8>
20451dc: d0 22 60 18 st %o0, [ %o1 + 0x18 ]
diop->pathinfo = iop->pathinfo;
ret = (int) (diop - rtems_libio_iops);
break;
case F_GETFD: /* get f_flags */
ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0);
20451e0: b1 32 20 0b srl %o0, 0xb, %i0
20451e4: 10 bf ff dd b 2045158 <fcntl+0xc8>
20451e8: b0 0e 20 01 and %i0, 1, %i0
* This switch should contain all the cases from POSIX.
*/
switch ( cmd ) {
case F_DUPFD: /* dup */
fd2 = va_arg( ap, int );
20451ec: c4 00 80 00 ld [ %g2 ], %g2
if ( fd2 )
20451f0: 80 a0 a0 00 cmp %g2, 0
20451f4: 02 80 00 30 be 20452b4 <fcntl+0x224> <== ALWAYS TAKEN
20451f8: 80 a0 40 02 cmp %g1, %g2
diop = rtems_libio_iop( fd2 );
20451fc: b0 10 20 00 clr %i0 <== NOT EXECUTED
2045200: 18 80 00 21 bgu 2045284 <fcntl+0x1f4> <== NOT EXECUTED
2045204: 82 10 20 00 clr %g1 <== NOT EXECUTED
}
diop->handlers = iop->handlers;
diop->file_info = iop->file_info;
diop->flags = iop->flags;
diop->pathinfo = iop->pathinfo;
2045208: c4 02 60 1c ld [ %o1 + 0x1c ], %g2
ret = -1;
break;
}
}
diop->handlers = iop->handlers;
204520c: da 02 60 40 ld [ %o1 + 0x40 ], %o5
diop->file_info = iop->file_info;
diop->flags = iop->flags;
diop->pathinfo = iop->pathinfo;
2045210: c4 20 60 1c st %g2, [ %g1 + 0x1c ]
2045214: c4 02 60 20 ld [ %o1 + 0x20 ], %g2
break;
}
}
diop->handlers = iop->handlers;
diop->file_info = iop->file_info;
2045218: c8 02 60 3c ld [ %o1 + 0x3c ], %g4
diop->flags = iop->flags;
diop->pathinfo = iop->pathinfo;
204521c: c4 20 60 20 st %g2, [ %g1 + 0x20 ]
2045220: c4 02 60 24 ld [ %o1 + 0x24 ], %g2
ret = (int) (diop - rtems_libio_iops);
2045224: 86 26 00 03 sub %i0, %g3, %g3
}
diop->handlers = iop->handlers;
diop->file_info = iop->file_info;
diop->flags = iop->flags;
diop->pathinfo = iop->pathinfo;
2045228: c4 20 60 24 st %g2, [ %g1 + 0x24 ]
204522c: c4 02 60 28 ld [ %o1 + 0x28 ], %g2
ret = (int) (diop - rtems_libio_iops);
2045230: 87 38 e0 03 sra %g3, 3, %g3
}
diop->handlers = iop->handlers;
diop->file_info = iop->file_info;
diop->flags = iop->flags;
diop->pathinfo = iop->pathinfo;
2045234: c4 20 60 28 st %g2, [ %g1 + 0x28 ]
2045238: c4 02 60 2c ld [ %o1 + 0x2c ], %g2
ret = -1;
break;
}
}
diop->handlers = iop->handlers;
204523c: da 20 60 40 st %o5, [ %g1 + 0x40 ]
diop->file_info = iop->file_info;
diop->flags = iop->flags;
diop->pathinfo = iop->pathinfo;
2045240: c4 20 60 2c st %g2, [ %g1 + 0x2c ]
ret = (int) (diop - rtems_libio_iops);
2045244: 85 28 e0 06 sll %g3, 6, %g2
break;
}
}
diop->handlers = iop->handlers;
diop->file_info = iop->file_info;
2045248: c8 20 60 3c st %g4, [ %g1 + 0x3c ]
diop->flags = iop->flags;
204524c: d0 20 60 18 st %o0, [ %g1 + 0x18 ]
diop->pathinfo = iop->pathinfo;
ret = (int) (diop - rtems_libio_iops);
2045250: 83 28 e0 03 sll %g3, 3, %g1
2045254: 82 20 80 01 sub %g2, %g1, %g1
2045258: 85 28 60 06 sll %g1, 6, %g2
204525c: 82 00 40 02 add %g1, %g2, %g1
2045260: 82 00 40 03 add %g1, %g3, %g1
2045264: b1 28 60 0f sll %g1, 0xf, %i0
2045268: b0 26 00 01 sub %i0, %g1, %i0
204526c: b1 2e 20 03 sll %i0, 3, %i0
2045270: 10 bf ff cf b 20451ac <fcntl+0x11c>
2045274: b0 06 00 03 add %i0, %g3, %i0
*/
if ( va_arg( ap, int ) )
iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;
else
iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;
2045278: b0 10 20 00 clr %i0 <== NOT EXECUTED
204527c: 10 bf ff b7 b 2045158 <fcntl+0xc8> <== NOT EXECUTED
2045280: d0 22 60 18 st %o0, [ %o1 + 0x18 ] <== NOT EXECUTED
switch ( cmd ) {
case F_DUPFD: /* dup */
fd2 = va_arg( ap, int );
if ( fd2 )
diop = rtems_libio_iop( fd2 );
2045284: 83 28 a0 06 sll %g2, 6, %g1 <== NOT EXECUTED
2045288: 85 28 a0 03 sll %g2, 3, %g2 <== NOT EXECUTED
204528c: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
2045290: 82 00 c0 01 add %g3, %g1, %g1 <== NOT EXECUTED
2045294: 10 bf ff dd b 2045208 <fcntl+0x178> <== NOT EXECUTED
2045298: b0 10 00 01 mov %g1, %i0 <== NOT EXECUTED
int mask;
int ret = 0;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
204529c: 40 00 0e 6a call 2048c44 <__errno> <== NOT EXECUTED
20452a0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20452a4: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED
20452a8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20452ac: 81 c7 e0 08 ret <== NOT EXECUTED
20452b0: 81 e8 00 00 restore <== NOT EXECUTED
fd2 = va_arg( ap, int );
if ( fd2 )
diop = rtems_libio_iop( fd2 );
else {
/* allocate a file control block */
diop = rtems_libio_allocate();
20452b4: 7f ff 0e b2 call 2008d7c <rtems_libio_allocate>
20452b8: d2 27 bf f4 st %o1, [ %fp + -12 ]
if ( diop == 0 ) {
20452bc: b0 10 3f ff mov -1, %i0
20452c0: 82 92 20 00 orcc %o0, 0, %g1
20452c4: 02 bf ff 8e be 20450fc <fcntl+0x6c> <== NEVER TAKEN
20452c8: d2 07 bf f4 ld [ %fp + -12 ], %o1
20452cc: c6 04 20 d4 ld [ %l0 + 0xd4 ], %g3
20452d0: d0 02 60 18 ld [ %o1 + 0x18 ], %o0
20452d4: 10 bf ff cd b 2045208 <fcntl+0x178>
20452d8: b0 10 00 01 mov %g1, %i0
0200399c <fdatasync>:
#include <rtems/seterr.h>
int fdatasync(
int fd
)
{
200399c: 9d e3 bf a0 save %sp, -96, %sp
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
20039a0: 03 00 80 7c sethi %hi(0x201f000), %g1
20039a4: c2 00 60 84 ld [ %g1 + 0x84 ], %g1 ! 201f084 <rtems_libio_number_iops>
20039a8: 80 a6 00 01 cmp %i0, %g1
20039ac: 1a 80 00 16 bcc 2003a04 <fdatasync+0x68> <== NEVER TAKEN
20039b0: 03 00 80 7e sethi %hi(0x201f800), %g1
iop = rtems_libio_iop( fd );
20039b4: d0 00 62 1c ld [ %g1 + 0x21c ], %o0 ! 201fa1c <rtems_libio_iops>
20039b8: 83 2e 20 06 sll %i0, 6, %g1
20039bc: b1 2e 20 03 sll %i0, 3, %i0
20039c0: b0 06 00 01 add %i0, %g1, %i0
20039c4: 90 02 00 18 add %o0, %i0, %o0
rtems_libio_check_is_open(iop);
20039c8: c2 02 20 18 ld [ %o0 + 0x18 ], %g1
20039cc: 80 88 61 00 btst 0x100, %g1
20039d0: 02 80 00 0d be 2003a04 <fdatasync+0x68> <== NEVER TAKEN
20039d4: 80 88 60 04 btst 4, %g1
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
20039d8: 02 80 00 0b be 2003a04 <fdatasync+0x68>
20039dc: 01 00 00 00 nop
/*
* Now process the fdatasync().
*/
if ( !iop->handlers->fdatasync_h )
20039e0: c2 02 20 40 ld [ %o0 + 0x40 ], %g1
20039e4: c2 00 60 2c ld [ %g1 + 0x2c ], %g1
20039e8: 80 a0 60 00 cmp %g1, 0
20039ec: 02 80 00 0c be 2003a1c <fdatasync+0x80> <== ALWAYS TAKEN
20039f0: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->handlers->fdatasync_h)( iop );
20039f4: 9f c0 40 00 call %g1 <== NOT EXECUTED
20039f8: 01 00 00 00 nop <== NOT EXECUTED
}
20039fc: 81 c7 e0 08 ret <== NOT EXECUTED
2003a00: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
2003a04: 40 00 37 f7 call 20119e0 <__errno>
2003a08: b0 10 3f ff mov -1, %i0
2003a0c: 82 10 20 09 mov 9, %g1
2003a10: c2 22 00 00 st %g1, [ %o0 ]
2003a14: 81 c7 e0 08 ret
2003a18: 81 e8 00 00 restore
/*
* Now process the fdatasync().
*/
if ( !iop->handlers->fdatasync_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
2003a1c: 40 00 37 f1 call 20119e0 <__errno>
2003a20: b0 10 3f ff mov -1, %i0
2003a24: 82 10 20 86 mov 0x86, %g1
2003a28: c2 22 00 00 st %g1, [ %o0 ]
2003a2c: 81 c7 e0 08 ret
2003a30: 81 e8 00 00 restore
0200afac <fifo_open>:
*/
int fifo_open(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
200afac: 9d e3 bf 98 save %sp, -104, %sp
)
{
pipe_control_t *pipe;
int err = 0;
if (rtems_semaphore_obtain(rtems_pipe_semaphore,
200afb0: 21 00 80 76 sethi %hi(0x201d800), %l0
200afb4: d0 04 20 5c ld [ %l0 + 0x5c ], %o0 ! 201d85c <rtems_pipe_semaphore>
*/
int fifo_open(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
200afb8: a2 10 00 18 mov %i0, %l1
)
{
pipe_control_t *pipe;
int err = 0;
if (rtems_semaphore_obtain(rtems_pipe_semaphore,
200afbc: 92 10 20 00 clr %o1
200afc0: 94 10 20 00 clr %o2
200afc4: 7f ff ee 44 call 20068d4 <rtems_semaphore_obtain>
200afc8: b0 10 3f fc mov -4, %i0
200afcc: 80 a2 20 00 cmp %o0, 0
200afd0: 12 80 00 dd bne 200b344 <fifo_open+0x398> <== ALWAYS TAKEN
200afd4: 01 00 00 00 nop
RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL)
return -EINTR;
pipe = *pipep;
200afd8: e4 04 40 00 ld [ %l1 ], %l2 <== NOT EXECUTED
if (pipe == NULL) {
200afdc: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
200afe0: 02 80 00 4a be 200b108 <fifo_open+0x15c> <== NOT EXECUTED
200afe4: 01 00 00 00 nop <== NOT EXECUTED
err = pipe_alloc(&pipe);
if (err)
goto out;
}
if (! PIPE_LOCK(pipe))
200afe8: d0 04 a0 28 ld [ %l2 + 0x28 ], %o0 <== NOT EXECUTED
200afec: 92 10 20 00 clr %o1 <== NOT EXECUTED
200aff0: 7f ff ee 39 call 20068d4 <rtems_semaphore_obtain> <== NOT EXECUTED
200aff4: 94 10 20 00 clr %o2 <== NOT EXECUTED
err = -EINTR;
if (*pipep == NULL) {
200aff8: c2 04 40 00 ld [ %l1 ], %g1 <== NOT EXECUTED
err = pipe_alloc(&pipe);
if (err)
goto out;
}
if (! PIPE_LOCK(pipe))
200affc: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
200b000: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED
err = -EINTR;
if (*pipep == NULL) {
200b004: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
err = pipe_alloc(&pipe);
if (err)
goto out;
}
if (! PIPE_LOCK(pipe))
200b008: b0 0e 20 04 and %i0, 4, %i0 <== NOT EXECUTED
err = -EINTR;
if (*pipep == NULL) {
200b00c: 02 80 00 bb be 200b2f8 <fifo_open+0x34c> <== NOT EXECUTED
200b010: b0 06 3f fc add %i0, -4, %i0 <== NOT EXECUTED
else
*pipep = pipe;
}
out:
rtems_semaphore_release(rtems_pipe_semaphore);
200b014: 7f ff ee 77 call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
200b018: d0 04 20 5c ld [ %l0 + 0x5c ], %o0 <== NOT EXECUTED
pipe_control_t *pipe;
unsigned int prevCounter;
int err;
err = pipe_new(pipep);
if (err)
200b01c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
200b020: 12 80 00 c9 bne 200b344 <fifo_open+0x398> <== NOT EXECUTED
200b024: 01 00 00 00 nop <== NOT EXECUTED
return err;
pipe = *pipep;
switch (LIBIO_ACCMODE(iop)) {
200b028: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED
200b02c: 82 08 60 06 and %g1, 6, %g1 <== NOT EXECUTED
200b030: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED
200b034: 02 80 00 8b be 200b260 <fifo_open+0x2b4> <== NOT EXECUTED
200b038: e0 04 40 00 ld [ %l1 ], %l0 <== NOT EXECUTED
200b03c: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED
200b040: 02 80 00 73 be 200b20c <fifo_open+0x260> <== NOT EXECUTED
200b044: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
200b048: 22 80 00 07 be,a 200b064 <fifo_open+0xb8> <== NOT EXECUTED
200b04c: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
if (pipe->Writers ++ == 0)
PIPE_WAKEUPREADERS(pipe);
break;
}
PIPE_UNLOCK(pipe);
200b050: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
200b054: 7f ff ee 67 call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
200b058: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
200b05c: 81 c7 e0 08 ret <== NOT EXECUTED
200b060: 81 e8 00 00 restore <== NOT EXECUTED
return err;
pipe = *pipep;
switch (LIBIO_ACCMODE(iop)) {
case LIBIO_FLAGS_READ:
pipe->readerCounter ++;
200b064: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED
if (pipe->Readers ++ == 0)
200b068: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED
return err;
pipe = *pipep;
switch (LIBIO_ACCMODE(iop)) {
case LIBIO_FLAGS_READ:
pipe->readerCounter ++;
200b06c: 84 00 a0 01 inc %g2 <== NOT EXECUTED
if (pipe->Readers ++ == 0)
200b070: c6 24 20 10 st %g3, [ %l0 + 0x10 ] <== NOT EXECUTED
200b074: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200b078: 02 80 00 b5 be 200b34c <fifo_open+0x3a0> <== NOT EXECUTED
200b07c: c4 24 20 20 st %g2, [ %l0 + 0x20 ] <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
if (pipe->Writers == 0) {
200b080: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
200b084: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200b088: 32 bf ff f3 bne,a 200b054 <fifo_open+0xa8> <== NOT EXECUTED
200b08c: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
/* Not an error */
if (LIBIO_NODELAY(iop))
200b090: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED
200b094: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
200b098: 32 bf ff ef bne,a 200b054 <fifo_open+0xa8> <== NOT EXECUTED
200b09c: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
break;
prevCounter = pipe->writerCounter;
200b0a0: 10 80 00 0c b 200b0d0 <fifo_open+0x124> <== NOT EXECUTED
200b0a4: e4 04 20 24 ld [ %l0 + 0x24 ], %l2 <== NOT EXECUTED
/* Wait until a writer opens the pipe */
do {
PIPE_UNLOCK(pipe);
if (! PIPE_READWAIT(pipe))
goto out_error;
if (! PIPE_LOCK(pipe))
200b0a8: 92 10 20 00 clr %o1 <== NOT EXECUTED
200b0ac: 7f ff ee 0a call 20068d4 <rtems_semaphore_obtain> <== NOT EXECUTED
200b0b0: 94 10 20 00 clr %o2 <== NOT EXECUTED
200b0b4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200b0b8: 12 80 00 0f bne 200b0f4 <fifo_open+0x148> <== NOT EXECUTED
200b0bc: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED
goto out_error;
} while (prevCounter == pipe->writerCounter);
200b0c0: c2 04 20 24 ld [ %l0 + 0x24 ], %g1 <== NOT EXECUTED
200b0c4: 80 a0 40 12 cmp %g1, %l2 <== NOT EXECUTED
200b0c8: 32 bf ff e3 bne,a 200b054 <fifo_open+0xa8> <== NOT EXECUTED
200b0cc: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
prevCounter = pipe->writerCounter;
err = -EINTR;
/* Wait until a writer opens the pipe */
do {
PIPE_UNLOCK(pipe);
200b0d0: 7f ff ee 48 call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
200b0d4: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
if (! PIPE_READWAIT(pipe))
200b0d8: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
200b0dc: 40 00 08 66 call 200d274 <rtems_barrier_wait> <== NOT EXECUTED
200b0e0: 92 10 20 00 clr %o1 <== NOT EXECUTED
200b0e4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200b0e8: 22 bf ff f0 be,a 200b0a8 <fifo_open+0xfc> <== NOT EXECUTED
200b0ec: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
break;
}
PIPE_UNLOCK(pipe);
return 0;
200b0f0: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED
out_error:
pipe_release(pipep, iop);
200b0f4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
200b0f8: 7f ff ff 5c call 200ae68 <pipe_release> <== NOT EXECUTED
200b0fc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
return err;
}
200b100: 81 c7 e0 08 ret <== NOT EXECUTED
200b104: 81 e8 00 00 restore <== NOT EXECUTED
{
static char c = 'a';
pipe_control_t *pipe;
int err = -ENOMEM;
pipe = malloc(sizeof(pipe_control_t));
200b108: 7f ff df e1 call 200308c <malloc> <== NOT EXECUTED
200b10c: 90 10 20 34 mov 0x34, %o0 <== NOT EXECUTED
if (pipe == NULL)
200b110: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
200b114: 02 80 00 a9 be 200b3b8 <fifo_open+0x40c> <== NOT EXECUTED
200b118: a8 10 00 12 mov %l2, %l4 <== NOT EXECUTED
return err;
memset(pipe, 0, sizeof(pipe_control_t));
pipe->Size = PIPE_BUF;
200b11c: 82 10 22 00 mov 0x200, %g1 <== NOT EXECUTED
int err = -ENOMEM;
pipe = malloc(sizeof(pipe_control_t));
if (pipe == NULL)
return err;
memset(pipe, 0, sizeof(pipe_control_t));
200b120: c0 24 80 00 clr [ %l2 ] <== NOT EXECUTED
200b124: c0 24 a0 08 clr [ %l2 + 8 ] <== NOT EXECUTED
200b128: c0 24 a0 0c clr [ %l2 + 0xc ] <== NOT EXECUTED
200b12c: c0 24 a0 10 clr [ %l2 + 0x10 ] <== NOT EXECUTED
200b130: c0 24 a0 14 clr [ %l2 + 0x14 ] <== NOT EXECUTED
200b134: c0 24 a0 18 clr [ %l2 + 0x18 ] <== NOT EXECUTED
200b138: c0 24 a0 1c clr [ %l2 + 0x1c ] <== NOT EXECUTED
200b13c: c0 24 a0 20 clr [ %l2 + 0x20 ] <== NOT EXECUTED
200b140: c0 24 a0 24 clr [ %l2 + 0x24 ] <== NOT EXECUTED
200b144: c0 24 a0 28 clr [ %l2 + 0x28 ] <== NOT EXECUTED
200b148: c0 24 a0 2c clr [ %l2 + 0x2c ] <== NOT EXECUTED
200b14c: c0 24 a0 30 clr [ %l2 + 0x30 ] <== NOT EXECUTED
pipe->Size = PIPE_BUF;
200b150: c2 24 a0 04 st %g1, [ %l2 + 4 ] <== NOT EXECUTED
pipe->Buffer = malloc(pipe->Size);
200b154: 7f ff df ce call 200308c <malloc> <== NOT EXECUTED
200b158: 90 10 22 00 mov 0x200, %o0 <== NOT EXECUTED
if (! pipe->Buffer)
200b15c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200b160: 02 80 00 94 be 200b3b0 <fifo_open+0x404> <== NOT EXECUTED
200b164: d0 24 80 00 st %o0, [ %l2 ] <== NOT EXECUTED
goto err_buf;
err = -ENOMEM;
if (rtems_barrier_create(
200b168: 27 00 80 74 sethi %hi(0x201d000), %l3 <== NOT EXECUTED
200b16c: d0 4c e2 14 ldsb [ %l3 + 0x214 ], %o0 ! 201d214 <c.5581> <== NOT EXECUTED
200b170: 2b 14 12 5c sethi %hi(0x50497000), %l5 <== NOT EXECUTED
200b174: 82 15 62 00 or %l5, 0x200, %g1 ! 50497200 <RAM_END+0x4e097200><== NOT EXECUTED
200b178: 92 10 20 00 clr %o1 <== NOT EXECUTED
200b17c: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
200b180: 94 10 20 00 clr %o2 <== NOT EXECUTED
200b184: 40 00 07 d3 call 200d0d0 <rtems_barrier_create> <== NOT EXECUTED
200b188: 96 04 a0 2c add %l2, 0x2c, %o3 <== NOT EXECUTED
200b18c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200b190: 12 80 00 86 bne 200b3a8 <fifo_open+0x3fc> <== NOT EXECUTED
200b194: d0 4c e2 14 ldsb [ %l3 + 0x214 ], %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(
200b198: 03 14 12 5d sethi %hi(0x50497400), %g1 <== NOT EXECUTED
200b19c: 82 10 63 00 or %g1, 0x300, %g1 ! 50497700 <RAM_END+0x4e097700><== NOT EXECUTED
200b1a0: 92 10 20 00 clr %o1 <== NOT EXECUTED
200b1a4: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
200b1a8: 94 10 20 00 clr %o2 <== NOT EXECUTED
200b1ac: 40 00 07 c9 call 200d0d0 <rtems_barrier_create> <== NOT EXECUTED
200b1b0: 96 04 a0 30 add %l2, 0x30, %o3 <== NOT EXECUTED
200b1b4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200b1b8: 12 80 00 7a bne 200b3a0 <fifo_open+0x3f4> <== NOT EXECUTED
200b1bc: d0 4c e2 14 ldsb [ %l3 + 0x214 ], %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(
200b1c0: aa 15 63 00 or %l5, 0x300, %l5 <== NOT EXECUTED
200b1c4: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
200b1c8: 90 12 00 15 or %o0, %l5, %o0 <== NOT EXECUTED
200b1cc: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED
200b1d0: 96 10 20 00 clr %o3 <== NOT EXECUTED
200b1d4: 7f ff ed 1f call 2006650 <rtems_semaphore_create> <== NOT EXECUTED
200b1d8: 98 04 a0 28 add %l2, 0x28, %o4 <== NOT EXECUTED
200b1dc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200b1e0: 12 80 00 6e bne 200b398 <fifo_open+0x3ec> <== NOT EXECUTED
200b1e4: c2 0c e2 14 ldub [ %l3 + 0x214 ], %g1 <== NOT EXECUTED
#ifdef RTEMS_POSIX_API
pipe_interruptible(pipe);
#endif
*pipep = pipe;
if (c ++ == 'z')
200b1e8: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED
200b1ec: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED
200b1f0: 83 38 60 18 sra %g1, 0x18, %g1 <== NOT EXECUTED
200b1f4: 80 a0 60 7a cmp %g1, 0x7a <== NOT EXECUTED
200b1f8: 12 bf ff 7c bne 200afe8 <fifo_open+0x3c> <== NOT EXECUTED
200b1fc: c4 2c e2 14 stb %g2, [ %l3 + 0x214 ] <== NOT EXECUTED
c = 'a';
200b200: 82 10 20 61 mov 0x61, %g1 <== NOT EXECUTED
200b204: 10 bf ff 79 b 200afe8 <fifo_open+0x3c> <== NOT EXECUTED
200b208: c2 2c e2 14 stb %g1, [ %l3 + 0x214 ] <== NOT EXECUTED
}
break;
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
if (pipe->Readers ++ == 0)
200b20c: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
} while (prevCounter == pipe->readerCounter);
}
break;
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
200b210: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED
if (pipe->Readers ++ == 0)
200b214: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED
} while (prevCounter == pipe->readerCounter);
}
break;
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
200b218: 84 00 a0 01 inc %g2 <== NOT EXECUTED
if (pipe->Readers ++ == 0)
200b21c: c6 24 20 10 st %g3, [ %l0 + 0x10 ] <== NOT EXECUTED
200b220: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200b224: 02 80 00 54 be 200b374 <fifo_open+0x3c8> <== NOT EXECUTED
200b228: c4 24 20 20 st %g2, [ %l0 + 0x20 ] <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
pipe->writerCounter ++;
if (pipe->Writers ++ == 0)
200b22c: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
if (pipe->Readers ++ == 0)
PIPE_WAKEUPWRITERS(pipe);
pipe->writerCounter ++;
200b230: c4 04 20 24 ld [ %l0 + 0x24 ], %g2 <== NOT EXECUTED
if (pipe->Writers ++ == 0)
200b234: 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 ++;
200b238: 84 00 a0 01 inc %g2 <== NOT EXECUTED
if (pipe->Writers ++ == 0)
200b23c: c6 24 20 14 st %g3, [ %l0 + 0x14 ] <== NOT EXECUTED
200b240: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200b244: 12 bf ff 83 bne 200b050 <fifo_open+0xa4> <== NOT EXECUTED
200b248: c4 24 20 24 st %g2, [ %l0 + 0x24 ] <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
200b24c: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
200b250: 40 00 07 f2 call 200d218 <rtems_barrier_release> <== NOT EXECUTED
200b254: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
break;
}
PIPE_UNLOCK(pipe);
200b258: 10 bf ff 7f b 200b054 <fifo_open+0xa8> <== NOT EXECUTED
200b25c: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
break;
case LIBIO_FLAGS_WRITE:
pipe->writerCounter ++;
if (pipe->Writers ++ == 0)
200b260: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
} while (prevCounter == pipe->writerCounter);
}
break;
case LIBIO_FLAGS_WRITE:
pipe->writerCounter ++;
200b264: c4 04 20 24 ld [ %l0 + 0x24 ], %g2 <== NOT EXECUTED
if (pipe->Writers ++ == 0)
200b268: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED
} while (prevCounter == pipe->writerCounter);
}
break;
case LIBIO_FLAGS_WRITE:
pipe->writerCounter ++;
200b26c: 84 00 a0 01 inc %g2 <== NOT EXECUTED
if (pipe->Writers ++ == 0)
200b270: c6 24 20 14 st %g3, [ %l0 + 0x14 ] <== NOT EXECUTED
200b274: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200b278: 02 80 00 3a be 200b360 <fifo_open+0x3b4> <== NOT EXECUTED
200b27c: c4 24 20 24 st %g2, [ %l0 + 0x24 ] <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {
200b280: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
200b284: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200b288: 32 bf ff 73 bne,a 200b054 <fifo_open+0xa8> <== NOT EXECUTED
200b28c: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
200b290: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED
200b294: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
200b298: 32 80 00 3c bne,a 200b388 <fifo_open+0x3dc> <== NOT EXECUTED
200b29c: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
err = -ENXIO;
goto out_error;
}
if (pipe->Readers == 0) {
prevCounter = pipe->readerCounter;
200b2a0: 10 80 00 0c b 200b2d0 <fifo_open+0x324> <== NOT EXECUTED
200b2a4: e4 04 20 20 ld [ %l0 + 0x20 ], %l2 <== NOT EXECUTED
err = -EINTR;
do {
PIPE_UNLOCK(pipe);
if (! PIPE_WRITEWAIT(pipe))
goto out_error;
if (! PIPE_LOCK(pipe))
200b2a8: 92 10 20 00 clr %o1 <== NOT EXECUTED
200b2ac: 7f ff ed 8a call 20068d4 <rtems_semaphore_obtain> <== NOT EXECUTED
200b2b0: 94 10 20 00 clr %o2 <== NOT EXECUTED
200b2b4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200b2b8: 12 bf ff 8f bne 200b0f4 <fifo_open+0x148> <== NOT EXECUTED
200b2bc: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED
goto out_error;
} while (prevCounter == pipe->readerCounter);
200b2c0: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED
200b2c4: 80 a0 40 12 cmp %g1, %l2 <== NOT EXECUTED
200b2c8: 32 bf ff 63 bne,a 200b054 <fifo_open+0xa8> <== NOT EXECUTED
200b2cc: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
if (pipe->Readers == 0) {
prevCounter = pipe->readerCounter;
err = -EINTR;
do {
PIPE_UNLOCK(pipe);
200b2d0: 7f ff ed c8 call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
200b2d4: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
if (! PIPE_WRITEWAIT(pipe))
200b2d8: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED
200b2dc: 40 00 07 e6 call 200d274 <rtems_barrier_wait> <== NOT EXECUTED
200b2e0: 92 10 20 00 clr %o1 <== NOT EXECUTED
200b2e4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200b2e8: 22 bf ff f0 be,a 200b2a8 <fifo_open+0x2fc> <== NOT EXECUTED
200b2ec: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
break;
}
PIPE_UNLOCK(pipe);
return 0;
200b2f0: 10 bf ff 81 b 200b0f4 <fifo_open+0x148> <== NOT EXECUTED
200b2f4: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED
if (! PIPE_LOCK(pipe))
err = -EINTR;
if (*pipep == NULL) {
if (err)
200b2f8: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
200b2fc: 12 80 00 06 bne 200b314 <fifo_open+0x368> <== NOT EXECUTED
200b300: d0 04 20 5c ld [ %l0 + 0x5c ], %o0 <== NOT EXECUTED
else
*pipep = pipe;
}
out:
rtems_semaphore_release(rtems_pipe_semaphore);
200b304: 7f ff ed bb call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
200b308: e4 24 40 00 st %l2, [ %l1 ] <== NOT EXECUTED
err = pipe_new(pipep);
if (err)
return err;
pipe = *pipep;
switch (LIBIO_ACCMODE(iop)) {
200b30c: 10 bf ff 48 b 200b02c <fifo_open+0x80> <== NOT EXECUTED
200b310: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED
/* Called with rtems_pipe_semaphore held. */
static inline void pipe_free(
pipe_control_t *pipe
)
{
rtems_barrier_delete(pipe->readBarrier);
200b314: 40 00 07 a7 call 200d1b0 <rtems_barrier_delete> <== NOT EXECUTED
200b318: d0 04 a0 2c ld [ %l2 + 0x2c ], %o0 <== NOT EXECUTED
rtems_barrier_delete(pipe->writeBarrier);
200b31c: 40 00 07 a5 call 200d1b0 <rtems_barrier_delete> <== NOT EXECUTED
200b320: d0 04 a0 30 ld [ %l2 + 0x30 ], %o0 <== NOT EXECUTED
rtems_semaphore_delete(pipe->Semaphore);
200b324: 7f ff ed 3f call 2006820 <rtems_semaphore_delete> <== NOT EXECUTED
200b328: d0 04 a0 28 ld [ %l2 + 0x28 ], %o0 <== NOT EXECUTED
free(pipe->Buffer);
200b32c: 7f ff de 70 call 2002cec <free> <== NOT EXECUTED
200b330: d0 04 80 00 ld [ %l2 ], %o0 <== NOT EXECUTED
free(pipe);
200b334: 7f ff de 6e call 2002cec <free> <== NOT EXECUTED
200b338: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
else
*pipep = pipe;
}
out:
rtems_semaphore_release(rtems_pipe_semaphore);
200b33c: 7f ff ed ad call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
200b340: d0 04 20 5c ld [ %l0 + 0x5c ], %o0 <== NOT EXECUTED
200b344: 81 c7 e0 08 ret
200b348: 81 e8 00 00 restore
switch (LIBIO_ACCMODE(iop)) {
case LIBIO_FLAGS_READ:
pipe->readerCounter ++;
if (pipe->Readers ++ == 0)
PIPE_WAKEUPWRITERS(pipe);
200b34c: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED
200b350: 40 00 07 b2 call 200d218 <rtems_barrier_release> <== NOT EXECUTED
200b354: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
if (pipe->Writers == 0) {
200b358: 10 bf ff 4b b 200b084 <fifo_open+0xd8> <== NOT EXECUTED
200b35c: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
case LIBIO_FLAGS_WRITE:
pipe->writerCounter ++;
if (pipe->Writers ++ == 0)
PIPE_WAKEUPREADERS(pipe);
200b360: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
200b364: 40 00 07 ad call 200d218 <rtems_barrier_release> <== NOT EXECUTED
200b368: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {
200b36c: 10 bf ff c6 b 200b284 <fifo_open+0x2d8> <== NOT EXECUTED
200b370: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
break;
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
if (pipe->Readers ++ == 0)
PIPE_WAKEUPWRITERS(pipe);
200b374: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED
200b378: 40 00 07 a8 call 200d218 <rtems_barrier_release> <== NOT EXECUTED
200b37c: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
pipe->writerCounter ++;
if (pipe->Writers ++ == 0)
200b380: 10 bf ff ac b 200b230 <fifo_open+0x284> <== NOT EXECUTED
200b384: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
if (pipe->Writers ++ == 0)
PIPE_WAKEUPREADERS(pipe);
if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {
PIPE_UNLOCK(pipe);
200b388: 7f ff ed 9a call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
200b38c: b0 10 3f fa mov -6, %i0 <== NOT EXECUTED
err = -ENXIO;
goto out_error;
200b390: 10 bf ff 5a b 200b0f8 <fifo_open+0x14c> <== NOT EXECUTED
200b394: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
if (c ++ == 'z')
c = 'a';
return 0;
err_sem:
rtems_barrier_delete(pipe->writeBarrier);
200b398: 40 00 07 86 call 200d1b0 <rtems_barrier_delete> <== NOT EXECUTED
200b39c: d0 04 a0 30 ld [ %l2 + 0x30 ], %o0 <== NOT EXECUTED
err_wbar:
rtems_barrier_delete(pipe->readBarrier);
200b3a0: 40 00 07 84 call 200d1b0 <rtems_barrier_delete> <== NOT EXECUTED
200b3a4: d0 05 20 2c ld [ %l4 + 0x2c ], %o0 <== NOT EXECUTED
err_rbar:
free(pipe->Buffer);
200b3a8: 7f ff de 51 call 2002cec <free> <== NOT EXECUTED
200b3ac: d0 05 00 00 ld [ %l4 ], %o0 <== NOT EXECUTED
err_buf:
free(pipe);
200b3b0: 7f ff de 4f call 2002cec <free> <== NOT EXECUTED
200b3b4: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
200b3b8: 10 bf ff e1 b 200b33c <fifo_open+0x390> <== NOT EXECUTED
200b3bc: b0 10 3f f4 mov -12, %i0 <== NOT EXECUTED
02003a64 <fpathconf>:
long fpathconf(
int fd,
int name
)
{
2003a64: 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);
2003a68: 03 00 80 7c sethi %hi(0x201f000), %g1
2003a6c: c2 00 60 84 ld [ %g1 + 0x84 ], %g1 ! 201f084 <rtems_libio_number_iops>
2003a70: 80 a6 00 01 cmp %i0, %g1
2003a74: 1a 80 00 3d bcc 2003b68 <fpathconf+0x104>
2003a78: 03 00 80 7e sethi %hi(0x201f800), %g1
iop = rtems_libio_iop(fd);
2003a7c: c2 00 62 1c ld [ %g1 + 0x21c ], %g1 ! 201fa1c <rtems_libio_iops>
2003a80: 85 2e 20 06 sll %i0, 6, %g2
2003a84: b1 2e 20 03 sll %i0, 3, %i0
2003a88: b0 06 00 02 add %i0, %g2, %i0
2003a8c: b0 00 40 18 add %g1, %i0, %i0
rtems_libio_check_is_open(iop);
2003a90: c2 06 20 18 ld [ %i0 + 0x18 ], %g1
2003a94: 80 88 61 00 btst 0x100, %g1
2003a98: 02 80 00 34 be 2003b68 <fpathconf+0x104> <== NEVER TAKEN
2003a9c: 80 a6 60 0b cmp %i1, 0xb
* Now process the information request.
*/
the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options;
switch ( name ) {
2003aa0: 08 80 00 08 bleu 2003ac0 <fpathconf+0x5c>
2003aa4: c2 06 20 2c ld [ %i0 + 0x2c ], %g1
break;
case _PC_SYNC_IO:
return_value = the_limits->posix_sync_io;
break;
default:
rtems_set_errno_and_return_minus_one( EINVAL );
2003aa8: 40 00 37 ce call 20119e0 <__errno>
2003aac: b0 10 3f ff mov -1, %i0
2003ab0: 82 10 20 16 mov 0x16, %g1
2003ab4: c2 22 00 00 st %g1, [ %o0 ]
break;
}
return return_value;
}
2003ab8: 81 c7 e0 08 ret
2003abc: 81 e8 00 00 restore
* Now process the information request.
*/
the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options;
switch ( name ) {
2003ac0: b3 2e 60 02 sll %i1, 2, %i1
2003ac4: 05 00 80 0e sethi %hi(0x2003800), %g2
2003ac8: 84 10 a2 34 or %g2, 0x234, %g2 ! 2003a34 <fdatasync+0x98>
2003acc: c4 00 80 19 ld [ %g2 + %i1 ], %g2
2003ad0: 81 c0 80 00 jmp %g2
2003ad4: 01 00 00 00 nop
break;
case _PC_ASYNC_IO:
return_value = the_limits->posix_async_io;
break;
case _PC_PRIO_IO:
return_value = the_limits->posix_prio_io;
2003ad8: f0 00 60 5c ld [ %g1 + 0x5c ], %i0
break;
2003adc: 81 c7 e0 08 ret
2003ae0: 81 e8 00 00 restore
break;
case _PC_VDISABLE:
return_value = the_limits->posix_vdisable;
break;
case _PC_ASYNC_IO:
return_value = the_limits->posix_async_io;
2003ae4: f0 00 60 50 ld [ %g1 + 0x50 ], %i0
break;
2003ae8: 81 c7 e0 08 ret
2003aec: 81 e8 00 00 restore
break;
case _PC_NO_TRUNC:
return_value = the_limits->posix_no_trunc;
break;
case _PC_VDISABLE:
return_value = the_limits->posix_vdisable;
2003af0: f0 00 60 64 ld [ %g1 + 0x64 ], %i0
break;
2003af4: 81 c7 e0 08 ret
2003af8: 81 e8 00 00 restore
break;
case _PC_CHOWN_RESTRICTED:
return_value = the_limits->posix_chown_restrictions;
break;
case _PC_NO_TRUNC:
return_value = the_limits->posix_no_trunc;
2003afc: f0 00 60 58 ld [ %g1 + 0x58 ], %i0
break;
2003b00: 81 c7 e0 08 ret
2003b04: 81 e8 00 00 restore
break;
case _PC_PIPE_BUF:
return_value = the_limits->pipe_buf;
break;
case _PC_CHOWN_RESTRICTED:
return_value = the_limits->posix_chown_restrictions;
2003b08: f0 00 60 54 ld [ %g1 + 0x54 ], %i0
break;
2003b0c: 81 c7 e0 08 ret
2003b10: 81 e8 00 00 restore
break;
case _PC_PATH_MAX:
return_value = the_limits->path_max;
break;
case _PC_PIPE_BUF:
return_value = the_limits->pipe_buf;
2003b14: f0 00 60 4c ld [ %g1 + 0x4c ], %i0
break;
2003b18: 81 c7 e0 08 ret
2003b1c: 81 e8 00 00 restore
break;
case _PC_NAME_MAX:
return_value = the_limits->name_max;
break;
case _PC_PATH_MAX:
return_value = the_limits->path_max;
2003b20: f0 00 60 48 ld [ %g1 + 0x48 ], %i0
break;
2003b24: 81 c7 e0 08 ret
2003b28: 81 e8 00 00 restore
break;
case _PC_MAX_INPUT:
return_value = the_limits->max_input;
break;
case _PC_NAME_MAX:
return_value = the_limits->name_max;
2003b2c: f0 00 60 44 ld [ %g1 + 0x44 ], %i0
break;
2003b30: 81 c7 e0 08 ret
2003b34: 81 e8 00 00 restore
break;
case _PC_MAX_CANON:
return_value = the_limits->max_canon;
break;
case _PC_MAX_INPUT:
return_value = the_limits->max_input;
2003b38: f0 00 60 40 ld [ %g1 + 0x40 ], %i0
break;
2003b3c: 81 c7 e0 08 ret
2003b40: 81 e8 00 00 restore
switch ( name ) {
case _PC_LINK_MAX:
return_value = the_limits->link_max;
break;
case _PC_MAX_CANON:
return_value = the_limits->max_canon;
2003b44: f0 00 60 3c ld [ %g1 + 0x3c ], %i0
break;
2003b48: 81 c7 e0 08 ret
2003b4c: 81 e8 00 00 restore
the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options;
switch ( name ) {
case _PC_LINK_MAX:
return_value = the_limits->link_max;
2003b50: f0 00 60 38 ld [ %g1 + 0x38 ], %i0
break;
2003b54: 81 c7 e0 08 ret
2003b58: 81 e8 00 00 restore
break;
case _PC_PRIO_IO:
return_value = the_limits->posix_prio_io;
break;
case _PC_SYNC_IO:
return_value = the_limits->posix_sync_io;
2003b5c: f0 00 60 60 ld [ %g1 + 0x60 ], %i0
break;
2003b60: 81 c7 e0 08 ret
2003b64: 81 e8 00 00 restore
rtems_libio_t *iop;
rtems_filesystem_limits_and_options_t *the_limits;
rtems_libio_check_fd(fd);
iop = rtems_libio_iop(fd);
rtems_libio_check_is_open(iop);
2003b68: 40 00 37 9e call 20119e0 <__errno>
2003b6c: b0 10 3f ff mov -1, %i0
2003b70: 82 10 20 09 mov 9, %g1
2003b74: c2 22 00 00 st %g1, [ %o0 ]
2003b78: 81 c7 e0 08 ret
2003b7c: 81 e8 00 00 restore
02002cec <free>:
void free(
void *ptr
)
{
MSBUMP(free_calls, 1);
2002cec: 9d e3 bf a0 save %sp, -96, %sp
2002cf0: 03 00 80 76 sethi %hi(0x201d800), %g1
2002cf4: 82 10 61 f0 or %g1, 0x1f0, %g1 ! 201d9f0 <rtems_malloc_statistics>
2002cf8: c4 00 60 0c ld [ %g1 + 0xc ], %g2
2002cfc: b2 10 00 18 mov %i0, %i1
2002d00: 84 00 a0 01 inc %g2
if ( !ptr )
2002d04: 80 a6 20 00 cmp %i0, 0
2002d08: 02 80 00 15 be 2002d5c <free+0x70>
2002d0c: 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()) &&
2002d10: 03 00 80 77 sethi %hi(0x201dc00), %g1
2002d14: c2 00 61 50 ld [ %g1 + 0x150 ], %g1 ! 201dd50 <_System_state_Current>
2002d18: 80 a0 60 03 cmp %g1, 3
2002d1c: 02 80 00 17 be 2002d78 <free+0x8c> <== ALWAYS TAKEN
2002d20: 03 00 80 75 sethi %hi(0x201d400), %g1
#endif
/*
* If configured, update the statistics
*/
if ( rtems_malloc_statistics_helpers )
2002d24: c2 00 63 38 ld [ %g1 + 0x338 ], %g1 ! 201d738 <rtems_malloc_statistics_helpers>
2002d28: 80 a0 60 00 cmp %g1, 0
2002d2c: 02 80 00 06 be 2002d44 <free+0x58> <== ALWAYS TAKEN
2002d30: 21 00 80 74 sethi %hi(0x201d000), %l0
(*rtems_malloc_statistics_helpers->at_free)(ptr);
2002d34: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED
2002d38: 9f c0 40 00 call %g1 <== NOT EXECUTED
2002d3c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) {
2002d40: 21 00 80 74 sethi %hi(0x201d000), %l0 <== NOT EXECUTED
2002d44: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 ! 201d050 <RTEMS_Malloc_Heap>
2002d48: 40 00 16 29 call 20085ec <_Protected_heap_Free>
2002d4c: 92 10 00 19 mov %i1, %o1
2002d50: 80 8a 20 ff btst 0xff, %o0
2002d54: 02 80 00 04 be 2002d64 <free+0x78> <== NEVER TAKEN
2002d58: c2 04 20 50 ld [ %l0 + 0x50 ], %g1
2002d5c: 81 c7 e0 08 ret
2002d60: 81 e8 00 00 restore
printk( "Program heap: free of bad pointer %p -- range %p - %p \n",
2002d64: 31 00 80 6f sethi %hi(0x201bc00), %i0 <== NOT EXECUTED
2002d68: f6 00 60 1c ld [ %g1 + 0x1c ], %i3 <== NOT EXECUTED
2002d6c: f4 00 60 18 ld [ %g1 + 0x18 ], %i2 <== NOT EXECUTED
2002d70: 40 00 03 f2 call 2003d38 <printk> <== NOT EXECUTED
2002d74: 91 ee 23 78 restore %i0, 0x378, %o0 <== NOT EXECUTED
/*
* Do not attempt to free memory if in a critical section or ISR.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
2002d78: 40 00 00 62 call 2002f00 <malloc_is_system_state_OK>
2002d7c: 01 00 00 00 nop
2002d80: 80 8a 20 ff btst 0xff, %o0
2002d84: 12 bf ff e8 bne 2002d24 <free+0x38> <== ALWAYS TAKEN
2002d88: 03 00 80 75 sethi %hi(0x201d400), %g1
!malloc_is_system_state_OK() ) {
malloc_deferred_free(ptr);
2002d8c: 40 00 00 6f call 2002f48 <malloc_deferred_free> <== NOT EXECUTED
2002d90: 81 e8 00 00 restore <== NOT EXECUTED
0202dcc4 <free_user_env>:
* NOTE: this must be called with
* thread dispatching disabled!
*/
static void
free_user_env(void *venv)
{
202dcc4: 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
202dcc8: 03 00 81 cc sethi %hi(0x2073000), %g1 <== NOT EXECUTED
202dccc: 82 10 61 2c or %g1, 0x12c, %g1 ! 207312c <rtems_global_user_env><== NOT EXECUTED
202dcd0: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED
202dcd4: 02 80 00 18 be 202dd34 <free_user_env+0x70> <== NOT EXECUTED
202dcd8: 01 00 00 00 nop <== NOT EXECUTED
#ifdef HAVE_USERENV_REFCNT
&& --env->refcnt <= 0
#endif
) {
rtems_filesystem_freenode( &env->current_directory);
202dcdc: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
202dce0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202dce4: 22 80 00 09 be,a 202dd08 <free_user_env+0x44> <== NOT EXECUTED
202dce8: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED
202dcec: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
202dcf0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202dcf4: 22 80 00 05 be,a 202dd08 <free_user_env+0x44> <== NOT EXECUTED
202dcf8: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED
202dcfc: 9f c0 40 00 call %g1 <== NOT EXECUTED
202dd00: 90 06 20 04 add %i0, 4, %o0 <== NOT EXECUTED
rtems_filesystem_freenode( &env->root_directory);
202dd04: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED
202dd08: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202dd0c: 02 80 00 08 be 202dd2c <free_user_env+0x68> <== NOT EXECUTED
202dd10: 01 00 00 00 nop <== NOT EXECUTED
202dd14: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
202dd18: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202dd1c: 02 80 00 04 be 202dd2c <free_user_env+0x68> <== NOT EXECUTED
202dd20: 01 00 00 00 nop <== NOT EXECUTED
202dd24: 9f c0 40 00 call %g1 <== NOT EXECUTED
202dd28: 90 06 20 18 add %i0, 0x18, %o0 <== NOT EXECUTED
free(env);
202dd2c: 7f ff 6a ec call 20088dc <free> <== NOT EXECUTED
202dd30: 81 e8 00 00 restore <== NOT EXECUTED
202dd34: 81 c7 e0 08 ret <== NOT EXECUTED
202dd38: 81 e8 00 00 restore <== NOT EXECUTED
0201adf4 <fstat>:
int fstat(
int fd,
struct stat *sbuf
)
{
201adf4: 9d e3 bf a0 save %sp, -96, %sp
/*
* Check to see if we were passed a valid pointer.
*/
if ( !sbuf )
201adf8: 80 a6 60 00 cmp %i1, 0
201adfc: 02 80 00 3b be 201aee8 <fstat+0xf4>
201ae00: 03 00 80 74 sethi %hi(0x201d000), %g1
/*
* Now process the stat() request.
*/
iop = rtems_libio_iop( fd );
201ae04: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 ! 201d044 <rtems_libio_number_iops>
201ae08: 80 a6 00 01 cmp %i0, %g1
201ae0c: 1a 80 00 2b bcc 201aeb8 <fstat+0xc4>
201ae10: 03 00 80 76 sethi %hi(0x201d800), %g1
201ae14: d0 00 61 d8 ld [ %g1 + 0x1d8 ], %o0 ! 201d9d8 <rtems_libio_iops>
201ae18: 83 2e 20 06 sll %i0, 6, %g1
201ae1c: b1 2e 20 03 sll %i0, 3, %i0
201ae20: b0 06 00 01 add %i0, %g1, %i0
201ae24: 90 02 00 18 add %o0, %i0, %o0
rtems_libio_check_fd( fd );
rtems_libio_check_is_open(iop);
201ae28: c2 02 20 18 ld [ %o0 + 0x18 ], %g1
201ae2c: 80 88 61 00 btst 0x100, %g1
201ae30: 02 80 00 22 be 201aeb8 <fstat+0xc4> <== NEVER TAKEN
201ae34: 01 00 00 00 nop
if ( !iop->handlers )
201ae38: c2 02 20 40 ld [ %o0 + 0x40 ], %g1
201ae3c: 80 a0 60 00 cmp %g1, 0
201ae40: 02 80 00 1e be 201aeb8 <fstat+0xc4> <== NEVER TAKEN
201ae44: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EBADF );
if ( !iop->handlers->fstat_h )
201ae48: c2 00 60 18 ld [ %g1 + 0x18 ], %g1
201ae4c: 80 a0 60 00 cmp %g1, 0
201ae50: 02 80 00 20 be 201aed0 <fstat+0xdc> <== NEVER TAKEN
201ae54: 92 10 00 19 mov %i1, %o1
/*
* Zero out the stat structure so the various support
* versions of stat don't have to.
*/
memset( sbuf, 0, sizeof(struct stat) );
201ae58: c0 26 40 00 clr [ %i1 ]
201ae5c: c0 26 60 04 clr [ %i1 + 4 ]
201ae60: c0 26 60 08 clr [ %i1 + 8 ]
201ae64: c0 26 60 0c clr [ %i1 + 0xc ]
201ae68: c0 26 60 10 clr [ %i1 + 0x10 ]
201ae6c: c0 26 60 14 clr [ %i1 + 0x14 ]
201ae70: c0 26 60 18 clr [ %i1 + 0x18 ]
201ae74: c0 26 60 1c clr [ %i1 + 0x1c ]
201ae78: c0 26 60 20 clr [ %i1 + 0x20 ]
201ae7c: c0 26 60 24 clr [ %i1 + 0x24 ]
201ae80: c0 26 60 28 clr [ %i1 + 0x28 ]
201ae84: c0 26 60 2c clr [ %i1 + 0x2c ]
201ae88: c0 26 60 30 clr [ %i1 + 0x30 ]
201ae8c: c0 26 60 34 clr [ %i1 + 0x34 ]
201ae90: c0 26 60 38 clr [ %i1 + 0x38 ]
201ae94: c0 26 60 3c clr [ %i1 + 0x3c ]
201ae98: c0 26 60 40 clr [ %i1 + 0x40 ]
201ae9c: c0 26 60 44 clr [ %i1 + 0x44 ]
return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf );
201aea0: c2 02 20 40 ld [ %o0 + 0x40 ], %g1
201aea4: c2 00 60 18 ld [ %g1 + 0x18 ], %g1
201aea8: 9f c0 40 00 call %g1
201aeac: 90 02 20 1c add %o0, 0x1c, %o0
}
201aeb0: 81 c7 e0 08 ret
201aeb4: 91 e8 00 08 restore %g0, %o0, %o0
iop = rtems_libio_iop( fd );
rtems_libio_check_fd( fd );
rtems_libio_check_is_open(iop);
if ( !iop->handlers )
rtems_set_errno_and_return_minus_one( EBADF );
201aeb8: 7f ff d5 66 call 2010450 <__errno>
201aebc: b0 10 3f ff mov -1, %i0
201aec0: 82 10 20 09 mov 9, %g1
201aec4: c2 22 00 00 st %g1, [ %o0 ]
201aec8: 81 c7 e0 08 ret
201aecc: 81 e8 00 00 restore
if ( !iop->handlers->fstat_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
201aed0: 7f ff d5 60 call 2010450 <__errno> <== NOT EXECUTED
201aed4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
201aed8: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
201aedc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
201aee0: 81 c7 e0 08 ret <== NOT EXECUTED
201aee4: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Check to see if we were passed a valid pointer.
*/
if ( !sbuf )
rtems_set_errno_and_return_minus_one( EFAULT );
201aee8: 7f ff d5 5a call 2010450 <__errno>
201aeec: b0 10 3f ff mov -1, %i0
201aef0: 82 10 20 0e mov 0xe, %g1
201aef4: c2 22 00 00 st %g1, [ %o0 ]
201aef8: 81 c7 e0 08 ret
201aefc: 81 e8 00 00 restore
0202c6ec <fsync>:
#include <rtems/seterr.h>
int fsync(
int fd
)
{
202c6ec: 9d e3 bf a0 save %sp, -96, %sp
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
202c6f0: 03 00 81 bb sethi %hi(0x206ec00), %g1
202c6f4: c2 00 62 f4 ld [ %g1 + 0x2f4 ], %g1 ! 206eef4 <rtems_libio_number_iops>
202c6f8: 80 a6 00 01 cmp %i0, %g1
202c6fc: 1a 80 00 17 bcc 202c758 <fsync+0x6c> <== NEVER TAKEN
202c700: 03 00 81 cc sethi %hi(0x2073000), %g1
iop = rtems_libio_iop( fd );
202c704: d0 00 60 d4 ld [ %g1 + 0xd4 ], %o0 ! 20730d4 <rtems_libio_iops>
202c708: 83 2e 20 06 sll %i0, 6, %g1
202c70c: b1 2e 20 03 sll %i0, 3, %i0
202c710: b0 06 00 01 add %i0, %g1, %i0
202c714: 90 02 00 18 add %o0, %i0, %o0
rtems_libio_check_is_open(iop);
202c718: c2 02 20 18 ld [ %o0 + 0x18 ], %g1
202c71c: 80 88 61 00 btst 0x100, %g1
202c720: 02 80 00 0e be 202c758 <fsync+0x6c> <== NEVER TAKEN
202c724: 01 00 00 00 nop
/*
* Now process the fsync().
*/
if ( !iop->handlers )
202c728: c2 02 20 40 ld [ %o0 + 0x40 ], %g1
202c72c: 80 a0 60 00 cmp %g1, 0
202c730: 02 80 00 0a be 202c758 <fsync+0x6c> <== NEVER TAKEN
202c734: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EBADF );
if ( !iop->handlers->fsync_h )
202c738: c2 00 60 28 ld [ %g1 + 0x28 ], %g1
202c73c: 80 a0 60 00 cmp %g1, 0
202c740: 02 80 00 0c be 202c770 <fsync+0x84>
202c744: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->handlers->fsync_h)( iop );
202c748: 9f c0 40 00 call %g1
202c74c: 01 00 00 00 nop
}
202c750: 81 c7 e0 08 ret
202c754: 91 e8 00 08 restore %g0, %o0, %o0
/*
* Now process the fsync().
*/
if ( !iop->handlers )
rtems_set_errno_and_return_minus_one( EBADF );
202c758: 40 00 71 3b call 2048c44 <__errno> <== NOT EXECUTED
202c75c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202c760: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED
202c764: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202c768: 81 c7 e0 08 ret <== NOT EXECUTED
202c76c: 81 e8 00 00 restore <== NOT EXECUTED
if ( !iop->handlers->fsync_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
202c770: 40 00 71 35 call 2048c44 <__errno>
202c774: b0 10 3f ff mov -1, %i0
202c778: 82 10 20 86 mov 0x86, %g1
202c77c: c2 22 00 00 st %g1, [ %o0 ]
202c780: 81 c7 e0 08 ret
202c784: 81 e8 00 00 restore
0200c7f0 <ftruncate>:
int ftruncate(
int fd,
off_t length
)
{
200c7f0: 9d e3 bf 88 save %sp, -120, %sp
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc;
rtems_libio_check_fd( fd );
200c7f4: 03 00 80 74 sethi %hi(0x201d000), %g1
200c7f8: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 ! 201d044 <rtems_libio_number_iops>
200c7fc: 80 a6 00 01 cmp %i0, %g1
200c800: 1a 80 00 2d bcc 200c8b4 <ftruncate+0xc4> <== NEVER TAKEN
200c804: 03 00 80 76 sethi %hi(0x201d800), %g1
iop = rtems_libio_iop( fd );
200c808: c2 00 61 d8 ld [ %g1 + 0x1d8 ], %g1 ! 201d9d8 <rtems_libio_iops>
200c80c: 85 2e 20 06 sll %i0, 6, %g2
200c810: b1 2e 20 03 sll %i0, 3, %i0
200c814: b0 06 00 02 add %i0, %g2, %i0
200c818: b0 00 40 18 add %g1, %i0, %i0
rtems_libio_check_is_open(iop);
200c81c: c2 06 20 18 ld [ %i0 + 0x18 ], %g1
200c820: 80 88 61 00 btst 0x100, %g1
200c824: 02 80 00 24 be 200c8b4 <ftruncate+0xc4> <== NEVER TAKEN
200c828: 80 88 60 04 btst 4, %g1
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
200c82c: 02 80 00 28 be 200c8cc <ftruncate+0xdc> <== NEVER TAKEN
200c830: 01 00 00 00 nop
/*
* Make sure we are not working on a directory
*/
loc = iop->pathinfo;
200c834: c2 06 20 1c ld [ %i0 + 0x1c ], %g1
200c838: c2 27 bf ec st %g1, [ %fp + -20 ]
200c83c: c2 06 20 20 ld [ %i0 + 0x20 ], %g1
200c840: c2 27 bf f0 st %g1, [ %fp + -16 ]
200c844: c2 06 20 24 ld [ %i0 + 0x24 ], %g1
200c848: c2 27 bf f4 st %g1, [ %fp + -12 ]
200c84c: c2 06 20 28 ld [ %i0 + 0x28 ], %g1
200c850: c2 27 bf f8 st %g1, [ %fp + -8 ]
200c854: c4 06 20 2c ld [ %i0 + 0x2c ], %g2
if ( !loc.ops->node_type_h )
200c858: c2 00 60 10 ld [ %g1 + 0x10 ], %g1
200c85c: 80 a0 60 00 cmp %g1, 0
200c860: 02 80 00 21 be 200c8e4 <ftruncate+0xf4> <== NEVER TAKEN
200c864: c4 27 bf fc st %g2, [ %fp + -4 ]
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY )
200c868: 9f c0 40 00 call %g1
200c86c: 90 07 bf ec add %fp, -20, %o0
200c870: 80 a2 20 01 cmp %o0, 1
200c874: 02 80 00 22 be 200c8fc <ftruncate+0x10c>
200c878: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EISDIR );
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
200c87c: c2 06 20 18 ld [ %i0 + 0x18 ], %g1
200c880: 80 88 60 04 btst 4, %g1
200c884: 02 80 00 12 be 200c8cc <ftruncate+0xdc> <== NEVER TAKEN
200c888: 01 00 00 00 nop
if ( !iop->handlers->ftruncate_h )
200c88c: c2 06 20 40 ld [ %i0 + 0x40 ], %g1
200c890: c2 00 60 20 ld [ %g1 + 0x20 ], %g1
200c894: 80 a0 60 00 cmp %g1, 0
200c898: 02 80 00 13 be 200c8e4 <ftruncate+0xf4> <== NEVER TAKEN
200c89c: 90 10 00 18 mov %i0, %o0
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->handlers->ftruncate_h)( iop, length );
200c8a0: 92 10 00 19 mov %i1, %o1
200c8a4: 9f c0 40 00 call %g1
200c8a8: 94 10 00 1a mov %i2, %o2
}
200c8ac: 81 c7 e0 08 ret
200c8b0: 91 e8 00 08 restore %g0, %o0, %o0
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
200c8b4: 40 00 0e e7 call 2010450 <__errno> <== NOT EXECUTED
200c8b8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200c8bc: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED
200c8c0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200c8c4: 81 c7 e0 08 ret <== NOT EXECUTED
200c8c8: 81 e8 00 00 restore <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY )
rtems_set_errno_and_return_minus_one( EISDIR );
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
200c8cc: 40 00 0e e1 call 2010450 <__errno> <== NOT EXECUTED
200c8d0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200c8d4: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
200c8d8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200c8dc: 81 c7 e0 08 ret <== NOT EXECUTED
200c8e0: 81 e8 00 00 restore <== NOT EXECUTED
if ( !iop->handlers->ftruncate_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
200c8e4: 40 00 0e db call 2010450 <__errno> <== NOT EXECUTED
200c8e8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200c8ec: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
200c8f0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200c8f4: 81 c7 e0 08 ret <== NOT EXECUTED
200c8f8: 81 e8 00 00 restore <== NOT EXECUTED
loc = iop->pathinfo;
if ( !loc.ops->node_type_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY )
rtems_set_errno_and_return_minus_one( EISDIR );
200c8fc: 40 00 0e d5 call 2010450 <__errno>
200c900: b0 10 3f ff mov -1, %i0
200c904: 82 10 20 15 mov 0x15, %g1
200c908: c2 22 00 00 st %g1, [ %o0 ]
200c90c: 81 c7 e0 08 ret
200c910: 81 e8 00 00 restore
020028a0 <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) {
20028a0: 03 00 80 85 sethi %hi(0x2021400), %g1
20028a4: c2 00 62 a0 ld [ %g1 + 0x2a0 ], %g1 ! 20216a0 <disktab_size>
20028a8: 80 a0 40 08 cmp %g1, %o0
20028ac: 18 80 00 05 bgu 20028c0 <get_disk_entry+0x20> <== ALWAYS TAKEN
20028b0: 03 00 80 85 sethi %hi(0x2021400), %g1
if (minor < dtab->size && dtab->minor != NULL) {
rtems_disk_device *dd = dtab->minor [minor];
if (dd != NULL && !lookup_only) {
if (!dd->deleted) {
++dd->uses;
20028b4: 90 10 20 00 clr %o0 <== NOT EXECUTED
return dd;
}
}
return NULL;
}
20028b8: 81 c3 e0 08 retl
20028bc: 01 00 00 00 nop
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) {
20028c0: c2 00 62 9c ld [ %g1 + 0x29c ], %g1
20028c4: 80 a0 60 00 cmp %g1, 0
20028c8: 22 bf ff fc be,a 20028b8 <get_disk_entry+0x18> <== NEVER TAKEN
20028cc: 90 10 20 00 clr %o0 <== NOT EXECUTED
rtems_disk_device_table *dtab = disktab + major;
20028d0: 91 2a 20 03 sll %o0, 3, %o0
20028d4: 84 00 40 08 add %g1, %o0, %g2
if (minor < dtab->size && dtab->minor != NULL) {
20028d8: c4 00 a0 04 ld [ %g2 + 4 ], %g2
20028dc: 80 a0 80 09 cmp %g2, %o1
20028e0: 28 bf ff f6 bleu,a 20028b8 <get_disk_entry+0x18> <== NEVER TAKEN
20028e4: 90 10 20 00 clr %o0 <== NOT EXECUTED
20028e8: c2 00 40 08 ld [ %g1 + %o0 ], %g1
20028ec: 80 a0 60 00 cmp %g1, 0
20028f0: 02 bf ff f2 be 20028b8 <get_disk_entry+0x18> <== NEVER TAKEN
20028f4: 90 10 20 00 clr %o0
rtems_disk_device *dd = dtab->minor [minor];
20028f8: 93 2a 60 02 sll %o1, 2, %o1
20028fc: d0 00 40 09 ld [ %g1 + %o1 ], %o0
if (dd != NULL && !lookup_only) {
2002900: 80 a2 20 00 cmp %o0, 0
2002904: 02 bf ff ed be 20028b8 <get_disk_entry+0x18>
2002908: 80 8a a0 ff btst 0xff, %o2
200290c: 12 bf ff eb bne 20028b8 <get_disk_entry+0x18>
2002910: 01 00 00 00 nop
if (!dd->deleted) {
2002914: c2 0a 20 30 ldub [ %o0 + 0x30 ], %g1
2002918: 80 a0 60 00 cmp %g1, 0
200291c: 32 bf ff e7 bne,a 20028b8 <get_disk_entry+0x18>
2002920: 90 10 20 00 clr %o0
++dd->uses;
2002924: c2 02 20 14 ld [ %o0 + 0x14 ], %g1
2002928: 82 00 60 01 inc %g1
200292c: 81 c3 e0 08 retl
2002930: c2 22 20 14 st %g1, [ %o0 + 0x14 ]
020626e8 <getdents>:
int getdents(
int dd_fd,
char *dd_buf,
int dd_len
)
{
20626e8: 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 );
20626ec: 03 00 81 bb sethi %hi(0x206ec00), %g1
20626f0: c2 00 62 f4 ld [ %g1 + 0x2f4 ], %g1 ! 206eef4 <rtems_libio_number_iops>
20626f4: 80 a6 00 01 cmp %i0, %g1
20626f8: 1a 80 00 08 bcc 2062718 <getdents+0x30> <== NEVER TAKEN
20626fc: a0 10 20 00 clr %l0
2062700: 03 00 81 cc sethi %hi(0x2073000), %g1
2062704: e0 00 60 d4 ld [ %g1 + 0xd4 ], %l0 ! 20730d4 <rtems_libio_iops>
2062708: 83 2e 20 06 sll %i0, 6, %g1
206270c: b1 2e 20 03 sll %i0, 3, %i0
2062710: b0 06 00 01 add %i0, %g1, %i0
2062714: a0 04 00 18 add %l0, %i0, %l0
/*
* Make sure we are working on a directory
*/
loc = iop->pathinfo;
2062718: c2 04 20 1c ld [ %l0 + 0x1c ], %g1
206271c: c2 27 bf ec st %g1, [ %fp + -20 ]
2062720: c2 04 20 20 ld [ %l0 + 0x20 ], %g1
2062724: c2 27 bf f0 st %g1, [ %fp + -16 ]
2062728: c2 04 20 24 ld [ %l0 + 0x24 ], %g1
206272c: c2 27 bf f4 st %g1, [ %fp + -12 ]
2062730: c2 04 20 28 ld [ %l0 + 0x28 ], %g1
2062734: c2 27 bf f8 st %g1, [ %fp + -8 ]
2062738: c4 04 20 2c ld [ %l0 + 0x2c ], %g2
if ( !loc.ops->node_type_h )
206273c: c2 00 60 10 ld [ %g1 + 0x10 ], %g1
2062740: 80 a0 60 00 cmp %g1, 0
2062744: 02 80 00 17 be 20627a0 <getdents+0xb8> <== NEVER TAKEN
2062748: c4 27 bf fc st %g2, [ %fp + -4 ]
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
206274c: 9f c0 40 00 call %g1
2062750: 90 07 bf ec add %fp, -20, %o0
2062754: 80 a2 20 01 cmp %o0, 1
2062758: 12 80 00 0c bne 2062788 <getdents+0xa0>
206275c: 01 00 00 00 nop
/*
* Return the number of bytes that were actually transfered as a result
* of the read attempt.
*/
if ( !iop->handlers->read_h )
2062760: c2 04 20 40 ld [ %l0 + 0x40 ], %g1
2062764: c2 00 60 08 ld [ %g1 + 8 ], %g1
2062768: 80 a0 60 00 cmp %g1, 0
206276c: 02 80 00 0d be 20627a0 <getdents+0xb8> <== NEVER TAKEN
2062770: 90 10 00 10 mov %l0, %o0
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->handlers->read_h)( iop, dd_buf, dd_len );
2062774: 92 10 00 19 mov %i1, %o1
2062778: 9f c0 40 00 call %g1
206277c: 94 10 00 1a mov %i2, %o2
}
2062780: 81 c7 e0 08 ret
2062784: 91 e8 00 08 restore %g0, %o0, %o0
loc = iop->pathinfo;
if ( !loc.ops->node_type_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
rtems_set_errno_and_return_minus_one( ENOTDIR );
2062788: 7f ff 99 2f call 2048c44 <__errno>
206278c: b0 10 3f ff mov -1, %i0
2062790: 82 10 20 14 mov 0x14, %g1
2062794: c2 22 00 00 st %g1, [ %o0 ]
2062798: 81 c7 e0 08 ret
206279c: 81 e8 00 00 restore
* Return the number of bytes that were actually transfered as a result
* of the read attempt.
*/
if ( !iop->handlers->read_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
20627a0: 7f ff 99 29 call 2048c44 <__errno> <== NOT EXECUTED
20627a4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20627a8: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
20627ac: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20627b0: 81 c7 e0 08 ret <== NOT EXECUTED
20627b4: 81 e8 00 00 restore <== NOT EXECUTED
0202c8cc <getgid>:
* 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
* P1003.1b-1993, p. 84
*/
gid_t getgid( void )
{
202c8cc: 03 00 81 bc sethi %hi(0x206f000), %g1 <== NOT EXECUTED
202c8d0: c2 00 63 24 ld [ %g1 + 0x324 ], %g1 ! 206f324 <rtems_current_user_env><== NOT EXECUTED
return _POSIX_types_Gid;
}
202c8d4: 81 c3 e0 08 retl <== NOT EXECUTED
202c8d8: d0 10 60 34 lduh [ %g1 + 0x34 ], %o0 <== NOT EXECUTED
0202cfb8 <getgr_r>:
struct group *grp,
char *buffer,
size_t bufsize,
struct group **result
)
{
202cfb8: 9d e3 bf a0 save %sp, -96, %sp
FILE *fp;
int match;
init_etc_passwd_group();
202cfbc: 7f ff ff b3 call 202ce88 <init_etc_passwd_group>
202cfc0: 01 00 00 00 nop
if ((fp = fopen("/etc/group", "r")) == NULL) {
202cfc4: 11 00 81 a5 sethi %hi(0x2069400), %o0
202cfc8: 13 00 81 a5 sethi %hi(0x2069400), %o1
202cfcc: 90 12 22 10 or %o0, 0x210, %o0
202cfd0: 40 00 71 c5 call 20496e4 <fopen>
202cfd4: 92 12 61 98 or %o1, 0x198, %o1
202cfd8: a0 92 20 00 orcc %o0, 0, %l0
202cfdc: 12 80 00 0b bne 202d008 <getgr_r+0x50> <== ALWAYS TAKEN
202cfe0: 92 10 00 1a mov %i2, %o1
202cfe4: 30 80 00 27 b,a 202d080 <getgr_r+0xc8> <== NOT EXECUTED
errno = EINVAL;
fclose(fp);
return -1;
}
if (name) {
match = (strcmp(grp->gr_name, name) == 0);
202cfe8: 40 00 88 be call 204f2e0 <strcmp>
202cfec: 92 10 00 18 mov %i0, %o1
202cff0: 80 a0 00 08 cmp %g0, %o0
202cff4: 82 60 3f ff subx %g0, -1, %g1
}
else {
match = (grp->gr_gid == gid);
}
if (match) {
202cff8: 80 a0 60 00 cmp %g1, 0
202cffc: 12 80 00 14 bne 202d04c <getgr_r+0x94>
202d000: 90 10 00 10 mov %l0, %o0
if ((fp = fopen("/etc/group", "r")) == NULL) {
errno = EINVAL;
return -1;
}
for(;;) {
if (!scangr(fp, grp, buffer, bufsize)) {
202d004: 92 10 00 1a mov %i2, %o1
202d008: 94 10 00 1b mov %i3, %o2
202d00c: 96 10 00 1c mov %i4, %o3
202d010: 7f ff fe d1 call 202cb54 <scangr>
202d014: 90 10 00 10 mov %l0, %o0
202d018: 80 a2 20 00 cmp %o0, 0
202d01c: 02 80 00 11 be 202d060 <getgr_r+0xa8> <== NEVER TAKEN
202d020: 80 a6 20 00 cmp %i0, 0
errno = EINVAL;
fclose(fp);
return -1;
}
if (name) {
202d024: 32 bf ff f1 bne,a 202cfe8 <getgr_r+0x30> <== ALWAYS TAKEN
202d028: d0 06 80 00 ld [ %i2 ], %o0
match = (strcmp(grp->gr_name, name) == 0);
}
else {
match = (grp->gr_gid == gid);
202d02c: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED
202d030: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED
202d034: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
202d038: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED
}
if (match) {
202d03c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202d040: 02 bf ff f2 be 202d008 <getgr_r+0x50> <== NOT EXECUTED
202d044: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
fclose(fp);
202d048: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202d04c: 40 00 6f 56 call 2048da4 <fclose>
202d050: b0 10 20 00 clr %i0
*result = grp;
202d054: f4 27 40 00 st %i2, [ %i5 ]
}
}
fclose(fp);
errno = EINVAL;
return -1;
}
202d058: 81 c7 e0 08 ret
202d05c: 81 e8 00 00 restore
errno = EINVAL;
return -1;
}
for(;;) {
if (!scangr(fp, grp, buffer, bufsize)) {
errno = EINVAL;
202d060: 40 00 6e f9 call 2048c44 <__errno> <== NOT EXECUTED
202d064: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202d068: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
202d06c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
fclose(fp);
202d070: 40 00 6f 4d call 2048da4 <fclose> <== NOT EXECUTED
202d074: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return -1;
202d078: 81 c7 e0 08 ret <== NOT EXECUTED
202d07c: 81 e8 00 00 restore <== NOT EXECUTED
int match;
init_etc_passwd_group();
if ((fp = fopen("/etc/group", "r")) == NULL) {
errno = EINVAL;
202d080: 40 00 6e f1 call 2048c44 <__errno> <== NOT EXECUTED
202d084: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202d088: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
202d08c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return -1;
202d090: 81 c7 e0 08 ret <== NOT EXECUTED
202d094: 81 e8 00 00 restore <== NOT EXECUTED
0202ccd4 <getgrent>:
return NULL;
return p;
}
struct group *getgrent(void)
{
202ccd4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (group_fp == NULL)
202ccd8: 03 00 81 cb sethi %hi(0x2072c00), %g1 <== NOT EXECUTED
202ccdc: d0 00 61 cc ld [ %g1 + 0x1cc ], %o0 ! 2072dcc <group_fp> <== NOT EXECUTED
202cce0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202cce4: 32 80 00 04 bne,a 202ccf4 <getgrent+0x20> <== NOT EXECUTED
202cce8: 31 00 81 cb sethi %hi(0x2072c00), %i0 <== NOT EXECUTED
return NULL;
if (!scangr(group_fp, &grent, grbuf, sizeof grbuf))
return NULL;
return &grent;
}
202ccec: 81 c7 e0 08 ret <== NOT EXECUTED
202ccf0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
struct group *getgrent(void)
{
if (group_fp == NULL)
return NULL;
if (!scangr(group_fp, &grent, grbuf, sizeof grbuf))
202ccf4: 15 00 81 cb sethi %hi(0x2072c00), %o2 <== NOT EXECUTED
202ccf8: 92 16 22 98 or %i0, 0x298, %o1 <== NOT EXECUTED
202ccfc: 94 12 a1 d0 or %o2, 0x1d0, %o2 <== NOT EXECUTED
202cd00: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED
202cd04: 7f ff ff 94 call 202cb54 <scangr> <== NOT EXECUTED
202cd08: b0 16 22 98 or %i0, 0x298, %i0 <== NOT EXECUTED
202cd0c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202cd10: 02 bf ff f7 be 202ccec <getgrent+0x18> <== NOT EXECUTED
202cd14: 01 00 00 00 nop <== NOT EXECUTED
return NULL;
return &grent;
}
202cd18: 81 c7 e0 08 ret <== NOT EXECUTED
202cd1c: 81 e8 00 00 restore <== NOT EXECUTED
0202d0cc <getgrgid>:
}
struct group *getgrgid(
gid_t gid
)
{
202d0cc: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
struct group *p;
if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p))
202d0d0: 13 00 81 cb sethi %hi(0x2072c00), %o1 <== NOT EXECUTED
202d0d4: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED
202d0d8: 92 12 62 98 or %o1, 0x298, %o1 <== NOT EXECUTED
202d0dc: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED
202d0e0: 15 00 81 cb sethi %hi(0x2072c00), %o2 <== NOT EXECUTED
202d0e4: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED
202d0e8: 94 12 a1 d0 or %o2, 0x1d0, %o2 <== NOT EXECUTED
202d0ec: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
202d0f0: 7f ff ff ea call 202d098 <getgrgid_r> <== NOT EXECUTED
202d0f4: b0 10 20 00 clr %i0 <== NOT EXECUTED
202d0f8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202d0fc: 22 80 00 02 be,a 202d104 <getgrgid+0x38> <== NOT EXECUTED
202d100: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED
return NULL;
return p;
}
202d104: 81 c7 e0 08 ret <== NOT EXECUTED
202d108: 81 e8 00 00 restore <== NOT EXECUTED
0202d098 <getgrgid_r>:
struct group *grp,
char *buffer,
size_t bufsize,
struct group **result
)
{
202d098: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED
202d09c: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED
return getgr_r(NULL, gid, grp, buffer, bufsize, result);
202d0a0: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
struct group *grp,
char *buffer,
size_t bufsize,
struct group **result
)
{
202d0a4: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED
return getgr_r(NULL, gid, grp, buffer, bufsize, result);
202d0a8: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED
202d0ac: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED
202d0b0: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED
202d0b4: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED
202d0b8: 90 10 20 00 clr %o0 <== NOT EXECUTED
202d0bc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
202d0c0: 7f ff ff be call 202cfb8 <getgr_r> <== NOT EXECUTED
202d0c4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
0202d138 <getgrnam>:
}
struct group *getgrnam(
const char *name
)
{
202d138: 9d e3 bf 98 save %sp, -104, %sp
struct group *p;
if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p))
202d13c: 13 00 81 cb sethi %hi(0x2072c00), %o1
202d140: 90 10 00 18 mov %i0, %o0
202d144: 92 12 62 98 or %o1, 0x298, %o1
202d148: 15 00 81 cb sethi %hi(0x2072c00), %o2
202d14c: 96 10 20 c8 mov 0xc8, %o3
202d150: 94 12 a1 d0 or %o2, 0x1d0, %o2
202d154: 98 07 bf fc add %fp, -4, %o4
202d158: 7f ff ff ed call 202d10c <getgrnam_r>
202d15c: b0 10 20 00 clr %i0
202d160: 80 a2 20 00 cmp %o0, 0
202d164: 22 80 00 02 be,a 202d16c <getgrnam+0x34> <== ALWAYS TAKEN
202d168: f0 07 bf fc ld [ %fp + -4 ], %i0
return NULL;
return p;
}
202d16c: 81 c7 e0 08 ret
202d170: 81 e8 00 00 restore
0202393c <getpid>:
*/
pid_t getpid( void )
{
return _Objects_Local_node;
}
202393c: 81 c3 e0 08 retl <== NOT EXECUTED
2023940: 90 10 20 01 mov 1, %o0 ! 1 <PROM_START+0x1> <== NOT EXECUTED
0202d1b8 <getpw_r>:
struct passwd *pwd,
char *buffer,
size_t bufsize,
struct passwd **result
)
{
202d1b8: 9d e3 bf a0 save %sp, -96, %sp
FILE *fp;
int match;
init_etc_passwd_group();
202d1bc: 7f ff ff 33 call 202ce88 <init_etc_passwd_group>
202d1c0: 01 00 00 00 nop
if ((fp = fopen("/etc/passwd", "r")) == NULL) {
202d1c4: 11 00 81 a5 sethi %hi(0x2069400), %o0
202d1c8: 13 00 81 a5 sethi %hi(0x2069400), %o1
202d1cc: 90 12 21 88 or %o0, 0x188, %o0
202d1d0: 40 00 71 45 call 20496e4 <fopen>
202d1d4: 92 12 61 98 or %o1, 0x198, %o1
202d1d8: a0 92 20 00 orcc %o0, 0, %l0
202d1dc: 12 80 00 0b bne 202d208 <getpw_r+0x50> <== ALWAYS TAKEN
202d1e0: 92 10 00 1a mov %i2, %o1
202d1e4: 30 80 00 27 b,a 202d280 <getpw_r+0xc8> <== NOT EXECUTED
errno = EINVAL;
fclose(fp);
return -1;
}
if (name) {
match = (strcmp(pwd->pw_name, name) == 0);
202d1e8: 40 00 88 3e call 204f2e0 <strcmp>
202d1ec: 92 10 00 18 mov %i0, %o1
202d1f0: 80 a0 00 08 cmp %g0, %o0
202d1f4: 82 60 3f ff subx %g0, -1, %g1
}
else {
match = (pwd->pw_uid == uid);
}
if (match) {
202d1f8: 80 a0 60 00 cmp %g1, 0
202d1fc: 12 80 00 14 bne 202d24c <getpw_r+0x94>
202d200: 90 10 00 10 mov %l0, %o0
if ((fp = fopen("/etc/passwd", "r")) == NULL) {
errno = EINVAL;
return -1;
}
for(;;) {
if (!scanpw(fp, pwd, buffer, bufsize)) {
202d204: 92 10 00 1a mov %i2, %o1
202d208: 94 10 00 1b mov %i3, %o2
202d20c: 96 10 00 1c mov %i4, %o3
202d210: 7f ff fe c4 call 202cd20 <scanpw>
202d214: 90 10 00 10 mov %l0, %o0
202d218: 80 a2 20 00 cmp %o0, 0
202d21c: 02 80 00 11 be 202d260 <getpw_r+0xa8> <== NEVER TAKEN
202d220: 80 a6 20 00 cmp %i0, 0
errno = EINVAL;
fclose(fp);
return -1;
}
if (name) {
202d224: 32 bf ff f1 bne,a 202d1e8 <getpw_r+0x30> <== ALWAYS TAKEN
202d228: d0 06 80 00 ld [ %i2 ], %o0
match = (strcmp(pwd->pw_name, name) == 0);
}
else {
match = (pwd->pw_uid == uid);
202d22c: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED
202d230: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED
202d234: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
202d238: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED
}
if (match) {
202d23c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202d240: 02 bf ff f2 be 202d208 <getpw_r+0x50> <== NOT EXECUTED
202d244: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
fclose(fp);
202d248: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202d24c: 40 00 6e d6 call 2048da4 <fclose>
202d250: b0 10 20 00 clr %i0
*result = pwd;
202d254: f4 27 40 00 st %i2, [ %i5 ]
}
}
fclose(fp);
errno = EINVAL;
return -1;
}
202d258: 81 c7 e0 08 ret
202d25c: 81 e8 00 00 restore
errno = EINVAL;
return -1;
}
for(;;) {
if (!scanpw(fp, pwd, buffer, bufsize)) {
errno = EINVAL;
202d260: 40 00 6e 79 call 2048c44 <__errno> <== NOT EXECUTED
202d264: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202d268: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
202d26c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
fclose(fp);
202d270: 40 00 6e cd call 2048da4 <fclose> <== NOT EXECUTED
202d274: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return -1;
202d278: 81 c7 e0 08 ret <== NOT EXECUTED
202d27c: 81 e8 00 00 restore <== NOT EXECUTED
int match;
init_etc_passwd_group();
if ((fp = fopen("/etc/passwd", "r")) == NULL) {
errno = EINVAL;
202d280: 40 00 6e 71 call 2048c44 <__errno> <== NOT EXECUTED
202d284: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202d288: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
202d28c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return -1;
202d290: 81 c7 e0 08 ret <== NOT EXECUTED
202d294: 81 e8 00 00 restore <== NOT EXECUTED
0202ce3c <getpwent>:
return NULL;
return p;
}
struct passwd *getpwent(void)
{
202ce3c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (passwd_fp == NULL)
202ce40: 03 00 81 cb sethi %hi(0x2072c00), %g1 <== NOT EXECUTED
202ce44: d0 00 60 e4 ld [ %g1 + 0xe4 ], %o0 ! 2072ce4 <passwd_fp> <== NOT EXECUTED
202ce48: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202ce4c: 32 80 00 04 bne,a 202ce5c <getpwent+0x20> <== NOT EXECUTED
202ce50: 31 00 81 cb sethi %hi(0x2072c00), %i0 <== NOT EXECUTED
return NULL;
if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf))
return NULL;
return &pwent;
}
202ce54: 81 c7 e0 08 ret <== NOT EXECUTED
202ce58: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
struct passwd *getpwent(void)
{
if (passwd_fp == NULL)
return NULL;
if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf))
202ce5c: 15 00 81 cb sethi %hi(0x2072c00), %o2 <== NOT EXECUTED
202ce60: 92 16 21 b0 or %i0, 0x1b0, %o1 <== NOT EXECUTED
202ce64: 94 12 a0 e8 or %o2, 0xe8, %o2 <== NOT EXECUTED
202ce68: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED
202ce6c: 7f ff ff ad call 202cd20 <scanpw> <== NOT EXECUTED
202ce70: b0 16 21 b0 or %i0, 0x1b0, %i0 <== NOT EXECUTED
202ce74: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202ce78: 02 bf ff f7 be 202ce54 <getpwent+0x18> <== NOT EXECUTED
202ce7c: 01 00 00 00 nop <== NOT EXECUTED
return NULL;
return &pwent;
}
202ce80: 81 c7 e0 08 ret <== NOT EXECUTED
202ce84: 81 e8 00 00 restore <== NOT EXECUTED
0202d338 <getpwnam>:
}
struct passwd *getpwnam(
const char *name
)
{
202d338: 9d e3 bf 98 save %sp, -104, %sp
struct passwd *p;
if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p))
202d33c: 13 00 81 cb sethi %hi(0x2072c00), %o1
202d340: 90 10 00 18 mov %i0, %o0
202d344: 92 12 61 b0 or %o1, 0x1b0, %o1
202d348: 15 00 81 cb sethi %hi(0x2072c00), %o2
202d34c: 96 10 20 c8 mov 0xc8, %o3
202d350: 94 12 a0 e8 or %o2, 0xe8, %o2
202d354: 98 07 bf fc add %fp, -4, %o4
202d358: 7f ff ff ed call 202d30c <getpwnam_r>
202d35c: b0 10 20 00 clr %i0
202d360: 80 a2 20 00 cmp %o0, 0
202d364: 22 80 00 02 be,a 202d36c <getpwnam+0x34> <== ALWAYS TAKEN
202d368: f0 07 bf fc ld [ %fp + -4 ], %i0
return NULL;
return p;
}
202d36c: 81 c7 e0 08 ret
202d370: 81 e8 00 00 restore
0202d2cc <getpwuid>:
}
struct passwd *getpwuid(
uid_t uid
)
{
202d2cc: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
struct passwd *p;
if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p))
202d2d0: 13 00 81 cb sethi %hi(0x2072c00), %o1 <== NOT EXECUTED
202d2d4: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED
202d2d8: 92 12 61 b0 or %o1, 0x1b0, %o1 <== NOT EXECUTED
202d2dc: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED
202d2e0: 15 00 81 cb sethi %hi(0x2072c00), %o2 <== NOT EXECUTED
202d2e4: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED
202d2e8: 94 12 a0 e8 or %o2, 0xe8, %o2 <== NOT EXECUTED
202d2ec: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
202d2f0: 7f ff ff ea call 202d298 <getpwuid_r> <== NOT EXECUTED
202d2f4: b0 10 20 00 clr %i0 <== NOT EXECUTED
202d2f8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202d2fc: 22 80 00 02 be,a 202d304 <getpwuid+0x38> <== NOT EXECUTED
202d300: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED
return NULL;
return p;
}
202d304: 81 c7 e0 08 ret <== NOT EXECUTED
202d308: 81 e8 00 00 restore <== NOT EXECUTED
0202d298 <getpwuid_r>:
struct passwd *pwd,
char *buffer,
size_t bufsize,
struct passwd **result
)
{
202d298: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED
202d29c: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED
return getpw_r(NULL, uid, pwd, buffer, bufsize, result);
202d2a0: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
struct passwd *pwd,
char *buffer,
size_t bufsize,
struct passwd **result
)
{
202d2a4: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED
return getpw_r(NULL, uid, pwd, buffer, bufsize, result);
202d2a8: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED
202d2ac: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED
202d2b0: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED
202d2b4: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED
202d2b8: 90 10 20 00 clr %o0 <== NOT EXECUTED
202d2bc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
202d2c0: 7f ff ff be call 202d1b8 <getpw_r> <== NOT EXECUTED
202d2c4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02002d98 <gettimeofday>:
*/
int gettimeofday(
struct timeval *tp,
void * __tz __attribute__((unused))
)
{
2002d98: 9d e3 bf 98 save %sp, -104, %sp
/* struct timezone* tzp = (struct timezone*) __tz; */
if ( !tp ) {
2002d9c: 80 a6 20 00 cmp %i0, 0
2002da0: 02 80 00 11 be 2002de4 <gettimeofday+0x4c> <== NEVER TAKEN
2002da4: 01 00 00 00 nop
{
ISR_Level level;
struct timespec now;
suseconds_t useconds;
_ISR_Disable(level);
2002da8: 7f ff fc bf call 20020a4 <sparc_disable_interrupts>
2002dac: 01 00 00 00 nop
2002db0: a0 10 00 08 mov %o0, %l0
_TOD_Get( &now );
2002db4: 40 00 12 72 call 200777c <_TOD_Get>
2002db8: 90 07 bf f8 add %fp, -8, %o0
_ISR_Enable(level);
2002dbc: 7f ff fc be call 20020b4 <sparc_enable_interrupts>
2002dc0: 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;
2002dc4: 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;
2002dc8: c2 07 bf f8 ld [ %fp + -8 ], %g1
time->tv_usec = useconds;
2002dcc: 92 10 23 e8 mov 0x3e8, %o1
2002dd0: 40 00 5a f5 call 20199a4 <.div>
2002dd4: c2 26 00 00 st %g1, [ %i0 ]
2002dd8: 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;
}
2002ddc: 81 c7 e0 08 ret
2002de0: 91 e8 20 00 restore %g0, 0, %o0
void * __tz __attribute__((unused))
)
{
/* struct timezone* tzp = (struct timezone*) __tz; */
if ( !tp ) {
errno = EFAULT;
2002de4: 40 00 35 9b call 2010450 <__errno> <== NOT EXECUTED
2002de8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2002dec: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED
2002df0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return -1;
2002df4: 81 c7 e0 08 ret <== NOT EXECUTED
2002df8: 81 e8 00 00 restore <== NOT EXECUTED
02008a14 <getuid>:
* 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
* P1003.1b-1993, p. 84
*/
uid_t getuid( void )
{
2008a14: 03 00 81 bc sethi %hi(0x206f000), %g1 <== NOT EXECUTED
2008a18: c2 00 63 24 ld [ %g1 + 0x324 ], %g1 ! 206f324 <rtems_current_user_env><== NOT EXECUTED
return _POSIX_types_Uid;
}
2008a1c: 81 c3 e0 08 retl <== NOT EXECUTED
2008a20: d0 10 60 32 lduh [ %g1 + 0x32 ], %o0 <== NOT EXECUTED
0200f65c <imfs_dir_open>:
)
{
IMFS_jnode_t *the_jnode;
/* Is the node a directory ? */
the_jnode = (IMFS_jnode_t *) iop->file_info;
200f65c: c4 02 20 3c ld [ %o0 + 0x3c ], %g2
200f660: c4 00 a0 4c ld [ %g2 + 0x4c ], %g2
200f664: 80 a0 a0 01 cmp %g2, 1
200f668: 12 80 00 05 bne 200f67c <imfs_dir_open+0x20> <== NEVER TAKEN
200f66c: 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;
200f670: c0 22 20 10 clr [ %o0 + 0x10 ]
200f674: c0 22 20 14 clr [ %o0 + 0x14 ]
200f678: 82 10 20 00 clr %g1
return 0;
}
200f67c: 81 c3 e0 08 retl
200f680: 90 10 00 01 mov %g1, %o0
0200f8dc <imfs_dir_read>:
ssize_t imfs_dir_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
200f8dc: 9d e3 be 88 save %sp, -376, %sp
int current_entry;
int first_entry;
int last_entry;
struct dirent tmp_dirent;
the_jnode = (IMFS_jnode_t *)iop->file_info;
200f8e0: e4 06 20 3c ld [ %i0 + 0x3c ], %l2
ssize_t imfs_dir_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
200f8e4: 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));
200f8e8: e2 04 a0 50 ld [ %l2 + 0x50 ], %l1
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200f8ec: a4 04 a0 54 add %l2, 0x54, %l2
struct dirent tmp_dirent;
the_jnode = (IMFS_jnode_t *)iop->file_info;
the_chain = &the_jnode->info.directory.Entries;
if ( rtems_chain_is_empty( the_chain ) )
200f8f0: 80 a4 40 12 cmp %l1, %l2
200f8f4: 02 80 00 36 be 200f9cc <imfs_dir_read+0xf0>
200f8f8: b0 10 20 00 clr %i0
/* Move to the first of the desired directory entries */
the_node = the_chain->first;
bytes_transferred = 0;
first_entry = iop->offset;
200f8fc: ea 04 20 14 ld [ %l0 + 0x14 ], %l5
/* protect against using sizes that are not exact multiples of the */
/* -dirent- size. These could result in unexpected results */
last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent);
200f900: 90 10 00 1a mov %i2, %o0
200f904: 40 00 28 26 call 201999c <.udiv>
200f908: 92 10 21 18 mov 0x118, %o1
200f90c: 85 2a 20 05 sll %o0, 5, %g2
200f910: 83 2a 20 03 sll %o0, 3, %g1
200f914: 82 00 40 02 add %g1, %g2, %g1
200f918: a9 28 60 03 sll %g1, 3, %l4
200f91c: a8 25 00 01 sub %l4, %g1, %l4
200f920: a8 05 00 15 add %l4, %l5, %l4
/* The directory was not empty so try to move to the desired entry in chain*/
for (
200f924: 80 a5 20 00 cmp %l4, 0
200f928: 04 80 00 29 ble 200f9cc <imfs_dir_read+0xf0> <== NEVER TAKEN
200f92c: a6 10 20 00 clr %l3
}
if( current_entry >= first_entry ) {
/* Move the entry to the return buffer */
tmp_dirent.d_off = current_entry;
tmp_dirent.d_reclen = sizeof( struct dirent );
200f930: ba 10 21 18 mov 0x118, %i5
the_jnode = (IMFS_jnode_t *) the_node;
tmp_dirent.d_ino = the_jnode->st_ino;
tmp_dirent.d_namlen = strlen( the_jnode->name );
strcpy( tmp_dirent.d_name, the_jnode->name );
200f934: ae 07 be e8 add %fp, -280, %l7
200f938: 10 80 00 08 b 200f958 <imfs_dir_read+0x7c>
200f93c: ac 07 be fc add %fp, -260, %l6
/* protect against using sizes that are not exact multiples of the */
/* -dirent- size. These could result in unexpected results */
last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent);
/* The directory was not empty so try to move to the desired entry in chain*/
for (
200f940: 80 a4 c0 14 cmp %l3, %l4
200f944: 16 80 00 22 bge 200f9cc <imfs_dir_read+0xf0> <== NEVER TAKEN
200f948: e2 04 40 00 ld [ %l1 ], %l1
current_entry = 0;
current_entry < last_entry;
current_entry = current_entry + sizeof(struct dirent) ){
if ( rtems_chain_is_tail( the_chain, the_node ) ){
200f94c: 80 a4 40 12 cmp %l1, %l2
200f950: 02 80 00 21 be 200f9d4 <imfs_dir_read+0xf8>
200f954: 01 00 00 00 nop
/* entry in the read */
return bytes_transferred; /* Indicate that there are no more */
/* entries to return */
}
if( current_entry >= first_entry ) {
200f958: 80 a5 40 13 cmp %l5, %l3
200f95c: 34 bf ff f9 bg,a 200f940 <imfs_dir_read+0x64>
200f960: a6 04 e1 18 add %l3, 0x118, %l3
/* Move the entry to the return buffer */
tmp_dirent.d_off = current_entry;
tmp_dirent.d_reclen = sizeof( struct dirent );
the_jnode = (IMFS_jnode_t *) the_node;
tmp_dirent.d_ino = the_jnode->st_ino;
200f964: c2 04 60 38 ld [ %l1 + 0x38 ], %g1
tmp_dirent.d_namlen = strlen( the_jnode->name );
200f968: b8 04 60 0c add %l1, 0xc, %i4
if( current_entry >= first_entry ) {
/* Move the entry to the return buffer */
tmp_dirent.d_off = current_entry;
tmp_dirent.d_reclen = sizeof( struct dirent );
the_jnode = (IMFS_jnode_t *) the_node;
tmp_dirent.d_ino = the_jnode->st_ino;
200f96c: c2 27 be e8 st %g1, [ %fp + -280 ]
/* entries to return */
}
if( current_entry >= first_entry ) {
/* Move the entry to the return buffer */
tmp_dirent.d_off = current_entry;
200f970: 83 3c e0 1f sra %l3, 0x1f, %g1
200f974: e6 27 be f4 st %l3, [ %fp + -268 ]
200f978: c2 27 be f0 st %g1, [ %fp + -272 ]
tmp_dirent.d_reclen = sizeof( struct dirent );
200f97c: fa 37 be f8 sth %i5, [ %fp + -264 ]
the_jnode = (IMFS_jnode_t *) the_node;
tmp_dirent.d_ino = the_jnode->st_ino;
tmp_dirent.d_namlen = strlen( the_jnode->name );
200f980: 40 00 06 81 call 2011384 <strlen>
200f984: 90 10 00 1c mov %i4, %o0
strcpy( tmp_dirent.d_name, the_jnode->name );
200f988: 92 10 00 1c mov %i4, %o1
/* Move the entry to the return buffer */
tmp_dirent.d_off = current_entry;
tmp_dirent.d_reclen = sizeof( struct dirent );
the_jnode = (IMFS_jnode_t *) the_node;
tmp_dirent.d_ino = the_jnode->st_ino;
tmp_dirent.d_namlen = strlen( the_jnode->name );
200f98c: d0 37 be fa sth %o0, [ %fp + -262 ]
strcpy( tmp_dirent.d_name, the_jnode->name );
200f990: 40 00 06 45 call 20112a4 <strcpy>
200f994: 90 10 00 16 mov %l6, %o0
memcpy(
200f998: 90 06 40 18 add %i1, %i0, %o0
200f99c: 92 10 00 17 mov %l7, %o1
200f9a0: 40 00 04 e8 call 2010d40 <memcpy>
200f9a4: 94 10 21 18 mov 0x118, %o2
buffer + bytes_transferred,
(void *)&tmp_dirent,
sizeof( struct dirent )
);
iop->offset = iop->offset + sizeof(struct dirent);
200f9a8: c4 1c 20 10 ldd [ %l0 + 0x10 ], %g2
* to the end of the exisiting file, the remaining entries will be placed in
* the buffer and the returned value will be equal to -m actual- times the
* size of a directory entry.
*/
ssize_t imfs_dir_read(
200f9ac: a6 04 e1 18 add %l3, 0x118, %l3
memcpy(
buffer + bytes_transferred,
(void *)&tmp_dirent,
sizeof( struct dirent )
);
iop->offset = iop->offset + sizeof(struct dirent);
200f9b0: 86 80 e1 18 addcc %g3, 0x118, %g3
200f9b4: 84 40 a0 00 addx %g2, 0, %g2
200f9b8: c4 3c 20 10 std %g2, [ %l0 + 0x10 ]
bytes_transferred = bytes_transferred + sizeof( struct dirent );
200f9bc: b0 06 21 18 add %i0, 0x118, %i0
/* protect against using sizes that are not exact multiples of the */
/* -dirent- size. These could result in unexpected results */
last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent);
/* The directory was not empty so try to move to the desired entry in chain*/
for (
200f9c0: 80 a4 c0 14 cmp %l3, %l4
200f9c4: 06 bf ff e2 bl 200f94c <imfs_dir_read+0x70> <== NEVER TAKEN
200f9c8: e2 04 40 00 ld [ %l1 ], %l1
the_node = the_node->next;
}
/* Success */
return bytes_transferred;
}
200f9cc: 81 c7 e0 08 ret
200f9d0: 81 e8 00 00 restore
200f9d4: 81 c7 e0 08 ret
200f9d8: 81 e8 00 00 restore
0200f7d8 <imfs_dir_rmnod>:
int imfs_dir_rmnod(
rtems_filesystem_location_info_t *parent_pathloc, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN */
)
{
200f7d8: 9d e3 bf 98 save %sp, -104, %sp
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) pathloc->node_access;
200f7dc: e0 06 40 00 ld [ %i1 ], %l0
200f7e0: c4 04 20 50 ld [ %l0 + 0x50 ], %g2
200f7e4: 82 04 20 54 add %l0, 0x54, %g1
200f7e8: 80 a0 80 01 cmp %g2, %g1
200f7ec: 12 80 00 30 bne 200f8ac <imfs_dir_rmnod+0xd4>
200f7f0: 01 00 00 00 nop
/*
* You cannot remove the file system root node.
*/
if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access )
200f7f4: c2 06 60 10 ld [ %i1 + 0x10 ], %g1
200f7f8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
200f7fc: 80 a4 00 01 cmp %l0, %g1
200f800: 02 80 00 31 be 200f8c4 <imfs_dir_rmnod+0xec>
200f804: 01 00 00 00 nop
/*
* You cannot remove a mountpoint.
*/
if ( the_jnode->info.directory.mt_fs != NULL )
200f808: c2 04 20 5c ld [ %l0 + 0x5c ], %g1
200f80c: 80 a0 60 00 cmp %g1, 0
200f810: 12 80 00 2d bne 200f8c4 <imfs_dir_rmnod+0xec> <== NEVER TAKEN
200f814: 01 00 00 00 nop
/*
* Take the node out of the parent's chain that contains this node
*/
if ( the_jnode->Parent != NULL ) {
200f818: c2 04 20 08 ld [ %l0 + 8 ], %g1
200f81c: 80 a0 60 00 cmp %g1, 0
200f820: 22 80 00 06 be,a 200f838 <imfs_dir_rmnod+0x60>
200f824: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1
200f828: 7f ff de aa call 20072d0 <_Chain_Extract>
200f82c: 90 10 00 10 mov %l0, %o0
rtems_chain_extract( (rtems_chain_node *) the_jnode );
the_jnode->Parent = NULL;
200f830: c0 24 20 08 clr [ %l0 + 8 ]
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
200f834: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1
IMFS_update_ctime( the_jnode );
200f838: 92 10 20 00 clr %o1
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
200f83c: 82 00 7f ff add %g1, -1, %g1
IMFS_update_ctime( the_jnode );
200f840: 90 07 bf f8 add %fp, -8, %o0
200f844: 7f ff cd 55 call 2002d98 <gettimeofday>
200f848: c2 34 20 34 sth %g1, [ %l0 + 0x34 ]
200f84c: 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) ) {
200f850: 90 10 00 10 mov %l0, %o0
200f854: 7f ff f4 46 call 200c96c <rtems_libio_is_file_open>
200f858: c2 24 20 48 st %g1, [ %l0 + 0x48 ]
200f85c: 80 a2 20 00 cmp %o0, 0
200f860: 12 80 00 11 bne 200f8a4 <imfs_dir_rmnod+0xcc>
200f864: 01 00 00 00 nop
200f868: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1
200f86c: 80 a0 60 00 cmp %g1, 0
200f870: 12 80 00 0d bne 200f8a4 <imfs_dir_rmnod+0xcc>
200f874: 03 00 80 74 sethi %hi(0x201d000), %g1
/*
* Is the rtems_filesystem_current is this node?
*/
if ( rtems_filesystem_current.node_access == pathloc->node_access )
200f878: c2 00 62 10 ld [ %g1 + 0x210 ], %g1 ! 201d210 <rtems_current_user_env>
200f87c: c4 06 40 00 ld [ %i1 ], %g2
200f880: c6 00 60 04 ld [ %g1 + 4 ], %g3
200f884: 80 a0 c0 02 cmp %g3, %g2
200f888: 22 80 00 02 be,a 200f890 <imfs_dir_rmnod+0xb8> <== NEVER TAKEN
200f88c: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED
/*
* Free memory associated with a memory file.
*/
free( the_jnode );
200f890: 90 10 00 10 mov %l0, %o0
200f894: 7f ff cd 16 call 2002cec <free>
200f898: b0 10 20 00 clr %i0
200f89c: 81 c7 e0 08 ret
200f8a0: 81 e8 00 00 restore
}
return 0;
}
200f8a4: 81 c7 e0 08 ret
200f8a8: 91 e8 20 00 restore %g0, 0, %o0
/*
* 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 );
200f8ac: 40 00 02 e9 call 2010450 <__errno>
200f8b0: b0 10 3f ff mov -1, %i0
200f8b4: 82 10 20 5a mov 0x5a, %g1
200f8b8: c2 22 00 00 st %g1, [ %o0 ]
200f8bc: 81 c7 e0 08 ret
200f8c0: 81 e8 00 00 restore
/*
* You cannot remove a mountpoint.
*/
if ( the_jnode->info.directory.mt_fs != NULL )
rtems_set_errno_and_return_minus_one( EBUSY );
200f8c4: 40 00 02 e3 call 2010450 <__errno>
200f8c8: b0 10 3f ff mov -1, %i0
200f8cc: 82 10 20 10 mov 0x10, %g1
200f8d0: c2 22 00 00 st %g1, [ %o0 ]
200f8d4: 81 c7 e0 08 ret
200f8d8: 81 e8 00 00 restore
0202ce88 <init_etc_passwd_group>:
/*
* Initialize useable but dummy databases
*/
void init_etc_passwd_group(void)
{
202ce88: 9d e3 bf a0 save %sp, -96, %sp
FILE *fp;
static char etc_passwd_initted = 0;
if (etc_passwd_initted)
202ce8c: 03 00 81 cb sethi %hi(0x2072c00), %g1
202ce90: c4 48 60 e0 ldsb [ %g1 + 0xe0 ], %g2 ! 2072ce0 <etc_passwd_initted.6409>
202ce94: 80 a0 a0 00 cmp %g2, 0
202ce98: 02 80 00 04 be 202cea8 <init_etc_passwd_group+0x20>
202ce9c: 84 10 20 01 mov 1, %g2
202cea0: 81 c7 e0 08 ret
202cea4: 81 e8 00 00 restore
return;
etc_passwd_initted = 1;
mkdir("/etc", 0777);
202cea8: 92 10 21 ff mov 0x1ff, %o1
FILE *fp;
static char etc_passwd_initted = 0;
if (etc_passwd_initted)
return;
etc_passwd_initted = 1;
202ceac: c4 28 60 e0 stb %g2, [ %g1 + 0xe0 ]
mkdir("/etc", 0777);
202ceb0: 11 00 81 a5 sethi %hi(0x2069400), %o0
202ceb4: 7f ff 70 e3 call 2009240 <mkdir>
202ceb8: 90 12 21 80 or %o0, 0x180, %o0 ! 2069580 <IMFS_memfile_handlers+0xa8>
/*
* Initialize /etc/passwd
*/
if ((fp = fopen("/etc/passwd", "r")) != NULL) {
202cebc: 31 00 81 a5 sethi %hi(0x2069400), %i0
202cec0: 21 00 81 a5 sethi %hi(0x2069400), %l0
202cec4: 90 16 21 88 or %i0, 0x188, %o0
202cec8: 40 00 72 07 call 20496e4 <fopen>
202cecc: 92 14 21 98 or %l0, 0x198, %o1
202ced0: 80 a2 20 00 cmp %o0, 0
202ced4: 22 80 00 0d be,a 202cf08 <init_etc_passwd_group+0x80> <== ALWAYS TAKEN
202ced8: 90 16 21 88 or %i0, 0x188, %o0
}
else if ((fp = fopen("/etc/passwd", "w")) != NULL) {
fprintf(fp, "root:*:0:0:root::/:/bin/sh\n"
"rtems:*:1:1:RTEMS Application::/:/bin/sh\n"
"tty:!:2:2:tty owner::/:/bin/false\n" );
fclose(fp);
202cedc: 40 00 6f b2 call 2048da4 <fclose>
202cee0: 01 00 00 00 nop
}
/*
* Initialize /etc/group
*/
if ((fp = fopen("/etc/group", "r")) != NULL) {
202cee4: 92 14 21 98 or %l0, 0x198, %o1
202cee8: 21 00 81 a5 sethi %hi(0x2069400), %l0
202ceec: 40 00 71 fe call 20496e4 <fopen>
202cef0: 90 14 22 10 or %l0, 0x210, %o0 ! 2069610 <IMFS_memfile_handlers+0x138>
202cef4: 80 a2 20 00 cmp %o0, 0
202cef8: 22 80 00 11 be,a 202cf3c <init_etc_passwd_group+0xb4> <== ALWAYS TAKEN
202cefc: 90 14 22 10 or %l0, 0x210, %o0
fclose(fp);
202cf00: 40 00 6f a9 call 2048da4 <fclose> <== NOT EXECUTED
202cf04: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
* Initialize /etc/passwd
*/
if ((fp = fopen("/etc/passwd", "r")) != NULL) {
fclose(fp);
}
else if ((fp = fopen("/etc/passwd", "w")) != NULL) {
202cf08: 13 00 81 a5 sethi %hi(0x2069400), %o1
202cf0c: 40 00 71 f6 call 20496e4 <fopen>
202cf10: 92 12 61 a0 or %o1, 0x1a0, %o1 ! 20695a0 <IMFS_memfile_handlers+0xc8>
202cf14: b0 92 20 00 orcc %o0, 0, %i0
202cf18: 02 bf ff f3 be 202cee4 <init_etc_passwd_group+0x5c> <== NEVER TAKEN
202cf1c: 92 10 20 01 mov 1, %o1
fprintf(fp, "root:*:0:0:root::/:/bin/sh\n"
202cf20: 94 10 20 66 mov 0x66, %o2
202cf24: 96 10 00 18 mov %i0, %o3
202cf28: 11 00 81 a5 sethi %hi(0x2069400), %o0
202cf2c: 40 00 76 ce call 204aa64 <fwrite>
202cf30: 90 12 21 a8 or %o0, 0x1a8, %o0 ! 20695a8 <IMFS_memfile_handlers+0xd0>
"rtems:*:1:1:RTEMS Application::/:/bin/sh\n"
"tty:!:2:2:tty owner::/:/bin/false\n" );
fclose(fp);
202cf34: 10 bf ff ea b 202cedc <init_etc_passwd_group+0x54>
202cf38: 90 10 00 18 mov %i0, %o0
* Initialize /etc/group
*/
if ((fp = fopen("/etc/group", "r")) != NULL) {
fclose(fp);
}
else if ((fp = fopen("/etc/group", "w")) != NULL) {
202cf3c: 13 00 81 a5 sethi %hi(0x2069400), %o1
202cf40: 40 00 71 e9 call 20496e4 <fopen>
202cf44: 92 12 61 a0 or %o1, 0x1a0, %o1 ! 20695a0 <IMFS_memfile_handlers+0xc8>
202cf48: b0 92 20 00 orcc %o0, 0, %i0
202cf4c: 02 bf ff d5 be 202cea0 <init_etc_passwd_group+0x18> <== NEVER TAKEN
202cf50: 11 00 81 a5 sethi %hi(0x2069400), %o0
fprintf( fp, "root:x:0:root\n"
202cf54: 92 10 20 01 mov 1, %o1
202cf58: 94 10 20 2a mov 0x2a, %o2
202cf5c: 96 10 00 18 mov %i0, %o3
202cf60: 40 00 76 c1 call 204aa64 <fwrite>
202cf64: 90 12 22 20 or %o0, 0x220, %o0
"rtems:x:1:rtems\n"
"tty:x:2:tty\n" );
fclose(fp);
202cf68: 40 00 6f 8f call 2048da4 <fclose>
202cf6c: 81 e8 00 00 restore
02006794 <ioctl>:
int ioctl(
int fd,
ioctl_command_t command,
...
)
{
2006794: 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 );
2006798: 03 00 80 85 sethi %hi(0x2021400), %g1
200679c: c2 00 60 04 ld [ %g1 + 4 ], %g1 ! 2021404 <rtems_libio_number_iops>
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
va_start(ap, command);
20067a0: f6 27 a0 50 st %i3, [ %fp + 0x50 ]
20067a4: f8 27 a0 54 st %i4, [ %fp + 0x54 ]
20067a8: fa 27 a0 58 st %i5, [ %fp + 0x58 ]
va_list ap;
rtems_status_code rc;
rtems_libio_t *iop;
void *buffer;
rtems_libio_check_fd( fd );
20067ac: 80 a6 00 01 cmp %i0, %g1
20067b0: 1a 80 00 18 bcc 2006810 <ioctl+0x7c>
20067b4: f4 27 a0 4c st %i2, [ %fp + 0x4c ]
iop = rtems_libio_iop( fd );
20067b8: 03 00 80 87 sethi %hi(0x2021c00), %g1
20067bc: d0 00 62 70 ld [ %g1 + 0x270 ], %o0 ! 2021e70 <rtems_libio_iops>
20067c0: 83 2e 20 06 sll %i0, 6, %g1
20067c4: b1 2e 20 03 sll %i0, 3, %i0
20067c8: b0 06 00 01 add %i0, %g1, %i0
20067cc: 90 02 00 18 add %o0, %i0, %o0
rtems_libio_check_is_open(iop);
20067d0: c2 02 20 18 ld [ %o0 + 0x18 ], %g1
20067d4: 80 88 61 00 btst 0x100, %g1
20067d8: 02 80 00 0e be 2006810 <ioctl+0x7c> <== NEVER TAKEN
20067dc: 84 07 a0 50 add %fp, 0x50, %g2
/*
* Now process the ioctl().
*/
if ( !iop->handlers )
20067e0: c2 02 20 40 ld [ %o0 + 0x40 ], %g1
20067e4: 80 a0 60 00 cmp %g1, 0
20067e8: 02 80 00 0a be 2006810 <ioctl+0x7c> <== NEVER TAKEN
20067ec: c4 27 bf fc st %g2, [ %fp + -4 ]
rtems_set_errno_and_return_minus_one( EBADF );
if ( !iop->handlers->ioctl_h )
20067f0: c2 00 60 10 ld [ %g1 + 0x10 ], %g1
20067f4: 80 a0 60 00 cmp %g1, 0
20067f8: 02 80 00 0c be 2006828 <ioctl+0x94> <== NEVER TAKEN
20067fc: 92 10 00 19 mov %i1, %o1
rtems_set_errno_and_return_minus_one( ENOTSUP );
rc = (*iop->handlers->ioctl_h)( iop, command, buffer );
2006800: 9f c0 40 00 call %g1
2006804: 94 10 00 1a mov %i2, %o2
return rc;
}
2006808: 81 c7 e0 08 ret
200680c: 91 e8 00 08 restore %g0, %o0, %o0
/*
* Now process the ioctl().
*/
if ( !iop->handlers )
rtems_set_errno_and_return_minus_one( EBADF );
2006810: 40 00 38 a7 call 2014aac <__errno>
2006814: b0 10 3f ff mov -1, %i0
2006818: 82 10 20 09 mov 9, %g1
200681c: c2 22 00 00 st %g1, [ %o0 ]
2006820: 81 c7 e0 08 ret
2006824: 81 e8 00 00 restore
if ( !iop->handlers->ioctl_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
2006828: 40 00 38 a1 call 2014aac <__errno> <== NOT EXECUTED
200682c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2006830: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
2006834: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2006838: 81 c7 e0 08 ret <== NOT EXECUTED
200683c: 81 e8 00 00 restore <== NOT EXECUTED
02004a18 <iproc>:
/*
* Process a single input character
*/
static int
iproc (unsigned char c, struct rtems_termios_tty *tty)
{
2004a18: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (tty->termios.c_iflag & ISTRIP)
2004a1c: c2 06 60 30 ld [ %i1 + 0x30 ], %g1 <== NOT EXECUTED
2004a20: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED
2004a24: 02 80 00 03 be 2004a30 <iproc+0x18> <== NOT EXECUTED
2004a28: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
c &= 0x7f;
2004a2c: a0 0e 20 7f and %i0, 0x7f, %l0 <== NOT EXECUTED
if (tty->termios.c_iflag & IUCLC)
2004a30: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED
2004a34: 02 80 00 0c be 2004a64 <iproc+0x4c> <== NOT EXECUTED
2004a38: 84 0c 20 ff and %l0, 0xff, %g2 <== NOT EXECUTED
c = tolower (c);
2004a3c: 05 00 80 74 sethi %hi(0x201d000), %g2 <== NOT EXECUTED
2004a40: c4 00 a2 78 ld [ %g2 + 0x278 ], %g2 ! 201d278 <__ctype_ptr__><== NOT EXECUTED
2004a44: a0 0c 20 ff and %l0, 0xff, %l0 <== NOT EXECUTED
2004a48: 84 00 80 10 add %g2, %l0, %g2 <== NOT EXECUTED
2004a4c: c4 08 a0 01 ldub [ %g2 + 1 ], %g2 <== NOT EXECUTED
2004a50: 84 08 a0 03 and %g2, 3, %g2 <== NOT EXECUTED
2004a54: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED
2004a58: 22 80 00 02 be,a 2004a60 <iproc+0x48> <== NOT EXECUTED
2004a5c: a0 04 20 20 add %l0, 0x20, %l0 <== NOT EXECUTED
if (c == '\r') {
2004a60: 84 0c 20 ff and %l0, 0xff, %g2 <== NOT EXECUTED
2004a64: 80 a0 a0 0d cmp %g2, 0xd <== NOT EXECUTED
2004a68: 02 80 00 16 be 2004ac0 <iproc+0xa8> <== NOT EXECUTED
2004a6c: 80 a0 a0 0a cmp %g2, 0xa <== 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)) {
2004a70: 02 80 00 41 be 2004b74 <iproc+0x15c> <== NOT EXECUTED
2004a74: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
c = '\r';
}
if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {
2004a78: 32 80 00 1a bne,a 2004ae0 <iproc+0xc8> <== NOT EXECUTED
2004a7c: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED
}
/*
* FIXME: Should do IMAXBEL handling somehow
*/
if (tty->ccount < (CBUFSIZE-1)) {
2004a80: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
2004a84: 05 00 80 74 sethi %hi(0x201d000), %g2 <== NOT EXECUTED
2004a88: c4 00 a2 00 ld [ %g2 + 0x200 ], %g2 ! 201d200 <rtems_termios_cbufsize><== NOT EXECUTED
2004a8c: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
2004a90: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2004a94: 16 80 00 09 bge 2004ab8 <iproc+0xa0> <== NOT EXECUTED
2004a98: b0 10 20 00 clr %i0 <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO)
2004a9c: c4 06 60 3c ld [ %i1 + 0x3c ], %g2 <== NOT EXECUTED
2004aa0: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED
2004aa4: 12 80 00 39 bne 2004b88 <iproc+0x170> <== NOT EXECUTED
2004aa8: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED
echo (c, tty);
tty->cbuf[tty->ccount++] = c;
2004aac: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED
2004ab0: e0 28 c0 01 stb %l0, [ %g3 + %g1 ] <== NOT EXECUTED
2004ab4: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED
2004ab8: 81 c7 e0 08 ret <== NOT EXECUTED
2004abc: 81 e8 00 00 restore <== NOT EXECUTED
if (tty->termios.c_iflag & ISTRIP)
c &= 0x7f;
if (tty->termios.c_iflag & IUCLC)
c = tolower (c);
if (c == '\r') {
if (tty->termios.c_iflag & IGNCR)
2004ac0: 80 88 60 80 btst 0x80, %g1 <== NOT EXECUTED
2004ac4: 02 80 00 04 be 2004ad4 <iproc+0xbc> <== NOT EXECUTED
2004ac8: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO)
echo (c, tty);
tty->cbuf[tty->ccount++] = c;
}
return 0;
}
2004acc: 81 c7 e0 08 ret <== NOT EXECUTED
2004ad0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
if (tty->termios.c_iflag & IUCLC)
c = tolower (c);
if (c == '\r') {
if (tty->termios.c_iflag & IGNCR)
return 0;
if (tty->termios.c_iflag & ICRNL)
2004ad4: 32 80 00 02 bne,a 2004adc <iproc+0xc4> <== NOT EXECUTED
2004ad8: 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)) {
2004adc: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED
2004ae0: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
2004ae4: 22 bf ff e8 be,a 2004a84 <iproc+0x6c> <== NOT EXECUTED
2004ae8: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
if (c == tty->termios.c_cc[VERASE]) {
2004aec: c4 0e 60 43 ldub [ %i1 + 0x43 ], %g2 <== NOT EXECUTED
2004af0: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED
2004af4: 80 a0 80 08 cmp %g2, %o0 <== NOT EXECUTED
2004af8: 22 80 00 43 be,a 2004c04 <iproc+0x1ec> <== NOT EXECUTED
2004afc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
erase (tty, 0);
return 0;
}
else if (c == tty->termios.c_cc[VKILL]) {
2004b00: c4 0e 60 44 ldub [ %i1 + 0x44 ], %g2 <== NOT EXECUTED
2004b04: 80 a0 80 08 cmp %g2, %o0 <== NOT EXECUTED
2004b08: 22 80 00 2e be,a 2004bc0 <iproc+0x1a8> <== NOT EXECUTED
2004b0c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
erase (tty, 1);
return 0;
}
else if (c == tty->termios.c_cc[VEOF]) {
2004b10: c4 0e 60 45 ldub [ %i1 + 0x45 ], %g2 <== NOT EXECUTED
2004b14: 80 a0 80 08 cmp %g2, %o0 <== NOT EXECUTED
2004b18: 02 bf ff e8 be 2004ab8 <iproc+0xa0> <== NOT EXECUTED
2004b1c: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
return 1;
}
else if (c == '\n') {
2004b20: 80 a2 20 0a cmp %o0, 0xa <== NOT EXECUTED
2004b24: 02 80 00 2c be 2004bd4 <iproc+0x1bc> <== NOT EXECUTED
2004b28: 80 88 60 48 btst 0x48, %g1 <== NOT EXECUTED
if (tty->termios.c_lflag & (ECHO | ECHONL))
echo (c, tty);
tty->cbuf[tty->ccount++] = c;
return 1;
}
else if ((c == tty->termios.c_cc[VEOL])
2004b2c: c4 0e 60 4c ldub [ %i1 + 0x4c ], %g2 <== NOT EXECUTED
2004b30: 80 a0 80 08 cmp %g2, %o0 <== NOT EXECUTED
2004b34: 02 80 00 07 be 2004b50 <iproc+0x138> <== NOT EXECUTED
2004b38: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED
|| (c == tty->termios.c_cc[VEOL2])) {
2004b3c: c4 0e 60 51 ldub [ %i1 + 0x51 ], %g2 <== NOT EXECUTED
2004b40: 80 a0 80 08 cmp %g2, %o0 <== NOT EXECUTED
2004b44: 32 bf ff d0 bne,a 2004a84 <iproc+0x6c> <== NOT EXECUTED
2004b48: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO)
2004b4c: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED
2004b50: 12 80 00 18 bne 2004bb0 <iproc+0x198> <== NOT EXECUTED
2004b54: 01 00 00 00 nop <== NOT EXECUTED
echo (c, tty);
tty->cbuf[tty->ccount++] = c;
2004b58: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
2004b5c: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED
2004b60: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED
2004b64: e0 28 c0 01 stb %l0, [ %g3 + %g1 ] <== NOT EXECUTED
2004b68: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED
return 1;
2004b6c: 81 c7 e0 08 ret <== NOT EXECUTED
2004b70: 91 e8 20 01 restore %g0, 1, %o0 <== 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)) {
2004b74: 80 88 60 40 btst 0x40, %g1 <== NOT EXECUTED
2004b78: 32 bf ff d9 bne,a 2004adc <iproc+0xc4> <== NOT EXECUTED
2004b7c: a0 10 20 0d mov 0xd, %l0 <== NOT EXECUTED
c = '\r';
}
if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {
2004b80: 10 bf ff d8 b 2004ae0 <iproc+0xc8> <== NOT EXECUTED
2004b84: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED
/*
* FIXME: Should do IMAXBEL handling somehow
*/
if (tty->ccount < (CBUFSIZE-1)) {
if (tty->termios.c_lflag & ECHO)
echo (c, tty);
2004b88: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED
2004b8c: 7f ff fe f6 call 2004764 <echo> <== NOT EXECUTED
2004b90: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2004b94: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
tty->cbuf[tty->ccount++] = c;
2004b98: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED
2004b9c: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED
2004ba0: e0 28 c0 01 stb %l0, [ %g3 + %g1 ] <== NOT EXECUTED
2004ba4: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED
2004ba8: 81 c7 e0 08 ret <== NOT EXECUTED
2004bac: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
return 1;
}
else if ((c == tty->termios.c_cc[VEOL])
|| (c == tty->termios.c_cc[VEOL2])) {
if (tty->termios.c_lflag & ECHO)
echo (c, tty);
2004bb0: 7f ff fe ed call 2004764 <echo> <== NOT EXECUTED
2004bb4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
tty->cbuf[tty->ccount++] = c;
2004bb8: 10 bf ff e9 b 2004b5c <iproc+0x144> <== NOT EXECUTED
2004bbc: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
if (c == tty->termios.c_cc[VERASE]) {
erase (tty, 0);
return 0;
}
else if (c == tty->termios.c_cc[VKILL]) {
erase (tty, 1);
2004bc0: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2004bc4: 7f ff ff 08 call 20047e4 <erase> <== NOT EXECUTED
2004bc8: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
2004bcc: 81 c7 e0 08 ret <== NOT EXECUTED
2004bd0: 81 e8 00 00 restore <== NOT EXECUTED
}
else if (c == tty->termios.c_cc[VEOF]) {
return 1;
}
else if (c == '\n') {
if (tty->termios.c_lflag & (ECHO | ECHONL))
2004bd4: 22 80 00 05 be,a 2004be8 <iproc+0x1d0> <== NOT EXECUTED
2004bd8: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
echo (c, tty);
2004bdc: 7f ff fe e2 call 2004764 <echo> <== NOT EXECUTED
2004be0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
tty->cbuf[tty->ccount++] = c;
2004be4: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
2004be8: c4 06 60 1c ld [ %i1 + 0x1c ], %g2 <== NOT EXECUTED
2004bec: 86 10 20 0a mov 0xa, %g3 <== NOT EXECUTED
2004bf0: c6 28 80 01 stb %g3, [ %g2 + %g1 ] <== NOT EXECUTED
2004bf4: 82 00 60 01 inc %g1 <== NOT EXECUTED
2004bf8: c2 26 60 20 st %g1, [ %i1 + 0x20 ] <== NOT EXECUTED
return 1;
2004bfc: 81 c7 e0 08 ret <== NOT EXECUTED
2004c00: 91 e8 20 01 restore %g0, 1, %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]) {
erase (tty, 0);
2004c04: 92 10 20 00 clr %o1 <== NOT EXECUTED
2004c08: 7f ff fe f7 call 20047e4 <erase> <== NOT EXECUTED
2004c0c: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
2004c10: 81 c7 e0 08 ret <== NOT EXECUTED
2004c14: 81 e8 00 00 restore <== NOT EXECUTED
02023960 <kill>:
#if !defined(RTEMS_POSIX_API)
int kill( pid_t pid, int sig )
{
return 0;
}
2023960: 81 c3 e0 08 retl <== NOT EXECUTED
2023964: 90 10 20 00 clr %o0 ! 0 <PROM_START> <== NOT EXECUTED
0201b0d0 <libc_wrapup>:
extern void _wrapup_reent(struct _reent *);
extern void _reclaim_reent(struct _reent *);
void libc_wrapup(void)
{
201b0d0: 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()))
201b0d4: 03 00 80 77 sethi %hi(0x201dc00), %g1
201b0d8: c2 00 61 50 ld [ %g1 + 0x150 ], %g1 ! 201dd50 <_System_state_Current>
201b0dc: 80 a0 60 03 cmp %g1, 3
201b0e0: 02 80 00 04 be 201b0f0 <libc_wrapup+0x20> <== ALWAYS TAKEN
201b0e4: 03 00 80 72 sethi %hi(0x201c800), %g1
201b0e8: 81 c7 e0 08 ret <== NOT EXECUTED
201b0ec: 81 e8 00 00 restore <== NOT EXECUTED
/*
* This was already done if the user called exit() directly .
_wrapup_reent(0);
*/
if (_REENT != _global_impure_ptr) {
201b0f0: 21 00 80 74 sethi %hi(0x201d000), %l0
201b0f4: e2 00 63 60 ld [ %g1 + 0x360 ], %l1
201b0f8: c2 04 22 80 ld [ %l0 + 0x280 ], %g1
201b0fc: 80 a0 40 11 cmp %g1, %l1
201b100: 02 80 00 05 be 201b114 <libc_wrapup+0x44>
201b104: 01 00 00 00 nop
_wrapup_reent(_global_impure_ptr);
201b108: 40 00 01 80 call 201b708 <_wrapup_reent>
201b10c: 90 10 00 11 mov %l1, %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;
201b110: e2 24 22 80 st %l1, [ %l0 + 0x280 ]
*
* Should this be changed to do *all* file streams?
* _fwalk (_REENT, fclose);
*/
fclose (stdin);
201b114: 7f ff d5 27 call 20105b0 <fclose>
201b118: d0 04 60 04 ld [ %l1 + 4 ], %o0
fclose (stdout);
201b11c: c2 04 22 80 ld [ %l0 + 0x280 ], %g1
201b120: 7f ff d5 24 call 20105b0 <fclose>
201b124: d0 00 60 08 ld [ %g1 + 8 ], %o0
fclose (stderr);
201b128: c2 04 22 80 ld [ %l0 + 0x280 ], %g1
201b12c: f0 00 60 0c ld [ %g1 + 0xc ], %i0
201b130: 7f ff d5 20 call 20105b0 <fclose>
201b134: 81 e8 00 00 restore
0202d374 <link>:
int link(
const char *existing,
const char *new
)
{
202d374: 9d e3 bf 70 save %sp, -144, %sp
/*
* Get the node we are linking to.
*/
result = rtems_filesystem_evaluate_path( existing, strlen( existing ),
202d378: 40 00 89 db call 204fae4 <strlen>
202d37c: 90 10 00 18 mov %i0, %o0
202d380: a0 07 bf e4 add %fp, -28, %l0
202d384: 92 10 00 08 mov %o0, %o1
202d388: 94 10 20 00 clr %o2
202d38c: 90 10 00 18 mov %i0, %o0
202d390: 96 10 00 10 mov %l0, %o3
202d394: 98 10 20 01 mov 1, %o4
202d398: 7f ff 6d 32 call 2008860 <rtems_filesystem_evaluate_path>
202d39c: b0 10 3f ff mov -1, %i0
0, &existing_loc, true );
if ( result != 0 )
202d3a0: 80 a2 20 00 cmp %o0, 0
202d3a4: 12 80 00 31 bne 202d468 <link+0xf4>
202d3a8: 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 );
202d3ac: 90 10 00 19 mov %i1, %o0
202d3b0: 92 07 bf fc add %fp, -4, %o1
202d3b4: 7f ff 74 4d call 200a4e8 <rtems_filesystem_get_start_loc>
202d3b8: 94 10 00 11 mov %l1, %o2
if ( !parent_loc.ops->evalformake_h ) {
202d3bc: c2 07 bf dc ld [ %fp + -36 ], %g1
202d3c0: c2 00 60 04 ld [ %g1 + 4 ], %g1
202d3c4: 80 a0 60 00 cmp %g1, 0
202d3c8: 02 80 00 53 be 202d514 <link+0x1a0> <== NEVER TAKEN
202d3cc: d0 07 bf fc ld [ %fp + -4 ], %o0
rtems_filesystem_freenode( &existing_loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start );
202d3d0: 92 10 00 11 mov %l1, %o1
202d3d4: 90 06 40 08 add %i1, %o0, %o0
202d3d8: 9f c0 40 00 call %g1
202d3dc: 94 07 bf f8 add %fp, -8, %o2
if ( result != 0 ) {
202d3e0: b2 92 20 00 orcc %o0, 0, %i1
202d3e4: 12 80 00 3d bne 202d4d8 <link+0x164>
202d3e8: c2 07 bf f4 ld [ %fp + -12 ], %g1
/*
* Check to see if the caller is trying to link across file system
* boundaries.
*/
if ( parent_loc.mt_entry != existing_loc.mt_entry ) {
202d3ec: c4 07 bf e0 ld [ %fp + -32 ], %g2
202d3f0: 80 a0 80 01 cmp %g2, %g1
202d3f4: 12 80 00 1f bne 202d470 <link+0xfc>
202d3f8: c4 07 bf dc ld [ %fp + -36 ], %g2
rtems_filesystem_freenode( &existing_loc );
rtems_filesystem_freenode( &parent_loc );
rtems_set_errno_and_return_minus_one( EXDEV );
}
if ( !parent_loc.ops->link_h ) {
202d3fc: c2 00 a0 08 ld [ %g2 + 8 ], %g1
202d400: 80 a0 60 00 cmp %g1, 0
202d404: 02 80 00 54 be 202d554 <link+0x1e0> <== NEVER TAKEN
202d408: d4 07 bf f8 ld [ %fp + -8 ], %o2
rtems_filesystem_freenode( &existing_loc );
rtems_filesystem_freenode( &parent_loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start );
202d40c: 90 10 00 10 mov %l0, %o0
202d410: 9f c0 40 00 call %g1
202d414: 92 10 00 11 mov %l1, %o1
rtems_filesystem_freenode( &existing_loc );
202d418: c2 07 bf f0 ld [ %fp + -16 ], %g1
202d41c: 80 a0 60 00 cmp %g1, 0
202d420: 02 80 00 08 be 202d440 <link+0xcc> <== NEVER TAKEN
202d424: b0 10 00 08 mov %o0, %i0
202d428: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202d42c: 80 a0 60 00 cmp %g1, 0
202d430: 22 80 00 05 be,a 202d444 <link+0xd0> <== NEVER TAKEN
202d434: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED
202d438: 9f c0 40 00 call %g1
202d43c: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &parent_loc );
202d440: c2 07 bf dc ld [ %fp + -36 ], %g1
202d444: 80 a0 60 00 cmp %g1, 0
202d448: 02 80 00 41 be 202d54c <link+0x1d8> <== NEVER TAKEN
202d44c: 01 00 00 00 nop
202d450: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202d454: 80 a0 60 00 cmp %g1, 0
202d458: 02 80 00 3d be 202d54c <link+0x1d8> <== NEVER TAKEN
202d45c: 01 00 00 00 nop
202d460: 9f c0 40 00 call %g1
202d464: 90 10 00 11 mov %l1, %o0
return result;
}
202d468: 81 c7 e0 08 ret
202d46c: 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 ) {
rtems_filesystem_freenode( &existing_loc );
202d470: c2 07 bf f0 ld [ %fp + -16 ], %g1
202d474: 80 a0 60 00 cmp %g1, 0
202d478: 22 80 00 09 be,a 202d49c <link+0x128> <== NEVER TAKEN
202d47c: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED
202d480: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202d484: 80 a0 60 00 cmp %g1, 0
202d488: 22 80 00 05 be,a 202d49c <link+0x128> <== NEVER TAKEN
202d48c: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED
202d490: 9f c0 40 00 call %g1
202d494: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &parent_loc );
202d498: c2 07 bf dc ld [ %fp + -36 ], %g1
202d49c: 80 a0 60 00 cmp %g1, 0
202d4a0: 02 80 00 08 be 202d4c0 <link+0x14c> <== NEVER TAKEN
202d4a4: 01 00 00 00 nop
202d4a8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202d4ac: 80 a0 60 00 cmp %g1, 0
202d4b0: 02 80 00 04 be 202d4c0 <link+0x14c> <== NEVER TAKEN
202d4b4: 01 00 00 00 nop
202d4b8: 9f c0 40 00 call %g1
202d4bc: 90 10 00 11 mov %l1, %o0
rtems_set_errno_and_return_minus_one( EXDEV );
202d4c0: 40 00 6d e1 call 2048c44 <__errno>
202d4c4: b0 10 3f ff mov -1, %i0
202d4c8: 82 10 20 12 mov 0x12, %g1
202d4cc: c2 22 00 00 st %g1, [ %o0 ]
202d4d0: 81 c7 e0 08 ret
202d4d4: 81 e8 00 00 restore
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start );
if ( result != 0 ) {
rtems_filesystem_freenode( &existing_loc );
202d4d8: c2 07 bf f0 ld [ %fp + -16 ], %g1
202d4dc: 80 a0 60 00 cmp %g1, 0
202d4e0: 02 80 00 08 be 202d500 <link+0x18c> <== NEVER TAKEN
202d4e4: 01 00 00 00 nop
202d4e8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202d4ec: 80 a0 60 00 cmp %g1, 0
202d4f0: 02 80 00 04 be 202d500 <link+0x18c> <== NEVER TAKEN
202d4f4: 01 00 00 00 nop
202d4f8: 9f c0 40 00 call %g1
202d4fc: 90 10 00 10 mov %l0, %o0
rtems_set_errno_and_return_minus_one( result );
202d500: 40 00 6d d1 call 2048c44 <__errno>
202d504: b0 10 3f ff mov -1, %i0
202d508: f2 22 00 00 st %i1, [ %o0 ]
202d50c: 81 c7 e0 08 ret
202d510: 81 e8 00 00 restore
*/
rtems_filesystem_get_start_loc( new, &i, &parent_loc );
if ( !parent_loc.ops->evalformake_h ) {
rtems_filesystem_freenode( &existing_loc );
202d514: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
202d518: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202d51c: 02 80 00 08 be 202d53c <link+0x1c8> <== NOT EXECUTED
202d520: 01 00 00 00 nop <== NOT EXECUTED
202d524: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
202d528: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202d52c: 02 80 00 04 be 202d53c <link+0x1c8> <== NOT EXECUTED
202d530: 01 00 00 00 nop <== NOT EXECUTED
202d534: 9f c0 40 00 call %g1 <== NOT EXECUTED
202d538: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
}
if ( !parent_loc.ops->link_h ) {
rtems_filesystem_freenode( &existing_loc );
rtems_filesystem_freenode( &parent_loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
202d53c: 40 00 6d c2 call 2048c44 <__errno> <== NOT EXECUTED
202d540: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202d544: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
202d548: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202d54c: 81 c7 e0 08 ret <== NOT EXECUTED
202d550: 81 e8 00 00 restore <== NOT EXECUTED
rtems_filesystem_freenode( &parent_loc );
rtems_set_errno_and_return_minus_one( EXDEV );
}
if ( !parent_loc.ops->link_h ) {
rtems_filesystem_freenode( &existing_loc );
202d554: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
202d558: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202d55c: 02 80 00 0a be 202d584 <link+0x210> <== NOT EXECUTED
202d560: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
202d564: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
202d568: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202d56c: 02 80 00 06 be 202d584 <link+0x210> <== NOT EXECUTED
202d570: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
202d574: 9f c0 40 00 call %g1 <== NOT EXECUTED
202d578: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202d57c: c4 07 bf dc ld [ %fp + -36 ], %g2 <== NOT EXECUTED
rtems_filesystem_freenode( &parent_loc );
202d580: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
202d584: 02 bf ff ee be 202d53c <link+0x1c8> <== NOT EXECUTED
202d588: 01 00 00 00 nop <== NOT EXECUTED
202d58c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
202d590: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202d594: 02 bf ff ea be 202d53c <link+0x1c8> <== NOT EXECUTED
202d598: 01 00 00 00 nop <== NOT EXECUTED
202d59c: 9f c0 40 00 call %g1 <== NOT EXECUTED
202d5a0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
202d5a4: 30 bf ff e6 b,a 202d53c <link+0x1c8> <== NOT EXECUTED
0201af2c <lseek>:
off_t lseek(
int fd,
off_t offset,
int whence
)
{
201af2c: 9d e3 bf a0 save %sp, -96, %sp
rtems_libio_t *iop;
off_t old_offset;
off_t status;
rtems_libio_check_fd( fd );
201af30: 03 00 80 74 sethi %hi(0x201d000), %g1
201af34: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 ! 201d044 <rtems_libio_number_iops>
off_t lseek(
int fd,
off_t offset,
int whence
)
{
201af38: 84 10 00 19 mov %i1, %g2
rtems_libio_t *iop;
off_t old_offset;
off_t status;
rtems_libio_check_fd( fd );
201af3c: 80 a6 00 01 cmp %i0, %g1
201af40: 1a 80 00 46 bcc 201b058 <lseek+0x12c> <== NEVER TAKEN
201af44: 86 10 00 1a mov %i2, %g3
iop = rtems_libio_iop( fd );
201af48: 03 00 80 76 sethi %hi(0x201d800), %g1
201af4c: e0 00 61 d8 ld [ %g1 + 0x1d8 ], %l0 ! 201d9d8 <rtems_libio_iops>
201af50: 83 2e 20 06 sll %i0, 6, %g1
201af54: b1 2e 20 03 sll %i0, 3, %i0
201af58: b0 06 00 01 add %i0, %g1, %i0
201af5c: a0 04 00 18 add %l0, %i0, %l0
rtems_libio_check_is_open(iop);
201af60: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
201af64: 80 88 61 00 btst 0x100, %g1
201af68: 02 80 00 3c be 201b058 <lseek+0x12c> <== NEVER TAKEN
201af6c: 01 00 00 00 nop
/*
* Check as many errors as possible before touching iop->offset.
*/
if ( !iop->handlers->lseek_h )
201af70: c2 04 20 40 ld [ %l0 + 0x40 ], %g1
201af74: c8 00 60 14 ld [ %g1 + 0x14 ], %g4
201af78: 80 a1 20 00 cmp %g4, 0
201af7c: 02 80 00 3f be 201b078 <lseek+0x14c> <== NEVER TAKEN
201af80: 80 a6 e0 01 cmp %i3, 1
/*
* Now process the lseek().
*/
old_offset = iop->offset;
switch ( whence ) {
201af84: 02 80 00 31 be 201b048 <lseek+0x11c>
201af88: e4 1c 20 10 ldd [ %l0 + 0x10 ], %l2
201af8c: 80 a6 e0 02 cmp %i3, 2
201af90: 02 80 00 11 be 201afd4 <lseek+0xa8>
201af94: 80 a6 e0 00 cmp %i3, 0
201af98: 12 80 00 22 bne 201b020 <lseek+0xf4>
201af9c: 01 00 00 00 nop
case SEEK_SET:
iop->offset = offset;
201afa0: c4 3c 20 10 std %g2, [ %l0 + 0x10 ]
/*
* At this time, handlers assume iop->offset has the desired
* new offset.
*/
status = (*iop->handlers->lseek_h)( iop, offset, whence );
201afa4: c2 00 60 14 ld [ %g1 + 0x14 ], %g1
201afa8: 92 10 00 02 mov %g2, %o1
201afac: 94 10 00 03 mov %g3, %o2
201afb0: 96 10 00 1b mov %i3, %o3
201afb4: 9f c0 40 00 call %g1
201afb8: 90 10 00 10 mov %l0, %o0
if ( status == (off_t) -1 )
201afbc: 80 a2 3f ff cmp %o0, -1
201afc0: 02 80 00 13 be 201b00c <lseek+0xe0> <== NEVER TAKEN
201afc4: 80 a2 7f ff cmp %o1, -1
/*
* So if the operation failed, we have to restore iop->offset.
*/
return status;
}
201afc8: b2 10 00 09 mov %o1, %i1
201afcc: 81 c7 e0 08 ret
201afd0: 91 e8 00 08 restore %g0, %o0, %o0
case SEEK_CUR:
iop->offset += offset;
break;
case SEEK_END:
iop->offset = iop->size + offset;
201afd4: d8 1c 20 08 ldd [ %l0 + 8 ], %o4
/*
* At this time, handlers assume iop->offset has the desired
* new offset.
*/
status = (*iop->handlers->lseek_h)( iop, offset, whence );
201afd8: c2 00 60 14 ld [ %g1 + 0x14 ], %g1
case SEEK_CUR:
iop->offset += offset;
break;
case SEEK_END:
iop->offset = iop->size + offset;
201afdc: 9a 86 80 0d addcc %i2, %o5, %o5
201afe0: 98 46 40 0c addx %i1, %o4, %o4
/*
* At this time, handlers assume iop->offset has the desired
* new offset.
*/
status = (*iop->handlers->lseek_h)( iop, offset, whence );
201afe4: 92 10 00 02 mov %g2, %o1
case SEEK_CUR:
iop->offset += offset;
break;
case SEEK_END:
iop->offset = iop->size + offset;
201afe8: d8 3c 20 10 std %o4, [ %l0 + 0x10 ]
/*
* At this time, handlers assume iop->offset has the desired
* new offset.
*/
status = (*iop->handlers->lseek_h)( iop, offset, whence );
201afec: 94 10 00 03 mov %g3, %o2
201aff0: 96 10 00 1b mov %i3, %o3
201aff4: 9f c0 40 00 call %g1
201aff8: 90 10 00 10 mov %l0, %o0
if ( status == (off_t) -1 )
201affc: 80 a2 3f ff cmp %o0, -1
201b000: 12 bf ff f3 bne 201afcc <lseek+0xa0>
201b004: b2 10 00 09 mov %o1, %i1
201b008: 80 a2 7f ff cmp %o1, -1
201b00c: 12 bf ff f0 bne 201afcc <lseek+0xa0> <== NEVER TAKEN
201b010: b2 10 00 09 mov %o1, %i1
iop->offset = old_offset;
201b014: e4 3c 20 10 std %l2, [ %l0 + 0x10 ]
/*
* So if the operation failed, we have to restore iop->offset.
*/
return status;
}
201b018: 81 c7 e0 08 ret
201b01c: 91 e8 00 08 restore %g0, %o0, %o0
case SEEK_END:
iop->offset = iop->size + offset;
break;
default:
rtems_set_errno_and_return_minus_one( EINVAL );
201b020: 7f ff d5 0c call 2010450 <__errno>
201b024: 01 00 00 00 nop
201b028: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16>
201b02c: c2 22 00 00 st %g1, [ %o0 ]
201b030: 11 3f ff ff sethi %hi(0xfffffc00), %o0
201b034: 90 12 23 ff or %o0, 0x3ff, %o0 ! ffffffff <RAM_END+0xfdbfffff>
201b038: 92 10 00 08 mov %o0, %o1
/*
* So if the operation failed, we have to restore iop->offset.
*/
return status;
}
201b03c: b0 10 00 08 mov %o0, %i0
201b040: 81 c7 e0 08 ret
201b044: 93 e8 00 09 restore %g0, %o1, %o1
case SEEK_SET:
iop->offset = offset;
break;
case SEEK_CUR:
iop->offset += offset;
201b048: 9a 86 80 13 addcc %i2, %l3, %o5
201b04c: 98 46 40 12 addx %i1, %l2, %o4
break;
201b050: 10 bf ff d5 b 201afa4 <lseek+0x78>
201b054: d8 3c 20 10 std %o4, [ %l0 + 0x10 ]
off_t old_offset;
off_t status;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
201b058: 7f ff d4 fe call 2010450 <__errno> <== NOT EXECUTED
201b05c: 01 00 00 00 nop <== NOT EXECUTED
201b060: 82 10 20 09 mov 9, %g1 ! 9 <PROM_START+0x9> <== NOT EXECUTED
201b064: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
201b068: 11 3f ff ff sethi %hi(0xfffffc00), %o0 <== NOT EXECUTED
201b06c: 90 12 23 ff or %o0, 0x3ff, %o0 ! ffffffff <RAM_END+0xfdbfffff><== NOT EXECUTED
201b070: 10 bf ff d6 b 201afc8 <lseek+0x9c> <== NOT EXECUTED
201b074: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
/*
* Check as many errors as possible before touching iop->offset.
*/
if ( !iop->handlers->lseek_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
201b078: 7f ff d4 f6 call 2010450 <__errno> <== NOT EXECUTED
201b07c: 01 00 00 00 nop <== NOT EXECUTED
201b080: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
201b084: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
201b088: 11 3f ff ff sethi %hi(0xfffffc00), %o0 <== NOT EXECUTED
201b08c: 90 12 23 ff or %o0, 0x3ff, %o0 ! ffffffff <RAM_END+0xfdbfffff><== NOT EXECUTED
201b090: 10 bf ff ce b 201afc8 <lseek+0x9c> <== NOT EXECUTED
201b094: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
0202d750 <lstat>:
int _STAT_NAME(
const char *path,
struct stat *buf
)
{
202d750: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
202d754: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
202d758: 02 80 00 34 be 202d828 <lstat+0xd8> <== NOT EXECUTED
202d75c: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
status = rtems_filesystem_evaluate_path( path, strlen( path ),
202d760: 40 00 88 e1 call 204fae4 <strlen> <== NOT EXECUTED
202d764: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
202d768: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED
202d76c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
202d770: 94 10 20 00 clr %o2 <== NOT EXECUTED
202d774: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
202d778: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
202d77c: 98 10 20 00 clr %o4 <== NOT EXECUTED
202d780: 7f ff 6c 38 call 2008860 <rtems_filesystem_evaluate_path> <== NOT EXECUTED
202d784: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
0, &loc, _STAT_FOLLOW_LINKS );
if ( status != 0 )
202d788: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202d78c: 12 80 00 25 bne 202d820 <lstat+0xd0> <== NOT EXECUTED
202d790: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
return -1;
if ( !loc.handlers->fstat_h ){
202d794: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 <== NOT EXECUTED
202d798: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
202d79c: 02 80 00 29 be 202d840 <lstat+0xf0> <== NOT EXECUTED
202d7a0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
/*
* Zero out the stat structure so the various support
* versions of stat don't have to.
*/
memset( buf, 0, sizeof(struct stat) );
202d7a4: c0 26 40 00 clr [ %i1 ] <== NOT EXECUTED
202d7a8: c0 26 60 04 clr [ %i1 + 4 ] <== NOT EXECUTED
202d7ac: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED
202d7b0: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED
202d7b4: c0 26 60 10 clr [ %i1 + 0x10 ] <== NOT EXECUTED
202d7b8: c0 26 60 14 clr [ %i1 + 0x14 ] <== NOT EXECUTED
202d7bc: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED
202d7c0: c0 26 60 1c clr [ %i1 + 0x1c ] <== NOT EXECUTED
202d7c4: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED
202d7c8: c0 26 60 24 clr [ %i1 + 0x24 ] <== NOT EXECUTED
202d7cc: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED
202d7d0: c0 26 60 2c clr [ %i1 + 0x2c ] <== NOT EXECUTED
202d7d4: c0 26 60 30 clr [ %i1 + 0x30 ] <== NOT EXECUTED
202d7d8: c0 26 60 34 clr [ %i1 + 0x34 ] <== NOT EXECUTED
202d7dc: c0 26 60 38 clr [ %i1 + 0x38 ] <== NOT EXECUTED
202d7e0: c0 26 60 3c clr [ %i1 + 0x3c ] <== NOT EXECUTED
202d7e4: c0 26 60 40 clr [ %i1 + 0x40 ] <== NOT EXECUTED
202d7e8: c0 26 60 44 clr [ %i1 + 0x44 ] <== NOT EXECUTED
status = (*loc.handlers->fstat_h)( &loc, buf );
202d7ec: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED
202d7f0: 9f c0 40 00 call %g1 <== NOT EXECUTED
202d7f4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
202d7f8: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
202d7fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202d800: 02 80 00 08 be 202d820 <lstat+0xd0> <== NOT EXECUTED
202d804: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
202d808: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
202d80c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202d810: 02 80 00 1a be 202d878 <lstat+0x128> <== NOT EXECUTED
202d814: 01 00 00 00 nop <== NOT EXECUTED
202d818: 9f c0 40 00 call %g1 <== NOT EXECUTED
202d81c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return status;
}
202d820: 81 c7 e0 08 ret <== NOT EXECUTED
202d824: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
rtems_set_errno_and_return_minus_one( EFAULT );
202d828: 40 00 6d 07 call 2048c44 <__errno> <== NOT EXECUTED
202d82c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202d830: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED
202d834: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202d838: 81 c7 e0 08 ret <== NOT EXECUTED
202d83c: 81 e8 00 00 restore <== NOT EXECUTED
0, &loc, _STAT_FOLLOW_LINKS );
if ( status != 0 )
return -1;
if ( !loc.handlers->fstat_h ){
rtems_filesystem_freenode( &loc );
202d840: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
202d844: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202d848: 02 80 00 08 be 202d868 <lstat+0x118> <== NOT EXECUTED
202d84c: 01 00 00 00 nop <== NOT EXECUTED
202d850: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
202d854: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202d858: 02 80 00 04 be 202d868 <lstat+0x118> <== NOT EXECUTED
202d85c: 01 00 00 00 nop <== NOT EXECUTED
202d860: 9f c0 40 00 call %g1 <== NOT EXECUTED
202d864: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
202d868: 40 00 6c f7 call 2048c44 <__errno> <== NOT EXECUTED
202d86c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202d870: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
202d874: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202d878: 81 c7 e0 08 ret <== NOT EXECUTED
202d87c: 81 e8 00 00 restore <== NOT EXECUTED
0200308c <malloc>:
size_t size
)
{
void *return_this;
MSBUMP(malloc_calls, 1);
200308c: 9d e3 bf a0 save %sp, -96, %sp
2003090: 03 00 80 76 sethi %hi(0x201d800), %g1
2003094: 82 10 61 f0 or %g1, 0x1f0, %g1 ! 201d9f0 <rtems_malloc_statistics>
2003098: c4 00 60 04 ld [ %g1 + 4 ], %g2
200309c: a0 10 00 18 mov %i0, %l0
20030a0: 84 00 a0 01 inc %g2
/*
* If some free's have been deferred, then do them now.
*/
malloc_deferred_frees_process();
20030a4: 7f ff ff b0 call 2002f64 <malloc_deferred_frees_process>
20030a8: c4 20 60 04 st %g2, [ %g1 + 4 ]
/*
* Validate the parameters
*/
if ( !size )
20030ac: 80 a6 20 00 cmp %i0, 0
20030b0: 02 80 00 24 be 2003140 <malloc+0xb4> <== NEVER TAKEN
20030b4: 03 00 80 77 sethi %hi(0x201dc00), %g1
return (void *) 0;
/*
* Do not attempt to allocate memory if not in correct system state.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
20030b8: c2 00 61 50 ld [ %g1 + 0x150 ], %g1 ! 201dd50 <_System_state_Current>
20030bc: 80 a0 60 03 cmp %g1, 3
20030c0: 02 80 00 1b be 200312c <malloc+0xa0>
20030c4: 03 00 80 74 sethi %hi(0x201d000), %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 );
20030c8: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 ! 201d050 <RTEMS_Malloc_Heap>
20030cc: 92 10 00 10 mov %l0, %o1
20030d0: 94 10 20 00 clr %o2
20030d4: 40 00 15 38 call 20085b4 <_Protected_heap_Allocate_aligned_with_boundary>
20030d8: 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 ) {
20030dc: b0 92 20 00 orcc %o0, 0, %i0
20030e0: 02 80 00 1a be 2003148 <malloc+0xbc>
20030e4: a2 10 00 18 mov %i0, %l1
}
/*
* If the user wants us to dirty the allocated memory, then do it.
*/
if ( rtems_malloc_dirty_helper )
20030e8: 03 00 80 75 sethi %hi(0x201d400), %g1
20030ec: c2 00 63 40 ld [ %g1 + 0x340 ], %g1 ! 201d740 <rtems_malloc_dirty_helper>
20030f0: 80 a0 60 00 cmp %g1, 0
20030f4: 02 80 00 04 be 2003104 <malloc+0x78> <== ALWAYS TAKEN
20030f8: 92 10 00 10 mov %l0, %o1
(*rtems_malloc_dirty_helper)( return_this, size );
20030fc: 9f c0 40 00 call %g1 <== NOT EXECUTED
2003100: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
/*
* If configured, update the statistics
*/
if ( rtems_malloc_statistics_helpers )
2003104: 03 00 80 75 sethi %hi(0x201d400), %g1
2003108: c2 00 63 38 ld [ %g1 + 0x338 ], %g1 ! 201d738 <rtems_malloc_statistics_helpers>
200310c: 80 a0 60 00 cmp %g1, 0
2003110: 02 80 00 05 be 2003124 <malloc+0x98>
2003114: b0 10 00 11 mov %l1, %i0
(*rtems_malloc_statistics_helpers->at_malloc)(return_this);
2003118: c2 00 60 04 ld [ %g1 + 4 ], %g1
200311c: 9f c0 40 00 call %g1
2003120: 90 10 00 11 mov %l1, %o0
2003124: 81 c7 e0 08 ret
2003128: 81 e8 00 00 restore
return (void *) 0;
/*
* Do not attempt to allocate memory if not in correct system state.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
200312c: 7f ff ff 75 call 2002f00 <malloc_is_system_state_OK>
2003130: 01 00 00 00 nop
2003134: 80 8a 20 ff btst 0xff, %o0
2003138: 12 bf ff e4 bne 20030c8 <malloc+0x3c> <== ALWAYS TAKEN
200313c: 03 00 80 74 sethi %hi(0x201d000), %g1
if (rtems_malloc_boundary_helpers)
(*rtems_malloc_boundary_helpers->at_malloc)(return_this, size);
#endif
return return_this;
}
2003140: 81 c7 e0 08 ret <== NOT EXECUTED
2003144: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
*/
return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );
if ( !return_this ) {
if (rtems_malloc_sbrk_helpers)
2003148: 03 00 80 75 sethi %hi(0x201d400), %g1
200314c: c2 00 63 3c ld [ %g1 + 0x33c ], %g1 ! 201d73c <rtems_malloc_sbrk_helpers>
2003150: 80 a0 60 00 cmp %g1, 0
2003154: 02 80 00 08 be 2003174 <malloc+0xe8> <== ALWAYS TAKEN
2003158: 01 00 00 00 nop
return_this = (*rtems_malloc_sbrk_helpers->extend)( size );
200315c: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED
2003160: 9f c0 40 00 call %g1 <== NOT EXECUTED
2003164: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if ( !return_this ) {
2003168: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
200316c: 12 bf ff e0 bne 20030ec <malloc+0x60> <== NOT EXECUTED
2003170: 03 00 80 75 sethi %hi(0x201d400), %g1 <== NOT EXECUTED
errno = ENOMEM;
2003174: 40 00 34 b7 call 2010450 <__errno>
2003178: 01 00 00 00 nop
200317c: 82 10 20 0c mov 0xc, %g1 ! c <PROM_START+0xc>
2003180: c2 22 00 00 st %g1, [ %o0 ]
return (void *) 0;
2003184: 81 c7 e0 08 ret
2003188: 81 e8 00 00 restore
02002f48 <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 );
2002f48: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
2002f4c: 11 00 80 76 sethi %hi(0x201d800), %o0 <== NOT EXECUTED
2002f50: 90 12 21 e4 or %o0, 0x1e4, %o0 ! 201d9e4 <RTEMS_Malloc_GC_list><== NOT EXECUTED
2002f54: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2002f58: 40 00 10 d2 call 20072a0 <_Chain_Append> <== NOT EXECUTED
2002f5c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02002f64 <malloc_deferred_frees_process>:
void malloc_deferred_frees_process(void)
{
2002f64: 9d e3 bf a0 save %sp, -96, %sp
2002f68: 21 00 80 76 sethi %hi(0x201d800), %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)
2002f6c: 10 80 00 04 b 2002f7c <malloc_deferred_frees_process+0x18>
2002f70: a0 14 21 e4 or %l0, 0x1e4, %l0 ! 201d9e4 <RTEMS_Malloc_GC_list>
free(to_be_freed);
2002f74: 7f ff ff 5e call 2002cec <free> <== NOT EXECUTED
2002f78: 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 );
2002f7c: 40 00 10 df call 20072f8 <_Chain_Get>
2002f80: 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)
2002f84: 80 a2 20 00 cmp %o0, 0
2002f88: 12 bf ff fb bne 2002f74 <malloc_deferred_frees_process+0x10><== NEVER TAKEN
2002f8c: 01 00 00 00 nop
free(to_be_freed);
}
2002f90: 81 c7 e0 08 ret
2002f94: 81 e8 00 00 restore
02002f00 <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 )
2002f00: 03 00 80 76 sethi %hi(0x201d800), %g1
2002f04: c2 00 63 b0 ld [ %g1 + 0x3b0 ], %g1 ! 201dbb0 <_Thread_Dispatch_disable_level>
2002f08: 80 a0 60 00 cmp %g1, 0
2002f0c: 12 80 00 06 bne 2002f24 <malloc_is_system_state_OK+0x24> <== NEVER TAKEN
2002f10: 90 10 20 00 clr %o0
return false;
if ( _ISR_Nest_level > 0 )
2002f14: 03 00 80 77 sethi %hi(0x201dc00), %g1
2002f18: c2 00 60 4c ld [ %g1 + 0x4c ], %g1 ! 201dc4c <_ISR_Nest_level>
#include "malloc_p.h"
rtems_chain_control RTEMS_Malloc_GC_list;
bool malloc_is_system_state_OK(void)
2002f1c: 80 a0 00 01 cmp %g0, %g1
2002f20: 90 60 3f ff subx %g0, -1, %o0
if ( _ISR_Nest_level > 0 )
return false;
return true;
}
2002f24: 81 c3 e0 08 retl
0200e220 <memfile_alloc_block>:
*/
int memfile_blocks_allocated = 0;
void *memfile_alloc_block(void)
{
200e220: 9d e3 bf a0 save %sp, -96, %sp
void *memory;
memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK);
200e224: 03 00 80 75 sethi %hi(0x201d400), %g1
200e228: d2 00 63 4c ld [ %g1 + 0x34c ], %o1 ! 201d74c <imfs_memfile_bytes_per_block>
200e22c: 7f ff d2 0d call 2002a60 <calloc>
200e230: 90 10 20 01 mov 1, %o0
if ( memory )
200e234: 80 a2 20 00 cmp %o0, 0
200e238: 02 80 00 05 be 200e24c <memfile_alloc_block+0x2c> <== NEVER TAKEN
200e23c: 03 00 80 76 sethi %hi(0x201d800), %g1
memfile_blocks_allocated++;
200e240: c4 00 60 60 ld [ %g1 + 0x60 ], %g2 ! 201d860 <memfile_blocks_allocated>
200e244: 84 00 a0 01 inc %g2
200e248: c4 20 60 60 st %g2, [ %g1 + 0x60 ]
return memory;
}
200e24c: 81 c7 e0 08 ret
200e250: 91 e8 00 08 restore %g0, %o0, %o0
0200e7c8 <memfile_check_rmnod>:
return memfile_check_rmnod( the_jnode );
}
int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){
200e7c8: 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) ) {
200e7cc: 7f ff f8 68 call 200c96c <rtems_libio_is_file_open>
200e7d0: 90 10 00 18 mov %i0, %o0
200e7d4: 80 a2 20 00 cmp %o0, 0
200e7d8: 12 80 00 13 bne 200e824 <memfile_check_rmnod+0x5c>
200e7dc: 01 00 00 00 nop
200e7e0: c2 16 20 34 lduh [ %i0 + 0x34 ], %g1
200e7e4: 80 a0 60 00 cmp %g1, 0
200e7e8: 12 80 00 0f bne 200e824 <memfile_check_rmnod+0x5c> <== NEVER TAKEN
200e7ec: 03 00 80 74 sethi %hi(0x201d000), %g1
/*
* Is the rtems_filesystem_current is this node?
*/
if ( rtems_filesystem_current.node_access == the_jnode )
200e7f0: c2 00 62 10 ld [ %g1 + 0x210 ], %g1 ! 201d210 <rtems_current_user_env>
200e7f4: c4 00 60 04 ld [ %g1 + 4 ], %g2
200e7f8: 80 a0 80 18 cmp %g2, %i0
200e7fc: 22 80 00 02 be,a 200e804 <memfile_check_rmnod+0x3c> <== NEVER TAKEN
200e800: 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)
200e804: c2 06 20 4c ld [ %i0 + 0x4c ], %g1
200e808: 80 a0 60 06 cmp %g1, 6
200e80c: 02 80 00 04 be 200e81c <memfile_check_rmnod+0x54> <== NEVER TAKEN
200e810: 01 00 00 00 nop
IMFS_memfile_remove( the_jnode );
200e814: 7f ff ff 7a call 200e5fc <IMFS_memfile_remove>
200e818: 90 10 00 18 mov %i0, %o0
free( the_jnode );
200e81c: 7f ff d1 34 call 2002cec <free>
200e820: 90 10 00 18 mov %i0, %o0
}
return 0;
}
200e824: 81 c7 e0 08 ret
200e828: 91 e8 20 00 restore %g0, 0, %o0
0200e51c <memfile_free_blocks_in_table>:
void memfile_free_blocks_in_table(
block_p **block_table,
int entries
)
{
200e51c: 9d e3 bf a0 save %sp, -96, %sp
/*
* Perform internal consistency checks
*/
assert( block_table );
200e520: 80 a6 20 00 cmp %i0, 0
200e524: 02 80 00 16 be 200e57c <memfile_free_blocks_in_table+0x60><== NEVER TAKEN
200e528: 80 a6 60 00 cmp %i1, 0
* Now go through all the slots in the table and free the memory.
*/
b = *block_table;
for ( i=0 ; i<entries ; i++ ) {
200e52c: 04 80 00 0f ble 200e568 <memfile_free_blocks_in_table+0x4c><== NEVER TAKEN
200e530: d0 06 00 00 ld [ %i0 ], %o0
200e534: a0 10 00 08 mov %o0, %l0
200e538: a2 10 20 00 clr %l1
if ( b[i] ) {
200e53c: d0 04 00 00 ld [ %l0 ], %o0
200e540: 80 a2 20 00 cmp %o0, 0
200e544: 02 80 00 05 be 200e558 <memfile_free_blocks_in_table+0x3c>
200e548: a2 04 60 01 inc %l1
memfile_free_block( b[i] );
200e54c: 7f ff ff 2c call 200e1fc <memfile_free_block>
200e550: 01 00 00 00 nop
b[i] = 0;
200e554: 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++ ) {
200e558: 80 a6 40 11 cmp %i1, %l1
200e55c: 14 bf ff f8 bg 200e53c <memfile_free_blocks_in_table+0x20>
200e560: a0 04 20 04 add %l0, 4, %l0
200e564: d0 06 00 00 ld [ %i0 ], %o0
/*
* Now that all the blocks in the block table are free, we can
* free the block table itself.
*/
memfile_free_block( *block_table );
200e568: 7f ff ff 25 call 200e1fc <memfile_free_block>
200e56c: 01 00 00 00 nop
*block_table = 0;
200e570: c0 26 00 00 clr [ %i0 ]
}
200e574: 81 c7 e0 08 ret
200e578: 81 e8 00 00 restore
/*
* Perform internal consistency checks
*/
assert( block_table );
200e57c: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED
200e580: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED
200e584: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED
200e588: 90 12 21 b0 or %o0, 0x1b0, %o0 <== NOT EXECUTED
200e58c: 94 12 a3 20 or %o2, 0x320, %o2 <== NOT EXECUTED
200e590: 96 12 e2 38 or %o3, 0x238, %o3 <== NOT EXECUTED
200e594: 7f ff f8 55 call 200c6e8 <__assert_func> <== NOT EXECUTED
200e598: 92 10 21 b3 mov 0x1b3, %o1 <== NOT EXECUTED
0200eae8 <memfile_ftruncate>:
int memfile_ftruncate(
rtems_libio_t *iop,
rtems_off64_t length
)
{
200eae8: 9d e3 bf 98 save %sp, -104, %sp
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
200eaec: e0 06 20 3c ld [ %i0 + 0x3c ], %l0
* 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 )
200eaf0: c2 04 20 50 ld [ %l0 + 0x50 ], %g1
200eaf4: 80 a0 40 19 cmp %g1, %i1
200eaf8: 06 80 00 13 bl 200eb44 <memfile_ftruncate+0x5c> <== NEVER TAKEN
200eafc: 90 10 00 10 mov %l0, %o0
200eb00: 22 80 00 0d be,a 200eb34 <memfile_ftruncate+0x4c> <== ALWAYS TAKEN
200eb04: c2 04 20 54 ld [ %l0 + 0x54 ], %g1
* 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;
200eb08: f2 24 20 50 st %i1, [ %l0 + 0x50 ] <== NOT EXECUTED
200eb0c: f4 24 20 54 st %i2, [ %l0 + 0x54 ]
iop->size = the_jnode->info.file.size;
200eb10: f4 26 20 0c st %i2, [ %i0 + 0xc ]
200eb14: f2 26 20 08 st %i1, [ %i0 + 8 ]
IMFS_update_atime( the_jnode );
200eb18: 90 07 bf f8 add %fp, -8, %o0
200eb1c: 7f ff d0 9f call 2002d98 <gettimeofday>
200eb20: 92 10 20 00 clr %o1
200eb24: c2 07 bf f8 ld [ %fp + -8 ], %g1
200eb28: c2 24 20 40 st %g1, [ %l0 + 0x40 ]
return 0;
}
200eb2c: 81 c7 e0 08 ret
200eb30: 91 e8 20 00 restore %g0, 0, %o0
* 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 )
200eb34: 80 a0 40 1a cmp %g1, %i2
200eb38: 3a bf ff f5 bcc,a 200eb0c <memfile_ftruncate+0x24> <== ALWAYS TAKEN
200eb3c: f2 24 20 50 st %i1, [ %l0 + 0x50 ]
return IMFS_memfile_extend( the_jnode, length );
200eb40: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
200eb44: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
200eb48: 7f ff ff 83 call 200e954 <IMFS_memfile_extend> <== NOT EXECUTED
200eb4c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
200eb50: 81 c7 e0 08 ret <== NOT EXECUTED
200eb54: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0200eb58 <memfile_lseek>:
rtems_off64_t memfile_lseek(
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
200eb58: 9d e3 bf a0 save %sp, -96, %sp
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
200eb5c: e0 06 20 3c ld [ %i0 + 0x3c ], %l0
if (the_jnode->type == IMFS_LINEAR_FILE) {
200eb60: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
200eb64: 80 a0 60 06 cmp %g1, 6
200eb68: 02 80 00 0f be 200eba4 <memfile_lseek+0x4c> <== NEVER TAKEN
200eb6c: 90 10 00 10 mov %l0, %o0
if (iop->offset > the_jnode->info.linearfile.size)
iop->offset = the_jnode->info.linearfile.size;
}
else { /* Must be a block file (IMFS_MEMORY_FILE). */
if (IMFS_memfile_extend( the_jnode, iop->offset ))
200eb70: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2
200eb74: 92 10 00 02 mov %g2, %o1
200eb78: 7f ff ff 77 call 200e954 <IMFS_memfile_extend>
200eb7c: 94 10 00 03 mov %g3, %o2
200eb80: 80 a2 20 00 cmp %o0, 0
200eb84: 12 80 00 1b bne 200ebf0 <memfile_lseek+0x98> <== NEVER TAKEN
200eb88: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOSPC );
iop->size = the_jnode->info.file.size;
200eb8c: d8 1c 20 50 ldd [ %l0 + 0x50 ], %o4
200eb90: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2
200eb94: d8 3e 20 08 std %o4, [ %i0 + 8 ]
}
return iop->offset;
}
200eb98: b2 10 00 03 mov %g3, %i1
200eb9c: 81 c7 e0 08 ret
200eba0: 91 e8 00 02 restore %g0, %g2, %o0
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
if (the_jnode->type == IMFS_LINEAR_FILE) {
if (iop->offset > the_jnode->info.linearfile.size)
200eba4: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2 <== NOT EXECUTED
200eba8: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
200ebac: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
200ebb0: 14 80 00 0c bg 200ebe0 <memfile_lseek+0x88> <== NOT EXECUTED
200ebb4: c8 06 20 14 ld [ %i0 + 0x14 ], %g4 <== NOT EXECUTED
200ebb8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
200ebbc: 02 80 00 07 be 200ebd8 <memfile_lseek+0x80> <== NOT EXECUTED
200ebc0: 80 a1 00 03 cmp %g4, %g3 <== NOT EXECUTED
200ebc4: 84 10 00 01 mov %g1, %g2 <== NOT EXECUTED
200ebc8: 86 10 00 04 mov %g4, %g3 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSPC );
iop->size = the_jnode->info.file.size;
}
return iop->offset;
}
200ebcc: b0 10 00 02 mov %g2, %i0 <== NOT EXECUTED
200ebd0: 81 c7 e0 08 ret <== NOT EXECUTED
200ebd4: 93 e8 00 03 restore %g0, %g3, %o1 <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
if (the_jnode->type == IMFS_LINEAR_FILE) {
if (iop->offset > the_jnode->info.linearfile.size)
200ebd8: 28 bf ff fc bleu,a 200ebc8 <memfile_lseek+0x70> <== NOT EXECUTED
200ebdc: 84 10 00 01 mov %g1, %g2 <== NOT EXECUTED
iop->offset = the_jnode->info.linearfile.size;
200ebe0: c4 3e 20 10 std %g2, [ %i0 + 0x10 ] <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSPC );
iop->size = the_jnode->info.file.size;
}
return iop->offset;
}
200ebe4: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED
200ebe8: 81 c7 e0 08 ret <== NOT EXECUTED
200ebec: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
if (iop->offset > the_jnode->info.linearfile.size)
iop->offset = the_jnode->info.linearfile.size;
}
else { /* Must be a block file (IMFS_MEMORY_FILE). */
if (IMFS_memfile_extend( the_jnode, iop->offset ))
rtems_set_errno_and_return_minus_one( ENOSPC );
200ebf0: 40 00 06 18 call 2010450 <__errno> <== NOT EXECUTED
200ebf4: 01 00 00 00 nop <== NOT EXECUTED
200ebf8: 82 10 20 1c mov 0x1c, %g1 ! 1c <PROM_START+0x1c> <== NOT EXECUTED
200ebfc: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED
200ec00: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200ec04: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
200ec08: 10 bf ff e4 b 200eb98 <memfile_lseek+0x40> <== NOT EXECUTED
200ec0c: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED
0200ef04 <memfile_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
200ef04: 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))
200ef08: c2 06 20 18 ld [ %i0 + 0x18 ], %g1
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
200ef0c: a0 10 00 18 mov %i0, %l0
the_jnode = iop->file_info;
/*
* Perform 'copy on write' for linear files
*/
if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))
200ef10: 80 88 62 04 btst 0x204, %g1
200ef14: 02 80 00 06 be 200ef2c <memfile_open+0x28>
200ef18: e2 06 20 3c ld [ %i0 + 0x3c ], %l1
&& (the_jnode->type == IMFS_LINEAR_FILE)) {
200ef1c: c4 04 60 4c ld [ %l1 + 0x4c ], %g2
200ef20: 80 a0 a0 06 cmp %g2, 6
200ef24: 22 80 00 0c be,a 200ef54 <memfile_open+0x50> <== NEVER TAKEN
200ef28: d8 04 60 54 ld [ %l1 + 0x54 ], %o4 <== 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)
200ef2c: c4 1c 60 50 ldd [ %l1 + 0x50 ], %g2
&& (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))
return -1;
}
if (iop->flags & LIBIO_FLAGS_APPEND)
200ef30: 80 88 62 00 btst 0x200, %g1
200ef34: 22 80 00 05 be,a 200ef48 <memfile_open+0x44>
200ef38: c4 3c 20 08 std %g2, [ %l0 + 8 ]
iop->offset = the_jnode->info.file.size;
200ef3c: c4 3c 20 10 std %g2, [ %l0 + 0x10 ]
200ef40: c4 1c 60 50 ldd [ %l1 + 0x50 ], %g2
iop->size = the_jnode->info.file.size;
200ef44: c4 3c 20 08 std %g2, [ %l0 + 8 ]
200ef48: b0 10 20 00 clr %i0
return 0;
}
200ef4c: 81 c7 e0 08 ret
200ef50: 81 e8 00 00 restore
* Perform 'copy on write' for linear files
*/
if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))
&& (the_jnode->type == IMFS_LINEAR_FILE)) {
uint32_t count = the_jnode->info.linearfile.size;
const unsigned char *buffer = the_jnode->info.linearfile.direct;
200ef54: d6 04 60 58 ld [ %l1 + 0x58 ], %o3 <== NOT EXECUTED
the_jnode->type = IMFS_MEMORY_FILE;
200ef58: 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;
200ef5c: c0 24 60 5c clr [ %l1 + 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;
200ef60: c0 24 60 50 clr [ %l1 + 0x50 ] <== NOT EXECUTED
200ef64: c0 24 60 54 clr [ %l1 + 0x54 ] <== NOT EXECUTED
the_jnode->info.file.indirect = 0;
the_jnode->info.file.doubly_indirect = 0;
the_jnode->info.file.triply_indirect = 0;
200ef68: c0 24 60 60 clr [ %l1 + 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;
200ef6c: c0 24 60 58 clr [ %l1 + 0x58 ] <== NOT EXECUTED
the_jnode->info.file.doubly_indirect = 0;
the_jnode->info.file.triply_indirect = 0;
if ((count != 0)
200ef70: 80 a3 20 00 cmp %o4, 0 <== NOT EXECUTED
200ef74: 12 80 00 06 bne 200ef8c <memfile_open+0x88> <== NOT EXECUTED
200ef78: c2 24 60 4c st %g1, [ %l1 + 0x4c ] <== NOT EXECUTED
200ef7c: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 <== NOT EXECUTED
200ef80: 84 10 20 00 clr %g2 <== NOT EXECUTED
200ef84: 10 bf ff eb b 200ef30 <memfile_open+0x2c> <== NOT EXECUTED
200ef88: 86 10 20 00 clr %g3 <== NOT EXECUTED
&& (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))
200ef8c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
200ef90: 92 10 20 00 clr %o1 <== NOT EXECUTED
200ef94: 94 10 20 00 clr %o2 <== NOT EXECUTED
200ef98: 7f ff ff 1e call 200ec10 <IMFS_memfile_write> <== NOT EXECUTED
200ef9c: 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)
200efa0: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED
200efa4: 02 bf ff ea be 200ef4c <memfile_open+0x48> <== NOT EXECUTED
200efa8: 01 00 00 00 nop <== NOT EXECUTED
200efac: 10 bf ff e0 b 200ef2c <memfile_open+0x28> <== NOT EXECUTED
200efb0: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED
0200e82c <memfile_rmnod>:
int memfile_rmnod(
rtems_filesystem_location_info_t *parent_pathloc, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN */
)
{
200e82c: 9d e3 bf 98 save %sp, -104, %sp
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) pathloc->node_access;
200e830: 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 ) {
200e834: c2 04 20 08 ld [ %l0 + 8 ], %g1
200e838: 80 a0 60 00 cmp %g1, 0
200e83c: 22 80 00 06 be,a 200e854 <memfile_rmnod+0x28> <== NEVER TAKEN
200e840: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 <== NOT EXECUTED
200e844: 7f ff e2 a3 call 20072d0 <_Chain_Extract>
200e848: 90 10 00 10 mov %l0, %o0
rtems_chain_extract( (rtems_chain_node *) the_jnode );
the_jnode->Parent = NULL;
200e84c: c0 24 20 08 clr [ %l0 + 8 ]
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
200e850: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1
IMFS_update_ctime( the_jnode );
200e854: 92 10 20 00 clr %o1
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
200e858: 82 00 7f ff add %g1, -1, %g1
IMFS_update_ctime( the_jnode );
200e85c: 90 07 bf f8 add %fp, -8, %o0
200e860: 7f ff d1 4e call 2002d98 <gettimeofday>
200e864: c2 34 20 34 sth %g1, [ %l0 + 0x34 ]
200e868: c2 07 bf f8 ld [ %fp + -8 ], %g1
return memfile_check_rmnod( the_jnode );
200e86c: 90 10 00 10 mov %l0, %o0
200e870: 7f ff ff d6 call 200e7c8 <memfile_check_rmnod>
200e874: c2 24 20 48 st %g1, [ %l0 + 0x48 ]
}
200e878: 81 c7 e0 08 ret
200e87c: 91 e8 00 08 restore %g0, %o0, %o0
020031ac <mknod>:
int mknod(
const char *pathname,
mode_t mode,
dev_t dev
)
{
20031ac: 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)
20031b0: 03 00 00 3c sethi %hi(0xf000), %g1
20031b4: 05 00 00 10 sethi %hi(0x4000), %g2
20031b8: 82 0e 40 01 and %i1, %g1, %g1
20031bc: 80 a0 40 02 cmp %g1, %g2
20031c0: 02 80 00 18 be 2003220 <mknod+0x74>
20031c4: a0 07 bf e4 add %fp, -28, %l0
20031c8: 08 80 00 0f bleu 2003204 <mknod+0x58>
20031cc: 05 00 00 04 sethi %hi(0x1000), %g2
20031d0: 05 00 00 18 sethi %hi(0x6000), %g2
20031d4: 80 a0 40 02 cmp %g1, %g2
20031d8: 02 80 00 12 be 2003220 <mknod+0x74>
20031dc: 05 00 00 20 sethi %hi(0x8000), %g2
20031e0: 80 a0 40 02 cmp %g1, %g2
20031e4: 02 80 00 10 be 2003224 <mknod+0x78> <== ALWAYS TAKEN
20031e8: 90 10 00 18 mov %i0, %o0
case S_IFBLK:
case S_IFREG:
case S_IFIFO:
break;
default:
rtems_set_errno_and_return_minus_one( EINVAL );
20031ec: 40 00 34 99 call 2010450 <__errno> <== NOT EXECUTED
20031f0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20031f4: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
20031f8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20031fc: 81 c7 e0 08 ret
2003200: 81 e8 00 00 restore
int result;
/*
* The file type is field within the mode. Check we have a sane mode set.
*/
switch (mode & S_IFMT)
2003204: 80 a0 40 02 cmp %g1, %g2
2003208: 02 80 00 05 be 200321c <mknod+0x70>
200320c: 05 00 00 08 sethi %hi(0x2000), %g2
2003210: 80 a0 40 02 cmp %g1, %g2
2003214: 12 bf ff f6 bne 20031ec <mknod+0x40> <== NEVER TAKEN
2003218: 01 00 00 00 nop
break;
default:
rtems_set_errno_and_return_minus_one( EINVAL );
}
rtems_filesystem_get_start_loc( pathname, &i, &temp_loc );
200321c: a0 07 bf e4 add %fp, -28, %l0
2003220: 90 10 00 18 mov %i0, %o0
2003224: 92 07 bf fc add %fp, -4, %o1
2003228: 40 00 02 d0 call 2003d68 <rtems_filesystem_get_start_loc>
200322c: 94 10 00 10 mov %l0, %o2
if ( !temp_loc.ops->evalformake_h ) {
2003230: c2 07 bf f0 ld [ %fp + -16 ], %g1
2003234: c2 00 60 04 ld [ %g1 + 4 ], %g1
2003238: 80 a0 60 00 cmp %g1, 0
200323c: 02 80 00 25 be 20032d0 <mknod+0x124> <== NEVER TAKEN
2003240: d0 07 bf fc ld [ %fp + -4 ], %o0
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*temp_loc.ops->evalformake_h)(
2003244: 92 10 00 10 mov %l0, %o1
2003248: 90 06 00 08 add %i0, %o0, %o0
200324c: 94 07 bf f8 add %fp, -8, %o2
2003250: 9f c0 40 00 call %g1
2003254: b0 10 3f ff mov -1, %i0
&pathname[i],
&temp_loc,
&name_start
);
if ( result != 0 )
2003258: 80 a2 20 00 cmp %o0, 0
200325c: 12 bf ff e8 bne 20031fc <mknod+0x50>
2003260: c4 07 bf f0 ld [ %fp + -16 ], %g2
return -1;
if ( !temp_loc.ops->mknod_h ) {
2003264: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1
2003268: 80 a0 60 00 cmp %g1, 0
200326c: 02 80 00 13 be 20032b8 <mknod+0x10c> <== NEVER TAKEN
2003270: d0 07 bf f8 ld [ %fp + -8 ], %o0
rtems_filesystem_freenode( &temp_loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc );
2003274: 92 10 00 19 mov %i1, %o1
2003278: 94 10 00 1a mov %i2, %o2
200327c: 96 10 00 1b mov %i3, %o3
2003280: 9f c0 40 00 call %g1
2003284: 98 10 00 10 mov %l0, %o4
rtems_filesystem_freenode( &temp_loc );
2003288: c2 07 bf f0 ld [ %fp + -16 ], %g1
200328c: 80 a0 60 00 cmp %g1, 0
2003290: 02 bf ff db be 20031fc <mknod+0x50> <== NEVER TAKEN
2003294: b0 10 00 08 mov %o0, %i0
2003298: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
200329c: 80 a0 60 00 cmp %g1, 0
20032a0: 02 80 00 10 be 20032e0 <mknod+0x134>
20032a4: 01 00 00 00 nop
20032a8: 9f c0 40 00 call %g1
20032ac: 90 10 00 10 mov %l0, %o0
return result;
}
20032b0: 81 c7 e0 08 ret
20032b4: 81 e8 00 00 restore
);
if ( result != 0 )
return -1;
if ( !temp_loc.ops->mknod_h ) {
rtems_filesystem_freenode( &temp_loc );
20032b8: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
20032bc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20032c0: 02 80 00 04 be 20032d0 <mknod+0x124> <== NOT EXECUTED
20032c4: 01 00 00 00 nop <== NOT EXECUTED
20032c8: 9f c0 40 00 call %g1 <== NOT EXECUTED
20032cc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
20032d0: 40 00 34 60 call 2010450 <__errno> <== NOT EXECUTED
20032d4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20032d8: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
20032dc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20032e0: 81 c7 e0 08 ret
20032e4: 81 e8 00 00 restore
02003370 <mount>:
const char *target,
const char *filesystemtype,
rtems_filesystem_options_t options,
const void *data
)
{
2003370: 9d e3 bf 88 save %sp, -120, %sp
/*
* Are the file system options valid?
*/
if ( options != RTEMS_FILESYSTEM_READ_ONLY &&
2003374: 80 a6 e0 01 cmp %i3, 1
2003378: 18 80 00 a4 bgu 2003608 <mount+0x298>
200337c: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EINVAL );
/*
* Get mount handler
*/
mount_h = rtems_filesystem_get_mount_handler( filesystemtype );
2003380: 40 00 26 93 call 200cdcc <rtems_filesystem_get_mount_handler>
2003384: 90 10 00 1a mov %i2, %o0
if ( !mount_h )
2003388: a4 92 20 00 orcc %o0, 0, %l2
200338c: 02 80 00 9f be 2003608 <mount+0x298>
2003390: 80 a0 00 19 cmp %g0, %i1
const char *target_or_null,
const char *filesystemtype,
size_t *target_length_ptr
)
{
const char *target = target_or_null != NULL ? target_or_null : "/";
2003394: a2 40 20 00 addx %g0, 0, %l1
2003398: 80 a4 60 00 cmp %l1, 0
200339c: 02 80 00 97 be 20035f8 <mount+0x288>
20033a0: 90 10 00 19 mov %i1, %o0
* 4) The mount point exists with the proper permissions to allow mounting
* 5) The selected mount point already has a file system mounted to it
*
*/
int mount(
20033a4: 40 00 37 f8 call 2011384 <strlen>
20033a8: ac 10 00 19 mov %i1, %l6
20033ac: a6 10 00 08 mov %o0, %l3
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;
20033b0: 40 00 37 f5 call 2011384 <strlen>
20033b4: 90 10 00 1a mov %i2, %o0
size_t source_size = source_or_null != NULL ?
strlen( source_or_null ) + 1 : 0;
20033b8: 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;
20033bc: aa 02 20 01 add %o0, 1, %l5
size_t source_size = source_or_null != NULL ?
strlen( source_or_null ) + 1 : 0;
20033c0: 02 80 00 05 be 20033d4 <mount+0x64>
20033c4: a8 10 20 00 clr %l4
20033c8: 40 00 37 ef call 2011384 <strlen>
20033cc: 90 10 00 18 mov %i0, %o0
20033d0: a8 02 20 01 add %o0, 1, %l4
size_t target_length = strlen( target );
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 );
20033d4: 92 04 e0 75 add %l3, 0x75, %o1
20033d8: 90 10 20 01 mov 1, %o0
20033dc: 92 02 40 15 add %o1, %l5, %o1
20033e0: 7f ff fd a0 call 2002a60 <calloc>
20033e4: 92 02 40 14 add %o1, %l4, %o1
if ( mt_entry != NULL ) {
20033e8: a0 92 20 00 orcc %o0, 0, %l0
20033ec: 02 80 00 7d be 20035e0 <mount+0x270> <== NEVER TAKEN
20033f0: 92 10 00 1a mov %i2, %o1
char *str = (char *) mt_entry + sizeof( *mt_entry );
20033f4: b4 04 20 74 add %l0, 0x74, %i2
strcpy( str, filesystemtype );
20033f8: 40 00 37 ab call 20112a4 <strcpy>
20033fc: 90 10 00 1a mov %i2, %o0
mt_entry->type = str;
2003400: f4 24 20 6c st %i2, [ %l0 + 0x6c ]
str += filesystemtype_size;
if ( source_or_null != NULL ) {
2003404: 80 a6 20 00 cmp %i0, 0
2003408: 02 80 00 07 be 2003424 <mount+0xb4>
200340c: b4 06 80 15 add %i2, %l5, %i2
strcpy( str, source_or_null );
2003410: 90 10 00 1a mov %i2, %o0
2003414: 40 00 37 a4 call 20112a4 <strcpy>
2003418: 92 10 00 18 mov %i0, %o1
mt_entry->dev = str;
200341c: f4 24 20 70 st %i2, [ %l0 + 0x70 ]
str += source_size;
2003420: b4 06 80 14 add %i2, %l4, %i2
}
strcpy( str, target );
2003424: 92 10 00 16 mov %l6, %o1
2003428: 40 00 37 9f call 20112a4 <strcpy>
200342c: 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;
2003430: 13 00 80 6f sethi %hi(0x201bc00), %o1
mt_entry->dev = str;
str += source_size;
}
strcpy( str, target );
mt_entry->target = str;
2003434: 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;
2003438: 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;
200343c: e0 24 20 2c st %l0, [ %l0 + 0x2c ]
mt_entry->options = options;
mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf;
2003440: 92 12 63 b8 or %o1, 0x3b8, %o1
2003444: 90 04 20 38 add %l0, 0x38, %o0
2003448: 40 00 36 3e call 2010d40 <memcpy>
200344c: 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 ) {
2003450: 80 a4 60 00 cmp %l1, 0
2003454: 12 80 00 2b bne 2003500 <mount+0x190>
2003458: 03 00 80 74 sethi %hi(0x201d000), %g1
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200345c: c4 00 61 f0 ld [ %g1 + 0x1f0 ], %g2 ! 201d1f0 <mount_chain>
}
} else {
/*
* Do we already have a base file system ?
*/
if ( !rtems_chain_is_empty( &mount_chain ) ) {
2003460: 82 10 61 f0 or %g1, 0x1f0, %g1
2003464: 82 00 60 04 add %g1, 4, %g1
2003468: 80 a0 80 01 cmp %g2, %g1
200346c: 12 80 00 7b bne 2003658 <mount+0x2e8> <== NEVER TAKEN
2003470: a6 10 20 00 clr %l3
* 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 ) ) {
2003474: 92 10 00 1c mov %i4, %o1
2003478: 9f c4 80 00 call %l2
200347c: 90 10 00 10 mov %l0, %o0
2003480: 80 a2 20 00 cmp %o0, 0
2003484: 12 80 00 67 bne 2003620 <mount+0x2b0> <== NEVER TAKEN
2003488: 25 00 80 76 sethi %hi(0x201d800), %l2
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 );
200348c: d0 04 a1 e0 ld [ %l2 + 0x1e0 ], %o0 ! 201d9e0 <rtems_libio_semaphore>
2003490: 94 10 20 00 clr %o2
2003494: 40 00 0d 10 call 20068d4 <rtems_semaphore_obtain>
2003498: 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 );
200349c: 92 10 00 10 mov %l0, %o1
20034a0: 11 00 80 74 sethi %hi(0x201d000), %o0
20034a4: 40 00 0f 7f call 20072a0 <_Chain_Append>
20034a8: 90 12 21 f0 or %o0, 0x1f0, %o0 ! 201d1f0 <mount_chain>
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
20034ac: d0 04 a1 e0 ld [ %l2 + 0x1e0 ], %o0
20034b0: 40 00 0d 50 call 20069f0 <rtems_semaphore_release>
20034b4: b0 10 20 00 clr %i0
*/
rtems_libio_lock();
rtems_chain_append( &mount_chain, &mt_entry->Node );
rtems_libio_unlock();
if ( !has_target )
20034b8: 80 a4 60 00 cmp %l1, 0
20034bc: 22 80 00 04 be,a 20034cc <mount+0x15c>
20034c0: c4 04 20 1c ld [ %l0 + 0x1c ], %g2
if ( loc_to_free )
rtems_filesystem_freenode( loc_to_free );
return -1;
}
20034c4: 81 c7 e0 08 ret
20034c8: 81 e8 00 00 restore
rtems_libio_lock();
rtems_chain_append( &mount_chain, &mt_entry->Node );
rtems_libio_unlock();
if ( !has_target )
rtems_filesystem_root = mt_entry->mt_fs_root;
20034cc: 03 00 80 74 sethi %hi(0x201d000), %g1
20034d0: c2 00 62 10 ld [ %g1 + 0x210 ], %g1 ! 201d210 <rtems_current_user_env>
20034d4: c4 20 60 18 st %g2, [ %g1 + 0x18 ]
20034d8: c4 04 20 20 ld [ %l0 + 0x20 ], %g2
20034dc: c4 20 60 1c st %g2, [ %g1 + 0x1c ]
20034e0: c4 04 20 24 ld [ %l0 + 0x24 ], %g2
20034e4: c4 20 60 20 st %g2, [ %g1 + 0x20 ]
20034e8: c4 04 20 28 ld [ %l0 + 0x28 ], %g2
20034ec: c4 20 60 24 st %g2, [ %g1 + 0x24 ]
20034f0: c4 04 20 2c ld [ %l0 + 0x2c ], %g2
20034f4: c4 20 60 28 st %g2, [ %g1 + 0x28 ]
20034f8: 81 c7 e0 08 ret
20034fc: 81 e8 00 00 restore
* The mount_point should be a directory with read/write/execute
* permissions in the existing tree.
*/
if ( has_target ) {
if ( rtems_filesystem_evaluate_path(
2003500: 90 10 00 19 mov %i1, %o0
2003504: 92 10 00 13 mov %l3, %o1
2003508: b6 07 bf ec add %fp, -20, %i3
200350c: 94 10 20 07 mov 7, %o2
2003510: 96 10 00 1b mov %i3, %o3
2003514: 7f ff fd d7 call 2002c70 <rtems_filesystem_evaluate_path>
2003518: 98 10 20 01 mov 1, %o4
200351c: 80 a2 3f ff cmp %o0, -1
2003520: 02 80 00 52 be 2003668 <mount+0x2f8> <== NEVER TAKEN
2003524: c2 07 bf f8 ld [ %fp + -8 ], %g1
/*
* Test for node_type_h
*/
if (!loc.ops->node_type_h) {
2003528: c2 00 60 10 ld [ %g1 + 0x10 ], %g1
200352c: 80 a0 60 00 cmp %g1, 0
2003530: 02 80 00 5d be 20036a4 <mount+0x334> <== NEVER TAKEN
2003534: 01 00 00 00 nop
/*
* Test to see if it is a directory
*/
if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
2003538: 9f c0 40 00 call %g1
200353c: 90 10 00 1b mov %i3, %o0
2003540: 80 a2 20 01 cmp %o0, 1
2003544: 12 80 00 4e bne 200367c <mount+0x30c>
2003548: d2 07 bf ec ld [ %fp + -20 ], %o1
/*
* You can only mount one file system onto a single mount point.
*/
if ( rtems_filesystem_mount_iterate( is_node_fs_root, loc.node_access ) ) {
200354c: 11 00 80 0c sethi %hi(0x2003000), %o0
2003550: 7f ff ff 6b call 20032fc <rtems_filesystem_mount_iterate>
2003554: 90 12 22 e8 or %o0, 0x2e8, %o0 ! 20032e8 <is_node_fs_root>
2003558: 80 8a 20 ff btst 0xff, %o0
200355c: 12 80 00 4d bne 2003690 <mount+0x320>
2003560: c6 07 bf ec ld [ %fp + -20 ], %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;
2003564: 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;
2003568: c6 24 20 08 st %g3, [ %l0 + 8 ]
mt_entry->mt_point_node.handlers = loc.handlers;
200356c: 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 ){
2003570: 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;
2003574: 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;
2003578: 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;
200357c: 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 ){
2003580: 80 a0 60 00 cmp %g1, 0
2003584: 02 80 00 48 be 20036a4 <mount+0x334> <== NEVER TAKEN
2003588: c6 24 20 18 st %g3, [ %l0 + 0x18 ]
errno = ENOTSUP;
goto cleanup_and_bail;
}
if ( loc.ops->mount_h( mt_entry ) ) {
200358c: 90 10 00 10 mov %l0, %o0
2003590: 9f c0 40 00 call %g1
2003594: a6 10 00 1b mov %i3, %l3
2003598: 80 a2 20 00 cmp %o0, 0
200359c: 02 bf ff b7 be 2003478 <mount+0x108> <== ALWAYS TAKEN
20035a0: 92 10 00 1c mov %i4, %o1
return 0;
cleanup_and_bail:
free( mt_entry );
20035a4: 90 10 00 10 mov %l0, %o0
20035a8: 7f ff fd d1 call 2002cec <free>
20035ac: a6 10 00 1b mov %i3, %l3
if ( loc_to_free )
rtems_filesystem_freenode( loc_to_free );
20035b0: c2 04 e0 0c ld [ %l3 + 0xc ], %g1
20035b4: 80 a0 60 00 cmp %g1, 0
20035b8: 02 80 00 26 be 2003650 <mount+0x2e0> <== NEVER TAKEN
20035bc: 01 00 00 00 nop
20035c0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
20035c4: 80 a0 60 00 cmp %g1, 0
20035c8: 02 80 00 22 be 2003650 <mount+0x2e0> <== NEVER TAKEN
20035cc: 90 10 00 13 mov %l3, %o0
20035d0: 9f c0 40 00 call %g1
20035d4: b0 10 3f ff mov -1, %i0
20035d8: 81 c7 e0 08 ret
20035dc: 81 e8 00 00 restore
target,
filesystemtype,
&target_length
);
if ( !mt_entry )
rtems_set_errno_and_return_minus_one( ENOMEM );
20035e0: 40 00 33 9c call 2010450 <__errno> <== NOT EXECUTED
20035e4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20035e8: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
20035ec: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20035f0: 81 c7 e0 08 ret <== NOT EXECUTED
20035f4: 81 e8 00 00 restore <== NOT EXECUTED
const char *target_or_null,
const char *filesystemtype,
size_t *target_length_ptr
)
{
const char *target = target_or_null != NULL ? target_or_null : "/";
20035f8: 2d 00 80 6f sethi %hi(0x201bc00), %l6
20035fc: a6 10 20 01 mov 1, %l3
2003600: 10 bf ff 6c b 20033b0 <mount+0x40>
2003604: ac 15 a3 b0 or %l6, 0x3b0, %l6
/*
* Get mount handler
*/
mount_h = rtems_filesystem_get_mount_handler( filesystemtype );
if ( !mount_h )
rtems_set_errno_and_return_minus_one( EINVAL );
2003608: 40 00 33 92 call 2010450 <__errno>
200360c: b0 10 3f ff mov -1, %i0
2003610: 82 10 20 16 mov 0x16, %g1
2003614: c2 22 00 00 st %g1, [ %o0 ]
2003618: 81 c7 e0 08 ret
200361c: 81 e8 00 00 restore
if ( (*mount_h)( mt_entry, data ) ) {
/*
* Try to undo the mount operation
*/
if ( loc.ops->unmount_h ) {
2003620: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
2003624: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 <== NOT EXECUTED
2003628: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200362c: 02 80 00 04 be 200363c <mount+0x2cc> <== NOT EXECUTED
2003630: 01 00 00 00 nop <== NOT EXECUTED
loc.ops->unmount_h( mt_entry );
2003634: 9f c0 40 00 call %g1 <== NOT EXECUTED
2003638: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return 0;
cleanup_and_bail:
free( mt_entry );
200363c: 7f ff fd ac call 2002cec <free> <== NOT EXECUTED
2003640: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if ( loc_to_free )
2003644: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
2003648: 32 bf ff db bne,a 20035b4 <mount+0x244> <== NOT EXECUTED
200364c: c2 04 e0 0c ld [ %l3 + 0xc ], %g1 <== NOT EXECUTED
rtems_filesystem_freenode( loc_to_free );
return -1;
}
2003650: 81 c7 e0 08 ret <== NOT EXECUTED
2003654: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
} else {
/*
* Do we already have a base file system ?
*/
if ( !rtems_chain_is_empty( &mount_chain ) ) {
errno = EINVAL;
2003658: 40 00 33 7e call 2010450 <__errno> <== NOT EXECUTED
200365c: 01 00 00 00 nop <== NOT EXECUTED
2003660: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
2003664: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return 0;
cleanup_and_bail:
free( mt_entry );
2003668: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
200366c: 7f ff fd a0 call 2002cec <free> <== NOT EXECUTED
2003670: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2003674: 81 c7 e0 08 ret <== NOT EXECUTED
2003678: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Test to see if it is a directory
*/
if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
errno = ENOTDIR;
200367c: 40 00 33 75 call 2010450 <__errno>
2003680: 01 00 00 00 nop
2003684: 82 10 20 14 mov 0x14, %g1 ! 14 <PROM_START+0x14>
goto cleanup_and_bail;
2003688: 10 bf ff c7 b 20035a4 <mount+0x234>
200368c: 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 ) ) {
errno = EBUSY;
2003690: 40 00 33 70 call 2010450 <__errno>
2003694: 01 00 00 00 nop
2003698: 82 10 20 10 mov 0x10, %g1 ! 10 <PROM_START+0x10>
goto cleanup_and_bail;
200369c: 10 bf ff c2 b 20035a4 <mount+0x234>
20036a0: c2 22 00 00 st %g1, [ %o0 ]
* This link to the parent is only done when we are dealing with system
* below the base file system
*/
if ( !loc.ops->mount_h ){
errno = ENOTSUP;
20036a4: 40 00 33 6b call 2010450 <__errno> <== NOT EXECUTED
20036a8: 01 00 00 00 nop <== NOT EXECUTED
20036ac: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
goto cleanup_and_bail;
20036b0: 10 bf ff bd b 20035a4 <mount+0x234> <== NOT EXECUTED
20036b4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
0203ac60 <msdos_creat_node>:
msdos_node_type_t type,
const char *name,
int name_len,
mode_t mode,
const fat_file_fd_t *link_fd)
{
203ac60: 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;
203ac64: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
uint32_t byte = 0;
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);
203ac68: a6 07 bf 68 add %fp, -152, %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;
203ac6c: 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;
203ac70: 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);
203ac74: a4 07 bf c8 add %fp, -56, %l2 <== NOT EXECUTED
203ac78: c0 27 bf c8 clr [ %fp + -56 ] <== NOT EXECUTED
203ac7c: c0 27 bf cc clr [ %fp + -52 ] <== NOT EXECUTED
memset(dot_dotdot, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2);
203ac80: c0 27 bf 68 clr [ %fp + -152 ] <== NOT EXECUTED
203ac84: c0 27 bf 6c clr [ %fp + -148 ] <== NOT EXECUTED
203ac88: c0 24 e0 08 clr [ %l3 + 8 ] <== NOT EXECUTED
203ac8c: c0 24 e0 0c clr [ %l3 + 0xc ] <== NOT EXECUTED
203ac90: c0 24 e0 10 clr [ %l3 + 0x10 ] <== NOT EXECUTED
203ac94: c0 24 e0 14 clr [ %l3 + 0x14 ] <== NOT EXECUTED
203ac98: c0 24 e0 18 clr [ %l3 + 0x18 ] <== NOT EXECUTED
203ac9c: c0 24 e0 1c clr [ %l3 + 0x1c ] <== NOT EXECUTED
203aca0: c0 24 e0 20 clr [ %l3 + 0x20 ] <== NOT EXECUTED
203aca4: c0 24 e0 24 clr [ %l3 + 0x24 ] <== NOT EXECUTED
203aca8: c0 24 e0 28 clr [ %l3 + 0x28 ] <== NOT EXECUTED
203acac: c0 24 e0 2c clr [ %l3 + 0x2c ] <== NOT EXECUTED
203acb0: c0 24 e0 30 clr [ %l3 + 0x30 ] <== NOT EXECUTED
203acb4: c0 24 e0 34 clr [ %l3 + 0x34 ] <== NOT EXECUTED
203acb8: c0 24 e0 38 clr [ %l3 + 0x38 ] <== NOT EXECUTED
203acbc: c0 24 e0 3c clr [ %l3 + 0x3c ] <== 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);
203acc0: c0 24 a0 08 clr [ %l2 + 8 ] <== NOT EXECUTED
203acc4: c0 24 a0 0c clr [ %l2 + 0xc ] <== NOT EXECUTED
203acc8: c0 24 a0 10 clr [ %l2 + 0x10 ] <== NOT EXECUTED
203accc: c0 24 a0 14 clr [ %l2 + 0x14 ] <== NOT EXECUTED
203acd0: c0 24 a0 18 clr [ %l2 + 0x18 ] <== NOT EXECUTED
203acd4: c0 24 a0 1c clr [ %l2 + 0x1c ] <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
203acd8: 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;
203acdc: c2 27 bf f0 st %g1, [ %fp + -16 ] <== NOT EXECUTED
memset(dot_dotdot, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2);
name_type = msdos_long_to_short (name, name_len,
203ace0: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
203ace4: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
203ace8: 96 10 20 0b mov 0xb, %o3 <== 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;
203acec: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
time_t time_ret = 0;
uint16_t time_val = 0;
203acf0: c0 37 bf fe clrh [ %fp + -2 ] <== NOT EXECUTED
uint16_t date = 0;
203acf4: 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;
203acf8: c0 27 bf e8 clr [ %fp + -24 ] <== NOT EXECUTED
dir_pos->sname.ofs = 0;
203acfc: 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;
203ad00: e8 06 00 00 ld [ %i0 ], %l4 <== 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,
203ad04: 40 00 08 c7 call 203d020 <msdos_long_to_short> <== NOT EXECUTED
203ad08: 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)
{
203ad0c: 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,
203ad10: aa 10 00 08 mov %o0, %l5 <== NOT EXECUTED
MSDOS_DIR_NAME(short_node),
MSDOS_NAME_MAX);
/* fill reserved field */
*MSDOS_DIR_NT_RES(short_node) = MSDOS_RES_NT_VALUE;
203ad14: c0 2c a0 0c clrb [ %l2 + 0xc ] <== NOT EXECUTED
/* set up last write date and time */
time_ret = time(NULL);
203ad18: 40 00 68 6d call 2054ecc <time> <== NOT EXECUTED
203ad1c: 90 10 20 00 clr %o0 <== NOT EXECUTED
if ( time_ret == -1 )
203ad20: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED
203ad24: 02 80 00 28 be 203adc4 <msdos_creat_node+0x164> <== NOT EXECUTED
203ad28: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
return -1;
msdos_date_unix2dos(time_ret, &date, &time_val);
203ad2c: 40 00 30 5f call 2046ea8 <msdos_date_unix2dos> <== NOT EXECUTED
203ad30: 94 07 bf fe add %fp, -2, %o2 <== NOT EXECUTED
*MSDOS_DIR_WRITE_TIME(short_node) = CT_LE_W(time_val);
203ad34: c4 17 bf fe lduh [ %fp + -2 ], %g2 <== NOT EXECUTED
*MSDOS_DIR_WRITE_DATE(short_node) = CT_LE_W(date);
203ad38: 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);
203ad3c: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
*MSDOS_DIR_WRITE_DATE(short_node) = CT_LE_W(date);
203ad40: 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);
203ad44: 89 30 a0 18 srl %g2, 0x18, %g4 <== NOT EXECUTED
*MSDOS_DIR_WRITE_DATE(short_node) = CT_LE_W(date);
203ad48: 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);
203ad4c: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
*MSDOS_DIR_WRITE_DATE(short_node) = CT_LE_W(date);
203ad50: 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);
203ad54: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
*MSDOS_DIR_WRITE_DATE(short_node) = CT_LE_W(date);
203ad58: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
/* initialize directory/file size */
*MSDOS_DIR_FILE_SIZE(short_node) = MSDOS_INIT_DIR_SIZE;
203ad5c: 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);
203ad60: c4 34 a0 16 sth %g2, [ %l2 + 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) {
203ad64: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED
203ad68: 02 80 00 19 be 203adcc <msdos_creat_node+0x16c> <== NOT EXECUTED
203ad6c: c2 34 a0 18 sth %g1, [ %l2 + 0x18 ] <== NOT EXECUTED
*MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_DIRECTORY;
}
else if (type == MSDOS_HARD_LINK) {
203ad70: 80 a6 60 03 cmp %i1, 3 <== NOT EXECUTED
203ad74: 02 80 00 88 be 203af94 <msdos_creat_node+0x334> <== NOT EXECUTED
203ad78: c2 0f bf d3 ldub [ %fp + -45 ], %g1 <== NOT EXECUTED
* set "last access" date to today
*/
*MSDOS_DIR_LAST_ACCESS_DATE(short_node) = CT_LE_W(date);
}
else { /* regular file... */
*MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_ARCHIVE;
203ad7c: 82 10 60 20 or %g1, 0x20, %g1 <== NOT EXECUTED
203ad80: c2 2c a0 0b stb %g1, [ %l2 + 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,
203ad84: 98 10 00 15 mov %l5, %o4 <== NOT EXECUTED
203ad88: e4 23 a0 5c st %l2, [ %sp + 0x5c ] <== NOT EXECUTED
203ad8c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
203ad90: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
203ad94: aa 07 bf e8 add %fp, -24, %l5 <== NOT EXECUTED
203ad98: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203ad9c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
203ada0: 40 00 09 df call 203d51c <msdos_get_name_node> <== NOT EXECUTED
203ada4: 9a 10 00 15 mov %l5, %o5 <== NOT EXECUTED
name_type, &dir_pos, short_node);
if ( rc != RC_OK )
203ada8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203adac: 12 80 00 04 bne 203adbc <msdos_creat_node+0x15c> <== NOT EXECUTED
203adb0: 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)
203adb4: 22 80 00 0a be,a 203addc <msdos_creat_node+0x17c> <== NOT EXECUTED
203adb8: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== 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);
return rc;
}
203adbc: 81 c7 e0 08 ret <== NOT EXECUTED
203adc0: 81 e8 00 00 restore <== NOT EXECUTED
203adc4: 81 c7 e0 08 ret <== NOT EXECUTED
203adc8: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
/* initialize directory/file size */
*MSDOS_DIR_FILE_SIZE(short_node) = MSDOS_INIT_DIR_SIZE;
if (type == MSDOS_DIRECTORY) {
*MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_DIRECTORY;
203adcc: c2 0f bf d3 ldub [ %fp + -45 ], %g1 <== NOT EXECUTED
203add0: 82 10 60 10 or %g1, 0x10, %g1 <== NOT EXECUTED
203add4: 10 bf ff ec b 203ad84 <msdos_creat_node+0x124> <== NOT EXECUTED
203add8: c2 2c a0 0b stb %g1, [ %l2 + 0xb ] <== NOT EXECUTED
* to do
*/
if (type == MSDOS_DIRECTORY)
{
/* open new directory as fat-file */
rc = fat_file_open(parent_loc->mt_entry, &dir_pos, &fat_fd);
203addc: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
203ade0: 7f ff b7 ea call 2028d88 <fat_file_open> <== NOT EXECUTED
203ade4: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED
if (rc != RC_OK)
203ade8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203adec: 32 80 00 59 bne,a 203af50 <msdos_creat_node+0x2f0> <== NOT EXECUTED
203adf0: 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;
203adf4: 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;
203adf8: 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;
203adfc: f2 20 60 10 st %i1, [ %g1 + 0x10 ] <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
203ae00: 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;
203ae04: c0 20 60 18 clr [ %g1 + 0x18 ] <== NOT EXECUTED
*/
memcpy(DOT_NODE_P(dot_dotdot), short_node,
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
memcpy(DOTDOT_NODE_P(dot_dotdot), short_node,
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
memcpy(MSDOS_DIR_NAME(DOT_NODE_P(dot_dotdot)), MSDOS_DOT_NAME,
203ae08: 03 00 81 be sethi %hi(0x206f800), %g1 <== NOT EXECUTED
/*
* dot and dotdot entries are identical to new node except the
* names
*/
memcpy(DOT_NODE_P(dot_dotdot), short_node,
203ae0c: d4 1c a0 08 ldd [ %l2 + 8 ], %o2 <== NOT EXECUTED
203ae10: c4 1c a0 18 ldd [ %l2 + 0x18 ], %g2 <== NOT EXECUTED
203ae14: d8 1c a0 10 ldd [ %l2 + 0x10 ], %o4 <== NOT EXECUTED
203ae18: ec 1c 80 00 ldd [ %l2 ], %l6 <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
memcpy(DOTDOT_NODE_P(dot_dotdot), short_node,
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
memcpy(MSDOS_DIR_NAME(DOT_NODE_P(dot_dotdot)), MSDOS_DOT_NAME,
203ae1c: d2 00 62 24 ld [ %g1 + 0x224 ], %o1 <== NOT EXECUTED
* dot and dotdot entries are identical to new node except the
* names
*/
memcpy(DOT_NODE_P(dot_dotdot), short_node,
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
memcpy(DOTDOT_NODE_P(dot_dotdot), short_node,
203ae20: a4 07 bf 88 add %fp, -120, %l2 <== NOT EXECUTED
/*
* dot and dotdot entries are identical to new node except the
* names
*/
memcpy(DOT_NODE_P(dot_dotdot), short_node,
203ae24: d4 3c e0 08 std %o2, [ %l3 + 8 ] <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
memcpy(DOTDOT_NODE_P(dot_dotdot), short_node,
203ae28: d4 3c a0 08 std %o2, [ %l2 + 8 ] <== NOT EXECUTED
/*
* dot and dotdot entries are identical to new node except the
* names
*/
memcpy(DOT_NODE_P(dot_dotdot), short_node,
203ae2c: d8 3c e0 10 std %o4, [ %l3 + 0x10 ] <== NOT EXECUTED
203ae30: c4 3c e0 18 std %g2, [ %l3 + 0x18 ] <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
memcpy(DOTDOT_NODE_P(dot_dotdot), short_node,
203ae34: d8 3c a0 10 std %o4, [ %l2 + 0x10 ] <== NOT EXECUTED
203ae38: c4 3c a0 18 std %g2, [ %l2 + 0x18 ] <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
memcpy(MSDOS_DIR_NAME(DOT_NODE_P(dot_dotdot)), MSDOS_DOT_NAME,
203ae3c: 94 10 20 0b mov 0xb, %o2 <== NOT EXECUTED
* dot and dotdot entries are identical to new node except the
* names
*/
memcpy(DOT_NODE_P(dot_dotdot), short_node,
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
memcpy(DOTDOT_NODE_P(dot_dotdot), short_node,
203ae40: ec 3f bf 88 std %l6, [ %fp + -120 ] <== NOT EXECUTED
/*
* dot and dotdot entries are identical to new node except the
* names
*/
memcpy(DOT_NODE_P(dot_dotdot), short_node,
203ae44: ec 3f bf 68 std %l6, [ %fp + -152 ] <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
memcpy(DOTDOT_NODE_P(dot_dotdot), short_node,
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
memcpy(MSDOS_DIR_NAME(DOT_NODE_P(dot_dotdot)), MSDOS_DOT_NAME,
203ae48: 40 00 44 cb call 204c174 <memcpy> <== NOT EXECUTED
203ae4c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
MSDOS_NAME_MAX);
memcpy(MSDOS_DIR_NAME(DOTDOT_NODE_P(dot_dotdot)), MSDOS_DOTDOT_NAME,
203ae50: 03 00 81 be sethi %hi(0x206f800), %g1 <== NOT EXECUTED
203ae54: d2 00 62 28 ld [ %g1 + 0x228 ], %o1 ! 206fa28 <MSDOS_DOTDOT_NAME><== NOT EXECUTED
203ae58: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
203ae5c: 40 00 44 c6 call 204c174 <memcpy> <== NOT EXECUTED
203ae60: 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)) &&
203ae64: c2 05 20 20 ld [ %l4 + 0x20 ], %g1 <== NOT EXECUTED
203ae68: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
203ae6c: 22 80 00 40 be,a 203af6c <msdos_creat_node+0x30c> <== NOT EXECUTED
203ae70: c2 05 20 24 ld [ %l4 + 0x24 ], %g1 <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
}
else
{
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) =
CT_LE_W((uint16_t )((parent_fat_fd->cln) & 0x0000FFFF));
203ae74: c4 05 20 1c ld [ %l4 + 0x1c ], %g2 <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) =
CT_LE_W((uint16_t )(((parent_fat_fd->cln) & 0xFFFF0000)>>16));
203ae78: 83 30 a0 10 srl %g2, 0x10, %g1 <== 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)) =
203ae7c: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
CT_LE_W((uint16_t )((parent_fat_fd->cln) & 0x0000FFFF));
*MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) =
203ae80: 83 28 60 10 sll %g1, 0x10, %g1 <== 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)) =
203ae84: 89 30 a0 18 srl %g2, 0x18, %g4 <== NOT EXECUTED
CT_LE_W((uint16_t )((parent_fat_fd->cln) & 0x0000FFFF));
*MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) =
203ae88: 87 30 60 18 srl %g1, 0x18, %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;
}
else
{
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) =
203ae8c: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
CT_LE_W((uint16_t )((parent_fat_fd->cln) & 0x0000FFFF));
*MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) =
203ae90: 83 30 60 08 srl %g1, 8, %g1 <== 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)) =
203ae94: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
CT_LE_W((uint16_t )((parent_fat_fd->cln) & 0x0000FFFF));
*MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) =
203ae98: 82 10 40 03 or %g1, %g3, %g1 <== 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)) =
203ae9c: c4 34 e0 3a sth %g2, [ %l3 + 0x3a ] <== NOT EXECUTED
CT_LE_W((uint16_t )((parent_fat_fd->cln) & 0x0000FFFF));
*MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) =
203aea0: c2 34 e0 34 sth %g1, [ %l3 + 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,
203aea4: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
203aea8: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
203aeac: 94 10 20 00 clr %o2 <== NOT EXECUTED
203aeb0: 96 10 20 40 mov 0x40, %o3 <== NOT EXECUTED
203aeb4: 7f ff b6 5c call 2028824 <fat_file_write> <== NOT EXECUTED
203aeb8: 98 10 00 13 mov %l3, %o4 <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2,
(uint8_t *)dot_dotdot);
if (ret < 0)
203aebc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203aec0: 06 80 00 29 bl 203af64 <msdos_creat_node+0x304> <== NOT EXECUTED
203aec4: 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;
203aec8: c2 14 60 06 lduh [ %l1 + 6 ], %g1 <== NOT EXECUTED
203aecc: 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));
203aed0: 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;
203aed4: 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,
203aed8: 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;
203aedc: 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));
203aee0: 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)) =
203aee4: 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)) =
203aee8: 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)) =
203aeec: 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)) =
203aef0: 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)) =
203aef4: 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)) =
203aef8: 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)) =
203aefc: 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)) =
203af00: 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,
203af04: 98 10 00 13 mov %l3, %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)) =
203af08: c4 34 e0 1a sth %g2, [ %l3 + 0x1a ] <== NOT EXECUTED
CT_LE_W((uint16_t )((fat_fd->cln) & 0x0000FFFF));
*MSDOS_DIR_FIRST_CLUSTER_HI(DOT_NODE_P(dot_dotdot)) =
203af0c: c2 34 e0 14 sth %g1, [ %l3 + 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,
203af10: 94 10 20 00 clr %o2 <== NOT EXECUTED
203af14: 7f ff b6 44 call 2028824 <fat_file_write> <== NOT EXECUTED
203af18: 96 10 20 20 mov 0x20, %o3 <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE,
(uint8_t *)DOT_NODE_P(dot_dotdot));
if (ret < 0)
203af1c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203af20: 06 80 00 08 bl 203af40 <msdos_creat_node+0x2e0> <== NOT EXECUTED
203af24: 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);
203af28: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
203af2c: 40 00 06 fd call 203cb20 <msdos_set_first_cluster_num> <== NOT EXECUTED
203af30: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
if (rc != RC_OK)
203af34: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203af38: 22 80 00 4b be,a 203b064 <msdos_creat_node+0x404> <== NOT EXECUTED
203af3c: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
fat_file_close(parent_loc->mt_entry, fat_fd);
}
return RC_OK;
error:
fat_file_close(parent_loc->mt_entry, fat_fd);
203af40: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
203af44: 7f ff b7 5f call 2028cc0 <fat_file_close> <== NOT EXECUTED
203af48: 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);
203af4c: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
203af50: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
203af54: 40 00 07 2b call 203cc00 <msdos_set_first_char4file_name> <== NOT EXECUTED
203af58: 94 10 20 e5 mov 0xe5, %o2 <== NOT EXECUTED
return rc;
203af5c: 81 c7 e0 08 ret <== NOT EXECUTED
203af60: 81 e8 00 00 restore <== NOT EXECUTED
/* write first cluster num of a new directory to disk */
rc = msdos_set_first_cluster_num(parent_loc->mt_entry, fat_fd);
if (rc != RC_OK)
goto error;
fat_file_close(parent_loc->mt_entry, fat_fd);
203af64: 10 bf ff f7 b 203af40 <msdos_creat_node+0x2e0> <== NOT EXECUTED
203af68: b0 10 3f ff mov -1, %i0 <== 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)) &&
203af6c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203af70: 32 bf ff c2 bne,a 203ae78 <msdos_creat_node+0x218> <== NOT EXECUTED
203af74: c4 05 20 1c ld [ %l4 + 0x1c ], %g2 <== NOT EXECUTED
(fs_info->fat.vol.type & FAT_FAT32))
203af78: c2 0c 60 0a ldub [ %l1 + 0xa ], %g1 <== NOT EXECUTED
203af7c: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED
203af80: 22 bf ff be be,a 203ae78 <msdos_creat_node+0x218> <== NOT EXECUTED
203af84: c4 05 20 1c ld [ %l4 + 0x1c ], %g2 <== NOT EXECUTED
{
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
203af88: c0 34 e0 3a clrh [ %l3 + 0x3a ] <== 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)) &&
203af8c: 10 bf ff c6 b 203aea4 <msdos_creat_node+0x244> <== NOT EXECUTED
203af90: c0 34 e0 34 clrh [ %l3 + 0x34 ] <== NOT EXECUTED
* node to the newly created
*/
/*
* read the original directory entry
*/
sec = fat_cluster_num_to_sector_num(parent_loc->mt_entry,
203af94: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED
203af98: c4 07 60 20 ld [ %i5 + 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)) )
203af9c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203afa0: 12 80 00 2b bne 203b04c <msdos_creat_node+0x3ec> <== NOT EXECUTED
203afa4: c2 02 20 34 ld [ %o0 + 0x34 ], %g1 <== NOT EXECUTED
203afa8: c6 08 60 0a ldub [ %g1 + 0xa ], %g3 <== NOT EXECUTED
203afac: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED
203afb0: 22 80 00 28 be,a 203b050 <msdos_creat_node+0x3f0> <== NOT EXECUTED
203afb4: c6 00 60 30 ld [ %g1 + 0x30 ], %g3 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
203afb8: d2 00 60 1c ld [ %g1 + 0x1c ], %o1 <== NOT EXECUTED
link_fd->dir_pos.sname.cln);
sec += (link_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
203afbc: 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,
203afc0: c4 0c 60 02 ldub [ %l1 + 2 ], %g2 <== NOT EXECUTED
203afc4: d4 14 40 00 lduh [ %l1 ], %o2 <== NOT EXECUTED
203afc8: 85 30 40 02 srl %g1, %g2, %g2 <== NOT EXECUTED
203afcc: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED
203afd0: 92 02 40 02 add %o1, %g2, %o1 <== NOT EXECUTED
203afd4: 94 0a 80 01 and %o2, %g1, %o2 <== NOT EXECUTED
203afd8: ac 07 bf a8 add %fp, -88, %l6 <== NOT EXECUTED
203afdc: 96 10 20 20 mov 0x20, %o3 <== NOT EXECUTED
203afe0: 7f ff ba 49 call 2029904 <_fat_block_read> <== NOT EXECUTED
203afe4: 98 10 00 16 mov %l6, %o4 <== NOT EXECUTED
sec, byte, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE,
link_node);
if (ret < 0) {
203afe8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203afec: 06 bf ff 76 bl 203adc4 <msdos_creat_node+0x164> <== NOT EXECUTED
203aff0: 01 00 00 00 nop <== 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);
203aff4: da 05 a0 1c ld [ %l6 + 0x1c ], %o5 <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_LOW(short_node) =
*MSDOS_DIR_FIRST_CLUSTER_LOW(link_node);
*MSDOS_DIR_FIRST_CLUSTER_HI(short_node) =
203aff8: c2 15 a0 14 lduh [ %l6 + 0x14 ], %g1 <== 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) =
203affc: c4 15 a0 1a lduh [ %l6 + 0x1a ], %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);
203b000: c8 15 a0 0e lduh [ %l6 + 0xe ], %g4 <== NOT EXECUTED
*MSDOS_DIR_CRT_DATE(short_node) =*MSDOS_DIR_CRT_DATE(link_node);
203b004: c6 15 a0 10 lduh [ %l6 + 0x10 ], %g3 <== NOT EXECUTED
/*
* copy/set "file size", "first cluster"
*/
*MSDOS_DIR_FILE_SIZE(short_node) =*MSDOS_DIR_FILE_SIZE(link_node);
203b008: da 27 bf e4 st %o5, [ %fp + -28 ] <== 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);
203b00c: da 0f bf b5 ldub [ %fp + -75 ], %o5 <== NOT EXECUTED
*MSDOS_DIR_CRT_TIME(short_node) =*MSDOS_DIR_CRT_TIME(link_node);
203b010: c8 34 a0 0e sth %g4, [ %l2 + 0xe ] <== 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);
203b014: da 2c a0 0d stb %o5, [ %l2 + 0xd ] <== NOT EXECUTED
*MSDOS_DIR_CRT_TIME(short_node) =*MSDOS_DIR_CRT_TIME(link_node);
*MSDOS_DIR_CRT_DATE(short_node) =*MSDOS_DIR_CRT_DATE(link_node);
203b018: c6 34 a0 10 sth %g3, [ %l2 + 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) =
203b01c: c4 34 a0 1a sth %g2, [ %l2 + 0x1a ] <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_LOW(link_node);
*MSDOS_DIR_FIRST_CLUSTER_HI(short_node) =
203b020: c2 34 a0 14 sth %g1, [ %l2 + 0x14 ] <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_HI(link_node);
/*
* set "archive bit" due to changes
*/
*MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_ARCHIVE;
203b024: c4 0f bf b3 ldub [ %fp + -77 ], %g2 <== NOT EXECUTED
/*
* set "last access" date to today
*/
*MSDOS_DIR_LAST_ACCESS_DATE(short_node) = CT_LE_W(date);
203b028: c2 17 bf fc lduh [ %fp + -4 ], %g1 <== 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;
203b02c: 84 10 a0 20 or %g2, 0x20, %g2 <== NOT EXECUTED
203b030: c4 2f bf d3 stb %g2, [ %fp + -45 ] <== NOT EXECUTED
/*
* set "last access" date to today
*/
*MSDOS_DIR_LAST_ACCESS_DATE(short_node) = CT_LE_W(date);
203b034: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
203b038: 85 30 60 18 srl %g1, 0x18, %g2 <== NOT EXECUTED
203b03c: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED
203b040: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
203b044: 10 bf ff 50 b 203ad84 <msdos_creat_node+0x124> <== NOT EXECUTED
203b048: c2 34 a0 12 sth %g1, [ %l2 + 0x12 ] <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
203b04c: c6 00 60 30 ld [ %g1 + 0x30 ], %g3 <== NOT EXECUTED
203b050: c2 08 60 05 ldub [ %g1 + 5 ], %g1 <== NOT EXECUTED
203b054: 84 00 bf fe add %g2, -2, %g2 <== NOT EXECUTED
203b058: 93 28 80 01 sll %g2, %g1, %o1 <== NOT EXECUTED
203b05c: 10 bf ff d8 b 203afbc <msdos_creat_node+0x35c> <== NOT EXECUTED
203b060: 92 02 40 03 add %o1, %g3, %o1 <== NOT EXECUTED
/* write first cluster num of a new directory to disk */
rc = msdos_set_first_cluster_num(parent_loc->mt_entry, fat_fd);
if (rc != RC_OK)
goto error;
fat_file_close(parent_loc->mt_entry, fat_fd);
203b064: 7f ff b7 17 call 2028cc0 <fat_file_close> <== NOT EXECUTED
203b068: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
203b06c: 81 c7 e0 08 ret <== NOT EXECUTED
203b070: 81 e8 00 00 restore <== NOT EXECUTED
0204701c <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)
{
204701c: 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) {
2047020: 03 00 81 cb sethi %hi(0x2072c00), %g1 <== NOT EXECUTED
2047024: c4 10 62 d0 lduh [ %g1 + 0x2d0 ], %g2 ! 2072ed0 <lastdosdate><== NOT EXECUTED
2047028: 80 a0 80 18 cmp %g2, %i0 <== NOT EXECUTED
204702c: 02 80 00 4e be 2047164 <msdos_date_dos2unix+0x148> <== NOT EXECUTED
2047030: 09 00 00 3f sethi %hi(0xfc00), %g4 <== NOT EXECUTED
lastdosdate = dd;
days = 0;
year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;
2047034: 88 11 22 00 or %g4, 0x200, %g4 ! fe00 <PROM_START+0xfe00> <== NOT EXECUTED
2047038: 88 0e 00 04 and %i0, %g4, %g4 <== NOT EXECUTED
204703c: 89 31 20 09 srl %g4, 9, %g4 <== NOT EXECUTED
for (y = 0; y < year; y++)
2047040: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED
2047044: 02 80 00 4b be 2047170 <msdos_date_dos2unix+0x154> <== NOT EXECUTED
2047048: f0 30 62 d0 sth %i0, [ %g1 + 0x2d0 ] <== NOT EXECUTED
204704c: 82 10 20 00 clr %g1 <== NOT EXECUTED
2047050: 84 10 20 00 clr %g2 <== NOT EXECUTED
2047054: 86 10 21 6e mov 0x16e, %g3 <== NOT EXECUTED
days += y & 0x03 ? 365 : 366;
2047058: 10 80 00 05 b 204706c <msdos_date_dos2unix+0x50> <== NOT EXECUTED
204705c: 9a 10 21 6e mov 0x16e, %o5 <== NOT EXECUTED
2047060: 86 08 a0 03 and %g2, 3, %g3 <== NOT EXECUTED
2047064: 80 a0 00 03 cmp %g0, %g3 <== NOT EXECUTED
2047068: 86 63 60 00 subx %o5, 0, %g3 <== 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++)
204706c: 84 00 a0 01 inc %g2 <== NOT EXECUTED
2047070: 80 a1 00 02 cmp %g4, %g2 <== NOT EXECUTED
2047074: 18 bf ff fb bgu 2047060 <msdos_date_dos2unix+0x44> <== NOT EXECUTED
2047078: 82 00 40 03 add %g1, %g3, %g1 <== NOT EXECUTED
days += y & 0x03 ? 365 : 366;
months = year & 0x03 ? regyear : leapyear;
204707c: 07 00 81 be sethi %hi(0x206f800), %g3 <== NOT EXECUTED
2047080: 80 89 20 03 btst 3, %g4 <== NOT EXECUTED
2047084: 02 80 00 30 be 2047144 <msdos_date_dos2unix+0x128> <== NOT EXECUTED
2047088: 86 10 e2 84 or %g3, 0x284, %g3 <== NOT EXECUTED
/*
* Prevent going from 0 to 0xffffffff in the following
* loop.
*/
month = (dd & MSDOS_DD_MONTH_MASK) >> MSDOS_DD_MONTH_SHIFT;
204708c: 9a 0e 21 e0 and %i0, 0x1e0, %o5 <== NOT EXECUTED
2047090: 9b 33 60 05 srl %o5, 5, %o5 <== NOT EXECUTED
if (month == 0) {
2047094: 80 a3 60 00 cmp %o5, 0 <== NOT EXECUTED
2047098: 22 80 00 0c be,a 20470c8 <msdos_date_dos2unix+0xac> <== NOT EXECUTED
204709c: b0 0e 20 1f and %i0, 0x1f, %i0 <== NOT EXECUTED
month = 1;
}
for (m = 0; m < month - 1; m++)
20470a0: 9a 83 7f ff addcc %o5, -1, %o5 <== NOT EXECUTED
20470a4: 02 80 00 08 be 20470c4 <msdos_date_dos2unix+0xa8> <== NOT EXECUTED
20470a8: 84 10 20 00 clr %g2 <== NOT EXECUTED
days += months[m];
20470ac: c8 10 c0 00 lduh [ %g3 ], %g4 <== NOT EXECUTED
*/
month = (dd & MSDOS_DD_MONTH_MASK) >> MSDOS_DD_MONTH_SHIFT;
if (month == 0) {
month = 1;
}
for (m = 0; m < month - 1; m++)
20470b0: 84 00 a0 01 inc %g2 <== NOT EXECUTED
days += months[m];
20470b4: 82 00 40 04 add %g1, %g4, %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++)
20470b8: 80 a0 80 0d cmp %g2, %o5 <== NOT EXECUTED
20470bc: 0a bf ff fc bcs 20470ac <msdos_date_dos2unix+0x90> <== NOT EXECUTED
20470c0: 86 00 e0 02 add %g3, 2, %g3 <== NOT EXECUTED
days += months[m];
days += ((dd & MSDOS_DD_DAY_MASK) >> MSDOS_DD_DAY_SHIFT) - 1;
lastseconds = (days + DAYSTO1980) * SECONDSPERDAY;
20470c4: b0 0e 20 1f and %i0, 0x1f, %i0 <== NOT EXECUTED
20470c8: b0 06 3f ff add %i0, -1, %i0 <== NOT EXECUTED
20470cc: 82 06 00 01 add %i0, %g1, %g1 <== NOT EXECUTED
20470d0: 85 28 60 09 sll %g1, 9, %g2 <== NOT EXECUTED
20470d4: 83 28 60 07 sll %g1, 7, %g1 <== NOT EXECUTED
20470d8: 82 20 80 01 sub %g2, %g1, %g1 <== NOT EXECUTED
20470dc: 87 28 60 04 sll %g1, 4, %g3 <== NOT EXECUTED
20470e0: 82 20 c0 01 sub %g3, %g1, %g1 <== NOT EXECUTED
20470e4: 87 28 60 04 sll %g1, 4, %g3 <== NOT EXECUTED
20470e8: 82 20 c0 01 sub %g3, %g1, %g1 <== NOT EXECUTED
20470ec: 05 04 b3 a9 sethi %hi(0x12cea400), %g2 <== NOT EXECUTED
20470f0: 84 10 a2 00 or %g2, 0x200, %g2 ! 12cea600 <RAM_END+0x108ea600><== NOT EXECUTED
20470f4: 86 00 40 02 add %g1, %g2, %g3 <== NOT EXECUTED
20470f8: 03 00 81 cb sethi %hi(0x2072c00), %g1 <== NOT EXECUTED
20470fc: c6 20 62 d4 st %g3, [ %g1 + 0x2d4 ] ! 2072ed4 <lastseconds><== NOT EXECUTED
2047100: 85 36 60 0b srl %i1, 0xb, %g2 <== NOT EXECUTED
2047104: 84 08 a0 1f and %g2, 0x1f, %g2 <== NOT EXECUTED
2047108: 83 28 a0 08 sll %g2, 8, %g1 <== NOT EXECUTED
204710c: 85 28 a0 04 sll %g2, 4, %g2 <== NOT EXECUTED
2047110: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED
2047114: b1 28 60 04 sll %g1, 4, %i0 <== NOT EXECUTED
2047118: 88 0e 60 1f and %i1, 0x1f, %g4 <== NOT EXECUTED
204711c: 82 26 00 01 sub %i0, %g1, %g1 <== NOT EXECUTED
2047120: b2 0e 67 e0 and %i1, 0x7e0, %i1 <== NOT EXECUTED
2047124: b3 36 60 05 srl %i1, 5, %i1 <== NOT EXECUTED
2047128: 85 2e 60 06 sll %i1, 6, %g2 <== NOT EXECUTED
204712c: b3 2e 60 02 sll %i1, 2, %i1 <== NOT EXECUTED
2047130: b2 20 80 19 sub %g2, %i1, %i1 <== NOT EXECUTED
2047134: b0 00 40 19 add %g1, %i1, %i0 <== NOT EXECUTED
2047138: b0 06 00 04 add %i0, %g4, %i0 <== NOT EXECUTED
}
return seconds + lastseconds;
}
204713c: 81 c7 e0 08 ret <== NOT EXECUTED
2047140: 91 ee 00 03 restore %i0, %g3, %o0 <== NOT EXECUTED
lastdosdate = dd;
days = 0;
year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;
for (y = 0; y < year; y++)
days += y & 0x03 ? 365 : 366;
months = year & 0x03 ? regyear : leapyear;
2047144: 07 00 81 be sethi %hi(0x206f800), %g3 <== NOT EXECUTED
/*
* Prevent going from 0 to 0xffffffff in the following
* loop.
*/
month = (dd & MSDOS_DD_MONTH_MASK) >> MSDOS_DD_MONTH_SHIFT;
2047148: 9a 0e 21 e0 and %i0, 0x1e0, %o5 <== NOT EXECUTED
204714c: 9b 33 60 05 srl %o5, 5, %o5 <== NOT EXECUTED
if (month == 0) {
2047150: 80 a3 60 00 cmp %o5, 0 <== NOT EXECUTED
2047154: 02 bf ff dc be 20470c4 <msdos_date_dos2unix+0xa8> <== NOT EXECUTED
2047158: 86 10 e2 9c or %g3, 0x29c, %g3 <== NOT EXECUTED
month = 1;
}
for (m = 0; m < month - 1; m++)
204715c: 10 bf ff d2 b 20470a4 <msdos_date_dos2unix+0x88> <== NOT EXECUTED
2047160: 9a 83 7f ff addcc %o5, -1, %o5 <== 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) {
2047164: 03 00 81 cb sethi %hi(0x2072c00), %g1 <== NOT EXECUTED
2047168: 10 bf ff e6 b 2047100 <msdos_date_dos2unix+0xe4> <== NOT EXECUTED
204716c: c6 00 62 d4 ld [ %g1 + 0x2d4 ], %g3 ! 2072ed4 <lastseconds><== NOT EXECUTED
lastdosdate = dd;
days = 0;
year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;
for (y = 0; y < year; y++)
2047170: 07 00 81 be sethi %hi(0x206f800), %g3 <== NOT EXECUTED
2047174: 82 10 20 00 clr %g1 <== NOT EXECUTED
2047178: 10 bf ff c5 b 204708c <msdos_date_dos2unix+0x70> <== NOT EXECUTED
204717c: 86 10 e2 9c or %g3, 0x29c, %g3 <== NOT EXECUTED
02046ea8 <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)
{
2046ea8: 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) {
2046eac: 03 00 81 cb sethi %hi(0x2072c00), %g1 <== NOT EXECUTED
2046eb0: c4 00 62 c4 ld [ %g1 + 0x2c4 ], %g2 ! 2072ec4 <lasttime> <== NOT EXECUTED
2046eb4: 80 a0 80 18 cmp %g2, %i0 <== NOT EXECUTED
2046eb8: 02 80 00 4b be 2046fe4 <msdos_date_unix2dos+0x13c> <== NOT EXECUTED
2046ebc: 92 10 20 3c mov 0x3c, %o1 <== NOT EXECUTED
lasttime = t;
2046ec0: f0 20 62 c4 st %i0, [ %g1 + 0x2c4 ] <== NOT EXECUTED
lastdtime = (((t % 60) >> 1) << MSDOS_DT_2SECONDS_SHIFT)
2046ec4: 40 00 68 8d call 20610f8 <.udiv> <== NOT EXECUTED
2046ec8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2046ecc: 40 00 69 37 call 20613a8 <.urem> <== NOT EXECUTED
2046ed0: 92 10 20 3c mov 0x3c, %o1 <== NOT EXECUTED
2046ed4: 92 10 2e 10 mov 0xe10, %o1 <== NOT EXECUTED
2046ed8: a1 2a 20 05 sll %o0, 5, %l0 <== NOT EXECUTED
2046edc: 40 00 68 87 call 20610f8 <.udiv> <== NOT EXECUTED
2046ee0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2046ee4: 40 00 69 31 call 20613a8 <.urem> <== NOT EXECUTED
2046ee8: 92 10 20 18 mov 0x18, %o1 <== NOT EXECUTED
2046eec: 91 2a 20 0b sll %o0, 0xb, %o0 <== NOT EXECUTED
2046ef0: 92 10 20 3c mov 0x3c, %o1 <== NOT EXECUTED
2046ef4: a0 04 00 08 add %l0, %o0, %l0 <== NOT EXECUTED
2046ef8: 40 00 69 2c call 20613a8 <.urem> <== NOT EXECUTED
2046efc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2046f00: 03 00 81 cb sethi %hi(0x2072c00), %g1 <== NOT EXECUTED
2046f04: 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);
2046f08: 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)
2046f0c: 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);
2046f10: 92 12 61 80 or %o1, 0x180, %o1 <== NOT EXECUTED
2046f14: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2046f18: 40 00 68 78 call 20610f8 <.udiv> <== NOT EXECUTED
2046f1c: e0 30 62 ce sth %l0, [ %g1 + 0x2ce ] <== NOT EXECUTED
if (days != lastday) {
2046f20: 03 00 81 cb sethi %hi(0x2072c00), %g1 <== NOT EXECUTED
2046f24: c4 00 62 c8 ld [ %g1 + 0x2c8 ], %g2 ! 2072ec8 <lastday> <== NOT EXECUTED
2046f28: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED
2046f2c: 02 80 00 36 be 2047004 <msdos_date_unix2dos+0x15c> <== NOT EXECUTED
2046f30: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED
lastday = days;
2046f34: d0 20 62 c8 st %o0, [ %g1 + 0x2c8 ] <== NOT EXECUTED
for (year = 1970;; year++) {
inc = year & 0x03 ? 365 : 366;
2046f38: 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;
2046f3c: 10 80 00 03 b 2046f48 <msdos_date_unix2dos+0xa0> <== NOT EXECUTED
2046f40: 82 10 27 b2 mov 0x7b2, %g1 <== NOT EXECUTED
for (year = 1970;; year++) {
2046f44: 82 00 60 01 inc %g1 <== NOT EXECUTED
inc = year & 0x03 ? 365 : 366;
2046f48: 86 08 60 03 and %g1, 3, %g3 <== NOT EXECUTED
2046f4c: 80 a0 00 03 cmp %g0, %g3 <== NOT EXECUTED
2046f50: 84 61 20 00 subx %g4, 0, %g2 <== NOT EXECUTED
if (days < inc)
2046f54: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED
2046f58: 3a bf ff fb bcc,a 2046f44 <msdos_date_unix2dos+0x9c> <== NOT EXECUTED
2046f5c: 90 22 00 02 sub %o0, %g2, %o0 <== NOT EXECUTED
break;
days -= inc;
}
months = year & 0x03 ? regyear : leapyear;
2046f60: 09 00 81 be sethi %hi(0x206f800), %g4 <== NOT EXECUTED
2046f64: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
2046f68: 02 80 00 1c be 2046fd8 <msdos_date_unix2dos+0x130> <== NOT EXECUTED
2046f6c: 88 11 22 84 or %g4, 0x284, %g4 <== NOT EXECUTED
2046f70: 84 10 20 00 clr %g2 <== NOT EXECUTED
for (month = 0; month < 12; month++) {
if (days < months[month])
2046f74: 87 28 a0 01 sll %g2, 1, %g3 <== NOT EXECUTED
2046f78: c6 11 00 03 lduh [ %g4 + %g3 ], %g3 <== NOT EXECUTED
2046f7c: 80 a0 c0 08 cmp %g3, %o0 <== NOT EXECUTED
2046f80: 18 80 00 06 bgu 2046f98 <msdos_date_unix2dos+0xf0> <== NOT EXECUTED
2046f84: 84 00 a0 01 inc %g2 <== NOT EXECUTED
if (days < inc)
break;
days -= inc;
}
months = year & 0x03 ? regyear : leapyear;
for (month = 0; month < 12; month++) {
2046f88: 80 a0 a0 0c cmp %g2, 0xc <== NOT EXECUTED
2046f8c: 12 bf ff fa bne 2046f74 <msdos_date_unix2dos+0xcc> <== NOT EXECUTED
2046f90: 90 22 00 03 sub %o0, %g3, %o0 <== NOT EXECUTED
if (days < months[month])
break;
days -= months[month];
}
lastddate = ((days + 1) << MSDOS_DD_DAY_SHIFT)
2046f94: 84 00 a0 01 inc %g2 <== NOT EXECUTED
2046f98: 85 28 a0 05 sll %g2, 5, %g2 <== NOT EXECUTED
2046f9c: 90 02 20 01 inc %o0 <== NOT EXECUTED
2046fa0: 90 02 00 02 add %o0, %g2, %o0 <== NOT EXECUTED
2046fa4: 05 00 81 cb sethi %hi(0x2072c00), %g2 <== NOT EXECUTED
2046fa8: d0 30 a2 cc sth %o0, [ %g2 + 0x2cc ] ! 2072ecc <lastddate><== 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)
2046fac: 80 a0 67 bc cmp %g1, 0x7bc <== NOT EXECUTED
2046fb0: 08 80 00 06 bleu 2046fc8 <msdos_date_unix2dos+0x120> <== NOT EXECUTED
2046fb4: 86 10 00 08 mov %o0, %g3 <== NOT EXECUTED
lastddate += (year - 1980) <<
2046fb8: 86 00 78 44 add %g1, -1980, %g3 <== NOT EXECUTED
2046fbc: 87 28 e0 09 sll %g3, 9, %g3 <== NOT EXECUTED
2046fc0: 86 02 00 03 add %o0, %g3, %g3 <== NOT EXECUTED
2046fc4: c6 30 a2 cc sth %g3, [ %g2 + 0x2cc ] <== NOT EXECUTED
MSDOS_DD_YEAR_SHIFT;
}
}
*dtp = lastdtime;
2046fc8: f0 36 80 00 sth %i0, [ %i2 ] <== NOT EXECUTED
*ddp = lastddate;
2046fcc: c6 36 40 00 sth %g3, [ %i1 ] <== NOT EXECUTED
}
2046fd0: 81 c7 e0 08 ret <== NOT EXECUTED
2046fd4: 81 e8 00 00 restore <== NOT EXECUTED
inc = year & 0x03 ? 365 : 366;
if (days < inc)
break;
days -= inc;
}
months = year & 0x03 ? regyear : leapyear;
2046fd8: 09 00 81 be sethi %hi(0x206f800), %g4 <== NOT EXECUTED
2046fdc: 10 bf ff e5 b 2046f70 <msdos_date_unix2dos+0xc8> <== NOT EXECUTED
2046fe0: 88 11 22 9c or %g4, 0x29c, %g4 ! 206fa9c <leapyear> <== 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) {
2046fe4: 03 00 81 cb sethi %hi(0x2072c00), %g1 <== NOT EXECUTED
2046fe8: f0 10 62 ce lduh [ %g1 + 0x2ce ], %i0 ! 2072ece <lastdtime><== NOT EXECUTED
2046fec: 03 00 81 cb sethi %hi(0x2072c00), %g1 <== NOT EXECUTED
2046ff0: c6 10 62 cc lduh [ %g1 + 0x2cc ], %g3 ! 2072ecc <lastddate><== NOT EXECUTED
if (year > 1980)
lastddate += (year - 1980) <<
MSDOS_DD_YEAR_SHIFT;
}
}
*dtp = lastdtime;
2046ff4: f0 36 80 00 sth %i0, [ %i2 ] <== NOT EXECUTED
*ddp = lastddate;
2046ff8: c6 36 40 00 sth %g3, [ %i1 ] <== NOT EXECUTED
}
2046ffc: 81 c7 e0 08 ret <== NOT EXECUTED
2047000: 81 e8 00 00 restore <== 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);
if (days != lastday) {
2047004: 03 00 81 cb sethi %hi(0x2072c00), %g1 <== NOT EXECUTED
2047008: c6 10 62 cc lduh [ %g1 + 0x2cc ], %g3 ! 2072ecc <lastddate><== NOT EXECUTED
if (year > 1980)
lastddate += (year - 1980) <<
MSDOS_DD_YEAR_SHIFT;
}
}
*dtp = lastdtime;
204700c: f0 36 80 00 sth %i0, [ %i2 ] <== NOT EXECUTED
*ddp = lastddate;
2047010: c6 36 40 00 sth %g3, [ %i1 ] <== NOT EXECUTED
}
2047014: 81 c7 e0 08 ret <== NOT EXECUTED
2047018: 81 e8 00 00 restore <== NOT EXECUTED
02047374 <msdos_dir_chmod>:
int
msdos_dir_chmod(rtems_filesystem_location_info_t *pathloc,
mode_t mode)
{
return RC_OK;
}
2047374: 81 c3 e0 08 retl <== NOT EXECUTED
2047378: 90 10 20 00 clr %o0 <== NOT EXECUTED
02047b9c <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)
{
2047b9c: 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;
2047ba0: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
2047ba4: 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;
2047ba8: 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,
2047bac: 92 10 20 00 clr %o1 <== NOT EXECUTED
2047bb0: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
2047bb4: 7f ff 16 a1 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
2047bb8: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2047bbc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2047bc0: 12 80 00 10 bne 2047c00 <msdos_dir_close+0x64> <== NOT EXECUTED
2047bc4: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
rc = fat_file_close(iop->pathinfo.mt_entry, fat_fd);
2047bc8: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
2047bcc: 7f ff 84 3d call 2028cc0 <fat_file_close> <== NOT EXECUTED
2047bd0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc != RC_OK)
2047bd4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2047bd8: 12 80 00 06 bne 2047bf0 <msdos_dir_close+0x54> <== NOT EXECUTED
2047bdc: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
rtems_semaphore_release(fs_info->vol_sema);
2047be0: 7f ff 16 dd call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2047be4: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return RC_OK;
}
2047be8: 81 c7 e0 08 ret <== NOT EXECUTED
2047bec: 81 e8 00 00 restore <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
rc = fat_file_close(iop->pathinfo.mt_entry, fat_fd);
if (rc != RC_OK)
{
rtems_semaphore_release(fs_info->vol_sema);
2047bf0: 7f ff 16 d9 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2047bf4: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
2047bf8: 81 c7 e0 08 ret <== NOT EXECUTED
2047bfc: 81 e8 00 00 restore <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
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 );
2047c00: 40 00 04 11 call 2048c44 <__errno> <== NOT EXECUTED
2047c04: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2047c08: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2047c0c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2047c10: 81 c7 e0 08 ret <== NOT EXECUTED
2047c14: 81 e8 00 00 restore <== NOT EXECUTED
0203c908 <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
)
{
203c908: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
ssize_t ret = 0;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
203c90c: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== 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,
203c910: 23 00 81 be sethi %hi(0x206f800), %l1 <== 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;
203c914: f8 14 00 00 lduh [ %l0 ], %i4 <== NOT EXECUTED
203c918: e8 04 20 9c ld [ %l0 + 0x9c ], %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)),
203c91c: 27 00 81 be sethi %hi(0x206f800), %l3 <== 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;
203c920: c0 2e 80 00 clrb [ %i2 ] <== NOT EXECUTED
203c924: b9 2f 20 10 sll %i4, 0x10, %i4 <== 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,
203c928: a2 14 62 24 or %l1, 0x224, %l1 <== NOT EXECUTED
MSDOS_SHORT_NAME_LEN) == 0) ||
(strncmp(MSDOS_DIR_NAME((entry)),
203c92c: a6 14 e2 28 or %l3, 0x228, %l3 <== 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;
203c930: a4 10 20 00 clr %l2 <== NOT EXECUTED
while ((ret = fat_file_read(mt_entry, fat_fd, j * fs_info->fat.vol.bps,
203c934: b9 37 20 10 srl %i4, 0x10, %i4 <== NOT EXECUTED
203c938: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203c93c: 7f ff 18 94 call 2002b8c <.umul> <== NOT EXECUTED
203c940: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
203c944: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203c948: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203c94c: 96 10 00 1c mov %i4, %o3 <== NOT EXECUTED
203c950: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203c954: 7f ff b0 50 call 2028a94 <fat_file_read> <== NOT EXECUTED
203c958: 98 10 00 14 mov %l4, %o4 <== NOT EXECUTED
203c95c: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
203c960: 02 80 00 37 be 203ca3c <msdos_dir_is_empty+0x134> <== NOT EXECUTED
203c964: 80 a7 60 1f cmp %i5, 0x1f <== NOT EXECUTED
fs_info->fat.vol.bps,
fs_info->cl_buf)) != FAT_EOF)
{
if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
203c968: 04 80 00 39 ble 203ca4c <msdos_dir_is_empty+0x144> <== NOT EXECUTED
203c96c: 01 00 00 00 nop <== NOT EXECUTED
return -1;
assert(ret == fs_info->fat.vol.bps);
203c970: f8 14 00 00 lduh [ %l0 ], %i4 <== NOT EXECUTED
203c974: b9 2f 20 10 sll %i4, 0x10, %i4 <== NOT EXECUTED
203c978: 83 37 20 10 srl %i4, 0x10, %g1 <== NOT EXECUTED
203c97c: 80 a7 40 01 cmp %i5, %g1 <== NOT EXECUTED
203c980: 12 80 00 35 bne 203ca54 <msdos_dir_is_empty+0x14c> <== NOT EXECUTED
203c984: 80 a7 60 00 cmp %i5, 0 <== NOT EXECUTED
/* have to look at the DIR_NAME as "raw" 8-bit data */
for (i = 0;
203c988: 02 80 00 2a be 203ca30 <msdos_dir_is_empty+0x128> <== NOT EXECUTED
203c98c: ac 10 20 00 clr %l6 <== NOT EXECUTED
fs_info->cl_buf)) != FAT_EOF)
{
if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
return -1;
assert(ret == fs_info->fat.vol.bps);
203c990: e8 04 20 9c ld [ %l0 + 0x9c ], %l4 <== NOT EXECUTED
203c994: aa 10 00 14 mov %l4, %l5 <== 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)) ==
203c998: ee 0d 40 00 ldub [ %l5 ], %l7 <== NOT EXECUTED
203c99c: 80 a5 e0 e5 cmp %l7, 0xe5 <== NOT EXECUTED
203c9a0: 22 80 00 1b be,a 203ca0c <msdos_dir_is_empty+0x104> <== NOT EXECUTED
203c9a4: ac 05 a0 20 add %l6, 0x20, %l6 <== NOT EXECUTED
203c9a8: c2 0d 60 0b ldub [ %l5 + 0xb ], %g1 <== NOT EXECUTED
203c9ac: 82 08 60 3f and %g1, 0x3f, %g1 <== NOT EXECUTED
203c9b0: 80 a0 60 0f cmp %g1, 0xf <== NOT EXECUTED
203c9b4: 02 80 00 15 be 203ca08 <msdos_dir_is_empty+0x100> <== NOT EXECUTED
203c9b8: 90 10 00 15 mov %l5, %o0 <== 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,
203c9bc: d2 04 40 00 ld [ %l1 ], %o1 <== NOT EXECUTED
203c9c0: 40 00 4c b1 call 204fc84 <strncmp> <== NOT EXECUTED
203c9c4: 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)) ==
203c9c8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203c9cc: 22 80 00 10 be,a 203ca0c <msdos_dir_is_empty+0x104> <== NOT EXECUTED
203c9d0: ac 05 a0 20 add %l6, 0x20, %l6 <== 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)),
203c9d4: d2 04 c0 00 ld [ %l3 ], %o1 <== NOT EXECUTED
203c9d8: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
203c9dc: 40 00 4c aa call 204fc84 <strncmp> <== NOT EXECUTED
203c9e0: 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)) ==
203c9e4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203c9e8: 22 80 00 09 be,a 203ca0c <msdos_dir_is_empty+0x104> <== NOT EXECUTED
203c9ec: ac 05 a0 20 add %l6, 0x20, %l6 <== NOT EXECUTED
continue;
/*
* Nothing more to look at.
*/
if ((*MSDOS_DIR_NAME(entry)) ==
203c9f0: af 2d e0 18 sll %l7, 0x18, %l7 <== NOT EXECUTED
203c9f4: 80 a5 e0 00 cmp %l7, 0 <== NOT EXECUTED
203c9f8: 02 80 00 0a be 203ca20 <msdos_dir_is_empty+0x118> <== NOT EXECUTED
203c9fc: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
j++;
}
*ret_val = true;
return RC_OK;
}
203ca00: 81 c7 e0 08 ret <== NOT EXECUTED
203ca04: 81 e8 00 00 restore <== 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)
203ca08: ac 05 a0 20 add %l6, 0x20, %l6 <== 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;
203ca0c: 80 a7 40 16 cmp %i5, %l6 <== NOT EXECUTED
203ca10: 18 bf ff e2 bgu 203c998 <msdos_dir_is_empty+0x90> <== NOT EXECUTED
203ca14: aa 05 60 20 add %l5, 0x20, %l5 <== NOT EXECUTED
/*
* Short file name entries mean not empty.
*/
return RC_OK;
}
j++;
203ca18: 10 bf ff c7 b 203c934 <msdos_dir_is_empty+0x2c> <== NOT EXECUTED
203ca1c: a4 04 a0 01 inc %l2 <== NOT EXECUTED
* Nothing more to look at.
*/
if ((*MSDOS_DIR_NAME(entry)) ==
MSDOS_THIS_DIR_ENTRY_AND_REST_EMPTY)
{
*ret_val = true;
203ca20: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203ca24: c2 2e 80 00 stb %g1, [ %i2 ] <== NOT EXECUTED
return RC_OK;
203ca28: 81 c7 e0 08 ret <== NOT EXECUTED
203ca2c: 81 e8 00 00 restore <== NOT EXECUTED
203ca30: e8 04 20 9c ld [ %l0 + 0x9c ], %l4 <== NOT EXECUTED
/*
* Short file name entries mean not empty.
*/
return RC_OK;
}
j++;
203ca34: 10 bf ff c0 b 203c934 <msdos_dir_is_empty+0x2c> <== NOT EXECUTED
203ca38: a4 04 a0 01 inc %l2 <== NOT EXECUTED
}
*ret_val = true;
203ca3c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203ca40: c2 2e 80 00 stb %g1, [ %i2 ] <== NOT EXECUTED
return RC_OK;
}
203ca44: 81 c7 e0 08 ret <== NOT EXECUTED
203ca48: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
while ((ret = fat_file_read(mt_entry, fat_fd, j * fs_info->fat.vol.bps,
fs_info->fat.vol.bps,
fs_info->cl_buf)) != FAT_EOF)
{
if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
203ca4c: 81 c7 e0 08 ret <== NOT EXECUTED
203ca50: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
return -1;
assert(ret == fs_info->fat.vol.bps);
203ca54: 11 00 81 b1 sethi %hi(0x206c400), %o0 <== NOT EXECUTED
203ca58: 15 00 81 b2 sethi %hi(0x206c800), %o2 <== NOT EXECUTED
203ca5c: 17 00 81 b2 sethi %hi(0x206c800), %o3 <== NOT EXECUTED
203ca60: 90 12 23 88 or %o0, 0x388, %o0 <== NOT EXECUTED
203ca64: 94 12 a0 d8 or %o2, 0xd8, %o2 <== NOT EXECUTED
203ca68: 96 12 e0 00 mov %o3, %o3 <== NOT EXECUTED
203ca6c: 7f ff bd 37 call 202bf48 <__assert_func> <== NOT EXECUTED
203ca70: 92 10 23 b5 mov 0x3b5, %o1 <== NOT EXECUTED
0204737c <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)
{
204737c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
switch (whence)
2047380: 84 10 20 00 clr %g2 <== NOT EXECUTED
2047384: 80 a6 e0 01 cmp %i3, 1 <== NOT EXECUTED
2047388: 08 80 00 09 bleu 20473ac <msdos_dir_lseek+0x30> <== NOT EXECUTED
204738c: 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 );
2047390: 40 00 06 2d call 2048c44 <__errno> <== NOT EXECUTED
2047394: 01 00 00 00 nop <== NOT EXECUTED
2047398: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
204739c: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED
20473a0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20473a4: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
20473a8: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED
break;
}
return RC_OK;
}
20473ac: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED
20473b0: 81 c7 e0 08 ret <== NOT EXECUTED
20473b4: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
02047c18 <msdos_dir_open>:
* set apropriately)
*/
int
msdos_dir_open(rtems_libio_t *iop, const char *pathname, uint32_t flag,
uint32_t mode)
{
2047c18: 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;
2047c1c: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
2047c20: 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;
2047c24: 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,
2047c28: 92 10 20 00 clr %o1 <== NOT EXECUTED
2047c2c: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
2047c30: 94 10 20 00 clr %o2 <== NOT EXECUTED
2047c34: 7f ff 16 81 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
2047c38: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2047c3c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2047c40: 12 80 00 11 bne 2047c84 <msdos_dir_open+0x6c> <== NOT EXECUTED
2047c44: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
rc = fat_file_reopen(fat_fd);
2047c48: 7f ff 81 3b call 2028134 <fat_file_reopen> <== NOT EXECUTED
2047c4c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
if (rc != RC_OK)
2047c50: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2047c54: 12 80 00 08 bne 2047c74 <msdos_dir_open+0x5c> <== NOT EXECUTED
2047c58: 01 00 00 00 nop <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
iop->offset = 0;
rtems_semaphore_release(fs_info->vol_sema);
2047c5c: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
iop->offset = 0;
2047c60: c0 24 20 10 clr [ %l0 + 0x10 ] <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
2047c64: 7f ff 16 bc call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2047c68: c0 24 20 14 clr [ %l0 + 0x14 ] <== NOT EXECUTED
return RC_OK;
}
2047c6c: 81 c7 e0 08 ret <== NOT EXECUTED
2047c70: 81 e8 00 00 restore <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
rc = fat_file_reopen(fat_fd);
if (rc != RC_OK)
{
rtems_semaphore_release(fs_info->vol_sema);
2047c74: 7f ff 16 b8 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2047c78: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
2047c7c: 81 c7 e0 08 ret <== NOT EXECUTED
2047c80: 81 e8 00 00 restore <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
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 );
2047c84: 40 00 03 f0 call 2048c44 <__errno> <== NOT EXECUTED
2047c88: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2047c8c: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2047c90: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2047c94: 81 c7 e0 08 ret <== NOT EXECUTED
2047c98: 81 e8 00 00 restore <== NOT EXECUTED
020475d4 <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)
{
20475d4: 9d e3 be 60 save %sp, -416, %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;
20475d8: 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;
20475dc: 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) &&
20475e0: 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)
{
20475e4: f2 27 a0 48 st %i1, [ %fp + 0x48 ] <== NOT EXECUTED
20475e8: 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) &&
20475ec: 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;
20475f0: f2 00 60 34 ld [ %g1 + 0x34 ], %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) &&
20475f4: 02 80 00 eb be 20479a0 <msdos_dir_read+0x3cc> <== NOT EXECUTED
20475f8: e4 1e 20 10 ldd [ %i0 + 0x10 ], %l2 <== NOT EXECUTED
20475fc: c8 16 60 06 lduh [ %i1 + 6 ], %g4 <== NOT EXECUTED
2047600: c8 27 be c8 st %g4, [ %fp + -312 ] <== 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,
2047604: d0 06 60 98 ld [ %i1 + 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;
2047608: 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;
204760c: 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,
2047610: 92 10 20 00 clr %o1 <== NOT EXECUTED
2047614: 7f ff 18 09 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
2047618: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
204761c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2047620: 12 80 01 58 bne 2047b80 <msdos_dir_read+0x5ac> <== NOT EXECUTED
2047624: 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);
count = (count / sizeof(struct dirent)) * sizeof(struct dirent);
2047628: 40 00 66 b4 call 20610f8 <.udiv> <== NOT EXECUTED
204762c: 92 10 21 18 mov 0x118, %o1 <== NOT EXECUTED
2047630: 83 2a 20 05 sll %o0, 5, %g1 <== NOT EXECUTED
2047634: 91 2a 20 03 sll %o0, 3, %o0 <== NOT EXECUTED
2047638: 82 02 00 01 add %o0, %g1, %g1 <== NOT EXECUTED
204763c: 85 28 60 03 sll %g1, 3, %g2 <== 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)
2047640: 84 a0 80 01 subcc %g2, %g1, %g2 <== NOT EXECUTED
2047644: 02 80 01 4d be 2047b78 <msdos_dir_read+0x5a4> <== NOT EXECUTED
2047648: c4 27 be cc st %g2, [ %fp + -308 ] <== 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);
204764c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2047650: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2047654: 94 10 20 00 clr %o2 <== NOT EXECUTED
2047658: 40 00 68 66 call 20617f0 <__divdi3> <== NOT EXECUTED
204765c: 96 10 21 18 mov 0x118, %o3 <== NOT EXECUTED
2047660: d8 06 60 9c ld [ %i1 + 0x9c ], %o4 <== NOT EXECUTED
2047664: 39 00 81 be sethi %hi(0x206f800), %i4 <== NOT EXECUTED
2047668: ac 10 00 09 mov %o1, %l6 <== NOT EXECUTED
204766c: b8 17 22 b4 or %i4, 0x2b4, %i4 <== NOT EXECUTED
2047670: b0 10 20 00 clr %i0 <== NOT EXECUTED
2047674: ba 10 20 00 clr %i5 <== NOT EXECUTED
2047678: b4 10 20 00 clr %i2 <== NOT EXECUTED
204767c: ae 10 3f ff mov -1, %l7 <== NOT EXECUTED
2047680: b6 10 20 00 clr %i3 <== 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);
2047684: aa 10 00 11 mov %l1, %l5 <== 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),
2047688: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
204768c: d6 07 be c8 ld [ %fp + -312 ], %o3 <== NOT EXECUTED
2047690: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
2047694: 7f ff 85 00 call 2028a94 <fat_file_read> <== NOT EXECUTED
2047698: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
bts2rd, fs_info->cl_buf);
if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
204769c: 80 a2 20 1f cmp %o0, 0x1f <== NOT EXECUTED
20476a0: 04 80 01 2c ble 2047b50 <msdos_dir_read+0x57c> <== NOT EXECUTED
20476a4: a8 10 00 08 mov %o0, %l4 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
}
for (i = 0; i < ret; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
{
char* entry = (char*) fs_info->cl_buf + i;
20476a8: d8 06 60 9c ld [ %i1 + 0x9c ], %o4 <== NOT EXECUTED
/*
* Is this directory from here on empty ?
*/
if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==
20476ac: c6 0b 00 00 ldub [ %o4 ], %g3 <== NOT EXECUTED
20476b0: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
20476b4: 02 80 00 b5 be 2047988 <msdos_dir_read+0x3b4> <== NOT EXECUTED
20476b8: a6 10 00 0c mov %o4, %l3 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
}
for (i = 0; i < ret; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
{
char* entry = (char*) fs_info->cl_buf + i;
20476bc: a4 10 00 0c mov %o4, %l2 <== NOT EXECUTED
20476c0: 10 80 00 0e b 20476f8 <msdos_dir_read+0x124> <== NOT EXECUTED
20476c4: a2 10 20 00 clr %l1 <== NOT EXECUTED
/* Is the directory entry empty */
if ((*MSDOS_DIR_ENTRY_TYPE(entry)) == MSDOS_THIS_DIR_ENTRY_EMPTY)
continue;
/* Is the directory entry empty a volume label */
if (((*MSDOS_DIR_ATTR(entry)) & MSDOS_ATTR_VOLUME_ID) &&
20476c8: 80 a0 60 0f cmp %g1, 0xf <== NOT EXECUTED
20476cc: 02 80 00 20 be 204774c <msdos_dir_read+0x178> <== NOT EXECUTED
20476d0: 80 a5 ff ff cmp %l7, -1 <== 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)
20476d4: a2 04 60 20 add %l1, 0x20, %l1 <== NOT EXECUTED
20476d8: 80 a4 40 14 cmp %l1, %l4 <== NOT EXECUTED
20476dc: 1a 80 00 19 bcc 2047740 <msdos_dir_read+0x16c> <== NOT EXECUTED
20476e0: c2 07 be c8 ld [ %fp + -312 ], %g1 <== NOT EXECUTED
char* entry = (char*) fs_info->cl_buf + i;
/*
* Is this directory from here on empty ?
*/
if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==
20476e4: c6 0b 00 11 ldub [ %o4 + %l1 ], %g3 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
}
for (i = 0; i < ret; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
{
char* entry = (char*) fs_info->cl_buf + i;
20476e8: a4 03 00 11 add %o4, %l1, %l2 <== NOT EXECUTED
/*
* Is this directory from here on empty ?
*/
if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==
20476ec: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
20476f0: 02 80 00 a6 be 2047988 <msdos_dir_read+0x3b4> <== NOT EXECUTED
20476f4: a6 10 00 12 mov %l2, %l3 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
return cmpltd;
}
/* Is the directory entry empty */
if ((*MSDOS_DIR_ENTRY_TYPE(entry)) == MSDOS_THIS_DIR_ENTRY_EMPTY)
20476f8: 80 a0 e0 e5 cmp %g3, 0xe5 <== NOT EXECUTED
20476fc: 22 bf ff f7 be,a 20476d8 <msdos_dir_read+0x104> <== NOT EXECUTED
2047700: a2 04 60 20 add %l1, 0x20, %l1 <== NOT EXECUTED
continue;
/* Is the directory entry empty a volume label */
if (((*MSDOS_DIR_ATTR(entry)) & MSDOS_ATTR_VOLUME_ID) &&
2047704: c2 0c e0 0b ldub [ %l3 + 0xb ], %g1 <== NOT EXECUTED
2047708: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED
204770c: 12 bf ff ef bne 20476c8 <msdos_dir_read+0xf4> <== NOT EXECUTED
2047710: 82 08 60 3f and %g1, 0x3f, %g1 <== 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) ==
2047714: 80 a0 60 0f cmp %g1, 0xf <== NOT EXECUTED
2047718: 02 80 00 0c be 2047748 <msdos_dir_read+0x174> <== NOT EXECUTED
204771c: 80 a5 a0 00 cmp %l6, 0 <== NOT EXECUTED
fat_dir_pos_t dir_pos;
/*
* Skip active entries until get the entry to start from.
*/
if (start)
2047720: 22 80 00 18 be,a 2047780 <msdos_dir_read+0x1ac> <== NOT EXECUTED
2047724: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== 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)
2047728: a2 04 60 20 add %l1, 0x20, %l1 <== NOT EXECUTED
* Skip active entries until get the entry to start from.
*/
if (start)
{
lfn_start = FAT_FILE_SHORT_NAME;
start--;
204772c: ac 05 bf ff add %l6, -1, %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)
2047730: 80 a4 40 14 cmp %l1, %l4 <== NOT EXECUTED
2047734: 0a bf ff ec bcs 20476e4 <msdos_dir_read+0x110> <== NOT EXECUTED
2047738: ae 10 3f ff mov -1, %l7 <== NOT EXECUTED
204773c: c2 07 be c8 ld [ %fp + -312 ], %g1 <== NOT EXECUTED
2047740: 10 bf ff d2 b 2047688 <msdos_dir_read+0xb4> <== NOT EXECUTED
2047744: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED
int q;
/*
* Is this is the first entry of a LFN ?
*/
if (lfn_start == FAT_FILE_SHORT_NAME)
2047748: 80 a5 ff ff cmp %l7, -1 <== NOT EXECUTED
204774c: 82 10 00 1d mov %i5, %g1 <== NOT EXECUTED
2047750: 02 80 00 71 be 2047914 <msdos_dir_read+0x340> <== NOT EXECUTED
2047754: 84 10 00 1a mov %i2, %g2 <== 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) &
2047758: fa 0c c0 00 ldub [ %l3 ], %i5 <== NOT EXECUTED
204775c: ba 0f 60 3f and %i5, 0x3f, %i5 <== NOT EXECUTED
2047760: 80 a7 40 01 cmp %i5, %g1 <== NOT EXECUTED
2047764: 22 80 00 80 be,a 2047964 <msdos_dir_read+0x390> <== NOT EXECUTED
2047768: f4 0c e0 0d ldub [ %l3 + 0xd ], %i2 <== NOT EXECUTED
204776c: ba 10 00 01 mov %g1, %i5 <== NOT EXECUTED
2047770: b4 10 00 02 mov %g2, %i2 <== NOT EXECUTED
2047774: ae 10 3f ff mov -1, %l7 <== NOT EXECUTED
2047778: 10 bf ff d7 b 20476d4 <msdos_dir_read+0x100> <== NOT EXECUTED
204777c: d8 06 60 9c ld [ %i1 + 0x9c ], %o4 <== 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,
2047780: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
2047784: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
2047788: 96 10 00 18 mov %i0, %o3 <== NOT EXECUTED
204778c: 7f ff 83 33 call 2028458 <fat_file_ioctl> <== NOT EXECUTED
2047790: 98 07 bf f8 add %fp, -8, %o4 <== NOT EXECUTED
j * bts2rd, &cur_cln);
if (rc != RC_OK)
2047794: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2047798: 12 80 00 c5 bne 2047aac <msdos_dir_read+0x4d8> <== NOT EXECUTED
204779c: 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);
20477a0: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
fat_dir_pos_init(&dir_pos);
dir_pos.sname.cln = cur_cln;
20477a4: c2 27 bf e8 st %g1, [ %fp + -24 ] <== 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;
20477a8: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
dir_pos.sname.ofs = i;
20477ac: e2 27 bf ec st %l1, [ %fp + -20 ] <== NOT EXECUTED
20477b0: c2 27 bf f0 st %g1, [ %fp + -16 ] <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
20477b4: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED
rc = fat_file_open(iop->pathinfo.mt_entry, &dir_pos, &tmp_fat_fd);
20477b8: 92 07 bf e8 add %fp, -24, %o1 <== NOT EXECUTED
20477bc: 7f ff 85 73 call 2028d88 <fat_file_open> <== NOT EXECUTED
20477c0: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
if (rc != RC_OK)
20477c4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20477c8: 12 80 00 b9 bne 2047aac <msdos_dir_read+0x4d8> <== NOT EXECUTED
20477cc: c2 07 bf fc ld [ %fp + -4 ], %g1 <== 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);
20477d0: 88 10 21 18 mov 0x118, %g4 <== NOT EXECUTED
tmp_dirent.d_ino = tmp_fat_fd->ino;
20477d4: 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;
20477d8: c0 27 be d8 clr [ %fp + -296 ] <== NOT EXECUTED
20477dc: f6 27 be dc st %i3, [ %fp + -292 ] <== NOT EXECUTED
tmp_dirent.d_reclen = sizeof(struct dirent);
tmp_dirent.d_ino = tmp_fat_fd->ino;
20477e0: c2 27 be d0 st %g1, [ %fp + -304 ] <== 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)
20477e4: 80 a5 ff ff cmp %l7, -1 <== NOT EXECUTED
20477e8: 02 80 00 16 be 2047840 <msdos_dir_read+0x26c> <== NOT EXECUTED
20477ec: c8 37 be e0 sth %g4, [ %fp + -288 ] <== NOT EXECUTED
20477f0: 82 10 20 00 clr %g1 <== NOT EXECUTED
20477f4: 84 10 20 00 clr %g2 <== NOT EXECUTED
20477f8: 10 80 00 06 b 2047810 <msdos_dir_read+0x23c> <== NOT EXECUTED
20477fc: 86 10 20 00 clr %g3 <== 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;
2047800: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED
2047804: 84 08 e0 01 and %g3, 1, %g2 <== NOT EXECUTED
2047808: 84 20 00 02 neg %g2 <== NOT EXECUTED
204780c: 84 08 a0 80 and %g2, 0x80, %g2 <== NOT EXECUTED
2047810: c8 0c c0 01 ldub [ %l3 + %g1 ], %g4 <== NOT EXECUTED
2047814: 87 30 e0 01 srl %g3, 1, %g3 <== NOT EXECUTED
2047818: 84 00 80 04 add %g2, %g4, %g2 <== NOT EXECUTED
{
uint8_t cs = 0;
uint8_t* p = (uint8_t*) entry;
int i;
for (i = 0; i < 11; i++, p++)
204781c: 82 00 60 01 inc %g1 <== NOT EXECUTED
2047820: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED
2047824: 12 bf ff f7 bne 2047800 <msdos_dir_read+0x22c> <== NOT EXECUTED
2047828: 86 00 80 03 add %g2, %g3, %g3 <== NOT EXECUTED
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
if (lfn_entries || (lfn_checksum != cs))
204782c: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED
2047830: 82 0e a0 ff and %i2, 0xff, %g1 <== NOT EXECUTED
2047834: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
2047838: 02 80 00 1d be 20478ac <msdos_dir_read+0x2d8> <== NOT EXECUTED
204783c: 80 a7 60 00 cmp %i5, 0 <== NOT EXECUTED
/*
* copy base name to destination
*/
src_tmp = src;
len = i;
while (i-- > 0) {
2047840: 86 10 20 08 mov 8, %g3 <== NOT EXECUTED
const char *src_tmp;
/*
* find last non-blank character of base name
*/
for ((i = MSDOS_SHORT_BASE_LEN ,
2047844: 82 04 80 03 add %l2, %g3, %g1 <== NOT EXECUTED
2047848: c2 48 7f ff ldsb [ %g1 + -1 ], %g1 <== NOT EXECUTED
204784c: 80 a0 60 20 cmp %g1, 0x20 <== NOT EXECUTED
2047850: 12 80 00 83 bne 2047a5c <msdos_dir_read+0x488> <== NOT EXECUTED
2047854: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
2047858: 86 80 ff ff addcc %g3, -1, %g3 <== NOT EXECUTED
204785c: 12 bf ff fb bne 2047848 <msdos_dir_read+0x274> <== NOT EXECUTED
2047860: 82 04 80 03 add %l2, %g3, %g1 <== NOT EXECUTED
/*
* copy base name to destination
*/
src_tmp = src;
len = i;
while (i-- > 0) {
2047864: 84 07 be e4 add %fp, -284, %g2 <== NOT EXECUTED
*dst++ = tolower((unsigned char)(*src_tmp++));
}
/*
* find last non-blank character of extension
*/
for ((i = MSDOS_SHORT_EXT_LEN ,
2047868: c2 4c a0 0a ldsb [ %l2 + 0xa ], %g1 <== NOT EXECUTED
204786c: 80 a0 60 20 cmp %g1, 0x20 <== NOT EXECUTED
2047870: 12 80 00 9c bne 2047ae0 <msdos_dir_read+0x50c> <== NOT EXECUTED
2047874: 96 10 20 03 mov 3, %o3 <== NOT EXECUTED
2047878: c2 4c a0 09 ldsb [ %l2 + 9 ], %g1 <== NOT EXECUTED
src_tmp = src + MSDOS_SHORT_BASE_LEN+MSDOS_SHORT_EXT_LEN-1);
((i > 0) &&
(*src_tmp == ' '));
i--,src_tmp--)
204787c: 88 04 a0 09 add %l2, 9, %g4 <== NOT EXECUTED
*dst++ = tolower((unsigned char)(*src_tmp++));
}
/*
* find last non-blank character of extension
*/
for ((i = MSDOS_SHORT_EXT_LEN ,
2047880: 80 a0 60 20 cmp %g1, 0x20 <== NOT EXECUTED
2047884: 12 80 00 97 bne 2047ae0 <msdos_dir_read+0x50c> <== NOT EXECUTED
2047888: 96 10 20 02 mov 2, %o3 <== NOT EXECUTED
204788c: c2 49 3f ff ldsb [ %g4 + -1 ], %g1 <== NOT EXECUTED
2047890: 80 a0 60 20 cmp %g1, 0x20 <== NOT EXECUTED
2047894: 12 80 00 93 bne 2047ae0 <msdos_dir_read+0x50c> <== NOT EXECUTED
2047898: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
while (i-- > 0) {
*dst++ = tolower((unsigned char)(*src_tmp++));
len++;
}
}
*dst = '\0'; /* terminate string */
204789c: c0 28 80 00 clrb [ %g2 ] <== 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(
20478a0: c6 37 be e2 sth %g3, [ %fp + -286 ] <== NOT EXECUTED
20478a4: 10 80 00 07 b 20478c0 <msdos_dir_read+0x2ec> <== NOT EXECUTED
20478a8: ae 10 3f ff mov -1, %l7 <== NOT EXECUTED
int i;
for (i = 0; i < 11; i++, p++)
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
if (lfn_entries || (lfn_checksum != cs))
20478ac: 12 bf ff e6 bne 2047844 <msdos_dir_read+0x270> <== NOT EXECUTED
20478b0: 86 10 20 08 mov 8, %g3 <== 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);
20478b4: 40 00 20 8c call 204fae4 <strlen> <== NOT EXECUTED
20478b8: 90 07 be e4 add %fp, -284, %o0 <== NOT EXECUTED
20478bc: d0 37 be e2 sth %o0, [ %fp + -286 ] <== NOT EXECUTED
}
memcpy(buffer + cmpltd, &tmp_dirent, sizeof(struct dirent));
20478c0: c2 07 a0 48 ld [ %fp + 0x48 ], %g1 <== NOT EXECUTED
20478c4: 92 07 be d0 add %fp, -304, %o1 <== NOT EXECUTED
20478c8: 94 10 21 18 mov 0x118, %o2 <== NOT EXECUTED
20478cc: 40 00 12 2a call 204c174 <memcpy> <== NOT EXECUTED
20478d0: 90 00 40 1b add %g1, %i3, %o0 <== NOT EXECUTED
iop->offset = iop->offset + sizeof(struct dirent);
20478d4: 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);
20478d8: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
20478dc: 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);
20478e0: 86 80 e1 18 addcc %g3, 0x118, %g3 <== NOT EXECUTED
20478e4: 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);
20478e8: 7f ff 84 f6 call 2028cc0 <fat_file_close> <== NOT EXECUTED
20478ec: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] <== NOT EXECUTED
if (rc != RC_OK)
20478f0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20478f4: 12 80 00 6e bne 2047aac <msdos_dir_read+0x4d8> <== NOT EXECUTED
20478f8: c8 07 be cc ld [ %fp + -308 ], %g4 <== NOT EXECUTED
}
memcpy(buffer + cmpltd, &tmp_dirent, sizeof(struct dirent));
iop->offset = iop->offset + sizeof(struct dirent);
cmpltd += (sizeof(struct dirent));
20478fc: b6 06 e1 18 add %i3, 0x118, %i3 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
}
if (count <= 0)
2047900: 88 81 3e e8 addcc %g4, -280, %g4 <== NOT EXECUTED
2047904: 02 80 00 71 be 2047ac8 <msdos_dir_read+0x4f4> <== NOT EXECUTED
2047908: c8 27 be cc st %g4, [ %fp + -308 ] <== NOT EXECUTED
204790c: 10 bf ff 72 b 20476d4 <msdos_dir_read+0x100> <== NOT EXECUTED
2047910: d8 06 60 9c ld [ %i1 + 0x9c ], %o4 <== NOT EXECUTED
if (lfn_start == FAT_FILE_SHORT_NAME)
{
/*
* The first entry must have the last long entry flag set.
*/
if ((*MSDOS_DIR_ENTRY_TYPE(entry) &
2047914: 80 88 e0 40 btst 0x40, %g3 <== NOT EXECUTED
2047918: 22 bf ff 70 be,a 20476d8 <msdos_dir_read+0x104> <== NOT EXECUTED
204791c: a2 04 60 20 add %l1, 0x20, %l1 <== 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);
2047920: c4 0c e0 0d ldub [ %l3 + 0xd ], %g2 <== 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) &
2047924: 82 08 e0 3f and %g3, 0x3f, %g1 <== NOT EXECUTED
MSDOS_LAST_LONG_ENTRY_MASK);
lfn_checksum = *MSDOS_DIR_LFN_CHECKSUM(entry);
memset (tmp_dirent.d_name, 0, sizeof(tmp_dirent.d_name));
2047928: c4 27 be c4 st %g2, [ %fp + -316 ] <== NOT EXECUTED
204792c: c2 27 be c0 st %g1, [ %fp + -320 ] <== NOT EXECUTED
2047930: 90 07 be e4 add %fp, -284, %o0 <== NOT EXECUTED
2047934: 92 10 20 00 clr %o1 <== NOT EXECUTED
2047938: 40 00 12 a2 call 204c3c0 <memset> <== NOT EXECUTED
204793c: 94 10 21 00 mov 0x100, %o2 <== NOT EXECUTED
2047940: c2 07 be c0 ld [ %fp + -320 ], %g1 <== 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) &
2047944: fa 0c c0 00 ldub [ %l3 ], %i5 <== NOT EXECUTED
continue;
/*
* Remember the start location of the long file name.
*/
lfn_start =
2047948: ae 06 00 11 add %i0, %l1, %l7 <== 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) &
204794c: ba 0f 60 3f and %i5, 0x3f, %i5 <== NOT EXECUTED
continue;
/*
* Remember the start location of the long file name.
*/
lfn_start =
2047950: af 35 e0 05 srl %l7, 5, %l7 <== 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) &
2047954: 80 a7 40 01 cmp %i5, %g1 <== NOT EXECUTED
2047958: 12 bf ff 85 bne 204776c <msdos_dir_read+0x198> <== NOT EXECUTED
204795c: c4 07 be c4 ld [ %fp + -316 ], %g2 <== NOT EXECUTED
MSDOS_LAST_LONG_ENTRY_MASK)) ||
(lfn_checksum != *MSDOS_DIR_LFN_CHECKSUM(entry)))
2047960: f4 0c e0 0d ldub [ %l3 + 0xd ], %i2 <== 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) &
2047964: 86 08 a0 ff and %g2, 0xff, %g3 <== NOT EXECUTED
2047968: 88 0e a0 ff and %i2, 0xff, %g4 <== NOT EXECUTED
204796c: 80 a1 00 03 cmp %g4, %g3 <== NOT EXECUTED
2047970: 22 80 00 17 be,a 20479cc <msdos_dir_read+0x3f8> <== NOT EXECUTED
2047974: ba 00 7f ff add %g1, -1, %i5 <== NOT EXECUTED
2047978: b4 10 00 02 mov %g2, %i2 <== NOT EXECUTED
204797c: ae 10 3f ff mov -1, %l7 <== NOT EXECUTED
2047980: 10 bf ff 55 b 20476d4 <msdos_dir_read+0x100> <== NOT EXECUTED
2047984: d8 06 60 9c ld [ %i1 + 0x9c ], %o4 <== NOT EXECUTED
* Is this directory from here on empty ?
*/
if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==
MSDOS_THIS_DIR_ENTRY_AND_REST_EMPTY)
{
rtems_semaphore_release(fs_info->vol_sema);
2047988: d0 06 60 98 ld [ %i1 + 0x98 ], %o0 <== NOT EXECUTED
204798c: 7f ff 17 72 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2047990: f6 27 be c0 st %i3, [ %fp + -320 ] <== NOT EXECUTED
return cmpltd;
2047994: c2 07 be c0 ld [ %fp + -320 ], %g1 <== NOT EXECUTED
j++;
}
rtems_semaphore_release(fs_info->vol_sema);
return cmpltd;
}
2047998: 81 c7 e0 08 ret <== NOT EXECUTED
204799c: 91 e8 00 01 restore %g0, %g1, %o0 <== 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) &&
20479a0: c2 04 60 24 ld [ %l1 + 0x24 ], %g1 <== NOT EXECUTED
20479a4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20479a8: 32 bf ff 16 bne,a 2047600 <msdos_dir_read+0x2c> <== NOT EXECUTED
20479ac: c8 16 60 06 lduh [ %i1 + 6 ], %g4 <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16))) ?
20479b0: c2 0e 60 0a ldub [ %i1 + 0xa ], %g1 <== NOT EXECUTED
20479b4: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
20479b8: 22 bf ff 12 be,a 2047600 <msdos_dir_read+0x2c> <== NOT EXECUTED
20479bc: c8 16 60 06 lduh [ %i1 + 6 ], %g4 <== 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) &&
20479c0: c2 04 60 18 ld [ %l1 + 0x18 ], %g1 <== NOT EXECUTED
20479c4: 10 bf ff 10 b 2047604 <msdos_dir_read+0x30> <== NOT EXECUTED
20479c8: c2 27 be c8 st %g1, [ %fp + -312 ] <== NOT EXECUTED
* fit in the directory entry name field.
*/
lfn_entries--;
p = entry + 1;
o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;
20479cc: 85 2f 60 04 sll %i5, 4, %g2 <== NOT EXECUTED
20479d0: 83 2f 60 02 sll %i5, 2, %g1 <== NOT EXECUTED
20479d4: 88 07 be d0 add %fp, -304, %g4 <== NOT EXECUTED
20479d8: 82 20 80 01 sub %g2, %g1, %g1 <== 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;
20479dc: a4 04 a0 01 inc %l2 <== NOT EXECUTED
o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;
20479e0: 82 00 40 1d add %g1, %i5, %g1 <== NOT EXECUTED
20479e4: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
20479e8: 86 01 00 01 add %g4, %g1, %g3 <== NOT EXECUTED
20479ec: 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))
20479f0: 80 a0 60 fe cmp %g1, 0xfe <== NOT EXECUTED
* fit in the directory entry name field.
*/
lfn_entries--;
p = entry + 1;
o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;
20479f4: 88 00 bf ff add %g2, -1, %g4 <== NOT EXECUTED
for (q = 0; q < MSDOS_LFN_LEN_PER_ENTRY; q++)
{
if (o >= (sizeof(tmp_dirent.d_name) - 1))
20479f8: 18 bf ff c5 bgu 204790c <msdos_dir_read+0x338> <== NOT EXECUTED
20479fc: 82 00 60 01 inc %g1 <== NOT EXECUTED
break;
tmp_dirent.d_name[o++] = *p;
2047a00: da 0c 80 00 ldub [ %l2 ], %o5 <== NOT EXECUTED
2047a04: da 28 c0 00 stb %o5, [ %g3 ] <== NOT EXECUTED
if (*p == '\0')
2047a08: da 4c 80 00 ldsb [ %l2 ], %o5 <== NOT EXECUTED
2047a0c: 80 a3 60 00 cmp %o5, 0 <== NOT EXECUTED
2047a10: 02 bf ff bf be 204790c <msdos_dir_read+0x338> <== NOT EXECUTED
2047a14: 80 a1 20 04 cmp %g4, 4 <== NOT EXECUTED
break;
switch (q)
2047a18: 02 80 00 0d be 2047a4c <msdos_dir_read+0x478> <== NOT EXECUTED
2047a1c: 80 a1 20 0a cmp %g4, 0xa <== NOT EXECUTED
2047a20: 02 80 00 07 be 2047a3c <msdos_dir_read+0x468> <== NOT EXECUTED
2047a24: 80 a0 a0 0c cmp %g2, 0xc <== 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++)
2047a28: 14 bf ff b9 bg 204790c <msdos_dir_read+0x338> <== NOT EXECUTED
2047a2c: 84 00 a0 01 inc %g2 <== NOT EXECUTED
break;
case 10:
p += 4;
break;
default:
p += 2;
2047a30: a4 04 a0 02 add %l2, 2, %l2 <== NOT EXECUTED
* fit in the directory entry name field.
*/
lfn_entries--;
p = entry + 1;
o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;
2047a34: 10 bf ff ef b 20479f0 <msdos_dir_read+0x41c> <== NOT EXECUTED
2047a38: 86 00 e0 01 inc %g3 <== NOT EXECUTED
{
case 4:
p += 5;
break;
case 10:
p += 4;
2047a3c: a4 04 a0 04 add %l2, 4, %l2 <== NOT EXECUTED
* fit in the directory entry name field.
*/
lfn_entries--;
p = entry + 1;
o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;
2047a40: 84 00 a0 01 inc %g2 <== NOT EXECUTED
2047a44: 10 bf ff eb b 20479f0 <msdos_dir_read+0x41c> <== NOT EXECUTED
2047a48: 86 00 e0 01 inc %g3 <== NOT EXECUTED
break;
switch (q)
{
case 4:
p += 5;
2047a4c: a4 04 a0 05 add %l2, 5, %l2 <== NOT EXECUTED
* fit in the directory entry name field.
*/
lfn_entries--;
p = entry + 1;
o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;
2047a50: 84 00 a0 01 inc %g2 <== NOT EXECUTED
2047a54: 10 bf ff e7 b 20479f0 <msdos_dir_read+0x41c> <== NOT EXECUTED
2047a58: 86 00 e0 01 inc %g3 <== 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)
2047a5c: 82 10 20 00 clr %g1 <== NOT EXECUTED
/*
* copy base name to destination
*/
src_tmp = src;
len = i;
while (i-- > 0) {
2047a60: 14 80 00 08 bg 2047a80 <msdos_dir_read+0x4ac> <== NOT EXECUTED
2047a64: 84 07 be e4 add %fp, -284, %g2 <== NOT EXECUTED
*dst++ = tolower((unsigned char)(*src_tmp++));
}
/*
* find last non-blank character of extension
*/
for ((i = MSDOS_SHORT_EXT_LEN ,
2047a68: 10 bf ff 81 b 204786c <msdos_dir_read+0x298> <== NOT EXECUTED
2047a6c: c2 4c a0 0a ldsb [ %l2 + 0xa ], %g1 <== NOT EXECUTED
* copy base name to destination
*/
src_tmp = src;
len = i;
while (i-- > 0) {
*dst++ = tolower((unsigned char)(*src_tmp++));
2047a70: da 28 80 00 stb %o5, [ %g2 ] <== NOT EXECUTED
/*
* copy base name to destination
*/
src_tmp = src;
len = i;
while (i-- > 0) {
2047a74: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
2047a78: 02 bf ff 7c be 2047868 <msdos_dir_read+0x294> <== NOT EXECUTED
2047a7c: 84 00 a0 01 inc %g2 <== NOT EXECUTED
*dst++ = tolower((unsigned char)(*src_tmp++));
2047a80: c8 0c 80 01 ldub [ %l2 + %g1 ], %g4 <== NOT EXECUTED
2047a84: d8 07 00 00 ld [ %i4 ], %o4 <== NOT EXECUTED
2047a88: 9a 10 00 04 mov %g4, %o5 <== NOT EXECUTED
2047a8c: 88 03 00 04 add %o4, %g4, %g4 <== NOT EXECUTED
2047a90: c8 09 20 01 ldub [ %g4 + 1 ], %g4 <== NOT EXECUTED
2047a94: 88 09 20 03 and %g4, 3, %g4 <== NOT EXECUTED
2047a98: 80 a1 20 01 cmp %g4, 1 <== NOT EXECUTED
2047a9c: 12 bf ff f5 bne 2047a70 <msdos_dir_read+0x49c> <== NOT EXECUTED
2047aa0: 82 00 60 01 inc %g1 <== NOT EXECUTED
2047aa4: 10 bf ff f3 b 2047a70 <msdos_dir_read+0x49c> <== NOT EXECUTED
2047aa8: 9a 03 60 20 add %o5, 0x20, %o5 <== NOT EXECUTED
2047aac: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED
/* inode number extracted, close fat-file */
rc = fat_file_close(iop->pathinfo.mt_entry, tmp_fat_fd);
if (rc != RC_OK)
{
rtems_semaphore_release(fs_info->vol_sema);
2047ab0: d0 06 60 98 ld [ %i1 + 0x98 ], %o0 <== NOT EXECUTED
2047ab4: 7f ff 17 28 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2047ab8: c2 27 be c0 st %g1, [ %fp + -320 ] <== NOT EXECUTED
return rc;
2047abc: c2 07 be c0 ld [ %fp + -320 ], %g1 <== NOT EXECUTED
j++;
}
rtems_semaphore_release(fs_info->vol_sema);
return cmpltd;
}
2047ac0: 81 c7 e0 08 ret <== NOT EXECUTED
2047ac4: 91 e8 00 01 restore %g0, %g1, %o0 <== 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)
2047ac8: 82 10 00 1b mov %i3, %g1 <== NOT EXECUTED
break;
}
j++;
}
rtems_semaphore_release(fs_info->vol_sema);
2047acc: d0 06 60 98 ld [ %i1 + 0x98 ], %o0 <== NOT EXECUTED
2047ad0: 7f ff 17 21 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2047ad4: c2 27 be c0 st %g1, [ %fp + -320 ] <== NOT EXECUTED
return cmpltd;
2047ad8: 10 bf ff b0 b 2047998 <msdos_dir_read+0x3c4> <== NOT EXECUTED
2047adc: c2 07 be c0 ld [ %fp + -320 ], %g1 <== NOT EXECUTED
/*
* extension is not empty
*/
if (i > 0) {
*dst++ = '.'; /* append dot */
len += i + 1; /* extension + dot */
2047ae0: 86 00 e0 01 inc %g3 <== NOT EXECUTED
{};
/*
* extension is not empty
*/
if (i > 0) {
*dst++ = '.'; /* append dot */
2047ae4: 88 10 20 2e mov 0x2e, %g4 <== NOT EXECUTED
len += i + 1; /* extension + dot */
2047ae8: 86 00 c0 0b add %g3, %o3, %g3 <== NOT EXECUTED
{};
/*
* extension is not empty
*/
if (i > 0) {
*dst++ = '.'; /* append dot */
2047aec: c8 28 80 00 stb %g4, [ %g2 ] <== NOT EXECUTED
2047af0: 94 00 a0 01 add %g2, 1, %o2 <== 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)
2047af4: 10 80 00 06 b 2047b0c <msdos_dir_read+0x538> <== NOT EXECUTED
2047af8: 82 10 20 00 clr %g1 <== 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++));
2047afc: 82 00 60 01 inc %g1 <== NOT EXECUTED
*/
if (i > 0) {
*dst++ = '.'; /* append dot */
len += i + 1; /* extension + dot */
src_tmp = src + MSDOS_SHORT_BASE_LEN;
while (i-- > 0) {
2047b00: 80 a0 40 0b cmp %g1, %o3 <== NOT EXECUTED
2047b04: 02 80 00 10 be 2047b44 <msdos_dir_read+0x570> <== NOT EXECUTED
2047b08: c8 2b 60 01 stb %g4, [ %o5 + 1 ] <== NOT EXECUTED
*dst++ = tolower((unsigned char)(*src_tmp++));
2047b0c: 88 04 80 01 add %l2, %g1, %g4 <== NOT EXECUTED
2047b10: d8 07 00 00 ld [ %i4 ], %o4 <== NOT EXECUTED
2047b14: c8 09 20 08 ldub [ %g4 + 8 ], %g4 <== NOT EXECUTED
2047b18: 98 03 00 04 add %o4, %g4, %o4 <== NOT EXECUTED
2047b1c: d8 0b 20 01 ldub [ %o4 + 1 ], %o4 <== NOT EXECUTED
2047b20: 98 0b 20 03 and %o4, 3, %o4 <== NOT EXECUTED
2047b24: 80 a3 20 01 cmp %o4, 1 <== NOT EXECUTED
2047b28: 12 bf ff f5 bne 2047afc <msdos_dir_read+0x528> <== NOT EXECUTED
2047b2c: 9a 00 80 01 add %g2, %g1, %o5 <== NOT EXECUTED
2047b30: 88 01 20 20 add %g4, 0x20, %g4 <== NOT EXECUTED
2047b34: 82 00 60 01 inc %g1 <== NOT EXECUTED
*/
if (i > 0) {
*dst++ = '.'; /* append dot */
len += i + 1; /* extension + dot */
src_tmp = src + MSDOS_SHORT_BASE_LEN;
while (i-- > 0) {
2047b38: 80 a0 40 0b cmp %g1, %o3 <== NOT EXECUTED
2047b3c: 12 bf ff f4 bne 2047b0c <msdos_dir_read+0x538> <== NOT EXECUTED
2047b40: c8 2b 60 01 stb %g4, [ %o5 + 1 ] <== NOT EXECUTED
2047b44: 86 00 c0 01 add %g3, %g1, %g3 <== NOT EXECUTED
2047b48: 10 bf ff 55 b 204789c <msdos_dir_read+0x2c8> <== NOT EXECUTED
2047b4c: 84 02 80 01 add %o2, %g1, %g2 <== NOT EXECUTED
*/
ret = fat_file_read(iop->pathinfo.mt_entry, fat_fd, (j * bts2rd),
bts2rd, fs_info->cl_buf);
if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
{
rtems_semaphore_release(fs_info->vol_sema);
2047b50: d0 06 60 98 ld [ %i1 + 0x98 ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2047b54: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
*/
ret = fat_file_read(iop->pathinfo.mt_entry, fat_fd, (j * bts2rd),
bts2rd, fs_info->cl_buf);
if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
{
rtems_semaphore_release(fs_info->vol_sema);
2047b58: 7f ff 16 ff call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2047b5c: c2 27 be c0 st %g1, [ %fp + -320 ] <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2047b60: 40 00 04 39 call 2048c44 <__errno> <== NOT EXECUTED
2047b64: 01 00 00 00 nop <== NOT EXECUTED
2047b68: 84 10 20 05 mov 5, %g2 ! 5 <PROM_START+0x5> <== NOT EXECUTED
2047b6c: c2 07 be c0 ld [ %fp + -320 ], %g1 <== NOT EXECUTED
2047b70: 10 bf ff 8a b 2047998 <msdos_dir_read+0x3c4> <== NOT EXECUTED
2047b74: c4 22 00 00 st %g2, [ %o0 ] <== NOT EXECUTED
}
for (i = 0; i < ret; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
2047b78: 10 bf ff d5 b 2047acc <msdos_dir_read+0x4f8> <== NOT EXECUTED
2047b7c: 82 10 20 00 clr %g1 <== 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);
2047b80: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
2047b84: 40 00 04 30 call 2048c44 <__errno> <== NOT EXECUTED
2047b88: c2 27 be c0 st %g1, [ %fp + -320 ] <== NOT EXECUTED
2047b8c: 84 10 20 05 mov 5, %g2 <== NOT EXECUTED
2047b90: c2 07 be c0 ld [ %fp + -320 ], %g1 <== NOT EXECUTED
2047b94: 10 bf ff 81 b 2047998 <msdos_dir_read+0x3c4> <== NOT EXECUTED
2047b98: c4 22 00 00 st %g2, [ %o0 ] <== NOT EXECUTED
02047458 <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)
{
2047458: 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;
204745c: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = pathloc->node_access;
bool is_empty = false;
2047460: 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;
2047464: e2 00 60 34 ld [ %g1 + 0x34 ], %l1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = pathloc->node_access;
2047468: e0 06 40 00 ld [ %i1 ], %l0 <== NOT EXECUTED
bool is_empty = false;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
204746c: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
2047470: 92 10 20 00 clr %o1 <== NOT EXECUTED
2047474: 7f ff 18 71 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
2047478: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
204747c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2047480: 12 80 00 2e bne 2047538 <msdos_dir_rmnod+0xe0> <== NOT EXECUTED
2047484: 01 00 00 00 nop <== 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)
2047488: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED
204748c: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2047490: 18 80 00 21 bgu 2047514 <msdos_dir_rmnod+0xbc> <== NOT EXECUTED
2047494: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
}
/*
* You cannot remove a node that still has children
*/
rc = msdos_dir_is_empty(pathloc->mt_entry, fat_fd, &is_empty);
2047498: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
204749c: 7f ff d5 1b call 203c908 <msdos_dir_is_empty> <== NOT EXECUTED
20474a0: 94 07 bf ff add %fp, -1, %o2 <== NOT EXECUTED
if (rc != RC_OK)
20474a4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20474a8: 12 80 00 17 bne 2047504 <msdos_dir_rmnod+0xac> <== NOT EXECUTED
20474ac: c2 0f bf ff ldub [ %fp + -1 ], %g1 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
if (!is_empty)
20474b0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20474b4: 22 80 00 27 be,a 2047550 <msdos_dir_rmnod+0xf8> <== NOT EXECUTED
20474b8: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
}
/*
* You cannot remove the file system root node.
*/
if (pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access)
20474bc: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
20474c0: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
20474c4: c4 02 20 1c ld [ %o0 + 0x1c ], %g2 <== NOT EXECUTED
20474c8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
20474cc: 02 80 00 12 be 2047514 <msdos_dir_rmnod+0xbc> <== NOT EXECUTED
20474d0: 92 04 20 20 add %l0, 0x20, %o1 <== 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,
20474d4: 7f ff d5 cb call 203cc00 <msdos_set_first_char4file_name> <== NOT EXECUTED
20474d8: 94 10 20 e5 mov 0xe5, %o2 <== NOT EXECUTED
MSDOS_THIS_DIR_ENTRY_EMPTY);
if (rc != RC_OK)
20474dc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20474e0: 12 80 00 09 bne 2047504 <msdos_dir_rmnod+0xac> <== NOT EXECUTED
20474e4: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
fat_file_mark_removed(pathloc->mt_entry, fat_fd);
20474e8: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
20474ec: 7f ff 83 c6 call 2028404 <fat_file_mark_removed> <== NOT EXECUTED
20474f0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
20474f4: 7f ff 18 98 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
20474f8: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
}
20474fc: 81 c7 e0 08 ret <== NOT EXECUTED
2047500: 81 e8 00 00 restore <== NOT EXECUTED
/* mark file removed */
rc = msdos_set_first_char4file_name(pathloc->mt_entry, &fat_fd->dir_pos,
MSDOS_THIS_DIR_ENTRY_EMPTY);
if (rc != RC_OK)
{
rtems_semaphore_release(fs_info->vol_sema);
2047504: 7f ff 18 94 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2047508: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
204750c: 81 c7 e0 08 ret <== NOT EXECUTED
2047510: 81 e8 00 00 restore <== NOT EXECUTED
/*
* You cannot remove the file system root node.
*/
if (pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access)
{
rtems_semaphore_release(fs_info->vol_sema);
2047514: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
2047518: 7f ff 18 8f call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
204751c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EBUSY);
2047520: 40 00 05 c9 call 2048c44 <__errno> <== NOT EXECUTED
2047524: 01 00 00 00 nop <== NOT EXECUTED
2047528: 82 10 20 10 mov 0x10, %g1 ! 10 <PROM_START+0x10> <== NOT EXECUTED
204752c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2047530: 81 c7 e0 08 ret <== NOT EXECUTED
2047534: 81 e8 00 00 restore <== NOT EXECUTED
bool is_empty = false;
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);
2047538: 40 00 05 c3 call 2048c44 <__errno> <== NOT EXECUTED
204753c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2047540: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2047544: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2047548: 81 c7 e0 08 ret <== NOT EXECUTED
204754c: 81 e8 00 00 restore <== NOT EXECUTED
return rc;
}
if (!is_empty)
{
rtems_semaphore_release(fs_info->vol_sema);
2047550: 7f ff 18 81 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2047554: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOTEMPTY);
2047558: 40 00 05 bb call 2048c44 <__errno> <== NOT EXECUTED
204755c: 01 00 00 00 nop <== NOT EXECUTED
2047560: 82 10 20 5a mov 0x5a, %g1 ! 5a <PROM_START+0x5a> <== NOT EXECUTED
2047564: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2047568: 81 c7 e0 08 ret <== NOT EXECUTED
204756c: 81 e8 00 00 restore <== NOT EXECUTED
020473b8 <msdos_dir_stat>:
int
msdos_dir_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
20473b8: 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;
20473bc: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = loc->node_access;
20473c0: 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;
20473c4: 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,
20473c8: 92 10 20 00 clr %o1 <== NOT EXECUTED
20473cc: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
20473d0: 7f ff 18 9a call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
20473d4: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
20473d8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20473dc: 12 80 00 19 bne 2047440 <msdos_dir_stat+0x88> <== NOT EXECUTED
20473e0: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
buf->st_dev = fs_info->fat.vol.dev;
buf->st_ino = fat_fd->ino;
20473e4: c2 04 60 0c ld [ %l1 + 0xc ], %g1 <== 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;
20473e8: 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;
20473ec: c2 26 60 08 st %g1, [ %i1 + 8 ] <== NOT EXECUTED
buf->st_mode = S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO;
20473f0: 03 00 00 10 sethi %hi(0x4000), %g1 <== NOT EXECUTED
20473f4: 82 10 61 ff or %g1, 0x1ff, %g1 ! 41ff <PROM_START+0x41ff> <== NOT EXECUTED
20473f8: c2 26 60 0c st %g1, [ %i1 + 0xc ] <== NOT EXECUTED
buf->st_rdev = 0ll;
buf->st_size = fat_fd->fat_file_size;
20473fc: 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;
2047400: 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;
2047404: 85 30 60 09 srl %g1, 9, %g2 <== NOT EXECUTED
2047408: c4 26 60 44 st %g2, [ %i1 + 0x44 ] <== NOT EXECUTED
buf->st_blksize = fs_info->fat.vol.bps;
buf->st_mtime = fat_fd->mtime;
204740c: 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;
2047410: 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;
2047414: c8 26 60 30 st %g4, [ %i1 + 0x30 ] <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
2047418: 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;
204741c: 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;
2047420: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED
2047424: c0 26 60 1c clr [ %i1 + 0x1c ] <== NOT EXECUTED
buf->st_size = fat_fd->fat_file_size;
2047428: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED
204742c: 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);
2047430: 7f ff 18 c9 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2047434: b0 10 20 00 clr %i0 <== NOT EXECUTED
return RC_OK;
}
2047438: 81 c7 e0 08 ret <== NOT EXECUTED
204743c: 81 e8 00 00 restore <== NOT EXECUTED
fat_file_fd_t *fat_fd = loc->node_access;
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);
2047440: 40 00 06 01 call 2048c44 <__errno> <== NOT EXECUTED
2047444: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2047448: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
204744c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2047450: 81 c7 e0 08 ret <== NOT EXECUTED
2047454: 81 e8 00 00 restore <== NOT EXECUTED
02047570 <msdos_dir_sync>:
* RETURNS:
* RC_OK on success, or -1 if error occured (errno set apropriately).
*/
int
msdos_dir_sync(rtems_libio_t *iop)
{
2047570: 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;
2047574: 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;
2047578: e2 06 20 3c ld [ %i0 + 0x3c ], %l1 <== NOT EXECUTED
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
204757c: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
2047580: 92 10 20 00 clr %o1 <== NOT EXECUTED
2047584: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
2047588: 7f ff 18 2c call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
204758c: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2047590: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2047594: 12 80 00 0a bne 20475bc <msdos_dir_sync+0x4c> <== NOT EXECUTED
2047598: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
rc = fat_file_datasync(iop->pathinfo.mt_entry, fat_fd);
204759c: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
20475a0: 7f ff 83 4e call 20282d8 <fat_file_datasync> <== NOT EXECUTED
20475a4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20475a8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
20475ac: 7f ff 18 6a call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
20475b0: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
}
20475b4: 81 c7 e0 08 ret <== NOT EXECUTED
20475b8: 81 e8 00 00 restore <== NOT EXECUTED
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
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);
20475bc: 40 00 05 a2 call 2048c44 <__errno> <== NOT EXECUTED
20475c0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20475c4: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
20475c8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20475cc: 81 c7 e0 08 ret <== NOT EXECUTED
20475d0: 81 e8 00 00 restore <== NOT EXECUTED
0203b320 <msdos_eval4make>:
msdos_eval4make(
const char *path,
rtems_filesystem_location_info_t *pathloc,
const char **name
)
{
203b320: 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;
203b324: 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,
203b328: 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;
203b32c: 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,
203b330: 94 10 20 00 clr %o2 <== NOT EXECUTED
203b334: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
203b338: 7f ff 48 c0 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
203b33c: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
203b340: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b344: 12 80 00 ac bne 203b5f4 <msdos_eval4make+0x2d4> <== NOT EXECUTED
203b348: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
if (!pathloc->node_access)
203b34c: d0 06 40 00 ld [ %i1 ], %o0 <== NOT EXECUTED
203b350: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b354: 02 80 00 72 be 203b51c <msdos_eval4make+0x1fc> <== NOT EXECUTED
203b358: 01 00 00 00 nop <== NOT EXECUTED
goto err;
}
fat_fd = pathloc->node_access;
rc = fat_file_reopen(fat_fd);
203b35c: 7f ff b3 76 call 2028134 <fat_file_reopen> <== NOT EXECUTED
203b360: 01 00 00 00 nop <== NOT EXECUTED
if (rc != RC_OK)
203b364: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203b368: 12 80 00 22 bne 203b3f0 <msdos_eval4make+0xd0> <== NOT EXECUTED
203b36c: ba 10 00 18 mov %i0, %i5 <== 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)
203b370: 2b 00 81 bc sethi %hi(0x206f000), %l5 <== NOT EXECUTED
}
fat_fd = pathloc->node_access;
rc = fat_file_reopen(fat_fd);
if (rc != RC_OK)
203b374: 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)
203b378: aa 15 63 24 or %l5, 0x324, %l5 <== NOT EXECUTED
203b37c: a8 07 bf f8 add %fp, -8, %l4 <== NOT EXECUTED
203b380: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED
if (rc != RC_OK)
goto err;
while (!done)
{
type = msdos_get_token(&path[i], strlen(&path[i]), &token, &token_len);
203b384: ac 04 40 12 add %l1, %l2, %l6 <== NOT EXECUTED
203b388: 40 00 51 d7 call 204fae4 <strlen> <== NOT EXECUTED
203b38c: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
203b390: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
203b394: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
203b398: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
203b39c: 40 00 06 e5 call 203cf30 <msdos_get_token> <== NOT EXECUTED
203b3a0: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
i += token_len;
203b3a4: 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);
203b3a8: ac 10 00 08 mov %o0, %l6 <== NOT EXECUTED
i += token_len;
fat_fd = pathloc->node_access;
switch (type)
203b3ac: 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;
203b3b0: a4 04 80 0a add %l2, %o2, %l2 <== NOT EXECUTED
fat_fd = pathloc->node_access;
switch (type)
203b3b4: 02 80 00 43 be 203b4c0 <msdos_eval4make+0x1a0> <== NOT EXECUTED
203b3b8: ee 06 40 00 ld [ %i1 ], %l7 <== NOT EXECUTED
203b3bc: 80 a2 20 02 cmp %o0, 2 <== NOT EXECUTED
203b3c0: 18 80 00 11 bgu 203b404 <msdos_eval4make+0xe4> <== NOT EXECUTED
203b3c4: 80 a2 20 03 cmp %o0, 3 <== NOT EXECUTED
203b3c8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b3cc: 32 bf ff ef bne,a 203b388 <msdos_eval4make+0x68> <== NOT EXECUTED
203b3d0: ac 04 40 12 add %l1, %l2, %l6 <== NOT EXECUTED
done = true;
}
break;
case MSDOS_NO_MORE_PATH:
errno = EEXIST;
203b3d4: 40 00 36 1c call 2048c44 <__errno> <== NOT EXECUTED
203b3d8: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
203b3dc: 82 10 20 11 mov 0x11, %g1 <== NOT EXECUTED
203b3e0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
return RC_OK;
error:
fat_file_close(pathloc->mt_entry, fat_fd);
203b3e4: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
203b3e8: 7f ff b6 36 call 2028cc0 <fat_file_close> <== NOT EXECUTED
203b3ec: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
err:
rtems_semaphore_release(fs_info->vol_sema);
203b3f0: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
203b3f4: 7f ff 48 d8 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203b3f8: b0 10 00 1d mov %i5, %i0 <== NOT EXECUTED
return rc;
}
203b3fc: 81 c7 e0 08 ret <== NOT EXECUTED
203b400: 81 e8 00 00 restore <== NOT EXECUTED
{
type = msdos_get_token(&path[i], strlen(&path[i]), &token, &token_len);
i += token_len;
fat_fd = pathloc->node_access;
switch (type)
203b404: 02 80 00 09 be 203b428 <msdos_eval4make+0x108> <== NOT EXECUTED
203b408: 80 a2 20 04 cmp %o0, 4 <== NOT EXECUTED
203b40c: 32 bf ff df bne,a 203b388 <msdos_eval4make+0x68> <== NOT EXECUTED
203b410: ac 04 40 12 add %l1, %l2, %l6 <== NOT EXECUTED
case MSDOS_CURRENT_DIR:
break;
case MSDOS_INVALID_TOKEN:
errno = ENAMETOOLONG;
203b414: 40 00 36 0c call 2048c44 <__errno> <== NOT EXECUTED
203b418: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
203b41c: 82 10 20 5b mov 0x5b, %g1 <== NOT EXECUTED
rc = -1;
goto error;
203b420: 10 bf ff f1 b 203b3e4 <msdos_eval4make+0xc4> <== NOT EXECUTED
203b424: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
case MSDOS_NAME:
/*
* Only a directory can be decended into.
*/
if (fat_fd->fat_file_type != FAT_DIRECTORY)
203b428: c2 05 e0 10 ld [ %l7 + 0x10 ], %g1 <== NOT EXECUTED
203b42c: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
203b430: 12 80 00 77 bne 203b60c <msdos_eval4make+0x2ec> <== NOT EXECUTED
203b434: 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);
203b438: 40 00 08 7d call 203d62c <msdos_find_name> <== NOT EXECUTED
203b43c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
if (rc)
203b440: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b444: 02 bf ff d1 be 203b388 <msdos_eval4make+0x68> <== NOT EXECUTED
203b448: ac 04 40 12 add %l1, %l2, %l6 <== NOT EXECUTED
{
if (rc != MSDOS_NAME_NOT_FOUND_ERR)
203b44c: 03 00 00 1f sethi %hi(0x7c00), %g1 <== NOT EXECUTED
203b450: 82 10 61 01 or %g1, 0x101, %g1 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
203b454: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED
203b458: 12 80 00 15 bne 203b4ac <msdos_eval4make+0x18c> <== NOT EXECUTED
203b45c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
break;
}
}
*name = &path[i - token_len];
203b460: 82 24 80 01 sub %l2, %g1, %g1 <== NOT EXECUTED
203b464: 82 04 40 01 add %l1, %g1, %g1 <== NOT EXECUTED
203b468: c2 26 80 00 st %g1, [ %i2 ] <== 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++)
203b46c: d0 0c 40 12 ldub [ %l1 + %l2 ], %o0 <== NOT EXECUTED
203b470: 91 2a 20 18 sll %o0, 0x18, %o0 <== NOT EXECUTED
203b474: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b478: 02 80 00 52 be 203b5c0 <msdos_eval4make+0x2a0> <== NOT EXECUTED
203b47c: 84 04 40 12 add %l1, %l2, %g2 <== NOT EXECUTED
203b480: 10 80 00 06 b 203b498 <msdos_eval4make+0x178> <== NOT EXECUTED
203b484: a2 10 00 02 mov %g2, %l1 <== NOT EXECUTED
203b488: 91 2a 20 18 sll %o0, 0x18, %o0 <== NOT EXECUTED
203b48c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b490: 02 80 00 4c be 203b5c0 <msdos_eval4make+0x2a0> <== NOT EXECUTED
203b494: a2 04 60 01 inc %l1 <== NOT EXECUTED
{
if (!msdos_is_separator(path[i]))
203b498: 7f ff 3c 37 call 200a574 <rtems_filesystem_is_separator> <== NOT EXECUTED
203b49c: 91 3a 20 18 sra %o0, 0x18, %o0 <== NOT EXECUTED
203b4a0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b4a4: 32 bf ff f9 bne,a 203b488 <msdos_eval4make+0x168> <== NOT EXECUTED
203b4a8: d0 0c 60 01 ldub [ %l1 + 1 ], %o0 <== NOT EXECUTED
{
errno = ENOENT;
203b4ac: 40 00 35 e6 call 2048c44 <__errno> <== NOT EXECUTED
203b4b0: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
203b4b4: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED
rc = -1;
goto error;
203b4b8: 10 bf ff cb b 203b3e4 <msdos_eval4make+0xc4> <== NOT EXECUTED
203b4bc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
{
case MSDOS_UP_DIR:
/*
* Only a directory can be decended into.
*/
if (fat_fd->fat_file_type != FAT_DIRECTORY)
203b4c0: c2 05 e0 10 ld [ %l7 + 0x10 ], %g1 <== NOT EXECUTED
203b4c4: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
203b4c8: 12 80 00 51 bne 203b60c <msdos_eval4make+0x2ec> <== NOT EXECUTED
203b4cc: 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)
203b4d0: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
}
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
203b4d4: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 <== NOT EXECUTED
203b4d8: 80 a5 c0 02 cmp %l7, %g2 <== NOT EXECUTED
203b4dc: 02 80 00 19 be 203b540 <msdos_eval4make+0x220> <== NOT EXECUTED
203b4e0: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
pathloc, name);
}
}
else
{
rc = msdos_find_name(pathloc, token, token_len);
203b4e4: 40 00 08 52 call 203d62c <msdos_find_name> <== NOT EXECUTED
203b4e8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
if (rc != RC_OK)
203b4ec: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
203b4f0: 22 bf ff a6 be,a 203b388 <msdos_eval4make+0x68> <== NOT EXECUTED
203b4f4: ac 04 40 12 add %l1, %l2, %l6 <== NOT EXECUTED
{
if (rc == MSDOS_NAME_NOT_FOUND_ERR)
203b4f8: 03 00 00 1f sethi %hi(0x7c00), %g1 <== NOT EXECUTED
203b4fc: 82 10 61 01 or %g1, 0x101, %g1 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
203b500: 80 a7 40 01 cmp %i5, %g1 <== NOT EXECUTED
203b504: 32 bf ff b9 bne,a 203b3e8 <msdos_eval4make+0xc8> <== NOT EXECUTED
203b508: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
{
errno = ENOENT;
203b50c: 40 00 35 ce call 2048c44 <__errno> <== NOT EXECUTED
203b510: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
203b514: 10 bf ff b4 b 203b3e4 <msdos_eval4make+0xc4> <== NOT EXECUTED
203b518: ec 22 00 00 st %l6, [ %o0 ] <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
if (!pathloc->node_access)
{
errno = ENOENT;
203b51c: 40 00 35 ca call 2048c44 <__errno> <== NOT EXECUTED
203b520: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
203b524: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED
203b528: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
error:
fat_file_close(pathloc->mt_entry, fat_fd);
err:
rtems_semaphore_release(fs_info->vol_sema);
203b52c: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
203b530: 7f ff 48 89 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203b534: b0 10 00 1d mov %i5, %i0 <== NOT EXECUTED
return rc;
}
203b538: 81 c7 e0 08 ret <== NOT EXECUTED
203b53c: 81 e8 00 00 restore <== 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)
203b540: c4 05 40 00 ld [ %l5 ], %g2 <== NOT EXECUTED
203b544: c4 00 a0 18 ld [ %g2 + 0x18 ], %g2 <== NOT EXECUTED
203b548: 80 a5 c0 02 cmp %l7, %g2 <== NOT EXECUTED
203b54c: 02 bf ff 8f be 203b388 <msdos_eval4make+0x68> <== NOT EXECUTED
203b550: 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;
203b554: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED
203b558: d0 00 60 18 ld [ %g1 + 0x18 ], %o0 <== NOT EXECUTED
203b55c: c8 00 60 14 ld [ %g1 + 0x14 ], %g4 <== NOT EXECUTED
203b560: c6 00 60 10 ld [ %g1 + 0x10 ], %g3 <== NOT EXECUTED
203b564: c2 00 60 0c ld [ %g1 + 0xc ], %g1 <== NOT EXECUTED
*pathloc = newloc;
203b568: c8 26 60 0c st %g4, [ %i1 + 0xc ] <== NOT EXECUTED
203b56c: c6 26 60 08 st %g3, [ %i1 + 8 ] <== NOT EXECUTED
203b570: c2 26 60 04 st %g1, [ %i1 + 4 ] <== NOT EXECUTED
203b574: c4 26 40 00 st %g2, [ %i1 ] <== NOT EXECUTED
203b578: d0 26 60 10 st %o0, [ %i1 + 0x10 ] <== NOT EXECUTED
rc = fat_file_close(pathloc->mt_entry, fat_fd);
203b57c: 7f ff b5 d1 call 2028cc0 <fat_file_close> <== NOT EXECUTED
203b580: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
if (rc != RC_OK)
203b584: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
203b588: 32 bf ff 9b bne,a 203b3f4 <msdos_eval4make+0xd4> <== NOT EXECUTED
203b58c: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
goto err;
rtems_semaphore_release(fs_info->vol_sema);
203b590: 7f ff 48 71 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203b594: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return (*pathloc->ops->evalformake_h)(&path[i-token_len],
203b598: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
203b59c: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
203b5a0: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED
203b5a4: 90 24 80 08 sub %l2, %o0, %o0 <== NOT EXECUTED
203b5a8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203b5ac: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED
203b5b0: 9f c0 40 00 call %g1 <== NOT EXECUTED
203b5b4: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
203b5b8: 81 c7 e0 08 ret <== NOT EXECUTED
203b5bc: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
rc = -1;
goto error;
}
}
fat_fd = pathloc->node_access;
203b5c0: ee 06 40 00 ld [ %i1 ], %l7 <== NOT EXECUTED
if (fat_fd->fat_file_type != FAT_DIRECTORY)
203b5c4: c2 05 e0 10 ld [ %l7 + 0x10 ], %g1 <== NOT EXECUTED
203b5c8: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
203b5cc: 12 80 00 10 bne 203b60c <msdos_eval4make+0x2ec> <== NOT EXECUTED
203b5d0: 01 00 00 00 nop <== 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;
203b5d4: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
goto error;
}
msdos_set_handlers(pathloc);
rtems_semaphore_release(fs_info->vol_sema);
203b5d8: 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;
203b5dc: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 <== NOT EXECUTED
203b5e0: c2 00 60 90 ld [ %g1 + 0x90 ], %g1 <== NOT EXECUTED
goto error;
}
msdos_set_handlers(pathloc);
rtems_semaphore_release(fs_info->vol_sema);
203b5e4: 7f ff 48 5c call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203b5e8: c2 26 60 08 st %g1, [ %i1 + 8 ] <== NOT EXECUTED
return RC_OK;
203b5ec: 81 c7 e0 08 ret <== NOT EXECUTED
203b5f0: 81 e8 00 00 restore <== NOT EXECUTED
bool done = false;
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);
203b5f4: 40 00 35 94 call 2048c44 <__errno> <== NOT EXECUTED
203b5f8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203b5fc: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203b600: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203b604: 81 c7 e0 08 ret <== NOT EXECUTED
203b608: 81 e8 00 00 restore <== NOT EXECUTED
fat_fd = pathloc->node_access;
if (fat_fd->fat_file_type != FAT_DIRECTORY)
{
errno = ENOTDIR;
203b60c: 40 00 35 8e call 2048c44 <__errno> <== NOT EXECUTED
203b610: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
203b614: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED
rc = -1;
goto error;
203b618: 10 bf ff 73 b 203b3e4 <msdos_eval4make+0xc4> <== NOT EXECUTED
203b61c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
0203b074 <msdos_eval_path>:
const char *pathname,
size_t pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc
)
{
203b074: 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;
203b078: 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;
203b07c: 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;
203b080: 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,
203b084: 92 10 20 00 clr %o1 <== NOT EXECUTED
203b088: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
203b08c: 94 10 20 00 clr %o2 <== NOT EXECUTED
203b090: 7f ff 49 6a call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
203b094: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
203b098: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b09c: 12 80 00 93 bne 203b2e8 <msdos_eval_path+0x274> <== NOT EXECUTED
203b0a0: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
if (!pathloc->node_access)
203b0a4: d0 06 c0 00 ld [ %i3 ], %o0 <== NOT EXECUTED
203b0a8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b0ac: 02 80 00 65 be 203b240 <msdos_eval_path+0x1cc> <== NOT EXECUTED
203b0b0: 01 00 00 00 nop <== NOT EXECUTED
goto err;
}
fat_fd = pathloc->node_access;
rc = fat_file_reopen(fat_fd);
203b0b4: 7f ff b4 20 call 2028134 <fat_file_reopen> <== NOT EXECUTED
203b0b8: 01 00 00 00 nop <== NOT EXECUTED
if (rc != RC_OK)
203b0bc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203b0c0: 12 80 00 31 bne 203b184 <msdos_eval_path+0x110> <== NOT EXECUTED
203b0c4: ba 10 00 18 mov %i0, %i5 <== 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)
203b0c8: 2b 00 81 bc sethi %hi(0x206f000), %l5 <== NOT EXECUTED
}
fat_fd = pathloc->node_access;
rc = fat_file_reopen(fat_fd);
if (rc != RC_OK)
203b0cc: 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)
203b0d0: aa 15 63 24 or %l5, 0x324, %l5 <== NOT EXECUTED
203b0d4: a8 07 bf f8 add %fp, -8, %l4 <== NOT EXECUTED
203b0d8: a6 07 bf fc add %fp, -4, %l3 <== 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);
203b0dc: 90 04 40 12 add %l1, %l2, %o0 <== NOT EXECUTED
203b0e0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203b0e4: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
203b0e8: 40 00 07 92 call 203cf30 <msdos_get_token> <== NOT EXECUTED
203b0ec: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
pathnamelen -= token_len;
203b0f0: 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);
203b0f4: ac 10 00 08 mov %o0, %l6 <== NOT EXECUTED
pathnamelen -= token_len;
i += token_len;
fat_fd = pathloc->node_access;
switch (type)
203b0f8: 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;
203b0fc: b2 26 40 0a sub %i1, %o2, %i1 <== NOT EXECUTED
i += token_len;
203b100: a4 04 80 0a add %l2, %o2, %l2 <== NOT EXECUTED
fat_fd = pathloc->node_access;
switch (type)
203b104: 02 80 00 25 be 203b198 <msdos_eval_path+0x124> <== NOT EXECUTED
203b108: ee 06 c0 00 ld [ %i3 ], %l7 <== NOT EXECUTED
203b10c: 80 a2 20 04 cmp %o0, 4 <== NOT EXECUTED
203b110: 02 80 00 16 be 203b168 <msdos_eval_path+0xf4> <== NOT EXECUTED
203b114: 80 a2 20 02 cmp %o0, 2 <== NOT EXECUTED
203b118: 02 80 00 33 be 203b1e4 <msdos_eval_path+0x170> <== NOT EXECUTED
203b11c: 82 1a 20 04 xor %o0, 4, %g1 <== NOT EXECUTED
break;
case MSDOS_INVALID_TOKEN:
errno = ENAMETOOLONG;
rc = -1;
goto error;
203b120: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
203b124: 82 40 20 00 addx %g0, 0, %g1 <== NOT EXECUTED
rc = fat_file_reopen(fat_fd);
if (rc != RC_OK)
goto err;
while ((type != MSDOS_NO_MORE_PATH) && (type != MSDOS_INVALID_TOKEN))
203b128: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b12c: 02 80 00 04 be 203b13c <msdos_eval_path+0xc8> <== NOT EXECUTED
203b130: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203b134: 12 bf ff eb bne 203b0e0 <msdos_eval_path+0x6c> <== NOT EXECUTED
203b138: 90 04 40 12 add %l1, %l2, %o0 <== NOT EXECUTED
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;
if (fat_fd->fat_file_type == FAT_DIRECTORY)
203b13c: c4 05 e0 10 ld [ %l7 + 0x10 ], %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;
203b140: c2 06 e0 10 ld [ %i3 + 0x10 ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = loc->node_access;
if (fat_fd->fat_file_type == FAT_DIRECTORY)
203b144: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED
203b148: 02 80 00 73 be 203b314 <msdos_eval_path+0x2a0> <== NOT EXECUTED
203b14c: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 <== NOT EXECUTED
loc->handlers = fs_info->directory_handlers;
else
loc->handlers = fs_info->file_handlers;
203b150: c2 00 60 94 ld [ %g1 + 0x94 ], %g1 <== NOT EXECUTED
203b154: c2 26 e0 08 st %g1, [ %i3 + 8 ] <== NOT EXECUTED
*/
fat_fd = pathloc->node_access;
msdos_set_handlers(pathloc);
rtems_semaphore_release(fs_info->vol_sema);
203b158: 7f ff 49 7f call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203b15c: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return RC_OK;
203b160: 81 c7 e0 08 ret <== NOT EXECUTED
203b164: 81 e8 00 00 restore <== NOT EXECUTED
case MSDOS_NO_MORE_PATH:
case MSDOS_CURRENT_DIR:
break;
case MSDOS_INVALID_TOKEN:
errno = ENAMETOOLONG;
203b168: 40 00 36 b7 call 2048c44 <__errno> <== NOT EXECUTED
203b16c: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
203b170: 82 10 20 5b mov 0x5b, %g1 <== NOT EXECUTED
203b174: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
return RC_OK;
error:
fat_file_close(pathloc->mt_entry, fat_fd);
203b178: d0 06 e0 10 ld [ %i3 + 0x10 ], %o0 <== NOT EXECUTED
203b17c: 7f ff b6 d1 call 2028cc0 <fat_file_close> <== NOT EXECUTED
203b180: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
err:
rtems_semaphore_release(fs_info->vol_sema);
203b184: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
203b188: 7f ff 49 73 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203b18c: b0 10 00 1d mov %i5, %i0 <== NOT EXECUTED
return rc;
}
203b190: 81 c7 e0 08 ret <== NOT EXECUTED
203b194: 81 e8 00 00 restore <== NOT EXECUTED
case MSDOS_NAME:
/*
* Only a directory can be decended into.
*/
if (fat_fd->fat_file_type != FAT_DIRECTORY)
203b198: c2 05 e0 10 ld [ %l7 + 0x10 ], %g1 <== NOT EXECUTED
203b19c: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
203b1a0: 12 80 00 58 bne 203b300 <msdos_eval_path+0x28c> <== NOT EXECUTED
203b1a4: 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);
203b1a8: 40 00 09 21 call 203d62c <msdos_find_name> <== NOT EXECUTED
203b1ac: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
if (rc != RC_OK)
203b1b0: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
203b1b4: 02 bf ff cb be 203b0e0 <msdos_eval_path+0x6c> <== NOT EXECUTED
203b1b8: 90 04 40 12 add %l1, %l2, %o0 <== NOT EXECUTED
{
if (rc == MSDOS_NAME_NOT_FOUND_ERR)
203b1bc: 03 00 00 1f sethi %hi(0x7c00), %g1 <== NOT EXECUTED
203b1c0: 82 10 61 01 or %g1, 0x101, %g1 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
203b1c4: 80 a7 40 01 cmp %i5, %g1 <== NOT EXECUTED
203b1c8: 32 bf ff ed bne,a 203b17c <msdos_eval_path+0x108> <== NOT EXECUTED
203b1cc: d0 06 e0 10 ld [ %i3 + 0x10 ], %o0 <== NOT EXECUTED
{
errno = ENOENT;
203b1d0: 40 00 36 9d call 2048c44 <__errno> <== NOT EXECUTED
203b1d4: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
203b1d8: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED
203b1dc: 10 bf ff e7 b 203b178 <msdos_eval_path+0x104> <== NOT EXECUTED
203b1e0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
{
case MSDOS_UP_DIR:
/*
* Only a directory can be decended into.
*/
if (fat_fd->fat_file_type != FAT_DIRECTORY)
203b1e4: c2 05 e0 10 ld [ %l7 + 0x10 ], %g1 <== NOT EXECUTED
203b1e8: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
203b1ec: 12 80 00 45 bne 203b300 <msdos_eval_path+0x28c> <== NOT EXECUTED
203b1f0: 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)
203b1f4: c2 06 e0 10 ld [ %i3 + 0x10 ], %g1 <== NOT EXECUTED
}
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
203b1f8: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 <== NOT EXECUTED
203b1fc: 80 a5 c0 02 cmp %l7, %g2 <== NOT EXECUTED
203b200: 02 80 00 19 be 203b264 <msdos_eval_path+0x1f0> <== NOT EXECUTED
203b204: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
flags, pathloc);
}
}
else
{
rc = msdos_find_name(pathloc, token, token_len);
203b208: 40 00 09 09 call 203d62c <msdos_find_name> <== NOT EXECUTED
203b20c: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
if (rc != RC_OK)
203b210: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
203b214: 02 bf ff b3 be 203b0e0 <msdos_eval_path+0x6c> <== NOT EXECUTED
203b218: 90 04 40 12 add %l1, %l2, %o0 <== NOT EXECUTED
{
if (rc == MSDOS_NAME_NOT_FOUND_ERR)
203b21c: 03 00 00 1f sethi %hi(0x7c00), %g1 <== NOT EXECUTED
203b220: 82 10 61 01 or %g1, 0x101, %g1 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
203b224: 80 a7 40 01 cmp %i5, %g1 <== NOT EXECUTED
203b228: 32 bf ff d5 bne,a 203b17c <msdos_eval_path+0x108> <== NOT EXECUTED
203b22c: d0 06 e0 10 ld [ %i3 + 0x10 ], %o0 <== NOT EXECUTED
{
errno = ENOENT;
203b230: 40 00 36 85 call 2048c44 <__errno> <== NOT EXECUTED
203b234: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
203b238: 10 bf ff d0 b 203b178 <msdos_eval_path+0x104> <== NOT EXECUTED
203b23c: ec 22 00 00 st %l6, [ %o0 ] <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
if (!pathloc->node_access)
{
errno = ENOENT;
203b240: 40 00 36 81 call 2048c44 <__errno> <== NOT EXECUTED
203b244: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
203b248: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED
203b24c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
error:
fat_file_close(pathloc->mt_entry, fat_fd);
err:
rtems_semaphore_release(fs_info->vol_sema);
203b250: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
203b254: 7f ff 49 40 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203b258: b0 10 00 1d mov %i5, %i0 <== NOT EXECUTED
return rc;
}
203b25c: 81 c7 e0 08 ret <== NOT EXECUTED
203b260: 81 e8 00 00 restore <== 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)
203b264: c4 05 40 00 ld [ %l5 ], %g2 <== NOT EXECUTED
203b268: c4 00 a0 18 ld [ %g2 + 0x18 ], %g2 <== NOT EXECUTED
203b26c: 80 a5 c0 02 cmp %l7, %g2 <== NOT EXECUTED
203b270: 02 bf ff 9c be 203b0e0 <msdos_eval_path+0x6c> <== NOT EXECUTED
203b274: 90 04 40 12 add %l1, %l2, %o0 <== NOT EXECUTED
{
break; /* Throw out the .. in this case */
}
else
{
newloc = pathloc->mt_entry->mt_point_node;
203b278: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED
203b27c: d0 00 60 18 ld [ %g1 + 0x18 ], %o0 <== NOT EXECUTED
203b280: c8 00 60 14 ld [ %g1 + 0x14 ], %g4 <== NOT EXECUTED
203b284: c6 00 60 10 ld [ %g1 + 0x10 ], %g3 <== NOT EXECUTED
203b288: c2 00 60 0c ld [ %g1 + 0xc ], %g1 <== NOT EXECUTED
*pathloc = newloc;
203b28c: c8 26 e0 0c st %g4, [ %i3 + 0xc ] <== NOT EXECUTED
203b290: c6 26 e0 08 st %g3, [ %i3 + 8 ] <== NOT EXECUTED
203b294: c2 26 e0 04 st %g1, [ %i3 + 4 ] <== NOT EXECUTED
203b298: c4 26 c0 00 st %g2, [ %i3 ] <== NOT EXECUTED
203b29c: d0 26 e0 10 st %o0, [ %i3 + 0x10 ] <== NOT EXECUTED
rc = fat_file_close(pathloc->mt_entry, fat_fd);
203b2a0: 7f ff b6 88 call 2028cc0 <fat_file_close> <== NOT EXECUTED
203b2a4: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
if (rc != RC_OK)
203b2a8: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
203b2ac: 32 bf ff b7 bne,a 203b188 <msdos_eval_path+0x114> <== NOT EXECUTED
203b2b0: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
goto err;
rtems_semaphore_release(fs_info->vol_sema);
203b2b4: 7f ff 49 28 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203b2b8: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return (*pathloc->ops->evalpath_h)(&(pathname[i-token_len]),
203b2bc: c2 06 e0 0c ld [ %i3 + 0xc ], %g1 <== NOT EXECUTED
203b2c0: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED
203b2c4: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED
203b2c8: 92 06 40 02 add %i1, %g2, %o1 <== NOT EXECUTED
203b2cc: 84 24 80 02 sub %l2, %g2, %g2 <== NOT EXECUTED
203b2d0: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
203b2d4: 90 04 40 02 add %l1, %g2, %o0 <== NOT EXECUTED
203b2d8: 9f c0 40 00 call %g1 <== NOT EXECUTED
203b2dc: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
203b2e0: 81 c7 e0 08 ret <== NOT EXECUTED
203b2e4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
const char *token;
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);
203b2e8: 40 00 36 57 call 2048c44 <__errno> <== NOT EXECUTED
203b2ec: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203b2f0: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203b2f4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203b2f8: 81 c7 e0 08 ret <== NOT EXECUTED
203b2fc: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Only a directory can be decended into.
*/
if (fat_fd->fat_file_type != FAT_DIRECTORY)
{
errno = ENOTSUP;
203b300: 40 00 36 51 call 2048c44 <__errno> <== NOT EXECUTED
203b304: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
203b308: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
rc = -1;
goto error;
203b30c: 10 bf ff 9b b 203b178 <msdos_eval_path+0x104> <== NOT EXECUTED
203b310: c2 22 00 00 st %g1, [ %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;
203b314: c2 00 60 90 ld [ %g1 + 0x90 ], %g1 <== NOT EXECUTED
203b318: 10 bf ff 90 b 203b158 <msdos_eval_path+0xe4> <== NOT EXECUTED
203b31c: c2 26 e0 08 st %g1, [ %i3 + 8 ] <== NOT EXECUTED
0203b628 <msdos_file_chmod>:
int
msdos_file_chmod(rtems_filesystem_location_info_t *pathloc,
mode_t mode)
{
return RC_OK;
}
203b628: 81 c3 e0 08 retl <== NOT EXECUTED
203b62c: 90 10 20 00 clr %o0 <== NOT EXECUTED
0203bb84 <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)
{
203bb84: 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;
203bb88: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
203bb8c: e2 06 20 3c ld [ %i0 + 0x3c ], %l1 <== 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;
203bb90: e4 00 60 34 ld [ %g1 + 0x34 ], %l2 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
203bb94: 92 10 20 00 clr %o1 <== NOT EXECUTED
203bb98: d0 04 a0 98 ld [ %l2 + 0x98 ], %o0 <== NOT EXECUTED
203bb9c: 94 10 20 00 clr %o2 <== NOT EXECUTED
203bba0: 7f ff 46 a6 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
203bba4: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
203bba8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203bbac: 12 80 00 24 bne 203bc3c <msdos_file_close+0xb8> <== NOT EXECUTED
203bbb0: 01 00 00 00 nop <== 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))
203bbb4: c2 0c 60 30 ldub [ %l1 + 0x30 ], %g1 <== NOT EXECUTED
203bbb8: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
203bbbc: 32 80 00 15 bne,a 203bc10 <msdos_file_close+0x8c> <== NOT EXECUTED
203bbc0: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
{
rc = msdos_set_first_cluster_num(iop->pathinfo.mt_entry, fat_fd);
203bbc4: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
203bbc8: 40 00 03 d6 call 203cb20 <msdos_set_first_cluster_num> <== NOT EXECUTED
203bbcc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc != RC_OK)
203bbd0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203bbd4: 12 80 00 16 bne 203bc2c <msdos_file_close+0xa8> <== NOT EXECUTED
203bbd8: 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);
203bbdc: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
203bbe0: 40 00 03 a6 call 203ca78 <msdos_set_file_size> <== NOT EXECUTED
203bbe4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc != RC_OK)
203bbe8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203bbec: 12 80 00 10 bne 203bc2c <msdos_file_close+0xa8> <== NOT EXECUTED
203bbf0: 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);
203bbf4: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
203bbf8: 40 00 04 74 call 203cdc8 <msdos_set_dir_wrt_time_and_date><== NOT EXECUTED
203bbfc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc != RC_OK)
203bc00: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203bc04: 12 80 00 0a bne 203bc2c <msdos_file_close+0xa8> <== NOT EXECUTED
203bc08: 01 00 00 00 nop <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
}
rc = fat_file_close(iop->pathinfo.mt_entry, fat_fd);
203bc0c: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
203bc10: 7f ff b4 2c call 2028cc0 <fat_file_close> <== NOT EXECUTED
203bc14: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203bc18: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
203bc1c: 7f ff 46 ce call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203bc20: d0 04 a0 98 ld [ %l2 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
}
203bc24: 81 c7 e0 08 ret <== NOT EXECUTED
203bc28: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = msdos_set_dir_wrt_time_and_date(iop->pathinfo.mt_entry, fat_fd);
if (rc != RC_OK)
{
rtems_semaphore_release(fs_info->vol_sema);
203bc2c: 7f ff 46 ca call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203bc30: d0 04 a0 98 ld [ %l2 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
203bc34: 81 c7 e0 08 ret <== NOT EXECUTED
203bc38: 81 e8 00 00 restore <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
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);
203bc3c: 40 00 34 02 call 2048c44 <__errno> <== NOT EXECUTED
203bc40: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203bc44: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203bc48: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203bc4c: 81 c7 e0 08 ret <== NOT EXECUTED
203bc50: 81 e8 00 00 restore <== NOT EXECUTED
0203b758 <msdos_file_datasync>:
* RETURNS:
* RC_OK on success, or -1 if error occured (errno set appropriately)
*/
int
msdos_file_datasync(rtems_libio_t *iop)
{
203b758: 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;
203b75c: 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;
203b760: e2 06 20 3c ld [ %i0 + 0x3c ], %l1 <== NOT EXECUTED
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
203b764: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
203b768: 92 10 20 00 clr %o1 <== NOT EXECUTED
203b76c: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
203b770: 7f ff 47 b2 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
203b774: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
203b778: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b77c: 12 80 00 0a bne 203b7a4 <msdos_file_datasync+0x4c> <== NOT EXECUTED
203b780: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
/* synchronize file data */
rc = fat_file_datasync(iop->pathinfo.mt_entry, fat_fd);
203b784: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
203b788: 7f ff b2 d4 call 20282d8 <fat_file_datasync> <== NOT EXECUTED
203b78c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
203b790: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
203b794: 7f ff 47 f0 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203b798: b0 10 20 00 clr %i0 <== NOT EXECUTED
return RC_OK;
}
203b79c: 81 c7 e0 08 ret <== NOT EXECUTED
203b7a0: 81 e8 00 00 restore <== NOT EXECUTED
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
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);
203b7a4: 40 00 35 28 call 2048c44 <__errno> <== NOT EXECUTED
203b7a8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203b7ac: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203b7b0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203b7b4: 81 c7 e0 08 ret <== NOT EXECUTED
203b7b8: 81 e8 00 00 restore <== NOT EXECUTED
0203b898 <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)
{
203b898: 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;
203b89c: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
203b8a0: 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;
203b8a4: 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)
{
203b8a8: 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)
203b8ac: 82 10 20 00 clr %g1 <== NOT EXECUTED
203b8b0: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED
203b8b4: 14 80 00 09 bg 203b8d8 <msdos_file_ftruncate+0x40> <== NOT EXECUTED
203b8b8: c4 04 60 18 ld [ %l1 + 0x18 ], %g2 <== NOT EXECUTED
203b8bc: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED
203b8c0: 02 80 00 04 be 203b8d0 <msdos_file_ftruncate+0x38> <== NOT EXECUTED
203b8c4: 80 a0 80 1a cmp %g2, %i2 <== NOT EXECUTED
203b8c8: 81 c7 e0 08 ret <== NOT EXECUTED
203b8cc: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
203b8d0: 08 bf ff fe bleu 203b8c8 <msdos_file_ftruncate+0x30> <== NOT EXECUTED
203b8d4: 01 00 00 00 nop <== NOT EXECUTED
return RC_OK;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
203b8d8: d0 04 a0 98 ld [ %l2 + 0x98 ], %o0 <== NOT EXECUTED
203b8dc: 92 10 20 00 clr %o1 <== NOT EXECUTED
203b8e0: 7f ff 47 56 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
203b8e4: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
203b8e8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b8ec: 12 80 00 1b bne 203b958 <msdos_file_ftruncate+0xc0> <== NOT EXECUTED
203b8f0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
rc = fat_file_truncate(iop->pathinfo.mt_entry, fat_fd, length);
203b8f4: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
203b8f8: 7f ff b3 0d call 202852c <fat_file_truncate> <== NOT EXECUTED
203b8fc: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
if (rc != RC_OK)
203b900: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203b904: 12 80 00 11 bne 203b948 <msdos_file_ftruncate+0xb0> <== NOT EXECUTED
203b908: 80 a6 00 19 cmp %i0, %i1 <== 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)
203b90c: 04 80 00 09 ble 203b930 <msdos_file_ftruncate+0x98> <== NOT EXECUTED
203b910: c2 04 60 18 ld [ %l1 + 0x18 ], %g1 <== NOT EXECUTED
iop->size = fat_fd->fat_file_size = length;
203b914: f4 24 20 0c st %i2, [ %l0 + 0xc ] <== NOT EXECUTED
203b918: f4 24 60 18 st %i2, [ %l1 + 0x18 ] <== NOT EXECUTED
203b91c: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
203b920: 7f ff 47 8d call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203b924: d0 04 a0 98 ld [ %l2 + 0x98 ], %o0 <== NOT EXECUTED
return RC_OK;
}
203b928: 81 c7 e0 08 ret <== NOT EXECUTED
203b92c: 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)
203b930: 12 bf ff fc bne 203b920 <msdos_file_ftruncate+0x88> <== NOT EXECUTED
203b934: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED
203b938: 08 bf ff fa bleu 203b920 <msdos_file_ftruncate+0x88> <== NOT EXECUTED
203b93c: 01 00 00 00 nop <== NOT EXECUTED
iop->size = fat_fd->fat_file_size = length;
203b940: 10 bf ff f6 b 203b918 <msdos_file_ftruncate+0x80> <== NOT EXECUTED
203b944: f4 24 20 0c st %i2, [ %l0 + 0xc ] <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
rc = fat_file_truncate(iop->pathinfo.mt_entry, fat_fd, length);
if (rc != RC_OK)
{
rtems_semaphore_release(fs_info->vol_sema);
203b948: 7f ff 47 83 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203b94c: d0 04 a0 98 ld [ %l2 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
203b950: 81 c7 e0 08 ret <== NOT EXECUTED
203b954: 81 e8 00 00 restore <== NOT EXECUTED
return RC_OK;
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);
203b958: 40 00 34 bb call 2048c44 <__errno> <== NOT EXECUTED
203b95c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203b960: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203b964: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203b968: 81 c7 e0 08 ret <== NOT EXECUTED
203b96c: 81 e8 00 00 restore <== NOT EXECUTED
0203b620 <msdos_file_ioctl>:
msdos_file_ioctl(rtems_libio_t *iop,uint32_t command, void *buffer)
{
int rc = RC_OK;
return rc;
}
203b620: 81 c3 e0 08 retl <== NOT EXECUTED
203b624: 90 10 20 00 clr %o0 <== NOT EXECUTED
0203b970 <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)
{
203b970: 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;
203b974: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
uint32_t real_size = 0;
203b978: 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;
203b97c: e2 00 60 34 ld [ %g1 + 0x34 ], %l1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
203b980: 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,
203b984: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
203b988: 92 10 20 00 clr %o1 <== NOT EXECUTED
203b98c: 7f ff 47 2b call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
203b990: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
203b994: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b998: 12 80 00 20 bne 203ba18 <msdos_file_lseek+0xa8> <== NOT EXECUTED
203b99c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
rc = fat_file_extend(iop->pathinfo.mt_entry, fat_fd, iop->offset,
203b9a0: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
203b9a4: d4 06 20 14 ld [ %i0 + 0x14 ], %o2 <== NOT EXECUTED
203b9a8: 7f ff b3 23 call 2028634 <fat_file_extend> <== NOT EXECUTED
203b9ac: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
&real_size);
if (rc != RC_OK)
203b9b0: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
203b9b4: 12 80 00 12 bne 203b9fc <msdos_file_lseek+0x8c> <== NOT EXECUTED
203b9b8: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
if (real_size > fat_fd->fat_file_size)
203b9bc: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED
203b9c0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203b9c4: 2a 80 00 0a bcs,a 203b9ec <msdos_file_lseek+0x7c> <== NOT EXECUTED
203b9c8: 82 10 00 02 mov %g2, %g1 <== NOT EXECUTED
fat_fd->fat_file_size = iop->offset = real_size;
iop->size = fat_fd->fat_file_size;
rtems_semaphore_release(fs_info->vol_sema);
203b9cc: 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;
203b9d0: c2 26 20 0c st %g1, [ %i0 + 0xc ] <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
203b9d4: 7f ff 47 60 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203b9d8: c0 26 20 08 clr [ %i0 + 8 ] <== NOT EXECUTED
return iop->offset;
203b9dc: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED
}
203b9e0: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED
203b9e4: 81 c7 e0 08 ret <== NOT EXECUTED
203b9e8: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
if (real_size > fat_fd->fat_file_size)
fat_fd->fat_file_size = iop->offset = real_size;
203b9ec: c4 24 20 18 st %g2, [ %l0 + 0x18 ] <== NOT EXECUTED
203b9f0: c0 26 20 10 clr [ %i0 + 0x10 ] <== NOT EXECUTED
203b9f4: 10 bf ff f6 b 203b9cc <msdos_file_lseek+0x5c> <== NOT EXECUTED
203b9f8: c4 26 20 14 st %g2, [ %i0 + 0x14 ] <== NOT EXECUTED
rc = fat_file_extend(iop->pathinfo.mt_entry, fat_fd, iop->offset,
&real_size);
if (rc != RC_OK)
{
rtems_semaphore_release(fs_info->vol_sema);
203b9fc: 7f ff 47 56 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203ba00: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
203ba04: 86 10 00 12 mov %l2, %g3 <== NOT EXECUTED
203ba08: 85 3c a0 1f sra %l2, 0x1f, %g2 <== NOT EXECUTED
iop->size = fat_fd->fat_file_size;
rtems_semaphore_release(fs_info->vol_sema);
return iop->offset;
}
203ba0c: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED
203ba10: 81 c7 e0 08 ret <== NOT EXECUTED
203ba14: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
uint32_t real_size = 0;
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);
203ba18: 40 00 34 8b call 2048c44 <__errno> <== NOT EXECUTED
203ba1c: 01 00 00 00 nop <== NOT EXECUTED
203ba20: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
203ba24: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED
203ba28: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203ba2c: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
203ba30: 10 bf ff ec b 203b9e0 <msdos_file_lseek+0x70> <== NOT EXECUTED
203ba34: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED
0203bc54 <msdos_file_open>:
* and errno set appropriately
*/
int
msdos_file_open(rtems_libio_t *iop, const char *pathname, uint32_t flag,
uint32_t mode)
{
203bc54: 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;
203bc58: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
203bc5c: 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;
203bc60: 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,
203bc64: 92 10 20 00 clr %o1 <== NOT EXECUTED
203bc68: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
203bc6c: 94 10 20 00 clr %o2 <== NOT EXECUTED
203bc70: 7f ff 46 72 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
203bc74: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
203bc78: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203bc7c: 12 80 00 1d bne 203bcf0 <msdos_file_open+0x9c> <== NOT EXECUTED
203bc80: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
rc = fat_file_reopen(fat_fd);
203bc84: 7f ff b1 2c call 2028134 <fat_file_reopen> <== NOT EXECUTED
203bc88: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
if (rc != RC_OK)
203bc8c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203bc90: 12 80 00 14 bne 203bce0 <msdos_file_open+0x8c> <== NOT EXECUTED
203bc94: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
if (iop->flags & LIBIO_FLAGS_APPEND)
203bc98: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED
203bc9c: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED
203bca0: 12 80 00 08 bne 203bcc0 <msdos_file_open+0x6c> <== NOT EXECUTED
203bca4: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 <== NOT EXECUTED
iop->offset = fat_fd->fat_file_size;
iop->size = fat_fd->fat_file_size;
rtems_semaphore_release(fs_info->vol_sema);
203bca8: 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;
203bcac: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
203bcb0: 7f ff 46 a9 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203bcb4: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED
return RC_OK;
}
203bcb8: 81 c7 e0 08 ret <== NOT EXECUTED
203bcbc: 81 e8 00 00 restore <== NOT EXECUTED
if (iop->flags & LIBIO_FLAGS_APPEND)
iop->offset = fat_fd->fat_file_size;
iop->size = fat_fd->fat_file_size;
rtems_semaphore_release(fs_info->vol_sema);
203bcc0: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
if (iop->flags & LIBIO_FLAGS_APPEND)
iop->offset = fat_fd->fat_file_size;
203bcc4: c0 24 20 10 clr [ %l0 + 0x10 ] <== NOT EXECUTED
203bcc8: c2 24 20 14 st %g1, [ %l0 + 0x14 ] <== NOT EXECUTED
iop->size = fat_fd->fat_file_size;
203bccc: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
203bcd0: 7f ff 46 a1 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203bcd4: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED
return RC_OK;
}
203bcd8: 81 c7 e0 08 ret <== NOT EXECUTED
203bcdc: 81 e8 00 00 restore <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
rc = fat_file_reopen(fat_fd);
if (rc != RC_OK)
{
rtems_semaphore_release(fs_info->vol_sema);
203bce0: 7f ff 46 9d call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203bce4: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
203bce8: 81 c7 e0 08 ret <== NOT EXECUTED
203bcec: 81 e8 00 00 restore <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
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);
203bcf0: 40 00 33 d5 call 2048c44 <__errno> <== NOT EXECUTED
203bcf4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203bcf8: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203bcfc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203bd00: 81 c7 e0 08 ret <== NOT EXECUTED
203bd04: 81 e8 00 00 restore <== NOT EXECUTED
0203bb18 <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)
{
203bb18: 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;
203bb1c: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
203bb20: 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;
203bb24: 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,
203bb28: 92 10 20 00 clr %o1 <== NOT EXECUTED
203bb2c: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
203bb30: 7f ff 46 c2 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
203bb34: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
203bb38: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203bb3c: 12 80 00 0c bne 203bb6c <msdos_file_read+0x54> <== NOT EXECUTED
203bb40: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
ret = fat_file_read(iop->pathinfo.mt_entry, fat_fd, iop->offset, count,
203bb44: d4 06 20 14 ld [ %i0 + 0x14 ], %o2 <== NOT EXECUTED
203bb48: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
203bb4c: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
203bb50: 7f ff b3 d1 call 2028a94 <fat_file_read> <== NOT EXECUTED
203bb54: 98 10 00 19 mov %i1, %o4 <== NOT EXECUTED
203bb58: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
buffer);
rtems_semaphore_release(fs_info->vol_sema);
203bb5c: 7f ff 46 fe call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203bb60: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return ret;
}
203bb64: 81 c7 e0 08 ret <== NOT EXECUTED
203bb68: 81 e8 00 00 restore <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
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);
203bb6c: 40 00 34 36 call 2048c44 <__errno> <== NOT EXECUTED
203bb70: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203bb74: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203bb78: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203bb7c: 81 c7 e0 08 ret <== NOT EXECUTED
203bb80: 81 e8 00 00 restore <== NOT EXECUTED
0203b6d0 <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)
{
203b6d0: 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;
203b6d4: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = pathloc->node_access;
203b6d8: 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;
203b6dc: 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,
203b6e0: 92 10 20 00 clr %o1 <== NOT EXECUTED
203b6e4: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
203b6e8: 7f ff 47 d4 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
203b6ec: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
203b6f0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b6f4: 12 80 00 13 bne 203b740 <msdos_file_rmnod+0x70> <== NOT EXECUTED
203b6f8: 92 04 60 20 add %l1, 0x20, %o1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
/* mark file removed */
rc = msdos_set_first_char4file_name(pathloc->mt_entry,
203b6fc: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
203b700: 40 00 05 40 call 203cc00 <msdos_set_first_char4file_name> <== NOT EXECUTED
203b704: 94 10 20 e5 mov 0xe5, %o2 <== NOT EXECUTED
&fat_fd->dir_pos,
MSDOS_THIS_DIR_ENTRY_EMPTY);
if (rc != RC_OK)
203b708: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203b70c: 12 80 00 09 bne 203b730 <msdos_file_rmnod+0x60> <== NOT EXECUTED
203b710: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
fat_file_mark_removed(pathloc->mt_entry, fat_fd);
203b714: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
203b718: 7f ff b3 3b call 2028404 <fat_file_mark_removed> <== NOT EXECUTED
203b71c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
203b720: 7f ff 48 0d call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203b724: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return RC_OK;
}
203b728: 81 c7 e0 08 ret <== NOT EXECUTED
203b72c: 81 e8 00 00 restore <== NOT EXECUTED
rc = msdos_set_first_char4file_name(pathloc->mt_entry,
&fat_fd->dir_pos,
MSDOS_THIS_DIR_ENTRY_EMPTY);
if (rc != RC_OK)
{
rtems_semaphore_release(fs_info->vol_sema);
203b730: 7f ff 48 09 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203b734: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
203b738: 81 c7 e0 08 ret <== NOT EXECUTED
203b73c: 81 e8 00 00 restore <== NOT EXECUTED
fat_file_fd_t *fat_fd = pathloc->node_access;
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);
203b740: 40 00 35 41 call 2048c44 <__errno> <== NOT EXECUTED
203b744: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203b748: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203b74c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203b750: 81 c7 e0 08 ret <== NOT EXECUTED
203b754: 81 e8 00 00 restore <== NOT EXECUTED
0203b630 <msdos_file_stat>:
int
msdos_file_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
203b630: 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;
203b634: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = loc->node_access;
203b638: 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;
203b63c: 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,
203b640: 92 10 20 00 clr %o1 <== NOT EXECUTED
203b644: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
203b648: 7f ff 47 fc call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
203b64c: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
203b650: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b654: 12 80 00 19 bne 203b6b8 <msdos_file_stat+0x88> <== NOT EXECUTED
203b658: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
buf->st_dev = fs_info->fat.vol.dev;
buf->st_ino = fat_fd->ino;
203b65c: c2 04 60 0c ld [ %l1 + 0xc ], %g1 <== 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;
203b660: 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;
203b664: c2 26 60 08 st %g1, [ %i1 + 8 ] <== NOT EXECUTED
buf->st_mode = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;
203b668: 03 00 00 20 sethi %hi(0x8000), %g1 <== NOT EXECUTED
203b66c: 82 10 61 ff or %g1, 0x1ff, %g1 ! 81ff <PROM_START+0x81ff> <== NOT EXECUTED
203b670: c2 26 60 0c st %g1, [ %i1 + 0xc ] <== NOT EXECUTED
buf->st_rdev = 0ll;
buf->st_size = fat_fd->fat_file_size;
203b674: 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;
203b678: 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;
203b67c: 85 30 60 09 srl %g1, 9, %g2 <== NOT EXECUTED
203b680: c4 26 60 44 st %g2, [ %i1 + 0x44 ] <== NOT EXECUTED
buf->st_blksize = fs_info->fat.vol.bps;
buf->st_mtime = fat_fd->mtime;
203b684: 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;
203b688: 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;
203b68c: c8 26 60 30 st %g4, [ %i1 + 0x30 ] <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
203b690: 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;
203b694: 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;
203b698: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED
203b69c: c0 26 60 1c clr [ %i1 + 0x1c ] <== NOT EXECUTED
buf->st_size = fat_fd->fat_file_size;
203b6a0: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED
203b6a4: 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);
203b6a8: 7f ff 48 2b call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203b6ac: b0 10 20 00 clr %i0 <== NOT EXECUTED
return RC_OK;
}
203b6b0: 81 c7 e0 08 ret <== NOT EXECUTED
203b6b4: 81 e8 00 00 restore <== NOT EXECUTED
fat_file_fd_t *fat_fd = loc->node_access;
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);
203b6b8: 40 00 35 63 call 2048c44 <__errno> <== NOT EXECUTED
203b6bc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203b6c0: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203b6c4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203b6c8: 81 c7 e0 08 ret <== NOT EXECUTED
203b6cc: 81 e8 00 00 restore <== NOT EXECUTED
0203b7bc <msdos_file_sync>:
* RETURNS:
* RC_OK on success, or -1 if error occured (errno set appropriately)
*/
int
msdos_file_sync(rtems_libio_t *iop)
{
203b7bc: 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;
203b7c0: 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;
203b7c4: e2 06 20 3c ld [ %i0 + 0x3c ], %l1 <== NOT EXECUTED
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
203b7c8: e4 00 60 34 ld [ %g1 + 0x34 ], %l2 <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
203b7cc: 92 10 20 00 clr %o1 <== NOT EXECUTED
203b7d0: d0 04 a0 98 ld [ %l2 + 0x98 ], %o0 <== NOT EXECUTED
203b7d4: 94 10 20 00 clr %o2 <== NOT EXECUTED
203b7d8: 7f ff 47 98 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
203b7dc: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
203b7e0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b7e4: 12 80 00 27 bne 203b880 <msdos_file_sync+0xc4> <== NOT EXECUTED
203b7e8: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
/* synchronize file data */
rc = fat_file_datasync(iop->pathinfo.mt_entry, fat_fd);
203b7ec: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
203b7f0: 7f ff b2 ba call 20282d8 <fat_file_datasync> <== NOT EXECUTED
203b7f4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc != RC_OK)
203b7f8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203b7fc: 12 80 00 1d bne 203b870 <msdos_file_sync+0xb4> <== NOT EXECUTED
203b800: 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))
203b804: c2 0c 60 30 ldub [ %l1 + 0x30 ], %g1 <== NOT EXECUTED
203b808: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
203b80c: 32 80 00 15 bne,a 203b860 <msdos_file_sync+0xa4> <== NOT EXECUTED
203b810: d0 04 a0 98 ld [ %l2 + 0x98 ], %o0 <== NOT EXECUTED
{
rc = msdos_set_first_cluster_num(iop->pathinfo.mt_entry, fat_fd);
203b814: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
203b818: 40 00 04 c2 call 203cb20 <msdos_set_first_cluster_num> <== NOT EXECUTED
203b81c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc != RC_OK)
203b820: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203b824: 12 80 00 13 bne 203b870 <msdos_file_sync+0xb4> <== NOT EXECUTED
203b828: 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);
203b82c: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
203b830: 40 00 04 92 call 203ca78 <msdos_set_file_size> <== NOT EXECUTED
203b834: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc != RC_OK)
203b838: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203b83c: 12 80 00 0d bne 203b870 <msdos_file_sync+0xb4> <== NOT EXECUTED
203b840: 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);
203b844: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
203b848: 40 00 05 60 call 203cdc8 <msdos_set_dir_wrt_time_and_date><== NOT EXECUTED
203b84c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc != RC_OK)
203b850: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203b854: 12 80 00 07 bne 203b870 <msdos_file_sync+0xb4> <== NOT EXECUTED
203b858: 01 00 00 00 nop <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
}
rtems_semaphore_release(fs_info->vol_sema);
203b85c: d0 04 a0 98 ld [ %l2 + 0x98 ], %o0 <== NOT EXECUTED
203b860: 7f ff 47 bd call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203b864: b0 10 20 00 clr %i0 <== NOT EXECUTED
return RC_OK;
}
203b868: 81 c7 e0 08 ret <== NOT EXECUTED
203b86c: 81 e8 00 00 restore <== NOT EXECUTED
return rc;
}
rc = msdos_set_dir_wrt_time_and_date(iop->pathinfo.mt_entry, fat_fd);
if (rc != RC_OK)
{
rtems_semaphore_release(fs_info->vol_sema);
203b870: 7f ff 47 b9 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203b874: d0 04 a0 98 ld [ %l2 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
203b878: 81 c7 e0 08 ret <== NOT EXECUTED
203b87c: 81 e8 00 00 restore <== NOT EXECUTED
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
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);
203b880: 40 00 34 f1 call 2048c44 <__errno> <== NOT EXECUTED
203b884: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203b888: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203b88c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203b890: 81 c7 e0 08 ret <== NOT EXECUTED
203b894: 81 e8 00 00 restore <== NOT EXECUTED
0203ba38 <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)
{
203ba38: 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;
203ba3c: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
203ba40: 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;
203ba44: 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,
203ba48: 92 10 20 00 clr %o1 <== NOT EXECUTED
203ba4c: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
203ba50: 94 10 20 00 clr %o2 <== NOT EXECUTED
203ba54: 7f ff 46 f9 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
203ba58: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
203ba5c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203ba60: 12 80 00 23 bne 203baec <msdos_file_write+0xb4> <== NOT EXECUTED
203ba64: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
ret = fat_file_write(iop->pathinfo.mt_entry, fat_fd, iop->offset, count,
203ba68: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
203ba6c: d4 06 20 14 ld [ %i0 + 0x14 ], %o2 <== NOT EXECUTED
203ba70: 98 10 00 19 mov %i1, %o4 <== NOT EXECUTED
203ba74: 7f ff b3 6c call 2028824 <fat_file_write> <== NOT EXECUTED
203ba78: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
buffer);
if (ret < 0)
203ba7c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203ba80: 06 80 00 21 bl 203bb04 <msdos_file_write+0xcc> <== NOT EXECUTED
203ba84: 85 3e 20 1f sra %i0, 0x1f, %g2 <== 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)
203ba88: d8 1c 20 10 ldd [ %l0 + 0x10 ], %o4 <== NOT EXECUTED
203ba8c: 86 86 00 0d addcc %i0, %o5, %g3 <== NOT EXECUTED
203ba90: 84 40 80 0c addx %g2, %o4, %g2 <== NOT EXECUTED
203ba94: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203ba98: 04 80 00 0a ble 203bac0 <msdos_file_write+0x88> <== NOT EXECUTED
203ba9c: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 <== NOT EXECUTED
fat_fd->fat_file_size = iop->offset + ret;
203baa0: 82 06 00 0d add %i0, %o5, %g1 <== NOT EXECUTED
203baa4: c2 24 a0 18 st %g1, [ %l2 + 0x18 ] <== NOT EXECUTED
iop->size = fat_fd->fat_file_size;
rtems_semaphore_release(fs_info->vol_sema);
203baa8: 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;
203baac: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
203bab0: 7f ff 47 29 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203bab4: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED
return ret;
}
203bab8: 81 c7 e0 08 ret <== NOT EXECUTED
203babc: 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)
203bac0: 32 bf ff fb bne,a 203baac <msdos_file_write+0x74> <== NOT EXECUTED
203bac4: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
203bac8: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED
203bacc: 38 bf ff f6 bgu,a 203baa4 <msdos_file_write+0x6c> <== NOT EXECUTED
203bad0: 82 06 00 0d add %i0, %o5, %g1 <== NOT EXECUTED
fat_fd->fat_file_size = iop->offset + ret;
iop->size = fat_fd->fat_file_size;
rtems_semaphore_release(fs_info->vol_sema);
203bad4: 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;
203bad8: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
203badc: 7f ff 47 1e call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203bae0: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED
return ret;
}
203bae4: 81 c7 e0 08 ret <== NOT EXECUTED
203bae8: 81 e8 00 00 restore <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
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);
203baec: 40 00 34 56 call 2048c44 <__errno> <== NOT EXECUTED
203baf0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203baf4: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203baf8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203bafc: 81 c7 e0 08 ret <== NOT EXECUTED
203bb00: 81 e8 00 00 restore <== NOT EXECUTED
ret = fat_file_write(iop->pathinfo.mt_entry, fat_fd, iop->offset, count,
buffer);
if (ret < 0)
{
rtems_semaphore_release(fs_info->vol_sema);
203bb04: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
203bb08: 7f ff 47 13 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203bb0c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return -1;
203bb10: 81 c7 e0 08 ret <== NOT EXECUTED
203bb14: 81 e8 00 00 restore <== NOT EXECUTED
02047180 <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)
{
2047180: 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] = ' ';
2047184: 84 10 20 20 mov 0x20, %g2 <== NOT EXECUTED
2047188: 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++)
204718c: 82 00 60 01 inc %g1 <== NOT EXECUTED
2047190: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED
2047194: 32 bf ff fe bne,a 204718c <msdos_filename_unix2dos+0xc> <== NOT EXECUTED
2047198: 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) {
204719c: c4 4a 00 00 ldsb [ %o0 ], %g2 <== NOT EXECUTED
20471a0: 84 18 a0 2e xor %g2, 0x2e, %g2 <== NOT EXECUTED
20471a4: 80 a0 00 02 cmp %g0, %g2 <== NOT EXECUTED
20471a8: 84 60 3f ff subx %g0, -1, %g2 <== NOT EXECUTED
20471ac: 80 a2 60 01 cmp %o1, 1 <== NOT EXECUTED
20471b0: 02 80 00 61 be 2047334 <msdos_filename_unix2dos+0x1b4> <== NOT EXECUTED
20471b4: c2 0a 00 00 ldub [ %o0 ], %g1 <== NOT EXECUTED
dn[0] = '.';
return 0;
}
if (un[0] == '.' && un[1] == '.' && unlen == 2) {
20471b8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
20471bc: 32 80 00 65 bne,a 2047350 <msdos_filename_unix2dos+0x1d0><== NOT EXECUTED
20471c0: c6 4a 20 01 ldsb [ %o0 + 1 ], %g3 <== NOT EXECUTED
}
/*
* Remove any dots from the start of a file name.
*/
while (unlen && (*un == '.')) {
20471c4: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
20471c8: 02 80 00 21 be 204724c <msdos_filename_unix2dos+0xcc> <== NOT EXECUTED
20471cc: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
20471d0: 32 80 00 26 bne,a 2047268 <msdos_filename_unix2dos+0xe8> <== NOT EXECUTED
20471d4: 92 82 7f ff addcc %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++) {
20471d8: 84 88 60 ff andcc %g1, 0xff, %g2 <== NOT EXECUTED
20471dc: 02 80 00 27 be 2047278 <msdos_filename_unix2dos+0xf8> <== NOT EXECUTED
20471e0: 80 a0 a0 2e cmp %g2, 0x2e <== NOT EXECUTED
20471e4: 02 80 00 25 be 2047278 <msdos_filename_unix2dos+0xf8> <== NOT EXECUTED
20471e8: 09 00 81 b6 sethi %hi(0x206d800), %g4 <== NOT EXECUTED
if (msdos_map[c] == 0)
20471ec: 88 11 21 98 or %g4, 0x198, %g4 ! 206d998 <msdos_map> <== NOT EXECUTED
20471f0: c6 09 00 02 ldub [ %g4 + %g2 ], %g3 <== NOT EXECUTED
20471f4: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
20471f8: 12 80 00 10 bne 2047238 <msdos_filename_unix2dos+0xb8> <== NOT EXECUTED
20471fc: 84 10 20 00 clr %g2 <== NOT EXECUTED
/*
* Strip any further characters up to a '.' or the end of the
* string.
*/
while (unlen && (c = *un)) {
2047200: 10 80 00 1f b 204727c <msdos_filename_unix2dos+0xfc> <== NOT EXECUTED
2047204: 82 88 60 ff andcc %g1, 0xff, %g1 <== 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++) {
2047208: 80 a0 a0 07 cmp %g2, 7 <== NOT EXECUTED
204720c: 14 80 00 1b bg 2047278 <msdos_filename_unix2dos+0xf8> <== NOT EXECUTED
2047210: c2 0a 00 00 ldub [ %o0 ], %g1 <== NOT EXECUTED
2047214: 86 88 60 ff andcc %g1, 0xff, %g3 <== NOT EXECUTED
2047218: 02 80 00 18 be 2047278 <msdos_filename_unix2dos+0xf8> <== NOT EXECUTED
204721c: 80 a0 e0 2e cmp %g3, 0x2e <== NOT EXECUTED
2047220: 22 80 00 17 be,a 204727c <msdos_filename_unix2dos+0xfc> <== NOT EXECUTED
2047224: 82 88 60 ff andcc %g1, 0xff, %g1 <== NOT EXECUTED
if (msdos_map[c] == 0)
2047228: c6 09 00 03 ldub [ %g4 + %g3 ], %g3 <== NOT EXECUTED
204722c: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
2047230: 22 80 00 13 be,a 204727c <msdos_filename_unix2dos+0xfc> <== NOT EXECUTED
2047234: 82 88 60 ff andcc %g1, 0xff, %g1 <== NOT EXECUTED
break;
dn[i] = msdos_map[c];
2047238: c6 2a 80 02 stb %g3, [ %o2 + %g2 ] <== NOT EXECUTED
un++;
204723c: 90 02 20 01 inc %o0 <== 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++) {
2047240: 92 82 7f ff addcc %o1, -1, %o1 <== NOT EXECUTED
2047244: 12 bf ff f1 bne 2047208 <msdos_filename_unix2dos+0x88> <== NOT EXECUTED
2047248: 84 00 a0 01 inc %g2 <== NOT EXECUTED
dn[i] = msdos_map[c];
un++;
unlen--;
}
return 0;
}
204724c: 81 c3 e0 08 retl <== NOT EXECUTED
2047250: 90 10 20 00 clr %o0 <== NOT EXECUTED
}
/*
* Remove any dots from the start of a file name.
*/
while (unlen && (*un == '.')) {
2047254: c4 4a 00 00 ldsb [ %o0 ], %g2 <== NOT EXECUTED
2047258: 80 a0 a0 2e cmp %g2, 0x2e <== NOT EXECUTED
204725c: 12 bf ff df bne 20471d8 <msdos_filename_unix2dos+0x58> <== NOT EXECUTED
2047260: c2 0a 00 00 ldub [ %o0 ], %g1 <== NOT EXECUTED
2047264: 92 82 7f ff addcc %o1, -1, %o1 <== NOT EXECUTED
2047268: 12 bf ff fb bne 2047254 <msdos_filename_unix2dos+0xd4> <== NOT EXECUTED
204726c: 90 02 20 01 inc %o0 <== NOT EXECUTED
dn[i] = msdos_map[c];
un++;
unlen--;
}
return 0;
}
2047270: 81 c3 e0 08 retl <== NOT EXECUTED
2047274: 90 10 20 00 clr %o0 <== NOT EXECUTED
/*
* Strip any further characters up to a '.' or the end of the
* string.
*/
while (unlen && (c = *un)) {
2047278: 82 88 60 ff andcc %g1, 0xff, %g1 <== NOT EXECUTED
204727c: 02 bf ff f4 be 204724c <msdos_filename_unix2dos+0xcc> <== NOT EXECUTED
2047280: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
un++;
2047284: 90 02 20 01 inc %o0 <== NOT EXECUTED
unlen--;
/* Make sure we've skipped over the dot before stopping. */
if (c == '.')
2047288: 02 80 00 0c be 20472b8 <msdos_filename_unix2dos+0x138> <== NOT EXECUTED
204728c: 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)) {
2047290: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
2047294: 02 bf ff ee be 204724c <msdos_filename_unix2dos+0xcc> <== NOT EXECUTED
2047298: 01 00 00 00 nop <== NOT EXECUTED
204729c: c2 0a 00 00 ldub [ %o0 ], %g1 <== NOT EXECUTED
20472a0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20472a4: 02 bf ff ea be 204724c <msdos_filename_unix2dos+0xcc> <== NOT EXECUTED
20472a8: 92 02 7f ff add %o1, -1, %o1 <== NOT EXECUTED
un++;
unlen--;
/* Make sure we've skipped over the dot before stopping. */
if (c == '.')
20472ac: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
20472b0: 12 bf ff f8 bne 2047290 <msdos_filename_unix2dos+0x110> <== NOT EXECUTED
20472b4: 90 02 20 01 inc %o0 <== 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++) {
20472b8: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
20472bc: 02 bf ff e4 be 204724c <msdos_filename_unix2dos+0xcc> <== NOT EXECUTED
20472c0: 01 00 00 00 nop <== NOT EXECUTED
20472c4: c2 0a 00 00 ldub [ %o0 ], %g1 <== NOT EXECUTED
20472c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20472cc: 02 bf ff e0 be 204724c <msdos_filename_unix2dos+0xcc> <== NOT EXECUTED
20472d0: 09 00 81 b6 sethi %hi(0x206d800), %g4 <== NOT EXECUTED
if (msdos_map[c] == 0)
20472d4: 88 11 21 98 or %g4, 0x198, %g4 ! 206d998 <msdos_map> <== NOT EXECUTED
20472d8: c4 09 00 01 ldub [ %g4 + %g1 ], %g2 <== NOT EXECUTED
20472dc: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
20472e0: 12 80 00 0e bne 2047318 <msdos_filename_unix2dos+0x198> <== NOT EXECUTED
20472e4: 82 10 20 08 mov 8, %g1 <== NOT EXECUTED
20472e8: 30 bf ff d9 b,a 204724c <msdos_filename_unix2dos+0xcc> <== 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++) {
20472ec: 80 a0 60 0a cmp %g1, 0xa <== NOT EXECUTED
20472f0: 14 bf ff d7 bg 204724c <msdos_filename_unix2dos+0xcc> <== NOT EXECUTED
20472f4: 01 00 00 00 nop <== NOT EXECUTED
20472f8: c4 08 bf f8 ldub [ %g2 + -8 ], %g2 <== NOT EXECUTED
20472fc: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2047300: 02 bf ff d3 be 204724c <msdos_filename_unix2dos+0xcc> <== NOT EXECUTED
2047304: 01 00 00 00 nop <== NOT EXECUTED
if (msdos_map[c] == 0)
2047308: c4 09 00 02 ldub [ %g4 + %g2 ], %g2 <== NOT EXECUTED
204730c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2047310: 02 bf ff cf be 204724c <msdos_filename_unix2dos+0xcc> <== NOT EXECUTED
2047314: 01 00 00 00 nop <== NOT EXECUTED
break;
dn[i] = msdos_map[c];
2047318: 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++) {
204731c: 92 82 7f ff addcc %o1, -1, %o1 <== NOT EXECUTED
2047320: 82 00 60 01 inc %g1 <== NOT EXECUTED
2047324: 12 bf ff f2 bne 20472ec <msdos_filename_unix2dos+0x16c> <== NOT EXECUTED
2047328: 84 02 00 01 add %o0, %g1, %g2 <== NOT EXECUTED
dn[i] = msdos_map[c];
un++;
unlen--;
}
return 0;
}
204732c: 81 c3 e0 08 retl <== NOT EXECUTED
2047330: 90 10 20 00 clr %o0 <== NOT EXECUTED
/*
* The filenames "." and ".." are handled specially, since they
* don't follow dos filename rules.
*/
if (un[0] == '.' && unlen == 1) {
2047334: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2047338: 02 bf ff a1 be 20471bc <msdos_filename_unix2dos+0x3c> <== NOT EXECUTED
204733c: 01 00 00 00 nop <== NOT EXECUTED
dn[0] = '.';
2047340: 82 10 20 2e mov 0x2e, %g1 ! 2e <PROM_START+0x2e> <== NOT EXECUTED
dn[i] = msdos_map[c];
un++;
unlen--;
}
return 0;
}
2047344: 90 10 20 00 clr %o0 <== NOT EXECUTED
2047348: 81 c3 e0 08 retl <== NOT EXECUTED
204734c: c2 2a 80 00 stb %g1, [ %o2 ] <== NOT EXECUTED
*/
if (un[0] == '.' && unlen == 1) {
dn[0] = '.';
return 0;
}
if (un[0] == '.' && un[1] == '.' && unlen == 2) {
2047350: 80 a0 e0 2e cmp %g3, 0x2e <== NOT EXECUTED
2047354: 12 bf ff 9d bne 20471c8 <msdos_filename_unix2dos+0x48> <== NOT EXECUTED
2047358: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
204735c: 80 a2 60 02 cmp %o1, 2 <== NOT EXECUTED
2047360: 12 bf ff 9a bne 20471c8 <msdos_filename_unix2dos+0x48> <== NOT EXECUTED
2047364: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
dn[0] = '.';
dn[1] = '.';
2047368: c6 2a a0 01 stb %g3, [ %o2 + 1 ] <== NOT EXECUTED
return 0;
204736c: 10 bf ff b8 b 204724c <msdos_filename_unix2dos+0xcc> <== NOT EXECUTED
2047370: c6 2a 80 00 stb %g3, [ %o2 ] <== NOT EXECUTED
0203d62c <msdos_find_name>:
msdos_find_name(
rtems_filesystem_location_info_t *parent_loc,
const char *name,
int name_len
)
{
203d62c: 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;
203d630: 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);
203d634: a4 07 bf c8 add %fp, -56, %l2 <== NOT EXECUTED
const char *name,
int name_len
)
{
int rc = RC_OK;
msdos_fs_info_t *fs_info = parent_loc->mt_entry->fs_info;
203d638: e2 00 60 34 ld [ %g1 + 0x34 ], %l1 <== 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,
203d63c: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
203d640: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
203d644: 96 10 20 0b mov 0xb, %o3 <== 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;
203d648: 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);
203d64c: c0 27 bf c8 clr [ %fp + -56 ] <== NOT EXECUTED
203d650: c0 27 bf cc clr [ %fp + -52 ] <== NOT EXECUTED
203d654: c0 24 a0 08 clr [ %l2 + 8 ] <== NOT EXECUTED
203d658: c0 24 a0 0c clr [ %l2 + 0xc ] <== NOT EXECUTED
203d65c: c0 24 a0 10 clr [ %l2 + 0x10 ] <== NOT EXECUTED
203d660: c0 24 a0 14 clr [ %l2 + 0x14 ] <== NOT EXECUTED
203d664: c0 24 a0 18 clr [ %l2 + 0x18 ] <== NOT EXECUTED
203d668: c0 24 a0 1c clr [ %l2 + 0x1c ] <== NOT EXECUTED
name_type = msdos_long_to_short (name,
203d66c: 7f ff fe 6d call 203d020 <msdos_long_to_short> <== NOT EXECUTED
203d670: 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
)
{
203d674: 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,
203d678: 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,
203d67c: e4 23 a0 5c st %l2, [ %sp + 0x5c ] <== NOT EXECUTED
203d680: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203d684: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
203d688: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
203d68c: a6 07 bf ec add %fp, -20, %l3 <== NOT EXECUTED
203d690: 92 10 20 00 clr %o1 <== NOT EXECUTED
203d694: 7f ff ff a2 call 203d51c <msdos_get_name_node> <== NOT EXECUTED
203d698: 9a 10 00 13 mov %l3, %o5 <== NOT EXECUTED
&dir_pos, node_entry);
if (rc != RC_OK)
203d69c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d6a0: 12 80 00 20 bne 203d720 <msdos_find_name+0xf4> <== NOT EXECUTED
203d6a4: c2 0f bf d3 ldub [ %fp + -45 ], %g1 <== NOT EXECUTED
return rc;
if (((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_VOLUME_ID) ||
203d6a8: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED
203d6ac: 12 80 00 1f bne 203d728 <msdos_find_name+0xfc> <== NOT EXECUTED
203d6b0: 82 08 60 3f and %g1, 0x3f, %g1 <== NOT EXECUTED
203d6b4: 80 a0 60 0f cmp %g1, 0xf <== NOT EXECUTED
203d6b8: 02 80 00 1c be 203d728 <msdos_find_name+0xfc> <== NOT EXECUTED
203d6bc: 92 10 00 13 mov %l3, %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);
203d6c0: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
203d6c4: 7f ff ad b1 call 2028d88 <fat_file_open> <== NOT EXECUTED
203d6c8: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
if (rc != RC_OK)
203d6cc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d6d0: 12 80 00 14 bne 203d720 <msdos_find_name+0xf4> <== NOT EXECUTED
203d6d4: e6 07 bf fc ld [ %fp + -4 ], %l3 <== NOT EXECUTED
return rc;
fat_fd->dir_pos = dir_pos;
203d6d8: c2 07 bf ec ld [ %fp + -20 ], %g1 <== 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)
203d6dc: f4 04 e0 08 ld [ %l3 + 8 ], %i2 <== NOT EXECUTED
/* open fat-file corresponded to the found node */
rc = fat_file_open(parent_loc->mt_entry, &dir_pos, &fat_fd);
if (rc != RC_OK)
return rc;
fat_fd->dir_pos = dir_pos;
203d6e0: c2 24 e0 20 st %g1, [ %l3 + 0x20 ] <== NOT EXECUTED
203d6e4: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== 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)
203d6e8: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED
/* open fat-file corresponded to the found node */
rc = fat_file_open(parent_loc->mt_entry, &dir_pos, &fat_fd);
if (rc != RC_OK)
return rc;
fat_fd->dir_pos = dir_pos;
203d6ec: c2 24 e0 24 st %g1, [ %l3 + 0x24 ] <== NOT EXECUTED
203d6f0: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
203d6f4: c2 24 e0 28 st %g1, [ %l3 + 0x28 ] <== NOT EXECUTED
203d6f8: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== 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)
203d6fc: 02 80 00 0f be 203d738 <msdos_find_name+0x10c> <== NOT EXECUTED
203d700: c2 24 e0 2c st %g1, [ %l3 + 0x2c ] <== NOT EXECUTED
fat_fd->map.last_cln = FAT_UNDEFINED_VALUE;
}
}
/* close fat-file corresponded to the node we searched in */
rc = fat_file_close(parent_loc->mt_entry, parent_loc->node_access);
203d704: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
203d708: 7f ff ad 6e call 2028cc0 <fat_file_close> <== NOT EXECUTED
203d70c: d2 04 00 00 ld [ %l0 ], %o1 <== NOT EXECUTED
if (rc != RC_OK)
203d710: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d714: 12 80 00 49 bne 203d838 <msdos_find_name+0x20c> <== NOT EXECUTED
203d718: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
fat_file_close(parent_loc->mt_entry, fat_fd);
return rc;
}
/* update node_info_ptr field */
parent_loc->node_access = fat_fd;
203d71c: c2 24 00 00 st %g1, [ %l0 ] <== NOT EXECUTED
return rc;
203d720: 81 c7 e0 08 ret <== NOT EXECUTED
203d724: 81 e8 00 00 restore <== NOT EXECUTED
203d728: 31 00 00 1f sethi %hi(0x7c00), %i0 <== NOT EXECUTED
203d72c: b0 16 21 01 or %i0, 0x101, %i0 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
}
203d730: 81 c7 e0 08 ret <== NOT EXECUTED
203d734: 81 e8 00 00 restore <== 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);
203d738: da 14 a0 1a lduh [ %l2 + 0x1a ], %o5 <== NOT EXECUTED
203d73c: c8 14 a0 14 lduh [ %l2 + 0x14 ], %g4 <== NOT EXECUTED
time_val = *MSDOS_DIR_WRITE_TIME(node_entry);
203d740: d4 14 a0 16 lduh [ %l2 + 0x16 ], %o2 <== NOT EXECUTED
date = *MSDOS_DIR_WRITE_DATE(node_entry);
203d744: c6 14 a0 18 lduh [ %l2 + 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);
203d748: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
203d74c: 9b 2b 60 10 sll %o5, 0x10, %o5 <== NOT EXECUTED
203d750: 97 31 20 18 srl %g4, 0x18, %o3 <== NOT EXECUTED
203d754: 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));
203d758: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
203d75c: 95 2a a0 10 sll %o2, 0x10, %o2 <== NOT EXECUTED
203d760: 85 30 e0 18 srl %g3, 0x18, %g2 <== NOT EXECUTED
203d764: 93 32 a0 18 srl %o2, 0x18, %o1 <== NOT EXECUTED
203d768: 87 30 e0 08 srl %g3, 8, %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);
203d76c: 89 31 20 08 srl %g4, 8, %g4 <== NOT EXECUTED
203d770: 9b 33 60 08 srl %o5, 8, %o5 <== 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));
203d774: 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);
203d778: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED
203d77c: 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));
203d780: 94 0a 80 01 and %o2, %g1, %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);
203d784: 88 09 00 01 and %g4, %g1, %g4 <== NOT EXECUTED
203d788: 9a 0b 40 01 and %o5, %g1, %o5 <== NOT EXECUTED
203d78c: 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));
203d790: 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);
203d794: 9a 13 40 0c or %o5, %o4, %o5 <== NOT EXECUTED
203d798: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
203d79c: 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));
203d7a0: 90 10 40 02 or %g1, %g2, %o0 <== NOT EXECUTED
203d7a4: 92 12 80 09 or %o2, %o1, %o1 <== NOT EXECUTED
203d7a8: 40 00 26 1d call 204701c <msdos_date_dos2unix> <== NOT EXECUTED
203d7ac: c8 24 e0 1c st %g4, [ %l3 + 0x1c ] <== NOT EXECUTED
203d7b0: d0 24 e0 40 st %o0, [ %l3 + 0x40 ] <== NOT EXECUTED
if ((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_DIRECTORY)
203d7b4: c2 0f bf d3 ldub [ %fp + -45 ], %g1 <== NOT EXECUTED
203d7b8: 80 88 60 10 btst 0x10, %g1 <== NOT EXECUTED
203d7bc: 12 80 00 27 bne 203d858 <msdos_find_name+0x22c> <== NOT EXECUTED
203d7c0: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
return rc;
}
}
else
{
fat_fd->fat_file_size = CF_LE_L(*MSDOS_DIR_FILE_SIZE(node_entry));
203d7c4: c4 04 a0 1c ld [ %l2 + 0x1c ], %g2 <== NOT EXECUTED
203d7c8: 87 30 a0 10 srl %g2, 0x10, %g3 <== NOT EXECUTED
203d7cc: 9b 28 a0 18 sll %g2, 0x18, %o5 <== NOT EXECUTED
203d7d0: 89 30 a0 18 srl %g2, 0x18, %g4 <== NOT EXECUTED
203d7d4: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED
203d7d8: 88 13 40 04 or %o5, %g4, %g4 <== NOT EXECUTED
203d7dc: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
203d7e0: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
203d7e4: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
203d7e8: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
203d7ec: 84 11 00 02 or %g4, %g2, %g2 <== NOT EXECUTED
203d7f0: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
203d7f4: c4 20 60 18 st %g2, [ %g1 + 0x18 ] <== NOT EXECUTED
fat_fd->fat_file_type = FAT_FILE;
203d7f8: 84 10 20 05 mov 5, %g2 <== NOT EXECUTED
203d7fc: c4 20 60 10 st %g2, [ %g1 + 0x10 ] <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_FILE_SIZE;
203d800: 84 10 3f ff mov -1, %g2 <== NOT EXECUTED
203d804: 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;
fat_fd->map.disk_cln = fat_fd->cln;
203d808: c6 00 60 1c ld [ %g1 + 0x1c ], %g3 <== NOT EXECUTED
if ((fat_fd->fat_file_size != 0) &&
203d80c: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 <== 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;
203d810: c0 20 60 34 clr [ %g1 + 0x34 ] <== NOT EXECUTED
fat_fd->map.disk_cln = fat_fd->cln;
if ((fat_fd->fat_file_size != 0) &&
203d814: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203d818: 02 80 00 0d be 203d84c <msdos_find_name+0x220> <== NOT EXECUTED
203d81c: c6 20 60 38 st %g3, [ %g1 + 0x38 ] <== NOT EXECUTED
(fat_fd->fat_file_size <= fs_info->fat.vol.bpc))
203d820: c8 14 60 06 lduh [ %l1 + 6 ], %g4 <== NOT EXECUTED
203d824: 80 a0 80 04 cmp %g2, %g4 <== NOT EXECUTED
203d828: 18 80 00 0a bgu 203d850 <msdos_find_name+0x224> <== NOT EXECUTED
203d82c: 84 10 3f ff mov -1, %g2 <== NOT EXECUTED
/* these data is not actual for zero-length fat-file */
fat_fd->map.file_cln = 0;
fat_fd->map.disk_cln = fat_fd->cln;
if ((fat_fd->fat_file_size != 0) &&
203d830: 10 bf ff b5 b 203d704 <msdos_find_name+0xd8> <== NOT EXECUTED
203d834: c6 20 60 3c st %g3, [ %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);
if (rc != RC_OK)
{
fat_file_close(parent_loc->mt_entry, fat_fd);
203d838: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
203d83c: 7f ff ad 21 call 2028cc0 <fat_file_close> <== NOT EXECUTED
203d840: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
return rc;
203d844: 81 c7 e0 08 ret <== NOT EXECUTED
203d848: 81 e8 00 00 restore <== NOT EXECUTED
{
fat_fd->map.last_cln = fat_fd->cln;
}
else
{
fat_fd->map.last_cln = FAT_UNDEFINED_VALUE;
203d84c: 84 10 3f ff mov -1, %g2 <== NOT EXECUTED
203d850: 10 bf ff ad b 203d704 <msdos_find_name+0xd8> <== NOT EXECUTED
203d854: c4 20 60 3c st %g2, [ %g1 + 0x3c ] <== NOT EXECUTED
if ((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_DIRECTORY)
{
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);
203d858: 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;
203d85c: 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;
203d860: f4 20 60 10 st %i2, [ %g1 + 0x10 ] <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
rc = fat_file_size(parent_loc->mt_entry, fat_fd);
203d864: 92 10 00 01 mov %g1, %o1 <== NOT EXECUTED
203d868: 7f ff aa 39 call 202814c <fat_file_size> <== NOT EXECUTED
203d86c: c4 20 60 14 st %g2, [ %g1 + 0x14 ] <== NOT EXECUTED
if (rc != RC_OK)
203d870: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d874: 12 bf ff f1 bne 203d838 <msdos_find_name+0x20c> <== NOT EXECUTED
203d878: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_FILE_SIZE;
}
/* these data is not actual for zero-length fat-file */
fat_fd->map.file_cln = 0;
fat_fd->map.disk_cln = fat_fd->cln;
203d87c: 10 bf ff e4 b 203d80c <msdos_find_name+0x1e0> <== NOT EXECUTED
203d880: c6 00 60 1c ld [ %g1 + 0x1c ], %g3 <== NOT EXECUTED
0203bf48 <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
)
{
203bf48: 9d e3 bf 78 save %sp, -136, %sp <== NOT EXECUTED
203bf4c: f2 27 a0 48 st %i1, [ %fp + 0x48 ] <== NOT EXECUTED
203bf50: f0 27 a0 44 st %i0, [ %fp + 0x44 ] <== NOT EXECUTED
203bf54: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED
203bf58: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED
203bf5c: 82 10 00 1d mov %i5, %g1 <== 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);
203bf60: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED
203bf64: 04 80 02 5e ble 203c8dc <msdos_find_name_in_fat_file+0x994><== NOT EXECUTED
203bf68: f2 06 20 34 ld [ %i0 + 0x34 ], %i1 <== NOT EXECUTED
static inline void
fat_dir_pos_init(
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
203bf6c: c4 07 a0 5c ld [ %fp + 0x5c ], %g2 <== NOT EXECUTED
dir_pos->sname.ofs = 0;
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
203bf70: c6 07 a0 5c ld [ %fp + 0x5c ], %g3 <== NOT EXECUTED
static inline void
fat_dir_pos_init(
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
203bf74: c0 20 80 00 clr [ %g2 ] <== NOT EXECUTED
dir_pos->sname.ofs = 0;
203bf78: c0 20 a0 04 clr [ %g2 + 4 ] <== NOT EXECUTED
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
203bf7c: 84 10 3f ff mov -1, %g2 <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
203bf80: c4 20 e0 0c st %g2, [ %g3 + 0xc ] <== 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))
203bf84: aa 8e a0 ff andcc %i2, 0xff, %l5 <== NOT EXECUTED
203bf88: 02 80 00 05 be 203bf9c <msdos_find_name_in_fat_file+0x54> <== NOT EXECUTED
203bf8c: c4 20 e0 08 st %g2, [ %g3 + 8 ] <== NOT EXECUTED
203bf90: 80 a7 60 01 cmp %i5, 1 <== NOT EXECUTED
203bf94: 02 80 00 09 be 203bfb8 <msdos_find_name_in_fat_file+0x70> <== NOT EXECUTED
203bf98: c0 27 bf e8 clr [ %fp + -24 ] <== NOT EXECUTED
lfn_entries = 0;
else
lfn_entries =
203bf9c: c8 07 a0 54 ld [ %fp + 0x54 ], %g4 <== NOT EXECUTED
203bfa0: c2 27 bf dc st %g1, [ %fp + -36 ] <== NOT EXECUTED
203bfa4: 90 01 20 0c add %g4, 0xc, %o0 <== NOT EXECUTED
203bfa8: 40 00 94 56 call 2061100 <.div> <== NOT EXECUTED
203bfac: 92 10 20 0d mov 0xd, %o1 <== NOT EXECUTED
203bfb0: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED
203bfb4: d0 27 bf e8 st %o0, [ %fp + -24 ] <== NOT EXECUTED
((name_len - 1) + MSDOS_LFN_LEN_PER_ENTRY) / MSDOS_LFN_LEN_PER_ENTRY;
if (FAT_FD_OF_ROOT_DIR(fat_fd) &&
203bfb8: c6 07 a0 48 ld [ %fp + 0x48 ], %g3 <== NOT EXECUTED
203bfbc: c4 00 e0 20 ld [ %g3 + 0x20 ], %g2 <== NOT EXECUTED
203bfc0: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED
203bfc4: 22 80 01 24 be,a 203c454 <msdos_find_name_in_fat_file+0x50c><== NOT EXECUTED
203bfc8: c4 00 e0 24 ld [ %g3 + 0x24 ], %g2 <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
bts2rd = fat_fd->fat_file_size;
else
bts2rd = fs_info->fat.vol.bpc;
203bfcc: e6 16 60 06 lduh [ %i1 + 6 ], %l3 <== NOT EXECUTED
/*
* Remainder is not empty so is this entry empty ?
*/
empty_space_count++;
if (empty_space_count == (lfn_entries + 1))
203bfd0: c8 07 bf e8 ld [ %fp + -24 ], %g4 <== NOT EXECUTED
assert(name_len > 0);
fat_dir_pos_init(dir_pos);
lfn_start.cln = lfn_start.ofs = FAT_FILE_SHORT_NAME;
203bfd4: 84 10 3f ff mov -1, %g2 <== NOT EXECUTED
203bfd8: d8 06 60 9c ld [ %i1 + 0x9c ], %o4 <== NOT EXECUTED
203bfdc: a0 10 00 19 mov %i1, %l0 <== NOT EXECUTED
203bfe0: c4 27 bf f4 st %g2, [ %fp + -12 ] <== NOT EXECUTED
203bfe4: c4 27 bf f8 st %g2, [ %fp + -8 ] <== NOT EXECUTED
203bfe8: c0 27 bf ec clr [ %fp + -20 ] <== NOT EXECUTED
203bfec: b4 10 20 00 clr %i2 <== NOT EXECUTED
203bff0: a4 10 20 00 clr %l2 <== NOT EXECUTED
203bff4: ac 10 20 00 clr %l6 <== NOT EXECUTED
203bff8: b8 10 20 00 clr %i4 <== NOT EXECUTED
203bffc: b0 10 20 00 clr %i0 <== NOT EXECUTED
203c000: ae 10 20 00 clr %l7 <== NOT EXECUTED
203c004: a8 10 20 00 clr %l4 <== NOT EXECUTED
203c008: b6 10 20 00 clr %i3 <== NOT EXECUTED
/*
* Remainder is not empty so is this entry empty ?
*/
empty_space_count++;
if (empty_space_count == (lfn_entries + 1))
203c00c: a2 01 20 01 add %g4, 1, %l1 <== NOT EXECUTED
memcpy(name_dir_entry, entry,
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
return RC_OK;
}
lfn_start.cln = FAT_FILE_SHORT_NAME;
203c010: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
203c014: b2 10 00 01 mov %g1, %i1 <== 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),
203c018: d0 07 a0 44 ld [ %fp + 0x44 ], %o0 <== NOT EXECUTED
203c01c: d2 07 a0 48 ld [ %fp + 0x48 ], %o1 <== NOT EXECUTED
203c020: d4 07 bf ec ld [ %fp + -20 ], %o2 <== NOT EXECUTED
203c024: 7f ff b2 9c call 2028a94 <fat_file_read> <== NOT EXECUTED
203c028: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
203c02c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203c030: 02 80 01 4e be 203c568 <msdos_find_name_in_fat_file+0x620><== NOT EXECUTED
203c034: 80 a2 20 1f cmp %o0, 0x1f <== 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)
203c038: 04 80 01 46 ble 203c550 <msdos_find_name_in_fat_file+0x608><== NOT EXECUTED
203c03c: 80 a2 00 13 cmp %o0, %l3 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
assert(ret == bts2rd);
203c040: 12 80 02 1d bne 203c8b4 <msdos_find_name_in_fat_file+0x96c><== NOT EXECUTED
203c044: 84 10 20 00 clr %g2 <== NOT EXECUTED
203c048: d8 04 20 9c ld [ %l0 + 0x9c ], %o4 <== NOT EXECUTED
203c04c: 82 10 00 0c mov %o4, %g1 <== 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)
203c050: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
203c054: 12 80 00 04 bne 203c064 <msdos_find_name_in_fat_file+0x11c><== NOT EXECUTED
203c058: da 08 40 00 ldub [ %g1 ], %o5 <== NOT EXECUTED
203c05c: ac 10 00 02 mov %g2, %l6 <== NOT EXECUTED
203c060: b8 10 00 1b mov %i3, %i4 <== NOT EXECUTED
{
empty_space_entry = dir_entry;
empty_space_offset = dir_offset;
}
if (remainder_empty)
203c064: 86 8b 60 ff andcc %o5, 0xff, %g3 <== NOT EXECUTED
203c068: 02 80 00 cd be 203c39c <msdos_find_name_in_fat_file+0x454><== NOT EXECUTED
203c06c: 80 a0 e0 e5 cmp %g3, 0xe5 <== NOT EXECUTED
printf ("MSFS:[3.2] esf:%i esc%i\n", empty_space_found, empty_space_count);
#endif
}
break;
}
else if (entry_empty)
203c070: 02 80 00 4e be 203c1a8 <msdos_find_name_in_fat_file+0x260><== NOT EXECUTED
203c074: 80 a5 60 00 cmp %l5, 0 <== 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)
203c078: 02 80 00 07 be 203c094 <msdos_find_name_in_fat_file+0x14c><== NOT EXECUTED
203c07c: c8 08 60 0b ldub [ %g1 + 0xb ], %g4 <== NOT EXECUTED
203c080: 80 8e a0 ff btst 0xff, %i2 <== NOT EXECUTED
203c084: 12 80 00 04 bne 203c094 <msdos_find_name_in_fat_file+0x14c><== NOT EXECUTED
203c088: 01 00 00 00 nop <== NOT EXECUTED
203c08c: a4 10 20 00 clr %l2 ! 0 <PROM_START> <== NOT EXECUTED
203c090: ac 10 20 00 clr %l6 <== 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) ==
203c094: 88 09 20 3f and %g4, 0x3f, %g4 <== NOT EXECUTED
203c098: 80 a1 20 0f cmp %g4, 0xf <== NOT EXECUTED
203c09c: 02 80 00 6a be 203c244 <msdos_find_name_in_fat_file+0x2fc><== NOT EXECUTED
203c0a0: 80 8d 20 ff btst 0xff, %l4 <== 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)
203c0a4: 02 80 00 51 be 203c1e8 <msdos_find_name_in_fat_file+0x2a0><== NOT EXECUTED
203c0a8: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED
203c0ac: 86 10 20 00 clr %g3 <== NOT EXECUTED
203c0b0: 88 10 20 00 clr %g4 <== NOT EXECUTED
203c0b4: 10 80 00 07 b 203c0d0 <msdos_find_name_in_fat_file+0x188> <== NOT EXECUTED
203c0b8: 96 10 20 00 clr %o3 <== 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;
203c0bc: da 08 40 03 ldub [ %g1 + %g3 ], %o5 <== NOT EXECUTED
203c0c0: 96 0a e0 ff and %o3, 0xff, %o3 <== NOT EXECUTED
203c0c4: 88 0a e0 01 and %o3, 1, %g4 <== NOT EXECUTED
203c0c8: 88 20 00 04 neg %g4 <== NOT EXECUTED
203c0cc: 88 09 20 80 and %g4, 0x80, %g4 <== NOT EXECUTED
203c0d0: 88 03 40 04 add %o5, %g4, %g4 <== NOT EXECUTED
203c0d4: 97 32 e0 01 srl %o3, 1, %o3 <== 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++)
203c0d8: 86 00 e0 01 inc %g3 <== NOT EXECUTED
203c0dc: 80 a0 e0 0b cmp %g3, 0xb <== NOT EXECUTED
203c0e0: 12 bf ff f7 bne 203c0bc <msdos_find_name_in_fat_file+0x174><== NOT EXECUTED
203c0e4: 96 01 00 0b add %g4, %o3, %o3 <== NOT EXECUTED
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
if (lfn_entry || (lfn_checksum != cs))
203c0e8: 96 0a e0 ff and %o3, 0xff, %o3 <== NOT EXECUTED
203c0ec: 86 0d e0 ff and %l7, 0xff, %g3 <== NOT EXECUTED
203c0f0: 80 a0 c0 0b cmp %g3, %o3 <== NOT EXECUTED
203c0f4: 12 80 00 3d bne 203c1e8 <msdos_find_name_in_fat_file+0x2a0><== NOT EXECUTED
203c0f8: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED
203c0fc: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
203c100: 12 80 00 3a bne 203c1e8 <msdos_find_name_in_fat_file+0x2a0><== NOT EXECUTED
203c104: 80 a6 60 01 cmp %i1, 1 <== 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,
203c108: d6 07 bf ec ld [ %fp + -20 ], %o3 <== NOT EXECUTED
203c10c: d0 07 a0 44 ld [ %fp + 0x44 ], %o0 <== NOT EXECUTED
203c110: d2 07 a0 48 ld [ %fp + 0x48 ], %o1 <== NOT EXECUTED
203c114: d8 07 a0 5c ld [ %fp + 0x5c ], %o4 <== NOT EXECUTED
203c118: a0 10 00 01 mov %g1, %l0 <== NOT EXECUTED
203c11c: a2 10 00 02 mov %g2, %l1 <== NOT EXECUTED
203c120: 7f ff b0 ce call 2028458 <fat_file_ioctl> <== NOT EXECUTED
203c124: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
dir_offset * bts2rd,
&dir_pos->sname.cln);
if (rc != RC_OK)
203c128: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203c12c: 12 80 00 1b bne 203c198 <msdos_find_name_in_fat_file+0x250><== NOT EXECUTED
203c130: c8 07 a0 5c ld [ %fp + 0x5c ], %g4 <== NOT EXECUTED
return rc;
dir_pos->sname.ofs = dir_entry;
if (lfn_start.cln != FAT_FILE_SHORT_NAME)
203c134: d2 07 bf f4 ld [ %fp + -12 ], %o1 <== NOT EXECUTED
dir_offset * bts2rd,
&dir_pos->sname.cln);
if (rc != RC_OK)
return rc;
dir_pos->sname.ofs = dir_entry;
203c138: e2 21 20 04 st %l1, [ %g4 + 4 ] <== NOT EXECUTED
if (lfn_start.cln != FAT_FILE_SHORT_NAME)
203c13c: 80 a2 7f ff cmp %o1, -1 <== NOT EXECUTED
203c140: 02 80 00 0d be 203c174 <msdos_find_name_in_fat_file+0x22c><== NOT EXECUTED
203c144: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
{
rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
203c148: 7f ff 1a 91 call 2002b8c <.umul> <== NOT EXECUTED
203c14c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
203c150: d2 07 a0 48 ld [ %fp + 0x48 ], %o1 <== NOT EXECUTED
203c154: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
203c158: d0 07 a0 44 ld [ %fp + 0x44 ], %o0 <== NOT EXECUTED
203c15c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203c160: 7f ff b0 be call 2028458 <fat_file_ioctl> <== NOT EXECUTED
203c164: 98 07 bf f4 add %fp, -12, %o4 <== NOT EXECUTED
lfn_start.cln * bts2rd,
&lfn_start.cln);
if (rc != RC_OK)
203c168: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203c16c: 12 80 00 0b bne 203c198 <msdos_find_name_in_fat_file+0x250><== NOT EXECUTED
203c170: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
return rc;
}
dir_pos->lname.cln = lfn_start.cln;
203c174: c4 07 a0 5c ld [ %fp + 0x5c ], %g2 <== NOT EXECUTED
dir_pos->lname.ofs = lfn_start.ofs;
memcpy(name_dir_entry, entry,
203c178: d0 07 a0 60 ld [ %fp + 0x60 ], %o0 <== NOT EXECUTED
&lfn_start.cln);
if (rc != RC_OK)
return rc;
}
dir_pos->lname.cln = lfn_start.cln;
203c17c: c2 20 a0 08 st %g1, [ %g2 + 8 ] <== NOT EXECUTED
dir_pos->lname.ofs = lfn_start.ofs;
203c180: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
memcpy(name_dir_entry, entry,
203c184: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
if (rc != RC_OK)
return rc;
}
dir_pos->lname.cln = lfn_start.cln;
dir_pos->lname.ofs = lfn_start.ofs;
203c188: c2 20 a0 0c st %g1, [ %g2 + 0xc ] <== NOT EXECUTED
memcpy(name_dir_entry, entry,
203c18c: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED
203c190: 40 00 3f f9 call 204c174 <memcpy> <== NOT EXECUTED
203c194: b0 10 20 00 clr %i0 <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
return RC_OK;
203c198: 81 c7 e0 08 ret <== NOT EXECUTED
203c19c: 81 e8 00 00 restore <== NOT EXECUTED
empty_space_entry = 0;
read_cluster = true;
}
return 0;
}
203c1a0: 81 c7 e0 08 ret <== NOT EXECUTED
203c1a4: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
}
break;
}
else if (entry_empty)
{
if (create_node)
203c1a8: 22 80 00 07 be,a 203c1c4 <msdos_find_name_in_fat_file+0x27c><== NOT EXECUTED
203c1ac: 82 00 60 20 add %g1, 0x20, %g1 <== NOT EXECUTED
{
/*
* Remainder is not empty so is this entry empty ?
*/
empty_space_count++;
203c1b0: a4 04 a0 01 inc %l2 <== NOT EXECUTED
if (empty_space_count == (lfn_entries + 1))
203c1b4: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED
203c1b8: 22 80 00 02 be,a 203c1c0 <msdos_find_name_in_fat_file+0x278><== NOT EXECUTED
203c1bc: b4 10 20 01 mov 1, %i2 <== NOT EXECUTED
memcpy(name_dir_entry, entry,
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
return RC_OK;
}
lfn_start.cln = FAT_FILE_SHORT_NAME;
203c1c0: 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;
203c1c4: 84 20 40 0c sub %g1, %o4, %g2 <== NOT EXECUTED
203c1c8: 80 a4 c0 02 cmp %l3, %g2 <== NOT EXECUTED
203c1cc: 18 bf ff a2 bgu 203c054 <msdos_find_name_in_fat_file+0x10c><== NOT EXECUTED
203c1d0: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
203c1d4: c6 07 bf ec ld [ %fp + -20 ], %g3 <== NOT EXECUTED
}
if (remainder_empty)
break;
dir_offset++;
203c1d8: b6 06 e0 01 inc %i3 <== 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;
203c1dc: 86 00 c0 13 add %g3, %l3, %g3 <== NOT EXECUTED
203c1e0: 10 bf ff 8e b 203c018 <msdos_find_name_in_fat_file+0xd0> <== NOT EXECUTED
203c1e4: c6 27 bf ec st %g3, [ %fp + -20 ] <== 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 ||
203c1e8: 02 80 00 05 be 203c1fc <msdos_find_name_in_fat_file+0x2b4><== NOT EXECUTED
203c1ec: c6 07 bf f4 ld [ %fp + -12 ], %g3 <== NOT EXECUTED
memcpy(name_dir_entry, entry,
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
return RC_OK;
}
lfn_start.cln = FAT_FILE_SHORT_NAME;
203c1f0: fa 27 bf f4 st %i5, [ %fp + -12 ] <== NOT EXECUTED
203c1f4: 10 bf ff f3 b 203c1c0 <msdos_find_name_in_fat_file+0x278> <== NOT EXECUTED
203c1f8: a8 10 20 00 clr %l4 <== 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 ||
203c1fc: 80 a0 ff ff cmp %g3, -1 <== NOT EXECUTED
203c200: 32 bf ff fd bne,a 203c1f4 <msdos_find_name_in_fat_file+0x2ac><== NOT EXECUTED
203c204: fa 27 bf f4 st %i5, [ %fp + -12 ] <== NOT EXECUTED
((name_type == MSDOS_NAME_SHORT) &&
(lfn_start.cln == FAT_FILE_SHORT_NAME) &&
(memcmp(MSDOS_DIR_NAME(entry),
203c208: d2 07 a0 60 ld [ %fp + 0x60 ], %o1 <== NOT EXECUTED
203c20c: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
203c210: c2 27 bf dc st %g1, [ %fp + -36 ] <== NOT EXECUTED
203c214: c4 27 bf e0 st %g2, [ %fp + -32 ] <== NOT EXECUTED
203c218: d8 27 bf e4 st %o4, [ %fp + -28 ] <== NOT EXECUTED
203c21c: 40 00 3f a5 call 204c0b0 <memcmp> <== NOT EXECUTED
203c220: 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 ||
203c224: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED
203c228: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203c22c: c4 07 bf e0 ld [ %fp + -32 ], %g2 <== NOT EXECUTED
203c230: 02 bf ff b6 be 203c108 <msdos_find_name_in_fat_file+0x1c0><== NOT EXECUTED
203c234: d8 07 bf e4 ld [ %fp + -28 ], %o4 <== NOT EXECUTED
memcpy(name_dir_entry, entry,
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
return RC_OK;
}
lfn_start.cln = FAT_FILE_SHORT_NAME;
203c238: fa 27 bf f4 st %i5, [ %fp + -12 ] <== NOT EXECUTED
203c23c: 10 bf ff e1 b 203c1c0 <msdos_find_name_in_fat_file+0x278> <== NOT EXECUTED
203c240: a8 10 20 00 clr %l4 <== 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)
203c244: da 07 bf f4 ld [ %fp + -12 ], %o5 <== NOT EXECUTED
203c248: 80 a3 7f ff cmp %o5, -1 <== NOT EXECUTED
203c24c: 02 80 00 42 be 203c354 <msdos_find_name_in_fat_file+0x40c><== NOT EXECUTED
203c250: 88 10 00 17 mov %l7, %g4 <== 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) &
203c254: 86 08 e0 3f and %g3, 0x3f, %g3 <== NOT EXECUTED
203c258: 80 a0 c0 18 cmp %g3, %i0 <== NOT EXECUTED
203c25c: 22 80 00 05 be,a 203c270 <msdos_find_name_in_fat_file+0x328><== NOT EXECUTED
203c260: ee 08 60 0d ldub [ %g1 + 0xd ], %l7 <== NOT EXECUTED
(lfn_checksum != *MSDOS_DIR_LFN_CHECKSUM(entry)))
{
#if MSDOS_FIND_PRINT
printf ("MSFS:[4.4] no match\n");
#endif
lfn_start.cln = FAT_FILE_SHORT_NAME;
203c264: fa 27 bf f4 st %i5, [ %fp + -12 ] <== NOT EXECUTED
continue;
203c268: 10 bf ff d6 b 203c1c0 <msdos_find_name_in_fat_file+0x278> <== NOT EXECUTED
203c26c: ae 10 00 04 mov %g4, %l7 <== 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) &
203c270: 84 09 20 ff and %g4, 0xff, %g2 <== NOT EXECUTED
203c274: 9a 0d e0 ff and %l7, 0xff, %o5 <== NOT EXECUTED
203c278: 80 a3 40 02 cmp %o5, %g2 <== NOT EXECUTED
203c27c: 32 bf ff fb bne,a 203c268 <msdos_find_name_in_fat_file+0x320><== NOT EXECUTED
203c280: fa 27 bf f4 st %i5, [ %fp + -12 ] <== NOT EXECUTED
#endif
lfn_start.cln = FAT_FILE_SHORT_NAME;
continue;
}
lfn_entry--;
203c284: b0 06 3f ff add %i0, -1, %i0 <== NOT EXECUTED
o = lfn_entry * MSDOS_LFN_LEN_PER_ENTRY;
203c288: 89 2e 20 04 sll %i0, 4, %g4 <== NOT EXECUTED
203c28c: 85 2e 20 02 sll %i0, 2, %g2 <== NOT EXECUTED
203c290: 84 21 00 02 sub %g4, %g2, %g2 <== NOT EXECUTED
((o + i) != name_len))
lfn_start.cln = FAT_FILE_SHORT_NAME;
break;
}
if (((o + i) >= name_len) || (*p != name[o + i]))
203c294: c8 07 a0 50 ld [ %fp + 0x50 ], %g4 <== NOT EXECUTED
lfn_start.cln = FAT_FILE_SHORT_NAME;
continue;
}
lfn_entry--;
o = lfn_entry * MSDOS_LFN_LEN_PER_ENTRY;
203c298: 92 00 80 18 add %g2, %i0, %o1 <== NOT EXECUTED
203c29c: 9a 00 60 01 add %g1, 1, %o5 <== NOT EXECUTED
((o + i) != name_len))
lfn_start.cln = FAT_FILE_SHORT_NAME;
break;
}
if (((o + i) >= name_len) || (*p != name[o + i]))
203c2a0: 90 01 00 09 add %g4, %o1, %o0 <== 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')
203c2a4: c8 4b 40 00 ldsb [ %o5 ], %g4 <== NOT EXECUTED
lfn_start.cln = FAT_FILE_SHORT_NAME;
continue;
}
lfn_entry--;
o = lfn_entry * MSDOS_LFN_LEN_PER_ENTRY;
203c2a8: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
203c2ac: 84 10 20 00 clr %g2 <== 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')
203c2b0: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED
203c2b4: 02 80 00 16 be 203c30c <msdos_find_name_in_fat_file+0x3c4><== NOT EXECUTED
203c2b8: de 07 a0 54 ld [ %fp + 0x54 ], %o7 <== NOT EXECUTED
((o + i) != name_len))
lfn_start.cln = FAT_FILE_SHORT_NAME;
break;
}
if (((o + i) >= name_len) || (*p != name[o + i]))
203c2bc: 94 00 80 09 add %g2, %o1, %o2 <== NOT EXECUTED
203c2c0: 80 a3 c0 0a cmp %o7, %o2 <== NOT EXECUTED
203c2c4: 24 80 00 1c ble,a 203c334 <msdos_find_name_in_fat_file+0x3ec><== NOT EXECUTED
203c2c8: fa 27 bf f4 st %i5, [ %fp + -12 ] <== NOT EXECUTED
203c2cc: d4 4a 00 02 ldsb [ %o0 + %g2 ], %o2 <== NOT EXECUTED
203c2d0: 80 a1 00 0a cmp %g4, %o2 <== NOT EXECUTED
203c2d4: 12 80 00 17 bne 203c330 <msdos_find_name_in_fat_file+0x3e8><== NOT EXECUTED
203c2d8: 80 a0 a0 04 cmp %g2, 4 <== NOT EXECUTED
{
lfn_start.cln = FAT_FILE_SHORT_NAME;
break;
}
switch (i)
203c2dc: 02 80 00 28 be 203c37c <msdos_find_name_in_fat_file+0x434><== NOT EXECUTED
203c2e0: 80 a0 a0 0a cmp %g2, 0xa <== NOT EXECUTED
203c2e4: 02 80 00 2a be 203c38c <msdos_find_name_in_fat_file+0x444><== NOT EXECUTED
203c2e8: 80 a2 e0 0c cmp %o3, 0xc <== 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++)
203c2ec: 14 80 00 12 bg 203c334 <msdos_find_name_in_fat_file+0x3ec><== NOT EXECUTED
203c2f0: 84 00 a0 01 inc %g2 <== NOT EXECUTED
break;
case 10:
p += 4;
break;
default:
p += 2;
203c2f4: 9a 03 60 02 add %o5, 2, %o5 <== NOT EXECUTED
lfn_start.cln = FAT_FILE_SHORT_NAME;
continue;
}
lfn_entry--;
o = lfn_entry * MSDOS_LFN_LEN_PER_ENTRY;
203c2f8: 96 02 e0 01 inc %o3 <== 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')
203c2fc: c8 4b 40 00 ldsb [ %o5 ], %g4 <== NOT EXECUTED
203c300: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED
203c304: 12 bf ff ef bne 203c2c0 <msdos_find_name_in_fat_file+0x378><== NOT EXECUTED
203c308: 94 00 80 09 add %g2, %o1, %o2 <== 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) &&
203c30c: c8 07 bf e8 ld [ %fp + -24 ], %g4 <== NOT EXECUTED
203c310: 80 a1 00 03 cmp %g4, %g3 <== NOT EXECUTED
203c314: 12 80 00 09 bne 203c338 <msdos_find_name_in_fat_file+0x3f0><== NOT EXECUTED
203c318: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
203c31c: c6 07 a0 54 ld [ %fp + 0x54 ], %g3 <== NOT EXECUTED
203c320: 84 00 80 09 add %g2, %o1, %g2 <== NOT EXECUTED
203c324: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED
203c328: 02 80 00 04 be 203c338 <msdos_find_name_in_fat_file+0x3f0><== NOT EXECUTED
203c32c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
break;
}
if (((o + i) >= name_len) || (*p != name[o + i]))
{
lfn_start.cln = FAT_FILE_SHORT_NAME;
203c330: fa 27 bf f4 st %i5, [ %fp + -12 ] <== NOT EXECUTED
p += 2;
break;
}
}
lfn_matched = ((lfn_entry == 0) &&
203c334: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
203c338: 12 bf ff a2 bne 203c1c0 <msdos_find_name_in_fat_file+0x278><== NOT EXECUTED
203c33c: a8 10 20 00 clr %l4 <== NOT EXECUTED
* RC_OK on success, or error code if error occured (errno set
* appropriately)
*
*/
#define MSDOS_FIND_PRINT 0
int msdos_find_name_in_fat_file(
203c340: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED
203c344: 84 38 00 02 xnor %g0, %g2, %g2 <== NOT EXECUTED
203c348: 80 a0 00 02 cmp %g0, %g2 <== NOT EXECUTED
203c34c: 10 bf ff 9d b 203c1c0 <msdos_find_name_in_fat_file+0x278> <== NOT EXECUTED
203c350: a8 40 20 00 addx %g0, 0, %l4 <== NOT EXECUTED
/*
* The first entry must have the last long entry
* flag set.
*/
if ((*MSDOS_DIR_ENTRY_TYPE(entry) &
203c354: 80 88 e0 40 btst 0x40, %g3 <== NOT EXECUTED
203c358: 02 bf ff 9a be 203c1c0 <msdos_find_name_in_fat_file+0x278><== NOT EXECUTED
203c35c: a8 10 20 00 clr %l4 <== 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) &
203c360: c8 07 bf e8 ld [ %fp + -24 ], %g4 <== NOT EXECUTED
203c364: 86 08 e0 3f and %g3, 0x3f, %g3 <== NOT EXECUTED
203c368: 80 a0 c0 04 cmp %g3, %g4 <== NOT EXECUTED
203c36c: 22 80 00 34 be,a 203c43c <msdos_find_name_in_fat_file+0x4f4><== NOT EXECUTED
203c370: c4 27 bf f8 st %g2, [ %fp + -8 ] <== NOT EXECUTED
memcpy(name_dir_entry, entry,
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
return RC_OK;
}
lfn_start.cln = FAT_FILE_SHORT_NAME;
203c374: 10 bf ff 94 b 203c1c4 <msdos_find_name_in_fat_file+0x27c> <== NOT EXECUTED
203c378: 82 00 60 20 add %g1, 0x20, %g1 <== NOT EXECUTED
}
switch (i)
{
case 4:
p += 5;
203c37c: 9a 03 60 05 add %o5, 5, %o5 <== NOT EXECUTED
lfn_start.cln = FAT_FILE_SHORT_NAME;
continue;
}
lfn_entry--;
o = lfn_entry * MSDOS_LFN_LEN_PER_ENTRY;
203c380: 84 00 a0 01 inc %g2 <== NOT EXECUTED
203c384: 10 bf ff de b 203c2fc <msdos_find_name_in_fat_file+0x3b4> <== NOT EXECUTED
203c388: 96 02 e0 01 inc %o3 <== NOT EXECUTED
{
case 4:
p += 5;
break;
case 10:
p += 4;
203c38c: 9a 03 60 04 add %o5, 4, %o5 <== NOT EXECUTED
lfn_start.cln = FAT_FILE_SHORT_NAME;
continue;
}
lfn_entry--;
o = lfn_entry * MSDOS_LFN_LEN_PER_ENTRY;
203c390: 84 00 a0 01 inc %g2 <== NOT EXECUTED
203c394: 10 bf ff da b 203c2fc <msdos_find_name_in_fat_file+0x3b4> <== NOT EXECUTED
203c398: 96 02 e0 01 inc %o3 <== NOT EXECUTED
203c39c: 82 10 00 19 mov %i1, %g1 <== NOT EXECUTED
#endif
/*
* If just looking and there is no more entries in the
* directory - return name-not-found
*/
if (!create_node)
203c3a0: 80 a5 60 00 cmp %l5, 0 <== NOT EXECUTED
203c3a4: 02 80 00 75 be 203c578 <msdos_find_name_in_fat_file+0x630><== NOT EXECUTED
203c3a8: b2 10 00 10 mov %l0, %i1 <== 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)
203c3ac: 80 8e a0 ff btst 0xff, %i2 <== NOT EXECUTED
203c3b0: 12 80 00 07 bne 203c3cc <msdos_find_name_in_fat_file+0x484><== NOT EXECUTED
203c3b4: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
{
empty_space_count +=
203c3b8: a3 30 a0 05 srl %g2, 5, %l1 <== NOT EXECUTED
entries_per_block - (dir_entry / MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
203c3bc: 85 34 e0 05 srl %l3, 5, %g2 <== NOT EXECUTED
203c3c0: a4 04 80 02 add %l2, %g2, %l2 <== 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 +=
203c3c4: a4 24 80 11 sub %l2, %l1, %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)
203c3c8: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
203c3cc: 02 80 01 10 be 203c80c <msdos_find_name_in_fat_file+0x8c4><== NOT EXECUTED
203c3d0: c2 07 bf e8 ld [ %fp + -24 ], %g1 <== 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)
203c3d4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203c3d8: 02 80 00 12 be 203c420 <msdos_find_name_in_fat_file+0x4d8><== NOT EXECUTED
203c3dc: a8 10 20 00 clr %l4 <== NOT EXECUTED
203c3e0: 84 10 20 00 clr %g2 <== NOT EXECUTED
203c3e4: 82 10 20 00 clr %g1 <== NOT EXECUTED
203c3e8: a8 10 20 00 clr %l4 <== NOT EXECUTED
203c3ec: 10 80 00 06 b 203c404 <msdos_find_name_in_fat_file+0x4bc> <== NOT EXECUTED
203c3f0: c8 07 a0 60 ld [ %fp + 0x60 ], %g4 <== NOT EXECUTED
{
uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(name_dir_entry);
int i;
for (i = 0; i < 11; i++, p++)
lfn_checksum =
203c3f4: a8 0d 20 ff and %l4, 0xff, %l4 <== NOT EXECUTED
203c3f8: 82 0d 20 01 and %l4, 1, %g1 <== NOT EXECUTED
203c3fc: 82 20 00 01 neg %g1 <== NOT EXECUTED
203c400: 82 08 60 80 and %g1, 0x80, %g1 <== NOT EXECUTED
203c404: c6 09 00 02 ldub [ %g4 + %g2 ], %g3 <== NOT EXECUTED
203c408: a9 35 20 01 srl %l4, 1, %l4 <== NOT EXECUTED
203c40c: 82 00 40 03 add %g1, %g3, %g1 <== 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++)
203c410: 84 00 a0 01 inc %g2 <== NOT EXECUTED
203c414: 80 a0 a0 0b cmp %g2, 0xb <== NOT EXECUTED
203c418: 12 bf ff f7 bne 203c3f4 <msdos_find_name_in_fat_file+0x4ac><== NOT EXECUTED
203c41c: a8 00 40 14 add %g1, %l4, %l4 <== 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)
203c420: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
203c424: 12 80 00 15 bne 203c478 <msdos_find_name_in_fat_file+0x530><== NOT EXECUTED
203c428: 80 a7 00 1b cmp %i4, %i3 <== NOT EXECUTED
203c42c: a0 10 20 01 mov 1, %l0 <== NOT EXECUTED
203c430: ac 10 20 00 clr %l6 <== NOT EXECUTED
}
/*
* Have we read past the empty block ? If so go back and read it again.
*/
if (dir_offset != empty_space_offset)
203c434: 10 80 00 13 b 203c480 <msdos_find_name_in_fat_file+0x538> <== NOT EXECUTED
203c438: b8 10 00 1b mov %i3, %i4 <== NOT EXECUTED
continue;
/*
* Get the checksum of the short entry.
*/
lfn_start.cln = dir_offset;
203c43c: f6 27 bf f4 st %i3, [ %fp + -12 ] <== NOT EXECUTED
lfn_start.ofs = dir_entry;
lfn_entry = lfn_entries;
lfn_checksum = *MSDOS_DIR_LFN_CHECKSUM(entry);
203c440: f0 07 bf e8 ld [ %fp + -24 ], %i0 <== NOT EXECUTED
203c444: c8 08 60 0d ldub [ %g1 + 0xd ], %g4 <== NOT EXECUTED
203c448: c6 08 40 00 ldub [ %g1 ], %g3 <== NOT EXECUTED
203c44c: 10 bf ff 82 b 203c254 <msdos_find_name_in_fat_file+0x30c> <== NOT EXECUTED
203c450: a8 10 20 00 clr %l4 <== NOT EXECUTED
lfn_entries = 0;
else
lfn_entries =
((name_len - 1) + MSDOS_LFN_LEN_PER_ENTRY) / MSDOS_LFN_LEN_PER_ENTRY;
if (FAT_FD_OF_ROOT_DIR(fat_fd) &&
203c454: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203c458: 32 bf fe de bne,a 203bfd0 <msdos_find_name_in_fat_file+0x88><== NOT EXECUTED
203c45c: e6 16 60 06 lduh [ %i1 + 6 ], %l3 <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
203c460: c4 0e 60 0a ldub [ %i1 + 0xa ], %g2 <== NOT EXECUTED
203c464: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED
203c468: 22 bf fe da be,a 203bfd0 <msdos_find_name_in_fat_file+0x88><== NOT EXECUTED
203c46c: e6 16 60 06 lduh [ %i1 + 6 ], %l3 <== NOT EXECUTED
lfn_entries = 0;
else
lfn_entries =
((name_len - 1) + MSDOS_LFN_LEN_PER_ENTRY) / MSDOS_LFN_LEN_PER_ENTRY;
if (FAT_FD_OF_ROOT_DIR(fat_fd) &&
203c470: 10 bf fe d8 b 203bfd0 <msdos_find_name_in_fat_file+0x88> <== NOT EXECUTED
203c474: e6 00 e0 18 ld [ %g3 + 0x18 ], %l3 <== NOT EXECUTED
}
/*
* Have we read past the empty block ? If so go back and read it again.
*/
if (dir_offset != empty_space_offset)
203c478: 02 80 01 21 be 203c8fc <msdos_find_name_in_fat_file+0x9b4><== NOT EXECUTED
203c47c: a0 10 20 01 mov 1, %l0 <== NOT EXECUTED
#endif
/*
* The one more is the short entry.
*/
while (lfn_entry < (lfn_entries + 1))
203c480: c4 07 bf e8 ld [ %fp + -24 ], %g2 <== NOT EXECUTED
203c484: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203c488: 06 bf ff 46 bl 203c1a0 <msdos_find_name_in_fat_file+0x258><== NOT EXECUTED
203c48c: 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,
203c490: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
read_cluster = true;
/*
* Handle the entry writes.
*/
lfn_start.cln = lfn_start.ofs = FAT_FILE_SHORT_NAME;
203c494: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED
203c498: 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,
203c49c: 7f ff 19 bc call 2002b8c <.umul> <== NOT EXECUTED
203c4a0: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
length, lfn_entry);
#endif
/*
* Time to write the short file name entry.
*/
if (lfn_entry == (lfn_entries + 1))
203c4a4: c6 07 bf e8 ld [ %fp + -24 ], %g3 <== NOT EXECUTED
dir_pos->sname.ofs = dir_entry;
if (lfn_start.cln != FAT_FILE_SHORT_NAME)
{
rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
203c4a8: f0 07 a0 48 ld [ %fp + 0x48 ], %i0 <== 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,
203c4ac: b6 10 20 00 clr %i3 <== NOT EXECUTED
203c4b0: ba 10 00 08 mov %o0, %i5 <== NOT EXECUTED
length, lfn_entry);
#endif
/*
* Time to write the short file name entry.
*/
if (lfn_entry == (lfn_entries + 1))
203c4b4: ae 00 e0 01 add %g3, 1, %l7 <== NOT EXECUTED
*/
while (lfn_entry < (lfn_entries + 1))
{
int length = 0;
if (read_cluster)
203c4b8: 80 8c 20 ff btst 0xff, %l0 <== NOT EXECUTED
203c4bc: 02 80 00 34 be 203c58c <msdos_find_name_in_fat_file+0x644><== NOT EXECUTED
203c4c0: b4 10 00 1d mov %i5, %i2 <== 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,
203c4c4: d8 06 60 9c ld [ %i1 + 0x9c ], %o4 <== NOT EXECUTED
203c4c8: d0 07 a0 44 ld [ %fp + 0x44 ], %o0 <== NOT EXECUTED
203c4cc: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
203c4d0: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
203c4d4: 7f ff b1 70 call 2028a94 <fat_file_read> <== NOT EXECUTED
203c4d8: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
(empty_space_offset * bts2rd), bts2rd,
fs_info->cl_buf);
if (ret != bts2rd)
203c4dc: 80 a2 00 13 cmp %o0, %l3 <== NOT EXECUTED
203c4e0: 02 80 00 2a be 203c588 <msdos_find_name_in_fat_file+0x640><== NOT EXECUTED
203c4e4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
{
if (ret != FAT_EOF)
203c4e8: 12 80 00 1a bne 203c550 <msdos_find_name_in_fat_file+0x608><== NOT EXECUTED
203c4ec: d0 07 a0 44 ld [ %fp + 0x44 ], %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,
203c4f0: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
203c4f4: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
203c4f8: 7f ff b0 4f call 2028634 <fat_file_extend> <== NOT EXECUTED
203c4fc: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
&new_length);
if (ret != RC_OK)
203c500: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203c504: 12 80 00 f4 bne 203c8d4 <msdos_find_name_in_fat_file+0x98c><== NOT EXECUTED
203c508: f4 07 bf fc ld [ %fp + -4 ], %i2 <== 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))
203c50c: 80 a6 80 1d cmp %i2, %i5 <== NOT EXECUTED
203c510: 12 80 00 10 bne 203c550 <msdos_find_name_in_fat_file+0x608><== NOT EXECUTED
203c514: 92 10 20 00 clr %o1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
memset(fs_info->cl_buf, 0, bts2rd);
203c518: d0 06 60 9c ld [ %i1 + 0x9c ], %o0 <== NOT EXECUTED
203c51c: 40 00 3f a9 call 204c3c0 <memset> <== NOT EXECUTED
203c520: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
ret = fat_file_write(mt_entry, fat_fd,
203c524: d0 07 a0 44 ld [ %fp + 0x44 ], %o0 <== NOT EXECUTED
203c528: d8 06 60 9c ld [ %i1 + 0x9c ], %o4 <== NOT EXECUTED
203c52c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
203c530: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
203c534: 7f ff b0 bc call 2028824 <fat_file_write> <== NOT EXECUTED
203c538: 96 10 00 13 mov %l3, %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)
203c53c: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED
203c540: 02 80 00 db be 203c8ac <msdos_find_name_in_fat_file+0x964><== NOT EXECUTED
203c544: 80 a2 00 13 cmp %o0, %l3 <== NOT EXECUTED
return ret;
else if (ret != bts2rd)
203c548: 02 80 00 12 be 203c590 <msdos_find_name_in_fat_file+0x648><== NOT EXECUTED
203c54c: 80 a4 c0 16 cmp %l3, %l6 <== NOT EXECUTED
(empty_space_offset * bts2rd) + empty_space_entry,
length, fs_info->cl_buf + empty_space_entry);
if (ret == -1)
return ret;
else if (ret != length)
rtems_set_errno_and_return_minus_one(EIO);
203c550: 40 00 31 bd call 2048c44 <__errno> <== NOT EXECUTED
203c554: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203c558: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203c55c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203c560: 81 c7 e0 08 ret <== NOT EXECUTED
203c564: 81 e8 00 00 restore <== NOT EXECUTED
203c568: 82 10 00 19 mov %i1, %g1 <== NOT EXECUTED
}
/*
* If we are not to create the entry return a not found error.
*/
if (!create_node)
203c56c: 80 a5 60 00 cmp %l5, 0 <== NOT EXECUTED
203c570: 12 bf ff 96 bne 203c3c8 <msdos_find_name_in_fat_file+0x480><== NOT EXECUTED
203c574: b2 10 00 10 mov %l0, %i1 <== NOT EXECUTED
if (ret == -1)
return ret;
else if (ret != length)
rtems_set_errno_and_return_minus_one(EIO);
empty_space_offset++;
203c578: 31 00 00 1f sethi %hi(0x7c00), %i0 <== NOT EXECUTED
203c57c: b0 16 21 01 or %i0, 0x101, %i0 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
203c580: 81 c7 e0 08 ret <== NOT EXECUTED
203c584: 81 e8 00 00 restore <== 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)
203c588: b4 10 00 1d mov %i5, %i2 <== NOT EXECUTED
#if MSDOS_FIND_PRINT
printf ("MSFS:[10] eso:%li\n", empty_space_offset);
#endif
for (dir_entry = empty_space_entry;
203c58c: 80 a4 c0 16 cmp %l3, %l6 <== NOT EXECUTED
203c590: 08 80 00 9b bleu 203c7fc <msdos_find_name_in_fat_file+0x8b4><== NOT EXECUTED
203c594: a2 10 00 16 mov %l6, %l1 <== NOT EXECUTED
dir_entry < bts2rd;
dir_entry += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
{
char* entry = (char*) fs_info->cl_buf + dir_entry;
203c598: e0 06 60 9c ld [ %i1 + 0x9c ], %l0 <== NOT EXECUTED
char* p;
const char* n;
int i;
length += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;
lfn_entry++;
203c59c: a4 06 e0 01 add %i3, 1, %l2 <== 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;
203c5a0: a0 04 00 16 add %l0, %l6, %l0 <== NOT EXECUTED
length, lfn_entry);
#endif
/*
* Time to write the short file name entry.
*/
if (lfn_entry == (lfn_entries + 1))
203c5a4: 80 a5 c0 12 cmp %l7, %l2 <== NOT EXECUTED
203c5a8: 02 80 00 50 be 203c6e8 <msdos_find_name_in_fat_file+0x7a0><== NOT EXECUTED
203c5ac: aa 10 20 20 mov 0x20, %l5 <== NOT EXECUTED
dir_pos->lname.ofs = lfn_start.ofs;
/* write new node entry */
memcpy (entry, (uint8_t *) name_dir_entry,
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
break;
203c5b0: c6 07 bf e8 ld [ %fp + -24 ], %g3 <== NOT EXECUTED
203c5b4: c8 07 a0 50 ld [ %fp + 0x50 ], %g4 <== NOT EXECUTED
203c5b8: 82 38 00 1b xnor %g0, %i3, %g1 <== NOT EXECUTED
203c5bc: a2 10 00 16 mov %l6, %l1 <== NOT EXECUTED
203c5c0: 82 00 40 03 add %g1, %g3, %g1 <== NOT EXECUTED
203c5c4: f0 27 bf ec st %i0, [ %fp + -20 ] <== NOT EXECUTED
203c5c8: 85 28 60 02 sll %g1, 2, %g2 <== NOT EXECUTED
203c5cc: 87 28 60 04 sll %g1, 4, %g3 <== NOT EXECUTED
203c5d0: b0 10 00 16 mov %l6, %i0 <== NOT EXECUTED
203c5d4: 84 20 c0 02 sub %g3, %g2, %g2 <== NOT EXECUTED
203c5d8: ac 10 00 13 mov %l3, %l6 <== NOT EXECUTED
203c5dc: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
203c5e0: b6 25 c0 12 sub %l7, %l2, %i3 <== NOT EXECUTED
203c5e4: 82 01 00 01 add %g4, %g1, %g1 <== NOT EXECUTED
203c5e8: aa 10 20 20 mov 0x20, %l5 <== NOT EXECUTED
203c5ec: a6 10 00 01 mov %g1, %l3 <== 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)
203c5f0: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
203c5f4: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED
203c5f8: 22 80 00 72 be,a 203c7c0 <msdos_find_name_in_fat_file+0x878><== NOT EXECUTED
203c5fc: f8 27 bf f4 st %i4, [ %fp + -12 ] <== NOT EXECUTED
}
/*
* Clear the entry before loading the data.
*/
memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
203c600: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203c604: 92 10 20 00 clr %o1 <== NOT EXECUTED
203c608: 40 00 3f 6e call 204c3c0 <memset> <== NOT EXECUTED
203c60c: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED
*MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;
p = entry + 1;
203c610: 82 10 00 13 mov %l3, %g1 <== NOT EXECUTED
/*
* Clear the entry before loading the data.
*/
memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
*MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;
203c614: e8 2c 20 0d stb %l4, [ %l0 + 0xd ] <== NOT EXECUTED
p = entry + 1;
n = name + (lfn_entries - lfn_entry) * MSDOS_LFN_LEN_PER_ENTRY;
for (i = 0; i < MSDOS_LFN_LEN_PER_ENTRY; i++)
{
*p = *n;
203c618: da 08 40 00 ldub [ %g1 ], %o5 <== NOT EXECUTED
*/
memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
*MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;
p = entry + 1;
203c61c: 86 04 20 01 add %l0, 1, %g3 <== 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;
203c620: da 28 c0 00 stb %o5, [ %g3 ] <== NOT EXECUTED
if (*n != 0)
203c624: da 48 40 00 ldsb [ %g1 ], %o5 <== NOT EXECUTED
*/
memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
*MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;
p = entry + 1;
203c628: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
for (i = 0; i < MSDOS_LFN_LEN_PER_ENTRY; i++)
{
*p = *n;
if (*n != 0)
n++;
203c62c: 80 a0 00 0d cmp %g0, %o5 <== NOT EXECUTED
*/
memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
*MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;
p = entry + 1;
203c630: 88 00 bf ff add %g2, -1, %g4 <== NOT EXECUTED
for (i = 0; i < MSDOS_LFN_LEN_PER_ENTRY; i++)
{
*p = *n;
if (*n != 0)
n++;
203c634: 82 40 00 01 addx %g0, %g1, %g1 <== NOT EXECUTED
switch (i)
203c638: 80 a1 20 04 cmp %g4, 4 <== NOT EXECUTED
203c63c: 22 80 00 12 be,a 203c684 <msdos_find_name_in_fat_file+0x73c><== NOT EXECUTED
203c640: 86 00 e0 05 add %g3, 5, %g3 <== NOT EXECUTED
203c644: 80 a1 20 0a cmp %g4, 0xa <== NOT EXECUTED
203c648: 02 80 00 11 be 203c68c <msdos_find_name_in_fat_file+0x744><== NOT EXECUTED
203c64c: 80 a0 a0 0c cmp %g2, 0xc <== 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++)
203c650: 14 80 00 12 bg 203c698 <msdos_find_name_in_fat_file+0x750><== NOT EXECUTED
203c654: 86 00 e0 02 add %g3, 2, %g3 <== NOT EXECUTED
*/
memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
*MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;
p = entry + 1;
203c658: 84 00 a0 01 inc %g2 <== 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;
203c65c: da 08 40 00 ldub [ %g1 ], %o5 <== NOT EXECUTED
*/
memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
*MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;
p = entry + 1;
203c660: 88 00 bf ff add %g2, -1, %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;
203c664: da 28 c0 00 stb %o5, [ %g3 ] <== NOT EXECUTED
if (*n != 0)
203c668: da 48 40 00 ldsb [ %g1 ], %o5 <== NOT EXECUTED
n++;
203c66c: 80 a0 00 0d cmp %g0, %o5 <== NOT EXECUTED
203c670: 82 40 00 01 addx %g0, %g1, %g1 <== NOT EXECUTED
switch (i)
203c674: 80 a1 20 04 cmp %g4, 4 <== NOT EXECUTED
203c678: 12 bf ff f4 bne 203c648 <msdos_find_name_in_fat_file+0x700><== NOT EXECUTED
203c67c: 80 a1 20 0a cmp %g4, 0xa <== NOT EXECUTED
{
case 4:
p += 5;
203c680: 86 00 e0 05 add %g3, 5, %g3 <== NOT EXECUTED
*/
memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
*MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;
p = entry + 1;
203c684: 10 bf ff f6 b 203c65c <msdos_find_name_in_fat_file+0x714> <== NOT EXECUTED
203c688: 84 00 a0 01 inc %g2 <== NOT EXECUTED
{
case 4:
p += 5;
break;
case 10:
p += 4;
203c68c: 86 00 e0 04 add %g3, 4, %g3 <== NOT EXECUTED
*/
memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
*MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;
p = entry + 1;
203c690: 10 bf ff f3 b 203c65c <msdos_find_name_in_fat_file+0x714> <== NOT EXECUTED
203c694: 84 00 a0 01 inc %g2 <== NOT EXECUTED
break;
}
}
*MSDOS_DIR_ENTRY_TYPE(entry) = (lfn_entries - lfn_entry) + 1;
if (lfn_entry == 1)
203c698: 80 a4 a0 01 cmp %l2, 1 <== NOT EXECUTED
203c69c: 02 80 00 4b be 203c7c8 <msdos_find_name_in_fat_file+0x880><== NOT EXECUTED
203c6a0: f6 2c 00 00 stb %i3, [ %l0 ] <== NOT EXECUTED
*MSDOS_DIR_ENTRY_TYPE(entry) |= MSDOS_LAST_LONG_ENTRY;
*MSDOS_DIR_ATTR(entry) |= MSDOS_ATTR_LFN;
203c6a4: c2 0c 20 0b ldub [ %l0 + 0xb ], %g1 <== 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)
203c6a8: a2 04 60 20 add %l1, 0x20, %l1 <== 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;
203c6ac: 82 10 60 0f or %g1, 0xf, %g1 <== NOT EXECUTED
#if MSDOS_FIND_PRINT
printf ("MSFS:[10] eso:%li\n", empty_space_offset);
#endif
for (dir_entry = empty_space_entry;
203c6b0: 80 a5 80 11 cmp %l6, %l1 <== NOT EXECUTED
203c6b4: 08 80 00 4d bleu 203c7e8 <msdos_find_name_in_fat_file+0x8a0><== NOT EXECUTED
203c6b8: c2 2c 20 0b stb %g1, [ %l0 + 0xb ] <== NOT EXECUTED
dir_entry < bts2rd;
dir_entry += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
{
char* entry = (char*) fs_info->cl_buf + dir_entry;
203c6bc: e0 06 60 9c ld [ %i1 + 0x9c ], %l0 <== NOT EXECUTED
char* p;
const char* n;
int i;
length += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;
lfn_entry++;
203c6c0: a4 04 a0 01 inc %l2 <== 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;
203c6c4: a0 04 00 11 add %l0, %l1, %l0 <== NOT EXECUTED
char* p;
const char* n;
int i;
length += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;
203c6c8: aa 05 60 20 add %l5, 0x20, %l5 <== NOT EXECUTED
lfn_entry++;
203c6cc: a6 04 ff f3 add %l3, -13, %l3 <== NOT EXECUTED
length, lfn_entry);
#endif
/*
* Time to write the short file name entry.
*/
if (lfn_entry == (lfn_entries + 1))
203c6d0: 80 a4 80 17 cmp %l2, %l7 <== NOT EXECUTED
203c6d4: 12 bf ff c7 bne 203c5f0 <msdos_find_name_in_fat_file+0x6a8><== NOT EXECUTED
203c6d8: b6 06 ff ff add %i3, -1, %i3 <== NOT EXECUTED
203c6dc: a6 10 00 16 mov %l6, %l3 <== NOT EXECUTED
203c6e0: ac 10 00 18 mov %i0, %l6 <== NOT EXECUTED
203c6e4: f0 07 bf ec ld [ %fp + -20 ], %i0 <== NOT EXECUTED
{
/* get current cluster number */
int rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
203c6e8: d0 07 a0 44 ld [ %fp + 0x44 ], %o0 <== NOT EXECUTED
203c6ec: d8 07 a0 5c ld [ %fp + 0x5c ], %o4 <== NOT EXECUTED
203c6f0: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
203c6f4: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203c6f8: 7f ff af 58 call 2028458 <fat_file_ioctl> <== NOT EXECUTED
203c6fc: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
empty_space_offset * bts2rd,
&dir_pos->sname.cln);
if (rc != RC_OK)
203c700: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203c704: 12 80 00 74 bne 203c8d4 <msdos_find_name_in_fat_file+0x98c><== NOT EXECUTED
203c708: c8 07 a0 5c ld [ %fp + 0x5c ], %g4 <== NOT EXECUTED
return rc;
dir_pos->sname.ofs = dir_entry;
if (lfn_start.cln != FAT_FILE_SHORT_NAME)
203c70c: d2 07 bf f4 ld [ %fp + -12 ], %o1 <== NOT EXECUTED
empty_space_offset * bts2rd,
&dir_pos->sname.cln);
if (rc != RC_OK)
return rc;
dir_pos->sname.ofs = dir_entry;
203c710: e2 21 20 04 st %l1, [ %g4 + 4 ] <== NOT EXECUTED
if (lfn_start.cln != FAT_FILE_SHORT_NAME)
203c714: 80 a2 7f ff cmp %o1, -1 <== NOT EXECUTED
203c718: 02 80 00 0d be 203c74c <msdos_find_name_in_fat_file+0x804><== NOT EXECUTED
203c71c: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
{
rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
203c720: 7f ff 19 1b call 2002b8c <.umul> <== NOT EXECUTED
203c724: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
203c728: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
203c72c: d0 07 a0 44 ld [ %fp + 0x44 ], %o0 <== NOT EXECUTED
203c730: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
203c734: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203c738: 7f ff af 48 call 2028458 <fat_file_ioctl> <== NOT EXECUTED
203c73c: 98 07 bf f4 add %fp, -12, %o4 <== NOT EXECUTED
lfn_start.cln * bts2rd,
&lfn_start.cln);
if (rc != RC_OK)
203c740: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203c744: 12 80 00 64 bne 203c8d4 <msdos_find_name_in_fat_file+0x98c><== NOT EXECUTED
203c748: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
return rc;
}
dir_pos->lname.cln = lfn_start.cln;
203c74c: c4 07 a0 5c ld [ %fp + 0x5c ], %g2 <== NOT EXECUTED
dir_pos->lname.ofs = lfn_start.ofs;
/* write new node entry */
memcpy (entry, (uint8_t *) name_dir_entry,
203c750: d2 07 a0 60 ld [ %fp + 0x60 ], %o1 <== NOT EXECUTED
&lfn_start.cln);
if (rc != RC_OK)
return rc;
}
dir_pos->lname.cln = lfn_start.cln;
203c754: c2 20 a0 08 st %g1, [ %g2 + 8 ] <== NOT EXECUTED
dir_pos->lname.ofs = lfn_start.ofs;
203c758: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
/* write new node entry */
memcpy (entry, (uint8_t *) name_dir_entry,
203c75c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc != RC_OK)
return rc;
}
dir_pos->lname.cln = lfn_start.cln;
dir_pos->lname.ofs = lfn_start.ofs;
203c760: c2 20 a0 0c st %g1, [ %g2 + 0xc ] <== NOT EXECUTED
/* write new node entry */
memcpy (entry, (uint8_t *) name_dir_entry,
203c764: 40 00 3e 84 call 204c174 <memcpy> <== NOT EXECUTED
203c768: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED
203c76c: a4 10 00 17 mov %l7, %l2 <== NOT EXECUTED
203c770: 96 10 00 15 mov %l5, %o3 <== 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,
203c774: d8 06 60 9c ld [ %i1 + 0x9c ], %o4 <== NOT EXECUTED
203c778: d0 07 a0 44 ld [ %fp + 0x44 ], %o0 <== NOT EXECUTED
203c77c: 94 06 80 16 add %i2, %l6, %o2 <== NOT EXECUTED
203c780: 98 03 00 16 add %o4, %l6, %o4 <== NOT EXECUTED
203c784: 7f ff b0 28 call 2028824 <fat_file_write> <== NOT EXECUTED
203c788: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
(empty_space_offset * bts2rd) + empty_space_entry,
length, fs_info->cl_buf + empty_space_entry);
if (ret == -1)
203c78c: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED
203c790: 02 80 00 47 be 203c8ac <msdos_find_name_in_fat_file+0x964><== NOT EXECUTED
203c794: 80 a5 40 08 cmp %l5, %o0 <== NOT EXECUTED
return ret;
else if (ret != length)
203c798: 12 bf ff 6e bne 203c550 <msdos_find_name_in_fat_file+0x608><== NOT EXECUTED
203c79c: c2 07 bf e8 ld [ %fp + -24 ], %g1 <== NOT EXECUTED
#endif
/*
* The one more is the short entry.
*/
while (lfn_entry < (lfn_entries + 1))
203c7a0: 80 a0 40 12 cmp %g1, %l2 <== NOT EXECUTED
203c7a4: 06 bf fe 7f bl 203c1a0 <msdos_find_name_in_fat_file+0x258><== NOT EXECUTED
203c7a8: ba 07 40 13 add %i5, %l3, %i5 <== NOT EXECUTED
if (ret == -1)
return ret;
else if (ret != length)
rtems_set_errno_and_return_minus_one(EIO);
empty_space_offset++;
203c7ac: b8 07 20 01 inc %i4 <== NOT EXECUTED
203c7b0: b6 10 00 12 mov %l2, %i3 <== NOT EXECUTED
203c7b4: ac 10 20 00 clr %l6 <== NOT EXECUTED
203c7b8: 10 bf ff 40 b 203c4b8 <msdos_find_name_in_fat_file+0x570> <== NOT EXECUTED
203c7bc: a0 10 20 01 mov 1, %l0 <== NOT EXECUTED
* the location of the long file name.
*/
if (lfn_start.cln == FAT_FILE_SHORT_NAME)
{
lfn_start.cln = empty_space_offset;
lfn_start.ofs = dir_entry;
203c7c0: 10 bf ff 90 b 203c600 <msdos_find_name_in_fat_file+0x6b8> <== NOT EXECUTED
203c7c4: e2 27 bf f8 st %l1, [ %fp + -8 ] <== 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;
203c7c8: 82 16 e0 40 or %i3, 0x40, %g1 <== NOT EXECUTED
203c7cc: c2 2c 00 00 stb %g1, [ %l0 ] <== NOT EXECUTED
*MSDOS_DIR_ATTR(entry) |= MSDOS_ATTR_LFN;
203c7d0: c2 0c 20 0b ldub [ %l0 + 0xb ], %g1 <== 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)
203c7d4: a2 04 60 20 add %l1, 0x20, %l1 <== 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;
203c7d8: 82 10 60 0f or %g1, 0xf, %g1 <== NOT EXECUTED
#if MSDOS_FIND_PRINT
printf ("MSFS:[10] eso:%li\n", empty_space_offset);
#endif
for (dir_entry = empty_space_entry;
203c7dc: 80 a5 80 11 cmp %l6, %l1 <== NOT EXECUTED
203c7e0: 18 bf ff b7 bgu 203c6bc <msdos_find_name_in_fat_file+0x774><== NOT EXECUTED
203c7e4: c2 2c 20 0b stb %g1, [ %l0 + 0xb ] <== NOT EXECUTED
203c7e8: a6 10 00 16 mov %l6, %l3 <== NOT EXECUTED
203c7ec: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
203c7f0: ac 10 00 18 mov %i0, %l6 <== NOT EXECUTED
203c7f4: 10 bf ff e0 b 203c774 <msdos_find_name_in_fat_file+0x82c> <== NOT EXECUTED
203c7f8: f0 07 bf ec ld [ %fp + -20 ], %i0 <== NOT EXECUTED
203c7fc: a4 10 00 1b mov %i3, %l2 <== NOT EXECUTED
203c800: 96 10 20 00 clr %o3 <== NOT EXECUTED
203c804: 10 bf ff dc b 203c774 <msdos_find_name_in_fat_file+0x82c> <== NOT EXECUTED
203c808: aa 10 20 00 clr %l5 <== 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;
203c80c: c8 07 bf e8 ld [ %fp + -24 ], %g4 <== NOT EXECUTED
203c810: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
203c814: a0 01 20 01 add %g4, 1, %l0 <== NOT EXECUTED
203c818: 7f ff 18 dd call 2002b8c <.umul> <== NOT EXECUTED
203c81c: 92 10 00 13 mov %l3, %o1 <== 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 = '~';
203c820: c8 07 a0 60 ld [ %fp + 0x60 ], %g4 <== 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;
203c824: 82 02 00 16 add %o0, %l6, %g1 <== NOT EXECUTED
203c828: 83 30 60 05 srl %g1, 5, %g1 <== 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 = '~';
203c82c: 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;
203c830: a0 04 00 01 add %l0, %g1, %l0 <== NOT EXECUTED
203c834: 82 10 20 00 clr %g1 <== 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 == '.'))
203c838: c4 49 00 01 ldsb [ %g4 + %g1 ], %g2 <== NOT EXECUTED
203c83c: 80 a0 a0 2e cmp %g2, 0x2e <== NOT EXECUTED
203c840: 22 80 00 05 be,a 203c854 <msdos_find_name_in_fat_file+0x90c><== NOT EXECUTED
203c844: c6 29 00 01 stb %g3, [ %g4 + %g1 ] <== NOT EXECUTED
203c848: 80 a0 a0 20 cmp %g2, 0x20 <== NOT EXECUTED
203c84c: 22 80 00 02 be,a 203c854 <msdos_find_name_in_fat_file+0x90c><== NOT EXECUTED
203c850: c6 29 00 01 stb %g3, [ %g4 + %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++)
203c854: 82 00 60 01 inc %g1 <== NOT EXECUTED
203c858: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED
203c85c: 32 bf ff f8 bne,a 203c83c <msdos_find_name_in_fat_file+0x8f4><== NOT EXECUTED
203c860: c4 49 00 01 ldsb [ %g4 + %g1 ], %g2 <== NOT EXECUTED
if ((*c == ' ') || (*c == '.'))
*c = '~';
*c++ = '~';
203c864: c4 07 a0 60 ld [ %fp + 0x60 ], %g2 <== NOT EXECUTED
203c868: 03 00 81 b2 sethi %hi(0x206c800), %g1 <== NOT EXECUTED
203c86c: c6 00 60 d4 ld [ %g1 + 0xd4 ], %g3 ! 206c8d4 <hex.7058> <== NOT EXECUTED
203c870: 82 10 20 7e mov 0x7e, %g1 <== NOT EXECUTED
203c874: c2 28 a0 03 stb %g1, [ %g2 + 3 ] <== NOT EXECUTED
203c878: c8 07 a0 60 ld [ %fp + 0x60 ], %g4 <== NOT EXECUTED
203c87c: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
203c880: 84 01 20 04 add %g4, 4, %g2 <== NOT EXECUTED
for (i = 0; i < 4; i++, c++)
*c = hex[(num >> ((3 - i) * 4)) & 0xf];
203c884: 89 3c 00 01 sra %l0, %g1, %g4 <== NOT EXECUTED
203c888: 88 09 20 0f and %g4, 0xf, %g4 <== NOT EXECUTED
203c88c: 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++)
203c890: 82 00 7f fc add %g1, -4, %g1 <== NOT EXECUTED
*c = hex[(num >> ((3 - i) * 4)) & 0xf];
203c894: 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++)
203c898: 80 a0 7f fc cmp %g1, -4 <== NOT EXECUTED
203c89c: 12 bf ff fa bne 203c884 <msdos_find_name_in_fat_file+0x93c><== NOT EXECUTED
203c8a0: 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)
203c8a4: 10 bf fe cc b 203c3d4 <msdos_find_name_in_fat_file+0x48c> <== NOT EXECUTED
203c8a8: c2 07 bf e8 ld [ %fp + -24 ], %g1 <== NOT EXECUTED
if (ret == -1)
return ret;
else if (ret != length)
rtems_set_errno_and_return_minus_one(EIO);
empty_space_offset++;
203c8ac: 81 c7 e0 08 ret <== NOT EXECUTED
203c8b0: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
#endif
if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
rtems_set_errno_and_return_minus_one(EIO);
assert(ret == bts2rd);
203c8b4: 11 00 81 b1 sethi %hi(0x206c400), %o0 <== NOT EXECUTED
203c8b8: 15 00 81 b2 sethi %hi(0x206c800), %o2 <== NOT EXECUTED
203c8bc: 17 00 81 b1 sethi %hi(0x206c400), %o3 <== NOT EXECUTED
203c8c0: 90 12 23 88 or %o0, 0x388, %o0 <== NOT EXECUTED
203c8c4: 94 12 a0 b8 or %o2, 0xb8, %o2 <== NOT EXECUTED
203c8c8: 96 12 e3 e0 or %o3, 0x3e0, %o3 <== NOT EXECUTED
203c8cc: 7f ff bd 9f call 202bf48 <__assert_func> <== NOT EXECUTED
203c8d0: 92 10 24 49 mov 0x449, %o1 <== NOT EXECUTED
if (lfn_start.cln != FAT_FILE_SHORT_NAME)
{
rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
lfn_start.cln * bts2rd,
&lfn_start.cln);
if (rc != RC_OK)
203c8d4: 81 c7 e0 08 ret <== NOT EXECUTED
203c8d8: 91 e8 00 08 restore %g0, %o0, %o0 <== 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);
203c8dc: 11 00 81 b1 sethi %hi(0x206c400), %o0 <== NOT EXECUTED
203c8e0: 15 00 81 b2 sethi %hi(0x206c800), %o2 <== NOT EXECUTED
203c8e4: 17 00 81 b1 sethi %hi(0x206c400), %o3 <== NOT EXECUTED
203c8e8: 90 12 23 88 or %o0, 0x388, %o0 <== NOT EXECUTED
203c8ec: 94 12 a0 b8 or %o2, 0xb8, %o2 <== NOT EXECUTED
203c8f0: 96 12 e3 f0 or %o3, 0x3f0, %o3 <== NOT EXECUTED
203c8f4: 7f ff bd 95 call 202bf48 <__assert_func> <== NOT EXECUTED
203c8f8: 92 10 24 19 mov 0x419, %o1 <== NOT EXECUTED
}
/*
* Have we read past the empty block ? If so go back and read it again.
*/
if (dir_offset != empty_space_offset)
203c8fc: a0 10 20 00 clr %l0 <== NOT EXECUTED
203c900: 10 bf fe e0 b 203c480 <msdos_find_name_in_fat_file+0x538> <== NOT EXECUTED
203c904: b8 10 00 1b mov %i3, %i4 <== NOT EXECUTED
0203bdbc <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
)
{
203bdbc: 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) &&
203bdc0: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
203bdc4: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
203bdc8: 02 80 00 36 be 203bea0 <msdos_find_node_by_cluster_num_in_fat_file+0xe4><== NOT EXECUTED
203bdcc: e8 06 20 34 ld [ %i0 + 0x34 ], %l4 <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
bts2rd = fat_fd->fat_file_size;
else
bts2rd = fs_info->fat.vol.bpc;
203bdd0: e6 15 20 06 lduh [ %l4 + 6 ], %l3 <== 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) &&
203bdd4: d8 05 20 9c ld [ %l4 + 0x9c ], %o4 <== 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)
203bdd8: 25 00 00 3f sethi %hi(0xfc00), %l2 <== 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) &&
203bddc: aa 10 20 00 clr %l5 <== 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)
203bde0: a4 14 a3 ff or %l2, 0x3ff, %l2 <== 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,
203bde4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203bde8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203bdec: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED
203bdf0: 7f ff b3 29 call 2028a94 <fat_file_read> <== NOT EXECUTED
203bdf4: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
203bdf8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203bdfc: 02 80 00 25 be 203be90 <msdos_find_node_by_cluster_num_in_fat_file+0xd4><== NOT EXECUTED
203be00: 80 a2 20 1f cmp %o0, 0x1f <== NOT EXECUTED
fs_info->cl_buf)) != FAT_EOF)
{
if ( ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE )
203be04: 04 80 00 42 ble 203bf0c <msdos_find_node_by_cluster_num_in_fat_file+0x150><== NOT EXECUTED
203be08: 80 a2 00 13 cmp %o0, %l3 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
assert(ret == bts2rd);
203be0c: 12 80 00 46 bne 203bf24 <msdos_find_node_by_cluster_num_in_fat_file+0x168><== NOT EXECUTED
203be10: a2 10 20 00 clr %l1 <== NOT EXECUTED
203be14: d8 05 20 9c ld [ %l4 + 0x9c ], %o4 <== NOT EXECUTED
203be18: a0 10 00 0c mov %o4, %l0 <== 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)) ==
203be1c: c2 0c 00 00 ldub [ %l0 ], %g1 <== NOT EXECUTED
203be20: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203be24: 02 80 00 1b be 203be90 <msdos_find_node_by_cluster_num_in_fat_file+0xd4><== NOT EXECUTED
203be28: 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)) ==
203be2c: 22 80 00 14 be,a 203be7c <msdos_find_node_by_cluster_num_in_fat_file+0xc0><== NOT EXECUTED
203be30: a2 04 60 20 add %l1, 0x20, %l1 <== NOT EXECUTED
MSDOS_THIS_DIR_ENTRY_EMPTY)
continue;
/* if get a non-empty entry - compare clusters num */
if (MSDOS_EXTRACT_CLUSTER_NUM(entry) == cl4find)
203be34: c2 14 20 1a lduh [ %l0 + 0x1a ], %g1 <== NOT EXECUTED
203be38: c4 14 20 14 lduh [ %l0 + 0x14 ], %g2 <== NOT EXECUTED
203be3c: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
203be40: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
203be44: 87 30 60 18 srl %g1, 0x18, %g3 <== NOT EXECUTED
203be48: 89 30 a0 18 srl %g2, 0x18, %g4 <== NOT EXECUTED
203be4c: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED
203be50: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
203be54: 82 08 40 12 and %g1, %l2, %g1 <== NOT EXECUTED
203be58: 84 08 80 12 and %g2, %l2, %g2 <== NOT EXECUTED
203be5c: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
203be60: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
203be64: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
203be68: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
203be6c: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED
203be70: 22 80 00 16 be,a 203bec8 <msdos_find_node_by_cluster_num_in_fat_file+0x10c><== NOT EXECUTED
203be74: 90 10 00 18 mov %i0, %o0 <== 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)
203be78: a2 04 60 20 add %l1, 0x20, %l1 <== NOT EXECUTED
203be7c: 80 a4 c0 11 cmp %l3, %l1 <== NOT EXECUTED
203be80: 18 bf ff e7 bgu 203be1c <msdos_find_node_by_cluster_num_in_fat_file+0x60><== NOT EXECUTED
203be84: a0 04 20 20 add %l0, 0x20, %l0 <== NOT EXECUTED
203be88: 10 bf ff d7 b 203bde4 <msdos_find_node_by_cluster_num_in_fat_file+0x28><== NOT EXECUTED
203be8c: aa 05 40 13 add %l5, %l3, %l5 <== 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,
203be90: 31 00 00 1f sethi %hi(0x7c00), %i0 <== NOT EXECUTED
203be94: b0 16 21 01 or %i0, 0x101, %i0 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
}
}
j++;
}
return MSDOS_NAME_NOT_FOUND_ERR;
}
203be98: 81 c7 e0 08 ret <== NOT EXECUTED
203be9c: 81 e8 00 00 restore <== 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) &&
203bea0: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED
203bea4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203bea8: 32 bf ff cb bne,a 203bdd4 <msdos_find_node_by_cluster_num_in_fat_file+0x18><== NOT EXECUTED
203beac: e6 15 20 06 lduh [ %l4 + 6 ], %l3 <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
203beb0: c2 0d 20 0a ldub [ %l4 + 0xa ], %g1 <== NOT EXECUTED
203beb4: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
203beb8: 22 bf ff c7 be,a 203bdd4 <msdos_find_node_by_cluster_num_in_fat_file+0x18><== NOT EXECUTED
203bebc: e6 15 20 06 lduh [ %l4 + 6 ], %l3 <== 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) &&
203bec0: 10 bf ff c5 b 203bdd4 <msdos_find_node_by_cluster_num_in_fat_file+0x18><== NOT EXECUTED
203bec4: e6 06 60 18 ld [ %i1 + 0x18 ], %l3 <== NOT EXECUTED
/* if get a non-empty entry - compare clusters num */
if (MSDOS_EXTRACT_CLUSTER_NUM(entry) == cl4find)
{
/* on success fill aux structure and copy all 32 bytes */
rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM, j * bts2rd,
203bec8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203becc: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
203bed0: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203bed4: 7f ff b1 61 call 2028458 <fat_file_ioctl> <== NOT EXECUTED
203bed8: 98 10 00 1b mov %i3, %o4 <== NOT EXECUTED
&dir_pos->sname.cln);
if (rc != RC_OK)
203bedc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203bee0: 12 bf ff ee bne 203be98 <msdos_find_node_by_cluster_num_in_fat_file+0xdc><== NOT EXECUTED
203bee4: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
return rc;
dir_pos->sname.ofs = i;
203bee8: e2 26 e0 04 st %l1, [ %i3 + 4 ] <== NOT EXECUTED
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
memcpy(dir_entry, entry,
203beec: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
203bef0: 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;
203bef4: 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;
203bef8: c2 26 e0 08 st %g1, [ %i3 + 8 ] <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
memcpy(dir_entry, entry,
203befc: 40 00 40 9e call 204c174 <memcpy> <== NOT EXECUTED
203bf00: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
return RC_OK;
203bf04: 81 c7 e0 08 ret <== NOT EXECUTED
203bf08: 81 e8 00 00 restore <== 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 )
rtems_set_errno_and_return_minus_one( EIO );
203bf0c: 40 00 33 4e call 2048c44 <__errno> <== NOT EXECUTED
203bf10: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203bf14: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203bf18: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203bf1c: 81 c7 e0 08 ret <== NOT EXECUTED
203bf20: 81 e8 00 00 restore <== NOT EXECUTED
assert(ret == bts2rd);
203bf24: 11 00 81 b1 sethi %hi(0x206c400), %o0 <== NOT EXECUTED
203bf28: 15 00 81 b2 sethi %hi(0x206c800), %o2 <== NOT EXECUTED
203bf2c: 17 00 81 b1 sethi %hi(0x206c400), %o3 <== NOT EXECUTED
203bf30: 90 12 23 88 or %o0, 0x388, %o0 <== NOT EXECUTED
203bf34: 94 12 a0 88 or %o2, 0x88, %o2 <== NOT EXECUTED
203bf38: 96 12 e3 e0 or %o3, 0x3e0, %o3 <== NOT EXECUTED
203bf3c: 7f ff c0 03 call 202bf48 <__assert_func> <== NOT EXECUTED
203bf40: 92 10 26 95 mov 0x695, %o1 <== NOT EXECUTED
02021ef0 <msdos_format>:
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
2021ef0: 9d e3 bc e0 save %sp, -800, %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,
2021ef4: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2021ef8: 96 10 00 18 mov %i0, %o3 <== NOT EXECUTED
2021efc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
2021f00: 15 00 81 9f sethi %hi(0x2067c00), %o2 <== NOT EXECUTED
2021f04: 7f ff ff 5b call 2021c70 <msdos_format_printf> <== NOT EXECUTED
2021f08: 94 12 a2 f8 or %o2, 0x2f8, %o2 ! 2067ef8 <rtems_rtc_shell_usage+0xe18><== NOT EXECUTED
"formating: %s\n", devname);
/*
* sanity check on device
*/
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
2021f0c: 96 10 00 18 mov %i0, %o3 <== NOT EXECUTED
2021f10: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
2021f14: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
2021f18: 15 00 81 9f sethi %hi(0x2067c00), %o2 <== NOT EXECUTED
2021f1c: 7f ff ff 55 call 2021c70 <msdos_format_printf> <== NOT EXECUTED
2021f20: 94 12 a3 08 or %o2, 0x308, %o2 ! 2067f08 <rtems_rtc_shell_usage+0xe28><== NOT EXECUTED
"stat check: %s\n", devname);
if (ret_val == 0) {
rc = stat(devname, &stat_buf);
2021f24: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
2021f28: 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);
2021f2c: 7f ff a1 1d call 200a3a0 <stat> <== NOT EXECUTED
2021f30: 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) &&
2021f34: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2021f38: 12 80 00 0e bne 2021f70 <msdos_format+0x80> <== NOT EXECUTED
2021f3c: a4 10 20 00 clr %l2 <== NOT EXECUTED
(!S_ISBLK(stat_buf.st_mode))) {
2021f40: c4 07 bf b4 ld [ %fp + -76 ], %g2 <== NOT EXECUTED
2021f44: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
2021f48: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED
2021f4c: 03 00 00 18 sethi %hi(0x6000), %g1 <== NOT EXECUTED
2021f50: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2021f54: 02 80 00 17 be 2021fb0 <msdos_format+0xc0> <== NOT EXECUTED
2021f58: 01 00 00 00 nop <== NOT EXECUTED
errno = ENOTTY;
2021f5c: 40 00 9b 3a call 2048c44 <__errno> <== NOT EXECUTED
2021f60: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
2021f64: 82 10 20 19 mov 0x19, %g1 <== NOT EXECUTED
2021f68: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2021f6c: 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;
2021f70: a2 10 3f ff mov -1, %l1 <== NOT EXECUTED
0xe5);
}
/*
* create master boot record
*/
if (ret_val == 0) {
2021f74: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
2021f78: 02 80 00 73 be 2022144 <msdos_format+0x254> <== NOT EXECUTED
2021f7c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
/*
* cleanup:
* sync and unlock disk
* free any data structures (not needed now)
*/
if (fd != -1) {
2021f80: 80 a4 7f ff cmp %l1, -1 <== NOT EXECUTED
2021f84: 02 80 00 05 be 2021f98 <msdos_format+0xa8> <== NOT EXECUTED
2021f88: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
close(fd);
2021f8c: 7f ff 99 09 call 20083b0 <close> <== NOT EXECUTED
2021f90: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
}
if (dd != NULL) {
2021f94: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
2021f98: 02 80 00 04 be 2021fa8 <msdos_format+0xb8> <== NOT EXECUTED
2021f9c: 01 00 00 00 nop <== NOT EXECUTED
rtems_disk_release(dd);
2021fa0: 7f ff 95 27 call 200743c <rtems_disk_release> <== NOT EXECUTED
2021fa4: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
}
return ret_val;
}
2021fa8: 81 c7 e0 08 ret <== NOT EXECUTED
2021fac: 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);
2021fb0: 7f ff 95 38 call 2007490 <rtems_disk_obtain> <== NOT EXECUTED
2021fb4: d0 1f bf c0 ldd [ %fp + -64 ], %o0 <== NOT EXECUTED
if (dd == NULL) {
2021fb8: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2021fbc: 02 80 03 5c be 2022d2c <msdos_format+0xe3c> <== NOT EXECUTED
2021fc0: 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,
2021fc4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
2021fc8: 15 00 81 9f sethi %hi(0x2067c00), %o2 <== NOT EXECUTED
2021fcc: 7f ff ff 29 call 2021c70 <msdos_format_printf> <== NOT EXECUTED
2021fd0: 94 12 a3 d0 or %o2, 0x3d0, %o2 ! 2067fd0 <rtems_rtc_shell_usage+0xef0><== NOT EXECUTED
"open device\n");
fd = open(devname, O_RDWR);
2021fd4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2021fd8: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
2021fdc: 7f ff 9e cb call 2009b08 <open> <== NOT EXECUTED
2021fe0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
if (fd == -1)
2021fe4: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED
2021fe8: 02 bf ff e2 be 2021f70 <msdos_format+0x80> <== NOT EXECUTED
2021fec: 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));
2021ff0: a0 07 bf 58 add %fp, -168, %l0 <== NOT EXECUTED
2021ff4: c0 27 bf 58 clr [ %fp + -168 ] <== NOT EXECUTED
2021ff8: c0 27 bf 5c clr [ %fp + -164 ] <== NOT EXECUTED
2021ffc: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED
2022000: c0 24 20 0c clr [ %l0 + 0xc ] <== NOT EXECUTED
2022004: c0 24 20 10 clr [ %l0 + 0x10 ] <== NOT EXECUTED
2022008: c0 24 20 14 clr [ %l0 + 0x14 ] <== NOT EXECUTED
202200c: c0 24 20 18 clr [ %l0 + 0x18 ] <== NOT EXECUTED
2022010: c0 24 20 1c clr [ %l0 + 0x1c ] <== NOT EXECUTED
2022014: c0 24 20 20 clr [ %l0 + 0x20 ] <== NOT EXECUTED
2022018: c0 24 20 24 clr [ %l0 + 0x24 ] <== NOT EXECUTED
202201c: c0 24 20 28 clr [ %l0 + 0x28 ] <== NOT EXECUTED
2022020: c0 24 20 2c clr [ %l0 + 0x2c ] <== NOT EXECUTED
2022024: c0 24 20 30 clr [ %l0 + 0x30 ] <== NOT EXECUTED
2022028: c0 24 20 34 clr [ %l0 + 0x34 ] <== NOT EXECUTED
202202c: c0 24 20 38 clr [ %l0 + 0x38 ] <== NOT EXECUTED
2022030: c0 24 20 3c clr [ %l0 + 0x3c ] <== NOT EXECUTED
2022034: c0 24 20 40 clr [ %l0 + 0x40 ] <== NOT EXECUTED
2022038: c0 24 20 44 clr [ %l0 + 0x44 ] <== NOT EXECUTED
202203c: c0 24 20 48 clr [ %l0 + 0x48 ] <== NOT EXECUTED
2022040: c0 24 20 4c clr [ %l0 + 0x4c ] <== 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;
2022044: e6 04 a0 20 ld [ %l2 + 0x20 ], %l3 <== NOT EXECUTED
fmt_params->totl_sector_cnt = dd->size;
total_size = dd->block_size * dd->size;
2022048: 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;
202204c: e6 27 bf 58 st %l3, [ %fp + -168 ] <== NOT EXECUTED
fmt_params->totl_sector_cnt = dd->size;
2022050: f0 04 a0 1c ld [ %l2 + 0x1c ], %i0 <== NOT EXECUTED
total_size = dd->block_size * dd->size;
2022054: 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;
2022058: f0 27 bf 5c st %i0, [ %fp + -164 ] <== NOT EXECUTED
total_size = dd->block_size * dd->size;
202205c: 7f ff 82 cc call 2002b8c <.umul> <== NOT EXECUTED
2022060: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
2022064: 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;
2022068: aa 10 00 08 mov %o0, %l5 <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
202206c: d0 23 a0 5c st %o0, [ %sp + 0x5c ] <== NOT EXECUTED
2022070: 98 10 00 18 mov %i0, %o4 <== NOT EXECUTED
2022074: e8 3f bd 50 std %l4, [ %fp + -688 ] <== NOT EXECUTED
2022078: 9a 10 20 00 clr %o5 <== NOT EXECUTED
202207c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
2022080: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
2022084: 15 00 81 9f sethi %hi(0x2067c00), %o2 <== NOT EXECUTED
2022088: 7f ff fe fa call 2021c70 <msdos_format_printf> <== NOT EXECUTED
202208c: 94 12 a3 e0 or %o2, 0x3e0, %o2 ! 2067fe0 <rtems_rtc_shell_usage+0xf00><== NOT EXECUTED
}
/*
* determine number of FATs
*/
if (ret_val == 0) {
if ((rqdata == NULL) ||
2022090: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2022094: 02 80 02 5d be 2022a08 <msdos_format+0xb18> <== NOT EXECUTED
2022098: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED
(rqdata->fat_num == 0)) {
202209c: d6 06 60 0c ld [ %i1 + 0xc ], %o3 <== NOT EXECUTED
}
/*
* determine number of FATs
*/
if (ret_val == 0) {
if ((rqdata == NULL) ||
20220a0: 80 a2 e0 00 cmp %o3, 0 <== NOT EXECUTED
20220a4: 02 80 01 26 be 202253c <msdos_format+0x64c> <== NOT EXECUTED
20220a8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
(rqdata->fat_num == 0)) {
fmt_params->fat_num = 2;
}
else if (rqdata->fat_num <= 6) {
20220ac: 80 a2 e0 06 cmp %o3, 6 <== NOT EXECUTED
20220b0: 38 80 02 51 bgu,a 20229f4 <msdos_format+0xb04> <== NOT EXECUTED
20220b4: a8 10 20 16 mov 0x16, %l4 <== NOT EXECUTED
fmt_params->fat_num = rqdata->fat_num;
20220b8: d6 2f bf 88 stb %o3, [ %fp + -120 ] <== NOT EXECUTED
ret_val = EINVAL;
}
}
if (ret_val == 0)
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
20220bc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
20220c0: 96 0a e0 ff and %o3, 0xff, %o3 <== NOT EXECUTED
20220c4: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
20220c8: 15 00 81 9f sethi %hi(0x2067c00), %o2 <== NOT EXECUTED
20220cc: 7f ff fe e9 call 2021c70 <msdos_format_printf> <== NOT EXECUTED
20220d0: 94 12 a3 18 or %o2, 0x318, %o2 ! 2067f18 <rtems_rtc_shell_usage+0xe38><== NOT EXECUTED
/*
* determine FAT type and sectors per cluster
* depends on
*/
if (ret_val == 0) {
fmt_params->sectors_per_cluster = 1;
20220d4: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20220d8: c2 27 bf 64 st %g1, [ %fp + -156 ] <== NOT EXECUTED
if ((rqdata != NULL) &&
20220dc: c2 0e 60 14 ldub [ %i1 + 0x14 ], %g1 <== NOT EXECUTED
20220e0: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
20220e4: 02 80 01 20 be 2022564 <msdos_format+0x674> <== NOT EXECUTED
20220e8: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
(rqdata->fattype == MSDOS_FMT_FAT12)) {
fmt_params->fattype = FAT_FAT12;
}
else if ((rqdata != NULL) &&
20220ec: 02 80 01 1e be 2022564 <msdos_format+0x674> <== NOT EXECUTED
20220f0: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED
(rqdata->fattype == MSDOS_FMT_FAT16)) {
fmt_params->fattype = FAT_FAT16;
}
else if ((rqdata != NULL) &&
20220f4: 02 80 01 1b be 2022560 <msdos_format+0x670> <== NOT EXECUTED
20220f8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
(rqdata->fattype == MSDOS_FMT_FAT32)) {
fmt_params->fattype = FAT_FAT32;
}
else if ((rqdata != NULL) &&
20220fc: 12 80 02 58 bne 2022a5c <msdos_format+0xb6c> <== NOT EXECUTED
2022100: c2 07 bf 5c ld [ %fp + -164 ], %g1 <== 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
2022104: 05 00 00 1f sethi %hi(0x7c00), %g2 <== NOT EXECUTED
2022108: 84 10 a3 a7 or %g2, 0x3a7, %g2 ! 7fa7 <PROM_START+0x7fa7> <== NOT EXECUTED
202210c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022110: 18 80 02 b5 bgu 2022be4 <msdos_format+0xcf4> <== NOT EXECUTED
2022114: 05 00 07 ff sethi %hi(0x1ffc00), %g2 <== NOT EXECUTED
< ((uint32_t)FAT_FAT12_MAX_CLN)*8) {
fmt_params->fattype = FAT_FAT12;
2022118: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
202211c: c2 2f bf 8a stb %g1, [ %fp + -118 ] <== NOT EXECUTED
/* start trying with small clusters */
fmt_params->sectors_per_cluster = 2;
2022120: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED
2022124: c2 27 bf 64 st %g1, [ %fp + -156 ] <== NOT EXECUTED
}
}
/*
* try to use user requested cluster size
*/
if ((rqdata != NULL) &&
2022128: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
202212c: 12 80 01 10 bne 202256c <msdos_format+0x67c> <== NOT EXECUTED
2022130: a8 10 20 00 clr %l4 <== NOT EXECUTED
2022134: c4 07 bf 64 ld [ %fp + -156 ], %g2 <== NOT EXECUTED
2022138: a8 10 00 19 mov %i1, %l4 <== NOT EXECUTED
202213c: 10 80 01 12 b 2022584 <msdos_format+0x694> <== NOT EXECUTED
2022140: 82 10 00 02 mov %g2, %g1 <== NOT EXECUTED
*/
if (ret_val == 0) {
/*
* Read the current MBR to obtain the partition table.
*/
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
2022144: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
2022148: 15 00 81 9f sethi %hi(0x2067c00), %o2 <== NOT EXECUTED
202214c: 7f ff fe c9 call 2021c70 <msdos_format_printf> <== NOT EXECUTED
2022150: 94 12 a3 60 or %o2, 0x360, %o2 ! 2067f60 <rtems_rtc_shell_usage+0xe80><== 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)) {
2022154: 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,
2022158: 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)) {
202215c: 92 10 20 00 clr %o1 <== NOT EXECUTED
2022160: 94 10 20 00 clr %o2 <== NOT EXECUTED
2022164: 40 00 2d 17 call 202d5c0 <lseek> <== NOT EXECUTED
2022168: 96 10 20 00 clr %o3 <== NOT EXECUTED
202216c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2022170: 06 80 00 f1 bl 2022534 <msdos_format+0x644> <== NOT EXECUTED
2022174: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
ret_val = -1;
}
if (ret_val == 0) {
if (0 > read(fd,buffer,sector_size)) {
2022178: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
202217c: a0 07 bd 58 add %fp, -680, %l0 <== NOT EXECUTED
2022180: 7f ff 9f 56 call 2009ed8 <read> <== NOT EXECUTED
2022184: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2022188: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202218c: 06 80 00 ea bl 2022534 <msdos_format+0x644> <== NOT EXECUTED
2022190: 90 10 00 19 mov %i1, %o0 <== 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,
2022194: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
2022198: 15 00 81 a0 sethi %hi(0x2068000), %o2 <== NOT EXECUTED
202219c: 7f ff fe b5 call 2021c70 <msdos_format_printf> <== NOT EXECUTED
20221a0: 94 12 a0 18 or %o2, 0x18, %o2 ! 2068018 <rtems_rtc_shell_usage+0xf38><== 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) {
20221a4: ec 07 bf 5c ld [ %fp + -164 ], %l6 <== NOT EXECUTED
20221a8: 29 00 00 3f sethi %hi(0xfc00), %l4 <== NOT EXECUTED
20221ac: a8 15 23 ff or %l4, 0x3ff, %l4 ! ffff <PROM_START+0xffff> <== NOT EXECUTED
20221b0: 80 a5 80 14 cmp %l6, %l4 <== NOT EXECUTED
20221b4: 08 80 02 1e bleu 2022a2c <msdos_format+0xb3c> <== NOT EXECUTED
20221b8: af 35 a0 08 srl %l6, 8, %l7 <== NOT EXECUTED
if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {
ret_val = -1;
}
if (ret_val == 0) {
if (0 > read(fd,buffer,sector_size)) {
20221bc: a8 0d 80 14 and %l6, %l4, %l4 <== NOT EXECUTED
20221c0: b1 35 a0 18 srl %l6, 0x18, %i0 <== NOT EXECUTED
20221c4: a6 10 00 16 mov %l6, %l3 <== NOT EXECUTED
20221c8: ab 35 a0 10 srl %l6, 0x10, %l5 <== NOT EXECUTED
20221cc: a9 35 20 08 srl %l4, 8, %l4 <== NOT EXECUTED
20221d0: ae 10 20 00 clr %l7 <== NOT EXECUTED
20221d4: ac 10 20 00 clr %l6 <== 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);
20221d8: 92 10 20 00 clr %o1 <== NOT EXECUTED
20221dc: 94 10 21 be mov 0x1be, %o2 <== NOT EXECUTED
20221e0: 40 00 a8 78 call 204c3c0 <memset> <== NOT EXECUTED
20221e4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
* with 0xEB,....
*/
/*
* fill OEMName
*/
memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),
20221e8: 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,
20221ec: c0 37 bf 56 clrh [ %fp + -170 ] <== NOT EXECUTED
* with 0xEB,....
*/
/*
* fill OEMName
*/
memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),
20221f0: 92 07 bf 8b add %fp, -117, %o1 <== NOT EXECUTED
20221f4: 40 00 a7 e0 call 204c174 <memcpy> <== NOT EXECUTED
20221f8: 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);
20221fc: da 07 bf 64 ld [ %fp + -156 ], %o5 <== NOT EXECUTED
FAT_SET_BR_RESERVED_SECTORS_NUM(mbr, fmt_params->rsvd_sector_cnt);
2022200: c4 07 bf 60 ld [ %fp + -160 ], %g2 <== 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);
2022204: c2 07 bf 70 ld [ %fp + -144 ], %g1 <== 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);
2022208: c6 07 bf 58 ld [ %fp + -168 ], %g3 <== 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) {
202220c: c8 0f bf 8a ldub [ %fp + -118 ], %g4 <== 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);
2022210: da 2c 20 0d stb %o5, [ %l0 + 0xd ] <== 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);
2022214: ec 2c 20 13 stb %l6, [ %l0 + 0x13 ] <== NOT EXECUTED
2022218: ee 2c 20 14 stb %l7, [ %l0 + 0x14 ] <== NOT EXECUTED
FAT_SET_BR_MEDIA(mbr , fmt_params->media_code);
202221c: da 0f bf 89 ldub [ %fp + -119 ], %o5 <== 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);
2022220: 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);
2022224: da 2c 20 15 stb %o5, [ %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);
2022228: 9b 30 e0 08 srl %g3, 8, %o5 <== NOT EXECUTED
202222c: da 2c 20 0c stb %o5, [ %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);
2022230: 9b 30 a0 08 srl %g2, 8, %o5 <== NOT EXECUTED
2022234: da 2c 20 0f stb %o5, [ %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);
2022238: 9b 30 60 08 srl %g1, 8, %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... */
202223c: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
2022240: c2 2c 20 18 stb %g1, [ %l0 + 0x18 ] <== NOT EXECUTED
FAT_SET_BR_NUMBER_OF_HEADS(mbr , 6); /* only needed for INT13... */
2022244: 82 10 20 06 mov 6, %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);
2022248: c4 2c 20 0e stb %g2, [ %l0 + 0xe ] <== 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... */
202224c: c2 2c 20 1a stb %g1, [ %l0 + 0x1a ] <== 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 */
2022250: 84 10 20 02 mov 2, %g2 <== 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... */
2022254: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);
2022258: e6 2c 20 20 stb %l3, [ %l0 + 0x20 ] <== NOT EXECUTED
202225c: e8 2c 20 21 stb %l4, [ %l0 + 0x21 ] <== NOT EXECUTED
2022260: ea 2c 20 22 stb %l5, [ %l0 + 0x22 ] <== NOT EXECUTED
2022264: f0 2c 20 23 stb %i0, [ %l0 + 0x23 ] <== 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);
2022268: da 2c 20 12 stb %o5, [ %l0 + 0x12 ] <== 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);
202226c: c6 2c 20 0b stb %g3, [ %l0 + 0xb ] <== NOT EXECUTED
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);
FAT_SET_BR_SECTORS_PER_TRACK(mbr , 255); /* only needed for INT13... */
2022270: c0 2c 20 19 clrb [ %l0 + 0x19 ] <== NOT EXECUTED
FAT_SET_BR_NUMBER_OF_HEADS(mbr , 6); /* only needed for INT13... */
2022274: c0 2c 20 1b clrb [ %l0 + 0x1b ] <== NOT EXECUTED
FAT_SET_BR_HIDDEN_SECTORS(mbr , 1); /* only needed for INT13... */
2022278: c0 2c 20 1d clrb [ %l0 + 0x1d ] <== NOT EXECUTED
202227c: c0 2c 20 1e clrb [ %l0 + 0x1e ] <== NOT EXECUTED
2022280: 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 */
2022284: c4 2c 20 10 stb %g2, [ %l0 + 0x10 ] <== 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) {
2022288: 80 a1 20 04 cmp %g4, 4 <== NOT EXECUTED
202228c: 02 80 02 5f be 2022c08 <msdos_format+0xd18> <== NOT EXECUTED
2022290: c2 2c 20 1c stb %g1, [ %l0 + 0x1c ] <== 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 */
2022294: c2 07 bf a4 ld [ %fp + -92 ], %g1 <== 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);
2022298: c4 07 bf 68 ld [ %fp + -152 ], %g2 <== 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 */
202229c: 87 30 60 18 srl %g1, 0x18, %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);
20222a0: c4 2c 20 16 stb %g2, [ %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 */
20222a4: c6 2c 20 2a stb %g3, [ %l0 + 0x2a ] <== 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);
20222a8: 87 30 a0 08 srl %g2, 8, %g3 <== 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 */
20222ac: 85 30 60 10 srl %g1, 0x10, %g2 <== NOT EXECUTED
20222b0: c4 2c 20 29 stb %g2, [ %l0 + 0x29 ] <== 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);
20222b4: 84 10 20 29 mov 0x29, %g2 <== NOT EXECUTED
FAT_SET_BR_VOLID(mbr , fmt_params->vol_id); /* volume id */
20222b8: c2 2c 20 27 stb %g1, [ %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);
20222bc: c4 2c 20 26 stb %g2, [ %l0 + 0x26 ] <== NOT EXECUTED
FAT_SET_BR_VOLID(mbr , fmt_params->vol_id); /* volume id */
20222c0: 05 00 00 3f sethi %hi(0xfc00), %g2 <== NOT EXECUTED
20222c4: 84 10 a3 ff or %g2, 0x3ff, %g2 ! ffff <PROM_START+0xffff> <== NOT EXECUTED
20222c8: 82 08 40 02 and %g1, %g2, %g1 <== NOT EXECUTED
20222cc: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED
memcpy(FAT_GET_ADDR_BR_VOLLAB(mbr),
20222d0: 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 */
20222d4: c2 2c 20 28 stb %g1, [ %l0 + 0x28 ] <== 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);
20222d8: c6 2c 20 17 stb %g3, [ %l0 + 0x17 ] <== NOT EXECUTED
FAT_SET_BR_DRVNUM(mbr , 0); /* only needed for INT13... */
20222dc: c0 2c 20 24 clrb [ %l0 + 0x24 ] <== NOT EXECUTED
FAT_SET_BR_RSVD1(mbr , 0); /* fill with zero */
20222e0: 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 */
memcpy(FAT_GET_ADDR_BR_VOLLAB(mbr),
20222e4: 90 07 bd 83 add %fp, -637, %o0 <== NOT EXECUTED
20222e8: 40 00 a7 a3 call 204c174 <memcpy> <== NOT EXECUTED
20222ec: 94 10 20 0b mov 0xb, %o2 <== NOT EXECUTED
fmt_params->VolLabel,
FAT_BR_VOLLAB_SIZE);
memcpy(FAT_GET_ADDR_BR_FILSYSTYPE(mbr),
20222f0: c2 0f bf 8a ldub [ %fp + -118 ], %g1 <== NOT EXECUTED
20222f4: 13 00 81 9f sethi %hi(0x2067c00), %o1 <== NOT EXECUTED
20222f8: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
20222fc: 02 80 00 04 be 202230c <msdos_format+0x41c> <== NOT EXECUTED
2022300: 92 12 63 88 or %o1, 0x388, %o1 <== NOT EXECUTED
2022304: 13 00 81 9f sethi %hi(0x2067c00), %o1 <== NOT EXECUTED
2022308: 92 12 63 78 or %o1, 0x378, %o1 ! 2067f78 <rtems_rtc_shell_usage+0xe98><== NOT EXECUTED
202230c: 90 07 bd 8e add %fp, -626, %o0 <== NOT EXECUTED
2022310: 40 00 a7 99 call 204c174 <memcpy> <== NOT EXECUTED
2022314: 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);
2022318: 82 10 20 55 mov 0x55, %g1 <== NOT EXECUTED
202231c: c2 2c 21 fe stb %g1, [ %l0 + 0x1fe ] <== NOT EXECUTED
2022320: 82 10 3f aa mov -86, %g1 <== NOT EXECUTED
2022324: 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);
2022328: 82 10 3f eb mov -21, %g1 <== NOT EXECUTED
202232c: c2 2c 00 00 stb %g1, [ %l0 ] <== NOT EXECUTED
FAT_SET_VAL8(mbr,1,0x3c);
2022330: 82 10 20 3c mov 0x3c, %g1 <== NOT EXECUTED
2022334: c2 2c 20 01 stb %g1, [ %l0 + 1 ] <== NOT EXECUTED
FAT_SET_VAL8(mbr,2,0x90);
2022338: 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,
202233c: 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);
2022340: 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,
2022344: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
2022348: 15 00 81 9f sethi %hi(0x2067c00), %o2 <== NOT EXECUTED
202234c: 7f ff fe 49 call 2021c70 <msdos_format_printf> <== NOT EXECUTED
2022350: 94 12 a3 98 or %o2, 0x398, %o2 ! 2067f98 <rtems_rtc_shell_usage+0xeb8><== NOT EXECUTED
"write MRB sector\n");
ret_val = msdos_format_write_sec(fd,
2022354: d4 07 bf 58 ld [ %fp + -168 ], %o2 <== NOT EXECUTED
2022358: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
202235c: 92 10 20 00 clr %o1 <== NOT EXECUTED
2022360: 7f ff fe 59 call 2021cc4 <msdos_format_write_sec> <== NOT EXECUTED
2022364: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
0,
fmt_params.bytes_per_sector,
tmp_sec);
}
if ((ret_val == 0) &&
2022368: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
202236c: 12 bf ff 05 bne 2021f80 <msdos_format+0x90> <== NOT EXECUTED
2022370: c2 07 bf 80 ld [ %fp + -128 ], %g1 <== NOT EXECUTED
2022374: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2022378: 12 80 01 e6 bne 2022b10 <msdos_format+0xc20> <== NOT EXECUTED
202237c: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
}
}
/*
* for FAT32: initialize info sector on disk
*/
if ((ret_val == 0) &&
2022380: c2 07 bf 84 ld [ %fp + -124 ], %g1 <== NOT EXECUTED
2022384: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2022388: 12 80 01 ba bne 2022a70 <msdos_format+0xb80> <== NOT EXECUTED
202238c: 92 10 20 00 clr %o1 <== NOT EXECUTED
/*
* write FAT as all empty
* -> write all FAT sectors as zero
*/
if (ret_val == 0) {
ret_val = msdos_format_fill_sectors
2022390: d2 07 bf 68 ld [ %fp + -152 ], %o1 <== NOT EXECUTED
2022394: 7f ff 81 fe call 2002b8c <.umul> <== NOT EXECUTED
2022398: d0 0f bf 88 ldub [ %fp + -120 ], %o0 <== NOT EXECUTED
202239c: d4 07 bf 60 ld [ %fp + -160 ], %o2 <== NOT EXECUTED
20223a0: d8 07 bf 58 ld [ %fp + -168 ], %o4 <== NOT EXECUTED
20223a4: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
20223a8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20223ac: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
20223b0: 7f ff fe 60 call 2021d30 <msdos_format_fill_sectors> <== NOT EXECUTED
20223b4: 9a 10 20 00 clr %o5 <== NOT EXECUTED
}
/*
* clear/init root directory
* -> write all directory sectors as 0x00
*/
if (ret_val == 0) {
20223b8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20223bc: 12 bf fe f1 bne 2021f80 <msdos_format+0x90> <== NOT EXECUTED
20223c0: d4 1f bf 78 ldd [ %fp + -136 ], %o2 <== NOT EXECUTED
ret_val = msdos_format_fill_sectors
20223c4: d8 07 bf 58 ld [ %fp + -168 ], %o4 <== NOT EXECUTED
20223c8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
20223cc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20223d0: 7f ff fe 58 call 2021d30 <msdos_format_fill_sectors> <== NOT EXECUTED
20223d4: 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) {
20223d8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20223dc: 12 bf fe e9 bne 2021f80 <msdos_format+0x90> <== NOT EXECUTED
20223e0: c2 0f bf a0 ldub [ %fp + -96 ], %g1 <== NOT EXECUTED
20223e4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20223e8: 02 bf fe e7 be 2021f84 <msdos_format+0x94> <== NOT EXECUTED
20223ec: 80 a4 7f ff cmp %l1, -1 <== NOT EXECUTED
memset(tmp_sec,0,sizeof(tmp_sec));
20223f0: 92 10 20 00 clr %o1 <== NOT EXECUTED
20223f4: 94 10 22 00 mov 0x200, %o2 <== NOT EXECUTED
20223f8: 40 00 a7 f2 call 204c3c0 <memset> <== NOT EXECUTED
20223fc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
memcpy(MSDOS_DIR_NAME(tmp_sec),fmt_params.VolLabel,MSDOS_SHORT_NAME_LEN);
2022400: 84 07 bf 94 add %fp, -108, %g2 <== NOT EXECUTED
2022404: c2 08 a0 0a ldub [ %g2 + 0xa ], %g1 <== NOT EXECUTED
2022408: c6 00 a0 04 ld [ %g2 + 4 ], %g3 <== NOT EXECUTED
202240c: c4 10 a0 08 lduh [ %g2 + 8 ], %g2 <== NOT EXECUTED
2022410: c8 07 bf 94 ld [ %fp + -108 ], %g4 <== NOT EXECUTED
*MSDOS_DIR_ATTR(tmp_sec) = MSDOS_ATTR_VOLUME_ID;
ret_val = msdos_format_write_sec
2022414: d2 07 bf 78 ld [ %fp + -136 ], %o1 <== NOT EXECUTED
2022418: 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);
202241c: c2 2c 20 0a stb %g1, [ %l0 + 0xa ] <== NOT EXECUTED
2022420: c6 24 20 04 st %g3, [ %l0 + 4 ] <== NOT EXECUTED
2022424: c4 34 20 08 sth %g2, [ %l0 + 8 ] <== NOT EXECUTED
*MSDOS_DIR_ATTR(tmp_sec) = MSDOS_ATTR_VOLUME_ID;
2022428: 82 10 20 08 mov 8, %g1 <== 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);
202242c: c8 27 bd 58 st %g4, [ %fp + -680 ] <== NOT EXECUTED
*MSDOS_DIR_ATTR(tmp_sec) = MSDOS_ATTR_VOLUME_ID;
2022430: c2 2f bd 63 stb %g1, [ %fp + -669 ] <== NOT EXECUTED
ret_val = msdos_format_write_sec
2022434: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2022438: 7f ff fe 23 call 2021cc4 <msdos_format_write_sec> <== NOT EXECUTED
202243c: 96 10 00 10 mov %l0, %o3 <== 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){
2022440: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2022444: 12 bf fe cf bne 2021f80 <msdos_format+0x90> <== NOT EXECUTED
2022448: c2 0f bf a0 ldub [ %fp + -96 ], %g1 <== NOT EXECUTED
202244c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2022450: 02 bf fe cc be 2021f80 <msdos_format+0x90> <== NOT EXECUTED
2022454: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
/*
* empty sector: all clusters are free/do not link further on
*/
memset(tmp_sec,0,sizeof(tmp_sec));
2022458: 92 10 20 00 clr %o1 <== NOT EXECUTED
202245c: 40 00 a7 d9 call 204c3c0 <memset> <== NOT EXECUTED
2022460: 94 10 22 00 mov 0x200, %o2 <== NOT EXECUTED
switch(fmt_params.fattype) {
2022464: c2 0f bf 8a ldub [ %fp + -118 ], %g1 <== NOT EXECUTED
2022468: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
202246c: 02 80 01 d2 be 2022bb4 <msdos_format+0xcc4> <== NOT EXECUTED
2022470: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED
2022474: 02 80 01 be be 2022b6c <msdos_format+0xc7c> <== NOT EXECUTED
2022478: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
202247c: 02 80 01 b3 be 2022b48 <msdos_format+0xc58> <== NOT EXECUTED
2022480: c2 0f bf 89 ldub [ %fp + -119 ], %g1 <== NOT EXECUTED
FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);
break;
default:
ret_val = -1;
errno = EINVAL;
2022484: 40 00 99 f0 call 2048c44 <__errno> <== NOT EXECUTED
2022488: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202248c: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
2022490: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
if (fmt_params.fattype == FAT_FAT32) {
2022494: c2 0f bf 8a ldub [ %fp + -118 ], %g1 <== NOT EXECUTED
2022498: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED
202249c: 12 bf fe ba bne 2021f84 <msdos_format+0x94> <== NOT EXECUTED
20224a0: 80 a4 7f ff cmp %l1, -1 <== 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);
20224a4: c2 0f bf 88 ldub [ %fp + -120 ], %g1 <== NOT EXECUTED
20224a8: 80 a0 00 18 cmp %g0, %i0 <== NOT EXECUTED
20224ac: 84 60 3f ff subx %g0, -1, %g2 <== NOT EXECUTED
20224b0: 82 20 00 01 neg %g1 <== NOT EXECUTED
20224b4: 83 30 60 1f srl %g1, 0x1f, %g1 <== NOT EXECUTED
20224b8: 82 08 80 01 and %g2, %g1, %g1 <== NOT EXECUTED
20224bc: 84 10 3f ff mov -1, %g2 <== NOT EXECUTED
20224c0: c4 2c 20 0a stb %g2, [ %l0 + 0xa ] <== NOT EXECUTED
20224c4: c4 2c 20 09 stb %g2, [ %l0 + 9 ] <== NOT EXECUTED
20224c8: 84 10 3f f8 mov -8, %g2 <== NOT EXECUTED
20224cc: c4 2c 20 08 stb %g2, [ %l0 + 8 ] <== NOT EXECUTED
20224d0: 84 10 20 0f mov 0xf, %g2 <== NOT EXECUTED
20224d4: c4 2f bd 63 stb %g2, [ %fp + -669 ] <== NOT EXECUTED
}
for (i = 0;
20224d8: 80 88 60 ff btst 0xff, %g1 <== NOT EXECUTED
20224dc: 02 bf fe a9 be 2021f80 <msdos_format+0x90> <== NOT EXECUTED
20224e0: d0 07 bf 68 ld [ %fp + -152 ], %o0 <== NOT EXECUTED
20224e4: 10 80 00 05 b 20224f8 <msdos_format+0x608> <== NOT EXECUTED
20224e8: a8 10 20 00 clr %l4 <== NOT EXECUTED
20224ec: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20224f0: 12 bf fe a4 bne 2021f80 <msdos_format+0x90> <== NOT EXECUTED
20224f4: d0 07 bf 68 ld [ %fp + -152 ], %o0 <== NOT EXECUTED
(i < fmt_params.fat_num) && (ret_val == 0);
i++) {
ret_val = msdos_format_write_sec
20224f8: 7f ff 81 a5 call 2002b8c <.umul> <== NOT EXECUTED
20224fc: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
2022500: d2 07 bf 60 ld [ %fp + -160 ], %o1 <== NOT EXECUTED
2022504: d4 07 bf 58 ld [ %fp + -168 ], %o2 <== NOT EXECUTED
2022508: 92 02 00 09 add %o0, %o1, %o1 <== NOT EXECUTED
202250c: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
2022510: 7f ff fd ed call 2021cc4 <msdos_format_write_sec> <== NOT EXECUTED
2022514: 90 10 00 11 mov %l1, %o0 <== 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;
2022518: c2 0f bf 88 ldub [ %fp + -120 ], %g1 <== NOT EXECUTED
(i < fmt_params.fat_num) && (ret_val == 0);
i++) {
202251c: a8 05 20 01 inc %l4 <== 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;
2022520: 80 a0 40 14 cmp %g1, %l4 <== NOT EXECUTED
2022524: 14 bf ff f2 bg 20224ec <msdos_format+0x5fc> <== NOT EXECUTED
2022528: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
/*
* cleanup:
* sync and unlock disk
* free any data structures (not needed now)
*/
if (fd != -1) {
202252c: 10 bf fe 96 b 2021f84 <msdos_format+0x94> <== NOT EXECUTED
2022530: 80 a4 7f ff cmp %l1, -1 <== NOT EXECUTED
if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {
ret_val = -1;
}
if (ret_val == 0) {
if (0 > read(fd,buffer,sector_size)) {
2022534: 10 bf fe 93 b 2021f80 <msdos_format+0x90> <== NOT EXECUTED
2022538: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
* determine number of FATs
*/
if (ret_val == 0) {
if ((rqdata == NULL) ||
(rqdata->fat_num == 0)) {
fmt_params->fat_num = 2;
202253c: 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,
2022540: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
2022544: 15 00 81 9f sethi %hi(0x2067c00), %o2 <== NOT EXECUTED
2022548: 96 10 20 02 mov 2, %o3 <== NOT EXECUTED
202254c: 7f ff fd c9 call 2021c70 <msdos_format_printf> <== NOT EXECUTED
2022550: 94 12 a3 18 or %o2, 0x318, %o2 <== NOT EXECUTED
/*
* determine FAT type and sectors per cluster
* depends on
*/
if (ret_val == 0) {
fmt_params->sectors_per_cluster = 1;
2022554: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2022558: 10 bf fe e1 b 20220dc <msdos_format+0x1ec> <== NOT EXECUTED
202255c: c2 27 bf 64 st %g1, [ %fp + -156 ] <== NOT EXECUTED
(rqdata->fattype == MSDOS_FMT_FAT16)) {
fmt_params->fattype = FAT_FAT16;
}
else if ((rqdata != NULL) &&
(rqdata->fattype == MSDOS_FMT_FAT32)) {
fmt_params->fattype = FAT_FAT32;
2022560: 82 10 20 04 mov 4, %g1 <== NOT EXECUTED
2022564: c2 2f bf 8a stb %g1, [ %fp + -118 ] <== NOT EXECUTED
2022568: a8 10 20 00 clr %l4 <== NOT EXECUTED
}
/*
* try to use user requested cluster size
*/
if ((rqdata != NULL) &&
(rqdata->sectors_per_cluster > 0)) {
202256c: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
}
}
/*
* try to use user requested cluster size
*/
if ((rqdata != NULL) &&
2022570: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2022574: 12 80 00 04 bne 2022584 <msdos_format+0x694> <== NOT EXECUTED
2022578: 84 10 00 01 mov %g1, %g2 <== NOT EXECUTED
202257c: c4 07 bf 64 ld [ %fp + -156 ], %g2 <== NOT EXECUTED
2022580: 82 10 00 02 mov %g2, %g1 <== 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) {
2022584: a6 10 20 80 mov 0x80, %l3 <== NOT EXECUTED
2022588: ec 07 bf 58 ld [ %fp + -168 ], %l6 <== 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) {
202258c: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED
2022590: 08 80 00 0a bleu 20225b8 <msdos_format+0x6c8> <== NOT EXECUTED
2022594: aa 10 20 00 clr %l5 <== NOT EXECUTED
2022598: 82 10 00 02 mov %g2, %g1 <== 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) {
202259c: aa 05 60 01 inc %l5 <== NOT EXECUTED
20225a0: 80 a5 60 08 cmp %l5, 8 <== NOT EXECUTED
20225a4: 02 80 01 fe be 2022d9c <msdos_format+0xeac> <== NOT EXECUTED
20225a8: a7 34 e0 01 srl %l3, 1, %l3 <== NOT EXECUTED
if (fmt_params->sectors_per_cluster >= onebit) {
20225ac: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED
20225b0: 18 bf ff fa bgu 2022598 <msdos_format+0x6a8> <== NOT EXECUTED
20225b4: 84 10 00 01 mov %g1, %g2 <== NOT EXECUTED
fmt_params->sectors_per_cluster = onebit;
if (fmt_params->sectors_per_cluster
20225b8: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
20225bc: 40 00 fa cf call 20610f8 <.udiv> <== NOT EXECUTED
20225c0: 11 00 00 20 sethi %hi(0x8000), %o0 <== NOT EXECUTED
20225c4: 80 a2 00 13 cmp %o0, %l3 <== NOT EXECUTED
20225c8: 3a 80 00 04 bcc,a 20225d8 <msdos_format+0x6e8> <== NOT EXECUTED
20225cc: e6 27 bf 64 st %l3, [ %fp + -156 ] <== NOT EXECUTED
20225d0: 10 bf ff f3 b 202259c <msdos_format+0x6ac> <== NOT EXECUTED
20225d4: 82 10 00 13 mov %l3, %g1 <== NOT EXECUTED
}
}
}
}
if (ret_val == 0) {
20225d8: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED
20225dc: 12 80 01 06 bne 20229f4 <msdos_format+0xb04> <== NOT EXECUTED
20225e0: d6 07 bf 64 ld [ %fp + -156 ], %o3 <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
20225e4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
20225e8: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
20225ec: 15 00 81 9f sethi %hi(0x2067c00), %o2 <== NOT EXECUTED
20225f0: 7f ff fd a0 call 2021c70 <msdos_format_printf> <== NOT EXECUTED
20225f4: 94 12 a3 30 or %o2, 0x330, %o2 ! 2067f30 <rtems_rtc_shell_usage+0xe50><== NOT EXECUTED
"sectors per cluster: %d\n", fmt_params->sectors_per_cluster);
if (fmt_params->fattype == FAT_FAT32) {
20225f8: fa 0f bf 8a ldub [ %fp + -118 ], %i5 <== NOT EXECUTED
20225fc: 80 a7 60 04 cmp %i5, 4 <== NOT EXECUTED
2022600: 02 80 01 c1 be 2022d04 <msdos_format+0xe14> <== NOT EXECUTED
2022604: 82 10 20 01 mov 1, %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) &&
2022608: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
202260c: 02 80 01 0d be 2022a40 <msdos_format+0xb50> <== NOT EXECUTED
2022610: c2 27 bf 60 st %g1, [ %fp + -160 ] <== NOT EXECUTED
(rqdata->files_per_root_dir > 0)) {
2022614: e6 06 60 10 ld [ %i1 + 0x10 ], %l3 <== 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) &&
2022618: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
202261c: 02 80 01 09 be 2022a40 <msdos_format+0xb50> <== NOT EXECUTED
2022620: a6 04 ff ff add %l3, -1, %l3 <== NOT EXECUTED
}
else {
fmt_params->files_per_root_dir = 64;
}
}
fmt_params->files_per_root_dir = (fmt_params->files_per_root_dir +
2022624: ee 07 bf 58 ld [ %fp + -168 ], %l7 <== NOT EXECUTED
2022628: 93 2d e0 01 sll %l7, 1, %o1 <== NOT EXECUTED
202262c: 93 32 60 05 srl %o1, 5, %o1 <== NOT EXECUTED
2022630: 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 %
2022634: 40 00 fb 5d call 20613a8 <.urem> <== NOT EXECUTED
2022638: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
202263c: 90 24 c0 08 sub %l3, %o0, %o0 <== NOT EXECUTED
2022640: d0 27 bf 70 st %o0, [ %fp + -144 ] <== NOT EXECUTED
2022644: 91 2a 20 05 sll %o0, 5, %o0 <== 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)
2022648: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
202264c: b6 05 ff ff add %l7, -1, %i3 <== NOT EXECUTED
2022650: 40 00 fa aa call 20610f8 <.udiv> <== NOT EXECUTED
2022654: 90 06 c0 08 add %i3, %o0, %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 -
2022658: c2 07 bf 5c ld [ %fp + -164 ], %g1 <== NOT EXECUTED
202265c: e6 07 bf 60 ld [ %fp + -160 ], %l3 <== 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,
2022660: f0 0f bf 88 ldub [ %fp + -120 ], %i0 <== NOT EXECUTED
/*
* check values to get legal arrangement of FAT type and cluster count
*/
ret_val = msdos_format_eval_sectors_per_cluster
2022664: ea 07 bf 64 ld [ %fp + -156 ], %l5 <== 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 -
2022668: 82 20 40 13 sub %g1, %l3, %g1 <== NOT EXECUTED
202266c: 82 20 40 08 sub %g1, %o0, %g1 <== 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 =
2022670: 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 -
2022674: c2 27 bd 4c st %g1, [ %fp + -692 ] <== 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) {
2022678: 11 00 00 20 sethi %hi(0x8000), %o0 <== NOT EXECUTED
202267c: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
2022680: 40 00 fa 9e call 20610f8 <.udiv> <== NOT EXECUTED
2022684: ba 0f 60 ff and %i5, 0xff, %i5 <== NOT EXECUTED
2022688: 80 a5 40 08 cmp %l5, %o0 <== NOT EXECUTED
202268c: 08 80 00 07 bleu 20226a8 <msdos_format+0x7b8> <== NOT EXECUTED
2022690: b4 0e 20 ff and %i0, 0xff, %i2 <== NOT EXECUTED
sectors_per_cluster /= 2;
2022694: ab 35 60 01 srl %l5, 1, %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) {
2022698: 80 a5 40 08 cmp %l5, %o0 <== NOT EXECUTED
202269c: 38 bf ff ff bgu,a 2022698 <msdos_format+0x7a8> <== NOT EXECUTED
20226a0: ab 35 60 01 srl %l5, 1, %l5 <== NOT EXECUTED
20226a4: b4 0e 20 ff and %i0, 0xff, %i2 <== NOT EXECUTED
finished = true;
}
/*
* when maximum cluster size is exceeded, we have invalid data, abort...
*/
if ((sectors_per_cluster * bytes_per_sector)
20226a8: 39 00 00 20 sethi %hi(0x8000), %i4 <== 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;
20226ac: d0 07 bd 4c ld [ %fp + -692 ], %o0 <== NOT EXECUTED
20226b0: 40 00 fa 92 call 20610f8 <.udiv> <== NOT EXECUTED
20226b4: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
if (fattype == FAT_FAT12) {
20226b8: 80 a7 60 01 cmp %i5, 1 <== NOT EXECUTED
20226bc: 02 80 00 92 be 2022904 <msdos_format+0xa14> <== NOT EXECUTED
20226c0: ac 10 00 08 mov %o0, %l6 <== NOT EXECUTED
fat_capacity = fatdata_cluster_cnt * 3 / 2;
}
else if (fattype == FAT_FAT16) {
20226c4: 80 a7 60 02 cmp %i5, 2 <== NOT EXECUTED
20226c8: 02 80 00 ce be 2022a00 <msdos_format+0xb10> <== NOT EXECUTED
20226cc: 91 2a 20 02 sll %o0, 2, %o0 <== NOT EXECUTED
}
else { /* FAT32 */
fat_capacity = fatdata_cluster_cnt * 4;
}
sectors_per_fat = ((fat_capacity
20226d0: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
20226d4: 40 00 fa 89 call 20610f8 <.udiv> <== NOT EXECUTED
20226d8: 90 06 c0 08 add %i3, %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)) ||
20226dc: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
20226e0: 7f ff 81 2b call 2002b8c <.umul> <== NOT EXECUTED
20226e4: d0 27 bd 48 st %o0, [ %fp + -696 ] <== NOT EXECUTED
20226e8: 82 05 7f ff add %l5, -1, %g1 <== NOT EXECUTED
20226ec: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
20226f0: 40 00 fa 82 call 20610f8 <.udiv> <== NOT EXECUTED
20226f4: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED
20226f8: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED
20226fc: 90 25 80 08 sub %l6, %o0, %o0 <== NOT EXECUTED
2022700: 82 10 63 f5 or %g1, 0x3f5, %g1 <== NOT EXECUTED
2022704: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED
2022708: 18 80 00 29 bgu 20227ac <msdos_format+0x8bc> <== NOT EXECUTED
202270c: 80 a7 60 02 cmp %i5, 2 <== NOT EXECUTED
finished = true;
}
/*
* when maximum cluster size is exceeded, we have invalid data, abort...
*/
if ((sectors_per_cluster * bytes_per_sector)
2022710: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
2022714: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
2022718: 7f ff 81 1d call 2002b8c <.umul> <== NOT EXECUTED
202271c: ac 10 20 01 mov 1, %l6 <== NOT EXECUTED
2022720: 80 a2 00 1c cmp %o0, %i4 <== NOT EXECUTED
2022724: 08 80 00 2c bleu 20227d4 <msdos_format+0x8e4> <== NOT EXECUTED
2022728: 80 8d a0 ff btst 0xff, %l6 <== NOT EXECUTED
finished = true;
}
} while (!finished);
if (ret_val != 0) {
rtems_set_errno_and_return_minus_one(ret_val);
202272c: 40 00 99 46 call 2048c44 <__errno> <== NOT EXECUTED
2022730: a8 10 3f ff mov -1, %l4 <== NOT EXECUTED
2022734: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
2022738: e6 07 bf 60 ld [ %fp + -160 ], %l3 <== NOT EXECUTED
202273c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2022740: f0 0f bf 88 ldub [ %fp + -120 ], %i0 <== NOT EXECUTED
fatdata_sect_cnt,
fmt_params->fat_num,
fmt_params->sectors_per_cluster,
§ors_per_cluster_adj,
&(fmt_params->sectors_per_fat));
fmt_params->sectors_per_cluster = sectors_per_cluster_adj;
2022744: c0 27 bf 64 clr [ %fp + -156 ] <== NOT EXECUTED
}
/*
* determine location and size of root directory
* for formatting
*/
if (fmt_params->root_dir_sectors > 0) {
2022748: ea 07 bf 74 ld [ %fp + -140 ], %l5 <== NOT EXECUTED
202274c: 80 a5 60 00 cmp %l5, 0 <== NOT EXECUTED
2022750: 02 80 00 a2 be 20229d8 <msdos_format+0xae8> <== NOT EXECUTED
2022754: d2 07 bf 68 ld [ %fp + -152 ], %o1 <== NOT EXECUTED
fmt_params->root_dir_start_sec =
2022758: 7f ff 81 0d call 2002b8c <.umul> <== NOT EXECUTED
202275c: 90 0e 20 ff and %i0, 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;
2022760: ea 27 bf 7c st %l5, [ %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 =
2022764: 90 02 00 13 add %o0, %l3, %o0 <== NOT EXECUTED
2022768: d0 27 bf 78 st %o0, [ %fp + -136 ] <== NOT EXECUTED
fmt_params->root_dir_fmt_sec_cnt = fmt_params->sectors_per_cluster;
}
/*
* determine usable OEMName
*/
if (ret_val == 0) {
202276c: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED
2022770: 12 80 00 52 bne 20228b8 <msdos_format+0x9c8> <== NOT EXECUTED
2022774: 07 00 81 9f sethi %hi(0x2067c00), %g3 <== NOT EXECUTED
const char *from;
char *to = fmt_params->OEMName;
int cnt;
from = "RTEMS"; /* default: make "from" point to OS Name */
if ((rqdata != NULL) &&
2022778: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
202277c: 02 80 00 06 be 2022794 <msdos_format+0x8a4> <== NOT EXECUTED
2022780: 86 10 e3 50 or %g3, 0x350, %g3 <== NOT EXECUTED
(rqdata->OEMName != NULL)) {
2022784: c6 06 40 00 ld [ %i1 ], %g3 <== 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) &&
2022788: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
202278c: 22 80 01 6f be,a 2022d48 <msdos_format+0xe58> <== NOT EXECUTED
2022790: 07 00 81 9f sethi %hi(0x2067c00), %g3 <== NOT EXECUTED
2022794: 03 00 81 be sethi %hi(0x206f800), %g1 <== NOT EXECUTED
}
/*=========================================================================*\
| Function: |
\*-------------------------------------------------------------------------*/
int msdos_format
2022798: 98 07 bf 94 add %fp, -108, %o4 <== 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) &&
202279c: c8 00 62 b4 ld [ %g1 + 0x2b4 ], %g4 <== NOT EXECUTED
/*
* non-printable character in given name, so keep stuck
* at that character and replace all following characters
* with a ' '
*/
*to++=' ';
20227a0: 96 10 20 20 mov 0x20, %o3 <== 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) &&
20227a4: 10 80 00 2a b 202284c <msdos_format+0x95c> <== NOT EXECUTED
20227a8: 82 07 bf 8c add %fp, -116, %g1 <== 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)) ||
20227ac: 12 bf ff da bne 2022714 <msdos_format+0x824> <== NOT EXECUTED
20227b0: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
((fattype == FAT_FAT16) && (data_cluster_cnt > FAT_FAT16_MAX_CLN))) {
sectors_per_cluster *= 2;
20227b4: ab 2d 60 01 sll %l5, 1, %l5 <== NOT EXECUTED
20227b8: ac 10 20 00 clr %l6 <== NOT EXECUTED
finished = true;
}
/*
* when maximum cluster size is exceeded, we have invalid data, abort...
*/
if ((sectors_per_cluster * bytes_per_sector)
20227bc: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
20227c0: 7f ff 80 f3 call 2002b8c <.umul> <== NOT EXECUTED
20227c4: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
20227c8: 80 a2 00 1c cmp %o0, %i4 <== NOT EXECUTED
20227cc: 18 bf ff d8 bgu 202272c <msdos_format+0x83c> <== NOT EXECUTED
20227d0: 80 8d a0 ff btst 0xff, %l6 <== NOT EXECUTED
> MS_BYTES_PER_CLUSTER_LIMIT) {
ret_val = EINVAL;
finished = true;
}
} while (!finished);
20227d4: 02 bf ff b7 be 20226b0 <msdos_format+0x7c0> <== NOT EXECUTED
20227d8: d0 07 bd 4c ld [ %fp + -692 ], %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;
20227dc: c2 07 bd 48 ld [ %fp + -696 ], %g1 <== NOT EXECUTED
fatdata_sect_cnt,
fmt_params->fat_num,
fmt_params->sectors_per_cluster,
§ors_per_cluster_adj,
&(fmt_params->sectors_per_fat));
fmt_params->sectors_per_cluster = sectors_per_cluster_adj;
20227e0: ea 27 bf 64 st %l5, [ %fp + -156 ] <== NOT EXECUTED
/*
* determine media code
*/
if (ret_val == 0) {
if ((rqdata != NULL) &&
20227e4: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
20227e8: 02 80 01 6f be 2022da4 <msdos_format+0xeb4> <== NOT EXECUTED
20227ec: c2 27 bf 68 st %g1, [ %fp + -152 ] <== NOT EXECUTED
20227f0: ea 0e 60 15 ldub [ %i1 + 0x15 ], %l5 <== NOT EXECUTED
20227f4: 92 8d 60 ff andcc %l5, 0xff, %o1 <== NOT EXECUTED
20227f8: 02 80 01 6c be 2022da8 <msdos_format+0xeb8> <== NOT EXECUTED
20227fc: 82 10 3f f8 mov -8, %g1 <== NOT EXECUTED
(rqdata->media != 0)) {
const char valid_media_codes[] =
{0xF0,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF};
2022800: 03 00 81 a0 sethi %hi(0x2068000), %g1 <== NOT EXECUTED
2022804: c4 18 60 30 ldd [ %g1 + 0x30 ], %g2 ! 2068030 <C.13.7331> <== NOT EXECUTED
2022808: 82 10 60 30 or %g1, 0x30, %g1 <== NOT EXECUTED
202280c: c2 08 60 08 ldub [ %g1 + 8 ], %g1 <== NOT EXECUTED
2022810: c4 3f bf f0 std %g2, [ %fp + -16 ] <== NOT EXECUTED
2022814: c2 2f bf f8 stb %g1, [ %fp + -8 ] <== NOT EXECUTED
if (NULL==memchr(valid_media_codes,
2022818: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED
202281c: 40 00 a5 e3 call 204bfa8 <memchr> <== NOT EXECUTED
2022820: 94 10 20 09 mov 9, %o2 <== NOT EXECUTED
2022824: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2022828: 02 80 01 62 be 2022db0 <msdos_format+0xec0> <== NOT EXECUTED
202282c: 01 00 00 00 nop <== NOT EXECUTED
sizeof(valid_media_codes))) {
ret_val = -1;
errno = EINVAL;
}
else {
fmt_params->media_code = rqdata->media;
2022830: 10 bf ff c6 b 2022748 <msdos_format+0x858> <== NOT EXECUTED
2022834: ea 2f bf 89 stb %l5, [ %fp + -119 ] <== NOT EXECUTED
* at that character and replace all following characters
* with a ' '
*/
*to++=' ';
}
*to = '\0';
2022838: c0 28 40 00 clrb [ %g1 ] <== NOT EXECUTED
202283c: 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;
2022840: 80 a0 40 0c cmp %g1, %o4 <== NOT EXECUTED
2022844: 02 80 00 0f be 2022880 <msdos_format+0x990> <== NOT EXECUTED
2022848: 86 00 e0 01 inc %g3 <== NOT EXECUTED
cnt < (sizeof(fmt_params->OEMName)-1);
cnt++) {
if (isprint((unsigned char)*from)) {
202284c: c4 08 c0 00 ldub [ %g3 ], %g2 <== NOT EXECUTED
2022850: 9a 08 a0 ff and %g2, 0xff, %o5 <== NOT EXECUTED
2022854: 9a 01 00 0d add %g4, %o5, %o5 <== NOT EXECUTED
2022858: da 4b 60 01 ldsb [ %o5 + 1 ], %o5 <== NOT EXECUTED
202285c: 80 8b 60 97 btst 0x97, %o5 <== NOT EXECUTED
2022860: 32 bf ff f6 bne,a 2022838 <msdos_format+0x948> <== NOT EXECUTED
2022864: c4 28 7f ff stb %g2, [ %g1 + -1 ] <== NOT EXECUTED
/*
* non-printable character in given name, so keep stuck
* at that character and replace all following characters
* with a ' '
*/
*to++=' ';
2022868: d6 28 7f ff stb %o3, [ %g1 + -1 ] <== NOT EXECUTED
}
*to = '\0';
202286c: c0 28 40 00 clrb [ %g1 ] <== NOT EXECUTED
2022870: 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;
2022874: 80 a0 40 0c cmp %g1, %o4 <== NOT EXECUTED
2022878: 32 bf ff f6 bne,a 2022850 <msdos_format+0x960> <== NOT EXECUTED
202287c: c4 08 c0 00 ldub [ %g3 ], %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) &&
2022880: 07 00 81 9f sethi %hi(0x2067c00), %g3 <== NOT EXECUTED
2022884: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2022888: 02 80 00 08 be 20228a8 <msdos_format+0x9b8> <== NOT EXECUTED
202288c: 86 10 e3 58 or %g3, 0x358, %g3 <== NOT EXECUTED
(rqdata->VolLabel != NULL)) {
2022890: c6 06 60 04 ld [ %i1 + 4 ], %g3 <== 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) &&
2022894: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
2022898: 22 80 01 2a be,a 2022d40 <msdos_format+0xe50> <== NOT EXECUTED
202289c: 07 00 81 9f sethi %hi(0x2067c00), %g3 <== NOT EXECUTED
(rqdata->VolLabel != NULL)) {
from = rqdata->VolLabel;
fmt_params->VolLabel_present = true;
20228a0: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20228a4: c2 2f bf a0 stb %g1, [ %fp + -96 ] <== NOT EXECUTED
}
/*=========================================================================*\
| Function: |
\*-------------------------------------------------------------------------*/
int msdos_format
20228a8: a0 04 20 48 add %l0, 0x48, %l0 <== 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;
20228ac: 82 07 bf 95 add %fp, -107, %g1 <== NOT EXECUTED
/*
* non-printable character in given name, so keep stuck
* at that character and replace all following characters
* with a ' '
*/
*to++=' ';
20228b0: 10 80 00 31 b 2022974 <msdos_format+0xa84> <== NOT EXECUTED
20228b4: 98 10 20 20 mov 0x20, %o4 <== NOT EXECUTED
}
/*
* Phuuu.... That's it.
*/
if (ret_val != 0) {
rtems_set_errno_and_return_minus_one(ret_val);
20228b8: 40 00 98 e3 call 2048c44 <__errno> <== NOT EXECUTED
20228bc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20228c0: e8 22 00 00 st %l4, [ %o0 ] <== NOT EXECUTED
20228c4: 82 10 20 00 clr %g1 <== 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) &&
20228c8: 80 88 60 ff btst 0xff, %g1 <== NOT EXECUTED
20228cc: 02 bf fd ab be 2021f78 <msdos_format+0x88> <== NOT EXECUTED
20228d0: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
(rqdata != NULL) &&
!(rqdata->quick_format)) {
20228d4: c2 0e 60 16 ldub [ %i1 + 0x16 ], %g1 <== NOT EXECUTED
20228d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20228dc: 12 bf fe 1a bne 2022144 <msdos_format+0x254> <== NOT EXECUTED
20228e0: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
ret_val = msdos_format_fill_sectors
20228e4: d6 07 bf 5c ld [ %fp + -164 ], %o3 <== NOT EXECUTED
20228e8: d8 07 bf 58 ld [ %fp + -168 ], %o4 <== NOT EXECUTED
20228ec: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20228f0: 94 10 20 00 clr %o2 <== NOT EXECUTED
20228f4: 7f ff fd 0f call 2021d30 <msdos_format_fill_sectors> <== NOT EXECUTED
20228f8: 9a 10 3f e5 mov -27, %o5 <== NOT EXECUTED
20228fc: 10 bf fd 9e b 2021f74 <msdos_format+0x84> <== NOT EXECUTED
2022900: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
}
else { /* FAT32 */
fat_capacity = fatdata_cluster_cnt * 4;
}
sectors_per_fat = ((fat_capacity
2022904: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
2022908: 91 2a 20 01 sll %o0, 1, %o0 <== NOT EXECUTED
202290c: 90 02 00 16 add %o0, %l6, %o0 <== NOT EXECUTED
2022910: 91 32 20 01 srl %o0, 1, %o0 <== NOT EXECUTED
2022914: 40 00 f9 f9 call 20610f8 <.udiv> <== NOT EXECUTED
2022918: 90 06 c0 08 add %i3, %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)) ||
202291c: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
2022920: 7f ff 80 9b call 2002b8c <.umul> <== NOT EXECUTED
2022924: d0 27 bd 48 st %o0, [ %fp + -696 ] <== NOT EXECUTED
2022928: 82 05 7f ff add %l5, -1, %g1 <== NOT EXECUTED
202292c: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
2022930: 40 00 f9 f2 call 20610f8 <.udiv> <== NOT EXECUTED
2022934: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED
2022938: 90 25 80 08 sub %l6, %o0, %o0 <== NOT EXECUTED
202293c: 80 a2 2f f5 cmp %o0, 0xff5 <== NOT EXECUTED
2022940: 18 80 00 03 bgu 202294c <msdos_format+0xa5c> <== NOT EXECUTED
2022944: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2022948: 82 10 20 00 clr %g1 <== NOT EXECUTED
202294c: 80 88 60 ff btst 0xff, %g1 <== NOT EXECUTED
2022950: 02 bf ff 70 be 2022710 <msdos_format+0x820> <== NOT EXECUTED
2022954: ac 10 20 00 clr %l6 <== NOT EXECUTED
((fattype == FAT_FAT16) && (data_cluster_cnt > FAT_FAT16_MAX_CLN))) {
sectors_per_cluster *= 2;
2022958: 10 bf ff 99 b 20227bc <msdos_format+0x8cc> <== NOT EXECUTED
202295c: ab 2d 60 01 sll %l5, 1, %l5 <== NOT EXECUTED
* at that character and replace all following characters
* with a ' '
*/
*to++=' ';
}
*to = '\0';
2022960: c0 28 40 00 clrb [ %g1 ] <== NOT EXECUTED
2022964: 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;
2022968: 80 a0 40 10 cmp %g1, %l0 <== NOT EXECUTED
202296c: 02 80 00 0f be 20229a8 <msdos_format+0xab8> <== NOT EXECUTED
2022970: 86 00 e0 01 inc %g3 <== NOT EXECUTED
cnt < (sizeof(fmt_params->VolLabel)-1);
cnt++) {
if (isprint((unsigned char)*from)) {
2022974: c4 08 c0 00 ldub [ %g3 ], %g2 <== NOT EXECUTED
2022978: 9a 08 a0 ff and %g2, 0xff, %o5 <== NOT EXECUTED
202297c: 9a 01 00 0d add %g4, %o5, %o5 <== NOT EXECUTED
2022980: da 4b 60 01 ldsb [ %o5 + 1 ], %o5 <== NOT EXECUTED
2022984: 80 8b 60 97 btst 0x97, %o5 <== NOT EXECUTED
2022988: 32 bf ff f6 bne,a 2022960 <msdos_format+0xa70> <== NOT EXECUTED
202298c: c4 28 7f ff stb %g2, [ %g1 + -1 ] <== NOT EXECUTED
/*
* non-printable character in given name, so keep stuck
* at that character and replace all following characters
* with a ' '
*/
*to++=' ';
2022990: d8 28 7f ff stb %o4, [ %g1 + -1 ] <== NOT EXECUTED
}
*to = '\0';
2022994: c0 28 40 00 clrb [ %g1 ] <== NOT EXECUTED
2022998: 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;
202299c: 80 a0 40 10 cmp %g1, %l0 <== NOT EXECUTED
20229a0: 32 bf ff f6 bne,a 2022978 <msdos_format+0xa88> <== NOT EXECUTED
20229a4: c4 08 c0 00 ldub [ %g3 ], %g2 <== NOT EXECUTED
{
int ret_val = 0;
int rc;
struct timeval time_value;
rc = rtems_clock_get_tod_timeval(&time_value);
20229a8: 7f ff a9 31 call 200ce6c <rtems_clock_get_tod_timeval> <== NOT EXECUTED
20229ac: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED
if (rc == RTEMS_SUCCESSFUL) {
20229b0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20229b4: 12 80 00 88 bne 2022bd4 <msdos_format+0xce4> <== NOT EXECUTED
20229b8: 01 00 00 00 nop <== NOT EXECUTED
*volid_ptr = time_value.tv_sec + time_value.tv_sec;
20229bc: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
20229c0: 83 28 60 01 sll %g1, 1, %g1 <== NOT EXECUTED
20229c4: c2 27 bf a4 st %g1, [ %fp + -92 ] <== NOT EXECUTED
int ret_val = 0;
int rc;
struct timeval time_value;
rc = rtems_clock_get_tod_timeval(&time_value);
if (rc == RTEMS_SUCCESSFUL) {
20229c8: 80 a0 00 19 cmp %g0, %i1 <== NOT EXECUTED
20229cc: b0 10 20 00 clr %i0 <== NOT EXECUTED
20229d0: 10 bf ff be b 20228c8 <msdos_format+0x9d8> <== NOT EXECUTED
20229d4: 82 40 20 00 addx %g0, 0, %g1 <== NOT EXECUTED
}
else {
/*
* for FAT32: root directory is in cluster 2
*/
fmt_params->root_dir_start_sec =
20229d8: 7f ff 80 6d call 2002b8c <.umul> <== NOT EXECUTED
20229dc: 90 0e 20 ff and %i0, 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;
20229e0: 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 =
20229e4: 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;
20229e8: c2 27 bf 7c st %g1, [ %fp + -132 ] <== NOT EXECUTED
}
else {
/*
* for FAT32: root directory is in cluster 2
*/
fmt_params->root_dir_start_sec =
20229ec: 10 bf ff 60 b 202276c <msdos_format+0x87c> <== NOT EXECUTED
20229f0: d0 27 bf 78 st %o0, [ %fp + -136 ] <== NOT EXECUTED
20229f4: e6 07 bf 60 ld [ %fp + -160 ], %l3 <== NOT EXECUTED
20229f8: 10 bf ff 54 b 2022748 <msdos_format+0x858> <== NOT EXECUTED
20229fc: f0 0f bf 88 ldub [ %fp + -120 ], %i0 <== NOT EXECUTED
fatdata_cluster_cnt = fatdata_sec_cnt/sectors_per_cluster;
if (fattype == FAT_FAT12) {
fat_capacity = fatdata_cluster_cnt * 3 / 2;
}
else if (fattype == FAT_FAT16) {
fat_capacity = fatdata_cluster_cnt * 2;
2022a00: 10 bf ff 34 b 20226d0 <msdos_format+0x7e0> <== NOT EXECUTED
2022a04: 91 2d a0 01 sll %l6, 1, %o0 <== NOT EXECUTED
ret_val = EINVAL;
}
}
if (ret_val == 0)
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
2022a08: 15 00 81 9f sethi %hi(0x2067c00), %o2 <== NOT EXECUTED
* determine number of FATs
*/
if (ret_val == 0) {
if ((rqdata == NULL) ||
(rqdata->fat_num == 0)) {
fmt_params->fat_num = 2;
2022a0c: 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,
2022a10: 94 12 a3 18 or %o2, 0x318, %o2 <== NOT EXECUTED
2022a14: 90 10 20 00 clr %o0 <== NOT EXECUTED
2022a18: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
2022a1c: 7f ff fc 95 call 2021c70 <msdos_format_printf> <== NOT EXECUTED
2022a20: 96 10 20 02 mov 2, %o3 <== 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
2022a24: 10 bf fd b8 b 2022104 <msdos_format+0x214> <== NOT EXECUTED
2022a28: c2 07 bf 5c ld [ %fp + -164 ], %g1 <== 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) {
2022a2c: b0 10 20 00 clr %i0 <== NOT EXECUTED
2022a30: aa 10 20 00 clr %l5 <== NOT EXECUTED
2022a34: a8 10 20 00 clr %l4 <== NOT EXECUTED
2022a38: 10 bf fd e8 b 20221d8 <msdos_format+0x2e8> <== NOT EXECUTED
2022a3c: a6 10 20 00 clr %l3 <== 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) {
fmt_params->files_per_root_dir = 512;
2022a40: 82 1f 60 02 xor %i5, 2, %g1 <== NOT EXECUTED
2022a44: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
2022a48: a6 40 20 00 addx %g0, 0, %l3 <== NOT EXECUTED
2022a4c: a6 20 00 13 neg %l3 <== NOT EXECUTED
2022a50: a6 0c fe 40 and %l3, -448, %l3 <== NOT EXECUTED
2022a54: 10 bf fe f4 b 2022624 <msdos_format+0x734> <== NOT EXECUTED
2022a58: a6 04 e1 ff add %l3, 0x1ff, %l3 <== NOT EXECUTED
fmt_params->fattype = FAT_FAT32;
}
else if ((rqdata != NULL) &&
(rqdata->fattype != MSDOS_FMT_FATANY)) {
ret_val = -1;
errno = EINVAL;
2022a5c: 40 00 98 7a call 2048c44 <__errno> <== NOT EXECUTED
2022a60: a8 10 3f ff mov -1, %l4 <== NOT EXECUTED
2022a64: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
2022a68: 10 bf fe c1 b 202256c <msdos_format+0x67c> <== NOT EXECUTED
2022a6c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
\*=========================================================================*/
{
/*
* clear fsinfo sector data
*/
memset(fsinfo,0,FAT_TOTAL_FSINFO_SIZE);
2022a70: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2022a74: 40 00 a6 53 call 204c3c0 <memset> <== NOT EXECUTED
2022a78: 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,
2022a7c: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
}
/*
* write fsinfo sector
*/
if ((ret_val == 0) &&
(fmt_params.fsinfo_sec != 0)) {
2022a80: d2 07 bf 84 ld [ %fp + -124 ], %o1 <== NOT EXECUTED
/*
* write "empty" values for free cluster count and next cluster number
*/
FAT_SET_FSINFO_FREE_CLUSTER_COUNT(fsinfo+FAT_FSI_INFO,
0xffffffff);
FAT_SET_FSINFO_NEXT_FREE_CLUSTER (fsinfo+FAT_FSI_INFO,
2022a84: 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,
2022a88: c2 2c 21 e8 stb %g1, [ %l0 + 0x1e8 ] <== NOT EXECUTED
2022a8c: c2 2c 21 e9 stb %g1, [ %l0 + 0x1e9 ] <== NOT EXECUTED
2022a90: c2 2c 21 ea stb %g1, [ %l0 + 0x1ea ] <== NOT EXECUTED
2022a94: c2 2c 21 eb stb %g1, [ %l0 + 0x1eb ] <== NOT EXECUTED
0xffffffff);
FAT_SET_FSINFO_NEXT_FREE_CLUSTER (fsinfo+FAT_FSI_INFO,
2022a98: c2 2c 21 ec stb %g1, [ %l0 + 0x1ec ] <== NOT EXECUTED
2022a9c: c2 2c 21 ed stb %g1, [ %l0 + 0x1ed ] <== NOT EXECUTED
2022aa0: 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 );
2022aa4: 82 10 20 52 mov 0x52, %g1 <== NOT EXECUTED
2022aa8: c2 2c 20 01 stb %g1, [ %l0 + 1 ] <== NOT EXECUTED
2022aac: c2 2c 00 00 stb %g1, [ %l0 ] <== NOT EXECUTED
2022ab0: 82 10 20 61 mov 0x61, %g1 <== NOT EXECUTED
FAT_SET_FSINFO_STRUC_SIGNATURE(fsinfo,FAT_FSINFO_STRUC_SIGNATURE_VALUE);
2022ab4: 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 );
2022ab8: c2 2c 20 02 stb %g1, [ %l0 + 2 ] <== NOT EXECUTED
2022abc: 82 10 20 41 mov 0x41, %g1 <== NOT EXECUTED
FAT_SET_FSINFO_STRUC_SIGNATURE(fsinfo,FAT_FSINFO_STRUC_SIGNATURE_VALUE);
2022ac0: 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 );
2022ac4: c2 2c 20 03 stb %g1, [ %l0 + 3 ] <== NOT EXECUTED
FAT_SET_FSINFO_STRUC_SIGNATURE(fsinfo,FAT_FSINFO_STRUC_SIGNATURE_VALUE);
2022ac8: 82 10 20 72 mov 0x72, %g1 <== NOT EXECUTED
2022acc: c2 2c 21 e5 stb %g1, [ %l0 + 0x1e5 ] <== NOT EXECUTED
2022ad0: c2 2c 21 e4 stb %g1, [ %l0 + 0x1e4 ] <== NOT EXECUTED
FAT_SET_FSINFO_TRAIL_SIGNATURE(fsinfo,FAT_FSINFO_TRAIL_SIGNATURE_VALUE);
2022ad4: 82 10 20 55 mov 0x55, %g1 <== NOT EXECUTED
2022ad8: c2 2c 21 fe stb %g1, [ %l0 + 0x1fe ] <== NOT EXECUTED
2022adc: 82 10 3f aa mov -86, %g1 <== NOT EXECUTED
ret_val = msdos_format_gen_fsinfo(tmp_sec);
}
/*
* write fsinfo sector
*/
if ((ret_val == 0) &&
2022ae0: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
2022ae4: 02 bf fe 2b be 2022390 <msdos_format+0x4a0> <== NOT EXECUTED
2022ae8: c2 2c 21 ff stb %g1, [ %l0 + 0x1ff ] <== NOT EXECUTED
(fmt_params.fsinfo_sec != 0)) {
ret_val = msdos_format_write_sec(fd,
2022aec: d4 07 bf 58 ld [ %fp + -168 ], %o2 <== NOT EXECUTED
2022af0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2022af4: 7f ff fc 74 call 2021cc4 <msdos_format_write_sec> <== NOT EXECUTED
2022af8: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
}
/*
* write FAT as all empty
* -> write all FAT sectors as zero
*/
if (ret_val == 0) {
2022afc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2022b00: 12 bf fd 21 bne 2021f84 <msdos_format+0x94> <== NOT EXECUTED
2022b04: 80 a4 7f ff cmp %l1, -1 <== NOT EXECUTED
ret_val = msdos_format_fill_sectors
2022b08: 10 bf fe 23 b 2022394 <msdos_format+0x4a4> <== NOT EXECUTED
2022b0c: d2 07 bf 68 ld [ %fp + -152 ], %o1 <== NOT EXECUTED
if ((ret_val == 0) &&
(fmt_params.mbr_copy_sec != 0)) {
/*
* write copy of MBR
*/
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
2022b10: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
2022b14: 15 00 81 9f sethi %hi(0x2067c00), %o2 <== NOT EXECUTED
2022b18: 7f ff fc 56 call 2021c70 <msdos_format_printf> <== NOT EXECUTED
2022b1c: 94 12 a3 b0 or %o2, 0x3b0, %o2 ! 2067fb0 <rtems_rtc_shell_usage+0xed0><== NOT EXECUTED
"write back up MRB sector\n");
ret_val = msdos_format_write_sec(fd,
2022b20: d2 07 bf 80 ld [ %fp + -128 ], %o1 <== NOT EXECUTED
2022b24: d4 07 bf 58 ld [ %fp + -168 ], %o2 <== NOT EXECUTED
2022b28: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2022b2c: 7f ff fc 66 call 2021cc4 <msdos_format_write_sec> <== NOT EXECUTED
2022b30: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
}
}
/*
* for FAT32: initialize info sector on disk
*/
if ((ret_val == 0) &&
2022b34: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2022b38: 02 bf fe 13 be 2022384 <msdos_format+0x494> <== NOT EXECUTED
2022b3c: c2 07 bf 84 ld [ %fp + -124 ], %g1 <== NOT EXECUTED
/*
* cleanup:
* sync and unlock disk
* free any data structures (not needed now)
*/
if (fd != -1) {
2022b40: 10 bf fd 11 b 2021f84 <msdos_format+0x94> <== NOT EXECUTED
2022b44: 80 a4 7f ff cmp %l1, -1 <== NOT EXECUTED
memset(tmp_sec,0,sizeof(tmp_sec));
switch(fmt_params.fattype) {
case FAT_FAT12:
/* LSBits of FAT entry 0: media_type */
FAT_SET_VAL8(tmp_sec,0,(fmt_params.media_code));
2022b48: 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)));
2022b4c: 82 10 3f 8f mov -113, %g1 <== NOT EXECUTED
2022b50: c2 2c 20 01 stb %g1, [ %l0 + 1 ] <== NOT EXECUTED
/* MSBits of FAT entry 1: MSBits of EOC */
FAT_SET_VAL8(tmp_sec,2,(FAT_FAT12_EOC >> 4));
2022b54: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
2022b58: c2 2c 20 02 stb %g1, [ %l0 + 2 ] <== 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)) ||
2022b5c: c2 0f bf 88 ldub [ %fp + -120 ], %g1 <== NOT EXECUTED
2022b60: 82 20 00 01 neg %g1 <== NOT EXECUTED
2022b64: 10 bf fe 5d b 20224d8 <msdos_format+0x5e8> <== NOT EXECUTED
2022b68: 83 30 60 1f srl %g1, 0x1f, %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);
2022b6c: c4 0f bf 89 ldub [ %fp + -119 ], %g2 <== NOT EXECUTED
2022b70: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
/* FAT entry 1: EOC */
FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);
2022b74: c2 2c 20 06 stb %g1, [ %l0 + 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);
2022b78: c2 2c 20 02 stb %g1, [ %l0 + 2 ] <== NOT EXECUTED
2022b7c: c2 2c 20 03 stb %g1, [ %l0 + 3 ] <== NOT EXECUTED
/* FAT entry 1: EOC */
FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);
2022b80: c2 2c 20 05 stb %g1, [ %l0 + 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);
2022b84: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED
2022b88: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff <PROM_START+0xffff> <== NOT EXECUTED
2022b8c: 84 10 bf 00 or %g2, -256, %g2 <== NOT EXECUTED
2022b90: c4 2c 00 00 stb %g2, [ %l0 ] <== NOT EXECUTED
2022b94: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED
/* FAT entry 1: EOC */
FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);
2022b98: 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);
2022b9c: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
/* FAT entry 1: EOC */
FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);
2022ba0: c2 2c 20 04 stb %g1, [ %l0 + 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);
2022ba4: c4 2c 20 01 stb %g2, [ %l0 + 1 ] <== NOT EXECUTED
/* FAT entry 1: EOC */
FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);
2022ba8: 82 10 20 0f mov 0xf, %g1 <== NOT EXECUTED
2022bac: 10 bf fe 3e b 20224a4 <msdos_format+0x5b4> <== NOT EXECUTED
2022bb0: c2 2c 20 07 stb %g1, [ %l0 + 7 ] <== 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);
2022bb4: c4 0f bf 89 ldub [ %fp + -119 ], %g2 <== NOT EXECUTED
2022bb8: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
2022bbc: c4 2c 00 00 stb %g2, [ %l0 ] <== NOT EXECUTED
/* FAT entry 1: EOC */
FAT_SET_VAL16(tmp_sec,2,FAT_FAT16_EOC);
2022bc0: c2 2c 20 03 stb %g1, [ %l0 + 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);
2022bc4: c2 2c 20 01 stb %g1, [ %l0 + 1 ] <== NOT EXECUTED
/* FAT entry 1: EOC */
FAT_SET_VAL16(tmp_sec,2,FAT_FAT16_EOC);
2022bc8: 82 10 3f f8 mov -8, %g1 <== NOT EXECUTED
break;
2022bcc: 10 bf ff e4 b 2022b5c <msdos_format+0xc6c> <== NOT EXECUTED
2022bd0: c2 2c 20 02 stb %g1, [ %l0 + 2 ] <== NOT EXECUTED
rc = rtems_clock_get_tod_timeval(&time_value);
if (rc == RTEMS_SUCCESSFUL) {
*volid_ptr = time_value.tv_sec + time_value.tv_sec;
}
else {
*volid_ptr = rand();
2022bd4: 40 00 ad 2a call 204e07c <rand> <== NOT EXECUTED
2022bd8: 01 00 00 00 nop <== NOT EXECUTED
2022bdc: 10 bf ff 7b b 20229c8 <msdos_format+0xad8> <== NOT EXECUTED
2022be0: d0 27 bf a4 st %o0, [ %fp + -92 ] <== NOT EXECUTED
< ((uint32_t)FAT_FAT12_MAX_CLN)*8) {
fmt_params->fattype = FAT_FAT12;
/* start trying with small clusters */
fmt_params->sectors_per_cluster = 2;
}
else if (fmt_params->totl_sector_cnt
2022be4: 84 10 a2 9f or %g2, 0x29f, %g2 <== NOT EXECUTED
2022be8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022bec: 18 80 00 59 bgu 2022d50 <msdos_format+0xe60> <== NOT EXECUTED
2022bf0: 07 10 00 00 sethi %hi(0x40000000), %g3 <== NOT EXECUTED
< ((uint32_t)FAT_FAT16_MAX_CLN)*32) {
fmt_params->fattype = FAT_FAT16;
2022bf4: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED
2022bf8: c2 2f bf 8a stb %g1, [ %fp + -118 ] <== NOT EXECUTED
/* start trying with small clusters */
fmt_params->sectors_per_cluster = 2;
2022bfc: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED
2022c00: 10 bf fd 4a b 2022128 <msdos_format+0x238> <== NOT EXECUTED
2022c04: c2 27 bf 64 st %g1, [ %fp + -156 ] <== NOT EXECUTED
? "FAT12 "
: "FAT16 ",
FAT_BR_FILSYSTYPE_SIZE);
}
else {
FAT_SET_BR_SECTORS_PER_FAT32(mbr ,fmt_params->sectors_per_fat);
2022c08: c6 07 bf 68 ld [ %fp + -152 ], %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*/
FAT_SET_BR_FAT32_BK_BOOT_SECTOR(mbr, fmt_params->mbr_copy_sec ); /* Put MBR copy to rsrvd sec */
2022c0c: c8 07 bf 80 ld [ %fp + -128 ], %g4 <== NOT EXECUTED
}
else {
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 */
2022c10: c4 2c 20 2c stb %g2, [ %l0 + 0x2c ] <== NOT EXECUTED
FAT_SET_BR_FAT32_FS_INFO_SECTOR(mbr, 1); /* Put fsinfo to rsrvd sec 1*/
2022c14: c2 2c 20 30 stb %g1, [ %l0 + 0x30 ] <== NOT EXECUTED
? "FAT12 "
: "FAT16 ",
FAT_BR_FILSYSTYPE_SIZE);
}
else {
FAT_SET_BR_SECTORS_PER_FAT32(mbr ,fmt_params->sectors_per_fat);
2022c18: c6 2c 20 24 stb %g3, [ %l0 + 0x24 ] <== 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 */
2022c1c: c8 2c 20 32 stb %g4, [ %l0 + 0x32 ] <== 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);
2022c20: c0 2c 20 28 clrb [ %l0 + 0x28 ] <== NOT EXECUTED
2022c24: c0 2c 20 29 clrb [ %l0 + 0x29 ] <== NOT EXECUTED
FAT_SET_BR_FSVER(mbr , 0); /* FAT32 Version:0.0 */
2022c28: c0 2c 20 2a clrb [ %l0 + 0x2a ] <== NOT EXECUTED
2022c2c: c0 2c 20 2b clrb [ %l0 + 0x2b ] <== NOT EXECUTED
FAT_SET_BR_FAT32_ROOT_CLUSTER(mbr , 2); /* put root dir to cluster 2 */
2022c30: c0 2c 20 2d clrb [ %l0 + 0x2d ] <== NOT EXECUTED
2022c34: c0 2c 20 2e clrb [ %l0 + 0x2e ] <== NOT EXECUTED
2022c38: c0 2c 20 2f clrb [ %l0 + 0x2f ] <== NOT EXECUTED
FAT_SET_BR_FAT32_FS_INFO_SECTOR(mbr, 1); /* Put fsinfo to rsrvd sec 1*/
2022c3c: c0 2c 20 31 clrb [ %l0 + 0x31 ] <== NOT EXECUTED
? "FAT12 "
: "FAT16 ",
FAT_BR_FILSYSTYPE_SIZE);
}
else {
FAT_SET_BR_SECTORS_PER_FAT32(mbr ,fmt_params->sectors_per_fat);
2022c40: 83 30 e0 18 srl %g3, 0x18, %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 */
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 */
2022c44: 89 31 20 08 srl %g4, 8, %g4 <== NOT EXECUTED
? "FAT12 "
: "FAT16 ",
FAT_BR_FILSYSTYPE_SIZE);
}
else {
FAT_SET_BR_SECTORS_PER_FAT32(mbr ,fmt_params->sectors_per_fat);
2022c48: c2 2c 20 27 stb %g1, [ %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 */
2022c4c: c8 2c 20 33 stb %g4, [ %l0 + 0x33 ] <== NOT EXECUTED
memset(FAT_GET_ADDR_BR_FAT32_RESERVED(mbr),0,FAT_BR_FAT32_RESERVED_SIZE);
2022c50: c0 27 bd 8c clr [ %fp + -628 ] <== NOT EXECUTED
FAT_SET_BR_FAT32_DRVNUM(mbr , 0); /* only needed for INT13... */
2022c54: c0 2c 20 40 clrb [ %l0 + 0x40 ] <== NOT EXECUTED
FAT_SET_BR_FAT32_RSVD1(mbr , 0); /* fill with zero */
2022c58: 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 */
2022c5c: c0 2c 20 43 clrb [ %l0 + 0x43 ] <== NOT EXECUTED
2022c60: c0 2c 20 44 clrb [ %l0 + 0x44 ] <== NOT EXECUTED
2022c64: c0 2c 20 45 clrb [ %l0 + 0x45 ] <== NOT EXECUTED
2022c68: c0 2c 20 46 clrb [ %l0 + 0x46 ] <== 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);
2022c6c: 84 07 bd 8c add %fp, -628, %g2 <== 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);
FAT_SET_BR_FAT32_VOLID(mbr , 0); /* not set */
memset(FAT_GET_ADDR_BR_FAT32_VOLLAB(mbr) ,0,FAT_BR_VOLLAB_SIZE);
2022c70: 82 07 bd 9f add %fp, -609, %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 */
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);
2022c74: c0 20 a0 08 clr [ %g2 + 8 ] <== 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);
FAT_SET_BR_FAT32_VOLID(mbr , 0); /* not set */
memset(FAT_GET_ADDR_BR_FAT32_VOLLAB(mbr) ,0,FAT_BR_VOLLAB_SIZE);
2022c78: c0 28 60 01 clrb [ %g1 + 1 ] <== NOT EXECUTED
2022c7c: c0 28 60 02 clrb [ %g1 + 2 ] <== NOT EXECUTED
2022c80: c0 28 60 03 clrb [ %g1 + 3 ] <== NOT EXECUTED
2022c84: c0 28 60 04 clrb [ %g1 + 4 ] <== 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);
2022c88: c0 20 a0 04 clr [ %g2 + 4 ] <== 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);
FAT_SET_BR_FAT32_VOLID(mbr , 0); /* not set */
memset(FAT_GET_ADDR_BR_FAT32_VOLLAB(mbr) ,0,FAT_BR_VOLLAB_SIZE);
2022c8c: c0 2f bd 9f clrb [ %fp + -609 ] <== NOT EXECUTED
? "FAT12 "
: "FAT16 ",
FAT_BR_FILSYSTYPE_SIZE);
}
else {
FAT_SET_BR_SECTORS_PER_FAT32(mbr ,fmt_params->sectors_per_fat);
2022c90: 05 00 00 3f sethi %hi(0xfc00), %g2 <== NOT EXECUTED
2022c94: 84 10 a3 ff or %g2, 0x3ff, %g2 ! ffff <PROM_START+0xffff> <== NOT EXECUTED
2022c98: 84 08 c0 02 and %g3, %g2, %g2 <== NOT EXECUTED
2022c9c: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
2022ca0: c4 2c 20 25 stb %g2, [ %l0 + 0x25 ] <== 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);
2022ca4: 84 10 20 29 mov 0x29, %g2 <== NOT EXECUTED
? "FAT12 "
: "FAT16 ",
FAT_BR_FILSYSTYPE_SIZE);
}
else {
FAT_SET_BR_SECTORS_PER_FAT32(mbr ,fmt_params->sectors_per_fat);
2022ca8: 87 30 e0 10 srl %g3, 0x10, %g3 <== 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);
2022cac: c4 2c 20 42 stb %g2, [ %l0 + 0x42 ] <== NOT EXECUTED
? "FAT12 "
: "FAT16 ",
FAT_BR_FILSYSTYPE_SIZE);
}
else {
FAT_SET_BR_SECTORS_PER_FAT32(mbr ,fmt_params->sectors_per_fat);
2022cb0: c6 2c 20 26 stb %g3, [ %l0 + 0x26 ] <== 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);
FAT_SET_BR_FAT32_VOLID(mbr , 0); /* not set */
memset(FAT_GET_ADDR_BR_FAT32_VOLLAB(mbr) ,0,FAT_BR_VOLLAB_SIZE);
memcpy(FAT_GET_ADDR_BR_FAT32_FILSYSTYPE(mbr),
2022cb4: 05 00 00 11 sethi %hi(0x4400), %g2 <== NOT EXECUTED
2022cb8: 84 10 a2 41 or %g2, 0x241, %g2 ! 4641 <PROM_START+0x4641> <== 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);
FAT_SET_BR_FAT32_VOLID(mbr , 0); /* not set */
memset(FAT_GET_ADDR_BR_FAT32_VOLLAB(mbr) ,0,FAT_BR_VOLLAB_SIZE);
2022cbc: c0 28 60 05 clrb [ %g1 + 5 ] <== NOT EXECUTED
memcpy(FAT_GET_ADDR_BR_FAT32_FILSYSTYPE(mbr),
2022cc0: c4 37 bd aa sth %g2, [ %fp + -598 ] <== NOT EXECUTED
2022cc4: 05 00 00 15 sethi %hi(0x5400), %g2 <== NOT EXECUTED
2022cc8: 84 10 a0 33 or %g2, 0x33, %g2 ! 5433 <PROM_START+0x5433> <== 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);
FAT_SET_BR_FAT32_VOLID(mbr , 0); /* not set */
memset(FAT_GET_ADDR_BR_FAT32_VOLLAB(mbr) ,0,FAT_BR_VOLLAB_SIZE);
2022ccc: c0 28 60 0a clrb [ %g1 + 0xa ] <== NOT EXECUTED
2022cd0: c0 28 60 06 clrb [ %g1 + 6 ] <== NOT EXECUTED
2022cd4: c0 28 60 07 clrb [ %g1 + 7 ] <== NOT EXECUTED
2022cd8: c0 28 60 08 clrb [ %g1 + 8 ] <== NOT EXECUTED
2022cdc: c0 28 60 09 clrb [ %g1 + 9 ] <== NOT EXECUTED
memcpy(FAT_GET_ADDR_BR_FAT32_FILSYSTYPE(mbr),
2022ce0: 82 07 bd aa add %fp, -598, %g1 <== NOT EXECUTED
2022ce4: c4 30 60 02 sth %g2, [ %g1 + 2 ] <== NOT EXECUTED
2022ce8: 05 00 00 0c sethi %hi(0x3000), %g2 <== NOT EXECUTED
2022cec: 84 10 a2 20 or %g2, 0x220, %g2 ! 3220 <PROM_START+0x3220> <== NOT EXECUTED
2022cf0: c4 30 60 04 sth %g2, [ %g1 + 4 ] <== NOT EXECUTED
2022cf4: 05 00 00 08 sethi %hi(0x2000), %g2 <== NOT EXECUTED
2022cf8: 84 10 a0 20 or %g2, 0x20, %g2 ! 2020 <PROM_START+0x2020> <== NOT EXECUTED
2022cfc: 10 bf fd 87 b 2022318 <msdos_format+0x428> <== NOT EXECUTED
2022d00: c4 30 60 06 sth %g2, [ %g1 + 6 ] <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
"sectors per cluster: %d\n", fmt_params->sectors_per_cluster);
if (fmt_params->fattype == FAT_FAT32) {
/* recommended: for FAT32, always set reserved sector count to 32 */
fmt_params->rsvd_sector_cnt = 32;
2022d04: 82 10 20 20 mov 0x20, %g1 <== NOT EXECUTED
2022d08: 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;
2022d0c: 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;
2022d10: c0 27 bf 70 clr [ %fp + -144 ] <== NOT EXECUTED
/* location of copy of MBR */
fmt_params->mbr_copy_sec = 6;
2022d14: c2 27 bf 80 st %g1, [ %fp + -128 ] <== NOT EXECUTED
/* location of fsinfo sector */
fmt_params->fsinfo_sec = 1;
2022d18: 90 10 20 00 clr %o0 <== NOT EXECUTED
2022d1c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2022d20: ee 07 bf 58 ld [ %fp + -168 ], %l7 <== NOT EXECUTED
2022d24: 10 bf fe 49 b 2022648 <msdos_format+0x758> <== NOT EXECUTED
2022d28: c2 27 bf 84 st %g1, [ %fp + -124 ] <== 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;
2022d2c: 40 00 97 c6 call 2048c44 <__errno> <== NOT EXECUTED
2022d30: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2022d34: 82 10 20 19 mov 0x19, %g1 <== NOT EXECUTED
2022d38: 10 bf fc 8e b 2021f70 <msdos_format+0x80> <== NOT EXECUTED
2022d3c: c2 22 00 00 st %g1, [ %o0 ] <== 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) &&
2022d40: 10 bf fe da b 20228a8 <msdos_format+0x9b8> <== NOT EXECUTED
2022d44: 86 10 e3 58 or %g3, 0x358, %g3 <== 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) &&
2022d48: 10 bf fe 93 b 2022794 <msdos_format+0x8a4> <== NOT EXECUTED
2022d4c: 86 10 e3 50 or %g3, 0x350, %g3 <== 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;
2022d50: aa 85 40 03 addcc %l5, %g3, %l5 <== NOT EXECUTED
2022d54: 83 35 60 1e srl %l5, 0x1e, %g1 <== NOT EXECUTED
2022d58: 84 10 20 00 clr %g2 <== 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)
2022d5c: 86 10 20 01 mov 1, %g3 <== 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;
2022d60: a8 45 00 02 addx %l4, %g2, %l4 <== NOT EXECUTED
2022d64: 89 2d 20 02 sll %l4, 2, %g4 <== NOT EXECUTED
2022d68: 88 11 00 01 or %g4, %g1, %g4 <== NOT EXECUTED
2022d6c: 10 80 00 04 b 2022d7c <msdos_format+0xe8c> <== NOT EXECUTED
2022d70: 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--)
2022d74: 02 80 00 06 be 2022d8c <msdos_format+0xe9c> <== NOT EXECUTED
2022d78: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
if ((gigs & (1 << b)) != 0)
2022d7c: 85 28 c0 01 sll %g3, %g1, %g2 <== NOT EXECUTED
2022d80: 80 88 80 04 btst %g2, %g4 <== NOT EXECUTED
2022d84: 02 bf ff fc be 2022d74 <msdos_format+0xe84> <== NOT EXECUTED
2022d88: 82 80 7f ff addcc %g1, -1, %g1 <== 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;
2022d8c: 82 10 20 04 mov 4, %g1 <== 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;
2022d90: c4 27 bf 64 st %g2, [ %fp + -156 ] <== 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;
2022d94: 10 bf fc e5 b 2022128 <msdos_format+0x238> <== NOT EXECUTED
2022d98: c2 2f bf 8a stb %g1, [ %fp + -118 ] <== 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) {
2022d9c: 10 bf fe 0f b 20225d8 <msdos_format+0x6e8> <== NOT EXECUTED
2022da0: c2 27 bf 64 st %g1, [ %fp + -156 ] <== NOT EXECUTED
else {
fmt_params->media_code = rqdata->media;
}
}
else {
fmt_params->media_code = FAT_BR_MEDIA_FIXED;
2022da4: 82 10 3f f8 mov -8, %g1 <== NOT EXECUTED
2022da8: 10 bf fe 68 b 2022748 <msdos_format+0x858> <== NOT EXECUTED
2022dac: c2 2f bf 89 stb %g1, [ %fp + -119 ] <== NOT EXECUTED
{0xF0,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF};
if (NULL==memchr(valid_media_codes,
rqdata->media,
sizeof(valid_media_codes))) {
ret_val = -1;
errno = EINVAL;
2022db0: 40 00 97 a5 call 2048c44 <__errno> <== NOT EXECUTED
2022db4: a8 10 3f ff mov -1, %l4 <== NOT EXECUTED
2022db8: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
2022dbc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2022dc0: e6 07 bf 60 ld [ %fp + -160 ], %l3 <== NOT EXECUTED
2022dc4: 10 bf fe 61 b 2022748 <msdos_format+0x858> <== NOT EXECUTED
2022dc8: f0 0f bf 88 ldub [ %fp + -120 ], %i0 <== NOT EXECUTED
02021d30 <msdos_format_fill_sectors>:
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
2021d30: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
/*
* allocate and fill buffer
*/
if (ret_val == 0) {
fill_buffer = malloc(sector_size);
2021d34: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
2021d38: 7f ff 9c ca call 2009060 <malloc> <== NOT EXECUTED
2021d3c: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
if (fill_buffer == NULL) {
2021d40: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2021d44: 02 80 00 4a be 2021e6c <msdos_format_fill_sectors+0x13c> <== NOT EXECUTED
2021d48: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
errno = ENOMEM;
ret_val = -1;
}
else {
memset(fill_buffer,fill_byte,sector_size);
2021d4c: 92 10 00 1d mov %i5, %o1 <== NOT EXECUTED
2021d50: 40 00 a9 9c call 204c3c0 <memset> <== NOT EXECUTED
2021d54: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
}
}
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
2021d58: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2021d5c: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
2021d60: 15 00 81 9f sethi %hi(0x2067c00), %o2 <== NOT EXECUTED
2021d64: 7f ff ff c3 call 2021c70 <msdos_format_printf> <== NOT EXECUTED
2021d68: 94 12 a2 b8 or %o2, 0x2b8, %o2 ! 2067eb8 <rtems_rtc_shell_usage+0xdd8><== NOT EXECUTED
"Filling : ");
/*
* write to consecutive sectors
*/
while ((ret_val == 0) &&
2021d6c: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2021d70: 02 80 00 59 be 2021ed4 <msdos_format_fill_sectors+0x1a4> <== NOT EXECUTED
2021d74: 83 2e e0 04 sll %i3, 4, %g1 <== NOT EXECUTED
2021d78: a7 2e e0 02 sll %i3, 2, %l3 <== NOT EXECUTED
(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, ".");
2021d7c: 2b 00 81 9f sethi %hi(0x2067c00), %l5 <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
"Filling : ");
/*
* write to consecutive sectors
*/
while ((ret_val == 0) &&
2021d80: a6 04 c0 01 add %l3, %g1, %l3 <== NOT EXECUTED
(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, ".");
2021d84: aa 15 62 d0 or %l5, 0x2d0, %l5 <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
"Filling : ");
/*
* write to consecutive sectors
*/
while ((ret_val == 0) &&
2021d88: 83 2c e0 02 sll %l3, 2, %g1 <== NOT EXECUTED
2021d8c: a8 10 00 1b mov %i3, %l4 <== NOT EXECUTED
2021d90: a6 04 c0 01 add %l3, %g1, %l3 <== NOT EXECUTED
2021d94: 10 80 00 11 b 2021dd8 <msdos_format_fill_sectors+0xa8> <== NOT EXECUTED
2021d98: ac 10 3f ff mov -1, %l6 <== 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);
2021d9c: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
2021da0: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
2021da4: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
2021da8: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
2021dac: 7f ff ff c6 call 2021cc4 <msdos_format_write_sec> <== NOT EXECUTED
2021db0: a8 05 3f ff add %l4, -1, %l4 <== NOT EXECUTED
start_sector++;
2021db4: 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);
2021db8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
"Filling : ");
/*
* write to consecutive sectors
*/
while ((ret_val == 0) &&
2021dbc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
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++;
sector_cnt--;
2021dc0: a6 04 ff 9c add %l3, -100, %l3 <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
"Filling : ");
/*
* write to consecutive sectors
*/
while ((ret_val == 0) &&
2021dc4: 12 80 00 1e bne 2021e3c <msdos_format_fill_sectors+0x10c> <== NOT EXECUTED
2021dc8: ac 10 00 12 mov %l2, %l6 <== NOT EXECUTED
2021dcc: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED
2021dd0: 02 80 00 1c be 2021e40 <msdos_format_fill_sectors+0x110> <== NOT EXECUTED
2021dd4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
(sector_cnt > 0)) {
int percent = (sector_cnt * 100) / total_sectors;
2021dd8: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
2021ddc: 40 00 fc c7 call 20610f8 <.udiv> <== NOT EXECUTED
2021de0: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
if (percent != last_percent) {
2021de4: 80 a2 00 16 cmp %o0, %l6 <== NOT EXECUTED
2021de8: 02 bf ff ed be 2021d9c <msdos_format_fill_sectors+0x6c> <== NOT EXECUTED
2021dec: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
if ((percent & 1) == 0)
2021df0: 80 8a 20 01 btst 1, %o0 <== NOT EXECUTED
2021df4: 12 bf ff eb bne 2021da0 <msdos_format_fill_sectors+0x70> <== NOT EXECUTED
2021df8: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, ".");
2021dfc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2021e00: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
2021e04: 7f ff ff 9b call 2021c70 <msdos_format_printf> <== NOT EXECUTED
2021e08: 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);
2021e0c: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
2021e10: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
2021e14: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
2021e18: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
2021e1c: 7f ff ff aa call 2021cc4 <msdos_format_write_sec> <== NOT EXECUTED
2021e20: a8 05 3f ff add %l4, -1, %l4 <== NOT EXECUTED
start_sector++;
2021e24: 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);
2021e28: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
"Filling : ");
/*
* write to consecutive sectors
*/
while ((ret_val == 0) &&
2021e2c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
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++;
sector_cnt--;
2021e30: a6 04 ff 9c add %l3, -100, %l3 <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
"Filling : ");
/*
* write to consecutive sectors
*/
while ((ret_val == 0) &&
2021e34: 02 bf ff e6 be 2021dcc <msdos_format_fill_sectors+0x9c> <== NOT EXECUTED
2021e38: ac 10 00 12 mov %l2, %l6 <== 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");
2021e3c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2021e40: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
2021e44: 15 00 81 9f sethi %hi(0x2067c00), %o2 <== NOT EXECUTED
2021e48: 7f ff ff 8a call 2021c70 <msdos_format_printf> <== NOT EXECUTED
2021e4c: 94 12 a2 c8 or %o2, 0x2c8, %o2 ! 2067ec8 <rtems_rtc_shell_usage+0xde8><== NOT EXECUTED
if (ret_val)
2021e50: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
2021e54: 12 80 00 16 bne 2021eac <msdos_format_fill_sectors+0x17c> <== NOT EXECUTED
2021e58: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
/*
* cleanup
*/
if (fill_buffer != NULL) {
free(fill_buffer);
2021e5c: 7f ff 9a a0 call 20088dc <free> <== NOT EXECUTED
2021e60: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
fill_buffer = NULL;
}
return ret_val;
}
2021e64: 81 c7 e0 08 ret <== NOT EXECUTED
2021e68: 81 e8 00 00 restore <== NOT EXECUTED
* allocate and fill buffer
*/
if (ret_val == 0) {
fill_buffer = malloc(sector_size);
if (fill_buffer == NULL) {
errno = ENOMEM;
2021e6c: 40 00 9b 76 call 2048c44 <__errno> <== NOT EXECUTED
2021e70: 01 00 00 00 nop <== NOT EXECUTED
2021e74: 82 10 20 0c mov 0xc, %g1 ! c <PROM_START+0xc> <== NOT EXECUTED
else {
memset(fill_buffer,fill_byte,sector_size);
}
}
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
2021e78: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
* allocate and fill buffer
*/
if (ret_val == 0) {
fill_buffer = malloc(sector_size);
if (fill_buffer == NULL) {
errno = ENOMEM;
2021e7c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
else {
memset(fill_buffer,fill_byte,sector_size);
}
}
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
2021e80: 15 00 81 9f sethi %hi(0x2067c00), %o2 <== NOT EXECUTED
2021e84: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2021e88: 7f ff ff 7a call 2021c70 <msdos_format_printf> <== NOT EXECUTED
2021e8c: 94 12 a2 b8 or %o2, 0x2b8, %o2 <== 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");
2021e90: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2021e94: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
2021e98: 15 00 81 9f sethi %hi(0x2067c00), %o2 <== NOT EXECUTED
2021e9c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2021ea0: 7f ff ff 74 call 2021c70 <msdos_format_printf> <== NOT EXECUTED
2021ea4: 94 12 a2 c8 or %o2, 0x2c8, %o2 <== NOT EXECUTED
if (ret_val)
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_INFO,
2021ea8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2021eac: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
2021eb0: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2021eb4: 15 00 81 9f sethi %hi(0x2067c00), %o2 <== NOT EXECUTED
2021eb8: 7f ff ff 6e call 2021c70 <msdos_format_printf> <== NOT EXECUTED
2021ebc: 94 12 a2 d8 or %o2, 0x2d8, %o2 ! 2067ed8 <rtems_rtc_shell_usage+0xdf8><== NOT EXECUTED
"filling error on sector: %d\n", start_sector);
/*
* cleanup
*/
if (fill_buffer != NULL) {
2021ec0: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
2021ec4: 12 bf ff e6 bne 2021e5c <msdos_format_fill_sectors+0x12c> <== NOT EXECUTED
2021ec8: 01 00 00 00 nop <== NOT EXECUTED
free(fill_buffer);
fill_buffer = NULL;
}
return ret_val;
}
2021ecc: 81 c7 e0 08 ret <== NOT EXECUTED
2021ed0: 81 e8 00 00 restore <== 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");
2021ed4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2021ed8: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
2021edc: 15 00 81 9f sethi %hi(0x2067c00), %o2 <== NOT EXECUTED
2021ee0: b0 10 20 00 clr %i0 <== NOT EXECUTED
2021ee4: 7f ff ff 63 call 2021c70 <msdos_format_printf> <== NOT EXECUTED
2021ee8: 94 12 a2 c8 or %o2, 0x2c8, %o2 <== NOT EXECUTED
2021eec: 30 bf ff dc b,a 2021e5c <msdos_format_fill_sectors+0x12c><== NOT EXECUTED
02021c70 <msdos_format_printf>:
*/
static void
msdos_format_printf (const msdos_format_request_param_t *rqdata,
int info_level,
const char *format, ...)
{
2021c70: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
va_list args;
va_start (args, format);
2021c74: 94 07 a0 50 add %fp, 0x50, %o2 <== NOT EXECUTED
2021c78: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED
2021c7c: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED
2021c80: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED
if (rqdata != NULL && rqdata->info_level >= info_level)
2021c84: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
2021c88: 02 80 00 0d be 2021cbc <msdos_format_printf+0x4c> <== NOT EXECUTED
2021c8c: d4 27 bf fc st %o2, [ %fp + -4 ] <== NOT EXECUTED
2021c90: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
2021c94: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED
2021c98: 06 80 00 09 bl 2021cbc <msdos_format_printf+0x4c> <== NOT EXECUTED
2021c9c: 21 00 81 be sethi %hi(0x206f800), %l0 <== NOT EXECUTED
{
vfprintf (stdout, format, args);
2021ca0: c2 04 22 c0 ld [ %l0 + 0x2c0 ], %g1 ! 206fac0 <_impure_ptr><== NOT EXECUTED
2021ca4: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
2021ca8: 40 00 d8 34 call 2057d78 <vfprintf> <== NOT EXECUTED
2021cac: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED
fflush (stdout);
2021cb0: c2 04 22 c0 ld [ %l0 + 0x2c0 ], %g1 <== NOT EXECUTED
2021cb4: 40 00 9c ee call 204906c <fflush> <== NOT EXECUTED
2021cb8: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED
2021cbc: 81 c7 e0 08 ret <== NOT EXECUTED
2021cc0: 81 e8 00 00 restore <== NOT EXECUTED
02021cc4 <msdos_format_write_sec>:
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
2021cc4: 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)) {
2021cc8: 94 10 20 00 clr %o2 <== NOT EXECUTED
2021ccc: 96 10 00 19 mov %i1, %o3 <== NOT EXECUTED
2021cd0: 90 10 20 00 clr %o0 <== NOT EXECUTED
2021cd4: 40 00 fe 61 call 2061658 <__muldi3> <== NOT EXECUTED
2021cd8: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
2021cdc: 84 10 00 08 mov %o0, %g2 <== NOT EXECUTED
2021ce0: 86 10 00 09 mov %o1, %g3 <== NOT EXECUTED
2021ce4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2021ce8: 92 10 00 02 mov %g2, %o1 <== NOT EXECUTED
2021cec: 94 10 00 03 mov %g3, %o2 <== NOT EXECUTED
2021cf0: 40 00 2e 34 call 202d5c0 <lseek> <== NOT EXECUTED
2021cf4: 96 10 20 00 clr %o3 <== NOT EXECUTED
2021cf8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2021cfc: 06 80 00 0b bl 2021d28 <msdos_format_write_sec+0x64> <== NOT EXECUTED
2021d00: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
ret_val = -1;
}
if (ret_val == 0) {
if (0 > write(fd,buffer,sector_size)) {
2021d04: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
2021d08: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2021d0c: 7f ff ab b5 call 200cbe0 <write> <== NOT EXECUTED
2021d10: b0 10 20 00 clr %i0 <== NOT EXECUTED
2021d14: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2021d18: 06 80 00 04 bl 2021d28 <msdos_format_write_sec+0x64> <== NOT EXECUTED
2021d1c: 01 00 00 00 nop <== NOT EXECUTED
ret_val = -1;
}
}
return ret_val;
}
2021d20: 81 c7 e0 08 ret <== NOT EXECUTED
2021d24: 81 e8 00 00 restore <== NOT EXECUTED
2021d28: 81 c7 e0 08 ret <== NOT EXECUTED
2021d2c: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
0203bd08 <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)
{
203bd08: 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;
203bd0c: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
203bd10: 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;
203bd14: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
203bd18: 94 10 20 00 clr %o2 <== NOT EXECUTED
203bd1c: 7f ff 46 47 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
203bd20: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
203bd24: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203bd28: 12 80 00 0a bne 203bd50 <msdos_free_node_info+0x48> <== NOT EXECUTED
203bd2c: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
rc = fat_file_close(pathloc->mt_entry, pathloc->node_access);
203bd30: d2 06 00 00 ld [ %i0 ], %o1 <== NOT EXECUTED
203bd34: 7f ff b3 e3 call 2028cc0 <fat_file_close> <== NOT EXECUTED
203bd38: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED
203bd3c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
203bd40: 7f ff 46 85 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
203bd44: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
}
203bd48: 81 c7 e0 08 ret <== NOT EXECUTED
203bd4c: 81 e8 00 00 restore <== NOT EXECUTED
msdos_fs_info_t *fs_info = pathloc->mt_entry->fs_info;
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);
203bd50: 40 00 33 bd call 2048c44 <__errno> <== NOT EXECUTED
203bd54: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203bd58: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203bd5c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203bd60: 81 c7 e0 08 ret <== NOT EXECUTED
203bd64: 81 e8 00 00 restore <== NOT EXECUTED
0203d254 <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
)
{
203d254: 9d e3 bf 50 save %sp, -176, %sp <== NOT EXECUTED
int rc = RC_OK;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
203d258: e4 06 20 34 ld [ %i0 + 0x34 ], %l2 <== NOT EXECUTED
uint32_t cl4find = 0;
/*
* open fat-file corresponded to ".."
*/
rc = fat_file_open(mt_entry, dir_pos, &fat_fd);
203d25c: 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
)
{
203d260: 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;
203d264: 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);
203d268: a2 07 bf fc add %fp, -4, %l1 <== NOT EXECUTED
203d26c: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
203d270: 7f ff ae c6 call 2028d88 <fat_file_open> <== NOT EXECUTED
203d274: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc != RC_OK)
203d278: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d27c: 12 80 00 a4 bne 203d50c <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x2b8><== NOT EXECUTED
203d280: 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;
203d284: 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;
203d288: a8 10 20 01 mov 1, %l4 <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
fat_fd->map.file_cln = 0;
fat_fd->map.disk_cln = fat_fd->cln;
203d28c: 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;
203d290: f2 20 60 1c st %i1, [ %g1 + 0x1c ] <== NOT EXECUTED
fat_fd->fat_file_type = FAT_DIRECTORY;
203d294: e8 20 60 10 st %l4, [ %g1 + 0x10 ] <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
fat_fd->map.file_cln = 0;
203d298: 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);
203d29c: 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;
203d2a0: 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);
203d2a4: 7f ff ab aa call 202814c <fat_file_size> <== NOT EXECUTED
203d2a8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc != RC_OK)
203d2ac: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d2b0: 12 80 00 94 bne 203d500 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x2ac><== NOT EXECUTED
203d2b4: a6 07 bf d8 add %fp, -40, %l3 <== NOT EXECUTED
return rc;
}
/* find "." node in opened directory */
memset(dot_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
msdos_long_to_short(".", 1, dot_node, MSDOS_SHORT_NAME_LEN);
203d2b8: 31 00 81 b2 sethi %hi(0x206c800), %i0 <== NOT EXECUTED
203d2bc: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
203d2c0: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
203d2c4: 96 10 20 0b mov 0xb, %o3 <== NOT EXECUTED
203d2c8: 90 16 20 40 or %i0, 0x40, %o0 <== 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);
203d2cc: c0 27 bf d8 clr [ %fp + -40 ] <== NOT EXECUTED
203d2d0: c0 27 bf dc clr [ %fp + -36 ] <== NOT EXECUTED
203d2d4: c0 24 e0 08 clr [ %l3 + 8 ] <== NOT EXECUTED
203d2d8: c0 24 e0 0c clr [ %l3 + 0xc ] <== NOT EXECUTED
203d2dc: c0 24 e0 10 clr [ %l3 + 0x10 ] <== NOT EXECUTED
203d2e0: c0 24 e0 14 clr [ %l3 + 0x14 ] <== NOT EXECUTED
203d2e4: c0 24 e0 18 clr [ %l3 + 0x18 ] <== NOT EXECUTED
msdos_long_to_short(".", 1, dot_node, MSDOS_SHORT_NAME_LEN);
203d2e8: 7f ff ff 4e call 203d020 <msdos_long_to_short> <== NOT EXECUTED
203d2ec: c0 24 e0 1c clr [ %l3 + 0x1c ] <== NOT EXECUTED
rc = msdos_find_name_in_fat_file(mt_entry, fat_fd, false, ".", 1,
203d2f0: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
203d2f4: 96 16 20 40 or %i0, 0x40, %o3 <== NOT EXECUTED
203d2f8: f4 23 a0 5c st %i2, [ %sp + 0x5c ] <== NOT EXECUTED
203d2fc: e6 23 a0 60 st %l3, [ %sp + 0x60 ] <== NOT EXECUTED
203d300: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d304: 94 10 20 00 clr %o2 <== NOT EXECUTED
203d308: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED
203d30c: 7f ff fb 0f call 203bf48 <msdos_find_name_in_fat_file> <== NOT EXECUTED
203d310: 9a 10 20 01 mov 1, %o5 <== NOT EXECUTED
MSDOS_NAME_SHORT, dir_pos, dot_node);
if (rc != RC_OK)
203d314: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d318: 12 80 00 7a bne 203d500 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x2ac><== NOT EXECUTED
203d31c: 2b 00 81 b2 sethi %hi(0x206c800), %l5 <== NOT EXECUTED
fat_file_close(mt_entry, fat_fd);
return rc;
}
/* find ".." node in opened directory */
memset(dotdot_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
203d320: b0 07 bf b8 add %fp, -72, %i0 <== NOT EXECUTED
msdos_long_to_short("..", 2, dotdot_node, MSDOS_SHORT_NAME_LEN);
203d324: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
fat_file_close(mt_entry, fat_fd);
return rc;
}
/* find ".." node in opened directory */
memset(dotdot_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
203d328: c0 26 20 08 clr [ %i0 + 8 ] <== NOT EXECUTED
203d32c: c0 26 20 0c clr [ %i0 + 0xc ] <== NOT EXECUTED
203d330: c0 26 20 10 clr [ %i0 + 0x10 ] <== NOT EXECUTED
203d334: c0 26 20 14 clr [ %i0 + 0x14 ] <== NOT EXECUTED
203d338: c0 26 20 18 clr [ %i0 + 0x18 ] <== NOT EXECUTED
203d33c: c0 26 20 1c clr [ %i0 + 0x1c ] <== NOT EXECUTED
msdos_long_to_short("..", 2, dotdot_node, MSDOS_SHORT_NAME_LEN);
203d340: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
203d344: 96 10 20 0b mov 0xb, %o3 <== NOT EXECUTED
fat_file_close(mt_entry, fat_fd);
return rc;
}
/* find ".." node in opened directory */
memset(dotdot_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
203d348: c0 27 bf b8 clr [ %fp + -72 ] <== NOT EXECUTED
203d34c: c0 27 bf bc clr [ %fp + -68 ] <== NOT EXECUTED
msdos_long_to_short("..", 2, dotdot_node, MSDOS_SHORT_NAME_LEN);
203d350: 7f ff ff 34 call 203d020 <msdos_long_to_short> <== NOT EXECUTED
203d354: 90 15 60 48 or %l5, 0x48, %o0 <== NOT EXECUTED
rc = msdos_find_name_in_fat_file(mt_entry, fat_fd, false, "..", 2,
203d358: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
203d35c: f0 23 a0 60 st %i0, [ %sp + 0x60 ] <== NOT EXECUTED
203d360: f4 23 a0 5c st %i2, [ %sp + 0x5c ] <== NOT EXECUTED
203d364: 96 15 60 48 or %l5, 0x48, %o3 <== NOT EXECUTED
203d368: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d36c: 94 10 20 00 clr %o2 <== NOT EXECUTED
203d370: 98 10 20 02 mov 2, %o4 <== NOT EXECUTED
203d374: 7f ff fa f5 call 203bf48 <msdos_find_name_in_fat_file> <== NOT EXECUTED
203d378: 9a 10 20 01 mov 1, %o5 <== NOT EXECUTED
MSDOS_NAME_SHORT, dir_pos,
dotdot_node);
if (rc != RC_OK)
203d37c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d380: 12 80 00 60 bne 203d500 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x2ac><== NOT EXECUTED
203d384: 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);
203d388: ea 14 e0 14 lduh [ %l3 + 0x14 ], %l5 <== NOT EXECUTED
/* close fat-file corresponded to ".." directory */
rc = fat_file_close(mt_entry, fat_fd);
203d38c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d390: 7f ff ae 4c call 2028cc0 <fat_file_close> <== NOT EXECUTED
203d394: e6 14 e0 1a lduh [ %l3 + 0x1a ], %l3 <== NOT EXECUTED
if ( rc != RC_OK )
203d398: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d39c: 12 80 00 5c bne 203d50c <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x2b8><== NOT EXECUTED
203d3a0: c2 17 bf cc lduh [ %fp + -52 ], %g1 <== NOT EXECUTED
return rc;
if ( (MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)
203d3a4: 05 00 00 3f sethi %hi(0xfc00), %g2 <== NOT EXECUTED
203d3a8: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
203d3ac: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
203d3b0: 87 30 60 18 srl %g1, 0x18, %g3 <== NOT EXECUTED
203d3b4: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED
203d3b8: 82 08 40 02 and %g1, %g2, %g1 <== NOT EXECUTED
203d3bc: 80 90 40 03 orcc %g1, %g3, %g0 <== NOT EXECUTED
203d3c0: 12 80 00 10 bne 203d400 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x1ac><== NOT EXECUTED
203d3c4: c2 17 bf d2 lduh [ %fp + -46 ], %g1 <== NOT EXECUTED
203d3c8: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
203d3cc: 87 30 60 08 srl %g1, 8, %g3 <== NOT EXECUTED
203d3d0: 80 88 c0 02 btst %g3, %g2 <== NOT EXECUTED
203d3d4: 12 80 00 0c bne 203d404 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x1b0><== NOT EXECUTED
203d3d8: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
203d3dc: 83 30 60 18 srl %g1, 0x18, %g1 <== NOT EXECUTED
203d3e0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203d3e4: 12 80 00 09 bne 203d408 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x1b4><== NOT EXECUTED
203d3e8: 90 10 00 10 mov %l0, %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;
203d3ec: 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;
203d3f0: e8 26 80 00 st %l4, [ %i2 ] <== NOT EXECUTED
fat_dir_pos_init(
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
dir_pos->sname.ofs = 0;
203d3f4: 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;
203d3f8: 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;
203d3fc: 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);
203d400: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
203d404: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d408: 7f ff ae 60 call 2028d88 <fat_file_open> <== NOT EXECUTED
203d40c: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
if (rc != RC_OK)
203d410: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d414: 12 80 00 3e bne 203d50c <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x2b8><== NOT EXECUTED
203d418: c6 17 bf cc lduh [ %fp + -52 ], %g3 <== NOT EXECUTED
return rc;
if ((MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)
203d41c: c8 17 bf d2 lduh [ %fp + -46 ], %g4 <== NOT EXECUTED
203d420: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
203d424: 83 30 e0 18 srl %g3, 0x18, %g1 <== NOT EXECUTED
203d428: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
203d42c: 85 30 e0 08 srl %g3, 8, %g2 <== NOT EXECUTED
203d430: 9b 31 20 18 srl %g4, 0x18, %o5 <== NOT EXECUTED
203d434: 07 00 00 3f sethi %hi(0xfc00), %g3 <== NOT EXECUTED
203d438: 86 10 e3 ff or %g3, 0x3ff, %g3 ! ffff <PROM_START+0xffff> <== NOT EXECUTED
203d43c: 84 08 80 03 and %g2, %g3, %g2 <== NOT EXECUTED
203d440: 84 10 80 01 or %g2, %g1, %g2 <== NOT EXECUTED
203d444: 83 31 20 08 srl %g4, 8, %g1 <== NOT EXECUTED
203d448: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
203d44c: 82 08 40 03 and %g1, %g3, %g1 <== NOT EXECUTED
203d450: 82 10 40 0d or %g1, %o5, %g1 <== NOT EXECUTED
203d454: 84 90 80 01 orcc %g2, %g1, %g2 <== NOT EXECUTED
203d458: 12 80 00 2f bne 203d514 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x2c0><== NOT EXECUTED
203d45c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
fat_fd->cln = fs_info->fat.vol.rdir_cl;
203d460: c4 04 a0 38 ld [ %l2 + 0x38 ], %g2 <== NOT EXECUTED
203d464: c4 20 60 1c st %g2, [ %g1 + 0x1c ] <== 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;
203d468: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 <== NOT EXECUTED
fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node);
fat_fd->fat_file_type = FAT_DIRECTORY;
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
fat_fd->map.file_cln = 0;
203d46c: c0 20 60 34 clr [ %g1 + 0x34 ] <== NOT EXECUTED
fat_fd->map.disk_cln = fat_fd->cln;
203d470: c4 20 60 38 st %g2, [ %g1 + 0x38 ] <== 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;
203d474: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
203d478: c4 20 60 10 st %g2, [ %g1 + 0x10 ] <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
203d47c: 05 00 08 00 sethi %hi(0x200000), %g2 <== NOT EXECUTED
fat_fd->map.file_cln = 0;
fat_fd->map.disk_cln = fat_fd->cln;
rc = fat_file_size(mt_entry, fat_fd);
203d480: 92 10 00 01 mov %g1, %o1 <== 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;
203d484: 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);
203d488: 7f ff ab 31 call 202814c <fat_file_size> <== NOT EXECUTED
203d48c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc != RC_OK)
203d490: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d494: 12 80 00 1b bne 203d500 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x2ac><== NOT EXECUTED
203d498: 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,
203d49c: ab 2d 60 10 sll %l5, 0x10, %l5 <== NOT EXECUTED
203d4a0: a7 2c e0 10 sll %l3, 0x10, %l3 <== NOT EXECUTED
203d4a4: 87 35 60 18 srl %l5, 0x18, %g3 <== NOT EXECUTED
203d4a8: 89 34 e0 18 srl %l3, 0x18, %g4 <== NOT EXECUTED
203d4ac: 85 34 e0 08 srl %l3, 8, %g2 <== NOT EXECUTED
203d4b0: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED
203d4b4: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff <PROM_START+0xffff> <== NOT EXECUTED
203d4b8: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED
203d4bc: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
203d4c0: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
203d4c4: 98 10 00 1b mov %i3, %o4 <== NOT EXECUTED
203d4c8: 95 35 60 08 srl %l5, 8, %o2 <== NOT EXECUTED
203d4cc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d4d0: 94 0a 80 01 and %o2, %g1, %o2 <== NOT EXECUTED
203d4d4: 94 12 80 03 or %o2, %g3, %o2 <== NOT EXECUTED
203d4d8: 95 2a a0 10 sll %o2, 0x10, %o2 <== NOT EXECUTED
203d4dc: 7f ff fa 38 call 203bdbc <msdos_find_node_by_cluster_num_in_fat_file><== NOT EXECUTED
203d4e0: 94 12 80 02 or %o2, %g2, %o2 <== NOT EXECUTED
dir_pos, dir_entry);
if (rc != RC_OK)
203d4e4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d4e8: 12 80 00 06 bne 203d500 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x2ac><== NOT EXECUTED
203d4ec: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
{
fat_file_close(mt_entry, fat_fd);
return rc;
}
rc = fat_file_close(mt_entry, fat_fd);
203d4f0: 7f ff ad f4 call 2028cc0 <fat_file_close> <== NOT EXECUTED
203d4f4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
}
203d4f8: 81 c7 e0 08 ret <== NOT EXECUTED
203d4fc: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
/* in this directory find slot with specified cluster num */
rc = msdos_find_node_by_cluster_num_in_fat_file(mt_entry, fat_fd, cl4find,
dir_pos, dir_entry);
if (rc != RC_OK)
{
fat_file_close(mt_entry, fat_fd);
203d500: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
203d504: 7f ff ad ef call 2028cc0 <fat_file_close> <== NOT EXECUTED
203d508: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
203d50c: 81 c7 e0 08 ret <== NOT EXECUTED
203d510: 81 e8 00 00 restore <== NOT EXECUTED
return rc;
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);
203d514: 10 bf ff d5 b 203d468 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x214><== NOT EXECUTED
203d518: c4 20 60 1c st %g2, [ %g1 + 0x1c ] <== NOT EXECUTED
0203d51c <msdos_get_name_node>:
int name_len,
msdos_name_type_t name_type,
fat_dir_pos_t *dir_pos,
char *name_dir_entry
)
{
203d51c: 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,
203d520: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED
203d524: 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
)
{
203d528: 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,
203d52c: b2 0e 60 ff and %i1, 0xff, %i1 <== NOT EXECUTED
203d530: fa 23 a0 5c st %i5, [ %sp + 0x5c ] <== NOT EXECUTED
203d534: e0 23 a0 60 st %l0, [ %sp + 0x60 ] <== NOT EXECUTED
203d538: 98 10 00 1b mov %i3, %o4 <== NOT EXECUTED
203d53c: 9a 10 00 1c mov %i4, %o5 <== NOT EXECUTED
203d540: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
203d544: 7f ff fa 81 call 203bf48 <msdos_find_name_in_fat_file> <== NOT EXECUTED
203d548: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
create_node, name, name_len, name_type,
dir_pos, name_dir_entry);
if ((rc != RC_OK) && (rc != MSDOS_NAME_NOT_FOUND_ERR))
203d54c: 03 00 00 1f sethi %hi(0x7c00), %g1 <== NOT EXECUTED
203d550: 82 10 61 01 or %g1, 0x101, %g1 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
203d554: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED
203d558: 12 80 00 2b bne 203d604 <msdos_get_name_node+0xe8> <== NOT EXECUTED
203d55c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
return rc;
if (!create_node)
203d560: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
203d564: 12 80 00 26 bne 203d5fc <msdos_get_name_node+0xe0> <== NOT EXECUTED
203d568: 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)
203d56c: 82 10 61 01 or %g1, 0x101, %g1 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
203d570: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
203d574: 02 80 00 22 be 203d5fc <msdos_get_name_node+0xe0> <== NOT EXECUTED
203d578: 80 a4 60 00 cmp %l1, 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)
203d57c: 12 80 00 20 bne 203d5fc <msdos_get_name_node+0xe0> <== NOT EXECUTED
203d580: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
{
if (strncmp(name, "..", 2) == 0)
203d584: 13 00 81 b2 sethi %hi(0x206c800), %o1 <== NOT EXECUTED
203d588: 94 10 20 02 mov 2, %o2 <== NOT EXECUTED
203d58c: 40 00 49 be call 204fc84 <strncmp> <== NOT EXECUTED
203d590: 92 12 60 48 or %o1, 0x48, %o1 <== NOT EXECUTED
203d594: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203d598: 12 80 00 19 bne 203d5fc <msdos_get_name_node+0xe0> <== NOT EXECUTED
203d59c: 01 00 00 00 nop <== NOT EXECUTED
{
dotdot_cln = MSDOS_EXTRACT_CLUSTER_NUM((name_dir_entry));
203d5a0: c4 14 20 14 lduh [ %l0 + 0x14 ], %g2 <== NOT EXECUTED
203d5a4: c6 14 20 1a lduh [ %l0 + 0x1a ], %g3 <== NOT EXECUTED
203d5a8: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
203d5ac: 83 30 a0 18 srl %g2, 0x18, %g1 <== NOT EXECUTED
203d5b0: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
203d5b4: b3 30 a0 08 srl %g2, 8, %i1 <== NOT EXECUTED
203d5b8: 89 30 e0 18 srl %g3, 0x18, %g4 <== NOT EXECUTED
203d5bc: 05 00 00 3f sethi %hi(0xfc00), %g2 <== NOT EXECUTED
203d5c0: 84 10 a3 ff or %g2, 0x3ff, %g2 ! ffff <PROM_START+0xffff> <== NOT EXECUTED
203d5c4: b2 0e 40 02 and %i1, %g2, %i1 <== NOT EXECUTED
203d5c8: b2 16 40 01 or %i1, %g1, %i1 <== NOT EXECUTED
203d5cc: 83 30 e0 08 srl %g3, 8, %g1 <== NOT EXECUTED
203d5d0: b3 2e 60 10 sll %i1, 0x10, %i1 <== NOT EXECUTED
203d5d4: 82 08 40 02 and %g1, %g2, %g1 <== NOT EXECUTED
203d5d8: 82 10 40 04 or %g1, %g4, %g1 <== NOT EXECUTED
/* are we right under root dir ? */
if (dotdot_cln == 0)
203d5dc: b2 96 40 01 orcc %i1, %g1, %i1 <== NOT EXECUTED
203d5e0: 12 80 00 0e bne 203d618 <msdos_get_name_node+0xfc> <== NOT EXECUTED
203d5e4: 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;
203d5e8: 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;
203d5ec: 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;
203d5f0: 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;
203d5f4: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203d5f8: c2 27 40 00 st %g1, [ %i5 ] <== NOT EXECUTED
}
}
}
}
return rc;
}
203d5fc: 81 c7 e0 08 ret <== NOT EXECUTED
203d600: 91 e8 00 11 restore %g0, %l1, %o0 <== 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))
203d604: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203d608: 02 bf ff d7 be 203d564 <msdos_get_name_node+0x48> <== NOT EXECUTED
203d60c: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
}
}
}
}
return rc;
}
203d610: 81 c7 e0 08 ret <== NOT EXECUTED
203d614: 91 e8 00 11 restore %g0, %l1, %o0 <== NOT EXECUTED
dir_pos->sname.cln = FAT_ROOTDIR_CLUSTER_NUM;
}
else
{
rc =
msdos_get_dotdot_dir_info_cluster_num_and_offset(parent_loc->mt_entry,
203d618: f0 06 20 10 ld [ %i0 + 0x10 ], %i0 <== NOT EXECUTED
203d61c: b4 10 00 1d mov %i5, %i2 <== NOT EXECUTED
203d620: 7f ff ff 0d call 203d254 <msdos_get_dotdot_dir_info_cluster_num_and_offset><== NOT EXECUTED
203d624: 97 e8 00 10 restore %g0, %l0, %o3 <== NOT EXECUTED
0203cf30 <msdos_get_token>:
msdos_token_types_t
msdos_get_token(const char *path,
int pathlen,
const char **ret_token,
int *ret_token_len)
{
203cf30: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
msdos_token_types_t type = MSDOS_NAME;
int i = 0;
*ret_token = NULL;
203cf34: c0 26 80 00 clr [ %i2 ] <== NOT EXECUTED
*ret_token_len = 0;
203cf38: 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)
{
203cf3c: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
int i = 0;
*ret_token = NULL;
*ret_token_len = 0;
if (pathlen == 0)
203cf40: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
203cf44: a0 10 20 00 clr %l0 <== NOT EXECUTED
203cf48: 12 80 00 0d bne 203cf7c <msdos_get_token+0x4c> <== NOT EXECUTED
203cf4c: b0 10 20 00 clr %i0 <== NOT EXECUTED
203cf50: 30 80 00 1d b,a 203cfc4 <msdos_get_token+0x94> <== NOT EXECUTED
return MSDOS_NO_MORE_PATH;
/*
* Check for a separator.
*/
while (!msdos_is_separator(path[i]) && (i < pathlen))
203cf54: 16 80 00 10 bge 203cf94 <msdos_get_token+0x64> <== NOT EXECUTED
203cf58: 82 94 20 00 orcc %l0, 0, %g1 <== NOT EXECUTED
{
if ( !msdos_is_valid_name_char(path[i]) )
203cf5c: d0 4c 40 10 ldsb [ %l1 + %l0 ], %o0 <== NOT EXECUTED
203cf60: 7f ff ff d8 call 203cec0 <msdos_is_valid_name_char> <== NOT EXECUTED
203cf64: a0 04 20 01 inc %l0 <== NOT EXECUTED
203cf68: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203cf6c: 02 80 00 15 be 203cfc0 <msdos_get_token+0x90> <== NOT EXECUTED
203cf70: 80 a4 21 04 cmp %l0, 0x104 <== NOT EXECUTED
return MSDOS_INVALID_TOKEN;
++i;
if ( i == MSDOS_NAME_MAX_LFN_WITH_DOT )
203cf74: 02 80 00 11 be 203cfb8 <msdos_get_token+0x88> <== NOT EXECUTED
203cf78: 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))
203cf7c: 7f ff 35 7e call 200a574 <rtems_filesystem_is_separator> <== NOT EXECUTED
203cf80: d0 4c 40 10 ldsb [ %l1 + %l0 ], %o0 <== NOT EXECUTED
203cf84: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203cf88: 02 bf ff f3 be 203cf54 <msdos_get_token+0x24> <== NOT EXECUTED
203cf8c: 80 a4 00 19 cmp %l0, %i1 <== NOT EXECUTED
*ret_token = path;
/*
* If it is just a separator then it is the current dir.
*/
if ( i == 0 )
203cf90: 82 94 20 00 orcc %l0, 0, %g1 <== NOT EXECUTED
203cf94: 12 80 00 0e bne 203cfcc <msdos_get_token+0x9c> <== NOT EXECUTED
203cf98: e2 26 80 00 st %l1, [ %i2 ] <== NOT EXECUTED
{
if ( (*path != '\0') && pathlen )
203cf9c: c4 4c 40 00 ldsb [ %l1 ], %g2 <== NOT EXECUTED
203cfa0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203cfa4: 02 80 00 04 be 203cfb4 <msdos_get_token+0x84> <== NOT EXECUTED
203cfa8: b0 10 20 00 clr %i0 <== NOT EXECUTED
203cfac: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203cfb0: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
}
/*
* Set the token and token_len to the token start and length.
*/
*ret_token_len = i;
203cfb4: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED
203cfb8: 81 c7 e0 08 ret <== NOT EXECUTED
203cfbc: 81 e8 00 00 restore <== NOT EXECUTED
{
type = MSDOS_UP_DIR;
return type;
}
if ((i == 1) && ((*ret_token)[0] == '.'))
203cfc0: b0 10 20 04 mov 4, %i0 <== NOT EXECUTED
return type;
}
}
return type;
}
203cfc4: 81 c7 e0 08 ret <== NOT EXECUTED
203cfc8: 81 e8 00 00 restore <== NOT EXECUTED
* If we copied something that was not a seperator see if
* it was a special name.
*/
if ( type == MSDOS_NAME )
{
if ((i == 2) && ((*ret_token)[0] == '.') && ((*ret_token)[1] == '.'))
203cfcc: 80 a4 20 02 cmp %l0, 2 <== NOT EXECUTED
203cfd0: 02 80 00 0b be 203cffc <msdos_get_token+0xcc> <== NOT EXECUTED
203cfd4: e0 26 c0 00 st %l0, [ %i3 ] <== NOT EXECUTED
{
type = MSDOS_UP_DIR;
return type;
}
if ((i == 1) && ((*ret_token)[0] == '.'))
203cfd8: 80 a4 20 01 cmp %l0, 1 <== NOT EXECUTED
203cfdc: 22 80 00 04 be,a 203cfec <msdos_get_token+0xbc> <== NOT EXECUTED
203cfe0: c2 4c 40 00 ldsb [ %l1 ], %g1 <== NOT EXECUTED
203cfe4: 81 c7 e0 08 ret <== NOT EXECUTED
203cfe8: 91 e8 20 03 restore %g0, 3, %o0 <== NOT EXECUTED
203cfec: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
203cff0: 12 bf ff fd bne 203cfe4 <msdos_get_token+0xb4> <== NOT EXECUTED
203cff4: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
203cff8: 30 bf ff f3 b,a 203cfc4 <msdos_get_token+0x94> <== NOT EXECUTED
* If we copied something that was not a seperator see if
* it was a special name.
*/
if ( type == MSDOS_NAME )
{
if ((i == 2) && ((*ret_token)[0] == '.') && ((*ret_token)[1] == '.'))
203cffc: c2 4c 40 00 ldsb [ %l1 ], %g1 <== NOT EXECUTED
203d000: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
203d004: 12 bf ff f8 bne 203cfe4 <msdos_get_token+0xb4> <== NOT EXECUTED
203d008: 01 00 00 00 nop <== NOT EXECUTED
203d00c: c2 4c 60 01 ldsb [ %l1 + 1 ], %g1 <== NOT EXECUTED
203d010: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
203d014: 12 bf ff f4 bne 203cfe4 <msdos_get_token+0xb4> <== NOT EXECUTED
203d018: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
203d01c: 30 bf ff ea b,a 203cfc4 <msdos_get_token+0x94> <== NOT EXECUTED
02022df4 <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
)
{
2022df4: 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));
2022df8: 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;
2022dfc: 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));
2022e00: 92 10 20 a0 mov 0xa0, %o1 <== NOT EXECUTED
2022e04: 7f ff 95 14 call 2008254 <calloc> <== NOT EXECUTED
2022e08: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
if (!fs_info)
2022e0c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2022e10: 02 80 00 55 be 2022f64 <msdos_initialize_support+0x170> <== NOT EXECUTED
2022e14: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
temp_mt_entry->fs_info = fs_info;
2022e18: d0 24 60 34 st %o0, [ %l1 + 0x34 ] <== NOT EXECUTED
rc = fat_init_volume_info(temp_mt_entry);
2022e1c: 40 00 1a dc call 202998c <fat_init_volume_info> <== NOT EXECUTED
2022e20: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rc != RC_OK)
2022e24: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2022e28: 12 80 00 37 bne 2022f04 <msdos_initialize_support+0x110> <== NOT EXECUTED
2022e2c: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
{
free(fs_info);
return rc;
}
fs_info->file_handlers = file_handlers;
2022e30: f4 24 20 94 st %i2, [ %l0 + 0x94 ] <== NOT EXECUTED
fs_info->directory_handlers = directory_handlers;
2022e34: 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;
2022e38: 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;
2022e3c: 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;
2022e40: 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;
2022e44: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED
rc = fat_file_open(temp_mt_entry, &root_pos, &fat_fd);
2022e48: 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;
2022e4c: e4 27 bf ec st %l2, [ %fp + -20 ] <== NOT EXECUTED
rc = fat_file_open(temp_mt_entry, &root_pos, &fat_fd);
2022e50: 92 07 bf ec add %fp, -20, %o1 <== NOT EXECUTED
2022e54: 40 00 17 cd call 2028d88 <fat_file_open> <== NOT EXECUTED
2022e58: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
if (rc != RC_OK)
2022e5c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2022e60: 12 80 00 2d bne 2022f14 <msdos_initialize_support+0x120> <== NOT EXECUTED
2022e64: 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;
2022e68: 03 00 08 00 sethi %hi(0x200000), %g1 <== NOT EXECUTED
2022e6c: c2 22 60 14 st %g1, [ %o1 + 0x14 ] <== NOT EXECUTED
fat_fd->cln = fs_info->fat.vol.rdir_cl;
2022e70: 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;
2022e74: 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;
2022e78: c2 22 60 1c st %g1, [ %o1 + 0x1c ] <== NOT EXECUTED
fat_fd->map.file_cln = 0;
2022e7c: 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 )
2022e80: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2022e84: 12 80 00 2a bne 2022f2c <msdos_initialize_support+0x138> <== NOT EXECUTED
2022e88: c2 22 60 38 st %g1, [ %o1 + 0x38 ] <== NOT EXECUTED
{
fat_fd->fat_file_size = fs_info->fat.vol.rdir_size;
2022e8c: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED
cl_buf_size = (fs_info->fat.vol.bpc > fs_info->fat.vol.rdir_size) ?
2022e90: 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;
2022e94: c2 22 60 18 st %g1, [ %o1 + 0x18 ] <== NOT EXECUTED
cl_buf_size = (fs_info->fat.vol.bpc > fs_info->fat.vol.rdir_size) ?
2022e98: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED
2022e9c: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED
2022ea0: 2a 80 00 02 bcs,a 2022ea8 <msdos_initialize_support+0xb4><== NOT EXECUTED
2022ea4: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
return rc;
}
cl_buf_size = fs_info->fat.vol.bpc;
}
fs_info->cl_buf = (uint8_t *)calloc(cl_buf_size, sizeof(char));
2022ea8: 7f ff 94 eb call 2008254 <calloc> <== NOT EXECUTED
2022eac: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
if (fs_info->cl_buf == NULL)
2022eb0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2022eb4: 02 80 00 25 be 2022f48 <msdos_initialize_support+0x154> <== NOT EXECUTED
2022eb8: d0 24 20 9c st %o0, [ %l0 + 0x9c ] <== NOT EXECUTED
fat_shutdown_drive(temp_mt_entry);
free(fs_info);
rtems_set_errno_and_return_minus_one(ENOMEM);
}
sc = rtems_semaphore_create(3,
2022ebc: 90 10 20 03 mov 3, %o0 <== NOT EXECUTED
2022ec0: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2022ec4: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED
2022ec8: 96 10 20 00 clr %o3 <== NOT EXECUTED
2022ecc: 7f ff a9 21 call 200d350 <rtems_semaphore_create> <== NOT EXECUTED
2022ed0: 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)
2022ed4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2022ed8: 12 80 00 29 bne 2022f7c <msdos_initialize_support+0x188> <== NOT EXECUTED
2022edc: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
}
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;
2022ee0: 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;
2022ee4: c2 24 60 1c st %g1, [ %l1 + 0x1c ] <== NOT EXECUTED
temp_mt_entry->mt_fs_root.handlers = directory_handlers;
2022ee8: f6 24 60 24 st %i3, [ %l1 + 0x24 ] <== NOT EXECUTED
temp_mt_entry->mt_fs_root.ops = op_table;
return rc;
}
2022eec: 81 c7 e0 08 ret <== NOT EXECUTED
2022ef0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
else
{
rc = fat_file_size(temp_mt_entry, fat_fd);
if ( rc != RC_OK )
{
fat_file_close(temp_mt_entry, fat_fd);
2022ef4: 40 00 17 73 call 2028cc0 <fat_file_close> <== NOT EXECUTED
2022ef8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
fat_shutdown_drive(temp_mt_entry);
2022efc: 40 00 19 ee call 20296b4 <fat_shutdown_drive> <== NOT EXECUTED
2022f00: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
free(fs_info);
2022f04: 7f ff 96 76 call 20088dc <free> <== NOT EXECUTED
2022f08: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
2022f0c: 81 c7 e0 08 ret <== NOT EXECUTED
2022f10: 81 e8 00 00 restore <== NOT EXECUTED
fat_dir_pos_init(&root_pos);
root_pos.sname.cln = FAT_ROOTDIR_CLUSTER_NUM;
rc = fat_file_open(temp_mt_entry, &root_pos, &fat_fd);
if (rc != RC_OK)
{
fat_shutdown_drive(temp_mt_entry);
2022f14: 40 00 19 e8 call 20296b4 <fat_shutdown_drive> <== NOT EXECUTED
2022f18: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
free(fs_info);
2022f1c: 7f ff 96 70 call 20088dc <free> <== NOT EXECUTED
2022f20: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
2022f24: 81 c7 e0 08 ret <== NOT EXECUTED
2022f28: 81 e8 00 00 restore <== NOT EXECUTED
fs_info->fat.vol.bpc :
fs_info->fat.vol.rdir_size;
}
else
{
rc = fat_file_size(temp_mt_entry, fat_fd);
2022f2c: 40 00 14 88 call 202814c <fat_file_size> <== NOT EXECUTED
2022f30: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
if ( rc != RC_OK )
2022f34: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2022f38: 12 bf ff ef bne 2022ef4 <msdos_initialize_support+0x100> <== NOT EXECUTED
2022f3c: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
fat_file_close(temp_mt_entry, fat_fd);
fat_shutdown_drive(temp_mt_entry);
free(fs_info);
return rc;
}
cl_buf_size = fs_info->fat.vol.bpc;
2022f40: 10 bf ff da b 2022ea8 <msdos_initialize_support+0xb4> <== NOT EXECUTED
2022f44: d0 14 20 06 lduh [ %l0 + 6 ], %o0 <== NOT EXECUTED
}
fs_info->cl_buf = (uint8_t *)calloc(cl_buf_size, sizeof(char));
if (fs_info->cl_buf == NULL)
{
fat_file_close(temp_mt_entry, fat_fd);
2022f48: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
2022f4c: 40 00 17 5d call 2028cc0 <fat_file_close> <== NOT EXECUTED
2022f50: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
fat_shutdown_drive(temp_mt_entry);
2022f54: 40 00 19 d8 call 20296b4 <fat_shutdown_drive> <== NOT EXECUTED
2022f58: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
free(fs_info);
2022f5c: 7f ff 96 60 call 20088dc <free> <== NOT EXECUTED
2022f60: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
2022f64: 40 00 97 38 call 2048c44 <__errno> <== NOT EXECUTED
2022f68: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2022f6c: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
2022f70: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2022f74: 81 c7 e0 08 ret <== NOT EXECUTED
2022f78: 81 e8 00 00 restore <== NOT EXECUTED
RTEMS_BINARY_SEMAPHORE | RTEMS_FIFO,
0,
&fs_info->vol_sema);
if (sc != RTEMS_SUCCESSFUL)
{
fat_file_close(temp_mt_entry, fat_fd);
2022f7c: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
2022f80: 40 00 17 50 call 2028cc0 <fat_file_close> <== NOT EXECUTED
2022f84: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
fat_shutdown_drive(temp_mt_entry);
2022f88: 40 00 19 cb call 20296b4 <fat_shutdown_drive> <== NOT EXECUTED
2022f8c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
free(fs_info->cl_buf);
2022f90: d0 04 20 9c ld [ %l0 + 0x9c ], %o0 <== NOT EXECUTED
2022f94: 7f ff 96 52 call 20088dc <free> <== NOT EXECUTED
2022f98: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
free(fs_info);
2022f9c: 7f ff 96 50 call 20088dc <free> <== NOT EXECUTED
2022fa0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
2022fa4: 40 00 97 28 call 2048c44 <__errno> <== NOT EXECUTED
2022fa8: 01 00 00 00 nop <== NOT EXECUTED
2022fac: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
2022fb0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2022fb4: 81 c7 e0 08 ret <== NOT EXECUTED
2022fb8: 81 e8 00 00 restore <== NOT EXECUTED
0203cec0 <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)
{
203cec0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (strchr(" +,;=[]", ch) != NULL)
203cec4: 11 00 81 b2 sethi %hi(0x206c800), %o0 <== NOT EXECUTED
203cec8: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
203cecc: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
203ced0: 90 12 20 20 or %o0, 0x20, %o0 <== NOT EXECUTED
203ced4: 40 00 48 90 call 204f114 <strchr> <== NOT EXECUTED
203ced8: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
203cedc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203cee0: 12 80 00 10 bne 203cf20 <msdos_is_valid_name_char+0x60> <== NOT EXECUTED
203cee4: 80 a4 20 2e cmp %l0, 0x2e <== NOT EXECUTED
return MSDOS_NAME_LONG;
if ((ch == '.') || isalnum((unsigned char)ch) ||
203cee8: 02 80 00 10 be 203cf28 <msdos_is_valid_name_char+0x68> <== NOT EXECUTED
203ceec: 03 00 81 be sethi %hi(0x206f800), %g1 <== NOT EXECUTED
203cef0: c2 00 62 b4 ld [ %g1 + 0x2b4 ], %g1 ! 206fab4 <__ctype_ptr__><== NOT EXECUTED
203cef4: a2 0c 20 ff and %l0, 0xff, %l1 <== NOT EXECUTED
203cef8: a2 00 40 11 add %g1, %l1, %l1 <== NOT EXECUTED
203cefc: c2 0c 60 01 ldub [ %l1 + 1 ], %g1 <== NOT EXECUTED
203cf00: 80 88 60 07 btst 7, %g1 <== NOT EXECUTED
203cf04: 12 80 00 09 bne 203cf28 <msdos_is_valid_name_char+0x68> <== NOT EXECUTED
203cf08: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
(strchr("$%'-_@~`!(){}^#&", ch) != NULL))
203cf0c: 11 00 81 b2 sethi %hi(0x206c800), %o0 <== NOT EXECUTED
203cf10: 40 00 48 81 call 204f114 <strchr> <== NOT EXECUTED
203cf14: 90 12 20 28 or %o0, 0x28, %o0 ! 206c828 <msdos_file_handlers+0xd8><== NOT EXECUTED
203cf18: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
203cf1c: b0 40 20 00 addx %g0, 0, %i0 <== NOT EXECUTED
203cf20: 81 c7 e0 08 ret <== NOT EXECUTED
203cf24: 81 e8 00 00 restore <== NOT EXECUTED
return MSDOS_NAME_SHORT;
return MSDOS_NAME_INVALID;
}
203cf28: 81 c7 e0 08 ret <== NOT EXECUTED
203cf2c: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED
0203d020 <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)
{
203d020: 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);
203d024: 92 10 20 20 mov 0x20, %o1 <== NOT EXECUTED
203d028: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED
203d02c: 40 00 3c e5 call 204c3c0 <memset> <== NOT EXECUTED
203d030: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
/*
* Handle '.' and '..' specially.
*/
if ((lfn[0] == '.') && (lfn_len == 1))
203d034: e2 0e 00 00 ldub [ %i0 ], %l1 <== NOT EXECUTED
203d038: a7 2c 60 18 sll %l1, 0x18, %l3 <== NOT EXECUTED
203d03c: 83 3c e0 18 sra %l3, 0x18, %g1 <== NOT EXECUTED
203d040: 82 18 60 2e xor %g1, 0x2e, %g1 <== NOT EXECUTED
203d044: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
203d048: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED
203d04c: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED
203d050: 02 80 00 62 be 203d1d8 <msdos_long_to_short+0x1b8> <== NOT EXECUTED
203d054: a0 10 00 18 mov %i0, %l0 <== 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))
203d058: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203d05c: 32 80 00 69 bne,a 203d200 <msdos_long_to_short+0x1e0> <== NOT EXECUTED
203d060: c2 4c 20 01 ldsb [ %l0 + 1 ], %g1 <== NOT EXECUTED
}
/*
* Filenames with only blanks and dots are not allowed!
*/
for (i = 0; i < lfn_len; i++)
203d064: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
203d068: 04 80 00 0f ble 203d0a4 <msdos_long_to_short+0x84> <== NOT EXECUTED
203d06c: 82 10 20 00 clr %g1 <== NOT EXECUTED
if ((lfn[i] != ' ') && (lfn[i] != '.'))
203d070: 83 3c e0 18 sra %l3, 0x18, %g1 <== NOT EXECUTED
203d074: 80 a0 60 20 cmp %g1, 0x20 <== NOT EXECUTED
203d078: 12 80 00 73 bne 203d244 <msdos_long_to_short+0x224> <== NOT EXECUTED
203d07c: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
203d080: 10 80 00 05 b 203d094 <msdos_long_to_short+0x74> <== NOT EXECUTED
203d084: 82 10 20 00 clr %g1 <== NOT EXECUTED
203d088: 80 a0 a0 2e cmp %g2, 0x2e <== NOT EXECUTED
203d08c: 12 80 00 59 bne 203d1f0 <msdos_long_to_short+0x1d0> <== NOT EXECUTED
203d090: 80 a0 a0 20 cmp %g2, 0x20 <== NOT EXECUTED
}
/*
* Filenames with only blanks and dots are not allowed!
*/
for (i = 0; i < lfn_len; i++)
203d094: 82 00 60 01 inc %g1 <== NOT EXECUTED
203d098: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
203d09c: 34 bf ff fb bg,a 203d088 <msdos_long_to_short+0x68> <== NOT EXECUTED
203d0a0: c4 4c 00 01 ldsb [ %l0 + %g1 ], %g2 <== NOT EXECUTED
if ((lfn[i] != ' ') && (lfn[i] != '.'))
break;
if (i == lfn_len)
203d0a4: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED
203d0a8: 02 80 00 40 be 203d1a8 <msdos_long_to_short+0x188> <== NOT EXECUTED
203d0ac: b0 10 20 00 clr %i0 <== NOT EXECUTED
bool lowercase = false;
bool uppercase = false;
int dot_at = -1;
int count = 0;
while (*name && (count < name_len))
203d0b0: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
203d0b4: 02 80 00 62 be 203d23c <msdos_long_to_short+0x21c> <== NOT EXECUTED
203d0b8: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
203d0bc: 04 80 00 60 ble 203d23c <msdos_long_to_short+0x21c> <== NOT EXECUTED
203d0c0: aa 10 20 00 clr %l5 <== NOT EXECUTED
203d0c4: ac 10 20 00 clr %l6 <== NOT EXECUTED
203d0c8: a4 10 20 00 clr %l2 <== NOT EXECUTED
203d0cc: 10 80 00 15 b 203d120 <msdos_long_to_short+0x100> <== NOT EXECUTED
203d0d0: a8 10 3f ff mov -1, %l4 <== NOT EXECUTED
if ((type == MSDOS_NAME_INVALID) || (type == MSDOS_NAME_LONG))
return type;
if (dot_at >= 0)
{
if (is_dot || ((count - dot_at) > 3))
203d0d4: 12 80 00 30 bne 203d194 <msdos_long_to_short+0x174> <== NOT EXECUTED
203d0d8: 82 24 80 14 sub %l2, %l4, %g1 <== NOT EXECUTED
203d0dc: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED
203d0e0: 14 80 00 2e bg 203d198 <msdos_long_to_short+0x178> <== NOT EXECUTED
203d0e4: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
}
}
if (is_dot)
dot_at = count;
else if ((*name >= 'A') && (*name <= 'Z'))
203d0e8: 82 04 7f bf add %l1, -65, %g1 <== NOT EXECUTED
203d0ec: 82 08 60 ff and %g1, 0xff, %g1 <== NOT EXECUTED
203d0f0: 80 a0 60 19 cmp %g1, 0x19 <== NOT EXECUTED
203d0f4: 18 80 00 2f bgu 203d1b0 <msdos_long_to_short+0x190> <== NOT EXECUTED
203d0f8: a2 04 7f 9f add %l1, -97, %l1 <== NOT EXECUTED
203d0fc: aa 10 20 01 mov 1, %l5 <== NOT EXECUTED
uppercase = true;
else if ((*name >= 'a') && (*name <= 'z'))
lowercase = true;
count++;
203d100: a4 04 a0 01 inc %l2 <== NOT EXECUTED
bool lowercase = false;
bool uppercase = false;
int dot_at = -1;
int count = 0;
while (*name && (count < name_len))
203d104: 80 a6 40 12 cmp %i1, %l2 <== NOT EXECUTED
203d108: 04 80 00 1e ble 203d180 <msdos_long_to_short+0x160> <== NOT EXECUTED
203d10c: e2 0c 00 12 ldub [ %l0 + %l2 ], %l1 <== NOT EXECUTED
203d110: a7 2c 60 18 sll %l1, 0x18, %l3 <== NOT EXECUTED
203d114: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
203d118: 02 80 00 1b be 203d184 <msdos_long_to_short+0x164> <== NOT EXECUTED
203d11c: 80 8d a0 ff btst 0xff, %l6 <== NOT EXECUTED
{
bool is_dot = *name == '.';
msdos_name_type_t type = msdos_is_valid_name_char(*name);
203d120: a7 3c e0 18 sra %l3, 0x18, %l3 <== NOT EXECUTED
203d124: 7f ff ff 67 call 203cec0 <msdos_is_valid_name_char> <== NOT EXECUTED
203d128: 90 10 00 13 mov %l3, %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))
203d12c: 80 a2 20 02 cmp %o0, 2 <== NOT EXECUTED
203d130: 02 80 00 3e be 203d228 <msdos_long_to_short+0x208> <== NOT EXECUTED
203d134: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
203d138: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203d13c: 02 80 00 3b be 203d228 <msdos_long_to_short+0x208> <== NOT EXECUTED
203d140: a6 1c e0 2e xor %l3, 0x2e, %l3 <== NOT EXECUTED
int dot_at = -1;
int count = 0;
while (*name && (count < name_len))
{
bool is_dot = *name == '.';
203d144: 80 a0 00 13 cmp %g0, %l3 <== NOT EXECUTED
203d148: 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)
203d14c: 80 a5 3f ff cmp %l4, -1 <== NOT EXECUTED
203d150: 12 bf ff e1 bne 203d0d4 <msdos_long_to_short+0xb4> <== NOT EXECUTED
203d154: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
return MSDOS_NAME_LONG;
}
}
else
{
if (count == 8 && !is_dot)
203d158: 80 a4 a0 08 cmp %l2, 8 <== NOT EXECUTED
203d15c: 02 80 00 1b be 203d1c8 <msdos_long_to_short+0x1a8> <== NOT EXECUTED
203d160: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
#endif
return MSDOS_NAME_LONG;
}
}
if (is_dot)
203d164: 22 bf ff e2 be,a 203d0ec <msdos_long_to_short+0xcc> <== NOT EXECUTED
203d168: 82 04 7f bf add %l1, -65, %g1 <== NOT EXECUTED
dot_at = count;
else if ((*name >= 'A') && (*name <= 'Z'))
uppercase = true;
else if ((*name >= 'a') && (*name <= 'z'))
203d16c: a8 10 00 12 mov %l2, %l4 <== NOT EXECUTED
lowercase = true;
count++;
203d170: a4 04 a0 01 inc %l2 <== NOT EXECUTED
bool lowercase = false;
bool uppercase = false;
int dot_at = -1;
int count = 0;
while (*name && (count < name_len))
203d174: 80 a6 40 12 cmp %i1, %l2 <== NOT EXECUTED
203d178: 14 bf ff e6 bg 203d110 <msdos_long_to_short+0xf0> <== NOT EXECUTED
203d17c: e2 0c 00 12 ldub [ %l0 + %l2 ], %l1 <== NOT EXECUTED
count++;
name++;
}
if (lowercase && uppercase)
203d180: 80 8d a0 ff btst 0xff, %l6 <== NOT EXECUTED
203d184: 02 80 00 2e be 203d23c <msdos_long_to_short+0x21c> <== NOT EXECUTED
203d188: 80 8d 60 ff btst 0xff, %l5 <== NOT EXECUTED
203d18c: 22 80 00 03 be,a 203d198 <msdos_long_to_short+0x178> <== NOT EXECUTED
203d190: b0 10 20 01 mov 1, %i0 <== 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;
203d194: b0 10 20 02 mov 2, %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);
203d198: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d19c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203d1a0: 40 00 27 f8 call 2047180 <msdos_filename_unix2dos> <== NOT EXECUTED
203d1a4: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
#if MSDOS_L2S_PRINT
printf ("MSDOS_L2S: TYPE:%d lfn:'%s' SFN:'%s'\n", type, lfn, sfn);
#endif
return type;
}
203d1a8: 81 c7 e0 08 ret <== NOT EXECUTED
203d1ac: 81 e8 00 00 restore <== NOT EXECUTED
if (is_dot)
dot_at = count;
else if ((*name >= 'A') && (*name <= 'Z'))
uppercase = true;
else if ((*name >= 'a') && (*name <= 'z'))
203d1b0: a2 0c 60 ff and %l1, 0xff, %l1 <== NOT EXECUTED
203d1b4: 80 a4 60 19 cmp %l1, 0x19 <== NOT EXECUTED
203d1b8: 28 bf ff d2 bleu,a 203d100 <msdos_long_to_short+0xe0> <== NOT EXECUTED
203d1bc: ac 10 20 01 mov 1, %l6 <== NOT EXECUTED
lowercase = true;
count++;
203d1c0: 10 bf ff d1 b 203d104 <msdos_long_to_short+0xe4> <== NOT EXECUTED
203d1c4: a4 04 a0 01 inc %l2 <== NOT EXECUTED
return MSDOS_NAME_LONG;
}
}
else
{
if (count == 8 && !is_dot)
203d1c8: 22 bf ff f4 be,a 203d198 <msdos_long_to_short+0x178> <== NOT EXECUTED
203d1cc: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
if (is_dot)
dot_at = count;
else if ((*name >= 'A') && (*name <= 'Z'))
uppercase = true;
else if ((*name >= 'a') && (*name <= 'z'))
203d1d0: 10 bf ff e8 b 203d170 <msdos_long_to_short+0x150> <== NOT EXECUTED
203d1d4: a8 10 00 12 mov %l2, %l4 <== NOT EXECUTED
memset (sfn, ' ', sfn_len);
/*
* Handle '.' and '..' specially.
*/
if ((lfn[0] == '.') && (lfn_len == 1))
203d1d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203d1dc: 02 bf ff a0 be 203d05c <msdos_long_to_short+0x3c> <== NOT EXECUTED
203d1e0: 82 10 20 2e mov 0x2e, %g1 <== NOT EXECUTED
{
sfn[0] = '.';
203d1e4: c2 2e 80 00 stb %g1, [ %i2 ] <== NOT EXECUTED
#if MSDOS_L2S_PRINT
printf ("MSDOS_L2S: SHORT[1]: lfn:'%s' SFN:'%s'\n", lfn, sfn);
#endif
return MSDOS_NAME_SHORT;
203d1e8: 81 c7 e0 08 ret <== NOT EXECUTED
203d1ec: 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] != '.'))
203d1f0: 22 bf ff aa be,a 203d098 <msdos_long_to_short+0x78> <== NOT EXECUTED
203d1f4: 82 00 60 01 inc %g1 <== NOT EXECUTED
bool lowercase = false;
bool uppercase = false;
int dot_at = -1;
int count = 0;
while (*name && (count < name_len))
203d1f8: 10 bf ff af b 203d0b4 <msdos_long_to_short+0x94> <== NOT EXECUTED
203d1fc: 80 a4 e0 00 cmp %l3, 0 <== 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))
203d200: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
203d204: 12 bf ff 99 bne 203d068 <msdos_long_to_short+0x48> <== NOT EXECUTED
203d208: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
203d20c: 80 a6 60 02 cmp %i1, 2 <== NOT EXECUTED
203d210: 32 bf ff 96 bne,a 203d068 <msdos_long_to_short+0x48> <== NOT EXECUTED
203d214: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
{
sfn[0] = sfn[1] = '.';
203d218: c2 2e 80 00 stb %g1, [ %i2 ] <== NOT EXECUTED
203d21c: 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;
203d220: 81 c7 e0 08 ret <== NOT EXECUTED
203d224: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED
* Is this a short name ?
*/
type = msdos_name_type (lfn, lfn_len);
if (type == MSDOS_NAME_INVALID)
203d228: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
203d22c: 12 bf ff dc bne 203d19c <msdos_long_to_short+0x17c> <== NOT EXECUTED
203d230: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
#if MSDOS_L2S_PRINT
printf ("MSDOS_L2S: TYPE:%d lfn:'%s' SFN:'%s'\n", type, lfn, sfn);
#endif
return type;
}
203d234: 81 c7 e0 08 ret <== NOT EXECUTED
203d238: 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;
203d23c: 10 bf ff d7 b 203d198 <msdos_long_to_short+0x178> <== NOT EXECUTED
203d240: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
/*
* Filenames with only blanks and dots are not allowed!
*/
for (i = 0; i < lfn_len; i++)
if ((lfn[i] != ' ') && (lfn[i] != '.'))
203d244: 22 bf ff 94 be,a 203d094 <msdos_long_to_short+0x74> <== NOT EXECUTED
203d248: 82 10 20 00 clr %g1 <== NOT EXECUTED
bool lowercase = false;
bool uppercase = false;
int dot_at = -1;
int count = 0;
while (*name && (count < name_len))
203d24c: 10 bf ff 9a b 203d0b4 <msdos_long_to_short+0x94> <== NOT EXECUTED
203d250: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
02022fbc <msdos_mknod>:
const char *name,
mode_t mode,
dev_t dev,
rtems_filesystem_location_info_t *pathloc
)
{
2022fbc: 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;
2022fc0: 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))
2022fc4: 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;
2022fc8: 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))
2022fcc: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
2022fd0: 82 0e 40 01 and %i1, %g1, %g1 <== NOT EXECUTED
2022fd4: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022fd8: 02 80 00 1a be 2023040 <msdos_mknod+0x84> <== NOT EXECUTED
2022fdc: 05 00 00 20 sethi %hi(0x8000), %g2 <== NOT EXECUTED
{
type = MSDOS_DIRECTORY;
}
else if (S_ISREG(mode))
2022fe0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022fe4: 12 80 00 1f bne 2023060 <msdos_mknod+0xa4> <== NOT EXECUTED
2022fe8: a2 10 20 05 mov 5, %l1 <== NOT EXECUTED
type = MSDOS_REGULAR_FILE;
}
else
rtems_set_errno_and_return_minus_one(EINVAL);
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
2022fec: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
2022ff0: 92 10 20 00 clr %o1 <== NOT EXECUTED
2022ff4: 7f ff a9 91 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
2022ff8: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2022ffc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023000: 12 80 00 12 bne 2023048 <msdos_mknod+0x8c> <== NOT EXECUTED
2023004: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
/* Create an MSDOS node */
rc = msdos_creat_node(pathloc, type, name, strlen(name), mode, NULL);
2023008: 40 00 b2 b7 call 204fae4 <strlen> <== NOT EXECUTED
202300c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2023010: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
2023014: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2023018: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
202301c: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
2023020: 98 10 00 19 mov %i1, %o4 <== NOT EXECUTED
2023024: 40 00 5f 0f call 203ac60 <msdos_creat_node> <== NOT EXECUTED
2023028: 9a 10 20 00 clr %o5 <== NOT EXECUTED
202302c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
2023030: 7f ff a9 c9 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2023034: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
}
2023038: 81 c7 e0 08 ret <== NOT EXECUTED
202303c: 81 e8 00 00 restore <== NOT EXECUTED
else if (S_ISREG(mode))
{
type = MSDOS_REGULAR_FILE;
}
else
rtems_set_errno_and_return_minus_one(EINVAL);
2023040: 10 bf ff eb b 2022fec <msdos_mknod+0x30> <== NOT EXECUTED
2023044: a2 10 20 01 mov 1, %l1 <== 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);
2023048: 40 00 96 ff call 2048c44 <__errno> <== NOT EXECUTED
202304c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2023050: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2023054: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2023058: 81 c7 e0 08 ret <== NOT EXECUTED
202305c: 81 e8 00 00 restore <== NOT EXECUTED
else if (S_ISREG(mode))
{
type = MSDOS_REGULAR_FILE;
}
else
rtems_set_errno_and_return_minus_one(EINVAL);
2023060: 40 00 96 f9 call 2048c44 <__errno> <== NOT EXECUTED
2023064: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2023068: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
202306c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2023070: 81 c7 e0 08 ret <== NOT EXECUTED
2023074: 81 e8 00 00 restore <== NOT EXECUTED
02023078 <msdos_node_type>:
* node type
*
*/
rtems_filesystem_node_types_t
msdos_node_type(rtems_filesystem_location_info_t *pathloc)
{
2023078: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED
* call
*/
fat_fd = pathloc->node_access;
return fat_fd->fat_file_type;
}
202307c: 81 c3 e0 08 retl <== NOT EXECUTED
2023080: d0 00 60 10 ld [ %g1 + 0x10 ], %o0 <== NOT EXECUTED
02023084 <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)
{
2023084: 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;
2023088: 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)) {
202308c: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
2023090: 40 00 b2 95 call 204fae4 <strlen> <== NOT EXECUTED
2023094: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
2023098: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
202309c: 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;
20230a0: 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)) {
20230a4: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
20230a8: 40 00 67 a2 call 203cf30 <msdos_get_token> <== NOT EXECUTED
20230ac: 96 07 bf f8 add %fp, -8, %o3 <== NOT EXECUTED
20230b0: 80 a2 20 03 cmp %o0, 3 <== NOT EXECUTED
20230b4: 12 80 00 1d bne 2023128 <msdos_rename+0xa4> <== NOT EXECUTED
20230b8: 92 10 20 00 clr %o1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENAMETOOLONG);
}
/*
* lock volume
*/
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
20230bc: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
20230c0: 7f ff a9 5e call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
20230c4: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
20230c8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20230cc: 12 80 00 1d bne 2023140 <msdos_rename+0xbc> <== NOT EXECUTED
20230d0: d6 07 bf f8 ld [ %fp + -8 ], %o3 <== NOT EXECUTED
/*
* create new directory entry as "hard link", copying relevant info from
* existing file
*/
rc = msdos_creat_node(new_parent_loc,
20230d4: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
20230d8: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED
20230dc: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED
20230e0: 19 00 00 20 sethi %hi(0x8000), %o4 <== NOT EXECUTED
20230e4: 40 00 5e df call 203ac60 <msdos_creat_node> <== NOT EXECUTED
20230e8: 9a 10 00 11 mov %l1, %o5 <== NOT EXECUTED
MSDOS_HARD_LINK,new_name,len,S_IFREG,
old_fat_fd);
if (rc != RC_OK)
20230ec: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20230f0: 12 80 00 0a bne 2023118 <msdos_rename+0x94> <== NOT EXECUTED
20230f4: 92 04 60 20 add %l1, 0x20, %o1 <== NOT EXECUTED
}
/*
* mark file removed
*/
rc = msdos_set_first_char4file_name(old_loc->mt_entry,
20230f8: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
20230fc: 40 00 66 c1 call 203cc00 <msdos_set_first_char4file_name> <== NOT EXECUTED
2023100: 94 10 20 e5 mov 0xe5, %o2 <== NOT EXECUTED
2023104: 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);
2023108: 7f ff a9 93 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
202310c: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
}
2023110: 81 c7 e0 08 ret <== NOT EXECUTED
2023114: 81 e8 00 00 restore <== NOT EXECUTED
rc = msdos_creat_node(new_parent_loc,
MSDOS_HARD_LINK,new_name,len,S_IFREG,
old_fat_fd);
if (rc != RC_OK)
{
rtems_semaphore_release(fs_info->vol_sema);
2023118: 7f ff a9 8f call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
202311c: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
2023120: 81 c7 e0 08 ret <== NOT EXECUTED
2023124: 81 e8 00 00 restore <== NOT EXECUTED
/*
* check spelling and format new node name
*/
if (MSDOS_NAME != msdos_get_token(new_name, strlen(new_name), &token, &len)) {
rtems_set_errno_and_return_minus_one(ENAMETOOLONG);
2023128: 40 00 96 c7 call 2048c44 <__errno> <== NOT EXECUTED
202312c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2023130: 82 10 20 5b mov 0x5b, %g1 <== NOT EXECUTED
2023134: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2023138: 81 c7 e0 08 ret <== NOT EXECUTED
202313c: 81 e8 00 00 restore <== NOT EXECUTED
* lock volume
*/
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);
2023140: 40 00 96 c1 call 2048c44 <__errno> <== NOT EXECUTED
2023144: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2023148: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
202314c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2023150: 81 c7 e0 08 ret <== NOT EXECUTED
2023154: 81 e8 00 00 restore <== NOT EXECUTED
0203cdc8 <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
)
{
203cdc8: 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);
203cdcc: d0 06 60 40 ld [ %i1 + 0x40 ], %o0 <== NOT EXECUTED
203cdd0: a0 07 bf fc add %fp, -4, %l0 <== 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;
203cdd4: e8 06 20 34 ld [ %i0 + 0x34 ], %l4 <== 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);
203cdd8: a6 07 bf fe add %fp, -2, %l3 <== NOT EXECUTED
203cddc: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203cde0: 40 00 28 32 call 2046ea8 <msdos_date_unix2dos> <== NOT EXECUTED
203cde4: 94 10 00 13 mov %l3, %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);
203cde8: 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)) )
203cdec: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203cdf0: 12 80 00 06 bne 203ce08 <msdos_set_dir_wrt_time_and_date+0x40><== NOT EXECUTED
203cdf4: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 <== NOT EXECUTED
203cdf8: c6 08 60 0a ldub [ %g1 + 0xa ], %g3 <== NOT EXECUTED
203cdfc: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED
203ce00: 32 80 00 07 bne,a 203ce1c <msdos_set_dir_wrt_time_and_date+0x54><== NOT EXECUTED
203ce04: e4 00 60 1c ld [ %g1 + 0x1c ], %l2 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
203ce08: c6 00 60 30 ld [ %g1 + 0x30 ], %g3 <== NOT EXECUTED
203ce0c: c2 08 60 05 ldub [ %g1 + 5 ], %g1 <== NOT EXECUTED
203ce10: a4 00 bf fe add %g2, -2, %l2 <== NOT EXECUTED
203ce14: a5 2c 80 01 sll %l2, %g1, %l2 <== NOT EXECUTED
203ce18: a4 04 80 03 add %l2, %g3, %l2 <== NOT EXECUTED
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
203ce1c: c4 06 60 24 ld [ %i1 + 0x24 ], %g2 <== NOT EXECUTED
203ce20: c2 0d 20 02 ldub [ %l4 + 2 ], %g1 <== NOT EXECUTED
/* byte points to start of 32bytes structure */
byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);
203ce24: e2 15 00 00 lduh [ %l4 ], %l1 <== 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);
203ce28: 83 30 80 01 srl %g2, %g1, %g1 <== NOT EXECUTED
203ce2c: a4 04 80 01 add %l2, %g1, %l2 <== 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);
203ce30: 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);
203ce34: a2 04 7f ff add %l1, -1, %l1 <== NOT EXECUTED
time_val = CT_LE_W(time_val);
203ce38: 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);
203ce3c: a2 0c 40 02 and %l1, %g2, %l1 <== NOT EXECUTED
time_val = CT_LE_W(time_val);
203ce40: 85 30 60 18 srl %g1, 0x18, %g2 <== NOT EXECUTED
203ce44: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED
203ce48: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
ret1 = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_WTIME_OFFSET,
203ce4c: 98 10 00 13 mov %l3, %o4 <== 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);
203ce50: c2 37 bf fe sth %g1, [ %fp + -2 ] <== NOT EXECUTED
ret1 = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_WTIME_OFFSET,
203ce54: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203ce58: 94 04 60 16 add %l1, 0x16, %o2 <== NOT EXECUTED
203ce5c: 96 10 20 02 mov 2, %o3 <== NOT EXECUTED
203ce60: 7f ff b1 b6 call 2029538 <_fat_block_write> <== NOT EXECUTED
203ce64: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2, (char *)(&time_val));
date = CT_LE_W(date);
203ce68: 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,
203ce6c: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
2, (char *)(&time_val));
date = CT_LE_W(date);
203ce70: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
203ce74: 85 30 60 18 srl %g1, 0x18, %g2 <== NOT EXECUTED
203ce78: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED
203ce7c: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
ret2 = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_WDATE_OFFSET,
203ce80: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203ce84: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203ce88: 94 04 60 18 add %l1, 0x18, %o2 <== NOT EXECUTED
203ce8c: 98 10 00 10 mov %l0, %o4 <== 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);
203ce90: c2 37 bf fc sth %g1, [ %fp + -4 ] <== NOT EXECUTED
ret2 = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_WDATE_OFFSET,
203ce94: 7f ff b1 a9 call 2029538 <_fat_block_write> <== NOT EXECUTED
203ce98: 96 10 20 02 mov 2, %o3 <== NOT EXECUTED
2, (char *)(&date));
if ( (ret1 < 0) || (ret2 < 0) )
203ce9c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203cea0: 06 80 00 06 bl 203ceb8 <msdos_set_dir_wrt_time_and_date+0xf0><== NOT EXECUTED
203cea4: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
203cea8: 06 80 00 04 bl 203ceb8 <msdos_set_dir_wrt_time_and_date+0xf0><== NOT EXECUTED
203ceac: b0 10 20 00 clr %i0 <== NOT EXECUTED
return -1;
return RC_OK;
}
203ceb0: 81 c7 e0 08 ret <== NOT EXECUTED
203ceb4: 81 e8 00 00 restore <== NOT EXECUTED
203ceb8: 81 c7 e0 08 ret <== NOT EXECUTED
203cebc: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
0203ca78 <msdos_set_file_size>:
int
msdos_set_file_size(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
203ca78: 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);
203ca7c: 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
)
{
203ca80: 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)) )
203ca84: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203ca88: 12 80 00 06 bne 203caa0 <msdos_set_file_size+0x28> <== NOT EXECUTED
203ca8c: c4 06 20 34 ld [ %i0 + 0x34 ], %g2 <== NOT EXECUTED
203ca90: c6 08 a0 0a ldub [ %g2 + 0xa ], %g3 <== NOT EXECUTED
203ca94: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED
203ca98: 32 80 00 07 bne,a 203cab4 <msdos_set_file_size+0x3c> <== NOT EXECUTED
203ca9c: d2 00 a0 1c ld [ %g2 + 0x1c ], %o1 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
203caa0: c8 08 a0 05 ldub [ %g2 + 5 ], %g4 <== NOT EXECUTED
203caa4: c6 00 a0 30 ld [ %g2 + 0x30 ], %g3 <== NOT EXECUTED
203caa8: 92 00 7f fe add %g1, -2, %o1 <== NOT EXECUTED
203caac: 93 2a 40 04 sll %o1, %g4, %o1 <== NOT EXECUTED
203cab0: 92 02 40 03 add %o1, %g3, %o1 <== 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);
203cab4: c6 06 60 24 ld [ %i1 + 0x24 ], %g3 <== NOT EXECUTED
byte = (fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
203cab8: 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);
203cabc: c4 08 a0 02 ldub [ %g2 + 2 ], %g2 <== 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));
203cac0: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED
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);
byte = (fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
203cac4: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED
203cac8: 94 0a 80 03 and %o2, %g3, %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);
203cacc: 87 30 c0 02 srl %g3, %g2, %g3 <== 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,
203cad0: 92 02 40 03 add %o1, %g3, %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));
203cad4: 87 30 60 18 srl %g1, 0x18, %g3 <== NOT EXECUTED
203cad8: 85 30 60 10 srl %g1, 0x10, %g2 <== NOT EXECUTED
203cadc: 89 28 60 18 sll %g1, 0x18, %g4 <== NOT EXECUTED
203cae0: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
203cae4: 88 11 00 03 or %g4, %g3, %g4 <== NOT EXECUTED
203cae8: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203caec: 87 30 60 08 srl %g1, 8, %g3 <== NOT EXECUTED
203caf0: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED
203caf4: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
203caf8: 82 11 00 03 or %g4, %g3, %g1 <== NOT EXECUTED
203cafc: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
ret = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_SIZE_OFFSET, 4,
203cb00: 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));
203cb04: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
ret = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_SIZE_OFFSET, 4,
203cb08: 96 10 20 04 mov 4, %o3 <== NOT EXECUTED
203cb0c: 7f ff b2 8b call 2029538 <_fat_block_write> <== NOT EXECUTED
203cb10: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
(char *)(&le_new_length));
if ( ret < 0 )
return -1;
return RC_OK;
}
203cb14: b1 3a 20 1f sra %o0, 0x1f, %i0 <== NOT EXECUTED
203cb18: 81 c7 e0 08 ret <== NOT EXECUTED
203cb1c: 81 e8 00 00 restore <== NOT EXECUTED
0203cc00 <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
)
{
203cc00: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
ssize_t ret;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
203cc04: c4 06 20 34 ld [ %i0 + 0x34 ], %g2 <== NOT EXECUTED
uint32_t dir_block_size;
fat_pos_t start = dir_pos->lname;
203cc08: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
203cc0c: c6 06 60 08 ld [ %i1 + 8 ], %g3 <== NOT EXECUTED
msdos_set_first_char4file_name(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_dir_pos_t *dir_pos,
unsigned char fchar
)
{
203cc10: 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;
203cc14: c6 27 bf f8 st %g3, [ %fp + -8 ] <== NOT EXECUTED
203cc18: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
fat_pos_t end = dir_pos->sname;
203cc1c: e4 06 40 00 ld [ %i1 ], %l2 <== NOT EXECUTED
if ((end.cln == fs_info->fat.vol.rdir_cl) &&
203cc20: c2 00 a0 38 ld [ %g2 + 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
)
{
203cc24: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
ssize_t ret;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
203cc28: a2 10 00 02 mov %g2, %l1 <== NOT EXECUTED
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) &&
203cc2c: 80 a0 40 12 cmp %g1, %l2 <== NOT EXECUTED
203cc30: 02 80 00 5a be 203cd98 <msdos_set_first_char4file_name+0x198><== NOT EXECUTED
203cc34: ea 06 60 04 ld [ %i1 + 4 ], %l5 <== 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;
if (dir_pos->lname.cln == FAT_FILE_SHORT_NAME)
203cc38: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
203cc3c: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED
203cc40: 02 80 00 5d be 203cdb4 <msdos_set_first_char4file_name+0x1b4><== NOT EXECUTED
203cc44: e8 10 a0 06 lduh [ %g2 + 6 ], %l4 <== NOT EXECUTED
start = dir_pos->sname;
203cc48: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203cc4c: c6 08 a0 02 ldub [ %g2 + 2 ], %g3 <== NOT EXECUTED
203cc50: d4 10 80 00 lduh [ %g2 ], %o2 <== NOT EXECUTED
203cc54: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
203cc58: a6 07 a0 4c add %fp, 0x4c, %l3 <== 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);
203cc5c: 10 80 00 1e b 203ccd4 <msdos_set_first_char4file_name+0xd4><== NOT EXECUTED
203cc60: ac 07 bf f8 add %fp, -8, %l6 <== 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)) )
203cc64: 80 89 20 03 btst 3, %g4 <== NOT EXECUTED
203cc68: 22 80 00 1f be,a 203cce4 <msdos_set_first_char4file_name+0xe4><== NOT EXECUTED
203cc6c: c8 00 a0 30 ld [ %g2 + 0x30 ], %g4 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
203cc70: d2 00 a0 1c ld [ %g2 + 0x1c ], %o1 <== NOT EXECUTED
{
uint32_t sec = (fat_cluster_num_to_sector_num(mt_entry, start.cln) +
(start.ofs >> fs_info->fat.vol.sec_log2));
uint32_t byte = (start.ofs & (fs_info->fat.vol.bps - 1));;
ret = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_NAME_OFFSET, 1,
203cc74: 85 30 40 03 srl %g1, %g3, %g2 <== NOT EXECUTED
203cc78: 95 2a a0 10 sll %o2, 0x10, %o2 <== NOT EXECUTED
203cc7c: 92 02 40 02 add %o1, %g2, %o1 <== NOT EXECUTED
203cc80: 95 32 a0 10 srl %o2, 0x10, %o2 <== NOT EXECUTED
203cc84: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203cc88: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED
203cc8c: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
203cc90: 94 0a 80 01 and %o2, %g1, %o2 <== NOT EXECUTED
203cc94: 7f ff b2 29 call 2029538 <_fat_block_write> <== NOT EXECUTED
203cc98: 98 10 00 13 mov %l3, %o4 <== NOT EXECUTED
&fchar);
if (ret < 0)
203cc9c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203cca0: 06 80 00 23 bl 203cd2c <msdos_set_first_char4file_name+0x12c><== NOT EXECUTED
203cca4: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
return -1;
if ((start.cln == end.cln) && (start.ofs == end.ofs))
203cca8: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
203ccac: 80 a2 40 12 cmp %o1, %l2 <== NOT EXECUTED
203ccb0: 02 80 00 21 be 203cd34 <msdos_set_first_char4file_name+0x134><== NOT EXECUTED
203ccb4: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
break;
start.ofs += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;
203ccb8: 82 00 60 20 add %g1, 0x20, %g1 <== NOT EXECUTED
if (start.ofs >= dir_block_size)
203ccbc: 80 a5 00 01 cmp %l4, %g1 <== NOT EXECUTED
203ccc0: 08 80 00 23 bleu 203cd4c <msdos_set_first_char4file_name+0x14c><== NOT EXECUTED
203ccc4: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
203ccc8: c4 04 20 34 ld [ %l0 + 0x34 ], %g2 <== NOT EXECUTED
203cccc: c6 0c 60 02 ldub [ %l1 + 2 ], %g3 <== NOT EXECUTED
203ccd0: d4 14 40 00 lduh [ %l1 ], %o2 <== 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)) )
203ccd4: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
203ccd8: 22 bf ff e3 be,a 203cc64 <msdos_set_first_char4file_name+0x64><== NOT EXECUTED
203ccdc: c8 08 a0 0a ldub [ %g2 + 0xa ], %g4 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
203cce0: c8 00 a0 30 ld [ %g2 + 0x30 ], %g4 <== NOT EXECUTED
203cce4: c4 08 a0 05 ldub [ %g2 + 5 ], %g2 <== NOT EXECUTED
203cce8: 92 02 7f fe add %o1, -2, %o1 <== NOT EXECUTED
203ccec: 93 2a 40 02 sll %o1, %g2, %o1 <== NOT EXECUTED
{
uint32_t sec = (fat_cluster_num_to_sector_num(mt_entry, start.cln) +
(start.ofs >> fs_info->fat.vol.sec_log2));
uint32_t byte = (start.ofs & (fs_info->fat.vol.bps - 1));;
ret = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_NAME_OFFSET, 1,
203ccf0: 85 30 40 03 srl %g1, %g3, %g2 <== NOT EXECUTED
203ccf4: 92 02 40 04 add %o1, %g4, %o1 <== NOT EXECUTED
203ccf8: 95 2a a0 10 sll %o2, 0x10, %o2 <== NOT EXECUTED
203ccfc: 92 02 40 02 add %o1, %g2, %o1 <== NOT EXECUTED
203cd00: 95 32 a0 10 srl %o2, 0x10, %o2 <== NOT EXECUTED
203cd04: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203cd08: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED
203cd0c: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
203cd10: 94 0a 80 01 and %o2, %g1, %o2 <== NOT EXECUTED
203cd14: 7f ff b2 09 call 2029538 <_fat_block_write> <== NOT EXECUTED
203cd18: 98 10 00 13 mov %l3, %o4 <== NOT EXECUTED
&fchar);
if (ret < 0)
203cd1c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203cd20: 16 bf ff e3 bge 203ccac <msdos_set_first_char4file_name+0xac><== NOT EXECUTED
203cd24: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
break;
rc = fat_get_fat_cluster(mt_entry, start.cln, &start.cln);
if ( rc != RC_OK )
return rc;
start.ofs = 0;
203cd28: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
}
}
return RC_OK;
}
203cd2c: 81 c7 e0 08 ret <== NOT EXECUTED
203cd30: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
ret = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_NAME_OFFSET, 1,
&fchar);
if (ret < 0)
return -1;
if ((start.cln == end.cln) && (start.ofs == end.ofs))
203cd34: 80 a0 40 15 cmp %g1, %l5 <== NOT EXECUTED
203cd38: 32 bf ff e1 bne,a 203ccbc <msdos_set_first_char4file_name+0xbc><== NOT EXECUTED
203cd3c: 82 00 60 20 add %g1, 0x20, %g1 <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
break;
rc = fat_get_fat_cluster(mt_entry, start.cln, &start.cln);
if ( rc != RC_OK )
return rc;
start.ofs = 0;
203cd40: 90 10 20 00 clr %o0 <== NOT EXECUTED
}
}
return RC_OK;
}
203cd44: 81 c7 e0 08 ret <== NOT EXECUTED
203cd48: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
start.ofs += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;
if (start.ofs >= dir_block_size)
{
int rc;
if ((end.cln == fs_info->fat.vol.rdir_cl) &&
203cd4c: c2 04 60 38 ld [ %l1 + 0x38 ], %g1 <== NOT EXECUTED
203cd50: 80 a0 40 12 cmp %g1, %l2 <== NOT EXECUTED
203cd54: 12 80 00 06 bne 203cd6c <msdos_set_first_char4file_name+0x16c><== NOT EXECUTED
203cd58: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
203cd5c: c2 0c 60 0a ldub [ %l1 + 0xa ], %g1 <== NOT EXECUTED
203cd60: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
203cd64: 32 bf ff f8 bne,a 203cd44 <msdos_set_first_char4file_name+0x144><== NOT EXECUTED
203cd68: 90 10 20 00 clr %o0 <== NOT EXECUTED
break;
rc = fat_get_fat_cluster(mt_entry, start.cln, &start.cln);
203cd6c: 40 00 1e 20 call 20445ec <fat_get_fat_cluster> <== NOT EXECUTED
203cd70: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
203cd74: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203cd78: 12 bf ff ed bne 203cd2c <msdos_set_first_char4file_name+0x12c><== NOT EXECUTED
203cd7c: 82 10 20 00 clr %g1 <== NOT EXECUTED
return rc;
start.ofs = 0;
203cd80: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
203cd84: c4 04 20 34 ld [ %l0 + 0x34 ], %g2 <== NOT EXECUTED
203cd88: c6 0c 60 02 ldub [ %l1 + 2 ], %g3 <== NOT EXECUTED
203cd8c: d4 14 40 00 lduh [ %l1 ], %o2 <== NOT EXECUTED
203cd90: 10 bf ff d1 b 203ccd4 <msdos_set_first_char4file_name+0xd4><== NOT EXECUTED
203cd94: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
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) &&
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
203cd98: c2 08 a0 0a ldub [ %g2 + 0xa ], %g1 <== NOT EXECUTED
203cd9c: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
203cda0: 02 bf ff a7 be 203cc3c <msdos_set_first_char4file_name+0x3c><== NOT EXECUTED
203cda4: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
dir_block_size = fs_info->fat.vol.rdir_size;
else
dir_block_size = fs_info->fat.vol.bpc;
if (dir_pos->lname.cln == FAT_FILE_SHORT_NAME)
203cda8: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED
203cdac: 12 bf ff a7 bne 203cc48 <msdos_set_first_char4file_name+0x48><== NOT EXECUTED
203cdb0: e8 00 a0 28 ld [ %g2 + 0x28 ], %l4 <== NOT EXECUTED
start = dir_pos->sname;
203cdb4: c6 06 60 04 ld [ %i1 + 4 ], %g3 <== NOT EXECUTED
203cdb8: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
203cdbc: c6 27 bf fc st %g3, [ %fp + -4 ] <== NOT EXECUTED
203cdc0: 10 bf ff a2 b 203cc48 <msdos_set_first_char4file_name+0x48><== NOT EXECUTED
203cdc4: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED
0203cb20 <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
)
{
203cb20: 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);
203cb24: 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;
203cb28: 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)) )
203cb2c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203cb30: 12 80 00 06 bne 203cb48 <msdos_set_first_cluster_num+0x28><== NOT EXECUTED
203cb34: e4 06 60 1c ld [ %i1 + 0x1c ], %l2 <== NOT EXECUTED
203cb38: c6 08 a0 0a ldub [ %g2 + 0xa ], %g3 <== NOT EXECUTED
203cb3c: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED
203cb40: 32 80 00 07 bne,a 203cb5c <msdos_set_first_cluster_num+0x3c><== NOT EXECUTED
203cb44: e2 00 a0 1c ld [ %g2 + 0x1c ], %l1 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
203cb48: c8 08 a0 05 ldub [ %g2 + 5 ], %g4 <== NOT EXECUTED
203cb4c: c6 00 a0 30 ld [ %g2 + 0x30 ], %g3 <== NOT EXECUTED
203cb50: a2 00 7f fe add %g1, -2, %l1 <== NOT EXECUTED
203cb54: a3 2c 40 04 sll %l1, %g4, %l1 <== NOT EXECUTED
203cb58: a2 04 40 03 add %l1, %g3, %l1 <== 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);
203cb5c: c2 08 a0 02 ldub [ %g2 + 2 ], %g1 <== NOT EXECUTED
/* byte from points to start of 32bytes structure */
byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);
203cb60: 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);
203cb64: 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);
203cb68: a0 04 3f ff add %l0, -1, %l0 <== NOT EXECUTED
203cb6c: a0 0c 00 03 and %l0, %g3, %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);
203cb70: 87 30 c0 01 srl %g3, %g1, %g3 <== 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));
203cb74: 83 2c a0 10 sll %l2, 0x10, %g1 <== NOT EXECUTED
203cb78: 85 30 60 18 srl %g1, 0x18, %g2 <== NOT EXECUTED
203cb7c: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED
203cb80: 82 10 40 02 or %g1, %g2, %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);
203cb84: a2 04 40 03 add %l1, %g3, %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));
203cb88: c2 37 bf fe sth %g1, [ %fp + -2 ] <== NOT EXECUTED
ret1 = _fat_block_write(mt_entry, sec,
203cb8c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203cb90: 94 04 20 1a add %l0, 0x1a, %o2 <== NOT EXECUTED
203cb94: 96 10 20 02 mov 2, %o3 <== NOT EXECUTED
203cb98: 98 07 bf fe add %fp, -2, %o4 <== 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;
203cb9c: c0 37 bf fc clrh [ %fp + -4 ] <== 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,
203cba0: 7f ff b2 66 call 2029538 <_fat_block_write> <== NOT EXECUTED
203cba4: 90 10 00 18 mov %i0, %o0 <== 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));
203cba8: a5 34 a0 10 srl %l2, 0x10, %l2 <== NOT EXECUTED
203cbac: a5 2c a0 10 sll %l2, 0x10, %l2 <== NOT EXECUTED
203cbb0: 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,
203cbb4: 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,
203cbb8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203cbbc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203cbc0: 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));
203cbc4: a5 34 a0 08 srl %l2, 8, %l2 <== NOT EXECUTED
ret2 = _fat_block_write(mt_entry, sec,
203cbc8: 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));
203cbcc: a4 14 80 01 or %l2, %g1, %l2 <== NOT EXECUTED
ret2 = _fat_block_write(mt_entry, sec,
203cbd0: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
203cbd4: 7f ff b2 59 call 2029538 <_fat_block_write> <== NOT EXECUTED
203cbd8: 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) )
203cbdc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203cbe0: 06 80 00 06 bl 203cbf8 <msdos_set_first_cluster_num+0xd8> <== NOT EXECUTED
203cbe4: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
203cbe8: 06 80 00 04 bl 203cbf8 <msdos_set_first_cluster_num+0xd8> <== NOT EXECUTED
203cbec: b0 10 20 00 clr %i0 <== NOT EXECUTED
return -1;
return RC_OK;
}
203cbf0: 81 c7 e0 08 ret <== NOT EXECUTED
203cbf4: 81 e8 00 00 restore <== NOT EXECUTED
203cbf8: 81 c7 e0 08 ret <== NOT EXECUTED
203cbfc: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
0203bd68 <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)
{
203bd68: 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)
203bd6c: 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;
203bd70: 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)
203bd74: 7f ff b3 d3 call 2028cc0 <fat_file_close> <== NOT EXECUTED
203bd78: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203bd7c: 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)
{
203bd80: 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)
203bd84: 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)
203bd88: 7f ff b6 4b call 20296b4 <fat_shutdown_drive> <== NOT EXECUTED
203bd8c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203bd90: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203bd94: 32 80 00 02 bne,a 203bd9c <msdos_shut_down+0x34> <== NOT EXECUTED
203bd98: 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);
203bd9c: 7f ff 45 e1 call 200d520 <rtems_semaphore_delete> <== NOT EXECUTED
203bda0: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
free(fs_info->cl_buf);
203bda4: 7f ff 32 ce call 20088dc <free> <== NOT EXECUTED
203bda8: d0 04 60 9c ld [ %l1 + 0x9c ], %o0 <== NOT EXECUTED
free(temp_mt_entry->fs_info);
203bdac: 7f ff 32 cc call 20088dc <free> <== NOT EXECUTED
203bdb0: d0 04 20 34 ld [ %l0 + 0x34 ], %o0 <== NOT EXECUTED
return rc;
}
203bdb4: 81 c7 e0 08 ret <== NOT EXECUTED
203bdb8: 81 e8 00 00 restore <== NOT EXECUTED
020036c0 <newlib_delete_hook>:
void newlib_delete_hook(
rtems_tcb *current_task,
rtems_tcb *deleted_task
)
{
20036c0: 9d e3 bf a0 save %sp, -96, %sp
/*
* The reentrancy structure was allocated by newlib using malloc()
*/
if (current_task == deleted_task) {
20036c4: 80 a6 00 19 cmp %i0, %i1
20036c8: 02 80 00 16 be 2003720 <newlib_delete_hook+0x60>
20036cc: 03 00 80 74 sethi %hi(0x201d000), %g1
ptr = _REENT;
} else {
ptr = deleted_task->libc_reent;
20036d0: e0 06 61 5c ld [ %i1 + 0x15c ], %l0
}
if (ptr && ptr != _global_impure_ptr) {
20036d4: 80 a4 20 00 cmp %l0, 0
20036d8: 02 80 00 0b be 2003704 <newlib_delete_hook+0x44> <== NEVER TAKEN
20036dc: 03 00 80 72 sethi %hi(0x201c800), %g1
20036e0: c2 00 63 60 ld [ %g1 + 0x360 ], %g1 ! 201cb60 <_global_impure_ptr>
20036e4: 80 a4 00 01 cmp %l0, %g1
20036e8: 02 80 00 07 be 2003704 <newlib_delete_hook+0x44>
20036ec: 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);
20036f0: 90 10 00 10 mov %l0, %o0
20036f4: 40 00 35 71 call 2010cb8 <_fwalk>
20036f8: 92 12 63 28 or %o1, 0x328, %o1
#if REENT_MALLOCED
free(ptr);
#else
_Workspace_Free(ptr);
20036fc: 40 00 1a f0 call 200a2bc <_Workspace_Free>
2003700: 90 10 00 10 mov %l0, %o0
/*
* Require the switch back to another task to install its own
*/
if ( current_task == deleted_task ) {
2003704: 80 a6 00 19 cmp %i0, %i1
2003708: 12 80 00 04 bne 2003718 <newlib_delete_hook+0x58>
200370c: c0 26 61 5c clr [ %i1 + 0x15c ]
_REENT = 0;
2003710: 03 00 80 74 sethi %hi(0x201d000), %g1
2003714: c0 20 62 80 clr [ %g1 + 0x280 ] ! 201d280 <_impure_ptr>
2003718: 81 c7 e0 08 ret
200371c: 81 e8 00 00 restore
/*
* The reentrancy structure was allocated by newlib using malloc()
*/
if (current_task == deleted_task) {
ptr = _REENT;
2003720: 10 bf ff ed b 20036d4 <newlib_delete_hook+0x14>
2003724: e0 00 62 80 ld [ %g1 + 0x280 ], %l0
02003728 <newlib_free_buffers>:
*/
int newlib_free_buffers(
FILE *fp
)
{
2003728: 9d e3 bf a0 save %sp, -96, %sp
switch ( fileno(fp) ) {
200372c: 40 00 34 63 call 20108b8 <fileno>
2003730: 90 10 00 18 mov %i0, %o0
2003734: 80 a2 20 02 cmp %o0, 2
2003738: 28 80 00 06 bleu,a 2003750 <newlib_free_buffers+0x28> <== ALWAYS TAKEN
200373c: c2 16 20 0c lduh [ %i0 + 0xc ], %g1
fp->_flags &= ~__SMBF;
fp->_bf._base = fp->_p = (unsigned char *) NULL;
}
break;
default:
fclose(fp);
2003740: 40 00 33 9c call 20105b0 <fclose> <== NOT EXECUTED
2003744: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
}
return 0;
}
2003748: 81 c7 e0 08 ret
200374c: 91 e8 20 00 restore %g0, 0, %o0
{
switch ( fileno(fp) ) {
case 0:
case 1:
case 2:
if (fp->_flags & __SMBF) {
2003750: 80 88 60 80 btst 0x80, %g1
2003754: 02 bf ff fd be 2003748 <newlib_free_buffers+0x20> <== ALWAYS TAKEN
2003758: 01 00 00 00 nop
free( fp->_bf._base );
200375c: 7f ff fd 64 call 2002cec <free> <== NOT EXECUTED
2003760: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED
fp->_flags &= ~__SMBF;
2003764: c2 16 20 0c lduh [ %i0 + 0xc ], %g1 <== NOT EXECUTED
fp->_bf._base = fp->_p = (unsigned char *) NULL;
2003768: 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;
200376c: 82 08 7f 7f and %g1, -129, %g1 <== NOT EXECUTED
fp->_bf._base = fp->_p = (unsigned char *) NULL;
2003770: 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;
2003774: c2 36 20 0c sth %g1, [ %i0 + 0xc ] <== NOT EXECUTED
break;
default:
fclose(fp);
}
return 0;
}
2003778: 81 c7 e0 08 ret <== NOT EXECUTED
200377c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
02002fa0 <null_initialize>:
rtems_device_driver null_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor __attribute__((unused)),
void *pargp __attribute__((unused))
)
{
2002fa0: 9d e3 bf a0 save %sp, -96, %sp
rtems_device_driver status;
if ( !initialized ) {
2002fa4: 03 00 80 8a sethi %hi(0x2022800), %g1
2002fa8: c4 48 60 d4 ldsb [ %g1 + 0xd4 ], %g2 ! 20228d4 <initialized>
2002fac: 80 a0 a0 00 cmp %g2, 0
2002fb0: 02 80 00 04 be 2002fc0 <null_initialize+0x20>
2002fb4: 84 10 20 01 mov 1, %g2
NULL_major = major;
}
return RTEMS_SUCCESSFUL;
}
2002fb8: 81 c7 e0 08 ret
2002fbc: 91 e8 20 00 restore %g0, 0, %o0
rtems_device_driver status;
if ( !initialized ) {
initialized = 1;
status = rtems_io_register_name(
2002fc0: 11 00 80 80 sethi %hi(0x2020000), %o0
)
{
rtems_device_driver status;
if ( !initialized ) {
initialized = 1;
2002fc4: c4 28 60 d4 stb %g2, [ %g1 + 0xd4 ]
status = rtems_io_register_name(
2002fc8: 90 12 23 c0 or %o0, 0x3c0, %o0
2002fcc: 92 10 00 18 mov %i0, %o1
2002fd0: 40 00 01 ce call 2003708 <rtems_io_register_name>
2002fd4: 94 10 20 00 clr %o2
"/dev/null",
major,
(rtems_device_minor_number) 0
);
if (status != RTEMS_SUCCESSFUL)
2002fd8: 80 a2 20 00 cmp %o0, 0
2002fdc: 12 80 00 05 bne 2002ff0 <null_initialize+0x50> <== NEVER TAKEN
2002fe0: 03 00 80 8a sethi %hi(0x2022800), %g1
rtems_fatal_error_occurred(status);
NULL_major = major;
2002fe4: f0 20 63 84 st %i0, [ %g1 + 0x384 ] ! 2022b84 <NULL_major>
}
return RTEMS_SUCCESSFUL;
}
2002fe8: 81 c7 e0 08 ret
2002fec: 91 e8 20 00 restore %g0, 0, %o0
major,
(rtems_device_minor_number) 0
);
if (status != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred(status);
2002ff0: 40 00 13 fe call 2007fe8 <rtems_fatal_error_occurred> <== NOT EXECUTED
02002f7c <null_write>:
void *pargp
)
{
rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp;
if ( rw_args )
2002f7c: 80 a2 a0 00 cmp %o2, 0
2002f80: 02 80 00 04 be 2002f90 <null_write+0x14> <== ALWAYS TAKEN
2002f84: 01 00 00 00 nop
rw_args->bytes_moved = rw_args->count;
2002f88: c2 02 a0 14 ld [ %o2 + 0x14 ], %g1 <== NOT EXECUTED
2002f8c: c2 22 a0 1c st %g1, [ %o2 + 0x1c ] <== NOT EXECUTED
return NULL_SUCCESSFUL;
}
2002f90: 81 c3 e0 08 retl
2002f94: 90 10 20 00 clr %o0
020039c8 <open>:
int open(
const char *pathname,
int flags,
...
)
{
20039c8: 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);
20039cc: f4 27 a0 4c st %i2, [ %fp + 0x4c ]
20039d0: f6 27 a0 50 st %i3, [ %fp + 0x50 ]
20039d4: f8 27 a0 54 st %i4, [ %fp + 0x54 ]
20039d8: fa 27 a0 58 st %i5, [ %fp + 0x58 ]
/*
* Set the Evaluation flags
*/
eval_flags = 0;
status = flags + 1;
20039dc: a2 06 60 01 add %i1, 1, %l1
if ( ( status & _FREAD ) == _FREAD )
eval_flags |= RTEMS_LIBIO_PERMS_READ;
if ( ( status & _FWRITE ) == _FWRITE )
20039e0: 80 8c 60 02 btst 2, %l1
* Set the Evaluation flags
*/
eval_flags = 0;
status = flags + 1;
if ( ( status & _FREAD ) == _FREAD )
20039e4: a2 0c 60 01 and %l1, 1, %l1
eval_flags |= RTEMS_LIBIO_PERMS_READ;
if ( ( status & _FWRITE ) == _FWRITE )
20039e8: 02 80 00 03 be 20039f4 <open+0x2c>
20039ec: a3 2c 60 02 sll %l1, 2, %l1
eval_flags |= RTEMS_LIBIO_PERMS_WRITE;
20039f0: a2 14 60 02 or %l1, 2, %l1
va_start(ap, flags);
mode = va_arg( ap, int );
20039f4: 82 07 a0 50 add %fp, 0x50, %g1
20039f8: e4 07 a0 4c ld [ %fp + 0x4c ], %l2
20039fc: 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();
2003a00: 40 00 24 34 call 200cad0 <rtems_libio_allocate>
2003a04: a6 10 20 17 mov 0x17, %l3
if ( iop == 0 ) {
2003a08: a0 92 20 00 orcc %o0, 0, %l0
2003a0c: 02 80 00 6c be 2003bbc <open+0x1f4>
2003a10: 01 00 00 00 nop
/*
* See if the file exists.
*/
status = rtems_filesystem_evaluate_path(
2003a14: 40 00 36 5c call 2011384 <strlen>
2003a18: 90 10 00 18 mov %i0, %o0
2003a1c: 94 10 00 11 mov %l1, %o2
2003a20: 92 10 00 08 mov %o0, %o1
2003a24: a2 07 bf e8 add %fp, -24, %l1
2003a28: 90 10 00 18 mov %i0, %o0
2003a2c: 96 10 00 11 mov %l1, %o3
2003a30: 7f ff fc 90 call 2002c70 <rtems_filesystem_evaluate_path>
2003a34: 98 10 20 01 mov 1, %o4
pathname, strlen( pathname ), eval_flags, &loc, true );
if ( status == -1 ) {
2003a38: 80 a2 3f ff cmp %o0, -1
2003a3c: 02 80 00 65 be 2003bd0 <open+0x208>
2003a40: 82 0e 6a 00 and %i1, 0xa00, %g1
if ( status != 0 ) { /* The file did not exist */
rc = EACCES;
goto done;
}
} else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) {
2003a44: a8 10 00 11 mov %l1, %l4
2003a48: 80 a0 6a 00 cmp %g1, 0xa00
2003a4c: 02 80 00 4a be 2003b74 <open+0x1ac>
2003a50: 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;
2003a54: c2 07 bf f0 ld [ %fp + -16 ], %g1
iop->file_info = loc.node_access;
iop->flags |= rtems_libio_fcntl_flags( flags );
2003a58: e6 04 20 18 ld [ %l0 + 0x18 ], %l3
/*
* Fill in the file control block based on the loc structure
* returned by successful path evaluation.
*/
iop->handlers = loc.handlers;
2003a5c: c2 24 20 40 st %g1, [ %l0 + 0x40 ]
iop->file_info = loc.node_access;
2003a60: c2 07 bf e8 ld [ %fp + -24 ], %g1
iop->flags |= rtems_libio_fcntl_flags( flags );
2003a64: 90 10 00 19 mov %i1, %o0
2003a68: 40 00 24 5b call 200cbd4 <rtems_libio_fcntl_flags>
2003a6c: c2 24 20 3c st %g1, [ %l0 + 0x3c ]
iop->pathinfo = loc;
2003a70: c4 07 bf e8 ld [ %fp + -24 ], %g2
if ( !iop->handlers || !iop->handlers->open_h ) {
2003a74: c2 04 20 40 ld [ %l0 + 0x40 ], %g1
*/
iop->handlers = loc.handlers;
iop->file_info = loc.node_access;
iop->flags |= rtems_libio_fcntl_flags( flags );
iop->pathinfo = loc;
2003a78: c4 24 20 1c st %g2, [ %l0 + 0x1c ]
2003a7c: c4 07 bf ec ld [ %fp + -20 ], %g2
* returned by successful path evaluation.
*/
iop->handlers = loc.handlers;
iop->file_info = loc.node_access;
iop->flags |= rtems_libio_fcntl_flags( flags );
2003a80: 90 12 00 13 or %o0, %l3, %o0
iop->pathinfo = loc;
2003a84: c4 24 20 20 st %g2, [ %l0 + 0x20 ]
2003a88: c4 07 bf f0 ld [ %fp + -16 ], %g2
* returned by successful path evaluation.
*/
iop->handlers = loc.handlers;
iop->file_info = loc.node_access;
iop->flags |= rtems_libio_fcntl_flags( flags );
2003a8c: d0 24 20 18 st %o0, [ %l0 + 0x18 ]
iop->pathinfo = loc;
2003a90: c4 24 20 24 st %g2, [ %l0 + 0x24 ]
2003a94: c4 07 bf f4 ld [ %fp + -12 ], %g2
if ( !iop->handlers || !iop->handlers->open_h ) {
2003a98: 80 a0 60 00 cmp %g1, 0
*/
iop->handlers = loc.handlers;
iop->file_info = loc.node_access;
iop->flags |= rtems_libio_fcntl_flags( flags );
iop->pathinfo = loc;
2003a9c: c4 24 20 28 st %g2, [ %l0 + 0x28 ]
2003aa0: c4 07 bf f8 ld [ %fp + -8 ], %g2
if ( !iop->handlers || !iop->handlers->open_h ) {
2003aa4: 02 80 00 32 be 2003b6c <open+0x1a4> <== NEVER TAKEN
2003aa8: c4 24 20 2c st %g2, [ %l0 + 0x2c ]
2003aac: c2 00 40 00 ld [ %g1 ], %g1
2003ab0: 80 a0 60 00 cmp %g1, 0
2003ab4: 02 80 00 2e be 2003b6c <open+0x1a4> <== NEVER TAKEN
2003ab8: 92 10 00 18 mov %i0, %o1
rc = ENOTSUP;
goto done;
}
rc = (*iop->handlers->open_h)( iop, pathname, flags, mode );
2003abc: 96 10 00 12 mov %l2, %o3
2003ac0: 90 10 00 10 mov %l0, %o0
2003ac4: 9f c0 40 00 call %g1
2003ac8: 94 10 00 19 mov %i1, %o2
if ( rc ) {
2003acc: 80 a2 20 00 cmp %o0, 0
2003ad0: 12 80 00 12 bne 2003b18 <open+0x150>
2003ad4: 80 8e 64 00 btst 0x400, %i1
/*
* Optionally truncate the file.
*/
if ( (flags & O_TRUNC) == O_TRUNC ) {
2003ad8: 12 80 00 48 bne 2003bf8 <open+0x230>
2003adc: 23 00 80 76 sethi %hi(0x201d800), %l1
if ( loc_to_free )
rtems_filesystem_freenode( loc_to_free );
rtems_set_errno_and_return_minus_one( rc );
}
return iop - rtems_libio_iops;
2003ae0: c2 04 61 d8 ld [ %l1 + 0x1d8 ], %g1 ! 201d9d8 <rtems_libio_iops>
2003ae4: a0 24 00 01 sub %l0, %g1, %l0
2003ae8: a1 3c 20 03 sra %l0, 3, %l0
2003aec: 85 2c 20 06 sll %l0, 6, %g2
2003af0: 83 2c 20 03 sll %l0, 3, %g1
2003af4: 82 20 80 01 sub %g2, %g1, %g1
2003af8: 85 28 60 06 sll %g1, 6, %g2
2003afc: 82 00 40 02 add %g1, %g2, %g1
2003b00: 82 00 40 10 add %g1, %l0, %g1
2003b04: b1 28 60 0f sll %g1, 0xf, %i0
2003b08: b0 26 00 01 sub %i0, %g1, %i0
2003b0c: b1 2e 20 03 sll %i0, 3, %i0
}
2003b10: 81 c7 e0 08 ret
2003b14: 91 ee 00 10 restore %i0, %l0, %o0
goto done;
}
rc = (*iop->handlers->open_h)( iop, pathname, flags, mode );
if ( rc ) {
rc = errno;
2003b18: a8 10 00 11 mov %l1, %l4
2003b1c: 40 00 32 4d call 2010450 <__errno>
2003b20: 01 00 00 00 nop
2003b24: e6 02 00 00 ld [ %o0 ], %l3
*/
done:
va_end(ap);
if ( rc ) {
2003b28: 80 a4 e0 00 cmp %l3, 0
2003b2c: 12 80 00 12 bne 2003b74 <open+0x1ac> <== ALWAYS TAKEN
2003b30: 23 00 80 76 sethi %hi(0x201d800), %l1
if ( loc_to_free )
rtems_filesystem_freenode( loc_to_free );
rtems_set_errno_and_return_minus_one( rc );
}
return iop - rtems_libio_iops;
2003b34: c2 04 61 d8 ld [ %l1 + 0x1d8 ], %g1 ! 201d9d8 <rtems_libio_iops><== NOT EXECUTED
2003b38: a0 24 00 01 sub %l0, %g1, %l0 <== NOT EXECUTED
2003b3c: a1 3c 20 03 sra %l0, 3, %l0 <== NOT EXECUTED
2003b40: 85 2c 20 06 sll %l0, 6, %g2 <== NOT EXECUTED
2003b44: 83 2c 20 03 sll %l0, 3, %g1 <== NOT EXECUTED
2003b48: 82 20 80 01 sub %g2, %g1, %g1 <== NOT EXECUTED
2003b4c: 85 28 60 06 sll %g1, 6, %g2 <== NOT EXECUTED
2003b50: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
2003b54: 82 00 40 10 add %g1, %l0, %g1 <== NOT EXECUTED
2003b58: b1 28 60 0f sll %g1, 0xf, %i0 <== NOT EXECUTED
2003b5c: b0 26 00 01 sub %i0, %g1, %i0 <== NOT EXECUTED
2003b60: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED
}
2003b64: 81 c7 e0 08 ret <== NOT EXECUTED
2003b68: 91 ee 00 10 restore %i0, %l0, %o0 <== NOT EXECUTED
if ( loc_to_free )
rtems_filesystem_freenode( loc_to_free );
rtems_set_errno_and_return_minus_one( rc );
}
return iop - rtems_libio_iops;
2003b6c: a8 10 00 11 mov %l1, %l4 <== NOT EXECUTED
2003b70: a6 10 20 86 mov 0x86, %l3 <== NOT EXECUTED
done:
va_end(ap);
if ( rc ) {
if ( iop )
2003b74: 80 a4 20 00 cmp %l0, 0
2003b78: 02 80 00 05 be 2003b8c <open+0x1c4> <== NEVER TAKEN
2003b7c: 80 a5 20 00 cmp %l4, 0
rtems_libio_free( iop );
2003b80: 40 00 23 bd call 200ca74 <rtems_libio_free>
2003b84: 90 10 00 10 mov %l0, %o0
if ( loc_to_free )
2003b88: 80 a5 20 00 cmp %l4, 0
2003b8c: 02 80 00 0c be 2003bbc <open+0x1f4>
2003b90: 01 00 00 00 nop
rtems_filesystem_freenode( loc_to_free );
2003b94: c2 05 20 0c ld [ %l4 + 0xc ], %g1
2003b98: 80 a0 60 00 cmp %g1, 0
2003b9c: 02 80 00 08 be 2003bbc <open+0x1f4> <== NEVER TAKEN
2003ba0: 01 00 00 00 nop
2003ba4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2003ba8: 80 a0 60 00 cmp %g1, 0
2003bac: 02 80 00 04 be 2003bbc <open+0x1f4> <== NEVER TAKEN
2003bb0: 01 00 00 00 nop
2003bb4: 9f c0 40 00 call %g1
2003bb8: 90 10 00 14 mov %l4, %o0
rtems_set_errno_and_return_minus_one( rc );
2003bbc: 40 00 32 25 call 2010450 <__errno>
2003bc0: b0 10 3f ff mov -1, %i0
2003bc4: e6 22 00 00 st %l3, [ %o0 ]
2003bc8: 81 c7 e0 08 ret
2003bcc: 81 e8 00 00 restore
status = rtems_filesystem_evaluate_path(
pathname, strlen( pathname ), eval_flags, &loc, true );
if ( status == -1 ) {
if ( errno != ENOENT ) {
2003bd0: 40 00 32 20 call 2010450 <__errno>
2003bd4: 01 00 00 00 nop
2003bd8: c2 02 00 00 ld [ %o0 ], %g1
2003bdc: 80 a0 60 02 cmp %g1, 2
2003be0: 02 80 00 31 be 2003ca4 <open+0x2dc>
2003be4: 80 8e 62 00 btst 0x200, %i1
rc = errno;
2003be8: 40 00 32 1a call 2010450 <__errno>
2003bec: a8 10 20 00 clr %l4
goto done;
2003bf0: 10 bf ff ce b 2003b28 <open+0x160>
2003bf4: e6 02 00 00 ld [ %o0 ], %l3
/*
* Optionally truncate the file.
*/
if ( (flags & O_TRUNC) == O_TRUNC ) {
rc = ftruncate( iop - rtems_libio_iops, 0 );
2003bf8: c2 04 61 d8 ld [ %l1 + 0x1d8 ], %g1
2003bfc: 92 10 20 00 clr %o1
2003c00: 82 24 00 01 sub %l0, %g1, %g1
2003c04: 83 38 60 03 sra %g1, 3, %g1
2003c08: 87 28 60 06 sll %g1, 6, %g3
2003c0c: 85 28 60 03 sll %g1, 3, %g2
2003c10: 84 20 c0 02 sub %g3, %g2, %g2
2003c14: 87 28 a0 06 sll %g2, 6, %g3
2003c18: 84 00 80 03 add %g2, %g3, %g2
2003c1c: 84 00 80 01 add %g2, %g1, %g2
2003c20: 91 28 a0 0f sll %g2, 0xf, %o0
2003c24: 84 22 00 02 sub %o0, %g2, %g2
2003c28: 94 10 20 00 clr %o2
2003c2c: 91 28 a0 03 sll %g2, 3, %o0
2003c30: 40 00 22 f0 call 200c7f0 <ftruncate>
2003c34: 90 02 00 01 add %o0, %g1, %o0
if ( rc ) {
2003c38: a6 92 20 00 orcc %o0, 0, %l3
2003c3c: 02 bf ff aa be 2003ae4 <open+0x11c> <== ALWAYS TAKEN
2003c40: c2 04 61 d8 ld [ %l1 + 0x1d8 ], %g1
if(errno) rc = errno;
2003c44: 40 00 32 03 call 2010450 <__errno> <== NOT EXECUTED
2003c48: 01 00 00 00 nop <== NOT EXECUTED
2003c4c: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED
2003c50: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2003c54: 12 80 00 2e bne 2003d0c <open+0x344> <== NOT EXECUTED
2003c58: 01 00 00 00 nop <== NOT EXECUTED
close( iop - rtems_libio_iops );
2003c5c: c2 04 61 d8 ld [ %l1 + 0x1d8 ], %g1 <== NOT EXECUTED
2003c60: a8 10 20 00 clr %l4 <== NOT EXECUTED
2003c64: 82 24 00 01 sub %l0, %g1, %g1 <== NOT EXECUTED
2003c68: 83 38 60 03 sra %g1, 3, %g1 <== NOT EXECUTED
2003c6c: 87 28 60 06 sll %g1, 6, %g3 <== NOT EXECUTED
2003c70: 85 28 60 03 sll %g1, 3, %g2 <== NOT EXECUTED
2003c74: 84 20 c0 02 sub %g3, %g2, %g2 <== NOT EXECUTED
2003c78: 87 28 a0 06 sll %g2, 6, %g3 <== NOT EXECUTED
2003c7c: 84 00 80 03 add %g2, %g3, %g2 <== NOT EXECUTED
2003c80: 84 00 80 01 add %g2, %g1, %g2 <== NOT EXECUTED
2003c84: 87 28 a0 0f sll %g2, 0xf, %g3 <== NOT EXECUTED
2003c88: 84 20 c0 02 sub %g3, %g2, %g2 <== NOT EXECUTED
2003c8c: a0 10 20 00 clr %l0 <== NOT EXECUTED
2003c90: 91 28 a0 03 sll %g2, 3, %o0 <== NOT EXECUTED
2003c94: 40 00 22 a7 call 200c730 <close> <== NOT EXECUTED
2003c98: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED
*/
done:
va_end(ap);
if ( rc ) {
2003c9c: 10 bf ff a4 b 2003b2c <open+0x164> <== NOT EXECUTED
2003ca0: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
rc = errno;
goto done;
}
/* If the file does not exist and we are not trying to create it--> error */
if ( !(flags & O_CREAT) ) {
2003ca4: a8 10 20 00 clr %l4
2003ca8: 02 bf ff b3 be 2003b74 <open+0x1ac>
2003cac: 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 );
2003cb0: 13 00 00 20 sethi %hi(0x8000), %o1
2003cb4: 90 10 00 18 mov %i0, %o0
2003cb8: 92 14 80 09 or %l2, %o1, %o1
2003cbc: 94 10 20 00 clr %o2
2003cc0: 7f ff fd 3b call 20031ac <mknod>
2003cc4: 96 10 20 00 clr %o3
if ( rc ) {
2003cc8: 80 a2 20 00 cmp %o0, 0
2003ccc: 12 bf ff 94 bne 2003b1c <open+0x154> <== NEVER TAKEN
2003cd0: 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 );
2003cd4: 40 00 35 ac call 2011384 <strlen>
2003cd8: 90 10 00 18 mov %i0, %o0
2003cdc: 94 10 20 00 clr %o2
2003ce0: 92 10 00 08 mov %o0, %o1
2003ce4: 96 10 00 11 mov %l1, %o3
2003ce8: 90 10 00 18 mov %i0, %o0
2003cec: 98 10 20 01 mov 1, %o4
2003cf0: 7f ff fb e0 call 2002c70 <rtems_filesystem_evaluate_path>
2003cf4: a8 10 20 00 clr %l4
if ( status != 0 ) { /* The file did not exist */
2003cf8: 80 a2 20 00 cmp %o0, 0
2003cfc: 12 bf ff 9e bne 2003b74 <open+0x1ac> <== NEVER TAKEN
2003d00: 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;
2003d04: 10 bf ff 55 b 2003a58 <open+0x90>
2003d08: c2 07 bf f0 ld [ %fp + -16 ], %g1
*/
if ( (flags & O_TRUNC) == O_TRUNC ) {
rc = ftruncate( iop - rtems_libio_iops, 0 );
if ( rc ) {
if(errno) rc = errno;
2003d0c: 40 00 31 d1 call 2010450 <__errno> <== NOT EXECUTED
2003d10: 01 00 00 00 nop <== NOT EXECUTED
2003d14: 10 bf ff d2 b 2003c5c <open+0x294> <== NOT EXECUTED
2003d18: e6 02 00 00 ld [ %o0 ], %l3 <== NOT EXECUTED
02003954 <open_dev_console>:
/*
* This is a replaceable stub which opens the console, if present.
*/
void open_dev_console(void)
{
2003954: 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) {
2003958: 21 00 80 6f sethi %hi(0x201bc00), %l0
200395c: 92 10 20 00 clr %o1
2003960: 90 14 23 f0 or %l0, 0x3f0, %o0
2003964: 40 00 00 19 call 20039c8 <open>
2003968: 94 10 20 00 clr %o2
200396c: 80 a2 3f ff cmp %o0, -1
2003970: 02 80 00 0e be 20039a8 <open_dev_console+0x54>
2003974: 90 14 23 f0 or %l0, 0x3f0, %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)
2003978: 92 10 20 01 mov 1, %o1
200397c: 40 00 00 13 call 20039c8 <open>
2003980: 94 10 20 00 clr %o2
2003984: 80 a2 3f ff cmp %o0, -1
2003988: 02 80 00 0c be 20039b8 <open_dev_console+0x64> <== NEVER TAKEN
200398c: 92 10 20 01 mov 1, %o1
rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */
if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1)
2003990: 90 14 23 f0 or %l0, 0x3f0, %o0
2003994: 40 00 00 0d call 20039c8 <open>
2003998: 94 10 20 00 clr %o2
200399c: 80 a2 3f ff cmp %o0, -1
20039a0: 02 80 00 04 be 20039b0 <open_dev_console+0x5c> <== NEVER TAKEN
20039a4: 11 15 55 11 sethi %hi(0x55544400), %o0
20039a8: 81 c7 e0 08 ret
20039ac: 81 e8 00 00 restore
rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */
20039b0: 40 00 0d 68 call 2006f50 <rtems_fatal_error_occurred> <== NOT EXECUTED
20039b4: 90 12 20 32 or %o0, 0x32, %o0 <== NOT EXECUTED
/*
* 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)
rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */
20039b8: 11 15 55 11 sethi %hi(0x55544400), %o0 <== NOT EXECUTED
20039bc: 40 00 0d 65 call 2006f50 <rtems_fatal_error_occurred> <== NOT EXECUTED
20039c0: 90 12 20 31 or %o0, 0x31, %o0 ! 55544431 <RAM_END+0x53144431><== NOT EXECUTED
020045b0 <oproc>:
/*
* Handle output processing
*/
static void
oproc (unsigned char c, struct rtems_termios_tty *tty)
{
20045b0: 9d e3 bf a0 save %sp, -96, %sp
int i;
if (tty->termios.c_oflag & OPOST) {
20045b4: c2 06 60 34 ld [ %i1 + 0x34 ], %g1
20045b8: 80 88 60 01 btst 1, %g1
20045bc: 02 80 00 19 be 2004620 <oproc+0x70> <== NEVER TAKEN
20045c0: f0 2f a0 44 stb %i0, [ %fp + 0x44 ]
switch (c) {
20045c4: b0 0e 20 ff and %i0, 0xff, %i0
20045c8: 80 a6 20 09 cmp %i0, 9
20045cc: 22 80 00 42 be,a 20046d4 <oproc+0x124>
20045d0: c6 06 60 28 ld [ %i1 + 0x28 ], %g3
20045d4: 08 80 00 19 bleu 2004638 <oproc+0x88> <== NEVER TAKEN
20045d8: 80 a6 20 08 cmp %i0, 8
20045dc: 80 a6 20 0a cmp %i0, 0xa
20045e0: 02 80 00 22 be 2004668 <oproc+0xb8>
20045e4: 80 a6 20 0d cmp %i0, 0xd
20045e8: 02 80 00 2d be 200469c <oproc+0xec> <== NEVER TAKEN
20045ec: 80 88 60 10 btst 0x10, %g1
if (tty->column > 0)
tty->column--;
break;
default:
if (tty->termios.c_oflag & OLCUC)
20045f0: 80 88 60 02 btst 2, %g1
20045f4: 12 80 00 46 bne 200470c <oproc+0x15c> <== NEVER TAKEN
20045f8: 03 00 80 74 sethi %hi(0x201d000), %g1
20045fc: c2 00 62 78 ld [ %g1 + 0x278 ], %g1 ! 201d278 <__ctype_ptr__>
c = toupper(c);
if (!iscntrl(c))
2004600: b0 00 40 18 add %g1, %i0, %i0
2004604: c2 0e 20 01 ldub [ %i0 + 1 ], %g1
2004608: 80 88 60 20 btst 0x20, %g1
200460c: 12 80 00 06 bne 2004624 <oproc+0x74> <== NEVER TAKEN
2004610: 94 10 00 19 mov %i1, %o2
tty->column++;
2004614: c2 06 60 28 ld [ %i1 + 0x28 ], %g1
2004618: 82 00 60 01 inc %g1
200461c: c2 26 60 28 st %g1, [ %i1 + 0x28 ]
break;
}
}
rtems_termios_puts (&c, 1, tty);
2004620: 94 10 00 19 mov %i1, %o2
2004624: 90 07 a0 44 add %fp, 0x44, %o0
2004628: 7f ff ff 93 call 2004474 <rtems_termios_puts>
200462c: 92 10 20 01 mov 1, %o1
2004630: 81 c7 e0 08 ret
2004634: 81 e8 00 00 restore
oproc (unsigned char c, struct rtems_termios_tty *tty)
{
int i;
if (tty->termios.c_oflag & OPOST) {
switch (c) {
2004638: 12 bf ff ef bne 20045f4 <oproc+0x44> <== NOT EXECUTED
200463c: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
}
tty->column += i;
break;
case '\b':
if (tty->column > 0)
2004640: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 <== NOT EXECUTED
2004644: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2004648: 04 bf ff f6 ble 2004620 <oproc+0x70> <== NOT EXECUTED
200464c: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
if (!iscntrl(c))
tty->column++;
break;
}
}
rtems_termios_puts (&c, 1, tty);
2004650: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
tty->column += i;
break;
case '\b':
if (tty->column > 0)
tty->column--;
2004654: c2 26 60 28 st %g1, [ %i1 + 0x28 ] <== NOT EXECUTED
if (!iscntrl(c))
tty->column++;
break;
}
}
rtems_termios_puts (&c, 1, tty);
2004658: 90 07 a0 44 add %fp, 0x44, %o0 <== NOT EXECUTED
200465c: 7f ff ff 86 call 2004474 <rtems_termios_puts> <== NOT EXECUTED
2004660: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2004664: 30 80 00 3e b,a 200475c <oproc+0x1ac> <== NOT EXECUTED
int i;
if (tty->termios.c_oflag & OPOST) {
switch (c) {
case '\n':
if (tty->termios.c_oflag & ONLRET)
2004668: 80 88 60 20 btst 0x20, %g1
200466c: 32 80 00 02 bne,a 2004674 <oproc+0xc4> <== NEVER TAKEN
2004670: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED
tty->column = 0;
if (tty->termios.c_oflag & ONLCR) {
2004674: 80 88 60 04 btst 4, %g1
2004678: 02 bf ff eb be 2004624 <oproc+0x74> <== NEVER TAKEN
200467c: 94 10 00 19 mov %i1, %o2
rtems_termios_puts ("\r", 1, tty);
2004680: 11 00 80 70 sethi %hi(0x201c000), %o0
2004684: 92 10 20 01 mov 1, %o1
2004688: 90 12 20 00 mov %o0, %o0
200468c: 7f ff ff 7a call 2004474 <rtems_termios_puts>
2004690: 94 10 00 19 mov %i1, %o2
tty->column = 0;
2004694: 10 bf ff e3 b 2004620 <oproc+0x70>
2004698: c0 26 60 28 clr [ %i1 + 0x28 ]
}
break;
case '\r':
if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))
200469c: 02 80 00 06 be 20046b4 <oproc+0x104> <== NOT EXECUTED
20046a0: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED
20046a4: c4 06 60 28 ld [ %i1 + 0x28 ], %g2 <== NOT EXECUTED
20046a8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
20046ac: 02 bf ff e1 be 2004630 <oproc+0x80> <== NOT EXECUTED
20046b0: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED
return;
if (tty->termios.c_oflag & OCRNL) {
20046b4: 22 bf ff db be,a 2004620 <oproc+0x70> <== NOT EXECUTED
20046b8: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED
c = '\n';
20046bc: 84 10 20 0a mov 0xa, %g2 <== NOT EXECUTED
if (tty->termios.c_oflag & ONLRET)
20046c0: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED
20046c4: 02 bf ff d7 be 2004620 <oproc+0x70> <== NOT EXECUTED
20046c8: c4 2f a0 44 stb %g2, [ %fp + 0x44 ] <== NOT EXECUTED
tty->column = 0;
break;
}
tty->column = 0;
break;
20046cc: 10 bf ff d5 b 2004620 <oproc+0x70> <== NOT EXECUTED
20046d0: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED
case '\t':
i = 8 - (tty->column & 7);
if ((tty->termios.c_oflag & TABDLY) == XTABS) {
20046d4: 05 00 00 06 sethi %hi(0x1800), %g2
20046d8: 82 08 40 02 and %g1, %g2, %g1
}
tty->column = 0;
break;
case '\t':
i = 8 - (tty->column & 7);
20046dc: 92 10 20 08 mov 8, %o1
if ((tty->termios.c_oflag & TABDLY) == XTABS) {
20046e0: 80 a0 40 02 cmp %g1, %g2
}
tty->column = 0;
break;
case '\t':
i = 8 - (tty->column & 7);
20046e4: 82 08 e0 07 and %g3, 7, %g1
if ((tty->termios.c_oflag & TABDLY) == XTABS) {
20046e8: 02 80 00 17 be 2004744 <oproc+0x194> <== ALWAYS TAKEN
20046ec: 92 22 40 01 sub %o1, %g1, %o1
tty->column += i;
rtems_termios_puts ( " ", i, tty);
return;
}
tty->column += i;
20046f0: 86 02 40 03 add %o1, %g3, %g3 <== NOT EXECUTED
if (!iscntrl(c))
tty->column++;
break;
}
}
rtems_termios_puts (&c, 1, tty);
20046f4: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
if ((tty->termios.c_oflag & TABDLY) == XTABS) {
tty->column += i;
rtems_termios_puts ( " ", i, tty);
return;
}
tty->column += i;
20046f8: c6 26 60 28 st %g3, [ %i1 + 0x28 ] <== NOT EXECUTED
if (!iscntrl(c))
tty->column++;
break;
}
}
rtems_termios_puts (&c, 1, tty);
20046fc: 90 07 a0 44 add %fp, 0x44, %o0 <== NOT EXECUTED
2004700: 7f ff ff 5d call 2004474 <rtems_termios_puts> <== NOT EXECUTED
2004704: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2004708: 30 80 00 15 b,a 200475c <oproc+0x1ac> <== NOT EXECUTED
tty->column--;
break;
default:
if (tty->termios.c_oflag & OLCUC)
c = toupper(c);
200470c: c2 00 62 78 ld [ %g1 + 0x278 ], %g1 <== NOT EXECUTED
2004710: 84 10 00 18 mov %i0, %g2 <== NOT EXECUTED
2004714: b0 00 40 18 add %g1, %i0, %i0 <== NOT EXECUTED
2004718: c6 0e 20 01 ldub [ %i0 + 1 ], %g3 <== NOT EXECUTED
200471c: 86 08 e0 03 and %g3, 3, %g3 <== NOT EXECUTED
2004720: 80 a0 e0 02 cmp %g3, 2 <== NOT EXECUTED
2004724: 22 80 00 05 be,a 2004738 <oproc+0x188> <== NOT EXECUTED
2004728: 84 00 bf e0 add %g2, -32, %g2 <== NOT EXECUTED
200472c: c4 2f a0 44 stb %g2, [ %fp + 0x44 ] <== NOT EXECUTED
2004730: 10 bf ff b4 b 2004600 <oproc+0x50> <== NOT EXECUTED
2004734: b0 08 a0 ff and %g2, 0xff, %i0 <== NOT EXECUTED
2004738: c4 2f a0 44 stb %g2, [ %fp + 0x44 ] <== NOT EXECUTED
200473c: 10 bf ff b1 b 2004600 <oproc+0x50> <== NOT EXECUTED
2004740: b0 08 a0 ff and %g2, 0xff, %i0 <== NOT EXECUTED
break;
case '\t':
i = 8 - (tty->column & 7);
if ((tty->termios.c_oflag & TABDLY) == XTABS) {
tty->column += i;
2004744: 86 02 40 03 add %o1, %g3, %g3
rtems_termios_puts ( " ", i, tty);
2004748: 94 10 00 19 mov %i1, %o2
break;
case '\t':
i = 8 - (tty->column & 7);
if ((tty->termios.c_oflag & TABDLY) == XTABS) {
tty->column += i;
200474c: c6 26 60 28 st %g3, [ %i1 + 0x28 ]
rtems_termios_puts ( " ", i, tty);
2004750: 11 00 80 70 sethi %hi(0x201c000), %o0
2004754: 7f ff ff 48 call 2004474 <rtems_termios_puts>
2004758: 90 12 20 08 or %o0, 8, %o0 ! 201c008 <rtems_filesystem_default_pathconf+0x50>
return;
200475c: 81 c7 e0 08 ret
2004760: 81 e8 00 00 restore
0200f304 <pipe_create>:
* Called by pipe() to create an anonymous pipe.
*/
int pipe_create(
int filsdes[2]
)
{
200f304: 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)
200f308: 23 00 80 71 sethi %hi(0x201c400), %l1
200f30c: a0 07 bf dc add %fp, -36, %l0
200f310: 92 10 20 03 mov 3, %o1
200f314: 90 14 63 90 or %l1, 0x390, %o0
200f318: 94 10 20 07 mov 7, %o2
200f31c: 96 10 00 10 mov %l0, %o3
200f320: 7f ff ce 54 call 2002c70 <rtems_filesystem_evaluate_path>
200f324: 98 10 20 01 mov 1, %o4
200f328: 80 a2 20 00 cmp %o0, 0
200f32c: 12 80 00 43 bne 200f438 <pipe_create+0x134> <== ALWAYS TAKEN
200f330: c2 07 bf e8 ld [ %fp + -24 ], %g1
return -1;
if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0)
return -1;
}
else
rtems_filesystem_freenode(&loc);
200f334: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200f338: 22 80 00 09 be,a 200f35c <pipe_create+0x58> <== NOT EXECUTED
200f33c: 03 00 80 76 sethi %hi(0x201d800), %g1 <== NOT EXECUTED
200f340: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 201d81c <rtems_termios_linesw+0xc8><== NOT EXECUTED
200f344: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200f348: 22 80 00 05 be,a 200f35c <pipe_create+0x58> <== NOT EXECUTED
200f34c: 03 00 80 76 sethi %hi(0x201d800), %g1 <== NOT EXECUTED
200f350: 9f c0 40 00 call %g1 <== NOT EXECUTED
200f354: 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 ++);
200f358: 03 00 80 76 sethi %hi(0x201d800), %g1 <== NOT EXECUTED
200f35c: c4 10 60 64 lduh [ %g1 + 0x64 ], %g2 ! 201d864 <rtems_pipe_no>
else
rtems_filesystem_freenode(&loc);
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
200f360: 07 0b cb 99 sethi %hi(0x2f2e6400), %g3
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
200f364: 95 28 a0 10 sll %g2, 0x10, %o2
200f368: 84 00 a0 01 inc %g2
else
rtems_filesystem_freenode(&loc);
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
200f36c: 86 10 e2 69 or %g3, 0x269, %g3
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
200f370: c4 30 60 64 sth %g2, [ %g1 + 0x64 ]
else
rtems_filesystem_freenode(&loc);
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
200f374: 05 0b dd 1b sethi %hi(0x2f746c00), %g2
200f378: 03 00 00 19 sethi %hi(0x6400), %g1
200f37c: 84 10 a1 70 or %g2, 0x170, %g2
200f380: 82 10 62 6f or %g1, 0x26f, %g1
200f384: a0 07 bf f0 add %fp, -16, %l0
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
200f388: 95 32 a0 10 srl %o2, 0x10, %o2
else
rtems_filesystem_freenode(&loc);
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
200f38c: c4 3f bf f0 std %g2, [ %fp + -16 ]
200f390: c2 34 20 08 sth %g1, [ %l0 + 8 ]
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
200f394: 90 07 bf fa add %fp, -6, %o0
200f398: 13 00 80 71 sethi %hi(0x201c400), %o1
200f39c: 40 00 07 19 call 2011000 <sprintf>
200f3a0: 92 12 63 98 or %o1, 0x398, %o1 ! 201c798 <__FUNCTION__.6077+0x20>
/* Try creating FIFO file until find an available file name */
while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {
200f3a4: 90 10 00 10 mov %l0, %o0
200f3a8: 40 00 01 e3 call 200fb34 <mkfifo>
200f3ac: 92 10 21 80 mov 0x180, %o1
200f3b0: 80 a2 20 00 cmp %o0, 0
200f3b4: 12 80 00 1d bne 200f428 <pipe_create+0x124> <== NEVER TAKEN
200f3b8: 90 10 00 10 mov %l0, %o0
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);
200f3bc: 7f ff d1 83 call 20039c8 <open>
200f3c0: 13 00 00 10 sethi %hi(0x4000), %o1
if (filsdes[0] < 0) {
200f3c4: 80 a2 20 00 cmp %o0, 0
200f3c8: 06 80 00 2f bl 200f484 <pipe_create+0x180> <== ALWAYS TAKEN
200f3cc: d0 26 00 00 st %o0, [ %i0 ]
the file node will be deleted after it is closed by all. */
unlink(fifopath);
}
else {
/* Reset open file to blocking mode */
iop = rtems_libio_iop(filsdes[0]);
200f3d0: 03 00 80 74 sethi %hi(0x201d000), %g1 <== NOT EXECUTED
200f3d4: c4 00 60 44 ld [ %g1 + 0x44 ], %g2 ! 201d044 <rtems_libio_number_iops><== NOT EXECUTED
200f3d8: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED
200f3dc: 0a 80 00 23 bcs 200f468 <pipe_create+0x164> <== NOT EXECUTED
200f3e0: 82 10 20 00 clr %g1 <== NOT EXECUTED
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
200f3e4: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 <== NOT EXECUTED
filsdes[1] = open(fifopath, O_WRONLY);
200f3e8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
unlink(fifopath);
}
else {
/* Reset open file to blocking mode */
iop = rtems_libio_iop(filsdes[0]);
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
200f3ec: 84 08 bf fe and %g2, -2, %g2 <== NOT EXECUTED
filsdes[1] = open(fifopath, O_WRONLY);
200f3f0: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
200f3f4: 7f ff d1 75 call 20039c8 <open> <== NOT EXECUTED
200f3f8: c4 20 60 18 st %g2, [ %g1 + 0x18 ] <== NOT EXECUTED
200f3fc: d0 26 20 04 st %o0, [ %i0 + 4 ] <== NOT EXECUTED
if (filsdes[1] < 0) {
200f400: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200f404: 06 80 00 26 bl 200f49c <pipe_create+0x198> <== NOT EXECUTED
200f408: a2 10 20 00 clr %l1 <== NOT EXECUTED
err = errno;
close(filsdes[0]);
}
unlink(fifopath);
200f40c: 40 00 01 d2 call 200fb54 <unlink> <== NOT EXECUTED
200f410: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
}
rtems_set_errno_and_return_minus_one(err);
200f414: 40 00 04 0f call 2010450 <__errno>
200f418: b0 10 3f ff mov -1, %i0
200f41c: e2 22 00 00 st %l1, [ %o0 ]
}
200f420: 81 c7 e0 08 ret
200f424: 81 e8 00 00 restore
memcpy(fifopath, "/tmp/.fifo", 10);
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
/* Try creating FIFO file until find an available file name */
while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {
if (errno != EEXIST){
200f428: 40 00 04 0a call 2010450 <__errno> <== NOT EXECUTED
200f42c: 01 00 00 00 nop <== NOT EXECUTED
}
unlink(fifopath);
}
rtems_set_errno_and_return_minus_one(err);
}
200f430: 81 c7 e0 08 ret <== NOT EXECUTED
200f434: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
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)
!= 0) {
if (errno != ENOENT)
200f438: 40 00 04 06 call 2010450 <__errno>
200f43c: 01 00 00 00 nop
200f440: c2 02 00 00 ld [ %o0 ], %g1
200f444: 80 a0 60 02 cmp %g1, 2
200f448: 12 bf ff fa bne 200f430 <pipe_create+0x12c> <== NEVER TAKEN
200f44c: 90 14 63 90 or %l1, 0x390, %o0
return -1;
if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0)
200f450: 7f ff cf 4f call 200318c <mkdir>
200f454: 92 10 23 ff mov 0x3ff, %o1
200f458: 80 a2 20 00 cmp %o0, 0
200f45c: 02 bf ff c0 be 200f35c <pipe_create+0x58> <== ALWAYS TAKEN
200f460: 03 00 80 76 sethi %hi(0x201d800), %g1
200f464: 30 bf ff f3 b,a 200f430 <pipe_create+0x12c> <== NOT EXECUTED
the file node will be deleted after it is closed by all. */
unlink(fifopath);
}
else {
/* Reset open file to blocking mode */
iop = rtems_libio_iop(filsdes[0]);
200f468: 03 00 80 76 sethi %hi(0x201d800), %g1 <== NOT EXECUTED
200f46c: c2 00 61 d8 ld [ %g1 + 0x1d8 ], %g1 ! 201d9d8 <rtems_libio_iops><== NOT EXECUTED
200f470: 85 2a 20 06 sll %o0, 6, %g2 <== NOT EXECUTED
200f474: 91 2a 20 03 sll %o0, 3, %o0 <== NOT EXECUTED
200f478: 90 02 00 02 add %o0, %g2, %o0 <== NOT EXECUTED
200f47c: 10 bf ff da b 200f3e4 <pipe_create+0xe0> <== NOT EXECUTED
200f480: 82 00 40 08 add %g1, %o0, %g1 <== NOT EXECUTED
}
/* Non-blocking open to avoid waiting for writers */
filsdes[0] = open(fifopath, O_RDONLY | O_NONBLOCK);
if (filsdes[0] < 0) {
err = errno;
200f484: 40 00 03 f3 call 2010450 <__errno>
200f488: 01 00 00 00 nop
200f48c: 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);
200f490: 40 00 01 b1 call 200fb54 <unlink>
200f494: 90 10 00 10 mov %l0, %o0
200f498: 30 bf ff df b,a 200f414 <pipe_create+0x110>
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
filsdes[1] = open(fifopath, O_WRONLY);
if (filsdes[1] < 0) {
err = errno;
200f49c: 40 00 03 ed call 2010450 <__errno> <== NOT EXECUTED
200f4a0: 01 00 00 00 nop <== NOT EXECUTED
200f4a4: e2 02 00 00 ld [ %o0 ], %l1 <== NOT EXECUTED
close(filsdes[0]);
200f4a8: 7f ff f4 a2 call 200c730 <close> <== NOT EXECUTED
200f4ac: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED
200f4b0: 30 bf ff d7 b,a 200f40c <pipe_create+0x108> <== NOT EXECUTED
0200aa50 <pipe_ioctl>:
pipe_control_t *pipe,
uint32_t cmd,
void *buffer,
rtems_libio_t *iop
)
{
200aa50: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (cmd == FIONREAD) {
200aa54: 03 10 01 19 sethi %hi(0x40046400), %g1 <== NOT EXECUTED
pipe_control_t *pipe,
uint32_t cmd,
void *buffer,
rtems_libio_t *iop
)
{
200aa58: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
if (cmd == FIONREAD) {
200aa5c: 82 10 62 7f or %g1, 0x27f, %g1 <== NOT EXECUTED
200aa60: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
200aa64: 12 80 00 12 bne 200aaac <pipe_ioctl+0x5c> <== NOT EXECUTED
200aa68: b0 10 3f ea mov -22, %i0 <== NOT EXECUTED
if (buffer == NULL)
200aa6c: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
200aa70: 02 80 00 0f be 200aaac <pipe_ioctl+0x5c> <== NOT EXECUTED
200aa74: b0 10 3f f2 mov -14, %i0 <== NOT EXECUTED
return -EFAULT;
if (! PIPE_LOCK(pipe))
200aa78: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
200aa7c: 92 10 20 00 clr %o1 <== NOT EXECUTED
200aa80: 94 10 20 00 clr %o2 <== NOT EXECUTED
200aa84: 7f ff ef 94 call 20068d4 <rtems_semaphore_obtain> <== NOT EXECUTED
200aa88: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED
200aa8c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200aa90: 12 80 00 07 bne 200aaac <pipe_ioctl+0x5c> <== NOT EXECUTED
200aa94: 01 00 00 00 nop <== NOT EXECUTED
return -EINTR;
/* Return length of pipe */
*(unsigned int *)buffer = pipe->Length;
200aa98: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
PIPE_UNLOCK(pipe);
200aa9c: 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;
200aaa0: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
PIPE_UNLOCK(pipe);
200aaa4: 7f ff ef d3 call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
200aaa8: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
return -EINVAL;
}
200aaac: 81 c7 e0 08 ret <== NOT EXECUTED
200aab0: 81 e8 00 00 restore <== NOT EXECUTED
0200a9d8 <pipe_lseek>:
rtems_libio_t *iop
)
{
/* Seek on pipe is not supported */
return -ESPIPE;
}
200a9d8: 81 c3 e0 08 retl <== NOT EXECUTED
200a9dc: 90 10 3f e3 mov -29, %o0 <== NOT EXECUTED
0200acac <pipe_read>:
pipe_control_t *pipe,
void *buffer,
size_t count,
rtems_libio_t *iop
)
{
200acac: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
200acb0: d0 06 20 28 ld [ %i0 + 0x28 ], %o0 <== NOT EXECUTED
pipe_control_t *pipe,
void *buffer,
size_t count,
rtems_libio_t *iop
)
{
200acb4: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
200acb8: 92 10 20 00 clr %o1 <== NOT EXECUTED
200acbc: 94 10 20 00 clr %o2 <== NOT EXECUTED
200acc0: 7f ff ef 05 call 20068d4 <rtems_semaphore_obtain> <== NOT EXECUTED
200acc4: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED
200acc8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200accc: 12 80 00 2f bne 200ad88 <pipe_read+0xdc> <== NOT EXECUTED
200acd0: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
/* WARN waitingReaders not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingReaders --;
if (ret != 0)
200acd4: a4 10 20 00 clr %l2 <== NOT EXECUTED
200acd8: b0 10 20 00 clr %i0 <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
return -EINTR;
while (read < count) {
200acdc: 02 80 00 26 be 200ad74 <pipe_read+0xc8> <== NOT EXECUTED
200ace0: a2 10 20 00 clr %l1 <== NOT EXECUTED
/* For buffering optimization */
if (PIPE_EMPTY(pipe))
pipe->Start = 0;
if (pipe->waitingWriters > 0)
PIPE_WAKEUPWRITERS(pipe);
200ace4: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED
if (! PIPE_LOCK(pipe))
return -EINTR;
while (read < count) {
while (PIPE_EMPTY(pipe)) {
200ace8: e2 04 20 0c ld [ %l0 + 0xc ], %l1 <== NOT EXECUTED
200acec: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
200acf0: 12 80 00 2a bne 200ad98 <pipe_read+0xec> <== NOT EXECUTED
200acf4: 82 26 80 12 sub %i2, %l2, %g1 <== NOT EXECUTED
/* Not an error */
if (pipe->Writers == 0)
200acf8: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
200acfc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200ad00: 22 80 00 1d be,a 200ad74 <pipe_read+0xc8> <== NOT EXECUTED
200ad04: a2 10 20 00 clr %l1 <== NOT EXECUTED
goto out_locked;
if (LIBIO_NODELAY(iop)) {
200ad08: c2 06 e0 18 ld [ %i3 + 0x18 ], %g1 <== NOT EXECUTED
200ad0c: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
200ad10: 32 80 00 19 bne,a 200ad74 <pipe_read+0xc8> <== NOT EXECUTED
200ad14: a2 10 3f f5 mov -11, %l1 <== NOT EXECUTED
ret = -EAGAIN;
goto out_locked;
}
/* Wait until pipe is no more empty or no writer exists */
pipe->waitingReaders ++;
200ad18: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED
PIPE_UNLOCK(pipe);
200ad1c: 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 ++;
200ad20: 82 00 60 01 inc %g1 <== NOT EXECUTED
PIPE_UNLOCK(pipe);
200ad24: 7f ff ef 33 call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
200ad28: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED
if (! PIPE_READWAIT(pipe))
200ad2c: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
200ad30: 40 00 09 51 call 200d274 <rtems_barrier_wait> <== NOT EXECUTED
200ad34: 92 10 20 00 clr %o1 <== NOT EXECUTED
200ad38: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
200ad3c: 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))
200ad40: a2 40 3f ff addx %g0, -1, %l1 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
200ad44: 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))
200ad48: a2 0c 60 04 and %l1, 4, %l1 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
200ad4c: 94 10 20 00 clr %o2 <== NOT EXECUTED
200ad50: 7f ff ee e1 call 20068d4 <rtems_semaphore_obtain> <== NOT EXECUTED
200ad54: a2 04 7f fc add %l1, -4, %l1 <== NOT EXECUTED
200ad58: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200ad5c: 12 80 00 32 bne 200ae24 <pipe_read+0x178> <== NOT EXECUTED
200ad60: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
/* WARN waitingReaders not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingReaders --;
200ad64: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED
200ad68: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
if (ret != 0)
200ad6c: 02 bf ff df be 200ace8 <pipe_read+0x3c> <== NOT EXECUTED
200ad70: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
read += chunk;
}
out_locked:
PIPE_UNLOCK(pipe);
200ad74: 7f ff ef 1f call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
200ad78: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
out_nolock:
if (read > 0)
200ad7c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
200ad80: 04 80 00 04 ble 200ad90 <pipe_read+0xe4> <== NOT EXECUTED
200ad84: 01 00 00 00 nop <== NOT EXECUTED
return read;
return ret;
}
200ad88: 81 c7 e0 08 ret <== NOT EXECUTED
200ad8c: 81 e8 00 00 restore <== NOT EXECUTED
200ad90: 81 c7 e0 08 ret <== NOT EXECUTED
200ad94: 91 e8 00 11 restore %g0, %l1, %o0 <== NOT EXECUTED
if (ret != 0)
goto out_locked;
}
/* Read chunk bytes */
chunk = MIN(count - read, pipe->Length);
200ad98: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
200ad9c: 38 80 00 02 bgu,a 200ada4 <pipe_read+0xf8> <== NOT EXECUTED
200ada0: a2 10 00 01 mov %g1, %l1 <== NOT EXECUTED
chunk1 = pipe->Size - pipe->Start;
200ada4: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED
200ada8: e8 04 20 04 ld [ %l0 + 4 ], %l4 <== NOT EXECUTED
200adac: a8 25 00 01 sub %l4, %g1, %l4 <== NOT EXECUTED
if (chunk > chunk1) {
200adb0: 80 a4 40 14 cmp %l1, %l4 <== NOT EXECUTED
200adb4: 14 80 00 1e bg 200ae2c <pipe_read+0x180> <== NOT EXECUTED
200adb8: d2 04 00 00 ld [ %l0 ], %o1 <== NOT EXECUTED
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);
memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);
}
else
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);
200adbc: 90 06 40 12 add %i1, %l2, %o0 <== NOT EXECUTED
200adc0: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED
200adc4: 40 00 17 df call 2010d40 <memcpy> <== NOT EXECUTED
200adc8: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
pipe->Start += chunk;
200adcc: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED
pipe->Start %= pipe->Size;
200add0: 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;
200add4: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED
pipe->Start %= pipe->Size;
200add8: 40 00 3b 9d call 2019c4c <.urem> <== NOT EXECUTED
200addc: d0 24 20 08 st %o0, [ %l0 + 8 ] <== NOT EXECUTED
pipe->Length -= chunk;
200ade0: 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;
200ade4: d0 24 20 08 st %o0, [ %l0 + 8 ] <== NOT EXECUTED
pipe->Length -= chunk;
200ade8: 82 20 40 11 sub %g1, %l1, %g1 <== NOT EXECUTED
/* For buffering optimization */
if (PIPE_EMPTY(pipe))
200adec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200adf0: 12 80 00 03 bne 200adfc <pipe_read+0x150> <== NOT EXECUTED
200adf4: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED
pipe->Start = 0;
200adf8: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED
if (pipe->waitingWriters > 0)
200adfc: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
200ae00: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200ae04: 32 80 00 15 bne,a 200ae58 <pipe_read+0x1ac> <== NOT EXECUTED
200ae08: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
read += chunk;
200ae0c: 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) {
200ae10: 80 a6 00 1a cmp %i0, %i2 <== NOT EXECUTED
200ae14: 0a bf ff b5 bcs 200ace8 <pipe_read+0x3c> <== NOT EXECUTED
200ae18: a4 10 00 18 mov %i0, %l2 <== NOT EXECUTED
200ae1c: 10 bf ff d6 b 200ad74 <pipe_read+0xc8> <== NOT EXECUTED
200ae20: a2 10 20 00 clr %l1 <== NOT EXECUTED
/* Wait until pipe is no more empty or no writer exists */
pipe->waitingReaders ++;
PIPE_UNLOCK(pipe);
if (! PIPE_READWAIT(pipe))
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
200ae24: 10 bf ff d6 b 200ad7c <pipe_read+0xd0> <== NOT EXECUTED
200ae28: a2 10 3f fc mov -4, %l1 <== NOT EXECUTED
/* Read chunk bytes */
chunk = MIN(count - read, pipe->Length);
chunk1 = pipe->Size - pipe->Start;
if (chunk > chunk1) {
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);
200ae2c: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
200ae30: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED
200ae34: 40 00 17 c3 call 2010d40 <memcpy> <== NOT EXECUTED
200ae38: 90 06 40 12 add %i1, %l2, %o0 <== NOT EXECUTED
memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);
200ae3c: d2 04 00 00 ld [ %l0 ], %o1 <== NOT EXECUTED
200ae40: 90 04 80 14 add %l2, %l4, %o0 <== NOT EXECUTED
200ae44: 94 24 40 14 sub %l1, %l4, %o2 <== NOT EXECUTED
200ae48: 40 00 17 be call 2010d40 <memcpy> <== NOT EXECUTED
200ae4c: 90 06 40 08 add %i1, %o0, %o0 <== NOT EXECUTED
}
else
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);
pipe->Start += chunk;
200ae50: 10 bf ff e0 b 200add0 <pipe_read+0x124> <== NOT EXECUTED
200ae54: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED
/* For buffering optimization */
if (PIPE_EMPTY(pipe))
pipe->Start = 0;
if (pipe->waitingWriters > 0)
PIPE_WAKEUPWRITERS(pipe);
200ae58: 40 00 08 f0 call 200d218 <rtems_barrier_release> <== NOT EXECUTED
200ae5c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
read += chunk;
200ae60: 10 bf ff ec b 200ae10 <pipe_read+0x164> <== NOT EXECUTED
200ae64: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED
0200ae68 <pipe_release>:
*/
int pipe_release(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
200ae68: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
pipe_control_t *pipe = *pipep;
200ae6c: e0 06 00 00 ld [ %i0 ], %l0 <== NOT EXECUTED
uint32_t mode;
rtems_status_code sc;
sc = rtems_semaphore_obtain(pipe->Semaphore,
200ae70: 92 10 20 00 clr %o1 <== NOT EXECUTED
200ae74: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
200ae78: 7f ff ee 97 call 20068d4 <rtems_semaphore_obtain> <== NOT EXECUTED
200ae7c: 94 10 20 00 clr %o2 <== NOT EXECUTED
RTEMS_WAIT, RTEMS_NO_TIMEOUT);
/* WARN pipe not released! */
if(sc != RTEMS_SUCCESSFUL)
200ae80: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200ae84: 12 80 00 47 bne 200afa0 <pipe_release+0x138> <== NOT EXECUTED
200ae88: 01 00 00 00 nop <== NOT EXECUTED
rtems_fatal_error_occurred(sc);
mode = LIBIO_ACCMODE(iop);
200ae8c: e4 06 60 18 ld [ %i1 + 0x18 ], %l2 <== NOT EXECUTED
if (mode & LIBIO_FLAGS_READ)
200ae90: 80 8c a0 02 btst 2, %l2 <== NOT EXECUTED
200ae94: 02 80 00 05 be 200aea8 <pipe_release+0x40> <== NOT EXECUTED
200ae98: a4 0c a0 06 and %l2, 6, %l2 <== NOT EXECUTED
pipe->Readers --;
200ae9c: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
200aea0: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
200aea4: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED
if (mode & LIBIO_FLAGS_WRITE)
200aea8: 80 8c a0 04 btst 4, %l2 <== NOT EXECUTED
200aeac: 32 80 00 1d bne,a 200af20 <pipe_release+0xb8> <== NOT EXECUTED
200aeb0: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
pipe->Writers --;
sc = rtems_semaphore_obtain(rtems_pipe_semaphore,
200aeb4: 23 00 80 76 sethi %hi(0x201d800), %l1 <== NOT EXECUTED
200aeb8: d0 04 60 5c ld [ %l1 + 0x5c ], %o0 ! 201d85c <rtems_pipe_semaphore><== NOT EXECUTED
200aebc: 92 10 20 00 clr %o1 <== NOT EXECUTED
200aec0: 7f ff ee 85 call 20068d4 <rtems_semaphore_obtain> <== NOT EXECUTED
200aec4: 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)
200aec8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200aecc: 12 80 00 35 bne 200afa0 <pipe_release+0x138> <== NOT EXECUTED
200aed0: 01 00 00 00 nop <== NOT EXECUTED
rtems_fatal_error_occurred(sc);
PIPE_UNLOCK(pipe);
200aed4: 7f ff ee c7 call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
200aed8: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
if (pipe->Readers == 0 && pipe->Writers == 0) {
200aedc: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
200aee0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200aee4: 12 80 00 12 bne 200af2c <pipe_release+0xc4> <== NOT EXECUTED
200aee8: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
200aeec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200aef0: 02 80 00 1c be 200af60 <pipe_release+0xf8> <== NOT EXECUTED
200aef4: 80 a4 a0 04 cmp %l2, 4 <== NOT EXECUTED
delfile = TRUE;
#endif
pipe_free(pipe);
*pipep = NULL;
}
else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)
200aef8: 02 80 00 06 be 200af10 <pipe_release+0xa8> <== NOT EXECUTED
200aefc: d0 04 60 5c ld [ %l1 + 0x5c ], %o0 <== NOT EXECUTED
/* Notify waiting Writers that all their partners left */
PIPE_WAKEUPWRITERS(pipe);
200af00: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED
200af04: 40 00 08 c5 call 200d218 <rtems_barrier_release> <== NOT EXECUTED
200af08: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ)
PIPE_WAKEUPREADERS(pipe);
rtems_semaphore_release(rtems_pipe_semaphore);
200af0c: d0 04 60 5c ld [ %l1 + 0x5c ], %o0 <== NOT EXECUTED
200af10: 7f ff ee b8 call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
200af14: b0 10 20 00 clr %i0 <== NOT EXECUTED
if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))
return -errno;
#endif
return 0;
}
200af18: 81 c7 e0 08 ret <== NOT EXECUTED
200af1c: 81 e8 00 00 restore <== NOT EXECUTED
mode = LIBIO_ACCMODE(iop);
if (mode & LIBIO_FLAGS_READ)
pipe->Readers --;
if (mode & LIBIO_FLAGS_WRITE)
pipe->Writers --;
200af20: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
200af24: 10 bf ff e4 b 200aeb4 <pipe_release+0x4c> <== NOT EXECUTED
200af28: c2 24 20 14 st %g1, [ %l0 + 0x14 ] <== NOT EXECUTED
*pipep = NULL;
}
else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)
/* Notify waiting Writers that all their partners left */
PIPE_WAKEUPWRITERS(pipe);
else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ)
200af2c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200af30: 12 bf ff f7 bne 200af0c <pipe_release+0xa4> <== NOT EXECUTED
200af34: 80 a4 a0 02 cmp %l2, 2 <== NOT EXECUTED
200af38: 02 bf ff f6 be 200af10 <pipe_release+0xa8> <== NOT EXECUTED
200af3c: d0 04 60 5c ld [ %l1 + 0x5c ], %o0 <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
200af40: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
200af44: 40 00 08 b5 call 200d218 <rtems_barrier_release> <== NOT EXECUTED
200af48: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
rtems_semaphore_release(rtems_pipe_semaphore);
200af4c: d0 04 60 5c ld [ %l1 + 0x5c ], %o0 <== NOT EXECUTED
200af50: 7f ff ee a8 call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
200af54: b0 10 20 00 clr %i0 <== NOT EXECUTED
if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))
return -errno;
#endif
return 0;
}
200af58: 81 c7 e0 08 ret <== NOT EXECUTED
200af5c: 81 e8 00 00 restore <== NOT EXECUTED
/* Called with rtems_pipe_semaphore held. */
static inline void pipe_free(
pipe_control_t *pipe
)
{
rtems_barrier_delete(pipe->readBarrier);
200af60: 40 00 08 94 call 200d1b0 <rtems_barrier_delete> <== NOT EXECUTED
200af64: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
rtems_barrier_delete(pipe->writeBarrier);
200af68: 40 00 08 92 call 200d1b0 <rtems_barrier_delete> <== NOT EXECUTED
200af6c: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED
rtems_semaphore_delete(pipe->Semaphore);
200af70: 7f ff ee 2c call 2006820 <rtems_semaphore_delete> <== NOT EXECUTED
200af74: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
free(pipe->Buffer);
200af78: 7f ff df 5d call 2002cec <free> <== NOT EXECUTED
200af7c: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED
free(pipe);
200af80: 7f ff df 5b call 2002cec <free> <== NOT EXECUTED
200af84: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
/* Notify waiting Writers that all their partners left */
PIPE_WAKEUPWRITERS(pipe);
else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ)
PIPE_WAKEUPREADERS(pipe);
rtems_semaphore_release(rtems_pipe_semaphore);
200af88: d0 04 60 5c ld [ %l1 + 0x5c ], %o0 <== NOT EXECUTED
/* To delete an anonymous pipe file when all users closed it */
if (pipe->Anonymous)
delfile = TRUE;
#endif
pipe_free(pipe);
*pipep = NULL;
200af8c: c0 26 00 00 clr [ %i0 ] <== NOT EXECUTED
/* Notify waiting Writers that all their partners left */
PIPE_WAKEUPWRITERS(pipe);
else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ)
PIPE_WAKEUPREADERS(pipe);
rtems_semaphore_release(rtems_pipe_semaphore);
200af90: 7f ff ee 98 call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
200af94: b0 10 20 00 clr %i0 <== NOT EXECUTED
if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))
return -errno;
#endif
return 0;
}
200af98: 81 c7 e0 08 ret <== NOT EXECUTED
200af9c: 81 e8 00 00 restore <== NOT EXECUTED
sc = rtems_semaphore_obtain(rtems_pipe_semaphore,
RTEMS_WAIT, RTEMS_NO_TIMEOUT);
/* WARN pipe not freed and pipep not set to NULL! */
if(sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred(sc);
200afa0: 7f ff ef ec call 2006f50 <rtems_fatal_error_occurred> <== NOT EXECUTED
0200aab4 <pipe_write>:
pipe_control_t *pipe,
const void *buffer,
size_t count,
rtems_libio_t *iop
)
{
200aab4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
200aab8: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
int chunk, chunk1, written = 0, ret = 0;
/* Write nothing */
if (count == 0)
200aabc: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
200aac0: 12 80 00 04 bne 200aad0 <pipe_write+0x1c> <== NOT EXECUTED
200aac4: b0 10 20 00 clr %i0 <== NOT EXECUTED
#endif
if (written > 0)
return written;
return ret;
}
200aac8: 81 c7 e0 08 ret <== NOT EXECUTED
200aacc: 81 e8 00 00 restore <== NOT EXECUTED
/* Write nothing */
if (count == 0)
return 0;
if (! PIPE_LOCK(pipe))
200aad0: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
200aad4: 92 10 20 00 clr %o1 <== NOT EXECUTED
200aad8: 94 10 20 00 clr %o2 <== NOT EXECUTED
200aadc: 7f ff ef 7e call 20068d4 <rtems_semaphore_obtain> <== NOT EXECUTED
200aae0: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED
200aae4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200aae8: 12 bf ff f8 bne 200aac8 <pipe_write+0x14> <== NOT EXECUTED
200aaec: 01 00 00 00 nop <== NOT EXECUTED
return -EINTR;
if (pipe->Readers == 0) {
200aaf0: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
200aaf4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200aaf8: 02 80 00 56 be 200ac50 <pipe_write+0x19c> <== NOT EXECUTED
200aafc: a2 10 3f e0 mov -32, %l1 <== NOT EXECUTED
ret = -EPIPE;
goto out_locked;
}
/* Write of PIPE_BUF bytes or less shall not be interleaved */
chunk = count <= pipe->Size ? count : 1;
200ab00: ea 04 20 04 ld [ %l0 + 4 ], %l5 <== NOT EXECUTED
200ab04: 80 a6 80 15 cmp %i2, %l5 <== NOT EXECUTED
200ab08: 18 80 00 03 bgu 200ab14 <pipe_write+0x60> <== NOT EXECUTED
200ab0c: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED
200ab10: a4 10 00 1a mov %i2, %l2 <== NOT EXECUTED
}
pipe->waitingWriters --;
if (ret != 0)
goto out_locked;
if (pipe->Readers == 0) {
200ab14: a6 10 20 00 clr %l3 <== NOT EXECUTED
200ab18: 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);
200ab1c: 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) {
200ab20: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
200ab24: a2 25 40 01 sub %l5, %g1, %l1 <== NOT EXECUTED
200ab28: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED
200ab2c: 1a 80 00 28 bcc 200abcc <pipe_write+0x118> <== NOT EXECUTED
200ab30: 84 26 80 13 sub %i2, %l3, %g2 <== NOT EXECUTED
if (LIBIO_NODELAY(iop)) {
200ab34: c2 06 e0 18 ld [ %i3 + 0x18 ], %g1 <== NOT EXECUTED
200ab38: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
200ab3c: 32 80 00 46 bne,a 200ac54 <pipe_write+0x1a0> <== NOT EXECUTED
200ab40: a2 10 3f f5 mov -11, %l1 <== NOT EXECUTED
ret = -EAGAIN;
goto out_locked;
}
/* Wait until there is chunk bytes space or no reader exists */
pipe->waitingWriters ++;
200ab44: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
PIPE_UNLOCK(pipe);
200ab48: 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 ++;
200ab4c: 82 00 60 01 inc %g1 <== NOT EXECUTED
PIPE_UNLOCK(pipe);
200ab50: 7f ff ef a8 call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
200ab54: c2 24 20 1c st %g1, [ %l0 + 0x1c ] <== NOT EXECUTED
if (! PIPE_WRITEWAIT(pipe))
200ab58: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED
200ab5c: 40 00 09 c6 call 200d274 <rtems_barrier_wait> <== NOT EXECUTED
200ab60: 92 10 20 00 clr %o1 <== NOT EXECUTED
200ab64: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
200ab68: 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))
200ab6c: a2 40 3f ff addx %g0, -1, %l1 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
200ab70: 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))
200ab74: a2 0c 60 04 and %l1, 4, %l1 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
200ab78: 94 10 20 00 clr %o2 <== NOT EXECUTED
200ab7c: 7f ff ef 56 call 20068d4 <rtems_semaphore_obtain> <== NOT EXECUTED
200ab80: a2 04 7f fc add %l1, -4, %l1 <== NOT EXECUTED
200ab84: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200ab88: 12 80 00 3a bne 200ac70 <pipe_write+0x1bc> <== NOT EXECUTED
200ab8c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
/* WARN waitingWriters not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingWriters --;
200ab90: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
200ab94: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
if (ret != 0)
200ab98: 12 80 00 2f bne 200ac54 <pipe_write+0x1a0> <== NOT EXECUTED
200ab9c: c2 24 20 1c st %g1, [ %l0 + 0x1c ] <== NOT EXECUTED
goto out_locked;
if (pipe->Readers == 0) {
200aba0: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
200aba4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200aba8: 02 80 00 2b be 200ac54 <pipe_write+0x1a0> <== NOT EXECUTED
200abac: a2 10 3f e0 mov -32, %l1 <== NOT EXECUTED
200abb0: ea 04 20 04 ld [ %l0 + 4 ], %l5 <== 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) {
200abb4: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
200abb8: a2 25 40 01 sub %l5, %g1, %l1 <== NOT EXECUTED
200abbc: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED
200abc0: 2a bf ff de bcs,a 200ab38 <pipe_write+0x84> <== NOT EXECUTED
200abc4: c2 06 e0 18 ld [ %i3 + 0x18 ], %g1 <== NOT EXECUTED
ret = -EPIPE;
goto out_locked;
}
}
chunk = MIN(count - written, PIPE_SPACE(pipe));
200abc8: 84 26 80 13 sub %i2, %l3, %g2 <== NOT EXECUTED
200abcc: 80 a4 40 02 cmp %l1, %g2 <== NOT EXECUTED
200abd0: 38 80 00 02 bgu,a 200abd8 <pipe_write+0x124> <== NOT EXECUTED
200abd4: a2 10 00 02 mov %g2, %l1 <== NOT EXECUTED
chunk1 = pipe->Size - PIPE_WSTART(pipe);
200abd8: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED
200abdc: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
200abe0: 40 00 3c 1b call 2019c4c <.urem> <== NOT EXECUTED
200abe4: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED
200abe8: a4 25 40 08 sub %l5, %o0, %l2 <== NOT EXECUTED
if (chunk > chunk1) {
200abec: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED
200abf0: 04 80 00 22 ble 200ac78 <pipe_write+0x1c4> <== NOT EXECUTED
200abf4: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
200abf8: 92 06 40 13 add %i1, %l3, %o1 <== NOT EXECUTED
200abfc: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
200ac00: 40 00 18 50 call 2010d40 <memcpy> <== NOT EXECUTED
200ac04: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED
memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
200ac08: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED
200ac0c: 92 04 80 13 add %l2, %l3, %o1 <== NOT EXECUTED
200ac10: 94 24 40 12 sub %l1, %l2, %o2 <== NOT EXECUTED
200ac14: 40 00 18 4b call 2010d40 <memcpy> <== NOT EXECUTED
200ac18: 92 06 40 09 add %i1, %o1, %o1 <== NOT EXECUTED
}
else
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
pipe->Length += chunk;
200ac1c: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED
if (pipe->waitingReaders > 0)
200ac20: 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;
200ac24: 84 00 80 11 add %g2, %l1, %g2 <== NOT EXECUTED
if (pipe->waitingReaders > 0)
200ac28: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200ac2c: 12 80 00 19 bne 200ac90 <pipe_write+0x1dc> <== NOT EXECUTED
200ac30: c4 24 20 0c st %g2, [ %l0 + 0xc ] <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
written += chunk;
200ac34: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED
}
/* Write of PIPE_BUF bytes or less shall not be interleaved */
chunk = count <= pipe->Size ? count : 1;
while (written < count) {
200ac38: 80 a6 80 18 cmp %i2, %i0 <== NOT EXECUTED
200ac3c: 08 80 00 1a bleu 200aca4 <pipe_write+0x1f0> <== NOT EXECUTED
200ac40: a6 10 00 18 mov %i0, %l3 <== NOT EXECUTED
200ac44: ea 04 20 04 ld [ %l0 + 4 ], %l5 <== NOT EXECUTED
200ac48: 10 bf ff b6 b 200ab20 <pipe_write+0x6c> <== NOT EXECUTED
200ac4c: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED
200ac50: b0 10 20 00 clr %i0 <== NOT EXECUTED
/* Write of more than PIPE_BUF bytes can be interleaved */
chunk = 1;
}
out_locked:
PIPE_UNLOCK(pipe);
200ac54: 7f ff ef 67 call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
200ac58: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
/* Signal SIGPIPE */
if (ret == -EPIPE)
kill(getpid(), SIGPIPE);
#endif
if (written > 0)
200ac5c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
200ac60: 14 bf ff 9a bg 200aac8 <pipe_write+0x14> <== NOT EXECUTED
200ac64: 01 00 00 00 nop <== NOT EXECUTED
return written;
return ret;
}
200ac68: 81 c7 e0 08 ret <== NOT EXECUTED
200ac6c: 91 e8 00 11 restore %g0, %l1, %o0 <== NOT EXECUTED
/* Wait until there is chunk bytes space or no reader exists */
pipe->waitingWriters ++;
PIPE_UNLOCK(pipe);
if (! PIPE_WRITEWAIT(pipe))
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
200ac70: 10 bf ff fb b 200ac5c <pipe_write+0x1a8> <== NOT EXECUTED
200ac74: a2 10 3f fc mov -4, %l1 <== NOT EXECUTED
if (chunk > chunk1) {
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
}
else
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
200ac78: 92 06 40 13 add %i1, %l3, %o1 <== NOT EXECUTED
200ac7c: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED
200ac80: 40 00 18 30 call 2010d40 <memcpy> <== NOT EXECUTED
200ac84: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
pipe->Length += chunk;
200ac88: 10 bf ff e6 b 200ac20 <pipe_write+0x16c> <== NOT EXECUTED
200ac8c: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED
if (pipe->waitingReaders > 0)
PIPE_WAKEUPREADERS(pipe);
200ac90: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
200ac94: 40 00 09 61 call 200d218 <rtems_barrier_release> <== NOT EXECUTED
200ac98: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
written += chunk;
200ac9c: 10 bf ff e7 b 200ac38 <pipe_write+0x184> <== NOT EXECUTED
200aca0: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED
}
/* Write of PIPE_BUF bytes or less shall not be interleaved */
chunk = count <= pipe->Size ? count : 1;
while (written < count) {
200aca4: 10 bf ff ec b 200ac54 <pipe_write+0x1a0> <== NOT EXECUTED
200aca8: a2 10 20 00 clr %l1 <== NOT EXECUTED
020074f4 <posix_memalign>:
)
{
/*
* Update call statistics
*/
MSBUMP(memalign_calls, 1);
20074f4: 05 00 80 9f sethi %hi(0x2027c00), %g2
20074f8: 84 10 a0 78 or %g2, 0x78, %g2 ! 2027c78 <rtems_malloc_statistics>
20074fc: c6 00 a0 08 ld [ %g2 + 8 ], %g3
2007500: 86 00 e0 01 inc %g3
2007504: c6 20 a0 08 st %g3, [ %g2 + 8 ]
if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *)))
2007508: 84 02 7f ff add %o1, -1, %g2
200750c: 80 88 80 09 btst %g2, %o1
2007510: 02 80 00 04 be 2007520 <posix_memalign+0x2c> <== ALWAYS TAKEN
2007514: 80 a2 60 03 cmp %o1, 3
/*
* rtems_memalign does all of the error checking work EXCEPT
* for adding restrictionso on the alignment.
*/
return rtems_memalign( pointer, alignment, size );
}
2007518: 81 c3 e0 08 retl
200751c: 90 10 20 16 mov 0x16, %o0
/*
* Update call statistics
*/
MSBUMP(memalign_calls, 1);
if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *)))
2007520: 08 bf ff fe bleu 2007518 <posix_memalign+0x24>
2007524: 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 );
2007528: 82 13 c0 00 mov %o7, %g1
200752c: 40 00 00 68 call 20076cc <rtems_memalign>
2007530: 9e 10 40 00 mov %g1, %o7
02003550 <putk>:
* putk
*
* Kernel putk (e.g. puts) function requiring minimal infrastrure.
*/
void putk(const char *s)
{
2003550: 9d e3 bf a0 save %sp, -96, %sp
const char *p = s;
for (p=s ; *p ; p++ )
2003554: d0 0e 00 00 ldub [ %i0 ], %o0
2003558: 91 2a 20 18 sll %o0, 0x18, %o0
200355c: 80 a2 20 00 cmp %o0, 0
2003560: 02 80 00 0c be 2003590 <putk+0x40> <== NEVER TAKEN
2003564: 23 00 80 60 sethi %hi(0x2018000), %l1
2003568: a0 14 60 68 or %l1, 0x68, %l0 ! 2018068 <BSP_output_char>
BSP_output_char(*p);
200356c: c2 04 00 00 ld [ %l0 ], %g1
2003570: 9f c0 40 00 call %g1
2003574: 91 3a 20 18 sra %o0, 0x18, %o0
*/
void putk(const char *s)
{
const char *p = s;
for (p=s ; *p ; p++ )
2003578: b0 06 20 01 inc %i0
200357c: d0 0e 00 00 ldub [ %i0 ], %o0
2003580: 91 2a 20 18 sll %o0, 0x18, %o0
2003584: 80 a2 20 00 cmp %o0, 0
2003588: 32 bf ff fa bne,a 2003570 <putk+0x20>
200358c: c2 04 00 00 ld [ %l0 ], %g1
BSP_output_char(*p);
BSP_output_char('\n');
2003590: c2 04 60 68 ld [ %l1 + 0x68 ], %g1
2003594: 9f c0 40 00 call %g1
2003598: 90 10 20 0a mov 0xa, %o0
}
200359c: 81 c7 e0 08 ret
20035a0: 81 e8 00 00 restore
0200bef8 <ramdisk_allocate>:
void *area_begin,
uint32_t block_size,
rtems_blkdev_bnum block_count,
bool trace
)
{
200bef8: 9d e3 bf a0 save %sp, -96, %sp
struct ramdisk *rd = malloc(sizeof(struct ramdisk));
200befc: 7f ff e0 8d call 2004130 <malloc>
200bf00: 90 10 20 10 mov 0x10, %o0
if (rd == NULL) {
200bf04: a0 92 20 00 orcc %o0, 0, %l0
200bf08: 02 80 00 0c be 200bf38 <ramdisk_allocate+0x40> <== NEVER TAKEN
200bf0c: a2 10 00 10 mov %l0, %l1
return NULL;
}
if (area_begin == NULL) {
200bf10: 80 a6 20 00 cmp %i0, 0
200bf14: 02 80 00 0b be 200bf40 <ramdisk_allocate+0x48> <== ALWAYS TAKEN
200bf18: 90 10 00 1a mov %i2, %o0
return NULL;
}
rd->malloced = true;
} else {
rd->malloced = false;
200bf1c: c0 2c 20 0d clrb [ %l0 + 0xd ] <== NOT EXECUTED
}
rd->block_size = block_size;
rd->block_num = block_count;
rd->area = area_begin;
rd->trace = trace;
rd->initialized = true;
200bf20: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
}
rd->malloced = true;
} else {
rd->malloced = false;
}
rd->block_size = block_size;
200bf24: f2 24 40 00 st %i1, [ %l1 ]
rd->block_num = block_count;
200bf28: f4 24 60 04 st %i2, [ %l1 + 4 ]
rd->area = area_begin;
200bf2c: f0 24 60 08 st %i0, [ %l1 + 8 ]
rd->trace = trace;
200bf30: f6 2c 60 0e stb %i3, [ %l1 + 0xe ]
rd->initialized = true;
200bf34: c2 2c 60 0c stb %g1, [ %l1 + 0xc ]
return rd;
}
200bf38: 81 c7 e0 08 ret
200bf3c: 91 e8 00 10 restore %g0, %l0, %o0
if (rd == NULL) {
return NULL;
}
if (area_begin == NULL) {
area_begin = calloc(block_count, block_size);
200bf40: 7f ff de f1 call 2003b04 <calloc>
200bf44: 92 10 00 19 mov %i1, %o1
if (area_begin == NULL) {
200bf48: b0 92 20 00 orcc %o0, 0, %i0
200bf4c: 02 80 00 04 be 200bf5c <ramdisk_allocate+0x64> <== NEVER TAKEN
200bf50: 82 10 20 01 mov 1, %g1
free(rd);
return NULL;
}
rd->malloced = true;
200bf54: 10 bf ff f4 b 200bf24 <ramdisk_allocate+0x2c>
200bf58: c2 2c 20 0d stb %g1, [ %l0 + 0xd ]
}
if (area_begin == NULL) {
area_begin = calloc(block_count, block_size);
if (area_begin == NULL) {
free(rd);
200bf5c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
200bf60: 7f ff df 8c call 2003d90 <free> <== NOT EXECUTED
200bf64: a0 10 20 00 clr %l0 <== NOT EXECUTED
return NULL;
200bf68: 30 bf ff f4 b,a 200bf38 <ramdisk_allocate+0x40> <== NOT EXECUTED
0200beb8 <ramdisk_free>:
return rd;
}
void ramdisk_free(ramdisk *rd)
{
200beb8: 9d e3 bf a0 save %sp, -96, %sp
if (rd != NULL) {
200bebc: 80 a6 20 00 cmp %i0, 0
200bec0: 02 80 00 0c be 200bef0 <ramdisk_free+0x38> <== NEVER TAKEN
200bec4: 01 00 00 00 nop
if (rd->malloced) {
200bec8: c2 0e 20 0d ldub [ %i0 + 0xd ], %g1
200becc: 80 a0 60 00 cmp %g1, 0
200bed0: 12 80 00 04 bne 200bee0 <ramdisk_free+0x28> <== ALWAYS TAKEN
200bed4: 01 00 00 00 nop
free(rd->area);
}
free(rd);
200bed8: 7f ff df ae call 2003d90 <free> <== NOT EXECUTED
200bedc: 81 e8 00 00 restore <== NOT EXECUTED
void ramdisk_free(ramdisk *rd)
{
if (rd != NULL) {
if (rd->malloced) {
free(rd->area);
200bee0: 7f ff df ac call 2003d90 <free>
200bee4: d0 06 20 08 ld [ %i0 + 8 ], %o0
}
free(rd);
200bee8: 7f ff df aa call 2003d90 <free>
200beec: 81 e8 00 00 restore
200bef0: 81 c7 e0 08 ret <== NOT EXECUTED
200bef4: 81 e8 00 00 restore <== NOT EXECUTED
02023c04 <ramdisk_initialize>:
rtems_device_driver
ramdisk_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor __attribute__((unused)),
void *arg __attribute__((unused)))
{
2023c04: 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();
2023c08: 7f ff 8d 0e call 2007040 <rtems_disk_io_initialize> <== NOT EXECUTED
2023c0c: 01 00 00 00 nop <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
2023c10: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2023c14: 02 80 00 04 be 2023c24 <ramdisk_initialize+0x20> <== NOT EXECUTED
2023c18: 2b 00 81 bc sethi %hi(0x206f000), %l5 <== NOT EXECUTED
}
r->initialized = false;
}
}
return RTEMS_SUCCESSFUL;
}
2023c1c: 81 c7 e0 08 ret <== NOT EXECUTED
2023c20: 91 e8 00 10 restore %g0, %l0, %o0 <== 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));
2023c24: d0 05 60 20 ld [ %l5 + 0x20 ], %o0 <== NOT EXECUTED
2023c28: 7f ff 91 8b call 2008254 <calloc> <== NOT EXECUTED
2023c2c: 92 10 20 10 mov 0x10, %o1 <== NOT EXECUTED
r->trace = false;
for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)
2023c30: c2 05 60 20 ld [ %l5 + 0x20 ], %g1 <== 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;
2023c34: c0 2a 20 0e clrb [ %o0 + 0xe ] <== NOT EXECUTED
for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)
2023c38: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2023c3c: 02 bf ff f8 be 2023c1c <ramdisk_initialize+0x18> <== NOT EXECUTED
2023c40: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
2023c44: 27 00 81 bc sethi %hi(0x206f000), %l3 <== NOT EXECUTED
2023c48: a6 14 e0 14 or %l3, 0x14, %l3 ! 206f014 <rtems_ramdisk_configuration><== 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;
2023c4c: d4 04 c0 00 ld [ %l3 ], %o2 <== NOT EXECUTED
r->block_num = c->block_num;
2023c50: d6 04 e0 04 ld [ %l3 + 4 ], %o3 <== NOT EXECUTED
if (c->location == NULL)
2023c54: c2 04 e0 08 ld [ %l3 + 8 ], %g1 <== 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++)
2023c58: a4 10 20 00 clr %l2 <== NOT EXECUTED
{
dev_t dev = rtems_filesystem_make_dev_t(major, i);
char name [] = RAMDISK_DEVICE_BASE_NAME "a";
2023c5c: 2d 0b d9 19 sethi %hi(0x2f646400), %l6 <== NOT EXECUTED
2023c60: 2f 0b dc 99 sethi %hi(0x2f726400), %l7 <== NOT EXECUTED
2023c64: ac 15 a1 76 or %l6, 0x176, %l6 <== NOT EXECUTED
2023c68: ae 15 e0 61 or %l7, 0x61, %l7 <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
2023c6c: f0 27 bf f8 st %i0, [ %fp + -8 ] <== NOT EXECUTED
temp.__overlay.minor = _minor;
2023c70: e4 27 bf fc st %l2, [ %fp + -4 ] <== NOT EXECUTED
2023c74: ec 3f bf e8 std %l6, [ %fp + -24 ] <== NOT EXECUTED
name [sizeof(RAMDISK_DEVICE_BASE_NAME)] += i;
2023c78: e4 2f bf f0 stb %l2, [ %fp + -16 ] <== NOT EXECUTED
r->block_size = c->block_size;
2023c7c: d4 24 40 00 st %o2, [ %l1 ] <== NOT EXECUTED
r->block_num = c->block_num;
2023c80: d6 24 60 04 st %o3, [ %l1 + 4 ] <== NOT EXECUTED
{
r->malloced = false;
r->initialized = true;
r->area = c->location;
}
rc = rtems_disk_create_phys(dev, c->block_size, c->block_num,
2023c84: 39 00 80 8f sethi %hi(0x2023c00), %i4 <== NOT EXECUTED
2023c88: aa 15 60 20 or %l5, 0x20, %l5 <== NOT EXECUTED
2023c8c: b8 17 21 74 or %i4, 0x174, %i4 <== NOT EXECUTED
2023c90: ba 07 bf e8 add %fp, -24, %i5 <== NOT EXECUTED
}
}
else
{
r->malloced = false;
r->initialized = true;
2023c94: 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;
if (c->location == NULL)
2023c98: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2023c9c: 02 80 00 25 be 2023d30 <ramdisk_initialize+0x12c> <== NOT EXECUTED
2023ca0: f4 1f bf f8 ldd [ %fp + -8 ], %i2 <== NOT EXECUTED
}
else
{
r->malloced = false;
r->initialized = true;
r->area = c->location;
2023ca4: c2 24 60 08 st %g1, [ %l1 + 8 ] <== NOT EXECUTED
r->initialized = true;
}
}
else
{
r->malloced = false;
2023ca8: c0 2c 60 0d clrb [ %l1 + 0xd ] <== NOT EXECUTED
r->initialized = true;
2023cac: 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,
2023cb0: fa 23 a0 5c st %i5, [ %sp + 0x5c ] <== NOT EXECUTED
2023cb4: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
2023cb8: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
2023cbc: 98 10 00 1c mov %i4, %o4 <== NOT EXECUTED
2023cc0: 7f ff 8e bd call 20077b4 <rtems_disk_create_phys> <== NOT EXECUTED
2023cc4: 9a 10 00 11 mov %l1, %o5 <== NOT EXECUTED
ramdisk_ioctl, r, name);
if (rc != RTEMS_SUCCESSFUL)
2023cc8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023ccc: 22 80 00 08 be,a 2023cec <ramdisk_initialize+0xe8> <== NOT EXECUTED
2023cd0: c2 05 40 00 ld [ %l5 ], %g1 <== NOT EXECUTED
{
if (r->malloced)
2023cd4: c2 0c 60 0d ldub [ %l1 + 0xd ], %g1 <== NOT EXECUTED
2023cd8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2023cdc: 12 80 00 22 bne 2023d64 <ramdisk_initialize+0x160> <== NOT EXECUTED
2023ce0: 01 00 00 00 nop <== NOT EXECUTED
{
free(r->area);
}
r->initialized = false;
2023ce4: 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++)
2023ce8: c2 05 40 00 ld [ %l5 ], %g1 <== NOT EXECUTED
2023cec: a4 04 a0 01 inc %l2 <== NOT EXECUTED
2023cf0: 80 a0 40 12 cmp %g1, %l2 <== NOT EXECUTED
2023cf4: 08 bf ff ca bleu 2023c1c <ramdisk_initialize+0x18> <== NOT EXECUTED
2023cf8: a6 04 e0 0c add %l3, 0xc, %l3 <== 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;
2023cfc: d4 04 c0 00 ld [ %l3 ], %o2 <== NOT EXECUTED
r->block_num = c->block_num;
2023d00: d6 04 e0 04 ld [ %l3 + 4 ], %o3 <== NOT EXECUTED
if (c->location == NULL)
2023d04: c2 04 e0 08 ld [ %l3 + 8 ], %g1 <== 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++)
2023d08: a2 04 60 10 add %l1, 0x10, %l1 <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
2023d0c: f0 27 bf f8 st %i0, [ %fp + -8 ] <== NOT EXECUTED
temp.__overlay.minor = _minor;
2023d10: e4 27 bf fc st %l2, [ %fp + -4 ] <== NOT EXECUTED
{
dev_t dev = rtems_filesystem_make_dev_t(major, i);
char name [] = RAMDISK_DEVICE_BASE_NAME "a";
2023d14: ec 3f bf e8 std %l6, [ %fp + -24 ] <== NOT EXECUTED
name [sizeof(RAMDISK_DEVICE_BASE_NAME)] += i;
2023d18: e4 2f bf f0 stb %l2, [ %fp + -16 ] <== NOT EXECUTED
r->block_size = c->block_size;
2023d1c: d4 24 40 00 st %o2, [ %l1 ] <== NOT EXECUTED
r->block_num = c->block_num;
2023d20: d6 24 60 04 st %o3, [ %l1 + 4 ] <== NOT EXECUTED
if (c->location == NULL)
2023d24: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2023d28: 12 bf ff df bne 2023ca4 <ramdisk_initialize+0xa0> <== NOT EXECUTED
2023d2c: f4 1f bf f8 ldd [ %fp + -8 ], %i2 <== NOT EXECUTED
{
r->malloced = true;
r->area = malloc(r->block_size * r->block_num);
2023d30: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED
2023d34: 90 10 00 0b mov %o3, %o0 <== NOT EXECUTED
2023d38: 7f ff 7b 95 call 2002b8c <.umul> <== NOT EXECUTED
2023d3c: e8 2c 60 0d stb %l4, [ %l1 + 0xd ] <== NOT EXECUTED
2023d40: 7f ff 94 c8 call 2009060 <malloc> <== NOT EXECUTED
2023d44: 01 00 00 00 nop <== NOT EXECUTED
if (r->area == NULL) /* No enough memory for this disk */
2023d48: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023d4c: 02 bf ff e6 be 2023ce4 <ramdisk_initialize+0xe0> <== NOT EXECUTED
2023d50: d0 24 60 08 st %o0, [ %l1 + 8 ] <== NOT EXECUTED
r->initialized = false;
continue;
}
else
{
r->initialized = true;
2023d54: e8 2c 60 0c stb %l4, [ %l1 + 0xc ] <== NOT EXECUTED
2023d58: d4 04 c0 00 ld [ %l3 ], %o2 <== NOT EXECUTED
2023d5c: 10 bf ff d5 b 2023cb0 <ramdisk_initialize+0xac> <== NOT EXECUTED
2023d60: d6 04 e0 04 ld [ %l3 + 4 ], %o3 <== NOT EXECUTED
ramdisk_ioctl, r, name);
if (rc != RTEMS_SUCCESSFUL)
{
if (r->malloced)
{
free(r->area);
2023d64: 7f ff 92 de call 20088dc <free> <== NOT EXECUTED
2023d68: d0 04 60 08 ld [ %l1 + 8 ], %o0 <== NOT EXECUTED
}
r->initialized = false;
2023d6c: 10 bf ff df b 2023ce8 <ramdisk_initialize+0xe4> <== NOT EXECUTED
2023d70: c0 2c 60 0c clrb [ %l1 + 0xc ] <== NOT EXECUTED
0200bd94 <ramdisk_ioctl>:
return 0;
}
int
ramdisk_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)
{
200bd94: 9d e3 bf a0 save %sp, -96, %sp
switch (req)
200bd98: 03 30 06 10 sethi %hi(0xc0184000), %g1
200bd9c: 82 10 62 01 or %g1, 0x201, %g1 ! c0184201 <RAM_END+0xbdd84201>
200bda0: 80 a6 40 01 cmp %i1, %g1
200bda4: 02 80 00 04 be 200bdb4 <ramdisk_ioctl+0x20>
200bda8: a0 10 00 1a mov %i2, %l0
}
break;
}
default:
return rtems_blkdev_ioctl (dd, req, argp);
200bdac: 40 00 0a a8 call 200e84c <rtems_blkdev_ioctl>
200bdb0: 81 e8 00 00 restore
case RTEMS_BLKIO_REQUEST:
{
rtems_blkdev_request *r = argp;
struct ramdisk *rd = rtems_disk_get_driver_data(dd);
switch (r->req)
200bdb4: c4 06 80 00 ld [ %i2 ], %g2
200bdb8: 80 a0 a0 00 cmp %g2, 0
200bdbc: 12 80 00 1d bne 200be30 <ramdisk_ioctl+0x9c> <== ALWAYS TAKEN
200bdc0: e6 06 20 2c ld [ %i0 + 0x2c ], %l3
#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++)
200bdc4: c2 06 a0 10 ld [ %i2 + 0x10 ], %g1 <== NOT EXECUTED
200bdc8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200bdcc: 02 80 00 11 be 200be10 <ramdisk_ioctl+0x7c> <== NOT EXECUTED
200bdd0: ea 04 e0 08 ld [ %l3 + 8 ], %l5 <== NOT EXECUTED
200bdd4: a2 06 a0 18 add %i2, 0x18, %l1 <== NOT EXECUTED
200bdd8: a4 10 20 00 clr %l2 <== 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);
200bddc: d2 04 40 00 ld [ %l1 ], %o1 <== NOT EXECUTED
200bde0: d0 04 c0 00 ld [ %l3 ], %o0 <== NOT EXECUTED
200bde4: 40 00 46 cc call 201d914 <.umul> <== NOT EXECUTED
200bde8: e8 04 60 08 ld [ %l1 + 8 ], %l4 <== NOT EXECUTED
200bdec: d4 04 60 04 ld [ %l1 + 4 ], %o2 <== NOT EXECUTED
200bdf0: 92 05 40 08 add %l5, %o0, %o1 <== NOT EXECUTED
200bdf4: 40 00 24 5c call 2014f64 <memcpy> <== NOT EXECUTED
200bdf8: 90 10 00 14 mov %l4, %o0 <== 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++)
200bdfc: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
200be00: a4 04 a0 01 inc %l2 <== NOT EXECUTED
200be04: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED
200be08: 0a bf ff f5 bcs 200bddc <ramdisk_ioctl+0x48> <== NOT EXECUTED
200be0c: a2 04 60 10 add %l1, 0x10, %l1 <== 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);
200be10: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED
200be14: c2 04 20 04 ld [ %l0 + 4 ], %g1 <== NOT EXECUTED
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;
200be18: c0 24 20 0c clr [ %l0 + 0xc ] <== NOT EXECUTED
req->req_done(req->done_arg, RTEMS_SUCCESSFUL);
200be1c: 92 10 20 00 clr %o1 <== NOT EXECUTED
200be20: 9f c0 40 00 call %g1 <== NOT EXECUTED
200be24: b0 10 20 00 clr %i0 <== NOT EXECUTED
{
case RTEMS_BLKDEV_REQ_READ:
return ramdisk_read(rd, r);
case RTEMS_BLKDEV_REQ_WRITE:
return ramdisk_write(rd, r);
200be28: 81 c7 e0 08 ret <== NOT EXECUTED
200be2c: 81 e8 00 00 restore <== NOT EXECUTED
case RTEMS_BLKIO_REQUEST:
{
rtems_blkdev_request *r = argp;
struct ramdisk *rd = rtems_disk_get_driver_data(dd);
switch (r->req)
200be30: 80 a0 a0 01 cmp %g2, 1
200be34: 22 80 00 08 be,a 200be54 <ramdisk_ioctl+0xc0> <== ALWAYS TAKEN
200be38: c2 06 a0 10 ld [ %i2 + 0x10 ], %g1
case RTEMS_BLKDEV_REQ_WRITE:
return ramdisk_write(rd, r);
default:
errno = EINVAL;
200be3c: 40 00 22 0e call 2014674 <__errno> <== NOT EXECUTED
200be40: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200be44: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
200be48: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return -1;
200be4c: 81 c7 e0 08 ret <== NOT EXECUTED
200be50: 81 e8 00 00 restore <== 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++)
200be54: 80 a0 60 00 cmp %g1, 0
200be58: 02 bf ff ee be 200be10 <ramdisk_ioctl+0x7c> <== NEVER TAKEN
200be5c: e8 04 e0 08 ld [ %l3 + 8 ], %l4
200be60: a2 06 a0 18 add %i2, 0x18, %l1
200be64: a4 10 20 00 clr %l2
#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);
200be68: d2 04 40 00 ld [ %l1 ], %o1
200be6c: d0 04 c0 00 ld [ %l3 ], %o0
200be70: 40 00 46 a9 call 201d914 <.umul>
200be74: a4 04 a0 01 inc %l2
200be78: d2 04 60 08 ld [ %l1 + 8 ], %o1
200be7c: d4 04 60 04 ld [ %l1 + 4 ], %o2
200be80: 40 00 24 39 call 2014f64 <memcpy>
200be84: 90 05 00 08 add %l4, %o0, %o0
#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++)
200be88: c2 04 20 10 ld [ %l0 + 0x10 ], %g1
200be8c: 80 a4 80 01 cmp %l2, %g1
200be90: 0a bf ff f6 bcs 200be68 <ramdisk_ioctl+0xd4> <== NEVER TAKEN
200be94: a2 04 60 10 add %l1, 0x10, %l1
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);
200be98: d0 04 20 08 ld [ %l0 + 8 ], %o0
200be9c: 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;
200bea0: c0 24 20 0c clr [ %l0 + 0xc ]
req->req_done(req->done_arg, RTEMS_SUCCESSFUL);
200bea4: 92 10 20 00 clr %o1
200bea8: 9f c0 40 00 call %g1
200beac: 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);
200beb0: 81 c7 e0 08 ret
200beb4: 81 e8 00 00 restore
0200bf6c <ramdisk_register>:
rtems_blkdev_bnum block_count,
bool trace,
const char *disk,
dev_t *dev_ptr
)
{
200bf6c: 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);
200bf70: 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;
200bf74: c0 27 bf fc clr [ %fp + -4 ]
rtems_blkdev_bnum block_count,
bool trace,
const char *disk,
dev_t *dev_ptr
)
{
200bf78: 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);
200bf7c: 13 00 80 80 sethi %hi(0x2020000), %o1
200bf80: 94 07 bf fc add %fp, -4, %o2
200bf84: 92 12 61 14 or %o1, 0x114, %o1
200bf88: 7f ff f1 25 call 200841c <rtems_io_register_driver>
200bf8c: b0 10 20 0d mov 0xd, %i0
if (sc != RTEMS_SUCCESSFUL) {
200bf90: 80 a2 20 00 cmp %o0, 0
200bf94: 12 80 00 1d bne 200c008 <ramdisk_register+0x9c> <== NEVER TAKEN
200bf98: 96 0e a0 ff and %i2, 0xff, %o3
return RTEMS_UNSATISFIED;
}
rd = ramdisk_allocate(NULL, block_size, block_count, trace);
200bf9c: 92 10 00 10 mov %l0, %o1
200bfa0: 7f ff ff d6 call 200bef8 <ramdisk_allocate>
200bfa4: 94 10 00 19 mov %i1, %o2
if (rd == NULL) {
200bfa8: a2 92 20 00 orcc %o0, 0, %l1
200bfac: 02 80 00 19 be 200c010 <ramdisk_register+0xa4> <== NEVER TAKEN
200bfb0: e4 07 bf fc ld [ %fp + -4 ], %l2
return RTEMS_UNSATISFIED;
}
dev = rtems_filesystem_make_dev_t(major, 0);
sc = rtems_disk_create_phys(
200bfb4: f6 23 a0 5c st %i3, [ %sp + 0x5c ]
200bfb8: 94 10 00 10 mov %l0, %o2
200bfbc: 96 10 00 19 mov %i1, %o3
200bfc0: 90 10 00 12 mov %l2, %o0
200bfc4: 92 10 20 00 clr %o1
200bfc8: 19 00 80 2f sethi %hi(0x200bc00), %o4
200bfcc: 9a 10 00 11 mov %l1, %o5
200bfd0: 7f ff dc 85 call 20031e4 <rtems_disk_create_phys>
200bfd4: 98 13 21 94 or %o4, 0x194, %o4
block_count,
ramdisk_ioctl,
rd,
disk
);
if (sc != RTEMS_SUCCESSFUL) {
200bfd8: 80 a2 20 00 cmp %o0, 0
200bfdc: 12 80 00 06 bne 200bff4 <ramdisk_register+0x88> <== NEVER TAKEN
200bfe0: 01 00 00 00 nop
rtems_io_unregister_driver(major);
return RTEMS_UNSATISFIED;
}
*dev_ptr = dev;
200bfe4: e4 27 00 00 st %l2, [ %i4 ]
200bfe8: c0 27 20 04 clr [ %i4 + 4 ]
return RTEMS_SUCCESSFUL;
}
200bfec: 81 c7 e0 08 ret
200bff0: 91 e8 20 00 restore %g0, 0, %o0
ramdisk_ioctl,
rd,
disk
);
if (sc != RTEMS_SUCCESSFUL) {
ramdisk_free(rd);
200bff4: 7f ff ff b1 call 200beb8 <ramdisk_free> <== NOT EXECUTED
200bff8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
rtems_io_unregister_driver(major);
200bffc: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
200c000: 7f ff f1 6a call 20085a8 <rtems_io_unregister_driver> <== NOT EXECUTED
200c004: b0 10 20 0d mov 0xd, %i0 <== NOT EXECUTED
return RTEMS_UNSATISFIED;
200c008: 81 c7 e0 08 ret <== NOT EXECUTED
200c00c: 81 e8 00 00 restore <== NOT EXECUTED
return RTEMS_UNSATISFIED;
}
rd = ramdisk_allocate(NULL, block_size, block_count, trace);
if (rd == NULL) {
rtems_io_unregister_driver(major);
200c010: 7f ff f1 66 call 20085a8 <rtems_io_unregister_driver> <== NOT EXECUTED
200c014: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
return RTEMS_UNSATISFIED;
200c018: 81 c7 e0 08 ret <== NOT EXECUTED
200c01c: 81 e8 00 00 restore <== NOT EXECUTED
0201b15c <read>:
ssize_t read(
int fd,
void *buffer,
size_t count
)
{
201b15c: 9d e3 bf a0 save %sp, -96, %sp
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
201b160: 03 00 80 74 sethi %hi(0x201d000), %g1
201b164: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 ! 201d044 <rtems_libio_number_iops>
201b168: 80 a6 00 01 cmp %i0, %g1
201b16c: 1a 80 00 23 bcc 201b1f8 <read+0x9c> <== NEVER TAKEN
201b170: 03 00 80 76 sethi %hi(0x201d800), %g1
iop = rtems_libio_iop( fd );
201b174: e0 00 61 d8 ld [ %g1 + 0x1d8 ], %l0 ! 201d9d8 <rtems_libio_iops>
201b178: 83 2e 20 06 sll %i0, 6, %g1
201b17c: b1 2e 20 03 sll %i0, 3, %i0
201b180: b0 06 00 01 add %i0, %g1, %i0
201b184: a0 04 00 18 add %l0, %i0, %l0
rtems_libio_check_is_open( iop );
201b188: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
201b18c: 80 88 61 00 btst 0x100, %g1
201b190: 02 80 00 1a be 201b1f8 <read+0x9c>
201b194: 80 a6 60 00 cmp %i1, 0
rtems_libio_check_buffer( buffer );
201b198: 02 80 00 24 be 201b228 <read+0xcc> <== NEVER TAKEN
201b19c: 80 a6 a0 00 cmp %i2, 0
rtems_libio_check_count( count );
201b1a0: 02 80 00 14 be 201b1f0 <read+0x94> <== NEVER TAKEN
201b1a4: b0 10 20 00 clr %i0
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
201b1a8: 80 88 60 02 btst 2, %g1
201b1ac: 02 80 00 13 be 201b1f8 <read+0x9c> <== NEVER TAKEN
201b1b0: 01 00 00 00 nop
/*
* Now process the read().
*/
if ( !iop->handlers->read_h )
201b1b4: c2 04 20 40 ld [ %l0 + 0x40 ], %g1
201b1b8: c2 00 60 08 ld [ %g1 + 8 ], %g1
201b1bc: 80 a0 60 00 cmp %g1, 0
201b1c0: 02 80 00 14 be 201b210 <read+0xb4> <== NEVER TAKEN
201b1c4: 92 10 00 19 mov %i1, %o1
rtems_set_errno_and_return_minus_one( ENOTSUP );
rc = (*iop->handlers->read_h)( iop, buffer, count );
201b1c8: 94 10 00 1a mov %i2, %o2
201b1cc: 9f c0 40 00 call %g1
201b1d0: 90 10 00 10 mov %l0, %o0
if ( rc > 0 )
201b1d4: b0 92 20 00 orcc %o0, 0, %i0
201b1d8: 04 80 00 06 ble 201b1f0 <read+0x94>
201b1dc: 85 3e 20 1f sra %i0, 0x1f, %g2
iop->offset += rc;
201b1e0: d8 1c 20 10 ldd [ %l0 + 0x10 ], %o4
201b1e4: 86 83 40 18 addcc %o5, %i0, %g3
201b1e8: 84 43 00 02 addx %o4, %g2, %g2
201b1ec: c4 3c 20 10 std %g2, [ %l0 + 0x10 ]
return rc;
}
201b1f0: 81 c7 e0 08 ret
201b1f4: 81 e8 00 00 restore
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open( iop );
rtems_libio_check_buffer( buffer );
rtems_libio_check_count( count );
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
201b1f8: 7f ff d4 96 call 2010450 <__errno>
201b1fc: b0 10 3f ff mov -1, %i0
201b200: 82 10 20 09 mov 9, %g1
201b204: c2 22 00 00 st %g1, [ %o0 ]
201b208: 81 c7 e0 08 ret
201b20c: 81 e8 00 00 restore
/*
* Now process the read().
*/
if ( !iop->handlers->read_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
201b210: 7f ff d4 90 call 2010450 <__errno> <== NOT EXECUTED
201b214: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
201b218: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
201b21c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
201b220: 81 c7 e0 08 ret <== NOT EXECUTED
201b224: 81 e8 00 00 restore <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open( iop );
rtems_libio_check_buffer( buffer );
201b228: 7f ff d4 8a call 2010450 <__errno> <== NOT EXECUTED
201b22c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
201b230: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
201b234: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
201b238: 81 c7 e0 08 ret <== NOT EXECUTED
201b23c: 81 e8 00 00 restore <== NOT EXECUTED
0202df2c <readlink>:
ssize_t readlink(
const char *pathname,
char *buf,
size_t bufsize
)
{
202df2c: 9d e3 bf 88 save %sp, -120, %sp
rtems_filesystem_location_info_t loc;
int result;
if (!buf)
202df30: 80 a6 60 00 cmp %i1, 0
202df34: 02 80 00 2b be 202dfe0 <readlink+0xb4> <== NEVER TAKEN
202df38: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EFAULT );
result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ),
202df3c: 40 00 86 ea call 204fae4 <strlen>
202df40: 90 10 00 18 mov %i0, %o0
202df44: a0 07 bf ec add %fp, -20, %l0
202df48: 92 10 00 08 mov %o0, %o1
202df4c: 94 10 20 00 clr %o2
202df50: 90 10 00 18 mov %i0, %o0
202df54: 96 10 00 10 mov %l0, %o3
202df58: 98 10 20 00 clr %o4
202df5c: 7f ff 6a 41 call 2008860 <rtems_filesystem_evaluate_path>
202df60: b0 10 3f ff mov -1, %i0
0, &loc, false );
if ( result != 0 )
202df64: 80 a2 20 00 cmp %o0, 0
202df68: 12 80 00 1c bne 202dfd8 <readlink+0xac> <== NEVER TAKEN
202df6c: c4 07 bf f8 ld [ %fp + -8 ], %g2
return -1;
if ( !loc.ops->node_type_h ){
202df70: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1
202df74: 80 a0 60 00 cmp %g1, 0
202df78: 22 80 00 31 be,a 202e03c <readlink+0x110> <== NEVER TAKEN
202df7c: 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 ){
202df80: 9f c0 40 00 call %g1
202df84: 90 10 00 10 mov %l0, %o0
202df88: 80 a2 20 04 cmp %o0, 4
202df8c: 12 80 00 1b bne 202dff8 <readlink+0xcc>
202df90: c4 07 bf f8 ld [ %fp + -8 ], %g2
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( EINVAL );
}
if ( !loc.ops->readlink_h ){
202df94: c2 00 a0 3c ld [ %g2 + 0x3c ], %g1
202df98: 80 a0 60 00 cmp %g1, 0
202df9c: 02 80 00 27 be 202e038 <readlink+0x10c> <== NEVER TAKEN
202dfa0: 92 10 00 19 mov %i1, %o1
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->readlink_h)( &loc, buf, bufsize );
202dfa4: 94 10 00 1a mov %i2, %o2
202dfa8: 9f c0 40 00 call %g1
202dfac: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &loc );
202dfb0: c2 07 bf f8 ld [ %fp + -8 ], %g1
202dfb4: 80 a0 60 00 cmp %g1, 0
202dfb8: 02 80 00 08 be 202dfd8 <readlink+0xac> <== NEVER TAKEN
202dfbc: b0 10 00 08 mov %o0, %i0
202dfc0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202dfc4: 80 a0 60 00 cmp %g1, 0
202dfc8: 02 80 00 26 be 202e060 <readlink+0x134> <== NEVER TAKEN
202dfcc: 01 00 00 00 nop
202dfd0: 9f c0 40 00 call %g1
202dfd4: 90 10 00 10 mov %l0, %o0
return result;
}
202dfd8: 81 c7 e0 08 ret
202dfdc: 81 e8 00 00 restore
{
rtems_filesystem_location_info_t loc;
int result;
if (!buf)
rtems_set_errno_and_return_minus_one( EFAULT );
202dfe0: 40 00 6b 19 call 2048c44 <__errno> <== NOT EXECUTED
202dfe4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202dfe8: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED
202dfec: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202dff0: 81 c7 e0 08 ret <== NOT EXECUTED
202dff4: 81 e8 00 00 restore <== 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 ){
rtems_filesystem_freenode( &loc );
202dff8: c2 07 bf f8 ld [ %fp + -8 ], %g1
202dffc: 80 a0 60 00 cmp %g1, 0
202e000: 02 80 00 08 be 202e020 <readlink+0xf4> <== NEVER TAKEN
202e004: 01 00 00 00 nop
202e008: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202e00c: 80 a0 60 00 cmp %g1, 0
202e010: 02 80 00 04 be 202e020 <readlink+0xf4> <== NEVER TAKEN
202e014: 01 00 00 00 nop
202e018: 9f c0 40 00 call %g1
202e01c: 90 10 00 10 mov %l0, %o0
rtems_set_errno_and_return_minus_one( EINVAL );
202e020: 40 00 6b 09 call 2048c44 <__errno>
202e024: b0 10 3f ff mov -1, %i0
202e028: 82 10 20 16 mov 0x16, %g1
202e02c: c2 22 00 00 st %g1, [ %o0 ]
202e030: 81 c7 e0 08 ret
202e034: 81 e8 00 00 restore
}
if ( !loc.ops->readlink_h ){
rtems_filesystem_freenode( &loc );
202e038: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
202e03c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202e040: 02 80 00 04 be 202e050 <readlink+0x124> <== NOT EXECUTED
202e044: 01 00 00 00 nop <== NOT EXECUTED
202e048: 9f c0 40 00 call %g1 <== NOT EXECUTED
202e04c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
202e050: 40 00 6a fd call 2048c44 <__errno> <== NOT EXECUTED
202e054: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202e058: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
202e05c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202e060: 81 c7 e0 08 ret <== NOT EXECUTED
202e064: 81 e8 00 00 restore <== NOT EXECUTED
02004b90 <readv>:
ssize_t readv(
int fd,
const struct iovec *iov,
int iovcnt
)
{
2004b90: 9d e3 bf a0 save %sp, -96, %sp
int v;
int bytes;
rtems_libio_t *iop;
bool all_zeros;
rtems_libio_check_fd( fd );
2004b94: 03 00 80 7f sethi %hi(0x201fc00), %g1
2004b98: c2 00 60 64 ld [ %g1 + 0x64 ], %g1 ! 201fc64 <rtems_libio_number_iops>
2004b9c: 80 a6 00 01 cmp %i0, %g1
2004ba0: 1a 80 00 50 bcc 2004ce0 <readv+0x150> <== NEVER TAKEN
2004ba4: 03 00 80 83 sethi %hi(0x2020c00), %g1
iop = rtems_libio_iop( fd );
2004ba8: e4 00 61 cc ld [ %g1 + 0x1cc ], %l2 ! 2020dcc <rtems_libio_iops>
2004bac: 83 2e 20 06 sll %i0, 6, %g1
2004bb0: b1 2e 20 03 sll %i0, 3, %i0
2004bb4: b0 06 00 01 add %i0, %g1, %i0
2004bb8: a4 04 80 18 add %l2, %i0, %l2
rtems_libio_check_is_open( iop );
2004bbc: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1
2004bc0: 80 88 61 00 btst 0x100, %g1
2004bc4: 02 80 00 47 be 2004ce0 <readv+0x150> <== NEVER TAKEN
2004bc8: 80 88 60 02 btst 2, %g1
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
2004bcc: 02 80 00 45 be 2004ce0 <readv+0x150> <== NEVER TAKEN
2004bd0: 80 a6 60 00 cmp %i1, 0
/*
* Argument validation on IO vector
*/
if ( !iov )
2004bd4: 02 80 00 24 be 2004c64 <readv+0xd4>
2004bd8: 80 a6 a0 00 cmp %i2, 0
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt <= 0 )
2004bdc: 04 80 00 22 ble 2004c64 <readv+0xd4>
2004be0: 80 a6 a4 00 cmp %i2, 0x400
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt > IOV_MAX )
2004be4: 14 80 00 20 bg 2004c64 <readv+0xd4> <== NEVER TAKEN
2004be8: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !iop->handlers->read_h )
2004bec: c2 04 a0 40 ld [ %l2 + 0x40 ], %g1
2004bf0: c2 00 60 08 ld [ %g1 + 8 ], %g1
2004bf4: 80 a0 60 00 cmp %g1, 0
2004bf8: 02 80 00 42 be 2004d00 <readv+0x170> <== NEVER TAKEN
2004bfc: 96 10 20 01 mov 1, %o3
rtems_set_errno_and_return_minus_one( ENOTSUP );
2004c00: 84 10 00 19 mov %i1, %g2
2004c04: 86 10 20 00 clr %g3
2004c08: 10 80 00 03 b 2004c14 <readv+0x84>
2004c0c: 88 10 20 00 clr %g4
* 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++ ) {
2004c10: 88 10 00 0c mov %o4, %g4
ssize_t old;
if ( !iov[v].iov_base )
2004c14: da 00 80 00 ld [ %g2 ], %o5
2004c18: 80 a3 60 00 cmp %o5, 0
2004c1c: 02 80 00 12 be 2004c64 <readv+0xd4>
2004c20: 86 00 e0 01 inc %g3
if ( iov[v].iov_len < 0 )
rtems_set_errno_and_return_minus_one( EINVAL );
/* check for wrap */
old = total;
total += iov[v].iov_len;
2004c24: da 00 a0 04 ld [ %g2 + 4 ], %o5
2004c28: 98 01 00 0d add %g4, %o5, %o4
if ( total < old )
2004c2c: 80 a3 00 04 cmp %o4, %g4
2004c30: 06 80 00 0d bl 2004c64 <readv+0xd4>
2004c34: 84 00 a0 08 add %g2, 8, %g2
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iov[v].iov_len )
2004c38: 80 a0 00 0d cmp %g0, %o5
2004c3c: 88 40 3f ff addx %g0, -1, %g4
* 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++ ) {
2004c40: 80 a6 80 03 cmp %i2, %g3
2004c44: 14 bf ff f3 bg 2004c10 <readv+0x80>
2004c48: 96 0a c0 04 and %o3, %g4, %o3
/*
* 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 ) {
2004c4c: 80 8a e0 ff btst 0xff, %o3
2004c50: a6 10 20 00 clr %l3
2004c54: 02 80 00 0c be 2004c84 <readv+0xf4>
2004c58: b0 10 20 00 clr %i0
if (bytes != iov[ v ].iov_len)
break;
}
return total;
}
2004c5c: 81 c7 e0 08 ret
2004c60: 81 e8 00 00 restore
/* check for wrap */
old = total;
total += iov[v].iov_len;
if ( total < old )
rtems_set_errno_and_return_minus_one( EINVAL );
2004c64: 40 00 32 7e call 201165c <__errno>
2004c68: b0 10 3f ff mov -1, %i0
2004c6c: 82 10 20 16 mov 0x16, %g1
2004c70: c2 22 00 00 st %g1, [ %o0 ]
2004c74: 81 c7 e0 08 ret
2004c78: 81 e8 00 00 restore
}
/*
* Now process the readv().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
2004c7c: c2 04 a0 40 ld [ %l2 + 0x40 ], %g1
2004c80: c2 00 60 08 ld [ %g1 + 8 ], %g1
bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len );
2004c84: d2 06 40 00 ld [ %i1 ], %o1
2004c88: d4 06 60 04 ld [ %i1 + 4 ], %o2
2004c8c: 9f c0 40 00 call %g1
2004c90: 90 10 00 12 mov %l2, %o0
if ( bytes < 0 )
2004c94: 80 a2 20 00 cmp %o0, 0
2004c98: 06 80 00 18 bl 2004cf8 <readv+0x168> <== NEVER TAKEN
2004c9c: 01 00 00 00 nop
return -1;
if ( bytes > 0 ) {
2004ca0: 02 80 00 07 be 2004cbc <readv+0x12c> <== NEVER TAKEN
2004ca4: a1 3a 20 1f sra %o0, 0x1f, %l0
iop->offset += bytes;
2004ca8: c4 1c a0 10 ldd [ %l2 + 0x10 ], %g2
2004cac: 86 80 c0 08 addcc %g3, %o0, %g3
total += bytes;
2004cb0: b0 06 00 08 add %i0, %o0, %i0
if ( bytes < 0 )
return -1;
if ( bytes > 0 ) {
iop->offset += bytes;
2004cb4: 84 40 80 10 addx %g2, %l0, %g2
2004cb8: c4 3c a0 10 std %g2, [ %l2 + 0x10 ]
total += bytes;
}
if (bytes != iov[ v ].iov_len)
2004cbc: c2 06 60 04 ld [ %i1 + 4 ], %g1
2004cc0: 80 a2 00 01 cmp %o0, %g1
2004cc4: 12 bf ff e6 bne 2004c5c <readv+0xcc> <== NEVER TAKEN
2004cc8: a6 04 e0 01 inc %l3
}
/*
* Now process the readv().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
2004ccc: 80 a6 80 13 cmp %i2, %l3
2004cd0: 14 bf ff eb bg 2004c7c <readv+0xec>
2004cd4: b2 06 60 08 add %i1, 8, %i1
if (bytes != iov[ v ].iov_len)
break;
}
return total;
}
2004cd8: 81 c7 e0 08 ret
2004cdc: 81 e8 00 00 restore
bool all_zeros;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open( iop );
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
2004ce0: 40 00 32 5f call 201165c <__errno> <== NOT EXECUTED
2004ce4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2004ce8: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED
2004cec: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2004cf0: 81 c7 e0 08 ret <== NOT EXECUTED
2004cf4: 81 e8 00 00 restore <== NOT EXECUTED
if (bytes != iov[ v ].iov_len)
break;
}
return total;
}
2004cf8: 81 c7 e0 08 ret <== NOT EXECUTED
2004cfc: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
if ( iovcnt > IOV_MAX )
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !iop->handlers->read_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
2004d00: 40 00 32 57 call 201165c <__errno> <== NOT EXECUTED
2004d04: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2004d08: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
2004d0c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2004d10: 81 c7 e0 08 ret <== NOT EXECUTED
2004d14: 81 e8 00 00 restore <== NOT EXECUTED
0201b2c4 <realloc>:
{
uintptr_t old_size;
char *new_area;
uintptr_t resize;
MSBUMP(realloc_calls, 1);
201b2c4: 9d e3 bf 98 save %sp, -104, %sp
201b2c8: 21 00 80 76 sethi %hi(0x201d800), %l0
201b2cc: a0 14 21 f0 or %l0, 0x1f0, %l0 ! 201d9f0 <rtems_malloc_statistics>
201b2d0: c4 04 20 10 ld [ %l0 + 0x10 ], %g2
/*
* Do not attempt to allocate memory if in a critical section or ISR.
*/
if (_System_state_Is_up(_System_state_Get())) {
201b2d4: 03 00 80 77 sethi %hi(0x201dc00), %g1
201b2d8: c2 00 61 50 ld [ %g1 + 0x150 ], %g1 ! 201dd50 <_System_state_Current>
{
uintptr_t old_size;
char *new_area;
uintptr_t resize;
MSBUMP(realloc_calls, 1);
201b2dc: 84 00 a0 01 inc %g2
/*
* Do not attempt to allocate memory if in a critical section or ISR.
*/
if (_System_state_Is_up(_System_state_Get())) {
201b2e0: 80 a0 60 03 cmp %g1, 3
201b2e4: 02 80 00 36 be 201b3bc <realloc+0xf8> <== ALWAYS TAKEN
201b2e8: c4 24 20 10 st %g2, [ %l0 + 0x10 ]
}
/*
* Continue with realloc().
*/
if ( !ptr )
201b2ec: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
201b2f0: 02 80 00 3e be 201b3e8 <realloc+0x124>
201b2f4: 80 a6 60 00 cmp %i1, 0
return malloc( size );
if ( !size ) {
201b2f8: 02 80 00 11 be 201b33c <realloc+0x78> <== NEVER TAKEN
201b2fc: 23 00 80 74 sethi %hi(0x201d000), %l1
free( ptr );
return (void *) 0;
}
if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
201b300: d0 04 60 50 ld [ %l1 + 0x50 ], %o0 ! 201d050 <RTEMS_Malloc_Heap>
201b304: 92 10 00 18 mov %i0, %o1
201b308: 40 00 00 75 call 201b4dc <_Protected_heap_Get_block_size>
201b30c: 94 07 bf fc add %fp, -4, %o2
201b310: 80 8a 20 ff btst 0xff, %o0
201b314: 02 80 00 0f be 201b350 <realloc+0x8c>
201b318: d0 04 60 50 ld [ %l1 + 0x50 ], %o0
#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 ) ) {
201b31c: 92 10 00 18 mov %i0, %o1
201b320: 40 00 00 7c call 201b510 <_Protected_heap_Resize_block>
201b324: 94 10 00 19 mov %i1, %o2
201b328: 80 8a 20 ff btst 0xff, %o0
201b32c: 02 80 00 0f be 201b368 <realloc+0xa4>
201b330: 01 00 00 00 nop
memcpy( new_area, ptr, (size < old_size) ? size : old_size );
free( ptr );
return new_area;
}
201b334: 81 c7 e0 08 ret
201b338: 81 e8 00 00 restore
*/
if ( !ptr )
return malloc( size );
if ( !size ) {
free( ptr );
201b33c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
201b340: 7f ff 9e 6b call 2002cec <free> <== NOT EXECUTED
201b344: b0 10 20 00 clr %i0 <== NOT EXECUTED
return (void *) 0;
201b348: 81 c7 e0 08 ret <== NOT EXECUTED
201b34c: 81 e8 00 00 restore <== NOT EXECUTED
}
if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
errno = EINVAL;
201b350: 7f ff d4 40 call 2010450 <__errno>
201b354: b0 10 20 00 clr %i0
201b358: 82 10 20 16 mov 0x16, %g1
201b35c: c2 22 00 00 st %g1, [ %o0 ]
return (void *) 0;
201b360: 81 c7 e0 08 ret
201b364: 81 e8 00 00 restore
* 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 );
201b368: 7f ff 9f 49 call 200308c <malloc>
201b36c: 90 10 00 19 mov %i1, %o0
MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */
201b370: c2 04 20 04 ld [ %l0 + 4 ], %g1
* 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 );
201b374: a2 10 00 08 mov %o0, %l1
MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */
201b378: 82 00 7f ff add %g1, -1, %g1
if ( !new_area ) {
201b37c: 80 a2 20 00 cmp %o0, 0
201b380: 02 80 00 18 be 201b3e0 <realloc+0x11c>
201b384: c2 24 20 04 st %g1, [ %l0 + 4 ]
return (void *) 0;
}
memcpy( new_area, ptr, (size < old_size) ? size : old_size );
201b388: c2 07 bf fc ld [ %fp + -4 ], %g1
201b38c: 80 a6 40 01 cmp %i1, %g1
201b390: 08 80 00 03 bleu 201b39c <realloc+0xd8> <== NEVER TAKEN
201b394: 94 10 00 19 mov %i1, %o2
201b398: 94 10 00 01 mov %g1, %o2
201b39c: 92 10 00 18 mov %i0, %o1
201b3a0: 7f ff d6 68 call 2010d40 <memcpy>
201b3a4: 90 10 00 11 mov %l1, %o0
free( ptr );
201b3a8: 90 10 00 18 mov %i0, %o0
201b3ac: 7f ff 9e 50 call 2002cec <free>
201b3b0: b0 10 00 11 mov %l1, %i0
return new_area;
201b3b4: 81 c7 e0 08 ret
201b3b8: 81 e8 00 00 restore
/*
* Do not attempt to allocate memory if in a critical section or ISR.
*/
if (_System_state_Is_up(_System_state_Get())) {
if (_Thread_Dispatch_disable_level > 0)
201b3bc: 03 00 80 76 sethi %hi(0x201d800), %g1
201b3c0: c2 00 63 b0 ld [ %g1 + 0x3b0 ], %g1 ! 201dbb0 <_Thread_Dispatch_disable_level>
201b3c4: 80 a0 60 00 cmp %g1, 0
201b3c8: 12 80 00 06 bne 201b3e0 <realloc+0x11c> <== NEVER TAKEN
201b3cc: 03 00 80 77 sethi %hi(0x201dc00), %g1
return (void *) 0;
if (_ISR_Nest_level > 0)
201b3d0: c2 00 60 4c ld [ %g1 + 0x4c ], %g1 ! 201dc4c <_ISR_Nest_level>
201b3d4: 80 a0 60 00 cmp %g1, 0
201b3d8: 02 bf ff c6 be 201b2f0 <realloc+0x2c> <== ALWAYS TAKEN
201b3dc: 80 a6 20 00 cmp %i0, 0
memcpy( new_area, ptr, (size < old_size) ? size : old_size );
free( ptr );
return new_area;
}
201b3e0: 81 c7 e0 08 ret
201b3e4: 91 e8 20 00 restore %g0, 0, %o0
/*
* Continue with realloc().
*/
if ( !ptr )
return malloc( size );
201b3e8: 7f ff 9f 29 call 200308c <malloc>
201b3ec: 90 10 00 19 mov %i1, %o0
201b3f0: 81 c7 e0 08 ret
201b3f4: 91 e8 00 08 restore %g0, %o0, %o0
0202e068 <rmdir>:
#include <rtems/seterr.h>
int rmdir(
const char *pathname
)
{
202e068: 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 );
202e06c: 7f ff 69 a9 call 2008710 <rtems_filesystem_dirname>
202e070: 90 10 00 18 mov %i0, %o0
if ( parentpathlen == 0 )
202e074: 80 a2 20 00 cmp %o0, 0
202e078: 12 80 00 6a bne 202e220 <rmdir+0x1b8>
202e07c: a2 07 bf e8 add %fp, -24, %l1
rtems_filesystem_get_start_loc( pathname, &i, &parentloc );
202e080: 90 10 00 18 mov %i0, %o0
202e084: 92 07 bf fc add %fp, -4, %o1
202e088: 94 10 00 11 mov %l1, %o2
202e08c: 7f ff 71 17 call 200a4e8 <rtems_filesystem_get_start_loc>
202e090: a0 10 20 00 clr %l0
202e094: a4 10 20 00 clr %l2
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
202e098: c2 07 bf e8 ld [ %fp + -24 ], %g1
name = pathname + parentpathlen;
202e09c: b0 06 00 10 add %i0, %l0, %i0
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
202e0a0: c2 27 bf d4 st %g1, [ %fp + -44 ]
202e0a4: c2 07 bf ec ld [ %fp + -20 ], %g1
name = pathname + parentpathlen;
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
202e0a8: 90 10 00 18 mov %i0, %o0
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
202e0ac: c2 27 bf d8 st %g1, [ %fp + -40 ]
202e0b0: c2 07 bf f0 ld [ %fp + -16 ], %g1
name = pathname + parentpathlen;
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
202e0b4: a0 07 bf d4 add %fp, -44, %l0
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
202e0b8: c2 27 bf dc st %g1, [ %fp + -36 ]
202e0bc: c2 07 bf f4 ld [ %fp + -12 ], %g1
202e0c0: c2 27 bf e0 st %g1, [ %fp + -32 ]
202e0c4: c2 07 bf f8 ld [ %fp + -8 ], %g1
name = pathname + parentpathlen;
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
202e0c8: 40 00 86 87 call 204fae4 <strlen>
202e0cc: c2 27 bf e4 st %g1, [ %fp + -28 ]
202e0d0: 92 10 00 08 mov %o0, %o1
202e0d4: 7f ff 69 74 call 20086a4 <rtems_filesystem_prefix_separators>
202e0d8: 90 10 00 18 mov %i0, %o0
202e0dc: b0 06 00 08 add %i0, %o0, %i0
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
202e0e0: 40 00 86 81 call 204fae4 <strlen>
202e0e4: 90 10 00 18 mov %i0, %o0
202e0e8: 94 10 20 00 clr %o2
202e0ec: 92 10 00 08 mov %o0, %o1
202e0f0: 96 10 00 10 mov %l0, %o3
202e0f4: 90 10 00 18 mov %i0, %o0
202e0f8: 7f ff 69 99 call 200875c <rtems_filesystem_evaluate_relative_path>
202e0fc: 98 10 20 00 clr %o4
0, &loc, false );
if ( result != 0 ) {
202e100: 80 a2 20 00 cmp %o0, 0
202e104: 12 80 00 53 bne 202e250 <rmdir+0x1e8>
202e108: c4 07 bf e0 ld [ %fp + -32 ], %g2
/*
* Verify you can remove this node as a directory.
*/
if ( !loc.ops->node_type_h ){
202e10c: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1
202e110: 80 a0 60 00 cmp %g1, 0
202e114: 22 80 00 7a be,a 202e2fc <rmdir+0x294> <== NEVER TAKEN
202e118: 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 ){
202e11c: 9f c0 40 00 call %g1
202e120: 90 10 00 10 mov %l0, %o0
202e124: 80 a2 20 01 cmp %o0, 1
202e128: 12 80 00 22 bne 202e1b0 <rmdir+0x148>
202e12c: c2 07 bf dc ld [ %fp + -36 ], %g1
/*
* Use the filesystems rmnod to remove the node.
*/
if ( !loc.handlers->rmnod_h ){
202e130: c2 00 60 34 ld [ %g1 + 0x34 ], %g1
202e134: 80 a0 60 00 cmp %g1, 0
202e138: 02 80 00 55 be 202e28c <rmdir+0x224> <== NEVER TAKEN
202e13c: 90 10 00 11 mov %l1, %o0
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.handlers->rmnod_h)( &parentloc, &loc );
202e140: 9f c0 40 00 call %g1
202e144: 92 10 00 10 mov %l0, %o1
rtems_filesystem_freenode( &loc );
202e148: c2 07 bf e0 ld [ %fp + -32 ], %g1
202e14c: 80 a0 60 00 cmp %g1, 0
202e150: 02 80 00 08 be 202e170 <rmdir+0x108> <== NEVER TAKEN
202e154: b0 10 00 08 mov %o0, %i0
202e158: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202e15c: 80 a0 60 00 cmp %g1, 0
202e160: 02 80 00 05 be 202e174 <rmdir+0x10c> <== NEVER TAKEN
202e164: 80 8c a0 ff btst 0xff, %l2
202e168: 9f c0 40 00 call %g1
202e16c: 90 10 00 10 mov %l0, %o0
if ( free_parentloc )
202e170: 80 8c a0 ff btst 0xff, %l2
202e174: 02 80 00 0b be 202e1a0 <rmdir+0x138>
202e178: c2 07 bf f4 ld [ %fp + -12 ], %g1
rtems_filesystem_freenode( &parentloc );
202e17c: 80 a0 60 00 cmp %g1, 0
202e180: 02 80 00 5d be 202e2f4 <rmdir+0x28c> <== NEVER TAKEN
202e184: 01 00 00 00 nop
202e188: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202e18c: 80 a0 60 00 cmp %g1, 0
202e190: 02 80 00 59 be 202e2f4 <rmdir+0x28c> <== NEVER TAKEN
202e194: 01 00 00 00 nop
202e198: 9f c0 40 00 call %g1
202e19c: 90 10 00 11 mov %l1, %o0
202e1a0: 81 c7 e0 08 ret
202e1a4: 81 e8 00 00 restore
return result;
}
202e1a8: 81 c7 e0 08 ret <== NOT EXECUTED
202e1ac: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ){
rtems_filesystem_freenode( &loc );
202e1b0: c2 07 bf e0 ld [ %fp + -32 ], %g1
202e1b4: 80 a0 60 00 cmp %g1, 0
202e1b8: 02 80 00 09 be 202e1dc <rmdir+0x174> <== NEVER TAKEN
202e1bc: 80 8c a0 ff btst 0xff, %l2
202e1c0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202e1c4: 80 a0 60 00 cmp %g1, 0
202e1c8: 02 80 00 05 be 202e1dc <rmdir+0x174> <== NEVER TAKEN
202e1cc: 80 8c a0 ff btst 0xff, %l2
202e1d0: 9f c0 40 00 call %g1
202e1d4: 90 10 00 10 mov %l0, %o0
if ( free_parentloc )
202e1d8: 80 8c a0 ff btst 0xff, %l2
202e1dc: 02 80 00 0b be 202e208 <rmdir+0x1a0> <== NEVER TAKEN
202e1e0: c2 07 bf f4 ld [ %fp + -12 ], %g1
rtems_filesystem_freenode( &parentloc );
202e1e4: 80 a0 60 00 cmp %g1, 0
202e1e8: 02 80 00 08 be 202e208 <rmdir+0x1a0> <== NEVER TAKEN
202e1ec: 01 00 00 00 nop
202e1f0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202e1f4: 80 a0 60 00 cmp %g1, 0
202e1f8: 02 80 00 04 be 202e208 <rmdir+0x1a0> <== NEVER TAKEN
202e1fc: 01 00 00 00 nop
202e200: 9f c0 40 00 call %g1
202e204: 90 10 00 11 mov %l1, %o0
rtems_set_errno_and_return_minus_one( ENOTDIR );
202e208: 40 00 6a 8f call 2048c44 <__errno>
202e20c: b0 10 3f ff mov -1, %i0
202e210: 82 10 20 14 mov 0x14, %g1
202e214: c2 22 00 00 st %g1, [ %o0 ]
202e218: 81 c7 e0 08 ret
202e21c: 81 e8 00 00 restore
parentpathlen = rtems_filesystem_dirname ( pathname );
if ( parentpathlen == 0 )
rtems_filesystem_get_start_loc( pathname, &i, &parentloc );
else {
result = rtems_filesystem_evaluate_path(pathname, parentpathlen,
202e220: a0 10 00 08 mov %o0, %l0
202e224: 90 10 00 18 mov %i0, %o0
202e228: 92 10 00 10 mov %l0, %o1
202e22c: 94 10 20 02 mov 2, %o2
202e230: 96 10 00 11 mov %l1, %o3
202e234: 7f ff 69 8b call 2008860 <rtems_filesystem_evaluate_path>
202e238: 98 10 20 00 clr %o4
RTEMS_LIBIO_PERMS_WRITE,
&parentloc,
false );
if ( result != 0 )
202e23c: 80 a2 20 00 cmp %o0, 0
202e240: 12 bf ff da bne 202e1a8 <rmdir+0x140> <== NEVER TAKEN
202e244: a4 10 20 01 mov 1, %l2
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
202e248: 10 bf ff 95 b 202e09c <rmdir+0x34>
202e24c: c2 07 bf e8 ld [ %fp + -24 ], %g1
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
0, &loc, false );
if ( result != 0 ) {
if ( free_parentloc )
202e250: 80 8c a0 ff btst 0xff, %l2
202e254: 02 bf ff d3 be 202e1a0 <rmdir+0x138> <== ALWAYS TAKEN
202e258: b0 10 3f ff mov -1, %i0
rtems_filesystem_freenode( &parentloc );
202e25c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
202e260: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202e264: 02 80 00 24 be 202e2f4 <rmdir+0x28c> <== NOT EXECUTED
202e268: 01 00 00 00 nop <== NOT EXECUTED
202e26c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
202e270: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202e274: 02 bf ff cb be 202e1a0 <rmdir+0x138> <== NOT EXECUTED
202e278: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
202e27c: 9f c0 40 00 call %g1 <== NOT EXECUTED
202e280: 01 00 00 00 nop <== NOT EXECUTED
202e284: 81 c7 e0 08 ret <== NOT EXECUTED
202e288: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Use the filesystems rmnod to remove the node.
*/
if ( !loc.handlers->rmnod_h ){
rtems_filesystem_freenode( &loc );
202e28c: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
202e290: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202e294: 02 80 00 09 be 202e2b8 <rmdir+0x250> <== NOT EXECUTED
202e298: 80 8c a0 ff btst 0xff, %l2 <== NOT EXECUTED
202e29c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
202e2a0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202e2a4: 02 80 00 05 be 202e2b8 <rmdir+0x250> <== NOT EXECUTED
202e2a8: 80 8c a0 ff btst 0xff, %l2 <== NOT EXECUTED
202e2ac: 9f c0 40 00 call %g1 <== NOT EXECUTED
202e2b0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if ( free_parentloc )
202e2b4: 80 8c a0 ff btst 0xff, %l2 <== NOT EXECUTED
202e2b8: 02 80 00 0b be 202e2e4 <rmdir+0x27c> <== NOT EXECUTED
202e2bc: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
202e2c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202e2c4: 02 80 00 08 be 202e2e4 <rmdir+0x27c> <== NOT EXECUTED
202e2c8: 01 00 00 00 nop <== NOT EXECUTED
202e2cc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
202e2d0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202e2d4: 02 80 00 04 be 202e2e4 <rmdir+0x27c> <== NOT EXECUTED
202e2d8: 01 00 00 00 nop <== NOT EXECUTED
202e2dc: 9f c0 40 00 call %g1 <== NOT EXECUTED
202e2e0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
202e2e4: 40 00 6a 58 call 2048c44 <__errno> <== NOT EXECUTED
202e2e8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202e2ec: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
202e2f0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202e2f4: 81 c7 e0 08 ret <== NOT EXECUTED
202e2f8: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Verify you can remove this node as a directory.
*/
if ( !loc.ops->node_type_h ){
rtems_filesystem_freenode( &loc );
202e2fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202e300: 12 bf ff eb bne 202e2ac <rmdir+0x244> <== NOT EXECUTED
202e304: 80 8c a0 ff btst 0xff, %l2 <== NOT EXECUTED
202e308: 30 bf ff ec b,a 202e2b8 <rmdir+0x250> <== NOT EXECUTED
0200fa24 <rtems_assoc_local_by_remote_bitfield>:
uint32_t rtems_assoc_local_by_remote_bitfield(
const rtems_assoc_t *ap,
uint32_t remote_value
)
{
200fa24: 9d e3 bf a0 save %sp, -96, %sp
200fa28: a4 10 20 00 clr %l2
200fa2c: a0 10 00 18 mov %i0, %l0
200fa30: a2 10 20 01 mov 1, %l1
200fa34: 10 80 00 05 b 200fa48 <rtems_assoc_local_by_remote_bitfield+0x24>
200fa38: b0 10 20 00 clr %i0
uint32_t b;
uint32_t local_value = 0;
for (b = 1; b; b <<= 1) {
200fa3c: 80 a4 a0 20 cmp %l2, 0x20
200fa40: 02 80 00 0d be 200fa74 <rtems_assoc_local_by_remote_bitfield+0x50>
200fa44: a3 2c 60 01 sll %l1, 1, %l1
if (b & remote_value)
200fa48: 80 8c 40 19 btst %l1, %i1
200fa4c: 22 bf ff fc be,a 200fa3c <rtems_assoc_local_by_remote_bitfield+0x18>
200fa50: a4 04 a0 01 inc %l2
local_value |= rtems_assoc_local_by_remote(ap, b);
200fa54: 92 10 00 11 mov %l1, %o1
200fa58: 40 00 00 09 call 200fa7c <rtems_assoc_local_by_remote>
200fa5c: 90 10 00 10 mov %l0, %o0
)
{
uint32_t b;
uint32_t local_value = 0;
for (b = 1; b; b <<= 1) {
200fa60: a4 04 a0 01 inc %l2
if (b & remote_value)
local_value |= rtems_assoc_local_by_remote(ap, b);
200fa64: b0 16 00 08 or %i0, %o0, %i0
)
{
uint32_t b;
uint32_t local_value = 0;
for (b = 1; b; b <<= 1) {
200fa68: 80 a4 a0 20 cmp %l2, 0x20
200fa6c: 12 bf ff f7 bne 200fa48 <rtems_assoc_local_by_remote_bitfield+0x24><== ALWAYS TAKEN
200fa70: a3 2c 60 01 sll %l1, 1, %l1
if (b & remote_value)
local_value |= rtems_assoc_local_by_remote(ap, b);
}
return local_value;
}
200fa74: 81 c7 e0 08 ret
200fa78: 81 e8 00 00 restore
02015af4 <rtems_assoc_name_bad>:
uint32_t bad_value
#else
uint32_t bad_value __attribute((unused))
#endif
)
{
2015af4: 11 00 80 9b sethi %hi(0x2026c00), %o0 <== NOT EXECUTED
sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value);
#else
static char bad_buffer[40] = "<assocnamebad.c: : BAD NAME>";
#endif
return bad_buffer;
}
2015af8: 81 c3 e0 08 retl <== NOT EXECUTED
2015afc: 90 12 20 28 or %o0, 0x28, %o0 ! 2026c28 <bad_buffer.4916> <== NOT EXECUTED
02012508 <rtems_assoc_name_by_local>:
const char *rtems_assoc_name_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
2012508: 9d e3 bf a0 save %sp, -96, %sp
const rtems_assoc_t *nap;
nap = rtems_assoc_ptr_by_local(ap, local_value);
201250c: 90 10 00 18 mov %i0, %o0
2012510: 40 00 00 0b call 201253c <rtems_assoc_ptr_by_local>
2012514: 92 10 00 19 mov %i1, %o1
if (nap)
2012518: 80 a2 20 00 cmp %o0, 0
201251c: 02 80 00 05 be 2012530 <rtems_assoc_name_by_local+0x28> <== NEVER TAKEN
2012520: 01 00 00 00 nop
return nap->name;
return rtems_assoc_name_bad(local_value);
}
2012524: f0 02 00 00 ld [ %o0 ], %i0
2012528: 81 c7 e0 08 ret
201252c: 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);
2012530: 40 00 0d 71 call 2015af4 <rtems_assoc_name_bad> <== NOT EXECUTED
2012534: 91 e8 00 19 restore %g0, %i1, %o0 <== NOT EXECUTED
020103a0 <rtems_assoc_ptr_by_local>:
const rtems_assoc_t *rtems_assoc_ptr_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
20103a0: 9d e3 bf a0 save %sp, -96, %sp
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
20103a4: d0 06 00 00 ld [ %i0 ], %o0
20103a8: 80 a2 20 00 cmp %o0, 0
20103ac: 02 80 00 1d be 2010420 <rtems_assoc_ptr_by_local+0x80> <== NEVER TAKEN
20103b0: 13 00 80 72 sethi %hi(0x201c800), %o1
20103b4: 40 00 03 8e call 20111ec <strcmp>
20103b8: 92 12 60 c8 or %o1, 0xc8, %o1 ! 201c8c8 <errno_assoc+0x88>
20103bc: 80 a2 20 00 cmp %o0, 0
20103c0: 02 80 00 11 be 2010404 <rtems_assoc_ptr_by_local+0x64> <== NEVER TAKEN
20103c4: 84 10 20 00 clr %g2
default_ap = ap++;
for ( ; ap->name; ap++)
if (ap->local_value == local_value)
20103c8: c2 06 20 04 ld [ %i0 + 4 ], %g1
20103cc: 80 a0 40 19 cmp %g1, %i1
20103d0: 32 80 00 07 bne,a 20103ec <rtems_assoc_ptr_by_local+0x4c>
20103d4: b0 06 20 0c add %i0, 0xc, %i0
20103d8: 30 80 00 14 b,a 2010428 <rtems_assoc_ptr_by_local+0x88>
20103dc: 80 a0 40 19 cmp %g1, %i1
20103e0: 02 80 00 12 be 2010428 <rtems_assoc_ptr_by_local+0x88>
20103e4: 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++)
20103e8: b0 06 20 0c add %i0, 0xc, %i0
20103ec: c2 06 00 00 ld [ %i0 ], %g1
20103f0: 80 a0 60 00 cmp %g1, 0
20103f4: 32 bf ff fa bne,a 20103dc <rtems_assoc_ptr_by_local+0x3c>
20103f8: c2 06 20 04 ld [ %i0 + 4 ], %g1
if (ap->local_value == local_value)
return ap;
return default_ap;
}
20103fc: 81 c7 e0 08 ret
2010400: 91 e8 00 02 restore %g0, %g2, %o0
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
default_ap = ap++;
for ( ; ap->name; ap++)
2010404: c4 06 20 0c ld [ %i0 + 0xc ], %g2 <== NOT EXECUTED
2010408: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
201040c: 02 80 00 07 be 2010428 <rtems_assoc_ptr_by_local+0x88> <== NOT EXECUTED
2010410: 82 06 20 0c add %i0, 0xc, %g1 <== NOT EXECUTED
2010414: 84 10 00 18 mov %i0, %g2 <== NOT EXECUTED
2010418: 10 bf ff ec b 20103c8 <rtems_assoc_ptr_by_local+0x28> <== NOT EXECUTED
201041c: b0 10 00 01 mov %g1, %i0 <== NOT EXECUTED
uint32_t local_value
)
{
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
2010420: 81 c7 e0 08 ret <== NOT EXECUTED
2010424: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
2010428: 81 c7 e0 08 ret
201042c: 81 e8 00 00 restore
0200faa4 <rtems_assoc_ptr_by_remote>:
const rtems_assoc_t *rtems_assoc_ptr_by_remote(
const rtems_assoc_t *ap,
uint32_t remote_value
)
{
200faa4: 9d e3 bf a0 save %sp, -96, %sp
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
200faa8: d0 06 00 00 ld [ %i0 ], %o0
200faac: 80 a2 20 00 cmp %o0, 0
200fab0: 02 80 00 1d be 200fb24 <rtems_assoc_ptr_by_remote+0x80> <== NEVER TAKEN
200fab4: 13 00 80 71 sethi %hi(0x201c400), %o1
200fab8: 40 00 05 cd call 20111ec <strcmp>
200fabc: 92 12 63 a0 or %o1, 0x3a0, %o1 ! 201c7a0 <__FUNCTION__.6077+0x28>
200fac0: 80 a2 20 00 cmp %o0, 0
200fac4: 02 80 00 11 be 200fb08 <rtems_assoc_ptr_by_remote+0x64> <== NEVER TAKEN
200fac8: 84 10 20 00 clr %g2
default_ap = ap++;
for ( ; ap->name; ap++)
if (ap->remote_value == remote_value)
200facc: c2 06 20 08 ld [ %i0 + 8 ], %g1
200fad0: 80 a0 40 19 cmp %g1, %i1
200fad4: 32 80 00 07 bne,a 200faf0 <rtems_assoc_ptr_by_remote+0x4c>
200fad8: b0 06 20 0c add %i0, 0xc, %i0
200fadc: 30 80 00 14 b,a 200fb2c <rtems_assoc_ptr_by_remote+0x88>
200fae0: 80 a0 40 19 cmp %g1, %i1
200fae4: 02 80 00 12 be 200fb2c <rtems_assoc_ptr_by_remote+0x88>
200fae8: 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++)
200faec: b0 06 20 0c add %i0, 0xc, %i0
200faf0: c2 06 00 00 ld [ %i0 ], %g1
200faf4: 80 a0 60 00 cmp %g1, 0
200faf8: 32 bf ff fa bne,a 200fae0 <rtems_assoc_ptr_by_remote+0x3c>
200fafc: c2 06 20 08 ld [ %i0 + 8 ], %g1
if (ap->remote_value == remote_value)
return ap;
return default_ap;
}
200fb00: 81 c7 e0 08 ret
200fb04: 91 e8 00 02 restore %g0, %g2, %o0
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
default_ap = ap++;
for ( ; ap->name; ap++)
200fb08: c4 06 20 0c ld [ %i0 + 0xc ], %g2 <== NOT EXECUTED
200fb0c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
200fb10: 02 80 00 07 be 200fb2c <rtems_assoc_ptr_by_remote+0x88> <== NOT EXECUTED
200fb14: 82 06 20 0c add %i0, 0xc, %g1 <== NOT EXECUTED
200fb18: 84 10 00 18 mov %i0, %g2 <== NOT EXECUTED
200fb1c: 10 bf ff ec b 200facc <rtems_assoc_ptr_by_remote+0x28> <== NOT EXECUTED
200fb20: b0 10 00 01 mov %g1, %i0 <== NOT EXECUTED
uint32_t remote_value
)
{
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
200fb24: 81 c7 e0 08 ret <== NOT EXECUTED
200fb28: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
200fb2c: 81 c7 e0 08 ret
200fb30: 81 e8 00 00 restore
02010378 <rtems_assoc_remote_by_local>:
uint32_t rtems_assoc_remote_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
2010378: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
const rtems_assoc_t *nap;
nap = rtems_assoc_ptr_by_local(ap, local_value);
201037c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2010380: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2010384: 40 00 00 07 call 20103a0 <rtems_assoc_ptr_by_local> <== NOT EXECUTED
2010388: b0 10 20 00 clr %i0 <== NOT EXECUTED
if (nap)
201038c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2010390: 32 80 00 02 bne,a 2010398 <rtems_assoc_remote_by_local+0x20><== NOT EXECUTED
2010394: f0 02 20 08 ld [ %o0 + 8 ], %i0 <== NOT EXECUTED
return nap->remote_value;
return 0;
}
2010398: 81 c7 e0 08 ret <== NOT EXECUTED
201039c: 81 e8 00 00 restore <== NOT EXECUTED
0200d0d0 <rtems_barrier_create>:
rtems_name name,
rtems_attribute attribute_set,
uint32_t maximum_waiters,
rtems_id *id
)
{
200d0d0: 9d e3 bf 98 save %sp, -104, %sp
Barrier_Control *the_barrier;
CORE_barrier_Attributes the_attributes;
if ( !rtems_is_name_valid( name ) )
200d0d4: a0 96 20 00 orcc %i0, 0, %l0
200d0d8: 02 80 00 23 be 200d164 <rtems_barrier_create+0x94>
200d0dc: b0 10 20 03 mov 3, %i0
return RTEMS_INVALID_NAME;
if ( !id )
200d0e0: 80 a6 e0 00 cmp %i3, 0
200d0e4: 02 80 00 20 be 200d164 <rtems_barrier_create+0x94>
200d0e8: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
/* Initialize core barrier attributes */
if ( _Attributes_Is_barrier_automatic( attribute_set ) ) {
200d0ec: 80 8e 60 10 btst 0x10, %i1
200d0f0: 02 80 00 1f be 200d16c <rtems_barrier_create+0x9c>
200d0f4: 80 a6 a0 00 cmp %i2, 0
the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;
if ( maximum_waiters == 0 )
200d0f8: 02 80 00 1b be 200d164 <rtems_barrier_create+0x94>
200d0fc: b0 10 20 0a mov 0xa, %i0
200d100: 03 00 80 76 sethi %hi(0x201d800), %g1
200d104: c4 00 63 b0 ld [ %g1 + 0x3b0 ], %g2 ! 201dbb0 <_Thread_Dispatch_disable_level>
if ( !id )
return RTEMS_INVALID_ADDRESS;
/* Initialize core barrier attributes */
if ( _Attributes_Is_barrier_automatic( attribute_set ) ) {
the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;
200d108: c0 27 bf f8 clr [ %fp + -8 ]
if ( maximum_waiters == 0 )
return RTEMS_INVALID_NUMBER;
} else
the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE;
the_attributes.maximum_count = maximum_waiters;
200d10c: f4 27 bf fc st %i2, [ %fp + -4 ]
200d110: 84 00 a0 01 inc %g2
200d114: c4 20 63 b0 st %g2, [ %g1 + 0x3b0 ]
* This function allocates a barrier control block from
* the inactive chain of free barrier control blocks.
*/
RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Allocate( void )
{
return (Barrier_Control *) _Objects_Allocate( &_Barrier_Information );
200d118: 25 00 80 77 sethi %hi(0x201dc00), %l2
200d11c: 7f ff eb 03 call 2007d28 <_Objects_Allocate>
200d120: 90 14 a2 2c or %l2, 0x22c, %o0 ! 201de2c <_Barrier_Information>
_Thread_Disable_dispatch(); /* prevents deletion */
the_barrier = _Barrier_Allocate();
if ( !the_barrier ) {
200d124: a2 92 20 00 orcc %o0, 0, %l1
200d128: 02 80 00 1e be 200d1a0 <rtems_barrier_create+0xd0> <== NEVER TAKEN
200d12c: 90 04 60 14 add %l1, 0x14, %o0
return RTEMS_TOO_MANY;
}
the_barrier->attribute_set = attribute_set;
_CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes );
200d130: 92 07 bf f8 add %fp, -8, %o1
200d134: 40 00 01 54 call 200d684 <_CORE_barrier_Initialize>
200d138: f2 24 60 10 st %i1, [ %l1 + 0x10 ]
200d13c: c2 14 60 0a lduh [ %l1 + 0xa ], %g1
200d140: c6 04 60 08 ld [ %l1 + 8 ], %g3
200d144: a4 14 a2 2c or %l2, 0x22c, %l2
200d148: c4 04 a0 1c ld [ %l2 + 0x1c ], %g2
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
200d14c: e0 24 60 0c st %l0, [ %l1 + 0xc ]
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
200d150: 83 28 60 02 sll %g1, 2, %g1
&_Barrier_Information,
&the_barrier->Object,
(Objects_Name) name
);
*id = the_barrier->Object.id;
200d154: c6 26 c0 00 st %g3, [ %i3 ]
200d158: e2 20 80 01 st %l1, [ %g2 + %g1 ]
_Thread_Enable_dispatch();
200d15c: 7f ff ee e7 call 2008cf8 <_Thread_Enable_dispatch>
200d160: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
}
200d164: 81 c7 e0 08 ret
200d168: 81 e8 00 00 restore
if ( _Attributes_Is_barrier_automatic( attribute_set ) ) {
the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;
if ( maximum_waiters == 0 )
return RTEMS_INVALID_NUMBER;
} else
the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE;
200d16c: 82 10 20 01 mov 1, %g1
200d170: c2 27 bf f8 st %g1, [ %fp + -8 ]
200d174: 03 00 80 76 sethi %hi(0x201d800), %g1
200d178: c4 00 63 b0 ld [ %g1 + 0x3b0 ], %g2 ! 201dbb0 <_Thread_Dispatch_disable_level>
the_attributes.maximum_count = maximum_waiters;
200d17c: f4 27 bf fc st %i2, [ %fp + -4 ]
200d180: 84 00 a0 01 inc %g2
200d184: c4 20 63 b0 st %g2, [ %g1 + 0x3b0 ]
200d188: 25 00 80 77 sethi %hi(0x201dc00), %l2
200d18c: 7f ff ea e7 call 2007d28 <_Objects_Allocate>
200d190: 90 14 a2 2c or %l2, 0x22c, %o0 ! 201de2c <_Barrier_Information>
_Thread_Disable_dispatch(); /* prevents deletion */
the_barrier = _Barrier_Allocate();
if ( !the_barrier ) {
200d194: a2 92 20 00 orcc %o0, 0, %l1
200d198: 12 bf ff e6 bne 200d130 <rtems_barrier_create+0x60>
200d19c: 90 04 60 14 add %l1, 0x14, %o0
_Thread_Enable_dispatch();
200d1a0: 7f ff ee d6 call 2008cf8 <_Thread_Enable_dispatch>
200d1a4: b0 10 20 05 mov 5, %i0
return RTEMS_TOO_MANY;
200d1a8: 81 c7 e0 08 ret
200d1ac: 81 e8 00 00 restore
0200c510 <rtems_bdbuf_add_to_modified_list_after_access>:
}
}
static void
rtems_bdbuf_add_to_modified_list_after_access (rtems_bdbuf_buffer *bd)
{
200c510: 9d e3 bf a0 save %sp, -96, %sp
if (bdbuf_cache.sync_active && bdbuf_cache.sync_device == bd->dev)
200c514: 21 00 80 85 sethi %hi(0x2021400), %l0
200c518: a0 14 23 c0 or %l0, 0x3c0, %l0 ! 20217c0 <bdbuf_cache>
200c51c: c2 0c 20 30 ldub [ %l0 + 0x30 ], %g1
200c520: 80 a0 60 00 cmp %g1, 0
200c524: 02 80 00 07 be 200c540 <rtems_bdbuf_add_to_modified_list_after_access+0x30><== ALWAYS TAKEN
200c528: 01 00 00 00 nop
200c52c: c4 1c 20 38 ldd [ %l0 + 0x38 ], %g2 <== NOT EXECUTED
200c530: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 <== NOT EXECUTED
200c534: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
200c538: 22 80 00 2a be,a 200c5e0 <rtems_bdbuf_add_to_modified_list_after_access+0xd0><== NOT EXECUTED
200c53c: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== 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)
200c540: 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
200c544: 80 a0 60 03 cmp %g1, 3
200c548: 02 80 00 18 be 200c5a8 <rtems_bdbuf_add_to_modified_list_after_access+0x98>
200c54c: 03 00 80 7e sethi %hi(0x201f800), %g1
|| bd->state == RTEMS_BDBUF_STATE_ACCESS_EMPTY)
200c550: 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
200c554: 80 a0 60 05 cmp %g1, 5
200c558: 02 80 00 13 be 200c5a4 <rtems_bdbuf_add_to_modified_list_after_access+0x94>
200c55c: 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 );
200c560: 11 00 80 86 sethi %hi(0x2021800), %o0
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200c564: c2 26 20 28 st %g1, [ %i0 + 0x28 ]
200c568: 90 12 20 10 or %o0, 0x10, %o0
200c56c: 7f ff f0 b4 call 200883c <_Chain_Append>
200c570: 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)
200c574: c2 06 20 2c ld [ %i0 + 0x2c ], %g1
200c578: 80 a0 60 00 cmp %g1, 0
200c57c: 12 80 00 17 bne 200c5d8 <rtems_bdbuf_add_to_modified_list_after_access+0xc8>
200c580: 31 00 80 86 sethi %hi(0x2021800), %i0
}
static bool
rtems_bdbuf_has_buffer_waiters (void)
{
return bdbuf_cache.buffer_waiters.count;
200c584: c2 04 20 78 ld [ %l0 + 0x78 ], %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 ())
200c588: 80 a0 60 00 cmp %g1, 0
200c58c: 12 80 00 04 bne 200c59c <rtems_bdbuf_add_to_modified_list_after_access+0x8c>
200c590: 01 00 00 00 nop
200c594: 81 c7 e0 08 ret
200c598: 81 e8 00 00 restore
rtems_bdbuf_wake_swapper ();
200c59c: 7f ff ff d0 call 200c4dc <rtems_bdbuf_wake_swapper>
200c5a0: 81 e8 00 00 restore
* 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)
bd->hold_timer = bdbuf_config.swap_block_hold;
200c5a4: 03 00 80 7e sethi %hi(0x201f800), %g1
200c5a8: c2 00 62 4c ld [ %g1 + 0x24c ], %g1 ! 201fa4c <rtems_bdbuf_configuration+0x10>
200c5ac: 11 00 80 86 sethi %hi(0x2021800), %o0
200c5b0: 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;
200c5b4: 82 10 20 07 mov 7, %g1
200c5b8: 90 12 20 10 or %o0, 0x10, %o0
200c5bc: c2 26 20 28 st %g1, [ %i0 + 0x28 ]
200c5c0: 7f ff f0 9f call 200883c <_Chain_Append>
200c5c4: 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)
200c5c8: c2 06 20 2c ld [ %i0 + 0x2c ], %g1
200c5cc: 80 a0 60 00 cmp %g1, 0
200c5d0: 02 bf ff ed be 200c584 <rtems_bdbuf_add_to_modified_list_after_access+0x74>
200c5d4: 31 00 80 86 sethi %hi(0x2021800), %i0
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
200c5d8: 7f ff fe d8 call 200c138 <rtems_bdbuf_wake>
200c5dc: 91 ee 20 28 restore %i0, 0x28, %o0
}
static void
rtems_bdbuf_add_to_modified_list_after_access (rtems_bdbuf_buffer *bd)
{
if (bdbuf_cache.sync_active && bdbuf_cache.sync_device == bd->dev)
200c5e0: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
200c5e4: 12 bf ff d7 bne 200c540 <rtems_bdbuf_add_to_modified_list_after_access+0x30><== NOT EXECUTED
200c5e8: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_bdbuf_unlock_cache ();
200c5ec: 7f ff ff 59 call 200c350 <rtems_bdbuf_unlock_cache> <== NOT EXECUTED
200c5f0: 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);
200c5f4: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
200c5f8: 13 10 80 00 sethi %hi(0x42000000), %o1 <== NOT EXECUTED
200c5fc: 7f ff fe ba call 200c0e4 <rtems_bdbuf_lock> <== NOT EXECUTED
200c600: 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 ();
200c604: 7f ff ff 5f call 200c380 <rtems_bdbuf_unlock_sync> <== NOT EXECUTED
200c608: 01 00 00 00 nop <== NOT EXECUTED
rtems_bdbuf_lock_cache ();
200c60c: 7f ff fe c3 call 200c118 <rtems_bdbuf_lock_cache> <== NOT EXECUTED
200c610: 01 00 00 00 nop <== NOT EXECUTED
200c614: 30 bf ff cb b,a 200c540 <rtems_bdbuf_add_to_modified_list_after_access+0x30><== NOT EXECUTED
0200c798 <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)
{
200c798: 9d e3 bf a0 save %sp, -96, %sp
rtems_mode prev_mode;
/*
* Indicate we are waiting.
*/
++waiters->count;
200c79c: c2 06 00 00 ld [ %i0 ], %g1
200c7a0: 82 00 60 01 inc %g1
200c7a4: 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 ();
200c7a8: 7f ff ff de call 200c720 <rtems_bdbuf_disable_preemption>
200c7ac: 01 00 00 00 nop
/*
* Unlock the cache, wait, and lock the cache when we return.
*/
rtems_bdbuf_unlock_cache ();
200c7b0: 7f ff fe e8 call 200c350 <rtems_bdbuf_unlock_cache>
200c7b4: a0 10 00 08 mov %o0, %l0
sc = rtems_semaphore_obtain (waiters->sema, RTEMS_WAIT, RTEMS_BDBUF_WAIT_TIMEOUT);
200c7b8: d0 06 20 04 ld [ %i0 + 4 ], %o0
200c7bc: 92 10 20 00 clr %o1
200c7c0: 7f ff ed 42 call 2007cc8 <rtems_semaphore_obtain>
200c7c4: 94 10 20 00 clr %o2
if (sc == RTEMS_TIMEOUT)
200c7c8: 80 a2 20 06 cmp %o0, 6
200c7cc: 02 80 00 0d be 200c800 <rtems_bdbuf_anonymous_wait+0x68> <== NEVER TAKEN
200c7d0: 80 a2 20 0d cmp %o0, 0xd
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAIT_TO);
if (sc != RTEMS_UNSATISFIED)
200c7d4: 12 80 00 0e bne 200c80c <rtems_bdbuf_anonymous_wait+0x74> <== NEVER TAKEN
200c7d8: 11 10 80 00 sethi %hi(0x42000000), %o0
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAIT_2);
rtems_bdbuf_lock_cache ();
200c7dc: 7f ff fe 4f call 200c118 <rtems_bdbuf_lock_cache>
200c7e0: 01 00 00 00 nop
rtems_bdbuf_restore_preemption (prev_mode);
200c7e4: 7f ff ff de call 200c75c <rtems_bdbuf_restore_preemption>
200c7e8: 90 10 00 10 mov %l0, %o0
--waiters->count;
200c7ec: c2 06 00 00 ld [ %i0 ], %g1
200c7f0: 82 00 7f ff add %g1, -1, %g1
200c7f4: c2 26 00 00 st %g1, [ %i0 ]
}
200c7f8: 81 c7 e0 08 ret
200c7fc: 81 e8 00 00 restore
rtems_bdbuf_unlock_cache ();
sc = rtems_semaphore_obtain (waiters->sema, RTEMS_WAIT, RTEMS_BDBUF_WAIT_TIMEOUT);
if (sc == RTEMS_TIMEOUT)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAIT_TO);
200c800: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200c804: 7f ff ee b8 call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200c808: 90 12 20 12 or %o0, 0x12, %o0 ! 42000012 <RAM_END+0x3fc00012><== NOT EXECUTED
if (sc != RTEMS_UNSATISFIED)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAIT_2);
200c80c: 7f ff ee b6 call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200c810: 90 12 20 10 or %o0, 0x10, %o0 <== NOT EXECUTED
0200c720 <rtems_bdbuf_disable_preemption>:
--bd->group->users;
}
static rtems_mode
rtems_bdbuf_disable_preemption (void)
{
200c720: 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);
200c724: 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;
200c728: c0 27 bf fc clr [ %fp + -4 ]
sc = rtems_task_mode (RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &prev_mode);
200c72c: 92 10 21 00 mov 0x100, %o1
200c730: 40 00 13 dc call 20116a0 <rtems_task_mode>
200c734: 94 07 bf fc add %fp, -4, %o2
if (sc != RTEMS_SUCCESSFUL)
200c738: 80 a2 20 00 cmp %o0, 0
200c73c: 12 80 00 04 bne 200c74c <rtems_bdbuf_disable_preemption+0x2c><== NEVER TAKEN
200c740: f0 07 bf fc ld [ %fp + -4 ], %i0
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_PREEMPT_DIS);
return prev_mode;
}
200c744: 81 c7 e0 08 ret
200c748: 81 e8 00 00 restore
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_mode prev_mode = 0;
sc = rtems_task_mode (RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &prev_mode);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_PREEMPT_DIS);
200c74c: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200c750: 7f ff ee e5 call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200c754: 90 12 20 0f or %o0, 0xf, %o0 ! 4200000f <RAM_END+0x3fc0000f><== NOT EXECUTED
0200d518 <rtems_bdbuf_execute_transfer_request>:
static rtems_status_code
rtems_bdbuf_execute_transfer_request (const rtems_disk_device *dd,
rtems_blkdev_request *req,
bool cache_locked)
{
200d518: 9d e3 bf a0 save %sp, -96, %sp
int result = 0;
uint32_t transfer_index = 0;
bool wake_transfer_waiters = false;
bool wake_buffer_waiters = false;
if (cache_locked)
200d51c: b4 8e a0 ff andcc %i2, 0xff, %i2
200d520: 12 80 00 5b bne 200d68c <rtems_bdbuf_execute_transfer_request+0x174>
200d524: 01 00 00 00 nop
rtems_bdbuf_unlock_cache ();
result = dd->ioctl (dd->phys_dev, RTEMS_BLKIO_REQUEST, req);
200d528: d0 06 20 08 ld [ %i0 + 8 ], %o0
200d52c: c2 06 20 28 ld [ %i0 + 0x28 ], %g1
200d530: 13 30 06 10 sethi %hi(0xc0184000), %o1
200d534: 94 10 00 19 mov %i1, %o2
200d538: 92 12 62 01 or %o1, 0x201, %o1
200d53c: 9f c0 40 00 call %g1
200d540: a8 10 20 00 clr %l4
if (result == 0)
200d544: 80 a2 20 00 cmp %o0, 0
200d548: 02 80 00 47 be 200d664 <rtems_bdbuf_execute_transfer_request+0x14c>
200d54c: b0 10 20 1b mov 0x1b, %i0
sc = req->status;
}
else
sc = RTEMS_IO_ERROR;
rtems_bdbuf_lock_cache ();
200d550: 7f ff fa f2 call 200c118 <rtems_bdbuf_lock_cache>
200d554: 01 00 00 00 nop
for (transfer_index = 0; transfer_index < req->bufnum; ++transfer_index)
200d558: c2 06 60 10 ld [ %i1 + 0x10 ], %g1
200d55c: 80 a0 60 00 cmp %g1, 0
200d560: 02 80 00 26 be 200d5f8 <rtems_bdbuf_execute_transfer_request+0xe0><== NEVER TAKEN
200d564: a4 10 20 00 clr %l2
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
200d568: 2d 00 80 86 sethi %hi(0x2021800), %l6
200d56c: a2 10 00 19 mov %i1, %l1
200d570: ac 15 a0 04 or %l6, 4, %l6
200d574: a6 10 20 00 clr %l3
200d578: a0 10 20 00 clr %l0
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200d57c: aa 10 20 02 mov 2, %l5
rtems_bdbuf_lock_cache ();
for (transfer_index = 0; transfer_index < req->bufnum; ++transfer_index)
{
rtems_bdbuf_buffer *bd = req->bufs [transfer_index].user;
200d580: d2 04 60 24 ld [ %l1 + 0x24 ], %o1
bool waiters = bd->waiters;
200d584: c2 02 60 2c ld [ %o1 + 0x2c ], %g1
if (waiters)
200d588: 80 a0 60 00 cmp %g1, 0
200d58c: 32 80 00 03 bne,a 200d598 <rtems_bdbuf_execute_transfer_request+0x80>
200d590: a6 10 20 01 mov 1, %l3
200d594: a4 10 20 01 mov 1, %l2
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
200d598: c2 02 60 30 ld [ %o1 + 0x30 ], %g1
else
wake_buffer_waiters = true;
rtems_bdbuf_group_release (bd);
if (sc == RTEMS_SUCCESSFUL && bd->state == RTEMS_BDBUF_STATE_TRANSFER)
200d59c: 80 a6 20 00 cmp %i0, 0
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
200d5a0: c4 00 60 0c ld [ %g1 + 0xc ], %g2
rtems_bdbuf_group_release (bd);
if (sc == RTEMS_SUCCESSFUL && bd->state == RTEMS_BDBUF_STATE_TRANSFER)
rtems_bdbuf_make_cached_and_add_to_lru_list (bd);
else
rtems_bdbuf_discard_buffer (bd);
200d5a4: 90 10 00 09 mov %o1, %o0
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
200d5a8: 84 00 bf ff add %g2, -1, %g2
else
wake_buffer_waiters = true;
rtems_bdbuf_group_release (bd);
if (sc == RTEMS_SUCCESSFUL && bd->state == RTEMS_BDBUF_STATE_TRANSFER)
200d5ac: 12 80 00 06 bne 200d5c4 <rtems_bdbuf_execute_transfer_request+0xac>
200d5b0: c4 20 60 0c st %g2, [ %g1 + 0xc ]
200d5b4: c2 02 60 28 ld [ %o1 + 0x28 ], %g1
200d5b8: 80 a0 60 09 cmp %g1, 9
200d5bc: 02 80 00 17 be 200d618 <rtems_bdbuf_execute_transfer_request+0x100>
200d5c0: 01 00 00 00 nop
rtems_bdbuf_make_cached_and_add_to_lru_list (bd);
else
rtems_bdbuf_discard_buffer (bd);
200d5c4: 7f ff fe cd call 200d0f8 <rtems_bdbuf_discard_buffer>
200d5c8: 01 00 00 00 nop
else
sc = RTEMS_IO_ERROR;
rtems_bdbuf_lock_cache ();
for (transfer_index = 0; transfer_index < req->bufnum; ++transfer_index)
200d5cc: c2 06 60 10 ld [ %i1 + 0x10 ], %g1
200d5d0: a0 04 20 01 inc %l0
200d5d4: 80 a0 40 10 cmp %g1, %l0
200d5d8: 18 bf ff ea bgu 200d580 <rtems_bdbuf_execute_transfer_request+0x68>
200d5dc: a2 04 60 10 add %l1, 0x10, %l1
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_users ("transfer", bd);
}
if (wake_transfer_waiters)
200d5e0: 80 8c e0 ff btst 0xff, %l3
200d5e4: 12 80 00 1c bne 200d654 <rtems_bdbuf_execute_transfer_request+0x13c>
200d5e8: 11 00 80 86 sethi %hi(0x2021800), %o0
rtems_bdbuf_wake (&bdbuf_cache.transfer_waiters);
if (wake_buffer_waiters)
200d5ec: 80 8c a0 ff btst 0xff, %l2
200d5f0: 12 80 00 15 bne 200d644 <rtems_bdbuf_execute_transfer_request+0x12c>
200d5f4: 11 00 80 86 sethi %hi(0x2021800), %o0
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
if (!cache_locked)
200d5f8: 80 a6 a0 00 cmp %i2, 0
200d5fc: 02 80 00 0e be 200d634 <rtems_bdbuf_execute_transfer_request+0x11c>
200d600: 01 00 00 00 nop
rtems_bdbuf_unlock_cache ();
if (sc == RTEMS_SUCCESSFUL || sc == RTEMS_UNSATISFIED)
200d604: 80 8d 20 ff btst 0xff, %l4
200d608: 02 80 00 09 be 200d62c <rtems_bdbuf_execute_transfer_request+0x114>
200d60c: 01 00 00 00 nop
return sc;
else
return RTEMS_IO_ERROR;
}
200d610: 81 c7 e0 08 ret
200d614: 81 e8 00 00 restore
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200d618: ea 22 60 28 st %l5, [ %o1 + 0x28 ]
200d61c: 7f ff ec 88 call 200883c <_Chain_Append>
200d620: 90 10 00 16 mov %l6, %o0
else
wake_buffer_waiters = true;
rtems_bdbuf_group_release (bd);
if (sc == RTEMS_SUCCESSFUL && bd->state == RTEMS_BDBUF_STATE_TRANSFER)
200d624: 10 bf ff eb b 200d5d0 <rtems_bdbuf_execute_transfer_request+0xb8>
200d628: c2 06 60 10 ld [ %i1 + 0x10 ], %g1
if (sc == RTEMS_SUCCESSFUL || sc == RTEMS_UNSATISFIED)
return sc;
else
return RTEMS_IO_ERROR;
}
200d62c: 81 c7 e0 08 ret
200d630: 91 e8 20 1b restore %g0, 0x1b, %o0
if (wake_buffer_waiters)
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
if (!cache_locked)
rtems_bdbuf_unlock_cache ();
200d634: 7f ff fb 47 call 200c350 <rtems_bdbuf_unlock_cache>
200d638: 01 00 00 00 nop
if (sc == RTEMS_SUCCESSFUL || sc == RTEMS_UNSATISFIED)
200d63c: 10 bf ff f3 b 200d608 <rtems_bdbuf_execute_transfer_request+0xf0>
200d640: 80 8d 20 ff btst 0xff, %l4
if (wake_transfer_waiters)
rtems_bdbuf_wake (&bdbuf_cache.transfer_waiters);
if (wake_buffer_waiters)
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
200d644: 7f ff fa bd call 200c138 <rtems_bdbuf_wake>
200d648: 90 12 20 38 or %o0, 0x38, %o0
if (!cache_locked)
200d64c: 10 bf ff ec b 200d5fc <rtems_bdbuf_execute_transfer_request+0xe4>
200d650: 80 a6 a0 00 cmp %i2, 0
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_users ("transfer", bd);
}
if (wake_transfer_waiters)
rtems_bdbuf_wake (&bdbuf_cache.transfer_waiters);
200d654: 7f ff fa b9 call 200c138 <rtems_bdbuf_wake>
200d658: 90 12 20 30 or %o0, 0x30, %o0
if (wake_buffer_waiters)
200d65c: 10 bf ff e5 b 200d5f0 <rtems_bdbuf_execute_transfer_request+0xd8>
200d660: 80 8c a0 ff btst 0xff, %l2
result = dd->ioctl (dd->phys_dev, RTEMS_BLKIO_REQUEST, req);
if (result == 0)
{
rtems_bdbuf_wait_for_event (RTEMS_BDBUF_TRANSFER_SYNC);
200d664: 7f ff fb f5 call 200c638 <rtems_bdbuf_wait_for_event>
200d668: 90 10 20 02 mov 2, %o0
sc = req->status;
200d66c: f0 06 60 0c ld [ %i1 + 0xc ], %i0
200d670: 82 1e 20 0d xor %i0, 0xd, %g1
200d674: 80 a0 00 01 cmp %g0, %g1
200d678: a8 60 3f ff subx %g0, -1, %l4
200d67c: 80 a0 00 18 cmp %g0, %i0
200d680: 82 60 3f ff subx %g0, -1, %g1
200d684: 10 bf ff b3 b 200d550 <rtems_bdbuf_execute_transfer_request+0x38>
200d688: a8 15 00 01 or %l4, %g1, %l4
uint32_t transfer_index = 0;
bool wake_transfer_waiters = false;
bool wake_buffer_waiters = false;
if (cache_locked)
rtems_bdbuf_unlock_cache ();
200d68c: 7f ff fb 31 call 200c350 <rtems_bdbuf_unlock_cache>
200d690: 01 00 00 00 nop
result = dd->ioctl (dd->phys_dev, RTEMS_BLKIO_REQUEST, req);
200d694: 10 bf ff a6 b 200d52c <rtems_bdbuf_execute_transfer_request+0x14>
200d698: d0 06 20 08 ld [ %i0 + 8 ], %o0
0200e4a0 <rtems_bdbuf_get>:
rtems_status_code
rtems_bdbuf_get (dev_t dev,
rtems_blkdev_bnum block,
rtems_bdbuf_buffer **bd_ptr)
{
200e4a0: 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);
200e4a4: 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;
200e4a8: c0 27 bf fc clr [ %fp + -4 ]
rtems_bdbuf_buffer *bd = NULL;
rtems_blkdev_bnum media_block = 0;
200e4ac: c0 27 bf f8 clr [ %fp + -8 ]
size_t bds_per_group = 0;
200e4b0: c0 27 bf f4 clr [ %fp + -12 ]
sc = rtems_bdbuf_obtain_disk (dev, block, &dd, &media_block, &bds_per_group);
200e4b4: 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)
{
200e4b8: 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);
200e4bc: 96 07 bf fc add %fp, -4, %o3
200e4c0: 92 10 00 19 mov %i1, %o1
200e4c4: 98 07 bf f8 add %fp, -8, %o4
200e4c8: 7f ff f7 ba call 200c3b0 <rtems_bdbuf_obtain_disk>
200e4cc: 9a 07 bf f4 add %fp, -12, %o5
if (sc != RTEMS_SUCCESSFUL)
200e4d0: b0 92 20 00 orcc %o0, 0, %i0
200e4d4: 02 80 00 04 be 200e4e4 <rtems_bdbuf_get+0x44> <== ALWAYS TAKEN
200e4d8: 01 00 00 00 nop
rtems_bdbuf_release_disk (dd);
*bd_ptr = bd;
return RTEMS_SUCCESSFUL;
}
200e4dc: 81 c7 e0 08 ret <== NOT EXECUTED
200e4e0: 81 e8 00 00 restore <== NOT EXECUTED
sc = rtems_bdbuf_obtain_disk (dev, block, &dd, &media_block, &bds_per_group);
if (sc != RTEMS_SUCCESSFUL)
return sc;
rtems_bdbuf_lock_cache ();
200e4e4: 7f ff f7 0d call 200c118 <rtems_bdbuf_lock_cache>
200e4e8: 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);
200e4ec: d4 07 bf f8 ld [ %fp + -8 ], %o2
200e4f0: d6 07 bf f4 ld [ %fp + -12 ], %o3
200e4f4: 90 10 00 10 mov %l0, %o0
200e4f8: 7f ff ff 55 call 200e24c <rtems_bdbuf_get_buffer_for_access>
200e4fc: 92 10 00 19 mov %i1, %o1
switch (bd->state)
200e500: c2 02 20 28 ld [ %o0 + 0x28 ], %g1
200e504: 80 a0 60 02 cmp %g1, 2
200e508: 02 80 00 16 be 200e560 <rtems_bdbuf_get+0xc0>
200e50c: a0 10 00 08 mov %o0, %l0
200e510: 80 a0 60 07 cmp %g1, 7
200e514: 02 80 00 0a be 200e53c <rtems_bdbuf_get+0x9c>
200e518: 80 a0 60 01 cmp %g1, 1
200e51c: 02 80 00 14 be 200e56c <rtems_bdbuf_get+0xcc> <== ALWAYS TAKEN
200e520: 82 10 20 05 mov 5, %g1
* 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);
200e524: 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);
200e528: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200e52c: 82 10 60 1e or %g1, 0x1e, %g1 ! 4200001e <RAM_END+0x3fc0001e><== NOT EXECUTED
200e530: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200e534: 7f ff e7 6c call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200e538: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200e53c: 82 10 20 04 mov 4, %g1
200e540: c2 22 20 28 st %g1, [ %o0 + 0x28 ]
{
rtems_bdbuf_show_users ("get", bd);
rtems_bdbuf_show_usage ();
}
rtems_bdbuf_unlock_cache ();
200e544: 7f ff f7 83 call 200c350 <rtems_bdbuf_unlock_cache>
200e548: 01 00 00 00 nop
rtems_bdbuf_release_disk (dd);
200e54c: 7f ff f7 d9 call 200c4b0 <rtems_bdbuf_release_disk>
200e550: d0 07 bf fc ld [ %fp + -4 ], %o0
*bd_ptr = bd;
200e554: e0 26 c0 00 st %l0, [ %i3 ]
return RTEMS_SUCCESSFUL;
}
200e558: 81 c7 e0 08 ret
200e55c: 81 e8 00 00 restore
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200e560: 82 10 20 03 mov 3, %g1
200e564: c2 22 20 28 st %g1, [ %o0 + 0x28 ]
switch (bd->state)
{
case RTEMS_BDBUF_STATE_CACHED:
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_ACCESS_CACHED);
break;
200e568: 30 bf ff f7 b,a 200e544 <rtems_bdbuf_get+0xa4>
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200e56c: c2 22 20 28 st %g1, [ %o0 + 0x28 ]
case RTEMS_BDBUF_STATE_CACHED:
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_ACCESS_CACHED);
break;
case RTEMS_BDBUF_STATE_EMPTY:
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_ACCESS_EMPTY);
break;
200e570: 30 bf ff f5 b,a 200e544 <rtems_bdbuf_get+0xa4>
0200e24c <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)
{
200e24c: 9d e3 bf a0 save %sp, -96, %sp
200e250: 21 00 80 85 sethi %hi(0x2021400), %l0
static bool
rtems_bdbuf_wait_for_recycle (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
200e254: 23 00 80 30 sethi %hi(0x200c000), %l1
200e258: a0 14 23 c0 or %l0, 0x3c0, %l0
200e25c: a2 14 60 4c or %l1, 0x4c, %l1
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);
200e260: ba 04 20 70 add %l0, 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);
200e264: ae 04 20 68 add %l0, 0x68, %l7
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200e268: ac 10 20 08 mov 8, %l6
200e26c: aa 04 20 5c add %l0, 0x5c, %l5
RTEMS_INLINE_ROUTINE void _Chain_Prepend(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
_Chain_Insert(_Chain_Head(the_chain), the_node);
200e270: a8 04 20 44 add %l0, 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);
200e274: a4 04 20 78 add %l0, 0x78, %l2
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200e278: a6 04 20 54 add %l0, 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;
200e27c: f8 04 20 40 ld [ %l0 + 0x40 ], %i4
while ((p != NULL) && ((p->dev != dev) || (p->block != block)))
200e280: 80 a7 20 00 cmp %i4, 0
200e284: 02 80 00 0e be 200e2bc <rtems_bdbuf_get_buffer_for_access+0x70>
200e288: 90 10 00 18 mov %i0, %o0
200e28c: c2 07 20 18 ld [ %i4 + 0x18 ], %g1
200e290: 80 a6 00 01 cmp %i0, %g1
200e294: 02 80 00 21 be 200e318 <rtems_bdbuf_get_buffer_for_access+0xcc>
200e298: c4 07 20 1c ld [ %i4 + 0x1c ], %g2
{
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200e29c: 80 a6 00 01 cmp %i0, %g1
200e2a0: 08 80 00 18 bleu 200e300 <rtems_bdbuf_get_buffer_for_access+0xb4>
200e2a4: 01 00 00 00 nop
{
p = p->avl.right;
200e2a8: f8 07 20 0c ld [ %i4 + 0xc ], %i4
dev_t dev,
rtems_blkdev_bnum block)
{
rtems_bdbuf_buffer* p = *root;
while ((p != NULL) && ((p->dev != dev) || (p->block != block)))
200e2ac: 80 a7 20 00 cmp %i4, 0
200e2b0: 32 bf ff f8 bne,a 200e290 <rtems_bdbuf_get_buffer_for_access+0x44>
200e2b4: c2 07 20 18 ld [ %i4 + 0x18 ], %g1
bd = NULL;
}
}
else
{
bd = rtems_bdbuf_get_buffer_from_lru_list (dev, block, bds_per_group);
200e2b8: 90 10 00 18 mov %i0, %o0
200e2bc: 92 10 00 19 mov %i1, %o1
200e2c0: 94 10 00 1a mov %i2, %o2
200e2c4: 7f ff fe d4 call 200de14 <rtems_bdbuf_get_buffer_from_lru_list>
200e2c8: 96 10 00 1b mov %i3, %o3
if (bd == NULL)
200e2cc: b8 92 20 00 orcc %o0, 0, %i4
200e2d0: 32 80 00 22 bne,a 200e358 <rtems_bdbuf_get_buffer_for_access+0x10c>
200e2d4: 23 00 80 30 sethi %hi(0x200c000), %l1
200e2d8: c2 04 20 50 ld [ %l0 + 0x50 ], %g1
200e2dc: 80 a0 40 13 cmp %g1, %l3
200e2e0: 02 80 00 04 be 200e2f0 <rtems_bdbuf_get_buffer_for_access+0xa4>
200e2e4: 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 ();
200e2e8: 7f ff f8 7d call 200c4dc <rtems_bdbuf_wake_swapper>
200e2ec: 01 00 00 00 nop
rtems_bdbuf_anonymous_wait (&bdbuf_cache.buffer_waiters);
200e2f0: 7f ff f9 2a call 200c798 <rtems_bdbuf_anonymous_wait>
200e2f4: 90 10 00 12 mov %l2, %o0
static rtems_bdbuf_buffer *
rtems_bdbuf_avl_search (rtems_bdbuf_buffer** root,
dev_t dev,
rtems_blkdev_bnum block)
{
rtems_bdbuf_buffer* p = *root;
200e2f8: 10 bf ff e2 b 200e280 <rtems_bdbuf_get_buffer_for_access+0x34>
200e2fc: f8 04 20 40 ld [ %l0 + 0x40 ], %i4
while ((p != NULL) && ((p->dev != dev) || (p->block != block)))
{
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200e300: 12 80 00 04 bne 200e310 <rtems_bdbuf_get_buffer_for_access+0xc4><== ALWAYS TAKEN
200e304: 80 a6 40 02 cmp %i1, %g2
200e308: 38 bf ff e9 bgu,a 200e2ac <rtems_bdbuf_get_buffer_for_access+0x60><== NOT EXECUTED
200e30c: f8 07 20 0c ld [ %i4 + 0xc ], %i4 <== NOT EXECUTED
{
p = p->avl.right;
}
else
{
p = p->avl.left;
200e310: 10 bf ff e7 b 200e2ac <rtems_bdbuf_get_buffer_for_access+0x60>
200e314: f8 07 20 08 ld [ %i4 + 8 ], %i4
dev_t dev,
rtems_blkdev_bnum block)
{
rtems_bdbuf_buffer* p = *root;
while ((p != NULL) && ((p->dev != dev) || (p->block != block)))
200e318: 80 a6 40 02 cmp %i1, %g2
200e31c: 12 bf ff e1 bne 200e2a0 <rtems_bdbuf_get_buffer_for_access+0x54><== NEVER TAKEN
200e320: 80 a6 00 01 cmp %i0, %g1
200e324: c2 07 20 20 ld [ %i4 + 0x20 ], %g1
200e328: 80 a6 80 01 cmp %i2, %g1
200e32c: 22 80 00 06 be,a 200e344 <rtems_bdbuf_get_buffer_for_access+0xf8>
200e330: c2 07 20 30 ld [ %i4 + 0x30 ], %g1
{
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200e334: 38 bf ff de bgu,a 200e2ac <rtems_bdbuf_get_buffer_for_access+0x60>
200e338: f8 07 20 0c ld [ %i4 + 0xc ], %i4
{
p = p->avl.right;
}
else
{
p = p->avl.left;
200e33c: 10 bf ff dc b 200e2ac <rtems_bdbuf_get_buffer_for_access+0x60>
200e340: f8 07 20 08 ld [ %i4 + 8 ], %i4
{
bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dev, block);
if (bd != NULL)
{
if (bd->group->bds_per_group != bds_per_group)
200e344: c2 00 60 08 ld [ %g1 + 8 ], %g1
200e348: 80 a0 40 1b cmp %g1, %i3
200e34c: 12 80 00 14 bne 200e39c <rtems_bdbuf_get_buffer_for_access+0x150>
200e350: 01 00 00 00 nop
static void
rtems_bdbuf_wait_for_access (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
200e354: 23 00 80 30 sethi %hi(0x200c000), %l1
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);
200e358: 21 00 80 86 sethi %hi(0x2021800), %l0
static void
rtems_bdbuf_wait_for_access (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
200e35c: a2 14 60 78 or %l1, 0x78, %l1
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);
200e360: a0 14 20 30 or %l0, 0x30, %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);
200e364: a4 04 3f f8 add %l0, -8, %l2
static void
rtems_bdbuf_wait_for_access (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
200e368: c2 07 20 28 ld [ %i4 + 0x28 ], %g1
200e36c: 80 a0 60 0a cmp %g1, 0xa
200e370: 08 80 00 15 bleu 200e3c4 <rtems_bdbuf_get_buffer_for_access+0x178><== ALWAYS TAKEN
200e374: 83 28 60 02 sll %g1, 2, %g1
case RTEMS_BDBUF_STATE_TRANSFER:
case RTEMS_BDBUF_STATE_TRANSFER_PURGED:
rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_7);
200e378: d0 07 20 28 ld [ %i4 + 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);
200e37c: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200e380: 82 10 60 05 or %g1, 5, %g1 ! 42000005 <RAM_END+0x3fc00005><== NOT EXECUTED
200e384: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200e388: 7f ff e7 d7 call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200e38c: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
}
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);
200e390: 90 10 00 1c mov %i4, %o0
200e394: 7f ff f9 21 call 200c818 <rtems_bdbuf_wait>
200e398: 92 10 00 17 mov %l7, %o1
static bool
rtems_bdbuf_wait_for_recycle (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
200e39c: c2 07 20 28 ld [ %i4 + 0x28 ], %g1
200e3a0: 80 a0 60 0a cmp %g1, 0xa
200e3a4: 28 80 00 17 bleu,a 200e400 <rtems_bdbuf_get_buffer_for_access+0x1b4><== ALWAYS TAKEN
200e3a8: 83 28 60 02 sll %g1, 2, %g1
case RTEMS_BDBUF_STATE_TRANSFER:
case RTEMS_BDBUF_STATE_TRANSFER_PURGED:
rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_8);
200e3ac: d0 07 20 28 ld [ %i4 + 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);
200e3b0: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200e3b4: 82 10 60 06 or %g1, 6, %g1 ! 42000006 <RAM_END+0x3fc00006><== NOT EXECUTED
200e3b8: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200e3bc: 7f ff e7 ca call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200e3c0: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
static void
rtems_bdbuf_wait_for_access (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
200e3c4: c2 04 40 01 ld [ %l1 + %g1 ], %g1
200e3c8: 81 c0 40 00 jmp %g1
200e3cc: 01 00 00 00 nop
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
200e3d0: c2 07 20 30 ld [ %i4 + 0x30 ], %g1
200e3d4: c4 00 60 0c ld [ %g1 + 0xc ], %g2
200e3d8: 84 00 bf ff add %g2, -1, %g2
200e3dc: c4 20 60 0c st %g2, [ %g1 + 0xc ]
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
200e3e0: 7f ff e9 23 call 200886c <_Chain_Extract>
200e3e4: 90 10 00 1c mov %i4, %o0
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
200e3e8: c2 07 20 30 ld [ %i4 + 0x30 ], %g1
200e3ec: c4 00 60 0c ld [ %g1 + 0xc ], %g2
200e3f0: 84 00 a0 01 inc %g2
200e3f4: c4 20 60 0c st %g2, [ %g1 + 0xc ]
rtems_bdbuf_wait_for_access (bd);
rtems_bdbuf_group_obtain (bd);
return bd;
}
200e3f8: 81 c7 e0 08 ret
200e3fc: 91 e8 00 1c restore %g0, %i4, %o0
static bool
rtems_bdbuf_wait_for_recycle (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
200e400: c2 04 40 01 ld [ %l1 + %g1 ], %g1
200e404: 81 c0 40 00 jmp %g1
200e408: 01 00 00 00 nop
200e40c: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200e410: ec 27 20 28 st %l6, [ %i4 + 0x28 ] <== NOT EXECUTED
200e414: 7f ff e9 16 call 200886c <_Chain_Extract> <== NOT EXECUTED
200e418: 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 );
200e41c: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
200e420: 7f ff e9 07 call 200883c <_Chain_Append> <== NOT EXECUTED
200e424: 92 10 00 1c mov %i4, %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 ();
200e428: 7f ff f8 2d call 200c4dc <rtems_bdbuf_wake_swapper> <== NOT EXECUTED
200e42c: 01 00 00 00 nop <== NOT EXECUTED
200e430: 30 bf ff db b,a 200e39c <rtems_bdbuf_get_buffer_for_access+0x150><== 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)
200e434: c2 07 20 2c ld [ %i4 + 0x2c ], %g1
200e438: 80 a0 60 00 cmp %g1, 0
200e43c: 12 bf ff ad bne 200e2f0 <rtems_bdbuf_get_buffer_for_access+0xa4><== ALWAYS TAKEN
200e440: 01 00 00 00 nop
{
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);
200e444: 7f ff fb 1b call 200d0b0 <rtems_bdbuf_remove_from_tree_and_lru_list><== NOT EXECUTED
200e448: 90 10 00 1c mov %i4, %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);
200e44c: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
200e450: 92 10 00 1c mov %i4, %o1 <== NOT EXECUTED
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200e454: c0 27 20 28 clr [ %i4 + 0x28 ] <== NOT EXECUTED
200e458: 40 00 0d cd call 2011b8c <_Chain_Insert> <== NOT EXECUTED
200e45c: 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);
200e460: 7f ff f7 36 call 200c138 <rtems_bdbuf_wake> <== NOT EXECUTED
200e464: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
static rtems_bdbuf_buffer *
rtems_bdbuf_avl_search (rtems_bdbuf_buffer** root,
dev_t dev,
rtems_blkdev_bnum block)
{
rtems_bdbuf_buffer* p = *root;
200e468: 10 bf ff 86 b 200e280 <rtems_bdbuf_get_buffer_for_access+0x34><== NOT EXECUTED
200e46c: f8 04 20 40 ld [ %l0 + 0x40 ], %i4 <== NOT EXECUTED
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);
200e470: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
200e474: 7f ff f8 e9 call 200c818 <rtems_bdbuf_wait> <== NOT EXECUTED
200e478: 92 10 00 1d mov %i5, %o1 <== NOT EXECUTED
200e47c: 30 bf ff c8 b,a 200e39c <rtems_bdbuf_get_buffer_for_access+0x150><== NOT EXECUTED
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);
200e480: 90 10 00 1c mov %i4, %o0
200e484: 7f ff f8 e5 call 200c818 <rtems_bdbuf_wait>
200e488: 92 10 00 12 mov %l2, %o1
200e48c: 30 bf ff b7 b,a 200e368 <rtems_bdbuf_get_buffer_for_access+0x11c>
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);
200e490: 90 10 00 1c mov %i4, %o0
200e494: 7f ff f8 e1 call 200c818 <rtems_bdbuf_wait>
200e498: 92 10 00 10 mov %l0, %o1
200e49c: 30 bf ff b3 b,a 200e368 <rtems_bdbuf_get_buffer_for_access+0x11c>
0200de14 <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)
{
200de14: 9d e3 bf 20 save %sp, -224, %sp
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
200de18: 23 00 80 85 sethi %hi(0x2021400), %l1
200de1c: a2 14 63 c0 or %l1, 0x3c0, %l1 ! 20217c0 <bdbuf_cache>
200de20: e0 04 60 44 ld [ %l1 + 0x44 ], %l0
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200de24: ba 04 60 48 add %l1, 0x48, %i5
rtems_chain_node *node = rtems_chain_first (&bdbuf_cache.lru);
while (!rtems_chain_is_tail (&bdbuf_cache.lru, node))
200de28: 80 a4 00 1d cmp %l0, %i5
200de2c: 02 80 00 41 be 200df30 <rtems_bdbuf_get_buffer_from_lru_list+0x11c>
200de30: a4 10 00 18 mov %i0, %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;
200de34: ae 04 60 44 add %l1, 0x44, %l7
b < group->bds_per_group;
b++, bd += bufs_per_bd)
rtems_bdbuf_make_free_and_add_to_lru_list (bd);
if (b > 1)
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
200de38: b8 04 60 78 add %l1, 0x78, %i4
bd->group->bds_per_group, bds_per_group);
/*
* If nobody waits for this BD, we may recycle it.
*/
if (bd->waiters == 0)
200de3c: c2 04 20 2c ld [ %l0 + 0x2c ], %g1
200de40: 80 a0 60 00 cmp %g1, 0
200de44: 32 80 00 38 bne,a 200df24 <rtems_bdbuf_get_buffer_from_lru_list+0x110>
200de48: e0 04 00 00 ld [ %l0 ], %l0
{
if (bd->group->bds_per_group == bds_per_group)
200de4c: ea 04 20 30 ld [ %l0 + 0x30 ], %l5
200de50: d2 05 60 08 ld [ %l5 + 8 ], %o1
200de54: 80 a2 40 1b cmp %o1, %i3
200de58: 02 80 00 38 be 200df38 <rtems_bdbuf_get_buffer_from_lru_list+0x124>
200de5c: 01 00 00 00 nop
{
rtems_bdbuf_remove_from_tree_and_lru_list (bd);
empty_bd = bd;
}
else if (bd->group->users == 0)
200de60: c2 05 60 0c ld [ %l5 + 0xc ], %g1
200de64: 80 a0 60 00 cmp %g1, 0
200de68: 32 80 00 2f bne,a 200df24 <rtems_bdbuf_get_buffer_from_lru_list+0x110>
200de6c: e0 04 00 00 ld [ %l0 ], %l0
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;
200de70: e8 05 60 10 ld [ %l5 + 0x10 ], %l4
200de74: 80 a2 60 00 cmp %o1, 0
if (rtems_bdbuf_tracer)
printf ("bdbuf:realloc: %tu: %zd -> %zd\n",
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;
200de78: d0 04 60 20 ld [ %l1 + 0x20 ], %o0
for (b = 0, bd = group->bdbuf;
200de7c: 02 80 00 0e be 200deb4 <rtems_bdbuf_get_buffer_from_lru_list+0xa0><== NEVER TAKEN
200de80: a6 10 00 14 mov %l4, %l3
200de84: 40 00 3e de call 201d9fc <.udiv>
200de88: a6 10 20 00 clr %l3
200de8c: ad 2a 20 06 sll %o0, 6, %l6
b < group->bds_per_group;
b++, bd += bufs_per_bd)
rtems_bdbuf_remove_from_tree_and_lru_list (bd);
200de90: 7f ff fc 88 call 200d0b0 <rtems_bdbuf_remove_from_tree_and_lru_list>
200de94: 90 10 00 14 mov %l4, %o0
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;
200de98: c2 05 60 08 ld [ %l5 + 8 ], %g1
b < group->bds_per_group;
b++, bd += bufs_per_bd)
200de9c: a6 04 e0 01 inc %l3
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;
200dea0: 80 a4 c0 01 cmp %l3, %g1
200dea4: 0a bf ff fb bcs 200de90 <rtems_bdbuf_get_buffer_from_lru_list+0x7c>
200dea8: a8 05 00 16 add %l4, %l6, %l4
200deac: d0 04 60 20 ld [ %l1 + 0x20 ], %o0
200deb0: e6 05 60 10 ld [ %l5 + 0x10 ], %l3
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;
200deb4: f6 25 60 08 st %i3, [ %l5 + 8 ]
bufs_per_bd = bdbuf_cache.max_bds_per_group / new_bds_per_group;
for (b = 1, bd = group->bdbuf + bufs_per_bd;
200deb8: 80 a6 e0 01 cmp %i3, 1
200debc: 08 80 00 16 bleu 200df14 <rtems_bdbuf_get_buffer_from_lru_list+0x100>
200dec0: b0 10 00 13 mov %l3, %i0
200dec4: 92 10 00 1b mov %i3, %o1
200dec8: 40 00 3e cd call 201d9fc <.udiv>
200decc: a8 10 20 01 mov 1, %l4
200ded0: ad 2a 20 06 sll %o0, 6, %l6
200ded4: a6 04 c0 16 add %l3, %l6, %l3
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200ded8: c0 24 e0 28 clr [ %l3 + 0x28 ]
RTEMS_INLINE_ROUTINE void _Chain_Prepend(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
_Chain_Insert(_Chain_Head(the_chain), the_node);
200dedc: 92 10 00 13 mov %l3, %o1
200dee0: 40 00 0f 2b call 2011b8c <_Chain_Insert>
200dee4: 90 10 00 17 mov %l7, %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;
200dee8: c2 05 60 08 ld [ %l5 + 8 ], %g1
b < group->bds_per_group;
b++, bd += bufs_per_bd)
200deec: a8 05 20 01 inc %l4
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;
200def0: 80 a5 00 01 cmp %l4, %g1
200def4: 0a bf ff f9 bcs 200ded8 <rtems_bdbuf_get_buffer_from_lru_list+0xc4><== NEVER TAKEN
200def8: a6 04 c0 16 add %l3, %l6, %l3
b < group->bds_per_group;
b++, bd += bufs_per_bd)
rtems_bdbuf_make_free_and_add_to_lru_list (bd);
if (b > 1)
200defc: 80 a5 20 01 cmp %l4, 1
200df00: 28 80 00 05 bleu,a 200df14 <rtems_bdbuf_get_buffer_from_lru_list+0x100><== NEVER TAKEN
200df04: f0 05 60 10 ld [ %l5 + 0x10 ], %i0 <== NOT EXECUTED
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
200df08: 7f ff f8 8c call 200c138 <rtems_bdbuf_wake>
200df0c: 90 10 00 1c mov %i4, %o0
200df10: f0 05 60 10 ld [ %l5 + 0x10 ], %i0
}
else if (bd->group->users == 0)
empty_bd = rtems_bdbuf_group_realloc (bd->group, bds_per_group);
}
if (empty_bd != NULL)
200df14: 80 a6 20 00 cmp %i0, 0
200df18: 32 80 00 0f bne,a 200df54 <rtems_bdbuf_get_buffer_from_lru_list+0x140><== ALWAYS TAKEN
200df1c: c0 26 20 08 clr [ %i0 + 8 ]
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
200df20: e0 04 00 00 ld [ %l0 ], %l0 <== NOT EXECUTED
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))
200df24: 80 a4 00 1d cmp %l0, %i5
200df28: 12 bf ff c5 bne 200de3c <rtems_bdbuf_get_buffer_from_lru_list+0x28>
200df2c: 01 00 00 00 nop
node = rtems_chain_next (node);
}
return NULL;
}
200df30: 81 c7 e0 08 ret
200df34: 91 e8 20 00 restore %g0, 0, %o0
*/
if (bd->waiters == 0)
{
if (bd->group->bds_per_group == bds_per_group)
{
rtems_bdbuf_remove_from_tree_and_lru_list (bd);
200df38: 7f ff fc 5e call 200d0b0 <rtems_bdbuf_remove_from_tree_and_lru_list>
200df3c: 90 10 00 10 mov %l0, %o0
200df40: b0 10 00 10 mov %l0, %i0
}
else if (bd->group->users == 0)
empty_bd = rtems_bdbuf_group_realloc (bd->group, bds_per_group);
}
if (empty_bd != NULL)
200df44: 80 a6 20 00 cmp %i0, 0
200df48: 22 bf ff f7 be,a 200df24 <rtems_bdbuf_get_buffer_from_lru_list+0x110><== NEVER TAKEN
200df4c: e0 04 00 00 ld [ %l0 ], %l0 <== NOT EXECUTED
dev_t dev,
rtems_blkdev_bnum block)
{
bd->dev = dev;
bd->block = block;
bd->avl.left = NULL;
200df50: c0 26 20 08 clr [ %i0 + 8 ]
bd->avl.right = NULL;
200df54: c0 26 20 0c clr [ %i0 + 0xc ]
rtems_bdbuf_buffer* node)
{
dev_t dev = node->dev;
rtems_blkdev_bnum block = node->block;
rtems_bdbuf_buffer* p = *root;
200df58: c2 04 60 40 ld [ %l1 + 0x40 ], %g1
static void
rtems_bdbuf_setup_empty_buffer (rtems_bdbuf_buffer *bd,
dev_t dev,
rtems_blkdev_bnum block)
{
bd->dev = dev;
200df5c: e4 26 20 18 st %l2, [ %i0 + 0x18 ]
200df60: f2 26 20 1c st %i1, [ %i0 + 0x1c ]
bd->block = block;
200df64: f4 26 20 20 st %i2, [ %i0 + 0x20 ]
bd->avl.left = NULL;
bd->avl.right = NULL;
bd->waiters = 0;
200df68: c0 26 20 2c clr [ %i0 + 0x2c ]
rtems_bdbuf_buffer* buf_stack[RTEMS_BDBUF_AVL_MAX_HEIGHT];
rtems_bdbuf_buffer** buf_prev = buf_stack;
bool modified = false;
if (p == NULL)
200df6c: 80 a0 60 00 cmp %g1, 0
200df70: 02 80 00 b2 be 200e238 <rtems_bdbuf_get_buffer_from_lru_list+0x424>
200df74: 98 10 20 01 mov 1, %o4
while (p != NULL)
{
*buf_prev++ = p;
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200df78: c6 00 60 18 ld [ %g1 + 0x18 ], %g3
rtems_bdbuf_buffer* buf_stack[RTEMS_BDBUF_AVL_MAX_HEIGHT];
rtems_bdbuf_buffer** buf_prev = buf_stack;
bool modified = false;
if (p == NULL)
200df7c: 96 07 bf 80 add %fp, -128, %o3
200df80: 84 10 00 0b mov %o3, %g2
return 0;
}
while (p != NULL)
{
*buf_prev++ = p;
200df84: c2 22 c0 00 st %g1, [ %o3 ]
break;
}
}
else if ((p->dev != dev) || (p->block != block))
{
p->avl.cache = -1;
200df88: 94 10 3f ff mov -1, %o2
while (p != NULL)
{
*buf_prev++ = p;
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200df8c: 80 a4 80 03 cmp %l2, %g3
return 0;
}
while (p != NULL)
{
*buf_prev++ = p;
200df90: 88 00 a0 04 add %g2, 4, %g4
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200df94: 18 80 00 17 bgu 200dff0 <rtems_bdbuf_get_buffer_from_lru_list+0x1dc><== NEVER TAKEN
200df98: da 00 60 1c ld [ %g1 + 0x1c ], %o5
200df9c: 80 a4 80 03 cmp %l2, %g3
200dfa0: 32 80 00 09 bne,a 200dfc4 <rtems_bdbuf_get_buffer_from_lru_list+0x1b0><== NEVER TAKEN
200dfa4: c6 00 60 08 ld [ %g1 + 8 ], %g3 <== NOT EXECUTED
200dfa8: 80 a6 40 0d cmp %i1, %o5
200dfac: 38 80 00 12 bgu,a 200dff4 <rtems_bdbuf_get_buffer_from_lru_list+0x1e0><== NEVER TAKEN
200dfb0: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
200dfb4: 80 a6 40 0d cmp %i1, %o5
200dfb8: 22 80 00 40 be,a 200e0b8 <rtems_bdbuf_get_buffer_from_lru_list+0x2a4><== ALWAYS TAKEN
200dfbc: c6 00 60 20 ld [ %g1 + 0x20 ], %g3
}
}
else if ((p->dev != dev) || (p->block != block))
{
p->avl.cache = -1;
q = p->avl.left;
200dfc0: c6 00 60 08 ld [ %g1 + 8 ], %g3 <== NOT EXECUTED
if (q == NULL)
200dfc4: 80 a0 e0 00 cmp %g3, 0
200dfc8: 02 80 00 49 be 200e0ec <rtems_bdbuf_get_buffer_from_lru_list+0x2d8>
200dfcc: d4 28 60 10 stb %o2, [ %g1 + 0x10 ]
{
q = node;
p->avl.left = q;
200dfd0: 82 10 00 03 mov %g3, %g1
while (p != NULL)
{
*buf_prev++ = p;
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200dfd4: c6 00 60 18 ld [ %g1 + 0x18 ], %g3
p->avl.cache = -1;
q = p->avl.left;
if (q == NULL)
{
q = node;
p->avl.left = q;
200dfd8: 84 10 00 04 mov %g4, %g2
return 0;
}
while (p != NULL)
{
*buf_prev++ = p;
200dfdc: c2 20 80 00 st %g1, [ %g2 ]
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200dfe0: 80 a4 80 03 cmp %l2, %g3
return 0;
}
while (p != NULL)
{
*buf_prev++ = p;
200dfe4: 88 00 a0 04 add %g2, 4, %g4
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200dfe8: 08 bf ff ee bleu 200dfa0 <rtems_bdbuf_get_buffer_from_lru_list+0x18c><== ALWAYS TAKEN
200dfec: da 00 60 1c ld [ %g1 + 0x1c ], %o5
{
p->avl.cache = 1;
q = p->avl.right;
200dff0: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
if (q == NULL)
200dff4: 80 a0 e0 00 cmp %g3, 0
200dff8: 12 bf ff f6 bne 200dfd0 <rtems_bdbuf_get_buffer_from_lru_list+0x1bc>
200dffc: d8 28 60 10 stb %o4, [ %g1 + 0x10 ]
{
q = node;
p->avl.right = q = node;
200e000: f0 20 60 0c st %i0, [ %g1 + 0xc ]
200e004: c8 08 60 10 ldub [ %g1 + 0x10 ], %g4
}
p = q;
}
q->avl.left = q->avl.right = NULL;
200e008: c0 26 20 0c clr [ %i0 + 0xc ]
200e00c: c0 26 20 08 clr [ %i0 + 8 ]
q->avl.bal = 0;
200e010: c0 2e 20 11 clrb [ %i0 + 0x11 ]
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;
200e014: 94 10 20 01 mov 1, %o2
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;
200e018: 10 80 00 11 b 200e05c <rtems_bdbuf_get_buffer_from_lru_list+0x248>
200e01c: 92 10 3f ff mov -1, %o1
p->avl.bal = 0;
modified = false;
break;
case 0:
p->avl.bal = 1;
200e020: 86 10 00 01 mov %g1, %g3
200e024: 9a 10 20 01 mov 1, %o5
default:
break;
}
}
q = p;
if (buf_prev > buf_stack)
200e028: 80 a0 80 0b cmp %g2, %o3
200e02c: 28 80 00 1f bleu,a 200e0a8 <rtems_bdbuf_get_buffer_from_lru_list+0x294>
200e030: c6 24 60 40 st %g3, [ %l1 + 0x40 ]
{
p = *--buf_prev;
200e034: 84 00 bf fc add %g2, -4, %g2
200e038: c2 00 80 00 ld [ %g2 ], %g1
if (p->avl.cache == -1)
200e03c: d8 48 60 10 ldsb [ %g1 + 0x10 ], %o4
200e040: 80 a3 3f ff cmp %o4, -1
200e044: 02 80 00 33 be 200e110 <rtems_bdbuf_get_buffer_from_lru_list+0x2fc>
200e048: c8 08 60 10 ldub [ %g1 + 0x10 ], %g4
{
p->avl.left = q;
}
else
{
p->avl.right = q;
200e04c: c6 20 60 0c st %g3, [ %g1 + 0xc ]
q->avl.left = q->avl.right = NULL;
q->avl.bal = 0;
modified = true;
buf_prev--;
while (modified)
200e050: 80 8b 60 ff btst 0xff, %o5
200e054: 22 80 00 16 be,a 200e0ac <rtems_bdbuf_get_buffer_from_lru_list+0x298>
200e058: 82 10 20 01 mov 1, %g1
{
if (p->avl.cache == -1)
200e05c: 87 29 20 18 sll %g4, 0x18, %g3
200e060: 87 38 e0 18 sra %g3, 0x18, %g3
200e064: 80 a0 ff ff cmp %g3, -1
200e068: 22 80 00 23 be,a 200e0f4 <rtems_bdbuf_get_buffer_from_lru_list+0x2e0>
200e06c: c8 48 60 11 ldsb [ %g1 + 0x11 ], %g4
break;
}
}
else
{
switch (p->avl.bal)
200e070: c6 48 60 11 ldsb [ %g1 + 0x11 ], %g3
200e074: 80 a0 e0 00 cmp %g3, 0
200e078: 22 bf ff ea be,a 200e020 <rtems_bdbuf_get_buffer_from_lru_list+0x20c>
200e07c: d4 28 60 11 stb %o2, [ %g1 + 0x11 ]
200e080: 80 a0 e0 01 cmp %g3, 1
200e084: 02 80 00 25 be 200e118 <rtems_bdbuf_get_buffer_from_lru_list+0x304>
200e088: 80 a0 ff ff cmp %g3, -1
200e08c: 22 80 00 15 be,a 200e0e0 <rtems_bdbuf_get_buffer_from_lru_list+0x2cc><== ALWAYS TAKEN
200e090: c0 28 60 11 clrb [ %g1 + 0x11 ]
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;
200e094: 86 10 00 01 mov %g1, %g3 <== NOT EXECUTED
default:
break;
}
}
q = p;
if (buf_prev > buf_stack)
200e098: 80 a0 80 0b cmp %g2, %o3 <== NOT EXECUTED
200e09c: 18 bf ff e6 bgu 200e034 <rtems_bdbuf_get_buffer_from_lru_list+0x220><== NOT EXECUTED
200e0a0: 9a 10 20 01 mov 1, %o5 <== NOT EXECUTED
p->avl.right = q;
}
}
else
{
*root = p;
200e0a4: c6 24 60 40 st %g3, [ %l1 + 0x40 ] <== NOT EXECUTED
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200e0a8: 82 10 20 01 mov 1, %g1
200e0ac: c2 26 20 28 st %g1, [ %i0 + 0x28 ]
if (empty_bd != NULL)
{
rtems_bdbuf_setup_empty_buffer (empty_bd, dev, block);
return empty_bd;
200e0b0: 81 c7 e0 08 ret
200e0b4: 81 e8 00 00 restore
while (p != NULL)
{
*buf_prev++ = p;
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200e0b8: 80 a6 80 03 cmp %i2, %g3
200e0bc: 38 bf ff ce bgu,a 200dff4 <rtems_bdbuf_get_buffer_from_lru_list+0x1e0>
200e0c0: c6 00 60 0c ld [ %g1 + 0xc ], %g3
q = node;
p->avl.right = q = node;
break;
}
}
else if ((p->dev != dev) || (p->block != block))
200e0c4: 80 a6 80 03 cmp %i2, %g3
200e0c8: 32 bf ff bf bne,a 200dfc4 <rtems_bdbuf_get_buffer_from_lru_list+0x1b0><== ALWAYS TAKEN
200e0cc: c6 00 60 08 ld [ %g1 + 8 ], %g3
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);
200e0d0: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200e0d4: 7f ff e8 84 call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200e0d8: 90 12 20 1b or %o0, 0x1b, %o0 ! 4200001b <RAM_END+0x3fc0001b><== NOT EXECUTED
else
{
switch (p->avl.bal)
{
case -1:
p->avl.bal = 0;
200e0dc: c0 28 60 11 clrb [ %g1 + 0x11 ] <== NOT EXECUTED
200e0e0: 86 10 00 01 mov %g1, %g3
200e0e4: 10 bf ff d1 b 200e028 <rtems_bdbuf_get_buffer_from_lru_list+0x214>
200e0e8: 9a 10 20 00 clr %o5
p->avl.cache = -1;
q = p->avl.left;
if (q == NULL)
{
q = node;
p->avl.left = q;
200e0ec: 10 bf ff c6 b 200e004 <rtems_bdbuf_get_buffer_from_lru_list+0x1f0>
200e0f0: f0 20 60 08 st %i0, [ %g1 + 8 ]
while (modified)
{
if (p->avl.cache == -1)
{
switch (p->avl.bal)
200e0f4: 80 a1 20 00 cmp %g4, 0
200e0f8: 12 80 00 24 bne 200e188 <rtems_bdbuf_get_buffer_from_lru_list+0x374>
200e0fc: 80 a1 20 01 cmp %g4, 1
p->avl.bal = 0;
modified = false;
break;
case 0:
p->avl.bal = -1;
200e100: c6 28 60 11 stb %g3, [ %g1 + 0x11 ]
200e104: 9a 10 20 01 mov 1, %o5
200e108: 10 bf ff c8 b 200e028 <rtems_bdbuf_get_buffer_from_lru_list+0x214>
200e10c: 86 10 00 01 mov %g1, %g3
{
p = *--buf_prev;
if (p->avl.cache == -1)
{
p->avl.left = q;
200e110: 10 bf ff d0 b 200e050 <rtems_bdbuf_get_buffer_from_lru_list+0x23c>
200e114: c6 20 60 08 st %g3, [ %g1 + 8 ]
case 0:
p->avl.bal = 1;
break;
case 1:
p1 = p->avl.right;
200e118: c6 00 60 0c ld [ %g1 + 0xc ], %g3
if (p1->avl.bal == 1) /* simple RR-turn */
200e11c: c8 48 e0 11 ldsb [ %g3 + 0x11 ], %g4
200e120: 80 a1 20 01 cmp %g4, 1
200e124: 02 80 00 35 be 200e1f8 <rtems_bdbuf_get_buffer_from_lru_list+0x3e4><== ALWAYS TAKEN
200e128: c8 00 e0 08 ld [ %g3 + 8 ], %g4
p = p1;
}
else /* double RL-turn */
{
p2 = p1->avl.left;
p1->avl.left = p2->avl.right;
200e12c: da 01 20 0c ld [ %g4 + 0xc ], %o5 <== NOT EXECUTED
p2->avl.right = p1;
200e130: c6 21 20 0c st %g3, [ %g4 + 0xc ] <== NOT EXECUTED
p = p1;
}
else /* double RL-turn */
{
p2 = p1->avl.left;
p1->avl.left = p2->avl.right;
200e134: da 20 e0 08 st %o5, [ %g3 + 8 ] <== NOT EXECUTED
p2->avl.right = p1;
p->avl.right = p2->avl.left;
200e138: d8 01 20 08 ld [ %g4 + 8 ], %o4 <== NOT EXECUTED
p2->avl.left = p;
if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
200e13c: da 49 20 11 ldsb [ %g4 + 0x11 ], %o5 <== 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;
200e140: d8 20 60 0c st %o4, [ %g1 + 0xc ] <== NOT EXECUTED
p2->avl.left = p;
if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
200e144: 80 a3 60 01 cmp %o5, 1 <== NOT EXECUTED
200e148: 02 80 00 32 be 200e210 <rtems_bdbuf_get_buffer_from_lru_list+0x3fc><== NOT EXECUTED
200e14c: c2 21 20 08 st %g1, [ %g4 + 8 ] <== NOT EXECUTED
200e150: c0 28 60 11 clrb [ %g1 + 0x11 ] <== NOT EXECUTED
if (p2->avl.bal == -1) p1->avl.bal = +1; else p1->avl.bal = 0;
200e154: c2 49 20 11 ldsb [ %g4 + 0x11 ], %g1 <== NOT EXECUTED
200e158: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED
200e15c: 22 80 00 07 be,a 200e178 <rtems_bdbuf_get_buffer_from_lru_list+0x364><== NOT EXECUTED
200e160: d4 28 e0 11 stb %o2, [ %g3 + 0x11 ] <== NOT EXECUTED
200e164: c0 28 e0 11 clrb [ %g3 + 0x11 ] <== NOT EXECUTED
p = p2;
}
p->avl.bal = 0;
200e168: 9a 10 20 00 clr %o5
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;
if (p2->avl.bal == -1) p1->avl.bal = +1; else p1->avl.bal = 0;
200e16c: 86 10 00 04 mov %g4, %g3
p = p2;
}
p->avl.bal = 0;
200e170: 10 bf ff ae b 200e028 <rtems_bdbuf_get_buffer_from_lru_list+0x214>
200e174: c0 28 e0 11 clrb [ %g3 + 0x11 ]
200e178: 9a 10 20 00 clr %o5 <== NOT EXECUTED
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;
if (p2->avl.bal == -1) p1->avl.bal = +1; else p1->avl.bal = 0;
200e17c: 86 10 00 04 mov %g4, %g3 <== NOT EXECUTED
p = p2;
}
p->avl.bal = 0;
200e180: 10 bf ff aa b 200e028 <rtems_bdbuf_get_buffer_from_lru_list+0x214><== NOT EXECUTED
200e184: c0 28 e0 11 clrb [ %g3 + 0x11 ] <== NOT EXECUTED
while (modified)
{
if (p->avl.cache == -1)
{
switch (p->avl.bal)
200e188: 02 bf ff d5 be 200e0dc <rtems_bdbuf_get_buffer_from_lru_list+0x2c8><== NEVER TAKEN
200e18c: 80 a1 3f ff cmp %g4, -1
200e190: 12 bf ff c2 bne 200e098 <rtems_bdbuf_get_buffer_from_lru_list+0x284><== NEVER TAKEN
200e194: 86 10 00 01 mov %g1, %g3
case 0:
p->avl.bal = -1;
break;
case -1:
p1 = p->avl.left;
200e198: c6 00 60 08 ld [ %g1 + 8 ], %g3
if (p1->avl.bal == -1) /* simple LL-turn */
200e19c: c8 48 e0 11 ldsb [ %g3 + 0x11 ], %g4
200e1a0: 80 a1 3f ff cmp %g4, -1
200e1a4: 02 80 00 1d be 200e218 <rtems_bdbuf_get_buffer_from_lru_list+0x404><== NEVER TAKEN
200e1a8: c8 00 e0 0c ld [ %g3 + 0xc ], %g4
p = p1;
}
else /* double LR-turn */
{
p2 = p1->avl.right;
p1->avl.right = p2->avl.left;
200e1ac: da 01 20 08 ld [ %g4 + 8 ], %o5
p2->avl.left = p1;
200e1b0: c6 21 20 08 st %g3, [ %g4 + 8 ]
p = p1;
}
else /* double LR-turn */
{
p2 = p1->avl.right;
p1->avl.right = p2->avl.left;
200e1b4: da 20 e0 0c st %o5, [ %g3 + 0xc ]
p2->avl.left = p1;
p->avl.left = p2->avl.right;
200e1b8: d8 01 20 0c ld [ %g4 + 0xc ], %o4
p2->avl.right = p;
if (p2->avl.bal == -1) p->avl.bal = +1; else p->avl.bal = 0;
200e1bc: da 49 20 11 ldsb [ %g4 + 0x11 ], %o5
else /* double LR-turn */
{
p2 = p1->avl.right;
p1->avl.right = p2->avl.left;
p2->avl.left = p1;
p->avl.left = p2->avl.right;
200e1c0: d8 20 60 08 st %o4, [ %g1 + 8 ]
p2->avl.right = p;
if (p2->avl.bal == -1) p->avl.bal = +1; else p->avl.bal = 0;
200e1c4: 80 a3 7f ff cmp %o5, -1
200e1c8: 02 80 00 1a be 200e230 <rtems_bdbuf_get_buffer_from_lru_list+0x41c><== NEVER TAKEN
200e1cc: c2 21 20 0c st %g1, [ %g4 + 0xc ]
200e1d0: c0 28 60 11 clrb [ %g1 + 0x11 ]
if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
200e1d4: c2 49 20 11 ldsb [ %g4 + 0x11 ], %g1
200e1d8: 80 a0 60 01 cmp %g1, 1
200e1dc: 32 bf ff e3 bne,a 200e168 <rtems_bdbuf_get_buffer_from_lru_list+0x354><== ALWAYS TAKEN
200e1e0: c0 28 e0 11 clrb [ %g3 + 0x11 ]
200e1e4: d2 28 e0 11 stb %o1, [ %g3 + 0x11 ] <== NOT EXECUTED
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;
200e1e8: 9a 10 20 00 clr %o5 <== NOT EXECUTED
p1->avl.right = p2->avl.left;
p2->avl.left = p1;
p->avl.left = p2->avl.right;
p2->avl.right = 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;
200e1ec: 86 10 00 04 mov %g4, %g3 <== NOT EXECUTED
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;
200e1f0: 10 bf ff 8e b 200e028 <rtems_bdbuf_get_buffer_from_lru_list+0x214><== NOT EXECUTED
200e1f4: c0 28 e0 11 clrb [ %g3 + 0x11 ] <== NOT EXECUTED
p1 = p->avl.right;
if (p1->avl.bal == 1) /* simple RR-turn */
{
p->avl.right = p1->avl.left;
p1->avl.left = p;
p->avl.bal = 0;
200e1f8: 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;
200e1fc: c8 20 60 0c st %g4, [ %g1 + 0xc ]
p1->avl.left = p;
200e200: c2 20 e0 08 st %g1, [ %g3 + 8 ]
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;
200e204: c0 28 e0 11 clrb [ %g3 + 0x11 ]
200e208: 10 bf ff 88 b 200e028 <rtems_bdbuf_get_buffer_from_lru_list+0x214>
200e20c: 9a 10 20 00 clr %o5
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;
200e210: 10 bf ff d1 b 200e154 <rtems_bdbuf_get_buffer_from_lru_list+0x340><== NOT EXECUTED
200e214: d2 28 60 11 stb %o1, [ %g1 + 0x11 ] <== NOT EXECUTED
p1 = p->avl.left;
if (p1->avl.bal == -1) /* simple LL-turn */
{
p->avl.left = p1->avl.right;
p1->avl.right = p;
p->avl.bal = 0;
200e218: 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;
200e21c: c8 20 60 08 st %g4, [ %g1 + 8 ] <== NOT EXECUTED
p1->avl.right = p;
200e220: c2 20 e0 0c st %g1, [ %g3 + 0xc ] <== NOT EXECUTED
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;
200e224: c0 28 e0 11 clrb [ %g3 + 0x11 ] <== NOT EXECUTED
200e228: 10 bf ff 80 b 200e028 <rtems_bdbuf_get_buffer_from_lru_list+0x214><== NOT EXECUTED
200e22c: 9a 10 20 00 clr %o5 <== NOT EXECUTED
p2 = p1->avl.right;
p1->avl.right = p2->avl.left;
p2->avl.left = p1;
p->avl.left = p2->avl.right;
p2->avl.right = p;
if (p2->avl.bal == -1) p->avl.bal = +1; else p->avl.bal = 0;
200e230: 10 bf ff e9 b 200e1d4 <rtems_bdbuf_get_buffer_from_lru_list+0x3c0><== NOT EXECUTED
200e234: d4 28 60 11 stb %o2, [ %g1 + 0x11 ] <== NOT EXECUTED
bool modified = false;
if (p == NULL)
{
*root = node;
200e238: f0 24 60 40 st %i0, [ %l1 + 0x40 ]
node->avl.left = NULL;
200e23c: c0 26 20 08 clr [ %i0 + 8 ]
node->avl.right = NULL;
200e240: c0 26 20 0c clr [ %i0 + 0xc ]
node->avl.bal = 0;
200e244: 10 bf ff 99 b 200e0a8 <rtems_bdbuf_get_buffer_from_lru_list+0x294>
200e248: c0 2e 20 11 clrb [ %i0 + 0x11 ]
0200c868 <rtems_bdbuf_init>:
*
* @return rtems_status_code The initialisation status.
*/
rtems_status_code
rtems_bdbuf_init (void)
{
200c868: 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())
200c86c: 03 00 80 87 sethi %hi(0x2021c00), %g1
200c870: c2 00 60 3c ld [ %g1 + 0x3c ], %g1 ! 2021c3c <_ISR_Nest_level>
200c874: 80 a0 60 00 cmp %g1, 0
200c878: 12 80 00 0d bne 200c8ac <rtems_bdbuf_init+0x44> <== NEVER TAKEN
200c87c: 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)
200c880: 25 00 80 7e sethi %hi(0x201f800), %l2
200c884: a4 14 a2 3c or %l2, 0x23c, %l2 ! 201fa3c <rtems_bdbuf_configuration>
200c888: e8 04 a0 24 ld [ %l2 + 0x24 ], %l4
200c88c: e6 04 a0 20 ld [ %l2 + 0x20 ], %l3
200c890: 90 10 00 14 mov %l4, %o0
200c894: 92 10 00 13 mov %l3, %o1
200c898: 40 00 45 05 call 201dcac <.urem>
200c89c: b0 10 20 0a mov 0xa, %i0
200c8a0: 80 a2 20 00 cmp %o0, 0
200c8a4: 02 80 00 04 be 200c8b4 <rtems_bdbuf_init+0x4c> <== ALWAYS TAKEN
200c8a8: 01 00 00 00 nop
}
bdbuf_cache.initialised = false;
return RTEMS_UNSATISFIED;
}
200c8ac: 81 c7 e0 08 ret <== NOT EXECUTED
200c8b0: 81 e8 00 00 restore <== NOT EXECUTED
/*
* 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 ();
200c8b4: 7f ff ff 9b call 200c720 <rtems_bdbuf_disable_preemption>
200c8b8: 23 00 80 85 sethi %hi(0x2021400), %l1
if (bdbuf_cache.initialised)
200c8bc: a0 14 63 c0 or %l1, 0x3c0, %l0 ! 20217c0 <bdbuf_cache>
200c8c0: c2 0c 20 88 ldub [ %l0 + 0x88 ], %g1
200c8c4: 80 a0 60 00 cmp %g1, 0
200c8c8: 02 80 00 06 be 200c8e0 <rtems_bdbuf_init+0x78> <== ALWAYS TAKEN
200c8cc: aa 10 00 08 mov %o0, %l5
{
rtems_bdbuf_restore_preemption (prev_mode);
200c8d0: 7f ff ff a3 call 200c75c <rtems_bdbuf_restore_preemption> <== NOT EXECUTED
200c8d4: b0 10 20 0c mov 0xc, %i0 <== NOT EXECUTED
return RTEMS_RESOURCE_IN_USE;
200c8d8: 81 c7 e0 08 ret <== NOT EXECUTED
200c8dc: 81 e8 00 00 restore <== NOT EXECUTED
}
memset(&bdbuf_cache, 0, sizeof(bdbuf_cache));
200c8e0: 92 10 20 00 clr %o1
200c8e4: 94 10 20 90 mov 0x90, %o2
200c8e8: 40 00 21 de call 2015060 <memset>
200c8ec: 90 10 00 10 mov %l0, %o0
bdbuf_cache.initialised = true;
200c8f0: 82 10 20 01 mov 1, %g1
rtems_bdbuf_restore_preemption (prev_mode);
200c8f4: 90 10 00 15 mov %l5, %o0
200c8f8: 7f ff ff 99 call 200c75c <rtems_bdbuf_restore_preemption>
200c8fc: 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);
200c900: 82 04 20 0c add %l0, 0xc, %g1
200c904: c2 24 20 08 st %g1, [ %l0 + 8 ]
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
200c908: 82 04 20 08 add %l0, 8, %g1
200c90c: 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);
200c910: 82 04 20 48 add %l0, 0x48, %g1
200c914: c2 24 20 44 st %g1, [ %l0 + 0x44 ]
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
200c918: 82 04 20 44 add %l0, 0x44, %g1
200c91c: 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);
200c920: 82 04 20 54 add %l0, 0x54, %g1
200c924: c2 24 20 50 st %g1, [ %l0 + 0x50 ]
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
200c928: 82 04 20 50 add %l0, 0x50, %g1
200c92c: 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);
200c930: 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;
200c934: 05 3f ff ff sethi %hi(0xfffffc00), %g2
200c938: c2 24 20 5c st %g1, [ %l0 + 0x5c ]
200c93c: 84 10 a3 ff or %g2, 0x3ff, %g2
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
200c940: 82 04 20 5c add %l0, 0x5c, %g1
200c944: 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;
200c948: c0 24 20 0c clr [ %l0 + 0xc ]
200c94c: c0 24 20 48 clr [ %l0 + 0x48 ]
200c950: c0 24 20 54 clr [ %l0 + 0x54 ]
200c954: c0 24 20 60 clr [ %l0 + 0x60 ]
200c958: c4 3c 20 38 std %g2, [ %l0 + 0x38 ]
the_chain->last = _Chain_Head(the_chain);
200c95c: 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'),
200c960: 2b 10 91 10 sethi %hi(0x42444000), %l5
200c964: 92 10 20 01 mov 1, %o1
200c968: 90 15 63 6c or %l5, 0x36c, %o0
200c96c: 94 10 20 54 mov 0x54, %o2
200c970: 96 10 20 00 clr %o3
200c974: 7f ff ec 34 call 2007a44 <rtems_semaphore_create>
200c978: 98 04 20 28 add %l0, 0x28, %o4
1, RTEMS_BDBUF_CACHE_LOCK_ATTRIBS, 0,
&bdbuf_cache.lock);
if (sc != RTEMS_SUCCESSFUL)
200c97c: 80 a2 20 00 cmp %o0, 0
200c980: 02 80 00 25 be 200ca14 <rtems_bdbuf_init+0x1ac> <== ALWAYS TAKEN
200c984: 01 00 00 00 nop
return RTEMS_SUCCESSFUL;
error:
if (bdbuf_cache.swapout != 0)
200c988: d0 04 63 c0 ld [ %l1 + 0x3c0 ], %o0 <== NOT EXECUTED
200c98c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200c990: 12 80 00 1e bne 200ca08 <rtems_bdbuf_init+0x1a0> <== NOT EXECUTED
200c994: 01 00 00 00 nop <== NOT EXECUTED
rtems_task_delete (bdbuf_cache.swapout);
free (bdbuf_cache.buffers);
200c998: 7f ff dc fe call 2003d90 <free> <== NOT EXECUTED
200c99c: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 <== NOT EXECUTED
free (bdbuf_cache.groups);
200c9a0: 7f ff dc fc call 2003d90 <free> <== NOT EXECUTED
200c9a4: d0 04 20 84 ld [ %l0 + 0x84 ], %o0 <== NOT EXECUTED
free (bdbuf_cache.bds);
200c9a8: 7f ff dc fa call 2003d90 <free> <== NOT EXECUTED
200c9ac: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.buffer_waiters.sema);
200c9b0: 7f ff ec 99 call 2007c14 <rtems_semaphore_delete> <== NOT EXECUTED
200c9b4: d0 04 20 7c ld [ %l0 + 0x7c ], %o0 <== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.access_waiters.sema);
200c9b8: 7f ff ec 97 call 2007c14 <rtems_semaphore_delete> <== NOT EXECUTED
200c9bc: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.transfer_waiters.sema);
200c9c0: 7f ff ec 95 call 2007c14 <rtems_semaphore_delete> <== NOT EXECUTED
200c9c4: d0 04 20 74 ld [ %l0 + 0x74 ], %o0 <== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.sync_lock);
200c9c8: 7f ff ec 93 call 2007c14 <rtems_semaphore_delete> <== NOT EXECUTED
200c9cc: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
if (bdbuf_cache.lock != 0)
200c9d0: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED
200c9d4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200c9d8: 12 80 00 05 bne 200c9ec <rtems_bdbuf_init+0x184> <== NOT EXECUTED
200c9dc: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_bdbuf_unlock_cache ();
rtems_semaphore_delete (bdbuf_cache.lock);
}
bdbuf_cache.initialised = false;
200c9e0: c0 2c 20 88 clrb [ %l0 + 0x88 ] <== NOT EXECUTED
return RTEMS_UNSATISFIED;
}
200c9e4: 81 c7 e0 08 ret <== NOT EXECUTED
200c9e8: 91 e8 20 0d restore %g0, 0xd, %o0 <== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.transfer_waiters.sema);
rtems_semaphore_delete (bdbuf_cache.sync_lock);
if (bdbuf_cache.lock != 0)
{
rtems_bdbuf_unlock_cache ();
200c9ec: 7f ff fe 59 call 200c350 <rtems_bdbuf_unlock_cache> <== NOT EXECUTED
200c9f0: b0 10 20 0d mov 0xd, %i0 <== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.lock);
200c9f4: 7f ff ec 88 call 2007c14 <rtems_semaphore_delete> <== NOT EXECUTED
200c9f8: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
200c9fc: c0 2c 20 88 clrb [ %l0 + 0x88 ] <== NOT EXECUTED
200ca00: 81 c7 e0 08 ret <== NOT EXECUTED
200ca04: 81 e8 00 00 restore <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
error:
if (bdbuf_cache.swapout != 0)
rtems_task_delete (bdbuf_cache.swapout);
200ca08: 7f ff ed 6e call 2007fc0 <rtems_task_delete> <== NOT EXECUTED
200ca0c: 01 00 00 00 nop <== NOT EXECUTED
200ca10: 30 bf ff e2 b,a 200c998 <rtems_bdbuf_init+0x130> <== NOT EXECUTED
1, RTEMS_BDBUF_CACHE_LOCK_ATTRIBS, 0,
&bdbuf_cache.lock);
if (sc != RTEMS_SUCCESSFUL)
goto error;
rtems_bdbuf_lock_cache ();
200ca14: 7f ff fd c1 call 200c118 <rtems_bdbuf_lock_cache>
200ca18: 01 00 00 00 nop
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 's'),
200ca1c: 90 15 63 73 or %l5, 0x373, %o0
200ca20: 92 10 20 01 mov 1, %o1
200ca24: 94 10 20 54 mov 0x54, %o2
200ca28: 96 10 20 00 clr %o3
200ca2c: 7f ff ec 06 call 2007a44 <rtems_semaphore_create>
200ca30: 98 04 20 2c add %l0, 0x2c, %o4
1, RTEMS_BDBUF_CACHE_LOCK_ATTRIBS, 0,
&bdbuf_cache.sync_lock);
if (sc != RTEMS_SUCCESSFUL)
200ca34: 80 a2 20 00 cmp %o0, 0
200ca38: 12 bf ff d5 bne 200c98c <rtems_bdbuf_init+0x124> <== NEVER TAKEN
200ca3c: d0 04 63 c0 ld [ %l1 + 0x3c0 ], %o0
goto error;
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 'a'),
200ca40: 90 15 63 61 or %l5, 0x361, %o0
200ca44: 92 10 20 00 clr %o1
200ca48: 94 10 20 24 mov 0x24, %o2
200ca4c: 96 10 20 00 clr %o3
200ca50: 7f ff eb fd call 2007a44 <rtems_semaphore_create>
200ca54: 98 04 20 6c add %l0, 0x6c, %o4
0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
&bdbuf_cache.access_waiters.sema);
if (sc != RTEMS_SUCCESSFUL)
200ca58: 80 a2 20 00 cmp %o0, 0
200ca5c: 12 bf ff cc bne 200c98c <rtems_bdbuf_init+0x124> <== NEVER TAKEN
200ca60: d0 04 63 c0 ld [ %l1 + 0x3c0 ], %o0
goto error;
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 't'),
200ca64: 90 15 63 74 or %l5, 0x374, %o0
200ca68: 92 10 20 00 clr %o1
200ca6c: 94 10 20 24 mov 0x24, %o2
200ca70: 96 10 20 00 clr %o3
200ca74: 7f ff eb f4 call 2007a44 <rtems_semaphore_create>
200ca78: 98 04 20 74 add %l0, 0x74, %o4
0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
&bdbuf_cache.transfer_waiters.sema);
if (sc != RTEMS_SUCCESSFUL)
200ca7c: 80 a2 20 00 cmp %o0, 0
200ca80: 12 bf ff c3 bne 200c98c <rtems_bdbuf_init+0x124> <== NEVER TAKEN
200ca84: d0 04 63 c0 ld [ %l1 + 0x3c0 ], %o0
goto error;
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 'b'),
200ca88: 90 15 63 62 or %l5, 0x362, %o0
200ca8c: 92 10 20 00 clr %o1
200ca90: 94 10 20 24 mov 0x24, %o2
200ca94: 96 10 20 00 clr %o3
200ca98: 7f ff eb eb call 2007a44 <rtems_semaphore_create>
200ca9c: 98 04 20 7c add %l0, 0x7c, %o4
0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
&bdbuf_cache.buffer_waiters.sema);
if (sc != RTEMS_SUCCESSFUL)
200caa0: 80 a2 20 00 cmp %o0, 0
200caa4: 32 bf ff ba bne,a 200c98c <rtems_bdbuf_init+0x124> <== NEVER TAKEN
200caa8: d0 04 63 c0 ld [ %l1 + 0x3c0 ], %o0 <== NOT EXECUTED
/*
* Compute the various number of elements in the cache.
*/
bdbuf_cache.buffer_min_count =
bdbuf_config.size / bdbuf_config.buffer_min;
200caac: d0 04 a0 1c ld [ %l2 + 0x1c ], %o0
200cab0: 40 00 43 d3 call 201d9fc <.udiv>
200cab4: 92 10 00 13 mov %l3, %o1
bdbuf_cache.max_bds_per_group =
bdbuf_config.buffer_max / bdbuf_config.buffer_min;
200cab8: 92 10 00 13 mov %l3, %o1
/*
* Compute the various number of elements in the cache.
*/
bdbuf_cache.buffer_min_count =
bdbuf_config.size / bdbuf_config.buffer_min;
200cabc: aa 10 00 08 mov %o0, %l5
bdbuf_cache.max_bds_per_group =
bdbuf_config.buffer_max / bdbuf_config.buffer_min;
200cac0: 90 10 00 14 mov %l4, %o0
200cac4: 40 00 43 ce call 201d9fc <.udiv>
200cac8: ea 24 20 1c st %l5, [ %l0 + 0x1c ]
bdbuf_cache.group_count =
200cacc: 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 =
200cad0: d0 24 20 20 st %o0, [ %l0 + 0x20 ]
bdbuf_config.buffer_max / bdbuf_config.buffer_min;
bdbuf_cache.group_count =
200cad4: 40 00 43 ca call 201d9fc <.udiv>
200cad8: 90 10 00 15 mov %l5, %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),
200cadc: 92 10 00 15 mov %l5, %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 =
200cae0: 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),
200cae4: 7f ff dc 08 call 2003b04 <calloc>
200cae8: 90 10 20 40 mov 0x40, %o0
bdbuf_cache.buffer_min_count);
if (!bdbuf_cache.bds)
200caec: 80 a2 20 00 cmp %o0, 0
200caf0: 02 bf ff a6 be 200c988 <rtems_bdbuf_init+0x120> <== NEVER TAKEN
200caf4: 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),
200caf8: d2 04 20 80 ld [ %l0 + 0x80 ], %o1
200cafc: 7f ff dc 02 call 2003b04 <calloc>
200cb00: 90 10 20 14 mov 0x14, %o0
bdbuf_cache.group_count);
if (!bdbuf_cache.groups)
200cb04: 80 a2 20 00 cmp %o0, 0
200cb08: 02 bf ff a0 be 200c988 <rtems_bdbuf_init+0x120> <== NEVER TAKEN
200cb0c: 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,
200cb10: d2 04 20 1c ld [ %l0 + 0x1c ], %o1
200cb14: 40 00 43 80 call 201d914 <.umul>
200cb18: 90 10 00 13 mov %l3, %o0
200cb1c: 92 10 20 20 mov 0x20, %o1
200cb20: 94 10 00 08 mov %o0, %o2
200cb24: 40 00 11 88 call 2011144 <rtems_memalign>
200cb28: 90 04 20 18 add %l0, 0x18, %o0
200cb2c: 80 a2 20 00 cmp %o0, 0
200cb30: 12 bf ff 97 bne 200c98c <rtems_bdbuf_init+0x124> <== NEVER TAKEN
200cb34: d0 04 63 c0 ld [ %l1 + 0x3c0 ], %o0
/*
* 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,
200cb38: fa 04 20 84 ld [ %l0 + 0x84 ], %i5
bd = bdbuf_cache.bds, buffer = bdbuf_cache.buffers;
200cb3c: e8 04 20 14 ld [ %l0 + 0x14 ], %l4
200cb40: ee 04 20 18 ld [ %l0 + 0x18 ], %l7
b < bdbuf_cache.buffer_min_count;
b++, bd++, buffer += bdbuf_config.buffer_min)
{
bd->dev = BDBUF_INVALID_DEV;
200cb44: 31 3f ff ff sethi %hi(0xfffffc00), %i0
/*
* 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;
200cb48: ac 10 20 00 clr %l6
b < bdbuf_cache.buffer_min_count;
b++, bd++, buffer += bdbuf_config.buffer_min)
{
bd->dev = BDBUF_INVALID_DEV;
200cb4c: b0 16 23 ff or %i0, 0x3ff, %i0
/*
* 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,
200cb50: aa 10 00 10 mov %l0, %l5
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;
200cb54: b2 10 00 18 mov %i0, %i1
200cb58: b6 04 20 44 add %l0, 0x44, %i3
/*
* 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,
200cb5c: c2 04 20 1c ld [ %l0 + 0x1c ], %g1
200cb60: 92 10 00 14 mov %l4, %o1
200cb64: 80 a5 80 01 cmp %l6, %g1
200cb68: 1a 80 00 12 bcc 200cbb0 <rtems_bdbuf_init+0x348>
200cb6c: 90 10 00 1b mov %i3, %o0
b < bdbuf_cache.buffer_min_count;
b++, bd++, buffer += bdbuf_config.buffer_min)
{
bd->dev = BDBUF_INVALID_DEV;
bd->group = group;
bd->buffer = buffer;
200cb70: ee 25 20 24 st %l7, [ %l4 + 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;
200cb74: fa 25 20 30 st %i5, [ %l4 + 0x30 ]
200cb78: 7f ff ef 31 call 200883c <_Chain_Append>
200cb7c: f0 3d 20 18 std %i0, [ %l4 + 0x18 ]
bd->buffer = buffer;
rtems_chain_append (&bdbuf_cache.lru, &bd->link);
if ((b % bdbuf_cache.max_bds_per_group) ==
200cb80: f8 05 60 20 ld [ %l5 + 0x20 ], %i4
200cb84: 90 10 00 16 mov %l6, %o0
200cb88: 92 10 00 1c mov %i4, %o1
200cb8c: 40 00 44 48 call 201dcac <.urem>
200cb90: a8 05 20 40 add %l4, 0x40, %l4
200cb94: b8 07 3f ff add %i4, -1, %i4
* 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)
200cb98: ae 05 c0 13 add %l7, %l3, %l7
bd->group = group;
bd->buffer = buffer;
rtems_chain_append (&bdbuf_cache.lru, &bd->link);
if ((b % bdbuf_cache.max_bds_per_group) ==
200cb9c: 80 a2 00 1c cmp %o0, %i4
200cba0: 12 bf ff ef bne 200cb5c <rtems_bdbuf_init+0x2f4>
200cba4: ac 05 a0 01 inc %l6
(bdbuf_cache.max_bds_per_group - 1))
group++;
200cba8: 10 bf ff ed b 200cb5c <rtems_bdbuf_init+0x2f4>
200cbac: ba 07 60 14 add %i5, 0x14, %i5
b < bdbuf_cache.group_count;
b++,
group++,
bd += bdbuf_cache.max_bds_per_group)
{
group->bds_per_group = bdbuf_cache.max_bds_per_group;
200cbb0: c8 05 60 20 ld [ %l5 + 0x20 ], %g4
(bdbuf_cache.max_bds_per_group - 1))
group++;
}
for (b = 0,
group = bdbuf_cache.groups,
200cbb4: c2 05 60 84 ld [ %l5 + 0x84 ], %g1
bd = bdbuf_cache.bds;
200cbb8: c6 05 60 14 ld [ %l5 + 0x14 ], %g3
200cbbc: d8 05 60 80 ld [ %l5 + 0x80 ], %o4
b < bdbuf_cache.group_count;
b++,
group++,
bd += bdbuf_cache.max_bds_per_group)
200cbc0: 9b 29 20 06 sll %g4, 6, %o5
200cbc4: 84 10 20 00 clr %g2
if ((b % bdbuf_cache.max_bds_per_group) ==
(bdbuf_cache.max_bds_per_group - 1))
group++;
}
for (b = 0,
200cbc8: 80 a0 80 0c cmp %g2, %o4
200cbcc: 1a 80 00 07 bcc 200cbe8 <rtems_bdbuf_init+0x380>
200cbd0: 84 00 a0 01 inc %g2
b++,
group++,
bd += bdbuf_cache.max_bds_per_group)
{
group->bds_per_group = bdbuf_cache.max_bds_per_group;
group->bdbuf = bd;
200cbd4: c6 20 60 10 st %g3, [ %g1 + 0x10 ]
b < bdbuf_cache.group_count;
b++,
group++,
bd += bdbuf_cache.max_bds_per_group)
{
group->bds_per_group = bdbuf_cache.max_bds_per_group;
200cbd8: 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++,
group++,
200cbdc: 82 00 60 14 add %g1, 0x14, %g1
bd += bdbuf_cache.max_bds_per_group)
200cbe0: 10 bf ff fa b 200cbc8 <rtems_bdbuf_init+0x360>
200cbe4: 86 00 c0 0d add %g3, %o5, %g3
* threads.
*/
bdbuf_cache.swapout_enabled = true;
sc = rtems_task_create (rtems_build_name('B', 'S', 'W', 'P'),
bdbuf_config.swapout_priority ?
200cbe8: d2 04 a0 08 ld [ %l2 + 8 ], %o1
/*
* Create and start swapout task. This task will create and manage the worker
* threads.
*/
bdbuf_cache.swapout_enabled = true;
200cbec: 82 10 20 01 mov 1, %g1
200cbf0: c2 2c 20 04 stb %g1, [ %l0 + 4 ]
sc = rtems_task_create (rtems_build_name('B', 'S', 'W', 'P'),
200cbf4: 80 a2 60 00 cmp %o1, 0
200cbf8: 22 80 00 02 be,a 200cc00 <rtems_bdbuf_init+0x398> <== NEVER TAKEN
200cbfc: 92 10 20 0f mov 0xf, %o1 <== NOT EXECUTED
200cc00: 11 10 94 d5 sethi %hi(0x42535400), %o0
200cc04: 15 00 00 08 sethi %hi(0x2000), %o2
200cc08: 90 12 23 50 or %o0, 0x350, %o0
200cc0c: 96 10 24 00 mov 0x400, %o3
200cc10: 98 10 20 00 clr %o4
200cc14: 7f ff ec a0 call 2007e94 <rtems_task_create>
200cc18: 9a 14 63 c0 or %l1, 0x3c0, %o5
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)
200cc1c: 80 a2 20 00 cmp %o0, 0
200cc20: 12 bf ff 5b bne 200c98c <rtems_bdbuf_init+0x124> <== NEVER TAKEN
200cc24: d0 04 63 c0 ld [ %l1 + 0x3c0 ], %o0
goto error;
sc = rtems_task_start (bdbuf_cache.swapout,
200cc28: 03 00 80 85 sethi %hi(0x2021400), %g1
200cc2c: d0 00 63 c0 ld [ %g1 + 0x3c0 ], %o0 ! 20217c0 <bdbuf_cache>
200cc30: 13 00 80 36 sethi %hi(0x200d800), %o1
200cc34: 94 10 00 10 mov %l0, %o2
200cc38: 7f ff ed 27 call 20080d4 <rtems_task_start>
200cc3c: 92 12 60 5c or %o1, 0x5c, %o1
rtems_bdbuf_swapout_task,
(rtems_task_argument) &bdbuf_cache);
if (sc != RTEMS_SUCCESSFUL)
200cc40: 80 a2 20 00 cmp %o0, 0
200cc44: 12 bf ff 52 bne 200c98c <rtems_bdbuf_init+0x124> <== NEVER TAKEN
200cc48: d0 04 63 c0 ld [ %l1 + 0x3c0 ], %o0
goto error;
rtems_bdbuf_unlock_cache ();
200cc4c: 7f ff fd c1 call 200c350 <rtems_bdbuf_unlock_cache>
200cc50: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
200cc54: 81 c7 e0 08 ret
200cc58: 81 e8 00 00 restore
0200c0e4 <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)
{
200c0e4: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code sc = rtems_semaphore_obtain (lock,
200c0e8: 92 10 20 00 clr %o1
200c0ec: 90 10 00 18 mov %i0, %o0
200c0f0: 7f ff ee f6 call 2007cc8 <rtems_semaphore_obtain>
200c0f4: 94 10 20 00 clr %o2
RTEMS_WAIT,
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
200c0f8: 80 a2 20 00 cmp %o0, 0
200c0fc: 12 80 00 04 bne 200c10c <rtems_bdbuf_lock+0x28> <== NEVER TAKEN
200c100: 01 00 00 00 nop
200c104: 81 c7 e0 08 ret
200c108: 81 e8 00 00 restore
rtems_fatal_error_occurred (fatal_error_code);
200c10c: 7f ff f0 76 call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200c110: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
0200c3b0 <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)
{
200c3b0: 9d e3 bf a0 save %sp, -96, %sp
rtems_disk_device *dd = NULL;
if (!bdbuf_cache.initialised)
200c3b4: 21 00 80 85 sethi %hi(0x2021400), %l0
200c3b8: a0 14 23 c0 or %l0, 0x3c0, %l0 ! 20217c0 <bdbuf_cache>
200c3bc: c2 0c 20 88 ldub [ %l0 + 0x88 ], %g1
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)
{
200c3c0: 90 10 00 18 mov %i0, %o0
rtems_disk_device *dd = NULL;
if (!bdbuf_cache.initialised)
200c3c4: 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)
{
200c3c8: 92 10 00 19 mov %i1, %o1
rtems_disk_device *dd = NULL;
if (!bdbuf_cache.initialised)
200c3cc: 02 80 00 37 be 200c4a8 <rtems_bdbuf_obtain_disk+0xf8> <== NEVER TAKEN
200c3d0: 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);
200c3d4: 7f ff da bb call 2002ec0 <rtems_disk_obtain>
200c3d8: b0 10 20 04 mov 4, %i0
if (dd == NULL)
200c3dc: a2 92 20 00 orcc %o0, 0, %l1
200c3e0: 02 80 00 32 be 200c4a8 <rtems_bdbuf_obtain_disk+0xf8> <== NEVER TAKEN
200c3e4: 80 a7 20 00 cmp %i4, 0
return RTEMS_INVALID_ID;
*dd_ptr = dd;
if (media_block_ptr != NULL)
200c3e8: 02 80 00 11 be 200c42c <rtems_bdbuf_obtain_disk+0x7c>
200c3ec: e2 26 c0 00 st %l1, [ %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)
200c3f0: d6 04 60 20 ld [ %l1 + 0x20 ], %o3
200c3f4: 94 10 20 00 clr %o2
200c3f8: 92 10 00 1a mov %i2, %o1
200c3fc: 40 00 46 d8 call 201df5c <__muldi3>
200c400: 90 10 20 00 clr %o0
200c404: d6 04 60 24 ld [ %l1 + 0x24 ], %o3
200c408: 40 00 48 e7 call 201e7a4 <__udivdi3>
200c40c: 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)
200c410: c2 04 60 1c ld [ %l1 + 0x1c ], %g1
200c414: 80 a0 40 09 cmp %g1, %o1
200c418: 08 80 00 22 bleu 200c4a0 <rtems_bdbuf_obtain_disk+0xf0> <== NEVER TAKEN
200c41c: 90 10 00 11 mov %l1, %o0
{
rtems_disk_release(dd);
return RTEMS_INVALID_NUMBER;
}
*media_block_ptr = mb + dd->start;
200c420: c2 04 60 18 ld [ %l1 + 0x18 ], %g1
200c424: 92 02 40 01 add %o1, %g1, %o1
200c428: d2 27 00 00 st %o1, [ %i4 ]
}
if (bds_per_group_ptr != NULL)
200c42c: 80 a7 60 00 cmp %i5, 0
200c430: 02 80 00 1e be 200c4a8 <rtems_bdbuf_obtain_disk+0xf8>
200c434: b0 10 20 00 clr %i0
{
size_t bds_per_group = rtems_bdbuf_bds_per_group (dd->block_size);
200c438: d0 04 60 20 ld [ %l1 + 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)
200c43c: 03 00 80 7e sethi %hi(0x201f800), %g1
200c440: 82 10 62 3c or %g1, 0x23c, %g1 ! 201fa3c <rtems_bdbuf_configuration>
200c444: c4 00 60 24 ld [ %g1 + 0x24 ], %g2
200c448: 80 a2 00 02 cmp %o0, %g2
200c44c: 38 80 00 15 bgu,a 200c4a0 <rtems_bdbuf_obtain_disk+0xf0> <== NEVER TAKEN
200c450: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
return 0;
bufs_per_size = ((size - 1) / bdbuf_config.buffer_min) + 1;
200c454: d2 00 60 20 ld [ %g1 + 0x20 ], %o1
200c458: 40 00 45 69 call 201d9fc <.udiv>
200c45c: 90 02 3f ff add %o0, -1, %o0
200c460: 90 02 20 01 inc %o0
for (bds_per_size = 1;
200c464: 80 a2 20 01 cmp %o0, 1
200c468: 08 80 00 06 bleu 200c480 <rtems_bdbuf_obtain_disk+0xd0>
200c46c: 92 10 20 01 mov 1, %o1
bds_per_size < bufs_per_size;
bds_per_size <<= 1)
200c470: 93 2a 60 01 sll %o1, 1, %o1
if (size > bdbuf_config.buffer_max)
return 0;
bufs_per_size = ((size - 1) / bdbuf_config.buffer_min) + 1;
for (bds_per_size = 1;
200c474: 80 a2 00 09 cmp %o0, %o1
200c478: 38 bf ff ff bgu,a 200c474 <rtems_bdbuf_obtain_disk+0xc4> <== NEVER TAKEN
200c47c: 93 2a 60 01 sll %o1, 1, %o1 <== NOT EXECUTED
bds_per_size < bufs_per_size;
bds_per_size <<= 1)
;
return bdbuf_cache.max_bds_per_group / bds_per_size;
200c480: 40 00 45 5f call 201d9fc <.udiv>
200c484: d0 04 20 20 ld [ %l0 + 0x20 ], %o0
if (bds_per_group_ptr != NULL)
{
size_t bds_per_group = rtems_bdbuf_bds_per_group (dd->block_size);
if (bds_per_group == 0)
200c488: 80 a2 20 00 cmp %o0, 0
200c48c: 22 80 00 05 be,a 200c4a0 <rtems_bdbuf_obtain_disk+0xf0> <== NEVER TAKEN
200c490: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
{
rtems_disk_release (dd);
return RTEMS_INVALID_NUMBER;
}
*bds_per_group_ptr = bds_per_group;
200c494: d0 27 40 00 st %o0, [ %i5 ]
}
return RTEMS_SUCCESSFUL;
}
200c498: 81 c7 e0 08 ret
200c49c: 91 e8 20 00 restore %g0, 0, %o0
{
size_t bds_per_group = rtems_bdbuf_bds_per_group (dd->block_size);
if (bds_per_group == 0)
{
rtems_disk_release (dd);
200c4a0: 7f ff da 73 call 2002e6c <rtems_disk_release> <== NOT EXECUTED
200c4a4: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
200c4a8: 81 c7 e0 08 ret
200c4ac: 81 e8 00 00 restore
0200d2ec <rtems_bdbuf_purge>:
}
}
static void
rtems_bdbuf_purge (rtems_bdbuf_purge_compare compare, dev_t dev)
{
200d2ec: 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);
200d2f0: 82 07 bf f8 add %fp, -8, %g1
the_chain->permanent_null = NULL;
200d2f4: 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);
200d2f8: a2 07 bf f4 add %fp, -12, %l1
200d2fc: c2 27 bf f4 st %g1, [ %fp + -12 ]
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
200d300: e2 27 bf fc st %l1, [ %fp + -4 ]
rtems_chain_control purge_list;
rtems_chain_initialize_empty (&purge_list);
rtems_bdbuf_lock_cache ();
200d304: 7f ff fb 85 call 200c118 <rtems_bdbuf_lock_cache>
200d308: 3b 00 80 85 sethi %hi(0x2021400), %i5
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;
200d30c: ba 17 63 c0 or %i5, 0x3c0, %i5 ! 20217c0 <bdbuf_cache>
200d310: e0 07 60 40 ld [ %i5 + 0x40 ], %l0
*prev = NULL;
200d314: c0 27 bf 74 clr [ %fp + -140 ]
while (cur != NULL)
200d318: 80 a4 20 00 cmp %l0, 0
}
}
static void
rtems_bdbuf_purge (rtems_bdbuf_purge_compare compare, dev_t dev)
{
200d31c: a8 10 00 19 mov %i1, %l4
rtems_bdbuf_buffer **prev = stack;
rtems_bdbuf_buffer *cur = bdbuf_cache.tree;
*prev = NULL;
while (cur != NULL)
200d320: 02 80 00 3f be 200d41c <rtems_bdbuf_purge+0x130> <== NEVER TAKEN
200d324: aa 10 00 1a mov %i2, %l5
{
if ((*compare) (cur->dev, dev))
{
switch (cur->state)
200d328: 27 00 80 30 sethi %hi(0x200c000), %l3
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);
200d32c: ba 07 60 70 add %i5, 0x70, %i5
while (cur != NULL)
{
if ((*compare) (cur->dev, dev))
{
switch (cur->state)
200d330: a6 14 e0 20 or %l3, 0x20, %l3
rtems_bdbuf_buffer **prev = stack;
rtems_bdbuf_buffer *cur = bdbuf_cache.tree;
*prev = NULL;
while (cur != NULL)
200d334: 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;
200d338: ae 10 20 06 mov 6, %l7
200d33c: ac 10 20 0a mov 0xa, %l6
*prev = NULL;
while (cur != NULL)
{
if ((*compare) (cur->dev, dev))
200d340: d0 1c 20 18 ldd [ %l0 + 0x18 ], %o0
200d344: 94 10 00 14 mov %l4, %o2
200d348: 9f c6 00 00 call %i0
200d34c: 96 10 00 15 mov %l5, %o3
200d350: 80 8a 20 ff btst 0xff, %o0
200d354: 22 80 00 0b be,a 200d380 <rtems_bdbuf_purge+0x94> <== NEVER TAKEN
200d358: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED
{
switch (cur->state)
200d35c: c2 04 20 28 ld [ %l0 + 0x28 ], %g1
200d360: 80 a0 60 0a cmp %g1, 0xa
200d364: 08 80 00 12 bleu 200d3ac <rtems_bdbuf_purge+0xc0> <== ALWAYS TAKEN
200d368: 83 28 60 02 sll %g1, 2, %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);
200d36c: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200d370: 7f ff eb dd call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200d374: 90 12 20 01 or %o0, 1, %o0 ! 42000001 <RAM_END+0x3fc00001><== NOT EXECUTED
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200d378: ec 24 20 28 st %l6, [ %l0 + 0x28 ]
default:
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_STATE_11);
}
}
if (cur->avl.left != NULL)
200d37c: c2 04 20 08 ld [ %l0 + 8 ], %g1
200d380: 80 a0 60 00 cmp %g1, 0
200d384: 22 80 00 1d be,a 200d3f8 <rtems_bdbuf_purge+0x10c> <== ALWAYS TAKEN
200d388: c2 04 20 0c ld [ %l0 + 0xc ], %g1
{
/* Left */
++prev;
200d38c: a4 04 a0 04 add %l2, 4, %l2 <== NOT EXECUTED
*prev = cur;
200d390: e0 24 80 00 st %l0, [ %l2 ] <== NOT EXECUTED
cur = cur->avl.left;
200d394: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED
rtems_bdbuf_buffer **prev = stack;
rtems_bdbuf_buffer *cur = bdbuf_cache.tree;
*prev = NULL;
while (cur != NULL)
200d398: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200d39c: 02 80 00 21 be 200d420 <rtems_bdbuf_purge+0x134> <== NOT EXECUTED
200d3a0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
200d3a4: 10 bf ff e7 b 200d340 <rtems_bdbuf_purge+0x54> <== NOT EXECUTED
200d3a8: a0 10 00 01 mov %g1, %l0 <== NOT EXECUTED
{
if ((*compare) (cur->dev, dev))
{
switch (cur->state)
200d3ac: c2 04 c0 01 ld [ %l3 + %g1 ], %g1
200d3b0: 81 c0 40 00 jmp %g1
200d3b4: 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);
200d3b8: 7f ff fb 60 call 200c138 <rtems_bdbuf_wake>
200d3bc: 90 10 00 1d mov %i5, %o0
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
200d3c0: c2 04 20 30 ld [ %l0 + 0x30 ], %g1
200d3c4: c4 00 60 0c ld [ %g1 + 0xc ], %g2
200d3c8: 84 00 bf ff add %g2, -1, %g2
200d3cc: c4 20 60 0c st %g2, [ %g1 + 0xc ]
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
200d3d0: 7f ff ed 27 call 200886c <_Chain_Extract>
200d3d4: 90 10 00 10 mov %l0, %o0
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
200d3d8: 90 10 00 11 mov %l1, %o0
200d3dc: 7f ff ed 18 call 200883c <_Chain_Append>
200d3e0: 92 10 00 10 mov %l0, %o1
default:
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_STATE_11);
}
}
if (cur->avl.left != NULL)
200d3e4: c2 04 20 08 ld [ %l0 + 8 ], %g1
200d3e8: 80 a0 60 00 cmp %g1, 0
200d3ec: 32 bf ff e9 bne,a 200d390 <rtems_bdbuf_purge+0xa4> <== NEVER TAKEN
200d3f0: a4 04 a0 04 add %l2, 4, %l2 <== NOT EXECUTED
/* Left */
++prev;
*prev = cur;
cur = cur->avl.left;
}
else if (cur->avl.right != NULL)
200d3f4: c2 04 20 0c ld [ %l0 + 0xc ], %g1
200d3f8: 80 a0 60 00 cmp %g1, 0
200d3fc: 22 80 00 24 be,a 200d48c <rtems_bdbuf_purge+0x1a0> <== ALWAYS TAKEN
200d400: c6 04 80 00 ld [ %l2 ], %g3
{
/* Right */
++prev;
200d404: a4 04 a0 04 add %l2, 4, %l2 <== NOT EXECUTED
*prev = cur;
200d408: e0 24 80 00 st %l0, [ %l2 ] <== NOT EXECUTED
cur = cur->avl.right;
200d40c: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
rtems_bdbuf_buffer **prev = stack;
rtems_bdbuf_buffer *cur = bdbuf_cache.tree;
*prev = NULL;
while (cur != NULL)
200d410: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200d414: 12 bf ff cb bne 200d340 <rtems_bdbuf_purge+0x54> <== NOT EXECUTED
200d418: a0 10 00 01 mov %g1, %l0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
200d41c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
200d420: 7f ff ed 1d call 2008894 <_Chain_Get>
200d424: a0 10 20 00 clr %l0
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)
200d428: 80 a2 20 00 cmp %o0, 0
200d42c: 02 80 00 0d be 200d460 <rtems_bdbuf_purge+0x174>
200d430: 80 8c 20 ff btst 0xff, %l0
{
rtems_bdbuf_buffer *bd = (rtems_bdbuf_buffer *) node;
if (bd->waiters == 0)
200d434: c2 02 20 2c ld [ %o0 + 0x2c ], %g1
200d438: 80 a0 60 00 cmp %g1, 0
200d43c: 22 80 00 02 be,a 200d444 <rtems_bdbuf_purge+0x158>
200d440: a0 10 20 01 mov 1, %l0
wake_buffer_waiters = true;
rtems_bdbuf_discard_buffer (bd);
200d444: 7f ff ff 2d call 200d0f8 <rtems_bdbuf_discard_buffer>
200d448: 01 00 00 00 nop
200d44c: 7f ff ed 12 call 2008894 <_Chain_Get>
200d450: 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)
200d454: 80 a2 20 00 cmp %o0, 0
200d458: 12 bf ff f7 bne 200d434 <rtems_bdbuf_purge+0x148> <== NEVER TAKEN
200d45c: 80 8c 20 ff btst 0xff, %l0
wake_buffer_waiters = true;
rtems_bdbuf_discard_buffer (bd);
}
if (wake_buffer_waiters)
200d460: 02 80 00 04 be 200d470 <rtems_bdbuf_purge+0x184>
200d464: 11 00 80 86 sethi %hi(0x2021800), %o0
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
200d468: 7f ff fb 34 call 200c138 <rtems_bdbuf_wake>
200d46c: 90 12 20 38 or %o0, 0x38, %o0 ! 2021838 <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 ();
200d470: 7f ff fb b8 call 200c350 <rtems_bdbuf_unlock_cache>
200d474: 01 00 00 00 nop
}
200d478: 81 c7 e0 08 ret
200d47c: 81 e8 00 00 restore
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200d480: ee 24 20 28 st %l7, [ %l0 + 0x28 ]
default:
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_STATE_11);
}
}
if (cur->avl.left != NULL)
200d484: 10 bf ff bf b 200d380 <rtems_bdbuf_purge+0x94>
200d488: c2 04 20 08 ld [ %l0 + 8 ], %g1
*prev = cur;
cur = cur->avl.right;
}
else
{
while (*prev != NULL && cur == (*prev)->avl.right)
200d48c: 80 a0 e0 00 cmp %g3, 0
200d490: 02 bf ff e4 be 200d420 <rtems_bdbuf_purge+0x134> <== ALWAYS TAKEN
200d494: 90 10 00 11 mov %l1, %o0
200d498: c2 00 e0 0c ld [ %g3 + 0xc ], %g1 <== NOT EXECUTED
200d49c: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED
200d4a0: 22 80 00 08 be,a 200d4c0 <rtems_bdbuf_purge+0x1d4> <== NOT EXECUTED
200d4a4: a4 04 bf fc add %l2, -4, %l2 <== NOT EXECUTED
rtems_bdbuf_buffer **prev = stack;
rtems_bdbuf_buffer *cur = bdbuf_cache.tree;
*prev = NULL;
while (cur != NULL)
200d4a8: 10 bf ff bd b 200d39c <rtems_bdbuf_purge+0xb0> <== NOT EXECUTED
200d4ac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
*prev = cur;
cur = cur->avl.right;
}
else
{
while (*prev != NULL && cur == (*prev)->avl.right)
200d4b0: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
200d4b4: 12 bf ff b9 bne 200d398 <rtems_bdbuf_purge+0xac> <== NOT EXECUTED
200d4b8: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED
{
/* Up */
cur = *prev;
--prev;
200d4bc: a4 04 bf fc add %l2, -4, %l2 <== NOT EXECUTED
*prev = cur;
cur = cur->avl.right;
}
else
{
while (*prev != NULL && cur == (*prev)->avl.right)
200d4c0: c4 04 80 00 ld [ %l2 ], %g2 <== NOT EXECUTED
200d4c4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
200d4c8: 32 bf ff fa bne,a 200d4b0 <rtems_bdbuf_purge+0x1c4> <== NOT EXECUTED
200d4cc: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 <== NOT EXECUTED
200d4d0: 10 bf ff d4 b 200d420 <rtems_bdbuf_purge+0x134> <== NOT EXECUTED
200d4d4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
0200c0ac <rtems_bdbuf_purge_compare_dev>:
rtems_bdbuf_unlock_cache ();
}
static bool
rtems_bdbuf_purge_compare_dev (dev_t a, dev_t b)
{
200c0ac: 80 a2 00 0a cmp %o0, %o2
200c0b0: 02 80 00 04 be 200c0c0 <rtems_bdbuf_purge_compare_dev+0x14><== ALWAYS TAKEN
200c0b4: 90 10 20 00 clr %o0
return a == b;
}
200c0b8: 81 c3 e0 08 retl <== NOT EXECUTED
200c0bc: 01 00 00 00 nop <== NOT EXECUTED
rtems_bdbuf_unlock_cache ();
}
static bool
rtems_bdbuf_purge_compare_dev (dev_t a, dev_t b)
{
200c0c0: 80 a2 40 0b cmp %o1, %o3
200c0c4: 12 bf ff fd bne 200c0b8 <rtems_bdbuf_purge_compare_dev+0xc><== NEVER TAKEN
200c0c8: 01 00 00 00 nop
return a == b;
}
200c0cc: 81 c3 e0 08 retl
200c0d0: 90 10 20 01 mov 1, %o0 ! 1 <PROM_START+0x1>
0200c0d4 <rtems_bdbuf_purge_compare_major>:
dev_t device
)
{
union __rtems_dev_t temp;
temp.device = device;
200c0d4: 90 1a 00 0a xor %o0, %o2, %o0 <== NOT EXECUTED
200c0d8: 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);
}
200c0dc: 81 c3 e0 08 retl <== NOT EXECUTED
200c0e0: 90 60 3f ff subx %g0, -1, %o0 <== NOT EXECUTED
0200d4d8 <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);
200d4d8: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
200d4dc: 94 10 20 00 clr %o2 <== NOT EXECUTED
200d4e0: 11 00 80 30 sethi %hi(0x200c000), %o0 <== NOT EXECUTED
200d4e4: 90 12 20 d4 or %o0, 0xd4, %o0 ! 200c0d4 <rtems_bdbuf_purge_compare_major><== NOT EXECUTED
200d4e8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
200d4ec: 7f ff ff 80 call 200d2ec <rtems_bdbuf_purge> <== NOT EXECUTED
200d4f0: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
0200e574 <rtems_bdbuf_read>:
rtems_status_code
rtems_bdbuf_read (dev_t dev,
rtems_blkdev_bnum block,
rtems_bdbuf_buffer **bd_ptr)
{
200e574: 9d e3 bf 90 save %sp, -112, %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);
200e578: 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;
200e57c: c0 27 bf fc clr [ %fp + -4 ]
rtems_blkdev_request *req = NULL;
rtems_bdbuf_buffer *bd = NULL;
rtems_blkdev_bnum media_block = 0;
200e580: c0 27 bf f8 clr [ %fp + -8 ]
size_t bds_per_group = 0;
200e584: c0 27 bf f4 clr [ %fp + -12 ]
sc = rtems_bdbuf_obtain_disk (dev, block, &dd, &media_block, &bds_per_group);
200e588: 94 10 00 1a mov %i2, %o2
200e58c: 92 10 00 19 mov %i1, %o1
200e590: 96 07 bf fc add %fp, -4, %o3
200e594: 98 07 bf f8 add %fp, -8, %o4
200e598: 7f ff f7 86 call 200c3b0 <rtems_bdbuf_obtain_disk>
200e59c: 9a 07 bf f4 add %fp, -12, %o5
if (sc != RTEMS_SUCCESSFUL)
200e5a0: b0 92 20 00 orcc %o0, 0, %i0
200e5a4: 12 80 00 98 bne 200e804 <rtems_bdbuf_read+0x290> <== NEVER TAKEN
200e5a8: 03 00 80 7e sethi %hi(0x201f800), %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) +
200e5ac: ec 00 62 3c ld [ %g1 + 0x23c ], %l6 ! 201fa3c <rtems_bdbuf_configuration>
200e5b0: ac 05 a0 01 inc %l6
200e5b4: 83 2d a0 04 sll %l6, 4, %g1
200e5b8: 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 ();
200e5bc: 7f ff f6 d7 call 200c118 <rtems_bdbuf_lock_cache>
200e5c0: 9c 23 80 01 sub %sp, %g1, %sp
rtems_bdbuf_create_read_request (dd, media_block, bds_per_group, req, &bd);
200e5c4: e8 07 bf fc ld [ %fp + -4 ], %l4
/*
* 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) +
200e5c8: a6 03 a0 60 add %sp, 0x60, %l3
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;
200e5cc: ee 05 20 20 ld [ %l4 + 0x20 ], %l7
200e5d0: d2 05 20 24 ld [ %l4 + 0x24 ], %o1
200e5d4: 40 00 3d 0a call 201d9fc <.udiv>
200e5d8: 90 10 00 17 mov %l7, %o0
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;
200e5dc: 03 00 80 31 sethi %hi(0x200c400), %g1
200e5e0: 82 10 62 18 or %g1, 0x218, %g1 ! 200c618 <rtems_bdbuf_transfer_done>
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);
200e5e4: e2 07 bf f8 ld [ %fp + -8 ], %l1
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;
200e5e8: e4 05 20 04 ld [ %l4 + 4 ], %l2
200e5ec: e0 05 00 00 ld [ %l4 ], %l0
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);
200e5f0: f8 07 bf f4 ld [ %fp + -12 ], %i4
size_t bds_per_group,
rtems_blkdev_request *req,
rtems_bdbuf_buffer **bd_ptr)
{
rtems_bdbuf_buffer *bd = NULL;
rtems_blkdev_bnum media_block_end = dd->start + dd->size;
200e5f4: fa 05 20 18 ld [ %l4 + 0x18 ], %i5
200e5f8: f4 05 20 1c ld [ %l4 + 0x1c ], %i2
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;
200e5fc: c2 24 e0 04 st %g1, [ %l3 + 4 ]
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;
200e600: aa 10 00 08 mov %o0, %l5
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;
200e604: c0 24 c0 00 clr [ %l3 ]
req->req_done = rtems_bdbuf_transfer_done;
req->done_arg = req;
req->io_task = rtems_task_self ();
200e608: 40 00 0c 8f call 2011844 <rtems_task_self>
200e60c: e6 24 e0 08 st %l3, [ %l3 + 8 ]
req->status = RTEMS_RESOURCE_IN_USE;
200e610: 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 ();
200e614: d0 24 e0 14 st %o0, [ %l3 + 0x14 ]
req->status = RTEMS_RESOURCE_IN_USE;
200e618: c2 24 e0 0c st %g1, [ %l3 + 0xc ]
req->bufnum = 0;
200e61c: c0 24 e0 10 clr [ %l3 + 0x10 ]
bd = rtems_bdbuf_get_buffer_for_access (dev, media_block, bds_per_group);
200e620: 90 10 00 10 mov %l0, %o0
200e624: 92 10 00 12 mov %l2, %o1
200e628: 94 10 00 11 mov %l1, %o2
200e62c: 7f ff ff 08 call 200e24c <rtems_bdbuf_get_buffer_for_access>
200e630: 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;
200e634: c4 02 20 24 ld [ %o0 + 0x24 ], %g2
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_users ("read", bd);
switch (bd->state)
200e638: 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;
200e63c: c4 24 e0 20 st %g2, [ %l3 + 0x20 ]
bd = rtems_bdbuf_get_buffer_for_access (dev, media_block, bds_per_group);
*bd_ptr = bd;
req->bufs [0].user = bd;
200e640: d0 24 e0 24 st %o0, [ %l3 + 0x24 ]
req->bufs [0].block = media_block;
200e644: e2 24 e0 18 st %l1, [ %l3 + 0x18 ]
req->bufs [0].length = block_size;
200e648: ee 24 e0 1c st %l7, [ %l3 + 0x1c ]
req->bufs [0].buffer = bd->buffer;
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_users ("read", bd);
switch (bd->state)
200e64c: 80 a0 60 02 cmp %g1, 2
200e650: 02 80 00 60 be 200e7d0 <rtems_bdbuf_read+0x25c>
200e654: a8 10 00 08 mov %o0, %l4
200e658: 80 a0 60 07 cmp %g1, 7
200e65c: 02 80 00 5d be 200e7d0 <rtems_bdbuf_read+0x25c>
200e660: 80 a0 60 01 cmp %g1, 1
200e664: 22 80 00 08 be,a 200e684 <rtems_bdbuf_read+0x110> <== ALWAYS TAKEN
200e668: ba 06 80 1d add %i2, %i5, %i5
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);
200e66c: 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);
200e670: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200e674: 82 10 60 1d or %g1, 0x1d, %g1 ! 4200001d <RAM_END+0x3fc0001d><== NOT EXECUTED
200e678: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200e67c: 7f ff e7 1a call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200e680: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
req->bufs [0].buffer = bd->buffer;
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_users ("read", bd);
switch (bd->state)
200e684: b2 27 40 11 sub %i5, %l1, %i1
200e688: 80 a6 40 16 cmp %i1, %l6
200e68c: 38 80 00 02 bgu,a 200e694 <rtems_bdbuf_read+0x120>
200e690: b2 10 00 16 mov %l6, %i1
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200e694: 82 10 20 09 mov 9, %g1
200e698: c2 25 20 28 st %g1, [ %l4 + 0x28 ]
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_1);
break;
}
while (transfer_index < transfer_count)
200e69c: 80 a6 60 01 cmp %i1, 1
200e6a0: 08 80 00 2c bleu 200e750 <rtems_bdbuf_read+0x1dc>
200e6a4: ba 10 20 01 mov 1, %i5
200e6a8: 2d 00 80 85 sethi %hi(0x2021400), %l6
#endif
static void
rtems_bdbuf_fatal (rtems_bdbuf_buf_state state, uint32_t error)
{
rtems_fatal_error_occurred ((((uint32_t) state) << 16) | error);
200e6ac: b4 10 00 13 mov %l3, %i2
200e6b0: ac 15 a3 c0 or %l6, 0x3c0, %l6
200e6b4: ba 10 20 01 mov 1, %i5
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200e6b8: b0 10 20 09 mov 9, %i0
static rtems_bdbuf_buffer *
rtems_bdbuf_avl_search (rtems_bdbuf_buffer** root,
dev_t dev,
rtems_blkdev_bnum block)
{
rtems_bdbuf_buffer* p = *root;
200e6bc: c2 05 a0 40 ld [ %l6 + 0x40 ], %g1
while ((p != NULL) && ((p->dev != dev) || (p->block != block)))
200e6c0: 80 a0 60 00 cmp %g1, 0
200e6c4: 02 80 00 0d be 200e6f8 <rtems_bdbuf_read+0x184> <== NEVER TAKEN
200e6c8: a2 04 40 15 add %l1, %l5, %l1
200e6cc: c4 18 60 18 ldd [ %g1 + 0x18 ], %g2
200e6d0: 80 a4 00 02 cmp %l0, %g2
200e6d4: 02 80 00 35 be 200e7a8 <rtems_bdbuf_read+0x234> <== ALWAYS TAKEN
200e6d8: 80 a4 80 03 cmp %l2, %g3
{
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200e6dc: 80 a4 00 02 cmp %l0, %g2 <== NOT EXECUTED
200e6e0: 08 80 00 2c bleu 200e790 <rtems_bdbuf_read+0x21c> <== NOT EXECUTED
200e6e4: 01 00 00 00 nop <== NOT EXECUTED
{
p = p->avl.right;
200e6e8: c2 00 60 0c ld [ %g1 + 0xc ], %g1 <== NOT EXECUTED
dev_t dev,
rtems_blkdev_bnum block)
{
rtems_bdbuf_buffer* p = *root;
while ((p != NULL) && ((p->dev != dev) || (p->block != block)))
200e6ec: 80 a0 60 00 cmp %g1, 0
200e6f0: 32 bf ff f8 bne,a 200e6d0 <rtems_bdbuf_read+0x15c> <== NEVER TAKEN
200e6f4: c4 18 60 18 ldd [ %g1 + 0x18 ], %g2 <== 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);
200e6f8: 90 10 00 10 mov %l0, %o0
200e6fc: 92 10 00 12 mov %l2, %o1
200e700: 94 10 00 11 mov %l1, %o2
200e704: 7f ff fd c4 call 200de14 <rtems_bdbuf_get_buffer_from_lru_list>
200e708: 96 10 00 1c mov %i4, %o3
if (bd != NULL)
200e70c: 80 a2 20 00 cmp %o0, 0
200e710: 22 80 00 11 be,a 200e754 <rtems_bdbuf_read+0x1e0> <== ALWAYS TAKEN
200e714: fa 24 e0 10 st %i5, [ %l3 + 0x10 ]
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
200e718: 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;
200e71c: c6 02 20 24 ld [ %o0 + 0x24 ], %g3 <== NOT EXECUTED
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
200e720: 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;
200e724: c6 26 a0 30 st %g3, [ %i2 + 0x30 ] <== NOT EXECUTED
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
200e728: 84 00 a0 01 inc %g2 <== NOT EXECUTED
200e72c: c4 20 60 0c st %g2, [ %g1 + 0xc ] <== NOT EXECUTED
if (bd == NULL)
break;
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);
req->bufs [transfer_index].user = bd;
200e730: d0 26 a0 34 st %o0, [ %i2 + 0x34 ] <== NOT EXECUTED
req->bufs [transfer_index].block = media_block;
200e734: e2 26 a0 28 st %l1, [ %i2 + 0x28 ] <== NOT EXECUTED
req->bufs [transfer_index].length = block_size;
200e738: ee 26 a0 2c st %l7, [ %i2 + 0x2c ] <== NOT EXECUTED
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200e73c: f0 22 20 28 st %i0, [ %o0 + 0x28 ] <== NOT EXECUTED
req->bufs [transfer_index].buffer = bd->buffer;
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_users ("read-ahead", bd);
++transfer_index;
200e740: ba 07 60 01 inc %i5 <== NOT EXECUTED
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_1);
break;
}
while (transfer_index < transfer_count)
200e744: 80 a7 40 19 cmp %i5, %i1 <== NOT EXECUTED
200e748: 0a bf ff dd bcs 200e6bc <rtems_bdbuf_read+0x148> <== NOT EXECUTED
200e74c: b4 06 a0 10 add %i2, 0x10, %i2 <== NOT EXECUTED
rtems_bdbuf_show_users ("read-ahead", bd);
++transfer_index;
}
req->bufnum = transfer_index;
200e750: fa 24 e0 10 st %i5, [ %l3 + 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)
200e754: 80 a7 60 00 cmp %i5, 0
200e758: 12 80 00 20 bne 200e7d8 <rtems_bdbuf_read+0x264>
200e75c: d0 07 bf fc ld [ %fp + -4 ], %o0
}
}
if (sc == RTEMS_SUCCESSFUL)
{
switch (bd->state)
200e760: c2 05 20 28 ld [ %l4 + 0x28 ], %g1
200e764: 80 a0 60 02 cmp %g1, 2
200e768: 02 80 00 2d be 200e81c <rtems_bdbuf_read+0x2a8>
200e76c: 80 a0 60 07 cmp %g1, 7
200e770: 02 80 00 27 be 200e80c <rtems_bdbuf_read+0x298> <== ALWAYS TAKEN
200e774: 82 10 20 04 mov 4, %g1
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);
200e778: d0 05 20 28 ld [ %l4 + 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);
200e77c: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200e780: 82 10 60 02 or %g1, 2, %g1 ! 42000002 <RAM_END+0x3fc00002><== NOT EXECUTED
200e784: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200e788: 7f ff e6 d7 call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200e78c: 90 12 00 01 or %o0, %g1, %o0 <== 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)))
200e790: 12 80 00 04 bne 200e7a0 <rtems_bdbuf_read+0x22c> <== NOT EXECUTED
200e794: 80 a4 80 03 cmp %l2, %g3 <== NOT EXECUTED
200e798: 38 bf ff d5 bgu,a 200e6ec <rtems_bdbuf_read+0x178> <== NOT EXECUTED
200e79c: c2 00 60 0c ld [ %g1 + 0xc ], %g1 <== NOT EXECUTED
{
p = p->avl.right;
}
else
{
p = p->avl.left;
200e7a0: 10 bf ff d3 b 200e6ec <rtems_bdbuf_read+0x178> <== NOT EXECUTED
200e7a4: 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)))
200e7a8: 12 bf ff ce bne 200e6e0 <rtems_bdbuf_read+0x16c> <== NEVER TAKEN
200e7ac: 80 a4 00 02 cmp %l0, %g2
200e7b0: c4 00 60 20 ld [ %g1 + 0x20 ], %g2
200e7b4: 80 a4 40 02 cmp %l1, %g2
200e7b8: 22 bf ff e7 be,a 200e754 <rtems_bdbuf_read+0x1e0> <== NEVER TAKEN
200e7bc: fa 24 e0 10 st %i5, [ %l3 + 0x10 ] <== NOT EXECUTED
{
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200e7c0: 38 bf ff cb bgu,a 200e6ec <rtems_bdbuf_read+0x178> <== ALWAYS TAKEN
200e7c4: c2 00 60 0c ld [ %g1 + 0xc ], %g1
{
p = p->avl.right;
}
else
{
p = p->avl.left;
200e7c8: 10 bf ff c9 b 200e6ec <rtems_bdbuf_read+0x178> <== NOT EXECUTED
200e7cc: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED
req->bufs [0].buffer = bd->buffer;
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_users ("read", bd);
switch (bd->state)
200e7d0: 10 bf ff e1 b 200e754 <rtems_bdbuf_read+0x1e0>
200e7d4: fa 04 e0 10 ld [ %l3 + 0x10 ], %i5
rtems_bdbuf_lock_cache ();
rtems_bdbuf_create_read_request (dd, media_block, bds_per_group, req, &bd);
if (req->bufnum > 0)
{
sc = rtems_bdbuf_execute_transfer_request (dd, req, true);
200e7d8: 92 10 00 13 mov %l3, %o1
200e7dc: 7f ff fb 4f call 200d518 <rtems_bdbuf_execute_transfer_request>
200e7e0: 94 10 20 01 mov 1, %o2
if (sc == RTEMS_SUCCESSFUL)
200e7e4: b0 92 20 00 orcc %o0, 0, %i0
200e7e8: 02 80 00 12 be 200e830 <rtems_bdbuf_read+0x2bc>
200e7ec: 01 00 00 00 nop
}
*bd_ptr = bd;
}
else
*bd_ptr = NULL;
200e7f0: c0 26 c0 00 clr [ %i3 ]
rtems_bdbuf_unlock_cache ();
200e7f4: 7f ff f6 d7 call 200c350 <rtems_bdbuf_unlock_cache>
200e7f8: 01 00 00 00 nop
rtems_bdbuf_release_disk (dd);
200e7fc: 7f ff f7 2d call 200c4b0 <rtems_bdbuf_release_disk>
200e800: d0 07 bf fc ld [ %fp + -4 ], %o0
return sc;
}
200e804: 81 c7 e0 08 ret
200e808: 81 e8 00 00 restore
{
rtems_bdbuf_show_users ("read", bd);
rtems_bdbuf_show_usage ();
}
*bd_ptr = bd;
200e80c: e8 26 c0 00 st %l4, [ %i3 ]
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200e810: c2 25 20 28 st %g1, [ %l4 + 0x28 ]
{
rtems_bdbuf_show_users ("read", bd);
rtems_bdbuf_show_usage ();
}
*bd_ptr = bd;
200e814: 10 bf ff f8 b 200e7f4 <rtems_bdbuf_read+0x280>
200e818: b0 10 20 00 clr %i0
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200e81c: 82 10 20 03 mov 3, %g1
{
rtems_bdbuf_show_users ("read", bd);
rtems_bdbuf_show_usage ();
}
*bd_ptr = bd;
200e820: e8 26 c0 00 st %l4, [ %i3 ]
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200e824: c2 25 20 28 st %g1, [ %l4 + 0x28 ]
{
rtems_bdbuf_show_users ("read", bd);
rtems_bdbuf_show_usage ();
}
*bd_ptr = bd;
200e828: 10 bf ff f3 b 200e7f4 <rtems_bdbuf_read+0x280>
200e82c: b0 10 20 00 clr %i0
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
200e830: 7f ff e8 0f call 200886c <_Chain_Extract>
200e834: 90 10 00 14 mov %l4, %o0
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
200e838: c2 05 20 30 ld [ %l4 + 0x30 ], %g1
200e83c: c4 00 60 0c ld [ %g1 + 0xc ], %g2
200e840: 84 00 a0 01 inc %g2
200e844: 10 bf ff c7 b 200e760 <rtems_bdbuf_read+0x1ec>
200e848: c4 20 60 0c st %g2, [ %g1 + 0xc ]
0200d208 <rtems_bdbuf_release>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_release (rtems_bdbuf_buffer *bd)
{
200d208: 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)
200d20c: 21 00 80 85 sethi %hi(0x2021400), %l0
200d210: a0 14 23 c0 or %l0, 0x3c0, %l0 ! 20217c0 <bdbuf_cache>
200d214: c2 0c 20 88 ldub [ %l0 + 0x88 ], %g1
200d218: 80 a0 60 00 cmp %g1, 0
200d21c: 02 80 00 15 be 200d270 <rtems_bdbuf_release+0x68> <== NEVER TAKEN
200d220: 82 10 20 16 mov 0x16, %g1
return RTEMS_NOT_CONFIGURED;
if (bd == NULL)
200d224: 80 a6 20 00 cmp %i0, 0
200d228: 02 80 00 12 be 200d270 <rtems_bdbuf_release+0x68> <== NEVER TAKEN
200d22c: 82 10 20 09 mov 9, %g1
if (rtems_bdbuf_tracer)
{
printf ("bdbuf:%s: %" PRIu32 "\n", kind, bd->block);
rtems_bdbuf_show_users (kind, bd);
}
rtems_bdbuf_lock_cache();
200d230: 7f ff fb ba call 200c118 <rtems_bdbuf_lock_cache>
200d234: 01 00 00 00 nop
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
200d238: c2 06 20 28 ld [ %i0 + 0x28 ], %g1
200d23c: 80 a0 60 04 cmp %g1, 4
200d240: 02 80 00 16 be 200d298 <rtems_bdbuf_release+0x90>
200d244: 01 00 00 00 nop
200d248: 08 80 00 0c bleu 200d278 <rtems_bdbuf_release+0x70>
200d24c: 80 a0 60 03 cmp %g1, 3
200d250: 80 a0 60 06 cmp %g1, 6
200d254: 18 80 00 0b bgu 200d280 <rtems_bdbuf_release+0x78> <== NEVER TAKEN
200d258: 01 00 00 00 nop
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);
200d25c: 7f ff ff b7 call 200d138 <rtems_bdbuf_discard_buffer_after_access>
200d260: 90 10 00 18 mov %i0, %o0
}
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_usage ();
rtems_bdbuf_unlock_cache ();
200d264: 7f ff fc 3b call 200c350 <rtems_bdbuf_unlock_cache>
200d268: 01 00 00 00 nop
200d26c: 82 10 20 00 clr %g1 ! 0 <PROM_START>
return RTEMS_SUCCESSFUL;
}
200d270: 81 c7 e0 08 ret
200d274: 91 e8 00 01 restore %g0, %g1, %o0
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
200d278: 22 80 00 0b be,a 200d2a4 <rtems_bdbuf_release+0x9c> <== ALWAYS TAKEN
200d27c: c2 06 20 30 ld [ %i0 + 0x30 ], %g1
break;
case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:
rtems_bdbuf_add_to_modified_list_after_access (bd);
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_0);
200d280: 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);
200d284: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200d288: 82 10 60 1c or %g1, 0x1c, %g1 ! 4200001c <RAM_END+0x3fc0001c><== NOT EXECUTED
200d28c: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200d290: 7f ff ec 15 call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200d294: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
case RTEMS_BDBUF_STATE_ACCESS_EMPTY:
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
rtems_bdbuf_discard_buffer_after_access (bd);
break;
case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:
rtems_bdbuf_add_to_modified_list_after_access (bd);
200d298: 7f ff fc 9e call 200c510 <rtems_bdbuf_add_to_modified_list_after_access>
200d29c: 90 10 00 18 mov %i0, %o0
break;
200d2a0: 30 bf ff f1 b,a 200d264 <rtems_bdbuf_release+0x5c>
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200d2a4: 86 10 20 02 mov 2, %g3
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
200d2a8: c4 00 60 0c ld [ %g1 + 0xc ], %g2
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200d2ac: c6 26 20 28 st %g3, [ %i0 + 0x28 ]
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
200d2b0: 84 00 bf ff add %g2, -1, %g2
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
200d2b4: 90 04 20 44 add %l0, 0x44, %o0
200d2b8: c4 20 60 0c st %g2, [ %g1 + 0xc ]
200d2bc: 7f ff ed 60 call 200883c <_Chain_Append>
200d2c0: 92 10 00 18 mov %i0, %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)
200d2c4: c2 06 20 2c ld [ %i0 + 0x2c ], %g1
200d2c8: 80 a0 60 00 cmp %g1, 0
200d2cc: 02 80 00 05 be 200d2e0 <rtems_bdbuf_release+0xd8>
200d2d0: 01 00 00 00 nop
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
200d2d4: 7f ff fb 99 call 200c138 <rtems_bdbuf_wake>
200d2d8: 90 04 20 68 add %l0, 0x68, %o0
200d2dc: 30 bf ff e2 b,a 200d264 <rtems_bdbuf_release+0x5c>
else
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
200d2e0: 7f ff fb 96 call 200c138 <rtems_bdbuf_wake>
200d2e4: 90 04 20 78 add %l0, 0x78, %o0
200d2e8: 30 bf ff df b,a 200d264 <rtems_bdbuf_release+0x5c>
0200c4b0 <rtems_bdbuf_release_disk>:
return RTEMS_SUCCESSFUL;
}
static void
rtems_bdbuf_release_disk (rtems_disk_device *dd)
{
200c4b0: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code sc = RTEMS_SUCCESSFUL;
sc = rtems_disk_release (dd);
200c4b4: 7f ff da 6e call 2002e6c <rtems_disk_release>
200c4b8: 90 10 00 18 mov %i0, %o0
if (sc != RTEMS_SUCCESSFUL)
200c4bc: 80 a2 20 00 cmp %o0, 0
200c4c0: 12 80 00 04 bne 200c4d0 <rtems_bdbuf_release_disk+0x20> <== NEVER TAKEN
200c4c4: 11 10 80 00 sethi %hi(0x42000000), %o0
200c4c8: 81 c7 e0 08 ret
200c4cc: 81 e8 00 00 restore
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_DISK_REL);
200c4d0: 7f ff ef 85 call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200c4d4: 90 12 20 1f or %o0, 0x1f, %o0 <== NOT EXECUTED
0200d17c <rtems_bdbuf_release_modified>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_release_modified (rtems_bdbuf_buffer *bd)
{
200d17c: 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)
200d180: 03 00 80 86 sethi %hi(0x2021800), %g1
200d184: c2 08 60 48 ldub [ %g1 + 0x48 ], %g1 ! 2021848 <bdbuf_cache+0x88>
200d188: 80 a0 60 00 cmp %g1, 0
200d18c: 02 80 00 1a be 200d1f4 <rtems_bdbuf_release_modified+0x78><== NEVER TAKEN
200d190: 82 10 20 16 mov 0x16, %g1
return RTEMS_NOT_CONFIGURED;
if (bd == NULL)
200d194: 80 a6 20 00 cmp %i0, 0
200d198: 02 80 00 17 be 200d1f4 <rtems_bdbuf_release_modified+0x78><== NEVER TAKEN
200d19c: 82 10 20 09 mov 9, %g1
if (rtems_bdbuf_tracer)
{
printf ("bdbuf:%s: %" PRIu32 "\n", kind, bd->block);
rtems_bdbuf_show_users (kind, bd);
}
rtems_bdbuf_lock_cache();
200d1a0: 7f ff fb de call 200c118 <rtems_bdbuf_lock_cache>
200d1a4: 01 00 00 00 nop
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release modified");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
200d1a8: c2 06 20 28 ld [ %i0 + 0x28 ], %g1
200d1ac: 80 a0 60 03 cmp %g1, 3
200d1b0: 0a 80 00 06 bcs 200d1c8 <rtems_bdbuf_release_modified+0x4c><== NEVER TAKEN
200d1b4: 80 a0 60 05 cmp %g1, 5
200d1b8: 08 80 00 11 bleu 200d1fc <rtems_bdbuf_release_modified+0x80>
200d1bc: 80 a0 60 06 cmp %g1, 6
200d1c0: 02 80 00 08 be 200d1e0 <rtems_bdbuf_release_modified+0x64><== ALWAYS TAKEN
200d1c4: 01 00 00 00 nop
break;
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
rtems_bdbuf_discard_buffer_after_access (bd);
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_6);
200d1c8: 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);
200d1cc: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200d1d0: 82 10 60 04 or %g1, 4, %g1 ! 42000004 <RAM_END+0x3fc00004><== NOT EXECUTED
200d1d4: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200d1d8: 7f ff ec 43 call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200d1dc: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
case RTEMS_BDBUF_STATE_ACCESS_EMPTY:
case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:
rtems_bdbuf_add_to_modified_list_after_access (bd);
break;
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
rtems_bdbuf_discard_buffer_after_access (bd);
200d1e0: 7f ff ff d6 call 200d138 <rtems_bdbuf_discard_buffer_after_access>
200d1e4: 90 10 00 18 mov %i0, %o0
}
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_usage ();
rtems_bdbuf_unlock_cache ();
200d1e8: 7f ff fc 5a call 200c350 <rtems_bdbuf_unlock_cache>
200d1ec: 01 00 00 00 nop
200d1f0: 82 10 20 00 clr %g1 ! 0 <PROM_START>
return RTEMS_SUCCESSFUL;
}
200d1f4: 81 c7 e0 08 ret
200d1f8: 91 e8 00 01 restore %g0, %g1, %o0
switch (bd->state)
{
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);
200d1fc: 7f ff fc c5 call 200c510 <rtems_bdbuf_add_to_modified_list_after_access>
200d200: 90 10 00 18 mov %i0, %o0
break;
200d204: 30 bf ff f9 b,a 200d1e8 <rtems_bdbuf_release_modified+0x6c>
0200ccb8 <rtems_bdbuf_remove_from_tree>:
return bdbuf_cache.buffer_waiters.count;
}
static void
rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd)
{
200ccb8: 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;
200ccbc: 23 00 80 85 sethi %hi(0x2021400), %l1
200ccc0: a2 14 63 c0 or %l1, 0x3c0, %l1 ! 20217c0 <bdbuf_cache>
200ccc4: e0 04 60 40 ld [ %l1 + 0x40 ], %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));
200ccc8: a6 07 bf 80 add %fp, -128, %l3
*/
static int
rtems_bdbuf_avl_remove(rtems_bdbuf_buffer** root,
const rtems_bdbuf_buffer* node)
{
dev_t dev = node->dev;
200cccc: e4 06 20 18 ld [ %i0 + 0x18 ], %l2
200ccd0: e8 06 20 1c ld [ %i0 + 0x1c ], %l4
rtems_blkdev_bnum block = node->block;
200ccd4: ea 06 20 20 ld [ %i0 + 0x20 ], %l5
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));
200ccd8: 90 10 00 13 mov %l3, %o0
200ccdc: 92 10 20 00 clr %o1
200cce0: 40 00 20 e0 call 2015060 <memset>
200cce4: 94 10 20 80 mov 0x80, %o2
while (p != NULL)
200cce8: 80 a4 20 00 cmp %l0, 0
200ccec: 02 80 00 24 be 200cd7c <rtems_bdbuf_remove_from_tree+0xc4><== NEVER TAKEN
200ccf0: 84 10 00 13 mov %l3, %g2
{
*buf_prev++ = p;
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200ccf4: c6 04 20 18 ld [ %l0 + 0x18 ], %g3
memset (buf_stack, 0, sizeof(buf_stack));
while (p != NULL)
{
*buf_prev++ = p;
200ccf8: e0 20 80 00 st %l0, [ %g2 ]
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
{
p->avl.cache = 1;
200ccfc: 9a 10 20 01 mov 1, %o5
p = p->avl.right;
}
else if ((p->dev != dev) || (p->block != block))
{
p->avl.cache = -1;
200cd00: 98 10 3f ff mov -1, %o4
while (p != NULL)
{
*buf_prev++ = p;
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200cd04: 80 a4 80 03 cmp %l2, %g3
memset (buf_stack, 0, sizeof(buf_stack));
while (p != NULL)
{
*buf_prev++ = p;
200cd08: 82 00 a0 04 add %g2, 4, %g1
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200cd0c: 18 80 00 17 bgu 200cd68 <rtems_bdbuf_remove_from_tree+0xb0><== NEVER TAKEN
200cd10: c8 04 20 1c ld [ %l0 + 0x1c ], %g4
200cd14: 80 a4 80 03 cmp %l2, %g3
200cd18: 32 80 00 09 bne,a 200cd3c <rtems_bdbuf_remove_from_tree+0x84><== NEVER TAKEN
200cd1c: d8 2c 20 10 stb %o4, [ %l0 + 0x10 ] <== NOT EXECUTED
200cd20: 80 a5 00 04 cmp %l4, %g4
200cd24: 38 80 00 12 bgu,a 200cd6c <rtems_bdbuf_remove_from_tree+0xb4><== NEVER TAKEN
200cd28: da 2c 20 10 stb %o5, [ %l0 + 0x10 ] <== NOT EXECUTED
200cd2c: 80 a5 00 04 cmp %l4, %g4
200cd30: 22 80 00 19 be,a 200cd94 <rtems_bdbuf_remove_from_tree+0xdc><== ALWAYS TAKEN
200cd34: c6 04 20 20 ld [ %l0 + 0x20 ], %g3
p->avl.cache = 1;
p = p->avl.right;
}
else if ((p->dev != dev) || (p->block != block))
{
p->avl.cache = -1;
200cd38: d8 2c 20 10 stb %o4, [ %l0 + 0x10 ] <== NOT EXECUTED
p = p->avl.left;
200cd3c: e0 04 20 08 ld [ %l0 + 8 ], %l0
bool modified = false;
memset (buf_stack, 0, sizeof(buf_stack));
while (p != NULL)
200cd40: 80 a4 20 00 cmp %l0, 0
200cd44: 02 80 00 0e be 200cd7c <rtems_bdbuf_remove_from_tree+0xc4><== NEVER TAKEN
200cd48: 01 00 00 00 nop
{
*buf_prev++ = p;
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200cd4c: c6 04 20 18 ld [ %l0 + 0x18 ], %g3
bool modified = false;
memset (buf_stack, 0, sizeof(buf_stack));
while (p != NULL)
200cd50: 84 10 00 01 mov %g1, %g2
{
*buf_prev++ = p;
200cd54: e0 20 80 00 st %l0, [ %g2 ]
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200cd58: 80 a4 80 03 cmp %l2, %g3
memset (buf_stack, 0, sizeof(buf_stack));
while (p != NULL)
{
*buf_prev++ = p;
200cd5c: 82 00 a0 04 add %g2, 4, %g1
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200cd60: 08 bf ff ee bleu 200cd18 <rtems_bdbuf_remove_from_tree+0x60><== ALWAYS TAKEN
200cd64: c8 04 20 1c ld [ %l0 + 0x1c ], %g4
{
p->avl.cache = 1;
200cd68: da 2c 20 10 stb %o5, [ %l0 + 0x10 ] <== NOT EXECUTED
p = p->avl.right;
200cd6c: e0 04 20 0c ld [ %l0 + 0xc ], %l0
bool modified = false;
memset (buf_stack, 0, sizeof(buf_stack));
while (p != NULL)
200cd70: 80 a4 20 00 cmp %l0, 0
200cd74: 32 bf ff f7 bne,a 200cd50 <rtems_bdbuf_remove_from_tree+0x98><== ALWAYS TAKEN
200cd78: c6 04 20 18 ld [ %l0 + 0x18 ], %g3
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);
200cd7c: 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);
200cd80: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200cd84: 82 10 60 09 or %g1, 9, %g1 ! 42000009 <RAM_END+0x3fc00009><== NOT EXECUTED
200cd88: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200cd8c: 7f ff ed 56 call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200cd90: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
while (p != NULL)
{
*buf_prev++ = p;
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200cd94: 80 a5 40 03 cmp %l5, %g3
200cd98: 38 bf ff f5 bgu,a 200cd6c <rtems_bdbuf_remove_from_tree+0xb4>
200cd9c: da 2c 20 10 stb %o5, [ %l0 + 0x10 ]
{
p->avl.cache = 1;
p = p->avl.right;
}
else if ((p->dev != dev) || (p->block != block))
200cda0: 80 a5 40 03 cmp %l5, %g3
200cda4: 32 bf ff e6 bne,a 200cd3c <rtems_bdbuf_remove_from_tree+0x84>
200cda8: d8 2c 20 10 stb %o4, [ %l0 + 0x10 ]
}
q = p;
buf_prev--;
if (buf_prev > buf_stack)
200cdac: 80 a0 80 13 cmp %g2, %l3
200cdb0: 08 80 00 03 bleu 200cdbc <rtems_bdbuf_remove_from_tree+0x104>
200cdb4: 96 10 20 00 clr %o3
{
p = *(buf_prev - 1);
200cdb8: d6 00 bf fc ld [ %g2 + -4 ], %o3
{
p = NULL;
}
/* at this moment q - is a node to delete, p is q's parent */
if (q->avl.right == NULL)
200cdbc: c6 04 20 0c ld [ %l0 + 0xc ], %g3
200cdc0: 80 a0 e0 00 cmp %g3, 0
200cdc4: 22 80 00 a7 be,a 200d060 <rtems_bdbuf_remove_from_tree+0x3a8>
200cdc8: c6 04 20 08 ld [ %l0 + 8 ], %g3
{
rtems_bdbuf_buffer **t;
r = q->avl.right;
if (r->avl.left == NULL)
200cdcc: c8 00 e0 08 ld [ %g3 + 8 ], %g4
200cdd0: 80 a1 20 00 cmp %g4, 0
200cdd4: 02 80 00 a8 be 200d074 <rtems_bdbuf_remove_from_tree+0x3bc><== ALWAYS TAKEN
200cdd8: 98 10 3f ff mov -1, %o4
t = buf_prev++;
s = r;
while (s->avl.left != NULL)
{
*buf_prev++ = r = s;
200cddc: c6 20 40 00 st %g3, [ %g1 ] <== NOT EXECUTED
if (r->avl.left == NULL)
{
r->avl.left = q->avl.left;
r->avl.bal = q->avl.bal;
r->avl.cache = 1;
*buf_prev++ = q = r;
200cde0: 88 10 00 03 mov %g3, %g4 <== NOT EXECUTED
s = r;
while (s->avl.left != NULL)
{
*buf_prev++ = r = s;
s = r->avl.left;
200cde4: c6 00 e0 08 ld [ %g3 + 8 ], %g3 <== NOT EXECUTED
r->avl.cache = -1;
200cde8: d8 29 20 10 stb %o4, [ %g4 + 0x10 ] <== NOT EXECUTED
else
{
t = buf_prev++;
s = r;
while (s->avl.left != NULL)
200cdec: da 00 e0 08 ld [ %g3 + 8 ], %o5 <== NOT EXECUTED
200cdf0: 80 a3 60 00 cmp %o5, 0 <== NOT EXECUTED
200cdf4: 12 bf ff fa bne 200cddc <rtems_bdbuf_remove_from_tree+0x124><== NOT EXECUTED
200cdf8: 82 00 60 04 add %g1, 4, %g1 <== NOT EXECUTED
*buf_prev++ = r = s;
s = r->avl.left;
r->avl.cache = -1;
}
s->avl.left = q->avl.left;
200cdfc: d2 04 20 08 ld [ %l0 + 8 ], %o1 <== NOT EXECUTED
r->avl.left = s->avl.right;
200ce00: d4 00 e0 0c ld [ %g3 + 0xc ], %o2 <== NOT EXECUTED
s->avl.right = q->avl.right;
s->avl.bal = q->avl.bal;
200ce04: 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;
200ce08: 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;
200ce0c: d2 20 e0 08 st %o1, [ %g3 + 8 ] <== NOT EXECUTED
r->avl.left = s->avl.right;
200ce10: d4 21 20 08 st %o2, [ %g4 + 8 ] <== NOT EXECUTED
s->avl.right = q->avl.right;
200ce14: d8 20 e0 0c st %o4, [ %g3 + 0xc ] <== NOT EXECUTED
s->avl.bal = q->avl.bal;
200ce18: da 28 e0 11 stb %o5, [ %g3 + 0x11 ] <== NOT EXECUTED
s->avl.cache = 1;
200ce1c: 88 10 20 01 mov 1, %g4 <== NOT EXECUTED
200ce20: c8 28 e0 10 stb %g4, [ %g3 + 0x10 ] <== NOT EXECUTED
*t = q = s;
200ce24: c6 20 80 00 st %g3, [ %g2 ] <== NOT EXECUTED
}
}
if (p != NULL)
200ce28: 80 a2 e0 00 cmp %o3, 0
200ce2c: 22 80 00 07 be,a 200ce48 <rtems_bdbuf_remove_from_tree+0x190>
200ce30: c6 24 60 40 st %g3, [ %l1 + 0x40 ]
{
if (p->avl.cache == -1)
200ce34: c4 4a e0 10 ldsb [ %o3 + 0x10 ], %g2
200ce38: 80 a0 bf ff cmp %g2, -1
200ce3c: 22 80 00 03 be,a 200ce48 <rtems_bdbuf_remove_from_tree+0x190>
200ce40: c6 22 e0 08 st %g3, [ %o3 + 8 ]
{
p->avl.left = q;
}
else
{
p->avl.right = q;
200ce44: c6 22 e0 0c st %g3, [ %o3 + 0xc ]
modified = true;
while (modified)
{
if (buf_prev > buf_stack)
200ce48: 80 a0 40 13 cmp %g1, %l3
{
case -1:
p->avl.bal = 0;
break;
case 0:
p->avl.bal = 1;
200ce4c: 94 10 20 01 mov 1, %o2
modified = true;
while (modified)
{
if (buf_prev > buf_stack)
200ce50: 18 80 00 0f bgu 200ce8c <rtems_bdbuf_remove_from_tree+0x1d4>
200ce54: 98 10 3f ff mov -1, %o4
200ce58: 30 80 00 94 b,a 200d0a8 <rtems_bdbuf_remove_from_tree+0x3f0>
case +1:
p->avl.bal = 0;
break;
case 0:
p->avl.bal = -1;
200ce5c: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED
200ce60: 88 10 20 00 clr %g4 <== NOT EXECUTED
default:
break;
}
}
if (buf_prev > buf_stack)
200ce64: 80 a0 40 13 cmp %g1, %l3
200ce68: 28 80 00 1c bleu,a 200ced8 <rtems_bdbuf_remove_from_tree+0x220>
200ce6c: c6 24 60 40 st %g3, [ %l1 + 0x40 ]
{
q = *(buf_prev - 1);
200ce70: c4 00 7f fc ld [ %g1 + -4 ], %g2
if (q->avl.cache == -1)
200ce74: da 48 a0 10 ldsb [ %g2 + 0x10 ], %o5
200ce78: 80 a3 7f ff cmp %o5, -1
200ce7c: 02 80 00 38 be 200cf5c <rtems_bdbuf_remove_from_tree+0x2a4><== ALWAYS TAKEN
200ce80: 80 89 20 ff btst 0xff, %g4
*root = q;
}
modified = true;
while (modified)
200ce84: 02 80 00 15 be 200ced8 <rtems_bdbuf_remove_from_tree+0x220><== NOT EXECUTED
200ce88: c6 20 a0 0c st %g3, [ %g2 + 0xc ] <== NOT EXECUTED
{
if (buf_prev > buf_stack)
{
p = *--buf_prev;
200ce8c: 82 00 7f fc add %g1, -4, %g1
200ce90: c4 00 40 00 ld [ %g1 ], %g2
else
{
break;
}
if (p->avl.cache == -1)
200ce94: c8 48 a0 10 ldsb [ %g2 + 0x10 ], %g4
200ce98: 80 a1 3f ff cmp %g4, -1
200ce9c: 02 80 00 29 be 200cf40 <rtems_bdbuf_remove_from_tree+0x288>
200cea0: c6 48 a0 11 ldsb [ %g2 + 0x11 ], %g3
}
}
else
{
/* rebalance right branch */
switch (p->avl.bal)
200cea4: 80 a0 e0 00 cmp %g3, 0
200cea8: 22 bf ff ed be,a 200ce5c <rtems_bdbuf_remove_from_tree+0x1a4><== NEVER TAKEN
200ceac: d8 28 a0 11 stb %o4, [ %g2 + 0x11 ] <== NOT EXECUTED
200ceb0: 80 a0 e0 01 cmp %g3, 1
200ceb4: 02 80 00 32 be 200cf7c <rtems_bdbuf_remove_from_tree+0x2c4><== ALWAYS TAKEN
200ceb8: 80 a0 ff ff cmp %g3, -1
200cebc: 22 80 00 09 be,a 200cee0 <rtems_bdbuf_remove_from_tree+0x228><== NOT EXECUTED
200cec0: c6 00 a0 08 ld [ %g2 + 8 ], %g3 <== NOT EXECUTED
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;
p2->avl.bal = 0;
200cec4: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED
default:
break;
}
}
if (buf_prev > buf_stack)
200cec8: 80 a0 40 13 cmp %g1, %l3 <== NOT EXECUTED
200cecc: 18 bf ff e9 bgu 200ce70 <rtems_bdbuf_remove_from_tree+0x1b8><== NOT EXECUTED
200ced0: 88 10 20 01 mov 1, %g4 <== NOT EXECUTED
q->avl.right = p;
}
}
else
{
*root = p;
200ced4: c6 24 60 40 st %g3, [ %l1 + 0x40 ] <== NOT EXECUTED
200ced8: 81 c7 e0 08 ret
200cedc: 81 e8 00 00 restore
break;
case -1:
p1 = p->avl.left;
if (p1->avl.bal <= 0) /* simple LL-turn */
200cee0: c8 48 e0 11 ldsb [ %g3 + 0x11 ], %g4 <== NOT EXECUTED
200cee4: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED
200cee8: 24 80 00 36 ble,a 200cfc0 <rtems_bdbuf_remove_from_tree+0x308><== NOT EXECUTED
200ceec: da 00 e0 0c ld [ %g3 + 0xc ], %o5 <== NOT EXECUTED
}
p = p1;
}
else /* double LR-turn */
{
p2 = p1->avl.right;
200cef0: c8 00 e0 0c ld [ %g3 + 0xc ], %g4 <== NOT EXECUTED
p1->avl.right = p2->avl.left;
200cef4: da 01 20 08 ld [ %g4 + 8 ], %o5 <== NOT EXECUTED
p2->avl.left = p1;
200cef8: c6 21 20 08 st %g3, [ %g4 + 8 ] <== NOT EXECUTED
}
else /* double LR-turn */
{
p2 = p1->avl.right;
p1->avl.right = p2->avl.left;
200cefc: da 20 e0 0c st %o5, [ %g3 + 0xc ] <== NOT EXECUTED
p2->avl.left = p1;
p->avl.left = p2->avl.right;
200cf00: d6 01 20 0c ld [ %g4 + 0xc ], %o3 <== NOT EXECUTED
p2->avl.right = p;
if (p2->avl.bal == -1) p->avl.bal = 1; else p->avl.bal = 0;
200cf04: da 49 20 11 ldsb [ %g4 + 0x11 ], %o5 <== NOT EXECUTED
{
p2 = p1->avl.right;
p1->avl.right = p2->avl.left;
p2->avl.left = p1;
p->avl.left = p2->avl.right;
200cf08: d6 20 a0 08 st %o3, [ %g2 + 8 ] <== NOT EXECUTED
p2->avl.right = p;
if (p2->avl.bal == -1) p->avl.bal = 1; else p->avl.bal = 0;
200cf0c: 80 a3 7f ff cmp %o5, -1 <== NOT EXECUTED
200cf10: 02 80 00 32 be 200cfd8 <rtems_bdbuf_remove_from_tree+0x320><== NOT EXECUTED
200cf14: c4 21 20 0c st %g2, [ %g4 + 0xc ] <== NOT EXECUTED
200cf18: c0 28 a0 11 clrb [ %g2 + 0x11 ] <== NOT EXECUTED
if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
200cf1c: c4 49 20 11 ldsb [ %g4 + 0x11 ], %g2 <== NOT EXECUTED
200cf20: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED
200cf24: 22 80 00 03 be,a 200cf30 <rtems_bdbuf_remove_from_tree+0x278><== NOT EXECUTED
200cf28: d8 28 e0 11 stb %o4, [ %g3 + 0x11 ] <== NOT EXECUTED
200cf2c: c0 28 e0 11 clrb [ %g3 + 0x11 ] <== NOT EXECUTED
p = p2;
p2->avl.bal = 0;
200cf30: c0 29 20 11 clrb [ %g4 + 0x11 ] <== NOT EXECUTED
200cf34: 86 10 00 04 mov %g4, %g3 <== NOT EXECUTED
200cf38: 10 bf ff cb b 200ce64 <rtems_bdbuf_remove_from_tree+0x1ac><== NOT EXECUTED
200cf3c: 88 10 20 01 mov 1, %g4 <== NOT EXECUTED
}
if (p->avl.cache == -1)
{
/* rebalance left branch */
switch (p->avl.bal)
200cf40: 80 a0 e0 00 cmp %g3, 0
200cf44: 12 80 00 0a bne 200cf6c <rtems_bdbuf_remove_from_tree+0x2b4>
200cf48: 80 a0 e0 01 cmp %g3, 1
{
case -1:
p->avl.bal = 0;
break;
case 0:
p->avl.bal = 1;
200cf4c: d4 28 a0 11 stb %o2, [ %g2 + 0x11 ]
200cf50: 86 10 00 02 mov %g2, %g3
200cf54: 10 bf ff c4 b 200ce64 <rtems_bdbuf_remove_from_tree+0x1ac>
200cf58: 88 10 20 00 clr %g4
*root = q;
}
modified = true;
while (modified)
200cf5c: 12 bf ff cc bne 200ce8c <rtems_bdbuf_remove_from_tree+0x1d4><== ALWAYS TAKEN
200cf60: c6 20 a0 08 st %g3, [ %g2 + 8 ]
200cf64: 81 c7 e0 08 ret <== NOT EXECUTED
200cf68: 81 e8 00 00 restore <== NOT EXECUTED
}
if (p->avl.cache == -1)
{
/* rebalance left branch */
switch (p->avl.bal)
200cf6c: 02 80 00 08 be 200cf8c <rtems_bdbuf_remove_from_tree+0x2d4>
200cf70: 80 a0 ff ff cmp %g3, -1
200cf74: 32 bf ff d5 bne,a 200cec8 <rtems_bdbuf_remove_from_tree+0x210><== NEVER TAKEN
200cf78: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED
{
/* rebalance right branch */
switch (p->avl.bal)
{
case +1:
p->avl.bal = 0;
200cf7c: c0 28 a0 11 clrb [ %g2 + 0x11 ]
200cf80: 86 10 00 02 mov %g2, %g3
200cf84: 10 bf ff b8 b 200ce64 <rtems_bdbuf_remove_from_tree+0x1ac>
200cf88: 88 10 20 01 mov 1, %g4
p->avl.bal = 1;
modified = false;
break;
case +1:
p1 = p->avl.right;
200cf8c: da 00 a0 0c ld [ %g2 + 0xc ], %o5
if (p1->avl.bal >= 0) /* simple RR-turn */
200cf90: c6 4b 60 11 ldsb [ %o5 + 0x11 ], %g3
200cf94: 80 a0 e0 00 cmp %g3, 0
200cf98: 26 80 00 20 bl,a 200d018 <rtems_bdbuf_remove_from_tree+0x360><== NEVER TAKEN
200cf9c: c6 03 60 08 ld [ %o5 + 8 ], %g3 <== NOT EXECUTED
{
p->avl.right = p1->avl.left;
200cfa0: d6 03 60 08 ld [ %o5 + 8 ], %o3
p1->avl.left = p;
200cfa4: c4 23 60 08 st %g2, [ %o5 + 8 ]
if (p1->avl.bal == 0)
200cfa8: 12 80 00 13 bne 200cff4 <rtems_bdbuf_remove_from_tree+0x33c><== NEVER TAKEN
200cfac: d6 20 a0 0c st %o3, [ %g2 + 0xc ]
{
p1->avl.bal = -1;
200cfb0: c8 2b 60 11 stb %g4, [ %o5 + 0x11 ]
200cfb4: 86 10 00 0d mov %o5, %g3
200cfb8: 10 bf ff ab b 200ce64 <rtems_bdbuf_remove_from_tree+0x1ac>
200cfbc: 88 10 20 00 clr %g4
p1 = p->avl.left;
if (p1->avl.bal <= 0) /* simple LL-turn */
{
p->avl.left = p1->avl.right;
p1->avl.right = p;
200cfc0: c4 20 e0 0c st %g2, [ %g3 + 0xc ] <== NOT EXECUTED
if (p1->avl.bal == 0)
200cfc4: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED
200cfc8: 12 80 00 10 bne 200d008 <rtems_bdbuf_remove_from_tree+0x350><== NOT EXECUTED
200cfcc: da 20 a0 08 st %o5, [ %g2 + 8 ] <== NOT EXECUTED
{
p1->avl.bal = 1;
200cfd0: 10 bf ff a5 b 200ce64 <rtems_bdbuf_remove_from_tree+0x1ac><== NOT EXECUTED
200cfd4: d4 28 e0 11 stb %o2, [ %g3 + 0x11 ] <== NOT EXECUTED
p1->avl.right = p2->avl.left;
p2->avl.left = p1;
p->avl.left = p2->avl.right;
p2->avl.right = p;
if (p2->avl.bal == -1) p->avl.bal = 1; else p->avl.bal = 0;
200cfd8: d4 28 a0 11 stb %o2, [ %g2 + 0x11 ] <== NOT EXECUTED
if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
200cfdc: c4 49 20 11 ldsb [ %g4 + 0x11 ], %g2 <== NOT EXECUTED
200cfe0: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED
200cfe4: 32 bf ff d3 bne,a 200cf30 <rtems_bdbuf_remove_from_tree+0x278><== NOT EXECUTED
200cfe8: c0 28 e0 11 clrb [ %g3 + 0x11 ] <== NOT EXECUTED
200cfec: 10 bf ff d1 b 200cf30 <rtems_bdbuf_remove_from_tree+0x278><== NOT EXECUTED
200cff0: d8 28 e0 11 stb %o4, [ %g3 + 0x11 ] <== NOT EXECUTED
p1->avl.bal = -1;
modified = false;
}
else
{
p->avl.bal = 0;
200cff4: c0 28 a0 11 clrb [ %g2 + 0x11 ] <== NOT EXECUTED
p1->avl.bal = 0;
200cff8: c0 2b 60 11 clrb [ %o5 + 0x11 ] <== NOT EXECUTED
200cffc: 86 10 00 0d mov %o5, %g3 <== NOT EXECUTED
200d000: 10 bf ff 99 b 200ce64 <rtems_bdbuf_remove_from_tree+0x1ac><== NOT EXECUTED
200d004: 88 10 20 01 mov 1, %g4 <== NOT EXECUTED
p1->avl.bal = 1;
modified = false;
}
else
{
p->avl.bal = 0;
200d008: c0 28 a0 11 clrb [ %g2 + 0x11 ] <== NOT EXECUTED
p1->avl.bal = 0;
200d00c: c0 28 e0 11 clrb [ %g3 + 0x11 ] <== NOT EXECUTED
200d010: 10 bf ff 95 b 200ce64 <rtems_bdbuf_remove_from_tree+0x1ac><== NOT EXECUTED
200d014: 88 10 20 01 mov 1, %g4 <== NOT EXECUTED
}
else /* double RL-turn */
{
p2 = p1->avl.left;
p1->avl.left = p2->avl.right;
200d018: d6 00 e0 0c ld [ %g3 + 0xc ], %o3 <== NOT EXECUTED
p2->avl.right = p1;
200d01c: da 20 e0 0c st %o5, [ %g3 + 0xc ] <== NOT EXECUTED
}
else /* double RL-turn */
{
p2 = p1->avl.left;
p1->avl.left = p2->avl.right;
200d020: d6 23 60 08 st %o3, [ %o5 + 8 ] <== NOT EXECUTED
p2->avl.right = p1;
p->avl.right = p2->avl.left;
200d024: d2 00 e0 08 ld [ %g3 + 8 ], %o1 <== NOT EXECUTED
p2->avl.left = p;
if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
200d028: d6 48 e0 11 ldsb [ %g3 + 0x11 ], %o3 <== NOT EXECUTED
{
p2 = p1->avl.left;
p1->avl.left = p2->avl.right;
p2->avl.right = p1;
p->avl.right = p2->avl.left;
200d02c: d2 20 a0 0c st %o1, [ %g2 + 0xc ] <== NOT EXECUTED
p2->avl.left = p;
if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
200d030: 80 a2 e0 01 cmp %o3, 1 <== NOT EXECUTED
200d034: 02 80 00 1b be 200d0a0 <rtems_bdbuf_remove_from_tree+0x3e8><== NOT EXECUTED
200d038: c4 20 e0 08 st %g2, [ %g3 + 8 ] <== NOT EXECUTED
200d03c: c0 28 a0 11 clrb [ %g2 + 0x11 ] <== NOT EXECUTED
if (p2->avl.bal == -1) p1->avl.bal = 1; else p1->avl.bal = 0;
200d040: c4 48 e0 11 ldsb [ %g3 + 0x11 ], %g2 <== NOT EXECUTED
200d044: 80 a0 bf ff cmp %g2, -1 <== NOT EXECUTED
200d048: 22 80 00 13 be,a 200d094 <rtems_bdbuf_remove_from_tree+0x3dc><== NOT EXECUTED
200d04c: d4 2b 60 11 stb %o2, [ %o5 + 0x11 ] <== NOT EXECUTED
200d050: c0 2b 60 11 clrb [ %o5 + 0x11 ] <== NOT EXECUTED
modified = false;
}
else
{
p->avl.bal = 0;
p1->avl.bal = 0;
200d054: c0 28 e0 11 clrb [ %g3 + 0x11 ] <== NOT EXECUTED
200d058: 10 bf ff 83 b 200ce64 <rtems_bdbuf_remove_from_tree+0x1ac><== NOT EXECUTED
200d05c: 88 10 20 01 mov 1, %g4 <== NOT EXECUTED
/* at this moment q - is a node to delete, p is q's parent */
if (q->avl.right == NULL)
{
r = q->avl.left;
if (r != NULL)
200d060: 80 a0 e0 00 cmp %g3, 0
200d064: 02 bf ff 71 be 200ce28 <rtems_bdbuf_remove_from_tree+0x170>
200d068: 82 10 00 02 mov %g2, %g1
{
r->avl.bal = 0;
200d06c: 10 bf ff 6f b 200ce28 <rtems_bdbuf_remove_from_tree+0x170>
200d070: c0 28 e0 11 clrb [ %g3 + 0x11 ]
r = q->avl.right;
if (r->avl.left == NULL)
{
r->avl.left = q->avl.left;
200d074: c8 04 20 08 ld [ %l0 + 8 ], %g4
r->avl.bal = q->avl.bal;
200d078: da 0c 20 11 ldub [ %l0 + 0x11 ], %o5
r = q->avl.right;
if (r->avl.left == NULL)
{
r->avl.left = q->avl.left;
200d07c: c8 20 e0 08 st %g4, [ %g3 + 8 ]
r->avl.bal = q->avl.bal;
200d080: da 28 e0 11 stb %o5, [ %g3 + 0x11 ]
r->avl.cache = 1;
200d084: 88 10 20 01 mov 1, %g4
200d088: c8 28 e0 10 stb %g4, [ %g3 + 0x10 ]
*buf_prev++ = q = r;
200d08c: 10 bf ff 67 b 200ce28 <rtems_bdbuf_remove_from_tree+0x170>
200d090: c6 20 80 00 st %g3, [ %g2 ]
modified = false;
}
else
{
p->avl.bal = 0;
p1->avl.bal = 0;
200d094: c0 28 e0 11 clrb [ %g3 + 0x11 ] <== NOT EXECUTED
200d098: 10 bf ff 73 b 200ce64 <rtems_bdbuf_remove_from_tree+0x1ac><== NOT EXECUTED
200d09c: 88 10 20 01 mov 1, %g4 <== NOT EXECUTED
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;
200d0a0: 10 bf ff e8 b 200d040 <rtems_bdbuf_remove_from_tree+0x388><== NOT EXECUTED
200d0a4: c8 28 a0 11 stb %g4, [ %g2 + 0x11 ] <== NOT EXECUTED
200d0a8: 81 c7 e0 08 ret
200d0ac: 81 e8 00 00 restore
0200d0b0 <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)
{
200d0b0: 9d e3 bf a0 save %sp, -96, %sp
switch (bd->state)
200d0b4: c2 06 20 28 ld [ %i0 + 0x28 ], %g1
200d0b8: 80 a0 60 00 cmp %g1, 0
200d0bc: 02 80 00 0c be 200d0ec <rtems_bdbuf_remove_from_tree_and_lru_list+0x3c>
200d0c0: 80 a0 60 02 cmp %g1, 2
200d0c4: 02 80 00 08 be 200d0e4 <rtems_bdbuf_remove_from_tree_and_lru_list+0x34><== ALWAYS TAKEN
200d0c8: 01 00 00 00 nop
break;
case RTEMS_BDBUF_STATE_CACHED:
rtems_bdbuf_remove_from_tree (bd);
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_10);
200d0cc: 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);
200d0d0: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200d0d4: 82 10 60 08 or %g1, 8, %g1 ! 42000008 <RAM_END+0x3fc00008><== NOT EXECUTED
200d0d8: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200d0dc: 7f ff ec 82 call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200d0e0: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
switch (bd->state)
{
case RTEMS_BDBUF_STATE_FREE:
break;
case RTEMS_BDBUF_STATE_CACHED:
rtems_bdbuf_remove_from_tree (bd);
200d0e4: 7f ff fe f5 call 200ccb8 <rtems_bdbuf_remove_from_tree>
200d0e8: 90 10 00 18 mov %i0, %o0
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
200d0ec: 7f ff ed e0 call 200886c <_Chain_Extract>
200d0f0: 81 e8 00 00 restore
0200c75c <rtems_bdbuf_restore_preemption>:
return prev_mode;
}
static void
rtems_bdbuf_restore_preemption (rtems_mode prev_mode)
{
200c75c: 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);
200c760: 13 00 00 3f sethi %hi(0xfc00), %o1
return prev_mode;
}
static void
rtems_bdbuf_restore_preemption (rtems_mode prev_mode)
{
200c764: 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);
200c768: 90 10 00 18 mov %i0, %o0
200c76c: 92 12 63 ff or %o1, 0x3ff, %o1
200c770: 40 00 13 cc call 20116a0 <rtems_task_mode>
200c774: 94 07 a0 44 add %fp, 0x44, %o2
if (sc != RTEMS_SUCCESSFUL)
200c778: 80 a2 20 00 cmp %o0, 0
200c77c: 12 80 00 04 bne 200c78c <rtems_bdbuf_restore_preemption+0x30><== NEVER TAKEN
200c780: 11 10 80 00 sethi %hi(0x42000000), %o0
200c784: 81 c7 e0 08 ret
200c788: 81 e8 00 00 restore
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_PREEMPT_RST);
200c78c: 7f ff ee d6 call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200c790: 90 12 20 11 or %o0, 0x11, %o0 <== NOT EXECUTED
0200c174 <rtems_bdbuf_swapout_modified_processing>:
rtems_chain_control* chain,
rtems_chain_control* transfer,
bool sync_active,
bool update_timers,
uint32_t timer_delta)
{
200c174: 9d e3 bf a0 save %sp, -96, %sp
if (!rtems_chain_is_empty (chain))
200c178: c2 06 40 00 ld [ %i1 ], %g1
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200c17c: b2 06 60 04 add %i1, 4, %i1
200c180: 80 a0 40 19 cmp %g1, %i1
200c184: 02 80 00 39 be 200c268 <rtems_bdbuf_swapout_modified_processing+0xf4>
200c188: b6 8e e0 ff andcc %i3, 0xff, %i3
node = node->next;
/*
* A sync active with no valid dev means sync all.
*/
if (sync_active && (*dev == BDBUF_INVALID_DEV))
200c18c: 12 80 00 59 bne 200c2f0 <rtems_bdbuf_swapout_modified_processing+0x17c>
200c190: a0 10 00 01 mov %g1, %l0
200c194: a2 10 20 00 clr %l1
sync_all = true;
else
sync_all = false;
while (!rtems_chain_is_tail (chain, node))
200c198: 80 a0 40 19 cmp %g1, %i1
200c19c: 02 80 00 33 be 200c268 <rtems_bdbuf_swapout_modified_processing+0xf4><== NEVER TAKEN
200c1a0: 25 00 80 85 sethi %hi(0x2021400), %l2
200c1a4: a2 0c 60 ff and %l1, 0xff, %l1
|| rtems_bdbuf_has_buffer_waiters ())
bd->hold_timer = 0;
if (bd->hold_timer)
{
if (update_timers)
200c1a8: b8 0f 20 ff and %i4, 0xff, %i4
}
static bool
rtems_bdbuf_has_buffer_waiters (void)
{
return bdbuf_cache.buffer_waiters.count;
200c1ac: a4 14 a3 c0 or %l2, 0x3c0, %l2
200c1b0: aa 06 a0 04 add %i2, 4, %l5
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200c1b4: a8 10 20 09 mov 9, %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))
200c1b8: 80 a4 60 00 cmp %l1, 0
200c1bc: 12 80 00 31 bne 200c280 <rtems_bdbuf_swapout_modified_processing+0x10c>
200c1c0: 80 a6 e0 00 cmp %i3, 0
200c1c4: 02 80 00 07 be 200c1e0 <rtems_bdbuf_swapout_modified_processing+0x6c>
200c1c8: 01 00 00 00 nop
200c1cc: c4 06 00 00 ld [ %i0 ], %g2
200c1d0: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
200c1d4: 80 a0 80 01 cmp %g2, %g1
200c1d8: 22 80 00 26 be,a 200c270 <rtems_bdbuf_swapout_modified_processing+0xfc>
200c1dc: c4 06 20 04 ld [ %i0 + 4 ], %g2
}
static bool
rtems_bdbuf_has_buffer_waiters (void)
{
return bdbuf_cache.buffer_waiters.count;
200c1e0: c2 04 a0 78 ld [ %l2 + 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))
200c1e4: 80 a0 60 00 cmp %g1, 0
200c1e8: 12 80 00 26 bne 200c280 <rtems_bdbuf_swapout_modified_processing+0x10c>
200c1ec: 01 00 00 00 nop
|| rtems_bdbuf_has_buffer_waiters ())
bd->hold_timer = 0;
if (bd->hold_timer)
200c1f0: c2 04 20 34 ld [ %l0 + 0x34 ], %g1
200c1f4: 80 a0 60 00 cmp %g1, 0
200c1f8: 22 80 00 11 be,a 200c23c <rtems_bdbuf_swapout_modified_processing+0xc8>
200c1fc: c2 06 00 00 ld [ %i0 ], %g1
{
if (update_timers)
200c200: 80 a7 20 00 cmp %i4, 0
200c204: 02 80 00 09 be 200c228 <rtems_bdbuf_swapout_modified_processing+0xb4>
200c208: 01 00 00 00 nop
{
if (bd->hold_timer > timer_delta)
200c20c: c2 04 20 34 ld [ %l0 + 0x34 ], %g1
200c210: 80 a0 40 1d cmp %g1, %i5
200c214: 08 80 00 4d bleu 200c348 <rtems_bdbuf_swapout_modified_processing+0x1d4>
200c218: 01 00 00 00 nop
bd->hold_timer -= timer_delta;
200c21c: c2 04 20 34 ld [ %l0 + 0x34 ], %g1
200c220: 82 20 40 1d sub %g1, %i5, %g1
200c224: c2 24 20 34 st %g1, [ %l0 + 0x34 ]
else
bd->hold_timer = 0;
}
if (bd->hold_timer)
200c228: c2 04 20 34 ld [ %l0 + 0x34 ], %g1
200c22c: 80 a0 60 00 cmp %g1, 0
200c230: 32 80 00 0b bne,a 200c25c <rtems_bdbuf_swapout_modified_processing+0xe8>
200c234: 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)
200c238: c2 06 00 00 ld [ %i0 ], %g1
200c23c: 80 a0 7f ff cmp %g1, -1
200c240: 02 80 00 3a be 200c328 <rtems_bdbuf_swapout_modified_processing+0x1b4>
200c244: c6 06 20 04 ld [ %i0 + 4 ], %g3
*dev = bd->dev;
if (bd->dev == *dev)
200c248: c4 04 20 18 ld [ %l0 + 0x18 ], %g2
200c24c: 80 a0 80 01 cmp %g2, %g1
200c250: 22 80 00 0e be,a 200c288 <rtems_bdbuf_swapout_modified_processing+0x114><== ALWAYS TAKEN
200c254: c2 04 20 1c ld [ %l0 + 0x1c ], %g1
node = next_node;
}
else
{
node = node->next;
200c258: e0 04 00 00 ld [ %l0 ], %l0 <== NOT EXECUTED
if (sync_active && (*dev == BDBUF_INVALID_DEV))
sync_all = true;
else
sync_all = false;
while (!rtems_chain_is_tail (chain, node))
200c25c: 80 a6 40 10 cmp %i1, %l0
200c260: 12 bf ff d7 bne 200c1bc <rtems_bdbuf_swapout_modified_processing+0x48>
200c264: 80 a4 60 00 cmp %l1, 0
200c268: 81 c7 e0 08 ret
200c26c: 81 e8 00 00 restore
* 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))
200c270: c2 04 20 1c ld [ %l0 + 0x1c ], %g1
200c274: 80 a0 80 01 cmp %g2, %g1
200c278: 12 bf ff da bne 200c1e0 <rtems_bdbuf_swapout_modified_processing+0x6c><== NEVER TAKEN
200c27c: 01 00 00 00 nop
|| rtems_bdbuf_has_buffer_waiters ())
bd->hold_timer = 0;
200c280: c0 24 20 34 clr [ %l0 + 0x34 ]
200c284: 30 bf ff db b,a 200c1f0 <rtems_bdbuf_swapout_modified_processing+0x7c>
* calls sets the dev to use.
*/
if (*dev == BDBUF_INVALID_DEV)
*dev = bd->dev;
if (bd->dev == *dev)
200c288: 80 a0 40 03 cmp %g1, %g3
200c28c: 32 bf ff f4 bne,a 200c25c <rtems_bdbuf_swapout_modified_processing+0xe8><== NEVER TAKEN
200c290: 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 );
200c294: 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;
200c298: e8 24 20 28 st %l4, [ %l0 + 0x28 ]
200c29c: 7f ff f1 74 call 200886c <_Chain_Extract>
200c2a0: e6 04 00 00 ld [ %l0 ], %l3
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);
rtems_chain_extract (node);
tnode = tnode->previous;
200c2a4: d0 05 60 04 ld [ %l5 + 4 ], %o0
while (node && !rtems_chain_is_head (transfer, tnode))
200c2a8: 80 a2 00 1a cmp %o0, %i2
200c2ac: 02 80 00 0c be 200c2dc <rtems_bdbuf_swapout_modified_processing+0x168>
200c2b0: 92 10 00 10 mov %l0, %o1
200c2b4: c4 04 20 20 ld [ %l0 + 0x20 ], %g2
{
rtems_bdbuf_buffer* tbd = (rtems_bdbuf_buffer*) tnode;
if (bd->block > tbd->block)
200c2b8: c2 02 20 20 ld [ %o0 + 0x20 ], %g1
200c2bc: 80 a0 40 02 cmp %g1, %g2
200c2c0: 0a 80 00 16 bcs 200c318 <rtems_bdbuf_swapout_modified_processing+0x1a4>
200c2c4: 92 10 00 10 mov %l0, %o1
{
rtems_chain_insert (tnode, node);
node = NULL;
}
else
tnode = tnode->previous;
200c2c8: d0 02 20 04 ld [ %o0 + 4 ], %o0
rtems_chain_extract (node);
tnode = tnode->previous;
while (node && !rtems_chain_is_head (transfer, tnode))
200c2cc: 80 a2 00 1a cmp %o0, %i2
200c2d0: 32 bf ff fb bne,a 200c2bc <rtems_bdbuf_swapout_modified_processing+0x148>
200c2d4: 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);
200c2d8: 92 10 00 10 mov %l0, %o1
200c2dc: 90 10 00 1a mov %i2, %o0
200c2e0: 40 00 16 2b call 2011b8c <_Chain_Insert>
200c2e4: a0 10 00 13 mov %l3, %l0
if (sync_active && (*dev == BDBUF_INVALID_DEV))
sync_all = true;
else
sync_all = false;
while (!rtems_chain_is_tail (chain, node))
200c2e8: 10 bf ff de b 200c260 <rtems_bdbuf_swapout_modified_processing+0xec>
200c2ec: 80 a6 40 10 cmp %i1, %l0
* @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,
200c2f0: c4 06 00 00 ld [ %i0 ], %g2
200c2f4: 80 a0 bf ff cmp %g2, -1
200c2f8: 12 bf ff a8 bne 200c198 <rtems_bdbuf_swapout_modified_processing+0x24>
200c2fc: a2 10 20 00 clr %l1
200c300: c4 06 20 04 ld [ %i0 + 4 ], %g2
200c304: 80 a0 bf ff cmp %g2, -1
200c308: 22 bf ff a4 be,a 200c198 <rtems_bdbuf_swapout_modified_processing+0x24><== ALWAYS TAKEN
200c30c: a2 10 20 01 mov 1, %l1
if (sync_active && (*dev == BDBUF_INVALID_DEV))
sync_all = true;
else
sync_all = false;
while (!rtems_chain_is_tail (chain, node))
200c310: 10 bf ff a3 b 200c19c <rtems_bdbuf_swapout_modified_processing+0x28><== NOT EXECUTED
200c314: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void rtems_chain_insert(
rtems_chain_node *after_node,
rtems_chain_node *the_node
)
{
_Chain_Insert( after_node, the_node );
200c318: 40 00 16 1d call 2011b8c <_Chain_Insert>
200c31c: a0 10 00 13 mov %l3, %l0
200c320: 10 bf ff d0 b 200c260 <rtems_bdbuf_swapout_modified_processing+0xec>
200c324: 80 a6 40 10 cmp %i1, %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)
200c328: 80 a0 ff ff cmp %g3, -1
200c32c: 32 bf ff c8 bne,a 200c24c <rtems_bdbuf_swapout_modified_processing+0xd8><== NEVER TAKEN
200c330: c4 04 20 18 ld [ %l0 + 0x18 ], %g2 <== NOT EXECUTED
*dev = bd->dev;
200c334: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
200c338: c6 04 20 1c ld [ %l0 + 0x1c ], %g3
200c33c: c2 26 00 00 st %g1, [ %i0 ]
200c340: 10 bf ff c2 b 200c248 <rtems_bdbuf_swapout_modified_processing+0xd4>
200c344: c6 26 20 04 st %g3, [ %i0 + 4 ]
if (update_timers)
{
if (bd->hold_timer > timer_delta)
bd->hold_timer -= timer_delta;
else
bd->hold_timer = 0;
200c348: c0 24 20 34 clr [ %l0 + 0x34 ]
200c34c: 30 bf ff b7 b,a 200c228 <rtems_bdbuf_swapout_modified_processing+0xb4>
0200d85c <rtems_bdbuf_swapout_task>:
* not this.
* @return rtems_task Not used.
*/
static rtems_task
rtems_bdbuf_swapout_task (rtems_task_argument arg)
{
200d85c: 9d e3 bf 68 save %sp, -152, %sp
rtems_bdbuf_swapout_transfer transfer;
uint32_t period_in_ticks;
const uint32_t period_in_msecs = bdbuf_config.swapout_period;;
200d860: 21 00 80 7e sethi %hi(0x201f800), %l0
200d864: a0 14 22 3c or %l0, 0x23c, %l0 ! 201fa3c <rtems_bdbuf_configuration>
uint32_t timer_delta;
transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
200d868: 7f ff fc fd call 200cc5c <rtems_bdbuf_swapout_writereq_alloc>
200d86c: ec 04 20 0c ld [ %l0 + 0xc ], %l6
transfer.syncing = false;
/*
* Localise the period.
*/
period_in_ticks = RTEMS_MICROSECONDS_TO_TICKS (period_in_msecs * 1000);
200d870: 03 00 80 84 sethi %hi(0x2021000), %g1
200d874: d2 00 60 1c ld [ %g1 + 0x1c ], %o1 ! 202101c <Configuration+0xc>
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
200d878: 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;
200d87c: 05 3f ff ff sethi %hi(0xfffffc00), %g2
200d880: c2 27 bf d0 st %g1, [ %fp + -48 ]
200d884: 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);
200d888: 83 2d a0 02 sll %l6, 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;
200d88c: 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 ();
200d890: d0 27 bf ec st %o0, [ %fp + -20 ]
rtems_chain_initialize_empty (&transfer.bds);
transfer.dev = BDBUF_INVALID_DEV;
200d894: c4 3f bf e0 std %g2, [ %fp + -32 ]
the_chain->permanent_null = NULL;
200d898: c0 27 bf d4 clr [ %fp + -44 ]
transfer.syncing = false;
200d89c: c0 2f bf e8 clrb [ %fp + -24 ]
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
200d8a0: ae 07 bf d0 add %fp, -48, %l7
/*
* Localise the period.
*/
period_in_ticks = RTEMS_MICROSECONDS_TO_TICKS (period_in_msecs * 1000);
200d8a4: 91 2d a0 07 sll %l6, 7, %o0
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
200d8a8: ee 27 bf d8 st %l7, [ %fp + -40 ]
200d8ac: 90 22 00 01 sub %o0, %g1, %o0
200d8b0: 90 02 00 16 add %o0, %l6, %o0
200d8b4: 40 00 40 52 call 201d9fc <.udiv>
200d8b8: 91 2a 20 03 sll %o0, 3, %o0
rtems_bdbuf_swapout_workers_open (void)
{
rtems_status_code sc;
size_t w;
rtems_bdbuf_lock_cache ();
200d8bc: 7f ff fa 17 call 200c118 <rtems_bdbuf_lock_cache>
200d8c0: d0 27 bf cc st %o0, [ %fp + -52 ]
for (w = 0; w < bdbuf_config.swapout_workers; w++)
200d8c4: e6 04 20 14 ld [ %l0 + 0x14 ], %l3
200d8c8: 80 a4 e0 00 cmp %l3, 0
200d8cc: 02 80 00 35 be 200d9a0 <rtems_bdbuf_swapout_task+0x144> <== ALWAYS TAKEN
200d8d0: 3b 00 80 85 sethi %hi(0x2021400), %i5
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),
(bdbuf_config.swapout_priority ?
200d8d4: e4 04 20 08 ld [ %l0 + 8 ], %l2 <== NOT EXECUTED
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),
200d8d8: 2b 10 91 1b sethi %hi(0x42446c00), %l5 <== NOT EXECUTED
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,
200d8dc: 39 00 80 36 sethi %hi(0x200d800), %i4 <== NOT EXECUTED
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;
200d8e0: 35 3f ff ff sethi %hi(0xfffffc00), %i2 <== 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 );
200d8e4: ba 17 63 c8 or %i5, 0x3c8, %i5 <== NOT EXECUTED
200d8e8: b4 16 a3 ff or %i2, 0x3ff, %i2 <== NOT EXECUTED
sc = rtems_task_create (rtems_build_name('B', 'D', 'o', 'a' + w),
200d8ec: aa 15 63 00 or %l5, 0x300, %l5 <== NOT EXECUTED
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,
200d8f0: b8 17 23 fc or %i4, 0x3fc, %i4 <== NOT EXECUTED
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),
(bdbuf_config.swapout_priority ?
200d8f4: a2 10 20 00 clr %l1 <== NOT EXECUTED
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;
200d8f8: a8 10 20 01 mov 1, %l4 <== NOT EXECUTED
worker->transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
rtems_chain_initialize_empty (&worker->transfer.bds);
worker->transfer.dev = BDBUF_INVALID_DEV;
200d8fc: b6 10 00 1a mov %i2, %i3 <== NOT EXECUTED
for (w = 0; w < bdbuf_config.swapout_workers; w++)
{
rtems_bdbuf_swapout_worker* worker;
worker = malloc (sizeof (rtems_bdbuf_swapout_worker));
200d900: 7f ff da 0c call 2004130 <malloc> <== NOT EXECUTED
200d904: 90 10 20 38 mov 0x38, %o0 <== NOT EXECUTED
if (!worker)
200d908: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
200d90c: 02 80 00 b8 be 200dbec <rtems_bdbuf_swapout_task+0x390> <== NOT EXECUTED
200d910: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
200d914: 7f ff eb ca call 200883c <_Chain_Append> <== NOT EXECUTED
200d918: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_NOMEM);
rtems_chain_append (&bdbuf_cache.swapout_workers, &worker->link);
worker->enabled = true;
200d91c: e8 2c 20 0c stb %l4, [ %l0 + 0xc ] <== NOT EXECUTED
worker->transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
200d920: 7f ff fc cf call 200cc5c <rtems_bdbuf_swapout_writereq_alloc><== NOT EXECUTED
200d924: 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);
200d928: 82 04 20 14 add %l0, 0x14, %g1 <== NOT EXECUTED
200d92c: d0 24 20 2c st %o0, [ %l0 + 0x2c ] <== NOT EXECUTED
200d930: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
200d934: c0 24 20 14 clr [ %l0 + 0x14 ] <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
200d938: 82 04 20 10 add %l0, 0x10, %g1 <== NOT EXECUTED
rtems_chain_initialize_empty (&worker->transfer.bds);
worker->transfer.dev = BDBUF_INVALID_DEV;
200d93c: f4 3c 20 20 std %i2, [ %l0 + 0x20 ] <== NOT EXECUTED
200d940: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED
sc = rtems_task_create (rtems_build_name('B', 'D', 'o', 'a' + w),
200d944: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
200d948: 12 80 00 03 bne 200d954 <rtems_bdbuf_swapout_task+0xf8> <== NOT EXECUTED
200d94c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
200d950: 92 10 20 0f mov 0xf, %o1 <== NOT EXECUTED
200d954: 90 04 60 61 add %l1, 0x61, %o0 <== NOT EXECUTED
200d958: 15 00 00 08 sethi %hi(0x2000), %o2 <== NOT EXECUTED
200d95c: 90 12 00 15 or %o0, %l5, %o0 <== NOT EXECUTED
200d960: 96 10 24 00 mov 0x400, %o3 <== NOT EXECUTED
200d964: 98 10 20 00 clr %o4 <== NOT EXECUTED
200d968: 7f ff e9 4b call 2007e94 <rtems_task_create> <== NOT EXECUTED
200d96c: 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)
200d970: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200d974: 12 80 00 9b bne 200dbe0 <rtems_bdbuf_swapout_task+0x384> <== NOT EXECUTED
200d978: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_CREATE);
sc = rtems_task_start (worker->id,
200d97c: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED
200d980: 7f ff e9 d5 call 20080d4 <rtems_task_start> <== NOT EXECUTED
200d984: 92 10 00 1c mov %i4, %o1 <== NOT EXECUTED
rtems_bdbuf_swapout_worker_task,
(rtems_task_argument) worker);
if (sc != RTEMS_SUCCESSFUL)
200d988: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200d98c: 12 80 00 92 bne 200dbd4 <rtems_bdbuf_swapout_task+0x378> <== NOT EXECUTED
200d990: a2 04 60 01 inc %l1 <== NOT EXECUTED
rtems_status_code sc;
size_t w;
rtems_bdbuf_lock_cache ();
for (w = 0; w < bdbuf_config.swapout_workers; w++)
200d994: 80 a4 40 13 cmp %l1, %l3 <== NOT EXECUTED
200d998: 0a bf ff da bcs 200d900 <rtems_bdbuf_swapout_task+0xa4> <== NOT EXECUTED
200d99c: 01 00 00 00 nop <== NOT EXECUTED
if (worker)
transfer = &worker->transfer;
}
rtems_chain_initialize_empty (&transfer->bds);
transfer->dev = BDBUF_INVALID_DEV;
200d9a0: 31 3f ff ff sethi %hi(0xfffffc00), %i0
200d9a4: 23 00 80 85 sethi %hi(0x2021400), %l1
200d9a8: b0 16 23 ff or %i0, 0x3ff, %i0
(rtems_task_argument) worker);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_START);
}
rtems_bdbuf_unlock_cache ();
200d9ac: 7f ff fa 69 call 200c350 <rtems_bdbuf_unlock_cache>
200d9b0: a2 14 63 c0 or %l1, 0x3c0, %l1
if (worker)
transfer = &worker->transfer;
}
rtems_chain_initialize_empty (&transfer->bds);
transfer->dev = BDBUF_INVALID_DEV;
200d9b4: b2 10 00 18 mov %i0, %i1
/*
* Create the worker threads.
*/
rtems_bdbuf_swapout_workers_open ();
while (bdbuf_cache.swapout_enabled)
200d9b8: b6 10 00 11 mov %l1, %i3
/*
* 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,
200d9bc: b8 04 60 5c add %l1, 0x5c, %i4
timer_delta);
/*
* Process the cache's modified list.
*/
rtems_bdbuf_swapout_modified_processing (&transfer->dev,
200d9c0: ba 04 60 50 add %l1, 0x50, %i5
* 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)
200d9c4: b4 10 00 11 mov %l1, %i2
/*
* Create the worker threads.
*/
rtems_bdbuf_swapout_workers_open ();
while (bdbuf_cache.swapout_enabled)
200d9c8: c2 0c 60 04 ldub [ %l1 + 4 ], %g1
200d9cc: 80 a0 60 00 cmp %g1, 0
200d9d0: 02 80 00 67 be 200db6c <rtems_bdbuf_swapout_task+0x310> <== NEVER TAKEN
200d9d4: aa 10 20 01 mov 1, %l5
rtems_bdbuf_swapout_transfer* transfer)
{
rtems_bdbuf_swapout_worker* worker;
bool transfered_buffers = false;
rtems_bdbuf_lock_cache ();
200d9d8: 7f ff f9 d0 call 200c118 <rtems_bdbuf_lock_cache>
200d9dc: 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)
200d9e0: c2 0c 60 30 ldub [ %l1 + 0x30 ], %g1
200d9e4: a4 10 20 00 clr %l2
200d9e8: 80 a0 60 00 cmp %g1, 0
200d9ec: 02 80 00 54 be 200db3c <rtems_bdbuf_swapout_task+0x2e0>
200d9f0: a0 10 00 17 mov %l7, %l0
transfer = &worker->transfer;
}
rtems_chain_initialize_empty (&transfer->bds);
transfer->dev = BDBUF_INVALID_DEV;
transfer->syncing = bdbuf_cache.sync_active;
200d9f4: c2 0c 60 30 ldub [ %l1 + 0x30 ], %g1
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200d9f8: a6 04 20 04 add %l0, 4, %l3
200d9fc: 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)
200da00: c2 0c 60 30 ldub [ %l1 + 0x30 ], %g1
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
200da04: c0 24 20 04 clr [ %l0 + 4 ]
the_chain->last = _Chain_Head(the_chain);
200da08: e0 24 20 08 st %l0, [ %l0 + 8 ]
if (worker)
transfer = &worker->transfer;
}
rtems_chain_initialize_empty (&transfer->bds);
transfer->dev = BDBUF_INVALID_DEV;
200da0c: f0 3c 20 10 std %i0, [ %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)
200da10: 80 a0 60 00 cmp %g1, 0
200da14: 02 80 00 04 be 200da24 <rtems_bdbuf_swapout_task+0x1c8>
200da18: e6 24 00 00 st %l3, [ %l0 ]
transfer->dev = bdbuf_cache.sync_device;
200da1c: c4 1e e0 38 ldd [ %i3 + 0x38 ], %g2
200da20: 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,
200da24: a8 04 20 10 add %l0, 0x10, %l4
200da28: 96 10 20 01 mov 1, %o3
200da2c: 98 10 20 00 clr %o4
200da30: 9a 10 00 16 mov %l6, %o5
200da34: 90 10 00 14 mov %l4, %o0
200da38: 92 10 00 1c mov %i4, %o1
200da3c: 7f ff f9 ce call 200c174 <rtems_bdbuf_swapout_modified_processing>
200da40: 94 10 00 10 mov %l0, %o2
timer_delta);
/*
* Process the cache's modified list.
*/
rtems_bdbuf_swapout_modified_processing (&transfer->dev,
200da44: d6 0c 60 30 ldub [ %l1 + 0x30 ], %o3
200da48: 90 10 00 14 mov %l4, %o0
200da4c: 92 10 00 1d mov %i5, %o1
200da50: 94 10 00 10 mov %l0, %o2
200da54: 98 0d 60 01 and %l5, 1, %o4
200da58: 7f ff f9 c7 call 200c174 <rtems_bdbuf_swapout_modified_processing>
200da5c: 9a 10 00 16 mov %l6, %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 ();
200da60: 7f ff fa 3c call 200c350 <rtems_bdbuf_unlock_cache>
200da64: 01 00 00 00 nop
/*
* If there are buffers to transfer to the media transfer them.
*/
if (!rtems_chain_is_empty (&transfer->bds))
200da68: c4 04 00 00 ld [ %l0 ], %g2
200da6c: 80 a4 c0 02 cmp %l3, %g2
200da70: 02 80 00 0b be 200da9c <rtems_bdbuf_swapout_task+0x240>
200da74: 82 10 20 00 clr %g1
{
if (worker)
200da78: 80 a4 a0 00 cmp %l2, 0
200da7c: 02 80 00 38 be 200db5c <rtems_bdbuf_swapout_task+0x300> <== ALWAYS TAKEN
200da80: 01 00 00 00 nop
{
rtems_status_code sc = rtems_event_send (worker->id,
200da84: d0 04 a0 08 ld [ %l2 + 8 ], %o0 <== NOT EXECUTED
200da88: 7f ff e7 53 call 20077d4 <rtems_event_send> <== NOT EXECUTED
200da8c: 92 10 20 04 mov 4, %o1 <== NOT EXECUTED
RTEMS_BDBUF_SWAPOUT_SYNC);
if (sc != RTEMS_SUCCESSFUL)
200da90: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200da94: 12 80 00 4d bne 200dbc8 <rtems_bdbuf_swapout_task+0x36c> <== NOT EXECUTED
200da98: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
}
transfered_buffers = true;
}
if (bdbuf_cache.sync_active && !transfered_buffers)
200da9c: c4 0c 60 30 ldub [ %l1 + 0x30 ], %g2
200daa0: 80 a0 a0 00 cmp %g2, 0
200daa4: 02 80 00 1d be 200db18 <rtems_bdbuf_swapout_task+0x2bc>
200daa8: 80 88 60 ff btst 0xff, %g1
200daac: 12 bf ff cb bne 200d9d8 <rtems_bdbuf_swapout_task+0x17c>
200dab0: aa 10 20 00 clr %l5
{
rtems_id sync_requester;
rtems_bdbuf_lock_cache ();
200dab4: 7f ff f9 99 call 200c118 <rtems_bdbuf_lock_cache>
200dab8: 01 00 00 00 nop
sync_requester = bdbuf_cache.sync_requester;
200dabc: e0 06 a0 34 ld [ %i2 + 0x34 ], %l0
bdbuf_cache.sync_active = false;
200dac0: c0 2e a0 30 clrb [ %i2 + 0x30 ]
bdbuf_cache.sync_requester = 0;
200dac4: c0 26 a0 34 clr [ %i2 + 0x34 ]
rtems_bdbuf_unlock_cache ();
200dac8: 7f ff fa 22 call 200c350 <rtems_bdbuf_unlock_cache>
200dacc: 01 00 00 00 nop
if (sync_requester)
200dad0: 80 a4 20 00 cmp %l0, 0
200dad4: 02 80 00 06 be 200daec <rtems_bdbuf_swapout_task+0x290> <== NEVER TAKEN
200dad8: d4 07 bf cc ld [ %fp + -52 ], %o2
rtems_event_send (sync_requester, RTEMS_BDBUF_TRANSFER_SYNC);
200dadc: 90 10 00 10 mov %l0, %o0
200dae0: 7f ff e7 3d call 20077d4 <rtems_event_send>
200dae4: 92 10 20 02 mov 2, %o1
*/
update_timers = false;
}
while (transfered_buffers);
sc = rtems_event_receive (RTEMS_BDBUF_SWAPOUT_SYNC,
200dae8: d4 07 bf cc ld [ %fp + -52 ], %o2
200daec: 90 10 20 04 mov 4, %o0
200daf0: 92 10 20 00 clr %o1
200daf4: 7f ff e6 d7 call 2007650 <rtems_event_receive>
200daf8: 96 07 bf fc add %fp, -4, %o3
RTEMS_EVENT_ALL | RTEMS_WAIT,
period_in_ticks,
&out);
if ((sc != RTEMS_SUCCESSFUL) && (sc != RTEMS_TIMEOUT))
200dafc: 80 a2 20 06 cmp %o0, 6
200db00: 02 bf ff b2 be 200d9c8 <rtems_bdbuf_swapout_task+0x16c>
200db04: 80 a2 20 00 cmp %o0, 0
200db08: 02 bf ff b0 be 200d9c8 <rtems_bdbuf_swapout_task+0x16c> <== ALWAYS TAKEN
200db0c: 11 10 80 00 sethi %hi(0x42000000), %o0
rtems_fatal_error_occurred (BLKDEV_FATAL_BDBUF_SWAPOUT_RE);
200db10: 7f ff e9 f5 call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200db14: 90 12 20 18 or %o0, 0x18, %o0 ! 42000018 <RAM_END+0x3fc00018><== NOT EXECUTED
/*
* 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,
200db18: 02 bf ff f4 be 200dae8 <rtems_bdbuf_swapout_task+0x28c>
200db1c: aa 10 20 00 clr %l5
rtems_bdbuf_swapout_transfer* transfer)
{
rtems_bdbuf_swapout_worker* worker;
bool transfered_buffers = false;
rtems_bdbuf_lock_cache ();
200db20: 7f ff f9 7e call 200c118 <rtems_bdbuf_lock_cache>
200db24: 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)
200db28: c2 0c 60 30 ldub [ %l1 + 0x30 ], %g1
200db2c: a4 10 20 00 clr %l2
200db30: 80 a0 60 00 cmp %g1, 0
200db34: 12 bf ff b0 bne 200d9f4 <rtems_bdbuf_swapout_task+0x198> <== NEVER TAKEN
200db38: a0 10 00 17 mov %l7, %l0
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
200db3c: 11 00 80 85 sethi %hi(0x2021400), %o0
200db40: 7f ff eb 55 call 2008894 <_Chain_Get>
200db44: 90 12 23 c8 or %o0, 0x3c8, %o0 ! 20217c8 <bdbuf_cache+0x8>
worker = NULL;
else
{
worker = (rtems_bdbuf_swapout_worker*)
rtems_chain_get (&bdbuf_cache.swapout_workers);
if (worker)
200db48: a4 92 20 00 orcc %o0, 0, %l2
200db4c: 12 bf ff aa bne 200d9f4 <rtems_bdbuf_swapout_task+0x198> <== NEVER TAKEN
200db50: a0 04 a0 10 add %l2, 0x10, %l0
200db54: 10 bf ff a8 b 200d9f4 <rtems_bdbuf_swapout_task+0x198>
200db58: a0 10 00 17 mov %l7, %l0
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WAKE);
}
else
{
rtems_bdbuf_swapout_write (transfer);
200db5c: 7f ff fe d0 call 200d69c <rtems_bdbuf_swapout_write>
200db60: 90 10 00 10 mov %l0, %o0
200db64: 10 bf ff ce b 200da9c <rtems_bdbuf_swapout_task+0x240>
200db68: 82 10 20 01 mov 1, %g1
static void
rtems_bdbuf_swapout_workers_close (void)
{
rtems_chain_node* node;
rtems_bdbuf_lock_cache ();
200db6c: 7f ff f9 6b call 200c118 <rtems_bdbuf_lock_cache> <== NOT EXECUTED
200db70: 01 00 00 00 nop <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
200db74: e0 06 e0 08 ld [ %i3 + 8 ], %l0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200db78: b6 06 e0 0c add %i3, 0xc, %i3 <== NOT EXECUTED
node = rtems_chain_first (&bdbuf_cache.swapout_workers);
while (!rtems_chain_is_tail (&bdbuf_cache.swapout_workers, node))
200db7c: 80 a4 00 1b cmp %l0, %i3 <== NOT EXECUTED
200db80: 02 80 00 0a be 200dba8 <rtems_bdbuf_swapout_task+0x34c> <== NOT EXECUTED
200db84: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) node;
worker->enabled = false;
rtems_event_send (worker->id, RTEMS_BDBUF_SWAPOUT_SYNC);
200db88: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== 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;
200db8c: c0 2c 20 0c clrb [ %l0 + 0xc ] <== NOT EXECUTED
rtems_event_send (worker->id, RTEMS_BDBUF_SWAPOUT_SYNC);
200db90: 7f ff e7 11 call 20077d4 <rtems_event_send> <== NOT EXECUTED
200db94: 92 10 20 04 mov 4, %o1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
200db98: e0 04 00 00 ld [ %l0 ], %l0 <== NOT EXECUTED
rtems_chain_node* node;
rtems_bdbuf_lock_cache ();
node = rtems_chain_first (&bdbuf_cache.swapout_workers);
while (!rtems_chain_is_tail (&bdbuf_cache.swapout_workers, node))
200db9c: 80 a4 00 1b cmp %l0, %i3 <== NOT EXECUTED
200dba0: 32 bf ff fb bne,a 200db8c <rtems_bdbuf_swapout_task+0x330><== NOT EXECUTED
200dba4: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED
worker->enabled = false;
rtems_event_send (worker->id, RTEMS_BDBUF_SWAPOUT_SYNC);
node = rtems_chain_next (node);
}
rtems_bdbuf_unlock_cache ();
200dba8: 7f ff f9 ea call 200c350 <rtems_bdbuf_unlock_cache> <== NOT EXECUTED
200dbac: 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);
200dbb0: 7f ff d8 78 call 2003d90 <free> <== NOT EXECUTED
200dbb4: d0 07 bf ec ld [ %fp + -20 ], %o0 <== NOT EXECUTED
rtems_task_delete (RTEMS_SELF);
200dbb8: 7f ff e9 02 call 2007fc0 <rtems_task_delete> <== NOT EXECUTED
200dbbc: 90 10 20 00 clr %o0 <== NOT EXECUTED
}
200dbc0: 81 c7 e0 08 ret <== NOT EXECUTED
200dbc4: 81 e8 00 00 restore <== NOT EXECUTED
if (worker)
{
rtems_status_code sc = rtems_event_send (worker->id,
RTEMS_BDBUF_SWAPOUT_SYNC);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WAKE);
200dbc8: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200dbcc: 7f ff e9 c6 call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200dbd0: 90 12 20 14 or %o0, 0x14, %o0 ! 42000014 <RAM_END+0x3fc00014><== NOT EXECUTED
sc = rtems_task_start (worker->id,
rtems_bdbuf_swapout_worker_task,
(rtems_task_argument) worker);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_START);
200dbd4: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200dbd8: 7f ff e9 c3 call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200dbdc: 90 12 20 17 or %o0, 0x17, %o0 ! 42000017 <RAM_END+0x3fc00017><== NOT EXECUTED
SWAPOUT_TASK_STACK_SIZE,
RTEMS_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_NO_ASR,
RTEMS_LOCAL | RTEMS_NO_FLOATING_POINT,
&worker->id);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_CREATE);
200dbe0: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200dbe4: 7f ff e9 c0 call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200dbe8: 90 12 20 16 or %o0, 0x16, %o0 ! 42000016 <RAM_END+0x3fc00016><== NOT EXECUTED
{
rtems_bdbuf_swapout_worker* worker;
worker = malloc (sizeof (rtems_bdbuf_swapout_worker));
if (!worker)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_NOMEM);
200dbec: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200dbf0: 7f ff e9 bd call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200dbf4: 90 12 20 15 or %o0, 0x15, %o0 ! 42000015 <RAM_END+0x3fc00015><== NOT EXECUTED
0200dbfc <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)
{
200dbfc: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) arg;
while (worker->enabled)
200dc00: c2 0e 20 0c ldub [ %i0 + 0xc ], %g1 <== NOT EXECUTED
200dc04: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200dc08: 02 80 00 1c be 200dc78 <rtems_bdbuf_swapout_worker_task+0x7c><== NOT EXECUTED
200dc0c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
200dc10: 2b 00 80 85 sethi %hi(0x2021400), %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;
200dc14: 25 3f ff ff sethi %hi(0xfffffc00), %l2 <== 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 );
200dc18: aa 15 63 c8 or %l5, 0x3c8, %l5 <== NOT EXECUTED
200dc1c: a4 14 a3 ff or %l2, 0x3ff, %l2 <== NOT EXECUTED
while (worker->enabled)
{
rtems_bdbuf_wait_for_event (RTEMS_BDBUF_SWAPOUT_SYNC);
rtems_bdbuf_swapout_write (&worker->transfer);
200dc20: a2 06 20 10 add %i0, 0x10, %l1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200dc24: a8 06 20 14 add %i0, 0x14, %l4 <== NOT EXECUTED
rtems_bdbuf_lock_cache ();
rtems_chain_initialize_empty (&worker->transfer.bds);
worker->transfer.dev = BDBUF_INVALID_DEV;
200dc28: a6 10 00 12 mov %l2, %l3 <== NOT EXECUTED
{
rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) arg;
while (worker->enabled)
{
rtems_bdbuf_wait_for_event (RTEMS_BDBUF_SWAPOUT_SYNC);
200dc2c: 7f ff fa 83 call 200c638 <rtems_bdbuf_wait_for_event> <== NOT EXECUTED
200dc30: 90 10 20 04 mov 4, %o0 <== NOT EXECUTED
rtems_bdbuf_swapout_write (&worker->transfer);
200dc34: 7f ff fe 9a call 200d69c <rtems_bdbuf_swapout_write> <== NOT EXECUTED
200dc38: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
rtems_bdbuf_lock_cache ();
200dc3c: 7f ff f9 37 call 200c118 <rtems_bdbuf_lock_cache> <== NOT EXECUTED
200dc40: 01 00 00 00 nop <== NOT EXECUTED
200dc44: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
200dc48: 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);
200dc4c: e8 24 20 10 st %l4, [ %l0 + 0x10 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
200dc50: c0 24 20 14 clr [ %l0 + 0x14 ] <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
200dc54: e2 24 20 18 st %l1, [ %l0 + 0x18 ] <== NOT EXECUTED
200dc58: 7f ff ea f9 call 200883c <_Chain_Append> <== NOT EXECUTED
200dc5c: 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 ();
200dc60: 7f ff f9 bc call 200c350 <rtems_bdbuf_unlock_cache> <== NOT EXECUTED
200dc64: 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)
200dc68: c2 0c 20 0c ldub [ %l0 + 0xc ], %g1 <== NOT EXECUTED
200dc6c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200dc70: 12 bf ff ef bne 200dc2c <rtems_bdbuf_swapout_worker_task+0x30><== NOT EXECUTED
200dc74: 01 00 00 00 nop <== NOT EXECUTED
rtems_chain_append (&bdbuf_cache.swapout_workers, &worker->link);
rtems_bdbuf_unlock_cache ();
}
free (worker->transfer.write_req);
200dc78: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
200dc7c: 7f ff d8 45 call 2003d90 <free> <== NOT EXECUTED
200dc80: b0 10 20 00 clr %i0 <== NOT EXECUTED
free (worker);
200dc84: 7f ff d8 43 call 2003d90 <free> <== NOT EXECUTED
200dc88: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_task_delete (RTEMS_SELF);
200dc8c: 7f ff e8 cd call 2007fc0 <rtems_task_delete> <== NOT EXECUTED
200dc90: 81 e8 00 00 restore <== NOT EXECUTED
0200d69c <rtems_bdbuf_swapout_write>:
*
* @param transfer The transfer transaction.
*/
static void
rtems_bdbuf_swapout_write (rtems_bdbuf_swapout_transfer* transfer)
{
200d69c: 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))
200d6a0: 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;
200d6a4: a2 06 20 04 add %i0, 4, %l1
200d6a8: 80 a0 40 11 cmp %g1, %l1
200d6ac: 02 80 00 63 be 200d838 <rtems_bdbuf_swapout_write+0x19c> <== NEVER TAKEN
200d6b0: 01 00 00 00 nop
/*
* 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);
200d6b4: d0 1e 20 10 ldd [ %i0 + 0x10 ], %o0
200d6b8: 7f ff d6 02 call 2002ec0 <rtems_disk_obtain>
200d6bc: 2d 00 80 84 sethi %hi(0x2021000), %l6
if (dd == NULL)
200d6c0: a0 92 20 00 orcc %o0, 0, %l0
200d6c4: 02 80 00 64 be 200d854 <rtems_bdbuf_swapout_write+0x1b8>
200d6c8: ac 15 a1 30 or %l6, 0x130, %l6
dd = &null_disk;
bufs_per_bd = dd->block_size / bdbuf_config.buffer_min;
200d6cc: d0 04 20 20 ld [ %l0 + 0x20 ], %o0
200d6d0: 27 00 80 7e sethi %hi(0x201f800), %l3
200d6d4: a6 14 e2 3c or %l3, 0x23c, %l3 ! 201fa3c <rtems_bdbuf_configuration>
200d6d8: d2 04 e0 20 ld [ %l3 + 0x20 ], %o1
200d6dc: 40 00 40 c8 call 201d9fc <.udiv>
200d6e0: a4 10 20 00 clr %l2
* 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;
200d6e4: c2 06 20 1c ld [ %i0 + 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))
200d6e8: e6 04 e0 04 ld [ %l3 + 4 ], %l3
* 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;
200d6ec: 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;
200d6f0: 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;
200d6f4: 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;
200d6f8: c4 20 60 0c st %g2, [ %g1 + 0xc ]
if (write)
{
rtems_bdbuf_execute_transfer_request (dd, transfer->write_req, false);
transfer->write_req->status = RTEMS_RESOURCE_IN_USE;
200d6fc: a8 10 20 0c mov 0xc, %l4
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
200d700: 7f ff ec 65 call 2008894 <_Chain_Get>
200d704: 90 10 00 18 mov %i0, %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)
200d708: 80 a2 20 00 cmp %o0, 0
200d70c: 02 80 00 29 be 200d7b0 <rtems_bdbuf_swapout_write+0x114> <== NEVER TAKEN
200d710: 80 a4 00 16 cmp %l0, %l6
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) &&
200d714: c2 04 20 08 ld [ %l0 + 8 ], %g1
200d718: c2 00 60 0c ld [ %g1 + 0xc ], %g1
200d71c: 80 88 60 01 btst 1, %g1
200d720: 02 80 00 31 be 200d7e4 <rtems_bdbuf_swapout_write+0x148> <== ALWAYS TAKEN
200d724: d2 06 20 1c ld [ %i0 + 0x1c ], %o1
transfer->write_req->bufnum &&
200d728: c2 02 60 10 ld [ %o1 + 0x10 ], %g1 <== 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) &&
200d72c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200d730: 02 80 00 2f be 200d7ec <rtems_bdbuf_swapout_write+0x150> <== NOT EXECUTED
200d734: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED
transfer->write_req->bufnum &&
(bd->block != (last_block + bufs_per_bd)))
200d738: c6 02 20 20 ld [ %o0 + 0x20 ], %g3 <== NOT EXECUTED
200d73c: 84 04 80 15 add %l2, %l5, %g2 <== NOT EXECUTED
200d740: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED
200d744: 02 80 00 2a be 200d7ec <rtems_bdbuf_swapout_write+0x150> <== NOT EXECUTED
200d748: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Prepend(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
_Chain_Insert(_Chain_Head(the_chain), the_node);
200d74c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
200d750: 40 00 11 0f call 2011b8c <_Chain_Insert> <== NOT EXECUTED
200d754: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
200d758: d2 06 20 1c ld [ %i0 + 0x1c ], %o1 <== NOT EXECUTED
200d75c: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
/*
* 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) ||
200d760: c2 06 00 00 ld [ %i0 ], %g1
200d764: 80 a4 40 01 cmp %l1, %g1
200d768: 02 80 00 07 be 200d784 <rtems_bdbuf_swapout_write+0xe8>
200d76c: 94 10 20 00 clr %o2
200d770: c2 02 60 10 ld [ %o1 + 0x10 ], %g1
200d774: 80 a0 40 13 cmp %g1, %l3
200d778: 0a 80 00 2d bcs 200d82c <rtems_bdbuf_swapout_write+0x190>
200d77c: 80 88 a0 ff btst 0xff, %g2
(transfer->write_req->bufnum >= bdbuf_config.max_write_blocks))
write = true;
if (write)
{
rtems_bdbuf_execute_transfer_request (dd, transfer->write_req, false);
200d780: 94 10 20 00 clr %o2
200d784: 7f ff ff 65 call 200d518 <rtems_bdbuf_execute_transfer_request>
200d788: 90 10 00 10 mov %l0, %o0
transfer->write_req->status = RTEMS_RESOURCE_IN_USE;
200d78c: c2 06 20 1c ld [ %i0 + 0x1c ], %g1
200d790: 90 10 00 18 mov %i0, %o0
transfer->write_req->bufnum = 0;
200d794: c0 20 60 10 clr [ %g1 + 0x10 ]
200d798: 7f ff ec 3f call 2008894 <_Chain_Get>
200d79c: e8 20 60 0c st %l4, [ %g1 + 0xc ]
* 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)
200d7a0: 80 a2 20 00 cmp %o0, 0
200d7a4: 32 bf ff dd bne,a 200d718 <rtems_bdbuf_swapout_write+0x7c>
200d7a8: c2 04 20 08 ld [ %l0 + 8 ], %g1
transfer->write_req->status = RTEMS_RESOURCE_IN_USE;
transfer->write_req->bufnum = 0;
}
}
if (dd != &null_disk)
200d7ac: 80 a4 00 16 cmp %l0, %l6
200d7b0: 02 80 00 22 be 200d838 <rtems_bdbuf_swapout_write+0x19c> <== NEVER TAKEN
200d7b4: 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 &&
200d7b8: c2 0e 20 18 ldub [ %i0 + 0x18 ], %g1
200d7bc: 80 a0 60 00 cmp %g1, 0
200d7c0: 02 80 00 07 be 200d7dc <rtems_bdbuf_swapout_write+0x140>
200d7c4: 01 00 00 00 nop
(dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_SYNC))
200d7c8: d0 04 20 08 ld [ %l0 + 8 ], %o0
{
/*
* If sync'ing and the deivce is capability of handling a sync IO control
* call perform the call.
*/
if (transfer->syncing &&
200d7cc: c2 02 20 0c ld [ %o0 + 0xc ], %g1
200d7d0: 80 88 60 02 btst 2, %g1
200d7d4: 32 80 00 1b bne,a 200d840 <rtems_bdbuf_swapout_write+0x1a4><== NEVER TAKEN
200d7d8: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED
{
/* int result = */ dd->ioctl (dd->phys_dev, RTEMS_BLKDEV_REQ_SYNC, NULL);
/* How should the error be handled ? */
}
rtems_disk_release (dd);
200d7dc: 7f ff d5 a4 call 2002e6c <rtems_disk_release>
200d7e0: 91 e8 00 10 restore %g0, %l0, %o0
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) &&
200d7e4: c2 02 60 10 ld [ %o1 + 0x10 ], %g1
}
else
{
rtems_blkdev_sg_buffer* buf;
buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
transfer->write_req->bufnum++;
200d7e8: 84 00 60 01 add %g1, 1, %g2
200d7ec: c4 22 60 10 st %g2, [ %o1 + 0x10 ]
buf->user = bd;
buf->block = bd->block;
200d7f0: c6 02 20 20 ld [ %o0 + 0x20 ], %g3
200d7f4: 85 28 60 04 sll %g1, 4, %g2
200d7f8: 84 02 40 02 add %o1, %g2, %g2
200d7fc: c6 20 a0 18 st %g3, [ %g2 + 0x18 ]
buf->length = dd->block_size;
buf->buffer = bd->buffer;
200d800: c6 02 20 24 ld [ %o0 + 0x24 ], %g3
rtems_blkdev_sg_buffer* buf;
buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
transfer->write_req->bufnum++;
buf->user = bd;
buf->block = bd->block;
buf->length = dd->block_size;
200d804: c8 04 20 20 ld [ %l0 + 0x20 ], %g4
else
{
rtems_blkdev_sg_buffer* buf;
buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
transfer->write_req->bufnum++;
buf->user = bd;
200d808: 82 00 60 02 add %g1, 2, %g1
buf->block = bd->block;
buf->length = dd->block_size;
200d80c: c8 20 a0 1c st %g4, [ %g2 + 0x1c ]
else
{
rtems_blkdev_sg_buffer* buf;
buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
transfer->write_req->bufnum++;
buf->user = bd;
200d810: 83 28 60 04 sll %g1, 4, %g1
buf->block = bd->block;
buf->length = dd->block_size;
buf->buffer = bd->buffer;
last_block = bd->block;
200d814: e4 02 20 20 ld [ %o0 + 0x20 ], %l2
buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
transfer->write_req->bufnum++;
buf->user = bd;
buf->block = bd->block;
buf->length = dd->block_size;
buf->buffer = bd->buffer;
200d818: c6 22 40 01 st %g3, [ %o1 + %g1 ]
last_block = bd->block;
200d81c: 84 10 20 00 clr %g2
else
{
rtems_blkdev_sg_buffer* buf;
buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
transfer->write_req->bufnum++;
buf->user = bd;
200d820: 82 02 40 01 add %o1, %g1, %g1
200d824: 10 bf ff cf b 200d760 <rtems_bdbuf_swapout_write+0xc4>
200d828: d0 20 60 04 st %o0, [ %g1 + 4 ]
if (rtems_chain_is_empty (&transfer->bds) ||
(transfer->write_req->bufnum >= bdbuf_config.max_write_blocks))
write = true;
if (write)
200d82c: 02 bf ff b5 be 200d700 <rtems_bdbuf_swapout_write+0x64> <== ALWAYS TAKEN
200d830: 94 10 20 00 clr %o2
200d834: 30 bf ff d4 b,a 200d784 <rtems_bdbuf_swapout_write+0xe8> <== NOT EXECUTED
200d838: 81 c7 e0 08 ret <== NOT EXECUTED
200d83c: 81 e8 00 00 restore <== NOT EXECUTED
* call perform the call.
*/
if (transfer->syncing &&
(dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_SYNC))
{
/* int result = */ dd->ioctl (dd->phys_dev, RTEMS_BLKDEV_REQ_SYNC, NULL);
200d840: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
200d844: 9f c0 40 00 call %g1 <== NOT EXECUTED
200d848: 94 10 20 00 clr %o2 <== NOT EXECUTED
/* How should the error be handled ? */
}
rtems_disk_release (dd);
200d84c: 7f ff d5 88 call 2002e6c <rtems_disk_release> <== NOT EXECUTED
200d850: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED
* 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);
if (dd == NULL)
200d854: 10 bf ff 9e b 200d6cc <rtems_bdbuf_swapout_write+0x30>
200d858: a0 10 00 16 mov %l6, %l0
0200cc5c <rtems_bdbuf_swapout_writereq_alloc>:
*
* @return rtems_blkdev_request* The write reference memory.
*/
static rtems_blkdev_request*
rtems_bdbuf_swapout_writereq_alloc (void)
{
200cc5c: 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) +
200cc60: 03 00 80 7e sethi %hi(0x201f800), %g1
200cc64: d0 00 62 40 ld [ %g1 + 0x240 ], %o0 ! 201fa40 <rtems_bdbuf_configuration+0x4>
200cc68: 91 2a 20 04 sll %o0, 4, %o0
200cc6c: 7f ff dd 31 call 2004130 <malloc>
200cc70: 90 02 20 18 add %o0, 0x18, %o0
(bdbuf_config.max_write_blocks * sizeof (rtems_blkdev_sg_buffer)));
if (!write_req)
200cc74: a0 92 20 00 orcc %o0, 0, %l0
200cc78: 02 80 00 0c be 200cca8 <rtems_bdbuf_swapout_writereq_alloc+0x4c><== NEVER TAKEN
200cc7c: 82 10 20 01 mov 1, %g1
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_NOMEM);
write_req->req = RTEMS_BLKDEV_REQ_WRITE;
200cc80: c2 24 00 00 st %g1, [ %l0 ]
write_req->req_done = rtems_bdbuf_transfer_done;
200cc84: 03 00 80 31 sethi %hi(0x200c400), %g1
200cc88: 82 10 62 18 or %g1, 0x218, %g1 ! 200c618 <rtems_bdbuf_transfer_done>
write_req->done_arg = write_req;
200cc8c: 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;
200cc90: c2 24 20 04 st %g1, [ %l0 + 4 ]
write_req->done_arg = write_req;
write_req->io_task = rtems_task_self ();
200cc94: 40 00 12 ec call 2011844 <rtems_task_self>
200cc98: b0 10 00 10 mov %l0, %i0
200cc9c: d0 24 20 14 st %o0, [ %l0 + 0x14 ]
return write_req;
}
200cca0: 81 c7 e0 08 ret
200cca4: 81 e8 00 00 restore
rtems_blkdev_request* write_req =
malloc (sizeof (rtems_blkdev_request) +
(bdbuf_config.max_write_blocks * sizeof (rtems_blkdev_sg_buffer)));
if (!write_req)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_NOMEM);
200cca8: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200ccac: 7f ff ed 8e call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200ccb0: 90 12 20 15 or %o0, 0x15, %o0 ! 42000015 <RAM_END+0x3fc00015><== NOT EXECUTED
0200dc98 <rtems_bdbuf_sync>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_sync (rtems_bdbuf_buffer *bd)
{
200dc98: 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)
200dc9c: 21 00 80 85 sethi %hi(0x2021400), %l0
200dca0: a0 14 23 c0 or %l0, 0x3c0, %l0 ! 20217c0 <bdbuf_cache>
200dca4: c2 0c 20 88 ldub [ %l0 + 0x88 ], %g1
200dca8: 80 a0 60 00 cmp %g1, 0
200dcac: 02 80 00 1b be 200dd18 <rtems_bdbuf_sync+0x80> <== NEVER TAKEN
200dcb0: 82 10 20 16 mov 0x16, %g1
return RTEMS_NOT_CONFIGURED;
if (bd == NULL)
200dcb4: 80 a6 20 00 cmp %i0, 0
200dcb8: 02 80 00 18 be 200dd18 <rtems_bdbuf_sync+0x80> <== NEVER TAKEN
200dcbc: 82 10 20 09 mov 9, %g1
if (rtems_bdbuf_tracer)
{
printf ("bdbuf:%s: %" PRIu32 "\n", kind, bd->block);
rtems_bdbuf_show_users (kind, bd);
}
rtems_bdbuf_lock_cache();
200dcc0: 7f ff f9 16 call 200c118 <rtems_bdbuf_lock_cache>
200dcc4: 01 00 00 00 nop
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "sync");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
200dcc8: c2 06 20 28 ld [ %i0 + 0x28 ], %g1
200dccc: 80 a0 60 03 cmp %g1, 3
200dcd0: 0a 80 00 07 bcs 200dcec <rtems_bdbuf_sync+0x54> <== NEVER TAKEN
200dcd4: 80 a0 60 05 cmp %g1, 5
200dcd8: 28 80 00 12 bleu,a 200dd20 <rtems_bdbuf_sync+0x88>
200dcdc: 82 10 20 08 mov 8, %g1
200dce0: 80 a0 60 06 cmp %g1, 6
200dce4: 02 80 00 08 be 200dd04 <rtems_bdbuf_sync+0x6c> <== ALWAYS TAKEN
200dce8: 01 00 00 00 nop
break;
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
rtems_bdbuf_discard_buffer_after_access (bd);
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_5);
200dcec: 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);
200dcf0: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200dcf4: 82 10 60 03 or %g1, 3, %g1 ! 42000003 <RAM_END+0x3fc00003><== NOT EXECUTED
200dcf8: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200dcfc: 7f ff e9 7a call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200dd00: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
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);
200dd04: 7f ff fd 0d call 200d138 <rtems_bdbuf_discard_buffer_after_access>
200dd08: 90 10 00 18 mov %i0, %o0
}
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_usage ();
rtems_bdbuf_unlock_cache ();
200dd0c: 7f ff f9 91 call 200c350 <rtems_bdbuf_unlock_cache>
200dd10: 01 00 00 00 nop
200dd14: 82 10 20 00 clr %g1 ! 0 <PROM_START>
return RTEMS_SUCCESSFUL;
}
200dd18: 81 c7 e0 08 ret
200dd1c: 91 e8 00 01 restore %g0, %g1, %o0
200dd20: 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;
200dd24: c2 26 20 28 st %g1, [ %i0 + 0x28 ]
200dd28: 7f ff ea c5 call 200883c <_Chain_Append>
200dd2c: 92 10 00 18 mov %i0, %o1
{
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_SYNC);
rtems_chain_append (&bdbuf_cache.sync, &bd->link);
if (bd->waiters)
200dd30: c2 06 20 2c ld [ %i0 + 0x2c ], %g1
200dd34: 80 a0 60 00 cmp %g1, 0
200dd38: 12 80 00 2b bne 200dde4 <rtems_bdbuf_sync+0x14c>
200dd3c: 01 00 00 00 nop
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
rtems_bdbuf_wake_swapper ();
200dd40: 7f ff f9 e7 call 200c4dc <rtems_bdbuf_wake_swapper>
200dd44: 21 00 80 86 sethi %hi(0x2021800), %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);
200dd48: a0 14 20 30 or %l0, 0x30, %l0 ! 2021830 <bdbuf_cache+0x70>
static void
rtems_bdbuf_wait_for_sync_done (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
200dd4c: c2 06 20 28 ld [ %i0 + 0x28 ], %g1
200dd50: 80 a0 60 01 cmp %g1, 1
200dd54: 1a 80 00 08 bcc 200dd74 <rtems_bdbuf_sync+0xdc> <== ALWAYS TAKEN
200dd58: 80 a0 60 07 cmp %g1, 7
case RTEMS_BDBUF_STATE_TRANSFER:
case RTEMS_BDBUF_STATE_TRANSFER_PURGED:
rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_9);
200dd5c: 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);
200dd60: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200dd64: 82 10 60 07 or %g1, 7, %g1 ! 42000007 <RAM_END+0x3fc00007><== NOT EXECUTED
200dd68: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200dd6c: 7f ff e9 5e call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200dd70: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
static void
rtems_bdbuf_wait_for_sync_done (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
200dd74: 08 80 00 08 bleu 200dd94 <rtems_bdbuf_sync+0xfc>
200dd78: 80 a0 60 0a cmp %g1, 0xa
200dd7c: 18 bf ff f8 bgu 200dd5c <rtems_bdbuf_sync+0xc4> <== NEVER TAKEN
200dd80: 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);
200dd84: 90 10 00 18 mov %i0, %o0
200dd88: 7f ff fa a4 call 200c818 <rtems_bdbuf_wait>
200dd8c: 92 10 00 10 mov %l0, %o1
200dd90: 30 bf ff ef b,a 200dd4c <rtems_bdbuf_sync+0xb4>
/*
* We may have created a cached or empty buffer which may be recycled.
*/
if (bd->waiters == 0
&& (bd->state == RTEMS_BDBUF_STATE_CACHED
200dd94: c2 06 20 2c ld [ %i0 + 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
200dd98: 80 a0 60 00 cmp %g1, 0
200dd9c: 12 bf ff dc bne 200dd0c <rtems_bdbuf_sync+0x74>
200dda0: 01 00 00 00 nop
&& (bd->state == RTEMS_BDBUF_STATE_CACHED
|| bd->state == RTEMS_BDBUF_STATE_EMPTY))
200dda4: c2 06 20 28 ld [ %i0 + 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
200dda8: 80 a0 60 02 cmp %g1, 2
200ddac: 02 80 00 06 be 200ddc4 <rtems_bdbuf_sync+0x12c>
200ddb0: 01 00 00 00 nop
&& (bd->state == RTEMS_BDBUF_STATE_CACHED
|| bd->state == RTEMS_BDBUF_STATE_EMPTY))
200ddb4: c2 06 20 28 ld [ %i0 + 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
200ddb8: 80 a0 60 01 cmp %g1, 1
200ddbc: 12 bf ff d4 bne 200dd0c <rtems_bdbuf_sync+0x74> <== NEVER TAKEN
200ddc0: 01 00 00 00 nop
&& (bd->state == RTEMS_BDBUF_STATE_CACHED
|| bd->state == RTEMS_BDBUF_STATE_EMPTY))
{
if (bd->state == RTEMS_BDBUF_STATE_EMPTY)
200ddc4: c2 06 20 28 ld [ %i0 + 0x28 ], %g1
200ddc8: 80 a0 60 01 cmp %g1, 1
200ddcc: 02 80 00 09 be 200ddf0 <rtems_bdbuf_sync+0x158>
200ddd0: 01 00 00 00 nop
{
rtems_bdbuf_remove_from_tree (bd);
rtems_bdbuf_make_free_and_add_to_lru_list (bd);
}
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
200ddd4: 11 00 80 86 sethi %hi(0x2021800), %o0
200ddd8: 7f ff f8 d8 call 200c138 <rtems_bdbuf_wake>
200dddc: 90 12 20 38 or %o0, 0x38, %o0 ! 2021838 <bdbuf_cache+0x78>
200dde0: 30 bf ff cb b,a 200dd0c <rtems_bdbuf_sync+0x74>
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_SYNC);
rtems_chain_append (&bdbuf_cache.sync, &bd->link);
if (bd->waiters)
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
200dde4: 7f ff f8 d5 call 200c138 <rtems_bdbuf_wake>
200dde8: 90 04 20 68 add %l0, 0x68, %o0
200ddec: 30 bf ff d5 b,a 200dd40 <rtems_bdbuf_sync+0xa8>
&& (bd->state == RTEMS_BDBUF_STATE_CACHED
|| bd->state == RTEMS_BDBUF_STATE_EMPTY))
{
if (bd->state == RTEMS_BDBUF_STATE_EMPTY)
{
rtems_bdbuf_remove_from_tree (bd);
200ddf0: 7f ff fb b2 call 200ccb8 <rtems_bdbuf_remove_from_tree>
200ddf4: 90 10 00 18 mov %i0, %o0
RTEMS_INLINE_ROUTINE void _Chain_Prepend(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
_Chain_Insert(_Chain_Head(the_chain), the_node);
200ddf8: 92 10 00 18 mov %i0, %o1
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200ddfc: c0 26 20 28 clr [ %i0 + 0x28 ]
200de00: 11 00 80 86 sethi %hi(0x2021800), %o0
200de04: 40 00 0f 62 call 2011b8c <_Chain_Insert>
200de08: 90 12 20 04 or %o0, 4, %o0 ! 2021804 <bdbuf_cache+0x44>
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);
200de0c: 10 bf ff f3 b 200ddd8 <rtems_bdbuf_sync+0x140>
200de10: 11 00 80 86 sethi %hi(0x2021800), %o0
0200c684 <rtems_bdbuf_syncdev>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_syncdev (dev_t dev)
{
200c684: 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);
200c688: 94 10 20 00 clr %o2
200c68c: 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;
200c690: c0 27 bf fc clr [ %fp + -4 ]
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_syncdev (dev_t dev)
{
200c694: 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);
200c698: 92 10 00 19 mov %i1, %o1
200c69c: 96 07 bf fc add %fp, -4, %o3
200c6a0: 98 10 20 00 clr %o4
200c6a4: 9a 10 20 00 clr %o5
200c6a8: 7f ff ff 42 call 200c3b0 <rtems_bdbuf_obtain_disk>
200c6ac: a2 10 00 19 mov %i1, %l1
if (sc != RTEMS_SUCCESSFUL)
200c6b0: b0 92 20 00 orcc %o0, 0, %i0
200c6b4: 12 80 00 19 bne 200c718 <rtems_bdbuf_syncdev+0x94> <== NEVER TAKEN
200c6b8: 25 00 80 85 sethi %hi(0x2021400), %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);
200c6bc: a4 14 a3 c0 or %l2, 0x3c0, %l2 ! 20217c0 <bdbuf_cache>
200c6c0: d0 04 a0 2c ld [ %l2 + 0x2c ], %o0
200c6c4: 13 10 80 00 sethi %hi(0x42000000), %o1
200c6c8: 7f ff fe 87 call 200c0e4 <rtems_bdbuf_lock>
200c6cc: 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 ();
200c6d0: 7f ff fe 92 call 200c118 <rtems_bdbuf_lock_cache>
200c6d4: 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;
200c6d8: 82 10 20 01 mov 1, %g1 ! 1 <PROM_START+0x1>
200c6dc: c2 2c a0 30 stb %g1, [ %l2 + 0x30 ]
bdbuf_cache.sync_requester = rtems_task_self ();
200c6e0: 40 00 14 59 call 2011844 <rtems_task_self>
200c6e4: 01 00 00 00 nop
200c6e8: d0 24 a0 34 st %o0, [ %l2 + 0x34 ]
bdbuf_cache.sync_device = dev;
200c6ec: e0 3c a0 38 std %l0, [ %l2 + 0x38 ]
rtems_bdbuf_wake_swapper ();
200c6f0: 7f ff ff 7b call 200c4dc <rtems_bdbuf_wake_swapper>
200c6f4: 01 00 00 00 nop
rtems_bdbuf_unlock_cache ();
200c6f8: 7f ff ff 16 call 200c350 <rtems_bdbuf_unlock_cache>
200c6fc: 01 00 00 00 nop
rtems_bdbuf_wait_for_event (RTEMS_BDBUF_TRANSFER_SYNC);
200c700: 7f ff ff ce call 200c638 <rtems_bdbuf_wait_for_event>
200c704: 90 10 20 02 mov 2, %o0 ! 2 <PROM_START+0x2>
rtems_bdbuf_unlock_sync ();
200c708: 7f ff ff 1e call 200c380 <rtems_bdbuf_unlock_sync>
200c70c: 01 00 00 00 nop
rtems_bdbuf_release_disk (dd);
200c710: 7f ff ff 68 call 200c4b0 <rtems_bdbuf_release_disk>
200c714: d0 07 bf fc ld [ %fp + -4 ], %o0
return RTEMS_SUCCESSFUL;
}
200c718: 81 c7 e0 08 ret
200c71c: 81 e8 00 00 restore
0200c350 <rtems_bdbuf_unlock_cache>:
/**
* Unlock the cache.
*/
static void
rtems_bdbuf_unlock_cache (void)
{
200c350: 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);
200c354: 03 00 80 85 sethi %hi(0x2021400), %g1
200c358: 7f ff ee a3 call 2007de4 <rtems_semaphore_release>
200c35c: d0 00 63 e8 ld [ %g1 + 0x3e8 ], %o0 ! 20217e8 <bdbuf_cache+0x28>
if (sc != RTEMS_SUCCESSFUL)
200c360: 80 a2 20 00 cmp %o0, 0
200c364: 12 80 00 04 bne 200c374 <rtems_bdbuf_unlock_cache+0x24> <== NEVER TAKEN
200c368: 11 10 80 00 sethi %hi(0x42000000), %o0
200c36c: 81 c7 e0 08 ret
200c370: 81 e8 00 00 restore
rtems_fatal_error_occurred (fatal_error_code);
200c374: 7f ff ef dc call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200c378: 90 12 20 0e or %o0, 0xe, %o0 <== NOT EXECUTED
0200c380 <rtems_bdbuf_unlock_sync>:
/**
* Unlock the cache's sync lock. Any blocked writers are woken.
*/
static void
rtems_bdbuf_unlock_sync (void)
{
200c380: 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);
200c384: 03 00 80 85 sethi %hi(0x2021400), %g1
200c388: 7f ff ee 97 call 2007de4 <rtems_semaphore_release>
200c38c: d0 00 63 ec ld [ %g1 + 0x3ec ], %o0 ! 20217ec <bdbuf_cache+0x2c>
if (sc != RTEMS_SUCCESSFUL)
200c390: 80 a2 20 00 cmp %o0, 0
200c394: 12 80 00 04 bne 200c3a4 <rtems_bdbuf_unlock_sync+0x24> <== NEVER TAKEN
200c398: 11 10 80 00 sethi %hi(0x42000000), %o0
200c39c: 81 c7 e0 08 ret
200c3a0: 81 e8 00 00 restore
rtems_fatal_error_occurred (fatal_error_code);
200c3a4: 7f ff ef d0 call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200c3a8: 90 12 20 0c or %o0, 0xc, %o0 <== NOT EXECUTED
0200c638 <rtems_bdbuf_wait_for_event>:
return RTEMS_UNSATISFIED;
}
static void
rtems_bdbuf_wait_for_event (rtems_event_set event)
{
200c638: 9d e3 bf 98 save %sp, -104, %sp
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_event_set out = 0;
sc = rtems_event_receive (event,
200c63c: 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;
200c640: c0 27 bf fc clr [ %fp + -4 ]
sc = rtems_event_receive (event,
200c644: 90 10 00 18 mov %i0, %o0
200c648: 94 10 20 00 clr %o2
200c64c: 7f ff ec 01 call 2007650 <rtems_event_receive>
200c650: 96 07 bf fc add %fp, -4, %o3
RTEMS_EVENT_ALL | RTEMS_WAIT,
RTEMS_NO_TIMEOUT,
&out);
if (sc != RTEMS_SUCCESSFUL || out != event)
200c654: 80 a2 20 00 cmp %o0, 0
200c658: 12 80 00 07 bne 200c674 <rtems_bdbuf_wait_for_event+0x3c> <== NEVER TAKEN
200c65c: c2 07 bf fc ld [ %fp + -4 ], %g1
200c660: 80 a0 40 18 cmp %g1, %i0
200c664: 12 80 00 05 bne 200c678 <rtems_bdbuf_wait_for_event+0x40> <== NEVER TAKEN
200c668: 11 10 80 00 sethi %hi(0x42000000), %o0
200c66c: 81 c7 e0 08 ret
200c670: 81 e8 00 00 restore
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_WAIT_EVNT);
200c674: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200c678: 7f ff ef 1b call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200c67c: 90 12 20 1a or %o0, 0x1a, %o0 ! 4200001a <RAM_END+0x3fc0001a><== NOT EXECUTED
0200c138 <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)
{
200c138: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code sc = RTEMS_SUCCESSFUL;
if (waiters->count > 0)
200c13c: c2 06 00 00 ld [ %i0 ], %g1
200c140: 80 a0 60 00 cmp %g1, 0
200c144: 12 80 00 04 bne 200c154 <rtems_bdbuf_wake+0x1c>
200c148: 01 00 00 00 nop
200c14c: 81 c7 e0 08 ret
200c150: 81 e8 00 00 restore
{
sc = rtems_semaphore_flush (waiters->sema);
200c154: 40 00 15 2c call 2011604 <rtems_semaphore_flush>
200c158: d0 06 20 04 ld [ %i0 + 4 ], %o0
if (sc != RTEMS_SUCCESSFUL)
200c15c: 80 a2 20 00 cmp %o0, 0
200c160: 02 bf ff fb be 200c14c <rtems_bdbuf_wake+0x14> <== ALWAYS TAKEN
200c164: 11 10 80 00 sethi %hi(0x42000000), %o0
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAKE);
200c168: 7f ff f0 5f call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200c16c: 90 12 20 13 or %o0, 0x13, %o0 ! 42000013 <RAM_END+0x3fc00013><== NOT EXECUTED
0200c4dc <rtems_bdbuf_wake_swapper>:
}
}
static void
rtems_bdbuf_wake_swapper (void)
{
200c4dc: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code sc = rtems_event_send (bdbuf_cache.swapout,
200c4e0: 03 00 80 85 sethi %hi(0x2021400), %g1
200c4e4: d0 00 63 c0 ld [ %g1 + 0x3c0 ], %o0 ! 20217c0 <bdbuf_cache>
200c4e8: 7f ff ec bb call 20077d4 <rtems_event_send>
200c4ec: 92 10 20 04 mov 4, %o1
RTEMS_BDBUF_SWAPOUT_SYNC);
if (sc != RTEMS_SUCCESSFUL)
200c4f0: 80 a2 20 00 cmp %o0, 0
200c4f4: 12 80 00 04 bne 200c504 <rtems_bdbuf_wake_swapper+0x28> <== NEVER TAKEN
200c4f8: 11 10 80 00 sethi %hi(0x42000000), %o0
200c4fc: 81 c7 e0 08 ret
200c500: 81 e8 00 00 restore
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WAKE);
200c504: 7f ff ef 78 call 20082e4 <rtems_fatal_error_occurred> <== NOT EXECUTED
200c508: 90 12 20 14 or %o0, 0x14, %o0 <== NOT EXECUTED
02026da4 <rtems_bdpart_create>:
const rtems_bdpart_format *format,
rtems_bdpart_partition *pt,
const unsigned *dist,
size_t count
)
{
2026da4: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
bool dos_compatibility = format != NULL
2026da8: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2026dac: 22 80 00 07 be,a 2026dc8 <rtems_bdpart_create+0x24> <== NOT EXECUTED
2026db0: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
&& format->type == RTEMS_BDPART_FORMAT_MBR
2026db4: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
2026db8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2026dbc: 22 80 00 7b be,a 2026fa8 <rtems_bdpart_create+0x204> <== NOT EXECUTED
2026dc0: c2 0e 60 08 ldub [ %i1 + 8 ], %g1 <== NOT EXECUTED
&& format->mbr.dos_compatibility;
rtems_blkdev_bnum disk_end = 0;
2026dc4: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
2026dc8: a2 10 20 00 clr %l1 <== NOT EXECUTED
2026dcc: a0 10 20 01 mov 1, %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) {
2026dd0: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED
2026dd4: 02 80 00 73 be 2026fa0 <rtems_bdpart_create+0x1fc> <== NOT EXECUTED
2026dd8: a6 10 20 00 clr %l3 <== NOT EXECUTED
/* Nothing to do */
return RTEMS_SUCCESSFUL;
}
/* Check parameter */
if (format == NULL || pt == NULL || dist == NULL) {
2026ddc: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
2026de0: 02 80 00 78 be 2026fc0 <rtems_bdpart_create+0x21c> <== NOT EXECUTED
2026de4: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2026de8: 02 80 00 76 be 2026fc0 <rtems_bdpart_create+0x21c> <== NOT EXECUTED
2026dec: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2026df0: 02 80 00 74 be 2026fc0 <rtems_bdpart_create+0x21c> <== NOT EXECUTED
2026df4: 90 10 00 18 mov %i0, %o0 <== 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;
2026df8: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
2026dfc: c0 27 bf f4 clr [ %fp + -12 ] <== 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);
2026e00: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
2026e04: 40 00 01 b1 call 20274c8 <rtems_bdpart_get_disk_data> <== NOT EXECUTED
2026e08: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2026e0c: a6 92 20 00 orcc %o0, 0, %l3 <== NOT EXECUTED
2026e10: 12 80 00 64 bne 2026fa0 <rtems_bdpart_create+0x1fc> <== NOT EXECUTED
2026e14: 82 10 20 00 clr %g1 <== NOT EXECUTED
/* Get distribution sum and check for overflow */
for (i = 0; i < count; ++i) {
unsigned prev_sum = dist_sum;
dist_sum += dist [i];
2026e18: e8 06 c0 00 ld [ %i3 ], %l4 <== NOT EXECUTED
if (dist_sum < prev_sum) {
return RTEMS_INVALID_NUMBER;
}
if (dist [i] == 0) {
2026e1c: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED
2026e20: 12 80 00 0b bne 2026e4c <rtems_bdpart_create+0xa8> <== NOT EXECUTED
2026e24: a4 10 00 14 mov %l4, %l2 <== NOT EXECUTED
}
/* Expand the last partition to the disk end */
pt [count - 1].end = disk_end;
return RTEMS_SUCCESSFUL;
2026e28: 10 80 00 6a b 2026fd0 <rtems_bdpart_create+0x22c> <== NOT EXECUTED
2026e2c: a6 10 20 0a mov 0xa, %l3 <== NOT EXECUTED
/* Get distribution sum and check for overflow */
for (i = 0; i < count; ++i) {
unsigned prev_sum = dist_sum;
dist_sum += dist [i];
2026e30: c4 06 c0 02 ld [ %i3 + %g2 ], %g2 <== NOT EXECUTED
2026e34: 86 04 80 02 add %l2, %g2, %g3 <== NOT EXECUTED
if (dist_sum < prev_sum) {
2026e38: 80 a0 c0 12 cmp %g3, %l2 <== NOT EXECUTED
2026e3c: 0a 80 00 64 bcs 2026fcc <rtems_bdpart_create+0x228> <== NOT EXECUTED
2026e40: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
}
if (dist [i] == 0) {
2026e44: 02 80 00 62 be 2026fcc <rtems_bdpart_create+0x228> <== NOT EXECUTED
2026e48: a4 10 00 03 mov %g3, %l2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
return sc;
}
/* Get distribution sum and check for overflow */
for (i = 0; i < count; ++i) {
2026e4c: 82 00 60 01 inc %g1 <== NOT EXECUTED
2026e50: 80 a7 00 01 cmp %i4, %g1 <== NOT EXECUTED
2026e54: 18 bf ff f7 bgu 2026e30 <rtems_bdpart_create+0x8c> <== NOT EXECUTED
2026e58: 85 28 60 02 sll %g1, 2, %g2 <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
}
}
/* Check format */
if (format->type != RTEMS_BDPART_FORMAT_MBR) {
2026e5c: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
2026e60: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2026e64: 12 80 00 5d bne 2026fd8 <rtems_bdpart_create+0x234> <== NOT EXECUTED
2026e68: a2 8c 60 ff andcc %l1, 0xff, %l1 <== NOT EXECUTED
return RTEMS_NOT_IMPLEMENTED;
}
/* Align end of disk on cylinder boundary if necessary */
if (dos_compatibility) {
2026e6c: 12 80 00 5d bne 2026fe0 <rtems_bdpart_create+0x23c> <== NOT EXECUTED
2026e70: fa 07 bf fc ld [ %fp + -4 ], %i5 <== 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) {
2026e74: 80 a7 20 04 cmp %i4, 4 <== NOT EXECUTED
2026e78: 08 80 00 06 bleu 2026e90 <rtems_bdpart_create+0xec> <== NOT EXECUTED
2026e7c: ac 10 00 10 mov %l0, %l6 <== NOT EXECUTED
overhead += (count - 3) * record_space;
2026e80: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2026e84: 7f ff 6f 42 call 2002b8c <.umul> <== NOT EXECUTED
2026e88: 92 07 3f fd add %i4, -3, %o1 <== NOT EXECUTED
2026e8c: ac 02 00 10 add %o0, %l0, %l6 <== NOT EXECUTED
/*
* Account space to align every partition on cylinder boundaries if
* necessary.
*/
if (dos_compatibility) {
2026e90: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
2026e94: 02 80 00 07 be 2026eb0 <rtems_bdpart_create+0x10c> <== NOT EXECUTED
2026e98: 82 05 80 1c add %l6, %i4, %g1 <== NOT EXECUTED
overhead += (count - 1) * record_space;
2026e9c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2026ea0: 7f ff 6f 3b call 2002b8c <.umul> <== NOT EXECUTED
2026ea4: 92 07 3f ff add %i4, -1, %o1 <== NOT EXECUTED
2026ea8: ac 05 80 08 add %l6, %o0, %l6 <== NOT EXECUTED
}
/* Check disk space */
if ((overhead + count) > disk_end) {
2026eac: 82 05 80 1c add %l6, %i4, %g1 <== NOT EXECUTED
2026eb0: 80 a0 40 1d cmp %g1, %i5 <== NOT EXECUTED
2026eb4: 18 80 00 50 bgu 2026ff4 <rtems_bdpart_create+0x250> <== NOT EXECUTED
2026eb8: ac 27 40 16 sub %i5, %l6, %l6 <== NOT EXECUTED
for (i = 0; i < count; ++i) {
rtems_bdpart_partition *p = pt + i;
/* Partition size */
rtems_blkdev_bnum s = free_space * dist [i];
2026ebc: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
2026ec0: 7f ff 6f 33 call 2002b8c <.umul> <== NOT EXECUTED
2026ec4: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
if (s < free_space || s < dist [i]) {
2026ec8: 80 a5 80 08 cmp %l6, %o0 <== NOT EXECUTED
2026ecc: 18 80 00 40 bgu 2026fcc <rtems_bdpart_create+0x228> <== NOT EXECUTED
2026ed0: 80 a2 00 14 cmp %o0, %l4 <== NOT EXECUTED
2026ed4: 0a 80 00 3e bcs 2026fcc <rtems_bdpart_create+0x228> <== NOT EXECUTED
2026ed8: 80 a7 20 04 cmp %i4, 4 <== NOT EXECUTED
2026edc: 18 80 00 03 bgu 2026ee8 <rtems_bdpart_create+0x144> <== NOT EXECUTED
2026ee0: ae 10 20 01 mov 1, %l7 <== NOT EXECUTED
2026ee4: ae 10 20 00 clr %l7 <== NOT EXECUTED
p->begin = pos;
pos += s;
p->end = pos;
/* Reserve space for the EBR if necessary */
if (count > 4 && i > 2) {
2026ee8: ae 0d e0 ff and %l7, 0xff, %l7 <== NOT EXECUTED
for (i = 0; i < count; ++i) {
rtems_bdpart_partition *p = pt + i;
/* Partition size */
rtems_blkdev_bnum s = free_space * dist [i];
if (s < free_space || s < dist [i]) {
2026eec: a8 10 00 1a mov %i2, %l4 <== NOT EXECUTED
2026ef0: b0 10 00 1a mov %i2, %i0 <== NOT EXECUTED
2026ef4: b2 10 00 10 mov %l0, %i1 <== NOT EXECUTED
2026ef8: 10 80 00 0c b 2026f28 <rtems_bdpart_create+0x184> <== NOT EXECUTED
2026efc: a2 10 20 00 clr %l1 <== NOT EXECUTED
for (i = 0; i < count; ++i) {
rtems_bdpart_partition *p = pt + i;
/* Partition size */
rtems_blkdev_bnum s = free_space * dist [i];
2026f00: f0 06 c0 01 ld [ %i3 + %g1 ], %i0 <== NOT EXECUTED
if (s < free_space || s < dist [i]) {
2026f04: a8 05 20 30 add %l4, 0x30, %l4 <== NOT EXECUTED
for (i = 0; i < count; ++i) {
rtems_bdpart_partition *p = pt + i;
/* Partition size */
rtems_blkdev_bnum s = free_space * dist [i];
2026f08: 7f ff 6f 21 call 2002b8c <.umul> <== NOT EXECUTED
2026f0c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
if (s < free_space || s < dist [i]) {
2026f10: 80 a5 80 08 cmp %l6, %o0 <== NOT EXECUTED
2026f14: 18 80 00 2e bgu 2026fcc <rtems_bdpart_create+0x228> <== NOT EXECUTED
2026f18: 80 a6 00 08 cmp %i0, %o0 <== NOT EXECUTED
2026f1c: 38 80 00 2d bgu,a 2026fd0 <rtems_bdpart_create+0x22c> <== NOT EXECUTED
2026f20: a6 10 20 0a mov 0xa, %l3 <== NOT EXECUTED
2026f24: b0 10 00 14 mov %l4, %i0 <== NOT EXECUTED
/* TODO: Calculate without overflow */
return RTEMS_INVALID_NUMBER;
}
s /= dist_sum;
2026f28: 40 00 e8 74 call 20610f8 <.udiv> <== NOT EXECUTED
2026f2c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
if (s == 0) {
s = 1;
}
/* Align partition upwards */
s += record_space - (s % record_space);
2026f30: aa 06 40 10 add %i1, %l0, %l5 <== NOT EXECUTED
rtems_blkdev_bnum s = free_space * dist [i];
if (s < free_space || s < dist [i]) {
/* TODO: Calculate without overflow */
return RTEMS_INVALID_NUMBER;
}
s /= dist_sum;
2026f34: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED
/* Ensure that the partition is not empty */
if (s == 0) {
2026f38: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2026f3c: 12 80 00 03 bne 2026f48 <rtems_bdpart_create+0x1a4> <== NOT EXECUTED
2026f40: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2026f44: 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;
2026f48: f2 26 00 00 st %i1, [ %i0 ] <== NOT EXECUTED
pos += s;
2026f4c: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
2026f50: 40 00 e9 16 call 20613a8 <.urem> <== NOT EXECUTED
2026f54: b2 00 40 15 add %g1, %l5, %i1 <== NOT EXECUTED
2026f58: b2 26 40 08 sub %i1, %o0, %i1 <== NOT EXECUTED
p->end = pos;
2026f5c: f2 26 20 04 st %i1, [ %i0 + 4 ] <== NOT EXECUTED
/* Reserve space for the EBR if necessary */
if (count > 4 && i > 2) {
2026f60: 80 a4 60 02 cmp %l1, 2 <== NOT EXECUTED
2026f64: 08 80 00 05 bleu 2026f78 <rtems_bdpart_create+0x1d4> <== NOT EXECUTED
2026f68: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
2026f6c: 80 a5 e0 00 cmp %l7, 0 <== NOT EXECUTED
2026f70: 32 80 00 02 bne,a 2026f78 <rtems_bdpart_create+0x1d4> <== NOT EXECUTED
2026f74: ea 26 00 00 st %l5, [ %i0 ] <== NOT EXECUTED
pos = record_space;
/* Space for partitions */
free_space = disk_end - overhead;
for (i = 0; i < count; ++i) {
2026f78: a2 04 60 01 inc %l1 <== NOT EXECUTED
2026f7c: 80 a7 00 11 cmp %i4, %l1 <== NOT EXECUTED
2026f80: 18 bf ff e0 bgu 2026f00 <rtems_bdpart_create+0x15c> <== NOT EXECUTED
2026f84: 83 2c 60 02 sll %l1, 2, %g1 <== NOT EXECUTED
p->begin += record_space;
}
}
/* Expand the last partition to the disk end */
pt [count - 1].end = disk_end;
2026f88: b8 07 3f ff add %i4, -1, %i4 <== NOT EXECUTED
2026f8c: 83 2f 20 06 sll %i4, 6, %g1 <== NOT EXECUTED
2026f90: b9 2f 20 04 sll %i4, 4, %i4 <== NOT EXECUTED
2026f94: 82 20 40 1c sub %g1, %i4, %g1 <== NOT EXECUTED
2026f98: b4 06 80 01 add %i2, %g1, %i2 <== NOT EXECUTED
2026f9c: fa 26 a0 04 st %i5, [ %i2 + 4 ] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
2026fa0: 81 c7 e0 08 ret <== NOT EXECUTED
2026fa4: 91 e8 00 13 restore %g0, %l3, %o0 <== NOT EXECUTED
)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
bool dos_compatibility = format != NULL
&& format->type == RTEMS_BDPART_FORMAT_MBR
&& format->mbr.dos_compatibility;
2026fa8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2026fac: 02 bf ff 87 be 2026dc8 <rtems_bdpart_create+0x24> <== NOT EXECUTED
2026fb0: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
rtems_blkdev_bnum disk_end = 0;
2026fb4: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED
2026fb8: 10 bf ff 86 b 2026dd0 <rtems_bdpart_create+0x2c> <== NOT EXECUTED
2026fbc: a0 10 20 3f mov 0x3f, %l0 <== NOT EXECUTED
}
/* Expand the last partition to the disk end */
pt [count - 1].end = disk_end;
return RTEMS_SUCCESSFUL;
2026fc0: a6 10 20 09 mov 9, %l3 <== NOT EXECUTED
}
2026fc4: 81 c7 e0 08 ret <== NOT EXECUTED
2026fc8: 91 e8 00 13 restore %g0, %l3, %o0 <== NOT EXECUTED
}
/* Expand the last partition to the disk end */
pt [count - 1].end = disk_end;
return RTEMS_SUCCESSFUL;
2026fcc: a6 10 20 0a mov 0xa, %l3 <== NOT EXECUTED
}
2026fd0: 81 c7 e0 08 ret <== NOT EXECUTED
2026fd4: 91 e8 00 13 restore %g0, %l3, %o0 <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
}
}
/* Check format */
if (format->type != RTEMS_BDPART_FORMAT_MBR) {
2026fd8: 10 bf ff f2 b 2026fa0 <rtems_bdpart_create+0x1fc> <== NOT EXECUTED
2026fdc: a6 10 20 18 mov 0x18, %l3 <== NOT EXECUTED
return RTEMS_NOT_IMPLEMENTED;
}
/* Align end of disk on cylinder boundary if necessary */
if (dos_compatibility) {
disk_end -= (disk_end % record_space);
2026fe0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2026fe4: 40 00 e8 f1 call 20613a8 <.urem> <== NOT EXECUTED
2026fe8: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED
2026fec: 10 bf ff a2 b 2026e74 <rtems_bdpart_create+0xd0> <== NOT EXECUTED
2026ff0: ba 27 40 08 sub %i5, %o0, %i5 <== NOT EXECUTED
if (dos_compatibility) {
overhead += (count - 1) * record_space;
}
/* Check disk space */
if ((overhead + count) > disk_end) {
2026ff4: 10 bf ff eb b 2026fa0 <rtems_bdpart_create+0x1fc> <== NOT EXECUTED
2026ff8: a6 10 20 1b mov 0x1b, %l3 <== NOT EXECUTED
02026ffc <rtems_bdpart_dump>:
{
uuid_unparse_lower( type, str);
}
void rtems_bdpart_dump( const rtems_bdpart_partition *pt, size_t count)
{
2026ffc: 9d e3 bf 68 save %sp, -152, %sp <== NOT EXECUTED
size_t i = 0;
printf(
2027000: 11 00 81 a3 sethi %hi(0x2068c00), %o0 <== NOT EXECUTED
2027004: 40 00 99 b7 call 204d6e0 <puts> <== NOT EXECUTED
2027008: 90 12 21 20 or %o0, 0x120, %o0 ! 2068d20 <C.51.7928+0x40> <== NOT EXECUTED
"------------+------------+-----------------------------------------------------\n"
" BEGIN | END | TYPE\n"
"------------+------------+-----------------------------------------------------\n"
);
for (i = 0; i < count; ++i) {
202700c: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2027010: 02 80 00 45 be 2027124 <rtems_bdpart_dump+0x128> <== NOT EXECUTED
2027014: 11 00 81 a3 sethi %hi(0x2068c00), %o0 <== NOT EXECUTED
2027018: 25 00 81 a3 sethi %hi(0x2068c00), %l2 <== NOT EXECUTED
case RTEMS_BDPART_MBR_FAT_16:
type = "FAT 16";
break;
case RTEMS_BDPART_MBR_FAT_16_LBA:
type = "FAT 16 LBA";
break;
202701c: 29 00 81 a3 sethi %hi(0x2068c00), %l4 <== NOT EXECUTED
break;
case RTEMS_BDPART_MBR_DATA:
type = "DATA";
break;
default:
snprintf( type_buffer, sizeof( type_buffer), "0x%02" PRIx8, type_mbr);
2027020: 37 00 81 a3 sethi %hi(0x2068c00), %i3 <== 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) {
2027024: 2d 00 81 a3 sethi %hi(0x2068c00), %l6 <== NOT EXECUTED
case RTEMS_BDPART_MBR_FAT_32:
type = "FAT 32";
break;
case RTEMS_BDPART_MBR_FAT_32_LBA:
type = "FAT 32 LBA";
break;
2027028: 3b 00 81 a3 sethi %hi(0x2068c00), %i5 <== NOT EXECUTED
case RTEMS_BDPART_MBR_FAT_16_LBA:
type = "FAT 16 LBA";
break;
case RTEMS_BDPART_MBR_FAT_32:
type = "FAT 32";
break;
202702c: 39 00 81 a3 sethi %hi(0x2068c00), %i4 <== 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) {
2027030: 2b 00 81 a3 sethi %hi(0x2068c00), %l5 <== NOT EXECUTED
2027034: 2f 00 81 a3 sethi %hi(0x2068c00), %l7 <== NOT EXECUTED
} else {
rtems_bdpart_type_to_string( p->type, type_buffer);
type = type_buffer;
}
printf(
2027038: a4 14 a2 a8 or %l2, 0x2a8, %l2 <== NOT EXECUTED
case RTEMS_BDPART_MBR_FAT_16:
type = "FAT 16";
break;
case RTEMS_BDPART_MBR_FAT_16_LBA:
type = "FAT 16 LBA";
break;
202703c: a8 15 22 80 or %l4, 0x280, %l4 <== NOT EXECUTED
break;
case RTEMS_BDPART_MBR_DATA:
type = "DATA";
break;
default:
snprintf( type_buffer, sizeof( type_buffer), "0x%02" PRIx8, type_mbr);
2027040: b6 16 e2 a0 or %i3, 0x2a0, %i3 <== 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) {
2027044: ac 15 a2 70 or %l6, 0x270, %l6 <== NOT EXECUTED
case RTEMS_BDPART_MBR_FAT_32:
type = "FAT 32";
break;
case RTEMS_BDPART_MBR_FAT_32_LBA:
type = "FAT 32 LBA";
break;
2027048: ba 17 62 98 or %i5, 0x298, %i5 <== NOT EXECUTED
case RTEMS_BDPART_MBR_FAT_16_LBA:
type = "FAT 16 LBA";
break;
case RTEMS_BDPART_MBR_FAT_32:
type = "FAT 32";
break;
202704c: b8 17 22 88 or %i4, 0x288, %i4 <== 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) {
2027050: aa 15 62 68 or %l5, 0x268, %l5 <== NOT EXECUTED
2027054: ae 15 e2 60 or %l7, 0x260, %l7 <== NOT EXECUTED
"------------+------------+-----------------------------------------------------\n"
" BEGIN | END | TYPE\n"
"------------+------------+-----------------------------------------------------\n"
);
for (i = 0; i < count; ++i) {
2027058: a0 10 20 00 clr %l0 <== NOT EXECUTED
202705c: a2 07 bf ff add %fp, -1, %l1 <== NOT EXECUTED
static void rtems_bdpart_type_to_string(
const uuid_t type,
char str [37]
)
{
uuid_unparse_lower( type, str);
2027060: 10 80 00 1c b 20270d0 <rtems_bdpart_dump+0xd4> <== NOT EXECUTED
2027064: a6 07 bf c8 add %fp, -56, %l3 <== 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) {
2027068: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED
202706c: 02 80 00 11 be 20270b0 <rtems_bdpart_dump+0xb4> <== NOT EXECUTED
2027070: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
2027074: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED
2027078: 18 80 00 2f bgu 2027134 <rtems_bdpart_dump+0x138> <== NOT EXECUTED
202707c: 80 a0 60 0e cmp %g1, 0xe <== NOT EXECUTED
2027080: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2027084: 02 80 00 0b be 20270b0 <rtems_bdpart_dump+0xb4> <== NOT EXECUTED
2027088: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
202708c: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED
2027090: 02 80 00 08 be 20270b0 <rtems_bdpart_dump+0xb4> <== NOT EXECUTED
2027094: 96 10 00 17 mov %l7, %o3 <== NOT EXECUTED
break;
case RTEMS_BDPART_MBR_DATA:
type = "DATA";
break;
default:
snprintf( type_buffer, sizeof( type_buffer), "0x%02" PRIx8, type_mbr);
2027098: 96 10 00 01 mov %g1, %o3 <== NOT EXECUTED
202709c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
20270a0: 92 10 20 34 mov 0x34, %o1 <== NOT EXECUTED
20270a4: 40 00 9e c7 call 204ebc0 <snprintf> <== NOT EXECUTED
20270a8: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED
20270ac: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
} else {
rtems_bdpart_type_to_string( p->type, type_buffer);
type = type_buffer;
}
printf(
20270b0: d2 06 00 00 ld [ %i0 ], %o1 <== NOT EXECUTED
20270b4: d4 06 20 04 ld [ %i0 + 4 ], %o2 <== NOT EXECUTED
20270b8: 40 00 98 de call 204d430 <printf> <== NOT EXECUTED
20270bc: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
"------------+------------+-----------------------------------------------------\n"
" BEGIN | END | TYPE\n"
"------------+------------+-----------------------------------------------------\n"
);
for (i = 0; i < count; ++i) {
20270c0: a0 04 20 01 inc %l0 <== NOT EXECUTED
20270c4: 80 a6 40 10 cmp %i1, %l0 <== NOT EXECUTED
20270c8: 08 80 00 16 bleu 2027120 <rtems_bdpart_dump+0x124> <== NOT EXECUTED
20270cc: b0 06 20 30 add %i0, 0x30, %i0 <== NOT EXECUTED
const rtems_bdpart_partition *p = pt + i;
const char *type = NULL;
char type_buffer [52];
uint8_t type_mbr = 0;
20270d0: c0 2f bf ff clrb [ %fp + -1 ] <== NOT EXECUTED
if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {
20270d4: b4 06 20 08 add %i0, 8, %i2 <== NOT EXECUTED
20270d8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20270dc: 40 00 01 19 call 2027540 <rtems_bdpart_to_mbr_partition_type><== NOT EXECUTED
20270e0: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
20270e4: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED
20270e8: 12 bf ff e0 bne 2027068 <rtems_bdpart_dump+0x6c> <== NOT EXECUTED
20270ec: c2 0f bf ff ldub [ %fp + -1 ], %g1 <== NOT EXECUTED
static void rtems_bdpart_type_to_string(
const uuid_t type,
char str [37]
)
{
uuid_unparse_lower( type, str);
20270f0: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
20270f4: 40 00 73 fc call 20440e4 <uuid_unparse_lower> <== NOT EXECUTED
20270f8: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
} else {
rtems_bdpart_type_to_string( p->type, type_buffer);
type = type_buffer;
}
printf(
20270fc: d2 06 00 00 ld [ %i0 ], %o1 <== NOT EXECUTED
2027100: d4 06 20 04 ld [ %i0 + 4 ], %o2 <== NOT EXECUTED
static void rtems_bdpart_type_to_string(
const uuid_t type,
char str [37]
)
{
uuid_unparse_lower( type, str);
2027104: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
} else {
rtems_bdpart_type_to_string( p->type, type_buffer);
type = type_buffer;
}
printf(
2027108: 40 00 98 ca call 204d430 <printf> <== NOT EXECUTED
202710c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
"------------+------------+-----------------------------------------------------\n"
" BEGIN | END | TYPE\n"
"------------+------------+-----------------------------------------------------\n"
);
for (i = 0; i < count; ++i) {
2027110: a0 04 20 01 inc %l0 <== NOT EXECUTED
2027114: 80 a6 40 10 cmp %i1, %l0 <== NOT EXECUTED
2027118: 18 bf ff ee bgu 20270d0 <rtems_bdpart_dump+0xd4> <== NOT EXECUTED
202711c: b0 06 20 30 add %i0, 0x30, %i0 <== NOT EXECUTED
p->end,
type
);
}
puts( "------------+------------+-----------------------------------------------------");
2027120: 11 00 81 a3 sethi %hi(0x2068c00), %o0 <== NOT EXECUTED
2027124: 40 00 99 6f call 204d6e0 <puts> <== NOT EXECUTED
2027128: 90 12 22 c0 or %o0, 0x2c0, %o0 ! 2068ec0 <C.51.7928+0x1e0><== NOT EXECUTED
}
202712c: 81 c7 e0 08 ret <== NOT EXECUTED
2027130: 81 e8 00 00 restore <== 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) {
2027134: 02 bf ff df be 20270b0 <rtems_bdpart_dump+0xb4> <== NOT EXECUTED
2027138: 96 10 00 16 mov %l6, %o3 <== NOT EXECUTED
202713c: 80 a0 60 da cmp %g1, 0xda <== NOT EXECUTED
2027140: 02 bf ff dc be 20270b0 <rtems_bdpart_dump+0xb4> <== NOT EXECUTED
2027144: 96 10 00 1d mov %i5, %o3 <== NOT EXECUTED
2027148: 80 a0 60 0c cmp %g1, 0xc <== NOT EXECUTED
202714c: 12 bf ff d3 bne 2027098 <rtems_bdpart_dump+0x9c> <== NOT EXECUTED
2027150: 96 10 00 1c mov %i4, %o3 <== NOT EXECUTED
} else {
rtems_bdpart_type_to_string( p->type, type_buffer);
type = type_buffer;
}
printf(
2027154: 10 bf ff d8 b 20270b4 <rtems_bdpart_dump+0xb8> <== NOT EXECUTED
2027158: d2 06 00 00 ld [ %i0 ], %o1 <== NOT EXECUTED
020274c8 <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
)
{
20274c8: 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);
20274cc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20274d0: 7f ff 8b b4 call 200a3a0 <stat> <== NOT EXECUTED
20274d4: 92 07 bf b8 add %fp, -72, %o1 <== NOT EXECUTED
if (rv != 0) {
20274d8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20274dc: 02 80 00 04 be 20274ec <rtems_bdpart_get_disk_data+0x24> <== NOT EXECUTED
20274e0: d0 1f bf d0 ldd [ %fp + -48 ], %o0 <== NOT EXECUTED
if (block_size < RTEMS_BDPART_BLOCK_SIZE) {
return RTEMS_IO_ERROR;
}
/* Check that we have do not have a logical disk */
if (disk_begin != 0) {
20274e4: 81 c7 e0 08 ret <== NOT EXECUTED
20274e8: 91 e8 20 03 restore %g0, 3, %o0 <== NOT EXECUTED
return RTEMS_INVALID_NAME;
}
*disk = st.st_rdev;
/* Get disk begin, end and block size */
dd = rtems_disk_obtain( *disk);
20274ec: 7f ff 7f e9 call 2007490 <rtems_disk_obtain> <== NOT EXECUTED
20274f0: d0 3e 40 00 std %o0, [ %i1 ] <== NOT EXECUTED
if (dd == NULL) {
20274f4: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED
20274f8: 02 bf ff fb be 20274e4 <rtems_bdpart_get_disk_data+0x1c> <== NOT EXECUTED
20274fc: 01 00 00 00 nop <== NOT EXECUTED
return RTEMS_INVALID_NAME;
}
disk_begin = dd->start;
*disk_end = dd->size;
2027500: 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;
2027504: f2 00 60 18 ld [ %g1 + 0x18 ], %i1 <== NOT EXECUTED
*disk_end = dd->size;
2027508: c4 26 80 00 st %g2, [ %i2 ] <== NOT EXECUTED
block_size = dd->block_size;
sc = rtems_disk_release( dd);
202750c: 7f ff 7f cc call 200743c <rtems_disk_release> <== NOT EXECUTED
2027510: f4 00 60 20 ld [ %g1 + 0x20 ], %i2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2027514: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2027518: 12 80 00 06 bne 2027530 <rtems_bdpart_get_disk_data+0x68> <== NOT EXECUTED
202751c: 80 a6 a1 ff cmp %i2, 0x1ff <== NOT EXECUTED
return sc;
}
/* Check block size */
if (block_size < RTEMS_BDPART_BLOCK_SIZE) {
2027520: 08 80 00 06 bleu 2027538 <rtems_bdpart_get_disk_data+0x70><== NOT EXECUTED
2027524: 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) {
2027528: 12 80 00 04 bne 2027538 <rtems_bdpart_get_disk_data+0x70> <== NOT EXECUTED
202752c: 01 00 00 00 nop <== NOT EXECUTED
return RTEMS_IO_ERROR;
}
return RTEMS_SUCCESSFUL;
}
2027530: 81 c7 e0 08 ret <== NOT EXECUTED
2027534: 81 e8 00 00 restore <== NOT EXECUTED
2027538: 81 c7 e0 08 ret <== NOT EXECUTED
202753c: 91 e8 20 1b restore %g0, 0x1b, %o0 <== NOT EXECUTED
02027290 <rtems_bdpart_mount>:
const char *disk_name,
const rtems_bdpart_partition *pt __attribute__((unused)),
size_t count,
const char *mount_base
)
{
2027290: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_status_code esc = RTEMS_SUCCESSFUL;
const char *disk_file_name = strrchr( disk_name, '/');
2027294: 92 10 20 2f mov 0x2f, %o1 <== NOT EXECUTED
2027298: 40 00 a5 b1 call 205095c <strrchr> <== NOT EXECUTED
202729c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20272a0: a4 10 00 08 mov %o0, %l2 <== 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);
20272a4: 40 00 a2 10 call 204fae4 <strlen> <== NOT EXECUTED
20272a8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20272ac: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
size_t mount_base_size = strlen( mount_base);
20272b0: 40 00 a2 0d call 204fae4 <strlen> <== NOT EXECUTED
20272b4: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
const char *disk_name,
const rtems_bdpart_partition *pt __attribute__((unused)),
size_t count,
const char *mount_base
)
{
20272b8: a2 10 00 18 mov %i0, %l1 <== 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);
20272bc: aa 10 00 08 mov %o0, %l5 <== 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) {
20272c0: b0 10 20 1a mov 0x1a, %i0 <== NOT EXECUTED
size_t disk_name_size = strlen( disk_name);
size_t mount_base_size = strlen( mount_base);
size_t i = 0;
/* Create logical disk name base */
logical_disk_name = malloc( disk_name_size + RTEMS_BDPART_NUMBER_SIZE);
20272c4: 7f ff 87 67 call 2009060 <malloc> <== NOT EXECUTED
20272c8: 90 04 e0 04 add %l3, 4, %o0 <== NOT EXECUTED
if (logical_disk_name == NULL) {
20272cc: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
20272d0: 02 80 00 4d be 2027404 <rtems_bdpart_mount+0x174> <== NOT EXECUTED
20272d4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
strncpy( logical_disk_name, disk_name, disk_name_size);
20272d8: 40 00 a2 c7 call 204fdf4 <strncpy> <== NOT EXECUTED
20272dc: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
/* Get disk file name */
if (disk_file_name != NULL) {
20272e0: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
20272e4: 02 80 00 06 be 20272fc <rtems_bdpart_mount+0x6c> <== NOT EXECUTED
20272e8: ac 10 00 13 mov %l3, %l6 <== NOT EXECUTED
disk_file_name += 1;
20272ec: a2 04 a0 01 add %l2, 1, %l1 <== NOT EXECUTED
disk_file_name_size = strlen( disk_file_name);
20272f0: 40 00 a1 fd call 204fae4 <strlen> <== NOT EXECUTED
20272f4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
20272f8: ac 10 00 08 mov %o0, %l6 <== 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);
20272fc: a8 05 80 15 add %l6, %l5, %l4 <== NOT EXECUTED
if (mount_point == NULL) {
2027300: 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);
2027304: 7f ff 87 57 call 2009060 <malloc> <== NOT EXECUTED
2027308: 90 05 20 05 add %l4, 5, %o0 <== NOT EXECUTED
if (mount_point == NULL) {
202730c: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2027310: 02 80 00 39 be 20273f4 <rtems_bdpart_mount+0x164> <== NOT EXECUTED
2027314: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
esc = RTEMS_NO_MEMORY;
goto cleanup;
}
strncpy( mount_point, mount_base, mount_base_size);
2027318: 40 00 a2 b7 call 204fdf4 <strncpy> <== NOT EXECUTED
202731c: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED
mount_point [mount_base_size] = '/';
2027320: 82 10 20 2f mov 0x2f, %g1 <== NOT EXECUTED
strncpy( mount_point + mount_base_size + 1, disk_file_name, disk_file_name_size);
2027324: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2027328: 90 05 60 01 add %l5, 1, %o0 <== NOT EXECUTED
202732c: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED
2027330: 90 04 80 08 add %l2, %o0, %o0 <== NOT EXECUTED
2027334: 40 00 a2 b0 call 204fdf4 <strncpy> <== NOT EXECUTED
2027338: c2 2c 80 15 stb %g1, [ %l2 + %l5 ] <== NOT EXECUTED
/* Markers */
logical_disk_marker = logical_disk_name + disk_name_size;
mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
202733c: a8 05 20 01 inc %l4 <== NOT EXECUTED
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);
/* Markers */
logical_disk_marker = logical_disk_name + disk_name_size;
2027340: a6 04 00 13 add %l0, %l3, %l3 <== NOT EXECUTED
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) {
2027344: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
2027348: 02 80 00 2a be 20273f0 <rtems_bdpart_mount+0x160> <== NOT EXECUTED
202734c: a8 04 80 14 add %l2, %l4, %l4 <== NOT EXECUTED
2027350: 2b 00 81 a3 sethi %hi(0x2068c00), %l5 <== NOT EXECUTED
esc = RTEMS_IO_ERROR;
goto cleanup;
}
/* Mount */
rv = mount(
2027354: 2d 00 81 a3 sethi %hi(0x2068c00), %l6 <== NOT EXECUTED
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) {
/* Create logical disk name */
int rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
2027358: aa 15 63 10 or %l5, 0x310, %l5 <== NOT EXECUTED
esc = RTEMS_IO_ERROR;
goto cleanup;
}
/* Mount */
rv = mount(
202735c: ac 15 a3 18 or %l6, 0x318, %l6 <== 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) {
2027360: 10 80 00 04 b 2027370 <rtems_bdpart_mount+0xe0> <== NOT EXECUTED
2027364: a2 10 20 00 clr %l1 <== NOT EXECUTED
2027368: 08 80 00 23 bleu 20273f4 <rtems_bdpart_mount+0x164> <== NOT EXECUTED
202736c: b0 10 20 00 clr %i0 <== NOT EXECUTED
/* Create logical disk name */
int rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
2027370: 92 10 20 04 mov 4, %o1 <== NOT EXECUTED
2027374: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED
2027378: a2 04 60 01 inc %l1 <== NOT EXECUTED
202737c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
2027380: 40 00 9e 10 call 204ebc0 <snprintf> <== NOT EXECUTED
2027384: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
esc = RTEMS_INVALID_NAME;
goto cleanup;
}
/* Create mount point */
strncpy( mount_marker, logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE);
2027388: 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) {
202738c: 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);
2027390: 92 10 00 13 mov %l3, %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) {
2027394: 14 80 00 1e bg 202740c <rtems_bdpart_mount+0x17c> <== NOT EXECUTED
2027398: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
esc = RTEMS_INVALID_NAME;
goto cleanup;
}
/* Create mount point */
strncpy( mount_marker, logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE);
202739c: 40 00 a2 96 call 204fdf4 <strncpy> <== NOT EXECUTED
20273a0: 01 00 00 00 nop <== NOT EXECUTED
rv = rtems_mkdir( mount_point, S_IRWXU | S_IRWXG | S_IRWXO);
20273a4: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
20273a8: 7f ff 8b 7e call 200a1a0 <rtems_mkdir> <== NOT EXECUTED
20273ac: 92 10 21 ff mov 0x1ff, %o1 <== NOT EXECUTED
if (rv != 0) {
20273b0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20273b4: 12 80 00 1c bne 2027424 <rtems_bdpart_mount+0x194> <== NOT EXECUTED
20273b8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
esc = RTEMS_IO_ERROR;
goto cleanup;
}
/* Mount */
rv = mount(
20273bc: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED
20273c0: 96 10 20 00 clr %o3 <== NOT EXECUTED
20273c4: 98 10 20 00 clr %o4 <== NOT EXECUTED
20273c8: 7f ff 88 17 call 2009424 <mount> <== NOT EXECUTED
20273cc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
mount_point,
"msdos",
0,
NULL
);
if (rv != 0) {
20273d0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20273d4: 02 bf ff e5 be 2027368 <rtems_bdpart_mount+0xd8> <== NOT EXECUTED
20273d8: 80 a6 80 11 cmp %i2, %l1 <== NOT EXECUTED
rmdir( mount_point);
20273dc: 40 00 1b 23 call 202e068 <rmdir> <== NOT EXECUTED
20273e0: 90 10 00 12 mov %l2, %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) {
20273e4: 80 a6 80 11 cmp %i2, %l1 <== NOT EXECUTED
20273e8: 18 bf ff e3 bgu 2027374 <rtems_bdpart_mount+0xe4> <== NOT EXECUTED
20273ec: 92 10 20 04 mov 4, %o1 <== NOT EXECUTED
20273f0: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
}
cleanup:
free( logical_disk_name);
20273f4: 7f ff 85 3a call 20088dc <free> <== NOT EXECUTED
20273f8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
free( mount_point);
20273fc: 7f ff 85 38 call 20088dc <free> <== NOT EXECUTED
2027400: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
return esc;
}
2027404: 81 c7 e0 08 ret <== NOT EXECUTED
2027408: 81 e8 00 00 restore <== NOT EXECUTED
}
}
cleanup:
free( logical_disk_name);
202740c: 7f ff 85 34 call 20088dc <free> <== NOT EXECUTED
2027410: 90 10 00 10 mov %l0, %o0 <== 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) {
2027414: b0 10 20 03 mov 3, %i0 <== NOT EXECUTED
}
cleanup:
free( logical_disk_name);
free( mount_point);
2027418: 7f ff 85 31 call 20088dc <free> <== NOT EXECUTED
202741c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2027420: 30 bf ff f9 b,a 2027404 <rtems_bdpart_mount+0x174> <== NOT EXECUTED
}
}
cleanup:
free( logical_disk_name);
2027424: 7f ff 85 2e call 20088dc <free> <== NOT EXECUTED
2027428: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
}
/* Create mount point */
strncpy( mount_marker, logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE);
rv = rtems_mkdir( mount_point, S_IRWXU | S_IRWXG | S_IRWXO);
if (rv != 0) {
202742c: b0 10 20 1b mov 0x1b, %i0 <== NOT EXECUTED
}
cleanup:
free( logical_disk_name);
free( mount_point);
2027430: 7f ff 85 2b call 20088dc <free> <== NOT EXECUTED
2027434: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2027438: 30 bf ff f3 b,a 2027404 <rtems_bdpart_mount+0x174> <== NOT EXECUTED
02027978 <rtems_bdpart_new_record>:
static rtems_status_code rtems_bdpart_new_record(
dev_t disk,
rtems_blkdev_bnum index,
rtems_bdbuf_buffer **block
)
{
2027978: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
/* Synchronize previous block if necessary */
if (*block != NULL) {
202797c: d0 06 c0 00 ld [ %i3 ], %o0 <== NOT EXECUTED
static rtems_status_code rtems_bdpart_new_record(
dev_t disk,
rtems_blkdev_bnum index,
rtems_bdbuf_buffer **block
)
{
2027980: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
/* Synchronize previous block if necessary */
if (*block != NULL) {
2027984: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2027988: 02 80 00 07 be 20279a4 <rtems_bdpart_new_record+0x2c> <== NOT EXECUTED
202798c: a2 10 00 19 mov %i1, %l1 <== NOT EXECUTED
sc = rtems_bdbuf_sync( *block);
2027990: 7f ff 77 97 call 20057ec <rtems_bdbuf_sync> <== NOT EXECUTED
2027994: 01 00 00 00 nop <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2027998: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
202799c: 12 80 00 19 bne 2027a00 <rtems_bdpart_new_record+0x88> <== NOT EXECUTED
20279a0: 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);
20279a4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20279a8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20279ac: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
20279b0: 7f ff 79 c6 call 20060c8 <rtems_bdbuf_read> <== NOT EXECUTED
20279b4: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
20279b8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20279bc: 12 80 00 11 bne 2027a00 <rtems_bdpart_new_record+0x88> <== NOT EXECUTED
20279c0: 01 00 00 00 nop <== NOT EXECUTED
return sc;
}
/* just in case block did not get filled in */
if ( *block == NULL ) {
20279c4: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
20279c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20279cc: 02 80 00 0f be 2027a08 <rtems_bdpart_new_record+0x90> <== NOT EXECUTED
20279d0: 92 10 20 00 clr %o1 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
}
/* Clear record */
memset( (*block)->buffer, 0, RTEMS_BDPART_BLOCK_SIZE);
20279d4: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
20279d8: 40 00 92 7a call 204c3c0 <memset> <== NOT EXECUTED
20279dc: 94 10 22 00 mov 0x200, %o2 <== NOT EXECUTED
/* Write signature */
(*block)->buffer [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_0] =
20279e0: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
20279e4: 84 10 20 55 mov 0x55, %g2 <== NOT EXECUTED
20279e8: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
20279ec: c4 28 61 fe stb %g2, [ %g1 + 0x1fe ] <== NOT EXECUTED
RTEMS_BDPART_MBR_SIGNATURE_0;
(*block)->buffer [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_1] =
20279f0: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
20279f4: 84 10 3f aa mov -86, %g2 <== NOT EXECUTED
20279f8: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
20279fc: c4 28 61 ff stb %g2, [ %g1 + 0x1ff ] <== NOT EXECUTED
RTEMS_BDPART_MBR_SIGNATURE_1;
return RTEMS_SUCCESSFUL;
}
2027a00: 81 c7 e0 08 ret <== NOT EXECUTED
2027a04: 81 e8 00 00 restore <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
return sc;
}
/* just in case block did not get filled in */
if ( *block == NULL ) {
2027a08: 81 c7 e0 08 ret <== NOT EXECUTED
2027a0c: 91 e8 20 09 restore %g0, 9, %o0 <== NOT EXECUTED
020276b4 <rtems_bdpart_read>:
const char *disk_name,
rtems_bdpart_format *format,
rtems_bdpart_partition *pt,
size_t *count
)
{
20276b4: 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);
20276b8: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
20276bc: 02 80 00 06 be 20276d4 <rtems_bdpart_read+0x20> <== NOT EXECUTED
20276c0: a0 10 20 00 clr %l0 <== NOT EXECUTED
20276c4: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
20276c8: a1 28 60 06 sll %g1, 6, %l0 <== NOT EXECUTED
20276cc: 83 28 60 04 sll %g1, 4, %g1 <== NOT EXECUTED
20276d0: a0 24 00 01 sub %l0, %g1, %l0 <== NOT EXECUTED
dev_t disk = 0;
size_t i = 0;
const uint8_t *data = NULL;
/* Check parameter */
if (format == NULL || pt == NULL || count == NULL) {
20276d4: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
20276d8: 02 80 00 16 be 2027730 <rtems_bdpart_read+0x7c> <== NOT EXECUTED
20276dc: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
20276e0: 02 80 00 14 be 2027730 <rtems_bdpart_read+0x7c> <== NOT EXECUTED
20276e4: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
20276e8: 02 80 00 12 be 2027730 <rtems_bdpart_read+0x7c> <== NOT EXECUTED
20276ec: 82 06 bf d0 add %i2, -48, %g1 <== NOT EXECUTED
/* Set count to a save value */
*count = 0;
/* Get disk data */
sc = rtems_bdpart_get_disk_data( disk_name, &disk, &disk_end);
20276f0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (format == NULL || pt == NULL || count == NULL) {
return RTEMS_INVALID_ADDRESS;
}
/* Set count to a save value */
*count = 0;
20276f4: 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;
20276f8: c0 27 bf e8 clr [ %fp + -24 ] <== NOT EXECUTED
20276fc: 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;
2027700: 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 */
2027704: 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;
2027708: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
rtems_bdpart_partition *p = pt - 1;
202770c: 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);
2027710: 92 07 bf e8 add %fp, -24, %o1 <== NOT EXECUTED
2027714: 7f ff ff 6d call 20274c8 <rtems_bdpart_get_disk_data> <== NOT EXECUTED
2027718: 94 07 bf f0 add %fp, -16, %o2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
202771c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2027720: 02 80 00 06 be 2027738 <rtems_bdpart_read+0x84> <== NOT EXECUTED
2027724: d0 1f bf e8 ldd [ %fp + -24 ], %o0 <== NOT EXECUTED
if (block != NULL) {
rtems_bdbuf_release( block);
}
return esc;
}
2027728: 81 c7 e0 08 ret <== NOT EXECUTED
202772c: 81 e8 00 00 restore <== NOT EXECUTED
2027730: 81 c7 e0 08 ret <== NOT EXECUTED
2027734: 91 e8 20 09 restore %g0, 9, %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
return sc;
}
/* Read MBR */
sc = rtems_bdpart_read_record( disk, 0, &block);
2027738: a2 07 bf fc add %fp, -4, %l1 <== NOT EXECUTED
202773c: 94 10 20 00 clr %o2 <== NOT EXECUTED
2027740: 7f ff ff 3f call 202743c <rtems_bdpart_read_record> <== NOT EXECUTED
2027744: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2027748: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202774c: 02 80 00 0b be 2027778 <rtems_bdpart_read+0xc4> <== NOT EXECUTED
2027750: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0,
&p,
p_end,
NULL
);
if (sc != RTEMS_SUCCESSFUL) {
2027754: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
2027758: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
/* Return partition count */
*count = (size_t) (p - pt + 1);
cleanup:
if (block != NULL) {
202775c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2027760: 02 bf ff f2 be 2027728 <rtems_bdpart_read+0x74> <== NOT EXECUTED
2027764: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED
rtems_bdbuf_release( block);
2027768: 7f ff 75 7d call 2004d5c <rtems_bdbuf_release> <== NOT EXECUTED
202776c: 01 00 00 00 nop <== NOT EXECUTED
2027770: 81 c7 e0 08 ret <== NOT EXECUTED
2027774: 81 e8 00 00 restore <== 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);
2027778: a0 06 80 10 add %i2, %l0, %l0 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Read the first partition entry */
data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;
202777c: ea 00 60 24 ld [ %g1 + 0x24 ], %l5 <== NOT EXECUTED
sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);
2027780: a6 07 bf f8 add %fp, -8, %l3 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Read the first partition entry */
data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;
2027784: a4 05 61 be add %l5, 0x1be, %l2 <== NOT EXECUTED
sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);
2027788: a8 07 bf f4 add %fp, -12, %l4 <== NOT EXECUTED
202778c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2027790: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2027794: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2027798: 7f ff ff 7f call 2027594 <rtems_bdpart_read_mbr_partition><== NOT EXECUTED
202779c: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
20277a0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20277a4: 32 bf ff ed bne,a 2027758 <rtems_bdpart_read+0xa4> <== NOT EXECUTED
20277a8: a0 10 00 08 mov %o0, %l0 <== 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) {
20277ac: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
20277b0: c2 08 60 08 ldub [ %g1 + 8 ], %g1 <== NOT EXECUTED
20277b4: 80 a0 60 ee cmp %g1, 0xee <== NOT EXECUTED
20277b8: 02 80 00 68 be 2027958 <rtems_bdpart_read+0x2a4> <== NOT EXECUTED
20277bc: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
esc = RTEMS_NOT_IMPLEMENTED;
goto cleanup;
}
/* Set format */
format->type = RTEMS_BDPART_FORMAT_MBR;
20277c0: c0 26 40 00 clr [ %i1 ] <== NOT EXECUTED
format->mbr.disk_id = rtems_uint32_from_little_endian(
20277c4: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
}
return RTEMS_SUCCESSFUL;
}
rtems_status_code rtems_bdpart_read(
20277c8: aa 05 61 ee add %l5, 0x1ee, %l5 <== NOT EXECUTED
goto cleanup;
}
/* Set format */
format->type = RTEMS_BDPART_FORMAT_MBR;
format->mbr.disk_id = rtems_uint32_from_little_endian(
20277cc: c4 08 61 b8 ldub [ %g1 + 0x1b8 ], %g2 <== NOT EXECUTED
20277d0: 82 00 61 b8 add %g1, 0x1b8, %g1 <== NOT EXECUTED
20277d4: c6 08 60 01 ldub [ %g1 + 1 ], %g3 <== NOT EXECUTED
20277d8: c8 08 60 02 ldub [ %g1 + 2 ], %g4 <== NOT EXECUTED
20277dc: da 08 60 03 ldub [ %g1 + 3 ], %o5 <== NOT EXECUTED
20277e0: 83 2b 60 08 sll %o5, 8, %g1 <== NOT EXECUTED
20277e4: 82 00 40 04 add %g1, %g4, %g1 <== NOT EXECUTED
20277e8: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
20277ec: 82 00 40 03 add %g1, %g3, %g1 <== NOT EXECUTED
20277f0: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
20277f4: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
20277f8: c2 26 60 04 st %g1, [ %i1 + 4 ] <== NOT EXECUTED
block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID
);
format->mbr.dos_compatibility = true;
20277fc: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2027800: 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;
2027804: a4 04 a0 10 add %l2, 0x10, %l2 <== NOT EXECUTED
sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);
2027808: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
202780c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2027810: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2027814: 7f ff ff 60 call 2027594 <rtems_bdpart_read_mbr_partition><== NOT EXECUTED
2027818: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
202781c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2027820: 12 bf ff cd bne 2027754 <rtems_bdpart_read+0xa0> <== NOT EXECUTED
2027824: 80 a4 80 15 cmp %l2, %l5 <== 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) {
2027828: 32 bf ff f8 bne,a 2027808 <rtems_bdpart_read+0x154> <== NOT EXECUTED
202782c: a4 04 a0 10 add %l2, 0x10, %l2 <== NOT EXECUTED
goto cleanup;
}
}
/* Iterate through the logical partitions within the extended partition */
ebr = ep_begin;
2027830: f2 07 bf f4 ld [ %fp + -12 ], %i1 <== NOT EXECUTED
while (ebr != 0) {
2027834: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2027838: 02 80 00 4e be 2027970 <rtems_bdpart_read+0x2bc> <== NOT EXECUTED
202783c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
rtems_blkdev_bnum tmp = 0;
/* Read EBR */
sc = rtems_bdpart_read_record( disk, ebr, &block);
2027840: d0 1f bf e8 ldd [ %fp + -24 ], %o0 <== NOT EXECUTED
2027844: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
2027848: 7f ff fe fd call 202743c <rtems_bdpart_read_record> <== NOT EXECUTED
202784c: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Read first partition entry */
sc = rtems_bdpart_read_mbr_partition(
2027850: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2027854: 94 10 00 10 mov %l0, %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) {
2027858: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202785c: 12 bf ff be bne 2027754 <rtems_bdpart_read+0xa0> <== NOT EXECUTED
2027860: 96 10 20 00 clr %o3 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Read first partition entry */
sc = rtems_bdpart_read_mbr_partition(
2027864: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2027868: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
202786c: 7f ff ff 4a call 2027594 <rtems_bdpart_read_mbr_partition><== NOT EXECUTED
2027870: 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) {
2027874: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2027878: 12 bf ff b7 bne 2027754 <rtems_bdpart_read+0xa0> <== NOT EXECUTED
202787c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Adjust partition begin */
tmp = p->begin + ebr;
2027880: c4 00 40 00 ld [ %g1 ], %g2 <== NOT EXECUTED
2027884: 86 06 40 02 add %i1, %g2, %g3 <== NOT EXECUTED
if (tmp > p->begin) {
2027888: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED
202788c: 1a 80 00 37 bcc 2027968 <rtems_bdpart_read+0x2b4> <== NOT EXECUTED
2027890: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
esc = RTEMS_IO_ERROR;
goto cleanup;
}
/* Adjust partition end */
tmp = p->end + ebr;
2027894: c4 00 60 04 ld [ %g1 + 4 ], %g2 <== NOT EXECUTED
2027898: b2 06 40 02 add %i1, %g2, %i1 <== NOT EXECUTED
if (tmp > p->end) {
202789c: 80 a0 80 19 cmp %g2, %i1 <== NOT EXECUTED
20278a0: 1a 80 00 31 bcc 2027964 <rtems_bdpart_read+0x2b0> <== NOT EXECUTED
20278a4: c6 20 40 00 st %g3, [ %g1 ] <== NOT EXECUTED
goto cleanup;
}
/* Read second partition entry for next EBR block */
ebr = rtems_bdpart_next_ebr(
block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_1
20278a8: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
}
/* Adjust partition end */
tmp = p->end + ebr;
if (tmp > p->end) {
p->end = tmp;
20278ac: 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(
20278b0: c4 02 20 24 ld [ %o0 + 0x24 ], %g2 <== NOT EXECUTED
block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_1
20278b4: 94 10 00 08 mov %o0, %o2 <== 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);
20278b8: 86 00 a1 d6 add %g2, 0x1d6, %g3 <== NOT EXECUTED
uint8_t type = data [RTEMS_BDPART_MBR_OFFSET_TYPE];
if (type == RTEMS_BDPART_MBR_EXTENDED) {
20278bc: d6 08 a1 d2 ldub [ %g2 + 0x1d2 ], %o3 <== NOT EXECUTED
20278c0: c8 08 e0 01 ldub [ %g3 + 1 ], %g4 <== NOT EXECUTED
20278c4: da 08 e0 02 ldub [ %g3 + 2 ], %o5 <== NOT EXECUTED
20278c8: d8 08 e0 03 ldub [ %g3 + 3 ], %o4 <== NOT EXECUTED
20278cc: c4 08 a1 d6 ldub [ %g2 + 0x1d6 ], %g2 <== NOT EXECUTED
20278d0: 87 2b 20 08 sll %o4, 8, %g3 <== NOT EXECUTED
20278d4: 80 a2 e0 05 cmp %o3, 5 <== NOT EXECUTED
20278d8: 86 00 c0 0d add %g3, %o5, %g3 <== NOT EXECUTED
20278dc: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
20278e0: 86 00 c0 04 add %g3, %g4, %g3 <== NOT EXECUTED
20278e4: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
20278e8: 02 80 00 12 be 2027930 <rtems_bdpart_read+0x27c> <== NOT EXECUTED
20278ec: 84 00 c0 02 add %g3, %g2, %g2 <== NOT EXECUTED
}
}
}
/* Return partition count */
*count = (size_t) (p - pt + 1);
20278f0: 82 20 40 1a sub %g1, %i2, %g1 <== NOT EXECUTED
20278f4: 83 38 60 04 sra %g1, 4, %g1 <== NOT EXECUTED
20278f8: 85 28 60 02 sll %g1, 2, %g2 <== NOT EXECUTED
20278fc: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
2027900: 85 28 60 04 sll %g1, 4, %g2 <== NOT EXECUTED
2027904: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
2027908: 85 28 60 08 sll %g1, 8, %g2 <== NOT EXECUTED
202790c: 90 10 00 0a mov %o2, %o0 <== NOT EXECUTED
2027910: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
2027914: a0 10 20 00 clr %l0 <== NOT EXECUTED
2027918: 85 28 60 10 sll %g1, 0x10, %g2 <== NOT EXECUTED
202791c: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
2027920: 82 20 00 01 neg %g1 <== NOT EXECUTED
2027924: 82 00 60 01 inc %g1 <== NOT EXECUTED
2027928: 10 bf ff 8d b 202775c <rtems_bdpart_read+0xa8> <== NOT EXECUTED
202792c: c2 26 c0 00 st %g1, [ %i3 ] <== 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) {
2027930: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2027934: 22 bf ff f0 be,a 20278f4 <rtems_bdpart_read+0x240> <== NOT EXECUTED
2027938: 82 20 40 1a sub %g1, %i2, %g1 <== NOT EXECUTED
/* Adjust partition EBR block index */
tmp = ebr + ep_begin;
202793c: f2 07 bf f4 ld [ %fp + -12 ], %i1 <== NOT EXECUTED
2027940: b2 00 80 19 add %g2, %i1, %i1 <== NOT EXECUTED
if (tmp > ebr) {
2027944: 80 a6 40 02 cmp %i1, %g2 <== NOT EXECUTED
2027948: 38 bf ff bf bgu,a 2027844 <rtems_bdpart_read+0x190> <== NOT EXECUTED
202794c: d0 1f bf e8 ldd [ %fp + -24 ], %o0 <== NOT EXECUTED
2027950: 10 bf ff 83 b 202775c <rtems_bdpart_read+0xa8> <== NOT EXECUTED
2027954: a0 10 20 1b mov 0x1b, %l0 <== 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) {
2027958: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
202795c: 10 bf ff 80 b 202775c <rtems_bdpart_read+0xa8> <== NOT EXECUTED
2027960: a0 10 20 18 mov 0x18, %l0 <== NOT EXECUTED
goto cleanup;
}
/* Adjust partition end */
tmp = p->end + ebr;
if (tmp > p->end) {
2027964: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
2027968: 10 bf ff 7d b 202775c <rtems_bdpart_read+0xa8> <== NOT EXECUTED
202796c: a0 10 20 1b mov 0x1b, %l0 <== NOT EXECUTED
2027970: 10 bf ff e0 b 20278f0 <rtems_bdpart_read+0x23c> <== NOT EXECUTED
2027974: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
02027594 <rtems_bdpart_read_mbr_partition>:
const uint8_t *data,
rtems_bdpart_partition **p,
const rtems_bdpart_partition *p_end,
rtems_blkdev_bnum *ep_begin
)
{
2027594: 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);
2027598: 86 06 20 08 add %i0, 8, %g3 <== NOT EXECUTED
rtems_blkdev_bnum size =
rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_SIZE);
202759c: 84 06 20 0c add %i0, 0xc, %g2 <== NOT EXECUTED
{
uint32_t value = 0;
ssize_t i = 0;
for (i = 3; i >= 0; --i) {
value = (value << 8) + data [i];
20275a0: d8 08 e0 01 ldub [ %g3 + 1 ], %o4 <== NOT EXECUTED
20275a4: da 08 a0 01 ldub [ %g2 + 1 ], %o5 <== NOT EXECUTED
20275a8: c2 08 e0 03 ldub [ %g3 + 3 ], %g1 <== NOT EXECUTED
20275ac: d4 08 e0 02 ldub [ %g3 + 2 ], %o2 <== NOT EXECUTED
20275b0: d6 08 a0 02 ldub [ %g2 + 2 ], %o3 <== NOT EXECUTED
20275b4: c6 08 a0 03 ldub [ %g2 + 3 ], %g3 <== NOT EXECUTED
20275b8: c8 0e 20 08 ldub [ %i0 + 8 ], %g4 <== NOT EXECUTED
20275bc: c4 0e 20 0c ldub [ %i0 + 0xc ], %g2 <== NOT EXECUTED
rtems_blkdev_bnum end = begin + size;
uint8_t type = data [RTEMS_BDPART_MBR_OFFSET_TYPE];
if (type == RTEMS_BDPART_MBR_EMPTY) {
20275c0: d0 0e 20 04 ldub [ %i0 + 4 ], %o0 <== NOT EXECUTED
20275c4: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
20275c8: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
20275cc: 82 00 40 0a add %g1, %o2, %g1 <== NOT EXECUTED
20275d0: 86 00 c0 0b add %g3, %o3, %g3 <== NOT EXECUTED
20275d4: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
20275d8: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
20275dc: 82 00 40 0c add %g1, %o4, %g1 <== NOT EXECUTED
20275e0: 86 00 c0 0d add %g3, %o5, %g3 <== NOT EXECUTED
20275e4: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
20275e8: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
const uint8_t *data,
rtems_bdpart_partition **p,
const rtems_bdpart_partition *p_end,
rtems_blkdev_bnum *ep_begin
)
{
20275ec: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
20275f0: 82 00 40 04 add %g1, %g4, %g1 <== 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) {
20275f4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20275f8: 02 80 00 26 be 2027690 <rtems_bdpart_read_mbr_partition+0xfc><== NOT EXECUTED
20275fc: 84 00 c0 02 add %g3, %g2, %g2 <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
} else if (*p == p_end) {
2027600: c6 06 40 00 ld [ %i1 ], %g3 <== NOT EXECUTED
2027604: 80 a0 c0 1a cmp %g3, %i2 <== NOT EXECUTED
2027608: 02 80 00 20 be 2027688 <rtems_bdpart_read_mbr_partition+0xf4><== NOT EXECUTED
202760c: 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;
2027610: 84 00 40 02 add %g1, %g2, %g2 <== NOT EXECUTED
if (type == RTEMS_BDPART_MBR_EMPTY) {
return RTEMS_SUCCESSFUL;
} else if (*p == p_end) {
return RTEMS_TOO_MANY;
} else if (begin >= end) {
2027614: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2027618: 08 80 00 1c bleu 2027688 <rtems_bdpart_read_mbr_partition+0xf4><== NOT EXECUTED
202761c: b0 10 20 1b mov 0x1b, %i0 <== NOT EXECUTED
return RTEMS_IO_ERROR;
} else if (type == RTEMS_BDPART_MBR_EXTENDED) {
2027620: 80 a2 20 05 cmp %o0, 5 <== NOT EXECUTED
2027624: 02 80 00 1e be 202769c <rtems_bdpart_read_mbr_partition+0x108><== NOT EXECUTED
2027628: 88 00 e0 30 add %g3, 0x30, %g4 <== NOT EXECUTED
if (ep_begin != NULL) {
*ep_begin = begin;
}
} else {
/* Increment partition index */
++(*p);
202762c: c8 26 40 00 st %g4, [ %i1 ] <== NOT EXECUTED
/* Clear partition */
memset( *p, 0, sizeof( rtems_bdpart_partition));
2027630: c0 20 e0 30 clr [ %g3 + 0x30 ] <== NOT EXECUTED
2027634: c0 20 e0 34 clr [ %g3 + 0x34 ] <== NOT EXECUTED
2027638: c0 21 20 28 clr [ %g4 + 0x28 ] <== NOT EXECUTED
202763c: c0 21 20 2c clr [ %g4 + 0x2c ] <== NOT EXECUTED
2027640: c0 21 20 08 clr [ %g4 + 8 ] <== NOT EXECUTED
2027644: c0 21 20 0c clr [ %g4 + 0xc ] <== NOT EXECUTED
2027648: c0 21 20 10 clr [ %g4 + 0x10 ] <== NOT EXECUTED
202764c: c0 21 20 14 clr [ %g4 + 0x14 ] <== NOT EXECUTED
2027650: c0 21 20 18 clr [ %g4 + 0x18 ] <== NOT EXECUTED
2027654: c0 21 20 1c clr [ %g4 + 0x1c ] <== NOT EXECUTED
2027658: c0 21 20 20 clr [ %g4 + 0x20 ] <== NOT EXECUTED
202765c: c0 21 20 24 clr [ %g4 + 0x24 ] <== NOT EXECUTED
/* Set values */
(*p)->begin = begin;
2027660: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED
(*p)->end = end;
rtems_bdpart_to_partition_type( type, (*p)->type);
(*p)->flags = data [RTEMS_BDPART_MBR_OFFSET_FLAGS];
2027664: b0 10 20 00 clr %i0 <== NOT EXECUTED
/* Clear partition */
memset( *p, 0, sizeof( rtems_bdpart_partition));
/* Set values */
(*p)->begin = begin;
2027668: c2 22 40 00 st %g1, [ %o1 ] <== NOT EXECUTED
(*p)->end = end;
202766c: c4 22 60 04 st %g2, [ %o1 + 4 ] <== NOT EXECUTED
rtems_bdpart_to_partition_type( type, (*p)->type);
2027670: 7f ff ff c0 call 2027570 <rtems_bdpart_to_partition_type> <== NOT EXECUTED
2027674: 92 02 60 08 add %o1, 8, %o1 <== NOT EXECUTED
(*p)->flags = data [RTEMS_BDPART_MBR_OFFSET_FLAGS];
2027678: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
202767c: c4 0c 00 00 ldub [ %l0 ], %g2 <== NOT EXECUTED
2027680: c0 20 60 28 clr [ %g1 + 0x28 ] <== NOT EXECUTED
2027684: c4 20 60 2c st %g2, [ %g1 + 0x2c ] <== NOT EXECUTED
2027688: 81 c7 e0 08 ret <== NOT EXECUTED
202768c: 81 e8 00 00 restore <== NOT EXECUTED
2027690: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
return RTEMS_SUCCESSFUL;
}
2027694: 81 c7 e0 08 ret <== NOT EXECUTED
2027698: 81 e8 00 00 restore <== NOT EXECUTED
} else if (*p == p_end) {
return RTEMS_TOO_MANY;
} else if (begin >= end) {
return RTEMS_IO_ERROR;
} else if (type == RTEMS_BDPART_MBR_EXTENDED) {
if (ep_begin != NULL) {
202769c: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
20276a0: 02 bf ff fa be 2027688 <rtems_bdpart_read_mbr_partition+0xf4><== NOT EXECUTED
20276a4: b0 10 20 00 clr %i0 <== NOT EXECUTED
*ep_begin = begin;
20276a8: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED
20276ac: 81 c7 e0 08 ret <== NOT EXECUTED
20276b0: 81 e8 00 00 restore <== NOT EXECUTED
0202743c <rtems_bdpart_read_record>:
static rtems_status_code rtems_bdpart_read_record(
dev_t disk,
rtems_blkdev_bnum index,
rtems_bdbuf_buffer **block
)
{
202743c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
/* Release previous block if necessary */
if (*block != NULL) {
2027440: d0 06 c0 00 ld [ %i3 ], %o0 <== NOT EXECUTED
static rtems_status_code rtems_bdpart_read_record(
dev_t disk,
rtems_blkdev_bnum index,
rtems_bdbuf_buffer **block
)
{
2027444: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
/* Release previous block if necessary */
if (*block != NULL) {
2027448: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202744c: 02 80 00 07 be 2027468 <rtems_bdpart_read_record+0x2c> <== NOT EXECUTED
2027450: a2 10 00 19 mov %i1, %l1 <== NOT EXECUTED
sc = rtems_bdbuf_release( *block);
2027454: 7f ff 76 42 call 2004d5c <rtems_bdbuf_release> <== NOT EXECUTED
2027458: 01 00 00 00 nop <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
202745c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2027460: 12 80 00 14 bne 20274b0 <rtems_bdpart_read_record+0x74> <== NOT EXECUTED
2027464: 01 00 00 00 nop <== NOT EXECUTED
return sc;
}
}
/* Read the record block */
sc = rtems_bdbuf_read( disk, index, block);
2027468: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202746c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2027470: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2027474: 7f ff 7b 15 call 20060c8 <rtems_bdbuf_read> <== NOT EXECUTED
2027478: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
202747c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2027480: 12 80 00 0c bne 20274b0 <rtems_bdpart_read_record+0x74> <== NOT EXECUTED
2027484: 01 00 00 00 nop <== NOT EXECUTED
return sc;
}
/* just in case block did not get filled in */
if ( *block == NULL ) {
2027488: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
202748c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2027490: 22 80 00 08 be,a 20274b0 <rtems_bdpart_read_record+0x74> <== NOT EXECUTED
2027494: 90 10 20 09 mov 9, %o0 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
}
/* Check MBR signature */
if (!rtems_bdpart_is_valid_record( (*block)->buffer)) {
2027498: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
static bool rtems_bdpart_is_valid_record( const uint8_t *data)
{
return data [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_0]
202749c: c4 08 61 fe ldub [ %g1 + 0x1fe ], %g2 <== NOT EXECUTED
20274a0: 80 a0 a0 55 cmp %g2, 0x55 <== NOT EXECUTED
20274a4: 22 80 00 05 be,a 20274b8 <rtems_bdpart_read_record+0x7c> <== NOT EXECUTED
20274a8: c2 08 61 ff ldub [ %g1 + 0x1ff ], %g1 <== NOT EXECUTED
20274ac: 90 10 20 1b mov 0x1b, %o0 <== NOT EXECUTED
if (!rtems_bdpart_is_valid_record( (*block)->buffer)) {
return RTEMS_IO_ERROR;
}
return RTEMS_SUCCESSFUL;
}
20274b0: 81 c7 e0 08 ret <== NOT EXECUTED
20274b4: 91 e8 00 08 restore %g0, %o0, %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]
20274b8: 80 a0 60 aa cmp %g1, 0xaa <== NOT EXECUTED
20274bc: 32 bf ff fd bne,a 20274b0 <rtems_bdpart_read_record+0x74><== NOT EXECUTED
20274c0: 90 10 20 1b mov 0x1b, %o0 <== NOT EXECUTED
20274c4: 30 bf ff fb b,a 20274b0 <rtems_bdpart_read_record+0x74> <== NOT EXECUTED
02006414 <rtems_bdpart_register>:
rtems_status_code rtems_bdpart_register(
const char *disk_name,
const rtems_bdpart_partition *pt,
size_t count
)
{
2006414: 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);
2006418: 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;
200641c: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
dev_t disk = 0;
2006420: 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);
2006424: 40 01 25 b0 call 204fae4 <strlen> <== NOT EXECUTED
2006428: 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
)
{
200642c: a0 10 00 18 mov %i0, %l0 <== 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);
2006430: a8 10 00 08 mov %o0, %l4 <== NOT EXECUTED
size_t i = 0;
/* Get disk data */
sc = rtems_bdpart_get_disk_data( disk_name, &disk, &disk_end);
2006434: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
2006438: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
200643c: 40 00 84 23 call 20274c8 <rtems_bdpart_get_disk_data> <== NOT EXECUTED
2006440: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2006444: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2006448: 12 80 00 2d bne 20064fc <rtems_bdpart_register+0xe8> <== NOT EXECUTED
200644c: e6 07 bf f0 ld [ %fp + -16 ], %l3 <== NOT EXECUTED
return sc;
}
/* Get the disk device identifier */
rtems_filesystem_split_dev_t( disk, major, minor);
2006450: e2 07 bf f4 ld [ %fp + -12 ], %l1 <== NOT EXECUTED
/* Create logical disk name */
logical_disk_name = malloc( disk_name_size + RTEMS_BDPART_NUMBER_SIZE);
2006454: 90 05 20 04 add %l4, 4, %o0 <== NOT EXECUTED
2006458: 40 00 0b 02 call 2009060 <malloc> <== NOT EXECUTED
200645c: b0 10 20 1a mov 0x1a, %i0 <== NOT EXECUTED
if (logical_disk_name == NULL) {
2006460: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2006464: 02 80 00 26 be 20064fc <rtems_bdpart_register+0xe8> <== NOT EXECUTED
2006468: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
strncpy( logical_disk_name, disk_name, disk_name_size);
200646c: 40 01 26 62 call 204fdf4 <strncpy> <== NOT EXECUTED
2006470: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
logical_disk_marker = logical_disk_name + disk_name_size;
/* Create a logical disk for each partition */
for (i = 0; i < count; ++i) {
2006474: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
2006478: 02 80 00 23 be 2006504 <rtems_bdpart_register+0xf0> <== NOT EXECUTED
200647c: a8 04 80 14 add %l2, %l4, %l4 <== NOT EXECUTED
2006480: 2b 00 81 90 sethi %hi(0x2064000), %l5 <== NOT EXECUTED
2006484: a0 10 20 00 clr %l0 <== 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);
2006488: 10 80 00 0c b 20064b8 <rtems_bdpart_register+0xa4> <== NOT EXECUTED
200648c: aa 15 62 50 or %l5, 0x250, %l5 <== NOT EXECUTED
esc = RTEMS_INVALID_NAME;
goto cleanup;
}
/* Create logical disk */
sc = rtems_disk_create_log(
2006490: d8 1e 40 00 ldd [ %i1 ], %o4 <== NOT EXECUTED
2006494: d4 1f bf f0 ldd [ %fp + -16 ], %o2 <== NOT EXECUTED
2006498: e4 23 a0 5c st %l2, [ %sp + 0x5c ] <== NOT EXECUTED
200649c: 40 00 04 8b call 20076c8 <rtems_disk_create_log> <== NOT EXECUTED
20064a0: 9a 23 40 0c sub %o5, %o4, %o5 <== NOT EXECUTED
disk,
p->begin,
p->end - p->begin,
logical_disk_name
);
if (sc != RTEMS_SUCCESSFUL) {
20064a4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20064a8: 12 80 00 19 bne 200650c <rtems_bdpart_register+0xf8> <== NOT EXECUTED
20064ac: 80 a6 80 10 cmp %i2, %l0 <== 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) {
20064b0: 08 80 00 15 bleu 2006504 <rtems_bdpart_register+0xf0> <== NOT EXECUTED
20064b4: b2 06 60 30 add %i1, 0x30, %i1 <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
20064b8: e6 27 bf e8 st %l3, [ %fp + -24 ] <== NOT EXECUTED
const rtems_bdpart_partition *p = pt + i;
int rv = 0;
/* New minor number */
++minor;
20064bc: a2 04 60 01 inc %l1 <== NOT EXECUTED
temp.__overlay.minor = _minor;
20064c0: e2 27 bf ec st %l1, [ %fp + -20 ] <== NOT EXECUTED
return temp.device;
20064c4: 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);
20064c8: 92 10 20 04 mov 4, %o1 <== NOT EXECUTED
20064cc: a0 04 20 01 inc %l0 <== NOT EXECUTED
20064d0: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED
20064d4: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
20064d8: 40 01 21 ba call 204ebc0 <snprintf> <== NOT EXECUTED
20064dc: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
esc = RTEMS_INVALID_NAME;
goto cleanup;
}
/* Create logical disk */
sc = rtems_disk_create_log(
20064e0: 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) {
20064e4: 80 a2 20 03 cmp %o0, 3 <== NOT EXECUTED
20064e8: 04 bf ff ea ble 2006490 <rtems_bdpart_register+0x7c> <== NOT EXECUTED
20064ec: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
20064f0: b0 10 20 03 mov 3, %i0 <== NOT EXECUTED
}
}
cleanup:
free( logical_disk_name);
20064f4: 40 00 08 fa call 20088dc <free> <== NOT EXECUTED
20064f8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
return esc;
}
20064fc: 81 c7 e0 08 ret <== NOT EXECUTED
2006500: 81 e8 00 00 restore <== 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) {
2006504: 10 bf ff fc b 20064f4 <rtems_bdpart_register+0xe0> <== NOT EXECUTED
2006508: b0 10 20 00 clr %i0 <== NOT EXECUTED
disk,
p->begin,
p->end - p->begin,
logical_disk_name
);
if (sc != RTEMS_SUCCESSFUL) {
200650c: 10 bf ff fa b 20064f4 <rtems_bdpart_register+0xe0> <== NOT EXECUTED
2006510: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
02006514 <rtems_bdpart_register_from_disk>:
return esc;
}
rtems_status_code rtems_bdpart_register_from_disk( const char *disk_name)
{
2006514: 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;
2006518: 82 10 20 10 mov 0x10, %g1 <== NOT EXECUTED
/* Read partitions */
sc = rtems_bdpart_read( disk_name, &format, pt, &count);
200651c: 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;
2006520: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
/* Read partitions */
sc = rtems_bdpart_read( disk_name, &format, pt, &count);
2006524: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2006528: 92 07 bf e8 add %fp, -24, %o1 <== NOT EXECUTED
200652c: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2006530: 40 00 84 61 call 20276b4 <rtems_bdpart_read> <== NOT EXECUTED
2006534: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2006538: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200653c: 12 80 00 05 bne 2006550 <rtems_bdpart_register_from_disk+0x3c><== NOT EXECUTED
2006540: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
return sc;
}
/* Register partitions */
return rtems_bdpart_register( disk_name, pt, count);
2006544: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2006548: 7f ff ff b3 call 2006414 <rtems_bdpart_register> <== NOT EXECUTED
200654c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
}
2006550: 81 c7 e0 08 ret <== NOT EXECUTED
2006554: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02027540 <rtems_bdpart_to_mbr_partition_type>:
bool rtems_bdpart_to_mbr_partition_type(
const uuid_t type,
uint8_t *mbr_type
)
{
2027540: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
*mbr_type = rtems_bdpart_mbr_partition_type( type);
2027544: c2 0e 00 00 ldub [ %i0 ], %g1 <== NOT EXECUTED
return memcmp(
2027548: 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);
202754c: c2 2e 40 00 stb %g1, [ %i1 ] <== NOT EXECUTED
return memcmp(
2027550: 94 10 20 0f mov 0xf, %o2 <== NOT EXECUTED
2027554: 13 00 81 a3 sethi %hi(0x2068c00), %o1 <== NOT EXECUTED
2027558: 40 00 92 d6 call 204c0b0 <memcmp> <== NOT EXECUTED
202755c: 92 12 63 21 or %o1, 0x321, %o1 ! 2068f21 <RTEMS_BDPART_MBR_MASTER_TYPE+0x1><== NOT EXECUTED
2027560: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
2027564: b0 60 3f ff subx %g0, -1, %i0 <== NOT EXECUTED
type + 1,
RTEMS_BDPART_MBR_MASTER_TYPE + 1,
sizeof( uuid_t) - 1
) == 0;
}
2027568: 81 c7 e0 08 ret <== NOT EXECUTED
202756c: 81 e8 00 00 restore <== NOT EXECUTED
02027570 <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;
2027570: d0 2a 40 00 stb %o0, [ %o1 ] <== NOT EXECUTED
memcpy( type + 1, RTEMS_BDPART_MBR_MASTER_TYPE + 1, sizeof( uuid_t) - 1);
2027574: 94 10 20 0f mov 0xf, %o2 <== NOT EXECUTED
2027578: 90 02 60 01 add %o1, 1, %o0 <== NOT EXECUTED
202757c: 13 00 81 a3 sethi %hi(0x2068c00), %o1 <== NOT EXECUTED
2027580: 92 12 63 21 or %o1, 0x321, %o1 ! 2068f21 <RTEMS_BDPART_MBR_MASTER_TYPE+0x1><== NOT EXECUTED
2027584: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2027588: 40 00 92 fb call 204c174 <memcpy> <== NOT EXECUTED
202758c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
0202715c <rtems_bdpart_unmount>:
const char *disk_name,
const rtems_bdpart_partition *pt __attribute__((unused)),
size_t count,
const char *mount_base
)
{
202715c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_status_code esc = RTEMS_SUCCESSFUL;
const char *disk_file_name = strrchr( disk_name, '/');
2027160: 92 10 20 2f mov 0x2f, %o1 <== NOT EXECUTED
2027164: 40 00 a5 fe call 205095c <strrchr> <== NOT EXECUTED
2027168: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
202716c: a2 10 00 08 mov %o0, %l1 <== 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);
2027170: 40 00 a2 5d call 204fae4 <strlen> <== NOT EXECUTED
2027174: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2027178: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
size_t mount_base_size = strlen( mount_base);
202717c: 40 00 a2 5a call 204fae4 <strlen> <== NOT EXECUTED
2027180: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
size_t i = 0;
/* Get disk file name */
if (disk_file_name != NULL) {
2027184: a4 10 00 18 mov %i0, %l2 <== NOT EXECUTED
2027188: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
202718c: 02 80 00 06 be 20271a4 <rtems_bdpart_unmount+0x48> <== NOT EXECUTED
2027190: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
disk_file_name += 1;
2027194: a4 04 60 01 add %l1, 1, %l2 <== NOT EXECUTED
disk_file_name_size = strlen( disk_file_name);
2027198: 40 00 a2 53 call 204fae4 <strlen> <== NOT EXECUTED
202719c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
20271a0: 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);
20271a4: a8 04 c0 10 add %l3, %l0, %l4 <== NOT EXECUTED
if (mount_point == NULL) {
20271a8: 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);
20271ac: 7f ff 87 ad call 2009060 <malloc> <== NOT EXECUTED
20271b0: 90 05 20 05 add %l4, 5, %o0 <== NOT EXECUTED
if (mount_point == NULL) {
20271b4: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
20271b8: 02 80 00 29 be 202725c <rtems_bdpart_unmount+0x100> <== NOT EXECUTED
20271bc: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
esc = RTEMS_NO_MEMORY;
goto cleanup;
}
strncpy( mount_point, mount_base, mount_base_size);
20271c0: 40 00 a3 0d call 204fdf4 <strncpy> <== NOT EXECUTED
20271c4: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
mount_point [mount_base_size] = '/';
20271c8: 82 10 20 2f mov 0x2f, %g1 <== NOT EXECUTED
strncpy( mount_point + mount_base_size + 1, disk_file_name, disk_file_name_size);
20271cc: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
20271d0: 90 04 20 01 add %l0, 1, %o0 <== NOT EXECUTED
20271d4: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
20271d8: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED
20271dc: 40 00 a3 06 call 204fdf4 <strncpy> <== NOT EXECUTED
20271e0: c2 2c 40 10 stb %g1, [ %l1 + %l0 ] <== NOT EXECUTED
/* Marker */
mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
20271e4: a4 05 20 01 add %l4, 1, %l2 <== NOT EXECUTED
/* Mount supported file systems for each partition */
for (i = 0; i < count; ++i) {
20271e8: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
20271ec: 02 80 00 20 be 202726c <rtems_bdpart_unmount+0x110> <== NOT EXECUTED
20271f0: a4 04 40 12 add %l1, %l2, %l2 <== NOT EXECUTED
20271f4: 27 00 81 a3 sethi %hi(0x2068c00), %l3 <== NOT EXECUTED
20271f8: a0 10 20 00 clr %l0 <== NOT EXECUTED
/* Create mount point */
int rv = snprintf( mount_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
20271fc: 10 80 00 04 b 202720c <rtems_bdpart_unmount+0xb0> <== NOT EXECUTED
2027200: a6 14 e3 10 or %l3, 0x310, %l3 <== 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) {
2027204: 08 80 00 1b bleu 2027270 <rtems_bdpart_unmount+0x114> <== NOT EXECUTED
2027208: b0 10 20 00 clr %i0 <== NOT EXECUTED
/* Create mount point */
int rv = snprintf( mount_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
202720c: a0 04 20 01 inc %l0 <== NOT EXECUTED
2027210: 92 10 20 04 mov 4, %o1 <== NOT EXECUTED
2027214: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
2027218: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
202721c: 40 00 9e 69 call 204ebc0 <snprintf> <== NOT EXECUTED
2027220: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
if (rv >= RTEMS_BDPART_NUMBER_SIZE) {
2027224: 80 a2 20 03 cmp %o0, 3 <== NOT EXECUTED
2027228: 14 80 00 16 bg 2027280 <rtems_bdpart_unmount+0x124> <== NOT EXECUTED
202722c: b0 10 20 03 mov 3, %i0 <== NOT EXECUTED
esc = RTEMS_INVALID_NAME;
goto cleanup;
}
/* Unmount */
rv = unmount( mount_point);
2027230: 40 00 1d 4b call 202e75c <unmount> <== NOT EXECUTED
2027234: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
if (rv == 0) {
2027238: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202723c: 12 bf ff f2 bne 2027204 <rtems_bdpart_unmount+0xa8> <== NOT EXECUTED
2027240: 80 a6 80 10 cmp %i2, %l0 <== NOT EXECUTED
/* Remove mount point */
rv = rmdir( mount_point);
2027244: 40 00 1b 89 call 202e068 <rmdir> <== NOT EXECUTED
2027248: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
if (rv != 0) {
202724c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2027250: 02 bf ff ed be 2027204 <rtems_bdpart_unmount+0xa8> <== NOT EXECUTED
2027254: 80 a6 80 10 cmp %i2, %l0 <== NOT EXECUTED
2027258: b0 10 20 1b mov 0x1b, %i0 <== NOT EXECUTED
}
}
cleanup:
free( mount_point);
202725c: 7f ff 85 a0 call 20088dc <free> <== NOT EXECUTED
2027260: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
return esc;
}
2027264: 81 c7 e0 08 ret <== NOT EXECUTED
2027268: 81 e8 00 00 restore <== 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) {
202726c: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
}
cleanup:
free( mount_point);
2027270: 7f ff 85 9b call 20088dc <free> <== NOT EXECUTED
2027274: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
return esc;
}
2027278: 81 c7 e0 08 ret <== NOT EXECUTED
202727c: 81 e8 00 00 restore <== NOT EXECUTED
}
}
cleanup:
free( mount_point);
2027280: 7f ff 85 97 call 20088dc <free> <== NOT EXECUTED
2027284: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
return esc;
}
2027288: 81 c7 e0 08 ret <== NOT EXECUTED
202728c: 81 e8 00 00 restore <== NOT EXECUTED
020063a0 <rtems_bdpart_unregister>:
rtems_status_code rtems_bdpart_unregister(
const char *disk_name,
const rtems_bdpart_partition *pt __attribute__((unused)),
size_t count
)
{
20063a0: 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;
20063a4: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
dev_t disk = 0;
20063a8: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
20063ac: 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);
20063b0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20063b4: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
20063b8: 40 00 84 44 call 20274c8 <rtems_bdpart_get_disk_data> <== NOT EXECUTED
20063bc: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
20063c0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20063c4: 12 80 00 12 bne 200640c <rtems_bdpart_unregister+0x6c> <== NOT EXECUTED
20063c8: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
return sc;
}
/* Get the disk device identifier */
rtems_filesystem_split_dev_t( disk, major, minor);
20063cc: e4 07 bf f0 ld [ %fp + -16 ], %l2 <== NOT EXECUTED
/* Create a logical disk for each partition */
for (i = 0; i < count; ++i) {
20063d0: 02 80 00 0f be 200640c <rtems_bdpart_unregister+0x6c> <== NOT EXECUTED
20063d4: e0 07 bf f4 ld [ %fp + -12 ], %l0 <== NOT EXECUTED
20063d8: 10 80 00 04 b 20063e8 <rtems_bdpart_unregister+0x48> <== NOT EXECUTED
20063dc: a2 10 20 00 clr %l1 <== NOT EXECUTED
20063e0: 08 80 00 0b bleu 200640c <rtems_bdpart_unregister+0x6c> <== NOT EXECUTED
20063e4: 01 00 00 00 nop <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
20063e8: e4 27 bf e8 st %l2, [ %fp + -24 ] <== NOT EXECUTED
/* New minor number */
++minor;
20063ec: a0 04 20 01 inc %l0 <== NOT EXECUTED
temp.__overlay.minor = _minor;
20063f0: e0 27 bf ec st %l0, [ %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);
20063f4: d0 1f bf e8 ldd [ %fp + -24 ], %o0 <== NOT EXECUTED
20063f8: 40 00 03 9c call 2007268 <rtems_disk_delete> <== NOT EXECUTED
20063fc: a2 04 60 01 inc %l1 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2006400: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2006404: 02 bf ff f7 be 20063e0 <rtems_bdpart_unregister+0x40> <== NOT EXECUTED
2006408: 80 a6 80 11 cmp %i2, %l1 <== NOT EXECUTED
return sc;
}
}
return RTEMS_SUCCESSFUL;
}
200640c: 81 c7 e0 08 ret <== NOT EXECUTED
2006410: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02027a10 <rtems_bdpart_write>:
const char *disk_name,
const rtems_bdpart_format *format,
const rtems_bdpart_partition *pt,
size_t count
)
{
2027a10: 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
2027a14: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2027a18: 02 80 00 06 be 2027a30 <rtems_bdpart_write+0x20> <== NOT EXECUTED
2027a1c: 82 10 00 18 mov %i0, %g1 <== NOT EXECUTED
&& format->type == RTEMS_BDPART_FORMAT_MBR
2027a20: c4 06 40 00 ld [ %i1 ], %g2 <== NOT EXECUTED
2027a24: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2027a28: 22 80 00 43 be,a 2027b34 <rtems_bdpart_write+0x124> <== NOT EXECUTED
2027a2c: c4 0e 60 08 ldub [ %i1 + 8 ], %g2 <== NOT EXECUTED
&& format->mbr.dos_compatibility;
rtems_bdbuf_buffer *block = NULL;
2027a30: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
rtems_blkdev_bnum disk_end = 0;
2027a34: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
2027a38: a2 10 20 00 clr %l1 <== NOT EXECUTED
2027a3c: a0 10 20 01 mov 1, %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) {
2027a40: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2027a44: 02 80 00 3a be 2027b2c <rtems_bdpart_write+0x11c> <== NOT EXECUTED
2027a48: b0 10 20 00 clr %i0 <== NOT EXECUTED
/* Nothing to do */
return RTEMS_SUCCESSFUL;
}
/* Check parameter */
if (format == NULL || pt == NULL) {
2027a4c: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
2027a50: 12 80 00 04 bne 2027a60 <rtems_bdpart_write+0x50> <== NOT EXECUTED
2027a54: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2027a58: 81 c7 e0 08 ret <== NOT EXECUTED
2027a5c: 91 e8 20 09 restore %g0, 9, %o0 <== NOT EXECUTED
2027a60: 02 bf ff fe be 2027a58 <rtems_bdpart_write+0x48> <== NOT EXECUTED
2027a64: 90 10 00 01 mov %g1, %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;
2027a68: c0 27 bf e8 clr [ %fp + -24 ] <== NOT EXECUTED
2027a6c: c0 27 bf ec clr [ %fp + -20 ] <== 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);
2027a70: 92 07 bf e8 add %fp, -24, %o1 <== NOT EXECUTED
2027a74: 7f ff fe 95 call 20274c8 <rtems_bdpart_get_disk_data> <== NOT EXECUTED
2027a78: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2027a7c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2027a80: 12 80 00 2b bne 2027b2c <rtems_bdpart_write+0x11c> <== NOT EXECUTED
2027a84: a6 8c 60 ff andcc %l1, 0xff, %l3 <== NOT EXECUTED
return sc;
}
/* Align end of disk on cylinder boundary if necessary */
if (dos_compatibility) {
2027a88: 12 80 00 32 bne 2027b50 <rtems_bdpart_write+0x140> <== NOT EXECUTED
2027a8c: e4 07 bf f4 ld [ %fp + -12 ], %l2 <== NOT EXECUTED
2027a90: d0 07 bf f4 ld [ %fp + -12 ], %o0 <== 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) {
2027a94: da 06 80 00 ld [ %i2 ], %o5 <== NOT EXECUTED
2027a98: 80 a3 40 08 cmp %o5, %o0 <== NOT EXECUTED
2027a9c: 1a 80 00 1e bcc 2027b14 <rtems_bdpart_write+0x104> <== NOT EXECUTED
2027aa0: aa 10 20 0a mov 0xa, %l5 <== NOT EXECUTED
2027aa4: c2 06 a0 04 ld [ %i2 + 4 ], %g1 <== NOT EXECUTED
2027aa8: 80 a0 40 08 cmp %g1, %o0 <== NOT EXECUTED
2027aac: 18 80 00 1a bgu 2027b14 <rtems_bdpart_write+0x104> <== NOT EXECUTED
2027ab0: 80 a0 40 0d cmp %g1, %o5 <== NOT EXECUTED
esc = RTEMS_INVALID_NUMBER;
goto cleanup;
}
/* Check that begin and end are valid */
if (p->begin >= p->end) {
2027ab4: 28 80 00 19 bleu,a 2027b18 <rtems_bdpart_write+0x108> <== NOT EXECUTED
2027ab8: d0 07 bf f8 ld [ %fp + -8 ], %o0 <== NOT EXECUTED
2027abc: a2 10 00 1a mov %i2, %l1 <== NOT EXECUTED
2027ac0: 82 10 00 1a mov %i2, %g1 <== NOT EXECUTED
2027ac4: 86 10 20 00 clr %g3 <== 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) {
2027ac8: 86 00 e0 01 inc %g3 <== NOT EXECUTED
2027acc: 80 a6 c0 03 cmp %i3, %g3 <== NOT EXECUTED
2027ad0: 28 80 00 26 bleu,a 2027b68 <rtems_bdpart_write+0x158> <== NOT EXECUTED
2027ad4: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
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) {
2027ad8: c4 00 60 30 ld [ %g1 + 0x30 ], %g2 <== NOT EXECUTED
2027adc: 80 a0 80 08 cmp %g2, %o0 <== NOT EXECUTED
2027ae0: 3a 80 00 0d bcc,a 2027b14 <rtems_bdpart_write+0x104> <== NOT EXECUTED
2027ae4: aa 10 20 0a mov 0xa, %l5 <== NOT EXECUTED
2027ae8: c8 00 60 34 ld [ %g1 + 0x34 ], %g4 <== NOT EXECUTED
2027aec: 80 a1 00 08 cmp %g4, %o0 <== NOT EXECUTED
2027af0: 18 80 00 08 bgu 2027b10 <rtems_bdpart_write+0x100> <== NOT EXECUTED
2027af4: 80 a0 80 04 cmp %g2, %g4 <== NOT EXECUTED
esc = RTEMS_INVALID_NUMBER;
goto cleanup;
}
/* Check that begin and end are valid */
if (p->begin >= p->end) {
2027af8: 3a 80 00 07 bcc,a 2027b14 <rtems_bdpart_write+0x104> <== NOT EXECUTED
2027afc: aa 10 20 0a mov 0xa, %l5 <== NOT EXECUTED
esc = RTEMS_INVALID_NUMBER;
goto cleanup;
}
/* Check that partitions do not overlap */
if (i > 0 && pt [i - 1].end > p->begin) {
2027b00: c8 00 60 04 ld [ %g1 + 4 ], %g4 <== NOT EXECUTED
2027b04: 80 a0 80 04 cmp %g2, %g4 <== NOT EXECUTED
2027b08: 1a bf ff f0 bcc 2027ac8 <rtems_bdpart_write+0xb8> <== NOT EXECUTED
2027b0c: 82 00 60 30 add %g1, 0x30, %g1 <== NOT EXECUTED
RTEMS_BDPART_MBR_EXTENDED,
0
);
/* Write logical partitions */
for (i = ppc; i < count; ++i) {
2027b10: aa 10 20 0a mov 0xa, %l5 <== NOT EXECUTED
}
}
cleanup:
if (block != NULL) {
2027b14: d0 07 bf f8 ld [ %fp + -8 ], %o0 <== NOT EXECUTED
2027b18: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2027b1c: 02 80 00 04 be 2027b2c <rtems_bdpart_write+0x11c> <== NOT EXECUTED
2027b20: b0 10 00 15 mov %l5, %i0 <== NOT EXECUTED
rtems_bdbuf_sync( block);
2027b24: 7f ff 77 32 call 20057ec <rtems_bdbuf_sync> <== NOT EXECUTED
2027b28: 01 00 00 00 nop <== NOT EXECUTED
}
return esc;
}
2027b2c: 81 c7 e0 08 ret <== NOT EXECUTED
2027b30: 81 e8 00 00 restore <== 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;
2027b34: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2027b38: 02 bf ff bf be 2027a34 <rtems_bdpart_write+0x24> <== NOT EXECUTED
2027b3c: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
rtems_bdbuf_buffer *block = NULL;
rtems_blkdev_bnum disk_end = 0;
2027b40: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
2027b44: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED
2027b48: 10 bf ff be b 2027a40 <rtems_bdpart_write+0x30> <== NOT EXECUTED
2027b4c: a0 10 20 3f mov 0x3f, %l0 <== NOT EXECUTED
return sc;
}
/* Align end of disk on cylinder boundary if necessary */
if (dos_compatibility) {
disk_end -= (disk_end % record_space);
2027b50: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2027b54: 40 00 e6 15 call 20613a8 <.urem> <== NOT EXECUTED
2027b58: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2027b5c: 90 24 80 08 sub %l2, %o0, %o0 <== NOT EXECUTED
2027b60: 10 bf ff cd b 2027a94 <rtems_bdpart_write+0x84> <== NOT EXECUTED
2027b64: d0 27 bf f4 st %o0, [ %fp + -12 ] <== NOT EXECUTED
goto cleanup;
}
}
/* Check format */
if (format->type != RTEMS_BDPART_FORMAT_MBR) {
2027b68: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2027b6c: 12 bf ff ea bne 2027b14 <rtems_bdpart_write+0x104> <== NOT EXECUTED
2027b70: 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;
2027b74: 80 a6 e0 04 cmp %i3, 4 <== NOT EXECUTED
2027b78: 18 80 00 03 bgu 2027b84 <rtems_bdpart_write+0x174> <== NOT EXECUTED
2027b7c: a4 10 20 03 mov 3, %l2 <== NOT EXECUTED
2027b80: a4 10 00 1b mov %i3, %l2 <== 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) {
2027b84: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
2027b88: 02 80 00 06 be 2027ba0 <rtems_bdpart_write+0x190> <== NOT EXECUTED
2027b8c: 80 a4 80 1b cmp %l2, %i3 <== NOT EXECUTED
2027b90: 80 a3 60 3f cmp %o5, 0x3f <== NOT EXECUTED
2027b94: 32 bf ff e0 bne,a 2027b14 <rtems_bdpart_write+0x104> <== NOT EXECUTED
2027b98: aa 10 20 0a mov 0xa, %l5 <== 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) {
2027b9c: 80 a4 80 1b cmp %l2, %i3 <== NOT EXECUTED
2027ba0: 1a 80 00 21 bcc 2027c24 <rtems_bdpart_write+0x214> <== NOT EXECUTED
2027ba4: 89 2c a0 06 sll %l2, 6, %g4 <== NOT EXECUTED
if ((pt [i].begin - pt [i - 1].end) < record_space) {
2027ba8: 84 04 bf ff add %l2, -1, %g2 <== NOT EXECUTED
2027bac: 83 2c a0 04 sll %l2, 4, %g1 <== NOT EXECUTED
2027bb0: 87 28 a0 06 sll %g2, 6, %g3 <== NOT EXECUTED
2027bb4: 82 21 00 01 sub %g4, %g1, %g1 <== NOT EXECUTED
2027bb8: 85 28 a0 04 sll %g2, 4, %g2 <== NOT EXECUTED
2027bbc: c8 06 80 01 ld [ %i2 + %g1 ], %g4 <== NOT EXECUTED
2027bc0: 84 20 c0 02 sub %g3, %g2, %g2 <== NOT EXECUTED
2027bc4: 84 06 80 02 add %i2, %g2, %g2 <== NOT EXECUTED
2027bc8: c4 00 a0 04 ld [ %g2 + 4 ], %g2 <== NOT EXECUTED
2027bcc: 84 21 00 02 sub %g4, %g2, %g2 <== NOT EXECUTED
2027bd0: 80 a4 00 02 cmp %l0, %g2 <== NOT EXECUTED
2027bd4: 18 bf ff cf bgu 2027b10 <rtems_bdpart_write+0x100> <== NOT EXECUTED
2027bd8: 82 06 80 01 add %i2, %g1, %g1 <== NOT EXECUTED
2027bdc: 86 00 60 04 add %g1, 4, %g3 <== NOT EXECUTED
2027be0: 82 04 a0 01 add %l2, 1, %g1 <== NOT EXECUTED
2027be4: 85 28 60 06 sll %g1, 6, %g2 <== NOT EXECUTED
2027be8: 83 28 60 04 sll %g1, 4, %g1 <== NOT EXECUTED
2027bec: 84 20 80 01 sub %g2, %g1, %g2 <== NOT EXECUTED
2027bf0: 82 10 00 12 mov %l2, %g1 <== NOT EXECUTED
2027bf4: 10 80 00 08 b 2027c14 <rtems_bdpart_write+0x204> <== NOT EXECUTED
2027bf8: 84 06 80 02 add %i2, %g2, %g2 <== NOT EXECUTED
2027bfc: c8 00 c0 00 ld [ %g3 ], %g4 <== NOT EXECUTED
2027c00: 84 00 a0 30 add %g2, 0x30, %g2 <== NOT EXECUTED
2027c04: 88 23 40 04 sub %o5, %g4, %g4 <== NOT EXECUTED
2027c08: 80 a4 00 04 cmp %l0, %g4 <== NOT EXECUTED
2027c0c: 18 bf ff c1 bgu 2027b10 <rtems_bdpart_write+0x100> <== NOT EXECUTED
2027c10: 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) {
2027c14: 82 00 60 01 inc %g1 <== NOT EXECUTED
2027c18: 80 a6 c0 01 cmp %i3, %g1 <== NOT EXECUTED
2027c1c: 38 bf ff f8 bgu,a 2027bfc <rtems_bdpart_write+0x1ec> <== NOT EXECUTED
2027c20: da 00 80 00 ld [ %g2 ], %o5 <== NOT EXECUTED
2027c24: a6 10 00 1a mov %i2, %l3 <== NOT EXECUTED
2027c28: a8 10 20 00 clr %l4 <== NOT EXECUTED
2027c2c: 10 80 00 0c b 2027c5c <rtems_bdpart_write+0x24c> <== NOT EXECUTED
2027c30: aa 07 bf ff add %fp, -1, %l5 <== NOT EXECUTED
esc = RTEMS_INVALID_ID;
goto cleanup;
}
/* Check flags */
if (p->flags > 0xffU) {
2027c34: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2027c38: 32 bf ff b7 bne,a 2027b14 <rtems_bdpart_write+0x104> <== NOT EXECUTED
2027c3c: aa 10 20 04 mov 4, %l5 <== NOT EXECUTED
2027c40: c2 04 e0 2c ld [ %l3 + 0x2c ], %g1 <== NOT EXECUTED
2027c44: 80 a0 60 ff cmp %g1, 0xff <== NOT EXECUTED
2027c48: 18 80 00 0d bgu 2027c7c <rtems_bdpart_write+0x26c> <== NOT EXECUTED
2027c4c: a6 04 e0 30 add %l3, 0x30, %l3 <== NOT EXECUTED
goto cleanup;
}
}
/* Check that we can convert the parition descriptions to the MBR format */
for (i = 0; i < count; ++i) {
2027c50: 80 a6 c0 14 cmp %i3, %l4 <== NOT EXECUTED
2027c54: 08 80 00 0c bleu 2027c84 <rtems_bdpart_write+0x274> <== NOT EXECUTED
2027c58: d0 1f bf e8 ldd [ %fp + -24 ], %o0 <== NOT EXECUTED
uint8_t type = 0;
2027c5c: c0 2f bf ff clrb [ %fp + -1 ] <== NOT EXECUTED
const rtems_bdpart_partition *p = pt + i;
/* Check type */
if (!rtems_bdpart_to_mbr_partition_type( p->type, &type)) {
2027c60: 90 04 e0 08 add %l3, 8, %o0 <== NOT EXECUTED
2027c64: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
2027c68: 7f ff fe 36 call 2027540 <rtems_bdpart_to_mbr_partition_type><== NOT EXECUTED
2027c6c: a8 05 20 01 inc %l4 <== NOT EXECUTED
2027c70: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED
2027c74: 32 bf ff f0 bne,a 2027c34 <rtems_bdpart_write+0x224> <== NOT EXECUTED
2027c78: c2 04 e0 28 ld [ %l3 + 0x28 ], %g1 <== NOT EXECUTED
RTEMS_BDPART_MBR_EXTENDED,
0
);
/* Write logical partitions */
for (i = ppc; i < count; ++i) {
2027c7c: 10 bf ff a6 b 2027b14 <rtems_bdpart_write+0x104> <== NOT EXECUTED
2027c80: aa 10 20 04 mov 4, %l5 <== NOT EXECUTED
/* Check ID */
/* TODO */
}
/* New MBR */
sc = rtems_bdpart_new_record( disk, 0, &block);
2027c84: a8 07 bf f8 add %fp, -8, %l4 <== NOT EXECUTED
2027c88: 94 10 20 00 clr %o2 <== NOT EXECUTED
2027c8c: 7f ff ff 3b call 2027978 <rtems_bdpart_new_record> <== NOT EXECUTED
2027c90: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2027c94: aa 92 20 00 orcc %o0, 0, %l5 <== NOT EXECUTED
2027c98: 12 bf ff a0 bne 2027b18 <rtems_bdpart_write+0x108> <== NOT EXECUTED
2027c9c: d0 07 bf f8 ld [ %fp + -8 ], %o0 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Write disk ID */
rtems_uint32_to_little_endian(
2027ca0: c4 07 bf f8 ld [ %fp + -8 ], %g2 <== NOT EXECUTED
2027ca4: c2 06 60 04 ld [ %i1 + 4 ], %g1 <== NOT EXECUTED
2027ca8: 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;
2027cac: 87 30 60 18 srl %g1, 0x18, %g3 <== NOT EXECUTED
2027cb0: c2 28 a1 b8 stb %g1, [ %g2 + 0x1b8 ] <== NOT EXECUTED
2027cb4: 84 00 a1 b8 add %g2, 0x1b8, %g2 <== NOT EXECUTED
2027cb8: c6 28 a0 03 stb %g3, [ %g2 + 3 ] <== NOT EXECUTED
value >>= 8;
2027cbc: 87 30 60 08 srl %g1, 8, %g3 <== NOT EXECUTED
2027cc0: 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;
2027cc4: c6 28 a0 01 stb %g3, [ %g2 + 1 ] <== NOT EXECUTED
2027cc8: 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;
2027ccc: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
2027cd0: 88 10 20 00 clr %g4 <== NOT EXECUTED
2027cd4: d6 00 60 24 ld [ %g1 + 0x24 ], %o3 <== NOT EXECUTED
2027cd8: 96 02 e1 be add %o3, 0x1be, %o3 <== NOT EXECUTED
2027cdc: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED
for (i = 0; i < ppc; ++i) {
const rtems_bdpart_partition *p = pt + i;
/* Write partition entry */
rtems_bdpart_write_mbr_partition(
2027ce0: c4 1c 40 00 ldd [ %l1 ], %g2 <== NOT EXECUTED
data,
p->begin,
p->end - p->begin,
rtems_bdpart_mbr_partition_type( p->type),
(uint8_t) p->flags
2027ce4: da 04 60 2c ld [ %l1 + 0x2c ], %o5 <== NOT EXECUTED
static inline uint8_t rtems_bdpart_mbr_partition_type(
const uuid_t type
)
{
return type [0];
2027ce8: d8 0c 60 08 ldub [ %l1 + 8 ], %o4 <== 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(
2027cec: 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;
2027cf0: da 28 40 00 stb %o5, [ %g1 ] <== NOT EXECUTED
2027cf4: 9b 30 e0 18 srl %g3, 0x18, %o5 <== NOT EXECUTED
2027cf8: da 28 60 0f stb %o5, [ %g1 + 0xf ] <== NOT EXECUTED
value >>= 8;
2027cfc: 9b 30 a0 08 srl %g2, 8, %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;
2027d00: c4 28 60 08 stb %g2, [ %g1 + 8 ] <== NOT EXECUTED
2027d04: da 28 60 09 stb %o5, [ %g1 + 9 ] <== NOT EXECUTED
value >>= 8;
2027d08: 9b 30 a0 10 srl %g2, 0x10, %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;
2027d0c: 85 30 a0 18 srl %g2, 0x18, %g2 <== NOT EXECUTED
2027d10: c6 28 60 0c stb %g3, [ %g1 + 0xc ] <== NOT EXECUTED
2027d14: 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;
2027d18: d8 28 60 04 stb %o4, [ %g1 + 4 ] <== NOT EXECUTED
value >>= 8;
2027d1c: 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;
2027d20: da 28 60 0a stb %o5, [ %g1 + 0xa ] <== NOT EXECUTED
2027d24: c4 28 60 0d stb %g2, [ %g1 + 0xd ] <== NOT EXECUTED
value >>= 8;
2027d28: 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;
2027d2c: c6 28 60 0e stb %g3, [ %g1 + 0xe ] <== 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) {
2027d30: 88 01 20 01 inc %g4 <== NOT EXECUTED
p->end - p->begin,
rtems_bdpart_mbr_partition_type( p->type),
(uint8_t) p->flags
);
data += RTEMS_BDPART_MBR_TABLE_ENTRY_SIZE;
2027d34: 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) {
2027d38: 80 a4 80 04 cmp %l2, %g4 <== NOT EXECUTED
2027d3c: 18 bf ff e9 bgu 2027ce0 <rtems_bdpart_write+0x2d0> <== NOT EXECUTED
2027d40: a2 04 60 30 add %l1, 0x30, %l1 <== NOT EXECUTED
2027d44: 87 2c a0 04 sll %l2, 4, %g3 <== NOT EXECUTED
data += RTEMS_BDPART_MBR_TABLE_ENTRY_SIZE;
}
/* Write extended partition with logical partitions if necessary */
if (ppc != count) {
2027d48: 80 a4 80 1b cmp %l2, %i3 <== NOT EXECUTED
2027d4c: 02 80 00 67 be 2027ee8 <rtems_bdpart_write+0x4d8> <== NOT EXECUTED
2027d50: 82 02 c0 03 add %o3, %g3, %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;
2027d54: a3 2c a0 06 sll %l2, 6, %l1 <== NOT EXECUTED
2027d58: a2 24 40 03 sub %l1, %g3, %l1 <== NOT EXECUTED
2027d5c: e6 06 80 11 ld [ %i2 + %l1 ], %l3 <== NOT EXECUTED
/* Write extended partition */
rtems_bdpart_write_mbr_partition(
2027d60: 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;
2027d64: a6 24 c0 10 sub %l3, %l0, %l3 <== NOT EXECUTED
2027d68: e6 28 60 08 stb %l3, [ %g1 + 8 ] <== NOT EXECUTED
value >>= 8;
2027d6c: 9b 34 e0 08 srl %l3, 8, %o5 <== NOT EXECUTED
uint32_t size,
uint8_t type,
uint8_t flags
)
{
rtems_uint32_to_little_endian( begin, data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
2027d70: 88 00 60 08 add %g1, 8, %g4 <== 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;
2027d74: da 29 20 01 stb %o5, [ %g4 + 1 ] <== NOT EXECUTED
value >>= 8;
2027d78: 9b 34 e0 10 srl %l3, 0x10, %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;
2027d7c: da 29 20 02 stb %o5, [ %g4 + 2 ] <== NOT EXECUTED
2027d80: 9b 34 e0 18 srl %l3, 0x18, %o5 <== NOT EXECUTED
2027d84: da 29 20 03 stb %o5, [ %g4 + 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(
2027d88: 84 20 80 13 sub %g2, %l3, %g2 <== NOT EXECUTED
2027d8c: c4 28 60 0c stb %g2, [ %g1 + 0xc ] <== NOT EXECUTED
2027d90: 9b 30 a0 18 srl %g2, 0x18, %o5 <== 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);
2027d94: 88 00 60 0c add %g1, 0xc, %g4 <== NOT EXECUTED
2027d98: da 29 20 03 stb %o5, [ %g4 + 3 ] <== NOT EXECUTED
value >>= 8;
2027d9c: 9b 30 a0 08 srl %g2, 8, %o5 <== NOT EXECUTED
2027da0: 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;
2027da4: da 29 20 01 stb %o5, [ %g4 + 1 ] <== NOT EXECUTED
2027da8: c4 29 20 02 stb %g2, [ %g4 + 2 ] <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;
2027dac: 84 10 20 05 mov 5, %g2 <== NOT EXECUTED
2027db0: c4 28 60 04 stb %g2, [ %g1 + 4 ] <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;
2027db4: c0 2a c0 03 clrb [ %o3 + %g3 ] <== NOT EXECUTED
RTEMS_BDPART_MBR_EXTENDED,
0
);
/* Write logical partitions */
for (i = ppc; i < count; ++i) {
2027db8: 80 a4 80 1b cmp %l2, %i3 <== NOT EXECUTED
2027dbc: 1a 80 00 4b bcc 2027ee8 <rtems_bdpart_write+0x4d8> <== NOT EXECUTED
2027dc0: a2 06 80 11 add %i2, %l1, %l1 <== 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;
2027dc4: 82 04 a0 01 add %l2, 1, %g1 <== NOT EXECUTED
2027dc8: b2 10 00 12 mov %l2, %i1 <== NOT EXECUTED
2027dcc: 85 28 60 06 sll %g1, 6, %g2 <== 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;
2027dd0: aa 10 20 05 mov 5, %l5 <== 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;
2027dd4: 83 28 60 04 sll %g1, 4, %g1 <== NOT EXECUTED
2027dd8: 82 20 80 01 sub %g2, %g1, %g1 <== NOT EXECUTED
2027ddc: b4 06 80 01 add %i2, %g1, %i2 <== NOT EXECUTED
);
}
/* New EBR */
ebr = p->begin - record_space;
sc = rtems_bdpart_new_record( disk, ebr, &block);
2027de0: d4 04 40 00 ld [ %l1 ], %o2 <== NOT EXECUTED
2027de4: d0 1f bf e8 ldd [ %fp + -24 ], %o0 <== NOT EXECUTED
2027de8: 94 22 80 10 sub %o2, %l0, %o2 <== NOT EXECUTED
2027dec: 7f ff fe e3 call 2027978 <rtems_bdpart_new_record> <== NOT EXECUTED
2027df0: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2027df4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2027df8: 12 80 00 3e bne 2027ef0 <rtems_bdpart_write+0x4e0> <== NOT EXECUTED
2027dfc: 84 10 00 10 mov %l0, %g2 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Write first partition entry */
rtems_bdpart_write_mbr_partition(
2027e00: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== 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
2027e04: d8 04 60 2c ld [ %l1 + 0x2c ], %o4 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Write first partition entry */
rtems_bdpart_write_mbr_partition(
2027e08: c8 00 60 24 ld [ %g1 + 0x24 ], %g4 <== NOT EXECUTED
2027e0c: d2 04 60 04 ld [ %l1 + 4 ], %o1 <== NOT EXECUTED
2027e10: d4 04 40 00 ld [ %l1 ], %o2 <== NOT EXECUTED
2027e14: d6 0c 60 08 ldub [ %l1 + 8 ], %o3 <== 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
2027e18: 82 10 00 04 mov %g4, %g1 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Write first partition entry */
rtems_bdpart_write_mbr_partition(
2027e1c: 9a 01 21 be add %g4, 0x1be, %o5 <== NOT EXECUTED
RTEMS_BDPART_MBR_SIGNATURE_1;
return RTEMS_SUCCESSFUL;
}
rtems_status_code rtems_bdpart_write(
2027e20: 86 01 20 04 add %g4, 4, %g3 <== NOT EXECUTED
2027e24: c4 28 61 c6 stb %g2, [ %g1 + 0x1c6 ] <== NOT EXECUTED
2027e28: 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) {
2027e2c: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
2027e30: 12 bf ff fd bne 2027e24 <rtems_bdpart_write+0x414> <== NOT EXECUTED
2027e34: 84 10 20 00 clr %g2 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Write first partition entry */
rtems_bdpart_write_mbr_partition(
2027e38: 82 22 40 0a sub %o1, %o2, %g1 <== NOT EXECUTED
data [i] = (uint8_t) value;
2027e3c: c2 2b 60 0c stb %g1, [ %o5 + 0xc ] <== NOT EXECUTED
2027e40: 87 30 60 18 srl %g1, 0x18, %g3 <== 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);
2027e44: 84 03 60 0c add %o5, 0xc, %g2 <== NOT EXECUTED
2027e48: c6 28 a0 03 stb %g3, [ %g2 + 3 ] <== NOT EXECUTED
value >>= 8;
2027e4c: 87 30 60 08 srl %g1, 8, %g3 <== NOT EXECUTED
2027e50: 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;
2027e54: c6 28 a0 01 stb %g3, [ %g2 + 1 ] <== NOT EXECUTED
2027e58: c2 28 a0 02 stb %g1, [ %g2 + 2 ] <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;
2027e5c: d6 2b 60 04 stb %o3, [ %o5 + 4 ] <== NOT EXECUTED
RTEMS_BDPART_MBR_EXTENDED,
0
);
/* Write logical partitions */
for (i = ppc; i < count; ++i) {
2027e60: b2 06 60 01 inc %i1 <== NOT EXECUTED
2027e64: 80 a6 c0 19 cmp %i3, %i1 <== NOT EXECUTED
2027e68: 08 80 00 20 bleu 2027ee8 <rtems_bdpart_write+0x4d8> <== NOT EXECUTED
2027e6c: d8 29 21 be stb %o4, [ %g4 + 0x1be ] <== NOT EXECUTED
const rtems_bdpart_partition *p = pt + i;
/* Write second partition entry */
if (i > ppc) {
2027e70: 80 a4 80 19 cmp %l2, %i1 <== NOT EXECUTED
2027e74: 1a 80 00 1b bcc 2027ee0 <rtems_bdpart_write+0x4d0> <== NOT EXECUTED
2027e78: a2 10 00 1a mov %i2, %l1 <== NOT EXECUTED
rtems_blkdev_bnum begin = p->begin - record_space;
rtems_bdpart_write_mbr_partition(
2027e7c: 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;
2027e80: c4 06 80 00 ld [ %i2 ], %g2 <== NOT EXECUTED
rtems_bdpart_write_mbr_partition(
2027e84: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
2027e88: 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;
2027e8c: 84 20 80 10 sub %g2, %l0, %g2 <== NOT EXECUTED
rtems_bdpart_write_mbr_partition(
2027e90: 86 20 80 13 sub %g2, %l3, %g3 <== NOT EXECUTED
2027e94: c6 28 61 d6 stb %g3, [ %g1 + 0x1d6 ] <== NOT EXECUTED
2027e98: 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);
2027e9c: 88 00 61 d6 add %g1, 0x1d6, %g4 <== NOT EXECUTED
2027ea0: d8 29 20 03 stb %o4, [ %g4 + 3 ] <== NOT EXECUTED
value >>= 8;
2027ea4: 99 30 e0 08 srl %g3, 8, %o4 <== NOT EXECUTED
2027ea8: 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;
2027eac: d8 29 20 01 stb %o4, [ %g4 + 1 ] <== NOT EXECUTED
2027eb0: 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(
2027eb4: 84 23 40 02 sub %o5, %g2, %g2 <== NOT EXECUTED
2027eb8: c4 28 61 da stb %g2, [ %g1 + 0x1da ] <== NOT EXECUTED
2027ebc: 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);
2027ec0: 86 00 61 da add %g1, 0x1da, %g3 <== NOT EXECUTED
2027ec4: c8 28 e0 03 stb %g4, [ %g3 + 3 ] <== NOT EXECUTED
value >>= 8;
2027ec8: 89 30 a0 08 srl %g2, 8, %g4 <== NOT EXECUTED
2027ecc: 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;
2027ed0: c8 28 e0 01 stb %g4, [ %g3 + 1 ] <== NOT EXECUTED
2027ed4: c4 28 e0 02 stb %g2, [ %g3 + 2 ] <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;
data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;
2027ed8: 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;
2027edc: ea 28 61 d2 stb %l5, [ %g1 + 0x1d2 ] <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;
2027ee0: 10 bf ff c0 b 2027de0 <rtems_bdpart_write+0x3d0> <== NOT EXECUTED
2027ee4: b4 06 a0 30 add %i2, 0x30, %i2 <== NOT EXECUTED
RTEMS_BDPART_MBR_EXTENDED,
0
);
/* Write logical partitions */
for (i = ppc; i < count; ++i) {
2027ee8: 10 bf ff 0b b 2027b14 <rtems_bdpart_write+0x104> <== NOT EXECUTED
2027eec: aa 10 20 00 clr %l5 <== NOT EXECUTED
}
/* New EBR */
ebr = p->begin - record_space;
sc = rtems_bdpart_new_record( disk, ebr, &block);
if (sc != RTEMS_SUCCESSFUL) {
2027ef0: 10 bf ff 09 b 2027b14 <rtems_bdpart_write+0x104> <== NOT EXECUTED
2027ef4: aa 10 00 08 mov %o0, %l5 <== NOT EXECUTED
0200e8f0 <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)
{
200e8f0: 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;
200e8f4: c2 06 80 00 ld [ %i2 ], %g1
int rc;
switch (args->command)
200e8f8: d2 06 a0 04 ld [ %i2 + 4 ], %o1
200e8fc: 07 10 01 10 sethi %hi(0x40044000), %g3
200e900: 84 10 e2 03 or %g3, 0x203, %g2 ! 40044203 <RAM_END+0x3dc44203>
200e904: 80 a2 40 02 cmp %o1, %g2
200e908: 02 80 00 3d be 200e9fc <rtems_blkdev_generic_ioctl+0x10c> <== NEVER TAKEN
200e90c: c2 00 60 38 ld [ %g1 + 0x38 ], %g1
200e910: 80 a2 40 02 cmp %o1, %g2
200e914: 08 80 00 16 bleu 200e96c <rtems_blkdev_generic_ioctl+0x7c><== NEVER TAKEN
200e918: 05 08 00 10 sethi %hi(0x20004000), %g2
200e91c: 05 20 01 10 sethi %hi(0x80044000), %g2
200e920: 84 10 a2 04 or %g2, 0x204, %g2 ! 80044204 <RAM_END+0x7dc44204>
200e924: 80 a2 40 02 cmp %o1, %g2
200e928: 02 80 00 22 be 200e9b0 <rtems_blkdev_generic_ioctl+0xc0> <== ALWAYS TAKEN
200e92c: 05 30 06 10 sethi %hi(0xc0184000), %g2
200e930: 84 10 a2 01 or %g2, 0x201, %g2 ! c0184201 <RAM_END+0xbdd84201><== NOT EXECUTED
200e934: 80 a2 40 02 cmp %o1, %g2 <== NOT EXECUTED
200e938: 02 80 00 1a be 200e9a0 <rtems_blkdev_generic_ioctl+0xb0> <== NOT EXECUTED
200e93c: 86 10 e2 05 or %g3, 0x205, %g3 <== NOT EXECUTED
200e940: 80 a2 40 03 cmp %o1, %g3 <== NOT EXECUTED
200e944: 22 80 00 21 be,a 200e9c8 <rtems_blkdev_generic_ioctl+0xd8><== NOT EXECUTED
200e948: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 <== NOT EXECUTED
*/
args->ioctl_return = (uint32_t) -1;
break;
default:
args->ioctl_return = (uint32_t) dd->ioctl(dd->phys_dev,
200e94c: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED
200e950: d4 06 a0 08 ld [ %i2 + 8 ], %o2 <== NOT EXECUTED
200e954: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 <== NOT EXECUTED
200e958: 9f c0 40 00 call %g1 <== NOT EXECUTED
200e95c: b0 10 20 00 clr %i0 <== NOT EXECUTED
200e960: d0 26 a0 0c st %o0, [ %i2 + 0xc ] <== NOT EXECUTED
args->buffer);
break;
}
return RTEMS_SUCCESSFUL;
}
200e964: 81 c7 e0 08 ret <== NOT EXECUTED
200e968: 81 e8 00 00 restore <== 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)
200e96c: 84 10 a2 06 or %g2, 0x206, %g2 <== NOT EXECUTED
200e970: 80 a2 40 02 cmp %o1, %g2 <== NOT EXECUTED
200e974: 02 80 00 1a be 200e9dc <rtems_blkdev_generic_ioctl+0xec> <== NOT EXECUTED
200e978: 86 10 e2 02 or %g3, 0x202, %g3 <== NOT EXECUTED
200e97c: 80 a2 40 03 cmp %o1, %g3 <== NOT EXECUTED
200e980: 32 bf ff f4 bne,a 200e950 <rtems_blkdev_generic_ioctl+0x60><== NOT EXECUTED
200e984: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED
{
case RTEMS_BLKIO_GETMEDIABLKSIZE:
*((uint32_t *) args->buffer) = dd->media_block_size;
200e988: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 <== NOT EXECUTED
200e98c: c2 06 a0 08 ld [ %i2 + 8 ], %g1 <== NOT EXECUTED
200e990: c4 20 40 00 st %g2, [ %g1 ] <== NOT EXECUTED
args->ioctl_return = 0;
200e994: c0 26 a0 0c clr [ %i2 + 0xc ] <== NOT EXECUTED
args->buffer);
break;
}
return RTEMS_SUCCESSFUL;
}
200e998: 81 c7 e0 08 ret <== NOT EXECUTED
200e99c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
case RTEMS_BLKIO_REQUEST:
/*
* It is not allowed to directly access the driver circumventing
* the cache.
*/
args->ioctl_return = (uint32_t) -1;
200e9a0: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
200e9a4: c2 26 a0 0c st %g1, [ %i2 + 0xc ] <== NOT EXECUTED
args->buffer);
break;
}
return RTEMS_SUCCESSFUL;
}
200e9a8: 81 c7 e0 08 ret <== NOT EXECUTED
200e9ac: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
*((uint32_t *) args->buffer) = dd->block_size;
args->ioctl_return = 0;
break;
case RTEMS_BLKIO_SETBLKSIZE:
dd->block_size = *((uint32_t *) args->buffer);
200e9b0: c4 06 a0 08 ld [ %i2 + 8 ], %g2
200e9b4: c4 00 80 00 ld [ %g2 ], %g2
200e9b8: c4 20 60 20 st %g2, [ %g1 + 0x20 ]
args->ioctl_return = 0;
200e9bc: c0 26 a0 0c clr [ %i2 + 0xc ]
args->buffer);
break;
}
return RTEMS_SUCCESSFUL;
}
200e9c0: 81 c7 e0 08 ret
200e9c4: 91 e8 20 00 restore %g0, 0, %o0
dd->block_size = *((uint32_t *) args->buffer);
args->ioctl_return = 0;
break;
case RTEMS_BLKIO_GETSIZE:
*((rtems_blkdev_bnum *) args->buffer) = dd->size;
200e9c8: c2 06 a0 08 ld [ %i2 + 8 ], %g1 <== NOT EXECUTED
200e9cc: c4 20 40 00 st %g2, [ %g1 ] <== NOT EXECUTED
args->ioctl_return = 0;
200e9d0: c0 26 a0 0c clr [ %i2 + 0xc ] <== NOT EXECUTED
args->buffer);
break;
}
return RTEMS_SUCCESSFUL;
}
200e9d4: 81 c7 e0 08 ret <== NOT EXECUTED
200e9d8: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
*((rtems_blkdev_bnum *) args->buffer) = dd->size;
args->ioctl_return = 0;
break;
case RTEMS_BLKIO_SYNCDEV:
rc = rtems_bdbuf_syncdev(dd->dev);
200e9dc: d0 18 40 00 ldd [ %g1 ], %o0 <== NOT EXECUTED
200e9e0: 7f ff f7 29 call 200c684 <rtems_bdbuf_syncdev> <== NOT EXECUTED
200e9e4: b0 10 20 00 clr %i0 <== NOT EXECUTED
args->ioctl_return = (uint32_t) (rc == RTEMS_SUCCESSFUL ? 0 : -1);
200e9e8: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
200e9ec: 82 60 20 00 subx %g0, 0, %g1 <== NOT EXECUTED
200e9f0: c2 26 a0 0c st %g1, [ %i2 + 0xc ] <== NOT EXECUTED
args->buffer);
break;
}
return RTEMS_SUCCESSFUL;
}
200e9f4: 81 c7 e0 08 ret <== NOT EXECUTED
200e9f8: 81 e8 00 00 restore <== 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;
200e9fc: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 <== NOT EXECUTED
200ea00: c2 06 a0 08 ld [ %i2 + 8 ], %g1 <== NOT EXECUTED
200ea04: c4 20 40 00 st %g2, [ %g1 ] <== NOT EXECUTED
args->ioctl_return = 0;
200ea08: c0 26 a0 0c clr [ %i2 + 0xc ] <== NOT EXECUTED
args->buffer);
break;
}
return RTEMS_SUCCESSFUL;
}
200ea0c: 81 c7 e0 08 ret <== NOT EXECUTED
200ea10: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
0200eb70 <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)
{
200eb70: 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;
200eb74: 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;
200eb78: e0 06 a0 14 ld [ %i2 + 0x14 ], %l0 <== 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;
200eb7c: c2 00 60 38 ld [ %g1 + 0x38 ], %g1 <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
dev_t dev = dd->dev;
args->bytes_moved = 0;
while (count > 0)
200eb80: 80 a4 20 00 cmp %l0, 0 <== 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;
200eb84: e8 00 60 20 ld [ %g1 + 0x20 ], %l4 <== NOT EXECUTED
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;
args->bytes_moved = 0;
200eb88: c0 26 a0 1c clr [ %i2 + 0x1c ] <== 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;
200eb8c: ec 18 40 00 ldd [ %g1 ], %l6 <== 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;
char *buf = args->buffer;
200eb90: e2 06 a0 10 ld [ %i2 + 0x10 ], %l1 <== NOT EXECUTED
uint32_t count = args->count;
rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
200eb94: f8 1e a0 08 ldd [ %i2 + 8 ], %i4 <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
dev_t dev = dd->dev;
args->bytes_moved = 0;
while (count > 0)
200eb98: 02 80 00 2f be 200ec54 <rtems_blkdev_generic_read+0xe4> <== NOT EXECUTED
200eb9c: b0 10 20 00 clr %i0 <== 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);
200eba0: 94 10 20 00 clr %o2 <== NOT EXECUTED
200eba4: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
200eba8: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
200ebac: 40 00 3d 1f call 201e028 <__divdi3> <== NOT EXECUTED
200ebb0: 92 10 00 1d mov %i5, %o1 <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
200ebb4: 90 10 00 1c mov %i4, %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);
200ebb8: a4 10 00 09 mov %o1, %l2 <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
200ebbc: 94 10 20 00 clr %o2 <== NOT EXECUTED
200ebc0: 92 10 00 1d mov %i5, %o1 <== NOT EXECUTED
200ebc4: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
200ebc8: 40 00 3d ff call 201e3c4 <__moddi3> <== NOT EXECUTED
200ebcc: aa 07 bf fc add %fp, -4, %l5 <== NOT EXECUTED
200ebd0: 10 80 00 18 b 200ec30 <rtems_blkdev_generic_read+0xc0> <== NOT EXECUTED
200ebd4: a6 10 00 09 mov %o1, %l3 <== NOT EXECUTED
uint32_t copy;
rc = rtems_bdbuf_read(dev, block, &diskbuf);
if (rc != RTEMS_SUCCESSFUL)
break;
copy = block_size - blkofs;
200ebd8: b8 25 00 13 sub %l4, %l3, %i4 <== NOT EXECUTED
if (copy > count)
copy = count;
memcpy(buf, (char *)diskbuf->buffer + blkofs, copy);
200ebdc: 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;
200ebe0: 80 a7 00 10 cmp %i4, %l0 <== NOT EXECUTED
200ebe4: 08 80 00 03 bleu 200ebf0 <rtems_blkdev_generic_read+0x80> <== NOT EXECUTED
200ebe8: a4 04 a0 01 inc %l2 <== NOT EXECUTED
200ebec: b8 10 00 10 mov %l0, %i4 <== NOT EXECUTED
if (copy > count)
copy = count;
memcpy(buf, (char *)diskbuf->buffer + blkofs, copy);
200ebf0: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
200ebf4: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
200ebf8: 40 00 18 db call 2014f64 <memcpy> <== NOT EXECUTED
200ebfc: 92 02 40 13 add %o1, %l3, %o1 <== NOT EXECUTED
rc = rtems_bdbuf_release(diskbuf);
200ec00: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
200ec04: 7f ff f9 81 call 200d208 <rtems_bdbuf_release> <== NOT EXECUTED
200ec08: a2 04 40 1c add %l1, %i4, %l1 <== NOT EXECUTED
args->bytes_moved += copy;
200ec0c: 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);
200ec10: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
args->bytes_moved += copy;
200ec14: 82 00 40 1c add %g1, %i4, %g1 <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
200ec18: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200ec1c: 12 80 00 0e bne 200ec54 <rtems_blkdev_generic_read+0xe4> <== NOT EXECUTED
200ec20: c2 26 a0 1c st %g1, [ %i2 + 0x1c ] <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
dev_t dev = dd->dev;
args->bytes_moved = 0;
while (count > 0)
200ec24: a0 a4 00 1c subcc %l0, %i4, %l0 <== NOT EXECUTED
200ec28: 02 80 00 0b be 200ec54 <rtems_blkdev_generic_read+0xe4> <== NOT EXECUTED
200ec2c: a6 10 20 00 clr %l3 <== NOT EXECUTED
{
rtems_bdbuf_buffer *diskbuf;
uint32_t copy;
rc = rtems_bdbuf_read(dev, block, &diskbuf);
200ec30: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
200ec34: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
200ec38: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
200ec3c: 7f ff fe 4e call 200e574 <rtems_bdbuf_read> <== NOT EXECUTED
200ec40: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
200ec44: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
200ec48: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
200ec4c: 02 bf ff e3 be 200ebd8 <rtems_blkdev_generic_read+0x68> <== NOT EXECUTED
200ec50: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
blkofs = 0;
block++;
}
return rc;
}
200ec54: 81 c7 e0 08 ret <== NOT EXECUTED
200ec58: 81 e8 00 00 restore <== NOT EXECUTED
0200ea5c <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)
{
200ea5c: 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;
200ea60: 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;
200ea64: e0 06 a0 14 ld [ %i2 + 0x14 ], %l0 <== 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;
200ea68: c2 00 60 38 ld [ %g1 + 0x38 ], %g1 <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
dev_t dev = dd->dev;
args->bytes_moved = 0;
while (count > 0)
200ea6c: 80 a4 20 00 cmp %l0, 0 <== 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;
200ea70: e8 00 60 20 ld [ %g1 + 0x20 ], %l4 <== NOT EXECUTED
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;
args->bytes_moved = 0;
200ea74: c0 26 a0 1c clr [ %i2 + 0x1c ] <== 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;
200ea78: ec 18 40 00 ldd [ %g1 ], %l6 <== 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;
char *buf = args->buffer;
200ea7c: e4 06 a0 10 ld [ %i2 + 0x10 ], %l2 <== NOT EXECUTED
uint32_t count = args->count;
rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
200ea80: f8 1e a0 08 ldd [ %i2 + 8 ], %i4 <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
dev_t dev = dd->dev;
args->bytes_moved = 0;
while (count > 0)
200ea84: 02 80 00 39 be 200eb68 <rtems_blkdev_generic_write+0x10c> <== NOT EXECUTED
200ea88: 90 10 20 00 clr %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);
200ea8c: 94 10 20 00 clr %o2 <== NOT EXECUTED
200ea90: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
200ea94: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
200ea98: 40 00 3d 64 call 201e028 <__divdi3> <== NOT EXECUTED
200ea9c: 92 10 00 1d mov %i5, %o1 <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
200eaa0: 90 10 00 1c mov %i4, %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);
200eaa4: a6 10 00 09 mov %o1, %l3 <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
200eaa8: 94 10 20 00 clr %o2 <== NOT EXECUTED
200eaac: 92 10 00 1d mov %i5, %o1 <== NOT EXECUTED
200eab0: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
200eab4: 40 00 3e 44 call 201e3c4 <__moddi3> <== NOT EXECUTED
200eab8: aa 07 bf fc add %fp, -4, %l5 <== NOT EXECUTED
200eabc: 10 80 00 20 b 200eb3c <rtems_blkdev_generic_write+0xe0> <== NOT EXECUTED
200eac0: a2 10 00 09 mov %o1, %l1 <== NOT EXECUTED
while (count > 0)
{
rtems_bdbuf_buffer *diskbuf;
uint32_t copy;
if ((blkofs == 0) && (count >= block_size))
200eac4: 12 80 00 22 bne 200eb4c <rtems_blkdev_generic_write+0xf0> <== NOT EXECUTED
200eac8: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
rc = rtems_bdbuf_get(dev, block, &diskbuf);
200eacc: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
200ead0: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
200ead4: 7f ff fe 73 call 200e4a0 <rtems_bdbuf_get> <== NOT EXECUTED
200ead8: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
else
rc = rtems_bdbuf_read(dev, block, &diskbuf);
if (rc != RTEMS_SUCCESSFUL)
200eadc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200eae0: 12 80 00 22 bne 200eb68 <rtems_blkdev_generic_write+0x10c><== NOT EXECUTED
200eae4: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
break;
copy = block_size - blkofs;
200eae8: b8 25 00 11 sub %l4, %l1, %i4 <== NOT EXECUTED
if (copy > count)
copy = count;
memcpy((char *)diskbuf->buffer + blkofs, buf, copy);
200eaec: 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;
200eaf0: 80 a7 00 10 cmp %i4, %l0 <== NOT EXECUTED
200eaf4: 08 80 00 03 bleu 200eb00 <rtems_blkdev_generic_write+0xa4><== NOT EXECUTED
200eaf8: a6 04 e0 01 inc %l3 <== NOT EXECUTED
200eafc: b8 10 00 10 mov %l0, %i4 <== NOT EXECUTED
if (copy > count)
copy = count;
memcpy((char *)diskbuf->buffer + blkofs, buf, copy);
200eb00: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
200eb04: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
200eb08: 40 00 19 17 call 2014f64 <memcpy> <== NOT EXECUTED
200eb0c: 90 02 00 11 add %o0, %l1, %o0 <== NOT EXECUTED
args->bytes_moved += copy;
200eb10: c2 06 a0 1c ld [ %i2 + 0x1c ], %g1 <== NOT EXECUTED
rc = rtems_bdbuf_release_modified(diskbuf);
200eb14: 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;
200eb18: 82 00 40 1c add %g1, %i4, %g1 <== NOT EXECUTED
rc = rtems_bdbuf_release_modified(diskbuf);
if (rc != RTEMS_SUCCESSFUL)
break;
count -= copy;
buf += copy;
200eb1c: a4 04 80 1c add %l2, %i4, %l2 <== NOT EXECUTED
if (copy > count)
copy = count;
memcpy((char *)diskbuf->buffer + blkofs, buf, copy);
args->bytes_moved += copy;
rc = rtems_bdbuf_release_modified(diskbuf);
200eb20: 7f ff f9 97 call 200d17c <rtems_bdbuf_release_modified> <== NOT EXECUTED
200eb24: c2 26 a0 1c st %g1, [ %i2 + 0x1c ] <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
200eb28: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200eb2c: 12 80 00 0f bne 200eb68 <rtems_blkdev_generic_write+0x10c><== NOT EXECUTED
200eb30: a0 a4 00 1c subcc %l0, %i4, %l0 <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
dev_t dev = dd->dev;
args->bytes_moved = 0;
while (count > 0)
200eb34: 02 80 00 0d be 200eb68 <rtems_blkdev_generic_write+0x10c> <== NOT EXECUTED
200eb38: a2 10 20 00 clr %l1 <== NOT EXECUTED
{
rtems_bdbuf_buffer *diskbuf;
uint32_t copy;
if ((blkofs == 0) && (count >= block_size))
200eb3c: 80 a4 00 14 cmp %l0, %l4 <== NOT EXECUTED
200eb40: 1a bf ff e1 bcc 200eac4 <rtems_blkdev_generic_write+0x68> <== NOT EXECUTED
200eb44: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
rc = rtems_bdbuf_get(dev, block, &diskbuf);
else
rc = rtems_bdbuf_read(dev, block, &diskbuf);
200eb48: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
200eb4c: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
200eb50: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
200eb54: 7f ff fe 88 call 200e574 <rtems_bdbuf_read> <== NOT EXECUTED
200eb58: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
200eb5c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200eb60: 02 bf ff e2 be 200eae8 <rtems_blkdev_generic_write+0x8c> <== NOT EXECUTED
200eb64: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
blkofs = 0;
block++;
}
return rc;
}
200eb68: 81 c7 e0 08 ret <== NOT EXECUTED
200eb6c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0200e84c <rtems_blkdev_ioctl>:
return RTEMS_SUCCESSFUL;
}
int
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)
{
200e84c: 9d e3 bf a0 save %sp, -96, %sp
size_t *arg_size = argp;
int rc = 0;
switch (req)
200e850: 05 10 01 10 sethi %hi(0x40044000), %g2
200e854: 86 10 a2 03 or %g2, 0x203, %g3 ! 40044203 <RAM_END+0x3dc44203>
200e858: 80 a6 40 03 cmp %i1, %g3
200e85c: 02 80 00 1e be 200e8d4 <rtems_blkdev_ioctl+0x88> <== NEVER TAKEN
200e860: 82 10 00 18 mov %i0, %g1
200e864: 80 a6 40 03 cmp %i1, %g3
200e868: 28 80 00 0e bleu,a 200e8a0 <rtems_blkdev_ioctl+0x54> <== ALWAYS TAKEN
200e86c: 84 10 a2 02 or %g2, 0x202, %g2
200e870: 84 10 a2 05 or %g2, 0x205, %g2 <== NOT EXECUTED
200e874: 80 a6 40 02 cmp %i1, %g2 <== NOT EXECUTED
200e878: 02 80 00 13 be 200e8c4 <rtems_blkdev_ioctl+0x78> <== NOT EXECUTED
200e87c: 05 20 01 10 sethi %hi(0x80044000), %g2 <== NOT EXECUTED
200e880: 84 10 a2 04 or %g2, 0x204, %g2 ! 80044204 <RAM_END+0x7dc44204><== NOT EXECUTED
200e884: 80 a6 40 02 cmp %i1, %g2 <== NOT EXECUTED
200e888: 12 80 00 09 bne 200e8ac <rtems_blkdev_ioctl+0x60> <== NOT EXECUTED
200e88c: 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;
200e890: c4 06 80 00 ld [ %i2 ], %g2 <== NOT EXECUTED
200e894: c4 20 60 20 st %g2, [ %g1 + 0x20 ] <== NOT EXECUTED
break;
200e898: 81 c7 e0 08 ret <== NOT EXECUTED
200e89c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)
{
size_t *arg_size = argp;
int rc = 0;
switch (req)
200e8a0: 80 a6 40 02 cmp %i1, %g2
200e8a4: 22 80 00 10 be,a 200e8e4 <rtems_blkdev_ioctl+0x98> <== NEVER TAKEN
200e8a8: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED
case RTEMS_BLKIO_GETSIZE:
*arg_size = dd->size;
break;
default:
errno = EINVAL;
200e8ac: 40 00 17 72 call 2014674 <__errno>
200e8b0: b0 10 3f ff mov -1, %i0
200e8b4: 82 10 20 16 mov 0x16, %g1
200e8b8: c2 22 00 00 st %g1, [ %o0 ]
rc = -1;
break;
}
return rc;
}
200e8bc: 81 c7 e0 08 ret
200e8c0: 81 e8 00 00 restore
case RTEMS_BLKIO_SETBLKSIZE:
dd->block_size = *arg_size;
break;
case RTEMS_BLKIO_GETSIZE:
*arg_size = dd->size;
200e8c4: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
200e8c8: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
break;
200e8cc: 81 c7 e0 08 ret <== NOT EXECUTED
200e8d0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
case RTEMS_BLKIO_GETMEDIABLKSIZE:
*arg_size = dd->media_block_size;
break;
case RTEMS_BLKIO_GETBLKSIZE:
*arg_size = dd->block_size;
200e8d4: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED
200e8d8: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
break;
200e8dc: 81 c7 e0 08 ret <== NOT EXECUTED
200e8e0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
int rc = 0;
switch (req)
{
case RTEMS_BLKIO_GETMEDIABLKSIZE:
*arg_size = dd->media_block_size;
200e8e4: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
break;
200e8e8: 81 c7 e0 08 ret <== NOT EXECUTED
200e8ec: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
02002574 <rtems_bsp_cmdline_get_param>:
const char *rtems_bsp_cmdline_get_param(
const char *name,
char *value,
size_t length
)
{
2002574: 9d e3 bf a0 save %sp, -96, %sp
const char *p;
if ( !name )
2002578: 80 a6 20 00 cmp %i0, 0
200257c: 12 80 00 05 bne 2002590 <rtems_bsp_cmdline_get_param+0x1c>
2002580: 80 a6 60 00 cmp %i1, 0
int i;
int quotes;
const char *p = start;
quotes=0;
for (i=0 ; *p && i<length-1; ) {
2002584: b2 10 20 00 clr %i1
return NULL;
copy_string( p, value, length );
return value;
}
2002588: 81 c7 e0 08 ret
200258c: 91 e8 00 19 restore %g0, %i1, %o0
const char *p;
if ( !name )
return NULL;
if ( !value )
2002590: 02 bf ff fe be 2002588 <rtems_bsp_cmdline_get_param+0x14>
2002594: 80 a6 a0 00 cmp %i2, 0
return NULL;
if ( !length )
2002598: 22 bf ff fc be,a 2002588 <rtems_bsp_cmdline_get_param+0x14>
200259c: b2 10 20 00 clr %i1
return NULL;
value[0] = '\0';
20025a0: c0 2e 40 00 clrb [ %i1 ]
p = rtems_bsp_cmdline_get_param_raw( name );
20025a4: 40 00 00 25 call 2002638 <rtems_bsp_cmdline_get_param_raw>
20025a8: 90 10 00 18 mov %i0, %o0
if ( !p )
20025ac: 80 a2 20 00 cmp %o0, 0
20025b0: 22 bf ff f6 be,a 2002588 <rtems_bsp_cmdline_get_param+0x14>
20025b4: b2 10 20 00 clr %i1
int i;
int quotes;
const char *p = start;
quotes=0;
for (i=0 ; *p && i<length-1; ) {
20025b8: c6 0a 00 00 ldub [ %o0 ], %g3
20025bc: 85 28 e0 18 sll %g3, 0x18, %g2
20025c0: 80 a0 a0 00 cmp %g2, 0
20025c4: 02 bf ff f1 be 2002588 <rtems_bsp_cmdline_get_param+0x14> <== NEVER TAKEN
20025c8: b4 86 bf ff addcc %i2, -1, %i2
20025cc: 02 bf ff ef be 2002588 <rtems_bsp_cmdline_get_param+0x14> <== NEVER TAKEN
20025d0: 88 10 20 00 clr %g4
20025d4: 82 10 20 00 clr %g1
20025d8: 10 80 00 12 b 2002620 <rtems_bsp_cmdline_get_param+0xac>
20025dc: 9a 10 20 00 clr %o5
if ( *p == '\"' ) {
quotes++;
} else if ( ((quotes % 2) == 0) && *p == ' ' )
20025e0: 32 80 00 06 bne,a 20025f8 <rtems_bsp_cmdline_get_param+0x84>
20025e4: c6 2e 40 04 stb %g3, [ %i1 + %g4 ]
20025e8: 80 a0 a0 20 cmp %g2, 0x20
20025ec: 02 bf ff e7 be 2002588 <rtems_bsp_cmdline_get_param+0x14>
20025f0: 01 00 00 00 nop
break;
value[i++] = *p++;
20025f4: c6 2e 40 04 stb %g3, [ %i1 + %g4 ]
20025f8: 82 00 60 01 inc %g1
value[i] = '\0';
20025fc: c0 2e 40 01 clrb [ %i1 + %g1 ]
int i;
int quotes;
const char *p = start;
quotes=0;
for (i=0 ; *p && i<length-1; ) {
2002600: c6 0a 00 01 ldub [ %o0 + %g1 ], %g3
2002604: 85 28 e0 18 sll %g3, 0x18, %g2
2002608: 80 a0 a0 00 cmp %g2, 0
200260c: 02 bf ff df be 2002588 <rtems_bsp_cmdline_get_param+0x14>
2002610: 88 10 00 01 mov %g1, %g4
2002614: 80 a0 40 1a cmp %g1, %i2
2002618: 1a bf ff dc bcc 2002588 <rtems_bsp_cmdline_get_param+0x14><== NEVER TAKEN
200261c: 01 00 00 00 nop
if ( *p == '\"' ) {
2002620: 85 38 a0 18 sra %g2, 0x18, %g2
2002624: 80 a0 a0 22 cmp %g2, 0x22
2002628: 12 bf ff ee bne 20025e0 <rtems_bsp_cmdline_get_param+0x6c>
200262c: 80 8b 60 01 btst 1, %o5
quotes++;
2002630: 10 bf ff f1 b 20025f4 <rtems_bsp_cmdline_get_param+0x80>
2002634: 9a 03 60 01 inc %o5
0200266c <rtems_bsp_cmdline_get_param_rhs>:
const char *rtems_bsp_cmdline_get_param_rhs(
const char *name,
char *value,
size_t length
)
{
200266c: 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 );
2002670: 94 10 00 1a mov %i2, %o2
2002674: 90 10 00 18 mov %i0, %o0
2002678: 7f ff ff bf call 2002574 <rtems_bsp_cmdline_get_param>
200267c: 92 10 00 19 mov %i1, %o1
if ( !p )
2002680: a2 92 20 00 orcc %o0, 0, %l1
2002684: 12 80 00 05 bne 2002698 <rtems_bsp_cmdline_get_param_rhs+0x2c>
2002688: 01 00 00 00 nop
*d++ = *rhs++;
if ( *(d-1) == '\"' )
d--;
*d = '\0';
return value;
200268c: b2 10 20 00 clr %i1 ! 0 <PROM_START>
}
2002690: 81 c7 e0 08 ret
2002694: 91 e8 00 19 restore %g0, %i1, %o0
p = rtems_bsp_cmdline_get_param( name, value, length );
if ( !p )
return NULL;
rhs = &p[strlen(name)];
2002698: 40 00 3b d6 call 20115f0 <strlen>
200269c: 90 10 00 18 mov %i0, %o0
if ( *rhs != '=' )
20026a0: c2 4c 40 08 ldsb [ %l1 + %o0 ], %g1
20026a4: 80 a0 60 3d cmp %g1, 0x3d
20026a8: 12 bf ff f9 bne 200268c <rtems_bsp_cmdline_get_param_rhs+0x20><== NEVER TAKEN
20026ac: a2 04 40 08 add %l1, %o0, %l1
return NULL;
rhs++;
if ( *rhs == '\"' )
20026b0: c6 0c 60 01 ldub [ %l1 + 1 ], %g3
20026b4: 85 28 e0 18 sll %g3, 0x18, %g2
20026b8: 89 38 a0 18 sra %g2, 0x18, %g4
20026bc: 80 a1 20 22 cmp %g4, 0x22
20026c0: 02 80 00 14 be 2002710 <rtems_bsp_cmdline_get_param_rhs+0xa4>
20026c4: 82 04 60 01 add %l1, 1, %g1
rhs++;
for ( d=value ; *rhs ; )
20026c8: 80 a0 a0 00 cmp %g2, 0
20026cc: 02 80 00 09 be 20026f0 <rtems_bsp_cmdline_get_param_rhs+0x84>
20026d0: 84 10 00 19 mov %i1, %g2
*d++ = *rhs++;
20026d4: c6 28 80 00 stb %g3, [ %g2 ]
20026d8: 82 00 60 01 inc %g1
return NULL;
rhs++;
if ( *rhs == '\"' )
rhs++;
for ( d=value ; *rhs ; )
20026dc: c6 48 40 00 ldsb [ %g1 ], %g3
*d++ = *rhs++;
20026e0: 84 00 a0 01 inc %g2
return NULL;
rhs++;
if ( *rhs == '\"' )
rhs++;
for ( d=value ; *rhs ; )
20026e4: 80 a0 e0 00 cmp %g3, 0
20026e8: 12 bf ff fb bne 20026d4 <rtems_bsp_cmdline_get_param_rhs+0x68>
20026ec: c6 08 40 00 ldub [ %g1 ], %g3
*d++ = *rhs++;
if ( *(d-1) == '\"' )
20026f0: c6 48 bf ff ldsb [ %g2 + -1 ], %g3
20026f4: 80 a0 e0 22 cmp %g3, 0x22
20026f8: 02 80 00 03 be 2002704 <rtems_bsp_cmdline_get_param_rhs+0x98>
20026fc: 82 00 bf ff add %g2, -1, %g1
2002700: 82 10 00 02 mov %g2, %g1
d--;
*d = '\0';
2002704: c0 28 40 00 clrb [ %g1 ]
return value;
}
2002708: 81 c7 e0 08 ret
200270c: 91 e8 00 19 restore %g0, %i1, %o0
if ( *rhs != '=' )
return NULL;
rhs++;
if ( *rhs == '\"' )
rhs++;
2002710: c6 0c 60 02 ldub [ %l1 + 2 ], %g3
2002714: 82 04 60 02 add %l1, 2, %g1
2002718: 10 bf ff ec b 20026c8 <rtems_bsp_cmdline_get_param_rhs+0x5c>
200271c: 85 28 e0 18 sll %g3, 0x18, %g2
0200316c <rtems_cpu_usage_report_with_plugin>:
void rtems_cpu_usage_report_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
200316c: 9d e3 bf 60 save %sp, -160, %sp
Timestamp_Control uptime, total, ran;
#else
uint32_t total_units = 0;
#endif
if ( !print )
2003170: 80 a6 60 00 cmp %i1, 0
2003174: 02 80 00 72 be 200333c <rtems_cpu_usage_report_with_plugin+0x1d0><== NEVER TAKEN
2003178: 01 00 00 00 nop
* 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 );
200317c: 40 00 18 58 call 20092dc <_TOD_Get_uptime>
2003180: 90 07 bf f0 add %fp, -16, %o0
_Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total );
2003184: 92 07 bf f0 add %fp, -16, %o1
2003188: a8 07 bf e8 add %fp, -24, %l4
200318c: 11 00 80 92 sethi %hi(0x2024800), %o0
2003190: 94 10 00 14 mov %l4, %o2
2003194: 40 00 23 11 call 200bdd8 <_Timespec_Subtract>
2003198: 90 12 22 6c or %o0, 0x26c, %o0
}
}
}
#endif
(*print)(
200319c: 90 10 00 18 mov %i0, %o0
20031a0: 13 00 80 85 sethi %hi(0x2021400), %o1
20031a4: 37 00 80 91 sethi %hi(0x2024400), %i3
20031a8: 92 12 63 08 or %o1, 0x308, %o1
if ( !the_thread )
continue;
rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
(*print)(
20031ac: 3b 00 80 86 sethi %hi(0x2021800), %i5
/*
* 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 ) {
20031b0: 2f 00 80 92 sethi %hi(0x2024800), %l7
}
}
}
#endif
(*print)(
20031b4: 9f c6 40 00 call %i1
20031b8: 2d 00 80 86 sethi %hi(0x2021800), %l6
the_thread = (Thread_Control *)information->local_table[ i ];
if ( !the_thread )
continue;
rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
20031bc: a4 07 bf c8 add %fp, -56, %l2
}
}
}
#endif
(*print)(
20031c0: b6 16 e3 14 or %i3, 0x314, %i3
if ( !the_thread )
continue;
rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
(*print)(
20031c4: ba 17 60 80 or %i5, 0x80, %i5
/*
* 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 ) {
20031c8: ae 15 e0 70 or %l7, 0x70, %l7
/*
* Print the information
*/
(*print)( context,
20031cc: ac 15 a0 98 or %l6, 0x98, %l6
20031d0: a6 07 bf e0 add %fp, -32, %l3
_Timestamp_Subtract(
&_Thread_Time_of_last_context_switch, &uptime, &used
);
_Timestamp_Add_to( &ran, &used );
};
_Timestamp_Divide( &ran, &total, &ival, &fval );
20031d4: aa 07 bf fc add %fp, -4, %l5
20031d8: b8 07 bf f8 add %fp, -8, %i4
* 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(
20031dc: b4 07 bf d8 add %fp, -40, %i2
);
for ( api_index = 1 ;
api_index <= OBJECTS_APIS_LAST ;
api_index++ ) {
if ( !_Objects_Information_table[ api_index ] )
20031e0: c2 06 c0 00 ld [ %i3 ], %g1
20031e4: 80 a0 60 00 cmp %g1, 0
20031e8: 22 80 00 47 be,a 2003304 <rtems_cpu_usage_report_with_plugin+0x198>
20031ec: b6 06 e0 04 add %i3, 4, %i3
continue;
information = _Objects_Information_table[ api_index ][ 1 ];
20031f0: e2 00 60 04 ld [ %g1 + 4 ], %l1
if ( information ) {
20031f4: 80 a4 60 00 cmp %l1, 0
20031f8: 22 80 00 43 be,a 2003304 <rtems_cpu_usage_report_with_plugin+0x198><== NEVER TAKEN
20031fc: b6 06 e0 04 add %i3, 4, %i3 <== NOT EXECUTED
for ( i=1 ; i <= information->maximum ; i++ ) {
2003200: c2 14 60 10 lduh [ %l1 + 0x10 ], %g1
2003204: 86 90 60 00 orcc %g1, 0, %g3
2003208: 02 80 00 3e be 2003300 <rtems_cpu_usage_report_with_plugin+0x194><== NEVER TAKEN
200320c: a0 10 20 01 mov 1, %l0
the_thread = (Thread_Control *)information->local_table[ i ];
2003210: 10 80 00 17 b 200326c <rtems_cpu_usage_report_with_plugin+0x100>
2003214: c4 04 60 1c ld [ %l1 + 0x1c ], %g2
_Timestamp_Subtract(
&_Thread_Time_of_last_context_switch, &uptime, &used
);
_Timestamp_Add_to( &ran, &used );
};
_Timestamp_Divide( &ran, &total, &ival, &fval );
2003218: 96 10 00 1c mov %i4, %o3
200321c: 90 10 00 13 mov %l3, %o0
2003220: 40 00 22 5e call 200bb98 <_Timespec_Divide>
2003224: 92 10 00 14 mov %l4, %o1
/*
* Print the information
*/
(*print)( context,
2003228: d0 07 bf e4 ld [ %fp + -28 ], %o0
200322c: 40 00 6f 10 call 201ee6c <.udiv>
2003230: 92 10 23 e8 mov 0x3e8, %o1
2003234: d4 07 bf e0 ld [ %fp + -32 ], %o2
2003238: d8 07 bf fc ld [ %fp + -4 ], %o4
200323c: da 07 bf f8 ld [ %fp + -8 ], %o5
2003240: 96 10 00 08 mov %o0, %o3
2003244: 92 10 00 16 mov %l6, %o1
2003248: 9f c6 40 00 call %i1
200324c: 90 10 00 18 mov %i0, %o0
2003250: c6 14 60 10 lduh [ %l1 + 0x10 ], %g3
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++ ) {
2003254: 83 28 e0 10 sll %g3, 0x10, %g1
2003258: 83 30 60 10 srl %g1, 0x10, %g1
200325c: 80 a0 40 10 cmp %g1, %l0
2003260: 2a 80 00 29 bcs,a 2003304 <rtems_cpu_usage_report_with_plugin+0x198>
2003264: b6 06 e0 04 add %i3, 4, %i3
the_thread = (Thread_Control *)information->local_table[ i ];
2003268: c4 04 60 1c ld [ %l1 + 0x1c ], %g2
200326c: 83 2c 20 02 sll %l0, 2, %g1
2003270: c2 00 80 01 ld [ %g2 + %g1 ], %g1
if ( !the_thread )
continue;
rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
2003274: 94 10 00 12 mov %l2, %o2
2003278: 92 10 20 0d mov 0xd, %o1
information = _Objects_Information_table[ api_index ][ 1 ];
if ( information ) {
for ( i=1 ; i <= information->maximum ; i++ ) {
the_thread = (Thread_Control *)information->local_table[ i ];
if ( !the_thread )
200327c: 80 a0 60 00 cmp %g1, 0
2003280: 02 bf ff f5 be 2003254 <rtems_cpu_usage_report_with_plugin+0xe8><== NEVER TAKEN
2003284: a0 04 20 01 inc %l0
continue;
rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
2003288: d0 00 60 08 ld [ %g1 + 8 ], %o0
200328c: 40 00 12 e7 call 2007e28 <rtems_object_get_name>
2003290: c2 27 bf c4 st %g1, [ %fp + -60 ]
(*print)(
2003294: c2 07 bf c4 ld [ %fp + -60 ], %g1
2003298: 90 10 00 18 mov %i0, %o0
200329c: d4 00 60 08 ld [ %g1 + 8 ], %o2
20032a0: 92 10 00 1d mov %i5, %o1
20032a4: 9f c6 40 00 call %i1
20032a8: 96 10 00 12 mov %l2, %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;
20032ac: c2 07 bf c4 ld [ %fp + -60 ], %g1
if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
20032b0: c4 05 c0 00 ld [ %l7 ], %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;
20032b4: c6 00 60 84 ld [ %g1 + 0x84 ], %g3
20032b8: c6 27 bf e0 st %g3, [ %fp + -32 ]
20032bc: c6 00 60 88 ld [ %g1 + 0x88 ], %g3
20032c0: c6 27 bf e4 st %g3, [ %fp + -28 ]
if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
20032c4: c4 00 a0 08 ld [ %g2 + 8 ], %g2
20032c8: c2 00 60 08 ld [ %g1 + 8 ], %g1
20032cc: 80 a0 80 01 cmp %g2, %g1
20032d0: 32 bf ff d2 bne,a 2003218 <rtems_cpu_usage_report_with_plugin+0xac>
20032d4: 94 10 00 15 mov %l5, %o2
Timestamp_Control used;
_Timestamp_Subtract(
20032d8: 92 07 bf f0 add %fp, -16, %o1
20032dc: 94 10 00 1a mov %i2, %o2
20032e0: 11 00 80 92 sethi %hi(0x2024800), %o0
20032e4: 40 00 22 bd call 200bdd8 <_Timespec_Subtract>
20032e8: 90 12 20 78 or %o0, 0x78, %o0 ! 2024878 <_Thread_Time_of_last_context_switch>
&_Thread_Time_of_last_context_switch, &uptime, &used
);
_Timestamp_Add_to( &ran, &used );
20032ec: 90 10 00 13 mov %l3, %o0
20032f0: 40 00 22 11 call 200bb34 <_Timespec_Add_to>
20032f4: 92 10 00 1a mov %i2, %o1
};
_Timestamp_Divide( &ran, &total, &ival, &fval );
20032f8: 10 bf ff c8 b 2003218 <rtems_cpu_usage_report_with_plugin+0xac>
20032fc: 94 10 00 15 mov %l5, %o2
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++ ) {
2003300: b6 06 e0 04 add %i3, 4, %i3 <== NOT EXECUTED
" ID | NAME | TICKS | PERCENT\n"
#endif
"------------+----------------------------------------+---------------+---------\n"
);
for ( api_index = 1 ;
2003304: 03 00 80 91 sethi %hi(0x2024400), %g1
2003308: 82 10 63 24 or %g1, 0x324, %g1 ! 2024724 <_Objects_Information_table+0x14>
200330c: 80 a6 c0 01 cmp %i3, %g1
2003310: 32 bf ff b5 bne,a 20031e4 <rtems_cpu_usage_report_with_plugin+0x78>
2003314: c2 06 c0 00 ld [ %i3 ], %g1
}
}
}
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
(*print)(
2003318: d0 07 bf ec ld [ %fp + -20 ], %o0
200331c: 40 00 6e d4 call 201ee6c <.udiv>
2003320: 92 10 23 e8 mov 0x3e8, %o1
2003324: d4 07 bf e8 ld [ %fp + -24 ], %o2
2003328: 96 10 00 08 mov %o0, %o3
200332c: 13 00 80 86 sethi %hi(0x2021800), %o1
2003330: 90 10 00 18 mov %i0, %o0
2003334: 9f c6 40 00 call %i1
2003338: 92 12 60 b0 or %o1, 0xb0, %o1
200333c: 81 c7 e0 08 ret
2003340: 81 e8 00 00 restore
02010344 <rtems_deviceio_errno>:
{ 0, 0, 0 },
};
int
rtems_deviceio_errno(rtems_status_code code)
{
2010344: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc;
if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code)))
2010348: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED
201034c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
2010350: 40 00 00 0a call 2010378 <rtems_assoc_remote_by_local> <== NOT EXECUTED
2010354: 90 12 20 40 or %o0, 0x40, %o0 <== NOT EXECUTED
2010358: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
201035c: 02 80 00 05 be 2010370 <rtems_deviceio_errno+0x2c> <== NOT EXECUTED
2010360: 01 00 00 00 nop <== NOT EXECUTED
{
errno = rc;
2010364: 40 00 00 3b call 2010450 <__errno> <== NOT EXECUTED
2010368: 01 00 00 00 nop <== NOT EXECUTED
201036c: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED
return -1;
}
return -1;
}
2010370: 81 c7 e0 08 ret <== NOT EXECUTED
2010374: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
020030f8 <rtems_disk_create_log>:
dev_t phys,
rtems_blkdev_bnum begin_block,
rtems_blkdev_bnum block_count,
const char *name
)
{
20030f8: 9d e3 bf 90 save %sp, -112, %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();
20030fc: 7f ff fe 8b call 2002b28 <disk_lock>
2003100: c0 27 bf fc clr [ %fp + -4 ]
if (sc != RTEMS_SUCCESSFUL) {
2003104: 80 a2 20 00 cmp %o0, 0
2003108: 22 80 00 04 be,a 2003118 <rtems_disk_create_log+0x20> <== ALWAYS TAKEN
200310c: 90 10 00 1a mov %i2, %o0
++physical_disk->uses;
disk_unlock();
return RTEMS_SUCCESSFUL;
}
2003110: 81 c7 e0 08 ret
2003114: 91 e8 00 08 restore %g0, %o0, %o0
sc = disk_lock();
if (sc != RTEMS_SUCCESSFUL) {
return sc;
}
physical_disk = get_disk_entry(phys, true);
2003118: 92 10 00 1b mov %i3, %o1
200311c: 7f ff fd e1 call 20028a0 <get_disk_entry>
2003120: 94 10 20 01 mov 1, %o2
if (physical_disk == NULL || !is_physical_disk(physical_disk)) {
2003124: a0 92 20 00 orcc %o0, 0, %l0
2003128: 02 80 00 06 be 2003140 <rtems_disk_create_log+0x48>
200312c: 01 00 00 00 nop
2003130: c2 04 20 08 ld [ %l0 + 8 ], %g1
2003134: 80 a4 00 01 cmp %l0, %g1
2003138: 02 80 00 07 be 2003154 <rtems_disk_create_log+0x5c>
200313c: 82 07 40 1c add %i5, %i4, %g1
disk_unlock();
2003140: 7f ff fe 89 call 2002b64 <disk_unlock>
2003144: 01 00 00 00 nop
2003148: 90 10 20 04 mov 4, %o0 ! 4 <PROM_START+0x4>
++physical_disk->uses;
disk_unlock();
return RTEMS_SUCCESSFUL;
}
200314c: 81 c7 e0 08 ret
2003150: 91 e8 00 08 restore %g0, %o0, %o0
disk_unlock();
return RTEMS_INVALID_ID;
}
if (
2003154: 80 a0 40 1c cmp %g1, %i4
2003158: 08 80 00 07 bleu 2003174 <rtems_disk_create_log+0x7c>
200315c: c4 04 20 1c ld [ %l0 + 0x1c ], %g2
2003160: 80 a0 80 1c cmp %g2, %i4
2003164: 08 80 00 04 bleu 2003174 <rtems_disk_create_log+0x7c> <== NEVER TAKEN
2003168: 80 a0 40 02 cmp %g1, %g2
200316c: 08 80 00 06 bleu 2003184 <rtems_disk_create_log+0x8c>
2003170: d4 07 a0 5c ld [ %fp + 0x5c ], %o2
begin_block >= physical_disk->size
|| end_block <= begin_block
|| end_block > physical_disk->size
) {
disk_unlock();
2003174: 7f ff fe 7c call 2002b64 <disk_unlock>
2003178: 01 00 00 00 nop
return RTEMS_INVALID_NUMBER;
200317c: 10 bf ff e5 b 2003110 <rtems_disk_create_log+0x18>
2003180: 90 10 20 0a mov 0xa, %o0 ! a <PROM_START+0xa>
}
sc = create_disk(dev, name, &dd);
2003184: 90 10 00 18 mov %i0, %o0
2003188: 92 10 00 19 mov %i1, %o1
200318c: 7f ff ff 6c call 2002f3c <create_disk>
2003190: 96 07 bf fc add %fp, -4, %o3
if (sc != RTEMS_SUCCESSFUL) {
2003194: 80 a2 20 00 cmp %o0, 0
2003198: 12 80 00 0f bne 20031d4 <rtems_disk_create_log+0xdc>
200319c: 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;
20031a0: c4 04 20 20 ld [ %l0 + 0x20 ], %g2
dd->ioctl = physical_disk->ioctl;
dd->driver_data = physical_disk->driver_data;
++physical_disk->uses;
20031a4: c6 04 20 14 ld [ %l0 + 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;
20031a8: c8 04 20 28 ld [ %l0 + 0x28 ], %g4
dd->driver_data = physical_disk->driver_data;
20031ac: da 04 20 2c ld [ %l0 + 0x2c ], %o5
++physical_disk->uses;
20031b0: 86 00 e0 01 inc %g3
return sc;
}
dd->phys_dev = physical_disk;
dd->start = begin_block;
20031b4: 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;
20031b8: da 20 60 2c st %o5, [ %g1 + 0x2c ]
return sc;
}
dd->phys_dev = physical_disk;
dd->start = begin_block;
dd->size = block_count;
20031bc: fa 20 60 1c st %i5, [ %g1 + 0x1c ]
dd->block_size = dd->media_block_size = physical_disk->block_size;
20031c0: c4 20 60 20 st %g2, [ %g1 + 0x20 ]
dd->ioctl = physical_disk->ioctl;
20031c4: c8 20 60 28 st %g4, [ %g1 + 0x28 ]
dd->driver_data = physical_disk->driver_data;
++physical_disk->uses;
20031c8: c6 24 20 14 st %g3, [ %l0 + 0x14 ]
disk_unlock();
return sc;
}
dd->phys_dev = physical_disk;
20031cc: e0 20 60 08 st %l0, [ %g1 + 8 ]
dd->start = begin_block;
dd->size = block_count;
dd->block_size = dd->media_block_size = physical_disk->block_size;
20031d0: 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();
20031d4: 7f ff fe 64 call 2002b64 <disk_unlock>
20031d8: d0 27 bf f4 st %o0, [ %fp + -12 ]
return RTEMS_SUCCESSFUL;
20031dc: 10 bf ff cd b 2003110 <rtems_disk_create_log+0x18>
20031e0: d0 07 bf f4 ld [ %fp + -12 ], %o0
020031e4 <rtems_disk_create_phys>:
rtems_blkdev_bnum block_count,
rtems_block_device_ioctl handler,
void *driver_data,
const char *name
)
{
20031e4: 9d e3 bf 98 save %sp, -104, %sp
20031e8: a0 10 00 18 mov %i0, %l0
rtems_disk_device *dd = NULL;
rtems_status_code sc = RTEMS_SUCCESSFUL;
if (handler == NULL) {
20031ec: 80 a7 20 00 cmp %i4, 0
20031f0: 02 80 00 22 be 2003278 <rtems_disk_create_phys+0x94>
20031f4: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
}
if (block_size == 0) {
20031f8: 80 a6 a0 00 cmp %i2, 0
20031fc: 02 80 00 1f be 2003278 <rtems_disk_create_phys+0x94>
2003200: b0 10 20 0a mov 0xa, %i0
return RTEMS_INVALID_NUMBER;
}
sc = disk_lock();
2003204: 7f ff fe 49 call 2002b28 <disk_lock>
2003208: c0 27 bf fc clr [ %fp + -4 ]
if (sc != RTEMS_SUCCESSFUL) {
200320c: b0 92 20 00 orcc %o0, 0, %i0
2003210: 12 80 00 1a bne 2003278 <rtems_disk_create_phys+0x94> <== NEVER TAKEN
2003214: d4 07 a0 5c ld [ %fp + 0x5c ], %o2
return sc;
}
sc = create_disk(dev, name, &dd);
2003218: 90 10 00 10 mov %l0, %o0
200321c: 92 10 00 19 mov %i1, %o1
2003220: 7f ff ff 47 call 2002f3c <create_disk>
2003224: 96 07 bf fc add %fp, -4, %o3
if (sc != RTEMS_SUCCESSFUL) {
2003228: b0 92 20 00 orcc %o0, 0, %i0
200322c: 12 80 00 15 bne 2003280 <rtems_disk_create_phys+0x9c>
2003230: c2 07 bf fc ld [ %fp + -4 ], %g1
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) {
2003234: 13 08 00 10 sethi %hi(0x20004000), %o1
return sc;
}
dd->phys_dev = dd;
dd->start = 0;
dd->size = block_count;
2003238: f6 20 60 1c st %i3, [ %g1 + 0x1c ]
dd->block_size = dd->media_block_size = block_size;
200323c: f4 20 60 20 st %i2, [ %g1 + 0x20 ]
dd->ioctl = handler;
dd->driver_data = driver_data;
2003240: fa 20 60 2c st %i5, [ %g1 + 0x2c ]
if ((*handler)(dd, RTEMS_BLKIO_CAPABILITIES, &dd->capabilities) < 0) {
2003244: 90 10 00 01 mov %g1, %o0
disk_unlock();
return sc;
}
dd->phys_dev = dd;
2003248: c2 20 60 08 st %g1, [ %g1 + 8 ]
dd->start = 0;
200324c: c0 20 60 18 clr [ %g1 + 0x18 ]
dd->size = block_count;
dd->block_size = dd->media_block_size = block_size;
2003250: f4 20 60 24 st %i2, [ %g1 + 0x24 ]
dd->ioctl = handler;
2003254: f8 20 60 28 st %i4, [ %g1 + 0x28 ]
dd->driver_data = driver_data;
if ((*handler)(dd, RTEMS_BLKIO_CAPABILITIES, &dd->capabilities) < 0) {
2003258: 92 12 62 08 or %o1, 0x208, %o1
200325c: 9f c7 00 00 call %i4
2003260: 94 00 60 0c add %g1, 0xc, %o2
2003264: 80 a2 20 00 cmp %o0, 0
2003268: 06 80 00 0a bl 2003290 <rtems_disk_create_phys+0xac> <== ALWAYS TAKEN
200326c: c2 07 bf fc ld [ %fp + -4 ], %g1
dd->capabilities = 0;
}
disk_unlock();
2003270: 7f ff fe 3d call 2002b64 <disk_unlock> <== NOT EXECUTED
2003274: 01 00 00 00 nop <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
2003278: 81 c7 e0 08 ret
200327c: 81 e8 00 00 restore
return sc;
}
sc = create_disk(dev, name, &dd);
if (sc != RTEMS_SUCCESSFUL) {
disk_unlock();
2003280: 7f ff fe 39 call 2002b64 <disk_unlock>
2003284: 01 00 00 00 nop
return sc;
2003288: 81 c7 e0 08 ret
200328c: 81 e8 00 00 restore
if ((*handler)(dd, RTEMS_BLKIO_CAPABILITIES, &dd->capabilities) < 0) {
dd->capabilities = 0;
}
disk_unlock();
2003290: 7f ff fe 35 call 2002b64 <disk_unlock>
2003294: c0 20 60 0c clr [ %g1 + 0xc ]
2003298: 30 bf ff fc b,a 2003288 <rtems_disk_create_phys+0xa4>
02002c98 <rtems_disk_delete>:
}
}
rtems_status_code
rtems_disk_delete(dev_t dev)
{
2002c98: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_disk_device *dd = NULL;
sc = disk_lock();
2002c9c: 7f ff ff a3 call 2002b28 <disk_lock>
2002ca0: 01 00 00 00 nop
if (sc != RTEMS_SUCCESSFUL) {
2002ca4: a0 92 20 00 orcc %o0, 0, %l0
2002ca8: 02 80 00 04 be 2002cb8 <rtems_disk_delete+0x20> <== ALWAYS TAKEN
2002cac: 90 10 00 18 mov %i0, %o0
rtems_disk_cleanup(dd);
disk_unlock();
return RTEMS_SUCCESSFUL;
}
2002cb0: 81 c7 e0 08 ret <== NOT EXECUTED
2002cb4: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED
sc = disk_lock();
if (sc != RTEMS_SUCCESSFUL) {
return sc;
}
dd = get_disk_entry(dev, true);
2002cb8: 92 10 00 19 mov %i1, %o1
2002cbc: 7f ff fe f9 call 20028a0 <get_disk_entry>
2002cc0: 94 10 20 01 mov 1, %o2
if (dd == NULL) {
2002cc4: 82 92 20 00 orcc %o0, 0, %g1
2002cc8: 02 80 00 66 be 2002e60 <rtems_disk_delete+0x1c8> <== NEVER TAKEN
2002ccc: 84 10 20 01 mov 1, %g2
}
static void
rtems_disk_cleanup(rtems_disk_device *disk_to_remove)
{
rtems_disk_device *const physical_disk = disk_to_remove->phys_dev;
2002cd0: e6 00 60 08 ld [ %g1 + 8 ], %l3
disk_unlock();
return RTEMS_INVALID_ID;
}
dd->deleted = true;
2002cd4: 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) {
2002cd8: c4 0c e0 30 ldub [ %l3 + 0x30 ], %g2
2002cdc: 80 a0 a0 00 cmp %g2, 0
2002ce0: 22 80 00 4f be,a 2002e1c <rtems_disk_delete+0x184>
2002ce4: 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) {
2002ce8: 37 00 80 85 sethi %hi(0x2021400), %i3
2002cec: c2 06 e2 a0 ld [ %i3 + 0x2a0 ], %g1 ! 20216a0 <disktab_size>
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;
2002cf0: e8 04 c0 00 ld [ %l3 ], %l4
unsigned deleted_count = 0;
for (major = 0; major < disktab_size; ++major) {
2002cf4: 80 a0 60 00 cmp %g1, 0
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;
2002cf8: fa 04 e0 04 ld [ %l3 + 4 ], %i5
unsigned deleted_count = 0;
for (major = 0; major < disktab_size; ++major) {
2002cfc: 02 80 00 35 be 2002dd0 <rtems_disk_delete+0x138> <== NEVER TAKEN
2002d00: ae 10 20 00 clr %l7
2002d04: 39 00 80 85 sethi %hi(0x2021400), %i4
2002d08: b6 16 e2 a0 or %i3, 0x2a0, %i3
2002d0c: b8 17 22 9c or %i4, 0x29c, %i4
2002d10: aa 10 20 00 clr %l5
if (dd->uses == 0) {
++deleted_count;
dtab->minor [minor] = NULL;
free_disk_device(dd);
} else {
dd->deleted = true;
2002d14: 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;
2002d18: e4 07 00 00 ld [ %i4 ], %l2
2002d1c: 83 2d 60 03 sll %l5, 3, %g1
2002d20: a4 04 80 01 add %l2, %g1, %l2
for (minor = 0; minor < dtab->size; ++minor) {
2002d24: c6 04 a0 04 ld [ %l2 + 4 ], %g3
2002d28: 80 a0 e0 00 cmp %g3, 0
2002d2c: 22 80 00 25 be,a 2002dc0 <rtems_disk_delete+0x128>
2002d30: c2 06 c0 00 ld [ %i3 ], %g1
2002d34: 10 80 00 06 b 2002d4c <rtems_disk_delete+0xb4>
2002d38: a2 10 20 00 clr %l1
2002d3c: a2 04 60 01 inc %l1
2002d40: 80 a4 40 03 cmp %l1, %g3
2002d44: 3a 80 00 1f bcc,a 2002dc0 <rtems_disk_delete+0x128>
2002d48: c2 06 c0 00 ld [ %i3 ], %g1
rtems_disk_device *dd = dtab->minor [minor];
2002d4c: c4 04 80 00 ld [ %l2 ], %g2
2002d50: 83 2c 60 02 sll %l1, 2, %g1
2002d54: d0 00 80 01 ld [ %g2 + %g1 ], %o0
if (dd != NULL && dd->phys_dev->dev == dev && dd != physical_disk) {
2002d58: 80 a2 20 00 cmp %o0, 0
2002d5c: 02 bf ff f8 be 2002d3c <rtems_disk_delete+0xa4>
2002d60: 80 a4 c0 08 cmp %l3, %o0
2002d64: 22 bf ff f7 be,a 2002d40 <rtems_disk_delete+0xa8>
2002d68: a2 04 60 01 inc %l1
2002d6c: c8 02 20 08 ld [ %o0 + 8 ], %g4
2002d70: da 01 00 00 ld [ %g4 ], %o5
2002d74: 80 a3 40 14 cmp %o5, %l4
2002d78: 32 bf ff f2 bne,a 2002d40 <rtems_disk_delete+0xa8> <== NEVER TAKEN
2002d7c: a2 04 60 01 inc %l1 <== NOT EXECUTED
2002d80: c8 01 20 04 ld [ %g4 + 4 ], %g4
2002d84: 80 a1 00 1d cmp %g4, %i5
2002d88: 32 bf ff ee bne,a 2002d40 <rtems_disk_delete+0xa8> <== NEVER TAKEN
2002d8c: a2 04 60 01 inc %l1 <== NOT EXECUTED
if (dd->uses == 0) {
2002d90: c8 02 20 14 ld [ %o0 + 0x14 ], %g4
2002d94: 80 a1 20 00 cmp %g4, 0
2002d98: 32 bf ff e9 bne,a 2002d3c <rtems_disk_delete+0xa4>
2002d9c: ec 2a 20 30 stb %l6, [ %o0 + 0x30 ]
++deleted_count;
dtab->minor [minor] = NULL;
free_disk_device(dd);
2002da0: 7f ff fe e5 call 2002934 <free_disk_device>
2002da4: c0 20 80 01 clr [ %g2 + %g1 ]
2002da8: c6 04 a0 04 ld [ %l2 + 4 ], %g3
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) {
2002dac: a2 04 60 01 inc %l1
2002db0: 80 a4 40 03 cmp %l1, %g3
2002db4: 0a bf ff e6 bcs 2002d4c <rtems_disk_delete+0xb4> <== ALWAYS TAKEN
2002db8: ae 05 e0 01 inc %l7
if (physical_disk->deleted) {
dev_t dev = physical_disk->dev;
unsigned deleted_count = 0;
for (major = 0; major < disktab_size; ++major) {
2002dbc: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
2002dc0: aa 05 60 01 inc %l5
2002dc4: 80 a5 40 01 cmp %l5, %g1
2002dc8: 2a bf ff d5 bcs,a 2002d1c <rtems_disk_delete+0x84>
2002dcc: e4 07 00 00 ld [ %i4 ], %l2
}
}
}
}
physical_disk->uses -= deleted_count;
2002dd0: c2 04 e0 14 ld [ %l3 + 0x14 ], %g1
2002dd4: ae 20 40 17 sub %g1, %l7, %l7
if (physical_disk->uses == 0) {
2002dd8: 80 a5 e0 00 cmp %l7, 0
2002ddc: 12 80 00 0c bne 2002e0c <rtems_disk_delete+0x174>
2002de0: ee 24 e0 14 st %l7, [ %l3 + 0x14 ]
rtems_filesystem_split_dev_t(physical_disk->dev, major, minor);
2002de4: c2 04 c0 00 ld [ %l3 ], %g1
disktab [major].minor [minor] = NULL;
2002de8: 05 00 80 85 sethi %hi(0x2021400), %g2
2002dec: c4 00 a2 9c ld [ %g2 + 0x29c ], %g2 ! 202169c <disktab>
2002df0: 83 28 60 03 sll %g1, 3, %g1
2002df4: 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);
2002df8: c2 04 e0 04 ld [ %l3 + 4 ], %g1
disktab [major].minor [minor] = NULL;
free_disk_device(physical_disk);
2002dfc: 90 10 00 13 mov %l3, %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;
2002e00: 83 28 60 02 sll %g1, 2, %g1
free_disk_device(physical_disk);
2002e04: 7f ff fe cc call 2002934 <free_disk_device>
2002e08: c0 20 80 01 clr [ %g2 + %g1 ]
}
dd->deleted = true;
rtems_disk_cleanup(dd);
disk_unlock();
2002e0c: 7f ff ff 56 call 2002b64 <disk_unlock>
2002e10: b0 10 00 10 mov %l0, %i0
return RTEMS_SUCCESSFUL;
}
2002e14: 81 c7 e0 08 ret
2002e18: 81 e8 00 00 restore
rtems_filesystem_split_dev_t(physical_disk->dev, major, minor);
disktab [major].minor [minor] = NULL;
free_disk_device(physical_disk);
}
} else {
if (disk_to_remove->uses == 0) {
2002e1c: 80 a0 a0 00 cmp %g2, 0
2002e20: 12 bf ff fb bne 2002e0c <rtems_disk_delete+0x174> <== NEVER TAKEN
2002e24: 05 00 80 85 sethi %hi(0x2021400), %g2
--physical_disk->uses;
rtems_filesystem_split_dev_t(disk_to_remove->dev, major, minor);
2002e28: c8 00 40 00 ld [ %g1 ], %g4
disktab [major].minor [minor] = NULL;
2002e2c: c6 00 a2 9c ld [ %g2 + 0x29c ], %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);
2002e30: c4 00 60 04 ld [ %g1 + 4 ], %g2
disktab [major].minor [minor] = NULL;
2002e34: 83 29 20 03 sll %g4, 3, %g1
2002e38: 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;
2002e3c: c2 04 e0 14 ld [ %l3 + 0x14 ], %g1
rtems_filesystem_split_dev_t(disk_to_remove->dev, major, minor);
disktab [major].minor [minor] = NULL;
2002e40: 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;
2002e44: 82 00 7f ff add %g1, -1, %g1
rtems_filesystem_split_dev_t(disk_to_remove->dev, major, minor);
disktab [major].minor [minor] = NULL;
2002e48: c0 20 c0 02 clr [ %g3 + %g2 ]
free_disk_device(disk_to_remove);
2002e4c: 7f ff fe ba call 2002934 <free_disk_device>
2002e50: c2 24 e0 14 st %g1, [ %l3 + 0x14 ]
}
dd->deleted = true;
rtems_disk_cleanup(dd);
disk_unlock();
2002e54: 7f ff ff 44 call 2002b64 <disk_unlock>
2002e58: b0 10 00 10 mov %l0, %i0
2002e5c: 30 bf ff ee b,a 2002e14 <rtems_disk_delete+0x17c>
return sc;
}
dd = get_disk_entry(dev, true);
if (dd == NULL) {
disk_unlock();
2002e60: 7f ff ff 41 call 2002b64 <disk_unlock> <== NOT EXECUTED
2002e64: a0 10 20 04 mov 4, %l0 <== NOT EXECUTED
return RTEMS_INVALID_ID;
2002e68: 30 bf ff 92 b,a 2002cb0 <rtems_disk_delete+0x18> <== NOT EXECUTED
0200298c <rtems_disk_io_done>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_disk_io_done(void)
{
200298c: 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) {
2002990: 21 00 80 85 sethi %hi(0x2021400), %l0
2002994: c2 04 22 a0 ld [ %l0 + 0x2a0 ], %g1 ! 20216a0 <disktab_size>
2002998: 80 a0 60 00 cmp %g1, 0
200299c: 02 80 00 20 be 2002a1c <rtems_disk_io_done+0x90> <== NEVER TAKEN
20029a0: 23 00 80 85 sethi %hi(0x2021400), %l1
20029a4: a8 10 20 00 clr %l4
20029a8: ac 14 62 9c or %l1, 0x29c, %l6
20029ac: aa 14 22 a0 or %l0, 0x2a0, %l5
rtems_disk_device_table *dtab = disktab + major;
20029b0: c6 05 80 00 ld [ %l6 ], %g3
20029b4: 83 2d 20 03 sll %l4, 3, %g1
20029b8: a6 00 c0 01 add %g3, %g1, %l3
for (minor = 0; minor < dtab->size; ++minor) {
20029bc: c4 04 e0 04 ld [ %l3 + 4 ], %g2
20029c0: 80 a0 a0 00 cmp %g2, 0
20029c4: 02 80 00 21 be 2002a48 <rtems_disk_io_done+0xbc>
20029c8: a4 10 20 00 clr %l2
20029cc: c6 00 c0 01 ld [ %g3 + %g1 ], %g3
rtems_disk_device *dd = dtab->minor [minor];
20029d0: 83 2c a0 02 sll %l2, 2, %g1
20029d4: c2 00 c0 01 ld [ %g3 + %g1 ], %g1
if (dd != NULL) {
20029d8: 90 90 60 00 orcc %g1, 0, %o0
20029dc: 02 80 00 06 be 20029f4 <rtems_disk_io_done+0x68> <== ALWAYS TAKEN
20029e0: a4 04 a0 01 inc %l2
free_disk_device(dd);
20029e4: 7f ff ff d4 call 2002934 <free_disk_device> <== NOT EXECUTED
20029e8: 01 00 00 00 nop <== NOT EXECUTED
20029ec: c4 04 e0 04 ld [ %l3 + 4 ], %g2 <== NOT EXECUTED
20029f0: c6 04 c0 00 ld [ %l3 ], %g3 <== 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) {
20029f4: 80 a0 80 12 cmp %g2, %l2
20029f8: 18 bf ff f7 bgu 20029d4 <rtems_disk_io_done+0x48>
20029fc: 83 2c a0 02 sll %l2, 2, %g1
if (dd != NULL) {
free_disk_device(dd);
}
}
free(dtab->minor);
2002a00: 40 00 04 e4 call 2003d90 <free>
2002a04: 90 10 00 03 mov %g3, %o0
rtems_disk_io_done(void)
{
rtems_device_major_number major = 0;
rtems_device_minor_number minor = 0;
for (major = 0; major < disktab_size; ++major) {
2002a08: c2 05 40 00 ld [ %l5 ], %g1
2002a0c: a8 05 20 01 inc %l4
2002a10: 80 a0 40 14 cmp %g1, %l4
2002a14: 38 bf ff e8 bgu,a 20029b4 <rtems_disk_io_done+0x28> <== ALWAYS TAKEN
2002a18: c6 05 80 00 ld [ %l6 ], %g3
free_disk_device(dd);
}
}
free(dtab->minor);
}
free(disktab);
2002a1c: d0 04 62 9c ld [ %l1 + 0x29c ], %o0 <== NOT EXECUTED
2002a20: 40 00 04 dc call 2003d90 <free>
2002a24: 25 00 80 85 sethi %hi(0x2021400), %l2
rtems_semaphore_delete(diskdevs_mutex);
2002a28: d0 04 a2 a4 ld [ %l2 + 0x2a4 ], %o0 ! 20216a4 <diskdevs_mutex>
2002a2c: 40 00 14 7a call 2007c14 <rtems_semaphore_delete>
2002a30: b0 10 20 00 clr %i0
diskdevs_mutex = RTEMS_ID_NONE;
2002a34: c0 24 a2 a4 clr [ %l2 + 0x2a4 ]
disktab = NULL;
2002a38: c0 24 62 9c clr [ %l1 + 0x29c ]
disktab_size = 0;
2002a3c: c0 24 22 a0 clr [ %l0 + 0x2a0 ]
return RTEMS_SUCCESSFUL;
}
2002a40: 81 c7 e0 08 ret
2002a44: 81 e8 00 00 restore
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) {
2002a48: c6 00 c0 01 ld [ %g3 + %g1 ], %g3
rtems_disk_io_done(void)
{
rtems_device_major_number major = 0;
rtems_device_minor_number minor = 0;
for (major = 0; major < disktab_size; ++major) {
2002a4c: a8 05 20 01 inc %l4
if (dd != NULL) {
free_disk_device(dd);
}
}
free(dtab->minor);
2002a50: 40 00 04 d0 call 2003d90 <free>
2002a54: 90 10 00 03 mov %g3, %o0
rtems_disk_io_done(void)
{
rtems_device_major_number major = 0;
rtems_device_minor_number minor = 0;
for (major = 0; major < disktab_size; ++major) {
2002a58: c2 05 40 00 ld [ %l5 ], %g1
2002a5c: 80 a0 40 14 cmp %g1, %l4
2002a60: 38 bf ff d5 bgu,a 20029b4 <rtems_disk_io_done+0x28>
2002a64: c6 05 80 00 ld [ %l6 ], %g3
free_disk_device(dd);
}
}
free(dtab->minor);
}
free(disktab);
2002a68: 10 bf ff ee b 2002a20 <rtems_disk_io_done+0x94>
2002a6c: d0 04 62 9c ld [ %l1 + 0x29c ], %o0
02002a70 <rtems_disk_io_initialize>:
}
}
rtems_status_code
rtems_disk_io_initialize(void)
{
2002a70: 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) {
2002a74: 21 00 80 85 sethi %hi(0x2021400), %l0
2002a78: c2 04 22 a0 ld [ %l0 + 0x2a0 ], %g1 ! 20216a0 <disktab_size>
2002a7c: 80 a0 60 00 cmp %g1, 0
2002a80: 12 80 00 19 bne 2002ae4 <rtems_disk_io_initialize+0x74> <== NEVER TAKEN
2002a84: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
}
disktab = calloc(size, sizeof(rtems_disk_device_table));
2002a88: 90 10 20 08 mov 8, %o0
2002a8c: 92 10 20 08 mov 8, %o1
2002a90: 40 00 04 1d call 2003b04 <calloc>
2002a94: 23 00 80 85 sethi %hi(0x2021400), %l1
2002a98: d0 24 62 9c st %o0, [ %l1 + 0x29c ] ! 202169c <disktab>
if (disktab == NULL) {
2002a9c: 80 a2 20 00 cmp %o0, 0
2002aa0: 02 80 00 11 be 2002ae4 <rtems_disk_io_initialize+0x74> <== NEVER TAKEN
2002aa4: b0 10 20 1a mov 0x1a, %i0
return RTEMS_NO_MEMORY;
}
diskdevs_protected = false;
2002aa8: 03 00 80 85 sethi %hi(0x2021400), %g1
sc = rtems_semaphore_create(
2002aac: 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;
2002ab0: c0 28 62 a8 clrb [ %g1 + 0x2a8 ]
sc = rtems_semaphore_create(
2002ab4: 90 12 21 56 or %o0, 0x156, %o0
2002ab8: 92 10 20 01 mov 1, %o1
2002abc: 94 10 20 10 mov 0x10, %o2
2002ac0: 96 10 20 00 clr %o3
2002ac4: 25 00 80 85 sethi %hi(0x2021400), %l2
2002ac8: 40 00 13 df call 2007a44 <rtems_semaphore_create>
2002acc: 98 14 a2 a4 or %l2, 0x2a4, %o4 ! 20216a4 <diskdevs_mutex>
RTEMS_FIFO | RTEMS_BINARY_SEMAPHORE | RTEMS_NO_INHERIT_PRIORITY
| RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL,
0,
&diskdevs_mutex
);
if (sc != RTEMS_SUCCESSFUL) {
2002ad0: 80 a2 20 00 cmp %o0, 0
2002ad4: 02 80 00 06 be 2002aec <rtems_disk_io_initialize+0x7c> <== ALWAYS TAKEN
2002ad8: 01 00 00 00 nop
free(disktab);
2002adc: 40 00 04 ad call 2003d90 <free> <== NOT EXECUTED
2002ae0: d0 04 62 9c ld [ %l1 + 0x29c ], %o0 <== NOT EXECUTED
return RTEMS_NO_MEMORY;
2002ae4: 81 c7 e0 08 ret <== NOT EXECUTED
2002ae8: 81 e8 00 00 restore <== NOT EXECUTED
}
sc = rtems_bdbuf_init();
2002aec: 40 00 27 5f call 200c868 <rtems_bdbuf_init>
2002af0: 01 00 00 00 nop
if (sc != RTEMS_SUCCESSFUL) {
2002af4: 80 a2 20 00 cmp %o0, 0
2002af8: 12 80 00 05 bne 2002b0c <rtems_disk_io_initialize+0x9c> <== NEVER TAKEN
2002afc: 82 10 20 08 mov 8, %g1
free(disktab);
return RTEMS_UNSATISFIED;
}
disktab_size = size;
2002b00: c2 24 22 a0 st %g1, [ %l0 + 0x2a0 ]
return RTEMS_SUCCESSFUL;
}
2002b04: 81 c7 e0 08 ret
2002b08: 91 e8 20 00 restore %g0, 0, %o0
return RTEMS_NO_MEMORY;
}
sc = rtems_bdbuf_init();
if (sc != RTEMS_SUCCESSFUL) {
rtems_semaphore_delete(diskdevs_mutex);
2002b0c: d0 04 a2 a4 ld [ %l2 + 0x2a4 ], %o0 <== NOT EXECUTED
2002b10: 40 00 14 41 call 2007c14 <rtems_semaphore_delete> <== NOT EXECUTED
2002b14: b0 10 20 0d mov 0xd, %i0 <== NOT EXECUTED
free(disktab);
2002b18: 40 00 04 9e call 2003d90 <free> <== NOT EXECUTED
2002b1c: d0 04 62 9c ld [ %l1 + 0x29c ], %o0 <== NOT EXECUTED
return RTEMS_UNSATISFIED;
2002b20: 81 c7 e0 08 ret <== NOT EXECUTED
2002b24: 81 e8 00 00 restore <== NOT EXECUTED
02002ba0 <rtems_disk_next>:
return RTEMS_SUCCESSFUL;
}
rtems_disk_device *
rtems_disk_next(dev_t dev)
{
2002ba0: 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) {
2002ba4: 80 a6 3f ff cmp %i0, -1
2002ba8: 02 80 00 38 be 2002c88 <rtems_disk_next+0xe8>
2002bac: 80 a6 7f ff cmp %i1, -1
rtems_filesystem_split_dev_t(dev, major, minor);
/* If minor wraps around */
if ((minor + 1) < minor) {
2002bb0: a0 06 60 01 add %i1, 1, %l0
2002bb4: 80 a4 00 19 cmp %l0, %i1
2002bb8: 0a 80 00 22 bcs 2002c40 <rtems_disk_next+0xa0> <== NEVER TAKEN
2002bbc: a2 10 00 18 mov %i0, %l1
} else {
++minor;
}
}
sc = disk_lock();
2002bc0: 7f ff ff da call 2002b28 <disk_lock>
2002bc4: 01 00 00 00 nop
if (sc != RTEMS_SUCCESSFUL) {
2002bc8: 80 a2 20 00 cmp %o0, 0
2002bcc: 12 80 00 21 bne 2002c50 <rtems_disk_next+0xb0> <== NEVER TAKEN
2002bd0: 03 00 80 85 sethi %hi(0x2021400), %g1
return NULL;
}
if (major >= disktab_size) {
2002bd4: c8 00 62 a0 ld [ %g1 + 0x2a0 ], %g4 ! 20216a0 <disktab_size>
2002bd8: 80 a4 40 04 cmp %l1, %g4
2002bdc: 1a 80 00 27 bcc 2002c78 <rtems_disk_next+0xd8> <== NEVER TAKEN
2002be0: 03 00 80 85 sethi %hi(0x2021400), %g1
disk_unlock();
return NULL;
}
dtab = disktab + major;
2002be4: c6 00 62 9c ld [ %g1 + 0x29c ], %g3 ! 202169c <disktab>
2002be8: a5 2c 60 03 sll %l1, 3, %l2
2002bec: c2 00 c0 12 ld [ %g3 + %l2 ], %g1
2002bf0: a4 00 c0 12 add %g3, %l2, %l2
while (true) {
if (dtab->minor == NULL || minor >= dtab->size) {
2002bf4: 80 a0 60 00 cmp %g1, 0
2002bf8: 02 80 00 18 be 2002c58 <rtems_disk_next+0xb8>
2002bfc: a7 2c 20 02 sll %l0, 2, %l3
2002c00: c4 04 a0 04 ld [ %l2 + 4 ], %g2
2002c04: 80 a4 00 02 cmp %l0, %g2
2002c08: 3a 80 00 15 bcc,a 2002c5c <rtems_disk_next+0xbc>
2002c0c: a2 04 60 01 inc %l1
disk_unlock();
return NULL;
}
dtab = disktab + major;
} else if (dtab->minor [minor] == NULL) {
2002c10: c4 00 40 13 ld [ %g1 + %l3 ], %g2
2002c14: 80 a0 a0 00 cmp %g2, 0
2002c18: 02 bf ff f7 be 2002bf4 <rtems_disk_next+0x54>
2002c1c: a0 04 20 01 inc %l0
++minor;
} else {
++dtab->minor [minor]->uses;
2002c20: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1
2002c24: 82 00 60 01 inc %g1
disk_unlock();
2002c28: 7f ff ff cf call 2002b64 <disk_unlock>
2002c2c: c2 20 a0 14 st %g1, [ %g2 + 0x14 ]
return dtab->minor [minor];
2002c30: c2 04 80 00 ld [ %l2 ], %g1
2002c34: f0 00 40 13 ld [ %g1 + %l3 ], %i0
2002c38: 81 c7 e0 08 ret
2002c3c: 81 e8 00 00 restore
rtems_filesystem_split_dev_t(dev, major, minor);
/* If minor wraps around */
if ((minor + 1) < minor) {
/* If major wraps around */
if ((major + 1) < major) {
2002c40: a2 06 20 01 add %i0, 1, %l1 <== NOT EXECUTED
2002c44: 80 a4 40 18 cmp %l1, %i0 <== NOT EXECUTED
2002c48: 1a bf ff de bcc 2002bc0 <rtems_disk_next+0x20> <== NOT EXECUTED
2002c4c: a0 10 20 00 clr %l0 <== NOT EXECUTED
disk_unlock();
return dtab->minor [minor];
}
}
}
2002c50: 81 c7 e0 08 ret <== NOT EXECUTED
2002c54: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
dtab = disktab + major;
while (true) {
if (dtab->minor == NULL || minor >= dtab->size) {
minor = 0;
++major;
2002c58: a2 04 60 01 inc %l1
if (major >= disktab_size) {
2002c5c: 80 a1 00 11 cmp %g4, %l1
2002c60: 08 80 00 06 bleu 2002c78 <rtems_disk_next+0xd8>
2002c64: a5 2c 60 03 sll %l1, 3, %l2
disk_unlock();
return NULL;
}
dtab = disktab + major;
2002c68: a0 10 20 00 clr %l0
2002c6c: c2 00 c0 12 ld [ %g3 + %l2 ], %g1
return NULL;
}
dtab = disktab + major;
while (true) {
if (dtab->minor == NULL || minor >= dtab->size) {
2002c70: 10 bf ff e1 b 2002bf4 <rtems_disk_next+0x54>
2002c74: a4 00 c0 12 add %g3, %l2, %l2
minor = 0;
++major;
if (major >= disktab_size) {
disk_unlock();
2002c78: 7f ff ff bb call 2002b64 <disk_unlock>
2002c7c: b0 10 20 00 clr %i0
return NULL;
2002c80: 81 c7 e0 08 ret
2002c84: 81 e8 00 00 restore
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) {
2002c88: a0 10 20 00 clr %l0
2002c8c: 12 bf ff c9 bne 2002bb0 <rtems_disk_next+0x10> <== NEVER TAKEN
2002c90: a2 10 20 00 clr %l1
2002c94: 30 bf ff cb b,a 2002bc0 <rtems_disk_next+0x20>
02002ec0 <rtems_disk_obtain>:
return RTEMS_SUCCESSFUL;
}
rtems_disk_device *
rtems_disk_obtain(dev_t dev)
{
2002ec0: 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);
2002ec4: 7f ff fe 00 call 20026c4 <sparc_disable_interrupts>
2002ec8: a4 10 00 18 mov %i0, %l2
2002ecc: a0 10 00 08 mov %o0, %l0
if (!diskdevs_protected) {
2002ed0: 03 00 80 85 sethi %hi(0x2021400), %g1
2002ed4: c2 08 62 a8 ldub [ %g1 + 0x2a8 ], %g1 ! 20216a8 <diskdevs_protected>
2002ed8: 80 a0 60 00 cmp %g1, 0
2002edc: 12 80 00 0a bne 2002f04 <rtems_disk_obtain+0x44> <== NEVER TAKEN
2002ee0: 92 10 00 19 mov %i1, %o1
/* Frequent and quickest case */
dd = get_disk_entry(dev, false);
2002ee4: 90 10 00 18 mov %i0, %o0
2002ee8: 7f ff fe 6e call 20028a0 <get_disk_entry>
2002eec: 94 10 20 00 clr %o2
2002ef0: b0 10 00 08 mov %o0, %i0
rtems_interrupt_enable(level);
2002ef4: 7f ff fd f8 call 20026d4 <sparc_enable_interrupts>
2002ef8: 90 10 00 10 mov %l0, %o0
2002efc: 81 c7 e0 08 ret
2002f00: 81 e8 00 00 restore
} else {
rtems_interrupt_enable(level);
2002f04: 7f ff fd f4 call 20026d4 <sparc_enable_interrupts> <== NOT EXECUTED
2002f08: b0 10 20 00 clr %i0 <== NOT EXECUTED
sc = disk_lock();
2002f0c: 7f ff ff 07 call 2002b28 <disk_lock> <== NOT EXECUTED
2002f10: 01 00 00 00 nop <== NOT EXECUTED
if (sc == RTEMS_SUCCESSFUL) {
2002f14: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2002f18: 12 bf ff f9 bne 2002efc <rtems_disk_obtain+0x3c> <== NOT EXECUTED
2002f1c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
dd = get_disk_entry(dev, false);
2002f20: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2002f24: 7f ff fe 5f call 20028a0 <get_disk_entry> <== NOT EXECUTED
2002f28: 94 10 20 00 clr %o2 <== NOT EXECUTED
disk_unlock();
2002f2c: 7f ff ff 0e call 2002b64 <disk_unlock> <== NOT EXECUTED
2002f30: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
}
}
return dd;
}
2002f34: 81 c7 e0 08 ret <== NOT EXECUTED
2002f38: 81 e8 00 00 restore <== NOT EXECUTED
02022dcc <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,
2022dcc: 13 00 81 a0 sethi %hi(0x2068000), %o1 <== NOT EXECUTED
2022dd0: 15 00 81 b1 sethi %hi(0x206c400), %o2 <== NOT EXECUTED
2022dd4: 17 00 81 b1 sethi %hi(0x206c400), %o3 <== NOT EXECUTED
2022dd8: 92 12 60 40 or %o1, 0x40, %o1 <== NOT EXECUTED
2022ddc: 94 12 a3 50 or %o2, 0x350, %o2 <== NOT EXECUTED
2022de0: 96 12 e3 18 or %o3, 0x318, %o3 <== NOT EXECUTED
2022de4: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2022de8: 40 00 00 03 call 2022df4 <msdos_initialize_support> <== NOT EXECUTED
2022dec: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02007ee8 <rtems_error>:
int rtems_error(
rtems_error_code_t error_flag,
const char *printf_format,
...
)
{
2007ee8: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
va_list arglist;
int chars_written;
va_start(arglist, printf_format);
2007eec: 94 07 a0 4c add %fp, 0x4c, %o2 <== NOT EXECUTED
2007ef0: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED
2007ef4: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED
2007ef8: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED
2007efc: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED
chars_written = rtems_verror(error_flag, printf_format, arglist);
2007f00: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2007f04: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2007f08: 7f ff ff 7e call 2007d00 <rtems_verror> <== NOT EXECUTED
2007f0c: d4 27 bf fc st %o2, [ %fp + -4 ] <== NOT EXECUTED
va_end(arglist);
return chars_written;
}
2007f10: 81 c7 e0 08 ret <== NOT EXECUTED
2007f14: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02002b20 <rtems_filesystem_dirname>:
}
int rtems_filesystem_dirname(
const char *pathname
)
{
2002b20: 9d e3 bf a0 save %sp, -96, %sp
int len = strlen( pathname );
2002b24: 40 00 3a 18 call 2011384 <strlen>
2002b28: 90 10 00 18 mov %i0, %o0
while ( len ) {
2002b2c: a0 92 20 00 orcc %o0, 0, %l0
2002b30: 02 80 00 0d be 2002b64 <rtems_filesystem_dirname+0x44> <== NEVER TAKEN
2002b34: 01 00 00 00 nop
2002b38: 10 80 00 05 b 2002b4c <rtems_filesystem_dirname+0x2c>
2002b3c: b0 06 00 10 add %i0, %l0, %i0
2002b40: 80 a4 20 00 cmp %l0, 0
2002b44: 02 80 00 08 be 2002b64 <rtems_filesystem_dirname+0x44>
2002b48: 01 00 00 00 nop
len--;
if ( rtems_filesystem_is_separator( pathname[len] ) )
2002b4c: d0 4e 3f ff ldsb [ %i0 + -1 ], %o0
2002b50: 40 00 04 a9 call 2003df4 <rtems_filesystem_is_separator>
2002b54: a0 04 3f ff add %l0, -1, %l0
2002b58: 80 a2 20 00 cmp %o0, 0
2002b5c: 02 bf ff f9 be 2002b40 <rtems_filesystem_dirname+0x20>
2002b60: b0 06 3f ff add %i0, -1, %i0
break;
}
return len;
}
2002b64: 81 c7 e0 08 ret
2002b68: 91 e8 00 10 restore %g0, %l0, %o0
02002c70 <rtems_filesystem_evaluate_path>:
size_t pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc,
int follow_link
)
{
2002c70: 9d e3 bf 98 save %sp, -104, %sp
/*
* Verify Input parameters.
*/
if ( !pathname )
2002c74: 80 a6 20 00 cmp %i0, 0
2002c78: 02 80 00 17 be 2002cd4 <rtems_filesystem_evaluate_path+0x64><== NEVER TAKEN
2002c7c: c0 27 bf fc clr [ %fp + -4 ]
rtems_set_errno_and_return_minus_one( EFAULT );
if ( !pathloc )
2002c80: 80 a6 e0 00 cmp %i3, 0
2002c84: 02 80 00 0e be 2002cbc <rtems_filesystem_evaluate_path+0x4c><== NEVER TAKEN
2002c88: 90 10 00 18 mov %i0, %o0
/*
* Evaluate the path using the optable evalpath.
*/
rtems_filesystem_get_start_loc( pathname, &i, pathloc );
2002c8c: 92 07 bf fc add %fp, -4, %o1
2002c90: 40 00 04 36 call 2003d68 <rtems_filesystem_get_start_loc>
2002c94: 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],
2002c98: d0 07 bf fc ld [ %fp + -4 ], %o0
2002c9c: 94 10 00 1a mov %i2, %o2
2002ca0: 92 26 40 08 sub %i1, %o0, %o1
2002ca4: 96 10 00 1b mov %i3, %o3
2002ca8: 90 06 00 08 add %i0, %o0, %o0
2002cac: 7f ff ff b0 call 2002b6c <rtems_filesystem_evaluate_relative_path>
2002cb0: 98 10 00 1c mov %i4, %o4
pathnamelen - i,
flags,
pathloc,
follow_link );
}
2002cb4: 81 c7 e0 08 ret
2002cb8: 91 e8 00 08 restore %g0, %o0, %o0
if ( !pathname )
rtems_set_errno_and_return_minus_one( EFAULT );
if ( !pathloc )
rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */
2002cbc: 40 00 35 e5 call 2010450 <__errno> <== NOT EXECUTED
2002cc0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2002cc4: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2002cc8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2002ccc: 81 c7 e0 08 ret <== NOT EXECUTED
2002cd0: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Verify Input parameters.
*/
if ( !pathname )
rtems_set_errno_and_return_minus_one( EFAULT );
2002cd4: 40 00 35 df call 2010450 <__errno> <== NOT EXECUTED
2002cd8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2002cdc: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED
2002ce0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2002ce4: 81 c7 e0 08 ret <== NOT EXECUTED
2002ce8: 81 e8 00 00 restore <== NOT EXECUTED
02002b6c <rtems_filesystem_evaluate_relative_path>:
size_t pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc,
int follow_link
)
{
2002b6c: 9d e3 bf a0 save %sp, -96, %sp
/*
* Verify Input parameters.
*/
if ( !pathname )
2002b70: 80 a6 20 00 cmp %i0, 0
2002b74: 02 80 00 33 be 2002c40 <rtems_filesystem_evaluate_relative_path+0xd4><== NEVER TAKEN
2002b78: 80 a6 e0 00 cmp %i3, 0
rtems_set_errno_and_return_minus_one( EFAULT );
if ( !pathloc )
2002b7c: 02 80 00 37 be 2002c58 <rtems_filesystem_evaluate_relative_path+0xec><== NEVER TAKEN
2002b80: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */
if ( !pathloc->ops->evalpath_h )
2002b84: c2 06 e0 0c ld [ %i3 + 0xc ], %g1
2002b88: c2 00 40 00 ld [ %g1 ], %g1
2002b8c: 80 a0 60 00 cmp %g1, 0
2002b90: 02 80 00 26 be 2002c28 <rtems_filesystem_evaluate_relative_path+0xbc><== NEVER TAKEN
2002b94: 90 10 00 18 mov %i0, %o0
rtems_set_errno_and_return_minus_one( ENOTSUP );
result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc );
2002b98: 92 10 00 19 mov %i1, %o1
2002b9c: 94 10 00 1a mov %i2, %o2
2002ba0: 9f c0 40 00 call %g1
2002ba4: 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 ) {
2002ba8: b0 92 20 00 orcc %o0, 0, %i0
2002bac: 12 80 00 0f bne 2002be8 <rtems_filesystem_evaluate_relative_path+0x7c>
2002bb0: 80 a7 20 00 cmp %i4, 0
2002bb4: 02 80 00 2d be 2002c68 <rtems_filesystem_evaluate_relative_path+0xfc>
2002bb8: 01 00 00 00 nop
if ( !pathloc->ops->node_type_h ){
2002bbc: c4 06 e0 0c ld [ %i3 + 0xc ], %g2
2002bc0: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1
2002bc4: 80 a0 60 00 cmp %g1, 0
2002bc8: 22 80 00 13 be,a 2002c14 <rtems_filesystem_evaluate_relative_path+0xa8><== NEVER TAKEN
2002bcc: 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 );
2002bd0: 9f c0 40 00 call %g1
2002bd4: 90 10 00 1b mov %i3, %o0
if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) ||
2002bd8: 90 02 3f fd add %o0, -3, %o0
2002bdc: 80 a2 20 01 cmp %o0, 1
2002be0: 28 80 00 04 bleu,a 2002bf0 <rtems_filesystem_evaluate_relative_path+0x84>
2002be4: c4 06 e0 0c ld [ %i3 + 0xc ], %g2
result = (*pathloc->ops->eval_link_h)( pathloc, flags );
}
}
return result;
}
2002be8: 81 c7 e0 08 ret
2002bec: 81 e8 00 00 restore
type = (*pathloc->ops->node_type_h)( pathloc );
if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) ||
( type == RTEMS_FILESYSTEM_SYM_LINK ) ) {
if ( !pathloc->ops->eval_link_h ){
2002bf0: c2 00 a0 34 ld [ %g2 + 0x34 ], %g1
2002bf4: 80 a0 60 00 cmp %g1, 0
2002bf8: 02 80 00 06 be 2002c10 <rtems_filesystem_evaluate_relative_path+0xa4><== NEVER TAKEN
2002bfc: 90 10 00 1b mov %i3, %o0
* 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 );
2002c00: 9f c0 40 00 call %g1
2002c04: 92 10 00 1a mov %i2, %o1
}
}
return result;
}
2002c08: 81 c7 e0 08 ret
2002c0c: 91 e8 00 08 restore %g0, %o0, %o0
if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) ||
( type == RTEMS_FILESYSTEM_SYM_LINK ) ) {
if ( !pathloc->ops->eval_link_h ){
rtems_filesystem_freenode( pathloc );
2002c10: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
2002c14: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2002c18: 02 80 00 04 be 2002c28 <rtems_filesystem_evaluate_relative_path+0xbc><== NOT EXECUTED
2002c1c: 01 00 00 00 nop <== NOT EXECUTED
2002c20: 9f c0 40 00 call %g1 <== NOT EXECUTED
2002c24: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
2002c28: 40 00 36 0a call 2010450 <__errno> <== NOT EXECUTED
2002c2c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2002c30: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
2002c34: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2002c38: 81 c7 e0 08 ret <== NOT EXECUTED
2002c3c: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Verify Input parameters.
*/
if ( !pathname )
rtems_set_errno_and_return_minus_one( EFAULT );
2002c40: 40 00 36 04 call 2010450 <__errno> <== NOT EXECUTED
2002c44: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2002c48: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED
2002c4c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2002c50: 81 c7 e0 08 ret <== NOT EXECUTED
2002c54: 81 e8 00 00 restore <== NOT EXECUTED
if ( !pathloc )
rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */
2002c58: 40 00 35 fe call 2010450 <__errno> <== NOT EXECUTED
2002c5c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2002c60: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2002c64: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2002c68: 81 c7 e0 08 ret
2002c6c: 81 e8 00 00 restore
0200cdcc <rtems_filesystem_get_mount_handler>:
rtems_filesystem_fsmount_me_t
rtems_filesystem_get_mount_handler(
const char *type
)
{
200cdcc: 9d e3 bf 98 save %sp, -104, %sp
find_arg fa = {
.type = type,
.mount_h = NULL
};
200cdd0: f0 27 bf f8 st %i0, [ %fp + -8 ]
200cdd4: c0 27 bf fc clr [ %fp + -4 ]
if ( type != NULL ) {
200cdd8: 80 a6 20 00 cmp %i0, 0
200cddc: 02 80 00 07 be 200cdf8 <rtems_filesystem_get_mount_handler+0x2c><== NEVER TAKEN
200cde0: b0 10 20 00 clr %i0
rtems_filesystem_iterate( find_handler, &fa );
200cde4: 11 00 80 33 sethi %hi(0x200cc00), %o0
200cde8: 92 07 bf f8 add %fp, -8, %o1
200cdec: 7f ff ff c5 call 200cd00 <rtems_filesystem_iterate>
200cdf0: 90 12 20 08 or %o0, 8, %o0
200cdf4: f0 07 bf fc ld [ %fp + -4 ], %i0
}
return fa.mount_h;
}
200cdf8: 81 c7 e0 08 ret
200cdfc: 81 e8 00 00 restore
02002934 <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 )
{
2002934: 9d e3 bf 88 save %sp, -120, %sp
/*
* Set the default umask to "022".
*/
rtems_filesystem_umask = 022;
2002938: 21 00 80 74 sethi %hi(0x201d000), %l0
200293c: c2 04 22 10 ld [ %l0 + 0x210 ], %g1 ! 201d210 <rtems_current_user_env>
2002940: 84 10 20 12 mov 0x12, %g2
2002944: c4 20 60 2c st %g2, [ %g1 + 0x2c ]
/*
* mount the first filesystem.
*/
if ( rtems_filesystem_mount_table_size == 0 )
2002948: 03 00 80 6e sethi %hi(0x201b800), %g1
200294c: c2 00 62 b8 ld [ %g1 + 0x2b8 ], %g1 ! 201bab8 <rtems_filesystem_mount_table_size>
2002950: 80 a0 60 00 cmp %g1, 0
2002954: 02 80 00 3a be 2002a3c <rtems_filesystem_initialize+0x108><== NEVER TAKEN
2002958: 03 00 80 74 sethi %hi(0x201d000), %g1
rtems_fatal_error_occurred( 0xABCD0001 );
mt = &rtems_filesystem_mount_table[0];
200295c: c2 00 60 4c ld [ %g1 + 0x4c ], %g1 ! 201d04c <rtems_filesystem_mount_table>
status = mount( mt->device, mt->mount_point, mt->type, mt->fsoptions, NULL );
2002960: 98 10 20 00 clr %o4
2002964: d6 00 60 04 ld [ %g1 + 4 ], %o3
2002968: d0 00 60 08 ld [ %g1 + 8 ], %o0
200296c: d2 00 60 0c ld [ %g1 + 0xc ], %o1
2002970: 40 00 02 80 call 2003370 <mount>
2002974: d4 00 40 00 ld [ %g1 ], %o2
if ( status == -1 )
2002978: 80 a2 3f ff cmp %o0, -1
200297c: 02 80 00 35 be 2002a50 <rtems_filesystem_initialize+0x11c><== NEVER TAKEN
2002980: c2 04 22 10 ld [ %l0 + 0x210 ], %g1
* gonna hit performance.
*
* Till Straumann, 10/25/2002
*/
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
2002984: a4 07 bf ec add %fp, -20, %l2
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;
2002988: 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);
200298c: 23 00 80 6f sethi %hi(0x201bc00), %l1
2002990: 92 10 20 01 mov 1, %o1
2002994: 94 10 20 00 clr %o2
2002998: 96 10 00 12 mov %l2, %o3
200299c: 98 10 20 00 clr %o4
20029a0: 40 00 00 b4 call 2002c70 <rtems_filesystem_evaluate_path>
20029a4: 90 14 63 68 or %l1, 0x368, %o0
rtems_filesystem_root = loc;
20029a8: c2 04 22 10 ld [ %l0 + 0x210 ], %g1
20029ac: c4 07 bf ec ld [ %fp + -20 ], %g2
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
20029b0: 96 10 00 12 mov %l2, %o3
*
* Till Straumann, 10/25/2002
*/
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_root = loc;
20029b4: c4 20 60 18 st %g2, [ %g1 + 0x18 ]
20029b8: c4 07 bf f0 ld [ %fp + -16 ], %g2
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
20029bc: 92 10 20 01 mov 1, %o1
*
* Till Straumann, 10/25/2002
*/
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_root = loc;
20029c0: c4 20 60 1c st %g2, [ %g1 + 0x1c ]
20029c4: c4 07 bf f4 ld [ %fp + -12 ], %g2
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
20029c8: 94 10 20 00 clr %o2
*
* Till Straumann, 10/25/2002
*/
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_root = loc;
20029cc: c4 20 60 20 st %g2, [ %g1 + 0x20 ]
20029d0: c4 07 bf f8 ld [ %fp + -8 ], %g2
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
20029d4: 98 10 20 00 clr %o4
*
* Till Straumann, 10/25/2002
*/
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_root = loc;
20029d8: c4 20 60 24 st %g2, [ %g1 + 0x24 ]
20029dc: c4 07 bf fc ld [ %fp + -4 ], %g2
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
20029e0: 90 14 63 68 or %l1, 0x368, %o0
20029e4: 40 00 00 a3 call 2002c70 <rtems_filesystem_evaluate_path>
20029e8: c4 20 60 28 st %g2, [ %g1 + 0x28 ]
rtems_filesystem_current = loc;
20029ec: c4 07 bf ec ld [ %fp + -20 ], %g2
20029f0: c2 04 22 10 ld [ %l0 + 0x210 ], %g1
*
* 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);
20029f4: 11 00 80 6f sethi %hi(0x201bc00), %o0
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_root = loc;
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_current = loc;
20029f8: c4 20 60 04 st %g2, [ %g1 + 4 ]
20029fc: c4 07 bf f0 ld [ %fp + -16 ], %g2
*
* 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);
2002a00: 90 12 23 70 or %o0, 0x370, %o0
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_root = loc;
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_current = loc;
2002a04: c4 20 60 08 st %g2, [ %g1 + 8 ]
2002a08: c4 07 bf f4 ld [ %fp + -12 ], %g2
*
* 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);
2002a0c: 92 10 21 ff mov 0x1ff, %o1
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_root = loc;
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_current = loc;
2002a10: c4 20 60 0c st %g2, [ %g1 + 0xc ]
2002a14: c4 07 bf f8 ld [ %fp + -8 ], %g2
2002a18: c4 20 60 10 st %g2, [ %g1 + 0x10 ]
2002a1c: c4 07 bf fc ld [ %fp + -4 ], %g2
*
* 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);
2002a20: 40 00 01 db call 200318c <mkdir>
2002a24: c4 20 60 14 st %g2, [ %g1 + 0x14 ]
if ( status != 0 )
2002a28: 80 a2 20 00 cmp %o0, 0
2002a2c: 12 80 00 07 bne 2002a48 <rtems_filesystem_initialize+0x114><== NEVER TAKEN
2002a30: 11 2a f3 40 sethi %hi(0xabcd0000), %o0
2002a34: 81 c7 e0 08 ret
2002a38: 81 e8 00 00 restore
/*
* mount the first filesystem.
*/
if ( rtems_filesystem_mount_table_size == 0 )
rtems_fatal_error_occurred( 0xABCD0001 );
2002a3c: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED
2002a40: 40 00 11 44 call 2006f50 <rtems_fatal_error_occurred> <== NOT EXECUTED
2002a44: 90 12 20 01 or %o0, 1, %o0 ! abcd0001 <RAM_END+0xa98d0001><== NOT EXECUTED
* created that way by the IMFS.
*/
status = mkdir( "/dev", 0777);
if ( status != 0 )
rtems_fatal_error_occurred( 0xABCD0003 );
2002a48: 40 00 11 42 call 2006f50 <rtems_fatal_error_occurred> <== NOT EXECUTED
2002a4c: 90 12 20 03 or %o0, 3, %o0 <== NOT EXECUTED
mt = &rtems_filesystem_mount_table[0];
status = mount( mt->device, mt->mount_point, mt->type, mt->fsoptions, NULL );
if ( status == -1 )
rtems_fatal_error_occurred( 0xABCD0002 );
2002a50: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED
2002a54: 40 00 11 3f call 2006f50 <rtems_fatal_error_occurred> <== NOT EXECUTED
2002a58: 90 12 20 02 or %o0, 2, %o0 ! abcd0002 <RAM_END+0xa98d0002><== NOT EXECUTED
0200cd00 <rtems_filesystem_iterate>:
bool rtems_filesystem_iterate(
rtems_per_filesystem_routine routine,
void *routine_arg
)
{
200cd00: 9d e3 bf a0 save %sp, -96, %sp
const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
rtems_chain_node *node = NULL;
bool stop = false;
while ( table_entry->type && !stop ) {
200cd04: 23 00 80 6e sethi %hi(0x201b800), %l1
200cd08: c2 04 62 98 ld [ %l1 + 0x298 ], %g1 ! 201ba98 <rtems_filesystem_table>
bool rtems_filesystem_iterate(
rtems_per_filesystem_routine routine,
void *routine_arg
)
{
200cd0c: a0 10 00 18 mov %i0, %l0
const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
rtems_chain_node *node = NULL;
bool stop = false;
while ( table_entry->type && !stop ) {
200cd10: 80 a0 60 00 cmp %g1, 0
200cd14: 12 80 00 07 bne 200cd30 <rtems_filesystem_iterate+0x30> <== ALWAYS TAKEN
200cd18: a2 14 62 98 or %l1, 0x298, %l1
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 );
200cd1c: 10 80 00 10 b 200cd5c <rtems_filesystem_iterate+0x5c> <== NOT EXECUTED
200cd20: 23 00 80 76 sethi %hi(0x201d800), %l1 <== NOT EXECUTED
200cd24: 80 8a 20 ff btst 0xff, %o0
200cd28: 12 80 00 27 bne 200cdc4 <rtems_filesystem_iterate+0xc4> <== ALWAYS TAKEN
200cd2c: 01 00 00 00 nop
stop = (*routine)( table_entry, routine_arg );
200cd30: 90 10 00 11 mov %l1, %o0
200cd34: 9f c4 00 00 call %l0
200cd38: 92 10 00 19 mov %i1, %o1
++table_entry;
200cd3c: a2 04 60 08 add %l1, 8, %l1
{
const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
rtems_chain_node *node = NULL;
bool stop = false;
while ( table_entry->type && !stop ) {
200cd40: c2 04 40 00 ld [ %l1 ], %g1
200cd44: 80 a0 60 00 cmp %g1, 0
200cd48: 12 bf ff f7 bne 200cd24 <rtems_filesystem_iterate+0x24>
200cd4c: b0 10 00 08 mov %o0, %i0
stop = (*routine)( table_entry, routine_arg );
++table_entry;
}
if ( !stop ) {
200cd50: 80 8a 20 ff btst 0xff, %o0
200cd54: 12 80 00 1a bne 200cdbc <rtems_filesystem_iterate+0xbc>
200cd58: 23 00 80 76 sethi %hi(0x201d800), %l1
200cd5c: d0 04 61 e0 ld [ %l1 + 0x1e0 ], %o0 ! 201d9e0 <rtems_libio_semaphore>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
200cd60: 27 00 80 74 sethi %hi(0x201d000), %l3
200cd64: 92 10 20 00 clr %o1
200cd68: 7f ff e6 db call 20068d4 <rtems_semaphore_obtain>
200cd6c: 94 10 20 00 clr %o2
200cd70: e4 04 e2 18 ld [ %l3 + 0x218 ], %l2
200cd74: a6 14 e2 18 or %l3, 0x218, %l3
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200cd78: a6 04 e0 04 add %l3, 4, %l3
rtems_libio_lock();
for (
200cd7c: 80 a4 80 13 cmp %l2, %l3
200cd80: 12 80 00 06 bne 200cd98 <rtems_filesystem_iterate+0x98>
200cd84: b0 10 20 00 clr %i0
200cd88: 30 80 00 0b b,a 200cdb4 <rtems_filesystem_iterate+0xb4>
200cd8c: 80 8a 20 ff btst 0xff, %o0
200cd90: 12 80 00 09 bne 200cdb4 <rtems_filesystem_iterate+0xb4>
200cd94: 01 00 00 00 nop
!rtems_chain_is_tail( &filesystem_chain, node ) && !stop;
node = rtems_chain_next( node )
) {
const filesystem_node *fsn = (filesystem_node *) node;
stop = (*routine)( &fsn->entry, routine_arg );
200cd98: 90 04 a0 08 add %l2, 8, %o0
200cd9c: 9f c4 00 00 call %l0
200cda0: 92 10 00 19 mov %i1, %o1
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
200cda4: e4 04 80 00 ld [ %l2 ], %l2
++table_entry;
}
if ( !stop ) {
rtems_libio_lock();
for (
200cda8: 80 a4 80 13 cmp %l2, %l3
200cdac: 12 bf ff f8 bne 200cd8c <rtems_filesystem_iterate+0x8c>
200cdb0: b0 10 00 08 mov %o0, %i0
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
200cdb4: 7f ff e7 0f call 20069f0 <rtems_semaphore_release>
200cdb8: d0 04 61 e0 ld [ %l1 + 0x1e0 ], %o0
}
rtems_libio_unlock();
}
return stop;
}
200cdbc: 81 c7 e0 08 ret
200cdc0: 81 e8 00 00 restore
200cdc4: 81 c7 e0 08 ret
200cdc8: 81 e8 00 00 restore
020032fc <rtems_filesystem_mount_iterate>:
bool rtems_filesystem_mount_iterate(
rtems_per_filesystem_mount_routine routine,
void *routine_arg
)
{
20032fc: 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 );
2003300: 21 00 80 76 sethi %hi(0x201d800), %l0
2003304: d0 04 21 e0 ld [ %l0 + 0x1e0 ], %o0 ! 201d9e0 <rtems_libio_semaphore>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
2003308: 27 00 80 74 sethi %hi(0x201d000), %l3
200330c: 92 10 20 00 clr %o1
2003310: 40 00 0d 71 call 20068d4 <rtems_semaphore_obtain>
2003314: 94 10 20 00 clr %o2
2003318: e2 04 e1 f0 ld [ %l3 + 0x1f0 ], %l1
200331c: a4 10 00 18 mov %i0, %l2
2003320: a6 14 e1 f0 or %l3, 0x1f0, %l3
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
2003324: a6 04 e0 04 add %l3, 4, %l3
rtems_chain_node *node = NULL;
bool stop = false;
rtems_libio_lock();
for (
2003328: 80 a4 40 13 cmp %l1, %l3
200332c: 12 80 00 06 bne 2003344 <rtems_filesystem_mount_iterate+0x48><== ALWAYS TAKEN
2003330: b0 10 20 00 clr %i0
2003334: 30 80 00 0b b,a 2003360 <rtems_filesystem_mount_iterate+0x64><== NOT EXECUTED
2003338: 80 8a 20 ff btst 0xff, %o0
200333c: 12 80 00 09 bne 2003360 <rtems_filesystem_mount_iterate+0x64><== NEVER TAKEN
2003340: 01 00 00 00 nop
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 );
2003344: 90 10 00 11 mov %l1, %o0
2003348: 9f c4 80 00 call %l2
200334c: 92 10 00 19 mov %i1, %o1
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
2003350: e2 04 40 00 ld [ %l1 ], %l1
{
rtems_chain_node *node = NULL;
bool stop = false;
rtems_libio_lock();
for (
2003354: 80 a4 40 13 cmp %l1, %l3
2003358: 12 bf ff f8 bne 2003338 <rtems_filesystem_mount_iterate+0x3c>
200335c: b0 10 00 08 mov %o0, %i0
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
2003360: 40 00 0d a4 call 20069f0 <rtems_semaphore_release>
2003364: d0 04 21 e0 ld [ %l0 + 0x1e0 ], %o0
stop = (*routine)( mt_entry, routine_arg );
}
rtems_libio_unlock();
return stop;
}
2003368: 81 c7 e0 08 ret
200336c: 81 e8 00 00 restore
02002ab4 <rtems_filesystem_prefix_separators>:
int rtems_filesystem_prefix_separators(
const char *pathname,
int pathnamelen
)
{
2002ab4: 9d e3 bf a0 save %sp, -96, %sp
2002ab8: a0 10 00 18 mov %i0, %l0
/*
* Eat any separators at start of the path.
*/
int stripped = 0;
while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
2002abc: 80 a6 60 00 cmp %i1, 0
2002ac0: 02 80 00 15 be 2002b14 <rtems_filesystem_prefix_separators+0x60><== NEVER TAKEN
2002ac4: d0 0e 00 00 ldub [ %i0 ], %o0
2002ac8: 91 2a 20 18 sll %o0, 0x18, %o0
2002acc: 80 a2 20 00 cmp %o0, 0
2002ad0: 12 80 00 0a bne 2002af8 <rtems_filesystem_prefix_separators+0x44><== ALWAYS TAKEN
2002ad4: b0 10 20 00 clr %i0
2002ad8: 30 80 00 10 b,a 2002b18 <rtems_filesystem_prefix_separators+0x64><== NOT EXECUTED
2002adc: 80 a6 40 18 cmp %i1, %i0
2002ae0: 02 80 00 0b be 2002b0c <rtems_filesystem_prefix_separators+0x58><== NEVER TAKEN
2002ae4: d0 0c 00 18 ldub [ %l0 + %i0 ], %o0
2002ae8: 91 2a 20 18 sll %o0, 0x18, %o0
2002aec: 80 a2 20 00 cmp %o0, 0
2002af0: 02 80 00 0a be 2002b18 <rtems_filesystem_prefix_separators+0x64><== NEVER TAKEN
2002af4: 01 00 00 00 nop
2002af8: 40 00 04 bf call 2003df4 <rtems_filesystem_is_separator>
2002afc: 91 3a 20 18 sra %o0, 0x18, %o0
2002b00: 80 a2 20 00 cmp %o0, 0
2002b04: 32 bf ff f6 bne,a 2002adc <rtems_filesystem_prefix_separators+0x28>
2002b08: b0 06 20 01 inc %i0
pathname++;
pathnamelen--;
stripped++;
}
return stripped;
}
2002b0c: 81 c7 e0 08 ret
2002b10: 81 e8 00 00 restore
{
/*
* Eat any separators at start of the path.
*/
int stripped = 0;
while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
2002b14: b0 10 20 00 clr %i0 <== NOT EXECUTED
2002b18: 81 c7 e0 08 ret <== NOT EXECUTED
2002b1c: 81 e8 00 00 restore <== NOT EXECUTED
0200ce00 <rtems_filesystem_register>:
int
rtems_filesystem_register(
const char *type,
rtems_filesystem_fsmount_me_t mount_h
)
{
200ce00: 9d e3 bf a0 save %sp, -96, %sp
size_t fsn_size = sizeof( filesystem_node ) + strlen(type) + 1;
200ce04: 40 00 11 60 call 2011384 <strlen>
200ce08: 90 10 00 18 mov %i0, %o0
filesystem_node *fsn = malloc( fsn_size );
200ce0c: 7f ff d8 a0 call 200308c <malloc>
200ce10: 90 02 20 11 add %o0, 0x11, %o0
char *type_storage = (char *) fsn + sizeof( filesystem_node );
if ( fsn == NULL )
200ce14: a0 92 20 00 orcc %o0, 0, %l0
200ce18: 02 80 00 24 be 200cea8 <rtems_filesystem_register+0xa8> <== NEVER TAKEN
200ce1c: a4 04 20 10 add %l0, 0x10, %l2
rtems_set_errno_and_return_minus_one( ENOMEM );
strcpy(type_storage, type);
200ce20: 92 10 00 18 mov %i0, %o1
200ce24: 40 00 11 20 call 20112a4 <strcpy>
200ce28: 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 );
200ce2c: 23 00 80 76 sethi %hi(0x201d800), %l1
200ce30: d0 04 61 e0 ld [ %l1 + 0x1e0 ], %o0 ! 201d9e0 <rtems_libio_semaphore>
200ce34: 92 10 20 00 clr %o1
200ce38: 94 10 20 00 clr %o2
fsn->entry.type = type_storage;
200ce3c: e4 24 20 08 st %l2, [ %l0 + 8 ]
200ce40: 7f ff e6 a5 call 20068d4 <rtems_semaphore_obtain>
200ce44: 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 ) {
200ce48: 7f ff ff e1 call 200cdcc <rtems_filesystem_get_mount_handler>
200ce4c: 90 10 00 18 mov %i0, %o0
200ce50: 80 a2 20 00 cmp %o0, 0
200ce54: 12 80 00 0a bne 200ce7c <rtems_filesystem_register+0x7c> <== NEVER TAKEN
200ce58: 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 );
200ce5c: 11 00 80 74 sethi %hi(0x201d000), %o0
200ce60: 7f ff e9 10 call 20072a0 <_Chain_Append>
200ce64: 90 12 22 18 or %o0, 0x218, %o0 ! 201d218 <filesystem_chain>
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
200ce68: d0 04 61 e0 ld [ %l1 + 0x1e0 ], %o0
200ce6c: 7f ff e6 e1 call 20069f0 <rtems_semaphore_release>
200ce70: b0 10 20 00 clr %i0
rtems_set_errno_and_return_minus_one( EINVAL );
}
rtems_libio_unlock();
return 0;
200ce74: 81 c7 e0 08 ret
200ce78: 81 e8 00 00 restore
200ce7c: d0 04 61 e0 ld [ %l1 + 0x1e0 ], %o0 <== NOT EXECUTED
200ce80: 7f ff e6 dc call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
200ce84: 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 );
200ce88: 7f ff d7 99 call 2002cec <free> <== NOT EXECUTED
200ce8c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
200ce90: 40 00 0d 70 call 2010450 <__errno> <== NOT EXECUTED
200ce94: 01 00 00 00 nop <== NOT EXECUTED
200ce98: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
200ce9c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
rtems_libio_unlock();
return 0;
}
200cea0: 81 c7 e0 08 ret <== NOT EXECUTED
200cea4: 81 e8 00 00 restore <== NOT EXECUTED
size_t fsn_size = sizeof( filesystem_node ) + strlen(type) + 1;
filesystem_node *fsn = malloc( fsn_size );
char *type_storage = (char *) fsn + sizeof( filesystem_node );
if ( fsn == NULL )
rtems_set_errno_and_return_minus_one( ENOMEM );
200cea8: 40 00 0d 6a call 2010450 <__errno> <== NOT EXECUTED
200ceac: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200ceb0: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
200ceb4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200ceb8: 81 c7 e0 08 ret <== NOT EXECUTED
200cebc: 81 e8 00 00 restore <== NOT EXECUTED
0200cc3c <rtems_filesystem_unregister>:
int
rtems_filesystem_unregister(
const char *type
)
{
200cc3c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_chain_node *node = NULL;
if ( type == NULL ) {
200cc40: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
200cc44: 02 80 00 29 be 200cce8 <rtems_filesystem_unregister+0xac> <== NOT EXECUTED
200cc48: 21 00 80 76 sethi %hi(0x201d800), %l0 <== 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 );
200cc4c: d0 04 21 e0 ld [ %l0 + 0x1e0 ], %o0 ! 201d9e0 <rtems_libio_semaphore><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
200cc50: 25 00 80 74 sethi %hi(0x201d000), %l2 <== NOT EXECUTED
200cc54: 92 10 20 00 clr %o1 <== NOT EXECUTED
200cc58: 7f ff e7 1f call 20068d4 <rtems_semaphore_obtain> <== NOT EXECUTED
200cc5c: 94 10 20 00 clr %o2 <== NOT EXECUTED
200cc60: e2 04 a2 18 ld [ %l2 + 0x218 ], %l1 <== NOT EXECUTED
200cc64: a4 14 a2 18 or %l2, 0x218, %l2 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200cc68: a4 04 a0 04 add %l2, 4, %l2 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
}
rtems_libio_lock();
for (
200cc6c: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED
200cc70: 32 80 00 08 bne,a 200cc90 <rtems_filesystem_unregister+0x54><== NOT EXECUTED
200cc74: d0 04 60 08 ld [ %l1 + 8 ], %o0 <== NOT EXECUTED
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
200cc78: 10 80 00 14 b 200ccc8 <rtems_filesystem_unregister+0x8c> <== NOT EXECUTED
200cc7c: d0 04 21 e0 ld [ %l0 + 0x1e0 ], %o0 <== NOT EXECUTED
200cc80: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED
200cc84: 02 80 00 11 be 200ccc8 <rtems_filesystem_unregister+0x8c> <== NOT EXECUTED
200cc88: d0 04 21 e0 ld [ %l0 + 0x1e0 ], %o0 <== 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 ) {
200cc8c: d0 04 60 08 ld [ %l1 + 8 ], %o0 <== NOT EXECUTED
200cc90: 40 00 11 57 call 20111ec <strcmp> <== NOT EXECUTED
200cc94: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
200cc98: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200cc9c: 32 bf ff f9 bne,a 200cc80 <rtems_filesystem_unregister+0x44><== NOT EXECUTED
200cca0: e2 04 40 00 ld [ %l1 ], %l1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
200cca4: 7f ff e9 8b call 20072d0 <_Chain_Extract> <== NOT EXECUTED
200cca8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
rtems_chain_extract( node );
free( fsn );
200ccac: 7f ff d8 10 call 2002cec <free> <== NOT EXECUTED
200ccb0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
200ccb4: d0 04 21 e0 ld [ %l0 + 0x1e0 ], %o0 <== NOT EXECUTED
200ccb8: 7f ff e7 4e call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
200ccbc: b0 10 20 00 clr %i0 <== NOT EXECUTED
rtems_libio_unlock();
return 0;
200ccc0: 81 c7 e0 08 ret <== NOT EXECUTED
200ccc4: 81 e8 00 00 restore <== NOT EXECUTED
200ccc8: 7f ff e7 4a call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
200cccc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
}
}
rtems_libio_unlock();
rtems_set_errno_and_return_minus_one( ENOENT );
200ccd0: 40 00 0d e0 call 2010450 <__errno> <== NOT EXECUTED
200ccd4: 01 00 00 00 nop <== NOT EXECUTED
200ccd8: 82 10 20 02 mov 2, %g1 ! 2 <PROM_START+0x2> <== NOT EXECUTED
200ccdc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
200cce0: 81 c7 e0 08 ret <== NOT EXECUTED
200cce4: 81 e8 00 00 restore <== NOT EXECUTED
)
{
rtems_chain_node *node = NULL;
if ( type == NULL ) {
rtems_set_errno_and_return_minus_one( EINVAL );
200cce8: 40 00 0d da call 2010450 <__errno> <== NOT EXECUTED
200ccec: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200ccf0: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
200ccf4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200ccf8: 81 c7 e0 08 ret <== NOT EXECUTED
200ccfc: 81 e8 00 00 restore <== NOT EXECUTED
0200786c <rtems_fsmount>:
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
200786c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
bool terminate = false;
/*
* scan through all fstab entries;
*/
while (!terminate &&
2007870: a2 10 20 00 clr %l1 <== NOT EXECUTED
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
2007874: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
bool terminate = false;
/*
* scan through all fstab entries;
*/
while (!terminate &&
2007878: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
200787c: 02 80 00 18 be 20078dc <rtems_fsmount+0x70> <== NOT EXECUTED
2007880: b0 10 20 00 clr %i0 <== 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",
2007884: 25 00 81 be sethi %hi(0x206f800), %l2 <== NOT EXECUTED
2007888: 27 00 81 91 sethi %hi(0x2064400), %l3 <== NOT EXECUTED
rc = tmp_rc;
}
}
else {
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNT_OK)) {
fprintf(stdout,"fsmount: mounting of \"%s\" to"
200788c: 2b 00 81 91 sethi %hi(0x2064400), %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"
2007890: 29 00 81 91 sethi %hi(0x2064400), %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",
2007894: a4 14 a2 c0 or %l2, 0x2c0, %l2 <== NOT EXECUTED
2007898: a6 14 e0 10 or %l3, 0x10, %l3 <== NOT EXECUTED
rc = tmp_rc;
}
}
else {
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNT_OK)) {
fprintf(stdout,"fsmount: mounting of \"%s\" to"
200789c: aa 15 60 78 or %l5, 0x78, %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"
20078a0: a8 15 20 48 or %l4, 0x48, %l4 <== 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);
20078a4: d0 04 20 04 ld [ %l0 + 4 ], %o0 <== NOT EXECUTED
20078a8: 40 00 0a 3e call 200a1a0 <rtems_mkdir> <== NOT EXECUTED
20078ac: 92 10 21 ff mov 0x1ff, %o1 <== NOT EXECUTED
if (tmp_rc != 0) {
20078b0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20078b4: 22 80 00 0f be,a 20078f0 <rtems_fsmount+0x84> <== NOT EXECUTED
20078b8: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNTPNT_CRTERR)) {
20078bc: c2 14 20 10 lduh [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
20078c0: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
20078c4: 32 80 00 20 bne,a 2007944 <rtems_fsmount+0xd8> <== NOT EXECUTED
20078c8: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED
fprintf(stdout,"fsmount: creation of mount point \"%s\" failed: %s\n",
fstab_ptr->target,
strerror(errno));
}
if (0 != (fstab_ptr->abort_reasons & FSMOUNT_MNTPNT_CRTERR)) {
20078cc: c2 14 20 12 lduh [ %l0 + 0x12 ], %g1 <== NOT EXECUTED
20078d0: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
20078d4: 22 80 00 17 be,a 2007930 <rtems_fsmount+0xc4> <== NOT EXECUTED
20078d8: a2 04 60 01 inc %l1 <== NOT EXECUTED
if (!terminate) {
fstab_ptr++;
fstab_idx++;
}
}
if (fail_idx != NULL) {
20078dc: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
20078e0: 32 80 00 02 bne,a 20078e8 <rtems_fsmount+0x7c> <== NOT EXECUTED
20078e4: e2 26 80 00 st %l1, [ %i2 ] <== NOT EXECUTED
*fail_idx = fstab_idx;
}
return rc;
}
20078e8: 81 c7 e0 08 ret <== NOT EXECUTED
20078ec: 81 e8 00 00 restore <== NOT EXECUTED
}
/*
* mount device to given mount point
*/
if (tmp_rc == 0) {
tmp_rc = mount(fstab_ptr->source,
20078f0: d2 04 20 04 ld [ %l0 + 4 ], %o1 <== NOT EXECUTED
20078f4: d4 04 20 08 ld [ %l0 + 8 ], %o2 <== NOT EXECUTED
20078f8: d6 04 20 0c ld [ %l0 + 0xc ], %o3 <== NOT EXECUTED
20078fc: 40 00 06 ca call 2009424 <mount> <== NOT EXECUTED
2007900: 98 10 20 00 clr %o4 <== NOT EXECUTED
fstab_ptr->target,
fstab_ptr->type,
fstab_ptr->options,
NULL);
if (tmp_rc != 0) {
2007904: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2007908: 02 80 00 1b be 2007974 <rtems_fsmount+0x108> <== NOT EXECUTED
200790c: c2 14 20 10 lduh [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNT_FAILED)) {
2007910: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED
2007914: 32 80 00 21 bne,a 2007998 <rtems_fsmount+0x12c> <== NOT EXECUTED
2007918: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED
" \"%s\" failed: %s\n",
fstab_ptr->source,
fstab_ptr->target,
strerror(errno));
}
if (0 != (fstab_ptr->abort_reasons & FSMOUNT_MNT_FAILED)) {
200791c: c2 14 20 12 lduh [ %l0 + 0x12 ], %g1 <== NOT EXECUTED
2007920: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED
2007924: 12 bf ff ef bne 20078e0 <rtems_fsmount+0x74> <== NOT EXECUTED
2007928: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
/*
* proceed to next entry
*/
if (!terminate) {
fstab_ptr++;
fstab_idx++;
200792c: a2 04 60 01 inc %l1 <== NOT EXECUTED
bool terminate = false;
/*
* scan through all fstab entries;
*/
while (!terminate &&
2007930: 80 a6 40 11 cmp %i1, %l1 <== NOT EXECUTED
2007934: 08 bf ff ea bleu 20078dc <rtems_fsmount+0x70> <== NOT EXECUTED
2007938: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
/*
* proceed to next entry
*/
if (!terminate) {
fstab_ptr++;
200793c: 10 bf ff da b 20078a4 <rtems_fsmount+0x38> <== NOT EXECUTED
2007940: a0 04 20 14 add %l0, 0x14, %l0 <== 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",
2007944: ec 04 20 04 ld [ %l0 + 4 ], %l6 <== NOT EXECUTED
2007948: 40 01 04 bf call 2048c44 <__errno> <== NOT EXECUTED
200794c: ee 00 60 08 ld [ %g1 + 8 ], %l7 <== NOT EXECUTED
2007950: 40 01 1f 59 call 204f6b4 <strerror> <== NOT EXECUTED
2007954: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED
2007958: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
200795c: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2007960: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED
2007964: 40 01 07 68 call 2049704 <fprintf> <== NOT EXECUTED
2007968: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED
fstab_ptr->target,
strerror(errno));
}
if (0 != (fstab_ptr->abort_reasons & FSMOUNT_MNTPNT_CRTERR)) {
200796c: 10 bf ff d9 b 20078d0 <rtems_fsmount+0x64> <== NOT EXECUTED
2007970: c2 14 20 12 lduh [ %l0 + 0x12 ], %g1 <== NOT EXECUTED
terminate = true;
rc = tmp_rc;
}
}
else {
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNT_OK)) {
2007974: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
2007978: 32 80 00 16 bne,a 20079d0 <rtems_fsmount+0x164> <== NOT EXECUTED
200797c: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED
fprintf(stdout,"fsmount: mounting of \"%s\" to"
" \"%s\" succeeded\n",
fstab_ptr->source,
fstab_ptr->target);
}
if (0 != (fstab_ptr->abort_reasons & FSMOUNT_MNT_OK)) {
2007980: c2 14 20 12 lduh [ %l0 + 0x12 ], %g1 <== NOT EXECUTED
2007984: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
2007988: 22 bf ff ea be,a 2007930 <rtems_fsmount+0xc4> <== NOT EXECUTED
200798c: a2 04 60 01 inc %l1 <== NOT EXECUTED
tmp_rc = mount(fstab_ptr->source,
fstab_ptr->target,
fstab_ptr->type,
fstab_ptr->options,
NULL);
if (tmp_rc != 0) {
2007990: 10 bf ff d3 b 20078dc <rtems_fsmount+0x70> <== NOT EXECUTED
2007994: b0 10 20 00 clr %i0 <== NOT EXECUTED
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNT_FAILED)) {
fprintf(stdout,"fsmount: mounting of \"%s\" to"
2007998: ee 04 00 00 ld [ %l0 ], %l7 <== NOT EXECUTED
200799c: fa 00 60 08 ld [ %g1 + 8 ], %i5 <== NOT EXECUTED
20079a0: 40 01 04 a9 call 2048c44 <__errno> <== NOT EXECUTED
20079a4: ec 04 20 04 ld [ %l0 + 4 ], %l6 <== NOT EXECUTED
20079a8: 40 01 1f 43 call 204f6b4 <strerror> <== NOT EXECUTED
20079ac: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED
20079b0: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
20079b4: 98 10 00 08 mov %o0, %o4 <== NOT EXECUTED
20079b8: 94 10 00 17 mov %l7, %o2 <== NOT EXECUTED
20079bc: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED
20079c0: 40 01 07 51 call 2049704 <fprintf> <== NOT EXECUTED
20079c4: 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)) {
20079c8: 10 bf ff d6 b 2007920 <rtems_fsmount+0xb4> <== NOT EXECUTED
20079cc: c2 14 20 12 lduh [ %l0 + 0x12 ], %g1 <== NOT EXECUTED
rc = tmp_rc;
}
}
else {
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNT_OK)) {
fprintf(stdout,"fsmount: mounting of \"%s\" to"
20079d0: d4 04 00 00 ld [ %l0 ], %o2 <== NOT EXECUTED
20079d4: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED
20079d8: d6 04 20 04 ld [ %l0 + 4 ], %o3 <== NOT EXECUTED
20079dc: 40 01 07 4a call 2049704 <fprintf> <== NOT EXECUTED
20079e0: 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)) {
20079e4: 10 bf ff e8 b 2007984 <rtems_fsmount+0x118> <== NOT EXECUTED
20079e8: c2 14 20 12 lduh [ %l0 + 0x12 ], %g1 <== NOT EXECUTED
020027ec <rtems_io_lookup_name>:
rtems_status_code rtems_io_lookup_name(
const char *name,
rtems_driver_name_t *device_info
)
{
20027ec: 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 );
20027f0: 40 00 3a e5 call 2011384 <strlen> <== NOT EXECUTED
20027f4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20027f8: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED
20027fc: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
2002800: 94 10 20 00 clr %o2 <== NOT EXECUTED
2002804: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2002808: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
200280c: 40 00 01 19 call 2002c70 <rtems_filesystem_evaluate_path> <== NOT EXECUTED
2002810: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED
the_jnode = loc.node_access;
if ( !loc.ops->node_type_h ) {
2002814: 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 );
2002818: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
the_jnode = loc.node_access;
if ( !loc.ops->node_type_h ) {
200281c: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 <== NOT EXECUTED
2002820: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2002824: 02 80 00 13 be 2002870 <rtems_io_lookup_name+0x84> <== NOT EXECUTED
2002828: e4 07 bf ec ld [ %fp + -20 ], %l2 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
node_type = (*loc.ops->node_type_h)( &loc );
200282c: 9f c0 40 00 call %g1 <== NOT EXECUTED
2002830: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) {
2002834: 80 a2 20 02 cmp %o0, 2 <== NOT EXECUTED
2002838: 02 80 00 1a be 20028a0 <rtems_io_lookup_name+0xb4> <== NOT EXECUTED
200283c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
2002840: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
2002844: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2002848: 02 80 00 2b be 20028f4 <rtems_io_lookup_name+0x108> <== NOT EXECUTED
200284c: 01 00 00 00 nop <== NOT EXECUTED
2002850: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
2002854: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2002858: 02 80 00 27 be 20028f4 <rtems_io_lookup_name+0x108> <== NOT EXECUTED
200285c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2002860: 9f c0 40 00 call %g1 <== NOT EXECUTED
2002864: b0 10 20 0d mov 0xd, %i0 <== NOT EXECUTED
2002868: 81 c7 e0 08 ret <== NOT EXECUTED
200286c: 81 e8 00 00 restore <== NOT EXECUTED
result = rtems_filesystem_evaluate_path( name, strlen( name ), 0x00, &loc, true );
the_jnode = loc.node_access;
if ( !loc.ops->node_type_h ) {
rtems_filesystem_freenode( &loc );
2002870: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
2002874: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2002878: 02 80 00 04 be 2002888 <rtems_io_lookup_name+0x9c> <== NOT EXECUTED
200287c: 01 00 00 00 nop <== NOT EXECUTED
2002880: 9f c0 40 00 call %g1 <== NOT EXECUTED
2002884: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
2002888: 40 00 36 f2 call 2010450 <__errno> <== NOT EXECUTED
200288c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2002890: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
2002894: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2002898: 81 c7 e0 08 ret <== NOT EXECUTED
200289c: 81 e8 00 00 restore <== NOT EXECUTED
}
node_type = (*loc.ops->node_type_h)( &loc );
if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) {
20028a0: 12 bf ff e9 bne 2002844 <rtems_io_lookup_name+0x58> <== NOT EXECUTED
20028a4: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
return RTEMS_UNSATISFIED;
}
device_info->device_name = (char *) name;
20028a8: f0 26 40 00 st %i0, [ %i1 ] <== NOT EXECUTED
device_info->device_name_length = strlen( name );
20028ac: 40 00 3a b6 call 2011384 <strlen> <== NOT EXECUTED
20028b0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20028b4: d0 26 60 04 st %o0, [ %i1 + 4 ] <== NOT EXECUTED
device_info->major = the_jnode->info.device.major;
20028b8: c4 04 a0 50 ld [ %l2 + 0x50 ], %g2 <== NOT EXECUTED
device_info->minor = the_jnode->info.device.minor;
rtems_filesystem_freenode( &loc );
20028bc: 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;
20028c0: c4 26 60 08 st %g2, [ %i1 + 8 ] <== NOT EXECUTED
device_info->minor = the_jnode->info.device.minor;
20028c4: c4 04 a0 54 ld [ %l2 + 0x54 ], %g2 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
20028c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20028cc: 02 80 00 0c be 20028fc <rtems_io_lookup_name+0x110> <== NOT EXECUTED
20028d0: c4 26 60 0c st %g2, [ %i1 + 0xc ] <== NOT EXECUTED
20028d4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
20028d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20028dc: 02 80 00 08 be 20028fc <rtems_io_lookup_name+0x110> <== NOT EXECUTED
20028e0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20028e4: 9f c0 40 00 call %g1 <== NOT EXECUTED
20028e8: b0 10 20 00 clr %i0 <== NOT EXECUTED
20028ec: 81 c7 e0 08 ret <== NOT EXECUTED
20028f0: 81 e8 00 00 restore <== NOT EXECUTED
20028f4: 81 c7 e0 08 ret <== NOT EXECUTED
20028f8: 91 e8 20 0d restore %g0, 0xd, %o0 <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
20028fc: 81 c7 e0 08 ret <== NOT EXECUTED
2002900: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
0200841c <rtems_io_register_driver>:
rtems_status_code rtems_io_register_driver(
rtems_device_major_number major,
const rtems_driver_address_table *driver_table,
rtems_device_major_number *registered_major
)
{
200841c: 9d e3 bf a0 save %sp, -96, %sp
rtems_device_major_number major_limit = _IO_Number_of_drivers;
if ( rtems_interrupt_is_in_progress() )
2008420: 03 00 80 87 sethi %hi(0x2021c00), %g1
2008424: c2 00 60 3c ld [ %g1 + 0x3c ], %g1 ! 2021c3c <_ISR_Nest_level>
rtems_device_major_number major,
const rtems_driver_address_table *driver_table,
rtems_device_major_number *registered_major
)
{
rtems_device_major_number major_limit = _IO_Number_of_drivers;
2008428: 09 00 80 87 sethi %hi(0x2021c00), %g4
if ( rtems_interrupt_is_in_progress() )
200842c: 80 a0 60 00 cmp %g1, 0
2008430: 84 10 20 12 mov 0x12, %g2
rtems_status_code rtems_io_register_driver(
rtems_device_major_number major,
const rtems_driver_address_table *driver_table,
rtems_device_major_number *registered_major
)
{
2008434: 82 10 00 19 mov %i1, %g1
rtems_device_major_number major_limit = _IO_Number_of_drivers;
if ( rtems_interrupt_is_in_progress() )
2008438: 12 80 00 49 bne 200855c <rtems_io_register_driver+0x140>
200843c: c6 01 22 60 ld [ %g4 + 0x260 ], %g3
return RTEMS_CALLED_FROM_ISR;
if ( registered_major == NULL )
2008440: 80 a6 a0 00 cmp %i2, 0
2008444: 02 80 00 4b be 2008570 <rtems_io_register_driver+0x154>
2008448: 80 a6 60 00 cmp %i1, 0
return RTEMS_INVALID_ADDRESS;
/* Set it to an invalid value */
*registered_major = major_limit;
if ( driver_table == NULL )
200844c: 02 80 00 49 be 2008570 <rtems_io_register_driver+0x154>
2008450: c6 26 80 00 st %g3, [ %i2 ]
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
2008454: c4 06 40 00 ld [ %i1 ], %g2
2008458: 80 a0 a0 00 cmp %g2, 0
200845c: 22 80 00 42 be,a 2008564 <rtems_io_register_driver+0x148>
2008460: c4 06 60 04 ld [ %i1 + 4 ], %g2
return RTEMS_INVALID_ADDRESS;
if ( rtems_io_is_empty_table( driver_table ) )
return RTEMS_INVALID_ADDRESS;
if ( major >= major_limit )
2008464: 80 a0 c0 18 cmp %g3, %i0
2008468: 08 80 00 3d bleu 200855c <rtems_io_register_driver+0x140>
200846c: 84 10 20 0a mov 0xa, %g2
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
2008470: 05 00 80 86 sethi %hi(0x2021800), %g2
2008474: c6 00 a3 a0 ld [ %g2 + 0x3a0 ], %g3 ! 2021ba0 <_Thread_Dispatch_disable_level>
2008478: 86 00 e0 01 inc %g3
200847c: c6 20 a3 a0 st %g3, [ %g2 + 0x3a0 ]
return RTEMS_INVALID_NUMBER;
_Thread_Disable_dispatch();
if ( major == 0 ) {
2008480: 80 a6 20 00 cmp %i0, 0
2008484: 12 80 00 2b bne 2008530 <rtems_io_register_driver+0x114>
2008488: 05 00 80 87 sethi %hi(0x2021c00), %g2
static rtems_status_code rtems_io_obtain_major_number(
rtems_device_major_number *major
)
{
rtems_device_major_number n = _IO_Number_of_drivers;
200848c: da 01 22 60 ld [ %g4 + 0x260 ], %o5
rtems_device_major_number m = 0;
/* major is error checked by caller */
for ( m = 0; m < n; ++m ) {
2008490: 80 a3 60 00 cmp %o5, 0
2008494: 02 80 00 3a be 200857c <rtems_io_register_driver+0x160> <== NEVER TAKEN
2008498: d8 00 a2 64 ld [ %g2 + 0x264 ], %o4
200849c: 10 80 00 05 b 20084b0 <rtems_io_register_driver+0x94>
20084a0: 86 10 00 0c mov %o4, %g3
20084a4: 80 a3 40 18 cmp %o5, %i0
20084a8: 08 80 00 0b bleu 20084d4 <rtems_io_register_driver+0xb8>
20084ac: 86 00 e0 18 add %g3, 0x18, %g3
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
20084b0: c8 00 c0 00 ld [ %g3 ], %g4
20084b4: 80 a1 20 00 cmp %g4, 0
20084b8: 32 bf ff fb bne,a 20084a4 <rtems_io_register_driver+0x88>
20084bc: b0 06 20 01 inc %i0
20084c0: c8 00 e0 04 ld [ %g3 + 4 ], %g4
20084c4: 80 a1 20 00 cmp %g4, 0
20084c8: 32 bf ff f7 bne,a 20084a4 <rtems_io_register_driver+0x88>
20084cc: b0 06 20 01 inc %i0
}
/* Assigns invalid value in case of failure */
*major = m;
if ( m != n )
20084d0: 80 a3 40 18 cmp %o5, %i0
20084d4: 02 80 00 2b be 2008580 <rtems_io_register_driver+0x164>
20084d8: f0 26 80 00 st %i0, [ %i2 ]
20084dc: 85 2e 20 03 sll %i0, 3, %g2
20084e0: 87 2e 20 05 sll %i0, 5, %g3
20084e4: 84 20 c0 02 sub %g3, %g2, %g2
20084e8: 84 03 00 02 add %o4, %g2, %g2
}
*registered_major = major;
}
_IO_Driver_address_table [major] = *driver_table;
20084ec: c6 00 40 00 ld [ %g1 ], %g3
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
20084f0: b2 10 20 00 clr %i1
}
*registered_major = major;
}
_IO_Driver_address_table [major] = *driver_table;
20084f4: c6 20 80 00 st %g3, [ %g2 ]
20084f8: c6 00 60 04 ld [ %g1 + 4 ], %g3
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
20084fc: b4 10 20 00 clr %i2
}
*registered_major = major;
}
_IO_Driver_address_table [major] = *driver_table;
2008500: c6 20 a0 04 st %g3, [ %g2 + 4 ]
2008504: c6 00 60 08 ld [ %g1 + 8 ], %g3
2008508: c6 20 a0 08 st %g3, [ %g2 + 8 ]
200850c: c6 00 60 0c ld [ %g1 + 0xc ], %g3
2008510: c6 20 a0 0c st %g3, [ %g2 + 0xc ]
2008514: c6 00 60 10 ld [ %g1 + 0x10 ], %g3
2008518: c6 20 a0 10 st %g3, [ %g2 + 0x10 ]
200851c: c2 00 60 14 ld [ %g1 + 0x14 ], %g1
_Thread_Enable_dispatch();
2008520: 40 00 07 2b call 200a1cc <_Thread_Enable_dispatch>
2008524: c2 20 a0 14 st %g1, [ %g2 + 0x14 ]
return rtems_io_initialize( major, 0, NULL );
2008528: 40 00 25 82 call 2011b30 <rtems_io_initialize>
200852c: 81 e8 00 00 restore
_Thread_Enable_dispatch();
return sc;
}
major = *registered_major;
} else {
rtems_driver_address_table *const table = _IO_Driver_address_table + major;
2008530: c6 00 a2 64 ld [ %g2 + 0x264 ], %g3
2008534: 89 2e 20 05 sll %i0, 5, %g4
2008538: 85 2e 20 03 sll %i0, 3, %g2
200853c: 84 21 00 02 sub %g4, %g2, %g2
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
2008540: c8 00 c0 02 ld [ %g3 + %g2 ], %g4
2008544: 80 a1 20 00 cmp %g4, 0
2008548: 02 80 00 12 be 2008590 <rtems_io_register_driver+0x174>
200854c: 84 00 c0 02 add %g3, %g2, %g2
major = *registered_major;
} else {
rtems_driver_address_table *const table = _IO_Driver_address_table + major;
if ( !rtems_io_is_empty_table( table ) ) {
_Thread_Enable_dispatch();
2008550: 40 00 07 1f call 200a1cc <_Thread_Enable_dispatch>
2008554: 01 00 00 00 nop
2008558: 84 10 20 0c mov 0xc, %g2 ! c <PROM_START+0xc>
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
}
200855c: 81 c7 e0 08 ret
2008560: 91 e8 00 02 restore %g0, %g2, %o0
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
2008564: 80 a0 a0 00 cmp %g2, 0
2008568: 12 bf ff c0 bne 2008468 <rtems_io_register_driver+0x4c>
200856c: 80 a0 c0 18 cmp %g3, %i0
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
2008570: 84 10 20 09 mov 9, %g2
}
2008574: 81 c7 e0 08 ret
2008578: 91 e8 00 02 restore %g0, %g2, %o0
if ( rtems_io_is_empty_table( table ) )
break;
}
/* Assigns invalid value in case of failure */
*major = m;
200857c: c0 26 80 00 clr [ %i2 ] <== NOT EXECUTED
if ( major == 0 ) {
rtems_status_code sc = rtems_io_obtain_major_number( registered_major );
if ( sc != RTEMS_SUCCESSFUL ) {
_Thread_Enable_dispatch();
2008580: 40 00 07 13 call 200a1cc <_Thread_Enable_dispatch>
2008584: 01 00 00 00 nop
return sc;
2008588: 10 bf ff f5 b 200855c <rtems_io_register_driver+0x140>
200858c: 84 10 20 05 mov 5, %g2 ! 5 <PROM_START+0x5>
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
2008590: c6 00 a0 04 ld [ %g2 + 4 ], %g3
2008594: 80 a0 e0 00 cmp %g3, 0
2008598: 12 bf ff ee bne 2008550 <rtems_io_register_driver+0x134>
200859c: 01 00 00 00 nop
if ( !rtems_io_is_empty_table( table ) ) {
_Thread_Enable_dispatch();
return RTEMS_RESOURCE_IN_USE;
}
*registered_major = major;
20085a0: 10 bf ff d3 b 20084ec <rtems_io_register_driver+0xd0>
20085a4: f0 26 80 00 st %i0, [ %i2 ]
0200992c <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)
{
200992c: 9d e3 bf a0 save %sp, -96, %sp
uint32_t i;
uint32_t api_index;
Thread_Control *the_thread;
Objects_Information *information;
if ( !routine )
2009930: 80 a6 20 00 cmp %i0, 0
2009934: 02 80 00 23 be 20099c0 <rtems_iterate_over_all_threads+0x94><== NEVER TAKEN
2009938: 25 00 80 91 sethi %hi(0x2024400), %l2
200993c: a4 14 a3 14 or %l2, 0x314, %l2 ! 2024714 <_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)
2009940: a6 04 a0 10 add %l2, 0x10, %l3
if ( !routine )
return;
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
if ( !_Objects_Information_table[ api_index ] )
2009944: c2 04 80 00 ld [ %l2 ], %g1
2009948: 80 a0 60 00 cmp %g1, 0
200994c: 22 80 00 1a be,a 20099b4 <rtems_iterate_over_all_threads+0x88>
2009950: a4 04 a0 04 add %l2, 4, %l2
continue;
information = _Objects_Information_table[ api_index ][ 1 ];
2009954: e2 00 60 04 ld [ %g1 + 4 ], %l1
if ( !information )
2009958: 80 a4 60 00 cmp %l1, 0
200995c: 22 80 00 16 be,a 20099b4 <rtems_iterate_over_all_threads+0x88>
2009960: a4 04 a0 04 add %l2, 4, %l2
continue;
for ( i=1 ; i <= information->maximum ; i++ ) {
2009964: c2 14 60 10 lduh [ %l1 + 0x10 ], %g1
2009968: 84 90 60 00 orcc %g1, 0, %g2
200996c: 22 80 00 12 be,a 20099b4 <rtems_iterate_over_all_threads+0x88><== NEVER TAKEN
2009970: a4 04 a0 04 add %l2, 4, %l2 <== NOT EXECUTED
2009974: a0 10 20 01 mov 1, %l0
the_thread = (Thread_Control *)information->local_table[ i ];
2009978: c6 04 60 1c ld [ %l1 + 0x1c ], %g3
200997c: 83 2c 20 02 sll %l0, 2, %g1
2009980: c2 00 c0 01 ld [ %g3 + %g1 ], %g1
if ( !the_thread )
2009984: 90 90 60 00 orcc %g1, 0, %o0
2009988: 02 80 00 05 be 200999c <rtems_iterate_over_all_threads+0x70><== NEVER TAKEN
200998c: a0 04 20 01 inc %l0
continue;
(*routine)(the_thread);
2009990: 9f c6 00 00 call %i0
2009994: 01 00 00 00 nop
2009998: c4 14 60 10 lduh [ %l1 + 0x10 ], %g2
information = _Objects_Information_table[ api_index ][ 1 ];
if ( !information )
continue;
for ( i=1 ; i <= information->maximum ; i++ ) {
200999c: 83 28 a0 10 sll %g2, 0x10, %g1
20099a0: 83 30 60 10 srl %g1, 0x10, %g1
20099a4: 80 a0 40 10 cmp %g1, %l0
20099a8: 3a bf ff f5 bcc,a 200997c <rtems_iterate_over_all_threads+0x50>
20099ac: c6 04 60 1c ld [ %l1 + 0x1c ], %g3
20099b0: a4 04 a0 04 add %l2, 4, %l2
Objects_Information *information;
if ( !routine )
return;
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
20099b4: 80 a4 80 13 cmp %l2, %l3
20099b8: 32 bf ff e4 bne,a 2009948 <rtems_iterate_over_all_threads+0x1c>
20099bc: c2 04 80 00 ld [ %l2 ], %g1
20099c0: 81 c7 e0 08 ret
20099c4: 81 e8 00 00 restore
0200cad0 <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 )
{
200cad0: 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 );
200cad4: 21 00 80 76 sethi %hi(0x201d800), %l0
200cad8: d0 04 21 e0 ld [ %l0 + 0x1e0 ], %o0 ! 201d9e0 <rtems_libio_semaphore>
200cadc: 92 10 20 00 clr %o1
200cae0: 7f ff e7 7d call 20068d4 <rtems_semaphore_obtain>
200cae4: 94 10 20 00 clr %o2
rtems_status_code rc;
rtems_id sema;
rtems_libio_lock();
if (rtems_libio_iop_freelist) {
200cae8: 23 00 80 76 sethi %hi(0x201d800), %l1
200caec: c2 04 61 dc ld [ %l1 + 0x1dc ], %g1 ! 201d9dc <rtems_libio_iop_freelist>
200caf0: 80 a0 60 00 cmp %g1, 0
200caf4: 12 80 00 07 bne 200cb10 <rtems_libio_allocate+0x40>
200caf8: 05 00 80 76 sethi %hi(0x201d800), %g2
next = iop->data1;
(void) memset( iop, 0, sizeof(rtems_libio_t) );
iop->flags = LIBIO_FLAGS_OPEN;
iop->sem = sema;
rtems_libio_iop_freelist = next;
goto done;
200cafc: b0 10 20 00 clr %i0
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
200cb00: 7f ff e7 bc call 20069f0 <rtems_semaphore_release>
200cb04: d0 04 21 e0 ld [ %l0 + 0x1e0 ], %o0
iop = 0;
done:
rtems_libio_unlock();
return iop;
}
200cb08: 81 c7 e0 08 ret
200cb0c: 81 e8 00 00 restore
rtems_id sema;
rtems_libio_lock();
if (rtems_libio_iop_freelist) {
rc = rtems_semaphore_create(
200cb10: c4 00 a1 d8 ld [ %g2 + 0x1d8 ], %g2
200cb14: 92 10 20 01 mov 1, %o1
200cb18: 82 20 40 02 sub %g1, %g2, %g1
200cb1c: 83 38 60 03 sra %g1, 3, %g1
200cb20: 87 28 60 06 sll %g1, 6, %g3
200cb24: 85 28 60 03 sll %g1, 3, %g2
200cb28: 84 20 c0 02 sub %g3, %g2, %g2
200cb2c: 87 28 a0 06 sll %g2, 6, %g3
200cb30: 84 00 80 03 add %g2, %g3, %g2
200cb34: 84 00 80 01 add %g2, %g1, %g2
200cb38: 87 28 a0 0f sll %g2, 0xf, %g3
200cb3c: 84 20 c0 02 sub %g3, %g2, %g2
200cb40: 07 13 10 92 sethi %hi(0x4c424800), %g3
200cb44: 85 28 a0 03 sll %g2, 3, %g2
200cb48: 86 10 e1 00 or %g3, 0x100, %g3
200cb4c: 82 00 80 01 add %g2, %g1, %g1
200cb50: 94 10 20 54 mov 0x54, %o2
200cb54: 96 10 20 00 clr %o3
200cb58: 90 10 40 03 or %g1, %g3, %o0
200cb5c: 7f ff e6 bd call 2006650 <rtems_semaphore_create>
200cb60: 98 07 bf fc add %fp, -4, %o4
1,
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
0,
&sema
);
if (rc != RTEMS_SUCCESSFUL)
200cb64: 80 a2 20 00 cmp %o0, 0
200cb68: 32 bf ff e6 bne,a 200cb00 <rtems_libio_allocate+0x30> <== NEVER TAKEN
200cb6c: b0 10 20 00 clr %i0 <== NOT EXECUTED
goto failed;
iop = rtems_libio_iop_freelist;
200cb70: f0 04 61 dc ld [ %l1 + 0x1dc ], %i0
next = iop->data1;
200cb74: c2 06 20 38 ld [ %i0 + 0x38 ], %g1
(void) memset( iop, 0, sizeof(rtems_libio_t) );
200cb78: c0 26 20 30 clr [ %i0 + 0x30 ]
200cb7c: c0 26 20 1c clr [ %i0 + 0x1c ]
200cb80: c0 26 20 34 clr [ %i0 + 0x34 ]
200cb84: c0 26 00 00 clr [ %i0 ]
200cb88: c0 26 20 04 clr [ %i0 + 4 ]
200cb8c: c0 26 20 08 clr [ %i0 + 8 ]
200cb90: c0 26 20 0c clr [ %i0 + 0xc ]
200cb94: c0 26 20 10 clr [ %i0 + 0x10 ]
200cb98: c0 26 20 14 clr [ %i0 + 0x14 ]
200cb9c: c0 26 20 20 clr [ %i0 + 0x20 ]
200cba0: c0 26 20 24 clr [ %i0 + 0x24 ]
200cba4: c0 26 20 28 clr [ %i0 + 0x28 ]
200cba8: c0 26 20 2c clr [ %i0 + 0x2c ]
200cbac: c0 26 20 40 clr [ %i0 + 0x40 ]
200cbb0: c0 26 20 44 clr [ %i0 + 0x44 ]
200cbb4: c0 26 20 38 clr [ %i0 + 0x38 ]
200cbb8: c0 26 20 3c clr [ %i0 + 0x3c ]
iop->flags = LIBIO_FLAGS_OPEN;
iop->sem = sema;
rtems_libio_iop_freelist = next;
200cbbc: c2 24 61 dc st %g1, [ %l1 + 0x1dc ]
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;
200cbc0: 82 10 21 00 mov 0x100, %g1
200cbc4: c2 26 20 18 st %g1, [ %i0 + 0x18 ]
iop->sem = sema;
200cbc8: c2 07 bf fc ld [ %fp + -4 ], %g1
rtems_libio_iop_freelist = next;
goto done;
200cbcc: 10 bf ff cd b 200cb00 <rtems_libio_allocate+0x30>
200cbd0: c2 26 20 30 st %g1, [ %i0 + 0x30 ]
0200ca74 <rtems_libio_free>:
*/
void rtems_libio_free(
rtems_libio_t *iop
)
{
200ca74: 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 );
200ca78: 23 00 80 76 sethi %hi(0x201d800), %l1
200ca7c: d0 04 61 e0 ld [ %l1 + 0x1e0 ], %o0 ! 201d9e0 <rtems_libio_semaphore>
200ca80: 92 10 20 00 clr %o1
200ca84: 7f ff e7 94 call 20068d4 <rtems_semaphore_obtain>
200ca88: 94 10 20 00 clr %o2
rtems_libio_lock();
if (iop->sem)
200ca8c: d0 06 20 30 ld [ %i0 + 0x30 ], %o0
200ca90: 80 a2 20 00 cmp %o0, 0
200ca94: 02 80 00 04 be 200caa4 <rtems_libio_free+0x30> <== NEVER TAKEN
200ca98: a0 10 00 18 mov %i0, %l0
rtems_semaphore_delete(iop->sem);
200ca9c: 7f ff e7 61 call 2006820 <rtems_semaphore_delete>
200caa0: 01 00 00 00 nop
iop->flags &= ~LIBIO_FLAGS_OPEN;
200caa4: c4 04 20 18 ld [ %l0 + 0x18 ], %g2
iop->data1 = rtems_libio_iop_freelist;
200caa8: 03 00 80 76 sethi %hi(0x201d800), %g1
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
200caac: f0 04 61 e0 ld [ %l1 + 0x1e0 ], %i0
200cab0: c6 00 61 dc ld [ %g1 + 0x1dc ], %g3
rtems_libio_iop_freelist = iop;
200cab4: e0 20 61 dc st %l0, [ %g1 + 0x1dc ]
rtems_libio_lock();
if (iop->sem)
rtems_semaphore_delete(iop->sem);
iop->flags &= ~LIBIO_FLAGS_OPEN;
200cab8: 82 08 be ff and %g2, -257, %g1
iop->data1 = rtems_libio_iop_freelist;
200cabc: c6 24 20 38 st %g3, [ %l0 + 0x38 ]
rtems_libio_lock();
if (iop->sem)
rtems_semaphore_delete(iop->sem);
iop->flags &= ~LIBIO_FLAGS_OPEN;
200cac0: c2 24 20 18 st %g1, [ %l0 + 0x18 ]
200cac4: 7f ff e7 cb call 20069f0 <rtems_semaphore_release>
200cac8: 81 e8 00 00 restore
02002e24 <rtems_libio_init>:
*
* Called by BSP startup code to initialize the libio subsystem.
*/
void rtems_libio_init( void )
{
2002e24: 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)
2002e28: 21 00 80 74 sethi %hi(0x201d000), %l0
2002e2c: d0 04 20 44 ld [ %l0 + 0x44 ], %o0 ! 201d044 <rtems_libio_number_iops>
2002e30: 80 a2 20 00 cmp %o0, 0
2002e34: 22 80 00 1c be,a 2002ea4 <rtems_libio_init+0x80> <== NEVER TAKEN
2002e38: 11 13 10 92 sethi %hi(0x4c424800), %o0 <== NOT EXECUTED
{
rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
2002e3c: 7f ff ff 09 call 2002a60 <calloc>
2002e40: 92 10 20 48 mov 0x48, %o1
2002e44: 03 00 80 76 sethi %hi(0x201d800), %g1
2002e48: d0 20 61 d8 st %o0, [ %g1 + 0x1d8 ] ! 201d9d8 <rtems_libio_iops>
sizeof(rtems_libio_t));
if (rtems_libio_iops == NULL)
2002e4c: 80 a2 20 00 cmp %o0, 0
2002e50: 02 80 00 29 be 2002ef4 <rtems_libio_init+0xd0> <== NEVER TAKEN
2002e54: 82 10 00 08 mov %o0, %g1
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++)
2002e58: c6 04 20 44 ld [ %l0 + 0x44 ], %g3
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;
2002e5c: 05 00 80 76 sethi %hi(0x201d800), %g2
for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)
2002e60: 80 a0 e0 01 cmp %g3, 1
2002e64: 08 80 00 0e bleu 2002e9c <rtems_libio_init+0x78> <== NEVER TAKEN
2002e68: d0 20 a1 dc st %o0, [ %g2 + 0x1dc ]
2002e6c: 82 02 20 48 add %o0, 0x48, %g1
2002e70: 84 10 20 01 mov 1, %g2
iop->data1 = iop + 1;
2002e74: c2 20 7f f0 st %g1, [ %g1 + -16 ]
2002e78: 84 00 a0 01 inc %g2
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++)
2002e7c: 80 a0 80 03 cmp %g2, %g3
2002e80: 12 bf ff fd bne 2002e74 <rtems_libio_init+0x50>
2002e84: 82 00 60 48 add %g1, 0x48, %g1
2002e88: 84 00 bf ff add %g2, -1, %g2
2002e8c: 83 28 a0 06 sll %g2, 6, %g1
2002e90: 85 28 a0 03 sll %g2, 3, %g2
2002e94: 82 00 80 01 add %g2, %g1, %g1
2002e98: 82 02 00 01 add %o0, %g1, %g1
iop->data1 = iop + 1;
iop->data1 = NULL;
2002e9c: c0 20 60 38 clr [ %g1 + 0x38 ]
/*
* Create the binary semaphore used to provide mutual exclusion
* on the IOP Table.
*/
rc = rtems_semaphore_create(
2002ea0: 11 13 10 92 sethi %hi(0x4c424800), %o0
2002ea4: 92 10 20 01 mov 1, %o1
2002ea8: 90 12 21 4f or %o0, 0x14f, %o0
2002eac: 94 10 20 54 mov 0x54, %o2
2002eb0: 96 10 20 00 clr %o3
2002eb4: 19 00 80 76 sethi %hi(0x201d800), %o4
2002eb8: 40 00 0d e6 call 2006650 <rtems_semaphore_create>
2002ebc: 98 13 21 e0 or %o4, 0x1e0, %o4 ! 201d9e0 <rtems_libio_semaphore>
1,
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
RTEMS_NO_PRIORITY,
&rtems_libio_semaphore
);
if ( rc != RTEMS_SUCCESSFUL )
2002ec0: 80 a2 20 00 cmp %o0, 0
2002ec4: 12 80 00 0a bne 2002eec <rtems_libio_init+0xc8> <== NEVER TAKEN
2002ec8: 03 00 80 74 sethi %hi(0x201d000), %g1
/*
* Initialize the base file system infrastructure.
*/
if (rtems_fs_init_helper)
2002ecc: c2 00 60 40 ld [ %g1 + 0x40 ], %g1 ! 201d040 <rtems_fs_init_helper>
2002ed0: 80 a0 60 00 cmp %g1, 0
2002ed4: 02 80 00 04 be 2002ee4 <rtems_libio_init+0xc0> <== NEVER TAKEN
2002ed8: 01 00 00 00 nop
(* rtems_fs_init_helper)();
2002edc: 9f c0 40 00 call %g1
2002ee0: 01 00 00 00 nop
2002ee4: 81 c7 e0 08 ret
2002ee8: 81 e8 00 00 restore
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
RTEMS_NO_PRIORITY,
&rtems_libio_semaphore
);
if ( rc != RTEMS_SUCCESSFUL )
rtems_fatal_error_occurred( rc );
2002eec: 40 00 10 19 call 2006f50 <rtems_fatal_error_occurred> <== NOT EXECUTED
2002ef0: 01 00 00 00 nop <== NOT EXECUTED
if (rtems_libio_number_iops > 0)
{
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);
2002ef4: 40 00 10 17 call 2006f50 <rtems_fatal_error_occurred> <== NOT EXECUTED
2002ef8: 90 10 20 1a mov 0x1a, %o0 ! 1a <PROM_START+0x1a> <== NOT EXECUTED
0200c96c <rtems_libio_is_file_open>:
*/
int rtems_libio_is_file_open(
void *node_access
)
{
200c96c: 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 );
200c970: 21 00 80 76 sethi %hi(0x201d800), %l0
200c974: d0 04 21 e0 ld [ %l0 + 0x1e0 ], %o0 ! 201d9e0 <rtems_libio_semaphore>
200c978: 92 10 20 00 clr %o1
200c97c: 7f ff e7 d6 call 20068d4 <rtems_semaphore_obtain>
200c980: 94 10 20 00 clr %o2
/*
* Look for any active file descriptor entry.
*/
for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
200c984: 03 00 80 74 sethi %hi(0x201d000), %g1
200c988: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 ! 201d044 <rtems_libio_number_iops>
200c98c: 05 00 80 76 sethi %hi(0x201d800), %g2
200c990: 80 a0 60 00 cmp %g1, 0
200c994: 02 80 00 0e be 200c9cc <rtems_libio_is_file_open+0x60> <== NEVER TAKEN
200c998: c4 00 a1 d8 ld [ %g2 + 0x1d8 ], %g2
200c99c: 86 10 20 00 clr %g3
if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) {
200c9a0: c8 00 a0 18 ld [ %g2 + 0x18 ], %g4
200c9a4: 80 89 21 00 btst 0x100, %g4
200c9a8: 02 80 00 06 be 200c9c0 <rtems_libio_is_file_open+0x54>
200c9ac: 86 00 e0 01 inc %g3
/*
* Check if this node is under the file system that we
* are trying to dismount.
*/
if ( iop->pathinfo.node_access == node_access ) {
200c9b0: c8 00 a0 1c ld [ %g2 + 0x1c ], %g4
200c9b4: 80 a1 00 18 cmp %g4, %i0
200c9b8: 02 80 00 0a be 200c9e0 <rtems_libio_is_file_open+0x74>
200c9bc: d0 04 21 e0 ld [ %l0 + 0x1e0 ], %o0
/*
* Look for any active file descriptor entry.
*/
for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
200c9c0: 80 a0 c0 01 cmp %g3, %g1
200c9c4: 0a bf ff f7 bcs 200c9a0 <rtems_libio_is_file_open+0x34>
200c9c8: 84 00 a0 48 add %g2, 0x48, %g2
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
200c9cc: d0 04 21 e0 ld [ %l0 + 0x1e0 ], %o0
200c9d0: 7f ff e8 08 call 20069f0 <rtems_semaphore_release>
200c9d4: b0 10 20 00 clr %i0
}
rtems_libio_unlock();
return result;
}
200c9d8: 81 c7 e0 08 ret
200c9dc: 81 e8 00 00 restore
200c9e0: 7f ff e8 04 call 20069f0 <rtems_semaphore_release>
200c9e4: b0 10 20 01 mov 1, %i0
200c9e8: 81 c7 e0 08 ret
200c9ec: 81 e8 00 00 restore
0200c9f0 <rtems_libio_is_open_files_in_fs>:
*/
int rtems_libio_is_open_files_in_fs(
rtems_filesystem_mount_table_entry_t * fs_mt_entry
)
{
200c9f0: 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 );
200c9f4: 21 00 80 76 sethi %hi(0x201d800), %l0
200c9f8: d0 04 21 e0 ld [ %l0 + 0x1e0 ], %o0 ! 201d9e0 <rtems_libio_semaphore>
200c9fc: 92 10 20 00 clr %o1
200ca00: 7f ff e7 b5 call 20068d4 <rtems_semaphore_obtain>
200ca04: 94 10 20 00 clr %o2
/*
* Look for any active file descriptor entry.
*/
for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
200ca08: 03 00 80 74 sethi %hi(0x201d000), %g1
200ca0c: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 ! 201d044 <rtems_libio_number_iops>
200ca10: 05 00 80 76 sethi %hi(0x201d800), %g2
200ca14: 80 a0 60 00 cmp %g1, 0
200ca18: 02 80 00 0e be 200ca50 <rtems_libio_is_open_files_in_fs+0x60><== NEVER TAKEN
200ca1c: c4 00 a1 d8 ld [ %g2 + 0x1d8 ], %g2
200ca20: 86 10 20 00 clr %g3
if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) {
200ca24: c8 00 a0 18 ld [ %g2 + 0x18 ], %g4
200ca28: 80 89 21 00 btst 0x100, %g4
200ca2c: 02 80 00 06 be 200ca44 <rtems_libio_is_open_files_in_fs+0x54>
200ca30: 86 00 e0 01 inc %g3
/*
* Check if this node is under the file system that we
* are trying to dismount.
*/
if ( iop->pathinfo.mt_entry == fs_mt_entry ) {
200ca34: c8 00 a0 2c ld [ %g2 + 0x2c ], %g4
200ca38: 80 a1 00 18 cmp %g4, %i0
200ca3c: 02 80 00 0a be 200ca64 <rtems_libio_is_open_files_in_fs+0x74>
200ca40: d0 04 21 e0 ld [ %l0 + 0x1e0 ], %o0
/*
* Look for any active file descriptor entry.
*/
for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
200ca44: 80 a0 c0 01 cmp %g3, %g1
200ca48: 0a bf ff f7 bcs 200ca24 <rtems_libio_is_open_files_in_fs+0x34>
200ca4c: 84 00 a0 48 add %g2, 0x48, %g2
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
200ca50: d0 04 21 e0 ld [ %l0 + 0x1e0 ], %o0
200ca54: 7f ff e7 e7 call 20069f0 <rtems_semaphore_release>
200ca58: b0 10 20 00 clr %i0
}
rtems_libio_unlock();
return result;
}
200ca5c: 81 c7 e0 08 ret
200ca60: 81 e8 00 00 restore
200ca64: 7f ff e7 e3 call 20069f0 <rtems_semaphore_release>
200ca68: b0 10 20 01 mov 1, %i0
200ca6c: 81 c7 e0 08 ret
200ca70: 81 e8 00 00 restore
0202ddf8 <rtems_libio_set_private_env>:
rtems_filesystem_freenode( &env->root_directory);
free(env);
}
}
rtems_status_code rtems_libio_set_private_env(void) {
202ddf8: 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);
202ddfc: 90 10 20 00 clr %o0
202de00: 92 10 20 00 clr %o1
202de04: 40 00 05 74 call 202f3d4 <rtems_task_ident>
202de08: 94 07 bf fc add %fp, -4, %o2
if (sc != RTEMS_SUCCESSFUL) return sc;
202de0c: b0 92 20 00 orcc %o0, 0, %i0
202de10: 12 80 00 45 bne 202df24 <rtems_libio_set_private_env+0x12c><== NEVER TAKEN
202de14: 21 00 81 bc sethi %hi(0x206f000), %l0
/* Only for the first time a malloc is necesary */
if (rtems_current_user_env==&rtems_global_user_env) {
202de18: e4 04 23 24 ld [ %l0 + 0x324 ], %l2 ! 206f324 <rtems_current_user_env>
202de1c: 23 00 81 cc sethi %hi(0x2073000), %l1
202de20: a2 14 61 2c or %l1, 0x12c, %l1 ! 207312c <rtems_global_user_env>
202de24: 80 a4 80 11 cmp %l2, %l1
202de28: 02 80 00 2e be 202dee0 <rtems_libio_set_private_env+0xe8>
202de2c: a6 14 23 24 or %l0, 0x324, %l3
return sc;
}
rtems_current_user_env = tmp;
};
*rtems_current_user_env = rtems_global_user_env; /* get the global values*/
202de30: 92 10 00 11 mov %l1, %o1
202de34: 94 10 20 48 mov 0x48, %o2
202de38: 40 00 78 cf call 204c174 <memcpy>
202de3c: 90 10 00 12 mov %l2, %o0
rtems_current_user_env->task_id=task_id; /* mark the local values*/
202de40: 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);
202de44: a2 07 bf e8 add %fp, -24, %l1
}
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*/
202de48: 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);
202de4c: 92 10 20 01 mov 1, %o1
202de50: 25 00 81 a5 sethi %hi(0x2069400), %l2
202de54: 94 10 20 00 clr %o2
202de58: 96 10 00 11 mov %l1, %o3
202de5c: 98 10 20 00 clr %o4
202de60: 7f ff 6a 80 call 2008860 <rtems_filesystem_evaluate_path>
202de64: 90 14 a3 10 or %l2, 0x310, %o0
rtems_filesystem_root = loc;
202de68: c2 04 23 24 ld [ %l0 + 0x324 ], %g1
202de6c: c4 07 bf e8 ld [ %fp + -24 ], %g2
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
202de70: 90 14 a3 10 or %l2, 0x310, %o0
* 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);
rtems_filesystem_root = loc;
202de74: c4 20 60 18 st %g2, [ %g1 + 0x18 ]
202de78: c4 07 bf ec ld [ %fp + -20 ], %g2
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
202de7c: 96 10 00 11 mov %l1, %o3
* 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);
rtems_filesystem_root = loc;
202de80: c4 20 60 1c st %g2, [ %g1 + 0x1c ]
202de84: c4 07 bf f0 ld [ %fp + -16 ], %g2
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
202de88: 92 10 20 01 mov 1, %o1
* 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);
rtems_filesystem_root = loc;
202de8c: c4 20 60 20 st %g2, [ %g1 + 0x20 ]
202de90: c4 07 bf f4 ld [ %fp + -12 ], %g2
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
202de94: 94 10 20 00 clr %o2
* 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);
rtems_filesystem_root = loc;
202de98: c4 20 60 24 st %g2, [ %g1 + 0x24 ]
202de9c: c4 07 bf f8 ld [ %fp + -8 ], %g2
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
202dea0: 98 10 20 00 clr %o4
202dea4: 7f ff 6a 6f call 2008860 <rtems_filesystem_evaluate_path>
202dea8: c4 20 60 28 st %g2, [ %g1 + 0x28 ]
rtems_filesystem_current = loc;
202deac: c4 07 bf e8 ld [ %fp + -24 ], %g2
202deb0: c2 04 23 24 ld [ %l0 + 0x324 ], %g1
202deb4: c4 20 60 04 st %g2, [ %g1 + 4 ]
202deb8: c4 07 bf ec ld [ %fp + -20 ], %g2
202debc: c4 20 60 08 st %g2, [ %g1 + 8 ]
202dec0: c4 07 bf f0 ld [ %fp + -16 ], %g2
202dec4: c4 20 60 0c st %g2, [ %g1 + 0xc ]
202dec8: c4 07 bf f4 ld [ %fp + -12 ], %g2
202decc: c4 20 60 10 st %g2, [ %g1 + 0x10 ]
202ded0: c4 07 bf f8 ld [ %fp + -8 ], %g2
202ded4: c4 20 60 14 st %g2, [ %g1 + 0x14 ]
return RTEMS_SUCCESSFUL;
}
202ded8: 81 c7 e0 08 ret
202dedc: 91 e8 20 00 restore %g0, 0, %o0
sc=rtems_task_ident(RTEMS_SELF,0,&task_id);
if (sc != RTEMS_SUCCESSFUL) return sc;
/* Only for the first time a malloc is necesary */
if (rtems_current_user_env==&rtems_global_user_env) {
rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t));
202dee0: 90 10 20 48 mov 0x48, %o0
202dee4: 7f ff 6c 5f call 2009060 <malloc>
202dee8: b0 10 20 1a mov 0x1a, %i0
if (!tmp)
202deec: a4 92 20 00 orcc %o0, 0, %l2
202def0: 02 80 00 0d be 202df24 <rtems_libio_set_private_env+0x12c><== NEVER TAKEN
202def4: 92 10 00 13 mov %l3, %o1
#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);
202def8: 90 10 20 00 clr %o0
202defc: 15 00 80 b7 sethi %hi(0x202dc00), %o2
202df00: 40 00 05 de call 202f678 <rtems_task_variable_add>
202df04: 94 12 a0 c4 or %o2, 0xc4, %o2 ! 202dcc4 <free_user_env>
if (sc != RTEMS_SUCCESSFUL) {
202df08: b0 92 20 00 orcc %o0, 0, %i0
202df0c: 12 80 00 04 bne 202df1c <rtems_libio_set_private_env+0x124><== NEVER TAKEN
202df10: 01 00 00 00 nop
* not initialized yet
*/
free(tmp);
return sc;
}
rtems_current_user_env = tmp;
202df14: 10 bf ff c7 b 202de30 <rtems_libio_set_private_env+0x38>
202df18: e4 24 23 24 st %l2, [ %l0 + 0x324 ]
sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,(void(*)(void *))free_user_env);
if (sc != RTEMS_SUCCESSFUL) {
/* don't use free_user_env because the pathlocs are
* not initialized yet
*/
free(tmp);
202df1c: 7f ff 6a 70 call 20088dc <free> <== NOT EXECUTED
202df20: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
return sc;
202df24: 81 c7 e0 08 ret <== NOT EXECUTED
202df28: 81 e8 00 00 restore <== NOT EXECUTED
0202dd3c <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) {
202dd3c: 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);
202dd40: 90 10 20 00 clr %o0 <== NOT EXECUTED
202dd44: 92 10 20 00 clr %o1 <== NOT EXECUTED
202dd48: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED
202dd4c: 40 00 05 a2 call 202f3d4 <rtems_task_ident> <== NOT EXECUTED
202dd50: a4 10 00 18 mov %i0, %l2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) return sc;
202dd54: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202dd58: 12 80 00 14 bne 202dda8 <rtems_libio_share_private_env+0x6c><== NOT EXECUTED
202dd5c: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED
if (rtems_current_user_env->task_id==current_task_id) {
202dd60: 21 00 81 bc sethi %hi(0x206f000), %l0 <== NOT EXECUTED
202dd64: e6 04 23 24 ld [ %l0 + 0x324 ], %l3 ! 206f324 <rtems_current_user_env><== NOT EXECUTED
202dd68: c4 07 bf f8 ld [ %fp + -8 ], %g2 <== NOT EXECUTED
202dd6c: c6 04 c0 00 ld [ %l3 ], %g3 <== NOT EXECUTED
202dd70: 82 14 23 24 or %l0, 0x324, %g1 <== NOT EXECUTED
202dd74: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED
202dd78: 02 80 00 0e be 202ddb0 <rtems_libio_share_private_env+0x74><== NOT EXECUTED
202dd7c: a2 10 00 01 mov %g1, %l1 <== NOT EXECUTED
free_user_env(tmp);
};
/* AT THIS POINT, rtems_current_user_env is DANGLING */
sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env,
202dd80: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
202dd84: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
202dd88: 40 00 06 9a call 202f7f0 <rtems_task_variable_get> <== NOT EXECUTED
202dd8c: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
(void*)&shared_user_env );
if (sc != RTEMS_SUCCESSFUL)
202dd90: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED
202dd94: 02 80 00 10 be 202ddd4 <rtems_libio_share_private_env+0x98><== NOT EXECUTED
202dd98: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
bailout:
/* fallback to the global env */
rtems_current_user_env = &rtems_global_user_env;
202dd9c: 05 00 81 cc sethi %hi(0x2073000), %g2 <== NOT EXECUTED
202dda0: 84 10 a1 2c or %g2, 0x12c, %g2 ! 207312c <rtems_global_user_env><== NOT EXECUTED
202dda4: c4 24 23 24 st %g2, [ %l0 + 0x324 ] <== NOT EXECUTED
return sc;
}
202dda8: 81 c7 e0 08 ret <== NOT EXECUTED
202ddac: 91 e8 00 01 restore %g0, %g1, %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) return sc;
if (rtems_current_user_env->task_id==current_task_id) {
/* 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);
202ddb0: 40 00 06 62 call 202f738 <rtems_task_variable_delete> <== NOT EXECUTED
202ddb4: 92 10 00 01 mov %g1, %o1 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) return sc;
202ddb8: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED
202ddbc: 12 bf ff fb bne 202dda8 <rtems_libio_share_private_env+0x6c><== NOT EXECUTED
202ddc0: 01 00 00 00 nop <== NOT EXECUTED
free_user_env(tmp);
202ddc4: 7f ff ff c0 call 202dcc4 <free_user_env> <== NOT EXECUTED
202ddc8: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
};
/* AT THIS POINT, rtems_current_user_env is DANGLING */
sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env,
202ddcc: 10 bf ff ee b 202dd84 <rtems_libio_share_private_env+0x48><== NOT EXECUTED
202ddd0: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
(void*)&shared_user_env );
if (sc != RTEMS_SUCCESSFUL)
goto bailout;
sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env);
202ddd4: 15 00 80 b7 sethi %hi(0x202dc00), %o2 <== NOT EXECUTED
202ddd8: 40 00 06 28 call 202f678 <rtems_task_variable_add> <== NOT EXECUTED
202dddc: 94 12 a0 c4 or %o2, 0xc4, %o2 ! 202dcc4 <free_user_env> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
202dde0: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED
202dde4: 12 bf ff ef bne 202dda0 <rtems_libio_share_private_env+0x64><== NOT EXECUTED
202dde8: 05 00 81 cc sethi %hi(0x2073000), %g2 <== NOT EXECUTED
goto bailout;
/* the current_user_env is the same pointer that remote env */
rtems_current_user_env = shared_user_env;
202ddec: 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;
202ddf0: 10 bf ff ee b 202dda8 <rtems_libio_share_private_env+0x6c><== NOT EXECUTED
202ddf4: c4 24 23 24 st %g2, [ %l0 + 0x324 ] <== NOT EXECUTED
0200c914 <rtems_libio_to_fcntl_flags>:
*/
uint32_t rtems_libio_to_fcntl_flags(
uint32_t flags
)
{
200c914: 82 10 00 08 mov %o0, %g1
uint32_t fcntl_flags = 0;
if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) {
200c918: 84 08 60 06 and %g1, 6, %g2
200c91c: 80 a0 a0 06 cmp %g2, 6
200c920: 02 80 00 07 be 200c93c <rtems_libio_to_fcntl_flags+0x28> <== NEVER TAKEN
200c924: 90 10 20 02 mov 2, %o0
fcntl_flags |= O_RDWR;
} else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {
200c928: 84 08 60 02 and %g1, 2, %g2
200c92c: 80 a0 00 02 cmp %g0, %g2
200c930: 85 30 60 02 srl %g1, 2, %g2
200c934: 90 60 3f ff subx %g0, -1, %o0
200c938: 90 0a 00 02 and %o0, %g2, %o0
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 ) {
200c93c: 80 88 60 01 btst 1, %g1
200c940: 02 80 00 04 be 200c950 <rtems_libio_to_fcntl_flags+0x3c>
200c944: 80 88 62 00 btst 0x200, %g1
fcntl_flags |= O_NONBLOCK;
200c948: 05 00 00 10 sethi %hi(0x4000), %g2
200c94c: 90 12 00 02 or %o0, %g2, %o0
}
if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) {
200c950: 32 80 00 02 bne,a 200c958 <rtems_libio_to_fcntl_flags+0x44>
200c954: 90 12 20 08 or %o0, 8, %o0
fcntl_flags |= O_APPEND;
}
if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) {
200c958: 80 88 64 00 btst 0x400, %g1
200c95c: 32 80 00 02 bne,a 200c964 <rtems_libio_to_fcntl_flags+0x50>
200c960: 90 12 22 00 or %o0, 0x200, %o0
fcntl_flags |= O_CREAT;
}
return fcntl_flags;
}
200c964: 81 c3 e0 08 retl
02009160 <rtems_malloc_statistics_at_free>:
* size and thus we skip updating the statistics.
*/
static void rtems_malloc_statistics_at_free(
void *pointer
)
{
2009160: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
uintptr_t size;
if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
2009164: 03 00 81 bb sethi %hi(0x206ec00), %g1 <== NOT EXECUTED
2009168: d0 00 63 00 ld [ %g1 + 0x300 ], %o0 ! 206ef00 <RTEMS_Malloc_Heap><== NOT EXECUTED
200916c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
2009170: 40 00 19 8f call 200f7ac <_Protected_heap_Get_block_size> <== NOT EXECUTED
2009174: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
2009178: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED
200917c: 02 80 00 08 be 200919c <rtems_malloc_statistics_at_free+0x3c><== NOT EXECUTED
2009180: 03 00 81 cc sethi %hi(0x2073000), %g1 <== NOT EXECUTED
MSBUMP(lifetime_freed, size);
2009184: c8 07 bf fc ld [ %fp + -4 ], %g4 <== NOT EXECUTED
2009188: 82 10 60 f0 or %g1, 0xf0, %g1 <== NOT EXECUTED
200918c: c4 18 60 28 ldd [ %g1 + 0x28 ], %g2 <== NOT EXECUTED
2009190: 86 80 c0 04 addcc %g3, %g4, %g3 <== NOT EXECUTED
2009194: 84 40 a0 00 addx %g2, 0, %g2 <== NOT EXECUTED
2009198: c4 38 60 28 std %g2, [ %g1 + 0x28 ] <== NOT EXECUTED
200919c: 81 c7 e0 08 ret <== NOT EXECUTED
20091a0: 81 e8 00 00 restore <== NOT EXECUTED
020091a4 <rtems_malloc_statistics_at_malloc>:
}
static void rtems_malloc_statistics_at_malloc(
void *pointer
)
{
20091a4: 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 )
20091a8: 80 a6 20 00 cmp %i0, 0
20091ac: 02 80 00 14 be 20091fc <rtems_malloc_statistics_at_malloc+0x58><== NEVER TAKEN
20091b0: 03 00 81 bb sethi %hi(0x206ec00), %g1
return;
_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
20091b4: d0 00 63 00 ld [ %g1 + 0x300 ], %o0 ! 206ef00 <RTEMS_Malloc_Heap>
static void rtems_malloc_statistics_at_malloc(
void *pointer
)
{
uintptr_t actual_size = 0;
20091b8: 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);
20091bc: 92 10 00 18 mov %i0, %o1
20091c0: 40 00 19 7b call 200f7ac <_Protected_heap_Get_block_size>
20091c4: 94 07 bf fc add %fp, -4, %o2
MSBUMP(lifetime_allocated, actual_size);
20091c8: 03 00 81 cc sethi %hi(0x2073000), %g1
20091cc: d8 07 bf fc ld [ %fp + -4 ], %o4
20091d0: 82 10 60 f0 or %g1, 0xf0, %g1
20091d4: c4 18 60 20 ldd [ %g1 + 0x20 ], %g2
current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
20091d8: da 00 60 2c ld [ %g1 + 0x2c ], %o5
if (current_depth > s->max_depth)
20091dc: c8 00 60 18 ld [ %g1 + 0x18 ], %g4
if ( !pointer )
return;
_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
MSBUMP(lifetime_allocated, actual_size);
20091e0: 86 80 c0 0c addcc %g3, %o4, %g3
20091e4: 84 40 a0 00 addx %g2, 0, %g2
20091e8: c4 38 60 20 std %g2, [ %g1 + 0x20 ]
current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
20091ec: 84 20 c0 0d sub %g3, %o5, %g2
if (current_depth > s->max_depth)
20091f0: 80 a0 80 04 cmp %g2, %g4
20091f4: 38 80 00 02 bgu,a 20091fc <rtems_malloc_statistics_at_malloc+0x58><== ALWAYS TAKEN
20091f8: c4 20 60 18 st %g2, [ %g1 + 0x18 ]
20091fc: 81 c7 e0 08 ret
2009200: 81 e8 00 00 restore
02011144 <rtems_memalign>:
int rtems_memalign(
void **pointer,
size_t alignment,
size_t size
)
{
2011144: 9d e3 bf a0 save %sp, -96, %sp
void *return_this;
/*
* Parameter error checks
*/
if ( !pointer )
2011148: a0 96 20 00 orcc %i0, 0, %l0
201114c: 02 80 00 20 be 20111cc <rtems_memalign+0x88>
2011150: 03 00 80 87 sethi %hi(0x2021c00), %g1
*pointer = NULL;
/*
* Do not attempt to allocate memory if not in correct system state.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
2011154: c2 00 61 40 ld [ %g1 + 0x140 ], %g1 ! 2021d40 <_System_state_Current>
2011158: 80 a0 60 03 cmp %g1, 3
201115c: 02 80 00 17 be 20111b8 <rtems_memalign+0x74> <== ALWAYS TAKEN
2011160: c0 24 00 00 clr [ %l0 ]
/*
*
* If some free's have been deferred, then do them now.
*/
malloc_deferred_frees_process();
2011164: 7f ff cb a9 call 2004008 <malloc_deferred_frees_process>
2011168: b0 10 20 0c mov 0xc, %i0
uintptr_t size,
uintptr_t alignment
)
{
return
_Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 );
201116c: 03 00 80 83 sethi %hi(0x2020c00), %g1
2011170: d0 00 63 80 ld [ %g1 + 0x380 ], %o0 ! 2020f80 <RTEMS_Malloc_Heap>
2011174: 94 10 00 19 mov %i1, %o2
2011178: 92 10 00 1a mov %i2, %o1
201117c: 7f ff e2 25 call 2009a10 <_Protected_heap_Allocate_aligned_with_boundary>
2011180: 96 10 20 00 clr %o3
return_this = _Protected_heap_Allocate_aligned(
RTEMS_Malloc_Heap,
size,
alignment
);
if ( !return_this )
2011184: b2 92 20 00 orcc %o0, 0, %i1
2011188: 02 80 00 12 be 20111d0 <rtems_memalign+0x8c>
201118c: 03 00 80 85 sethi %hi(0x2021400), %g1
return ENOMEM;
/*
* If configured, update the more involved statistics
*/
if ( rtems_malloc_statistics_helpers )
2011190: c2 00 62 88 ld [ %g1 + 0x288 ], %g1 ! 2021688 <rtems_malloc_statistics_helpers>
2011194: 80 a0 60 00 cmp %g1, 0
2011198: 22 80 00 06 be,a 20111b0 <rtems_memalign+0x6c> <== ALWAYS TAKEN
201119c: f2 24 00 00 st %i1, [ %l0 ]
(*rtems_malloc_statistics_helpers->at_malloc)(pointer);
20111a0: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED
20111a4: 9f c0 40 00 call %g1 <== NOT EXECUTED
20111a8: 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;
20111ac: f2 24 00 00 st %i1, [ %l0 ] <== NOT EXECUTED
return 0;
20111b0: 81 c7 e0 08 ret
20111b4: 91 e8 20 00 restore %g0, 0, %o0
*pointer = NULL;
/*
* Do not attempt to allocate memory if not in correct system state.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
20111b8: 7f ff cb 7b call 2003fa4 <malloc_is_system_state_OK>
20111bc: 01 00 00 00 nop
20111c0: 80 8a 20 ff btst 0xff, %o0
20111c4: 12 bf ff e8 bne 2011164 <rtems_memalign+0x20> <== ALWAYS TAKEN
20111c8: 01 00 00 00 nop
if (rtems_malloc_boundary_helpers)
(*rtems_malloc_boundary_helpers->at_malloc)(return_this, size);
#endif
*pointer = return_this;
return 0;
20111cc: b0 10 20 16 mov 0x16, %i0 ! 16 <PROM_START+0x16>
}
20111d0: 81 c7 e0 08 ret
20111d4: 81 e8 00 00 restore
0200a1a0 <rtems_mkdir>:
return (retval);
}
int
rtems_mkdir(const char *path, mode_t mode)
{
200a1a0: 9d e3 bf 58 save %sp, -168, %sp <== NOT EXECUTED
int success = 0;
char *dup_path = strdup(path);
200a1a4: 40 01 14 a0 call 204f424 <strdup> <== NOT EXECUTED
200a1a8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (dup_path != NULL) {
200a1ac: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
200a1b0: 02 80 00 76 be 200a388 <rtems_mkdir+0x1e8> <== NOT EXECUTED
200a1b4: 01 00 00 00 nop <== NOT EXECUTED
char *p;
p = path;
oumask = 0;
retval = 1;
if (p[0] == '/') /* Skip leading '/'. */
200a1b8: c2 0c 00 00 ldub [ %l0 ], %g1 <== NOT EXECUTED
200a1bc: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED
200a1c0: 85 38 60 18 sra %g1, 0x18, %g2 <== NOT EXECUTED
200a1c4: 80 a0 a0 2f cmp %g2, 0x2f <== NOT EXECUTED
200a1c8: 02 80 00 5a be 200a330 <rtems_mkdir+0x190> <== NOT EXECUTED
200a1cc: a2 10 00 10 mov %l0, %l1 <== NOT EXECUTED
++p;
for (first = 1, last = 0; !last ; ++p) {
if (p[0] == '\0')
200a1d0: 83 38 60 18 sra %g1, 0x18, %g1 <== NOT EXECUTED
p = path;
oumask = 0;
retval = 1;
if (p[0] == '/') /* Skip leading '/'. */
++p;
200a1d4: a6 10 20 00 clr %l3 <== NOT EXECUTED
200a1d8: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
retval = 0;
break;
}
}
if (!last)
*p = '/';
200a1dc: a8 10 20 2f mov 0x2f, %l4 <== 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) {
200a1e0: aa 07 bf b8 add %fp, -72, %l5 <== NOT EXECUTED
retval = 0;
break;
} else if (!S_ISDIR(sb.st_mode)) {
200a1e4: 2f 00 00 3c sethi %hi(0xf000), %l7 <== NOT EXECUTED
oumask = 0;
retval = 1;
if (p[0] == '/') /* Skip leading '/'. */
++p;
for (first = 1, last = 0; !last ; ++p) {
if (p[0] == '\0')
200a1e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a1ec: 02 80 00 0c be 200a21c <rtems_mkdir+0x7c> <== NOT EXECUTED
200a1f0: 2d 00 00 10 sethi %hi(0x4000), %l6 <== NOT EXECUTED
last = 1;
else if (p[0] != '/')
200a1f4: 80 a0 60 2f cmp %g1, 0x2f <== NOT EXECUTED
200a1f8: 22 80 00 4a be,a 200a320 <rtems_mkdir+0x180> <== NOT EXECUTED
200a1fc: c2 4c 60 01 ldsb [ %l1 + 1 ], %g1 <== NOT EXECUTED
p = path;
oumask = 0;
retval = 1;
if (p[0] == '/') /* Skip leading '/'. */
++p;
for (first = 1, last = 0; !last ; ++p) {
200a200: a2 04 60 01 inc %l1 <== NOT EXECUTED
200a204: c2 0c 40 00 ldub [ %l1 ], %g1 <== NOT EXECUTED
200a208: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED
if (p[0] == '\0')
200a20c: 83 38 60 18 sra %g1, 0x18, %g1 <== NOT EXECUTED
200a210: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a214: 12 bf ff f9 bne 200a1f8 <rtems_mkdir+0x58> <== NOT EXECUTED
200a218: 80 a0 60 2f cmp %g1, 0x2f <== NOT EXECUTED
last = 1;
else if (p[0] != '/')
continue;
*p = '\0';
200a21c: c0 2c 40 00 clrb [ %l1 ] <== NOT EXECUTED
200a220: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED
if (!last && p[1] == '\0')
last = 1;
if (first) {
200a224: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
200a228: 12 80 00 37 bne 200a304 <rtems_mkdir+0x164> <== NOT EXECUTED
200a22c: 01 00 00 00 nop <== NOT EXECUTED
oumask = umask(0);
numask = oumask & ~(S_IWUSR | S_IXUSR);
(void)umask(numask);
first = 0;
}
if (last)
200a230: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
200a234: 12 80 00 13 bne 200a280 <rtems_mkdir+0xe0> <== NOT EXECUTED
200a238: 92 10 21 ff mov 0x1ff, %o1 <== NOT EXECUTED
(void)umask(oumask);
if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
200a23c: 7f ff fc 01 call 2009240 <mkdir> <== NOT EXECUTED
200a240: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
200a244: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a248: 06 80 00 16 bl 200a2a0 <rtems_mkdir+0x100> <== NOT EXECUTED
200a24c: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
} else {
retval = 0;
break;
}
}
if (!last)
200a250: 22 80 00 0a be,a 200a278 <rtems_mkdir+0xd8> <== NOT EXECUTED
200a254: e8 2c 40 00 stb %l4, [ %l1 ] <== NOT EXECUTED
if (p[0] == '\0')
last = 1;
else if (p[0] != '/')
continue;
*p = '\0';
if (!last && p[1] == '\0')
200a258: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED
int success = 0;
char *dup_path = strdup(path);
if (dup_path != NULL) {
success = build(dup_path, mode);
free(dup_path);
200a25c: 7f ff f9 a0 call 20088dc <free> <== NOT EXECUTED
200a260: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
}
return success != 0 ? 0 : -1;
200a264: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
200a268: 02 80 00 48 be 200a388 <rtems_mkdir+0x1e8> <== NOT EXECUTED
200a26c: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
200a270: 81 c7 e0 08 ret <== NOT EXECUTED
200a274: 81 e8 00 00 restore <== NOT EXECUTED
retval = 0;
break;
}
}
if (!last)
*p = '/';
200a278: 10 bf ff e2 b 200a200 <rtems_mkdir+0x60> <== NOT EXECUTED
200a27c: 84 10 20 00 clr %g2 <== NOT EXECUTED
numask = oumask & ~(S_IWUSR | S_IXUSR);
(void)umask(numask);
first = 0;
}
if (last)
(void)umask(oumask);
200a280: 40 00 08 9b call 200c4ec <umask> <== NOT EXECUTED
200a284: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
200a288: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
200a28c: 7f ff fb ed call 2009240 <mkdir> <== NOT EXECUTED
200a290: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
200a294: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a298: 16 bf ff ee bge 200a250 <rtems_mkdir+0xb0> <== NOT EXECUTED
200a29c: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
if (errno == EEXIST || errno == EISDIR) {
200a2a0: 40 00 fa 69 call 2048c44 <__errno> <== NOT EXECUTED
200a2a4: 01 00 00 00 nop <== NOT EXECUTED
200a2a8: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED
200a2ac: 80 a0 60 11 cmp %g1, 0x11 <== NOT EXECUTED
200a2b0: 02 80 00 08 be 200a2d0 <rtems_mkdir+0x130> <== NOT EXECUTED
200a2b4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
200a2b8: 40 00 fa 63 call 2048c44 <__errno> <== NOT EXECUTED
200a2bc: 01 00 00 00 nop <== NOT EXECUTED
200a2c0: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED
200a2c4: 80 a0 60 15 cmp %g1, 0x15 <== NOT EXECUTED
200a2c8: 12 80 00 32 bne 200a390 <rtems_mkdir+0x1f0> <== NOT EXECUTED
200a2cc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (stat(path, &sb) < 0) {
200a2d0: 40 00 00 34 call 200a3a0 <stat> <== NOT EXECUTED
200a2d4: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
200a2d8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a2dc: 06 80 00 2d bl 200a390 <rtems_mkdir+0x1f0> <== NOT EXECUTED
200a2e0: c2 07 bf c4 ld [ %fp + -60 ], %g1 <== NOT EXECUTED
retval = 0;
break;
} else if (!S_ISDIR(sb.st_mode)) {
200a2e4: 82 08 40 17 and %g1, %l7, %g1 <== NOT EXECUTED
200a2e8: 80 a0 40 16 cmp %g1, %l6 <== NOT EXECUTED
200a2ec: 12 80 00 15 bne 200a340 <rtems_mkdir+0x1a0> <== NOT EXECUTED
200a2f0: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
else
errno = ENOTDIR;
retval = 0;
break;
}
if (last)
200a2f4: 22 bf ff e1 be,a 200a278 <rtems_mkdir+0xd8> <== NOT EXECUTED
200a2f8: e8 2c 40 00 stb %l4, [ %l1 ] <== NOT EXECUTED
200a2fc: 10 bf ff d8 b 200a25c <rtems_mkdir+0xbc> <== NOT EXECUTED
200a300: a2 10 20 02 mov 2, %l1 <== NOT EXECUTED
* mkdir [-m mode] dir
*
* We change the user's umask and then restore it,
* instead of doing chmod's.
*/
oumask = umask(0);
200a304: 40 00 08 7a call 200c4ec <umask> <== NOT EXECUTED
200a308: 90 10 20 00 clr %o0 <== NOT EXECUTED
200a30c: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
numask = oumask & ~(S_IWUSR | S_IXUSR);
(void)umask(numask);
200a310: 40 00 08 77 call 200c4ec <umask> <== NOT EXECUTED
200a314: 90 0a 3f 3f and %o0, -193, %o0 <== NOT EXECUTED
first = 0;
}
if (last)
200a318: 10 bf ff c7 b 200a234 <rtems_mkdir+0x94> <== NOT EXECUTED
200a31c: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
for (first = 1, last = 0; !last ; ++p) {
if (p[0] == '\0')
last = 1;
else if (p[0] != '/')
continue;
*p = '\0';
200a320: c0 2c 40 00 clrb [ %l1 ] <== NOT EXECUTED
if (!last && p[1] == '\0')
200a324: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
200a328: 10 bf ff bf b 200a224 <rtems_mkdir+0x84> <== NOT EXECUTED
200a32c: a4 60 3f ff subx %g0, -1, %l2 <== NOT EXECUTED
p = path;
oumask = 0;
retval = 1;
if (p[0] == '/') /* Skip leading '/'. */
++p;
200a330: c2 0c 20 01 ldub [ %l0 + 1 ], %g1 <== NOT EXECUTED
200a334: a2 04 20 01 add %l0, 1, %l1 <== NOT EXECUTED
200a338: 10 bf ff a6 b 200a1d0 <rtems_mkdir+0x30> <== NOT EXECUTED
200a33c: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED
if (errno == EEXIST || errno == EISDIR) {
if (stat(path, &sb) < 0) {
retval = 0;
break;
} else if (!S_ISDIR(sb.st_mode)) {
if (last)
200a340: 02 80 00 0a be 200a368 <rtems_mkdir+0x1c8> <== NOT EXECUTED
200a344: 01 00 00 00 nop <== NOT EXECUTED
errno = EEXIST;
200a348: 40 00 fa 3f call 2048c44 <__errno> <== NOT EXECUTED
200a34c: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
200a350: 82 10 20 11 mov 0x11, %g1 <== NOT EXECUTED
200a354: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
int success = 0;
char *dup_path = strdup(path);
if (dup_path != NULL) {
success = build(dup_path, mode);
free(dup_path);
200a358: 7f ff f9 61 call 20088dc <free> <== NOT EXECUTED
200a35c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
200a360: 81 c7 e0 08 ret <== NOT EXECUTED
200a364: 81 e8 00 00 restore <== NOT EXECUTED
break;
} else if (!S_ISDIR(sb.st_mode)) {
if (last)
errno = EEXIST;
else
errno = ENOTDIR;
200a368: 40 00 fa 37 call 2048c44 <__errno> <== NOT EXECUTED
200a36c: 01 00 00 00 nop <== NOT EXECUTED
200a370: 82 10 20 14 mov 0x14, %g1 ! 14 <PROM_START+0x14> <== NOT EXECUTED
200a374: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
if (!last)
*p = '/';
}
if (!first && !last)
(void)umask(oumask);
200a378: 40 00 08 5d call 200c4ec <umask> <== NOT EXECUTED
200a37c: 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);
200a380: 7f ff f9 57 call 20088dc <free> <== NOT EXECUTED
200a384: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
}
return success != 0 ? 0 : -1;
}
200a388: 81 c7 e0 08 ret <== NOT EXECUTED
200a38c: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
}
}
if (!last)
*p = '/';
}
if (!first && !last)
200a390: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
200a394: 02 bf ff f9 be 200a378 <rtems_mkdir+0x1d8> <== NOT EXECUTED
200a398: 01 00 00 00 nop <== NOT EXECUTED
200a39c: 30 bf ff f9 b,a 200a380 <rtems_mkdir+0x1e0> <== NOT EXECUTED
020238c8 <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)
{
20238c8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
uint32_t b;
rtems_nvdisk_crc16_factor = malloc (sizeof (uint16_t) * 256);
20238cc: 7f ff 95 e5 call 2009060 <malloc> <== NOT EXECUTED
20238d0: 90 10 22 00 mov 0x200, %o0 <== NOT EXECUTED
20238d4: 03 00 81 cb sethi %hi(0x2072c00), %g1 <== NOT EXECUTED
20238d8: d0 20 60 d4 st %o0, [ %g1 + 0xd4 ] ! 2072cd4 <rtems_nvdisk_crc16_factor><== NOT EXECUTED
* @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)
{
20238dc: 9a 10 00 18 mov %i0, %o5 <== NOT EXECUTED
uint32_t b;
rtems_nvdisk_crc16_factor = malloc (sizeof (uint16_t) * 256);
if (!rtems_nvdisk_crc16_factor)
20238e0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20238e4: 88 10 20 00 clr %g4 <== NOT EXECUTED
20238e8: 02 80 00 14 be 2023938 <rtems_nvdisk_crc16_gen_factors+0x70><== NOT EXECUTED
20238ec: 82 10 20 1a mov 0x1a, %g1 <== NOT EXECUTED
20238f0: 82 10 00 04 mov %g4, %g1 <== NOT EXECUTED
20238f4: 84 10 20 07 mov 7, %g2 <== NOT EXECUTED
for (b = 0; b < 256; b++)
{
uint32_t i;
uint16_t v = b;
for (i = 8; i--;)
v = v & 1 ? (v >> 1) ^ pattern : v >> 1;
20238f8: 86 08 60 01 and %g1, 1, %g3 <== NOT EXECUTED
20238fc: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
2023900: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
2023904: 87 30 60 11 srl %g1, 0x11, %g3 <== NOT EXECUTED
2023908: 02 80 00 03 be 2023914 <rtems_nvdisk_crc16_gen_factors+0x4c><== NOT EXECUTED
202390c: 82 10 00 03 mov %g3, %g1 <== NOT EXECUTED
2023910: 82 18 c0 0d xor %g3, %o5, %g1 <== NOT EXECUTED
for (b = 0; b < 256; b++)
{
uint32_t i;
uint16_t v = b;
for (i = 8; i--;)
2023914: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2023918: 12 bf ff f8 bne 20238f8 <rtems_nvdisk_crc16_gen_factors+0x30><== NOT EXECUTED
202391c: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
v = v & 1 ? (v >> 1) ^ pattern : v >> 1;
rtems_nvdisk_crc16_factor[b] = v & 0xffff;
2023920: 85 29 20 01 sll %g4, 1, %g2 <== 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++)
2023924: 88 01 20 01 inc %g4 <== NOT EXECUTED
2023928: 80 a1 21 00 cmp %g4, 0x100 <== NOT EXECUTED
202392c: 12 bf ff f1 bne 20238f0 <rtems_nvdisk_crc16_gen_factors+0x28><== NOT EXECUTED
2023930: c2 32 00 02 sth %g1, [ %o0 + %g2 ] <== NOT EXECUTED
2023934: 82 10 20 00 clr %g1 <== NOT EXECUTED
for (i = 8; i--;)
v = v & 1 ? (v >> 1) ^ pattern : v >> 1;
rtems_nvdisk_crc16_factor[b] = v & 0xffff;
}
return RTEMS_SUCCESSFUL;
}
2023938: 81 c7 e0 08 ret <== NOT EXECUTED
202393c: 91 e8 00 01 restore %g0, %g1, %o0 <== NOT EXECUTED
02023158 <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, ...)
{
2023158: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int ret;
va_list args;
va_start (args, format);
fprintf (stderr, "nvdisk:error:");
202315c: 21 00 81 be sethi %hi(0x206f800), %l0 <== NOT EXECUTED
2023160: c2 04 22 c0 ld [ %l0 + 0x2c0 ], %g1 ! 206fac0 <_impure_ptr><== NOT EXECUTED
static int
rtems_nvdisk_error (const char *format, ...)
{
int ret;
va_list args;
va_start (args, format);
2023164: f2 27 a0 48 st %i1, [ %fp + 0x48 ] <== NOT EXECUTED
2023168: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED
202316c: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED
2023170: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED
2023174: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED
fprintf (stderr, "nvdisk:error:");
2023178: d6 00 60 0c ld [ %g1 + 0xc ], %o3 <== NOT EXECUTED
static int
rtems_nvdisk_error (const char *format, ...)
{
int ret;
va_list args;
va_start (args, format);
202317c: 82 07 a0 48 add %fp, 0x48, %g1 <== NOT EXECUTED
fprintf (stderr, "nvdisk:error:");
2023180: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
static int
rtems_nvdisk_error (const char *format, ...)
{
int ret;
va_list args;
va_start (args, format);
2023184: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
fprintf (stderr, "nvdisk:error:");
2023188: 94 10 20 0d mov 0xd, %o2 <== NOT EXECUTED
202318c: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
2023190: 40 00 9e 35 call 204aa64 <fwrite> <== NOT EXECUTED
2023194: 90 12 20 88 or %o0, 0x88, %o0 ! 2068088 <msdos_ops+0x48> <== NOT EXECUTED
ret = vfprintf (stderr, format, args);
2023198: c2 04 22 c0 ld [ %l0 + 0x2c0 ], %g1 <== NOT EXECUTED
202319c: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
20231a0: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED
20231a4: 40 00 d2 f5 call 2057d78 <vfprintf> <== NOT EXECUTED
20231a8: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
fprintf (stderr, "\n");
20231ac: c2 04 22 c0 ld [ %l0 + 0x2c0 ], %g1 <== NOT EXECUTED
{
int ret;
va_list args;
va_start (args, format);
fprintf (stderr, "nvdisk:error:");
ret = vfprintf (stderr, format, args);
20231b0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
fprintf (stderr, "\n");
20231b4: d2 00 60 0c ld [ %g1 + 0xc ], %o1 <== NOT EXECUTED
20231b8: 40 00 99 6d call 204976c <fputc> <== NOT EXECUTED
20231bc: 90 10 20 0a mov 0xa, %o0 <== NOT EXECUTED
fflush (stderr);
20231c0: c2 04 22 c0 ld [ %l0 + 0x2c0 ], %g1 <== NOT EXECUTED
20231c4: 40 00 97 aa call 204906c <fflush> <== NOT EXECUTED
20231c8: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED
va_end (args);
return ret;
}
20231cc: 81 c7 e0 08 ret <== NOT EXECUTED
20231d0: 81 e8 00 00 restore <== NOT EXECUTED
020231d4 <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)
{
20231d4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
uint32_t device;
if (block >= nvd->block_count)
20231d8: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
20231dc: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED
20231e0: 08 80 00 1d bleu 2023254 <rtems_nvdisk_get_device+0x80> <== NOT EXECUTED
20231e4: 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++)
20231e8: c8 06 20 18 ld [ %i0 + 0x18 ], %g4 <== NOT EXECUTED
20231ec: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED
20231f0: 02 80 00 13 be 202323c <rtems_nvdisk_get_device+0x68> <== NOT EXECUTED
20231f4: 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);
return NULL;
20231f8: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 <== NOT EXECUTED
}
for (device = 0; device < nvd->device_count; device++)
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
if ((block >= dc->block_base) &&
20231fc: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
{
rtems_nvdisk_error ("read-block: bad block: %d", block);
return NULL;
}
for (device = 0; device < nvd->device_count; device++)
2023200: 84 00 a0 01 inc %g2 <== NOT EXECUTED
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
if ((block >= dc->block_base) &&
2023204: 80 a6 40 03 cmp %i1, %g3 <== NOT EXECUTED
2023208: 0a 80 00 09 bcs 202322c <rtems_nvdisk_get_device+0x58> <== NOT EXECUTED
202320c: b0 10 00 01 mov %g1, %i0 <== NOT EXECUTED
2023210: d8 00 60 04 ld [ %g1 + 4 ], %o4 <== NOT EXECUTED
2023214: da 00 60 08 ld [ %g1 + 8 ], %o5 <== NOT EXECUTED
2023218: 86 00 c0 0c add %g3, %o4, %g3 <== NOT EXECUTED
202321c: 86 20 c0 0d sub %g3, %o5, %g3 <== NOT EXECUTED
2023220: 80 a6 40 03 cmp %i1, %g3 <== NOT EXECUTED
2023224: 0a 80 00 10 bcs 2023264 <rtems_nvdisk_get_device+0x90> <== NOT EXECUTED
2023228: 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++)
202322c: 80 a0 80 04 cmp %g2, %g4 <== NOT EXECUTED
2023230: 0a bf ff f3 bcs 20231fc <rtems_nvdisk_get_device+0x28> <== NOT EXECUTED
2023234: 82 00 60 14 add %g1, 0x14, %g1 <== 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);
2023238: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
202323c: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
2023240: b0 10 20 00 clr %i0 <== NOT EXECUTED
2023244: 7f ff ff c5 call 2023158 <rtems_nvdisk_error> <== NOT EXECUTED
2023248: 90 12 20 b8 or %o0, 0xb8, %o0 <== NOT EXECUTED
return NULL;
}
202324c: 81 c7 e0 08 ret <== NOT EXECUTED
2023250: 81 e8 00 00 restore <== NOT EXECUTED
{
uint32_t device;
if (block >= nvd->block_count)
{
rtems_nvdisk_error ("read-block: bad block: %d", block);
2023254: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
2023258: b0 10 20 00 clr %i0 <== NOT EXECUTED
202325c: 7f ff ff bf call 2023158 <rtems_nvdisk_error> <== NOT EXECUTED
2023260: 90 12 20 98 or %o0, 0x98, %o0 <== NOT EXECUTED
return NULL;
2023264: 81 c7 e0 08 ret <== NOT EXECUTED
2023268: 81 e8 00 00 restore <== NOT EXECUTED
02023940 <rtems_nvdisk_initialize>:
*/
rtems_device_driver
rtems_nvdisk_initialize (rtems_device_major_number major,
rtems_device_minor_number minor,
void* arg __attribute__((unused)))
{
2023940: 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 ();
2023944: 7f ff 8d bf call 2007040 <rtems_disk_io_initialize> <== NOT EXECUTED
2023948: a8 10 00 18 mov %i0, %l4 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
202394c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023950: 02 80 00 04 be 2023960 <rtems_nvdisk_initialize+0x20> <== NOT EXECUTED
2023954: b6 10 00 08 mov %o0, %i3 <== NOT EXECUTED
}
rtems_nvdisk_count = rtems_nvdisk_configuration_size;
return RTEMS_SUCCESSFUL;
}
2023958: 81 c7 e0 08 ret <== NOT EXECUTED
202395c: 91 e8 00 1b restore %g0, %i3, %o0 <== NOT EXECUTED
sc = rtems_disk_io_initialize ();
if (sc != RTEMS_SUCCESSFUL)
return sc;
sc = rtems_nvdisk_crc16_gen_factors (0x8408);
2023960: 11 00 00 21 sethi %hi(0x8400), %o0 <== NOT EXECUTED
2023964: 7f ff ff d9 call 20238c8 <rtems_nvdisk_crc16_gen_factors> <== NOT EXECUTED
2023968: 90 12 20 08 or %o0, 8, %o0 ! 8408 <PROM_START+0x8408> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
202396c: b6 92 20 00 orcc %o0, 0, %i3 <== NOT EXECUTED
2023970: 12 bf ff fa bne 2023958 <rtems_nvdisk_initialize+0x18> <== NOT EXECUTED
2023974: 39 00 81 bc sethi %hi(0x206f000), %i4 <== NOT EXECUTED
return sc;
rtems_nvdisks = calloc (rtems_nvdisk_configuration_size,
2023978: d0 07 20 4c ld [ %i4 + 0x4c ], %o0 ! 206f04c <rtems_nvdisk_configuration_size><== NOT EXECUTED
202397c: 7f ff 92 36 call 2008254 <calloc> <== NOT EXECUTED
2023980: 92 10 20 28 mov 0x28, %o1 <== NOT EXECUTED
2023984: 05 00 81 cb sethi %hi(0x2072c00), %g2 <== NOT EXECUTED
sizeof (rtems_nvdisk));
if (!rtems_nvdisks)
2023988: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202398c: 02 80 00 76 be 2023b64 <rtems_nvdisk_initialize+0x224> <== NOT EXECUTED
2023990: d0 20 a0 cc st %o0, [ %g2 + 0xcc ] <== NOT EXECUTED
return RTEMS_NO_MEMORY;
for (minor = 0; minor < rtems_nvdisk_configuration_size; minor++, c++)
2023994: c2 07 20 4c ld [ %i4 + 0x4c ], %g1 <== NOT EXECUTED
2023998: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202399c: 02 80 00 74 be 2023b6c <rtems_nvdisk_initialize+0x22c> <== NOT EXECUTED
20239a0: 23 00 81 8f sethi %hi(0x2063c00), %l1 <== NOT EXECUTED
{
char name[] = RTEMS_NVDISK_DEVICE_BASE_NAME "a";
20239a4: 2b 00 00 18 sethi %hi(0x6000), %l5 <== NOT EXECUTED
}
nvd->block_count = blocks;
nvd->device_count = c->device_count;
sc = rtems_disk_create_phys(dev, c->block_size, blocks,
20239a8: 2f 00 80 8c sethi %hi(0x2023000), %l7 <== NOT EXECUTED
{
rtems_nvdisk_error ("disk create phy failed");
return sc;
}
sc = rtems_semaphore_create (rtems_build_name ('N', 'V', 'D', 'K'), 1,
20239ac: 3b 13 95 91 sethi %hi(0x4e564400), %i5 <== NOT EXECUTED
sizeof (rtems_nvdisk));
if (!rtems_nvdisks)
return RTEMS_NO_MEMORY;
for (minor = 0; minor < rtems_nvdisk_configuration_size; minor++, c++)
20239b0: b8 17 20 4c or %i4, 0x4c, %i4 <== NOT EXECUTED
20239b4: a2 14 62 04 or %l1, 0x204, %l1 <== NOT EXECUTED
{
char name[] = RTEMS_NVDISK_DEVICE_BASE_NAME "a";
20239b8: aa 15 61 00 or %l5, 0x100, %l5 <== NOT EXECUTED
}
nvd->block_count = blocks;
nvd->device_count = c->device_count;
sc = rtems_disk_create_phys(dev, c->block_size, blocks,
20239bc: ae 15 e2 6c or %l7, 0x26c, %l7 <== NOT EXECUTED
{
rtems_nvdisk_error ("disk create phy failed");
return sc;
}
sc = rtems_semaphore_create (rtems_build_name ('N', 'V', 'D', 'K'), 1,
20239c0: ba 17 60 4b or %i5, 0x4b, %i5 <== NOT EXECUTED
sizeof (rtems_nvdisk));
if (!rtems_nvdisks)
return RTEMS_NO_MEMORY;
for (minor = 0; minor < rtems_nvdisk_configuration_size; minor++, c++)
20239c4: a6 10 20 00 clr %l3 <== NOT EXECUTED
20239c8: 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,
20239cc: ac 07 bf e8 add %fp, -24, %l6 <== 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";
20239d0: ea 37 bf f0 sth %l5, [ %fp + -16 ] <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
20239d4: e8 27 bf f8 st %l4, [ %fp + -8 ] <== NOT EXECUTED
temp.__overlay.minor = _minor;
20239d8: e4 27 bf fc st %l2, [ %fp + -4 ] <== NOT EXECUTED
uint32_t device;
uint32_t blocks = 0;
nvd = &rtems_nvdisks[minor];
name [sizeof(RTEMS_NVDISK_DEVICE_BASE_NAME)] += minor;
20239dc: 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";
20239e0: 05 0b d9 19 sethi %hi(0x2f646400), %g2 <== NOT EXECUTED
20239e4: 07 0b db 9d sethi %hi(0x2f6e7400), %g3 <== NOT EXECUTED
20239e8: 84 10 a1 76 or %g2, 0x176, %g2 <== NOT EXECUTED
20239ec: 86 10 e2 64 or %g3, 0x264, %g3 <== NOT EXECUTED
20239f0: c4 3f bf e8 std %g2, [ %fp + -24 ] <== NOT EXECUTED
dev_t dev = rtems_filesystem_make_dev_t (major, minor);
uint32_t device;
uint32_t blocks = 0;
nvd = &rtems_nvdisks[minor];
20239f4: a0 02 00 13 add %o0, %l3, %l0 <== NOT EXECUTED
return temp.device;
20239f8: c4 1f bf f8 ldd [ %fp + -8 ], %g2 <== NOT EXECUTED
name [sizeof(RTEMS_NVDISK_DEVICE_BASE_NAME)] += minor;
nvd->major = major;
20239fc: e8 22 00 13 st %l4, [ %o0 + %l3 ] <== NOT EXECUTED
nvd->minor = minor;
2023a00: e4 24 20 04 st %l2, [ %l0 + 4 ] <== NOT EXECUTED
nvd->flags = c->flags;
2023a04: c2 04 60 0c ld [ %l1 + 0xc ], %g1 <== NOT EXECUTED
2023a08: c4 3f bf e0 std %g2, [ %fp + -32 ] <== NOT EXECUTED
2023a0c: c2 24 20 08 st %g1, [ %l0 + 8 ] <== NOT EXECUTED
nvd->block_size = c->block_size;
2023a10: 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));
2023a14: 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;
2023a18: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED
nvd->info_level = c->info_level;
2023a1c: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED
2023a20: c2 24 20 24 st %g1, [ %l0 + 0x24 ] <== NOT EXECUTED
nvd->devices = calloc (c->device_count, sizeof (rtems_nvdisk_device_ctl));
2023a24: 7f ff 92 0c call 2008254 <calloc> <== NOT EXECUTED
2023a28: d0 04 60 04 ld [ %l1 + 4 ], %o0 <== NOT EXECUTED
2023a2c: d0 24 20 14 st %o0, [ %l0 + 0x14 ] <== NOT EXECUTED
if (!nvd->devices)
2023a30: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023a34: 02 80 00 4c be 2023b64 <rtems_nvdisk_initialize+0x224> <== NOT EXECUTED
2023a38: b2 10 00 08 mov %o0, %i1 <== NOT EXECUTED
return RTEMS_NO_MEMORY;
for (device = 0; device < c->device_count; device++)
2023a3c: c2 04 60 04 ld [ %l1 + 4 ], %g1 <== NOT EXECUTED
2023a40: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2023a44: 02 80 00 2a be 2023aec <rtems_nvdisk_initialize+0x1ac> <== NOT EXECUTED
2023a48: b6 10 20 00 clr %i3 <== NOT EXECUTED
2023a4c: b0 10 20 00 clr %i0 <== NOT EXECUTED
2023a50: 10 80 00 03 b 2023a5c <rtems_nvdisk_initialize+0x11c> <== NOT EXECUTED
2023a54: b4 10 20 00 clr %i2 <== NOT EXECUTED
2023a58: f2 04 20 14 ld [ %l0 + 0x14 ], %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;
2023a5c: c4 04 60 08 ld [ %l1 + 8 ], %g2 <== NOT EXECUTED
for (device = 0; device < c->device_count; device++)
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
dc->device = device;
2023a60: f4 26 40 18 st %i2, [ %i1 + %i0 ] <== NOT EXECUTED
2023a64: 83 2e a0 04 sll %i2, 4, %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;
2023a68: d2 04 20 0c ld [ %l0 + 0xc ], %o1 <== NOT EXECUTED
2023a6c: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
2023a70: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED
2023a74: 40 00 f5 a1 call 20610f8 <.udiv> <== NOT EXECUTED
2023a78: c2 27 bf d4 st %g1, [ %fp + -44 ] <== 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;
2023a7c: c2 07 bf d4 ld [ %fp + -44 ], %g1 <== 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];
2023a80: b2 06 40 18 add %i1, %i0, %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;
2023a84: 84 10 00 08 mov %o0, %g2 <== 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]);
2023a88: d0 26 60 04 st %o0, [ %i1 + 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;
2023a8c: c6 04 20 0c ld [ %l0 + 0xc ], %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;
2023a90: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED
2023a94: 92 10 00 03 mov %g3, %o1 <== NOT EXECUTED
2023a98: c4 27 bf d8 st %g2, [ %fp + -40 ] <== NOT EXECUTED
2023a9c: 40 00 f5 97 call 20610f8 <.udiv> <== NOT EXECUTED
2023aa0: c6 27 bf dc st %g3, [ %fp + -36 ] <== NOT EXECUTED
2023aa4: c6 07 bf dc ld [ %fp + -36 ], %g3 <== NOT EXECUTED
2023aa8: 91 2a 20 01 sll %o0, 1, %o0 <== NOT EXECUTED
2023aac: 92 10 00 03 mov %g3, %o1 <== NOT EXECUTED
2023ab0: 40 00 f5 92 call 20610f8 <.udiv> <== NOT EXECUTED
2023ab4: 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];
2023ab8: c2 07 bf d4 ld [ %fp + -44 ], %g1 <== 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;
2023abc: f6 26 60 0c st %i3, [ %i1 + 0xc ] <== 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;
2023ac0: 90 02 20 01 inc %o0 <== 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;
2023ac4: c4 07 bf d8 ld [ %fp + -40 ], %g2 <== 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]);
2023ac8: d0 26 60 08 st %o0, [ %i1 + 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++)
2023acc: c6 04 60 04 ld [ %l1 + 4 ], %g3 <== 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];
2023ad0: c2 26 60 10 st %g1, [ %i1 + 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;
2023ad4: 84 20 80 08 sub %g2, %o0, %g2 <== 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++)
2023ad8: b4 06 a0 01 inc %i2 <== 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;
2023adc: b6 06 c0 02 add %i3, %g2, %i3 <== 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++)
2023ae0: 80 a0 c0 1a cmp %g3, %i2 <== NOT EXECUTED
2023ae4: 18 bf ff dd bgu 2023a58 <rtems_nvdisk_initialize+0x118> <== NOT EXECUTED
2023ae8: b0 06 20 14 add %i0, 0x14, %i0 <== NOT EXECUTED
blocks += dc->pages - dc->pages_desc;
dc->descriptor = &c->devices[device];
}
nvd->block_count = blocks;
2023aec: f6 24 20 10 st %i3, [ %l0 + 0x10 ] <== NOT EXECUTED
nvd->device_count = c->device_count;
2023af0: c2 04 60 04 ld [ %l1 + 4 ], %g1 <== NOT EXECUTED
sc = rtems_disk_create_phys(dev, c->block_size, blocks,
2023af4: 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;
2023af8: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED
sc = rtems_disk_create_phys(dev, c->block_size, blocks,
2023afc: d4 04 40 00 ld [ %l1 ], %o2 <== NOT EXECUTED
2023b00: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
2023b04: ec 23 a0 5c st %l6, [ %sp + 0x5c ] <== NOT EXECUTED
2023b08: 98 10 00 17 mov %l7, %o4 <== NOT EXECUTED
2023b0c: 7f ff 8f 2a call 20077b4 <rtems_disk_create_phys> <== NOT EXECUTED
2023b10: 9a 10 20 00 clr %o5 <== NOT EXECUTED
rtems_nvdisk_ioctl, NULL, name);
if (sc != RTEMS_SUCCESSFUL)
2023b14: b6 92 20 00 orcc %o0, 0, %i3 <== NOT EXECUTED
2023b18: 12 80 00 1d bne 2023b8c <rtems_nvdisk_initialize+0x24c> <== NOT EXECUTED
2023b1c: 98 04 20 20 add %l0, 0x20, %o4 <== NOT EXECUTED
{
rtems_nvdisk_error ("disk create phy failed");
return sc;
}
sc = rtems_semaphore_create (rtems_build_name ('N', 'V', 'D', 'K'), 1,
2023b20: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED
2023b24: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2023b28: 94 10 20 54 mov 0x54, %o2 <== NOT EXECUTED
2023b2c: 7f ff a6 09 call 200d350 <rtems_semaphore_create> <== NOT EXECUTED
2023b30: 96 10 20 00 clr %o3 <== NOT EXECUTED
RTEMS_PRIORITY | RTEMS_BINARY_SEMAPHORE |
RTEMS_INHERIT_PRIORITY, 0, &nvd->lock);
if (sc != RTEMS_SUCCESSFUL)
2023b34: b6 92 20 00 orcc %o0, 0, %i3 <== NOT EXECUTED
2023b38: 12 80 00 11 bne 2023b7c <rtems_nvdisk_initialize+0x23c> <== NOT EXECUTED
2023b3c: a4 04 a0 01 inc %l2 <== NOT EXECUTED
sizeof (rtems_nvdisk));
if (!rtems_nvdisks)
return RTEMS_NO_MEMORY;
for (minor = 0; minor < rtems_nvdisk_configuration_size; minor++, c++)
2023b40: c2 07 00 00 ld [ %i4 ], %g1 <== NOT EXECUTED
2023b44: 80 a0 40 12 cmp %g1, %l2 <== NOT EXECUTED
2023b48: 08 80 00 09 bleu 2023b6c <rtems_nvdisk_initialize+0x22c> <== NOT EXECUTED
2023b4c: a6 04 e0 28 add %l3, 0x28, %l3 <== NOT EXECUTED
2023b50: 07 00 81 cb sethi %hi(0x2072c00), %g3 <== NOT EXECUTED
2023b54: a2 04 60 14 add %l1, 0x14, %l1 <== NOT EXECUTED
2023b58: 86 10 e0 cc or %g3, 0xcc, %g3 <== NOT EXECUTED
2023b5c: 10 bf ff 9d b 20239d0 <rtems_nvdisk_initialize+0x90> <== NOT EXECUTED
2023b60: d0 00 c0 00 ld [ %g3 ], %o0 <== NOT EXECUTED
}
}
rtems_nvdisk_count = rtems_nvdisk_configuration_size;
return RTEMS_SUCCESSFUL;
2023b64: 10 bf ff 7d b 2023958 <rtems_nvdisk_initialize+0x18> <== NOT EXECUTED
2023b68: b6 10 20 1a mov 0x1a, %i3 <== NOT EXECUTED
rtems_nvdisk_error ("disk lock create failed");
return sc;
}
}
rtems_nvdisk_count = rtems_nvdisk_configuration_size;
2023b6c: 05 00 81 cb sethi %hi(0x2072c00), %g2 <== NOT EXECUTED
2023b70: b6 10 20 00 clr %i3 <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
2023b74: 10 bf ff 79 b 2023958 <rtems_nvdisk_initialize+0x18> <== NOT EXECUTED
2023b78: c2 20 a0 d0 st %g1, [ %g2 + 0xd0 ] <== NOT EXECUTED
sc = rtems_semaphore_create (rtems_build_name ('N', 'V', 'D', 'K'), 1,
RTEMS_PRIORITY | RTEMS_BINARY_SEMAPHORE |
RTEMS_INHERIT_PRIORITY, 0, &nvd->lock);
if (sc != RTEMS_SUCCESSFUL)
{
rtems_nvdisk_error ("disk lock create failed");
2023b7c: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
2023b80: 7f ff fd 76 call 2023158 <rtems_nvdisk_error> <== NOT EXECUTED
2023b84: 90 12 21 30 or %o0, 0x130, %o0 ! 2068130 <msdos_ops+0xf0> <== NOT EXECUTED
return sc;
2023b88: 30 bf ff 74 b,a 2023958 <rtems_nvdisk_initialize+0x18> <== NOT EXECUTED
sc = rtems_disk_create_phys(dev, c->block_size, blocks,
rtems_nvdisk_ioctl, NULL, name);
if (sc != RTEMS_SUCCESSFUL)
{
rtems_nvdisk_error ("disk create phy failed");
2023b8c: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
2023b90: 7f ff fd 72 call 2023158 <rtems_nvdisk_error> <== NOT EXECUTED
2023b94: 90 12 21 18 or %o0, 0x118, %o0 ! 2068118 <msdos_ops+0xd8> <== NOT EXECUTED
return sc;
2023b98: 30 bf ff 70 b,a 2023958 <rtems_nvdisk_initialize+0x18> <== NOT EXECUTED
0202326c <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)
{
202326c: 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)
2023270: 03 00 81 cb sethi %hi(0x2072c00), %g1 <== NOT EXECUTED
2023274: c4 00 60 d0 ld [ %g1 + 0xd0 ], %g2 ! 2072cd0 <rtems_nvdisk_count><== NOT EXECUTED
dev_t device
)
{
union __rtems_dev_t temp;
temp.device = device;
2023278: c2 06 20 04 ld [ %i0 + 4 ], %g1 <== NOT EXECUTED
202327c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2023280: 08 80 01 0b bleu 20236ac <rtems_nvdisk_ioctl+0x440> <== NOT EXECUTED
2023284: 39 00 81 cb sethi %hi(0x2072c00), %i4 <== NOT EXECUTED
{
errno = ENODEV;
return -1;
}
if (rtems_nvdisks[minor].device_count == 0)
2023288: c4 07 20 cc ld [ %i4 + 0xcc ], %g2 ! 2072ccc <rtems_nvdisks><== NOT EXECUTED
202328c: 87 28 60 05 sll %g1, 5, %g3 <== NOT EXECUTED
2023290: 83 28 60 03 sll %g1, 3, %g1 <== NOT EXECUTED
2023294: b6 00 40 03 add %g1, %g3, %i3 <== NOT EXECUTED
2023298: 82 00 80 1b add %g2, %i3, %g1 <== NOT EXECUTED
202329c: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED
20232a0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20232a4: 02 80 01 02 be 20236ac <rtems_nvdisk_ioctl+0x440> <== NOT EXECUTED
20232a8: 01 00 00 00 nop <== NOT EXECUTED
{
errno = ENODEV;
return -1;
}
errno = 0;
20232ac: 40 00 96 66 call 2048c44 <__errno> <== NOT EXECUTED
20232b0: 01 00 00 00 nop <== NOT EXECUTED
sc = rtems_semaphore_obtain (rtems_nvdisks[minor].lock, RTEMS_WAIT, 0);
20232b4: c2 07 20 cc ld [ %i4 + 0xcc ], %g1 <== NOT EXECUTED
{
errno = ENODEV;
return -1;
}
errno = 0;
20232b8: c0 22 00 00 clr [ %o0 ] <== NOT EXECUTED
sc = rtems_semaphore_obtain (rtems_nvdisks[minor].lock, RTEMS_WAIT, 0);
20232bc: 82 00 40 1b add %g1, %i3, %g1 <== NOT EXECUTED
20232c0: d0 00 60 20 ld [ %g1 + 0x20 ], %o0 <== NOT EXECUTED
20232c4: 92 10 20 00 clr %o1 <== NOT EXECUTED
20232c8: 7f ff a8 dc call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
20232cc: 94 10 20 00 clr %o2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
20232d0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20232d4: 12 80 00 1b bne 2023340 <rtems_nvdisk_ioctl+0xd4> <== NOT EXECUTED
20232d8: 01 00 00 00 nop <== NOT EXECUTED
errno = EIO;
else
{
errno = 0;
20232dc: 40 00 96 5a call 2048c44 <__errno> <== NOT EXECUTED
20232e0: 01 00 00 00 nop <== NOT EXECUTED
switch (req)
20232e4: 03 08 00 10 sethi %hi(0x20004000), %g1 <== NOT EXECUTED
20232e8: 84 10 62 82 or %g1, 0x282, %g2 ! 20004282 <RAM_END+0x1dc04282><== NOT EXECUTED
20232ec: 80 a6 40 02 cmp %i1, %g2 <== NOT EXECUTED
20232f0: 02 80 00 51 be 2023434 <rtems_nvdisk_ioctl+0x1c8> <== NOT EXECUTED
20232f4: c0 22 00 00 clr [ %o0 ] <== NOT EXECUTED
20232f8: 05 30 06 10 sethi %hi(0xc0184000), %g2 <== NOT EXECUTED
20232fc: 84 10 a2 01 or %g2, 0x201, %g2 ! c0184201 <RAM_END+0xbdd84201><== NOT EXECUTED
2023300: 80 a6 40 02 cmp %i1, %g2 <== NOT EXECUTED
2023304: 02 80 00 50 be 2023444 <rtems_nvdisk_ioctl+0x1d8> <== NOT EXECUTED
2023308: 82 10 62 80 or %g1, 0x280, %g1 <== NOT EXECUTED
202330c: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
2023310: 02 80 00 17 be 202336c <rtems_nvdisk_ioctl+0x100> <== NOT EXECUTED
2023314: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
case RTEMS_NVDISK_IOCTL_INFO_LEVEL:
rtems_nvdisks[minor].info_level = (uintptr_t) argp;
break;
default:
rtems_blkdev_ioctl (dd, req, argp);
2023318: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
202331c: 7f ff 8c 8f call 2006558 <rtems_blkdev_ioctl> <== NOT EXECUTED
2023320: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2023324: c2 07 20 cc ld [ %i4 + 0xcc ], %g1 <== NOT EXECUTED
2023328: b6 00 40 1b add %g1, %i3, %i3 <== NOT EXECUTED
break;
}
sc = rtems_semaphore_release (rtems_nvdisks[minor].lock);
202332c: 7f ff a9 0a call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2023330: d0 06 e0 20 ld [ %i3 + 0x20 ], %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2023334: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023338: 02 80 00 06 be 2023350 <rtems_nvdisk_ioctl+0xe4> <== NOT EXECUTED
202333c: 01 00 00 00 nop <== NOT EXECUTED
errno = EIO;
2023340: 40 00 96 41 call 2048c44 <__errno> <== NOT EXECUTED
2023344: 01 00 00 00 nop <== NOT EXECUTED
2023348: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
202334c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
return errno == 0 ? 0 : -1;
2023350: 40 00 96 3d call 2048c44 <__errno> <== NOT EXECUTED
2023354: 01 00 00 00 nop <== NOT EXECUTED
2023358: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED
202335c: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
2023360: b0 60 20 00 subx %g0, 0, %i0 <== NOT EXECUTED
}
2023364: 81 c7 e0 08 ret <== NOT EXECUTED
2023368: 81 e8 00 00 restore <== NOT EXECUTED
break;
}
break;
case RTEMS_NVDISK_IOCTL_ERASE_DISK:
errno = rtems_nvdisk_erase_disk (&rtems_nvdisks[minor]);
202336c: 40 00 96 36 call 2048c44 <__errno> <== NOT EXECUTED
2023370: 01 00 00 00 nop <== NOT EXECUTED
2023374: e4 07 20 cc ld [ %i4 + 0xcc ], %l2 <== NOT EXECUTED
2023378: a4 04 80 1b add %l2, %i3, %l2 <== NOT EXECUTED
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_info (nvd, "erase-disk");
#endif
for (device = 0; device < nvd->device_count; device++)
202337c: c8 04 a0 18 ld [ %l2 + 0x18 ], %g4 <== NOT EXECUTED
2023380: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED
2023384: 02 80 00 bf be 2023680 <rtems_nvdisk_ioctl+0x414> <== NOT EXECUTED
2023388: ae 10 00 08 mov %o0, %l7 <== NOT EXECUTED
202338c: aa 10 20 00 clr %l5 <== NOT EXECUTED
2023390: ac 10 20 00 clr %l6 <== NOT EXECUTED
2023394: a8 07 bf fe add %fp, -2, %l4 <== 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);
2023398: a6 10 3f ff mov -1, %l3 <== 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];
202339c: c2 04 a0 14 ld [ %l2 + 0x14 ], %g1 <== NOT EXECUTED
20233a0: a2 00 40 15 add %g1, %l5, %l1 <== NOT EXECUTED
uint32_t page;
for (page = 0; page < (dc->pages - dc->pages_desc); page++)
20233a4: c6 04 60 04 ld [ %l1 + 4 ], %g3 <== NOT EXECUTED
20233a8: c4 04 60 08 ld [ %l1 + 8 ], %g2 <== NOT EXECUTED
20233ac: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED
20233b0: 02 80 00 b0 be 2023670 <rtems_nvdisk_ioctl+0x404> <== NOT EXECUTED
20233b4: a0 10 20 00 clr %l0 <== NOT EXECUTED
{
int ret = rtems_nvdisk_write_checksum (nvd, dc->device, page, 0xffff);
20233b8: 10 80 00 0a b 20233e0 <rtems_nvdisk_ioctl+0x174> <== NOT EXECUTED
20233bc: d0 04 40 00 ld [ %l1 ], %o0 <== 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++)
20233c0: c2 04 60 08 ld [ %l1 + 8 ], %g1 <== NOT EXECUTED
20233c4: a0 04 20 01 inc %l0 <== NOT EXECUTED
20233c8: 82 20 80 01 sub %g2, %g1, %g1 <== NOT EXECUTED
20233cc: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED
20233d0: 3a 80 00 a8 bcc,a 2023670 <rtems_nvdisk_ioctl+0x404> <== NOT EXECUTED
20233d4: c8 04 a0 18 ld [ %l2 + 0x18 ], %g4 <== NOT EXECUTED
20233d8: c2 04 a0 14 ld [ %l2 + 0x14 ], %g1 <== NOT EXECUTED
{
int ret = rtems_nvdisk_write_checksum (nvd, dc->device, page, 0xffff);
20233dc: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
20233e0: e6 37 bf fe sth %l3, [ %fp + -2 ] <== 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;
20233e4: 87 2a 20 02 sll %o0, 2, %g3 <== NOT EXECUTED
20233e8: 85 2a 20 04 sll %o0, 4, %g2 <== NOT EXECUTED
20233ec: 84 00 c0 02 add %g3, %g2, %g2 <== NOT EXECUTED
20233f0: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
20233f4: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 <== 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);
20233f8: 97 2c 20 01 sll %l0, 1, %o3 <== NOT EXECUTED
20233fc: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 <== NOT EXECUTED
2023400: d4 00 a0 04 ld [ %g2 + 4 ], %o2 <== NOT EXECUTED
2023404: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED
2023408: d2 00 80 00 ld [ %g2 ], %o1 <== NOT EXECUTED
202340c: 98 10 00 14 mov %l4, %o4 <== NOT EXECUTED
2023410: 9f c0 40 00 call %g1 <== NOT EXECUTED
2023414: 9a 10 20 02 mov 2, %o5 <== 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)
2023418: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202341c: 22 bf ff e9 be,a 20233c0 <rtems_nvdisk_ioctl+0x154> <== NOT EXECUTED
2023420: c4 04 60 04 ld [ %l1 + 4 ], %g2 <== NOT EXECUTED
break;
}
break;
case RTEMS_NVDISK_IOCTL_ERASE_DISK:
errno = rtems_nvdisk_erase_disk (&rtems_nvdisks[minor]);
2023424: c2 07 20 cc ld [ %i4 + 0xcc ], %g1 <== NOT EXECUTED
2023428: d0 25 c0 00 st %o0, [ %l7 ] <== NOT EXECUTED
break;
202342c: 10 bf ff c0 b 202332c <rtems_nvdisk_ioctl+0xc0> <== NOT EXECUTED
2023430: b6 00 40 1b add %g1, %i3, %i3 <== NOT EXECUTED
case RTEMS_NVDISK_IOCTL_INFO_LEVEL:
rtems_nvdisks[minor].info_level = (uintptr_t) argp;
2023434: c2 07 20 cc ld [ %i4 + 0xcc ], %g1 <== NOT EXECUTED
2023438: b6 00 40 1b add %g1, %i3, %i3 <== NOT EXECUTED
break;
202343c: 10 bf ff bc b 202332c <rtems_nvdisk_ioctl+0xc0> <== NOT EXECUTED
2023440: f4 26 e0 24 st %i2, [ %i3 + 0x24 ] <== NOT EXECUTED
{
errno = 0;
switch (req)
{
case RTEMS_BLKIO_REQUEST:
switch (r->req)
2023444: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
2023448: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202344c: 12 80 00 8f bne 2023688 <rtems_nvdisk_ioctl+0x41c> <== NOT EXECUTED
2023450: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
{
case RTEMS_BLKDEV_REQ_READ:
errno = rtems_nvdisk_read (&rtems_nvdisks[minor], r);
2023454: 40 00 95 fc call 2048c44 <__errno> <== NOT EXECUTED
2023458: 3b 00 00 3f sethi %hi(0xfc00), %i5 <== NOT EXECUTED
202345c: e4 07 20 cc ld [ %i4 + 0xcc ], %l2 <== NOT EXECUTED
2023460: e0 06 a0 10 ld [ %i2 + 0x10 ], %l0 <== 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++)
2023464: 31 00 81 cb sethi %hi(0x2072c00), %i0 <== NOT EXECUTED
{
case RTEMS_BLKIO_REQUEST:
switch (r->req)
{
case RTEMS_BLKDEV_REQ_READ:
errno = rtems_nvdisk_read (&rtems_nvdisks[minor], r);
2023468: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
202346c: d0 27 bf f0 st %o0, [ %fp + -16 ] <== NOT EXECUTED
2023470: a4 04 80 1b add %l2, %i3, %l2 <== NOT EXECUTED
ret = rtems_nvdisk_read_checksum (nvd, dc->device, page, &crc);
if (ret)
return ret;
if (crc == 0xffff)
2023474: ba 17 63 ff or %i5, 0x3ff, %i5 <== 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++)
2023478: b0 16 20 d4 or %i0, 0xd4, %i0 <== NOT EXECUTED
{
case RTEMS_BLKIO_REQUEST:
switch (r->req)
{
case RTEMS_BLKDEV_REQ_READ:
errno = rtems_nvdisk_read (&rtems_nvdisks[minor], r);
202347c: ac 06 a0 28 add %i2, 0x28, %l6 <== NOT EXECUTED
2023480: c2 27 bf f4 st %g1, [ %fp + -12 ] <== 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);
2023484: ae 07 bf fe add %fp, -2, %l7 <== 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++)
2023488: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED
202348c: 82 00 bf ff add %g2, -1, %g1 <== NOT EXECUTED
2023490: 80 a0 40 10 cmp %g1, %l0 <== NOT EXECUTED
2023494: 1a 80 01 0b bcc 20238c0 <rtems_nvdisk_ioctl+0x654> <== NOT EXECUTED
2023498: 82 10 20 00 clr %g1 <== NOT EXECUTED
{
uint8_t* data;
uint32_t nvb;
uint32_t b;
nvb = sg->length / nvd->block_size;
202349c: d0 05 bf f4 ld [ %l6 + -12 ], %o0 <== NOT EXECUTED
20234a0: 40 00 f7 16 call 20610f8 <.udiv> <== NOT EXECUTED
20234a4: d2 04 a0 0c ld [ %l2 + 0xc ], %o1 <== NOT EXECUTED
data = sg->buffer;
for (b = 0; b < nvb; b++, data += nvd->block_size)
20234a8: b2 92 20 00 orcc %o0, 0, %i1 <== NOT EXECUTED
20234ac: 02 80 00 87 be 20236c8 <rtems_nvdisk_ioctl+0x45c> <== NOT EXECUTED
20234b0: e2 05 bf f8 ld [ %l6 + -8 ], %l1 <== NOT EXECUTED
{
uint8_t* data;
uint32_t nvb;
uint32_t b;
nvb = sg->length / nvd->block_size;
data = sg->buffer;
20234b4: aa 10 20 00 clr %l5 <== NOT EXECUTED
for (b = 0; b < nvb; b++, data += nvd->block_size)
{
ret = rtems_nvdisk_read_block (nvd, sg->block + b, data);
20234b8: e6 05 bf f0 ld [ %l6 + -16 ], %l3 <== NOT EXECUTED
uint32_t page;
uint16_t crc;
uint16_t cs;
int ret;
dc = rtems_nvdisk_get_device (nvd, block);
20234bc: 90 10 00 12 mov %l2, %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);
20234c0: a6 05 40 13 add %l5, %l3, %l3 <== NOT EXECUTED
uint32_t page;
uint16_t crc;
uint16_t cs;
int ret;
dc = rtems_nvdisk_get_device (nvd, block);
20234c4: 7f ff ff 44 call 20231d4 <rtems_nvdisk_get_device> <== NOT EXECUTED
20234c8: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
if (!dc)
20234cc: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
20234d0: 02 80 00 51 be 2023614 <rtems_nvdisk_ioctl+0x3a8> <== NOT EXECUTED
20234d4: 98 10 00 17 mov %l7, %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);
20234d8: d0 04 00 00 ld [ %l0 ], %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;
20234dc: c4 04 a0 14 ld [ %l2 + 0x14 ], %g2 <== NOT EXECUTED
20234e0: 87 2a 20 02 sll %o0, 2, %g3 <== NOT EXECUTED
20234e4: 83 2a 20 04 sll %o0, 4, %g1 <== NOT EXECUTED
20234e8: 82 00 c0 01 add %g3, %g1, %g1 <== NOT EXECUTED
20234ec: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
20234f0: 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;
20234f4: e8 04 20 0c ld [ %l0 + 0xc ], %l4 <== 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);
20234f8: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 <== NOT EXECUTED
20234fc: d4 00 a0 04 ld [ %g2 + 4 ], %o2 <== NOT EXECUTED
2023500: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED
2023504: 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;
2023508: a8 24 c0 14 sub %l3, %l4, %l4 <== 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);
202350c: 97 2d 20 01 sll %l4, 1, %o3 <== NOT EXECUTED
2023510: 9f c0 40 00 call %g1 <== NOT EXECUTED
2023514: 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)
2023518: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED
202351c: 12 80 00 40 bne 202361c <rtems_nvdisk_ioctl+0x3b0> <== NOT EXECUTED
2023520: 92 10 20 1b mov 0x1b, %o1 <== NOT EXECUTED
return ret;
if (crc == 0xffff)
2023524: c2 17 bf fe lduh [ %fp + -2 ], %g1 <== NOT EXECUTED
2023528: 80 a0 40 1d cmp %g1, %i5 <== NOT EXECUTED
202352c: 22 80 00 47 be,a 2023648 <rtems_nvdisk_ioctl+0x3dc> <== NOT EXECUTED
2023530: d4 04 a0 0c ld [ %l2 + 0xc ], %o2 <== NOT EXECUTED
#endif
memset (buffer, 0, nvd->block_size);
return 0;
}
ret = rtems_nvdisk_read_page (nvd, dc->device, page + dc->pages_desc, buffer);
2023534: c4 04 00 00 ld [ %l0 ], %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;
2023538: c6 04 a0 14 ld [ %l2 + 0x14 ], %g3 <== NOT EXECUTED
202353c: 89 28 a0 02 sll %g2, 2, %g4 <== NOT EXECUTED
2023540: 83 28 a0 04 sll %g2, 4, %g1 <== 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);
2023544: d0 04 20 08 ld [ %l0 + 8 ], %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;
2023548: 82 01 00 01 add %g4, %g1, %g1 <== NOT EXECUTED
202354c: 82 00 c0 01 add %g3, %g1, %g1 <== NOT EXECUTED
2023550: c6 00 60 10 ld [ %g1 + 0x10 ], %g3 <== NOT EXECUTED
rtems_nvdisk_read_page (const rtems_nvdisk* nvd,
uint32_t device,
uint32_t page,
void* buffer)
{
return rtems_nvdisk_device_read (nvd, device,
2023554: e0 04 a0 0c ld [ %l2 + 0xc ], %l0 <== 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);
2023558: c2 00 e0 0c ld [ %g3 + 0xc ], %g1 <== NOT EXECUTED
202355c: 90 05 00 08 add %l4, %o0, %o0 <== NOT EXECUTED
2023560: e8 00 e0 04 ld [ %g3 + 4 ], %l4 <== NOT EXECUTED
2023564: c6 00 c0 00 ld [ %g3 ], %g3 <== NOT EXECUTED
2023568: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
202356c: c2 27 bf e0 st %g1, [ %fp + -32 ] <== NOT EXECUTED
2023570: c4 27 bf e8 st %g2, [ %fp + -24 ] <== NOT EXECUTED
2023574: 7f ff 7d 86 call 2002b8c <.umul> <== NOT EXECUTED
2023578: c6 27 bf e4 st %g3, [ %fp + -28 ] <== NOT EXECUTED
202357c: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
2023580: c4 07 bf e8 ld [ %fp + -24 ], %g2 <== NOT EXECUTED
2023584: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED
2023588: c6 07 bf e4 ld [ %fp + -28 ], %g3 <== NOT EXECUTED
202358c: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2023590: 92 10 00 03 mov %g3, %o1 <== NOT EXECUTED
2023594: 90 10 00 02 mov %g2, %o0 <== NOT EXECUTED
2023598: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
202359c: 9a 10 00 10 mov %l0, %o5 <== NOT EXECUTED
20235a0: 9f c0 40 00 call %g1 <== NOT EXECUTED
20235a4: 98 10 00 11 mov %l1, %o4 <== NOT EXECUTED
return 0;
}
ret = rtems_nvdisk_read_page (nvd, dc->device, page + dc->pages_desc, buffer);
if (ret)
20235a8: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED
20235ac: 12 80 00 1c bne 202361c <rtems_nvdisk_ioctl+0x3b0> <== NOT EXECUTED
20235b0: 92 10 20 1b mov 0x1b, %o1 <== NOT EXECUTED
return ret;
cs = rtems_nvdisk_page_checksum (buffer, nvd->block_size);
20235b4: c8 04 a0 0c ld [ %l2 + 0xc ], %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++)
20235b8: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED
20235bc: 02 80 00 0d be 20235f0 <rtems_nvdisk_ioctl+0x384> <== NOT EXECUTED
20235c0: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED
20235c4: da 06 00 00 ld [ %i0 ], %o5 <== NOT EXECUTED
cs = rtems_nvdisk_calc_crc16 (cs, *buffer);
20235c8: c6 0c 40 01 ldub [ %l1 + %g1 ], %g3 <== NOT EXECUTED
20235cc: 85 2a a0 10 sll %o2, 0x10, %g2 <== 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++)
20235d0: 82 00 60 01 inc %g1 <== NOT EXECUTED
cs = rtems_nvdisk_calc_crc16 (cs, *buffer);
20235d4: 85 30 a0 10 srl %g2, 0x10, %g2 <== 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++)
20235d8: 80 a1 00 01 cmp %g4, %g1 <== NOT EXECUTED
cs = rtems_nvdisk_calc_crc16 (cs, *buffer);
20235dc: 84 18 80 03 xor %g2, %g3, %g2 <== NOT EXECUTED
20235e0: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
20235e4: 85 28 a0 01 sll %g2, 1, %g2 <== 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++)
20235e8: 18 bf ff f8 bgu 20235c8 <rtems_nvdisk_ioctl+0x35c> <== NOT EXECUTED
20235ec: d4 13 40 02 lduh [ %o5 + %g2 ], %o2 <== NOT EXECUTED
if (ret)
return ret;
cs = rtems_nvdisk_page_checksum (buffer, nvd->block_size);
if (cs != crc)
20235f0: d6 17 bf fe lduh [ %fp + -2 ], %o3 <== NOT EXECUTED
20235f4: 95 2a a0 10 sll %o2, 0x10, %o2 <== NOT EXECUTED
20235f8: 95 32 a0 10 srl %o2, 0x10, %o2 <== NOT EXECUTED
20235fc: 80 a2 80 0b cmp %o2, %o3 <== NOT EXECUTED
2023600: 02 80 00 16 be 2023658 <rtems_nvdisk_ioctl+0x3ec> <== NOT EXECUTED
2023604: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
{
rtems_nvdisk_error ("read-block: crc failure: %d: buffer:%04x page:%04x",
2023608: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
202360c: 7f ff fe d3 call 2023158 <rtems_nvdisk_error> <== NOT EXECUTED
2023610: 90 12 20 e0 or %o0, 0xe0, %o0 <== NOT EXECUTED
2023614: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2023618: 92 10 20 1b mov 0x1b, %o1 <== NOT EXECUTED
break;
}
}
req->status = ret ? RTEMS_IO_ERROR : RTEMS_SUCCESSFUL;
req->req_done (req->done_arg, req->status);
202361c: c4 06 a0 04 ld [ %i2 + 4 ], %g2 <== NOT EXECUTED
2023620: d0 06 a0 08 ld [ %i2 + 8 ], %o0 <== NOT EXECUTED
2023624: c2 27 bf e0 st %g1, [ %fp + -32 ] <== NOT EXECUTED
2023628: 9f c0 80 00 call %g2 <== NOT EXECUTED
202362c: 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);
2023630: c4 07 20 cc ld [ %i4 + 0xcc ], %g2 <== NOT EXECUTED
2023634: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
2023638: c6 07 bf f0 ld [ %fp + -16 ], %g3 <== NOT EXECUTED
202363c: b6 00 80 1b add %g2, %i3, %i3 <== NOT EXECUTED
break;
2023640: 10 bf ff 3b b 202332c <rtems_nvdisk_ioctl+0xc0> <== NOT EXECUTED
2023644: c2 20 c0 00 st %g1, [ %g3 ] <== NOT EXECUTED
if (crc == 0xffff)
{
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_warning (nvd, "read-block: crc not set: %d", block);
#endif
memset (buffer, 0, nvd->block_size);
2023648: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
202364c: 40 00 a3 5d call 204c3c0 <memset> <== NOT EXECUTED
2023650: 92 10 20 00 clr %o1 <== NOT EXECUTED
2023654: c8 04 a0 0c ld [ %l2 + 0xc ], %g4 <== 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)
2023658: aa 05 60 01 inc %l5 <== NOT EXECUTED
202365c: 80 a6 40 15 cmp %i1, %l5 <== NOT EXECUTED
2023660: 08 80 00 19 bleu 20236c4 <rtems_nvdisk_ioctl+0x458> <== NOT EXECUTED
2023664: a2 04 40 04 add %l1, %g4, %l1 <== NOT EXECUTED
{
ret = rtems_nvdisk_read_block (nvd, sg->block + b, data);
2023668: 10 bf ff 95 b 20234bc <rtems_nvdisk_ioctl+0x250> <== NOT EXECUTED
202366c: e6 05 bf f0 ld [ %l6 + -16 ], %l3 <== NOT EXECUTED
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_info (nvd, "erase-disk");
#endif
for (device = 0; device < nvd->device_count; device++)
2023670: ac 05 a0 01 inc %l6 <== NOT EXECUTED
2023674: 80 a5 80 04 cmp %l6, %g4 <== NOT EXECUTED
2023678: 0a bf ff 49 bcs 202339c <rtems_nvdisk_ioctl+0x130> <== NOT EXECUTED
202367c: aa 05 60 14 add %l5, 0x14, %l5 <== NOT EXECUTED
2023680: 10 bf ff 69 b 2023424 <rtems_nvdisk_ioctl+0x1b8> <== NOT EXECUTED
2023684: 90 10 20 00 clr %o0 <== NOT EXECUTED
{
errno = 0;
switch (req)
{
case RTEMS_BLKIO_REQUEST:
switch (r->req)
2023688: 02 80 00 15 be 20236dc <rtems_nvdisk_ioctl+0x470> <== NOT EXECUTED
202368c: 01 00 00 00 nop <== NOT EXECUTED
case RTEMS_BLKDEV_REQ_WRITE:
errno = rtems_nvdisk_write (&rtems_nvdisks[minor], r);
break;
default:
errno = EINVAL;
2023690: 40 00 95 6d call 2048c44 <__errno> <== NOT EXECUTED
2023694: 01 00 00 00 nop <== NOT EXECUTED
2023698: c2 07 20 cc ld [ %i4 + 0xcc ], %g1 <== NOT EXECUTED
202369c: 84 10 20 16 mov 0x16, %g2 <== NOT EXECUTED
20236a0: b6 00 40 1b add %g1, %i3, %i3 <== NOT EXECUTED
20236a4: 10 bf ff 22 b 202332c <rtems_nvdisk_ioctl+0xc0> <== NOT EXECUTED
20236a8: c4 22 00 00 st %g2, [ %o0 ] <== NOT EXECUTED
return -1;
}
if (rtems_nvdisks[minor].device_count == 0)
{
errno = ENODEV;
20236ac: 40 00 95 66 call 2048c44 <__errno> <== NOT EXECUTED
20236b0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20236b4: 82 10 20 13 mov 0x13, %g1 <== NOT EXECUTED
20236b8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return -1;
20236bc: 81 c7 e0 08 ret <== NOT EXECUTED
20236c0: 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)
20236c4: e0 06 a0 10 ld [ %i2 + 0x10 ], %l0 <== NOT EXECUTED
20236c8: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
20236cc: ac 05 a0 10 add %l6, 0x10, %l6 <== NOT EXECUTED
20236d0: 82 00 60 01 inc %g1 <== NOT EXECUTED
20236d4: 10 bf ff 6d b 2023488 <rtems_nvdisk_ioctl+0x21c> <== NOT EXECUTED
20236d8: c2 27 bf f4 st %g1, [ %fp + -12 ] <== 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);
20236dc: 40 00 95 5a call 2048c44 <__errno> <== NOT EXECUTED
20236e0: 3b 00 81 cb sethi %hi(0x2072c00), %i5 <== NOT EXECUTED
20236e4: e6 07 20 cc ld [ %i4 + 0xcc ], %l3 <== NOT EXECUTED
20236e8: e0 06 a0 10 ld [ %i2 + 0x10 ], %l0 <== NOT EXECUTED
20236ec: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20236f0: d0 27 bf f0 st %o0, [ %fp + -16 ] <== NOT EXECUTED
20236f4: a6 04 c0 1b add %l3, %i3, %l3 <== 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++)
20236f8: ba 17 60 d4 or %i5, 0xd4, %i5 <== 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);
20236fc: ac 06 a0 28 add %i2, 0x28, %l6 <== NOT EXECUTED
2023700: c2 27 bf f4 st %g1, [ %fp + -12 ] <== 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);
2023704: b2 07 bf fe add %fp, -2, %i1 <== 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++)
2023708: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED
202370c: 82 00 bf ff add %g2, -1, %g1 <== NOT EXECUTED
2023710: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED
2023714: 08 80 00 44 bleu 2023824 <rtems_nvdisk_ioctl+0x5b8> <== NOT EXECUTED
2023718: 92 10 20 00 clr %o1 <== NOT EXECUTED
{
uint8_t* data;
uint32_t nvb;
uint32_t b;
nvb = sg->length / nvd->block_size;
202371c: d0 05 bf f4 ld [ %l6 + -12 ], %o0 <== NOT EXECUTED
2023720: 40 00 f6 76 call 20610f8 <.udiv> <== NOT EXECUTED
2023724: d2 04 e0 0c ld [ %l3 + 0xc ], %o1 <== NOT EXECUTED
data = sg->buffer;
for (b = 0; b < nvb; b++, data += nvd->block_size)
2023728: ae 92 20 00 orcc %o0, 0, %l7 <== NOT EXECUTED
202372c: 02 80 00 60 be 20238ac <rtems_nvdisk_ioctl+0x640> <== NOT EXECUTED
2023730: e2 05 bf f8 ld [ %l6 + -8 ], %l1 <== NOT EXECUTED
{
uint8_t* data;
uint32_t nvb;
uint32_t b;
nvb = sg->length / nvd->block_size;
data = sg->buffer;
2023734: a8 10 20 00 clr %l4 <== NOT EXECUTED
for (b = 0; b < nvb; b++, data += nvd->block_size)
{
ret = rtems_nvdisk_write_block (nvd, sg->block + b, data);
2023738: ea 05 bf f0 ld [ %l6 + -16 ], %l5 <== NOT EXECUTED
rtems_nvdisk_device_ctl* dc;
uint32_t page;
uint16_t cs;
int ret;
dc = rtems_nvdisk_get_device (nvd, block);
202373c: 90 10 00 13 mov %l3, %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);
2023740: aa 05 00 15 add %l4, %l5, %l5 <== NOT EXECUTED
rtems_nvdisk_device_ctl* dc;
uint32_t page;
uint16_t cs;
int ret;
dc = rtems_nvdisk_get_device (nvd, block);
2023744: 7f ff fe a4 call 20231d4 <rtems_nvdisk_get_device> <== NOT EXECUTED
2023748: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
if (!dc)
202374c: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2023750: 22 80 00 35 be,a 2023824 <rtems_nvdisk_ioctl+0x5b8> <== NOT EXECUTED
2023754: 92 10 20 1b mov 0x1b, %o1 <== NOT EXECUTED
*/
static uint32_t
rtems_nvdisk_get_page (rtems_nvdisk_device_ctl* dc,
uint32_t block)
{
return block - dc->block_base;
2023758: c2 04 a0 0c ld [ %l2 + 0xc ], %g1 <== NOT EXECUTED
if (!dc)
return EIO;
page = rtems_nvdisk_get_page (dc, block);
cs = rtems_nvdisk_page_checksum (buffer, nvd->block_size);
202375c: f0 04 e0 0c ld [ %l3 + 0xc ], %i0 <== NOT EXECUTED
*/
static uint32_t
rtems_nvdisk_get_page (rtems_nvdisk_device_ctl* dc,
uint32_t block)
{
return block - dc->block_base;
2023760: aa 25 40 01 sub %l5, %g1, %l5 <== 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++)
2023764: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
2023768: 02 80 00 0e be 20237a0 <rtems_nvdisk_ioctl+0x534> <== NOT EXECUTED
202376c: a0 10 3f ff mov -1, %l0 <== NOT EXECUTED
2023770: c8 07 40 00 ld [ %i5 ], %g4 <== NOT EXECUTED
2023774: 82 10 20 00 clr %g1 <== NOT EXECUTED
cs = rtems_nvdisk_calc_crc16 (cs, *buffer);
2023778: c6 0c 40 01 ldub [ %l1 + %g1 ], %g3 <== NOT EXECUTED
202377c: 85 2c 20 10 sll %l0, 0x10, %g2 <== 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++)
2023780: 82 00 60 01 inc %g1 <== NOT EXECUTED
cs = rtems_nvdisk_calc_crc16 (cs, *buffer);
2023784: 85 30 a0 10 srl %g2, 0x10, %g2 <== 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++)
2023788: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED
cs = rtems_nvdisk_calc_crc16 (cs, *buffer);
202378c: 84 18 80 03 xor %g2, %g3, %g2 <== NOT EXECUTED
2023790: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
2023794: 85 28 a0 01 sll %g2, 1, %g2 <== 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++)
2023798: 18 bf ff f8 bgu 2023778 <rtems_nvdisk_ioctl+0x50c> <== NOT EXECUTED
202379c: e0 11 00 02 lduh [ %g4 + %g2 ], %l0 <== 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);
20237a0: c4 04 80 00 ld [ %l2 ], %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;
20237a4: c6 04 e0 14 ld [ %l3 + 0x14 ], %g3 <== NOT EXECUTED
20237a8: 89 28 a0 02 sll %g2, 2, %g4 <== NOT EXECUTED
20237ac: 83 28 a0 04 sll %g2, 4, %g1 <== NOT EXECUTED
20237b0: 82 01 00 01 add %g4, %g1, %g1 <== NOT EXECUTED
20237b4: 82 00 c0 01 add %g3, %g1, %g1 <== NOT EXECUTED
20237b8: 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);
20237bc: d0 04 a0 08 ld [ %l2 + 8 ], %o0 <== NOT EXECUTED
20237c0: c2 00 e0 0c ld [ %g3 + 0xc ], %g1 <== NOT EXECUTED
20237c4: d4 00 e0 04 ld [ %g3 + 4 ], %o2 <== NOT EXECUTED
20237c8: c6 00 c0 00 ld [ %g3 ], %g3 <== NOT EXECUTED
20237cc: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
20237d0: c2 27 bf e0 st %g1, [ %fp + -32 ] <== NOT EXECUTED
20237d4: c4 27 bf e8 st %g2, [ %fp + -24 ] <== NOT EXECUTED
20237d8: c6 27 bf e4 st %g3, [ %fp + -28 ] <== NOT EXECUTED
20237dc: d4 27 bf ec st %o2, [ %fp + -20 ] <== NOT EXECUTED
20237e0: 7f ff 7c eb call 2002b8c <.umul> <== NOT EXECUTED
20237e4: 90 05 40 08 add %l5, %o0, %o0 <== NOT EXECUTED
20237e8: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
20237ec: c4 07 bf e8 ld [ %fp + -24 ], %g2 <== NOT EXECUTED
20237f0: c6 07 bf e4 ld [ %fp + -28 ], %g3 <== NOT EXECUTED
20237f4: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED
20237f8: d4 07 bf ec ld [ %fp + -20 ], %o2 <== NOT EXECUTED
20237fc: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2023800: 92 10 00 03 mov %g3, %o1 <== NOT EXECUTED
2023804: 90 10 00 02 mov %g2, %o0 <== NOT EXECUTED
2023808: 9a 10 00 18 mov %i0, %o5 <== NOT EXECUTED
202380c: 9f c0 40 00 call %g1 <== NOT EXECUTED
2023810: 98 10 00 11 mov %l1, %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)
2023814: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023818: 22 80 00 0c be,a 2023848 <rtems_nvdisk_ioctl+0x5dc> <== NOT EXECUTED
202381c: d0 04 80 00 ld [ %l2 ], %o0 <== 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++)
2023820: 92 10 20 1b mov 0x1b, %o1 <== NOT EXECUTED
break;
}
}
req->status = ret ? RTEMS_IO_ERROR : RTEMS_SUCCESSFUL;
req->req_done (req->done_arg, req->status);
2023824: c2 06 a0 04 ld [ %i2 + 4 ], %g1 <== NOT EXECUTED
2023828: d0 06 a0 08 ld [ %i2 + 8 ], %o0 <== NOT EXECUTED
202382c: 9f c0 40 00 call %g1 <== NOT EXECUTED
2023830: 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);
2023834: c2 07 20 cc ld [ %i4 + 0xcc ], %g1 <== NOT EXECUTED
2023838: c6 07 bf f0 ld [ %fp + -16 ], %g3 <== NOT EXECUTED
202383c: b6 00 40 1b add %g1, %i3, %i3 <== NOT EXECUTED
break;
2023840: 10 bf fe bb b 202332c <rtems_nvdisk_ioctl+0xc0> <== NOT EXECUTED
2023844: c0 20 c0 00 clr [ %g3 ] <== 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;
2023848: c4 04 e0 14 ld [ %l3 + 0x14 ], %g2 <== NOT EXECUTED
202384c: 87 2a 20 02 sll %o0, 2, %g3 <== NOT EXECUTED
2023850: 83 2a 20 04 sll %o0, 4, %g1 <== NOT EXECUTED
2023854: 82 00 c0 01 add %g3, %g1, %g1 <== NOT EXECUTED
2023858: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
202385c: 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);
2023860: e0 37 bf fe sth %l0, [ %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);
2023864: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 <== NOT EXECUTED
2023868: d4 00 a0 04 ld [ %g2 + 4 ], %o2 <== NOT EXECUTED
202386c: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED
2023870: d2 00 80 00 ld [ %g2 ], %o1 <== NOT EXECUTED
2023874: 97 2d 60 01 sll %l5, 1, %o3 <== NOT EXECUTED
2023878: 98 10 00 19 mov %i1, %o4 <== NOT EXECUTED
202387c: 9f c0 40 00 call %g1 <== NOT EXECUTED
2023880: 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)
2023884: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023888: 12 bf ff e7 bne 2023824 <rtems_nvdisk_ioctl+0x5b8> <== NOT EXECUTED
202388c: 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)
2023890: a8 05 20 01 inc %l4 <== NOT EXECUTED
2023894: 80 a5 c0 14 cmp %l7, %l4 <== NOT EXECUTED
2023898: 08 80 00 04 bleu 20238a8 <rtems_nvdisk_ioctl+0x63c> <== NOT EXECUTED
202389c: c2 04 e0 0c ld [ %l3 + 0xc ], %g1 <== NOT EXECUTED
20238a0: 10 bf ff a6 b 2023738 <rtems_nvdisk_ioctl+0x4cc> <== NOT EXECUTED
20238a4: a2 04 40 01 add %l1, %g1, %l1 <== NOT EXECUTED
20238a8: e0 06 a0 10 ld [ %i2 + 0x10 ], %l0 <== 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)
20238ac: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED
20238b0: ac 05 a0 10 add %l6, 0x10, %l6 <== NOT EXECUTED
20238b4: 84 00 a0 01 inc %g2 <== NOT EXECUTED
20238b8: 10 bf ff 94 b 2023708 <rtems_nvdisk_ioctl+0x49c> <== NOT EXECUTED
20238bc: c4 27 bf f4 st %g2, [ %fp + -12 ] <== 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++)
20238c0: 10 bf ff 57 b 202361c <rtems_nvdisk_ioctl+0x3b0> <== NOT EXECUTED
20238c4: 92 10 20 00 clr %o1 <== NOT EXECUTED
02023be4 <rtems_nvdisk_sram_read>:
uint32_t flags __attribute__((unused)),
void* base,
uint32_t offset,
void* buffer,
size_t size)
{
2023be4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
memcpy (buffer, (base + offset), size);
return 0;
}
2023be8: b0 10 20 00 clr %i0 <== NOT EXECUTED
void* base,
uint32_t offset,
void* buffer,
size_t size)
{
memcpy (buffer, (base + offset), size);
2023bec: 92 06 80 1b add %i2, %i3, %o1 <== NOT EXECUTED
2023bf0: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
2023bf4: 40 00 a1 60 call 204c174 <memcpy> <== NOT EXECUTED
2023bf8: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
return 0;
}
2023bfc: 81 c7 e0 08 ret <== NOT EXECUTED
2023c00: 81 e8 00 00 restore <== NOT EXECUTED
02023b9c <rtems_nvdisk_sram_verify>:
uint32_t flags __attribute__((unused)),
void* base,
uint32_t offset,
const void* buffer,
size_t size)
{
2023b9c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
return memcmp ((base + offset), buffer, size) == 0 ? 0 : EIO;
2023ba0: 90 06 80 1b add %i2, %i3, %o0 <== NOT EXECUTED
2023ba4: 92 10 00 1c mov %i4, %o1 <== NOT EXECUTED
2023ba8: 40 00 a1 42 call 204c0b0 <memcmp> <== NOT EXECUTED
2023bac: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
2023bb0: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
2023bb4: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED
2023bb8: b0 0e 3f fb and %i0, -5, %i0 <== NOT EXECUTED
}
2023bbc: 81 c7 e0 08 ret <== NOT EXECUTED
2023bc0: 91 ee 20 05 restore %i0, 5, %o0 <== NOT EXECUTED
02023bc4 <rtems_nvdisk_sram_write>:
uint32_t flags __attribute__((unused)),
void* base,
uint32_t offset,
const void* buffer,
size_t size)
{
2023bc4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
memcpy ((base + offset), buffer, size);
return 0;
}
2023bc8: b0 10 20 00 clr %i0 <== NOT EXECUTED
void* base,
uint32_t offset,
const void* buffer,
size_t size)
{
memcpy ((base + offset), buffer, size);
2023bcc: 90 06 80 1b add %i2, %i3, %o0 <== NOT EXECUTED
2023bd0: 92 10 00 1c mov %i4, %o1 <== NOT EXECUTED
2023bd4: 40 00 a1 68 call 204c174 <memcpy> <== NOT EXECUTED
2023bd8: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
return 0;
}
2023bdc: 81 c7 e0 08 ret <== NOT EXECUTED
2023be0: 81 e8 00 00 restore <== NOT EXECUTED
020084f8 <rtems_object_get_class_information>:
rtems_status_code rtems_object_get_class_information(
int the_api,
int the_class,
rtems_object_api_class_information *info
)
{
20084f8: 9d e3 bf a0 save %sp, -96, %sp
20084fc: 90 10 00 18 mov %i0, %o0
int i;
/*
* Validate parameters and look up information structure.
*/
if ( !info )
2008500: 80 a6 a0 00 cmp %i2, 0
2008504: 02 80 00 20 be 2008584 <rtems_object_get_class_information+0x8c>
2008508: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
obj_info = _Objects_Get_information( the_api, the_class );
200850c: 92 10 00 19 mov %i1, %o1
2008510: 40 00 07 55 call 200a264 <_Objects_Get_information>
2008514: b0 10 20 0a mov 0xa, %i0
if ( !obj_info )
2008518: 80 a2 20 00 cmp %o0, 0
200851c: 02 80 00 1a be 2008584 <rtems_object_get_class_information+0x8c>
2008520: 01 00 00 00 nop
return RTEMS_INVALID_NUMBER;
/*
* Return information about this object class to the user.
*/
info->minimum_id = obj_info->minimum_id;
2008524: c2 02 20 08 ld [ %o0 + 8 ], %g1
info->maximum_id = obj_info->maximum_id;
info->auto_extend = obj_info->auto_extend;
info->maximum = obj_info->maximum;
2008528: c8 12 20 10 lduh [ %o0 + 0x10 ], %g4
/*
* Return information about this object class to the user.
*/
info->minimum_id = obj_info->minimum_id;
info->maximum_id = obj_info->maximum_id;
info->auto_extend = obj_info->auto_extend;
200852c: c4 0a 20 12 ldub [ %o0 + 0x12 ], %g2
return RTEMS_INVALID_NUMBER;
/*
* Return information about this object class to the user.
*/
info->minimum_id = obj_info->minimum_id;
2008530: c2 26 80 00 st %g1, [ %i2 ]
info->maximum_id = obj_info->maximum_id;
2008534: c2 02 20 0c ld [ %o0 + 0xc ], %g1
info->auto_extend = obj_info->auto_extend;
2008538: c4 2e a0 0c stb %g2, [ %i2 + 0xc ]
/*
* Return information about this object class to the user.
*/
info->minimum_id = obj_info->minimum_id;
info->maximum_id = obj_info->maximum_id;
200853c: c2 26 a0 04 st %g1, [ %i2 + 4 ]
info->auto_extend = obj_info->auto_extend;
info->maximum = obj_info->maximum;
2008540: c8 26 a0 08 st %g4, [ %i2 + 8 ]
for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )
2008544: 80 a1 20 00 cmp %g4, 0
2008548: 02 80 00 0d be 200857c <rtems_object_get_class_information+0x84><== NEVER TAKEN
200854c: 84 10 20 00 clr %g2
2008550: da 02 20 1c ld [ %o0 + 0x1c ], %o5
2008554: 86 10 20 01 mov 1, %g3
2008558: 82 10 20 01 mov 1, %g1
if ( !obj_info->local_table[i] )
200855c: 87 28 e0 02 sll %g3, 2, %g3
2008560: c6 03 40 03 ld [ %o5 + %g3 ], %g3
info->minimum_id = obj_info->minimum_id;
info->maximum_id = obj_info->maximum_id;
info->auto_extend = obj_info->auto_extend;
info->maximum = obj_info->maximum;
for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )
2008564: 82 00 60 01 inc %g1
if ( !obj_info->local_table[i] )
unallocated++;
2008568: 80 a0 00 03 cmp %g0, %g3
200856c: 84 60 bf ff subx %g2, -1, %g2
info->minimum_id = obj_info->minimum_id;
info->maximum_id = obj_info->maximum_id;
info->auto_extend = obj_info->auto_extend;
info->maximum = obj_info->maximum;
for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )
2008570: 80 a1 00 01 cmp %g4, %g1
2008574: 1a bf ff fa bcc 200855c <rtems_object_get_class_information+0x64>
2008578: 86 10 00 01 mov %g1, %g3
if ( !obj_info->local_table[i] )
unallocated++;
info->unallocated = unallocated;
200857c: c4 26 a0 10 st %g2, [ %i2 + 0x10 ]
2008580: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
}
2008584: 81 c7 e0 08 ret
2008588: 81 e8 00 00 restore
02007eb4 <rtems_panic>:
void rtems_panic(
const char *printf_format,
...
)
{
2007eb4: 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);
2007eb8: 11 08 00 00 sethi %hi(0x20000000), %o0 <== NOT EXECUTED
...
)
{
va_list arglist;
va_start(arglist, printf_format);
2007ebc: 94 07 a0 48 add %fp, 0x48, %o2 <== NOT EXECUTED
2007ec0: f2 27 a0 48 st %i1, [ %fp + 0x48 ] <== NOT EXECUTED
2007ec4: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED
2007ec8: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED
2007ecc: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED
2007ed0: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED
(void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist);
2007ed4: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
2007ed8: 7f ff ff 8a call 2007d00 <rtems_verror> <== NOT EXECUTED
2007edc: d4 27 bf fc st %o2, [ %fp + -4 ] <== NOT EXECUTED
va_end(arglist);
}
2007ee0: 81 c7 e0 08 ret <== NOT EXECUTED
2007ee4: 81 e8 00 00 restore <== NOT EXECUTED
02014734 <rtems_partition_create>:
uint32_t length,
uint32_t buffer_size,
rtems_attribute attribute_set,
rtems_id *id
)
{
2014734: 9d e3 bf a0 save %sp, -96, %sp
register Partition_Control *the_partition;
if ( !rtems_is_name_valid( name ) )
2014738: a0 96 20 00 orcc %i0, 0, %l0
201473c: 02 80 00 31 be 2014800 <rtems_partition_create+0xcc>
2014740: b0 10 20 03 mov 3, %i0
return RTEMS_INVALID_NAME;
if ( !starting_address )
2014744: 80 a6 60 00 cmp %i1, 0
2014748: 02 80 00 32 be 2014810 <rtems_partition_create+0xdc>
201474c: 80 a7 60 00 cmp %i5, 0
return RTEMS_INVALID_ADDRESS;
if ( !id )
2014750: 02 80 00 30 be 2014810 <rtems_partition_create+0xdc> <== NEVER TAKEN
2014754: 80 a6 e0 00 cmp %i3, 0
return RTEMS_INVALID_ADDRESS;
if ( length == 0 || buffer_size == 0 || length < buffer_size ||
2014758: 02 80 00 2c be 2014808 <rtems_partition_create+0xd4>
201475c: 80 a6 a0 00 cmp %i2, 0
2014760: 02 80 00 2a be 2014808 <rtems_partition_create+0xd4>
2014764: 80 a6 80 1b cmp %i2, %i3
2014768: 0a 80 00 28 bcs 2014808 <rtems_partition_create+0xd4>
201476c: 80 8e e0 07 btst 7, %i3
2014770: 12 80 00 26 bne 2014808 <rtems_partition_create+0xd4>
2014774: 80 8e 60 07 btst 7, %i1
!_Partition_Is_buffer_size_aligned( buffer_size ) )
return RTEMS_INVALID_SIZE;
if ( !_Addresses_Is_aligned( starting_address ) )
2014778: 12 80 00 26 bne 2014810 <rtems_partition_create+0xdc>
201477c: 03 00 80 fc sethi %hi(0x203f000), %g1
2014780: c4 00 63 80 ld [ %g1 + 0x380 ], %g2 ! 203f380 <_Thread_Dispatch_disable_level>
2014784: 84 00 a0 01 inc %g2
2014788: c4 20 63 80 st %g2, [ %g1 + 0x380 ]
* 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 );
201478c: 25 00 80 fc sethi %hi(0x203f000), %l2
2014790: 40 00 12 42 call 2019098 <_Objects_Allocate>
2014794: 90 14 a1 84 or %l2, 0x184, %o0 ! 203f184 <_Partition_Information>
_Thread_Disable_dispatch(); /* prevents deletion */
the_partition = _Partition_Allocate();
if ( !the_partition ) {
2014798: a2 92 20 00 orcc %o0, 0, %l1
201479c: 02 80 00 1f be 2014818 <rtems_partition_create+0xe4>
20147a0: 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;
20147a4: f8 24 60 1c st %i4, [ %l1 + 0x1c ]
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
#endif
the_partition->starting_address = starting_address;
20147a8: f2 24 60 10 st %i1, [ %l1 + 0x10 ]
the_partition->length = length;
20147ac: f4 24 60 14 st %i2, [ %l1 + 0x14 ]
the_partition->buffer_size = buffer_size;
20147b0: f6 24 60 18 st %i3, [ %l1 + 0x18 ]
the_partition->attribute_set = attribute_set;
the_partition->number_of_used_blocks = 0;
20147b4: c0 24 60 20 clr [ %l1 + 0x20 ]
_Chain_Initialize( &the_partition->Memory, starting_address,
20147b8: 40 00 66 f5 call 202e38c <.udiv>
20147bc: 90 10 00 1a mov %i2, %o0
20147c0: 92 10 00 19 mov %i1, %o1
20147c4: 94 10 00 08 mov %o0, %o2
20147c8: 96 10 00 1b mov %i3, %o3
20147cc: b8 04 60 24 add %l1, 0x24, %i4
20147d0: 40 00 0c ba call 2017ab8 <_Chain_Initialize>
20147d4: 90 10 00 1c mov %i4, %o0
20147d8: c2 14 60 0a lduh [ %l1 + 0xa ], %g1
20147dc: c6 04 60 08 ld [ %l1 + 8 ], %g3
20147e0: a4 14 a1 84 or %l2, 0x184, %l2
20147e4: c4 04 a0 1c ld [ %l2 + 0x1c ], %g2
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
20147e8: e0 24 60 0c st %l0, [ %l1 + 0xc ]
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
20147ec: 83 28 60 02 sll %g1, 2, %g1
&_Partition_Information,
&the_partition->Object,
(Objects_Name) name
);
*id = the_partition->Object.id;
20147f0: c6 27 40 00 st %g3, [ %i5 ]
20147f4: e2 20 80 01 st %l1, [ %g2 + %g1 ]
name,
0 /* Not used */
);
#endif
_Thread_Enable_dispatch();
20147f8: 40 00 16 53 call 201a144 <_Thread_Enable_dispatch>
20147fc: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
2014800: 81 c7 e0 08 ret
2014804: 81 e8 00 00 restore
}
2014808: 81 c7 e0 08 ret
201480c: 91 e8 20 08 restore %g0, 8, %o0
0 /* Not used */
);
#endif
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
2014810: 81 c7 e0 08 ret
2014814: 91 e8 20 09 restore %g0, 9, %o0
_Thread_Disable_dispatch(); /* prevents deletion */
the_partition = _Partition_Allocate();
if ( !the_partition ) {
_Thread_Enable_dispatch();
2014818: 40 00 16 4b call 201a144 <_Thread_Enable_dispatch>
201481c: b0 10 20 05 mov 5, %i0
return RTEMS_TOO_MANY;
2014820: 81 c7 e0 08 ret
2014824: 81 e8 00 00 restore
0200a9e0 <rtems_pipe_initialize>:
/*
* Initialization of FIFO/pipe module.
*/
void rtems_pipe_initialize (void)
{
200a9e0: 9d e3 bf a0 save %sp, -96, %sp
if (!rtems_pipe_configured)
200a9e4: 03 00 80 75 sethi %hi(0x201d400), %g1
200a9e8: c2 08 63 34 ldub [ %g1 + 0x334 ], %g1 ! 201d734 <rtems_pipe_configured>
200a9ec: 80 a0 60 00 cmp %g1, 0
200a9f0: 02 80 00 13 be 200aa3c <rtems_pipe_initialize+0x5c> <== ALWAYS TAKEN
200a9f4: 19 00 80 76 sethi %hi(0x201d800), %o4
return;
if (rtems_pipe_semaphore)
200a9f8: c2 03 20 5c ld [ %o4 + 0x5c ], %g1 ! 201d85c <rtems_pipe_semaphore><== NOT EXECUTED
200a9fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200aa00: 12 80 00 0f bne 200aa3c <rtems_pipe_initialize+0x5c> <== NOT EXECUTED
200aa04: 98 13 20 5c or %o4, 0x5c, %o4 <== NOT EXECUTED
return;
rtems_status_code sc;
sc = rtems_semaphore_create(
200aa08: 11 14 12 54 sethi %hi(0x50495000), %o0 <== NOT EXECUTED
200aa0c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
200aa10: 90 12 20 45 or %o0, 0x45, %o0 <== NOT EXECUTED
200aa14: 94 10 20 54 mov 0x54, %o2 <== NOT EXECUTED
200aa18: 7f ff ef 0e call 2006650 <rtems_semaphore_create> <== NOT EXECUTED
200aa1c: 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)
200aa20: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200aa24: 12 80 00 08 bne 200aa44 <rtems_pipe_initialize+0x64> <== NOT EXECUTED
200aa28: 01 00 00 00 nop <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
rtems_interval now;
now = rtems_clock_get_ticks_since_boot();
200aa2c: 7f ff ed e9 call 20061d0 <rtems_clock_get_ticks_since_boot><== NOT EXECUTED
200aa30: 01 00 00 00 nop <== NOT EXECUTED
rtems_pipe_no = now;
200aa34: 03 00 80 76 sethi %hi(0x201d800), %g1 <== NOT EXECUTED
200aa38: d0 30 60 64 sth %o0, [ %g1 + 0x64 ] ! 201d864 <rtems_pipe_no><== NOT EXECUTED
200aa3c: 81 c7 e0 08 ret
200aa40: 81 e8 00 00 restore
sc = rtems_semaphore_create(
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)
rtems_fatal_error_occurred (sc);
200aa44: 7f ff f1 43 call 2006f50 <rtems_fatal_error_occurred> <== NOT EXECUTED
02045888 <rtems_rate_monotonic_period>:
rtems_status_code rtems_rate_monotonic_period(
rtems_id id,
rtems_interval length
)
{
2045888: 9d e3 bf 98 save %sp, -104, %sp
204588c: 11 00 81 cd sethi %hi(0x2073400), %o0
2045890: 92 10 00 18 mov %i0, %o1
2045894: 90 12 23 30 or %o0, 0x330, %o0
2045898: 7f ff 27 0a call 200f4c0 <_Objects_Get>
204589c: 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 ) {
20458a0: c2 07 bf fc ld [ %fp + -4 ], %g1
20458a4: 80 a0 60 00 cmp %g1, 0
20458a8: 02 80 00 04 be 20458b8 <rtems_rate_monotonic_period+0x30>
20458ac: a0 10 00 08 mov %o0, %l0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
20458b0: 81 c7 e0 08 ret
20458b4: 91 e8 20 04 restore %g0, 4, %o0
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( !_Thread_Is_executing( the_period->owner ) ) {
20458b8: 23 00 81 cc sethi %hi(0x2073000), %l1
20458bc: c4 02 20 40 ld [ %o0 + 0x40 ], %g2
20458c0: c2 04 63 70 ld [ %l1 + 0x370 ], %g1
20458c4: 80 a0 80 01 cmp %g2, %g1
20458c8: 02 80 00 06 be 20458e0 <rtems_rate_monotonic_period+0x58>
20458cc: 80 a6 60 00 cmp %i1, 0
_Thread_Enable_dispatch();
20458d0: 7f ff 29 98 call 200ff30 <_Thread_Enable_dispatch>
20458d4: b0 10 20 17 mov 0x17, %i0
return RTEMS_NOT_OWNER_OF_RESOURCE;
20458d8: 81 c7 e0 08 ret
20458dc: 81 e8 00 00 restore
}
if ( length == RTEMS_PERIOD_STATUS ) {
20458e0: 12 80 00 0e bne 2045918 <rtems_rate_monotonic_period+0x90>
20458e4: 01 00 00 00 nop
switch ( the_period->state ) {
20458e8: c2 02 20 38 ld [ %o0 + 0x38 ], %g1
20458ec: 80 a0 60 04 cmp %g1, 4
20458f0: 18 80 00 06 bgu 2045908 <rtems_rate_monotonic_period+0x80><== NEVER TAKEN
20458f4: b0 10 20 00 clr %i0
20458f8: 83 28 60 02 sll %g1, 2, %g1
20458fc: 05 00 81 b5 sethi %hi(0x206d400), %g2
2045900: 84 10 a0 48 or %g2, 0x48, %g2 ! 206d448 <CSWTCH.48>
2045904: f0 00 80 01 ld [ %g2 + %g1 ], %i0
);
the_period->next_length = length;
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
2045908: 7f ff 29 8a call 200ff30 <_Thread_Enable_dispatch>
204590c: 01 00 00 00 nop
return RTEMS_SUCCESSFUL;
2045910: 81 c7 e0 08 ret
2045914: 81 e8 00 00 restore
}
_Thread_Enable_dispatch();
return( return_value );
}
_ISR_Disable( level );
2045918: 7f fe f8 42 call 2003a20 <sparc_disable_interrupts>
204591c: 01 00 00 00 nop
2045920: a6 10 00 08 mov %o0, %l3
switch ( the_period->state ) {
2045924: e4 04 20 38 ld [ %l0 + 0x38 ], %l2
2045928: 80 a4 a0 02 cmp %l2, 2
204592c: 02 80 00 1a be 2045994 <rtems_rate_monotonic_period+0x10c>
2045930: 80 a4 a0 04 cmp %l2, 4
2045934: 02 80 00 32 be 20459fc <rtems_rate_monotonic_period+0x174>
2045938: 80 a4 a0 00 cmp %l2, 0
204593c: 12 bf ff dd bne 20458b0 <rtems_rate_monotonic_period+0x28><== NEVER TAKEN
2045940: 01 00 00 00 nop
case RATE_MONOTONIC_INACTIVE: {
_ISR_Enable( level );
2045944: 7f fe f8 3b call 2003a30 <sparc_enable_interrupts>
2045948: 01 00 00 00 nop
/*
* Baseline statistics information for the beginning of a period.
*/
_Rate_monotonic_Initiate_statistics( the_period );
204594c: 7f ff ff 48 call 204566c <_Rate_monotonic_Initiate_statistics>
2045950: 90 10 00 10 mov %l0, %o0
the_period->state = RATE_MONOTONIC_ACTIVE;
2045954: 82 10 20 02 mov 2, %g1
2045958: c2 24 20 38 st %g1, [ %l0 + 0x38 ]
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
204595c: 03 00 81 16 sethi %hi(0x2045800), %g1
2045960: 82 10 62 4c or %g1, 0x24c, %g1 ! 2045a4c <_Rate_monotonic_Timeout>
the_watchdog->id = id;
2045964: f0 24 20 30 st %i0, [ %l0 + 0x30 ]
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
2045968: 92 04 20 10 add %l0, 0x10, %o1
204596c: 11 00 81 cc sethi %hi(0x2073000), %o0
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
2045970: f2 24 20 1c st %i1, [ %l0 + 0x1c ]
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
2045974: 90 12 23 90 or %o0, 0x390, %o0
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
2045978: c0 24 20 18 clr [ %l0 + 0x18 ]
the_watchdog->routine = routine;
the_watchdog->id = id;
the_watchdog->user_data = user_data;
204597c: c0 24 20 34 clr [ %l0 + 0x34 ]
_Rate_monotonic_Timeout,
id,
NULL
);
the_period->next_length = length;
2045980: f2 24 20 3c st %i1, [ %l0 + 0x3c ]
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
2045984: c2 24 20 2c st %g1, [ %l0 + 0x2c ]
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
2045988: 7f ff 2e 10 call 20111c8 <_Watchdog_Insert>
204598c: b0 10 20 00 clr %i0
2045990: 30 bf ff de b,a 2045908 <rtems_rate_monotonic_period+0x80>
case RATE_MONOTONIC_ACTIVE:
/*
* Update statistics from the concluding period.
*/
_Rate_monotonic_Update_statistics( the_period );
2045994: 7f ff ff 7d call 2045788 <_Rate_monotonic_Update_statistics>
2045998: 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;
204599c: 82 10 20 01 mov 1, %g1
the_period->next_length = length;
20459a0: 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;
20459a4: c2 24 20 38 st %g1, [ %l0 + 0x38 ]
the_period->next_length = length;
_ISR_Enable( level );
20459a8: 7f fe f8 22 call 2003a30 <sparc_enable_interrupts>
20459ac: 90 10 00 13 mov %l3, %o0
_Thread_Executing->Wait.id = the_period->Object.id;
20459b0: c2 04 63 70 ld [ %l1 + 0x370 ], %g1
20459b4: c4 04 20 08 ld [ %l0 + 8 ], %g2
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
20459b8: 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;
20459bc: c4 20 60 20 st %g2, [ %g1 + 0x20 ]
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
20459c0: 7f ff 2b f8 call 20109a0 <_Thread_Set_state>
20459c4: 13 00 00 10 sethi %hi(0x4000), %o1
/*
* Did the watchdog timer expire while we were actually blocking
* on it?
*/
_ISR_Disable( level );
20459c8: 7f fe f8 16 call 2003a20 <sparc_disable_interrupts>
20459cc: 01 00 00 00 nop
local_state = the_period->state;
20459d0: e6 04 20 38 ld [ %l0 + 0x38 ], %l3
the_period->state = RATE_MONOTONIC_ACTIVE;
20459d4: e4 24 20 38 st %l2, [ %l0 + 0x38 ]
_ISR_Enable( level );
20459d8: 7f fe f8 16 call 2003a30 <sparc_enable_interrupts>
20459dc: 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 )
20459e0: 80 a4 e0 03 cmp %l3, 3
20459e4: 02 80 00 17 be 2045a40 <rtems_rate_monotonic_period+0x1b8>
20459e8: d0 04 63 70 ld [ %l1 + 0x370 ], %o0
_Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
_Thread_Enable_dispatch();
20459ec: 7f ff 29 51 call 200ff30 <_Thread_Enable_dispatch>
20459f0: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
20459f4: 81 c7 e0 08 ret
20459f8: 81 e8 00 00 restore
case RATE_MONOTONIC_EXPIRED:
/*
* Update statistics from the concluding period
*/
_Rate_monotonic_Update_statistics( the_period );
20459fc: 7f ff ff 63 call 2045788 <_Rate_monotonic_Update_statistics>
2045a00: 90 10 00 10 mov %l0, %o0
_ISR_Enable( level );
2045a04: 7f fe f8 0b call 2003a30 <sparc_enable_interrupts>
2045a08: 90 10 00 13 mov %l3, %o0
the_period->state = RATE_MONOTONIC_ACTIVE;
2045a0c: 82 10 20 02 mov 2, %g1
2045a10: 92 04 20 10 add %l0, 0x10, %o1
2045a14: 11 00 81 cc sethi %hi(0x2073000), %o0
2045a18: 90 12 23 90 or %o0, 0x390, %o0 ! 2073390 <_Watchdog_Ticks_chain>
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
2045a1c: f2 24 20 1c st %i1, [ %l0 + 0x1c ]
the_period->next_length = length;
2045a20: f2 24 20 3c st %i1, [ %l0 + 0x3c ]
*/
_Rate_monotonic_Update_statistics( the_period );
_ISR_Enable( level );
the_period->state = RATE_MONOTONIC_ACTIVE;
2045a24: c2 24 20 38 st %g1, [ %l0 + 0x38 ]
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
2045a28: 7f ff 2d e8 call 20111c8 <_Watchdog_Insert>
2045a2c: b0 10 20 06 mov 6, %i0
the_period->next_length = length;
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
2045a30: 7f ff 29 40 call 200ff30 <_Thread_Enable_dispatch>
2045a34: 01 00 00 00 nop
return RTEMS_TIMEOUT;
2045a38: 81 c7 e0 08 ret
2045a3c: 81 e8 00 00 restore
/*
* 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 )
_Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
2045a40: 7f ff 28 22 call 200fac8 <_Thread_Clear_state>
2045a44: 13 00 00 10 sethi %hi(0x4000), %o1
2045a48: 30 bf ff e9 b,a 20459ec <rtems_rate_monotonic_period+0x164>
0202f098 <rtems_rate_monotonic_report_statistics_with_plugin>:
*/
void rtems_rate_monotonic_report_statistics_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
202f098: 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 )
202f09c: 80 a6 60 00 cmp %i1, 0
202f0a0: 02 80 00 4d be 202f1d4 <rtems_rate_monotonic_report_statistics_with_plugin+0x13c><== NEVER TAKEN
202f0a4: 90 10 00 18 mov %i0, %o0
return;
(*print)( context, "Period information by period\n" );
202f0a8: 13 00 81 a5 sethi %hi(0x2069400), %o1
202f0ac: 9f c6 40 00 call %i1
202f0b0: 92 12 63 c0 or %o1, 0x3c0, %o1 ! 20697c0 <_TOD_Days_per_month+0x6c>
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
(*print)( context, "--- CPU times are in seconds ---\n" );
202f0b4: 90 10 00 18 mov %i0, %o0
202f0b8: 13 00 81 a5 sethi %hi(0x2069400), %o1
202f0bc: 9f c6 40 00 call %i1
202f0c0: 92 12 63 e0 or %o1, 0x3e0, %o1 ! 20697e0 <_TOD_Days_per_month+0x8c>
(*print)( context, "--- Wall times are in seconds ---\n" );
202f0c4: 90 10 00 18 mov %i0, %o0
202f0c8: 13 00 81 a6 sethi %hi(0x2069800), %o1
202f0cc: 9f c6 40 00 call %i1
202f0d0: 92 12 60 08 or %o1, 8, %o1 ! 2069808 <_TOD_Days_per_month+0xb4>
Be sure to test the various cases.
(*print)( context,"\
1234567890123456789012345678901234567890123456789012345678901234567890123456789\
\n");
*/
(*print)( context, " ID OWNER COUNT MISSED "
202f0d4: 90 10 00 18 mov %i0, %o0
202f0d8: 13 00 81 a6 sethi %hi(0x2069800), %o1
202f0dc: 9f c6 40 00 call %i1
202f0e0: 92 12 60 30 or %o1, 0x30, %o1 ! 2069830 <_TOD_Days_per_month+0xdc>
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
" "
#endif
" WALL TIME\n"
);
(*print)( context, " "
202f0e4: 90 10 00 18 mov %i0, %o0
202f0e8: 13 00 81 a6 sethi %hi(0x2069800), %o1
202f0ec: 9f c6 40 00 call %i1
202f0f0: 92 12 60 80 or %o1, 0x80, %o1 ! 2069880 <_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 ;
202f0f4: 23 00 81 cd sethi %hi(0x2073400), %l1
202f0f8: a2 14 63 30 or %l1, 0x330, %l1 ! 2073730 <_Rate_monotonic_Information>
202f0fc: e0 04 60 08 ld [ %l1 + 8 ], %l0
202f100: c2 04 60 0c ld [ %l1 + 0xc ], %g1
202f104: 80 a4 00 01 cmp %l0, %g1
202f108: 18 80 00 33 bgu 202f1d4 <rtems_rate_monotonic_report_statistics_with_plugin+0x13c><== NEVER TAKEN
202f10c: 3b 00 81 a6 sethi %hi(0x2069800), %i5
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,
202f110: 39 00 81 a6 sethi %hi(0x2069800), %i4
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,
202f114: 35 00 81 a6 sethi %hi(0x2069800), %i2
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
(*print)( context, "\n" );
202f118: 2f 00 81 a6 sethi %hi(0x2069800), %l7
rtems_object_get_name( the_status.owner, sizeof(name), name );
/*
* Print part of report line that is not dependent on granularity
*/
(*print)( context,
202f11c: ba 17 60 d0 or %i5, 0xd0, %i5
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,
202f120: b8 17 20 f0 or %i4, 0xf0, %i4
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,
202f124: b4 16 a1 10 or %i2, 0x110, %i2
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
(*print)( context, "\n" );
202f128: ae 15 e0 e8 or %l7, 0xe8, %l7
202f12c: a4 07 bf a0 add %fp, -96, %l2
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 );
202f130: ac 07 bf d8 add %fp, -40, %l6
#if defined(RTEMS_DEBUG)
if ( status != RTEMS_SUCCESSFUL )
continue;
#endif
rtems_object_get_name( the_status.owner, sizeof(name), name );
202f134: a6 07 bf f8 add %fp, -8, %l3
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 );
202f138: aa 07 bf b8 add %fp, -72, %l5
202f13c: 10 80 00 06 b 202f154 <rtems_rate_monotonic_report_statistics_with_plugin+0xbc>
202f140: a8 07 bf f0 add %fp, -16, %l4
* 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++ ) {
202f144: 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 ;
202f148: 80 a0 40 10 cmp %g1, %l0
202f14c: 0a 80 00 22 bcs 202f1d4 <rtems_rate_monotonic_report_statistics_with_plugin+0x13c>
202f150: 01 00 00 00 nop
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
status = rtems_rate_monotonic_get_statistics( id, &the_stats );
202f154: 90 10 00 10 mov %l0, %o0
202f158: 40 00 58 e5 call 20454ec <rtems_rate_monotonic_get_statistics>
202f15c: 92 10 00 12 mov %l2, %o1
if ( status != RTEMS_SUCCESSFUL )
202f160: 80 a2 20 00 cmp %o0, 0
202f164: 32 bf ff f8 bne,a 202f144 <rtems_rate_monotonic_report_statistics_with_plugin+0xac>
202f168: c2 04 60 0c ld [ %l1 + 0xc ], %g1
continue;
/* If the above passed, so should this but check it anyway */
status = rtems_rate_monotonic_get_status( id, &the_status );
202f16c: 92 10 00 16 mov %l6, %o1
202f170: 40 00 59 0e call 20455a8 <rtems_rate_monotonic_get_status>
202f174: 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 );
202f178: d0 07 bf d8 ld [ %fp + -40 ], %o0
202f17c: 94 10 00 13 mov %l3, %o2
202f180: 7f ff 78 70 call 200d340 <rtems_object_get_name>
202f184: 92 10 20 05 mov 5, %o1
/*
* Print part of report line that is not dependent on granularity
*/
(*print)( context,
202f188: d8 1f bf a0 ldd [ %fp + -96 ], %o4
202f18c: 92 10 00 1d mov %i5, %o1
202f190: 94 10 00 10 mov %l0, %o2
202f194: 90 10 00 18 mov %i0, %o0
202f198: 9f c6 40 00 call %i1
202f19c: 96 10 00 13 mov %l3, %o3
);
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
202f1a0: 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 );
202f1a4: 94 10 00 14 mov %l4, %o2
202f1a8: 90 10 00 15 mov %l5, %o0
);
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
202f1ac: 80 a0 60 00 cmp %g1, 0
202f1b0: 12 80 00 0b bne 202f1dc <rtems_rate_monotonic_report_statistics_with_plugin+0x144>
202f1b4: 92 10 00 17 mov %l7, %o1
(*print)( context, "\n" );
202f1b8: 9f c6 40 00 call %i1
202f1bc: 90 10 00 18 mov %i0, %o0
/*
* 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 ;
202f1c0: c2 04 60 0c ld [ %l1 + 0xc ], %g1
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
202f1c4: 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 ;
202f1c8: 80 a0 40 10 cmp %g1, %l0
202f1cc: 1a bf ff e3 bcc 202f158 <rtems_rate_monotonic_report_statistics_with_plugin+0xc0><== ALWAYS TAKEN
202f1d0: 90 10 00 10 mov %l0, %o0
202f1d4: 81 c7 e0 08 ret
202f1d8: 81 e8 00 00 restore
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 );
202f1dc: 40 00 05 b6 call 20308b4 <_Timespec_Divide_by_integer>
202f1e0: 92 10 00 01 mov %g1, %o1
(*print)( context,
202f1e4: d0 07 bf ac ld [ %fp + -84 ], %o0
202f1e8: 40 00 c7 c6 call 2061100 <.div>
202f1ec: 92 10 23 e8 mov 0x3e8, %o1
202f1f0: 96 10 00 08 mov %o0, %o3
202f1f4: d0 07 bf b4 ld [ %fp + -76 ], %o0
202f1f8: d6 27 bf 9c st %o3, [ %fp + -100 ]
202f1fc: 40 00 c7 c1 call 2061100 <.div>
202f200: 92 10 23 e8 mov 0x3e8, %o1
202f204: c2 07 bf f0 ld [ %fp + -16 ], %g1
202f208: b6 10 00 08 mov %o0, %i3
202f20c: d0 07 bf f4 ld [ %fp + -12 ], %o0
202f210: c2 23 a0 5c st %g1, [ %sp + 0x5c ]
202f214: 40 00 c7 bb call 2061100 <.div>
202f218: 92 10 23 e8 mov 0x3e8, %o1
202f21c: d8 07 bf b0 ld [ %fp + -80 ], %o4
202f220: d6 07 bf 9c ld [ %fp + -100 ], %o3
202f224: d4 07 bf a8 ld [ %fp + -88 ], %o2
202f228: 9a 10 00 1b mov %i3, %o5
202f22c: d0 23 a0 60 st %o0, [ %sp + 0x60 ]
202f230: 92 10 00 1c mov %i4, %o1
202f234: 9f c6 40 00 call %i1
202f238: 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);
202f23c: d2 07 bf a0 ld [ %fp + -96 ], %o1
202f240: 94 10 00 14 mov %l4, %o2
202f244: 40 00 05 9c call 20308b4 <_Timespec_Divide_by_integer>
202f248: 90 07 bf d0 add %fp, -48, %o0
(*print)( context,
202f24c: d0 07 bf c4 ld [ %fp + -60 ], %o0
202f250: 40 00 c7 ac call 2061100 <.div>
202f254: 92 10 23 e8 mov 0x3e8, %o1
202f258: 96 10 00 08 mov %o0, %o3
202f25c: d0 07 bf cc ld [ %fp + -52 ], %o0
202f260: d6 27 bf 9c st %o3, [ %fp + -100 ]
202f264: 40 00 c7 a7 call 2061100 <.div>
202f268: 92 10 23 e8 mov 0x3e8, %o1
202f26c: c2 07 bf f0 ld [ %fp + -16 ], %g1
202f270: b6 10 00 08 mov %o0, %i3
202f274: d0 07 bf f4 ld [ %fp + -12 ], %o0
202f278: c2 23 a0 5c st %g1, [ %sp + 0x5c ]
202f27c: 40 00 c7 a1 call 2061100 <.div>
202f280: 92 10 23 e8 mov 0x3e8, %o1
202f284: d4 07 bf c0 ld [ %fp + -64 ], %o2
202f288: d6 07 bf 9c ld [ %fp + -100 ], %o3
202f28c: d8 07 bf c8 ld [ %fp + -56 ], %o4
202f290: d0 23 a0 60 st %o0, [ %sp + 0x60 ]
202f294: 9a 10 00 1b mov %i3, %o5
202f298: 90 10 00 18 mov %i0, %o0
202f29c: 9f c6 40 00 call %i1
202f2a0: 92 10 00 1a mov %i2, %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 ;
202f2a4: 10 bf ff a8 b 202f144 <rtems_rate_monotonic_report_statistics_with_plugin+0xac>
202f2a8: c2 04 60 0c ld [ %l1 + 0xc ], %g1
0202f2c8 <rtems_rate_monotonic_reset_all_statistics>:
/*
* rtems_rate_monotonic_reset_all_statistics
*/
void rtems_rate_monotonic_reset_all_statistics( void )
{
202f2c8: 9d e3 bf a0 save %sp, -96, %sp
202f2cc: 03 00 81 cc sethi %hi(0x2073000), %g1
202f2d0: c4 00 62 b0 ld [ %g1 + 0x2b0 ], %g2 ! 20732b0 <_Thread_Dispatch_disable_level>
202f2d4: 84 00 a0 01 inc %g2
202f2d8: c4 20 62 b0 st %g2, [ %g1 + 0x2b0 ]
/*
* Cycle through all possible ids and try to reset 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 ;
202f2dc: 23 00 81 cd sethi %hi(0x2073400), %l1
202f2e0: a2 14 63 30 or %l1, 0x330, %l1 ! 2073730 <_Rate_monotonic_Information>
202f2e4: e0 04 60 08 ld [ %l1 + 8 ], %l0
202f2e8: c2 04 60 0c ld [ %l1 + 0xc ], %g1
202f2ec: 80 a4 00 01 cmp %l0, %g1
202f2f0: 18 80 00 09 bgu 202f314 <rtems_rate_monotonic_reset_all_statistics+0x4c><== NEVER TAKEN
202f2f4: 01 00 00 00 nop
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
status = rtems_rate_monotonic_reset_statistics( id );
202f2f8: 40 00 00 0a call 202f320 <rtems_rate_monotonic_reset_statistics>
202f2fc: 90 10 00 10 mov %l0, %o0
/*
* Cycle through all possible ids and try to reset 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 ;
202f300: c2 04 60 0c ld [ %l1 + 0xc ], %g1
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
202f304: a0 04 20 01 inc %l0
/*
* Cycle through all possible ids and try to reset 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 ;
202f308: 80 a0 40 10 cmp %g1, %l0
202f30c: 1a bf ff fb bcc 202f2f8 <rtems_rate_monotonic_reset_all_statistics+0x30>
202f310: 01 00 00 00 nop
}
/*
* Done so exit thread dispatching disabled critical section.
*/
_Thread_Enable_dispatch();
202f314: 7f ff 83 07 call 200ff30 <_Thread_Enable_dispatch>
202f318: 81 e8 00 00 restore
02015618 <rtems_region_get_segment_size>:
rtems_status_code rtems_region_get_segment_size(
rtems_id id,
void *segment,
uintptr_t *size
)
{
2015618: 9d e3 bf 98 save %sp, -104, %sp
Objects_Locations location;
rtems_status_code return_status = RTEMS_SUCCESSFUL;
register Region_Control *the_region;
if ( !segment )
201561c: 80 a6 60 00 cmp %i1, 0
2015620: 02 80 00 22 be 20156a8 <rtems_region_get_segment_size+0x90>
2015624: 80 a6 a0 00 cmp %i2, 0
return RTEMS_INVALID_ADDRESS;
if ( !size )
2015628: 02 80 00 20 be 20156a8 <rtems_region_get_segment_size+0x90>
201562c: 21 00 80 fd sethi %hi(0x203f400), %l0
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator();
2015630: 40 00 08 d7 call 201798c <_API_Mutex_Lock>
2015634: d0 04 20 38 ld [ %l0 + 0x38 ], %o0 ! 203f438 <_RTEMS_Allocator_Mutex>
2015638: 92 10 00 18 mov %i0, %o1
201563c: 11 00 80 fc sethi %hi(0x203f000), %o0
2015640: 94 07 bf fc add %fp, -4, %o2
2015644: 40 00 0f e9 call 20195e8 <_Objects_Get_no_protection>
2015648: 90 12 22 04 or %o0, 0x204, %o0
the_region = _Region_Get( id, &location );
switch ( location ) {
201564c: c2 07 bf fc ld [ %fp + -4 ], %g1
2015650: 80 a0 60 00 cmp %g1, 0
2015654: 12 80 00 0f bne 2015690 <rtems_region_get_segment_size+0x78>
2015658: 80 a0 60 01 cmp %g1, 1
case OBJECTS_LOCAL:
if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) )
201565c: 90 02 20 68 add %o0, 0x68, %o0
2015660: 92 10 00 19 mov %i1, %o1
2015664: 94 10 00 1a mov %i2, %o2
2015668: 40 00 0e 3d call 2018f5c <_Heap_Size_of_alloc_area>
201566c: b0 10 20 09 mov 9, %i0
2015670: 80 8a 20 ff btst 0xff, %o0
2015674: 02 80 00 03 be 2015680 <rtems_region_get_segment_size+0x68><== NEVER TAKEN
2015678: 01 00 00 00 nop
201567c: b0 10 20 00 clr %i0 ! 0 <PROM_START>
case OBJECTS_ERROR:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
2015680: 40 00 08 d9 call 20179e4 <_API_Mutex_Unlock>
2015684: d0 04 20 38 ld [ %l0 + 0x38 ], %o0
return return_status;
2015688: 81 c7 e0 08 ret
201568c: 81 e8 00 00 restore
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator();
the_region = _Region_Get( id, &location );
switch ( location ) {
2015690: 12 bf ff fb bne 201567c <rtems_region_get_segment_size+0x64><== NEVER TAKEN
2015694: b0 10 20 04 mov 4, %i0
case OBJECTS_ERROR:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
2015698: 40 00 08 d3 call 20179e4 <_API_Mutex_Unlock>
201569c: d0 04 20 38 ld [ %l0 + 0x38 ], %o0
return return_status;
20156a0: 81 c7 e0 08 ret
20156a4: 81 e8 00 00 restore
}
20156a8: 81 c7 e0 08 ret
20156ac: 91 e8 20 09 restore %g0, 9, %o0
02047cd4 <rtems_rfs_bitmap_close>:
return rtems_rfs_bitmap_create_search (control);
}
int
rtems_rfs_bitmap_close (rtems_rfs_bitmap_control* control)
{
2047cd4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
free (control->search_bits);
2047cd8: d0 06 20 14 ld [ %i0 + 0x14 ], %o0 <== NOT EXECUTED
2047cdc: 7f ff 03 00 call 20088dc <free> <== NOT EXECUTED
2047ce0: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2047ce4: 81 c7 e0 08 ret <== NOT EXECUTED
2047ce8: 81 e8 00 00 restore <== NOT EXECUTED
02047d3c <rtems_rfs_bitmap_create_search>:
return 0;
}
int
rtems_rfs_bitmap_create_search (rtems_rfs_bitmap_control* control)
{
2047d3c: 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);
2047d40: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
2047d44: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2047d48: 7f ff ff e9 call 2047cec <rtems_rfs_bitmap_load_map> <== NOT EXECUTED
2047d4c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
if (rc > 0)
2047d50: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2047d54: 24 80 00 04 ble,a 2047d64 <rtems_rfs_bitmap_create_search+0x28><== NOT EXECUTED
2047d58: d0 06 20 14 ld [ %i0 + 0x14 ], %o0 <== NOT EXECUTED
bit++;
map++;
}
return 0;
}
2047d5c: 81 c7 e0 08 ret <== NOT EXECUTED
2047d60: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
if (rc > 0)
return rc;
control->free = 0;
search_map = control->search_bits;
size = control->size;
2047d64: da 06 20 0c ld [ %i0 + 0xc ], %o5 <== NOT EXECUTED
bit = 0;
*search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
2047d68: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
rc = rtems_rfs_bitmap_load_map (control, &map);
if (rc > 0)
return rc;
control->free = 0;
2047d6c: 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;
while (size)
2047d70: 80 a3 60 00 cmp %o5, 0 <== NOT EXECUTED
2047d74: 02 80 00 25 be 2047e08 <rtems_rfs_bitmap_create_search+0xcc><== NOT EXECUTED
2047d78: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2047d7c: d6 07 bf fc ld [ %fp + -4 ], %o3 <== NOT EXECUTED
2047d80: 94 10 20 00 clr %o2 <== NOT EXECUTED
rtems_rfs_bitmap_mask_section (0, size));
available = size;
}
else
{
bits = *map;
2047d84: a2 10 20 20 mov 0x20, %l1 <== NOT EXECUTED
{
/*
* Use the normal bit operators because we do not change the bits just merge
* the 2 separate parts.
*/
bits1 &= mask;
2047d88: 9e 10 3f ff mov -1, %o7 <== 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))
2047d8c: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED
*search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
while (size)
{
rtems_rfs_bitmap_element bits;
int available;
if (size < rtems_rfs_bitmap_element_bits ())
2047d90: 80 a3 60 1f cmp %o5, 0x1f <== NOT EXECUTED
2047d94: 38 80 00 20 bgu,a 2047e14 <rtems_rfs_bitmap_create_search+0xd8><== NOT EXECUTED
2047d98: c6 02 c0 00 ld [ %o3 ], %g3 <== NOT EXECUTED
{
/*
* Use the normal bit operators because we do not change the bits just merge
* the 2 separate parts.
*/
bits1 &= mask;
2047d9c: c2 02 c0 00 ld [ %o3 ], %g1 <== NOT EXECUTED
2047da0: 86 24 40 0d sub %l1, %o5, %g3 <== 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;
2047da4: 88 10 00 0d mov %o5, %g4 <== NOT EXECUTED
{
/*
* Use the normal bit operators because we do not change the bits just merge
* the 2 separate parts.
*/
bits1 &= mask;
2047da8: 87 33 c0 03 srl %o7, %g3, %g3 <== 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;
2047dac: 92 10 00 0d mov %o5, %o1 <== NOT EXECUTED
{
/*
* Use the normal bit operators because we do not change the bits just merge
* the 2 separate parts.
*/
bits1 &= mask;
2047db0: 86 08 c0 01 and %g3, %g1, %g3 <== NOT EXECUTED
{
bits = *map;
available = rtems_rfs_bitmap_element_bits ();
}
if (rtems_rfs_bitmap_match (bits, RTEMS_RFS_BITMAP_ELEMENT_SET))
2047db4: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
2047db8: 02 80 00 0e be 2047df0 <rtems_rfs_bitmap_create_search+0xb4><== NOT EXECUTED
2047dbc: 80 a2 a0 20 cmp %o2, 0x20 <== NOT EXECUTED
2047dc0: 82 10 20 00 clr %g1 <== 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))
2047dc4: 85 2b 00 01 sll %o4, %g1, %g2 <== NOT EXECUTED
2047dc8: 80 88 80 03 btst %g2, %g3 <== NOT EXECUTED
2047dcc: 02 80 00 05 be 2047de0 <rtems_rfs_bitmap_create_search+0xa4><== NOT EXECUTED
2047dd0: 82 00 60 01 inc %g1 <== NOT EXECUTED
control->free++;
2047dd4: c4 04 20 10 ld [ %l0 + 0x10 ], %g2 <== NOT EXECUTED
2047dd8: 84 00 a0 01 inc %g2 <== NOT EXECUTED
2047ddc: c4 24 20 10 st %g2, [ %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++)
2047de0: 80 a1 00 01 cmp %g4, %g1 <== NOT EXECUTED
2047de4: 14 bf ff f9 bg 2047dc8 <rtems_rfs_bitmap_create_search+0x8c><== NOT EXECUTED
2047de8: 85 2b 00 01 sll %o4, %g1, %g2 <== NOT EXECUTED
control->free++;
}
size -= available;
if (bit == rtems_rfs_bitmap_element_bits ())
2047dec: 80 a2 a0 20 cmp %o2, 0x20 <== NOT EXECUTED
2047df0: 02 80 00 0c be 2047e20 <rtems_rfs_bitmap_create_search+0xe4><== NOT EXECUTED
2047df4: 9a 23 40 09 sub %o5, %o1, %o5 <== NOT EXECUTED
bit = 0;
search_map++;
*search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
}
else
bit++;
2047df8: 94 02 a0 01 inc %o2 <== NOT EXECUTED
search_map = control->search_bits;
size = control->size;
bit = 0;
*search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
while (size)
2047dfc: 80 a3 60 00 cmp %o5, 0 <== NOT EXECUTED
2047e00: 12 bf ff e4 bne 2047d90 <rtems_rfs_bitmap_create_search+0x54><== NOT EXECUTED
2047e04: 96 02 e0 04 add %o3, 4, %o3 <== NOT EXECUTED
2047e08: 90 10 20 00 clr %o0 <== NOT EXECUTED
bit++;
map++;
}
return 0;
}
2047e0c: 81 c7 e0 08 ret <== NOT EXECUTED
2047e10: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
rtems_rfs_bitmap_mask_section (0, size));
available = size;
}
else
{
bits = *map;
2047e14: 92 10 20 20 mov 0x20, %o1 <== NOT EXECUTED
2047e18: 10 bf ff e7 b 2047db4 <rtems_rfs_bitmap_create_search+0x78><== NOT EXECUTED
2047e1c: 88 10 20 20 mov 0x20, %g4 <== NOT EXECUTED
size -= available;
if (bit == rtems_rfs_bitmap_element_bits ())
{
bit = 0;
search_map++;
2047e20: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED
*search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
2047e24: 94 10 20 00 clr %o2 <== NOT EXECUTED
2047e28: 10 bf ff f5 b 2047dfc <rtems_rfs_bitmap_create_search+0xc0><== NOT EXECUTED
2047e2c: de 22 00 00 st %o7, [ %o0 ] <== NOT EXECUTED
02047cec <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)
{
2047cec: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc;
if (!control->buffer)
2047cf0: d2 06 00 00 ld [ %i0 ], %o1 <== NOT EXECUTED
* @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)
{
2047cf4: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
int rc;
if (!control->buffer)
2047cf8: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
2047cfc: 02 80 00 0e be 2047d34 <rtems_rfs_bitmap_load_map+0x48> <== NOT EXECUTED
2047d00: b0 10 20 06 mov 6, %i0 <== NOT EXECUTED
return ENXIO;
*map = NULL;
rc = rtems_rfs_buffer_handle_request (control->fs,
2047d04: d0 04 20 04 ld [ %l0 + 4 ], %o0 <== NOT EXECUTED
2047d08: d4 04 20 08 ld [ %l0 + 8 ], %o2 <== NOT EXECUTED
int rc;
if (!control->buffer)
return ENXIO;
*map = NULL;
2047d0c: c0 26 40 00 clr [ %i1 ] <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (control->fs,
2047d10: 7f ff db fd call 203ed04 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
2047d14: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
control->buffer,
control->block,
true);
if (rc)
2047d18: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2047d1c: 12 80 00 06 bne 2047d34 <rtems_rfs_bitmap_load_map+0x48> <== NOT EXECUTED
2047d20: 01 00 00 00 nop <== NOT EXECUTED
return rc;
*map = rtems_rfs_buffer_data (control->buffer);
2047d24: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
2047d28: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED
2047d2c: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
2047d30: c2 26 40 00 st %g1, [ %i1 ] <== NOT EXECUTED
return 0;
}
2047d34: 81 c7 e0 08 ret <== NOT EXECUTED
2047d38: 81 e8 00 00 restore <== NOT EXECUTED
02048420 <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)
{
2048420: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc = 0;
/*
* By default we assume the allocation failed.
*/
*allocated = false;
2048424: c0 2e 80 00 clrb [ %i2 ] <== NOT EXECUTED
2048428: a0 10 00 19 mov %i1, %l0 <== 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))
204842c: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
2048430: 06 80 00 1f bl 20484ac <rtems_rfs_bitmap_map_alloc+0x8c> <== NOT EXECUTED
2048434: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2048438: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
204843c: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED
2048440: 1a 80 00 1b bcc 20484ac <rtems_rfs_bitmap_map_alloc+0x8c> <== NOT EXECUTED
2048444: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
/*
* Search up first so bits allocated in succession are grouped together.
*/
if (upper_seed < control->size)
{
*bit = upper_seed;
2048448: e0 26 c0 00 st %l0, [ %i3 ] <== NOT EXECUTED
rc = rtems_rfs_search_map_for_clear_bit (control, bit, allocated,
204844c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2048450: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
2048454: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2048458: 7f ff ff 44 call 2048168 <T.54> <== NOT EXECUTED
204845c: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
window, 1);
if ((rc > 0) || *allocated)
2048460: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2048464: 14 80 00 27 bg 2048500 <rtems_rfs_bitmap_map_alloc+0xe0> <== NOT EXECUTED
2048468: 01 00 00 00 nop <== NOT EXECUTED
204846c: c2 0e 80 00 ldub [ %i2 ], %g1 <== NOT EXECUTED
2048470: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2048474: 12 80 00 23 bne 2048500 <rtems_rfs_bitmap_map_alloc+0xe0> <== NOT EXECUTED
2048478: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
break;
}
if (lower_seed >= 0)
204847c: 36 80 00 15 bge,a 20484d0 <rtems_rfs_bitmap_map_alloc+0xb0><== NOT EXECUTED
2048480: f2 26 c0 00 st %i1, [ %i3 ] <== 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)
2048484: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
2048488: 80 a0 40 10 cmp %g1, %l0 <== NOT EXECUTED
204848c: 38 80 00 02 bgu,a 2048494 <rtems_rfs_bitmap_map_alloc+0x74><== NOT EXECUTED
2048490: a0 04 28 00 add %l0, 0x800, %l0 <== NOT EXECUTED
upper_seed += window;
if (lower_seed >= 0)
2048494: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2048498: 06 bf ff e5 bl 204842c <rtems_rfs_bitmap_map_alloc+0xc> <== NOT EXECUTED
204849c: 80 a4 20 00 cmp %l0, 0 <== 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))
20484a0: 16 bf ff e6 bge 2048438 <rtems_rfs_bitmap_map_alloc+0x18> <== NOT EXECUTED
20484a4: b2 06 78 00 add %i1, -2048, %i1 <== NOT EXECUTED
20484a8: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
20484ac: 06 80 00 15 bl 2048500 <rtems_rfs_bitmap_map_alloc+0xe0> <== NOT EXECUTED
20484b0: 01 00 00 00 nop <== NOT EXECUTED
|| ((lower_seed >= 0) && (lower_seed < control->size)))
20484b4: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== 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))
20484b8: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
20484bc: 1a 80 00 11 bcc 2048500 <rtems_rfs_bitmap_map_alloc+0xe0> <== NOT EXECUTED
20484c0: 80 a4 00 01 cmp %l0, %g1 <== 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)
20484c4: 2a bf ff e2 bcs,a 204844c <rtems_rfs_bitmap_map_alloc+0x2c><== NOT EXECUTED
20484c8: e0 26 c0 00 st %l0, [ %i3 ] <== NOT EXECUTED
break;
}
if (lower_seed >= 0)
{
*bit = lower_seed;
20484cc: f2 26 c0 00 st %i1, [ %i3 ] <== NOT EXECUTED
rc = rtems_rfs_search_map_for_clear_bit (control, bit, allocated,
20484d0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20484d4: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
20484d8: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
20484dc: 7f ff ff 23 call 2048168 <T.54> <== NOT EXECUTED
20484e0: 96 10 3f ff mov -1, %o3 <== NOT EXECUTED
window, -1);
if ((rc > 0) || *allocated)
20484e4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20484e8: 14 80 00 06 bg 2048500 <rtems_rfs_bitmap_map_alloc+0xe0> <== NOT EXECUTED
20484ec: 01 00 00 00 nop <== NOT EXECUTED
20484f0: c2 0e 80 00 ldub [ %i2 ], %g1 <== NOT EXECUTED
20484f4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20484f8: 22 bf ff e4 be,a 2048488 <rtems_rfs_bitmap_map_alloc+0x68><== NOT EXECUTED
20484fc: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
if (lower_seed >= 0)
lower_seed -= window;
}
return 0;
}
2048500: 81 c7 e0 08 ret <== NOT EXECUTED
2048504: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
02048048 <rtems_rfs_bitmap_map_clear>:
}
int
rtems_rfs_bitmap_map_clear (rtems_rfs_bitmap_control* control,
rtems_rfs_bitmap_bit bit)
{
2048048: 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);
204804c: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
2048050: 7f ff ff 27 call 2047cec <rtems_rfs_bitmap_load_map> <== NOT EXECUTED
2048054: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rc > 0)
2048058: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
204805c: 24 80 00 04 ble,a 204806c <rtems_rfs_bitmap_map_clear+0x24><== NOT EXECUTED
2048060: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
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);
control->free++;
return 0;
}
2048064: 81 c7 e0 08 ret <== NOT EXECUTED
2048068: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
int offset;
int rc;
rc = rtems_rfs_bitmap_load_map (control, &map);
if (rc > 0)
return rc;
if (bit >= control->size)
204806c: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
2048070: 1a bf ff fd bcc 2048064 <rtems_rfs_bitmap_map_clear+0x1c> <== NOT EXECUTED
2048074: 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);
2048078: d8 07 bf fc ld [ %fp + -4 ], %o4 <== 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;
204807c: c6 06 20 14 ld [ %i0 + 0x14 ], %g3 <== NOT EXECUTED
index = rtems_rfs_bitmap_map_index (bit);
2048080: 89 3e 60 05 sra %i1, 5, %g4 <== NOT EXECUTED
offset = rtems_rfs_bitmap_map_offset (bit);
map[index] = rtems_rfs_bitmap_clear (map[index], 1 << offset);
2048084: 9b 29 20 02 sll %g4, 2, %o5 <== NOT EXECUTED
2048088: d4 03 00 0d ld [ %o4 + %o5 ], %o2 <== NOT EXECUTED
204808c: 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);
2048090: 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);
2048094: 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);
2048098: 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);
204809c: b2 12 80 19 or %o2, %i1, %i1 <== NOT EXECUTED
20480a0: 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);
20480a4: 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);
20480a8: da 00 c0 02 ld [ %g3 + %g2 ], %o5 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
control->free++;
20480ac: 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);
20480b0: 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);
20480b4: 83 28 40 04 sll %g1, %g4, %g1 <== NOT EXECUTED
20480b8: 82 13 40 01 or %o5, %g1, %g1 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
control->free++;
20480bc: 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);
20480c0: c2 20 c0 02 st %g1, [ %g3 + %g2 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
control->free++;
20480c4: 82 02 e0 01 add %o3, 1, %g1 <== NOT EXECUTED
20480c8: c2 26 20 10 st %g1, [ %i0 + 0x10 ] <== NOT EXECUTED
return 0;
}
20480cc: 81 c7 e0 08 ret <== NOT EXECUTED
20480d0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02047e74 <rtems_rfs_bitmap_map_clear_all>:
return 0;
}
int
rtems_rfs_bitmap_map_clear_all (rtems_rfs_bitmap_control* control)
{
2047e74: 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);
2047e78: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
2047e7c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2047e80: 7f ff ff 9b call 2047cec <rtems_rfs_bitmap_load_map> <== NOT EXECUTED
2047e84: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
if (rc > 0)
2047e88: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2047e8c: 24 80 00 04 ble,a 2047e9c <rtems_rfs_bitmap_map_clear_all+0x28><== NOT EXECUTED
2047e90: d8 06 20 0c ld [ %i0 + 0xc ], %o4 <== NOT EXECUTED
rtems_rfs_bitmap_mask (last_search_bit));
rtems_rfs_buffer_mark_dirty (control->buffer);
return 0;
}
2047e94: 81 c7 e0 08 ret <== NOT EXECUTED
2047e98: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
if (rc > 0)
return rc;
elements = rtems_rfs_bitmap_elements (control->size);
control->free = elements;
2047e9c: da 07 bf fc ld [ %fp + -4 ], %o5 <== NOT EXECUTED
rc = rtems_rfs_bitmap_load_map (control, &map);
if (rc > 0)
return rc;
elements = rtems_rfs_bitmap_elements (control->size);
2047ea0: 98 03 3f ff add %o4, -1, %o4 <== NOT EXECUTED
control->free = elements;
2047ea4: 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);
2047ea8: 99 33 20 05 srl %o4, 5, %o4 <== NOT EXECUTED
control->free = elements;
2047eac: 82 10 20 00 clr %g1 <== NOT EXECUTED
rc = rtems_rfs_bitmap_load_map (control, &map);
if (rc > 0)
return rc;
elements = rtems_rfs_bitmap_elements (control->size);
2047eb0: 86 03 20 01 add %o4, 1, %g3 <== NOT EXECUTED
control->free = elements;
for (e = 0; e < elements; e++)
map[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
2047eb4: 88 10 3f ff mov -1, %g4 <== NOT EXECUTED
if (rc > 0)
return rc;
elements = rtems_rfs_bitmap_elements (control->size);
control->free = elements;
2047eb8: c6 26 20 10 st %g3, [ %i0 + 0x10 ] <== NOT EXECUTED
for (e = 0; e < elements; e++)
map[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
2047ebc: 85 28 a0 02 sll %g2, 2, %g2 <== NOT EXECUTED
2047ec0: c8 23 40 02 st %g4, [ %o5 + %g2 ] <== NOT EXECUTED
elements = rtems_rfs_bitmap_elements (control->size);
control->free = elements;
for (e = 0; e < elements; e++)
2047ec4: 82 00 60 01 inc %g1 <== NOT EXECUTED
2047ec8: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED
2047ecc: 18 bf ff fc bgu 2047ebc <rtems_rfs_bitmap_map_clear_all+0x48><== NOT EXECUTED
2047ed0: 84 10 00 01 mov %g1, %g2 <== 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)
2047ed4: 86 88 e0 1f andcc %g3, 0x1f, %g3 <== NOT EXECUTED
2047ed8: 02 80 00 04 be 2047ee8 <rtems_rfs_bitmap_map_clear_all+0x74><== NOT EXECUTED
2047edc: 96 10 3f ff mov -1, %o3 <== NOT EXECUTED
2047ee0: 86 20 00 03 neg %g3 <== NOT EXECUTED
2047ee4: 97 31 00 03 srl %g4, %g3, %o3 <== NOT EXECUTED
last_search_bit = rtems_rfs_bitmap_element_bits ();
elements = rtems_rfs_bitmap_elements (elements);
2047ee8: 87 33 20 05 srl %o4, 5, %g3 <== NOT EXECUTED
for (e = 0; e < (elements - 1); e++)
2047eec: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
2047ef0: 02 80 00 13 be 2047f3c <rtems_rfs_bitmap_map_clear_all+0xc8><== NOT EXECUTED
2047ef4: 84 10 20 00 clr %g2 <== NOT EXECUTED
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
2047ef8: c8 04 20 14 ld [ %l0 + 0x14 ], %g4 <== NOT EXECUTED
return 0;
}
int
rtems_rfs_bitmap_map_clear_all (rtems_rfs_bitmap_control* control)
2047efc: 82 10 20 00 clr %g1 <== NOT EXECUTED
last_search_bit = rtems_rfs_bitmap_element_bits ();
elements = rtems_rfs_bitmap_elements (elements);
for (e = 0; e < (elements - 1); e++)
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
2047f00: 9a 10 3f ff mov -1, %o5 <== NOT EXECUTED
2047f04: 85 28 a0 02 sll %g2, 2, %g2 <== NOT EXECUTED
2047f08: da 21 00 02 st %o5, [ %g4 + %g2 ] <== 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++)
2047f0c: 82 00 60 01 inc %g1 <== NOT EXECUTED
2047f10: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
2047f14: 12 bf ff fc bne 2047f04 <rtems_rfs_bitmap_map_clear_all+0x90><== NOT EXECUTED
2047f18: 84 10 00 01 mov %g1, %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);
2047f1c: c2 04 00 00 ld [ %l0 ], %g1 <== 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] =
2047f20: 87 28 e0 02 sll %g3, 2, %g3 <== 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);
2047f24: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
2047f28: 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] =
2047f2c: d6 21 00 03 st %o3, [ %g4 + %g3 ] <== 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);
2047f30: c4 28 40 00 stb %g2, [ %g1 ] <== NOT EXECUTED
return 0;
}
2047f34: 81 c7 e0 08 ret <== NOT EXECUTED
2047f38: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
2047f3c: 10 bf ff f8 b 2047f1c <rtems_rfs_bitmap_map_clear_all+0xa8><== NOT EXECUTED
2047f40: c8 04 20 14 ld [ %l0 + 0x14 ], %g4 <== NOT EXECUTED
020480d4 <rtems_rfs_bitmap_map_set>:
}
int
rtems_rfs_bitmap_map_set (rtems_rfs_bitmap_control* control,
rtems_rfs_bitmap_bit bit)
{
20480d4: 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);
20480d8: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
20480dc: 7f ff ff 04 call 2047cec <rtems_rfs_bitmap_load_map> <== NOT EXECUTED
20480e0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rc > 0)
20480e4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20480e8: 24 80 00 04 ble,a 20480f8 <rtems_rfs_bitmap_map_set+0x24><== NOT EXECUTED
20480ec: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
search_map[index] = rtems_rfs_bitmap_set (search_map[index], 1 << offset);
control->free--;
rtems_rfs_buffer_mark_dirty (control->buffer);
}
return 0;
}
20480f0: 81 c7 e0 08 ret <== NOT EXECUTED
20480f4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
int offset;
int rc;
rc = rtems_rfs_bitmap_load_map (control, &map);
if (rc > 0)
return rc;
if (bit >= control->size)
20480f8: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
20480fc: 1a bf ff fd bcc 20480f0 <rtems_rfs_bitmap_map_set+0x1c> <== NOT EXECUTED
2048100: 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);
2048104: c8 07 bf fc ld [ %fp + -4 ], %g4 <== 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);
2048108: 9b 3e 60 05 sra %i1, 5, %o5 <== NOT EXECUTED
offset = rtems_rfs_bitmap_map_offset (bit);
map[index] = rtems_rfs_bitmap_set (map[index], 1 << offset);
204810c: 87 2b 60 02 sll %o5, 2, %g3 <== 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);
2048110: c4 01 00 03 ld [ %g4 + %g3 ], %g2 <== NOT EXECUTED
2048114: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2048118: 99 28 40 19 sll %g1, %i1, %o4 <== NOT EXECUTED
204811c: 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);
2048120: c4 21 00 03 st %g2, [ %g4 + %g3 ] <== NOT EXECUTED
if (rtems_rfs_bitmap_match(map[index], RTEMS_RFS_BITMAP_ELEMENT_SET))
2048124: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2048128: 90 10 20 00 clr %o0 <== NOT EXECUTED
204812c: 12 bf ff f1 bne 20480f0 <rtems_rfs_bitmap_map_set+0x1c> <== NOT EXECUTED
2048130: 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);
control->free--;
rtems_rfs_buffer_mark_dirty (control->buffer);
2048134: 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);
2048138: b3 3e 60 0a sra %i1, 0xa, %i1 <== NOT EXECUTED
204813c: b3 2e 60 02 sll %i1, 2, %i1 <== NOT EXECUTED
2048140: c8 00 80 19 ld [ %g2 + %i1 ], %g4 <== NOT EXECUTED
control->free--;
2048144: c6 06 20 10 ld [ %i0 + 0x10 ], %g3 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
2048148: 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);
204814c: 83 28 40 0d sll %g1, %o5, %g1 <== NOT EXECUTED
2048150: 82 29 00 01 andn %g4, %g1, %g1 <== NOT EXECUTED
2048154: c2 20 80 19 st %g1, [ %g2 + %i1 ] <== NOT EXECUTED
control->free--;
2048158: 82 00 ff ff add %g3, -1, %g1 <== NOT EXECUTED
204815c: c2 26 20 10 st %g1, [ %i0 + 0x10 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
}
return 0;
}
2048160: 81 c7 e0 08 ret <== NOT EXECUTED
2048164: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02047f44 <rtems_rfs_bitmap_map_set_all>:
return 0;
}
int
rtems_rfs_bitmap_map_set_all (rtems_rfs_bitmap_control* control)
{
2047f44: 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);
2047f48: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
2047f4c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2047f50: 7f ff ff 67 call 2047cec <rtems_rfs_bitmap_load_map> <== NOT EXECUTED
2047f54: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
if (rc > 0)
2047f58: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2047f5c: 24 80 00 04 ble,a 2047f6c <rtems_rfs_bitmap_map_set_all+0x28><== NOT EXECUTED
2047f60: da 06 20 0c ld [ %i0 + 0xc ], %o5 <== NOT EXECUTED
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
rtems_rfs_buffer_mark_dirty (control->buffer);
return 0;
}
2047f64: 81 c7 e0 08 ret <== NOT EXECUTED
2047f68: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
if (rc > 0)
return rc;
elements = rtems_rfs_bitmap_elements (control->size);
control->free = 0;
2047f6c: 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);
2047f70: 9a 03 7f ff add %o5, -1, %o5 <== NOT EXECUTED
control->free = 0;
2047f74: 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);
2047f78: 9b 33 60 05 srl %o5, 5, %o5 <== NOT EXECUTED
control->free = 0;
2047f7c: 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);
2047f80: 86 03 60 01 add %o5, 1, %g3 <== NOT EXECUTED
control->free = 0;
2047f84: 82 10 20 00 clr %g1 <== NOT EXECUTED
for (e = 0; e < elements; e++)
map[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
2047f88: 85 28 a0 02 sll %g2, 2, %g2 <== NOT EXECUTED
2047f8c: c0 21 00 02 clr [ %g4 + %g2 ] <== NOT EXECUTED
elements = rtems_rfs_bitmap_elements (control->size);
control->free = 0;
for (e = 0; e < elements; e++)
2047f90: 82 00 60 01 inc %g1 <== NOT EXECUTED
2047f94: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED
2047f98: 18 bf ff fc bgu 2047f88 <rtems_rfs_bitmap_map_set_all+0x44><== NOT EXECUTED
2047f9c: 84 10 00 01 mov %g1, %g2 <== NOT EXECUTED
map[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
elements = rtems_rfs_bitmap_elements (elements);
for (e = 0; e < elements; e++)
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
2047fa0: c8 04 20 14 ld [ %l0 + 0x14 ], %g4 <== NOT EXECUTED
control->free = 0;
for (e = 0; e < elements; e++)
map[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
elements = rtems_rfs_bitmap_elements (elements);
2047fa4: 87 33 60 05 srl %o5, 5, %g3 <== NOT EXECUTED
for (e = 0; e < elements; e++)
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
2047fa8: 84 10 20 00 clr %g2 <== NOT EXECUTED
control->free = 0;
for (e = 0; e < elements; e++)
map[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
elements = rtems_rfs_bitmap_elements (elements);
2047fac: 86 00 e0 01 inc %g3 <== NOT EXECUTED
for (e = 0; e < elements; e++)
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
2047fb0: 82 10 20 00 clr %g1 <== NOT EXECUTED
2047fb4: 85 28 a0 02 sll %g2, 2, %g2 <== NOT EXECUTED
2047fb8: c0 21 00 02 clr [ %g4 + %g2 ] <== 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++)
2047fbc: 82 00 60 01 inc %g1 <== NOT EXECUTED
2047fc0: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
2047fc4: 0a bf ff fc bcs 2047fb4 <rtems_rfs_bitmap_map_set_all+0x70><== NOT EXECUTED
2047fc8: 84 10 00 01 mov %g1, %g2 <== NOT EXECUTED
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
rtems_rfs_buffer_mark_dirty (control->buffer);
2047fcc: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
2047fd0: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
2047fd4: 90 10 20 00 clr %o0 <== NOT EXECUTED
2047fd8: c4 28 40 00 stb %g2, [ %g1 ] <== NOT EXECUTED
return 0;
}
2047fdc: 81 c7 e0 08 ret <== NOT EXECUTED
2047fe0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02047fe4 <rtems_rfs_bitmap_map_test>:
int
rtems_rfs_bitmap_map_test (rtems_rfs_bitmap_control* control,
rtems_rfs_bitmap_bit bit,
bool* state)
{
2047fe4: 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);
2047fe8: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
2047fec: 7f ff ff 40 call 2047cec <rtems_rfs_bitmap_load_map> <== NOT EXECUTED
2047ff0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rc > 0)
2047ff4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2047ff8: 24 80 00 04 ble,a 2048008 <rtems_rfs_bitmap_map_test+0x24><== NOT EXECUTED
2047ffc: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
if (bit >= control->size)
return EINVAL;
index = rtems_rfs_bitmap_map_index (bit);
*state = rtems_rfs_bitmap_test (map[index], bit);
return 0;
}
2048000: 81 c7 e0 08 ret <== NOT EXECUTED
2048004: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
int index;
int rc;
rc = rtems_rfs_bitmap_load_map (control, &map);
if (rc > 0)
return rc;
if (bit >= control->size)
2048008: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
204800c: 1a bf ff fd bcc 2048000 <rtems_rfs_bitmap_map_test+0x1c> <== NOT EXECUTED
2048010: 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);
2048014: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED
2048018: 83 3e 60 05 sra %i1, 5, %g1 <== NOT EXECUTED
204801c: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
2048020: c2 00 80 01 ld [ %g2 + %g1 ], %g1 <== NOT EXECUTED
2048024: 90 10 20 00 clr %o0 <== NOT EXECUTED
2048028: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
204802c: b3 28 80 19 sll %g2, %i1, %i1 <== NOT EXECUTED
2048030: b2 0e 40 01 and %i1, %g1, %i1 <== NOT EXECUTED
2048034: 80 a0 00 19 cmp %g0, %i1 <== NOT EXECUTED
2048038: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED
204803c: c2 2e 80 00 stb %g1, [ %i2 ] <== NOT EXECUTED
return 0;
}
2048040: 81 c7 e0 08 ret <== NOT EXECUTED
2048044: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02047c9c <rtems_rfs_bitmap_mask>:
return 0;
}
rtems_rfs_bitmap_element
rtems_rfs_bitmap_mask (unsigned int size)
{
2047c9c: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
2047ca0: 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;
}
2047ca4: 81 c3 e0 08 retl <== NOT EXECUTED
2047ca8: 91 30 40 08 srl %g1, %o0, %o0 <== NOT EXECUTED
02047cac <rtems_rfs_bitmap_mask_section>:
rtems_rfs_bitmap_element
rtems_rfs_bitmap_mask_section (unsigned int start, unsigned int end)
{
2047cac: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED
rtems_rfs_bitmap_element mask = 0;
if (end > start)
2047cb0: 80 a2 40 08 cmp %o1, %o0 <== NOT EXECUTED
2047cb4: 08 80 00 06 bleu 2047ccc <rtems_rfs_bitmap_mask_section+0x20><== NOT EXECUTED
2047cb8: 90 10 20 00 clr %o0 <== NOT EXECUTED
mask = rtems_rfs_bitmap_mask (end - start) << start;
2047cbc: 92 20 40 09 sub %g1, %o1, %o1 <== NOT EXECUTED
2047cc0: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
2047cc4: 91 32 00 09 srl %o0, %o1, %o0 <== NOT EXECUTED
2047cc8: 91 2a 00 01 sll %o0, %g1, %o0 <== NOT EXECUTED
return mask;
}
2047ccc: 81 c3 e0 08 retl <== NOT EXECUTED
02047e30 <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)
{
2047e30: 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));
2047e34: 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;
2047e38: 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));
2047e3c: 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;
2047e40: 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));
2047e44: 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;
2047e48: 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));
2047e4c: 91 2a 20 02 sll %o0, 2, %o0 <== NOT EXECUTED
2047e50: 7f ff 04 84 call 2009060 <malloc> <== NOT EXECUTED
2047e54: f6 26 20 0c st %i3, [ %i0 + 0xc ] <== NOT EXECUTED
if (!control->search_bits)
2047e58: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2047e5c: 02 80 00 04 be 2047e6c <rtems_rfs_bitmap_open+0x3c> <== NOT EXECUTED
2047e60: d0 26 20 14 st %o0, [ %i0 + 0x14 ] <== NOT EXECUTED
return ENOMEM;
return rtems_rfs_bitmap_create_search (control);
2047e64: 7f ff ff b6 call 2047d3c <rtems_rfs_bitmap_create_search> <== NOT EXECUTED
2047e68: 81 e8 00 00 restore <== NOT EXECUTED
}
2047e6c: 81 c7 e0 08 ret <== NOT EXECUTED
2047e70: 91 e8 20 0c restore %g0, 0xc, %o0 <== NOT EXECUTED
0203db48 <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)
{
203db48: 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);
203db4c: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
203db50: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
203db54: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203db58: 40 00 04 6b call 203ed04 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203db5c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
if (rc > 0)
203db60: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203db64: 24 80 00 04 ble,a 203db74 <rtems_rfs_block_find_indirect+0x2c><== NOT EXECUTED
203db68: c4 06 60 08 ld [ %i1 + 8 ], %g2 <== NOT EXECUTED
*result = 0;
rc = EIO;
}
return 0;
}
203db6c: 81 c7 e0 08 ret <== NOT EXECUTED
203db70: 91 e8 00 08 restore %g0, %o0, %o0 <== 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);
203db74: 83 2e e0 02 sll %i3, 2, %g1 <== NOT EXECUTED
203db78: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
203db7c: 82 00 60 02 add %g1, 2, %g1 <== NOT EXECUTED
203db80: c6 08 80 01 ldub [ %g2 + %g1 ], %g3 <== NOT EXECUTED
203db84: b7 2e e0 02 sll %i3, 2, %i3 <== NOT EXECUTED
203db88: c2 08 80 1b ldub [ %g2 + %i3 ], %g1 <== NOT EXECUTED
203db8c: 84 00 80 1b add %g2, %i3, %g2 <== NOT EXECUTED
203db90: c8 08 a0 01 ldub [ %g2 + 1 ], %g4 <== NOT EXECUTED
203db94: da 08 a0 03 ldub [ %g2 + 3 ], %o5 <== NOT EXECUTED
203db98: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
if ((*result + 1) == 0)
*result = 0;
if (*result >= rtems_rfs_fs_blocks (fs))
203db9c: 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);
203dba0: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED
203dba4: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
203dba8: 82 13 40 01 or %o5, %g1, %g1 <== NOT EXECUTED
203dbac: 82 10 40 04 or %g1, %g4, %g1 <== NOT EXECUTED
203dbb0: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
if ((*result + 1) == 0)
203dbb4: 86 38 00 01 xnor %g0, %g1, %g3 <== NOT EXECUTED
203dbb8: 80 a0 00 03 cmp %g0, %g3 <== NOT EXECUTED
203dbbc: 86 60 20 00 subx %g0, 0, %g3 <== NOT EXECUTED
203dbc0: 82 08 40 03 and %g1, %g3, %g1 <== NOT EXECUTED
203dbc4: c2 27 00 00 st %g1, [ %i4 ] <== NOT EXECUTED
*result = 0;
if (*result >= rtems_rfs_fs_blocks (fs))
203dbc8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203dbcc: 0a bf ff e8 bcs 203db6c <rtems_rfs_block_find_indirect+0x24><== NOT EXECUTED
203dbd0: 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;
203dbd4: c0 27 00 00 clr [ %i4 ] <== NOT EXECUTED
rc = EIO;
}
return 0;
}
203dbd8: 81 c7 e0 08 ret <== NOT EXECUTED
203dbdc: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203da94 <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)
{
203da94: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (pos == 0)
203da98: 80 96 40 1a orcc %i1, %i2, %g0 <== NOT EXECUTED
203da9c: 02 80 00 11 be 203dae0 <rtems_rfs_block_get_block_size+0x4c><== NOT EXECUTED
203daa0: 94 10 20 00 clr %o2 <== NOT EXECUTED
rtems_rfs_block_set_size_zero (size);
else
{
size->count = pos / rtems_rfs_fs_block_size (fs) + 1;
203daa4: e0 06 20 08 ld [ %i0 + 8 ], %l0 <== NOT EXECUTED
203daa8: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
203daac: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
203dab0: 40 00 91 2f call 2061f6c <__udivdi3> <== NOT EXECUTED
203dab4: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
203dab8: 92 02 60 01 inc %o1 <== NOT EXECUTED
size->offset = pos % rtems_rfs_fs_block_size (fs);
203dabc: 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;
203dac0: d2 26 c0 00 st %o1, [ %i3 ] <== NOT EXECUTED
size->offset = pos % rtems_rfs_fs_block_size (fs);
203dac4: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
203dac8: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
203dacc: 40 00 91 f9 call 20622b0 <__umoddi3> <== NOT EXECUTED
203dad0: 94 10 20 00 clr %o2 <== NOT EXECUTED
203dad4: d2 26 e0 04 st %o1, [ %i3 + 4 ] <== NOT EXECUTED
203dad8: 81 c7 e0 08 ret <== NOT EXECUTED
203dadc: 81 e8 00 00 restore <== NOT EXECUTED
*/
static inline void
rtems_rfs_block_set_size_zero (rtems_rfs_block_size* size)
{
size->count = 0;
size->offset = 0;
203dae0: 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;
203dae4: c0 26 c0 00 clr [ %i3 ] <== NOT EXECUTED
203dae8: 81 c7 e0 08 ret <== NOT EXECUTED
203daec: 81 e8 00 00 restore <== NOT EXECUTED
0203da34 <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)
{
203da34: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
bpos->bno = pos / rtems_rfs_fs_block_size (fs);
203da38: e0 06 20 08 ld [ %i0 + 8 ], %l0 <== NOT EXECUTED
203da3c: 94 10 20 00 clr %o2 <== NOT EXECUTED
203da40: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
203da44: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
203da48: 40 00 91 49 call 2061f6c <__udivdi3> <== NOT EXECUTED
203da4c: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
bpos->boff = pos % rtems_rfs_fs_block_size (fs);
203da50: 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);
203da54: d2 26 c0 00 st %o1, [ %i3 ] <== NOT EXECUTED
bpos->boff = pos % rtems_rfs_fs_block_size (fs);
203da58: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
203da5c: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
203da60: 40 00 92 14 call 20622b0 <__umoddi3> <== NOT EXECUTED
203da64: 94 10 20 00 clr %o2 <== NOT EXECUTED
203da68: d2 26 e0 04 st %o1, [ %i3 + 4 ] <== NOT EXECUTED
}
203da6c: 81 c7 e0 08 ret <== NOT EXECUTED
203da70: 81 e8 00 00 restore <== NOT EXECUTED
0203da74 <rtems_rfs_block_get_pos>:
rtems_rfs_pos
rtems_rfs_block_get_pos (rtems_rfs_file_system* fs,
rtems_rfs_block_pos* bpos)
{
203da74: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
203da78: d0 06 20 08 ld [ %i0 + 8 ], %o0 <== NOT EXECUTED
203da7c: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED
203da80: 7f ff 14 43 call 2002b8c <.umul> <== NOT EXECUTED
203da84: b0 10 20 00 clr %i0 <== NOT EXECUTED
203da88: f2 06 60 04 ld [ %i1 + 4 ], %i1 <== NOT EXECUTED
return (bpos->bno * rtems_rfs_fs_block_size (fs)) + bpos->boff;
}
203da8c: 81 c7 e0 08 ret <== NOT EXECUTED
203da90: 93 ea 00 19 restore %o0, %i1, %o1 <== NOT EXECUTED
0203daf0 <rtems_rfs_block_get_size>:
}
rtems_rfs_pos
rtems_rfs_block_get_size (rtems_rfs_file_system* fs,
rtems_rfs_block_size* size)
{
203daf0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
uint32_t offset;
uint64_t block_size;
if (size->count == 0)
203daf4: d6 06 40 00 ld [ %i1 ], %o3 <== NOT EXECUTED
203daf8: a0 10 20 00 clr %l0 <== NOT EXECUTED
203dafc: 80 a2 e0 00 cmp %o3, 0 <== NOT EXECUTED
203db00: 02 80 00 0d be 203db34 <rtems_rfs_block_get_size+0x44> <== NOT EXECUTED
203db04: a2 10 20 00 clr %l1 <== NOT EXECUTED
return 0;
if (size->offset == 0)
203db08: e0 06 60 04 ld [ %i1 + 4 ], %l0 <== NOT EXECUTED
203db0c: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
203db10: 22 80 00 0c be,a 203db40 <rtems_rfs_block_get_size+0x50> <== NOT EXECUTED
203db14: e0 06 20 08 ld [ %i0 + 8 ], %l0 <== NOT EXECUTED
203db18: d2 06 20 08 ld [ %i0 + 8 ], %o1 <== 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;
203db1c: 96 02 ff ff add %o3, -1, %o3 <== NOT EXECUTED
203db20: 90 10 20 00 clr %o0 <== NOT EXECUTED
203db24: 40 00 8e cd call 2061658 <__muldi3> <== NOT EXECUTED
203db28: 94 10 20 00 clr %o2 <== NOT EXECUTED
203db2c: a2 82 40 10 addcc %o1, %l0, %l1 <== NOT EXECUTED
203db30: a0 42 20 00 addx %o0, 0, %l0 <== NOT EXECUTED
}
203db34: b2 10 00 11 mov %l1, %i1 <== NOT EXECUTED
203db38: 81 c7 e0 08 ret <== NOT EXECUTED
203db3c: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED
uint32_t offset;
uint64_t block_size;
if (size->count == 0)
return 0;
if (size->offset == 0)
offset = rtems_rfs_fs_block_size (fs);
203db40: 10 bf ff f7 b 203db1c <rtems_rfs_block_get_size+0x2c> <== NOT EXECUTED
203db44: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
0203e6c8 <rtems_rfs_block_map_close>:
}
int
rtems_rfs_block_map_close (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map)
{
203e6c8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc = 0;
int brc;
if (map->dirty && map->inode)
203e6cc: c2 0e 40 00 ldub [ %i1 ], %g1 <== NOT EXECUTED
203e6d0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203e6d4: 02 80 00 1a be 203e73c <rtems_rfs_block_map_close+0x74> <== NOT EXECUTED
203e6d8: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
203e6dc: d2 06 60 04 ld [ %i1 + 4 ], %o1 <== NOT EXECUTED
203e6e0: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
203e6e4: 22 80 00 07 be,a 203e700 <rtems_rfs_block_map_close+0x38><== NOT EXECUTED
203e6e8: b0 10 20 00 clr %i0 <== NOT EXECUTED
{
brc = rtems_rfs_inode_load (fs, map->inode);
203e6ec: 40 00 10 51 call 2042830 <rtems_rfs_inode_load> <== NOT EXECUTED
203e6f0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (brc > 0)
203e6f4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e6f8: 04 80 00 13 ble 203e744 <rtems_rfs_block_map_close+0x7c> <== NOT EXECUTED
203e6fc: 84 10 20 00 clr %g2 <== 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);
203e700: 92 06 60 38 add %i1, 0x38, %o1 <== NOT EXECUTED
map->dirty = false;
}
}
map->inode = NULL;
203e704: c0 26 60 04 clr [ %i1 + 4 ] <== NOT EXECUTED
203e708: 40 00 01 36 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203e70c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e710: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
handle->dirty = false;
203e714: c0 2e 60 38 clrb [ %i1 + 0x38 ] <== NOT EXECUTED
handle->bnum = 0;
203e718: c0 26 60 3c clr [ %i1 + 0x3c ] <== NOT EXECUTED
handle->buffer = NULL;
203e71c: 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);
203e720: 40 00 01 30 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203e724: 92 06 60 44 add %i1, 0x44, %o1 <== NOT EXECUTED
handle->dirty = false;
handle->bnum = 0;
handle->buffer = NULL;
203e728: 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;
203e72c: c0 2e 60 44 clrb [ %i1 + 0x44 ] <== NOT EXECUTED
handle->bnum = 0;
203e730: 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;
}
203e734: 81 c7 e0 08 ret <== NOT EXECUTED
203e738: 81 e8 00 00 restore <== NOT EXECUTED
brc = rtems_rfs_inode_unload (fs, map->inode, true);
if (brc > 0)
rc = brc;
map->dirty = false;
203e73c: 10 bf ff f1 b 203e700 <rtems_rfs_block_map_close+0x38> <== NOT EXECUTED
203e740: b0 10 20 00 clr %i0 <== 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);
203e744: 82 10 20 01 mov 1, %g1 <== 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]);
203e748: c6 06 60 04 ld [ %i1 + 4 ], %g3 <== NOT EXECUTED
203e74c: 88 06 40 02 add %i1, %g2, %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);
203e750: da 00 e0 0c ld [ %g3 + 0xc ], %o5 <== NOT EXECUTED
203e754: c8 01 20 24 ld [ %g4 + 0x24 ], %g4 <== NOT EXECUTED
203e758: 9a 03 40 02 add %o5, %g2, %o5 <== NOT EXECUTED
203e75c: 99 31 20 18 srl %g4, 0x18, %o4 <== NOT EXECUTED
203e760: d8 2b 60 1c stb %o4, [ %o5 + 0x1c ] <== NOT EXECUTED
203e764: da 00 e0 0c ld [ %g3 + 0xc ], %o5 <== NOT EXECUTED
203e768: 99 31 20 10 srl %g4, 0x10, %o4 <== NOT EXECUTED
203e76c: 9a 03 40 02 add %o5, %g2, %o5 <== NOT EXECUTED
203e770: d8 2b 60 1d stb %o4, [ %o5 + 0x1d ] <== NOT EXECUTED
203e774: da 00 e0 0c ld [ %g3 + 0xc ], %o5 <== NOT EXECUTED
203e778: 99 31 20 08 srl %g4, 8, %o4 <== NOT EXECUTED
203e77c: 9a 03 40 02 add %o5, %g2, %o5 <== NOT EXECUTED
203e780: d8 2b 60 1e stb %o4, [ %o5 + 0x1e ] <== NOT EXECUTED
203e784: da 00 e0 0c ld [ %g3 + 0xc ], %o5 <== NOT EXECUTED
203e788: 9a 03 40 02 add %o5, %g2, %o5 <== NOT EXECUTED
203e78c: c8 2b 60 1f stb %g4, [ %o5 + 0x1f ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203e790: 84 00 a0 04 add %g2, 4, %g2 <== NOT EXECUTED
if (rc == 0)
{
int b;
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
203e794: 80 a0 a0 14 cmp %g2, 0x14 <== NOT EXECUTED
203e798: 12 bf ff ec bne 203e748 <rtems_rfs_block_map_close+0x80> <== NOT EXECUTED
203e79c: c2 28 e0 10 stb %g1, [ %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);
203e7a0: c6 06 60 04 ld [ %i1 + 4 ], %g3 <== NOT EXECUTED
203e7a4: c4 06 60 08 ld [ %i1 + 8 ], %g2 <== 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);
203e7a8: c8 00 e0 0c ld [ %g3 + 0xc ], %g4 <== NOT EXECUTED
203e7ac: 9b 30 a0 18 srl %g2, 0x18, %o5 <== NOT EXECUTED
203e7b0: da 29 20 0c stb %o5, [ %g4 + 0xc ] <== NOT EXECUTED
203e7b4: c8 00 e0 0c ld [ %g3 + 0xc ], %g4 <== NOT EXECUTED
203e7b8: 9b 30 a0 10 srl %g2, 0x10, %o5 <== NOT EXECUTED
203e7bc: da 29 20 0d stb %o5, [ %g4 + 0xd ] <== NOT EXECUTED
203e7c0: c8 00 e0 0c ld [ %g3 + 0xc ], %g4 <== NOT EXECUTED
203e7c4: 9b 30 a0 08 srl %g2, 8, %o5 <== NOT EXECUTED
203e7c8: da 29 20 0e stb %o5, [ %g4 + 0xe ] <== NOT EXECUTED
203e7cc: 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);
203e7d0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e7d4: c4 29 20 0f stb %g2, [ %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);
203e7d8: c8 06 60 04 ld [ %i1 + 4 ], %g4 <== NOT EXECUTED
203e7dc: c4 06 60 0c ld [ %i1 + 0xc ], %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);
203e7e0: 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);
203e7e4: c2 28 e0 10 stb %g1, [ %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);
203e7e8: 87 30 a0 08 srl %g2, 8, %g3 <== NOT EXECUTED
203e7ec: c6 2b 60 0a stb %g3, [ %o5 + 0xa ] <== NOT EXECUTED
203e7f0: 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);
203e7f4: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203e7f8: c4 28 e0 0b stb %g2, [ %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);
203e7fc: c6 06 60 04 ld [ %i1 + 4 ], %g3 <== NOT EXECUTED
203e800: c4 06 60 1c ld [ %i1 + 0x1c ], %g2 <== 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);
203e804: 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);
203e808: c2 29 20 10 stb %g1, [ %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);
203e80c: 89 30 a0 18 srl %g2, 0x18, %g4 <== NOT EXECUTED
203e810: c8 2b 60 30 stb %g4, [ %o5 + 0x30 ] <== NOT EXECUTED
203e814: c8 00 e0 0c ld [ %g3 + 0xc ], %g4 <== NOT EXECUTED
203e818: 9b 30 a0 10 srl %g2, 0x10, %o5 <== NOT EXECUTED
203e81c: da 29 20 31 stb %o5, [ %g4 + 0x31 ] <== NOT EXECUTED
203e820: c8 00 e0 0c ld [ %g3 + 0xc ], %g4 <== NOT EXECUTED
203e824: 9b 30 a0 08 srl %g2, 8, %o5 <== NOT EXECUTED
203e828: da 29 20 32 stb %o5, [ %g4 + 0x32 ] <== NOT EXECUTED
203e82c: c8 00 e0 0c ld [ %g3 + 0xc ], %g4 <== NOT EXECUTED
203e830: c4 29 20 33 stb %g2, [ %g4 + 0x33 ] <== NOT EXECUTED
rtems_rfs_inode_set_last_data_block (map->inode, map->last_data_block);
203e834: c4 06 60 04 ld [ %i1 + 4 ], %g2 <== NOT EXECUTED
203e838: 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);
203e83c: da 00 a0 0c ld [ %g2 + 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);
203e840: c2 28 e0 10 stb %g1, [ %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);
203e844: 87 31 20 18 srl %g4, 0x18, %g3 <== NOT EXECUTED
203e848: c6 2b 60 34 stb %g3, [ %o5 + 0x34 ] <== NOT EXECUTED
203e84c: c6 00 a0 0c ld [ %g2 + 0xc ], %g3 <== NOT EXECUTED
203e850: 9b 31 20 10 srl %g4, 0x10, %o5 <== NOT EXECUTED
203e854: da 28 e0 35 stb %o5, [ %g3 + 0x35 ] <== NOT EXECUTED
203e858: c6 00 a0 0c ld [ %g2 + 0xc ], %g3 <== NOT EXECUTED
203e85c: 9b 31 20 08 srl %g4, 8, %o5 <== NOT EXECUTED
203e860: da 28 e0 36 stb %o5, [ %g3 + 0x36 ] <== NOT EXECUTED
203e864: c6 00 a0 0c ld [ %g2 + 0xc ], %g3 <== NOT EXECUTED
203e868: c8 28 e0 37 stb %g4, [ %g3 + 0x37 ] <== NOT EXECUTED
brc = rtems_rfs_inode_unload (fs, map->inode, true);
203e86c: d2 06 60 04 ld [ %i1 + 4 ], %o1 <== NOT EXECUTED
203e870: 40 00 0f b4 call 2042740 <rtems_rfs_inode_unload> <== NOT EXECUTED
203e874: c2 28 a0 10 stb %g1, [ %g2 + 0x10 ] <== NOT EXECUTED
if (brc > 0)
rc = brc;
map->dirty = false;
203e878: 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);
203e87c: 82 38 00 08 xnor %g0, %o0, %g1 <== NOT EXECUTED
203e880: 83 38 60 1f sra %g1, 0x1f, %g1 <== NOT EXECUTED
203e884: 10 bf ff 9f b 203e700 <rtems_rfs_block_map_close+0x38> <== NOT EXECUTED
203e888: b0 0a 00 01 and %o0, %g1, %i0 <== NOT EXECUTED
0203dbe0 <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)
{
203dbe0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int rc = 0;
*block = 0;
203dbe4: 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))
203dbe8: e4 06 80 00 ld [ %i2 ], %l2 <== NOT EXECUTED
203dbec: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
203dbf0: 12 80 00 1c bne 203dc60 <rtems_rfs_block_map_find+0x80> <== NOT EXECUTED
203dbf4: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
203dbf8: e6 06 60 08 ld [ %i1 + 8 ], %l3 <== NOT EXECUTED
203dbfc: 80 a4 80 13 cmp %l2, %l3 <== NOT EXECUTED
203dc00: 3a 80 00 54 bcc,a 203dd50 <rtems_rfs_block_map_find+0x170><== NOT EXECUTED
203dc04: 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))
203dc08: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
203dc0c: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED
203dc10: 22 80 00 3f be,a 203dd0c <rtems_rfs_block_map_find+0x12c><== NOT EXECUTED
203dc14: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== 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)
203dc18: 80 a4 e0 05 cmp %l3, 5 <== NOT EXECUTED
203dc1c: 38 80 00 17 bgu,a 203dc78 <rtems_rfs_block_map_find+0x98><== NOT EXECUTED
203dc20: e8 04 20 30 ld [ %l0 + 0x30 ], %l4 <== NOT EXECUTED
{
*block = map->blocks[bpos->bno];
203dc24: a4 04 a0 08 add %l2, 8, %l2 <== NOT EXECUTED
203dc28: a5 2c a0 02 sll %l2, 2, %l2 <== NOT EXECUTED
203dc2c: a4 06 40 12 add %i1, %l2, %l2 <== NOT EXECUTED
203dc30: c2 04 a0 04 ld [ %l2 + 4 ], %g1 <== NOT EXECUTED
203dc34: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED
}
}
if (rc == 0)
{
rtems_rfs_block_copy_bpos (&map->bpos, bpos);
203dc38: c6 06 a0 08 ld [ %i2 + 8 ], %g3 <== NOT EXECUTED
203dc3c: c2 06 a0 04 ld [ %i2 + 4 ], %g1 <== NOT EXECUTED
203dc40: c4 06 80 00 ld [ %i2 ], %g2 <== NOT EXECUTED
203dc44: c6 26 60 18 st %g3, [ %i1 + 0x18 ] <== NOT EXECUTED
203dc48: c4 26 60 10 st %g2, [ %i1 + 0x10 ] <== NOT EXECUTED
203dc4c: c2 26 60 14 st %g1, [ %i1 + 0x14 ] <== NOT EXECUTED
map->bpos.block = *block;
203dc50: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
203dc54: c2 26 60 18 st %g1, [ %i1 + 0x18 ] <== NOT EXECUTED
203dc58: 81 c7 e0 08 ret <== NOT EXECUTED
203dc5c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
*block = 0;
/*
* Range checking here makes the remaining logic simpler.
*/
if (rtems_rfs_block_pos_block_past_end (bpos, &map->size))
203dc60: e6 06 60 08 ld [ %i1 + 8 ], %l3 <== NOT EXECUTED
203dc64: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
203dc68: 12 bf ff e6 bne 203dc00 <rtems_rfs_block_map_find+0x20> <== NOT EXECUTED
203dc6c: 80 a4 80 13 cmp %l2, %l3 <== NOT EXECUTED
rtems_rfs_block_copy_bpos (&map->bpos, bpos);
map->bpos.block = *block;
}
return rc;
}
203dc70: 81 c7 e0 08 ret <== NOT EXECUTED
203dc74: 91 e8 20 06 restore %g0, 6, %o0 <== 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;
203dc78: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
203dc7c: 40 00 8d cb call 20613a8 <.urem> <== NOT EXECUTED
203dc80: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
singly = bpos->bno / fs->blocks_per_block;
203dc84: 92 10 00 14 mov %l4, %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;
203dc88: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
singly = bpos->bno / fs->blocks_per_block;
203dc8c: 40 00 8d 1b call 20610f8 <.udiv> <== NOT EXECUTED
203dc90: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
if (map->size.count <= fs->block_map_singly_blocks)
203dc94: 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;
203dc98: d0 27 bf fc st %o0, [ %fp + -4 ] <== NOT EXECUTED
if (map->size.count <= fs->block_map_singly_blocks)
203dc9c: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED
203dca0: 08 80 00 20 bleu 203dd20 <rtems_rfs_block_map_find+0x140> <== NOT EXECUTED
203dca4: aa 10 00 08 mov %o0, %l5 <== 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)
203dca8: c2 04 20 38 ld [ %l0 + 0x38 ], %g1 <== NOT EXECUTED
203dcac: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED
203dcb0: 1a 80 00 28 bcc 203dd50 <rtems_rfs_block_map_find+0x170> <== NOT EXECUTED
203dcb4: 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;
203dcb8: 40 00 8d bc call 20613a8 <.urem> <== NOT EXECUTED
203dcbc: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
if (map->size.count < fs->block_map_doubly_blocks)
{
rc = rtems_rfs_block_find_indirect (fs,
203dcc0: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
* The map is doubly indirect.
*/
rtems_rfs_block_no doubly;
doubly = singly / fs->blocks_per_block;
singly %= fs->blocks_per_block;
203dcc4: 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,
203dcc8: 40 00 8d 0c call 20610f8 <.udiv> <== NOT EXECUTED
203dccc: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
203dcd0: 82 02 20 08 add %o0, 8, %g1 <== NOT EXECUTED
203dcd4: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
203dcd8: 82 06 40 01 add %i1, %g1, %g1 <== NOT EXECUTED
203dcdc: d4 00 60 04 ld [ %g1 + 4 ], %o2 <== NOT EXECUTED
203dce0: 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;
203dce4: 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,
203dce8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203dcec: 92 06 60 44 add %i1, 0x44, %o1 <== NOT EXECUTED
203dcf0: 7f ff ff 96 call 203db48 <rtems_rfs_block_find_indirect> <== NOT EXECUTED
203dcf4: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
&map->doubly_buffer,
map->blocks[doubly],
singly, &singly);
if (rc == 0)
203dcf8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203dcfc: 12 80 00 15 bne 203dd50 <rtems_rfs_block_map_find+0x170> <== NOT EXECUTED
203dd00: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
{
rc = rtems_rfs_block_find_indirect (fs,
203dd04: 10 80 00 0c b 203dd34 <rtems_rfs_block_map_find+0x154> <== NOT EXECUTED
203dd08: 90 10 00 10 mov %l0, %o0 <== 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))
203dd0c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203dd10: 02 bf ff c3 be 203dc1c <rtems_rfs_block_map_find+0x3c> <== NOT EXECUTED
203dd14: 80 a4 e0 05 cmp %l3, 5 <== NOT EXECUTED
* 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)
{
*block = map->blocks[bpos->bno];
203dd18: 10 bf ff c8 b 203dc38 <rtems_rfs_block_map_find+0x58> <== NOT EXECUTED
203dd1c: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED
{
/*
* This is a single indirect table of blocks anchored off a slot in the
* inode.
*/
rc = rtems_rfs_block_find_indirect (fs,
203dd20: 82 02 20 08 add %o0, 8, %g1 <== NOT EXECUTED
203dd24: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
203dd28: 82 06 40 01 add %i1, %g1, %g1 <== NOT EXECUTED
203dd2c: d4 00 60 04 ld [ %g1 + 4 ], %o2 <== NOT EXECUTED
&map->doubly_buffer,
map->blocks[doubly],
singly, &singly);
if (rc == 0)
{
rc = rtems_rfs_block_find_indirect (fs,
203dd30: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203dd34: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
203dd38: 92 06 60 38 add %i1, 0x38, %o1 <== NOT EXECUTED
203dd3c: 7f ff ff 83 call 203db48 <rtems_rfs_block_find_indirect> <== NOT EXECUTED
203dd40: 98 10 00 1b mov %i3, %o4 <== NOT EXECUTED
}
}
}
}
if (rc == 0)
203dd44: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203dd48: 22 bf ff bd be,a 203dc3c <rtems_rfs_block_map_find+0x5c> <== NOT EXECUTED
203dd4c: c6 06 a0 08 ld [ %i2 + 8 ], %g3 <== NOT EXECUTED
rtems_rfs_block_copy_bpos (&map->bpos, bpos);
map->bpos.block = *block;
}
return rc;
}
203dd50: 81 c7 e0 08 ret <== NOT EXECUTED
203dd54: 81 e8 00 00 restore <== NOT EXECUTED
0203e1e0 <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);
203e1e0: d4 02 60 08 ld [ %o1 + 8 ], %o2 <== NOT EXECUTED
203e1e4: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
203e1e8: 7f ff ff 30 call 203dea8 <rtems_rfs_block_map_shrink> <== NOT EXECUTED
203e1ec: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
0203e310 <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)
{
203e310: 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))
203e314: c2 06 20 38 ld [ %i0 + 0x38 ], %g1 <== NOT EXECUTED
203e318: 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)
{
203e31c: 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))
203e320: 84 06 80 02 add %i2, %g2, %g2 <== NOT EXECUTED
203e324: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203e328: 1a 80 00 e0 bcc 203e6a8 <rtems_rfs_block_map_grow+0x398> <== NOT EXECUTED
203e32c: b0 10 20 1b mov 0x1b, %i0 <== 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++)
203e330: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
203e334: 02 80 00 c3 be 203e640 <rtems_rfs_block_map_grow+0x330> <== NOT EXECUTED
203e338: ae 06 60 38 add %i1, 0x38, %l7 <== NOT EXECUTED
203e33c: d2 06 60 20 ld [ %i1 + 0x20 ], %o1 <== NOT EXECUTED
return rc;
}
}
else
{
rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
203e340: ba 06 60 44 add %i1, 0x44, %i5 <== NOT EXECUTED
203e344: a2 10 20 00 clr %l1 <== NOT EXECUTED
203e348: a8 07 bf fc add %fp, -4, %l4 <== NOT EXECUTED
return rc;
}
}
}
rtems_rfs_block_set_number (&map->singly_buffer, direct, block);
203e34c: a6 10 20 01 mov 1, %l3 <== 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,
203e350: 10 80 00 13 b 203e39c <rtems_rfs_block_map_grow+0x8c> <== NOT EXECUTED
203e354: b8 07 bf f8 add %fp, -8, %i4 <== NOT EXECUTED
false, &block);
if (rc > 0)
return rc;
if (map->size.count < RTEMS_RFS_INODE_BLOCKS)
map->blocks[map->size.count] = block;
203e358: 82 05 60 08 add %l5, 8, %g1 <== NOT EXECUTED
203e35c: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
203e360: 82 06 40 01 add %i1, %g1, %g1 <== NOT EXECUTED
203e364: d2 20 60 04 st %o1, [ %g1 + 4 ] <== NOT EXECUTED
203e368: 82 10 00 09 mov %o1, %g1 <== NOT EXECUTED
}
rtems_rfs_block_set_number (&map->singly_buffer, direct, block);
}
map->size.count++;
203e36c: aa 05 60 01 inc %l5 <== NOT EXECUTED
map->size.offset = 0;
203e370: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED
if (b == 0)
203e374: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
203e378: 12 80 00 04 bne 203e388 <rtems_rfs_block_map_grow+0x78> <== NOT EXECUTED
203e37c: ea 26 60 08 st %l5, [ %i1 + 8 ] <== NOT EXECUTED
*new_block = block;
203e380: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED
203e384: 92 10 00 01 mov %g1, %o1 <== NOT EXECUTED
map->last_data_block = block;
203e388: 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++)
203e38c: a2 04 60 01 inc %l1 <== NOT EXECUTED
203e390: 80 a6 80 11 cmp %i2, %l1 <== NOT EXECUTED
203e394: 08 80 00 ab bleu 203e640 <rtems_rfs_block_map_grow+0x330> <== NOT EXECUTED
203e398: e6 2e 40 00 stb %l3, [ %i1 ] <== 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,
203e39c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e3a0: 94 10 20 00 clr %o2 <== NOT EXECUTED
203e3a4: 40 00 0f 70 call 2042164 <rtems_rfs_group_bitmap_alloc> <== NOT EXECUTED
203e3a8: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
false, &block);
if (rc > 0)
203e3ac: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e3b0: 14 80 00 c4 bg 203e6c0 <rtems_rfs_block_map_grow+0x3b0> <== NOT EXECUTED
203e3b4: 01 00 00 00 nop <== NOT EXECUTED
return rc;
if (map->size.count < RTEMS_RFS_INODE_BLOCKS)
203e3b8: ea 06 60 08 ld [ %i1 + 8 ], %l5 <== NOT EXECUTED
203e3bc: 80 a5 60 04 cmp %l5, 4 <== NOT EXECUTED
203e3c0: 08 bf ff e6 bleu 203e358 <rtems_rfs_block_map_grow+0x48> <== NOT EXECUTED
203e3c4: d2 07 bf fc ld [ %fp + -4 ], %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;
203e3c8: f0 04 20 30 ld [ %l0 + 0x30 ], %i0 <== NOT EXECUTED
203e3cc: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
203e3d0: 40 00 8b f6 call 20613a8 <.urem> <== NOT EXECUTED
203e3d4: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
singly = map->size.count / fs->blocks_per_block;
203e3d8: 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;
203e3dc: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
singly = map->size.count / fs->blocks_per_block;
203e3e0: 40 00 8b 46 call 20610f8 <.udiv> <== NOT EXECUTED
203e3e4: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
if (map->size.count < fs->block_map_singly_blocks)
203e3e8: c4 04 20 34 ld [ %l0 + 0x34 ], %g2 <== NOT EXECUTED
203e3ec: 80 a5 40 02 cmp %l5, %g2 <== NOT EXECUTED
203e3f0: 1a 80 00 32 bcc 203e4b8 <rtems_rfs_block_map_grow+0x1a8> <== NOT EXECUTED
203e3f4: 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) ||
203e3f8: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
203e3fc: 02 80 00 06 be 203e414 <rtems_rfs_block_map_grow+0x104> <== NOT EXECUTED
203e400: 80 a4 a0 05 cmp %l2, 5 <== NOT EXECUTED
203e404: 12 80 00 91 bne 203e648 <rtems_rfs_block_map_grow+0x338> <== NOT EXECUTED
203e408: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203e40c: 32 80 00 90 bne,a 203e64c <rtems_rfs_block_map_grow+0x33c><== NOT EXECUTED
203e410: 82 00 60 08 add %g1, 8, %g1 <== 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,
203e414: aa 1d 60 05 xor %l5, 5, %l5 <== NOT EXECUTED
203e418: 80 a0 00 15 cmp %g0, %l5 <== NOT EXECUTED
203e41c: 96 00 60 08 add %g1, 8, %o3 <== NOT EXECUTED
203e420: 98 60 3f ff subx %g0, -1, %o4 <== NOT EXECUTED
203e424: 97 2a e0 02 sll %o3, 2, %o3 <== NOT EXECUTED
203e428: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e42c: 96 06 40 0b add %i1, %o3, %o3 <== NOT EXECUTED
203e430: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203e434: 96 02 e0 04 add %o3, 4, %o3 <== NOT EXECUTED
203e438: 7f ff ff 6f call 203e1f4 <rtems_rfs_block_map_indirect_alloc><== NOT EXECUTED
203e43c: 94 10 00 17 mov %l7, %o2 <== NOT EXECUTED
203e440: b0 10 00 08 mov %o0, %i0 <== 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)
203e444: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
203e448: 34 80 00 9b bg,a 203e6b4 <rtems_rfs_block_map_grow+0x3a4><== NOT EXECUTED
203e44c: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
return rc;
}
}
}
rtems_rfs_block_set_number (&map->singly_buffer, direct, block);
203e450: c2 06 60 40 ld [ %i1 + 0x40 ], %g1 <== NOT EXECUTED
203e454: c6 0f bf fc ldub [ %fp + -4 ], %g3 <== NOT EXECUTED
203e458: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 <== NOT EXECUTED
203e45c: 83 2c a0 02 sll %l2, 2, %g1 <== NOT EXECUTED
203e460: c6 28 80 01 stb %g3, [ %g2 + %g1 ] <== NOT EXECUTED
203e464: c4 06 60 40 ld [ %i1 + 0x40 ], %g2 <== NOT EXECUTED
203e468: c6 17 bf fc lduh [ %fp + -4 ], %g3 <== NOT EXECUTED
203e46c: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
203e470: a4 00 60 02 add %g1, 2, %l2 <== NOT EXECUTED
203e474: 84 00 80 01 add %g2, %g1, %g2 <== NOT EXECUTED
203e478: c6 28 a0 01 stb %g3, [ %g2 + 1 ] <== NOT EXECUTED
203e47c: c4 06 60 40 ld [ %i1 + 0x40 ], %g2 <== NOT EXECUTED
203e480: c6 07 bf fc ld [ %fp + -4 ], %g3 <== NOT EXECUTED
203e484: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
203e488: 87 30 e0 08 srl %g3, 8, %g3 <== NOT EXECUTED
203e48c: c6 28 80 12 stb %g3, [ %g2 + %l2 ] <== NOT EXECUTED
203e490: c4 06 60 40 ld [ %i1 + 0x40 ], %g2 <== NOT EXECUTED
203e494: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
203e498: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
203e49c: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED
203e4a0: c4 28 60 03 stb %g2, [ %g1 + 3 ] <== NOT EXECUTED
203e4a4: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203e4a8: ea 06 60 08 ld [ %i1 + 8 ], %l5 <== NOT EXECUTED
203e4ac: e6 2e 60 38 stb %l3, [ %i1 + 0x38 ] <== NOT EXECUTED
203e4b0: 10 bf ff af b 203e36c <rtems_rfs_block_map_grow+0x5c> <== NOT EXECUTED
203e4b4: 92 10 00 01 mov %g1, %o1 <== 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;
203e4b8: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
203e4bc: 40 00 8b 0f call 20610f8 <.udiv> <== NOT EXECUTED
203e4c0: d0 27 bf f4 st %o0, [ %fp + -12 ] <== NOT EXECUTED
singly %= fs->blocks_per_block;
203e4c4: 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;
203e4c8: ac 10 00 08 mov %o0, %l6 <== NOT EXECUTED
singly %= fs->blocks_per_block;
203e4cc: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
203e4d0: 40 00 8b b6 call 20613a8 <.urem> <== NOT EXECUTED
203e4d4: 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)
203e4d8: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
203e4dc: 12 80 00 38 bne 203e5bc <rtems_rfs_block_map_grow+0x2ac> <== NOT EXECUTED
203e4e0: aa 10 00 08 mov %o0, %l5 <== NOT EXECUTED
{
rc = rtems_rfs_block_map_indirect_alloc (fs, map,
203e4e4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e4e8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203e4ec: 94 10 00 17 mov %l7, %o2 <== NOT EXECUTED
203e4f0: 96 10 00 1c mov %i4, %o3 <== NOT EXECUTED
203e4f4: 7f ff ff 40 call 203e1f4 <rtems_rfs_block_map_indirect_alloc><== NOT EXECUTED
203e4f8: 98 10 20 00 clr %o4 <== NOT EXECUTED
&map->singly_buffer,
&singly_block,
false);
if (rc > 0)
203e4fc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e500: 14 80 00 6c bg 203e6b0 <rtems_rfs_block_map_grow+0x3a0> <== NOT EXECUTED
203e504: 80 a5 60 00 cmp %l5, 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) ||
203e508: 02 80 00 06 be 203e520 <rtems_rfs_block_map_grow+0x210> <== NOT EXECUTED
203e50c: 80 a5 60 05 cmp %l5, 5 <== NOT EXECUTED
203e510: 12 80 00 53 bne 203e65c <rtems_rfs_block_map_grow+0x34c> <== NOT EXECUTED
203e514: 80 a5 a0 00 cmp %l6, 0 <== NOT EXECUTED
203e518: 12 80 00 52 bne 203e660 <rtems_rfs_block_map_grow+0x350> <== NOT EXECUTED
203e51c: 82 05 a0 08 add %l6, 8, %g1 <== 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,
203e520: c4 06 60 08 ld [ %i1 + 8 ], %g2 <== NOT EXECUTED
203e524: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 <== NOT EXECUTED
203e528: 96 05 a0 08 add %l6, 8, %o3 <== NOT EXECUTED
203e52c: 82 18 80 01 xor %g2, %g1, %g1 <== NOT EXECUTED
203e530: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
203e534: 97 2a e0 02 sll %o3, 2, %o3 <== NOT EXECUTED
203e538: 98 60 3f ff subx %g0, -1, %o4 <== NOT EXECUTED
203e53c: 96 06 40 0b add %i1, %o3, %o3 <== NOT EXECUTED
203e540: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e544: 96 02 e0 04 add %o3, 4, %o3 <== NOT EXECUTED
203e548: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203e54c: 7f ff ff 2a call 203e1f4 <rtems_rfs_block_map_indirect_alloc><== NOT EXECUTED
203e550: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
&map->doubly_buffer,
&map->blocks[doubly],
upping);
if (rc > 0)
203e554: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e558: 34 80 00 4d bg,a 203e68c <rtems_rfs_block_map_grow+0x37c><== NOT EXECUTED
203e55c: d4 07 bf f8 ld [ %fp + -8 ], %o2 <== NOT EXECUTED
rtems_rfs_group_bitmap_free (fs, false, block);
return rc;
}
}
rtems_rfs_block_set_number (&map->doubly_buffer,
203e560: c2 06 60 4c ld [ %i1 + 0x4c ], %g1 <== NOT EXECUTED
203e564: c6 0f bf f8 ldub [ %fp + -8 ], %g3 <== NOT EXECUTED
203e568: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 <== NOT EXECUTED
203e56c: 83 2d 60 02 sll %l5, 2, %g1 <== NOT EXECUTED
203e570: c6 28 80 01 stb %g3, [ %g2 + %g1 ] <== NOT EXECUTED
203e574: c4 06 60 4c ld [ %i1 + 0x4c ], %g2 <== NOT EXECUTED
203e578: c6 17 bf f8 lduh [ %fp + -8 ], %g3 <== NOT EXECUTED
203e57c: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
203e580: aa 00 60 02 add %g1, 2, %l5 <== NOT EXECUTED
203e584: 84 00 80 01 add %g2, %g1, %g2 <== NOT EXECUTED
203e588: c6 28 a0 01 stb %g3, [ %g2 + 1 ] <== NOT EXECUTED
203e58c: c4 06 60 4c ld [ %i1 + 0x4c ], %g2 <== NOT EXECUTED
203e590: c6 07 bf f8 ld [ %fp + -8 ], %g3 <== NOT EXECUTED
203e594: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
203e598: 87 30 e0 08 srl %g3, 8, %g3 <== NOT EXECUTED
203e59c: c6 28 80 15 stb %g3, [ %g2 + %l5 ] <== NOT EXECUTED
203e5a0: c4 06 60 4c ld [ %i1 + 0x4c ], %g2 <== NOT EXECUTED
203e5a4: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
203e5a8: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
203e5ac: c4 07 bf f8 ld [ %fp + -8 ], %g2 <== NOT EXECUTED
203e5b0: c4 28 60 03 stb %g2, [ %g1 + 3 ] <== NOT EXECUTED
203e5b4: 10 bf ff a7 b 203e450 <rtems_rfs_block_map_grow+0x140> <== NOT EXECUTED
203e5b8: e6 2e 60 44 stb %l3, [ %i1 + 0x44 ] <== NOT EXECUTED
singly,
singly_block);
}
else
{
rc = rtems_rfs_buffer_handle_request (fs,
203e5bc: ac 05 a0 08 add %l6, 8, %l6 <== NOT EXECUTED
203e5c0: ad 2d a0 02 sll %l6, 2, %l6 <== NOT EXECUTED
203e5c4: ac 06 40 16 add %i1, %l6, %l6 <== NOT EXECUTED
203e5c8: d4 05 a0 04 ld [ %l6 + 4 ], %o2 <== NOT EXECUTED
203e5cc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e5d0: 92 10 00 1d mov %i5, %o1 <== NOT EXECUTED
203e5d4: 40 00 01 cc call 203ed04 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203e5d8: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
&map->doubly_buffer,
map->blocks[doubly],
true);
if (rc > 0)
203e5dc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e5e0: 14 80 00 34 bg 203e6b0 <rtems_rfs_block_map_grow+0x3a0> <== NOT EXECUTED
203e5e4: 85 2d 60 02 sll %l5, 2, %g2 <== NOT EXECUTED
{
rtems_rfs_group_bitmap_free (fs, false, block);
return rc;
}
singly_block = rtems_rfs_block_get_number (&map->doubly_buffer,
203e5e8: c2 06 60 4c ld [ %i1 + 0x4c ], %g1 <== NOT EXECUTED
203e5ec: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
203e5f0: ab 2d 60 02 sll %l5, 2, %l5 <== NOT EXECUTED
203e5f4: 84 00 a0 02 add %g2, 2, %g2 <== NOT EXECUTED
203e5f8: d4 08 40 15 ldub [ %g1 + %l5 ], %o2 <== NOT EXECUTED
203e5fc: c4 08 40 02 ldub [ %g1 + %g2 ], %g2 <== NOT EXECUTED
203e600: 82 00 40 15 add %g1, %l5, %g1 <== NOT EXECUTED
203e604: c6 08 60 01 ldub [ %g1 + 1 ], %g3 <== NOT EXECUTED
203e608: c2 08 60 03 ldub [ %g1 + 3 ], %g1 <== NOT EXECUTED
203e60c: 95 2a a0 18 sll %o2, 0x18, %o2 <== NOT EXECUTED
203e610: 94 10 40 0a or %g1, %o2, %o2 <== NOT EXECUTED
203e614: 83 28 e0 10 sll %g3, 0x10, %g1 <== NOT EXECUTED
203e618: 94 12 80 01 or %o2, %g1, %o2 <== NOT EXECUTED
203e61c: 83 28 a0 08 sll %g2, 8, %g1 <== NOT EXECUTED
203e620: 94 12 80 01 or %o2, %g1, %o2 <== NOT EXECUTED
203e624: d4 27 bf f8 st %o2, [ %fp + -8 ] <== NOT EXECUTED
singly);
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
203e628: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e62c: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
203e630: 40 00 01 b5 call 203ed04 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203e634: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
203e638: 10 bf ff 83 b 203e444 <rtems_rfs_block_map_grow+0x134> <== NOT EXECUTED
203e63c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
map->last_data_block = block;
map->dirty = true;
}
return 0;
}
203e640: 81 c7 e0 08 ret <== NOT EXECUTED
203e644: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
&map->blocks[singly],
upping);
}
else
{
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
203e648: 82 00 60 08 add %g1, 8, %g1 <== NOT EXECUTED
203e64c: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
203e650: 82 06 40 01 add %i1, %g1, %g1 <== NOT EXECUTED
203e654: 10 bf ff f5 b 203e628 <rtems_rfs_block_map_grow+0x318> <== NOT EXECUTED
203e658: d4 00 60 04 ld [ %g1 + 4 ], %o2 <== NOT EXECUTED
return rc;
}
}
else
{
rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
203e65c: 82 05 a0 08 add %l6, 8, %g1 <== NOT EXECUTED
203e660: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
203e664: 82 06 40 01 add %i1, %g1, %g1 <== NOT EXECUTED
203e668: d4 00 60 04 ld [ %g1 + 4 ], %o2 <== NOT EXECUTED
203e66c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e670: 92 10 00 1d mov %i5, %o1 <== NOT EXECUTED
203e674: 40 00 01 a4 call 203ed04 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203e678: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
map->blocks[doubly], true);
if (rc > 0)
203e67c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e680: 24 bf ff b9 ble,a 203e564 <rtems_rfs_block_map_grow+0x254><== NOT EXECUTED
203e684: c2 06 60 4c ld [ %i1 + 0x4c ], %g1 <== NOT EXECUTED
{
rtems_rfs_group_bitmap_free (fs, false, singly_block);
203e688: d4 07 bf f8 ld [ %fp + -8 ], %o2 <== NOT EXECUTED
203e68c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e690: 40 00 0e 81 call 2042094 <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
203e694: 92 10 20 00 clr %o1 <== NOT EXECUTED
rtems_rfs_group_bitmap_free (fs, false, block);
203e698: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
203e69c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e6a0: 40 00 0e 7d call 2042094 <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
203e6a4: 92 10 20 00 clr %o1 <== NOT EXECUTED
return rc;
203e6a8: 81 c7 e0 08 ret <== NOT EXECUTED
203e6ac: 81 e8 00 00 restore <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
singly_block, true);
if (rc > 0)
{
rtems_rfs_group_bitmap_free (fs, false, block);
203e6b0: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
203e6b4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e6b8: 40 00 0e 77 call 2042094 <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
203e6bc: 92 10 20 00 clr %o1 <== NOT EXECUTED
return rc;
203e6c0: 81 c7 e0 08 ret <== NOT EXECUTED
203e6c4: 81 e8 00 00 restore <== NOT EXECUTED
0203e1f4 <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)
{
203e1f4: 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);
203e1f8: d2 06 60 1c ld [ %i1 + 0x1c ], %o1 <== NOT EXECUTED
203e1fc: 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)
{
203e200: 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);
203e204: 94 10 20 00 clr %o2 <== NOT EXECUTED
203e208: 40 00 0f d7 call 2042164 <rtems_rfs_group_bitmap_alloc> <== NOT EXECUTED
203e20c: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
if (rc > 0)
203e210: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e214: 14 80 00 0c bg 203e244 <rtems_rfs_block_map_indirect_alloc+0x50><== NOT EXECUTED
203e218: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
return rc;
rc = rtems_rfs_buffer_handle_request (fs, buffer, new_block, false);
203e21c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e220: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
203e224: 40 00 02 b8 call 203ed04 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203e228: 96 10 20 00 clr %o3 <== NOT EXECUTED
if (rc > 0)
203e22c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e230: 04 80 00 07 ble 203e24c <rtems_rfs_block_map_indirect_alloc+0x58><== NOT EXECUTED
203e234: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
{
rtems_rfs_group_bitmap_free (fs, false, new_block);
203e238: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e23c: 40 00 0f 96 call 2042094 <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
203e240: 92 10 20 00 clr %o1 <== NOT EXECUTED
return rc;
203e244: 81 c7 e0 08 ret <== NOT EXECUTED
203e248: 81 e8 00 00 restore <== NOT EXECUTED
}
memset (rtems_rfs_buffer_data (buffer), 0xff, rtems_rfs_fs_block_size (fs));
203e24c: c2 06 a0 08 ld [ %i2 + 8 ], %g1 <== NOT EXECUTED
203e250: d4 04 20 08 ld [ %l0 + 8 ], %o2 <== NOT EXECUTED
203e254: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
203e258: 40 00 38 5a call 204c3c0 <memset> <== NOT EXECUTED
203e25c: 92 10 20 ff mov 0xff, %o1 <== NOT EXECUTED
if (upping)
203e260: 80 8f 20 ff btst 0xff, %i4 <== NOT EXECUTED
203e264: 02 80 00 25 be 203e2f8 <rtems_rfs_block_map_indirect_alloc+0x104><== NOT EXECUTED
203e268: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203e26c: 84 10 00 19 mov %i1, %g2 <== NOT EXECUTED
203e270: 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]);
203e274: 9a 10 20 01 mov 1, %o5 <== NOT EXECUTED
203e278: c6 06 a0 08 ld [ %i2 + 8 ], %g3 <== NOT EXECUTED
203e27c: c8 08 a0 24 ldub [ %g2 + 0x24 ], %g4 <== NOT EXECUTED
203e280: c6 00 e0 24 ld [ %g3 + 0x24 ], %g3 <== NOT EXECUTED
203e284: c8 28 c0 01 stb %g4, [ %g3 + %g1 ] <== NOT EXECUTED
203e288: c6 06 a0 08 ld [ %i2 + 8 ], %g3 <== NOT EXECUTED
203e28c: c8 10 a0 24 lduh [ %g2 + 0x24 ], %g4 <== NOT EXECUTED
203e290: c6 00 e0 24 ld [ %g3 + 0x24 ], %g3 <== NOT EXECUTED
203e294: 86 00 c0 01 add %g3, %g1, %g3 <== NOT EXECUTED
203e298: c8 28 e0 01 stb %g4, [ %g3 + 1 ] <== NOT EXECUTED
203e29c: c6 06 a0 08 ld [ %i2 + 8 ], %g3 <== NOT EXECUTED
203e2a0: c8 00 a0 24 ld [ %g2 + 0x24 ], %g4 <== NOT EXECUTED
203e2a4: c6 00 e0 24 ld [ %g3 + 0x24 ], %g3 <== NOT EXECUTED
203e2a8: 89 31 20 08 srl %g4, 8, %g4 <== NOT EXECUTED
203e2ac: 86 00 c0 01 add %g3, %g1, %g3 <== NOT EXECUTED
203e2b0: c8 28 e0 02 stb %g4, [ %g3 + 2 ] <== NOT EXECUTED
203e2b4: c6 06 a0 08 ld [ %i2 + 8 ], %g3 <== NOT EXECUTED
203e2b8: c8 00 a0 24 ld [ %g2 + 0x24 ], %g4 <== NOT EXECUTED
203e2bc: c6 00 e0 24 ld [ %g3 + 0x24 ], %g3 <== NOT EXECUTED
203e2c0: 84 00 a0 04 add %g2, 4, %g2 <== NOT EXECUTED
203e2c4: 86 00 c0 01 add %g3, %g1, %g3 <== NOT EXECUTED
203e2c8: c8 28 e0 03 stb %g4, [ %g3 + 3 ] <== NOT EXECUTED
203e2cc: 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++)
203e2d0: 80 a0 60 14 cmp %g1, 0x14 <== NOT EXECUTED
203e2d4: 12 bf ff e9 bne 203e278 <rtems_rfs_block_map_indirect_alloc+0x84><== NOT EXECUTED
203e2d8: da 2e 80 00 stb %o5, [ %i2 ] <== NOT EXECUTED
rtems_rfs_block_set_number (buffer, b, map->blocks[b]);
memset (map->blocks, 0, sizeof (map->blocks));
203e2dc: c0 26 60 24 clr [ %i1 + 0x24 ] <== NOT EXECUTED
203e2e0: 82 06 60 24 add %i1, 0x24, %g1 <== NOT EXECUTED
203e2e4: c0 20 60 10 clr [ %g1 + 0x10 ] <== NOT EXECUTED
203e2e8: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED
203e2ec: c0 20 60 08 clr [ %g1 + 8 ] <== NOT EXECUTED
203e2f0: c0 20 60 0c clr [ %g1 + 0xc ] <== NOT EXECUTED
}
rtems_rfs_buffer_mark_dirty (buffer);
*block = new_block;
203e2f4: 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);
203e2f8: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
*block = new_block;
203e2fc: 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);
203e300: c4 2e 80 00 stb %g2, [ %i2 ] <== NOT EXECUTED
*block = new_block;
map->last_map_block = new_block;
203e304: c2 26 60 1c st %g1, [ %i1 + 0x1c ] <== NOT EXECUTED
return 0;
}
203e308: 81 c7 e0 08 ret <== NOT EXECUTED
203e30c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
0203ddf4 <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)
{
203ddf4: 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) ||
203ddf8: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED
203ddfc: 22 80 00 07 be,a 203de18 <rtems_rfs_block_map_indirect_shrink+0x24><== NOT EXECUTED
203de00: b6 06 e0 08 add %i3, 8, %i3 <== NOT EXECUTED
203de04: 80 a7 20 05 cmp %i4, 5 <== NOT EXECUTED
203de08: 02 80 00 11 be 203de4c <rtems_rfs_block_map_indirect_shrink+0x58><== NOT EXECUTED
203de0c: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
203de10: 81 c7 e0 08 ret <== NOT EXECUTED
203de14: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS)))
{
rtems_rfs_block_no block_to_free = map->blocks[indirect];
203de18: b7 2e e0 02 sll %i3, 2, %i3 <== NOT EXECUTED
203de1c: b6 06 40 1b add %i1, %i3, %i3 <== NOT EXECUTED
203de20: f8 06 e0 04 ld [ %i3 + 4 ], %i4 <== NOT EXECUTED
else
{
/*
* One less singly indirect block in the inode.
*/
map->blocks[indirect] = 0;
203de24: c0 26 e0 04 clr [ %i3 + 4 ] <== NOT EXECUTED
}
rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);
203de28: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203de2c: 92 10 20 00 clr %o1 <== NOT EXECUTED
203de30: 40 00 10 99 call 2042094 <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
203de34: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
if (rc > 0)
203de38: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203de3c: 24 80 00 02 ble,a 203de44 <rtems_rfs_block_map_indirect_shrink+0x50><== NOT EXECUTED
203de40: f8 26 60 1c st %i4, [ %i1 + 0x1c ] <== NOT EXECUTED
map->last_map_block = block_to_free;
}
return rc;
}
203de44: 81 c7 e0 08 ret <== NOT EXECUTED
203de48: 81 e8 00 00 restore <== 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) ||
203de4c: 12 bf ff f1 bne 203de10 <rtems_rfs_block_map_indirect_shrink+0x1c><== NOT EXECUTED
203de50: 84 10 20 00 clr %g2 <== NOT EXECUTED
((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS)))
{
rtems_rfs_block_no block_to_free = map->blocks[indirect];
203de54: c2 06 a0 08 ld [ %i2 + 8 ], %g1 <== NOT EXECUTED
203de58: f8 06 60 24 ld [ %i1 + 0x24 ], %i4 <== NOT EXECUTED
203de5c: 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);
203de60: c6 08 60 02 ldub [ %g1 + 2 ], %g3 <== NOT EXECUTED
203de64: d8 08 40 00 ldub [ %g1 ], %o4 <== NOT EXECUTED
203de68: c8 08 60 01 ldub [ %g1 + 1 ], %g4 <== NOT EXECUTED
203de6c: da 08 60 03 ldub [ %g1 + 3 ], %o5 <== NOT EXECUTED
203de70: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
203de74: 99 2b 20 18 sll %o4, 0x18, %o4 <== NOT EXECUTED
203de78: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
203de7c: 88 13 00 04 or %o4, %g4, %g4 <== NOT EXECUTED
203de80: 88 11 00 0d or %g4, %o5, %g4 <== NOT EXECUTED
203de84: 88 11 00 03 or %g4, %g3, %g4 <== NOT EXECUTED
203de88: 86 06 40 02 add %i1, %g2, %g3 <== NOT EXECUTED
203de8c: c8 20 e0 24 st %g4, [ %g3 + 0x24 ] <== NOT EXECUTED
203de90: 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++)
203de94: 80 a0 a0 14 cmp %g2, 0x14 <== NOT EXECUTED
203de98: 12 bf ff f2 bne 203de60 <rtems_rfs_block_map_indirect_shrink+0x6c><== NOT EXECUTED
203de9c: 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);
203dea0: 10 bf ff e3 b 203de2c <rtems_rfs_block_map_indirect_shrink+0x38><== NOT EXECUTED
203dea4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
0203dd58 <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)
{
203dd58: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED
rtems_rfs_block_pos bpos;
bpos.bno = map->bpos.bno + 1;
203dd5c: 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)
{
203dd60: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
rtems_rfs_block_pos bpos;
bpos.bno = map->bpos.bno + 1;
203dd64: 82 00 60 01 inc %g1 <== NOT EXECUTED
bpos.boff = 0;
203dd68: 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;
203dd6c: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED
bpos.boff = 0;
bpos.block = 0;
203dd70: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
return rtems_rfs_block_map_find (fs, map, &bpos, block);
203dd74: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203dd78: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
203dd7c: 7f ff ff 99 call 203dbe0 <rtems_rfs_block_map_find> <== NOT EXECUTED
203dd80: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED
}
203dd84: 81 c7 e0 08 ret <== NOT EXECUTED
203dd88: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203e88c <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)
{
203e88c: 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;
203e890: c0 2e 80 00 clrb [ %i2 ] <== NOT EXECUTED
map->inode = NULL;
203e894: 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;
203e898: c0 26 a0 08 clr [ %i2 + 8 ] <== NOT EXECUTED
size->offset = 0;
203e89c: 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;
203e8a0: c0 26 a0 10 clr [ %i2 + 0x10 ] <== NOT EXECUTED
bpos->boff = 0;
203e8a4: c0 26 a0 14 clr [ %i2 + 0x14 ] <== NOT EXECUTED
bpos->block = 0;
203e8a8: 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;
203e8ac: c0 2e a0 38 clrb [ %i2 + 0x38 ] <== NOT EXECUTED
handle->bnum = 0;
203e8b0: c0 26 a0 3c clr [ %i2 + 0x3c ] <== NOT EXECUTED
handle->buffer = NULL;
203e8b4: 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;
203e8b8: c0 2e a0 44 clrb [ %i2 + 0x44 ] <== NOT EXECUTED
handle->bnum = 0;
203e8bc: c0 26 a0 48 clr [ %i2 + 0x48 ] <== NOT EXECUTED
handle->buffer = NULL;
203e8c0: 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);
203e8c4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203e8c8: 40 00 0f da call 2042830 <rtems_rfs_inode_load> <== NOT EXECUTED
203e8cc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
if (rc > 0)
203e8d0: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203e8d4: 14 80 00 40 bg 203e9d4 <rtems_rfs_block_map_open+0x148> <== NOT EXECUTED
203e8d8: 84 10 00 1a mov %i2, %g2 <== NOT EXECUTED
/*
* Extract the block and block count data from the inode into the targets
* byte order.
*/
map->inode = inode;
203e8dc: c6 06 60 0c ld [ %i1 + 0xc ], %g3 <== NOT EXECUTED
203e8e0: f2 26 a0 04 st %i1, [ %i2 + 4 ] <== NOT EXECUTED
203e8e4: 82 00 e0 1c add %g3, 0x1c, %g1 <== 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,
203e8e8: 94 00 e0 30 add %g3, 0x30, %o2 <== 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++)
map->blocks[b] = rtems_rfs_inode_get_block (inode, b);
203e8ec: d6 08 40 00 ldub [ %g1 ], %o3 <== NOT EXECUTED
203e8f0: c8 08 60 01 ldub [ %g1 + 1 ], %g4 <== NOT EXECUTED
203e8f4: d8 08 60 03 ldub [ %g1 + 3 ], %o4 <== NOT EXECUTED
203e8f8: da 08 60 02 ldub [ %g1 + 2 ], %o5 <== NOT EXECUTED
203e8fc: 97 2a e0 18 sll %o3, 0x18, %o3 <== NOT EXECUTED
203e900: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
203e904: 9b 2b 60 08 sll %o5, 8, %o5 <== NOT EXECUTED
203e908: 88 12 c0 04 or %o3, %g4, %g4 <== NOT EXECUTED
203e90c: 88 11 00 0c or %g4, %o4, %g4 <== NOT EXECUTED
203e910: 88 11 00 0d or %g4, %o5, %g4 <== NOT EXECUTED
203e914: c8 20 a0 24 st %g4, [ %g2 + 0x24 ] <== NOT EXECUTED
203e918: 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++)
203e91c: 80 a0 40 0a cmp %g1, %o2 <== NOT EXECUTED
203e920: 12 bf ff f3 bne 203e8ec <rtems_rfs_block_map_open+0x60> <== NOT EXECUTED
203e924: 84 00 a0 04 add %g2, 4, %g2 <== NOT EXECUTED
map->blocks[b] = rtems_rfs_inode_get_block (inode, b);
map->size.count = rtems_rfs_inode_get_block_count (inode);
203e928: d8 08 e0 0c ldub [ %g3 + 0xc ], %o4 <== 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);
203e92c: 82 00 e0 0c add %g3, 0xc, %g1 <== NOT EXECUTED
203e930: da 08 60 03 ldub [ %g1 + 3 ], %o5 <== NOT EXECUTED
203e934: c4 08 60 02 ldub [ %g1 + 2 ], %g2 <== NOT EXECUTED
203e938: c8 08 60 01 ldub [ %g1 + 1 ], %g4 <== NOT EXECUTED
203e93c: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203e940: 83 2b 20 18 sll %o4, 0x18, %g1 <== NOT EXECUTED
203e944: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
203e948: 82 13 40 01 or %o5, %g1, %g1 <== NOT EXECUTED
203e94c: 82 10 40 04 or %g1, %g4, %g1 <== NOT EXECUTED
203e950: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
203e954: c2 26 a0 08 st %g1, [ %i2 + 8 ] <== NOT EXECUTED
map->size.offset = rtems_rfs_inode_get_block_offset (inode);
203e958: c4 08 e0 0b ldub [ %g3 + 0xb ], %g2 <== NOT EXECUTED
203e95c: c2 08 e0 0a ldub [ %g3 + 0xa ], %g1 <== NOT EXECUTED
203e960: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
203e964: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
203e968: c2 26 a0 0c st %g1, [ %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);
203e96c: 82 00 e0 30 add %g3, 0x30, %g1 <== NOT EXECUTED
map->last_map_block = rtems_rfs_inode_get_last_map_block (inode);
203e970: d8 08 e0 30 ldub [ %g3 + 0x30 ], %o4 <== NOT EXECUTED
203e974: c4 08 60 02 ldub [ %g1 + 2 ], %g2 <== NOT EXECUTED
203e978: da 08 60 03 ldub [ %g1 + 3 ], %o5 <== NOT EXECUTED
203e97c: c8 08 60 01 ldub [ %g1 + 1 ], %g4 <== NOT EXECUTED
203e980: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203e984: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
203e988: 83 2b 20 18 sll %o4, 0x18, %g1 <== NOT EXECUTED
203e98c: 82 13 40 01 or %o5, %g1, %g1 <== NOT EXECUTED
203e990: 82 10 40 04 or %g1, %g4, %g1 <== NOT EXECUTED
203e994: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
203e998: c2 26 a0 1c st %g1, [ %i2 + 0x1c ] <== NOT EXECUTED
map->last_data_block = rtems_rfs_inode_get_last_data_block (inode);
203e99c: c2 08 e0 34 ldub [ %g3 + 0x34 ], %g1 <== 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);
203e9a0: 86 00 e0 34 add %g3, 0x34, %g3 <== NOT EXECUTED
203e9a4: c4 08 e0 02 ldub [ %g3 + 2 ], %g2 <== NOT EXECUTED
203e9a8: c8 08 e0 03 ldub [ %g3 + 3 ], %g4 <== NOT EXECUTED
203e9ac: c6 08 e0 01 ldub [ %g3 + 1 ], %g3 <== NOT EXECUTED
203e9b0: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED
203e9b4: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
203e9b8: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
203e9bc: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203e9c0: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
203e9c4: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
203e9c8: c2 26 a0 20 st %g1, [ %i2 + 0x20 ] <== NOT EXECUTED
rc = rtems_rfs_inode_unload (fs, inode, false);
203e9cc: 40 00 0f 5d call 2042740 <rtems_rfs_inode_unload> <== NOT EXECUTED
203e9d0: 95 e8 20 00 restore %g0, 0, %o2 <== 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);
203e9d4: 92 06 a0 38 add %i2, 0x38, %o1 <== NOT EXECUTED
203e9d8: 40 00 00 82 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203e9dc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203e9e0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
handle->dirty = false;
203e9e4: c0 2e a0 38 clrb [ %i2 + 0x38 ] <== NOT EXECUTED
handle->bnum = 0;
203e9e8: c0 26 a0 3c clr [ %i2 + 0x3c ] <== NOT EXECUTED
handle->buffer = NULL;
203e9ec: 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);
203e9f0: 92 06 a0 44 add %i2, 0x44, %o1 <== NOT EXECUTED
203e9f4: 40 00 00 7b call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203e9f8: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED
handle->dirty = false;
handle->bnum = 0;
handle->buffer = NULL;
203e9fc: 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;
203ea00: c0 2e a0 44 clrb [ %i2 + 0x44 ] <== NOT EXECUTED
handle->bnum = 0;
203ea04: c0 26 a0 48 clr [ %i2 + 0x48 ] <== NOT EXECUTED
return rc;
}
203ea08: 81 c7 e0 08 ret <== NOT EXECUTED
203ea0c: 81 e8 00 00 restore <== NOT EXECUTED
0203dd8c <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)
{
203dd8c: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED
rtems_rfs_block_pos bpos;
rtems_rfs_block_copy_bpos (&bpos, &map->bpos);
203dd90: e0 06 60 14 ld [ %i1 + 0x14 ], %l0 <== NOT EXECUTED
203dd94: 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,
203dd98: d2 06 20 08 ld [ %i0 + 8 ], %o1 <== NOT EXECUTED
203dd9c: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
203dda0: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
203dda4: e0 27 bf f8 st %l0, [ %fp + -8 ] <== NOT EXECUTED
203dda8: 7f ff 13 79 call 2002b8c <.umul> <== NOT EXECUTED
203ddac: d0 27 bf f4 st %o0, [ %fp + -12 ] <== NOT EXECUTED
203ddb0: 82 02 00 10 add %o0, %l0, %g1 <== NOT EXECUTED
203ddb4: b6 86 c0 01 addcc %i3, %g1, %i3 <== NOT EXECUTED
203ddb8: a0 07 bf f4 add %fp, -12, %l0 <== NOT EXECUTED
203ddbc: b4 46 a0 00 addx %i2, 0, %i2 <== NOT EXECUTED
203ddc0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203ddc4: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
203ddc8: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
203ddcc: 7f ff ff 1a call 203da34 <rtems_rfs_block_get_bpos> <== NOT EXECUTED
203ddd0: 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)
{
203ddd4: 96 10 00 1c mov %i4, %o3 <== NOT EXECUTED
rtems_rfs_block_get_pos (fs, bpos) + offset,
bpos);
bpos->block = 0;
203ddd8: 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);
203dddc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203dde0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203dde4: 7f ff ff 7f call 203dbe0 <rtems_rfs_block_map_find> <== NOT EXECUTED
203dde8: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
}
203ddec: 81 c7 e0 08 ret <== NOT EXECUTED
203ddf0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203dea8 <rtems_rfs_block_map_shrink>:
int
rtems_rfs_block_map_shrink (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map,
size_t blocks)
{
203dea8: 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)
203deac: ec 06 60 08 ld [ %i1 + 8 ], %l6 <== NOT EXECUTED
int
rtems_rfs_block_map_shrink (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map,
size_t blocks)
{
203deb0: a0 10 00 18 mov %i0, %l0 <== 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)
203deb4: 80 a5 a0 00 cmp %l6, 0 <== NOT EXECUTED
203deb8: 02 80 00 8e be 203e0f0 <rtems_rfs_block_map_shrink+0x248> <== NOT EXECUTED
203debc: ba 10 00 16 mov %l6, %i5 <== NOT EXECUTED
return 0;
if (blocks > map->size.count)
203dec0: 80 a5 80 1a cmp %l6, %i2 <== NOT EXECUTED
203dec4: 2a 80 00 05 bcs,a 203ded8 <rtems_rfs_block_map_shrink+0x30><== NOT EXECUTED
203dec8: b4 10 00 16 mov %l6, %i2 <== NOT EXECUTED
blocks = map->size.count;
while (blocks)
203decc: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
203ded0: 22 80 00 7e be,a 203e0c8 <rtems_rfs_block_map_shrink+0x220><== NOT EXECUTED
203ded4: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== 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,
203ded8: a8 06 60 38 add %i1, 0x38, %l4 <== 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,
203dedc: aa 06 60 44 add %i1, 0x44, %l5 <== NOT EXECUTED
if (rc > 0)
return rc;
map->size.count--;
map->size.offset = 0;
map->last_data_block = block_to_free;
map->dirty = true;
203dee0: 10 80 00 15 b 203df34 <rtems_rfs_block_map_shrink+0x8c> <== NOT EXECUTED
203dee4: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED
{
/*
* We have less than RTEMS_RFS_INODE_BLOCKS so they are held in the
* inode.
*/
block_to_free = map->blocks[block];
203dee8: bb 2f 60 02 sll %i5, 2, %i5 <== NOT EXECUTED
203deec: ba 06 40 1d add %i1, %i5, %i5 <== NOT EXECUTED
203def0: e2 07 60 04 ld [ %i5 + 4 ], %l1 <== NOT EXECUTED
map->blocks[block] = 0;
203def4: c0 27 60 04 clr [ %i5 + 4 ] <== NOT EXECUTED
{
rc = EIO;
break;
}
}
rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);
203def8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203defc: 92 10 20 00 clr %o1 <== NOT EXECUTED
203df00: 40 00 10 65 call 2042094 <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
203df04: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc > 0)
203df08: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203df0c: 14 80 00 7a bg 203e0f4 <rtems_rfs_block_map_shrink+0x24c> <== NOT EXECUTED
203df10: b4 86 bf ff addcc %i2, -1, %i2 <== NOT EXECUTED
return rc;
map->size.count--;
203df14: ec 06 60 08 ld [ %i1 + 8 ], %l6 <== NOT EXECUTED
map->size.offset = 0;
map->last_data_block = block_to_free;
203df18: 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--;
203df1c: ba 05 bf ff add %l6, -1, %i5 <== NOT EXECUTED
map->size.offset = 0;
203df20: 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--;
203df24: fa 26 60 08 st %i5, [ %i1 + 8 ] <== NOT EXECUTED
map->size.offset = 0;
map->last_data_block = block_to_free;
map->dirty = true;
203df28: e6 2e 40 00 stb %l3, [ %i1 ] <== NOT EXECUTED
return 0;
if (blocks > map->size.count)
blocks = map->size.count;
while (blocks)
203df2c: 02 80 00 60 be 203e0ac <rtems_rfs_block_map_shrink+0x204> <== NOT EXECUTED
203df30: ac 10 00 1d mov %i5, %l6 <== NOT EXECUTED
{
rtems_rfs_block_no block;
rtems_rfs_block_no block_to_free;
int rc;
block = map->size.count - 1;
203df34: b8 07 7f ff add %i5, -1, %i4 <== NOT EXECUTED
if (block < RTEMS_RFS_INODE_BLOCKS)
203df38: 80 a7 20 04 cmp %i4, 4 <== NOT EXECUTED
203df3c: 28 bf ff eb bleu,a 203dee8 <rtems_rfs_block_map_shrink+0x40><== NOT EXECUTED
203df40: ba 07 60 07 add %i5, 7, %i5 <== NOT EXECUTED
* table of block numbers.
*/
rtems_rfs_block_no direct;
rtems_rfs_block_no singly;
direct = block % fs->blocks_per_block;
203df44: e2 04 20 30 ld [ %l0 + 0x30 ], %l1 <== NOT EXECUTED
203df48: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
203df4c: 40 00 8d 17 call 20613a8 <.urem> <== NOT EXECUTED
203df50: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
singly = block / fs->blocks_per_block;
203df54: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
* table of block numbers.
*/
rtems_rfs_block_no direct;
rtems_rfs_block_no singly;
direct = block % fs->blocks_per_block;
203df58: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
singly = block / fs->blocks_per_block;
203df5c: 40 00 8c 67 call 20610f8 <.udiv> <== NOT EXECUTED
203df60: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
if (block < fs->block_map_singly_blocks)
203df64: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 <== NOT EXECUTED
203df68: 80 a7 00 01 cmp %i4, %g1 <== NOT EXECUTED
203df6c: 0a 80 00 64 bcs 203e0fc <rtems_rfs_block_map_shrink+0x254><== NOT EXECUTED
203df70: ae 10 00 08 mov %o0, %l7 <== 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)
203df74: c2 04 20 38 ld [ %l0 + 0x38 ], %g1 <== NOT EXECUTED
203df78: 80 a7 00 01 cmp %i4, %g1 <== NOT EXECUTED
203df7c: 1a 80 00 4d bcc 203e0b0 <rtems_rfs_block_map_shrink+0x208><== NOT EXECUTED
203df80: 80 a7 60 00 cmp %i5, 0 <== 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;
203df84: 40 00 8c 5d call 20610f8 <.udiv> <== NOT EXECUTED
203df88: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
doubly_singly = singly % fs->blocks_per_block;
rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
203df8c: 82 02 20 08 add %o0, 8, %g1 <== NOT EXECUTED
203df90: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
203df94: 82 06 40 01 add %i1, %g1, %g1 <== NOT EXECUTED
203df98: 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;
203df9c: ba 10 00 08 mov %o0, %i5 <== NOT EXECUTED
doubly_singly = singly % fs->blocks_per_block;
rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
203dfa0: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
203dfa4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203dfa8: 40 00 03 57 call 203ed04 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203dfac: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
map->blocks[doubly], true);
if (rc > 0)
203dfb0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203dfb4: 14 80 00 50 bg 203e0f4 <rtems_rfs_block_map_shrink+0x24c> <== NOT EXECUTED
203dfb8: 92 10 00 11 mov %l1, %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;
203dfbc: 40 00 8c fb call 20613a8 <.urem> <== NOT EXECUTED
203dfc0: 90 10 00 17 mov %l7, %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,
203dfc4: c2 06 60 4c ld [ %i1 + 0x4c ], %g1 <== NOT EXECUTED
203dfc8: 85 2a 20 02 sll %o0, 2, %g2 <== NOT EXECUTED
203dfcc: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
203dfd0: 86 00 a0 02 add %g2, 2, %g3 <== NOT EXECUTED
203dfd4: ee 08 40 02 ldub [ %g1 + %g2 ], %l7 <== NOT EXECUTED
203dfd8: c6 08 40 03 ldub [ %g1 + %g3 ], %g3 <== NOT EXECUTED
203dfdc: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
203dfe0: c4 08 60 01 ldub [ %g1 + 1 ], %g2 <== NOT EXECUTED
203dfe4: c2 08 60 03 ldub [ %g1 + 3 ], %g1 <== NOT EXECUTED
203dfe8: af 2d e0 18 sll %l7, 0x18, %l7 <== NOT EXECUTED
203dfec: ae 10 40 17 or %g1, %l7, %l7 <== NOT EXECUTED
203dff0: 83 28 a0 10 sll %g2, 0x10, %g1 <== NOT EXECUTED
203dff4: ae 15 c0 01 or %l7, %g1, %l7 <== NOT EXECUTED
203dff8: 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;
203dffc: ac 10 00 08 mov %o0, %l6 <== 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,
203e000: ae 15 c0 01 or %l7, %g1, %l7 <== NOT EXECUTED
doubly_singly);
/*
* Read the singly indirect table and get the block number.
*/
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
203e004: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e008: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
203e00c: 94 10 00 17 mov %l7, %o2 <== NOT EXECUTED
203e010: 40 00 03 3d call 203ed04 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203e014: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
singly, true);
if (rc > 0)
203e018: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203e01c: 14 80 00 36 bg 203e0f4 <rtems_rfs_block_map_shrink+0x24c> <== NOT EXECUTED
203e020: 85 2c a0 02 sll %l2, 2, %g2 <== NOT EXECUTED
return rc;
block_to_free = rtems_rfs_block_get_number (&map->singly_buffer,
203e024: c2 06 60 40 ld [ %i1 + 0x40 ], %g1 <== NOT EXECUTED
203e028: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
203e02c: 86 00 a0 02 add %g2, 2, %g3 <== NOT EXECUTED
203e030: e2 08 40 02 ldub [ %g1 + %g2 ], %l1 <== NOT EXECUTED
203e034: c6 08 40 03 ldub [ %g1 + %g3 ], %g3 <== NOT EXECUTED
203e038: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
203e03c: c4 08 60 01 ldub [ %g1 + 1 ], %g2 <== NOT EXECUTED
203e040: c2 08 60 03 ldub [ %g1 + 3 ], %g1 <== NOT EXECUTED
203e044: a3 2c 60 18 sll %l1, 0x18, %l1 <== NOT EXECUTED
203e048: a2 10 40 11 or %g1, %l1, %l1 <== NOT EXECUTED
203e04c: 83 28 a0 10 sll %g2, 0x10, %g1 <== NOT EXECUTED
direct);
if (direct == 0)
203e050: 80 a4 a0 00 cmp %l2, 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,
203e054: a2 14 40 01 or %l1, %g1, %l1 <== NOT EXECUTED
203e058: 83 28 e0 08 sll %g3, 8, %g1 <== NOT EXECUTED
direct);
if (direct == 0)
203e05c: 12 bf ff a7 bne 203def8 <rtems_rfs_block_map_shrink+0x50> <== NOT EXECUTED
203e060: a2 14 40 01 or %l1, %g1, %l1 <== NOT EXECUTED
{
rc = rtems_rfs_group_bitmap_free (fs, false, singly);
203e064: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e068: 92 10 20 00 clr %o1 <== NOT EXECUTED
203e06c: 40 00 10 0a call 2042094 <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
203e070: 94 10 00 17 mov %l7, %o2 <== NOT EXECUTED
if (rc > 0)
203e074: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203e078: 14 80 00 1f bg 203e0f4 <rtems_rfs_block_map_shrink+0x24c> <== NOT EXECUTED
203e07c: 96 10 00 1d mov %i5, %o3 <== NOT EXECUTED
return rc;
map->last_map_block = singly;
203e080: ee 26 60 1c st %l7, [ %i1 + 0x1c ] <== NOT EXECUTED
rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->doubly_buffer,
203e084: 98 10 00 16 mov %l6, %o4 <== NOT EXECUTED
203e088: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e08c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203e090: 7f ff ff 59 call 203ddf4 <rtems_rfs_block_map_indirect_shrink><== NOT EXECUTED
203e094: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED
doubly, doubly_singly);
if (rc)
203e098: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203e09c: 22 bf ff 98 be,a 203defc <rtems_rfs_block_map_shrink+0x54><== NOT EXECUTED
203e0a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
if (rtems_rfs_block_pos_past_end (&map->bpos, &map->size))
rtems_rfs_block_size_get_bpos (&map->size, &map->bpos);
return 0;
}
203e0a4: 81 c7 e0 08 ret <== NOT EXECUTED
203e0a8: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
map->last_data_block = block_to_free;
map->dirty = true;
blocks--;
}
if (map->size.count == 0)
203e0ac: 80 a7 60 00 cmp %i5, 0 <== NOT EXECUTED
203e0b0: 32 80 00 06 bne,a 203e0c8 <rtems_rfs_block_map_shrink+0x220><== NOT EXECUTED
203e0b4: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
{
map->last_map_block = 0;
203e0b8: c0 26 60 1c clr [ %i1 + 0x1c ] <== NOT EXECUTED
map->last_data_block = 0;
203e0bc: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED
203e0c0: ba 10 00 16 mov %l6, %i5 <== NOT EXECUTED
}
/*
* Keep the position inside the map.
*/
if (rtems_rfs_block_pos_past_end (&map->bpos, &map->size))
203e0c4: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
203e0c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203e0cc: 12 80 00 31 bne 203e190 <rtems_rfs_block_map_shrink+0x2e8><== NOT EXECUTED
203e0d0: 80 a7 60 00 cmp %i5, 0 <== NOT EXECUTED
203e0d4: 80 a7 40 01 cmp %i5, %g1 <== NOT EXECUTED
203e0d8: 28 80 00 31 bleu,a 203e19c <rtems_rfs_block_map_shrink+0x2f4><== NOT EXECUTED
203e0dc: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
203e0e0: 84 07 7f ff add %i5, -1, %g2 <== NOT EXECUTED
203e0e4: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203e0e8: 22 80 00 38 be,a 203e1c8 <rtems_rfs_block_map_shrink+0x320><== NOT EXECUTED
203e0ec: c4 06 60 14 ld [ %i1 + 0x14 ], %g2 <== NOT EXECUTED
rtems_rfs_block_size_get_bpos (&map->size, &map->bpos);
203e0f0: 90 10 20 00 clr %o0 <== NOT EXECUTED
return 0;
}
203e0f4: 81 c7 e0 08 ret <== NOT EXECUTED
203e0f8: 91 e8 00 08 restore %g0, %o0, %o0 <== 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,
203e0fc: 82 02 20 08 add %o0, 8, %g1 <== NOT EXECUTED
203e100: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
203e104: 82 06 40 01 add %i1, %g1, %g1 <== NOT EXECUTED
203e108: d4 00 60 04 ld [ %g1 + 4 ], %o2 <== NOT EXECUTED
203e10c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e110: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
203e114: 40 00 02 fc call 203ed04 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203e118: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
map->blocks[singly], true);
if (rc > 0)
203e11c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203e120: 14 bf ff f5 bg 203e0f4 <rtems_rfs_block_map_shrink+0x24c> <== NOT EXECUTED
203e124: 87 2c a0 02 sll %l2, 2, %g3 <== NOT EXECUTED
return rc;
block_to_free = rtems_rfs_block_get_number (&map->singly_buffer,
203e128: c2 06 60 40 ld [ %i1 + 0x40 ], %g1 <== NOT EXECUTED
203e12c: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
direct);
rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
203e130: 96 10 00 17 mov %l7, %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,
203e134: 84 00 40 03 add %g1, %g3, %g2 <== NOT EXECUTED
direct);
rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
203e138: 98 10 00 12 mov %l2, %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,
203e13c: ee 08 a0 03 ldub [ %g2 + 3 ], %l7 <== NOT EXECUTED
203e140: a4 00 e0 02 add %g3, 2, %l2 <== NOT EXECUTED
203e144: e2 08 40 03 ldub [ %g1 + %g3 ], %l1 <== NOT EXECUTED
203e148: ec 08 a0 01 ldub [ %g2 + 1 ], %l6 <== NOT EXECUTED
203e14c: e4 08 40 12 ldub [ %g1 + %l2 ], %l2 <== NOT EXECUTED
direct);
rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
203e150: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e154: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203e158: 7f ff ff 27 call 203ddf4 <rtems_rfs_block_map_indirect_shrink><== NOT EXECUTED
203e15c: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
singly, direct);
if (rc)
203e160: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203e164: 12 bf ff e4 bne 203e0f4 <rtems_rfs_block_map_shrink+0x24c><== NOT EXECUTED
203e168: ae 0d e0 ff and %l7, 0xff, %l7 <== 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,
203e16c: a3 2c 60 18 sll %l1, 0x18, %l1 <== NOT EXECUTED
203e170: ac 0d a0 ff and %l6, 0xff, %l6 <== NOT EXECUTED
203e174: a2 15 c0 11 or %l7, %l1, %l1 <== NOT EXECUTED
203e178: a4 0c a0 ff and %l2, 0xff, %l2 <== NOT EXECUTED
203e17c: ad 2d a0 10 sll %l6, 0x10, %l6 <== NOT EXECUTED
203e180: a5 2c a0 08 sll %l2, 8, %l2 <== NOT EXECUTED
203e184: a2 14 40 16 or %l1, %l6, %l1 <== NOT EXECUTED
203e188: 10 bf ff 5c b 203def8 <rtems_rfs_block_map_shrink+0x50> <== NOT EXECUTED
203e18c: a2 14 40 12 or %l1, %l2, %l1 <== NOT EXECUTED
}
/*
* Keep the position inside the map.
*/
if (rtems_rfs_block_pos_past_end (&map->bpos, &map->size))
203e190: 12 bf ff d2 bne 203e0d8 <rtems_rfs_block_map_shrink+0x230><== NOT EXECUTED
203e194: 80 a7 40 01 cmp %i5, %g1 <== NOT EXECUTED
203e198: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
rtems_rfs_block_size_get_bpos (&map->size, &map->bpos);
203e19c: fa 26 60 10 st %i5, [ %i1 + 0x10 ] <== NOT EXECUTED
203e1a0: c2 26 60 14 st %g1, [ %i1 + 0x14 ] <== NOT EXECUTED
203e1a4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203e1a8: 02 bf ff d2 be 203e0f0 <rtems_rfs_block_map_shrink+0x248> <== NOT EXECUTED
203e1ac: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED
203e1b0: ba 07 7f ff add %i5, -1, %i5 <== NOT EXECUTED
203e1b4: 90 10 20 00 clr %o0 <== NOT EXECUTED
203e1b8: fa 26 60 10 st %i5, [ %i1 + 0x10 ] <== NOT EXECUTED
return 0;
}
203e1bc: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
203e1c0: 81 c7 e0 08 ret <== NOT EXECUTED
203e1c4: 81 e8 00 00 restore <== NOT EXECUTED
}
/*
* Keep the position inside the map.
*/
if (rtems_rfs_block_pos_past_end (&map->bpos, &map->size))
203e1c8: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
203e1cc: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203e1d0: 38 bf ff f4 bgu,a 203e1a0 <rtems_rfs_block_map_shrink+0x2f8><== NOT EXECUTED
203e1d4: fa 26 60 10 st %i5, [ %i1 + 0x10 ] <== NOT EXECUTED
rtems_rfs_block_size_get_bpos (&map->size, &map->bpos);
203e1d8: 10 bf ff c7 b 203e0f4 <rtems_rfs_block_map_shrink+0x24c> <== NOT EXECUTED
203e1dc: 90 10 20 00 clr %o0 <== NOT EXECUTED
02048508 <rtems_rfs_buffer_bdbuf_release>:
}
int
rtems_rfs_buffer_bdbuf_release (rtems_rfs_buffer* buffer,
bool modified)
{
2048508: 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)
204850c: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED
2048510: 02 80 00 09 be 2048534 <rtems_rfs_buffer_bdbuf_release+0x2c><== NOT EXECUTED
2048514: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
sc = rtems_bdbuf_release_modified (buffer);
2048518: 7f fe f1 ee call 2004cd0 <rtems_bdbuf_release_modified> <== NOT EXECUTED
204851c: 01 00 00 00 nop <== NOT EXECUTED
else
sc = rtems_bdbuf_release (buffer);
if (sc != RTEMS_SUCCESSFUL)
2048520: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
2048524: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED
2048528: b0 0e 3f fb and %i0, -5, %i0 <== NOT EXECUTED
#endif
rc = EIO;
}
return rc;
}
204852c: 81 c7 e0 08 ret <== NOT EXECUTED
2048530: 91 ee 20 05 restore %i0, 5, %o0 <== NOT EXECUTED
buffer->block, modified ? "(modified)" : "");
if (modified)
sc = rtems_bdbuf_release_modified (buffer);
else
sc = rtems_bdbuf_release (buffer);
2048534: 7f fe f2 0a call 2004d5c <rtems_bdbuf_release> <== NOT EXECUTED
2048538: 01 00 00 00 nop <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
204853c: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
2048540: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED
2048544: b0 0e 3f fb and %i0, -5, %i0 <== NOT EXECUTED
#endif
rc = EIO;
}
return rc;
}
2048548: 81 c7 e0 08 ret <== NOT EXECUTED
204854c: 91 ee 20 05 restore %i0, 5, %o0 <== NOT EXECUTED
02048550 <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)
{
2048550: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_status_code sc;
int rc = 0;
if (read)
2048554: 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)
{
2048558: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
rtems_status_code sc;
int rc = 0;
if (read)
204855c: 02 80 00 0a be 2048584 <rtems_rfs_buffer_bdbuf_request+0x34><== NOT EXECUTED
2048560: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
sc = rtems_bdbuf_read (rtems_rfs_fs_device (fs), block, buffer);
2048564: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
2048568: 7f fe f6 d8 call 20060c8 <rtems_bdbuf_read> <== NOT EXECUTED
204856c: 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)
2048570: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
2048574: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED
2048578: b0 0e 3f fb and %i0, -5, %i0 <== NOT EXECUTED
#endif
rc = EIO;
}
return rc;
}
204857c: 81 c7 e0 08 ret <== NOT EXECUTED
2048580: 91 ee 20 05 restore %i0, 5, %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);
2048584: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
2048588: 7f fe f6 9b call 2005ff4 <rtems_bdbuf_get> <== NOT EXECUTED
204858c: d0 18 40 00 ldd [ %g1 ], %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2048590: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
2048594: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED
2048598: b0 0e 3f fb and %i0, -5, %i0 <== NOT EXECUTED
#endif
rc = EIO;
}
return rc;
}
204859c: 81 c7 e0 08 ret <== NOT EXECUTED
20485a0: 91 ee 20 05 restore %i0, 5, %o0 <== NOT EXECUTED
0203eb58 <rtems_rfs_buffer_close>:
return 0;
}
int
rtems_rfs_buffer_close (rtems_rfs_file_system* fs)
{
203eb58: 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));
203eb5c: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
203eb60: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203eb64: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
203eb68: 7f ff ff e6 call 203eb00 <rtems_rfs_buffer_setblksize> <== NOT EXECUTED
203eb6c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
203eb70: 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);
203eb74: 7f ff 22 32 call 200743c <rtems_disk_release> <== NOT EXECUTED
203eb78: d0 04 20 0c ld [ %l0 + 0xc ], %o0 <== NOT EXECUTED
rc, strerror (rc));
}
#endif
return rc;
}
203eb7c: 81 c7 e0 08 ret <== NOT EXECUTED
203eb80: 81 e8 00 00 restore <== NOT EXECUTED
0203ef40 <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)
{
203ef40: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_buffer_handle_release (fs, handle);
203ef44: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203ef48: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203ef4c: 7f ff ff 25 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203ef50: b0 10 20 00 clr %i0 <== NOT EXECUTED
handle->dirty = false;
handle->bnum = 0;
handle->buffer = NULL;
203ef54: 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;
203ef58: c0 2e 40 00 clrb [ %i1 ] <== NOT EXECUTED
handle->bnum = 0;
203ef5c: c0 26 60 04 clr [ %i1 + 4 ] <== NOT EXECUTED
handle->buffer = NULL;
return 0;
}
203ef60: 81 c7 e0 08 ret <== NOT EXECUTED
203ef64: 81 e8 00 00 restore <== NOT EXECUTED
0203ebe0 <rtems_rfs_buffer_handle_release>:
}
int
rtems_rfs_buffer_handle_release (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
203ebe0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc = 0;
if (rtems_rfs_buffer_handle_has_block (handle))
203ebe4: d0 06 60 08 ld [ %i1 + 8 ], %o0 <== NOT EXECUTED
203ebe8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203ebec: 02 80 00 0c be 203ec1c <rtems_rfs_buffer_handle_release+0x3c><== NOT EXECUTED
203ebf0: a0 10 20 00 clr %l0 <== 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)
203ebf4: e2 02 20 38 ld [ %o0 + 0x38 ], %l1 <== NOT EXECUTED
203ebf8: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
203ebfc: 04 80 00 05 ble 203ec10 <rtems_rfs_buffer_handle_release+0x30><== NOT EXECUTED
203ec00: 01 00 00 00 nop <== NOT EXECUTED
rtems_rfs_buffer_refs_down (handle);
203ec04: a2 04 7f ff add %l1, -1, %l1 <== NOT EXECUTED
203ec08: e2 22 20 38 st %l1, [ %o0 + 0x38 ] <== NOT EXECUTED
if (rtems_rfs_buffer_refs (handle) == 0)
203ec0c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
203ec10: 02 80 00 05 be 203ec24 <rtems_rfs_buffer_handle_release+0x44><== NOT EXECUTED
203ec14: a0 10 20 00 clr %l0 <== NOT EXECUTED
rtems_chain_append (&fs->release, rtems_rfs_buffer_link (handle));
fs->release_count++;
}
}
}
handle->buffer = NULL;
203ec18: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED
}
return rc;
}
203ec1c: 81 c7 e0 08 ret <== NOT EXECUTED
203ec20: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
203ec24: 7f ff 3d c9 call 200e348 <_Chain_Extract> <== NOT EXECUTED
203ec28: 01 00 00 00 nop <== 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--;
203ec2c: c4 06 20 4c ld [ %i0 + 0x4c ], %g2 <== NOT EXECUTED
if (rtems_rfs_fs_no_local_cache (fs))
203ec30: c2 06 00 00 ld [ %i0 ], %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--;
203ec34: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
if (rtems_rfs_fs_no_local_cache (fs))
203ec38: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
203ec3c: 12 80 00 20 bne 203ecbc <rtems_rfs_buffer_handle_release+0xdc><== NOT EXECUTED
203ec40: c4 26 20 4c st %g2, [ %i0 + 0x4c ] <== 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 +
203ec44: c4 06 20 5c ld [ %i0 + 0x5c ], %g2 <== NOT EXECUTED
203ec48: c2 06 20 6c ld [ %i0 + 0x6c ], %g1 <== NOT EXECUTED
fs->release_modified_count) >= fs->max_held_buffers)
203ec4c: c6 06 20 3c ld [ %i0 + 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 +
203ec50: 88 00 40 02 add %g1, %g2, %g4 <== NOT EXECUTED
fs->release_modified_count) >= fs->max_held_buffers)
203ec54: 80 a1 00 03 cmp %g4, %g3 <== NOT EXECUTED
203ec58: 0a 80 00 0f bcs 203ec94 <rtems_rfs_buffer_handle_release+0xb4><== NOT EXECUTED
203ec5c: a0 10 20 00 clr %l0 <== 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)
203ec60: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203ec64: 18 80 00 22 bgu 203ecec <rtems_rfs_buffer_handle_release+0x10c><== NOT EXECUTED
203ec68: 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 );
203ec6c: 7f ff 3d c1 call 200e370 <_Chain_Get> <== NOT EXECUTED
203ec70: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED
}
else
{
buffer =
(rtems_rfs_buffer*) rtems_chain_get (&fs->release_modified);
fs->release_modified_count--;
203ec74: c2 06 20 6c ld [ %i0 + 0x6c ], %g1 <== NOT EXECUTED
203ec78: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED
203ec7c: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
203ec80: c2 26 20 6c st %g1, [ %i0 + 0x6c ] <== NOT EXECUTED
modified = true;
}
buffer->user = (void*) 0;
203ec84: c0 22 20 3c clr [ %o0 + 0x3c ] <== NOT EXECUTED
rc = rtems_rfs_buffer_io_release (buffer, modified);
203ec88: 40 00 26 20 call 2048508 <rtems_rfs_buffer_bdbuf_release> <== NOT EXECUTED
203ec8c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203ec90: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
}
if (rtems_rfs_buffer_dirty (handle))
203ec94: c2 0e 40 00 ldub [ %i1 ], %g1 <== NOT EXECUTED
203ec98: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203ec9c: 02 80 00 0e be 203ecd4 <rtems_rfs_buffer_handle_release+0xf4><== NOT EXECUTED
203eca0: 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 );
203eca4: 7f ff 3d 9d call 200e318 <_Chain_Append> <== NOT EXECUTED
203eca8: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED
{
rtems_chain_append (&fs->release_modified,
rtems_rfs_buffer_link (handle));
fs->release_modified_count++;
203ecac: c2 06 20 6c ld [ %i0 + 0x6c ], %g1 <== NOT EXECUTED
203ecb0: 82 00 60 01 inc %g1 <== NOT EXECUTED
203ecb4: 10 bf ff d9 b 203ec18 <rtems_rfs_buffer_handle_release+0x38><== NOT EXECUTED
203ecb8: c2 26 20 6c st %g1, [ %i0 + 0x6c ] <== NOT EXECUTED
rtems_chain_extract (rtems_rfs_buffer_link (handle));
fs->buffers_count--;
if (rtems_rfs_fs_no_local_cache (fs))
{
handle->buffer->user = (void*) 0;
203ecbc: d0 06 60 08 ld [ %i1 + 8 ], %o0 <== NOT EXECUTED
rc = rtems_rfs_buffer_io_release (handle->buffer,
203ecc0: d2 0e 40 00 ldub [ %i1 ], %o1 <== NOT EXECUTED
203ecc4: 40 00 26 11 call 2048508 <rtems_rfs_buffer_bdbuf_release> <== NOT EXECUTED
203ecc8: c0 22 20 3c clr [ %o0 + 0x3c ] <== NOT EXECUTED
203eccc: 10 bf ff d3 b 203ec18 <rtems_rfs_buffer_handle_release+0x38><== NOT EXECUTED
203ecd0: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
203ecd4: 7f ff 3d 91 call 200e318 <_Chain_Append> <== NOT EXECUTED
203ecd8: 90 06 20 50 add %i0, 0x50, %o0 <== NOT EXECUTED
fs->release_modified_count++;
}
else
{
rtems_chain_append (&fs->release, rtems_rfs_buffer_link (handle));
fs->release_count++;
203ecdc: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 <== NOT EXECUTED
203ece0: 82 00 60 01 inc %g1 <== NOT EXECUTED
203ece4: 10 bf ff cd b 203ec18 <rtems_rfs_buffer_handle_release+0x38><== NOT EXECUTED
203ece8: c2 26 20 5c st %g1, [ %i0 + 0x5c ] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
203ecec: 7f ff 3d a1 call 200e370 <_Chain_Get> <== NOT EXECUTED
203ecf0: 90 06 20 50 add %i0, 0x50, %o0 <== NOT EXECUTED
" %" PRIu32 "\n", fs->release_count + fs->release_modified_count);
if (fs->release_count > fs->release_modified_count)
{
buffer = (rtems_rfs_buffer*) rtems_chain_get (&fs->release);
fs->release_count--;
203ecf4: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 <== NOT EXECUTED
203ecf8: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
203ecfc: 10 bf ff e2 b 203ec84 <rtems_rfs_buffer_handle_release+0xa4><== NOT EXECUTED
203ed00: c2 26 20 5c st %g1, [ %i0 + 0x5c ] <== NOT EXECUTED
0203ed04 <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)
{
203ed04: 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))
203ed08: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
203ed0c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203ed10: 02 80 00 12 be 203ed58 <rtems_rfs_buffer_handle_request+0x54><== NOT EXECUTED
203ed14: 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))
203ed18: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
203ed1c: 02 80 00 07 be 203ed38 <rtems_rfs_buffer_handle_request+0x34><== NOT EXECUTED
203ed20: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203ed24: c2 06 60 04 ld [ %i1 + 4 ], %g1 <== NOT EXECUTED
203ed28: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED
203ed2c: 02 80 00 08 be 203ed4c <rtems_rfs_buffer_handle_request+0x48><== NOT EXECUTED
203ed30: b0 10 20 00 clr %i0 <== 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);
203ed34: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203ed38: 7f ff ff aa call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203ed3c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
if (rc > 0)
203ed40: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203ed44: 24 80 00 04 ble,a 203ed54 <rtems_rfs_buffer_handle_request+0x50><== NOT EXECUTED
203ed48: c0 2e 40 00 clrb [ %i1 ] <== 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;
}
203ed4c: 81 c7 e0 08 ret <== NOT EXECUTED
203ed50: 81 e8 00 00 restore <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (fs, handle);
if (rc > 0)
return rc;
handle->dirty = false;
handle->bnum = 0;
203ed54: 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)
203ed58: c6 04 20 4c ld [ %l0 + 0x4c ], %g3 <== NOT EXECUTED
203ed5c: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
203ed60: 32 80 00 3c bne,a 203ee50 <rtems_rfs_buffer_handle_request+0x14c><== NOT EXECUTED
203ed64: e4 04 20 48 ld [ %l0 + 0x48 ], %l2 <== NOT EXECUTED
203ed68: e2 06 60 08 ld [ %i1 + 8 ], %l1 <== 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) &&
203ed6c: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
203ed70: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
203ed74: 12 80 00 33 bne 203ee40 <rtems_rfs_buffer_handle_request+0x13c><== NOT EXECUTED
203ed78: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
203ed7c: 22 80 00 11 be,a 203edc0 <rtems_rfs_buffer_handle_request+0xbc><== NOT EXECUTED
203ed80: c6 04 20 5c ld [ %l0 + 0x5c ], %g3 <== NOT EXECUTED
block);
if (!rtems_rfs_buffer_handle_has_block (handle) &&
fs->release_modified_count)
{
handle->buffer = rtems_rfs_scan_chain (&fs->release_modified,
203ed84: d2 06 60 08 ld [ %i1 + 8 ], %o1 <== NOT EXECUTED
203ed88: a2 10 00 09 mov %o1, %l1 <== NOT EXECUTED
}
/*
* Increase the reference count of the buffer.
*/
rtems_rfs_buffer_refs_up (handle);
203ed8c: c2 04 60 38 ld [ %l1 + 0x38 ], %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 );
203ed90: 90 04 20 40 add %l0, 0x40, %o0 <== NOT EXECUTED
203ed94: 82 00 60 01 inc %g1 <== NOT EXECUTED
203ed98: 7f ff 3d 60 call 200e318 <_Chain_Append> <== NOT EXECUTED
203ed9c: c2 24 60 38 st %g1, [ %l1 + 0x38 ] <== NOT EXECUTED
rtems_chain_append (&fs->buffers, rtems_rfs_buffer_link (handle));
fs->buffers_count++;
203eda0: c4 04 20 4c ld [ %l0 + 0x4c ], %g2 <== NOT EXECUTED
handle->buffer->user = (void*) ((intptr_t) block);
203eda4: 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++;
203eda8: 84 00 a0 01 inc %g2 <== NOT EXECUTED
203edac: c4 24 20 4c st %g2, [ %l0 + 0x4c ] <== NOT EXECUTED
handle->buffer->user = (void*) ((intptr_t) block);
handle->bnum = block;
203edb0: 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);
203edb4: f4 20 60 3c st %i2, [ %g1 + 0x3c ] <== 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;
}
203edb8: 81 c7 e0 08 ret <== NOT EXECUTED
203edbc: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
!rtems_rfs_buffer_handle_has_block (handle))
{
/*
* Check the local cache of released buffers.
*/
if (fs->release_count)
203edc0: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
203edc4: 32 80 00 47 bne,a 203eee0 <rtems_rfs_buffer_handle_request+0x1dc><== NOT EXECUTED
203edc8: e2 04 20 58 ld [ %l0 + 0x58 ], %l1 <== NOT EXECUTED
handle->buffer = rtems_rfs_scan_chain (&fs->release,
&fs->release_count,
block);
if (!rtems_rfs_buffer_handle_has_block (handle) &&
fs->release_modified_count)
203edcc: c6 04 20 6c ld [ %l0 + 0x6c ], %g3 <== 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) &&
203edd0: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
203edd4: 02 80 00 37 be 203eeb0 <rtems_rfs_buffer_handle_request+0x1ac><== NOT EXECUTED
203edd8: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Last(
Chain_Control *the_chain
)
{
return the_chain->last;
203eddc: e4 04 20 68 ld [ %l0 + 0x68 ], %l2 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head(
Chain_Control *the_chain
)
{
return (Chain_Node *) the_chain;
203ede0: 84 04 20 60 add %l0, 0x60, %g2 <== 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))
203ede4: 80 a4 80 02 cmp %l2, %g2 <== NOT EXECUTED
203ede8: 32 80 00 09 bne,a 203ee0c <rtems_rfs_buffer_handle_request+0x108><== NOT EXECUTED
203edec: c2 04 a0 3c ld [ %l2 + 0x3c ], %g1 <== NOT EXECUTED
block);
if (!rtems_rfs_buffer_handle_has_block (handle) &&
fs->release_modified_count)
{
handle->buffer = rtems_rfs_scan_chain (&fs->release_modified,
203edf0: 10 80 00 30 b 203eeb0 <rtems_rfs_buffer_handle_request+0x1ac><== NOT EXECUTED
203edf4: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Previous(
Chain_Node *the_node
)
{
return the_node->previous;
203edf8: e4 04 a0 04 ld [ %l2 + 4 ], %l2 <== 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))
203edfc: 80 a0 80 12 cmp %g2, %l2 <== NOT EXECUTED
203ee00: 22 80 00 2b be,a 203eeac <rtems_rfs_buffer_handle_request+0x1a8><== NOT EXECUTED
203ee04: c0 26 60 08 clr [ %i1 + 8 ] <== 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)
203ee08: c2 04 a0 3c ld [ %l2 + 0x3c ], %g1 <== NOT EXECUTED
203ee0c: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED
203ee10: 12 bf ff fa bne 203edf8 <rtems_rfs_buffer_handle_request+0xf4><== NOT EXECUTED
203ee14: a2 10 00 12 mov %l2, %l1 <== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf (": found block=%" PRIuPTR "\n",
((intptr_t)(buffer->user)));
(*count)--;
203ee18: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
203ee1c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
203ee20: 7f ff 3d 4a call 200e348 <_Chain_Extract> <== NOT EXECUTED
203ee24: c6 24 20 6c st %g3, [ %l0 + 0x6c ] <== NOT EXECUTED
block);
/*
* If we found a buffer retain the dirty buffer state.
*/
if (rtems_rfs_buffer_handle_has_block (handle))
rtems_rfs_buffer_mark_dirty (handle);
203ee28: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
block);
if (!rtems_rfs_buffer_handle_has_block (handle) &&
fs->release_modified_count)
{
handle->buffer = rtems_rfs_scan_chain (&fs->release_modified,
203ee2c: e4 26 60 08 st %l2, [ %i1 + 8 ] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(
Chain_Node *node
)
{
node->next = node->previous = NULL;
203ee30: c0 24 a0 04 clr [ %l2 + 4 ] <== NOT EXECUTED
203ee34: c0 24 80 00 clr [ %l2 ] <== NOT EXECUTED
block);
/*
* If we found a buffer retain the dirty buffer state.
*/
if (rtems_rfs_buffer_handle_has_block (handle))
rtems_rfs_buffer_mark_dirty (handle);
203ee38: 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))
203ee3c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
203ee40: 22 80 00 1c be,a 203eeb0 <rtems_rfs_buffer_handle_request+0x1ac><== NOT EXECUTED
203ee44: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
203ee48: 10 bf ff d1 b 203ed8c <rtems_rfs_buffer_handle_request+0x88><== NOT EXECUTED
203ee4c: d2 06 60 08 ld [ %i1 + 8 ], %o1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head(
Chain_Control *the_chain
)
{
return (Chain_Node *) the_chain;
203ee50: 84 04 20 40 add %l0, 0x40, %g2 <== 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))
203ee54: 80 a4 80 02 cmp %l2, %g2 <== NOT EXECUTED
203ee58: 32 80 00 0a bne,a 203ee80 <rtems_rfs_buffer_handle_request+0x17c><== NOT EXECUTED
203ee5c: c2 04 a0 3c ld [ %l2 + 0x3c ], %g1 <== NOT EXECUTED
203ee60: a2 10 20 00 clr %l1 <== NOT EXECUTED
* Check the active buffer list for shared buffers.
*/
handle->buffer = rtems_rfs_scan_chain (&fs->buffers,
&fs->buffers_count,
block);
if (rtems_rfs_buffer_handle_has_block (handle) &&
203ee64: 10 bf ff c2 b 203ed6c <rtems_rfs_buffer_handle_request+0x68><== NOT EXECUTED
203ee68: e2 26 60 08 st %l1, [ %i1 + 8 ] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Previous(
Chain_Node *the_node
)
{
return the_node->previous;
203ee6c: e4 04 a0 04 ld [ %l2 + 4 ], %l2 <== 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))
203ee70: 80 a4 80 02 cmp %l2, %g2 <== NOT EXECUTED
203ee74: 02 bf ff fc be 203ee64 <rtems_rfs_buffer_handle_request+0x160><== NOT EXECUTED
203ee78: a2 10 20 00 clr %l1 <== 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)
203ee7c: c2 04 a0 3c ld [ %l2 + 0x3c ], %g1 <== NOT EXECUTED
203ee80: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED
203ee84: 12 bf ff fa bne 203ee6c <rtems_rfs_buffer_handle_request+0x168><== NOT EXECUTED
203ee88: a2 10 00 12 mov %l2, %l1 <== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf (": found block=%" PRIuPTR "\n",
((intptr_t)(buffer->user)));
(*count)--;
203ee8c: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED
203ee90: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
203ee94: 7f ff 3d 2d call 200e348 <_Chain_Extract> <== NOT EXECUTED
203ee98: c6 24 20 4c st %g3, [ %l0 + 0x4c ] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(
Chain_Node *node
)
{
node->next = node->previous = NULL;
203ee9c: c0 24 80 00 clr [ %l2 ] <== NOT EXECUTED
203eea0: c0 24 a0 04 clr [ %l2 + 4 ] <== NOT EXECUTED
if (fs->buffers_count)
{
/*
* Check the active buffer list for shared buffers.
*/
handle->buffer = rtems_rfs_scan_chain (&fs->buffers,
203eea4: 10 bf ff b2 b 203ed6c <rtems_rfs_buffer_handle_request+0x68><== NOT EXECUTED
203eea8: e2 26 60 08 st %l1, [ %i1 + 8 ] <== NOT EXECUTED
/*
* If not located we request the buffer from the I/O layer.
*/
if (!rtems_rfs_buffer_handle_has_block (handle))
{
rc = rtems_rfs_buffer_io_request (fs, block, read, &handle->buffer);
203eeac: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
203eeb0: 94 0e e0 ff and %i3, 0xff, %o2 <== NOT EXECUTED
203eeb4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203eeb8: 40 00 25 a6 call 2048550 <rtems_rfs_buffer_bdbuf_request> <== NOT EXECUTED
203eebc: 96 06 60 08 add %i1, 8, %o3 <== NOT EXECUTED
rtems_chain_set_off_chain (rtems_rfs_buffer_link(handle));
203eec0: d2 06 60 08 ld [ %i1 + 8 ], %o1 <== NOT EXECUTED
/*
* If not located we request the buffer from the I/O layer.
*/
if (!rtems_rfs_buffer_handle_has_block (handle))
{
rc = rtems_rfs_buffer_io_request (fs, block, read, &handle->buffer);
203eec4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
203eec8: c0 22 60 04 clr [ %o1 + 4 ] <== NOT EXECUTED
rtems_chain_set_off_chain (rtems_rfs_buffer_link(handle));
if (rc > 0)
203eecc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203eed0: 14 bf ff 9f bg 203ed4c <rtems_rfs_buffer_handle_request+0x48><== NOT EXECUTED
203eed4: c0 22 40 00 clr [ %o1 ] <== NOT EXECUTED
203eed8: 10 bf ff ad b 203ed8c <rtems_rfs_buffer_handle_request+0x88><== NOT EXECUTED
203eedc: a2 10 00 09 mov %o1, %l1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head(
Chain_Control *the_chain
)
{
return (Chain_Node *) the_chain;
203eee0: 84 04 20 50 add %l0, 0x50, %g2 <== 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))
203eee4: 80 a4 40 02 cmp %l1, %g2 <== NOT EXECUTED
203eee8: 32 80 00 08 bne,a 203ef08 <rtems_rfs_buffer_handle_request+0x204><== NOT EXECUTED
203eeec: c2 04 60 3c ld [ %l1 + 0x3c ], %g1 <== NOT EXECUTED
{
/*
* Check the local cache of released buffers.
*/
if (fs->release_count)
handle->buffer = rtems_rfs_scan_chain (&fs->release,
203eef0: 10 bf ff b7 b 203edcc <rtems_rfs_buffer_handle_request+0xc8><== NOT EXECUTED
203eef4: c0 26 60 08 clr [ %i1 + 8 ] <== 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))
203eef8: 80 a4 40 02 cmp %l1, %g2 <== NOT EXECUTED
203eefc: 22 bf ff b4 be,a 203edcc <rtems_rfs_buffer_handle_request+0xc8><== NOT EXECUTED
203ef00: c0 26 60 08 clr [ %i1 + 8 ] <== 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)
203ef04: c2 04 60 3c ld [ %l1 + 0x3c ], %g1 <== NOT EXECUTED
203ef08: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED
203ef0c: 32 bf ff fb bne,a 203eef8 <rtems_rfs_buffer_handle_request+0x1f4><== NOT EXECUTED
203ef10: e2 04 60 04 ld [ %l1 + 4 ], %l1 <== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf (": found block=%" PRIuPTR "\n",
((intptr_t)(buffer->user)));
(*count)--;
203ef14: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED
203ef18: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203ef1c: 7f ff 3d 0b call 200e348 <_Chain_Extract> <== NOT EXECUTED
203ef20: c6 24 20 5c st %g3, [ %l0 + 0x5c ] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(
Chain_Node *node
)
{
node->next = node->previous = NULL;
203ef24: c0 24 60 04 clr [ %l1 + 4 ] <== NOT EXECUTED
203ef28: c0 24 40 00 clr [ %l1 ] <== 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) &&
203ef2c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
203ef30: 12 bf ff 95 bne 203ed84 <rtems_rfs_buffer_handle_request+0x80><== NOT EXECUTED
203ef34: e2 26 60 08 st %l1, [ %i1 + 8 ] <== NOT EXECUTED
fs->release_modified_count)
203ef38: 10 bf ff a6 b 203edd0 <rtems_rfs_buffer_handle_request+0xcc><== NOT EXECUTED
203ef3c: c6 04 20 6c ld [ %l0 + 0x6c ], %g3 <== NOT EXECUTED
0203eb84 <rtems_rfs_buffer_open>:
return rc;
}
int
rtems_rfs_buffer_open (const char* name, rtems_rfs_file_system* fs)
{
203eb84: 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)
203eb88: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203eb8c: 92 07 bf b8 add %fp, -72, %o1 <== NOT EXECUTED
203eb90: 7f ff 2e 04 call 200a3a0 <stat> <== NOT EXECUTED
203eb94: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
203eb98: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203eb9c: 06 80 00 0f bl 203ebd8 <rtems_rfs_buffer_open+0x54> <== NOT EXECUTED
203eba0: 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))
203eba4: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
203eba8: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED
203ebac: 03 00 00 18 sethi %hi(0x6000), %g1 <== NOT EXECUTED
203ebb0: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203ebb4: 02 80 00 04 be 203ebc4 <rtems_rfs_buffer_open+0x40> <== NOT EXECUTED
203ebb8: d0 1f bf d0 ldd [ %fp + -48 ], %o0 <== 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;
}
203ebbc: 81 c7 e0 08 ret <== NOT EXECUTED
203ebc0: 91 e8 20 05 restore %g0, 5, %o0 <== NOT EXECUTED
}
/*
* Check that device is registred as a block device and lock it.
*/
fs->disk = rtems_disk_obtain (st.st_rdev);
203ebc4: 7f ff 22 33 call 2007490 <rtems_disk_obtain> <== NOT EXECUTED
203ebc8: b0 10 20 00 clr %i0 <== NOT EXECUTED
if (!fs->disk)
203ebcc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203ebd0: 02 bf ff fb be 203ebbc <rtems_rfs_buffer_open+0x38> <== NOT EXECUTED
203ebd4: d0 26 60 0c st %o0, [ %i1 + 0xc ] <== 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;
}
203ebd8: 81 c7 e0 08 ret <== NOT EXECUTED
203ebdc: 81 e8 00 00 restore <== NOT EXECUTED
0203eb00 <rtems_rfs_buffer_setblksize>:
int
rtems_rfs_buffer_setblksize (rtems_rfs_file_system* fs, size_t size)
{
203eb00: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
203eb04: 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);
203eb08: 7f ff ff df call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
203eb0c: 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);
203eb10: 7f ff ff f0 call 203ead0 <rtems_rfs_buffer_sync> <== NOT EXECUTED
203eb14: 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);
203eb18: d0 06 20 0c ld [ %i0 + 0xc ], %o0 <== NOT EXECUTED
203eb1c: 13 20 01 10 sethi %hi(0x80044000), %o1 <== NOT EXECUTED
203eb20: c2 02 20 28 ld [ %o0 + 0x28 ], %g1 <== NOT EXECUTED
203eb24: 92 12 62 04 or %o1, 0x204, %o1 <== NOT EXECUTED
203eb28: 9f c0 40 00 call %g1 <== NOT EXECUTED
203eb2c: 94 07 a0 48 add %fp, 0x48, %o2 <== NOT EXECUTED
if (rc < 0)
203eb30: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203eb34: 06 80 00 04 bl 203eb44 <rtems_rfs_buffer_setblksize+0x44> <== NOT EXECUTED
203eb38: 01 00 00 00 nop <== NOT EXECUTED
rc = errno;
#endif
return rc;
}
203eb3c: 81 c7 e0 08 ret <== NOT EXECUTED
203eb40: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
rc, strerror (rc));
#if RTEMS_RFS_USE_LIBBLOCK
rc = fs->disk->ioctl (fs->disk, RTEMS_BLKIO_SETBLKSIZE, &size);
if (rc < 0)
rc = errno;
203eb44: 40 00 28 40 call 2048c44 <__errno> <== NOT EXECUTED
203eb48: 01 00 00 00 nop <== NOT EXECUTED
203eb4c: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED
#endif
return rc;
}
203eb50: 81 c7 e0 08 ret <== NOT EXECUTED
203eb54: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203ead0 <rtems_rfs_buffer_sync>:
return rc;
}
int
rtems_rfs_buffer_sync (rtems_rfs_file_system* fs)
{
203ead0: 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));
203ead4: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
203ead8: 7f ff 15 c0 call 20041d8 <rtems_bdbuf_syncdev> <== NOT EXECUTED
203eadc: d0 18 40 00 ldd [ %g1 ], %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
203eae0: 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);
203eae4: 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)
203eae8: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED
203eaec: 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);
203eaf0: 7f ff 22 53 call 200743c <rtems_disk_release> <== NOT EXECUTED
203eaf4: 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;
}
203eaf8: 81 c7 e0 08 ret <== NOT EXECUTED
203eafc: 81 e8 00 00 restore <== NOT EXECUTED
0203ea84 <rtems_rfs_buffers_release>:
int
rtems_rfs_buffers_release (rtems_rfs_file_system* fs)
{
203ea84: 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,
203ea88: 94 10 20 00 clr %o2 <== NOT EXECUTED
203ea8c: 92 06 20 5c add %i0, 0x5c, %o1 <== NOT EXECUTED
203ea90: 7f ff ff e0 call 203ea10 <rtems_rfs_release_chain> <== NOT EXECUTED
203ea94: 90 06 20 50 add %i0, 0x50, %o0 <== NOT EXECUTED
203ea98: 82 38 00 08 xnor %g0, %o0, %g1 <== NOT EXECUTED
203ea9c: 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,
203eaa0: 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,
203eaa4: 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,
203eaa8: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203eaac: 7f ff ff d9 call 203ea10 <rtems_rfs_release_chain> <== NOT EXECUTED
203eab0: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED
&fs->release_modified_count,
true);
if ((rc > 0) && (rrc == 0))
203eab4: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
203eab8: 12 80 00 04 bne 203eac8 <rtems_rfs_buffers_release+0x44> <== NOT EXECUTED
203eabc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203eac0: 34 80 00 02 bg,a 203eac8 <rtems_rfs_buffers_release+0x44><== NOT EXECUTED
203eac4: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
rrc = rc;
return rrc;
}
203eac8: 81 c7 e0 08 ret <== NOT EXECUTED
203eacc: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED
0203f574 <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)
{
203f574: 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);
203f578: 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)
{
203f57c: 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);
203f580: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203f584: a2 07 bf 94 add %fp, -108, %l1 <== NOT EXECUTED
203f588: 7f ff fc c1 call 203e88c <rtems_rfs_block_map_open> <== NOT EXECUTED
203f58c: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc > 0)
203f590: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203f594: 14 80 00 87 bg 203f7b0 <rtems_rfs_dir_add_entry+0x23c> <== NOT EXECUTED
203f598: 2d 00 00 3f sethi %hi(0xfc00), %l6 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
203f59c: c0 2f bf e4 clrb [ %fp + -28 ] <== NOT EXECUTED
handle->bnum = 0;
203f5a0: c0 27 bf e8 clr [ %fp + -24 ] <== NOT EXECUTED
handle->buffer = NULL;
203f5a4: 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;
203f5a8: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
bpos->boff = 0;
203f5ac: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
bpos->block = 0;
203f5b0: 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)
203f5b4: ac 15 a3 ff or %l6, 0x3ff, %l6 <== NOT EXECUTED
203f5b8: aa 07 bf f0 add %fp, -16, %l5 <== NOT EXECUTED
203f5bc: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED
203f5c0: a8 07 bf e4 add %fp, -28, %l4 <== NOT EXECUTED
{
if ((length + RTEMS_RFS_DIR_ENTRY_SIZE) <
203f5c4: 10 80 00 06 b 203f5dc <rtems_rfs_dir_add_entry+0x68> <== NOT EXECUTED
203f5c8: ae 06 e0 0a add %i3, 0xa, %l7 <== 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))
203f5cc: c6 04 20 08 ld [ %l0 + 8 ], %g3 <== NOT EXECUTED
203f5d0: 88 80 ff f6 addcc %g3, -10, %g4 <== NOT EXECUTED
203f5d4: 32 80 00 2c bne,a 203f684 <rtems_rfs_dir_add_entry+0x110><== NOT EXECUTED
203f5d8: c2 0c a0 09 ldub [ %l2 + 9 ], %g1 <== 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);
203f5dc: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
203f5e0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203f5e4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203f5e8: 7f ff f9 7e call 203dbe0 <rtems_rfs_block_map_find> <== NOT EXECUTED
203f5ec: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED
if (rc > 0)
203f5f0: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
203f5f4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203f5f8: 04 80 00 0d ble 203f62c <rtems_rfs_dir_add_entry+0xb8> <== NOT EXECUTED
203f5fc: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED
{
if (rc != ENXIO)
203f600: 80 a6 20 06 cmp %i0, 6 <== NOT EXECUTED
203f604: 12 80 00 6d bne 203f7b8 <rtems_rfs_dir_add_entry+0x244> <== NOT EXECUTED
203f608: 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);
203f60c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203f610: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203f614: 7f ff fb 3f call 203e310 <rtems_rfs_block_map_grow> <== NOT EXECUTED
203f618: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
if (rc > 0)
203f61c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203f620: 14 80 00 66 bg 203f7b8 <rtems_rfs_dir_add_entry+0x244> <== NOT EXECUTED
203f624: 96 10 20 00 clr %o3 <== NOT EXECUTED
203f628: a4 10 20 00 clr %l2 <== NOT EXECUTED
}
read = false;
}
bpos.bno++;
203f62c: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, read);
203f630: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
}
read = false;
}
bpos.bno++;
203f634: 82 00 60 01 inc %g1 <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, read);
203f638: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
}
read = false;
}
bpos.bno++;
203f63c: c2 27 bf f0 st %g1, [ %fp + -16 ] <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, read);
203f640: 7f ff fd b1 call 203ed04 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203f644: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
if (rc > 0)
203f648: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203f64c: 14 80 00 5b bg 203f7b8 <rtems_rfs_dir_add_entry+0x244> <== NOT EXECUTED
203f650: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED
break;
}
entry = rtems_rfs_buffer_data (&buffer);
if (!read)
203f654: 80 8c a0 ff btst 0xff, %l2 <== NOT EXECUTED
203f658: 12 bf ff dd bne 203f5cc <rtems_rfs_dir_add_entry+0x58> <== NOT EXECUTED
203f65c: e4 00 60 24 ld [ %g1 + 0x24 ], %l2 <== NOT EXECUTED
memset (entry, 0xff, rtems_rfs_fs_block_size (fs));
203f660: d4 04 20 08 ld [ %l0 + 8 ], %o2 <== NOT EXECUTED
203f664: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
203f668: 40 00 33 56 call 204c3c0 <memset> <== NOT EXECUTED
203f66c: 92 10 20 ff mov 0xff, %o1 <== NOT EXECUTED
offset = 0;
while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
203f670: c6 04 20 08 ld [ %l0 + 8 ], %g3 <== NOT EXECUTED
203f674: 88 80 ff f6 addcc %g3, -10, %g4 <== NOT EXECUTED
203f678: 02 bf ff da be 203f5e0 <rtems_rfs_dir_add_entry+0x6c> <== NOT EXECUTED
203f67c: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
203f680: c2 0c a0 09 ldub [ %l2 + 9 ], %g1 <== NOT EXECUTED
203f684: da 0c a0 08 ldub [ %l2 + 8 ], %o5 <== NOT EXECUTED
203f688: ba 04 a0 08 add %l2, 8, %i5 <== NOT EXECUTED
203f68c: 9b 2b 60 08 sll %o5, 8, %o5 <== NOT EXECUTED
203f690: b0 04 a0 09 add %l2, 9, %i0 <== NOT EXECUTED
203f694: 9a 13 40 01 or %o5, %g1, %o5 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203f698: d0 0c 80 00 ldub [ %l2 ], %o0 <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203f69c: 80 a3 40 16 cmp %o5, %l6 <== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
203f6a0: 84 04 a0 01 add %l2, 1, %g2 <== NOT EXECUTED
203f6a4: d8 0c a0 01 ldub [ %l2 + 1 ], %o4 <== NOT EXECUTED
203f6a8: 82 04 a0 02 add %l2, 2, %g1 <== NOT EXECUTED
203f6ac: d2 0c a0 02 ldub [ %l2 + 2 ], %o1 <== NOT EXECUTED
203f6b0: b2 04 a0 03 add %l2, 3, %i1 <== NOT EXECUTED
203f6b4: d6 0c a0 03 ldub [ %l2 + 3 ], %o3 <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203f6b8: 02 80 00 4b be 203f7e4 <rtems_rfs_dir_add_entry+0x270> <== NOT EXECUTED
203f6bc: 94 10 20 00 clr %o2 <== NOT EXECUTED
}
break;
}
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
203f6c0: 80 a3 60 0a cmp %o5, 0xa <== NOT EXECUTED
203f6c4: 04 80 00 34 ble 203f794 <rtems_rfs_dir_add_entry+0x220> <== NOT EXECUTED
203f6c8: 92 0a 60 ff and %o1, 0xff, %o1 <== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
203f6cc: 93 2a 60 08 sll %o1, 8, %o1 <== NOT EXECUTED
203f6d0: 96 0a e0 ff and %o3, 0xff, %o3 <== NOT EXECUTED
203f6d4: 91 2a 20 18 sll %o0, 0x18, %o0 <== NOT EXECUTED
203f6d8: 96 12 c0 08 or %o3, %o0, %o3 <== NOT EXECUTED
203f6dc: 96 12 c0 09 or %o3, %o1, %o3 <== NOT EXECUTED
203f6e0: d2 04 20 18 ld [ %l0 + 0x18 ], %o1 <== NOT EXECUTED
203f6e4: 98 0b 20 ff and %o4, 0xff, %o4 <== NOT EXECUTED
203f6e8: 99 2b 20 10 sll %o4, 0x10, %o4 <== NOT EXECUTED
203f6ec: 96 12 c0 0c or %o3, %o4, %o3 <== NOT EXECUTED
203f6f0: 98 10 20 00 clr %o4 <== NOT EXECUTED
}
break;
}
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
203f6f4: 80 a3 40 09 cmp %o5, %o1 <== NOT EXECUTED
203f6f8: 1a 80 00 27 bcc 203f794 <rtems_rfs_dir_add_entry+0x220> <== NOT EXECUTED
203f6fc: 80 a2 e0 00 cmp %o3, 0 <== NOT EXECUTED
203f700: 22 80 00 26 be,a 203f798 <rtems_rfs_dir_add_entry+0x224> <== NOT EXECUTED
203f704: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
203f708: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
203f70c: 80 a0 40 0b cmp %g1, %o3 <== NOT EXECUTED
203f710: 0a 80 00 21 bcs 203f794 <rtems_rfs_dir_add_entry+0x220> <== NOT EXECUTED
203f714: 98 03 00 0d add %o4, %o5, %o4 <== 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))
203f718: 80 a3 00 04 cmp %o4, %g4 <== NOT EXECUTED
203f71c: 1a bf ff b0 bcc 203f5dc <rtems_rfs_dir_add_entry+0x68> <== NOT EXECUTED
203f720: 94 10 00 0c mov %o4, %o2 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_block_map_close (fs, &map);
return EIO;
}
entry += elength;
203f724: a4 04 80 0d add %l2, %o5, %l2 <== 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);
203f728: c2 0c a0 09 ldub [ %l2 + 9 ], %g1 <== NOT EXECUTED
203f72c: da 0c a0 08 ldub [ %l2 + 8 ], %o5 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203f730: c4 0c a0 01 ldub [ %l2 + 1 ], %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);
203f734: 9b 2b 60 08 sll %o5, 8, %o5 <== NOT EXECUTED
203f738: 9a 13 40 01 or %o5, %g1, %o5 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203f73c: c2 0c a0 02 ldub [ %l2 + 2 ], %g1 <== NOT EXECUTED
203f740: d0 0c 80 00 ldub [ %l2 ], %o0 <== NOT EXECUTED
203f744: d6 0c a0 03 ldub [ %l2 + 3 ], %o3 <== NOT EXECUTED
203f748: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
203f74c: 82 08 60 ff and %g1, 0xff, %g1 <== NOT EXECUTED
203f750: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
203f754: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
203f758: 91 2a 20 18 sll %o0, 0x18, %o0 <== NOT EXECUTED
203f75c: 96 0a e0 ff and %o3, 0xff, %o3 <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203f760: 80 a3 40 16 cmp %o5, %l6 <== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
203f764: 96 12 c0 08 or %o3, %o0, %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);
203f768: ba 04 a0 08 add %l2, 8, %i5 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203f76c: 96 12 c0 02 or %o3, %g2, %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);
203f770: b0 04 a0 09 add %l2, 9, %i0 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203f774: 96 12 c0 01 or %o3, %g1, %o3 <== NOT EXECUTED
203f778: 84 04 a0 01 add %l2, 1, %g2 <== NOT EXECUTED
203f77c: 82 04 a0 02 add %l2, 2, %g1 <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203f780: 02 80 00 19 be 203f7e4 <rtems_rfs_dir_add_entry+0x270> <== NOT EXECUTED
203f784: b2 04 a0 03 add %l2, 3, %i1 <== NOT EXECUTED
}
break;
}
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
203f788: 80 a3 60 0a cmp %o5, 0xa <== NOT EXECUTED
203f78c: 14 bf ff db bg 203f6f8 <rtems_rfs_dir_add_entry+0x184> <== NOT EXECUTED
203f790: 80 a3 40 09 cmp %o5, %o1 <== 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);
203f794: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
203f798: 7f ff fd ea call 203ef40 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203f79c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
203f7a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203f7a4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203f7a8: 7f ff fb c8 call 203e6c8 <rtems_rfs_block_map_close> <== NOT EXECUTED
203f7ac: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
return EIO;
203f7b0: 81 c7 e0 08 ret <== NOT EXECUTED
203f7b4: 81 e8 00 00 restore <== 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);
203f7b8: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
203f7bc: 7f ff fd 09 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203f7c0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
offset += elength;
}
}
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_block_map_close (fs, &map);
203f7c4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
handle->dirty = false;
203f7c8: c0 2f bf e4 clrb [ %fp + -28 ] <== NOT EXECUTED
handle->bnum = 0;
203f7cc: c0 27 bf e8 clr [ %fp + -24 ] <== NOT EXECUTED
handle->buffer = NULL;
203f7d0: c0 27 bf ec clr [ %fp + -20 ] <== NOT EXECUTED
203f7d4: 7f ff fb bd call 203e6c8 <rtems_rfs_block_map_close> <== NOT EXECUTED
203f7d8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
}
203f7dc: 81 c7 e0 08 ret <== NOT EXECUTED
203f7e0: 81 e8 00 00 restore <== 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) <
203f7e4: 86 20 c0 0a sub %g3, %o2, %g3 <== NOT EXECUTED
203f7e8: 80 a5 c0 03 cmp %l7, %g3 <== NOT EXECUTED
203f7ec: 1a bf ff 7d bcc 203f5e0 <rtems_rfs_dir_add_entry+0x6c> <== NOT EXECUTED
203f7f0: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
(rtems_rfs_fs_block_size (fs) - offset))
{
uint32_t hash;
hash = rtems_rfs_dir_hash (name, length);
203f7f4: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
203f7f8: c2 27 bf 8c st %g1, [ %fp + -116 ] <== NOT EXECUTED
203f7fc: c4 27 bf 88 st %g2, [ %fp + -120 ] <== NOT EXECUTED
203f800: 40 00 23 76 call 20485d8 <rtems_rfs_dir_hash> <== NOT EXECUTED
203f804: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
rtems_rfs_dir_set_entry_hash (entry, hash);
203f808: 87 32 20 18 srl %o0, 0x18, %g3 <== NOT EXECUTED
203f80c: c6 2c a0 04 stb %g3, [ %l2 + 4 ] <== NOT EXECUTED
203f810: 87 32 20 10 srl %o0, 0x10, %g3 <== NOT EXECUTED
203f814: d0 2c a0 07 stb %o0, [ %l2 + 7 ] <== NOT EXECUTED
203f818: c6 2c a0 05 stb %g3, [ %l2 + 5 ] <== NOT EXECUTED
203f81c: 91 32 20 08 srl %o0, 8, %o0 <== NOT EXECUTED
rtems_rfs_dir_set_entry_ino (entry, ino);
203f820: 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);
203f824: d0 2c a0 06 stb %o0, [ %l2 + 6 ] <== NOT EXECUTED
rtems_rfs_dir_set_entry_ino (entry, ino);
203f828: c6 2c 80 00 stb %g3, [ %l2 ] <== NOT EXECUTED
203f82c: c4 07 bf 88 ld [ %fp + -120 ], %g2 <== NOT EXECUTED
203f830: 87 37 20 10 srl %i4, 0x10, %g3 <== NOT EXECUTED
203f834: c6 28 80 00 stb %g3, [ %g2 ] <== NOT EXECUTED
203f838: c2 07 bf 8c ld [ %fp + -116 ], %g1 <== NOT EXECUTED
203f83c: 85 37 20 08 srl %i4, 8, %g2 <== NOT EXECUTED
203f840: c4 28 40 00 stb %g2, [ %g1 ] <== NOT EXECUTED
203f844: f8 2e 40 00 stb %i4, [ %i1 ] <== NOT EXECUTED
rtems_rfs_dir_set_entry_length (entry,
203f848: af 35 e0 08 srl %l7, 8, %l7 <== NOT EXECUTED
203f84c: ee 2f 40 00 stb %l7, [ %i5 ] <== NOT EXECUTED
RTEMS_RFS_DIR_ENTRY_SIZE + length);
memcpy (entry + RTEMS_RFS_DIR_ENTRY_SIZE, name, length);
203f850: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED
203f854: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
203f858: 90 04 a0 0a add %l2, 0xa, %o0 <== NOT EXECUTED
{
uint32_t hash;
hash = rtems_rfs_dir_hash (name, length);
rtems_rfs_dir_set_entry_hash (entry, hash);
rtems_rfs_dir_set_entry_ino (entry, ino);
rtems_rfs_dir_set_entry_length (entry,
203f85c: b6 06 e0 0a add %i3, 0xa, %i3 <== NOT EXECUTED
RTEMS_RFS_DIR_ENTRY_SIZE + length);
memcpy (entry + RTEMS_RFS_DIR_ENTRY_SIZE, name, length);
203f860: 40 00 32 45 call 204c174 <memcpy> <== NOT EXECUTED
203f864: f6 2e 00 00 stb %i3, [ %i0 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&buffer);
203f868: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &buffer);
203f86c: 92 10 00 14 mov %l4, %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);
203f870: c2 2f bf e4 stb %g1, [ %fp + -28 ] <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &buffer);
203f874: 7f ff fd b3 call 203ef40 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203f878: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
203f87c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203f880: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203f884: 7f ff fb 91 call 203e6c8 <rtems_rfs_block_map_close> <== NOT EXECUTED
203f888: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
203f88c: 81 c7 e0 08 ret <== NOT EXECUTED
203f890: 81 e8 00 00 restore <== NOT EXECUTED
0203f258 <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)
{
203f258: 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);
203f25c: 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)
{
203f260: 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);
203f264: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203f268: a2 07 bf a0 add %fp, -96, %l1 <== NOT EXECUTED
203f26c: 7f ff fd 88 call 203e88c <rtems_rfs_block_map_open> <== NOT EXECUTED
203f270: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc > 0)
203f274: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203f278: 14 80 00 10 bg 203f2b8 <rtems_rfs_dir_del_entry+0x60> <== NOT EXECUTED
203f27c: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
return rc;
rc = rtems_rfs_block_map_seek (fs, &map, offset, &block);
203f280: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203f284: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203f288: 94 10 20 00 clr %o2 <== NOT EXECUTED
203f28c: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
203f290: 7f ff fa bf call 203dd8c <rtems_rfs_block_map_seek> <== NOT EXECUTED
203f294: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED
if (rc > 0)
203f298: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203f29c: 04 80 00 09 ble 203f2c0 <rtems_rfs_dir_del_entry+0x68> <== NOT EXECUTED
203f2a0: 80 a6 20 06 cmp %i0, 6 <== NOT EXECUTED
{
if (rc == ENXIO)
203f2a4: 22 80 00 02 be,a 203f2ac <rtems_rfs_dir_del_entry+0x54> <== NOT EXECUTED
203f2a8: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
rc = ENOENT;
rtems_rfs_block_map_close (fs, &map);
203f2ac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203f2b0: 7f ff fd 06 call 203e6c8 <rtems_rfs_block_map_close> <== NOT EXECUTED
203f2b4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
203f2b8: 81 c7 e0 08 ret <== NOT EXECUTED
203f2bc: 81 e8 00 00 restore <== 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)
203f2c0: 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)
203f2c4: 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;
203f2c8: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
203f2cc: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
203f2d0: 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)
203f2d4: a6 60 3f ff subx %g0, -1, %l3 <== 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)
203f2d8: a8 15 23 ff or %l4, 0x3ff, %l4 <== NOT EXECUTED
203f2dc: aa 07 bf f0 add %fp, -16, %l5 <== NOT EXECUTED
while (rc == 0)
{
uint8_t* entry;
int eoffset;
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
203f2e0: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
203f2e4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203f2e8: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
203f2ec: 7f ff fe 86 call 203ed04 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203f2f0: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
203f2f4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203f2f8: 14 80 00 5a bg 203f460 <rtems_rfs_dir_del_entry+0x208> <== NOT EXECUTED
203f2fc: 80 a4 e0 00 cmp %l3, 0 <== 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)
203f300: 02 80 00 4d be 203f434 <rtems_rfs_dir_del_entry+0x1dc> <== NOT EXECUTED
203f304: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED
203f308: 84 10 20 00 clr %g2 <== NOT EXECUTED
203f30c: ba 10 20 00 clr %i5 <== NOT EXECUTED
eoffset = 0;
else
eoffset = offset % rtems_rfs_fs_block_size (fs);
entry = rtems_rfs_buffer_data (&buffer) + eoffset;
203f310: c6 07 bf f8 ld [ %fp + -8 ], %g3 <== NOT EXECUTED
while (eoffset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
203f314: 98 00 7f f6 add %g1, -10, %o4 <== NOT EXECUTED
203f318: 80 a0 80 0c cmp %g2, %o4 <== NOT EXECUTED
203f31c: 1a 80 00 4e bcc 203f454 <rtems_rfs_dir_del_entry+0x1fc> <== NOT EXECUTED
203f320: c6 00 e0 24 ld [ %g3 + 0x24 ], %g3 <== NOT EXECUTED
if (search)
eoffset = 0;
else
eoffset = offset % rtems_rfs_fs_block_size (fs);
entry = rtems_rfs_buffer_data (&buffer) + eoffset;
203f324: ac 00 c0 02 add %g3, %g2, %l6 <== 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);
203f328: c8 0d a0 09 ldub [ %l6 + 9 ], %g4 <== NOT EXECUTED
203f32c: ee 0d a0 08 ldub [ %l6 + 8 ], %l7 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203f330: da 08 c0 02 ldub [ %g3 + %g2 ], %o5 <== 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);
203f334: af 2d e0 08 sll %l7, 8, %l7 <== NOT EXECUTED
203f338: b2 05 a0 08 add %l6, 8, %i1 <== NOT EXECUTED
203f33c: ae 15 c0 04 or %l7, %g4, %l7 <== NOT EXECUTED
203f340: b8 05 a0 09 add %l6, 9, %i4 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203f344: 80 a5 c0 14 cmp %l7, %l4 <== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
203f348: c8 0d a0 01 ldub [ %l6 + 1 ], %g4 <== NOT EXECUTED
203f34c: c6 0d a0 02 ldub [ %l6 + 2 ], %g3 <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203f350: 02 80 00 41 be 203f454 <rtems_rfs_dir_del_entry+0x1fc> <== NOT EXECUTED
203f354: c4 0d a0 03 ldub [ %l6 + 3 ], %g2 <== NOT EXECUTED
break;
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
203f358: 80 a5 e0 0a cmp %l7, 0xa <== NOT EXECUTED
203f35c: 04 80 00 34 ble 203f42c <rtems_rfs_dir_del_entry+0x1d4> <== NOT EXECUTED
203f360: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
203f364: 9b 2b 60 18 sll %o5, 0x18, %o5 <== NOT EXECUTED
203f368: 88 09 20 ff and %g4, 0xff, %g4 <== NOT EXECUTED
203f36c: 84 10 80 0d or %g2, %o5, %g2 <== NOT EXECUTED
203f370: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED
203f374: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
203f378: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
203f37c: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
203f380: d6 04 20 18 ld [ %l0 + 0x18 ], %o3 <== NOT EXECUTED
203f384: 10 80 00 27 b 203f420 <rtems_rfs_dir_del_entry+0x1c8> <== NOT EXECUTED
203f388: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
break;
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
203f38c: 22 80 00 35 be,a 203f460 <rtems_rfs_dir_del_entry+0x208> <== NOT EXECUTED
203f390: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
203f394: c6 04 20 10 ld [ %l0 + 0x10 ], %g3 <== NOT EXECUTED
203f398: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED
203f39c: 0a 80 00 24 bcs 203f42c <rtems_rfs_dir_del_entry+0x1d4> <== NOT EXECUTED
203f3a0: 80 a0 80 1a cmp %g2, %i2 <== NOT EXECUTED
rtems_rfs_inode_ino (dir), elength, eino, block, eoffset);
rc = EIO;
break;
}
if (ino == rtems_rfs_dir_entry_ino (entry))
203f3a4: 02 80 00 37 be 203f480 <rtems_rfs_dir_del_entry+0x228> <== NOT EXECUTED
203f3a8: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_block_map_close (fs, &map);
return 0;
}
if (!search)
203f3ac: 02 80 00 20 be 203f42c <rtems_rfs_dir_del_entry+0x1d4> <== NOT EXECUTED
203f3b0: ac 05 80 17 add %l6, %l7, %l6 <== NOT EXECUTED
rc = EIO;
break;
}
entry += elength;
eoffset += elength;
203f3b4: ba 07 40 17 add %i5, %l7, %i5 <== 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))
203f3b8: 80 a7 40 0c cmp %i5, %o4 <== NOT EXECUTED
203f3bc: 1a 80 00 26 bcc 203f454 <rtems_rfs_dir_del_entry+0x1fc> <== NOT EXECUTED
203f3c0: b2 05 a0 08 add %l6, 8, %i1 <== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
203f3c4: c4 0d a0 09 ldub [ %l6 + 9 ], %g2 <== NOT EXECUTED
203f3c8: ee 0d a0 08 ldub [ %l6 + 8 ], %l7 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203f3cc: da 0d 80 00 ldub [ %l6 ], %o5 <== 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);
203f3d0: af 2d e0 08 sll %l7, 8, %l7 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203f3d4: c8 0d a0 01 ldub [ %l6 + 1 ], %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);
203f3d8: ae 15 c0 02 or %l7, %g2, %l7 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203f3dc: c6 0d a0 02 ldub [ %l6 + 2 ], %g3 <== NOT EXECUTED
203f3e0: c4 0d a0 03 ldub [ %l6 + 3 ], %g2 <== NOT EXECUTED
203f3e4: 9b 2b 60 18 sll %o5, 0x18, %o5 <== NOT EXECUTED
203f3e8: 88 09 20 ff and %g4, 0xff, %g4 <== NOT EXECUTED
203f3ec: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED
203f3f0: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
203f3f4: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
203f3f8: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
203f3fc: 84 10 80 0d or %g2, %o5, %g2 <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203f400: 80 a5 c0 14 cmp %l7, %l4 <== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
203f404: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
203f408: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203f40c: 02 80 00 12 be 203f454 <rtems_rfs_dir_del_entry+0x1fc> <== NOT EXECUTED
203f410: b8 05 a0 09 add %l6, 9, %i4 <== NOT EXECUTED
break;
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
203f414: 80 a5 e0 0a cmp %l7, 0xa <== NOT EXECUTED
203f418: 24 80 00 12 ble,a 203f460 <rtems_rfs_dir_del_entry+0x208><== NOT EXECUTED
203f41c: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
203f420: 80 a5 c0 0b cmp %l7, %o3 <== NOT EXECUTED
203f424: 0a bf ff da bcs 203f38c <rtems_rfs_dir_del_entry+0x134> <== NOT EXECUTED
203f428: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
/*
* Only search if the offset is 0 else we are at that position.
*/
search = offset ? false : true;
while (rc == 0)
203f42c: 10 80 00 0d b 203f460 <rtems_rfs_dir_del_entry+0x208> <== NOT EXECUTED
203f430: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
* skip to the offset in the block.
*/
if (search)
eoffset = 0;
else
eoffset = offset % rtems_rfs_fs_block_size (fs);
203f434: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
203f438: 92 10 00 01 mov %g1, %o1 <== NOT EXECUTED
203f43c: 40 00 87 db call 20613a8 <.urem> <== NOT EXECUTED
203f440: c2 27 bf 9c st %g1, [ %fp + -100 ] <== NOT EXECUTED
203f444: c2 07 bf 9c ld [ %fp + -100 ], %g1 <== NOT EXECUTED
203f448: ba 10 00 08 mov %o0, %i5 <== NOT EXECUTED
203f44c: 10 bf ff b1 b 203f310 <rtems_rfs_dir_del_entry+0xb8> <== NOT EXECUTED
203f450: 84 10 00 08 mov %o0, %g2 <== NOT EXECUTED
entry += elength;
eoffset += elength;
}
if (rc == 0)
203f454: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
203f458: 02 80 00 31 be 203f51c <rtems_rfs_dir_del_entry+0x2c4> <== NOT EXECUTED
203f45c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc == ENXIO)
rc = ENOENT;
}
}
rtems_rfs_buffer_handle_close (fs, &buffer);
203f460: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
203f464: 7f ff fe b7 call 203ef40 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203f468: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
203f46c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203f470: 7f ff fc 96 call 203e6c8 <rtems_rfs_block_map_close> <== NOT EXECUTED
203f474: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
}
203f478: 81 c7 e0 08 ret <== NOT EXECUTED
203f47c: 81 e8 00 00 restore <== NOT EXECUTED
if (ino == rtems_rfs_dir_entry_ino (entry))
{
uint32_t remaining;
remaining = rtems_rfs_fs_block_size (fs) - (eoffset + elength);
memmove (entry, entry + elength, remaining);
203f480: 92 05 80 17 add %l6, %l7, %o1 <== NOT EXECUTED
}
if (ino == rtems_rfs_dir_entry_ino (entry))
{
uint32_t remaining;
remaining = rtems_rfs_fs_block_size (fs) - (eoffset + elength);
203f484: a4 07 40 17 add %i5, %l7, %l2 <== NOT EXECUTED
memmove (entry, entry + elength, remaining);
203f488: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
}
if (ino == rtems_rfs_dir_entry_ino (entry))
{
uint32_t remaining;
remaining = rtems_rfs_fs_block_size (fs) - (eoffset + elength);
203f48c: a4 20 40 12 sub %g1, %l2, %l2 <== NOT EXECUTED
memmove (entry, entry + elength, remaining);
203f490: 40 00 33 78 call 204c270 <memmove> <== NOT EXECUTED
203f494: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
memset (entry + remaining, 0xff, elength);
203f498: 90 05 80 12 add %l6, %l2, %o0 <== NOT EXECUTED
203f49c: 94 10 00 17 mov %l7, %o2 <== NOT EXECUTED
203f4a0: 40 00 33 c8 call 204c3c0 <memset> <== NOT EXECUTED
203f4a4: 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);
203f4a8: c2 0f 00 00 ldub [ %i4 ], %g1 <== NOT EXECUTED
203f4ac: c4 0e 40 00 ldub [ %i1 ], %g2 <== NOT EXECUTED
203f4b0: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203f4b4: 84 10 80 01 or %g2, %g1, %g2 <== NOT EXECUTED
203f4b8: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED
203f4bc: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff <PROM_START+0xffff> <== NOT EXECUTED
203f4c0: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203f4c4: 12 80 00 0b bne 203f4f0 <rtems_rfs_dir_del_entry+0x298> <== NOT EXECUTED
203f4c8: 80 a7 60 00 cmp %i5, 0 <== NOT EXECUTED
203f4cc: 12 80 00 09 bne 203f4f0 <rtems_rfs_dir_del_entry+0x298> <== NOT EXECUTED
203f4d0: 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) &&
203f4d4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203f4d8: 02 80 00 1c be 203f548 <rtems_rfs_dir_del_entry+0x2f0> <== NOT EXECUTED
203f4dc: c4 07 bf a8 ld [ %fp + -88 ], %g2 <== NOT EXECUTED
203f4e0: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
203f4e4: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203f4e8: 02 80 00 1c be 203f558 <rtems_rfs_dir_del_entry+0x300> <== NOT EXECUTED
203f4ec: 90 10 00 10 mov %l0, %o0 <== 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);
203f4f0: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &buffer);
203f4f4: 92 10 00 15 mov %l5, %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);
203f4f8: c2 2f bf f0 stb %g1, [ %fp + -16 ] <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &buffer);
203f4fc: 7f ff fe 91 call 203ef40 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203f500: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
203f504: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203f508: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203f50c: 7f ff fc 6f call 203e6c8 <rtems_rfs_block_map_close> <== NOT EXECUTED
203f510: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
203f514: 81 c7 e0 08 ret <== NOT EXECUTED
203f518: 81 e8 00 00 restore <== NOT EXECUTED
eoffset += elength;
}
if (rc == 0)
{
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
203f51c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203f520: 7f ff fa 0e call 203dd58 <rtems_rfs_block_map_next_block> <== NOT EXECUTED
203f524: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
if (rc == ENXIO)
203f528: 80 a2 20 06 cmp %o0, 6 <== NOT EXECUTED
203f52c: 02 80 00 10 be 203f56c <rtems_rfs_dir_del_entry+0x314> <== NOT EXECUTED
203f530: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
/*
* Only search if the offset is 0 else we are at that position.
*/
search = offset ? false : true;
while (rc == 0)
203f534: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203f538: 02 bf ff 6b be 203f2e4 <rtems_rfs_dir_del_entry+0x8c> <== NOT EXECUTED
203f53c: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
if (rc == ENXIO)
rc = ENOENT;
}
}
rtems_rfs_buffer_handle_close (fs, &buffer);
203f540: 10 bf ff c9 b 203f464 <rtems_rfs_dir_del_entry+0x20c> <== NOT EXECUTED
203f544: 92 10 00 15 mov %l5, %o1 <== 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) &&
203f548: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203f54c: 12 bf ff e6 bne 203f4e4 <rtems_rfs_dir_del_entry+0x28c> <== NOT EXECUTED
203f550: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
(eoffset == 0) && rtems_rfs_block_map_last (&map))
{
rc = rtems_rfs_block_map_shrink (fs, &map, 1);
203f554: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203f558: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203f55c: 7f ff fa 53 call 203dea8 <rtems_rfs_block_map_shrink> <== NOT EXECUTED
203f560: 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);
203f564: 10 bf ff e4 b 203f4f4 <rtems_rfs_dir_del_entry+0x29c> <== NOT EXECUTED
203f568: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
}
if (rc == 0)
{
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
if (rc == ENXIO)
203f56c: 10 bf ff bd b 203f460 <rtems_rfs_dir_del_entry+0x208> <== NOT EXECUTED
203f570: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
0203fb10 <rtems_rfs_dir_empty>:
}
int
rtems_rfs_dir_empty (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* dir)
{
203fb10: 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);
203fb14: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
}
int
rtems_rfs_dir_empty (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* dir)
{
203fb18: 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);
203fb1c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203fb20: a2 07 bf a0 add %fp, -96, %l1 <== NOT EXECUTED
203fb24: 7f ff fb 5a call 203e88c <rtems_rfs_block_map_open> <== NOT EXECUTED
203fb28: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc > 0)
203fb2c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203fb30: 14 80 00 71 bg 203fcf4 <rtems_rfs_dir_empty+0x1e4> <== NOT EXECUTED
203fb34: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
return rc;
rc = rtems_rfs_block_map_seek (fs, &map, 0, &block);
203fb38: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203fb3c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203fb40: 94 10 20 00 clr %o2 <== NOT EXECUTED
203fb44: 96 10 20 00 clr %o3 <== NOT EXECUTED
203fb48: 7f ff f8 91 call 203dd8c <rtems_rfs_block_map_seek> <== NOT EXECUTED
203fb4c: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED
if (rc > 0)
203fb50: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203fb54: 14 80 00 76 bg 203fd2c <rtems_rfs_dir_empty+0x21c> <== NOT EXECUTED
203fb58: 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;
203fb5c: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
203fb60: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
203fb64: 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)
203fb68: a6 14 e3 ff or %l3, 0x3ff, %l3 <== NOT EXECUTED
203fb6c: a8 07 bf f0 add %fp, -16, %l4 <== NOT EXECUTED
while (empty)
{
uint8_t* entry;
int offset;
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
203fb70: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
203fb74: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203fb78: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
203fb7c: 7f ff fc 62 call 203ed04 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203fb80: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
203fb84: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203fb88: 14 80 00 52 bg 203fcd0 <rtems_rfs_dir_empty+0x1c0> <== NOT EXECUTED
203fb8c: 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))
203fb90: d2 04 20 08 ld [ %l0 + 8 ], %o1 <== NOT EXECUTED
203fb94: 92 82 7f f6 addcc %o1, -10, %o1 <== NOT EXECUTED
203fb98: 02 80 00 59 be 203fcfc <rtems_rfs_dir_empty+0x1ec> <== NOT EXECUTED
203fb9c: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
203fba0: c6 08 60 09 ldub [ %g1 + 9 ], %g3 <== NOT EXECUTED
203fba4: c4 08 60 08 ldub [ %g1 + 8 ], %g2 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203fba8: d8 08 40 00 ldub [ %g1 ], %o4 <== 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);
203fbac: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203fbb0: da 08 60 01 ldub [ %g1 + 1 ], %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);
203fbb4: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203fbb8: c8 08 60 02 ldub [ %g1 + 2 ], %g4 <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203fbbc: 80 a0 80 13 cmp %g2, %l3 <== NOT EXECUTED
203fbc0: 02 80 00 4f be 203fcfc <rtems_rfs_dir_empty+0x1ec> <== NOT EXECUTED
203fbc4: c6 08 60 03 ldub [ %g1 + 3 ], %g3 <== NOT EXECUTED
break;
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
203fbc8: 80 a0 a0 0a cmp %g2, 0xa <== NOT EXECUTED
203fbcc: 04 80 00 4c ble 203fcfc <rtems_rfs_dir_empty+0x1ec> <== NOT EXECUTED
203fbd0: 88 09 20 ff and %g4, 0xff, %g4 <== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
203fbd4: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
203fbd8: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED
203fbdc: 99 2b 20 18 sll %o4, 0x18, %o4 <== NOT EXECUTED
203fbe0: 9a 0b 60 ff and %o5, 0xff, %o5 <== NOT EXECUTED
203fbe4: 86 10 c0 0c or %g3, %o4, %g3 <== NOT EXECUTED
203fbe8: 9b 2b 60 10 sll %o5, 0x10, %o5 <== NOT EXECUTED
203fbec: d4 04 20 18 ld [ %l0 + 0x18 ], %o2 <== NOT EXECUTED
203fbf0: 86 10 c0 0d or %g3, %o5, %g3 <== NOT EXECUTED
203fbf4: 86 10 c0 04 or %g3, %g4, %g3 <== NOT EXECUTED
203fbf8: 10 80 00 25 b 203fc8c <rtems_rfs_dir_empty+0x17c> <== NOT EXECUTED
203fbfc: 88 10 20 00 clr %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)) ||
203fc00: 12 80 00 32 bne 203fcc8 <rtems_rfs_dir_empty+0x1b8> <== NOT EXECUTED
203fc04: 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] != '.') ||
203fc08: c6 08 60 0a ldub [ %g1 + 0xa ], %g3 <== NOT EXECUTED
203fc0c: 80 a0 e0 2e cmp %g3, 0x2e <== NOT EXECUTED
203fc10: 12 80 00 2e bne 203fcc8 <rtems_rfs_dir_empty+0x1b8> <== NOT EXECUTED
203fc14: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
(entry[RTEMS_RFS_DIR_ENTRY_SIZE + 1] != '.')))
203fc18: c6 08 60 0b ldub [ %g1 + 0xb ], %g3 <== NOT EXECUTED
203fc1c: 80 a0 e0 2e cmp %g3, 0x2e <== NOT EXECUTED
203fc20: 12 80 00 2a bne 203fcc8 <rtems_rfs_dir_empty+0x1b8> <== NOT EXECUTED
203fc24: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
empty = false;
break;
}
entry += elength;
offset += elength;
203fc28: 88 01 00 02 add %g4, %g2, %g4 <== NOT EXECUTED
break;
entry = rtems_rfs_buffer_data (&buffer);
offset = 0;
while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
203fc2c: 80 a1 00 09 cmp %g4, %o1 <== NOT EXECUTED
203fc30: 1a 80 00 33 bcc 203fcfc <rtems_rfs_dir_empty+0x1ec> <== NOT EXECUTED
203fc34: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
203fc38: c6 08 60 09 ldub [ %g1 + 9 ], %g3 <== NOT EXECUTED
203fc3c: c4 08 60 08 ldub [ %g1 + 8 ], %g2 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203fc40: d6 08 40 00 ldub [ %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);
203fc44: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203fc48: d8 08 60 01 ldub [ %g1 + 1 ], %o4 <== 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);
203fc4c: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203fc50: da 08 60 02 ldub [ %g1 + 2 ], %o5 <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203fc54: 80 a0 80 13 cmp %g2, %l3 <== NOT EXECUTED
203fc58: 02 80 00 29 be 203fcfc <rtems_rfs_dir_empty+0x1ec> <== NOT EXECUTED
203fc5c: c6 08 60 03 ldub [ %g1 + 3 ], %g3 <== NOT EXECUTED
break;
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
203fc60: 80 a0 a0 0a cmp %g2, 0xa <== NOT EXECUTED
203fc64: 04 80 00 26 ble 203fcfc <rtems_rfs_dir_empty+0x1ec> <== NOT EXECUTED
203fc68: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
203fc6c: 97 2a e0 18 sll %o3, 0x18, %o3 <== NOT EXECUTED
203fc70: 98 0b 20 ff and %o4, 0xff, %o4 <== NOT EXECUTED
203fc74: 86 10 c0 0b or %g3, %o3, %g3 <== NOT EXECUTED
203fc78: 9a 0b 60 ff and %o5, 0xff, %o5 <== NOT EXECUTED
203fc7c: 99 2b 20 10 sll %o4, 0x10, %o4 <== NOT EXECUTED
203fc80: 9b 2b 60 08 sll %o5, 8, %o5 <== NOT EXECUTED
203fc84: 86 10 c0 0c or %g3, %o4, %g3 <== NOT EXECUTED
203fc88: 86 10 c0 0d or %g3, %o5, %g3 <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
break;
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
203fc8c: 80 a0 80 0a cmp %g2, %o2 <== NOT EXECUTED
203fc90: 1a 80 00 1b bcc 203fcfc <rtems_rfs_dir_empty+0x1ec> <== NOT EXECUTED
203fc94: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
203fc98: 02 80 00 1a be 203fd00 <rtems_rfs_dir_empty+0x1f0> <== NOT EXECUTED
203fc9c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203fca0: da 04 20 10 ld [ %l0 + 0x10 ], %o5 <== NOT EXECUTED
203fca4: 80 a3 40 03 cmp %o5, %g3 <== NOT EXECUTED
203fca8: 0a 80 00 16 bcs 203fd00 <rtems_rfs_dir_empty+0x1f0> <== NOT EXECUTED
203fcac: 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)) ||
203fcb0: 12 bf ff d4 bne 203fc00 <rtems_rfs_dir_empty+0xf0> <== NOT EXECUTED
203fcb4: 80 a0 a0 0c cmp %g2, 0xc <== NOT EXECUTED
(entry[RTEMS_RFS_DIR_ENTRY_SIZE] != '.')) &&
203fcb8: c6 08 60 0a ldub [ %g1 + 0xa ], %g3 <== NOT EXECUTED
203fcbc: 80 a0 e0 2e cmp %g3, 0x2e <== NOT EXECUTED
203fcc0: 02 bf ff da be 203fc28 <rtems_rfs_dir_empty+0x118> <== NOT EXECUTED
203fcc4: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
break;
}
}
}
if ((rc == 0) && !empty)
203fcc8: 22 80 00 02 be,a 203fcd0 <rtems_rfs_dir_empty+0x1c0> <== NOT EXECUTED
203fccc: b0 10 20 5a mov 0x5a, %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);
203fcd0: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
203fcd4: 7f ff fb c3 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203fcd8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = ENOTEMPTY;
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_block_map_close (fs, &map);
203fcdc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
handle->dirty = false;
203fce0: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
203fce4: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
203fce8: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
203fcec: 7f ff fa 77 call 203e6c8 <rtems_rfs_block_map_close> <== NOT EXECUTED
203fcf0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
}
203fcf4: 81 c7 e0 08 ret <== NOT EXECUTED
203fcf8: 81 e8 00 00 restore <== NOT EXECUTED
offset += elength;
}
if (empty)
{
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
203fcfc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203fd00: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203fd04: 7f ff f8 15 call 203dd58 <rtems_rfs_block_map_next_block> <== NOT EXECUTED
203fd08: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
if (rc > 0)
203fd0c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203fd10: 04 bf ff 99 ble 203fb74 <rtems_rfs_dir_empty+0x64> <== NOT EXECUTED
203fd14: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
{
if (rc == ENXIO)
203fd18: 82 1e 20 06 xor %i0, 6, %g1 <== NOT EXECUTED
203fd1c: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
203fd20: 82 60 20 00 subx %g0, 0, %g1 <== NOT EXECUTED
203fd24: 10 bf ff eb b 203fcd0 <rtems_rfs_dir_empty+0x1c0> <== NOT EXECUTED
203fd28: b0 0e 00 01 and %i0, %g1, %i0 <== NOT EXECUTED
return rc;
rc = rtems_rfs_block_map_seek (fs, &map, 0, &block);
if (rc > 0)
{
rtems_rfs_block_map_close (fs, &map);
203fd2c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203fd30: 7f ff fa 66 call 203e6c8 <rtems_rfs_block_map_close> <== NOT EXECUTED
203fd34: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
203fd38: 81 c7 e0 08 ret <== NOT EXECUTED
203fd3c: 81 e8 00 00 restore <== NOT EXECUTED
020485d8 <rtems_rfs_dir_hash>:
*/
#define initval (20010928)
uint32_t
rtems_rfs_dir_hash (const void *key, size_t length)
{
20485d8: 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;
20485dc: 82 10 00 18 mov %i0, %g1 <== NOT EXECUTED
/*--------------- all but the last block: affect some 32 bits of (a,b,c) */
while (length > 12)
20485e0: 80 a6 60 0c cmp %i1, 0xc <== 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;
20485e4: 31 37 f7 c5 sethi %hi(0xdfdf1400), %i0 <== NOT EXECUTED
20485e8: b0 16 22 9f or %i0, 0x29f, %i0 ! dfdf169f <RAM_END+0xdd9f169f><== NOT EXECUTED
20485ec: b0 06 40 18 add %i1, %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)
20485f0: 98 10 00 18 mov %i0, %o4 <== NOT EXECUTED
20485f4: 08 80 00 4b bleu 2048720 <rtems_rfs_dir_hash+0x148> <== NOT EXECUTED
20485f8: 88 10 00 18 mov %i0, %g4 <== NOT EXECUTED
{
a += k[0];
20485fc: e6 08 60 01 ldub [ %g1 + 1 ], %l3 <== NOT EXECUTED
2048600: c4 08 60 02 ldub [ %g1 + 2 ], %g2 <== NOT EXECUTED
a += ((uint32_t)k[1])<<8;
2048604: e4 08 40 00 ldub [ %g1 ], %l2 <== NOT EXECUTED
a += ((uint32_t)k[2])<<16;
2048608: e2 08 60 03 ldub [ %g1 + 3 ], %l1 <== NOT EXECUTED
a += ((uint32_t)k[3])<<24;
b += k[4];
204860c: e0 08 60 06 ldub [ %g1 + 6 ], %l0 <== NOT EXECUTED
b += ((uint32_t)k[5])<<8;
b += ((uint32_t)k[6])<<16;
2048610: da 08 60 07 ldub [ %g1 + 7 ], %o5 <== 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];
2048614: d6 08 60 05 ldub [ %g1 + 5 ], %o3 <== NOT EXECUTED
b += ((uint32_t)k[5])<<8;
2048618: de 08 60 04 ldub [ %g1 + 4 ], %o7 <== NOT EXECUTED
b += ((uint32_t)k[6])<<16;
b += ((uint32_t)k[7])<<24;
c += k[8];
204861c: d0 08 60 09 ldub [ %g1 + 9 ], %o0 <== 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];
2048620: a7 2c e0 08 sll %l3, 8, %l3 <== NOT EXECUTED
2048624: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
a += ((uint32_t)k[1])<<8;
a += ((uint32_t)k[2])<<16;
2048628: 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];
204862c: 84 04 c0 02 add %l3, %g2, %g2 <== NOT EXECUTED
a += ((uint32_t)k[1])<<8;
2048630: 84 00 80 12 add %g2, %l2, %g2 <== NOT EXECUTED
a += ((uint32_t)k[2])<<16;
2048634: 84 00 80 11 add %g2, %l1, %g2 <== NOT EXECUTED
a += ((uint32_t)k[3])<<24;
2048638: 84 00 80 04 add %g2, %g4, %g2 <== NOT EXECUTED
b += k[4];
204863c: 89 2c 20 10 sll %l0, 0x10, %g4 <== NOT EXECUTED
b += ((uint32_t)k[5])<<8;
b += ((uint32_t)k[6])<<16;
b += ((uint32_t)k[7])<<24;
c += k[8];
2048640: c6 08 60 0a ldub [ %g1 + 0xa ], %g3 <== NOT EXECUTED
c += ((uint32_t)k[9])<<8;
c += ((uint32_t)k[10])<<16;
2048644: d4 08 60 0b ldub [ %g1 + 0xb ], %o2 <== 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];
2048648: 97 2a e0 08 sll %o3, 8, %o3 <== NOT EXECUTED
204864c: 96 02 c0 04 add %o3, %g4, %o3 <== NOT EXECUTED
b += ((uint32_t)k[5])<<8;
b += ((uint32_t)k[6])<<16;
2048650: 89 2b 60 18 sll %o5, 0x18, %g4 <== NOT EXECUTED
b += ((uint32_t)k[7])<<24;
c += k[8];
c += ((uint32_t)k[9])<<8;
2048654: d2 08 60 08 ldub [ %g1 + 8 ], %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];
b += ((uint32_t)k[5])<<8;
2048658: 96 02 c0 0f add %o3, %o7, %o3 <== NOT EXECUTED
b += ((uint32_t)k[6])<<16;
204865c: 96 02 c0 04 add %o3, %g4, %o3 <== NOT EXECUTED
b += ((uint32_t)k[7])<<24;
c += k[8];
2048660: 89 2a 20 08 sll %o0, 8, %g4 <== NOT EXECUTED
2048664: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
2048668: 86 01 00 03 add %g4, %g3, %g3 <== NOT EXECUTED
c += ((uint32_t)k[9])<<8;
c += ((uint32_t)k[10])<<16;
204866c: 89 2a a0 18 sll %o2, 0x18, %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;
2048670: 96 02 c0 0c add %o3, %o4, %o3 <== NOT EXECUTED
c += k[8];
c += ((uint32_t)k[9])<<8;
2048674: 86 00 c0 09 add %g3, %o1, %g3 <== NOT EXECUTED
c += ((uint32_t)k[10])<<16;
2048678: 86 00 c0 04 add %g3, %g4, %g3 <== NOT EXECUTED
c += ((uint32_t)k[11])<<24;
204867c: 86 00 c0 18 add %g3, %i0, %g3 <== NOT EXECUTED
mix(a,b,c);
2048680: 98 00 c0 0b add %g3, %o3, %o4 <== NOT EXECUTED
2048684: 89 30 e0 1c srl %g3, 0x1c, %g4 <== NOT EXECUTED
2048688: 84 20 80 03 sub %g2, %g3, %g2 <== NOT EXECUTED
204868c: 87 28 e0 04 sll %g3, 4, %g3 <== NOT EXECUTED
2048690: 86 11 00 03 or %g4, %g3, %g3 <== NOT EXECUTED
2048694: 84 18 80 03 xor %g2, %g3, %g2 <== NOT EXECUTED
2048698: 86 00 80 0c add %g2, %o4, %g3 <== NOT EXECUTED
204869c: 96 22 c0 02 sub %o3, %g2, %o3 <== NOT EXECUTED
20486a0: 9b 30 a0 1a srl %g2, 0x1a, %o5 <== NOT EXECUTED
20486a4: 85 28 a0 06 sll %g2, 6, %g2 <== NOT EXECUTED
20486a8: 9a 13 40 02 or %o5, %g2, %o5 <== NOT EXECUTED
20486ac: 9a 1b 40 0b xor %o5, %o3, %o5 <== NOT EXECUTED
20486b0: 98 23 00 0d sub %o4, %o5, %o4 <== NOT EXECUTED
20486b4: 84 03 40 03 add %o5, %g3, %g2 <== NOT EXECUTED
20486b8: 89 33 60 18 srl %o5, 0x18, %g4 <== NOT EXECUTED
20486bc: 9b 2b 60 08 sll %o5, 8, %o5 <== NOT EXECUTED
20486c0: 88 11 00 0d or %g4, %o5, %g4 <== NOT EXECUTED
20486c4: 88 19 00 0c xor %g4, %o4, %g4 <== NOT EXECUTED
20486c8: 99 31 20 10 srl %g4, 0x10, %o4 <== NOT EXECUTED
20486cc: 9a 01 00 02 add %g4, %g2, %o5 <== NOT EXECUTED
20486d0: 86 20 c0 04 sub %g3, %g4, %g3 <== NOT EXECUTED
20486d4: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
20486d8: 88 13 00 04 or %o4, %g4, %g4 <== NOT EXECUTED
20486dc: 86 19 00 03 xor %g4, %g3, %g3 <== NOT EXECUTED
20486e0: 99 30 e0 0d srl %g3, 0xd, %o4 <== NOT EXECUTED
20486e4: 88 00 c0 0d add %g3, %o5, %g4 <== NOT EXECUTED
20486e8: 84 20 80 03 sub %g2, %g3, %g2 <== NOT EXECUTED
length -= 12;
20486ec: 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);
20486f0: 87 28 e0 13 sll %g3, 0x13, %g3 <== NOT EXECUTED
length -= 12;
k += 12;
20486f4: 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);
20486f8: 86 13 00 03 or %o4, %g3, %g3 <== 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)
20486fc: 80 a6 60 0c cmp %i1, 0xc <== 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);
2048700: 84 18 c0 02 xor %g3, %g2, %g2 <== NOT EXECUTED
2048704: 9a 23 40 02 sub %o5, %g2, %o5 <== NOT EXECUTED
2048708: b1 30 a0 1c srl %g2, 0x1c, %i0 <== NOT EXECUTED
204870c: 98 00 80 04 add %g2, %g4, %o4 <== NOT EXECUTED
2048710: 85 28 a0 04 sll %g2, 4, %g2 <== NOT EXECUTED
2048714: b0 16 00 02 or %i0, %g2, %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)
2048718: 18 bf ff b9 bgu 20485fc <rtems_rfs_dir_hash+0x24> <== NOT EXECUTED
204871c: b0 1e 00 0d xor %i0, %o5, %i0 <== NOT EXECUTED
length -= 12;
k += 12;
}
/*-------------------------------- last block: affect all 32 bits of (c) */
switch(length) /* all the case statements fall through */
2048720: b3 2e 60 02 sll %i1, 2, %i1 <== NOT EXECUTED
2048724: 05 00 81 21 sethi %hi(0x2048400), %g2 <== NOT EXECUTED
2048728: 84 10 a1 a4 or %g2, 0x1a4, %g2 ! 20485a4 <rtems_rfs_buffer_bdbuf_request+0x54><== NOT EXECUTED
204872c: c4 00 80 19 ld [ %g2 + %i1 ], %g2 <== NOT EXECUTED
2048730: 81 c0 80 00 jmp %g2 <== NOT EXECUTED
2048734: 01 00 00 00 nop <== NOT EXECUTED
{
case 12: c+=((uint32_t)k[11])<<24;
2048738: c4 08 60 0b ldub [ %g1 + 0xb ], %g2 <== NOT EXECUTED
204873c: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED
2048740: b0 06 00 02 add %i0, %g2, %i0 <== NOT EXECUTED
case 11: c+=((uint32_t)k[10])<<16;
2048744: c4 08 60 0a ldub [ %g1 + 0xa ], %g2 <== NOT EXECUTED
2048748: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
204874c: b0 06 00 02 add %i0, %g2, %i0 <== NOT EXECUTED
case 10: c+=((uint32_t)k[9])<<8;
2048750: c4 08 60 09 ldub [ %g1 + 9 ], %g2 <== NOT EXECUTED
2048754: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2048758: b0 06 00 02 add %i0, %g2, %i0 <== NOT EXECUTED
case 9 : c+=k[8];
204875c: c4 08 60 08 ldub [ %g1 + 8 ], %g2 <== NOT EXECUTED
2048760: b0 06 00 02 add %i0, %g2, %i0 <== NOT EXECUTED
case 8 : b+=((uint32_t)k[7])<<24;
2048764: c4 08 60 07 ldub [ %g1 + 7 ], %g2 <== NOT EXECUTED
2048768: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED
204876c: 98 03 00 02 add %o4, %g2, %o4 <== NOT EXECUTED
case 7 : b+=((uint32_t)k[6])<<16;
2048770: c4 08 60 06 ldub [ %g1 + 6 ], %g2 <== NOT EXECUTED
2048774: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
2048778: 98 03 00 02 add %o4, %g2, %o4 <== NOT EXECUTED
case 6 : b+=((uint32_t)k[5])<<8;
204877c: c4 08 60 05 ldub [ %g1 + 5 ], %g2 <== NOT EXECUTED
2048780: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2048784: 98 03 00 02 add %o4, %g2, %o4 <== NOT EXECUTED
case 5 : b+=k[4];
2048788: c4 08 60 04 ldub [ %g1 + 4 ], %g2 <== NOT EXECUTED
204878c: 98 03 00 02 add %o4, %g2, %o4 <== NOT EXECUTED
case 4 : a+=((uint32_t)k[3])<<24;
2048790: c4 08 60 03 ldub [ %g1 + 3 ], %g2 <== NOT EXECUTED
2048794: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED
2048798: 88 01 00 02 add %g4, %g2, %g4 <== NOT EXECUTED
case 3 : a+=((uint32_t)k[2])<<16;
204879c: c4 08 60 02 ldub [ %g1 + 2 ], %g2 <== NOT EXECUTED
20487a0: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
20487a4: 88 01 00 02 add %g4, %g2, %g4 <== NOT EXECUTED
case 2 : a+=((uint32_t)k[1])<<8;
20487a8: c4 08 60 01 ldub [ %g1 + 1 ], %g2 <== NOT EXECUTED
20487ac: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
20487b0: 88 01 00 02 add %g4, %g2, %g4 <== NOT EXECUTED
case 1 : a+=k[0];
20487b4: c2 08 40 00 ldub [ %g1 ], %g1 <== NOT EXECUTED
break;
case 0 : return c;
}
}
final(a,b,c);
20487b8: 85 33 20 12 srl %o4, 0x12, %g2 <== 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];
20487bc: 88 01 00 01 add %g4, %g1, %g4 <== NOT EXECUTED
break;
case 0 : return c;
}
}
final(a,b,c);
20487c0: 83 2b 20 0e sll %o4, 0xe, %g1 <== NOT EXECUTED
20487c4: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
20487c8: b0 1e 00 0c xor %i0, %o4, %i0 <== NOT EXECUTED
20487cc: b0 26 00 01 sub %i0, %g1, %i0 <== NOT EXECUTED
20487d0: 85 36 20 15 srl %i0, 0x15, %g2 <== NOT EXECUTED
20487d4: 83 2e 20 0b sll %i0, 0xb, %g1 <== NOT EXECUTED
20487d8: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
20487dc: 88 1e 00 04 xor %i0, %g4, %g4 <== NOT EXECUTED
20487e0: 88 21 00 01 sub %g4, %g1, %g4 <== NOT EXECUTED
20487e4: 85 31 20 07 srl %g4, 7, %g2 <== NOT EXECUTED
20487e8: 83 29 20 19 sll %g4, 0x19, %g1 <== NOT EXECUTED
20487ec: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
20487f0: 98 19 00 0c xor %g4, %o4, %o4 <== NOT EXECUTED
20487f4: 98 23 00 01 sub %o4, %g1, %o4 <== NOT EXECUTED
20487f8: 85 33 20 10 srl %o4, 0x10, %g2 <== NOT EXECUTED
20487fc: 83 2b 20 10 sll %o4, 0x10, %g1 <== NOT EXECUTED
2048800: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
2048804: b0 1b 00 18 xor %o4, %i0, %i0 <== NOT EXECUTED
2048808: b0 26 00 01 sub %i0, %g1, %i0 <== NOT EXECUTED
204880c: 85 36 20 1c srl %i0, 0x1c, %g2 <== NOT EXECUTED
2048810: 83 2e 20 04 sll %i0, 4, %g1 <== NOT EXECUTED
2048814: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
2048818: 88 1e 00 04 xor %i0, %g4, %g4 <== NOT EXECUTED
204881c: 88 21 00 01 sub %g4, %g1, %g4 <== NOT EXECUTED
2048820: 83 29 20 0e sll %g4, 0xe, %g1 <== NOT EXECUTED
2048824: 98 19 00 0c xor %g4, %o4, %o4 <== NOT EXECUTED
2048828: 89 31 20 12 srl %g4, 0x12, %g4 <== NOT EXECUTED
204882c: 88 11 00 01 or %g4, %g1, %g4 <== NOT EXECUTED
2048830: 98 23 00 04 sub %o4, %g4, %o4 <== NOT EXECUTED
2048834: b0 1b 00 18 xor %o4, %i0, %i0 <== NOT EXECUTED
2048838: 83 2b 20 18 sll %o4, 0x18, %g1 <== NOT EXECUTED
204883c: 99 33 20 08 srl %o4, 8, %o4 <== NOT EXECUTED
2048840: 98 13 00 01 or %o4, %g1, %o4 <== NOT EXECUTED
2048844: b0 26 00 0c sub %i0, %o4, %i0 <== NOT EXECUTED
return c;
}
2048848: 81 c7 e0 08 ret <== NOT EXECUTED
204884c: 81 e8 00 00 restore <== NOT EXECUTED
0203f894 <rtems_rfs_dir_lookup_ino>:
rtems_rfs_inode_handle* inode,
const char* name,
int length,
rtems_rfs_ino* ino,
uint32_t* offset)
{
203f894: 9d e3 bf 38 save %sp, -200, %sp <== NOT EXECUTED
for (c = 0; c < length; c++)
printf ("%c", name[c]);
printf (", len=%d\n", length);
}
*ino = RTEMS_RFS_EMPTY_INO;
203f898: c0 27 00 00 clr [ %i4 ] <== NOT EXECUTED
*offset = 0;
rc = rtems_rfs_block_map_open (fs, inode, &map);
203f89c: 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)
{
203f8a0: 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);
203f8a4: 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;
203f8a8: c0 27 40 00 clr [ %i5 ] <== NOT EXECUTED
rc = rtems_rfs_block_map_open (fs, inode, &map);
203f8ac: a2 07 bf a0 add %fp, -96, %l1 <== NOT EXECUTED
203f8b0: 7f ff fb f7 call 203e88c <rtems_rfs_block_map_open> <== NOT EXECUTED
203f8b4: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc > 0)
203f8b8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203f8bc: 14 80 00 20 bg 203f93c <rtems_rfs_dir_lookup_ino+0xa8> <== NOT EXECUTED
203f8c0: 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;
203f8c4: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
203f8c8: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
203f8cc: 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);
203f8d0: 40 00 23 42 call 20485d8 <rtems_rfs_dir_hash> <== NOT EXECUTED
203f8d4: 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);
203f8d8: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED
uint32_t hash;
/*
* Calculate the hash of the look up string.
*/
hash = rtems_rfs_dir_hash (name, length);
203f8dc: a4 10 00 08 mov %o0, %l2 <== 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);
203f8e0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203f8e4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203f8e8: 94 10 20 00 clr %o2 <== NOT EXECUTED
203f8ec: 96 10 20 00 clr %o3 <== NOT EXECUTED
203f8f0: 98 10 00 13 mov %l3, %o4 <== NOT EXECUTED
203f8f4: 7f ff f9 26 call 203dd8c <rtems_rfs_block_map_seek> <== NOT EXECUTED
203f8f8: 29 00 00 3f sethi %hi(0xfc00), %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)
203f8fc: a8 15 23 ff or %l4, 0x3ff, %l4 ! ffff <PROM_START+0xffff> <== 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);
if (rc > 0)
203f900: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203f904: 04 80 00 1b ble 203f970 <rtems_rfs_dir_lookup_ino+0xdc> <== NOT EXECUTED
203f908: aa 07 bf f0 add %fp, -16, %l5 <== 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)
203f90c: 80 a6 20 06 cmp %i0, 6 <== NOT EXECUTED
203f910: 22 80 00 02 be,a 203f918 <rtems_rfs_dir_lookup_ino+0x84> <== NOT EXECUTED
203f914: b0 10 20 02 mov 2, %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);
203f918: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
203f91c: 7f ff fc b1 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203f920: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = ENOENT;
rtems_rfs_buffer_handle_close (fs, &entries);
rtems_rfs_block_map_close (fs, &map);
203f924: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
handle->dirty = false;
203f928: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
203f92c: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
203f930: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
203f934: 7f ff fb 65 call 203e6c8 <rtems_rfs_block_map_close> <== NOT EXECUTED
203f938: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
203f93c: 81 c7 e0 08 ret <== NOT EXECUTED
203f940: 81 e8 00 00 restore <== NOT EXECUTED
map.bpos.boff += elength;
entry += elength;
}
if (rc == 0)
203f944: c2 07 bf 9c ld [ %fp + -100 ], %g1 <== NOT EXECUTED
203f948: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203f94c: 12 80 00 65 bne 203fae0 <rtems_rfs_dir_lookup_ino+0x24c> <== NOT EXECUTED
203f950: f0 07 bf 9c ld [ %fp + -100 ], %i0 <== NOT EXECUTED
{
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
203f954: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203f958: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203f95c: 7f ff f8 ff call 203dd58 <rtems_rfs_block_map_next_block> <== NOT EXECUTED
203f960: 94 10 00 13 mov %l3, %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)
203f964: 80 a2 20 06 cmp %o0, 6 <== NOT EXECUTED
203f968: 02 80 00 66 be 203fb00 <rtems_rfs_dir_lookup_ino+0x26c> <== NOT EXECUTED
203f96c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &entries);
rtems_rfs_block_map_close (fs, &map);
return rc;
}
while ((rc == 0) && block)
203f970: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
203f974: 12 80 00 5b bne 203fae0 <rtems_rfs_dir_lookup_ino+0x24c> <== NOT EXECUTED
203f978: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
203f97c: 80 a2 a0 00 cmp %o2, 0 <== NOT EXECUTED
203f980: 02 80 00 62 be 203fb08 <rtems_rfs_dir_lookup_ino+0x274> <== NOT EXECUTED
203f984: 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);
203f988: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
203f98c: 7f ff fc de call 203ed04 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203f990: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
203f994: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203f998: 14 80 00 51 bg 203fadc <rtems_rfs_dir_lookup_ino+0x248> <== NOT EXECUTED
203f99c: d0 27 bf 9c st %o0, [ %fp + -100 ] <== 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))
203f9a0: f2 04 20 08 ld [ %l0 + 8 ], %i1 <== NOT EXECUTED
/*
* Search the block to see if the name matches. A hash of 0xffff or 0x0
* means the entry is empty.
*/
entry = rtems_rfs_buffer_data (&entries);
203f9a4: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
map.bpos.boff = 0;
203f9a8: c0 27 bf b4 clr [ %fp + -76 ] <== NOT EXECUTED
while (map.bpos.boff < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
203f9ac: 80 a6 60 0a cmp %i1, 0xa <== NOT EXECUTED
203f9b0: 02 bf ff e5 be 203f944 <rtems_rfs_dir_lookup_ino+0xb0> <== NOT EXECUTED
203f9b4: ec 00 60 24 ld [ %g1 + 0x24 ], %l6 <== NOT EXECUTED
203f9b8: 10 80 00 07 b 203f9d4 <rtems_rfs_dir_lookup_ino+0x140> <== NOT EXECUTED
203f9bc: b2 06 7f f6 add %i1, -10, %i1 <== NOT EXECUTED
return 0;
}
}
map.bpos.boff += elength;
entry += elength;
203f9c0: ac 05 80 17 add %l6, %l7, %l6 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
return 0;
}
}
map.bpos.boff += elength;
203f9c4: ae 05 c0 01 add %l7, %g1, %l7 <== 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))
203f9c8: 80 a6 40 17 cmp %i1, %l7 <== NOT EXECUTED
203f9cc: 08 bf ff de bleu 203f944 <rtems_rfs_dir_lookup_ino+0xb0> <== NOT EXECUTED
203f9d0: ee 27 bf b4 st %l7, [ %fp + -76 ] <== 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);
203f9d4: c8 0d a0 01 ldub [ %l6 + 1 ], %g4 <== NOT EXECUTED
203f9d8: c6 0d a0 02 ldub [ %l6 + 2 ], %g3 <== NOT EXECUTED
203f9dc: da 0d a0 03 ldub [ %l6 + 3 ], %o5 <== NOT EXECUTED
203f9e0: 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);
203f9e4: ee 0d a0 08 ldub [ %l6 + 8 ], %l7 <== NOT EXECUTED
203f9e8: c4 0d a0 09 ldub [ %l6 + 9 ], %g2 <== NOT EXECUTED
*ino = rtems_rfs_dir_entry_ino (entry);
203f9ec: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
203f9f0: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
203f9f4: 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);
203f9f8: d8 0d a0 07 ldub [ %l6 + 7 ], %o4 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
*ino = rtems_rfs_dir_entry_ino (entry);
203f9fc: 82 13 40 01 or %o5, %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);
203fa00: da 0d a0 06 ldub [ %l6 + 6 ], %o5 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
*ino = rtems_rfs_dir_entry_ino (entry);
203fa04: 82 10 40 04 or %g1, %g4, %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);
203fa08: c8 0d a0 05 ldub [ %l6 + 5 ], %g4 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
*ino = rtems_rfs_dir_entry_ino (entry);
203fa0c: 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);
203fa10: c6 0d a0 04 ldub [ %l6 + 4 ], %g3 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
203fa14: af 2d e0 08 sll %l7, 8, %l7 <== NOT EXECUTED
203fa18: ae 15 c0 02 or %l7, %g2, %l7 <== NOT EXECUTED
*ino = rtems_rfs_dir_entry_ino (entry);
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203fa1c: 80 a5 c0 14 cmp %l7, %l4 <== NOT EXECUTED
203fa20: 02 bf ff c9 be 203f944 <rtems_rfs_dir_lookup_ino+0xb0> <== NOT EXECUTED
203fa24: c2 27 00 00 st %g1, [ %i4 ] <== NOT EXECUTED
break;
if (rtems_rfs_dir_entry_valid (fs, elength, *ino))
203fa28: 80 a5 e0 0a cmp %l7, 0xa <== NOT EXECUTED
203fa2c: 24 80 00 2b ble,a 203fad8 <rtems_rfs_dir_lookup_ino+0x244><== NOT EXECUTED
203fa30: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203fa34: c4 04 20 18 ld [ %l0 + 0x18 ], %g2 <== NOT EXECUTED
203fa38: 80 a5 c0 02 cmp %l7, %g2 <== NOT EXECUTED
203fa3c: 1a 80 00 26 bcc 203fad4 <rtems_rfs_dir_lookup_ino+0x240> <== NOT EXECUTED
203fa40: 87 28 e0 18 sll %g3, 0x18, %g3 <== NOT EXECUTED
203fa44: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203fa48: 22 80 00 24 be,a 203fad8 <rtems_rfs_dir_lookup_ino+0x244><== NOT EXECUTED
203fa4c: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203fa50: c4 04 20 10 ld [ %l0 + 0x10 ], %g2 <== NOT EXECUTED
203fa54: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203fa58: 18 80 00 1f bgu 203fad4 <rtems_rfs_dir_lookup_ino+0x240> <== NOT EXECUTED
203fa5c: 88 09 20 ff and %g4, 0xff, %g4 <== NOT EXECUTED
rtems_rfs_inode_ino (inode), elength, *ino, map.bpos.boff);
rc = EIO;
break;
}
if (ehash == hash)
203fa60: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
203fa64: 98 0b 20 ff and %o4, 0xff, %o4 <== NOT EXECUTED
203fa68: 86 10 c0 04 or %g3, %g4, %g3 <== NOT EXECUTED
203fa6c: 9a 0b 60 ff and %o5, 0xff, %o5 <== NOT EXECUTED
203fa70: 86 10 c0 0c or %g3, %o4, %g3 <== NOT EXECUTED
203fa74: 9b 2b 60 08 sll %o5, 8, %o5 <== NOT EXECUTED
203fa78: 86 10 c0 0d or %g3, %o5, %g3 <== NOT EXECUTED
203fa7c: 80 a4 80 03 cmp %l2, %g3 <== NOT EXECUTED
203fa80: 12 bf ff d0 bne 203f9c0 <rtems_rfs_dir_lookup_ino+0x12c> <== NOT EXECUTED
203fa84: 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)
203fa88: 90 05 a0 0a add %l6, 0xa, %o0 <== NOT EXECUTED
203fa8c: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
203fa90: 40 00 31 88 call 204c0b0 <memcmp> <== NOT EXECUTED
203fa94: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED
203fa98: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203fa9c: 12 bf ff c9 bne 203f9c0 <rtems_rfs_dir_lookup_ino+0x12c> <== NOT EXECUTED
203faa0: c2 07 bf b4 ld [ %fp + -76 ], %g1 <== NOT EXECUTED
{
*offset = rtems_rfs_block_map_pos (fs, &map);
203faa4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203faa8: 7f ff f7 f3 call 203da74 <rtems_rfs_block_get_pos> <== NOT EXECUTED
203faac: 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);
203fab0: 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);
203fab4: 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);
203fab8: 7f ff fd 22 call 203ef40 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203fabc: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
203fac0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203fac4: 7f ff fb 01 call 203e6c8 <rtems_rfs_block_map_close> <== NOT EXECUTED
203fac8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return 0;
203facc: 81 c7 e0 08 ret <== NOT EXECUTED
203fad0: 81 e8 00 00 restore <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &entries);
rtems_rfs_block_map_close (fs, &map);
return rc;
}
while ((rc == 0) && block)
203fad4: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203fad8: c2 27 bf 9c st %g1, [ %fp + -100 ] <== NOT EXECUTED
203fadc: f0 07 bf 9c ld [ %fp + -100 ], %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);
203fae0: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
203fae4: 7f ff fd 17 call 203ef40 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203fae8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
203faec: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203faf0: 7f ff fa f6 call 203e6c8 <rtems_rfs_block_map_close> <== NOT EXECUTED
203faf4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
}
203faf8: 81 c7 e0 08 ret <== NOT EXECUTED
203fafc: 81 e8 00 00 restore <== 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)
203fb00: 10 bf ff f8 b 203fae0 <rtems_rfs_dir_lookup_ino+0x24c> <== NOT EXECUTED
203fb04: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &entries);
rtems_rfs_block_map_close (fs, &map);
return rc;
}
while ((rc == 0) && block)
203fb08: 10 bf ff f6 b 203fae0 <rtems_rfs_dir_lookup_ino+0x24c> <== NOT EXECUTED
203fb0c: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
0203ef68 <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)
{
203ef68: 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);
203ef6c: 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)
{
203ef70: 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);
203ef74: 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;
203ef78: c0 27 40 00 clr [ %i5 ] <== NOT EXECUTED
rc = rtems_rfs_block_map_open (fs, dir, &map);
203ef7c: a2 07 bf a0 add %fp, -96, %l1 <== NOT EXECUTED
203ef80: 7f ff fe 43 call 203e88c <rtems_rfs_block_map_open> <== NOT EXECUTED
203ef84: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc > 0)
203ef88: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203ef8c: 24 80 00 04 ble,a 203ef9c <rtems_rfs_dir_read+0x34> <== NOT EXECUTED
203ef90: e4 04 20 08 ld [ %l0 + 8 ], %l2 <== NOT EXECUTED
}
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_block_map_close (fs, &map);
return rc;
}
203ef94: 81 c7 e0 08 ret <== NOT EXECUTED
203ef98: 81 e8 00 00 restore <== NOT EXECUTED
rc = rtems_rfs_block_map_open (fs, dir, &map);
if (rc > 0)
return rc;
if (((rtems_rfs_fs_block_size (fs) -
203ef9c: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
(offset % rtems_rfs_fs_block_size (fs))) <= RTEMS_RFS_DIR_ENTRY_SIZE))
203efa0: 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) -
203efa4: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
(offset % rtems_rfs_fs_block_size (fs))) <= RTEMS_RFS_DIR_ENTRY_SIZE))
203efa8: 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) -
203efac: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
203efb0: 40 00 8a f7 call 2061b8c <__moddi3> <== NOT EXECUTED
203efb4: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
203efb8: 86 a4 c0 09 subcc %l3, %o1, %g3 <== NOT EXECUTED
203efbc: 84 64 80 08 subx %l2, %o0, %g2 <== NOT EXECUTED
203efc0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203efc4: 04 80 00 12 ble 203f00c <rtems_rfs_dir_read+0xa4> <== NOT EXECUTED
203efc8: 01 00 00 00 nop <== NOT EXECUTED
(offset % rtems_rfs_fs_block_size (fs))) <= RTEMS_RFS_DIR_ENTRY_SIZE))
offset = (((offset / rtems_rfs_fs_block_size (fs)) + 1) *
rtems_rfs_fs_block_size (fs));
rc = rtems_rfs_block_map_seek (fs, &map, offset, &block);
203efcc: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
203efd0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203efd4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203efd8: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
203efdc: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
203efe0: 7f ff fb 6b call 203dd8c <rtems_rfs_block_map_seek> <== NOT EXECUTED
203efe4: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED
if (rc > 0)
203efe8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203efec: 04 80 00 1f ble 203f068 <rtems_rfs_dir_read+0x100> <== NOT EXECUTED
203eff0: 80 a6 20 06 cmp %i0, 6 <== NOT EXECUTED
{
if (rc == ENXIO)
203eff4: 02 80 00 18 be 203f054 <rtems_rfs_dir_read+0xec> <== NOT EXECUTED
203eff8: 90 10 00 10 mov %l0, %o0 <== 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);
203effc: 7f ff fd b3 call 203e6c8 <rtems_rfs_block_map_close> <== NOT EXECUTED
203f000: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
203f004: 81 c7 e0 08 ret <== NOT EXECUTED
203f008: 81 e8 00 00 restore <== NOT EXECUTED
rc = rtems_rfs_block_map_open (fs, dir, &map);
if (rc > 0)
return rc;
if (((rtems_rfs_fs_block_size (fs) -
203f00c: 12 80 00 06 bne 203f024 <rtems_rfs_dir_read+0xbc> <== NOT EXECUTED
203f010: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
203f014: 80 a0 e0 0a cmp %g3, 0xa <== NOT EXECUTED
203f018: 38 bf ff ee bgu,a 203efd0 <rtems_rfs_dir_read+0x68> <== NOT EXECUTED
203f01c: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
(offset % rtems_rfs_fs_block_size (fs))) <= RTEMS_RFS_DIR_ENTRY_SIZE))
offset = (((offset / rtems_rfs_fs_block_size (fs)) + 1) *
203f020: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
203f024: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
203f028: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
203f02c: 40 00 89 f1 call 20617f0 <__divdi3> <== NOT EXECUTED
203f030: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
203f034: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
203f038: 92 82 60 01 inccc %o1 <== NOT EXECUTED
203f03c: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
203f040: 40 00 89 86 call 2061658 <__muldi3> <== NOT EXECUTED
203f044: 90 42 20 00 addx %o0, 0, %o0 <== NOT EXECUTED
203f048: b4 10 00 08 mov %o0, %i2 <== NOT EXECUTED
203f04c: 10 bf ff e0 b 203efcc <rtems_rfs_dir_read+0x64> <== NOT EXECUTED
203f050: 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);
if (rc > 0)
{
if (rc == ENXIO)
203f054: 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);
203f058: 7f ff fd 9c call 203e6c8 <rtems_rfs_block_map_close> <== NOT EXECUTED
203f05c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
203f060: 81 c7 e0 08 ret <== NOT EXECUTED
203f064: 81 e8 00 00 restore <== 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)
203f068: 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;
203f06c: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
203f070: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
203f074: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
203f078: a8 15 23 ff or %l4, 0x3ff, %l4 <== NOT EXECUTED
203f07c: 10 80 00 05 b 203f090 <rtems_rfs_dir_read+0x128> <== NOT EXECUTED
203f080: a6 07 bf f0 add %fp, -16, %l3 <== NOT EXECUTED
/*
* Look for an empty entry and if this is the last block that is the end of
* the directory.
*/
while (rc == 0)
203f084: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203f088: 12 80 00 2f bne 203f144 <rtems_rfs_dir_read+0x1dc> <== NOT EXECUTED
203f08c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
uint8_t* entry;
rtems_rfs_ino eino;
int elength;
int remaining;
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
203f090: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
203f094: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203f098: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
203f09c: 7f ff ff 1a call 203ed04 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203f0a0: 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);
203f0a4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
uint8_t* entry;
rtems_rfs_ino eino;
int elength;
int remaining;
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
203f0a8: 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);
203f0ac: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
rtems_rfs_ino eino;
int elength;
int remaining;
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
if (rc > 0)
203f0b0: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
203f0b4: 14 80 00 2b bg 203f160 <rtems_rfs_dir_read+0x1f8> <== NOT EXECUTED
203f0b8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_block_map_close (fs, &map);
return rc;
}
entry = rtems_rfs_buffer_data (&buffer);
203f0bc: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
entry += map.bpos.boff;
203f0c0: c4 07 bf b4 ld [ %fp + -76 ], %g2 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_block_map_close (fs, &map);
return rc;
}
entry = rtems_rfs_buffer_data (&buffer);
203f0c4: ea 00 60 24 ld [ %g1 + 0x24 ], %l5 <== NOT EXECUTED
entry += map.bpos.boff;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
203f0c8: c6 0d 40 02 ldub [ %l5 + %g2 ], %g3 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
return rc;
}
entry = rtems_rfs_buffer_data (&buffer);
entry += map.bpos.boff;
203f0cc: aa 05 40 02 add %l5, %g2, %l5 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
203f0d0: c2 0d 60 02 ldub [ %l5 + 2 ], %g1 <== NOT EXECUTED
}
entry = rtems_rfs_buffer_data (&buffer);
entry += map.bpos.boff;
elength = rtems_rfs_dir_entry_length (entry);
203f0d4: ec 0d 60 08 ldub [ %l5 + 8 ], %l6 <== NOT EXECUTED
203f0d8: d8 0d 60 09 ldub [ %l5 + 9 ], %o4 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203f0dc: da 0d 60 03 ldub [ %l5 + 3 ], %o5 <== NOT EXECUTED
203f0e0: c8 0d 60 01 ldub [ %l5 + 1 ], %g4 <== NOT EXECUTED
203f0e4: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
}
entry = rtems_rfs_buffer_data (&buffer);
entry += map.bpos.boff;
elength = rtems_rfs_dir_entry_length (entry);
203f0e8: ad 2d a0 08 sll %l6, 8, %l6 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203f0ec: 87 28 e0 18 sll %g3, 0x18, %g3 <== NOT EXECUTED
}
entry = rtems_rfs_buffer_data (&buffer);
entry += map.bpos.boff;
elength = rtems_rfs_dir_entry_length (entry);
203f0f0: ac 15 80 0c or %l6, %o4, %l6 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203f0f4: 86 13 40 03 or %o5, %g3, %g3 <== NOT EXECUTED
203f0f8: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
if (elength != RTEMS_RFS_DIR_ENTRY_EMPTY)
203f0fc: 80 a5 80 14 cmp %l6, %l4 <== NOT EXECUTED
entry = rtems_rfs_buffer_data (&buffer);
entry += map.bpos.boff;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
203f100: 86 10 c0 04 or %g3, %g4, %g3 <== NOT EXECUTED
203f104: ae 05 60 02 add %l5, 2, %l7 <== NOT EXECUTED
203f108: 86 10 c0 01 or %g3, %g1, %g3 <== NOT EXECUTED
203f10c: b2 05 60 03 add %l5, 3, %i1 <== NOT EXECUTED
if (elength != RTEMS_RFS_DIR_ENTRY_EMPTY)
203f110: 12 80 00 18 bne 203f170 <rtems_rfs_dir_read+0x208> <== NOT EXECUTED
203f114: 82 05 60 01 add %l5, 1, %g1 <== NOT EXECUTED
printf ("rtems-rfs: dir-read: found off:%" PRIdoff_t " ino:%ld name=%s\n",
dirent->d_off, dirent->d_ino, dirent->d_name);
break;
}
*length += rtems_rfs_fs_block_size (fs) - map.bpos.boff;
203f118: c6 04 20 08 ld [ %l0 + 8 ], %g3 <== NOT EXECUTED
203f11c: c2 07 40 00 ld [ %i5 ], %g1 <== NOT EXECUTED
203f120: 84 20 c0 02 sub %g3, %g2, %g2 <== NOT EXECUTED
203f124: 84 00 40 02 add %g1, %g2, %g2 <== 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);
203f128: 7f ff fb 0c call 203dd58 <rtems_rfs_block_map_next_block> <== NOT EXECUTED
203f12c: c4 27 40 00 st %g2, [ %i5 ] <== NOT EXECUTED
if (rc == ENXIO)
203f130: 80 a2 20 06 cmp %o0, 6 <== NOT EXECUTED
203f134: 12 bf ff d4 bne 203f084 <rtems_rfs_dir_read+0x11c> <== NOT EXECUTED
203f138: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
203f13c: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
rc = ENOENT;
}
rtems_rfs_buffer_handle_close (fs, &buffer);
203f140: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203f144: 7f ff ff 7f call 203ef40 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203f148: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
203f14c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203f150: 7f ff fd 5e call 203e6c8 <rtems_rfs_block_map_close> <== NOT EXECUTED
203f154: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
}
203f158: 81 c7 e0 08 ret <== NOT EXECUTED
203f15c: 81 e8 00 00 restore <== NOT EXECUTED
int remaining;
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
if (rc > 0)
{
rtems_rfs_buffer_handle_close (fs, &buffer);
203f160: 7f ff ff 78 call 203ef40 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203f164: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
203f168: 10 bf ff a5 b 203effc <rtems_rfs_dir_read+0x94> <== NOT EXECUTED
203f16c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
if (elength != RTEMS_RFS_DIR_ENTRY_EMPTY)
{
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
203f170: 80 a5 a0 0a cmp %l6, 0xa <== NOT EXECUTED
203f174: 34 80 00 04 bg,a 203f184 <rtems_rfs_dir_read+0x21c> <== NOT EXECUTED
203f178: c4 04 20 18 ld [ %l0 + 0x18 ], %g2 <== NOT EXECUTED
/*
* Look for an empty entry and if this is the last block that is the end of
* the directory.
*/
while (rc == 0)
203f17c: 10 bf ff f1 b 203f140 <rtems_rfs_dir_read+0x1d8> <== NOT EXECUTED
203f180: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
if (elength != RTEMS_RFS_DIR_ENTRY_EMPTY)
{
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
203f184: 80 a5 80 02 cmp %l6, %g2 <== NOT EXECUTED
203f188: 3a bf ff ee bcc,a 203f140 <rtems_rfs_dir_read+0x1d8> <== NOT EXECUTED
203f18c: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
203f190: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
203f194: 22 bf ff eb be,a 203f140 <rtems_rfs_dir_read+0x1d8> <== NOT EXECUTED
203f198: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
203f19c: c4 04 20 10 ld [ %l0 + 0x10 ], %g2 <== NOT EXECUTED
203f1a0: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED
203f1a4: 38 bf ff e7 bgu,a 203f140 <rtems_rfs_dir_read+0x1d8> <== NOT EXECUTED
203f1a8: 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));
203f1ac: c2 27 bf 9c st %g1, [ %fp + -100 ] <== NOT EXECUTED
203f1b0: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
203f1b4: 92 10 20 00 clr %o1 <== NOT EXECUTED
203f1b8: 40 00 34 82 call 204c3c0 <memset> <== NOT EXECUTED
203f1bc: 94 10 21 18 mov 0x118, %o2 <== NOT EXECUTED
dirent->d_off = offset;
dirent->d_reclen = sizeof (struct dirent);
*length += elength;
203f1c0: c4 07 40 00 ld [ %i5 ], %g2 <== NOT EXECUTED
rtems_rfs_inode_ino (dir), elength, eino, map.bpos.boff);
rc = EIO;
break;
}
memset (dirent, 0, sizeof (struct dirent));
203f1c4: 86 10 21 18 mov 0x118, %g3 <== NOT EXECUTED
dirent->d_off = offset;
dirent->d_reclen = sizeof (struct dirent);
*length += elength;
203f1c8: 84 05 80 02 add %l6, %g2, %g2 <== NOT EXECUTED
break;
}
memset (dirent, 0, sizeof (struct dirent));
dirent->d_off = offset;
dirent->d_reclen = sizeof (struct dirent);
203f1cc: c6 37 20 10 sth %g3, [ %i4 + 0x10 ] <== NOT EXECUTED
*length += elength;
203f1d0: c4 27 40 00 st %g2, [ %i5 ] <== NOT EXECUTED
remaining = rtems_rfs_fs_block_size (fs) - (map.bpos.boff + elength);
203f1d4: c6 07 bf b4 ld [ %fp + -76 ], %g3 <== NOT EXECUTED
203f1d8: c8 04 20 08 ld [ %l0 + 8 ], %g4 <== NOT EXECUTED
rc = EIO;
break;
}
memset (dirent, 0, sizeof (struct dirent));
dirent->d_off = offset;
203f1dc: f4 3f 20 08 std %i2, [ %i4 + 8 ] <== NOT EXECUTED
dirent->d_reclen = sizeof (struct dirent);
*length += elength;
remaining = rtems_rfs_fs_block_size (fs) - (map.bpos.boff + elength);
203f1e0: 86 21 00 03 sub %g4, %g3, %g3 <== NOT EXECUTED
203f1e4: 86 20 c0 16 sub %g3, %l6, %g3 <== NOT EXECUTED
if (remaining <= RTEMS_RFS_DIR_ENTRY_SIZE)
203f1e8: 80 a0 e0 0a cmp %g3, 0xa <== NOT EXECUTED
203f1ec: 14 80 00 04 bg 203f1fc <rtems_rfs_dir_read+0x294> <== NOT EXECUTED
203f1f0: c2 07 bf 9c ld [ %fp + -100 ], %g1 <== NOT EXECUTED
*length += remaining;
203f1f4: 84 00 c0 02 add %g3, %g2, %g2 <== NOT EXECUTED
203f1f8: c4 27 40 00 st %g2, [ %i5 ] <== NOT EXECUTED
elength -= RTEMS_RFS_DIR_ENTRY_SIZE;
203f1fc: ac 05 bf f6 add %l6, -10, %l6 <== NOT EXECUTED
203f200: 80 a5 a0 ff cmp %l6, 0xff <== NOT EXECUTED
203f204: 34 80 00 02 bg,a 203f20c <rtems_rfs_dir_read+0x2a4> <== NOT EXECUTED
203f208: 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);
203f20c: c2 27 bf 9c st %g1, [ %fp + -100 ] <== NOT EXECUTED
203f210: 90 07 20 14 add %i4, 0x14, %o0 <== NOT EXECUTED
203f214: 92 05 60 0a add %l5, 0xa, %o1 <== NOT EXECUTED
203f218: 40 00 33 d7 call 204c174 <memcpy> <== NOT EXECUTED
203f21c: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED
dirent->d_ino = rtems_rfs_dir_entry_ino (entry);
203f220: c2 07 bf 9c ld [ %fp + -100 ], %g1 <== NOT EXECUTED
203f224: c8 0d 40 00 ldub [ %l5 ], %g4 <== NOT EXECUTED
203f228: c6 08 40 00 ldub [ %g1 ], %g3 <== NOT EXECUTED
203f22c: c4 0e 40 00 ldub [ %i1 ], %g2 <== NOT EXECUTED
203f230: c2 0d c0 00 ldub [ %l7 ], %g1 <== NOT EXECUTED
203f234: 89 29 20 18 sll %g4, 0x18, %g4 <== NOT EXECUTED
203f238: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
203f23c: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
203f240: 86 11 00 03 or %g4, %g3, %g3 <== NOT EXECUTED
dirent->d_namlen = elength;
203f244: 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);
203f248: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED
203f24c: 82 10 80 01 or %g2, %g1, %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;
203f250: 10 bf ff bc b 203f140 <rtems_rfs_dir_read+0x1d8> <== NOT EXECUTED
203f254: c2 27 00 00 st %g1, [ %i4 ] <== NOT EXECUTED
02040548 <rtems_rfs_file_close>:
}
int
rtems_rfs_file_close (rtems_rfs_file_system* fs,
rtems_rfs_file_handle* handle)
{
2040548: 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)
204054c: d2 06 60 1c ld [ %i1 + 0x1c ], %o1 <== NOT EXECUTED
2040550: c2 02 60 08 ld [ %o1 + 8 ], %g1 <== NOT EXECUTED
2040554: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2040558: 04 80 00 04 ble 2040568 <rtems_rfs_file_close+0x20> <== NOT EXECUTED
204055c: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
handle->shared->references--;
2040560: c2 22 60 08 st %g1, [ %o1 + 8 ] <== NOT EXECUTED
if (handle->shared->references == 0)
2040564: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2040568: 12 80 00 51 bne 20406ac <rtems_rfs_file_close+0x164> <== NOT EXECUTED
204056c: a0 10 20 00 clr %l0 <== NOT EXECUTED
{
if (!rtems_rfs_inode_is_loaded (&handle->shared->inode))
2040570: c2 02 60 18 ld [ %o1 + 0x18 ], %g1 <== NOT EXECUTED
2040574: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2040578: 22 80 00 5f be,a 20406f4 <rtems_rfs_file_close+0x1ac> <== NOT EXECUTED
204057c: 92 02 60 0c add %o1, 0xc, %o1 <== NOT EXECUTED
if (rrc == 0)
{
/*
* @todo This could be clever and only update if different.
*/
rtems_rfs_inode_set_atime (&handle->shared->inode,
2040580: c4 02 60 8c ld [ %o1 + 0x8c ], %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);
2040584: 86 10 20 01 mov 1, %g3 <== 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);
2040588: 89 30 a0 18 srl %g2, 0x18, %g4 <== NOT EXECUTED
204058c: c8 28 60 10 stb %g4, [ %g1 + 0x10 ] <== NOT EXECUTED
2040590: c2 02 60 18 ld [ %o1 + 0x18 ], %g1 <== NOT EXECUTED
2040594: 89 30 a0 10 srl %g2, 0x10, %g4 <== NOT EXECUTED
2040598: c8 28 60 11 stb %g4, [ %g1 + 0x11 ] <== NOT EXECUTED
204059c: c2 02 60 18 ld [ %o1 + 0x18 ], %g1 <== NOT EXECUTED
20405a0: 89 30 a0 08 srl %g2, 8, %g4 <== NOT EXECUTED
20405a4: c8 28 60 12 stb %g4, [ %g1 + 0x12 ] <== NOT EXECUTED
20405a8: c2 02 60 18 ld [ %o1 + 0x18 ], %g1 <== NOT EXECUTED
20405ac: c4 28 60 13 stb %g2, [ %g1 + 0x13 ] <== NOT EXECUTED
handle->shared->atime);
rtems_rfs_inode_set_mtime (&handle->shared->inode,
20405b0: c4 06 60 1c ld [ %i1 + 0x1c ], %g2 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
20405b4: c6 2a 60 1c stb %g3, [ %o1 + 0x1c ] <== NOT EXECUTED
20405b8: c2 00 a0 90 ld [ %g2 + 0x90 ], %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);
20405bc: c8 00 a0 18 ld [ %g2 + 0x18 ], %g4 <== NOT EXECUTED
20405c0: 9b 30 60 18 srl %g1, 0x18, %o5 <== NOT EXECUTED
20405c4: da 29 20 14 stb %o5, [ %g4 + 0x14 ] <== NOT EXECUTED
20405c8: c8 00 a0 18 ld [ %g2 + 0x18 ], %g4 <== NOT EXECUTED
20405cc: 9b 30 60 10 srl %g1, 0x10, %o5 <== NOT EXECUTED
20405d0: da 29 20 15 stb %o5, [ %g4 + 0x15 ] <== NOT EXECUTED
20405d4: c8 00 a0 18 ld [ %g2 + 0x18 ], %g4 <== NOT EXECUTED
20405d8: 9b 30 60 08 srl %g1, 8, %o5 <== NOT EXECUTED
20405dc: da 29 20 16 stb %o5, [ %g4 + 0x16 ] <== NOT EXECUTED
20405e0: c8 00 a0 18 ld [ %g2 + 0x18 ], %g4 <== NOT EXECUTED
20405e4: c2 29 20 17 stb %g1, [ %g4 + 0x17 ] <== NOT EXECUTED
handle->shared->mtime);
rtems_rfs_inode_set_ctime (&handle->shared->inode,
20405e8: c2 06 60 1c ld [ %i1 + 0x1c ], %g1 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
20405ec: c6 28 a0 1c stb %g3, [ %g2 + 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);
20405f0: c8 00 60 18 ld [ %g1 + 0x18 ], %g4 <== NOT EXECUTED
20405f4: c4 00 60 94 ld [ %g1 + 0x94 ], %g2 <== NOT EXECUTED
20405f8: 9b 30 a0 18 srl %g2, 0x18, %o5 <== NOT EXECUTED
20405fc: da 29 20 18 stb %o5, [ %g4 + 0x18 ] <== NOT EXECUTED
2040600: c8 00 60 18 ld [ %g1 + 0x18 ], %g4 <== NOT EXECUTED
2040604: 9b 30 a0 10 srl %g2, 0x10, %o5 <== NOT EXECUTED
2040608: da 29 20 19 stb %o5, [ %g4 + 0x19 ] <== NOT EXECUTED
204060c: c8 00 60 18 ld [ %g1 + 0x18 ], %g4 <== NOT EXECUTED
2040610: 9b 30 a0 08 srl %g2, 8, %o5 <== NOT EXECUTED
2040614: da 29 20 1a stb %o5, [ %g4 + 0x1a ] <== NOT EXECUTED
2040618: c8 00 60 18 ld [ %g1 + 0x18 ], %g4 <== NOT EXECUTED
204061c: c4 29 20 1b stb %g2, [ %g4 + 0x1b ] <== NOT EXECUTED
handle->shared->ctime);
if (!rtems_rfs_block_size_equal (&handle->shared->size,
2040620: d2 06 60 1c ld [ %i1 + 0x1c ], %o1 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
2040624: c6 28 60 1c stb %g3, [ %g1 + 0x1c ] <== NOT EXECUTED
2040628: c4 02 60 84 ld [ %o1 + 0x84 ], %g2 <== NOT EXECUTED
204062c: c6 02 60 3c ld [ %o1 + 0x3c ], %g3 <== NOT EXECUTED
2040630: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED
2040634: 02 80 00 29 be 20406d8 <rtems_rfs_file_close+0x190> <== NOT EXECUTED
2040638: 82 10 00 09 mov %o1, %g1 <== NOT EXECUTED
204063c: c6 02 60 88 ld [ %o1 + 0x88 ], %g3 <== 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);
2040640: c4 20 60 3c st %g2, [ %g1 + 0x3c ] <== NOT EXECUTED
2040644: c6 20 60 40 st %g3, [ %g1 + 0x40 ] <== NOT EXECUTED
map->dirty = true;
2040648: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
204064c: 92 10 00 01 mov %g1, %o1 <== NOT EXECUTED
2040650: c4 28 60 34 stb %g2, [ %g1 + 0x34 ] <== NOT EXECUTED
2040654: a0 10 20 00 clr %l0 <== 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);
2040658: 92 02 60 34 add %o1, 0x34, %o1 <== NOT EXECUTED
204065c: 7f ff f8 1b call 203e6c8 <rtems_rfs_block_map_close> <== NOT EXECUTED
2040660: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rc > 0)
2040664: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2040668: 04 80 00 04 ble 2040678 <rtems_rfs_file_close+0x130> <== NOT EXECUTED
204066c: 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)
2040670: 22 80 00 02 be,a 2040678 <rtems_rfs_file_close+0x130> <== NOT EXECUTED
2040674: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
rrc = rc;
}
rc = rtems_rfs_inode_close (fs, &handle->shared->inode);
2040678: d2 06 60 1c ld [ %i1 + 0x1c ], %o1 <== NOT EXECUTED
204067c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2040680: 40 00 08 5d call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2040684: 92 02 60 0c add %o1, 0xc, %o1 <== NOT EXECUTED
if (rc > 0)
2040688: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
204068c: 04 80 00 04 ble 204069c <rtems_rfs_file_close+0x154> <== NOT EXECUTED
2040690: 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)
2040694: 22 80 00 02 be,a 204069c <rtems_rfs_file_close+0x154> <== NOT EXECUTED
2040698: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
204069c: 7f ff 37 2b call 200e348 <_Chain_Extract> <== NOT EXECUTED
20406a0: d0 06 60 1c ld [ %i1 + 0x1c ], %o0 <== NOT EXECUTED
rrc = rc;
}
rtems_chain_extract (&handle->shared->link);
free (handle->shared);
20406a4: 7f ff 20 8e call 20088dc <free> <== NOT EXECUTED
20406a8: 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);
20406ac: 92 06 60 04 add %i1, 4, %o1 <== NOT EXECUTED
20406b0: 7f ff f9 4c call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
20406b4: 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);
20406b8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
handle->dirty = false;
20406bc: c0 2e 60 04 clrb [ %i1 + 4 ] <== NOT EXECUTED
handle->bnum = 0;
20406c0: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED
handle->buffer = NULL;
20406c4: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED
20406c8: 7f ff 20 85 call 20088dc <free> <== NOT EXECUTED
20406cc: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED
return rrc;
}
20406d0: 81 c7 e0 08 ret <== NOT EXECUTED
20406d4: 81 e8 00 00 restore <== NOT EXECUTED
handle->shared->atime);
rtems_rfs_inode_set_mtime (&handle->shared->inode,
handle->shared->mtime);
rtems_rfs_inode_set_ctime (&handle->shared->inode,
handle->shared->ctime);
if (!rtems_rfs_block_size_equal (&handle->shared->size,
20406d8: c6 02 60 88 ld [ %o1 + 0x88 ], %g3 <== NOT EXECUTED
20406dc: c8 02 60 40 ld [ %o1 + 0x40 ], %g4 <== NOT EXECUTED
20406e0: 80 a0 c0 04 cmp %g3, %g4 <== NOT EXECUTED
20406e4: 12 bf ff d7 bne 2040640 <rtems_rfs_file_close+0xf8> <== NOT EXECUTED
20406e8: a0 10 20 00 clr %l0 <== 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);
20406ec: 10 bf ff dc b 204065c <rtems_rfs_file_close+0x114> <== NOT EXECUTED
20406f0: 92 02 60 34 add %o1, 0x34, %o1 <== NOT EXECUTED
handle->shared->references--;
if (handle->shared->references == 0)
{
if (!rtems_rfs_inode_is_loaded (&handle->shared->inode))
rrc = rtems_rfs_inode_load (fs, &handle->shared->inode);
20406f4: 40 00 08 4f call 2042830 <rtems_rfs_inode_load> <== NOT EXECUTED
20406f8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rrc == 0)
20406fc: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2040700: 02 80 00 04 be 2040710 <rtems_rfs_file_close+0x1c8> <== NOT EXECUTED
2040704: d2 06 60 1c ld [ %i1 + 0x1c ], %o1 <== 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);
2040708: 10 bf ff d5 b 204065c <rtems_rfs_file_close+0x114> <== NOT EXECUTED
204070c: 92 02 60 34 add %o1, 0x34, %o1 <== NOT EXECUTED
if (handle->shared->references == 0)
{
if (!rtems_rfs_inode_is_loaded (&handle->shared->inode))
rrc = rtems_rfs_inode_load (fs, &handle->shared->inode);
if (rrc == 0)
2040710: 10 bf ff 9c b 2040580 <rtems_rfs_file_close+0x38> <== NOT EXECUTED
2040714: c2 02 60 18 ld [ %o1 + 0x18 ], %g1 <== NOT EXECUTED
0203fd40 <rtems_rfs_file_get_shared>:
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
203fd40: c2 02 20 70 ld [ %o0 + 0x70 ], %g1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
203fd44: 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))
203fd48: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203fd4c: 02 80 00 10 be 203fd8c <rtems_rfs_file_get_shared+0x4c> <== NOT EXECUTED
203fd50: 90 10 20 00 clr %o0 <== NOT EXECUTED
{
rtems_rfs_file_shared* shared;
shared = (rtems_rfs_file_shared*) node;
if (shared->inode.ino == ino)
203fd54: c6 00 60 14 ld [ %g1 + 0x14 ], %g3 <== NOT EXECUTED
203fd58: 80 a0 c0 09 cmp %g3, %o1 <== NOT EXECUTED
203fd5c: 12 80 00 06 bne 203fd74 <rtems_rfs_file_get_shared+0x34> <== NOT EXECUTED
203fd60: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
203fd64: 30 80 00 0a b,a 203fd8c <rtems_rfs_file_get_shared+0x4c> <== NOT EXECUTED
203fd68: 80 a0 c0 09 cmp %g3, %o1 <== NOT EXECUTED
203fd6c: 02 80 00 08 be 203fd8c <rtems_rfs_file_get_shared+0x4c> <== NOT EXECUTED
203fd70: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
203fd74: 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))
203fd78: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203fd7c: 32 bf ff fb bne,a 203fd68 <rtems_rfs_file_get_shared+0x28><== NOT EXECUTED
203fd80: c6 00 60 14 ld [ %g1 + 0x14 ], %g3 <== NOT EXECUTED
if (shared->inode.ino == ino)
return shared;
node = rtems_chain_next (node);
}
return NULL;
}
203fd84: 81 c3 e0 08 retl <== NOT EXECUTED
203fd88: 90 10 20 00 clr %o0 <== NOT EXECUTED
203fd8c: 81 c3 e0 08 retl <== NOT EXECUTED
02040328 <rtems_rfs_file_io_end>:
int
rtems_rfs_file_io_end (rtems_rfs_file_handle* handle,
size_t size,
bool read)
{
2040328: 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))
204032c: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
2040330: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2040334: 22 80 00 6a be,a 20404dc <rtems_rfs_file_io_end+0x1b4> <== NOT EXECUTED
2040338: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
{
if (!read)
204033c: b4 8e a0 ff andcc %i2, 0xff, %i2 <== NOT EXECUTED
2040340: 02 80 00 1a be 20403a8 <rtems_rfs_file_io_end+0x80> <== NOT EXECUTED
2040344: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (rtems_rfs_file_buffer (handle));
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
2040348: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
204034c: 92 06 20 04 add %i0, 4, %o1 <== NOT EXECUTED
2040350: 7f ff fa 24 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2040354: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
rtems_rfs_file_buffer (handle));
if (rc > 0)
2040358: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
204035c: 24 80 00 1c ble,a 20403cc <rtems_rfs_file_io_end+0xa4> <== NOT EXECUTED
2040360: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
{
printf (
2040364: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
2040368: 35 00 81 b2 sethi %hi(0x206c800), %i2 <== NOT EXECUTED
204036c: 12 80 00 04 bne 204037c <rtems_rfs_file_io_end+0x54> <== NOT EXECUTED
2040370: b4 16 a1 08 or %i2, 0x108, %i2 ! 206c908 <__FUNCTION__.7657+0x30><== NOT EXECUTED
2040374: 35 00 81 b2 sethi %hi(0x206c800), %i2 <== NOT EXECUTED
2040378: b4 16 a1 00 or %i2, 0x100, %i2 ! 206c900 <__FUNCTION__.7657+0x28><== NOT EXECUTED
204037c: 40 00 3c ce call 204f6b4 <strerror> <== NOT EXECUTED
2040380: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2040384: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
2040388: 98 10 00 08 mov %o0, %o4 <== NOT EXECUTED
204038c: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
2040390: 11 00 81 b2 sethi %hi(0x206c800), %o0 <== NOT EXECUTED
2040394: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
2040398: 40 00 34 26 call 204d430 <printf> <== NOT EXECUTED
204039c: 90 12 21 10 or %o0, 0x110, %o0 <== NOT EXECUTED
handle->shared->size.offset =
rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle));
}
return rc;
}
20403a0: 81 c7 e0 08 ret <== NOT EXECUTED
20403a4: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED
read ? "read" : "write", size);
if (rtems_rfs_buffer_handle_has_block (&handle->buffer))
{
if (!read)
rtems_rfs_buffer_mark_dirty (rtems_rfs_file_buffer (handle));
20403a8: c2 2e 20 04 stb %g1, [ %i0 + 4 ] <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
20403ac: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
20403b0: 92 06 20 04 add %i0, 4, %o1 <== NOT EXECUTED
20403b4: 7f ff fa 0b call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
20403b8: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
rtems_rfs_file_buffer (handle));
if (rc > 0)
20403bc: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
20403c0: 14 bf ff ea bg 2040368 <rtems_rfs_file_io_end+0x40> <== NOT EXECUTED
20403c4: 80 a6 a0 00 cmp %i2, 0 <== 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)))
20403c8: 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;
20403cc: c6 06 20 14 ld [ %i0 + 0x14 ], %g3 <== NOT EXECUTED
if (handle->bpos.boff >=
rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))
20403d0: c4 00 60 98 ld [ %g1 + 0x98 ], %g2 <== 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;
20403d4: b2 06 40 03 add %i1, %g3, %i1 <== NOT EXECUTED
if (handle->bpos.boff >=
rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))
20403d8: c4 00 a0 08 ld [ %g2 + 8 ], %g2 <== NOT EXECUTED
20403dc: 80 a6 40 02 cmp %i1, %g2 <== NOT EXECUTED
20403e0: 0a 80 00 07 bcs 20403fc <rtems_rfs_file_io_end+0xd4> <== NOT EXECUTED
20403e4: f2 26 20 14 st %i1, [ %i0 + 0x14 ] <== NOT EXECUTED
{
handle->bpos.bno++;
20403e8: c6 06 20 10 ld [ %i0 + 0x10 ], %g3 <== NOT EXECUTED
handle->bpos.boff -= rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
20403ec: b2 26 40 02 sub %i1, %g2, %i1 <== NOT EXECUTED
handle->bpos.boff += size;
if (handle->bpos.boff >=
rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))
{
handle->bpos.bno++;
20403f0: 84 00 e0 01 add %g3, 1, %g2 <== NOT EXECUTED
handle->bpos.boff -= rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
20403f4: 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++;
20403f8: c4 26 20 10 st %g2, [ %i0 + 0x10 ] <== NOT EXECUTED
}
length = false;
mtime = false;
if (!read &&
20403fc: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
2040400: 12 80 00 0e bne 2040438 <rtems_rfs_file_io_end+0x110> <== NOT EXECUTED
2040404: a2 10 20 00 clr %l1 <== NOT EXECUTED
rtems_rfs_block_map_past_end (rtems_rfs_file_map (handle),
2040408: c4 06 20 10 ld [ %i0 + 0x10 ], %g2 <== NOT EXECUTED
}
length = false;
mtime = false;
if (!read &&
204040c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2040410: 12 80 00 3e bne 2040508 <rtems_rfs_file_io_end+0x1e0> <== NOT EXECUTED
2040414: c6 00 60 3c ld [ %g1 + 0x3c ], %g3 <== NOT EXECUTED
2040418: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED
204041c: 3a 80 00 3f bcc,a 2040518 <rtems_rfs_file_io_end+0x1f0> <== NOT EXECUTED
2040420: c4 06 20 14 ld [ %i0 + 0x14 ], %g2 <== NOT EXECUTED
2040424: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED
2040428: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED
204042c: 22 80 00 41 be,a 2040530 <rtems_rfs_file_io_end+0x208> <== NOT EXECUTED
2040430: c4 06 20 14 ld [ %i0 + 0x14 ], %g2 <== NOT EXECUTED
2040434: a2 10 20 00 clr %l1 <== NOT EXECUTED
2040438: b2 10 20 00 clr %i1 <== NOT EXECUTED
handle->bpos.boff);
length = true;
mtime = true;
}
atime = rtems_rfs_file_update_atime (handle);
204043c: e4 06 00 00 ld [ %i0 ], %l2 <== NOT EXECUTED
mtime = rtems_rfs_file_update_mtime (handle) && mtime;
2040440: 82 0c a0 02 and %l2, 2, %g1 <== NOT EXECUTED
2040444: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
length = rtems_rfs_file_update_length (handle) && length;
2040448: 84 0c a0 04 and %l2, 4, %g2 <== NOT EXECUTED
length = true;
mtime = true;
}
atime = rtems_rfs_file_update_atime (handle);
mtime = rtems_rfs_file_update_mtime (handle) && mtime;
204044c: 82 40 3f ff addx %g0, -1, %g1 <== NOT EXECUTED
length = rtems_rfs_file_update_length (handle) && length;
2040450: 80 a0 00 02 cmp %g0, %g2 <== NOT EXECUTED
length = true;
mtime = true;
}
atime = rtems_rfs_file_update_atime (handle);
mtime = rtems_rfs_file_update_mtime (handle) && mtime;
2040454: b2 0e 40 01 and %i1, %g1, %i1 <== NOT EXECUTED
handle->bpos.boff);
length = true;
mtime = true;
}
atime = rtems_rfs_file_update_atime (handle);
2040458: a4 1c a0 01 xor %l2, 1, %l2 <== NOT EXECUTED
mtime = rtems_rfs_file_update_mtime (handle) && mtime;
length = rtems_rfs_file_update_length (handle) && length;
204045c: 82 60 3f ff subx %g0, -1, %g1 <== 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)
2040460: a4 8c a0 01 andcc %l2, 1, %l2 <== NOT EXECUTED
2040464: 12 80 00 0e bne 204049c <rtems_rfs_file_io_end+0x174> <== NOT EXECUTED
2040468: a2 08 40 11 and %g1, %l1, %l1 <== NOT EXECUTED
204046c: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED
2040470: 12 80 00 0b bne 204049c <rtems_rfs_file_io_end+0x174> <== NOT EXECUTED
2040474: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
if (read && atime)
handle->shared->atime = now;
if (!read && mtime)
handle->shared->mtime = now;
}
if (length)
2040478: 02 bf ff ca be 20403a0 <rtems_rfs_file_io_end+0x78> <== NOT EXECUTED
204047c: 01 00 00 00 nop <== NOT EXECUTED
{
handle->shared->size.count =
rtems_rfs_block_map_count (rtems_rfs_file_map (handle));
2040480: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
if (!read && mtime)
handle->shared->mtime = now;
}
if (length)
{
handle->shared->size.count =
2040484: c6 00 60 3c ld [ %g1 + 0x3c ], %g3 <== NOT EXECUTED
rtems_rfs_block_map_count (rtems_rfs_file_map (handle));
handle->shared->size.offset =
2040488: c4 00 60 40 ld [ %g1 + 0x40 ], %g2 <== NOT EXECUTED
if (!read && mtime)
handle->shared->mtime = now;
}
if (length)
{
handle->shared->size.count =
204048c: c6 20 60 84 st %g3, [ %g1 + 0x84 ] <== NOT EXECUTED
rtems_rfs_block_map_count (rtems_rfs_file_map (handle));
handle->shared->size.offset =
2040490: c4 20 60 88 st %g2, [ %g1 + 0x88 ] <== NOT EXECUTED
rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle));
}
return rc;
}
2040494: 81 c7 e0 08 ret <== NOT EXECUTED
2040498: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED
handle->bpos.bno, handle->bpos.boff,
atime ? 'A' : '-', mtime ? 'M' : '-', length ? 'L' : '-');
if (atime || mtime)
{
time_t now = time (NULL);
204049c: 40 00 52 8c call 2054ecc <time> <== NOT EXECUTED
20404a0: 90 10 20 00 clr %o0 <== NOT EXECUTED
if (read && atime)
20404a4: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
20404a8: 02 80 00 08 be 20404c8 <rtems_rfs_file_io_end+0x1a0> <== NOT EXECUTED
20404ac: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED
20404b0: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
20404b4: 02 bf ff f1 be 2040478 <rtems_rfs_file_io_end+0x150> <== NOT EXECUTED
20404b8: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
handle->shared->atime = now;
20404bc: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
20404c0: 10 bf ff ee b 2040478 <rtems_rfs_file_io_end+0x150> <== NOT EXECUTED
20404c4: d0 20 60 8c st %o0, [ %g1 + 0x8c ] <== NOT EXECUTED
if (!read && mtime)
20404c8: 02 bf ff ec be 2040478 <rtems_rfs_file_io_end+0x150> <== NOT EXECUTED
20404cc: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
handle->shared->mtime = now;
20404d0: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
20404d4: 10 bf ff e9 b 2040478 <rtems_rfs_file_io_end+0x150> <== NOT EXECUTED
20404d8: d0 20 60 90 st %o0, [ %g1 + 0x90 ] <== 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;
20404dc: c6 06 20 14 ld [ %i0 + 0x14 ], %g3 <== NOT EXECUTED
if (handle->bpos.boff >=
rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))
20404e0: c4 00 60 98 ld [ %g1 + 0x98 ], %g2 <== 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;
20404e4: b2 06 40 03 add %i1, %g3, %i1 <== NOT EXECUTED
if (handle->bpos.boff >=
rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))
20404e8: c4 00 a0 08 ld [ %g2 + 8 ], %g2 <== 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;
20404ec: f2 26 20 14 st %i1, [ %i0 + 0x14 ] <== NOT EXECUTED
20404f0: b4 0e a0 ff and %i2, 0xff, %i2 <== NOT EXECUTED
if (handle->bpos.boff >=
rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))
20404f4: 80 a6 40 02 cmp %i1, %g2 <== NOT EXECUTED
20404f8: 0a bf ff c1 bcs 20403fc <rtems_rfs_file_io_end+0xd4> <== NOT EXECUTED
20404fc: a0 10 20 00 clr %l0 <== NOT EXECUTED
{
handle->bpos.bno++;
2040500: 10 bf ff bb b 20403ec <rtems_rfs_file_io_end+0xc4> <== NOT EXECUTED
2040504: c6 06 20 10 ld [ %i0 + 0x10 ], %g3 <== NOT EXECUTED
}
length = false;
mtime = false;
if (!read &&
2040508: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
204050c: 12 bf ff c4 bne 204041c <rtems_rfs_file_io_end+0xf4> <== NOT EXECUTED
2040510: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED
2040514: c4 06 20 14 ld [ %i0 + 0x14 ], %g2 <== 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;
2040518: c4 20 60 40 st %g2, [ %g1 + 0x40 ] <== NOT EXECUTED
map->dirty = true;
204051c: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED
2040520: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
2040524: b2 10 20 01 mov 1, %i1 <== NOT EXECUTED
2040528: 10 bf ff c5 b 204043c <rtems_rfs_file_io_end+0x114> <== NOT EXECUTED
204052c: c4 28 60 34 stb %g2, [ %g1 + 0x34 ] <== NOT EXECUTED
2040530: c6 00 60 40 ld [ %g1 + 0x40 ], %g3 <== NOT EXECUTED
2040534: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED
2040538: 28 bf ff c0 bleu,a 2040438 <rtems_rfs_file_io_end+0x110> <== NOT EXECUTED
204053c: a2 10 20 00 clr %l1 <== 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;
2040540: 10 bf ff f7 b 204051c <rtems_rfs_file_io_end+0x1f4> <== NOT EXECUTED
2040544: c4 20 60 40 st %g2, [ %g1 + 0x40 ] <== NOT EXECUTED
0203ff00 <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))
203ff00: c2 02 20 0c ld [ %o0 + 0xc ], %g1 <== NOT EXECUTED
203ff04: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203ff08: 02 80 00 07 be 203ff24 <rtems_rfs_file_io_release+0x24> <== NOT EXECUTED
203ff0c: 92 02 20 04 add %o0, 4, %o1 <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
203ff10: c2 02 20 1c ld [ %o0 + 0x1c ], %g1 <== NOT EXECUTED
203ff14: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
203ff18: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
203ff1c: 7f ff fb 31 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203ff20: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
rtems_rfs_file_buffer (handle));
return rc;
}
203ff24: 81 c3 e0 08 retl <== NOT EXECUTED
203ff28: 90 10 20 00 clr %o0 <== NOT EXECUTED
0203fd94 <rtems_rfs_file_io_start>:
int
rtems_rfs_file_io_start (rtems_rfs_file_handle* handle,
size_t* available,
bool read)
{
203fd94: 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))
203fd98: 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)
{
203fd9c: 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))
203fda0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203fda4: 02 80 00 1d be 203fe18 <rtems_rfs_file_io_start+0x84> <== NOT EXECUTED
203fda8: b4 0e a0 ff and %i2, 0xff, %i2 <== NOT EXECUTED
block, request_read);
if (rc > 0)
return rc;
}
if (read
203fdac: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
203fdb0: 02 80 00 0a be 203fdd8 <rtems_rfs_file_io_start+0x44> <== NOT EXECUTED
203fdb4: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
&& rtems_rfs_block_map_last (rtems_rfs_file_map (handle))
203fdb8: c4 00 60 44 ld [ %g1 + 0x44 ], %g2 <== NOT EXECUTED
block, request_read);
if (rc > 0)
return rc;
}
if (read
203fdbc: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203fdc0: 02 80 00 0d be 203fdf4 <rtems_rfs_file_io_start+0x60> <== NOT EXECUTED
203fdc4: c6 00 60 3c ld [ %g1 + 0x3c ], %g3 <== NOT EXECUTED
203fdc8: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED
203fdcc: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED
203fdd0: 22 80 00 0d be,a 203fe04 <rtems_rfs_file_io_start+0x70> <== NOT EXECUTED
203fdd4: c4 00 60 40 ld [ %g1 + 0x40 ], %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));
203fdd8: c2 00 60 98 ld [ %g1 + 0x98 ], %g1 <== NOT EXECUTED
203fddc: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED
*available = size - rtems_rfs_file_block_offset (handle);
203fde0: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
203fde4: 84 20 80 01 sub %g2, %g1, %g2 <== NOT EXECUTED
203fde8: c4 26 40 00 st %g2, [ %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;
}
203fdec: 81 c7 e0 08 ret <== NOT EXECUTED
203fdf0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
block, request_read);
if (rc > 0)
return rc;
}
if (read
203fdf4: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
203fdf8: 32 bf ff f5 bne,a 203fdcc <rtems_rfs_file_io_start+0x38> <== NOT EXECUTED
203fdfc: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED
&& rtems_rfs_block_map_last (rtems_rfs_file_map (handle))
&& rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle)))
203fe00: c4 00 60 40 ld [ %g1 + 0x40 ], %g2 <== NOT EXECUTED
block, request_read);
if (rc > 0)
return rc;
}
if (read
203fe04: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203fe08: 32 bf ff f7 bne,a 203fde4 <rtems_rfs_file_io_start+0x50> <== NOT EXECUTED
203fe0c: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== 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));
203fe10: 10 bf ff f3 b 203fddc <rtems_rfs_file_io_start+0x48> <== NOT EXECUTED
203fe14: c2 00 60 98 ld [ %g1 + 0x98 ], %g1 <== NOT EXECUTED
bool request_read;
int rc;
request_read = read;
rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),
203fe18: d2 06 20 1c ld [ %i0 + 0x1c ], %o1 <== NOT EXECUTED
203fe1c: 94 06 20 10 add %i0, 0x10, %o2 <== NOT EXECUTED
203fe20: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
203fe24: a2 07 bf fc add %fp, -4, %l1 <== NOT EXECUTED
203fe28: 92 02 60 34 add %o1, 0x34, %o1 <== NOT EXECUTED
203fe2c: 7f ff f7 6d call 203dbe0 <rtems_rfs_block_map_find> <== NOT EXECUTED
203fe30: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
rtems_rfs_file_map (handle),
rtems_rfs_file_bpos (handle),
&block);
if (rc > 0)
203fe34: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203fe38: 04 80 00 09 ble 203fe5c <rtems_rfs_file_io_start+0xc8> <== NOT EXECUTED
203fe3c: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
{
/*
* Has the read reached the EOF ?
*/
if (read && (rc == ENXIO))
203fe40: 02 80 00 14 be 203fe90 <rtems_rfs_file_io_start+0xfc> <== NOT EXECUTED
203fe44: 80 a6 20 06 cmp %i0, 6 <== NOT EXECUTED
203fe48: 12 80 00 10 bne 203fe88 <rtems_rfs_file_io_start+0xf4> <== NOT EXECUTED
203fe4c: 01 00 00 00 nop <== NOT EXECUTED
{
*available = 0;
203fe50: c0 26 40 00 clr [ %i1 ] <== NOT EXECUTED
return 0;
203fe54: 81 c7 e0 08 ret <== NOT EXECUTED
203fe58: 91 e8 20 00 restore %g0, 0, %o0 <== 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 &&
203fe5c: 22 80 00 1a be,a 203fec4 <rtems_rfs_file_io_start+0x130> <== NOT EXECUTED
203fe60: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
203fe64: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203fe68: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
203fe6c: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== 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),
203fe70: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
203fe74: 7f ff fb a4 call 203ed04 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203fe78: 92 04 20 04 add %l0, 4, %o1 <== NOT EXECUTED
rtems_rfs_file_buffer (handle),
block, request_read);
if (rc > 0)
203fe7c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203fe80: 04 bf ff cc ble 203fdb0 <rtems_rfs_file_io_start+0x1c> <== NOT EXECUTED
203fe84: 80 a6 a0 00 cmp %i2, 0 <== 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;
}
203fe88: 81 c7 e0 08 ret <== NOT EXECUTED
203fe8c: 81 e8 00 00 restore <== NOT EXECUTED
{
*available = 0;
return 0;
}
if (rc != ENXIO)
203fe90: 12 bf ff fe bne 203fe88 <rtems_rfs_file_io_start+0xf4> <== NOT EXECUTED
203fe94: 96 10 00 11 mov %l1, %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),
203fe98: d2 04 20 1c ld [ %l0 + 0x1c ], %o1 <== NOT EXECUTED
203fe9c: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
203fea0: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203fea4: 7f ff f9 1b call 203e310 <rtems_rfs_block_map_grow> <== NOT EXECUTED
203fea8: 92 02 60 34 add %o1, 0x34, %o1 <== NOT EXECUTED
rtems_rfs_file_map (handle),
1, &block);
if (rc > 0)
203feac: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203feb0: 14 bf ff f6 bg 203fe88 <rtems_rfs_file_io_start+0xf4> <== NOT EXECUTED
203feb4: 96 10 20 00 clr %o3 <== NOT EXECUTED
203feb8: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203febc: 10 bf ff ed b 203fe70 <rtems_rfs_file_io_start+0xdc> <== NOT EXECUTED
203fec0: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== 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 &&
(rtems_rfs_file_block_offset (handle) ||
203fec4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203fec8: 02 80 00 05 be 203fedc <rtems_rfs_file_io_start+0x148> <== NOT EXECUTED
203fecc: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
(*available < rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))))
203fed0: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
203fed4: 10 bf ff e7 b 203fe70 <rtems_rfs_file_io_start+0xdc> <== NOT EXECUTED
203fed8: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
203fedc: c6 06 40 00 ld [ %i1 ], %g3 <== NOT EXECUTED
203fee0: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
203fee4: c4 02 20 08 ld [ %o0 + 8 ], %g2 <== NOT EXECUTED
203fee8: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED
203feec: 1a bf ff e1 bcc 203fe70 <rtems_rfs_file_io_start+0xdc> <== NOT EXECUTED
203fef0: 96 10 20 00 clr %o3 <== NOT EXECUTED
203fef4: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
203fef8: 10 bf ff de b 203fe70 <rtems_rfs_file_io_start+0xdc> <== NOT EXECUTED
203fefc: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
02040718 <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)
{
2040718: 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));
204071c: 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;
2040720: 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));
2040724: 7f ff 22 4f call 2009060 <malloc> <== NOT EXECUTED
2040728: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
if (!handle)
204072c: b0 10 20 0c mov 0xc, %i0 <== NOT EXECUTED
2040730: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2040734: 02 80 00 39 be 2040818 <rtems_rfs_file_open+0x100> <== NOT EXECUTED
2040738: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
204073c: 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;
handle->bnum = 0;
2040740: c0 22 20 08 clr [ %o0 + 8 ] <== NOT EXECUTED
return ENOMEM;
memset (handle, 0, sizeof (rtems_rfs_file_handle));
2040744: c0 22 00 00 clr [ %o0 ] <== NOT EXECUTED
2040748: c0 22 20 04 clr [ %o0 + 4 ] <== NOT EXECUTED
204074c: c0 22 20 10 clr [ %o0 + 0x10 ] <== NOT EXECUTED
2040750: c0 22 20 14 clr [ %o0 + 0x14 ] <== NOT EXECUTED
2040754: c0 22 20 18 clr [ %o0 + 0x18 ] <== NOT EXECUTED
2040758: c0 22 20 1c clr [ %o0 + 0x1c ] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
204075c: 86 04 60 74 add %l1, 0x74, %g3 <== 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))
2040760: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
2040764: 12 80 00 07 bne 2040780 <rtems_rfs_file_open+0x68> <== NOT EXECUTED
2040768: c0 22 20 0c clr [ %o0 + 0xc ] <== NOT EXECUTED
204076c: 30 80 00 11 b,a 20407b0 <rtems_rfs_file_open+0x98> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
2040770: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED
2040774: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
2040778: 02 80 00 0e be 20407b0 <rtems_rfs_file_open+0x98> <== NOT EXECUTED
204077c: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_rfs_file_shared* shared;
shared = (rtems_rfs_file_shared*) node;
if (shared->inode.ino == ino)
2040780: c4 00 60 14 ld [ %g1 + 0x14 ], %g2 <== NOT EXECUTED
2040784: 80 a6 40 02 cmp %i1, %g2 <== NOT EXECUTED
2040788: 12 bf ff fa bne 2040770 <rtems_rfs_file_open+0x58> <== NOT EXECUTED
204078c: a4 10 00 01 mov %g1, %l2 <== NOT EXECUTED
* the reference count and return the pointer to the data.
*/
shared = rtems_rfs_file_get_shared (fs, ino);
if (shared)
{
shared->references++;
2040790: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED
2040794: 84 00 a0 01 inc %g2 <== NOT EXECUTED
2040798: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED
}
handle->flags = flags;
handle->shared = shared;
*file = handle;
204079c: 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;
20407a0: f4 24 00 00 st %i2, [ %l0 ] <== NOT EXECUTED
handle->shared = shared;
20407a4: e4 24 20 1c st %l2, [ %l0 + 0x1c ] <== NOT EXECUTED
*file = handle;
return 0;
}
20407a8: 81 c7 e0 08 ret <== NOT EXECUTED
20407ac: 91 e8 20 00 restore %g0, 0, %o0 <== 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));
20407b0: 7f ff 22 2c call 2009060 <malloc> <== NOT EXECUTED
20407b4: 90 10 20 9c mov 0x9c, %o0 <== NOT EXECUTED
if (!shared)
20407b8: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
20407bc: 02 80 00 19 be 2040820 <rtems_rfs_file_open+0x108> <== NOT EXECUTED
20407c0: 92 10 20 00 clr %o1 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle->buffer);
free (handle);
return ENOMEM;
}
memset (shared, 0, sizeof (rtems_rfs_file_shared));
20407c4: 40 00 2e ff call 204c3c0 <memset> <== NOT EXECUTED
20407c8: 94 10 20 9c mov 0x9c, %o2 <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &shared->inode, true);
20407cc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
20407d0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
20407d4: b2 04 a0 0c add %l2, 0xc, %i1 <== NOT EXECUTED
20407d8: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
20407dc: 40 00 08 30 call 204289c <rtems_rfs_inode_open> <== NOT EXECUTED
20407e0: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
if (rc > 0)
20407e4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20407e8: 04 80 00 19 ble 204084c <rtems_rfs_file_open+0x134> <== NOT EXECUTED
20407ec: 90 10 00 11 mov %l1, %o0 <== 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);
free (shared);
20407f0: 7f ff 20 3b call 20088dc <free> <== NOT EXECUTED
20407f4: 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);
20407f8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
20407fc: 7f ff f8 f9 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2040800: 92 04 20 04 add %l0, 4, %o1 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle->buffer);
free (handle);
2040804: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
handle->dirty = false;
2040808: c0 2c 20 04 clrb [ %l0 + 4 ] <== NOT EXECUTED
handle->bnum = 0;
204080c: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED
2040810: 7f ff 20 33 call 20088dc <free> <== NOT EXECUTED
2040814: c0 24 20 0c clr [ %l0 + 0xc ] <== NOT EXECUTED
return rc;
2040818: 81 c7 e0 08 ret <== NOT EXECUTED
204081c: 81 e8 00 00 restore <== 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);
2040820: 92 04 20 04 add %l0, 4, %o1 <== NOT EXECUTED
2040824: 7f ff f8 ef call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2040828: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
*/
shared = malloc (sizeof (rtems_rfs_file_shared));
if (!shared)
{
rtems_rfs_buffer_handle_close (fs, &handle->buffer);
free (handle);
204082c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
handle->dirty = false;
2040830: c0 2c 20 04 clrb [ %l0 + 4 ] <== NOT EXECUTED
handle->bnum = 0;
2040834: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED
handle->buffer = NULL;
2040838: c0 24 20 0c clr [ %l0 + 0xc ] <== NOT EXECUTED
204083c: 7f ff 20 28 call 20088dc <free> <== NOT EXECUTED
2040840: b0 10 20 0c mov 0xc, %i0 <== NOT EXECUTED
return ENOMEM;
2040844: 81 c7 e0 08 ret <== NOT EXECUTED
2040848: 81 e8 00 00 restore <== 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);
204084c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2040850: 7f ff f8 0f call 203e88c <rtems_rfs_block_map_open> <== NOT EXECUTED
2040854: 94 04 a0 34 add %l2, 0x34, %o2 <== NOT EXECUTED
if (rc > 0)
2040858: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
204085c: 04 80 00 05 ble 2040870 <rtems_rfs_file_open+0x158> <== NOT EXECUTED
2040860: 92 10 00 19 mov %i1, %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);
2040864: 40 00 07 e4 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2040868: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
204086c: 30 bf ff e1 b,a 20407f0 <rtems_rfs_file_open+0xd8> <== 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);
2040870: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle->buffer);
free (handle);
return rc;
}
shared->references = 1;
2040874: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
2040878: c4 24 a0 08 st %g2, [ %l2 + 8 ] <== NOT EXECUTED
204087c: 84 00 60 0c add %g1, 0xc, %g2 <== NOT EXECUTED
shared->size.count = rtems_rfs_inode_get_block_count (&shared->inode);
2040880: c8 08 a0 02 ldub [ %g2 + 2 ], %g4 <== NOT EXECUTED
2040884: da 08 a0 03 ldub [ %g2 + 3 ], %o5 <== NOT EXECUTED
2040888: c4 08 a0 01 ldub [ %g2 + 1 ], %g2 <== NOT EXECUTED
204088c: c6 08 60 0c ldub [ %g1 + 0xc ], %g3 <== NOT EXECUTED
2040890: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
2040894: 87 28 e0 18 sll %g3, 0x18, %g3 <== NOT EXECUTED
2040898: 86 13 40 03 or %o5, %g3, %g3 <== NOT EXECUTED
204089c: 86 10 c0 02 or %g3, %g2, %g3 <== NOT EXECUTED
20408a0: 85 29 20 08 sll %g4, 8, %g2 <== NOT EXECUTED
20408a4: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED
20408a8: c4 24 a0 84 st %g2, [ %l2 + 0x84 ] <== NOT EXECUTED
shared->size.offset = rtems_rfs_inode_get_block_offset (&shared->inode);
20408ac: c6 08 60 0b ldub [ %g1 + 0xb ], %g3 <== NOT EXECUTED
20408b0: 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 );
20408b4: 90 04 60 70 add %l1, 0x70, %o0 <== NOT EXECUTED
20408b8: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
20408bc: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED
20408c0: 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);
20408c4: 84 00 60 10 add %g1, 0x10, %g2 <== NOT EXECUTED
shared->atime = rtems_rfs_inode_get_atime (&shared->inode);
20408c8: c8 08 a0 02 ldub [ %g2 + 2 ], %g4 <== NOT EXECUTED
20408cc: da 08 a0 03 ldub [ %g2 + 3 ], %o5 <== NOT EXECUTED
20408d0: c4 08 a0 01 ldub [ %g2 + 1 ], %g2 <== NOT EXECUTED
20408d4: c6 08 60 10 ldub [ %g1 + 0x10 ], %g3 <== NOT EXECUTED
20408d8: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
20408dc: 87 28 e0 18 sll %g3, 0x18, %g3 <== NOT EXECUTED
20408e0: 86 13 40 03 or %o5, %g3, %g3 <== NOT EXECUTED
20408e4: 86 10 c0 02 or %g3, %g2, %g3 <== NOT EXECUTED
20408e8: 85 29 20 08 sll %g4, 8, %g2 <== NOT EXECUTED
20408ec: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED
20408f0: 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);
20408f4: 84 00 60 14 add %g1, 0x14, %g2 <== NOT EXECUTED
shared->mtime = rtems_rfs_inode_get_mtime (&shared->inode);
20408f8: c8 08 a0 02 ldub [ %g2 + 2 ], %g4 <== NOT EXECUTED
20408fc: da 08 a0 03 ldub [ %g2 + 3 ], %o5 <== NOT EXECUTED
2040900: c4 08 a0 01 ldub [ %g2 + 1 ], %g2 <== NOT EXECUTED
2040904: c6 08 60 14 ldub [ %g1 + 0x14 ], %g3 <== NOT EXECUTED
2040908: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
204090c: 87 28 e0 18 sll %g3, 0x18, %g3 <== NOT EXECUTED
2040910: 86 13 40 03 or %o5, %g3, %g3 <== NOT EXECUTED
2040914: 86 10 c0 02 or %g3, %g2, %g3 <== NOT EXECUTED
2040918: 85 29 20 08 sll %g4, 8, %g2 <== NOT EXECUTED
204091c: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED
2040920: c4 24 a0 90 st %g2, [ %l2 + 0x90 ] <== NOT EXECUTED
shared->ctime = rtems_rfs_inode_get_ctime (&shared->inode);
2040924: c4 08 60 18 ldub [ %g1 + 0x18 ], %g2 <== 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);
2040928: 82 00 60 18 add %g1, 0x18, %g1 <== NOT EXECUTED
204092c: c6 08 60 02 ldub [ %g1 + 2 ], %g3 <== NOT EXECUTED
2040930: c8 08 60 03 ldub [ %g1 + 3 ], %g4 <== NOT EXECUTED
2040934: c2 08 60 01 ldub [ %g1 + 1 ], %g1 <== NOT EXECUTED
2040938: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED
204093c: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
2040940: 84 11 00 02 or %g4, %g2, %g2 <== NOT EXECUTED
2040944: 84 10 80 01 or %g2, %g1, %g2 <== NOT EXECUTED
2040948: 83 28 e0 08 sll %g3, 8, %g1 <== NOT EXECUTED
204094c: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
2040950: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2040954: c2 24 a0 94 st %g1, [ %l2 + 0x94 ] <== NOT EXECUTED
2040958: 7f ff 36 70 call 200e318 <_Chain_Append> <== NOT EXECUTED
204095c: 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);
2040960: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2040964: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2040968: 40 00 07 76 call 2042740 <rtems_rfs_inode_unload> <== NOT EXECUTED
204096c: 94 10 20 00 clr %o2 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))
2040970: 10 bf ff 8c b 20407a0 <rtems_rfs_file_open+0x88> <== NOT EXECUTED
2040974: e0 26 c0 00 st %l0, [ %i3 ] <== NOT EXECUTED
02040250 <rtems_rfs_file_seek>:
int
rtems_rfs_file_seek (rtems_rfs_file_handle* handle,
rtems_rfs_pos pos,
rtems_rfs_pos* new_pos)
{
2040250: 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),
2040254: 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)
{
2040258: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
204025c: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
2040260: 7f ff f6 24 call 203daf0 <rtems_rfs_block_get_size> <== NOT EXECUTED
2040264: 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),
2040268: 80 a2 00 19 cmp %o0, %i1 <== NOT EXECUTED
204026c: 38 80 00 0f bgu,a 20402a8 <rtems_rfs_file_seek+0x58> <== NOT EXECUTED
2040270: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
2040274: 80 a2 00 19 cmp %o0, %i1 <== NOT EXECUTED
2040278: 02 80 00 09 be 204029c <rtems_rfs_file_seek+0x4c> <== NOT EXECUTED
204027c: 80 a2 40 1a cmp %o1, %i2 <== 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);
2040280: 7f ff ff 20 call 203ff00 <rtems_rfs_file_io_release> <== NOT EXECUTED
2040284: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc > 0)
2040288: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
204028c: 24 80 00 24 ble,a 204031c <rtems_rfs_file_seek+0xcc> <== NOT EXECUTED
2040290: f4 26 e0 04 st %i2, [ %i3 + 4 ] <== NOT EXECUTED
return rc;
}
*new_pos = pos;
return 0;
}
2040294: 81 c7 e0 08 ret <== NOT EXECUTED
2040298: 81 e8 00 00 restore <== 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),
204029c: 08 bf ff f9 bleu 2040280 <rtems_rfs_file_seek+0x30> <== NOT EXECUTED
20402a0: 01 00 00 00 nop <== NOT EXECUTED
handle->shared))
{
rtems_rfs_file_set_bpos (handle, pos);
20402a4: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
20402a8: a2 04 20 10 add %l0, 0x10, %l1 <== NOT EXECUTED
20402ac: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
20402b0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
20402b4: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
20402b8: 7f ff f5 df call 203da34 <rtems_rfs_block_get_bpos> <== NOT EXECUTED
20402bc: 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))
20402c0: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
20402c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20402c8: 02 80 00 14 be 2040318 <rtems_rfs_file_seek+0xc8> <== NOT EXECUTED
20402cc: 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),
20402d0: d2 04 20 1c ld [ %l0 + 0x1c ], %o1 <== NOT EXECUTED
20402d4: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
20402d8: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
20402dc: 7f ff f6 41 call 203dbe0 <rtems_rfs_block_map_find> <== NOT EXECUTED
20402e0: 92 02 60 34 add %o1, 0x34, %o1 <== NOT EXECUTED
rtems_rfs_file_map (handle),
rtems_rfs_file_bpos (handle),
&block);
if (rc > 0)
20402e4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20402e8: 14 bf ff eb bg 2040294 <rtems_rfs_file_seek+0x44> <== NOT EXECUTED
20402ec: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
return rc;
if (rtems_rfs_buffer_bnum (&handle->buffer) != block)
20402f0: c4 04 20 08 ld [ %l0 + 8 ], %g2 <== NOT EXECUTED
20402f4: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
20402f8: 02 80 00 08 be 2040318 <rtems_rfs_file_seek+0xc8> <== NOT EXECUTED
20402fc: 92 04 20 04 add %l0, 4, %o1 <== NOT EXECUTED
{
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
2040300: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
2040304: 7f ff fa 37 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2040308: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
rtems_rfs_file_buffer (handle));
if (rc > 0)
204030c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2040310: 14 bf ff e1 bg 2040294 <rtems_rfs_file_seek+0x44> <== NOT EXECUTED
2040314: 01 00 00 00 nop <== NOT EXECUTED
int rc = rtems_rfs_file_io_release (handle);
if (rc > 0)
return rc;
}
*new_pos = pos;
2040318: f4 26 e0 04 st %i2, [ %i3 + 4 ] <== NOT EXECUTED
204031c: f2 26 c0 00 st %i1, [ %i3 ] <== NOT EXECUTED
return 0;
}
2040320: 81 c7 e0 08 ret <== NOT EXECUTED
2040324: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
0203ff2c <rtems_rfs_file_set_size>:
}
int
rtems_rfs_file_set_size (rtems_rfs_file_handle* handle,
rtems_rfs_pos new_size)
{
203ff2c: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED
rtems_rfs_block_map* map = rtems_rfs_file_map (handle);
203ff30: 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)
{
203ff34: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
203ff38: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
203ff3c: 92 04 60 84 add %l1, 0x84, %o1 <== NOT EXECUTED
203ff40: 7f ff f6 ec call 203daf0 <rtems_rfs_block_get_size> <== NOT EXECUTED
203ff44: 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)
203ff48: 80 a6 40 08 cmp %i1, %o0 <== NOT EXECUTED
203ff4c: 02 80 00 af be 2040208 <rtems_rfs_file_set_size+0x2dc> <== NOT EXECUTED
203ff50: a6 10 00 1a mov %i2, %l3 <== NOT EXECUTED
{
/*
* Short cut for the common truncate on open call.
*/
if (new_size == 0)
203ff54: 80 94 80 13 orcc %l2, %l3, %g0 <== NOT EXECUTED
203ff58: 02 80 00 85 be 204016c <rtems_rfs_file_set_size+0x240> <== NOT EXECUTED
203ff5c: aa 04 60 34 add %l1, 0x34, %l5 <== NOT EXECUTED
if (rc > 0)
return rc;
}
else
{
if (size < new_size)
203ff60: 80 a4 80 08 cmp %l2, %o0 <== NOT EXECUTED
203ff64: 08 80 00 57 bleu 20400c0 <rtems_rfs_file_set_size+0x194> <== NOT EXECUTED
203ff68: 01 00 00 00 nop <== 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));
203ff6c: ec 04 20 1c ld [ %l0 + 0x1c ], %l6 <== NOT EXECUTED
*/
rtems_rfs_pos count;
uint32_t length;
bool read_block;
count = new_size - size;
203ff70: a6 a4 c0 09 subcc %l3, %o1, %l3 <== NOT EXECUTED
203ff74: a4 64 80 08 subx %l2, %o0, %l2 <== NOT EXECUTED
length = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
203ff78: d0 05 a0 98 ld [ %l6 + 0x98 ], %o0 <== NOT EXECUTED
read_block = false;
while (count)
203ff7c: 80 94 80 13 orcc %l2, %l3, %g0 <== NOT EXECUTED
203ff80: 02 80 00 a0 be 2040200 <rtems_rfs_file_set_size+0x2d4> <== NOT EXECUTED
203ff84: e8 02 20 08 ld [ %o0 + 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),
203ff88: ac 04 20 04 add %l0, 4, %l6 <== NOT EXECUTED
203ff8c: b6 10 20 00 clr %i3 <== NOT EXECUTED
203ff90: b8 07 bf f0 add %fp, -16, %i4 <== NOT EXECUTED
203ff94: ba 07 bf fc add %fp, -4, %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;
map->dirty = true;
203ff98: 10 80 00 28 b 2040038 <rtems_rfs_file_set_size+0x10c> <== NOT EXECUTED
203ff9c: ae 10 20 01 mov 1, %l7 <== NOT EXECUTED
map, 1, &block);
if (rc > 0)
return rc;
}
if (count < (length - bpos.boff))
203ffa0: 80 a0 80 13 cmp %g2, %l3 <== NOT EXECUTED
203ffa4: 28 80 00 44 bleu,a 20400b4 <rtems_rfs_file_set_size+0x188><== NOT EXECUTED
203ffa8: c0 24 60 40 clr [ %l1 + 0x40 ] <== NOT EXECUTED
{
length = count + bpos.boff;
203ffac: a8 00 40 13 add %g1, %l3, %l4 <== NOT EXECUTED
203ffb0: ee 2c 60 34 stb %l7, [ %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;
203ffb4: e8 24 60 40 st %l4, [ %l1 + 0x40 ] <== NOT EXECUTED
map->dirty = true;
203ffb8: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
203ffbc: b6 10 20 01 mov 1, %i3 <== 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),
203ffc0: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203ffc4: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
203ffc8: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
203ffcc: 7f ff fb 4e call 203ed04 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203ffd0: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
rtems_rfs_file_buffer (handle),
block, read_block);
if (rc > 0)
203ffd4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203ffd8: 14 80 00 63 bg 2040164 <rtems_rfs_file_set_size+0x238> <== NOT EXECUTED
203ffdc: 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);
203ffe0: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED
203ffe4: d0 00 a0 24 ld [ %g2 + 0x24 ], %o0 <== NOT EXECUTED
203ffe8: 94 25 00 01 sub %l4, %g1, %o2 <== NOT EXECUTED
203ffec: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED
203fff0: 40 00 30 f4 call 204c3c0 <memset> <== NOT EXECUTED
203fff4: 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),
203fff8: 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));
203fffc: ee 2c 20 04 stb %l7, [ %l0 + 4 ] <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
2040000: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
2040004: 7f ff fa f7 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2040008: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
rtems_rfs_file_buffer (handle));
if (rc > 0)
204000c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2040010: 14 80 00 55 bg 2040164 <rtems_rfs_file_set_size+0x238> <== NOT EXECUTED
2040014: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
return rc;
count -= length - bpos.boff;
2040018: 82 25 00 01 sub %l4, %g1, %g1 <== NOT EXECUTED
204001c: a6 a4 c0 01 subcc %l3, %g1, %l3 <== NOT EXECUTED
2040020: 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)
2040024: 80 94 80 13 orcc %l2, %l3, %g0 <== NOT EXECUTED
2040028: 22 80 00 59 be,a 204018c <rtems_rfs_file_set_size+0x260> <== NOT EXECUTED
204002c: ec 04 20 1c ld [ %l0 + 0x1c ], %l6 <== NOT EXECUTED
2040030: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
2040034: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== 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);
2040038: c4 04 60 3c ld [ %l1 + 0x3c ], %g2 <== NOT EXECUTED
204003c: c4 27 bf f0 st %g2, [ %fp + -16 ] <== NOT EXECUTED
2040040: c2 04 60 40 ld [ %l1 + 0x40 ], %g1 <== NOT EXECUTED
2040044: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
2040048: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
204004c: 02 80 00 04 be 204005c <rtems_rfs_file_set_size+0x130> <== NOT EXECUTED
2040050: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED
2040054: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
2040058: c4 27 bf f0 st %g2, [ %fp + -16 ] <== NOT EXECUTED
rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),
204005c: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
2040060: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
2040064: 7f ff f6 df call 203dbe0 <rtems_rfs_block_map_find> <== NOT EXECUTED
2040068: 96 10 00 1d mov %i5, %o3 <== NOT EXECUTED
map, &bpos, &block);
if (rc > 0)
204006c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2040070: 04 80 00 0c ble 20400a0 <rtems_rfs_file_set_size+0x174> <== NOT EXECUTED
2040074: 80 a2 20 06 cmp %o0, 6 <== NOT EXECUTED
{
/*
* Have we reached the EOF ?
*/
if (rc != ENXIO)
2040078: 12 80 00 3b bne 2040164 <rtems_rfs_file_set_size+0x238> <== NOT EXECUTED
204007c: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
return rc;
rc = rtems_rfs_block_map_grow (rtems_rfs_file_fs (handle),
2040080: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
2040084: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
2040088: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
204008c: 7f ff f8 a1 call 203e310 <rtems_rfs_block_map_grow> <== NOT EXECUTED
2040090: 96 10 00 1d mov %i5, %o3 <== NOT EXECUTED
map, 1, &block);
if (rc > 0)
2040094: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2040098: 14 80 00 33 bg 2040164 <rtems_rfs_file_set_size+0x238> <== NOT EXECUTED
204009c: 01 00 00 00 nop <== NOT EXECUTED
return rc;
}
if (count < (length - bpos.boff))
20400a0: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
20400a4: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
20400a8: 02 bf ff be be 203ffa0 <rtems_rfs_file_set_size+0x74> <== NOT EXECUTED
20400ac: 84 25 00 01 sub %l4, %g1, %g2 <== 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;
20400b0: c0 24 60 40 clr [ %l1 + 0x40 ] <== NOT EXECUTED
map->dirty = true;
20400b4: ee 2c 60 34 stb %l7, [ %l1 + 0x34 ] <== NOT EXECUTED
20400b8: 10 bf ff c2 b 203ffc0 <rtems_rfs_file_set_size+0x94> <== NOT EXECUTED
20400bc: 96 0e e0 ff and %i3, 0xff, %o3 <== NOT EXECUTED
if (rc > 0)
return rc;
}
else
{
if (size < new_size)
20400c0: 02 80 00 41 be 20401c4 <rtems_rfs_file_set_size+0x298> <== NOT EXECUTED
20400c4: 80 a4 c0 09 cmp %l3, %o1 <== NOT EXECUTED
uint32_t offset;
blocks =
rtems_rfs_block_map_count (map) -
(((new_size - 1) /
rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle))) + 1);
20400c8: ec 04 20 1c ld [ %l0 + 0x1c ], %l6 <== NOT EXECUTED
* Shrink
*/
rtems_rfs_block_no blocks;
uint32_t offset;
blocks =
20400cc: 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);
20400d0: ee 05 a0 98 ld [ %l6 + 0x98 ], %l7 <== NOT EXECUTED
* Shrink
*/
rtems_rfs_block_no blocks;
uint32_t offset;
blocks =
20400d4: 90 44 bf ff addx %l2, -1, %o0 <== NOT EXECUTED
rtems_rfs_block_map_count (map) -
(((new_size - 1) /
20400d8: ea 05 e0 08 ld [ %l7 + 8 ], %l5 <== NOT EXECUTED
* Shrink
*/
rtems_rfs_block_no blocks;
uint32_t offset;
blocks =
20400dc: 94 10 20 00 clr %o2 <== NOT EXECUTED
20400e0: 40 00 87 a3 call 2061f6c <__udivdi3> <== NOT EXECUTED
20400e4: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
20400e8: e8 04 60 3c ld [ %l1 + 0x3c ], %l4 <== NOT EXECUTED
20400ec: 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)
20400f0: 94 82 80 14 addcc %o2, %l4, %o2 <== NOT EXECUTED
20400f4: 12 80 00 4a bne 204021c <rtems_rfs_file_set_size+0x2f0> <== NOT EXECUTED
20400f8: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED
blocks =
rtems_rfs_block_map_count (map) -
(((new_size - 1) /
rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle))) + 1);
offset =
20400fc: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2040100: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2040104: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
2040108: 40 00 88 6a call 20622b0 <__umoddi3> <== NOT EXECUTED
204010c: 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;
2040110: 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),
2040114: c4 04 20 10 ld [ %l0 + 0x10 ], %g2 <== NOT EXECUTED
map->dirty = true;
2040118: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
204011c: c2 2c 60 34 stb %g1, [ %l1 + 0x34 ] <== NOT EXECUTED
2040120: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2040124: 12 80 00 2c bne 20401d4 <rtems_rfs_file_set_size+0x2a8> <== NOT EXECUTED
2040128: 82 10 00 14 mov %l4, %g1 <== NOT EXECUTED
204012c: 80 a5 00 02 cmp %l4, %g2 <== NOT EXECUTED
2040130: 28 80 00 2d bleu,a 20401e4 <rtems_rfs_file_set_size+0x2b8><== NOT EXECUTED
2040134: e8 24 20 10 st %l4, [ %l0 + 0x10 ] <== NOT EXECUTED
2040138: 86 05 3f ff add %l4, -1, %g3 <== NOT EXECUTED
204013c: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED
2040140: 22 80 00 3f be,a 204023c <rtems_rfs_file_set_size+0x310> <== NOT EXECUTED
2040144: c4 04 20 14 ld [ %l0 + 0x14 ], %g2 <== NOT EXECUTED
rtems_rfs_file_bpos (handle));
}
}
handle->shared->size.count = rtems_rfs_block_map_count (map);
handle->shared->size.offset = rtems_rfs_block_map_size_offset (map);
2040148: 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);
204014c: c2 25 a0 84 st %g1, [ %l6 + 0x84 ] <== NOT EXECUTED
handle->shared->size.offset = rtems_rfs_block_map_size_offset (map);
2040150: c4 25 a0 88 st %g2, [ %l6 + 0x88 ] <== NOT EXECUTED
if (rtems_rfs_file_update_mtime (handle))
2040154: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
2040158: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
204015c: 02 80 00 14 be 20401ac <rtems_rfs_file_set_size+0x280> <== NOT EXECUTED
2040160: 90 10 20 00 clr %o0 <== NOT EXECUTED
handle->shared->mtime = time (NULL);
}
return 0;
}
2040164: 81 c7 e0 08 ret <== NOT EXECUTED
2040168: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
/*
* Short cut for the common truncate on open call.
*/
if (new_size == 0)
{
rc = rtems_rfs_block_map_free_all (rtems_rfs_file_fs (handle), map);
204016c: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
2040170: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
2040174: 7f ff f8 1b call 203e1e0 <rtems_rfs_block_map_free_all> <== NOT EXECUTED
2040178: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
if (rc > 0)
204017c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2040180: 14 bf ff f9 bg 2040164 <rtems_rfs_file_set_size+0x238> <== NOT EXECUTED
2040184: 01 00 00 00 nop <== NOT EXECUTED
count = new_size - size;
length = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
read_block = false;
while (count)
2040188: ec 04 20 1c ld [ %l0 + 0x1c ], %l6 <== NOT EXECUTED
204018c: c2 04 60 3c ld [ %l1 + 0x3c ], %g1 <== NOT EXECUTED
rtems_rfs_file_bpos (handle));
}
}
handle->shared->size.count = rtems_rfs_block_map_count (map);
handle->shared->size.offset = rtems_rfs_block_map_size_offset (map);
2040190: 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);
2040194: c2 25 a0 84 st %g1, [ %l6 + 0x84 ] <== NOT EXECUTED
handle->shared->size.offset = rtems_rfs_block_map_size_offset (map);
2040198: c4 25 a0 88 st %g2, [ %l6 + 0x88 ] <== NOT EXECUTED
if (rtems_rfs_file_update_mtime (handle))
204019c: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
20401a0: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
20401a4: 12 bf ff f0 bne 2040164 <rtems_rfs_file_set_size+0x238> <== NOT EXECUTED
20401a8: 90 10 20 00 clr %o0 <== NOT EXECUTED
handle->shared->mtime = time (NULL);
20401ac: 40 00 53 48 call 2054ecc <time> <== NOT EXECUTED
20401b0: 90 10 20 00 clr %o0 <== NOT EXECUTED
20401b4: d0 25 a0 90 st %o0, [ %l6 + 0x90 ] <== NOT EXECUTED
20401b8: 90 10 20 00 clr %o0 <== NOT EXECUTED
}
return 0;
}
20401bc: 81 c7 e0 08 ret <== NOT EXECUTED
20401c0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
if (rc > 0)
return rc;
}
else
{
if (size < new_size)
20401c4: 08 bf ff c2 bleu 20400cc <rtems_rfs_file_set_size+0x1a0> <== NOT EXECUTED
20401c8: ec 04 20 1c ld [ %l0 + 0x1c ], %l6 <== NOT EXECUTED
*/
rtems_rfs_pos count;
uint32_t length;
bool read_block;
count = new_size - size;
20401cc: 10 bf ff 6a b 203ff74 <rtems_rfs_file_set_size+0x48> <== NOT EXECUTED
20401d0: a6 a4 c0 09 subcc %l3, %o1, %l3 <== 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),
20401d4: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED
20401d8: 12 bf ff d6 bne 2040130 <rtems_rfs_file_set_size+0x204> <== NOT EXECUTED
20401dc: 80 a5 00 02 cmp %l4, %g2 <== NOT EXECUTED
rtems_rfs_block_map_size (map)))
rtems_rfs_block_size_get_bpos (rtems_rfs_block_map_size (map),
20401e0: e8 24 20 10 st %l4, [ %l0 + 0x10 ] <== NOT EXECUTED
20401e4: c2 04 60 40 ld [ %l1 + 0x40 ], %g1 <== NOT EXECUTED
20401e8: c0 24 20 18 clr [ %l0 + 0x18 ] <== NOT EXECUTED
20401ec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20401f0: 02 80 00 04 be 2040200 <rtems_rfs_file_set_size+0x2d4> <== NOT EXECUTED
20401f4: c2 24 20 14 st %g1, [ %l0 + 0x14 ] <== NOT EXECUTED
20401f8: a8 05 3f ff add %l4, -1, %l4 <== NOT EXECUTED
20401fc: e8 24 20 10 st %l4, [ %l0 + 0x10 ] <== NOT EXECUTED
2040200: 10 bf ff d2 b 2040148 <rtems_rfs_file_set_size+0x21c> <== NOT EXECUTED
2040204: c2 04 60 3c ld [ %l1 + 0x3c ], %g1 <== 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)
2040208: 80 a6 80 09 cmp %i2, %o1 <== NOT EXECUTED
204020c: 12 bf ff 53 bne 203ff58 <rtems_rfs_file_set_size+0x2c> <== NOT EXECUTED
2040210: 80 94 80 13 orcc %l2, %l3, %g0 <== NOT EXECUTED
handle->shared->size.count = rtems_rfs_block_map_count (map);
handle->shared->size.offset = rtems_rfs_block_map_size_offset (map);
if (rtems_rfs_file_update_mtime (handle))
handle->shared->mtime = time (NULL);
2040214: 10 bf ff d4 b 2040164 <rtems_rfs_file_set_size+0x238> <== NOT EXECUTED
2040218: 90 10 20 00 clr %o0 <== NOT EXECUTED
new_size % rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
if (blocks)
{
int rc;
rc = rtems_rfs_block_map_shrink (rtems_rfs_file_fs (handle),
204021c: 7f ff f7 23 call 203dea8 <rtems_rfs_block_map_shrink> <== NOT EXECUTED
2040220: 92 05 a0 34 add %l6, 0x34, %o1 <== NOT EXECUTED
rtems_rfs_file_map (handle),
blocks);
if (rc > 0)
2040224: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2040228: 14 bf ff cf bg 2040164 <rtems_rfs_file_set_size+0x238> <== NOT EXECUTED
204022c: 01 00 00 00 nop <== NOT EXECUTED
2040230: ec 04 20 1c ld [ %l0 + 0x1c ], %l6 <== NOT EXECUTED
2040234: 10 bf ff b2 b 20400fc <rtems_rfs_file_set_size+0x1d0> <== NOT EXECUTED
2040238: e8 04 60 3c ld [ %l1 + 0x3c ], %l4 <== 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),
204023c: 80 a2 40 02 cmp %o1, %g2 <== NOT EXECUTED
2040240: 3a bf ff c3 bcc,a 204014c <rtems_rfs_file_set_size+0x220><== NOT EXECUTED
2040244: c4 04 60 40 ld [ %l1 + 0x40 ], %g2 <== NOT EXECUTED
rtems_rfs_block_map_size (map)))
rtems_rfs_block_size_get_bpos (rtems_rfs_block_map_size (map),
2040248: 10 bf ff e7 b 20401e4 <rtems_rfs_file_set_size+0x2b8> <== NOT EXECUTED
204024c: e8 24 20 10 st %l4, [ %l0 + 0x10 ] <== NOT EXECUTED
020410e0 <rtems_rfs_format>:
return rc;
}
int
rtems_rfs_format (const char* name, const rtems_rfs_format_config* config)
{
20410e0: 9d e3 be c0 save %sp, -320, %sp <== NOT EXECUTED
rtems_rfs_file_system fs;
int group;
int rc;
if (config->verbose)
20410e4: c2 0e 60 15 ldub [ %i1 + 0x15 ], %g1 <== NOT EXECUTED
20410e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20410ec: 12 80 00 f5 bne 20414c0 <rtems_rfs_format+0x3e0> <== NOT EXECUTED
20410f0: 11 00 81 b2 sethi %hi(0x206c800), %o0 <== NOT EXECUTED
printf ("rtems-rfs: format: %s\n", name);
memset (&fs, 0, sizeof (rtems_rfs_file_system));
20410f4: a4 07 bf 2c add %fp, -212, %l2 <== NOT EXECUTED
20410f8: 92 10 20 00 clr %o1 <== NOT EXECUTED
20410fc: 94 10 20 80 mov 0x80, %o2 <== NOT EXECUTED
2041100: 40 00 2c b0 call 204c3c0 <memset> <== NOT EXECUTED
2041104: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
2041108: 82 07 bf 70 add %fp, -144, %g1 <== NOT EXECUTED
204110c: c2 27 bf 6c st %g1, [ %fp + -148 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
2041110: 82 07 bf 6c add %fp, -148, %g1 <== NOT EXECUTED
2041114: 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);
2041118: 82 07 bf 80 add %fp, -128, %g1 <== NOT EXECUTED
204111c: c2 27 bf 7c st %g1, [ %fp + -132 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
2041120: 82 07 bf 7c add %fp, -132, %g1 <== NOT EXECUTED
2041124: 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);
2041128: 82 07 bf 90 add %fp, -112, %g1 <== NOT EXECUTED
204112c: c2 27 bf 8c st %g1, [ %fp + -116 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
2041130: 82 07 bf 8c add %fp, -116, %g1 <== NOT EXECUTED
2041134: 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);
2041138: 82 07 bf a0 add %fp, -96, %g1 <== NOT EXECUTED
204113c: c2 27 bf 9c st %g1, [ %fp + -100 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
2041140: 82 07 bf 9c add %fp, -100, %g1 <== NOT EXECUTED
2041144: 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;
2041148: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
204114c: 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;
2041150: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED
/*
* Open the buffer interface.
*/
rc = rtems_rfs_buffer_open (name, &fs);
2041154: 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;
2041158: c2 27 bf 2c st %g1, [ %fp + -212 ] <== NOT EXECUTED
/*
* Open the buffer interface.
*/
rc = rtems_rfs_buffer_open (name, &fs);
204115c: 7f ff f6 8a call 203eb84 <rtems_rfs_buffer_open> <== NOT EXECUTED
2041160: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
if (rc > 0)
2041164: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2041168: 14 80 01 82 bg 2041770 <rtems_rfs_format+0x690> <== NOT EXECUTED
204116c: c2 07 bf 38 ld [ %fp + -200 ], %g1 <== NOT EXECUTED
}
/*
* Check the media.
*/
if (rtems_rfs_fs_media_block_size (&fs) == 0)
2041170: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 <== NOT EXECUTED
2041174: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2041178: 02 80 00 cc be 20414a8 <rtems_rfs_format+0x3c8> <== NOT EXECUTED
204117c: 11 00 81 b2 sethi %hi(0x206c800), %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;
2041180: e0 06 40 00 ld [ %i1 ], %l0 <== NOT EXECUTED
if (!fs->block_size)
2041184: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
2041188: 02 80 00 df be 2041504 <rtems_rfs_format+0x424> <== NOT EXECUTED
204118c: e0 27 bf 34 st %l0, [ %fp + -204 ] <== NOT EXECUTED
if (fs->block_size > (4 * 1024))
fs->block_size = (4 * 1024);
}
if ((fs->block_size % rtems_rfs_fs_media_block_size (fs)) != 0)
2041190: e2 00 60 24 ld [ %g1 + 0x24 ], %l1 <== NOT EXECUTED
2041194: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2041198: 40 00 80 84 call 20613a8 <.urem> <== NOT EXECUTED
204119c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20411a0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20411a4: 32 80 00 fb bne,a 2041590 <rtems_rfs_format+0x4b0> <== NOT EXECUTED
20411a8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
printf ("block size (%zd) is not a multiple of media block size (%" PRId32 ")\n",
fs->block_size, rtems_rfs_fs_media_block_size (fs));
return false;
}
fs->group_blocks = config->group_blocks;
20411ac: c2 06 60 04 ld [ %i1 + 4 ], %g1 <== NOT EXECUTED
if (!fs->group_blocks)
20411b0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20411b4: 02 80 00 c8 be 20414d4 <rtems_rfs_format+0x3f4> <== NOT EXECUTED
20411b8: c2 27 bf 50 st %g1, [ %fp + -176 ] <== NOT EXECUTED
20411bc: e0 07 bf 34 ld [ %fp + -204 ], %l0 <== 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))
20411c0: a1 2c 20 03 sll %l0, 3, %l0 <== NOT EXECUTED
20411c4: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED
20411c8: 0a 80 00 ca bcs 20414f0 <rtems_rfs_format+0x410> <== NOT EXECUTED
20411cc: 11 00 81 b2 sethi %hi(0x206c800), %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;
20411d0: 7f ff fd f3 call 204099c <rtems_rfs_fs_media_size> <== NOT EXECUTED
20411d4: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
20411d8: e0 07 bf 34 ld [ %fp + -204 ], %l0 <== NOT EXECUTED
20411dc: 94 10 20 00 clr %o2 <== NOT EXECUTED
20411e0: 40 00 83 63 call 2061f6c <__udivdi3> <== NOT EXECUTED
20411e4: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
20411e8: d2 27 bf 30 st %o1, [ %fp + -208 ] <== NOT EXECUTED
20411ec: 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)
20411f0: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
20411f4: 02 80 00 06 be 204120c <rtems_rfs_format+0x12c> <== NOT EXECUTED
20411f8: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
20411fc: 90 02 7f ff add %o1, -1, %o0 <== NOT EXECUTED
2041200: 40 00 7f be call 20610f8 <.udiv> <== NOT EXECUTED
2041204: 93 2c 20 03 sll %l0, 3, %o1 <== NOT EXECUTED
2041208: a6 02 20 01 add %o0, 1, %l3 <== 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;
204120c: 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),
2041210: e6 27 bf 4c st %l3, [ %fp + -180 ] <== NOT EXECUTED
rtems_rfs_bits_per_block (fs));
fs->group_inodes = config->group_inodes;
if (!fs->group_inodes)
2041214: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2041218: 12 80 00 19 bne 204127c <rtems_rfs_format+0x19c> <== NOT EXECUTED
204121c: 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)
2041220: d0 06 60 0c ld [ %i1 + 0xc ], %o0 <== NOT EXECUTED
2041224: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2041228: 22 80 00 02 be,a 2041230 <rtems_rfs_format+0x150> <== NOT EXECUTED
204122c: 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) -
2041230: 7f ff 06 57 call 2002b8c <.umul> <== NOT EXECUTED
2041234: 92 04 7f ff add %l1, -1, %o1 <== NOT EXECUTED
2041238: 92 10 20 64 mov 0x64, %o1 <== NOT EXECUTED
204123c: 40 00 7f af call 20610f8 <.udiv> <== NOT EXECUTED
2041240: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED
* "quotient = dividend / divisor"
*/
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
if (dividend == 0)
2041244: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2041248: 22 80 00 07 be,a 2041264 <rtems_rfs_format+0x184> <== NOT EXECUTED
204124c: 92 10 20 38 mov 0x38, %o1 <== NOT EXECUTED
2041250: 90 02 3f ff add %o0, -1, %o0 <== NOT EXECUTED
2041254: 40 00 7f a9 call 20610f8 <.udiv> <== NOT EXECUTED
2041258: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
204125c: a2 02 20 01 add %o0, 1, %l1 <== 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);
2041260: 92 10 20 38 mov 0x38, %o1 <== NOT EXECUTED
2041264: 40 00 7f a5 call 20610f8 <.udiv> <== NOT EXECUTED
2041268: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
204126c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
2041270: 7f ff 06 47 call 2002b8c <.umul> <== NOT EXECUTED
2041274: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2041278: 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;
204127c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2041280: 40 00 7f 9e call 20610f8 <.udiv> <== NOT EXECUTED
2041284: 92 10 20 38 mov 0x38, %o1 <== NOT EXECUTED
fs->group_inodes =
rtems_rfs_rup_quotient (fs->group_inodes,
2041288: 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;
204128c: d0 27 bf 58 st %o0, [ %fp + -168 ] <== NOT EXECUTED
2041290: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
* "quotient = dividend / divisor"
*/
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
if (dividend == 0)
2041294: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2041298: 02 80 00 06 be 20412b0 <rtems_rfs_format+0x1d0> <== NOT EXECUTED
204129c: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED
20412a0: 90 00 7f ff add %g1, -1, %o0 <== NOT EXECUTED
20412a4: 40 00 7f 95 call 20610f8 <.udiv> <== NOT EXECUTED
20412a8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20412ac: 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,
20412b0: 7f ff 06 37 call 2002b8c <.umul> <== NOT EXECUTED
20412b4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
fs->inodes_per_block) * fs->inodes_per_block;
if (fs->group_inodes > rtems_rfs_bitmap_numof_bits (fs->block_size))
20412b8: 83 2c 20 03 sll %l0, 3, %g1 <== NOT EXECUTED
20412bc: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED
20412c0: 08 80 00 03 bleu 20412cc <rtems_rfs_format+0x1ec> <== NOT EXECUTED
20412c4: d0 27 bf 54 st %o0, [ %fp + -172 ] <== NOT EXECUTED
fs->group_inodes = rtems_rfs_bitmap_numof_bits (fs->block_size);
20412c8: c2 27 bf 54 st %g1, [ %fp + -172 ] <== NOT EXECUTED
fs->max_name_length = config->max_name_length;
20412cc: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
if (!fs->max_name_length)
20412d0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20412d4: 12 80 00 04 bne 20412e4 <rtems_rfs_format+0x204> <== NOT EXECUTED
20412d8: c2 27 bf 44 st %g1, [ %fp + -188 ] <== NOT EXECUTED
{
fs->max_name_length = 512;
20412dc: 82 10 22 00 mov 0x200, %g1 <== NOT EXECUTED
20412e0: c2 27 bf 44 st %g1, [ %fp + -188 ] <== NOT EXECUTED
* Check the configuration data.
*/
if (!rtems_rfs_check_config (&fs, config))
return -1;
if (config->verbose)
20412e4: c2 0e 60 15 ldub [ %i1 + 0x15 ], %g1 <== NOT EXECUTED
20412e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20412ec: 02 80 00 4d be 2041420 <rtems_rfs_format+0x340> <== NOT EXECUTED
20412f0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
{
printf ("rtems-rfs: format: media size = %" PRIu64 "\n",
20412f4: 7f ff fd aa call 204099c <rtems_rfs_fs_media_size> <== NOT EXECUTED
20412f8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
20412fc: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED
2041300: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
2041304: 11 00 81 b2 sethi %hi(0x206c800), %o0 <== NOT EXECUTED
2041308: 40 00 30 4a call 204d430 <printf> <== NOT EXECUTED
204130c: 90 12 22 38 or %o0, 0x238, %o0 ! 206ca38 <__FUNCTION__.7657+0x160><== NOT EXECUTED
rtems_rfs_fs_media_size (&fs));
printf ("rtems-rfs: format: media blocks = %" PRIu32 "\n",
2041310: c2 07 bf 38 ld [ %fp + -200 ], %g1 <== NOT EXECUTED
2041314: 11 00 81 b2 sethi %hi(0x206c800), %o0 <== NOT EXECUTED
2041318: d2 00 60 1c ld [ %g1 + 0x1c ], %o1 <== NOT EXECUTED
204131c: 40 00 30 45 call 204d430 <printf> <== NOT EXECUTED
2041320: 90 12 22 60 or %o0, 0x260, %o0 <== NOT EXECUTED
rtems_rfs_fs_media_blocks (&fs));
printf ("rtems-rfs: format: media block size = %" PRIu32 "\n",
2041324: c2 07 bf 38 ld [ %fp + -200 ], %g1 <== NOT EXECUTED
2041328: 11 00 81 b2 sethi %hi(0x206c800), %o0 <== NOT EXECUTED
204132c: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
2041330: 40 00 30 40 call 204d430 <printf> <== NOT EXECUTED
2041334: 90 12 22 88 or %o0, 0x288, %o0 <== NOT EXECUTED
rtems_rfs_fs_media_block_size (&fs));
printf ("rtems-rfs: format: size = %" PRIu64 "\n",
2041338: 7f ff fd 90 call 2040978 <rtems_rfs_fs_size> <== NOT EXECUTED
204133c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2041340: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED
2041344: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
2041348: 11 00 81 b2 sethi %hi(0x206c800), %o0 <== NOT EXECUTED
204134c: 40 00 30 39 call 204d430 <printf> <== NOT EXECUTED
2041350: 90 12 22 b8 or %o0, 0x2b8, %o0 ! 206cab8 <__FUNCTION__.7657+0x1e0><== NOT EXECUTED
rtems_rfs_fs_size (&fs));
printf ("rtems-rfs: format: blocks = %zu\n",
2041354: d2 07 bf 30 ld [ %fp + -208 ], %o1 <== NOT EXECUTED
2041358: 11 00 81 b2 sethi %hi(0x206c800), %o0 <== NOT EXECUTED
204135c: 40 00 30 35 call 204d430 <printf> <== NOT EXECUTED
2041360: 90 12 22 d8 or %o0, 0x2d8, %o0 ! 206cad8 <__FUNCTION__.7657+0x200><== NOT EXECUTED
rtems_rfs_fs_blocks (&fs));
printf ("rtems-rfs: format: block size = %zu\n",
2041364: d2 07 bf 34 ld [ %fp + -204 ], %o1 <== NOT EXECUTED
2041368: 11 00 81 b2 sethi %hi(0x206c800), %o0 <== NOT EXECUTED
204136c: 40 00 30 31 call 204d430 <printf> <== NOT EXECUTED
2041370: 90 12 23 00 or %o0, 0x300, %o0 ! 206cb00 <__FUNCTION__.7657+0x228><== NOT EXECUTED
rtems_rfs_fs_block_size (&fs));
printf ("rtems-rfs: format: bits per block = %u\n",
2041374: d2 07 bf 34 ld [ %fp + -204 ], %o1 <== NOT EXECUTED
2041378: 11 00 81 b2 sethi %hi(0x206c800), %o0 <== NOT EXECUTED
204137c: 93 2a 60 03 sll %o1, 3, %o1 <== NOT EXECUTED
2041380: 40 00 30 2c call 204d430 <printf> <== NOT EXECUTED
2041384: 90 12 23 28 or %o0, 0x328, %o0 <== NOT EXECUTED
rtems_rfs_bits_per_block (&fs));
printf ("rtems-rfs: format: inode size = %zu\n", RTEMS_RFS_INODE_SIZE);
2041388: 92 10 20 38 mov 0x38, %o1 <== NOT EXECUTED
204138c: 11 00 81 b2 sethi %hi(0x206c800), %o0 <== NOT EXECUTED
2041390: 40 00 30 28 call 204d430 <printf> <== NOT EXECUTED
2041394: 90 12 23 50 or %o0, 0x350, %o0 ! 206cb50 <__FUNCTION__.7657+0x278><== NOT EXECUTED
printf ("rtems-rfs: format: inodes = %zu (%d.%d%%)\n",
2041398: 7f ff ff 2d call 204104c <rtems_rfs_inode_overhead> <== NOT EXECUTED
204139c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
20413a0: d2 07 bf 54 ld [ %fp + -172 ], %o1 <== NOT EXECUTED
20413a4: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
20413a8: 7f ff 05 f9 call 2002b8c <.umul> <== NOT EXECUTED
20413ac: d0 07 bf 4c ld [ %fp + -180 ], %o0 <== NOT EXECUTED
20413b0: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED
20413b4: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
20413b8: 40 00 7f 52 call 2061100 <.div> <== NOT EXECUTED
20413bc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
20413c0: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED
20413c4: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
20413c8: 40 00 7f fa call 20613b0 <.rem> <== NOT EXECUTED
20413cc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
20413d0: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
20413d4: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
20413d8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
20413dc: 11 00 81 b2 sethi %hi(0x206c800), %o0 <== NOT EXECUTED
20413e0: 40 00 30 14 call 204d430 <printf> <== NOT EXECUTED
20413e4: 90 12 23 78 or %o0, 0x378, %o0 ! 206cb78 <__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);
20413e8: d2 07 bf 4c ld [ %fp + -180 ], %o1 <== NOT EXECUTED
20413ec: 11 00 81 b2 sethi %hi(0x206c800), %o0 <== NOT EXECUTED
20413f0: 40 00 30 10 call 204d430 <printf> <== NOT EXECUTED
20413f4: 90 12 23 a8 or %o0, 0x3a8, %o0 ! 206cba8 <__FUNCTION__.7657+0x2d0><== NOT EXECUTED
printf ("rtems-rfs: format: group blocks = %zu\n", fs.group_blocks);
20413f8: d2 07 bf 50 ld [ %fp + -176 ], %o1 <== NOT EXECUTED
20413fc: 11 00 81 b2 sethi %hi(0x206c800), %o0 <== NOT EXECUTED
2041400: 40 00 30 0c call 204d430 <printf> <== NOT EXECUTED
2041404: 90 12 23 c8 or %o0, 0x3c8, %o0 ! 206cbc8 <__FUNCTION__.7657+0x2f0><== NOT EXECUTED
printf ("rtems-rfs: format: group inodes = %zu\n", fs.group_inodes);
2041408: d2 07 bf 54 ld [ %fp + -172 ], %o1 <== NOT EXECUTED
204140c: 11 00 81 b2 sethi %hi(0x206c800), %o0 <== NOT EXECUTED
2041410: 40 00 30 08 call 204d430 <printf> <== NOT EXECUTED
2041414: 90 12 23 f0 or %o0, 0x3f0, %o0 ! 206cbf0 <__FUNCTION__.7657+0x318><== NOT EXECUTED
2041418: e0 07 bf 34 ld [ %fp + -204 ], %l0 <== NOT EXECUTED
}
rc = rtems_rfs_buffer_setblksize (&fs, rtems_rfs_fs_block_size (&fs));
204141c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2041420: 7f ff f5 b8 call 203eb00 <rtems_rfs_buffer_setblksize> <== NOT EXECUTED
2041424: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
if (rc > 0)
2041428: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
204142c: 14 80 01 ef bg 2041be8 <rtems_rfs_format+0xb08> <== NOT EXECUTED
2041430: aa 07 bf ec add %fp, -20, %l5 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
2041434: c0 2f bf ec clrb [ %fp + -20 ] <== NOT EXECUTED
handle->bnum = 0;
2041438: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
handle->buffer = NULL;
204143c: 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);
2041440: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2041444: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
2041448: 94 10 20 00 clr %o2 <== NOT EXECUTED
204144c: 7f ff f6 2e call 203ed04 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
2041450: 96 10 20 00 clr %o3 <== NOT EXECUTED
if (rc > 0)
2041454: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2041458: 04 80 00 55 ble 20415ac <rtems_rfs_format+0x4cc> <== NOT EXECUTED
204145c: 92 10 00 15 mov %l5, %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);
2041460: 7f ff f5 e0 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2041464: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
printf ("rtems-rfs: write-superblock: request failed: %d: %s\n",
2041468: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
handle->dirty = false;
204146c: c0 2f bf ec clrb [ %fp + -20 ] <== NOT EXECUTED
handle->bnum = 0;
2041470: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
2041474: 40 00 38 90 call 204f6b4 <strerror> <== NOT EXECUTED
2041478: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
204147c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2041480: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2041484: 11 00 81 b3 sethi %hi(0x206cc00), %o0 <== NOT EXECUTED
2041488: 40 00 2f ea call 204d430 <printf> <== NOT EXECUTED
204148c: 90 12 20 50 or %o0, 0x50, %o0 ! 206cc50 <__FUNCTION__.7657+0x378><== NOT EXECUTED
return -1;
}
if (!rtems_rfs_write_superblock (&fs))
{
printf ("rtems-rfs: format: superblock write failed\n");
2041490: 11 00 81 b3 sethi %hi(0x206cc00), %o0 <== NOT EXECUTED
2041494: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2041498: 40 00 30 92 call 204d6e0 <puts> <== NOT EXECUTED
204149c: 90 12 20 c8 or %o0, 0xc8, %o0 <== NOT EXECUTED
return -1;
20414a0: 81 c7 e0 08 ret <== NOT EXECUTED
20414a4: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Check the media.
*/
if (rtems_rfs_fs_media_block_size (&fs) == 0)
{
printf ("rtems-rfs: media block is invalid: %" PRIu32 "\n",
20414a8: 92 10 20 00 clr %o1 <== NOT EXECUTED
20414ac: 90 12 21 a0 or %o0, 0x1a0, %o0 <== NOT EXECUTED
20414b0: 40 00 2f e0 call 204d430 <printf> <== NOT EXECUTED
20414b4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rtems_rfs_fs_media_block_size (&fs));
return -1;
20414b8: 81 c7 e0 08 ret <== NOT EXECUTED
20414bc: 81 e8 00 00 restore <== NOT EXECUTED
rtems_rfs_file_system fs;
int group;
int rc;
if (config->verbose)
printf ("rtems-rfs: format: %s\n", name);
20414c0: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
20414c4: 40 00 2f db call 204d430 <printf> <== NOT EXECUTED
20414c8: 90 12 21 58 or %o0, 0x158, %o0 <== NOT EXECUTED
memset (&fs, 0, sizeof (rtems_rfs_file_system));
20414cc: 10 bf ff 0b b 20410f8 <rtems_rfs_format+0x18> <== NOT EXECUTED
20414d0: a4 07 bf 2c add %fp, -212, %l2 <== 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);
20414d4: e0 07 bf 34 ld [ %fp + -204 ], %l0 <== NOT EXECUTED
20414d8: 83 2c 20 03 sll %l0, 3, %g1 <== NOT EXECUTED
}
if (fs->group_blocks > rtems_rfs_bitmap_numof_bits (fs->block_size))
20414dc: a1 2c 20 03 sll %l0, 3, %l0 <== NOT EXECUTED
20414e0: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED
20414e4: 1a bf ff 3b bcc 20411d0 <rtems_rfs_format+0xf0> <== NOT EXECUTED
20414e8: c2 27 bf 50 st %g1, [ %fp + -176 ] <== NOT EXECUTED
{
printf ("group block count is higher than bits in block\n");
20414ec: 11 00 81 b2 sethi %hi(0x206c800), %o0 <== NOT EXECUTED
20414f0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20414f4: 40 00 30 7b call 204d6e0 <puts> <== NOT EXECUTED
20414f8: 90 12 22 08 or %o0, 0x208, %o0 <== NOT EXECUTED
20414fc: 81 c7 e0 08 ret <== NOT EXECUTED
2041500: 81 e8 00 00 restore <== NOT EXECUTED
const rtems_rfs_format_config* config)
{
fs->block_size = config->block_size;
if (!fs->block_size)
{
uint64_t total_size = rtems_rfs_fs_media_size (fs);
2041504: 7f ff fd 26 call 204099c <rtems_rfs_fs_media_size> <== NOT EXECUTED
2041508: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
if (total_size >= GIGS (1))
204150c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2041510: 12 80 00 08 bne 2041530 <rtems_rfs_format+0x450> <== NOT EXECUTED
2041514: 84 10 20 00 clr %g2 <== NOT EXECUTED
2041518: 03 00 03 ff sethi %hi(0xffc00), %g1 <== NOT EXECUTED
204151c: 82 10 63 ff or %g1, 0x3ff, %g1 ! fffff <PROM_START+0xfffff><== NOT EXECUTED
2041520: 80 a2 40 01 cmp %o1, %g1 <== NOT EXECUTED
2041524: 08 80 00 13 bleu 2041570 <rtems_rfs_format+0x490> <== NOT EXECUTED
2041528: e0 07 bf 34 ld [ %fp + -204 ], %l0 <== NOT EXECUTED
{
uint32_t gigs = (total_size + GIGS (1)) / GIGS (1);
204152c: 84 10 20 00 clr %g2 <== NOT EXECUTED
2041530: 07 00 04 00 sethi %hi(0x100000), %g3 <== NOT EXECUTED
2041534: 92 82 40 03 addcc %o1, %g3, %o1 <== NOT EXECUTED
2041538: 83 32 60 14 srl %o1, 0x14, %g1 <== NOT EXECUTED
204153c: 90 42 00 02 addx %o0, %g2, %o0 <== NOT EXECUTED
int b;
for (b = 31; b > 0; b--)
if ((gigs & (1 << b)) != 0)
2041540: 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);
2041544: 91 2a 20 0c sll %o0, 0xc, %o0 <== NOT EXECUTED
2041548: 86 12 00 01 or %o0, %g1, %g3 <== NOT EXECUTED
204154c: 10 80 00 04 b 204155c <rtems_rfs_format+0x47c> <== NOT EXECUTED
2041550: 82 10 20 1f mov 0x1f, %g1 <== NOT EXECUTED
int b;
for (b = 31; b > 0; b--)
2041554: 02 80 00 06 be 204156c <rtems_rfs_format+0x48c> <== NOT EXECUTED
2041558: a0 10 20 01 mov 1, %l0 <== NOT EXECUTED
if ((gigs & (1 << b)) != 0)
204155c: a1 28 80 01 sll %g2, %g1, %l0 <== NOT EXECUTED
2041560: 80 8c 00 03 btst %l0, %g3 <== NOT EXECUTED
2041564: 22 bf ff fc be,a 2041554 <rtems_rfs_format+0x474> <== NOT EXECUTED
2041568: 82 80 7f ff addcc %g1, -1, %g1 <== NOT EXECUTED
break;
fs->block_size = 1 << b;
204156c: e0 27 bf 34 st %l0, [ %fp + -204 ] <== NOT EXECUTED
}
if (fs->block_size < 512)
2041570: 80 a4 21 ff cmp %l0, 0x1ff <== NOT EXECUTED
2041574: 18 80 00 79 bgu 2041758 <rtems_rfs_format+0x678> <== NOT EXECUTED
2041578: 05 00 00 04 sethi %hi(0x1000), %g2 <== NOT EXECUTED
fs->block_size = 512;
204157c: 82 10 22 00 mov 0x200, %g1 <== NOT EXECUTED
2041580: a0 10 22 00 mov 0x200, %l0 <== NOT EXECUTED
2041584: c2 27 bf 34 st %g1, [ %fp + -204 ] <== NOT EXECUTED
2041588: 10 bf ff 02 b 2041190 <rtems_rfs_format+0xb0> <== NOT EXECUTED
204158c: c2 07 bf 38 ld [ %fp + -200 ], %g1 <== NOT EXECUTED
fs->block_size = (4 * 1024);
}
if ((fs->block_size % rtems_rfs_fs_media_block_size (fs)) != 0)
{
printf ("block size (%zd) is not a multiple of media block size (%" PRId32 ")\n",
2041590: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2041594: 11 00 81 b2 sethi %hi(0x206c800), %o0 <== NOT EXECUTED
2041598: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
204159c: 40 00 2f a5 call 204d430 <printf> <== NOT EXECUTED
20415a0: 90 12 21 c8 or %o0, 0x1c8, %o0 <== NOT EXECUTED
20415a4: 81 c7 e0 08 ret <== NOT EXECUTED
20415a8: 81 e8 00 00 restore <== NOT EXECUTED
printf ("rtems-rfs: write-superblock: request failed: %d: %s\n",
rc, strerror (rc));
return false;
}
sb = rtems_rfs_buffer_data (&handle);
20415ac: 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));
20415b0: 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);
20415b4: 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));
20415b8: 92 10 20 ff mov 0xff, %o1 <== NOT EXECUTED
20415bc: 40 00 2b 81 call 204c3c0 <memset> <== NOT EXECUTED
20415c0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_MAGIC, RTEMS_RFS_SB_MAGIC);
20415c4: 84 10 20 28 mov 0x28, %g2 <== NOT EXECUTED
20415c8: c4 2c 00 00 stb %g2, [ %l0 ] <== NOT EXECUTED
20415cc: 84 10 20 09 mov 9, %g2 <== NOT EXECUTED
20415d0: c4 2c 20 01 stb %g2, [ %l0 + 1 ] <== NOT EXECUTED
20415d4: 84 10 20 20 mov 0x20, %g2 <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_VERSION, RTEMS_RFS_VERSION);
20415d8: c0 2c 20 04 clrb [ %l0 + 4 ] <== NOT EXECUTED
20415dc: c0 2c 20 05 clrb [ %l0 + 5 ] <== NOT EXECUTED
20415e0: c0 2c 20 06 clrb [ %l0 + 6 ] <== NOT EXECUTED
20415e4: 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);
20415e8: c4 2c 20 02 stb %g2, [ %l0 + 2 ] <== NOT EXECUTED
20415ec: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20415f0: 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));
20415f4: 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);
20415f8: 90 10 00 12 mov %l2, %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));
20415fc: c4 2c 20 0c stb %g2, [ %l0 + 0xc ] <== NOT EXECUTED
2041600: 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);
2041604: 92 10 00 15 mov %l5, %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));
2041608: c4 2c 20 0d stb %g2, [ %l0 + 0xd ] <== NOT EXECUTED
204160c: c4 07 bf 30 ld [ %fp + -208 ], %g2 <== NOT EXECUTED
2041610: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
2041614: c4 2c 20 0e stb %g2, [ %l0 + 0xe ] <== NOT EXECUTED
2041618: c4 07 bf 30 ld [ %fp + -208 ], %g2 <== NOT EXECUTED
204161c: c4 2c 20 0f stb %g2, [ %l0 + 0xf ] <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE, rtems_rfs_fs_block_size (fs));
2041620: c4 0f bf 34 ldub [ %fp + -204 ], %g2 <== NOT EXECUTED
2041624: c4 2c 20 08 stb %g2, [ %l0 + 8 ] <== NOT EXECUTED
2041628: c4 17 bf 34 lduh [ %fp + -204 ], %g2 <== NOT EXECUTED
204162c: c4 2c 20 09 stb %g2, [ %l0 + 9 ] <== NOT EXECUTED
2041630: c4 07 bf 34 ld [ %fp + -204 ], %g2 <== NOT EXECUTED
2041634: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
2041638: c4 2c 20 0a stb %g2, [ %l0 + 0xa ] <== NOT EXECUTED
204163c: c4 07 bf 34 ld [ %fp + -204 ], %g2 <== NOT EXECUTED
2041640: c4 2c 20 0b stb %g2, [ %l0 + 0xb ] <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_BAD_BLOCKS, fs->bad_blocks);
2041644: c4 0f bf 40 ldub [ %fp + -192 ], %g2 <== NOT EXECUTED
2041648: c4 2c 20 10 stb %g2, [ %l0 + 0x10 ] <== NOT EXECUTED
204164c: c4 17 bf 40 lduh [ %fp + -192 ], %g2 <== NOT EXECUTED
2041650: c4 2c 20 11 stb %g2, [ %l0 + 0x11 ] <== NOT EXECUTED
2041654: c4 07 bf 40 ld [ %fp + -192 ], %g2 <== NOT EXECUTED
2041658: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
204165c: c4 2c 20 12 stb %g2, [ %l0 + 0x12 ] <== NOT EXECUTED
2041660: c4 07 bf 40 ld [ %fp + -192 ], %g2 <== NOT EXECUTED
2041664: c4 2c 20 13 stb %g2, [ %l0 + 0x13 ] <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH, fs->max_name_length);
2041668: c4 0f bf 44 ldub [ %fp + -188 ], %g2 <== NOT EXECUTED
204166c: c4 2c 20 14 stb %g2, [ %l0 + 0x14 ] <== NOT EXECUTED
2041670: c4 17 bf 44 lduh [ %fp + -188 ], %g2 <== NOT EXECUTED
2041674: c4 2c 20 15 stb %g2, [ %l0 + 0x15 ] <== NOT EXECUTED
2041678: c4 07 bf 44 ld [ %fp + -188 ], %g2 <== NOT EXECUTED
204167c: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
2041680: c4 2c 20 16 stb %g2, [ %l0 + 0x16 ] <== NOT EXECUTED
2041684: c4 07 bf 44 ld [ %fp + -188 ], %g2 <== NOT EXECUTED
2041688: c4 2c 20 17 stb %g2, [ %l0 + 0x17 ] <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_GROUPS, fs->group_count);
204168c: c4 0f bf 4c ldub [ %fp + -180 ], %g2 <== NOT EXECUTED
2041690: c4 2c 20 18 stb %g2, [ %l0 + 0x18 ] <== NOT EXECUTED
2041694: c4 17 bf 4c lduh [ %fp + -180 ], %g2 <== NOT EXECUTED
2041698: c4 2c 20 19 stb %g2, [ %l0 + 0x19 ] <== NOT EXECUTED
204169c: c4 07 bf 4c ld [ %fp + -180 ], %g2 <== NOT EXECUTED
20416a0: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
20416a4: c4 2c 20 1a stb %g2, [ %l0 + 0x1a ] <== NOT EXECUTED
20416a8: c4 07 bf 4c ld [ %fp + -180 ], %g2 <== NOT EXECUTED
20416ac: c4 2c 20 1b stb %g2, [ %l0 + 0x1b ] <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS, fs->group_blocks);
20416b0: c4 0f bf 50 ldub [ %fp + -176 ], %g2 <== NOT EXECUTED
20416b4: c4 2c 20 1c stb %g2, [ %l0 + 0x1c ] <== NOT EXECUTED
20416b8: c4 17 bf 50 lduh [ %fp + -176 ], %g2 <== NOT EXECUTED
20416bc: c4 2c 20 1d stb %g2, [ %l0 + 0x1d ] <== NOT EXECUTED
20416c0: c4 07 bf 50 ld [ %fp + -176 ], %g2 <== NOT EXECUTED
20416c4: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
20416c8: c4 2c 20 1e stb %g2, [ %l0 + 0x1e ] <== NOT EXECUTED
20416cc: c4 07 bf 50 ld [ %fp + -176 ], %g2 <== NOT EXECUTED
20416d0: c4 2c 20 1f stb %g2, [ %l0 + 0x1f ] <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES, fs->group_inodes);
20416d4: c4 0f bf 54 ldub [ %fp + -172 ], %g2 <== NOT EXECUTED
20416d8: c4 2c 20 20 stb %g2, [ %l0 + 0x20 ] <== NOT EXECUTED
20416dc: c4 17 bf 54 lduh [ %fp + -172 ], %g2 <== NOT EXECUTED
20416e0: c4 2c 20 21 stb %g2, [ %l0 + 0x21 ] <== NOT EXECUTED
20416e4: c4 07 bf 54 ld [ %fp + -172 ], %g2 <== NOT EXECUTED
20416e8: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
20416ec: c4 2c 20 22 stb %g2, [ %l0 + 0x22 ] <== NOT EXECUTED
20416f0: c4 07 bf 54 ld [ %fp + -172 ], %g2 <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_INODE_SIZE, RTEMS_RFS_INODE_SIZE);
20416f4: 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);
20416f8: c4 2c 20 23 stb %g2, [ %l0 + 0x23 ] <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_INODE_SIZE, RTEMS_RFS_INODE_SIZE);
20416fc: c0 2c 20 25 clrb [ %l0 + 0x25 ] <== NOT EXECUTED
2041700: c0 2c 20 26 clrb [ %l0 + 0x26 ] <== NOT EXECUTED
2041704: 84 10 20 38 mov 0x38, %g2 <== NOT EXECUTED
2041708: c4 2c 20 27 stb %g2, [ %l0 + 0x27 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle);
rc = rtems_rfs_buffer_handle_release (fs, &handle);
204170c: 7f ff f5 35 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2041710: c2 2f bf ec stb %g1, [ %fp + -20 ] <== NOT EXECUTED
if (rc > 0)
2041714: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2041718: 04 80 00 1f ble 2041794 <rtems_rfs_format+0x6b4> <== NOT EXECUTED
204171c: 92 10 00 15 mov %l5, %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);
2041720: 7f ff f5 30 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2041724: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
printf ("rtems-rfs: write-superblock: buffer release failed: %d: %s\n",
2041728: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
handle->dirty = false;
204172c: c0 2f bf ec clrb [ %fp + -20 ] <== NOT EXECUTED
handle->bnum = 0;
2041730: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
2041734: 40 00 37 e0 call 204f6b4 <strerror> <== NOT EXECUTED
2041738: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
204173c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2041740: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2041744: 11 00 81 b3 sethi %hi(0x206cc00), %o0 <== NOT EXECUTED
2041748: 40 00 2f 3a call 204d430 <printf> <== NOT EXECUTED
204174c: 90 12 20 88 or %o0, 0x88, %o0 ! 206cc88 <__FUNCTION__.7657+0x3b0><== NOT EXECUTED
return -1;
}
if (!rtems_rfs_write_superblock (&fs))
{
printf ("rtems-rfs: format: superblock write failed\n");
2041750: 10 bf ff 51 b 2041494 <rtems_rfs_format+0x3b4> <== NOT EXECUTED
2041754: 11 00 81 b3 sethi %hi(0x206cc00), %o0 <== NOT EXECUTED
}
if (fs->block_size < 512)
fs->block_size = 512;
if (fs->block_size > (4 * 1024))
2041758: 80 a4 00 02 cmp %l0, %g2 <== NOT EXECUTED
204175c: 08 bf fe 8d bleu 2041190 <rtems_rfs_format+0xb0> <== NOT EXECUTED
2041760: c2 07 bf 38 ld [ %fp + -200 ], %g1 <== NOT EXECUTED
fs->block_size = (4 * 1024);
2041764: c4 27 bf 34 st %g2, [ %fp + -204 ] <== NOT EXECUTED
2041768: 10 bf fe 8a b 2041190 <rtems_rfs_format+0xb0> <== NOT EXECUTED
204176c: a0 10 00 02 mov %g2, %l0 <== NOT EXECUTED
* Open the buffer interface.
*/
rc = rtems_rfs_buffer_open (name, &fs);
if (rc > 0)
{
printf ("rtems-rfs: format: buffer open failed: %d: %s\n",
2041770: 40 00 37 d1 call 204f6b4 <strerror> <== NOT EXECUTED
2041774: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2041778: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
204177c: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2041780: 11 00 81 b2 sethi %hi(0x206c800), %o0 <== NOT EXECUTED
2041784: 40 00 2f 2b call 204d430 <printf> <== NOT EXECUTED
2041788: 90 12 21 70 or %o0, 0x170, %o0 ! 206c970 <__FUNCTION__.7657+0x98><== NOT EXECUTED
rc, strerror (rc));
return -1;
204178c: 81 c7 e0 08 ret <== NOT EXECUTED
2041790: 81 e8 00 00 restore <== 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);
2041794: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2041798: 7f ff f5 12 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
204179c: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
{
printf ("rtems-rfs: format: superblock write failed\n");
return -1;
}
for (group = 0; group < fs.group_count; group++)
20417a0: c2 07 bf 4c ld [ %fp + -180 ], %g1 <== NOT EXECUTED
handle->dirty = false;
20417a4: c0 2f bf ec clrb [ %fp + -20 ] <== NOT EXECUTED
handle->bnum = 0;
20417a8: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
20417ac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20417b0: 04 80 00 a8 ble 2041a50 <rtems_rfs_format+0x970> <== NOT EXECUTED
20417b4: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
int b;
int rc;
group_base = rtems_rfs_fs_block (fs, group, 0);
if (group_base > rtems_rfs_fs_blocks (fs))
20417b8: c2 07 bf 30 ld [ %fp + -208 ], %g1 <== NOT EXECUTED
return -1;
}
for (group = 0; group < fs.group_count; group++)
if (!rtems_rfs_write_group (&fs, group,
config->initialise_inodes, config->verbose))
20417bc: ee 0e 60 14 ldub [ %i1 + 0x14 ], %l7 <== NOT EXECUTED
int b;
int rc;
group_base = rtems_rfs_fs_block (fs, group, 0);
if (group_base > rtems_rfs_fs_blocks (fs))
20417c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
return -1;
}
for (group = 0; group < fs.group_count; group++)
if (!rtems_rfs_write_group (&fs, group,
config->initialise_inodes, config->verbose))
20417c4: fa 0e 60 15 ldub [ %i1 + 0x15 ], %i5 <== NOT EXECUTED
size_t group_size;
int blocks;
int b;
int rc;
group_base = rtems_rfs_fs_block (fs, group, 0);
20417c8: e0 07 bf 50 ld [ %fp + -176 ], %l0 <== NOT EXECUTED
if (group_base > rtems_rfs_fs_blocks (fs))
20417cc: 02 80 00 62 be 2041954 <rtems_rfs_format+0x874> <== NOT EXECUTED
20417d0: a8 10 20 00 clr %l4 <== 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",
20417d4: 37 00 81 b3 sethi %hi(0x206cc00), %i3 <== NOT EXECUTED
rc, strerror (rc));
return false;
}
if (verbose)
printf (", blocks");
20417d8: 39 00 81 b3 sethi %hi(0x206cc00), %i4 <== 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",
20417dc: b6 16 e1 38 or %i3, 0x138, %i3 <== NOT EXECUTED
rc, strerror (rc));
return false;
}
if (verbose)
printf (", blocks");
20417e0: b8 17 21 70 or %i4, 0x170, %i4 <== NOT EXECUTED
group_base = rtems_rfs_fs_block (fs, group, 0);
if (group_base > rtems_rfs_fs_blocks (fs))
{
printf ("rtems-rfs: write-group: group %d base beyond disk limit\n",
20417e4: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED
20417e8: a8 10 20 00 clr %l4 <== NOT EXECUTED
20417ec: a6 07 bf d4 add %fp, -44, %l3 <== 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);
20417f0: b4 10 20 01 mov 1, %i2 <== 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))
20417f4: 84 04 00 11 add %l0, %l1, %g2 <== NOT EXECUTED
20417f8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
20417fc: 2a 80 00 02 bcs,a 2041804 <rtems_rfs_format+0x724> <== NOT EXECUTED
2041800: a0 20 40 11 sub %g1, %l1, %l0 <== NOT EXECUTED
group_size = rtems_rfs_fs_blocks (fs) - group_base;
if (verbose)
2041804: ba 8f 60 ff andcc %i5, 0xff, %i5 <== NOT EXECUTED
2041808: 12 80 00 3b bne 20418f4 <rtems_rfs_format+0x814> <== NOT EXECUTED
204180c: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
2041810: c0 2f bf ec clrb [ %fp + -20 ] <== NOT EXECUTED
handle->bnum = 0;
2041814: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
handle->buffer = NULL;
2041818: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
printf (", blocks");
/*
* Open the block bitmap using the new buffer.
*/
rc = rtems_rfs_bitmap_open (&bitmap, fs, &handle, group_size,
204181c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
2041820: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2041824: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED
2041828: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
204182c: 40 00 19 81 call 2047e30 <rtems_rfs_bitmap_open> <== NOT EXECUTED
2041830: 98 10 00 11 mov %l1, %o4 <== NOT EXECUTED
group_base + RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
if (rc > 0)
2041834: ac 92 20 00 orcc %o0, 0, %l6 <== NOT EXECUTED
2041838: 04 80 00 12 ble 2041880 <rtems_rfs_format+0x7a0> <== NOT EXECUTED
204183c: 92 10 00 15 mov %l5, %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);
2041840: 7f ff f4 e8 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2041844: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
printf ("\nrtems-rfs: write-group: group %3d: open block bitmap failed: %d: %s\n",
2041848: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
handle->dirty = false;
204184c: c0 2f bf ec clrb [ %fp + -20 ] <== NOT EXECUTED
handle->bnum = 0;
2041850: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
2041854: 40 00 37 98 call 204f6b4 <strerror> <== NOT EXECUTED
2041858: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
204185c: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
2041860: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2041864: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED
2041868: 11 00 81 b3 sethi %hi(0x206cc00), %o0 <== NOT EXECUTED
204186c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2041870: 40 00 2e f0 call 204d430 <printf> <== NOT EXECUTED
2041874: 90 12 21 80 or %o0, 0x180, %o0 <== NOT EXECUTED
2041878: 81 c7 e0 08 ret <== NOT EXECUTED
204187c: 81 e8 00 00 restore <== 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));
2041880: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
2041884: d4 07 bf 34 ld [ %fp + -204 ], %o2 <== NOT EXECUTED
2041888: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
204188c: 40 00 2a cd call 204c3c0 <memset> <== NOT EXECUTED
2041890: 92 10 20 ff mov 0xff, %o1 <== NOT EXECUTED
/*
* Clear the bitmap.
*/
rc = rtems_rfs_bitmap_map_clear_all (&bitmap);
2041894: 40 00 19 78 call 2047e74 <rtems_rfs_bitmap_map_clear_all> <== NOT EXECUTED
2041898: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
if (rc > 0)
204189c: ac 92 20 00 orcc %o0, 0, %l6 <== NOT EXECUTED
20418a0: 04 80 00 34 ble 2041970 <rtems_rfs_format+0x890> <== NOT EXECUTED
20418a4: 92 10 20 00 clr %o1 <== NOT EXECUTED
{
rtems_rfs_bitmap_close (&bitmap);
20418a8: 40 00 19 0b call 2047cd4 <rtems_rfs_bitmap_close> <== NOT EXECUTED
20418ac: 90 10 00 13 mov %l3, %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);
20418b0: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
20418b4: 7f ff f4 cb call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
20418b8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle);
printf ("\nrtems-rfs: write-group: group %3d: block bitmap clear all failed: %d: %s\n",
20418bc: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
handle->dirty = false;
20418c0: c0 2f bf ec clrb [ %fp + -20 ] <== NOT EXECUTED
handle->bnum = 0;
20418c4: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
20418c8: 40 00 37 7b call 204f6b4 <strerror> <== NOT EXECUTED
20418cc: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
20418d0: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
20418d4: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
20418d8: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED
20418dc: 11 00 81 b3 sethi %hi(0x206cc00), %o0 <== NOT EXECUTED
20418e0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20418e4: 40 00 2e d3 call 204d430 <printf> <== NOT EXECUTED
20418e8: 90 12 21 c8 or %o0, 0x1c8, %o0 <== NOT EXECUTED
20418ec: 81 c7 e0 08 ret <== NOT EXECUTED
20418f0: 81 e8 00 00 restore <== 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",
20418f4: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
20418f8: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
20418fc: 40 00 2e cd call 204d430 <printf> <== NOT EXECUTED
2041900: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
rc, strerror (rc));
return false;
}
if (verbose)
printf (", blocks");
2041904: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
2041908: c0 2f bf ec clrb [ %fp + -20 ] <== NOT EXECUTED
handle->bnum = 0;
204190c: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
2041910: 40 00 2e c8 call 204d430 <printf> <== NOT EXECUTED
2041914: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
/*
* Open the block bitmap using the new buffer.
*/
rc = rtems_rfs_bitmap_open (&bitmap, fs, &handle, group_size,
2041918: 10 bf ff c2 b 2041820 <rtems_rfs_format+0x740> <== NOT EXECUTED
204191c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
{
printf ("rtems-rfs: format: superblock write failed\n");
return -1;
}
for (group = 0; group < fs.group_count; group++)
2041920: a8 05 20 01 inc %l4 <== NOT EXECUTED
2041924: 80 a0 40 14 cmp %g1, %l4 <== NOT EXECUTED
2041928: 04 80 00 4a ble 2041a50 <rtems_rfs_format+0x970> <== NOT EXECUTED
204192c: e0 07 bf 50 ld [ %fp + -176 ], %l0 <== NOT EXECUTED
size_t group_size;
int blocks;
int b;
int rc;
group_base = rtems_rfs_fs_block (fs, group, 0);
2041930: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
2041934: 7f ff 04 96 call 2002b8c <.umul> <== NOT EXECUTED
2041938: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
if (group_base > rtems_rfs_fs_blocks (fs))
204193c: 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);
2041940: a2 02 20 01 add %o0, 1, %l1 <== NOT EXECUTED
return -1;
}
for (group = 0; group < fs.group_count; group++)
if (!rtems_rfs_write_group (&fs, group,
config->initialise_inodes, config->verbose))
2041944: ee 0e 60 14 ldub [ %i1 + 0x14 ], %l7 <== NOT EXECUTED
int b;
int rc;
group_base = rtems_rfs_fs_block (fs, group, 0);
if (group_base > rtems_rfs_fs_blocks (fs))
2041948: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
204194c: 08 bf ff aa bleu 20417f4 <rtems_rfs_format+0x714> <== NOT EXECUTED
2041950: fa 0e 60 15 ldub [ %i1 + 0x15 ], %i5 <== NOT EXECUTED
{
printf ("rtems-rfs: write-group: group %d base beyond disk limit\n",
2041954: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
2041958: 11 00 81 b3 sethi %hi(0x206cc00), %o0 <== NOT EXECUTED
204195c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2041960: 40 00 2e b4 call 204d430 <printf> <== NOT EXECUTED
2041964: 90 12 20 f8 or %o0, 0xf8, %o0 <== NOT EXECUTED
2041968: 81 c7 e0 08 ret <== NOT EXECUTED
204196c: 81 e8 00 00 restore <== NOT EXECUTED
}
/*
* Forced allocation of the block bitmap.
*/
rtems_rfs_bitmap_map_set (&bitmap, RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
2041970: 40 00 19 d9 call 20480d4 <rtems_rfs_bitmap_map_set> <== NOT EXECUTED
2041974: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
/*
* Forced allocation of the inode bitmap.
*/
rtems_rfs_bitmap_map_set (&bitmap, RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK);
2041978: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
204197c: 40 00 19 d6 call 20480d4 <rtems_rfs_bitmap_map_set> <== NOT EXECUTED
2041980: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
/*
* Determine the number of inodes blocks in the group.
*/
blocks = rtems_rfs_rup_quotient (fs->group_inodes, fs->inodes_per_block);
2041984: d0 07 bf 54 ld [ %fp + -172 ], %o0 <== NOT EXECUTED
* "quotient = dividend / divisor"
*/
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
if (dividend == 0)
2041988: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
204198c: 12 80 00 2a bne 2041a34 <rtems_rfs_format+0x954> <== NOT EXECUTED
2041990: d2 07 bf 58 ld [ %fp + -168 ], %o1 <== NOT EXECUTED
2041994: ac 10 20 01 mov 1, %l6 <== NOT EXECUTED
2041998: 82 10 20 00 clr %g1 <== NOT EXECUTED
/*
* Forced allocation of the inode blocks which follow the block bitmap.
*/
for (b = 0; b < blocks; b++)
rtems_rfs_bitmap_map_set (&bitmap, b + RTEMS_RFS_GROUP_INODE_BLOCK);
204199c: 92 00 60 02 add %g1, 2, %o1 <== NOT EXECUTED
20419a0: c2 27 bf 24 st %g1, [ %fp + -220 ] <== NOT EXECUTED
20419a4: 40 00 19 cc call 20480d4 <rtems_rfs_bitmap_map_set> <== NOT EXECUTED
20419a8: 90 10 00 13 mov %l3, %o0 <== 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++)
20419ac: c2 07 bf 24 ld [ %fp + -220 ], %g1 <== NOT EXECUTED
20419b0: 82 00 60 01 inc %g1 <== NOT EXECUTED
20419b4: 80 a0 40 16 cmp %g1, %l6 <== NOT EXECUTED
20419b8: 06 bf ff fa bl 20419a0 <rtems_rfs_format+0x8c0> <== NOT EXECUTED
20419bc: 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);
20419c0: 40 00 18 c5 call 2047cd4 <rtems_rfs_bitmap_close> <== NOT EXECUTED
20419c4: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
if (rc > 0)
20419c8: 94 92 20 00 orcc %o0, 0, %o2 <== NOT EXECUTED
20419cc: 14 80 00 42 bg 2041ad4 <rtems_rfs_format+0x9f4> <== NOT EXECUTED
20419d0: 80 a7 60 00 cmp %i5, 0 <== NOT EXECUTED
return false;
}
rtems_rfs_buffer_mark_dirty (&handle);
if (verbose)
20419d4: 12 80 00 6a bne 2041b7c <rtems_rfs_format+0xa9c> <== NOT EXECUTED
20419d8: f4 2f bf ec stb %i2, [ %fp + -20 ] <== NOT EXECUTED
printf (", inodes");
/*
* Open the inode bitmap using the old buffer. Should release any changes.
*/
rc = rtems_rfs_bitmap_open (&bitmap, fs, &handle, group_size,
20419dc: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
20419e0: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
20419e4: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
20419e8: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED
20419ec: 40 00 19 11 call 2047e30 <rtems_rfs_bitmap_open> <== NOT EXECUTED
20419f0: 98 04 60 01 add %l1, 1, %o4 <== NOT EXECUTED
group_base + RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK);
if (rc > 0)
20419f4: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
20419f8: 04 80 00 47 ble 2041b14 <rtems_rfs_format+0xa34> <== NOT EXECUTED
20419fc: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
2041a00: 7f ff fd ae call 20410b8 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
2041a04: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: open inode bitmap failed: %d: %s\n",
2041a08: 40 00 37 2b call 204f6b4 <strerror> <== NOT EXECUTED
2041a0c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2041a10: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
2041a14: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2041a18: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2041a1c: 11 00 81 b3 sethi %hi(0x206cc00), %o0 <== NOT EXECUTED
2041a20: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2041a24: 40 00 2e 83 call 204d430 <printf> <== NOT EXECUTED
2041a28: 90 12 22 70 or %o0, 0x270, %o0 <== NOT EXECUTED
2041a2c: 81 c7 e0 08 ret <== NOT EXECUTED
2041a30: 81 e8 00 00 restore <== NOT EXECUTED
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
if (dividend == 0)
return 1;
return ((dividend - 1) / divisor) + 1;
2041a34: 40 00 7d b1 call 20610f8 <.udiv> <== NOT EXECUTED
2041a38: 90 02 3f ff add %o0, -1, %o0 <== NOT EXECUTED
2041a3c: ac 02 20 01 add %o0, 1, %l6 <== 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++)
2041a40: 80 a5 a0 00 cmp %l6, 0 <== NOT EXECUTED
2041a44: 14 bf ff d6 bg 204199c <rtems_rfs_format+0x8bc> <== NOT EXECUTED
2041a48: 82 10 20 00 clr %g1 <== NOT EXECUTED
2041a4c: 30 bf ff dd b,a 20419c0 <rtems_rfs_format+0x8e0> <== NOT EXECUTED
for (group = 0; group < fs.group_count; group++)
if (!rtems_rfs_write_group (&fs, group,
config->initialise_inodes, config->verbose))
return -1;
if (config->verbose)
2041a50: c2 0e 60 15 ldub [ %i1 + 0x15 ], %g1 <== NOT EXECUTED
2041a54: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2041a58: 12 80 00 61 bne 2041bdc <rtems_rfs_format+0xafc> <== NOT EXECUTED
2041a5c: 01 00 00 00 nop <== NOT EXECUTED
printf ("\n");
rc = rtems_rfs_buffer_close (&fs);
2041a60: 7f ff f4 3e call 203eb58 <rtems_rfs_buffer_close> <== NOT EXECUTED
2041a64: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
if (rc > 0)
2041a68: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2041a6c: 14 80 00 ac bg 2041d1c <rtems_rfs_format+0xc3c> <== NOT EXECUTED
2041a70: 92 10 20 00 clr %o1 <== NOT EXECUTED
int rc;
/*
* External API so returns -1.
*/
rc = rtems_rfs_fs_open (name, NULL,
2041a74: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2041a78: 94 10 20 06 mov 6, %o2 <== NOT EXECUTED
2041a7c: 96 10 20 00 clr %o3 <== NOT EXECUTED
2041a80: 7f ff fb f2 call 2040a48 <rtems_rfs_fs_open> <== NOT EXECUTED
2041a84: 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)
2041a88: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2041a8c: 06 80 01 01 bl 2041e90 <rtems_rfs_format+0xdb0> <== NOT EXECUTED
2041a90: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
printf ("rtems-rfs: format: file system open failed: %d: %s\n",
errno, strerror (errno));
return -1;
}
rc = rtems_rfs_inode_alloc (fs, RTEMS_RFS_ROOT_INO, &ino);
2041a94: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
2041a98: 40 00 03 db call 2042a04 <rtems_rfs_inode_alloc> <== NOT EXECUTED
2041a9c: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED
if (rc > 0)
2041aa0: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2041aa4: 14 80 00 3b bg 2041b90 <rtems_rfs_format+0xab0> <== NOT EXECUTED
2041aa8: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
rc, strerror (rc));
rtems_rfs_fs_close (fs);
return rc;
}
if (ino != RTEMS_RFS_ROOT_INO)
2041aac: 80 a2 60 01 cmp %o1, 1 <== NOT EXECUTED
2041ab0: 02 80 00 57 be 2041c0c <rtems_rfs_format+0xb2c> <== NOT EXECUTED
2041ab4: 11 00 81 b4 sethi %hi(0x206d000), %o0 <== NOT EXECUTED
{
printf ("rtems-rfs: format: allocated inode not root ino: %" PRId32 "\n", ino);
2041ab8: 40 00 2e 5e call 204d430 <printf> <== NOT EXECUTED
2041abc: 90 12 20 78 or %o0, 0x78, %o0 ! 206d078 <__FUNCTION__.7657+0x7a0><== NOT EXECUTED
rtems_rfs_fs_close (fs);
2041ac0: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
2041ac4: 7f ff fb c0 call 20409c4 <rtems_rfs_fs_close> <== NOT EXECUTED
2041ac8: b0 10 20 00 clr %i0 <== NOT EXECUTED
2041acc: 81 c7 e0 08 ret <== NOT EXECUTED
2041ad0: 81 e8 00 00 restore <== NOT EXECUTED
* Close the block bitmap.
*/
rc = rtems_rfs_bitmap_close (&bitmap);
if (rc > 0)
{
rtems_rfs_buffer_handle_close (fs, &handle);
2041ad4: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
2041ad8: d4 27 bf 24 st %o2, [ %fp + -220 ] <== NOT EXECUTED
2041adc: 7f ff fd 77 call 20410b8 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
2041ae0: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: close block bitmap failed: %d: %s\n",
2041ae4: d4 07 bf 24 ld [ %fp + -220 ], %o2 <== NOT EXECUTED
2041ae8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2041aec: 40 00 36 f2 call 204f6b4 <strerror> <== NOT EXECUTED
2041af0: 90 10 00 0a mov %o2, %o0 <== NOT EXECUTED
2041af4: d4 07 bf 24 ld [ %fp + -220 ], %o2 <== NOT EXECUTED
2041af8: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2041afc: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
2041b00: 11 00 81 b3 sethi %hi(0x206cc00), %o0 <== NOT EXECUTED
2041b04: 40 00 2e 4b call 204d430 <printf> <== NOT EXECUTED
2041b08: 90 12 22 18 or %o0, 0x218, %o0 ! 206ce18 <__FUNCTION__.7657+0x540><== NOT EXECUTED
2041b0c: 81 c7 e0 08 ret <== NOT EXECUTED
2041b10: 81 e8 00 00 restore <== 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));
2041b14: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
2041b18: d4 07 bf 34 ld [ %fp + -204 ], %o2 <== NOT EXECUTED
2041b1c: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
2041b20: 40 00 2a 28 call 204c3c0 <memset> <== NOT EXECUTED
2041b24: 92 10 20 00 clr %o1 <== NOT EXECUTED
/*
* Clear the inode bitmap.
*/
rc = rtems_rfs_bitmap_map_clear_all (&bitmap);
2041b28: 40 00 18 d3 call 2047e74 <rtems_rfs_bitmap_map_clear_all> <== NOT EXECUTED
2041b2c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
if (rc > 0)
2041b30: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2041b34: 04 80 00 4d ble 2041c68 <rtems_rfs_format+0xb88> <== NOT EXECUTED
2041b38: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_rfs_bitmap_close (&bitmap);
2041b3c: 40 00 18 66 call 2047cd4 <rtems_rfs_bitmap_close> <== NOT EXECUTED
2041b40: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle);
2041b44: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
2041b48: 7f ff fd 5c call 20410b8 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
2041b4c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: inode bitmap" \
2041b50: 40 00 36 d9 call 204f6b4 <strerror> <== NOT EXECUTED
2041b54: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2041b58: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
2041b5c: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2041b60: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2041b64: 11 00 81 b3 sethi %hi(0x206cc00), %o0 <== NOT EXECUTED
2041b68: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2041b6c: 40 00 2e 31 call 204d430 <printf> <== NOT EXECUTED
2041b70: 90 12 22 b8 or %o0, 0x2b8, %o0 <== NOT EXECUTED
2041b74: 81 c7 e0 08 ret <== NOT EXECUTED
2041b78: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_buffer_mark_dirty (&handle);
if (verbose)
printf (", inodes");
2041b7c: 11 00 81 b3 sethi %hi(0x206cc00), %o0 <== NOT EXECUTED
2041b80: 40 00 2e 2c call 204d430 <printf> <== NOT EXECUTED
2041b84: 90 12 22 60 or %o0, 0x260, %o0 ! 206ce60 <__FUNCTION__.7657+0x588><== NOT EXECUTED
/*
* Open the inode bitmap using the old buffer. Should release any changes.
*/
rc = rtems_rfs_bitmap_open (&bitmap, fs, &handle, group_size,
2041b88: 10 bf ff 96 b 20419e0 <rtems_rfs_format+0x900> <== NOT EXECUTED
2041b8c: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
}
rc = rtems_rfs_inode_alloc (fs, RTEMS_RFS_ROOT_INO, &ino);
if (rc > 0)
{
printf ("rtems-rfs: format: inode allocation failed: %d: %s\n",
2041b90: 40 00 36 c9 call 204f6b4 <strerror> <== NOT EXECUTED
2041b94: 01 00 00 00 nop <== NOT EXECUTED
2041b98: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2041b9c: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2041ba0: 11 00 81 b4 sethi %hi(0x206d000), %o0 <== NOT EXECUTED
2041ba4: 40 00 2e 23 call 204d430 <printf> <== NOT EXECUTED
2041ba8: 90 12 20 40 or %o0, 0x40, %o0 ! 206d040 <__FUNCTION__.7657+0x768><== NOT EXECUTED
rc, strerror (rc));
rtems_rfs_fs_close (fs);
2041bac: 7f ff fb 86 call 20409c4 <rtems_rfs_fs_close> <== NOT EXECUTED
2041bb0: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
}
rc = rtems_rfs_write_root_dir (name);
if (rc > 0)
{
printf ("rtems-rfs: format: writing root dir failed: %d: %s\n",
2041bb4: 40 00 36 c0 call 204f6b4 <strerror> <== NOT EXECUTED
2041bb8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2041bbc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2041bc0: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2041bc4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2041bc8: 11 00 81 b4 sethi %hi(0x206d000), %o0 <== NOT EXECUTED
2041bcc: 40 00 2e 19 call 204d430 <printf> <== NOT EXECUTED
2041bd0: 90 12 21 c0 or %o0, 0x1c0, %o0 ! 206d1c0 <__FUNCTION__.7657+0x8e8><== NOT EXECUTED
rc, strerror (rc));
return -1;
}
return 0;
}
2041bd4: 81 c7 e0 08 ret <== NOT EXECUTED
2041bd8: 81 e8 00 00 restore <== NOT EXECUTED
if (!rtems_rfs_write_group (&fs, group,
config->initialise_inodes, config->verbose))
return -1;
if (config->verbose)
printf ("\n");
2041bdc: 40 00 2e 8d call 204d610 <putchar> <== NOT EXECUTED
2041be0: 90 10 20 0a mov 0xa, %o0 <== NOT EXECUTED
2041be4: 30 bf ff 9f b,a 2041a60 <rtems_rfs_format+0x980> <== NOT EXECUTED
}
rc = rtems_rfs_buffer_setblksize (&fs, rtems_rfs_fs_block_size (&fs));
if (rc > 0)
{
printf ("rtems-rfs: format: setting block size failed: %d: %s\n",
2041be8: 40 00 36 b3 call 204f6b4 <strerror> <== NOT EXECUTED
2041bec: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2041bf0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2041bf4: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2041bf8: 11 00 81 b3 sethi %hi(0x206cc00), %o0 <== NOT EXECUTED
2041bfc: 40 00 2e 0d call 204d430 <printf> <== NOT EXECUTED
2041c00: 90 12 20 18 or %o0, 0x18, %o0 ! 206cc18 <__FUNCTION__.7657+0x340><== NOT EXECUTED
rc, strerror (rc));
return -1;
2041c04: 81 c7 e0 08 ret <== NOT EXECUTED
2041c08: 81 e8 00 00 restore <== 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);
2041c0c: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
2041c10: a0 07 bf ac add %fp, -84, %l0 <== NOT EXECUTED
2041c14: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2041c18: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2041c1c: 40 00 03 20 call 204289c <rtems_rfs_inode_open> <== NOT EXECUTED
2041c20: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
2041c24: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2041c28: 24 80 00 54 ble,a 2041d78 <rtems_rfs_format+0xc98> <== NOT EXECUTED
2041c2c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
printf ("rtems-rfs: format: inode open failed: %d: %s\n",
2041c30: 40 00 36 a1 call 204f6b4 <strerror> <== NOT EXECUTED
2041c34: 01 00 00 00 nop <== NOT EXECUTED
2041c38: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2041c3c: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2041c40: 11 00 81 b4 sethi %hi(0x206d000), %o0 <== NOT EXECUTED
2041c44: 40 00 2d fb call 204d430 <printf> <== NOT EXECUTED
2041c48: 90 12 20 b0 or %o0, 0xb0, %o0 ! 206d0b0 <__FUNCTION__.7657+0x7d8><== NOT EXECUTED
rc, strerror (rc));
rtems_rfs_group_bitmap_free (fs, true, ino);
2041c4c: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
2041c50: d4 07 bf f8 ld [ %fp + -8 ], %o2 <== NOT EXECUTED
2041c54: 40 00 01 10 call 2042094 <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
2041c58: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
rtems_rfs_fs_close (fs);
2041c5c: 7f ff fb 5a call 20409c4 <rtems_rfs_fs_close> <== NOT EXECUTED
2041c60: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
2041c64: 30 bf ff d4 b,a 2041bb4 <rtems_rfs_format+0xad4> <== NOT EXECUTED
}
/*
* Close the inode bitmap.
*/
rc = rtems_rfs_bitmap_close (&bitmap);
2041c68: 40 00 18 1b call 2047cd4 <rtems_rfs_bitmap_close> <== NOT EXECUTED
2041c6c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
if (rc > 0)
2041c70: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2041c74: 14 80 00 33 bg 2041d40 <rtems_rfs_format+0xc60> <== NOT EXECUTED
2041c78: 80 8d e0 ff btst 0xff, %l7 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle);
/*
* Initialise the inode tables if required to do so.
*/
if (initialise_inodes)
2041c7c: 02 80 00 76 be 2041e54 <rtems_rfs_format+0xd74> <== NOT EXECUTED
2041c80: f4 2f bf ec stb %i2, [ %fp + -20 ] <== NOT EXECUTED
{
for (b = 0; b < blocks; b++)
2041c84: 80 a5 a0 00 cmp %l6, 0 <== NOT EXECUTED
2041c88: 04 80 00 73 ble 2041e54 <rtems_rfs_format+0xd74> <== NOT EXECUTED
2041c8c: a2 04 60 02 add %l1, 2, %l1 <== NOT EXECUTED
2041c90: 10 80 00 0b b 2041cbc <rtems_rfs_format+0xbdc> <== NOT EXECUTED
2041c94: a0 10 20 00 clr %l0 <== 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));
2041c98: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
2041c9c: d4 07 bf 34 ld [ %fp + -204 ], %o2 <== NOT EXECUTED
2041ca0: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
2041ca4: 40 00 29 c7 call 204c3c0 <memset> <== NOT EXECUTED
2041ca8: a0 04 20 01 inc %l0 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle);
2041cac: f4 2f bf ec stb %i2, [ %fp + -20 ] <== NOT EXECUTED
/*
* Initialise the inode tables if required to do so.
*/
if (initialise_inodes)
{
for (b = 0; b < blocks; b++)
2041cb0: 80 a4 00 16 cmp %l0, %l6 <== NOT EXECUTED
2041cb4: 16 80 00 68 bge 2041e54 <rtems_rfs_format+0xd74> <== NOT EXECUTED
2041cb8: a2 04 60 01 inc %l1 <== NOT EXECUTED
{
rc = rtems_rfs_buffer_handle_request (fs, &handle,
2041cbc: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
2041cc0: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2041cc4: 96 10 20 00 clr %o3 <== NOT EXECUTED
2041cc8: 7f ff f4 0f call 203ed04 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
2041ccc: 90 10 00 12 mov %l2, %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));
2041cd0: 92 10 20 ff mov 0xff, %o1 <== NOT EXECUTED
for (b = 0; b < blocks; b++)
{
rc = rtems_rfs_buffer_handle_request (fs, &handle,
group_base + b + RTEMS_RFS_GROUP_INODE_BLOCK,
false);
if (rc > 0)
2041cd4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2041cd8: 04 bf ff f0 ble 2041c98 <rtems_rfs_format+0xbb8> <== NOT EXECUTED
2041cdc: ae 10 00 08 mov %o0, %l7 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
2041ce0: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
2041ce4: 7f ff fc f5 call 20410b8 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
2041ce8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: block %" PRId32 " request failed: %d: %s\n",
2041cec: 40 00 36 72 call 204f6b4 <strerror> <== NOT EXECUTED
2041cf0: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED
2041cf4: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
2041cf8: 98 10 00 08 mov %o0, %o4 <== NOT EXECUTED
2041cfc: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2041d00: 96 10 00 17 mov %l7, %o3 <== NOT EXECUTED
2041d04: 11 00 81 b3 sethi %hi(0x206cc00), %o0 <== NOT EXECUTED
2041d08: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2041d0c: 40 00 2d c9 call 204d430 <printf> <== NOT EXECUTED
2041d10: 90 12 23 50 or %o0, 0x350, %o0 <== NOT EXECUTED
2041d14: 81 c7 e0 08 ret <== NOT EXECUTED
2041d18: 81 e8 00 00 restore <== NOT EXECUTED
printf ("\n");
rc = rtems_rfs_buffer_close (&fs);
if (rc > 0)
{
printf ("rtems-rfs: format: buffer close failed: %d: %s\n",
2041d1c: 40 00 36 66 call 204f6b4 <strerror> <== NOT EXECUTED
2041d20: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2041d24: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2041d28: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2041d2c: 11 00 81 b3 sethi %hi(0x206cc00), %o0 <== NOT EXECUTED
2041d30: 40 00 2d c0 call 204d430 <printf> <== NOT EXECUTED
2041d34: 90 12 23 d8 or %o0, 0x3d8, %o0 ! 206cfd8 <__FUNCTION__.7657+0x700><== NOT EXECUTED
rc, strerror (rc));
return -1;
2041d38: 81 c7 e0 08 ret <== NOT EXECUTED
2041d3c: 81 e8 00 00 restore <== NOT EXECUTED
* Close the inode bitmap.
*/
rc = rtems_rfs_bitmap_close (&bitmap);
if (rc > 0)
{
rtems_rfs_buffer_handle_close (fs, &handle);
2041d40: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
2041d44: 7f ff fc dd call 20410b8 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
2041d48: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: close inode" \
2041d4c: 40 00 36 5a call 204f6b4 <strerror> <== NOT EXECUTED
2041d50: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2041d54: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
2041d58: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2041d5c: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2041d60: 11 00 81 b3 sethi %hi(0x206cc00), %o0 <== NOT EXECUTED
2041d64: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2041d68: 40 00 2d b2 call 204d430 <printf> <== NOT EXECUTED
2041d6c: 90 12 23 08 or %o0, 0x308, %o0 <== NOT EXECUTED
2041d70: 81 c7 e0 08 ret <== NOT EXECUTED
2041d74: 81 e8 00 00 restore <== NOT EXECUTED
rtems_rfs_group_bitmap_free (fs, true, ino);
rtems_rfs_fs_close (fs);
return rc;
}
rc = rtems_rfs_inode_initialise (&inode, 0,
2041d78: 92 10 20 00 clr %o1 <== NOT EXECUTED
2041d7c: 15 00 00 10 sethi %hi(0x4000), %o2 <== NOT EXECUTED
2041d80: 96 10 20 00 clr %o3 <== NOT EXECUTED
2041d84: 94 12 a1 c9 or %o2, 0x1c9, %o2 <== NOT EXECUTED
2041d88: 40 00 02 18 call 20425e8 <rtems_rfs_inode_initialise> <== NOT EXECUTED
2041d8c: 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)
2041d90: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2041d94: 24 80 00 0a ble,a 2041dbc <rtems_rfs_format+0xcdc> <== NOT EXECUTED
2041d98: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
printf ("rtems-rfs: format: inode initialise failed: %d: %s\n",
2041d9c: 40 00 36 46 call 204f6b4 <strerror> <== NOT EXECUTED
2041da0: 01 00 00 00 nop <== NOT EXECUTED
2041da4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2041da8: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2041dac: 11 00 81 b4 sethi %hi(0x206d000), %o0 <== NOT EXECUTED
2041db0: 40 00 2d a0 call 204d430 <printf> <== NOT EXECUTED
2041db4: 90 12 20 e0 or %o0, 0xe0, %o0 ! 206d0e0 <__FUNCTION__.7657+0x808><== NOT EXECUTED
rc, strerror (rc));
rc = rtems_rfs_dir_add_entry (fs, &inode, ".", 1, ino);
2041db8: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
2041dbc: d8 07 bf f8 ld [ %fp + -8 ], %o4 <== NOT EXECUTED
2041dc0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2041dc4: 15 00 81 b4 sethi %hi(0x206d000), %o2 <== NOT EXECUTED
2041dc8: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
2041dcc: 7f ff f5 ea call 203f574 <rtems_rfs_dir_add_entry> <== NOT EXECUTED
2041dd0: 94 12 a1 18 or %o2, 0x118, %o2 <== NOT EXECUTED
if (rc > 0)
2041dd4: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2041dd8: 24 80 00 0a ble,a 2041e00 <rtems_rfs_format+0xd20> <== NOT EXECUTED
2041ddc: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
printf ("rtems-rfs: format: directory add failed: %d: %s\n",
2041de0: 40 00 36 35 call 204f6b4 <strerror> <== NOT EXECUTED
2041de4: 01 00 00 00 nop <== NOT EXECUTED
2041de8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2041dec: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2041df0: 11 00 81 b4 sethi %hi(0x206d000), %o0 <== NOT EXECUTED
2041df4: 40 00 2d 8f call 204d430 <printf> <== NOT EXECUTED
2041df8: 90 12 21 20 or %o0, 0x120, %o0 ! 206d120 <__FUNCTION__.7657+0x848><== NOT EXECUTED
rc, strerror (rc));
rc = rtems_rfs_inode_close (fs, &inode);
2041dfc: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
2041e00: 40 00 02 7d call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2041e04: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
if (rc > 0)
2041e08: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2041e0c: 04 80 00 09 ble 2041e30 <rtems_rfs_format+0xd50> <== NOT EXECUTED
2041e10: 01 00 00 00 nop <== NOT EXECUTED
printf ("rtems-rfs: format: inode close failed: %d: %s\n",
2041e14: 40 00 36 28 call 204f6b4 <strerror> <== NOT EXECUTED
2041e18: 01 00 00 00 nop <== NOT EXECUTED
2041e1c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2041e20: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2041e24: 11 00 81 b4 sethi %hi(0x206d000), %o0 <== NOT EXECUTED
2041e28: 40 00 2d 82 call 204d430 <printf> <== NOT EXECUTED
2041e2c: 90 12 21 58 or %o0, 0x158, %o0 ! 206d158 <__FUNCTION__.7657+0x880><== NOT EXECUTED
rc, strerror (rc));
rc = rtems_rfs_fs_close (fs);
2041e30: 7f ff fa e5 call 20409c4 <rtems_rfs_fs_close> <== NOT EXECUTED
2041e34: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
if (rc < 0)
2041e38: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2041e3c: 06 80 00 22 bl 2041ec4 <rtems_rfs_format+0xde4> <== NOT EXECUTED
2041e40: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
rc, strerror (rc));
return -1;
}
rc = rtems_rfs_write_root_dir (name);
if (rc > 0)
2041e44: 12 bf ff 5c bne 2041bb4 <rtems_rfs_format+0xad4> <== NOT EXECUTED
2041e48: b0 10 20 00 clr %i0 <== NOT EXECUTED
rc, strerror (rc));
return -1;
}
return 0;
}
2041e4c: 81 c7 e0 08 ret <== NOT EXECUTED
2041e50: 81 e8 00 00 restore <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle);
}
}
rc = rtems_rfs_buffer_handle_close (fs, &handle);
2041e54: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2041e58: 7f ff fc 98 call 20410b8 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
2041e5c: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
if (rc > 0)
2041e60: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2041e64: 04 bf fe af ble 2041920 <rtems_rfs_format+0x840> <== NOT EXECUTED
2041e68: c2 07 bf 4c ld [ %fp + -180 ], %g1 <== NOT EXECUTED
{
printf ("\nrtems-rfs: write-group: buffer handle close failed: %d: %s\n",
2041e6c: 40 00 36 12 call 204f6b4 <strerror> <== NOT EXECUTED
2041e70: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2041e74: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2041e78: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2041e7c: 11 00 81 b3 sethi %hi(0x206cc00), %o0 <== NOT EXECUTED
2041e80: 40 00 2d 6c call 204d430 <printf> <== NOT EXECUTED
2041e84: 90 12 23 98 or %o0, 0x398, %o0 ! 206cf98 <__FUNCTION__.7657+0x6c0><== NOT EXECUTED
2041e88: 81 c7 e0 08 ret <== NOT EXECUTED
2041e8c: 81 e8 00 00 restore <== NOT EXECUTED
rc = rtems_rfs_fs_open (name, NULL,
RTEMS_RFS_FS_FORCE_OPEN | RTEMS_RFS_FS_NO_LOCAL_CACHE,
0, &fs);
if (rc < 0)
{
printf ("rtems-rfs: format: file system open failed: %d: %s\n",
2041e90: 40 00 1b 6d call 2048c44 <__errno> <== NOT EXECUTED
2041e94: b0 10 20 00 clr %i0 <== NOT EXECUTED
2041e98: 40 00 1b 6b call 2048c44 <__errno> <== NOT EXECUTED
2041e9c: e0 02 00 00 ld [ %o0 ], %l0 <== NOT EXECUTED
2041ea0: 40 00 36 05 call 204f6b4 <strerror> <== NOT EXECUTED
2041ea4: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED
2041ea8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2041eac: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2041eb0: 11 00 81 b4 sethi %hi(0x206d000), %o0 <== NOT EXECUTED
2041eb4: 40 00 2d 5f call 204d430 <printf> <== NOT EXECUTED
2041eb8: 90 12 20 08 or %o0, 8, %o0 ! 206d008 <__FUNCTION__.7657+0x730><== NOT EXECUTED
2041ebc: 81 c7 e0 08 ret <== NOT EXECUTED
2041ec0: 81 e8 00 00 restore <== 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",
2041ec4: 40 00 1b 60 call 2048c44 <__errno> <== NOT EXECUTED
2041ec8: b0 10 20 00 clr %i0 <== NOT EXECUTED
2041ecc: 40 00 1b 5e call 2048c44 <__errno> <== NOT EXECUTED
2041ed0: e0 02 00 00 ld [ %o0 ], %l0 <== NOT EXECUTED
2041ed4: 40 00 35 f8 call 204f6b4 <strerror> <== NOT EXECUTED
2041ed8: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED
2041edc: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2041ee0: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2041ee4: 11 00 81 b4 sethi %hi(0x206d000), %o0 <== NOT EXECUTED
2041ee8: 40 00 2d 52 call 204d430 <printf> <== NOT EXECUTED
2041eec: 90 12 21 88 or %o0, 0x188, %o0 ! 206d188 <__FUNCTION__.7657+0x8b0><== NOT EXECUTED
2041ef0: 81 c7 e0 08 ret <== NOT EXECUTED
2041ef4: 81 e8 00 00 restore <== NOT EXECUTED
020409c4 <rtems_rfs_fs_close>:
return 0;
}
int
rtems_rfs_fs_close (rtems_rfs_file_system* fs)
{
20409c4: 9d e3 bf a0 save %sp, -96, %sp <== 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++)
20409c8: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED
20409cc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20409d0: 04 80 00 0d ble 2040a04 <rtems_rfs_fs_close+0x40> <== NOT EXECUTED
20409d4: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
20409d8: a4 10 20 00 clr %l2 <== NOT EXECUTED
20409dc: a2 10 20 00 clr %l1 <== NOT EXECUTED
rtems_rfs_group_close (fs, &fs->groups[group]);
20409e0: d2 04 20 1c ld [ %l0 + 0x1c ], %o1 <== NOT EXECUTED
20409e4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20409e8: 40 00 06 56 call 2042340 <rtems_rfs_group_close> <== NOT EXECUTED
20409ec: 92 02 40 12 add %o1, %l2, %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++)
20409f0: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED
20409f4: a2 04 60 01 inc %l1 <== NOT EXECUTED
20409f8: 80 a0 40 11 cmp %g1, %l1 <== NOT EXECUTED
20409fc: 14 bf ff f9 bg 20409e0 <rtems_rfs_fs_close+0x1c> <== NOT EXECUTED
2040a00: a4 04 a0 50 add %l2, 0x50, %l2 <== NOT EXECUTED
rtems_rfs_group_close (fs, &fs->groups[group]);
rtems_rfs_buffer_close (fs);
2040a04: 7f ff f8 55 call 203eb58 <rtems_rfs_buffer_close> <== NOT EXECUTED
2040a08: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
free (fs);
return 0;
}
2040a0c: b0 10 20 00 clr %i0 <== NOT EXECUTED
for (group = 0; group < fs->group_count; group++)
rtems_rfs_group_close (fs, &fs->groups[group]);
rtems_rfs_buffer_close (fs);
free (fs);
2040a10: 7f ff 1f b3 call 20088dc <free> <== NOT EXECUTED
2040a14: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return 0;
}
2040a18: 81 c7 e0 08 ret <== NOT EXECUTED
2040a1c: 81 e8 00 00 restore <== NOT EXECUTED
0204099c <rtems_rfs_fs_media_size>:
uint64_t
rtems_rfs_fs_media_size (rtems_rfs_file_system* fs)
{
204099c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
uint64_t media_blocks = (uint64_t) rtems_rfs_fs_media_blocks (fs);
20409a0: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
20409a4: 94 10 20 00 clr %o2 <== NOT EXECUTED
20409a8: d6 00 60 1c ld [ %g1 + 0x1c ], %o3 <== NOT EXECUTED
20409ac: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
20409b0: 40 00 83 2a call 2061658 <__muldi3> <== NOT EXECUTED
20409b4: 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;
}
20409b8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
20409bc: 81 c7 e0 08 ret <== NOT EXECUTED
20409c0: 93 e8 00 09 restore %g0, %o1, %o1 <== NOT EXECUTED
02040a48 <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)
{
2040a48: 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));
2040a4c: 7f ff 21 85 call 2009060 <malloc> <== NOT EXECUTED
2040a50: 90 10 20 80 mov 0x80, %o0 <== NOT EXECUTED
if (!*fs)
2040a54: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2040a58: 02 80 00 fd be 2040e4c <rtems_rfs_fs_open+0x404> <== NOT EXECUTED
2040a5c: d0 27 00 00 st %o0, [ %i4 ] <== NOT EXECUTED
printf ("rtems-rfs: open: no memory for file system data\n");
errno = ENOMEM;
return -1;
}
memset (*fs, 0, sizeof (rtems_rfs_file_system));
2040a60: 92 10 20 00 clr %o1 <== NOT EXECUTED
2040a64: 40 00 2e 57 call 204c3c0 <memset> <== NOT EXECUTED
2040a68: 94 10 20 80 mov 0x80, %o2 <== NOT EXECUTED
(*fs)->user = user;
2040a6c: c2 07 00 00 ld [ %i4 ], %g1 <== NOT EXECUTED
group_base = 0;
/*
* Open the buffer interface.
*/
rc = rtems_rfs_buffer_open (name, *fs);
2040a70: 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);
2040a74: 84 00 60 44 add %g1, 0x44, %g2 <== NOT EXECUTED
2040a78: c4 20 60 40 st %g2, [ %g1 + 0x40 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
2040a7c: 84 00 60 40 add %g1, 0x40, %g2 <== NOT EXECUTED
2040a80: 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);
2040a84: 84 00 60 54 add %g1, 0x54, %g2 <== NOT EXECUTED
2040a88: c4 20 60 50 st %g2, [ %g1 + 0x50 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
2040a8c: 84 00 60 50 add %g1, 0x50, %g2 <== NOT EXECUTED
2040a90: 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);
2040a94: 84 00 60 64 add %g1, 0x64, %g2 <== NOT EXECUTED
2040a98: c4 20 60 60 st %g2, [ %g1 + 0x60 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
2040a9c: 84 00 60 60 add %g1, 0x60, %g2 <== NOT EXECUTED
2040aa0: 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);
2040aa4: 84 00 60 74 add %g1, 0x74, %g2 <== NOT EXECUTED
2040aa8: c4 20 60 70 st %g2, [ %g1 + 0x70 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
2040aac: 84 00 60 70 add %g1, 0x70, %g2 <== NOT EXECUTED
return -1;
}
memset (*fs, 0, sizeof (rtems_rfs_file_system));
(*fs)->user = user;
2040ab0: 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;
2040ab4: 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;
2040ab8: 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;
2040abc: c0 20 60 44 clr [ %g1 + 0x44 ] <== NOT EXECUTED
2040ac0: c0 20 60 54 clr [ %g1 + 0x54 ] <== NOT EXECUTED
2040ac4: c0 20 60 64 clr [ %g1 + 0x64 ] <== NOT EXECUTED
2040ac8: 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;
2040acc: c0 20 60 4c clr [ %g1 + 0x4c ] <== NOT EXECUTED
(*fs)->release_count = 0;
2040ad0: c0 20 60 5c clr [ %g1 + 0x5c ] <== NOT EXECUTED
(*fs)->release_modified_count = 0;
2040ad4: c0 20 60 6c clr [ %g1 + 0x6c ] <== NOT EXECUTED
group_base = 0;
/*
* Open the buffer interface.
*/
rc = rtems_rfs_buffer_open (name, *fs);
2040ad8: 92 10 00 01 mov %g1, %o1 <== NOT EXECUTED
2040adc: 7f ff f8 2a call 203eb84 <rtems_rfs_buffer_open> <== NOT EXECUTED
2040ae0: c4 20 60 78 st %g2, [ %g1 + 0x78 ] <== NOT EXECUTED
if (rc > 0)
2040ae4: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2040ae8: 14 80 00 3a bg 2040bd0 <rtems_rfs_fs_open+0x188> <== NOT EXECUTED
2040aec: 94 10 20 00 clr %o2 <== NOT EXECUTED
rc, strerror (rc));
errno = rc;
return -1;
}
rc = rtems_rfs_fs_read_superblock (*fs);
2040af0: f0 07 00 00 ld [ %i4 ], %i0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
2040af4: c0 2f bf f4 clrb [ %fp + -12 ] <== NOT EXECUTED
handle->bnum = 0;
2040af8: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
handle->buffer = NULL;
2040afc: 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);
2040b00: a0 07 bf f4 add %fp, -12, %l0 <== NOT EXECUTED
2040b04: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2040b08: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2040b0c: 7f ff f8 7e call 203ed04 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
2040b10: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
2040b14: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2040b18: 04 80 00 0c ble 2040b48 <rtems_rfs_fs_open+0x100> <== NOT EXECUTED
2040b1c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
}
rc = rtems_rfs_fs_read_superblock (*fs);
if (rc > 0)
{
rtems_rfs_buffer_close (*fs);
2040b20: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
2040b24: 7f ff f8 0d call 203eb58 <rtems_rfs_buffer_close> <== NOT EXECUTED
2040b28: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
free (*fs);
2040b2c: 7f ff 1f 6c call 20088dc <free> <== NOT EXECUTED
2040b30: 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;
2040b34: 40 00 20 44 call 2048c44 <__errno> <== NOT EXECUTED
2040b38: 01 00 00 00 nop <== NOT EXECUTED
2040b3c: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
return -1;
2040b40: 81 c7 e0 08 ret <== NOT EXECUTED
2040b44: 81 e8 00 00 restore <== NOT EXECUTED
printf ("rtems-rfs: read-superblock: request failed%d: %s\n",
rc, strerror (rc));
return rc;
}
sb = rtems_rfs_buffer_data (&handle);
2040b48: e2 00 60 24 ld [ %g1 + 0x24 ], %l1 <== NOT EXECUTED
#define read_sb(_o) rtems_rfs_read_u32 (sb + (_o))
if (read_sb (RTEMS_RFS_SB_OFFSET_MAGIC) != RTEMS_RFS_SB_MAGIC)
2040b4c: c2 0c 60 02 ldub [ %l1 + 2 ], %g1 <== NOT EXECUTED
2040b50: c8 0c 60 03 ldub [ %l1 + 3 ], %g4 <== NOT EXECUTED
2040b54: c4 0c 40 00 ldub [ %l1 ], %g2 <== NOT EXECUTED
2040b58: c6 0c 60 01 ldub [ %l1 + 1 ], %g3 <== NOT EXECUTED
2040b5c: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2040b60: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED
2040b64: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
2040b68: 84 11 00 02 or %g4, %g2, %g2 <== NOT EXECUTED
2040b6c: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
2040b70: 84 10 80 01 or %g2, %g1, %g2 <== NOT EXECUTED
2040b74: 03 0a 02 48 sethi %hi(0x28092000), %g1 <== NOT EXECUTED
2040b78: 82 10 60 01 or %g1, 1, %g1 ! 28092001 <RAM_END+0x25c92001><== NOT EXECUTED
2040b7c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2040b80: 22 80 00 1c be,a 2040bf0 <rtems_rfs_fs_open+0x1a8> <== NOT EXECUTED
2040b84: c6 0c 60 0d ldub [ %l1 + 0xd ], %g3 <== 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);
2040b88: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2040b8c: 7f ff f8 15 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2040b90: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
}
rc = rtems_rfs_fs_read_superblock (*fs);
if (rc > 0)
{
rtems_rfs_buffer_close (*fs);
2040b94: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
handle->dirty = false;
2040b98: c0 2f bf f4 clrb [ %fp + -12 ] <== NOT EXECUTED
handle->bnum = 0;
2040b9c: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
2040ba0: 7f ff f7 ee call 203eb58 <rtems_rfs_buffer_close> <== NOT EXECUTED
2040ba4: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
free (*fs);
2040ba8: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
2040bac: 7f ff 1f 4c call 20088dc <free> <== NOT EXECUTED
2040bb0: a4 10 20 05 mov 5, %l2 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))
printf ("rtems-rfs: open: reading superblock: %d: %s\n",
rc, strerror (rc));
errno = rc;
2040bb4: 40 00 20 24 call 2048c44 <__errno> <== NOT EXECUTED
2040bb8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2040bbc: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
return -1;
2040bc0: 81 c7 e0 08 ret <== NOT EXECUTED
2040bc4: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = rtems_rfs_inode_close (*fs, &inode);
if (rc > 0)
{
rtems_rfs_buffer_close (*fs);
2040bc8: 7f ff f7 e4 call 203eb58 <rtems_rfs_buffer_close> <== NOT EXECUTED
2040bcc: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
free (*fs);
2040bd0: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
2040bd4: 7f ff 1f 42 call 20088dc <free> <== NOT EXECUTED
2040bd8: b0 10 3f ff mov -1, %i0 <== 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;
2040bdc: 40 00 20 1a call 2048c44 <__errno> <== NOT EXECUTED
2040be0: 01 00 00 00 nop <== NOT EXECUTED
2040be4: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED
return -1;
2040be8: 81 c7 e0 08 ret <== NOT EXECUTED
2040bec: 81 e8 00 00 restore <== 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);
2040bf0: c2 0c 60 0e ldub [ %l1 + 0xe ], %g1 <== NOT EXECUTED
2040bf4: c4 0c 60 0f ldub [ %l1 + 0xf ], %g2 <== NOT EXECUTED
2040bf8: d6 0c 60 0c ldub [ %l1 + 0xc ], %o3 <== NOT EXECUTED
2040bfc: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
2040c00: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2040c04: 97 2a e0 18 sll %o3, 0x18, %o3 <== NOT EXECUTED
2040c08: 96 12 c0 03 or %o3, %g3, %o3 <== NOT EXECUTED
2040c0c: 96 12 c0 02 or %o3, %g2, %o3 <== NOT EXECUTED
2040c10: 96 12 c0 01 or %o3, %g1, %o3 <== NOT EXECUTED
2040c14: d6 26 20 04 st %o3, [ %i0 + 4 ] <== NOT EXECUTED
fs->block_size = read_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE);
2040c18: c6 0c 60 09 ldub [ %l1 + 9 ], %g3 <== NOT EXECUTED
2040c1c: c2 0c 60 0a ldub [ %l1 + 0xa ], %g1 <== NOT EXECUTED
2040c20: c4 0c 60 0b ldub [ %l1 + 0xb ], %g2 <== NOT EXECUTED
2040c24: f4 0c 60 08 ldub [ %l1 + 8 ], %i2 <== NOT EXECUTED
2040c28: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
2040c2c: 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);
2040c30: f2 06 20 0c ld [ %i0 + 0xc ], %i1 <== 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))
2040c34: 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);
2040c38: b5 2e a0 18 sll %i2, 0x18, %i2 <== NOT EXECUTED
if (rtems_rfs_fs_size(fs) > rtems_rfs_fs_media_size (fs))
2040c3c: 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);
2040c40: b4 16 80 03 or %i2, %g3, %i2 <== NOT EXECUTED
2040c44: b4 16 80 02 or %i2, %g2, %i2 <== NOT EXECUTED
2040c48: b4 16 80 01 or %i2, %g1, %i2 <== NOT EXECUTED
2040c4c: f4 26 20 08 st %i2, [ %i0 + 8 ] <== NOT EXECUTED
if (rtems_rfs_fs_size(fs) > rtems_rfs_fs_media_size (fs))
2040c50: 40 00 82 82 call 2061658 <__muldi3> <== NOT EXECUTED
2040c54: 92 10 00 1a mov %i2, %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);
2040c58: d6 06 60 1c ld [ %i1 + 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))
2040c5c: 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);
2040c60: d2 06 60 24 ld [ %i1 + 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))
2040c64: a4 10 00 08 mov %o0, %l2 <== 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);
2040c68: 94 10 20 00 clr %o2 <== NOT EXECUTED
2040c6c: 40 00 82 7b call 2061658 <__muldi3> <== NOT EXECUTED
2040c70: 90 10 20 00 clr %o0 <== NOT EXECUTED
2040c74: 80 a4 80 08 cmp %l2, %o0 <== NOT EXECUTED
2040c78: 38 80 00 12 bgu,a 2040cc0 <rtems_rfs_fs_open+0x278> <== NOT EXECUTED
2040c7c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2040c80: 02 80 00 15 be 2040cd4 <rtems_rfs_fs_open+0x28c> <== NOT EXECUTED
2040c84: 80 a4 c0 09 cmp %l3, %o1 <== 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)
2040c88: c8 0c 60 24 ldub [ %l1 + 0x24 ], %g4 <== NOT EXECUTED
2040c8c: c4 0c 60 25 ldub [ %l1 + 0x25 ], %g2 <== NOT EXECUTED
2040c90: c6 0c 60 27 ldub [ %l1 + 0x27 ], %g3 <== NOT EXECUTED
2040c94: c2 0c 60 26 ldub [ %l1 + 0x26 ], %g1 <== NOT EXECUTED
2040c98: 89 29 20 18 sll %g4, 0x18, %g4 <== NOT EXECUTED
2040c9c: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
2040ca0: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2040ca4: 84 11 00 02 or %g4, %g2, %g2 <== NOT EXECUTED
2040ca8: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
2040cac: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
2040cb0: 80 a0 60 38 cmp %g1, 0x38 <== NOT EXECUTED
2040cb4: 22 80 00 0c be,a 2040ce4 <rtems_rfs_fs_open+0x29c> <== NOT EXECUTED
2040cb8: c6 0c 60 13 ldub [ %l1 + 0x13 ], %g3 <== NOT EXECUTED
fs->inodes_per_block = fs->block_size / RTEMS_RFS_INODE_SIZE;
if (fs->group_blocks >
rtems_rfs_bitmap_numof_bits (rtems_rfs_fs_block_size (fs)))
{
rtems_rfs_buffer_handle_close (fs, &handle);
2040cbc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2040cc0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2040cc4: 7f ff ff 57 call 2040a20 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
2040cc8: a4 10 20 05 mov 5, %l2 <== NOT EXECUTED
}
rc = rtems_rfs_fs_read_superblock (*fs);
if (rc > 0)
{
rtems_rfs_buffer_close (*fs);
2040ccc: 10 bf ff 96 b 2040b24 <rtems_rfs_fs_open+0xdc> <== NOT EXECUTED
2040cd0: d0 07 00 00 ld [ %i4 ], %o0 <== 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);
2040cd4: 28 bf ff ee bleu,a 2040c8c <rtems_rfs_fs_open+0x244> <== NOT EXECUTED
2040cd8: c8 0c 60 24 ldub [ %l1 + 0x24 ], %g4 <== NOT EXECUTED
fs->inodes_per_block = fs->block_size / RTEMS_RFS_INODE_SIZE;
if (fs->group_blocks >
rtems_rfs_bitmap_numof_bits (rtems_rfs_fs_block_size (fs)))
{
rtems_rfs_buffer_handle_close (fs, &handle);
2040cdc: 10 bf ff f9 b 2040cc0 <rtems_rfs_fs_open+0x278> <== NOT EXECUTED
2040ce0: 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);
2040ce4: c8 0c 60 10 ldub [ %l1 + 0x10 ], %g4 <== NOT EXECUTED
2040ce8: c4 0c 60 11 ldub [ %l1 + 0x11 ], %g2 <== NOT EXECUTED
2040cec: c2 0c 60 12 ldub [ %l1 + 0x12 ], %g1 <== NOT EXECUTED
2040cf0: 89 29 20 18 sll %g4, 0x18, %g4 <== NOT EXECUTED
2040cf4: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
2040cf8: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2040cfc: 84 11 00 02 or %g4, %g2, %g2 <== NOT EXECUTED
2040d00: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
2040d04: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
2040d08: c2 26 20 14 st %g1, [ %i0 + 0x14 ] <== NOT EXECUTED
fs->max_name_length = read_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH);
2040d0c: c6 0c 60 17 ldub [ %l1 + 0x17 ], %g3 <== NOT EXECUTED
2040d10: c8 0c 60 14 ldub [ %l1 + 0x14 ], %g4 <== NOT EXECUTED
2040d14: c4 0c 60 15 ldub [ %l1 + 0x15 ], %g2 <== NOT EXECUTED
2040d18: c2 0c 60 16 ldub [ %l1 + 0x16 ], %g1 <== NOT EXECUTED
2040d1c: 89 29 20 18 sll %g4, 0x18, %g4 <== NOT EXECUTED
2040d20: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
2040d24: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2040d28: 84 11 00 02 or %g4, %g2, %g2 <== NOT EXECUTED
2040d2c: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
2040d30: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
2040d34: c2 26 20 18 st %g1, [ %i0 + 0x18 ] <== NOT EXECUTED
fs->group_count = read_sb (RTEMS_RFS_SB_OFFSET_GROUPS);
2040d38: c2 0c 60 1a ldub [ %l1 + 0x1a ], %g1 <== NOT EXECUTED
2040d3c: c4 0c 60 1b ldub [ %l1 + 0x1b ], %g2 <== NOT EXECUTED
2040d40: e6 0c 60 18 ldub [ %l1 + 0x18 ], %l3 <== NOT EXECUTED
2040d44: c6 0c 60 19 ldub [ %l1 + 0x19 ], %g3 <== NOT EXECUTED
2040d48: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2040d4c: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
2040d50: a7 2c e0 18 sll %l3, 0x18, %l3 <== NOT EXECUTED
2040d54: a6 14 c0 03 or %l3, %g3, %l3 <== NOT EXECUTED
2040d58: a6 14 c0 02 or %l3, %g2, %l3 <== NOT EXECUTED
2040d5c: a6 14 c0 01 or %l3, %g1, %l3 <== NOT EXECUTED
2040d60: e6 26 20 20 st %l3, [ %i0 + 0x20 ] <== NOT EXECUTED
fs->group_blocks = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS);
2040d64: c2 0c 60 1e ldub [ %l1 + 0x1e ], %g1 <== NOT EXECUTED
2040d68: c4 0c 60 1f ldub [ %l1 + 0x1f ], %g2 <== NOT EXECUTED
2040d6c: e4 0c 60 1c ldub [ %l1 + 0x1c ], %l2 <== NOT EXECUTED
2040d70: c6 0c 60 1d ldub [ %l1 + 0x1d ], %g3 <== NOT EXECUTED
2040d74: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2040d78: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
2040d7c: a5 2c a0 18 sll %l2, 0x18, %l2 <== NOT EXECUTED
2040d80: a4 14 80 03 or %l2, %g3, %l2 <== NOT EXECUTED
2040d84: a4 14 80 02 or %l2, %g2, %l2 <== NOT EXECUTED
2040d88: a4 14 80 01 or %l2, %g1, %l2 <== NOT EXECUTED
2040d8c: e4 26 20 24 st %l2, [ %i0 + 0x24 ] <== NOT EXECUTED
fs->group_inodes = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES);
2040d90: c2 0c 60 22 ldub [ %l1 + 0x22 ], %g1 <== NOT EXECUTED
2040d94: c8 0c 60 20 ldub [ %l1 + 0x20 ], %g4 <== NOT EXECUTED
2040d98: c4 0c 60 23 ldub [ %l1 + 0x23 ], %g2 <== NOT EXECUTED
2040d9c: c6 0c 60 21 ldub [ %l1 + 0x21 ], %g3 <== NOT EXECUTED
2040da0: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2040da4: a3 29 20 18 sll %g4, 0x18, %l1 <== NOT EXECUTED
2040da8: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
2040dac: a2 14 40 03 or %l1, %g3, %l1 <== NOT EXECUTED
2040db0: a2 14 40 02 or %l1, %g2, %l1 <== NOT EXECUTED
2040db4: a2 14 40 01 or %l1, %g1, %l1 <== NOT EXECUTED
fs->blocks_per_block =
rtems_rfs_fs_block_size (fs) / sizeof (rtems_rfs_inode_block);
2040db8: 83 36 a0 02 srl %i2, 2, %g1 <== NOT EXECUTED
fs->block_map_singly_blocks =
2040dbc: 85 28 60 02 sll %g1, 2, %g2 <== NOT EXECUTED
fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;
fs->block_map_doubly_blocks =
2040dc0: 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 =
2040dc4: 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 =
2040dc8: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;
fs->block_map_doubly_blocks =
2040dcc: 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 =
2040dd0: c2 26 20 34 st %g1, [ %i0 + 0x34 ] <== NOT EXECUTED
fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;
fs->block_map_doubly_blocks =
2040dd4: 7f ff 07 6e call 2002b8c <.umul> <== NOT EXECUTED
2040dd8: e2 26 20 28 st %l1, [ %i0 + 0x28 ] <== NOT EXECUTED
2040ddc: 83 2a 20 02 sll %o0, 2, %g1 <== NOT EXECUTED
2040de0: 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;
2040de4: 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 =
2040de8: 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;
2040dec: 7f ff 07 68 call 2002b8c <.umul> <== NOT EXECUTED
2040df0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
fs->inodes_per_block = fs->block_size / RTEMS_RFS_INODE_SIZE;
2040df4: 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;
2040df8: d0 26 20 10 st %o0, [ %i0 + 0x10 ] <== NOT EXECUTED
fs->inodes_per_block = fs->block_size / RTEMS_RFS_INODE_SIZE;
2040dfc: 40 00 80 bf call 20610f8 <.udiv> <== NOT EXECUTED
2040e00: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
if (fs->group_blocks >
2040e04: b5 2e a0 03 sll %i2, 3, %i2 <== NOT EXECUTED
2040e08: 80 a4 80 1a cmp %l2, %i2 <== NOT EXECUTED
2040e0c: 18 bf ff ac bgu 2040cbc <rtems_rfs_fs_open+0x274> <== NOT EXECUTED
2040e10: d0 26 20 2c st %o0, [ %i0 + 0x2c ] <== 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);
2040e14: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2040e18: 7f ff ff 02 call 2040a20 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
2040e1c: 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));
2040e20: d2 06 20 08 ld [ %i0 + 8 ], %o1 <== NOT EXECUTED
2040e24: 7f ff f7 37 call 203eb00 <rtems_rfs_buffer_setblksize> <== NOT EXECUTED
2040e28: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rc > 0)
2040e2c: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2040e30: 24 80 00 0d ble,a 2040e64 <rtems_rfs_fs_open+0x41c> <== NOT EXECUTED
2040e34: d0 06 20 20 ld [ %i0 + 0x20 ], %o0 <== NOT EXECUTED
if (rc > 0)
{
int g;
for (g = 0; g < group; g++)
rtems_rfs_group_close (fs, &fs->groups[g]);
rtems_rfs_buffer_handle_close (fs, &handle);
2040e38: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2040e3c: 7f ff fe f9 call 2040a20 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
2040e40: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
}
rc = rtems_rfs_fs_read_superblock (*fs);
if (rc > 0)
{
rtems_rfs_buffer_close (*fs);
2040e44: 10 bf ff 38 b 2040b24 <rtems_rfs_fs_open+0xdc> <== NOT EXECUTED
2040e48: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
*fs = malloc (sizeof (rtems_rfs_file_system));
if (!*fs)
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))
printf ("rtems-rfs: open: no memory for file system data\n");
errno = ENOMEM;
2040e4c: 40 00 1f 7e call 2048c44 <__errno> <== NOT EXECUTED
2040e50: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2040e54: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
2040e58: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return -1;
2040e5c: 81 c7 e0 08 ret <== NOT EXECUTED
2040e60: 81 e8 00 00 restore <== 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));
2040e64: 7f ff 1c fc call 2008254 <calloc> <== NOT EXECUTED
2040e68: 92 10 20 50 mov 0x50, %o1 <== NOT EXECUTED
2040e6c: d0 26 20 1c st %o0, [ %i0 + 0x1c ] <== NOT EXECUTED
if (!fs->groups)
2040e70: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2040e74: 02 80 00 66 be 204100c <rtems_rfs_fs_open+0x5c4> <== NOT EXECUTED
2040e78: a6 10 00 08 mov %o0, %l3 <== 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++)
2040e7c: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED
2040e80: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2040e84: 04 80 00 25 ble 2040f18 <rtems_rfs_fs_open+0x4d0> <== NOT EXECUTED
2040e88: a2 10 20 00 clr %l1 <== NOT EXECUTED
fs->groups = calloc (fs->group_count, sizeof (rtems_rfs_group));
if (!fs->groups)
{
rtems_rfs_buffer_handle_close (fs, &handle);
2040e8c: e4 06 20 24 ld [ %i0 + 0x24 ], %l2 <== NOT EXECUTED
2040e90: 10 80 00 08 b 2040eb0 <rtems_rfs_fs_open+0x468> <== NOT EXECUTED
2040e94: b2 10 20 00 clr %i1 <== 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++)
2040e98: b2 06 60 01 inc %i1 <== NOT EXECUTED
2040e9c: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
2040ea0: 16 80 00 1e bge 2040f18 <rtems_rfs_fs_open+0x4d0> <== NOT EXECUTED
2040ea4: a2 04 60 50 add %l1, 0x50, %l1 <== NOT EXECUTED
2040ea8: e4 06 20 24 ld [ %i0 + 0x24 ], %l2 <== NOT EXECUTED
2040eac: e6 06 20 1c ld [ %i0 + 0x1c ], %l3 <== NOT EXECUTED
{
rc = rtems_rfs_group_open (fs,
2040eb0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2040eb4: 7f ff 07 36 call 2002b8c <.umul> <== NOT EXECUTED
2040eb8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2040ebc: d6 06 20 28 ld [ %i0 + 0x28 ], %o3 <== NOT EXECUTED
2040ec0: 92 02 20 01 add %o0, 1, %o1 <== NOT EXECUTED
2040ec4: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2040ec8: 98 04 c0 11 add %l3, %l1, %o4 <== NOT EXECUTED
2040ecc: 40 00 05 3e call 20423c4 <rtems_rfs_group_open> <== NOT EXECUTED
2040ed0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
rtems_rfs_fs_block (fs, group, 0),
fs->group_blocks,
fs->group_inodes,
&fs->groups[group]);
if (rc > 0)
2040ed4: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2040ed8: 24 bf ff f0 ble,a 2040e98 <rtems_rfs_fs_open+0x450> <== NOT EXECUTED
2040edc: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED
{
int g;
for (g = 0; g < group; g++)
2040ee0: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2040ee4: 02 bf ff d5 be 2040e38 <rtems_rfs_fs_open+0x3f0> <== NOT EXECUTED
2040ee8: a6 10 20 00 clr %l3 <== NOT EXECUTED
2040eec: a2 10 20 00 clr %l1 <== NOT EXECUTED
rtems_rfs_group_close (fs, &fs->groups[g]);
2040ef0: d2 06 20 1c ld [ %i0 + 0x1c ], %o1 <== NOT EXECUTED
2040ef4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2040ef8: 40 00 05 12 call 2042340 <rtems_rfs_group_close> <== NOT EXECUTED
2040efc: 92 02 40 13 add %o1, %l3, %o1 <== NOT EXECUTED
fs->group_inodes,
&fs->groups[group]);
if (rc > 0)
{
int g;
for (g = 0; g < group; g++)
2040f00: a2 04 60 01 inc %l1 <== NOT EXECUTED
2040f04: 80 a6 40 11 cmp %i1, %l1 <== NOT EXECUTED
2040f08: 14 bf ff fa bg 2040ef0 <rtems_rfs_fs_open+0x4a8> <== NOT EXECUTED
2040f0c: a6 04 e0 50 add %l3, 0x50, %l3 <== NOT EXECUTED
rtems_rfs_group_close (fs, &fs->groups[g]);
rtems_rfs_buffer_handle_close (fs, &handle);
2040f10: 10 bf ff cb b 2040e3c <rtems_rfs_fs_open+0x3f4> <== NOT EXECUTED
2040f14: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
rc, strerror (rc));
errno = rc;
return -1;
}
rc = rtems_rfs_inode_open (*fs, RTEMS_RFS_ROOT_INO, &inode, true);
2040f18: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
2040f1c: a0 07 bf cc add %fp, -52, %l0 <== NOT EXECUTED
2040f20: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2040f24: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2040f28: 40 00 06 5d call 204289c <rtems_rfs_inode_open> <== NOT EXECUTED
2040f2c: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
2040f30: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2040f34: 14 80 00 2d bg 2040fe8 <rtems_rfs_fs_open+0x5a0> <== NOT EXECUTED
2040f38: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
rc, strerror (rc));
errno = rc;
return -1;
}
if (((*fs)->flags & RTEMS_RFS_FS_FORCE_OPEN) == 0)
2040f3c: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED
2040f40: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED
2040f44: 12 80 00 12 bne 2040f8c <rtems_rfs_fs_open+0x544> <== NOT EXECUTED
2040f48: c2 07 bf d8 ld [ %fp + -40 ], %g1 <== 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);
2040f4c: c4 08 60 03 ldub [ %g1 + 3 ], %g2 <== NOT EXECUTED
2040f50: c2 08 60 02 ldub [ %g1 + 2 ], %g1 <== NOT EXECUTED
2040f54: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2040f58: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
{
mode = rtems_rfs_inode_get_mode (&inode);
if ((mode == 0xffff) || !RTEMS_RFS_S_ISDIR (mode))
2040f5c: 05 00 00 3f sethi %hi(0xfc00), %g2 <== NOT EXECUTED
2040f60: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
2040f64: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
2040f68: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED
2040f6c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2040f70: 02 80 00 11 be 2040fb4 <rtems_rfs_fs_open+0x56c> <== NOT EXECUTED
2040f74: 05 00 00 3c sethi %hi(0xf000), %g2 <== NOT EXECUTED
2040f78: 82 08 40 02 and %g1, %g2, %g1 <== NOT EXECUTED
2040f7c: 05 00 00 10 sethi %hi(0x4000), %g2 <== NOT EXECUTED
2040f80: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2040f84: 12 80 00 0c bne 2040fb4 <rtems_rfs_fs_open+0x56c> <== NOT EXECUTED
2040f88: 01 00 00 00 nop <== NOT EXECUTED
errno = EIO;
return -1;
}
}
rc = rtems_rfs_inode_close (*fs, &inode);
2040f8c: 40 00 06 1a call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2040f90: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
if (rc > 0)
2040f94: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2040f98: 14 bf ff 0c bg 2040bc8 <rtems_rfs_fs_open+0x180> <== NOT EXECUTED
2040f9c: 01 00 00 00 nop <== NOT EXECUTED
printf ("rtems-rfs: open: closing root inode: %d: %s\n", rc, strerror (rc));
errno = rc;
return -1;
}
errno = 0;
2040fa0: 40 00 1f 29 call 2048c44 <__errno> <== NOT EXECUTED
2040fa4: b0 10 20 00 clr %i0 ! 0 <PROM_START> <== NOT EXECUTED
2040fa8: c0 22 00 00 clr [ %o0 ] <== NOT EXECUTED
return 0;
}
2040fac: 81 c7 e0 08 ret <== NOT EXECUTED
2040fb0: 81 e8 00 00 restore <== NOT EXECUTED
{
mode = rtems_rfs_inode_get_mode (&inode);
if ((mode == 0xffff) || !RTEMS_RFS_S_ISDIR (mode))
{
rtems_rfs_inode_close (*fs, &inode);
2040fb4: 40 00 06 10 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2040fb8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
rtems_rfs_buffer_close (*fs);
2040fbc: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
2040fc0: 7f ff f6 e6 call 203eb58 <rtems_rfs_buffer_close> <== NOT EXECUTED
2040fc4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
free (*fs);
2040fc8: 7f ff 1e 45 call 20088dc <free> <== NOT EXECUTED
2040fcc: 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;
2040fd0: 40 00 1f 1d call 2048c44 <__errno> <== NOT EXECUTED
2040fd4: 01 00 00 00 nop <== NOT EXECUTED
2040fd8: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
2040fdc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return -1;
2040fe0: 81 c7 e0 08 ret <== NOT EXECUTED
2040fe4: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = rtems_rfs_inode_open (*fs, RTEMS_RFS_ROOT_INO, &inode, true);
if (rc > 0)
{
rtems_rfs_buffer_close (*fs);
2040fe8: 7f ff f6 dc call 203eb58 <rtems_rfs_buffer_close> <== NOT EXECUTED
2040fec: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
free (*fs);
2040ff0: 7f ff 1e 3b call 20088dc <free> <== NOT EXECUTED
2040ff4: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))
printf ("rtems-rfs: open: reading root inode: %d: %s\n",
rc, strerror (rc));
errno = rc;
2040ff8: 40 00 1f 13 call 2048c44 <__errno> <== NOT EXECUTED
2040ffc: 01 00 00 00 nop <== NOT EXECUTED
2041000: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
return -1;
2041004: 81 c7 e0 08 ret <== NOT EXECUTED
2041008: 81 e8 00 00 restore <== NOT EXECUTED
fs->groups = calloc (fs->group_count, sizeof (rtems_rfs_group));
if (!fs->groups)
{
rtems_rfs_buffer_handle_close (fs, &handle);
204100c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2041010: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2041014: 7f ff fe 83 call 2040a20 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
2041018: a4 10 20 0c mov 0xc, %l2 <== NOT EXECUTED
}
rc = rtems_rfs_fs_read_superblock (*fs);
if (rc > 0)
{
rtems_rfs_buffer_close (*fs);
204101c: 10 bf fe c2 b 2040b24 <rtems_rfs_fs_open+0xdc> <== NOT EXECUTED
2041020: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
02040978 <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)
{
2040978: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
204097c: d6 06 20 04 ld [ %i0 + 4 ], %o3 <== NOT EXECUTED
2040980: d2 06 20 08 ld [ %i0 + 8 ], %o1 <== NOT EXECUTED
2040984: 94 10 20 00 clr %o2 <== NOT EXECUTED
2040988: 40 00 83 34 call 2061658 <__muldi3> <== NOT EXECUTED
204098c: 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;
}
2040990: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
2040994: 81 c7 e0 08 ret <== NOT EXECUTED
2040998: 93 e8 00 09 restore %g0, %o1, %o1 <== NOT EXECUTED
02042164 <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)
{
2042164: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_bitmap_bit bit;
int offset;
bool updown;
int direction;
if (inode)
2042168: b4 8e a0 ff andcc %i2, 0xff, %i2 <== NOT EXECUTED
204216c: 02 80 00 56 be 20422c4 <rtems_rfs_group_bitmap_alloc+0x160><== NOT EXECUTED
2042170: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
{
size = fs->group_inodes;
2042174: e2 06 20 28 ld [ %i0 + 0x28 ], %l1 <== NOT EXECUTED
goal -= RTEMS_RFS_ROOT_INO;
2042178: b2 06 7f ff add %i1, -1, %i1 <== NOT EXECUTED
}
else
size = fs->group_blocks;
group_start = goal / size;
204217c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2042180: 40 00 7b de call 20610f8 <.udiv> <== NOT EXECUTED
2042184: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
bit = (rtems_rfs_bitmap_bit) (goal % size);
2042188: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
goal -= RTEMS_RFS_ROOT_INO;
}
else
size = fs->group_blocks;
group_start = goal / size;
204218c: aa 10 00 08 mov %o0, %l5 <== NOT EXECUTED
bit = (rtems_rfs_bitmap_bit) (goal % size);
2042190: 40 00 7c 86 call 20613a8 <.urem> <== NOT EXECUTED
2042194: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
*/
while (true)
{
rtems_rfs_bitmap_control* bitmap;
int group;
bool allocated = false;
2042198: c0 2f bf ff clrb [ %fp + -1 ] <== NOT EXECUTED
}
else
size = fs->group_blocks;
group_start = goal / size;
bit = (rtems_rfs_bitmap_bit) (goal % size);
204219c: d0 27 bf f8 st %o0, [ %fp + -8 ] <== 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;
20421a0: ac 04 7f ff add %l1, -1, %l6 <== NOT EXECUTED
*/
while (true)
{
rtems_rfs_bitmap_control* bitmap;
int group;
bool allocated = false;
20421a4: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED
20421a8: a2 10 00 15 mov %l5, %l1 <== NOT EXECUTED
20421ac: a8 10 20 01 mov 1, %l4 <== NOT EXECUTED
20421b0: a6 10 20 00 clr %l3 <== NOT EXECUTED
if (inode)
bitmap = &fs->groups[group].inode_bitmap;
else
bitmap = &fs->groups[group].block_bitmap;
rc = rtems_rfs_bitmap_map_alloc (bitmap, bit, &allocated, &bit);
20421b4: ae 07 bf ff add %fp, -1, %l7 <== 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))
20421b8: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
20421bc: 06 80 00 06 bl 20421d4 <rtems_rfs_group_bitmap_alloc+0x70><== NOT EXECUTED
20421c0: b2 07 bf f8 add %fp, -8, %i1 <== NOT EXECUTED
20421c4: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED
20421c8: 80 a0 40 11 cmp %g1, %l1 <== NOT EXECUTED
20421cc: 14 80 00 1d bg 2042240 <rtems_rfs_group_bitmap_alloc+0xdc><== NOT EXECUTED
20421d0: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
{
if (!updown)
20421d4: 80 8d 20 ff btst 0xff, %l4 <== NOT EXECUTED
20421d8: 02 80 00 38 be 20422b8 <rtems_rfs_group_bitmap_alloc+0x154><== NOT EXECUTED
20421dc: a4 1c a0 01 xor %l2, 1, %l2 <== NOT EXECUTED
break;
direction = direction > 0 ? -1 : 1;
20421e0: 80 a0 00 12 cmp %g0, %l2 <== 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)
20421e4: a8 10 20 00 clr %l4 <== NOT EXECUTED
*/
if ((group < 0) || (group >= fs->group_count))
{
if (!updown)
break;
direction = direction > 0 ? -1 : 1;
20421e8: a4 40 3f ff addx %g0, -1, %l2 <== 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)
20421ec: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
20421f0: 02 80 00 07 be 204220c <rtems_rfs_group_bitmap_alloc+0xa8><== NOT EXECUTED
20421f4: a4 14 a0 01 or %l2, 1, %l2 <== NOT EXECUTED
bit = direction > 0 ? 0 : size - 1;
20421f8: 82 1c a0 01 xor %l2, 1, %g1 <== NOT EXECUTED
20421fc: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
2042200: 82 60 20 00 subx %g0, 0, %g1 <== NOT EXECUTED
2042204: 82 0d 80 01 and %l6, %g1, %g1 <== NOT EXECUTED
2042208: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED
*/
while (true)
{
rtems_rfs_bitmap_control* bitmap;
int group;
bool allocated = false;
204220c: 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);
2042210: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
2042214: 7f ff 02 5e call 2002b8c <.umul> <== NOT EXECUTED
2042218: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
204221c: a2 02 00 15 add %o0, %l5, %l1 <== 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))
2042220: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
2042224: 06 bf ff ed bl 20421d8 <rtems_rfs_group_bitmap_alloc+0x74><== NOT EXECUTED
2042228: 80 8d 20 ff btst 0xff, %l4 <== NOT EXECUTED
204222c: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED
2042230: 80 a0 40 11 cmp %g1, %l1 <== NOT EXECUTED
2042234: 04 bf ff e9 ble 20421d8 <rtems_rfs_group_bitmap_alloc+0x74><== NOT EXECUTED
2042238: 80 8d 20 ff btst 0xff, %l4 <== NOT EXECUTED
direction = direction > 0 ? -1 : 1;
updown = false;
continue;
}
if (inode)
204223c: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
2042240: 12 80 00 23 bne 20422cc <rtems_rfs_group_bitmap_alloc+0x168><== NOT EXECUTED
2042244: fa 04 20 1c ld [ %l0 + 0x1c ], %i5 <== NOT EXECUTED
bitmap = &fs->groups[group].inode_bitmap;
else
bitmap = &fs->groups[group].block_bitmap;
2042248: b1 2c 60 04 sll %l1, 4, %i0 <== NOT EXECUTED
204224c: b9 2c 60 06 sll %l1, 6, %i4 <== NOT EXECUTED
2042250: 82 06 00 1c add %i0, %i4, %g1 <== NOT EXECUTED
2042254: ba 07 40 01 add %i5, %g1, %i5 <== NOT EXECUTED
2042258: ba 07 60 08 add %i5, 8, %i5 <== NOT EXECUTED
rc = rtems_rfs_bitmap_map_alloc (bitmap, bit, &allocated, &bit);
204225c: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
2042260: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED
2042264: 94 10 00 17 mov %l7, %o2 <== NOT EXECUTED
2042268: 40 00 18 6e call 2048420 <rtems_rfs_bitmap_map_alloc> <== NOT EXECUTED
204226c: 96 10 00 19 mov %i1, %o3 <== NOT EXECUTED
if (rc > 0)
2042270: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2042274: 14 80 00 12 bg 20422bc <rtems_rfs_group_bitmap_alloc+0x158><== NOT EXECUTED
2042278: 01 00 00 00 nop <== NOT EXECUTED
return rc;
if (rtems_rfs_fs_release_bitmaps (fs))
204227c: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
2042280: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
2042284: 22 80 00 18 be,a 20422e4 <rtems_rfs_group_bitmap_alloc+0x180><== NOT EXECUTED
2042288: d2 07 40 00 ld [ %i5 ], %o1 <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
if (allocated)
204228c: c2 0f bf ff ldub [ %fp + -1 ], %g1 <== NOT EXECUTED
2042290: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2042294: 12 80 00 18 bne 20422f4 <rtems_rfs_group_bitmap_alloc+0x190><== NOT EXECUTED
2042298: 80 8d 20 ff btst 0xff, %l4 <== NOT EXECUTED
printf ("rtems-rfs: group-bitmap-alloc: %s allocated: %" PRId32 "\n",
inode ? "inode" : "block", *result);
return 0;
}
if (updown)
204229c: 02 bf ff d7 be 20421f8 <rtems_rfs_group_bitmap_alloc+0x94><== NOT EXECUTED
20422a0: a6 04 e0 01 inc %l3 <== NOT EXECUTED
direction = direction > 0 ? -1 : 1;
20422a4: a4 1c a0 01 xor %l2, 1, %l2 <== NOT EXECUTED
20422a8: 80 a0 00 12 cmp %g0, %l2 <== NOT EXECUTED
20422ac: a4 40 3f ff addx %g0, -1, %l2 <== NOT EXECUTED
20422b0: 10 bf ff d2 b 20421f8 <rtems_rfs_group_bitmap_alloc+0x94> <== NOT EXECUTED
20422b4: a4 14 a0 01 or %l2, 1, %l2 <== NOT EXECUTED
offset++;
20422b8: 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;
}
20422bc: 81 c7 e0 08 ret <== NOT EXECUTED
20422c0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
{
size = fs->group_inodes;
goal -= RTEMS_RFS_ROOT_INO;
}
else
size = fs->group_blocks;
20422c4: 10 bf ff ae b 204217c <rtems_rfs_group_bitmap_alloc+0x18> <== NOT EXECUTED
20422c8: e2 06 20 24 ld [ %i0 + 0x24 ], %l1 <== NOT EXECUTED
updown = false;
continue;
}
if (inode)
bitmap = &fs->groups[group].inode_bitmap;
20422cc: b1 2c 60 04 sll %l1, 4, %i0 <== NOT EXECUTED
20422d0: b9 2c 60 06 sll %l1, 6, %i4 <== NOT EXECUTED
20422d4: 82 06 00 1c add %i0, %i4, %g1 <== NOT EXECUTED
20422d8: ba 07 40 01 add %i5, %g1, %i5 <== NOT EXECUTED
20422dc: 10 bf ff e0 b 204225c <rtems_rfs_group_bitmap_alloc+0xf8> <== NOT EXECUTED
20422e0: ba 07 60 2c add %i5, 0x2c, %i5 <== NOT EXECUTED
rc = rtems_rfs_bitmap_map_alloc (bitmap, bit, &allocated, &bit);
if (rc > 0)
return rc;
if (rtems_rfs_fs_release_bitmaps (fs))
rtems_rfs_bitmap_release_buffer (fs, bitmap);
20422e4: 7f ff f2 3f call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
20422e8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (allocated)
20422ec: 10 bf ff e9 b 2042290 <rtems_rfs_group_bitmap_alloc+0x12c><== NOT EXECUTED
20422f0: c2 0f bf ff ldub [ %fp + -1 ], %g1 <== NOT EXECUTED
{
if (inode)
20422f4: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
20422f8: 22 80 00 0b be,a 2042324 <rtems_rfs_group_bitmap_alloc+0x1c0><== NOT EXECUTED
20422fc: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
*result = rtems_rfs_group_inode (fs, group, bit);
2042300: d2 04 20 28 ld [ %l0 + 0x28 ], %o1 <== NOT EXECUTED
2042304: e0 07 bf f8 ld [ %fp + -8 ], %l0 <== NOT EXECUTED
2042308: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
204230c: 7f ff 02 20 call 2002b8c <.umul> <== NOT EXECUTED
2042310: a0 04 20 01 inc %l0 <== NOT EXECUTED
2042314: 90 04 00 08 add %l0, %o0, %o0 <== NOT EXECUTED
2042318: d0 26 c0 00 st %o0, [ %i3 ] <== NOT EXECUTED
204231c: 10 bf ff e8 b 20422bc <rtems_rfs_group_bitmap_alloc+0x158><== NOT EXECUTED
2042320: 90 10 20 00 clr %o0 <== NOT EXECUTED
else
*result = rtems_rfs_group_block (&fs->groups[group], bit);
2042324: b8 06 00 1c add %i0, %i4, %i4 <== NOT EXECUTED
2042328: c4 07 bf f8 ld [ %fp + -8 ], %g2 <== NOT EXECUTED
204232c: c2 00 40 1c ld [ %g1 + %i4 ], %g1 <== NOT EXECUTED
2042330: 90 10 20 00 clr %o0 <== NOT EXECUTED
2042334: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
2042338: 10 bf ff e1 b 20422bc <rtems_rfs_group_bitmap_alloc+0x158><== NOT EXECUTED
204233c: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED
02042094 <rtems_rfs_group_bitmap_free>:
int
rtems_rfs_group_bitmap_free (rtems_rfs_file_system* fs,
bool inode,
rtems_rfs_bitmap_bit no)
{
2042094: 9d e3 bf a0 save %sp, -96, %sp <== 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)
2042098: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED
204209c: 02 80 00 1a be 2042104 <rtems_rfs_group_bitmap_free+0x70> <== NOT EXECUTED
20420a0: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
{
no -= RTEMS_RFS_ROOT_INO;
size = fs->group_inodes;
20420a4: e2 06 20 28 ld [ %i0 + 0x28 ], %l1 <== NOT EXECUTED
{
no -= RTEMS_RFS_SUPERBLOCK_SIZE;
size = fs->group_blocks;
}
group = no / size;
20420a8: b4 06 bf ff add %i2, -1, %i2 <== NOT EXECUTED
bit = (rtems_rfs_bitmap_bit) (no % size);
20420ac: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20420b0: 40 00 7c be call 20613a8 <.urem> <== NOT EXECUTED
20420b4: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
if (inode)
bitmap = &fs->groups[group].inode_bitmap;
20420b8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
no -= RTEMS_RFS_SUPERBLOCK_SIZE;
size = fs->group_blocks;
}
group = no / size;
bit = (rtems_rfs_bitmap_bit) (no % size);
20420bc: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
if (inode)
bitmap = &fs->groups[group].inode_bitmap;
20420c0: 40 00 7c 0e call 20610f8 <.udiv> <== NOT EXECUTED
20420c4: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
20420c8: e2 04 20 1c ld [ %l0 + 0x1c ], %l1 <== NOT EXECUTED
20420cc: 83 2a 20 06 sll %o0, 6, %g1 <== NOT EXECUTED
20420d0: 91 2a 20 04 sll %o0, 4, %o0 <== NOT EXECUTED
20420d4: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED
else
bitmap = &fs->groups[group].block_bitmap;
rc = rtems_rfs_bitmap_map_clear (bitmap, bit);
20420d8: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
group = no / size;
bit = (rtems_rfs_bitmap_bit) (no % size);
if (inode)
bitmap = &fs->groups[group].inode_bitmap;
20420dc: a2 04 40 08 add %l1, %o0, %l1 <== NOT EXECUTED
20420e0: a2 04 60 2c add %l1, 0x2c, %l1 <== NOT EXECUTED
else
bitmap = &fs->groups[group].block_bitmap;
rc = rtems_rfs_bitmap_map_clear (bitmap, bit);
20420e4: 40 00 17 d9 call 2048048 <rtems_rfs_bitmap_map_clear> <== NOT EXECUTED
20420e8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
20420ec: d2 04 40 00 ld [ %l1 ], %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);
20420f0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
20420f4: 7f ff f2 bb call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
20420f8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
}
20420fc: 81 c7 e0 08 ret <== NOT EXECUTED
2042100: 81 e8 00 00 restore <== NOT EXECUTED
size = fs->group_inodes;
}
else
{
no -= RTEMS_RFS_SUPERBLOCK_SIZE;
size = fs->group_blocks;
2042104: e2 06 20 24 ld [ %i0 + 0x24 ], %l1 <== NOT EXECUTED
}
group = no / size;
2042108: b4 06 bf ff add %i2, -1, %i2 <== NOT EXECUTED
bit = (rtems_rfs_bitmap_bit) (no % size);
204210c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2042110: 40 00 7c a6 call 20613a8 <.urem> <== NOT EXECUTED
2042114: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
if (inode)
bitmap = &fs->groups[group].inode_bitmap;
else
bitmap = &fs->groups[group].block_bitmap;
2042118: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
no -= RTEMS_RFS_SUPERBLOCK_SIZE;
size = fs->group_blocks;
}
group = no / size;
bit = (rtems_rfs_bitmap_bit) (no % size);
204211c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
if (inode)
bitmap = &fs->groups[group].inode_bitmap;
else
bitmap = &fs->groups[group].block_bitmap;
2042120: 40 00 7b f6 call 20610f8 <.udiv> <== NOT EXECUTED
2042124: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
2042128: e2 04 20 1c ld [ %l0 + 0x1c ], %l1 <== NOT EXECUTED
204212c: 83 2a 20 06 sll %o0, 6, %g1 <== NOT EXECUTED
2042130: 91 2a 20 04 sll %o0, 4, %o0 <== NOT EXECUTED
2042134: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED
rc = rtems_rfs_bitmap_map_clear (bitmap, bit);
2042138: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
bit = (rtems_rfs_bitmap_bit) (no % size);
if (inode)
bitmap = &fs->groups[group].inode_bitmap;
else
bitmap = &fs->groups[group].block_bitmap;
204213c: a2 04 40 08 add %l1, %o0, %l1 <== NOT EXECUTED
2042140: a2 04 60 08 add %l1, 8, %l1 <== NOT EXECUTED
rc = rtems_rfs_bitmap_map_clear (bitmap, bit);
2042144: 40 00 17 c1 call 2048048 <rtems_rfs_bitmap_map_clear> <== NOT EXECUTED
2042148: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
204214c: d2 04 40 00 ld [ %l1 ], %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);
2042150: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
2042154: 7f ff f2 a3 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2042158: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
}
204215c: 81 c7 e0 08 ret <== NOT EXECUTED
2042160: 81 e8 00 00 restore <== NOT EXECUTED
02041f94 <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)
{
2041f94: 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)
2041f98: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED
2041f9c: 02 80 00 21 be 2042020 <rtems_rfs_group_bitmap_test+0x8c> <== NOT EXECUTED
2041fa0: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
{
if ((no < RTEMS_RFS_ROOT_INO) || (no > rtems_rfs_fs_inodes (fs)))
2041fa4: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
2041fa8: 04 80 00 39 ble 204208c <rtems_rfs_group_bitmap_test+0xf8><== NOT EXECUTED
2041fac: 01 00 00 00 nop <== NOT EXECUTED
2041fb0: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
2041fb4: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED
2041fb8: 18 80 00 35 bgu 204208c <rtems_rfs_group_bitmap_test+0xf8><== NOT EXECUTED
2041fbc: b4 06 bf ff add %i2, -1, %i2 <== NOT EXECUTED
return EINVAL;
no -= RTEMS_RFS_ROOT_INO;
size = fs->group_inodes;
2041fc0: e2 06 20 28 ld [ %i0 + 0x28 ], %l1 <== NOT EXECUTED
return EINVAL;
size = fs->group_blocks;
}
group = no / size;
bit = (rtems_rfs_bitmap_bit) (no % size);
2041fc4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2041fc8: 40 00 7c f8 call 20613a8 <.urem> <== NOT EXECUTED
2041fcc: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
if (inode)
bitmap = &fs->groups[group].inode_bitmap;
2041fd0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return EINVAL;
size = fs->group_blocks;
}
group = no / size;
bit = (rtems_rfs_bitmap_bit) (no % size);
2041fd4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
if (inode)
bitmap = &fs->groups[group].inode_bitmap;
2041fd8: 40 00 7c 48 call 20610f8 <.udiv> <== NOT EXECUTED
2041fdc: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
2041fe0: f4 04 20 1c ld [ %l0 + 0x1c ], %i2 <== NOT EXECUTED
2041fe4: 83 2a 20 06 sll %o0, 6, %g1 <== NOT EXECUTED
2041fe8: 91 2a 20 04 sll %o0, 4, %o0 <== NOT EXECUTED
2041fec: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED
else
bitmap = &fs->groups[group].block_bitmap;
rc = rtems_rfs_bitmap_map_test (bitmap, bit, state);
2041ff0: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
group = no / size;
bit = (rtems_rfs_bitmap_bit) (no % size);
if (inode)
bitmap = &fs->groups[group].inode_bitmap;
2041ff4: b4 06 80 08 add %i2, %o0, %i2 <== NOT EXECUTED
else
bitmap = &fs->groups[group].block_bitmap;
rc = rtems_rfs_bitmap_map_test (bitmap, bit, state);
2041ff8: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED
group = no / size;
bit = (rtems_rfs_bitmap_bit) (no % size);
if (inode)
bitmap = &fs->groups[group].inode_bitmap;
2041ffc: b4 06 a0 2c add %i2, 0x2c, %i2 <== NOT EXECUTED
else
bitmap = &fs->groups[group].block_bitmap;
rc = rtems_rfs_bitmap_map_test (bitmap, bit, state);
2042000: 40 00 17 f9 call 2047fe4 <rtems_rfs_bitmap_map_test> <== NOT EXECUTED
2042004: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
2042008: d2 06 80 00 ld [ %i2 ], %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);
204200c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
2042010: 7f ff f2 f4 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2042014: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
2042018: 81 c7 e0 08 ret <== NOT EXECUTED
204201c: 81 e8 00 00 restore <== NOT EXECUTED
no -= RTEMS_RFS_ROOT_INO;
size = fs->group_inodes;
}
else
{
if (no >= rtems_rfs_fs_blocks (fs))
2042020: c2 06 20 04 ld [ %i0 + 4 ], %g1 <== NOT EXECUTED
2042024: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED
2042028: 1a 80 00 19 bcc 204208c <rtems_rfs_group_bitmap_test+0xf8><== NOT EXECUTED
204202c: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
return EINVAL;
size = fs->group_blocks;
2042030: e2 06 20 24 ld [ %i0 + 0x24 ], %l1 <== NOT EXECUTED
}
group = no / size;
bit = (rtems_rfs_bitmap_bit) (no % size);
2042034: 40 00 7c dd call 20613a8 <.urem> <== NOT EXECUTED
2042038: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (inode)
bitmap = &fs->groups[group].inode_bitmap;
else
bitmap = &fs->groups[group].block_bitmap;
204203c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return EINVAL;
size = fs->group_blocks;
}
group = no / size;
bit = (rtems_rfs_bitmap_bit) (no % size);
2042040: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
if (inode)
bitmap = &fs->groups[group].inode_bitmap;
else
bitmap = &fs->groups[group].block_bitmap;
2042044: 40 00 7c 2d call 20610f8 <.udiv> <== NOT EXECUTED
2042048: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
204204c: f4 04 20 1c ld [ %l0 + 0x1c ], %i2 <== NOT EXECUTED
2042050: 83 2a 20 06 sll %o0, 6, %g1 <== NOT EXECUTED
2042054: 91 2a 20 04 sll %o0, 4, %o0 <== NOT EXECUTED
2042058: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED
rc = rtems_rfs_bitmap_map_test (bitmap, bit, state);
204205c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
bit = (rtems_rfs_bitmap_bit) (no % size);
if (inode)
bitmap = &fs->groups[group].inode_bitmap;
else
bitmap = &fs->groups[group].block_bitmap;
2042060: b4 06 80 08 add %i2, %o0, %i2 <== NOT EXECUTED
rc = rtems_rfs_bitmap_map_test (bitmap, bit, state);
2042064: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED
bit = (rtems_rfs_bitmap_bit) (no % size);
if (inode)
bitmap = &fs->groups[group].inode_bitmap;
else
bitmap = &fs->groups[group].block_bitmap;
2042068: b4 06 a0 08 add %i2, 8, %i2 <== NOT EXECUTED
rc = rtems_rfs_bitmap_map_test (bitmap, bit, state);
204206c: 40 00 17 de call 2047fe4 <rtems_rfs_bitmap_map_test> <== NOT EXECUTED
2042070: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
2042074: d2 06 80 00 ld [ %i2 ], %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);
2042078: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
204207c: 7f ff f2 d9 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2042080: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
2042084: 81 c7 e0 08 ret <== NOT EXECUTED
2042088: 81 e8 00 00 restore <== NOT EXECUTED
}
204208c: 81 c7 e0 08 ret <== NOT EXECUTED
2042090: 91 e8 20 16 restore %g0, 0x16, %o0 <== NOT EXECUTED
02042340 <rtems_rfs_group_close>:
return 0;
}
int
rtems_rfs_group_close (rtems_rfs_file_system* fs, rtems_rfs_group* group)
{
2042340: 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);
2042344: 40 00 16 64 call 2047cd4 <rtems_rfs_bitmap_close> <== NOT EXECUTED
2042348: 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);
204234c: 92 06 60 44 add %i1, 0x44, %o1 <== NOT EXECUTED
2042350: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
2042354: 7f ff f2 23 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2042358: 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)
{
204235c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
handle->dirty = false;
2042360: c0 2e 60 44 clrb [ %i1 + 0x44 ] <== NOT EXECUTED
handle->bnum = 0;
2042364: c0 26 60 48 clr [ %i1 + 0x48 ] <== NOT EXECUTED
handle->buffer = NULL;
2042368: 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);
204236c: 40 00 16 5a call 2047cd4 <rtems_rfs_bitmap_close> <== NOT EXECUTED
2042370: 90 06 60 08 add %i1, 8, %o0 <== NOT EXECUTED
if (rc > 0)
2042374: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2042378: 04 80 00 09 ble 204239c <rtems_rfs_group_close+0x5c> <== NOT EXECUTED
204237c: 90 10 00 10 mov %l0, %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);
2042380: 7f ff f2 18 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2042384: 92 06 60 20 add %i1, 0x20, %o1 <== NOT EXECUTED
handle->dirty = false;
handle->bnum = 0;
handle->buffer = NULL;
2042388: 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;
204238c: c0 2e 60 20 clrb [ %i1 + 0x20 ] <== NOT EXECUTED
handle->bnum = 0;
2042390: 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;
}
2042394: 81 c7 e0 08 ret <== NOT EXECUTED
2042398: 81 e8 00 00 restore <== NOT EXECUTED
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);
if (rc > 0)
204239c: b0 38 00 11 xnor %g0, %l1, %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);
20423a0: 92 06 60 20 add %i1, 0x20, %o1 <== NOT EXECUTED
20423a4: 7f ff f2 0f call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
20423a8: b1 3e 20 1f sra %i0, 0x1f, %i0 <== NOT EXECUTED
20423ac: b0 0c 40 18 and %l1, %i0, %i0 <== NOT EXECUTED
handle->dirty = false;
handle->bnum = 0;
handle->buffer = NULL;
20423b0: 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;
20423b4: c0 2e 60 20 clrb [ %i1 + 0x20 ] <== NOT EXECUTED
handle->bnum = 0;
20423b8: 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;
}
20423bc: 81 c7 e0 08 ret <== NOT EXECUTED
20423c0: 81 e8 00 00 restore <== NOT EXECUTED
020423c4 <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)
{
20423c4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc;
if (base >= rtems_rfs_fs_blocks (fs))
20423c8: 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)
{
20423cc: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
int rc;
if (base >= rtems_rfs_fs_blocks (fs))
20423d0: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED
20423d4: 08 80 00 1b bleu 2042440 <rtems_rfs_group_open+0x7c> <== NOT EXECUTED
20423d8: 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))
20423dc: 84 06 80 19 add %i2, %i1, %g2 <== NOT EXECUTED
20423e0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
20423e4: 28 80 00 02 bleu,a 20423ec <rtems_rfs_group_open+0x28> <== NOT EXECUTED
20423e8: 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;
20423ec: f2 27 00 00 st %i1, [ %i4 ] <== NOT EXECUTED
group->size = size;
20423f0: 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;
20423f4: c0 2f 20 20 clrb [ %i4 + 0x20 ] <== NOT EXECUTED
handle->bnum = 0;
20423f8: c0 27 20 24 clr [ %i4 + 0x24 ] <== NOT EXECUTED
handle->buffer = NULL;
20423fc: 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,
2042400: 98 10 00 19 mov %i1, %o4 <== NOT EXECUTED
2042404: a4 07 20 08 add %i4, 8, %l2 <== NOT EXECUTED
2042408: a2 07 20 20 add %i4, 0x20, %l1 <== NOT EXECUTED
204240c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2042410: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2042414: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2042418: 40 00 16 86 call 2047e30 <rtems_rfs_bitmap_open> <== NOT EXECUTED
204241c: 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)
2042420: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2042424: 04 80 00 09 ble 2042448 <rtems_rfs_group_open+0x84> <== NOT EXECUTED
2042428: 90 10 00 10 mov %l0, %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);
204242c: 7f ff f1 ed call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2042430: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
handle->dirty = false;
handle->bnum = 0;
handle->buffer = NULL;
2042434: 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;
2042438: c0 2f 20 20 clrb [ %i4 + 0x20 ] <== NOT EXECUTED
handle->bnum = 0;
204243c: c0 27 20 24 clr [ %i4 + 0x24 ] <== NOT EXECUTED
2042440: 81 c7 e0 08 ret <== NOT EXECUTED
2042444: 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;
2042448: c0 2f 20 44 clrb [ %i4 + 0x44 ] <== NOT EXECUTED
handle->bnum = 0;
204244c: c0 27 20 48 clr [ %i4 + 0x48 ] <== NOT EXECUTED
handle->buffer = NULL;
2042450: 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,
2042454: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
2042458: 80 a6 80 1b cmp %i2, %i3 <== NOT EXECUTED
204245c: a6 07 20 44 add %i4, 0x44, %l3 <== NOT EXECUTED
2042460: 08 80 00 03 bleu 204246c <rtems_rfs_group_open+0xa8> <== NOT EXECUTED
2042464: 90 07 20 2c add %i4, 0x2c, %o0 <== NOT EXECUTED
2042468: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
204246c: d8 07 00 00 ld [ %i4 ], %o4 <== NOT EXECUTED
2042470: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2042474: 98 03 20 01 inc %o4 <== NOT EXECUTED
2042478: 40 00 16 6e call 2047e30 <rtems_rfs_bitmap_open> <== NOT EXECUTED
204247c: 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)
2042480: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2042484: 14 80 00 0e bg 20424bc <rtems_rfs_group_open+0xf8> <== NOT EXECUTED
2042488: 92 10 00 13 mov %l3, %o1 <== 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))
204248c: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
2042490: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
2042494: 12 bf ff eb bne 2042440 <rtems_rfs_group_open+0x7c> <== NOT EXECUTED
2042498: b0 10 20 00 clr %i0 <== NOT EXECUTED
{
rtems_rfs_bitmap_release_buffer (fs, &group->block_bitmap);
204249c: d2 07 20 08 ld [ %i4 + 8 ], %o1 <== NOT EXECUTED
20424a0: 7f ff f1 d0 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
20424a4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, &group->inode_bitmap);
20424a8: d2 07 20 2c ld [ %i4 + 0x2c ], %o1 <== NOT EXECUTED
20424ac: 7f ff f1 cd call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
20424b0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
}
return 0;
}
20424b4: 81 c7 e0 08 ret <== NOT EXECUTED
20424b8: 81 e8 00 00 restore <== 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);
20424bc: 7f ff f1 c9 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
20424c0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
&group->inode_bitmap_buffer, inodes,
group->base + RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK);
if (rc > 0)
{
rtems_rfs_buffer_handle_close (fs, &group->inode_bitmap_buffer);
rtems_rfs_bitmap_close (&group->block_bitmap);
20424c4: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
handle->dirty = false;
20424c8: c0 2f 20 44 clrb [ %i4 + 0x44 ] <== NOT EXECUTED
handle->bnum = 0;
20424cc: c0 27 20 48 clr [ %i4 + 0x48 ] <== NOT EXECUTED
20424d0: 40 00 16 01 call 2047cd4 <rtems_rfs_bitmap_close> <== NOT EXECUTED
20424d4: 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);
20424d8: 10 bf ff d5 b 204242c <rtems_rfs_group_open+0x68> <== NOT EXECUTED
20424dc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
02041ef8 <rtems_rfs_group_usage>:
int
rtems_rfs_group_usage (rtems_rfs_file_system* fs,
size_t* blocks,
size_t* inodes)
{
2041ef8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int g;
*blocks = 0;
2041efc: c0 26 40 00 clr [ %i1 ] <== NOT EXECUTED
*inodes = 0;
2041f00: c0 26 80 00 clr [ %i2 ] <== NOT EXECUTED
for (g = 0; g < fs->group_count; g++)
2041f04: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED
2041f08: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2041f0c: 04 80 00 14 ble 2041f5c <rtems_rfs_group_usage+0x64> <== NOT EXECUTED
2041f10: 84 10 20 00 clr %g2 <== NOT EXECUTED
2041f14: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
{
rtems_rfs_group* group = &fs->groups[g];
*blocks +=
2041f18: da 00 60 14 ld [ %g1 + 0x14 ], %o5 <== NOT EXECUTED
2041f1c: c6 00 60 18 ld [ %g1 + 0x18 ], %g3 <== NOT EXECUTED
2041f20: c8 06 40 00 ld [ %i1 ], %g4 <== NOT EXECUTED
2041f24: 86 23 40 03 sub %o5, %g3, %g3 <== NOT EXECUTED
2041f28: 86 01 00 03 add %g4, %g3, %g3 <== NOT EXECUTED
2041f2c: c6 26 40 00 st %g3, [ %i1 ] <== NOT EXECUTED
rtems_rfs_bitmap_map_size(&group->block_bitmap) -
rtems_rfs_bitmap_map_free (&group->block_bitmap);
*inodes +=
2041f30: da 00 60 38 ld [ %g1 + 0x38 ], %o5 <== NOT EXECUTED
2041f34: c6 00 60 3c ld [ %g1 + 0x3c ], %g3 <== NOT EXECUTED
2041f38: c8 06 80 00 ld [ %i2 ], %g4 <== NOT EXECUTED
2041f3c: 86 23 40 03 sub %o5, %g3, %g3 <== NOT EXECUTED
2041f40: 86 01 00 03 add %g4, %g3, %g3 <== NOT EXECUTED
2041f44: c6 26 80 00 st %g3, [ %i2 ] <== NOT EXECUTED
int g;
*blocks = 0;
*inodes = 0;
for (g = 0; g < fs->group_count; g++)
2041f48: c6 06 20 20 ld [ %i0 + 0x20 ], %g3 <== NOT EXECUTED
2041f4c: 84 00 a0 01 inc %g2 <== NOT EXECUTED
2041f50: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED
2041f54: 14 bf ff f1 bg 2041f18 <rtems_rfs_group_usage+0x20> <== NOT EXECUTED
2041f58: 82 00 60 50 add %g1, 0x50, %g1 <== 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))
2041f5c: c4 06 20 04 ld [ %i0 + 4 ], %g2 <== NOT EXECUTED
2041f60: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
2041f64: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2041f68: 38 80 00 02 bgu,a 2041f70 <rtems_rfs_group_usage+0x78> <== NOT EXECUTED
2041f6c: 82 10 00 02 mov %g2, %g1 <== NOT EXECUTED
2041f70: c2 26 40 00 st %g1, [ %i1 ] <== NOT EXECUTED
*blocks = rtems_rfs_fs_blocks (fs);
if (*inodes > rtems_rfs_fs_inodes (fs))
2041f74: c4 06 20 10 ld [ %i0 + 0x10 ], %g2 <== NOT EXECUTED
2041f78: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
2041f7c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2041f80: 38 80 00 02 bgu,a 2041f88 <rtems_rfs_group_usage+0x90> <== NOT EXECUTED
2041f84: 82 10 00 02 mov %g2, %g1 <== NOT EXECUTED
2041f88: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
*inodes = rtems_rfs_fs_inodes (fs);
return 0;
}
2041f8c: 81 c7 e0 08 ret <== NOT EXECUTED
2041f90: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
02042a04 <rtems_rfs_inode_alloc>:
int
rtems_rfs_inode_alloc (rtems_rfs_file_system* fs,
rtems_rfs_bitmap_bit goal,
rtems_rfs_ino* ino)
{
2042a04: 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);
2042a08: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
2042a0c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2042a10: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2042a14: 7f ff fd d4 call 2042164 <rtems_rfs_group_bitmap_alloc> <== NOT EXECUTED
2042a18: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
*ino = bit;
2042a1c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2042a20: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
return rc;
}
2042a24: 81 c7 e0 08 ret <== NOT EXECUTED
2042a28: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
020427f4 <rtems_rfs_inode_close>:
}
int
rtems_rfs_inode_close (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
20427f4: 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);
20427f8: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
20427fc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2042800: 7f ff ff d0 call 2042740 <rtems_rfs_inode_unload> <== NOT EXECUTED
2042804: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
if ((rc == 0) && (handle->loads > 0))
2042808: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
204280c: 32 80 00 07 bne,a 2042828 <rtems_rfs_inode_close+0x34> <== NOT EXECUTED
2042810: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED
2042814: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED
2042818: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
204281c: 34 80 00 02 bg,a 2042824 <rtems_rfs_inode_close+0x30> <== NOT EXECUTED
2042820: 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;
2042824: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED
return rc;
}
2042828: 81 c7 e0 08 ret <== NOT EXECUTED
204282c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02042a2c <rtems_rfs_inode_create>:
uint16_t mode,
uint16_t links,
uid_t uid,
gid_t gid,
rtems_rfs_ino* ino)
{
2042a2c: 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)
2042a30: 23 00 00 3c sethi %hi(0xf000), %l1 <== NOT EXECUTED
2042a34: b9 2f 20 10 sll %i4, 0x10, %i4 <== NOT EXECUTED
2042a38: 03 00 00 18 sethi %hi(0x6000), %g1 <== NOT EXECUTED
2042a3c: 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)
{
2042a40: 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)
2042a44: 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)
{
2042a48: 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)
2042a4c: 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)
{
2042a50: 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)
2042a54: 02 80 00 14 be 2042aa4 <rtems_rfs_inode_create+0x78> <== NOT EXECUTED
2042a58: e4 07 a0 64 ld [ %fp + 0x64 ], %l2 <== NOT EXECUTED
2042a5c: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
2042a60: 04 80 00 0b ble 2042a8c <rtems_rfs_inode_create+0x60> <== NOT EXECUTED
2042a64: 03 00 00 08 sethi %hi(0x2000), %g1 <== NOT EXECUTED
2042a68: 03 00 00 20 sethi %hi(0x8000), %g1 <== NOT EXECUTED
2042a6c: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
2042a70: 02 80 00 0d be 2042aa4 <rtems_rfs_inode_create+0x78> <== NOT EXECUTED
2042a74: 03 00 00 28 sethi %hi(0xa000), %g1 <== NOT EXECUTED
2042a78: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
2042a7c: 02 80 00 0b be 2042aa8 <rtems_rfs_inode_create+0x7c> <== NOT EXECUTED
2042a80: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2042a84: 81 c7 e0 08 ret <== NOT EXECUTED
2042a88: 91 e8 20 16 restore %g0, 0x16, %o0 <== NOT EXECUTED
2042a8c: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
2042a90: 02 80 00 05 be 2042aa4 <rtems_rfs_inode_create+0x78> <== NOT EXECUTED
2042a94: 03 00 00 10 sethi %hi(0x4000), %g1 <== NOT EXECUTED
2042a98: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
2042a9c: 12 bf ff fa bne 2042a84 <rtems_rfs_inode_create+0x58> <== NOT EXECUTED
2042aa0: 01 00 00 00 nop <== NOT EXECUTED
break;
default:
return EINVAL;
}
rc = rtems_rfs_inode_alloc (fs, parent, ino);
2042aa4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2042aa8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2042aac: 7f ff ff d6 call 2042a04 <rtems_rfs_inode_alloc> <== NOT EXECUTED
2042ab0: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
if (rc > 0)
2042ab4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2042ab8: 24 80 00 04 ble,a 2042ac8 <rtems_rfs_inode_create+0x9c> <== NOT EXECUTED
2042abc: d2 04 80 00 ld [ %l2 ], %o1 <== NOT EXECUTED
rtems_rfs_inode_free (fs, *ino);
return rc;
}
return 0;
}
2042ac0: 81 c7 e0 08 ret <== NOT EXECUTED
2042ac4: 81 e8 00 00 restore <== NOT EXECUTED
rc = rtems_rfs_inode_alloc (fs, parent, ino);
if (rc > 0)
return rc;
rc = rtems_rfs_inode_open (fs, *ino, &inode, true);
2042ac8: a6 07 bf b0 add %fp, -80, %l3 <== NOT EXECUTED
2042acc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2042ad0: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
2042ad4: 7f ff ff 72 call 204289c <rtems_rfs_inode_open> <== NOT EXECUTED
2042ad8: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
2042adc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2042ae0: 04 80 00 07 ble 2042afc <rtems_rfs_inode_create+0xd0> <== NOT EXECUTED
2042ae4: 93 2f 60 10 sll %i5, 0x10, %o1 <== NOT EXECUTED
{
rtems_rfs_inode_free (fs, *ino);
2042ae8: d2 04 80 00 ld [ %l2 ], %o1 <== NOT EXECUTED
2042aec: 7f ff ff 99 call 2042950 <rtems_rfs_inode_free> <== NOT EXECUTED
2042af0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
2042af4: 81 c7 e0 08 ret <== NOT EXECUTED
2042af8: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = rtems_rfs_inode_initialise (&inode, links, mode, uid, gid);
2042afc: 97 2d 60 10 sll %l5, 0x10, %o3 <== NOT EXECUTED
2042b00: 99 2d 20 10 sll %l4, 0x10, %o4 <== NOT EXECUTED
2042b04: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED
2042b08: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
2042b0c: 97 32 e0 10 srl %o3, 0x10, %o3 <== NOT EXECUTED
2042b10: 99 33 20 10 srl %o4, 0x10, %o4 <== NOT EXECUTED
2042b14: 7f ff fe b5 call 20425e8 <rtems_rfs_inode_initialise> <== NOT EXECUTED
2042b18: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
if (rc > 0)
2042b1c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2042b20: 14 80 00 16 bg 2042b78 <rtems_rfs_inode_create+0x14c> <== NOT EXECUTED
2042b24: 03 00 00 10 sethi %hi(0x4000), %g1 <== 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))
2042b28: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
2042b2c: 22 80 00 36 be,a 2042c04 <rtems_rfs_inode_create+0x1d8> <== NOT EXECUTED
2042b30: d8 04 80 00 ld [ %l2 ], %o4 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
return rc;
}
}
rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);
2042b34: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2042b38: b8 07 bf d8 add %fp, -40, %i4 <== NOT EXECUTED
2042b3c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2042b40: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
2042b44: 7f ff ff 56 call 204289c <rtems_rfs_inode_open> <== NOT EXECUTED
2042b48: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
2042b4c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2042b50: 24 80 00 12 ble,a 2042b98 <rtems_rfs_inode_create+0x16c> <== NOT EXECUTED
2042b54: d8 04 80 00 ld [ %l2 ], %o4 <== NOT EXECUTED
rtems_rfs_inode_get_links (&parent_inode) + 1);
rc = rtems_rfs_inode_close (fs, &parent_inode);
if (rc > 0)
{
rtems_rfs_inode_delete (fs, &inode);
2042b58: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2042b5c: 7f ff ff 83 call 2042968 <rtems_rfs_inode_delete> <== NOT EXECUTED
2042b60: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
2042b64: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2042b68: 7f ff ff 23 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2042b6c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
return rc;
2042b70: 81 c7 e0 08 ret <== NOT EXECUTED
2042b74: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = rtems_rfs_inode_initialise (&inode, links, mode, uid, gid);
if (rc > 0)
{
rtems_rfs_inode_close (fs, &inode);
2042b78: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2042b7c: 7f ff ff 1e call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2042b80: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_inode_free (fs, *ino);
2042b84: d2 04 80 00 ld [ %l2 ], %o1 <== NOT EXECUTED
2042b88: 7f ff ff 72 call 2042950 <rtems_rfs_inode_free> <== NOT EXECUTED
2042b8c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
2042b90: 81 c7 e0 08 ret <== NOT EXECUTED
2042b94: 81 e8 00 00 restore <== NOT EXECUTED
rtems_rfs_inode_delete (fs, &inode);
rtems_rfs_inode_close (fs, &inode);
return rc;
}
rc = rtems_rfs_dir_add_entry (fs, &parent_inode, name, length, *ino);
2042b98: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2042b9c: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
2042ba0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2042ba4: 7f ff f2 74 call 203f574 <rtems_rfs_dir_add_entry> <== NOT EXECUTED
2042ba8: 92 10 00 1c mov %i4, %o1 <== NOT EXECUTED
if (rc > 0)
2042bac: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2042bb0: 14 80 00 23 bg 2042c3c <rtems_rfs_inode_create+0x210> <== NOT EXECUTED
2042bb4: 03 00 00 10 sethi %hi(0x4000), %g1 <== 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))
2042bb8: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
2042bbc: 02 80 00 33 be 2042c88 <rtems_rfs_inode_create+0x25c> <== NOT EXECUTED
2042bc0: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
rtems_rfs_inode_set_links (&parent_inode,
rtems_rfs_inode_get_links (&parent_inode) + 1);
rc = rtems_rfs_inode_close (fs, &parent_inode);
2042bc4: 92 10 00 1c mov %i4, %o1 <== NOT EXECUTED
2042bc8: 7f ff ff 0b call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2042bcc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc > 0)
2042bd0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2042bd4: 14 bf ff e2 bg 2042b5c <rtems_rfs_inode_create+0x130> <== NOT EXECUTED
2042bd8: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
rtems_rfs_inode_delete (fs, &inode);
rtems_rfs_inode_close (fs, &inode);
return rc;
}
rc = rtems_rfs_inode_close (fs, &inode);
2042bdc: 7f ff ff 06 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2042be0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc > 0)
2042be4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2042be8: 04 80 00 3e ble 2042ce0 <rtems_rfs_inode_create+0x2b4> <== NOT EXECUTED
2042bec: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_rfs_inode_free (fs, *ino);
2042bf0: d2 04 80 00 ld [ %l2 ], %o1 <== NOT EXECUTED
2042bf4: 7f ff ff 57 call 2042950 <rtems_rfs_inode_free> <== NOT EXECUTED
2042bf8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
}
return 0;
}
2042bfc: 81 c7 e0 08 ret <== NOT EXECUTED
2042c00: 81 e8 00 00 restore <== NOT EXECUTED
*
* The inode delete will free the inode.
*/
if (RTEMS_RFS_S_ISDIR (mode))
{
rc = rtems_rfs_dir_add_entry (fs, &inode, ".", 1, *ino);
2042c04: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2042c08: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2042c0c: 15 00 81 b4 sethi %hi(0x206d000), %o2 <== NOT EXECUTED
2042c10: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
2042c14: 7f ff f2 58 call 203f574 <rtems_rfs_dir_add_entry> <== NOT EXECUTED
2042c18: 94 12 a1 f8 or %o2, 0x1f8, %o2 <== NOT EXECUTED
if (rc == 0)
2042c1c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2042c20: 02 80 00 12 be 2042c68 <rtems_rfs_inode_create+0x23c> <== NOT EXECUTED
2042c24: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = rtems_rfs_dir_add_entry (fs, &inode, "..", 2, parent);
if (rc > 0)
2042c28: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
2042c2c: 24 bf ff c3 ble,a 2042b38 <rtems_rfs_inode_create+0x10c> <== NOT EXECUTED
2042c30: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
rtems_rfs_inode_get_links (&parent_inode) + 1);
rc = rtems_rfs_inode_close (fs, &parent_inode);
if (rc > 0)
{
rtems_rfs_inode_delete (fs, &inode);
2042c34: 10 bf ff ca b 2042b5c <rtems_rfs_inode_create+0x130> <== NOT EXECUTED
2042c38: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
}
rc = rtems_rfs_dir_add_entry (fs, &parent_inode, name, length, *ino);
if (rc > 0)
{
rtems_rfs_inode_delete (fs, &inode);
2042c3c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2042c40: 7f ff ff 4a call 2042968 <rtems_rfs_inode_delete> <== NOT EXECUTED
2042c44: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
2042c48: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2042c4c: 7f ff fe ea call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2042c50: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &parent_inode);
2042c54: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2042c58: 7f ff fe e7 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2042c5c: 92 10 00 1c mov %i4, %o1 <== NOT EXECUTED
return rc;
2042c60: 81 c7 e0 08 ret <== NOT EXECUTED
2042c64: 81 e8 00 00 restore <== NOT EXECUTED
*/
if (RTEMS_RFS_S_ISDIR (mode))
{
rc = rtems_rfs_dir_add_entry (fs, &inode, ".", 1, *ino);
if (rc == 0)
rc = rtems_rfs_dir_add_entry (fs, &inode, "..", 2, parent);
2042c68: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2042c6c: 15 00 81 b4 sethi %hi(0x206d000), %o2 <== NOT EXECUTED
2042c70: 96 10 20 02 mov 2, %o3 <== NOT EXECUTED
2042c74: 94 12 a2 00 or %o2, 0x200, %o2 <== NOT EXECUTED
2042c78: 7f ff f2 3f call 203f574 <rtems_rfs_dir_add_entry> <== NOT EXECUTED
2042c7c: 98 10 00 19 mov %i1, %o4 <== NOT EXECUTED
2042c80: 10 bf ff ea b 2042c28 <rtems_rfs_inode_create+0x1fc> <== NOT EXECUTED
2042c84: b0 10 00 08 mov %o0, %i0 <== 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);
2042c88: c4 08 60 01 ldub [ %g1 + 1 ], %g2 <== NOT EXECUTED
2042c8c: c8 08 40 00 ldub [ %g1 ], %g4 <== NOT EXECUTED
2042c90: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2042c94: 88 11 00 02 or %g4, %g2, %g4 <== NOT EXECUTED
if (links == 0xffff)
2042c98: 05 00 00 3f sethi %hi(0xfc00), %g2 <== NOT EXECUTED
2042c9c: 87 29 20 10 sll %g4, 0x10, %g3 <== NOT EXECUTED
2042ca0: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
2042ca4: 87 30 e0 10 srl %g3, 0x10, %g3 <== NOT EXECUTED
2042ca8: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED
2042cac: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
2042cb0: 02 80 00 06 be 2042cc8 <rtems_rfs_inode_create+0x29c> <== NOT EXECUTED
2042cb4: 86 10 20 00 clr %g3 <== NOT EXECUTED
2042cb8: 86 01 20 01 add %g4, 1, %g3 <== NOT EXECUTED
2042cbc: 84 10 00 03 mov %g3, %g2 <== NOT EXECUTED
2042cc0: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
2042cc4: 87 30 e0 18 srl %g3, 0x18, %g3 <== 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);
2042cc8: c6 28 40 00 stb %g3, [ %g1 ] <== NOT EXECUTED
2042ccc: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
2042cd0: c4 28 60 01 stb %g2, [ %g1 + 1 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
2042cd4: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2042cd8: 10 bf ff bb b 2042bc4 <rtems_rfs_inode_create+0x198> <== NOT EXECUTED
2042cdc: c2 2f bf e8 stb %g1, [ %fp + -24 ] <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
return rc;
}
rc = rtems_rfs_inode_close (fs, &inode);
if (rc > 0)
2042ce0: 81 c7 e0 08 ret <== NOT EXECUTED
2042ce4: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
02042968 <rtems_rfs_inode_delete>:
}
int
rtems_rfs_inode_delete (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
2042968: 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))
204296c: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
}
int
rtems_rfs_inode_delete (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
2042970: a0 10 00 18 mov %i0, %l0 <== 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))
2042974: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2042978: 02 80 00 08 be 2042998 <rtems_rfs_inode_delete+0x30> <== NOT EXECUTED
204297c: b0 10 20 00 clr %i0 <== NOT EXECUTED
rtems_rfs_block_map map;
/*
* Free the ino number.
*/
rc = rtems_rfs_inode_free (fs, handle->ino);
2042980: d2 06 60 08 ld [ %i1 + 8 ], %o1 <== NOT EXECUTED
2042984: 7f ff ff f3 call 2042950 <rtems_rfs_inode_free> <== NOT EXECUTED
2042988: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc > 0)
204298c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2042990: 04 80 00 04 ble 20429a0 <rtems_rfs_inode_delete+0x38> <== NOT EXECUTED
2042994: a2 07 bf b0 add %fp, -80, %l1 <== NOT EXECUTED
handle->loads = 0;
handle->node = NULL;
}
}
return rc;
}
2042998: 81 c7 e0 08 ret <== NOT EXECUTED
204299c: 81 e8 00 00 restore <== NOT EXECUTED
return rc;
/*
* Free the blocks the inode may have attached.
*/
rc = rtems_rfs_block_map_open (fs, handle, &map);
20429a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20429a4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
20429a8: 7f ff ef b9 call 203e88c <rtems_rfs_block_map_open> <== NOT EXECUTED
20429ac: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc == 0)
20429b0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20429b4: 12 bf ff f9 bne 2042998 <rtems_rfs_inode_delete+0x30> <== NOT EXECUTED
20429b8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
{
int rrc;
rrc = rtems_rfs_block_map_free_all (fs, &map);
20429bc: 7f ff ee 09 call 203e1e0 <rtems_rfs_block_map_free_all> <== NOT EXECUTED
20429c0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = rtems_rfs_block_map_close (fs, &map);
20429c4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20429c8: 7f ff ef 40 call 203e6c8 <rtems_rfs_block_map_close> <== NOT EXECUTED
20429cc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc > 0)
rrc = rc;
memset (handle->node, 0xff, RTEMS_RFS_INODE_SIZE);
20429d0: d0 06 60 0c ld [ %i1 + 0xc ], %o0 <== NOT EXECUTED
20429d4: 94 10 20 38 mov 0x38, %o2 <== NOT EXECUTED
20429d8: 40 00 26 7a call 204c3c0 <memset> <== NOT EXECUTED
20429dc: 92 10 20 ff mov 0xff, %o1 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
20429e0: 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);
20429e4: 90 10 00 10 mov %l0, %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);
20429e8: 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);
20429ec: 7f ff f0 7d call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
20429f0: 92 06 60 10 add %i1, 0x10, %o1 <== NOT EXECUTED
handle->loads = 0;
handle->node = NULL;
20429f4: 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;
20429f8: c0 26 60 24 clr [ %i1 + 0x24 ] <== NOT EXECUTED
handle->node = NULL;
}
}
return rc;
}
20429fc: 81 c7 e0 08 ret <== NOT EXECUTED
2042a00: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02042950 <rtems_rfs_inode_free>:
}
int
rtems_rfs_inode_free (rtems_rfs_file_system* fs,
rtems_rfs_ino ino)
{
2042950: 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);
2042954: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2042958: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
204295c: 7f ff fd ce call 2042094 <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
2042960: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
020424e0 <rtems_rfs_inode_get_size>:
}
rtems_rfs_pos
rtems_rfs_inode_get_size (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
20424e0: 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);
20424e4: 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);
20424e8: 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);
20424ec: d8 08 60 0c ldub [ %g1 + 0xc ], %o4 <== NOT EXECUTED
20424f0: 84 00 60 0c add %g1, 0xc, %g2 <== NOT EXECUTED
20424f4: da 08 a0 03 ldub [ %g2 + 3 ], %o5 <== NOT EXECUTED
20424f8: c6 08 a0 02 ldub [ %g2 + 2 ], %g3 <== NOT EXECUTED
20424fc: c8 08 a0 01 ldub [ %g2 + 1 ], %g4 <== NOT EXECUTED
2042500: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
2042504: 85 2b 20 18 sll %o4, 0x18, %g2 <== NOT EXECUTED
2042508: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
204250c: 84 13 40 02 or %o5, %g2, %g2 <== NOT EXECUTED
2042510: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
2042514: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
2042518: c4 27 bf f8 st %g2, [ %fp + -8 ] <== NOT EXECUTED
size.offset = rtems_rfs_inode_get_block_offset (handle);
204251c: c4 08 60 0b ldub [ %g1 + 0xb ], %g2 <== NOT EXECUTED
2042520: c2 08 60 0a ldub [ %g1 + 0xa ], %g1 <== NOT EXECUTED
return rtems_rfs_block_get_size (fs, &size);
2042524: 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);
2042528: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
204252c: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
return rtems_rfs_block_get_size (fs, &size);
2042530: 7f ff ed 70 call 203daf0 <rtems_rfs_block_get_size> <== NOT EXECUTED
2042534: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
}
2042538: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
204253c: 81 c7 e0 08 ret <== NOT EXECUTED
2042540: 93 e8 00 09 restore %g0, %o1, %o1 <== NOT EXECUTED
020425e8 <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);
20425e8: c4 02 20 0c ld [ %o0 + 0xc ], %g2 <== NOT EXECUTED
20425ec: 87 32 60 08 srl %o1, 8, %g3 <== NOT EXECUTED
20425f0: c6 28 80 00 stb %g3, [ %g2 ] <== NOT EXECUTED
20425f4: 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);
20425f8: 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);
20425fc: 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);
2042600: 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);
2042604: 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);
2042608: c0 28 e0 08 clrb [ %g3 + 8 ] <== NOT EXECUTED
204260c: 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)
{
2042610: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED
2042614: 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);
2042618: c6 02 20 0c ld [ %o0 + 0xc ], %g3 <== NOT EXECUTED
204261c: c4 28 e0 02 stb %g2, [ %g3 + 2 ] <== NOT EXECUTED
2042620: 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);
2042624: 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);
2042628: 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);
204262c: c6 02 20 0c ld [ %o0 + 0xc ], %g3 <== NOT EXECUTED
2042630: 85 30 a0 10 srl %g2, 0x10, %g2 <== NOT EXECUTED
2042634: 84 13 00 02 or %o4, %g2, %g2 <== NOT EXECUTED
2042638: 89 30 a0 18 srl %g2, 0x18, %g4 <== NOT EXECUTED
204263c: c8 28 e0 04 stb %g4, [ %g3 + 4 ] <== NOT EXECUTED
2042640: c6 02 20 0c ld [ %o0 + 0xc ], %g3 <== NOT EXECUTED
2042644: 89 30 a0 10 srl %g2, 0x10, %g4 <== NOT EXECUTED
2042648: c8 28 e0 05 stb %g4, [ %g3 + 5 ] <== NOT EXECUTED
204264c: c6 02 20 0c ld [ %o0 + 0xc ], %g3 <== NOT EXECUTED
2042650: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
2042654: c4 28 e0 06 stb %g2, [ %g3 + 6 ] <== NOT EXECUTED
2042658: 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);
204265c: 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);
2042660: 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);
2042664: c4 02 20 0c ld [ %o0 + 0xc ], %g2 <== NOT EXECUTED
2042668: c0 28 a0 0a clrb [ %g2 + 0xa ] <== NOT EXECUTED
204266c: 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);
2042670: 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);
2042674: 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);
2042678: c8 02 20 0c ld [ %o0 + 0xc ], %g4 <== NOT EXECUTED
204267c: c0 29 20 0c clrb [ %g4 + 0xc ] <== NOT EXECUTED
2042680: c8 02 20 0c ld [ %o0 + 0xc ], %g4 <== NOT EXECUTED
2042684: c0 29 20 0d clrb [ %g4 + 0xd ] <== NOT EXECUTED
2042688: c8 02 20 0c ld [ %o0 + 0xc ], %g4 <== NOT EXECUTED
204268c: c0 29 20 0e clrb [ %g4 + 0xe ] <== NOT EXECUTED
2042690: c8 02 20 0c ld [ %o0 + 0xc ], %g4 <== NOT EXECUTED
2042694: c0 29 20 0f clrb [ %g4 + 0xf ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
2042698: 88 10 20 01 mov 1, %g4 <== NOT EXECUTED
204269c: 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);
20426a0: c8 00 60 0c ld [ %g1 + 0xc ], %g4 <== NOT EXECUTED
20426a4: 88 01 00 03 add %g4, %g3, %g4 <== NOT EXECUTED
20426a8: c0 29 20 1c clrb [ %g4 + 0x1c ] <== NOT EXECUTED
20426ac: c8 00 60 0c ld [ %g1 + 0xc ], %g4 <== NOT EXECUTED
20426b0: 88 01 00 03 add %g4, %g3, %g4 <== NOT EXECUTED
20426b4: c0 29 20 1d clrb [ %g4 + 0x1d ] <== NOT EXECUTED
20426b8: c8 00 60 0c ld [ %g1 + 0xc ], %g4 <== NOT EXECUTED
20426bc: 88 01 00 03 add %g4, %g3, %g4 <== NOT EXECUTED
20426c0: c0 29 20 1e clrb [ %g4 + 0x1e ] <== NOT EXECUTED
20426c4: c8 00 60 0c ld [ %g1 + 0xc ], %g4 <== NOT EXECUTED
20426c8: 88 01 00 03 add %g4, %g3, %g4 <== NOT EXECUTED
20426cc: c0 29 20 1f clrb [ %g4 + 0x1f ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
20426d0: 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++)
20426d4: 80 a0 e0 14 cmp %g3, 0x14 <== NOT EXECUTED
20426d8: 12 bf ff f2 bne 20426a0 <rtems_rfs_inode_initialise+0xb8> <== NOT EXECUTED
20426dc: 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);
20426e0: 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);
20426e4: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
20426e8: c0 28 e0 30 clrb [ %g3 + 0x30 ] <== NOT EXECUTED
20426ec: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
20426f0: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
20426f4: c0 28 e0 31 clrb [ %g3 + 0x31 ] <== NOT EXECUTED
20426f8: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
20426fc: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
2042700: c0 28 e0 32 clrb [ %g3 + 0x32 ] <== NOT EXECUTED
2042704: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
2042708: 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);
204270c: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
2042710: c0 28 e0 34 clrb [ %g3 + 0x34 ] <== NOT EXECUTED
2042714: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
2042718: c0 28 e0 35 clrb [ %g3 + 0x35 ] <== NOT EXECUTED
204271c: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
2042720: c0 28 e0 36 clrb [ %g3 + 0x36 ] <== NOT EXECUTED
2042724: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
2042728: c0 28 e0 37 clrb [ %g3 + 0x37 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
204272c: c4 28 60 10 stb %g2, [ %g1 + 0x10 ] <== NOT EXECUTED
2042730: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2042734: 7f ff ff 84 call 2042544 <rtems_rfs_inode_time_stamp_now> <== NOT EXECUTED
2042738: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02042830 <rtems_rfs_inode_load>:
int
rtems_rfs_inode_load (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
2042830: 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))
2042834: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
2042838: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
204283c: 22 80 00 08 be,a 204285c <rtems_rfs_inode_load+0x2c> <== NOT EXECUTED
2042840: d4 06 60 1c ld [ %i1 + 0x1c ], %o2 <== NOT EXECUTED
handle->node = rtems_rfs_buffer_data (&handle->buffer);
handle->node += handle->offset;
}
handle->loads++;
2042844: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED
2042848: b0 10 20 00 clr %i0 <== NOT EXECUTED
204284c: 82 00 60 01 inc %g1 <== NOT EXECUTED
2042850: c2 26 60 24 st %g1, [ %i1 + 0x24 ] <== NOT EXECUTED
return 0;
}
2042854: 81 c7 e0 08 ret <== NOT EXECUTED
2042858: 81 e8 00 00 restore <== NOT EXECUTED
if (!rtems_rfs_inode_is_loaded (handle))
{
int rc;
rc = rtems_rfs_buffer_handle_request (fs,&handle->buffer,
204285c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2042860: 92 06 60 10 add %i1, 0x10, %o1 <== NOT EXECUTED
2042864: 7f ff f1 28 call 203ed04 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
2042868: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
handle->block, true);
if (rc > 0)
204286c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2042870: 14 bf ff f9 bg 2042854 <rtems_rfs_inode_load+0x24> <== NOT EXECUTED
2042874: 01 00 00 00 nop <== NOT EXECUTED
return rc;
handle->node = rtems_rfs_buffer_data (&handle->buffer);
2042878: c4 06 60 18 ld [ %i1 + 0x18 ], %g2 <== NOT EXECUTED
handle->node += handle->offset;
204287c: 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);
2042880: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
handle->node += handle->offset;
2042884: 87 28 60 06 sll %g1, 6, %g3 <== NOT EXECUTED
2042888: 83 28 60 03 sll %g1, 3, %g1 <== NOT EXECUTED
204288c: 82 20 c0 01 sub %g3, %g1, %g1 <== NOT EXECUTED
2042890: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
2042894: 10 bf ff ec b 2042844 <rtems_rfs_inode_load+0x14> <== NOT EXECUTED
2042898: c2 26 60 0c st %g1, [ %i1 + 0xc ] <== NOT EXECUTED
0204289c <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)
{
204289c: 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)
20428a0: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
20428a4: 02 80 00 28 be 2042944 <rtems_rfs_inode_open+0xa8> <== NOT EXECUTED
20428a8: a2 06 7f ff add %i1, -1, %l1 <== NOT EXECUTED
return EINVAL;
if ((ino - RTEMS_RFS_ROOT_INO) > rtems_rfs_fs_inodes (fs))
20428ac: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
20428b0: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
20428b4: 38 80 00 25 bgu,a 2042948 <rtems_rfs_inode_open+0xac> <== NOT EXECUTED
20428b8: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
return EINVAL;
handle->ino = ino;
handle->node = NULL;
handle->loads = 0;
20428bc: c0 26 a0 24 clr [ %i2 + 0x24 ] <== NOT EXECUTED
gino = ino - RTEMS_RFS_ROOT_INO;
group = gino / fs->group_inodes;
20428c0: 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;
20428c4: 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;
20428c8: 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;
20428cc: 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;
20428d0: 40 00 7a b6 call 20613a8 <.urem> <== NOT EXECUTED
20428d4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
index = (gino / fs->inodes_per_block) + RTEMS_RFS_GROUP_INODE_BLOCK;
20428d8: 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;
20428dc: 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;
20428e0: 40 00 7a b2 call 20613a8 <.urem> <== NOT EXECUTED
20428e4: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
handle->block = rtems_rfs_group_block (&fs->groups[group], index);
20428e8: 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;
20428ec: d0 26 a0 20 st %o0, [ %i2 + 0x20 ] <== NOT EXECUTED
handle->block = rtems_rfs_group_block (&fs->groups[group], index);
20428f0: 40 00 7a 02 call 20610f8 <.udiv> <== NOT EXECUTED
20428f4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
20428f8: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
20428fc: 85 2a 20 06 sll %o0, 6, %g2 <== NOT EXECUTED
2042900: 91 2a 20 04 sll %o0, 4, %o0 <== NOT EXECUTED
2042904: 90 02 00 02 add %o0, %g2, %o0 <== NOT EXECUTED
2042908: e0 00 40 08 ld [ %g1 + %o0 ], %l0 <== NOT EXECUTED
204290c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2042910: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
2042914: 40 00 79 f9 call 20610f8 <.udiv> <== NOT EXECUTED
2042918: 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;
204291c: c0 2e a0 10 clrb [ %i2 + 0x10 ] <== NOT EXECUTED
2042920: 90 04 00 08 add %l0, %o0, %o0 <== NOT EXECUTED
handle->bnum = 0;
2042924: c0 26 a0 14 clr [ %i2 + 0x14 ] <== NOT EXECUTED
2042928: d0 26 a0 1c st %o0, [ %i2 + 0x1c ] <== NOT EXECUTED
handle->buffer = NULL;
204292c: c0 26 a0 18 clr [ %i2 + 0x18 ] <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_open (fs, &handle->buffer);
if ((rc == 0) && load)
2042930: 80 8e e0 ff btst 0xff, %i3 <== NOT EXECUTED
2042934: 02 80 00 05 be 2042948 <rtems_rfs_inode_open+0xac> <== NOT EXECUTED
2042938: 82 10 20 00 clr %g1 <== NOT EXECUTED
rc = rtems_rfs_inode_load (fs, handle);
204293c: 7f ff ff bd call 2042830 <rtems_rfs_inode_load> <== NOT EXECUTED
2042940: 93 e8 00 1a restore %g0, %i2, %o1 <== NOT EXECUTED
2042944: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
return rc;
}
2042948: 81 c7 e0 08 ret <== NOT EXECUTED
204294c: 91 e8 00 01 restore %g0, %g1, %o0 <== NOT EXECUTED
0204104c <rtems_rfs_inode_overhead>:
/**
* Return the inode overhead given a number of inodes.
*/
static int
rtems_rfs_inode_overhead (rtems_rfs_file_system* fs)
{
204104c: 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,
2041050: c2 06 20 28 ld [ %i0 + 0x28 ], %g1 <== NOT EXECUTED
rtems_rfs_fs_block_size (fs));
2041054: 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,
2041058: 91 28 60 06 sll %g1, 6, %o0 <== NOT EXECUTED
204105c: 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)
2041060: 82 a2 00 01 subcc %o0, %g1, %g1 <== NOT EXECUTED
2041064: 02 80 00 0b be 2041090 <rtems_rfs_inode_overhead+0x44> <== NOT EXECUTED
2041068: 90 10 27 d0 mov 0x7d0, %o0 <== NOT EXECUTED
204106c: 90 00 7f ff add %g1, -1, %o0 <== NOT EXECUTED
2041070: 40 00 80 22 call 20610f8 <.udiv> <== NOT EXECUTED
2041074: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2041078: 90 02 20 02 add %o0, 2, %o0 <== NOT EXECUTED
204107c: 83 2a 20 02 sll %o0, 2, %g1 <== NOT EXECUTED
2041080: 85 2a 20 07 sll %o0, 7, %g2 <== NOT EXECUTED
2041084: 82 20 80 01 sub %g2, %g1, %g1 <== NOT EXECUTED
2041088: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED
204108c: 91 2a 20 03 sll %o0, 3, %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))
2041090: 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));
2041094: 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))
2041098: 92 02 7f ff add %o1, -1, %o1 <== NOT EXECUTED
204109c: 80 a2 40 10 cmp %o1, %l0 <== NOT EXECUTED
20410a0: 3a 80 00 02 bcc,a 20410a8 <rtems_rfs_inode_overhead+0x5c><== NOT EXECUTED
20410a4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
bits_per_block = rtems_rfs_fs_blocks (fs) - RTEMS_RFS_SUPERBLOCK_SIZE;
20410a8: 40 00 80 16 call 2061100 <.div> <== NOT EXECUTED
20410ac: 01 00 00 00 nop <== NOT EXECUTED
return ((blocks + 1) * 100 * 10) / bits_per_block;
}
20410b0: 81 c7 e0 08 ret <== NOT EXECUTED
20410b4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02042544 <rtems_rfs_inode_time_stamp_now>:
int
rtems_rfs_inode_time_stamp_now (rtems_rfs_inode_handle* handle,
bool atime,
bool mtime)
{
2042544: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
time_t now;
if (!rtems_rfs_inode_is_loaded (handle))
2042548: 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)
{
204254c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
time_t now;
if (!rtems_rfs_inode_is_loaded (handle))
2042550: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2042554: 02 80 00 23 be 20425e0 <rtems_rfs_inode_time_stamp_now+0x9c><== NOT EXECUTED
2042558: b0 10 20 06 mov 6, %i0 <== NOT EXECUTED
return ENXIO;
now = time (NULL);
204255c: 40 00 4a 5c call 2054ecc <time> <== NOT EXECUTED
2042560: 90 10 20 00 clr %o0 <== NOT EXECUTED
if (atime)
2042564: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED
2042568: 02 80 00 0f be 20425a4 <rtems_rfs_inode_time_stamp_now+0x60><== NOT EXECUTED
204256c: 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);
2042570: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
2042574: 85 32 20 18 srl %o0, 0x18, %g2 <== NOT EXECUTED
2042578: c4 28 60 10 stb %g2, [ %g1 + 0x10 ] <== NOT EXECUTED
204257c: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
2042580: 85 32 20 10 srl %o0, 0x10, %g2 <== NOT EXECUTED
2042584: c4 28 60 11 stb %g2, [ %g1 + 0x11 ] <== NOT EXECUTED
2042588: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
204258c: 85 32 20 08 srl %o0, 8, %g2 <== NOT EXECUTED
2042590: c4 28 60 12 stb %g2, [ %g1 + 0x12 ] <== NOT EXECUTED
2042594: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
2042598: d0 28 60 13 stb %o0, [ %g1 + 0x13 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
204259c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20425a0: c2 2c 20 10 stb %g1, [ %l0 + 0x10 ] <== NOT EXECUTED
rtems_rfs_inode_set_atime (handle, now);
if (mtime)
20425a4: 02 80 00 0f be 20425e0 <rtems_rfs_inode_time_stamp_now+0x9c><== NOT EXECUTED
20425a8: 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);
20425ac: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
20425b0: 85 32 20 18 srl %o0, 0x18, %g2 <== NOT EXECUTED
20425b4: c4 28 60 14 stb %g2, [ %g1 + 0x14 ] <== NOT EXECUTED
20425b8: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
20425bc: 85 32 20 10 srl %o0, 0x10, %g2 <== NOT EXECUTED
20425c0: c4 28 60 15 stb %g2, [ %g1 + 0x15 ] <== NOT EXECUTED
20425c4: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
20425c8: 85 32 20 08 srl %o0, 8, %g2 <== NOT EXECUTED
20425cc: c4 28 60 16 stb %g2, [ %g1 + 0x16 ] <== NOT EXECUTED
20425d0: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
20425d4: d0 28 60 17 stb %o0, [ %g1 + 0x17 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
20425d8: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20425dc: c2 2c 20 10 stb %g1, [ %l0 + 0x10 ] <== NOT EXECUTED
rtems_rfs_inode_set_mtime (handle, now);
return 0;
}
20425e0: 81 c7 e0 08 ret <== NOT EXECUTED
20425e4: 81 e8 00 00 restore <== NOT EXECUTED
02042740 <rtems_rfs_inode_unload>:
int
rtems_rfs_inode_unload (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle,
bool update_ctime)
{
2042740: 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))
2042744: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
2042748: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
204274c: 02 80 00 17 be 20427a8 <rtems_rfs_inode_unload+0x68> <== NOT EXECUTED
2042750: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
{
if (handle->loads == 0)
2042754: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED
2042758: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
204275c: 02 80 00 14 be 20427ac <rtems_rfs_inode_unload+0x6c> <== NOT EXECUTED
2042760: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
return EIO;
handle->loads--;
2042764: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
if (handle->loads == 0)
2042768: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
204276c: 12 80 00 0f bne 20427a8 <rtems_rfs_inode_unload+0x68> <== NOT EXECUTED
2042770: 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)
2042774: c2 0e 60 10 ldub [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
2042778: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
204277c: 02 80 00 06 be 2042794 <rtems_rfs_inode_unload+0x54> <== NOT EXECUTED
2042780: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2042784: 80 8e a0 ff btst 0xff, %i2 <== NOT EXECUTED
2042788: 12 80 00 0b bne 20427b4 <rtems_rfs_inode_unload+0x74> <== NOT EXECUTED
204278c: 01 00 00 00 nop <== NOT EXECUTED
rtems_rfs_inode_set_ctime (handle, time (NULL));
rc = rtems_rfs_buffer_handle_release (fs, &handle->buffer);
2042790: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2042794: 7f ff f1 13 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2042798: 92 06 60 10 add %i1, 0x10, %o1 <== NOT EXECUTED
handle->node = NULL;
204279c: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED
/*
* If the buffer is dirty it will be release. Also set the ctime.
*/
if (rtems_rfs_buffer_dirty (&handle->buffer) && update_ctime)
rtems_rfs_inode_set_ctime (handle, time (NULL));
rc = rtems_rfs_buffer_handle_release (fs, &handle->buffer);
20427a0: 81 c7 e0 08 ret <== NOT EXECUTED
20427a4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
handle->node = NULL;
20427a8: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
}
return rc;
}
20427ac: 81 c7 e0 08 ret <== NOT EXECUTED
20427b0: 81 e8 00 00 restore <== NOT EXECUTED
{
/*
* If the buffer is dirty it will be release. Also set the ctime.
*/
if (rtems_rfs_buffer_dirty (&handle->buffer) && update_ctime)
rtems_rfs_inode_set_ctime (handle, time (NULL));
20427b4: 40 00 49 c6 call 2054ecc <time> <== NOT EXECUTED
20427b8: 90 10 20 00 clr %o0 <== 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);
20427bc: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
20427c0: 85 32 20 18 srl %o0, 0x18, %g2 <== NOT EXECUTED
20427c4: c4 28 60 18 stb %g2, [ %g1 + 0x18 ] <== NOT EXECUTED
20427c8: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
20427cc: 85 32 20 10 srl %o0, 0x10, %g2 <== NOT EXECUTED
20427d0: c4 28 60 19 stb %g2, [ %g1 + 0x19 ] <== NOT EXECUTED
20427d4: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
20427d8: 85 32 20 08 srl %o0, 8, %g2 <== NOT EXECUTED
20427dc: c4 28 60 1a stb %g2, [ %g1 + 0x1a ] <== NOT EXECUTED
20427e0: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
20427e4: d0 28 60 1b stb %o0, [ %g1 + 0x1b ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
20427e8: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20427ec: 10 bf ff e9 b 2042790 <rtems_rfs_inode_unload+0x50> <== NOT EXECUTED
20427f0: c2 2e 60 10 stb %g1, [ %i1 + 0x10 ] <== NOT EXECUTED
020432c4 <rtems_rfs_link>:
const char* name,
int length,
rtems_rfs_ino parent,
rtems_rfs_ino target,
bool link_dir)
{
20432c4: 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);
20432c8: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
20432cc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
const char* name,
int length,
rtems_rfs_ino parent,
rtems_rfs_ino target,
bool link_dir)
{
20432d0: a0 10 00 18 mov %i0, %l0 <== 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);
20432d4: a2 07 bf b0 add %fp, -80, %l1 <== NOT EXECUTED
20432d8: 92 10 00 1c mov %i4, %o1 <== NOT EXECUTED
20432dc: 7f ff fd 70 call 204289c <rtems_rfs_inode_open> <== NOT EXECUTED
20432e0: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc)
20432e4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20432e8: 12 80 00 41 bne 20433ec <rtems_rfs_link+0x128> <== NOT EXECUTED
20432ec: 80 8f 60 ff btst 0xff, %i5 <== 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)))
20432f0: 12 80 00 0a bne 2043318 <rtems_rfs_link+0x54> <== NOT EXECUTED
20432f4: c2 07 bf bc ld [ %fp + -68 ], %g1 <== NOT EXECUTED
20432f8: c4 08 60 02 ldub [ %g1 + 2 ], %g2 <== NOT EXECUTED
20432fc: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
2043300: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2043304: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED
2043308: 03 00 00 10 sethi %hi(0x4000), %g1 <== NOT EXECUTED
204330c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2043310: 02 80 00 45 be 2043424 <rtems_rfs_link+0x160> <== NOT EXECUTED
2043314: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &target_inode);
return ENOTSUP;
}
rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);
2043318: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
204331c: a4 07 bf d8 add %fp, -40, %l2 <== NOT EXECUTED
2043320: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2043324: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2043328: 7f ff fd 5d call 204289c <rtems_rfs_inode_open> <== NOT EXECUTED
204332c: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc)
2043330: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2043334: 12 80 00 2b bne 20433e0 <rtems_rfs_link+0x11c> <== NOT EXECUTED
2043338: 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);
204333c: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
2043340: 98 10 00 1c mov %i4, %o4 <== NOT EXECUTED
2043344: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2043348: 7f ff f0 8b call 203f574 <rtems_rfs_dir_add_entry> <== NOT EXECUTED
204334c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
if (rc > 0)
2043350: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2043354: 14 80 00 2c bg 2043404 <rtems_rfs_link+0x140> <== NOT EXECUTED
2043358: 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);
204335c: c4 08 60 01 ldub [ %g1 + 1 ], %g2 <== NOT EXECUTED
2043360: c8 08 40 00 ldub [ %g1 ], %g4 <== NOT EXECUTED
2043364: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2043368: 88 11 00 02 or %g4, %g2, %g4 <== NOT EXECUTED
if (links == 0xffff)
204336c: 05 00 00 3f sethi %hi(0xfc00), %g2 <== NOT EXECUTED
2043370: 87 29 20 10 sll %g4, 0x10, %g3 <== NOT EXECUTED
2043374: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
2043378: 87 30 e0 10 srl %g3, 0x10, %g3 <== NOT EXECUTED
204337c: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED
2043380: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
2043384: 02 80 00 06 be 204339c <rtems_rfs_link+0xd8> <== NOT EXECUTED
2043388: 86 10 20 00 clr %g3 <== NOT EXECUTED
204338c: 88 01 20 01 inc %g4 <== NOT EXECUTED
2043390: 84 10 00 04 mov %g4, %g2 <== NOT EXECUTED
2043394: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
2043398: 87 31 20 18 srl %g4, 0x18, %g3 <== 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);
204339c: c6 28 40 00 stb %g3, [ %g1 ] <== NOT EXECUTED
20433a0: c2 07 bf bc ld [ %fp + -68 ], %g1 <== 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);
20433a4: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
20433a8: c4 28 60 01 stb %g2, [ %g1 + 1 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
20433ac: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20433b0: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
20433b4: c2 2f bf c0 stb %g1, [ %fp + -64 ] <== NOT EXECUTED
20433b8: 7f ff fc 63 call 2042544 <rtems_rfs_inode_time_stamp_now> <== NOT EXECUTED
20433bc: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
if (rc > 0)
20433c0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20433c4: 14 80 00 11 bg 2043408 <rtems_rfs_link+0x144> <== NOT EXECUTED
20433c8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &parent_inode);
rtems_rfs_inode_close (fs, &target_inode);
return rc;
}
rc = rtems_rfs_inode_close (fs, &parent_inode);
20433cc: 7f ff fd 0a call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
20433d0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc > 0)
20433d4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20433d8: 04 80 00 07 ble 20433f4 <rtems_rfs_link+0x130> <== NOT EXECUTED
20433dc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &target_inode);
20433e0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20433e4: 7f ff fd 04 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
20433e8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
20433ec: 81 c7 e0 08 ret <== NOT EXECUTED
20433f0: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = rtems_rfs_inode_close (fs, &target_inode);
20433f4: 7f ff fd 00 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
20433f8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
}
20433fc: 81 c7 e0 08 ret <== NOT EXECUTED
2043400: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
rtems_rfs_inode_set_links (&target_inode, links);
rc = rtems_rfs_inode_time_stamp_now (&parent_inode, true, true);
if (rc > 0)
{
rtems_rfs_inode_close (fs, &parent_inode);
2043404: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2043408: 7f ff fc fb call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
204340c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &target_inode);
2043410: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2043414: 7f ff fc f8 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2043418: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
204341c: 81 c7 e0 08 ret <== NOT EXECUTED
2043420: 81 e8 00 00 restore <== 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)))
{
rtems_rfs_inode_close (fs, &target_inode);
2043424: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2043428: 7f ff fc f3 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
204342c: b0 10 20 86 mov 0x86, %i0 <== NOT EXECUTED
return ENOTSUP;
2043430: 81 c7 e0 08 ret <== NOT EXECUTED
2043434: 81 e8 00 00 restore <== NOT EXECUTED
02043458 <rtems_rfs_mutex_create>:
RTEMS_NO_INHERIT_PRIORITY | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL)
#endif
int
rtems_rfs_mutex_create (rtems_rfs_mutex* mutex)
{
2043458: 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'),
204345c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2043460: 98 10 00 18 mov %i0, %o4 <== NOT EXECUTED
2043464: 94 10 20 24 mov 0x24, %o2 <== NOT EXECUTED
2043468: 96 10 20 00 clr %o3 <== NOT EXECUTED
204346c: 11 14 91 94 sethi %hi(0x52465000), %o0 <== NOT EXECUTED
2043470: 7f ff 27 b8 call 200d350 <rtems_semaphore_create> <== NOT EXECUTED
2043474: 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)
2043478: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
204347c: b0 60 20 00 subx %g0, 0, %i0 <== NOT EXECUTED
rtems_status_text (sc));
return EIO;
}
#endif
return 0;
}
2043480: b0 0e 20 05 and %i0, 5, %i0 <== NOT EXECUTED
2043484: 81 c7 e0 08 ret <== NOT EXECUTED
2043488: 81 e8 00 00 restore <== NOT EXECUTED
02043438 <rtems_rfs_mutex_destroy>:
return 0;
}
int
rtems_rfs_mutex_destroy (rtems_rfs_mutex* mutex)
{
2043438: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
#if __rtems__
rtems_status_code sc;
sc = rtems_semaphore_delete (*mutex);
204343c: 7f ff 28 39 call 200d520 <rtems_semaphore_delete> <== NOT EXECUTED
2043440: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2043444: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
2043448: b0 60 20 00 subx %g0, 0, %i0 <== NOT EXECUTED
rtems_status_text (sc));
return EIO;
}
#endif
return 0;
}
204344c: b0 0e 20 05 and %i0, 5, %i0 <== NOT EXECUTED
2043450: 81 c7 e0 08 ret <== NOT EXECUTED
2043454: 81 e8 00 00 restore <== NOT EXECUTED
0203ea10 <rtems_rfs_release_chain>:
static int
rtems_rfs_release_chain (rtems_chain_control* chain,
uint32_t* count,
bool modified)
{
203ea10: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
203ea14: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
203ea18: 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);
203ea1c: b4 0e a0 ff and %i2, 0xff, %i2 <== NOT EXECUTED
203ea20: b0 10 20 00 clr %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))
203ea24: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
203ea28: 80 a0 40 11 cmp %g1, %l1 <== NOT EXECUTED
203ea2c: 02 80 00 14 be 203ea7c <rtems_rfs_release_chain+0x6c> <== NOT EXECUTED
203ea30: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
203ea34: 7f ff 3e 4f call 200e370 <_Chain_Get> <== NOT EXECUTED
203ea38: 01 00 00 00 nop <== NOT EXECUTED
{
buffer = (rtems_rfs_buffer*) rtems_chain_get (chain);
(*count)--;
203ea3c: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
buffer->user = (void*) 0;
203ea40: 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)--;
203ea44: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
buffer->user = (void*) 0;
rc = rtems_rfs_buffer_io_release (buffer, modified);
203ea48: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
203ea4c: 40 00 26 af call 2048508 <rtems_rfs_buffer_bdbuf_release> <== NOT EXECUTED
203ea50: c2 26 40 00 st %g1, [ %i1 ] <== NOT EXECUTED
if ((rc > 0) && (rrc == 0))
203ea54: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203ea58: 04 bf ff f4 ble 203ea28 <rtems_rfs_release_chain+0x18> <== NOT EXECUTED
203ea5c: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
203ea60: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
203ea64: 12 bf ff f1 bne 203ea28 <rtems_rfs_release_chain+0x18> <== NOT EXECUTED
203ea68: 01 00 00 00 nop <== NOT EXECUTED
203ea6c: 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))
203ea70: 80 a0 40 11 cmp %g1, %l1 <== NOT EXECUTED
203ea74: 12 bf ff f0 bne 203ea34 <rtems_rfs_release_chain+0x24> <== NOT EXECUTED
203ea78: 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;
}
203ea7c: 81 c7 e0 08 ret <== NOT EXECUTED
203ea80: 81 e8 00 00 restore <== NOT EXECUTED
020255b8 <rtems_rfs_rtems_chown>:
static int
rtems_rfs_rtems_chown (rtems_filesystem_location_info_t *pathloc,
uid_t owner,
gid_t group)
{
20255b8: 9d e3 bf 78 save %sp, -136, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
20255bc: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
20255c0: 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);
20255c4: 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);
20255c8: 92 10 20 00 clr %o1 <== NOT EXECUTED
20255cc: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
20255d0: 94 10 20 00 clr %o2 <== NOT EXECUTED
20255d4: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
20255d8: 7f ff a0 18 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
20255dc: a2 07 bf d8 add %fp, -40, %l1 <== 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);
20255e0: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
20255e4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20255e8: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
20255ec: 40 00 74 ac call 204289c <rtems_rfs_inode_open> <== NOT EXECUTED
20255f0: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
20255f4: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
20255f8: 04 80 00 0d ble 202562c <rtems_rfs_rtems_chown+0x74> <== NOT EXECUTED
20255fc: 82 10 00 19 mov %i1, %g1 <== 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);
2025600: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2025604: 40 00 65 20 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2025608: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
202560c: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
2025610: 7f ff a0 51 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2025614: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("chown: opening inode", rc);
2025618: 40 00 8d 8b call 2048c44 <__errno> <== NOT EXECUTED
202561c: 01 00 00 00 nop <== NOT EXECUTED
2025620: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
2025624: 81 c7 e0 08 ret <== NOT EXECUTED
2025628: 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);
202562c: c4 07 bf e4 ld [ %fp + -28 ], %g2 <== NOT EXECUTED
2025630: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED
2025634: b3 2e 60 10 sll %i1, 0x10, %i1 <== NOT EXECUTED
2025638: b3 36 60 10 srl %i1, 0x10, %i1 <== NOT EXECUTED
202563c: b4 16 80 19 or %i2, %i1, %i2 <== NOT EXECUTED
2025640: 87 36 a0 18 srl %i2, 0x18, %g3 <== NOT EXECUTED
2025644: c6 28 a0 04 stb %g3, [ %g2 + 4 ] <== NOT EXECUTED
2025648: c4 07 bf e4 ld [ %fp + -28 ], %g2 <== NOT EXECUTED
202564c: 87 36 a0 10 srl %i2, 0x10, %g3 <== NOT EXECUTED
2025650: c6 28 a0 05 stb %g3, [ %g2 + 5 ] <== NOT EXECUTED
2025654: c4 07 bf e4 ld [ %fp + -28 ], %g2 <== NOT EXECUTED
2025658: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED
202565c: f4 28 a0 06 stb %i2, [ %g2 + 6 ] <== NOT EXECUTED
2025660: c4 07 bf e4 ld [ %fp + -28 ], %g2 <== NOT EXECUTED
}
#endif
rtems_rfs_inode_set_uid_gid (&inode, owner, group);
rc = rtems_rfs_inode_close (fs, &inode);
2025664: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2025668: c2 28 a0 07 stb %g1, [ %g2 + 7 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
202566c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2025670: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2025674: 40 00 74 60 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2025678: c2 2f bf e8 stb %g1, [ %fp + -24 ] <== NOT EXECUTED
if (rc)
202567c: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2025680: 22 80 00 0d be,a 20256b4 <rtems_rfs_rtems_chown+0xfc> <== NOT EXECUTED
2025684: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== 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);
2025688: e4 04 20 7c ld [ %l0 + 0x7c ], %l2 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
202568c: 40 00 64 fe call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2025690: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2025694: d0 04 80 00 ld [ %l2 ], %o0 <== NOT EXECUTED
2025698: 7f ff a0 2f call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
202569c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("chown: closing inode", rc);
20256a0: 40 00 8d 69 call 2048c44 <__errno> <== NOT EXECUTED
20256a4: 01 00 00 00 nop <== NOT EXECUTED
20256a8: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
20256ac: 81 c7 e0 08 ret <== NOT EXECUTED
20256b0: 81 e8 00 00 restore <== NOT EXECUTED
20256b4: 40 00 64 f4 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
20256b8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20256bc: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
20256c0: 7f ff a0 25 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
20256c4: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return 0;
}
20256c8: 81 c7 e0 08 ret <== NOT EXECUTED
20256cc: 81 e8 00 00 restore <== NOT EXECUTED
0204359c <rtems_rfs_rtems_device_close>:
* @return int
*/
static int
rtems_rfs_rtems_device_close (rtems_libio_t* iop)
{
204359c: 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;
20435a0: d0 06 20 34 ld [ %i0 + 0x34 ], %o0 <== NOT EXECUTED
minor = (intptr_t) iop->data1;
20435a4: d2 06 20 38 ld [ %i0 + 0x38 ], %o1 <== NOT EXECUTED
args.iop = iop;
20435a8: f0 27 bf f4 st %i0, [ %fp + -12 ] <== NOT EXECUTED
args.flags = 0;
20435ac: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
args.mode = 0;
20435b0: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
status = rtems_io_close (major, minor, (void *) &args);
20435b4: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED
20435b8: 40 00 09 55 call 2045b0c <rtems_io_close> <== NOT EXECUTED
20435bc: b0 10 20 00 clr %i0 <== NOT EXECUTED
if (status)
20435c0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20435c4: 12 80 00 04 bne 20435d4 <rtems_rfs_rtems_device_close+0x38><== NOT EXECUTED
20435c8: 01 00 00 00 nop <== NOT EXECUTED
return rtems_deviceio_errno (status);
return 0;
}
20435cc: 81 c7 e0 08 ret <== NOT EXECUTED
20435d0: 81 e8 00 00 restore <== NOT EXECUTED
args.flags = 0;
args.mode = 0;
status = rtems_io_close (major, minor, (void *) &args);
if (status)
return rtems_deviceio_errno (status);
20435d4: 40 00 02 ca call 20440fc <rtems_deviceio_errno> <== NOT EXECUTED
20435d8: 01 00 00 00 nop <== NOT EXECUTED
return 0;
}
20435dc: 81 c7 e0 08 ret <== NOT EXECUTED
20435e0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02043498 <rtems_rfs_rtems_device_ftruncate>:
static int
rtems_rfs_rtems_device_ftruncate (rtems_libio_t* iop, rtems_off64_t length)
{
return 0;
}
2043498: 81 c3 e0 08 retl <== NOT EXECUTED
204349c: 90 10 20 00 clr %o0 <== NOT EXECUTED
020434a0 <rtems_rfs_rtems_device_ioctl>:
static int
rtems_rfs_rtems_device_ioctl (rtems_libio_t* iop,
uint32_t command,
void* buffer)
{
20434a0: 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;
20434a4: 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;
20434a8: d0 06 20 34 ld [ %i0 + 0x34 ], %o0 <== NOT EXECUTED
minor = (intptr_t) iop->data1;
args.iop = iop;
args.command = command;
args.buffer = buffer;
20434ac: 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;
20434b0: f0 3f bf f0 std %i0, [ %fp + -16 ] <== NOT EXECUTED
args.buffer = buffer;
status = rtems_io_control (major, minor, (void *) &args);
20434b4: 40 00 09 ae call 2045b6c <rtems_io_control> <== NOT EXECUTED
20434b8: 94 07 bf f0 add %fp, -16, %o2 <== NOT EXECUTED
if (status)
20434bc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20434c0: 12 80 00 05 bne 20434d4 <rtems_rfs_rtems_device_ioctl+0x34><== NOT EXECUTED
20434c4: 01 00 00 00 nop <== NOT EXECUTED
return rtems_deviceio_errno (status);
return args.ioctl_return;
20434c8: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED
}
20434cc: 81 c7 e0 08 ret <== NOT EXECUTED
20434d0: 81 e8 00 00 restore <== NOT EXECUTED
args.command = command;
args.buffer = buffer;
status = rtems_io_control (major, minor, (void *) &args);
if (status)
return rtems_deviceio_errno (status);
20434d4: 40 00 03 0a call 20440fc <rtems_deviceio_errno> <== NOT EXECUTED
20434d8: 01 00 00 00 nop <== NOT EXECUTED
20434dc: 81 c7 e0 08 ret <== NOT EXECUTED
20434e0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0204348c <rtems_rfs_rtems_device_lseek>:
rtems_rfs_rtems_device_lseek (rtems_libio_t* iop,
rtems_off64_t offset,
int whence)
{
return offset;
}
204348c: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED
2043490: 81 c3 e0 08 retl <== NOT EXECUTED
2043494: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED
020435e4 <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)
{
20435e4: 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);
20435e8: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_iop_ino (iop);
20435ec: 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);
20435f0: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
20435f4: 92 10 20 00 clr %o1 <== NOT EXECUTED
20435f8: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
20435fc: 94 10 20 00 clr %o2 <== NOT EXECUTED
2043600: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
2043604: 7f ff 28 0d call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
2043608: 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);
204360c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2043610: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2043614: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2043618: 7f ff fc a1 call 204289c <rtems_rfs_inode_open> <== NOT EXECUTED
204361c: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
2043620: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2043624: 04 80 00 0d ble 2043658 <rtems_rfs_rtems_device_open+0x74><== NOT EXECUTED
2043628: c2 07 bf d8 ld [ %fp + -40 ], %g1 <== 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);
204362c: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2043630: 7f ff ed 15 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2043634: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
2043638: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
204363c: 7f ff 28 46 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2043640: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("device_open: opening inode", rc);
2043644: 40 00 15 80 call 2048c44 <__errno> <== NOT EXECUTED
2043648: 01 00 00 00 nop <== NOT EXECUTED
204364c: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
2043650: 81 c7 e0 08 ret <== NOT EXECUTED
2043654: 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);
2043658: 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]);
204365c: ee 08 60 1c ldub [ %g1 + 0x1c ], %l7 <== NOT EXECUTED
2043660: 82 00 60 1c add %g1, 0x1c, %g1 <== NOT EXECUTED
2043664: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2043668: e4 08 60 07 ldub [ %g1 + 7 ], %l2 <== NOT EXECUTED
204366c: ec 08 60 01 ldub [ %g1 + 1 ], %l6 <== NOT EXECUTED
2043670: ea 08 60 02 ldub [ %g1 + 2 ], %l5 <== NOT EXECUTED
2043674: fa 08 60 03 ldub [ %g1 + 3 ], %i5 <== NOT EXECUTED
2043678: e8 08 60 04 ldub [ %g1 + 4 ], %l4 <== NOT EXECUTED
204367c: e6 08 60 05 ldub [ %g1 + 5 ], %l3 <== NOT EXECUTED
2043680: 7f ff fc 5d call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2043684: e2 08 60 06 ldub [ %g1 + 6 ], %l1 <== NOT EXECUTED
if (rc > 0)
2043688: b8 92 20 00 orcc %o0, 0, %i4 <== NOT EXECUTED
204368c: 24 80 00 0d ble,a 20436c0 <rtems_rfs_rtems_device_open+0xdc><== NOT EXECUTED
2043690: f8 04 20 7c ld [ %l0 + 0x7c ], %i4 <== 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);
2043694: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2043698: 7f ff ec fb call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
204369c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20436a0: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
20436a4: 7f ff 28 2c call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
20436a8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("device_open: closing inode", rc);
20436ac: 40 00 15 66 call 2048c44 <__errno> <== NOT EXECUTED
20436b0: 01 00 00 00 nop <== NOT EXECUTED
20436b4: f8 22 00 00 st %i4, [ %o0 ] <== NOT EXECUTED
20436b8: 81 c7 e0 08 ret <== NOT EXECUTED
20436bc: 81 e8 00 00 restore <== NOT EXECUTED
20436c0: 7f ff ec f1 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
20436c4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20436c8: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
20436cc: 7f ff 28 22 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
20436d0: ba 0f 60 ff and %i5, 0xff, %i5 <== NOT EXECUTED
iop->data0 = major;
iop->data1 = (void*)((intptr_t) minor);
args.iop = iop;
args.flags = iop->flags;
20436d4: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 <== NOT EXECUTED
args.mode = mode;
20436d8: 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;
20436dc: 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;
20436e0: f0 27 bf f4 st %i0, [ %fp + -12 ] <== NOT EXECUTED
20436e4: af 2d e0 18 sll %l7, 0x18, %l7 <== NOT EXECUTED
20436e8: ac 0d a0 ff and %l6, 0xff, %l6 <== NOT EXECUTED
20436ec: ae 17 40 17 or %i5, %l7, %l7 <== NOT EXECUTED
20436f0: aa 0d 60 ff and %l5, 0xff, %l5 <== NOT EXECUTED
20436f4: ad 2d a0 10 sll %l6, 0x10, %l6 <== NOT EXECUTED
20436f8: ab 2d 60 08 sll %l5, 8, %l5 <== NOT EXECUTED
20436fc: ac 15 c0 16 or %l7, %l6, %l6 <== NOT EXECUTED
2043700: a9 2d 20 18 sll %l4, 0x18, %l4 <== NOT EXECUTED
2043704: aa 15 80 15 or %l6, %l5, %l5 <== NOT EXECUTED
2043708: 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;
204370c: ea 26 20 34 st %l5, [ %i0 + 0x34 ] <== NOT EXECUTED
2043710: a4 0c a0 ff and %l2, 0xff, %l2 <== NOT EXECUTED
2043714: a7 2c e0 10 sll %l3, 0x10, %l3 <== NOT EXECUTED
2043718: a2 0c 60 ff and %l1, 0xff, %l1 <== NOT EXECUTED
204371c: a8 15 00 13 or %l4, %l3, %l4 <== NOT EXECUTED
2043720: a3 2c 60 08 sll %l1, 8, %l1 <== NOT EXECUTED
2043724: 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);
2043728: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
204372c: a2 14 80 11 or %l2, %l1, %l1 <== NOT EXECUTED
2043730: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
iop->data0 = major;
iop->data1 = (void*)((intptr_t) minor);
2043734: 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);
2043738: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
204373c: 40 00 09 24 call 2045bcc <rtems_io_open> <== NOT EXECUTED
2043740: b0 10 20 00 clr %i0 <== NOT EXECUTED
if (status)
2043744: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2043748: 12 80 00 04 bne 2043758 <rtems_rfs_rtems_device_open+0x174><== NOT EXECUTED
204374c: 01 00 00 00 nop <== NOT EXECUTED
return rtems_deviceio_errno(status);
return 0;
}
2043750: 81 c7 e0 08 ret <== NOT EXECUTED
2043754: 81 e8 00 00 restore <== NOT EXECUTED
args.flags = iop->flags;
args.mode = mode;
status = rtems_io_open (major, minor, (void *) &args);
if (status)
return rtems_deviceio_errno(status);
2043758: 40 00 02 69 call 20440fc <rtems_deviceio_errno> <== NOT EXECUTED
204375c: 01 00 00 00 nop <== NOT EXECUTED
return 0;
}
2043760: 81 c7 e0 08 ret <== NOT EXECUTED
2043764: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02043540 <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)
{
2043540: 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;
2043544: 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;
2043548: d0 06 20 34 ld [ %i0 + 0x34 ], %o0 <== NOT EXECUTED
minor = (intptr_t) iop->data1;
args.iop = iop;
args.offset = iop->offset;
204354c: 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;
2043550: d2 06 20 38 ld [ %i0 + 0x38 ], %o1 <== NOT EXECUTED
args.iop = iop;
args.offset = iop->offset;
args.buffer = buffer;
2043554: 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;
2043558: c4 3f bf e8 std %g2, [ %fp + -24 ] <== NOT EXECUTED
args.buffer = buffer;
args.count = count;
204355c: f4 27 bf f4 st %i2, [ %fp + -12 ] <== NOT EXECUTED
args.flags = iop->flags;
2043560: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED
int minor;
major = (int) iop->data0;
minor = (intptr_t) iop->data1;
args.iop = iop;
2043564: 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;
2043568: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
status = rtems_io_read (major, minor, (void *) &args);
204356c: 40 00 09 b0 call 2045c2c <rtems_io_read> <== NOT EXECUTED
2043570: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED
if (status)
2043574: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2043578: 12 80 00 05 bne 204358c <rtems_rfs_rtems_device_read+0x4c><== NOT EXECUTED
204357c: 01 00 00 00 nop <== NOT EXECUTED
return rtems_deviceio_errno (status);
return (ssize_t) args.bytes_moved;
2043580: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED
}
2043584: 81 c7 e0 08 ret <== NOT EXECUTED
2043588: 81 e8 00 00 restore <== NOT EXECUTED
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_read (major, minor, (void *) &args);
if (status)
return rtems_deviceio_errno (status);
204358c: 40 00 02 dc call 20440fc <rtems_deviceio_errno> <== NOT EXECUTED
2043590: 01 00 00 00 nop <== NOT EXECUTED
2043594: 81 c7 e0 08 ret <== NOT EXECUTED
2043598: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
020434e4 <rtems_rfs_rtems_device_write>:
static ssize_t
rtems_rfs_rtems_device_write (rtems_libio_t* iop,
const void* buffer,
size_t count)
{
20434e4: 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;
20434e8: 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;
20434ec: d0 06 20 34 ld [ %i0 + 0x34 ], %o0 <== NOT EXECUTED
minor = (intptr_t) iop->data1;
args.iop = iop;
args.offset = iop->offset;
20434f0: 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;
20434f4: d2 06 20 38 ld [ %i0 + 0x38 ], %o1 <== NOT EXECUTED
args.iop = iop;
args.offset = iop->offset;
args.buffer = (void *) buffer;
20434f8: 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;
20434fc: c4 3f bf e8 std %g2, [ %fp + -24 ] <== NOT EXECUTED
args.buffer = (void *) buffer;
args.count = count;
2043500: f4 27 bf f4 st %i2, [ %fp + -12 ] <== NOT EXECUTED
args.flags = iop->flags;
2043504: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED
int minor;
major = (int) iop->data0;
minor = (intptr_t) iop->data1;
args.iop = iop;
2043508: 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;
204350c: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
status = rtems_io_write (major, minor, (void *) &args);
2043510: 40 00 09 df call 2045c8c <rtems_io_write> <== NOT EXECUTED
2043514: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED
if (status)
2043518: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
204351c: 12 80 00 05 bne 2043530 <rtems_rfs_rtems_device_write+0x4c><== NOT EXECUTED
2043520: 01 00 00 00 nop <== NOT EXECUTED
return rtems_deviceio_errno (status);
return (ssize_t) args.bytes_moved;
2043524: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED
}
2043528: 81 c7 e0 08 ret <== NOT EXECUTED
204352c: 81 e8 00 00 restore <== NOT EXECUTED
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_write (major, minor, (void *) &args);
if (status)
return rtems_deviceio_errno (status);
2043530: 40 00 02 f3 call 20440fc <rtems_deviceio_errno> <== NOT EXECUTED
2043534: 01 00 00 00 nop <== NOT EXECUTED
2043538: 81 c7 e0 08 ret <== NOT EXECUTED
204353c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02043768 <rtems_rfs_rtems_dir_close>:
{
/*
* The RFS does not hold any resources. Nothing to do.
*/
return 0;
}
2043768: 81 c3 e0 08 retl <== NOT EXECUTED
204376c: 90 10 20 00 clr %o0 <== NOT EXECUTED
02043770 <rtems_rfs_rtems_dir_lseek>:
*/
static rtems_off64_t
rtems_rfs_rtems_dir_lseek (rtems_libio_t* iop,
rtems_off64_t offset,
int whence)
{
2043770: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
switch (whence)
2043774: 84 10 20 00 clr %g2 <== NOT EXECUTED
2043778: 80 a6 e0 01 cmp %i3, 1 <== NOT EXECUTED
204377c: 08 80 00 09 bleu 20437a0 <rtems_rfs_rtems_dir_lseek+0x30> <== NOT EXECUTED
2043780: 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);
2043784: 40 00 15 30 call 2048c44 <__errno> <== NOT EXECUTED
2043788: 01 00 00 00 nop <== NOT EXECUTED
204378c: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
2043790: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED
2043794: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2043798: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
204379c: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED
break;
}
return 0;
}
20437a0: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED
20437a4: 81 c7 e0 08 ret <== NOT EXECUTED
20437a8: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
020439b0 <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)
{
20439b0: 9d e3 bf 78 save %sp, -136, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
20439b4: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_iop_ino (iop);
20439b8: 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);
20439bc: 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);
20439c0: 92 10 20 00 clr %o1 <== NOT EXECUTED
20439c4: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
20439c8: 94 10 20 00 clr %o2 <== NOT EXECUTED
20439cc: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
20439d0: 7f ff 27 1a call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
20439d4: 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);
20439d8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
20439dc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20439e0: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
20439e4: 7f ff fb ae call 204289c <rtems_rfs_inode_open> <== NOT EXECUTED
20439e8: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc)
20439ec: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
20439f0: 12 80 00 16 bne 2043a48 <rtems_rfs_rtems_dir_open+0x98> <== NOT EXECUTED
20439f4: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("dir_open: opening inode", rc);
}
if (!RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)))
20439f8: c4 08 60 02 ldub [ %g1 + 2 ], %g2 <== NOT EXECUTED
20439fc: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
2043a00: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2043a04: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED
2043a08: 03 00 00 10 sethi %hi(0x4000), %g1 <== NOT EXECUTED
2043a0c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2043a10: 12 80 00 19 bne 2043a74 <rtems_rfs_rtems_dir_open+0xc4> <== NOT EXECUTED
2043a14: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("dir_open: not dir", ENOTDIR);
}
iop->offset = 0;
2043a18: c0 26 20 10 clr [ %i0 + 0x10 ] <== NOT EXECUTED
2043a1c: c0 26 20 14 clr [ %i0 + 0x14 ] <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
2043a20: 7f ff fb 75 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2043a24: 90 10 00 10 mov %l0, %o0 <== 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);
2043a28: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2043a2c: 7f ff ec 16 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2043a30: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
2043a34: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
2043a38: 7f ff 27 47 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2043a3c: b0 10 20 00 clr %i0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
return 0;
}
2043a40: 81 c7 e0 08 ret <== NOT EXECUTED
2043a44: 81 e8 00 00 restore <== 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);
2043a48: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2043a4c: 7f ff ec 0e call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2043a50: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2043a54: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
2043a58: 7f ff 27 3f call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2043a5c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
if (rc)
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("dir_open: opening inode", rc);
2043a60: 40 00 14 79 call 2048c44 <__errno> <== NOT EXECUTED
2043a64: 01 00 00 00 nop <== NOT EXECUTED
2043a68: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
2043a6c: 81 c7 e0 08 ret <== NOT EXECUTED
2043a70: 81 e8 00 00 restore <== NOT EXECUTED
}
if (!RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)))
{
rtems_rfs_inode_close (fs, &inode);
2043a74: 7f ff fb 60 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2043a78: 90 10 00 10 mov %l0, %o0 <== 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);
2043a7c: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2043a80: 7f ff ec 01 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2043a84: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2043a88: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
2043a8c: 7f ff 27 32 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2043a90: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("dir_open: not dir", ENOTDIR);
2043a94: 40 00 14 6c call 2048c44 <__errno> <== NOT EXECUTED
2043a98: 01 00 00 00 nop <== NOT EXECUTED
2043a9c: 82 10 20 14 mov 0x14, %g1 ! 14 <PROM_START+0x14> <== NOT EXECUTED
2043aa0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2043aa4: 81 c7 e0 08 ret <== NOT EXECUTED
2043aa8: 81 e8 00 00 restore <== NOT EXECUTED
02043864 <rtems_rfs_rtems_dir_read>:
*/
static ssize_t
rtems_rfs_rtems_dir_read (rtems_libio_t* iop,
void* buffer,
size_t count)
{
2043864: 9d e3 bf 70 save %sp, -144, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
2043868: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_iop_ino (iop);
204386c: e6 06 20 3c ld [ %i0 + 0x3c ], %l3 <== 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);
2043870: e2 00 60 34 ld [ %g1 + 0x34 ], %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);
2043874: 92 10 20 00 clr %o1 <== NOT EXECUTED
2043878: c2 04 60 7c ld [ %l1 + 0x7c ], %g1 <== NOT EXECUTED
204387c: 94 10 20 00 clr %o2 <== NOT EXECUTED
2043880: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
2043884: 7f ff 27 6d call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
2043888: a4 07 bf d4 add %fp, -44, %l2 <== NOT EXECUTED
count = count / sizeof (struct dirent);
dirent = buffer;
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
204388c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2043890: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2043894: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2043898: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
204389c: 7f ff fc 00 call 204289c <rtems_rfs_inode_open> <== NOT EXECUTED
20438a0: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
if (rc)
20438a4: a6 92 20 00 orcc %o0, 0, %l3 <== NOT EXECUTED
20438a8: 12 80 00 2a bne 2043950 <rtems_rfs_rtems_dir_read+0xec> <== NOT EXECUTED
20438ac: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
struct dirent* dirent;
ssize_t bytes_transferred;
int d;
int rc;
count = count / sizeof (struct dirent);
20438b0: 92 10 21 18 mov 0x118, %o1 <== NOT EXECUTED
20438b4: 40 00 76 11 call 20610f8 <.udiv> <== NOT EXECUTED
20438b8: b0 10 20 00 clr %i0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_read: read inode", rc);
}
bytes_transferred = 0;
for (d = 0; d < count; d++, dirent++)
20438bc: a8 92 20 00 orcc %o0, 0, %l4 <== NOT EXECUTED
20438c0: 02 80 00 1b be 204392c <rtems_rfs_rtems_dir_read+0xc8> <== NOT EXECUTED
20438c4: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
if (rc)
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("dir_read: read inode", rc);
20438c8: d4 1c 20 10 ldd [ %l0 + 0x10 ], %o2 <== NOT EXECUTED
20438cc: a6 10 20 00 clr %l3 <== NOT EXECUTED
20438d0: b0 10 20 00 clr %i0 <== NOT EXECUTED
20438d4: 10 80 00 0d b 2043908 <rtems_rfs_rtems_dir_read+0xa4> <== NOT EXECUTED
20438d8: aa 07 bf fc add %fp, -4, %l5 <== NOT EXECUTED
if (rc == ENOENT)
{
rc = 0;
break;
}
if (rc > 0)
20438dc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20438e0: 14 80 00 27 bg 204397c <rtems_rfs_rtems_dir_read+0x118> <== NOT EXECUTED
20438e4: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
{
bytes_transferred = rtems_rfs_rtems_error ("dir_read: dir read", rc);
break;
}
iop->offset += size;
20438e8: c4 1c 20 10 ldd [ %l0 + 0x10 ], %g2 <== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_read: read inode", rc);
}
bytes_transferred = 0;
for (d = 0; d < count; d++, dirent++)
20438ec: a6 04 e0 01 inc %l3 <== NOT EXECUTED
if (rc > 0)
{
bytes_transferred = rtems_rfs_rtems_error ("dir_read: dir read", rc);
break;
}
iop->offset += size;
20438f0: 96 80 c0 0a addcc %g3, %o2, %o3 <== NOT EXECUTED
20438f4: 94 40 a0 00 addx %g2, 0, %o2 <== NOT EXECUTED
20438f8: d4 3c 20 10 std %o2, [ %l0 + 0x10 ] <== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_read: read inode", rc);
}
bytes_transferred = 0;
for (d = 0; d < count; d++, dirent++)
20438fc: 80 a5 00 13 cmp %l4, %l3 <== NOT EXECUTED
2043900: 08 80 00 0a bleu 2043928 <rtems_rfs_rtems_dir_read+0xc4> <== NOT EXECUTED
2043904: b0 06 21 18 add %i0, 0x118, %i0 <== NOT EXECUTED
{
size_t size;
rc = rtems_rfs_dir_read (fs, &inode, iop->offset, dirent, &size);
2043908: 98 06 40 18 add %i1, %i0, %o4 <== NOT EXECUTED
204390c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2043910: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2043914: 7f ff ed 95 call 203ef68 <rtems_rfs_dir_read> <== NOT EXECUTED
2043918: 9a 10 00 15 mov %l5, %o5 <== NOT EXECUTED
if (rc == ENOENT)
204391c: 80 a2 20 02 cmp %o0, 2 <== NOT EXECUTED
2043920: 12 bf ff ef bne 20438dc <rtems_rfs_rtems_dir_read+0x78> <== NOT EXECUTED
2043924: ac 10 00 08 mov %o0, %l6 <== NOT EXECUTED
}
iop->offset += size;
bytes_transferred += sizeof (struct dirent);
}
rtems_rfs_inode_close (fs, &inode);
2043928: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
204392c: 7f ff fb b2 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2043930: 90 10 00 11 mov %l1, %o0 <== 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);
2043934: e0 04 60 7c ld [ %l1 + 0x7c ], %l0 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2043938: 7f ff ec 53 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
204393c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
2043940: 7f ff 27 85 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2043944: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
return bytes_transferred;
}
2043948: 81 c7 e0 08 ret <== NOT EXECUTED
204394c: 81 e8 00 00 restore <== 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);
2043950: e0 04 60 7c ld [ %l1 + 0x7c ], %l0 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2043954: 7f ff ec 4c call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2043958: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
204395c: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED
2043960: 7f ff 27 7d call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2043964: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
if (rc)
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("dir_read: read inode", rc);
2043968: 40 00 14 b7 call 2048c44 <__errno> <== NOT EXECUTED
204396c: 01 00 00 00 nop <== NOT EXECUTED
2043970: e6 22 00 00 st %l3, [ %o0 ] <== NOT EXECUTED
2043974: 81 c7 e0 08 ret <== NOT EXECUTED
2043978: 81 e8 00 00 restore <== NOT EXECUTED
rc = 0;
break;
}
if (rc > 0)
{
bytes_transferred = rtems_rfs_rtems_error ("dir_read: dir read", rc);
204397c: 40 00 14 b2 call 2048c44 <__errno> <== NOT EXECUTED
2043980: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
}
iop->offset += size;
bytes_transferred += sizeof (struct dirent);
}
rtems_rfs_inode_close (fs, &inode);
2043984: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
rc = 0;
break;
}
if (rc > 0)
{
bytes_transferred = rtems_rfs_rtems_error ("dir_read: dir read", rc);
2043988: ec 22 00 00 st %l6, [ %o0 ] <== NOT EXECUTED
}
iop->offset += size;
bytes_transferred += sizeof (struct dirent);
}
rtems_rfs_inode_close (fs, &inode);
204398c: 7f ff fb 9a call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2043990: 90 10 00 11 mov %l1, %o0 <== 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);
2043994: e0 04 60 7c ld [ %l1 + 0x7c ], %l0 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2043998: 7f ff ec 3b call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
204399c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
20439a0: 7f ff 27 6d call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
20439a4: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
return bytes_transferred;
}
20439a8: 81 c7 e0 08 ret <== NOT EXECUTED
20439ac: 81 e8 00 00 restore <== NOT EXECUTED
020437ac <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)
{
20437ac: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
20437b0: 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);
20437b4: 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);
20437b8: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_pathloc);
20437bc: 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)
20437c0: 80 a4 60 01 cmp %l1, 1 <== NOT EXECUTED
20437c4: 02 80 00 22 be 204384c <rtems_rfs_rtems_dir_rmnod+0xa0> <== NOT EXECUTED
20437c8: e4 06 60 04 ld [ %i1 + 4 ], %l2 <== 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);
20437cc: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
20437d0: 92 10 20 00 clr %o1 <== NOT EXECUTED
20437d4: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
20437d8: 7f ff 27 98 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
20437dc: 94 10 20 00 clr %o2 <== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_rmnod: root inode", EBUSY);
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_unlink (fs, parent, ino, doff, rtems_rfs_unlink_dir_if_empty);
20437e0: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
20437e4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20437e8: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
20437ec: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
20437f0: 7f ff fe 2e call 20430a8 <rtems_rfs_unlink> <== NOT EXECUTED
20437f4: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED
if (rc)
20437f8: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
20437fc: 22 80 00 0d be,a 2043830 <rtems_rfs_rtems_dir_rmnod+0x84><== NOT EXECUTED
2043800: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== 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);
2043804: e4 04 20 7c ld [ %l0 + 0x7c ], %l2 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2043808: 7f ff ec 9f call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
204380c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
2043810: d0 04 80 00 ld [ %l2 ], %o0 <== NOT EXECUTED
2043814: 7f ff 27 d0 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2043818: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("dir_rmnod: unlinking", rc);
204381c: 40 00 15 0a call 2048c44 <__errno> <== NOT EXECUTED
2043820: 01 00 00 00 nop <== NOT EXECUTED
2043824: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2043828: 81 c7 e0 08 ret <== NOT EXECUTED
204382c: 81 e8 00 00 restore <== NOT EXECUTED
2043830: 7f ff ec 95 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2043834: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2043838: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
204383c: 7f ff 27 c6 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2043840: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return 0;
}
2043844: 81 c7 e0 08 ret <== NOT EXECUTED
2043848: 81 e8 00 00 restore <== 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)
return rtems_rfs_rtems_error ("dir_rmnod: root inode", EBUSY);
204384c: 40 00 14 fe call 2048c44 <__errno> <== NOT EXECUTED
2043850: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2043854: 82 10 20 10 mov 0x10, %g1 <== NOT EXECUTED
2043858: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
204385c: 81 c7 e0 08 ret <== NOT EXECUTED
2043860: 81 e8 00 00 restore <== NOT EXECUTED
02024df8 <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)
{
2024df8: 9d e3 bf 68 save %sp, -152, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2024dfc: 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);
2024e00: 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);
2024e04: 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);
2024e08: c4 27 bf fc st %g2, [ %fp + -4 ] <== NOT EXECUTED
rtems_rfs_ino node_ino;
uint32_t doff = 0;
2024e0c: 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);
2024e10: 40 00 ab 35 call 204fae4 <strlen> <== NOT EXECUTED
2024e14: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2024e18: 90 06 00 08 add %i0, %o0, %o0 <== NOT EXECUTED
2024e1c: d0 26 80 00 st %o0, [ %i2 ] <== NOT EXECUTED
while (*name != path)
2024e20: 80 a6 00 08 cmp %i0, %o0 <== NOT EXECUTED
2024e24: 02 80 00 0b be 2024e50 <rtems_rfs_rtems_eval_for_make+0x58><== NOT EXECUTED
2024e28: 82 02 3f ff add %o0, -1, %g1 <== NOT EXECUTED
{
(*name)--;
2024e2c: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
if (rtems_filesystem_is_separator (**name))
2024e30: 7f ff 95 d1 call 200a574 <rtems_filesystem_is_separator> <== NOT EXECUTED
2024e34: d0 4a 3f ff ldsb [ %o0 + -1 ], %o0 <== NOT EXECUTED
2024e38: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024e3c: 22 bf ff f9 be,a 2024e20 <rtems_rfs_rtems_eval_for_make+0x28><== NOT EXECUTED
2024e40: d0 06 80 00 ld [ %i2 ], %o0 <== NOT EXECUTED
{
(*name)++;
2024e44: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
2024e48: 82 00 60 01 inc %g1 <== NOT EXECUTED
2024e4c: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
}
/*
* Eat any separators at start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, strlen(path));
2024e50: 40 00 ab 25 call 204fae4 <strlen> <== NOT EXECUTED
2024e54: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2024e58: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
2024e5c: 7f ff 8e 12 call 20086a4 <rtems_filesystem_prefix_separators><== NOT EXECUTED
2024e60: 90 10 00 18 mov %i0, %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);
2024e64: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
path += stripped;
2024e68: ba 06 00 08 add %i0, %o0, %i5 <== NOT EXECUTED
2024e6c: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
2024e70: 92 10 20 00 clr %o1 <== NOT EXECUTED
2024e74: 94 10 20 00 clr %o2 <== NOT EXECUTED
2024e78: 7f ff a1 f0 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
2024e7c: 2f 00 81 a0 sethi %hi(0x2068000), %l7 <== NOT EXECUTED
2024e80: a2 07 bf cc add %fp, -52, %l1 <== NOT EXECUTED
}
/*
* We need to find the parent of this node.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode, "..", 2, &ino, &doff);
2024e84: ae 15 e1 98 or %l7, 0x198, %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)) &&
2024e88: 29 00 00 3c sethi %hi(0xf000), %l4 <== NOT EXECUTED
2024e8c: 27 00 00 10 sethi %hi(0x4000), %l3 <== NOT EXECUTED
else
{
/*
* Read the inode so we know it exists and what type it is.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode,
2024e90: ac 07 bf fc add %fp, -4, %l6 <== NOT EXECUTED
2024e94: aa 07 bf f4 add %fp, -12, %l5 <== NOT EXECUTED
while (true)
{
/*
* Open and load the inode.
*/
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
2024e98: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
2024e9c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2024ea0: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2024ea4: 40 00 76 7e call 204289c <rtems_rfs_inode_open> <== NOT EXECUTED
2024ea8: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
2024eac: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2024eb0: 14 80 00 cb bg 20251dc <rtems_rfs_rtems_eval_for_make+0x3e4><== NOT EXECUTED
2024eb4: 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)) &&
2024eb8: c4 08 60 03 ldub [ %g1 + 3 ], %g2 <== NOT EXECUTED
2024ebc: c2 08 60 02 ldub [ %g1 + 2 ], %g1 <== NOT EXECUTED
2024ec0: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2024ec4: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2024ec8: 82 08 40 14 and %g1, %l4, %g1 <== NOT EXECUTED
2024ecc: 80 a0 40 13 cmp %g1, %l3 <== NOT EXECUTED
2024ed0: 02 80 00 6c be 2025080 <rtems_rfs_rtems_eval_for_make+0x288><== NOT EXECUTED
2024ed4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
}
/*
* Is this the end of the pathname we where given ?
*/
if (path == *name)
2024ed8: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
2024edc: 80 a0 40 1d cmp %g1, %i5 <== NOT EXECUTED
2024ee0: 02 80 00 3f be 2024fdc <rtems_rfs_rtems_eval_for_make+0x1e4><== NOT EXECUTED
2024ee4: c2 07 bf d8 ld [ %fp + -40 ], %g1 <== NOT EXECUTED
2024ee8: a4 10 00 1d mov %i5, %l2 <== NOT EXECUTED
2024eec: 10 80 00 0c b 2024f1c <rtems_rfs_rtems_eval_for_make+0x124><== NOT EXECUTED
2024ef0: b8 10 20 00 clr %i4 <== NOT EXECUTED
/*
* Extract the node name we will look for this time around.
*/
node = path;
node_len = 0;
while (!rtems_filesystem_is_separator(*path) &&
2024ef4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2024ef8: 02 80 00 0e be 2024f30 <rtems_rfs_rtems_eval_for_make+0x138><== NOT EXECUTED
2024efc: 01 00 00 00 nop <== NOT EXECUTED
(*path != '\0') &&
(node_len < (rtems_rfs_fs_max_name (fs) - 1)))
2024f00: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED
2024f04: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
2024f08: 80 a7 00 01 cmp %i4, %g1 <== NOT EXECUTED
2024f0c: 1a 80 00 09 bcc 2024f30 <rtems_rfs_rtems_eval_for_make+0x138><== NOT EXECUTED
2024f10: 01 00 00 00 nop <== NOT EXECUTED
{
node_len++;
2024f14: b8 07 20 01 inc %i4 <== NOT EXECUTED
path++;
2024f18: 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) &&
2024f1c: 7f ff 95 96 call 200a574 <rtems_filesystem_is_separator> <== NOT EXECUTED
2024f20: d0 4c 80 00 ldsb [ %l2 ], %o0 <== NOT EXECUTED
2024f24: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024f28: 22 bf ff f3 be,a 2024ef4 <rtems_rfs_rtems_eval_for_make+0xfc><== NOT EXECUTED
2024f2c: c2 4c 80 00 ldsb [ %l2 ], %g1 <== NOT EXECUTED
}
/*
* Eat any separators at start of the new path.
*/
stripped = rtems_filesystem_prefix_separators (path, strlen (path));
2024f30: 40 00 aa ed call 204fae4 <strlen> <== NOT EXECUTED
2024f34: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2024f38: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
2024f3c: 7f ff 8d da call 20086a4 <rtems_filesystem_prefix_separators><== NOT EXECUTED
2024f40: 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))
2024f44: c2 4f 40 00 ldsb [ %i5 ], %g1 <== NOT EXECUTED
2024f48: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
2024f4c: 02 80 00 1b be 2024fb8 <rtems_rfs_rtems_eval_for_make+0x1c0><== NOT EXECUTED
2024f50: a4 04 80 08 add %l2, %o0, %l2 <== 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))
2024f54: c2 4c 80 00 ldsb [ %l2 ], %g1 <== NOT EXECUTED
2024f58: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
2024f5c: 12 80 00 07 bne 2024f78 <rtems_rfs_rtems_eval_for_make+0x180><== NOT EXECUTED
2024f60: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
2024f64: c2 4c a0 01 ldsb [ %l2 + 1 ], %g1 <== NOT EXECUTED
2024f68: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
2024f6c: 22 80 00 55 be,a 20250c0 <rtems_rfs_rtems_eval_for_make+0x2c8><== NOT EXECUTED
2024f70: d0 4c a0 02 ldsb [ %l2 + 2 ], %o0 <== NOT EXECUTED
else
{
/*
* Read the inode so we know it exists and what type it is.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode,
2024f74: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
2024f78: 96 10 00 1c mov %i4, %o3 <== NOT EXECUTED
2024f7c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2024f80: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2024f84: 98 10 00 16 mov %l6, %o4 <== NOT EXECUTED
2024f88: 40 00 6a 43 call 203f894 <rtems_rfs_dir_lookup_ino> <== NOT EXECUTED
2024f8c: 9a 10 00 15 mov %l5, %o5 <== NOT EXECUTED
node, node_len - stripped, &ino, &doff);
if (rc > 0)
2024f90: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
2024f94: 14 80 00 81 bg 2025198 <rtems_rfs_rtems_eval_for_make+0x3a0><== NOT EXECUTED
2024f98: 90 10 00 10 mov %l0, %o0 <== 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);
2024f9c: 40 00 76 16 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2024fa0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc > 0)
2024fa4: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
2024fa8: 14 80 00 7f bg 20251a4 <rtems_rfs_rtems_eval_for_make+0x3ac><== NOT EXECUTED
2024fac: 01 00 00 00 nop <== NOT EXECUTED
2024fb0: 10 bf ff ba b 2024e98 <rtems_rfs_rtems_eval_for_make+0xa0><== NOT EXECUTED
2024fb4: ba 10 00 12 mov %l2, %i5 <== 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))
2024fb8: d0 4f 60 01 ldsb [ %i5 + 1 ], %o0 <== NOT EXECUTED
2024fbc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024fc0: 12 80 00 53 bne 202510c <rtems_rfs_rtems_eval_for_make+0x314><== NOT EXECUTED
2024fc4: 01 00 00 00 nop <== NOT EXECUTED
{
if (*path)
2024fc8: c2 4c 80 00 ldsb [ %l2 ], %g1 <== NOT EXECUTED
2024fcc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2024fd0: 12 80 00 58 bne 2025130 <rtems_rfs_rtems_eval_for_make+0x338><== NOT EXECUTED
2024fd4: 90 10 00 10 mov %l0, %o0 <== 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);
2024fd8: c2 07 bf d8 ld [ %fp + -40 ], %g1 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("eval_for_make: closing node", rc);
}
}
if (!RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)))
2024fdc: c4 08 60 02 ldub [ %g1 + 2 ], %g2 <== NOT EXECUTED
2024fe0: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
2024fe4: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2024fe8: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED
2024fec: 03 00 00 10 sethi %hi(0x4000), %g1 <== NOT EXECUTED
2024ff0: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2024ff4: 12 80 00 81 bne 20251f8 <rtems_rfs_rtems_eval_for_make+0x400><== NOT EXECUTED
2024ff8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("eval_for_make: not dir", ENOTDIR);
}
if (!rtems_rfs_rtems_eval_perms (&inode, RTEMS_LIBIO_PERMS_WX))
2024ffc: 40 00 01 ff call 20257f8 <rtems_rfs_rtems_eval_perms> <== NOT EXECUTED
2025000: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED
2025004: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED
2025008: 02 80 00 24 be 2025098 <rtems_rfs_rtems_eval_for_make+0x2a0><== NOT EXECUTED
202500c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
}
/*
* Make sure the name does not already exists in the directory.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode, *name, strlen (*name),
2025010: e4 06 80 00 ld [ %i2 ], %l2 <== NOT EXECUTED
2025014: 40 00 aa b4 call 204fae4 <strlen> <== NOT EXECUTED
2025018: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
202501c: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2025020: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2025024: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2025028: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202502c: 98 07 bf f8 add %fp, -8, %o4 <== NOT EXECUTED
2025030: 40 00 6a 19 call 203f894 <rtems_rfs_dir_lookup_ino> <== NOT EXECUTED
2025034: 9a 07 bf f4 add %fp, -12, %o5 <== NOT EXECUTED
&node_ino, &doff);
if (rc == 0)
2025038: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
202503c: 02 80 00 8c be 202526c <rtems_rfs_rtems_eval_for_make+0x474><== NOT EXECUTED
2025040: 80 a4 a0 02 cmp %l2, 2 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("eval_for_make: found name", EEXIST);
}
if (rc != ENOENT)
2025044: 02 80 00 40 be 2025144 <rtems_rfs_rtems_eval_for_make+0x34c><== NOT EXECUTED
2025048: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
202504c: 40 00 75 ea call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2025050: 90 10 00 10 mov %l0, %o0 <== 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);
2025054: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2025058: 40 00 66 8b call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
202505c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
2025060: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
2025064: 7f ff a1 bc call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2025068: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("eval_for_make: look up", rc);
202506c: 40 00 8e f6 call 2048c44 <__errno> <== NOT EXECUTED
2025070: 01 00 00 00 nop <== NOT EXECUTED
2025074: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
2025078: 81 c7 e0 08 ret <== NOT EXECUTED
202507c: 81 e8 00 00 restore <== 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)) &&
2025080: 40 00 01 de call 20257f8 <rtems_rfs_rtems_eval_perms> <== NOT EXECUTED
2025084: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2025088: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED
202508c: 32 bf ff 94 bne,a 2024edc <rtems_rfs_rtems_eval_for_make+0xe4><== NOT EXECUTED
2025090: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: not dir", ENOTDIR);
}
if (!rtems_rfs_rtems_eval_perms (&inode, RTEMS_LIBIO_PERMS_WX))
{
rtems_rfs_inode_close (fs, &inode);
2025094: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2025098: 40 00 75 d7 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
202509c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
20250a0: 7f ff fb 82 call 2023ea8 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20250a4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: cannot write", EACCES);
20250a8: 40 00 8e e7 call 2048c44 <__errno> <== NOT EXECUTED
20250ac: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20250b0: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED
20250b4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20250b8: 81 c7 e0 08 ret <== NOT EXECUTED
20250bc: 81 e8 00 00 restore <== 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))
20250c0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20250c4: 12 80 00 3f bne 20251c0 <rtems_rfs_rtems_eval_for_make+0x3c8><== NOT EXECUTED
20250c8: b0 04 a0 02 add %l2, 2, %i0 <== NOT EXECUTED
{
/*
* If we are at the root inode of the file system we have a crossmount
* path.
*/
if (ino == RTEMS_RFS_ROOT_INO)
20250cc: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
20250d0: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
20250d4: 02 80 00 54 be 2025224 <rtems_rfs_rtems_eval_for_make+0x42c><== NOT EXECUTED
20250d8: c2 07 bf d8 ld [ %fp + -40 ], %g1 <== 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)))
20250dc: c4 08 60 03 ldub [ %g1 + 3 ], %g2 <== NOT EXECUTED
20250e0: c2 08 60 02 ldub [ %g1 + 2 ], %g1 <== NOT EXECUTED
20250e4: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
20250e8: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
20250ec: 82 08 40 14 and %g1, %l4, %g1 <== NOT EXECUTED
20250f0: 80 a0 40 13 cmp %g1, %l3 <== NOT EXECUTED
20250f4: 12 80 00 69 bne 2025298 <rtems_rfs_rtems_eval_for_make+0x4a0><== NOT EXECUTED
20250f8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
}
/*
* We need to find the parent of this node.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode, "..", 2, &ino, &doff);
20250fc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2025100: 94 10 00 17 mov %l7, %o2 <== NOT EXECUTED
2025104: 10 bf ff a0 b 2024f84 <rtems_rfs_rtems_eval_for_make+0x18c><== NOT EXECUTED
2025108: 96 10 20 02 mov 2, %o3 <== 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))
202510c: 7f ff 95 1a call 200a574 <rtems_filesystem_is_separator> <== NOT EXECUTED
2025110: 01 00 00 00 nop <== NOT EXECUTED
2025114: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025118: 02 bf ff 90 be 2024f58 <rtems_rfs_rtems_eval_for_make+0x160><== NOT EXECUTED
202511c: c2 4c 80 00 ldsb [ %l2 ], %g1 <== NOT EXECUTED
{
if (*path)
2025120: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2025124: 02 bf ff ae be 2024fdc <rtems_rfs_rtems_eval_for_make+0x1e4><== NOT EXECUTED
2025128: c2 07 bf d8 ld [ %fp + -40 ], %g1 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
202512c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2025130: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2025134: 40 00 75 b0 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2025138: ba 10 00 12 mov %l2, %i5 <== NOT EXECUTED
while (true)
{
/*
* Open and load the inode.
*/
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
202513c: 10 bf ff 58 b 2024e9c <rtems_rfs_rtems_eval_for_make+0xa4><== NOT EXECUTED
2025140: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
/*
* Set the parent ino in the path location.
*/
rtems_rfs_rtems_set_pathloc_ino (pathloc, ino);
2025144: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2025148: c2 26 40 00 st %g1, [ %i1 ] <== NOT EXECUTED
rtems_rfs_rtems_set_pathloc_doff (pathloc, doff);
202514c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
rc = rtems_rfs_rtems_set_handlers (pathloc, &inode) ? 0 : EIO;
2025150: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
2025154: 40 00 01 bb call 2025840 <rtems_rfs_rtems_set_handlers> <== NOT EXECUTED
2025158: c2 26 60 04 st %g1, [ %i1 + 4 ] <== NOT EXECUTED
202515c: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED
2025160: 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);
2025164: 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;
2025168: 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);
202516c: 40 00 75 a2 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2025170: 90 10 00 10 mov %l0, %o0 <== 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);
2025174: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2025178: 40 00 66 43 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
202517c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2025180: d0 04 40 00 ld [ %l1 ], %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;
2025184: b0 0e 3f fb and %i0, -5, %i0 <== NOT EXECUTED
2025188: 7f ff a1 73 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
202518c: b0 06 20 05 add %i0, 5, %i0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
rtems_rfs_rtems_unlock (fs);
return rc;
}
2025190: 81 c7 e0 08 ret <== NOT EXECUTED
2025194: 81 e8 00 00 restore <== NOT EXECUTED
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode,
node, node_len - stripped, &ino, &doff);
if (rc > 0)
{
rtems_rfs_inode_close (fs, &inode);
2025198: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
202519c: 40 00 75 96 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
20251a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
}
rc = rtems_rfs_inode_close (fs, &inode);
if (rc > 0)
{
rtems_rfs_rtems_unlock (fs);
20251a4: 7f ff fb 41 call 2023ea8 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20251a8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: closing node", rc);
20251ac: 40 00 8e a6 call 2048c44 <__errno> <== NOT EXECUTED
20251b0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20251b4: fa 22 00 00 st %i5, [ %o0 ] <== NOT EXECUTED
20251b8: 81 c7 e0 08 ret <== NOT EXECUTED
20251bc: 81 e8 00 00 restore <== 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))
20251c0: 7f ff 94 ed call 200a574 <rtems_filesystem_is_separator> <== NOT EXECUTED
20251c4: 01 00 00 00 nop <== NOT EXECUTED
20251c8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20251cc: 02 bf ff 6b be 2024f78 <rtems_rfs_rtems_eval_for_make+0x180><== NOT EXECUTED
20251d0: 94 10 00 1d mov %i5, %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)
20251d4: 10 bf ff bf b 20250d0 <rtems_rfs_rtems_eval_for_make+0x2d8><== NOT EXECUTED
20251d8: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
* Open and load the inode.
*/
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
if (rc > 0)
{
rtems_rfs_rtems_unlock (fs);
20251dc: 7f ff fb 33 call 2023ea8 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20251e0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: read ino", rc);
20251e4: 40 00 8e 98 call 2048c44 <__errno> <== NOT EXECUTED
20251e8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20251ec: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
20251f0: 81 c7 e0 08 ret <== NOT EXECUTED
20251f4: 81 e8 00 00 restore <== NOT EXECUTED
}
}
if (!RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)))
{
rtems_rfs_inode_close (fs, &inode);
20251f8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20251fc: 40 00 75 7e call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2025200: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
2025204: 7f ff fb 29 call 2023ea8 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2025208: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: not dir", ENOTDIR);
202520c: 40 00 8e 8e call 2048c44 <__errno> <== NOT EXECUTED
2025210: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2025214: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED
2025218: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202521c: 81 c7 e0 08 ret <== NOT EXECUTED
2025220: 81 e8 00 00 restore <== 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);
2025224: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2025228: 40 00 75 73 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
202522c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
2025230: 7f ff fb 1e call 2023ea8 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2025234: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*pathloc = pathloc->mt_entry->mt_point_node;
2025238: d2 06 60 10 ld [ %i1 + 0x10 ], %o1 <== NOT EXECUTED
202523c: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
2025240: 92 02 60 08 add %o1, 8, %o1 <== NOT EXECUTED
2025244: 40 00 9b cc call 204c174 <memcpy> <== NOT EXECUTED
2025248: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
return (*pathloc->ops->evalformake_h)(path + 2, pathloc, name);
202524c: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
2025250: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2025254: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED
2025258: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
202525c: 9f c0 40 00 call %g1 <== NOT EXECUTED
2025260: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2025264: 81 c7 e0 08 ret <== NOT EXECUTED
2025268: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode, *name, strlen (*name),
&node_ino, &doff);
if (rc == 0)
{
rtems_rfs_inode_close (fs, &inode);
202526c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2025270: 40 00 75 61 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2025274: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
2025278: 7f ff fb 0c call 2023ea8 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
202527c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: found name", EEXIST);
2025280: 40 00 8e 71 call 2048c44 <__errno> <== NOT EXECUTED
2025284: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2025288: 82 10 20 11 mov 0x11, %g1 <== NOT EXECUTED
202528c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2025290: 81 c7 e0 08 ret <== NOT EXECUTED
2025294: 81 e8 00 00 restore <== 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)))
{
rtems_rfs_inode_close (fs, &inode);
2025298: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
202529c: 40 00 75 56 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
20252a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
20252a4: 7f ff fb 01 call 2023ea8 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20252a8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: not dir", ENOTSUP);
20252ac: 40 00 8e 66 call 2048c44 <__errno> <== NOT EXECUTED
20252b0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20252b4: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
20252b8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20252bc: 81 c7 e0 08 ret <== NOT EXECUTED
20252c0: 81 e8 00 00 restore <== NOT EXECUTED
020241d0 <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)
{
20241d0: 9d e3 bf 68 save %sp, -152, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
20241d4: 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);
20241d8: 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);
20241dc: e0 00 a0 34 ld [ %g2 + 0x34 ], %l0 <== NOT EXECUTED
rtems_rfs_inode_handle inode;
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
20241e0: 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);
20241e4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
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);
uint32_t doff = 0;
20241e8: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
path, pathlen, ino);
/*
* Eat any separators at the start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, pathlen);
20241ec: 7f ff 91 2e call 20086a4 <rtems_filesystem_prefix_separators><== NOT EXECUTED
20241f0: 90 10 00 18 mov %i0, %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);
20241f4: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
20241f8: b8 10 00 08 mov %o0, %i4 <== NOT EXECUTED
path += stripped;
pathlen -= stripped;
20241fc: a2 26 40 08 sub %i1, %o0, %l1 <== NOT EXECUTED
2024200: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
2024204: 92 10 20 00 clr %o1 <== NOT EXECUTED
2024208: 94 10 20 00 clr %o2 <== NOT EXECUTED
}
/*
* We need to find the parent of this node.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode, "..", 2, &ino, &doff);
202420c: 3b 00 81 a0 sethi %hi(0x2068000), %i5 <== NOT EXECUTED
2024210: 7f ff a5 0a call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
2024214: b8 06 00 1c add %i0, %i4, %i4 <== NOT EXECUTED
2024218: a4 07 bf d0 add %fp, -48, %l2 <== NOT EXECUTED
202421c: ba 17 61 98 or %i5, 0x198, %i5 <== 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)) &&
2024220: 2b 00 00 3c sethi %hi(0xf000), %l5 <== NOT EXECUTED
2024224: 29 00 00 10 sethi %hi(0x4000), %l4 <== 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,
2024228: ae 07 bf fc add %fp, -4, %l7 <== NOT EXECUTED
202422c: ac 07 bf f8 add %fp, -8, %l6 <== NOT EXECUTED
while (true)
{
/*
* Open and load the inode.
*/
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
2024230: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
2024234: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2024238: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
202423c: 40 00 79 98 call 204289c <rtems_rfs_inode_open> <== NOT EXECUTED
2024240: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
2024244: a6 92 20 00 orcc %o0, 0, %l3 <== NOT EXECUTED
2024248: 14 80 00 97 bg 20244a4 <rtems_rfs_rtems_eval_path+0x2d4> <== NOT EXECUTED
202424c: 01 00 00 00 nop <== NOT EXECUTED
}
/*
* Is this the end of the pathname we where given ?
*/
if ((*path == '\0') || (pathlen == 0))
2024250: d0 0f 00 00 ldub [ %i4 ], %o0 <== NOT EXECUTED
2024254: 91 2a 20 18 sll %o0, 0x18, %o0 <== NOT EXECUTED
2024258: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202425c: 02 80 00 4e be 2024394 <rtems_rfs_rtems_eval_path+0x1c4> <== NOT EXECUTED
2024260: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
2024264: 02 80 00 4c be 2024394 <rtems_rfs_rtems_eval_path+0x1c4> <== NOT EXECUTED
2024268: 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)) &&
202426c: c4 08 60 03 ldub [ %g1 + 3 ], %g2 <== NOT EXECUTED
2024270: c2 08 60 02 ldub [ %g1 + 2 ], %g1 <== NOT EXECUTED
2024274: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2024278: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
202427c: 82 08 40 15 and %g1, %l5, %g1 <== NOT EXECUTED
2024280: 80 a0 40 14 cmp %g1, %l4 <== NOT EXECUTED
2024284: 22 80 00 34 be,a 2024354 <rtems_rfs_rtems_eval_path+0x184><== NOT EXECUTED
2024288: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
202428c: a6 10 00 1c mov %i4, %l3 <== NOT EXECUTED
2024290: 10 80 00 11 b 20242d4 <rtems_rfs_rtems_eval_path+0x104> <== NOT EXECUTED
2024294: b0 10 20 00 clr %i0 <== NOT EXECUTED
/*
* Extract the node name we will look for this time around.
*/
node = path;
node_len = 0;
while (!rtems_filesystem_is_separator (*path) &&
2024298: 02 80 00 15 be 20242ec <rtems_rfs_rtems_eval_path+0x11c> <== NOT EXECUTED
202429c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20242a0: c4 4c c0 00 ldsb [ %l3 ], %g2 <== NOT EXECUTED
20242a4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
20242a8: 02 80 00 11 be 20242ec <rtems_rfs_rtems_eval_path+0x11c> <== NOT EXECUTED
20242ac: 82 06 20 01 add %i0, 1, %g1 <== NOT EXECUTED
(*path != '\0') && pathlen &&
((node_len + 1) < rtems_rfs_fs_max_name (fs)))
20242b0: c4 04 20 18 ld [ %l0 + 0x18 ], %g2 <== NOT EXECUTED
20242b4: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
20242b8: 1a 80 00 0d bcc 20242ec <rtems_rfs_rtems_eval_path+0x11c> <== NOT EXECUTED
20242bc: 01 00 00 00 nop <== NOT EXECUTED
{
path++;
20242c0: a6 04 e0 01 inc %l3 <== NOT EXECUTED
pathlen--;
20242c4: d0 0c c0 00 ldub [ %l3 ], %o0 <== NOT EXECUTED
20242c8: a2 04 7f ff add %l1, -1, %l1 <== NOT EXECUTED
20242cc: b0 10 00 01 mov %g1, %i0 <== NOT EXECUTED
20242d0: 91 2a 20 18 sll %o0, 0x18, %o0 <== NOT EXECUTED
/*
* Extract the node name we will look for this time around.
*/
node = path;
node_len = 0;
while (!rtems_filesystem_is_separator (*path) &&
20242d4: 7f ff 98 a8 call 200a574 <rtems_filesystem_is_separator> <== NOT EXECUTED
20242d8: 91 3a 20 18 sra %o0, 0x18, %o0 <== NOT EXECUTED
20242dc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20242e0: 02 bf ff ee be 2024298 <rtems_rfs_rtems_eval_path+0xc8> <== NOT EXECUTED
20242e4: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
}
/*
* Eat any separators at start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, pathlen);
20242e8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20242ec: 7f ff 90 ee call 20086a4 <rtems_filesystem_prefix_separators><== NOT EXECUTED
20242f0: 90 10 00 13 mov %l3, %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))
20242f4: c2 4f 00 00 ldsb [ %i4 ], %g1 <== NOT EXECUTED
}
/*
* Eat any separators at start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, pathlen);
20242f8: b2 10 00 08 mov %o0, %i1 <== NOT EXECUTED
path += stripped;
20242fc: a6 04 c0 08 add %l3, %o0, %l3 <== 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))
2024300: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
/*
* Eat any separators at start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, pathlen);
path += stripped;
pathlen -= stripped;
2024304: a2 24 40 08 sub %l1, %o0, %l1 <== 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))
2024308: 02 80 00 1b be 2024374 <rtems_rfs_rtems_eval_path+0x1a4> <== NOT EXECUTED
202430c: b0 02 00 18 add %o0, %i0, %i0 <== 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,
2024310: 96 26 00 19 sub %i0, %i1, %o3 <== NOT EXECUTED
2024314: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
2024318: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202431c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2024320: 98 10 00 17 mov %l7, %o4 <== NOT EXECUTED
2024324: 40 00 6d 5c call 203f894 <rtems_rfs_dir_lookup_ino> <== NOT EXECUTED
2024328: 9a 10 00 16 mov %l6, %o5 <== NOT EXECUTED
node, node_len - stripped, &ino, &doff);
if (rc > 0)
202432c: b8 92 20 00 orcc %o0, 0, %i4 <== NOT EXECUTED
2024330: 14 80 00 4c bg 2024460 <rtems_rfs_rtems_eval_path+0x290> <== NOT EXECUTED
2024334: 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);
2024338: 40 00 79 2f call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
202433c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
if (rc > 0)
2024340: b8 92 20 00 orcc %o0, 0, %i4 <== NOT EXECUTED
2024344: 14 80 00 48 bg 2024464 <rtems_rfs_rtems_eval_path+0x294> <== NOT EXECUTED
2024348: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
202434c: 10 bf ff b9 b 2024230 <rtems_rfs_rtems_eval_path+0x60> <== NOT EXECUTED
2024350: b8 10 00 13 mov %l3, %i4 <== 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)) &&
2024354: 40 00 05 29 call 20257f8 <rtems_rfs_rtems_eval_perms> <== NOT EXECUTED
2024358: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
202435c: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED
2024360: 02 80 00 6b be 202450c <rtems_rfs_rtems_eval_path+0x33c> <== NOT EXECUTED
2024364: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2024368: d0 0f 00 00 ldub [ %i4 ], %o0 <== NOT EXECUTED
202436c: 10 bf ff c8 b 202428c <rtems_rfs_rtems_eval_path+0xbc> <== NOT EXECUTED
2024370: 91 2a 20 18 sll %o0, 0x18, %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))
2024374: d0 4f 20 01 ldsb [ %i4 + 1 ], %o0 <== NOT EXECUTED
2024378: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202437c: 12 80 00 1c bne 20243ec <rtems_rfs_rtems_eval_path+0x21c> <== NOT EXECUTED
2024380: 82 07 20 01 add %i4, 1, %g1 <== NOT EXECUTED
{
if (*path)
2024384: c2 4c c0 00 ldsb [ %l3 ], %g1 <== NOT EXECUTED
2024388: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202438c: 32 80 00 30 bne,a 202444c <rtems_rfs_rtems_eval_path+0x27c><== NOT EXECUTED
2024390: 90 10 00 10 mov %l0, %o0 <== 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);
2024394: 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;
2024398: 92 10 00 12 mov %l2, %o1 <== 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);
202439c: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED
rtems_rfs_rtems_set_pathloc_doff (pathloc, doff);
20243a0: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
rc = rtems_rfs_rtems_set_handlers (pathloc, &inode) ? 0 : EIO;
20243a4: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
20243a8: 40 00 05 26 call 2025840 <rtems_rfs_rtems_set_handlers> <== NOT EXECUTED
20243ac: c2 26 e0 04 st %g1, [ %i3 + 4 ] <== NOT EXECUTED
20243b0: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED
20243b4: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
20243b8: 92 10 00 12 mov %l2, %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;
20243bc: b0 60 20 00 subx %g0, 0, %i0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
20243c0: 40 00 79 0d call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
20243c4: 90 10 00 10 mov %l0, %o0 <== 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);
20243c8: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
20243cc: 40 00 69 ae call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
20243d0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
20243d4: d0 04 40 00 ld [ %l1 ], %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;
20243d8: b0 0e 3f fb and %i0, -5, %i0 <== NOT EXECUTED
20243dc: 7f ff a4 de call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
20243e0: 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;
}
20243e4: 81 c7 e0 08 ret <== NOT EXECUTED
20243e8: 81 e8 00 00 restore <== 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))
20243ec: 7f ff 98 62 call 200a574 <rtems_filesystem_is_separator> <== NOT EXECUTED
20243f0: c2 27 bf cc st %g1, [ %fp + -52 ] <== NOT EXECUTED
20243f4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20243f8: 12 bf ff e3 bne 2024384 <rtems_rfs_rtems_eval_path+0x1b4> <== NOT EXECUTED
20243fc: c2 07 bf cc ld [ %fp + -52 ], %g1 <== 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))
2024400: c4 4f 00 00 ldsb [ %i4 ], %g2 <== NOT EXECUTED
2024404: 80 a0 a0 2e cmp %g2, 0x2e <== NOT EXECUTED
2024408: 12 bf ff c3 bne 2024314 <rtems_rfs_rtems_eval_path+0x144> <== NOT EXECUTED
202440c: 96 26 00 19 sub %i0, %i1, %o3 <== NOT EXECUTED
2024410: c2 48 40 00 ldsb [ %g1 ], %g1 <== NOT EXECUTED
2024414: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
2024418: 12 bf ff c0 bne 2024318 <rtems_rfs_rtems_eval_path+0x148> <== NOT EXECUTED
202441c: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
2024420: d0 4f 20 02 ldsb [ %i4 + 2 ], %o0 <== NOT EXECUTED
2024424: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024428: 12 80 00 18 bne 2024488 <rtems_rfs_rtems_eval_path+0x2b8> <== NOT EXECUTED
202442c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
{
/*
* If we are at root inode of the file system we have a crossmount path.
*/
if (ino == RTEMS_RFS_ROOT_INO)
2024430: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2024434: 02 80 00 23 be 20244c0 <rtems_rfs_rtems_eval_path+0x2f0> <== NOT EXECUTED
2024438: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
}
/*
* We need to find the parent of this node.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode, "..", 2, &ino, &doff);
202443c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2024440: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
2024444: 10 bf ff b7 b 2024320 <rtems_rfs_rtems_eval_path+0x150> <== NOT EXECUTED
2024448: 96 10 20 02 mov 2, %o3 <== NOT EXECUTED
*/
if (rtems_rfs_current_dir (node))
{
if (*path)
{
rtems_rfs_inode_close (fs, &inode);
202444c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2024450: 40 00 78 e9 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2024454: b8 10 00 13 mov %l3, %i4 <== NOT EXECUTED
while (true)
{
/*
* Open and load the inode.
*/
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
2024458: 10 bf ff 77 b 2024234 <rtems_rfs_rtems_eval_path+0x64> <== NOT EXECUTED
202445c: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
}
rc = rtems_rfs_inode_close (fs, &inode);
if (rc > 0)
{
rtems_rfs_inode_close (fs, &inode);
2024460: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2024464: 40 00 78 e4 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2024468: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
202446c: 7f ff fe 8f call 2023ea8 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2024470: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_path: closing node", rc);
2024474: 40 00 91 f4 call 2048c44 <__errno> <== NOT EXECUTED
2024478: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202447c: f8 22 00 00 st %i4, [ %o0 ] <== NOT EXECUTED
2024480: 81 c7 e0 08 ret <== NOT EXECUTED
2024484: 81 e8 00 00 restore <== 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))
2024488: 7f ff 98 3b call 200a574 <rtems_filesystem_is_separator> <== NOT EXECUTED
202448c: 01 00 00 00 nop <== NOT EXECUTED
2024490: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024494: 02 bf ff a0 be 2024314 <rtems_rfs_rtems_eval_path+0x144> <== NOT EXECUTED
2024498: 96 26 00 19 sub %i0, %i1, %o3 <== NOT EXECUTED
{
/*
* If we are at root inode of the file system we have a crossmount path.
*/
if (ino == RTEMS_RFS_ROOT_INO)
202449c: 10 bf ff e5 b 2024430 <rtems_rfs_rtems_eval_path+0x260> <== NOT EXECUTED
20244a0: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
* Open and load the inode.
*/
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
if (rc > 0)
{
rtems_rfs_rtems_unlock (fs);
20244a4: 7f ff fe 81 call 2023ea8 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20244a8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_path: opening inode", rc);
20244ac: 40 00 91 e6 call 2048c44 <__errno> <== NOT EXECUTED
20244b0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20244b4: e6 22 00 00 st %l3, [ %o0 ] <== NOT EXECUTED
20244b8: 81 c7 e0 08 ret <== NOT EXECUTED
20244bc: 81 e8 00 00 restore <== NOT EXECUTED
if (ino == RTEMS_RFS_ROOT_INO)
{
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);
20244c0: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
20244c4: 40 00 78 cc call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
20244c8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
20244cc: 7f ff fe 77 call 2023ea8 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20244d0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*pathloc = pathloc->mt_entry->mt_point_node;
20244d4: d2 06 e0 10 ld [ %i3 + 0x10 ], %o1 <== NOT EXECUTED
20244d8: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
20244dc: 92 02 60 08 add %o1, 8, %o1 <== NOT EXECUTED
20244e0: 40 00 9f 25 call 204c174 <memcpy> <== NOT EXECUTED
20244e4: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
return (*pathloc->ops->evalpath_h)(path - node_len, pathlen + node_len,
20244e8: c2 06 e0 0c ld [ %i3 + 0xc ], %g1 <== NOT EXECUTED
20244ec: 92 06 00 11 add %i0, %l1, %o1 <== NOT EXECUTED
20244f0: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED
20244f4: 90 24 c0 18 sub %l3, %i0, %o0 <== NOT EXECUTED
20244f8: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
20244fc: 9f c0 40 00 call %g1 <== NOT EXECUTED
2024500: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
2024504: 81 c7 e0 08 ret <== NOT EXECUTED
2024508: 91 e8 00 08 restore %g0, %o0, %o0 <== 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)) &&
!rtems_rfs_rtems_eval_perms (&inode, RTEMS_LIBIO_PERMS_SEARCH))
{
rtems_rfs_inode_close (fs, &inode);
202450c: 40 00 78 ba call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2024510: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
2024514: 7f ff fe 65 call 2023ea8 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2024518: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_path: eval perms", EACCES);
202451c: 40 00 91 ca call 2048c44 <__errno> <== NOT EXECUTED
2024520: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2024524: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED
2024528: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202452c: 81 c7 e0 08 ret <== NOT EXECUTED
2024530: 81 e8 00 00 restore <== NOT EXECUTED
020257f8 <rtems_rfs_rtems_eval_perms>:
* @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);
20257f8: 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;
20257fc: 87 2a 60 06 sll %o1, 6, %g3 <== NOT EXECUTED
2025800: c4 08 60 03 ldub [ %g1 + 3 ], %g2 <== NOT EXECUTED
2025804: c2 08 60 02 ldub [ %g1 + 2 ], %g1 <== NOT EXECUTED
2025808: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
202580c: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2025810: 85 2a 60 03 sll %o1, 3, %g2 <== NOT EXECUTED
2025814: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED
2025818: 92 10 80 09 or %g2, %o1, %o1 <== NOT EXECUTED
202581c: 92 0a 61 ff and %o1, 0x1ff, %o1 <== NOT EXECUTED
2025820: 92 08 40 09 and %g1, %o1, %o1 <== NOT EXECUTED
2025824: 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;
}
2025828: 81 c3 e0 08 retl <== NOT EXECUTED
202582c: 90 40 20 00 addx %g0, 0, %o0 <== NOT EXECUTED
020254b8 <rtems_rfs_rtems_fchmod>:
* @return int
*/
int
rtems_rfs_rtems_fchmod (rtems_filesystem_location_info_t* pathloc,
mode_t mode)
{
20254b8: 9d e3 bf 78 save %sp, -136, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
20254bc: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
20254c0: 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);
20254c4: 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);
20254c8: 92 10 20 00 clr %o1 <== NOT EXECUTED
20254cc: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
20254d0: 94 10 20 00 clr %o2 <== NOT EXECUTED
20254d4: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
20254d8: 7f ff a0 58 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
20254dc: a2 07 bf d8 add %fp, -40, %l1 <== 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);
20254e0: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
20254e4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20254e8: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
20254ec: 40 00 74 ec call 204289c <rtems_rfs_inode_open> <== NOT EXECUTED
20254f0: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc)
20254f4: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
20254f8: 02 80 00 0d be 202552c <rtems_rfs_rtems_fchmod+0x74> <== NOT EXECUTED
20254fc: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== 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);
2025500: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2025504: 40 00 65 60 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2025508: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
202550c: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
2025510: 7f ff a0 91 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2025514: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("fchmod: opening inode", rc);
2025518: 40 00 8d cb call 2048c44 <__errno> <== NOT EXECUTED
202551c: 01 00 00 00 nop <== NOT EXECUTED
2025520: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
2025524: 81 c7 e0 08 ret <== NOT EXECUTED
2025528: 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);
202552c: 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);
2025530: f2 08 60 02 ldub [ %g1 + 2 ], %i1 <== NOT EXECUTED
rtems_rfs_inode_set_mode (&inode, imode);
rc = rtems_rfs_inode_close (fs, &inode);
2025534: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2025538: 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);
202553c: b2 0e 70 00 and %i1, -4096, %i1 <== NOT EXECUTED
imode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
2025540: 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);
2025544: 85 36 60 08 srl %i1, 8, %g2 <== NOT EXECUTED
2025548: c4 28 60 02 stb %g2, [ %g1 + 2 ] <== NOT EXECUTED
202554c: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
rtems_rfs_inode_set_mode (&inode, imode);
rc = rtems_rfs_inode_close (fs, &inode);
2025550: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2025554: f2 28 60 03 stb %i1, [ %g1 + 3 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
2025558: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
202555c: 40 00 74 a6 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2025560: c2 2f bf e8 stb %g1, [ %fp + -24 ] <== NOT EXECUTED
if (rc > 0)
2025564: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2025568: 24 80 00 0d ble,a 202559c <rtems_rfs_rtems_fchmod+0xe4> <== NOT EXECUTED
202556c: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== 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);
2025570: e4 04 20 7c ld [ %l0 + 0x7c ], %l2 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2025574: 40 00 65 44 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2025578: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202557c: d0 04 80 00 ld [ %l2 ], %o0 <== NOT EXECUTED
2025580: 7f ff a0 75 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2025584: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("fchmod: closing inode", rc);
2025588: 40 00 8d af call 2048c44 <__errno> <== NOT EXECUTED
202558c: 01 00 00 00 nop <== NOT EXECUTED
2025590: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2025594: 81 c7 e0 08 ret <== NOT EXECUTED
2025598: 81 e8 00 00 restore <== NOT EXECUTED
202559c: 40 00 65 3a call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
20255a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20255a4: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
20255a8: 7f ff a0 6b call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
20255ac: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return 0;
}
20255b0: 81 c7 e0 08 ret <== NOT EXECUTED
20255b4: 81 e8 00 00 restore <== NOT EXECUTED
02023ea0 <rtems_rfs_rtems_fcntl>:
int
rtems_rfs_rtems_fcntl (int cmd,
rtems_libio_t* iop)
{
return 0;
}
2023ea0: 81 c3 e0 08 retl <== NOT EXECUTED
2023ea4: 90 10 20 00 clr %o0 <== NOT EXECUTED
02024194 <rtems_rfs_rtems_fdatasync>:
* @param iop
* @return int
*/
int
rtems_rfs_rtems_fdatasync (rtems_libio_t* iop)
{
2024194: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc;
rc = rtems_rfs_buffer_sync (rtems_rfs_rtems_pathloc_dev (&iop->pathinfo));
2024198: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
if (rc)
202419c: 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));
20241a0: 40 00 6a 4c call 203ead0 <rtems_rfs_buffer_sync> <== NOT EXECUTED
20241a4: d0 00 60 34 ld [ %g1 + 0x34 ], %o0 <== NOT EXECUTED
if (rc)
20241a8: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
20241ac: 12 80 00 04 bne 20241bc <rtems_rfs_rtems_fdatasync+0x28> <== NOT EXECUTED
20241b0: 01 00 00 00 nop <== NOT EXECUTED
return rtems_rfs_rtems_error ("fdatasync: sync", rc);
return 0;
}
20241b4: 81 c7 e0 08 ret <== NOT EXECUTED
20241b8: 81 e8 00 00 restore <== NOT EXECUTED
{
int rc;
rc = rtems_rfs_buffer_sync (rtems_rfs_rtems_pathloc_dev (&iop->pathinfo));
if (rc)
return rtems_rfs_rtems_error ("fdatasync: sync", rc);
20241bc: 40 00 92 a2 call 2048c44 <__errno> <== NOT EXECUTED
20241c0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20241c4: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED
return 0;
}
20241c8: 81 c7 e0 08 ret <== NOT EXECUTED
20241cc: 81 e8 00 00 restore <== NOT EXECUTED
02043c04 <rtems_rfs_rtems_file_close>:
* @param iop
* @return int
*/
static int
rtems_rfs_rtems_file_close (rtems_libio_t* iop)
{
2043c04: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
2043c08: 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);
2043c0c: 94 10 20 00 clr %o2 <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_file_fs (file);
2043c10: c2 04 60 1c ld [ %l1 + 0x1c ], %g1 <== NOT EXECUTED
2043c14: 92 10 20 00 clr %o1 <== NOT EXECUTED
2043c18: e0 00 60 98 ld [ %g1 + 0x98 ], %l0 <== NOT EXECUTED
2043c1c: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
2043c20: 7f ff 26 86 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
2043c24: 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);
2043c28: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2043c2c: 7f ff f2 47 call 2040548 <rtems_rfs_file_close> <== NOT EXECUTED
2043c30: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc > 0)
2043c34: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2043c38: 24 80 00 07 ble,a 2043c54 <rtems_rfs_rtems_file_close+0x50><== NOT EXECUTED
2043c3c: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== NOT EXECUTED
rc = rtems_rfs_rtems_error ("file-close: file close", rc);
2043c40: 40 00 14 01 call 2048c44 <__errno> <== NOT EXECUTED
2043c44: 01 00 00 00 nop <== NOT EXECUTED
2043c48: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED
2043c4c: b0 10 3f ff mov -1, %i0 <== 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);
2043c50: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2043c54: 7f ff eb 8c call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2043c58: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
2043c5c: 7f ff 26 be call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2043c60: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
return rc;
}
2043c64: 81 c7 e0 08 ret <== NOT EXECUTED
2043c68: 81 e8 00 00 restore <== NOT EXECUTED
02043c6c <rtems_rfs_rtems_file_ftruncate>:
* @return int
*/
int
rtems_rfs_rtems_file_ftruncate (rtems_libio_t* iop,
rtems_off64_t length)
{
2043c6c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
2043c70: e0 06 20 3c ld [ %i0 + 0x3c ], %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);
2043c74: 92 10 20 00 clr %o1 <== NOT EXECUTED
2043c78: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
2043c7c: 94 10 20 00 clr %o2 <== NOT EXECUTED
2043c80: 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)
{
2043c84: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
2043c88: c2 00 60 7c ld [ %g1 + 0x7c ], %g1 <== NOT EXECUTED
2043c8c: 7f ff 26 6b call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
2043c90: 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);
2043c94: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2043c98: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2043c9c: 7f ff f0 a4 call 203ff2c <rtems_rfs_file_set_size> <== NOT EXECUTED
2043ca0: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
if (rc)
2043ca4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2043ca8: 22 80 00 07 be,a 2043cc4 <rtems_rfs_rtems_file_ftruncate+0x58><== NOT EXECUTED
2043cac: d2 04 20 1c ld [ %l0 + 0x1c ], %o1 <== NOT EXECUTED
rc = rtems_rfs_rtems_error ("file_ftruncate: set size", rc);
2043cb0: 40 00 13 e5 call 2048c44 <__errno> <== NOT EXECUTED
2043cb4: 01 00 00 00 nop <== NOT EXECUTED
2043cb8: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED
2043cbc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
iop->size = rtems_rfs_file_size (file);
2043cc0: d2 04 20 1c ld [ %l0 + 0x1c ], %o1 <== NOT EXECUTED
2043cc4: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
2043cc8: 7f ff e7 8a call 203daf0 <rtems_rfs_block_get_size> <== NOT EXECUTED
2043ccc: 92 02 60 84 add %o1, 0x84, %o1 <== NOT EXECUTED
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
2043cd0: 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);
2043cd4: d0 3c 60 08 std %o0, [ %l1 + 8 ] <== NOT EXECUTED
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
2043cd8: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
2043cdc: 7f ff eb 6a call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2043ce0: e0 02 20 7c ld [ %o0 + 0x7c ], %l0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
2043ce4: 7f ff 26 9c call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2043ce8: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED
return rc;
}
2043cec: 81 c7 e0 08 ret <== NOT EXECUTED
2043cf0: 81 e8 00 00 restore <== NOT EXECUTED
02043aac <rtems_rfs_rtems_file_ioctl>:
int
rtems_rfs_rtems_file_ioctl (rtems_libio_t* iop, uint32_t command, void* buffer)
{
return 0;
}
2043aac: 81 c3 e0 08 retl <== NOT EXECUTED
2043ab0: 90 10 20 00 clr %o0 <== NOT EXECUTED
02043eec <rtems_rfs_rtems_file_lseek>:
*/
rtems_off64_t
rtems_rfs_rtems_file_lseek (rtems_libio_t* iop,
rtems_off64_t offset,
int whence)
{
2043eec: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
2043ef0: e0 06 20 3c ld [ %i0 + 0x3c ], %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);
2043ef4: 92 10 20 00 clr %o1 <== NOT EXECUTED
2043ef8: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
2043efc: 94 10 20 00 clr %o2 <== NOT EXECUTED
2043f00: c2 00 60 98 ld [ %g1 + 0x98 ], %g1 <== NOT EXECUTED
2043f04: c2 00 60 7c ld [ %g1 + 0x7c ], %g1 <== NOT EXECUTED
2043f08: 7f ff 25 cc call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
2043f0c: 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;
2043f10: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED
rc = rtems_rfs_file_seek (file, pos, &pos);
2043f14: 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;
2043f18: c4 3f bf f8 std %g2, [ %fp + -8 ] <== NOT EXECUTED
rc = rtems_rfs_file_seek (file, pos, &pos);
2043f1c: 92 10 00 02 mov %g2, %o1 <== NOT EXECUTED
2043f20: 94 10 00 03 mov %g3, %o2 <== NOT EXECUTED
2043f24: 7f ff f0 cb call 2040250 <rtems_rfs_file_seek> <== NOT EXECUTED
2043f28: 96 07 bf f8 add %fp, -8, %o3 <== NOT EXECUTED
if (rc)
2043f2c: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2043f30: 02 80 00 10 be 2043f70 <rtems_rfs_rtems_file_lseek+0x84> <== NOT EXECUTED
2043f34: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
2043f38: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
2043f3c: 7f ff ea d2 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2043f40: e0 02 20 7c ld [ %o0 + 0x7c ], %l0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
2043f44: 7f ff 26 04 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2043f48: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("file_lseek: lseek", rc);
2043f4c: 40 00 13 3e call 2048c44 <__errno> <== NOT EXECUTED
2043f50: 01 00 00 00 nop <== NOT EXECUTED
2043f54: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED
2043f58: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2043f5c: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
2043f60: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
return iop->offset;
}
2043f64: b0 10 00 02 mov %g2, %i0 <== NOT EXECUTED
2043f68: 81 c7 e0 08 ret <== NOT EXECUTED
2043f6c: 93 e8 00 03 restore %g0, %g3, %o1 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
return rtems_rfs_rtems_error ("file_lseek: lseek", rc);
}
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
2043f70: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
2043f74: 7f ff ea c4 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2043f78: e0 02 20 7c ld [ %o0 + 0x7c ], %l0 <== NOT EXECUTED
2043f7c: 7f ff 25 f6 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2043f80: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED
return iop->offset;
2043f84: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED
}
2043f88: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED
2043f8c: 81 c7 e0 08 ret <== NOT EXECUTED
2043f90: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
02043f94 <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)
{
2043f94: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
2043f98: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== 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);
2043f9c: 92 10 20 00 clr %o1 <== NOT EXECUTED
2043fa0: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
2043fa4: 94 10 20 00 clr %o2 <== NOT EXECUTED
2043fa8: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
2043fac: 7f ff 25 a3 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
2043fb0: 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);
2043fb4: d2 06 20 3c ld [ %i0 + 0x3c ], %o1 <== NOT EXECUTED
2043fb8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2043fbc: 94 10 20 00 clr %o2 <== NOT EXECUTED
2043fc0: 7f ff f1 d6 call 2040718 <rtems_rfs_file_open> <== NOT EXECUTED
2043fc4: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
if (rc > 0)
2043fc8: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2043fcc: 04 80 00 0d ble 2044000 <rtems_rfs_rtems_file_open+0x6c> <== NOT EXECUTED
2043fd0: c2 07 bf fc ld [ %fp + -4 ], %g1 <== 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);
2043fd4: f0 04 20 7c ld [ %l0 + 0x7c ], %i0 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2043fd8: 7f ff ea ab call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2043fdc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
2043fe0: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED
2043fe4: 7f ff 25 dc call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2043fe8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("file-open: open", rc);
2043fec: 40 00 13 16 call 2048c44 <__errno> <== NOT EXECUTED
2043ff0: 01 00 00 00 nop <== NOT EXECUTED
2043ff4: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2043ff8: 81 c7 e0 08 ret <== NOT EXECUTED
2043ffc: 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);
2044000: d2 00 60 1c ld [ %g1 + 0x1c ], %o1 <== NOT EXECUTED
2044004: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
2044008: 7f ff e6 ba call 203daf0 <rtems_rfs_block_get_size> <== NOT EXECUTED
204400c: 92 02 60 84 add %o1, 0x84, %o1 <== NOT EXECUTED
iop->file_info = file;
2044010: 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);
2044014: d0 3e 20 08 std %o0, [ %i0 + 8 ] <== NOT EXECUTED
iop->file_info = file;
2044018: c2 26 20 3c st %g1, [ %i0 + 0x3c ] <== 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);
204401c: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2044020: 7f ff ea 99 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2044024: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2044028: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
204402c: 7f ff 25 ca call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2044030: b0 10 20 00 clr %i0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
return 0;
}
2044034: 81 c7 e0 08 ret <== NOT EXECUTED
2044038: 81 e8 00 00 restore <== NOT EXECUTED
02043ab4 <rtems_rfs_rtems_file_read>:
*/
ssize_t
rtems_rfs_rtems_file_read (rtems_libio_t* iop,
void* buffer,
size_t count)
{
2043ab4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
2043ab8: e0 06 20 3c ld [ %i0 + 0x3c ], %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);
2043abc: 92 10 20 00 clr %o1 <== NOT EXECUTED
2043ac0: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
2043ac4: 94 10 20 00 clr %o2 <== NOT EXECUTED
2043ac8: c2 00 60 98 ld [ %g1 + 0x98 ], %g1 <== NOT EXECUTED
2043acc: c2 00 60 7c ld [ %g1 + 0x7c ], %g1 <== NOT EXECUTED
2043ad0: 7f ff 26 da call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
2043ad4: 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))
2043ad8: 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;
2043adc: e2 06 20 10 ld [ %i0 + 0x10 ], %l1 <== NOT EXECUTED
2043ae0: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
2043ae4: e4 06 20 14 ld [ %i0 + 0x14 ], %l2 <== NOT EXECUTED
2043ae8: 7f ff e8 02 call 203daf0 <rtems_rfs_block_get_size> <== NOT EXECUTED
2043aec: 92 02 60 84 add %o1, 0x84, %o1 <== NOT EXECUTED
if (pos < rtems_rfs_file_size (file))
2043af0: 80 a2 00 11 cmp %o0, %l1 <== NOT EXECUTED
2043af4: 08 80 00 33 bleu 2043bc0 <rtems_rfs_rtems_file_read+0x10c><== NOT EXECUTED
2043af8: b0 10 20 00 clr %i0 <== NOT EXECUTED
{
while (count)
2043afc: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
2043b00: 12 80 00 07 bne 2043b1c <rtems_rfs_rtems_file_read+0x68> <== NOT EXECUTED
2043b04: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
break;
}
}
}
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
2043b08: 10 80 00 34 b 2043bd8 <rtems_rfs_rtems_file_read+0x124> <== NOT EXECUTED
2043b0c: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
pos = iop->offset;
if (pos < rtems_rfs_file_size (file))
{
while (count)
2043b10: b4 a6 80 11 subcc %i2, %l1, %i2 <== NOT EXECUTED
2043b14: 02 80 00 23 be 2043ba0 <rtems_rfs_rtems_file_read+0xec> <== NOT EXECUTED
2043b18: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED
{
size_t size;
rc = rtems_rfs_file_io_start (file, &size, true);
2043b1c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2043b20: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2043b24: 7f ff f0 9c call 203fd94 <rtems_rfs_file_io_start> <== NOT EXECUTED
2043b28: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
2043b2c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
if (rc > 0)
2043b30: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
2043b34: 14 80 00 30 bg 2043bf4 <rtems_rfs_rtems_file_read+0x140> <== NOT EXECUTED
2043b38: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
{
read = rtems_rfs_rtems_error ("file-read: read: io-start", rc);
break;
}
if (size == 0)
2043b3c: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
2043b40: 80 a2 a0 00 cmp %o2, 0 <== NOT EXECUTED
2043b44: 02 80 00 17 be 2043ba0 <rtems_rfs_rtems_file_read+0xec> <== NOT EXECUTED
2043b48: 80 a2 80 1a cmp %o2, %i2 <== NOT EXECUTED
break;
if (size > count)
2043b4c: 28 80 00 05 bleu,a 2043b60 <rtems_rfs_rtems_file_read+0xac><== NOT EXECUTED
2043b50: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED
size = count;
2043b54: f4 27 bf fc st %i2, [ %fp + -4 ] <== NOT EXECUTED
2043b58: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
memcpy (data, rtems_rfs_file_data (file), size);
2043b5c: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED
2043b60: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
2043b64: d2 00 a0 24 ld [ %g2 + 0x24 ], %o1 <== NOT EXECUTED
2043b68: 40 00 21 83 call 204c174 <memcpy> <== NOT EXECUTED
2043b6c: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED
data += size;
2043b70: e2 07 bf fc ld [ %fp + -4 ], %l1 <== NOT EXECUTED
count -= size;
read += size;
rc = rtems_rfs_file_io_end (file, size, true);
2043b74: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2043b78: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2043b7c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
2043b80: 7f ff f1 ea call 2040328 <rtems_rfs_file_io_end> <== NOT EXECUTED
2043b84: b2 06 40 11 add %i1, %l1, %i1 <== NOT EXECUTED
if (rc > 0)
2043b88: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2043b8c: 04 bf ff e1 ble 2043b10 <rtems_rfs_rtems_file_read+0x5c> <== NOT EXECUTED
2043b90: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
{
read = rtems_rfs_rtems_error ("file-read: read: io-end", rc);
2043b94: 40 00 14 2c call 2048c44 <__errno> <== NOT EXECUTED
2043b98: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2043b9c: e6 22 00 00 st %l3, [ %o0 ] <== NOT EXECUTED
break;
}
}
}
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
2043ba0: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
2043ba4: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
2043ba8: 7f ff eb b7 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2043bac: e0 02 20 7c ld [ %o0 + 0x7c ], %l0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
2043bb0: 7f ff 26 e9 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2043bb4: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED
return read;
}
2043bb8: 81 c7 e0 08 ret <== NOT EXECUTED
2043bbc: 81 e8 00 00 restore <== NOT EXECUTED
rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));
pos = iop->offset;
if (pos < rtems_rfs_file_size (file))
2043bc0: 12 80 00 04 bne 2043bd0 <rtems_rfs_rtems_file_read+0x11c> <== NOT EXECUTED
2043bc4: 80 a2 40 12 cmp %o1, %l2 <== NOT EXECUTED
2043bc8: 38 bf ff cd bgu,a 2043afc <rtems_rfs_rtems_file_read+0x48><== NOT EXECUTED
2043bcc: b0 10 20 00 clr %i0 <== NOT EXECUTED
break;
}
}
}
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
2043bd0: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
if (size > count)
size = count;
memcpy (data, rtems_rfs_file_data (file), size);
data += size;
2043bd4: b0 10 20 00 clr %i0 <== NOT EXECUTED
break;
}
}
}
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
2043bd8: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
2043bdc: 7f ff eb aa call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2043be0: e0 02 20 7c ld [ %o0 + 0x7c ], %l0 <== NOT EXECUTED
2043be4: 7f ff 26 dc call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2043be8: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED
return read;
}
2043bec: 81 c7 e0 08 ret <== NOT EXECUTED
2043bf0: 81 e8 00 00 restore <== NOT EXECUTED
size_t size;
rc = rtems_rfs_file_io_start (file, &size, true);
if (rc > 0)
{
read = rtems_rfs_rtems_error ("file-read: read: io-start", rc);
2043bf4: 40 00 14 14 call 2048c44 <__errno> <== NOT EXECUTED
2043bf8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2043bfc: 10 bf ff e9 b 2043ba0 <rtems_rfs_rtems_file_read+0xec> <== NOT EXECUTED
2043c00: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
02043cf4 <rtems_rfs_rtems_file_write>:
*/
ssize_t
rtems_rfs_rtems_file_write (rtems_libio_t* iop,
const void* buffer,
size_t count)
{
2043cf4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
2043cf8: e0 06 20 3c ld [ %i0 + 0x3c ], %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);
2043cfc: 92 10 20 00 clr %o1 <== NOT EXECUTED
2043d00: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
2043d04: 94 10 20 00 clr %o2 <== NOT EXECUTED
2043d08: 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)
{
2043d0c: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
2043d10: c2 00 60 7c ld [ %g1 + 0x7c ], %g1 <== NOT EXECUTED
2043d14: 7f ff 26 49 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
2043d18: 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))
2043d1c: 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;
2043d20: e4 1e 20 10 ldd [ %i0 + 0x10 ], %l2 <== NOT EXECUTED
2043d24: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
2043d28: 7f ff e7 72 call 203daf0 <rtems_rfs_block_get_size> <== NOT EXECUTED
2043d2c: 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))
2043d30: 80 a2 00 12 cmp %o0, %l2 <== NOT EXECUTED
2043d34: 38 80 00 0e bgu,a 2043d6c <rtems_rfs_rtems_file_write+0x78><== NOT EXECUTED
2043d38: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
2043d3c: 80 a2 00 12 cmp %o0, %l2 <== NOT EXECUTED
2043d40: 02 80 00 45 be 2043e54 <rtems_rfs_rtems_file_write+0x160> <== NOT EXECUTED
2043d44: 80 a2 40 13 cmp %o1, %l3 <== NOT EXECUTED
{
rc = rtems_rfs_file_set_size (file, pos + 1);
2043d48: 86 84 e0 01 addcc %l3, 1, %g3 <== NOT EXECUTED
2043d4c: 84 44 a0 00 addx %l2, 0, %g2 <== NOT EXECUTED
2043d50: 94 10 00 03 mov %g3, %o2 <== NOT EXECUTED
2043d54: 92 10 00 02 mov %g2, %o1 <== NOT EXECUTED
2043d58: 7f ff f0 75 call 203ff2c <rtems_rfs_file_set_size> <== NOT EXECUTED
2043d5c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc)
2043d60: a8 92 20 00 orcc %o0, 0, %l4 <== NOT EXECUTED
2043d64: 12 80 00 47 bne 2043e80 <rtems_rfs_rtems_file_write+0x18c><== NOT EXECUTED
2043d68: 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);
}
}
rtems_rfs_file_set_bpos (file, pos);
2043d6c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2043d70: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
2043d74: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
2043d78: 7f ff e7 2f call 203da34 <rtems_rfs_block_get_bpos> <== NOT EXECUTED
2043d7c: 96 04 20 10 add %l0, 0x10, %o3 <== NOT EXECUTED
while (count)
2043d80: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
2043d84: 02 80 00 27 be 2043e20 <rtems_rfs_rtems_file_write+0x12c> <== NOT EXECUTED
2043d88: b0 10 20 00 clr %i0 <== NOT EXECUTED
2043d8c: 10 80 00 05 b 2043da0 <rtems_rfs_rtems_file_write+0xac> <== NOT EXECUTED
2043d90: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED
2043d94: b4 a6 80 12 subcc %i2, %l2, %i2 <== NOT EXECUTED
2043d98: 02 80 00 22 be 2043e20 <rtems_rfs_rtems_file_write+0x12c> <== NOT EXECUTED
2043d9c: b0 06 00 12 add %i0, %l2, %i0 <== NOT EXECUTED
{
size_t size = count;
rc = rtems_rfs_file_io_start (file, &size, false);
2043da0: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
rtems_rfs_file_set_bpos (file, pos);
while (count)
{
size_t size = count;
2043da4: f4 27 bf fc st %i2, [ %fp + -4 ] <== NOT EXECUTED
rc = rtems_rfs_file_io_start (file, &size, false);
2043da8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2043dac: 7f ff ef fa call 203fd94 <rtems_rfs_file_io_start> <== NOT EXECUTED
2043db0: 94 10 20 00 clr %o2 <== NOT EXECUTED
}
if (size > count)
size = count;
memcpy (rtems_rfs_file_data (file), data, size);
2043db4: 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)
2043db8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2043dbc: 12 80 00 3c bne 2043eac <rtems_rfs_rtems_file_write+0x1b8><== NOT EXECUTED
2043dc0: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
{
write = rtems_rfs_rtems_error ("file-write: write open", rc);
break;
}
if (size > count)
2043dc4: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
2043dc8: 80 a2 80 1a cmp %o2, %i2 <== NOT EXECUTED
2043dcc: 28 80 00 05 bleu,a 2043de0 <rtems_rfs_rtems_file_write+0xec><== NOT EXECUTED
2043dd0: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED
size = count;
2043dd4: f4 27 bf fc st %i2, [ %fp + -4 ] <== NOT EXECUTED
2043dd8: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
memcpy (rtems_rfs_file_data (file), data, size);
2043ddc: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED
2043de0: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
2043de4: d0 00 a0 24 ld [ %g2 + 0x24 ], %o0 <== NOT EXECUTED
2043de8: 40 00 20 e3 call 204c174 <memcpy> <== NOT EXECUTED
2043dec: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED
data += size;
2043df0: e4 07 bf fc ld [ %fp + -4 ], %l2 <== NOT EXECUTED
count -= size;
write += size;
rc = rtems_rfs_file_io_end (file, size, false);
2043df4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2043df8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2043dfc: 94 10 20 00 clr %o2 <== NOT EXECUTED
2043e00: 7f ff f1 4a call 2040328 <rtems_rfs_file_io_end> <== NOT EXECUTED
2043e04: b2 06 40 12 add %i1, %l2, %i1 <== NOT EXECUTED
if (rc)
2043e08: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2043e0c: 02 bf ff e2 be 2043d94 <rtems_rfs_rtems_file_write+0xa0> <== NOT EXECUTED
2043e10: a8 10 00 08 mov %o0, %l4 <== NOT EXECUTED
{
write = rtems_rfs_rtems_error ("file-write: write close", rc);
2043e14: 40 00 13 8c call 2048c44 <__errno> <== NOT EXECUTED
2043e18: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2043e1c: e8 22 00 00 st %l4, [ %o0 ] <== NOT EXECUTED
break;
}
}
iop->size = rtems_rfs_file_size (file);
2043e20: d2 04 20 1c ld [ %l0 + 0x1c ], %o1 <== NOT EXECUTED
2043e24: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
2043e28: 7f ff e7 32 call 203daf0 <rtems_rfs_block_get_size> <== NOT EXECUTED
2043e2c: 92 02 60 84 add %o1, 0x84, %o1 <== NOT EXECUTED
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
2043e30: 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);
2043e34: d0 3c 60 08 std %o0, [ %l1 + 8 ] <== NOT EXECUTED
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
2043e38: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
2043e3c: 7f ff eb 12 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2043e40: e0 02 20 7c ld [ %o0 + 0x7c ], %l0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
2043e44: 7f ff 26 44 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2043e48: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED
return write;
}
2043e4c: 81 c7 e0 08 ret <== NOT EXECUTED
2043e50: 81 e8 00 00 restore <== 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))
2043e54: 38 bf ff c6 bgu,a 2043d6c <rtems_rfs_rtems_file_write+0x78><== NOT EXECUTED
2043e58: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
{
rc = rtems_rfs_file_set_size (file, pos + 1);
2043e5c: 86 84 e0 01 addcc %l3, 1, %g3 <== NOT EXECUTED
2043e60: 84 44 a0 00 addx %l2, 0, %g2 <== NOT EXECUTED
2043e64: 94 10 00 03 mov %g3, %o2 <== NOT EXECUTED
2043e68: 92 10 00 02 mov %g2, %o1 <== NOT EXECUTED
2043e6c: 7f ff f0 30 call 203ff2c <rtems_rfs_file_set_size> <== NOT EXECUTED
2043e70: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc)
2043e74: a8 92 20 00 orcc %o0, 0, %l4 <== NOT EXECUTED
2043e78: 02 bf ff bd be 2043d6c <rtems_rfs_rtems_file_write+0x78> <== NOT EXECUTED
2043e7c: 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);
2043e80: 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));
2043e84: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
2043e88: 7f ff ea ff call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2043e8c: e0 02 20 7c ld [ %o0 + 0x7c ], %l0 <== NOT EXECUTED
2043e90: 7f ff 26 31 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2043e94: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("file-write: write extend", rc);
2043e98: 40 00 13 6b call 2048c44 <__errno> <== NOT EXECUTED
2043e9c: 01 00 00 00 nop <== NOT EXECUTED
2043ea0: e8 22 00 00 st %l4, [ %o0 ] <== NOT EXECUTED
2043ea4: 81 c7 e0 08 ret <== NOT EXECUTED
2043ea8: 81 e8 00 00 restore <== NOT EXECUTED
size_t size = count;
rc = rtems_rfs_file_io_start (file, &size, false);
if (rc)
{
write = rtems_rfs_rtems_error ("file-write: write open", rc);
2043eac: 40 00 13 66 call 2048c44 <__errno> <== NOT EXECUTED
2043eb0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
write = rtems_rfs_rtems_error ("file-write: write close", rc);
break;
}
}
iop->size = rtems_rfs_file_size (file);
2043eb4: d2 04 20 1c ld [ %l0 + 0x1c ], %o1 <== NOT EXECUTED
size_t size = count;
rc = rtems_rfs_file_io_start (file, &size, false);
if (rc)
{
write = rtems_rfs_rtems_error ("file-write: write open", rc);
2043eb8: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
2043ebc: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
2043ec0: 7f ff e7 0c call 203daf0 <rtems_rfs_block_get_size> <== NOT EXECUTED
2043ec4: 92 02 60 84 add %o1, 0x84, %o1 <== NOT EXECUTED
}
}
iop->size = rtems_rfs_file_size (file);
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
2043ec8: 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);
2043ecc: d0 3c 60 08 std %o0, [ %l1 + 8 ] <== NOT EXECUTED
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
2043ed0: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
2043ed4: 7f ff ea ec call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2043ed8: e0 02 20 7c ld [ %o0 + 0x7c ], %l0 <== NOT EXECUTED
2043edc: 7f ff 26 1e call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2043ee0: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED
return write;
}
2043ee4: 81 c7 e0 08 ret <== NOT EXECUTED
2043ee8: 81 e8 00 00 restore <== NOT EXECUTED
02023e98 <rtems_rfs_rtems_freenodinfo>:
int
rtems_rfs_rtems_freenodinfo (rtems_filesystem_location_info_t* pathloc)
{
return 0;
}
2023e98: 81 c3 e0 08 retl <== NOT EXECUTED
2023e9c: 90 10 20 00 clr %o0 <== NOT EXECUTED
02025830 <rtems_rfs_rtems_imode>:
{
/*
* Mapping matches RTEMS so no need to change.
*/
return mode;
}
2025830: 81 c3 e0 08 retl <== NOT EXECUTED
02023f08 <rtems_rfs_rtems_initialise>:
*/
int
rtems_rfs_rtems_initialise (rtems_filesystem_mount_table_entry_t* mt_entry,
const void* data)
{
2023f08: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int rc;
/*
* Parse the options the user specifiies.
*/
while (options)
2023f0c: a8 10 20 05 mov 5, %l4 <== NOT EXECUTED
2023f10: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2023f14: 02 80 00 1f be 2023f90 <rtems_rfs_rtems_initialise+0x88> <== NOT EXECUTED
2023f18: a2 10 20 00 clr %l1 <== NOT EXECUTED
2023f1c: 25 00 81 a0 sethi %hi(0x2068000), %l2 <== NOT EXECUTED
2023f20: 21 00 81 a0 sethi %hi(0x2068000), %l0 <== NOT EXECUTED
{
printf ("options=%s\n", options);
if (strncmp (options, "hold-bitmaps",
sizeof ("hold-bitmaps") - 1) == 0)
flags |= RTEMS_RFS_FS_BITMAPS_HOLD;
else if (strncmp (options, "no-local-cache",
2023f24: 27 00 81 a0 sethi %hi(0x2068000), %l3 <== NOT EXECUTED
sizeof ("no-local-cache") - 1) == 0)
flags |= RTEMS_RFS_FS_NO_LOCAL_CACHE;
else if (strncmp (options, "max-held-bufs",
2023f28: 2b 00 81 a0 sethi %hi(0x2068000), %l5 <== NOT EXECUTED
/*
* Parse the options the user specifiies.
*/
while (options)
{
printf ("options=%s\n", options);
2023f2c: a4 14 a1 58 or %l2, 0x158, %l2 <== NOT EXECUTED
if (strncmp (options, "hold-bitmaps",
2023f30: a0 14 21 68 or %l0, 0x168, %l0 <== NOT EXECUTED
sizeof ("hold-bitmaps") - 1) == 0)
flags |= RTEMS_RFS_FS_BITMAPS_HOLD;
else if (strncmp (options, "no-local-cache",
2023f34: a6 14 e1 78 or %l3, 0x178, %l3 <== NOT EXECUTED
sizeof ("no-local-cache") - 1) == 0)
flags |= RTEMS_RFS_FS_NO_LOCAL_CACHE;
else if (strncmp (options, "max-held-bufs",
2023f38: aa 15 61 88 or %l5, 0x188, %l5 <== NOT EXECUTED
/*
* Parse the options the user specifiies.
*/
while (options)
{
printf ("options=%s\n", options);
2023f3c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2023f40: 40 00 a5 3c call 204d430 <printf> <== NOT EXECUTED
2023f44: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
if (strncmp (options, "hold-bitmaps",
2023f48: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
2023f4c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2023f50: 40 00 af 4d call 204fc84 <strncmp> <== NOT EXECUTED
2023f54: 94 10 20 0c mov 0xc, %o2 <== NOT EXECUTED
2023f58: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023f5c: 12 80 00 1e bne 2023fd4 <rtems_rfs_rtems_initialise+0xcc> <== NOT EXECUTED
2023f60: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
sizeof ("hold-bitmaps") - 1) == 0)
flags |= RTEMS_RFS_FS_BITMAPS_HOLD;
2023f64: a2 14 60 01 or %l1, 1, %l1 <== NOT EXECUTED
max_held_buffers = strtoul (options + sizeof ("max-held-bufs"), 0, 0);
}
else
return rtems_rfs_rtems_error ("initialise: invalid option", EINVAL);
options = strchr (options, ',');
2023f68: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
2023f6c: 40 00 ac 6a call 204f114 <strchr> <== NOT EXECUTED
2023f70: 92 10 20 2c mov 0x2c, %o1 <== NOT EXECUTED
if (options)
2023f74: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023f78: 02 80 00 06 be 2023f90 <rtems_rfs_rtems_initialise+0x88> <== NOT EXECUTED
2023f7c: 01 00 00 00 nop <== NOT EXECUTED
{
++options;
if (*options == '\0')
2023f80: c2 4a 20 01 ldsb [ %o0 + 1 ], %g1 <== NOT EXECUTED
2023f84: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2023f88: 12 bf ff ed bne 2023f3c <rtems_rfs_rtems_initialise+0x34> <== NOT EXECUTED
2023f8c: b2 02 20 01 add %o0, 1, %i1 <== NOT EXECUTED
options = NULL;
}
}
rtems = malloc (sizeof (rtems_rfs_rtems_private));
2023f90: 7f ff 94 34 call 2009060 <malloc> <== NOT EXECUTED
2023f94: 90 10 20 04 mov 4, %o0 <== NOT EXECUTED
if (!rtems)
2023f98: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2023f9c: 02 80 00 53 be 20240e8 <rtems_rfs_rtems_initialise+0x1e0> <== NOT EXECUTED
2023fa0: 01 00 00 00 nop <== NOT EXECUTED
return rtems_rfs_rtems_error ("initialise: local data", ENOMEM);
memset (rtems, 0, sizeof (rtems_rfs_rtems_private));
rc = rtems_rfs_mutex_create (&rtems->access);
2023fa4: 40 00 7d 2d call 2043458 <rtems_rfs_mutex_create> <== NOT EXECUTED
2023fa8: c0 24 00 00 clr [ %l0 ] <== NOT EXECUTED
if (rc > 0)
2023fac: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2023fb0: 24 80 00 1c ble,a 2024020 <rtems_rfs_rtems_initialise+0x118><== NOT EXECUTED
2023fb4: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED
{
free (rtems);
2023fb8: 7f ff 92 49 call 20088dc <free> <== NOT EXECUTED
2023fbc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("initialise: cannot create mutex", rc);
2023fc0: 40 00 93 21 call 2048c44 <__errno> <== NOT EXECUTED
2023fc4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2023fc8: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
2023fcc: 81 c7 e0 08 ret <== NOT EXECUTED
2023fd0: 81 e8 00 00 restore <== NOT EXECUTED
{
printf ("options=%s\n", options);
if (strncmp (options, "hold-bitmaps",
sizeof ("hold-bitmaps") - 1) == 0)
flags |= RTEMS_RFS_FS_BITMAPS_HOLD;
else if (strncmp (options, "no-local-cache",
2023fd4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
2023fd8: 40 00 af 2b call 204fc84 <strncmp> <== NOT EXECUTED
2023fdc: 94 10 20 0e mov 0xe, %o2 <== NOT EXECUTED
2023fe0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023fe4: 12 80 00 04 bne 2023ff4 <rtems_rfs_rtems_initialise+0xec> <== NOT EXECUTED
2023fe8: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
sizeof ("no-local-cache") - 1) == 0)
flags |= RTEMS_RFS_FS_NO_LOCAL_CACHE;
2023fec: 10 bf ff df b 2023f68 <rtems_rfs_rtems_initialise+0x60> <== NOT EXECUTED
2023ff0: a2 14 60 02 or %l1, 2, %l1 <== NOT EXECUTED
else if (strncmp (options, "max-held-bufs",
2023ff4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
2023ff8: 40 00 af 23 call 204fc84 <strncmp> <== NOT EXECUTED
2023ffc: 94 10 20 0d mov 0xd, %o2 <== NOT EXECUTED
2024000: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024004: 12 80 00 26 bne 202409c <rtems_rfs_rtems_initialise+0x194><== NOT EXECUTED
2024008: 90 06 60 0e add %i1, 0xe, %o0 <== NOT EXECUTED
sizeof ("max-held-bufs") - 1) == 0)
{
max_held_buffers = strtoul (options + sizeof ("max-held-bufs"), 0, 0);
202400c: 92 10 20 00 clr %o1 <== NOT EXECUTED
2024010: 40 00 b4 6a call 20511b8 <strtoul> <== NOT EXECUTED
2024014: 94 10 20 00 clr %o2 <== NOT EXECUTED
2024018: 10 bf ff d4 b 2023f68 <rtems_rfs_rtems_initialise+0x60> <== NOT EXECUTED
202401c: a8 10 00 08 mov %o0, %l4 <== 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);
2024020: 92 10 20 00 clr %o1 <== NOT EXECUTED
2024024: 7f ff a5 85 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
2024028: 94 10 20 00 clr %o2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
202402c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024030: 12 80 00 11 bne 2024074 <rtems_rfs_rtems_initialise+0x16c><== NOT EXECUTED
2024034: 94 10 00 11 mov %l1, %o2 <== 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);
2024038: d0 06 20 70 ld [ %i0 + 0x70 ], %o0 <== NOT EXECUTED
202403c: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
2024040: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2024044: 40 00 72 81 call 2040a48 <rtems_rfs_fs_open> <== NOT EXECUTED
2024048: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
if (rc)
202404c: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2024050: 02 80 00 19 be 20240b4 <rtems_rfs_rtems_initialise+0x1ac> <== NOT EXECUTED
2024054: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
{
free (rtems);
2024058: 7f ff 92 21 call 20088dc <free> <== NOT EXECUTED
202405c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("initialise: open", rc);
2024060: 40 00 92 f9 call 2048c44 <__errno> <== NOT EXECUTED
2024064: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2024068: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
202406c: 81 c7 e0 08 ret <== NOT EXECUTED
2024070: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = rtems_rfs_mutex_lock (&rtems->access);
if (rc > 0)
{
rtems_rfs_mutex_destroy (&rtems->access);
2024074: 40 00 7c f1 call 2043438 <rtems_rfs_mutex_destroy> <== NOT EXECUTED
2024078: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
free (rtems);
202407c: 7f ff 92 18 call 20088dc <free> <== NOT EXECUTED
2024080: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("initialise: cannot lock access mutex", rc);
2024084: 40 00 92 f0 call 2048c44 <__errno> <== NOT EXECUTED
2024088: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202408c: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2024090: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2024094: 81 c7 e0 08 ret <== NOT EXECUTED
2024098: 81 e8 00 00 restore <== NOT EXECUTED
sizeof ("max-held-bufs") - 1) == 0)
{
max_held_buffers = strtoul (options + sizeof ("max-held-bufs"), 0, 0);
}
else
return rtems_rfs_rtems_error ("initialise: invalid option", EINVAL);
202409c: 40 00 92 ea call 2048c44 <__errno> <== NOT EXECUTED
20240a0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20240a4: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
20240a8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20240ac: 81 c7 e0 08 ret <== NOT EXECUTED
20240b0: 81 e8 00 00 restore <== NOT EXECUTED
{
free (rtems);
return rtems_rfs_rtems_error ("initialise: open", rc);
}
mt_entry->fs_info = fs;
20240b4: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
mt_entry->mt_fs_root.node_access = (void*) RTEMS_RFS_ROOT_INO;
20240b8: c2 26 20 1c st %g1, [ %i0 + 0x1c ] <== NOT EXECUTED
mt_entry->mt_fs_root.handlers = &rtems_rfs_rtems_dir_handlers;
20240bc: 03 00 81 b4 sethi %hi(0x206d000), %g1 <== NOT EXECUTED
20240c0: 82 10 62 40 or %g1, 0x240, %g1 ! 206d240 <rtems_rfs_rtems_dir_handlers><== NOT EXECUTED
20240c4: c2 26 20 24 st %g1, [ %i0 + 0x24 ] <== NOT EXECUTED
mt_entry->mt_fs_root.ops = &rtems_rfs_ops;
20240c8: 03 00 81 a0 sethi %hi(0x2068000), %g1 <== NOT EXECUTED
20240cc: 82 10 61 d8 or %g1, 0x1d8, %g1 ! 20681d8 <rtems_rfs_ops> <== NOT EXECUTED
{
free (rtems);
return rtems_rfs_rtems_error ("initialise: open", rc);
}
mt_entry->fs_info = fs;
20240d0: 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;
20240d4: c2 26 20 28 st %g1, [ %i0 + 0x28 ] <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
20240d8: 7f ff ff 74 call 2023ea8 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20240dc: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
20240e0: 81 c7 e0 08 ret <== NOT EXECUTED
20240e4: 81 e8 00 00 restore <== NOT EXECUTED
}
}
rtems = malloc (sizeof (rtems_rfs_rtems_private));
if (!rtems)
return rtems_rfs_rtems_error ("initialise: local data", ENOMEM);
20240e8: 40 00 92 d7 call 2048c44 <__errno> <== NOT EXECUTED
20240ec: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20240f0: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
20240f4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20240f8: 81 c7 e0 08 ret <== NOT EXECUTED
20240fc: 81 e8 00 00 restore <== NOT EXECUTED
020247a4 <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)
{
20247a4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (to_loc);
20247a8: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino target = rtems_rfs_rtems_get_pathloc_ino (to_loc);
20247ac: 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);
20247b0: 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);
20247b4: 92 10 20 00 clr %o1 <== NOT EXECUTED
20247b8: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
20247bc: 94 10 20 00 clr %o2 <== NOT EXECUTED
20247c0: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
20247c4: 7f ff a3 9d call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
20247c8: e4 06 40 00 ld [ %i1 ], %l2 <== NOT EXECUTED
printf ("rtems-rfs-rtems: link: in: parent:%" PRId32 " target:%" PRId32 "\n",
parent, target);
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_link (fs, name, strlen (name), parent, target, false);
20247cc: 40 00 ac c6 call 204fae4 <strlen> <== NOT EXECUTED
20247d0: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
20247d4: 98 10 00 11 mov %l1, %o4 <== NOT EXECUTED
20247d8: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
20247dc: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
20247e0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20247e4: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
20247e8: 40 00 7a b7 call 20432c4 <rtems_rfs_link> <== NOT EXECUTED
20247ec: 9a 10 20 00 clr %o5 <== NOT EXECUTED
if (rc)
20247f0: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
20247f4: 22 80 00 0d be,a 2024828 <rtems_rfs_rtems_link+0x84> <== NOT EXECUTED
20247f8: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== 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);
20247fc: e4 04 20 7c ld [ %l0 + 0x7c ], %l2 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2024800: 40 00 68 a1 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2024804: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
2024808: d0 04 80 00 ld [ %l2 ], %o0 <== NOT EXECUTED
202480c: 7f ff a3 d2 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2024810: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("link: linking", rc);
2024814: 40 00 91 0c call 2048c44 <__errno> <== NOT EXECUTED
2024818: 01 00 00 00 nop <== NOT EXECUTED
202481c: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2024820: 81 c7 e0 08 ret <== NOT EXECUTED
2024824: 81 e8 00 00 restore <== NOT EXECUTED
2024828: 40 00 68 97 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
202482c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2024830: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
2024834: 7f ff a3 c8 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2024838: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return 0;
}
202483c: 81 c7 e0 08 ret <== NOT EXECUTED
2024840: 81 e8 00 00 restore <== NOT EXECUTED
020252c4 <rtems_rfs_rtems_mknod>:
int
rtems_rfs_rtems_mknod (const char *name,
mode_t mode,
dev_t dev,
rtems_filesystem_location_info_t *pathloc)
{
20252c4: 9d e3 bf 60 save %sp, -160, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
20252c8: c2 07 20 10 ld [ %i4 + 0x10 ], %g1 <== 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);
20252cc: 92 10 20 00 clr %o1 <== NOT EXECUTED
20252d0: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
20252d4: 94 10 20 00 clr %o2 <== NOT EXECUTED
20252d8: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (pathloc);
20252dc: e2 07 00 00 ld [ %i4 ], %l1 <== NOT EXECUTED
20252e0: 7f ff a0 d6 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
20252e4: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
gid = 0;
#endif
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_inode_create (fs, parent, name, strlen (name),
20252e8: 40 00 a9 ff call 204fae4 <strlen> <== NOT EXECUTED
20252ec: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20252f0: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
rtems_rfs_rtems_imode (mode),
20252f4: 40 00 01 4f call 2025830 <rtems_rfs_rtems_imode> <== NOT EXECUTED
20252f8: 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),
20252fc: 82 07 bf fc add %fp, -4, %g1 <== NOT EXECUTED
2025300: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2025304: 99 2a 20 10 sll %o0, 0x10, %o4 <== NOT EXECUTED
2025308: c0 23 a0 5c clr [ %sp + 0x5c ] <== NOT EXECUTED
202530c: c0 23 a0 60 clr [ %sp + 0x60 ] <== NOT EXECUTED
2025310: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
2025314: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
2025318: 99 33 20 10 srl %o4, 0x10, %o4 <== NOT EXECUTED
202531c: c2 23 a0 64 st %g1, [ %sp + 0x64 ] <== NOT EXECUTED
2025320: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2025324: 40 00 75 c2 call 2042a2c <rtems_rfs_inode_create> <== NOT EXECUTED
2025328: 9a 10 20 01 mov 1, %o5 <== NOT EXECUTED
rtems_rfs_rtems_imode (mode),
1, uid, gid, &ino);
if (rc > 0)
202532c: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2025330: 04 80 00 0d ble 2025364 <rtems_rfs_rtems_mknod+0xa0> <== NOT EXECUTED
2025334: d2 07 bf fc ld [ %fp + -4 ], %o1 <== 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);
2025338: e4 04 20 7c ld [ %l0 + 0x7c ], %l2 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
202533c: 40 00 65 d2 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2025340: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
2025344: d0 04 80 00 ld [ %l2 ], %o0 <== NOT EXECUTED
2025348: 7f ff a1 03 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
202534c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("mknod: inode create", rc);
2025350: 40 00 8e 3d call 2048c44 <__errno> <== NOT EXECUTED
2025354: 01 00 00 00 nop <== NOT EXECUTED
2025358: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
202535c: 81 c7 e0 08 ret <== NOT EXECUTED
2025360: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
2025364: a2 07 bf d4 add %fp, -44, %l1 <== NOT EXECUTED
2025368: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202536c: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2025370: 40 00 75 4b call 204289c <rtems_rfs_inode_open> <== NOT EXECUTED
2025374: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
2025378: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
202537c: 04 80 00 0d ble 20253b0 <rtems_rfs_rtems_mknod+0xec> <== NOT EXECUTED
2025380: 03 00 00 3c sethi %hi(0xf000), %g1 <== 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);
2025384: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2025388: 40 00 65 bf call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
202538c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2025390: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
2025394: 7f ff a0 f0 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2025398: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("mknod: inode open", rc);
202539c: 40 00 8e 2a call 2048c44 <__errno> <== NOT EXECUTED
20253a0: 01 00 00 00 nop <== NOT EXECUTED
20253a4: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
20253a8: 81 c7 e0 08 ret <== NOT EXECUTED
20253ac: 81 e8 00 00 restore <== NOT EXECUTED
}
if (S_ISDIR(mode) || S_ISREG(mode))
20253b0: b2 0e 40 01 and %i1, %g1, %i1 <== NOT EXECUTED
20253b4: 03 00 00 20 sethi %hi(0x8000), %g1 <== NOT EXECUTED
20253b8: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
20253bc: 02 80 00 20 be 202543c <rtems_rfs_rtems_mknod+0x178> <== NOT EXECUTED
20253c0: 03 00 00 10 sethi %hi(0x4000), %g1 <== NOT EXECUTED
20253c4: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
20253c8: 02 80 00 1d be 202543c <rtems_rfs_rtems_mknod+0x178> <== NOT EXECUTED
20253cc: 03 00 00 18 sethi %hi(0x6000), %g1 <== NOT EXECUTED
{
}
else if (S_ISCHR (mode) || S_ISBLK (mode))
20253d0: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
20253d4: 12 80 00 2b bne 2025480 <rtems_rfs_rtems_mknod+0x1bc> <== NOT EXECUTED
20253d8: 03 00 00 08 sethi %hi(0x2000), %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);
20253dc: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
20253e0: 85 36 a0 18 srl %i2, 0x18, %g2 <== NOT EXECUTED
20253e4: c4 28 60 1c stb %g2, [ %g1 + 0x1c ] <== NOT EXECUTED
20253e8: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
20253ec: 85 36 a0 10 srl %i2, 0x10, %g2 <== NOT EXECUTED
20253f0: c4 28 60 1d stb %g2, [ %g1 + 0x1d ] <== NOT EXECUTED
20253f4: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
20253f8: 85 36 a0 08 srl %i2, 8, %g2 <== NOT EXECUTED
20253fc: c4 28 60 1e stb %g2, [ %g1 + 0x1e ] <== NOT EXECUTED
2025400: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
2025404: 85 36 e0 18 srl %i3, 0x18, %g2 <== NOT EXECUTED
2025408: f4 28 60 1f stb %i2, [ %g1 + 0x1f ] <== NOT EXECUTED
202540c: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
2025410: 87 36 e0 10 srl %i3, 0x10, %g3 <== NOT EXECUTED
2025414: c4 28 60 20 stb %g2, [ %g1 + 0x20 ] <== NOT EXECUTED
2025418: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
202541c: 85 36 e0 08 srl %i3, 8, %g2 <== NOT EXECUTED
2025420: c6 28 60 21 stb %g3, [ %g1 + 0x21 ] <== NOT EXECUTED
2025424: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
2025428: c4 28 60 22 stb %g2, [ %g1 + 0x22 ] <== NOT EXECUTED
202542c: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
2025430: f6 28 60 23 stb %i3, [ %g1 + 0x23 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
2025434: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2025438: c2 2f bf e4 stb %g1, [ %fp + -28 ] <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("mknod: bad mode", EINVAL);
}
rc = rtems_rfs_inode_close (fs, &inode);
202543c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2025440: 40 00 74 ed call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2025444: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc > 0)
2025448: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
202544c: 04 80 00 09 ble 2025470 <rtems_rfs_rtems_mknod+0x1ac> <== NOT EXECUTED
2025450: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
2025454: 7f ff fa 95 call 2023ea8 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2025458: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("mknod: closing inode", rc);
202545c: 40 00 8d fa call 2048c44 <__errno> <== NOT EXECUTED
2025460: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2025464: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2025468: 81 c7 e0 08 ret <== NOT EXECUTED
202546c: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
2025470: 7f ff fa 8e call 2023ea8 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2025474: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2025478: 81 c7 e0 08 ret <== NOT EXECUTED
202547c: 81 e8 00 00 restore <== NOT EXECUTED
}
if (S_ISDIR(mode) || S_ISREG(mode))
{
}
else if (S_ISCHR (mode) || S_ISBLK (mode))
2025480: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
2025484: 02 bf ff d7 be 20253e0 <rtems_rfs_rtems_mknod+0x11c> <== NOT EXECUTED
2025488: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== 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);
202548c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2025490: 40 00 74 d9 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2025494: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
2025498: 7f ff fa 84 call 2023ea8 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
202549c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("mknod: bad mode", EINVAL);
20254a0: 40 00 8d e9 call 2048c44 <__errno> <== NOT EXECUTED
20254a4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20254a8: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
20254ac: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20254b0: 81 c7 e0 08 ret <== NOT EXECUTED
20254b4: 81 e8 00 00 restore <== NOT EXECUTED
02025838 <rtems_rfs_rtems_mode>:
{
/*
* Mapping matches RTEMS so no need to change.
*/
return imode;
}
2025838: 81 c3 e0 08 retl <== NOT EXECUTED
020256d0 <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)
{
20256d0: 9d e3 bf 78 save %sp, -136, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
20256d4: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
20256d8: e4 06 00 00 ld [ %i0 ], %l2 <== 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);
20256dc: 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);
20256e0: 92 10 20 00 clr %o1 <== NOT EXECUTED
20256e4: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
20256e8: 94 10 20 00 clr %o2 <== NOT EXECUTED
20256ec: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
20256f0: 7f ff 9f d2 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
20256f4: a2 07 bf d8 add %fp, -40, %l1 <== NOT EXECUTED
uint16_t mode;
int rc;
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
20256f8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
20256fc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2025700: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2025704: 40 00 74 66 call 204289c <rtems_rfs_inode_open> <== NOT EXECUTED
2025708: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
202570c: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2025710: 04 80 00 0d ble 2025744 <rtems_rfs_rtems_node_type+0x74> <== NOT EXECUTED
2025714: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== 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);
2025718: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
202571c: 40 00 64 da call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2025720: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
2025724: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
2025728: 7f ff a0 0b call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
202572c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("node_type: opening inode", rc);
2025730: 40 00 8d 45 call 2048c44 <__errno> <== NOT EXECUTED
2025734: 01 00 00 00 nop <== NOT EXECUTED
2025738: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
202573c: 81 c7 e0 08 ret <== NOT EXECUTED
2025740: 81 e8 00 00 restore <== 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))
2025744: 05 00 00 3c sethi %hi(0xf000), %g2 <== NOT EXECUTED
2025748: c2 08 60 02 ldub [ %g1 + 2 ], %g1 <== NOT EXECUTED
202574c: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2025750: 82 08 40 02 and %g1, %g2, %g1 <== NOT EXECUTED
2025754: 05 00 00 10 sethi %hi(0x4000), %g2 <== NOT EXECUTED
2025758: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
202575c: 02 80 00 0b be 2025788 <rtems_rfs_rtems_node_type+0xb8> <== NOT EXECUTED
2025760: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
type = RTEMS_FILESYSTEM_DIRECTORY;
else if (RTEMS_RFS_S_ISLNK (mode))
2025764: 05 00 00 28 sethi %hi(0xa000), %g2 <== NOT EXECUTED
2025768: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
202576c: 02 80 00 07 be 2025788 <rtems_rfs_rtems_node_type+0xb8> <== NOT EXECUTED
2025770: 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))
2025774: 05 00 00 08 sethi %hi(0x2000), %g2 <== NOT EXECUTED
2025778: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
202577c: 12 80 00 14 bne 20257cc <rtems_rfs_rtems_node_type+0xfc> <== NOT EXECUTED
2025780: 05 00 00 18 sethi %hi(0x6000), %g2 <== NOT EXECUTED
2025784: 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);
2025788: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
202578c: 40 00 74 1a call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2025790: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc > 0)
2025794: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2025798: 24 80 00 12 ble,a 20257e0 <rtems_rfs_rtems_node_type+0x110><== NOT EXECUTED
202579c: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== 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);
20257a0: e4 04 20 7c ld [ %l0 + 0x7c ], %l2 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
20257a4: 40 00 64 b8 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
20257a8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20257ac: d0 04 80 00 ld [ %l2 ], %o0 <== NOT EXECUTED
20257b0: 7f ff 9f e9 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
20257b4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("node_type: closing inode", rc);
20257b8: 40 00 8d 23 call 2048c44 <__errno> <== NOT EXECUTED
20257bc: 01 00 00 00 nop <== NOT EXECUTED
20257c0: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
20257c4: 81 c7 e0 08 ret <== NOT EXECUTED
20257c8: 81 e8 00 00 restore <== NOT EXECUTED
mode = rtems_rfs_inode_get_mode (&inode);
if (RTEMS_RFS_S_ISDIR (mode))
type = RTEMS_FILESYSTEM_DIRECTORY;
else if (RTEMS_RFS_S_ISLNK (mode))
type = RTEMS_FILESYSTEM_SYM_LINK;
else if (RTEMS_RFS_S_ISBLK (mode) || RTEMS_RFS_S_ISCHR (mode))
20257cc: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
20257d0: 12 bf ff ee bne 2025788 <rtems_rfs_rtems_node_type+0xb8> <== NOT EXECUTED
20257d4: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
20257d8: 10 bf ff ec b 2025788 <rtems_rfs_rtems_node_type+0xb8> <== NOT EXECUTED
20257dc: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
20257e0: 40 00 64 a9 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
20257e4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20257e8: 7f ff 9f db call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
20257ec: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return type;
}
20257f0: 81 c7 e0 08 ret <== NOT EXECUTED
20257f4: 81 e8 00 00 restore <== NOT EXECUTED
02024534 <rtems_rfs_rtems_readlink>:
int
rtems_rfs_rtems_readlink (rtems_filesystem_location_info_t* pathloc,
char* buf,
size_t bufsize)
{
2024534: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2024538: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
202453c: 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);
2024540: 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);
2024544: 92 10 20 00 clr %o1 <== NOT EXECUTED
2024548: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
202454c: 94 10 20 00 clr %o2 <== NOT EXECUTED
2024550: 7f ff a4 3a call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
2024554: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
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);
rc = rtems_rfs_symlink_read (fs, ino, buf, bufsize, &length);
2024558: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
202455c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2024560: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
2024564: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
2024568: 40 00 79 e0 call 2042ce8 <rtems_rfs_symlink_read> <== NOT EXECUTED
202456c: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
if (rc)
2024570: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2024574: 22 80 00 0d be,a 20245a8 <rtems_rfs_rtems_readlink+0x74> <== NOT EXECUTED
2024578: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== 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);
202457c: f4 04 20 7c ld [ %l0 + 0x7c ], %i2 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2024580: 40 00 69 41 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2024584: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
2024588: d0 06 80 00 ld [ %i2 ], %o0 <== NOT EXECUTED
202458c: 7f ff a4 72 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2024590: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("readlink: reading link", rc);
2024594: 40 00 91 ac call 2048c44 <__errno> <== NOT EXECUTED
2024598: 01 00 00 00 nop <== NOT EXECUTED
202459c: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
20245a0: 81 c7 e0 08 ret <== NOT EXECUTED
20245a4: 81 e8 00 00 restore <== NOT EXECUTED
20245a8: 40 00 69 37 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
20245ac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20245b0: 7f ff a4 69 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
20245b4: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return (int) length;
20245b8: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED
}
20245bc: 81 c7 e0 08 ret <== NOT EXECUTED
20245c0: 81 e8 00 00 restore <== NOT EXECUTED
02024844 <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)
{
2024844: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (old_loc);
2024848: 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);
202484c: 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);
2024850: 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);
2024854: 92 10 20 00 clr %o1 <== NOT EXECUTED
2024858: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
202485c: 94 10 20 00 clr %o2 <== NOT EXECUTED
2024860: d0 00 40 00 ld [ %g1 ], %o0 <== 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);
2024864: e2 06 40 00 ld [ %i1 ], %l1 <== 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);
2024868: e6 06 00 00 ld [ %i0 ], %l3 <== NOT EXECUTED
202486c: 7f ff a3 73 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
2024870: 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);
2024874: 40 00 ac 9c call 204fae4 <strlen> <== NOT EXECUTED
2024878: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
202487c: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
2024880: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2024884: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
2024888: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202488c: 98 10 00 11 mov %l1, %o4 <== NOT EXECUTED
2024890: 40 00 7a 8d call 20432c4 <rtems_rfs_link> <== NOT EXECUTED
2024894: 9a 10 20 01 mov 1, %o5 <== NOT EXECUTED
if (rc)
2024898: a8 92 20 00 orcc %o0, 0, %l4 <== NOT EXECUTED
202489c: 02 80 00 0d be 20248d0 <rtems_rfs_rtems_rename+0x8c> <== NOT EXECUTED
20248a0: 94 10 00 11 mov %l1, %o2 <== 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);
20248a4: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
20248a8: 40 00 68 77 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
20248ac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
20248b0: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
20248b4: 7f ff a3 a8 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
20248b8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("rename: linking", rc);
20248bc: 40 00 90 e2 call 2048c44 <__errno> <== NOT EXECUTED
20248c0: 01 00 00 00 nop <== NOT EXECUTED
20248c4: e8 22 00 00 st %l4, [ %o0 ] <== NOT EXECUTED
20248c8: 81 c7 e0 08 ret <== NOT EXECUTED
20248cc: 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,
20248d0: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
20248d4: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
20248d8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20248dc: 40 00 79 f3 call 20430a8 <rtems_rfs_unlink> <== NOT EXECUTED
20248e0: 98 10 20 02 mov 2, %o4 <== NOT EXECUTED
rtems_rfs_unlink_dir_allowed);
if (rc)
20248e4: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
20248e8: 22 80 00 0d be,a 202491c <rtems_rfs_rtems_rename+0xd8> <== NOT EXECUTED
20248ec: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== 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);
20248f0: e4 04 20 7c ld [ %l0 + 0x7c ], %l2 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
20248f4: 40 00 68 64 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
20248f8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20248fc: d0 04 80 00 ld [ %l2 ], %o0 <== NOT EXECUTED
2024900: 7f ff a3 95 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2024904: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("rename: unlinking", rc);
2024908: 40 00 90 cf call 2048c44 <__errno> <== NOT EXECUTED
202490c: 01 00 00 00 nop <== NOT EXECUTED
2024910: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2024914: 81 c7 e0 08 ret <== NOT EXECUTED
2024918: 81 e8 00 00 restore <== NOT EXECUTED
202491c: 40 00 68 5a call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2024920: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2024924: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
2024928: 7f ff a3 8b call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
202492c: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return 0;
}
2024930: 81 c7 e0 08 ret <== NOT EXECUTED
2024934: 81 e8 00 00 restore <== NOT EXECUTED
02024674 <rtems_rfs_rtems_rmnod>:
* @return int
*/
int
rtems_rfs_rtems_rmnod (rtems_filesystem_location_info_t* parent_pathloc,
rtems_filesystem_location_info_t* pathloc)
{
2024674: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2024678: 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);
202467c: 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);
2024680: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_pathloc);
2024684: e6 06 00 00 ld [ %i0 ], %l3 <== 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);
2024688: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
202468c: e4 06 40 00 ld [ %i1 ], %l2 <== NOT EXECUTED
2024690: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
2024694: 92 10 20 00 clr %o1 <== NOT EXECUTED
2024698: 7f ff a3 e8 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
202469c: 94 10 20 00 clr %o2 <== NOT EXECUTED
printf ("rtems-rfs: rmnod: parent:%" PRId32 " doff:%" PRIu32 ", ino:%" PRId32 "\n",
parent, doff, ino);
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_unlink (fs, parent, ino, doff, rtems_rfs_unlink_dir_denied);
20246a0: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
20246a4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20246a8: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
20246ac: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
20246b0: 40 00 7a 7e call 20430a8 <rtems_rfs_unlink> <== NOT EXECUTED
20246b4: 98 10 20 00 clr %o4 <== NOT EXECUTED
if (rc)
20246b8: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
20246bc: 22 80 00 0d be,a 20246f0 <rtems_rfs_rtems_rmnod+0x7c> <== NOT EXECUTED
20246c0: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== 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);
20246c4: e4 04 20 7c ld [ %l0 + 0x7c ], %l2 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
20246c8: 40 00 68 ef call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
20246cc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
20246d0: d0 04 80 00 ld [ %l2 ], %o0 <== NOT EXECUTED
20246d4: 7f ff a4 20 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
20246d8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("rmnod: unlinking", rc);
20246dc: 40 00 91 5a call 2048c44 <__errno> <== NOT EXECUTED
20246e0: 01 00 00 00 nop <== NOT EXECUTED
20246e4: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
20246e8: 81 c7 e0 08 ret <== NOT EXECUTED
20246ec: 81 e8 00 00 restore <== NOT EXECUTED
20246f0: 40 00 68 e5 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
20246f4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20246f8: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
20246fc: 7f ff a4 16 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2024700: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return 0;
}
2024704: 81 c7 e0 08 ret <== NOT EXECUTED
2024708: 81 e8 00 00 restore <== NOT EXECUTED
02025840 <rtems_rfs_rtems_set_handlers>:
*/
bool
rtems_rfs_rtems_set_handlers (rtems_filesystem_location_info_t* loc,
rtems_rfs_inode_handle* inode)
{
2025840: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
2025844: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
2025848: c4 08 60 03 ldub [ %g1 + 3 ], %g2 <== NOT EXECUTED
202584c: d2 08 60 02 ldub [ %g1 + 2 ], %o1 <== NOT EXECUTED
2025850: 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))
2025854: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
2025858: 92 12 40 02 or %o1, %g2, %o1 <== NOT EXECUTED
202585c: 05 00 00 10 sethi %hi(0x4000), %g2 <== NOT EXECUTED
2025860: 93 2a 60 10 sll %o1, 0x10, %o1 <== NOT EXECUTED
2025864: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED
2025868: 82 0a 40 01 and %o1, %g1, %g1 <== NOT EXECUTED
202586c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2025870: 02 80 00 19 be 20258d4 <rtems_rfs_rtems_set_handlers+0x94><== NOT EXECUTED
2025874: c0 26 20 08 clr [ %i0 + 8 ] <== NOT EXECUTED
loc->handlers = rtems_rfs_rtems_handlers (dir);
else if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK(mode))
2025878: 05 00 00 18 sethi %hi(0x6000), %g2 <== NOT EXECUTED
202587c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2025880: 02 80 00 10 be 20258c0 <rtems_rfs_rtems_set_handlers+0x80><== NOT EXECUTED
2025884: 05 00 00 08 sethi %hi(0x2000), %g2 <== NOT EXECUTED
2025888: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
202588c: 02 80 00 0d be 20258c0 <rtems_rfs_rtems_set_handlers+0x80><== NOT EXECUTED
2025890: 05 00 00 28 sethi %hi(0xa000), %g2 <== NOT EXECUTED
loc->handlers = rtems_rfs_rtems_handlers (device);
else if (RTEMS_RFS_S_ISLNK (mode))
2025894: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2025898: 02 80 00 19 be 20258fc <rtems_rfs_rtems_set_handlers+0xbc><== NOT EXECUTED
202589c: 05 00 00 20 sethi %hi(0x8000), %g2 <== NOT EXECUTED
loc->handlers = rtems_rfs_rtems_handlers (link);
else if (RTEMS_RFS_S_ISREG (mode))
20258a0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
20258a4: 02 80 00 11 be 20258e8 <rtems_rfs_rtems_set_handlers+0xa8><== NOT EXECUTED
20258a8: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
loc->handlers = rtems_rfs_rtems_handlers (file);
else
{
printf ("rtems-rfs: mode type unknown: %04x\n", mode);
20258ac: b0 10 20 00 clr %i0 <== NOT EXECUTED
20258b0: 40 00 9e e0 call 204d430 <printf> <== NOT EXECUTED
20258b4: 90 12 22 20 or %o0, 0x220, %o0 <== NOT EXECUTED
return false;
}
return true;
}
20258b8: 81 c7 e0 08 ret <== NOT EXECUTED
20258bc: 81 e8 00 00 restore <== NOT EXECUTED
uint16_t mode = rtems_rfs_inode_get_mode (inode);
loc->handlers = NULL;
if (RTEMS_RFS_S_ISDIR (mode))
loc->handlers = rtems_rfs_rtems_handlers (dir);
else if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK(mode))
loc->handlers = rtems_rfs_rtems_handlers (device);
20258c0: 03 00 81 b4 sethi %hi(0x206d000), %g1 <== NOT EXECUTED
20258c4: 82 10 62 08 or %g1, 0x208, %g1 ! 206d208 <rtems_rfs_rtems_device_handlers><== NOT EXECUTED
20258c8: c2 26 20 08 st %g1, [ %i0 + 8 ] <== NOT EXECUTED
20258cc: 81 c7 e0 08 ret <== NOT EXECUTED
20258d0: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED
rtems_rfs_inode_handle* inode)
{
uint16_t mode = rtems_rfs_inode_get_mode (inode);
loc->handlers = NULL;
if (RTEMS_RFS_S_ISDIR (mode))
loc->handlers = rtems_rfs_rtems_handlers (dir);
20258d4: 03 00 81 b4 sethi %hi(0x206d000), %g1 <== NOT EXECUTED
20258d8: 82 10 62 40 or %g1, 0x240, %g1 ! 206d240 <rtems_rfs_rtems_dir_handlers><== NOT EXECUTED
20258dc: c2 26 20 08 st %g1, [ %i0 + 8 ] <== NOT EXECUTED
20258e0: 81 c7 e0 08 ret <== NOT EXECUTED
20258e4: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED
else if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK(mode))
loc->handlers = rtems_rfs_rtems_handlers (device);
else if (RTEMS_RFS_S_ISLNK (mode))
loc->handlers = rtems_rfs_rtems_handlers (link);
else if (RTEMS_RFS_S_ISREG (mode))
loc->handlers = rtems_rfs_rtems_handlers (file);
20258e8: 03 00 81 b4 sethi %hi(0x206d000), %g1 <== NOT EXECUTED
20258ec: 82 10 62 78 or %g1, 0x278, %g1 ! 206d278 <rtems_rfs_rtems_file_handlers><== NOT EXECUTED
20258f0: c2 26 20 08 st %g1, [ %i0 + 8 ] <== NOT EXECUTED
20258f4: 81 c7 e0 08 ret <== NOT EXECUTED
20258f8: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED
if (RTEMS_RFS_S_ISDIR (mode))
loc->handlers = rtems_rfs_rtems_handlers (dir);
else if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK(mode))
loc->handlers = rtems_rfs_rtems_handlers (device);
else if (RTEMS_RFS_S_ISLNK (mode))
loc->handlers = rtems_rfs_rtems_handlers (link);
20258fc: 03 00 81 a0 sethi %hi(0x2068000), %g1 <== NOT EXECUTED
2025900: 82 10 61 a0 or %g1, 0x1a0, %g1 ! 20681a0 <rtems_rfs_rtems_link_handlers><== NOT EXECUTED
2025904: c2 26 20 08 st %g1, [ %i0 + 8 ] <== NOT EXECUTED
2025908: 81 c7 e0 08 ret <== NOT EXECUTED
202590c: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED
02023ec8 <rtems_rfs_rtems_shutdown>:
/**
* Shutdown the file system.
*/
int
rtems_rfs_rtems_shutdown (rtems_filesystem_mount_table_entry_t* mt_entry)
{
2023ec8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = mt_entry->fs_info;
2023ecc: 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);
2023ed0: 40 00 72 bd call 20409c4 <rtems_rfs_fs_close> <== NOT EXECUTED
2023ed4: e2 02 20 7c ld [ %o0 + 0x7c ], %l1 <== NOT EXECUTED
2023ed8: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
rtems_rfs_mutex_destroy (&rtems->access);
2023edc: 40 00 7d 57 call 2043438 <rtems_rfs_mutex_destroy> <== NOT EXECUTED
2023ee0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
free (rtems);
2023ee4: 7f ff 92 7e call 20088dc <free> <== NOT EXECUTED
2023ee8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("shutdown: close", rc);
2023eec: 40 00 93 56 call 2048c44 <__errno> <== NOT EXECUTED
2023ef0: 01 00 00 00 nop <== NOT EXECUTED
}
2023ef4: 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);
2023ef8: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED
}
2023efc: b0 60 20 00 subx %g0, 0, %i0 <== NOT EXECUTED
2023f00: 81 c7 e0 08 ret <== NOT EXECUTED
2023f04: 81 e8 00 00 restore <== NOT EXECUTED
02024a68 <rtems_rfs_rtems_stat>:
*/
int
rtems_rfs_rtems_stat (rtems_filesystem_location_info_t* pathloc,
struct stat* buf)
{
2024a68: 9d e3 bf 78 save %sp, -136, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2024a6c: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
2024a70: 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);
2024a74: 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);
2024a78: 92 10 20 00 clr %o1 <== NOT EXECUTED
2024a7c: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
2024a80: 94 10 20 00 clr %o2 <== NOT EXECUTED
2024a84: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
2024a88: 7f ff a2 ec call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
2024a8c: a4 07 bf d8 add %fp, -40, %l2 <== NOT EXECUTED
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);
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
2024a90: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2024a94: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2024a98: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2024a9c: 40 00 77 80 call 204289c <rtems_rfs_inode_open> <== NOT EXECUTED
2024aa0: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc)
2024aa4: a6 92 20 00 orcc %o0, 0, %l3 <== NOT EXECUTED
2024aa8: 12 80 00 86 bne 2024cc0 <rtems_rfs_rtems_stat+0x258> <== NOT EXECUTED
2024aac: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
return rtems_rfs_rtems_error ("stat: opening inode", rc);
}
mode = rtems_rfs_inode_get_mode (&inode);
if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK (mode))
2024ab0: 07 00 00 18 sethi %hi(0x6000), %g3 <== NOT EXECUTED
2024ab4: c4 08 60 03 ldub [ %g1 + 3 ], %g2 <== NOT EXECUTED
2024ab8: d0 08 60 02 ldub [ %g1 + 2 ], %o0 <== NOT EXECUTED
2024abc: 91 2a 20 08 sll %o0, 8, %o0 <== NOT EXECUTED
2024ac0: 90 12 00 02 or %o0, %g2, %o0 <== NOT EXECUTED
2024ac4: 05 00 00 3c sethi %hi(0xf000), %g2 <== NOT EXECUTED
2024ac8: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
2024acc: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED
2024ad0: 84 0a 00 02 and %o0, %g2, %g2 <== NOT EXECUTED
2024ad4: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED
2024ad8: 12 80 00 62 bne 2024c60 <rtems_rfs_rtems_stat+0x1f8> <== NOT EXECUTED
2024adc: 07 00 00 08 sethi %hi(0x2000), %g3 <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
2024ae0: 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]);
2024ae4: 82 00 60 1c add %g1, 0x1c, %g1 <== NOT EXECUTED
2024ae8: d4 08 60 04 ldub [ %g1 + 4 ], %o2 <== NOT EXECUTED
2024aec: d6 08 60 07 ldub [ %g1 + 7 ], %o3 <== NOT EXECUTED
2024af0: d8 08 60 06 ldub [ %g1 + 6 ], %o4 <== NOT EXECUTED
2024af4: d2 08 60 05 ldub [ %g1 + 5 ], %o1 <== NOT EXECUTED
2024af8: c4 08 60 02 ldub [ %g1 + 2 ], %g2 <== NOT EXECUTED
2024afc: c8 08 60 03 ldub [ %g1 + 3 ], %g4 <== NOT EXECUTED
2024b00: c6 08 60 01 ldub [ %g1 + 1 ], %g3 <== NOT EXECUTED
2024b04: 95 2a a0 18 sll %o2, 0x18, %o2 <== NOT EXECUTED
2024b08: 83 2a 60 10 sll %o1, 0x10, %g1 <== NOT EXECUTED
2024b0c: 99 2b 20 08 sll %o4, 8, %o4 <== NOT EXECUTED
2024b10: 82 12 80 01 or %o2, %g1, %g1 <== NOT EXECUTED
2024b14: 82 10 40 0b or %g1, %o3, %g1 <== NOT EXECUTED
2024b18: 82 10 40 0c or %g1, %o4, %g1 <== NOT EXECUTED
2024b1c: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
{
buf->st_rdev =
2024b20: c2 26 60 1c st %g1, [ %i1 + 0x1c ] <== NOT EXECUTED
2024b24: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2024b28: 83 2b 60 18 sll %o5, 0x18, %g1 <== NOT EXECUTED
2024b2c: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
2024b30: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
2024b34: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2024b38: 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);
2024b3c: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
buf->st_ino = ino;
2024b40: 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);
2024b44: c4 18 40 00 ldd [ %g1 ], %g2 <== NOT EXECUTED
buf->st_ino = ino;
buf->st_mode = rtems_rfs_rtems_mode (mode);
2024b48: 40 00 03 3c call 2025838 <rtems_rfs_rtems_mode> <== NOT EXECUTED
2024b4c: 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);
2024b50: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
2024b54: d0 26 60 0c st %o0, [ %i1 + 0xc ] <== NOT EXECUTED
2024b58: c6 08 60 01 ldub [ %g1 + 1 ], %g3 <== NOT EXECUTED
2024b5c: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED
if (links == 0xffff)
2024b60: 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);
2024b64: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2024b68: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
if (links == 0xffff)
2024b6c: 87 28 a0 10 sll %g2, 0x10, %g3 <== NOT EXECUTED
2024b70: 87 30 e0 10 srl %g3, 0x10, %g3 <== NOT EXECUTED
2024b74: 86 39 00 03 xnor %g4, %g3, %g3 <== NOT EXECUTED
2024b78: 80 a0 00 03 cmp %g0, %g3 <== NOT EXECUTED
2024b7c: 86 60 20 00 subx %g0, 0, %g3 <== NOT EXECUTED
2024b80: 84 08 80 03 and %g2, %g3, %g2 <== NOT EXECUTED
buf->st_nlink = rtems_rfs_inode_get_links (&inode);
2024b84: c4 36 60 10 sth %g2, [ %i1 + 0x10 ] <== NOT EXECUTED
buf->st_uid = rtems_rfs_inode_get_uid (&inode);
2024b88: c4 08 60 06 ldub [ %g1 + 6 ], %g2 <== NOT EXECUTED
2024b8c: c6 08 60 07 ldub [ %g1 + 7 ], %g3 <== NOT EXECUTED
2024b90: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2024b94: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
2024b98: c4 36 60 12 sth %g2, [ %i1 + 0x12 ] <== NOT EXECUTED
buf->st_gid = rtems_rfs_inode_get_gid (&inode);
2024b9c: c4 08 60 05 ldub [ %g1 + 5 ], %g2 <== NOT EXECUTED
2024ba0: c2 08 60 04 ldub [ %g1 + 4 ], %g1 <== NOT EXECUTED
2024ba4: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
2024ba8: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED
2024bac: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2024bb0: 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);
2024bb4: 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);
buf->st_gid = rtems_rfs_inode_get_gid (&inode);
2024bb8: c2 36 60 14 sth %g1, [ %i1 + 0x14 ] <== 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);
2024bbc: 40 00 6c 61 call 203fd40 <rtems_rfs_file_get_shared> <== NOT EXECUTED
2024bc0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (shared)
2024bc4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024bc8: 02 80 00 49 be 2024cec <rtems_rfs_rtems_stat+0x284> <== NOT EXECUTED
2024bcc: 05 00 00 3c sethi %hi(0xf000), %g2 <== NOT EXECUTED
{
buf->st_atime = rtems_rfs_file_shared_get_atime (shared);
2024bd0: 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))
2024bd4: c6 06 60 0c ld [ %i1 + 0xc ], %g3 <== NOT EXECUTED
*/
shared = rtems_rfs_file_get_shared (fs, ino);
if (shared)
{
buf->st_atime = rtems_rfs_file_shared_get_atime (shared);
2024bd8: c2 26 60 28 st %g1, [ %i1 + 0x28 ] <== NOT EXECUTED
buf->st_mtime = rtems_rfs_file_shared_get_mtime (shared);
2024bdc: c2 02 20 90 ld [ %o0 + 0x90 ], %g1 <== NOT EXECUTED
2024be0: c2 26 60 30 st %g1, [ %i1 + 0x30 ] <== NOT EXECUTED
buf->st_ctime = rtems_rfs_file_shared_get_ctime (shared);
2024be4: 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))
2024be8: 84 08 c0 02 and %g3, %g2, %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);
2024bec: c2 26 60 38 st %g1, [ %i1 + 0x38 ] <== NOT EXECUTED
buf->st_blocks = rtems_rfs_file_shared_get_block_count (shared);
2024bf0: c2 02 20 84 ld [ %o0 + 0x84 ], %g1 <== NOT EXECUTED
2024bf4: c2 26 60 44 st %g1, [ %i1 + 0x44 ] <== NOT EXECUTED
if (S_ISLNK (buf->st_mode))
2024bf8: 03 00 00 28 sethi %hi(0xa000), %g1 <== NOT EXECUTED
2024bfc: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2024c00: 12 80 00 1d bne 2024c74 <rtems_rfs_rtems_stat+0x20c> <== NOT EXECUTED
2024c04: 92 02 20 84 add %o0, 0x84, %o1 <== NOT EXECUTED
buf->st_size = rtems_rfs_file_shared_get_block_offset (shared);
2024c08: c2 12 20 8a lduh [ %o0 + 0x8a ], %g1 <== NOT EXECUTED
2024c0c: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED
2024c10: c2 26 60 24 st %g1, [ %i1 + 0x24 ] <== 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);
2024c14: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED
rc = rtems_rfs_inode_close (fs, &inode);
2024c18: 92 10 00 12 mov %l2, %o1 <== 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);
2024c1c: c2 26 60 40 st %g1, [ %i1 + 0x40 ] <== NOT EXECUTED
rc = rtems_rfs_inode_close (fs, &inode);
2024c20: 40 00 76 f5 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2024c24: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc > 0)
2024c28: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2024c2c: 24 80 00 1e ble,a 2024ca4 <rtems_rfs_rtems_stat+0x23c> <== NOT EXECUTED
2024c30: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== 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);
2024c34: e4 04 20 7c ld [ %l0 + 0x7c ], %l2 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2024c38: 40 00 67 93 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2024c3c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
2024c40: d0 04 80 00 ld [ %l2 ], %o0 <== NOT EXECUTED
2024c44: 7f ff a2 c4 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2024c48: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("stat: closing inode", rc);
2024c4c: 40 00 8f fe call 2048c44 <__errno> <== NOT EXECUTED
2024c50: 01 00 00 00 nop <== NOT EXECUTED
2024c54: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2024c58: 81 c7 e0 08 ret <== NOT EXECUTED
2024c5c: 81 e8 00 00 restore <== NOT EXECUTED
return rtems_rfs_rtems_error ("stat: opening inode", rc);
}
mode = rtems_rfs_inode_get_mode (&inode);
if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK (mode))
2024c60: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED
2024c64: 32 bf ff b7 bne,a 2024b40 <rtems_rfs_rtems_stat+0xd8> <== NOT EXECUTED
2024c68: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
2024c6c: 10 bf ff 9e b 2024ae4 <rtems_rfs_rtems_stat+0x7c> <== NOT EXECUTED
2024c70: da 08 60 1c ldub [ %g1 + 0x1c ], %o5 <== 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);
2024c74: 40 00 63 9f call 203daf0 <rtems_rfs_block_get_size> <== NOT EXECUTED
2024c78: 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);
2024c7c: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED
buf->st_blocks = rtems_rfs_file_shared_get_block_count (shared);
if (S_ISLNK (buf->st_mode))
buf->st_size = rtems_rfs_file_shared_get_block_offset (shared);
else
buf->st_size = rtems_rfs_file_shared_get_size (fs, shared);
2024c80: d0 3e 60 20 std %o0, [ %i1 + 0x20 ] <== 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);
2024c84: c2 26 60 40 st %g1, [ %i1 + 0x40 ] <== NOT EXECUTED
rc = rtems_rfs_inode_close (fs, &inode);
2024c88: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2024c8c: 40 00 76 da call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2024c90: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc > 0)
2024c94: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2024c98: 34 bf ff e8 bg,a 2024c38 <rtems_rfs_rtems_stat+0x1d0> <== NOT EXECUTED
2024c9c: e4 04 20 7c ld [ %l0 + 0x7c ], %l2 <== 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);
2024ca0: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2024ca4: 40 00 67 78 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2024ca8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2024cac: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
2024cb0: 7f ff a2 a9 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2024cb4: b0 10 20 00 clr %i0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("stat: closing inode", rc);
}
rtems_rfs_rtems_unlock (fs);
return 0;
}
2024cb8: 81 c7 e0 08 ret <== NOT EXECUTED
2024cbc: 81 e8 00 00 restore <== 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);
2024cc0: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2024cc4: 40 00 67 70 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2024cc8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2024ccc: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
2024cd0: 7f ff a2 a1 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2024cd4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
if (rc)
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("stat: opening inode", rc);
2024cd8: 40 00 8f db call 2048c44 <__errno> <== NOT EXECUTED
2024cdc: 01 00 00 00 nop <== NOT EXECUTED
2024ce0: e6 22 00 00 st %l3, [ %o0 ] <== NOT EXECUTED
2024ce4: 81 c7 e0 08 ret <== NOT EXECUTED
2024ce8: 81 e8 00 00 restore <== 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);
2024cec: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
buf->st_atime = rtems_rfs_inode_get_atime (&inode);
buf->st_mtime = rtems_rfs_inode_get_mtime (&inode);
buf->st_ctime = rtems_rfs_inode_get_ctime (&inode);
buf->st_blocks = rtems_rfs_inode_get_block_count (&inode);
if (S_ISLNK (buf->st_mode))
2024cf0: c6 06 60 0c ld [ %i1 + 0xc ], %g3 <== NOT EXECUTED
else
buf->st_size = rtems_rfs_file_shared_get_size (fs, shared);
}
else
{
buf->st_atime = rtems_rfs_inode_get_atime (&inode);
2024cf4: d6 08 60 10 ldub [ %g1 + 0x10 ], %o3 <== NOT EXECUTED
2024cf8: 84 00 60 10 add %g1, 0x10, %g2 <== NOT EXECUTED
2024cfc: d8 08 a0 03 ldub [ %g2 + 3 ], %o4 <== NOT EXECUTED
2024d00: c8 08 a0 02 ldub [ %g2 + 2 ], %g4 <== NOT EXECUTED
2024d04: da 08 a0 01 ldub [ %g2 + 1 ], %o5 <== NOT EXECUTED
2024d08: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2024d0c: 85 2a e0 18 sll %o3, 0x18, %g2 <== NOT EXECUTED
2024d10: 9b 2b 60 10 sll %o5, 0x10, %o5 <== NOT EXECUTED
2024d14: 84 13 00 02 or %o4, %g2, %g2 <== NOT EXECUTED
2024d18: 84 10 80 0d or %g2, %o5, %g2 <== NOT EXECUTED
2024d1c: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
2024d20: 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);
2024d24: 84 00 60 14 add %g1, 0x14, %g2 <== NOT EXECUTED
buf->st_mtime = rtems_rfs_inode_get_mtime (&inode);
2024d28: d6 08 60 14 ldub [ %g1 + 0x14 ], %o3 <== NOT EXECUTED
2024d2c: d8 08 a0 03 ldub [ %g2 + 3 ], %o4 <== NOT EXECUTED
2024d30: c8 08 a0 02 ldub [ %g2 + 2 ], %g4 <== NOT EXECUTED
2024d34: da 08 a0 01 ldub [ %g2 + 1 ], %o5 <== NOT EXECUTED
2024d38: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2024d3c: 85 2a e0 18 sll %o3, 0x18, %g2 <== NOT EXECUTED
2024d40: 9b 2b 60 10 sll %o5, 0x10, %o5 <== NOT EXECUTED
2024d44: 84 13 00 02 or %o4, %g2, %g2 <== NOT EXECUTED
2024d48: 84 10 80 0d or %g2, %o5, %g2 <== NOT EXECUTED
2024d4c: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
2024d50: 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);
2024d54: 84 00 60 18 add %g1, 0x18, %g2 <== NOT EXECUTED
buf->st_ctime = rtems_rfs_inode_get_ctime (&inode);
2024d58: d6 08 60 18 ldub [ %g1 + 0x18 ], %o3 <== NOT EXECUTED
2024d5c: d8 08 a0 03 ldub [ %g2 + 3 ], %o4 <== NOT EXECUTED
2024d60: c8 08 a0 02 ldub [ %g2 + 2 ], %g4 <== NOT EXECUTED
2024d64: da 08 a0 01 ldub [ %g2 + 1 ], %o5 <== NOT EXECUTED
2024d68: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2024d6c: 85 2a e0 18 sll %o3, 0x18, %g2 <== NOT EXECUTED
2024d70: 9b 2b 60 10 sll %o5, 0x10, %o5 <== NOT EXECUTED
2024d74: 84 13 00 02 or %o4, %g2, %g2 <== NOT EXECUTED
2024d78: 84 10 80 0d or %g2, %o5, %g2 <== NOT EXECUTED
2024d7c: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
2024d80: 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);
2024d84: 84 00 60 0c add %g1, 0xc, %g2 <== NOT EXECUTED
buf->st_blocks = rtems_rfs_inode_get_block_count (&inode);
2024d88: d6 08 60 0c ldub [ %g1 + 0xc ], %o3 <== NOT EXECUTED
2024d8c: c8 08 a0 02 ldub [ %g2 + 2 ], %g4 <== NOT EXECUTED
2024d90: d8 08 a0 03 ldub [ %g2 + 3 ], %o4 <== NOT EXECUTED
2024d94: da 08 a0 01 ldub [ %g2 + 1 ], %o5 <== NOT EXECUTED
2024d98: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2024d9c: 85 2a e0 18 sll %o3, 0x18, %g2 <== NOT EXECUTED
2024da0: 9b 2b 60 10 sll %o5, 0x10, %o5 <== NOT EXECUTED
2024da4: 84 13 00 02 or %o4, %g2, %g2 <== NOT EXECUTED
2024da8: 84 10 80 0d or %g2, %o5, %g2 <== NOT EXECUTED
2024dac: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
2024db0: c4 26 60 44 st %g2, [ %i1 + 0x44 ] <== NOT EXECUTED
if (S_ISLNK (buf->st_mode))
2024db4: 05 00 00 3c sethi %hi(0xf000), %g2 <== NOT EXECUTED
2024db8: 86 08 c0 02 and %g3, %g2, %g3 <== NOT EXECUTED
2024dbc: 05 00 00 28 sethi %hi(0xa000), %g2 <== NOT EXECUTED
2024dc0: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED
2024dc4: 12 80 00 09 bne 2024de8 <rtems_rfs_rtems_stat+0x380> <== NOT EXECUTED
2024dc8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
buf->st_size = rtems_rfs_inode_get_block_offset (&inode);
2024dcc: c4 08 60 0b ldub [ %g1 + 0xb ], %g2 <== NOT EXECUTED
2024dd0: c2 08 60 0a ldub [ %g1 + 0xa ], %g1 <== NOT EXECUTED
2024dd4: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED
2024dd8: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2024ddc: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
2024de0: 10 bf ff 8d b 2024c14 <rtems_rfs_rtems_stat+0x1ac> <== NOT EXECUTED
2024de4: c2 26 60 24 st %g1, [ %i1 + 0x24 ] <== NOT EXECUTED
else
buf->st_size = rtems_rfs_inode_get_size (fs, &inode);
2024de8: 40 00 75 be call 20424e0 <rtems_rfs_inode_get_size> <== NOT EXECUTED
2024dec: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2024df0: 10 bf ff 89 b 2024c14 <rtems_rfs_rtems_stat+0x1ac> <== NOT EXECUTED
2024df4: d0 3e 60 20 std %o0, [ %i1 + 0x20 ] <== NOT EXECUTED
02024100 <rtems_rfs_rtems_statvfs>:
* @return int
*/
int
rtems_rfs_rtems_statvfs (rtems_filesystem_location_info_t* pathloc,
struct statvfs* sb)
{
2024100: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2024104: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
size_t blocks;
size_t inodes;
rtems_rfs_group_usage (fs, &blocks, &inodes);
2024108: 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);
202410c: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
size_t blocks;
size_t inodes;
rtems_rfs_group_usage (fs, &blocks, &inodes);
2024110: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED
2024114: 40 00 77 79 call 2041ef8 <rtems_rfs_group_usage> <== NOT EXECUTED
2024118: 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);
202411c: 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);
2024120: 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);
2024124: 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);
2024128: c4 26 40 00 st %g2, [ %i1 ] <== NOT EXECUTED
sb->f_frsize = rtems_rfs_fs_media_block_size (fs);
202412c: 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;
2024130: 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);
2024134: 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);
2024138: 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);
202413c: 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;
2024140: 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);
2024144: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED
sb->f_ffree = rtems_rfs_fs_inodes (fs) - inodes;
2024148: 82 20 80 01 sub %g2, %g1, %g1 <== NOT EXECUTED
sb->f_favail = sb->f_ffree;
202414c: 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;
2024150: c2 26 60 24 st %g1, [ %i1 + 0x24 ] <== NOT EXECUTED
sb->f_favail = sb->f_ffree;
sb->f_fsid = RTEMS_RFS_SB_MAGIC;
2024154: 03 0a 02 48 sethi %hi(0x28092000), %g1 <== NOT EXECUTED
2024158: 82 10 60 01 or %g1, 1, %g1 ! 28092001 <RAM_END+0x25c92001><== NOT EXECUTED
202415c: c2 26 60 2c st %g1, [ %i1 + 0x2c ] <== NOT EXECUTED
sb->f_flag = rtems_rfs_fs_flags (fs);
2024160: 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;
2024164: 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);
2024168: c2 26 60 30 st %g1, [ %i1 + 0x30 ] <== NOT EXECUTED
sb->f_namemax = rtems_rfs_fs_max_name (fs);
202416c: 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);
2024170: 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);
2024174: 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;
2024178: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
sb->f_bavail = sb->f_bfree;
202417c: 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;
2024180: 82 20 80 01 sub %g2, %g1, %g1 <== NOT EXECUTED
sb->f_bavail = sb->f_bfree;
2024184: 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;
2024188: 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;
}
202418c: 81 c7 e0 08 ret <== NOT EXECUTED
2024190: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
020245c4 <rtems_rfs_rtems_symlink>:
int
rtems_rfs_rtems_symlink (rtems_filesystem_location_info_t* parent_loc,
const char* link_name,
const char* node_name)
{
20245c4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (parent_loc);
20245c8: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== 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);
20245cc: 92 10 20 00 clr %o1 <== NOT EXECUTED
20245d0: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
20245d4: 94 10 20 00 clr %o2 <== NOT EXECUTED
20245d8: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_loc);
20245dc: e2 06 00 00 ld [ %i0 ], %l1 <== NOT EXECUTED
20245e0: 7f ff a4 16 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
20245e4: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
gid = 0;
#endif
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_symlink (fs, node_name, strlen (node_name),
20245e8: 40 00 ad 3f call 204fae4 <strlen> <== NOT EXECUTED
20245ec: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
20245f0: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
link_name, strlen (link_name),
20245f4: 40 00 ad 3c call 204fae4 <strlen> <== NOT EXECUTED
20245f8: 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),
20245fc: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
link_name, strlen (link_name),
2024600: 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),
2024604: e2 23 a0 60 st %l1, [ %sp + 0x60 ] <== NOT EXECUTED
2024608: c0 23 a0 5c clr [ %sp + 0x5c ] <== NOT EXECUTED
202460c: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2024610: 96 10 00 19 mov %i1, %o3 <== NOT EXECUTED
2024614: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2024618: 40 00 7a 24 call 2042ea8 <rtems_rfs_symlink> <== NOT EXECUTED
202461c: 9a 10 20 00 clr %o5 <== NOT EXECUTED
link_name, strlen (link_name),
uid, gid, parent);
if (rc)
2024620: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2024624: 22 80 00 0d be,a 2024658 <rtems_rfs_rtems_symlink+0x94> <== NOT EXECUTED
2024628: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== 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);
202462c: e4 04 20 7c ld [ %l0 + 0x7c ], %l2 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2024630: 40 00 69 15 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2024634: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
2024638: d0 04 80 00 ld [ %l2 ], %o0 <== NOT EXECUTED
202463c: 7f ff a4 46 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2024640: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("symlink: linking", rc);
2024644: 40 00 91 80 call 2048c44 <__errno> <== NOT EXECUTED
2024648: 01 00 00 00 nop <== NOT EXECUTED
202464c: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2024650: 81 c7 e0 08 ret <== NOT EXECUTED
2024654: 81 e8 00 00 restore <== NOT EXECUTED
2024658: 40 00 69 0b call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
202465c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2024660: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
2024664: 7f ff a4 3c call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2024668: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return 0;
}
202466c: 81 c7 e0 08 ret <== NOT EXECUTED
2024670: 81 e8 00 00 restore <== NOT EXECUTED
0202470c <rtems_rfs_rtems_unlink>:
*/
int
rtems_rfs_rtems_unlink (rtems_filesystem_location_info_t* parent_loc,
rtems_filesystem_location_info_t* loc)
{
202470c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (parent_loc);
2024710: 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);
2024714: 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);
2024718: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_loc);
202471c: e6 06 00 00 ld [ %i0 ], %l3 <== 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);
2024720: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (loc);
2024724: e4 06 40 00 ld [ %i1 ], %l2 <== NOT EXECUTED
2024728: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
202472c: 92 10 20 00 clr %o1 <== NOT EXECUTED
2024730: 7f ff a3 c2 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
2024734: 94 10 20 00 clr %o2 <== 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);
2024738: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
202473c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2024740: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2024744: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2024748: 40 00 7a 58 call 20430a8 <rtems_rfs_unlink> <== NOT EXECUTED
202474c: 98 10 20 00 clr %o4 <== NOT EXECUTED
if (rc)
2024750: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2024754: 22 80 00 0d be,a 2024788 <rtems_rfs_rtems_unlink+0x7c> <== NOT EXECUTED
2024758: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== 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);
202475c: e4 04 20 7c ld [ %l0 + 0x7c ], %l2 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2024760: 40 00 68 c9 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2024764: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
2024768: d0 04 80 00 ld [ %l2 ], %o0 <== NOT EXECUTED
202476c: 7f ff a3 fa call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2024770: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("unlink: unlink inode", rc);
2024774: 40 00 91 34 call 2048c44 <__errno> <== NOT EXECUTED
2024778: 01 00 00 00 nop <== NOT EXECUTED
202477c: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2024780: 81 c7 e0 08 ret <== NOT EXECUTED
2024784: 81 e8 00 00 restore <== NOT EXECUTED
2024788: 40 00 68 bf call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
202478c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2024790: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
2024794: 7f ff a3 f0 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2024798: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return 0;
}
202479c: 81 c7 e0 08 ret <== NOT EXECUTED
20247a0: 81 e8 00 00 restore <== NOT EXECUTED
02023ea8 <rtems_rfs_rtems_unlock>:
/**
* Unlock the RFS file system.
*/
static inline void
rtems_rfs_rtems_unlock (rtems_rfs_file_system* fs)
{
2023ea8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_rtems_private* rtems = rtems_rfs_fs_user (fs);
2023eac: e0 06 20 7c ld [ %i0 + 0x7c ], %l0 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2023eb0: 40 00 6a f5 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2023eb4: 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);
2023eb8: f0 04 00 00 ld [ %l0 ], %i0 <== NOT EXECUTED
2023ebc: 7f ff a6 26 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2023ec0: 81 e8 00 00 restore <== NOT EXECUTED
02024938 <rtems_rfs_rtems_utime>:
int
rtems_rfs_rtems_utime(rtems_filesystem_location_info_t* pathloc,
time_t atime,
time_t mtime)
{
2024938: 9d e3 bf 78 save %sp, -136, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
202493c: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
2024940: 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);
2024944: 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);
2024948: 92 10 20 00 clr %o1 <== NOT EXECUTED
202494c: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
2024950: 94 10 20 00 clr %o2 <== NOT EXECUTED
2024954: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
2024958: 7f ff a3 38 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
202495c: 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);
2024960: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2024964: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2024968: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
202496c: 40 00 77 cc call 204289c <rtems_rfs_inode_open> <== NOT EXECUTED
2024970: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc)
2024974: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2024978: 02 80 00 0d be 20249ac <rtems_rfs_rtems_utime+0x74> <== NOT EXECUTED
202497c: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== 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);
2024980: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2024984: 40 00 68 40 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2024988: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
202498c: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
2024990: 7f ff a3 71 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2024994: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("utime: read inode", rc);
2024998: 40 00 90 ab call 2048c44 <__errno> <== NOT EXECUTED
202499c: 01 00 00 00 nop <== NOT EXECUTED
20249a0: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
20249a4: 81 c7 e0 08 ret <== NOT EXECUTED
20249a8: 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);
20249ac: 85 36 60 18 srl %i1, 0x18, %g2 <== NOT EXECUTED
20249b0: c4 28 60 10 stb %g2, [ %g1 + 0x10 ] <== NOT EXECUTED
20249b4: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
20249b8: 85 36 60 10 srl %i1, 0x10, %g2 <== NOT EXECUTED
20249bc: c4 28 60 11 stb %g2, [ %g1 + 0x11 ] <== NOT EXECUTED
20249c0: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
20249c4: 85 36 60 08 srl %i1, 8, %g2 <== NOT EXECUTED
20249c8: c4 28 60 12 stb %g2, [ %g1 + 0x12 ] <== NOT EXECUTED
20249cc: 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);
20249d0: 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);
20249d4: 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);
20249d8: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
20249dc: 87 36 a0 10 srl %i2, 0x10, %g3 <== NOT EXECUTED
20249e0: c4 28 60 14 stb %g2, [ %g1 + 0x14 ] <== NOT EXECUTED
20249e4: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
20249e8: 85 36 a0 08 srl %i2, 8, %g2 <== NOT EXECUTED
20249ec: c6 28 60 15 stb %g3, [ %g1 + 0x15 ] <== NOT EXECUTED
20249f0: 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);
20249f4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20249f8: c4 28 60 16 stb %g2, [ %g1 + 0x16 ] <== NOT EXECUTED
20249fc: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
2024a00: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2024a04: f4 28 60 17 stb %i2, [ %g1 + 0x17 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
2024a08: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2024a0c: 40 00 77 7a call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2024a10: c2 2f bf e8 stb %g1, [ %fp + -24 ] <== NOT EXECUTED
if (rc)
2024a14: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2024a18: 22 80 00 0d be,a 2024a4c <rtems_rfs_rtems_utime+0x114> <== NOT EXECUTED
2024a1c: e2 04 20 7c ld [ %l0 + 0x7c ], %l1 <== 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);
2024a20: e4 04 20 7c ld [ %l0 + 0x7c ], %l2 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2024a24: 40 00 68 18 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2024a28: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2024a2c: d0 04 80 00 ld [ %l2 ], %o0 <== NOT EXECUTED
2024a30: 7f ff a3 49 call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2024a34: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("utime: closing inode", rc);
2024a38: 40 00 90 83 call 2048c44 <__errno> <== NOT EXECUTED
2024a3c: 01 00 00 00 nop <== NOT EXECUTED
2024a40: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2024a44: 81 c7 e0 08 ret <== NOT EXECUTED
2024a48: 81 e8 00 00 restore <== NOT EXECUTED
2024a4c: 40 00 68 0e call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2024a50: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2024a54: d0 04 40 00 ld [ %l1 ], %o0 <== NOT EXECUTED
2024a58: 7f ff a3 3f call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2024a5c: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return 0;
}
2024a60: 81 c7 e0 08 ret <== NOT EXECUTED
2024a64: 81 e8 00 00 restore <== NOT EXECUTED
02041024 <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)
{
2041024: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (dividend == 0)
2041028: 82 96 20 00 orcc %i0, 0, %g1 <== NOT EXECUTED
204102c: 02 80 00 06 be 2041044 <rtems_rfs_rup_quotient+0x20> <== NOT EXECUTED
2041030: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
2041034: 90 00 7f ff add %g1, -1, %o0 <== NOT EXECUTED
2041038: 40 00 80 30 call 20610f8 <.udiv> <== NOT EXECUTED
204103c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2041040: b0 02 20 01 add %o0, 1, %i0 <== NOT EXECUTED
}
2041044: 81 c7 e0 08 ret <== NOT EXECUTED
2041048: 81 e8 00 00 restore <== NOT EXECUTED
020266ec <rtems_rfs_shell_block>:
return 0;
}
static int
rtems_rfs_shell_block (rtems_rfs_file_system* fs, int argc, char *argv[])
{
20266ec: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED
uint8_t* data;
bool state;
int b;
int rc;
if (argc <= 1)
20266f0: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED
20266f4: 04 80 00 81 ble 20268f8 <rtems_rfs_shell_block+0x20c> <== NOT EXECUTED
20266f8: 92 10 20 00 clr %o1 <== NOT EXECUTED
{
printf ("error: no block number provided\n");
return 1;
}
block = strtoul (argv[1], 0, 0);
20266fc: d0 06 a0 04 ld [ %i2 + 4 ], %o0 <== NOT EXECUTED
2026700: 40 00 aa ae call 20511b8 <strtoul> <== NOT EXECUTED
2026704: 94 10 20 00 clr %o2 <== NOT EXECUTED
2026708: c2 06 20 7c ld [ %i0 + 0x7c ], %g1 <== NOT EXECUTED
202670c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
2026710: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
2026714: 92 10 20 00 clr %o1 <== NOT EXECUTED
2026718: 7f ff 9b c8 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
202671c: 94 10 20 00 clr %o2 <== NOT EXECUTED
rtems_rfs_shell_lock_rfs (fs);
rc = rtems_rfs_group_bitmap_test (fs, false, block, &state);
2026720: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2026724: 92 10 20 00 clr %o1 <== NOT EXECUTED
2026728: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
202672c: 40 00 6e 1a call 2041f94 <rtems_rfs_group_bitmap_test> <== NOT EXECUTED
2026730: 96 07 bf ff add %fp, -1, %o3 <== NOT EXECUTED
if (rc > 0)
2026734: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2026738: 14 80 00 4c bg 2026868 <rtems_rfs_shell_block+0x17c> <== NOT EXECUTED
202673c: c2 0f bf ff ldub [ %fp + -1 ], %g1 <== NOT EXECUTED
printf ("error: testing block state: block=%" PRIu32 ": (%d) %s\n",
block, rc, strerror (rc));
return 1;
}
printf (" %5" PRIu32 ": block %s\n", block, state ? "allocated" : "free");
2026740: 15 00 81 a1 sethi %hi(0x2068400), %o2 <== NOT EXECUTED
2026744: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2026748: 12 80 00 04 bne 2026758 <rtems_rfs_shell_block+0x6c> <== NOT EXECUTED
202674c: 94 12 a3 00 or %o2, 0x300, %o2 <== NOT EXECUTED
2026750: 15 00 81 a1 sethi %hi(0x2068400), %o2 <== NOT EXECUTED
2026754: 94 12 a2 f8 or %o2, 0x2f8, %o2 ! 20686f8 <rtems_rfs_ops+0x520><== NOT EXECUTED
2026758: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
202675c: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
2026760: 40 00 9b 34 call 204d430 <printf> <== NOT EXECUTED
2026764: 90 12 23 10 or %o0, 0x310, %o0 ! 2068710 <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);
2026768: 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;
202676c: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
2026770: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
2026774: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
2026778: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
202677c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2026780: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2026784: 40 00 61 60 call 203ed04 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
2026788: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
202678c: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2026790: 14 80 00 47 bg 20268ac <rtems_rfs_shell_block+0x1c0> <== NOT EXECUTED
2026794: c4 07 bf f8 ld [ %fp + -8 ], %g2 <== NOT EXECUTED
block, rc, strerror (rc));
return 1;
}
for (b = 0, data = rtems_rfs_buffer_data (&buffer);
b < rtems_rfs_fs_block_size (fs);
2026798: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED
202679c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20267a0: 02 80 00 25 be 2026834 <rtems_rfs_shell_block+0x148> <== NOT EXECUTED
20267a4: e4 00 a0 24 ld [ %g2 + 0x24 ], %l2 <== NOT EXECUTED
20267a8: 27 00 81 a1 sethi %hi(0x2068400), %l3 <== NOT EXECUTED
int mod = b % 16;
if (mod == 0)
{
if (b)
printf ("\n");
printf ("%04x ", b);
20267ac: 29 00 81 a1 sethi %hi(0x2068400), %l4 <== NOT EXECUTED
}
if (mod == 8)
printf (" ");
printf ("%02x ", *data);
20267b0: a6 14 e3 f8 or %l3, 0x3f8, %l3 <== NOT EXECUTED
int mod = b % 16;
if (mod == 0)
{
if (b)
printf ("\n");
printf ("%04x ", b);
20267b4: a8 15 23 f0 or %l4, 0x3f0, %l4 <== NOT EXECUTED
block, rc, strerror (rc));
return 1;
}
for (b = 0, data = rtems_rfs_buffer_data (&buffer);
b < rtems_rfs_fs_block_size (fs);
20267b8: 10 80 00 0f b 20267f4 <rtems_rfs_shell_block+0x108> <== NOT EXECUTED
20267bc: a0 10 20 00 clr %l0 <== NOT EXECUTED
b++, data++)
{
int mod = b % 16;
if (mod == 0)
{
if (b)
20267c0: 12 80 00 37 bne 202689c <rtems_rfs_shell_block+0x1b0> <== NOT EXECUTED
20267c4: 01 00 00 00 nop <== NOT EXECUTED
printf ("\n");
printf ("%04x ", b);
20267c8: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
20267cc: 40 00 9b 19 call 204d430 <printf> <== NOT EXECUTED
20267d0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
}
if (mod == 8)
printf (" ");
printf ("%02x ", *data);
20267d4: d2 0c 80 10 ldub [ %l2 + %l0 ], %o1 <== NOT EXECUTED
20267d8: 40 00 9b 16 call 204d430 <printf> <== NOT EXECUTED
20267dc: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
block, rc, strerror (rc));
return 1;
}
for (b = 0, data = rtems_rfs_buffer_data (&buffer);
b < rtems_rfs_fs_block_size (fs);
20267e0: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED
b++, data++)
20267e4: 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);
20267e8: 80 a0 40 10 cmp %g1, %l0 <== NOT EXECUTED
20267ec: 08 80 00 12 bleu 2026834 <rtems_rfs_shell_block+0x148> <== NOT EXECUTED
20267f0: 01 00 00 00 nop <== NOT EXECUTED
b++, data++)
{
int mod = b % 16;
if (mod == 0)
20267f4: 82 8c 20 0f andcc %l0, 0xf, %g1 <== NOT EXECUTED
20267f8: 02 bf ff f2 be 20267c0 <rtems_rfs_shell_block+0xd4> <== NOT EXECUTED
20267fc: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
{
if (b)
printf ("\n");
printf ("%04x ", b);
}
if (mod == 8)
2026800: 80 a0 60 08 cmp %g1, 8 <== NOT EXECUTED
2026804: 32 bf ff f5 bne,a 20267d8 <rtems_rfs_shell_block+0xec> <== NOT EXECUTED
2026808: d2 0c 80 10 ldub [ %l2 + %l0 ], %o1 <== NOT EXECUTED
printf (" ");
202680c: 40 00 9b 81 call 204d610 <putchar> <== NOT EXECUTED
2026810: 90 10 20 20 mov 0x20, %o0 <== NOT EXECUTED
printf ("%02x ", *data);
2026814: d2 0c 80 10 ldub [ %l2 + %l0 ], %o1 <== NOT EXECUTED
2026818: 40 00 9b 06 call 204d430 <printf> <== NOT EXECUTED
202681c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
block, rc, strerror (rc));
return 1;
}
for (b = 0, data = rtems_rfs_buffer_data (&buffer);
b < rtems_rfs_fs_block_size (fs);
2026820: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED
b++, data++)
2026824: 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);
2026828: 80 a0 40 10 cmp %g1, %l0 <== NOT EXECUTED
202682c: 18 bf ff f3 bgu 20267f8 <rtems_rfs_shell_block+0x10c> <== NOT EXECUTED
2026830: 82 8c 20 0f andcc %l0, 0xf, %g1 <== NOT EXECUTED
if (mod == 8)
printf (" ");
printf ("%02x ", *data);
}
printf ("\n");
2026834: 40 00 9b 77 call 204d610 <putchar> <== NOT EXECUTED
2026838: 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);
202683c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2026840: 40 00 60 e8 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2026844: 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);
2026848: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
handle->dirty = false;
202684c: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
2026850: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
2026854: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
2026858: 7f ff fd 10 call 2025c98 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
202685c: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2026860: 81 c7 e0 08 ret <== NOT EXECUTED
2026864: 81 e8 00 00 restore <== NOT EXECUTED
rtems_rfs_shell_lock_rfs (fs);
rc = rtems_rfs_group_bitmap_test (fs, false, block, &state);
if (rc > 0)
{
rtems_rfs_shell_unlock_rfs (fs);
2026868: 7f ff fd 0c call 2025c98 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
202686c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
printf ("error: testing block state: block=%" PRIu32 ": (%d) %s\n",
2026870: 40 00 a3 91 call 204f6b4 <strerror> <== NOT EXECUTED
2026874: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2026878: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
202687c: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2026880: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2026884: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
2026888: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
202688c: 40 00 9a e9 call 204d430 <printf> <== NOT EXECUTED
2026890: 90 12 22 c8 or %o0, 0x2c8, %o0 <== NOT EXECUTED
block, rc, strerror (rc));
return 1;
2026894: 81 c7 e0 08 ret <== NOT EXECUTED
2026898: 81 e8 00 00 restore <== NOT EXECUTED
{
int mod = b % 16;
if (mod == 0)
{
if (b)
printf ("\n");
202689c: 40 00 9b 5d call 204d610 <putchar> <== NOT EXECUTED
20268a0: 90 10 20 0a mov 0xa, %o0 <== NOT EXECUTED
printf ("%04x ", b);
20268a4: 10 bf ff ca b 20267cc <rtems_rfs_shell_block+0xe0> <== NOT EXECUTED
20268a8: 90 10 00 14 mov %l4, %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);
20268ac: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20268b0: 40 00 60 cc call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
20268b4: 90 10 00 18 mov %i0, %o0 <== 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);
20268b8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
handle->dirty = false;
20268bc: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
20268c0: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
20268c4: 7f ff fc f5 call 2025c98 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
20268c8: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
printf ("error: requesting buffer handle: block=%" PRIu32 ": (%d) %s\n",
20268cc: 40 00 a3 7a call 204f6b4 <strerror> <== NOT EXECUTED
20268d0: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
20268d4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
20268d8: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
20268dc: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
20268e0: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
20268e4: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
20268e8: 40 00 9a d2 call 204d430 <printf> <== NOT EXECUTED
20268ec: 90 12 23 28 or %o0, 0x328, %o0 <== NOT EXECUTED
block, rc, strerror (rc));
return 1;
20268f0: 81 c7 e0 08 ret <== NOT EXECUTED
20268f4: 81 e8 00 00 restore <== NOT EXECUTED
int b;
int rc;
if (argc <= 1)
{
printf ("error: no block number provided\n");
20268f8: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
20268fc: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
2026900: 40 00 9b 78 call 204d6e0 <puts> <== NOT EXECUTED
2026904: 90 12 22 a8 or %o0, 0x2a8, %o0 <== NOT EXECUTED
return 1;
2026908: 81 c7 e0 08 ret <== NOT EXECUTED
202690c: 81 e8 00 00 restore <== NOT EXECUTED
02026910 <rtems_rfs_shell_data>:
return rc;
}
static int
rtems_rfs_shell_data (rtems_rfs_file_system* fs, int argc, char *argv[])
{
2026910: 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");
2026914: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
2026918: 40 00 9b 72 call 204d6e0 <puts> <== NOT EXECUTED
202691c: 90 12 20 00 mov %o0, %o0 ! 2068800 <rtems_rfs_ops+0x628> <== NOT EXECUTED
printf (" flags: %08" PRIx32 "\n", fs->flags);
2026920: d2 06 00 00 ld [ %i0 ], %o1 <== NOT EXECUTED
2026924: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
2026928: 40 00 9a c2 call 204d430 <printf> <== NOT EXECUTED
202692c: 90 12 20 18 or %o0, 0x18, %o0 ! 2068818 <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));
2026930: d2 06 20 04 ld [ %i0 + 4 ], %o1 <== NOT EXECUTED
2026934: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
2026938: 40 00 9a be call 204d430 <printf> <== NOT EXECUTED
202693c: 90 12 20 38 or %o0, 0x38, %o0 ! 2068838 <rtems_rfs_ops+0x660><== NOT EXECUTED
printf (" block size: %zu\n", rtems_rfs_fs_block_size (fs));
2026940: d2 06 20 08 ld [ %i0 + 8 ], %o1 <== NOT EXECUTED
2026944: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
2026948: 40 00 9a ba call 204d430 <printf> <== NOT EXECUTED
202694c: 90 12 20 58 or %o0, 0x58, %o0 ! 2068858 <rtems_rfs_ops+0x680><== NOT EXECUTED
printf (" size: %" PRIu64 "\n", rtems_rfs_fs_size (fs));
2026950: 40 00 68 0a call 2040978 <rtems_rfs_fs_size> <== NOT EXECUTED
2026954: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2026958: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED
202695c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
2026960: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
2026964: 40 00 9a b3 call 204d430 <printf> <== NOT EXECUTED
2026968: 90 12 20 78 or %o0, 0x78, %o0 ! 2068878 <rtems_rfs_ops+0x6a0><== NOT EXECUTED
printf (" media block size: %" PRIu32 "\n", rtems_rfs_fs_media_block_size (fs));
202696c: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
2026970: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
2026974: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
2026978: 40 00 9a ae call 204d430 <printf> <== NOT EXECUTED
202697c: 90 12 20 98 or %o0, 0x98, %o0 <== NOT EXECUTED
printf (" media size: %" PRIu64 "\n", rtems_rfs_fs_media_size (fs));
2026980: 40 00 68 07 call 204099c <rtems_rfs_fs_media_size> <== NOT EXECUTED
2026984: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2026988: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED
202698c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
2026990: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
2026994: 40 00 9a a7 call 204d430 <printf> <== NOT EXECUTED
2026998: 90 12 20 b8 or %o0, 0xb8, %o0 ! 20688b8 <rtems_rfs_ops+0x6e0><== NOT EXECUTED
printf (" inodes: %" PRIu32 "\n", rtems_rfs_fs_inodes (fs));
202699c: d2 06 20 10 ld [ %i0 + 0x10 ], %o1 <== NOT EXECUTED
20269a0: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
20269a4: 40 00 9a a3 call 204d430 <printf> <== NOT EXECUTED
20269a8: 90 12 20 d8 or %o0, 0xd8, %o0 ! 20688d8 <rtems_rfs_ops+0x700><== NOT EXECUTED
printf (" bad blocks: %" PRIu32 "\n", fs->bad_blocks);
20269ac: d2 06 20 14 ld [ %i0 + 0x14 ], %o1 <== NOT EXECUTED
20269b0: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
20269b4: 40 00 9a 9f call 204d430 <printf> <== NOT EXECUTED
20269b8: 90 12 20 f8 or %o0, 0xf8, %o0 ! 20688f8 <rtems_rfs_ops+0x720><== NOT EXECUTED
printf (" max. name length: %" PRIu32 "\n", rtems_rfs_fs_max_name (fs));
20269bc: d2 06 20 18 ld [ %i0 + 0x18 ], %o1 <== NOT EXECUTED
20269c0: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
20269c4: 40 00 9a 9b call 204d430 <printf> <== NOT EXECUTED
20269c8: 90 12 21 18 or %o0, 0x118, %o0 ! 2068918 <rtems_rfs_ops+0x740><== NOT EXECUTED
printf (" groups: %d\n", fs->group_count);
20269cc: d2 06 20 20 ld [ %i0 + 0x20 ], %o1 <== NOT EXECUTED
20269d0: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
20269d4: 40 00 9a 97 call 204d430 <printf> <== NOT EXECUTED
20269d8: 90 12 21 38 or %o0, 0x138, %o0 ! 2068938 <rtems_rfs_ops+0x760><== NOT EXECUTED
printf (" group blocks: %zd\n", fs->group_blocks);
20269dc: d2 06 20 24 ld [ %i0 + 0x24 ], %o1 <== NOT EXECUTED
20269e0: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
20269e4: 40 00 9a 93 call 204d430 <printf> <== NOT EXECUTED
20269e8: 90 12 21 50 or %o0, 0x150, %o0 ! 2068950 <rtems_rfs_ops+0x778><== NOT EXECUTED
printf (" group inodes: %zd\n", fs->group_inodes);
20269ec: d2 06 20 28 ld [ %i0 + 0x28 ], %o1 <== NOT EXECUTED
20269f0: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
20269f4: 40 00 9a 8f call 204d430 <printf> <== NOT EXECUTED
20269f8: 90 12 21 70 or %o0, 0x170, %o0 ! 2068970 <rtems_rfs_ops+0x798><== NOT EXECUTED
printf (" inodes per block: %zd\n", fs->inodes_per_block);
20269fc: d2 06 20 2c ld [ %i0 + 0x2c ], %o1 <== NOT EXECUTED
2026a00: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
2026a04: 40 00 9a 8b call 204d430 <printf> <== NOT EXECUTED
2026a08: 90 12 21 90 or %o0, 0x190, %o0 ! 2068990 <rtems_rfs_ops+0x7b8><== NOT EXECUTED
printf (" blocks per block: %zd\n", fs->blocks_per_block);
2026a0c: d2 06 20 30 ld [ %i0 + 0x30 ], %o1 <== NOT EXECUTED
2026a10: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
2026a14: 40 00 9a 87 call 204d430 <printf> <== NOT EXECUTED
2026a18: 90 12 21 b0 or %o0, 0x1b0, %o0 ! 20689b0 <rtems_rfs_ops+0x7d8><== NOT EXECUTED
printf (" singly blocks: %zd\n", fs->block_map_singly_blocks);
2026a1c: d2 06 20 34 ld [ %i0 + 0x34 ], %o1 <== NOT EXECUTED
2026a20: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
2026a24: 40 00 9a 83 call 204d430 <printf> <== NOT EXECUTED
2026a28: 90 12 21 d0 or %o0, 0x1d0, %o0 ! 20689d0 <rtems_rfs_ops+0x7f8><== NOT EXECUTED
printf (" doublly blocks: %zd\n", fs->block_map_doubly_blocks);
2026a2c: d2 06 20 38 ld [ %i0 + 0x38 ], %o1 <== NOT EXECUTED
2026a30: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
2026a34: 40 00 9a 7f call 204d430 <printf> <== NOT EXECUTED
2026a38: 90 12 21 f0 or %o0, 0x1f0, %o0 ! 20689f0 <rtems_rfs_ops+0x818><== NOT EXECUTED
printf (" max. held buffers: %" PRId32 "\n", fs->max_held_buffers);
2026a3c: d2 06 20 3c ld [ %i0 + 0x3c ], %o1 <== NOT EXECUTED
2026a40: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
2026a44: 40 00 9a 7b call 204d430 <printf> <== NOT EXECUTED
2026a48: 90 12 22 10 or %o0, 0x210, %o0 ! 2068a10 <rtems_rfs_ops+0x838><== NOT EXECUTED
2026a4c: c2 06 20 7c ld [ %i0 + 0x7c ], %g1 <== NOT EXECUTED
2026a50: 92 10 20 00 clr %o1 <== NOT EXECUTED
2026a54: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
2026a58: 7f ff 9a f8 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
2026a5c: 94 10 20 00 clr %o2 <== NOT EXECUTED
rtems_rfs_shell_lock_rfs (fs);
rtems_rfs_group_usage (fs, &blocks, &inodes);
2026a60: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED
2026a64: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
2026a68: 40 00 6d 24 call 2041ef8 <rtems_rfs_group_usage> <== NOT EXECUTED
2026a6c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
rtems_rfs_shell_unlock_rfs (fs);
2026a70: 7f ff fc 8a call 2025c98 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
2026a74: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
bpcent = (blocks * 1000) / rtems_rfs_fs_blocks (fs);
2026a78: e0 07 bf fc ld [ %fp + -4 ], %l0 <== NOT EXECUTED
2026a7c: d2 06 20 04 ld [ %i0 + 4 ], %o1 <== NOT EXECUTED
2026a80: 83 2c 20 02 sll %l0, 2, %g1 <== NOT EXECUTED
2026a84: 91 2c 20 07 sll %l0, 7, %o0 <== NOT EXECUTED
2026a88: 90 22 00 01 sub %o0, %g1, %o0 <== NOT EXECUTED
2026a8c: 90 02 00 10 add %o0, %l0, %o0 <== NOT EXECUTED
2026a90: 40 00 e9 9a call 20610f8 <.udiv> <== NOT EXECUTED
2026a94: 91 2a 20 03 sll %o0, 3, %o0 <== NOT EXECUTED
ipcent = (inodes * 1000) / rtems_rfs_fs_inodes (fs);
2026a98: 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[])
{
2026a9c: 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);
2026aa0: d2 04 60 10 ld [ %l1 + 0x10 ], %o1 <== NOT EXECUTED
2026aa4: 87 28 60 07 sll %g1, 7, %g3 <== NOT EXECUTED
2026aa8: 85 28 60 02 sll %g1, 2, %g2 <== NOT EXECUTED
2026aac: 84 20 c0 02 sub %g3, %g2, %g2 <== NOT EXECUTED
2026ab0: 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);
2026ab4: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
ipcent = (inodes * 1000) / rtems_rfs_fs_inodes (fs);
2026ab8: 40 00 e9 90 call 20610f8 <.udiv> <== NOT EXECUTED
2026abc: 91 28 60 03 sll %g1, 3, %o0 <== NOT EXECUTED
printf (" blocks used: %zd (%d.%d%%)\n",
2026ac0: 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);
2026ac4: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
printf (" blocks used: %zd (%d.%d%%)\n",
2026ac8: 40 00 e9 8e call 2061100 <.div> <== NOT EXECUTED
2026acc: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2026ad0: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED
2026ad4: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
2026ad8: 40 00 ea 36 call 20613b0 <.rem> <== NOT EXECUTED
2026adc: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2026ae0: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
2026ae4: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2026ae8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2026aec: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
2026af0: 40 00 9a 50 call 204d430 <printf> <== NOT EXECUTED
2026af4: 90 12 22 30 or %o0, 0x230, %o0 ! 2068a30 <rtems_rfs_ops+0x858><== NOT EXECUTED
blocks, bpcent / 10, bpcent % 10);
printf (" inodes used: %zd (%d.%d%%)\n",
2026af8: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED
2026afc: 40 00 e9 81 call 2061100 <.div> <== NOT EXECUTED
2026b00: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2026b04: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED
2026b08: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
2026b0c: 40 00 ea 29 call 20613b0 <.rem> <== NOT EXECUTED
2026b10: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2026b14: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
inodes, ipcent / 10, ipcent % 10);
return 0;
}
2026b18: 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",
2026b1c: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2026b20: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2026b24: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
2026b28: 40 00 9a 42 call 204d430 <printf> <== NOT EXECUTED
2026b2c: 90 12 22 58 or %o0, 0x258, %o0 ! 2068a58 <rtems_rfs_ops+0x880><== NOT EXECUTED
inodes, ipcent / 10, ipcent % 10);
return 0;
}
2026b30: 81 c7 e0 08 ret <== NOT EXECUTED
2026b34: 81 e8 00 00 restore <== NOT EXECUTED
0202638c <rtems_rfs_shell_dir>:
return 0;
}
static int
rtems_rfs_shell_dir (rtems_rfs_file_system* fs, int argc, char *argv[])
{
202638c: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED
bool state;
int entry;
int b;
int rc;
if (argc <= 1)
2026390: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED
2026394: 04 80 00 ca ble 20266bc <rtems_rfs_shell_dir+0x330> <== NOT EXECUTED
2026398: 92 10 20 00 clr %o1 <== NOT EXECUTED
{
printf ("error: no block number provided\n");
return 1;
}
block = strtoul (argv[1], 0, 0);
202639c: d0 06 a0 04 ld [ %i2 + 4 ], %o0 <== NOT EXECUTED
20263a0: 40 00 ab 86 call 20511b8 <strtoul> <== NOT EXECUTED
20263a4: 94 10 20 00 clr %o2 <== NOT EXECUTED
20263a8: c2 06 20 7c ld [ %i0 + 0x7c ], %g1 <== NOT EXECUTED
20263ac: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
20263b0: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
20263b4: 92 10 20 00 clr %o1 <== NOT EXECUTED
20263b8: 7f ff 9c a0 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
20263bc: 94 10 20 00 clr %o2 <== NOT EXECUTED
rtems_rfs_shell_lock_rfs (fs);
rc = rtems_rfs_group_bitmap_test (fs, false, block, &state);
20263c0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20263c4: 92 10 20 00 clr %o1 <== NOT EXECUTED
20263c8: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
20263cc: 40 00 6e f2 call 2041f94 <rtems_rfs_group_bitmap_test> <== NOT EXECUTED
20263d0: 96 07 bf ff add %fp, -1, %o3 <== NOT EXECUTED
if (rc > 0)
20263d4: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
20263d8: 14 80 00 80 bg 20265d8 <rtems_rfs_shell_dir+0x24c> <== NOT EXECUTED
20263dc: c2 0f bf ff ldub [ %fp + -1 ], %g1 <== NOT EXECUTED
printf ("error: testing block state: block=%" PRIu32 ": (%d) %s\n",
block, rc, strerror (rc));
return 1;
}
printf (" %5" PRIu32 ": block %s\n", block, state ? "allocated" : "free");
20263e0: 15 00 81 a1 sethi %hi(0x2068400), %o2 <== NOT EXECUTED
20263e4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20263e8: 12 80 00 04 bne 20263f8 <rtems_rfs_shell_dir+0x6c> <== NOT EXECUTED
20263ec: 94 12 a3 00 or %o2, 0x300, %o2 <== NOT EXECUTED
20263f0: 15 00 81 a1 sethi %hi(0x2068400), %o2 <== NOT EXECUTED
20263f4: 94 12 a2 f8 or %o2, 0x2f8, %o2 ! 20686f8 <rtems_rfs_ops+0x520><== NOT EXECUTED
20263f8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
20263fc: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
2026400: 40 00 9c 0c call 204d430 <printf> <== NOT EXECUTED
2026404: 90 12 23 10 or %o0, 0x310, %o0 ! 2068710 <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);
2026408: ae 07 bf f0 add %fp, -16, %l7 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
202640c: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
2026410: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
2026414: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
2026418: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
202641c: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
2026420: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2026424: 40 00 62 38 call 203ed04 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
2026428: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
202642c: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2026430: 14 80 00 90 bg 2026670 <rtems_rfs_shell_dir+0x2e4> <== NOT EXECUTED
2026434: c4 07 bf f8 ld [ %fp + -8 ], %g2 <== 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))
2026438: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED
202643c: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED
2026440: 02 80 00 81 be 2026644 <rtems_rfs_shell_dir+0x2b8> <== NOT EXECUTED
2026444: e0 00 a0 24 ld [ %g2 + 0x24 ], %l0 <== NOT EXECUTED
int elength;
int length;
int c;
eino = rtems_rfs_dir_entry_ino (data);
elength = rtems_rfs_dir_entry_length (data);
2026448: c2 0c 20 09 ldub [ %l0 + 9 ], %g1 <== NOT EXECUTED
202644c: e2 0c 20 08 ldub [ %l0 + 8 ], %l1 <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
2026450: 2d 00 00 3f sethi %hi(0xfc00), %l6 <== NOT EXECUTED
int elength;
int length;
int c;
eino = rtems_rfs_dir_entry_ino (data);
elength = rtems_rfs_dir_entry_length (data);
2026454: a3 2c 60 08 sll %l1, 8, %l1 <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
2026458: ac 15 a3 ff or %l6, 0x3ff, %l6 <== NOT EXECUTED
int elength;
int length;
int c;
eino = rtems_rfs_dir_entry_ino (data);
elength = rtems_rfs_dir_entry_length (data);
202645c: 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);
2026460: c6 0c 00 00 ldub [ %l0 ], %g3 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (data);
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
2026464: 80 a4 40 16 cmp %l1, %l6 <== NOT EXECUTED
rtems_rfs_ino eino;
int elength;
int length;
int c;
eino = rtems_rfs_dir_entry_ino (data);
2026468: c4 0c 20 01 ldub [ %l0 + 1 ], %g2 <== NOT EXECUTED
202646c: c2 0c 20 02 ldub [ %l0 + 2 ], %g1 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (data);
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
2026470: 02 80 00 75 be 2026644 <rtems_rfs_shell_dir+0x2b8> <== NOT EXECUTED
2026474: c8 0c 20 03 ldub [ %l0 + 3 ], %g4 <== NOT EXECUTED
break;
if ((elength < RTEMS_RFS_DIR_ENTRY_SIZE) ||
2026478: 80 a4 60 09 cmp %l1, 9 <== NOT EXECUTED
202647c: 04 80 00 6d ble 2026630 <rtems_rfs_shell_dir+0x2a4> <== NOT EXECUTED
2026480: a8 10 20 01 mov 1, %l4 <== NOT EXECUTED
rtems_rfs_ino eino;
int elength;
int length;
int c;
eino = rtems_rfs_dir_entry_ino (data);
2026484: 88 09 20 ff and %g4, 0xff, %g4 <== NOT EXECUTED
2026488: 87 28 e0 18 sll %g3, 0x18, %g3 <== NOT EXECUTED
202648c: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
2026490: 96 11 00 03 or %g4, %g3, %o3 <== NOT EXECUTED
2026494: 82 08 60 ff and %g1, 0xff, %g1 <== NOT EXECUTED
2026498: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
202649c: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
20264a0: 96 12 c0 02 or %o3, %g2, %o3 <== NOT EXECUTED
break;
}
length = elength - RTEMS_RFS_DIR_ENTRY_SIZE;
printf (" %5d: %04x inode=%-6" PRIu32 " hash=%08" PRIx32 " name[%03u]=",
20264a4: 2b 00 81 a1 sethi %hi(0x2068400), %l5 <== 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 ("...");
20264a8: 3b 00 81 a1 sethi %hi(0x2068400), %i5 <== NOT EXECUTED
rtems_rfs_ino eino;
int elength;
int length;
int c;
eino = rtems_rfs_dir_entry_ino (data);
20264ac: 96 12 c0 01 or %o3, %g1, %o3 <== NOT EXECUTED
break;
}
length = elength - RTEMS_RFS_DIR_ENTRY_SIZE;
printf (" %5d: %04x inode=%-6" PRIu32 " hash=%08" PRIx32 " name[%03u]=",
20264b0: aa 15 63 b8 or %l5, 0x3b8, %l5 <== 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 ("...");
20264b4: ba 17 63 e8 or %i5, 0x3e8, %i5 <== NOT EXECUTED
rtems_rfs_ino eino;
int elength;
int length;
int c;
eino = rtems_rfs_dir_entry_ino (data);
20264b8: a6 10 20 00 clr %l3 <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
break;
if ((elength < RTEMS_RFS_DIR_ENTRY_SIZE) ||
(elength >= rtems_rfs_fs_max_name (fs)))
20264bc: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 <== NOT EXECUTED
20264c0: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
20264c4: 1a 80 00 5b bcc 2026630 <rtems_rfs_shell_dir+0x2a4> <== NOT EXECUTED
20264c8: 80 a2 e0 00 cmp %o3, 0 <== 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)))
20264cc: 02 80 00 82 be 20266d4 <rtems_rfs_shell_dir+0x348> <== NOT EXECUTED
20264d0: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
20264d4: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
20264d8: 80 a0 40 0b cmp %g1, %o3 <== NOT EXECUTED
20264dc: 08 80 00 7e bleu 20266d4 <rtems_rfs_shell_dir+0x348> <== NOT EXECUTED
20264e0: a4 04 7f f6 add %l1, -10, %l2 <== NOT EXECUTED
break;
}
length = elength - RTEMS_RFS_DIR_ENTRY_SIZE;
printf (" %5d: %04x inode=%-6" PRIu32 " hash=%08" PRIx32 " name[%03u]=",
20264e4: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED
20264e8: c2 0c 20 06 ldub [ %l0 + 6 ], %g1 <== NOT EXECUTED
20264ec: d8 0c 20 04 ldub [ %l0 + 4 ], %o4 <== NOT EXECUTED
20264f0: c4 0c 20 07 ldub [ %l0 + 7 ], %g2 <== NOT EXECUTED
20264f4: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
20264f8: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
20264fc: 99 2b 20 18 sll %o4, 0x18, %o4 <== NOT EXECUTED
2026500: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
2026504: 98 13 00 03 or %o4, %g3, %o4 <== NOT EXECUTED
2026508: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
202650c: 98 13 00 02 or %o4, %g2, %o4 <== NOT EXECUTED
2026510: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
2026514: 98 13 00 01 or %o4, %g1, %o4 <== NOT EXECUTED
2026518: 40 00 9b c6 call 204d430 <printf> <== NOT EXECUTED
202651c: 9a 10 00 12 mov %l2, %o5 <== NOT EXECUTED
2026520: 80 a4 a0 32 cmp %l2, 0x32 <== NOT EXECUTED
2026524: 04 80 00 3a ble 202660c <rtems_rfs_shell_dir+0x280> <== NOT EXECUTED
2026528: b6 10 00 12 mov %l2, %i3 <== NOT EXECUTED
202652c: b6 10 20 32 mov 0x32, %i3 <== NOT EXECUTED
length);
if (length > 50)
length = 50;
for (c = 0; c < length; c++)
2026530: b8 10 20 00 clr %i4 <== NOT EXECUTED
printf ("%c", data[RTEMS_RFS_DIR_ENTRY_SIZE + c]);
2026534: 82 04 00 1c add %l0, %i4, %g1 <== NOT EXECUTED
2026538: d0 08 60 0a ldub [ %g1 + 0xa ], %o0 <== NOT EXECUTED
202653c: 40 00 9c 35 call 204d610 <putchar> <== NOT EXECUTED
2026540: b8 07 20 01 inc %i4 <== NOT EXECUTED
length);
if (length > 50)
length = 50;
for (c = 0; c < length; c++)
2026544: 80 a6 c0 1c cmp %i3, %i4 <== NOT EXECUTED
2026548: 14 bf ff fc bg 2026538 <rtems_rfs_shell_dir+0x1ac> <== NOT EXECUTED
202654c: 82 04 00 1c add %l0, %i4, %g1 <== NOT EXECUTED
printf ("%c", data[RTEMS_RFS_DIR_ENTRY_SIZE + c]);
if (length < elength - RTEMS_RFS_DIR_ENTRY_SIZE)
2026550: 80 a4 80 1b cmp %l2, %i3 <== NOT EXECUTED
2026554: 14 80 00 34 bg 2026624 <rtems_rfs_shell_dir+0x298> <== NOT EXECUTED
2026558: 01 00 00 00 nop <== NOT EXECUTED
printf ("...");
printf ("\n");
202655c: 40 00 9c 2d call 204d610 <putchar> <== NOT EXECUTED
2026560: 90 10 20 0a mov 0xa, %o0 ! a <PROM_START+0xa> <== 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))
2026564: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED
printf ("%c", data[RTEMS_RFS_DIR_ENTRY_SIZE + c]);
if (length < elength - RTEMS_RFS_DIR_ENTRY_SIZE)
printf ("...");
printf ("\n");
b += elength;
2026568: a6 04 c0 11 add %l3, %l1, %l3 <== 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))
202656c: 82 00 7f f5 add %g1, -11, %g1 <== NOT EXECUTED
2026570: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED
2026574: 1a 80 00 34 bcc 2026644 <rtems_rfs_shell_dir+0x2b8> <== NOT EXECUTED
2026578: a0 04 00 11 add %l0, %l1, %l0 <== NOT EXECUTED
int elength;
int length;
int c;
eino = rtems_rfs_dir_entry_ino (data);
elength = rtems_rfs_dir_entry_length (data);
202657c: c2 0c 20 09 ldub [ %l0 + 9 ], %g1 <== NOT EXECUTED
2026580: 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);
2026584: c6 0c 00 00 ldub [ %l0 ], %g3 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (data);
2026588: 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);
202658c: c4 0c 20 01 ldub [ %l0 + 1 ], %g2 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (data);
2026590: 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);
2026594: c8 0c 20 03 ldub [ %l0 + 3 ], %g4 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (data);
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
2026598: 80 a4 40 16 cmp %l1, %l6 <== NOT EXECUTED
202659c: 02 80 00 2a be 2026644 <rtems_rfs_shell_dir+0x2b8> <== NOT EXECUTED
20265a0: c2 0c 20 02 ldub [ %l0 + 2 ], %g1 <== NOT EXECUTED
break;
if ((elength < RTEMS_RFS_DIR_ENTRY_SIZE) ||
20265a4: 80 a4 60 09 cmp %l1, 9 <== NOT EXECUTED
20265a8: 04 80 00 22 ble 2026630 <rtems_rfs_shell_dir+0x2a4> <== NOT EXECUTED
20265ac: a8 05 20 01 inc %l4 <== NOT EXECUTED
rtems_rfs_ino eino;
int elength;
int length;
int c;
eino = rtems_rfs_dir_entry_ino (data);
20265b0: 96 09 20 ff and %g4, 0xff, %o3 <== NOT EXECUTED
20265b4: 87 28 e0 18 sll %g3, 0x18, %g3 <== NOT EXECUTED
20265b8: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
20265bc: 96 12 c0 03 or %o3, %g3, %o3 <== NOT EXECUTED
20265c0: 82 08 60 ff and %g1, 0xff, %g1 <== NOT EXECUTED
20265c4: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
20265c8: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
20265cc: 96 12 c0 02 or %o3, %g2, %o3 <== NOT EXECUTED
20265d0: 10 bf ff bb b 20264bc <rtems_rfs_shell_dir+0x130> <== NOT EXECUTED
20265d4: 96 12 c0 01 or %o3, %g1, %o3 <== NOT EXECUTED
rtems_rfs_shell_lock_rfs (fs);
rc = rtems_rfs_group_bitmap_test (fs, false, block, &state);
if (rc > 0)
{
rtems_rfs_shell_unlock_rfs (fs);
20265d8: 7f ff fd b0 call 2025c98 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
20265dc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
printf ("error: testing block state: block=%" PRIu32 ": (%d) %s\n",
20265e0: 40 00 a4 35 call 204f6b4 <strerror> <== NOT EXECUTED
20265e4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
20265e8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
20265ec: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
20265f0: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
20265f4: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
20265f8: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
20265fc: 40 00 9b 8d call 204d430 <printf> <== NOT EXECUTED
2026600: 90 12 22 c8 or %o0, 0x2c8, %o0 <== NOT EXECUTED
block, rc, strerror (rc));
return 1;
2026604: 81 c7 e0 08 ret <== NOT EXECUTED
2026608: 81 e8 00 00 restore <== NOT EXECUTED
length);
if (length > 50)
length = 50;
for (c = 0; c < length; c++)
202660c: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
2026610: 14 bf ff c9 bg 2026534 <rtems_rfs_shell_dir+0x1a8> <== NOT EXECUTED
2026614: b8 10 20 00 clr %i4 <== NOT EXECUTED
printf ("%c", data[RTEMS_RFS_DIR_ENTRY_SIZE + c]);
if (length < elength - RTEMS_RFS_DIR_ENTRY_SIZE)
2026618: 80 a4 80 1b cmp %l2, %i3 <== NOT EXECUTED
202661c: 04 bf ff d0 ble 202655c <rtems_rfs_shell_dir+0x1d0> <== NOT EXECUTED
2026620: 01 00 00 00 nop <== NOT EXECUTED
printf ("...");
2026624: 40 00 9b 83 call 204d430 <printf> <== NOT EXECUTED
2026628: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED
202662c: 30 bf ff cc b,a 202655c <rtems_rfs_shell_dir+0x1d0> <== NOT EXECUTED
break;
if ((elength < RTEMS_RFS_DIR_ENTRY_SIZE) ||
(elength >= rtems_rfs_fs_max_name (fs)))
{
printf (" %5d: entry length appears corrupt: %d\n", entry, elength);
2026630: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
2026634: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
2026638: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
202663c: 40 00 9b 7d call 204d430 <printf> <== NOT EXECUTED
2026640: 90 12 23 60 or %o0, 0x360, %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);
2026644: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
2026648: 40 00 61 66 call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
202664c: 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);
2026650: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
handle->dirty = false;
2026654: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
2026658: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
202665c: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
2026660: 7f ff fd 8e call 2025c98 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
2026664: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2026668: 81 c7 e0 08 ret <== NOT EXECUTED
202666c: 81 e8 00 00 restore <== 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);
2026670: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
2026674: 40 00 61 5b call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2026678: 90 10 00 18 mov %i0, %o0 <== 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);
202667c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
handle->dirty = false;
2026680: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
2026684: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
2026688: 7f ff fd 84 call 2025c98 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
202668c: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
printf ("error: requesting buffer handle: block=%" PRIu32 ": (%d) %s\n",
2026690: 40 00 a4 09 call 204f6b4 <strerror> <== NOT EXECUTED
2026694: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2026698: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
202669c: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
20266a0: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
20266a4: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
20266a8: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
20266ac: 40 00 9b 61 call 204d430 <printf> <== NOT EXECUTED
20266b0: 90 12 23 28 or %o0, 0x328, %o0 <== NOT EXECUTED
block, rc, strerror (rc));
return 1;
20266b4: 81 c7 e0 08 ret <== NOT EXECUTED
20266b8: 81 e8 00 00 restore <== NOT EXECUTED
int b;
int rc;
if (argc <= 1)
{
printf ("error: no block number provided\n");
20266bc: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
20266c0: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
20266c4: 40 00 9c 07 call 204d6e0 <puts> <== NOT EXECUTED
20266c8: 90 12 22 a8 or %o0, 0x2a8, %o0 <== NOT EXECUTED
return 1;
20266cc: 81 c7 e0 08 ret <== NOT EXECUTED
20266d0: 81 e8 00 00 restore <== NOT EXECUTED
break;
}
if ((eino < RTEMS_RFS_ROOT_INO) || (eino >= rtems_rfs_fs_inodes (fs)))
{
printf (" %5d: entry ino appears corrupt: ino=%" PRId32 "\n", entry, eino);
20266d4: 94 10 00 0b mov %o3, %o2 <== NOT EXECUTED
20266d8: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
20266dc: 40 00 9b 55 call 204d430 <printf> <== NOT EXECUTED
20266e0: 90 12 23 88 or %o0, 0x388, %o0 ! 2068788 <rtems_rfs_ops+0x5b0><== NOT EXECUTED
break;
20266e4: 10 bf ff d9 b 2026648 <rtems_rfs_shell_dir+0x2bc> <== NOT EXECUTED
20266e8: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
020261cc <rtems_rfs_shell_group>:
return 0;
}
static int
rtems_rfs_shell_group (rtems_rfs_file_system* fs, int argc, char *argv[])
{
20261cc: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int g;
start = 0;
end = fs->group_count - 1;
switch (argc)
20261d0: 80 a6 60 02 cmp %i1, 2 <== NOT EXECUTED
20261d4: 02 80 00 2d be 2026288 <rtems_rfs_shell_group+0xbc> <== NOT EXECUTED
20261d8: d2 06 20 20 ld [ %i0 + 0x20 ], %o1 <== NOT EXECUTED
20261dc: 80 a6 60 03 cmp %i1, 3 <== NOT EXECUTED
20261e0: 02 80 00 1c be 2026250 <rtems_rfs_shell_group+0x84> <== NOT EXECUTED
20261e4: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED
20261e8: 02 80 00 07 be 2026204 <rtems_rfs_shell_group+0x38> <== NOT EXECUTED
20261ec: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
case 3:
start = strtoul (argv[1], 0, 0);
end = strtoul (argv[2], 0, 0);
break;
default:
printf ("error: too many arguments.\n");
20261f0: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
20261f4: 40 00 9d 3b call 204d6e0 <puts> <== NOT EXECUTED
20261f8: 90 12 22 18 or %o0, 0x218, %o0 <== NOT EXECUTED
return 1;
20261fc: 81 c7 e0 08 ret <== NOT EXECUTED
2026200: 81 e8 00 00 restore <== NOT EXECUTED
int start;
int end;
int g;
start = 0;
end = fs->group_count - 1;
2026204: a4 02 7f ff add %o1, -1, %l2 <== NOT EXECUTED
2026208: 84 10 20 00 clr %g2 <== NOT EXECUTED
202620c: 83 34 a0 1f srl %l2, 0x1f, %g1 <== NOT EXECUTED
2026210: a6 10 20 00 clr %l3 <== NOT EXECUTED
default:
printf ("error: too many arguments.\n");
return 1;
}
if ((start < 0) || (end < 0) ||
2026214: 80 88 60 ff btst 0xff, %g1 <== NOT EXECUTED
2026218: 12 80 00 08 bne 2026238 <rtems_rfs_shell_group+0x6c> <== NOT EXECUTED
202621c: 80 88 a0 ff btst 0xff, %g2 <== NOT EXECUTED
2026220: 12 80 00 06 bne 2026238 <rtems_rfs_shell_group+0x6c> <== NOT EXECUTED
2026224: 80 a4 c0 09 cmp %l3, %o1 <== NOT EXECUTED
2026228: 16 80 00 04 bge 2026238 <rtems_rfs_shell_group+0x6c> <== NOT EXECUTED
202622c: 80 a4 80 09 cmp %l2, %o1 <== NOT EXECUTED
2026230: 26 80 00 20 bl,a 20262b0 <rtems_rfs_shell_group+0xe4> <== NOT EXECUTED
2026234: 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);
2026238: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
202623c: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
2026240: 40 00 9c 7c call 204d430 <printf> <== NOT EXECUTED
2026244: 90 12 22 38 or %o0, 0x238, %o0 <== NOT EXECUTED
return 1;
2026248: 81 c7 e0 08 ret <== NOT EXECUTED
202624c: 81 e8 00 00 restore <== NOT EXECUTED
break;
case 2:
start = end = strtoul (argv[1], 0, 0);
break;
case 3:
start = strtoul (argv[1], 0, 0);
2026250: d0 06 a0 04 ld [ %i2 + 4 ], %o0 <== NOT EXECUTED
2026254: 92 10 20 00 clr %o1 <== NOT EXECUTED
2026258: 40 00 ab d8 call 20511b8 <strtoul> <== NOT EXECUTED
202625c: 94 10 20 00 clr %o2 <== NOT EXECUTED
2026260: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
end = strtoul (argv[2], 0, 0);
2026264: d0 06 a0 08 ld [ %i2 + 8 ], %o0 <== NOT EXECUTED
2026268: 92 10 20 00 clr %o1 <== NOT EXECUTED
202626c: 40 00 ab d3 call 20511b8 <strtoul> <== NOT EXECUTED
2026270: 94 10 20 00 clr %o2 <== NOT EXECUTED
2026274: 85 34 e0 1f srl %l3, 0x1f, %g2 <== NOT EXECUTED
2026278: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
202627c: 83 32 20 1f srl %o0, 0x1f, %g1 <== NOT EXECUTED
break;
2026280: 10 bf ff e5 b 2026214 <rtems_rfs_shell_group+0x48> <== NOT EXECUTED
2026284: d2 06 20 20 ld [ %i0 + 0x20 ], %o1 <== NOT EXECUTED
switch (argc)
{
case 1:
break;
case 2:
start = end = strtoul (argv[1], 0, 0);
2026288: d0 06 a0 04 ld [ %i2 + 4 ], %o0 <== NOT EXECUTED
202628c: 92 10 20 00 clr %o1 <== NOT EXECUTED
2026290: 40 00 ab ca call 20511b8 <strtoul> <== NOT EXECUTED
2026294: 94 10 20 00 clr %o2 <== NOT EXECUTED
2026298: d2 06 20 20 ld [ %i0 + 0x20 ], %o1 <== NOT EXECUTED
202629c: 85 32 20 1f srl %o0, 0x1f, %g2 <== NOT EXECUTED
20262a0: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
20262a4: 82 10 00 02 mov %g2, %g1 <== NOT EXECUTED
break;
20262a8: 10 bf ff db b 2026214 <rtems_rfs_shell_group+0x48> <== NOT EXECUTED
20262ac: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
20262b0: 92 10 20 00 clr %o1 <== NOT EXECUTED
20262b4: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
20262b8: 7f ff 9c e0 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
20262bc: 94 10 20 00 clr %o2 <== NOT EXECUTED
return 1;
}
rtems_rfs_shell_lock_rfs (fs);
for (g = start; g <= end; g++)
20262c0: 80 a4 c0 12 cmp %l3, %l2 <== NOT EXECUTED
20262c4: 34 80 00 2e bg,a 202637c <rtems_rfs_shell_group+0x1b0> <== NOT EXECUTED
20262c8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20262cc: a1 2c e0 04 sll %l3, 4, %l0 <== NOT EXECUTED
20262d0: a2 10 00 13 mov %l3, %l1 <== NOT EXECUTED
20262d4: a7 2c e0 06 sll %l3, 6, %l3 <== NOT EXECUTED
20262d8: a0 04 00 13 add %l0, %l3, %l0 <== NOT EXECUTED
20262dc: 27 00 81 a1 sethi %hi(0x2068400), %l3 <== 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",
20262e0: a6 14 e2 60 or %l3, 0x260, %l3 ! 2068660 <rtems_rfs_ops+0x488><== NOT EXECUTED
rtems_rfs_shell_lock_rfs (fs);
for (g = start; g <= end; g++)
{
rtems_rfs_group* group = &fs->groups[g];
20262e4: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 <== NOT EXECUTED
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);
20262e8: 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];
20262ec: 82 00 80 10 add %g2, %l0, %g1 <== NOT EXECUTED
size_t blocks;
size_t inodes;
blocks = group->size - rtems_rfs_bitmap_map_free (&group->block_bitmap);
20262f0: ec 00 60 04 ld [ %g1 + 4 ], %l6 <== NOT EXECUTED
20262f4: 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",
20262f8: fa 00 80 10 ld [ %g2 + %l0 ], %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);
20262fc: f4 00 60 3c ld [ %g1 + 0x3c ], %i2 <== 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);
2026300: aa 25 80 15 sub %l6, %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",
2026304: 85 2d 60 02 sll %l5, 2, %g2 <== NOT EXECUTED
2026308: 83 2d 60 04 sll %l5, 4, %g1 <== NOT EXECUTED
202630c: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
2026310: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
2026314: 91 28 60 02 sll %g1, 2, %o0 <== NOT EXECUTED
2026318: 40 00 eb 78 call 20610f8 <.udiv> <== NOT EXECUTED
202631c: 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);
2026320: b4 25 c0 1a sub %l7, %i2, %i2 <== NOT EXECUTED
printf (" %4d: base=%-7" PRIu32 " size=%-6zu blocks=%-5zu (%3zu%%) inode=%-5zu (%3zu%%)\n",
2026324: 83 2e a0 04 sll %i2, 4, %g1 <== NOT EXECUTED
2026328: a8 10 00 08 mov %o0, %l4 <== NOT EXECUTED
202632c: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
2026330: f4 23 a0 5c st %i2, [ %sp + 0x5c ] <== NOT EXECUTED
2026334: b5 2e a0 02 sll %i2, 2, %i2 <== NOT EXECUTED
2026338: b4 06 80 01 add %i2, %g1, %i2 <== NOT EXECUTED
202633c: 91 2e a0 02 sll %i2, 2, %o0 <== NOT EXECUTED
2026340: 40 00 eb 6e call 20610f8 <.udiv> <== NOT EXECUTED
2026344: 90 06 80 08 add %i2, %o0, %o0 <== NOT EXECUTED
2026348: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
202634c: d0 23 a0 60 st %o0, [ %sp + 0x60 ] <== NOT EXECUTED
2026350: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
2026354: 96 10 00 16 mov %l6, %o3 <== NOT EXECUTED
2026358: 98 10 00 15 mov %l5, %o4 <== NOT EXECUTED
202635c: 9a 10 00 14 mov %l4, %o5 <== NOT EXECUTED
2026360: 40 00 9c 34 call 204d430 <printf> <== NOT EXECUTED
2026364: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
return 1;
}
rtems_rfs_shell_lock_rfs (fs);
for (g = start; g <= end; g++)
2026368: a2 04 60 01 inc %l1 <== NOT EXECUTED
202636c: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED
2026370: 16 bf ff dd bge 20262e4 <rtems_rfs_shell_group+0x118> <== NOT EXECUTED
2026374: a0 04 20 50 add %l0, 0x50, %l0 <== NOT EXECUTED
g, group->base, group->size,
blocks, (blocks * 100) / group->size,
inodes, (inodes * 100) / fs->group_inodes);
}
rtems_rfs_shell_unlock_rfs (fs);
2026378: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
202637c: 7f ff fe 47 call 2025c98 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
2026380: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2026384: 81 c7 e0 08 ret <== NOT EXECUTED
2026388: 81 e8 00 00 restore <== NOT EXECUTED
02025cb8 <rtems_rfs_shell_inode>:
return 0;
}
static int
rtems_rfs_shell_inode (rtems_rfs_file_system* fs, int argc, char *argv[])
{
2025cb8: 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;
2025cbc: d0 06 20 20 ld [ %i0 + 0x20 ], %o0 <== NOT EXECUTED
2025cc0: d2 06 20 28 ld [ %i0 + 0x28 ], %o1 <== NOT EXECUTED
2025cc4: 7f ff 73 b2 call 2002b8c <.umul> <== NOT EXECUTED
2025cc8: a4 10 00 19 mov %i1, %l2 <== NOT EXECUTED
show_all = false;
error_check_only = false;
forced = false;
have_start = have_end = false;
for (arg = 1; arg < argc; arg++)
2025ccc: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED
bool have_end;
int arg;
int b;
int rc;
total = fs->group_inodes * fs->group_count;
2025cd0: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
show_all = false;
error_check_only = false;
forced = false;
have_start = have_end = false;
for (arg = 1; arg < argc; arg++)
2025cd4: 04 80 01 38 ble 20261b4 <rtems_rfs_shell_inode+0x4fc> <== NOT EXECUTED
2025cd8: b6 02 3f ff add %o0, -1, %i3 <== NOT EXECUTED
}
}
else
{
if (have_end && have_start)
printf ("warning: option ignored: %s\n", argv[arg]);
2025cdc: 39 00 81 a1 sethi %hi(0x2068400), %i4 <== NOT EXECUTED
show_all = false;
error_check_only = false;
forced = false;
have_start = have_end = false;
for (arg = 1; arg < argc; arg++)
2025ce0: a2 10 00 1b mov %i3, %l1 <== NOT EXECUTED
}
}
else
{
if (have_end && have_start)
printf ("warning: option ignored: %s\n", argv[arg]);
2025ce4: b8 17 20 a0 or %i4, 0xa0, %i4 <== NOT EXECUTED
show_all = false;
error_check_only = false;
forced = false;
have_start = have_end = false;
for (arg = 1; arg < argc; arg++)
2025ce8: aa 10 20 01 mov 1, %l5 <== NOT EXECUTED
2025cec: ba 10 20 00 clr %i5 <== NOT EXECUTED
2025cf0: ae 10 20 00 clr %l7 <== NOT EXECUTED
2025cf4: b2 10 20 00 clr %i1 <== NOT EXECUTED
2025cf8: ac 10 20 00 clr %l6 <== NOT EXECUTED
2025cfc: a8 10 20 00 clr %l4 <== NOT EXECUTED
2025d00: 10 80 00 0e b 2025d38 <rtems_rfs_shell_inode+0x80> <== NOT EXECUTED
2025d04: a0 10 20 01 mov 1, %l0 <== NOT EXECUTED
break;
}
}
else
{
if (have_end && have_start)
2025d08: 12 80 00 e5 bne 202609c <rtems_rfs_shell_inode+0x3e4> <== NOT EXECUTED
2025d0c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
printf ("warning: option ignored: %s\n", argv[arg]);
else if (!have_start)
{
start = end = strtoul (argv[arg], 0, 0);
2025d10: 92 10 20 00 clr %o1 <== NOT EXECUTED
2025d14: 94 10 20 00 clr %o2 <== NOT EXECUTED
2025d18: 40 00 ad 28 call 20511b8 <strtoul> <== NOT EXECUTED
2025d1c: ae 10 20 01 mov 1, %l7 <== NOT EXECUTED
2025d20: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
2025d24: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
show_all = false;
error_check_only = false;
forced = false;
have_start = have_end = false;
for (arg = 1; arg < argc; arg++)
2025d28: aa 05 60 01 inc %l5 <== NOT EXECUTED
2025d2c: 80 a4 80 15 cmp %l2, %l5 <== NOT EXECUTED
2025d30: 04 80 00 14 ble 2025d80 <rtems_rfs_shell_inode+0xc8> <== NOT EXECUTED
2025d34: 80 a4 40 13 cmp %l1, %l3 <== NOT EXECUTED
{
if (argv[arg][0] == '-')
2025d38: 83 2d 60 02 sll %l5, 2, %g1 <== NOT EXECUTED
2025d3c: d0 06 80 01 ld [ %i2 + %g1 ], %o0 <== NOT EXECUTED
2025d40: c2 4a 00 00 ldsb [ %o0 ], %g1 <== NOT EXECUTED
2025d44: 80 a0 60 2d cmp %g1, 0x2d <== NOT EXECUTED
2025d48: 02 80 00 cd be 202607c <rtems_rfs_shell_inode+0x3c4> <== NOT EXECUTED
2025d4c: 80 8f 60 ff btst 0xff, %i5 <== NOT EXECUTED
break;
}
}
else
{
if (have_end && have_start)
2025d50: 12 bf ff ee bne 2025d08 <rtems_rfs_shell_inode+0x50> <== NOT EXECUTED
2025d54: 80 8d e0 ff btst 0xff, %l7 <== NOT EXECUTED
printf ("warning: option ignored: %s\n", argv[arg]);
else if (!have_start)
2025d58: 02 bf ff ee be 2025d10 <rtems_rfs_shell_inode+0x58> <== NOT EXECUTED
2025d5c: 92 10 20 00 clr %o1 <== NOT EXECUTED
start = end = strtoul (argv[arg], 0, 0);
have_start = true;
}
else
{
end = strtoul (argv[arg], 0, 0);
2025d60: 40 00 ad 16 call 20511b8 <strtoul> <== NOT EXECUTED
2025d64: 94 10 20 00 clr %o2 <== NOT EXECUTED
show_all = false;
error_check_only = false;
forced = false;
have_start = have_end = false;
for (arg = 1; arg < argc; arg++)
2025d68: aa 05 60 01 inc %l5 <== NOT EXECUTED
start = end = strtoul (argv[arg], 0, 0);
have_start = true;
}
else
{
end = strtoul (argv[arg], 0, 0);
2025d6c: 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++)
2025d70: 80 a4 80 15 cmp %l2, %l5 <== NOT EXECUTED
2025d74: 14 bf ff f1 bg 2025d38 <rtems_rfs_shell_inode+0x80> <== NOT EXECUTED
2025d78: ba 10 20 01 mov 1, %i5 <== NOT EXECUTED
have_end = true;
}
}
}
if ((start >= total) || (end >= total))
2025d7c: 80 a4 40 13 cmp %l1, %l3 <== NOT EXECUTED
2025d80: 1a 80 00 e7 bcc 202611c <rtems_rfs_shell_inode+0x464> <== NOT EXECUTED
2025d84: 80 a4 00 13 cmp %l0, %l3 <== NOT EXECUTED
2025d88: 1a 80 00 e5 bcc 202611c <rtems_rfs_shell_inode+0x464> <== NOT EXECUTED
2025d8c: 92 10 20 00 clr %o1 <== 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);
2025d90: c2 06 20 7c ld [ %i0 + 0x7c ], %g1 <== NOT EXECUTED
2025d94: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
2025d98: 7f ff 9e 28 call 200d638 <rtems_semaphore_obtain> <== NOT EXECUTED
2025d9c: 94 10 20 00 clr %o2 <== NOT EXECUTED
return 1;
}
rtems_rfs_shell_lock_rfs (fs);
for (ino = start; ino <= end; ino++)
2025da0: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED
2025da4: 18 80 00 b2 bgu 202606c <rtems_rfs_shell_inode+0x3b4> <== NOT EXECUTED
2025da8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
}
}
if (!error_check_only || error)
{
printf (" %5" PRIu32 ": pos=%06" PRIu32 ":%04zx %c ",
2025dac: 2f 00 81 a1 sethi %hi(0x2068400), %l7 <== 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)
2025db0: 39 00 00 3f sethi %hi(0xfc00), %i4 <== 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=[",
2025db4: 3b 00 81 a1 sethi %hi(0x2068400), %i5 <== NOT EXECUTED
2025db8: 27 00 81 a1 sethi %hi(0x2068400), %l3 <== NOT EXECUTED
printf (" --\n");
else
{
const char* type;
type = "UKN";
if (RTEMS_RFS_S_ISDIR (mode))
2025dbc: 37 00 81 a1 sethi %hi(0x2068400), %i3 <== NOT EXECUTED
}
}
if (!error_check_only || error)
{
printf (" %5" PRIu32 ": pos=%06" PRIu32 ":%04zx %c ",
2025dc0: ae 15 e1 48 or %l7, 0x148, %l7 <== NOT EXECUTED
2025dc4: b8 17 23 ff or %i4, 0x3ff, %i4 <== 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=[",
2025dc8: ba 17 61 a0 or %i5, 0x1a0, %i5 <== 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));
2025dcc: a6 14 e1 d8 or %l3, 0x1d8, %l3 <== NOT EXECUTED
printf (" --\n");
else
{
const char* type;
type = "UKN";
if (RTEMS_RFS_S_ISDIR (mode))
2025dd0: b6 16 e1 70 or %i3, 0x170, %i3 <== NOT EXECUTED
2025dd4: aa 07 bf ff add %fp, -1, %l5 <== NOT EXECUTED
for (ino = start; ino <= end; ino++)
{
rtems_rfs_inode_handle inode;
bool allocated;
rc = rtems_rfs_group_bitmap_test (fs, true, ino, &allocated);
2025dd8: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2025ddc: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2025de0: 40 00 70 6d call 2041f94 <rtems_rfs_group_bitmap_test> <== NOT EXECUTED
2025de4: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
if (rc > 0)
2025de8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025dec: 14 80 00 d6 bg 2026144 <rtems_rfs_shell_inode+0x48c> <== NOT EXECUTED
2025df0: 80 8d 20 ff btst 0xff, %l4 <== NOT EXECUTED
printf ("error: testing inode state: ino=%" PRIu32 ": (%d) %s\n",
ino, rc, strerror (rc));
return 1;
}
if (show_all || allocated)
2025df4: 12 80 00 05 bne 2025e08 <rtems_rfs_shell_inode+0x150> <== NOT EXECUTED
2025df8: c2 0f bf ff ldub [ %fp + -1 ], %g1 <== NOT EXECUTED
2025dfc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2025e00: 22 80 00 98 be,a 2026060 <rtems_rfs_shell_inode+0x3a8> <== NOT EXECUTED
2025e04: a0 04 20 01 inc %l0 <== NOT EXECUTED
{
uint16_t mode;
bool error;
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
2025e08: a4 07 bf d4 add %fp, -44, %l2 <== NOT EXECUTED
2025e0c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2025e10: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2025e14: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2025e18: 40 00 72 a1 call 204289c <rtems_rfs_inode_open> <== NOT EXECUTED
2025e1c: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
2025e20: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025e24: 14 80 00 d6 bg 202617c <rtems_rfs_shell_inode+0x4c4> <== NOT EXECUTED
2025e28: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
error = false;
mode = rtems_rfs_inode_get_mode (&inode);
if (error_check_only)
2025e2c: 80 8d a0 ff btst 0xff, %l6 <== 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);
2025e30: c4 08 60 03 ldub [ %g1 + 3 ], %g2 <== NOT EXECUTED
2025e34: f4 08 60 02 ldub [ %g1 + 2 ], %i2 <== NOT EXECUTED
2025e38: b5 2e a0 08 sll %i2, 8, %i2 <== NOT EXECUTED
2025e3c: 02 80 00 15 be 2025e90 <rtems_rfs_shell_inode+0x1d8> <== NOT EXECUTED
2025e40: b4 16 80 02 or %i2, %g2, %i2 <== NOT EXECUTED
{
if (!RTEMS_RFS_S_ISDIR (mode) &&
2025e44: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
2025e48: 05 00 00 08 sethi %hi(0x2000), %g2 <== NOT EXECUTED
2025e4c: 82 0e 80 01 and %i2, %g1, %g1 <== NOT EXECUTED
2025e50: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2025e54: 02 80 00 7d be 2026048 <rtems_rfs_shell_inode+0x390> <== NOT EXECUTED
2025e58: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2025e5c: 05 00 00 10 sethi %hi(0x4000), %g2 <== NOT EXECUTED
2025e60: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2025e64: 02 80 00 79 be 2026048 <rtems_rfs_shell_inode+0x390> <== NOT EXECUTED
2025e68: 05 00 00 18 sethi %hi(0x6000), %g2 <== NOT EXECUTED
2025e6c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2025e70: 02 80 00 76 be 2026048 <rtems_rfs_shell_inode+0x390> <== NOT EXECUTED
2025e74: 05 00 00 20 sethi %hi(0x8000), %g2 <== NOT EXECUTED
2025e78: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2025e7c: 02 80 00 73 be 2026048 <rtems_rfs_shell_inode+0x390> <== NOT EXECUTED
2025e80: 05 00 00 28 sethi %hi(0xa000), %g2 <== NOT EXECUTED
}
#endif
}
}
if (!error_check_only || error)
2025e84: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2025e88: 02 80 00 70 be 2026048 <rtems_rfs_shell_inode+0x390> <== NOT EXECUTED
2025e8c: 01 00 00 00 nop <== NOT EXECUTED
{
printf (" %5" PRIu32 ": pos=%06" PRIu32 ":%04zx %c ",
2025e90: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
2025e94: c4 0f bf ff ldub [ %fp + -1 ], %g2 <== NOT EXECUTED
2025e98: d4 07 bf e8 ld [ %fp + -24 ], %o2 <== NOT EXECUTED
2025e9c: 80 a0 00 02 cmp %g0, %g2 <== NOT EXECUTED
2025ea0: 97 28 60 06 sll %g1, 6, %o3 <== NOT EXECUTED
2025ea4: 83 28 60 03 sll %g1, 3, %g1 <== NOT EXECUTED
2025ea8: 98 60 20 00 subx %g0, 0, %o4 <== NOT EXECUTED
2025eac: 96 22 c0 01 sub %o3, %g1, %o3 <== NOT EXECUTED
2025eb0: 98 0b 3f fb and %o4, -5, %o4 <== NOT EXECUTED
2025eb4: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED
2025eb8: 98 03 20 46 add %o4, 0x46, %o4 <== NOT EXECUTED
2025ebc: 40 00 9d 5d call 204d430 <printf> <== NOT EXECUTED
2025ec0: 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)
2025ec4: c2 0f bf ff ldub [ %fp + -1 ], %g1 <== NOT EXECUTED
2025ec8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2025ecc: 12 80 00 05 bne 2025ee0 <rtems_rfs_shell_inode+0x228> <== NOT EXECUTED
2025ed0: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED
2025ed4: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED
2025ed8: 02 80 00 7b be 20260c4 <rtems_rfs_shell_inode+0x40c> <== NOT EXECUTED
2025edc: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
printf (" --\n");
else
{
const char* type;
type = "UKN";
if (RTEMS_RFS_S_ISDIR (mode))
2025ee0: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
2025ee4: 95 36 a0 10 srl %i2, 0x10, %o2 <== NOT EXECUTED
2025ee8: 05 00 00 10 sethi %hi(0x4000), %g2 <== NOT EXECUTED
2025eec: 82 0a 80 01 and %o2, %g1, %g1 <== NOT EXECUTED
2025ef0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2025ef4: 02 80 00 16 be 2025f4c <rtems_rfs_shell_inode+0x294> <== NOT EXECUTED
2025ef8: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
type = "DIR";
else if (RTEMS_RFS_S_ISCHR (mode))
2025efc: 05 00 00 08 sethi %hi(0x2000), %g2 <== NOT EXECUTED
2025f00: 17 00 81 a1 sethi %hi(0x2068400), %o3 <== NOT EXECUTED
2025f04: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2025f08: 02 80 00 11 be 2025f4c <rtems_rfs_shell_inode+0x294> <== NOT EXECUTED
2025f0c: 96 12 e1 78 or %o3, 0x178, %o3 <== NOT EXECUTED
type = "CHR";
else if (RTEMS_RFS_S_ISBLK (mode))
2025f10: 05 00 00 18 sethi %hi(0x6000), %g2 <== NOT EXECUTED
2025f14: 17 00 81 a1 sethi %hi(0x2068400), %o3 <== NOT EXECUTED
2025f18: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2025f1c: 02 80 00 0c be 2025f4c <rtems_rfs_shell_inode+0x294> <== NOT EXECUTED
2025f20: 96 12 e1 80 or %o3, 0x180, %o3 <== NOT EXECUTED
type = "BLK";
else if (RTEMS_RFS_S_ISREG (mode))
2025f24: 05 00 00 20 sethi %hi(0x8000), %g2 <== NOT EXECUTED
2025f28: 17 00 81 a1 sethi %hi(0x2068400), %o3 <== NOT EXECUTED
2025f2c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2025f30: 02 80 00 07 be 2025f4c <rtems_rfs_shell_inode+0x294> <== NOT EXECUTED
2025f34: 96 12 e1 88 or %o3, 0x188, %o3 <== NOT EXECUTED
type = "REG";
else if (RTEMS_RFS_S_ISLNK (mode))
2025f38: 05 00 00 28 sethi %hi(0xa000), %g2 <== NOT EXECUTED
2025f3c: 17 00 81 a1 sethi %hi(0x2068400), %o3 <== NOT EXECUTED
2025f40: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2025f44: 02 80 00 7d be 2026138 <rtems_rfs_shell_inode+0x480> <== NOT EXECUTED
2025f48: 96 12 e1 98 or %o3, 0x198, %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);
2025f4c: 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=[",
2025f50: b4 10 20 00 clr %i2 <== NOT EXECUTED
if (links == 0xffff)
2025f54: d0 08 e0 01 ldub [ %g3 + 1 ], %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);
2025f58: d8 08 c0 00 ldub [ %g3 ], %o4 <== NOT EXECUTED
2025f5c: c2 08 e0 0c ldub [ %g3 + 0xc ], %g1 <== 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);
2025f60: 9e 00 e0 0c add %g3, 0xc, %o7 <== NOT EXECUTED
2025f64: d2 08 e0 0a ldub [ %g3 + 0xa ], %o1 <== NOT EXECUTED
2025f68: da 08 e0 0b ldub [ %g3 + 0xb ], %o5 <== NOT EXECUTED
2025f6c: c4 0b e0 02 ldub [ %o7 + 2 ], %g2 <== NOT EXECUTED
2025f70: c8 0b e0 03 ldub [ %o7 + 3 ], %g4 <== NOT EXECUTED
2025f74: c6 0b e0 01 ldub [ %o7 + 1 ], %g3 <== NOT EXECUTED
2025f78: 93 2a 60 08 sll %o1, 8, %o1 <== NOT EXECUTED
2025f7c: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
2025f80: 85 28 a0 08 sll %g2, 8, %g2 <== 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);
2025f84: 99 2b 20 08 sll %o4, 8, %o4 <== NOT EXECUTED
2025f88: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED
if (links == 0xffff)
2025f8c: 98 12 00 0c or %o0, %o4, %o4 <== NOT EXECUTED
2025f90: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
2025f94: 90 1b 00 1c xor %o4, %i4, %o0 <== NOT EXECUTED
2025f98: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
2025f9c: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
2025fa0: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2025fa4: 9a 13 40 09 or %o5, %o1, %o5 <== NOT EXECUTED
2025fa8: c2 23 a0 5c st %g1, [ %sp + 0x5c ] <== NOT EXECUTED
2025fac: 92 60 20 00 subx %g0, 0, %o1 <== NOT EXECUTED
2025fb0: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED
2025fb4: 92 0b 00 09 and %o4, %o1, %o1 <== NOT EXECUTED
2025fb8: 40 00 9d 1e call 204d430 <printf> <== NOT EXECUTED
2025fbc: 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]);
2025fc0: 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));
2025fc4: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
2025fc8: 82 00 60 1c add %g1, 0x1c, %g1 <== NOT EXECUTED
2025fcc: d2 08 40 1a ldub [ %g1 + %i2 ], %o1 <== NOT EXECUTED
2025fd0: 82 00 40 1a add %g1, %i2, %g1 <== NOT EXECUTED
2025fd4: c4 08 60 02 ldub [ %g1 + 2 ], %g2 <== NOT EXECUTED
2025fd8: c6 08 60 03 ldub [ %g1 + 3 ], %g3 <== NOT EXECUTED
2025fdc: c2 08 60 01 ldub [ %g1 + 1 ], %g1 <== NOT EXECUTED
2025fe0: 93 2a 60 18 sll %o1, 0x18, %o1 <== NOT EXECUTED
2025fe4: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
2025fe8: 92 10 c0 09 or %g3, %o1, %o1 <== NOT EXECUTED
2025fec: 92 12 40 01 or %o1, %g1, %o1 <== NOT EXECUTED
2025ff0: 83 28 a0 08 sll %g2, 8, %g1 <== NOT EXECUTED
2025ff4: 40 00 9d 0f call 204d430 <printf> <== NOT EXECUTED
2025ff8: 92 12 40 01 or %o1, %g1, %o1 <== NOT EXECUTED
2025ffc: 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++)
2026000: 80 a6 a0 10 cmp %i2, 0x10 <== NOT EXECUTED
2026004: 12 bf ff f0 bne 2025fc4 <rtems_rfs_shell_inode+0x30c> <== NOT EXECUTED
2026008: 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));
202600c: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
2026010: 82 00 60 1c add %g1, 0x1c, %g1 <== NOT EXECUTED
2026014: c4 08 60 12 ldub [ %g1 + 0x12 ], %g2 <== NOT EXECUTED
2026018: d2 08 60 10 ldub [ %g1 + 0x10 ], %o1 <== NOT EXECUTED
202601c: c6 08 60 11 ldub [ %g1 + 0x11 ], %g3 <== NOT EXECUTED
2026020: c2 08 60 13 ldub [ %g1 + 0x13 ], %g1 <== NOT EXECUTED
2026024: 93 2a 60 18 sll %o1, 0x18, %o1 <== NOT EXECUTED
2026028: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
202602c: 92 12 40 03 or %o1, %g3, %o1 <== NOT EXECUTED
2026030: 92 12 40 01 or %o1, %g1, %o1 <== NOT EXECUTED
2026034: 83 28 a0 08 sll %g2, 8, %g1 <== NOT EXECUTED
2026038: 90 12 21 e0 or %o0, 0x1e0, %o0 <== NOT EXECUTED
202603c: 40 00 9c fd call 204d430 <printf> <== NOT EXECUTED
2026040: 92 12 40 01 or %o1, %g1, %o1 <== NOT EXECUTED
}
}
rc = rtems_rfs_inode_close (fs, &inode);
2026044: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2026048: 40 00 71 eb call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
202604c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rc > 0)
2026050: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2026054: 14 80 00 25 bg 20260e8 <rtems_rfs_shell_inode+0x430> <== NOT EXECUTED
2026058: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
return 1;
}
rtems_rfs_shell_lock_rfs (fs);
for (ino = start; ino <= end; ino++)
202605c: a0 04 20 01 inc %l0 <== NOT EXECUTED
2026060: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED
2026064: 08 bf ff 5d bleu 2025dd8 <rtems_rfs_shell_inode+0x120> <== NOT EXECUTED
2026068: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
return 1;
}
}
}
rtems_rfs_shell_unlock_rfs (fs);
202606c: 7f ff ff 0b call 2025c98 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
2026070: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2026074: 81 c7 e0 08 ret <== NOT EXECUTED
2026078: 81 e8 00 00 restore <== NOT EXECUTED
for (arg = 1; arg < argc; arg++)
{
if (argv[arg][0] == '-')
{
switch (argv[arg][1])
202607c: c2 4a 20 01 ldsb [ %o0 + 1 ], %g1 <== NOT EXECUTED
2026080: 80 a0 60 65 cmp %g1, 0x65 <== NOT EXECUTED
2026084: 02 80 00 0e be 20260bc <rtems_rfs_shell_inode+0x404> <== NOT EXECUTED
2026088: 80 a0 60 66 cmp %g1, 0x66 <== NOT EXECUTED
202608c: 02 80 00 0a be 20260b4 <rtems_rfs_shell_inode+0x3fc> <== NOT EXECUTED
2026090: 80 a0 60 61 cmp %g1, 0x61 <== NOT EXECUTED
2026094: 02 80 00 06 be 20260ac <rtems_rfs_shell_inode+0x3f4> <== NOT EXECUTED
2026098: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
}
}
else
{
if (have_end && have_start)
printf ("warning: option ignored: %s\n", argv[arg]);
202609c: 40 00 9c e5 call 204d430 <printf> <== NOT EXECUTED
20260a0: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
break;
}
}
else
{
if (have_end && have_start)
20260a4: 10 bf ff 22 b 2025d2c <rtems_rfs_shell_inode+0x74> <== NOT EXECUTED
20260a8: aa 05 60 01 inc %l5 <== NOT EXECUTED
for (arg = 1; arg < argc; arg++)
{
if (argv[arg][0] == '-')
{
switch (argv[arg][1])
20260ac: 10 bf ff 1f b 2025d28 <rtems_rfs_shell_inode+0x70> <== NOT EXECUTED
20260b0: a8 10 20 01 mov 1, %l4 <== NOT EXECUTED
case 'e':
error_check_only = true;
break;
case 'f':
forced = true;
break;
20260b4: 10 bf ff 1d b 2025d28 <rtems_rfs_shell_inode+0x70> <== NOT EXECUTED
20260b8: b2 10 20 01 mov 1, %i1 <== NOT EXECUTED
for (arg = 1; arg < argc; arg++)
{
if (argv[arg][0] == '-')
{
switch (argv[arg][1])
20260bc: 10 bf ff 1b b 2025d28 <rtems_rfs_shell_inode+0x70> <== NOT EXECUTED
20260c0: ac 10 20 01 mov 1, %l6 <== NOT EXECUTED
ino, rtems_rfs_buffer_bnum (&inode.buffer),
inode.offset * RTEMS_RFS_INODE_SIZE,
allocated ? 'A' : 'F');
if (!allocated && !forced)
printf (" --\n");
20260c4: 40 00 9d 87 call 204d6e0 <puts> <== NOT EXECUTED
20260c8: 90 12 21 68 or %o0, 0x168, %o0 <== NOT EXECUTED
printf ("%" PRIu32 " ", rtems_rfs_inode_get_block (&inode, b));
printf ("%" PRIu32 "]\n", rtems_rfs_inode_get_block (&inode, b));
}
}
rc = rtems_rfs_inode_close (fs, &inode);
20260cc: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
20260d0: 40 00 71 c9 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
20260d4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rc > 0)
20260d8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20260dc: 24 bf ff e1 ble,a 2026060 <rtems_rfs_shell_inode+0x3a8> <== NOT EXECUTED
20260e0: a0 04 20 01 inc %l0 <== NOT EXECUTED
20260e4: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
{
rtems_rfs_shell_unlock_rfs (fs);
20260e8: 7f ff fe ec call 2025c98 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
20260ec: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
printf ("error: closing inode handle: ino=%" PRIu32 ": (%d) %s\n",
20260f0: 40 00 a5 71 call 204f6b4 <strerror> <== NOT EXECUTED
20260f4: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
20260f8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
20260fc: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2026100: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2026104: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
2026108: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
202610c: 40 00 9c c9 call 204d430 <printf> <== NOT EXECUTED
2026110: 90 12 21 e8 or %o0, 0x1e8, %o0 <== NOT EXECUTED
ino, rc, strerror (rc));
return 1;
2026114: 81 c7 e0 08 ret <== NOT EXECUTED
2026118: 81 e8 00 00 restore <== NOT EXECUTED
}
}
if ((start >= total) || (end >= total))
{
printf ("error: inode out of range (0->%" PRId32 ").\n", total - 1);
202611c: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
2026120: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
2026124: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
2026128: 40 00 9c c2 call 204d430 <printf> <== NOT EXECUTED
202612c: 90 12 20 c0 or %o0, 0xc0, %o0 <== NOT EXECUTED
return 1;
2026130: 81 c7 e0 08 ret <== NOT EXECUTED
2026134: 81 e8 00 00 restore <== 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))
2026138: 17 00 81 a1 sethi %hi(0x2068400), %o3 <== NOT EXECUTED
202613c: 10 bf ff 84 b 2025f4c <rtems_rfs_shell_inode+0x294> <== NOT EXECUTED
2026140: 96 12 e1 90 or %o3, 0x190, %o3 ! 2068590 <rtems_rfs_ops+0x3b8><== NOT EXECUTED
2026144: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
bool allocated;
rc = rtems_rfs_group_bitmap_test (fs, true, ino, &allocated);
if (rc > 0)
{
rtems_rfs_shell_unlock_rfs (fs);
2026148: 7f ff fe d4 call 2025c98 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
202614c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
printf ("error: testing inode state: ino=%" PRIu32 ": (%d) %s\n",
2026150: 40 00 a5 59 call 204f6b4 <strerror> <== NOT EXECUTED
2026154: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2026158: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
202615c: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2026160: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2026164: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
2026168: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
202616c: 40 00 9c b1 call 204d430 <printf> <== NOT EXECUTED
2026170: 90 12 20 e8 or %o0, 0xe8, %o0 <== NOT EXECUTED
ino, rc, strerror (rc));
return 1;
2026174: 81 c7 e0 08 ret <== NOT EXECUTED
2026178: 81 e8 00 00 restore <== NOT EXECUTED
202617c: b4 10 00 08 mov %o0, %i2 <== NOT EXECUTED
bool error;
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
if (rc > 0)
{
rtems_rfs_shell_unlock_rfs (fs);
2026180: 7f ff fe c6 call 2025c98 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
2026184: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
printf ("error: opening inode handle: ino=%" PRIu32 ": (%d) %s\n",
2026188: 40 00 a5 4b call 204f6b4 <strerror> <== NOT EXECUTED
202618c: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
2026190: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2026194: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2026198: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
202619c: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
20261a0: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
20261a4: 40 00 9c a3 call 204d430 <printf> <== NOT EXECUTED
20261a8: 90 12 21 18 or %o0, 0x118, %o0 <== NOT EXECUTED
ino, rc, strerror (rc));
return 1;
20261ac: 81 c7 e0 08 ret <== NOT EXECUTED
20261b0: 81 e8 00 00 restore <== NOT EXECUTED
show_all = false;
error_check_only = false;
forced = false;
have_start = have_end = false;
for (arg = 1; arg < argc; arg++)
20261b4: a2 10 00 1b mov %i3, %l1 <== NOT EXECUTED
20261b8: b2 10 20 00 clr %i1 <== NOT EXECUTED
20261bc: ac 10 20 00 clr %l6 <== NOT EXECUTED
20261c0: a8 10 20 00 clr %l4 <== NOT EXECUTED
20261c4: 10 bf fe ee b 2025d7c <rtems_rfs_shell_inode+0xc4> <== NOT EXECUTED
20261c8: a0 10 20 01 mov 1, %l0 <== NOT EXECUTED
02025c98 <rtems_rfs_shell_unlock_rfs>:
/**
* Unlock the file system.
*/
static void
rtems_rfs_shell_unlock_rfs (rtems_rfs_file_system* fs)
{
2025c98: 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);
2025c9c: e0 06 20 7c ld [ %i0 + 0x7c ], %l0 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2025ca0: 40 00 63 79 call 203ea84 <rtems_rfs_buffers_release> <== NOT EXECUTED
2025ca4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2025ca8: f0 04 00 00 ld [ %l0 ], %i0 <== NOT EXECUTED
2025cac: 7f ff 9e aa call 200d754 <rtems_semaphore_release> <== NOT EXECUTED
2025cb0: 81 e8 00 00 restore <== NOT EXECUTED
020259c8 <rtems_rfs_shell_usage>:
}
void
rtems_rfs_shell_usage (const char* arg)
{
20259c8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
printf ("%s: RFS debugger\n", arg);
20259cc: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
20259d0: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
20259d4: 40 00 9e 97 call 204d430 <printf> <== NOT EXECUTED
20259d8: 90 12 22 48 or %o0, 0x248, %o0 <== NOT EXECUTED
printf (" %s [-hl] <path> <command>\n", arg);
20259dc: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
20259e0: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
20259e4: 40 00 9e 93 call 204d430 <printf> <== NOT EXECUTED
20259e8: 90 12 22 60 or %o0, 0x260, %o0 ! 2068260 <rtems_rfs_ops+0x88><== NOT EXECUTED
printf (" where:\n");
20259ec: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
20259f0: 40 00 9f 3c call 204d6e0 <puts> <== NOT EXECUTED
20259f4: 90 12 22 80 or %o0, 0x280, %o0 ! 2068280 <rtems_rfs_ops+0xa8><== NOT EXECUTED
printf (" path: Path to the mounted RFS file system\n");
20259f8: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
20259fc: 40 00 9f 39 call 204d6e0 <puts> <== NOT EXECUTED
2025a00: 90 12 22 90 or %o0, 0x290, %o0 ! 2068290 <rtems_rfs_ops+0xb8><== NOT EXECUTED
printf (" command: A debugger command. See -l for a list plus help.\n");
2025a04: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
2025a08: 40 00 9f 36 call 204d6e0 <puts> <== NOT EXECUTED
2025a0c: 90 12 22 c8 or %o0, 0x2c8, %o0 ! 20682c8 <rtems_rfs_ops+0xf0><== NOT EXECUTED
printf (" -h: This help\n");
2025a10: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
2025a14: 40 00 9f 33 call 204d6e0 <puts> <== NOT EXECUTED
2025a18: 90 12 23 08 or %o0, 0x308, %o0 ! 2068308 <rtems_rfs_ops+0x130><== NOT EXECUTED
printf (" -l: The debugger command list.\n");
2025a1c: 31 00 81 a0 sethi %hi(0x2068000), %i0 <== NOT EXECUTED
2025a20: 40 00 9f 30 call 204d6e0 <puts> <== NOT EXECUTED
2025a24: 91 ee 23 20 restore %i0, 0x320, %o0 <== NOT EXECUTED
02042ea8 <rtems_rfs_symlink>:
const char* link,
int link_length,
uid_t uid,
gid_t gid,
rtems_rfs_ino parent)
{
2042ea8: 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))
2042eac: 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)
{
2042eb0: 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))
2042eb4: 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)
{
2042eb8: 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))
2042ebc: 1a 80 00 4a bcc 2042fe4 <rtems_rfs_symlink+0x13c> <== NOT EXECUTED
2042ec0: b0 10 20 5b mov 0x5b, %i0 <== NOT EXECUTED
return ENAMETOOLONG;
rc = rtems_rfs_inode_create (fs, parent, name, strlen (name),
2042ec4: 40 00 33 08 call 204fae4 <strlen> <== NOT EXECUTED
2042ec8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
2042ecc: d2 07 a0 60 ld [ %fp + 0x60 ], %o1 <== NOT EXECUTED
2042ed0: 82 07 bf fc add %fp, -4, %g1 <== NOT EXECUTED
2042ed4: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2042ed8: bb 2f 60 10 sll %i5, 0x10, %i5 <== NOT EXECUTED
2042edc: a3 2c 60 10 sll %l1, 0x10, %l1 <== NOT EXECUTED
2042ee0: bb 37 60 10 srl %i5, 0x10, %i5 <== NOT EXECUTED
2042ee4: a3 34 60 10 srl %l1, 0x10, %l1 <== NOT EXECUTED
2042ee8: fa 23 a0 5c st %i5, [ %sp + 0x5c ] <== NOT EXECUTED
2042eec: e2 23 a0 60 st %l1, [ %sp + 0x60 ] <== NOT EXECUTED
2042ef0: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
2042ef4: c2 23 a0 64 st %g1, [ %sp + 0x64 ] <== NOT EXECUTED
2042ef8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2042efc: 19 00 00 28 sethi %hi(0xa000), %o4 <== NOT EXECUTED
2042f00: 9a 10 20 01 mov 1, %o5 <== NOT EXECUTED
2042f04: 7f ff fe ca call 2042a2c <rtems_rfs_inode_create> <== NOT EXECUTED
2042f08: 98 13 21 ff or %o4, 0x1ff, %o4 <== NOT EXECUTED
RTEMS_RFS_S_SYMLINK,
1, uid, gid, &ino);
if (rc > 0)
2042f0c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2042f10: 14 80 00 35 bg 2042fe4 <rtems_rfs_symlink+0x13c> <== NOT EXECUTED
2042f14: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
return rc;
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
2042f18: b2 07 bf c4 add %fp, -60, %i1 <== NOT EXECUTED
2042f1c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2042f20: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
2042f24: 7f ff fe 5e call 204289c <rtems_rfs_inode_open> <== NOT EXECUTED
2042f28: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
2042f2c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2042f30: 14 80 00 2d bg 2042fe4 <rtems_rfs_symlink+0x13c> <== NOT EXECUTED
2042f34: 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)
2042f38: 18 80 00 22 bgu 2042fc0 <rtems_rfs_symlink+0x118> <== NOT EXECUTED
2042f3c: a2 07 bf 74 add %fp, -140, %l1 <== NOT EXECUTED
{
memset (inode.node->data.name, 0, RTEMS_RFS_INODE_DATA_NAME_SIZE);
2042f40: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED
memcpy (inode.node->data.name, link, link_length);
2042f44: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
* 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)
{
memset (inode.node->data.name, 0, RTEMS_RFS_INODE_DATA_NAME_SIZE);
2042f48: c0 20 60 1c clr [ %g1 + 0x1c ] <== NOT EXECUTED
2042f4c: 82 00 60 1c add %g1, 0x1c, %g1 <== NOT EXECUTED
2042f50: c0 20 60 10 clr [ %g1 + 0x10 ] <== NOT EXECUTED
2042f54: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED
2042f58: c0 20 60 08 clr [ %g1 + 8 ] <== NOT EXECUTED
2042f5c: c0 20 60 0c clr [ %g1 + 0xc ] <== NOT EXECUTED
memcpy (inode.node->data.name, link, link_length);
2042f60: d0 07 bf d0 ld [ %fp + -48 ], %o0 <== NOT EXECUTED
2042f64: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
2042f68: 40 00 24 83 call 204c174 <memcpy> <== NOT EXECUTED
2042f6c: 90 02 20 1c add %o0, 0x1c, %o0 <== 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);
2042f70: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED
2042f74: c0 28 60 0c clrb [ %g1 + 0xc ] <== NOT EXECUTED
2042f78: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED
2042f7c: c0 28 60 0d clrb [ %g1 + 0xd ] <== NOT EXECUTED
2042f80: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED
2042f84: c0 28 60 0e clrb [ %g1 + 0xe ] <== NOT EXECUTED
2042f88: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED
2042f8c: c0 28 60 0f clrb [ %g1 + 0xf ] <== 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);
2042f90: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED
2042f94: 85 37 20 08 srl %i4, 8, %g2 <== NOT EXECUTED
2042f98: c4 28 60 0a stb %g2, [ %g1 + 0xa ] <== NOT EXECUTED
2042f9c: 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);
2042fa0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2042fa4: f8 28 60 0b stb %i4, [ %g1 + 0xb ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
2042fa8: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2042fac: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2042fb0: 7f ff fe 11 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2042fb4: c2 2f bf d4 stb %g1, [ %fp + -44 ] <== NOT EXECUTED
return rc;
}
2042fb8: 81 c7 e0 08 ret <== NOT EXECUTED
2042fbc: 91 e8 00 08 restore %g0, %o0, %o0 <== 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);
2042fc0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2042fc4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2042fc8: 7f ff ee 31 call 203e88c <rtems_rfs_block_map_open> <== NOT EXECUTED
2042fcc: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc > 0)
2042fd0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2042fd4: 04 80 00 06 ble 2042fec <rtems_rfs_symlink+0x144> <== NOT EXECUTED
2042fd8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, false);
if (rc > 0)
{
rtems_rfs_block_map_close (fs, &map);
rtems_rfs_inode_close (fs, &inode);
2042fdc: 7f ff fe 06 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2042fe0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
return rc;
2042fe4: 81 c7 e0 08 ret <== NOT EXECUTED
2042fe8: 81 e8 00 00 restore <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
return rc;
}
rc = rtems_rfs_block_map_grow (fs, &map, 1, &block);
2042fec: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2042ff0: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
2042ff4: 7f ff ec c7 call 203e310 <rtems_rfs_block_map_grow> <== NOT EXECUTED
2042ff8: 96 07 bf f8 add %fp, -8, %o3 <== NOT EXECUTED
if (rc > 0)
2042ffc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2043000: 04 80 00 07 ble 204301c <rtems_rfs_symlink+0x174> <== NOT EXECUTED
2043004: d4 07 bf f8 ld [ %fp + -8 ], %o2 <== NOT EXECUTED
}
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, false);
if (rc > 0)
{
rtems_rfs_block_map_close (fs, &map);
2043008: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
204300c: 7f ff ed af call 203e6c8 <rtems_rfs_block_map_close> <== NOT EXECUTED
2043010: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
2043014: 10 bf ff f2 b 2042fdc <rtems_rfs_symlink+0x134> <== NOT EXECUTED
2043018: 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;
204301c: c0 2f bf ec clrb [ %fp + -20 ] <== NOT EXECUTED
handle->bnum = 0;
2043020: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
handle->buffer = NULL;
2043024: c0 27 bf f4 clr [ %fp + -12 ] <== 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);
2043028: a4 07 bf ec add %fp, -20, %l2 <== NOT EXECUTED
204302c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2043030: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2043034: 7f ff ef 34 call 203ed04 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
2043038: 96 10 20 00 clr %o3 <== NOT EXECUTED
if (rc > 0)
204303c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2043040: 14 bf ff f3 bg 204300c <rtems_rfs_symlink+0x164> <== NOT EXECUTED
2043044: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
rtems_rfs_inode_close (fs, &inode);
return rc;
}
data = rtems_rfs_buffer_data (&buffer);
2043048: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
memset (data, 0xff, rtems_rfs_fs_block_size (fs));
204304c: 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);
2043050: e6 00 60 24 ld [ %g1 + 0x24 ], %l3 <== NOT EXECUTED
memset (data, 0xff, rtems_rfs_fs_block_size (fs));
2043054: 92 10 20 ff mov 0xff, %o1 <== NOT EXECUTED
2043058: 40 00 24 da call 204c3c0 <memset> <== NOT EXECUTED
204305c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
memcpy (data, link, link_length);
2043060: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
2043064: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
2043068: 40 00 24 43 call 204c174 <memcpy> <== NOT EXECUTED
204306c: 90 10 00 13 mov %l3, %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);
2043070: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2043074: 7f ff ee db call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2043078: 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);
204307c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
handle->dirty = false;
2043080: c0 2f bf ec clrb [ %fp + -20 ] <== NOT EXECUTED
handle->bnum = 0;
2043084: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
handle->buffer = NULL;
2043088: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
204308c: 7f ff ed 8f call 203e6c8 <rtems_rfs_block_map_close> <== NOT EXECUTED
2043090: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc > 0)
2043094: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2043098: 04 bf ff bf ble 2042f94 <rtems_rfs_symlink+0xec> <== NOT EXECUTED
204309c: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, false);
if (rc > 0)
{
rtems_rfs_block_map_close (fs, &map);
rtems_rfs_inode_close (fs, &inode);
20430a0: 10 bf ff cf b 2042fdc <rtems_rfs_symlink+0x134> <== NOT EXECUTED
20430a4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
02042ce8 <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)
{
2042ce8: 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);
2042cec: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
2042cf0: 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)
{
2042cf4: 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);
2042cf8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2042cfc: a2 07 bf c8 add %fp, -56, %l1 <== NOT EXECUTED
2042d00: 7f ff fe e7 call 204289c <rtems_rfs_inode_open> <== NOT EXECUTED
2042d04: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc)
2042d08: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2042d0c: 12 80 00 0e bne 2042d44 <rtems_rfs_symlink_read+0x5c> <== NOT EXECUTED
2042d10: d2 07 bf d4 ld [ %fp + -44 ], %o1 <== NOT EXECUTED
return rc;
if (!RTEMS_RFS_S_ISLNK (rtems_rfs_inode_get_mode (&inode)))
2042d14: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
2042d18: c4 0a 60 02 ldub [ %o1 + 2 ], %g2 <== NOT EXECUTED
2042d1c: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2042d20: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED
2042d24: 03 00 00 28 sethi %hi(0xa000), %g1 <== NOT EXECUTED
2042d28: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2042d2c: 22 80 00 08 be,a 2042d4c <rtems_rfs_symlink_read+0x64> <== NOT EXECUTED
2042d30: d4 0a 60 0a ldub [ %o1 + 0xa ], %o2 <== NOT EXECUTED
*length = rtems_rfs_inode_get_block_offset (&inode);
if (size < *length)
{
rtems_rfs_inode_close (fs, &inode);
2042d34: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2042d38: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2042d3c: 7f ff fe ae call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2042d40: b0 10 20 16 mov 0x16, %i0 <== NOT EXECUTED
return EINVAL;
2042d44: 81 c7 e0 08 ret <== NOT EXECUTED
2042d48: 81 e8 00 00 restore <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
return EINVAL;
}
*length = rtems_rfs_inode_get_block_offset (&inode);
2042d4c: c2 0a 60 0b ldub [ %o1 + 0xb ], %g1 <== NOT EXECUTED
2042d50: 95 2a a0 08 sll %o2, 8, %o2 <== NOT EXECUTED
2042d54: 94 10 40 0a or %g1, %o2, %o2 <== NOT EXECUTED
if (size < *length)
2042d58: 80 a2 80 1b cmp %o2, %i3 <== NOT EXECUTED
2042d5c: 18 bf ff f6 bgu 2042d34 <rtems_rfs_symlink_read+0x4c> <== NOT EXECUTED
2042d60: d4 27 00 00 st %o2, [ %i4 ] <== 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);
2042d64: 82 02 60 0c add %o1, 0xc, %g1 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
return EINVAL;
}
if (rtems_rfs_inode_get_block_count (&inode) == 0)
2042d68: c4 08 60 03 ldub [ %g1 + 3 ], %g2 <== NOT EXECUTED
2042d6c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2042d70: 12 80 00 18 bne 2042dd0 <rtems_rfs_symlink_read+0xe8> <== NOT EXECUTED
2042d74: a4 07 bf 78 add %fp, -136, %l2 <== NOT EXECUTED
2042d78: c4 0a 60 0c ldub [ %o1 + 0xc ], %g2 <== NOT EXECUTED
2042d7c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2042d80: 12 80 00 15 bne 2042dd4 <rtems_rfs_symlink_read+0xec> <== NOT EXECUTED
2042d84: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2042d88: c4 08 60 01 ldub [ %g1 + 1 ], %g2 <== NOT EXECUTED
2042d8c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2042d90: 32 80 00 12 bne,a 2042dd8 <rtems_rfs_symlink_read+0xf0> <== NOT EXECUTED
2042d94: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2042d98: c2 08 60 02 ldub [ %g1 + 2 ], %g1 <== NOT EXECUTED
2042d9c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2042da0: 32 80 00 0e bne,a 2042dd8 <rtems_rfs_symlink_read+0xf0> <== NOT EXECUTED
2042da4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
{
memcpy (path, inode.node->data.name, *length);
2042da8: 92 02 60 1c add %o1, 0x1c, %o1 <== NOT EXECUTED
2042dac: 40 00 24 f2 call 204c174 <memcpy> <== NOT EXECUTED
2042db0: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
return rc;
}
}
path[*length] = '\0';
2042db4: c2 07 00 00 ld [ %i4 ], %g1 <== NOT EXECUTED
rc = rtems_rfs_inode_close (fs, &inode);
2042db8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
return rc;
}
}
path[*length] = '\0';
2042dbc: c0 2e 80 01 clrb [ %i2 + %g1 ] <== NOT EXECUTED
rc = rtems_rfs_inode_close (fs, &inode);
2042dc0: 7f ff fe 8d call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2042dc4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
}
2042dc8: 81 c7 e0 08 ret <== NOT EXECUTED
2042dcc: 91 e8 00 08 restore %g0, %o0, %o0 <== 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);
2042dd0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2042dd4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2042dd8: 7f ff ee ad call 203e88c <rtems_rfs_block_map_open> <== NOT EXECUTED
2042ddc: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
if (rc > 0)
2042de0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2042de4: 04 80 00 06 ble 2042dfc <rtems_rfs_symlink_read+0x114> <== NOT EXECUTED
2042de8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, false);
if (rc > 0)
{
rtems_rfs_block_map_close (fs, &map);
rtems_rfs_inode_close (fs, &inode);
2042dec: 7f ff fe 82 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2042df0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
2042df4: 81 c7 e0 08 ret <== NOT EXECUTED
2042df8: 81 e8 00 00 restore <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
return rc;
}
rc = rtems_rfs_block_map_seek (fs, &map, 0, &block);
2042dfc: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2042e00: 94 10 20 00 clr %o2 <== NOT EXECUTED
2042e04: 96 10 20 00 clr %o3 <== NOT EXECUTED
2042e08: 7f ff eb e1 call 203dd8c <rtems_rfs_block_map_seek> <== NOT EXECUTED
2042e0c: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
if (rc > 0)
2042e10: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2042e14: 04 80 00 07 ble 2042e30 <rtems_rfs_symlink_read+0x148> <== NOT EXECUTED
2042e18: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
}
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, false);
if (rc > 0)
{
rtems_rfs_block_map_close (fs, &map);
2042e1c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2042e20: 7f ff ee 2a call 203e6c8 <rtems_rfs_block_map_close> <== NOT EXECUTED
2042e24: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
2042e28: 10 bf ff f1 b 2042dec <rtems_rfs_symlink_read+0x104> <== NOT EXECUTED
2042e2c: 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;
2042e30: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
2042e34: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
2042e38: c0 27 bf f8 clr [ %fp + -8 ] <== 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);
2042e3c: a6 07 bf f0 add %fp, -16, %l3 <== NOT EXECUTED
2042e40: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2042e44: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2042e48: 7f ff ef af call 203ed04 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
2042e4c: 96 10 20 00 clr %o3 <== NOT EXECUTED
if (rc > 0)
2042e50: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2042e54: 14 bf ff f3 bg 2042e20 <rtems_rfs_symlink_read+0x138> <== NOT EXECUTED
2042e58: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
return rc;
}
data = rtems_rfs_buffer_data (&buffer);
memcpy (path, data, *length);
2042e5c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
2042e60: d4 07 00 00 ld [ %i4 ], %o2 <== NOT EXECUTED
2042e64: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
2042e68: 40 00 24 c3 call 204c174 <memcpy> <== NOT EXECUTED
2042e6c: 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);
2042e70: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2042e74: 7f ff ef 5b call 203ebe0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2042e78: 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);
2042e7c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
handle->dirty = false;
2042e80: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
2042e84: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
2042e88: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
2042e8c: 7f ff ee 0f call 203e6c8 <rtems_rfs_block_map_close> <== NOT EXECUTED
2042e90: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc > 0)
2042e94: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2042e98: 24 bf ff c8 ble,a 2042db8 <rtems_rfs_symlink_read+0xd0> <== NOT EXECUTED
2042e9c: c2 07 00 00 ld [ %i4 ], %g1 <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, false);
if (rc > 0)
{
rtems_rfs_block_map_close (fs, &map);
rtems_rfs_inode_close (fs, &inode);
2042ea0: 10 bf ff d3 b 2042dec <rtems_rfs_symlink_read+0x104> <== NOT EXECUTED
2042ea4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
020430a8 <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)
{
20430a8: 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);
20430ac: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
20430b0: 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)
{
20430b4: 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);
20430b8: a2 07 bf b0 add %fp, -80, %l1 <== NOT EXECUTED
20430bc: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
20430c0: 7f ff fd f7 call 204289c <rtems_rfs_inode_open> <== NOT EXECUTED
20430c4: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc)
20430c8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20430cc: 12 80 00 13 bne 2043118 <rtems_rfs_unlink+0x70> <== NOT EXECUTED
20430d0: 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));
20430d4: 05 00 00 3c sethi %hi(0xf000), %g2 <== NOT EXECUTED
20430d8: c2 08 60 02 ldub [ %g1 + 2 ], %g1 <== NOT EXECUTED
20430dc: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
20430e0: 82 08 40 02 and %g1, %g2, %g1 <== NOT EXECUTED
20430e4: 05 00 00 10 sethi %hi(0x4000), %g2 <== NOT EXECUTED
20430e8: 82 18 40 02 xor %g1, %g2, %g1 <== NOT EXECUTED
if (dir)
20430ec: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
20430f0: a6 60 3f ff subx %g0, -1, %l3 <== NOT EXECUTED
20430f4: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
20430f8: 02 80 00 15 be 204314c <rtems_rfs_unlink+0xa4> <== NOT EXECUTED
20430fc: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED
{
switch (dir_mode)
2043100: 12 80 00 11 bne 2043144 <rtems_rfs_unlink+0x9c> <== NOT EXECUTED
2043104: 80 a7 20 01 cmp %i4, 1 <== NOT EXECUTED
{
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);
2043108: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
204310c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2043110: 7f ff fd b9 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2043114: b0 10 20 15 mov 0x15, %i0 <== NOT EXECUTED
return EISDIR;
2043118: 81 c7 e0 08 ret <== NOT EXECUTED
204311c: 81 e8 00 00 restore <== NOT EXECUTED
rtems_rfs_inode_close (fs, &parent_inode);
rtems_rfs_inode_close (fs, &target_inode);
return rc;
}
rc = rtems_rfs_inode_close (fs, &parent_inode);
2043120: 7f ff fd b5 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2043124: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc > 0)
2043128: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
204312c: 14 80 00 40 bg 204322c <rtems_rfs_unlink+0x184> <== NOT EXECUTED
2043130: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc, strerror (rc));
rtems_rfs_inode_close (fs, &target_inode);
return rc;
}
rc = rtems_rfs_inode_close (fs, &target_inode);
2043134: 7f ff fd b0 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2043138: 92 10 00 11 mov %l1, %o1 <== 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;
}
204313c: 81 c7 e0 08 ret <== NOT EXECUTED
2043140: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
*/
dir = RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&target_inode));
if (dir)
{
switch (dir_mode)
2043144: 02 80 00 34 be 2043214 <rtems_rfs_unlink+0x16c> <== NOT EXECUTED
2043148: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
default:
break;
}
}
rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);
204314c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2043150: a4 07 bf d8 add %fp, -40, %l2 <== NOT EXECUTED
2043154: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2043158: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
204315c: 7f ff fd d0 call 204289c <rtems_rfs_inode_open> <== NOT EXECUTED
2043160: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc)
2043164: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2043168: 12 80 00 30 bne 2043228 <rtems_rfs_unlink+0x180> <== NOT EXECUTED
204316c: 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);
2043170: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
2043174: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2043178: 7f ff f0 38 call 203f258 <rtems_rfs_dir_del_entry> <== NOT EXECUTED
204317c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
if (rc > 0)
2043180: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2043184: 14 80 00 1c bg 20431f4 <rtems_rfs_unlink+0x14c> <== NOT EXECUTED
2043188: 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)
204318c: 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);
2043190: c6 08 60 01 ldub [ %g1 + 1 ], %g3 <== NOT EXECUTED
2043194: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED
if (links == 0xffff)
2043198: 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);
204319c: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
20431a0: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
if (links == 0xffff)
20431a4: 87 28 a0 10 sll %g2, 0x10, %g3 <== NOT EXECUTED
20431a8: 87 30 e0 10 srl %g3, 0x10, %g3 <== NOT EXECUTED
20431ac: 80 a0 c0 04 cmp %g3, %g4 <== NOT EXECUTED
20431b0: 02 80 00 23 be 204323c <rtems_rfs_unlink+0x194> <== NOT EXECUTED
20431b4: 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)
20431b8: 08 80 00 21 bleu 204323c <rtems_rfs_unlink+0x194> <== NOT EXECUTED
20431bc: 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);
20431c0: 87 30 a0 08 srl %g2, 8, %g3 <== NOT EXECUTED
20431c4: c6 28 40 00 stb %g3, [ %g1 ] <== NOT EXECUTED
20431c8: c2 07 bf bc ld [ %fp + -68 ], %g1 <== NOT EXECUTED
20431cc: c4 28 60 01 stb %g2, [ %g1 + 1 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
20431d0: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20431d4: c2 2f bf c0 stb %g1, [ %fp + -64 ] <== NOT EXECUTED
links--;
rtems_rfs_inode_set_links (&parent_inode, links);
}
}
rc = rtems_rfs_inode_time_stamp_now (&parent_inode, true, true);
20431d8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
20431dc: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
20431e0: 7f ff fc d9 call 2042544 <rtems_rfs_inode_time_stamp_now> <== NOT EXECUTED
20431e4: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
if (rc > 0)
20431e8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20431ec: 24 bf ff cd ble,a 2043120 <rtems_rfs_unlink+0x78> <== NOT EXECUTED
20431f0: 92 10 00 12 mov %l2, %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);
20431f4: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
20431f8: 7f ff fd 7f call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
20431fc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &target_inode);
2043200: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2043204: 7f ff fd 7c call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2043208: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
204320c: 81 c7 e0 08 ret <== NOT EXECUTED
2043210: 81 e8 00 00 restore <== 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);
2043214: 7f ff f2 3f call 203fb10 <rtems_rfs_dir_empty> <== NOT EXECUTED
2043218: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc > 0)
204321c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2043220: 04 bf ff cc ble 2043150 <rtems_rfs_unlink+0xa8> <== NOT EXECUTED
2043224: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
if (rc > 0)
{
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);
2043228: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
204322c: 7f ff fd 72 call 20427f4 <rtems_rfs_inode_close> <== NOT EXECUTED
2043230: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
2043234: 81 c7 e0 08 ret <== NOT EXECUTED
2043238: 81 e8 00 00 restore <== NOT EXECUTED
else
{
/*
* Erasing the inode releases all blocks attached to it.
*/
rc = rtems_rfs_inode_delete (fs, &target_inode);
204323c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2043240: 7f ff fd ca call 2042968 <rtems_rfs_inode_delete> <== NOT EXECUTED
2043244: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc > 0)
2043248: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
204324c: 14 bf ff ea bg 20431f4 <rtems_rfs_unlink+0x14c> <== NOT EXECUTED
2043250: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &parent_inode);
rtems_rfs_inode_close (fs, &target_inode);
return rc;
}
if (dir)
2043254: 22 bf ff e2 be,a 20431dc <rtems_rfs_unlink+0x134> <== NOT EXECUTED
2043258: 90 10 00 12 mov %l2, %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);
204325c: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
if (links == 0xffff)
2043260: 88 10 20 00 clr %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);
2043264: c6 08 40 00 ldub [ %g1 ], %g3 <== NOT EXECUTED
2043268: c4 08 60 01 ldub [ %g1 + 1 ], %g2 <== NOT EXECUTED
204326c: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
2043270: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED
if (links == 0xffff)
2043274: 07 00 00 3f sethi %hi(0xfc00), %g3 <== NOT EXECUTED
2043278: 86 10 e3 ff or %g3, 0x3ff, %g3 ! ffff <PROM_START+0xffff> <== NOT EXECUTED
204327c: 9b 28 a0 10 sll %g2, 0x10, %o5 <== NOT EXECUTED
2043280: 9b 33 60 10 srl %o5, 0x10, %o5 <== NOT EXECUTED
2043284: 80 a3 40 03 cmp %o5, %g3 <== NOT EXECUTED
2043288: 02 80 00 09 be 20432ac <rtems_rfs_unlink+0x204> <== NOT EXECUTED
204328c: 86 10 20 00 clr %g3 <== NOT EXECUTED
{
links = rtems_rfs_inode_get_links (&parent_inode);
if (links > 1)
2043290: 80 a3 60 01 cmp %o5, 1 <== NOT EXECUTED
2043294: 08 80 00 06 bleu 20432ac <rtems_rfs_unlink+0x204> <== NOT EXECUTED
2043298: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED
links--;
204329c: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
20432a0: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED
20432a4: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
20432a8: 89 30 a0 18 srl %g2, 0x18, %g4 <== 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);
20432ac: c8 28 40 00 stb %g4, [ %g1 ] <== NOT EXECUTED
20432b0: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
20432b4: c6 28 60 01 stb %g3, [ %g1 + 1 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
20432b8: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20432bc: 10 bf ff c7 b 20431d8 <rtems_rfs_unlink+0x130> <== NOT EXECUTED
20432c0: c2 2f bf e8 stb %g1, [ %fp + -24 ] <== NOT EXECUTED
02026b38 <rtems_shell_debugrfs>:
printf (" -l: The debugger command list.\n");
}
int
rtems_shell_debugrfs (int argc, char *argv[])
{
2026b38: 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>" }
};
2026b3c: 13 00 81 a3 sethi %hi(0x2068c00), %o1 <== NOT EXECUTED
2026b40: a0 07 bf 74 add %fp, -140, %l0 <== NOT EXECUTED
2026b44: 92 12 60 e0 or %o1, 0xe0, %o1 <== NOT EXECUTED
2026b48: 94 10 20 3c mov 0x3c, %o2 <== NOT EXECUTED
2026b4c: 40 00 95 8a call 204c174 <memcpy> <== NOT EXECUTED
2026b50: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
int arg;
int t;
for (arg = 1; arg < argc; arg++)
2026b54: 80 a6 20 01 cmp %i0, 1 <== NOT EXECUTED
2026b58: 04 80 00 41 ble 2026c5c <rtems_shell_debugrfs+0x124> <== NOT EXECUTED
2026b5c: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
{
if (argv[arg][0] != '-')
2026b60: e4 06 60 04 ld [ %i1 + 4 ], %l2 <== NOT EXECUTED
2026b64: c2 4c 80 00 ldsb [ %l2 ], %g1 <== NOT EXECUTED
2026b68: 80 a0 60 2d cmp %g1, 0x2d <== NOT EXECUTED
2026b6c: 02 80 00 43 be 2026c78 <rtems_shell_debugrfs+0x140> <== NOT EXECUTED
2026b70: 80 a6 20 02 cmp %i0, 2 <== NOT EXECUTED
printf ("error: unknown option: %s\n", argv[arg]);
return 1;
}
}
if ((argc - arg) < 2)
2026b74: 22 80 00 3b be,a 2026c60 <rtems_shell_debugrfs+0x128> <== NOT EXECUTED
2026b78: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED
rtems_rfs_get_fs (const char* path, rtems_rfs_file_system** fs)
{
struct statvfs sb;
int rc;
rc = statvfs (path, &sb);
2026b7c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2026b80: 40 00 1d e3 call 202e30c <statvfs> <== NOT EXECUTED
2026b84: 92 07 bf b0 add %fp, -80, %o1 <== NOT EXECUTED
if (rc < 0)
2026b88: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2026b8c: 06 80 00 78 bl 2026d6c <rtems_shell_debugrfs+0x234> <== NOT EXECUTED
2026b90: c4 07 bf dc ld [ %fp + -36 ], %g2 <== 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)
2026b94: 03 0a 02 48 sethi %hi(0x28092000), %g1 <== NOT EXECUTED
2026b98: 82 10 60 01 or %g1, 1, %g1 ! 28092001 <RAM_END+0x25c92001><== NOT EXECUTED
2026b9c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2026ba0: 12 80 00 6d bne 2026d54 <rtems_shell_debugrfs+0x21c> <== NOT EXECUTED
2026ba4: 92 10 00 12 mov %l2, %o1 <== 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);
2026ba8: 40 00 a3 cf call 204fae4 <strlen> <== NOT EXECUTED
2026bac: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2026bb0: 94 10 20 00 clr %o2 <== NOT EXECUTED
2026bb4: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
2026bb8: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED
2026bbc: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2026bc0: a4 07 bf ec add %fp, -20, %l2 <== NOT EXECUTED
2026bc4: 7f ff 87 27 call 2008860 <rtems_filesystem_evaluate_path> <== NOT EXECUTED
2026bc8: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
*fs = rtems_rfs_rtems_pathloc_dev (&pathloc);
rtems_filesystem_freenode (&pathloc);
2026bcc: 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);
2026bd0: 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);
2026bd4: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
*fs = rtems_rfs_rtems_pathloc_dev (&pathloc);
rtems_filesystem_freenode (&pathloc);
2026bd8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2026bdc: 02 80 00 08 be 2026bfc <rtems_shell_debugrfs+0xc4> <== NOT EXECUTED
2026be0: e8 00 a0 34 ld [ %g2 + 0x34 ], %l4 <== NOT EXECUTED
2026be4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
2026be8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2026bec: 02 80 00 05 be 2026c00 <rtems_shell_debugrfs+0xc8> <== NOT EXECUTED
2026bf0: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
2026bf4: 9f c0 40 00 call %g1 <== NOT EXECUTED
2026bf8: 90 10 00 12 mov %l2, %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)
2026bfc: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
2026c00: 12 80 00 15 bne 2026c54 <rtems_shell_debugrfs+0x11c> <== NOT EXECUTED
2026c04: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
2026c08: e6 06 60 08 ld [ %i1 + 8 ], %l3 <== NOT EXECUTED
2026c0c: a4 10 20 00 clr %l2 <== NOT EXECUTED
2026c10: b2 06 60 08 add %i1, 8, %i1 <== NOT EXECUTED
{
for (t = 0; t < (sizeof (table) / sizeof (const rtems_rfs_shell_cmd)); t++)
if (strcmp (argv[arg + 1], table[t].name) == 0)
2026c14: d2 04 00 00 ld [ %l0 ], %o1 <== NOT EXECUTED
2026c18: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
2026c1c: 40 00 a1 b1 call 204f2e0 <strcmp> <== NOT EXECUTED
2026c20: a0 04 20 0c add %l0, 0xc, %l0 <== NOT EXECUTED
2026c24: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2026c28: 02 80 00 41 be 2026d2c <rtems_shell_debugrfs+0x1f4> <== NOT EXECUTED
2026c2c: 83 2c a0 04 sll %l2, 4, %g1 <== 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++)
2026c30: a4 04 a0 01 inc %l2 <== NOT EXECUTED
2026c34: 80 a4 a0 05 cmp %l2, 5 <== NOT EXECUTED
2026c38: 32 bf ff f8 bne,a 2026c18 <rtems_shell_debugrfs+0xe0> <== NOT EXECUTED
2026c3c: d2 04 00 00 ld [ %l0 ], %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]);
2026c40: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2026c44: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
2026c48: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
2026c4c: 40 00 99 f9 call 204d430 <printf> <== NOT EXECUTED
2026c50: 90 12 23 60 or %o0, 0x360, %o0 <== NOT EXECUTED
}
}
return 1;
}
2026c54: 81 c7 e0 08 ret <== NOT EXECUTED
2026c58: 81 e8 00 00 restore <== NOT EXECUTED
return 1;
}
}
if ((argc - arg) < 2)
printf ("error: you need at least a path and command, try %s -h\n", argv[0]);
2026c5c: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED
2026c60: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
2026c64: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
2026c68: 40 00 99 f2 call 204d430 <printf> <== NOT EXECUTED
2026c6c: 90 12 22 c8 or %o0, 0x2c8, %o0 <== NOT EXECUTED
2026c70: 81 c7 e0 08 ret <== NOT EXECUTED
2026c74: 81 e8 00 00 restore <== NOT EXECUTED
for (arg = 1; arg < argc; arg++)
{
if (argv[arg][0] != '-')
break;
switch (argv[arg][1])
2026c78: c2 4c a0 01 ldsb [ %l2 + 1 ], %g1 <== NOT EXECUTED
2026c7c: 80 a0 60 68 cmp %g1, 0x68 <== NOT EXECUTED
2026c80: 02 80 00 0a be 2026ca8 <rtems_shell_debugrfs+0x170> <== NOT EXECUTED
2026c84: 80 a0 60 6c cmp %g1, 0x6c <== NOT EXECUTED
2026c88: 02 80 00 0d be 2026cbc <rtems_shell_debugrfs+0x184> <== NOT EXECUTED
2026c8c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
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);
return 0;
default:
printf ("error: unknown option: %s\n", argv[arg]);
2026c90: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
2026c94: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
2026c98: 40 00 99 e6 call 204d430 <printf> <== NOT EXECUTED
2026c9c: 90 12 22 a8 or %o0, 0x2a8, %o0 <== NOT EXECUTED
return 1;
2026ca0: 81 c7 e0 08 ret <== NOT EXECUTED
2026ca4: 81 e8 00 00 restore <== NOT EXECUTED
break;
switch (argv[arg][1])
{
case 'h':
rtems_rfs_shell_usage (argv[0]);
2026ca8: d0 06 40 00 ld [ %i1 ], %o0 <== NOT EXECUTED
2026cac: 7f ff fb 47 call 20259c8 <rtems_rfs_shell_usage> <== NOT EXECUTED
2026cb0: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
2026cb4: 81 c7 e0 08 ret <== NOT EXECUTED
2026cb8: 81 e8 00 00 restore <== NOT EXECUTED
case 'l':
printf ("%s: commands are:\n", argv[0]);
2026cbc: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED
2026cc0: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
2026cc4: 40 00 99 db call 204d430 <printf> <== NOT EXECUTED
2026cc8: 90 12 22 80 or %o0, 0x280, %o0 ! 2068a80 <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);
2026ccc: d2 07 bf 74 ld [ %fp + -140 ], %o1 <== NOT EXECUTED
2026cd0: d4 07 bf 7c ld [ %fp + -132 ], %o2 <== NOT EXECUTED
2026cd4: 21 00 81 a2 sethi %hi(0x2068800), %l0 <== NOT EXECUTED
2026cd8: 40 00 99 d6 call 204d430 <printf> <== NOT EXECUTED
2026cdc: 90 14 22 98 or %l0, 0x298, %o0 ! 2068a98 <rtems_rfs_ops+0x8c0><== NOT EXECUTED
2026ce0: d2 07 bf 80 ld [ %fp + -128 ], %o1 <== NOT EXECUTED
2026ce4: d4 07 bf 88 ld [ %fp + -120 ], %o2 <== NOT EXECUTED
2026ce8: 40 00 99 d2 call 204d430 <printf> <== NOT EXECUTED
2026cec: 90 14 22 98 or %l0, 0x298, %o0 <== NOT EXECUTED
2026cf0: d2 07 bf 8c ld [ %fp + -116 ], %o1 <== NOT EXECUTED
2026cf4: d4 07 bf 94 ld [ %fp + -108 ], %o2 <== NOT EXECUTED
2026cf8: 40 00 99 ce call 204d430 <printf> <== NOT EXECUTED
2026cfc: 90 14 22 98 or %l0, 0x298, %o0 <== NOT EXECUTED
2026d00: d2 07 bf 98 ld [ %fp + -104 ], %o1 <== NOT EXECUTED
2026d04: d4 07 bf a0 ld [ %fp + -96 ], %o2 <== NOT EXECUTED
2026d08: 40 00 99 ca call 204d430 <printf> <== NOT EXECUTED
2026d0c: 90 14 22 98 or %l0, 0x298, %o0 <== NOT EXECUTED
2026d10: d2 07 bf a4 ld [ %fp + -92 ], %o1 <== NOT EXECUTED
2026d14: d4 07 bf ac ld [ %fp + -84 ], %o2 <== NOT EXECUTED
2026d18: 90 14 22 98 or %l0, 0x298, %o0 <== NOT EXECUTED
2026d1c: 40 00 99 c5 call 204d430 <printf> <== NOT EXECUTED
2026d20: b0 10 20 00 clr %i0 <== NOT EXECUTED
2026d24: 81 c7 e0 08 ret <== NOT EXECUTED
2026d28: 81 e8 00 00 restore <== NOT EXECUTED
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++)
if (strcmp (argv[arg + 1], table[t].name) == 0)
return table[t].handler (fs, argc - 2, argv + 2);
2026d2c: a5 2c a0 02 sll %l2, 2, %l2 <== NOT EXECUTED
2026d30: 82 20 40 12 sub %g1, %l2, %g1 <== NOT EXECUTED
2026d34: 82 07 80 01 add %fp, %g1, %g1 <== NOT EXECUTED
2026d38: c2 00 7f 78 ld [ %g1 + -136 ], %g1 <== NOT EXECUTED
2026d3c: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
2026d40: 92 04 7f fe add %l1, -2, %o1 <== NOT EXECUTED
2026d44: 9f c0 40 00 call %g1 <== NOT EXECUTED
2026d48: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
2026d4c: 81 c7 e0 08 ret <== NOT EXECUTED
2026d50: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
return -1;
}
if (sb.f_fsid != RTEMS_RFS_SB_MAGIC)
{
printf ("error: path '%s' is not on an RFS file system\n", path);
2026d54: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
2026d58: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
2026d5c: 40 00 99 b5 call 204d430 <printf> <== NOT EXECUTED
2026d60: 90 12 23 30 or %o0, 0x330, %o0 <== NOT EXECUTED
2026d64: 81 c7 e0 08 ret <== NOT EXECUTED
2026d68: 81 e8 00 00 restore <== NOT EXECUTED
int rc;
rc = statvfs (path, &sb);
if (rc < 0)
{
printf ("error: cannot statvfs path: %s: (%d) %s\n",
2026d6c: 40 00 87 b6 call 2048c44 <__errno> <== NOT EXECUTED
2026d70: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
2026d74: 40 00 87 b4 call 2048c44 <__errno> <== NOT EXECUTED
2026d78: e0 02 00 00 ld [ %o0 ], %l0 <== NOT EXECUTED
2026d7c: 40 00 a2 4e call 204f6b4 <strerror> <== NOT EXECUTED
2026d80: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED
2026d84: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2026d88: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2026d8c: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2026d90: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
2026d94: 40 00 99 a7 call 204d430 <printf> <== NOT EXECUTED
2026d98: 90 12 23 00 or %o0, 0x300, %o0 ! 2068b00 <rtems_rfs_ops+0x928><== NOT EXECUTED
2026d9c: 81 c7 e0 08 ret <== NOT EXECUTED
2026da0: 81 e8 00 00 restore <== NOT EXECUTED
02025a2c <rtems_shell_rfs_format>:
return 1;
}
int
rtems_shell_rfs_format (int argc, char* argv[])
{
2025a2c: 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));
2025a30: a0 07 bf e8 add %fp, -24, %l0 <== NOT EXECUTED
2025a34: c0 27 bf e8 clr [ %fp + -24 ] <== NOT EXECUTED
2025a38: c0 27 bf ec clr [ %fp + -20 ] <== NOT EXECUTED
2025a3c: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED
2025a40: c0 24 20 0c clr [ %l0 + 0xc ] <== NOT EXECUTED
2025a44: c0 24 20 10 clr [ %l0 + 0x10 ] <== NOT EXECUTED
for (arg = 1; arg < argc; arg++)
2025a48: 80 a6 20 01 cmp %i0, 1 <== NOT EXECUTED
2025a4c: 04 80 00 75 ble 2025c20 <rtems_shell_rfs_format+0x1f4> <== NOT EXECUTED
2025a50: c0 24 20 14 clr [ %l0 + 0x14 ] <== NOT EXECUTED
{
if (argv[arg][0] == '-')
{
switch (argv[arg][1])
2025a54: 27 00 80 96 sethi %hi(0x2025800), %l3 <== NOT EXECUTED
const char* driver = NULL;
int arg;
memset (&config, 0, sizeof (rtems_rfs_format_config));
for (arg = 1; arg < argc; arg++)
2025a58: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED
{
if (argv[arg][0] == '-')
{
switch (argv[arg][1])
2025a5c: a6 14 e1 10 or %l3, 0x110, %l3 <== NOT EXECUTED
const char* driver = NULL;
int arg;
memset (&config, 0, sizeof (rtems_rfs_format_config));
for (arg = 1; arg < argc; arg++)
2025a60: 82 10 20 00 clr %g1 <== NOT EXECUTED
}
config.group_inodes = strtoul (argv[arg], 0, 0);
break;
case 'I':
config.initialise_inodes = true;
2025a64: 10 80 00 09 b 2025a88 <rtems_shell_rfs_format+0x5c> <== NOT EXECUTED
2025a68: a8 10 20 01 mov 1, %l4 <== NOT EXECUTED
return 1;
}
}
else
{
if (!driver)
2025a6c: 12 80 00 5c bne 2025bdc <rtems_shell_rfs_format+0x1b0> <== NOT EXECUTED
2025a70: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
const char* driver = NULL;
int arg;
memset (&config, 0, sizeof (rtems_rfs_format_config));
for (arg = 1; arg < argc; arg++)
2025a74: a2 04 60 01 inc %l1 <== NOT EXECUTED
2025a78: 80 a6 00 11 cmp %i0, %l1 <== NOT EXECUTED
2025a7c: 04 80 00 1f ble 2025af8 <rtems_shell_rfs_format+0xcc> <== NOT EXECUTED
2025a80: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
2025a84: 82 10 00 12 mov %l2, %g1 <== NOT EXECUTED
{
if (argv[arg][0] == '-')
2025a88: 85 2c 60 02 sll %l1, 2, %g2 <== NOT EXECUTED
2025a8c: e4 06 40 02 ld [ %i1 + %g2 ], %l2 <== NOT EXECUTED
2025a90: c4 4c 80 00 ldsb [ %l2 ], %g2 <== NOT EXECUTED
2025a94: 80 a0 a0 2d cmp %g2, 0x2d <== NOT EXECUTED
2025a98: 12 bf ff f5 bne 2025a6c <rtems_shell_rfs_format+0x40> <== NOT EXECUTED
2025a9c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
{
switch (argv[arg][1])
2025aa0: c4 0c a0 01 ldub [ %l2 + 1 ], %g2 <== NOT EXECUTED
2025aa4: 84 00 bf b7 add %g2, -73, %g2 <== NOT EXECUTED
2025aa8: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
2025aac: 80 a0 a0 2d cmp %g2, 0x2d <== NOT EXECUTED
2025ab0: 08 80 00 09 bleu 2025ad4 <rtems_shell_rfs_format+0xa8> <== NOT EXECUTED
2025ab4: 85 28 a0 02 sll %g2, 2, %g2 <== NOT EXECUTED
}
config.inode_overhead = strtoul (argv[arg], 0, 0);
break;
default:
printf ("error: invalid option: %s\n", argv[arg]);
2025ab8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2025abc: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
2025ac0: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
2025ac4: 40 00 9e 5b call 204d430 <printf> <== NOT EXECUTED
2025ac8: 90 12 20 10 or %o0, 0x10, %o0 <== NOT EXECUTED
return 1;
2025acc: 81 c7 e0 08 ret <== NOT EXECUTED
2025ad0: 81 e8 00 00 restore <== NOT EXECUTED
for (arg = 1; arg < argc; arg++)
{
if (argv[arg][0] == '-')
{
switch (argv[arg][1])
2025ad4: c4 04 c0 02 ld [ %l3 + %g2 ], %g2 <== NOT EXECUTED
2025ad8: 81 c0 80 00 jmp %g2 <== NOT EXECUTED
2025adc: 01 00 00 00 nop <== NOT EXECUTED
{
case 'v':
config.verbose = true;
2025ae0: e8 2f bf fd stb %l4, [ %fp + -3 ] <== NOT EXECUTED
const char* driver = NULL;
int arg;
memset (&config, 0, sizeof (rtems_rfs_format_config));
for (arg = 1; arg < argc; arg++)
2025ae4: a2 04 60 01 inc %l1 <== NOT EXECUTED
2025ae8: 80 a6 00 11 cmp %i0, %l1 <== NOT EXECUTED
2025aec: 14 bf ff e6 bg 2025a84 <rtems_shell_rfs_format+0x58> <== NOT EXECUTED
2025af0: a4 10 00 01 mov %g1, %l2 <== NOT EXECUTED
return 1;
}
}
}
if (!driver) {
2025af4: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
2025af8: 02 80 00 4a be 2025c20 <rtems_shell_rfs_format+0x1f4> <== NOT EXECUTED
2025afc: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
printf ("error: no driver name provided\n");
return 1;
}
if (rtems_rfs_format (driver, &config) < 0)
2025b00: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2025b04: 40 00 6d 77 call 20410e0 <rtems_rfs_format> <== NOT EXECUTED
2025b08: b0 10 20 00 clr %i0 <== NOT EXECUTED
2025b0c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025b10: 06 80 00 39 bl 2025bf4 <rtems_shell_rfs_format+0x1c8> <== NOT EXECUTED
2025b14: 01 00 00 00 nop <== NOT EXECUTED
driver, strerror (errno));
return 1;
}
return 0;
}
2025b18: 81 c7 e0 08 ret <== NOT EXECUTED
2025b1c: 81 e8 00 00 restore <== NOT EXECUTED
case 'v':
config.verbose = true;
break;
case 's':
arg++;
2025b20: a2 04 60 01 inc %l1 <== NOT EXECUTED
if (arg >= argc)
2025b24: 80 a6 00 11 cmp %i0, %l1 <== NOT EXECUTED
2025b28: 04 80 00 4a ble 2025c50 <rtems_shell_rfs_format+0x224> <== NOT EXECUTED
2025b2c: 85 2c 60 02 sll %l1, 2, %g2 <== NOT EXECUTED
{
printf ("error: block size needs an argument\n");
return 1;
}
config.block_size = strtoul (argv[arg], 0, 0);
2025b30: d0 06 40 02 ld [ %i1 + %g2 ], %o0 <== NOT EXECUTED
2025b34: a4 10 00 01 mov %g1, %l2 <== NOT EXECUTED
2025b38: 92 10 20 00 clr %o1 <== NOT EXECUTED
2025b3c: 40 00 ad 9f call 20511b8 <strtoul> <== NOT EXECUTED
2025b40: 94 10 20 00 clr %o2 <== NOT EXECUTED
break;
2025b44: 10 bf ff cc b 2025a74 <rtems_shell_rfs_format+0x48> <== NOT EXECUTED
2025b48: d0 27 bf e8 st %o0, [ %fp + -24 ] <== NOT EXECUTED
case 'I':
config.initialise_inodes = true;
break;
case 'o':
arg++;
2025b4c: a2 04 60 01 inc %l1 <== NOT EXECUTED
if (arg >= argc)
2025b50: 80 a6 00 11 cmp %i0, %l1 <== NOT EXECUTED
2025b54: 04 80 00 4b ble 2025c80 <rtems_shell_rfs_format+0x254> <== NOT EXECUTED
2025b58: 85 2c 60 02 sll %l1, 2, %g2 <== NOT EXECUTED
{
printf ("error: inode percentage overhead needs an argument\n");
return 1;
}
config.inode_overhead = strtoul (argv[arg], 0, 0);
2025b5c: d0 06 40 02 ld [ %i1 + %g2 ], %o0 <== NOT EXECUTED
2025b60: a4 10 00 01 mov %g1, %l2 <== NOT EXECUTED
2025b64: 92 10 20 00 clr %o1 <== NOT EXECUTED
2025b68: 40 00 ad 94 call 20511b8 <strtoul> <== NOT EXECUTED
2025b6c: 94 10 20 00 clr %o2 <== NOT EXECUTED
break;
2025b70: 10 bf ff c1 b 2025a74 <rtems_shell_rfs_format+0x48> <== NOT EXECUTED
2025b74: d0 27 bf f4 st %o0, [ %fp + -12 ] <== NOT EXECUTED
}
config.group_blocks = strtoul (argv[arg], 0, 0);
break;
case 'i':
arg++;
2025b78: a2 04 60 01 inc %l1 <== NOT EXECUTED
if (arg >= argc)
2025b7c: 80 a6 00 11 cmp %i0, %l1 <== NOT EXECUTED
2025b80: 04 80 00 3a ble 2025c68 <rtems_shell_rfs_format+0x23c> <== NOT EXECUTED
2025b84: 85 2c 60 02 sll %l1, 2, %g2 <== NOT EXECUTED
{
printf ("error: group inode count needs an argument\n");
return 1;
}
config.group_inodes = strtoul (argv[arg], 0, 0);
2025b88: d0 06 40 02 ld [ %i1 + %g2 ], %o0 <== NOT EXECUTED
2025b8c: a4 10 00 01 mov %g1, %l2 <== NOT EXECUTED
2025b90: 92 10 20 00 clr %o1 <== NOT EXECUTED
2025b94: 40 00 ad 89 call 20511b8 <strtoul> <== NOT EXECUTED
2025b98: 94 10 20 00 clr %o2 <== NOT EXECUTED
break;
2025b9c: 10 bf ff b6 b 2025a74 <rtems_shell_rfs_format+0x48> <== NOT EXECUTED
2025ba0: d0 27 bf f0 st %o0, [ %fp + -16 ] <== NOT EXECUTED
}
config.block_size = strtoul (argv[arg], 0, 0);
break;
case 'b':
arg++;
2025ba4: a2 04 60 01 inc %l1 <== NOT EXECUTED
if (arg >= argc)
2025ba8: 80 a6 00 11 cmp %i0, %l1 <== NOT EXECUTED
2025bac: 04 80 00 23 ble 2025c38 <rtems_shell_rfs_format+0x20c> <== NOT EXECUTED
2025bb0: 85 2c 60 02 sll %l1, 2, %g2 <== NOT EXECUTED
{
printf ("error: group block count needs an argument\n");
return 1;
}
config.group_blocks = strtoul (argv[arg], 0, 0);
2025bb4: d0 06 40 02 ld [ %i1 + %g2 ], %o0 <== NOT EXECUTED
2025bb8: a4 10 00 01 mov %g1, %l2 <== NOT EXECUTED
2025bbc: 92 10 20 00 clr %o1 <== NOT EXECUTED
2025bc0: 40 00 ad 7e call 20511b8 <strtoul> <== NOT EXECUTED
2025bc4: 94 10 20 00 clr %o2 <== NOT EXECUTED
break;
2025bc8: 10 bf ff ab b 2025a74 <rtems_shell_rfs_format+0x48> <== NOT EXECUTED
2025bcc: d0 27 bf ec st %o0, [ %fp + -20 ] <== NOT EXECUTED
}
config.group_inodes = strtoul (argv[arg], 0, 0);
break;
case 'I':
config.initialise_inodes = true;
2025bd0: e8 2f bf fc stb %l4, [ %fp + -4 ] <== NOT EXECUTED
break;
2025bd4: 10 bf ff a8 b 2025a74 <rtems_shell_rfs_format+0x48> <== NOT EXECUTED
2025bd8: a4 10 00 01 mov %g1, %l2 <== NOT EXECUTED
{
if (!driver)
driver = argv[arg];
else
{
printf ("error: only one driver name allowed: %s\n", argv[arg]);
2025bdc: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
2025be0: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
2025be4: 40 00 9e 13 call 204d430 <printf> <== NOT EXECUTED
2025be8: 90 12 20 30 or %o0, 0x30, %o0 <== NOT EXECUTED
return 1;
2025bec: 81 c7 e0 08 ret <== NOT EXECUTED
2025bf0: 81 e8 00 00 restore <== NOT EXECUTED
return 1;
}
if (rtems_rfs_format (driver, &config) < 0)
{
printf ("error: format of %s failed: %s\n",
2025bf4: 40 00 8c 14 call 2048c44 <__errno> <== NOT EXECUTED
2025bf8: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
2025bfc: 40 00 a6 ae call 204f6b4 <strerror> <== NOT EXECUTED
2025c00: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED
2025c04: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2025c08: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2025c0c: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
2025c10: 40 00 9e 08 call 204d430 <printf> <== NOT EXECUTED
2025c14: 90 12 20 80 or %o0, 0x80, %o0 ! 2068480 <rtems_rfs_ops+0x2a8><== NOT EXECUTED
driver, strerror (errno));
return 1;
}
return 0;
}
2025c18: 81 c7 e0 08 ret <== NOT EXECUTED
2025c1c: 81 e8 00 00 restore <== NOT EXECUTED
}
}
}
if (!driver) {
printf ("error: no driver name provided\n");
2025c20: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
2025c24: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
2025c28: 40 00 9e ae call 204d6e0 <puts> <== NOT EXECUTED
2025c2c: 90 12 20 60 or %o0, 0x60, %o0 <== NOT EXECUTED
return 1;
2025c30: 81 c7 e0 08 ret <== NOT EXECUTED
2025c34: 81 e8 00 00 restore <== NOT EXECUTED
case 'b':
arg++;
if (arg >= argc)
{
printf ("error: group block count needs an argument\n");
2025c38: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
2025c3c: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
2025c40: 40 00 9e a8 call 204d6e0 <puts> <== NOT EXECUTED
2025c44: 90 12 23 78 or %o0, 0x378, %o0 <== NOT EXECUTED
return 1;
2025c48: 81 c7 e0 08 ret <== NOT EXECUTED
2025c4c: 81 e8 00 00 restore <== NOT EXECUTED
case 's':
arg++;
if (arg >= argc)
{
printf ("error: block size needs an argument\n");
2025c50: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
2025c54: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
2025c58: 40 00 9e a2 call 204d6e0 <puts> <== NOT EXECUTED
2025c5c: 90 12 23 50 or %o0, 0x350, %o0 <== NOT EXECUTED
return 1;
2025c60: 81 c7 e0 08 ret <== NOT EXECUTED
2025c64: 81 e8 00 00 restore <== NOT EXECUTED
case 'i':
arg++;
if (arg >= argc)
{
printf ("error: group inode count needs an argument\n");
2025c68: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
2025c6c: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
2025c70: 40 00 9e 9c call 204d6e0 <puts> <== NOT EXECUTED
2025c74: 90 12 23 a8 or %o0, 0x3a8, %o0 <== NOT EXECUTED
return 1;
2025c78: 81 c7 e0 08 ret <== NOT EXECUTED
2025c7c: 81 e8 00 00 restore <== NOT EXECUTED
case 'o':
arg++;
if (arg >= argc)
{
printf ("error: inode percentage overhead needs an argument\n");
2025c80: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
2025c84: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
2025c88: 40 00 9e 96 call 204d6e0 <puts> <== NOT EXECUTED
2025c8c: 90 12 23 d8 or %o0, 0x3d8, %o0 <== NOT EXECUTED
return 1;
2025c90: 81 c7 e0 08 ret <== NOT EXECUTED
2025c94: 81 e8 00 00 restore <== NOT EXECUTED
02015d3c <rtems_signal_send>:
rtems_status_code rtems_signal_send(
rtems_id id,
rtems_signal_set signal_set
)
{
2015d3c: 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 )
2015d40: 80 a6 60 00 cmp %i1, 0
2015d44: 12 80 00 04 bne 2015d54 <rtems_signal_send+0x18>
2015d48: 82 10 20 0a mov 0xa, %g1
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
2015d4c: 81 c7 e0 08 ret
2015d50: 91 e8 00 01 restore %g0, %g1, %o0
ASR_Information *asr;
if ( !signal_set )
return RTEMS_INVALID_NUMBER;
the_thread = _Thread_Get( id, &location );
2015d54: 90 10 00 18 mov %i0, %o0
2015d58: 40 00 11 1f call 201a1d4 <_Thread_Get>
2015d5c: 92 07 bf fc add %fp, -4, %o1
switch ( location ) {
2015d60: c4 07 bf fc ld [ %fp + -4 ], %g2
ASR_Information *asr;
if ( !signal_set )
return RTEMS_INVALID_NUMBER;
the_thread = _Thread_Get( id, &location );
2015d64: a2 10 00 08 mov %o0, %l1
switch ( location ) {
2015d68: 80 a0 a0 00 cmp %g2, 0
2015d6c: 12 bf ff f8 bne 2015d4c <rtems_signal_send+0x10>
2015d70: 82 10 20 04 mov 4, %g1
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
2015d74: e0 02 21 60 ld [ %o0 + 0x160 ], %l0
asr = &api->Signal;
2015d78: c2 04 20 0c ld [ %l0 + 0xc ], %g1
2015d7c: 80 a0 60 00 cmp %g1, 0
2015d80: 02 80 00 26 be 2015e18 <rtems_signal_send+0xdc>
2015d84: 01 00 00 00 nop
if ( ! _ASR_Is_null_handler( asr->handler ) ) {
if ( asr->is_enabled ) {
2015d88: c2 0c 20 08 ldub [ %l0 + 8 ], %g1
2015d8c: 80 a0 60 00 cmp %g1, 0
2015d90: 02 80 00 16 be 2015de8 <rtems_signal_send+0xac>
2015d94: 01 00 00 00 nop
rtems_signal_set *signal_set
)
{
ISR_Level _level;
_ISR_Disable( _level );
2015d98: 7f ff e5 a8 call 200f438 <sparc_disable_interrupts>
2015d9c: 01 00 00 00 nop
*signal_set |= signals;
2015da0: c2 04 20 14 ld [ %l0 + 0x14 ], %g1
2015da4: b2 10 40 19 or %g1, %i1, %i1
2015da8: f2 24 20 14 st %i1, [ %l0 + 0x14 ]
_ISR_Enable( _level );
2015dac: 7f ff e5 a7 call 200f448 <sparc_enable_interrupts>
2015db0: 01 00 00 00 nop
_ASR_Post_signals( signal_set, &asr->signals_posted );
the_thread->do_post_task_switch_extension = true;
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
2015db4: 03 00 80 fd sethi %hi(0x203f400), %g1
2015db8: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 ! 203f41c <_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;
2015dbc: 82 10 20 01 mov 1, %g1
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
2015dc0: 80 a0 a0 00 cmp %g2, 0
2015dc4: 02 80 00 10 be 2015e04 <rtems_signal_send+0xc8>
2015dc8: c2 2c 60 74 stb %g1, [ %l1 + 0x74 ]
2015dcc: 05 00 80 fd sethi %hi(0x203f400), %g2
2015dd0: c4 00 a0 40 ld [ %g2 + 0x40 ], %g2 ! 203f440 <_Thread_Executing>
2015dd4: 80 a4 40 02 cmp %l1, %g2
2015dd8: 12 80 00 0b bne 2015e04 <rtems_signal_send+0xc8> <== NEVER TAKEN
2015ddc: 05 00 80 fd sethi %hi(0x203f400), %g2
_ISR_Signals_to_thread_executing = true;
2015de0: 10 80 00 09 b 2015e04 <rtems_signal_send+0xc8>
2015de4: c2 28 a0 d8 stb %g1, [ %g2 + 0xd8 ] ! 203f4d8 <_ISR_Signals_to_thread_executing>
rtems_signal_set *signal_set
)
{
ISR_Level _level;
_ISR_Disable( _level );
2015de8: 7f ff e5 94 call 200f438 <sparc_disable_interrupts>
2015dec: 01 00 00 00 nop
*signal_set |= signals;
2015df0: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
2015df4: b2 10 40 19 or %g1, %i1, %i1
2015df8: f2 24 20 18 st %i1, [ %l0 + 0x18 ]
_ISR_Enable( _level );
2015dfc: 7f ff e5 93 call 200f448 <sparc_enable_interrupts>
2015e00: 01 00 00 00 nop
} else {
_ASR_Post_signals( signal_set, &asr->signals_pending );
}
_Thread_Enable_dispatch();
2015e04: 40 00 10 d0 call 201a144 <_Thread_Enable_dispatch>
2015e08: 01 00 00 00 nop
2015e0c: 82 10 20 00 clr %g1 ! 0 <PROM_START>
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
2015e10: 81 c7 e0 08 ret
2015e14: 91 e8 00 01 restore %g0, %g1, %o0
_ASR_Post_signals( signal_set, &asr->signals_pending );
}
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
_Thread_Enable_dispatch();
2015e18: 40 00 10 cb call 201a144 <_Thread_Enable_dispatch>
2015e1c: 01 00 00 00 nop
return RTEMS_NOT_DEFINED;
2015e20: 10 bf ff cb b 2015d4c <rtems_signal_send+0x10>
2015e24: 82 10 20 0b mov 0xb, %g1 ! b <PROM_START+0xb>
02006968 <rtems_stack_checker_begin_extension>:
Thread_Control *the_thread
)
{
Stack_check_Control *the_pattern;
if ( the_thread->Object.id == 0 ) /* skip system tasks */
2006968: c2 02 20 08 ld [ %o0 + 8 ], %g1
200696c: 80 a0 60 00 cmp %g1, 0
2006970: 02 80 00 0c be 20069a0 <rtems_stack_checker_begin_extension+0x38><== NEVER TAKEN
2006974: 05 00 81 cc sethi %hi(0x2073000), %g2
return;
the_pattern = Stack_check_Get_pattern_area(&the_thread->Start.Initial_stack);
*the_pattern = Stack_check_Pattern;
2006978: c2 02 20 c4 ld [ %o0 + 0xc4 ], %g1
200697c: c6 00 a0 b8 ld [ %g2 + 0xb8 ], %g3
2006980: 84 10 a0 b8 or %g2, 0xb8, %g2
2006984: c6 20 60 08 st %g3, [ %g1 + 8 ]
2006988: c6 00 a0 04 ld [ %g2 + 4 ], %g3
200698c: c6 20 60 0c st %g3, [ %g1 + 0xc ]
2006990: c6 00 a0 08 ld [ %g2 + 8 ], %g3
2006994: c6 20 60 10 st %g3, [ %g1 + 0x10 ]
2006998: c4 00 a0 0c ld [ %g2 + 0xc ], %g2
200699c: c4 20 60 14 st %g2, [ %g1 + 0x14 ]
20069a0: 81 c3 e0 08 retl
02006e40 <rtems_stack_checker_create_extension>:
*/
bool rtems_stack_checker_create_extension(
Thread_Control *running __attribute__((unused)),
Thread_Control *the_thread
)
{
2006e40: 9d e3 bf a0 save %sp, -96, %sp
Stack_check_Initialize();
2006e44: 7f ff ff d9 call 2006da8 <Stack_check_Initialize>
2006e48: 01 00 00 00 nop
if (the_thread)
2006e4c: 80 a6 60 00 cmp %i1, 0
2006e50: 02 80 00 06 be 2006e68 <rtems_stack_checker_create_extension+0x28><== NEVER TAKEN
2006e54: 01 00 00 00 nop
Stack_check_Dope_stack(&the_thread->Start.Initial_stack);
2006e58: d4 06 60 c0 ld [ %i1 + 0xc0 ], %o2
2006e5c: d0 06 60 c4 ld [ %i1 + 0xc4 ], %o0
2006e60: 40 01 15 58 call 204c3c0 <memset>
2006e64: 92 10 20 a5 mov 0xa5, %o1
return true;
}
2006e68: 81 c7 e0 08 ret
2006e6c: 91 e8 20 01 restore %g0, 1, %o0
02006cb0 <rtems_stack_checker_is_blown>:
/*
* Check if blown
*/
bool rtems_stack_checker_is_blown( void )
{
2006cb0: 9d e3 bf a0 save %sp, -96, %sp
Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack;
2006cb4: 21 00 81 cc sethi %hi(0x2073000), %l0
2006cb8: c2 04 23 70 ld [ %l0 + 0x370 ], %g1 ! 2073370 <_Thread_Executing>
)
{
#if defined(__GNUC__)
void *sp = __builtin_frame_address(0);
if ( sp < the_stack->area ) {
2006cbc: d0 00 60 c4 ld [ %g1 + 0xc4 ], %o0
2006cc0: 80 a7 80 08 cmp %fp, %o0
2006cc4: 0a 80 00 06 bcs 2006cdc <rtems_stack_checker_is_blown+0x2c><== NEVER TAKEN
2006cc8: a2 10 20 00 clr %l1
}
/*
* Check if blown
*/
bool rtems_stack_checker_is_blown( void )
2006ccc: c2 00 60 c0 ld [ %g1 + 0xc0 ], %g1
2006cd0: 82 02 00 01 add %o0, %g1, %g1
2006cd4: 80 a0 40 1e cmp %g1, %fp
2006cd8: a2 60 3f ff subx %g0, -1, %l1
/*
* The stack checker must be initialized before the pattern is there
* to check.
*/
if ( Stack_check_Initialized ) {
2006cdc: 03 00 81 c1 sethi %hi(0x2070400), %g1
2006ce0: c4 00 61 58 ld [ %g1 + 0x158 ], %g2 ! 2070558 <Stack_check_Initialized>
2006ce4: 80 a0 a0 00 cmp %g2, 0
2006ce8: 02 80 00 09 be 2006d0c <rtems_stack_checker_is_blown+0x5c><== NEVER TAKEN
2006cec: 82 10 20 01 mov 1, %g1
pattern_ok = (!memcmp(
2006cf0: 90 02 20 08 add %o0, 8, %o0
2006cf4: 13 00 81 cc sethi %hi(0x2073000), %o1
2006cf8: 94 10 20 10 mov 0x10, %o2
2006cfc: 40 01 14 ed call 204c0b0 <memcmp>
2006d00: 92 12 60 b8 or %o1, 0xb8, %o1
2006d04: 80 a0 00 08 cmp %g0, %o0
2006d08: 82 60 3f ff subx %g0, -1, %g1
}
/*
* The Stack Pointer and the Pattern Area are OK so return false.
*/
if ( sp_ok && pattern_ok )
2006d0c: 80 8c 60 ff btst 0xff, %l1
2006d10: 02 80 00 05 be 2006d24 <rtems_stack_checker_is_blown+0x74><== NEVER TAKEN
2006d14: 92 08 60 ff and %g1, 0xff, %o1
2006d18: 92 88 60 ff andcc %g1, 0xff, %o1
2006d1c: 12 80 00 05 bne 2006d30 <rtems_stack_checker_is_blown+0x80><== ALWAYS TAKEN
2006d20: 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 );
2006d24: d0 04 23 70 ld [ %l0 + 0x370 ], %o0 <== NOT EXECUTED
2006d28: 7f ff ff b8 call 2006c08 <Stack_check_report_blown_task> <== NOT EXECUTED
2006d2c: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
return true;
}
2006d30: 81 c7 e0 08 ret
2006d34: 81 e8 00 00 restore
02006bec <rtems_stack_checker_report_usage>:
void rtems_stack_checker_report_usage( void )
{
rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin );
2006bec: 13 00 80 27 sethi %hi(0x2009c00), %o1 <== NOT EXECUTED
2006bf0: 90 10 20 00 clr %o0 <== NOT EXECUTED
2006bf4: 92 12 62 a8 or %o1, 0x2a8, %o1 <== NOT EXECUTED
2006bf8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2006bfc: 7f ff ff e6 call 2006b94 <rtems_stack_checker_report_usage_with_plugin><== NOT EXECUTED
2006c00: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02006b94 <rtems_stack_checker_report_usage_with_plugin>:
void rtems_stack_checker_report_usage_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
2006b94: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
print_context = context;
2006b98: 23 00 81 c1 sethi %hi(0x2070400), %l1 <== NOT EXECUTED
print_handler = print;
2006b9c: 21 00 81 c1 sethi %hi(0x2070400), %l0 <== NOT EXECUTED
void rtems_stack_checker_report_usage_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
print_context = context;
2006ba0: f0 24 61 5c st %i0, [ %l1 + 0x15c ] <== NOT EXECUTED
print_handler = print;
2006ba4: f2 24 21 60 st %i1, [ %l0 + 0x160 ] <== NOT EXECUTED
(*print)( context, "Stack usage by thread\n");
2006ba8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2006bac: 13 00 81 90 sethi %hi(0x2064000), %o1 <== NOT EXECUTED
2006bb0: 9f c6 40 00 call %i1 <== NOT EXECUTED
2006bb4: 92 12 62 b0 or %o1, 0x2b0, %o1 ! 20642b0 <write_test_string.7990+0x470><== NOT EXECUTED
(*print)( context,
2006bb8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2006bbc: 13 00 81 90 sethi %hi(0x2064000), %o1 <== NOT EXECUTED
2006bc0: 9f c6 40 00 call %i1 <== NOT EXECUTED
2006bc4: 92 12 62 c8 or %o1, 0x2c8, %o1 ! 20642c8 <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 );
2006bc8: 11 00 80 1a sethi %hi(0x2006800), %o0 <== NOT EXECUTED
2006bcc: 40 00 20 80 call 200edcc <rtems_iterate_over_all_threads> <== NOT EXECUTED
2006bd0: 90 12 22 08 or %o0, 0x208, %o0 ! 2006a08 <Stack_check_Dump_threads_usage><== NOT EXECUTED
/* dump interrupt stack info if any */
Stack_check_Dump_threads_usage((Thread_Control *) -1);
2006bd4: 7f ff ff 8d call 2006a08 <Stack_check_Dump_threads_usage> <== NOT EXECUTED
2006bd8: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
print_context = NULL;
2006bdc: c0 24 61 5c clr [ %l1 + 0x15c ] <== NOT EXECUTED
print_handler = NULL;
2006be0: c0 24 21 60 clr [ %l0 + 0x160 ] <== NOT EXECUTED
}
2006be4: 81 c7 e0 08 ret <== NOT EXECUTED
2006be8: 81 e8 00 00 restore <== NOT EXECUTED
02006d38 <rtems_stack_checker_switch_extension>:
*/
void rtems_stack_checker_switch_extension(
Thread_Control *running __attribute__((unused)),
Thread_Control *heir __attribute__((unused))
)
{
2006d38: 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;
2006d3c: c2 06 20 c4 ld [ %i0 + 0xc4 ], %g1
)
{
#if defined(__GNUC__)
void *sp = __builtin_frame_address(0);
if ( sp < the_stack->area ) {
2006d40: 80 a7 80 01 cmp %fp, %g1
2006d44: 0a 80 00 07 bcs 2006d60 <rtems_stack_checker_switch_extension+0x28><== NEVER TAKEN
2006d48: 90 00 60 08 add %g1, 8, %o0
void rtems_stack_checker_switch_extension(
Thread_Control *running __attribute__((unused)),
Thread_Control *heir __attribute__((unused))
)
{
Stack_Control *the_stack = &running->Start.Initial_stack;
2006d4c: c4 06 20 c0 ld [ %i0 + 0xc0 ], %g2
2006d50: 82 00 40 02 add %g1, %g2, %g1
2006d54: 80 a7 80 01 cmp %fp, %g1
2006d58: 28 80 00 0b bleu,a 2006d84 <rtems_stack_checker_switch_extension+0x4c><== ALWAYS TAKEN
2006d5c: 13 00 81 cc sethi %hi(0x2073000), %o1
/*
* 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,
2006d60: 13 00 81 cc sethi %hi(0x2073000), %o1 <== NOT EXECUTED
2006d64: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED
2006d68: 40 01 14 d2 call 204c0b0 <memcmp> <== NOT EXECUTED
2006d6c: 92 12 60 b8 or %o1, 0xb8, %o1 <== NOT EXECUTED
2006d70: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
2006d74: b2 60 3f ff subx %g0, -1, %i1 <== NOT EXECUTED
(void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
if ( !sp_ok || !pattern_ok ) {
Stack_check_report_blown_task( running, pattern_ok );
2006d78: b2 0e 60 01 and %i1, 1, %i1 <== NOT EXECUTED
2006d7c: 7f ff ff a3 call 2006c08 <Stack_check_report_blown_task>
2006d80: 81 e8 00 00 restore
/*
* 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,
2006d84: 94 10 20 10 mov 0x10, %o2
2006d88: 92 12 60 b8 or %o1, 0xb8, %o1
2006d8c: 40 01 14 c9 call 204c0b0 <memcmp>
2006d90: b2 10 20 00 clr %i1
(void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
if ( !sp_ok || !pattern_ok ) {
2006d94: 80 a2 20 00 cmp %o0, 0
2006d98: 12 bf ff f9 bne 2006d7c <rtems_stack_checker_switch_extension+0x44>
2006d9c: b2 0e 60 01 and %i1, 1, %i1
2006da0: 81 c7 e0 08 ret
2006da4: 81 e8 00 00 restore
0200cb20 <rtems_string_to_double>:
rtems_status_code rtems_string_to_double (
const char *s,
double *n,
char **endptr
)
{
200cb20: 9d e3 bf 90 save %sp, -112, %sp
200cb24: a0 10 00 18 mov %i0, %l0
double result;
char *end;
if ( !n )
200cb28: 80 a6 60 00 cmp %i1, 0
200cb2c: 02 80 00 2d be 200cbe0 <rtems_string_to_double+0xc0>
200cb30: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
200cb34: 40 00 0a 81 call 200f538 <__errno>
200cb38: 01 00 00 00 nop
*n = 0;
result = strtod( s, &end );
200cb3c: 92 07 bf fc add %fp, -4, %o1
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
200cb40: c0 22 00 00 clr [ %o0 ]
*n = 0;
200cb44: c0 26 40 00 clr [ %i1 ]
200cb48: c0 26 60 04 clr [ %i1 + 4 ]
result = strtod( s, &end );
200cb4c: 40 00 15 fa call 2012334 <strtod>
200cb50: 90 10 00 10 mov %l0, %o0
if ( endptr )
200cb54: 80 a6 a0 00 cmp %i2, 0
200cb58: 02 80 00 03 be 200cb64 <rtems_string_to_double+0x44>
200cb5c: c2 07 bf fc ld [ %fp + -4 ], %g1
*endptr = end;
200cb60: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
200cb64: 80 a0 40 10 cmp %g1, %l0
200cb68: 02 80 00 1e be 200cbe0 <rtems_string_to_double+0xc0>
200cb6c: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200cb70: c1 27 bf f4 st %f0, [ %fp + -12 ]
200cb74: 40 00 0a 71 call 200f538 <__errno>
200cb78: c3 27 bf f0 st %f1, [ %fp + -16 ]
200cb7c: c2 02 00 00 ld [ %o0 ], %g1
200cb80: c1 07 bf f4 ld [ %fp + -12 ], %f0
200cb84: 80 a0 60 22 cmp %g1, 0x22
200cb88: 02 80 00 05 be 200cb9c <rtems_string_to_double+0x7c>
200cb8c: c3 07 bf f0 ld [ %fp + -16 ], %f1
(( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
return RTEMS_INVALID_NUMBER;
*n = result;
200cb90: c1 3e 40 00 std %f0, [ %i1 ]
return RTEMS_SUCCESSFUL;
200cb94: 81 c7 e0 08 ret
200cb98: 91 e8 20 00 restore %g0, 0, %o0
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200cb9c: 03 00 80 78 sethi %hi(0x201e000), %g1
200cba0: d1 18 62 e0 ldd [ %g1 + 0x2e0 ], %f8 ! 201e2e0 <_CPU_Trap_slot_template+0x14>
200cba4: 81 a8 0a 48 fcmpd %f0, %f8
200cba8: 01 00 00 00 nop
200cbac: 13 80 00 0c fbe 200cbdc <rtems_string_to_double+0xbc>
200cbb0: 03 00 80 78 sethi %hi(0x201e000), %g1
200cbb4: d1 18 62 e8 ldd [ %g1 + 0x2e8 ], %f8 ! 201e2e8 <_CPU_Trap_slot_template+0x1c>
200cbb8: 81 a8 0a c8 fcmped %f0, %f8
200cbbc: 01 00 00 00 nop
200cbc0: 0d 80 00 07 fbg 200cbdc <rtems_string_to_double+0xbc>
200cbc4: 03 00 80 78 sethi %hi(0x201e000), %g1
200cbc8: d1 18 62 f0 ldd [ %g1 + 0x2f0 ], %f8 ! 201e2f0 <_CPU_Trap_slot_template+0x24><== NOT EXECUTED
200cbcc: 81 a8 0a c8 fcmped %f0, %f8 <== NOT EXECUTED
200cbd0: 01 00 00 00 nop <== NOT EXECUTED
200cbd4: 19 bf ff ef fbuge 200cb90 <rtems_string_to_double+0x70> <== NOT EXECUTED
200cbd8: 01 00 00 00 nop <== NOT EXECUTED
(( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
return RTEMS_INVALID_NUMBER;
*n = result;
return RTEMS_SUCCESSFUL;
200cbdc: b0 10 20 0a mov 0xa, %i0 ! a <PROM_START+0xa>
}
200cbe0: 81 c7 e0 08 ret
200cbe4: 81 e8 00 00 restore
0200cbe8 <rtems_string_to_float>:
rtems_status_code rtems_string_to_float (
const char *s,
float *n,
char **endptr
)
{
200cbe8: 9d e3 bf 90 save %sp, -112, %sp
200cbec: a0 10 00 18 mov %i0, %l0
float result;
char *end;
if ( !n )
200cbf0: 80 a6 60 00 cmp %i1, 0
200cbf4: 02 80 00 2a be 200cc9c <rtems_string_to_float+0xb4>
200cbf8: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
200cbfc: 40 00 0a 4f call 200f538 <__errno>
200cc00: 01 00 00 00 nop
*n = 0;
result = strtof( s, &end );
200cc04: 92 07 bf fc add %fp, -4, %o1
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
200cc08: c0 22 00 00 clr [ %o0 ]
*n = 0;
200cc0c: c0 26 40 00 clr [ %i1 ]
result = strtof( s, &end );
200cc10: 40 00 15 b4 call 20122e0 <strtof>
200cc14: 90 10 00 10 mov %l0, %o0
if ( endptr )
200cc18: 80 a6 a0 00 cmp %i2, 0
200cc1c: 02 80 00 03 be 200cc28 <rtems_string_to_float+0x40>
200cc20: c2 07 bf fc ld [ %fp + -4 ], %g1
*endptr = end;
200cc24: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
200cc28: 80 a0 40 10 cmp %g1, %l0
200cc2c: 02 80 00 1c be 200cc9c <rtems_string_to_float+0xb4>
200cc30: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200cc34: 40 00 0a 41 call 200f538 <__errno>
200cc38: c1 27 bf f4 st %f0, [ %fp + -12 ]
200cc3c: c2 02 00 00 ld [ %o0 ], %g1
200cc40: 80 a0 60 22 cmp %g1, 0x22
200cc44: 02 80 00 05 be 200cc58 <rtems_string_to_float+0x70>
200cc48: c1 07 bf f4 ld [ %fp + -12 ], %f0
(( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
return RTEMS_INVALID_NUMBER;
*n = result;
200cc4c: c1 26 40 00 st %f0, [ %i1 ]
return RTEMS_SUCCESSFUL;
200cc50: 81 c7 e0 08 ret
200cc54: 91 e8 20 00 restore %g0, 0, %o0
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200cc58: 03 00 80 78 sethi %hi(0x201e000), %g1
200cc5c: d1 00 62 f8 ld [ %g1 + 0x2f8 ], %f8 ! 201e2f8 <_CPU_Trap_slot_template+0x2c>
200cc60: 81 a8 0a 28 fcmps %f0, %f8
200cc64: 01 00 00 00 nop
200cc68: 13 80 00 0c fbe 200cc98 <rtems_string_to_float+0xb0>
200cc6c: 03 00 80 78 sethi %hi(0x201e000), %g1
200cc70: d1 00 62 fc ld [ %g1 + 0x2fc ], %f8 ! 201e2fc <_CPU_Trap_slot_template+0x30>
200cc74: 81 a8 0a a8 fcmpes %f0, %f8
200cc78: 01 00 00 00 nop
200cc7c: 0d 80 00 07 fbg 200cc98 <rtems_string_to_float+0xb0>
200cc80: 03 00 80 78 sethi %hi(0x201e000), %g1
200cc84: d1 00 63 00 ld [ %g1 + 0x300 ], %f8 ! 201e300 <_CPU_Trap_slot_template+0x34><== NOT EXECUTED
200cc88: 81 a8 0a a8 fcmpes %f0, %f8 <== NOT EXECUTED
200cc8c: 01 00 00 00 nop <== NOT EXECUTED
200cc90: 19 bf ff ef fbuge 200cc4c <rtems_string_to_float+0x64> <== NOT EXECUTED
200cc94: 01 00 00 00 nop <== NOT EXECUTED
(( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
return RTEMS_INVALID_NUMBER;
*n = result;
return RTEMS_SUCCESSFUL;
200cc98: b0 10 20 0a mov 0xa, %i0 ! a <PROM_START+0xa>
}
200cc9c: 81 c7 e0 08 ret
200cca0: 81 e8 00 00 restore
02021a44 <rtems_string_to_int>:
const char *s,
int *n,
char **endptr,
int base
)
{
2021a44: 9d e3 bf 98 save %sp, -104, %sp
2021a48: a0 10 00 18 mov %i0, %l0
long result;
char *end;
if ( !n )
2021a4c: 80 a6 60 00 cmp %i1, 0
2021a50: 02 80 00 19 be 2021ab4 <rtems_string_to_int+0x70>
2021a54: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
2021a58: 40 00 9c 7b call 2048c44 <__errno>
2021a5c: 01 00 00 00 nop
2021a60: c0 22 00 00 clr [ %o0 ]
*n = 0;
2021a64: c0 26 40 00 clr [ %i1 ]
result = strtol( s, &end, base );
2021a68: 94 10 00 1b mov %i3, %o2
2021a6c: 90 10 00 10 mov %l0, %o0
2021a70: 40 00 bc 9a call 2050cd8 <strtol>
2021a74: 92 07 bf fc add %fp, -4, %o1
if ( endptr )
2021a78: 80 a6 a0 00 cmp %i2, 0
2021a7c: 02 80 00 20 be 2021afc <rtems_string_to_int+0xb8>
2021a80: a2 10 00 08 mov %o0, %l1
*endptr = end;
2021a84: c2 07 bf fc ld [ %fp + -4 ], %g1
2021a88: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
2021a8c: 80 a0 40 10 cmp %g1, %l0
2021a90: 02 80 00 09 be 2021ab4 <rtems_string_to_int+0x70>
2021a94: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
2021a98: 40 00 9c 6b call 2048c44 <__errno>
2021a9c: 01 00 00 00 nop
2021aa0: c2 02 00 00 ld [ %o0 ], %g1
2021aa4: 80 a0 60 22 cmp %g1, 0x22
2021aa8: 02 80 00 05 be 2021abc <rtems_string_to_int+0x78>
2021aac: b0 10 20 00 clr %i0
errno = ERANGE;
return RTEMS_INVALID_NUMBER;
}
#endif
*n = result;
2021ab0: e2 26 40 00 st %l1, [ %i1 ]
return RTEMS_SUCCESSFUL;
2021ab4: 81 c7 e0 08 ret
2021ab8: 81 e8 00 00 restore
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
2021abc: 03 1f ff ff sethi %hi(0x7ffffc00), %g1
2021ac0: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff <RAM_END+0x7dbfffff>
2021ac4: 80 a4 40 01 cmp %l1, %g1
2021ac8: 12 80 00 05 bne 2021adc <rtems_string_to_int+0x98> <== NEVER TAKEN
2021acc: 80 a4 60 00 cmp %l1, 0
}
#endif
*n = result;
return RTEMS_SUCCESSFUL;
2021ad0: b0 10 20 0a mov 0xa, %i0
}
2021ad4: 81 c7 e0 08 ret
2021ad8: 81 e8 00 00 restore
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
2021adc: 02 bf ff fd be 2021ad0 <rtems_string_to_int+0x8c> <== NOT EXECUTED
2021ae0: 03 20 00 00 sethi %hi(0x80000000), %g1 <== NOT EXECUTED
2021ae4: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
2021ae8: 22 bf ff f3 be,a 2021ab4 <rtems_string_to_int+0x70> <== NOT EXECUTED
2021aec: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED
errno = ERANGE;
return RTEMS_INVALID_NUMBER;
}
#endif
*n = result;
2021af0: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
2021af4: 81 c7 e0 08 ret <== NOT EXECUTED
2021af8: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
2021afc: 10 bf ff e4 b 2021a8c <rtems_string_to_int+0x48>
2021b00: c2 07 bf fc ld [ %fp + -4 ], %g1
0200ce48 <rtems_string_to_long>:
const char *s,
long *n,
char **endptr,
int base
)
{
200ce48: 9d e3 bf 98 save %sp, -104, %sp
200ce4c: a0 10 00 18 mov %i0, %l0
long result;
char *end;
if ( !n )
200ce50: 80 a6 60 00 cmp %i1, 0
200ce54: 02 80 00 19 be 200ceb8 <rtems_string_to_long+0x70>
200ce58: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
200ce5c: 40 00 09 b7 call 200f538 <__errno>
200ce60: 01 00 00 00 nop
*n = 0;
result = strtol( s, &end, base );
200ce64: 94 10 00 1b mov %i3, %o2
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
200ce68: c0 22 00 00 clr [ %o0 ]
*n = 0;
200ce6c: c0 26 40 00 clr [ %i1 ]
result = strtol( s, &end, base );
200ce70: 90 10 00 10 mov %l0, %o0
200ce74: 40 00 15 bb call 2012560 <strtol>
200ce78: 92 07 bf fc add %fp, -4, %o1
if ( endptr )
200ce7c: 80 a6 a0 00 cmp %i2, 0
200ce80: 02 80 00 20 be 200cf00 <rtems_string_to_long+0xb8>
200ce84: a2 10 00 08 mov %o0, %l1
*endptr = end;
200ce88: c2 07 bf fc ld [ %fp + -4 ], %g1
200ce8c: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
200ce90: 80 a0 40 10 cmp %g1, %l0
200ce94: 02 80 00 09 be 200ceb8 <rtems_string_to_long+0x70>
200ce98: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200ce9c: 40 00 09 a7 call 200f538 <__errno>
200cea0: 01 00 00 00 nop
200cea4: c2 02 00 00 ld [ %o0 ], %g1
200cea8: 80 a0 60 22 cmp %g1, 0x22
200ceac: 02 80 00 05 be 200cec0 <rtems_string_to_long+0x78>
200ceb0: b0 10 20 00 clr %i0
(( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
return RTEMS_INVALID_NUMBER;
*n = result;
200ceb4: e2 26 40 00 st %l1, [ %i1 ]
return RTEMS_SUCCESSFUL;
200ceb8: 81 c7 e0 08 ret
200cebc: 81 e8 00 00 restore
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200cec0: 03 1f ff ff sethi %hi(0x7ffffc00), %g1
200cec4: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff <RAM_END+0x7dbfffff>
200cec8: 80 a4 40 01 cmp %l1, %g1
200cecc: 12 80 00 05 bne 200cee0 <rtems_string_to_long+0x98>
200ced0: 80 a4 60 00 cmp %l1, 0
(( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
return RTEMS_INVALID_NUMBER;
*n = result;
return RTEMS_SUCCESSFUL;
200ced4: b0 10 20 0a mov 0xa, %i0
}
200ced8: 81 c7 e0 08 ret
200cedc: 81 e8 00 00 restore
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200cee0: 02 bf ff fd be 200ced4 <rtems_string_to_long+0x8c> <== NEVER TAKEN
200cee4: 03 20 00 00 sethi %hi(0x80000000), %g1
200cee8: 80 a4 40 01 cmp %l1, %g1
200ceec: 22 bf ff f3 be,a 200ceb8 <rtems_string_to_long+0x70> <== ALWAYS TAKEN
200cef0: b0 10 20 0a mov 0xa, %i0
(( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
return RTEMS_INVALID_NUMBER;
*n = result;
200cef4: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
200cef8: 81 c7 e0 08 ret <== NOT EXECUTED
200cefc: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
200cf00: 10 bf ff e4 b 200ce90 <rtems_string_to_long+0x48>
200cf04: c2 07 bf fc ld [ %fp + -4 ], %g1
0200cd64 <rtems_string_to_long_long>:
const char *s,
long long *n,
char **endptr,
int base
)
{
200cd64: 9d e3 bf 98 save %sp, -104, %sp
200cd68: a0 10 00 18 mov %i0, %l0
long long result;
char *end;
if ( !n )
200cd6c: 80 a6 60 00 cmp %i1, 0
200cd70: 02 80 00 26 be 200ce08 <rtems_string_to_long_long+0xa4>
200cd74: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
200cd78: 40 00 09 f0 call 200f538 <__errno>
200cd7c: 01 00 00 00 nop
*n = 0;
result = strtoll( s, &end, base );
200cd80: 94 10 00 1b mov %i3, %o2
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
200cd84: c0 22 00 00 clr [ %o0 ]
*n = 0;
200cd88: c0 26 40 00 clr [ %i1 ]
200cd8c: c0 26 60 04 clr [ %i1 + 4 ]
result = strtoll( s, &end, base );
200cd90: 90 10 00 10 mov %l0, %o0
200cd94: 40 00 15 fd call 2012588 <strtoll>
200cd98: 92 07 bf fc add %fp, -4, %o1
if ( endptr )
200cd9c: 80 a6 a0 00 cmp %i2, 0
return RTEMS_INVALID_ADDRESS;
errno = 0;
*n = 0;
result = strtoll( s, &end, base );
200cda0: a2 10 00 08 mov %o0, %l1
if ( endptr )
200cda4: 02 80 00 27 be 200ce40 <rtems_string_to_long_long+0xdc>
200cda8: b6 10 00 09 mov %o1, %i3
*endptr = end;
200cdac: c2 07 bf fc ld [ %fp + -4 ], %g1
200cdb0: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
200cdb4: 80 a0 40 10 cmp %g1, %l0
200cdb8: 02 80 00 14 be 200ce08 <rtems_string_to_long_long+0xa4>
200cdbc: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200cdc0: 40 00 09 de call 200f538 <__errno>
200cdc4: 01 00 00 00 nop
200cdc8: c2 02 00 00 ld [ %o0 ], %g1
200cdcc: 80 a0 60 22 cmp %g1, 0x22
200cdd0: 02 80 00 06 be 200cde8 <rtems_string_to_long_long+0x84>
200cdd4: 03 1f ff ff sethi %hi(0x7ffffc00), %g1
(( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
return RTEMS_INVALID_NUMBER;
*n = result;
200cdd8: f6 26 60 04 st %i3, [ %i1 + 4 ]
200cddc: e2 26 40 00 st %l1, [ %i1 ]
return RTEMS_SUCCESSFUL;
200cde0: 81 c7 e0 08 ret
200cde4: 91 e8 20 00 restore %g0, 0, %o0
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200cde8: 82 10 63 ff or %g1, 0x3ff, %g1
200cdec: 80 a4 40 01 cmp %l1, %g1
200cdf0: 02 80 00 10 be 200ce30 <rtems_string_to_long_long+0xcc>
200cdf4: 80 a6 ff ff cmp %i3, -1
200cdf8: 80 94 40 1b orcc %l1, %i3, %g0
200cdfc: 12 80 00 05 bne 200ce10 <rtems_string_to_long_long+0xac> <== ALWAYS TAKEN
200ce00: 03 20 00 00 sethi %hi(0x80000000), %g1
(( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
return RTEMS_INVALID_NUMBER;
*n = result;
return RTEMS_SUCCESSFUL;
200ce04: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED
}
200ce08: 81 c7 e0 08 ret
200ce0c: 81 e8 00 00 restore
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200ce10: 80 a4 40 01 cmp %l1, %g1
200ce14: 32 bf ff f2 bne,a 200cddc <rtems_string_to_long_long+0x78><== NEVER TAKEN
200ce18: f6 26 60 04 st %i3, [ %i1 + 4 ] <== NOT EXECUTED
200ce1c: 80 a6 e0 00 cmp %i3, 0
200ce20: 32 bf ff ef bne,a 200cddc <rtems_string_to_long_long+0x78><== NEVER TAKEN
200ce24: f6 26 60 04 st %i3, [ %i1 + 4 ] <== NOT EXECUTED
(( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
return RTEMS_INVALID_NUMBER;
*n = result;
return RTEMS_SUCCESSFUL;
200ce28: 81 c7 e0 08 ret
200ce2c: 91 e8 20 0a restore %g0, 0xa, %o0
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200ce30: 12 bf ff f3 bne 200cdfc <rtems_string_to_long_long+0x98> <== NEVER TAKEN
200ce34: 80 94 40 1b orcc %l1, %i3, %g0
(( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
return RTEMS_INVALID_NUMBER;
*n = result;
return RTEMS_SUCCESSFUL;
200ce38: 81 c7 e0 08 ret
200ce3c: 91 e8 20 0a restore %g0, 0xa, %o0
200ce40: 10 bf ff dd b 200cdb4 <rtems_string_to_long_long+0x50>
200ce44: c2 07 bf fc ld [ %fp + -4 ], %g1
02021b18 <rtems_string_to_unsigned_char>:
const char *s,
unsigned char *n,
char **endptr,
int base
)
{
2021b18: 9d e3 bf 98 save %sp, -104, %sp
2021b1c: a0 10 00 18 mov %i0, %l0
unsigned long result;
char *end;
if ( !n )
2021b20: 80 a6 60 00 cmp %i1, 0
2021b24: 02 80 00 28 be 2021bc4 <rtems_string_to_unsigned_char+0xac>
2021b28: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
2021b2c: 40 00 9c 46 call 2048c44 <__errno>
2021b30: 01 00 00 00 nop
2021b34: c0 22 00 00 clr [ %o0 ]
*n = 0;
2021b38: c0 2e 40 00 clrb [ %i1 ]
result = strtoul( s, &end, base );
2021b3c: 94 10 00 1b mov %i3, %o2
2021b40: 90 10 00 10 mov %l0, %o0
2021b44: 40 00 bd 9d call 20511b8 <strtoul>
2021b48: 92 07 bf fc add %fp, -4, %o1
if ( endptr )
2021b4c: 80 a6 a0 00 cmp %i2, 0
2021b50: 02 80 00 1f be 2021bcc <rtems_string_to_unsigned_char+0xb4>
2021b54: a2 10 00 08 mov %o0, %l1
*endptr = end;
2021b58: c2 07 bf fc ld [ %fp + -4 ], %g1
2021b5c: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
2021b60: 80 a0 40 10 cmp %g1, %l0
2021b64: 02 80 00 18 be 2021bc4 <rtems_string_to_unsigned_char+0xac>
2021b68: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
2021b6c: 40 00 9c 36 call 2048c44 <__errno>
2021b70: 01 00 00 00 nop
2021b74: c2 02 00 00 ld [ %o0 ], %g1
2021b78: 80 a0 60 22 cmp %g1, 0x22
2021b7c: 02 80 00 07 be 2021b98 <rtems_string_to_unsigned_char+0x80><== NEVER TAKEN
2021b80: 80 a4 60 ff cmp %l1, 0xff
(( result == 0 ) || ( result == ULONG_MAX )))
return RTEMS_INVALID_NUMBER;
#if (UCHAR_MAX < ULONG_MAX)
if ( result > UCHAR_MAX ) {
2021b84: 18 80 00 0c bgu 2021bb4 <rtems_string_to_unsigned_char+0x9c><== NEVER TAKEN
2021b88: 01 00 00 00 nop
errno = ERANGE;
return RTEMS_INVALID_NUMBER;
}
#endif
*n = result;
2021b8c: e2 2e 40 00 stb %l1, [ %i1 ]
return RTEMS_SUCCESSFUL;
}
2021b90: 81 c7 e0 08 ret
2021b94: 91 e8 20 00 restore %g0, 0, %o0
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
2021b98: 82 04 7f ff add %l1, -1, %g1 <== NOT EXECUTED
2021b9c: 80 a0 7f fd cmp %g1, -3 <== NOT EXECUTED
2021ba0: 18 80 00 09 bgu 2021bc4 <rtems_string_to_unsigned_char+0xac><== NOT EXECUTED
2021ba4: 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 ) {
2021ba8: 80 a4 60 ff cmp %l1, 0xff <== NOT EXECUTED
2021bac: 28 bf ff f9 bleu,a 2021b90 <rtems_string_to_unsigned_char+0x78><== NOT EXECUTED
2021bb0: e2 2e 40 00 stb %l1, [ %i1 ] <== NOT EXECUTED
errno = ERANGE;
2021bb4: 40 00 9c 24 call 2048c44 <__errno> <== NOT EXECUTED
2021bb8: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED
2021bbc: 82 10 20 22 mov 0x22, %g1 <== NOT EXECUTED
2021bc0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
2021bc4: 81 c7 e0 08 ret
2021bc8: 81 e8 00 00 restore
2021bcc: 10 bf ff e5 b 2021b60 <rtems_string_to_unsigned_char+0x48>
2021bd0: c2 07 bf fc ld [ %fp + -4 ], %g1
0200cfd8 <rtems_string_to_unsigned_int>:
const char *s,
unsigned int *n,
char **endptr,
int base
)
{
200cfd8: 9d e3 bf 98 save %sp, -104, %sp
200cfdc: a0 10 00 18 mov %i0, %l0
unsigned long result;
char *end;
if ( !n )
200cfe0: 80 a6 60 00 cmp %i1, 0
200cfe4: 02 80 00 19 be 200d048 <rtems_string_to_unsigned_int+0x70>
200cfe8: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
200cfec: 40 00 09 53 call 200f538 <__errno>
200cff0: 01 00 00 00 nop
200cff4: c0 22 00 00 clr [ %o0 ]
*n = 0;
result = strtoul( s, &end, base );
200cff8: 94 10 00 1b mov %i3, %o2
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
*n = 0;
200cffc: c0 26 40 00 clr [ %i1 ]
result = strtoul( s, &end, base );
200d000: 90 10 00 10 mov %l0, %o0
200d004: 40 00 16 8f call 2012a40 <strtoul>
200d008: 92 07 bf fc add %fp, -4, %o1
if ( endptr )
200d00c: 80 a6 a0 00 cmp %i2, 0
200d010: 02 80 00 17 be 200d06c <rtems_string_to_unsigned_int+0x94>
200d014: b6 10 00 08 mov %o0, %i3
*endptr = end;
200d018: c2 07 bf fc ld [ %fp + -4 ], %g1
200d01c: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
200d020: 80 a0 40 10 cmp %g1, %l0
200d024: 02 80 00 09 be 200d048 <rtems_string_to_unsigned_int+0x70>
200d028: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200d02c: 40 00 09 43 call 200f538 <__errno>
200d030: 01 00 00 00 nop
200d034: c2 02 00 00 ld [ %o0 ], %g1
200d038: 80 a0 60 22 cmp %g1, 0x22
200d03c: 02 80 00 05 be 200d050 <rtems_string_to_unsigned_int+0x78>
200d040: b0 10 20 00 clr %i0
errno = ERANGE;
return RTEMS_INVALID_NUMBER;
}
#endif
*n = result;
200d044: f6 26 40 00 st %i3, [ %i1 ]
return RTEMS_SUCCESSFUL;
}
200d048: 81 c7 e0 08 ret
200d04c: 81 e8 00 00 restore
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200d050: 82 06 ff ff add %i3, -1, %g1
200d054: 80 a0 7f fd cmp %g1, -3
200d058: 18 bf ff fc bgu 200d048 <rtems_string_to_unsigned_int+0x70><== ALWAYS TAKEN
200d05c: b0 10 20 0a mov 0xa, %i0
errno = ERANGE;
return RTEMS_INVALID_NUMBER;
}
#endif
*n = result;
200d060: f6 26 40 00 st %i3, [ %i1 ] <== NOT EXECUTED
200d064: 81 c7 e0 08 ret <== NOT EXECUTED
200d068: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
200d06c: 10 bf ff ed b 200d020 <rtems_string_to_unsigned_int+0x48>
200d070: c2 07 bf fc ld [ %fp + -4 ], %g1
02021bd4 <rtems_string_to_unsigned_long>:
const char *s,
unsigned long *n,
char **endptr,
int base
)
{
2021bd4: 9d e3 bf 98 save %sp, -104, %sp
2021bd8: a0 10 00 18 mov %i0, %l0
unsigned long result;
char *end;
if ( !n )
2021bdc: 80 a6 60 00 cmp %i1, 0
2021be0: 02 80 00 19 be 2021c44 <rtems_string_to_unsigned_long+0x70>
2021be4: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
2021be8: 40 00 9c 17 call 2048c44 <__errno>
2021bec: 01 00 00 00 nop
*n = 0;
result = strtoul( s, &end, base );
2021bf0: 94 10 00 1b mov %i3, %o2
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
2021bf4: c0 22 00 00 clr [ %o0 ]
*n = 0;
2021bf8: c0 26 40 00 clr [ %i1 ]
result = strtoul( s, &end, base );
2021bfc: 90 10 00 10 mov %l0, %o0
2021c00: 40 00 bd 6e call 20511b8 <strtoul>
2021c04: 92 07 bf fc add %fp, -4, %o1
if ( endptr )
2021c08: 80 a6 a0 00 cmp %i2, 0
2021c0c: 02 80 00 17 be 2021c68 <rtems_string_to_unsigned_long+0x94>
2021c10: b6 10 00 08 mov %o0, %i3
*endptr = end;
2021c14: c2 07 bf fc ld [ %fp + -4 ], %g1
2021c18: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
2021c1c: 80 a0 40 10 cmp %g1, %l0
2021c20: 02 80 00 09 be 2021c44 <rtems_string_to_unsigned_long+0x70>
2021c24: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
2021c28: 40 00 9c 07 call 2048c44 <__errno>
2021c2c: 01 00 00 00 nop
2021c30: c2 02 00 00 ld [ %o0 ], %g1
2021c34: 80 a0 60 22 cmp %g1, 0x22
2021c38: 02 80 00 05 be 2021c4c <rtems_string_to_unsigned_long+0x78>
2021c3c: b0 10 20 00 clr %i0
(( result == 0 ) || ( result == ULONG_MAX )))
return RTEMS_INVALID_NUMBER;
*n = result;
2021c40: f6 26 40 00 st %i3, [ %i1 ]
return RTEMS_SUCCESSFUL;
}
2021c44: 81 c7 e0 08 ret
2021c48: 81 e8 00 00 restore
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
2021c4c: 82 06 ff ff add %i3, -1, %g1
2021c50: 80 a0 7f fd cmp %g1, -3
2021c54: 18 bf ff fc bgu 2021c44 <rtems_string_to_unsigned_long+0x70><== ALWAYS TAKEN
2021c58: b0 10 20 0a mov 0xa, %i0
(( result == 0 ) || ( result == ULONG_MAX )))
return RTEMS_INVALID_NUMBER;
*n = result;
2021c5c: f6 26 40 00 st %i3, [ %i1 ] <== NOT EXECUTED
2021c60: 81 c7 e0 08 ret <== NOT EXECUTED
2021c64: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
2021c68: 10 bf ff ed b 2021c1c <rtems_string_to_unsigned_long+0x48>
2021c6c: c2 07 bf fc ld [ %fp + -4 ], %g1
0200d074 <rtems_string_to_unsigned_long_long>:
const char *s,
unsigned long long *n,
char **endptr,
int base
)
{
200d074: 9d e3 bf 98 save %sp, -104, %sp
200d078: a0 10 00 18 mov %i0, %l0
unsigned long long result;
char *end;
if ( !n )
200d07c: 80 a6 60 00 cmp %i1, 0
200d080: 02 80 00 1c be 200d0f0 <rtems_string_to_unsigned_long_long+0x7c>
200d084: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
200d088: 40 00 09 2c call 200f538 <__errno>
200d08c: 01 00 00 00 nop
*n = 0;
result = strtoull( s, &end, base );
200d090: 94 10 00 1b mov %i3, %o2
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
200d094: c0 22 00 00 clr [ %o0 ]
*n = 0;
200d098: c0 26 40 00 clr [ %i1 ]
200d09c: c0 26 60 04 clr [ %i1 + 4 ]
result = strtoull( s, &end, base );
200d0a0: 90 10 00 10 mov %l0, %o0
200d0a4: 40 00 16 71 call 2012a68 <strtoull>
200d0a8: 92 07 bf fc add %fp, -4, %o1
if ( endptr )
200d0ac: 80 a6 a0 00 cmp %i2, 0
return RTEMS_INVALID_ADDRESS;
errno = 0;
*n = 0;
result = strtoull( s, &end, base );
200d0b0: a4 10 00 08 mov %o0, %l2
if ( endptr )
200d0b4: 02 80 00 1b be 200d120 <rtems_string_to_unsigned_long_long+0xac>
200d0b8: a6 10 00 09 mov %o1, %l3
*endptr = end;
200d0bc: c2 07 bf fc ld [ %fp + -4 ], %g1
200d0c0: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
200d0c4: 80 a0 40 10 cmp %g1, %l0
200d0c8: 02 80 00 0a be 200d0f0 <rtems_string_to_unsigned_long_long+0x7c>
200d0cc: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200d0d0: 40 00 09 1a call 200f538 <__errno>
200d0d4: 01 00 00 00 nop
200d0d8: c2 02 00 00 ld [ %o0 ], %g1
200d0dc: 80 a0 60 22 cmp %g1, 0x22
200d0e0: 02 80 00 06 be 200d0f8 <rtems_string_to_unsigned_long_long+0x84>
200d0e4: 86 84 ff ff addcc %l3, -1, %g3
(( result == 0 ) || ( result == ULONG_LONG_MAX )))
return RTEMS_INVALID_NUMBER;
*n = result;
200d0e8: e4 3e 40 00 std %l2, [ %i1 ]
200d0ec: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
}
200d0f0: 81 c7 e0 08 ret
200d0f4: 81 e8 00 00 restore
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200d0f8: 84 44 bf ff addx %l2, -1, %g2
200d0fc: 80 a0 bf ff cmp %g2, -1
200d100: 32 bf ff fb bne,a 200d0ec <rtems_string_to_unsigned_long_long+0x78><== NEVER TAKEN
200d104: e4 3e 40 00 std %l2, [ %i1 ] <== NOT EXECUTED
200d108: 80 a0 ff fd cmp %g3, -3
200d10c: 18 bf ff f9 bgu 200d0f0 <rtems_string_to_unsigned_long_long+0x7c><== ALWAYS TAKEN
200d110: b0 10 20 0a mov 0xa, %i0
(( result == 0 ) || ( result == ULONG_LONG_MAX )))
return RTEMS_INVALID_NUMBER;
*n = result;
200d114: e4 3e 40 00 std %l2, [ %i1 ] <== NOT EXECUTED
200d118: 81 c7 e0 08 ret <== NOT EXECUTED
200d11c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
200d120: 10 bf ff e9 b 200d0c4 <rtems_string_to_unsigned_long_long+0x50>
200d124: c2 07 bf fc ld [ %fp + -4 ], %g1
0200fe00 <rtems_task_mode>:
rtems_status_code rtems_task_mode(
rtems_mode mode_set,
rtems_mode mask,
rtems_mode *previous_mode_set
)
{
200fe00: 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 )
200fe04: 80 a6 a0 00 cmp %i2, 0
200fe08: 02 80 00 44 be 200ff18 <rtems_task_mode+0x118>
200fe0c: 82 10 20 09 mov 9, %g1
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
200fe10: 03 00 80 77 sethi %hi(0x201dc00), %g1
200fe14: e0 00 60 70 ld [ %g1 + 0x70 ], %l0 ! 201dc70 <_Thread_Executing>
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
200fe18: c4 0c 20 75 ldub [ %l0 + 0x75 ], %g2
if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
200fe1c: 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;
200fe20: 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 ];
200fe24: e2 04 21 60 ld [ %l0 + 0x160 ], %l1
asr = &api->Signal;
old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
200fe28: a4 60 3f ff subx %g0, -1, %l2
if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
200fe2c: 80 a0 60 00 cmp %g1, 0
200fe30: 12 80 00 3c bne 200ff20 <rtems_task_mode+0x120>
200fe34: a5 2c a0 08 sll %l2, 8, %l2
if ( !previous_mode_set )
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
200fe38: c2 0c 60 08 ldub [ %l1 + 8 ], %g1
200fe3c: 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();
200fe40: 7f ff ea 81 call 200a844 <_CPU_ISR_Get_level>
200fe44: 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;
200fe48: 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;
200fe4c: a6 14 c0 08 or %l3, %o0, %l3
old_mode |= _ISR_Get_level();
*previous_mode_set = old_mode;
200fe50: a4 14 c0 12 or %l3, %l2, %l2
/*
* These are generic thread scheduling characteristics.
*/
if ( mask & RTEMS_PREEMPT_MASK )
200fe54: 80 8e 61 00 btst 0x100, %i1
200fe58: 02 80 00 06 be 200fe70 <rtems_task_mode+0x70>
200fe5c: e4 26 80 00 st %l2, [ %i2 ]
executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
200fe60: 83 36 20 08 srl %i0, 8, %g1
200fe64: 82 18 60 01 xor %g1, 1, %g1
200fe68: 82 08 60 01 and %g1, 1, %g1
200fe6c: c2 2c 20 75 stb %g1, [ %l0 + 0x75 ]
if ( mask & RTEMS_TIMESLICE_MASK ) {
200fe70: 80 8e 62 00 btst 0x200, %i1
200fe74: 02 80 00 0b be 200fea0 <rtems_task_mode+0xa0>
200fe78: 80 8e 60 0f btst 0xf, %i1
if ( _Modes_Is_timeslice(mode_set) ) {
200fe7c: 80 8e 22 00 btst 0x200, %i0
200fe80: 22 80 00 07 be,a 200fe9c <rtems_task_mode+0x9c>
200fe84: c0 24 20 7c clr [ %l0 + 0x7c ]
executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
200fe88: 03 00 80 76 sethi %hi(0x201d800), %g1
200fe8c: c2 00 63 08 ld [ %g1 + 0x308 ], %g1 ! 201db08 <_Thread_Ticks_per_timeslice>
200fe90: 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;
200fe94: 82 10 20 01 mov 1, %g1
200fe98: c2 24 20 7c st %g1, [ %l0 + 0x7c ]
/*
* Set the new interrupt level
*/
if ( mask & RTEMS_INTERRUPT_MASK )
200fe9c: 80 8e 60 0f btst 0xf, %i1
200fea0: 12 80 00 2d bne 200ff54 <rtems_task_mode+0x154>
200fea4: 01 00 00 00 nop
*/
is_asr_enabled = false;
needs_asr_dispatching = false;
if ( mask & RTEMS_ASR_MASK ) {
200fea8: 80 8e 64 00 btst 0x400, %i1
200feac: 22 80 00 16 be,a 200ff04 <rtems_task_mode+0x104>
200feb0: 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;
200feb4: 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(
200feb8: b1 36 20 0a srl %i0, 0xa, %i0
200febc: b0 1e 20 01 xor %i0, 1, %i0
200fec0: 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;
200fec4: 80 a0 40 18 cmp %g1, %i0
200fec8: 22 80 00 0f be,a 200ff04 <rtems_task_mode+0x104>
200fecc: a0 10 20 00 clr %l0
)
{
rtems_signal_set _signals;
ISR_Level _level;
_ISR_Disable( _level );
200fed0: 7f ff c8 75 call 20020a4 <sparc_disable_interrupts>
200fed4: f0 2c 60 08 stb %i0, [ %l1 + 8 ]
_signals = information->signals_pending;
200fed8: c4 04 60 18 ld [ %l1 + 0x18 ], %g2
information->signals_pending = information->signals_posted;
200fedc: c2 04 60 14 ld [ %l1 + 0x14 ], %g1
information->signals_posted = _signals;
200fee0: 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;
200fee4: c2 24 60 18 st %g1, [ %l1 + 0x18 ]
information->signals_posted = _signals;
_ISR_Enable( _level );
200fee8: 7f ff c8 73 call 20020b4 <sparc_enable_interrupts>
200feec: 01 00 00 00 nop
200fef0: c2 04 60 14 ld [ %l1 + 0x14 ], %g1
200fef4: 80 a0 60 00 cmp %g1, 0
200fef8: 12 80 00 28 bne 200ff98 <rtems_task_mode+0x198>
200fefc: 82 10 20 01 mov 1, %g1
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;
200ff00: a0 10 20 00 clr %l0
}
}
}
if ( _System_state_Is_up( _System_state_Get() ) )
200ff04: 03 00 80 77 sethi %hi(0x201dc00), %g1
200ff08: c2 00 61 50 ld [ %g1 + 0x150 ], %g1 ! 201dd50 <_System_state_Current>
200ff0c: 80 a0 60 03 cmp %g1, 3
200ff10: 02 80 00 16 be 200ff68 <rtems_task_mode+0x168> <== ALWAYS TAKEN
200ff14: 82 10 20 00 clr %g1
if ( _Thread_Evaluate_mode() || needs_asr_dispatching )
_Thread_Dispatch();
return RTEMS_SUCCESSFUL;
}
200ff18: 81 c7 e0 08 ret
200ff1c: 91 e8 00 01 restore %g0, %g1, %o0
if ( !previous_mode_set )
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
200ff20: c2 0c 60 08 ldub [ %l1 + 8 ], %g1
old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
old_mode |= RTEMS_NO_TIMESLICE;
else
old_mode |= RTEMS_TIMESLICE;
200ff24: 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;
200ff28: 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();
200ff2c: 7f ff ea 46 call 200a844 <_CPU_ISR_Get_level>
200ff30: 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;
200ff34: 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;
200ff38: a6 14 c0 08 or %l3, %o0, %l3
old_mode |= _ISR_Get_level();
*previous_mode_set = old_mode;
200ff3c: a4 14 c0 12 or %l3, %l2, %l2
/*
* These are generic thread scheduling characteristics.
*/
if ( mask & RTEMS_PREEMPT_MASK )
200ff40: 80 8e 61 00 btst 0x100, %i1
200ff44: 02 bf ff cb be 200fe70 <rtems_task_mode+0x70>
200ff48: e4 26 80 00 st %l2, [ %i2 ]
executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
200ff4c: 10 bf ff c6 b 200fe64 <rtems_task_mode+0x64>
200ff50: 83 36 20 08 srl %i0, 8, %g1
*/
RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level (
Modes_Control mode_set
)
{
_ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) );
200ff54: 90 0e 20 0f and %i0, 0xf, %o0
200ff58: 7f ff c8 57 call 20020b4 <sparc_enable_interrupts>
200ff5c: 91 2a 20 08 sll %o0, 8, %o0
*/
is_asr_enabled = false;
needs_asr_dispatching = false;
if ( mask & RTEMS_ASR_MASK ) {
200ff60: 10 bf ff d3 b 200feac <rtems_task_mode+0xac>
200ff64: 80 8e 64 00 btst 0x400, %i1
}
}
}
if ( _System_state_Is_up( _System_state_Get() ) )
if ( _Thread_Evaluate_mode() || needs_asr_dispatching )
200ff68: 40 00 00 87 call 2010184 <_Thread_Evaluate_mode>
200ff6c: 01 00 00 00 nop
200ff70: 80 8a 20 ff btst 0xff, %o0
200ff74: 12 80 00 04 bne 200ff84 <rtems_task_mode+0x184>
200ff78: 80 8c 20 ff btst 0xff, %l0
200ff7c: 02 bf ff e7 be 200ff18 <rtems_task_mode+0x118>
200ff80: 82 10 20 00 clr %g1
_Thread_Dispatch();
200ff84: 7f ff e2 f5 call 2008b58 <_Thread_Dispatch>
200ff88: 01 00 00 00 nop
200ff8c: 82 10 20 00 clr %g1 ! 0 <PROM_START>
return RTEMS_SUCCESSFUL;
}
200ff90: 81 c7 e0 08 ret
200ff94: 91 e8 00 01 restore %g0, %g1, %o0
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;
200ff98: c2 2c 20 74 stb %g1, [ %l0 + 0x74 ]
200ff9c: 10 bf ff da b 200ff04 <rtems_task_mode+0x104>
200ffa0: a0 10 20 01 mov 1, %l0
0200b884 <rtems_task_set_priority>:
rtems_status_code rtems_task_set_priority(
rtems_id id,
rtems_task_priority new_priority,
rtems_task_priority *old_priority
)
{
200b884: 9d e3 bf 98 save %sp, -104, %sp
register Thread_Control *the_thread;
Objects_Locations location;
if ( new_priority != RTEMS_CURRENT_PRIORITY &&
200b888: 80 a6 60 00 cmp %i1, 0
200b88c: 02 80 00 07 be 200b8a8 <rtems_task_set_priority+0x24>
200b890: 90 10 00 18 mov %i0, %o0
*/
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (
rtems_task_priority the_priority
)
{
return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&
200b894: 03 00 80 87 sethi %hi(0x2021c00), %g1
200b898: c2 08 60 c4 ldub [ %g1 + 0xc4 ], %g1 ! 2021cc4 <rtems_maximum_priority>
200b89c: 80 a6 40 01 cmp %i1, %g1
200b8a0: 18 80 00 1c bgu 200b910 <rtems_task_set_priority+0x8c>
200b8a4: b0 10 20 13 mov 0x13, %i0
!_RTEMS_tasks_Priority_is_valid( new_priority ) )
return RTEMS_INVALID_PRIORITY;
if ( !old_priority )
200b8a8: 80 a6 a0 00 cmp %i2, 0
200b8ac: 02 80 00 19 be 200b910 <rtems_task_set_priority+0x8c>
200b8b0: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get( id, &location );
200b8b4: 40 00 08 9f call 200db30 <_Thread_Get>
200b8b8: 92 07 bf fc add %fp, -4, %o1
switch ( location ) {
200b8bc: c2 07 bf fc ld [ %fp + -4 ], %g1
200b8c0: 80 a0 60 00 cmp %g1, 0
200b8c4: 12 80 00 13 bne 200b910 <rtems_task_set_priority+0x8c>
200b8c8: b0 10 20 04 mov 4, %i0
case OBJECTS_LOCAL:
/* XXX need helper to "convert" from core priority */
*old_priority = the_thread->current_priority;
200b8cc: c2 02 20 14 ld [ %o0 + 0x14 ], %g1
if ( new_priority != RTEMS_CURRENT_PRIORITY ) {
200b8d0: 80 a6 60 00 cmp %i1, 0
200b8d4: 02 80 00 0d be 200b908 <rtems_task_set_priority+0x84>
200b8d8: c2 26 80 00 st %g1, [ %i2 ]
the_thread->real_priority = new_priority;
if ( the_thread->resource_count == 0 ||
200b8dc: c2 02 20 1c ld [ %o0 + 0x1c ], %g1
200b8e0: 80 a0 60 00 cmp %g1, 0
200b8e4: 02 80 00 06 be 200b8fc <rtems_task_set_priority+0x78>
200b8e8: f2 22 20 18 st %i1, [ %o0 + 0x18 ]
the_thread->current_priority > new_priority )
200b8ec: c2 02 20 14 ld [ %o0 + 0x14 ], %g1
200b8f0: 80 a6 40 01 cmp %i1, %g1
200b8f4: 1a 80 00 05 bcc 200b908 <rtems_task_set_priority+0x84> <== ALWAYS TAKEN
200b8f8: 01 00 00 00 nop
_Thread_Change_priority( the_thread, new_priority, false );
200b8fc: 92 10 00 19 mov %i1, %o1
200b900: 40 00 06 ca call 200d428 <_Thread_Change_priority>
200b904: 94 10 20 00 clr %o2
}
_Thread_Enable_dispatch();
200b908: 40 00 08 66 call 200daa0 <_Thread_Enable_dispatch>
200b90c: b0 10 20 00 clr %i0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
200b910: 81 c7 e0 08 ret
200b914: 81 e8 00 00 restore
0202f738 <rtems_task_variable_delete>:
rtems_status_code rtems_task_variable_delete(
rtems_id tid,
void **ptr
)
{
202f738: 9d e3 bf 98 save %sp, -104, %sp
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp, *prev;
if ( !ptr )
202f73c: 80 a6 60 00 cmp %i1, 0
202f740: 02 80 00 09 be 202f764 <rtems_task_variable_delete+0x2c>
202f744: 82 10 20 09 mov 9, %g1
return RTEMS_INVALID_ADDRESS;
prev = NULL;
the_thread = _Thread_Get (tid, &location);
202f748: 90 10 00 18 mov %i0, %o0
202f74c: 7f ff 82 1d call 200ffc0 <_Thread_Get>
202f750: 92 07 bf fc add %fp, -4, %o1
switch (location) {
202f754: c4 07 bf fc ld [ %fp + -4 ], %g2
202f758: 80 a0 a0 00 cmp %g2, 0
202f75c: 02 80 00 04 be 202f76c <rtems_task_variable_delete+0x34>
202f760: 82 10 20 04 mov 4, %g1
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
202f764: 81 c7 e0 08 ret
202f768: 91 e8 00 01 restore %g0, %g1, %o0
the_thread = _Thread_Get (tid, &location);
switch (location) {
case OBJECTS_LOCAL:
tvp = the_thread->task_variables;
202f76c: d2 02 21 70 ld [ %o0 + 0x170 ], %o1
while (tvp) {
202f770: 80 a2 60 00 cmp %o1, 0
202f774: 02 80 00 10 be 202f7b4 <rtems_task_variable_delete+0x7c>
202f778: 01 00 00 00 nop
if (tvp->ptr == ptr) {
202f77c: c2 02 60 04 ld [ %o1 + 4 ], %g1
202f780: 80 a0 40 19 cmp %g1, %i1
202f784: 12 80 00 08 bne 202f7a4 <rtems_task_variable_delete+0x6c>
202f788: 84 10 00 09 mov %o1, %g2
if (prev)
prev->next = tvp->next;
else
the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
202f78c: 10 80 00 17 b 202f7e8 <rtems_task_variable_delete+0xb0>
202f790: c2 02 40 00 ld [ %o1 ], %g1
switch (location) {
case OBJECTS_LOCAL:
tvp = the_thread->task_variables;
while (tvp) {
if (tvp->ptr == ptr) {
202f794: 80 a0 40 19 cmp %g1, %i1
202f798: 22 80 00 0c be,a 202f7c8 <rtems_task_variable_delete+0x90>
202f79c: c2 02 40 00 ld [ %o1 ], %g1
else
the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
_RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp );
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
202f7a0: 84 10 00 09 mov %o1, %g2
}
prev = tvp;
tvp = (rtems_task_variable_t *)tvp->next;
202f7a4: d2 02 40 00 ld [ %o1 ], %o1
the_thread = _Thread_Get (tid, &location);
switch (location) {
case OBJECTS_LOCAL:
tvp = the_thread->task_variables;
while (tvp) {
202f7a8: 80 a2 60 00 cmp %o1, 0
202f7ac: 32 bf ff fa bne,a 202f794 <rtems_task_variable_delete+0x5c><== ALWAYS TAKEN
202f7b0: c2 02 60 04 ld [ %o1 + 4 ], %g1
return RTEMS_SUCCESSFUL;
}
prev = tvp;
tvp = (rtems_task_variable_t *)tvp->next;
}
_Thread_Enable_dispatch();
202f7b4: 7f ff 81 df call 200ff30 <_Thread_Enable_dispatch>
202f7b8: 01 00 00 00 nop
202f7bc: 82 10 20 09 mov 9, %g1 ! 9 <PROM_START+0x9>
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
202f7c0: 81 c7 e0 08 ret
202f7c4: 91 e8 00 01 restore %g0, %g1, %o0
case OBJECTS_LOCAL:
tvp = the_thread->task_variables;
while (tvp) {
if (tvp->ptr == ptr) {
if (prev)
prev->next = tvp->next;
202f7c8: c2 20 80 00 st %g1, [ %g2 ]
else
the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
_RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp );
202f7cc: 40 00 00 2d call 202f880 <_RTEMS_Tasks_Invoke_task_variable_dtor>
202f7d0: 01 00 00 00 nop
_Thread_Enable_dispatch();
202f7d4: 7f ff 81 d7 call 200ff30 <_Thread_Enable_dispatch>
202f7d8: 01 00 00 00 nop
202f7dc: 82 10 20 00 clr %g1 ! 0 <PROM_START>
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
202f7e0: 81 c7 e0 08 ret
202f7e4: 91 e8 00 01 restore %g0, %g1, %o0
while (tvp) {
if (tvp->ptr == ptr) {
if (prev)
prev->next = tvp->next;
else
the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
202f7e8: 10 bf ff f9 b 202f7cc <rtems_task_variable_delete+0x94>
202f7ec: c2 22 21 70 st %g1, [ %o0 + 0x170 ]
0202f7f0 <rtems_task_variable_get>:
rtems_status_code rtems_task_variable_get(
rtems_id tid,
void **ptr,
void **result
)
{
202f7f0: 9d e3 bf 98 save %sp, -104, %sp
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp;
if ( !ptr )
202f7f4: 80 a6 60 00 cmp %i1, 0
202f7f8: 02 80 00 1c be 202f868 <rtems_task_variable_get+0x78>
202f7fc: 80 a6 a0 00 cmp %i2, 0
return RTEMS_INVALID_ADDRESS;
if ( !result )
202f800: 02 80 00 1a be 202f868 <rtems_task_variable_get+0x78>
202f804: 90 10 00 18 mov %i0, %o0
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get (tid, &location);
202f808: 7f ff 81 ee call 200ffc0 <_Thread_Get>
202f80c: 92 07 bf fc add %fp, -4, %o1
switch (location) {
202f810: c2 07 bf fc ld [ %fp + -4 ], %g1
202f814: 80 a0 60 00 cmp %g1, 0
202f818: 12 80 00 12 bne 202f860 <rtems_task_variable_get+0x70>
202f81c: b0 10 20 04 mov 4, %i0
case OBJECTS_LOCAL:
/*
* Figure out if the variable is in this task's list.
*/
tvp = the_thread->task_variables;
202f820: c2 02 21 70 ld [ %o0 + 0x170 ], %g1
while (tvp) {
202f824: 80 a0 60 00 cmp %g1, 0
202f828: 32 80 00 07 bne,a 202f844 <rtems_task_variable_get+0x54>
202f82c: c4 00 60 04 ld [ %g1 + 4 ], %g2
202f830: 30 80 00 10 b,a 202f870 <rtems_task_variable_get+0x80>
202f834: 80 a0 60 00 cmp %g1, 0
202f838: 02 80 00 0e be 202f870 <rtems_task_variable_get+0x80> <== NEVER TAKEN
202f83c: 01 00 00 00 nop
if (tvp->ptr == ptr) {
202f840: c4 00 60 04 ld [ %g1 + 4 ], %g2
202f844: 80 a0 80 19 cmp %g2, %i1
202f848: 32 bf ff fb bne,a 202f834 <rtems_task_variable_get+0x44>
202f84c: c2 00 40 00 ld [ %g1 ], %g1
/*
* Should this return the current (i.e not the
* saved) value if `tid' is the current task?
*/
*result = tvp->tval;
202f850: c2 00 60 0c ld [ %g1 + 0xc ], %g1
_Thread_Enable_dispatch();
202f854: b0 10 20 00 clr %i0
202f858: 7f ff 81 b6 call 200ff30 <_Thread_Enable_dispatch>
202f85c: c2 26 80 00 st %g1, [ %i2 ]
return RTEMS_SUCCESSFUL;
202f860: 81 c7 e0 08 ret
202f864: 81 e8 00 00 restore
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
202f868: 81 c7 e0 08 ret
202f86c: 91 e8 20 09 restore %g0, 9, %o0
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
tvp = (rtems_task_variable_t *)tvp->next;
}
_Thread_Enable_dispatch();
202f870: 7f ff 81 b0 call 200ff30 <_Thread_Enable_dispatch>
202f874: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
202f878: 81 c7 e0 08 ret
202f87c: 81 e8 00 00 restore
020053b0 <rtems_termios_baud_to_index>:
#include <rtems/termiostypes.h>
int rtems_termios_baud_to_index(
rtems_termios_baud_t termios_baud
)
{
20053b0: 82 10 00 08 mov %o0, %g1
int baud_index;
switch (termios_baud) {
20053b4: 80 a2 20 09 cmp %o0, 9
20053b8: 02 80 00 2d be 200546c <rtems_termios_baud_to_index+0xbc> <== NEVER TAKEN
20053bc: 90 10 20 09 mov 9, %o0
20053c0: 80 a0 60 09 cmp %g1, 9
20053c4: 04 80 00 1a ble 200542c <rtems_termios_baud_to_index+0x7c><== ALWAYS TAKEN
20053c8: 80 a0 60 04 cmp %g1, 4
20053cc: 80 a0 60 0e cmp %g1, 0xe <== NOT EXECUTED
20053d0: 02 80 00 27 be 200546c <rtems_termios_baud_to_index+0xbc> <== NOT EXECUTED
20053d4: 90 10 20 0e mov 0xe, %o0 <== NOT EXECUTED
20053d8: 80 a0 60 0e cmp %g1, 0xe <== NOT EXECUTED
20053dc: 04 80 00 26 ble 2005474 <rtems_termios_baud_to_index+0xc4><== NOT EXECUTED
20053e0: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED
20053e4: 05 00 00 04 sethi %hi(0x1000), %g2 <== NOT EXECUTED
20053e8: 86 10 a0 02 or %g2, 2, %g3 ! 1002 <PROM_START+0x1002> <== NOT EXECUTED
20053ec: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
20053f0: 02 80 00 1f be 200546c <rtems_termios_baud_to_index+0xbc> <== NOT EXECUTED
20053f4: 90 10 20 11 mov 0x11, %o0 <== NOT EXECUTED
20053f8: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
20053fc: 04 80 00 38 ble 20054dc <rtems_termios_baud_to_index+0x12c><== NOT EXECUTED
2005400: 80 a0 60 0f cmp %g1, 0xf <== NOT EXECUTED
2005404: 86 10 a0 03 or %g2, 3, %g3 <== NOT EXECUTED
2005408: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
200540c: 02 80 00 18 be 200546c <rtems_termios_baud_to_index+0xbc> <== NOT EXECUTED
2005410: 90 10 20 12 mov 0x12, %o0 <== NOT EXECUTED
2005414: 84 10 a0 04 or %g2, 4, %g2 <== NOT EXECUTED
2005418: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
200541c: 02 80 00 14 be 200546c <rtems_termios_baud_to_index+0xbc> <== NOT EXECUTED
2005420: 90 10 20 13 mov 0x13, %o0 <== NOT EXECUTED
case B460800: baud_index = 19; break;
default: baud_index = -1; break;
}
return baud_index;
}
2005424: 81 c3 e0 08 retl
2005428: 90 10 3f ff mov -1, %o0
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
200542c: 02 80 00 10 be 200546c <rtems_termios_baud_to_index+0xbc> <== NEVER TAKEN
2005430: 90 10 20 04 mov 4, %o0
2005434: 80 a0 60 04 cmp %g1, 4
2005438: 14 80 00 1c bg 20054a8 <rtems_termios_baud_to_index+0xf8> <== NEVER TAKEN
200543c: 80 a0 60 06 cmp %g1, 6
2005440: 80 a0 60 01 cmp %g1, 1
2005444: 02 80 00 0a be 200546c <rtems_termios_baud_to_index+0xbc> <== NEVER TAKEN
2005448: 90 10 20 01 mov 1, %o0
200544c: 80 a0 60 01 cmp %g1, 1
2005450: 04 80 00 2b ble 20054fc <rtems_termios_baud_to_index+0x14c><== ALWAYS TAKEN
2005454: 80 a0 60 02 cmp %g1, 2
2005458: 02 80 00 05 be 200546c <rtems_termios_baud_to_index+0xbc> <== NOT EXECUTED
200545c: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED
2005460: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED
2005464: 12 bf ff f0 bne 2005424 <rtems_termios_baud_to_index+0x74><== NOT EXECUTED
2005468: 90 10 20 03 mov 3, %o0 <== NOT EXECUTED
200546c: 81 c3 e0 08 retl <== NOT EXECUTED
2005470: 01 00 00 00 nop <== NOT EXECUTED
2005474: 02 bf ff fe be 200546c <rtems_termios_baud_to_index+0xbc> <== NOT EXECUTED
2005478: 90 10 20 0b mov 0xb, %o0 ! b <PROM_START+0xb> <== NOT EXECUTED
200547c: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED
2005480: 06 bf ff fb bl 200546c <rtems_termios_baud_to_index+0xbc> <== NOT EXECUTED
2005484: 90 10 20 0a mov 0xa, %o0 <== NOT EXECUTED
2005488: 80 a0 60 0c cmp %g1, 0xc <== NOT EXECUTED
200548c: 02 bf ff f8 be 200546c <rtems_termios_baud_to_index+0xbc> <== NOT EXECUTED
2005490: 90 10 20 0c mov 0xc, %o0 <== NOT EXECUTED
2005494: 80 a0 60 0d cmp %g1, 0xd <== NOT EXECUTED
2005498: 12 bf ff e3 bne 2005424 <rtems_termios_baud_to_index+0x74><== NOT EXECUTED
200549c: 90 10 20 0d mov 0xd, %o0 <== NOT EXECUTED
20054a0: 81 c3 e0 08 retl <== NOT EXECUTED
20054a4: 01 00 00 00 nop <== NOT EXECUTED
20054a8: 02 bf ff f1 be 200546c <rtems_termios_baud_to_index+0xbc> <== NOT EXECUTED
20054ac: 90 10 20 06 mov 6, %o0 ! 6 <PROM_START+0x6> <== NOT EXECUTED
20054b0: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED
20054b4: 06 bf ff ee bl 200546c <rtems_termios_baud_to_index+0xbc> <== NOT EXECUTED
20054b8: 90 10 20 05 mov 5, %o0 <== NOT EXECUTED
20054bc: 80 a0 60 07 cmp %g1, 7 <== NOT EXECUTED
20054c0: 02 bf ff eb be 200546c <rtems_termios_baud_to_index+0xbc> <== NOT EXECUTED
20054c4: 90 10 20 07 mov 7, %o0 <== NOT EXECUTED
20054c8: 80 a0 60 08 cmp %g1, 8 <== NOT EXECUTED
20054cc: 12 bf ff d6 bne 2005424 <rtems_termios_baud_to_index+0x74><== NOT EXECUTED
20054d0: 90 10 20 08 mov 8, %o0 <== NOT EXECUTED
20054d4: 81 c3 e0 08 retl <== NOT EXECUTED
20054d8: 01 00 00 00 nop <== NOT EXECUTED
20054dc: 02 bf ff e4 be 200546c <rtems_termios_baud_to_index+0xbc> <== NOT EXECUTED
20054e0: 90 10 20 0f mov 0xf, %o0 ! f <PROM_START+0xf> <== NOT EXECUTED
20054e4: 84 10 a0 01 or %g2, 1, %g2 <== NOT EXECUTED
20054e8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
20054ec: 12 bf ff ce bne 2005424 <rtems_termios_baud_to_index+0x74><== NOT EXECUTED
20054f0: 90 10 20 10 mov 0x10, %o0 <== NOT EXECUTED
20054f4: 81 c3 e0 08 retl <== NOT EXECUTED
20054f8: 01 00 00 00 nop <== NOT EXECUTED
20054fc: 80 a0 60 00 cmp %g1, 0
2005500: 12 bf ff c9 bne 2005424 <rtems_termios_baud_to_index+0x74><== ALWAYS TAKEN
2005504: 90 10 20 00 clr %o0
case B460800: baud_index = 19; break;
default: baud_index = -1; break;
}
return baud_index;
}
2005508: 81 c3 e0 08 retl <== NOT EXECUTED
02005510 <rtems_termios_baud_to_number>:
#include <rtems/termiostypes.h>
int32_t rtems_termios_baud_to_number(
int termios_baud
)
{
2005510: 82 10 00 08 mov %o0, %g1
int32_t baud;
switch (termios_baud) {
2005514: 80 a2 20 09 cmp %o0, 9
2005518: 02 80 00 2f be 20055d4 <rtems_termios_baud_to_number+0xc4>
200551c: 90 10 24 b0 mov 0x4b0, %o0
2005520: 80 a0 60 09 cmp %g1, 9
2005524: 04 80 00 1c ble 2005594 <rtems_termios_baud_to_number+0x84>
2005528: 80 a0 60 04 cmp %g1, 4
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;
case B9600: baud = 9600; break;
200552c: 11 00 00 12 sethi %hi(0x4800), %o0
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
2005530: 80 a0 60 0e cmp %g1, 0xe
2005534: 02 80 00 28 be 20055d4 <rtems_termios_baud_to_number+0xc4>
2005538: 90 12 23 00 or %o0, 0x300, %o0
200553c: 80 a0 60 0e cmp %g1, 0xe
2005540: 04 80 00 27 ble 20055dc <rtems_termios_baud_to_number+0xcc>
2005544: 80 a0 60 0b cmp %g1, 0xb
2005548: 05 00 00 04 sethi %hi(0x1000), %g2
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;
200554c: 11 00 00 70 sethi %hi(0x1c000), %o0
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
2005550: 86 10 a0 02 or %g2, 2, %g3
2005554: 80 a0 40 03 cmp %g1, %g3
2005558: 02 80 00 1f be 20055d4 <rtems_termios_baud_to_number+0xc4>
200555c: 90 12 22 00 or %o0, 0x200, %o0
2005560: 80 a0 40 03 cmp %g1, %g3
2005564: 04 80 00 3a ble 200564c <rtems_termios_baud_to_number+0x13c>
2005568: 11 00 00 25 sethi %hi(0x9400), %o0
200556c: 86 10 a0 03 or %g2, 3, %g3
2005570: 80 a0 40 03 cmp %g1, %g3
2005574: 02 80 00 18 be 20055d4 <rtems_termios_baud_to_number+0xc4>
2005578: 11 00 00 e1 sethi %hi(0x38400), %o0
200557c: 84 10 a0 04 or %g2, 4, %g2
2005580: 80 a0 40 02 cmp %g1, %g2
2005584: 02 80 00 14 be 20055d4 <rtems_termios_baud_to_number+0xc4><== ALWAYS TAKEN
2005588: 11 00 01 c2 sethi %hi(0x70800), %o0
case B460800: baud = 460800; break;
default: baud = -1; break;
}
return baud;
}
200558c: 81 c3 e0 08 retl
2005590: 90 10 3f ff mov -1, %o0
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
2005594: 02 80 00 10 be 20055d4 <rtems_termios_baud_to_number+0xc4>
2005598: 90 10 20 86 mov 0x86, %o0
200559c: 80 a0 60 04 cmp %g1, 4
20055a0: 14 80 00 1e bg 2005618 <rtems_termios_baud_to_number+0x108>
20055a4: 80 a0 60 06 cmp %g1, 6
20055a8: 80 a0 60 01 cmp %g1, 1
20055ac: 02 80 00 0a be 20055d4 <rtems_termios_baud_to_number+0xc4>
20055b0: 90 10 20 32 mov 0x32, %o0
20055b4: 80 a0 60 01 cmp %g1, 1
20055b8: 04 80 00 2f ble 2005674 <rtems_termios_baud_to_number+0x164>
20055bc: 80 a0 60 02 cmp %g1, 2
20055c0: 02 80 00 05 be 20055d4 <rtems_termios_baud_to_number+0xc4>
20055c4: 90 10 20 4b mov 0x4b, %o0
20055c8: 80 a0 60 03 cmp %g1, 3
20055cc: 12 bf ff f0 bne 200558c <rtems_termios_baud_to_number+0x7c><== NEVER TAKEN
20055d0: 90 10 20 6e mov 0x6e, %o0
20055d4: 81 c3 e0 08 retl
20055d8: 01 00 00 00 nop
20055dc: 02 bf ff fe be 20055d4 <rtems_termios_baud_to_number+0xc4>
20055e0: 90 10 29 60 mov 0x960, %o0 ! 960 <PROM_START+0x960>
20055e4: 80 a0 60 0b cmp %g1, 0xb
20055e8: 06 bf ff fb bl 20055d4 <rtems_termios_baud_to_number+0xc4>
20055ec: 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;
20055f0: 90 02 28 f8 add %o0, 0x8f8, %o0
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
20055f4: 80 a0 60 0c cmp %g1, 0xc
20055f8: 02 bf ff f7 be 20055d4 <rtems_termios_baud_to_number+0xc4>
20055fc: 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;
2005600: 11 00 00 09 sethi %hi(0x2400), %o0
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
2005604: 80 a0 60 0d cmp %g1, 0xd
2005608: 12 bf ff e1 bne 200558c <rtems_termios_baud_to_number+0x7c><== NEVER TAKEN
200560c: 90 12 21 80 or %o0, 0x180, %o0
2005610: 81 c3 e0 08 retl
2005614: 01 00 00 00 nop
2005618: 02 bf ff ef be 20055d4 <rtems_termios_baud_to_number+0xc4>
200561c: 90 10 20 c8 mov 0xc8, %o0 ! c8 <PROM_START+0xc8>
2005620: 80 a0 60 06 cmp %g1, 6
2005624: 06 bf ff ec bl 20055d4 <rtems_termios_baud_to_number+0xc4>
2005628: 90 10 20 96 mov 0x96, %o0
200562c: 80 a0 60 07 cmp %g1, 7
2005630: 02 bf ff e9 be 20055d4 <rtems_termios_baud_to_number+0xc4>
2005634: 90 10 21 2c mov 0x12c, %o0
2005638: 80 a0 60 08 cmp %g1, 8
200563c: 12 bf ff d4 bne 200558c <rtems_termios_baud_to_number+0x7c><== NEVER TAKEN
2005640: 90 10 22 58 mov 0x258, %o0
2005644: 81 c3 e0 08 retl
2005648: 01 00 00 00 nop
200564c: 80 a0 60 0f cmp %g1, 0xf
2005650: 02 bf ff e1 be 20055d4 <rtems_termios_baud_to_number+0xc4>
2005654: 90 12 22 00 or %o0, 0x200, %o0
2005658: 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;
200565c: 11 00 00 38 sethi %hi(0xe000), %o0
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
2005660: 80 a0 40 02 cmp %g1, %g2
2005664: 12 bf ff ca bne 200558c <rtems_termios_baud_to_number+0x7c><== NEVER TAKEN
2005668: 90 12 21 00 or %o0, 0x100, %o0
200566c: 81 c3 e0 08 retl
2005670: 01 00 00 00 nop
2005674: 80 a0 60 00 cmp %g1, 0
2005678: 12 bf ff c5 bne 200558c <rtems_termios_baud_to_number+0x7c>
200567c: 90 10 20 00 clr %o0
case B460800: baud = 460800; break;
default: baud = -1; break;
}
return baud;
}
2005680: 81 c3 e0 08 retl
02003e70 <rtems_termios_bufsize>:
int cbufsize,
int raw_input,
int raw_output
)
{
rtems_termios_cbufsize = cbufsize;
2003e70: 03 00 80 74 sethi %hi(0x201d000), %g1 <== NOT EXECUTED
2003e74: d0 20 62 00 st %o0, [ %g1 + 0x200 ] ! 201d200 <rtems_termios_cbufsize><== NOT EXECUTED
rtems_termios_raw_input_size = raw_input;
2003e78: 03 00 80 74 sethi %hi(0x201d000), %g1 <== NOT EXECUTED
rtems_termios_raw_output_size = raw_output;
return RTEMS_SUCCESSFUL;
}
2003e7c: 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;
2003e80: d2 20 62 04 st %o1, [ %g1 + 0x204 ] <== NOT EXECUTED
rtems_termios_raw_output_size = raw_output;
2003e84: 03 00 80 74 sethi %hi(0x201d000), %g1 <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
2003e88: 81 c3 e0 08 retl <== NOT EXECUTED
2003e8c: d4 20 62 08 st %o2, [ %g1 + 0x208 ] ! 201d208 <rtems_termios_raw_output_size><== NOT EXECUTED
020055c0 <rtems_termios_close>:
}
}
rtems_status_code
rtems_termios_close (void *arg)
{
20055c0: 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);
20055c4: 23 00 80 76 sethi %hi(0x201d800), %l1
rtems_status_code
rtems_termios_close (void *arg)
{
rtems_libio_open_close_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
20055c8: c2 06 00 00 ld [ %i0 ], %g1
rtems_status_code sc;
sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
20055cc: d0 04 62 20 ld [ %l1 + 0x220 ], %o0
rtems_status_code
rtems_termios_close (void *arg)
{
rtems_libio_open_close_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
20055d0: e0 00 60 38 ld [ %g1 + 0x38 ], %l0
rtems_status_code sc;
sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
20055d4: 92 10 20 00 clr %o1
20055d8: 40 00 04 bf call 20068d4 <rtems_semaphore_obtain>
20055dc: 94 10 20 00 clr %o2
if (sc != RTEMS_SUCCESSFUL)
20055e0: 80 a2 20 00 cmp %o0, 0
20055e4: 12 80 00 6e bne 200579c <rtems_termios_close+0x1dc> <== NEVER TAKEN
20055e8: 01 00 00 00 nop
rtems_fatal_error_occurred (sc);
if (--tty->refcount == 0) {
20055ec: c2 04 20 08 ld [ %l0 + 8 ], %g1
20055f0: 82 00 7f ff add %g1, -1, %g1
20055f4: 80 a0 60 00 cmp %g1, 0
20055f8: 12 80 00 3a bne 20056e0 <rtems_termios_close+0x120>
20055fc: c2 24 20 08 st %g1, [ %l0 + 8 ]
if (rtems_termios_linesw[tty->t_line].l_close != NULL) {
2005600: c4 04 20 cc ld [ %l0 + 0xcc ], %g2
2005604: 03 00 80 75 sethi %hi(0x201d400), %g1
2005608: 85 28 a0 05 sll %g2, 5, %g2
200560c: 82 10 63 54 or %g1, 0x354, %g1
2005610: 82 00 40 02 add %g1, %g2, %g1
2005614: c2 00 60 04 ld [ %g1 + 4 ], %g1
2005618: 80 a0 60 00 cmp %g1, 0
200561c: 22 80 00 48 be,a 200573c <rtems_termios_close+0x17c> <== ALWAYS TAKEN
2005620: d0 04 20 18 ld [ %l0 + 0x18 ], %o0
/*
* call discipline-specific close
*/
sc = rtems_termios_linesw[tty->t_line].l_close(tty);
2005624: 9f c0 40 00 call %g1 <== NOT EXECUTED
2005628: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
}
drainOutput (tty);
}
if (tty->device.outputUsesInterrupts
200562c: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 <== NOT EXECUTED
2005630: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
2005634: 22 80 00 4f be,a 2005770 <rtems_termios_close+0x1b0> <== NOT EXECUTED
2005638: d0 04 20 c4 ld [ %l0 + 0xc4 ], %o0 <== NOT EXECUTED
tty->txTaskId,
TERMIOS_TX_TERMINATE_EVENT);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
}
if (tty->device.lastClose)
200563c: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 <== NOT EXECUTED
2005640: 80 a0 60 00 cmp %g1, 0
2005644: 22 80 00 07 be,a 2005660 <rtems_termios_close+0xa0> <== ALWAYS TAKEN
2005648: c2 04 00 00 ld [ %l0 ], %g1
(*tty->device.lastClose)(tty->major, tty->minor, arg);
200564c: d0 04 20 0c ld [ %l0 + 0xc ], %o0 <== NOT EXECUTED
2005650: d2 04 20 10 ld [ %l0 + 0x10 ], %o1 <== NOT EXECUTED
2005654: 9f c0 40 00 call %g1 <== NOT EXECUTED
2005658: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
if (tty->forw == NULL) {
200565c: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
2005660: 80 a0 60 00 cmp %g1, 0
2005664: 22 80 00 27 be,a 2005700 <rtems_termios_close+0x140>
2005668: c2 04 20 04 ld [ %l0 + 4 ], %g1
if ( rtems_termios_ttyTail != NULL ) {
rtems_termios_ttyTail->forw = NULL;
}
}
else {
tty->forw->back = tty->back;
200566c: c4 04 20 04 ld [ %l0 + 4 ], %g2
2005670: c4 20 60 04 st %g2, [ %g1 + 4 ]
}
if (tty->back == NULL) {
2005674: c4 04 20 04 ld [ %l0 + 4 ], %g2
2005678: 80 a0 a0 00 cmp %g2, 0
200567c: 22 80 00 2b be,a 2005728 <rtems_termios_close+0x168> <== ALWAYS TAKEN
2005680: 05 00 80 76 sethi %hi(0x201d800), %g2
if ( rtems_termios_ttyHead != NULL ) {
rtems_termios_ttyHead->back = NULL;
}
}
else {
tty->back->forw = tty->forw;
2005684: c2 20 80 00 st %g1, [ %g2 ] <== NOT EXECUTED
}
rtems_semaphore_delete (tty->isem);
2005688: 40 00 04 66 call 2006820 <rtems_semaphore_delete>
200568c: d0 04 20 14 ld [ %l0 + 0x14 ], %o0
rtems_semaphore_delete (tty->osem);
2005690: 40 00 04 64 call 2006820 <rtems_semaphore_delete>
2005694: d0 04 20 18 ld [ %l0 + 0x18 ], %o0
rtems_semaphore_delete (tty->rawOutBuf.Semaphore);
2005698: 40 00 04 62 call 2006820 <rtems_semaphore_delete>
200569c: d0 04 20 8c ld [ %l0 + 0x8c ], %o0
if ((tty->device.pollRead == NULL) ||
20056a0: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1
20056a4: 80 a0 60 00 cmp %g1, 0
20056a8: 02 80 00 13 be 20056f4 <rtems_termios_close+0x134> <== NEVER TAKEN
20056ac: 01 00 00 00 nop
(tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))
20056b0: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1
20056b4: 80 a0 60 02 cmp %g1, 2
20056b8: 02 80 00 0f be 20056f4 <rtems_termios_close+0x134> <== NEVER TAKEN
20056bc: 01 00 00 00 nop
rtems_semaphore_delete (tty->rawInBuf.Semaphore);
free (tty->rawInBuf.theBuf);
20056c0: 7f ff f5 8b call 2002cec <free>
20056c4: d0 04 20 58 ld [ %l0 + 0x58 ], %o0
free (tty->rawOutBuf.theBuf);
20056c8: 7f ff f5 89 call 2002cec <free>
20056cc: d0 04 20 7c ld [ %l0 + 0x7c ], %o0
free (tty->cbuf);
20056d0: 7f ff f5 87 call 2002cec <free>
20056d4: d0 04 20 1c ld [ %l0 + 0x1c ], %o0
free (tty);
20056d8: 7f ff f5 85 call 2002cec <free>
20056dc: 90 10 00 10 mov %l0, %o0
}
rtems_semaphore_release (rtems_termios_ttyMutex);
20056e0: d0 04 62 20 ld [ %l1 + 0x220 ], %o0
20056e4: 40 00 04 c3 call 20069f0 <rtems_semaphore_release>
20056e8: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
}
20056ec: 81 c7 e0 08 ret
20056f0: 81 e8 00 00 restore
rtems_semaphore_delete (tty->isem);
rtems_semaphore_delete (tty->osem);
rtems_semaphore_delete (tty->rawOutBuf.Semaphore);
if ((tty->device.pollRead == NULL) ||
(tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))
rtems_semaphore_delete (tty->rawInBuf.Semaphore);
20056f4: 40 00 04 4b call 2006820 <rtems_semaphore_delete> <== NOT EXECUTED
20056f8: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED
20056fc: 30 bf ff f1 b,a 20056c0 <rtems_termios_close+0x100> <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
}
if (tty->device.lastClose)
(*tty->device.lastClose)(tty->major, tty->minor, arg);
if (tty->forw == NULL) {
rtems_termios_ttyTail = tty->back;
2005700: 05 00 80 76 sethi %hi(0x201d800), %g2
if ( rtems_termios_ttyTail != NULL ) {
2005704: 80 a0 60 00 cmp %g1, 0
2005708: 02 80 00 27 be 20057a4 <rtems_termios_close+0x1e4> <== ALWAYS TAKEN
200570c: c2 20 a2 24 st %g1, [ %g2 + 0x224 ]
}
}
else {
tty->forw->back = tty->back;
}
if (tty->back == NULL) {
2005710: c4 04 20 04 ld [ %l0 + 4 ], %g2 <== NOT EXECUTED
if (tty->device.lastClose)
(*tty->device.lastClose)(tty->major, tty->minor, arg);
if (tty->forw == NULL) {
rtems_termios_ttyTail = tty->back;
if ( rtems_termios_ttyTail != NULL ) {
rtems_termios_ttyTail->forw = NULL;
2005714: c0 20 40 00 clr [ %g1 ] <== NOT EXECUTED
}
}
else {
tty->forw->back = tty->back;
}
if (tty->back == NULL) {
2005718: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
200571c: 12 bf ff da bne 2005684 <rtems_termios_close+0xc4> <== NOT EXECUTED
2005720: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
rtems_termios_ttyHead = tty->forw;
2005724: 05 00 80 76 sethi %hi(0x201d800), %g2 <== NOT EXECUTED
if ( rtems_termios_ttyHead != NULL ) {
2005728: 80 a0 60 00 cmp %g1, 0
200572c: 02 bf ff d7 be 2005688 <rtems_termios_close+0xc8> <== NEVER TAKEN
2005730: c2 20 a2 28 st %g1, [ %g2 + 0x228 ]
rtems_termios_ttyHead->back = NULL;
2005734: 10 bf ff d5 b 2005688 <rtems_termios_close+0xc8>
2005738: c0 20 60 04 clr [ %g1 + 4 ]
}
else {
/*
* default: just flush output buffer
*/
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
200573c: 92 10 20 00 clr %o1
2005740: 40 00 04 65 call 20068d4 <rtems_semaphore_obtain>
2005744: 94 10 20 00 clr %o2
if (sc != RTEMS_SUCCESSFUL) {
2005748: 80 a2 20 00 cmp %o0, 0
200574c: 12 80 00 14 bne 200579c <rtems_termios_close+0x1dc> <== NEVER TAKEN
2005750: 01 00 00 00 nop
rtems_fatal_error_occurred (sc);
}
drainOutput (tty);
2005754: 7f ff fd 79 call 2004d38 <drainOutput>
2005758: 90 10 00 10 mov %l0, %o0
}
if (tty->device.outputUsesInterrupts
200575c: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1
2005760: 80 a0 60 02 cmp %g1, 2
2005764: 32 bf ff b7 bne,a 2005640 <rtems_termios_close+0x80> <== ALWAYS TAKEN
2005768: c2 04 20 9c ld [ %l0 + 0x9c ], %g1
== TERMIOS_TASK_DRIVEN) {
/*
* send "terminate" to I/O tasks
*/
sc = rtems_event_send(
200576c: d0 04 20 c4 ld [ %l0 + 0xc4 ], %o0 <== NOT EXECUTED
2005770: 40 00 03 1c call 20063e0 <rtems_event_send> <== NOT EXECUTED
2005774: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
tty->rxTaskId,
TERMIOS_RX_TERMINATE_EVENT);
if (sc != RTEMS_SUCCESSFUL)
2005778: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200577c: 12 80 00 08 bne 200579c <rtems_termios_close+0x1dc> <== NOT EXECUTED
2005780: 01 00 00 00 nop <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
sc = rtems_event_send(
2005784: d0 04 20 c8 ld [ %l0 + 0xc8 ], %o0 <== NOT EXECUTED
2005788: 40 00 03 16 call 20063e0 <rtems_event_send> <== NOT EXECUTED
200578c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
tty->txTaskId,
TERMIOS_TX_TERMINATE_EVENT);
if (sc != RTEMS_SUCCESSFUL)
2005790: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2005794: 22 bf ff ab be,a 2005640 <rtems_termios_close+0x80> <== NOT EXECUTED
2005798: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
200579c: 40 00 05 ed call 2006f50 <rtems_fatal_error_occurred> <== NOT EXECUTED
20057a0: 01 00 00 00 nop <== NOT EXECUTED
}
else {
tty->forw->back = tty->back;
}
if (tty->back == NULL) {
rtems_termios_ttyHead = tty->forw;
20057a4: 03 00 80 76 sethi %hi(0x201d800), %g1
20057a8: 10 bf ff b8 b 2005688 <rtems_termios_close+0xc8>
20057ac: c0 20 62 28 clr [ %g1 + 0x228 ] ! 201da28 <rtems_termios_ttyHead>
020040a8 <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)
{
20040a8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_status_code sc;
/*
* sum up character count already sent
*/
tty->t_dqlen += len;
20040ac: c4 06 20 90 ld [ %i0 + 0x90 ], %g2 <== NOT EXECUTED
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
20040b0: c2 06 20 b4 ld [ %i0 + 0xb4 ], %g1 <== NOT EXECUTED
rtems_status_code sc;
/*
* sum up character count already sent
*/
tty->t_dqlen += len;
20040b4: 84 00 80 19 add %g2, %i1, %g2 <== NOT EXECUTED
20040b8: c4 26 20 90 st %g2, [ %i0 + 0x90 ] <== NOT EXECUTED
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
20040bc: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
20040c0: 02 80 00 10 be 2004100 <rtems_termios_dequeue_characters+0x58><== NOT EXECUTED
20040c4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
TERMIOS_TX_START_EVENT);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
return 0; /* nothing to output in IRQ... */
}
else if (tty->t_line == PPPDISC ) {
20040c8: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED
20040cc: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED
20040d0: 02 80 00 04 be 20040e0 <rtems_termios_dequeue_characters+0x38><== NOT EXECUTED
20040d4: 03 00 80 76 sethi %hi(0x201d800), %g1 <== NOT EXECUTED
rtems_termios_linesw[tty->t_line].l_start(tty);
}
return 0; /* nothing to output in IRQ... */
}
else {
return rtems_termios_refill_transmitter(tty);
20040d8: 7f ff ff 74 call 2003ea8 <rtems_termios_refill_transmitter><== NOT EXECUTED
20040dc: 81 e8 00 00 restore <== NOT EXECUTED
}
else if (tty->t_line == PPPDISC ) {
/*
* call any line discipline start function
*/
if (rtems_termios_linesw[tty->t_line].l_start != NULL) {
20040e0: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED
20040e4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20040e8: 02 80 00 04 be 20040f8 <rtems_termios_dequeue_characters+0x50><== NOT EXECUTED
20040ec: 01 00 00 00 nop <== NOT EXECUTED
rtems_termios_linesw[tty->t_line].l_start(tty);
20040f0: 9f c0 40 00 call %g1 <== NOT EXECUTED
20040f4: 01 00 00 00 nop <== NOT EXECUTED
return 0; /* nothing to output in IRQ... */
}
else {
return rtems_termios_refill_transmitter(tty);
}
}
20040f8: 81 c7 e0 08 ret <== NOT EXECUTED
20040fc: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
/*
* send wake up to transmitter task
*/
sc = rtems_event_send(tty->txTaskId,
2004100: d0 06 20 c8 ld [ %i0 + 0xc8 ], %o0 <== NOT EXECUTED
2004104: 40 00 08 b7 call 20063e0 <rtems_event_send> <== NOT EXECUTED
2004108: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
TERMIOS_TX_START_EVENT);
if (sc != RTEMS_SUCCESSFUL)
200410c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2004110: 02 bf ff fa be 20040f8 <rtems_termios_dequeue_characters+0x50><== NOT EXECUTED
2004114: 01 00 00 00 nop <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
2004118: 40 00 0b 8e call 2006f50 <rtems_fatal_error_occurred> <== NOT EXECUTED
02004124 <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)
{
2004124: 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) {
2004128: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED
200412c: 23 00 80 75 sethi %hi(0x201d400), %l1 <== NOT EXECUTED
2004130: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED
2004134: a2 14 63 54 or %l1, 0x354, %l1 <== NOT EXECUTED
2004138: 82 00 60 10 add %g1, 0x10, %g1 <== NOT EXECUTED
200413c: c2 04 40 01 ld [ %l1 + %g1 ], %g1 <== NOT EXECUTED
2004140: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2004144: 02 80 00 22 be 20041cc <rtems_termios_enqueue_raw_characters+0xa8><== NOT EXECUTED
2004148: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
while (len--) {
200414c: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
2004150: 22 80 00 0f be,a 200418c <rtems_termios_enqueue_raw_characters+0x68><== NOT EXECUTED
2004154: c2 04 20 e4 ld [ %l0 + 0xe4 ], %g1 <== NOT EXECUTED
2004158: 10 80 00 05 b 200416c <rtems_termios_enqueue_raw_characters+0x48><== NOT EXECUTED
200415c: a4 10 20 00 clr %l2 <== NOT EXECUTED
2004160: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED
2004164: 82 00 60 10 add %g1, 0x10, %g1 <== NOT EXECUTED
2004168: c2 04 40 01 ld [ %l1 + %g1 ], %g1 <== NOT EXECUTED
c = *buf++;
rtems_termios_linesw[tty->t_line].l_rint(c,tty);
200416c: d0 4e 40 12 ldsb [ %i1 + %l2 ], %o0 <== NOT EXECUTED
2004170: 9f c0 40 00 call %g1 <== NOT EXECUTED
2004174: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2004178: a4 04 a0 01 inc %l2 <== 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--) {
200417c: 80 a6 80 12 cmp %i2, %l2 <== NOT EXECUTED
2004180: 32 bf ff f8 bne,a 2004160 <rtems_termios_enqueue_raw_characters+0x3c><== NOT EXECUTED
2004184: 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 )) {
2004188: c2 04 20 e4 ld [ %l0 + 0xe4 ], %g1 <== NOT EXECUTED
200418c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2004190: 12 80 00 0d bne 20041c4 <rtems_termios_enqueue_raw_characters+0xa0><== NOT EXECUTED
2004194: 01 00 00 00 nop <== NOT EXECUTED
2004198: c2 04 20 dc ld [ %l0 + 0xdc ], %g1 <== NOT EXECUTED
200419c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20041a0: 02 80 00 09 be 20041c4 <rtems_termios_enqueue_raw_characters+0xa0><== NOT EXECUTED
20041a4: 01 00 00 00 nop <== NOT EXECUTED
(*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);
20041a8: d2 04 20 e0 ld [ %l0 + 0xe0 ], %o1 <== NOT EXECUTED
20041ac: 9f c0 40 00 call %g1 <== NOT EXECUTED
20041b0: 90 04 20 30 add %l0, 0x30, %o0 <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
20041b4: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20041b8: c2 24 20 e4 st %g1, [ %l0 + 0xe4 ] <== NOT EXECUTED
20041bc: 81 c7 e0 08 ret <== NOT EXECUTED
20041c0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
}
}
tty->rawInBufDropped += dropped;
rtems_semaphore_release (tty->rawInBuf.Semaphore);
return dropped;
}
20041c4: 81 c7 e0 08 ret <== NOT EXECUTED
20041c8: 91 e8 20 00 restore %g0, 0, %o0 <== 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);
20041cc: 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,
20041d0: ae 06 20 4a add %i0, 0x4a, %l7 <== 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);
20041d4: ac 06 20 30 add %i0, 0x30, %l6 <== NOT EXECUTED
20041d8: a8 10 20 00 clr %l4 <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
}
return 0;
}
while (len--) {
20041dc: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
20041e0: 02 80 00 1c be 2004250 <rtems_termios_enqueue_raw_characters+0x12c><== NOT EXECUTED
20041e4: b0 10 20 00 clr %i0 <== NOT EXECUTED
c = *buf++;
/* FIXME: implement IXANY: any character restarts output */
/* if incoming XON/XOFF controls outgoing stream: */
if (tty->flow_ctrl & FL_MDXON) {
20041e8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
20041ec: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED
20041f0: 02 80 00 0b be 200421c <rtems_termios_enqueue_raw_characters+0xf8><== NOT EXECUTED
20041f4: e4 0e 40 00 ldub [ %i1 ], %l2 <== NOT EXECUTED
/* if received char is V_STOP and V_START (both are equal value) */
if (c == tty->termios.c_cc[VSTOP]) {
20041f8: c4 0c 20 4a ldub [ %l0 + 0x4a ], %g2 <== NOT EXECUTED
20041fc: 83 2c a0 18 sll %l2, 0x18, %g1 <== NOT EXECUTED
2004200: 83 38 60 18 sra %g1, 0x18, %g1 <== NOT EXECUTED
2004204: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2004208: 02 80 00 63 be 2004394 <rtems_termios_enqueue_raw_characters+0x270><== NOT EXECUTED
200420c: c4 0c 20 49 ldub [ %l0 + 0x49 ], %g2 <== NOT EXECUTED
/* stop output */
tty->flow_ctrl |= FL_ORCVXOF;
}
flow_rcv = true;
}
else if (c == tty->termios.c_cc[VSTART]) {
2004210: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2004214: 02 80 00 68 be 20043b4 <rtems_termios_enqueue_raw_characters+0x290><== NOT EXECUTED
2004218: 01 00 00 00 nop <== NOT EXECUTED
/* restart output */
tty->flow_ctrl &= ~FL_ORCVXOF;
flow_rcv = true;
}
}
if (flow_rcv) {
200421c: 80 8d 20 ff btst 0xff, %l4 <== NOT EXECUTED
2004220: 02 80 00 22 be 20042a8 <rtems_termios_enqueue_raw_characters+0x184><== NOT EXECUTED
2004224: 01 00 00 00 nop <== NOT EXECUTED
/* restart output according to FL_ORCVXOF flag */
if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) {
2004228: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
200422c: 82 08 60 30 and %g1, 0x30, %g1 <== NOT EXECUTED
2004230: 80 a0 60 20 cmp %g1, 0x20 <== NOT EXECUTED
2004234: 02 80 00 0e be 200426c <rtems_termios_enqueue_raw_characters+0x148><== NOT EXECUTED
2004238: 01 00 00 00 nop <== NOT EXECUTED
}
return 0;
}
while (len--) {
c = *buf++;
200423c: b2 06 60 01 inc %i1 <== NOT EXECUTED
2004240: a2 04 7f ff add %l1, -1, %l1 <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
}
return 0;
}
while (len--) {
2004244: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
2004248: 12 bf ff e8 bne 20041e8 <rtems_termios_enqueue_raw_characters+0xc4><== NOT EXECUTED
200424c: 01 00 00 00 nop <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
}
}
}
}
tty->rawInBufDropped += dropped;
2004250: c2 04 20 78 ld [ %l0 + 0x78 ], %g1 <== NOT EXECUTED
rtems_semaphore_release (tty->rawInBuf.Semaphore);
2004254: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
}
}
}
}
tty->rawInBufDropped += dropped;
2004258: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED
rtems_semaphore_release (tty->rawInBuf.Semaphore);
200425c: 40 00 09 e5 call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
2004260: c2 24 20 78 st %g1, [ %l0 + 0x78 ] <== NOT EXECUTED
return dropped;
2004264: 81 c7 e0 08 ret <== NOT EXECUTED
2004268: 81 e8 00 00 restore <== 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);
200426c: 7f ff f7 8e call 20020a4 <sparc_disable_interrupts> <== NOT EXECUTED
2004270: 01 00 00 00 nop <== NOT EXECUTED
2004274: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
tty->flow_ctrl &= ~FL_OSTOP;
2004278: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
200427c: 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;
2004280: 84 08 bf df and %g2, -33, %g2 <== NOT EXECUTED
2004284: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
2004288: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200428c: 12 80 00 57 bne 20043e8 <rtems_termios_enqueue_raw_characters+0x2c4><== NOT EXECUTED
2004290: 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);
}
/* reenable interrupts */
rtems_interrupt_enable(level);
2004294: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2004298: 7f ff f7 87 call 20020b4 <sparc_enable_interrupts> <== NOT EXECUTED
200429c: b2 06 60 01 inc %i1 <== NOT EXECUTED
}
return 0;
}
while (len--) {
c = *buf++;
20042a0: 10 bf ff e9 b 2004244 <rtems_termios_enqueue_raw_characters+0x120><== NOT EXECUTED
20042a4: a2 04 7f ff add %l1, -1, %l1 <== NOT EXECUTED
/* reenable interrupts */
rtems_interrupt_enable(level);
}
}
else {
newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;
20042a8: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
20042ac: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED
20042b0: 40 00 56 67 call 2019c4c <.urem> <== NOT EXECUTED
20042b4: 90 02 20 01 inc %o0 <== NOT EXECUTED
/* if chars_in_buffer > highwater */
rtems_interrupt_disable(level);
20042b8: 7f ff f7 7b call 20020a4 <sparc_disable_interrupts> <== NOT EXECUTED
20042bc: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
20042c0: aa 10 00 08 mov %o0, %l5 <== NOT EXECUTED
if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)
20042c4: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED
20042c8: d0 04 20 64 ld [ %l0 + 0x64 ], %o0 <== NOT EXECUTED
20042cc: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED
20042d0: 90 22 00 01 sub %o0, %g1, %o0 <== NOT EXECUTED
20042d4: 40 00 56 5e call 2019c4c <.urem> <== NOT EXECUTED
20042d8: 90 02 00 13 add %o0, %l3, %o0 <== NOT EXECUTED
% tty->rawInBuf.Size)
> tty->highwater) &&
20042dc: c2 04 20 c0 ld [ %l0 + 0xc0 ], %g1 <== NOT EXECUTED
20042e0: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED
20042e4: 08 80 00 13 bleu 2004330 <rtems_termios_enqueue_raw_characters+0x20c><== NOT EXECUTED
20042e8: 01 00 00 00 nop <== NOT EXECUTED
!(tty->flow_ctrl & FL_IREQXOF)) {
20042ec: 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)
20042f0: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
20042f4: 12 80 00 0f bne 2004330 <rtems_termios_enqueue_raw_characters+0x20c><== NOT EXECUTED
20042f8: 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;
20042fc: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2004300: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED
2004304: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED
if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))
2004308: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
200430c: 82 08 64 02 and %g1, 0x402, %g1 <== NOT EXECUTED
2004310: 80 a0 64 00 cmp %g1, 0x400 <== NOT EXECUTED
2004314: 02 80 00 3d be 2004408 <rtems_termios_enqueue_raw_characters+0x2e4><== NOT EXECUTED
2004318: 01 00 00 00 nop <== NOT EXECUTED
(*tty->device.write)(tty->minor,
(void *)&(tty->termios.c_cc[VSTOP]),
1);
}
}
else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF))
200431c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2004320: 82 08 61 04 and %g1, 0x104, %g1 <== NOT EXECUTED
2004324: 80 a0 61 00 cmp %g1, 0x100 <== NOT EXECUTED
2004328: 02 80 00 49 be 200444c <rtems_termios_enqueue_raw_characters+0x328><== NOT EXECUTED
200432c: 01 00 00 00 nop <== NOT EXECUTED
tty->device.stopRemoteTx(tty->minor);
}
}
}
/* reenable interrupts */
rtems_interrupt_enable(level);
2004330: 7f ff f7 61 call 20020b4 <sparc_enable_interrupts> <== NOT EXECUTED
2004334: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
if (newTail == tty->rawInBuf.Head) {
2004338: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED
200433c: 80 a0 40 13 cmp %g1, %l3 <== NOT EXECUTED
2004340: 22 80 00 22 be,a 20043c8 <rtems_termios_enqueue_raw_characters+0x2a4><== NOT EXECUTED
2004344: b0 06 20 01 inc %i0 <== NOT EXECUTED
dropped++;
}
else {
tty->rawInBuf.theBuf[newTail] = c;
2004348: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED
200434c: e4 28 40 13 stb %l2, [ %g1 + %l3 ] <== 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 )) {
2004350: 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;
2004354: e6 24 20 60 st %l3, [ %l0 + 0x60 ] <== NOT EXECUTED
/*
* check to see if rcv wakeup callback was set
*/
if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
2004358: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200435c: 32 bf ff b9 bne,a 2004240 <rtems_termios_enqueue_raw_characters+0x11c><== NOT EXECUTED
2004360: b2 06 60 01 inc %i1 <== NOT EXECUTED
2004364: c2 04 20 dc ld [ %l0 + 0xdc ], %g1 <== NOT EXECUTED
2004368: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200436c: 22 bf ff b5 be,a 2004240 <rtems_termios_enqueue_raw_characters+0x11c><== NOT EXECUTED
2004370: b2 06 60 01 inc %i1 <== NOT EXECUTED
(*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);
2004374: d2 04 20 e0 ld [ %l0 + 0xe0 ], %o1 <== NOT EXECUTED
2004378: 9f c0 40 00 call %g1 <== NOT EXECUTED
200437c: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
2004380: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
}
return 0;
}
while (len--) {
c = *buf++;
2004384: b2 06 60 01 inc %i1 <== 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);
tty->tty_rcvwakeup = 1;
2004388: c2 24 20 e4 st %g1, [ %l0 + 0xe4 ] <== NOT EXECUTED
}
return 0;
}
while (len--) {
c = *buf++;
200438c: 10 bf ff ae b 2004244 <rtems_termios_enqueue_raw_characters+0x120><== NOT EXECUTED
2004390: a2 04 7f ff add %l1, -1, %l1 <== NOT EXECUTED
/* FIXME: implement IXANY: any character restarts output */
/* if incoming XON/XOFF controls outgoing stream: */
if (tty->flow_ctrl & FL_MDXON) {
/* if received char is V_STOP and V_START (both are equal value) */
if (c == tty->termios.c_cc[VSTOP]) {
if (c == tty->termios.c_cc[VSTART]) {
2004394: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2004398: 02 80 00 0f be 20043d4 <rtems_termios_enqueue_raw_characters+0x2b0><== NOT EXECUTED
200439c: 01 00 00 00 nop <== NOT EXECUTED
tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;
}
else {
/* VSTOP received (other code than VSTART) */
/* stop output */
tty->flow_ctrl |= FL_ORCVXOF;
20043a0: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
}
}
}
tty->rawInBufDropped += dropped;
rtems_semaphore_release (tty->rawInBuf.Semaphore);
return dropped;
20043a4: a8 10 20 01 mov 1, %l4 <== NOT EXECUTED
tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;
}
else {
/* VSTOP received (other code than VSTART) */
/* stop output */
tty->flow_ctrl |= FL_ORCVXOF;
20043a8: 82 10 60 10 or %g1, 0x10, %g1 <== NOT EXECUTED
20043ac: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED
20043b0: 30 bf ff 9e b,a 2004228 <rtems_termios_enqueue_raw_characters+0x104><== NOT EXECUTED
flow_rcv = true;
}
else if (c == tty->termios.c_cc[VSTART]) {
/* VSTART received */
/* restart output */
tty->flow_ctrl &= ~FL_ORCVXOF;
20043b4: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
}
}
}
tty->rawInBufDropped += dropped;
rtems_semaphore_release (tty->rawInBuf.Semaphore);
return dropped;
20043b8: a8 10 20 01 mov 1, %l4 <== NOT EXECUTED
flow_rcv = true;
}
else if (c == tty->termios.c_cc[VSTART]) {
/* VSTART received */
/* restart output */
tty->flow_ctrl &= ~FL_ORCVXOF;
20043bc: 82 08 7f ef and %g1, -17, %g1 <== NOT EXECUTED
20043c0: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED
20043c4: 30 bf ff 99 b,a 2004228 <rtems_termios_enqueue_raw_characters+0x104><== NOT EXECUTED
}
return 0;
}
while (len--) {
c = *buf++;
20043c8: b2 06 60 01 inc %i1 <== NOT EXECUTED
20043cc: 10 bf ff 9e b 2004244 <rtems_termios_enqueue_raw_characters+0x120><== NOT EXECUTED
20043d0: a2 04 7f ff add %l1, -1, %l1 <== NOT EXECUTED
/* if received char is V_STOP and V_START (both are equal value) */
if (c == tty->termios.c_cc[VSTOP]) {
if (c == tty->termios.c_cc[VSTART]) {
/* received VSTOP and VSTART==VSTOP? */
/* then toggle "stop output" status */
tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;
20043d4: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
}
}
}
tty->rawInBufDropped += dropped;
rtems_semaphore_release (tty->rawInBuf.Semaphore);
return dropped;
20043d8: a8 10 20 01 mov 1, %l4 <== NOT EXECUTED
/* if received char is V_STOP and V_START (both are equal value) */
if (c == tty->termios.c_cc[VSTOP]) {
if (c == tty->termios.c_cc[VSTART]) {
/* received VSTOP and VSTART==VSTOP? */
/* then toggle "stop output" status */
tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;
20043dc: 82 18 60 10 xor %g1, 0x10, %g1 <== NOT EXECUTED
20043e0: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED
20043e4: 30 bf ff 91 b,a 2004228 <rtems_termios_enqueue_raw_characters+0x104><== NOT EXECUTED
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,
&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1);
20043e8: 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,
20043ec: d2 04 20 7c ld [ %l0 + 0x7c ], %o1 <== NOT EXECUTED
20043f0: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED
20043f4: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
20043f8: 92 02 40 02 add %o1, %g2, %o1 <== NOT EXECUTED
20043fc: 9f c0 40 00 call %g1 <== NOT EXECUTED
2004400: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
2004404: 30 bf ff a4 b,a 2004294 <rtems_termios_enqueue_raw_characters+0x170><== NOT EXECUTED
!(tty->flow_ctrl & FL_IREQXOF)) {
/* incoming data stream should be stopped */
tty->flow_ctrl |= FL_IREQXOF;
if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))
== (FL_MDXOF ) ){
if ((tty->flow_ctrl & FL_OSTOP) ||
2004408: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
200440c: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED
2004410: 12 80 00 06 bne 2004428 <rtems_termios_enqueue_raw_characters+0x304><== NOT EXECUTED
2004414: 01 00 00 00 nop <== NOT EXECUTED
(tty->rawOutBufState == rob_idle)) {
2004418: c2 04 20 94 ld [ %l0 + 0x94 ], %g1 <== NOT EXECUTED
200441c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2004420: 12 bf ff c4 bne 2004330 <rtems_termios_enqueue_raw_characters+0x20c><== NOT EXECUTED
2004424: 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;
2004428: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED
(*tty->device.write)(tty->minor,
200442c: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED
2004430: 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;
2004434: 84 10 a0 02 or %g2, 2, %g2 <== NOT EXECUTED
(*tty->device.write)(tty->minor,
2004438: 92 10 00 17 mov %l7, %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;
200443c: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED
(*tty->device.write)(tty->minor,
2004440: 9f c0 40 00 call %g1 <== NOT EXECUTED
2004444: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
2004448: 30 bf ff ba b,a 2004330 <rtems_termios_enqueue_raw_characters+0x20c><== NOT EXECUTED
1);
}
}
else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF))
== (FL_MDRTS ) ) {
tty->flow_ctrl |= FL_IRTSOFF;
200444c: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED
/* deactivate RTS line */
if (tty->device.stopRemoteTx != NULL) {
2004450: 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;
2004454: 84 10 a0 04 or %g2, 4, %g2 <== NOT EXECUTED
2004458: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED
/* deactivate RTS line */
if (tty->device.stopRemoteTx != NULL) {
200445c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2004460: 02 bf ff b4 be 2004330 <rtems_termios_enqueue_raw_characters+0x20c><== NOT EXECUTED
2004464: 01 00 00 00 nop <== NOT EXECUTED
tty->device.stopRemoteTx(tty->minor);
2004468: 9f c0 40 00 call %g1 <== NOT EXECUTED
200446c: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
2004470: 30 bf ff b0 b,a 2004330 <rtems_termios_enqueue_raw_characters+0x20c><== NOT EXECUTED
02003e20 <rtems_termios_initialize>:
struct rtems_termios_tty *rtems_termios_ttyTail;
rtems_id rtems_termios_ttyMutex;
void
rtems_termios_initialize (void)
{
2003e20: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code sc;
/*
* Create the mutex semaphore for the tty list
*/
if (!rtems_termios_ttyMutex) {
2003e24: 19 00 80 76 sethi %hi(0x201d800), %o4
2003e28: c2 03 22 20 ld [ %o4 + 0x220 ], %g1 ! 201da20 <rtems_termios_ttyMutex>
2003e2c: 80 a0 60 00 cmp %g1, 0
2003e30: 02 80 00 04 be 2003e40 <rtems_termios_initialize+0x20>
2003e34: 98 13 22 20 or %o4, 0x220, %o4
2003e38: 81 c7 e0 08 ret
2003e3c: 81 e8 00 00 restore
sc = rtems_semaphore_create (
2003e40: 11 15 14 9b sethi %hi(0x54526c00), %o0
2003e44: 92 10 20 01 mov 1, %o1
2003e48: 90 12 21 69 or %o0, 0x169, %o0
2003e4c: 94 10 20 54 mov 0x54, %o2
2003e50: 40 00 0a 00 call 2006650 <rtems_semaphore_create>
2003e54: 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)
2003e58: 80 a2 20 00 cmp %o0, 0
2003e5c: 02 bf ff f7 be 2003e38 <rtems_termios_initialize+0x18> <== ALWAYS TAKEN
2003e60: 01 00 00 00 nop
rtems_fatal_error_occurred (sc);
2003e64: 40 00 0c 3b call 2006f50 <rtems_fatal_error_occurred> <== NOT EXECUTED
020051b4 <rtems_termios_ioctl>:
}
}
rtems_status_code
rtems_termios_ioctl (void *arg)
{
20051b4: 9d e3 bf a0 save %sp, -96, %sp
rtems_libio_ioctl_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
20051b8: c2 06 00 00 ld [ %i0 ], %g1
struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer;
rtems_status_code sc;
args->ioctl_return = 0;
20051bc: 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;
20051c0: e0 00 60 38 ld [ %g1 + 0x38 ], %l0
struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer;
20051c4: 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);
20051c8: d0 04 20 18 ld [ %l0 + 0x18 ], %o0
20051cc: 92 10 20 00 clr %o1
20051d0: 40 00 05 c1 call 20068d4 <rtems_semaphore_obtain>
20051d4: 94 10 20 00 clr %o2
if (sc != RTEMS_SUCCESSFUL) {
20051d8: a2 92 20 00 orcc %o0, 0, %l1
20051dc: 32 80 00 16 bne,a 2005234 <rtems_termios_ioctl+0x80> <== NEVER TAKEN
20051e0: e2 26 20 0c st %l1, [ %i0 + 0xc ] <== NOT EXECUTED
args->ioctl_return = sc;
return sc;
}
switch (args->command) {
20051e4: c2 06 20 04 ld [ %i0 + 4 ], %g1
20051e8: 80 a0 60 04 cmp %g1, 4
20051ec: 22 80 00 0c be,a 200521c <rtems_termios_ioctl+0x68> <== NEVER TAKEN
20051f0: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED
20051f4: 18 80 00 12 bgu 200523c <rtems_termios_ioctl+0x88> <== NEVER TAKEN
20051f8: 05 10 01 19 sethi %hi(0x40046400), %g2
20051fc: 80 a0 60 02 cmp %g1, 2
2005200: 22 80 00 26 be,a 2005298 <rtems_termios_ioctl+0xe4>
2005204: d2 06 20 08 ld [ %i0 + 8 ], %o1
2005208: 08 80 00 81 bleu 200540c <rtems_termios_ioctl+0x258>
200520c: 80 a0 60 01 cmp %g1, 1
if (tty->device.setAttributes)
(*tty->device.setAttributes)(tty->minor, &tty->termios);
break;
case RTEMS_IO_TCDRAIN:
drainOutput (tty);
2005210: 7f ff fe ca call 2004d38 <drainOutput>
2005214: 90 10 00 10 mov %l0, %o0
break;
2005218: 30 80 00 04 b,a 2005228 <rtems_termios_ioctl+0x74>
case RTEMS_IO_SNDWAKEUP:
tty->tty_snd = *wakeup;
break;
case RTEMS_IO_RCVWAKEUP:
tty->tty_rcv = *wakeup;
200521c: c2 24 20 dc st %g1, [ %l0 + 0xdc ] <== NOT EXECUTED
2005220: c2 04 a0 04 ld [ %l2 + 4 ], %g1 <== NOT EXECUTED
2005224: c2 24 20 e0 st %g1, [ %l0 + 0xe0 ] <== NOT EXECUTED
/* Half guess that this is the right operation */
*(int *)args->buffer = tty->ccount - tty->cindex + rawnc;
}
break;
}
rtems_semaphore_release (tty->osem);
2005228: 40 00 05 f2 call 20069f0 <rtems_semaphore_release>
200522c: d0 04 20 18 ld [ %l0 + 0x18 ], %o0
args->ioctl_return = sc;
2005230: e2 26 20 0c st %l1, [ %i0 + 0xc ]
return sc;
}
2005234: 81 c7 e0 08 ret
2005238: 91 e8 00 11 restore %g0, %l1, %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) {
200523c: 84 10 a2 7f or %g2, 0x27f, %g2 <== NOT EXECUTED
2005240: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2005244: 02 80 00 66 be 20053dc <rtems_termios_ioctl+0x228> <== NOT EXECUTED
2005248: 01 00 00 00 nop <== NOT EXECUTED
200524c: 18 80 00 77 bgu 2005428 <rtems_termios_ioctl+0x274> <== NOT EXECUTED
2005250: 05 10 01 1d sethi %hi(0x40047400), %g2 <== NOT EXECUTED
2005254: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED
2005258: 22 80 00 98 be,a 20054b8 <rtems_termios_ioctl+0x304> <== NOT EXECUTED
200525c: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED
default:
if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {
2005260: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 <== NOT EXECUTED
2005264: 03 00 80 75 sethi %hi(0x201d400), %g1 <== NOT EXECUTED
2005268: 85 28 a0 05 sll %g2, 5, %g2 <== NOT EXECUTED
200526c: 82 10 63 54 or %g1, 0x354, %g1 <== NOT EXECUTED
2005270: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
2005274: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED
2005278: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200527c: 02 bf ff eb be 2005228 <rtems_termios_ioctl+0x74> <== NOT EXECUTED
2005280: a2 10 20 0a mov 0xa, %l1 <== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);
2005284: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2005288: 9f c0 40 00 call %g1 <== NOT EXECUTED
200528c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
2005290: 10 bf ff e6 b 2005228 <rtems_termios_ioctl+0x74> <== NOT EXECUTED
2005294: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
case RTEMS_IO_GET_ATTRIBUTES:
*(struct termios *)args->buffer = tty->termios;
break;
case RTEMS_IO_SET_ATTRIBUTES:
tty->termios = *(struct termios *)args->buffer;
2005298: a4 04 20 30 add %l0, 0x30, %l2
200529c: 94 10 20 24 mov 0x24, %o2
20052a0: 40 00 2e a8 call 2010d40 <memcpy>
20052a4: 90 10 00 12 mov %l2, %o0
/*
* check for flow control options to be switched off
*/
/* check for outgoing XON/XOFF flow control switched off */
if (( tty->flow_ctrl & FL_MDXON) &&
20052a8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1
20052ac: 80 88 62 00 btst 0x200, %g1
20052b0: 02 80 00 19 be 2005314 <rtems_termios_ioctl+0x160>
20052b4: 01 00 00 00 nop
20052b8: c2 04 20 30 ld [ %l0 + 0x30 ], %g1
20052bc: 80 88 64 00 btst 0x400, %g1
20052c0: 12 80 00 15 bne 2005314 <rtems_termios_ioctl+0x160> <== ALWAYS TAKEN
20052c4: 01 00 00 00 nop
!(tty->termios.c_iflag & IXON)) {
/* clear related flags in flow_ctrl */
tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF);
20052c8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
20052cc: 82 08 7d ef and %g1, -529, %g1 <== NOT EXECUTED
20052d0: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED
/* has output been stopped due to received XOFF? */
if (tty->flow_ctrl & FL_OSTOP) {
20052d4: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
20052d8: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED
20052dc: 02 80 00 0e be 2005314 <rtems_termios_ioctl+0x160> <== NOT EXECUTED
20052e0: 01 00 00 00 nop <== NOT EXECUTED
/* disable interrupts */
rtems_interrupt_disable(level);
20052e4: 7f ff f3 70 call 20020a4 <sparc_disable_interrupts> <== NOT EXECUTED
20052e8: 01 00 00 00 nop <== NOT EXECUTED
20052ec: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
tty->flow_ctrl &= ~FL_OSTOP;
20052f0: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
20052f4: 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;
20052f8: 84 08 bf df and %g2, -33, %g2 <== NOT EXECUTED
20052fc: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
2005300: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2005304: 12 80 00 a7 bne 20055a0 <rtems_termios_ioctl+0x3ec> <== NOT EXECUTED
2005308: 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);
}
/* reenable interrupts */
rtems_interrupt_enable(level);
200530c: 7f ff f3 6a call 20020b4 <sparc_enable_interrupts> <== NOT EXECUTED
2005310: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
}
}
/* check for incoming XON/XOFF flow control switched off */
if (( tty->flow_ctrl & FL_MDXOF) &&
2005314: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1
2005318: 80 88 64 00 btst 0x400, %g1
200531c: 02 80 00 0c be 200534c <rtems_termios_ioctl+0x198> <== ALWAYS TAKEN
2005320: 03 00 00 04 sethi %hi(0x1000), %g1
2005324: c4 04 20 30 ld [ %l0 + 0x30 ], %g2 <== NOT EXECUTED
2005328: 80 88 80 01 btst %g2, %g1 <== NOT EXECUTED
200532c: 12 80 00 08 bne 200534c <rtems_termios_ioctl+0x198> <== NOT EXECUTED
2005330: 01 00 00 00 nop <== NOT EXECUTED
!(tty->termios.c_iflag & IXOFF)) {
/* clear related flags in flow_ctrl */
tty->flow_ctrl &= ~(FL_MDXOF);
2005334: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2005338: 82 08 7b ff and %g1, -1025, %g1 <== NOT EXECUTED
200533c: 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);
2005340: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2005344: 82 08 7f fd and %g1, -3, %g1 <== NOT EXECUTED
2005348: 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) &&
200534c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1
2005350: 80 88 61 00 btst 0x100, %g1
2005354: 12 80 00 5d bne 20054c8 <rtems_termios_ioctl+0x314> <== NEVER TAKEN
2005358: c4 04 20 38 ld [ %l0 + 0x38 ], %g2
/*
* check for flow control options to be switched on
*/
/* check for incoming RTS/CTS flow control switched on */
if (tty->termios.c_cflag & CRTSCTS) {
200535c: 80 a0 a0 00 cmp %g2, 0
2005360: 06 80 00 84 bl 2005570 <rtems_termios_ioctl+0x3bc> <== NEVER TAKEN
2005364: 01 00 00 00 nop
tty->flow_ctrl |= FL_MDRTS;
}
/* check for incoming XON/XOF flow control switched on */
if (tty->termios.c_iflag & IXOFF) {
2005368: c2 04 20 30 ld [ %l0 + 0x30 ], %g1
200536c: 05 00 00 04 sethi %hi(0x1000), %g2
2005370: 80 88 40 02 btst %g1, %g2
2005374: 02 80 00 06 be 200538c <rtems_termios_ioctl+0x1d8> <== ALWAYS TAKEN
2005378: 80 88 64 00 btst 0x400, %g1
tty->flow_ctrl |= FL_MDXOF;
200537c: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED
2005380: 84 10 a4 00 or %g2, 0x400, %g2 <== NOT EXECUTED
2005384: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED
}
/* check for outgoing XON/XOF flow control switched on */
if (tty->termios.c_iflag & IXON) {
2005388: 80 88 64 00 btst 0x400, %g1 <== NOT EXECUTED
200538c: 22 80 00 06 be,a 20053a4 <rtems_termios_ioctl+0x1f0> <== NEVER TAKEN
2005390: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED
tty->flow_ctrl |= FL_MDXON;
2005394: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1
2005398: 82 10 62 00 or %g1, 0x200, %g1
200539c: 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) {
20053a0: c2 04 20 3c ld [ %l0 + 0x3c ], %g1
20053a4: 80 88 60 02 btst 2, %g1
20053a8: 02 80 00 5e be 2005520 <rtems_termios_ioctl+0x36c>
20053ac: 01 00 00 00 nop
else
tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;
}
else {
if (tty->termios.c_cc[VMIN]) {
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
20053b0: c0 24 20 6c clr [ %l0 + 0x6c ]
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
20053b4: c0 24 20 70 clr [ %l0 + 0x70 ]
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
20053b8: c0 24 20 74 clr [ %l0 + 0x74 ]
else {
tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;
}
}
}
if (tty->device.setAttributes)
20053bc: c2 04 20 a8 ld [ %l0 + 0xa8 ], %g1
20053c0: 80 a0 60 00 cmp %g1, 0
20053c4: 02 bf ff 99 be 2005228 <rtems_termios_ioctl+0x74>
20053c8: 01 00 00 00 nop
(*tty->device.setAttributes)(tty->minor, &tty->termios);
20053cc: d0 04 20 10 ld [ %l0 + 0x10 ], %o0
20053d0: 9f c0 40 00 call %g1
20053d4: 92 10 00 12 mov %l2, %o1
20053d8: 30 bf ff 94 b,a 2005228 <rtems_termios_ioctl+0x74>
*(int*)(args->buffer)=tty->t_line;
break;
#endif
case FIONREAD:
{
int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;
20053dc: c4 04 20 60 ld [ %l0 + 0x60 ], %g2 <== NOT EXECUTED
20053e0: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED
if ( rawnc < 0 )
20053e4: 82 a0 80 01 subcc %g2, %g1, %g1 <== NOT EXECUTED
20053e8: 0c 80 00 5f bneg 2005564 <rtems_termios_ioctl+0x3b0> <== NOT EXECUTED
20053ec: 01 00 00 00 nop <== NOT EXECUTED
rawnc += tty->rawInBuf.Size;
/* Half guess that this is the right operation */
*(int *)args->buffer = tty->ccount - tty->cindex + rawnc;
20053f0: c8 04 20 20 ld [ %l0 + 0x20 ], %g4 <== NOT EXECUTED
20053f4: c4 04 20 24 ld [ %l0 + 0x24 ], %g2 <== NOT EXECUTED
20053f8: c6 06 20 08 ld [ %i0 + 8 ], %g3 <== NOT EXECUTED
20053fc: 84 21 00 02 sub %g4, %g2, %g2 <== NOT EXECUTED
2005400: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
2005404: 10 bf ff 89 b 2005228 <rtems_termios_ioctl+0x74> <== NOT EXECUTED
2005408: c2 20 c0 00 st %g1, [ %g3 ] <== 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) {
200540c: 32 bf ff 96 bne,a 2005264 <rtems_termios_ioctl+0xb0> <== NEVER TAKEN
2005410: 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;
2005414: d0 06 20 08 ld [ %i0 + 8 ], %o0
2005418: 92 04 20 30 add %l0, 0x30, %o1
200541c: 40 00 2e 49 call 2010d40 <memcpy>
2005420: 94 10 20 24 mov 0x24, %o2
break;
2005424: 30 bf ff 81 b,a 2005228 <rtems_termios_ioctl+0x74>
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL) {
args->ioctl_return = sc;
return sc;
}
switch (args->command) {
2005428: 84 10 a0 1a or %g2, 0x1a, %g2 <== NOT EXECUTED
200542c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2005430: 02 80 00 1e be 20054a8 <rtems_termios_ioctl+0x2f4> <== NOT EXECUTED
2005434: 05 20 01 1d sethi %hi(0x80047400), %g2 <== NOT EXECUTED
2005438: 84 10 a0 1b or %g2, 0x1b, %g2 ! 8004741b <RAM_END+0x7dc4741b><== NOT EXECUTED
200543c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2005440: 32 bf ff 89 bne,a 2005264 <rtems_termios_ioctl+0xb0> <== NOT EXECUTED
2005444: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 <== NOT EXECUTED
#if 1 /* FIXME */
case TIOCSETD:
/*
* close old line discipline
*/
if (rtems_termios_linesw[tty->t_line].l_close != NULL) {
2005448: c2 04 20 cc ld [ %l0 + 0xcc ], %g1 <== NOT EXECUTED
200544c: 25 00 80 75 sethi %hi(0x201d400), %l2 <== NOT EXECUTED
2005450: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED
2005454: a4 14 a3 54 or %l2, 0x354, %l2 <== NOT EXECUTED
2005458: 82 04 80 01 add %l2, %g1, %g1 <== NOT EXECUTED
200545c: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED
2005460: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2005464: 22 80 00 06 be,a 200547c <rtems_termios_ioctl+0x2c8> <== NOT EXECUTED
2005468: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_close(tty);
200546c: 9f c0 40 00 call %g1 <== NOT EXECUTED
2005470: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2005474: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
}
tty->t_line=*(int*)(args->buffer);
2005478: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED
tty->t_sc = NULL; /* ensure that no more valid data */
200547c: c0 24 20 d0 clr [ %l0 + 0xd0 ] <== 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);
2005480: 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) {
2005484: 83 28 a0 05 sll %g2, 5, %g1 <== NOT EXECUTED
2005488: c2 04 80 01 ld [ %l2 + %g1 ], %g1 <== NOT EXECUTED
200548c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2005490: 02 bf ff 66 be 2005228 <rtems_termios_ioctl+0x74> <== NOT EXECUTED
2005494: c4 24 20 cc st %g2, [ %l0 + 0xcc ] <== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_open(tty);
2005498: 9f c0 40 00 call %g1 <== NOT EXECUTED
200549c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20054a0: 10 bf ff 62 b 2005228 <rtems_termios_ioctl+0x74> <== NOT EXECUTED
20054a4: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
}
break;
case TIOCGETD:
*(int*)(args->buffer)=tty->t_line;
20054a8: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED
20054ac: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 <== NOT EXECUTED
break;
20054b0: 10 bf ff 5e b 2005228 <rtems_termios_ioctl+0x74> <== NOT EXECUTED
20054b4: c4 20 40 00 st %g2, [ %g1 ] <== NOT EXECUTED
case RTEMS_IO_TCDRAIN:
drainOutput (tty);
break;
case RTEMS_IO_SNDWAKEUP:
tty->tty_snd = *wakeup;
20054b8: c2 24 20 d4 st %g1, [ %l0 + 0xd4 ] <== NOT EXECUTED
20054bc: c2 04 a0 04 ld [ %l2 + 4 ], %g1 <== NOT EXECUTED
break;
20054c0: 10 bf ff 5a b 2005228 <rtems_termios_ioctl+0x74> <== NOT EXECUTED
20054c4: c2 24 20 d8 st %g1, [ %l0 + 0xd8 ] <== NOT EXECUTED
/* FIXME: what happens, if we had sent XOFF but not yet XON? */
tty->flow_ctrl &= ~(FL_ISNTXOF);
}
/* check for incoming RTS/CTS flow control switched off */
if (( tty->flow_ctrl & FL_MDRTS) &&
20054c8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
20054cc: 06 80 00 29 bl 2005570 <rtems_termios_ioctl+0x3bc> <== NOT EXECUTED
20054d0: 01 00 00 00 nop <== NOT EXECUTED
!(tty->termios.c_cflag & CRTSCTS)) {
/* clear related flags in flow_ctrl */
tty->flow_ctrl &= ~(FL_MDRTS);
20054d4: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
20054d8: 82 08 7e ff and %g1, -257, %g1 <== NOT EXECUTED
20054dc: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED
/* restart remote Tx, if it was stopped */
if ((tty->flow_ctrl & FL_IRTSOFF) &&
20054e0: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
20054e4: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED
20054e8: 02 80 00 09 be 200550c <rtems_termios_ioctl+0x358> <== NOT EXECUTED
20054ec: 01 00 00 00 nop <== NOT EXECUTED
(tty->device.startRemoteTx != NULL)) {
20054f0: 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) &&
20054f4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20054f8: 02 80 00 05 be 200550c <rtems_termios_ioctl+0x358> <== NOT EXECUTED
20054fc: 01 00 00 00 nop <== NOT EXECUTED
(tty->device.startRemoteTx != NULL)) {
tty->device.startRemoteTx(tty->minor);
2005500: 9f c0 40 00 call %g1 <== NOT EXECUTED
2005504: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
2005508: c4 04 20 38 ld [ %l0 + 0x38 ], %g2 <== NOT EXECUTED
}
tty->flow_ctrl &= ~(FL_IRTSOFF);
200550c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2005510: 82 08 7f fb and %g1, -5, %g1 <== NOT EXECUTED
2005514: 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) {
2005518: 10 bf ff 92 b 2005360 <rtems_termios_ioctl+0x1ac> <== NOT EXECUTED
200551c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
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;
2005520: 40 00 03 24 call 20061b0 <rtems_clock_get_ticks_per_second>
2005524: e6 0c 20 46 ldub [ %l0 + 0x46 ], %l3
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
}
else {
tty->vtimeTicks = tty->termios.c_cc[VTIME] *
2005528: 40 00 50 e3 call 20198b4 <.umul>
200552c: 92 10 00 13 mov %l3, %o1
2005530: 40 00 51 1b call 201999c <.udiv>
2005534: 92 10 20 0a mov 0xa, %o1
rtems_clock_get_ticks_per_second() / 10;
if (tty->termios.c_cc[VTIME]) {
2005538: c2 0c 20 46 ldub [ %l0 + 0x46 ], %g1
200553c: 80 a0 60 00 cmp %g1, 0
2005540: 02 80 00 11 be 2005584 <rtems_termios_ioctl+0x3d0> <== ALWAYS TAKEN
2005544: d0 24 20 54 st %o0, [ %l0 + 0x54 ]
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;
if (tty->termios.c_cc[VMIN])
2005548: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED
}
else {
tty->vtimeTicks = tty->termios.c_cc[VTIME] *
rtems_clock_get_ticks_per_second() / 10;
if (tty->termios.c_cc[VTIME]) {
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
200554c: c0 24 20 6c clr [ %l0 + 0x6c ] <== NOT EXECUTED
tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;
if (tty->termios.c_cc[VMIN])
2005550: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2005554: 12 bf ff 99 bne 20053b8 <rtems_termios_ioctl+0x204> <== NOT EXECUTED
2005558: d0 24 20 70 st %o0, [ %l0 + 0x70 ] <== NOT EXECUTED
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
else
tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;
200555c: 10 bf ff 98 b 20053bc <rtems_termios_ioctl+0x208> <== NOT EXECUTED
2005560: d0 24 20 74 st %o0, [ %l0 + 0x74 ] <== NOT EXECUTED
#endif
case FIONREAD:
{
int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;
if ( rawnc < 0 )
rawnc += tty->rawInBuf.Size;
2005564: c4 04 20 64 ld [ %l0 + 0x64 ], %g2 <== NOT EXECUTED
2005568: 10 bf ff a2 b 20053f0 <rtems_termios_ioctl+0x23c> <== NOT EXECUTED
200556c: 82 00 40 02 add %g1, %g2, %g1 <== 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) {
tty->flow_ctrl |= FL_MDRTS;
2005570: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2005574: 82 10 61 00 or %g1, 0x100, %g1 <== NOT EXECUTED
2005578: 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) {
200557c: 10 bf ff 7c b 200536c <rtems_termios_ioctl+0x1b8> <== NOT EXECUTED
2005580: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 <== NOT EXECUTED
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
else
tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;
}
else {
if (tty->termios.c_cc[VMIN]) {
2005584: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1
2005588: 80 a0 60 00 cmp %g1, 0
200558c: 32 bf ff 8a bne,a 20053b4 <rtems_termios_ioctl+0x200> <== ALWAYS TAKEN
2005590: c0 24 20 6c clr [ %l0 + 0x6c ]
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
}
else {
tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;
2005594: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2005598: 10 bf ff 89 b 20053bc <rtems_termios_ioctl+0x208> <== NOT EXECUTED
200559c: c2 24 20 6c st %g1, [ %l0 + 0x6c ] <== NOT EXECUTED
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,
&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
20055a0: 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,
20055a4: d2 04 20 7c ld [ %l0 + 0x7c ], %o1 <== NOT EXECUTED
20055a8: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED
20055ac: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
20055b0: 92 02 40 02 add %o1, %g2, %o1 <== NOT EXECUTED
20055b4: 9f c0 40 00 call %g1 <== NOT EXECUTED
20055b8: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
20055bc: 30 bf ff 54 b,a 200530c <rtems_termios_ioctl+0x158> <== NOT EXECUTED
0200cf20 <rtems_termios_number_to_baud>:
#include <rtems/termiostypes.h>
int rtems_termios_number_to_baud(
int32_t baud
)
{
200cf20: 82 10 00 08 mov %o0, %g1
int termios_baud;
switch (baud) {
200cf24: 80 a2 24 b0 cmp %o0, 0x4b0
200cf28: 02 80 00 32 be 200cff0 <rtems_termios_number_to_baud+0xd0>
200cf2c: 90 10 20 09 mov 9, %o0
200cf30: 80 a0 64 b0 cmp %g1, 0x4b0
200cf34: 04 80 00 1e ble 200cfac <rtems_termios_number_to_baud+0x8c>
200cf38: 80 a0 60 86 cmp %g1, 0x86
200cf3c: 05 00 00 12 sethi %hi(0x4800), %g2
200cf40: 84 10 a3 00 or %g2, 0x300, %g2 ! 4b00 <PROM_START+0x4b00>
200cf44: 80 a0 40 02 cmp %g1, %g2
200cf48: 02 80 00 2a be 200cff0 <rtems_termios_number_to_baud+0xd0>
200cf4c: 90 10 20 0e mov 0xe, %o0
200cf50: 80 a0 40 02 cmp %g1, %g2
200cf54: 04 80 00 29 ble 200cff8 <rtems_termios_number_to_baud+0xd8>
200cf58: 80 a0 69 60 cmp %g1, 0x960
200cf5c: 07 00 00 70 sethi %hi(0x1c000), %g3
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;
200cf60: 05 00 00 04 sethi %hi(0x1000), %g2
int32_t baud
)
{
int termios_baud;
switch (baud) {
200cf64: 86 10 e2 00 or %g3, 0x200, %g3
200cf68: 80 a0 40 03 cmp %g1, %g3
200cf6c: 02 80 00 21 be 200cff0 <rtems_termios_number_to_baud+0xd0>
200cf70: 90 10 a0 02 or %g2, 2, %o0
200cf74: 80 a0 40 03 cmp %g1, %g3
200cf78: 04 80 00 46 ble 200d090 <rtems_termios_number_to_baud+0x170>
200cf7c: 07 00 00 25 sethi %hi(0x9400), %g3
200cf80: 07 00 00 e1 sethi %hi(0x38400), %g3
200cf84: 80 a0 40 03 cmp %g1, %g3
200cf88: 02 80 00 1a be 200cff0 <rtems_termios_number_to_baud+0xd0>
200cf8c: 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;
200cf90: 90 10 a0 04 or %g2, 4, %o0
int32_t baud
)
{
int termios_baud;
switch (baud) {
200cf94: 05 00 01 c2 sethi %hi(0x70800), %g2
200cf98: 80 a0 40 02 cmp %g1, %g2
200cf9c: 02 80 00 4b be 200d0c8 <rtems_termios_number_to_baud+0x1a8><== ALWAYS TAKEN
200cfa0: 01 00 00 00 nop
case 460800: termios_baud = B460800; break;
default: termios_baud = -1; break;
}
return termios_baud;
}
200cfa4: 81 c3 e0 08 retl
200cfa8: 90 10 3f ff mov -1, %o0 ! ffffffff <RAM_END+0xfdbfffff>
int32_t baud
)
{
int termios_baud;
switch (baud) {
200cfac: 02 80 00 11 be 200cff0 <rtems_termios_number_to_baud+0xd0>
200cfb0: 90 10 20 04 mov 4, %o0
200cfb4: 80 a0 60 86 cmp %g1, 0x86
200cfb8: 04 80 00 21 ble 200d03c <rtems_termios_number_to_baud+0x11c>
200cfbc: 80 a0 60 32 cmp %g1, 0x32
200cfc0: 80 a0 60 c8 cmp %g1, 0xc8
200cfc4: 02 80 00 0b be 200cff0 <rtems_termios_number_to_baud+0xd0>
200cfc8: 90 10 20 06 mov 6, %o0
200cfcc: 80 a0 60 c8 cmp %g1, 0xc8
200cfd0: 04 80 00 28 ble 200d070 <rtems_termios_number_to_baud+0x150>
200cfd4: 80 a0 60 96 cmp %g1, 0x96
200cfd8: 80 a0 61 2c cmp %g1, 0x12c
200cfdc: 02 80 00 05 be 200cff0 <rtems_termios_number_to_baud+0xd0>
200cfe0: 90 10 20 07 mov 7, %o0
200cfe4: 80 a0 62 58 cmp %g1, 0x258
200cfe8: 12 bf ff ef bne 200cfa4 <rtems_termios_number_to_baud+0x84><== NEVER TAKEN
200cfec: 90 10 20 08 mov 8, %o0
200cff0: 81 c3 e0 08 retl
200cff4: 01 00 00 00 nop
200cff8: 02 bf ff fe be 200cff0 <rtems_termios_number_to_baud+0xd0>
200cffc: 90 10 20 0b mov 0xb, %o0 ! b <PROM_START+0xb>
200d000: 80 a0 69 60 cmp %g1, 0x960
200d004: 04 80 00 2f ble 200d0c0 <rtems_termios_number_to_baud+0x1a0>
200d008: 80 a0 67 08 cmp %g1, 0x708
200d00c: 05 00 00 04 sethi %hi(0x1000), %g2
200d010: 84 10 a2 c0 or %g2, 0x2c0, %g2 ! 12c0 <PROM_START+0x12c0>
200d014: 80 a0 40 02 cmp %g1, %g2
200d018: 02 bf ff f6 be 200cff0 <rtems_termios_number_to_baud+0xd0>
200d01c: 90 10 20 0c mov 0xc, %o0
200d020: 05 00 00 09 sethi %hi(0x2400), %g2
200d024: 84 10 a1 80 or %g2, 0x180, %g2 ! 2580 <PROM_START+0x2580>
200d028: 80 a0 40 02 cmp %g1, %g2
200d02c: 12 bf ff de bne 200cfa4 <rtems_termios_number_to_baud+0x84>
200d030: 90 10 20 0d mov 0xd, %o0
200d034: 81 c3 e0 08 retl
200d038: 01 00 00 00 nop
200d03c: 02 bf ff ed be 200cff0 <rtems_termios_number_to_baud+0xd0>
200d040: 90 10 20 01 mov 1, %o0 ! 1 <PROM_START+0x1>
200d044: 80 a0 60 32 cmp %g1, 0x32
200d048: 04 80 00 0e ble 200d080 <rtems_termios_number_to_baud+0x160>
200d04c: 80 a0 60 00 cmp %g1, 0
200d050: 80 a0 60 4b cmp %g1, 0x4b
200d054: 02 bf ff e7 be 200cff0 <rtems_termios_number_to_baud+0xd0>
200d058: 90 10 20 02 mov 2, %o0
200d05c: 80 a0 60 6e cmp %g1, 0x6e
200d060: 12 bf ff d1 bne 200cfa4 <rtems_termios_number_to_baud+0x84><== NEVER TAKEN
200d064: 90 10 20 03 mov 3, %o0
200d068: 81 c3 e0 08 retl
200d06c: 01 00 00 00 nop
200d070: 12 bf ff cd bne 200cfa4 <rtems_termios_number_to_baud+0x84><== NEVER TAKEN
200d074: 90 10 20 05 mov 5, %o0 ! 5 <PROM_START+0x5>
200d078: 81 c3 e0 08 retl
200d07c: 01 00 00 00 nop
200d080: 12 bf ff c9 bne 200cfa4 <rtems_termios_number_to_baud+0x84>
200d084: 90 10 20 00 clr %o0 ! 0 <PROM_START>
case 460800: termios_baud = B460800; break;
default: termios_baud = -1; break;
}
return termios_baud;
}
200d088: 81 c3 e0 08 retl
200d08c: 01 00 00 00 nop
int32_t baud
)
{
int termios_baud;
switch (baud) {
200d090: 86 10 e2 00 or %g3, 0x200, %g3
200d094: 80 a0 40 03 cmp %g1, %g3
200d098: 02 bf ff d6 be 200cff0 <rtems_termios_number_to_baud+0xd0>
200d09c: 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;
200d0a0: 90 10 a0 01 or %g2, 1, %o0
int32_t baud
)
{
int termios_baud;
switch (baud) {
200d0a4: 05 00 00 38 sethi %hi(0xe000), %g2
200d0a8: 84 10 a1 00 or %g2, 0x100, %g2 ! e100 <PROM_START+0xe100>
200d0ac: 80 a0 40 02 cmp %g1, %g2
200d0b0: 32 bf ff d0 bne,a 200cff0 <rtems_termios_number_to_baud+0xd0><== NEVER TAKEN
200d0b4: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
200d0b8: 81 c3 e0 08 retl
200d0bc: 01 00 00 00 nop
200d0c0: 12 bf ff b9 bne 200cfa4 <rtems_termios_number_to_baud+0x84><== NEVER TAKEN
200d0c4: 90 10 20 0a mov 0xa, %o0 ! a <PROM_START+0xa>
200d0c8: 81 c3 e0 08 retl
020057b0 <rtems_termios_open>:
rtems_device_major_number major,
rtems_device_minor_number minor,
void *arg,
const rtems_termios_callbacks *callbacks
)
{
20057b0: 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,
20057b4: 23 00 80 76 sethi %hi(0x201d800), %l1
20057b8: d0 04 62 20 ld [ %l1 + 0x220 ], %o0 ! 201da20 <rtems_termios_ttyMutex>
20057bc: 92 10 20 00 clr %o1
20057c0: 40 00 04 45 call 20068d4 <rtems_semaphore_obtain>
20057c4: 94 10 20 00 clr %o2
RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
20057c8: a0 92 20 00 orcc %o0, 0, %l0
20057cc: 32 80 00 29 bne,a 2005870 <rtems_termios_open+0xc0> <== NEVER TAKEN
20057d0: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED
return sc;
for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) {
20057d4: 29 00 80 76 sethi %hi(0x201d800), %l4
20057d8: e4 05 22 28 ld [ %l4 + 0x228 ], %l2 ! 201da28 <rtems_termios_ttyHead>
20057dc: 80 a4 a0 00 cmp %l2, 0
20057e0: 32 80 00 08 bne,a 2005800 <rtems_termios_open+0x50>
20057e4: c2 04 a0 0c ld [ %l2 + 0xc ], %g1
static char c = 'a';
/*
* Create a new device
*/
tty = calloc (1, sizeof (struct rtems_termios_tty));
20057e8: 10 80 00 33 b 20058b4 <rtems_termios_open+0x104>
20057ec: 90 10 20 01 mov 1, %o0
*/
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) {
20057f0: 80 a4 a0 00 cmp %l2, 0
20057f4: 02 80 00 30 be 20058b4 <rtems_termios_open+0x104> <== ALWAYS TAKEN
20057f8: 90 10 20 01 mov 1, %o0
if ((tty->major == major) && (tty->minor == minor))
20057fc: c2 04 a0 0c ld [ %l2 + 0xc ], %g1 <== NOT EXECUTED
2005800: 80 a0 40 18 cmp %g1, %i0
2005804: 32 bf ff fb bne,a 20057f0 <rtems_termios_open+0x40>
2005808: e4 04 80 00 ld [ %l2 ], %l2
200580c: c2 04 a0 10 ld [ %l2 + 0x10 ], %g1
2005810: 80 a0 40 19 cmp %g1, %i1
2005814: 32 bf ff f7 bne,a 20057f0 <rtems_termios_open+0x40> <== NEVER TAKEN
2005818: e4 04 80 00 ld [ %l2 ], %l2 <== NOT EXECUTED
if (c++ == 'z')
c = 'a';
}
args->iop->data1 = tty;
if (!tty->refcount++) {
200581c: c2 04 a0 08 ld [ %l2 + 8 ], %g1
*/
if (c++ == 'z')
c = 'a';
}
args->iop->data1 = tty;
2005820: c6 06 80 00 ld [ %i2 ], %g3
if (!tty->refcount++) {
2005824: 84 00 60 01 add %g1, 1, %g2
*/
if (c++ == 'z')
c = 'a';
}
args->iop->data1 = tty;
2005828: e4 20 e0 38 st %l2, [ %g3 + 0x38 ]
if (!tty->refcount++) {
200582c: 80 a0 60 00 cmp %g1, 0
2005830: 12 80 00 0d bne 2005864 <rtems_termios_open+0xb4>
2005834: c4 24 a0 08 st %g2, [ %l2 + 8 ]
if (tty->device.firstOpen)
2005838: c2 04 a0 98 ld [ %l2 + 0x98 ], %g1
200583c: 80 a0 60 00 cmp %g1, 0
2005840: 02 80 00 05 be 2005854 <rtems_termios_open+0xa4>
2005844: 90 10 00 18 mov %i0, %o0
(*tty->device.firstOpen)(major, minor, arg);
2005848: 92 10 00 19 mov %i1, %o1
200584c: 9f c0 40 00 call %g1
2005850: 94 10 00 1a mov %i2, %o2
/*
* start I/O tasks, if needed
*/
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
2005854: c2 04 a0 b4 ld [ %l2 + 0xb4 ], %g1
2005858: 80 a0 60 02 cmp %g1, 2
200585c: 22 80 00 07 be,a 2005878 <rtems_termios_open+0xc8> <== NEVER TAKEN
2005860: d0 04 a0 c4 ld [ %l2 + 0xc4 ], %o0 <== NOT EXECUTED
(rtems_task_argument)tty);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
}
}
rtems_semaphore_release (rtems_termios_ttyMutex);
2005864: 40 00 04 63 call 20069f0 <rtems_semaphore_release>
2005868: d0 04 62 20 ld [ %l1 + 0x220 ], %o0
return RTEMS_SUCCESSFUL;
}
200586c: b0 10 00 10 mov %l0, %i0
2005870: 81 c7 e0 08 ret
2005874: 81 e8 00 00 restore
(*tty->device.firstOpen)(major, minor, arg);
/*
* start I/O tasks, if needed
*/
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
sc = rtems_task_start(tty->rxTaskId,
2005878: 13 00 80 17 sethi %hi(0x2005c00), %o1 <== NOT EXECUTED
200587c: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2005880: 40 00 05 30 call 2006d40 <rtems_task_start> <== NOT EXECUTED
2005884: 92 12 60 a0 or %o1, 0xa0, %o1 <== NOT EXECUTED
rtems_termios_rxdaemon,
(rtems_task_argument)tty);
if (sc != RTEMS_SUCCESSFUL)
2005888: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200588c: 12 80 00 bf bne 2005b88 <rtems_termios_open+0x3d8> <== NOT EXECUTED
2005890: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
sc = rtems_task_start(tty->txTaskId,
2005894: d0 04 a0 c8 ld [ %l2 + 0xc8 ], %o0 <== NOT EXECUTED
2005898: 13 00 80 17 sethi %hi(0x2005c00), %o1 <== NOT EXECUTED
200589c: 40 00 05 29 call 2006d40 <rtems_task_start> <== NOT EXECUTED
20058a0: 92 12 60 08 or %o1, 8, %o1 ! 2005c08 <rtems_termios_txdaemon><== NOT EXECUTED
rtems_termios_txdaemon,
(rtems_task_argument)tty);
if (sc != RTEMS_SUCCESSFUL)
20058a4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20058a8: 02 bf ff ef be 2005864 <rtems_termios_open+0xb4> <== NOT EXECUTED
20058ac: 01 00 00 00 nop <== NOT EXECUTED
20058b0: 30 80 00 b6 b,a 2005b88 <rtems_termios_open+0x3d8> <== NOT EXECUTED
static char c = 'a';
/*
* Create a new device
*/
tty = calloc (1, sizeof (struct rtems_termios_tty));
20058b4: 7f ff f4 6b call 2002a60 <calloc>
20058b8: 92 10 20 e8 mov 0xe8, %o1
if (tty == NULL) {
20058bc: a6 92 20 00 orcc %o0, 0, %l3
20058c0: 02 80 00 99 be 2005b24 <rtems_termios_open+0x374> <== NEVER TAKEN
20058c4: a4 10 00 13 mov %l3, %l2
return RTEMS_NO_MEMORY;
}
/*
* allocate raw input buffer
*/
tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;
20058c8: 03 00 80 74 sethi %hi(0x201d000), %g1
20058cc: c2 00 62 04 ld [ %g1 + 0x204 ], %g1 ! 201d204 <rtems_termios_raw_input_size>
20058d0: c2 24 e0 64 st %g1, [ %l3 + 0x64 ]
tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);
20058d4: d0 04 e0 64 ld [ %l3 + 0x64 ], %o0
20058d8: 7f ff f5 ed call 200308c <malloc>
20058dc: 01 00 00 00 nop
if (tty->rawInBuf.theBuf == NULL) {
20058e0: 80 a2 20 00 cmp %o0, 0
20058e4: 02 80 00 8e be 2005b1c <rtems_termios_open+0x36c> <== NEVER TAKEN
20058e8: d0 24 e0 58 st %o0, [ %l3 + 0x58 ]
return RTEMS_NO_MEMORY;
}
/*
* allocate raw output buffer
*/
tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;
20058ec: 03 00 80 74 sethi %hi(0x201d000), %g1
20058f0: c2 00 62 08 ld [ %g1 + 0x208 ], %g1 ! 201d208 <rtems_termios_raw_output_size>
20058f4: c2 24 e0 88 st %g1, [ %l3 + 0x88 ]
tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);
20058f8: d0 04 e0 88 ld [ %l3 + 0x88 ], %o0
20058fc: 7f ff f5 e4 call 200308c <malloc>
2005900: 01 00 00 00 nop
if (tty->rawOutBuf.theBuf == NULL) {
2005904: 80 a2 20 00 cmp %o0, 0
2005908: 02 80 00 8c be 2005b38 <rtems_termios_open+0x388> <== NEVER TAKEN
200590c: d0 24 e0 7c st %o0, [ %l3 + 0x7c ]
return RTEMS_NO_MEMORY;
}
/*
* allocate cooked buffer
*/
tty->cbuf = malloc (CBUFSIZE);
2005910: 03 00 80 74 sethi %hi(0x201d000), %g1
2005914: 7f ff f5 de call 200308c <malloc>
2005918: d0 00 62 00 ld [ %g1 + 0x200 ], %o0 ! 201d200 <rtems_termios_cbufsize>
if (tty->cbuf == NULL) {
200591c: 80 a2 20 00 cmp %o0, 0
2005920: 02 80 00 9c be 2005b90 <rtems_termios_open+0x3e0> <== NEVER TAKEN
2005924: d0 24 e0 1c st %o0, [ %l3 + 0x1c ]
tty->tty_rcvwakeup = 0;
/*
* link tty
*/
tty->forw = rtems_termios_ttyHead;
2005928: c2 05 22 28 ld [ %l4 + 0x228 ], %g1
return RTEMS_NO_MEMORY;
}
/*
* Initialize wakeup callbacks
*/
tty->tty_snd.sw_pfn = NULL;
200592c: c0 24 e0 d4 clr [ %l3 + 0xd4 ]
tty->tty_snd.sw_arg = NULL;
2005930: c0 24 e0 d8 clr [ %l3 + 0xd8 ]
tty->tty_rcv.sw_pfn = NULL;
2005934: c0 24 e0 dc clr [ %l3 + 0xdc ]
tty->tty_rcv.sw_arg = NULL;
2005938: c0 24 e0 e0 clr [ %l3 + 0xe0 ]
tty->tty_rcvwakeup = 0;
200593c: c0 24 e0 e4 clr [ %l3 + 0xe4 ]
/*
* link tty
*/
tty->forw = rtems_termios_ttyHead;
2005940: c2 24 c0 00 st %g1, [ %l3 ]
tty->back = NULL;
if (rtems_termios_ttyHead != NULL)
2005944: 80 a0 60 00 cmp %g1, 0
2005948: 02 80 00 03 be 2005954 <rtems_termios_open+0x1a4>
200594c: c0 24 e0 04 clr [ %l3 + 4 ]
rtems_termios_ttyHead->back = tty;
2005950: e6 20 60 04 st %l3, [ %g1 + 4 ]
rtems_termios_ttyHead = tty;
if (rtems_termios_ttyTail == NULL)
2005954: 03 00 80 76 sethi %hi(0x201d800), %g1
2005958: c4 00 62 24 ld [ %g1 + 0x224 ], %g2 ! 201da24 <rtems_termios_ttyTail>
200595c: 80 a0 a0 00 cmp %g2, 0
2005960: 02 80 00 a8 be 2005c00 <rtems_termios_open+0x450>
2005964: e6 25 22 28 st %l3, [ %l4 + 0x228 ]
tty->major = major;
/*
* Set up mutex semaphores
*/
sc = rtems_semaphore_create (
2005968: 29 00 80 74 sethi %hi(0x201d000), %l4
200596c: d0 4d 22 0c ldsb [ %l4 + 0x20c ], %o0 ! 201d20c <c.6362>
2005970: 03 15 14 9a sethi %hi(0x54526800), %g1
2005974: 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;
2005978: f2 24 e0 10 st %i1, [ %l3 + 0x10 ]
tty->major = major;
200597c: f0 24 e0 0c st %i0, [ %l3 + 0xc ]
/*
* Set up mutex semaphores
*/
sc = rtems_semaphore_create (
2005980: 90 12 00 01 or %o0, %g1, %o0
2005984: 92 10 20 01 mov 1, %o1
2005988: 94 10 20 54 mov 0x54, %o2
200598c: 96 10 20 00 clr %o3
2005990: 40 00 03 30 call 2006650 <rtems_semaphore_create>
2005994: 98 04 e0 14 add %l3, 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)
2005998: 80 a2 20 00 cmp %o0, 0
200599c: 12 80 00 7b bne 2005b88 <rtems_termios_open+0x3d8> <== NEVER TAKEN
20059a0: 03 15 14 9b sethi %hi(0x54526c00), %g1
rtems_fatal_error_occurred (sc);
sc = rtems_semaphore_create (
20059a4: d0 4d 22 0c ldsb [ %l4 + 0x20c ], %o0
20059a8: 82 10 63 00 or %g1, 0x300, %g1
20059ac: 92 10 20 01 mov 1, %o1
20059b0: 90 12 00 01 or %o0, %g1, %o0
20059b4: 94 10 20 54 mov 0x54, %o2
20059b8: 96 10 20 00 clr %o3
20059bc: 40 00 03 25 call 2006650 <rtems_semaphore_create>
20059c0: 98 04 e0 18 add %l3, 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)
20059c4: 80 a2 20 00 cmp %o0, 0
20059c8: 12 80 00 70 bne 2005b88 <rtems_termios_open+0x3d8> <== NEVER TAKEN
20059cc: 03 15 14 9e sethi %hi(0x54527800), %g1
rtems_fatal_error_occurred (sc);
sc = rtems_semaphore_create (
20059d0: d0 4d 22 0c ldsb [ %l4 + 0x20c ], %o0
20059d4: 92 10 20 00 clr %o1
20059d8: 90 12 00 01 or %o0, %g1, %o0
20059dc: 94 10 20 20 mov 0x20, %o2
20059e0: 96 10 20 00 clr %o3
20059e4: 40 00 03 1b call 2006650 <rtems_semaphore_create>
20059e8: 98 04 e0 8c add %l3, 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)
20059ec: 80 a2 20 00 cmp %o0, 0
20059f0: 12 80 00 66 bne 2005b88 <rtems_termios_open+0x3d8> <== NEVER TAKEN
20059f4: 92 10 00 1b mov %i3, %o1
rtems_fatal_error_occurred (sc);
tty->rawOutBufState = rob_idle;
20059f8: c0 24 e0 94 clr [ %l3 + 0x94 ]
/*
* Set callbacks
*/
tty->device = *callbacks;
20059fc: 90 04 e0 98 add %l3, 0x98, %o0
2005a00: 40 00 2c d0 call 2010d40 <memcpy>
2005a04: 94 10 20 20 mov 0x20, %o2
/*
* Create I/O tasks
*/
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
2005a08: c2 04 e0 b4 ld [ %l3 + 0xb4 ], %g1
2005a0c: 80 a0 60 02 cmp %g1, 2
2005a10: 02 80 00 65 be 2005ba4 <rtems_termios_open+0x3f4> <== NEVER TAKEN
2005a14: d0 4d 22 0c ldsb [ %l4 + 0x20c ], %o0
&tty->rxTaskId);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
}
if ((tty->device.pollRead == NULL) ||
2005a18: c2 04 e0 a0 ld [ %l3 + 0xa0 ], %g1
2005a1c: 80 a0 60 00 cmp %g1, 0
2005a20: 02 80 00 4f be 2005b5c <rtems_termios_open+0x3ac> <== NEVER TAKEN
2005a24: d0 4d 22 0c ldsb [ %l4 + 0x20c ], %o0
(tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){
2005a28: c2 04 e0 b4 ld [ %l3 + 0xb4 ], %g1
2005a2c: 80 a0 60 02 cmp %g1, 2
2005a30: 02 80 00 4c be 2005b60 <rtems_termios_open+0x3b0> <== NEVER TAKEN
2005a34: 03 15 14 9c sethi %hi(0x54527000), %g1
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;
2005a38: c0 24 e0 b8 clr [ %l3 + 0xb8 ]
/*
* set low/highwater mark for XON/XOFF support
*/
tty->lowwater = tty->rawInBuf.Size * 1/2;
2005a3c: c6 04 e0 64 ld [ %l3 + 0x64 ], %g3
tty->highwater = tty->rawInBuf.Size * 3/4;
/*
* Bump name characer
*/
if (c++ == 'z')
2005a40: c2 0d 22 0c ldub [ %l4 + 0x20c ], %g1
/* 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;
2005a44: 87 30 e0 01 srl %g3, 1, %g3
2005a48: c6 24 e0 bc st %g3, [ %l3 + 0xbc ]
}
/*
* Set default parameters
*/
tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;
2005a4c: 07 00 00 09 sethi %hi(0x2400), %g3
2005a50: 86 10 e1 02 or %g3, 0x102, %g3 ! 2502 <PROM_START+0x2502>
2005a54: c6 24 e0 30 st %g3, [ %l3 + 0x30 ]
tty->termios.c_oflag = OPOST | ONLCR | XTABS;
2005a58: 07 00 00 06 sethi %hi(0x1800), %g3
2005a5c: 86 10 e0 05 or %g3, 5, %g3 ! 1805 <PROM_START+0x1805>
2005a60: c6 24 e0 34 st %g3, [ %l3 + 0x34 ]
tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;
2005a64: 86 10 28 bd mov 0x8bd, %g3
2005a68: c6 24 e0 38 st %g3, [ %l3 + 0x38 ]
tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;
2005a6c: 07 00 00 20 sethi %hi(0x8000), %g3
2005a70: 86 10 e2 3b or %g3, 0x23b, %g3 ! 823b <PROM_START+0x823b>
2005a74: c6 24 e0 3c st %g3, [ %l3 + 0x3c ]
tty->termios.c_cc[VINTR] = '\003';
2005a78: 86 10 20 03 mov 3, %g3
2005a7c: c6 2c e0 41 stb %g3, [ %l3 + 0x41 ]
tty->termios.c_cc[VQUIT] = '\034';
2005a80: 86 10 20 1c mov 0x1c, %g3
2005a84: c6 2c e0 42 stb %g3, [ %l3 + 0x42 ]
tty->termios.c_cc[VERASE] = '\177';
2005a88: 86 10 20 7f mov 0x7f, %g3
2005a8c: c6 2c e0 43 stb %g3, [ %l3 + 0x43 ]
tty->termios.c_cc[VKILL] = '\025';
2005a90: 86 10 20 15 mov 0x15, %g3
2005a94: c6 2c e0 44 stb %g3, [ %l3 + 0x44 ]
tty->termios.c_cc[VEOF] = '\004';
2005a98: 86 10 20 04 mov 4, %g3
2005a9c: c6 2c e0 45 stb %g3, [ %l3 + 0x45 ]
tty->termios.c_cc[VEOL] = '\000';
tty->termios.c_cc[VEOL2] = '\000';
tty->termios.c_cc[VSTART] = '\021';
2005aa0: 86 10 20 11 mov 0x11, %g3
2005aa4: c6 2c e0 49 stb %g3, [ %l3 + 0x49 ]
tty->termios.c_cc[VSTOP] = '\023';
2005aa8: 86 10 20 13 mov 0x13, %g3
2005aac: c6 2c e0 4a stb %g3, [ %l3 + 0x4a ]
tty->termios.c_cc[VSUSP] = '\032';
2005ab0: 86 10 20 1a mov 0x1a, %g3
2005ab4: c6 2c e0 4b stb %g3, [ %l3 + 0x4b ]
tty->termios.c_cc[VREPRINT] = '\022';
2005ab8: 86 10 20 12 mov 0x12, %g3
2005abc: c6 2c e0 4d stb %g3, [ %l3 + 0x4d ]
tty->termios.c_cc[VDISCARD] = '\017';
2005ac0: 86 10 20 0f mov 0xf, %g3
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;
2005ac4: c4 04 e0 64 ld [ %l3 + 0x64 ], %g2
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';
2005ac8: c6 2c e0 4e stb %g3, [ %l3 + 0x4e ]
tty->termios.c_cc[VWERASE] = '\027';
2005acc: 86 10 20 17 mov 0x17, %g3
2005ad0: c6 2c e0 4f stb %g3, [ %l3 + 0x4f ]
tty->termios.c_cc[VLNEXT] = '\026';
2005ad4: 86 10 20 16 mov 0x16, %g3
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';
2005ad8: c0 2c e0 4c clrb [ %l3 + 0x4c ]
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';
2005adc: c6 2c e0 50 stb %g3, [ %l3 + 0x50 ]
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';
tty->termios.c_cc[VEOL2] = '\000';
2005ae0: c0 2c e0 51 clrb [ %l3 + 0x51 ]
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;
2005ae4: 87 28 a0 01 sll %g2, 1, %g3
2005ae8: 84 00 c0 02 add %g3, %g2, %g2
2005aec: 85 30 a0 02 srl %g2, 2, %g2
2005af0: c4 24 e0 c0 st %g2, [ %l3 + 0xc0 ]
/*
* Bump name characer
*/
if (c++ == 'z')
2005af4: 84 00 60 01 add %g1, 1, %g2
2005af8: 83 28 60 18 sll %g1, 0x18, %g1
2005afc: 83 38 60 18 sra %g1, 0x18, %g1
2005b00: 80 a0 60 7a cmp %g1, 0x7a
2005b04: 12 bf ff 46 bne 200581c <rtems_termios_open+0x6c> <== ALWAYS TAKEN
2005b08: c4 2d 22 0c stb %g2, [ %l4 + 0x20c ]
c = 'a';
2005b0c: 84 10 20 61 mov 0x61, %g2 <== NOT EXECUTED
2005b10: 03 00 80 74 sethi %hi(0x201d000), %g1 <== NOT EXECUTED
2005b14: 10 bf ff 42 b 200581c <rtems_termios_open+0x6c> <== NOT EXECUTED
2005b18: c4 28 62 0c stb %g2, [ %g1 + 0x20c ] ! 201d20c <c.6362> <== NOT EXECUTED
* allocate raw input buffer
*/
tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;
tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);
if (tty->rawInBuf.theBuf == NULL) {
free(tty);
2005b1c: 7f ff f4 74 call 2002cec <free> <== NOT EXECUTED
2005b20: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
rtems_semaphore_release (rtems_termios_ttyMutex);
2005b24: d0 04 62 20 ld [ %l1 + 0x220 ], %o0 <== NOT EXECUTED
2005b28: 40 00 03 b2 call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
2005b2c: a0 10 20 1a mov 0x1a, %l0 <== NOT EXECUTED
return RTEMS_NO_MEMORY;
2005b30: 81 c7 e0 08 ret <== NOT EXECUTED
2005b34: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED
* allocate raw output buffer
*/
tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;
tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);
if (tty->rawOutBuf.theBuf == NULL) {
free((void *)(tty->rawInBuf.theBuf));
2005b38: d0 04 e0 58 ld [ %l3 + 0x58 ], %o0 <== NOT EXECUTED
free(tty);
rtems_semaphore_release (rtems_termios_ttyMutex);
2005b3c: a0 10 20 1a mov 0x1a, %l0 <== NOT EXECUTED
* allocate cooked buffer
*/
tty->cbuf = malloc (CBUFSIZE);
if (tty->cbuf == NULL) {
free((void *)(tty->rawOutBuf.theBuf));
free((void *)(tty->rawInBuf.theBuf));
2005b40: 7f ff f4 6b call 2002cec <free> <== NOT EXECUTED
2005b44: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED
free(tty);
2005b48: 7f ff f4 69 call 2002cec <free> <== NOT EXECUTED
2005b4c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
rtems_semaphore_release (rtems_termios_ttyMutex);
2005b50: 40 00 03 a8 call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
2005b54: d0 04 62 20 ld [ %l1 + 0x220 ], %o0 <== NOT EXECUTED
return RTEMS_NO_MEMORY;
2005b58: 30 bf ff 46 b,a 2005870 <rtems_termios_open+0xc0> <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
}
if ((tty->device.pollRead == NULL) ||
(tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){
sc = rtems_semaphore_create (
2005b5c: 03 15 14 9c sethi %hi(0x54527000), %g1 <== NOT EXECUTED
2005b60: 82 10 62 00 or %g1, 0x200, %g1 ! 54527200 <RAM_END+0x52127200><== NOT EXECUTED
2005b64: 92 10 20 00 clr %o1 <== NOT EXECUTED
2005b68: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
2005b6c: 94 10 20 24 mov 0x24, %o2 <== NOT EXECUTED
2005b70: 96 10 20 00 clr %o3 <== NOT EXECUTED
2005b74: 40 00 02 b7 call 2006650 <rtems_semaphore_create> <== NOT EXECUTED
2005b78: 98 04 e0 68 add %l3, 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)
2005b7c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2005b80: 02 bf ff ae be 2005a38 <rtems_termios_open+0x288> <== NOT EXECUTED
2005b84: 01 00 00 00 nop <== NOT EXECUTED
sc = rtems_task_start(tty->txTaskId,
rtems_termios_txdaemon,
(rtems_task_argument)tty);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
2005b88: 40 00 04 f2 call 2006f50 <rtems_fatal_error_occurred> <== NOT EXECUTED
2005b8c: 01 00 00 00 nop <== NOT EXECUTED
/*
* allocate cooked buffer
*/
tty->cbuf = malloc (CBUFSIZE);
if (tty->cbuf == NULL) {
free((void *)(tty->rawOutBuf.theBuf));
2005b90: d0 04 e0 7c ld [ %l3 + 0x7c ], %o0 <== NOT EXECUTED
2005b94: 7f ff f4 56 call 2002cec <free> <== NOT EXECUTED
2005b98: a0 10 20 1a mov 0x1a, %l0 <== NOT EXECUTED
free((void *)(tty->rawInBuf.theBuf));
2005b9c: 10 bf ff e9 b 2005b40 <rtems_termios_open+0x390> <== NOT EXECUTED
2005ba0: d0 04 e0 58 ld [ %l3 + 0x58 ], %o0 <== NOT EXECUTED
/*
* Create I/O tasks
*/
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
sc = rtems_task_create (
2005ba4: 03 15 1e 15 sethi %hi(0x54785400), %g1 <== NOT EXECUTED
2005ba8: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED
2005bac: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
2005bb0: 94 10 24 00 mov 0x400, %o2 <== NOT EXECUTED
2005bb4: 96 10 25 00 mov 0x500, %o3 <== NOT EXECUTED
2005bb8: 98 10 20 00 clr %o4 <== NOT EXECUTED
2005bbc: 40 00 03 b9 call 2006aa0 <rtems_task_create> <== NOT EXECUTED
2005bc0: 9a 04 e0 c8 add %l3, 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)
2005bc4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2005bc8: 12 bf ff f0 bne 2005b88 <rtems_termios_open+0x3d8> <== NOT EXECUTED
2005bcc: 03 14 9e 15 sethi %hi(0x52785400), %g1 <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
sc = rtems_task_create (
2005bd0: d0 4d 22 0c ldsb [ %l4 + 0x20c ], %o0 <== NOT EXECUTED
2005bd4: 92 10 20 09 mov 9, %o1 <== NOT EXECUTED
2005bd8: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
2005bdc: 94 10 24 00 mov 0x400, %o2 <== NOT EXECUTED
2005be0: 96 10 25 00 mov 0x500, %o3 <== NOT EXECUTED
2005be4: 98 10 20 00 clr %o4 <== NOT EXECUTED
2005be8: 40 00 03 ae call 2006aa0 <rtems_task_create> <== NOT EXECUTED
2005bec: 9a 04 e0 c4 add %l3, 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)
2005bf0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2005bf4: 22 bf ff 8a be,a 2005a1c <rtems_termios_open+0x26c> <== NOT EXECUTED
2005bf8: c2 04 e0 a0 ld [ %l3 + 0xa0 ], %g1 <== NOT EXECUTED
2005bfc: 30 bf ff e3 b,a 2005b88 <rtems_termios_open+0x3d8> <== NOT EXECUTED
tty->back = NULL;
if (rtems_termios_ttyHead != NULL)
rtems_termios_ttyHead->back = tty;
rtems_termios_ttyHead = tty;
if (rtems_termios_ttyTail == NULL)
rtems_termios_ttyTail = tty;
2005c00: 10 bf ff 5a b 2005968 <rtems_termios_open+0x1b8>
2005c04: e6 20 62 24 st %l3, [ %g1 + 0x224 ]
02004474 <rtems_termios_puts>:
* Send characters to device-specific code
*/
void
rtems_termios_puts (
const void *_buf, int len, struct rtems_termios_tty *tty)
{
2004474: 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) {
2004478: c2 06 a0 b4 ld [ %i2 + 0xb4 ], %g1
200447c: 80 a0 60 00 cmp %g1, 0
2004480: 02 80 00 42 be 2004588 <rtems_termios_puts+0x114> <== ALWAYS TAKEN
2004484: a8 10 00 18 mov %i0, %l4
(*tty->device.write)(tty->minor, (void *)buf, len);
return;
}
newHead = tty->rawOutBuf.Head;
2004488: e6 06 a0 80 ld [ %i2 + 0x80 ], %l3 <== NOT EXECUTED
while (len) {
200448c: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2004490: 02 80 00 43 be 200459c <rtems_termios_puts+0x128> <== NOT EXECUTED
2004494: a4 10 20 02 mov 2, %l2 <== NOT EXECUTED
}
else {
/* remember that output has been stopped due to flow ctrl*/
tty->flow_ctrl |= FL_OSTOP;
}
tty->rawOutBufState = rob_busy;
2004498: aa 10 20 01 mov 1, %l5 <== NOT EXECUTED
* len -= ncopy
*
* To minimize latency, the memcpy should be done
* with interrupts enabled.
*/
newHead = (newHead + 1) % tty->rawOutBuf.Size;
200449c: d2 06 a0 88 ld [ %i2 + 0x88 ], %o1 <== NOT EXECUTED
20044a0: 40 00 55 eb call 2019c4c <.urem> <== NOT EXECUTED
20044a4: 90 04 e0 01 add %l3, 1, %o0 <== NOT EXECUTED
rtems_interrupt_disable (level);
20044a8: 7f ff f6 ff call 20020a4 <sparc_disable_interrupts> <== NOT EXECUTED
20044ac: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
20044b0: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
while (newHead == tty->rawOutBuf.Tail) {
20044b4: e2 06 a0 84 ld [ %i2 + 0x84 ], %l1 <== NOT EXECUTED
20044b8: 80 a4 40 13 cmp %l1, %l3 <== NOT EXECUTED
20044bc: 12 80 00 13 bne 2004508 <rtems_termios_puts+0x94> <== NOT EXECUTED
20044c0: 01 00 00 00 nop <== NOT EXECUTED
tty->rawOutBufState = rob_wait;
20044c4: e4 26 a0 94 st %l2, [ %i2 + 0x94 ] <== NOT EXECUTED
rtems_interrupt_enable (level);
20044c8: 7f ff f6 fb call 20020b4 <sparc_enable_interrupts> <== NOT EXECUTED
20044cc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore,
20044d0: d0 06 a0 8c ld [ %i2 + 0x8c ], %o0 <== NOT EXECUTED
20044d4: 92 10 20 00 clr %o1 <== NOT EXECUTED
20044d8: 40 00 08 ff call 20068d4 <rtems_semaphore_obtain> <== NOT EXECUTED
20044dc: 94 10 20 00 clr %o2 <== NOT EXECUTED
RTEMS_WAIT,
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
20044e0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20044e4: 12 80 00 30 bne 20045a4 <rtems_termios_puts+0x130> <== NOT EXECUTED
20044e8: 01 00 00 00 nop <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
rtems_interrupt_disable (level);
20044ec: 7f ff f6 ee call 20020a4 <sparc_disable_interrupts> <== NOT EXECUTED
20044f0: 01 00 00 00 nop <== NOT EXECUTED
20044f4: a0 10 00 08 mov %o0, %l0 <== 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) {
20044f8: c2 06 a0 84 ld [ %i2 + 0x84 ], %g1 <== NOT EXECUTED
20044fc: 80 a0 40 11 cmp %g1, %l1 <== NOT EXECUTED
2004500: 22 bf ff f2 be,a 20044c8 <rtems_termios_puts+0x54> <== NOT EXECUTED
2004504: e4 26 a0 94 st %l2, [ %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++;
2004508: c2 06 a0 80 ld [ %i2 + 0x80 ], %g1 <== NOT EXECUTED
200450c: c6 0d 00 00 ldub [ %l4 ], %g3 <== NOT EXECUTED
2004510: c4 06 a0 7c ld [ %i2 + 0x7c ], %g2 <== NOT EXECUTED
2004514: c6 28 80 01 stb %g3, [ %g2 + %g1 ] <== NOT EXECUTED
tty->rawOutBuf.Head = newHead;
if (tty->rawOutBufState == rob_idle) {
2004518: 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;
200451c: e6 26 a0 80 st %l3, [ %i2 + 0x80 ] <== NOT EXECUTED
if (tty->rawOutBufState == rob_idle) {
2004520: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2004524: 12 80 00 0a bne 200454c <rtems_termios_puts+0xd8> <== NOT EXECUTED
2004528: 01 00 00 00 nop <== NOT EXECUTED
/* check, whether XOFF has been received */
if (!(tty->flow_ctrl & FL_ORCVXOF)) {
200452c: c2 06 a0 b8 ld [ %i2 + 0xb8 ], %g1 <== NOT EXECUTED
2004530: 80 88 60 10 btst 0x10, %g1 <== NOT EXECUTED
2004534: 02 80 00 0c be 2004564 <rtems_termios_puts+0xf0> <== NOT EXECUTED
2004538: 01 00 00 00 nop <== 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;
200453c: c2 06 a0 b8 ld [ %i2 + 0xb8 ], %g1 <== NOT EXECUTED
2004540: 82 10 60 20 or %g1, 0x20, %g1 <== NOT EXECUTED
2004544: c2 26 a0 b8 st %g1, [ %i2 + 0xb8 ] <== NOT EXECUTED
}
tty->rawOutBufState = rob_busy;
2004548: ea 26 a0 94 st %l5, [ %i2 + 0x94 ] <== NOT EXECUTED
}
rtems_interrupt_enable (level);
200454c: 7f ff f6 da call 20020b4 <sparc_enable_interrupts> <== NOT EXECUTED
2004550: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
(*tty->device.write)(tty->minor, (void *)buf, len);
return;
}
newHead = tty->rawOutBuf.Head;
while (len) {
2004554: b2 86 7f ff addcc %i1, -1, %i1 <== NOT EXECUTED
2004558: 02 80 00 11 be 200459c <rtems_termios_puts+0x128> <== NOT EXECUTED
200455c: a8 05 20 01 inc %l4 <== NOT EXECUTED
2004560: 30 bf ff cf b,a 200449c <rtems_termios_puts+0x28> <== NOT EXECUTED
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,
(char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
2004564: 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,
2004568: d2 06 a0 7c ld [ %i2 + 0x7c ], %o1 <== NOT EXECUTED
200456c: c2 06 a0 a4 ld [ %i2 + 0xa4 ], %g1 <== NOT EXECUTED
2004570: d0 06 a0 10 ld [ %i2 + 0x10 ], %o0 <== NOT EXECUTED
2004574: 92 02 40 02 add %o1, %g2, %o1 <== NOT EXECUTED
2004578: 9f c0 40 00 call %g1 <== NOT EXECUTED
200457c: 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;
2004580: 10 bf ff f3 b 200454c <rtems_termios_puts+0xd8> <== NOT EXECUTED
2004584: ea 26 a0 94 st %l5, [ %i2 + 0x94 ] <== NOT EXECUTED
unsigned int newHead;
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
(*tty->device.write)(tty->minor, (void *)buf, len);
2004588: d0 06 a0 10 ld [ %i2 + 0x10 ], %o0
200458c: c2 06 a0 a4 ld [ %i2 + 0xa4 ], %g1
2004590: 92 10 00 18 mov %i0, %o1
2004594: 9f c0 40 00 call %g1
2004598: 94 10 00 19 mov %i1, %o2
return;
200459c: 81 c7 e0 08 ret
20045a0: 81 e8 00 00 restore
rtems_interrupt_enable (level);
sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore,
RTEMS_WAIT,
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
20045a4: 40 00 0a 6b call 2006f50 <rtems_fatal_error_occurred> <== NOT EXECUTED
02004dcc <rtems_termios_read>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_termios_read (void *arg)
{
2004dcc: 9d e3 bf a0 save %sp, -96, %sp
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
2004dd0: c2 06 00 00 ld [ %i0 ], %g1
uint32_t count = args->count;
2004dd4: e6 06 20 14 ld [ %i0 + 0x14 ], %l3
rtems_status_code
rtems_termios_read (void *arg)
{
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
2004dd8: e0 00 60 38 ld [ %g1 + 0x38 ], %l0
uint32_t count = args->count;
char *buffer = args->buffer;
2004ddc: e8 06 20 10 ld [ %i0 + 0x10 ], %l4
rtems_status_code sc;
sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
2004de0: d0 04 20 14 ld [ %l0 + 0x14 ], %o0
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_termios_read (void *arg)
{
2004de4: ac 10 00 18 mov %i0, %l6
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);
2004de8: 92 10 20 00 clr %o1
2004dec: 40 00 06 ba call 20068d4 <rtems_semaphore_obtain>
2004df0: 94 10 20 00 clr %o2
if (sc != RTEMS_SUCCESSFUL)
2004df4: b0 92 20 00 orcc %o0, 0, %i0
2004df8: 12 80 00 10 bne 2004e38 <rtems_termios_read+0x6c> <== NEVER TAKEN
2004dfc: 05 00 80 75 sethi %hi(0x201d400), %g2
return sc;
if (rtems_termios_linesw[tty->t_line].l_read != NULL) {
2004e00: c2 04 20 cc ld [ %l0 + 0xcc ], %g1
2004e04: 83 28 60 05 sll %g1, 5, %g1
2004e08: 84 10 a3 54 or %g2, 0x354, %g2
2004e0c: 82 00 60 08 add %g1, 8, %g1
2004e10: c2 00 80 01 ld [ %g2 + %g1 ], %g1
2004e14: 80 a0 60 00 cmp %g1, 0
2004e18: 02 80 00 0a be 2004e40 <rtems_termios_read+0x74> <== ALWAYS TAKEN
2004e1c: 92 10 00 16 mov %l6, %o1
sc = rtems_termios_linesw[tty->t_line].l_read(tty,args);
2004e20: 9f c0 40 00 call %g1 <== NOT EXECUTED
2004e24: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2004e28: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
rtems_semaphore_release (tty->isem);
2004e2c: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED
2004e30: 40 00 06 f0 call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
2004e34: c0 24 20 e4 clr [ %l0 + 0xe4 ] <== NOT EXECUTED
return sc;
2004e38: 81 c7 e0 08 ret <== NOT EXECUTED
2004e3c: 81 e8 00 00 restore <== NOT EXECUTED
}
if (tty->cindex == tty->ccount) {
2004e40: c4 04 20 24 ld [ %l0 + 0x24 ], %g2
2004e44: c2 04 20 20 ld [ %l0 + 0x20 ], %g1
2004e48: 80 a0 80 01 cmp %g2, %g1
2004e4c: 22 80 00 20 be,a 2004ecc <rtems_termios_read+0x100> <== ALWAYS TAKEN
2004e50: c4 04 20 28 ld [ %l0 + 0x28 ], %g2
else
sc = fillBufferQueue (tty);
if (sc != RTEMS_SUCCESSFUL)
tty->cindex = tty->ccount = 0;
}
while (count && (tty->cindex < tty->ccount)) {
2004e54: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
2004e58: 22 80 00 16 be,a 2004eb0 <rtems_termios_read+0xe4> <== NOT EXECUTED
2004e5c: c2 05 a0 14 ld [ %l6 + 0x14 ], %g1 <== NOT EXECUTED
2004e60: c2 04 20 24 ld [ %l0 + 0x24 ], %g1 <== NOT EXECUTED
2004e64: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED
2004e68: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2004e6c: 26 80 00 09 bl,a 2004e90 <rtems_termios_read+0xc4> <== NOT EXECUTED
2004e70: c4 04 20 1c ld [ %l0 + 0x1c ], %g2 <== NOT EXECUTED
*buffer++ = tty->cbuf[tty->cindex++];
count--;
}
args->bytes_moved = args->count - count;
2004e74: 10 80 00 0f b 2004eb0 <rtems_termios_read+0xe4> <== NOT EXECUTED
2004e78: c2 05 a0 14 ld [ %l6 + 0x14 ], %g1 <== NOT EXECUTED
else
sc = fillBufferQueue (tty);
if (sc != RTEMS_SUCCESSFUL)
tty->cindex = tty->ccount = 0;
}
while (count && (tty->cindex < tty->ccount)) {
2004e7c: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED
2004e80: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2004e84: 24 80 00 0b ble,a 2004eb0 <rtems_termios_read+0xe4> <== NOT EXECUTED
2004e88: c2 05 a0 14 ld [ %l6 + 0x14 ], %g1 <== NOT EXECUTED
*buffer++ = tty->cbuf[tty->cindex++];
2004e8c: c4 04 20 1c ld [ %l0 + 0x1c ], %g2 <== NOT EXECUTED
else
sc = fillBufferQueue (tty);
if (sc != RTEMS_SUCCESSFUL)
tty->cindex = tty->ccount = 0;
}
while (count && (tty->cindex < tty->ccount)) {
2004e90: a6 84 ff ff addcc %l3, -1, %l3 <== NOT EXECUTED
*buffer++ = tty->cbuf[tty->cindex++];
2004e94: c4 08 80 01 ldub [ %g2 + %g1 ], %g2 <== NOT EXECUTED
2004e98: 82 00 60 01 inc %g1 <== NOT EXECUTED
2004e9c: c4 2d 00 00 stb %g2, [ %l4 ] <== NOT EXECUTED
2004ea0: c2 24 20 24 st %g1, [ %l0 + 0x24 ] <== NOT EXECUTED
else
sc = fillBufferQueue (tty);
if (sc != RTEMS_SUCCESSFUL)
tty->cindex = tty->ccount = 0;
}
while (count && (tty->cindex < tty->ccount)) {
2004ea4: 12 bf ff f6 bne 2004e7c <rtems_termios_read+0xb0> <== NOT EXECUTED
2004ea8: a8 05 20 01 inc %l4 <== NOT EXECUTED
*buffer++ = tty->cbuf[tty->cindex++];
count--;
}
args->bytes_moved = args->count - count;
2004eac: c2 05 a0 14 ld [ %l6 + 0x14 ], %g1 <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
2004eb0: 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;
2004eb4: a6 20 40 13 sub %g1, %l3, %l3 <== NOT EXECUTED
2004eb8: e6 25 a0 1c st %l3, [ %l6 + 0x1c ] <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
rtems_semaphore_release (tty->isem);
2004ebc: 40 00 06 cd call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
2004ec0: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED
return sc;
}
2004ec4: 81 c7 e0 08 ret <== NOT EXECUTED
2004ec8: 81 e8 00 00 restore <== NOT EXECUTED
}
if (tty->cindex == tty->ccount) {
tty->cindex = tty->ccount = 0;
tty->read_start_column = tty->column;
if (tty->device.pollRead != NULL
&& tty->device.outputUsesInterrupts == TERMIOS_POLLED)
2004ecc: 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;
2004ed0: 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;
2004ed4: c0 24 20 20 clr [ %l0 + 0x20 ]
tty->read_start_column = tty->column;
if (tty->device.pollRead != NULL
2004ed8: 80 a0 60 00 cmp %g1, 0
2004edc: 02 80 00 06 be 2004ef4 <rtems_termios_read+0x128> <== NEVER TAKEN
2004ee0: c0 24 20 24 clr [ %l0 + 0x24 ]
&& tty->device.outputUsesInterrupts == TERMIOS_POLLED)
2004ee4: c4 04 20 b4 ld [ %l0 + 0xb4 ], %g2
2004ee8: 80 a0 a0 00 cmp %g2, 0
2004eec: 22 80 00 6e be,a 20050a4 <rtems_termios_read+0x2d8> <== ALWAYS TAKEN
2004ef0: c4 04 20 3c ld [ %l0 + 0x3c ], %g2
* Fill the input buffer from the raw input queue
*/
static rtems_status_code
fillBufferQueue (struct rtems_termios_tty *tty)
{
rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout;
2004ef4: e2 04 20 74 ld [ %l0 + 0x74 ], %l1 <== NOT EXECUTED
while ( wait ) {
/*
* Process characters read from raw queue
*/
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
2004ef8: 25 00 80 74 sethi %hi(0x201d000), %l2 <== 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,
2004efc: ae 04 20 49 add %l0, 0x49, %l7 <== NOT EXECUTED
while ( wait ) {
/*
* Process characters read from raw queue
*/
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
2004f00: a4 14 a2 00 or %l2, 0x200, %l2 <== 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,
2004f04: aa 10 20 01 mov 1, %l5 <== NOT EXECUTED
while ( wait ) {
/*
* Process characters read from raw queue
*/
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
2004f08: c4 04 20 5c ld [ %l0 + 0x5c ], %g2 <== NOT EXECUTED
2004f0c: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED
2004f10: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2004f14: 02 80 00 43 be 2005020 <rtems_termios_read+0x254> <== NOT EXECUTED
2004f18: 80 a5 60 00 cmp %l5, 0 <== NOT EXECUTED
2004f1c: c4 04 80 00 ld [ %l2 ], %g2 <== NOT EXECUTED
2004f20: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED
2004f24: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
2004f28: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2004f2c: 04 80 00 3d ble 2005020 <rtems_termios_read+0x254> <== NOT EXECUTED
2004f30: 80 a5 60 00 cmp %l5, 0 <== NOT EXECUTED
(tty->ccount < (CBUFSIZE-1))) {
unsigned char c;
unsigned int newHead;
newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size;
2004f34: d0 04 20 5c ld [ %l0 + 0x5c ], %o0 <== NOT EXECUTED
2004f38: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED
2004f3c: 40 00 53 44 call 2019c4c <.urem> <== NOT EXECUTED
2004f40: 90 02 20 01 inc %o0 <== NOT EXECUTED
c = tty->rawInBuf.theBuf[newHead];
2004f44: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED
2004f48: e2 08 40 08 ldub [ %g1 + %o0 ], %l1 <== NOT EXECUTED
tty->rawInBuf.Head = newHead;
2004f4c: d0 24 20 5c st %o0, [ %l0 + 0x5c ] <== NOT EXECUTED
if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)
2004f50: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED
2004f54: c4 04 20 64 ld [ %l0 + 0x64 ], %g2 <== NOT EXECUTED
2004f58: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED
2004f5c: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
2004f60: 40 00 53 3b call 2019c4c <.urem> <== NOT EXECUTED
2004f64: 90 20 40 08 sub %g1, %o0, %o0 <== NOT EXECUTED
2004f68: c2 04 20 bc ld [ %l0 + 0xbc ], %g1 <== NOT EXECUTED
2004f6c: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED
2004f70: 3a 80 00 18 bcc,a 2004fd0 <rtems_termios_read+0x204> <== NOT EXECUTED
2004f74: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED
% tty->rawInBuf.Size)
< tty->lowwater) {
tty->flow_ctrl &= ~FL_IREQXOF;
2004f78: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2004f7c: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED
2004f80: 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))
2004f84: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2004f88: 82 08 62 02 and %g1, 0x202, %g1 <== NOT EXECUTED
2004f8c: 80 a0 62 02 cmp %g1, 0x202 <== NOT EXECUTED
2004f90: 22 80 00 37 be,a 200506c <rtems_termios_read+0x2a0> <== NOT EXECUTED
2004f94: c2 04 20 94 ld [ %l0 + 0x94 ], %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) {
2004f98: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2004f9c: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED
2004fa0: 22 80 00 0c be,a 2004fd0 <rtems_termios_read+0x204> <== NOT EXECUTED
2004fa4: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED
tty->flow_ctrl &= ~FL_IRTSOFF;
2004fa8: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED
/* activate RTS line */
if (tty->device.startRemoteTx != NULL) {
2004fac: 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;
2004fb0: 84 08 bf fb and %g2, -5, %g2 <== NOT EXECUTED
2004fb4: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED
/* activate RTS line */
if (tty->device.startRemoteTx != NULL) {
2004fb8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2004fbc: 22 80 00 05 be,a 2004fd0 <rtems_termios_read+0x204> <== NOT EXECUTED
2004fc0: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED
tty->device.startRemoteTx(tty->minor);
2004fc4: 9f c0 40 00 call %g1 <== NOT EXECUTED
2004fc8: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
}
}
}
/* continue processing new character */
if (tty->termios.c_lflag & ICANON) {
2004fcc: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED
2004fd0: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
2004fd4: 02 80 00 1d be 2005048 <rtems_termios_read+0x27c> <== NOT EXECUTED
2004fd8: 90 0c 60 ff and %l1, 0xff, %o0 <== NOT EXECUTED
if (siproc (c, tty))
2004fdc: 7f ff ff 0f call 2004c18 <siproc> <== NOT EXECUTED
2004fe0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2004fe4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2004fe8: 32 80 00 02 bne,a 2004ff0 <rtems_termios_read+0x224> <== NOT EXECUTED
2004fec: aa 10 20 00 clr %l5 <== NOT EXECUTED
while ( wait ) {
/*
* Process characters read from raw queue
*/
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
2004ff0: c4 04 20 5c ld [ %l0 + 0x5c ], %g2 <== NOT EXECUTED
2004ff4: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED
2004ff8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2004ffc: 02 80 00 08 be 200501c <rtems_termios_read+0x250> <== NOT EXECUTED
2005000: e2 04 20 70 ld [ %l0 + 0x70 ], %l1 <== NOT EXECUTED
2005004: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED
2005008: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED
200500c: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
2005010: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2005014: 06 bf ff c8 bl 2004f34 <rtems_termios_read+0x168> <== NOT EXECUTED
2005018: 01 00 00 00 nop <== NOT EXECUTED
}
/*
* Wait for characters
*/
if ( wait ) {
200501c: 80 a5 60 00 cmp %l5, 0 <== NOT EXECUTED
2005020: 02 bf ff 8e be 2004e58 <rtems_termios_read+0x8c> <== NOT EXECUTED
2005024: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore,
2005028: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED
200502c: d2 04 20 6c ld [ %l0 + 0x6c ], %o1 <== NOT EXECUTED
2005030: 40 00 06 29 call 20068d4 <rtems_semaphore_obtain> <== NOT EXECUTED
2005034: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
tty->rawInBufSemaphoreOptions,
timeout);
if (sc != RTEMS_SUCCESSFUL)
2005038: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200503c: 02 bf ff b3 be 2004f08 <rtems_termios_read+0x13c> <== NOT EXECUTED
2005040: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
2005044: 30 bf ff 85 b,a 2004e58 <rtems_termios_read+0x8c> <== NOT EXECUTED
if (tty->termios.c_lflag & ICANON) {
if (siproc (c, tty))
wait = 0;
}
else {
siproc (c, tty);
2005048: 7f ff fe f4 call 2004c18 <siproc> <== NOT EXECUTED
200504c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
if (tty->ccount >= tty->termios.c_cc[VMIN])
2005050: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED
2005054: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED
2005058: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
200505c: 06 bf ff e5 bl 2004ff0 <rtems_termios_read+0x224> <== NOT EXECUTED
2005060: 01 00 00 00 nop <== NOT EXECUTED
2005064: 10 bf ff e3 b 2004ff0 <rtems_termios_read+0x224> <== NOT EXECUTED
2005068: aa 10 20 00 clr %l5 ! 0 <PROM_START> <== 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))
200506c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2005070: 22 80 00 07 be,a 200508c <rtems_termios_read+0x2c0> <== NOT EXECUTED
2005074: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED
== (FL_MDXON | FL_ISNTXOF))
&& ((tty->rawOutBufState == rob_idle)
|| (tty->flow_ctrl & FL_OSTOP))) {
2005078: 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))
200507c: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED
2005080: 02 bf ff c6 be 2004f98 <rtems_termios_read+0x1cc> <== NOT EXECUTED
2005084: 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,
2005088: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED
200508c: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
2005090: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
2005094: 9f c0 40 00 call %g1 <== NOT EXECUTED
2005098: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
}
}
}
/* continue processing new character */
if (tty->termios.c_lflag & ICANON) {
200509c: 10 bf ff cd b 2004fd0 <rtems_termios_read+0x204> <== NOT EXECUTED
20050a0: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED
static rtems_status_code
fillBufferPoll (struct rtems_termios_tty *tty)
{
int n;
if (tty->termios.c_lflag & ICANON) {
20050a4: 80 88 a0 02 btst 2, %g2
20050a8: 02 80 00 0e be 20050e0 <rtems_termios_read+0x314>
20050ac: 01 00 00 00 nop
for (;;) {
n = (*tty->device.pollRead)(tty->minor);
20050b0: 9f c0 40 00 call %g1
20050b4: d0 04 20 10 ld [ %l0 + 0x10 ], %o0
if (n < 0) {
20050b8: 80 a2 20 00 cmp %o0, 0
20050bc: 06 80 00 3a bl 20051a4 <rtems_termios_read+0x3d8> <== ALWAYS TAKEN
20050c0: 90 0a 20 ff and %o0, 0xff, %o0
rtems_task_wake_after (1);
}
else {
if (siproc (n, tty))
20050c4: 7f ff fe d5 call 2004c18 <siproc> <== NOT EXECUTED
20050c8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
20050cc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20050d0: 12 bf ff 62 bne 2004e58 <rtems_termios_read+0x8c> <== NOT EXECUTED
20050d4: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
static rtems_status_code
fillBufferPoll (struct rtems_termios_tty *tty)
{
int n;
if (tty->termios.c_lflag & ICANON) {
20050d8: 10 bf ff f6 b 20050b0 <rtems_termios_read+0x2e4> <== NOT EXECUTED
20050dc: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED
}
}
}
else {
rtems_interval then, now;
then = rtems_clock_get_ticks_since_boot();
20050e0: 40 00 04 3c call 20061d0 <rtems_clock_get_ticks_since_boot>
20050e4: 01 00 00 00 nop
20050e8: a2 10 00 08 mov %o0, %l1
for (;;) {
n = (*tty->device.pollRead)(tty->minor);
20050ec: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1
20050f0: 9f c0 40 00 call %g1
20050f4: d0 04 20 10 ld [ %l0 + 0x10 ], %o0
if (n < 0) {
20050f8: 80 a2 20 00 cmp %o0, 0
20050fc: 06 80 00 10 bl 200513c <rtems_termios_read+0x370> <== ALWAYS TAKEN
2005100: 90 0a 20 ff and %o0, 0xff, %o0
}
}
rtems_task_wake_after (1);
}
else {
siproc (n, tty);
2005104: 7f ff fe c5 call 2004c18 <siproc> <== NOT EXECUTED
2005108: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
if (tty->ccount >= tty->termios.c_cc[VMIN])
200510c: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED
2005110: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED
2005114: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2005118: 16 bf ff 4f bge 2004e54 <rtems_termios_read+0x88> <== NOT EXECUTED
200511c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
break;
if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME])
2005120: 22 bf ff f4 be,a 20050f0 <rtems_termios_read+0x324> <== NOT EXECUTED
2005124: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED
2005128: c2 0c 20 46 ldub [ %l0 + 0x46 ], %g1 <== NOT EXECUTED
200512c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2005130: 22 bf ff f0 be,a 20050f0 <rtems_termios_read+0x324> <== NOT EXECUTED
2005134: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED
2005138: 30 bf ff ea b,a 20050e0 <rtems_termios_read+0x314> <== NOT EXECUTED
rtems_interval then, now;
then = rtems_clock_get_ticks_since_boot();
for (;;) {
n = (*tty->device.pollRead)(tty->minor);
if (n < 0) {
if (tty->termios.c_cc[VMIN]) {
200513c: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1
2005140: 80 a0 60 00 cmp %g1, 0
2005144: 02 80 00 0d be 2005178 <rtems_termios_read+0x3ac> <== NEVER TAKEN
2005148: c2 0c 20 46 ldub [ %l0 + 0x46 ], %g1
if (tty->termios.c_cc[VTIME] && tty->ccount) {
200514c: 80 a0 60 00 cmp %g1, 0
2005150: 02 80 00 06 be 2005168 <rtems_termios_read+0x39c> <== ALWAYS TAKEN
2005154: 01 00 00 00 nop
2005158: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED
200515c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2005160: 12 80 00 09 bne 2005184 <rtems_termios_read+0x3b8> <== NOT EXECUTED
2005164: 01 00 00 00 nop <== NOT EXECUTED
now = rtems_clock_get_ticks_since_boot();
if ((now - then) > tty->vtimeTicks) {
break;
}
}
rtems_task_wake_after (1);
2005168: 40 00 07 13 call 2006db4 <rtems_task_wake_after>
200516c: 90 10 20 01 mov 1, %o0 ! 1 <PROM_START+0x1>
}
else {
rtems_interval then, now;
then = rtems_clock_get_ticks_since_boot();
for (;;) {
n = (*tty->device.pollRead)(tty->minor);
2005170: 10 bf ff e0 b 20050f0 <rtems_termios_read+0x324>
2005174: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1
break;
}
}
}
else {
if (!tty->termios.c_cc[VTIME])
2005178: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200517c: 02 bf ff 37 be 2004e58 <rtems_termios_read+0x8c> <== NOT EXECUTED
2005180: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
break;
now = rtems_clock_get_ticks_since_boot();
2005184: 40 00 04 13 call 20061d0 <rtems_clock_get_ticks_since_boot><== NOT EXECUTED
2005188: 01 00 00 00 nop <== NOT EXECUTED
if ((now - then) > tty->vtimeTicks) {
200518c: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 <== NOT EXECUTED
2005190: 90 22 00 11 sub %o0, %l1, %o0 <== NOT EXECUTED
2005194: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED
2005198: 08 bf ff f4 bleu 2005168 <rtems_termios_read+0x39c> <== NOT EXECUTED
200519c: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
20051a0: 30 bf ff 2e b,a 2004e58 <rtems_termios_read+0x8c> <== NOT EXECUTED
if (tty->termios.c_lflag & ICANON) {
for (;;) {
n = (*tty->device.pollRead)(tty->minor);
if (n < 0) {
rtems_task_wake_after (1);
20051a4: 40 00 07 04 call 2006db4 <rtems_task_wake_after>
20051a8: 90 10 20 01 mov 1, %o0
static rtems_status_code
fillBufferPoll (struct rtems_termios_tty *tty)
{
int n;
if (tty->termios.c_lflag & ICANON) {
20051ac: 10 bf ff c1 b 20050b0 <rtems_termios_read+0x2e4>
20051b0: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1
02003ea8 <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)
{
2003ea8: 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))
2003eac: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED
2003eb0: 82 08 64 03 and %g1, 0x403, %g1 <== NOT EXECUTED
2003eb4: 80 a0 64 01 cmp %g1, 0x401 <== NOT EXECUTED
2003eb8: 02 80 00 44 be 2003fc8 <rtems_termios_refill_transmitter+0x120><== NOT EXECUTED
2003ebc: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
tty->flow_ctrl |= FL_ISNTXOF;
rtems_interrupt_enable(level);
nToSend = 1;
}
else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF))
2003ec0: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED
2003ec4: 82 08 60 03 and %g1, 3, %g1 <== NOT EXECUTED
2003ec8: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
2003ecc: 22 80 00 50 be,a 200400c <rtems_termios_refill_transmitter+0x164><== NOT EXECUTED
2003ed0: c2 06 20 a4 ld [ %i0 + 0xa4 ], %g1 <== NOT EXECUTED
rtems_interrupt_enable(level);
nToSend = 1;
}
else {
if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {
2003ed4: c4 06 20 80 ld [ %i0 + 0x80 ], %g2 <== NOT EXECUTED
2003ed8: c2 06 20 84 ld [ %i0 + 0x84 ], %g1 <== NOT EXECUTED
2003edc: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2003ee0: 22 80 00 30 be,a 2003fa0 <rtems_termios_refill_transmitter+0xf8><== NOT EXECUTED
2003ee4: c2 06 20 94 ld [ %i0 + 0x94 ], %g1 <== NOT EXECUTED
rtems_semaphore_release (tty->rawOutBuf.Semaphore);
}
return 0;
}
rtems_interrupt_disable(level);
2003ee8: 7f ff f8 6f call 20020a4 <sparc_disable_interrupts> <== NOT EXECUTED
2003eec: 01 00 00 00 nop <== NOT EXECUTED
len = tty->t_dqlen;
2003ef0: e2 06 20 90 ld [ %i0 + 0x90 ], %l1 <== NOT EXECUTED
tty->t_dqlen = 0;
2003ef4: c0 26 20 90 clr [ %i0 + 0x90 ] <== NOT EXECUTED
rtems_interrupt_enable(level);
2003ef8: 7f ff f8 6f call 20020b4 <sparc_enable_interrupts> <== NOT EXECUTED
2003efc: 01 00 00 00 nop <== NOT EXECUTED
newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;
2003f00: d0 06 20 84 ld [ %i0 + 0x84 ], %o0 <== NOT EXECUTED
2003f04: d2 06 20 88 ld [ %i0 + 0x88 ], %o1 <== NOT EXECUTED
2003f08: 40 00 57 51 call 2019c4c <.urem> <== NOT EXECUTED
2003f0c: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED
tty->rawOutBuf.Tail = newTail;
if (tty->rawOutBufState == rob_wait) {
2003f10: 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;
2003f14: d0 24 20 84 st %o0, [ %l0 + 0x84 ] <== NOT EXECUTED
if (tty->rawOutBufState == rob_wait) {
2003f18: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
2003f1c: 02 80 00 55 be 2004070 <rtems_termios_refill_transmitter+0x1c8><== NOT EXECUTED
2003f20: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
/*
* wake up any pending writer task
*/
rtems_semaphore_release (tty->rawOutBuf.Semaphore);
}
if (newTail == tty->rawOutBuf.Head) {
2003f24: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 <== NOT EXECUTED
2003f28: 80 a0 40 11 cmp %g1, %l1 <== NOT EXECUTED
2003f2c: 22 80 00 48 be,a 200404c <rtems_termios_refill_transmitter+0x1a4><== NOT EXECUTED
2003f30: c2 04 20 d4 ld [ %l0 + 0xd4 ], %g1 <== NOT EXECUTED
if ( tty->tty_snd.sw_pfn != NULL) {
(*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);
}
}
/* check, whether output should stop due to received XOFF */
else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))
2003f34: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2003f38: 82 08 62 10 and %g1, 0x210, %g1 <== NOT EXECUTED
2003f3c: 80 a0 62 10 cmp %g1, 0x210 <== NOT EXECUTED
2003f40: 02 80 00 4f be 200407c <rtems_termios_refill_transmitter+0x1d4><== NOT EXECUTED
2003f44: 01 00 00 00 nop <== NOT EXECUTED
}
else {
/*
* Buffer not empty, start tranmitter
*/
if (newTail > tty->rawOutBuf.Head)
2003f48: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 <== NOT EXECUTED
2003f4c: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
2003f50: 18 80 00 1b bgu 2003fbc <rtems_termios_refill_transmitter+0x114><== NOT EXECUTED
2003f54: 01 00 00 00 nop <== NOT EXECUTED
nToSend = tty->rawOutBuf.Size - newTail;
else
nToSend = tty->rawOutBuf.Head - newTail;
2003f58: f0 04 20 80 ld [ %l0 + 0x80 ], %i0 <== NOT EXECUTED
2003f5c: b0 26 00 11 sub %i0, %l1, %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)) {
2003f60: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2003f64: 80 88 66 00 btst 0x600, %g1 <== NOT EXECUTED
2003f68: 02 80 00 04 be 2003f78 <rtems_termios_refill_transmitter+0xd0><== NOT EXECUTED
2003f6c: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
2003f70: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
2003f74: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
nToSend = 1;
}
tty->rawOutBufState = rob_busy; /*apm*/
(*tty->device.write)(tty->minor,
2003f78: d2 04 20 7c ld [ %l0 + 0x7c ], %o1 <== NOT EXECUTED
2003f7c: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED
2003f80: 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*/
2003f84: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
(*tty->device.write)(tty->minor,
2003f88: 92 02 40 11 add %o1, %l1, %o1 <== NOT EXECUTED
2003f8c: 9f c0 40 00 call %g1 <== NOT EXECUTED
2003f90: c4 24 20 94 st %g2, [ %l0 + 0x94 ] <== NOT EXECUTED
&tty->rawOutBuf.theBuf[newTail],
nToSend);
}
tty->rawOutBuf.Tail = newTail; /*apm*/
2003f94: e2 24 20 84 st %l1, [ %l0 + 0x84 ] <== NOT EXECUTED
}
return nToSend;
}
2003f98: 81 c7 e0 08 ret <== NOT EXECUTED
2003f9c: 81 e8 00 00 restore <== NOT EXECUTED
else {
if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {
/*
* buffer was empty
*/
if (tty->rawOutBufState == rob_wait) {
2003fa0: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
2003fa4: 12 bf ff fd bne 2003f98 <rtems_termios_refill_transmitter+0xf0><== NOT EXECUTED
2003fa8: b0 10 20 00 clr %i0 <== NOT EXECUTED
/*
* this should never happen...
*/
rtems_semaphore_release (tty->rawOutBuf.Semaphore);
2003fac: 40 00 0a 91 call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
2003fb0: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 <== NOT EXECUTED
2003fb4: 81 c7 e0 08 ret <== NOT EXECUTED
2003fb8: 81 e8 00 00 restore <== NOT EXECUTED
else {
/*
* Buffer not empty, start tranmitter
*/
if (newTail > tty->rawOutBuf.Head)
nToSend = tty->rawOutBuf.Size - newTail;
2003fbc: f0 04 20 88 ld [ %l0 + 0x88 ], %i0 <== NOT EXECUTED
2003fc0: 10 bf ff e8 b 2003f60 <rtems_termios_refill_transmitter+0xb8><== NOT EXECUTED
2003fc4: b0 26 00 11 sub %i0, %l1, %i0 <== NOT EXECUTED
/* check for XOF/XON to send */
if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF))
== (FL_MDXOF | FL_IREQXOF)) {
/* XOFF should be sent now... */
(*tty->device.write)(tty->minor,
2003fc8: c2 06 20 a4 ld [ %i0 + 0xa4 ], %g1 <== NOT EXECUTED
2003fcc: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED
2003fd0: 92 06 20 4a add %i0, 0x4a, %o1 <== NOT EXECUTED
2003fd4: 9f c0 40 00 call %g1 <== NOT EXECUTED
2003fd8: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
(void *)&(tty->termios.c_cc[VSTOP]), 1);
rtems_interrupt_disable(level);
2003fdc: 7f ff f8 32 call 20020a4 <sparc_disable_interrupts> <== NOT EXECUTED
2003fe0: 01 00 00 00 nop <== NOT EXECUTED
tty->t_dqlen--;
2003fe4: c4 06 20 90 ld [ %i0 + 0x90 ], %g2 <== NOT EXECUTED
tty->flow_ctrl |= FL_ISNTXOF;
2003fe8: 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--;
2003fec: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
tty->flow_ctrl |= FL_ISNTXOF;
2003ff0: 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--;
2003ff4: c4 26 20 90 st %g2, [ %i0 + 0x90 ] <== NOT EXECUTED
tty->flow_ctrl |= FL_ISNTXOF;
2003ff8: c2 26 20 b8 st %g1, [ %i0 + 0xb8 ] <== NOT EXECUTED
rtems_interrupt_enable(level);
2003ffc: 7f ff f8 2e call 20020b4 <sparc_enable_interrupts> <== NOT EXECUTED
2004000: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
2004004: 81 c7 e0 08 ret <== NOT EXECUTED
2004008: 81 e8 00 00 restore <== 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,
200400c: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED
2004010: 92 06 20 49 add %i0, 0x49, %o1 <== NOT EXECUTED
2004014: 9f c0 40 00 call %g1 <== NOT EXECUTED
2004018: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
(void *)&(tty->termios.c_cc[VSTART]), 1);
rtems_interrupt_disable(level);
200401c: 7f ff f8 22 call 20020a4 <sparc_disable_interrupts> <== NOT EXECUTED
2004020: 01 00 00 00 nop <== NOT EXECUTED
tty->t_dqlen--;
2004024: c4 06 20 90 ld [ %i0 + 0x90 ], %g2 <== NOT EXECUTED
tty->flow_ctrl &= ~FL_ISNTXOF;
2004028: 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--;
200402c: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
tty->flow_ctrl &= ~FL_ISNTXOF;
2004030: 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--;
2004034: c4 26 20 90 st %g2, [ %i0 + 0x90 ] <== NOT EXECUTED
tty->flow_ctrl &= ~FL_ISNTXOF;
2004038: c2 26 20 b8 st %g1, [ %i0 + 0xb8 ] <== NOT EXECUTED
rtems_interrupt_enable(level);
200403c: 7f ff f8 1e call 20020b4 <sparc_enable_interrupts> <== NOT EXECUTED
2004040: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
2004044: 81 c7 e0 08 ret <== NOT EXECUTED
2004048: 81 e8 00 00 restore <== NOT EXECUTED
}
if (newTail == tty->rawOutBuf.Head) {
/*
* Buffer has become empty
*/
tty->rawOutBufState = rob_idle;
200404c: 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) {
2004050: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2004054: 02 bf ff d0 be 2003f94 <rtems_termios_refill_transmitter+0xec><== NOT EXECUTED
2004058: b0 10 20 00 clr %i0 <== NOT EXECUTED
(*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);
200405c: d2 04 20 d8 ld [ %l0 + 0xd8 ], %o1 <== NOT EXECUTED
2004060: 9f c0 40 00 call %g1 <== NOT EXECUTED
2004064: 90 04 20 30 add %l0, 0x30, %o0 <== NOT EXECUTED
tty->rawOutBufState = rob_busy; /*apm*/
(*tty->device.write)(tty->minor,
&tty->rawOutBuf.theBuf[newTail],
nToSend);
}
tty->rawOutBuf.Tail = newTail; /*apm*/
2004068: e2 24 20 84 st %l1, [ %l0 + 0x84 ] <== NOT EXECUTED
200406c: 30 bf ff f6 b,a 2004044 <rtems_termios_refill_transmitter+0x19c><== NOT EXECUTED
tty->rawOutBuf.Tail = newTail;
if (tty->rawOutBufState == rob_wait) {
/*
* wake up any pending writer task
*/
rtems_semaphore_release (tty->rawOutBuf.Semaphore);
2004070: 40 00 0a 60 call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
2004074: d0 06 20 8c ld [ %i0 + 0x8c ], %o0 <== NOT EXECUTED
2004078: 30 bf ff ab b,a 2003f24 <rtems_termios_refill_transmitter+0x7c><== NOT EXECUTED
/* check, whether output should stop due to received XOFF */
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);
200407c: 7f ff f8 0a call 20020a4 <sparc_disable_interrupts> <== NOT EXECUTED
2004080: 01 00 00 00 nop <== NOT EXECUTED
tty->flow_ctrl |= FL_OSTOP;
2004084: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
tty->rawOutBufState = rob_busy; /*apm*/
2004088: 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;
200408c: 82 10 60 20 or %g1, 0x20, %g1 <== NOT EXECUTED
tty->rawOutBufState = rob_busy; /*apm*/
2004090: 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;
2004094: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED
tty->rawOutBufState = rob_busy; /*apm*/
rtems_interrupt_enable(level);
2004098: 7f ff f8 07 call 20020b4 <sparc_enable_interrupts> <== NOT EXECUTED
200409c: b0 10 20 00 clr %i0 <== NOT EXECUTED
tty->rawOutBufState = rob_busy; /*apm*/
(*tty->device.write)(tty->minor,
&tty->rawOutBuf.theBuf[newTail],
nToSend);
}
tty->rawOutBuf.Tail = newTail; /*apm*/
20040a0: e2 24 20 84 st %l1, [ %l0 + 0x84 ] <== NOT EXECUTED
20040a4: 30 bf ff e8 b,a 2004044 <rtems_termios_refill_transmitter+0x19c><== NOT EXECUTED
02005ca0 <rtems_termios_rxdaemon>:
/*
* this task actually processes any receive events
*/
static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument)
{
2005ca0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
2005ca4: a0 07 bf f8 add %fp, -8, %l0 <== NOT EXECUTED
2005ca8: a2 07 bf ff add %fp, -1, %l1 <== NOT EXECUTED
char c_buf;
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_RX_PROC_EVENT |
2005cac: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
2005cb0: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
2005cb4: 94 10 20 00 clr %o2 <== NOT EXECUTED
2005cb8: 40 00 01 69 call 200625c <rtems_event_receive> <== NOT EXECUTED
2005cbc: 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) {
2005cc0: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
2005cc4: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
2005cc8: 32 80 00 16 bne,a 2005d20 <rtems_termios_rxdaemon+0x80> <== NOT EXECUTED
2005ccc: c0 26 20 c4 clr [ %i0 + 0xc4 ] <== NOT EXECUTED
}
else {
/*
* do something
*/
c = tty->device.pollRead(tty->minor);
2005cd0: c2 06 20 a0 ld [ %i0 + 0xa0 ], %g1 <== NOT EXECUTED
2005cd4: 9f c0 40 00 call %g1 <== NOT EXECUTED
2005cd8: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED
if (c != EOF) {
2005cdc: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED
2005ce0: 02 bf ff f3 be 2005cac <rtems_termios_rxdaemon+0xc> <== NOT EXECUTED
2005ce4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
/*
* pollRead did call enqueue on its own
*/
c_buf = c;
2005ce8: d0 2f bf ff stb %o0, [ %fp + -1 ] <== NOT EXECUTED
rtems_termios_enqueue_raw_characters (
2005cec: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
2005cf0: 7f ff f9 0d call 2004124 <rtems_termios_enqueue_raw_characters><== NOT EXECUTED
2005cf4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
char c_buf;
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_RX_PROC_EVENT |
2005cf8: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
2005cfc: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
2005d00: 94 10 20 00 clr %o2 <== NOT EXECUTED
2005d04: 40 00 01 56 call 200625c <rtems_event_receive> <== NOT EXECUTED
2005d08: 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) {
2005d0c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
2005d10: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
2005d14: 22 bf ff f0 be,a 2005cd4 <rtems_termios_rxdaemon+0x34> <== NOT EXECUTED
2005d18: c2 06 20 a0 ld [ %i0 + 0xa0 ], %g1 <== NOT EXECUTED
tty->rxTaskId = 0;
2005d1c: c0 26 20 c4 clr [ %i0 + 0xc4 ] <== NOT EXECUTED
rtems_task_delete(RTEMS_SELF);
2005d20: 40 00 03 ab call 2006bcc <rtems_task_delete> <== NOT EXECUTED
2005d24: 90 10 20 00 clr %o0 <== NOT EXECUTED
char c_buf;
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_RX_PROC_EVENT |
2005d28: 10 bf ff e2 b 2005cb0 <rtems_termios_rxdaemon+0x10> <== NOT EXECUTED
2005d2c: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
02003e90 <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);
2003e90: d0 02 20 c4 ld [ %o0 + 0xc4 ], %o0 <== NOT EXECUTED
2003e94: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
2003e98: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2003e9c: 40 00 09 51 call 20063e0 <rtems_event_send> <== NOT EXECUTED
2003ea0: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02005c08 <rtems_termios_txdaemon>:
/*
* this task actually processes any transmit events
*/
static rtems_task rtems_termios_txdaemon(rtems_task_argument argument)
{
2005c08: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
2005c0c: 23 00 80 75 sethi %hi(0x201d400), %l1 <== NOT EXECUTED
2005c10: a0 07 bf fc add %fp, -4, %l0 <== NOT EXECUTED
2005c14: a2 14 63 54 or %l1, 0x354, %l1 <== NOT EXECUTED
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_TX_START_EVENT |
2005c18: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
2005c1c: 94 10 20 00 clr %o2 <== NOT EXECUTED
2005c20: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
2005c24: 40 00 01 8e call 200625c <rtems_event_receive> <== NOT EXECUTED
2005c28: 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) {
2005c2c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2005c30: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
2005c34: 12 80 00 16 bne 2005c8c <rtems_termios_txdaemon+0x84> <== NOT EXECUTED
2005c38: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
}
else {
/*
* call any line discipline start function
*/
if (rtems_termios_linesw[tty->t_line].l_start != NULL) {
2005c3c: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED
2005c40: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED
2005c44: 82 04 40 01 add %l1, %g1, %g1 <== NOT EXECUTED
2005c48: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 <== NOT EXECUTED
2005c4c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2005c50: 02 80 00 04 be 2005c60 <rtems_termios_txdaemon+0x58> <== NOT EXECUTED
2005c54: 01 00 00 00 nop <== NOT EXECUTED
rtems_termios_linesw[tty->t_line].l_start(tty);
2005c58: 9f c0 40 00 call %g1 <== NOT EXECUTED
2005c5c: 01 00 00 00 nop <== NOT EXECUTED
}
/*
* try to push further characters to device
*/
rtems_termios_refill_transmitter(tty);
2005c60: 7f ff f8 92 call 2003ea8 <rtems_termios_refill_transmitter><== NOT EXECUTED
2005c64: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_TX_START_EVENT |
2005c68: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
2005c6c: 94 10 20 00 clr %o2 <== NOT EXECUTED
2005c70: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
2005c74: 40 00 01 7a call 200625c <rtems_event_receive> <== NOT EXECUTED
2005c78: 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) {
2005c7c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2005c80: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
2005c84: 02 bf ff ee be 2005c3c <rtems_termios_txdaemon+0x34> <== NOT EXECUTED
2005c88: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
tty->txTaskId = 0;
2005c8c: c0 26 20 c8 clr [ %i0 + 0xc8 ] <== NOT EXECUTED
rtems_task_delete(RTEMS_SELF);
2005c90: 40 00 03 cf call 2006bcc <rtems_task_delete> <== NOT EXECUTED
2005c94: 90 10 20 00 clr %o0 <== NOT EXECUTED
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_TX_START_EVENT |
2005c98: 10 bf ff e1 b 2005c1c <rtems_termios_txdaemon+0x14> <== NOT EXECUTED
2005c9c: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
02004c64 <rtems_termios_write>:
rtems_termios_puts (&c, 1, tty);
}
rtems_status_code
rtems_termios_write (void *arg)
{
2004c64: 9d e3 bf a0 save %sp, -96, %sp
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
2004c68: c2 06 00 00 ld [ %i0 ], %g1
rtems_status_code sc;
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
2004c6c: 92 10 20 00 clr %o1
rtems_status_code
rtems_termios_write (void *arg)
{
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
2004c70: e0 00 60 38 ld [ %g1 + 0x38 ], %l0
rtems_status_code sc;
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
2004c74: 94 10 20 00 clr %o2
2004c78: 40 00 07 17 call 20068d4 <rtems_semaphore_obtain>
2004c7c: d0 04 20 18 ld [ %l0 + 0x18 ], %o0
if (sc != RTEMS_SUCCESSFUL)
2004c80: a2 92 20 00 orcc %o0, 0, %l1
2004c84: 12 80 00 0f bne 2004cc0 <rtems_termios_write+0x5c> <== NEVER TAKEN
2004c88: 03 00 80 75 sethi %hi(0x201d400), %g1
return sc;
if (rtems_termios_linesw[tty->t_line].l_write != NULL) {
2004c8c: c4 04 20 cc ld [ %l0 + 0xcc ], %g2
2004c90: 85 28 a0 05 sll %g2, 5, %g2
2004c94: 82 10 63 54 or %g1, 0x354, %g1
2004c98: 82 00 40 02 add %g1, %g2, %g1
2004c9c: c2 00 60 0c ld [ %g1 + 0xc ], %g1
2004ca0: 80 a0 60 00 cmp %g1, 0
2004ca4: 02 80 00 09 be 2004cc8 <rtems_termios_write+0x64> <== ALWAYS TAKEN
2004ca8: 92 10 00 18 mov %i0, %o1
sc = rtems_termios_linesw[tty->t_line].l_write(tty,args);
2004cac: 9f c0 40 00 call %g1 <== NOT EXECUTED
2004cb0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2004cb4: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
rtems_semaphore_release (tty->osem);
2004cb8: 40 00 07 4e call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
2004cbc: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 <== NOT EXECUTED
rtems_termios_puts (args->buffer, args->count, tty);
args->bytes_moved = args->count;
}
rtems_semaphore_release (tty->osem);
return sc;
}
2004cc0: 81 c7 e0 08 ret <== NOT EXECUTED
2004cc4: 91 e8 00 11 restore %g0, %l1, %o0 <== NOT EXECUTED
if (rtems_termios_linesw[tty->t_line].l_write != NULL) {
sc = rtems_termios_linesw[tty->t_line].l_write(tty,args);
rtems_semaphore_release (tty->osem);
return sc;
}
if (tty->termios.c_oflag & OPOST) {
2004cc8: c2 04 20 34 ld [ %l0 + 0x34 ], %g1
2004ccc: 80 88 60 01 btst 1, %g1
2004cd0: 22 80 00 16 be,a 2004d28 <rtems_termios_write+0xc4> <== NEVER TAKEN
2004cd4: d0 1e 20 10 ldd [ %i0 + 0x10 ], %o0 <== NOT EXECUTED
uint32_t count = args->count;
2004cd8: e6 06 20 14 ld [ %i0 + 0x14 ], %l3
char *buffer = args->buffer;
2004cdc: e8 06 20 10 ld [ %i0 + 0x10 ], %l4
while (count--)
2004ce0: 80 a4 e0 00 cmp %l3, 0
2004ce4: a4 10 20 00 clr %l2
2004ce8: 02 80 00 0a be 2004d10 <rtems_termios_write+0xac> <== NEVER TAKEN
2004cec: 82 10 20 00 clr %g1
oproc (*buffer++, tty);
2004cf0: d0 0d 00 12 ldub [ %l4 + %l2 ], %o0
2004cf4: 7f ff fe 2f call 20045b0 <oproc>
2004cf8: 92 10 00 10 mov %l0, %o1
2004cfc: a4 04 a0 01 inc %l2
return sc;
}
if (tty->termios.c_oflag & OPOST) {
uint32_t count = args->count;
char *buffer = args->buffer;
while (count--)
2004d00: 80 a4 80 13 cmp %l2, %l3
2004d04: 32 bf ff fc bne,a 2004cf4 <rtems_termios_write+0x90>
2004d08: d0 0d 00 12 ldub [ %l4 + %l2 ], %o0
oproc (*buffer++, tty);
args->bytes_moved = args->count;
}
else {
rtems_termios_puts (args->buffer, args->count, tty);
args->bytes_moved = args->count;
2004d0c: c2 06 20 14 ld [ %i0 + 0x14 ], %g1
2004d10: c2 26 20 1c st %g1, [ %i0 + 0x1c ]
}
rtems_semaphore_release (tty->osem);
2004d14: d0 04 20 18 ld [ %l0 + 0x18 ], %o0
2004d18: 40 00 07 36 call 20069f0 <rtems_semaphore_release>
2004d1c: b0 10 00 11 mov %l1, %i0
return sc;
}
2004d20: 81 c7 e0 08 ret
2004d24: 81 e8 00 00 restore
while (count--)
oproc (*buffer++, tty);
args->bytes_moved = args->count;
}
else {
rtems_termios_puts (args->buffer, args->count, tty);
2004d28: 7f ff fd d3 call 2004474 <rtems_termios_puts> <== NOT EXECUTED
2004d2c: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
args->bytes_moved = args->count;
2004d30: 10 bf ff f8 b 2004d10 <rtems_termios_write+0xac> <== NOT EXECUTED
2004d34: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 <== NOT EXECUTED
02016778 <rtems_timer_cancel>:
*/
rtems_status_code rtems_timer_cancel(
rtems_id id
)
{
2016778: 9d e3 bf 98 save %sp, -104, %sp
RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Timer_Control *)
201677c: 11 00 80 fd sethi %hi(0x203f400), %o0
2016780: 92 10 00 18 mov %i0, %o1
2016784: 90 12 22 88 or %o0, 0x288, %o0
2016788: 40 00 0b aa call 2019630 <_Objects_Get>
201678c: 94 07 bf fc add %fp, -4, %o2
Timer_Control *the_timer;
Objects_Locations location;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
2016790: c2 07 bf fc ld [ %fp + -4 ], %g1
2016794: 80 a0 60 00 cmp %g1, 0
2016798: 12 80 00 0a bne 20167c0 <rtems_timer_cancel+0x48>
201679c: b0 10 20 04 mov 4, %i0
case OBJECTS_LOCAL:
if ( !_Timer_Is_dormant_class( the_timer->the_class ) )
20167a0: c2 02 20 38 ld [ %o0 + 0x38 ], %g1
20167a4: 80 a0 60 04 cmp %g1, 4
20167a8: 02 80 00 04 be 20167b8 <rtems_timer_cancel+0x40> <== NEVER TAKEN
20167ac: 01 00 00 00 nop
(void) _Watchdog_Remove( &the_timer->Ticker );
20167b0: 40 00 14 d0 call 201baf0 <_Watchdog_Remove>
20167b4: 90 02 20 10 add %o0, 0x10, %o0
_Thread_Enable_dispatch();
20167b8: 40 00 0e 63 call 201a144 <_Thread_Enable_dispatch>
20167bc: b0 10 20 00 clr %i0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
20167c0: 81 c7 e0 08 ret
20167c4: 81 e8 00 00 restore
02016c84 <rtems_timer_server_fire_when>:
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
2016c84: 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;
2016c88: 03 00 80 fd sethi %hi(0x203f400), %g1
2016c8c: e0 00 62 c8 ld [ %g1 + 0x2c8 ], %l0 ! 203f6c8 <_Timer_server>
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
2016c90: 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 )
2016c94: 80 a4 20 00 cmp %l0, 0
2016c98: 02 80 00 34 be 2016d68 <rtems_timer_server_fire_when+0xe4>
2016c9c: b0 10 20 0e mov 0xe, %i0
return RTEMS_INCORRECT_STATE;
if ( !_TOD_Is_set )
2016ca0: 03 00 80 fc sethi %hi(0x203f000), %g1
2016ca4: c2 08 63 94 ldub [ %g1 + 0x394 ], %g1 ! 203f394 <_TOD_Is_set>
2016ca8: 80 a0 60 00 cmp %g1, 0
2016cac: 02 80 00 2f be 2016d68 <rtems_timer_server_fire_when+0xe4><== NEVER TAKEN
2016cb0: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( !routine )
2016cb4: 80 a6 a0 00 cmp %i2, 0
2016cb8: 02 80 00 2c be 2016d68 <rtems_timer_server_fire_when+0xe4>
2016cbc: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Validate( wall_time ) )
2016cc0: 7f ff f3 d6 call 2013c18 <_TOD_Validate>
2016cc4: 90 10 00 19 mov %i1, %o0
2016cc8: 80 8a 20 ff btst 0xff, %o0
2016ccc: 12 80 00 04 bne 2016cdc <rtems_timer_server_fire_when+0x58>
2016cd0: 01 00 00 00 nop
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
2016cd4: 81 c7 e0 08 ret
2016cd8: 91 e8 20 14 restore %g0, 0x14, %o0
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Validate( wall_time ) )
return RTEMS_INVALID_CLOCK;
seconds = _TOD_To_seconds( wall_time );
2016cdc: 7f ff f3 99 call 2013b40 <_TOD_To_seconds>
2016ce0: 90 10 00 19 mov %i1, %o0
if ( seconds <= _TOD_Seconds_since_epoch() )
2016ce4: 25 00 80 fd sethi %hi(0x203f400), %l2
2016ce8: c2 04 a0 14 ld [ %l2 + 0x14 ], %g1 ! 203f414 <_TOD_Now>
2016cec: 80 a2 00 01 cmp %o0, %g1
2016cf0: 08 bf ff f9 bleu 2016cd4 <rtems_timer_server_fire_when+0x50>
2016cf4: b2 10 00 08 mov %o0, %i1
2016cf8: 11 00 80 fd sethi %hi(0x203f400), %o0
2016cfc: 92 10 00 11 mov %l1, %o1
2016d00: 90 12 22 88 or %o0, 0x288, %o0
2016d04: 40 00 0a 4b call 2019630 <_Objects_Get>
2016d08: 94 07 bf fc add %fp, -4, %o2
return RTEMS_INVALID_CLOCK;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
2016d0c: c2 07 bf fc ld [ %fp + -4 ], %g1
2016d10: a6 10 00 08 mov %o0, %l3
2016d14: 80 a0 60 00 cmp %g1, 0
2016d18: 12 80 00 14 bne 2016d68 <rtems_timer_server_fire_when+0xe4>
2016d1c: b0 10 20 04 mov 4, %i0
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
2016d20: 40 00 13 74 call 201baf0 <_Watchdog_Remove>
2016d24: 90 02 20 10 add %o0, 0x10, %o0
the_watchdog->routine = routine;
the_watchdog->id = id;
2016d28: e2 24 e0 30 st %l1, [ %l3 + 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();
2016d2c: c4 04 a0 14 ld [ %l2 + 0x14 ], %g2
(*timer_server->schedule_operation)( timer_server, the_timer );
2016d30: c2 04 20 04 ld [ %l0 + 4 ], %g1
2016d34: 90 10 00 10 mov %l0, %o0
2016d38: 92 10 00 13 mov %l3, %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();
2016d3c: b2 26 40 02 sub %i1, %g2, %i1
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;
2016d40: 84 10 20 03 mov 3, %g2
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
2016d44: f4 24 e0 2c st %i2, [ %l3 + 0x2c ]
2016d48: c4 24 e0 38 st %g2, [ %l3 + 0x38 ]
the_watchdog->id = id;
the_watchdog->user_data = user_data;
2016d4c: f6 24 e0 34 st %i3, [ %l3 + 0x34 ]
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
2016d50: f2 24 e0 1c st %i1, [ %l3 + 0x1c ]
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
2016d54: c0 24 e0 18 clr [ %l3 + 0x18 ]
(*timer_server->schedule_operation)( timer_server, the_timer );
2016d58: 9f c0 40 00 call %g1
2016d5c: b0 10 20 00 clr %i0
_Thread_Enable_dispatch();
2016d60: 40 00 0c f9 call 201a144 <_Thread_Enable_dispatch>
2016d64: 01 00 00 00 nop
return RTEMS_SUCCESSFUL;
2016d68: 81 c7 e0 08 ret
2016d6c: 81 e8 00 00 restore
02007d00 <rtems_verror>:
static int rtems_verror(
rtems_error_code_t error_flag,
const char *printf_format,
va_list arglist
)
{
2007d00: 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)
2007d04: 29 08 00 00 sethi %hi(0x20000000), %l4 <== NOT EXECUTED
2007d08: a8 8e 00 14 andcc %i0, %l4, %l4 <== NOT EXECUTED
2007d0c: 02 80 00 0f be 2007d48 <rtems_verror+0x48> <== NOT EXECUTED
2007d10: 05 00 80 9d sethi %hi(0x2027400), %g2 <== NOT EXECUTED
{
if (rtems_panic_in_progress++)
2007d14: c6 00 a0 c4 ld [ %g2 + 0xc4 ], %g3 ! 20274c4 <rtems_panic_in_progress><== NOT EXECUTED
2007d18: 82 00 e0 01 add %g3, 1, %g1 <== NOT EXECUTED
2007d1c: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
2007d20: 02 80 00 07 be 2007d3c <rtems_verror+0x3c> <== NOT EXECUTED
2007d24: c2 20 a0 c4 st %g1, [ %g2 + 0xc4 ] <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
2007d28: 03 00 80 9d sethi %hi(0x2027400), %g1 <== NOT EXECUTED
2007d2c: c6 00 62 a0 ld [ %g1 + 0x2a0 ], %g3 ! 20276a0 <_Thread_Dispatch_disable_level><== NOT EXECUTED
2007d30: 86 00 e0 01 inc %g3 <== NOT EXECUTED
2007d34: c6 20 62 a0 st %g3, [ %g1 + 0x2a0 ] <== NOT EXECUTED
RTEMS_COMPILER_MEMORY_BARRIER();
2007d38: c2 00 a0 c4 ld [ %g2 + 0xc4 ], %g1 <== NOT EXECUTED
_Thread_Disable_dispatch(); /* disable task switches */
/* don't aggravate things */
if (rtems_panic_in_progress > 2)
2007d3c: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
2007d40: 14 80 00 3c bg 2007e30 <rtems_verror+0x130> <== NOT EXECUTED
2007d44: a4 10 20 00 clr %l2 <== NOT EXECUTED
return 0;
}
(void) fflush(stdout); /* in case stdout/stderr same */
2007d48: 21 00 80 9b sethi %hi(0x2026c00), %l0 <== NOT EXECUTED
2007d4c: c2 04 20 68 ld [ %l0 + 0x68 ], %g1 ! 2026c68 <_impure_ptr><== NOT EXECUTED
status = error_flag & ~RTEMS_ERROR_MASK;
2007d50: 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 */
2007d54: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED
2007d58: 40 00 39 9c call 20163c8 <fflush> <== NOT EXECUTED
2007d5c: a2 10 20 00 clr %l1 <== NOT EXECUTED
status = error_flag & ~RTEMS_ERROR_MASK;
if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */
2007d60: 03 10 00 00 sethi %hi(0x40000000), %g1 <== NOT EXECUTED
2007d64: 80 8e 00 01 btst %i0, %g1 <== NOT EXECUTED
2007d68: 12 80 00 45 bne 2007e7c <rtems_verror+0x17c> <== NOT EXECUTED
2007d6c: a6 2e 00 13 andn %i0, %l3, %l3 <== 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);
2007d70: c2 04 20 68 ld [ %l0 + 0x68 ], %g1 <== NOT EXECUTED
2007d74: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2007d78: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED
2007d7c: 40 00 51 1a call 201c1e4 <vfprintf> <== NOT EXECUTED
2007d80: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
if (status)
2007d84: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
2007d88: 12 80 00 31 bne 2007e4c <rtems_verror+0x14c> <== NOT EXECUTED
2007d8c: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status));
if (local_errno)
2007d90: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
2007d94: 02 80 00 12 be 2007ddc <rtems_verror+0xdc> <== NOT EXECUTED
2007d98: c2 04 20 68 ld [ %l0 + 0x68 ], %g1 <== NOT EXECUTED
{
if ((local_errno > 0) && *strerror(local_errno))
2007d9c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
2007da0: 04 80 00 09 ble 2007dc4 <rtems_verror+0xc4> <== NOT EXECUTED
2007da4: 13 00 80 93 sethi %hi(0x2024c00), %o1 <== NOT EXECUTED
2007da8: 40 00 3d af call 2017464 <strerror> <== NOT EXECUTED
2007dac: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2007db0: c2 4a 00 00 ldsb [ %o0 ], %g1 <== NOT EXECUTED
2007db4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2007db8: 12 80 00 35 bne 2007e8c <rtems_verror+0x18c> <== NOT EXECUTED
2007dbc: c2 04 20 68 ld [ %l0 + 0x68 ], %g1 <== NOT EXECUTED
chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
else
chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
2007dc0: 13 00 80 93 sethi %hi(0x2024c00), %o1 <== NOT EXECUTED
2007dc4: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED
2007dc8: 92 12 60 a8 or %o1, 0xa8, %o1 <== NOT EXECUTED
2007dcc: 40 00 3a 53 call 2016718 <fprintf> <== NOT EXECUTED
2007dd0: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2007dd4: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED
}
chars_written += fprintf(stderr, "\n");
2007dd8: c2 04 20 68 ld [ %l0 + 0x68 ], %g1 <== NOT EXECUTED
2007ddc: 13 00 80 93 sethi %hi(0x2024c00), %o1 <== NOT EXECUTED
2007de0: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED
2007de4: 40 00 3a 4d call 2016718 <fprintf> <== NOT EXECUTED
2007de8: 92 12 60 c0 or %o1, 0xc0, %o1 <== NOT EXECUTED
(void) fflush(stderr);
2007dec: c2 04 20 68 ld [ %l0 + 0x68 ], %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");
2007df0: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
(void) fflush(stderr);
2007df4: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED
2007df8: 40 00 39 74 call 20163c8 <fflush> <== NOT EXECUTED
2007dfc: a4 04 c0 12 add %l3, %l2, %l2 <== NOT EXECUTED
if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT))
2007e00: 03 0c 00 00 sethi %hi(0x30000000), %g1 <== NOT EXECUTED
2007e04: 80 8e 00 01 btst %i0, %g1 <== NOT EXECUTED
2007e08: 02 80 00 0a be 2007e30 <rtems_verror+0x130> <== NOT EXECUTED
2007e0c: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED
{
if (error_flag & RTEMS_ERROR_PANIC)
2007e10: 22 80 00 0a be,a 2007e38 <rtems_verror+0x138> <== NOT EXECUTED
2007e14: 13 00 80 93 sethi %hi(0x2024c00), %o1 <== NOT EXECUTED
{
rtems_error(0, "fatal error, exiting");
2007e18: 13 00 80 93 sethi %hi(0x2024c00), %o1 <== NOT EXECUTED
2007e1c: 90 10 20 00 clr %o0 <== NOT EXECUTED
2007e20: 40 00 00 32 call 2007ee8 <rtems_error> <== NOT EXECUTED
2007e24: 92 12 60 c8 or %o1, 0xc8, %o1 <== NOT EXECUTED
_exit(local_errno);
2007e28: 40 00 03 58 call 2008b88 <_exit> <== NOT EXECUTED
2007e2c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
rtems_error(0, "fatal error, aborting");
abort();
}
}
return chars_written;
}
2007e30: 81 c7 e0 08 ret <== NOT EXECUTED
2007e34: 91 e8 00 12 restore %g0, %l2, %o0 <== NOT EXECUTED
rtems_error(0, "fatal error, exiting");
_exit(local_errno);
}
else
{
rtems_error(0, "fatal error, aborting");
2007e38: 90 10 20 00 clr %o0 <== NOT EXECUTED
2007e3c: 40 00 00 2b call 2007ee8 <rtems_error> <== NOT EXECUTED
2007e40: 92 12 60 e0 or %o1, 0xe0, %o1 <== NOT EXECUTED
abort();
2007e44: 40 00 38 49 call 2015f68 <abort> <== NOT EXECUTED
2007e48: 01 00 00 00 nop <== NOT EXECUTED
#endif
chars_written += vfprintf(stderr, printf_format, arglist);
if (status)
chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status));
2007e4c: 03 00 80 9b sethi %hi(0x2026c00), %g1 <== NOT EXECUTED
2007e50: c2 00 60 68 ld [ %g1 + 0x68 ], %g1 ! 2026c68 <_impure_ptr><== NOT EXECUTED
2007e54: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
2007e58: 7f ff ff a3 call 2007ce4 <rtems_status_text> <== NOT EXECUTED
2007e5c: e6 00 60 0c ld [ %g1 + 0xc ], %l3 <== NOT EXECUTED
2007e60: 13 00 80 93 sethi %hi(0x2024c00), %o1 <== NOT EXECUTED
2007e64: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2007e68: 92 12 60 88 or %o1, 0x88, %o1 <== NOT EXECUTED
2007e6c: 40 00 3a 2b call 2016718 <fprintf> <== NOT EXECUTED
2007e70: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
2007e74: 10 bf ff c7 b 2007d90 <rtems_verror+0x90> <== NOT EXECUTED
2007e78: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED
(void) fflush(stdout); /* in case stdout/stderr same */
status = error_flag & ~RTEMS_ERROR_MASK;
if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */
local_errno = errno;
2007e7c: 40 00 38 49 call 2015fa0 <__errno> <== NOT EXECUTED
2007e80: 01 00 00 00 nop <== NOT EXECUTED
2007e84: 10 bf ff bb b 2007d70 <rtems_verror+0x70> <== NOT EXECUTED
2007e88: e2 02 00 00 ld [ %o0 ], %l1 <== NOT EXECUTED
chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status));
if (local_errno)
{
if ((local_errno > 0) && *strerror(local_errno))
chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
2007e8c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2007e90: 40 00 3d 75 call 2017464 <strerror> <== NOT EXECUTED
2007e94: e6 00 60 0c ld [ %g1 + 0xc ], %l3 <== NOT EXECUTED
2007e98: 13 00 80 93 sethi %hi(0x2024c00), %o1 <== NOT EXECUTED
2007e9c: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2007ea0: 92 12 60 98 or %o1, 0x98, %o1 <== NOT EXECUTED
2007ea4: 40 00 3a 1d call 2016718 <fprintf> <== NOT EXECUTED
2007ea8: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
if (status)
chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status));
if (local_errno)
{
if ((local_errno > 0) && *strerror(local_errno))
2007eac: 10 bf ff cb b 2007dd8 <rtems_verror+0xd8> <== NOT EXECUTED
2007eb0: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED
0202c940 <scanInt>:
/*
* Extract an integer value from the database
*/
static int
scanInt(FILE *fp, int *val)
{
202c940: 9d e3 bf a0 save %sp, -96, %sp
202c944: 27 1f ff ff sethi %hi(0x7ffffc00), %l3
unsigned int limit = INT_MAX;
int sign = 0;
int d;
for (;;) {
c = getc(fp);
202c948: 2b 00 81 be sethi %hi(0x206f800), %l5
limit++;
continue;
}
sign = 1;
}
if (!isdigit(c))
202c94c: 29 00 81 be sethi %hi(0x206f800), %l4
/*
* Extract an integer value from the database
*/
static int
scanInt(FILE *fp, int *val)
{
202c950: a6 14 e3 ff or %l3, 0x3ff, %l3
unsigned int limit = INT_MAX;
int sign = 0;
int d;
for (;;) {
c = getc(fp);
202c954: aa 15 62 c0 or %l5, 0x2c0, %l5
limit++;
continue;
}
sign = 1;
}
if (!isdigit(c))
202c958: a8 15 22 b4 or %l4, 0x2b4, %l4
/*
* Extract an integer value from the database
*/
static int
scanInt(FILE *fp, int *val)
{
202c95c: a4 10 20 00 clr %l2
202c960: a2 10 20 00 clr %l1
unsigned int limit = INT_MAX;
int sign = 0;
int d;
for (;;) {
c = getc(fp);
202c964: c2 06 20 04 ld [ %i0 + 4 ], %g1
202c968: 82 00 7f ff add %g1, -1, %g1
202c96c: 80 a0 60 00 cmp %g1, 0
202c970: 06 80 00 24 bl 202ca00 <scanInt+0xc0> <== NEVER TAKEN
202c974: c2 26 20 04 st %g1, [ %i0 + 4 ]
202c978: c2 06 00 00 ld [ %i0 ], %g1
202c97c: e0 08 40 00 ldub [ %g1 ], %l0
202c980: 84 00 60 01 add %g1, 1, %g2
if (c == ':')
202c984: 80 a4 20 3a cmp %l0, 0x3a
202c988: 02 80 00 25 be 202ca1c <scanInt+0xdc>
202c98c: c4 26 00 00 st %g2, [ %i0 ]
break;
if (sign == 0) {
202c990: 80 a4 a0 00 cmp %l2, 0
202c994: 32 80 00 06 bne,a 202c9ac <scanInt+0x6c> <== NEVER TAKEN
202c998: c2 05 00 00 ld [ %l4 ], %g1 <== NOT EXECUTED
if (c == '-') {
202c99c: 80 a4 20 2d cmp %l0, 0x2d
202c9a0: 02 80 00 30 be 202ca60 <scanInt+0x120> <== NEVER TAKEN
202c9a4: a4 10 20 01 mov 1, %l2
limit++;
continue;
}
sign = 1;
}
if (!isdigit(c))
202c9a8: c2 05 00 00 ld [ %l4 ], %g1
202c9ac: 82 00 40 10 add %g1, %l0, %g1
202c9b0: c2 08 60 01 ldub [ %g1 + 1 ], %g1
202c9b4: 80 88 60 04 btst 4, %g1
202c9b8: 02 80 00 28 be 202ca58 <scanInt+0x118> <== NEVER TAKEN
202c9bc: 90 10 00 13 mov %l3, %o0
return 0;
d = c - '0';
if ((i > (limit / 10))
202c9c0: 40 00 d1 ce call 20610f8 <.udiv>
202c9c4: 92 10 20 0a mov 0xa, %o1
202c9c8: 80 a4 40 08 cmp %l1, %o0
202c9cc: 18 80 00 23 bgu 202ca58 <scanInt+0x118> <== NEVER TAKEN
202c9d0: 01 00 00 00 nop
202c9d4: 02 80 00 1b be 202ca40 <scanInt+0x100> <== NEVER TAKEN
202c9d8: a0 04 3f d0 add %l0, -48, %l0
|| ((i == (limit / 10)) && (d > (limit % 10))))
return 0;
i = i * 10 + d;
202c9dc: 83 2c 60 03 sll %l1, 3, %g1
202c9e0: a3 2c 60 01 sll %l1, 1, %l1
202c9e4: a2 04 40 01 add %l1, %g1, %l1
unsigned int limit = INT_MAX;
int sign = 0;
int d;
for (;;) {
c = getc(fp);
202c9e8: c2 06 20 04 ld [ %i0 + 4 ], %g1
return 0;
d = c - '0';
if ((i > (limit / 10))
|| ((i == (limit / 10)) && (d > (limit % 10))))
return 0;
i = i * 10 + d;
202c9ec: a2 04 00 11 add %l0, %l1, %l1
unsigned int limit = INT_MAX;
int sign = 0;
int d;
for (;;) {
c = getc(fp);
202c9f0: 82 00 7f ff add %g1, -1, %g1
202c9f4: 80 a0 60 00 cmp %g1, 0
202c9f8: 16 bf ff e0 bge 202c978 <scanInt+0x38> <== ALWAYS TAKEN
202c9fc: c2 26 20 04 st %g1, [ %i0 + 4 ]
202ca00: d0 05 40 00 ld [ %l5 ], %o0 <== NOT EXECUTED
202ca04: 40 00 86 db call 204e570 <__srget_r> <== NOT EXECUTED
202ca08: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
202ca0c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
if (c == ':')
202ca10: 80 a4 20 3a cmp %l0, 0x3a <== NOT EXECUTED
202ca14: 12 bf ff e0 bne 202c994 <scanInt+0x54> <== NOT EXECUTED
202ca18: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
if ((i > (limit / 10))
|| ((i == (limit / 10)) && (d > (limit % 10))))
return 0;
i = i * 10 + d;
}
if (sign == 0)
202ca1c: 80 a4 a0 00 cmp %l2, 0
202ca20: 02 80 00 0e be 202ca58 <scanInt+0x118> <== NEVER TAKEN
202ca24: 90 10 00 12 mov %l2, %o0
return 0;
*val = i * sign;
202ca28: 92 10 00 11 mov %l1, %o1
202ca2c: 7f ff 58 58 call 2002b8c <.umul>
202ca30: b0 10 20 01 mov 1, %i0
202ca34: d0 26 40 00 st %o0, [ %i1 ]
return 1;
202ca38: 81 c7 e0 08 ret
202ca3c: 81 e8 00 00 restore
sign = 1;
}
if (!isdigit(c))
return 0;
d = c - '0';
if ((i > (limit / 10))
202ca40: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
202ca44: 40 00 d2 59 call 20613a8 <.urem> <== NOT EXECUTED
202ca48: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED
202ca4c: 80 a4 00 08 cmp %l0, %o0 <== NOT EXECUTED
202ca50: 08 bf ff e4 bleu 202c9e0 <scanInt+0xa0> <== NOT EXECUTED
202ca54: 83 2c 60 03 sll %l1, 3, %g1 <== NOT EXECUTED
}
if (sign == 0)
return 0;
*val = i * sign;
return 1;
}
202ca58: 81 c7 e0 08 ret <== NOT EXECUTED
202ca5c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
if (c == ':')
break;
if (sign == 0) {
if (c == '-') {
sign = -1;
limit++;
202ca60: a6 04 e0 01 inc %l3 <== NOT EXECUTED
continue;
202ca64: 10 bf ff c0 b 202c964 <scanInt+0x24> <== NOT EXECUTED
202ca68: a4 10 3f ff mov -1, %l2 <== NOT EXECUTED
0202ca6c <scanString>:
/*
* Extract a string value from the database
*/
static int
scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
{
202ca6c: 9d e3 bf a0 save %sp, -96, %sp
int c;
*name = *bufp;
202ca70: c2 06 80 00 ld [ %i2 ], %g1
for (;;) {
c = getc(fp);
202ca74: 21 00 81 be sethi %hi(0x206f800), %l0
static int
scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
{
int c;
*name = *bufp;
202ca78: c2 26 40 00 st %g1, [ %i1 ]
for (;;) {
c = getc(fp);
202ca7c: 10 80 00 19 b 202cae0 <scanString+0x74>
202ca80: a0 14 22 c0 or %l0, 0x2c0, %l0
202ca84: c2 06 00 00 ld [ %i0 ], %g1
202ca88: d0 08 40 00 ldub [ %g1 ], %o0
202ca8c: 84 00 60 01 add %g1, 1, %g2
if (c == ':') {
202ca90: 80 a2 20 3a cmp %o0, 0x3a
202ca94: 02 80 00 1e be 202cb0c <scanString+0xa0>
202ca98: c4 26 00 00 st %g2, [ %i0 ]
if (nlFlag)
return 0;
break;
}
if (c == '\n') {
202ca9c: 80 a2 20 0a cmp %o0, 0xa
202caa0: 02 80 00 28 be 202cb40 <scanString+0xd4>
202caa4: 80 a2 3f ff cmp %o0, -1
if (!nlFlag)
return 0;
break;
}
if (c == EOF)
202caa8: 02 80 00 29 be 202cb4c <scanString+0xe0> <== NEVER TAKEN
202caac: 01 00 00 00 nop
return 0;
if (*nleft < 2)
202cab0: c2 06 c0 00 ld [ %i3 ], %g1
202cab4: 80 a0 60 01 cmp %g1, 1
202cab8: 08 80 00 25 bleu 202cb4c <scanString+0xe0> <== NEVER TAKEN
202cabc: 01 00 00 00 nop
return 0;
**bufp = c;
202cac0: c2 06 80 00 ld [ %i2 ], %g1
202cac4: d0 28 40 00 stb %o0, [ %g1 ]
++(*bufp);
202cac8: c4 06 80 00 ld [ %i2 ], %g2
--(*nleft);
202cacc: c2 06 c0 00 ld [ %i3 ], %g1
if (c == EOF)
return 0;
if (*nleft < 2)
return 0;
**bufp = c;
++(*bufp);
202cad0: 84 00 a0 01 inc %g2
--(*nleft);
202cad4: 82 00 7f ff add %g1, -1, %g1
if (c == EOF)
return 0;
if (*nleft < 2)
return 0;
**bufp = c;
++(*bufp);
202cad8: c4 26 80 00 st %g2, [ %i2 ]
--(*nleft);
202cadc: c2 26 c0 00 st %g1, [ %i3 ]
{
int c;
*name = *bufp;
for (;;) {
c = getc(fp);
202cae0: c2 06 20 04 ld [ %i0 + 4 ], %g1
202cae4: 82 00 7f ff add %g1, -1, %g1
202cae8: 80 a0 60 00 cmp %g1, 0
202caec: 16 bf ff e6 bge 202ca84 <scanString+0x18>
202caf0: c2 26 20 04 st %g1, [ %i0 + 4 ]
202caf4: d0 04 00 00 ld [ %l0 ], %o0
202caf8: 40 00 86 9e call 204e570 <__srget_r>
202cafc: 92 10 00 18 mov %i0, %o1
if (c == ':') {
202cb00: 80 a2 20 3a cmp %o0, 0x3a
202cb04: 12 bf ff e7 bne 202caa0 <scanString+0x34> <== ALWAYS TAKEN
202cb08: 80 a2 20 0a cmp %o0, 0xa
if (nlFlag)
202cb0c: 80 a7 20 00 cmp %i4, 0
202cb10: 12 80 00 0f bne 202cb4c <scanString+0xe0> <== NEVER TAKEN
202cb14: 01 00 00 00 nop
return 0;
**bufp = c;
++(*bufp);
--(*nleft);
}
**bufp = '\0';
202cb18: c2 06 80 00 ld [ %i2 ], %g1
202cb1c: c0 28 40 00 clrb [ %g1 ]
++(*bufp);
202cb20: c4 06 80 00 ld [ %i2 ], %g2
--(*nleft);
202cb24: c2 06 c0 00 ld [ %i3 ], %g1
**bufp = c;
++(*bufp);
--(*nleft);
}
**bufp = '\0';
++(*bufp);
202cb28: 84 00 a0 01 inc %g2
--(*nleft);
202cb2c: 82 00 7f ff add %g1, -1, %g1
**bufp = c;
++(*bufp);
--(*nleft);
}
**bufp = '\0';
++(*bufp);
202cb30: c4 26 80 00 st %g2, [ %i2 ]
--(*nleft);
202cb34: c2 26 c0 00 st %g1, [ %i3 ]
return 1;
202cb38: 81 c7 e0 08 ret
202cb3c: 91 e8 20 01 restore %g0, 1, %o0
if (nlFlag)
return 0;
break;
}
if (c == '\n') {
if (!nlFlag)
202cb40: 80 a7 20 00 cmp %i4, 0
202cb44: 32 bf ff f6 bne,a 202cb1c <scanString+0xb0> <== ALWAYS TAKEN
202cb48: c2 06 80 00 ld [ %i2 ], %g1
}
**bufp = '\0';
++(*bufp);
--(*nleft);
return 1;
}
202cb4c: 81 c7 e0 08 ret <== NOT EXECUTED
202cb50: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
0202cb54 <scangr>:
FILE *fp,
struct group *grp,
char *buffer,
size_t bufsize
)
{
202cb54: 9d e3 bf 98 save %sp, -104, %sp
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
202cb58: 98 10 20 00 clr %o4
FILE *fp,
struct group *grp,
char *buffer,
size_t bufsize
)
{
202cb5c: f4 27 a0 4c st %i2, [ %fp + 0x4c ]
202cb60: f6 27 a0 50 st %i3, [ %fp + 0x50 ]
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
202cb64: a2 07 a0 4c add %fp, 0x4c, %l1
202cb68: a0 07 a0 50 add %fp, 0x50, %l0
202cb6c: 90 10 00 18 mov %i0, %o0
202cb70: 92 10 00 19 mov %i1, %o1
202cb74: 94 10 00 11 mov %l1, %o2
202cb78: 7f ff ff bd call 202ca6c <scanString>
202cb7c: 96 10 00 10 mov %l0, %o3
202cb80: 80 a2 20 00 cmp %o0, 0
202cb84: 12 80 00 04 bne 202cb94 <scangr+0x40> <== ALWAYS TAKEN
202cb88: 90 10 00 18 mov %i0, %o0
grp->gr_mem[memcount++] = cp + 1;
}
}
grp->gr_mem[memcount] = NULL;
return 1;
}
202cb8c: 81 c7 e0 08 ret <== NOT EXECUTED
202cb90: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
202cb94: 92 06 60 04 add %i1, 4, %o1
202cb98: 94 10 00 11 mov %l1, %o2
202cb9c: 96 10 00 10 mov %l0, %o3
202cba0: 7f ff ff b3 call 202ca6c <scanString>
202cba4: 98 10 20 00 clr %o4
{
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
202cba8: 80 a2 20 00 cmp %o0, 0
202cbac: 02 bf ff f8 be 202cb8c <scangr+0x38> <== NEVER TAKEN
202cbb0: 90 10 00 18 mov %i0, %o0
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &grgid)
202cbb4: 7f ff ff 63 call 202c940 <scanInt>
202cbb8: 92 07 bf fc add %fp, -4, %o1
{
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
202cbbc: 80 a2 20 00 cmp %o0, 0
202cbc0: 02 bf ff f3 be 202cb8c <scangr+0x38> <== NEVER TAKEN
202cbc4: 90 10 00 18 mov %i0, %o0
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &grgid)
|| !scanString(fp, &grmem, &buffer, &bufsize, 1))
202cbc8: 94 10 00 11 mov %l1, %o2
202cbcc: 96 10 00 10 mov %l0, %o3
202cbd0: 92 07 bf f8 add %fp, -8, %o1
202cbd4: 7f ff ff a6 call 202ca6c <scanString>
202cbd8: 98 10 20 01 mov 1, %o4
{
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
202cbdc: 80 a2 20 00 cmp %o0, 0
202cbe0: 02 bf ff eb be 202cb8c <scangr+0x38> <== NEVER TAKEN
202cbe4: da 07 bf f8 ld [ %fp + -8 ], %o5
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &grgid)
|| !scanString(fp, &grmem, &buffer, &bufsize, 1))
return 0;
grp->gr_gid = grgid;
202cbe8: c2 07 bf fc ld [ %fp + -4 ], %g1
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
202cbec: 84 10 00 0d mov %o5, %g2
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;
202cbf0: c2 36 60 08 sth %g1, [ %i1 + 8 ]
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
202cbf4: c6 0b 40 00 ldub [ %o5 ], %g3
202cbf8: 88 10 20 01 mov 1, %g4
202cbfc: 83 28 e0 18 sll %g3, 0x18, %g1
202cc00: 80 a0 60 00 cmp %g1, 0
202cc04: 02 80 00 0e be 202cc3c <scangr+0xe8> <== NEVER TAKEN
202cc08: 86 10 20 17 mov 0x17, %g3
202cc0c: 84 00 a0 01 inc %g2
202cc10: c6 08 80 00 ldub [ %g2 ], %g3
if(*cp == ',')
202cc14: 83 38 60 18 sra %g1, 0x18, %g1
memcount++;
202cc18: 82 18 60 2c xor %g1, 0x2c, %g1
202cc1c: 80 a0 00 01 cmp %g0, %g1
grp->gr_gid = grgid;
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
202cc20: 83 28 e0 18 sll %g3, 0x18, %g1
if(*cp == ',')
memcount++;
202cc24: 88 61 3f ff subx %g4, -1, %g4
grp->gr_gid = grgid;
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
202cc28: 80 a0 60 00 cmp %g1, 0
202cc2c: 32 bf ff f9 bne,a 202cc10 <scangr+0xbc>
202cc30: 84 00 a0 01 inc %g2
202cc34: 87 29 20 02 sll %g4, 2, %g3
202cc38: 86 00 e0 13 add %g3, 0x13, %g3
}
/*
* Hack to produce (hopefully) a suitably-aligned array of pointers
*/
if (bufsize < (((memcount+1)*sizeof(char *)) + 15))
202cc3c: c2 07 a0 50 ld [ %fp + 0x50 ], %g1
202cc40: 80 a0 40 03 cmp %g1, %g3
202cc44: 0a bf ff d2 bcs 202cb8c <scangr+0x38> <== NEVER TAKEN
202cc48: c4 07 a0 4c ld [ %fp + 0x4c ], %g2
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
202cc4c: 86 10 20 01 mov 1, %g3
/*
* 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);
202cc50: 84 00 a0 0f add %g2, 0xf, %g2
202cc54: 84 08 bf f0 and %g2, -16, %g2
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
202cc58: da 20 80 00 st %o5, [ %g2 ]
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
202cc5c: c2 07 bf f8 ld [ %fp + -8 ], %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);
202cc60: c4 26 60 0c st %g2, [ %i1 + 0xc ]
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
202cc64: c4 08 40 00 ldub [ %g1 ], %g2
202cc68: 88 10 20 04 mov 4, %g4
202cc6c: 85 28 a0 18 sll %g2, 0x18, %g2
202cc70: 80 a0 a0 00 cmp %g2, 0
202cc74: 12 80 00 09 bne 202cc98 <scangr+0x144> <== ALWAYS TAKEN
202cc78: 82 00 60 01 inc %g1
if(*cp == ',') {
*cp = '\0';
grp->gr_mem[memcount++] = cp + 1;
}
}
grp->gr_mem[memcount] = NULL;
202cc7c: 10 80 00 13 b 202ccc8 <scangr+0x174> <== NOT EXECUTED
202cc80: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
202cc84: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED
202cc88: 85 28 a0 18 sll %g2, 0x18, %g2
202cc8c: 80 a0 a0 00 cmp %g2, 0
202cc90: 02 80 00 0c be 202ccc0 <scangr+0x16c>
202cc94: 82 00 60 01 inc %g1
if(*cp == ',') {
202cc98: 85 38 a0 18 sra %g2, 0x18, %g2
202cc9c: 80 a0 a0 2c cmp %g2, 0x2c
202cca0: 32 bf ff fa bne,a 202cc88 <scangr+0x134> <== ALWAYS TAKEN
202cca4: c4 08 40 00 ldub [ %g1 ], %g2
*cp = '\0';
202cca8: c0 28 7f ff clrb [ %g1 + -1 ] <== NOT EXECUTED
grp->gr_mem[memcount++] = cp + 1;
202ccac: c8 06 60 0c ld [ %i1 + 0xc ], %g4 <== NOT EXECUTED
202ccb0: 85 28 e0 02 sll %g3, 2, %g2 <== NOT EXECUTED
202ccb4: 86 00 e0 01 inc %g3 <== NOT EXECUTED
202ccb8: 10 bf ff f3 b 202cc84 <scangr+0x130> <== NOT EXECUTED
202ccbc: c2 21 00 02 st %g1, [ %g4 + %g2 ] <== NOT EXECUTED
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
202ccc0: 89 28 e0 02 sll %g3, 2, %g4
if(*cp == ',') {
*cp = '\0';
grp->gr_mem[memcount++] = cp + 1;
}
}
grp->gr_mem[memcount] = NULL;
202ccc4: c2 06 60 0c ld [ %i1 + 0xc ], %g1
202ccc8: c0 20 40 04 clr [ %g1 + %g4 ]
return 1;
202cccc: 81 c7 e0 08 ret
202ccd0: 91 e8 20 01 restore %g0, 1, %o0
0202cd20 <scanpw>:
FILE *fp,
struct passwd *pwd,
char *buffer,
size_t bufsize
)
{
202cd20: 9d e3 bf 98 save %sp, -104, %sp
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
202cd24: 98 10 20 00 clr %o4
FILE *fp,
struct passwd *pwd,
char *buffer,
size_t bufsize
)
{
202cd28: f4 27 a0 4c st %i2, [ %fp + 0x4c ]
202cd2c: f6 27 a0 50 st %i3, [ %fp + 0x50 ]
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
202cd30: a2 07 a0 4c add %fp, 0x4c, %l1
202cd34: a0 07 a0 50 add %fp, 0x50, %l0
202cd38: 90 10 00 18 mov %i0, %o0
202cd3c: 92 10 00 19 mov %i1, %o1
202cd40: 94 10 00 11 mov %l1, %o2
202cd44: 7f ff ff 4a call 202ca6c <scanString>
202cd48: 96 10 00 10 mov %l0, %o3
202cd4c: 80 a2 20 00 cmp %o0, 0
202cd50: 12 80 00 04 bne 202cd60 <scanpw+0x40> <== ALWAYS TAKEN
202cd54: 90 10 00 18 mov %i0, %o0
|| !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1))
return 0;
pwd->pw_uid = pwuid;
pwd->pw_gid = pwgid;
return 1;
}
202cd58: 81 c7 e0 08 ret <== NOT EXECUTED
202cd5c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
202cd60: 92 06 60 04 add %i1, 4, %o1
202cd64: 94 10 00 11 mov %l1, %o2
202cd68: 96 10 00 10 mov %l0, %o3
202cd6c: 7f ff ff 40 call 202ca6c <scanString>
202cd70: 98 10 20 00 clr %o4
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
202cd74: 80 a2 20 00 cmp %o0, 0
202cd78: 02 bf ff f8 be 202cd58 <scanpw+0x38> <== NEVER TAKEN
202cd7c: 90 10 00 18 mov %i0, %o0
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &pwuid)
202cd80: 7f ff fe f0 call 202c940 <scanInt>
202cd84: 92 07 bf fc add %fp, -4, %o1
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
202cd88: 80 a2 20 00 cmp %o0, 0
202cd8c: 02 bf ff f3 be 202cd58 <scanpw+0x38> <== NEVER TAKEN
202cd90: 90 10 00 18 mov %i0, %o0
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &pwuid)
|| !scanInt(fp, &pwgid)
202cd94: 7f ff fe eb call 202c940 <scanInt>
202cd98: 92 07 bf f8 add %fp, -8, %o1
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
202cd9c: 80 a2 20 00 cmp %o0, 0
202cda0: 02 bf ff ee be 202cd58 <scanpw+0x38> <== NEVER TAKEN
202cda4: 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)
202cda8: 92 06 60 0c add %i1, 0xc, %o1
202cdac: 94 10 00 11 mov %l1, %o2
202cdb0: 96 10 00 10 mov %l0, %o3
202cdb4: 7f ff ff 2e call 202ca6c <scanString>
202cdb8: 98 10 20 00 clr %o4
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
202cdbc: 80 a2 20 00 cmp %o0, 0
202cdc0: 02 bf ff e6 be 202cd58 <scanpw+0x38> <== NEVER TAKEN
202cdc4: 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)
202cdc8: 92 06 60 10 add %i1, 0x10, %o1
202cdcc: 94 10 00 11 mov %l1, %o2
202cdd0: 96 10 00 10 mov %l0, %o3
202cdd4: 7f ff ff 26 call 202ca6c <scanString>
202cdd8: 98 10 20 00 clr %o4
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
202cddc: 80 a2 20 00 cmp %o0, 0
202cde0: 02 bf ff de be 202cd58 <scanpw+0x38> <== NEVER TAKEN
202cde4: 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)
202cde8: 92 06 60 14 add %i1, 0x14, %o1
202cdec: 94 10 00 11 mov %l1, %o2
202cdf0: 96 10 00 10 mov %l0, %o3
202cdf4: 7f ff ff 1e call 202ca6c <scanString>
202cdf8: 98 10 20 00 clr %o4
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
202cdfc: 80 a2 20 00 cmp %o0, 0
202ce00: 02 bf ff d6 be 202cd58 <scanpw+0x38> <== NEVER TAKEN
202ce04: 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))
202ce08: 94 10 00 11 mov %l1, %o2
202ce0c: 96 10 00 10 mov %l0, %o3
202ce10: 92 06 60 18 add %i1, 0x18, %o1
202ce14: 7f ff ff 16 call 202ca6c <scanString>
202ce18: 98 10 20 01 mov 1, %o4
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
202ce1c: 80 a2 20 00 cmp %o0, 0
202ce20: 02 bf ff ce be 202cd58 <scanpw+0x38> <== NEVER TAKEN
202ce24: 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;
202ce28: c2 36 60 08 sth %g1, [ %i1 + 8 ]
pwd->pw_gid = pwgid;
202ce2c: c2 07 bf f8 ld [ %fp + -8 ], %g1
202ce30: c2 36 60 0a sth %g1, [ %i1 + 0xa ]
return 1;
202ce34: 81 c7 e0 08 ret
202ce38: 91 e8 20 01 restore %g0, 1, %o0
0202c8dc <setgid>:
int setgid(
gid_t gid
)
{
_POSIX_types_Gid = gid;
202c8dc: 03 00 81 bc sethi %hi(0x206f000), %g1 <== NOT EXECUTED
202c8e0: c2 00 63 24 ld [ %g1 + 0x324 ], %g1 ! 206f324 <rtems_current_user_env><== NOT EXECUTED
202c8e4: d0 30 60 34 sth %o0, [ %g1 + 0x34 ] <== NOT EXECUTED
return 0;
}
202c8e8: 81 c3 e0 08 retl <== NOT EXECUTED
202c8ec: 90 10 20 00 clr %o0 <== NOT EXECUTED
0202cf74 <setgrent>:
return NULL;
return &grent;
}
void setgrent(void)
{
202cf74: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
init_etc_passwd_group();
202cf78: 7f ff ff c4 call 202ce88 <init_etc_passwd_group> <== NOT EXECUTED
202cf7c: 21 00 81 cb sethi %hi(0x2072c00), %l0 <== NOT EXECUTED
if (group_fp != NULL)
202cf80: d0 04 21 cc ld [ %l0 + 0x1cc ], %o0 ! 2072dcc <group_fp> <== NOT EXECUTED
202cf84: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202cf88: 22 80 00 05 be,a 202cf9c <setgrent+0x28> <== NOT EXECUTED
202cf8c: 11 00 81 a5 sethi %hi(0x2069400), %o0 <== NOT EXECUTED
fclose(group_fp);
202cf90: 40 00 6f 85 call 2048da4 <fclose> <== NOT EXECUTED
202cf94: 01 00 00 00 nop <== NOT EXECUTED
group_fp = fopen("/etc/group", "r");
202cf98: 11 00 81 a5 sethi %hi(0x2069400), %o0 <== NOT EXECUTED
202cf9c: 13 00 81 a5 sethi %hi(0x2069400), %o1 <== NOT EXECUTED
202cfa0: 90 12 22 10 or %o0, 0x210, %o0 <== NOT EXECUTED
202cfa4: 40 00 71 d0 call 20496e4 <fopen> <== NOT EXECUTED
202cfa8: 92 12 61 98 or %o1, 0x198, %o1 <== NOT EXECUTED
202cfac: d0 24 21 cc st %o0, [ %l0 + 0x1cc ] <== NOT EXECUTED
}
202cfb0: 81 c7 e0 08 ret <== NOT EXECUTED
202cfb4: 81 e8 00 00 restore <== NOT EXECUTED
0202d174 <setpwent>:
return NULL;
return &pwent;
}
void setpwent(void)
{
202d174: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
init_etc_passwd_group();
202d178: 7f ff ff 44 call 202ce88 <init_etc_passwd_group> <== NOT EXECUTED
202d17c: 21 00 81 cb sethi %hi(0x2072c00), %l0 <== NOT EXECUTED
if (passwd_fp != NULL)
202d180: d0 04 20 e4 ld [ %l0 + 0xe4 ], %o0 ! 2072ce4 <passwd_fp> <== NOT EXECUTED
202d184: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202d188: 22 80 00 05 be,a 202d19c <setpwent+0x28> <== NOT EXECUTED
202d18c: 11 00 81 a5 sethi %hi(0x2069400), %o0 <== NOT EXECUTED
fclose(passwd_fp);
202d190: 40 00 6f 05 call 2048da4 <fclose> <== NOT EXECUTED
202d194: 01 00 00 00 nop <== NOT EXECUTED
passwd_fp = fopen("/etc/passwd", "r");
202d198: 11 00 81 a5 sethi %hi(0x2069400), %o0 <== NOT EXECUTED
202d19c: 13 00 81 a5 sethi %hi(0x2069400), %o1 <== NOT EXECUTED
202d1a0: 90 12 21 88 or %o0, 0x188, %o0 <== NOT EXECUTED
202d1a4: 40 00 71 50 call 20496e4 <fopen> <== NOT EXECUTED
202d1a8: 92 12 61 98 or %o1, 0x198, %o1 <== NOT EXECUTED
202d1ac: d0 24 20 e4 st %o0, [ %l0 + 0xe4 ] <== NOT EXECUTED
}
202d1b0: 81 c7 e0 08 ret <== NOT EXECUTED
202d1b4: 81 e8 00 00 restore <== NOT EXECUTED
02008a24 <setuid>:
int setuid(
uid_t uid
)
{
_POSIX_types_Uid = uid;
2008a24: 03 00 81 bc sethi %hi(0x206f000), %g1 <== NOT EXECUTED
2008a28: c2 00 63 24 ld [ %g1 + 0x324 ], %g1 ! 206f324 <rtems_current_user_env><== NOT EXECUTED
2008a2c: d0 30 60 32 sth %o0, [ %g1 + 0x32 ] <== NOT EXECUTED
return 0;
}
2008a30: 81 c3 e0 08 retl <== NOT EXECUTED
2008a34: 90 10 20 00 clr %o0 <== NOT EXECUTED
02004c18 <siproc>:
/*
* Process input character, with semaphore.
*/
static int
siproc (unsigned char c, struct rtems_termios_tty *tty)
{
2004c18: 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)) {
2004c1c: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED
2004c20: 80 88 6e 78 btst 0xe78, %g1 <== NOT EXECUTED
2004c24: 32 80 00 05 bne,a 2004c38 <siproc+0x20> <== NOT EXECUTED
2004c28: d0 06 60 18 ld [ %i1 + 0x18 ], %o0 <== 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);
2004c2c: b0 0e 20 ff and %i0, 0xff, %i0 <== NOT EXECUTED
2004c30: 7f ff ff 7a call 2004a18 <iproc> <== NOT EXECUTED
2004c34: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Obtain output semaphore if character will be echoed
*/
if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
2004c38: 94 10 20 00 clr %o2 <== NOT EXECUTED
2004c3c: 40 00 07 26 call 20068d4 <rtems_semaphore_obtain> <== NOT EXECUTED
2004c40: 92 10 20 00 clr %o1 <== NOT EXECUTED
i = iproc (c, tty);
2004c44: 90 0e 20 ff and %i0, 0xff, %o0 <== NOT EXECUTED
2004c48: 7f ff ff 74 call 2004a18 <iproc> <== NOT EXECUTED
2004c4c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2004c50: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
rtems_semaphore_release (tty->osem);
2004c54: 40 00 07 67 call 20069f0 <rtems_semaphore_release> <== NOT EXECUTED
2004c58: d0 06 60 18 ld [ %i1 + 0x18 ], %o0 <== NOT EXECUTED
}
else {
i = iproc (c, tty);
}
return i;
}
2004c5c: 81 c7 e0 08 ret <== NOT EXECUTED
2004c60: 81 e8 00 00 restore <== NOT EXECUTED
0200a3a0 <stat>:
int _STAT_NAME(
const char *path,
struct stat *buf
)
{
200a3a0: 9d e3 bf 88 save %sp, -120, %sp
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
200a3a4: 80 a6 60 00 cmp %i1, 0
200a3a8: 02 80 00 34 be 200a478 <stat+0xd8>
200a3ac: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EFAULT );
status = rtems_filesystem_evaluate_path( path, strlen( path ),
200a3b0: 40 01 15 cd call 204fae4 <strlen>
200a3b4: 90 10 00 18 mov %i0, %o0
200a3b8: a0 07 bf ec add %fp, -20, %l0
200a3bc: 92 10 00 08 mov %o0, %o1
200a3c0: 94 10 20 00 clr %o2
200a3c4: 90 10 00 18 mov %i0, %o0
200a3c8: 96 10 00 10 mov %l0, %o3
200a3cc: 98 10 20 01 mov 1, %o4
200a3d0: 7f ff f9 24 call 2008860 <rtems_filesystem_evaluate_path>
200a3d4: b0 10 3f ff mov -1, %i0
0, &loc, _STAT_FOLLOW_LINKS );
if ( status != 0 )
200a3d8: 80 a2 20 00 cmp %o0, 0
200a3dc: 12 80 00 25 bne 200a470 <stat+0xd0>
200a3e0: c2 07 bf f4 ld [ %fp + -12 ], %g1
return -1;
if ( !loc.handlers->fstat_h ){
200a3e4: c4 00 60 18 ld [ %g1 + 0x18 ], %g2
200a3e8: 80 a0 a0 00 cmp %g2, 0
200a3ec: 02 80 00 29 be 200a490 <stat+0xf0> <== NEVER TAKEN
200a3f0: 92 10 00 19 mov %i1, %o1
/*
* Zero out the stat structure so the various support
* versions of stat don't have to.
*/
memset( buf, 0, sizeof(struct stat) );
200a3f4: c0 26 40 00 clr [ %i1 ]
200a3f8: c0 26 60 04 clr [ %i1 + 4 ]
200a3fc: c0 26 60 08 clr [ %i1 + 8 ]
200a400: c0 26 60 0c clr [ %i1 + 0xc ]
200a404: c0 26 60 10 clr [ %i1 + 0x10 ]
200a408: c0 26 60 14 clr [ %i1 + 0x14 ]
200a40c: c0 26 60 18 clr [ %i1 + 0x18 ]
200a410: c0 26 60 1c clr [ %i1 + 0x1c ]
200a414: c0 26 60 20 clr [ %i1 + 0x20 ]
200a418: c0 26 60 24 clr [ %i1 + 0x24 ]
200a41c: c0 26 60 28 clr [ %i1 + 0x28 ]
200a420: c0 26 60 2c clr [ %i1 + 0x2c ]
200a424: c0 26 60 30 clr [ %i1 + 0x30 ]
200a428: c0 26 60 34 clr [ %i1 + 0x34 ]
200a42c: c0 26 60 38 clr [ %i1 + 0x38 ]
200a430: c0 26 60 3c clr [ %i1 + 0x3c ]
200a434: c0 26 60 40 clr [ %i1 + 0x40 ]
200a438: c0 26 60 44 clr [ %i1 + 0x44 ]
status = (*loc.handlers->fstat_h)( &loc, buf );
200a43c: c2 00 60 18 ld [ %g1 + 0x18 ], %g1
200a440: 9f c0 40 00 call %g1
200a444: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &loc );
200a448: c2 07 bf f8 ld [ %fp + -8 ], %g1
200a44c: 80 a0 60 00 cmp %g1, 0
200a450: 02 80 00 08 be 200a470 <stat+0xd0> <== NEVER TAKEN
200a454: b0 10 00 08 mov %o0, %i0
200a458: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
200a45c: 80 a0 60 00 cmp %g1, 0
200a460: 02 80 00 1a be 200a4c8 <stat+0x128> <== NEVER TAKEN
200a464: 01 00 00 00 nop
200a468: 9f c0 40 00 call %g1
200a46c: 90 10 00 10 mov %l0, %o0
return status;
}
200a470: 81 c7 e0 08 ret
200a474: 81 e8 00 00 restore
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
rtems_set_errno_and_return_minus_one( EFAULT );
200a478: 40 00 f9 f3 call 2048c44 <__errno>
200a47c: b0 10 3f ff mov -1, %i0
200a480: 82 10 20 0e mov 0xe, %g1
200a484: c2 22 00 00 st %g1, [ %o0 ]
200a488: 81 c7 e0 08 ret
200a48c: 81 e8 00 00 restore
0, &loc, _STAT_FOLLOW_LINKS );
if ( status != 0 )
return -1;
if ( !loc.handlers->fstat_h ){
rtems_filesystem_freenode( &loc );
200a490: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
200a494: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a498: 02 80 00 08 be 200a4b8 <stat+0x118> <== NOT EXECUTED
200a49c: 01 00 00 00 nop <== NOT EXECUTED
200a4a0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
200a4a4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a4a8: 02 80 00 04 be 200a4b8 <stat+0x118> <== NOT EXECUTED
200a4ac: 01 00 00 00 nop <== NOT EXECUTED
200a4b0: 9f c0 40 00 call %g1 <== NOT EXECUTED
200a4b4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
200a4b8: 40 00 f9 e3 call 2048c44 <__errno> <== NOT EXECUTED
200a4bc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200a4c0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
200a4c4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200a4c8: 81 c7 e0 08 ret <== NOT EXECUTED
200a4cc: 81 e8 00 00 restore <== NOT EXECUTED
0202e30c <statvfs>:
#include <sys/statvfs.h>
int
statvfs (const char *path, struct statvfs *sb)
{
202e30c: 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 ) )
202e310: 40 00 85 f5 call 204fae4 <strlen> <== NOT EXECUTED
202e314: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
202e318: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED
202e31c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
202e320: 94 10 20 00 clr %o2 <== NOT EXECUTED
202e324: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
202e328: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
202e32c: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED
202e330: 7f ff 69 4c call 2008860 <rtems_filesystem_evaluate_path> <== NOT EXECUTED
202e334: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202e338: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202e33c: 12 80 00 23 bne 202e3c8 <statvfs+0xbc> <== NOT EXECUTED
202e340: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
return -1;
mt_entry = loc.mt_entry;
fs_mount_root = &mt_entry->mt_fs_root;
202e344: c2 02 20 28 ld [ %o0 + 0x28 ], %g1 <== NOT EXECUTED
202e348: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 <== NOT EXECUTED
202e34c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202e350: 02 80 00 20 be 202e3d0 <statvfs+0xc4> <== NOT EXECUTED
202e354: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
if ( !fs_mount_root->ops->statvfs_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
memset (sb, 0, sizeof (struct statvfs));
202e358: c0 26 40 00 clr [ %i1 ] <== NOT EXECUTED
202e35c: c0 26 60 04 clr [ %i1 + 4 ] <== NOT EXECUTED
202e360: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED
202e364: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED
202e368: c0 26 60 10 clr [ %i1 + 0x10 ] <== NOT EXECUTED
202e36c: c0 26 60 14 clr [ %i1 + 0x14 ] <== NOT EXECUTED
202e370: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED
202e374: c0 26 60 1c clr [ %i1 + 0x1c ] <== NOT EXECUTED
202e378: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED
202e37c: c0 26 60 24 clr [ %i1 + 0x24 ] <== NOT EXECUTED
202e380: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED
202e384: c0 26 60 2c clr [ %i1 + 0x2c ] <== NOT EXECUTED
202e388: c0 26 60 30 clr [ %i1 + 0x30 ] <== NOT EXECUTED
202e38c: c0 26 60 34 clr [ %i1 + 0x34 ] <== NOT EXECUTED
result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb );
202e390: c2 02 20 28 ld [ %o0 + 0x28 ], %g1 <== NOT EXECUTED
202e394: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 <== NOT EXECUTED
202e398: 9f c0 40 00 call %g1 <== NOT EXECUTED
202e39c: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
202e3a0: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
202e3a4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202e3a8: 02 80 00 08 be 202e3c8 <statvfs+0xbc> <== NOT EXECUTED
202e3ac: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
202e3b0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
202e3b4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202e3b8: 02 80 00 0a be 202e3e0 <statvfs+0xd4> <== NOT EXECUTED
202e3bc: 01 00 00 00 nop <== NOT EXECUTED
202e3c0: 9f c0 40 00 call %g1 <== NOT EXECUTED
202e3c4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return result;
}
202e3c8: 81 c7 e0 08 ret <== NOT EXECUTED
202e3cc: 81 e8 00 00 restore <== NOT EXECUTED
mt_entry = loc.mt_entry;
fs_mount_root = &mt_entry->mt_fs_root;
if ( !fs_mount_root->ops->statvfs_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
202e3d0: 40 00 6a 1d call 2048c44 <__errno> <== NOT EXECUTED
202e3d4: 01 00 00 00 nop <== NOT EXECUTED
202e3d8: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
202e3dc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202e3e0: 81 c7 e0 08 ret <== NOT EXECUTED
202e3e4: 81 e8 00 00 restore <== NOT EXECUTED
0202e448 <symlink>:
int symlink(
const char *actualpath,
const char *sympath
)
{
202e448: 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 );
202e44c: a0 07 bf e4 add %fp, -28, %l0
202e450: 90 10 00 19 mov %i1, %o0
202e454: 92 07 bf fc add %fp, -4, %o1
202e458: 7f ff 70 24 call 200a4e8 <rtems_filesystem_get_start_loc>
202e45c: 94 10 00 10 mov %l0, %o2
if ( !loc.ops->evalformake_h ) {
202e460: c2 07 bf f0 ld [ %fp + -16 ], %g1
202e464: c2 00 60 04 ld [ %g1 + 4 ], %g1
202e468: 80 a0 60 00 cmp %g1, 0
202e46c: 02 80 00 24 be 202e4fc <symlink+0xb4> <== NEVER TAKEN
202e470: 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 );
202e474: d0 07 bf fc ld [ %fp + -4 ], %o0
202e478: 92 10 00 10 mov %l0, %o1
202e47c: 90 06 40 08 add %i1, %o0, %o0
202e480: 94 07 bf f8 add %fp, -8, %o2
202e484: 9f c0 40 00 call %g1
202e488: b0 10 3f ff mov -1, %i0
if ( result != 0 )
202e48c: 80 a2 20 00 cmp %o0, 0
202e490: 12 80 00 13 bne 202e4dc <symlink+0x94>
202e494: c4 07 bf f0 ld [ %fp + -16 ], %g2
return -1;
if ( !loc.ops->symlink_h ) {
202e498: c2 00 a0 38 ld [ %g2 + 0x38 ], %g1
202e49c: 80 a0 60 00 cmp %g1, 0
202e4a0: 02 80 00 11 be 202e4e4 <symlink+0x9c> <== NEVER TAKEN
202e4a4: d4 07 bf f8 ld [ %fp + -8 ], %o2
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->symlink_h)( &loc, actualpath, name_start);
202e4a8: 92 10 00 11 mov %l1, %o1
202e4ac: 9f c0 40 00 call %g1
202e4b0: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &loc );
202e4b4: c2 07 bf f0 ld [ %fp + -16 ], %g1
202e4b8: 80 a0 60 00 cmp %g1, 0
202e4bc: 02 80 00 08 be 202e4dc <symlink+0x94> <== NEVER TAKEN
202e4c0: b0 10 00 08 mov %o0, %i0
202e4c4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202e4c8: 80 a0 60 00 cmp %g1, 0
202e4cc: 02 80 00 10 be 202e50c <symlink+0xc4> <== NEVER TAKEN
202e4d0: 01 00 00 00 nop
202e4d4: 9f c0 40 00 call %g1
202e4d8: 90 10 00 10 mov %l0, %o0
return result;
}
202e4dc: 81 c7 e0 08 ret
202e4e0: 81 e8 00 00 restore
result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start );
if ( result != 0 )
return -1;
if ( !loc.ops->symlink_h ) {
rtems_filesystem_freenode( &loc );
202e4e4: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
202e4e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202e4ec: 02 80 00 04 be 202e4fc <symlink+0xb4> <== NOT EXECUTED
202e4f0: 01 00 00 00 nop <== NOT EXECUTED
202e4f4: 9f c0 40 00 call %g1 <== NOT EXECUTED
202e4f8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
202e4fc: 40 00 69 d2 call 2048c44 <__errno> <== NOT EXECUTED
202e500: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202e504: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
202e508: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202e50c: 81 c7 e0 08 ret <== NOT EXECUTED
202e510: 81 e8 00 00 restore <== NOT EXECUTED
020054ac <sync_per_thread>:
fdatasync(fn);
}
/* iterate over all FILE *'s for this thread */
static void sync_per_thread(Thread_Control *t)
{
20054ac: 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;
20054b0: c2 06 21 5c ld [ %i0 + 0x15c ], %g1
if ( this_reent ) {
20054b4: 80 a0 60 00 cmp %g1, 0
20054b8: 02 80 00 0b be 20054e4 <sync_per_thread+0x38> <== NEVER TAKEN
20054bc: 21 00 80 7f sethi %hi(0x201fc00), %l0
current_reent = _Thread_Executing->libc_reent;
20054c0: c4 04 20 b0 ld [ %l0 + 0xb0 ], %g2 ! 201fcb0 <_Thread_Executing>
_Thread_Executing->libc_reent = this_reent;
_fwalk (t->libc_reent, sync_wrapper);
20054c4: 13 00 80 15 sethi %hi(0x2005400), %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;
20054c8: e2 00 a1 5c ld [ %g2 + 0x15c ], %l1
_Thread_Executing->libc_reent = this_reent;
20054cc: c2 20 a1 5c st %g1, [ %g2 + 0x15c ]
_fwalk (t->libc_reent, sync_wrapper);
20054d0: d0 06 21 5c ld [ %i0 + 0x15c ], %o0
20054d4: 40 00 35 34 call 20129a4 <_fwalk>
20054d8: 92 12 61 14 or %o1, 0x114, %o1
_Thread_Executing->libc_reent = current_reent;
20054dc: c2 04 20 b0 ld [ %l0 + 0xb0 ], %g1
20054e0: e2 20 61 5c st %l1, [ %g1 + 0x15c ]
20054e4: 81 c7 e0 08 ret
20054e8: 81 e8 00 00 restore
020160d0 <tcsetattr>:
int tcsetattr(
int fd,
int opt,
struct termios *tp
)
{
20160d0: 9d e3 bf a0 save %sp, -96, %sp
switch (opt) {
20160d4: 80 a6 60 00 cmp %i1, 0
20160d8: 02 80 00 10 be 2016118 <tcsetattr+0x48> <== ALWAYS TAKEN
20160dc: 80 a6 60 01 cmp %i1, 1
20160e0: 02 80 00 08 be 2016100 <tcsetattr+0x30> <== NOT EXECUTED
20160e4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one( ENOTSUP );
20160e8: 40 00 12 b5 call 201abbc <__errno> <== NOT EXECUTED
20160ec: 01 00 00 00 nop <== NOT EXECUTED
20160f0: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
20160f4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
* Fall through to....
*/
case TCSANOW:
return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );
}
}
20160f8: 81 c7 e0 08 ret <== NOT EXECUTED
20160fc: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
switch (opt) {
default:
rtems_set_errno_and_return_minus_one( ENOTSUP );
case TCSADRAIN:
if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0)
2016100: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED
2016104: 40 00 10 30 call 201a1c4 <ioctl> <== NOT EXECUTED
2016108: 94 10 20 00 clr %o2 <== NOT EXECUTED
201610c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2016110: 06 bf ff fa bl 20160f8 <tcsetattr+0x28> <== NOT EXECUTED
2016114: 01 00 00 00 nop <== NOT EXECUTED
return -1;
/*
* Fall through to....
*/
case TCSANOW:
return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );
2016118: 40 00 10 2b call 201a1c4 <ioctl>
201611c: 93 e8 20 02 restore %g0, 2, %o1
0200fb54 <unlink>:
#include <rtems/seterr.h>
int unlink(
const char *path
)
{
200fb54: 9d e3 bf 70 save %sp, -144, %sp
/*
* Get the node to be unlinked. Find the parent path first.
*/
parentpathlen = rtems_filesystem_dirname ( path );
200fb58: 7f ff cb f2 call 2002b20 <rtems_filesystem_dirname>
200fb5c: 90 10 00 18 mov %i0, %o0
if ( parentpathlen == 0 )
200fb60: 80 a2 20 00 cmp %o0, 0
200fb64: 12 80 00 4e bne 200fc9c <unlink+0x148>
200fb68: a2 07 bf e8 add %fp, -24, %l1
rtems_filesystem_get_start_loc( path, &i, &parentloc );
200fb6c: 90 10 00 18 mov %i0, %o0
200fb70: 92 07 bf fc add %fp, -4, %o1
200fb74: 94 10 00 11 mov %l1, %o2
200fb78: 7f ff d0 7c call 2003d68 <rtems_filesystem_get_start_loc>
200fb7c: a0 10 20 00 clr %l0
200fb80: a4 10 20 00 clr %l2
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
200fb84: c2 07 bf e8 ld [ %fp + -24 ], %g1
name = path + parentpathlen;
200fb88: b0 06 00 10 add %i0, %l0, %i0
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
200fb8c: c2 27 bf d4 st %g1, [ %fp + -44 ]
200fb90: c2 07 bf ec ld [ %fp + -20 ], %g1
name = path + parentpathlen;
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
200fb94: 90 10 00 18 mov %i0, %o0
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
200fb98: c2 27 bf d8 st %g1, [ %fp + -40 ]
200fb9c: c2 07 bf f0 ld [ %fp + -16 ], %g1
name = path + parentpathlen;
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
200fba0: a0 07 bf d4 add %fp, -44, %l0
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
200fba4: c2 27 bf dc st %g1, [ %fp + -36 ]
200fba8: c2 07 bf f4 ld [ %fp + -12 ], %g1
200fbac: c2 27 bf e0 st %g1, [ %fp + -32 ]
200fbb0: c2 07 bf f8 ld [ %fp + -8 ], %g1
name = path + parentpathlen;
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
200fbb4: 40 00 05 f4 call 2011384 <strlen>
200fbb8: c2 27 bf e4 st %g1, [ %fp + -28 ]
200fbbc: 92 10 00 08 mov %o0, %o1
200fbc0: 7f ff cb bd call 2002ab4 <rtems_filesystem_prefix_separators>
200fbc4: 90 10 00 18 mov %i0, %o0
200fbc8: b0 06 00 08 add %i0, %o0, %i0
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
200fbcc: 40 00 05 ee call 2011384 <strlen>
200fbd0: 90 10 00 18 mov %i0, %o0
200fbd4: 94 10 20 00 clr %o2
200fbd8: 92 10 00 08 mov %o0, %o1
200fbdc: 96 10 00 10 mov %l0, %o3
200fbe0: 90 10 00 18 mov %i0, %o0
200fbe4: 7f ff cb e2 call 2002b6c <rtems_filesystem_evaluate_relative_path>
200fbe8: 98 10 20 00 clr %o4
0, &loc, false );
if ( result != 0 ) {
200fbec: 80 a2 20 00 cmp %o0, 0
200fbf0: 12 80 00 37 bne 200fccc <unlink+0x178>
200fbf4: c4 07 bf e0 ld [ %fp + -32 ], %g2
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
return -1;
}
if ( !loc.ops->node_type_h ) {
200fbf8: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1
200fbfc: 80 a0 60 00 cmp %g1, 0
200fc00: 22 80 00 43 be,a 200fd0c <unlink+0x1b8> <== NEVER TAKEN
200fc04: 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 ) {
200fc08: 9f c0 40 00 call %g1
200fc0c: 90 10 00 10 mov %l0, %o0
200fc10: 80 a2 20 01 cmp %o0, 1
200fc14: 02 80 00 55 be 200fd68 <unlink+0x214>
200fc18: c4 07 bf e0 ld [ %fp + -32 ], %g2
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
rtems_set_errno_and_return_minus_one( EISDIR );
}
if ( !loc.ops->unlink_h ) {
200fc1c: c2 00 a0 0c ld [ %g2 + 0xc ], %g1
200fc20: 80 a0 60 00 cmp %g1, 0
200fc24: 02 80 00 39 be 200fd08 <unlink+0x1b4> <== NEVER TAKEN
200fc28: 90 10 00 11 mov %l1, %o0
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->unlink_h)( &parentloc, &loc );
200fc2c: 9f c0 40 00 call %g1
200fc30: 92 10 00 10 mov %l0, %o1
rtems_filesystem_freenode( &loc );
200fc34: c2 07 bf e0 ld [ %fp + -32 ], %g1
200fc38: 80 a0 60 00 cmp %g1, 0
200fc3c: 02 80 00 08 be 200fc5c <unlink+0x108> <== NEVER TAKEN
200fc40: b0 10 00 08 mov %o0, %i0
200fc44: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
200fc48: 80 a0 60 00 cmp %g1, 0
200fc4c: 02 80 00 05 be 200fc60 <unlink+0x10c> <== NEVER TAKEN
200fc50: 80 8c a0 ff btst 0xff, %l2
200fc54: 9f c0 40 00 call %g1
200fc58: 90 10 00 10 mov %l0, %o0
if ( free_parentloc )
200fc5c: 80 8c a0 ff btst 0xff, %l2
200fc60: 02 80 00 0b be 200fc8c <unlink+0x138>
200fc64: c2 07 bf f4 ld [ %fp + -12 ], %g1
rtems_filesystem_freenode( &parentloc );
200fc68: 80 a0 60 00 cmp %g1, 0
200fc6c: 02 80 00 59 be 200fdd0 <unlink+0x27c> <== NEVER TAKEN
200fc70: 01 00 00 00 nop
200fc74: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
200fc78: 80 a0 60 00 cmp %g1, 0
200fc7c: 02 80 00 55 be 200fdd0 <unlink+0x27c> <== NEVER TAKEN
200fc80: 01 00 00 00 nop
200fc84: 9f c0 40 00 call %g1
200fc88: 90 10 00 11 mov %l1, %o0
200fc8c: 81 c7 e0 08 ret
200fc90: 81 e8 00 00 restore
return result;
}
200fc94: 81 c7 e0 08 ret <== NOT EXECUTED
200fc98: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
parentpathlen = rtems_filesystem_dirname ( path );
if ( parentpathlen == 0 )
rtems_filesystem_get_start_loc( path, &i, &parentloc );
else {
result = rtems_filesystem_evaluate_path( path, parentpathlen,
200fc9c: a0 10 00 08 mov %o0, %l0
200fca0: 90 10 00 18 mov %i0, %o0
200fca4: 92 10 00 10 mov %l0, %o1
200fca8: 94 10 20 02 mov 2, %o2
200fcac: 96 10 00 11 mov %l1, %o3
200fcb0: 7f ff cb f0 call 2002c70 <rtems_filesystem_evaluate_path>
200fcb4: 98 10 20 00 clr %o4
RTEMS_LIBIO_PERMS_WRITE,
&parentloc,
false );
if ( result != 0 )
200fcb8: 80 a2 20 00 cmp %o0, 0
200fcbc: 12 bf ff f6 bne 200fc94 <unlink+0x140> <== NEVER TAKEN
200fcc0: a4 10 20 01 mov 1, %l2
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
200fcc4: 10 bf ff b1 b 200fb88 <unlink+0x34>
200fcc8: c2 07 bf e8 ld [ %fp + -24 ], %g1
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
0, &loc, false );
if ( result != 0 ) {
if ( free_parentloc )
200fccc: 80 8c a0 ff btst 0xff, %l2
200fcd0: 02 bf ff ef be 200fc8c <unlink+0x138> <== NEVER TAKEN
200fcd4: b0 10 3f ff mov -1, %i0
rtems_filesystem_freenode( &parentloc );
200fcd8: c2 07 bf f4 ld [ %fp + -12 ], %g1
200fcdc: 80 a0 60 00 cmp %g1, 0
200fce0: 02 80 00 3c be 200fdd0 <unlink+0x27c> <== NEVER TAKEN
200fce4: 01 00 00 00 nop
200fce8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
200fcec: 80 a0 60 00 cmp %g1, 0
200fcf0: 02 bf ff e7 be 200fc8c <unlink+0x138> <== NEVER TAKEN
200fcf4: 90 10 00 11 mov %l1, %o0
200fcf8: 9f c0 40 00 call %g1
200fcfc: 01 00 00 00 nop
200fd00: 81 c7 e0 08 ret
200fd04: 81 e8 00 00 restore
rtems_filesystem_freenode( &parentloc );
rtems_set_errno_and_return_minus_one( EISDIR );
}
if ( !loc.ops->unlink_h ) {
rtems_filesystem_freenode( &loc );
200fd08: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
200fd0c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200fd10: 02 80 00 05 be 200fd24 <unlink+0x1d0> <== NOT EXECUTED
200fd14: 80 8c a0 ff btst 0xff, %l2 <== NOT EXECUTED
200fd18: 9f c0 40 00 call %g1 <== NOT EXECUTED
200fd1c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if ( free_parentloc )
200fd20: 80 8c a0 ff btst 0xff, %l2 <== NOT EXECUTED
200fd24: 02 80 00 0b be 200fd50 <unlink+0x1fc> <== NOT EXECUTED
200fd28: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
200fd2c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200fd30: 02 80 00 08 be 200fd50 <unlink+0x1fc> <== NOT EXECUTED
200fd34: 01 00 00 00 nop <== NOT EXECUTED
200fd38: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
200fd3c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200fd40: 02 80 00 04 be 200fd50 <unlink+0x1fc> <== NOT EXECUTED
200fd44: 01 00 00 00 nop <== NOT EXECUTED
200fd48: 9f c0 40 00 call %g1 <== NOT EXECUTED
200fd4c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
200fd50: 40 00 01 c0 call 2010450 <__errno> <== NOT EXECUTED
200fd54: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200fd58: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
200fd5c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200fd60: 81 c7 e0 08 ret <== NOT EXECUTED
200fd64: 81 e8 00 00 restore <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) {
rtems_filesystem_freenode( &loc );
200fd68: c2 07 bf e0 ld [ %fp + -32 ], %g1
200fd6c: 80 a0 60 00 cmp %g1, 0
200fd70: 02 80 00 09 be 200fd94 <unlink+0x240> <== NEVER TAKEN
200fd74: 80 8c a0 ff btst 0xff, %l2
200fd78: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
200fd7c: 80 a0 60 00 cmp %g1, 0
200fd80: 02 80 00 05 be 200fd94 <unlink+0x240> <== NEVER TAKEN
200fd84: 80 8c a0 ff btst 0xff, %l2
200fd88: 9f c0 40 00 call %g1
200fd8c: 90 10 00 10 mov %l0, %o0
if ( free_parentloc )
200fd90: 80 8c a0 ff btst 0xff, %l2
200fd94: 02 80 00 0b be 200fdc0 <unlink+0x26c> <== ALWAYS TAKEN
200fd98: c2 07 bf f4 ld [ %fp + -12 ], %g1
rtems_filesystem_freenode( &parentloc );
200fd9c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200fda0: 02 80 00 08 be 200fdc0 <unlink+0x26c> <== NOT EXECUTED
200fda4: 01 00 00 00 nop <== NOT EXECUTED
200fda8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
200fdac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200fdb0: 02 80 00 04 be 200fdc0 <unlink+0x26c> <== NOT EXECUTED
200fdb4: 01 00 00 00 nop <== NOT EXECUTED
200fdb8: 9f c0 40 00 call %g1 <== NOT EXECUTED
200fdbc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EISDIR );
200fdc0: 40 00 01 a4 call 2010450 <__errno>
200fdc4: b0 10 3f ff mov -1, %i0
200fdc8: 82 10 20 15 mov 0x15, %g1
200fdcc: c2 22 00 00 st %g1, [ %o0 ]
200fdd0: 81 c7 e0 08 ret
200fdd4: 81 e8 00 00 restore
0202e75c <unmount>:
*/
int unmount(
const char *path
)
{
202e75c: 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 ) )
202e760: 40 00 84 e1 call 204fae4 <strlen>
202e764: 90 10 00 18 mov %i0, %o0
202e768: a0 07 bf ec add %fp, -20, %l0
202e76c: 92 10 00 08 mov %o0, %o1
202e770: 94 10 20 00 clr %o2
202e774: 90 10 00 18 mov %i0, %o0
202e778: 96 10 00 10 mov %l0, %o3
202e77c: 7f ff 68 39 call 2008860 <rtems_filesystem_evaluate_path>
202e780: 98 10 20 01 mov 1, %o4
202e784: 80 a2 20 00 cmp %o0, 0
202e788: 12 80 00 31 bne 202e84c <unmount+0xf0>
202e78c: 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;
202e790: c2 07 bf ec ld [ %fp + -20 ], %g1
202e794: c4 04 60 1c ld [ %l1 + 0x1c ], %g2
202e798: 80 a0 80 01 cmp %g2, %g1
202e79c: 12 80 00 4b bne 202e8c8 <unmount+0x16c>
202e7a0: c2 07 bf f8 ld [ %fp + -8 ], %g1
/*
* Free the loc node and just use the nodes from the mt_entry .
*/
rtems_filesystem_freenode( &loc );
202e7a4: 80 a0 60 00 cmp %g1, 0
202e7a8: 22 80 00 09 be,a 202e7cc <unmount+0x70> <== NEVER TAKEN
202e7ac: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED
202e7b0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202e7b4: 80 a0 60 00 cmp %g1, 0
202e7b8: 22 80 00 05 be,a 202e7cc <unmount+0x70> <== NEVER TAKEN
202e7bc: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED
202e7c0: 9f c0 40 00 call %g1
202e7c4: 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;
202e7c8: c2 04 60 14 ld [ %l1 + 0x14 ], %g1
202e7cc: c2 00 60 28 ld [ %g1 + 0x28 ], %g1
202e7d0: 80 a0 60 00 cmp %g1, 0
202e7d4: 02 80 00 5b be 202e940 <unmount+0x1e4> <== NEVER TAKEN
202e7d8: 01 00 00 00 nop
fs_root_loc = &mt_entry->mt_fs_root;
202e7dc: c2 04 60 28 ld [ %l1 + 0x28 ], %g1
202e7e0: c2 00 60 2c ld [ %g1 + 0x2c ], %g1
202e7e4: 80 a0 60 00 cmp %g1, 0
202e7e8: 02 80 00 56 be 202e940 <unmount+0x1e4> <== NEVER TAKEN
202e7ec: 03 00 81 bc sethi %hi(0x206f000), %g1
* 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 )
202e7f0: c2 00 63 24 ld [ %g1 + 0x324 ], %g1 ! 206f324 <rtems_current_user_env>
202e7f4: c2 00 60 14 ld [ %g1 + 0x14 ], %g1
202e7f8: 80 a0 40 11 cmp %g1, %l1
202e7fc: 02 80 00 42 be 202e904 <unmount+0x1a8>
202e800: 11 00 80 b9 sethi %hi(0x202e400), %o0
/*
* Verify there are no file systems below the path specified
*/
if ( rtems_filesystem_mount_iterate( is_fs_below_mount_point,
202e804: d2 04 60 2c ld [ %l1 + 0x2c ], %o1
202e808: 7f ff 6a ea call 20093b0 <rtems_filesystem_mount_iterate>
202e80c: 90 12 23 48 or %o0, 0x348, %o0
202e810: 80 8a 20 ff btst 0xff, %o0
202e814: 12 80 00 3c bne 202e904 <unmount+0x1a8>
202e818: 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 )
202e81c: 7f ff 69 20 call 2008c9c <rtems_libio_is_open_files_in_fs>
202e820: 90 10 00 11 mov %l1, %o0
202e824: 80 a2 20 01 cmp %o0, 1
202e828: 02 80 00 37 be 202e904 <unmount+0x1a8>
202e82c: 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 )
202e830: c2 04 60 14 ld [ %l1 + 0x14 ], %g1
202e834: c2 00 60 28 ld [ %g1 + 0x28 ], %g1
202e838: 9f c0 40 00 call %g1
202e83c: 90 10 00 11 mov %l1, %o0
202e840: 80 a2 20 00 cmp %o0, 0
202e844: 22 80 00 04 be,a 202e854 <unmount+0xf8> <== ALWAYS TAKEN
202e848: c2 04 60 28 ld [ %l1 + 0x28 ], %g1
rtems_filesystem_freenode( fs_mount_loc );
free( mt_entry );
return 0;
}
202e84c: 81 c7 e0 08 ret
202e850: 91 e8 3f ff restore %g0, -1, %o0
* 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){
202e854: c2 00 60 2c ld [ %g1 + 0x2c ], %g1
202e858: 9f c0 40 00 call %g1
202e85c: 90 10 00 11 mov %l1, %o0
202e860: 80 a2 20 00 cmp %o0, 0
202e864: 12 80 00 2e bne 202e91c <unmount+0x1c0> <== NEVER TAKEN
202e868: 21 00 81 cc sethi %hi(0x2073000), %l0
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 );
202e86c: d0 04 20 dc ld [ %l0 + 0xdc ], %o0 ! 20730dc <rtems_libio_semaphore>
202e870: 92 10 20 00 clr %o1
202e874: 7f ff 7b 71 call 200d638 <rtems_semaphore_obtain>
202e878: 94 10 20 00 clr %o2
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
202e87c: 7f ff 7e b3 call 200e348 <_Chain_Extract>
202e880: 90 10 00 11 mov %l1, %o0
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
202e884: 7f ff 7b b4 call 200d754 <rtems_semaphore_release>
202e888: d0 04 20 dc ld [ %l0 + 0xdc ], %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 );
202e88c: c2 04 60 14 ld [ %l1 + 0x14 ], %g1
202e890: 80 a0 60 00 cmp %g1, 0
202e894: 02 80 00 09 be 202e8b8 <unmount+0x15c> <== NEVER TAKEN
202e898: 90 10 00 11 mov %l1, %o0
202e89c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202e8a0: 80 a0 60 00 cmp %g1, 0
202e8a4: 02 80 00 05 be 202e8b8 <unmount+0x15c> <== NEVER TAKEN
202e8a8: 01 00 00 00 nop
202e8ac: 9f c0 40 00 call %g1
202e8b0: 90 04 60 08 add %l1, 8, %o0
free( mt_entry );
202e8b4: 90 10 00 11 mov %l1, %o0
202e8b8: 7f ff 68 09 call 20088dc <free>
202e8bc: b0 10 20 00 clr %i0
return 0;
202e8c0: 81 c7 e0 08 ret
202e8c4: 81 e8 00 00 restore
/*
* 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 );
202e8c8: 80 a0 60 00 cmp %g1, 0
202e8cc: 02 80 00 08 be 202e8ec <unmount+0x190> <== NEVER TAKEN
202e8d0: 01 00 00 00 nop
202e8d4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202e8d8: 80 a0 60 00 cmp %g1, 0
202e8dc: 02 80 00 04 be 202e8ec <unmount+0x190> <== NEVER TAKEN
202e8e0: 01 00 00 00 nop
202e8e4: 9f c0 40 00 call %g1
202e8e8: 90 10 00 10 mov %l0, %o0
rtems_set_errno_and_return_minus_one( EACCES );
202e8ec: 40 00 68 d6 call 2048c44 <__errno>
202e8f0: b0 10 3f ff mov -1, %i0
202e8f4: 82 10 20 0d mov 0xd, %g1
202e8f8: c2 22 00 00 st %g1, [ %o0 ]
202e8fc: 81 c7 e0 08 ret
202e900: 81 e8 00 00 restore
* 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 )
rtems_set_errno_and_return_minus_one( EBUSY );
202e904: 40 00 68 d0 call 2048c44 <__errno>
202e908: b0 10 3f ff mov -1, %i0
202e90c: 82 10 20 10 mov 0x10, %g1
202e910: c2 22 00 00 st %g1, [ %o0 ]
202e914: 81 c7 e0 08 ret
202e918: 81 e8 00 00 restore
* This was response was questionable but the best we could
* come up with.
*/
if ((fs_root_loc->ops->fsunmount_me_h )( mt_entry ) != 0){
if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 )
202e91c: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED
202e920: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 <== NOT EXECUTED
202e924: 9f c0 40 00 call %g1 <== NOT EXECUTED
202e928: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
202e92c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202e930: 02 bf ff c7 be 202e84c <unmount+0xf0> <== NOT EXECUTED
202e934: 01 00 00 00 nop <== NOT EXECUTED
rtems_fatal_error_occurred( 0 );
202e938: 7f ff 7d 41 call 200de3c <rtems_fatal_error_occurred> <== NOT EXECUTED
202e93c: 90 10 20 00 clr %o0 ! 0 <PROM_START> <== NOT EXECUTED
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 );
202e940: 40 00 68 c1 call 2048c44 <__errno> <== NOT EXECUTED
202e944: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202e948: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
202e94c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202e950: 81 c7 e0 08 ret <== NOT EXECUTED
202e954: 81 e8 00 00 restore <== NOT EXECUTED
0202e958 <utime>:
int utime(
const char *path,
const struct utimbuf *times
)
{
202e958: 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 ) )
202e95c: 40 00 84 62 call 204fae4 <strlen>
202e960: 90 10 00 18 mov %i0, %o0
202e964: a0 07 bf ec add %fp, -20, %l0
202e968: 92 10 00 08 mov %o0, %o1
202e96c: 94 10 20 00 clr %o2
202e970: 90 10 00 18 mov %i0, %o0
202e974: 96 10 00 10 mov %l0, %o3
202e978: 98 10 20 01 mov 1, %o4
202e97c: 7f ff 67 b9 call 2008860 <rtems_filesystem_evaluate_path>
202e980: b0 10 3f ff mov -1, %i0
202e984: 80 a2 20 00 cmp %o0, 0
202e988: 12 80 00 14 bne 202e9d8 <utime+0x80>
202e98c: c4 07 bf f8 ld [ %fp + -8 ], %g2
return -1;
if ( !temp_loc.ops->utime_h ){
202e990: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1
202e994: 80 a0 60 00 cmp %g1, 0
202e998: 22 80 00 12 be,a 202e9e0 <utime+0x88> <== NEVER TAKEN
202e99c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
rtems_filesystem_freenode( &temp_loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime );
202e9a0: d4 06 60 04 ld [ %i1 + 4 ], %o2
202e9a4: d2 06 40 00 ld [ %i1 ], %o1
202e9a8: 9f c0 40 00 call %g1
202e9ac: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &temp_loc );
202e9b0: c2 07 bf f8 ld [ %fp + -8 ], %g1
202e9b4: 80 a0 60 00 cmp %g1, 0
202e9b8: 02 80 00 08 be 202e9d8 <utime+0x80> <== NEVER TAKEN
202e9bc: b0 10 00 08 mov %o0, %i0
202e9c0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202e9c4: 80 a0 60 00 cmp %g1, 0
202e9c8: 02 80 00 0f be 202ea04 <utime+0xac> <== NEVER TAKEN
202e9cc: 01 00 00 00 nop
202e9d0: 9f c0 40 00 call %g1
202e9d4: 90 10 00 10 mov %l0, %o0
return result;
}
202e9d8: 81 c7 e0 08 ret
202e9dc: 81 e8 00 00 restore
if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &temp_loc, true ) )
return -1;
if ( !temp_loc.ops->utime_h ){
rtems_filesystem_freenode( &temp_loc );
202e9e0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202e9e4: 02 80 00 04 be 202e9f4 <utime+0x9c> <== NOT EXECUTED
202e9e8: 01 00 00 00 nop <== NOT EXECUTED
202e9ec: 9f c0 40 00 call %g1 <== NOT EXECUTED
202e9f0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
202e9f4: 40 00 68 94 call 2048c44 <__errno> <== NOT EXECUTED
202e9f8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202e9fc: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
202ea00: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202ea04: 81 c7 e0 08 ret <== NOT EXECUTED
202ea08: 81 e8 00 00 restore <== NOT EXECUTED
02005d6c <vprintk>:
*/
void vprintk(
const char *fmt,
va_list ap
)
{
2005d6c: 9d e3 bf 88 save %sp, -120, %sp
for (; *fmt != '\0'; fmt++) {
2005d70: c2 0e 00 00 ldub [ %i0 ], %g1
2005d74: 83 28 60 18 sll %g1, 0x18, %g1
2005d78: 80 a0 60 00 cmp %g1, 0
2005d7c: 02 80 00 7d be 2005f70 <vprintk+0x204> <== NEVER TAKEN
2005d80: 29 00 80 74 sethi %hi(0x201d000), %l4
2005d84: 3b 00 80 70 sethi %hi(0x201c000), %i5
unsigned i, len;
char *s, *str;
str = va_arg(ap, char *);
if ( str == NULL ) {
2005d88: 37 00 80 70 sethi %hi(0x201c000), %i3
bool sign = false;
char lead = ' ';
char c;
if (*fmt != '%') {
BSP_output_char(*fmt);
2005d8c: a8 15 21 ec or %l4, 0x1ec, %l4
2005d90: ba 17 60 30 or %i5, 0x30, %i5
unsigned i, len;
char *s, *str;
str = va_arg(ap, char *);
if ( str == NULL ) {
2005d94: b6 16 e0 28 or %i3, 0x28, %i3
toPrint[count++] = (char) unsigned_num;
for (n=maxwidth ; n > count; n-- )
BSP_output_char(lead);
for (n = 0; n < count; n++) {
2005d98: ac 07 bf e8 add %fp, -24, %l6
bool minus = false;
bool sign = false;
char lead = ' ';
char c;
if (*fmt != '%') {
2005d9c: 91 38 60 18 sra %g1, 0x18, %o0
2005da0: 80 a2 20 25 cmp %o0, 0x25
2005da4: 32 80 00 8d bne,a 2005fd8 <vprintk+0x26c>
2005da8: c2 05 00 00 ld [ %l4 ], %g1
BSP_output_char(*fmt);
continue;
}
fmt++;
2005dac: b0 06 20 01 inc %i0
if (*fmt == '0' ) {
2005db0: c2 0e 00 00 ldub [ %i0 ], %g1
2005db4: 85 28 60 18 sll %g1, 0x18, %g2
2005db8: 87 38 a0 18 sra %g2, 0x18, %g3
2005dbc: 80 a0 e0 30 cmp %g3, 0x30
2005dc0: 02 80 00 a9 be 2006064 <vprintk+0x2f8>
2005dc4: b8 10 20 20 mov 0x20, %i4
lead = '0';
fmt++;
}
if (*fmt == '-' ) {
2005dc8: 87 38 a0 18 sra %g2, 0x18, %g3
2005dcc: 80 a0 e0 2d cmp %g3, 0x2d
2005dd0: 02 80 00 a0 be 2006050 <vprintk+0x2e4>
2005dd4: aa 10 20 00 clr %l5
minus = true;
fmt++;
}
while (*fmt >= '0' && *fmt <= '9' ) {
2005dd8: 82 00 7f d0 add %g1, -48, %g1
2005ddc: 82 08 60 ff and %g1, 0xff, %g1
2005de0: 80 a0 60 09 cmp %g1, 9
2005de4: 18 80 00 0f bgu 2005e20 <vprintk+0xb4>
2005de8: a0 10 20 00 clr %l0
width *= 10;
width += ((unsigned) *fmt - '0');
fmt++;
2005dec: b0 06 20 01 inc %i0
}
if (*fmt == '-' ) {
minus = true;
fmt++;
}
while (*fmt >= '0' && *fmt <= '9' ) {
2005df0: c2 0e 00 00 ldub [ %i0 ], %g1
width *= 10;
width += ((unsigned) *fmt - '0');
2005df4: 87 38 a0 18 sra %g2, 0x18, %g3
2005df8: 89 2c 20 03 sll %l0, 3, %g4
2005dfc: 85 28 60 18 sll %g1, 0x18, %g2
2005e00: a1 2c 20 01 sll %l0, 1, %l0
2005e04: a0 04 00 04 add %l0, %g4, %l0
2005e08: a0 04 00 03 add %l0, %g3, %l0
}
if (*fmt == '-' ) {
minus = true;
fmt++;
}
while (*fmt >= '0' && *fmt <= '9' ) {
2005e0c: 86 00 7f d0 add %g1, -48, %g3
2005e10: 86 08 e0 ff and %g3, 0xff, %g3
2005e14: 80 a0 e0 09 cmp %g3, 9
2005e18: 08 bf ff f5 bleu 2005dec <vprintk+0x80>
2005e1c: a0 04 3f d0 add %l0, -48, %l0
width *= 10;
width += ((unsigned) *fmt - '0');
fmt++;
}
if ((c = *fmt) == 'l') {
2005e20: 83 38 a0 18 sra %g2, 0x18, %g1
2005e24: 80 a0 60 6c cmp %g1, 0x6c
2005e28: 02 80 00 77 be 2006004 <vprintk+0x298>
2005e2c: 80 a0 60 63 cmp %g1, 0x63
lflag = true;
c = *++fmt;
}
if ( c == 'c' ) {
2005e30: 22 80 00 7d be,a 2006024 <vprintk+0x2b8>
2005e34: d0 06 40 00 ld [ %i1 ], %o0
/* need a cast here since va_arg() only takes fully promoted types */
char chr = (char) va_arg(ap, int);
BSP_output_char(chr);
continue;
}
if ( c == 's' ) {
2005e38: 80 a0 60 73 cmp %g1, 0x73
2005e3c: 02 80 00 8f be 2006078 <vprintk+0x30c>
2005e40: 80 a0 60 4f cmp %g1, 0x4f
continue;
}
/* must be a numeric format or something unsupported */
if ( c == 'o' || c == 'O' ) {
2005e44: 22 80 00 6e be,a 2005ffc <vprintk+0x290>
2005e48: 82 10 20 00 clr %g1
2005e4c: 80 a0 60 6f cmp %g1, 0x6f
2005e50: 22 80 00 6b be,a 2005ffc <vprintk+0x290> <== NEVER TAKEN
2005e54: 82 10 20 00 clr %g1 <== NOT EXECUTED
base = 8; sign = false;
} else if ( c == 'i' || c == 'I' ||
2005e58: 80 a0 60 49 cmp %g1, 0x49
2005e5c: 22 80 00 06 be,a 2005e74 <vprintk+0x108>
2005e60: 82 10 20 01 mov 1, %g1
2005e64: 80 a0 60 69 cmp %g1, 0x69
2005e68: 12 80 00 44 bne 2005f78 <vprintk+0x20c>
2005e6c: 80 a0 60 44 cmp %g1, 0x44
base = 16; sign = false;
} else if ( c == 'p' ) {
base = 16; sign = false; lflag = true;
} else {
BSP_output_char(c);
continue;
2005e70: 82 10 20 01 mov 1, %g1
2005e74: aa 10 20 0a mov 0xa, %l5
}
printNum(
2005e78: e6 06 40 00 ld [ %i1 ], %l3
unsigned long unsigned_num;
unsigned long n;
unsigned count;
char toPrint[20];
if ( sign && (num < 0) ) {
2005e7c: 80 88 60 ff btst 0xff, %g1
BSP_output_char(c);
continue;
}
printNum(
lflag ? va_arg(ap, long) : (long) va_arg(ap, int),
2005e80: b2 06 60 04 add %i1, 4, %i1
unsigned long unsigned_num;
unsigned long n;
unsigned count;
char toPrint[20];
if ( sign && (num < 0) ) {
2005e84: 02 80 00 05 be 2005e98 <vprintk+0x12c>
2005e88: b8 0f 20 30 and %i4, 0x30, %i4
2005e8c: 80 a4 e0 00 cmp %l3, 0
2005e90: 26 80 00 c0 bl,a 2006190 <vprintk+0x424>
2005e94: c2 05 00 00 ld [ %l4 ], %g1
} else {
unsigned_num = (unsigned long) num;
}
count = 0;
while ((n = unsigned_num / base) > 0) {
2005e98: 90 10 00 13 mov %l3, %o0
2005e9c: 92 10 00 15 mov %l5, %o1
2005ea0: 40 00 4e bf call 201999c <.udiv>
2005ea4: ae 10 20 01 mov 1, %l7
2005ea8: a2 92 20 00 orcc %o0, 0, %l1
2005eac: 02 80 00 12 be 2005ef4 <vprintk+0x188>
2005eb0: a4 10 20 00 clr %l2
2005eb4: 10 80 00 03 b 2005ec0 <vprintk+0x154>
2005eb8: ae 10 00 15 mov %l5, %l7
2005ebc: a2 10 00 08 mov %o0, %l1
toPrint[count++] = (char) (unsigned_num - (n * base));
2005ec0: 92 10 00 11 mov %l1, %o1
2005ec4: 40 00 4e 7c call 20198b4 <.umul>
2005ec8: 90 10 00 17 mov %l7, %o0
2005ecc: 90 24 c0 08 sub %l3, %o0, %o0
} else {
unsigned_num = (unsigned long) num;
}
count = 0;
while ((n = unsigned_num / base) > 0) {
2005ed0: 92 10 00 15 mov %l5, %o1
toPrint[count++] = (char) (unsigned_num - (n * base));
2005ed4: d0 2d 80 12 stb %o0, [ %l6 + %l2 ]
} else {
unsigned_num = (unsigned long) num;
}
count = 0;
while ((n = unsigned_num / base) > 0) {
2005ed8: 90 10 00 11 mov %l1, %o0
2005edc: 40 00 4e b0 call 201999c <.udiv>
2005ee0: a4 04 a0 01 inc %l2
2005ee4: 80 a2 20 00 cmp %o0, 0
2005ee8: 12 bf ff f5 bne 2005ebc <vprintk+0x150>
2005eec: a6 10 00 11 mov %l1, %l3
2005ef0: ae 04 a0 01 add %l2, 1, %l7
toPrint[count++] = (char) (unsigned_num - (n * base));
unsigned_num = n;
}
toPrint[count++] = (char) unsigned_num;
2005ef4: a4 07 80 12 add %fp, %l2, %l2
for (n=maxwidth ; n > count; n-- )
2005ef8: 80 a4 00 17 cmp %l0, %l7
2005efc: 08 80 00 09 bleu 2005f20 <vprintk+0x1b4>
2005f00: e6 2c bf e8 stb %l3, [ %l2 + -24 ]
BSP_output_char(lead);
2005f04: c2 05 00 00 ld [ %l4 ], %g1
2005f08: 9f c0 40 00 call %g1
2005f0c: 90 10 00 1c mov %i4, %o0
toPrint[count++] = (char) (unsigned_num - (n * base));
unsigned_num = n;
}
toPrint[count++] = (char) unsigned_num;
for (n=maxwidth ; n > count; n-- )
2005f10: a0 04 3f ff add %l0, -1, %l0
2005f14: 80 a4 00 17 cmp %l0, %l7
2005f18: 38 bf ff fc bgu,a 2005f08 <vprintk+0x19c>
2005f1c: c2 05 00 00 ld [ %l4 ], %g1
BSP_output_char(lead);
for (n = 0; n < count; n++) {
2005f20: 80 a5 e0 00 cmp %l7, 0
2005f24: 22 80 00 0e be,a 2005f5c <vprintk+0x1f0> <== NEVER TAKEN
2005f28: b0 06 20 01 inc %i0 <== NOT EXECUTED
2005f2c: a2 05 ff ff add %l7, -1, %l1
2005f30: a0 10 20 00 clr %l0
2005f34: a2 05 80 11 add %l6, %l1, %l1
BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]);
2005f38: c4 4c 40 00 ldsb [ %l1 ], %g2
2005f3c: c2 05 00 00 ld [ %l4 ], %g1
2005f40: d0 4f 40 02 ldsb [ %i5 + %g2 ], %o0
2005f44: 9f c0 40 00 call %g1
2005f48: 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++) {
2005f4c: 80 a4 00 17 cmp %l0, %l7
2005f50: 0a bf ff fa bcs 2005f38 <vprintk+0x1cc>
2005f54: a2 04 7f ff add %l1, -1, %l1
void vprintk(
const char *fmt,
va_list ap
)
{
for (; *fmt != '\0'; fmt++) {
2005f58: b0 06 20 01 inc %i0
2005f5c: c2 0e 00 00 ldub [ %i0 ], %g1
2005f60: 83 28 60 18 sll %g1, 0x18, %g1
2005f64: 80 a0 60 00 cmp %g1, 0
2005f68: 12 bf ff 8e bne 2005da0 <vprintk+0x34> <== ALWAYS TAKEN
2005f6c: 91 38 60 18 sra %g1, 0x18, %o0
2005f70: 81 c7 e0 08 ret <== NOT EXECUTED
2005f74: 81 e8 00 00 restore <== NOT EXECUTED
}
/* must be a numeric format or something unsupported */
if ( c == 'o' || c == 'O' ) {
base = 8; sign = false;
} else if ( c == 'i' || c == 'I' ||
2005f78: 22 bf ff bf be,a 2005e74 <vprintk+0x108>
2005f7c: 82 10 20 01 mov 1, %g1
2005f80: 80 a0 60 64 cmp %g1, 0x64
2005f84: 22 bf ff bc be,a 2005e74 <vprintk+0x108>
2005f88: 82 10 20 01 mov 1, %g1
c == 'd' || c == 'D' ) {
base = 10; sign = true;
} else if ( c == 'u' || c == 'U' ) {
2005f8c: 80 a0 60 55 cmp %g1, 0x55
2005f90: 12 80 00 05 bne 2005fa4 <vprintk+0x238>
2005f94: 80 a0 60 75 cmp %g1, 0x75
2005f98: 82 10 20 00 clr %g1
2005f9c: 10 bf ff b7 b 2005e78 <vprintk+0x10c>
2005fa0: aa 10 20 0a mov 0xa, %l5
2005fa4: 02 bf ff fe be 2005f9c <vprintk+0x230>
2005fa8: 82 10 20 00 clr %g1
base = 10; sign = false;
} else if ( c == 'x' || c == 'X' ) {
2005fac: 91 38 a0 18 sra %g2, 0x18, %o0
2005fb0: 80 a2 20 58 cmp %o0, 0x58
2005fb4: 02 bf ff b1 be 2005e78 <vprintk+0x10c>
2005fb8: aa 10 20 10 mov 0x10, %l5
2005fbc: 80 a2 20 78 cmp %o0, 0x78
2005fc0: 02 bf ff ae be 2005e78 <vprintk+0x10c>
2005fc4: 01 00 00 00 nop
base = 16; sign = false;
} else if ( c == 'p' ) {
2005fc8: 80 a2 20 70 cmp %o0, 0x70
2005fcc: 02 bf ff ab be 2005e78 <vprintk+0x10c>
2005fd0: 01 00 00 00 nop
base = 16; sign = false; lflag = true;
} else {
BSP_output_char(c);
2005fd4: c2 05 00 00 ld [ %l4 ], %g1
2005fd8: 9f c0 40 00 call %g1
2005fdc: b0 06 20 01 inc %i0
void vprintk(
const char *fmt,
va_list ap
)
{
for (; *fmt != '\0'; fmt++) {
2005fe0: c2 0e 00 00 ldub [ %i0 ], %g1
2005fe4: 83 28 60 18 sll %g1, 0x18, %g1
2005fe8: 80 a0 60 00 cmp %g1, 0
2005fec: 12 bf ff 6d bne 2005da0 <vprintk+0x34>
2005ff0: 91 38 60 18 sra %g1, 0x18, %o0
2005ff4: 81 c7 e0 08 ret
2005ff8: 81 e8 00 00 restore
base = 16; sign = false;
} else if ( c == 'p' ) {
base = 16; sign = false; lflag = true;
} else {
BSP_output_char(c);
continue;
2005ffc: 10 bf ff 9f b 2005e78 <vprintk+0x10c>
2006000: aa 10 20 08 mov 8, %l5
fmt++;
}
if ((c = *fmt) == 'l') {
lflag = true;
c = *++fmt;
2006004: b0 06 20 01 inc %i0
2006008: c2 0e 00 00 ldub [ %i0 ], %g1
200600c: 85 28 60 18 sll %g1, 0x18, %g2
}
if ( c == 'c' ) {
2006010: 83 38 a0 18 sra %g2, 0x18, %g1
2006014: 80 a0 60 63 cmp %g1, 0x63
2006018: 12 bf ff 89 bne 2005e3c <vprintk+0xd0> <== ALWAYS TAKEN
200601c: 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);
2006020: d0 06 40 00 ld [ %i1 ], %o0 <== NOT EXECUTED
BSP_output_char(chr);
2006024: c2 05 00 00 ld [ %l4 ], %g1
2006028: 91 2a 20 18 sll %o0, 0x18, %o0
200602c: 9f c0 40 00 call %g1
2006030: 91 3a 20 18 sra %o0, 0x18, %o0
void vprintk(
const char *fmt,
va_list ap
)
{
for (; *fmt != '\0'; fmt++) {
2006034: b0 06 20 01 inc %i0
2006038: c2 0e 00 00 ldub [ %i0 ], %g1
200603c: 83 28 60 18 sll %g1, 0x18, %g1
2006040: 80 a0 60 00 cmp %g1, 0
2006044: 12 bf ff 56 bne 2005d9c <vprintk+0x30> <== ALWAYS TAKEN
2006048: b2 06 60 04 add %i1, 4, %i1
200604c: 30 bf ff ea b,a 2005ff4 <vprintk+0x288> <== NOT EXECUTED
lead = '0';
fmt++;
}
if (*fmt == '-' ) {
minus = true;
fmt++;
2006050: b0 06 20 01 inc %i0
2006054: c2 0e 00 00 ldub [ %i0 ], %g1
2006058: aa 10 20 01 mov 1, %l5
200605c: 10 bf ff 5f b 2005dd8 <vprintk+0x6c>
2006060: 85 28 60 18 sll %g1, 0x18, %g2
continue;
}
fmt++;
if (*fmt == '0' ) {
lead = '0';
fmt++;
2006064: b0 06 20 01 inc %i0
2006068: c2 0e 00 00 ldub [ %i0 ], %g1
200606c: b8 10 20 30 mov 0x30, %i4
2006070: 10 bf ff 56 b 2005dc8 <vprintk+0x5c>
2006074: 85 28 60 18 sll %g1, 0x18, %g2
}
if ( c == 's' ) {
unsigned i, len;
char *s, *str;
str = va_arg(ap, char *);
2006078: e4 06 40 00 ld [ %i1 ], %l2
if ( str == NULL ) {
200607c: 80 a4 a0 00 cmp %l2, 0
2006080: 02 80 00 4a be 20061a8 <vprintk+0x43c>
2006084: b2 06 60 04 add %i1, 4, %i1
str = "";
}
/* calculate length of string */
for ( len=0, s=str ; *s ; len++, s++ )
2006088: c2 4c 80 00 ldsb [ %l2 ], %g1
200608c: 80 a0 60 00 cmp %g1, 0
2006090: 02 80 00 07 be 20060ac <vprintk+0x340>
2006094: a2 10 20 00 clr %l1
2006098: a2 04 60 01 inc %l1
200609c: c2 4c 80 11 ldsb [ %l2 + %l1 ], %g1
20060a0: 80 a0 60 00 cmp %g1, 0
20060a4: 32 bf ff fe bne,a 200609c <vprintk+0x330>
20060a8: a2 04 60 01 inc %l1
;
/* leading spaces */
if ( !minus )
20060ac: aa 8d 60 ff andcc %l5, 0xff, %l5
20060b0: 12 80 00 0e bne 20060e8 <vprintk+0x37c>
20060b4: 80 a4 20 00 cmp %l0, 0
for ( i=len ; i<width ; i++ )
20060b8: 80 a4 00 11 cmp %l0, %l1
20060bc: 08 80 00 0b bleu 20060e8 <vprintk+0x37c>
20060c0: 80 a4 20 00 cmp %l0, 0
20060c4: a6 10 00 11 mov %l1, %l3
BSP_output_char(' ');
20060c8: c2 05 00 00 ld [ %l4 ], %g1
20060cc: 9f c0 40 00 call %g1
20060d0: 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++ )
20060d4: a6 04 e0 01 inc %l3
20060d8: 80 a4 c0 10 cmp %l3, %l0
20060dc: 2a bf ff fc bcs,a 20060cc <vprintk+0x360>
20060e0: c2 05 00 00 ld [ %l4 ], %g1
BSP_output_char(' ');
/* no width option */
if (width == 0) {
20060e4: 80 a4 20 00 cmp %l0, 0
20060e8: 32 80 00 07 bne,a 2006104 <vprintk+0x398>
20060ec: d0 4c 80 00 ldsb [ %l2 ], %o0
width = len;
}
/* output the string */
for ( i=0 ; i<width && *str ; str++ )
20060f0: 80 a4 60 00 cmp %l1, 0
20060f4: 02 80 00 14 be 2006144 <vprintk+0x3d8>
20060f8: 80 a5 60 00 cmp %l5, 0
20060fc: a0 10 00 11 mov %l1, %l0
2006100: d0 4c 80 00 ldsb [ %l2 ], %o0
2006104: 80 a2 20 00 cmp %o0, 0
2006108: 02 80 00 0f be 2006144 <vprintk+0x3d8> <== NEVER TAKEN
200610c: 80 a5 60 00 cmp %l5, 0
BSP_output_char(*str);
2006110: c2 05 00 00 ld [ %l4 ], %g1
2006114: 9f c0 40 00 call %g1
2006118: a4 04 a0 01 inc %l2
if (width == 0) {
width = len;
}
/* output the string */
for ( i=0 ; i<width && *str ; str++ )
200611c: 10 80 00 06 b 2006134 <vprintk+0x3c8>
2006120: d0 4c 80 00 ldsb [ %l2 ], %o0
BSP_output_char(*str);
2006124: c2 05 00 00 ld [ %l4 ], %g1
2006128: 9f c0 40 00 call %g1
200612c: 01 00 00 00 nop
if (width == 0) {
width = len;
}
/* output the string */
for ( i=0 ; i<width && *str ; str++ )
2006130: d0 4c 80 00 ldsb [ %l2 ], %o0
2006134: 80 a2 20 00 cmp %o0, 0
2006138: 12 bf ff fb bne 2006124 <vprintk+0x3b8>
200613c: a4 04 a0 01 inc %l2
BSP_output_char(*str);
/* trailing spaces */
if ( minus )
2006140: 80 a5 60 00 cmp %l5, 0
2006144: 22 bf ff 86 be,a 2005f5c <vprintk+0x1f0>
2006148: b0 06 20 01 inc %i0
for ( i=len ; i<width ; i++ )
200614c: 80 a4 40 10 cmp %l1, %l0
2006150: 3a bf ff 83 bcc,a 2005f5c <vprintk+0x1f0>
2006154: b0 06 20 01 inc %i0
BSP_output_char(' ');
2006158: c2 05 00 00 ld [ %l4 ], %g1
200615c: 9f c0 40 00 call %g1
2006160: 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++ )
2006164: a2 04 60 01 inc %l1
2006168: 80 a4 40 10 cmp %l1, %l0
200616c: 2a bf ff fc bcs,a 200615c <vprintk+0x3f0>
2006170: c2 05 00 00 ld [ %l4 ], %g1
void vprintk(
const char *fmt,
va_list ap
)
{
for (; *fmt != '\0'; fmt++) {
2006174: b0 06 20 01 inc %i0
2006178: c2 0e 00 00 ldub [ %i0 ], %g1
200617c: 83 28 60 18 sll %g1, 0x18, %g1
2006180: 80 a0 60 00 cmp %g1, 0
2006184: 32 bf ff 07 bne,a 2005da0 <vprintk+0x34> <== ALWAYS TAKEN
2006188: 91 38 60 18 sra %g1, 0x18, %o0
200618c: 30 bf ff 9a b,a 2005ff4 <vprintk+0x288> <== NOT EXECUTED
unsigned long n;
unsigned count;
char toPrint[20];
if ( sign && (num < 0) ) {
BSP_output_char('-');
2006190: 9f c0 40 00 call %g1
2006194: 90 10 20 2d mov 0x2d, %o0
unsigned_num = (unsigned long) -num;
if (maxwidth) maxwidth--;
2006198: 80 a0 00 10 cmp %g0, %l0
unsigned count;
char toPrint[20];
if ( sign && (num < 0) ) {
BSP_output_char('-');
unsigned_num = (unsigned long) -num;
200619c: a6 20 00 13 neg %l3
if (maxwidth) maxwidth--;
20061a0: 10 bf ff 3e b 2005e98 <vprintk+0x12c>
20061a4: a0 64 20 00 subx %l0, 0, %l0
unsigned i, len;
char *s, *str;
str = va_arg(ap, char *);
if ( str == NULL ) {
20061a8: 10 bf ff b8 b 2006088 <vprintk+0x31c>
20061ac: a4 10 00 1b mov %i3, %l2
0201b3f8 <write>:
ssize_t write(
int fd,
const void *buffer,
size_t count
)
{
201b3f8: 9d e3 bf a0 save %sp, -96, %sp
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
201b3fc: 03 00 80 74 sethi %hi(0x201d000), %g1
201b400: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 ! 201d044 <rtems_libio_number_iops>
201b404: 80 a6 00 01 cmp %i0, %g1
201b408: 1a 80 00 23 bcc 201b494 <write+0x9c> <== NEVER TAKEN
201b40c: 03 00 80 76 sethi %hi(0x201d800), %g1
iop = rtems_libio_iop( fd );
201b410: e0 00 61 d8 ld [ %g1 + 0x1d8 ], %l0 ! 201d9d8 <rtems_libio_iops>
201b414: 83 2e 20 06 sll %i0, 6, %g1
201b418: b1 2e 20 03 sll %i0, 3, %i0
201b41c: b0 06 00 01 add %i0, %g1, %i0
201b420: a0 04 00 18 add %l0, %i0, %l0
rtems_libio_check_is_open( iop );
201b424: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
201b428: 80 88 61 00 btst 0x100, %g1
201b42c: 02 80 00 1a be 201b494 <write+0x9c> <== NEVER TAKEN
201b430: 80 a6 60 00 cmp %i1, 0
rtems_libio_check_buffer( buffer );
201b434: 02 80 00 24 be 201b4c4 <write+0xcc> <== NEVER TAKEN
201b438: 80 a6 a0 00 cmp %i2, 0
rtems_libio_check_count( count );
201b43c: 02 80 00 14 be 201b48c <write+0x94>
201b440: b0 10 20 00 clr %i0
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
201b444: 80 88 60 04 btst 4, %g1
201b448: 02 80 00 13 be 201b494 <write+0x9c> <== NEVER TAKEN
201b44c: 01 00 00 00 nop
/*
* Now process the write() request.
*/
if ( !iop->handlers->write_h )
201b450: c2 04 20 40 ld [ %l0 + 0x40 ], %g1
201b454: c2 00 60 0c ld [ %g1 + 0xc ], %g1
201b458: 80 a0 60 00 cmp %g1, 0
201b45c: 02 80 00 14 be 201b4ac <write+0xb4> <== NEVER TAKEN
201b460: 92 10 00 19 mov %i1, %o1
rtems_set_errno_and_return_minus_one( ENOTSUP );
rc = (*iop->handlers->write_h)( iop, buffer, count );
201b464: 94 10 00 1a mov %i2, %o2
201b468: 9f c0 40 00 call %g1
201b46c: 90 10 00 10 mov %l0, %o0
if ( rc > 0 )
201b470: b0 92 20 00 orcc %o0, 0, %i0
201b474: 04 80 00 06 ble 201b48c <write+0x94> <== NEVER TAKEN
201b478: 85 3e 20 1f sra %i0, 0x1f, %g2
iop->offset += rc;
201b47c: d8 1c 20 10 ldd [ %l0 + 0x10 ], %o4
201b480: 86 83 40 18 addcc %o5, %i0, %g3
201b484: 84 43 00 02 addx %o4, %g2, %g2
201b488: c4 3c 20 10 std %g2, [ %l0 + 0x10 ]
return rc;
}
201b48c: 81 c7 e0 08 ret
201b490: 81 e8 00 00 restore
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open( iop );
rtems_libio_check_buffer( buffer );
rtems_libio_check_count( count );
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
201b494: 7f ff d3 ef call 2010450 <__errno> <== NOT EXECUTED
201b498: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
201b49c: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED
201b4a0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
201b4a4: 81 c7 e0 08 ret <== NOT EXECUTED
201b4a8: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Now process the write() request.
*/
if ( !iop->handlers->write_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
201b4ac: 7f ff d3 e9 call 2010450 <__errno> <== NOT EXECUTED
201b4b0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
201b4b4: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
201b4b8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
201b4bc: 81 c7 e0 08 ret <== NOT EXECUTED
201b4c0: 81 e8 00 00 restore <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open( iop );
rtems_libio_check_buffer( buffer );
201b4c4: 7f ff d3 e3 call 2010450 <__errno> <== NOT EXECUTED
201b4c8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
201b4cc: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
201b4d0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
201b4d4: 81 c7 e0 08 ret <== NOT EXECUTED
201b4d8: 81 e8 00 00 restore <== NOT EXECUTED
020073f8 <writev>:
ssize_t writev(
int fd,
const struct iovec *iov,
int iovcnt
)
{
20073f8: 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 );
20073fc: 03 00 80 7f sethi %hi(0x201fc00), %g1
2007400: c2 00 60 64 ld [ %g1 + 0x64 ], %g1 ! 201fc64 <rtems_libio_number_iops>
2007404: 80 a6 00 01 cmp %i0, %g1
2007408: 1a 80 00 3e bcc 2007500 <writev+0x108> <== NEVER TAKEN
200740c: 03 00 80 83 sethi %hi(0x2020c00), %g1
iop = rtems_libio_iop( fd );
2007410: e6 00 61 cc ld [ %g1 + 0x1cc ], %l3 ! 2020dcc <rtems_libio_iops>
2007414: 83 2e 20 06 sll %i0, 6, %g1
2007418: b1 2e 20 03 sll %i0, 3, %i0
200741c: b0 06 00 01 add %i0, %g1, %i0
2007420: a6 04 c0 18 add %l3, %i0, %l3
rtems_libio_check_is_open( iop );
2007424: c2 04 e0 18 ld [ %l3 + 0x18 ], %g1
2007428: 80 88 61 00 btst 0x100, %g1
200742c: 02 80 00 35 be 2007500 <writev+0x108>
2007430: 80 88 60 04 btst 4, %g1
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
2007434: 02 80 00 33 be 2007500 <writev+0x108> <== NEVER TAKEN
2007438: 80 a6 60 00 cmp %i1, 0
/*
* Argument validation on IO vector
*/
if ( !iov )
200743c: 02 80 00 2b be 20074e8 <writev+0xf0>
2007440: 80 a6 a0 00 cmp %i2, 0
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt <= 0 )
2007444: 04 80 00 29 ble 20074e8 <writev+0xf0>
2007448: 80 a6 a4 00 cmp %i2, 0x400
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt > IOV_MAX )
200744c: 14 80 00 27 bg 20074e8 <writev+0xf0> <== NEVER TAKEN
2007450: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !iop->handlers->write_h )
2007454: c2 04 e0 40 ld [ %l3 + 0x40 ], %g1
2007458: c2 00 60 0c ld [ %g1 + 0xc ], %g1
200745c: 80 a0 60 00 cmp %g1, 0
2007460: 02 80 00 45 be 2007574 <writev+0x17c> <== NEVER TAKEN
2007464: 9a 10 20 01 mov 1, %o5
rtems_set_errno_and_return_minus_one( ENOTSUP );
2007468: 82 10 00 19 mov %i1, %g1
200746c: 88 10 20 00 clr %g4
2007470: 84 10 20 00 clr %g2
* entering the write loop.
*/
all_zeros = true;
for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) {
if ( !iov[v].iov_base )
2007474: c6 00 40 00 ld [ %g1 ], %g3
2007478: 80 a0 e0 00 cmp %g3, 0
200747c: 02 80 00 1b be 20074e8 <writev+0xf0>
2007480: 88 01 20 01 inc %g4
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 )
2007484: c6 00 60 04 ld [ %g1 + 4 ], %g3
* 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++ ) {
2007488: 82 00 60 08 add %g1, 8, %g1
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 )
200748c: 80 a0 00 03 cmp %g0, %g3
2007490: 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 )
2007494: 86 80 80 03 addcc %g2, %g3, %g3
2007498: 0c 80 00 14 bneg 20074e8 <writev+0xf0>
200749c: 9a 0b 40 0c and %o5, %o4, %o5
20074a0: 80 a0 80 03 cmp %g2, %g3
20074a4: 14 80 00 11 bg 20074e8 <writev+0xf0>
20074a8: 80 a6 80 04 cmp %i2, %g4
* 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++ ) {
20074ac: 34 bf ff f2 bg,a 2007474 <writev+0x7c>
20074b0: 84 10 00 03 mov %g3, %g2
}
/*
* A writev with all zeros is supposed to have no effect per OpenGroup.
*/
if ( all_zeros == true ) {
20074b4: 80 8b 60 ff btst 0xff, %o5
20074b8: a4 10 20 00 clr %l2
20074bc: 12 80 00 09 bne 20074e0 <writev+0xe8>
20074c0: 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 )
20074c4: d4 06 60 04 ld [ %i1 + 4 ], %o2
20074c8: 80 a2 a0 00 cmp %o2, 0
20074cc: 12 80 00 13 bne 2007518 <writev+0x120> <== ALWAYS TAKEN
20074d0: a4 04 a0 01 inc %l2
}
/*
* Now process the writev().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
20074d4: 80 a6 80 12 cmp %i2, %l2 <== NOT EXECUTED
20074d8: 14 bf ff fb bg 20074c4 <writev+0xcc>
20074dc: b2 06 60 08 add %i1, 8, %i1
if (bytes != iov[ v ].iov_len)
break;
}
return total;
}
20074e0: 81 c7 e0 08 ret
20074e4: 81 e8 00 00 restore
/* check for wrap */
old = total;
total += iov[v].iov_len;
if ( total < old || total > SSIZE_MAX )
rtems_set_errno_and_return_minus_one( EINVAL );
20074e8: 40 00 28 5d call 201165c <__errno>
20074ec: b0 10 3f ff mov -1, %i0
20074f0: 82 10 20 16 mov 0x16, %g1
20074f4: c2 22 00 00 st %g1, [ %o0 ]
20074f8: 81 c7 e0 08 ret
20074fc: 81 e8 00 00 restore
bool all_zeros;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open( iop );
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
2007500: 40 00 28 57 call 201165c <__errno>
2007504: b0 10 3f ff mov -1, %i0
2007508: 82 10 20 09 mov 9, %g1
200750c: c2 22 00 00 st %g1, [ %o0 ]
2007510: 81 c7 e0 08 ret
2007514: 81 e8 00 00 restore
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
/* all zero lengths has no effect */
if ( iov[v].iov_len == 0 )
continue;
bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len );
2007518: c2 04 e0 40 ld [ %l3 + 0x40 ], %g1
200751c: d2 06 40 00 ld [ %i1 ], %o1
2007520: c2 00 60 0c ld [ %g1 + 0xc ], %g1
2007524: 9f c0 40 00 call %g1
2007528: 90 10 00 13 mov %l3, %o0
if ( bytes < 0 )
200752c: 80 a2 20 00 cmp %o0, 0
2007530: 06 80 00 0f bl 200756c <writev+0x174> <== NEVER TAKEN
2007534: 01 00 00 00 nop
return -1;
if ( bytes > 0 ) {
2007538: 02 80 00 07 be 2007554 <writev+0x15c> <== NEVER TAKEN
200753c: a1 3a 20 1f sra %o0, 0x1f, %l0
iop->offset += bytes;
2007540: c4 1c e0 10 ldd [ %l3 + 0x10 ], %g2
2007544: 86 80 c0 08 addcc %g3, %o0, %g3
total += bytes;
2007548: b0 06 00 08 add %i0, %o0, %i0
if ( bytes < 0 )
return -1;
if ( bytes > 0 ) {
iop->offset += bytes;
200754c: 84 40 80 10 addx %g2, %l0, %g2
2007550: c4 3c e0 10 std %g2, [ %l3 + 0x10 ]
total += bytes;
}
if (bytes != iov[ v ].iov_len)
2007554: c2 06 60 04 ld [ %i1 + 4 ], %g1
2007558: 80 a2 00 01 cmp %o0, %g1
200755c: 02 bf ff df be 20074d8 <writev+0xe0> <== ALWAYS TAKEN
2007560: 80 a6 80 12 cmp %i2, %l2
break;
}
return total;
}
2007564: 81 c7 e0 08 ret <== NOT EXECUTED
2007568: 81 e8 00 00 restore <== NOT EXECUTED
if ( iov[v].iov_len == 0 )
continue;
bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len );
if ( bytes < 0 )
200756c: 81 c7 e0 08 ret <== NOT EXECUTED
2007570: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
if ( iovcnt > IOV_MAX )
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !iop->handlers->write_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
2007574: 40 00 28 3a call 201165c <__errno> <== NOT EXECUTED
2007578: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200757c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
2007580: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2007584: 81 c7 e0 08 ret <== NOT EXECUTED
2007588: 81 e8 00 00 restore <== NOT EXECUTED