Annotated Report
ffc119a4 <IMFS_chown>:
int IMFS_chown(
rtems_filesystem_location_info_t *pathloc, /* IN */
uid_t owner, /* IN */
gid_t group /* IN */
)
{
ffc119a4: 94 21 ff d8 stwu r1,-40(r1)
ffc119a8: 7c 08 02 a6 mflr r0
ffc119ac: 90 01 00 2c stw r0,44(r1)
ffc119b0: 93 e1 00 24 stw r31,36(r1)
IMFS_jnode_t *jnode;
#if defined(RTEMS_POSIX_API)
uid_t st_uid;
#endif
jnode = (IMFS_jnode_t *) pathloc->node_access;
ffc119b4: 83 e3 00 00 lwz r31,0(r3)
int IMFS_chown(
rtems_filesystem_location_info_t *pathloc, /* IN */
uid_t owner, /* IN */
gid_t group /* IN */
)
{
ffc119b8: 93 a1 00 1c stw r29,28(r1)
ffc119bc: 7c bd 2b 78 mr r29,r5
ffc119c0: 93 c1 00 20 stw r30,32(r1)
ffc119c4: 7c 9e 23 78 mr r30,r4
/*
* Verify I am the owner of the node or the super user.
*/
#if defined(RTEMS_POSIX_API)
st_uid = geteuid();
ffc119c8: 48 00 15 85 bl ffc12f4c <geteuid>
if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) )
ffc119cc: a0 1f 00 3c lhz r0,60(r31)
ffc119d0: 7f 80 18 00 cmpw cr7,r0,r3
ffc119d4: 41 9e 00 20 beq- cr7,ffc119f4 <IMFS_chown+0x50>
ffc119d8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc119dc: 41 be 00 18 beq+ cr7,ffc119f4 <IMFS_chown+0x50> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EPERM );
ffc119e0: 48 00 65 71 bl ffc17f50 <__errno> <== NOT EXECUTED
ffc119e4: 38 00 00 01 li r0,1 <== NOT EXECUTED
ffc119e8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc119ec: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc119f0: 48 00 00 24 b ffc11a14 <IMFS_chown+0x70> <== NOT EXECUTED
#endif
jnode->st_uid = owner;
ffc119f4: b3 df 00 3c sth r30,60(r31)
jnode->st_gid = group;
IMFS_update_ctime( jnode );
ffc119f8: 38 61 00 08 addi r3,r1,8
ffc119fc: 38 80 00 00 li r4,0
if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) )
rtems_set_errno_and_return_minus_one( EPERM );
#endif
jnode->st_uid = owner;
jnode->st_gid = group;
ffc11a00: b3 bf 00 3e sth r29,62(r31)
IMFS_update_ctime( jnode );
ffc11a04: 4b ff 40 ed bl ffc05af0 <gettimeofday>
ffc11a08: 80 01 00 08 lwz r0,8(r1)
ffc11a0c: 38 60 00 00 li r3,0
ffc11a10: 90 1f 00 48 stw r0,72(r31)
return 0;
}
ffc11a14: 80 01 00 2c lwz r0,44(r1)
ffc11a18: 83 a1 00 1c lwz r29,28(r1)
ffc11a1c: 7c 08 03 a6 mtlr r0
ffc11a20: 83 c1 00 20 lwz r30,32(r1)
ffc11a24: 83 e1 00 24 lwz r31,36(r1)
ffc11a28: 38 21 00 28 addi r1,r1,40
ffc11a2c: 4e 80 00 20 blr
ffc0ff84 <IMFS_create_node>:
IMFS_jnode_types_t type,
const char *name,
mode_t mode,
const IMFS_types_union *info
)
{
ffc0ff84: 94 21 ff e8 stwu r1,-24(r1)
ffc0ff88: 7c 08 02 a6 mflr r0
ffc0ff8c: 93 e1 00 14 stw r31,20(r1)
IMFS_fs_info_t *fs_info;
/*
* MUST have a parent node to call this routine.
*/
if ( parent_loc == NULL )
ffc0ff90: 7c 7f 1b 79 mr. r31,r3
IMFS_jnode_types_t type,
const char *name,
mode_t mode,
const IMFS_types_union *info
)
{
ffc0ff94: 93 81 00 08 stw r28,8(r1)
IMFS_fs_info_t *fs_info;
/*
* MUST have a parent node to call this routine.
*/
if ( parent_loc == NULL )
ffc0ff98: 3b 80 00 00 li r28,0
IMFS_jnode_types_t type,
const char *name,
mode_t mode,
const IMFS_types_union *info
)
{
ffc0ff9c: 93 a1 00 0c stw r29,12(r1)
ffc0ffa0: 7c fd 3b 78 mr r29,r7
ffc0ffa4: 93 c1 00 10 stw r30,16(r1)
ffc0ffa8: 7c 9e 23 78 mr r30,r4
ffc0ffac: 90 01 00 1c stw r0,28(r1)
IMFS_fs_info_t *fs_info;
/*
* MUST have a parent node to call this routine.
*/
if ( parent_loc == NULL )
ffc0ffb0: 41 a2 01 18 beq+ ffc100c8 <IMFS_create_node+0x144>
return NULL;
/*
* Allocate filesystem node and fill in basic information
*/
node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask );
ffc0ffb4: 3d 20 00 00 lis r9,0
ffc0ffb8: 81 29 26 dc lwz r9,9948(r9)
ffc0ffbc: 7c a4 2b 78 mr r4,r5
ffc0ffc0: 7f c3 f3 78 mr r3,r30
ffc0ffc4: 80 a9 00 2c lwz r5,44(r9)
ffc0ffc8: 7c c5 28 78 andc r5,r6,r5
ffc0ffcc: 4b ff fe bd bl ffc0fe88 <IMFS_allocate_node>
if ( !node )
ffc0ffd0: 7c 7c 1b 79 mr. r28,r3
ffc0ffd4: 41 82 00 f4 beq- ffc100c8 <IMFS_create_node+0x144>
return NULL;
/*
* Set the type specific information
*/
switch (type) {
ffc0ffd8: 3b de ff ff addi r30,r30,-1
ffc0ffdc: 2b 9e 00 06 cmplwi cr7,r30,6
ffc0ffe0: 41 9d 00 9c bgt- cr7,ffc1007c <IMFS_create_node+0xf8>
ffc0ffe4: 3d 20 ff c2 lis r9,-62
ffc0ffe8: 39 29 e3 94 addi r9,r9,-7276
ffc0ffec: 57 de 10 3a rlwinm r30,r30,2,0,29
ffc0fff0: 7c 09 f0 2e lwzx r0,r9,r30
ffc0fff4: 7d 20 4a 14 add r9,r0,r9
ffc0fff8: 7d 29 03 a6 mtctr r9
ffc0fffc: 4e 80 04 20 bctr
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
ffc10000: 39 3c 00 54 addi r9,r28,84
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
ffc10004: 38 1c 00 50 addi r0,r28,80
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
ffc10008: 91 3c 00 50 stw r9,80(r28)
the_chain->permanent_null = NULL;
ffc1000c: 39 20 00 00 li r9,0
ffc10010: 91 3c 00 54 stw r9,84(r28)
the_chain->last = _Chain_Head(the_chain);
ffc10014: 90 1c 00 58 stw r0,88(r28)
ffc10018: 48 00 00 84 b ffc1009c <IMFS_create_node+0x118>
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;
ffc1001c: 80 1d 00 00 lwz r0,0(r29)
ffc10020: 48 00 00 54 b ffc10074 <IMFS_create_node+0xf0>
break;
case IMFS_DEVICE:
node->info.device.major = info->device.major;
node->info.device.minor = info->device.minor;
ffc10024: 81 3d 00 04 lwz r9,4(r29)
case IMFS_SYM_LINK:
node->info.sym_link.name = info->sym_link.name;
break;
case IMFS_DEVICE:
node->info.device.major = info->device.major;
ffc10028: 80 1d 00 00 lwz r0,0(r29)
node->info.device.minor = info->device.minor;
ffc1002c: 91 3c 00 54 stw r9,84(r28)
ffc10030: 48 00 00 44 b ffc10074 <IMFS_create_node+0xf0>
break;
case IMFS_LINEAR_FILE:
node->info.linearfile.size = 0;
ffc10034: 39 20 00 00 li r9,0 <== NOT EXECUTED
ffc10038: 39 40 00 00 li r10,0 <== NOT EXECUTED
ffc1003c: 91 3c 00 50 stw r9,80(r28) <== NOT EXECUTED
node->info.linearfile.direct = 0;
ffc10040: 38 00 00 00 li r0,0 <== NOT EXECUTED
node->info.device.major = info->device.major;
node->info.device.minor = info->device.minor;
break;
case IMFS_LINEAR_FILE:
node->info.linearfile.size = 0;
ffc10044: 91 5c 00 54 stw r10,84(r28) <== NOT EXECUTED
node->info.linearfile.direct = 0;
ffc10048: 90 1c 00 58 stw r0,88(r28) <== NOT EXECUTED
case IMFS_MEMORY_FILE:
node->info.file.size = 0;
node->info.file.indirect = 0;
ffc1004c: 38 00 00 00 li r0,0
case IMFS_LINEAR_FILE:
node->info.linearfile.size = 0;
node->info.linearfile.direct = 0;
case IMFS_MEMORY_FILE:
node->info.file.size = 0;
ffc10050: 39 20 00 00 li r9,0
node->info.file.indirect = 0;
node->info.file.doubly_indirect = 0;
node->info.file.triply_indirect = 0;
ffc10054: 90 1c 00 60 stw r0,96(r28)
case IMFS_LINEAR_FILE:
node->info.linearfile.size = 0;
node->info.linearfile.direct = 0;
case IMFS_MEMORY_FILE:
node->info.file.size = 0;
ffc10058: 39 40 00 00 li r10,0
ffc1005c: 91 3c 00 50 stw r9,80(r28)
ffc10060: 91 5c 00 54 stw r10,84(r28)
node->info.file.indirect = 0;
ffc10064: 90 1c 00 58 stw r0,88(r28)
node->info.file.doubly_indirect = 0;
ffc10068: 90 1c 00 5c stw r0,92(r28)
node->info.file.triply_indirect = 0;
break;
ffc1006c: 48 00 00 30 b ffc1009c <IMFS_create_node+0x118>
case IMFS_FIFO:
node->info.fifo.pipe = NULL;
ffc10070: 38 00 00 00 li r0,0
ffc10074: 90 1c 00 50 stw r0,80(r28)
break;
ffc10078: 48 00 00 24 b ffc1009c <IMFS_create_node+0x118>
default:
assert(0);
ffc1007c: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc10080: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc10084: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc10088: 38 63 e3 c1 addi r3,r3,-7231 <== NOT EXECUTED
ffc1008c: 38 a5 e3 b0 addi r5,r5,-7248 <== NOT EXECUTED
ffc10090: 38 c6 d7 47 addi r6,r6,-10425 <== NOT EXECUTED
ffc10094: 38 80 00 5c li r4,92 <== NOT EXECUTED
ffc10098: 4b ff 3d 3d bl ffc03dd4 <__assert_func> <== NOT EXECUTED
/*
* This node MUST have a parent, so put it in that directory list.
*/
parent = parent_loc->node_access;
fs_info = parent_loc->mt_entry->fs_info;
ffc1009c: 81 3f 00 10 lwz r9,16(r31)
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
ffc100a0: 7f 84 e3 78 mr r4,r28
}
/*
* This node MUST have a parent, so put it in that directory list.
*/
parent = parent_loc->node_access;
ffc100a4: 80 7f 00 00 lwz r3,0(r31)
fs_info = parent_loc->mt_entry->fs_info;
ffc100a8: 81 29 00 34 lwz r9,52(r9)
node->Parent = parent;
ffc100ac: 90 7c 00 08 stw r3,8(r28)
ffc100b0: 38 63 00 50 addi r3,r3,80
node->st_ino = ++fs_info->ino_count;
ffc100b4: 81 69 00 04 lwz r11,4(r9)
ffc100b8: 38 0b 00 01 addi r0,r11,1
ffc100bc: 90 09 00 04 stw r0,4(r9)
ffc100c0: 90 1c 00 38 stw r0,56(r28)
ffc100c4: 4b ff 89 b1 bl ffc08a74 <_Chain_Append>
rtems_chain_append( &parent->info.directory.Entries, &node->Node );
return node;
}
ffc100c8: 80 01 00 1c lwz r0,28(r1)
ffc100cc: 7f 83 e3 78 mr r3,r28
ffc100d0: 83 a1 00 0c lwz r29,12(r1)
ffc100d4: 7c 08 03 a6 mtlr r0
ffc100d8: 83 81 00 08 lwz r28,8(r1)
ffc100dc: 83 c1 00 10 lwz r30,16(r1)
ffc100e0: 83 e1 00 14 lwz r31,20(r1)
ffc100e4: 38 21 00 18 addi r1,r1,24
ffc100e8: 4e 80 00 20 blr
ffc05fa0 <IMFS_dump_directory>:
rtems_chain_node *the_node;
rtems_chain_control *the_chain;
IMFS_jnode_t *the_jnode;
int i;
assert( the_directory );
ffc05fa0: 2c 03 00 00 cmpwi r3,0
void IMFS_dump_directory(
IMFS_jnode_t *the_directory,
int level
)
{
ffc05fa4: 94 21 ff d8 stwu r1,-40(r1)
ffc05fa8: 7c 08 02 a6 mflr r0
ffc05fac: 93 c1 00 20 stw r30,32(r1)
ffc05fb0: 7c 9e 23 78 mr r30,r4
ffc05fb4: 90 01 00 2c stw r0,44(r1)
ffc05fb8: 93 21 00 0c stw r25,12(r1)
ffc05fbc: 93 41 00 10 stw r26,16(r1)
ffc05fc0: 93 61 00 14 stw r27,20(r1)
ffc05fc4: 93 81 00 18 stw r28,24(r1)
ffc05fc8: 93 a1 00 1c stw r29,28(r1)
ffc05fcc: 93 e1 00 24 stw r31,36(r1)
rtems_chain_node *the_node;
rtems_chain_control *the_chain;
IMFS_jnode_t *the_jnode;
int i;
assert( the_directory );
ffc05fd0: 40 a2 00 24 bne+ ffc05ff4 <IMFS_dump_directory+0x54>
ffc05fd4: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc05fd8: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc05fdc: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc05fe0: 38 63 7f 2c addi r3,r3,32556 <== NOT EXECUTED
ffc05fe4: 38 a5 7f 18 addi r5,r5,32536 <== NOT EXECUTED
ffc05fe8: 38 c6 7f e2 addi r6,r6,32738 <== NOT EXECUTED
ffc05fec: 38 80 00 84 li r4,132 <== NOT EXECUTED
ffc05ff0: 48 00 00 28 b ffc06018 <IMFS_dump_directory+0x78> <== NOT EXECUTED
assert( level >= 0 );
ffc05ff4: 2f 84 00 00 cmpwi cr7,r4,0
ffc05ff8: 40 bc 00 24 bge+ cr7,ffc0601c <IMFS_dump_directory+0x7c>
ffc05ffc: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc06000: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc06004: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc06008: 38 63 7f 2c addi r3,r3,32556 <== NOT EXECUTED
ffc0600c: 38 a5 7f 18 addi r5,r5,32536 <== NOT EXECUTED
ffc06010: 38 c6 7f f0 addi r6,r6,32752 <== NOT EXECUTED
ffc06014: 38 80 00 86 li r4,134 <== NOT EXECUTED
ffc06018: 48 00 09 79 bl ffc06990 <__assert_func> <== NOT EXECUTED
assert( the_directory->type == IMFS_DIRECTORY );
ffc0601c: 80 03 00 4c lwz r0,76(r3)
ffc06020: 2f 80 00 01 cmpwi cr7,r0,1
ffc06024: 41 be 00 24 beq+ cr7,ffc06048 <IMFS_dump_directory+0xa8>
ffc06028: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc0602c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc06030: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc06034: 38 63 7f 2c addi r3,r3,32556 <== NOT EXECUTED
ffc06038: 38 a5 7f 18 addi r5,r5,32536 <== NOT EXECUTED
ffc0603c: 38 c6 7f fb addi r6,r6,32763 <== NOT EXECUTED
ffc06040: 38 80 00 88 li r4,136 <== NOT EXECUTED
ffc06044: 4b ff ff d4 b ffc06018 <IMFS_dump_directory+0x78> <== NOT EXECUTED
the_node = the_node->next ) {
the_jnode = (IMFS_jnode_t *) the_node;
for ( i=0 ; i<=level ; i++ )
fprintf(stdout, "...." );
ffc06048: 3f 40 00 00 lis r26,0
assert( the_directory->type == IMFS_DIRECTORY );
the_chain = &the_directory->info.directory.Entries;
for ( the_node = the_chain->first;
ffc0604c: 83 e3 00 50 lwz r31,80(r3)
the_node = the_node->next ) {
the_jnode = (IMFS_jnode_t *) the_node;
for ( i=0 ; i<=level ; i++ )
fprintf(stdout, "...." );
ffc06050: 3f 60 ff c3 lis r27,-61
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
ffc06054: 3b 23 00 54 addi r25,r3,84
ffc06058: 3b 5a 27 4c addi r26,r26,10060
ffc0605c: 3b 7b 80 21 addi r27,r27,-32735
IMFS_print_jnode( the_jnode );
if ( the_jnode->type == IMFS_DIRECTORY )
IMFS_dump_directory( the_jnode, level + 1 );
ffc06060: 3b 84 00 01 addi r28,r4,1
assert( the_directory->type == IMFS_DIRECTORY );
the_chain = &the_directory->info.directory.Entries;
for ( the_node = the_chain->first;
ffc06064: 48 00 00 48 b ffc060ac <IMFS_dump_directory+0x10c>
!rtems_chain_is_tail( the_chain, the_node );
the_node = the_node->next ) {
the_jnode = (IMFS_jnode_t *) the_node;
ffc06068: 3b a0 00 00 li r29,0
for ( i=0 ; i<=level ; i++ )
fprintf(stdout, "...." );
ffc0606c: 81 3a 00 00 lwz r9,0(r26)
!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++ )
ffc06070: 3b bd 00 01 addi r29,r29,1
fprintf(stdout, "...." );
ffc06074: 7f 63 db 78 mr r3,r27
ffc06078: 80 89 00 08 lwz r4,8(r9)
ffc0607c: 48 01 18 65 bl ffc178e0 <fputs>
!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++ )
ffc06080: 7f 9d f0 00 cmpw cr7,r29,r30
ffc06084: 40 9d ff e8 ble+ cr7,ffc0606c <IMFS_dump_directory+0xcc>
fprintf(stdout, "...." );
IMFS_print_jnode( the_jnode );
ffc06088: 7f e3 fb 78 mr r3,r31
ffc0608c: 4b ff fd 2d bl ffc05db8 <IMFS_print_jnode>
if ( the_jnode->type == IMFS_DIRECTORY )
ffc06090: 80 1f 00 4c lwz r0,76(r31)
ffc06094: 2f 80 00 01 cmpwi cr7,r0,1
ffc06098: 40 be 00 10 bne+ cr7,ffc060a8 <IMFS_dump_directory+0x108>
IMFS_dump_directory( the_jnode, level + 1 );
ffc0609c: 7f e3 fb 78 mr r3,r31
ffc060a0: 7f 84 e3 78 mr r4,r28
ffc060a4: 4b ff fe fd bl ffc05fa0 <IMFS_dump_directory>
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 ) {
ffc060a8: 83 ff 00 00 lwz r31,0(r31)
assert( the_directory->type == IMFS_DIRECTORY );
the_chain = &the_directory->info.directory.Entries;
for ( the_node = the_chain->first;
ffc060ac: 7f 9f c8 00 cmpw cr7,r31,r25
ffc060b0: 40 9e ff b8 bne+ cr7,ffc06068 <IMFS_dump_directory+0xc8>
fprintf(stdout, "...." );
IMFS_print_jnode( the_jnode );
if ( the_jnode->type == IMFS_DIRECTORY )
IMFS_dump_directory( the_jnode, level + 1 );
}
}
ffc060b4: 80 01 00 2c lwz r0,44(r1)
ffc060b8: 83 21 00 0c lwz r25,12(r1)
ffc060bc: 7c 08 03 a6 mtlr r0
ffc060c0: 83 41 00 10 lwz r26,16(r1)
ffc060c4: 83 61 00 14 lwz r27,20(r1)
ffc060c8: 83 81 00 18 lwz r28,24(r1)
ffc060cc: 83 a1 00 1c lwz r29,28(r1)
ffc060d0: 83 c1 00 20 lwz r30,32(r1)
ffc060d4: 83 e1 00 24 lwz r31,36(r1)
ffc060d8: 38 21 00 28 addi r1,r1,40
ffc060dc: 4e 80 00 20 blr
ffc0c16c <IMFS_eval_path>:
const char *pathname, /* IN */
int pathnamelen, /* IN */
int flags, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
ffc0c16c: 94 21 ff 88 stwu r1,-120(r1)
ffc0c170: 7c 08 02 a6 mflr r0
ffc0c174: 90 01 00 7c stw r0,124(r1)
ffc0c178: 92 e1 00 54 stw r23,84(r1)
case IMFS_UP_DIR:
/*
* Am I at the root of all filesystems? (chroot'ed?)
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access )
ffc0c17c: 3e e0 00 00 lis r23,0
ffc0c180: 3a f7 26 dc addi r23,r23,9948
const char *pathname, /* IN */
int pathnamelen, /* IN */
int flags, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
ffc0c184: 93 c1 00 70 stw r30,112(r1)
ffc0c188: 92 a1 00 4c stw r21,76(r1)
ffc0c18c: 92 c1 00 50 stw r22,80(r1)
/*
* This was filled in by the caller and is valid in the
* mount table.
*/
node = pathloc->node_access;
ffc0c190: 83 c6 00 00 lwz r30,0(r6)
const char *pathname, /* IN */
int pathnamelen, /* IN */
int flags, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
ffc0c194: 93 01 00 58 stw r24,88(r1)
* 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 );
ffc0c198: 3b 01 00 08 addi r24,r1,8
const char *pathname, /* IN */
int pathnamelen, /* IN */
int flags, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
ffc0c19c: 93 21 00 5c stw r25,92(r1)
* 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 );
ffc0c1a0: 3b 21 00 20 addi r25,r1,32
const char *pathname, /* IN */
int pathnamelen, /* IN */
int flags, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
ffc0c1a4: 93 41 00 60 stw r26,96(r1)
ffc0c1a8: 7c 7a 1b 78 mr r26,r3
ffc0c1ac: 93 61 00 64 stw r27,100(r1)
ffc0c1b0: 7c bb 2b 78 mr r27,r5
ffc0c1b4: 93 81 00 68 stw r28,104(r1)
/*
* This was filled in by the caller and is valid in the
* mount table.
*/
node = pathloc->node_access;
ffc0c1b8: 3b 80 00 00 li r28,0
const char *pathname, /* IN */
int pathnamelen, /* IN */
int flags, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
ffc0c1bc: 93 a1 00 6c stw r29,108(r1)
ffc0c1c0: 7c 9d 23 78 mr r29,r4
ffc0c1c4: 93 e1 00 74 stw r31,116(r1)
ffc0c1c8: 7c df 33 78 mr r31,r6
* 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 );
ffc0c1cc: 7c 7a e2 14 add r3,r26,r28
ffc0c1d0: 7f a4 eb 78 mr r4,r29
ffc0c1d4: 7f 25 cb 78 mr r5,r25
ffc0c1d8: 7f 06 c3 78 mr r6,r24
ffc0c1dc: 48 00 0a 05 bl ffc0cbe0 <IMFS_get_token>
pathnamelen -= len;
i += len;
if ( !pathloc->node_access )
ffc0c1e0: 80 1f 00 00 lwz r0,0(r31)
* 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 );
ffc0c1e4: 7c 76 1b 78 mr r22,r3
pathnamelen -= len;
ffc0c1e8: 82 a1 00 08 lwz r21,8(r1)
i += len;
if ( !pathloc->node_access )
ffc0c1ec: 2f 80 00 00 cmpwi cr7,r0,0
ffc0c1f0: 41 9e 01 40 beq- cr7,ffc0c330 <IMFS_eval_path+0x1c4>
rtems_set_errno_and_return_minus_one( ENOENT );
/*
* I cannot move out of this directory without execute permission.
*/
if ( type != IMFS_NO_MORE_PATH )
ffc0c1f4: 2f 83 00 00 cmpwi cr7,r3,0
ffc0c1f8: 41 9e 00 24 beq- cr7,ffc0c21c <IMFS_eval_path+0xb0>
if ( node->type == IMFS_DIRECTORY )
ffc0c1fc: 80 1e 00 4c lwz r0,76(r30)
ffc0c200: 2f 80 00 01 cmpwi cr7,r0,1
ffc0c204: 40 be 00 18 bne+ cr7,ffc0c21c <IMFS_eval_path+0xb0>
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
ffc0c208: 7f e3 fb 78 mr r3,r31
ffc0c20c: 38 80 00 01 li r4,1
ffc0c210: 4b ff fd 4d bl ffc0bf5c <IMFS_evaluate_permission>
ffc0c214: 2f 83 00 00 cmpwi cr7,r3,0
ffc0c218: 41 9e 01 e4 beq- cr7,ffc0c3fc <IMFS_eval_path+0x290>
rtems_set_errno_and_return_minus_one( EACCES );
node = pathloc->node_access;
switch( type ) {
ffc0c21c: 2f 96 00 03 cmpwi cr7,r22,3
if ( type != IMFS_NO_MORE_PATH )
if ( node->type == IMFS_DIRECTORY )
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
rtems_set_errno_and_return_minus_one( EACCES );
node = pathloc->node_access;
ffc0c220: 83 df 00 00 lwz r30,0(r31)
while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );
pathnamelen -= len;
i += len;
ffc0c224: 7f 9c aa 14 add r28,r28,r21
*/
while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );
pathnamelen -= len;
ffc0c228: 7f b5 e8 50 subf r29,r21,r29
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
rtems_set_errno_and_return_minus_one( EACCES );
node = pathloc->node_access;
switch( type ) {
ffc0c22c: 41 9e 00 80 beq- cr7,ffc0c2ac <IMFS_eval_path+0x140>
ffc0c230: 2f 96 00 04 cmpwi cr7,r22,4
ffc0c234: 41 9e 01 10 beq- cr7,ffc0c344 <IMFS_eval_path+0x1d8>
ffc0c238: 2f 16 00 02 cmpwi cr6,r22,2
ffc0c23c: 40 ba 01 14 bne+ cr6,ffc0c350 <IMFS_eval_path+0x1e4>
case IMFS_UP_DIR:
/*
* Am I at the root of all filesystems? (chroot'ed?)
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access )
ffc0c240: 81 37 00 00 lwz r9,0(r23)
ffc0c244: 80 09 00 18 lwz r0,24(r9)
ffc0c248: 7f 9e 00 00 cmpw cr7,r30,r0
ffc0c24c: 41 be ff 80 beq- cr7,ffc0c1cc <IMFS_eval_path+0x60>
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
pathloc->mt_entry->mt_fs_root.node_access) {
ffc0c250: 81 1f 00 10 lwz r8,16(r31)
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
ffc0c254: 80 08 00 1c lwz r0,28(r8)
ffc0c258: 7f 9e 00 00 cmpw cr7,r30,r0
ffc0c25c: 40 be 00 38 bne+ cr7,ffc0c294 <IMFS_eval_path+0x128>
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
break; /* Throw out the .. in this case */
} else {
newloc = pathloc->mt_entry->mt_point_node;
ffc0c260: 81 28 00 14 lwz r9,20(r8)
*pathloc = newloc;
return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),
ffc0c264: 7f 65 db 78 mr r5,r27
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
break; /* Throw out the .. in this case */
} else {
newloc = pathloc->mt_entry->mt_point_node;
ffc0c268: 80 e8 00 08 lwz r7,8(r8)
*pathloc = newloc;
return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),
ffc0c26c: 7f e6 fb 78 mr r6,r31
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
break; /* Throw out the .. in this case */
} else {
newloc = pathloc->mt_entry->mt_point_node;
ffc0c270: 81 48 00 0c lwz r10,12(r8)
ffc0c274: 81 68 00 10 lwz r11,16(r8)
ffc0c278: 90 e1 00 0c stw r7,12(r1)
ffc0c27c: 91 41 00 10 stw r10,16(r1)
ffc0c280: 91 61 00 14 stw r11,20(r1)
ffc0c284: 91 21 00 18 stw r9,24(r1)
*pathloc = newloc;
return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),
ffc0c288: 80 81 00 08 lwz r4,8(r1)
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
break; /* Throw out the .. in this case */
} else {
newloc = pathloc->mt_entry->mt_point_node;
ffc0c28c: 80 08 00 18 lwz r0,24(r8)
ffc0c290: 48 00 01 14 b ffc0c3a4 <IMFS_eval_path+0x238>
pathnamelen+len,
flags,pathloc);
}
} else {
if ( !node->Parent )
ffc0c294: 83 de 00 08 lwz r30,8(r30)
ffc0c298: 2f 9e 00 00 cmpwi cr7,r30,0
ffc0c29c: 40 be 00 a0 bne+ cr7,ffc0c33c <IMFS_eval_path+0x1d0>
rtems_set_errno_and_return_minus_one( ENOENT );
ffc0c2a0: 48 00 59 25 bl ffc11bc4 <__errno>
ffc0c2a4: 92 c3 00 00 stw r22,0(r3)
ffc0c2a8: 48 00 01 60 b ffc0c408 <IMFS_eval_path+0x29c>
case IMFS_NAME:
/*
* If we are at a link follow it.
*/
if ( node->type == IMFS_HARD_LINK ) {
ffc0c2ac: 80 1e 00 4c lwz r0,76(r30)
ffc0c2b0: 2f 80 00 03 cmpwi cr7,r0,3
ffc0c2b4: 40 be 00 20 bne+ cr7,ffc0c2d4 <IMFS_eval_path+0x168>
IMFS_evaluate_hard_link( pathloc, 0 );
ffc0c2b8: 7f e3 fb 78 mr r3,r31
ffc0c2bc: 38 80 00 00 li r4,0
ffc0c2c0: 4b ff fd 1d bl ffc0bfdc <IMFS_evaluate_hard_link>
node = pathloc->node_access;
ffc0c2c4: 83 df 00 00 lwz r30,0(r31)
if ( !node )
ffc0c2c8: 2f 9e 00 00 cmpwi cr7,r30,0
ffc0c2cc: 40 be 00 2c bne+ cr7,ffc0c2f8 <IMFS_eval_path+0x18c>
ffc0c2d0: 48 00 00 34 b ffc0c304 <IMFS_eval_path+0x198> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTDIR );
} else if ( node->type == IMFS_SYM_LINK ) {
ffc0c2d4: 2f 80 00 04 cmpwi cr7,r0,4
ffc0c2d8: 40 be 00 20 bne+ cr7,ffc0c2f8 <IMFS_eval_path+0x18c>
result = IMFS_evaluate_sym_link( pathloc, 0 );
ffc0c2dc: 7f e3 fb 78 mr r3,r31
ffc0c2e0: 38 80 00 00 li r4,0
ffc0c2e4: 4b ff fd 71 bl ffc0c054 <IMFS_evaluate_sym_link>
node = pathloc->node_access;
ffc0c2e8: 83 df 00 00 lwz r30,0(r31)
if ( result == -1 )
ffc0c2ec: 2f 83 ff ff cmpwi cr7,r3,-1
if ( !node )
rtems_set_errno_and_return_minus_one( ENOTDIR );
} else if ( node->type == IMFS_SYM_LINK ) {
result = IMFS_evaluate_sym_link( pathloc, 0 );
ffc0c2f0: 7c 76 1b 78 mr r22,r3
node = pathloc->node_access;
if ( result == -1 )
ffc0c2f4: 41 9e 01 18 beq- cr7,ffc0c40c <IMFS_eval_path+0x2a0>
/*
* Only a directory can be decended into.
*/
if ( node->type != IMFS_DIRECTORY )
ffc0c2f8: 80 1e 00 4c lwz r0,76(r30)
ffc0c2fc: 2f 80 00 01 cmpwi cr7,r0,1
ffc0c300: 41 be 00 10 beq+ cr7,ffc0c310 <IMFS_eval_path+0x1a4>
rtems_set_errno_and_return_minus_one( ENOTDIR );
ffc0c304: 48 00 58 c1 bl ffc11bc4 <__errno>
ffc0c308: 38 00 00 14 li r0,20
ffc0c30c: 48 00 00 f8 b ffc0c404 <IMFS_eval_path+0x298>
/*
* If we are at a node that is a mount point. Set loc to the
* new fs root node and let them finish evaluating the path.
*/
if ( node->info.directory.mt_fs != NULL ) {
ffc0c310: 81 1e 00 5c lwz r8,92(r30)
ffc0c314: 2f 88 00 00 cmpwi cr7,r8,0
ffc0c318: 40 9e 00 5c bne- cr7,ffc0c374 <IMFS_eval_path+0x208>
/*
* Otherwise find the token name in the present location.
*/
node = IMFS_find_match_in_dir( node, token );
ffc0c31c: 7f c3 f3 78 mr r3,r30
ffc0c320: 7f 24 cb 78 mr r4,r25
ffc0c324: 48 00 07 e9 bl ffc0cb0c <IMFS_find_match_in_dir>
if ( !node )
ffc0c328: 7c 7e 1b 79 mr. r30,r3
ffc0c32c: 40 a2 00 10 bne+ ffc0c33c <IMFS_eval_path+0x1d0>
rtems_set_errno_and_return_minus_one( ENOENT );
ffc0c330: 48 00 58 95 bl ffc11bc4 <__errno>
ffc0c334: 38 00 00 02 li r0,2
ffc0c338: 48 00 00 cc b ffc0c404 <IMFS_eval_path+0x298>
/*
* Set the node access to the point we have found.
*/
pathloc->node_access = node;
ffc0c33c: 93 df 00 00 stw r30,0(r31)
break;
ffc0c340: 4b ff fe 8c b ffc0c1cc <IMFS_eval_path+0x60>
case IMFS_NO_MORE_PATH:
case IMFS_CURRENT_DIR:
break;
case IMFS_INVALID_TOKEN:
rtems_set_errno_and_return_minus_one( ENAMETOOLONG );
ffc0c344: 48 00 58 81 bl ffc11bc4 <__errno>
ffc0c348: 38 00 00 5b li r0,91
ffc0c34c: 48 00 00 b8 b ffc0c404 <IMFS_eval_path+0x298>
/*
* Evaluate all tokens until we are done or an error occurs.
*/
while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
ffc0c350: 2f 16 00 00 cmpwi cr6,r22,0
ffc0c354: 41 9a 00 08 beq- cr6,ffc0c35c <IMFS_eval_path+0x1f0>
ffc0c358: 40 9e fe 74 bne+ cr7,ffc0c1cc <IMFS_eval_path+0x60>
* 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 ) {
ffc0c35c: 80 1e 00 4c lwz r0,76(r30)
ffc0c360: 2f 80 00 01 cmpwi cr7,r0,1
ffc0c364: 40 9e 00 78 bne- cr7,ffc0c3dc <IMFS_eval_path+0x270>
if ( node->info.directory.mt_fs != NULL ) {
ffc0c368: 81 1e 00 5c lwz r8,92(r30)
ffc0c36c: 2f 88 00 00 cmpwi cr7,r8,0
ffc0c370: 41 9e 00 6c beq- cr7,ffc0c3dc <IMFS_eval_path+0x270>
newloc = node->info.directory.mt_fs->mt_fs_root;
ffc0c374: 81 28 00 28 lwz r9,40(r8)
*pathloc = newloc;
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
ffc0c378: 7f 65 db 78 mr r5,r27
* 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 ) {
newloc = node->info.directory.mt_fs->mt_fs_root;
ffc0c37c: 80 e8 00 1c lwz r7,28(r8)
*pathloc = newloc;
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
ffc0c380: 7f e6 fb 78 mr r6,r31
* 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 ) {
newloc = node->info.directory.mt_fs->mt_fs_root;
ffc0c384: 81 48 00 20 lwz r10,32(r8)
ffc0c388: 81 68 00 24 lwz r11,36(r8)
ffc0c38c: 90 e1 00 0c stw r7,12(r1)
ffc0c390: 91 41 00 10 stw r10,16(r1)
ffc0c394: 91 61 00 14 stw r11,20(r1)
ffc0c398: 91 21 00 18 stw r9,24(r1)
*pathloc = newloc;
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
ffc0c39c: 80 81 00 08 lwz r4,8(r1)
* 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 ) {
newloc = node->info.directory.mt_fs->mt_fs_root;
ffc0c3a0: 80 08 00 2c lwz r0,44(r8)
*pathloc = newloc;
ffc0c3a4: 90 1f 00 10 stw r0,16(r31)
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
ffc0c3a8: 7c 64 e0 50 subf r3,r4,r28
ffc0c3ac: 7c 7a 1a 14 add r3,r26,r3
*/
if ( node->type == IMFS_DIRECTORY ) {
if ( node->info.directory.mt_fs != NULL ) {
newloc = node->info.directory.mt_fs->mt_fs_root;
*pathloc = newloc;
ffc0c3b0: 90 ff 00 00 stw r7,0(r31)
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
ffc0c3b4: 7c 9d 22 14 add r4,r29,r4
*/
if ( node->type == IMFS_DIRECTORY ) {
if ( node->info.directory.mt_fs != NULL ) {
newloc = node->info.directory.mt_fs->mt_fs_root;
*pathloc = newloc;
ffc0c3b8: 91 5f 00 04 stw r10,4(r31)
ffc0c3bc: 91 7f 00 08 stw r11,8(r31)
* 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 ) {
newloc = node->info.directory.mt_fs->mt_fs_root;
ffc0c3c0: 90 01 00 1c stw r0,28(r1)
*pathloc = newloc;
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
ffc0c3c4: 80 09 00 00 lwz r0,0(r9)
*/
if ( node->type == IMFS_DIRECTORY ) {
if ( node->info.directory.mt_fs != NULL ) {
newloc = node->info.directory.mt_fs->mt_fs_root;
*pathloc = newloc;
ffc0c3c8: 91 3f 00 0c stw r9,12(r31)
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
ffc0c3cc: 7c 09 03 a6 mtctr r0
ffc0c3d0: 4e 80 04 21 bctrl
ffc0c3d4: 7c 76 1b 78 mr r22,r3
ffc0c3d8: 48 00 00 34 b ffc0c40c <IMFS_eval_path+0x2a0>
flags, pathloc );
} else {
result = IMFS_Set_handlers( pathloc );
}
} else {
result = IMFS_Set_handlers( pathloc );
ffc0c3dc: 7f e3 fb 78 mr r3,r31
ffc0c3e0: 4b ff fb 09 bl ffc0bee8 <IMFS_Set_handlers>
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( pathloc, flags ) )
ffc0c3e4: 7f 64 db 78 mr r4,r27
flags, pathloc );
} else {
result = IMFS_Set_handlers( pathloc );
}
} else {
result = IMFS_Set_handlers( pathloc );
ffc0c3e8: 7c 76 1b 78 mr r22,r3
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( pathloc, flags ) )
ffc0c3ec: 7f e3 fb 78 mr r3,r31
ffc0c3f0: 4b ff fb 6d bl ffc0bf5c <IMFS_evaluate_permission>
ffc0c3f4: 2f 83 00 00 cmpwi cr7,r3,0
ffc0c3f8: 40 be 00 14 bne+ cr7,ffc0c40c <IMFS_eval_path+0x2a0>
rtems_set_errno_and_return_minus_one( EACCES );
ffc0c3fc: 48 00 57 c9 bl ffc11bc4 <__errno>
ffc0c400: 38 00 00 0d li r0,13
ffc0c404: 90 03 00 00 stw r0,0(r3)
ffc0c408: 3a c0 ff ff li r22,-1
return result;
}
ffc0c40c: 80 01 00 7c lwz r0,124(r1)
ffc0c410: 7e c3 b3 78 mr r3,r22
ffc0c414: 82 a1 00 4c lwz r21,76(r1)
ffc0c418: 7c 08 03 a6 mtlr r0
ffc0c41c: 82 c1 00 50 lwz r22,80(r1)
ffc0c420: 82 e1 00 54 lwz r23,84(r1)
ffc0c424: 83 01 00 58 lwz r24,88(r1)
ffc0c428: 83 21 00 5c lwz r25,92(r1)
ffc0c42c: 83 41 00 60 lwz r26,96(r1)
ffc0c430: 83 61 00 64 lwz r27,100(r1)
ffc0c434: 83 81 00 68 lwz r28,104(r1)
ffc0c438: 83 a1 00 6c lwz r29,108(r1)
ffc0c43c: 83 c1 00 70 lwz r30,112(r1)
ffc0c440: 83 e1 00 74 lwz r31,116(r1)
ffc0c444: 38 21 00 78 addi r1,r1,120
ffc0c448: 4e 80 00 20 blr
ffc0bfdc <IMFS_evaluate_hard_link>:
int IMFS_evaluate_hard_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
ffc0bfdc: 94 21 ff e8 stwu r1,-24(r1)
ffc0bfe0: 7c 08 02 a6 mflr r0
ffc0bfe4: 90 01 00 1c stw r0,28(r1)
IMFS_jnode_t *jnode = node->node_access;
ffc0bfe8: 81 23 00 00 lwz r9,0(r3)
int IMFS_evaluate_hard_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
ffc0bfec: 93 e1 00 14 stw r31,20(r1)
ffc0bff0: 7c 7f 1b 78 mr r31,r3
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_HARD_LINK )
ffc0bff4: 80 09 00 4c lwz r0,76(r9)
ffc0bff8: 2f 80 00 03 cmpwi cr7,r0,3
ffc0bffc: 41 be 00 0c beq+ cr7,ffc0c008 <IMFS_evaluate_hard_link+0x2c>
rtems_fatal_error_occurred (0xABCD0000);
ffc0c000: 3c 60 ab cd lis r3,-21555 <== NOT EXECUTED
ffc0c004: 4b ff c5 d5 bl ffc085d8 <rtems_fatal_error_occurred> <== NOT EXECUTED
/*
* Set the hard link value and the handlers.
*/
node->node_access = jnode->info.hard_link.link_node;
ffc0c008: 80 09 00 50 lwz r0,80(r9)
IMFS_Set_handlers( node );
ffc0c00c: 90 81 00 08 stw r4,8(r1)
/*
* Set the hard link value and the handlers.
*/
node->node_access = jnode->info.hard_link.link_node;
ffc0c010: 90 03 00 00 stw r0,0(r3)
IMFS_Set_handlers( node );
ffc0c014: 4b ff fe d5 bl ffc0bee8 <IMFS_Set_handlers>
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( node, flags ) )
ffc0c018: 80 81 00 08 lwz r4,8(r1)
ffc0c01c: 7f e3 fb 78 mr r3,r31
ffc0c020: 4b ff ff 3d bl ffc0bf5c <IMFS_evaluate_permission>
ffc0c024: 2f 83 00 00 cmpwi cr7,r3,0
ffc0c028: 38 60 00 00 li r3,0
ffc0c02c: 40 be 00 14 bne+ cr7,ffc0c040 <IMFS_evaluate_hard_link+0x64>
rtems_set_errno_and_return_minus_one( EACCES );
ffc0c030: 48 00 5b 95 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc0c034: 38 00 00 0d li r0,13 <== NOT EXECUTED
ffc0c038: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc0c03c: 38 60 ff ff li r3,-1 <== NOT EXECUTED
return result;
}
ffc0c040: 80 01 00 1c lwz r0,28(r1)
ffc0c044: 83 e1 00 14 lwz r31,20(r1)
ffc0c048: 38 21 00 18 addi r1,r1,24
ffc0c04c: 7c 08 03 a6 mtlr r0
ffc0c050: 4e 80 00 20 blr
ffc0bf5c <IMFS_evaluate_permission>:
int IMFS_evaluate_permission(
rtems_filesystem_location_info_t *node,
int flags
)
{
ffc0bf5c: 94 21 ff e8 stwu r1,-24(r1)
ffc0bf60: 7c 08 02 a6 mflr r0
ffc0bf64: 90 01 00 1c stw r0,28(r1)
ffc0bf68: 93 e1 00 14 stw r31,20(r1)
if ( !rtems_libio_is_valid_perms( flags ) ) {
assert( 0 );
rtems_set_errno_and_return_minus_one( EIO );
}
jnode = node->node_access;
ffc0bf6c: 83 e3 00 00 lwz r31,0(r3)
int IMFS_evaluate_permission(
rtems_filesystem_location_info_t *node,
int flags
)
{
ffc0bf70: 93 a1 00 0c stw r29,12(r1)
ffc0bf74: 93 c1 00 10 stw r30,16(r1)
ffc0bf78: 7c 9e 23 78 mr r30,r4
}
jnode = node->node_access;
#if defined(RTEMS_POSIX_API)
st_uid = geteuid();
ffc0bf7c: 48 00 13 b5 bl ffc0d330 <geteuid>
ffc0bf80: 7c 7d 1b 78 mr r29,r3
st_gid = getegid();
ffc0bf84: 48 00 13 9d bl ffc0d320 <getegid>
* Check if I am owner or a group member or someone else.
*/
flags_to_test = flags;
if ( st_uid == jnode->st_uid )
ffc0bf88: a1 3f 00 3c lhz r9,60(r31)
flags_to_test <<= 6;
ffc0bf8c: 57 c0 30 32 rlwinm r0,r30,6,0,25
* Check if I am owner or a group member or someone else.
*/
flags_to_test = flags;
if ( st_uid == jnode->st_uid )
ffc0bf90: 7f 89 e8 00 cmpw cr7,r9,r29
ffc0bf94: 41 9e 00 18 beq- cr7,ffc0bfac <IMFS_evaluate_permission+0x50>
flags_to_test <<= 6;
else if ( st_gid == jnode->st_gid )
ffc0bf98: a1 3f 00 3e lhz r9,62(r31)
flags_to_test <<= 3;
ffc0bf9c: 57 c0 18 38 rlwinm r0,r30,3,0,28
flags_to_test = flags;
if ( st_uid == jnode->st_uid )
flags_to_test <<= 6;
else if ( st_gid == jnode->st_gid )
ffc0bfa0: 7f 89 18 00 cmpw cr7,r9,r3
ffc0bfa4: 41 9e 00 08 beq- cr7,ffc0bfac <IMFS_evaluate_permission+0x50>
ffc0bfa8: 7f c0 f3 78 mr r0,r30 <== NOT EXECUTED
/*
* If all of the flags are set we have permission
* to do this.
*/
if ( ( flags_to_test & jnode->st_mode) == flags_to_test )
ffc0bfac: 80 7f 00 30 lwz r3,48(r31)
return 1;
return 0;
}
ffc0bfb0: 83 a1 00 0c lwz r29,12(r1)
/*
* If all of the flags are set we have permission
* to do this.
*/
if ( ( flags_to_test & jnode->st_mode) == flags_to_test )
ffc0bfb4: 7c 03 18 38 and r3,r0,r3
return 1;
return 0;
}
ffc0bfb8: 83 c1 00 10 lwz r30,16(r1)
ffc0bfbc: 7c 63 02 78 xor r3,r3,r0
ffc0bfc0: 80 01 00 1c lwz r0,28(r1)
ffc0bfc4: 7c 63 00 34 cntlzw r3,r3
ffc0bfc8: 83 e1 00 14 lwz r31,20(r1)
ffc0bfcc: 7c 08 03 a6 mtlr r0
ffc0bfd0: 54 63 d9 7e rlwinm r3,r3,27,5,31
ffc0bfd4: 38 21 00 18 addi r1,r1,24
ffc0bfd8: 4e 80 00 20 blr
ffc0c054 <IMFS_evaluate_sym_link>:
int IMFS_evaluate_sym_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
ffc0c054: 94 21 ff e8 stwu r1,-24(r1)
ffc0c058: 7c 08 02 a6 mflr r0
ffc0c05c: 90 01 00 1c stw r0,28(r1)
IMFS_jnode_t *jnode = node->node_access;
ffc0c060: 81 23 00 00 lwz r9,0(r3)
int IMFS_evaluate_sym_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
ffc0c064: 93 c1 00 10 stw r30,16(r1)
ffc0c068: 7c 9e 23 78 mr r30,r4
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_SYM_LINK )
ffc0c06c: 80 09 00 4c lwz r0,76(r9)
int IMFS_evaluate_sym_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
ffc0c070: 93 e1 00 14 stw r31,20(r1)
ffc0c074: 7c 7f 1b 78 mr r31,r3
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_SYM_LINK )
ffc0c078: 2f 80 00 04 cmpwi cr7,r0,4
int IMFS_evaluate_sym_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
ffc0c07c: 93 a1 00 0c stw r29,12(r1)
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_SYM_LINK )
rtems_fatal_error_occurred (0xABCD0000);
ffc0c080: 3c 60 ab cd lis r3,-21555
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_SYM_LINK )
ffc0c084: 40 9e 00 14 bne- cr7,ffc0c098 <IMFS_evaluate_sym_link+0x44>
rtems_fatal_error_occurred (0xABCD0000);
if ( !jnode->Parent )
ffc0c088: 80 09 00 08 lwz r0,8(r9)
ffc0c08c: 2f 80 00 00 cmpwi cr7,r0,0
ffc0c090: 40 be 00 0c bne+ cr7,ffc0c09c <IMFS_evaluate_sym_link+0x48>
rtems_fatal_error_occurred( 0xBAD00000 );
ffc0c094: 3c 60 ba d0 lis r3,-17712 <== NOT EXECUTED
ffc0c098: 4b ff c5 41 bl ffc085d8 <rtems_fatal_error_occurred> <== NOT EXECUTED
/*
* Move the node_access to either the symbolic links parent or
* root depending on the symbolic links path.
*/
node->node_access = jnode->Parent;
ffc0c09c: 90 1f 00 00 stw r0,0(r31)
rtems_filesystem_get_sym_start_loc(
ffc0c0a0: 81 69 00 50 lwz r11,80(r9)
ffc0c0a4: 88 0b 00 00 lbz r0,0(r11)
ffc0c0a8: 2f 80 00 2f cmpwi cr7,r0,47
ffc0c0ac: 41 9e 00 18 beq- cr7,ffc0c0c4 <IMFS_evaluate_sym_link+0x70>
ffc0c0b0: 2f 80 00 5c cmpwi cr7,r0,92
ffc0c0b4: 41 9e 00 10 beq- cr7,ffc0c0c4 <IMFS_evaluate_sym_link+0x70>
ffc0c0b8: 2f 80 00 00 cmpwi cr7,r0,0
ffc0c0bc: 38 00 00 00 li r0,0
ffc0c0c0: 40 9e 00 38 bne- cr7,ffc0c0f8 <IMFS_evaluate_sym_link+0xa4>
ffc0c0c4: 3d 60 00 00 lis r11,0
ffc0c0c8: 81 6b 26 dc lwz r11,9948(r11)
ffc0c0cc: 38 00 00 01 li r0,1
ffc0c0d0: 80 cb 00 18 lwz r6,24(r11)
ffc0c0d4: 80 eb 00 1c lwz r7,28(r11)
ffc0c0d8: 81 0b 00 20 lwz r8,32(r11)
ffc0c0dc: 81 4b 00 24 lwz r10,36(r11)
ffc0c0e0: 90 df 00 00 stw r6,0(r31)
ffc0c0e4: 90 ff 00 04 stw r7,4(r31)
ffc0c0e8: 91 1f 00 08 stw r8,8(r31)
ffc0c0ec: 91 5f 00 0c stw r10,12(r31)
ffc0c0f0: 81 6b 00 28 lwz r11,40(r11)
ffc0c0f4: 91 7f 00 10 stw r11,16(r31)
* Use eval path to evaluate the path of the symbolic link.
*/
result = IMFS_eval_path(
&jnode->info.sym_link.name[i],
strlen( &jnode->info.sym_link.name[i] ),
ffc0c0f8: 83 a9 00 50 lwz r29,80(r9)
ffc0c0fc: 7f bd 02 14 add r29,r29,r0
ffc0c100: 7f a3 eb 78 mr r3,r29
ffc0c104: 48 00 6d bd bl ffc12ec0 <strlen>
/*
* Use eval path to evaluate the path of the symbolic link.
*/
result = IMFS_eval_path(
ffc0c108: 7f c5 f3 78 mr r5,r30
&jnode->info.sym_link.name[i],
strlen( &jnode->info.sym_link.name[i] ),
ffc0c10c: 7c 64 1b 78 mr r4,r3
/*
* Use eval path to evaluate the path of the symbolic link.
*/
result = IMFS_eval_path(
ffc0c110: 7f e6 fb 78 mr r6,r31
ffc0c114: 7f a3 eb 78 mr r3,r29
ffc0c118: 48 00 00 55 bl ffc0c16c <IMFS_eval_path>
ffc0c11c: 7c 7d 1b 78 mr r29,r3
strlen( &jnode->info.sym_link.name[i] ),
flags,
node
);
IMFS_Set_handlers( node );
ffc0c120: 7f e3 fb 78 mr r3,r31
ffc0c124: 4b ff fd c5 bl ffc0bee8 <IMFS_Set_handlers>
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( node, flags ) )
ffc0c128: 7f e3 fb 78 mr r3,r31
ffc0c12c: 7f c4 f3 78 mr r4,r30
ffc0c130: 4b ff fe 2d bl ffc0bf5c <IMFS_evaluate_permission>
ffc0c134: 2f 83 00 00 cmpwi cr7,r3,0
ffc0c138: 40 be 00 14 bne+ cr7,ffc0c14c <IMFS_evaluate_sym_link+0xf8>
rtems_set_errno_and_return_minus_one( EACCES );
ffc0c13c: 48 00 5a 89 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc0c140: 38 00 00 0d li r0,13 <== NOT EXECUTED
ffc0c144: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc0c148: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
return result;
}
ffc0c14c: 80 01 00 1c lwz r0,28(r1)
ffc0c150: 7f a3 eb 78 mr r3,r29
ffc0c154: 83 c1 00 10 lwz r30,16(r1)
ffc0c158: 7c 08 03 a6 mtlr r0
ffc0c15c: 83 a1 00 0c lwz r29,12(r1)
ffc0c160: 83 e1 00 14 lwz r31,20(r1)
ffc0c164: 38 21 00 18 addi r1,r1,24
ffc0c168: 4e 80 00 20 blr
ffc100ec <IMFS_fchmod>:
int IMFS_fchmod(
rtems_filesystem_location_info_t *loc,
mode_t mode
)
{
ffc100ec: 94 21 ff e0 stwu r1,-32(r1)
ffc100f0: 7c 08 02 a6 mflr r0
ffc100f4: 90 01 00 24 stw r0,36(r1)
ffc100f8: 93 e1 00 1c stw r31,28(r1)
IMFS_jnode_t *jnode;
#if defined(RTEMS_POSIX_API)
uid_t st_uid;
#endif
jnode = loc->node_access;
ffc100fc: 83 e3 00 00 lwz r31,0(r3)
int IMFS_fchmod(
rtems_filesystem_location_info_t *loc,
mode_t mode
)
{
ffc10100: 93 c1 00 18 stw r30,24(r1)
ffc10104: 7c 9e 23 78 mr r30,r4
/*
* Verify I am the owner of the node or the super user.
*/
#if defined(RTEMS_POSIX_API)
st_uid = geteuid();
ffc10108: 4b ff d2 29 bl ffc0d330 <geteuid>
if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) )
ffc1010c: a0 1f 00 3c lhz r0,60(r31)
ffc10110: 7f 80 18 00 cmpw cr7,r0,r3
ffc10114: 41 9e 00 20 beq- cr7,ffc10134 <IMFS_fchmod+0x48>
ffc10118: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc1011c: 41 be 00 18 beq+ cr7,ffc10134 <IMFS_fchmod+0x48> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EPERM );
ffc10120: 48 00 1a a5 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc10124: 38 00 00 01 li r0,1 <== NOT EXECUTED
ffc10128: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc1012c: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc10130: 48 00 00 30 b ffc10160 <IMFS_fchmod+0x74> <== NOT EXECUTED
/*
* Change only the RWX permissions on the jnode to mode.
*/
jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
ffc10134: 80 1f 00 30 lwz r0,48(r31)
ffc10138: 57 de 05 3e clrlwi r30,r30,20
IMFS_update_ctime( jnode );
ffc1013c: 38 61 00 08 addi r3,r1,8
/*
* Change only the RWX permissions on the jnode to mode.
*/
jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
ffc10140: 54 00 00 26 rlwinm r0,r0,0,0,19
ffc10144: 7f de 03 78 or r30,r30,r0
ffc10148: 93 df 00 30 stw r30,48(r31)
IMFS_update_ctime( jnode );
ffc1014c: 38 80 00 00 li r4,0
ffc10150: 4b ff d1 f1 bl ffc0d340 <gettimeofday>
ffc10154: 80 01 00 08 lwz r0,8(r1)
ffc10158: 38 60 00 00 li r3,0
ffc1015c: 90 1f 00 48 stw r0,72(r31)
return 0;
}
ffc10160: 80 01 00 24 lwz r0,36(r1)
ffc10164: 83 c1 00 18 lwz r30,24(r1)
ffc10168: 7c 08 03 a6 mtlr r0
ffc1016c: 83 e1 00 1c lwz r31,28(r1)
ffc10170: 38 21 00 20 addi r1,r1,32
ffc10174: 4e 80 00 20 blr
ffc0ca20 <IMFS_fifo_close>:
}
int IMFS_fifo_close(
rtems_libio_t *iop
)
{
ffc0ca20: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED
ffc0ca24: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
int err = pipe_release(&JNODE2PIPE(jnode), iop);
ffc0ca28: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED
}
int IMFS_fifo_close(
rtems_libio_t *iop
)
{
ffc0ca2c: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED
ffc0ca30: 93 e1 00 14 stw r31,20(r1) <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
ffc0ca34: 83 e3 00 3c lwz r31,60(r3) <== NOT EXECUTED
}
int IMFS_fifo_close(
rtems_libio_t *iop
)
{
ffc0ca38: 93 c1 00 10 stw r30,16(r1) <== NOT EXECUTED
ffc0ca3c: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
int err = pipe_release(&JNODE2PIPE(jnode), iop);
ffc0ca40: 38 7f 00 50 addi r3,r31,80 <== NOT EXECUTED
}
int IMFS_fifo_close(
rtems_libio_t *iop
)
{
ffc0ca44: 93 a1 00 0c stw r29,12(r1) <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
int err = pipe_release(&JNODE2PIPE(jnode), iop);
ffc0ca48: 48 00 2f 39 bl ffc0f980 <pipe_release> <== NOT EXECUTED
if (! err) {
ffc0ca4c: 7c 7d 1b 79 mr. r29,r3 <== NOT EXECUTED
ffc0ca50: 40 a2 00 38 bne+ ffc0ca88 <IMFS_fifo_close+0x68> <== NOT EXECUTED
iop->flags &= ~LIBIO_FLAGS_OPEN;
ffc0ca54: 80 1e 00 18 lwz r0,24(r30) <== 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)
ffc0ca58: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
int err = pipe_release(&JNODE2PIPE(jnode), iop);
if (! err) {
iop->flags &= ~LIBIO_FLAGS_OPEN;
ffc0ca5c: 54 00 06 2c rlwinm r0,r0,0,24,22 <== NOT EXECUTED
ffc0ca60: 90 1e 00 18 stw r0,24(r30) <== 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)
ffc0ca64: 48 00 09 bd bl ffc0d420 <rtems_libio_is_file_open> <== NOT EXECUTED
ffc0ca68: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc0ca6c: 40 9e 00 30 bne- cr7,ffc0ca9c <IMFS_fifo_close+0x7c> <== NOT EXECUTED
ffc0ca70: a0 1f 00 34 lhz r0,52(r31) <== NOT EXECUTED
ffc0ca74: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0ca78: 40 be 00 24 bne+ cr7,ffc0ca9c <IMFS_fifo_close+0x7c> <== NOT EXECUTED
free(jnode);
ffc0ca7c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc0ca80: 4b ff 77 c5 bl ffc04244 <free> <== NOT EXECUTED
ffc0ca84: 48 00 00 18 b ffc0ca9c <IMFS_fifo_close+0x7c> <== NOT EXECUTED
}
IMFS_FIFO_RETURN(err);
ffc0ca88: 40 a0 00 14 bge+ ffc0ca9c <IMFS_fifo_close+0x7c> <== NOT EXECUTED
ffc0ca8c: 7f bd 00 d0 neg r29,r29 <== NOT EXECUTED
ffc0ca90: 48 00 51 35 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc0ca94: 93 a3 00 00 stw r29,0(r3) <== NOT EXECUTED
ffc0ca98: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
}
ffc0ca9c: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED
ffc0caa0: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc0caa4: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED
ffc0caa8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0caac: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED
ffc0cab0: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED
ffc0cab4: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED
ffc0cab8: 4e 80 00 20 blr <== NOT EXECUTED
ffc0c8a0 <IMFS_fifo_ioctl>:
int IMFS_fifo_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
ffc0c8a0: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED
ffc0c8a4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc0c8a8: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED
ffc0c8ac: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED
int err;
if (command == FIONBIO) {
ffc0c8b0: 3c 00 80 04 lis r0,-32764 <== NOT EXECUTED
ffc0c8b4: 60 00 66 7e ori r0,r0,26238 <== NOT EXECUTED
ffc0c8b8: 7f 84 00 00 cmpw cr7,r4,r0 <== NOT EXECUTED
int IMFS_fifo_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
ffc0c8bc: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED
int err;
if (command == FIONBIO) {
ffc0c8c0: 40 9e 00 38 bne- cr7,ffc0c8f8 <IMFS_fifo_ioctl+0x58> <== NOT EXECUTED
if (buffer == NULL)
ffc0c8c4: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED
ffc0c8c8: 3b e0 ff f2 li r31,-14 <== NOT EXECUTED
ffc0c8cc: 41 9e 00 40 beq- cr7,ffc0c90c <IMFS_fifo_ioctl+0x6c> <== NOT EXECUTED
err = -EFAULT;
else {
if (*(int *)buffer)
ffc0c8d0: 81 25 00 00 lwz r9,0(r5) <== NOT EXECUTED
ffc0c8d4: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED
ffc0c8d8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc0c8dc: 41 9e 00 0c beq- cr7,ffc0c8e8 <IMFS_fifo_ioctl+0x48> <== NOT EXECUTED
iop->flags |= LIBIO_FLAGS_NO_DELAY;
ffc0c8e0: 60 00 00 01 ori r0,r0,1 <== NOT EXECUTED
ffc0c8e4: 48 00 00 08 b ffc0c8ec <IMFS_fifo_ioctl+0x4c> <== NOT EXECUTED
else
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
ffc0c8e8: 54 00 00 3c rlwinm r0,r0,0,0,30 <== NOT EXECUTED
ffc0c8ec: 90 06 00 18 stw r0,24(r6) <== NOT EXECUTED
ffc0c8f0: 3b e0 00 00 li r31,0 <== NOT EXECUTED
ffc0c8f4: 48 00 00 28 b ffc0c91c <IMFS_fifo_ioctl+0x7c> <== NOT EXECUTED
return 0;
}
}
else
err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop);
ffc0c8f8: 81 23 00 3c lwz r9,60(r3) <== NOT EXECUTED
ffc0c8fc: 80 69 00 50 lwz r3,80(r9) <== NOT EXECUTED
ffc0c900: 48 00 2b 89 bl ffc0f488 <pipe_ioctl> <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
ffc0c904: 7c 7f 1b 79 mr. r31,r3 <== NOT EXECUTED
ffc0c908: 40 a0 00 14 bge+ ffc0c91c <IMFS_fifo_ioctl+0x7c> <== NOT EXECUTED
ffc0c90c: 7f ff 00 d0 neg r31,r31 <== NOT EXECUTED
ffc0c910: 48 00 52 b5 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc0c914: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED
ffc0c918: 3b e0 ff ff li r31,-1 <== NOT EXECUTED
}
ffc0c91c: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc0c920: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc0c924: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc0c928: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc0c92c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0c930: 4e 80 00 20 blr <== NOT EXECUTED
ffc0c83c <IMFS_fifo_lseek>:
rtems_off64_t IMFS_fifo_lseek(
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
ffc0c83c: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED
ffc0c840: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc0c844: 7c 68 1b 78 mr r8,r3 <== NOT EXECUTED
ffc0c848: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED
ffc0c84c: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED
off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);
ffc0c850: 81 23 00 3c lwz r9,60(r3) <== NOT EXECUTED
ffc0c854: 80 69 00 50 lwz r3,80(r9) <== NOT EXECUTED
ffc0c858: 48 00 2b b9 bl ffc0f410 <pipe_lseek> <== NOT EXECUTED
ffc0c85c: 7c 69 fe 70 srawi r9,r3,31 <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
ffc0c860: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);
ffc0c864: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED
ffc0c868: 7c 6a 1b 78 mr r10,r3 <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
ffc0c86c: 40 bc 00 18 bge+ cr7,ffc0c884 <IMFS_fifo_lseek+0x48> <== NOT EXECUTED
ffc0c870: 48 00 53 55 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc0c874: 7f ff 00 d0 neg r31,r31 <== NOT EXECUTED
ffc0c878: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED
ffc0c87c: 39 20 ff ff li r9,-1 <== NOT EXECUTED
ffc0c880: 39 40 ff ff li r10,-1 <== NOT EXECUTED
}
ffc0c884: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc0c888: 7d 44 53 78 mr r4,r10 <== NOT EXECUTED
ffc0c88c: 7d 23 4b 78 mr r3,r9 <== NOT EXECUTED
ffc0c890: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc0c894: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0c898: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc0c89c: 4e 80 00 20 blr <== NOT EXECUTED
ffc0c9ac <IMFS_fifo_read>:
ssize_t IMFS_fifo_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
ffc0c9ac: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED
ffc0c9b0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc0c9b4: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED
ffc0c9b8: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED
ffc0c9bc: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED
ffc0c9c0: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
ffc0c9c4: 83 e3 00 3c lwz r31,60(r3) <== NOT EXECUTED
int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop);
ffc0c9c8: 80 7f 00 50 lwz r3,80(r31) <== NOT EXECUTED
ffc0c9cc: 48 00 2b 41 bl ffc0f50c <pipe_read> <== NOT EXECUTED
if (err > 0)
ffc0c9d0: 7c 7e 1b 79 mr. r30,r3 <== NOT EXECUTED
ffc0c9d4: 40 81 00 1c ble- ffc0c9f0 <IMFS_fifo_read+0x44> <== NOT EXECUTED
IMFS_update_atime(jnode);
ffc0c9d8: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED
ffc0c9dc: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc0c9e0: 48 00 09 61 bl ffc0d340 <gettimeofday> <== NOT EXECUTED
ffc0c9e4: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED
ffc0c9e8: 90 1f 00 40 stw r0,64(r31) <== NOT EXECUTED
ffc0c9ec: 48 00 00 18 b ffc0ca04 <IMFS_fifo_read+0x58> <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
ffc0c9f0: 41 a2 00 14 beq+ ffc0ca04 <IMFS_fifo_read+0x58> <== NOT EXECUTED
ffc0c9f4: 7f de 00 d0 neg r30,r30 <== NOT EXECUTED
ffc0c9f8: 48 00 51 cd bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc0c9fc: 93 c3 00 00 stw r30,0(r3) <== NOT EXECUTED
ffc0ca00: 3b c0 ff ff li r30,-1 <== NOT EXECUTED
}
ffc0ca04: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED
ffc0ca08: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc0ca0c: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED
ffc0ca10: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0ca14: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED
ffc0ca18: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED
ffc0ca1c: 4e 80 00 20 blr <== NOT EXECUTED
ffc0c934 <IMFS_fifo_write>:
ssize_t IMFS_fifo_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
ffc0c934: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED
ffc0c938: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc0c93c: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED
ffc0c940: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED
ffc0c944: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED
ffc0c948: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
ffc0c94c: 83 e3 00 3c lwz r31,60(r3) <== NOT EXECUTED
int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop);
ffc0c950: 80 7f 00 50 lwz r3,80(r31) <== NOT EXECUTED
ffc0c954: 48 00 2d a9 bl ffc0f6fc <pipe_write> <== NOT EXECUTED
if (err > 0) {
ffc0c958: 7c 7e 1b 79 mr. r30,r3 <== NOT EXECUTED
ffc0c95c: 40 81 00 20 ble- ffc0c97c <IMFS_fifo_write+0x48> <== NOT EXECUTED
IMFS_mtime_ctime_update(jnode);
ffc0c960: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED
ffc0c964: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc0c968: 48 00 09 d9 bl ffc0d340 <gettimeofday> <== NOT EXECUTED
ffc0c96c: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED
ffc0c970: 90 1f 00 48 stw r0,72(r31) <== NOT EXECUTED
ffc0c974: 90 1f 00 44 stw r0,68(r31) <== NOT EXECUTED
ffc0c978: 48 00 00 18 b ffc0c990 <IMFS_fifo_write+0x5c> <== NOT EXECUTED
}
IMFS_FIFO_RETURN(err);
ffc0c97c: 41 a2 00 14 beq+ ffc0c990 <IMFS_fifo_write+0x5c> <== NOT EXECUTED
ffc0c980: 7f de 00 d0 neg r30,r30 <== NOT EXECUTED
ffc0c984: 48 00 52 41 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc0c988: 93 c3 00 00 stw r30,0(r3) <== NOT EXECUTED
ffc0c98c: 3b c0 ff ff li r30,-1 <== NOT EXECUTED
}
ffc0c990: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED
ffc0c994: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc0c998: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED
ffc0c99c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0c9a0: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED
ffc0c9a4: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED
ffc0c9a8: 4e 80 00 20 blr <== NOT EXECUTED
ffc0cb0c <IMFS_find_match_in_dir>:
IMFS_jnode_t *IMFS_find_match_in_dir(
IMFS_jnode_t *directory,
char *name
)
{
ffc0cb0c: 94 21 ff e8 stwu r1,-24(r1)
ffc0cb10: 7c 08 02 a6 mflr r0
ffc0cb14: 93 e1 00 14 stw r31,20(r1)
/*
* Check for fatal errors. A NULL directory show a problem in the
* the IMFS code.
*/
assert( directory );
ffc0cb18: 7c 7f 1b 79 mr. r31,r3
IMFS_jnode_t *IMFS_find_match_in_dir(
IMFS_jnode_t *directory,
char *name
)
{
ffc0cb1c: 93 c1 00 10 stw r30,16(r1)
ffc0cb20: 7c 9e 23 78 mr r30,r4
ffc0cb24: 90 01 00 1c stw r0,28(r1)
ffc0cb28: 93 a1 00 0c stw r29,12(r1)
/*
* Check for fatal errors. A NULL directory show a problem in the
* the IMFS code.
*/
assert( directory );
ffc0cb2c: 40 a2 00 24 bne+ ffc0cb50 <IMFS_find_match_in_dir+0x44>
ffc0cb30: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc0cb34: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc0cb38: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc0cb3c: 38 63 df f7 addi r3,r3,-8201 <== NOT EXECUTED
ffc0cb40: 38 a5 df d8 addi r5,r5,-8232 <== NOT EXECUTED
ffc0cb44: 38 c6 e0 43 addi r6,r6,-8125 <== NOT EXECUTED
ffc0cb48: 38 80 00 2a li r4,42 <== NOT EXECUTED
ffc0cb4c: 4b ff 72 89 bl ffc03dd4 <__assert_func> <== NOT EXECUTED
if ( !name )
ffc0cb50: 2f 84 00 00 cmpwi cr7,r4,0
ffc0cb54: 41 9e 00 68 beq- cr7,ffc0cbbc <IMFS_find_match_in_dir+0xb0>
/*
* Check for "." and ".."
*/
if ( !strcmp( name, dotname ) )
ffc0cb58: 3f a0 ff c2 lis r29,-62
ffc0cb5c: 3b bd df d8 addi r29,r29,-8232
ffc0cb60: 7c 83 23 78 mr r3,r4
ffc0cb64: 38 9d 00 18 addi r4,r29,24
ffc0cb68: 48 00 62 39 bl ffc12da0 <strcmp>
ffc0cb6c: 2f 83 00 00 cmpwi cr7,r3,0
ffc0cb70: 41 9e 00 50 beq- cr7,ffc0cbc0 <IMFS_find_match_in_dir+0xb4>
return directory;
if ( !strcmp( name, dotdotname ) )
ffc0cb74: 38 9d 00 1c addi r4,r29,28
ffc0cb78: 7f c3 f3 78 mr r3,r30
ffc0cb7c: 48 00 62 25 bl ffc12da0 <strcmp>
ffc0cb80: 2f 83 00 00 cmpwi cr7,r3,0
ffc0cb84: 40 9e 00 0c bne- cr7,ffc0cb90 <IMFS_find_match_in_dir+0x84>
return directory->Parent;
ffc0cb88: 83 ff 00 08 lwz r31,8(r31) <== NOT EXECUTED
ffc0cb8c: 48 00 00 34 b ffc0cbc0 <IMFS_find_match_in_dir+0xb4> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
ffc0cb90: 3b bf 00 54 addi r29,r31,84
the_chain = &directory->info.directory.Entries;
for ( the_node = the_chain->first;
ffc0cb94: 83 ff 00 50 lwz r31,80(r31)
ffc0cb98: 48 00 00 1c b ffc0cbb4 <IMFS_find_match_in_dir+0xa8>
!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 ) )
ffc0cb9c: 7f c3 f3 78 mr r3,r30
ffc0cba0: 38 9f 00 0c addi r4,r31,12
ffc0cba4: 48 00 61 fd bl ffc12da0 <strcmp>
ffc0cba8: 2f 83 00 00 cmpwi cr7,r3,0
ffc0cbac: 41 9e 00 14 beq- cr7,ffc0cbc0 <IMFS_find_match_in_dir+0xb4>
the_chain = &directory->info.directory.Entries;
for ( the_node = the_chain->first;
!rtems_chain_is_tail( the_chain, the_node );
the_node = the_node->next ) {
ffc0cbb0: 83 ff 00 00 lwz r31,0(r31)
if ( !strcmp( name, dotdotname ) )
return directory->Parent;
the_chain = &directory->info.directory.Entries;
for ( the_node = the_chain->first;
ffc0cbb4: 7f 9f e8 00 cmpw cr7,r31,r29
ffc0cbb8: 40 9e ff e4 bne+ cr7,ffc0cb9c <IMFS_find_match_in_dir+0x90>
ffc0cbbc: 3b e0 00 00 li r31,0
if ( !strcmp( name, the_jnode->name ) )
return the_jnode;
}
return 0;
}
ffc0cbc0: 80 01 00 1c lwz r0,28(r1)
ffc0cbc4: 7f e3 fb 78 mr r3,r31
ffc0cbc8: 83 a1 00 0c lwz r29,12(r1)
ffc0cbcc: 7c 08 03 a6 mtlr r0
ffc0cbd0: 83 c1 00 10 lwz r30,16(r1)
ffc0cbd4: 83 e1 00 14 lwz r31,20(r1)
ffc0cbd8: 38 21 00 18 addi r1,r1,24
ffc0cbdc: 4e 80 00 20 blr
ffc128c0 <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
)
{
ffc128c0: 94 21 ff c8 stwu r1,-56(r1)
ffc128c4: 7c 08 02 a6 mflr r0
/*
* Set this to null to indicate that it is being unmounted.
*/
temp_mt_entry->mt_fs_root.node_access = NULL;
ffc128c8: 39 00 00 00 li r8,0
((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next))
int IMFS_fsunmount(
rtems_filesystem_mount_table_entry_t *temp_mt_entry
)
{
ffc128cc: 90 01 00 3c stw r0,60(r1)
ffc128d0: 93 a1 00 2c stw r29,44(r1)
* 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;
ffc128d4: 81 43 00 20 lwz r10,32(r3)
/*
* 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;
ffc128d8: 83 a3 00 1c lwz r29,28(r3)
loc = temp_mt_entry->mt_fs_root;
ffc128dc: 81 63 00 24 lwz r11,36(r3)
ffc128e0: 81 23 00 28 lwz r9,40(r3)
ffc128e4: 80 03 00 2c lwz r0,44(r3)
/*
* Set this to null to indicate that it is being unmounted.
*/
temp_mt_entry->mt_fs_root.node_access = NULL;
ffc128e8: 91 03 00 1c stw r8,28(r3)
((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next))
int IMFS_fsunmount(
rtems_filesystem_mount_table_entry_t *temp_mt_entry
)
{
ffc128ec: 93 c1 00 30 stw r30,48(r1)
* 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;
ffc128f0: 91 41 00 0c stw r10,12(r1)
ffc128f4: 91 61 00 10 stw r11,16(r1)
ffc128f8: 91 21 00 14 stw r9,20(r1)
ffc128fc: 90 01 00 18 stw r0,24(r1)
ffc12900: 93 a1 00 08 stw r29,8(r1)
((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next))
int IMFS_fsunmount(
rtems_filesystem_mount_table_entry_t *temp_mt_entry
)
{
ffc12904: 93 e1 00 34 stw r31,52(r1)
temp_mt_entry->mt_fs_root.node_access = NULL;
do {
next = jnode->Parent;
loc.node_access = (void *)jnode;
IMFS_Set_handlers( &loc );
ffc12908: 3b e1 00 08 addi r31,r1,8
ffc1290c: 7f e3 fb 78 mr r3,r31
temp_mt_entry->mt_fs_root.node_access = NULL;
do {
next = jnode->Parent;
loc.node_access = (void *)jnode;
ffc12910: 93 a1 00 08 stw r29,8(r1)
*/
temp_mt_entry->mt_fs_root.node_access = NULL;
do {
next = jnode->Parent;
ffc12914: 83 dd 00 08 lwz r30,8(r29)
loc.node_access = (void *)jnode;
IMFS_Set_handlers( &loc );
ffc12918: 4b ff f3 7d bl ffc11c94 <IMFS_Set_handlers>
if ( jnode->type != IMFS_DIRECTORY ) {
ffc1291c: 81 3d 00 4c lwz r9,76(r29)
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
ffc12920: 38 1d 00 54 addi r0,r29,84
ffc12924: 2f 89 00 01 cmpwi cr7,r9,1
ffc12928: 40 9e 00 10 bne- cr7,ffc12938 <IMFS_fsunmount+0x78>
ffc1292c: 81 3d 00 50 lwz r9,80(r29)
ffc12930: 7f 89 00 00 cmpw cr7,r9,r0
ffc12934: 40 be 00 1c bne+ cr7,ffc12950 <IMFS_fsunmount+0x90>
result = IMFS_unlink( NULL, &loc );
if (result != 0)
return -1;
jnode = next;
} else if ( jnode_has_no_children( jnode ) ) {
result = IMFS_unlink( NULL, &loc );
ffc12938: 38 60 00 00 li r3,0
ffc1293c: 7f e4 fb 78 mr r4,r31
ffc12940: 4b ff 28 ed bl ffc0522c <IMFS_unlink>
if (result != 0)
ffc12944: 2f 83 00 00 cmpwi cr7,r3,0
ffc12948: 40 9e 00 3c bne- cr7,ffc12984 <IMFS_fsunmount+0xc4>
ffc1294c: 7f dd f3 78 mr r29,r30
return -1;
jnode = next;
}
if ( jnode != NULL ) {
ffc12950: 2f 9d 00 00 cmpwi cr7,r29,0
ffc12954: 41 9e 00 38 beq- cr7,ffc1298c <IMFS_fsunmount+0xcc>
if ( jnode->type == IMFS_DIRECTORY ) {
ffc12958: 80 1d 00 4c lwz r0,76(r29)
ffc1295c: 2f 80 00 01 cmpwi cr7,r0,1
ffc12960: 40 9e ff ac bne+ cr7,ffc1290c <IMFS_fsunmount+0x4c>
ffc12964: 80 1d 00 50 lwz r0,80(r29)
ffc12968: 39 3d 00 54 addi r9,r29,84
ffc1296c: 7f 80 48 00 cmpw cr7,r0,r9
ffc12970: 41 be ff 9c beq- cr7,ffc1290c <IMFS_fsunmount+0x4c>
if ( jnode_has_children( jnode ) )
jnode = jnode_get_first_child( jnode );
}
}
} while (jnode != NULL);
ffc12974: 2f 80 00 00 cmpwi cr7,r0,0
ffc12978: 7c 1d 03 78 mr r29,r0
ffc1297c: 40 9e ff 90 bne+ cr7,ffc1290c <IMFS_fsunmount+0x4c>
ffc12980: 48 00 00 0c b ffc1298c <IMFS_fsunmount+0xcc> <== NOT EXECUTED
ffc12984: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc12988: 48 00 00 08 b ffc12990 <IMFS_fsunmount+0xd0> <== NOT EXECUTED
ffc1298c: 38 60 00 00 li r3,0
return 0;
}
ffc12990: 80 01 00 3c lwz r0,60(r1)
ffc12994: 83 a1 00 2c lwz r29,44(r1)
ffc12998: 7c 08 03 a6 mtlr r0
ffc1299c: 83 c1 00 30 lwz r30,48(r1)
ffc129a0: 83 e1 00 34 lwz r31,52(r1)
ffc129a4: 38 21 00 38 addi r1,r1,56
ffc129a8: 4e 80 00 20 blr
ffc0ccf4 <IMFS_initialize_support>:
IMFS_jnode_t *jnode;
/*
* determine/check value for imfs_memfile_bytes_per_block
*/
IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block,
ffc0ccf4: 39 60 00 06 li r11,6
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
)
{
ffc0ccf8: 94 21 ff e8 stwu r1,-24(r1)
IMFS_jnode_t *jnode;
/*
* determine/check value for imfs_memfile_bytes_per_block
*/
IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block,
ffc0ccfc: 7d 69 03 a6 mtctr r11
ffc0cd00: 3d 20 00 00 lis r9,0
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
)
{
ffc0cd04: 7c 08 02 a6 mflr r0
ffc0cd08: 93 81 00 08 stw r28,8(r1)
ffc0cd0c: 7c 9c 23 78 mr r28,r4
ffc0cd10: 90 01 00 1c stw r0,28(r1)
ffc0cd14: 93 a1 00 0c stw r29,12(r1)
ffc0cd18: 7c dd 33 78 mr r29,r6
ffc0cd1c: 93 c1 00 10 stw r30,16(r1)
ffc0cd20: 7c be 2b 78 mr r30,r5
ffc0cd24: 93 e1 00 14 stw r31,20(r1)
ffc0cd28: 7c 7f 1b 78 mr r31,r3
IMFS_jnode_t *jnode;
/*
* determine/check value for imfs_memfile_bytes_per_block
*/
IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block,
ffc0cd2c: 80 09 26 90 lwz r0,9872(r9)
ffc0cd30: 39 20 00 10 li r9,16
int bit_mask;
/*
* check, whether requested bytes per block is valid
*/
for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
ffc0cd34: 7f 89 00 00 cmpw cr7,r9,r0
ffc0cd38: 41 9e 00 10 beq- cr7,ffc0cd48 <IMFS_initialize_support+0x54>
ffc0cd3c: 55 29 08 3c rlwinm r9,r9,1,0,30
ffc0cd40: 42 00 ff f4 bdnz+ ffc0cd34 <IMFS_initialize_support+0x40>
ffc0cd44: 39 20 00 80 li r9,128 <== NOT EXECUTED
if (bit_mask == requested_bytes_per_block) {
is_valid = true;
}
}
*dest_bytes_per_block = ((is_valid)
ffc0cd48: 3d 60 00 00 lis r11,0
ffc0cd4c: 91 2b 27 e0 stw r9,10208(r11)
/*
* 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();
ffc0cd50: 48 00 31 e5 bl ffc0ff34 <IMFS_create_root_node>
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;
ffc0cd54: 3c 80 ff c2 lis r4,-62
/*
* 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();
ffc0cd58: 90 7f 00 1c stw r3,28(r31)
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;
ffc0cd5c: 38 84 e3 64 addi r4,r4,-7324
ffc0cd60: 38 a0 00 30 li r5,48
*
* NOTE: UNIX root is 755 and owned by root/root (0/0).
*/
temp_mt_entry->mt_fs_root.node_access = IMFS_create_root_node();
temp_mt_entry->mt_fs_root.handlers = directory_handlers;
temp_mt_entry->mt_fs_root.ops = op_table;
ffc0cd64: 93 9f 00 28 stw r28,40(r31)
temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS;
ffc0cd68: 38 7f 00 38 addi r3,r31,56
* 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;
ffc0cd6c: 93 bf 00 24 stw r29,36(r31)
temp_mt_entry->mt_fs_root.ops = op_table;
temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS;
ffc0cd70: 48 00 5a 3d bl ffc127ac <memcpy>
/*
* Create custom file system data.
*/
fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) );
ffc0cd74: 38 60 00 01 li r3,1
ffc0cd78: 38 80 00 10 li r4,16
ffc0cd7c: 48 00 03 4d bl ffc0d0c8 <calloc>
if ( !fs_info ) {
ffc0cd80: 7c 69 1b 79 mr. r9,r3
ffc0cd84: 80 7f 00 1c lwz r3,28(r31)
ffc0cd88: 40 a2 00 1c bne+ ffc0cda4 <IMFS_initialize_support+0xb0>
free(temp_mt_entry->mt_fs_root.node_access);
ffc0cd8c: 4b ff 74 b9 bl ffc04244 <free> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
ffc0cd90: 48 00 4e 35 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc0cd94: 38 00 00 0c li r0,12 <== NOT EXECUTED
ffc0cd98: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc0cd9c: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc0cda0: 48 00 00 38 b ffc0cdd8 <IMFS_initialize_support+0xe4><== NOT EXECUTED
/*
* Set st_ino for the root to 1.
*/
fs_info->instance = imfs_instance++;
ffc0cda4: 3d 60 00 00 lis r11,0
fs_info->ino_count = 1;
fs_info->memfile_handlers = memfile_handlers;
fs_info->directory_handlers = directory_handlers;
ffc0cda8: 93 a9 00 0c stw r29,12(r9)
/*
* Set st_ino for the root to 1.
*/
fs_info->instance = imfs_instance++;
fs_info->ino_count = 1;
ffc0cdac: 38 00 00 01 li r0,1
/*
* Set st_ino for the root to 1.
*/
fs_info->instance = imfs_instance++;
ffc0cdb0: 81 4b 29 90 lwz r10,10640(r11)
fs_info->ino_count = 1;
ffc0cdb4: 90 09 00 04 stw r0,4(r9)
/*
* Set st_ino for the root to 1.
*/
fs_info->instance = imfs_instance++;
ffc0cdb8: 39 0a 00 01 addi r8,r10,1
ffc0cdbc: 91 49 00 00 stw r10,0(r9)
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;
ffc0cdc0: 90 03 00 38 stw r0,56(r3)
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;
ffc0cdc4: 91 3f 00 34 stw r9,52(r31)
* Set st_ino for the root to 1.
*/
fs_info->instance = imfs_instance++;
fs_info->ino_count = 1;
fs_info->memfile_handlers = memfile_handlers;
ffc0cdc8: 93 c9 00 08 stw r30,8(r9)
/*
* Set st_ino for the root to 1.
*/
fs_info->instance = imfs_instance++;
ffc0cdcc: 91 0b 29 90 stw r8,10640(r11)
jnode = temp_mt_entry->mt_fs_root.node_access;
jnode->st_ino = fs_info->ino_count;
/* Initialize POSIX FIFO/pipe module */
rtems_pipe_initialize();
ffc0cdd0: 48 00 26 49 bl ffc0f418 <rtems_pipe_initialize>
ffc0cdd4: 38 60 00 00 li r3,0
return 0;
}
ffc0cdd8: 80 01 00 1c lwz r0,28(r1)
ffc0cddc: 83 81 00 08 lwz r28,8(r1)
ffc0cde0: 7c 08 03 a6 mtlr r0
ffc0cde4: 83 a1 00 0c lwz r29,12(r1)
ffc0cde8: 83 c1 00 10 lwz r30,16(r1)
ffc0cdec: 83 e1 00 14 lwz r31,20(r1)
ffc0cdf0: 38 21 00 18 addi r1,r1,24
ffc0cdf4: 4e 80 00 20 blr
ffc04e44 <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 */
)
{
ffc04e44: 94 21 ff 98 stwu r1,-104(r1)
ffc04e48: 7c 08 02 a6 mflr r0
ffc04e4c: 90 01 00 6c stw r0,108(r1)
int i;
/*
* Verify this node can be linked to.
*/
info.hard_link.link_node = to_loc->node_access;
ffc04e50: 81 23 00 00 lwz r9,0(r3)
int IMFS_link(
rtems_filesystem_location_info_t *to_loc, /* IN */
rtems_filesystem_location_info_t *parent_loc, /* IN */
const char *token /* IN */
)
{
ffc04e54: 93 a1 00 5c stw r29,92(r1)
ffc04e58: 7c bd 2b 78 mr r29,r5
int i;
/*
* Verify this node can be linked to.
*/
info.hard_link.link_node = to_loc->node_access;
ffc04e5c: 91 21 00 18 stw r9,24(r1)
if ( info.hard_link.link_node->st_nlink >= LINK_MAX )
ffc04e60: a0 09 00 34 lhz r0,52(r9)
int IMFS_link(
rtems_filesystem_location_info_t *to_loc, /* IN */
rtems_filesystem_location_info_t *parent_loc, /* IN */
const char *token /* IN */
)
{
ffc04e64: 93 c1 00 60 stw r30,96(r1)
ffc04e68: 7c 9e 23 78 mr r30,r4
/*
* 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 )
ffc04e6c: 2b 80 00 07 cmplwi cr7,r0,7
int IMFS_link(
rtems_filesystem_location_info_t *to_loc, /* IN */
rtems_filesystem_location_info_t *parent_loc, /* IN */
const char *token /* IN */
)
{
ffc04e70: 93 e1 00 64 stw r31,100(r1)
/*
* 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 )
ffc04e74: 40 bd 00 10 ble+ cr7,ffc04e84 <IMFS_link+0x40>
rtems_set_errno_and_return_minus_one( EMLINK );
ffc04e78: 48 01 30 d9 bl ffc17f50 <__errno>
ffc04e7c: 38 00 00 1f li r0,31
ffc04e80: 48 00 00 50 b ffc04ed0 <IMFS_link+0x8c>
/*
* Remove any separators at the end of the string.
*/
IMFS_get_token( token, strlen( token ), new_name, &i );
ffc04e84: 7c a3 2b 78 mr r3,r5
ffc04e88: 48 01 43 89 bl ffc19210 <strlen>
ffc04e8c: 3b e1 00 30 addi r31,r1,48
ffc04e90: 7c 64 1b 78 mr r4,r3
ffc04e94: 7f e5 fb 78 mr r5,r31
ffc04e98: 38 c1 00 08 addi r6,r1,8
ffc04e9c: 7f a3 eb 78 mr r3,r29
ffc04ea0: 48 00 db e1 bl ffc12a80 <IMFS_get_token>
* 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(
ffc04ea4: 38 c0 00 00 li r6,0
ffc04ea8: 7f c3 f3 78 mr r3,r30
ffc04eac: 7f e5 fb 78 mr r5,r31
ffc04eb0: 60 c6 a1 ff ori r6,r6,41471
ffc04eb4: 38 80 00 03 li r4,3
ffc04eb8: 38 e1 00 18 addi r7,r1,24
ffc04ebc: 48 00 cc 71 bl ffc11b2c <IMFS_create_node>
new_name,
( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),
&info
);
if ( !new_node )
ffc04ec0: 2f 83 00 00 cmpwi cr7,r3,0
ffc04ec4: 40 be 00 18 bne+ cr7,ffc04edc <IMFS_link+0x98>
rtems_set_errno_and_return_minus_one( ENOMEM );
ffc04ec8: 48 01 30 89 bl ffc17f50 <__errno> <== NOT EXECUTED
ffc04ecc: 38 00 00 0c li r0,12 <== NOT EXECUTED
ffc04ed0: 90 03 00 00 stw r0,0(r3)
ffc04ed4: 38 60 ff ff li r3,-1
ffc04ed8: 48 00 00 30 b ffc04f08 <IMFS_link+0xc4>
/*
* Increment the link count of the node being pointed to.
*/
info.hard_link.link_node->st_nlink++;
ffc04edc: 81 21 00 18 lwz r9,24(r1)
IMFS_update_ctime( info.hard_link.link_node );
ffc04ee0: 38 61 00 0c addi r3,r1,12
ffc04ee4: 38 80 00 00 li r4,0
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++;
ffc04ee8: a1 69 00 34 lhz r11,52(r9)
ffc04eec: 38 0b 00 01 addi r0,r11,1
ffc04ef0: b0 09 00 34 sth r0,52(r9)
IMFS_update_ctime( info.hard_link.link_node );
ffc04ef4: 48 00 0b fd bl ffc05af0 <gettimeofday>
ffc04ef8: 80 01 00 0c lwz r0,12(r1)
ffc04efc: 81 21 00 18 lwz r9,24(r1)
ffc04f00: 38 60 00 00 li r3,0
ffc04f04: 90 09 00 48 stw r0,72(r9)
return 0;
}
ffc04f08: 80 01 00 6c lwz r0,108(r1)
ffc04f0c: 83 a1 00 5c lwz r29,92(r1)
ffc04f10: 7c 08 03 a6 mtlr r0
ffc04f14: 83 c1 00 60 lwz r30,96(r1)
ffc04f18: 83 e1 00 64 lwz r31,100(r1)
ffc04f1c: 38 21 00 68 addi r1,r1,104
ffc04f20: 4e 80 00 20 blr
ffc15c3c <IMFS_memfile_addblock>:
)
{
block_p memory;
block_p *block_entry_ptr;
assert( the_jnode );
ffc15c3c: 7c 69 1b 79 mr. r9,r3
MEMFILE_STATIC int IMFS_memfile_addblock(
IMFS_jnode_t *the_jnode,
unsigned int block
)
{
ffc15c40: 94 21 ff f0 stwu r1,-16(r1)
ffc15c44: 7c 08 02 a6 mflr r0
ffc15c48: 93 e1 00 0c stw r31,12(r1)
ffc15c4c: 90 01 00 14 stw r0,20(r1)
block_p memory;
block_p *block_entry_ptr;
assert( the_jnode );
ffc15c50: 40 a2 00 28 bne+ ffc15c78 <IMFS_memfile_addblock+0x3c>
ffc15c54: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc15c58: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc15c5c: 38 a5 4d 84 addi r5,r5,19844 <== NOT EXECUTED
ffc15c60: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc15c64: 38 63 4e 46 addi r3,r3,20038 <== NOT EXECUTED
ffc15c68: 38 a5 00 70 addi r5,r5,112 <== NOT EXECUTED
ffc15c6c: 38 c6 4e 8c addi r6,r6,20108 <== NOT EXECUTED
ffc15c70: 38 80 01 69 li r4,361 <== NOT EXECUTED
ffc15c74: 48 00 00 30 b ffc15ca4 <IMFS_memfile_addblock+0x68> <== NOT EXECUTED
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
ffc15c78: 80 09 00 4c lwz r0,76(r9)
ffc15c7c: 2f 80 00 05 cmpwi cr7,r0,5
ffc15c80: 41 be 00 28 beq+ cr7,ffc15ca8 <IMFS_memfile_addblock+0x6c>
ffc15c84: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc15c88: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc15c8c: 38 a5 4d 84 addi r5,r5,19844 <== NOT EXECUTED
ffc15c90: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc15c94: 38 63 4e 46 addi r3,r3,20038 <== NOT EXECUTED
ffc15c98: 38 a5 00 70 addi r5,r5,112 <== NOT EXECUTED
ffc15c9c: 38 c6 4e 96 addi r6,r6,20118 <== NOT EXECUTED
ffc15ca0: 38 80 01 6d li r4,365 <== NOT EXECUTED
ffc15ca4: 4b fe f8 9d bl ffc05540 <__assert_func> <== NOT EXECUTED
if ( the_jnode->type != IMFS_MEMORY_FILE )
rtems_set_errno_and_return_minus_one( EIO );
block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 1 );
ffc15ca8: 38 a0 00 01 li r5,1
ffc15cac: 4b ff f9 39 bl ffc155e4 <IMFS_memfile_get_block_pointer>
if ( *block_entry_ptr )
ffc15cb0: 80 03 00 00 lwz r0,0(r3)
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 );
ffc15cb4: 7c 7f 1b 78 mr r31,r3
if ( *block_entry_ptr )
ffc15cb8: 38 60 00 00 li r3,0
ffc15cbc: 2f 80 00 00 cmpwi cr7,r0,0
ffc15cc0: 40 be 00 1c bne+ cr7,ffc15cdc <IMFS_memfile_addblock+0xa0>
#if 0
fprintf(stdout, "%d %p", block, block_entry_ptr );
fflush(stdout);
#endif
memory = memfile_alloc_block();
ffc15cc4: 4b ff f8 dd bl ffc155a0 <memfile_alloc_block>
if ( !memory )
ffc15cc8: 7c 60 1b 79 mr. r0,r3
ffc15ccc: 38 60 00 01 li r3,1
ffc15cd0: 41 82 00 0c beq- ffc15cdc <IMFS_memfile_addblock+0xa0>
return 1;
*block_entry_ptr = memory;
ffc15cd4: 90 1f 00 00 stw r0,0(r31)
ffc15cd8: 38 60 00 00 li r3,0
return 0;
}
ffc15cdc: 80 01 00 14 lwz r0,20(r1)
ffc15ce0: 83 e1 00 0c lwz r31,12(r1)
ffc15ce4: 38 21 00 10 addi r1,r1,16
ffc15ce8: 7c 08 03 a6 mtlr r0
ffc15cec: 4e 80 00 20 blr
ffc15cf0 <IMFS_memfile_extend>:
MEMFILE_STATIC int IMFS_memfile_extend(
IMFS_jnode_t *the_jnode,
off_t new_length
)
{
ffc15cf0: 94 21 ff d8 stwu r1,-40(r1)
ffc15cf4: 7c 08 02 a6 mflr r0
ffc15cf8: 93 e1 00 24 stw r31,36(r1)
/*
* Perform internal consistency checks
*/
assert( the_jnode );
ffc15cfc: 7c 7f 1b 79 mr. r31,r3
MEMFILE_STATIC int IMFS_memfile_extend(
IMFS_jnode_t *the_jnode,
off_t new_length
)
{
ffc15d00: 93 81 00 18 stw r28,24(r1)
ffc15d04: 7c dc 33 78 mr r28,r6
ffc15d08: 93 a1 00 1c stw r29,28(r1)
ffc15d0c: 7c bd 2b 78 mr r29,r5
ffc15d10: 90 01 00 2c stw r0,44(r1)
ffc15d14: 93 01 00 08 stw r24,8(r1)
ffc15d18: 93 21 00 0c stw r25,12(r1)
ffc15d1c: 93 41 00 10 stw r26,16(r1)
ffc15d20: 93 61 00 14 stw r27,20(r1)
ffc15d24: 93 c1 00 20 stw r30,32(r1)
/*
* Perform internal consistency checks
*/
assert( the_jnode );
ffc15d28: 40 a2 00 28 bne+ ffc15d50 <IMFS_memfile_extend+0x60>
ffc15d2c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc15d30: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc15d34: 38 a5 4d 84 addi r5,r5,19844 <== NOT EXECUTED
ffc15d38: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc15d3c: 38 63 4e 46 addi r3,r3,20038 <== NOT EXECUTED
ffc15d40: 38 a5 00 88 addi r5,r5,136 <== NOT EXECUTED
ffc15d44: 38 c6 4e 8c addi r6,r6,20108 <== NOT EXECUTED
ffc15d48: 38 80 01 31 li r4,305 <== NOT EXECUTED
ffc15d4c: 48 00 00 30 b ffc15d7c <IMFS_memfile_extend+0x8c> <== NOT EXECUTED
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
ffc15d50: 80 1f 00 4c lwz r0,76(r31)
ffc15d54: 2f 80 00 05 cmpwi cr7,r0,5
ffc15d58: 41 be 00 28 beq+ cr7,ffc15d80 <IMFS_memfile_extend+0x90>
ffc15d5c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc15d60: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc15d64: 38 a5 4d 84 addi r5,r5,19844 <== NOT EXECUTED
ffc15d68: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc15d6c: 38 63 4e 46 addi r3,r3,20038 <== NOT EXECUTED
ffc15d70: 38 a5 00 88 addi r5,r5,136 <== NOT EXECUTED
ffc15d74: 38 c6 4e 96 addi r6,r6,20118 <== NOT EXECUTED
ffc15d78: 38 80 01 35 li r4,309 <== NOT EXECUTED
ffc15d7c: 4b fe f7 c5 bl ffc05540 <__assert_func> <== NOT EXECUTED
if ( the_jnode->type != IMFS_MEMORY_FILE )
rtems_set_errno_and_return_minus_one( EIO );
if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )
ffc15d80: 3d 20 00 00 lis r9,0
ffc15d84: 83 c9 27 68 lwz r30,10088(r9)
ffc15d88: 38 00 00 00 li r0,0
ffc15d8c: 7f 80 28 00 cmpw cr7,r0,r5
ffc15d90: 57 c9 f0 be rlwinm r9,r30,30,2,31
ffc15d94: 39 69 00 01 addi r11,r9,1
ffc15d98: 7d 6b 49 d6 mullw r11,r11,r9
ffc15d9c: 38 0b 00 01 addi r0,r11,1
ffc15da0: 7d 20 49 d6 mullw r9,r0,r9
ffc15da4: 39 29 ff ff addi r9,r9,-1
ffc15da8: 7d 29 f1 d6 mullw r9,r9,r30
ffc15dac: 41 bd 00 1c bgt+ cr7,ffc15dc8 <IMFS_memfile_extend+0xd8>
ffc15db0: 40 9e 00 0c bne- cr7,ffc15dbc <IMFS_memfile_extend+0xcc>
ffc15db4: 7f 89 30 40 cmplw cr7,r9,r6
ffc15db8: 41 bd 00 10 bgt+ cr7,ffc15dc8 <IMFS_memfile_extend+0xd8>
rtems_set_errno_and_return_minus_one( EINVAL );
ffc15dbc: 48 00 21 95 bl ffc17f50 <__errno> <== NOT EXECUTED
ffc15dc0: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc15dc4: 48 00 00 9c b ffc15e60 <IMFS_memfile_extend+0x170> <== NOT EXECUTED
if ( new_length <= the_jnode->info.file.size )
ffc15dc8: 83 3f 00 50 lwz r25,80(r31)
ffc15dcc: 83 5f 00 54 lwz r26,84(r31)
ffc15dd0: 7f 9d c8 00 cmpw cr7,r29,r25
ffc15dd4: 41 bd 00 18 bgt+ cr7,ffc15dec <IMFS_memfile_extend+0xfc>
ffc15dd8: 40 9e 00 0c bne- cr7,ffc15de4 <IMFS_memfile_extend+0xf4>
ffc15ddc: 7f 9c d0 40 cmplw cr7,r28,r26
ffc15de0: 41 bd 00 0c bgt+ cr7,ffc15dec <IMFS_memfile_extend+0xfc>
ffc15de4: 38 60 00 00 li r3,0
ffc15de8: 48 00 00 9c b ffc15e84 <IMFS_memfile_extend+0x194>
/*
* Calculate the number of range of blocks to allocate
*/
new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc15dec: 7f db fe 70 srawi r27,r30,31
ffc15df0: 7f 65 db 78 mr r5,r27
ffc15df4: 7f c6 f3 78 mr r6,r30
ffc15df8: 7f a3 eb 78 mr r3,r29
ffc15dfc: 7f 84 e3 78 mr r4,r28
ffc15e00: 48 00 c0 05 bl ffc21e04 <__divdi3>
old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc15e04: 7f 65 db 78 mr r5,r27
ffc15e08: 7f c6 f3 78 mr r6,r30
/*
* Calculate the number of range of blocks to allocate
*/
new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc15e0c: 7c 98 23 78 mr r24,r4
old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc15e10: 7f 23 cb 78 mr r3,r25
ffc15e14: 7f 44 d3 78 mr r4,r26
ffc15e18: 48 00 bf ed bl ffc21e04 <__divdi3>
ffc15e1c: 7c 9b 23 78 mr r27,r4
ffc15e20: 7c 9e 23 78 mr r30,r4
/*
* Now allocate each of those blocks.
*/
for ( block=old_blocks ; block<=new_blocks ; block++ ) {
ffc15e24: 48 00 00 4c b ffc15e70 <IMFS_memfile_extend+0x180>
if ( IMFS_memfile_addblock( the_jnode, block ) ) {
ffc15e28: 7f e3 fb 78 mr r3,r31
ffc15e2c: 7f c4 f3 78 mr r4,r30
ffc15e30: 4b ff fe 0d bl ffc15c3c <IMFS_memfile_addblock>
ffc15e34: 2f 83 00 00 cmpwi cr7,r3,0
ffc15e38: 41 be 00 34 beq+ cr7,ffc15e6c <IMFS_memfile_extend+0x17c>
ffc15e3c: 48 00 00 14 b ffc15e50 <IMFS_memfile_extend+0x160> <== NOT EXECUTED
for ( ; block>=old_blocks ; block-- ) {
IMFS_memfile_remove_block( the_jnode, block );
ffc15e40: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED
ffc15e44: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc15e48: 4b ff fa 99 bl ffc158e0 <IMFS_memfile_remove_block> <== 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-- ) {
ffc15e4c: 3b de ff ff addi r30,r30,-1 <== NOT EXECUTED
ffc15e50: 7f 9e d8 40 cmplw cr7,r30,r27 <== NOT EXECUTED
ffc15e54: 40 9c ff ec bge+ cr7,ffc15e40 <IMFS_memfile_extend+0x150><== NOT EXECUTED
IMFS_memfile_remove_block( the_jnode, block );
}
rtems_set_errno_and_return_minus_one( ENOSPC );
ffc15e58: 48 00 20 f9 bl ffc17f50 <__errno> <== NOT EXECUTED
ffc15e5c: 38 00 00 1c li r0,28 <== NOT EXECUTED
ffc15e60: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc15e64: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc15e68: 48 00 00 1c b ffc15e84 <IMFS_memfile_extend+0x194> <== NOT EXECUTED
/*
* Now allocate each of those blocks.
*/
for ( block=old_blocks ; block<=new_blocks ; block++ ) {
ffc15e6c: 3b de 00 01 addi r30,r30,1
ffc15e70: 7f 9e c0 40 cmplw cr7,r30,r24
ffc15e74: 40 9d ff b4 ble+ cr7,ffc15e28 <IMFS_memfile_extend+0x138>
/*
* Set the new length of the file.
*/
the_jnode->info.file.size = new_length;
ffc15e78: 93 9f 00 54 stw r28,84(r31)
ffc15e7c: 38 60 00 00 li r3,0
ffc15e80: 93 bf 00 50 stw r29,80(r31)
return 0;
}
ffc15e84: 80 01 00 2c lwz r0,44(r1)
ffc15e88: 83 01 00 08 lwz r24,8(r1)
ffc15e8c: 7c 08 03 a6 mtlr r0
ffc15e90: 83 21 00 0c lwz r25,12(r1)
ffc15e94: 83 41 00 10 lwz r26,16(r1)
ffc15e98: 83 61 00 14 lwz r27,20(r1)
ffc15e9c: 83 81 00 18 lwz r28,24(r1)
ffc15ea0: 83 a1 00 1c lwz r29,28(r1)
ffc15ea4: 83 c1 00 20 lwz r30,32(r1)
ffc15ea8: 83 e1 00 24 lwz r31,36(r1)
ffc15eac: 38 21 00 28 addi r1,r1,40
ffc15eb0: 4e 80 00 20 blr
ffc155e4 <IMFS_memfile_get_block_pointer>:
#endif
IMFS_jnode_t *the_jnode,
unsigned int block,
int malloc_it
)
{
ffc155e4: 94 21 ff e8 stwu r1,-24(r1)
ffc155e8: 7c 08 02 a6 mflr r0
ffc155ec: 93 e1 00 14 stw r31,20(r1)
/*
* Perform internal consistency checks
*/
assert( the_jnode );
ffc155f0: 7c 7f 1b 79 mr. r31,r3
#endif
IMFS_jnode_t *the_jnode,
unsigned int block,
int malloc_it
)
{
ffc155f4: 93 c1 00 10 stw r30,16(r1)
ffc155f8: 7c 9e 23 78 mr r30,r4
ffc155fc: 90 01 00 1c stw r0,28(r1)
ffc15600: 93 81 00 08 stw r28,8(r1)
ffc15604: 93 a1 00 0c stw r29,12(r1)
/*
* Perform internal consistency checks
*/
assert( the_jnode );
ffc15608: 40 a2 00 24 bne+ ffc1562c <IMFS_memfile_get_block_pointer+0x48>
ffc1560c: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc15610: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc15614: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc15618: 38 63 4e 46 addi r3,r3,20038 <== NOT EXECUTED
ffc1561c: 38 a5 4d 84 addi r5,r5,19844 <== NOT EXECUTED
ffc15620: 38 c6 4e 8c addi r6,r6,20108 <== NOT EXECUTED
ffc15624: 38 80 03 88 li r4,904 <== NOT EXECUTED
ffc15628: 48 00 00 2c b ffc15654 <IMFS_memfile_get_block_pointer+0x70><== NOT EXECUTED
if ( !the_jnode )
return NULL;
assert( the_jnode->type == IMFS_MEMORY_FILE );
ffc1562c: 80 1f 00 4c lwz r0,76(r31)
ffc15630: 2f 80 00 05 cmpwi cr7,r0,5
ffc15634: 41 be 00 24 beq+ cr7,ffc15658 <IMFS_memfile_get_block_pointer+0x74>
ffc15638: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc1563c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc15640: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc15644: 38 63 4e 46 addi r3,r3,20038 <== NOT EXECUTED
ffc15648: 38 a5 4d 84 addi r5,r5,19844 <== NOT EXECUTED
ffc1564c: 38 c6 4e 96 addi r6,r6,20118 <== NOT EXECUTED
ffc15650: 38 80 03 8c li r4,908 <== NOT EXECUTED
ffc15654: 4b fe fe ed bl ffc05540 <__assert_func> <== NOT EXECUTED
/*
* Is the block number in the simple indirect portion?
*/
if ( my_block <= LAST_INDIRECT ) {
ffc15658: 3d 20 00 00 lis r9,0
ffc1565c: 81 29 27 68 lwz r9,10088(r9)
ffc15660: 55 29 f0 be rlwinm r9,r9,30,2,31
ffc15664: 38 09 ff ff addi r0,r9,-1
ffc15668: 7f 84 00 40 cmplw cr7,r4,r0
ffc1566c: 41 9d 00 40 bgt- cr7,ffc156ac <IMFS_memfile_get_block_pointer+0xc8>
fprintf(stdout, "(s %d) ", block );
fflush(stdout);
#endif
p = info->indirect;
if ( malloc_it ) {
ffc15670: 2f 05 00 00 cmpwi cr6,r5,0
if ( my_block <= LAST_INDIRECT ) {
#if 0
fprintf(stdout, "(s %d) ", block );
fflush(stdout);
#endif
p = info->indirect;
ffc15674: 80 1f 00 58 lwz r0,88(r31)
ffc15678: 2f 80 00 00 cmpwi cr7,r0,0
if ( malloc_it ) {
ffc1567c: 41 9a 00 20 beq- cr6,ffc1569c <IMFS_memfile_get_block_pointer+0xb8>
if ( !p ) {
ffc15680: 40 be 00 14 bne+ cr7,ffc15694 <IMFS_memfile_get_block_pointer+0xb0>
p = memfile_alloc_block();
ffc15684: 4b ff ff 1d bl ffc155a0 <memfile_alloc_block>
if ( !p )
ffc15688: 2c 03 00 00 cmpwi r3,0
ffc1568c: 41 82 01 78 beq- ffc15804 <IMFS_memfile_get_block_pointer+0x220>
return 0;
info->indirect = p;
ffc15690: 90 7f 00 58 stw r3,88(r31)
}
return &info->indirect[ my_block ];
ffc15694: 80 7f 00 58 lwz r3,88(r31)
ffc15698: 48 00 01 60 b ffc157f8 <IMFS_memfile_get_block_pointer+0x214>
}
if ( !p )
ffc1569c: 41 9e 01 68 beq- cr7,ffc15804 <IMFS_memfile_get_block_pointer+0x220>
return 0;
return &info->indirect[ my_block ];
ffc156a0: 54 9e 10 3a rlwinm r30,r4,2,0,29
ffc156a4: 7c 60 f2 14 add r3,r0,r30
ffc156a8: 48 00 01 60 b ffc15808 <IMFS_memfile_get_block_pointer+0x224>
/*
* Is the block number in the doubly indirect portion?
*/
if ( my_block <= LAST_DOUBLY_INDIRECT ) {
ffc156ac: 39 69 00 01 addi r11,r9,1 <== NOT EXECUTED
ffc156b0: 7d 6b 49 d6 mullw r11,r11,r9 <== NOT EXECUTED
ffc156b4: 38 0b ff ff addi r0,r11,-1 <== NOT EXECUTED
ffc156b8: 7f 84 00 40 cmplw cr7,r4,r0 <== NOT EXECUTED
ffc156bc: 41 9d 00 80 bgt- cr7,ffc1573c <IMFS_memfile_get_block_pointer+0x158><== NOT EXECUTED
#if 0
fprintf(stdout, "(d %d) ", block );
fflush(stdout);
#endif
my_block -= FIRST_DOUBLY_INDIRECT;
ffc156c0: 7f c9 20 50 subf r30,r9,r4 <== NOT EXECUTED
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
p = info->doubly_indirect;
ffc156c4: 81 7f 00 5c lwz r11,92(r31) <== NOT EXECUTED
fflush(stdout);
#endif
my_block -= FIRST_DOUBLY_INDIRECT;
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
ffc156c8: 7f be 4b 96 divwu r29,r30,r9 <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
p = info->doubly_indirect;
if ( malloc_it ) {
ffc156cc: 2f 05 00 00 cmpwi cr6,r5,0 <== NOT EXECUTED
fflush(stdout);
#endif
my_block -= FIRST_DOUBLY_INDIRECT;
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
ffc156d0: 7d 3d 49 d6 mullw r9,r29,r9 <== NOT EXECUTED
ffc156d4: 2f 8b 00 00 cmpwi cr7,r11,0 <== NOT EXECUTED
ffc156d8: 7f c9 f0 50 subf r30,r9,r30 <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
p = info->doubly_indirect;
if ( malloc_it ) {
ffc156dc: 41 9a 00 40 beq- cr6,ffc1571c <IMFS_memfile_get_block_pointer+0x138><== NOT EXECUTED
if ( !p ) {
ffc156e0: 40 be 00 14 bne+ cr7,ffc156f4 <IMFS_memfile_get_block_pointer+0x110><== NOT EXECUTED
p = memfile_alloc_block();
ffc156e4: 4b ff fe bd bl ffc155a0 <memfile_alloc_block> <== NOT EXECUTED
if ( !p )
ffc156e8: 7c 6b 1b 79 mr. r11,r3 <== NOT EXECUTED
ffc156ec: 41 82 01 18 beq- ffc15804 <IMFS_memfile_get_block_pointer+0x220><== NOT EXECUTED
return 0;
info->doubly_indirect = p;
ffc156f0: 91 7f 00 5c stw r11,92(r31) <== NOT EXECUTED
}
p1 = (block_p *)p[ doubly ];
ffc156f4: 57 bd 10 3a rlwinm r29,r29,2,0,29 <== NOT EXECUTED
ffc156f8: 7c 6b e8 2e lwzx r3,r11,r29 <== NOT EXECUTED
ffc156fc: 7f ab ea 14 add r29,r11,r29 <== NOT EXECUTED
if ( !p1 ) {
ffc15700: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc15704: 40 be 00 f4 bne+ cr7,ffc157f8 <IMFS_memfile_get_block_pointer+0x214><== NOT EXECUTED
p1 = memfile_alloc_block();
ffc15708: 4b ff fe 99 bl ffc155a0 <memfile_alloc_block> <== NOT EXECUTED
if ( !p1 )
ffc1570c: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED
ffc15710: 41 82 00 f4 beq- ffc15804 <IMFS_memfile_get_block_pointer+0x220><== NOT EXECUTED
return 0;
p[ doubly ] = (block_p) p1;
ffc15714: 90 7d 00 00 stw r3,0(r29) <== NOT EXECUTED
ffc15718: 48 00 00 e0 b ffc157f8 <IMFS_memfile_get_block_pointer+0x214><== NOT EXECUTED
}
return (block_p *)&p1[ singly ];
}
if ( !p )
ffc1571c: 41 be 00 e8 beq+ cr7,ffc15804 <IMFS_memfile_get_block_pointer+0x220><== NOT EXECUTED
return 0;
p = (block_p *)p[ doubly ];
ffc15720: 57 bd 10 3a rlwinm r29,r29,2,0,29 <== NOT EXECUTED
ffc15724: 7c 0b e8 2e lwzx r0,r11,r29 <== 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 ];
ffc15728: 57 de 10 3a rlwinm r30,r30,2,0,29 <== NOT EXECUTED
if ( !p )
return 0;
p = (block_p *)p[ doubly ];
if ( !p )
ffc1572c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
#if 0
fprintf(stdout, "(d %d %d %d %d %p %p) ", block, my_block, doubly,
singly, p, &p[singly] );
fflush(stdout);
#endif
return (block_p *)&p[ singly ];
ffc15730: 7c 60 f2 14 add r3,r0,r30 <== NOT EXECUTED
if ( !p )
return 0;
p = (block_p *)p[ doubly ];
if ( !p )
ffc15734: 40 be 00 d4 bne+ cr7,ffc15808 <IMFS_memfile_get_block_pointer+0x224><== NOT EXECUTED
ffc15738: 48 00 00 cc b ffc15804 <IMFS_memfile_get_block_pointer+0x220><== NOT EXECUTED
#endif
/*
* Is the block number in the triply indirect portion?
*/
if ( my_block <= LAST_TRIPLY_INDIRECT ) {
ffc1573c: 39 4b 00 01 addi r10,r11,1 <== NOT EXECUTED
ffc15740: 7d 4a 49 d6 mullw r10,r10,r9 <== NOT EXECUTED
ffc15744: 38 0a ff ff addi r0,r10,-1 <== NOT EXECUTED
ffc15748: 7f 84 00 40 cmplw cr7,r4,r0 <== NOT EXECUTED
ffc1574c: 41 9d 00 b8 bgt- cr7,ffc15804 <IMFS_memfile_get_block_pointer+0x220><== NOT EXECUTED
my_block -= FIRST_TRIPLY_INDIRECT;
ffc15750: 7f cb 20 50 subf r30,r11,r4 <== NOT EXECUTED
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;
p = info->triply_indirect;
ffc15754: 81 7f 00 60 lwz r11,96(r31) <== NOT EXECUTED
*/
if ( my_block <= LAST_TRIPLY_INDIRECT ) {
my_block -= FIRST_TRIPLY_INDIRECT;
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
ffc15758: 7c 1e 4b 96 divwu r0,r30,r9 <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;
ffc1575c: 7f a0 4b 96 divwu r29,r0,r9 <== NOT EXECUTED
doubly %= IMFS_MEMFILE_BLOCK_SLOTS;
p = info->triply_indirect;
if ( malloc_it ) {
ffc15760: 2f 05 00 00 cmpwi cr6,r5,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;
ffc15764: 7f 9d 49 d6 mullw r28,r29,r9 <== NOT EXECUTED
*/
if ( my_block <= LAST_TRIPLY_INDIRECT ) {
my_block -= FIRST_TRIPLY_INDIRECT;
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
ffc15768: 7d 20 49 d6 mullw r9,r0,r9 <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;
doubly %= IMFS_MEMFILE_BLOCK_SLOTS;
ffc1576c: 7f 9c 00 50 subf r28,r28,r0 <== NOT EXECUTED
*/
if ( my_block <= LAST_TRIPLY_INDIRECT ) {
my_block -= FIRST_TRIPLY_INDIRECT;
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
ffc15770: 7f c9 f0 50 subf r30,r9,r30 <== NOT EXECUTED
ffc15774: 2f 8b 00 00 cmpwi cr7,r11,0 <== NOT EXECUTED
triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;
doubly %= IMFS_MEMFILE_BLOCK_SLOTS;
p = info->triply_indirect;
if ( malloc_it ) {
ffc15778: 41 9a 00 64 beq- cr6,ffc157dc <IMFS_memfile_get_block_pointer+0x1f8><== NOT EXECUTED
if ( !p ) {
ffc1577c: 40 be 00 14 bne+ cr7,ffc15790 <IMFS_memfile_get_block_pointer+0x1ac><== NOT EXECUTED
p = memfile_alloc_block();
ffc15780: 4b ff fe 21 bl ffc155a0 <memfile_alloc_block> <== NOT EXECUTED
if ( !p )
ffc15784: 7c 6b 1b 79 mr. r11,r3 <== NOT EXECUTED
ffc15788: 41 82 00 7c beq- ffc15804 <IMFS_memfile_get_block_pointer+0x220><== NOT EXECUTED
return 0;
info->triply_indirect = p;
ffc1578c: 91 7f 00 60 stw r11,96(r31) <== NOT EXECUTED
}
p1 = (block_p *) p[ triply ];
ffc15790: 57 bd 10 3a rlwinm r29,r29,2,0,29 <== NOT EXECUTED
ffc15794: 7d 2b e8 2e lwzx r9,r11,r29 <== NOT EXECUTED
ffc15798: 7f ab ea 14 add r29,r11,r29 <== NOT EXECUTED
if ( !p1 ) {
ffc1579c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc157a0: 40 be 00 14 bne+ cr7,ffc157b4 <IMFS_memfile_get_block_pointer+0x1d0><== NOT EXECUTED
p1 = memfile_alloc_block();
ffc157a4: 4b ff fd fd bl ffc155a0 <memfile_alloc_block> <== NOT EXECUTED
if ( !p1 )
ffc157a8: 7c 69 1b 79 mr. r9,r3 <== NOT EXECUTED
ffc157ac: 41 82 00 58 beq- ffc15804 <IMFS_memfile_get_block_pointer+0x220><== NOT EXECUTED
return 0;
p[ triply ] = (block_p) p1;
ffc157b0: 91 3d 00 00 stw r9,0(r29) <== NOT EXECUTED
}
p2 = (block_p *)p1[ doubly ];
ffc157b4: 57 9c 10 3a rlwinm r28,r28,2,0,29 <== NOT EXECUTED
ffc157b8: 7c 69 e0 2e lwzx r3,r9,r28 <== NOT EXECUTED
ffc157bc: 7f 89 e2 14 add r28,r9,r28 <== NOT EXECUTED
if ( !p2 ) {
ffc157c0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc157c4: 40 be 00 34 bne+ cr7,ffc157f8 <IMFS_memfile_get_block_pointer+0x214><== NOT EXECUTED
p2 = memfile_alloc_block();
ffc157c8: 4b ff fd d9 bl ffc155a0 <memfile_alloc_block> <== NOT EXECUTED
if ( !p2 )
ffc157cc: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED
ffc157d0: 41 82 00 34 beq- ffc15804 <IMFS_memfile_get_block_pointer+0x220><== NOT EXECUTED
return 0;
p1[ doubly ] = (block_p) p2;
ffc157d4: 90 7c 00 00 stw r3,0(r28) <== NOT EXECUTED
ffc157d8: 48 00 00 20 b ffc157f8 <IMFS_memfile_get_block_pointer+0x214><== NOT EXECUTED
}
return (block_p *)&p2[ singly ];
}
if ( !p )
ffc157dc: 41 be 00 28 beq+ cr7,ffc15804 <IMFS_memfile_get_block_pointer+0x220><== 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 ];
ffc157e0: 57 bd 10 3a rlwinm r29,r29,2,0,29 <== NOT EXECUTED
ffc157e4: 7d 2b e8 2e lwzx r9,r11,r29 <== NOT EXECUTED
if ( !p1 )
ffc157e8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc157ec: 41 be 00 18 beq+ cr7,ffc15804 <IMFS_memfile_get_block_pointer+0x220><== NOT EXECUTED
p2 = (block_p *)p1[ doubly ];
if ( !p )
return 0;
return (block_p *)&p2[ singly ];
ffc157f0: 57 9c 10 3a rlwinm r28,r28,2,0,29 <== NOT EXECUTED
ffc157f4: 7c 69 e0 2e lwzx r3,r9,r28 <== NOT EXECUTED
ffc157f8: 57 de 10 3a rlwinm r30,r30,2,0,29
ffc157fc: 7c 63 f2 14 add r3,r3,r30
ffc15800: 48 00 00 08 b ffc15808 <IMFS_memfile_get_block_pointer+0x224>
ffc15804: 38 60 00 00 li r3,0 <== NOT EXECUTED
/*
* This means the requested block number is out of range.
*/
return 0;
}
ffc15808: 80 01 00 1c lwz r0,28(r1)
ffc1580c: 83 81 00 08 lwz r28,8(r1)
ffc15810: 7c 08 03 a6 mtlr r0
ffc15814: 83 a1 00 0c lwz r29,12(r1)
ffc15818: 83 c1 00 10 lwz r30,16(r1)
ffc1581c: 83 e1 00 14 lwz r31,20(r1)
ffc15820: 38 21 00 18 addi r1,r1,24
ffc15824: 4e 80 00 20 blr
ffc1640c <IMFS_memfile_read>:
IMFS_jnode_t *the_jnode,
off_t start,
unsigned char *destination,
unsigned int length
)
{
ffc1640c: 94 21 ff c8 stwu r1,-56(r1)
ffc16410: 7c 08 02 a6 mflr r0
ffc16414: 93 e1 00 34 stw r31,52(r1)
/*
* Perform internal consistency checks
*/
assert( the_jnode );
ffc16418: 7c 7f 1b 79 mr. r31,r3
IMFS_jnode_t *the_jnode,
off_t start,
unsigned char *destination,
unsigned int length
)
{
ffc1641c: 93 61 00 24 stw r27,36(r1)
ffc16420: 7c bb 2b 78 mr r27,r5
ffc16424: 93 81 00 28 stw r28,40(r1)
ffc16428: 7c dc 33 78 mr r28,r6
ffc1642c: 93 c1 00 30 stw r30,48(r1)
ffc16430: 7c fe 3b 78 mr r30,r7
ffc16434: 90 01 00 3c stw r0,60(r1)
ffc16438: 93 01 00 18 stw r24,24(r1)
ffc1643c: 93 21 00 1c stw r25,28(r1)
ffc16440: 93 41 00 20 stw r26,32(r1)
ffc16444: 93 a1 00 2c stw r29,44(r1)
/*
* Perform internal consistency checks
*/
assert( the_jnode );
ffc16448: 40 a2 00 28 bne+ ffc16470 <IMFS_memfile_read+0x64>
ffc1644c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc16450: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc16454: 38 a5 4d 84 addi r5,r5,19844 <== NOT EXECUTED
ffc16458: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc1645c: 38 63 4e 46 addi r3,r3,20038 <== NOT EXECUTED
ffc16460: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED
ffc16464: 38 c6 4e 8c addi r6,r6,20108 <== NOT EXECUTED
ffc16468: 38 80 02 4c li r4,588 <== NOT EXECUTED
ffc1646c: 48 00 00 34 b ffc164a0 <IMFS_memfile_read+0x94> <== NOT EXECUTED
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE ||
ffc16470: 81 3f 00 4c lwz r9,76(r31)
ffc16474: 38 09 ff fb addi r0,r9,-5
ffc16478: 2b 80 00 01 cmplwi cr7,r0,1
ffc1647c: 40 bd 00 28 ble+ cr7,ffc164a4 <IMFS_memfile_read+0x98>
ffc16480: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc16484: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc16488: 38 a5 4d 84 addi r5,r5,19844 <== NOT EXECUTED
ffc1648c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc16490: 38 63 4e 46 addi r3,r3,20038 <== NOT EXECUTED
ffc16494: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED
ffc16498: 38 c6 4f 00 addi r6,r6,20224 <== NOT EXECUTED
ffc1649c: 38 80 02 51 li r4,593 <== NOT EXECUTED
ffc164a0: 4b fe f0 a1 bl ffc05540 <__assert_func> <== NOT EXECUTED
/*
* Error checks on arguments
*/
assert( dest );
ffc164a4: 2f 87 00 00 cmpwi cr7,r7,0
ffc164a8: 40 be 00 28 bne+ cr7,ffc164d0 <IMFS_memfile_read+0xc4>
ffc164ac: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc164b0: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc164b4: 38 a5 4d 84 addi r5,r5,19844 <== NOT EXECUTED
ffc164b8: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc164bc: 38 63 4e 46 addi r3,r3,20038 <== NOT EXECUTED
ffc164c0: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED
ffc164c4: 38 c6 4f 4b addi r6,r6,20299 <== NOT EXECUTED
ffc164c8: 38 80 02 5a li r4,602 <== NOT EXECUTED
ffc164cc: 4b ff ff d4 b ffc164a0 <IMFS_memfile_read+0x94> <== NOT EXECUTED
/*
* If there is nothing to read, then quick exit.
*/
my_length = length;
if ( !my_length )
ffc164d0: 2f 88 00 00 cmpwi cr7,r8,0
ffc164d4: 40 be 00 18 bne+ cr7,ffc164ec <IMFS_memfile_read+0xe0>
rtems_set_errno_and_return_minus_one( EINVAL );
ffc164d8: 48 00 1a 79 bl ffc17f50 <__errno> <== NOT EXECUTED
ffc164dc: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc164e0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc164e4: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc164e8: 48 00 02 3c b ffc16724 <IMFS_memfile_read+0x318> <== NOT EXECUTED
/*
* Linear files (as created from a tar file are easier to handle
* than block files).
*/
if (the_jnode->type == IMFS_LINEAR_FILE) {
ffc164ec: 2f 89 00 06 cmpwi cr7,r9,6
ffc164f0: 40 be 00 60 bne+ cr7,ffc16550 <IMFS_memfile_read+0x144>
unsigned char *file_ptr;
file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;
if (my_length > (the_jnode->info.linearfile.size - start))
ffc164f4: 81 3f 00 50 lwz r9,80(r31) <== NOT EXECUTED
ffc164f8: 38 00 00 00 li r0,0 <== NOT EXECUTED
ffc164fc: 81 5f 00 54 lwz r10,84(r31) <== NOT EXECUTED
* than block files).
*/
if (the_jnode->type == IMFS_LINEAR_FILE) {
unsigned char *file_ptr;
file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;
ffc16500: 80 9f 00 58 lwz r4,88(r31) <== NOT EXECUTED
if (my_length > (the_jnode->info.linearfile.size - start))
ffc16504: 7d 9c 50 10 subfc r12,r28,r10 <== NOT EXECUTED
ffc16508: 7d 7b 49 10 subfe r11,r27,r9 <== NOT EXECUTED
ffc1650c: 7f 80 58 00 cmpw cr7,r0,r11 <== NOT EXECUTED
ffc16510: 41 bd 00 18 bgt+ cr7,ffc16528 <IMFS_memfile_read+0x11c> <== NOT EXECUTED
ffc16514: 40 9e 00 0c bne- cr7,ffc16520 <IMFS_memfile_read+0x114> <== NOT EXECUTED
ffc16518: 7f 88 60 40 cmplw cr7,r8,r12 <== NOT EXECUTED
ffc1651c: 41 bd 00 0c bgt+ cr7,ffc16528 <IMFS_memfile_read+0x11c> <== NOT EXECUTED
ffc16520: 7d 1d 43 78 mr r29,r8 <== NOT EXECUTED
ffc16524: 48 00 00 08 b ffc1652c <IMFS_memfile_read+0x120> <== NOT EXECUTED
my_length = the_jnode->info.linearfile.size - start;
ffc16528: 7f bc 50 50 subf r29,r28,r10 <== NOT EXECUTED
memcpy(dest, &file_ptr[start], my_length);
ffc1652c: 7c 84 e2 14 add r4,r4,r28 <== NOT EXECUTED
ffc16530: 7f a5 eb 78 mr r5,r29 <== NOT EXECUTED
ffc16534: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc16538: 48 00 26 01 bl ffc18b38 <memcpy> <== NOT EXECUTED
IMFS_update_atime( the_jnode );
ffc1653c: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED
ffc16540: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc16544: 4b fe f5 ad bl ffc05af0 <gettimeofday> <== NOT EXECUTED
return my_length;
ffc16548: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc1654c: 48 00 01 d0 b ffc1671c <IMFS_memfile_read+0x310> <== NOT EXECUTED
* If the last byte we are supposed to read is past the end of this
* in memory file, then shorten the length to read.
*/
last_byte = start + length;
if ( last_byte > the_jnode->info.file.size )
ffc16550: 80 1f 00 50 lwz r0,80(r31)
ffc16554: 39 20 00 00 li r9,0
ffc16558: 83 bf 00 54 lwz r29,84(r31)
ffc1655c: 7f 89 00 00 cmpw cr7,r9,r0
/*
* 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;
ffc16560: 7c c0 33 78 mr r0,r6
if ( last_byte > the_jnode->info.file.size )
ffc16564: 7d 28 32 14 add r9,r8,r6
ffc16568: 41 9d 00 18 bgt- cr7,ffc16580 <IMFS_memfile_read+0x174>
ffc1656c: 40 9e 00 0c bne- cr7,ffc16578 <IMFS_memfile_read+0x16c>
ffc16570: 7f 89 e8 40 cmplw cr7,r9,r29
ffc16574: 41 9d 00 0c bgt- cr7,ffc16580 <IMFS_memfile_read+0x174>
ffc16578: 7d 1d 43 78 mr r29,r8
ffc1657c: 48 00 00 08 b ffc16584 <IMFS_memfile_read+0x178>
my_length = the_jnode->info.file.size - start;
ffc16580: 7f a0 e8 50 subf r29,r0,r29
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc16584: 3d 20 00 00 lis r9,0
ffc16588: 83 49 27 68 lwz r26,10088(r9)
ffc1658c: 7f 63 db 78 mr r3,r27
ffc16590: 7f 84 e3 78 mr r4,r28
ffc16594: 7f 58 fe 70 srawi r24,r26,31
ffc16598: 7f 05 c3 78 mr r5,r24
ffc1659c: 7f 46 d3 78 mr r6,r26
ffc165a0: 48 00 bc 69 bl ffc22208 <__moddi3>
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc165a4: 7f 63 db 78 mr r3,r27
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc165a8: 7c 99 23 78 mr r25,r4
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc165ac: 7f 05 c3 78 mr r5,r24
ffc165b0: 7f 84 e3 78 mr r4,r28
ffc165b4: 7f 46 d3 78 mr r6,r26
ffc165b8: 48 00 b8 4d bl ffc21e04 <__divdi3>
if ( start_offset ) {
ffc165bc: 2f 99 00 00 cmpwi cr7,r25,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;
ffc165c0: 7c 98 23 78 mr r24,r4
if ( start_offset ) {
ffc165c4: 7f dc f3 78 mr r28,r30
ffc165c8: 3b 60 00 00 li r27,0
ffc165cc: 41 9e 00 70 beq- cr7,ffc1663c <IMFS_memfile_read+0x230>
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 );
ffc165d0: 7f e3 fb 78 mr r3,r31
ffc165d4: 38 a0 00 00 li r5,0
ffc165d8: 4b ff f0 0d bl ffc155e4 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
ffc165dc: 2c 03 00 00 cmpwi r3,0
ffc165e0: 40 a2 00 28 bne+ ffc16608 <IMFS_memfile_read+0x1fc>
ffc165e4: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc165e8: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc165ec: 38 a5 4d 84 addi r5,r5,19844 <== NOT EXECUTED
ffc165f0: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc165f4: 38 63 4e 46 addi r3,r3,20038 <== NOT EXECUTED
ffc165f8: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED
ffc165fc: 38 c6 4e c6 addi r6,r6,20166 <== NOT EXECUTED
ffc16600: 38 80 02 96 li r4,662 <== NOT EXECUTED
ffc16604: 4b ff fe 9c b ffc164a0 <IMFS_memfile_read+0x94> <== 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;
ffc16608: 7f 59 d0 50 subf r26,r25,r26
ffc1660c: 7f 9d d0 40 cmplw cr7,r29,r26
ffc16610: 7f bb eb 78 mr r27,r29
ffc16614: 40 9d 00 08 ble- cr7,ffc1661c <IMFS_memfile_read+0x210>
ffc16618: 7f 5b d3 78 mr r27,r26
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 );
ffc1661c: 80 83 00 00 lwz r4,0(r3)
ffc16620: 7f 65 db 78 mr r5,r27
ffc16624: 7f c3 f3 78 mr r3,r30
ffc16628: 7c 84 ca 14 add r4,r4,r25
ffc1662c: 48 00 25 0d bl ffc18b38 <memcpy>
dest += to_copy;
ffc16630: 7f 9e da 14 add r28,r30,r27
block++;
ffc16634: 3b 18 00 01 addi r24,r24,1
my_length -= to_copy;
ffc16638: 7f bb e8 50 subf r29,r27,r29
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc1663c: 3d 20 00 00 lis r9,0
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
ffc16640: 3b 49 27 68 addi r26,r9,10088
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc16644: 83 c9 27 68 lwz r30,10088(r9)
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
ffc16648: 48 00 00 60 b ffc166a8 <IMFS_memfile_read+0x29c>
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc1664c: 7f e3 fb 78 mr r3,r31
ffc16650: 7f 04 c3 78 mr r4,r24
ffc16654: 38 a0 00 00 li r5,0
ffc16658: 4b ff ef 8d bl ffc155e4 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
ffc1665c: 2c 03 00 00 cmpwi r3,0
ffc16660: 40 a2 00 28 bne+ ffc16688 <IMFS_memfile_read+0x27c>
ffc16664: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc16668: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc1666c: 38 a5 4d 84 addi r5,r5,19844 <== NOT EXECUTED
ffc16670: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc16674: 38 63 4e 46 addi r3,r3,20038 <== NOT EXECUTED
ffc16678: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED
ffc1667c: 38 c6 4e c6 addi r6,r6,20166 <== NOT EXECUTED
ffc16680: 38 80 02 a7 li r4,679 <== NOT EXECUTED
ffc16684: 4b ff fe 1c b ffc164a0 <IMFS_memfile_read+0x94> <== NOT EXECUTED
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], to_copy );
ffc16688: 80 83 00 00 lwz r4,0(r3)
ffc1668c: 7f c5 f3 78 mr r5,r30
ffc16690: 7f 83 e3 78 mr r3,r28
ffc16694: 48 00 24 a5 bl ffc18b38 <memcpy>
dest += to_copy;
ffc16698: 7f 9c f2 14 add r28,r28,r30
block++;
ffc1669c: 3b 18 00 01 addi r24,r24,1
my_length -= to_copy;
ffc166a0: 7f be e8 50 subf r29,r30,r29
copied += to_copy;
ffc166a4: 7f 7b f2 14 add r27,r27,r30
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
ffc166a8: 80 1a 00 00 lwz r0,0(r26)
ffc166ac: 7f 9d 00 40 cmplw cr7,r29,r0
ffc166b0: 40 9c ff 9c bge+ cr7,ffc1664c <IMFS_memfile_read+0x240>
* Phase 3: possibly the first part of one block
*/
assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );
if ( my_length ) {
ffc166b4: 2f 9d 00 00 cmpwi cr7,r29,0
ffc166b8: 41 9e 00 54 beq- cr7,ffc1670c <IMFS_memfile_read+0x300>
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc166bc: 7f 04 c3 78 mr r4,r24
ffc166c0: 7f e3 fb 78 mr r3,r31
ffc166c4: 38 a0 00 00 li r5,0
ffc166c8: 4b ff ef 1d bl ffc155e4 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
ffc166cc: 2c 03 00 00 cmpwi r3,0
ffc166d0: 40 a2 00 28 bne+ ffc166f8 <IMFS_memfile_read+0x2ec>
ffc166d4: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc166d8: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc166dc: 38 a5 4d 84 addi r5,r5,19844 <== NOT EXECUTED
ffc166e0: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc166e4: 38 63 4e 46 addi r3,r3,20038 <== NOT EXECUTED
ffc166e8: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED
ffc166ec: 38 c6 4e c6 addi r6,r6,20166 <== NOT EXECUTED
ffc166f0: 38 80 02 b9 li r4,697 <== NOT EXECUTED
ffc166f4: 4b ff fd ac b ffc164a0 <IMFS_memfile_read+0x94> <== NOT EXECUTED
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], my_length );
ffc166f8: 80 83 00 00 lwz r4,0(r3)
ffc166fc: 7f a5 eb 78 mr r5,r29
ffc16700: 7f 83 e3 78 mr r3,r28
ffc16704: 48 00 24 35 bl ffc18b38 <memcpy>
copied += my_length;
ffc16708: 7f 7d da 14 add r27,r29,r27
}
IMFS_update_atime( the_jnode );
ffc1670c: 38 61 00 08 addi r3,r1,8
ffc16710: 38 80 00 00 li r4,0
ffc16714: 4b fe f3 dd bl ffc05af0 <gettimeofday>
return copied;
ffc16718: 7f 63 db 78 mr r3,r27
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], my_length );
copied += my_length;
}
IMFS_update_atime( the_jnode );
ffc1671c: 80 01 00 08 lwz r0,8(r1)
ffc16720: 90 1f 00 40 stw r0,64(r31)
return copied;
}
ffc16724: 80 01 00 3c lwz r0,60(r1)
ffc16728: 83 01 00 18 lwz r24,24(r1)
ffc1672c: 7c 08 03 a6 mtlr r0
ffc16730: 83 21 00 1c lwz r25,28(r1)
ffc16734: 83 41 00 20 lwz r26,32(r1)
ffc16738: 83 61 00 24 lwz r27,36(r1)
ffc1673c: 83 81 00 28 lwz r28,40(r1)
ffc16740: 83 a1 00 2c lwz r29,44(r1)
ffc16744: 83 c1 00 30 lwz r30,48(r1)
ffc16748: 83 e1 00 34 lwz r31,52(r1)
ffc1674c: 38 21 00 38 addi r1,r1,56
ffc16750: 4e 80 00 20 blr
ffc15944 <IMFS_memfile_remove>:
*/
int IMFS_memfile_remove(
IMFS_jnode_t *the_jnode
)
{
ffc15944: 94 21 ff d8 stwu r1,-40(r1)
ffc15948: 7c 08 02 a6 mflr r0
ffc1594c: 93 e1 00 24 stw r31,36(r1)
/*
* Perform internal consistency checks
*/
assert( the_jnode );
ffc15950: 7c 7f 1b 79 mr. r31,r3
*/
int IMFS_memfile_remove(
IMFS_jnode_t *the_jnode
)
{
ffc15954: 90 01 00 2c stw r0,44(r1)
ffc15958: 93 21 00 0c stw r25,12(r1)
ffc1595c: 93 41 00 10 stw r26,16(r1)
ffc15960: 93 61 00 14 stw r27,20(r1)
ffc15964: 93 81 00 18 stw r28,24(r1)
ffc15968: 93 a1 00 1c stw r29,28(r1)
ffc1596c: 93 c1 00 20 stw r30,32(r1)
/*
* Perform internal consistency checks
*/
assert( the_jnode );
ffc15970: 40 a2 00 28 bne+ ffc15998 <IMFS_memfile_remove+0x54>
ffc15974: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc15978: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc1597c: 38 a5 4d 84 addi r5,r5,19844 <== NOT EXECUTED
ffc15980: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc15984: 38 63 4e 46 addi r3,r3,20038 <== NOT EXECUTED
ffc15988: 38 a5 00 5c addi r5,r5,92 <== NOT EXECUTED
ffc1598c: 38 c6 4e 8c addi r6,r6,20108 <== NOT EXECUTED
ffc15990: 38 80 01 ee li r4,494 <== NOT EXECUTED
ffc15994: 48 00 00 30 b ffc159c4 <IMFS_memfile_remove+0x80> <== NOT EXECUTED
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
ffc15998: 80 1f 00 4c lwz r0,76(r31)
ffc1599c: 2f 80 00 05 cmpwi cr7,r0,5
ffc159a0: 41 be 00 28 beq+ cr7,ffc159c8 <IMFS_memfile_remove+0x84>
ffc159a4: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc159a8: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc159ac: 38 a5 4d 84 addi r5,r5,19844 <== NOT EXECUTED
ffc159b0: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc159b4: 38 63 4e 46 addi r3,r3,20038 <== NOT EXECUTED
ffc159b8: 38 a5 00 5c addi r5,r5,92 <== NOT EXECUTED
ffc159bc: 38 c6 4e 96 addi r6,r6,20118 <== NOT EXECUTED
ffc159c0: 38 80 01 f2 li r4,498 <== NOT EXECUTED
ffc159c4: 4b fe fb 7d bl ffc05540 <__assert_func> <== NOT EXECUTED
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
ffc159c8: 80 1f 00 58 lwz r0,88(r31)
/*
* 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;
ffc159cc: 3d 20 00 00 lis r9,0
ffc159d0: 83 c9 27 68 lwz r30,10088(r9)
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
ffc159d4: 2f 80 00 00 cmpwi cr7,r0,0
/*
* 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;
ffc159d8: 57 de f0 be rlwinm r30,r30,30,2,31
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
ffc159dc: 41 9e 00 10 beq- cr7,ffc159ec <IMFS_memfile_remove+0xa8>
if ( info->indirect ) {
memfile_free_blocks_in_table( &info->indirect, to_free );
ffc159e0: 38 7f 00 58 addi r3,r31,88
ffc159e4: 7f c4 f3 78 mr r4,r30
ffc159e8: 4b ff fe 41 bl ffc15828 <memfile_free_blocks_in_table>
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
ffc159ec: 80 1f 00 5c lwz r0,92(r31)
ffc159f0: 2f 80 00 00 cmpwi cr7,r0,0
ffc159f4: 41 9e 00 54 beq- cr7,ffc15a48 <IMFS_memfile_remove+0x104>
memfile_free_blocks_in_table( &info->indirect, to_free );
}
if ( info->doubly_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
ffc159f8: 3f 80 00 00 lis r28,0 <== NOT EXECUTED
ffc159fc: 3b 9c 27 68 addi r28,r28,10088 <== NOT EXECUTED
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
ffc15a00: 3b a0 00 00 li r29,0 <== NOT EXECUTED
ffc15a04: 48 00 00 28 b ffc15a2c <IMFS_memfile_remove+0xe8> <== NOT EXECUTED
}
if ( info->doubly_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
if ( info->doubly_indirect[i] ) {
ffc15a08: 80 7f 00 5c lwz r3,92(r31) <== NOT EXECUTED
ffc15a0c: 57 a0 10 3a rlwinm r0,r29,2,0,29 <== NOT EXECUTED
ffc15a10: 7d 23 00 2e lwzx r9,r3,r0 <== NOT EXECUTED
ffc15a14: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc15a18: 41 9e 00 10 beq- cr7,ffc15a28 <IMFS_memfile_remove+0xe4><== NOT EXECUTED
memfile_free_blocks_in_table(
ffc15a1c: 7c 63 02 14 add r3,r3,r0 <== NOT EXECUTED
ffc15a20: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED
ffc15a24: 4b ff fe 05 bl ffc15828 <memfile_free_blocks_in_table><== NOT EXECUTED
memfile_free_blocks_in_table( &info->indirect, to_free );
}
if ( info->doubly_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
ffc15a28: 3b bd 00 01 addi r29,r29,1 <== NOT EXECUTED
ffc15a2c: 80 1c 00 00 lwz r0,0(r28) <== NOT EXECUTED
ffc15a30: 54 00 f0 be rlwinm r0,r0,30,2,31 <== NOT EXECUTED
ffc15a34: 7f 9d 00 40 cmplw cr7,r29,r0 <== NOT EXECUTED
ffc15a38: 41 9c ff d0 blt+ cr7,ffc15a08 <IMFS_memfile_remove+0xc4><== 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 );
ffc15a3c: 38 7f 00 5c addi r3,r31,92 <== NOT EXECUTED
ffc15a40: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED
ffc15a44: 4b ff fd e5 bl ffc15828 <memfile_free_blocks_in_table><== NOT EXECUTED
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
ffc15a48: 80 1f 00 60 lwz r0,96(r31)
ffc15a4c: 2f 80 00 00 cmpwi cr7,r0,0
ffc15a50: 41 9e 00 90 beq- cr7,ffc15ae0 <IMFS_memfile_remove+0x19c>
memfile_free_blocks_in_table( &info->doubly_indirect, to_free );
}
if ( info->triply_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
ffc15a54: 3f 40 00 00 lis r26,0 <== NOT EXECUTED
ffc15a58: 3b 5a 27 68 addi r26,r26,10088 <== NOT EXECUTED
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
ffc15a5c: 3b a0 00 00 li r29,0 <== NOT EXECUTED
ffc15a60: 48 00 00 64 b ffc15ac4 <IMFS_memfile_remove+0x180> <== NOT EXECUTED
}
if ( info->triply_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
p = (block_p *) info->triply_indirect[i];
ffc15a64: 81 3f 00 60 lwz r9,96(r31) <== NOT EXECUTED
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
ffc15a68: 57 b9 10 3a rlwinm r25,r29,2,0,29 <== NOT EXECUTED
}
if ( info->triply_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
p = (block_p *) info->triply_indirect[i];
ffc15a6c: 7f 89 c8 2e lwzx r28,r9,r25 <== NOT EXECUTED
if ( !p ) /* ensure we have a valid pointer */
ffc15a70: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED
ffc15a74: 41 9e 00 60 beq- cr7,ffc15ad4 <IMFS_memfile_remove+0x190><== NOT EXECUTED
ffc15a78: 3b 60 00 00 li r27,0 <== NOT EXECUTED
ffc15a7c: 48 00 00 24 b ffc15aa0 <IMFS_memfile_remove+0x15c> <== NOT EXECUTED
break;
for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {
if ( p[j] ) {
ffc15a80: 80 1c 00 00 lwz r0,0(r28) <== NOT EXECUTED
ffc15a84: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc15a88: 41 9e 00 10 beq- cr7,ffc15a98 <IMFS_memfile_remove+0x154><== NOT EXECUTED
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
ffc15a8c: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED
ffc15a90: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED
ffc15a94: 4b ff fd 95 bl ffc15828 <memfile_free_blocks_in_table><== 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++ ) {
ffc15a98: 3b 7b 00 01 addi r27,r27,1 <== NOT EXECUTED
ffc15a9c: 3b 9c 00 04 addi r28,r28,4 <== NOT EXECUTED
ffc15aa0: 80 1a 00 00 lwz r0,0(r26) <== NOT EXECUTED
ffc15aa4: 54 00 f0 be rlwinm r0,r0,30,2,31 <== NOT EXECUTED
ffc15aa8: 7f 9b 00 40 cmplw cr7,r27,r0 <== NOT EXECUTED
ffc15aac: 41 9c ff d4 blt+ cr7,ffc15a80 <IMFS_memfile_remove+0x13c><== NOT EXECUTED
if ( p[j] ) {
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
}
}
memfile_free_blocks_in_table(
ffc15ab0: 80 7f 00 60 lwz r3,96(r31) <== NOT EXECUTED
ffc15ab4: 7f c4 f3 78 mr r4,r30 <== 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++ ) {
ffc15ab8: 3b bd 00 01 addi r29,r29,1 <== NOT EXECUTED
for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {
if ( p[j] ) {
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
}
}
memfile_free_blocks_in_table(
ffc15abc: 7c 63 ca 14 add r3,r3,r25 <== NOT EXECUTED
ffc15ac0: 4b ff fd 69 bl ffc15828 <memfile_free_blocks_in_table><== 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++ ) {
ffc15ac4: 80 1a 00 00 lwz r0,0(r26) <== NOT EXECUTED
ffc15ac8: 54 00 f0 be rlwinm r0,r0,30,2,31 <== NOT EXECUTED
ffc15acc: 7f 9d 00 40 cmplw cr7,r29,r0 <== NOT EXECUTED
ffc15ad0: 41 9c ff 94 blt+ cr7,ffc15a64 <IMFS_memfile_remove+0x120><== NOT EXECUTED
}
}
memfile_free_blocks_in_table(
(block_p **)&info->triply_indirect[i], to_free );
}
memfile_free_blocks_in_table(
ffc15ad4: 38 7f 00 60 addi r3,r31,96 <== NOT EXECUTED
ffc15ad8: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED
ffc15adc: 4b ff fd 4d bl ffc15828 <memfile_free_blocks_in_table><== NOT EXECUTED
(block_p **)&info->triply_indirect, to_free );
}
return 0;
}
ffc15ae0: 80 01 00 2c lwz r0,44(r1)
ffc15ae4: 38 60 00 00 li r3,0
ffc15ae8: 83 21 00 0c lwz r25,12(r1)
ffc15aec: 7c 08 03 a6 mtlr r0
ffc15af0: 83 41 00 10 lwz r26,16(r1)
ffc15af4: 83 61 00 14 lwz r27,20(r1)
ffc15af8: 83 81 00 18 lwz r28,24(r1)
ffc15afc: 83 a1 00 1c lwz r29,28(r1)
ffc15b00: 83 c1 00 20 lwz r30,32(r1)
ffc15b04: 83 e1 00 24 lwz r31,36(r1)
ffc15b08: 38 21 00 28 addi r1,r1,40
ffc15b0c: 4e 80 00 20 blr
ffc158e0 <IMFS_memfile_remove_block>:
MEMFILE_STATIC int IMFS_memfile_remove_block(
IMFS_jnode_t *the_jnode,
unsigned int block
)
{
ffc158e0: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED
ffc158e4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
block_p *block_ptr;
block_p ptr;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc158e8: 38 a0 00 00 li r5,0 <== NOT EXECUTED
MEMFILE_STATIC int IMFS_memfile_remove_block(
IMFS_jnode_t *the_jnode,
unsigned int block
)
{
ffc158ec: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
block_p *block_ptr;
block_p ptr;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc158f0: 4b ff fc f5 bl ffc155e4 <IMFS_memfile_get_block_pointer><== NOT EXECUTED
assert( block_ptr );
ffc158f4: 7c 69 1b 79 mr. r9,r3 <== NOT EXECUTED
ffc158f8: 40 a2 00 28 bne+ ffc15920 <IMFS_memfile_remove_block+0x40><== NOT EXECUTED
ffc158fc: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc15900: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc15904: 38 a5 4d 84 addi r5,r5,19844 <== NOT EXECUTED
ffc15908: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc1590c: 38 63 4e 46 addi r3,r3,20038 <== NOT EXECUTED
ffc15910: 38 a5 00 40 addi r5,r5,64 <== NOT EXECUTED
ffc15914: 38 c6 4e c6 addi r6,r6,20166 <== NOT EXECUTED
ffc15918: 38 80 01 96 li r4,406 <== NOT EXECUTED
ffc1591c: 4b fe fc 25 bl ffc05540 <__assert_func> <== NOT EXECUTED
if ( block_ptr ) {
ptr = *block_ptr;
*block_ptr = 0;
ffc15920: 38 00 00 00 li r0,0 <== NOT EXECUTED
block_p ptr;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
if ( block_ptr ) {
ptr = *block_ptr;
ffc15924: 80 69 00 00 lwz r3,0(r9) <== NOT EXECUTED
*block_ptr = 0;
ffc15928: 90 09 00 00 stw r0,0(r9) <== NOT EXECUTED
memfile_free_block( ptr );
ffc1592c: 4b ff fc 45 bl ffc15570 <memfile_free_block> <== NOT EXECUTED
}
return 1;
}
ffc15930: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc15934: 38 60 00 01 li r3,1 <== NOT EXECUTED
ffc15938: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc1593c: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc15940: 4e 80 00 20 blr <== NOT EXECUTED
ffc15ff0 <IMFS_memfile_write>:
IMFS_jnode_t *the_jnode,
off_t start,
const unsigned char *source,
unsigned int length
)
{
ffc15ff0: 94 21 ff c8 stwu r1,-56(r1)
ffc15ff4: 7c 08 02 a6 mflr r0
ffc15ff8: 93 e1 00 34 stw r31,52(r1)
/*
* Perform internal consistency checks
*/
assert( the_jnode );
ffc15ffc: 7c 7f 1b 79 mr. r31,r3
IMFS_jnode_t *the_jnode,
off_t start,
const unsigned char *source,
unsigned int length
)
{
ffc16000: 93 61 00 24 stw r27,36(r1)
ffc16004: 7d 1b 43 78 mr r27,r8
ffc16008: 93 81 00 28 stw r28,40(r1)
ffc1600c: 7c fc 3b 78 mr r28,r7
ffc16010: 93 a1 00 2c stw r29,44(r1)
ffc16014: 7c bd 2b 78 mr r29,r5
ffc16018: 93 c1 00 30 stw r30,48(r1)
ffc1601c: 7c de 33 78 mr r30,r6
ffc16020: 90 01 00 3c stw r0,60(r1)
ffc16024: 93 01 00 18 stw r24,24(r1)
ffc16028: 93 21 00 1c stw r25,28(r1)
ffc1602c: 93 41 00 20 stw r26,32(r1)
/*
* Perform internal consistency checks
*/
assert( the_jnode );
ffc16030: 40 a2 00 28 bne+ ffc16058 <IMFS_memfile_write+0x68>
ffc16034: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc16038: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc1603c: 38 a5 4d 84 addi r5,r5,19844 <== NOT EXECUTED
ffc16040: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc16044: 38 63 4e 46 addi r3,r3,20038 <== NOT EXECUTED
ffc16048: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED
ffc1604c: 38 c6 4e 8c addi r6,r6,20108 <== NOT EXECUTED
ffc16050: 38 80 02 e3 li r4,739 <== NOT EXECUTED
ffc16054: 48 00 00 30 b ffc16084 <IMFS_memfile_write+0x94> <== NOT EXECUTED
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
ffc16058: 80 1f 00 4c lwz r0,76(r31)
ffc1605c: 2f 80 00 05 cmpwi cr7,r0,5
ffc16060: 41 be 00 28 beq+ cr7,ffc16088 <IMFS_memfile_write+0x98>
ffc16064: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc16068: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc1606c: 38 a5 4d 84 addi r5,r5,19844 <== NOT EXECUTED
ffc16070: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc16074: 38 63 4e 46 addi r3,r3,20038 <== NOT EXECUTED
ffc16078: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED
ffc1607c: 38 c6 4e 96 addi r6,r6,20118 <== NOT EXECUTED
ffc16080: 38 80 02 e7 li r4,743 <== NOT EXECUTED
ffc16084: 4b fe f4 bd bl ffc05540 <__assert_func> <== NOT EXECUTED
/*
* Error check arguments
*/
assert( source );
ffc16088: 2f 87 00 00 cmpwi cr7,r7,0
ffc1608c: 40 be 00 28 bne+ cr7,ffc160b4 <IMFS_memfile_write+0xc4>
ffc16090: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc16094: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc16098: 38 a5 4d 84 addi r5,r5,19844 <== NOT EXECUTED
ffc1609c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc160a0: 38 63 4e 46 addi r3,r3,20038 <== NOT EXECUTED
ffc160a4: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED
ffc160a8: 38 c6 4e d0 addi r6,r6,20176 <== NOT EXECUTED
ffc160ac: 38 80 02 ef li r4,751 <== NOT EXECUTED
ffc160b0: 4b ff ff d4 b ffc16084 <IMFS_memfile_write+0x94> <== NOT EXECUTED
/*
* If there is nothing to write, then quick exit.
*/
my_length = length;
if ( !my_length )
ffc160b4: 2f 88 00 00 cmpwi cr7,r8,0
ffc160b8: 40 be 00 10 bne+ cr7,ffc160c8 <IMFS_memfile_write+0xd8>
rtems_set_errno_and_return_minus_one( EINVAL );
ffc160bc: 48 00 1e 95 bl ffc17f50 <__errno> <== NOT EXECUTED
ffc160c0: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc160c4: 48 00 00 40 b ffc16104 <IMFS_memfile_write+0x114> <== NOT EXECUTED
* If the last byte we are supposed to write is past the end of this
* in memory file, then extend the length.
*/
last_byte = start + length;
if ( last_byte > the_jnode->info.file.size ) {
ffc160c8: 80 1f 00 50 lwz r0,80(r31)
ffc160cc: 7c c8 32 14 add r6,r8,r6
ffc160d0: 2f 80 00 00 cmpwi cr7,r0,0
ffc160d4: 41 9c 00 14 blt- cr7,ffc160e8 <IMFS_memfile_write+0xf8>
ffc160d8: 40 be 00 38 bne+ cr7,ffc16110 <IMFS_memfile_write+0x120>
ffc160dc: 80 1f 00 54 lwz r0,84(r31)
ffc160e0: 7f 80 30 40 cmplw cr7,r0,r6
ffc160e4: 40 bc 00 2c bge+ cr7,ffc16110 <IMFS_memfile_write+0x120>
status = IMFS_memfile_extend( the_jnode, last_byte );
ffc160e8: 7f e3 fb 78 mr r3,r31
ffc160ec: 38 a0 00 00 li r5,0
ffc160f0: 4b ff fc 01 bl ffc15cf0 <IMFS_memfile_extend>
if ( status )
ffc160f4: 2f 83 00 00 cmpwi cr7,r3,0
ffc160f8: 41 be 00 18 beq+ cr7,ffc16110 <IMFS_memfile_write+0x120>
rtems_set_errno_and_return_minus_one( ENOSPC );
ffc160fc: 48 00 1e 55 bl ffc17f50 <__errno> <== NOT EXECUTED
ffc16100: 38 00 00 1c li r0,28 <== NOT EXECUTED
ffc16104: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc16108: 3b 40 ff ff li r26,-1 <== NOT EXECUTED
ffc1610c: 48 00 01 a0 b ffc162ac <IMFS_memfile_write+0x2bc> <== NOT EXECUTED
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc16110: 3d 20 00 00 lis r9,0
ffc16114: 83 49 27 68 lwz r26,10088(r9)
ffc16118: 7f c4 f3 78 mr r4,r30
ffc1611c: 7f a3 eb 78 mr r3,r29
ffc16120: 7f 58 fe 70 srawi r24,r26,31
ffc16124: 7f 05 c3 78 mr r5,r24
ffc16128: 7f 46 d3 78 mr r6,r26
ffc1612c: 48 00 c0 dd bl ffc22208 <__moddi3>
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc16130: 7f a3 eb 78 mr r3,r29
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc16134: 7c 99 23 78 mr r25,r4
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc16138: 7f 05 c3 78 mr r5,r24
ffc1613c: 7f c4 f3 78 mr r4,r30
ffc16140: 7f 46 d3 78 mr r6,r26
ffc16144: 48 00 bc c1 bl ffc21e04 <__divdi3>
if ( start_offset ) {
ffc16148: 2f 99 00 00 cmpwi cr7,r25,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;
ffc1614c: 7c 9e 23 78 mr r30,r4
if ( start_offset ) {
ffc16150: 40 9e 00 0c bne- cr7,ffc1615c <IMFS_memfile_write+0x16c>
ffc16154: 3b 40 00 00 li r26,0
ffc16158: 48 00 00 6c b ffc161c4 <IMFS_memfile_write+0x1d4>
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 );
ffc1615c: 7f e3 fb 78 mr r3,r31
ffc16160: 38 a0 00 00 li r5,0
ffc16164: 4b ff f4 81 bl ffc155e4 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
ffc16168: 2c 03 00 00 cmpwi r3,0
ffc1616c: 40 a2 00 28 bne+ ffc16194 <IMFS_memfile_write+0x1a4>
ffc16170: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc16174: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc16178: 38 a5 4d 84 addi r5,r5,19844 <== NOT EXECUTED
ffc1617c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc16180: 38 63 4e 46 addi r3,r3,20038 <== NOT EXECUTED
ffc16184: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED
ffc16188: 38 c6 4e c6 addi r6,r6,20166 <== NOT EXECUTED
ffc1618c: 38 80 03 1c li r4,796 <== NOT EXECUTED
ffc16190: 4b ff fe f4 b ffc16084 <IMFS_memfile_write+0x94> <== 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;
ffc16194: 7f 59 d0 50 subf r26,r25,r26
ffc16198: 7f 9a d8 40 cmplw cr7,r26,r27
ffc1619c: 40 9d 00 08 ble- cr7,ffc161a4 <IMFS_memfile_write+0x1b4>
ffc161a0: 7f 7a db 78 mr r26,r27
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 );
ffc161a4: 80 63 00 00 lwz r3,0(r3)
ffc161a8: 7f 84 e3 78 mr r4,r28
ffc161ac: 7f 45 d3 78 mr r5,r26
ffc161b0: 7c 63 ca 14 add r3,r3,r25
ffc161b4: 48 00 29 85 bl ffc18b38 <memcpy>
src += to_copy;
ffc161b8: 7f 9c d2 14 add r28,r28,r26
block++;
ffc161bc: 3b de 00 01 addi r30,r30,1
my_length -= to_copy;
ffc161c0: 7f 7a d8 50 subf r27,r26,r27
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc161c4: 3d 20 00 00 lis r9,0
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
ffc161c8: 3b 29 27 68 addi r25,r9,10088
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc161cc: 83 a9 27 68 lwz r29,10088(r9)
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
ffc161d0: 48 00 00 60 b ffc16230 <IMFS_memfile_write+0x240>
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc161d4: 7f e3 fb 78 mr r3,r31
ffc161d8: 7f c4 f3 78 mr r4,r30
ffc161dc: 38 a0 00 00 li r5,0
ffc161e0: 4b ff f4 05 bl ffc155e4 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
ffc161e4: 2c 03 00 00 cmpwi r3,0
ffc161e8: 40 a2 00 28 bne+ ffc16210 <IMFS_memfile_write+0x220>
ffc161ec: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc161f0: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc161f4: 38 a5 4d 84 addi r5,r5,19844 <== NOT EXECUTED
ffc161f8: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc161fc: 38 63 4e 46 addi r3,r3,20038 <== NOT EXECUTED
ffc16200: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED
ffc16204: 38 c6 4e c6 addi r6,r6,20166 <== NOT EXECUTED
ffc16208: 38 80 03 30 li r4,816 <== NOT EXECUTED
ffc1620c: 4b ff fe 78 b ffc16084 <IMFS_memfile_write+0x94> <== NOT EXECUTED
if ( !block_ptr )
return copied;
#if 0
fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src );
#endif
memcpy( &(*block_ptr)[ 0 ], src, to_copy );
ffc16210: 80 63 00 00 lwz r3,0(r3)
ffc16214: 7f 84 e3 78 mr r4,r28
ffc16218: 7f a5 eb 78 mr r5,r29
ffc1621c: 48 00 29 1d bl ffc18b38 <memcpy>
src += to_copy;
ffc16220: 7f 9c ea 14 add r28,r28,r29
block++;
ffc16224: 3b de 00 01 addi r30,r30,1
my_length -= to_copy;
ffc16228: 7f 7d d8 50 subf r27,r29,r27
*
* This routine writes the specified data buffer into the in memory
* file pointed to by the_jnode. The file is extended as needed.
*/
MEMFILE_STATIC ssize_t IMFS_memfile_write(
ffc1622c: 7f 5a ea 14 add r26,r26,r29
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
ffc16230: 80 19 00 00 lwz r0,0(r25)
ffc16234: 7f 9b 00 40 cmplw cr7,r27,r0
ffc16238: 40 9c ff 9c bge+ cr7,ffc161d4 <IMFS_memfile_write+0x1e4>
*/
assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );
to_copy = my_length;
if ( my_length ) {
ffc1623c: 2f 9b 00 00 cmpwi cr7,r27,0
ffc16240: 41 9e 00 54 beq- cr7,ffc16294 <IMFS_memfile_write+0x2a4>
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc16244: 7f c4 f3 78 mr r4,r30
ffc16248: 7f e3 fb 78 mr r3,r31
ffc1624c: 38 a0 00 00 li r5,0
ffc16250: 4b ff f3 95 bl ffc155e4 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
ffc16254: 2c 03 00 00 cmpwi r3,0
ffc16258: 40 a2 00 28 bne+ ffc16280 <IMFS_memfile_write+0x290>
ffc1625c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc16260: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc16264: 38 a5 4d 84 addi r5,r5,19844 <== NOT EXECUTED
ffc16268: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc1626c: 38 63 4e 46 addi r3,r3,20038 <== NOT EXECUTED
ffc16270: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED
ffc16274: 38 c6 4e c6 addi r6,r6,20166 <== NOT EXECUTED
ffc16278: 38 80 03 46 li r4,838 <== NOT EXECUTED
ffc1627c: 4b ff fe 08 b ffc16084 <IMFS_memfile_write+0x94> <== NOT EXECUTED
if ( !block_ptr )
return copied;
#if 0
fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src );
#endif
memcpy( &(*block_ptr)[ 0 ], src, my_length );
ffc16280: 80 63 00 00 lwz r3,0(r3)
ffc16284: 7f 84 e3 78 mr r4,r28
ffc16288: 7f 65 db 78 mr r5,r27
ffc1628c: 48 00 28 ad bl ffc18b38 <memcpy>
my_length = 0;
copied += to_copy;
ffc16290: 7f 5a da 14 add r26,r26,r27
}
IMFS_mtime_ctime_update( the_jnode );
ffc16294: 38 61 00 08 addi r3,r1,8
ffc16298: 38 80 00 00 li r4,0
ffc1629c: 4b fe f8 55 bl ffc05af0 <gettimeofday>
ffc162a0: 80 01 00 08 lwz r0,8(r1)
ffc162a4: 90 1f 00 48 stw r0,72(r31)
ffc162a8: 90 1f 00 44 stw r0,68(r31)
return copied;
}
ffc162ac: 80 01 00 3c lwz r0,60(r1)
ffc162b0: 7f 43 d3 78 mr r3,r26
ffc162b4: 83 01 00 18 lwz r24,24(r1)
ffc162b8: 7c 08 03 a6 mtlr r0
ffc162bc: 83 21 00 1c lwz r25,28(r1)
ffc162c0: 83 41 00 20 lwz r26,32(r1)
ffc162c4: 83 61 00 24 lwz r27,36(r1)
ffc162c8: 83 81 00 28 lwz r28,40(r1)
ffc162cc: 83 a1 00 2c lwz r29,44(r1)
ffc162d0: 83 c1 00 30 lwz r30,48(r1)
ffc162d4: 83 e1 00 34 lwz r31,52(r1)
ffc162d8: 38 21 00 38 addi r1,r1,56
ffc162dc: 4e 80 00 20 blr
ffc0cdf8 <IMFS_mknod>:
const char *token, /* IN */
mode_t mode, /* IN */
dev_t dev, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
ffc0cdf8: 94 21 ff 90 stwu r1,-112(r1)
ffc0cdfc: 7c 08 02 a6 mflr r0
ffc0ce00: 93 61 00 5c stw r27,92(r1)
ffc0ce04: 7c fb 3b 78 mr r27,r7
ffc0ce08: 90 01 00 74 stw r0,116(r1)
ffc0ce0c: 93 81 00 60 stw r28,96(r1)
ffc0ce10: 7c 7c 1b 78 mr r28,r3
ffc0ce14: 93 a1 00 64 stw r29,100(r1)
ffc0ce18: 7c bd 2b 78 mr r29,r5
ffc0ce1c: 93 c1 00 68 stw r30,104(r1)
ffc0ce20: 7c de 33 78 mr r30,r6
ffc0ce24: 93 e1 00 6c stw r31,108(r1)
ffc0ce28: 7c 9f 23 78 mr r31,r4
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 );
ffc0ce2c: 48 00 60 95 bl ffc12ec0 <strlen>
ffc0ce30: 38 a1 00 28 addi r5,r1,40
ffc0ce34: 7c 64 1b 78 mr r4,r3
ffc0ce38: 38 c1 00 08 addi r6,r1,8
ffc0ce3c: 7f 83 e3 78 mr r3,r28
ffc0ce40: 4b ff fd a1 bl ffc0cbe0 <IMFS_get_token>
/*
* Figure out what type of IMFS node this is.
*/
if ( S_ISDIR(mode) )
ffc0ce44: 57 e0 04 26 rlwinm r0,r31,0,16,19
ffc0ce48: 2f 80 40 00 cmpwi cr7,r0,16384
ffc0ce4c: 41 9e 00 50 beq- cr7,ffc0ce9c <IMFS_mknod+0xa4>
type = IMFS_DIRECTORY;
else if ( S_ISREG(mode) )
ffc0ce50: 39 20 00 00 li r9,0
ffc0ce54: 61 29 80 00 ori r9,r9,32768
ffc0ce58: 7f 80 48 00 cmpw cr7,r0,r9
ffc0ce5c: 38 80 00 05 li r4,5
ffc0ce60: 41 9e 00 40 beq- cr7,ffc0cea0 <IMFS_mknod+0xa8>
type = IMFS_MEMORY_FILE;
else if ( S_ISBLK(mode) || S_ISCHR(mode) ) {
ffc0ce64: 2f 80 60 00 cmpwi cr7,r0,24576
ffc0ce68: 41 9e 00 0c beq- cr7,ffc0ce74 <IMFS_mknod+0x7c>
ffc0ce6c: 2f 80 20 00 cmpwi cr7,r0,8192
ffc0ce70: 40 be 00 14 bne+ cr7,ffc0ce84 <IMFS_mknod+0x8c>
type = IMFS_DEVICE;
rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor );
ffc0ce74: 93 a1 00 10 stw r29,16(r1)
ffc0ce78: 38 80 00 02 li r4,2
ffc0ce7c: 93 c1 00 14 stw r30,20(r1)
*/
if ( S_ISDIR(mode) )
type = IMFS_DIRECTORY;
else if ( S_ISREG(mode) )
type = IMFS_MEMORY_FILE;
else if ( S_ISBLK(mode) || S_ISCHR(mode) ) {
ffc0ce80: 48 00 00 20 b ffc0cea0 <IMFS_mknod+0xa8>
type = IMFS_DEVICE;
rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor );
}
else if (S_ISFIFO(mode))
ffc0ce84: 2f 80 10 00 cmpwi cr7,r0,4096
ffc0ce88: 38 80 00 07 li r4,7
ffc0ce8c: 41 be 00 14 beq+ cr7,ffc0cea0 <IMFS_mknod+0xa8>
type = IMFS_FIFO;
else {
rtems_set_errno_and_return_minus_one( EINVAL );
ffc0ce90: 48 00 4d 35 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc0ce94: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc0ce98: 48 00 00 30 b ffc0cec8 <IMFS_mknod+0xd0> <== NOT EXECUTED
ffc0ce9c: 38 80 00 01 li r4,1
* 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(
ffc0cea0: 7f 63 db 78 mr r3,r27
ffc0cea4: 7f e6 fb 78 mr r6,r31
ffc0cea8: 38 a1 00 28 addi r5,r1,40
ffc0ceac: 38 e1 00 10 addi r7,r1,16
ffc0ceb0: 48 00 30 d5 bl ffc0ff84 <IMFS_create_node>
new_name,
mode,
&info
);
if ( !new_node )
ffc0ceb4: 2f 83 00 00 cmpwi cr7,r3,0
ffc0ceb8: 38 60 00 00 li r3,0
ffc0cebc: 40 be 00 14 bne+ cr7,ffc0ced0 <IMFS_mknod+0xd8>
rtems_set_errno_and_return_minus_one( ENOMEM );
ffc0cec0: 48 00 4d 05 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc0cec4: 38 00 00 0c li r0,12 <== NOT EXECUTED
ffc0cec8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc0cecc: 38 60 ff ff li r3,-1 <== NOT EXECUTED
return 0;
}
ffc0ced0: 80 01 00 74 lwz r0,116(r1)
ffc0ced4: 83 61 00 5c lwz r27,92(r1)
ffc0ced8: 7c 08 03 a6 mtlr r0
ffc0cedc: 83 81 00 60 lwz r28,96(r1)
ffc0cee0: 83 a1 00 64 lwz r29,100(r1)
ffc0cee4: 83 c1 00 68 lwz r30,104(r1)
ffc0cee8: 83 e1 00 6c lwz r31,108(r1)
ffc0ceec: 38 21 00 70 addi r1,r1,112
ffc0cef0: 4e 80 00 20 blr
ffc05020 <IMFS_mount>:
#include <rtems/seterr.h>
int IMFS_mount(
rtems_filesystem_mount_table_entry_t *mt_entry
)
{
ffc05020: 7c 08 02 a6 mflr r0
ffc05024: 94 21 ff f8 stwu r1,-8(r1)
ffc05028: 90 01 00 0c stw r0,12(r1)
IMFS_jnode_t *node;
node = mt_entry->mt_point_node.node_access;
ffc0502c: 81 23 00 08 lwz r9,8(r3)
/*
* Is the node that we are mounting onto a directory node ?
*/
if ( node->type != IMFS_DIRECTORY )
ffc05030: 80 09 00 4c lwz r0,76(r9)
ffc05034: 2f 80 00 01 cmpwi cr7,r0,1
ffc05038: 41 be 00 18 beq+ cr7,ffc05050 <IMFS_mount+0x30>
rtems_set_errno_and_return_minus_one( ENOTDIR );
ffc0503c: 48 01 2f 15 bl ffc17f50 <__errno> <== NOT EXECUTED
ffc05040: 38 00 00 14 li r0,20 <== NOT EXECUTED
ffc05044: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc05048: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc0504c: 48 00 00 0c b ffc05058 <IMFS_mount+0x38> <== NOT EXECUTED
/*
* Set mt_fs pointer to point to the mount table entry for
* the mounted file system.
*/
node->info.directory.mt_fs = mt_entry;
ffc05050: 90 69 00 5c stw r3,92(r9)
ffc05054: 38 60 00 00 li r3,0
return 0;
}
ffc05058: 80 01 00 0c lwz r0,12(r1)
ffc0505c: 38 21 00 08 addi r1,r1,8
ffc05060: 7c 08 03 a6 mtlr r0
ffc05064: 4e 80 00 20 blr
ffc05db8 <IMFS_print_jnode>:
*/
void IMFS_print_jnode(
IMFS_jnode_t *the_jnode
)
{
ffc05db8: 94 21 ff f0 stwu r1,-16(r1)
ffc05dbc: 7c 08 02 a6 mflr r0
ffc05dc0: 93 e1 00 0c stw r31,12(r1)
assert( the_jnode );
ffc05dc4: 7c 7f 1b 79 mr. r31,r3
*/
void IMFS_print_jnode(
IMFS_jnode_t *the_jnode
)
{
ffc05dc8: 90 01 00 14 stw r0,20(r1)
ffc05dcc: 93 c1 00 08 stw r30,8(r1)
assert( the_jnode );
ffc05dd0: 40 a2 00 24 bne+ ffc05df4 <IMFS_print_jnode+0x3c>
ffc05dd4: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc05dd8: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc05ddc: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc05de0: 38 63 7f 2c addi r3,r3,32556 <== NOT EXECUTED
ffc05de4: 38 a5 7f 04 addi r5,r5,32516 <== NOT EXECUTED
ffc05de8: 38 c6 7f 75 addi r6,r6,32629 <== NOT EXECUTED
ffc05dec: 38 80 00 38 li r4,56 <== NOT EXECUTED
ffc05df0: 48 00 00 e8 b ffc05ed8 <IMFS_print_jnode+0x120> <== NOT EXECUTED
fprintf(stdout, "%s", the_jnode->name );
ffc05df4: 3f c0 00 00 lis r30,0
ffc05df8: 81 3e 27 4c lwz r9,10060(r30)
ffc05dfc: 38 7f 00 0c addi r3,r31,12
ffc05e00: 80 89 00 08 lwz r4,8(r9)
ffc05e04: 48 01 1a dd bl ffc178e0 <fputs>
switch( the_jnode->type ) {
ffc05e08: 80 bf 00 4c lwz r5,76(r31)
ffc05e0c: 38 05 ff ff addi r0,r5,-1
ffc05e10: 2b 80 00 06 cmplwi cr7,r0,6
ffc05e14: 41 9d 01 30 bgt- cr7,ffc05f44 <IMFS_print_jnode+0x18c>
ffc05e18: 3d 20 ff c2 lis r9,-62
ffc05e1c: 39 29 7e e8 addi r9,r9,32488
ffc05e20: 54 00 10 3a rlwinm r0,r0,2,0,29
ffc05e24: 7c 09 00 2e lwzx r0,r9,r0
ffc05e28: 7d 20 4a 14 add r9,r0,r9
ffc05e2c: 7d 29 03 a6 mtctr r9
ffc05e30: 4e 80 04 20 bctr
case IMFS_DIRECTORY:
fprintf(stdout, "/" );
ffc05e34: 81 3e 27 4c lwz r9,10060(r30)
ffc05e38: 38 60 00 2f li r3,47
ffc05e3c: 80 89 00 08 lwz r4,8(r9)
ffc05e40: 48 01 19 35 bl ffc17774 <fputc>
break;
ffc05e44: 48 00 01 38 b ffc05f7c <IMFS_print_jnode+0x1c4>
case IMFS_DEVICE:
fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",
ffc05e48: 81 3e 27 4c lwz r9,10060(r30)
ffc05e4c: 3c 80 ff c2 lis r4,-62
ffc05e50: 80 df 00 54 lwz r6,84(r31)
ffc05e54: 38 84 7f 7f addi r4,r4,32639
ffc05e58: 80 69 00 08 lwz r3,8(r9)
ffc05e5c: 80 bf 00 50 lwz r5,80(r31)
ffc05e60: 48 00 00 1c b ffc05e7c <IMFS_print_jnode+0xc4>
the_jnode->info.device.major, the_jnode->info.device.minor );
break;
case IMFS_LINEAR_FILE:
fprintf(stdout, " (file %" PRId32 " %p)",
ffc05e64: 81 3e 27 4c lwz r9,10060(r30) <== NOT EXECUTED
ffc05e68: 3c 80 ff c2 lis r4,-62 <== NOT EXECUTED
ffc05e6c: 80 df 00 58 lwz r6,88(r31) <== NOT EXECUTED
ffc05e70: 38 84 7f 92 addi r4,r4,32658 <== NOT EXECUTED
ffc05e74: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED
ffc05e78: 80 bf 00 54 lwz r5,84(r31) <== NOT EXECUTED
ffc05e7c: 4c c6 31 82 crclr 4*cr1+eq
ffc05e80: 48 01 17 e5 bl ffc17664 <fprintf>
(uint32_t)the_jnode->info.linearfile.size,
the_jnode->info.linearfile.direct
);
break;
ffc05e84: 48 00 00 f8 b ffc05f7c <IMFS_print_jnode+0x1c4>
the_jnode->info.file.indirect,
the_jnode->info.file.doubly_indirect,
the_jnode->info.file.triply_indirect
);
#else
fprintf(stdout, " (file %" PRId32 ")",
ffc05e88: 81 3e 27 4c lwz r9,10060(r30)
ffc05e8c: 3c 80 ff c2 lis r4,-62
ffc05e90: 80 bf 00 54 lwz r5,84(r31)
ffc05e94: 38 84 7f a1 addi r4,r4,32673
ffc05e98: 80 69 00 08 lwz r3,8(r9)
ffc05e9c: 4c c6 31 82 crclr 4*cr1+eq
ffc05ea0: 48 01 17 c5 bl ffc17664 <fprintf>
(uint32_t)the_jnode->info.file.size );
#endif
break;
ffc05ea4: 48 00 00 d8 b ffc05f7c <IMFS_print_jnode+0x1c4>
case IMFS_HARD_LINK:
fprintf(stdout, " links not printed\n" );
ffc05ea8: 81 3e 27 4c lwz r9,10060(r30) <== NOT EXECUTED
ffc05eac: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc05eb0: 38 63 7f ad addi r3,r3,32685 <== NOT EXECUTED
ffc05eb4: 80 89 00 08 lwz r4,8(r9) <== NOT EXECUTED
ffc05eb8: 48 01 1a 29 bl ffc178e0 <fputs> <== NOT EXECUTED
assert(0);
ffc05ebc: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc05ec0: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc05ec4: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc05ec8: 38 63 7f 2c addi r3,r3,32556 <== NOT EXECUTED
ffc05ecc: 38 a5 7f 04 addi r5,r5,32516 <== NOT EXECUTED
ffc05ed0: 38 c6 6f ed addi r6,r6,28653 <== NOT EXECUTED
ffc05ed4: 38 80 00 5d li r4,93 <== NOT EXECUTED
ffc05ed8: 48 00 0a b9 bl ffc06990 <__assert_func> <== NOT EXECUTED
break;
case IMFS_SYM_LINK:
fprintf(stdout, " links not printed\n" );
ffc05edc: 81 3e 27 4c lwz r9,10060(r30) <== NOT EXECUTED
ffc05ee0: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc05ee4: 38 63 7f ad addi r3,r3,32685 <== NOT EXECUTED
ffc05ee8: 80 89 00 08 lwz r4,8(r9) <== NOT EXECUTED
ffc05eec: 48 01 19 f5 bl ffc178e0 <fputs> <== NOT EXECUTED
assert(0);
ffc05ef0: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc05ef4: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc05ef8: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc05efc: 38 63 7f 2c addi r3,r3,32556 <== NOT EXECUTED
ffc05f00: 38 a5 7f 04 addi r5,r5,32516 <== NOT EXECUTED
ffc05f04: 38 c6 6f ed addi r6,r6,28653 <== NOT EXECUTED
ffc05f08: 38 80 00 62 li r4,98 <== NOT EXECUTED
ffc05f0c: 4b ff ff cc b ffc05ed8 <IMFS_print_jnode+0x120> <== NOT EXECUTED
break;
case IMFS_FIFO:
fprintf(stdout, " FIFO not printed\n" );
ffc05f10: 81 3e 27 4c lwz r9,10060(r30) <== NOT EXECUTED
ffc05f14: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc05f18: 38 63 7f c1 addi r3,r3,32705 <== NOT EXECUTED
ffc05f1c: 80 89 00 08 lwz r4,8(r9) <== NOT EXECUTED
ffc05f20: 48 01 19 c1 bl ffc178e0 <fputs> <== NOT EXECUTED
assert(0);
ffc05f24: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc05f28: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc05f2c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc05f30: 38 63 7f 2c addi r3,r3,32556 <== NOT EXECUTED
ffc05f34: 38 a5 7f 04 addi r5,r5,32516 <== NOT EXECUTED
ffc05f38: 38 c6 6f ed addi r6,r6,28653 <== NOT EXECUTED
ffc05f3c: 38 80 00 67 li r4,103 <== NOT EXECUTED
ffc05f40: 4b ff ff 98 b ffc05ed8 <IMFS_print_jnode+0x120> <== NOT EXECUTED
break;
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
ffc05f44: 81 3e 27 4c lwz r9,10060(r30) <== NOT EXECUTED
ffc05f48: 3c 80 ff c2 lis r4,-62 <== NOT EXECUTED
ffc05f4c: 38 84 7f d4 addi r4,r4,32724 <== NOT EXECUTED
ffc05f50: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED
ffc05f54: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc05f58: 48 01 17 0d bl ffc17664 <fprintf> <== NOT EXECUTED
assert(0);
ffc05f5c: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc05f60: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc05f64: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc05f68: 38 63 7f 2c addi r3,r3,32556 <== NOT EXECUTED
ffc05f6c: 38 a5 7f 04 addi r5,r5,32516 <== NOT EXECUTED
ffc05f70: 38 c6 6f ed addi r6,r6,28653 <== NOT EXECUTED
ffc05f74: 38 80 00 6c li r4,108 <== NOT EXECUTED
ffc05f78: 4b ff ff 60 b ffc05ed8 <IMFS_print_jnode+0x120> <== NOT EXECUTED
break;
}
puts("");
ffc05f7c: 3c 60 ff c3 lis r3,-61
ffc05f80: 38 63 82 06 addi r3,r3,-32250
ffc05f84: 48 01 39 19 bl ffc1989c <puts>
}
ffc05f88: 80 01 00 14 lwz r0,20(r1)
ffc05f8c: 83 c1 00 08 lwz r30,8(r1)
ffc05f90: 7c 08 03 a6 mtlr r0
ffc05f94: 83 e1 00 0c lwz r31,12(r1)
ffc05f98: 38 21 00 10 addi r1,r1,16
ffc05f9c: 4e 80 00 20 blr
ffc05074 <IMFS_readlink>:
int IMFS_readlink(
rtems_filesystem_location_info_t *loc,
char *buf, /* OUT */
size_t bufsize
)
{
ffc05074: 7c 08 02 a6 mflr r0
ffc05078: 94 21 ff f8 stwu r1,-8(r1)
ffc0507c: 90 01 00 0c stw r0,12(r1)
IMFS_jnode_t *node;
int i;
node = loc->node_access;
ffc05080: 81 23 00 00 lwz r9,0(r3)
if ( node->type != IMFS_SYM_LINK )
ffc05084: 80 09 00 4c lwz r0,76(r9)
ffc05088: 2f 80 00 04 cmpwi cr7,r0,4
ffc0508c: 40 9e 00 1c bne- cr7,ffc050a8 <IMFS_readlink+0x34>
ffc05090: 2f 85 00 00 cmpwi cr7,r5,0
ffc05094: 38 60 00 00 li r3,0
ffc05098: 38 a5 00 01 addi r5,r5,1
ffc0509c: 40 be 00 28 bne+ cr7,ffc050c4 <IMFS_readlink+0x50>
ffc050a0: 38 a0 00 01 li r5,1 <== NOT EXECUTED
ffc050a4: 48 00 00 20 b ffc050c4 <IMFS_readlink+0x50> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
ffc050a8: 48 01 2e a9 bl ffc17f50 <__errno> <== NOT EXECUTED
ffc050ac: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc050b0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc050b4: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc050b8: 48 00 00 24 b ffc050dc <IMFS_readlink+0x68> <== NOT EXECUTED
for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
buf[i] = node->info.sym_link.name[i];
ffc050bc: 7c 04 19 ae stbx r0,r4,r3
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++ )
ffc050c0: 38 63 00 01 addi r3,r3,1
ffc050c4: 34 a5 ff ff addic. r5,r5,-1
ffc050c8: 41 82 00 14 beq- ffc050dc <IMFS_readlink+0x68>
ffc050cc: 81 69 00 50 lwz r11,80(r9)
ffc050d0: 7c 0b 18 ae lbzx r0,r11,r3
ffc050d4: 2f 80 00 00 cmpwi cr7,r0,0
ffc050d8: 40 9e ff e4 bne+ cr7,ffc050bc <IMFS_readlink+0x48>
buf[i] = node->info.sym_link.name[i];
return i;
}
ffc050dc: 80 01 00 0c lwz r0,12(r1)
ffc050e0: 38 21 00 08 addi r1,r1,8
ffc050e4: 7c 08 03 a6 mtlr r0
ffc050e8: 4e 80 00 20 blr
ffc050ec <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 */
)
{
ffc050ec: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED
ffc050f0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc050f4: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED
ffc050f8: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
IMFS_jnode_t *new_parent;
the_jnode = old_loc->node_access;
ffc050fc: 83 e4 00 00 lwz r31,0(r4) <== NOT EXECUTED
strncpy( the_jnode->name, new_name, IMFS_NAME_MAX );
ffc05100: 7c c4 33 78 mr r4,r6 <== NOT EXECUTED
rtems_filesystem_location_info_t *old_parent_loc, /* IN */
rtems_filesystem_location_info_t *old_loc, /* IN */
rtems_filesystem_location_info_t *new_parent_loc, /* IN */
const char *new_name /* IN */
)
{
ffc05104: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED
ffc05108: 7c be 2b 78 mr r30,r5 <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
IMFS_jnode_t *new_parent;
the_jnode = old_loc->node_access;
strncpy( the_jnode->name, new_name, IMFS_NAME_MAX );
ffc0510c: 38 7f 00 0c addi r3,r31,12 <== NOT EXECUTED
ffc05110: 38 a0 00 20 li r5,32 <== NOT EXECUTED
ffc05114: 48 01 41 99 bl ffc192ac <strncpy> <== NOT EXECUTED
if ( the_jnode->Parent != NULL )
ffc05118: 80 1f 00 08 lwz r0,8(r31) <== NOT EXECUTED
ffc0511c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc05120: 41 9e 00 0c beq- cr7,ffc0512c <IMFS_rename+0x40> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
ffc05124: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc05128: 48 00 57 d1 bl ffc0a8f8 <_Chain_Extract> <== NOT EXECUTED
rtems_chain_extract( (rtems_chain_node *) the_jnode );
new_parent = new_parent_loc->node_access;
ffc0512c: 80 7e 00 00 lwz r3,0(r30) <== 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 );
ffc05130: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
the_jnode->Parent = new_parent;
ffc05134: 90 7f 00 08 stw r3,8(r31) <== NOT EXECUTED
ffc05138: 38 63 00 50 addi r3,r3,80 <== NOT EXECUTED
ffc0513c: 48 00 57 8d bl ffc0a8c8 <_Chain_Append> <== NOT EXECUTED
rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node );
/*
* Update the time.
*/
IMFS_update_ctime( the_jnode );
ffc05140: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED
ffc05144: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc05148: 48 00 09 a9 bl ffc05af0 <gettimeofday> <== NOT EXECUTED
ffc0514c: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED
return 0;
}
ffc05150: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc05154: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED
rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node );
/*
* Update the time.
*/
IMFS_update_ctime( the_jnode );
ffc05158: 90 1f 00 48 stw r0,72(r31) <== NOT EXECUTED
return 0;
}
ffc0515c: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED
ffc05160: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED
ffc05164: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED
ffc05168: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0516c: 4e 80 00 20 blr <== NOT EXECUTED
ffc0cf00 <IMFS_rmnod>:
int IMFS_rmnod(
rtems_filesystem_location_info_t *parent_pathloc, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN */
)
{
ffc0cf00: 94 21 ff e0 stwu r1,-32(r1)
ffc0cf04: 7c 08 02 a6 mflr r0
ffc0cf08: 90 01 00 24 stw r0,36(r1)
ffc0cf0c: 93 e1 00 1c stw r31,28(r1)
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) pathloc->node_access;
ffc0cf10: 83 e4 00 00 lwz r31,0(r4)
int IMFS_rmnod(
rtems_filesystem_location_info_t *parent_pathloc, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN */
)
{
ffc0cf14: 93 c1 00 18 stw r30,24(r1)
ffc0cf18: 7c 9e 23 78 mr r30,r4
/*
* Take the node out of the parent's chain that contains this node
*/
if ( the_jnode->Parent != NULL ) {
ffc0cf1c: 80 1f 00 08 lwz r0,8(r31)
ffc0cf20: 2f 80 00 00 cmpwi cr7,r0,0
ffc0cf24: 41 9e 00 14 beq- cr7,ffc0cf38 <IMFS_rmnod+0x38>
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
ffc0cf28: 7f e3 fb 78 mr r3,r31
ffc0cf2c: 48 00 16 d9 bl ffc0e604 <_Chain_Extract>
rtems_chain_extract( (rtems_chain_node *) the_jnode );
the_jnode->Parent = NULL;
ffc0cf30: 38 00 00 00 li r0,0
ffc0cf34: 90 1f 00 08 stw r0,8(r31)
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
ffc0cf38: a1 3f 00 34 lhz r9,52(r31)
IMFS_update_ctime( the_jnode );
ffc0cf3c: 38 80 00 00 li r4,0
ffc0cf40: 38 61 00 08 addi r3,r1,8
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
ffc0cf44: 38 09 ff ff addi r0,r9,-1
ffc0cf48: b0 1f 00 34 sth r0,52(r31)
IMFS_update_ctime( the_jnode );
ffc0cf4c: 48 00 03 f5 bl ffc0d340 <gettimeofday>
ffc0cf50: 80 01 00 08 lwz r0,8(r1)
/*
* 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) ) {
ffc0cf54: 7f e3 fb 78 mr r3,r31
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
IMFS_update_ctime( the_jnode );
ffc0cf58: 90 1f 00 48 stw r0,72(r31)
/*
* 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) ) {
ffc0cf5c: 48 00 04 c5 bl ffc0d420 <rtems_libio_is_file_open>
ffc0cf60: 2f 83 00 00 cmpwi cr7,r3,0
ffc0cf64: 40 9e 00 50 bne- cr7,ffc0cfb4 <IMFS_rmnod+0xb4>
ffc0cf68: a0 1f 00 34 lhz r0,52(r31)
ffc0cf6c: 2f 80 00 00 cmpwi cr7,r0,0
ffc0cf70: 40 9e 00 44 bne- cr7,ffc0cfb4 <IMFS_rmnod+0xb4>
/*
* Is rtems_filesystem_current this node?
*/
if ( rtems_filesystem_current.node_access == pathloc->node_access )
ffc0cf74: 3d 20 00 00 lis r9,0
ffc0cf78: 81 7e 00 00 lwz r11,0(r30)
ffc0cf7c: 81 29 26 dc lwz r9,9948(r9)
ffc0cf80: 81 49 00 04 lwz r10,4(r9)
ffc0cf84: 7f 8a 58 00 cmpw cr7,r10,r11
ffc0cf88: 40 be 00 08 bne+ cr7,ffc0cf90 <IMFS_rmnod+0x90>
rtems_filesystem_current.node_access = NULL;
ffc0cf8c: 90 09 00 04 stw r0,4(r9) <== NOT EXECUTED
/*
* Free memory associated with a memory file.
*/
if ( the_jnode->type == IMFS_SYM_LINK ) {
ffc0cf90: 80 1f 00 4c lwz r0,76(r31)
ffc0cf94: 2f 80 00 04 cmpwi cr7,r0,4
ffc0cf98: 40 be 00 14 bne+ cr7,ffc0cfac <IMFS_rmnod+0xac>
if ( the_jnode->info.sym_link.name )
ffc0cf9c: 80 7f 00 50 lwz r3,80(r31)
ffc0cfa0: 2f 83 00 00 cmpwi cr7,r3,0
ffc0cfa4: 41 9e 00 08 beq- cr7,ffc0cfac <IMFS_rmnod+0xac>
free( (void*) the_jnode->info.sym_link.name );
ffc0cfa8: 4b ff 72 9d bl ffc04244 <free>
}
free( the_jnode );
ffc0cfac: 7f e3 fb 78 mr r3,r31
ffc0cfb0: 4b ff 72 95 bl ffc04244 <free>
}
return 0;
}
ffc0cfb4: 80 01 00 24 lwz r0,36(r1)
ffc0cfb8: 38 60 00 00 li r3,0
ffc0cfbc: 83 c1 00 18 lwz r30,24(r1)
ffc0cfc0: 7c 08 03 a6 mtlr r0
ffc0cfc4: 83 e1 00 1c lwz r31,28(r1)
ffc0cfc8: 38 21 00 20 addi r1,r1,32
ffc0cfcc: 4e 80 00 20 blr
ffc0cfd0 <IMFS_stat>:
int IMFS_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
ffc0cfd0: 7c 08 02 a6 mflr r0
ffc0cfd4: 94 21 ff f8 stwu r1,-8(r1)
ffc0cfd8: 7c 6b 1b 78 mr r11,r3
ffc0cfdc: 90 01 00 0c stw r0,12(r1)
IMFS_fs_info_t *fs_info;
IMFS_jnode_t *the_jnode;
IMFS_device_t *io;
the_jnode = loc->node_access;
ffc0cfe0: 81 23 00 00 lwz r9,0(r3)
switch ( the_jnode->type ) {
ffc0cfe4: 81 49 00 4c lwz r10,76(r9)
ffc0cfe8: 38 0a ff fe addi r0,r10,-2
ffc0cfec: 2b 80 00 05 cmplwi cr7,r0,5
ffc0cff0: 41 9d 00 54 bgt- cr7,ffc0d044 <IMFS_stat+0x74>
ffc0cff4: 3d 40 ff c2 lis r10,-62
ffc0cff8: 39 4a e0 c0 addi r10,r10,-8000
ffc0cffc: 54 00 10 3a rlwinm r0,r0,2,0,29
ffc0d000: 7c 0a 00 2e lwzx r0,r10,r0
ffc0d004: 7d 40 52 14 add r10,r0,r10
ffc0d008: 7d 49 03 a6 mtctr r10
ffc0d00c: 4e 80 04 20 bctr
case IMFS_DEVICE:
io = &the_jnode->info.device;
buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor );
ffc0d010: 81 49 00 54 lwz r10,84(r9)
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
ffc0d014: 80 09 00 50 lwz r0,80(r9)
ffc0d018: 91 44 00 1c stw r10,28(r4)
ffc0d01c: 90 04 00 18 stw r0,24(r4)
break;
ffc0d020: 48 00 00 38 b ffc0d058 <IMFS_stat+0x88>
case IMFS_LINEAR_FILE:
case IMFS_MEMORY_FILE:
buf->st_size = the_jnode->info.file.size;
ffc0d024: 80 e9 00 50 lwz r7,80(r9)
ffc0d028: 81 09 00 54 lwz r8,84(r9)
ffc0d02c: 48 00 00 0c b ffc0d038 <IMFS_stat+0x68>
case IMFS_SYM_LINK:
buf->st_size = 0;
break;
case IMFS_FIFO:
buf->st_size = 0;
ffc0d030: 38 e0 00 00 li r7,0 <== NOT EXECUTED
ffc0d034: 39 00 00 00 li r8,0 <== NOT EXECUTED
ffc0d038: 90 e4 00 20 stw r7,32(r4)
ffc0d03c: 91 04 00 24 stw r8,36(r4)
break;
ffc0d040: 48 00 00 18 b ffc0d058 <IMFS_stat+0x88>
default:
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc0d044: 48 00 4b 81 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc0d048: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc0d04c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc0d050: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc0d054: 48 00 00 64 b ffc0d0b8 <IMFS_stat+0xe8> <== 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;
ffc0d058: 80 09 00 30 lwz r0,48(r9)
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;
ffc0d05c: 38 60 00 00 li r3,0
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;
ffc0d060: a1 49 00 34 lhz r10,52(r9)
*/
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;
ffc0d064: 90 04 00 0c stw r0,12(r4)
buf->st_nlink = the_jnode->st_nlink;
buf->st_ino = the_jnode->st_ino;
ffc0d068: 80 09 00 38 lwz r0,56(r9)
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;
ffc0d06c: b1 44 00 10 sth r10,16(r4)
buf->st_ino = the_jnode->st_ino;
ffc0d070: 90 04 00 08 stw r0,8(r4)
buf->st_uid = the_jnode->st_uid;
buf->st_gid = the_jnode->st_gid;
buf->st_atime = the_jnode->stat_atime;
ffc0d074: 80 09 00 40 lwz r0,64(r9)
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;
ffc0d078: a1 49 00 3c lhz r10,60(r9)
buf->st_gid = the_jnode->st_gid;
buf->st_atime = the_jnode->stat_atime;
ffc0d07c: 90 04 00 28 stw r0,40(r4)
* 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 );
ffc0d080: 81 6b 00 10 lwz r11,16(r11)
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;
ffc0d084: 80 09 00 44 lwz r0,68(r9)
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;
ffc0d088: b1 44 00 12 sth r10,18(r4)
buf->st_gid = the_jnode->st_gid;
buf->st_atime = the_jnode->stat_atime;
buf->st_mtime = the_jnode->stat_mtime;
ffc0d08c: 90 04 00 30 stw r0,48(r4)
* 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 );
ffc0d090: 81 6b 00 34 lwz r11,52(r11)
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;
ffc0d094: 81 49 00 48 lwz r10,72(r9)
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;
ffc0d098: a0 09 00 3e lhz r0,62(r9)
/*
* 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 =
ffc0d09c: 39 20 00 00 li r9,0
rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
ffc0d0a0: 81 6b 00 00 lwz r11,0(r11)
/*
* 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 =
ffc0d0a4: 61 29 ff fe ori r9,r9,65534
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;
ffc0d0a8: 91 44 00 38 stw r10,56(r4)
/*
* 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 =
ffc0d0ac: 91 24 00 00 stw r9,0(r4)
ffc0d0b0: 91 64 00 04 stw r11,4(r4)
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;
ffc0d0b4: b0 04 00 14 sth r0,20(r4)
buf->st_atime = the_jnode->stat_atime;
buf->st_mtime = the_jnode->stat_mtime;
buf->st_ctime = the_jnode->stat_ctime;
return 0;
}
ffc0d0b8: 80 01 00 0c lwz r0,12(r1)
ffc0d0bc: 38 21 00 08 addi r1,r1,8
ffc0d0c0: 7c 08 03 a6 mtlr r0
ffc0d0c4: 4e 80 00 20 blr
ffc05170 <IMFS_symlink>:
int IMFS_symlink(
rtems_filesystem_location_info_t *parent_loc,
const char *link_name,
const char *node_name
)
{
ffc05170: 94 21 ff 98 stwu r1,-104(r1)
ffc05174: 7c 08 02 a6 mflr r0
ffc05178: 93 c1 00 60 stw r30,96(r1)
ffc0517c: 7c 7e 1b 78 mr r30,r3
int i;
/*
* Remove any separators at the end of the string.
*/
IMFS_get_token( node_name, strlen( node_name ), new_name, &i );
ffc05180: 7c a3 2b 78 mr r3,r5
int IMFS_symlink(
rtems_filesystem_location_info_t *parent_loc,
const char *link_name,
const char *node_name
)
{
ffc05184: 90 01 00 6c stw r0,108(r1)
ffc05188: 93 81 00 58 stw r28,88(r1)
ffc0518c: 7c bc 2b 78 mr r28,r5
ffc05190: 93 a1 00 5c stw r29,92(r1)
ffc05194: 7c 9d 23 78 mr r29,r4
ffc05198: 93 e1 00 64 stw r31,100(r1)
int i;
/*
* Remove any separators at the end of the string.
*/
IMFS_get_token( node_name, strlen( node_name ), new_name, &i );
ffc0519c: 48 01 40 75 bl ffc19210 <strlen>
ffc051a0: 3b e1 00 28 addi r31,r1,40
ffc051a4: 7c 64 1b 78 mr r4,r3
ffc051a8: 7f e5 fb 78 mr r5,r31
ffc051ac: 38 c1 00 08 addi r6,r1,8
ffc051b0: 7f 83 e3 78 mr r3,r28
ffc051b4: 48 00 d8 cd bl ffc12a80 <IMFS_get_token>
/*
* Duplicate link name
*/
info.sym_link.name = strdup(link_name);
ffc051b8: 7f a3 eb 78 mr r3,r29
ffc051bc: 48 01 3f bd bl ffc19178 <strdup>
if (info.sym_link.name == NULL) {
ffc051c0: 2f 83 00 00 cmpwi cr7,r3,0
IMFS_get_token( node_name, strlen( node_name ), new_name, &i );
/*
* Duplicate link name
*/
info.sym_link.name = strdup(link_name);
ffc051c4: 90 61 00 10 stw r3,16(r1)
if (info.sym_link.name == NULL) {
ffc051c8: 41 9e 00 34 beq- cr7,ffc051fc <IMFS_symlink+0x8c>
* 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(
ffc051cc: 38 c0 00 00 li r6,0
ffc051d0: 7f c3 f3 78 mr r3,r30
ffc051d4: 7f e5 fb 78 mr r5,r31
ffc051d8: 60 c6 a1 ff ori r6,r6,41471
ffc051dc: 38 80 00 04 li r4,4
ffc051e0: 38 e1 00 10 addi r7,r1,16
ffc051e4: 48 00 c9 49 bl ffc11b2c <IMFS_create_node>
new_name,
( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),
&info
);
if (new_node == NULL) {
ffc051e8: 2f 83 00 00 cmpwi cr7,r3,0
ffc051ec: 38 60 00 00 li r3,0
ffc051f0: 40 be 00 1c bne+ cr7,ffc0520c <IMFS_symlink+0x9c>
free(info.sym_link.name);
ffc051f4: 80 61 00 10 lwz r3,16(r1) <== NOT EXECUTED
ffc051f8: 48 00 08 31 bl ffc05a28 <free> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
ffc051fc: 48 01 2d 55 bl ffc17f50 <__errno> <== NOT EXECUTED
ffc05200: 38 00 00 0c li r0,12 <== NOT EXECUTED
ffc05204: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc05208: 38 60 ff ff li r3,-1 <== NOT EXECUTED
}
return 0;
}
ffc0520c: 80 01 00 6c lwz r0,108(r1)
ffc05210: 83 81 00 58 lwz r28,88(r1)
ffc05214: 7c 08 03 a6 mtlr r0
ffc05218: 83 a1 00 5c lwz r29,92(r1)
ffc0521c: 83 c1 00 60 lwz r30,96(r1)
ffc05220: 83 e1 00 64 lwz r31,100(r1)
ffc05224: 38 21 00 68 addi r1,r1,104
ffc05228: 4e 80 00 20 blr
ffc0522c <IMFS_unlink>:
int IMFS_unlink(
rtems_filesystem_location_info_t *parentloc, /* IN */
rtems_filesystem_location_info_t *loc /* IN */
)
{
ffc0522c: 94 21 ff c8 stwu r1,-56(r1)
ffc05230: 7c 08 02 a6 mflr r0
ffc05234: 90 01 00 3c stw r0,60(r1)
ffc05238: 93 c1 00 30 stw r30,48(r1)
IMFS_jnode_t *node;
rtems_filesystem_location_info_t the_link;
int result = 0;
node = loc->node_access;
ffc0523c: 83 c4 00 00 lwz r30,0(r4)
int IMFS_unlink(
rtems_filesystem_location_info_t *parentloc, /* IN */
rtems_filesystem_location_info_t *loc /* IN */
)
{
ffc05240: 93 a1 00 2c stw r29,44(r1)
ffc05244: 7c 7d 1b 78 mr r29,r3
/*
* If this is the last last pointer to the node
* free the node.
*/
if ( node->type == IMFS_HARD_LINK ) {
ffc05248: 80 1e 00 4c lwz r0,76(r30)
int IMFS_unlink(
rtems_filesystem_location_info_t *parentloc, /* IN */
rtems_filesystem_location_info_t *loc /* IN */
)
{
ffc0524c: 93 e1 00 34 stw r31,52(r1)
ffc05250: 7c 9f 23 78 mr r31,r4
/*
* If this is the last last pointer to the node
* free the node.
*/
if ( node->type == IMFS_HARD_LINK ) {
ffc05254: 2f 80 00 03 cmpwi cr7,r0,3
int IMFS_unlink(
rtems_filesystem_location_info_t *parentloc, /* IN */
rtems_filesystem_location_info_t *loc /* IN */
)
{
ffc05258: 93 81 00 28 stw r28,40(r1)
/*
* If this is the last last pointer to the node
* free the node.
*/
if ( node->type == IMFS_HARD_LINK ) {
ffc0525c: 40 9e 00 ac bne- cr7,ffc05308 <IMFS_unlink+0xdc>
if ( !node->info.hard_link.link_node )
ffc05260: 80 1e 00 50 lwz r0,80(r30)
ffc05264: 2f 80 00 00 cmpwi cr7,r0,0
ffc05268: 40 be 00 18 bne+ cr7,ffc05280 <IMFS_unlink+0x54>
rtems_set_errno_and_return_minus_one( EINVAL );
ffc0526c: 48 01 2c e5 bl ffc17f50 <__errno> <== NOT EXECUTED
ffc05270: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc05274: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc05278: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc0527c: 48 00 00 a4 b ffc05320 <IMFS_unlink+0xf4> <== NOT EXECUTED
the_link = *loc;
the_link.node_access = node->info.hard_link.link_node;
ffc05280: 7c 3c 0b 78 mr r28,r1
ffc05284: 94 1c 00 10 stwu r0,16(r28)
if ( node->type == IMFS_HARD_LINK ) {
if ( !node->info.hard_link.link_node )
rtems_set_errno_and_return_minus_one( EINVAL );
the_link = *loc;
ffc05288: 81 64 00 08 lwz r11,8(r4)
the_link.node_access = node->info.hard_link.link_node;
IMFS_Set_handlers( &the_link );
ffc0528c: 7f 83 e3 78 mr r3,r28
if ( node->type == IMFS_HARD_LINK ) {
if ( !node->info.hard_link.link_node )
rtems_set_errno_and_return_minus_one( EINVAL );
the_link = *loc;
ffc05290: 81 24 00 0c lwz r9,12(r4)
ffc05294: 81 44 00 04 lwz r10,4(r4)
ffc05298: 80 04 00 10 lwz r0,16(r4)
ffc0529c: 91 61 00 18 stw r11,24(r1)
ffc052a0: 91 21 00 1c stw r9,28(r1)
ffc052a4: 91 41 00 14 stw r10,20(r1)
ffc052a8: 90 01 00 20 stw r0,32(r1)
the_link.node_access = node->info.hard_link.link_node;
IMFS_Set_handlers( &the_link );
ffc052ac: 48 00 c9 e9 bl ffc11c94 <IMFS_Set_handlers>
/*
* 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)
ffc052b0: 81 3e 00 50 lwz r9,80(r30)
ffc052b4: a1 69 00 34 lhz r11,52(r9)
ffc052b8: 2f 8b 00 01 cmpwi cr7,r11,1
ffc052bc: 40 be 00 2c bne+ cr7,ffc052e8 <IMFS_unlink+0xbc>
{
result = (*the_link.handlers->rmnod_h)( parentloc, &the_link );
ffc052c0: 81 21 00 18 lwz r9,24(r1)
ffc052c4: 7f 84 e3 78 mr r4,r28
ffc052c8: 7f a3 eb 78 mr r3,r29
ffc052cc: 80 09 00 34 lwz r0,52(r9)
ffc052d0: 7c 09 03 a6 mtctr r0
ffc052d4: 4e 80 04 21 bctrl
if ( result != 0 )
ffc052d8: 2f 83 00 00 cmpwi cr7,r3,0
ffc052dc: 38 60 ff ff li r3,-1
ffc052e0: 41 be 00 28 beq+ cr7,ffc05308 <IMFS_unlink+0xdc>
ffc052e4: 48 00 00 3c b ffc05320 <IMFS_unlink+0xf4>
return -1;
}
else
{
node->info.hard_link.link_node->st_nlink --;
ffc052e8: 39 6b ff ff addi r11,r11,-1
ffc052ec: b1 69 00 34 sth r11,52(r9)
IMFS_update_ctime( node->info.hard_link.link_node );
ffc052f0: 38 61 00 08 addi r3,r1,8
ffc052f4: 38 80 00 00 li r4,0
ffc052f8: 48 00 07 f9 bl ffc05af0 <gettimeofday>
ffc052fc: 81 3e 00 50 lwz r9,80(r30)
ffc05300: 80 01 00 08 lwz r0,8(r1)
ffc05304: 90 09 00 48 stw r0,72(r9)
/*
* Now actually free the node we were asked to free.
*/
result = (*loc->handlers->rmnod_h)( parentloc, loc );
ffc05308: 81 3f 00 08 lwz r9,8(r31)
ffc0530c: 7f a3 eb 78 mr r3,r29
ffc05310: 7f e4 fb 78 mr r4,r31
ffc05314: 80 09 00 34 lwz r0,52(r9)
ffc05318: 7c 09 03 a6 mtctr r0
ffc0531c: 4e 80 04 21 bctrl
return result;
}
ffc05320: 80 01 00 3c lwz r0,60(r1)
ffc05324: 83 81 00 28 lwz r28,40(r1)
ffc05328: 7c 08 03 a6 mtlr r0
ffc0532c: 83 a1 00 2c lwz r29,44(r1)
ffc05330: 83 c1 00 30 lwz r30,48(r1)
ffc05334: 83 e1 00 34 lwz r31,52(r1)
ffc05338: 38 21 00 38 addi r1,r1,56
ffc0533c: 4e 80 00 20 blr
ffc05340 <IMFS_unmount>:
#include <rtems/seterr.h>
int IMFS_unmount(
rtems_filesystem_mount_table_entry_t *mt_entry
)
{
ffc05340: 7c 08 02 a6 mflr r0
ffc05344: 94 21 ff f8 stwu r1,-8(r1)
ffc05348: 90 01 00 0c stw r0,12(r1)
IMFS_jnode_t *node;
node = mt_entry->mt_point_node.node_access;
ffc0534c: 81 23 00 08 lwz r9,8(r3)
/*
* Is the node that we are mounting onto a directory node ?
*/
if ( node->type != IMFS_DIRECTORY )
ffc05350: 80 09 00 4c lwz r0,76(r9)
ffc05354: 2f 80 00 01 cmpwi cr7,r0,1
ffc05358: 41 be 00 10 beq+ cr7,ffc05368 <IMFS_unmount+0x28>
rtems_set_errno_and_return_minus_one( ENOTDIR );
ffc0535c: 48 01 2b f5 bl ffc17f50 <__errno> <== NOT EXECUTED
ffc05360: 38 00 00 14 li r0,20 <== NOT EXECUTED
ffc05364: 48 00 00 18 b ffc0537c <IMFS_unmount+0x3c> <== NOT EXECUTED
/*
* Did the node indicate that there was a directory mounted here?
*/
if ( node->info.directory.mt_fs == NULL )
ffc05368: 80 09 00 5c lwz r0,92(r9)
ffc0536c: 2f 80 00 00 cmpwi cr7,r0,0
ffc05370: 40 be 00 18 bne+ cr7,ffc05388 <IMFS_unmount+0x48>
rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */
ffc05374: 48 01 2b dd bl ffc17f50 <__errno> <== NOT EXECUTED
ffc05378: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc0537c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc05380: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc05384: 48 00 00 10 b ffc05394 <IMFS_unmount+0x54> <== NOT EXECUTED
/*
* Set the mt_fs pointer to indicate that there is no longer
* a file system mounted to this point.
*/
node->info.directory.mt_fs = NULL;
ffc05388: 38 00 00 00 li r0,0
ffc0538c: 90 09 00 5c stw r0,92(r9)
ffc05390: 38 60 00 00 li r3,0
return 0;
}
ffc05394: 80 01 00 0c lwz r0,12(r1)
ffc05398: 38 21 00 08 addi r1,r1,8
ffc0539c: 7c 08 03 a6 mtlr r0
ffc053a0: 4e 80 00 20 blr
ffc04494 <RTEMS_Malloc_Initialize>:
#endif
/*
* If configured, initialize the statistics support
*/
if ( rtems_malloc_statistics_helpers != NULL ) {
ffc04494: 3d 20 00 00 lis r9,0
void RTEMS_Malloc_Initialize(
void *heap_begin,
uintptr_t heap_size,
size_t sbrk_amount
)
{
ffc04498: 94 21 ff e8 stwu r1,-24(r1)
ffc0449c: 7c 08 02 a6 mflr r0
#endif
/*
* If configured, initialize the statistics support
*/
if ( rtems_malloc_statistics_helpers != NULL ) {
ffc044a0: 81 29 27 08 lwz r9,9992(r9)
void RTEMS_Malloc_Initialize(
void *heap_begin,
uintptr_t heap_size,
size_t sbrk_amount
)
{
ffc044a4: 93 a1 00 0c stw r29,12(r1)
ffc044a8: 7c bd 2b 78 mr r29,r5
#endif
/*
* If configured, initialize the statistics support
*/
if ( rtems_malloc_statistics_helpers != NULL ) {
ffc044ac: 2f 89 00 00 cmpwi cr7,r9,0
void RTEMS_Malloc_Initialize(
void *heap_begin,
uintptr_t heap_size,
size_t sbrk_amount
)
{
ffc044b0: 93 c1 00 10 stw r30,16(r1)
ffc044b4: 7c 9e 23 78 mr r30,r4
ffc044b8: 93 e1 00 14 stw r31,20(r1)
ffc044bc: 7c 7f 1b 78 mr r31,r3
ffc044c0: 90 01 00 1c stw r0,28(r1)
#endif
/*
* If configured, initialize the statistics support
*/
if ( rtems_malloc_statistics_helpers != NULL ) {
ffc044c4: 41 9e 00 10 beq- cr7,ffc044d4 <RTEMS_Malloc_Initialize+0x40>
(*rtems_malloc_statistics_helpers->initialize)();
ffc044c8: 80 09 00 00 lwz r0,0(r9) <== NOT EXECUTED
ffc044cc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc044d0: 4e 80 04 21 bctrl <== NOT EXECUTED
}
/*
* Initialize the garbage collection list to start with nothing on it.
*/
malloc_deferred_frees_initialize();
ffc044d4: 4b ff ff 31 bl ffc04404 <malloc_deferred_frees_initialize>
/*
* Initialize the optional sbrk support for extending the heap
*/
if ( rtems_malloc_sbrk_helpers != NULL ) {
ffc044d8: 3d 20 00 00 lis r9,0
ffc044dc: 81 29 27 0c lwz r9,9996(r9)
ffc044e0: 2f 89 00 00 cmpwi cr7,r9,0
ffc044e4: 41 9e 00 24 beq- cr7,ffc04508 <RTEMS_Malloc_Initialize+0x74>
void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)(
ffc044e8: 80 09 00 00 lwz r0,0(r9) <== NOT EXECUTED
ffc044ec: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc044f0: 7f a4 eb 78 mr r4,r29 <== NOT EXECUTED
ffc044f4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
heap_begin,
sbrk_amount
);
heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin;
ffc044f8: 7f df f2 14 add r30,r31,r30 <== 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)(
ffc044fc: 4e 80 04 21 bctrl <== NOT EXECUTED
heap_begin,
sbrk_amount
);
heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin;
ffc04500: 7f c3 f0 50 subf r30,r3,r30 <== NOT EXECUTED
ffc04504: 7c 7f 1b 78 mr r31,r3 <== 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 (
ffc04508: 3d 20 00 00 lis r9,0
ffc0450c: 88 09 27 05 lbz r0,9989(r9)
ffc04510: 2f 80 00 00 cmpwi cr7,r0,0
ffc04514: 40 9e 00 24 bne- cr7,ffc04538 <RTEMS_Malloc_Initialize+0xa4>
!rtems_unified_work_area
&& rtems_configuration_get_do_zero_of_workspace()
ffc04518: 3d 20 00 00 lis r9,0
ffc0451c: 88 09 20 c8 lbz r0,8392(r9)
ffc04520: 2f 80 00 00 cmpwi cr7,r0,0
ffc04524: 41 be 00 14 beq+ cr7,ffc04538 <RTEMS_Malloc_Initialize+0xa4>
) {
memset( heap_begin, 0, heap_size );
ffc04528: 7f e3 fb 78 mr r3,r31
ffc0452c: 38 80 00 00 li r4,0
ffc04530: 7f c5 f3 78 mr r5,r30
ffc04534: 48 00 e3 79 bl ffc128ac <memset>
* 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 ) {
ffc04538: 3d 20 00 00 lis r9,0
ffc0453c: 88 09 27 05 lbz r0,9989(r9)
ffc04540: 2f 80 00 00 cmpwi cr7,r0,0
ffc04544: 40 9e 00 2c bne- cr7,ffc04570 <RTEMS_Malloc_Initialize+0xdc>
void *area_begin,
uintptr_t area_size,
uintptr_t page_size
)
{
return _Heap_Initialize( heap, area_begin, area_size, page_size );
ffc04548: 3d 20 00 00 lis r9,0
ffc0454c: 80 69 26 9c lwz r3,9884(r9)
ffc04550: 7f e4 fb 78 mr r4,r31
ffc04554: 7f c5 f3 78 mr r5,r30
ffc04558: 38 c0 00 08 li r6,8
ffc0455c: 48 00 4a f9 bl ffc09054 <_Heap_Initialize>
RTEMS_Malloc_Heap,
heap_begin,
heap_size,
CPU_HEAP_ALIGNMENT
);
if ( status == 0 ) {
ffc04560: 2f 83 00 00 cmpwi cr7,r3,0
ffc04564: 40 be 00 0c bne+ cr7,ffc04570 <RTEMS_Malloc_Initialize+0xdc>
rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
ffc04568: 38 60 00 1a li r3,26 <== NOT EXECUTED
ffc0456c: 48 00 40 6d bl ffc085d8 <rtems_fatal_error_occurred> <== NOT EXECUTED
}
}
MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) );
ffc04570: 3d 20 00 00 lis r9,0
ffc04574: 80 69 26 9c lwz r3,9884(r9)
ffc04578: 3f e0 00 00 lis r31,0
ffc0457c: 83 df 2b 00 lwz r30,11008(r31)
ffc04580: 48 00 58 c1 bl ffc09e40 <_Protected_heap_Get_size>
printk( "\n" );
rtems_print_buffer( (heap_begin + heap_size) - 48, 48 );
rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
}
#endif
}
ffc04584: 80 01 00 1c lwz r0,28(r1)
if ( status == 0 ) {
rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
}
}
MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) );
ffc04588: 7c 63 f2 14 add r3,r3,r30
printk( "\n" );
rtems_print_buffer( (heap_begin + heap_size) - 48, 48 );
rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
}
#endif
}
ffc0458c: 83 a1 00 0c lwz r29,12(r1)
ffc04590: 7c 08 03 a6 mtlr r0
if ( status == 0 ) {
rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
}
}
MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) );
ffc04594: 90 7f 2b 00 stw r3,11008(r31)
printk( "\n" );
rtems_print_buffer( (heap_begin + heap_size) - 48, 48 );
rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
}
#endif
}
ffc04598: 83 c1 00 10 lwz r30,16(r1)
ffc0459c: 83 e1 00 14 lwz r31,20(r1)
ffc045a0: 38 21 00 18 addi r1,r1,24
ffc045a4: 4e 80 00 20 blr
ffc04fa8 <Stack_check_Dump_threads_usage>:
static rtems_printk_plugin_t print_handler;
void Stack_check_Dump_threads_usage(
Thread_Control *the_thread
)
{
ffc04fa8: 94 21 ff c8 stwu r1,-56(r1) <== NOT EXECUTED
ffc04fac: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc04fb0: 93 41 00 20 stw r26,32(r1) <== NOT EXECUTED
void *high_water_mark;
void *current;
Stack_Control *stack;
char name[5];
if ( !the_thread )
ffc04fb4: 7c 7a 1b 79 mr. r26,r3 <== NOT EXECUTED
static rtems_printk_plugin_t print_handler;
void Stack_check_Dump_threads_usage(
Thread_Control *the_thread
)
{
ffc04fb8: 90 01 00 3c stw r0,60(r1) <== NOT EXECUTED
ffc04fbc: 93 21 00 1c stw r25,28(r1) <== NOT EXECUTED
ffc04fc0: 93 61 00 24 stw r27,36(r1) <== NOT EXECUTED
ffc04fc4: 93 81 00 28 stw r28,40(r1) <== NOT EXECUTED
ffc04fc8: 93 a1 00 2c stw r29,44(r1) <== NOT EXECUTED
ffc04fcc: 93 c1 00 30 stw r30,48(r1) <== NOT EXECUTED
ffc04fd0: 93 e1 00 34 stw r31,52(r1) <== NOT EXECUTED
void *high_water_mark;
void *current;
Stack_Control *stack;
char name[5];
if ( !the_thread )
ffc04fd4: 41 82 01 6c beq- ffc05140 <Stack_check_Dump_threads_usage+0x198><== NOT EXECUTED
return;
if ( !print_handler )
ffc04fd8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc04fdc: 83 a9 37 6c lwz r29,14188(r9) <== NOT EXECUTED
ffc04fe0: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED
ffc04fe4: 41 9e 01 5c beq- cr7,ffc05140 <Stack_check_Dump_threads_usage+0x198><== NOT EXECUTED
/*
* Obtain interrupt stack information
*/
if (the_thread == (Thread_Control *) -1) {
ffc04fe8: 2f 9a ff ff cmpwi cr7,r26,-1 <== NOT EXECUTED
ffc04fec: 40 be 00 24 bne+ cr7,ffc05010 <Stack_check_Dump_threads_usage+0x68><== NOT EXECUTED
if (Stack_check_Interrupt_stack.area) {
ffc04ff0: 3f e0 00 00 lis r31,0 <== NOT EXECUTED
ffc04ff4: 3b ff 35 e8 addi r31,r31,13800 <== NOT EXECUTED
ffc04ff8: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED
ffc04ffc: 3b 60 00 00 li r27,0 <== NOT EXECUTED
ffc05000: 3b 40 00 00 li r26,0 <== NOT EXECUTED
ffc05004: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc05008: 40 be 00 10 bne+ cr7,ffc05018 <Stack_check_Dump_threads_usage+0x70><== NOT EXECUTED
ffc0500c: 48 00 01 34 b ffc05140 <Stack_check_Dump_threads_usage+0x198><== NOT EXECUTED
}
else
return;
} else {
stack = &the_thread->Start.Initial_stack;
current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
ffc05010: 83 7a 00 dc lwz r27,220(r26) <== NOT EXECUTED
current = 0;
}
else
return;
} else {
stack = &the_thread->Start.Initial_stack;
ffc05014: 3b fa 00 cc addi r31,r26,204 <== NOT EXECUTED
current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
}
low = Stack_check_usable_stack_start(stack);
ffc05018: 83 3f 00 04 lwz r25,4(r31) <== NOT EXECUTED
size = Stack_check_usable_stack_size(stack);
ffc0501c: 83 9f 00 00 lwz r28,0(r31) <== 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);
ffc05020: 3b 39 00 80 addi r25,r25,128 <== NOT EXECUTED
size = Stack_check_usable_stack_size(stack);
ffc05024: 3b 9c ff 80 addi r28,r28,-128 <== NOT EXECUTED
high_water_mark = Stack_check_find_high_water_mark(low, size);
ffc05028: 7f 23 cb 78 mr r3,r25 <== NOT EXECUTED
ffc0502c: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED
ffc05030: 4b ff ff 41 bl ffc04f70 <Stack_check_find_high_water_mark><== NOT EXECUTED
if ( high_water_mark )
used = Stack_check_Calculate_used( low, size, high_water_mark );
else
used = 0;
if ( the_thread ) {
ffc05034: 2f 9a 00 00 cmpwi cr7,r26,0 <== 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 )
ffc05038: 7c 69 fe 70 srawi r9,r3,31 <== NOT EXECUTED
ffc0503c: 7d 20 1a 78 xor r0,r9,r3 <== NOT EXECUTED
ffc05040: 7c 00 48 50 subf r0,r0,r9 <== NOT EXECUTED
used = Stack_check_Calculate_used( low, size, high_water_mark );
ffc05044: 7f d9 e2 14 add r30,r25,r28 <== NOT EXECUTED
ffc05048: 7f c3 f0 50 subf r30,r3,r30 <== 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 )
ffc0504c: 7c 00 fe 70 srawi r0,r0,31 <== NOT EXECUTED
ffc05050: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc05054: 7f de 00 38 and r30,r30,r0 <== NOT EXECUTED
ffc05058: 39 29 37 68 addi r9,r9,14184 <== NOT EXECUTED
used = Stack_check_Calculate_used( low, size, high_water_mark );
else
used = 0;
if ( the_thread ) {
ffc0505c: 41 9e 00 40 beq- cr7,ffc0509c <Stack_check_Dump_threads_usage+0xf4><== NOT EXECUTED
(*print_handler)(
ffc05060: 83 5a 00 08 lwz r26,8(r26) <== NOT EXECUTED
ffc05064: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED
ffc05068: 83 29 00 08 lwz r25,8(r9) <== NOT EXECUTED
ffc0506c: 38 80 00 05 li r4,5 <== NOT EXECUTED
ffc05070: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED
ffc05074: 48 00 69 d9 bl ffc0ba4c <rtems_object_get_name> <== NOT EXECUTED
ffc05078: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED
ffc0507c: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED
ffc05080: 7f a9 03 a6 mtctr r29 <== NOT EXECUTED
ffc05084: 7f 23 cb 78 mr r3,r25 <== NOT EXECUTED
ffc05088: 38 84 40 c0 addi r4,r4,16576 <== NOT EXECUTED
ffc0508c: 7f 45 d3 78 mr r5,r26 <== NOT EXECUTED
ffc05090: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc05094: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc05098: 48 00 00 20 b ffc050b8 <Stack_check_Dump_threads_usage+0x110><== 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 );
ffc0509c: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED
ffc050a0: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED
ffc050a4: 38 84 40 cd addi r4,r4,16589 <== NOT EXECUTED
ffc050a8: 7f a9 03 a6 mtctr r29 <== NOT EXECUTED
ffc050ac: 38 a0 ff ff li r5,-1 <== NOT EXECUTED
ffc050b0: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc050b4: 4e 80 04 21 bctrl <== NOT EXECUTED
}
(*print_handler)(
ffc050b8: 3f a0 00 00 lis r29,0 <== NOT EXECUTED
ffc050bc: 80 df 00 00 lwz r6,0(r31) <== NOT EXECUTED
ffc050c0: 80 bf 00 04 lwz r5,4(r31) <== NOT EXECUTED
ffc050c4: 3b fd 37 68 addi r31,r29,14184 <== NOT EXECUTED
ffc050c8: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED
ffc050cc: 38 c6 ff ff addi r6,r6,-1 <== NOT EXECUTED
ffc050d0: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED
ffc050d4: 80 7f 00 08 lwz r3,8(r31) <== NOT EXECUTED
ffc050d8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc050dc: 38 84 40 db addi r4,r4,16603 <== NOT EXECUTED
ffc050e0: 7c c5 32 14 add r6,r5,r6 <== NOT EXECUTED
ffc050e4: 7f 67 db 78 mr r7,r27 <== NOT EXECUTED
ffc050e8: 7f 88 e3 78 mr r8,r28 <== NOT EXECUTED
ffc050ec: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc050f0: 4e 80 04 21 bctrl <== NOT EXECUTED
stack->area + stack->size - 1,
current,
size
);
if (Stack_check_Initialized == 0) {
ffc050f4: 80 1d 37 68 lwz r0,14184(r29) <== NOT EXECUTED
ffc050f8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc050fc: 40 be 00 24 bne+ cr7,ffc05120 <Stack_check_Dump_threads_usage+0x178><== NOT EXECUTED
(*print_handler)( print_context, "Unavailable\n" );
ffc05100: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED
ffc05104: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED
ffc05108: 80 7f 00 08 lwz r3,8(r31) <== NOT EXECUTED
ffc0510c: 38 84 40 f9 addi r4,r4,16633 <== NOT EXECUTED
ffc05110: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc05114: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc05118: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc0511c: 48 00 00 24 b ffc05140 <Stack_check_Dump_threads_usage+0x198><== NOT EXECUTED
} else {
(*print_handler)( print_context, "%8" PRId32 "\n", used );
ffc05120: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED
ffc05124: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED
ffc05128: 80 7f 00 08 lwz r3,8(r31) <== NOT EXECUTED
ffc0512c: 38 84 41 06 addi r4,r4,16646 <== NOT EXECUTED
ffc05130: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED
ffc05134: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc05138: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc0513c: 4e 80 04 21 bctrl <== NOT EXECUTED
}
}
ffc05140: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED
ffc05144: 83 21 00 1c lwz r25,28(r1) <== NOT EXECUTED
ffc05148: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0514c: 83 41 00 20 lwz r26,32(r1) <== NOT EXECUTED
ffc05150: 83 61 00 24 lwz r27,36(r1) <== NOT EXECUTED
ffc05154: 83 81 00 28 lwz r28,40(r1) <== NOT EXECUTED
ffc05158: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED
ffc0515c: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED
ffc05160: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED
ffc05164: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED
ffc05168: 4e 80 00 20 blr <== NOT EXECUTED
ffc04f70 <Stack_check_find_high_water_mark>:
/*
* start at lower memory and find first word that does not
* match pattern
*/
base += PATTERN_SIZE_WORDS;
ffc04f70: 38 63 00 80 addi r3,r3,128 <== NOT EXECUTED
for (ebase = base + length; base < ebase; base++)
ffc04f74: 54 84 00 3a rlwinm r4,r4,0,0,29 <== NOT EXECUTED
if (*base != U32_PATTERN)
ffc04f78: 3c 00 a5 a5 lis r0,-23131 <== 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++)
ffc04f7c: 7c 83 22 14 add r4,r3,r4 <== NOT EXECUTED
if (*base != U32_PATTERN)
ffc04f80: 60 00 a5 a5 ori r0,r0,42405 <== 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++)
ffc04f84: 48 00 00 14 b ffc04f98 <Stack_check_find_high_water_mark+0x28><== NOT EXECUTED
if (*base != U32_PATTERN)
ffc04f88: 81 23 00 00 lwz r9,0(r3) <== NOT EXECUTED
ffc04f8c: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED
ffc04f90: 4c 9e 00 20 bnelr cr7 <== 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++)
ffc04f94: 38 63 00 04 addi r3,r3,4 <== NOT EXECUTED
ffc04f98: 7f 83 20 40 cmplw cr7,r3,r4 <== NOT EXECUTED
ffc04f9c: 41 9c ff ec blt+ cr7,ffc04f88 <Stack_check_find_high_water_mark+0x18><== NOT EXECUTED
ffc04fa0: 38 60 00 00 li r3,0 <== NOT EXECUTED
if (*base != U32_PATTERN)
return (void *) base;
#endif
return (void *)0;
}
ffc04fa4: 4e 80 00 20 blr <== NOT EXECUTED
ffc0a638 <_Heap_Walk_print>:
{
/* Do nothing */
}
static void _Heap_Walk_print( int source, bool error, const char *fmt, ... )
{
ffc0a638: 94 21 ff 88 stwu r1,-120(r1)
ffc0a63c: 7c 08 02 a6 mflr r0
ffc0a640: 93 e1 00 74 stw r31,116(r1)
ffc0a644: 90 01 00 7c stw r0,124(r1)
ffc0a648: 7c 60 1b 78 mr r0,r3
ffc0a64c: 90 c1 00 1c stw r6,28(r1)
ffc0a650: 90 e1 00 20 stw r7,32(r1)
ffc0a654: 91 01 00 24 stw r8,36(r1)
ffc0a658: 91 21 00 28 stw r9,40(r1)
ffc0a65c: 91 41 00 2c stw r10,44(r1)
ffc0a660: 40 86 00 24 bne- cr1,ffc0a684 <_Heap_Walk_print+0x4c>
ffc0a664: d8 21 00 30 stfd f1,48(r1) <== NOT EXECUTED
ffc0a668: d8 41 00 38 stfd f2,56(r1) <== NOT EXECUTED
ffc0a66c: d8 61 00 40 stfd f3,64(r1) <== NOT EXECUTED
ffc0a670: d8 81 00 48 stfd f4,72(r1) <== NOT EXECUTED
ffc0a674: d8 a1 00 50 stfd f5,80(r1) <== NOT EXECUTED
ffc0a678: d8 c1 00 58 stfd f6,88(r1) <== NOT EXECUTED
ffc0a67c: d8 e1 00 60 stfd f7,96(r1) <== NOT EXECUTED
ffc0a680: d9 01 00 68 stfd f8,104(r1) <== NOT EXECUTED
va_list ap;
if ( error ) {
ffc0a684: 2f 84 00 00 cmpwi cr7,r4,0
{
/* Do nothing */
}
static void _Heap_Walk_print( int source, bool error, const char *fmt, ... )
{
ffc0a688: 7c bf 2b 78 mr r31,r5
va_list ap;
if ( error ) {
ffc0a68c: 41 be 00 10 beq+ cr7,ffc0a69c <_Heap_Walk_print+0x64>
printk( "FAIL[%d]: ", source );
ffc0a690: 3c 60 ff c2 lis r3,-62
ffc0a694: 38 63 f7 51 addi r3,r3,-2223
ffc0a698: 48 00 00 0c b ffc0a6a4 <_Heap_Walk_print+0x6c>
} else {
printk( "PASS[%d]: ", source );
ffc0a69c: 3c 60 ff c2 lis r3,-62
ffc0a6a0: 38 63 f7 5c addi r3,r3,-2212
ffc0a6a4: 7c 04 03 78 mr r4,r0
ffc0a6a8: 4c c6 31 82 crclr 4*cr1+eq
ffc0a6ac: 4b ff b4 49 bl ffc05af4 <printk>
}
va_start( ap, fmt );
ffc0a6b0: 38 00 00 03 li r0,3
ffc0a6b4: 98 01 00 08 stb r0,8(r1)
ffc0a6b8: 38 00 00 00 li r0,0
vprintk( fmt, ap );
ffc0a6bc: 7f e3 fb 78 mr r3,r31
printk( "FAIL[%d]: ", source );
} else {
printk( "PASS[%d]: ", source );
}
va_start( ap, fmt );
ffc0a6c0: 98 01 00 09 stb r0,9(r1)
ffc0a6c4: 38 01 00 80 addi r0,r1,128
vprintk( fmt, ap );
ffc0a6c8: 38 81 00 08 addi r4,r1,8
printk( "FAIL[%d]: ", source );
} else {
printk( "PASS[%d]: ", source );
}
va_start( ap, fmt );
ffc0a6cc: 90 01 00 0c stw r0,12(r1)
ffc0a6d0: 38 01 00 10 addi r0,r1,16
ffc0a6d4: 90 01 00 10 stw r0,16(r1)
vprintk( fmt, ap );
ffc0a6d8: 4b ff d4 79 bl ffc07b50 <vprintk>
va_end( ap );
}
ffc0a6dc: 80 01 00 7c lwz r0,124(r1)
ffc0a6e0: 83 e1 00 74 lwz r31,116(r1)
ffc0a6e4: 38 21 00 78 addi r1,r1,120
ffc0a6e8: 7c 08 03 a6 mtlr r0
ffc0a6ec: 4e 80 00 20 blr
ffc08650 <_IO_Manager_initialization>:
* workspace.
*
*/
void _IO_Manager_initialization(void)
{
ffc08650: 94 21 ff d8 stwu r1,-40(r1)
ffc08654: 7c 08 02 a6 mflr r0
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;
ffc08658: 3d 20 00 00 lis r9,0
* workspace.
*
*/
void _IO_Manager_initialization(void)
{
ffc0865c: 90 01 00 2c stw r0,44(r1)
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;
ffc08660: 39 29 20 a0 addi r9,r9,8352
* workspace.
*
*/
void _IO_Manager_initialization(void)
{
ffc08664: 93 c1 00 20 stw r30,32(r1)
ffc08668: 93 e1 00 24 stw r31,36(r1)
uint32_t drivers_in_table;
uint32_t number_of_drivers;
driver_table = Configuration.Device_driver_table;
drivers_in_table = Configuration.number_of_device_drivers;
number_of_drivers = Configuration.maximum_drivers;
ffc0866c: 83 c9 00 2c lwz r30,44(r9)
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;
ffc08670: 83 e9 00 30 lwz r31,48(r9)
* workspace.
*
*/
void _IO_Manager_initialization(void)
{
ffc08674: 93 61 00 14 stw r27,20(r1)
/*
* 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 )
ffc08678: 7f 9e f8 40 cmplw cr7,r30,r31
* workspace.
*
*/
void _IO_Manager_initialization(void)
{
ffc0867c: 93 81 00 18 stw r28,24(r1)
ffc08680: 3f 80 00 00 lis r28,0
ffc08684: 93 a1 00 1c stw r29,28(r1)
ffc08688: 3f a0 00 00 lis r29,0
ffc0868c: 93 21 00 0c stw r25,12(r1)
ffc08690: 93 41 00 10 stw r26,16(r1)
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;
ffc08694: 83 69 00 34 lwz r27,52(r9)
/*
* 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 )
ffc08698: 40 9d 00 40 ble- cr7,ffc086d8 <_IO_Manager_initialization+0x88>
* 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 )
ffc0869c: 1f 3e 00 18 mulli r25,r30,24
/*
* 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 *)
ffc086a0: 7f 23 cb 78 mr r3,r25
ffc086a4: 48 00 36 e5 bl ffc0bd88 <_Workspace_Allocate_or_fatal_error>
_Workspace_Allocate_or_fatal_error(
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
);
_IO_Number_of_drivers = number_of_drivers;
memset(
ffc086a8: 7f 25 cb 78 mr r5,r25
ffc086ac: 38 80 00 00 li r4,0
_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;
ffc086b0: 93 dd 27 ec stw r30,10220(r29)
/*
* 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 *)
ffc086b4: 7c 7a 1b 78 mr r26,r3
ffc086b8: 90 7c 27 f0 stw r3,10224(r28)
_Workspace_Allocate_or_fatal_error(
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
);
_IO_Number_of_drivers = number_of_drivers;
memset(
ffc086bc: 48 00 a1 f1 bl ffc128ac <memset>
ffc086c0: 2f 9f 00 00 cmpwi cr7,r31,0
_IO_Driver_address_table, 0,
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
);
for ( index = 0 ; index < drivers_in_table ; index++ )
_IO_Driver_address_table[index] = driver_table[index];
ffc086c4: 39 40 00 00 li r10,0
ffc086c8: 3b ff 00 01 addi r31,r31,1
ffc086cc: 40 be 00 4c bne+ cr7,ffc08718 <_IO_Manager_initialization+0xc8>
ffc086d0: 3b e0 00 01 li r31,1 <== NOT EXECUTED
ffc086d4: 48 00 00 44 b ffc08718 <_IO_Manager_initialization+0xc8><== NOT EXECUTED
* 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;
ffc086d8: 93 7c 27 f0 stw r27,10224(r28)
_IO_Number_of_drivers = number_of_drivers;
ffc086dc: 93 fd 27 ec stw r31,10220(r29)
return;
ffc086e0: 48 00 00 48 b ffc08728 <_IO_Manager_initialization+0xd8>
_IO_Driver_address_table, 0,
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
);
for ( index = 0 ; index < drivers_in_table ; index++ )
_IO_Driver_address_table[index] = driver_table[index];
ffc086e4: 7c c9 50 6e lwzux r6,r9,r10
ffc086e8: 81 09 00 08 lwz r8,8(r9)
ffc086ec: 80 09 00 0c lwz r0,12(r9)
ffc086f0: 80 e9 00 04 lwz r7,4(r9)
ffc086f4: 7c da 51 2e stwx r6,r26,r10
memset(
_IO_Driver_address_table, 0,
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
);
for ( index = 0 ; index < drivers_in_table ; index++ )
ffc086f8: 39 4a 00 18 addi r10,r10,24
_IO_Driver_address_table[index] = driver_table[index];
ffc086fc: 90 eb 00 04 stw r7,4(r11)
ffc08700: 91 0b 00 08 stw r8,8(r11)
ffc08704: 90 0b 00 0c stw r0,12(r11)
ffc08708: 81 09 00 14 lwz r8,20(r9)
ffc0870c: 80 09 00 10 lwz r0,16(r9)
ffc08710: 91 0b 00 14 stw r8,20(r11)
ffc08714: 90 0b 00 10 stw r0,16(r11)
memset(
_IO_Driver_address_table, 0,
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
);
for ( index = 0 ; index < drivers_in_table ; index++ )
ffc08718: 37 ff ff ff addic. r31,r31,-1
_IO_Driver_address_table[index] = driver_table[index];
ffc0871c: 7f 69 db 78 mr r9,r27
ffc08720: 7d 7a 52 14 add r11,r26,r10
memset(
_IO_Driver_address_table, 0,
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
);
for ( index = 0 ; index < drivers_in_table ; index++ )
ffc08724: 40 82 ff c0 bne+ ffc086e4 <_IO_Manager_initialization+0x94>
_IO_Driver_address_table[index] = driver_table[index];
number_of_drivers = drivers_in_table;
}
ffc08728: 80 01 00 2c lwz r0,44(r1)
ffc0872c: 83 21 00 0c lwz r25,12(r1)
ffc08730: 7c 08 03 a6 mtlr r0
ffc08734: 83 41 00 10 lwz r26,16(r1)
ffc08738: 83 61 00 14 lwz r27,20(r1)
ffc0873c: 83 81 00 18 lwz r28,24(r1)
ffc08740: 83 a1 00 1c lwz r29,28(r1)
ffc08744: 83 c1 00 20 lwz r30,32(r1)
ffc08748: 83 e1 00 24 lwz r31,36(r1)
ffc0874c: 38 21 00 28 addi r1,r1,40
ffc08750: 4e 80 00 20 blr
ffc0941c <_Internal_error_Occurred>:
void _Internal_error_Occurred(
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
ffc0941c: 94 21 ff f0 stwu r1,-16(r1)
ffc09420: 7c 08 02 a6 mflr r0
_Internal_errors_What_happened.the_source = the_source;
ffc09424: 3d 60 00 00 lis r11,0
ffc09428: 39 2b 2d 30 addi r9,r11,11568
void _Internal_error_Occurred(
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
ffc0942c: 90 01 00 14 stw r0,20(r1)
_Internal_errors_What_happened.the_source = the_source;
_Internal_errors_What_happened.is_internal = is_internal;
_Internal_errors_What_happened.the_error = the_error;
ffc09430: 90 a9 00 08 stw r5,8(r9)
Internal_errors_t the_error
)
{
_Internal_errors_What_happened.the_source = the_source;
_Internal_errors_What_happened.is_internal = is_internal;
ffc09434: 98 89 00 04 stb r4,4(r9)
void _Internal_error_Occurred(
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
ffc09438: 93 e1 00 0c stw r31,12(r1)
ffc0943c: 7c bf 2b 78 mr r31,r5
_Internal_errors_What_happened.the_source = the_source;
ffc09440: 90 6b 2d 30 stw r3,11568(r11)
_Internal_errors_What_happened.is_internal = is_internal;
_Internal_errors_What_happened.the_error = the_error;
_User_extensions_Fatal( the_source, is_internal, the_error );
ffc09444: 48 00 23 cd bl ffc0b810 <_User_extensions_Fatal>
RTEMS_INLINE_ROUTINE void _System_state_Set (
System_state_Codes state
)
{
_System_state_Current = state;
ffc09448: 38 00 00 05 li r0,5
ffc0944c: 3d 20 00 00 lis r9,0
_System_state_Set( SYSTEM_STATE_FAILED );
_CPU_Fatal_halt( the_error );
ffc09450: 7f e3 fb 78 mr r3,r31
ffc09454: 90 09 27 d4 stw r0,10196(r9)
ffc09458: 4b ff a2 f9 bl ffc03750 <_BSP_Fatal_error>
ffc0945c: 48 00 00 00 b ffc0945c <_Internal_error_Occurred+0x40><== NOT EXECUTED
ffc0955c <_Objects_Extend_information>:
*/
void _Objects_Extend_information(
Objects_Information *information
)
{
ffc0955c: 94 21 ff b8 stwu r1,-72(r1)
ffc09560: 7c 08 02 a6 mflr r0
ffc09564: 90 01 00 4c stw r0,76(r1)
minimum_index = _Objects_Get_index( information->minimum_id );
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
ffc09568: 81 63 00 34 lwz r11,52(r3)
*/
void _Objects_Extend_information(
Objects_Information *information
)
{
ffc0956c: 93 61 00 34 stw r27,52(r1)
minimum_index = _Objects_Get_index( information->minimum_id );
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
ffc09570: 2f 8b 00 00 cmpwi cr7,r11,0
*/
void _Objects_Extend_information(
Objects_Information *information
)
{
ffc09574: 93 e1 00 44 stw r31,68(r1)
ffc09578: 7c 7f 1b 78 mr r31,r3
ffc0957c: 92 a1 00 1c stw r21,28(r1)
ffc09580: 92 c1 00 20 stw r22,32(r1)
ffc09584: 92 e1 00 24 stw r23,36(r1)
ffc09588: 93 01 00 28 stw r24,40(r1)
ffc0958c: 93 21 00 2c stw r25,44(r1)
ffc09590: 93 41 00 30 stw r26,48(r1)
ffc09594: 93 81 00 38 stw r28,56(r1)
ffc09598: 93 a1 00 3c stw r29,60(r1)
ffc0959c: 93 c1 00 40 stw r30,64(r1)
/*
* Search for a free block of indexes. The block variable ends up set
* to block_count + 1 if the table needs to be extended.
*/
minimum_index = _Objects_Get_index( information->minimum_id );
ffc095a0: a3 63 00 0a lhz r27,10(r3)
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
ffc095a4: 40 be 00 14 bne+ cr7,ffc095b8 <_Objects_Extend_information+0x5c>
ffc095a8: 7f 7e db 78 mr r30,r27
ffc095ac: 3b 80 00 00 li r28,0
ffc095b0: 3b 40 00 00 li r26,0
ffc095b4: 48 00 00 4c b ffc09600 <_Objects_Extend_information+0xa4>
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
ffc095b8: a1 23 00 14 lhz r9,20(r3)
ffc095bc: 7f 7e db 78 mr r30,r27
ffc095c0: a3 43 00 10 lhz r26,16(r3)
ffc095c4: 3b 80 00 00 li r28,0
ffc095c8: 7f 5a 4b 96 divwu r26,r26,r9
ffc095cc: 2f 9a 00 00 cmpwi cr7,r26,0
ffc095d0: 38 1a 00 01 addi r0,r26,1
ffc095d4: 40 be 00 20 bne+ cr7,ffc095f4 <_Objects_Extend_information+0x98>
ffc095d8: 38 00 00 01 li r0,1 <== NOT EXECUTED
ffc095dc: 48 00 00 18 b ffc095f4 <_Objects_Extend_information+0x98><== NOT EXECUTED
for ( ; block < block_count; block++ ) {
if ( information->object_blocks[ block ] == NULL )
ffc095e0: 7d 4b 50 2e lwzx r10,r11,r10
ffc095e4: 2f 8a 00 00 cmpwi cr7,r10,0
ffc095e8: 41 9e 00 18 beq- cr7,ffc09600 <_Objects_Extend_information+0xa4>
ffc095ec: 7f de 4a 14 add r30,r30,r9
if ( information->object_blocks == NULL )
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
for ( ; block < block_count; block++ ) {
ffc095f0: 3b 9c 00 01 addi r28,r28,1
ffc095f4: 34 00 ff ff addic. r0,r0,-1
if ( information->object_blocks[ block ] == NULL )
ffc095f8: 57 8a 10 3a rlwinm r10,r28,2,0,29
if ( information->object_blocks == NULL )
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
for ( ; block < block_count; block++ ) {
ffc095fc: 40 82 ff e4 bne+ ffc095e0 <_Objects_Extend_information+0x84>
else
index_base += information->allocation_size;
}
}
maximum = (uint32_t) information->maximum + information->allocation_size;
ffc09600: a0 1f 00 14 lhz r0,20(r31)
ffc09604: a2 df 00 10 lhz r22,16(r31)
ffc09608: 7e c0 b2 14 add r22,r0,r22
/*
* 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 ) {
ffc0960c: 2b 96 ff ff cmplwi cr7,r22,65535
ffc09610: 41 9d 02 1c bgt- cr7,ffc0982c <_Objects_Extend_information+0x2d0>
/*
* 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 ) {
ffc09614: 89 3f 00 12 lbz r9,18(r31)
/*
* 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;
ffc09618: 80 7f 00 18 lwz r3,24(r31)
if ( information->auto_extend ) {
ffc0961c: 2f 89 00 00 cmpwi cr7,r9,0
/*
* 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;
ffc09620: 7c 60 19 d6 mullw r3,r0,r3
if ( information->auto_extend ) {
ffc09624: 41 9e 00 14 beq- cr7,ffc09638 <_Objects_Extend_information+0xdc>
new_object_block = _Workspace_Allocate( block_size );
ffc09628: 48 00 27 a9 bl ffc0bdd0 <_Workspace_Allocate>
if ( !new_object_block )
ffc0962c: 7c 7d 1b 79 mr. r29,r3
ffc09630: 40 a2 00 10 bne+ ffc09640 <_Objects_Extend_information+0xe4>
ffc09634: 48 00 01 f8 b ffc0982c <_Objects_Extend_information+0x2d0>
return;
} else {
new_object_block = _Workspace_Allocate_or_fatal_error( block_size );
ffc09638: 48 00 27 51 bl ffc0bd88 <_Workspace_Allocate_or_fatal_error>
ffc0963c: 7c 7d 1b 78 mr r29,r3
}
/*
* If the index_base is the maximum we need to grow the tables.
*/
if (index_base >= information->maximum ) {
ffc09640: a0 1f 00 10 lhz r0,16(r31)
ffc09644: 7f 9e 00 40 cmplw cr7,r30,r0
ffc09648: 41 9c 01 5c blt- cr7,ffc097a4 <_Objects_Extend_information+0x248>
*/
/*
* Up the block count and maximum
*/
block_count++;
ffc0964c: 3b 3a 00 01 addi r25,r26,1
* 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 );
ffc09650: 1c 19 00 03 mulli r0,r25,3
ffc09654: 7c 76 da 14 add r3,r22,r27
ffc09658: 7c 63 02 14 add r3,r3,r0
ffc0965c: 54 63 10 3a rlwinm r3,r3,2,0,29
ffc09660: 48 00 27 71 bl ffc0bdd0 <_Workspace_Allocate>
if ( !object_blocks ) {
ffc09664: 7c 77 1b 79 mr. r23,r3
ffc09668: 40 a2 00 10 bne+ ffc09678 <_Objects_Extend_information+0x11c>
_Workspace_Free( new_object_block );
ffc0966c: 7f a3 eb 78 mr r3,r29
ffc09670: 48 00 27 95 bl ffc0be04 <_Workspace_Free>
return;
ffc09674: 48 00 01 b8 b ffc0982c <_Objects_Extend_information+0x2d0>
* Take the block count down. Saves all the (block_count - 1)
* in the copies.
*/
block_count--;
if ( information->maximum > minimum_index ) {
ffc09678: a0 1f 00 10 lhz r0,16(r31)
}
/*
* Break the block into the various sections.
*/
inactive_per_block = (uint32_t *) _Addresses_Add_offset(
ffc0967c: 57 39 10 3a rlwinm r25,r25,2,0,29
RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset (
const void *base,
uintptr_t offset
)
{
return (void *)((uintptr_t)base + offset);
ffc09680: 7f 17 ca 14 add r24,r23,r25
* Take the block count down. Saves all the (block_count - 1)
* in the copies.
*/
block_count--;
if ( information->maximum > minimum_index ) {
ffc09684: 7f 80 d8 40 cmplw cr7,r0,r27
ffc09688: 7f 38 ca 14 add r25,r24,r25
ffc0968c: 41 9d 00 20 bgt- cr7,ffc096ac <_Objects_Extend_information+0x150>
ffc09690: 2f 9b 00 00 cmpwi cr7,r27,0
ffc09694: 39 20 00 00 li r9,0
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
local_table[ index ] = NULL;
ffc09698: 38 00 00 00 li r0,0
ffc0969c: 3b 7b 00 01 addi r27,r27,1
ffc096a0: 40 be 00 50 bne+ cr7,ffc096f0 <_Objects_Extend_information+0x194>
ffc096a4: 3b 60 00 01 li r27,1 <== NOT EXECUTED
ffc096a8: 48 00 00 48 b ffc096f0 <_Objects_Extend_information+0x194><== NOT EXECUTED
* separate parts as size of each block has changed.
*/
memcpy( object_blocks,
information->object_blocks,
block_count * sizeof(void*) );
ffc096ac: 57 55 10 3a rlwinm r21,r26,2,0,29
/*
* 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,
ffc096b0: 80 9f 00 34 lwz r4,52(r31)
ffc096b4: 7e a5 ab 78 mr r5,r21
ffc096b8: 48 00 90 f5 bl ffc127ac <memcpy>
information->object_blocks,
block_count * sizeof(void*) );
memcpy( inactive_per_block,
ffc096bc: 80 9f 00 30 lwz r4,48(r31)
ffc096c0: 7e a5 ab 78 mr r5,r21
ffc096c4: 7f 03 c3 78 mr r3,r24
ffc096c8: 48 00 90 e5 bl ffc127ac <memcpy>
information->inactive_per_block,
block_count * sizeof(uint32_t) );
memcpy( local_table,
ffc096cc: a0 1f 00 10 lhz r0,16(r31)
ffc096d0: 80 9f 00 1c lwz r4,28(r31)
ffc096d4: 7f 23 cb 78 mr r3,r25
ffc096d8: 7f 7b 02 14 add r27,r27,r0
ffc096dc: 57 65 10 3a rlwinm r5,r27,2,0,29
ffc096e0: 48 00 90 cd bl ffc127ac <memcpy>
ffc096e4: 48 00 00 18 b ffc096fc <_Objects_Extend_information+0x1a0>
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
local_table[ index ] = NULL;
ffc096e8: 7c 0b c9 2e stwx r0,r11,r25
} else {
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
ffc096ec: 39 29 00 01 addi r9,r9,1
ffc096f0: 37 7b ff ff addic. r27,r27,-1
local_table[ index ] = NULL;
ffc096f4: 55 2b 10 3a rlwinm r11,r9,2,0,29
} else {
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
ffc096f8: 40 82 ff f0 bne+ ffc096e8 <_Objects_Extend_information+0x18c>
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
ffc096fc: a1 5f 00 14 lhz r10,20(r31)
}
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
ffc09700: 38 00 00 00 li r0,0
ffc09704: 57 5a 10 3a rlwinm r26,r26,2,0,29
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
index++ ) {
local_table[ index ] = NULL;
ffc09708: 7d 7e 52 14 add r11,r30,r10
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
ffc0970c: 7c 18 d1 2e stwx r0,r24,r26
ffc09710: 7f 9e 58 40 cmplw cr7,r30,r11
for ( index=index_base ;
index < ( information->allocation_size + index_base );
ffc09714: 57 c9 10 3a rlwinm r9,r30,2,0,29
}
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
ffc09718: 7c 17 d1 2e stwx r0,r23,r26
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
ffc0971c: 7d 39 4a 14 add r9,r25,r9
index++ ) {
local_table[ index ] = NULL;
ffc09720: 38 0a 00 01 addi r0,r10,1
ffc09724: 39 40 00 00 li r10,0
ffc09728: 41 9d 00 0c bgt- cr7,ffc09734 <_Objects_Extend_information+0x1d8>
ffc0972c: 2f 8b 00 00 cmpwi cr7,r11,0
ffc09730: 40 be 00 14 bne+ cr7,ffc09744 <_Objects_Extend_information+0x1e8>
ffc09734: 38 00 00 01 li r0,1 <== NOT EXECUTED
ffc09738: 48 00 00 0c b ffc09744 <_Objects_Extend_information+0x1e8><== NOT EXECUTED
ffc0973c: 91 49 00 00 stw r10,0(r9)
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
index++ ) {
ffc09740: 39 29 00 04 addi r9,r9,4
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
ffc09744: 34 00 ff ff addic. r0,r0,-1
ffc09748: 40 82 ff f4 bne+ ffc0973c <_Objects_Extend_information+0x1e0>
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0974c: 7c 00 00 a6 mfmsr r0
ffc09750: 7d 30 42 a6 mfsprg r9,0
ffc09754: 7c 09 48 78 andc r9,r0,r9
ffc09758: 7d 20 01 24 mtmsr r9
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(
ffc0975c: 81 7f 00 00 lwz r11,0(r31)
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;
ffc09760: 56 d6 04 3e clrlwi r22,r22,16
information->maximum_id = _Objects_Build_id(
ffc09764: a1 3f 00 04 lhz r9,4(r31)
ffc09768: 55 6b c0 0e rlwinm r11,r11,24,0,7
local_table[ index ] = NULL;
}
_ISR_Disable( level );
old_tables = information->object_blocks;
ffc0976c: 80 7f 00 34 lwz r3,52(r31)
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(
ffc09770: 65 6b 00 01 oris r11,r11,1
_ISR_Disable( level );
old_tables = information->object_blocks;
information->object_blocks = object_blocks;
information->inactive_per_block = inactive_per_block;
ffc09774: 93 1f 00 30 stw r24,48(r31)
information->local_table = local_table;
information->maximum = (Objects_Maximum) maximum;
information->maximum_id = _Objects_Build_id(
ffc09778: 55 29 d8 08 rlwinm r9,r9,27,0,4
ffc0977c: 7d 69 4b 78 or r9,r11,r9
old_tables = information->object_blocks;
information->object_blocks = object_blocks;
information->inactive_per_block = inactive_per_block;
information->local_table = local_table;
ffc09780: 93 3f 00 1c stw r25,28(r31)
information->maximum = (Objects_Maximum) maximum;
information->maximum_id = _Objects_Build_id(
ffc09784: 7d 29 b3 78 or r9,r9,r22
ffc09788: 91 3f 00 0c stw r9,12(r31)
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;
ffc0978c: b2 df 00 10 sth r22,16(r31)
_ISR_Disable( level );
old_tables = information->object_blocks;
information->object_blocks = object_blocks;
ffc09790: 92 ff 00 34 stw r23,52(r31)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc09794: 7c 00 01 24 mtmsr r0
information->maximum
);
_ISR_Enable( level );
if ( old_tables )
ffc09798: 2f 83 00 00 cmpwi cr7,r3,0
ffc0979c: 41 9e 00 08 beq- cr7,ffc097a4 <_Objects_Extend_information+0x248>
_Workspace_Free( old_tables );
ffc097a0: 48 00 26 65 bl ffc0be04 <_Workspace_Free>
}
/*
* Assign the new object block to the object block table.
*/
information->object_blocks[ block ] = new_object_block;
ffc097a4: 81 3f 00 34 lwz r9,52(r31)
ffc097a8: 57 9c 10 3a rlwinm r28,r28,2,0,29
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
ffc097ac: 3b 61 00 08 addi r27,r1,8
ffc097b0: a0 bf 00 14 lhz r5,20(r31)
}
/*
* Assign the new object block to the object block table.
*/
information->object_blocks[ block ] = new_object_block;
ffc097b4: 7f a9 e1 2e stwx r29,r9,r28
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
ffc097b8: 7f a4 eb 78 mr r4,r29
ffc097bc: 7f 63 db 78 mr r3,r27
ffc097c0: 80 df 00 18 lwz r6,24(r31)
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
ffc097c4: 3b bf 00 20 addi r29,r31,32
information->object_blocks[ block ] = new_object_block;
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
ffc097c8: 48 00 4e 65 bl ffc0e62c <_Chain_Initialize>
/*
* Move from the local chain, initialise, then append to the inactive chain
*/
index = index_base;
while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
ffc097cc: 48 00 00 2c b ffc097f8 <_Objects_Extend_information+0x29c>
the_object->id = _Objects_Build_id(
ffc097d0: 81 7f 00 00 lwz r11,0(r31)
ffc097d4: a0 1f 00 04 lhz r0,4(r31)
ffc097d8: 55 6b c0 0e rlwinm r11,r11,24,0,7
ffc097dc: 65 6b 00 01 oris r11,r11,1
ffc097e0: 54 00 d8 08 rlwinm r0,r0,27,0,4
ffc097e4: 7d 60 03 78 or r0,r11,r0
ffc097e8: 7c 00 f3 78 or r0,r0,r30
ffc097ec: 90 09 00 08 stw r0,8(r9)
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
ffc097f0: 3b de 00 01 addi r30,r30,1
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
ffc097f4: 4b ff f2 81 bl ffc08a74 <_Chain_Append>
/*
* Move from the local chain, initialise, then append to the inactive chain
*/
index = index_base;
while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
ffc097f8: 7f 63 db 78 mr r3,r27
ffc097fc: 4b ff f2 a9 bl ffc08aa4 <_Chain_Get>
ffc09800: 7c 69 1b 79 mr. r9,r3
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
ffc09804: 7f a3 eb 78 mr r3,r29
ffc09808: 7d 24 4b 78 mr r4,r9
/*
* Move from the local chain, initialise, then append to the inactive chain
*/
index = index_base;
while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
ffc0980c: 40 82 ff c4 bne+ ffc097d0 <_Objects_Extend_information+0x274>
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
ffc09810: a0 1f 00 14 lhz r0,20(r31)
information->inactive =
ffc09814: a1 3f 00 2c lhz r9,44(r31)
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
ffc09818: 81 7f 00 30 lwz r11,48(r31)
information->inactive =
ffc0981c: 7d 20 4a 14 add r9,r0,r9
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
ffc09820: 54 00 04 3e clrlwi r0,r0,16
information->inactive =
ffc09824: b1 3f 00 2c sth r9,44(r31)
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
ffc09828: 7c 0b e1 2e stwx r0,r11,r28
information->inactive =
(Objects_Maximum)(information->inactive + information->allocation_size);
}
ffc0982c: 80 01 00 4c lwz r0,76(r1)
ffc09830: 82 a1 00 1c lwz r21,28(r1)
ffc09834: 7c 08 03 a6 mtlr r0
ffc09838: 82 c1 00 20 lwz r22,32(r1)
ffc0983c: 82 e1 00 24 lwz r23,36(r1)
ffc09840: 83 01 00 28 lwz r24,40(r1)
ffc09844: 83 21 00 2c lwz r25,44(r1)
ffc09848: 83 41 00 30 lwz r26,48(r1)
ffc0984c: 83 61 00 34 lwz r27,52(r1)
ffc09850: 83 81 00 38 lwz r28,56(r1)
ffc09854: 83 a1 00 3c lwz r29,60(r1)
ffc09858: 83 c1 00 40 lwz r30,64(r1)
ffc0985c: 83 e1 00 44 lwz r31,68(r1)
ffc09860: 38 21 00 48 addi r1,r1,72
ffc09864: 4e 80 00 20 blr
ffc09c84 <_Objects_Shrink_information>:
*/
void _Objects_Shrink_information(
Objects_Information *information
)
{
ffc09c84: 94 21 ff e8 stwu r1,-24(r1)
ffc09c88: 7c 08 02 a6 mflr r0
/*
* Search the list to find block or chunk with all objects inactive.
*/
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
ffc09c8c: 39 20 00 00 li r9,0
*/
void _Objects_Shrink_information(
Objects_Information *information
)
{
ffc09c90: 90 01 00 1c stw r0,28(r1)
ffc09c94: 93 c1 00 10 stw r30,16(r1)
/*
* Search the list to find block or chunk with all objects inactive.
*/
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
ffc09c98: a1 43 00 10 lhz r10,16(r3)
/*
* Search the list to find block or chunk with all objects inactive.
*/
index_base = _Objects_Get_index( information->minimum_id );
ffc09c9c: a3 c3 00 0a lhz r30,10(r3)
block_count = (information->maximum - index_base) /
ffc09ca0: a1 63 00 14 lhz r11,20(r3)
ffc09ca4: 7d 5e 50 50 subf r10,r30,r10
*/
void _Objects_Shrink_information(
Objects_Information *information
)
{
ffc09ca8: 93 e1 00 14 stw r31,20(r1)
/*
* Search the list to find block or chunk with all objects inactive.
*/
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
ffc09cac: 7d 4a 5b 96 divwu r10,r10,r11
*/
void _Objects_Shrink_information(
Objects_Information *information
)
{
ffc09cb0: 93 81 00 08 stw r28,8(r1)
ffc09cb4: 93 a1 00 0c stw r29,12(r1)
ffc09cb8: 2f 8a 00 00 cmpwi cr7,r10,0
ffc09cbc: 7c 7f 1b 78 mr r31,r3
/*
* Search the list to find block or chunk with all objects inactive.
*/
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
ffc09cc0: 38 0a 00 01 addi r0,r10,1
ffc09cc4: 40 be 00 88 bne+ cr7,ffc09d4c <_Objects_Shrink_information+0xc8>
ffc09cc8: 38 00 00 01 li r0,1 <== NOT EXECUTED
ffc09ccc: 48 00 00 80 b ffc09d4c <_Objects_Shrink_information+0xc8><== NOT EXECUTED
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
if ( information->inactive_per_block[ block ] ==
ffc09cd0: 81 5f 00 30 lwz r10,48(r31)
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
ffc09cd4: 39 29 00 01 addi r9,r9,1
if ( information->inactive_per_block[ block ] ==
ffc09cd8: 7d 4a e8 2e lwzx r10,r10,r29
ffc09cdc: 7f 8a 58 00 cmpw cr7,r10,r11
ffc09ce0: 40 be 00 68 bne+ cr7,ffc09d48 <_Objects_Shrink_information+0xc4>
information->allocation_size ) {
/*
* Assume the Inactive chain is never empty at this point
*/
the_object = (Objects_Control *) information->Inactive.first;
ffc09ce4: 80 7f 00 20 lwz r3,32(r31)
do {
index = _Objects_Get_index( the_object->id );
ffc09ce8: a0 03 00 0a lhz r0,10(r3)
/*
* Get the next node before the node is extracted
*/
extract_me = the_object;
the_object = (Objects_Control *) the_object->Node.next;
ffc09cec: 83 83 00 00 lwz r28,0(r3)
if ((index >= index_base) &&
ffc09cf0: 7f 80 f0 40 cmplw cr7,r0,r30
ffc09cf4: 41 9c 00 18 blt- cr7,ffc09d0c <_Objects_Shrink_information+0x88>
(index < (index_base + information->allocation_size))) {
ffc09cf8: a1 3f 00 14 lhz r9,20(r31)
ffc09cfc: 7d 3e 4a 14 add r9,r30,r9
ffc09d00: 7f 80 48 40 cmplw cr7,r0,r9
ffc09d04: 40 bc 00 08 bge+ cr7,ffc09d0c <_Objects_Shrink_information+0x88>
_Chain_Extract( &extract_me->Node );
ffc09d08: 48 00 48 fd bl ffc0e604 <_Chain_Extract>
}
}
while ( the_object );
ffc09d0c: 2f 9c 00 00 cmpwi cr7,r28,0
ffc09d10: 7f 83 e3 78 mr r3,r28
ffc09d14: 40 9e ff d4 bne+ cr7,ffc09ce8 <_Objects_Shrink_information+0x64>
/*
* Free the memory and reset the structures in the object' information
*/
_Workspace_Free( information->object_blocks[ block ] );
ffc09d18: 81 3f 00 34 lwz r9,52(r31)
ffc09d1c: 7c 69 e8 2e lwzx r3,r9,r29
ffc09d20: 48 00 20 e5 bl ffc0be04 <_Workspace_Free>
information->object_blocks[ block ] = NULL;
information->inactive_per_block[ block ] = 0;
information->inactive -= information->allocation_size;
ffc09d24: a1 5f 00 2c lhz r10,44(r31)
ffc09d28: a0 1f 00 14 lhz r0,20(r31)
/*
* Free the memory and reset the structures in the object' information
*/
_Workspace_Free( information->object_blocks[ block ] );
information->object_blocks[ block ] = NULL;
ffc09d2c: 81 3f 00 34 lwz r9,52(r31)
information->inactive_per_block[ block ] = 0;
ffc09d30: 81 7f 00 30 lwz r11,48(r31)
information->inactive -= information->allocation_size;
ffc09d34: 7c 00 50 50 subf r0,r0,r10
ffc09d38: b0 1f 00 2c sth r0,44(r31)
* 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;
ffc09d3c: 7f 8b e9 2e stwx r28,r11,r29
/*
* Free the memory and reset the structures in the object' information
*/
_Workspace_Free( information->object_blocks[ block ] );
information->object_blocks[ block ] = NULL;
ffc09d40: 7f 89 e9 2e stwx r28,r9,r29
information->inactive_per_block[ block ] = 0;
information->inactive -= information->allocation_size;
return;
ffc09d44: 48 00 00 14 b ffc09d58 <_Objects_Shrink_information+0xd4>
}
index_base += information->allocation_size;
ffc09d48: 7f de 5a 14 add r30,r30,r11
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
ffc09d4c: 34 00 ff ff addic. r0,r0,-1
ffc09d50: 55 3d 10 3a rlwinm r29,r9,2,0,29
ffc09d54: 40 82 ff 7c bne+ ffc09cd0 <_Objects_Shrink_information+0x4c>
return;
}
index_base += information->allocation_size;
}
}
ffc09d58: 80 01 00 1c lwz r0,28(r1)
ffc09d5c: 83 81 00 08 lwz r28,8(r1)
ffc09d60: 7c 08 03 a6 mtlr r0
ffc09d64: 83 a1 00 0c lwz r29,12(r1)
ffc09d68: 83 c1 00 10 lwz r30,16(r1)
ffc09d6c: 83 e1 00 14 lwz r31,20(r1)
ffc09d70: 38 21 00 18 addi r1,r1,24
ffc09d74: 4e 80 00 20 blr
ffc0816c <_POSIX_Timer_TSR>:
* This is the operation that is run when a timer expires
*/
void _POSIX_Timer_TSR(
Objects_Id timer __attribute__((unused)),
void *data)
{
ffc0816c: 94 21 ff f0 stwu r1,-16(r1)
ffc08170: 7c 08 02 a6 mflr r0
ffc08174: 90 01 00 14 stw r0,20(r1)
/* Increment the number of expirations. */
ptimer->overrun = ptimer->overrun + 1;
/* The timer must be reprogrammed */
if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) ||
ffc08178: 80 04 00 54 lwz r0,84(r4)
bool activated;
ptimer = (POSIX_Timer_Control *)data;
/* Increment the number of expirations. */
ptimer->overrun = ptimer->overrun + 1;
ffc0817c: 81 24 00 68 lwz r9,104(r4)
/* The timer must be reprogrammed */
if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) ||
ffc08180: 2f 80 00 00 cmpwi cr7,r0,0
* This is the operation that is run when a timer expires
*/
void _POSIX_Timer_TSR(
Objects_Id timer __attribute__((unused)),
void *data)
{
ffc08184: 93 e1 00 0c stw r31,12(r1)
bool activated;
ptimer = (POSIX_Timer_Control *)data;
/* Increment the number of expirations. */
ptimer->overrun = ptimer->overrun + 1;
ffc08188: 38 09 00 01 addi r0,r9,1
* This is the operation that is run when a timer expires
*/
void _POSIX_Timer_TSR(
Objects_Id timer __attribute__((unused)),
void *data)
{
ffc0818c: 7c 9f 23 78 mr r31,r4
bool activated;
ptimer = (POSIX_Timer_Control *)data;
/* Increment the number of expirations. */
ptimer->overrun = ptimer->overrun + 1;
ffc08190: 90 04 00 68 stw r0,104(r4)
/* The timer must be reprogrammed */
if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) ||
ffc08194: 40 9e 00 10 bne- cr7,ffc081a4 <_POSIX_Timer_TSR+0x38>
( ptimer->timer_data.it_interval.tv_nsec != 0 ) ) {
ffc08198: 80 04 00 58 lwz r0,88(r4)
ffc0819c: 2f 80 00 00 cmpwi cr7,r0,0
ffc081a0: 41 9e 00 38 beq- cr7,ffc081d8 <_POSIX_Timer_TSR+0x6c>
activated = _POSIX_Timer_Insert_helper(
ffc081a4: 80 9f 00 64 lwz r4,100(r31)
ffc081a8: 3c c0 ff c1 lis r6,-63
ffc081ac: 80 bf 00 08 lwz r5,8(r31)
ffc081b0: 38 c6 81 6c addi r6,r6,-32404
ffc081b4: 38 7f 00 10 addi r3,r31,16
ffc081b8: 7f e7 fb 78 mr r7,r31
ffc081bc: 48 00 6f 09 bl ffc0f0c4 <_POSIX_Timer_Insert_helper>
ptimer->ticks,
ptimer->Object.id,
_POSIX_Timer_TSR,
ptimer
);
if ( !activated )
ffc081c0: 2f 83 00 00 cmpwi cr7,r3,0
ffc081c4: 41 be 00 30 beq+ cr7,ffc081f4 <_POSIX_Timer_TSR+0x88>
return;
/* Store the time when the timer was started again */
_TOD_Get( &ptimer->time );
ffc081c8: 38 7f 00 6c addi r3,r31,108
ffc081cc: 48 00 1b 79 bl ffc09d44 <_TOD_Get>
/* The state really did not change but just to be safe */
ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;
ffc081d0: 38 00 00 03 li r0,3
ffc081d4: 48 00 00 08 b ffc081dc <_POSIX_Timer_TSR+0x70>
} else {
/* Indicates that the timer is stopped */
ptimer->state = POSIX_TIMER_STATE_CREATE_STOP;
ffc081d8: 38 00 00 04 li r0,4 <== NOT EXECUTED
ffc081dc: 98 1f 00 3c stb r0,60(r31)
/*
* The sending of the signal to the process running the handling function
* specified for that signal is simulated
*/
if ( pthread_kill ( ptimer->thread_id, ptimer->inf.sigev_signo ) ) {
ffc081e0: 80 7f 00 38 lwz r3,56(r31)
ffc081e4: 80 9f 00 44 lwz r4,68(r31)
ffc081e8: 48 00 69 51 bl ffc0eb38 <pthread_kill>
}
/* After the signal handler returns, the count of expirations of the
* timer must be set to 0.
*/
ptimer->overrun = 0;
ffc081ec: 38 00 00 00 li r0,0
ffc081f0: 90 1f 00 68 stw r0,104(r31)
}
ffc081f4: 80 01 00 14 lwz r0,20(r1)
ffc081f8: 83 e1 00 0c lwz r31,12(r1)
ffc081fc: 38 21 00 10 addi r1,r1,16
ffc08200: 7c 08 03 a6 mtlr r0
ffc08204: 4e 80 00 20 blr
ffc0a60c <_Thread_Initialize>:
if ( !actual_stack_size || actual_stack_size < stack_size )
return false; /* stack allocation failed */
stack = the_thread->Start.stack;
#else
if ( !stack_area ) {
ffc0a60c: 2c 05 00 00 cmpwi r5,0
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
ffc0a610: 94 21 ff d8 stwu r1,-40(r1)
ffc0a614: 7c 08 02 a6 mflr r0
ffc0a618: 93 41 00 10 stw r26,16(r1)
ffc0a61c: 7d 3a 4b 78 mr r26,r9
ffc0a620: 90 01 00 2c stw r0,44(r1)
/*
* Zero out all the allocated memory fields
*/
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
the_thread->API_Extensions[i] = NULL;
ffc0a624: 38 00 00 00 li r0,0
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
ffc0a628: 81 21 00 38 lwz r9,56(r1)
ffc0a62c: 93 01 00 08 stw r24,8(r1)
ffc0a630: 93 21 00 0c stw r25,12(r1)
ffc0a634: 7d 59 53 78 mr r25,r10
ffc0a638: 93 61 00 14 stw r27,20(r1)
ffc0a63c: 7d 1b 43 78 mr r27,r8
ffc0a640: 93 81 00 18 stw r28,24(r1)
ffc0a644: 7c fc 3b 78 mr r28,r7
ffc0a648: 93 a1 00 1c stw r29,28(r1)
ffc0a64c: 7c dd 33 78 mr r29,r6
ffc0a650: 93 c1 00 20 stw r30,32(r1)
ffc0a654: 7c 7e 1b 78 mr r30,r3
ffc0a658: 93 e1 00 24 stw r31,36(r1)
ffc0a65c: 7c 9f 23 78 mr r31,r4
ffc0a660: 83 09 00 00 lwz r24,0(r9)
/*
* Zero out all the allocated memory fields
*/
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
the_thread->API_Extensions[i] = NULL;
ffc0a664: 90 04 01 44 stw r0,324(r4)
ffc0a668: 90 04 01 48 stw r0,328(r4)
ffc0a66c: 90 04 01 4c stw r0,332(r4)
extensions_area = NULL;
the_thread->libc_reent = NULL;
ffc0a670: 90 04 01 40 stw r0,320(r4)
if ( !actual_stack_size || actual_stack_size < stack_size )
return false; /* stack allocation failed */
stack = the_thread->Start.stack;
#else
if ( !stack_area ) {
ffc0a674: 40 a2 00 30 bne+ ffc0a6a4 <_Thread_Initialize+0x98>
actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
ffc0a678: 7c 83 23 78 mr r3,r4
ffc0a67c: 7c c4 33 78 mr r4,r6
ffc0a680: 48 00 0a fd bl ffc0b17c <_Thread_Stack_Allocate>
if ( !actual_stack_size || actual_stack_size < stack_size )
ffc0a684: 2c 03 00 00 cmpwi r3,0
ffc0a688: 41 82 01 b8 beq- ffc0a840 <_Thread_Initialize+0x234>
ffc0a68c: 7f 83 e8 40 cmplw cr7,r3,r29
ffc0a690: 41 9c 01 b0 blt- cr7,ffc0a840 <_Thread_Initialize+0x234>
return false; /* stack allocation failed */
stack = the_thread->Start.stack;
the_thread->Start.core_allocated_stack = true;
ffc0a694: 38 00 00 01 li r0,1
if ( !stack_area ) {
actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
if ( !actual_stack_size || actual_stack_size < stack_size )
return false; /* stack allocation failed */
stack = the_thread->Start.stack;
ffc0a698: 80 bf 00 d8 lwz r5,216(r31)
the_thread->Start.core_allocated_stack = true;
ffc0a69c: 98 1f 00 c8 stb r0,200(r31)
ffc0a6a0: 48 00 00 0c b ffc0a6ac <_Thread_Initialize+0xa0>
} else {
stack = stack_area;
actual_stack_size = stack_size;
the_thread->Start.core_allocated_stack = false;
ffc0a6a4: 98 04 00 c8 stb r0,200(r4)
ffc0a6a8: 7c c3 33 78 mr r3,r6
/*
* Allocate the floating point area for this thread
*/
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( is_fp ) {
ffc0a6ac: 2f 9c 00 00 cmpwi cr7,r28,0
Stack_Control *the_stack,
void *starting_address,
size_t size
)
{
the_stack->area = starting_address;
ffc0a6b0: 90 bf 00 d0 stw r5,208(r31)
ffc0a6b4: 3b 80 00 00 li r28,0
the_stack->size = size;
ffc0a6b8: 90 7f 00 cc stw r3,204(r31)
ffc0a6bc: 41 be 00 1c beq+ cr7,ffc0a6d8 <_Thread_Initialize+0xcc>
fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );
ffc0a6c0: 38 60 01 08 li r3,264
ffc0a6c4: 48 00 17 0d bl ffc0bdd0 <_Workspace_Allocate>
if ( !fp_area )
ffc0a6c8: 7c 7c 1b 79 mr. r28,r3
ffc0a6cc: 40 a2 00 0c bne+ ffc0a6d8 <_Thread_Initialize+0xcc>
ffc0a6d0: 3b a0 00 00 li r29,0
ffc0a6d4: 48 00 01 04 b ffc0a7d8 <_Thread_Initialize+0x1cc>
#endif
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
ffc0a6d8: 3d 20 00 00 lis r9,0
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;
ffc0a6dc: 93 9f 01 3c stw r28,316(r31)
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
ffc0a6e0: 38 00 00 00 li r0,0
#endif
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
ffc0a6e4: 80 69 27 9c lwz r3,10140(r9)
ffc0a6e8: 3b a0 00 00 li r29,0
the_watchdog->routine = routine;
the_watchdog->id = id;
the_watchdog->user_data = user_data;
ffc0a6ec: 90 1f 00 6c stw r0,108(r31)
ffc0a6f0: 2f 83 00 00 cmpwi cr7,r3,0
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;
ffc0a6f4: 93 9f 00 d4 stw r28,212(r31)
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
ffc0a6f8: 90 1f 00 50 stw r0,80(r31)
the_watchdog->routine = routine;
ffc0a6fc: 90 1f 00 64 stw r0,100(r31)
the_watchdog->id = id;
ffc0a700: 90 1f 00 68 stw r0,104(r31)
#endif
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
ffc0a704: 41 be 00 18 beq+ cr7,ffc0a71c <_Thread_Initialize+0x110>
extensions_area = _Workspace_Allocate(
ffc0a708: 38 63 00 01 addi r3,r3,1
ffc0a70c: 54 63 10 3a rlwinm r3,r3,2,0,29
ffc0a710: 48 00 16 c1 bl ffc0bdd0 <_Workspace_Allocate>
(_Thread_Maximum_extensions + 1) * sizeof( void * )
);
if ( !extensions_area )
ffc0a714: 7c 7d 1b 79 mr. r29,r3
ffc0a718: 41 82 00 c0 beq- ffc0a7d8 <_Thread_Initialize+0x1cc>
* if they are linked to the thread. An extension user may
* create the extension long after tasks have been created
* so they cannot rely on the thread create user extension
* call.
*/
if ( the_thread->extensions ) {
ffc0a71c: 2f 9d 00 00 cmpwi cr7,r29,0
(_Thread_Maximum_extensions + 1) * sizeof( void * )
);
if ( !extensions_area )
goto failed;
}
the_thread->extensions = (void **) extensions_area;
ffc0a720: 93 bf 01 50 stw r29,336(r31)
* if they are linked to the thread. An extension user may
* create the extension long after tasks have been created
* so they cannot rely on the thread create user extension
* call.
*/
if ( the_thread->extensions ) {
ffc0a724: 41 9e 00 30 beq- cr7,ffc0a754 <_Thread_Initialize+0x148>
for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )
ffc0a728: 3d 20 00 00 lis r9,0
ffc0a72c: 81 69 27 9c lwz r11,10140(r9)
the_thread->extensions[i] = NULL;
ffc0a730: 38 00 00 00 li r0,0
* 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++ )
ffc0a734: 39 20 00 00 li r9,0
ffc0a738: 48 00 00 0c b ffc0a744 <_Thread_Initialize+0x138>
the_thread->extensions[i] = NULL;
ffc0a73c: 81 1f 01 50 lwz r8,336(r31)
ffc0a740: 7c 08 51 2e stwx r0,r8,r10
* 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++ )
ffc0a744: 7f 89 58 40 cmplw cr7,r9,r11
the_thread->extensions[i] = NULL;
ffc0a748: 55 2a 10 3a rlwinm r10,r9,2,0,29
* 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++ )
ffc0a74c: 39 29 00 01 addi r9,r9,1
ffc0a750: 40 9d ff ec ble+ cr7,ffc0a73c <_Thread_Initialize+0x130>
the_thread->Start.is_preemptible = is_preemptible;
the_thread->Start.budget_algorithm = budget_algorithm;
the_thread->Start.budget_callout = budget_callout;
switch ( budget_algorithm ) {
ffc0a754: 2f 99 00 02 cmpwi cr7,r25,2
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
the_thread->Start.budget_algorithm = budget_algorithm;
the_thread->Start.budget_callout = budget_callout;
ffc0a758: 80 01 00 30 lwz r0,48(r1)
/*
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
ffc0a75c: 9b 5f 00 b4 stb r26,180(r31)
the_thread->Start.budget_algorithm = budget_algorithm;
the_thread->Start.budget_callout = budget_callout;
ffc0a760: 90 1f 00 bc stw r0,188(r31)
/*
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
the_thread->Start.budget_algorithm = budget_algorithm;
ffc0a764: 93 3f 00 b8 stw r25,184(r31)
the_thread->Start.budget_callout = budget_callout;
switch ( budget_algorithm ) {
ffc0a768: 40 be 00 10 bne+ cr7,ffc0a778 <_Thread_Initialize+0x16c>
case THREAD_CPU_BUDGET_ALGORITHM_NONE:
case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE:
break;
#if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE)
case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE:
the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;
ffc0a76c: 3d 20 00 00 lis r9,0
ffc0a770: 80 09 27 68 lwz r0,10088(r9)
ffc0a774: 90 1f 00 78 stw r0,120(r31)
case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:
break;
#endif
}
the_thread->Start.isr_level = isr_level;
ffc0a778: 80 01 00 34 lwz r0,52(r1)
the_thread->current_state = STATES_DORMANT;
the_thread->Wait.queue = NULL;
ffc0a77c: 3b 40 00 00 li r26,0
ffc0a780: 93 5f 00 44 stw r26,68(r31)
#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 );
ffc0a784: 7f 64 db 78 mr r4,r27
ffc0a788: 7f e3 fb 78 mr r3,r31
case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:
break;
#endif
}
the_thread->Start.isr_level = isr_level;
ffc0a78c: 90 1f 00 c0 stw r0,192(r31)
the_thread->current_state = STATES_DORMANT;
ffc0a790: 38 00 00 01 li r0,1
ffc0a794: 90 1f 00 10 stw r0,16(r31)
the_thread->Wait.queue = NULL;
the_thread->resource_count = 0;
ffc0a798: 93 5f 00 1c stw r26,28(r31)
#if defined(RTEMS_ITRON_API)
the_thread->suspend_count = 0;
#endif
the_thread->real_priority = priority;
ffc0a79c: 93 7f 00 18 stw r27,24(r31)
the_thread->Start.initial_priority = priority;
ffc0a7a0: 93 7f 00 c4 stw r27,196(r31)
_Thread_Set_priority( the_thread, priority );
ffc0a7a4: 48 00 07 d1 bl ffc0af74 <_Thread_Set_priority>
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
ffc0a7a8: a0 1f 00 0a lhz r0,10(r31)
ffc0a7ac: 81 3e 00 1c lwz r9,28(r30)
* 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 );
ffc0a7b0: 7f e3 fb 78 mr r3,r31
ffc0a7b4: 54 00 10 3a rlwinm r0,r0,2,0,29
/*
* Initialize the CPU usage statistics
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_Set_to_zero( &the_thread->cpu_time_used );
ffc0a7b8: 93 5f 00 88 stw r26,136(r31)
ffc0a7bc: 7f e9 01 2e stwx r31,r9,r0
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
ffc0a7c0: 93 1f 00 0c stw r24,12(r31)
ffc0a7c4: 93 5f 00 84 stw r26,132(r31)
* 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 );
ffc0a7c8: 48 00 10 d9 bl ffc0b8a0 <_User_extensions_Thread_create>
if ( extension_status )
ffc0a7cc: 2f 83 00 00 cmpwi cr7,r3,0
ffc0a7d0: 38 60 00 01 li r3,1
ffc0a7d4: 40 9e 00 70 bne- cr7,ffc0a844 <_Thread_Initialize+0x238>
return true;
failed:
if ( the_thread->libc_reent )
ffc0a7d8: 80 7f 01 40 lwz r3,320(r31)
ffc0a7dc: 2f 83 00 00 cmpwi cr7,r3,0
ffc0a7e0: 41 9e 00 08 beq- cr7,ffc0a7e8 <_Thread_Initialize+0x1dc>
_Workspace_Free( the_thread->libc_reent );
ffc0a7e4: 48 00 16 21 bl ffc0be04 <_Workspace_Free>
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
if ( the_thread->API_Extensions[i] )
ffc0a7e8: 80 7f 01 44 lwz r3,324(r31)
ffc0a7ec: 2f 83 00 00 cmpwi cr7,r3,0
ffc0a7f0: 41 9e 00 08 beq- cr7,ffc0a7f8 <_Thread_Initialize+0x1ec>
_Workspace_Free( the_thread->API_Extensions[i] );
ffc0a7f4: 48 00 16 11 bl ffc0be04 <_Workspace_Free>
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] )
ffc0a7f8: 80 7f 01 48 lwz r3,328(r31)
ffc0a7fc: 2f 83 00 00 cmpwi cr7,r3,0
ffc0a800: 41 9e 00 08 beq- cr7,ffc0a808 <_Thread_Initialize+0x1fc>
_Workspace_Free( the_thread->API_Extensions[i] );
ffc0a804: 48 00 16 01 bl ffc0be04 <_Workspace_Free>
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] )
ffc0a808: 80 7f 01 4c lwz r3,332(r31)
ffc0a80c: 2f 83 00 00 cmpwi cr7,r3,0
ffc0a810: 41 9e 00 08 beq- cr7,ffc0a818 <_Thread_Initialize+0x20c>
_Workspace_Free( the_thread->API_Extensions[i] );
ffc0a814: 48 00 15 f1 bl ffc0be04 <_Workspace_Free> <== NOT EXECUTED
if ( extensions_area )
ffc0a818: 2f 9d 00 00 cmpwi cr7,r29,0
ffc0a81c: 41 9e 00 0c beq- cr7,ffc0a828 <_Thread_Initialize+0x21c>
(void) _Workspace_Free( extensions_area );
ffc0a820: 7f a3 eb 78 mr r3,r29
ffc0a824: 48 00 15 e1 bl ffc0be04 <_Workspace_Free>
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( fp_area )
ffc0a828: 2f 9c 00 00 cmpwi cr7,r28,0
ffc0a82c: 41 9e 00 0c beq- cr7,ffc0a838 <_Thread_Initialize+0x22c>
(void) _Workspace_Free( fp_area );
ffc0a830: 7f 83 e3 78 mr r3,r28
ffc0a834: 48 00 15 d1 bl ffc0be04 <_Workspace_Free>
#endif
_Thread_Stack_Free( the_thread );
ffc0a838: 7f e3 fb 78 mr r3,r31
ffc0a83c: 48 00 09 cd bl ffc0b208 <_Thread_Stack_Free>
return false;
ffc0a840: 38 60 00 00 li r3,0
}
ffc0a844: 80 01 00 2c lwz r0,44(r1)
ffc0a848: 83 01 00 08 lwz r24,8(r1)
ffc0a84c: 7c 08 03 a6 mtlr r0
ffc0a850: 83 21 00 0c lwz r25,12(r1)
ffc0a854: 83 41 00 10 lwz r26,16(r1)
ffc0a858: 83 61 00 14 lwz r27,20(r1)
ffc0a85c: 83 81 00 18 lwz r28,24(r1)
ffc0a860: 83 a1 00 1c lwz r29,28(r1)
ffc0a864: 83 c1 00 20 lwz r30,32(r1)
ffc0a868: 83 e1 00 24 lwz r31,36(r1)
ffc0a86c: 38 21 00 28 addi r1,r1,40
ffc0a870: 4e 80 00 20 blr
ffc0bfd4 <_Thread_Restart>:
bool _Thread_Restart(
Thread_Control *the_thread,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
ffc0bfd4: 94 21 ff e8 stwu r1,-24(r1)
ffc0bfd8: 7c 08 02 a6 mflr r0
ffc0bfdc: 90 01 00 1c stw r0,28(r1)
if ( !_States_Is_dormant( the_thread->current_state ) ) {
ffc0bfe0: 80 03 00 10 lwz r0,16(r3)
bool _Thread_Restart(
Thread_Control *the_thread,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
ffc0bfe4: 93 e1 00 14 stw r31,20(r1)
ffc0bfe8: 7c 7f 1b 78 mr r31,r3
if ( !_States_Is_dormant( the_thread->current_state ) ) {
ffc0bfec: 70 09 00 01 andi. r9,r0,1
ffc0bff0: 38 00 00 00 li r0,0
ffc0bff4: 40 a2 00 74 bne+ ffc0c068 <_Thread_Restart+0x94>
_Thread_Set_transient( the_thread );
ffc0bff8: 90 81 00 08 stw r4,8(r1)
ffc0bffc: 90 a1 00 0c stw r5,12(r1)
ffc0c000: 48 00 01 f5 bl ffc0c1f4 <_Thread_Set_transient>
_Thread_Reset( the_thread, pointer_argument, numeric_argument );
ffc0c004: 7f e3 fb 78 mr r3,r31
ffc0c008: 80 81 00 08 lwz r4,8(r1)
ffc0c00c: 80 a1 00 0c lwz r5,12(r1)
ffc0c010: 48 00 43 09 bl ffc10318 <_Thread_Reset>
_Thread_Load_environment( the_thread );
ffc0c014: 7f e3 fb 78 mr r3,r31
ffc0c018: 48 00 3e fd bl ffc0ff14 <_Thread_Load_environment>
_Thread_Ready( the_thread );
ffc0c01c: 7f e3 fb 78 mr r3,r31
ffc0c020: 48 00 42 1d bl ffc1023c <_Thread_Ready>
_User_extensions_Thread_restart( the_thread );
ffc0c024: 7f e3 fb 78 mr r3,r31
ffc0c028: 48 00 0a 99 bl ffc0cac0 <_User_extensions_Thread_restart>
if ( _Thread_Is_executing ( the_thread ) )
ffc0c02c: 3d 20 00 00 lis r9,0
ffc0c030: 81 29 27 fc lwz r9,10236(r9)
ffc0c034: 38 00 00 01 li r0,1
ffc0c038: 7f 9f 48 00 cmpw cr7,r31,r9
ffc0c03c: 40 be 00 2c bne+ cr7,ffc0c068 <_Thread_Restart+0x94>
*/
RTEMS_INLINE_ROUTINE void _Thread_Restart_self( void )
{
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( _Thread_Executing->fp_context != NULL )
ffc0c040: 80 1f 01 3c lwz r0,316(r31)
ffc0c044: 2f 80 00 00 cmpwi cr7,r0,0
ffc0c048: 41 9e 00 0c beq- cr7,ffc0c054 <_Thread_Restart+0x80>
_Context_Restore_fp( &_Thread_Executing->fp_context );
ffc0c04c: 38 7f 01 3c addi r3,r31,316
ffc0c050: 48 01 42 b1 bl ffc20300 <_CPU_Context_restore_fp>
#endif
_CPU_Context_Restart_self( &_Thread_Executing->Registers );
ffc0c054: 3d 20 00 00 lis r9,0
ffc0c058: 80 69 27 fc lwz r3,10236(r9)
ffc0c05c: 38 63 00 dc addi r3,r3,220
ffc0c060: 48 01 44 61 bl ffc204c0 <_CPU_Context_restore>
ffc0c064: 38 00 00 01 li r0,1 <== NOT EXECUTED
return true;
}
return false;
}
ffc0c068: 7c 03 03 78 mr r3,r0
ffc0c06c: 80 01 00 1c lwz r0,28(r1)
ffc0c070: 83 e1 00 14 lwz r31,20(r1)
ffc0c074: 38 21 00 18 addi r1,r1,24
ffc0c078: 7c 08 03 a6 mtlr r0
ffc0c07c: 4e 80 00 20 blr
ffc0ac10 <_Thread_queue_Enqueue_priority>:
Priority_Control priority;
States_Control block_state;
_Chain_Initialize_empty( &the_thread->Wait.Block2n );
priority = the_thread->current_priority;
ffc0ac10: 80 04 00 14 lwz r0,20(r4)
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
ffc0ac14: 39 04 00 3c addi r8,r4,60
Thread_blocking_operation_States _Thread_queue_Enqueue_priority (
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread,
ISR_Level *level_p
)
{
ffc0ac18: 94 21 ff f0 stwu r1,-16(r1)
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
ffc0ac1c: 39 64 00 38 addi r11,r4,56
priority = the_thread->current_priority;
header_index = _Thread_queue_Header_number( priority );
header = &the_thread_queue->Queues.Priority[ header_index ];
block_state = the_thread_queue->state;
if ( _Thread_queue_Is_reverse_search( priority ) )
ffc0ac20: 70 09 00 20 andi. r9,r0,32
_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 ];
ffc0ac24: 54 0a d1 be rlwinm r10,r0,26,6,31
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
ffc0ac28: 91 04 00 38 stw r8,56(r4)
ffc0ac2c: 1d 4a 00 0c mulli r10,r10,12
Thread_blocking_operation_States _Thread_queue_Enqueue_priority (
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread,
ISR_Level *level_p
)
{
ffc0ac30: 93 e1 00 0c stw r31,12(r1)
the_chain->permanent_null = NULL;
ffc0ac34: 39 00 00 00 li r8,0
_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 ];
block_state = the_thread_queue->state;
ffc0ac38: 81 23 00 38 lwz r9,56(r3)
_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 ];
ffc0ac3c: 7d 43 52 14 add r10,r3,r10
ffc0ac40: 91 04 00 3c stw r8,60(r4)
the_chain->last = _Chain_Head(the_chain);
ffc0ac44: 91 64 00 40 stw r11,64(r4)
block_state = the_thread_queue->state;
if ( _Thread_queue_Is_reverse_search( priority ) )
ffc0ac48: 40 82 00 98 bne- ffc0ace0 <_Thread_queue_Enqueue_priority+0xd0>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
ffc0ac4c: 38 ca 00 04 addi r6,r10,4
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0ac50: 7d 00 00 a6 mfmsr r8
ffc0ac54: 7d 70 42 a6 mfsprg r11,0
ffc0ac58: 7d 0b 58 78 andc r11,r8,r11
ffc0ac5c: 7d 60 01 24 mtmsr r11
goto restart_reverse_search;
restart_forward_search:
search_priority = PRIORITY_MINIMUM - 1;
_ISR_Disable( level );
search_thread = (Thread_Control *) header->first;
ffc0ac60: 38 e0 ff ff li r7,-1
ffc0ac64: 81 6a 00 00 lwz r11,0(r10)
while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {
ffc0ac68: 48 00 00 34 b ffc0ac9c <_Thread_queue_Enqueue_priority+0x8c>
search_priority = search_thread->current_priority;
ffc0ac6c: 80 eb 00 14 lwz r7,20(r11)
if ( priority <= search_priority )
ffc0ac70: 7f 80 38 40 cmplw cr7,r0,r7
ffc0ac74: 40 9d 00 30 ble- cr7,ffc0aca4 <_Thread_queue_Enqueue_priority+0x94>
static inline void ppc_interrupt_flash( uint32_t level )
{
uint32_t current_level;
asm volatile (
ffc0ac78: 7d 80 00 a6 mfmsr r12
ffc0ac7c: 7d 00 01 24 mtmsr r8
ffc0ac80: 7d 80 01 24 mtmsr r12
search_priority = search_thread->current_priority;
if ( priority <= search_priority )
break;
#endif
_ISR_Flash( level );
if ( !_States_Are_set( search_thread->current_state, block_state) ) {
ffc0ac84: 81 8b 00 10 lwz r12,16(r11)
ffc0ac88: 7d 3f 60 39 and. r31,r9,r12
ffc0ac8c: 40 a2 00 0c bne+ ffc0ac98 <_Thread_queue_Enqueue_priority+0x88>
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0ac90: 7d 00 01 24 mtmsr r8 <== NOT EXECUTED
ffc0ac94: 4b ff ff bc b ffc0ac50 <_Thread_queue_Enqueue_priority+0x40><== NOT EXECUTED
_ISR_Enable( level );
goto restart_forward_search;
}
search_thread =
(Thread_Control *)search_thread->Object.Node.next;
ffc0ac98: 81 6b 00 00 lwz r11,0(r11)
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 ) ) {
ffc0ac9c: 7f 8b 30 00 cmpw cr7,r11,r6
ffc0aca0: 40 9e ff cc bne+ cr7,ffc0ac6c <_Thread_queue_Enqueue_priority+0x5c>
}
search_thread =
(Thread_Control *)search_thread->Object.Node.next;
}
if ( the_thread_queue->sync_state !=
ffc0aca4: 81 43 00 30 lwz r10,48(r3)
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 ) ) {
ffc0aca8: 7d 09 43 78 mr r9,r8
}
search_thread =
(Thread_Control *)search_thread->Object.Node.next;
}
if ( the_thread_queue->sync_state !=
ffc0acac: 2f 8a 00 01 cmpwi cr7,r10,1
ffc0acb0: 40 be 00 f8 bne+ cr7,ffc0ada8 <_Thread_queue_Enqueue_priority+0x198>
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
if ( priority == search_priority )
ffc0acb4: 7f 80 38 00 cmpw cr7,r0,r7
if ( the_thread_queue->sync_state !=
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
ffc0acb8: 38 00 00 00 li r0,0
ffc0acbc: 90 03 00 30 stw r0,48(r3)
if ( priority == search_priority )
ffc0acc0: 41 9e 00 c4 beq- cr7,ffc0ad84 <_Thread_queue_Enqueue_priority+0x174>
goto equal_priority;
search_node = (Chain_Node *) search_thread;
previous_node = search_node->previous;
ffc0acc4: 81 2b 00 04 lwz r9,4(r11)
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
ffc0acc8: 91 64 00 00 stw r11,0(r4)
the_node->previous = previous_node;
ffc0accc: 91 24 00 04 stw r9,4(r4)
previous_node->next = the_node;
search_node->previous = the_node;
the_thread->Wait.queue = the_thread_queue;
ffc0acd0: 90 64 00 44 stw r3,68(r4)
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;
ffc0acd4: 90 89 00 00 stw r4,0(r9)
search_node->previous = the_node;
ffc0acd8: 90 8b 00 04 stw r4,4(r11)
the_thread->Wait.queue = the_thread_queue;
_ISR_Enable( level );
ffc0acdc: 48 00 00 9c b ffc0ad78 <_Thread_queue_Enqueue_priority+0x168>
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
restart_reverse_search:
search_priority = PRIORITY_MAXIMUM + 1;
ffc0ace0: 3c c0 00 00 lis r6,0
ffc0ace4: 38 c6 26 a4 addi r6,r6,9892
ffc0ace8: 88 e6 00 00 lbz r7,0(r6)
ffc0acec: 38 e7 00 01 addi r7,r7,1
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0acf0: 7d 00 00 a6 mfmsr r8
ffc0acf4: 7d 70 42 a6 mfsprg r11,0
ffc0acf8: 7d 0b 58 78 andc r11,r8,r11
ffc0acfc: 7d 60 01 24 mtmsr r11
_ISR_Disable( level );
search_thread = (Thread_Control *) header->last;
ffc0ad00: 81 6a 00 08 lwz r11,8(r10)
while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {
ffc0ad04: 48 00 00 34 b ffc0ad38 <_Thread_queue_Enqueue_priority+0x128>
search_priority = search_thread->current_priority;
ffc0ad08: 80 eb 00 14 lwz r7,20(r11)
if ( priority >= search_priority )
ffc0ad0c: 7f 80 38 40 cmplw cr7,r0,r7
ffc0ad10: 40 9c 00 30 bge- cr7,ffc0ad40 <_Thread_queue_Enqueue_priority+0x130>
static inline void ppc_interrupt_flash( uint32_t level )
{
uint32_t current_level;
asm volatile (
ffc0ad14: 7d 80 00 a6 mfmsr r12
ffc0ad18: 7d 00 01 24 mtmsr r8
ffc0ad1c: 7d 80 01 24 mtmsr r12
search_priority = search_thread->current_priority;
if ( priority >= search_priority )
break;
#endif
_ISR_Flash( level );
if ( !_States_Are_set( search_thread->current_state, block_state) ) {
ffc0ad20: 81 8b 00 10 lwz r12,16(r11)
ffc0ad24: 7d 3f 60 39 and. r31,r9,r12
ffc0ad28: 40 a2 00 0c bne+ ffc0ad34 <_Thread_queue_Enqueue_priority+0x124>
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0ad2c: 7d 00 01 24 mtmsr r8
ffc0ad30: 4b ff ff b8 b ffc0ace8 <_Thread_queue_Enqueue_priority+0xd8>
_ISR_Enable( level );
goto restart_reverse_search;
}
search_thread = (Thread_Control *)
ffc0ad34: 81 6b 00 04 lwz r11,4(r11)
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 ) ) {
ffc0ad38: 7f 8b 50 00 cmpw cr7,r11,r10
ffc0ad3c: 40 9e ff cc bne+ cr7,ffc0ad08 <_Thread_queue_Enqueue_priority+0xf8>
}
search_thread = (Thread_Control *)
search_thread->Object.Node.previous;
}
if ( the_thread_queue->sync_state !=
ffc0ad40: 81 43 00 30 lwz r10,48(r3)
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 ) ) {
ffc0ad44: 7d 09 43 78 mr r9,r8
}
search_thread = (Thread_Control *)
search_thread->Object.Node.previous;
}
if ( the_thread_queue->sync_state !=
ffc0ad48: 2f 8a 00 01 cmpwi cr7,r10,1
ffc0ad4c: 40 be 00 5c bne+ cr7,ffc0ada8 <_Thread_queue_Enqueue_priority+0x198>
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
if ( priority == search_priority )
ffc0ad50: 7f 80 38 00 cmpw cr7,r0,r7
if ( the_thread_queue->sync_state !=
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
ffc0ad54: 38 00 00 00 li r0,0
ffc0ad58: 90 03 00 30 stw r0,48(r3)
if ( priority == search_priority )
ffc0ad5c: 41 9e 00 28 beq- cr7,ffc0ad84 <_Thread_queue_Enqueue_priority+0x174>
goto equal_priority;
search_node = (Chain_Node *) search_thread;
next_node = search_node->next;
ffc0ad60: 81 2b 00 00 lwz r9,0(r11)
the_node = (Chain_Node *) the_thread;
the_node->next = next_node;
the_node->previous = search_node;
ffc0ad64: 91 64 00 04 stw r11,4(r4)
search_node = (Chain_Node *) search_thread;
next_node = search_node->next;
the_node = (Chain_Node *) the_thread;
the_node->next = next_node;
ffc0ad68: 91 24 00 00 stw r9,0(r4)
the_node->previous = search_node;
search_node->next = the_node;
next_node->previous = the_node;
the_thread->Wait.queue = the_thread_queue;
ffc0ad6c: 90 64 00 44 stw r3,68(r4)
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;
ffc0ad70: 90 8b 00 00 stw r4,0(r11)
next_node->previous = the_node;
ffc0ad74: 90 89 00 04 stw r4,4(r9)
ffc0ad78: 7d 00 01 24 mtmsr r8
ffc0ad7c: 38 60 00 01 li r3,1
the_thread->Wait.queue = the_thread_queue;
_ISR_Enable( level );
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
ffc0ad80: 48 00 00 30 b ffc0adb0 <_Thread_queue_Enqueue_priority+0x1a0>
ffc0ad84: 39 6b 00 3c addi r11,r11,60
the_node->next = search_node;
the_node->previous = previous_node;
previous_node->next = the_node;
search_node->previous = the_node;
the_thread->Wait.queue = the_thread_queue;
ffc0ad88: 90 64 00 44 stw r3,68(r4)
_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;
ffc0ad8c: 81 4b 00 04 lwz r10,4(r11)
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
ffc0ad90: 91 64 00 00 stw r11,0(r4)
the_node->previous = previous_node;
ffc0ad94: 91 44 00 04 stw r10,4(r4)
previous_node->next = the_node;
ffc0ad98: 90 8a 00 00 stw r4,0(r10)
search_node->previous = the_node;
ffc0ad9c: 90 8b 00 04 stw r4,4(r11)
ffc0ada0: 7d 20 01 24 mtmsr r9
ffc0ada4: 4b ff ff d8 b ffc0ad7c <_Thread_queue_Enqueue_priority+0x16c>
* 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;
ffc0ada8: 91 25 00 00 stw r9,0(r5)
return the_thread_queue->sync_state;
ffc0adac: 80 63 00 30 lwz r3,48(r3)
}
ffc0adb0: 83 e1 00 0c lwz r31,12(r1)
ffc0adb4: 38 21 00 10 addi r1,r1,16
ffc0adb8: 4e 80 00 20 blr
ffc19d0c <_Timer_server_Body>:
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
ffc19d0c: 94 21 ff 98 stwu r1,-104(r1)
ffc19d10: 7c 08 02 a6 mflr r0
ffc19d14: 92 01 00 28 stw r16,40(r1)
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
ffc19d18: 3a 01 00 08 addi r16,r1,8
ffc19d1c: 90 01 00 6c stw r0,108(r1)
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
ffc19d20: 38 00 00 00 li r0,0
ffc19d24: 93 01 00 48 stw r24,72(r1)
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
ffc19d28: 3b 01 00 0c addi r24,r1,12
ffc19d2c: 93 61 00 54 stw r27,84(r1)
ffc19d30: 3b 61 00 18 addi r27,r1,24
ffc19d34: 93 c1 00 60 stw r30,96(r1)
ffc19d38: 3b c1 00 14 addi r30,r1,20
ffc19d3c: 92 21 00 2c stw r17,44(r1)
static void _Timer_server_Process_interval_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;
ffc19d40: 3e 20 00 00 lis r17,0
ffc19d44: 3a 31 28 c0 addi r17,r17,10432
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
ffc19d48: 92 41 00 30 stw r18,48(r1)
static void _Timer_server_Process_tod_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
ffc19d4c: 3e 40 00 00 lis r18,0
ffc19d50: 3a 52 28 88 addi r18,r18,10376
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
ffc19d54: 93 21 00 4c stw r25,76(r1)
ffc19d58: 3f 20 00 00 lis r25,0
ffc19d5c: 3b 39 28 68 addi r25,r25,10344
ffc19d60: 93 a1 00 5c stw r29,92(r1)
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
ffc19d64: 90 01 00 18 stw r0,24(r1)
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
ffc19d68: 93 01 00 08 stw r24,8(r1)
the_chain->permanent_null = NULL;
ffc19d6c: 90 01 00 0c stw r0,12(r1)
the_chain->last = _Chain_Head(the_chain);
ffc19d70: 92 01 00 10 stw r16,16(r1)
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
ffc19d74: 93 61 00 14 stw r27,20(r1)
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
ffc19d78: 93 c1 00 1c stw r30,28(r1)
ffc19d7c: 92 61 00 34 stw r19,52(r1)
static void _Timer_server_Stop_interval_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );
ffc19d80: 3a 63 00 08 addi r19,r3,8
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
ffc19d84: 92 81 00 38 stw r20,56(r1)
static void _Timer_server_Stop_tod_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
ffc19d88: 3a 83 00 40 addi r20,r3,64
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
ffc19d8c: 92 a1 00 3c stw r21,60(r1)
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(
Chain_Control *the_chain
)
{
if ( !_Chain_Is_empty(the_chain))
ffc19d90: 3a a0 00 00 li r21,0
ffc19d94: 92 c1 00 40 stw r22,64(r1)
* the active flag of the timer server is true.
*/
(*watchdog->routine)( watchdog->id, watchdog->user_data );
}
} else {
ts->active = false;
ffc19d98: 3a c0 00 00 li r22,0
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
ffc19d9c: 92 e1 00 44 stw r23,68(r1)
_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;
ffc19da0: 3a e0 00 01 li r23,1
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
ffc19da4: 93 41 00 50 stw r26,80(r1)
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
watchdogs->last_snapshot = snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
ffc19da8: 3b 43 00 30 addi r26,r3,48
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
ffc19dac: 93 81 00 58 stw r28,88(r1)
/*
* 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 );
ffc19db0: 3b 83 00 68 addi r28,r3,104
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
ffc19db4: 93 e1 00 64 stw r31,100(r1)
ffc19db8: 7c 7f 1b 78 mr r31,r3
{
/*
* 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;
ffc19dbc: 92 1f 00 78 stw r16,120(r31)
static void _Timer_server_Process_interval_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;
ffc19dc0: 80 11 00 00 lwz r0,0(r17)
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
watchdogs->last_snapshot = snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
ffc19dc4: 7f c5 f3 78 mr r5,r30
Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;
/*
* We assume adequate unsigned arithmetic here.
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
ffc19dc8: 80 9f 00 3c lwz r4,60(r31)
watchdogs->last_snapshot = snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
ffc19dcc: 7f 43 d3 78 mr r3,r26
/*
* We assume adequate unsigned arithmetic here.
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
watchdogs->last_snapshot = snapshot;
ffc19dd0: 90 1f 00 3c stw r0,60(r31)
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
ffc19dd4: 7c 84 00 50 subf r4,r4,r0
ffc19dd8: 48 00 4f 6d bl ffc1ed44 <_Watchdog_Adjust_to_chain>
static void _Timer_server_Process_tod_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
ffc19ddc: 83 b2 00 00 lwz r29,0(r18)
Watchdog_Interval last_snapshot = watchdogs->last_snapshot;
ffc19de0: 80 bf 00 74 lwz r5,116(r31)
/*
* 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 ) {
ffc19de4: 7f 9d 28 40 cmplw cr7,r29,r5
ffc19de8: 40 bd 00 18 ble+ cr7,ffc19e00 <_Timer_server_Body+0xf4>
/*
* 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 );
ffc19dec: 7c 85 e8 50 subf r4,r5,r29
ffc19df0: 7f 83 e3 78 mr r3,r28
ffc19df4: 7f c5 f3 78 mr r5,r30
ffc19df8: 48 00 4f 4d bl ffc1ed44 <_Watchdog_Adjust_to_chain>
ffc19dfc: 48 00 00 18 b ffc19e14 <_Timer_server_Body+0x108>
} else if ( snapshot < last_snapshot ) {
ffc19e00: 40 bc 00 14 bge+ cr7,ffc19e14 <_Timer_server_Body+0x108>
/*
* 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 );
ffc19e04: 7c bd 28 50 subf r5,r29,r5
ffc19e08: 7f 83 e3 78 mr r3,r28
ffc19e0c: 38 80 00 01 li r4,1
ffc19e10: 48 00 4e 51 bl ffc1ec60 <_Watchdog_Adjust>
}
watchdogs->last_snapshot = snapshot;
ffc19e14: 93 bf 00 74 stw r29,116(r31)
}
static void _Timer_server_Process_insertions( Timer_server_Control *ts )
{
while ( true ) {
Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain );
ffc19e18: 80 7f 00 78 lwz r3,120(r31)
ffc19e1c: 48 00 0b 79 bl ffc1a994 <_Chain_Get>
if ( timer == NULL ) {
ffc19e20: 7c 64 1b 79 mr. r4,r3
ffc19e24: 41 82 00 34 beq- ffc19e58 <_Timer_server_Body+0x14c>
static void _Timer_server_Insert_timer(
Timer_server_Control *ts,
Timer_Control *timer
)
{
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
ffc19e28: 80 04 00 38 lwz r0,56(r4) <== NOT EXECUTED
ffc19e2c: 2f 00 00 01 cmpwi cr6,r0,1 <== NOT EXECUTED
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
} else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {
ffc19e30: 2f 80 00 03 cmpwi cr7,r0,3 <== NOT EXECUTED
static void _Timer_server_Insert_timer(
Timer_server_Control *ts,
Timer_Control *timer
)
{
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
ffc19e34: 40 ba 00 10 bne+ cr6,ffc19e44 <_Timer_server_Body+0x138><== NOT EXECUTED
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
ffc19e38: 38 84 00 10 addi r4,r4,16 <== NOT EXECUTED
ffc19e3c: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED
ffc19e40: 48 00 00 10 b ffc19e50 <_Timer_server_Body+0x144> <== NOT EXECUTED
} else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {
ffc19e44: 40 9e ff d4 bne+ cr7,ffc19e18 <_Timer_server_Body+0x10c><== NOT EXECUTED
_Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );
ffc19e48: 38 84 00 10 addi r4,r4,16 <== NOT EXECUTED
ffc19e4c: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED
ffc19e50: 48 00 4f ad bl ffc1edfc <_Watchdog_Insert> <== NOT EXECUTED
ffc19e54: 4b ff ff c4 b ffc19e18 <_Timer_server_Body+0x10c> <== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc19e58: 7c 00 00 a6 mfmsr r0
ffc19e5c: 7d 30 42 a6 mfsprg r9,0
ffc19e60: 7c 09 48 78 andc r9,r0,r9
ffc19e64: 7d 20 01 24 mtmsr r9
* body loop.
*/
_Timer_server_Process_insertions( ts );
_ISR_Disable( level );
if ( _Chain_Is_empty( insert_chain ) ) {
ffc19e68: 81 21 00 08 lwz r9,8(r1)
ffc19e6c: 7f 89 c0 00 cmpw cr7,r9,r24
ffc19e70: 40 be 00 1c bne+ cr7,ffc19e8c <_Timer_server_Body+0x180>
ts->insert_chain = NULL;
ffc19e74: 90 9f 00 78 stw r4,120(r31)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc19e78: 7c 00 01 24 mtmsr r0
_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 ) ) {
ffc19e7c: 80 01 00 14 lwz r0,20(r1)
ffc19e80: 7f 80 d8 00 cmpw cr7,r0,r27
ffc19e84: 40 be 00 10 bne+ cr7,ffc19e94 <_Timer_server_Body+0x188>
ffc19e88: 48 00 00 64 b ffc19eec <_Timer_server_Body+0x1e0>
ffc19e8c: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED
ffc19e90: 4b ff ff 30 b ffc19dc0 <_Timer_server_Body+0xb4> <== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc19e94: 7c 00 00 a6 mfmsr r0
ffc19e98: 7d 30 42 a6 mfsprg r9,0
ffc19e9c: 7c 09 48 78 andc r9,r0,r9
ffc19ea0: 7d 20 01 24 mtmsr r9
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
ffc19ea4: 81 21 00 14 lwz r9,20(r1)
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(
Chain_Control *the_chain
)
{
if ( !_Chain_Is_empty(the_chain))
ffc19ea8: 7f 09 d8 00 cmpw cr6,r9,r27
* It is essential that interrupts are disable here since an interrupt
* service routine may remove a watchdog from the chain.
*/
_ISR_Disable( level );
watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
if ( watchdog != NULL ) {
ffc19eac: 2f 89 00 00 cmpwi cr7,r9,0
ffc19eb0: 41 9a 00 34 beq- cr6,ffc19ee4 <_Timer_server_Body+0x1d8>
{
Chain_Node *return_node;
Chain_Node *new_first;
return_node = the_chain->first;
new_first = return_node->next;
ffc19eb4: 81 69 00 00 lwz r11,0(r9)
the_chain->first = new_first;
ffc19eb8: 91 61 00 14 stw r11,20(r1)
new_first->previous = _Chain_Head(the_chain);
ffc19ebc: 93 cb 00 04 stw r30,4(r11)
ffc19ec0: 41 9e 00 24 beq- cr7,ffc19ee4 <_Timer_server_Body+0x1d8>
watchdog->state = WATCHDOG_INACTIVE;
ffc19ec4: 92 a9 00 08 stw r21,8(r9)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc19ec8: 7c 00 01 24 mtmsr r0
/*
* 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 );
ffc19ecc: 80 09 00 1c lwz r0,28(r9)
ffc19ed0: 80 89 00 24 lwz r4,36(r9)
ffc19ed4: 80 69 00 20 lwz r3,32(r9)
ffc19ed8: 7c 09 03 a6 mtctr r0
ffc19edc: 4e 80 04 21 bctrl
}
ffc19ee0: 4b ff ff b4 b ffc19e94 <_Timer_server_Body+0x188>
ffc19ee4: 7c 00 01 24 mtmsr r0
ffc19ee8: 4b ff fe d4 b ffc19dbc <_Timer_server_Body+0xb0>
} else {
ts->active = false;
ffc19eec: 9a df 00 7c stb r22,124(r31)
ffc19ef0: 81 39 00 00 lwz r9,0(r25)
ffc19ef4: 38 09 00 01 addi r0,r9,1
ffc19ef8: 90 19 00 00 stw r0,0(r25)
/*
* Block until there is something to do.
*/
_Thread_Disable_dispatch();
_Thread_Set_state( ts->thread, STATES_DELAYING );
ffc19efc: 80 7f 00 00 lwz r3,0(r31)
ffc19f00: 38 80 00 08 li r4,8
ffc19f04: 48 00 41 81 bl ffc1e084 <_Thread_Set_state>
_Timer_server_Reset_interval_system_watchdog( ts );
ffc19f08: 7f e3 fb 78 mr r3,r31
ffc19f0c: 4b ff fd 01 bl ffc19c0c <_Timer_server_Reset_interval_system_watchdog>
_Timer_server_Reset_tod_system_watchdog( ts );
ffc19f10: 7f e3 fb 78 mr r3,r31
ffc19f14: 4b ff fd 79 bl ffc19c8c <_Timer_server_Reset_tod_system_watchdog>
_Thread_Enable_dispatch();
ffc19f18: 48 00 35 15 bl ffc1d42c <_Thread_Enable_dispatch>
ts->active = true;
ffc19f1c: 9a ff 00 7c stb r23,124(r31)
static void _Timer_server_Stop_interval_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );
ffc19f20: 7e 63 9b 78 mr r3,r19
ffc19f24: 48 00 50 31 bl ffc1ef54 <_Watchdog_Remove>
static void _Timer_server_Stop_tod_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
ffc19f28: 7e 83 a3 78 mr r3,r20
ffc19f2c: 48 00 50 29 bl ffc1ef54 <_Watchdog_Remove>
ffc19f30: 4b ff fe 8c b ffc19dbc <_Timer_server_Body+0xb0>
ffc19f34 <_Timer_server_Schedule_operation_method>:
static void _Timer_server_Schedule_operation_method(
Timer_server_Control *ts,
Timer_Control *timer
)
{
ffc19f34: 94 21 ff f0 stwu r1,-16(r1)
ffc19f38: 7c 08 02 a6 mflr r0
ffc19f3c: 7c 89 23 78 mr r9,r4
ffc19f40: 90 01 00 14 stw r0,20(r1)
if ( ts->insert_chain == NULL ) {
ffc19f44: 80 03 00 78 lwz r0,120(r3)
static void _Timer_server_Schedule_operation_method(
Timer_server_Control *ts,
Timer_Control *timer
)
{
ffc19f48: 93 e1 00 0c stw r31,12(r1)
ffc19f4c: 7c 7f 1b 78 mr r31,r3
if ( ts->insert_chain == NULL ) {
ffc19f50: 2f 80 00 00 cmpwi cr7,r0,0
ffc19f54: 40 be 01 24 bne+ cr7,ffc1a078 <_Timer_server_Schedule_operation_method+0x144>
ffc19f58: 3d 60 00 00 lis r11,0
ffc19f5c: 81 4b 28 68 lwz r10,10344(r11)
ffc19f60: 38 0a 00 01 addi r0,r10,1
ffc19f64: 90 0b 28 68 stw r0,10344(r11)
* being inserted. This could result in an integer overflow.
*/
_Thread_Disable_dispatch();
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
ffc19f68: 80 04 00 38 lwz r0,56(r4)
ffc19f6c: 2f 80 00 01 cmpwi cr7,r0,1
ffc19f70: 40 be 00 78 bne+ cr7,ffc19fe8 <_Timer_server_Schedule_operation_method+0xb4>
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc19f74: 7c e0 00 a6 mfmsr r7
ffc19f78: 7c 10 42 a6 mfsprg r0,0
ffc19f7c: 7c e0 00 78 andc r0,r7,r0
ffc19f80: 7c 00 01 24 mtmsr r0
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
ffc19f84: 81 63 00 30 lwz r11,48(r3)
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
ffc19f88: 38 03 00 34 addi r0,r3,52
/*
* We have to advance the last known ticks value of the server and update
* the watchdog chain accordingly.
*/
_ISR_Disable( level );
snapshot = _Watchdog_Ticks_since_boot;
ffc19f8c: 3d 40 00 00 lis r10,0
ffc19f90: 7f 8b 00 00 cmpw cr7,r11,r0
ffc19f94: 81 4a 28 c0 lwz r10,10432(r10)
last_snapshot = ts->Interval_watchdogs.last_snapshot;
ffc19f98: 80 03 00 3c lwz r0,60(r3)
ffc19f9c: 41 9e 00 20 beq- cr7,ffc19fbc <_Timer_server_Schedule_operation_method+0x88>
/*
* We assume adequate unsigned arithmetic here.
*/
delta = snapshot - last_snapshot;
delta_interval = first_watchdog->delta_interval;
ffc19fa0: 81 0b 00 10 lwz r8,16(r11)
first_watchdog = _Watchdog_First( &ts->Interval_watchdogs.Chain );
/*
* We assume adequate unsigned arithmetic here.
*/
delta = snapshot - last_snapshot;
ffc19fa4: 7c 00 50 50 subf r0,r0,r10
delta_interval = first_watchdog->delta_interval;
if (delta_interval > delta) {
ffc19fa8: 7c c8 00 10 subfc r6,r8,r0
ffc19fac: 7c c6 31 10 subfe r6,r6,r6
delta_interval -= delta;
ffc19fb0: 7c 00 40 50 subf r0,r0,r8
* We assume adequate unsigned arithmetic here.
*/
delta = snapshot - last_snapshot;
delta_interval = first_watchdog->delta_interval;
if (delta_interval > delta) {
ffc19fb4: 7c 00 30 38 and r0,r0,r6
delta_interval -= delta;
} else {
delta_interval = 0;
}
first_watchdog->delta_interval = delta_interval;
ffc19fb8: 90 0b 00 10 stw r0,16(r11)
}
ts->Interval_watchdogs.last_snapshot = snapshot;
ffc19fbc: 91 5f 00 3c stw r10,60(r31)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc19fc0: 7c e0 01 24 mtmsr r7
_ISR_Enable( level );
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
ffc19fc4: 38 89 00 10 addi r4,r9,16
ffc19fc8: 38 7f 00 30 addi r3,r31,48
ffc19fcc: 48 00 4e 31 bl ffc1edfc <_Watchdog_Insert>
if ( !ts->active ) {
ffc19fd0: 88 1f 00 7c lbz r0,124(r31)
ffc19fd4: 2f 80 00 00 cmpwi cr7,r0,0
ffc19fd8: 40 be 00 98 bne+ cr7,ffc1a070 <_Timer_server_Schedule_operation_method+0x13c>
_Timer_server_Reset_interval_system_watchdog( ts );
ffc19fdc: 7f e3 fb 78 mr r3,r31
ffc19fe0: 4b ff fc 2d bl ffc19c0c <_Timer_server_Reset_interval_system_watchdog>
ffc19fe4: 48 00 00 8c b ffc1a070 <_Timer_server_Schedule_operation_method+0x13c>
}
} else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {
ffc19fe8: 2f 80 00 03 cmpwi cr7,r0,3
ffc19fec: 40 be 00 84 bne+ cr7,ffc1a070 <_Timer_server_Schedule_operation_method+0x13c>
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc19ff0: 7c c0 00 a6 mfmsr r6
ffc19ff4: 7c 10 42 a6 mfsprg r0,0
ffc19ff8: 7c c0 00 78 andc r0,r6,r0
ffc19ffc: 7c 00 01 24 mtmsr r0
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
ffc1a000: 81 43 00 68 lwz r10,104(r3)
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
ffc1a004: 38 03 00 6c addi r0,r3,108
/*
* We have to advance the last known seconds value of the server and update
* the watchdog chain accordingly.
*/
_ISR_Disable( level );
snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
ffc1a008: 3d 60 00 00 lis r11,0
last_snapshot = ts->TOD_watchdogs.last_snapshot;
ffc1a00c: 80 e3 00 74 lwz r7,116(r3)
ffc1a010: 7f 8a 00 00 cmpw cr7,r10,r0
/*
* We have to advance the last known seconds value of the server and update
* the watchdog chain accordingly.
*/
_ISR_Disable( level );
snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
ffc1a014: 80 0b 28 88 lwz r0,10376(r11)
ffc1a018: 41 9e 00 30 beq- cr7,ffc1a048 <_Timer_server_Schedule_operation_method+0x114>
last_snapshot = ts->TOD_watchdogs.last_snapshot;
if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {
first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );
delta_interval = first_watchdog->delta_interval;
if ( snapshot > last_snapshot ) {
ffc1a01c: 7f 80 38 40 cmplw cr7,r0,r7
_ISR_Disable( level );
snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
last_snapshot = ts->TOD_watchdogs.last_snapshot;
if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {
first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );
delta_interval = first_watchdog->delta_interval;
ffc1a020: 81 0a 00 10 lwz r8,16(r10)
}
} else {
/*
* Someone put us in the past.
*/
delta = last_snapshot - snapshot;
ffc1a024: 7d 68 3a 14 add r11,r8,r7
delta_interval += delta;
ffc1a028: 7d 60 58 50 subf r11,r0,r11
snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
last_snapshot = ts->TOD_watchdogs.last_snapshot;
if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {
first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );
delta_interval = first_watchdog->delta_interval;
if ( snapshot > last_snapshot ) {
ffc1a02c: 40 9d 00 18 ble- cr7,ffc1a044 <_Timer_server_Schedule_operation_method+0x110>
/*
* We advanced in time.
*/
delta = snapshot - last_snapshot;
ffc1a030: 7d 67 00 50 subf r11,r7,r0
if (delta_interval > delta) {
ffc1a034: 7c e8 58 10 subfc r7,r8,r11
ffc1a038: 7c e7 39 10 subfe r7,r7,r7
delta_interval -= delta;
ffc1a03c: 7d 6b 40 50 subf r11,r11,r8
if ( snapshot > last_snapshot ) {
/*
* We advanced in time.
*/
delta = snapshot - last_snapshot;
if (delta_interval > delta) {
ffc1a040: 7d 6b 38 38 and r11,r11,r7
* Someone put us in the past.
*/
delta = last_snapshot - snapshot;
delta_interval += delta;
}
first_watchdog->delta_interval = delta_interval;
ffc1a044: 91 6a 00 10 stw r11,16(r10)
}
ts->TOD_watchdogs.last_snapshot = snapshot;
ffc1a048: 90 1f 00 74 stw r0,116(r31)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc1a04c: 7c c0 01 24 mtmsr r6
_ISR_Enable( level );
_Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );
ffc1a050: 38 89 00 10 addi r4,r9,16
ffc1a054: 38 7f 00 68 addi r3,r31,104
ffc1a058: 48 00 4d a5 bl ffc1edfc <_Watchdog_Insert>
if ( !ts->active ) {
ffc1a05c: 88 1f 00 7c lbz r0,124(r31)
ffc1a060: 2f 80 00 00 cmpwi cr7,r0,0
ffc1a064: 40 be 00 0c bne+ cr7,ffc1a070 <_Timer_server_Schedule_operation_method+0x13c>
_Timer_server_Reset_tod_system_watchdog( ts );
ffc1a068: 7f e3 fb 78 mr r3,r31
ffc1a06c: 4b ff fc 21 bl ffc19c8c <_Timer_server_Reset_tod_system_watchdog>
}
}
_Thread_Enable_dispatch();
ffc1a070: 48 00 33 bd bl ffc1d42c <_Thread_Enable_dispatch>
ffc1a074: 48 00 00 0c b ffc1a080 <_Timer_server_Schedule_operation_method+0x14c>
* server is not preemptible, so we must be in interrupt context here. No
* thread dispatch will happen until the timer server finishes its
* critical section. We have to use the protected chain methods because
* we may be interrupted by a higher priority interrupt.
*/
_Chain_Append( ts->insert_chain, &timer->Object.Node );
ffc1a078: 80 63 00 78 lwz r3,120(r3) <== NOT EXECUTED
ffc1a07c: 48 00 08 e9 bl ffc1a964 <_Chain_Append> <== NOT EXECUTED
}
}
ffc1a080: 80 01 00 14 lwz r0,20(r1)
ffc1a084: 83 e1 00 0c lwz r31,12(r1)
ffc1a088: 38 21 00 10 addi r1,r1,16
ffc1a08c: 7c 08 03 a6 mtlr r0
ffc1a090: 4e 80 00 20 blr
ffc1c940 <_exit>:
/*
* If the toolset uses init/fini sections, then we need to
* run the global destructors now.
*/
#if defined(__USE_INIT_FINI__)
FINI_SYMBOL();
ffc1c940: 94 21 ff f0 stwu r1,-16(r1)
ffc1c944: 7c 08 02 a6 mflr r0
ffc1c948: 90 61 00 08 stw r3,8(r1)
ffc1c94c: 90 01 00 14 stw r0,20(r1)
ffc1c950: 48 00 0a 51 bl ffc1d3a0 <__fini>
* 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();
ffc1c954: 4b ff ff 65 bl ffc1c8b8 <libc_wrapup>
rtems_shutdown_executive(status);
ffc1c958: 80 61 00 08 lwz r3,8(r1)
ffc1c95c: 48 00 01 49 bl ffc1caa4 <rtems_shutdown_executive>
ffc1c960: 48 00 00 00 b ffc1c960 <_exit+0x20> <== NOT EXECUTED
ffc40a4c <_fcntl_r>:
int fd,
int cmd,
int arg
)
{
return fcntl( fd, cmd, arg );
ffc40a4c: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED
ffc40a50: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED
ffc40a54: 7c c5 33 78 mr r5,r6 <== NOT EXECUTED
ffc40a58: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc40a5c: 4b ff fd 58 b ffc407b4 <fcntl> <== NOT EXECUTED
ffc102c0 <_getpid_r>:
pid_t _getpid_r(
struct _reent *ptr __attribute__((unused))
)
{
return getpid();
}
ffc102c0: 38 60 00 01 li r3,1 <== NOT EXECUTED
ffc102c4: 4e 80 00 20 blr <== NOT EXECUTED
ffc0d3c0 <_gettimeofday>:
int _gettimeofday(
struct timeval *tp,
struct timezone *tzp
)
{
return gettimeofday( tp, tzp );
ffc0d3c0: 4b ff ff 80 b ffc0d340 <gettimeofday> <== NOT EXECUTED
ffc2be14 <_link_r>:
struct _reent *ptr __attribute__((unused)),
const char *existing,
const char *new
)
{
return link( existing, new );
ffc2be14: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED
ffc2be18: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED
ffc2be1c: 4b ff fd 60 b ffc2bb7c <link> <== NOT EXECUTED
ffc2c06c <_lstat_r>:
struct _reent *ptr __attribute__((unused)),
const char *path,
struct stat *buf
)
{
return _STAT_NAME( path, buf );
ffc2c06c: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED
ffc2c070: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED
ffc2c074: 4b ff fe e4 b ffc2bf58 <lstat> <== NOT EXECUTED
ffc1ca50 <_realloc_r>:
void *_realloc_r(
struct _reent *ignored __attribute__((unused)),
void *ptr,
size_t size
)
{
ffc1ca50: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED
ffc1ca54: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
return realloc( ptr, size );
ffc1ca58: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED
ffc1ca5c: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED
void *_realloc_r(
struct _reent *ignored __attribute__((unused)),
void *ptr,
size_t size
)
{
ffc1ca60: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
return realloc( ptr, size );
ffc1ca64: 48 00 00 81 bl ffc1cae4 <realloc> <== NOT EXECUTED
}
ffc1ca68: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc1ca6c: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc1ca70: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc1ca74: 4e 80 00 20 blr <== NOT EXECUTED
ffc625cc <_rename_r>:
int _rename_r(
struct _reent *ptr __attribute__((unused)),
const char *old,
const char *new
)
{
ffc625cc: 94 21 ff a0 stwu r1,-96(r1) <== NOT EXECUTED
ffc625d0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
/*
* Get the parent node of the old path to be renamed. Find the parent path.
*/
old_parent_pathlen = rtems_filesystem_dirname ( old );
ffc625d4: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED
int _rename_r(
struct _reent *ptr __attribute__((unused)),
const char *old,
const char *new
)
{
ffc625d8: 93 81 00 50 stw r28,80(r1) <== NOT EXECUTED
ffc625dc: 93 a1 00 54 stw r29,84(r1) <== NOT EXECUTED
ffc625e0: 7c bd 2b 78 mr r29,r5 <== NOT EXECUTED
ffc625e4: 93 c1 00 58 stw r30,88(r1) <== NOT EXECUTED
ffc625e8: 7c 9e 23 78 mr r30,r4 <== NOT EXECUTED
ffc625ec: 90 01 00 64 stw r0,100(r1) <== NOT EXECUTED
ffc625f0: 93 61 00 4c stw r27,76(r1) <== NOT EXECUTED
ffc625f4: 93 e1 00 5c stw r31,92(r1) <== NOT EXECUTED
/*
* Get the parent node of the old path to be renamed. Find the parent path.
*/
old_parent_pathlen = rtems_filesystem_dirname ( old );
ffc625f8: 4b fa 4a 65 bl ffc0705c <rtems_filesystem_dirname> <== NOT EXECUTED
if ( old_parent_pathlen == 0 )
ffc625fc: 7c 7c 1b 79 mr. r28,r3 <== NOT EXECUTED
ffc62600: 40 82 00 8c bne- ffc6268c <_rename_r+0xc0> <== NOT EXECUTED
rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );
ffc62604: 88 1e 00 00 lbz r0,0(r30) <== NOT EXECUTED
ffc62608: 2f 80 00 2f cmpwi cr7,r0,47 <== NOT EXECUTED
ffc6260c: 41 9e 00 14 beq- cr7,ffc62620 <_rename_r+0x54> <== NOT EXECUTED
ffc62610: 2f 80 00 5c cmpwi cr7,r0,92 <== NOT EXECUTED
ffc62614: 41 9e 00 0c beq- cr7,ffc62620 <_rename_r+0x54> <== NOT EXECUTED
ffc62618: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc6261c: 40 9e 00 38 bne- cr7,ffc62654 <_rename_r+0x88> <== NOT EXECUTED
ffc62620: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc62624: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED
ffc62628: 3b e0 00 00 li r31,0 <== NOT EXECUTED
ffc6262c: 80 09 00 24 lwz r0,36(r9) <== NOT EXECUTED
ffc62630: 81 09 00 18 lwz r8,24(r9) <== NOT EXECUTED
ffc62634: 81 49 00 1c lwz r10,28(r9) <== NOT EXECUTED
ffc62638: 81 69 00 20 lwz r11,32(r9) <== NOT EXECUTED
ffc6263c: 91 01 00 20 stw r8,32(r1) <== NOT EXECUTED
ffc62640: 91 41 00 24 stw r10,36(r1) <== NOT EXECUTED
ffc62644: 91 61 00 28 stw r11,40(r1) <== NOT EXECUTED
ffc62648: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED
ffc6264c: 80 09 00 28 lwz r0,40(r9) <== NOT EXECUTED
ffc62650: 48 00 00 34 b ffc62684 <_rename_r+0xb8> <== NOT EXECUTED
ffc62654: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc62658: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED
ffc6265c: 3b e0 00 00 li r31,0 <== NOT EXECUTED
ffc62660: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED
ffc62664: 81 09 00 04 lwz r8,4(r9) <== NOT EXECUTED
ffc62668: 81 49 00 08 lwz r10,8(r9) <== NOT EXECUTED
ffc6266c: 81 69 00 0c lwz r11,12(r9) <== NOT EXECUTED
ffc62670: 91 01 00 20 stw r8,32(r1) <== NOT EXECUTED
ffc62674: 91 41 00 24 stw r10,36(r1) <== NOT EXECUTED
ffc62678: 91 61 00 28 stw r11,40(r1) <== NOT EXECUTED
ffc6267c: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED
ffc62680: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED
ffc62684: 90 01 00 30 stw r0,48(r1) <== NOT EXECUTED
ffc62688: 48 00 00 2c b ffc626b4 <_rename_r+0xe8> <== NOT EXECUTED
else {
result = rtems_filesystem_evaluate_path( old, old_parent_pathlen,
ffc6268c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc62690: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED
ffc62694: 38 a0 00 02 li r5,2 <== NOT EXECUTED
ffc62698: 38 c1 00 20 addi r6,r1,32 <== NOT EXECUTED
ffc6269c: 38 e0 00 00 li r7,0 <== NOT EXECUTED
ffc626a0: 4b fa 4b 35 bl ffc071d4 <rtems_filesystem_evaluate_path><== NOT EXECUTED
RTEMS_LIBIO_PERMS_WRITE,
&old_parent_loc,
false );
if ( result != 0 )
ffc626a4: 3b e0 00 01 li r31,1 <== NOT EXECUTED
ffc626a8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc626ac: 3b 60 ff ff li r27,-1 <== NOT EXECUTED
ffc626b0: 40 9e 03 90 bne- cr7,ffc62a40 <_rename_r+0x474> <== NOT EXECUTED
/*
* Start from the parent to find the node that should be under it.
*/
old_loc = old_parent_loc;
ffc626b4: 80 01 00 20 lwz r0,32(r1) <== NOT EXECUTED
name = old + old_parent_pathlen;
ffc626b8: 7f de e2 14 add r30,r30,r28 <== NOT EXECUTED
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
ffc626bc: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
/*
* Start from the parent to find the node that should be under it.
*/
old_loc = old_parent_loc;
name = old + old_parent_pathlen;
ffc626c0: 93 c1 00 08 stw r30,8(r1) <== NOT EXECUTED
/*
* Start from the parent to find the node that should be under it.
*/
old_loc = old_parent_loc;
ffc626c4: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
ffc626c8: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED
ffc626cc: 90 01 00 10 stw r0,16(r1) <== NOT EXECUTED
ffc626d0: 80 01 00 28 lwz r0,40(r1) <== NOT EXECUTED
ffc626d4: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED
ffc626d8: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED
ffc626dc: 90 01 00 18 stw r0,24(r1) <== NOT EXECUTED
ffc626e0: 80 01 00 30 lwz r0,48(r1) <== NOT EXECUTED
ffc626e4: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED
name = old + old_parent_pathlen;
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
ffc626e8: 4b fe cd 5d bl ffc4f444 <strlen> <== NOT EXECUTED
ffc626ec: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED
ffc626f0: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc626f4: 4b fa 49 2d bl ffc07020 <rtems_filesystem_prefix_separators><== NOT EXECUTED
ffc626f8: 7f de 1a 14 add r30,r30,r3 <== NOT EXECUTED
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
ffc626fc: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
* Start from the parent to find the node that should be under it.
*/
old_loc = old_parent_loc;
name = old + old_parent_pathlen;
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
ffc62700: 93 c1 00 08 stw r30,8(r1) <== NOT EXECUTED
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
ffc62704: 4b fe cd 41 bl ffc4f444 <strlen> <== NOT EXECUTED
ffc62708: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc6270c: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED
ffc62710: 38 c1 00 0c addi r6,r1,12 <== NOT EXECUTED
ffc62714: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc62718: 38 e0 00 00 li r7,0 <== NOT EXECUTED
ffc6271c: 4b fa 49 a5 bl ffc070c0 <rtems_filesystem_evaluate_relative_path><== NOT EXECUTED
0, &old_loc, false );
if ( result != 0 ) {
ffc62720: 7c 7e 1b 79 mr. r30,r3 <== NOT EXECUTED
ffc62724: 41 a2 00 3c beq+ ffc62760 <_rename_r+0x194> <== NOT EXECUTED
if ( free_old_parentloc )
ffc62728: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED
ffc6272c: 41 9e 00 28 beq- cr7,ffc62754 <_rename_r+0x188> <== NOT EXECUTED
rtems_filesystem_freenode( &old_parent_loc );
ffc62730: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED
ffc62734: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc62738: 41 9e 00 1c beq- cr7,ffc62754 <_rename_r+0x188> <== NOT EXECUTED
ffc6273c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc62740: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc62744: 41 9e 00 10 beq- cr7,ffc62754 <_rename_r+0x188> <== NOT EXECUTED
ffc62748: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED
ffc6274c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc62750: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( result );
ffc62754: 4b fe 4f 1d bl ffc47670 <__errno> <== NOT EXECUTED
ffc62758: 93 c3 00 00 stw r30,0(r3) <== NOT EXECUTED
ffc6275c: 48 00 00 f4 b ffc62850 <_rename_r+0x284> <== NOT EXECUTED
/*
* Get the parent of the new node we are renaming to.
*/
rtems_filesystem_get_start_loc( new, &i, &new_parent_loc );
ffc62760: 88 1d 00 00 lbz r0,0(r29) <== NOT EXECUTED
ffc62764: 2f 80 00 2f cmpwi cr7,r0,47 <== NOT EXECUTED
ffc62768: 41 9e 00 14 beq- cr7,ffc6277c <_rename_r+0x1b0> <== NOT EXECUTED
ffc6276c: 2f 80 00 5c cmpwi cr7,r0,92 <== NOT EXECUTED
ffc62770: 41 9e 00 0c beq- cr7,ffc6277c <_rename_r+0x1b0> <== NOT EXECUTED
ffc62774: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc62778: 40 9e 00 38 bne- cr7,ffc627b0 <_rename_r+0x1e4> <== NOT EXECUTED
ffc6277c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc62780: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED
ffc62784: 38 60 00 01 li r3,1 <== NOT EXECUTED
ffc62788: 80 09 00 24 lwz r0,36(r9) <== NOT EXECUTED
ffc6278c: 81 09 00 18 lwz r8,24(r9) <== NOT EXECUTED
ffc62790: 81 49 00 1c lwz r10,28(r9) <== NOT EXECUTED
ffc62794: 81 69 00 20 lwz r11,32(r9) <== NOT EXECUTED
ffc62798: 91 01 00 34 stw r8,52(r1) <== NOT EXECUTED
ffc6279c: 91 41 00 38 stw r10,56(r1) <== NOT EXECUTED
ffc627a0: 91 61 00 3c stw r11,60(r1) <== NOT EXECUTED
ffc627a4: 90 01 00 40 stw r0,64(r1) <== NOT EXECUTED
ffc627a8: 80 09 00 28 lwz r0,40(r9) <== NOT EXECUTED
ffc627ac: 48 00 00 34 b ffc627e0 <_rename_r+0x214> <== NOT EXECUTED
ffc627b0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc627b4: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED
ffc627b8: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc627bc: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED
ffc627c0: 81 09 00 04 lwz r8,4(r9) <== NOT EXECUTED
ffc627c4: 81 49 00 08 lwz r10,8(r9) <== NOT EXECUTED
ffc627c8: 81 69 00 0c lwz r11,12(r9) <== NOT EXECUTED
ffc627cc: 91 01 00 34 stw r8,52(r1) <== NOT EXECUTED
ffc627d0: 91 41 00 38 stw r10,56(r1) <== NOT EXECUTED
ffc627d4: 91 61 00 3c stw r11,60(r1) <== NOT EXECUTED
ffc627d8: 90 01 00 40 stw r0,64(r1) <== NOT EXECUTED
ffc627dc: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED
if ( !new_parent_loc.ops->evalformake_h ) {
ffc627e0: 81 21 00 40 lwz r9,64(r1) <== NOT EXECUTED
/*
* Get the parent of the new node we are renaming to.
*/
rtems_filesystem_get_start_loc( new, &i, &new_parent_loc );
ffc627e4: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED
if ( !new_parent_loc.ops->evalformake_h ) {
ffc627e8: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED
ffc627ec: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc627f0: 40 be 00 68 bne+ cr7,ffc62858 <_rename_r+0x28c> <== NOT EXECUTED
if ( free_old_parentloc )
ffc627f4: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED
ffc627f8: 41 9e 00 28 beq- cr7,ffc62820 <_rename_r+0x254> <== NOT EXECUTED
rtems_filesystem_freenode( &old_parent_loc );
ffc627fc: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED
ffc62800: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc62804: 41 9e 00 1c beq- cr7,ffc62820 <_rename_r+0x254> <== NOT EXECUTED
ffc62808: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc6280c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc62810: 41 9e 00 10 beq- cr7,ffc62820 <_rename_r+0x254> <== NOT EXECUTED
ffc62814: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED
ffc62818: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc6281c: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_filesystem_freenode( &old_loc );
ffc62820: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED
ffc62824: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc62828: 41 9e 00 1c beq- cr7,ffc62844 <_rename_r+0x278> <== NOT EXECUTED
ffc6282c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc62830: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc62834: 41 9e 00 10 beq- cr7,ffc62844 <_rename_r+0x278> <== NOT EXECUTED
ffc62838: 38 61 00 0c addi r3,r1,12 <== NOT EXECUTED
ffc6283c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc62840: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc62844: 4b fe 4e 2d bl ffc47670 <__errno> <== NOT EXECUTED
ffc62848: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc6284c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc62850: 3b 60 ff ff li r27,-1 <== NOT EXECUTED
ffc62854: 48 00 01 ec b ffc62a40 <_rename_r+0x474> <== NOT EXECUTED
}
result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name );
ffc62858: 3b c1 00 34 addi r30,r1,52 <== NOT EXECUTED
ffc6285c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc62860: 7c 7d 1a 14 add r3,r29,r3 <== NOT EXECUTED
ffc62864: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED
ffc62868: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED
ffc6286c: 4e 80 04 21 bctrl <== NOT EXECUTED
if ( result != 0 ) {
ffc62870: 7c 7d 1b 79 mr. r29,r3 <== NOT EXECUTED
ffc62874: 41 a2 00 84 beq+ ffc628f8 <_rename_r+0x32c> <== NOT EXECUTED
rtems_filesystem_freenode( &new_parent_loc );
ffc62878: 81 21 00 40 lwz r9,64(r1) <== NOT EXECUTED
ffc6287c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc62880: 41 9e 00 1c beq- cr7,ffc6289c <_rename_r+0x2d0> <== NOT EXECUTED
ffc62884: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc62888: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc6288c: 41 9e 00 10 beq- cr7,ffc6289c <_rename_r+0x2d0> <== NOT EXECUTED
ffc62890: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc62894: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc62898: 4e 80 04 21 bctrl <== NOT EXECUTED
if ( free_old_parentloc )
ffc6289c: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED
ffc628a0: 41 9e 00 28 beq- cr7,ffc628c8 <_rename_r+0x2fc> <== NOT EXECUTED
rtems_filesystem_freenode( &old_parent_loc );
ffc628a4: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED
ffc628a8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc628ac: 41 9e 00 1c beq- cr7,ffc628c8 <_rename_r+0x2fc> <== NOT EXECUTED
ffc628b0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc628b4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc628b8: 41 9e 00 10 beq- cr7,ffc628c8 <_rename_r+0x2fc> <== NOT EXECUTED
ffc628bc: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED
ffc628c0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc628c4: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_filesystem_freenode( &old_loc );
ffc628c8: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED
ffc628cc: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc628d0: 41 9e 00 1c beq- cr7,ffc628ec <_rename_r+0x320> <== NOT EXECUTED
ffc628d4: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc628d8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc628dc: 41 9e 00 10 beq- cr7,ffc628ec <_rename_r+0x320> <== NOT EXECUTED
ffc628e0: 38 61 00 0c addi r3,r1,12 <== NOT EXECUTED
ffc628e4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc628e8: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( result );
ffc628ec: 4b fe 4d 85 bl ffc47670 <__errno> <== NOT EXECUTED
ffc628f0: 93 a3 00 00 stw r29,0(r3) <== NOT EXECUTED
ffc628f4: 4b ff ff 5c b ffc62850 <_rename_r+0x284> <== 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 ) {
ffc628f8: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED
ffc628fc: 81 61 00 30 lwz r11,48(r1) <== NOT EXECUTED
ffc62900: 81 21 00 40 lwz r9,64(r1) <== NOT EXECUTED
ffc62904: 7f 8b 00 00 cmpw cr7,r11,r0 <== NOT EXECUTED
ffc62908: 41 be 00 80 beq+ cr7,ffc62988 <_rename_r+0x3bc> <== NOT EXECUTED
rtems_filesystem_freenode( &new_parent_loc );
ffc6290c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc62910: 41 9e 00 1c beq- cr7,ffc6292c <_rename_r+0x360> <== NOT EXECUTED
ffc62914: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc62918: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc6291c: 41 9e 00 10 beq- cr7,ffc6292c <_rename_r+0x360> <== NOT EXECUTED
ffc62920: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc62924: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc62928: 4e 80 04 21 bctrl <== NOT EXECUTED
if ( free_old_parentloc )
ffc6292c: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED
ffc62930: 41 9e 00 28 beq- cr7,ffc62958 <_rename_r+0x38c> <== NOT EXECUTED
rtems_filesystem_freenode( &old_parent_loc );
ffc62934: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED
ffc62938: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc6293c: 41 9e 00 1c beq- cr7,ffc62958 <_rename_r+0x38c> <== NOT EXECUTED
ffc62940: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc62944: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc62948: 41 9e 00 10 beq- cr7,ffc62958 <_rename_r+0x38c> <== NOT EXECUTED
ffc6294c: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED
ffc62950: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc62954: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_filesystem_freenode( &old_loc );
ffc62958: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED
ffc6295c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc62960: 41 9e 00 1c beq- cr7,ffc6297c <_rename_r+0x3b0> <== NOT EXECUTED
ffc62964: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc62968: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc6296c: 41 9e 00 10 beq- cr7,ffc6297c <_rename_r+0x3b0> <== NOT EXECUTED
ffc62970: 38 61 00 0c addi r3,r1,12 <== NOT EXECUTED
ffc62974: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc62978: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EXDEV );
ffc6297c: 4b fe 4c f5 bl ffc47670 <__errno> <== NOT EXECUTED
ffc62980: 38 00 00 12 li r0,18 <== NOT EXECUTED
ffc62984: 4b ff fe c8 b ffc6284c <_rename_r+0x280> <== NOT EXECUTED
}
if ( !new_parent_loc.ops->rename_h ) {
ffc62988: 80 09 00 40 lwz r0,64(r9) <== NOT EXECUTED
ffc6298c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc62990: 40 be 00 20 bne+ cr7,ffc629b0 <_rename_r+0x3e4> <== NOT EXECUTED
rtems_filesystem_freenode( &new_parent_loc );
ffc62994: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc62998: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc6299c: 41 be fe 58 beq- cr7,ffc627f4 <_rename_r+0x228> <== NOT EXECUTED
ffc629a0: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc629a4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc629a8: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc629ac: 4b ff fe 48 b ffc627f4 <_rename_r+0x228> <== NOT EXECUTED
rtems_filesystem_freenode( &old_parent_loc );
rtems_filesystem_freenode( &old_loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name );
ffc629b0: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED
ffc629b4: 80 c1 00 08 lwz r6,8(r1) <== NOT EXECUTED
ffc629b8: 38 81 00 0c addi r4,r1,12 <== NOT EXECUTED
ffc629bc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc629c0: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED
ffc629c4: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_filesystem_freenode( &new_parent_loc );
ffc629c8: 81 21 00 40 lwz r9,64(r1) <== NOT EXECUTED
rtems_filesystem_freenode( &old_parent_loc );
rtems_filesystem_freenode( &old_loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name );
ffc629cc: 7c 7b 1b 78 mr r27,r3 <== NOT EXECUTED
rtems_filesystem_freenode( &new_parent_loc );
ffc629d0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc629d4: 41 9e 00 1c beq- cr7,ffc629f0 <_rename_r+0x424> <== NOT EXECUTED
ffc629d8: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc629dc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc629e0: 41 9e 00 10 beq- cr7,ffc629f0 <_rename_r+0x424> <== NOT EXECUTED
ffc629e4: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc629e8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc629ec: 4e 80 04 21 bctrl <== NOT EXECUTED
if ( free_old_parentloc )
ffc629f0: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED
ffc629f4: 41 9e 00 28 beq- cr7,ffc62a1c <_rename_r+0x450> <== NOT EXECUTED
rtems_filesystem_freenode( &old_parent_loc );
ffc629f8: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED
ffc629fc: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc62a00: 41 9e 00 1c beq- cr7,ffc62a1c <_rename_r+0x450> <== NOT EXECUTED
ffc62a04: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc62a08: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc62a0c: 41 9e 00 10 beq- cr7,ffc62a1c <_rename_r+0x450> <== NOT EXECUTED
ffc62a10: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED
ffc62a14: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc62a18: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_filesystem_freenode( &old_loc );
ffc62a1c: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED
ffc62a20: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc62a24: 41 9e 00 1c beq- cr7,ffc62a40 <_rename_r+0x474> <== NOT EXECUTED
ffc62a28: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc62a2c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc62a30: 41 9e 00 10 beq- cr7,ffc62a40 <_rename_r+0x474> <== NOT EXECUTED
ffc62a34: 38 61 00 0c addi r3,r1,12 <== NOT EXECUTED
ffc62a38: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc62a3c: 4e 80 04 21 bctrl <== NOT EXECUTED
return result;
}
ffc62a40: 80 01 00 64 lwz r0,100(r1) <== NOT EXECUTED
ffc62a44: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED
ffc62a48: 83 81 00 50 lwz r28,80(r1) <== NOT EXECUTED
ffc62a4c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc62a50: 83 61 00 4c lwz r27,76(r1) <== NOT EXECUTED
ffc62a54: 83 a1 00 54 lwz r29,84(r1) <== NOT EXECUTED
ffc62a58: 83 c1 00 58 lwz r30,88(r1) <== NOT EXECUTED
ffc62a5c: 83 e1 00 5c lwz r31,92(r1) <== NOT EXECUTED
ffc62a60: 38 21 00 60 addi r1,r1,96 <== NOT EXECUTED
ffc62a64: 4e 80 00 20 blr <== NOT EXECUTED
ffc08c18 <_stat_r>:
struct _reent *ptr __attribute__((unused)),
const char *path,
struct stat *buf
)
{
return _STAT_NAME( path, buf );
ffc08c18: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED
ffc08c1c: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED
ffc08c20: 4b ff fe e4 b ffc08b04 <stat> <== NOT EXECUTED
ffc1155c <_unlink_r>:
int _unlink_r(
struct _reent *ptr __attribute__((unused)),
const char *path
)
{
return unlink( path );
ffc1155c: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED
ffc11560: 4b ff fd 20 b ffc11280 <unlink> <== NOT EXECUTED
ffc2a458 <chdir>:
#include <rtems/seterr.h>
int chdir(
const char *pathname
)
{
ffc2a458: 94 21 ff d0 stwu r1,-48(r1)
ffc2a45c: 7c 08 02 a6 mflr r0
ffc2a460: 93 c1 00 28 stw r30,40(r1)
rtems_filesystem_location_info_t loc;
int result;
if ( !pathname )
ffc2a464: 7c 7e 1b 79 mr. r30,r3
#include <rtems/seterr.h>
int chdir(
const char *pathname
)
{
ffc2a468: 90 01 00 34 stw r0,52(r1)
ffc2a46c: 93 e1 00 2c stw r31,44(r1)
rtems_filesystem_location_info_t loc;
int result;
if ( !pathname )
ffc2a470: 40 a2 00 10 bne+ ffc2a480 <chdir+0x28>
rtems_set_errno_and_return_minus_one( EFAULT );
ffc2a474: 48 01 d1 fd bl ffc47670 <__errno>
ffc2a478: 38 00 00 0e li r0,14
ffc2a47c: 48 00 00 60 b ffc2a4dc <chdir+0x84>
/*
* Get the node where we wish to go.
*/
result = rtems_filesystem_evaluate_path(
pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true );
ffc2a480: 48 02 4f c5 bl ffc4f444 <strlen>
rtems_set_errno_and_return_minus_one( EFAULT );
/*
* Get the node where we wish to go.
*/
result = rtems_filesystem_evaluate_path(
ffc2a484: 3b e1 00 08 addi r31,r1,8
pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true );
ffc2a488: 7c 64 1b 78 mr r4,r3
rtems_set_errno_and_return_minus_one( EFAULT );
/*
* Get the node where we wish to go.
*/
result = rtems_filesystem_evaluate_path(
ffc2a48c: 38 a0 00 01 li r5,1
ffc2a490: 7f c3 f3 78 mr r3,r30
ffc2a494: 7f e6 fb 78 mr r6,r31
ffc2a498: 38 e0 00 01 li r7,1
ffc2a49c: 4b fd cd 39 bl ffc071d4 <rtems_filesystem_evaluate_path>
pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true );
if ( result != 0 )
ffc2a4a0: 2f 83 00 00 cmpwi cr7,r3,0
ffc2a4a4: 38 60 ff ff li r3,-1
ffc2a4a8: 40 9e 00 e4 bne- cr7,ffc2a58c <chdir+0x134>
return -1;
/*
* Verify you can change directory into this node.
*/
if ( !loc.ops->node_type_h ) {
ffc2a4ac: 81 21 00 14 lwz r9,20(r1)
ffc2a4b0: 80 09 00 10 lwz r0,16(r9)
ffc2a4b4: 2f 80 00 00 cmpwi cr7,r0,0
ffc2a4b8: 40 be 00 30 bne+ cr7,ffc2a4e8 <chdir+0x90>
rtems_filesystem_freenode( &loc );
ffc2a4bc: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2a4c0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2a4c4: 41 9e 00 10 beq- cr7,ffc2a4d4 <chdir+0x7c> <== NOT EXECUTED
ffc2a4c8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc2a4cc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2a4d0: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc2a4d4: 48 01 d1 9d bl ffc47670 <__errno> <== NOT EXECUTED
ffc2a4d8: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc2a4dc: 90 03 00 00 stw r0,0(r3)
ffc2a4e0: 38 60 ff ff li r3,-1
ffc2a4e4: 48 00 00 a8 b ffc2a58c <chdir+0x134>
}
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
ffc2a4e8: 7f e3 fb 78 mr r3,r31
ffc2a4ec: 7c 09 03 a6 mtctr r0
ffc2a4f0: 4e 80 04 21 bctrl
ffc2a4f4: 2f 83 00 01 cmpwi cr7,r3,1
ffc2a4f8: 41 be 00 34 beq+ cr7,ffc2a52c <chdir+0xd4>
rtems_filesystem_freenode( &loc );
ffc2a4fc: 81 21 00 14 lwz r9,20(r1)
ffc2a500: 2f 89 00 00 cmpwi cr7,r9,0
ffc2a504: 41 9e 00 1c beq- cr7,ffc2a520 <chdir+0xc8>
ffc2a508: 80 09 00 1c lwz r0,28(r9)
ffc2a50c: 2f 80 00 00 cmpwi cr7,r0,0
ffc2a510: 41 9e 00 10 beq- cr7,ffc2a520 <chdir+0xc8>
ffc2a514: 7f e3 fb 78 mr r3,r31
ffc2a518: 7c 09 03 a6 mtctr r0
ffc2a51c: 4e 80 04 21 bctrl
rtems_set_errno_and_return_minus_one( ENOTDIR );
ffc2a520: 48 01 d1 51 bl ffc47670 <__errno>
ffc2a524: 38 00 00 14 li r0,20
ffc2a528: 4b ff ff b4 b ffc2a4dc <chdir+0x84>
}
rtems_filesystem_freenode( &rtems_filesystem_current );
ffc2a52c: 3d 20 00 00 lis r9,0
ffc2a530: 80 69 35 2c lwz r3,13612(r9)
ffc2a534: 81 23 00 10 lwz r9,16(r3)
ffc2a538: 2f 89 00 00 cmpwi cr7,r9,0
ffc2a53c: 41 9e 00 1c beq- cr7,ffc2a558 <chdir+0x100>
ffc2a540: 80 09 00 1c lwz r0,28(r9)
ffc2a544: 2f 80 00 00 cmpwi cr7,r0,0
ffc2a548: 41 9e 00 10 beq- cr7,ffc2a558 <chdir+0x100>
ffc2a54c: 38 63 00 04 addi r3,r3,4
ffc2a550: 7c 09 03 a6 mtctr r0
ffc2a554: 4e 80 04 21 bctrl
rtems_filesystem_current = loc;
ffc2a558: 3d 20 00 00 lis r9,0
ffc2a55c: 80 01 00 14 lwz r0,20(r1)
ffc2a560: 81 29 35 2c lwz r9,13612(r9)
ffc2a564: 38 60 00 00 li r3,0
ffc2a568: 81 41 00 0c lwz r10,12(r1)
ffc2a56c: 81 61 00 10 lwz r11,16(r1)
ffc2a570: 81 01 00 08 lwz r8,8(r1)
ffc2a574: 91 49 00 08 stw r10,8(r9)
ffc2a578: 91 09 00 04 stw r8,4(r9)
ffc2a57c: 91 69 00 0c stw r11,12(r9)
ffc2a580: 90 09 00 10 stw r0,16(r9)
ffc2a584: 80 01 00 18 lwz r0,24(r1)
ffc2a588: 90 09 00 14 stw r0,20(r9)
return 0;
}
ffc2a58c: 80 01 00 34 lwz r0,52(r1)
ffc2a590: 83 c1 00 28 lwz r30,40(r1)
ffc2a594: 7c 08 03 a6 mtlr r0
ffc2a598: 83 e1 00 2c lwz r31,44(r1)
ffc2a59c: 38 21 00 30 addi r1,r1,48
ffc2a5a0: 4e 80 00 20 blr
ffc06e34 <chmod>:
int chmod(
const char *path,
mode_t mode
)
{
ffc06e34: 94 21 ff c8 stwu r1,-56(r1)
ffc06e38: 7c 08 02 a6 mflr r0
ffc06e3c: 93 a1 00 2c stw r29,44(r1)
ffc06e40: 7c 7d 1b 78 mr r29,r3
ffc06e44: 90 01 00 3c stw r0,60(r1)
ffc06e48: 93 c1 00 30 stw r30,48(r1)
ffc06e4c: 7c 9e 23 78 mr r30,r4
ffc06e50: 93 e1 00 34 stw r31,52(r1)
int status;
rtems_filesystem_location_info_t loc;
int result;
status = rtems_filesystem_evaluate_path( path, strlen( path ), 0, &loc, true );
ffc06e54: 48 04 85 f1 bl ffc4f444 <strlen>
ffc06e58: 3b e1 00 08 addi r31,r1,8
ffc06e5c: 7c 64 1b 78 mr r4,r3
ffc06e60: 38 a0 00 00 li r5,0
ffc06e64: 7f a3 eb 78 mr r3,r29
ffc06e68: 7f e6 fb 78 mr r6,r31
ffc06e6c: 38 e0 00 01 li r7,1
ffc06e70: 48 00 03 65 bl ffc071d4 <rtems_filesystem_evaluate_path>
if ( status != 0 )
ffc06e74: 3b a0 ff ff li r29,-1
ffc06e78: 2f 83 00 00 cmpwi cr7,r3,0
ffc06e7c: 40 9e 00 bc bne- cr7,ffc06f38 <chmod+0x104>
return -1;
if ( !loc.handlers ){
ffc06e80: 81 21 00 10 lwz r9,16(r1)
ffc06e84: 2f 89 00 00 cmpwi cr7,r9,0
ffc06e88: 40 be 00 34 bne+ cr7,ffc06ebc <chmod+0x88>
rtems_filesystem_freenode( &loc );
ffc06e8c: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED
ffc06e90: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc06e94: 41 9e 00 1c beq- cr7,ffc06eb0 <chmod+0x7c> <== NOT EXECUTED
ffc06e98: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc06e9c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc06ea0: 41 9e 00 10 beq- cr7,ffc06eb0 <chmod+0x7c> <== NOT EXECUTED
ffc06ea4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc06ea8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc06eac: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EBADF );
ffc06eb0: 48 04 07 c1 bl ffc47670 <__errno> <== NOT EXECUTED
ffc06eb4: 38 00 00 09 li r0,9 <== NOT EXECUTED
ffc06eb8: 48 00 00 3c b ffc06ef4 <chmod+0xc0> <== NOT EXECUTED
}
if ( !loc.handlers->fchmod_h ){
ffc06ebc: 80 09 00 1c lwz r0,28(r9)
ffc06ec0: 2f 80 00 00 cmpwi cr7,r0,0
ffc06ec4: 40 be 00 3c bne+ cr7,ffc06f00 <chmod+0xcc>
rtems_filesystem_freenode( &loc );
ffc06ec8: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED
ffc06ecc: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc06ed0: 41 9e 00 1c beq- cr7,ffc06eec <chmod+0xb8> <== NOT EXECUTED
ffc06ed4: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc06ed8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc06edc: 41 9e 00 10 beq- cr7,ffc06eec <chmod+0xb8> <== NOT EXECUTED
ffc06ee0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc06ee4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc06ee8: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc06eec: 48 04 07 85 bl ffc47670 <__errno> <== NOT EXECUTED
ffc06ef0: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc06ef4: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc06ef8: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
ffc06efc: 48 00 00 3c b ffc06f38 <chmod+0x104> <== NOT EXECUTED
}
result = (*loc.handlers->fchmod_h)( &loc, mode );
ffc06f00: 7f c4 f3 78 mr r4,r30
ffc06f04: 7c 09 03 a6 mtctr r0
ffc06f08: 7f e3 fb 78 mr r3,r31
ffc06f0c: 4e 80 04 21 bctrl
rtems_filesystem_freenode( &loc );
ffc06f10: 81 21 00 14 lwz r9,20(r1)
if ( !loc.handlers->fchmod_h ){
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.handlers->fchmod_h)( &loc, mode );
ffc06f14: 7c 7d 1b 78 mr r29,r3
rtems_filesystem_freenode( &loc );
ffc06f18: 2f 89 00 00 cmpwi cr7,r9,0
ffc06f1c: 41 9e 00 1c beq- cr7,ffc06f38 <chmod+0x104>
ffc06f20: 80 09 00 1c lwz r0,28(r9)
ffc06f24: 2f 80 00 00 cmpwi cr7,r0,0
ffc06f28: 41 9e 00 10 beq- cr7,ffc06f38 <chmod+0x104>
ffc06f2c: 7f e3 fb 78 mr r3,r31
ffc06f30: 7c 09 03 a6 mtctr r0
ffc06f34: 4e 80 04 21 bctrl
return result;
}
ffc06f38: 80 01 00 3c lwz r0,60(r1)
ffc06f3c: 7f a3 eb 78 mr r3,r29
ffc06f40: 83 c1 00 30 lwz r30,48(r1)
ffc06f44: 7c 08 03 a6 mtlr r0
ffc06f48: 83 a1 00 2c lwz r29,44(r1)
ffc06f4c: 83 e1 00 34 lwz r31,52(r1)
ffc06f50: 38 21 00 38 addi r1,r1,56
ffc06f54: 4e 80 00 20 blr
ffc2a5a4 <chown>:
int chown(
const char *path,
uid_t owner,
gid_t group
)
{
ffc2a5a4: 94 21 ff c8 stwu r1,-56(r1)
ffc2a5a8: 7c 08 02 a6 mflr r0
ffc2a5ac: 93 81 00 28 stw r28,40(r1)
ffc2a5b0: 7c 7c 1b 78 mr r28,r3
ffc2a5b4: 90 01 00 3c stw r0,60(r1)
ffc2a5b8: 93 a1 00 2c stw r29,44(r1)
ffc2a5bc: 7c 9d 23 78 mr r29,r4
ffc2a5c0: 93 c1 00 30 stw r30,48(r1)
ffc2a5c4: 7c be 2b 78 mr r30,r5
ffc2a5c8: 93 e1 00 34 stw r31,52(r1)
rtems_filesystem_location_info_t loc;
int result;
if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) )
ffc2a5cc: 48 02 4e 79 bl ffc4f444 <strlen>
ffc2a5d0: 3b e1 00 08 addi r31,r1,8
ffc2a5d4: 7c 64 1b 78 mr r4,r3
ffc2a5d8: 38 a0 00 00 li r5,0
ffc2a5dc: 7f 83 e3 78 mr r3,r28
ffc2a5e0: 7f e6 fb 78 mr r6,r31
ffc2a5e4: 38 e0 00 01 li r7,1
ffc2a5e8: 4b fd cb ed bl ffc071d4 <rtems_filesystem_evaluate_path>
ffc2a5ec: 3b 80 ff ff li r28,-1
ffc2a5f0: 2f 83 00 00 cmpwi cr7,r3,0
ffc2a5f4: 40 9e 00 7c bne- cr7,ffc2a670 <chown+0xcc>
return -1;
if ( !loc.ops->chown_h ) {
ffc2a5f8: 81 21 00 14 lwz r9,20(r1)
ffc2a5fc: 80 09 00 18 lwz r0,24(r9)
ffc2a600: 2f 80 00 00 cmpwi cr7,r0,0
ffc2a604: 40 be 00 30 bne+ cr7,ffc2a634 <chown+0x90>
rtems_filesystem_freenode( &loc );
ffc2a608: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2a60c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2a610: 41 9e 00 10 beq- cr7,ffc2a620 <chown+0x7c> <== NOT EXECUTED
ffc2a614: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc2a618: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2a61c: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc2a620: 48 01 d0 51 bl ffc47670 <__errno> <== NOT EXECUTED
ffc2a624: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc2a628: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc2a62c: 3b 80 ff ff li r28,-1 <== NOT EXECUTED
ffc2a630: 48 00 00 40 b ffc2a670 <chown+0xcc> <== NOT EXECUTED
}
result = (*loc.ops->chown_h)( &loc, owner, group );
ffc2a634: 7f a4 eb 78 mr r4,r29
ffc2a638: 7c 09 03 a6 mtctr r0
ffc2a63c: 7f c5 f3 78 mr r5,r30
ffc2a640: 7f e3 fb 78 mr r3,r31
ffc2a644: 4e 80 04 21 bctrl
rtems_filesystem_freenode( &loc );
ffc2a648: 81 21 00 14 lwz r9,20(r1)
if ( !loc.ops->chown_h ) {
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->chown_h)( &loc, owner, group );
ffc2a64c: 7c 7c 1b 78 mr r28,r3
rtems_filesystem_freenode( &loc );
ffc2a650: 2f 89 00 00 cmpwi cr7,r9,0
ffc2a654: 41 9e 00 1c beq- cr7,ffc2a670 <chown+0xcc>
ffc2a658: 80 09 00 1c lwz r0,28(r9)
ffc2a65c: 2f 80 00 00 cmpwi cr7,r0,0
ffc2a660: 41 9e 00 10 beq- cr7,ffc2a670 <chown+0xcc>
ffc2a664: 7f e3 fb 78 mr r3,r31
ffc2a668: 7c 09 03 a6 mtctr r0
ffc2a66c: 4e 80 04 21 bctrl
return result;
}
ffc2a670: 80 01 00 3c lwz r0,60(r1)
ffc2a674: 7f 83 e3 78 mr r3,r28
ffc2a678: 83 a1 00 2c lwz r29,44(r1)
ffc2a67c: 7c 08 03 a6 mtlr r0
ffc2a680: 83 81 00 28 lwz r28,40(r1)
ffc2a684: 83 c1 00 30 lwz r30,48(r1)
ffc2a688: 83 e1 00 34 lwz r31,52(r1)
ffc2a68c: 38 21 00 38 addi r1,r1,56
ffc2a690: 4e 80 00 20 blr
ffc2a694 <chroot>:
#include <rtems/seterr.h>
int chroot(
const char *pathname
)
{
ffc2a694: 94 21 ff c8 stwu r1,-56(r1)
ffc2a698: 7c 08 02 a6 mflr r0
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) {
ffc2a69c: 3d 20 00 00 lis r9,0
#include <rtems/seterr.h>
int chroot(
const char *pathname
)
{
ffc2a6a0: 93 c1 00 30 stw r30,48(r1)
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) {
ffc2a6a4: 3f c0 00 00 lis r30,0
#include <rtems/seterr.h>
int chroot(
const char *pathname
)
{
ffc2a6a8: 93 e1 00 34 stw r31,52(r1)
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) {
ffc2a6ac: 83 fe 35 2c lwz r31,13612(r30)
#include <rtems/seterr.h>
int chroot(
const char *pathname
)
{
ffc2a6b0: 90 01 00 3c stw r0,60(r1)
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) {
ffc2a6b4: 38 09 63 dc addi r0,r9,25564
ffc2a6b8: 7f 9f 00 00 cmpw cr7,r31,r0
#include <rtems/seterr.h>
int chroot(
const char *pathname
)
{
ffc2a6bc: 93 a1 00 2c stw r29,44(r1)
ffc2a6c0: 7c 7d 1b 78 mr r29,r3
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) {
ffc2a6c4: 40 be 00 28 bne+ cr7,ffc2a6ec <chroot+0x58>
rtems_libio_set_private_env(); /* try to set a new private env*/
ffc2a6c8: 48 00 1d 89 bl ffc2c450 <rtems_libio_set_private_env>
if (rtems_current_user_env == &rtems_global_user_env) /* not ok */
ffc2a6cc: 80 1e 35 2c lwz r0,13612(r30)
ffc2a6d0: 7f 80 f8 00 cmpw cr7,r0,r31
ffc2a6d4: 40 be 00 18 bne+ cr7,ffc2a6ec <chroot+0x58>
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc2a6d8: 48 01 cf 99 bl ffc47670 <__errno> <== NOT EXECUTED
ffc2a6dc: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc2a6e0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc2a6e4: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc2a6e8: 48 00 00 b4 b ffc2a79c <chroot+0x108> <== NOT EXECUTED
}
result = chdir(pathname);
ffc2a6ec: 7f a3 eb 78 mr r3,r29
ffc2a6f0: 4b ff fd 69 bl ffc2a458 <chdir>
if (result) {
ffc2a6f4: 2f 83 00 00 cmpwi cr7,r3,0
ffc2a6f8: 40 9e 00 28 bne- cr7,ffc2a720 <chroot+0x8c>
rtems_set_errno_and_return_minus_one( errno );
}
/* clone the new root location */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
ffc2a6fc: 3c 60 ff c6 lis r3,-58
ffc2a700: 38 63 57 c5 addi r3,r3,22469
ffc2a704: 38 80 00 01 li r4,1
ffc2a708: 38 a0 00 00 li r5,0
ffc2a70c: 38 c1 00 08 addi r6,r1,8
ffc2a710: 38 e0 00 00 li r7,0
ffc2a714: 4b fd ca c1 bl ffc071d4 <rtems_filesystem_evaluate_path>
ffc2a718: 2f 83 00 00 cmpwi cr7,r3,0
ffc2a71c: 41 be 00 20 beq+ cr7,ffc2a73c <chroot+0xa8>
/* our cwd has changed, though - but there is no easy way of return :-( */
rtems_set_errno_and_return_minus_one( errno );
ffc2a720: 48 01 cf 51 bl ffc47670 <__errno> <== NOT EXECUTED
ffc2a724: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED
ffc2a728: 48 01 cf 49 bl ffc47670 <__errno> <== NOT EXECUTED
ffc2a72c: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED
ffc2a730: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc2a734: 90 1f 00 00 stw r0,0(r31) <== NOT EXECUTED
ffc2a738: 48 00 00 64 b ffc2a79c <chroot+0x108> <== NOT EXECUTED
}
rtems_filesystem_freenode(&rtems_filesystem_root);
ffc2a73c: 3d 20 00 00 lis r9,0
ffc2a740: 80 69 35 2c lwz r3,13612(r9)
ffc2a744: 81 23 00 24 lwz r9,36(r3)
ffc2a748: 2f 89 00 00 cmpwi cr7,r9,0
ffc2a74c: 41 9e 00 1c beq- cr7,ffc2a768 <chroot+0xd4>
ffc2a750: 80 09 00 1c lwz r0,28(r9)
ffc2a754: 2f 80 00 00 cmpwi cr7,r0,0
ffc2a758: 41 9e 00 10 beq- cr7,ffc2a768 <chroot+0xd4>
ffc2a75c: 38 63 00 18 addi r3,r3,24
ffc2a760: 7c 09 03 a6 mtctr r0
ffc2a764: 4e 80 04 21 bctrl
rtems_filesystem_root = loc;
ffc2a768: 3d 20 00 00 lis r9,0
ffc2a76c: 80 01 00 14 lwz r0,20(r1)
ffc2a770: 81 29 35 2c lwz r9,13612(r9)
ffc2a774: 38 60 00 00 li r3,0
ffc2a778: 81 41 00 0c lwz r10,12(r1)
ffc2a77c: 81 61 00 10 lwz r11,16(r1)
ffc2a780: 81 01 00 08 lwz r8,8(r1)
ffc2a784: 91 49 00 1c stw r10,28(r9)
ffc2a788: 91 09 00 18 stw r8,24(r9)
ffc2a78c: 91 69 00 20 stw r11,32(r9)
ffc2a790: 90 09 00 24 stw r0,36(r9)
ffc2a794: 80 01 00 18 lwz r0,24(r1)
ffc2a798: 90 09 00 28 stw r0,40(r9)
return 0;
}
ffc2a79c: 80 01 00 3c lwz r0,60(r1)
ffc2a7a0: 83 a1 00 2c lwz r29,44(r1)
ffc2a7a4: 7c 08 03 a6 mtlr r0
ffc2a7a8: 83 c1 00 30 lwz r30,48(r1)
ffc2a7ac: 83 e1 00 34 lwz r31,52(r1)
ffc2a7b0: 38 21 00 38 addi r1,r1,56
ffc2a7b4: 4e 80 00 20 blr
ffc0bdb8 <devFS_close>:
#include "devfs.h"
int devFS_close(
rtems_libio_t *iop
)
{
ffc0bdb8: 94 21 ff e8 stwu r1,-24(r1)
ffc0bdbc: 7c 08 02 a6 mflr r0
ffc0bdc0: 90 01 00 1c stw r0,28(r1)
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
args.flags = 0;
ffc0bdc4: 38 00 00 00 li r0,0
args.mode = 0;
status = rtems_io_close(
ffc0bdc8: 38 a1 00 08 addi r5,r1,8
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
args.flags = 0;
args.mode = 0;
ffc0bdcc: 90 01 00 10 stw r0,16(r1)
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
args.flags = 0;
ffc0bdd0: 90 01 00 0c stw r0,12(r1)
{
rtems_libio_open_close_args_t args;
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
ffc0bdd4: 81 23 00 3c lwz r9,60(r3)
args.iop = iop;
ffc0bdd8: 90 61 00 08 stw r3,8(r1)
args.flags = 0;
args.mode = 0;
status = rtems_io_close(
ffc0bddc: 80 89 00 0c lwz r4,12(r9)
ffc0bde0: 80 69 00 08 lwz r3,8(r9)
ffc0bde4: 48 00 15 ed bl ffc0d3d0 <rtems_io_close>
np->major,
np->minor,
(void *) &args
);
if ( status ) {
ffc0bde8: 38 00 00 00 li r0,0
ffc0bdec: 2f 83 00 00 cmpwi cr7,r3,0
ffc0bdf0: 41 be 00 0c beq+ cr7,ffc0bdfc <devFS_close+0x44>
return rtems_deviceio_errno(status);
ffc0bdf4: 48 00 01 35 bl ffc0bf28 <rtems_deviceio_errno> <== NOT EXECUTED
ffc0bdf8: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED
}
return 0;
}
ffc0bdfc: 7c 03 03 78 mr r3,r0
ffc0be00: 80 01 00 1c lwz r0,28(r1)
ffc0be04: 38 21 00 18 addi r1,r1,24
ffc0be08: 7c 08 03 a6 mtlr r0
ffc0be0c: 4e 80 00 20 blr
ffc0be1c <devFS_evaluate_path>:
const char *pathname,
int pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc
)
{
ffc0be1c: 94 21 ff d8 stwu r1,-40(r1)
ffc0be20: 7c 08 02 a6 mflr r0
ffc0be24: 93 c1 00 20 stw r30,32(r1)
assert( 0 );
rtems_set_errno_and_return_minus_one( EIO );
}
/* get the device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
ffc0be28: 83 c6 00 00 lwz r30,0(r6)
const char *pathname,
int pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc
)
{
ffc0be2c: 93 21 00 0c stw r25,12(r1)
ffc0be30: 7c 79 1b 78 mr r25,r3
rtems_set_errno_and_return_minus_one( EIO );
}
/* get the device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
if (!device_name_table)
ffc0be34: 2f 9e 00 00 cmpwi cr7,r30,0
const char *pathname,
int pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc
)
{
ffc0be38: 93 61 00 14 stw r27,20(r1)
ffc0be3c: 7c 9b 23 78 mr r27,r4
ffc0be40: 93 e1 00 24 stw r31,36(r1)
ffc0be44: 7c df 33 78 mr r31,r6
ffc0be48: 90 01 00 2c stw r0,44(r1)
ffc0be4c: 93 41 00 10 stw r26,16(r1)
ffc0be50: 93 81 00 18 stw r28,24(r1)
ffc0be54: 93 a1 00 1c stw r29,28(r1)
rtems_set_errno_and_return_minus_one( EIO );
}
/* get the device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
if (!device_name_table)
ffc0be58: 41 9e 00 14 beq- cr7,ffc0be6c <devFS_evaluate_path+0x50>
rtems_set_errno_and_return_minus_one( EFAULT );
for (i = 0; i < rtems_device_table_size; i++) {
ffc0be5c: 3f 40 00 00 lis r26,0
ffc0be60: 3b 5a 26 b0 addi r26,r26,9904
rtems_set_errno_and_return_minus_one( EIO );
}
/* get the device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
if (!device_name_table)
ffc0be64: 3b a0 00 00 li r29,0
ffc0be68: 48 00 00 6c b ffc0bed4 <devFS_evaluate_path+0xb8>
rtems_set_errno_and_return_minus_one( EFAULT );
ffc0be6c: 48 00 2a e5 bl ffc0e950 <__errno> <== NOT EXECUTED
ffc0be70: 38 00 00 0e li r0,14 <== NOT EXECUTED
ffc0be74: 48 00 00 80 b ffc0bef4 <devFS_evaluate_path+0xd8> <== NOT EXECUTED
for (i = 0; i < rtems_device_table_size; i++) {
if (!device_name_table[i].device_name)
ffc0be78: 83 9e 00 00 lwz r28,0(r30)
ffc0be7c: 2f 9c 00 00 cmpwi cr7,r28,0
continue;
if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0)
ffc0be80: 7f 84 e3 78 mr r4,r28
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++) {
if (!device_name_table[i].device_name)
ffc0be84: 41 9e 00 4c beq- cr7,ffc0bed0 <devFS_evaluate_path+0xb4>
continue;
if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0)
ffc0be88: 48 00 3b c9 bl ffc0fa50 <strncmp>
ffc0be8c: 2f 83 00 00 cmpwi cr7,r3,0
ffc0be90: 40 9e 00 40 bne- cr7,ffc0bed0 <devFS_evaluate_path+0xb4>
continue;
if (device_name_table[i].device_name[pathnamelen] != '\0')
ffc0be94: 7c 1c d8 ae lbzx r0,r28,r27
ffc0be98: 2f 80 00 00 cmpwi cr7,r0,0
ffc0be9c: 40 be 00 34 bne+ cr7,ffc0bed0 <devFS_evaluate_path+0xb4>
/* 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;
ffc0bea0: 3d 20 00 00 lis r9,0
if (device_name_table[i].device_name[pathnamelen] != '\0')
continue;
/* find the device, set proper values */
pathloc->node_access = (void *)&device_name_table[i];
ffc0bea4: 93 df 00 00 stw r30,0(r31)
pathloc->handlers = &devFS_file_handlers;
pathloc->ops = &devFS_ops;
pathloc->mt_entry = rtems_filesystem_root.mt_entry;
ffc0bea8: 81 29 26 f8 lwz r9,9976(r9)
ffc0beac: 80 09 00 28 lwz r0,40(r9)
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;
ffc0beb0: 3d 20 00 00 lis r9,0
pathloc->ops = &devFS_ops;
pathloc->mt_entry = rtems_filesystem_root.mt_entry;
ffc0beb4: 90 1f 00 10 stw r0,16(r31)
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;
ffc0beb8: 38 09 21 48 addi r0,r9,8520
pathloc->ops = &devFS_ops;
ffc0bebc: 3d 20 00 00 lis r9,0
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;
ffc0bec0: 90 1f 00 08 stw r0,8(r31)
pathloc->ops = &devFS_ops;
ffc0bec4: 38 09 21 80 addi r0,r9,8576
ffc0bec8: 90 1f 00 0c stw r0,12(r31)
pathloc->mt_entry = rtems_filesystem_root.mt_entry;
return 0;
ffc0becc: 48 00 00 30 b ffc0befc <devFS_evaluate_path+0xe0>
/* 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++) {
ffc0bed0: 3b de 00 14 addi r30,r30,20
ffc0bed4: 80 1a 00 00 lwz r0,0(r26)
if (!device_name_table[i].device_name)
continue;
if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0)
ffc0bed8: 7f 23 cb 78 mr r3,r25
ffc0bedc: 7f 65 db 78 mr r5,r27
/* 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++) {
ffc0bee0: 7f 9d 00 40 cmplw cr7,r29,r0
ffc0bee4: 3b bd 00 01 addi r29,r29,1
ffc0bee8: 41 9c ff 90 blt+ cr7,ffc0be78 <devFS_evaluate_path+0x5c>
pathloc->mt_entry = rtems_filesystem_root.mt_entry;
return 0;
}
/* no such file or directory */
rtems_set_errno_and_return_minus_one( ENOENT );
ffc0beec: 48 00 2a 65 bl ffc0e950 <__errno>
ffc0bef0: 38 00 00 02 li r0,2
ffc0bef4: 90 03 00 00 stw r0,0(r3)
ffc0bef8: 38 60 ff ff li r3,-1
}
ffc0befc: 80 01 00 2c lwz r0,44(r1)
ffc0bf00: 83 21 00 0c lwz r25,12(r1)
ffc0bf04: 7c 08 03 a6 mtlr r0
ffc0bf08: 83 41 00 10 lwz r26,16(r1)
ffc0bf0c: 83 61 00 14 lwz r27,20(r1)
ffc0bf10: 83 81 00 18 lwz r28,24(r1)
ffc0bf14: 83 a1 00 1c lwz r29,28(r1)
ffc0bf18: 83 c1 00 20 lwz r30,32(r1)
ffc0bf1c: 83 e1 00 24 lwz r31,36(r1)
ffc0bf20: 38 21 00 28 addi r1,r1,40
ffc0bf24: 4e 80 00 20 blr
ffc03858 <devFS_initialize>:
int devFS_initialize(
rtems_filesystem_mount_table_entry_t *temp_mt_entry
)
{
ffc03858: 94 21 ff e8 stwu r1,-24(r1)
ffc0385c: 7c 08 02 a6 mflr r0
ffc03860: 93 a1 00 0c stw r29,12(r1)
rtems_device_name_t *device_name_table;
/* allocate device only filesystem name table */
device_name_table = (rtems_device_name_t *)_Workspace_Allocate(
ffc03864: 3f a0 00 00 lis r29,0
int devFS_initialize(
rtems_filesystem_mount_table_entry_t *temp_mt_entry
)
{
ffc03868: 90 01 00 1c stw r0,28(r1)
rtems_device_name_t *device_name_table;
/* allocate device only filesystem name table */
device_name_table = (rtems_device_name_t *)_Workspace_Allocate(
ffc0386c: 80 1d 26 b0 lwz r0,9904(r29)
int devFS_initialize(
rtems_filesystem_mount_table_entry_t *temp_mt_entry
)
{
ffc03870: 93 e1 00 14 stw r31,20(r1)
ffc03874: 7c 7f 1b 78 mr r31,r3
rtems_device_name_t *device_name_table;
/* allocate device only filesystem name table */
device_name_table = (rtems_device_name_t *)_Workspace_Allocate(
ffc03878: 1c 60 00 14 mulli r3,r0,20
int devFS_initialize(
rtems_filesystem_mount_table_entry_t *temp_mt_entry
)
{
ffc0387c: 93 c1 00 10 stw r30,16(r1)
rtems_device_name_t *device_name_table;
/* allocate device only filesystem name table */
device_name_table = (rtems_device_name_t *)_Workspace_Allocate(
ffc03880: 48 00 84 55 bl ffc0bcd4 <_Workspace_Allocate>
sizeof( rtems_device_name_t ) * ( rtems_device_table_size )
);
/* no memory for device filesystem */
if (!device_name_table)
ffc03884: 7c 7e 1b 79 mr. r30,r3
ffc03888: 40 a2 00 18 bne+ ffc038a0 <devFS_initialize+0x48>
rtems_set_errno_and_return_minus_one( ENOMEM );
ffc0388c: 48 00 b0 c5 bl ffc0e950 <__errno> <== NOT EXECUTED
ffc03890: 38 00 00 0c li r0,12 <== NOT EXECUTED
ffc03894: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc03898: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc0389c: 48 00 00 30 b ffc038cc <devFS_initialize+0x74> <== NOT EXECUTED
memset(
ffc038a0: 80 bd 26 b0 lwz r5,9904(r29)
ffc038a4: 38 80 00 00 li r4,0
ffc038a8: 1c a5 00 14 mulli r5,r5,20
ffc038ac: 48 00 bc 7d bl ffc0f528 <memset>
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;
ffc038b0: 3d 20 00 00 lis r9,0
ffc038b4: 39 29 21 48 addi r9,r9,8520
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;
ffc038b8: 93 df 00 1c stw r30,28(r31)
sizeof( rtems_device_name_t ) * ( rtems_device_table_size )
);
/* set file handlers */
temp_mt_entry->mt_fs_root.handlers = &devFS_file_handlers;
temp_mt_entry->mt_fs_root.ops = &devFS_ops;
ffc038bc: 38 09 00 38 addi r0,r9,56
ffc038c0: 90 1f 00 28 stw r0,40(r31)
/* Set the node_access to device name table */
temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table;
ffc038c4: 38 60 00 00 li r3,0
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;
ffc038c8: 91 3f 00 24 stw r9,36(r31)
/* Set the node_access to device name table */
temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table;
return 0;
}
ffc038cc: 80 01 00 1c lwz r0,28(r1)
ffc038d0: 83 a1 00 0c lwz r29,12(r1)
ffc038d4: 7c 08 03 a6 mtlr r0
ffc038d8: 83 c1 00 10 lwz r30,16(r1)
ffc038dc: 83 e1 00 14 lwz r31,20(r1)
ffc038e0: 38 21 00 18 addi r1,r1,24
ffc038e4: 4e 80 00 20 blr
ffc03a78 <devFS_ioctl>:
int devFS_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
ffc03a78: 94 21 ff e8 stwu r1,-24(r1)
ffc03a7c: 7c 08 02 a6 mflr r0
ffc03a80: 7c 69 1b 78 mr r9,r3
ffc03a84: 90 01 00 1c stw r0,28(r1)
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
args.command = command;
ffc03a88: 90 81 00 0c stw r4,12(r1)
{
rtems_libio_ioctl_args_t args;
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
ffc03a8c: 81 63 00 3c lwz r11,60(r3)
args.iop = iop;
args.command = command;
args.buffer = buffer;
ffc03a90: 90 a1 00 10 stw r5,16(r1)
status = rtems_io_control(
ffc03a94: 38 a1 00 08 addi r5,r1,8
ffc03a98: 80 8b 00 0c lwz r4,12(r11)
ffc03a9c: 80 6b 00 08 lwz r3,8(r11)
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
ffc03aa0: 91 21 00 08 stw r9,8(r1)
args.command = command;
args.buffer = buffer;
status = rtems_io_control(
ffc03aa4: 48 00 4a f5 bl ffc08598 <rtems_io_control>
np->major,
np->minor,
(void *) &args
);
if ( status )
ffc03aa8: 2f 83 00 00 cmpwi cr7,r3,0
ffc03aac: 41 be 00 0c beq+ cr7,ffc03ab8 <devFS_ioctl+0x40>
return rtems_deviceio_errno(status);
ffc03ab0: 48 00 84 79 bl ffc0bf28 <rtems_deviceio_errno> <== NOT EXECUTED
ffc03ab4: 48 00 00 08 b ffc03abc <devFS_ioctl+0x44> <== NOT EXECUTED
return args.ioctl_return;
ffc03ab8: 80 61 00 14 lwz r3,20(r1)
}
ffc03abc: 80 01 00 1c lwz r0,28(r1)
ffc03ac0: 38 21 00 18 addi r1,r1,24
ffc03ac4: 7c 08 03 a6 mtlr r0
ffc03ac8: 4e 80 00 20 blr
ffc038e8 <devFS_mknod>:
const char *path,
mode_t mode,
dev_t dev,
rtems_filesystem_location_info_t *pathloc
)
{
ffc038e8: 94 21 ff d8 stwu r1,-40(r1)
ffc038ec: 7c 08 02 a6 mflr r0
ffc038f0: 93 81 00 18 stw r28,24(r1)
ffc038f4: 7c dc 33 78 mr r28,r6
ffc038f8: 93 a1 00 1c stw r29,28(r1)
ffc038fc: 7c bd 2b 78 mr r29,r5
ffc03900: 93 c1 00 20 stw r30,32(r1)
ffc03904: 7c 9e 23 78 mr r30,r4
ffc03908: 93 e1 00 24 stw r31,36(r1)
ffc0390c: 7c 7f 1b 78 mr r31,r3
ffc03910: 90 01 00 2c stw r0,44(r1)
ffc03914: 93 01 00 08 stw r24,8(r1)
ffc03918: 93 21 00 0c stw r25,12(r1)
ffc0391c: 93 41 00 10 stw r26,16(r1)
ffc03920: 93 61 00 14 stw r27,20(r1)
* 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') &&
ffc03924: 88 03 00 00 lbz r0,0(r3)
ffc03928: 2f 80 00 64 cmpwi cr7,r0,100
ffc0392c: 40 be 00 2c bne+ cr7,ffc03958 <devFS_mknod+0x70>
ffc03930: 88 03 00 01 lbz r0,1(r3)
ffc03934: 2f 80 00 65 cmpwi cr7,r0,101
ffc03938: 40 be 00 20 bne+ cr7,ffc03958 <devFS_mknod+0x70>
(path[2] == 'v') && (path[3] == '\0'))
ffc0393c: 88 03 00 02 lbz r0,2(r3)
ffc03940: 2f 80 00 76 cmpwi cr7,r0,118
ffc03944: 40 be 00 14 bne+ cr7,ffc03958 <devFS_mknod+0x70>
ffc03948: 88 03 00 03 lbz r0,3(r3)
ffc0394c: 38 60 00 00 li r3,0
ffc03950: 2f 80 00 00 cmpwi cr7,r0,0
ffc03954: 41 9e 00 ec beq- cr7,ffc03a40 <devFS_mknod+0x158>
return 0;
/* must be a character device or a block device */
if (!S_ISBLK(mode) && !S_ISCHR(mode))
ffc03958: 57 c0 04 26 rlwinm r0,r30,0,16,19
ffc0395c: 2f 80 60 00 cmpwi cr7,r0,24576
ffc03960: 41 9e 00 18 beq- cr7,ffc03978 <devFS_mknod+0x90>
ffc03964: 2f 80 20 00 cmpwi cr7,r0,8192
ffc03968: 41 be 00 10 beq+ cr7,ffc03978 <devFS_mknod+0x90>
rtems_set_errno_and_return_minus_one( EINVAL );
ffc0396c: 48 00 af e5 bl ffc0e950 <__errno> <== NOT EXECUTED
ffc03970: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc03974: 48 00 00 2c b ffc039a0 <devFS_mknod+0xb8> <== NOT EXECUTED
else
rtems_filesystem_split_dev_t(dev, major, minor);
/* Find an empty slot in device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
ffc03978: 83 47 00 00 lwz r26,0(r7)
if (!device_name_table)
ffc0397c: 2f 9a 00 00 cmpwi cr7,r26,0
ffc03980: 41 9e 00 18 beq- cr7,ffc03998 <devFS_mknod+0xb0>
rtems_set_errno_and_return_minus_one( EFAULT );
for (slot = -1, i = 0; i < rtems_device_table_size; i++){
ffc03984: 3f 00 00 00 lis r24,0
ffc03988: 3b 18 26 b0 addi r24,r24,9904
else
rtems_filesystem_split_dev_t(dev, major, minor);
/* Find an empty slot in device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
if (!device_name_table)
ffc0398c: 3b 20 ff ff li r25,-1
ffc03990: 3b 60 00 00 li r27,0
ffc03994: 48 00 00 48 b ffc039dc <devFS_mknod+0xf4>
rtems_set_errno_and_return_minus_one( EFAULT );
ffc03998: 48 00 af b9 bl ffc0e950 <__errno> <== NOT EXECUTED
ffc0399c: 38 00 00 0e li r0,14 <== NOT EXECUTED
ffc039a0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc039a4: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc039a8: 48 00 00 98 b ffc03a40 <devFS_mknod+0x158> <== NOT EXECUTED
for (slot = -1, i = 0; i < rtems_device_table_size; i++){
if (device_name_table[i].device_name == NULL)
ffc039ac: 7c 1a 48 2e lwzx r0,r26,r9
ffc039b0: 2f 80 00 00 cmpwi cr7,r0,0
slot = i;
else
if (strcmp(path, device_name_table[i].device_name) == 0)
ffc039b4: 7c 04 03 78 mr r4,r0
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++){
if (device_name_table[i].device_name == NULL)
ffc039b8: 41 9e 00 1c beq- cr7,ffc039d4 <devFS_mknod+0xec>
slot = i;
else
if (strcmp(path, device_name_table[i].device_name) == 0)
ffc039bc: 48 00 be d9 bl ffc0f894 <strcmp> <== NOT EXECUTED
ffc039c0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc039c4: 40 be 00 14 bne+ cr7,ffc039d8 <devFS_mknod+0xf0> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EEXIST );
ffc039c8: 48 00 af 89 bl ffc0e950 <__errno> <== NOT EXECUTED
ffc039cc: 38 00 00 11 li r0,17 <== NOT EXECUTED
ffc039d0: 4b ff ff d0 b ffc039a0 <devFS_mknod+0xb8> <== NOT EXECUTED
ffc039d4: 7f 79 db 78 mr r25,r27
/* 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++){
ffc039d8: 3b 7b 00 01 addi r27,r27,1
ffc039dc: 80 18 00 00 lwz r0,0(r24)
if (device_name_table[i].device_name == NULL)
ffc039e0: 1d 3b 00 14 mulli r9,r27,20
/* 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++){
ffc039e4: 7f 9b 00 40 cmplw cr7,r27,r0
if (device_name_table[i].device_name == NULL)
slot = i;
else
if (strcmp(path, device_name_table[i].device_name) == 0)
ffc039e8: 7f e3 fb 78 mr r3,r31
/* 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++){
ffc039ec: 41 9c ff c0 blt+ cr7,ffc039ac <devFS_mknod+0xc4>
else
if (strcmp(path, device_name_table[i].device_name) == 0)
rtems_set_errno_and_return_minus_one( EEXIST );
}
if (slot == -1)
ffc039f0: 2f 99 ff ff cmpwi cr7,r25,-1
ffc039f4: 40 be 00 10 bne+ cr7,ffc03a04 <devFS_mknod+0x11c>
rtems_set_errno_and_return_minus_one( ENOMEM );
ffc039f8: 48 00 af 59 bl ffc0e950 <__errno> <== NOT EXECUTED
ffc039fc: 38 00 00 0c li r0,12 <== NOT EXECUTED
ffc03a00: 4b ff ff a0 b ffc039a0 <devFS_mknod+0xb8> <== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc03a04: 7f 60 00 a6 mfmsr r27
ffc03a08: 7c 10 42 a6 mfsprg r0,0
ffc03a0c: 7f 60 00 78 andc r0,r27,r0
ffc03a10: 7c 00 01 24 mtmsr r0
_ISR_Disable(level);
device_name_table[slot].device_name = (char *)path;
ffc03a14: 1f 39 00 14 mulli r25,r25,20
ffc03a18: 7f fa c9 2e stwx r31,r26,r25
device_name_table[slot].device_name_length = strlen(path);
ffc03a1c: 7f e3 fb 78 mr r3,r31
if (slot == -1)
rtems_set_errno_and_return_minus_one( ENOMEM );
_ISR_Disable(level);
device_name_table[slot].device_name = (char *)path;
ffc03a20: 7f 5a ca 14 add r26,r26,r25
device_name_table[slot].device_name_length = strlen(path);
ffc03a24: 48 00 bf 91 bl ffc0f9b4 <strlen>
device_name_table[slot].major = major;
device_name_table[slot].minor = minor;
device_name_table[slot].mode = mode;
ffc03a28: 93 da 00 10 stw r30,16(r26)
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);
ffc03a2c: 90 7a 00 04 stw r3,4(r26)
device_name_table[slot].major = major;
ffc03a30: 93 ba 00 08 stw r29,8(r26)
device_name_table[slot].minor = minor;
ffc03a34: 93 9a 00 0c stw r28,12(r26)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc03a38: 7f 60 01 24 mtmsr r27
ffc03a3c: 38 60 00 00 li r3,0
device_name_table[slot].mode = mode;
_ISR_Enable(level);
return 0;
}
ffc03a40: 80 01 00 2c lwz r0,44(r1)
ffc03a44: 83 01 00 08 lwz r24,8(r1)
ffc03a48: 7c 08 03 a6 mtlr r0
ffc03a4c: 83 21 00 0c lwz r25,12(r1)
ffc03a50: 83 41 00 10 lwz r26,16(r1)
ffc03a54: 83 61 00 14 lwz r27,20(r1)
ffc03a58: 83 81 00 18 lwz r28,24(r1)
ffc03a5c: 83 a1 00 1c lwz r29,28(r1)
ffc03a60: 83 c1 00 20 lwz r30,32(r1)
ffc03a64: 83 e1 00 24 lwz r31,36(r1)
ffc03a68: 38 21 00 28 addi r1,r1,40
ffc03a6c: 4e 80 00 20 blr
ffc03acc <devFS_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
ffc03acc: 94 21 ff e8 stwu r1,-24(r1)
ffc03ad0: 7c 08 02 a6 mflr r0
ffc03ad4: 90 01 00 1c stw r0,28(r1)
args.iop = iop;
args.flags = iop->flags;
args.mode = mode;
status = rtems_io_open(
ffc03ad8: 38 a1 00 08 addi r5,r1,8
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
args.flags = iop->flags;
ffc03adc: 80 03 00 18 lwz r0,24(r3)
{
rtems_libio_open_close_args_t args;
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
ffc03ae0: 81 23 00 3c lwz r9,60(r3)
args.iop = iop;
args.flags = iop->flags;
ffc03ae4: 90 01 00 0c stw r0,12(r1)
args.mode = mode;
ffc03ae8: 90 c1 00 10 stw r6,16(r1)
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
ffc03aec: 90 61 00 08 stw r3,8(r1)
args.flags = iop->flags;
args.mode = mode;
status = rtems_io_open(
ffc03af0: 80 89 00 0c lwz r4,12(r9)
ffc03af4: 80 69 00 08 lwz r3,8(r9)
ffc03af8: 48 00 4c 61 bl ffc08758 <rtems_io_open>
np->major,
np->minor,
(void *) &args
);
if ( status )
ffc03afc: 38 00 00 00 li r0,0
ffc03b00: 2f 83 00 00 cmpwi cr7,r3,0
ffc03b04: 41 be 00 0c beq+ cr7,ffc03b10 <devFS_open+0x44>
return rtems_deviceio_errno(status);
ffc03b08: 48 00 84 21 bl ffc0bf28 <rtems_deviceio_errno> <== NOT EXECUTED
ffc03b0c: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED
return 0;
}
ffc03b10: 7c 03 03 78 mr r3,r0
ffc03b14: 80 01 00 1c lwz r0,28(r1)
ffc03b18: 38 21 00 18 addi r1,r1,24
ffc03b1c: 7c 08 03 a6 mtlr r0
ffc03b20: 4e 80 00 20 blr
ffc03b24 <devFS_read>:
ssize_t devFS_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
ffc03b24: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED
ffc03b28: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc03b2c: 7c 69 1b 78 mr r9,r3 <== NOT EXECUTED
ffc03b30: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED
args.iop = iop;
args.offset = iop->offset;
args.buffer = buffer;
args.count = count;
args.flags = iop->flags;
ffc03b34: 80 03 00 18 lwz r0,24(r3) <== 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;
ffc03b38: 81 43 00 3c lwz r10,60(r3) <== NOT EXECUTED
args.iop = iop;
args.offset = iop->offset;
args.buffer = buffer;
args.count = count;
args.flags = iop->flags;
ffc03b3c: 90 01 00 20 stw r0,32(r1) <== NOT EXECUTED
args.bytes_moved = 0;
ffc03b40: 38 00 00 00 li r0,0 <== NOT EXECUTED
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
args.offset = iop->offset;
args.buffer = buffer;
args.count = count;
ffc03b44: 90 a1 00 1c stw r5,28(r1) <== NOT EXECUTED
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_read(
ffc03b48: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED
args.iop = iop;
args.offset = iop->offset;
args.buffer = buffer;
args.count = count;
args.flags = iop->flags;
args.bytes_moved = 0;
ffc03b4c: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
args.offset = iop->offset;
ffc03b50: 81 63 00 10 lwz r11,16(r3) <== NOT EXECUTED
ffc03b54: 81 83 00 14 lwz r12,20(r3) <== NOT EXECUTED
args.buffer = buffer;
ffc03b58: 90 81 00 18 stw r4,24(r1) <== NOT EXECUTED
args.count = count;
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_read(
ffc03b5c: 80 6a 00 08 lwz r3,8(r10) <== NOT EXECUTED
ffc03b60: 80 8a 00 0c lwz r4,12(r10) <== NOT EXECUTED
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
args.offset = iop->offset;
ffc03b64: 91 61 00 10 stw r11,16(r1) <== NOT EXECUTED
ffc03b68: 91 81 00 14 stw r12,20(r1) <== NOT EXECUTED
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
ffc03b6c: 91 21 00 08 stw r9,8(r1) <== NOT EXECUTED
args.buffer = buffer;
args.count = count;
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_read(
ffc03b70: 48 00 4c 49 bl ffc087b8 <rtems_io_read> <== NOT EXECUTED
np->major,
np->minor,
(void *) &args
);
if ( status )
ffc03b74: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc03b78: 41 be 00 0c beq+ cr7,ffc03b84 <devFS_read+0x60> <== NOT EXECUTED
return rtems_deviceio_errno(status);
ffc03b7c: 48 00 83 ad bl ffc0bf28 <rtems_deviceio_errno> <== NOT EXECUTED
ffc03b80: 48 00 00 08 b ffc03b88 <devFS_read+0x64> <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
ffc03b84: 80 61 00 24 lwz r3,36(r1) <== NOT EXECUTED
}
ffc03b88: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED
ffc03b8c: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED
ffc03b90: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc03b94: 4e 80 00 20 blr <== NOT EXECUTED
ffc03b98 <devFS_stat>:
int devFS_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
ffc03b98: 94 21 ff f8 stwu r1,-8(r1)
ffc03b9c: 7c 08 02 a6 mflr r0
ffc03ba0: 90 01 00 0c stw r0,12(r1)
rtems_device_name_t *the_dev;
the_dev = (rtems_device_name_t *)loc->node_access;
ffc03ba4: 81 23 00 00 lwz r9,0(r3)
if (!the_dev)
ffc03ba8: 2f 89 00 00 cmpwi cr7,r9,0
ffc03bac: 40 be 00 18 bne+ cr7,ffc03bc4 <devFS_stat+0x2c>
rtems_set_errno_and_return_minus_one( EFAULT );
ffc03bb0: 48 00 ad a1 bl ffc0e950 <__errno> <== NOT EXECUTED
ffc03bb4: 38 00 00 0e li r0,14 <== NOT EXECUTED
ffc03bb8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc03bbc: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc03bc0: 48 00 00 20 b ffc03be0 <devFS_stat+0x48> <== NOT EXECUTED
buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor );
ffc03bc4: 80 09 00 0c lwz r0,12(r9)
buf->st_mode = the_dev->mode;
ffc03bc8: 38 60 00 00 li r3,0
ffc03bcc: 81 69 00 10 lwz r11,16(r9)
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
ffc03bd0: 81 29 00 08 lwz r9,8(r9)
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 );
ffc03bd4: 90 04 00 1c stw r0,28(r4)
buf->st_mode = the_dev->mode;
ffc03bd8: 91 64 00 0c stw r11,12(r4)
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 );
ffc03bdc: 91 24 00 18 stw r9,24(r4)
buf->st_mode = the_dev->mode;
return 0;
}
ffc03be0: 80 01 00 0c lwz r0,12(r1)
ffc03be4: 38 21 00 08 addi r1,r1,8
ffc03be8: 7c 08 03 a6 mtlr r0
ffc03bec: 4e 80 00 20 blr
ffc03bf0 <devFS_write>:
ssize_t devFS_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
ffc03bf0: 94 21 ff d8 stwu r1,-40(r1)
ffc03bf4: 7c 08 02 a6 mflr r0
ffc03bf8: 7c 69 1b 78 mr r9,r3
ffc03bfc: 90 01 00 2c stw r0,44(r1)
args.iop = iop;
args.offset = iop->offset;
args.buffer = (void *) buffer;
args.count = count;
args.flags = iop->flags;
ffc03c00: 80 03 00 18 lwz r0,24(r3)
{
rtems_libio_rw_args_t args;
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
ffc03c04: 81 43 00 3c lwz r10,60(r3)
args.iop = iop;
args.offset = iop->offset;
args.buffer = (void *) buffer;
args.count = count;
args.flags = iop->flags;
ffc03c08: 90 01 00 20 stw r0,32(r1)
args.bytes_moved = 0;
ffc03c0c: 38 00 00 00 li r0,0
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
args.offset = iop->offset;
args.buffer = (void *) buffer;
args.count = count;
ffc03c10: 90 a1 00 1c stw r5,28(r1)
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_write(
ffc03c14: 38 a1 00 08 addi r5,r1,8
args.iop = iop;
args.offset = iop->offset;
args.buffer = (void *) buffer;
args.count = count;
args.flags = iop->flags;
args.bytes_moved = 0;
ffc03c18: 90 01 00 24 stw r0,36(r1)
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
args.offset = iop->offset;
ffc03c1c: 81 63 00 10 lwz r11,16(r3)
ffc03c20: 81 83 00 14 lwz r12,20(r3)
args.buffer = (void *) buffer;
ffc03c24: 90 81 00 18 stw r4,24(r1)
args.count = count;
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_write(
ffc03c28: 80 6a 00 08 lwz r3,8(r10)
ffc03c2c: 80 8a 00 0c lwz r4,12(r10)
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
args.offset = iop->offset;
ffc03c30: 91 61 00 10 stw r11,16(r1)
ffc03c34: 91 81 00 14 stw r12,20(r1)
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
ffc03c38: 91 21 00 08 stw r9,8(r1)
args.buffer = (void *) buffer;
args.count = count;
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_write(
ffc03c3c: 48 00 4b dd bl ffc08818 <rtems_io_write>
np->major,
np->minor,
(void *) &args
);
if ( status )
ffc03c40: 2f 83 00 00 cmpwi cr7,r3,0
ffc03c44: 41 be 00 0c beq+ cr7,ffc03c50 <devFS_write+0x60>
return rtems_deviceio_errno(status);
ffc03c48: 48 00 82 e1 bl ffc0bf28 <rtems_deviceio_errno> <== NOT EXECUTED
ffc03c4c: 48 00 00 08 b ffc03c54 <devFS_write+0x64> <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
ffc03c50: 80 61 00 24 lwz r3,36(r1)
}
ffc03c54: 80 01 00 2c lwz r0,44(r1)
ffc03c58: 38 21 00 28 addi r1,r1,40
ffc03c5c: 7c 08 03 a6 mtlr r0
ffc03c60: 4e 80 00 20 blr
ffc0f360 <device_close>:
*/
int device_close(
rtems_libio_t *iop
)
{
ffc0f360: 94 21 ff e8 stwu r1,-24(r1)
ffc0f364: 7c 08 02 a6 mflr r0
ffc0f368: 90 01 00 1c stw r0,28(r1)
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
args.iop = iop;
args.flags = 0;
ffc0f36c: 38 00 00 00 li r0,0
args.mode = 0;
status = rtems_io_close(
ffc0f370: 38 a1 00 08 addi r5,r1,8
the_jnode = iop->file_info;
args.iop = iop;
args.flags = 0;
args.mode = 0;
ffc0f374: 90 01 00 10 stw r0,16(r1)
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
args.iop = iop;
args.flags = 0;
ffc0f378: 90 01 00 0c stw r0,12(r1)
rtems_status_code status;
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
args.iop = iop;
ffc0f37c: 90 61 00 08 stw r3,8(r1)
{
rtems_libio_open_close_args_t args;
rtems_status_code status;
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
ffc0f380: 81 23 00 3c lwz r9,60(r3)
args.iop = iop;
args.flags = 0;
args.mode = 0;
status = rtems_io_close(
ffc0f384: 80 89 00 54 lwz r4,84(r9)
ffc0f388: 80 69 00 50 lwz r3,80(r9)
ffc0f38c: 48 00 17 c1 bl ffc10b4c <rtems_io_close>
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status ) {
ffc0f390: 38 00 00 00 li r0,0
ffc0f394: 2f 83 00 00 cmpwi cr7,r3,0
ffc0f398: 41 be 00 0c beq+ cr7,ffc0f3a4 <device_close+0x44>
return rtems_deviceio_errno(status);
ffc0f39c: 48 00 1e 41 bl ffc111dc <rtems_deviceio_errno> <== NOT EXECUTED
ffc0f3a0: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED
}
return 0;
}
ffc0f3a4: 7c 03 03 78 mr r3,r0
ffc0f3a8: 80 01 00 1c lwz r0,28(r1)
ffc0f3ac: 38 21 00 18 addi r1,r1,24
ffc0f3b0: 7c 08 03 a6 mtlr r0
ffc0f3b4: 4e 80 00 20 blr
ffc0f230 <device_ioctl>:
int device_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
ffc0f230: 94 21 ff e8 stwu r1,-24(r1)
ffc0f234: 7c 08 02 a6 mflr r0
rtems_status_code status;
IMFS_jnode_t *the_jnode;
args.iop = iop;
args.command = command;
args.buffer = buffer;
ffc0f238: 90 a1 00 10 stw r5,16(r1)
the_jnode = iop->file_info;
status = rtems_io_control(
ffc0f23c: 38 a1 00 08 addi r5,r1,8
int device_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
ffc0f240: 90 01 00 1c stw r0,28(r1)
rtems_libio_ioctl_args_t args;
rtems_status_code status;
IMFS_jnode_t *the_jnode;
args.iop = iop;
args.command = command;
ffc0f244: 90 81 00 0c stw r4,12(r1)
{
rtems_libio_ioctl_args_t args;
rtems_status_code status;
IMFS_jnode_t *the_jnode;
args.iop = iop;
ffc0f248: 90 61 00 08 stw r3,8(r1)
args.command = command;
args.buffer = buffer;
the_jnode = iop->file_info;
ffc0f24c: 81 23 00 3c lwz r9,60(r3)
status = rtems_io_control(
ffc0f250: 80 89 00 54 lwz r4,84(r9)
ffc0f254: 80 69 00 50 lwz r3,80(r9)
ffc0f258: 48 00 19 55 bl ffc10bac <rtems_io_control>
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
ffc0f25c: 2f 83 00 00 cmpwi cr7,r3,0
ffc0f260: 41 be 00 0c beq+ cr7,ffc0f26c <device_ioctl+0x3c>
return rtems_deviceio_errno(status);
ffc0f264: 48 00 1f 79 bl ffc111dc <rtems_deviceio_errno> <== NOT EXECUTED
ffc0f268: 48 00 00 08 b ffc0f270 <device_ioctl+0x40> <== NOT EXECUTED
return args.ioctl_return;
ffc0f26c: 80 61 00 14 lwz r3,20(r1)
}
ffc0f270: 80 01 00 1c lwz r0,28(r1)
ffc0f274: 38 21 00 18 addi r1,r1,24
ffc0f278: 7c 08 03 a6 mtlr r0
ffc0f27c: 4e 80 00 20 blr
ffc0f3b8 <device_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
ffc0f3b8: 94 21 ff e8 stwu r1,-24(r1)
ffc0f3bc: 7c 08 02 a6 mflr r0
ffc0f3c0: 90 01 00 1c stw r0,28(r1)
args.iop = iop;
args.flags = iop->flags;
args.mode = mode;
status = rtems_io_open(
ffc0f3c4: 38 a1 00 08 addi r5,r1,8
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
args.iop = iop;
args.flags = iop->flags;
ffc0f3c8: 80 03 00 18 lwz r0,24(r3)
rtems_status_code status;
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
args.iop = iop;
ffc0f3cc: 90 61 00 08 stw r3,8(r1)
args.flags = iop->flags;
ffc0f3d0: 90 01 00 0c stw r0,12(r1)
args.mode = mode;
ffc0f3d4: 90 c1 00 10 stw r6,16(r1)
{
rtems_libio_open_close_args_t args;
rtems_status_code status;
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
ffc0f3d8: 81 23 00 3c lwz r9,60(r3)
args.iop = iop;
args.flags = iop->flags;
args.mode = mode;
status = rtems_io_open(
ffc0f3dc: 80 89 00 54 lwz r4,84(r9)
ffc0f3e0: 80 69 00 50 lwz r3,80(r9)
ffc0f3e4: 48 00 18 29 bl ffc10c0c <rtems_io_open>
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
ffc0f3e8: 38 00 00 00 li r0,0
ffc0f3ec: 2f 83 00 00 cmpwi cr7,r3,0
ffc0f3f0: 41 be 00 0c beq+ cr7,ffc0f3fc <device_open+0x44>
return rtems_deviceio_errno(status);
ffc0f3f4: 48 00 1d e9 bl ffc111dc <rtems_deviceio_errno> <== NOT EXECUTED
ffc0f3f8: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED
return 0;
}
ffc0f3fc: 7c 03 03 78 mr r3,r0
ffc0f400: 80 01 00 1c lwz r0,28(r1)
ffc0f404: 38 21 00 18 addi r1,r1,24
ffc0f408: 7c 08 03 a6 mtlr r0
ffc0f40c: 4e 80 00 20 blr
ffc0f2f0 <device_read>:
ssize_t device_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
ffc0f2f0: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED
ffc0f2f4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc0f2f8: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED
args.iop = iop;
args.offset = iop->offset;
args.buffer = buffer;
args.count = count;
args.flags = iop->flags;
ffc0f2fc: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
args.iop = iop;
args.offset = iop->offset;
ffc0f300: 81 23 00 10 lwz r9,16(r3) <== NOT EXECUTED
ffc0f304: 81 43 00 14 lwz r10,20(r3) <== NOT EXECUTED
args.buffer = buffer;
args.count = count;
args.flags = iop->flags;
ffc0f308: 90 01 00 20 stw r0,32(r1) <== NOT EXECUTED
args.bytes_moved = 0;
ffc0f30c: 38 00 00 00 li r0,0 <== NOT EXECUTED
the_jnode = iop->file_info;
args.iop = iop;
args.offset = iop->offset;
args.buffer = buffer;
args.count = count;
ffc0f310: 90 a1 00 1c stw r5,28(r1) <== NOT EXECUTED
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_read(
ffc0f314: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
args.iop = iop;
args.offset = iop->offset;
ffc0f318: 91 21 00 10 stw r9,16(r1) <== NOT EXECUTED
ffc0f31c: 91 41 00 14 stw r10,20(r1) <== NOT EXECUTED
args.buffer = buffer;
ffc0f320: 90 81 00 18 stw r4,24(r1) <== NOT EXECUTED
args.count = count;
args.flags = iop->flags;
args.bytes_moved = 0;
ffc0f324: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED
rtems_status_code status;
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
args.iop = iop;
ffc0f328: 90 61 00 08 stw r3,8(r1) <== NOT EXECUTED
{
rtems_libio_rw_args_t args;
rtems_status_code status;
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
ffc0f32c: 81 23 00 3c lwz r9,60(r3) <== NOT EXECUTED
args.buffer = buffer;
args.count = count;
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_read(
ffc0f330: 80 89 00 54 lwz r4,84(r9) <== NOT EXECUTED
ffc0f334: 80 69 00 50 lwz r3,80(r9) <== NOT EXECUTED
ffc0f338: 48 00 19 35 bl ffc10c6c <rtems_io_read> <== NOT EXECUTED
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
ffc0f33c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc0f340: 41 be 00 0c beq+ cr7,ffc0f34c <device_read+0x5c> <== NOT EXECUTED
return rtems_deviceio_errno(status);
ffc0f344: 48 00 1e 99 bl ffc111dc <rtems_deviceio_errno> <== NOT EXECUTED
ffc0f348: 48 00 00 08 b ffc0f350 <device_read+0x60> <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
ffc0f34c: 80 61 00 24 lwz r3,36(r1) <== NOT EXECUTED
}
ffc0f350: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED
ffc0f354: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED
ffc0f358: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0f35c: 4e 80 00 20 blr <== NOT EXECUTED
ffc0f280 <device_write>:
ssize_t device_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
ffc0f280: 94 21 ff d8 stwu r1,-40(r1)
ffc0f284: 7c 08 02 a6 mflr r0
ffc0f288: 90 01 00 2c stw r0,44(r1)
args.iop = iop;
args.offset = iop->offset;
args.buffer = (void *) buffer;
args.count = count;
args.flags = iop->flags;
ffc0f28c: 80 03 00 18 lwz r0,24(r3)
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
args.iop = iop;
args.offset = iop->offset;
ffc0f290: 81 23 00 10 lwz r9,16(r3)
ffc0f294: 81 43 00 14 lwz r10,20(r3)
args.buffer = (void *) buffer;
args.count = count;
args.flags = iop->flags;
ffc0f298: 90 01 00 20 stw r0,32(r1)
args.bytes_moved = 0;
ffc0f29c: 38 00 00 00 li r0,0
the_jnode = iop->file_info;
args.iop = iop;
args.offset = iop->offset;
args.buffer = (void *) buffer;
args.count = count;
ffc0f2a0: 90 a1 00 1c stw r5,28(r1)
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_write(
ffc0f2a4: 38 a1 00 08 addi r5,r1,8
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
args.iop = iop;
args.offset = iop->offset;
ffc0f2a8: 91 21 00 10 stw r9,16(r1)
ffc0f2ac: 91 41 00 14 stw r10,20(r1)
args.buffer = (void *) buffer;
ffc0f2b0: 90 81 00 18 stw r4,24(r1)
args.count = count;
args.flags = iop->flags;
args.bytes_moved = 0;
ffc0f2b4: 90 01 00 24 stw r0,36(r1)
rtems_status_code status;
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
args.iop = iop;
ffc0f2b8: 90 61 00 08 stw r3,8(r1)
{
rtems_libio_rw_args_t args;
rtems_status_code status;
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
ffc0f2bc: 81 23 00 3c lwz r9,60(r3)
args.buffer = (void *) buffer;
args.count = count;
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_write(
ffc0f2c0: 80 89 00 54 lwz r4,84(r9)
ffc0f2c4: 80 69 00 50 lwz r3,80(r9)
ffc0f2c8: 48 00 1a 05 bl ffc10ccc <rtems_io_write>
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
ffc0f2cc: 2f 83 00 00 cmpwi cr7,r3,0
ffc0f2d0: 41 be 00 0c beq+ cr7,ffc0f2dc <device_write+0x5c>
return rtems_deviceio_errno(status);
ffc0f2d4: 48 00 1f 09 bl ffc111dc <rtems_deviceio_errno> <== NOT EXECUTED
ffc0f2d8: 48 00 00 08 b ffc0f2e0 <device_write+0x60> <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
ffc0f2dc: 80 61 00 24 lwz r3,36(r1)
}
ffc0f2e0: 80 01 00 2c lwz r0,44(r1)
ffc0f2e4: 38 21 00 28 addi r1,r1,40
ffc0f2e8: 7c 08 03 a6 mtlr r0
ffc0f2ec: 4e 80 00 20 blr
ffc06278 <drainOutput>:
/*
* Drain output queue
*/
static void
drainOutput (struct rtems_termios_tty *tty)
{
ffc06278: 94 21 ff f0 stwu r1,-16(r1)
ffc0627c: 7c 08 02 a6 mflr r0
ffc06280: 90 01 00 14 stw r0,20(r1)
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {
ffc06284: 80 03 00 b4 lwz r0,180(r3)
/*
* Drain output queue
*/
static void
drainOutput (struct rtems_termios_tty *tty)
{
ffc06288: 93 e1 00 0c stw r31,12(r1)
ffc0628c: 7c 7f 1b 78 mr r31,r3
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {
ffc06290: 2f 80 00 00 cmpwi cr7,r0,0
/*
* Drain output queue
*/
static void
drainOutput (struct rtems_termios_tty *tty)
{
ffc06294: 93 c1 00 08 stw r30,8(r1)
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {
ffc06298: 41 9e 00 64 beq- cr7,ffc062fc <drainOutput+0x84>
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0629c: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED
ffc062a0: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED
ffc062a4: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED
ffc062a8: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED
rtems_interrupt_disable (level);
while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {
tty->rawOutBufState = rob_wait;
ffc062ac: 3b c0 00 02 li r30,2 <== 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) {
ffc062b0: 48 00 00 38 b ffc062e8 <drainOutput+0x70> <== NOT EXECUTED
tty->rawOutBufState = rob_wait;
ffc062b4: 93 df 00 94 stw r30,148(r31) <== NOT EXECUTED
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc062b8: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED
rtems_interrupt_enable (level);
sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore,
ffc062bc: 80 7f 00 8c lwz r3,140(r31) <== NOT EXECUTED
ffc062c0: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc062c4: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc062c8: 48 00 1a e5 bl ffc07dac <rtems_semaphore_obtain> <== NOT EXECUTED
RTEMS_WAIT,
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
ffc062cc: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc062d0: 41 be 00 08 beq+ cr7,ffc062d8 <drainOutput+0x60> <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
ffc062d4: 48 00 23 05 bl ffc085d8 <rtems_fatal_error_occurred> <== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc062d8: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED
ffc062dc: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED
ffc062e0: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED
ffc062e4: 7d 20 01 24 mtmsr r9 <== 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) {
ffc062e8: 81 7f 00 84 lwz r11,132(r31) <== NOT EXECUTED
ffc062ec: 81 3f 00 80 lwz r9,128(r31) <== NOT EXECUTED
ffc062f0: 7f 8b 48 00 cmpw cr7,r11,r9 <== NOT EXECUTED
ffc062f4: 40 9e ff c0 bne+ cr7,ffc062b4 <drainOutput+0x3c> <== NOT EXECUTED
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc062f8: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
rtems_interrupt_disable (level);
}
rtems_interrupt_enable (level);
}
}
ffc062fc: 80 01 00 14 lwz r0,20(r1)
ffc06300: 83 c1 00 08 lwz r30,8(r1)
ffc06304: 7c 08 03 a6 mtlr r0
ffc06308: 83 e1 00 0c lwz r31,12(r1)
ffc0630c: 38 21 00 10 addi r1,r1,16
ffc06310: 4e 80 00 20 blr
ffc05240 <dup2>:
int dup2(
int fildes,
int fildes2
)
{
ffc05240: 94 21 ff 98 stwu r1,-104(r1)
ffc05244: 7c 08 02 a6 mflr r0
ffc05248: 93 c1 00 60 stw r30,96(r1)
/*
* If fildes is not valid, then fildes2 should not be closed.
*/
status = fstat( fildes, &buf );
ffc0524c: 3b c1 00 08 addi r30,r1,8
int dup2(
int fildes,
int fildes2
)
{
ffc05250: 93 e1 00 64 stw r31,100(r1)
ffc05254: 7c 9f 23 78 mr r31,r4
/*
* If fildes is not valid, then fildes2 should not be closed.
*/
status = fstat( fildes, &buf );
ffc05258: 7f c4 f3 78 mr r4,r30
int dup2(
int fildes,
int fildes2
)
{
ffc0525c: 93 a1 00 5c stw r29,92(r1)
ffc05260: 7c 7d 1b 78 mr r29,r3
ffc05264: 90 01 00 6c stw r0,108(r1)
/*
* If fildes is not valid, then fildes2 should not be closed.
*/
status = fstat( fildes, &buf );
ffc05268: 48 00 08 19 bl ffc05a80 <fstat>
if ( status == -1 )
ffc0526c: 2f 83 ff ff cmpwi cr7,r3,-1
ffc05270: 41 be 00 30 beq+ cr7,ffc052a0 <dup2+0x60>
/*
* If fildes2 is not valid, then we should not do anything either.
*/
status = fstat( fildes2, &buf );
ffc05274: 7f c4 f3 78 mr r4,r30
ffc05278: 7f e3 fb 78 mr r3,r31
ffc0527c: 48 00 08 05 bl ffc05a80 <fstat>
if ( status == -1 )
ffc05280: 2f 83 ff ff cmpwi cr7,r3,-1
ffc05284: 41 9e 00 1c beq- cr7,ffc052a0 <dup2+0x60>
/*
* This fcntl handles everything else.
*/
return fcntl( fildes, F_DUPFD, fildes2 );
ffc05288: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc0528c: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED
ffc05290: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc05294: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc05298: 48 00 02 ed bl ffc05584 <fcntl> <== NOT EXECUTED
ffc0529c: 48 00 00 08 b ffc052a4 <dup2+0x64> <== NOT EXECUTED
ffc052a0: 38 60 ff ff li r3,-1
}
ffc052a4: 80 01 00 6c lwz r0,108(r1)
ffc052a8: 83 a1 00 5c lwz r29,92(r1)
ffc052ac: 7c 08 03 a6 mtlr r0
ffc052b0: 83 c1 00 60 lwz r30,96(r1)
ffc052b4: 83 e1 00 64 lwz r31,100(r1)
ffc052b8: 38 21 00 68 addi r1,r1,104
ffc052bc: 4e 80 00 20 blr
ffc05c48 <echo>:
/*
* Echo a typed character
*/
static void
echo (unsigned char c, struct rtems_termios_tty *tty)
{
ffc05c48: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED
ffc05c4c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc05c50: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED
if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) {
ffc05c54: 81 24 00 3c lwz r9,60(r4) <== NOT EXECUTED
/*
* Echo a typed character
*/
static void
echo (unsigned char c, struct rtems_termios_tty *tty)
{
ffc05c58: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED
ffc05c5c: 7c 9f 23 78 mr r31,r4 <== NOT EXECUTED
if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) {
ffc05c60: 71 20 02 00 andi. r0,r9,512 <== NOT EXECUTED
ffc05c64: 41 82 00 5c beq- ffc05cc0 <echo+0x78> <== NOT EXECUTED
ffc05c68: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc05c6c: 81 29 26 e0 lwz r9,9952(r9) <== NOT EXECUTED
ffc05c70: 7d 29 1a 14 add r9,r9,r3 <== NOT EXECUTED
ffc05c74: 88 09 00 01 lbz r0,1(r9) <== NOT EXECUTED
ffc05c78: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED
ffc05c7c: 41 82 00 44 beq- ffc05cc0 <echo+0x78> <== NOT EXECUTED
ffc05c80: 2f 83 00 09 cmpwi cr7,r3,9 <== NOT EXECUTED
ffc05c84: 41 9e 00 3c beq- cr7,ffc05cc0 <echo+0x78> <== NOT EXECUTED
ffc05c88: 2f 83 00 0a cmpwi cr7,r3,10 <== NOT EXECUTED
ffc05c8c: 41 be 00 34 beq+ cr7,ffc05cc0 <echo+0x78> <== NOT EXECUTED
char echobuf[2];
echobuf[0] = '^';
echobuf[1] = c ^ 0x40;
ffc05c90: 68 60 00 40 xori r0,r3,64 <== 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] = '^';
ffc05c94: 39 20 00 5e li r9,94 <== NOT EXECUTED
echobuf[1] = c ^ 0x40;
ffc05c98: 98 01 00 09 stb r0,9(r1) <== NOT EXECUTED
rtems_termios_puts (echobuf, 2, tty);
ffc05c9c: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED
ffc05ca0: 38 80 00 02 li r4,2 <== 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] = '^';
ffc05ca4: 99 21 00 08 stb r9,8(r1) <== NOT EXECUTED
echobuf[1] = c ^ 0x40;
rtems_termios_puts (echobuf, 2, tty);
ffc05ca8: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED
ffc05cac: 4b ff fc a5 bl ffc05950 <rtems_termios_puts> <== NOT EXECUTED
tty->column += 2;
ffc05cb0: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED
ffc05cb4: 38 09 00 02 addi r0,r9,2 <== NOT EXECUTED
ffc05cb8: 90 1f 00 28 stw r0,40(r31) <== 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')) {
ffc05cbc: 48 00 00 0c b ffc05cc8 <echo+0x80> <== NOT EXECUTED
echobuf[1] = c ^ 0x40;
rtems_termios_puts (echobuf, 2, tty);
tty->column += 2;
}
else {
oproc (c, tty);
ffc05cc0: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc05cc4: 4b ff fe 05 bl ffc05ac8 <oproc> <== NOT EXECUTED
}
}
ffc05cc8: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED
ffc05ccc: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED
ffc05cd0: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED
ffc05cd4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc05cd8: 4e 80 00 20 blr <== NOT EXECUTED
ffc2af04 <endgrent>:
group_fp = fopen("/etc/group", "r");
}
void endgrent(void)
{
if (group_fp != NULL)
ffc2af04: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
fclose(group_fp);
group_fp = fopen("/etc/group", "r");
}
void endgrent(void)
{
ffc2af08: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED
ffc2af0c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
if (group_fp != NULL)
ffc2af10: 80 69 5f 74 lwz r3,24436(r9) <== NOT EXECUTED
fclose(group_fp);
group_fp = fopen("/etc/group", "r");
}
void endgrent(void)
{
ffc2af14: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
if (group_fp != NULL)
ffc2af18: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc2af1c: 41 9e 00 08 beq- cr7,ffc2af24 <endgrent+0x20> <== NOT EXECUTED
fclose(group_fp);
ffc2af20: 48 01 c8 f1 bl ffc47810 <fclose> <== NOT EXECUTED
}
ffc2af24: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc2af28: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc2af2c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2af30: 4e 80 00 20 blr <== NOT EXECUTED
ffc2af34 <endpwent>:
passwd_fp = fopen("/etc/passwd", "r");
}
void endpwent(void)
{
if (passwd_fp != NULL)
ffc2af34: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
fclose(passwd_fp);
passwd_fp = fopen("/etc/passwd", "r");
}
void endpwent(void)
{
ffc2af38: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED
ffc2af3c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
if (passwd_fp != NULL)
ffc2af40: 80 69 5f 78 lwz r3,24440(r9) <== NOT EXECUTED
fclose(passwd_fp);
passwd_fp = fopen("/etc/passwd", "r");
}
void endpwent(void)
{
ffc2af44: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
if (passwd_fp != NULL)
ffc2af48: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc2af4c: 41 9e 00 08 beq- cr7,ffc2af54 <endpwent+0x20> <== NOT EXECUTED
fclose(passwd_fp);
ffc2af50: 48 01 c8 c1 bl ffc47810 <fclose> <== NOT EXECUTED
}
ffc2af54: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc2af58: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc2af5c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2af60: 4e 80 00 20 blr <== NOT EXECUTED
ffc05cdc <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)
{
ffc05cdc: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED
ffc05ce0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc05ce4: 7d 80 00 26 mfcr r12 <== NOT EXECUTED
ffc05ce8: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED
if (tty->ccount == 0)
ffc05cec: 80 03 00 20 lwz r0,32(r3) <== NOT EXECUTED
* 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)
{
ffc05cf0: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED
ffc05cf4: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED
if (tty->ccount == 0)
ffc05cf8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
* 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)
{
ffc05cfc: 93 61 00 0c stw r27,12(r1) <== NOT EXECUTED
ffc05d00: 93 81 00 10 stw r28,16(r1) <== NOT EXECUTED
ffc05d04: 93 a1 00 14 stw r29,20(r1) <== NOT EXECUTED
ffc05d08: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED
ffc05d0c: 91 81 00 08 stw r12,8(r1) <== NOT EXECUTED
if (tty->ccount == 0)
ffc05d10: 41 9e 01 f4 beq- cr7,ffc05f04 <erase+0x228> <== NOT EXECUTED
return;
if (lineFlag) {
ffc05d14: 2f 84 00 00 cmpwi cr7,r4,0 <== NOT EXECUTED
ffc05d18: 41 9e 01 c4 beq- cr7,ffc05edc <erase+0x200> <== NOT EXECUTED
if (!(tty->termios.c_lflag & ECHO)) {
ffc05d1c: 80 03 00 3c lwz r0,60(r3) <== NOT EXECUTED
ffc05d20: 70 09 00 08 andi. r9,r0,8 <== NOT EXECUTED
ffc05d24: 40 a2 00 0c bne+ ffc05d30 <erase+0x54> <== NOT EXECUTED
tty->ccount = 0;
ffc05d28: 91 23 00 20 stw r9,32(r3) <== NOT EXECUTED
return;
ffc05d2c: 48 00 01 d8 b ffc05f04 <erase+0x228> <== NOT EXECUTED
}
if (!(tty->termios.c_lflag & ECHOE)) {
ffc05d30: 70 00 00 10 andi. r0,r0,16 <== NOT EXECUTED
ffc05d34: 40 a2 01 a8 bne+ ffc05edc <erase+0x200> <== NOT EXECUTED
tty->ccount = 0;
ffc05d38: 90 03 00 20 stw r0,32(r3) <== NOT EXECUTED
echo (tty->termios.c_cc[VKILL], tty);
ffc05d3c: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED
ffc05d40: 88 63 00 44 lbz r3,68(r3) <== NOT EXECUTED
ffc05d44: 4b ff ff 05 bl ffc05c48 <echo> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOK)
ffc05d48: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED
echo ('\n', tty);
ffc05d4c: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
return;
}
if (!(tty->termios.c_lflag & ECHOE)) {
tty->ccount = 0;
echo (tty->termios.c_cc[VKILL], tty);
if (tty->termios.c_lflag & ECHOK)
ffc05d50: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED
echo ('\n', tty);
ffc05d54: 38 60 00 0a li r3,10 <== NOT EXECUTED
return;
}
if (!(tty->termios.c_lflag & ECHOE)) {
tty->ccount = 0;
echo (tty->termios.c_cc[VKILL], tty);
if (tty->termios.c_lflag & ECHOK)
ffc05d58: 41 a2 01 ac beq+ ffc05f04 <erase+0x228> <== NOT EXECUTED
ffc05d5c: 48 00 00 34 b ffc05d90 <erase+0xb4> <== NOT EXECUTED
}
}
while (tty->ccount) {
unsigned char c = tty->cbuf[--tty->ccount];
if (tty->termios.c_lflag & ECHO) {
ffc05d60: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED
echo ('\n', tty);
return;
}
}
while (tty->ccount) {
unsigned char c = tty->cbuf[--tty->ccount];
ffc05d64: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED
ffc05d68: 91 3f 00 20 stw r9,32(r31) <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO) {
ffc05d6c: 70 0a 00 08 andi. r10,r0,8 <== NOT EXECUTED
echo ('\n', tty);
return;
}
}
while (tty->ccount) {
unsigned char c = tty->cbuf[--tty->ccount];
ffc05d70: 81 7f 00 1c lwz r11,28(r31) <== NOT EXECUTED
ffc05d74: 7f cb 48 ae lbzx r30,r11,r9 <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO) {
ffc05d78: 41 82 01 5c beq- ffc05ed4 <erase+0x1f8> <== NOT EXECUTED
if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {
ffc05d7c: 40 92 00 40 bne- cr4,ffc05dbc <erase+0xe0> <== NOT EXECUTED
ffc05d80: 70 0b 00 10 andi. r11,r0,16 <== NOT EXECUTED
ffc05d84: 40 a2 00 38 bne+ ffc05dbc <erase+0xe0> <== NOT EXECUTED
echo (tty->termios.c_cc[VERASE], tty);
ffc05d88: 88 7f 00 43 lbz r3,67(r31) <== NOT EXECUTED
ffc05d8c: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
}
}
if (!lineFlag)
break;
}
}
ffc05d90: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED
ffc05d94: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED
ffc05d98: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc05d9c: 83 61 00 0c lwz r27,12(r1) <== NOT EXECUTED
ffc05da0: 83 81 00 10 lwz r28,16(r1) <== NOT EXECUTED
ffc05da4: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED
ffc05da8: 83 a1 00 14 lwz r29,20(r1) <== NOT EXECUTED
ffc05dac: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED
ffc05db0: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED
ffc05db4: 38 21 00 20 addi r1,r1,32 <== 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);
ffc05db8: 4b ff fe 90 b ffc05c48 <echo> <== NOT EXECUTED
}
else if (c == '\t') {
ffc05dbc: 2f 9e 00 09 cmpwi cr7,r30,9 <== NOT EXECUTED
ffc05dc0: 40 be 00 94 bne+ cr7,ffc05e54 <erase+0x178> <== NOT EXECUTED
c = tty->cbuf[i++];
if (c == '\t') {
col = (col | 7) + 1;
}
else if (iscntrl (c)) {
if (tty->termios.c_lflag & ECHOCTL)
ffc05dc4: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO) {
if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {
echo (tty->termios.c_cc[VERASE], tty);
}
else if (c == '\t') {
int col = tty->read_start_column;
ffc05dc8: 83 df 00 2c lwz r30,44(r31) <== NOT EXECUTED
c = tty->cbuf[i++];
if (c == '\t') {
col = (col | 7) + 1;
}
else if (iscntrl (c)) {
if (tty->termios.c_lflag & ECHOCTL)
ffc05dcc: 7d 29 03 a6 mtctr r9 <== NOT EXECUTED
ffc05dd0: 70 0a 02 00 andi. r10,r0,512 <== NOT EXECUTED
while (i != tty->ccount) {
c = tty->cbuf[i++];
if (c == '\t') {
col = (col | 7) + 1;
}
else if (iscntrl (c)) {
ffc05dd4: 81 7d 00 00 lwz r11,0(r29) <== NOT EXECUTED
ffc05dd8: 39 20 00 00 li r9,0 <== NOT EXECUTED
int i = 0;
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
ffc05ddc: 48 00 00 44 b ffc05e20 <erase+0x144> <== NOT EXECUTED
c = tty->cbuf[i++];
ffc05de0: 81 5f 00 1c lwz r10,28(r31) <== NOT EXECUTED
ffc05de4: 7c 0a 48 ae lbzx r0,r10,r9 <== NOT EXECUTED
if (c == '\t') {
ffc05de8: 2f 80 00 09 cmpwi cr7,r0,9 <== NOT EXECUTED
col = (col | 7) + 1;
}
else if (iscntrl (c)) {
ffc05dec: 7d 4b 02 14 add r10,r11,r0 <== NOT EXECUTED
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
c = tty->cbuf[i++];
if (c == '\t') {
ffc05df0: 40 be 00 0c bne+ cr7,ffc05dfc <erase+0x120> <== NOT EXECUTED
col = (col | 7) + 1;
ffc05df4: 63 de 00 07 ori r30,r30,7 <== NOT EXECUTED
ffc05df8: 48 00 00 20 b ffc05e18 <erase+0x13c> <== NOT EXECUTED
}
else if (iscntrl (c)) {
ffc05dfc: 88 0a 00 01 lbz r0,1(r10) <== NOT EXECUTED
ffc05e00: 54 0a df fe rlwinm r10,r0,27,31,31 <== NOT EXECUTED
ffc05e04: 2f 8a 00 00 cmpwi cr7,r10,0 <== NOT EXECUTED
ffc05e08: 41 9e 00 10 beq- cr7,ffc05e18 <erase+0x13c> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOCTL)
ffc05e0c: 41 82 00 10 beq- ffc05e1c <erase+0x140> <== NOT EXECUTED
col += 2;
ffc05e10: 3b de 00 02 addi r30,r30,2 <== NOT EXECUTED
ffc05e14: 48 00 00 08 b ffc05e1c <erase+0x140> <== NOT EXECUTED
}
else {
col++;
ffc05e18: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
c = tty->cbuf[i++];
ffc05e1c: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED
int i = 0;
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
ffc05e20: 42 00 ff c0 bdnz+ ffc05de0 <erase+0x104> <== NOT EXECUTED
ffc05e24: 48 00 00 14 b ffc05e38 <erase+0x15c> <== NOT EXECUTED
/*
* Back up over the tab
*/
while (tty->column > col) {
rtems_termios_puts ("\b", 1, tty);
ffc05e28: 4b ff fb 29 bl ffc05950 <rtems_termios_puts> <== NOT EXECUTED
tty->column--;
ffc05e2c: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED
ffc05e30: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED
ffc05e34: 90 1f 00 28 stw r0,40(r31) <== NOT EXECUTED
}
/*
* Back up over the tab
*/
while (tty->column > col) {
ffc05e38: 80 1f 00 28 lwz r0,40(r31) <== NOT EXECUTED
rtems_termios_puts ("\b", 1, tty);
ffc05e3c: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED
ffc05e40: 38 80 00 01 li r4,1 <== NOT EXECUTED
}
/*
* Back up over the tab
*/
while (tty->column > col) {
ffc05e44: 7f 80 f0 00 cmpw cr7,r0,r30 <== NOT EXECUTED
rtems_termios_puts ("\b", 1, tty);
ffc05e48: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED
}
/*
* Back up over the tab
*/
while (tty->column > col) {
ffc05e4c: 41 9d ff dc bgt+ cr7,ffc05e28 <erase+0x14c> <== NOT EXECUTED
ffc05e50: 48 00 00 84 b ffc05ed4 <erase+0x1f8> <== NOT EXECUTED
rtems_termios_puts ("\b", 1, tty);
tty->column--;
}
}
else {
if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {
ffc05e54: 81 3d 00 00 lwz r9,0(r29) <== NOT EXECUTED
ffc05e58: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED
ffc05e5c: 7d 29 f0 ae lbzx r9,r9,r30 <== NOT EXECUTED
ffc05e60: 71 2b 00 20 andi. r11,r9,32 <== NOT EXECUTED
ffc05e64: 41 82 00 30 beq- ffc05e94 <erase+0x1b8> <== NOT EXECUTED
ffc05e68: 70 09 02 00 andi. r9,r0,512 <== NOT EXECUTED
ffc05e6c: 41 a2 00 28 beq+ ffc05e94 <erase+0x1b8> <== NOT EXECUTED
rtems_termios_puts ("\b \b", 3, tty);
ffc05e70: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED
ffc05e74: 38 80 00 03 li r4,3 <== NOT EXECUTED
ffc05e78: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED
ffc05e7c: 4b ff fa d5 bl ffc05950 <rtems_termios_puts> <== NOT EXECUTED
if (tty->column)
ffc05e80: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED
ffc05e84: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc05e88: 41 9e 00 0c beq- cr7,ffc05e94 <erase+0x1b8> <== NOT EXECUTED
tty->column--;
ffc05e8c: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED
ffc05e90: 91 3f 00 28 stw r9,40(r31) <== NOT EXECUTED
}
if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {
ffc05e94: 81 3d 00 00 lwz r9,0(r29) <== NOT EXECUTED
ffc05e98: 7c 09 f0 ae lbzx r0,r9,r30 <== NOT EXECUTED
ffc05e9c: 70 0a 00 20 andi. r10,r0,32 <== NOT EXECUTED
ffc05ea0: 41 82 00 10 beq- ffc05eb0 <erase+0x1d4> <== NOT EXECUTED
ffc05ea4: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED
ffc05ea8: 70 0b 02 00 andi. r11,r0,512 <== NOT EXECUTED
ffc05eac: 41 82 00 28 beq- ffc05ed4 <erase+0x1f8> <== NOT EXECUTED
rtems_termios_puts ("\b \b", 3, tty);
ffc05eb0: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED
ffc05eb4: 38 80 00 03 li r4,3 <== NOT EXECUTED
ffc05eb8: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED
ffc05ebc: 4b ff fa 95 bl ffc05950 <rtems_termios_puts> <== NOT EXECUTED
if (tty->column)
ffc05ec0: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED
ffc05ec4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc05ec8: 41 9e 00 0c beq- cr7,ffc05ed4 <erase+0x1f8> <== NOT EXECUTED
tty->column--;
ffc05ecc: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED
ffc05ed0: 91 3f 00 28 stw r9,40(r31) <== NOT EXECUTED
}
}
}
if (!lineFlag)
ffc05ed4: 40 b2 00 24 bne+ cr4,ffc05ef8 <erase+0x21c> <== NOT EXECUTED
ffc05ed8: 48 00 00 2c b ffc05f04 <erase+0x228> <== 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)) {
ffc05edc: 2e 04 00 00 cmpwi cr4,r4,0 <== NOT EXECUTED
ffc05ee0: 3f a0 00 00 lis r29,0 <== 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);
ffc05ee4: 3f 80 ff c2 lis r28,-62 <== NOT EXECUTED
/*
* Back up over the tab
*/
while (tty->column > col) {
rtems_termios_puts ("\b", 1, tty);
ffc05ee8: 3f 60 ff c2 lis r27,-62 <== NOT EXECUTED
ffc05eec: 3b bd 26 e0 addi r29,r29,9952 <== 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);
ffc05ef0: 3b 9c de 85 addi r28,r28,-8571 <== NOT EXECUTED
/*
* Back up over the tab
*/
while (tty->column > col) {
rtems_termios_puts ("\b", 1, tty);
ffc05ef4: 3b 7b de 87 addi r27,r27,-8569 <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOK)
echo ('\n', tty);
return;
}
}
while (tty->ccount) {
ffc05ef8: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED
ffc05efc: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc05f00: 40 9e fe 60 bne+ cr7,ffc05d60 <erase+0x84> <== NOT EXECUTED
}
}
if (!lineFlag)
break;
}
}
ffc05f04: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED
ffc05f08: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED
ffc05f0c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc05f10: 83 61 00 0c lwz r27,12(r1) <== NOT EXECUTED
ffc05f14: 83 81 00 10 lwz r28,16(r1) <== NOT EXECUTED
ffc05f18: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED
ffc05f1c: 83 a1 00 14 lwz r29,20(r1) <== NOT EXECUTED
ffc05f20: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED
ffc05f24: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED
ffc05f28: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED
ffc05f2c: 4e 80 00 20 blr <== NOT EXECUTED
ffc405ec <fchdir>:
#include <rtems/seterr.h>
int fchdir(
int fd
)
{
ffc405ec: 94 21 ff c0 stwu r1,-64(r1) <== NOT EXECUTED
ffc405f0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc, saved;
rtems_libio_check_fd( fd );
ffc405f4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
#include <rtems/seterr.h>
int fchdir(
int fd
)
{
ffc405f8: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc, saved;
rtems_libio_check_fd( fd );
ffc405fc: 80 09 34 cc lwz r0,13516(r9) <== NOT EXECUTED
#include <rtems/seterr.h>
int fchdir(
int fd
)
{
ffc40600: 93 c1 00 38 stw r30,56(r1) <== NOT EXECUTED
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc, saved;
rtems_libio_check_fd( fd );
ffc40604: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED
#include <rtems/seterr.h>
int fchdir(
int fd
)
{
ffc40608: 93 e1 00 3c stw r31,60(r1) <== NOT EXECUTED
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc, saved;
rtems_libio_check_fd( fd );
ffc4060c: 40 9c 00 20 bge- cr7,ffc4062c <fchdir+0x40> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
ffc40610: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc40614: 83 e9 35 f4 lwz r31,13812(r9) <== NOT EXECUTED
ffc40618: 1c 63 00 48 mulli r3,r3,72 <== NOT EXECUTED
ffc4061c: 7f ff 1a 14 add r31,r31,r3 <== NOT EXECUTED
rtems_libio_check_is_open(iop);
ffc40620: 80 1f 00 18 lwz r0,24(r31) <== NOT EXECUTED
ffc40624: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED
ffc40628: 40 a2 00 10 bne+ ffc40638 <fchdir+0x4c> <== NOT EXECUTED
ffc4062c: 48 00 70 45 bl ffc47670 <__errno> <== NOT EXECUTED
ffc40630: 38 00 00 09 li r0,9 <== NOT EXECUTED
ffc40634: 48 00 00 58 b ffc4068c <fchdir+0xa0> <== NOT EXECUTED
/*
* Now process the fchmod().
*/
rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );
ffc40638: 70 09 00 02 andi. r9,r0,2 <== NOT EXECUTED
ffc4063c: 40 a2 00 10 bne+ ffc4064c <fchdir+0x60> <== NOT EXECUTED
ffc40640: 48 00 70 31 bl ffc47670 <__errno> <== NOT EXECUTED
ffc40644: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc40648: 48 00 00 44 b ffc4068c <fchdir+0xa0> <== NOT EXECUTED
/*
* Verify you can change directory into this node.
*/
if ( !iop->pathinfo.ops ) {
ffc4064c: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED
ffc40650: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc40654: 41 9e 00 10 beq- cr7,ffc40664 <fchdir+0x78> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( !iop->pathinfo.ops->node_type_h ) {
ffc40658: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED
ffc4065c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc40660: 40 be 00 10 bne+ cr7,ffc40670 <fchdir+0x84> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc40664: 48 00 70 0d bl ffc47670 <__errno> <== NOT EXECUTED
ffc40668: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc4066c: 48 00 00 20 b ffc4068c <fchdir+0xa0> <== NOT EXECUTED
}
if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) !=
ffc40670: 38 7f 00 1c addi r3,r31,28 <== NOT EXECUTED
ffc40674: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc40678: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc4067c: 2f 83 00 01 cmpwi cr7,r3,1 <== NOT EXECUTED
ffc40680: 41 be 00 18 beq+ cr7,ffc40698 <fchdir+0xac> <== NOT EXECUTED
RTEMS_FILESYSTEM_DIRECTORY ) {
rtems_set_errno_and_return_minus_one( ENOTDIR );
ffc40684: 48 00 6f ed bl ffc47670 <__errno> <== NOT EXECUTED
ffc40688: 38 00 00 14 li r0,20 <== NOT EXECUTED
ffc4068c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc40690: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc40694: 48 00 01 08 b ffc4079c <fchdir+0x1b0> <== NOT EXECUTED
* but note the race condition. Threads who
* share their rtems_filesystem_current better
* be synchronized!
*/
saved = rtems_filesystem_current;
ffc40698: 3f c0 00 00 lis r30,0 <== NOT EXECUTED
ffc4069c: 81 3e 35 2c lwz r9,13612(r30) <== NOT EXECUTED
rtems_filesystem_current = iop->pathinfo;
/* clone the current node */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
ffc406a0: 3c 60 ff c6 lis r3,-58 <== NOT EXECUTED
ffc406a4: 38 63 57 c5 addi r3,r3,22469 <== NOT EXECUTED
* but note the race condition. Threads who
* share their rtems_filesystem_current better
* be synchronized!
*/
saved = rtems_filesystem_current;
ffc406a8: 81 09 00 04 lwz r8,4(r9) <== NOT EXECUTED
rtems_filesystem_current = iop->pathinfo;
/* clone the current node */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
ffc406ac: 38 80 00 01 li r4,1 <== NOT EXECUTED
* but note the race condition. Threads who
* share their rtems_filesystem_current better
* be synchronized!
*/
saved = rtems_filesystem_current;
ffc406b0: 81 49 00 08 lwz r10,8(r9) <== NOT EXECUTED
rtems_filesystem_current = iop->pathinfo;
/* clone the current node */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
ffc406b4: 38 a0 00 00 li r5,0 <== NOT EXECUTED
* but note the race condition. Threads who
* share their rtems_filesystem_current better
* be synchronized!
*/
saved = rtems_filesystem_current;
ffc406b8: 81 69 00 0c lwz r11,12(r9) <== NOT EXECUTED
rtems_filesystem_current = iop->pathinfo;
/* clone the current node */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
ffc406bc: 38 c1 00 08 addi r6,r1,8 <== NOT EXECUTED
* but note the race condition. Threads who
* share their rtems_filesystem_current better
* be synchronized!
*/
saved = rtems_filesystem_current;
ffc406c0: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED
rtems_filesystem_current = iop->pathinfo;
/* clone the current node */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
ffc406c4: 38 e0 00 00 li r7,0 <== NOT EXECUTED
* but note the race condition. Threads who
* share their rtems_filesystem_current better
* be synchronized!
*/
saved = rtems_filesystem_current;
ffc406c8: 91 01 00 1c stw r8,28(r1) <== NOT EXECUTED
ffc406cc: 91 41 00 20 stw r10,32(r1) <== NOT EXECUTED
ffc406d0: 91 61 00 24 stw r11,36(r1) <== NOT EXECUTED
ffc406d4: 90 01 00 28 stw r0,40(r1) <== NOT EXECUTED
ffc406d8: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED
ffc406dc: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED
rtems_filesystem_current = iop->pathinfo;
ffc406e0: 80 1f 00 28 lwz r0,40(r31) <== NOT EXECUTED
ffc406e4: 81 1f 00 1c lwz r8,28(r31) <== NOT EXECUTED
ffc406e8: 81 5f 00 20 lwz r10,32(r31) <== NOT EXECUTED
ffc406ec: 81 7f 00 24 lwz r11,36(r31) <== NOT EXECUTED
ffc406f0: 91 09 00 04 stw r8,4(r9) <== NOT EXECUTED
ffc406f4: 91 49 00 08 stw r10,8(r9) <== NOT EXECUTED
ffc406f8: 91 69 00 0c stw r11,12(r9) <== NOT EXECUTED
ffc406fc: 90 09 00 10 stw r0,16(r9) <== NOT EXECUTED
ffc40700: 80 1f 00 2c lwz r0,44(r31) <== NOT EXECUTED
ffc40704: 90 09 00 14 stw r0,20(r9) <== NOT EXECUTED
/* clone the current node */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
ffc40708: 4b fc 6a cd bl ffc071d4 <rtems_filesystem_evaluate_path><== NOT EXECUTED
ffc4070c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc40710: 41 be 00 34 beq+ cr7,ffc40744 <fchdir+0x158> <== NOT EXECUTED
/* cloning failed; restore original and bail out */
rtems_filesystem_current = saved;
ffc40714: 80 01 00 28 lwz r0,40(r1) <== NOT EXECUTED
ffc40718: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc4071c: 81 3e 35 2c lwz r9,13612(r30) <== NOT EXECUTED
ffc40720: 81 41 00 20 lwz r10,32(r1) <== NOT EXECUTED
ffc40724: 81 61 00 24 lwz r11,36(r1) <== NOT EXECUTED
ffc40728: 81 01 00 1c lwz r8,28(r1) <== NOT EXECUTED
ffc4072c: 91 49 00 08 stw r10,8(r9) <== NOT EXECUTED
ffc40730: 91 09 00 04 stw r8,4(r9) <== NOT EXECUTED
ffc40734: 91 69 00 0c stw r11,12(r9) <== NOT EXECUTED
ffc40738: 90 09 00 10 stw r0,16(r9) <== NOT EXECUTED
ffc4073c: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED
ffc40740: 48 00 00 58 b ffc40798 <fchdir+0x1ac> <== NOT EXECUTED
return -1;
}
/* release the old one */
rtems_filesystem_freenode( &saved );
ffc40744: 81 21 00 28 lwz r9,40(r1) <== NOT EXECUTED
ffc40748: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc4074c: 41 9e 00 1c beq- cr7,ffc40768 <fchdir+0x17c> <== NOT EXECUTED
ffc40750: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc40754: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc40758: 41 9e 00 10 beq- cr7,ffc40768 <fchdir+0x17c> <== NOT EXECUTED
ffc4075c: 38 61 00 1c addi r3,r1,28 <== NOT EXECUTED
ffc40760: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc40764: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_filesystem_current = loc;
ffc40768: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc4076c: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc40770: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED
ffc40774: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc40778: 81 41 00 0c lwz r10,12(r1) <== NOT EXECUTED
ffc4077c: 81 61 00 10 lwz r11,16(r1) <== NOT EXECUTED
ffc40780: 81 01 00 08 lwz r8,8(r1) <== NOT EXECUTED
ffc40784: 91 49 00 08 stw r10,8(r9) <== NOT EXECUTED
ffc40788: 91 09 00 04 stw r8,4(r9) <== NOT EXECUTED
ffc4078c: 91 69 00 0c stw r11,12(r9) <== NOT EXECUTED
ffc40790: 90 09 00 10 stw r0,16(r9) <== NOT EXECUTED
ffc40794: 80 01 00 18 lwz r0,24(r1) <== NOT EXECUTED
ffc40798: 90 09 00 14 stw r0,20(r9) <== NOT EXECUTED
return 0;
}
ffc4079c: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED
ffc407a0: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED
ffc407a4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc407a8: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED
ffc407ac: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED
ffc407b0: 4e 80 00 20 blr <== NOT EXECUTED
ffc2aaec <fchmod>:
int fchmod(
int fd,
mode_t mode
)
{
ffc2aaec: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc2aaf0: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
ffc2aaf4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
int fchmod(
int fd,
mode_t mode
)
{
ffc2aaf8: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
ffc2aafc: 80 09 34 cc lwz r0,13516(r9) <== NOT EXECUTED
ffc2ab00: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED
ffc2ab04: 40 9c 00 20 bge- cr7,ffc2ab24 <fchmod+0x38> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
ffc2ab08: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc2ab0c: 80 09 35 f4 lwz r0,13812(r9) <== NOT EXECUTED
ffc2ab10: 1c 63 00 48 mulli r3,r3,72 <== NOT EXECUTED
ffc2ab14: 7c 60 1a 14 add r3,r0,r3 <== NOT EXECUTED
rtems_libio_check_is_open(iop);
ffc2ab18: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED
ffc2ab1c: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED
ffc2ab20: 40 a2 00 10 bne+ ffc2ab30 <fchmod+0x44> <== NOT EXECUTED
ffc2ab24: 48 01 cb 4d bl ffc47670 <__errno> <== NOT EXECUTED
ffc2ab28: 38 00 00 09 li r0,9 <== NOT EXECUTED
ffc2ab2c: 48 00 00 30 b ffc2ab5c <fchmod+0x70> <== NOT EXECUTED
/*
* Now process the fchmod().
*/
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
ffc2ab30: 70 09 00 04 andi. r9,r0,4 <== NOT EXECUTED
ffc2ab34: 40 a2 00 10 bne+ ffc2ab44 <fchmod+0x58> <== NOT EXECUTED
ffc2ab38: 48 01 cb 39 bl ffc47670 <__errno> <== NOT EXECUTED
ffc2ab3c: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc2ab40: 48 00 00 1c b ffc2ab5c <fchmod+0x70> <== NOT EXECUTED
if ( !iop->handlers->fchmod_h )
ffc2ab44: 81 23 00 40 lwz r9,64(r3) <== NOT EXECUTED
ffc2ab48: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2ab4c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2ab50: 40 be 00 18 bne+ cr7,ffc2ab68 <fchmod+0x7c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc2ab54: 48 01 cb 1d bl ffc47670 <__errno> <== NOT EXECUTED
ffc2ab58: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc2ab5c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc2ab60: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc2ab64: 48 00 00 18 b ffc2ab7c <fchmod+0x90> <== NOT EXECUTED
return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode );
ffc2ab68: 81 23 00 24 lwz r9,36(r3) <== NOT EXECUTED
ffc2ab6c: 38 63 00 1c addi r3,r3,28 <== NOT EXECUTED
ffc2ab70: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2ab74: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2ab78: 4e 80 04 21 bctrl <== NOT EXECUTED
}
ffc2ab7c: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc2ab80: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc2ab84: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2ab88: 4e 80 00 20 blr <== NOT EXECUTED
ffc2ab8c <fchown>:
int fchown(
int fd,
uid_t owner,
gid_t group
)
{
ffc2ab8c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc2ab90: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
ffc2ab94: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
int fchown(
int fd,
uid_t owner,
gid_t group
)
{
ffc2ab98: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
ffc2ab9c: 80 09 34 cc lwz r0,13516(r9) <== NOT EXECUTED
ffc2aba0: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED
ffc2aba4: 40 9c 00 20 bge- cr7,ffc2abc4 <fchown+0x38> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
ffc2aba8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc2abac: 80 09 35 f4 lwz r0,13812(r9) <== NOT EXECUTED
ffc2abb0: 1c 63 00 48 mulli r3,r3,72 <== NOT EXECUTED
ffc2abb4: 7c 60 1a 14 add r3,r0,r3 <== NOT EXECUTED
rtems_libio_check_is_open(iop);
ffc2abb8: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED
ffc2abbc: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED
ffc2abc0: 40 a2 00 10 bne+ ffc2abd0 <fchown+0x44> <== NOT EXECUTED
ffc2abc4: 48 01 ca ad bl ffc47670 <__errno> <== NOT EXECUTED
ffc2abc8: 38 00 00 09 li r0,9 <== NOT EXECUTED
ffc2abcc: 48 00 00 30 b ffc2abfc <fchown+0x70> <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
ffc2abd0: 70 09 00 04 andi. r9,r0,4 <== NOT EXECUTED
ffc2abd4: 40 a2 00 10 bne+ ffc2abe4 <fchown+0x58> <== NOT EXECUTED
ffc2abd8: 48 01 ca 99 bl ffc47670 <__errno> <== NOT EXECUTED
ffc2abdc: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc2abe0: 48 00 00 1c b ffc2abfc <fchown+0x70> <== NOT EXECUTED
if ( !iop->pathinfo.ops->chown_h )
ffc2abe4: 81 23 00 28 lwz r9,40(r3) <== NOT EXECUTED
ffc2abe8: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED
ffc2abec: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2abf0: 40 be 00 18 bne+ cr7,ffc2ac08 <fchown+0x7c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc2abf4: 48 01 ca 7d bl ffc47670 <__errno> <== NOT EXECUTED
ffc2abf8: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc2abfc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc2ac00: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc2ac04: 48 00 00 10 b ffc2ac14 <fchown+0x88> <== NOT EXECUTED
return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group );
ffc2ac08: 38 63 00 1c addi r3,r3,28 <== NOT EXECUTED
ffc2ac0c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2ac10: 4e 80 04 21 bctrl <== NOT EXECUTED
}
ffc2ac14: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc2ac18: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc2ac1c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2ac20: 4e 80 00 20 blr <== NOT EXECUTED
ffc407b4 <fcntl>:
int fcntl(
int fd,
int cmd,
...
)
{
ffc407b4: 94 21 ff c8 stwu r1,-56(r1)
ffc407b8: 7c 08 02 a6 mflr r0
int fd2;
int flags;
int mask;
int ret = 0;
rtems_libio_check_fd( fd );
ffc407bc: 3d 20 00 00 lis r9,0
int fcntl(
int fd,
int cmd,
...
)
{
ffc407c0: 90 01 00 3c stw r0,60(r1)
int fd2;
int flags;
int mask;
int ret = 0;
rtems_libio_check_fd( fd );
ffc407c4: 80 09 34 cc lwz r0,13516(r9)
...
)
{
int ret;
va_list ap;
va_start( ap, cmd );
ffc407c8: 39 20 00 02 li r9,2
ffc407cc: 99 21 00 08 stb r9,8(r1)
ffc407d0: 39 21 00 40 addi r9,r1,64
int fd2;
int flags;
int mask;
int ret = 0;
rtems_libio_check_fd( fd );
ffc407d4: 7f 83 00 40 cmplw cr7,r3,r0
...
)
{
int ret;
va_list ap;
va_start( ap, cmd );
ffc407d8: 91 21 00 0c stw r9,12(r1)
ffc407dc: 39 21 00 10 addi r9,r1,16
int fcntl(
int fd,
int cmd,
...
)
{
ffc407e0: 93 e1 00 34 stw r31,52(r1)
ffc407e4: 7c 9f 23 78 mr r31,r4
ffc407e8: 93 a1 00 2c stw r29,44(r1)
ffc407ec: 93 c1 00 30 stw r30,48(r1)
ffc407f0: 90 a1 00 18 stw r5,24(r1)
ffc407f4: 90 c1 00 1c stw r6,28(r1)
ffc407f8: 90 e1 00 20 stw r7,32(r1)
int ret;
va_list ap;
va_start( ap, cmd );
ffc407fc: 91 21 00 10 stw r9,16(r1)
int fd2;
int flags;
int mask;
int ret = 0;
rtems_libio_check_fd( fd );
ffc40800: 40 9c 00 20 bge- cr7,ffc40820 <fcntl+0x6c>
iop = rtems_libio_iop( fd );
ffc40804: 3d 20 00 00 lis r9,0
ffc40808: 81 69 35 f4 lwz r11,13812(r9)
ffc4080c: 1c 63 00 48 mulli r3,r3,72
ffc40810: 7f ab 1a 14 add r29,r11,r3
rtems_libio_check_is_open(iop);
ffc40814: 80 7d 00 18 lwz r3,24(r29)
ffc40818: 70 69 01 00 andi. r9,r3,256
ffc4081c: 40 a2 00 10 bne+ ffc4082c <fcntl+0x78>
ffc40820: 48 00 6e 51 bl ffc47670 <__errno> <== NOT EXECUTED
ffc40824: 38 00 00 09 li r0,9 <== NOT EXECUTED
ffc40828: 48 00 01 c0 b ffc409e8 <fcntl+0x234> <== NOT EXECUTED
/*
* This switch should contain all the cases from POSIX.
*/
switch ( cmd ) {
ffc4082c: 2b 84 00 09 cmplwi cr7,r4,9
ffc40830: 41 9d 01 b0 bgt- cr7,ffc409e0 <fcntl+0x22c>
ffc40834: 3d 20 ff c7 lis r9,-57
ffc40838: 39 29 bd 7c addi r9,r9,-17028
ffc4083c: 54 8a 10 3a rlwinm r10,r4,2,0,29
ffc40840: 7d 49 50 2e lwzx r10,r9,r10
ffc40844: 7d 2a 4a 14 add r9,r10,r9
ffc40848: 7d 29 03 a6 mtctr r9
ffc4084c: 4e 80 04 20 bctr
case F_DUPFD: /* dup */
fd2 = va_arg( ap, int );
ffc40850: 89 21 00 08 lbz r9,8(r1)
ffc40854: 2b 89 00 07 cmplwi cr7,r9,7
ffc40858: 41 9d 00 1c bgt- cr7,ffc40874 <fcntl+0xc0>
ffc4085c: 81 01 00 10 lwz r8,16(r1)
ffc40860: 39 49 00 01 addi r10,r9,1
ffc40864: 55 29 10 3a rlwinm r9,r9,2,0,29
ffc40868: 99 41 00 08 stb r10,8(r1)
ffc4086c: 7d 28 4a 14 add r9,r8,r9
ffc40870: 48 00 00 10 b ffc40880 <fcntl+0xcc>
ffc40874: 81 21 00 0c lwz r9,12(r1) <== NOT EXECUTED
ffc40878: 39 49 00 04 addi r10,r9,4 <== NOT EXECUTED
ffc4087c: 91 41 00 0c stw r10,12(r1) <== NOT EXECUTED
ffc40880: 81 29 00 00 lwz r9,0(r9)
if ( fd2 )
ffc40884: 2f 89 00 00 cmpwi cr7,r9,0
ffc40888: 41 9e 00 1c beq- cr7,ffc408a4 <fcntl+0xf0>
diop = rtems_libio_iop( fd2 );
ffc4088c: 1c 69 00 48 mulli r3,r9,72 <== NOT EXECUTED
ffc40890: 7c 00 48 10 subfc r0,r0,r9 <== NOT EXECUTED
ffc40894: 7c 00 01 10 subfe r0,r0,r0 <== NOT EXECUTED
ffc40898: 7c 6b 1a 14 add r3,r11,r3 <== NOT EXECUTED
ffc4089c: 7c 63 00 38 and r3,r3,r0 <== NOT EXECUTED
ffc408a0: 48 00 00 14 b ffc408b4 <fcntl+0x100> <== NOT EXECUTED
else {
/* allocate a file control block */
diop = rtems_libio_allocate();
ffc408a4: 4b fc 6e 65 bl ffc07708 <rtems_libio_allocate>
if ( diop == 0 ) {
ffc408a8: 3b c0 ff ff li r30,-1
ffc408ac: 2c 03 00 00 cmpwi r3,0
ffc408b0: 41 82 01 7c beq- ffc40a2c <fcntl+0x278>
}
diop->handlers = iop->handlers;
diop->file_info = iop->file_info;
diop->flags = iop->flags;
diop->pathinfo = iop->pathinfo;
ffc408b4: 81 3d 00 24 lwz r9,36(r29)
ffc408b8: 81 5d 00 1c lwz r10,28(r29)
ffc408bc: 81 7d 00 20 lwz r11,32(r29)
ffc408c0: 80 1d 00 28 lwz r0,40(r29)
ffc408c4: 91 23 00 24 stw r9,36(r3)
ret = (int) (diop - rtems_libio_iops);
ffc408c8: 3d 20 00 00 lis r9,0
}
diop->handlers = iop->handlers;
diop->file_info = iop->file_info;
diop->flags = iop->flags;
diop->pathinfo = iop->pathinfo;
ffc408cc: 91 43 00 1c stw r10,28(r3)
ffc408d0: 91 63 00 20 stw r11,32(r3)
ret = (int) (diop - rtems_libio_iops);
ffc408d4: 83 c9 35 f4 lwz r30,13812(r9)
ret = -1;
break;
}
}
diop->handlers = iop->handlers;
ffc408d8: 81 5d 00 40 lwz r10,64(r29)
diop->file_info = iop->file_info;
diop->flags = iop->flags;
diop->pathinfo = iop->pathinfo;
ffc408dc: 90 03 00 28 stw r0,40(r3)
ret = (int) (diop - rtems_libio_iops);
ffc408e0: 7f de 18 50 subf r30,r30,r3
ffc408e4: 7f de 1e 70 srawi r30,r30,3
break;
}
}
diop->handlers = iop->handlers;
diop->file_info = iop->file_info;
ffc408e8: 81 7d 00 3c lwz r11,60(r29)
diop->flags = iop->flags;
ffc408ec: 81 3d 00 18 lwz r9,24(r29)
diop->pathinfo = iop->pathinfo;
ffc408f0: 80 1d 00 2c lwz r0,44(r29)
ret = -1;
break;
}
}
diop->handlers = iop->handlers;
ffc408f4: 91 43 00 40 stw r10,64(r3)
diop->file_info = iop->file_info;
diop->flags = iop->flags;
diop->pathinfo = iop->pathinfo;
ret = (int) (diop - rtems_libio_iops);
ffc408f8: 3d 40 38 e3 lis r10,14563
ffc408fc: 61 4a 8e 39 ori r10,r10,36409
ffc40900: 7f de 51 d6 mullw r30,r30,r10
break;
}
}
diop->handlers = iop->handlers;
diop->file_info = iop->file_info;
ffc40904: 91 63 00 3c stw r11,60(r3)
diop->flags = iop->flags;
ffc40908: 91 23 00 18 stw r9,24(r3)
diop->pathinfo = iop->pathinfo;
ffc4090c: 90 03 00 2c stw r0,44(r3)
ffc40910: 48 00 00 e0 b ffc409f0 <fcntl+0x23c>
ret = (int) (diop - rtems_libio_iops);
break;
case F_GETFD: /* get f_flags */
ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0);
ffc40914: 54 7e af fe rlwinm r30,r3,21,31,31
ffc40918: 48 00 00 e0 b ffc409f8 <fcntl+0x244>
* 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 ) )
ffc4091c: 89 21 00 08 lbz r9,8(r1)
ffc40920: 2b 89 00 07 cmplwi cr7,r9,7
ffc40924: 41 9d 00 1c bgt- cr7,ffc40940 <fcntl+0x18c>
ffc40928: 81 61 00 10 lwz r11,16(r1)
ffc4092c: 38 09 00 01 addi r0,r9,1
ffc40930: 55 29 10 3a rlwinm r9,r9,2,0,29
ffc40934: 98 01 00 08 stb r0,8(r1)
ffc40938: 7d 2b 4a 14 add r9,r11,r9
ffc4093c: 48 00 00 10 b ffc4094c <fcntl+0x198>
ffc40940: 81 21 00 0c lwz r9,12(r1) <== NOT EXECUTED
ffc40944: 38 09 00 04 addi r0,r9,4 <== NOT EXECUTED
ffc40948: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
ffc4094c: 80 09 00 00 lwz r0,0(r9)
ffc40950: 2f 80 00 00 cmpwi cr7,r0,0
ffc40954: 41 9e 00 0c beq- cr7,ffc40960 <fcntl+0x1ac>
iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;
ffc40958: 60 63 08 00 ori r3,r3,2048
ffc4095c: 48 00 00 08 b ffc40964 <fcntl+0x1b0>
else
iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;
ffc40960: 54 63 05 66 rlwinm r3,r3,0,21,19 <== NOT EXECUTED
ffc40964: 90 7d 00 18 stw r3,24(r29)
ffc40968: 3b c0 00 00 li r30,0
ffc4096c: 48 00 00 8c b ffc409f8 <fcntl+0x244>
break;
case F_GETFL: /* more flags (cloexec) */
ret = rtems_libio_to_fcntl_flags( iop->flags );
ffc40970: 4b fc 6b 95 bl ffc07504 <rtems_libio_to_fcntl_flags>
ffc40974: 7c 7e 1b 78 mr r30,r3
ffc40978: 48 00 00 78 b ffc409f0 <fcntl+0x23c>
break;
case F_SETFL:
flags = rtems_libio_fcntl_flags( va_arg( ap, int ) );
ffc4097c: 89 21 00 08 lbz r9,8(r1)
ffc40980: 2b 89 00 07 cmplwi cr7,r9,7
ffc40984: 41 9d 00 1c bgt- cr7,ffc409a0 <fcntl+0x1ec>
ffc40988: 81 61 00 10 lwz r11,16(r1)
ffc4098c: 38 09 00 01 addi r0,r9,1
ffc40990: 55 29 10 3a rlwinm r9,r9,2,0,29
ffc40994: 98 01 00 08 stb r0,8(r1)
ffc40998: 7d 2b 4a 14 add r9,r11,r9
ffc4099c: 48 00 00 10 b ffc409ac <fcntl+0x1f8>
ffc409a0: 81 21 00 0c lwz r9,12(r1) <== NOT EXECUTED
ffc409a4: 38 09 00 04 addi r0,r9,4 <== NOT EXECUTED
ffc409a8: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
ffc409ac: 80 69 00 00 lwz r3,0(r9)
/*
* XXX If we are turning on append, should we seek to the end?
*/
iop->flags = (iop->flags & ~mask) | (flags & mask);
ffc409b0: 3b c0 00 00 li r30,0
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 ) );
ffc409b4: 4b fc 6e 31 bl ffc077e4 <rtems_libio_fcntl_flags>
/*
* XXX If we are turning on append, should we seek to the end?
*/
iop->flags = (iop->flags & ~mask) | (flags & mask);
ffc409b8: 80 1d 00 18 lwz r0,24(r29)
ffc409bc: 70 63 02 01 andi. r3,r3,513
ffc409c0: 39 20 fd fe li r9,-514
ffc409c4: 7d 20 00 38 and r0,r9,r0
ffc409c8: 7c 63 03 78 or r3,r3,r0
ffc409cc: 90 7d 00 18 stw r3,24(r29)
ffc409d0: 48 00 00 28 b ffc409f8 <fcntl+0x244>
errno = ENOTSUP;
ret = -1;
break;
case F_GETOWN: /* for sockets. */
errno = ENOTSUP;
ffc409d4: 48 00 6c 9d bl ffc47670 <__errno>
ffc409d8: 38 00 00 86 li r0,134
ffc409dc: 48 00 00 0c b ffc409e8 <fcntl+0x234>
ret = -1;
break;
default:
errno = EINVAL;
ffc409e0: 48 00 6c 91 bl ffc47670 <__errno>
ffc409e4: 38 00 00 16 li r0,22
ffc409e8: 90 03 00 00 stw r0,0(r3)
ffc409ec: 48 00 00 3c b ffc40a28 <fcntl+0x274>
/*
* If we got this far successfully, then we give the optional
* filesystem specific handler a chance to process this.
*/
if (ret >= 0) {
ffc409f0: 2f 9e 00 00 cmpwi cr7,r30,0
ffc409f4: 41 9c 00 38 blt- cr7,ffc40a2c <fcntl+0x278>
if (iop->handlers->fcntl_h) {
ffc409f8: 81 3d 00 40 lwz r9,64(r29)
ffc409fc: 80 09 00 30 lwz r0,48(r9)
ffc40a00: 2f 80 00 00 cmpwi cr7,r0,0
ffc40a04: 41 9e 00 28 beq- cr7,ffc40a2c <fcntl+0x278>
int err = (*iop->handlers->fcntl_h)( cmd, iop );
ffc40a08: 7f e3 fb 78 mr r3,r31
ffc40a0c: 7c 09 03 a6 mtctr r0
ffc40a10: 7f a4 eb 78 mr r4,r29
ffc40a14: 4e 80 04 21 bctrl
if (err) {
ffc40a18: 7c 7f 1b 79 mr. r31,r3
ffc40a1c: 41 a2 00 10 beq+ ffc40a2c <fcntl+0x278>
errno = err;
ffc40a20: 48 00 6c 51 bl ffc47670 <__errno> <== NOT EXECUTED
ffc40a24: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED
ffc40a28: 3b c0 ff ff li r30,-1
va_list ap;
va_start( ap, cmd );
ret = vfcntl(fd,cmd,ap);
va_end(ap);
return ret;
}
ffc40a2c: 80 01 00 3c lwz r0,60(r1)
ffc40a30: 7f c3 f3 78 mr r3,r30
ffc40a34: 83 a1 00 2c lwz r29,44(r1)
ffc40a38: 7c 08 03 a6 mtlr r0
ffc40a3c: 83 c1 00 30 lwz r30,48(r1)
ffc40a40: 83 e1 00 34 lwz r31,52(r1)
ffc40a44: 38 21 00 38 addi r1,r1,56
ffc40a48: 4e 80 00 20 blr
ffc0faa0 <fifo_open>:
*/
int fifo_open(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
ffc0faa0: 94 21 ff d0 stwu r1,-48(r1)
)
{
pipe_control_t *pipe;
int err = 0;
if (rtems_semaphore_obtain(rtems_pipe_semaphore,
ffc0faa4: 3d 20 00 00 lis r9,0
*/
int fifo_open(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
ffc0faa8: 7c 08 02 a6 mflr r0
)
{
pipe_control_t *pipe;
int err = 0;
if (rtems_semaphore_obtain(rtems_pipe_semaphore,
ffc0faac: 38 a0 00 00 li r5,0
*/
int fifo_open(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
ffc0fab0: 93 81 00 20 stw r28,32(r1)
ffc0fab4: 7c 7c 1b 78 mr r28,r3
)
{
pipe_control_t *pipe;
int err = 0;
if (rtems_semaphore_obtain(rtems_pipe_semaphore,
ffc0fab8: 80 69 29 94 lwz r3,10644(r9)
*/
int fifo_open(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
ffc0fabc: 93 61 00 1c stw r27,28(r1)
ffc0fac0: 7c 9b 23 78 mr r27,r4
)
{
pipe_control_t *pipe;
int err = 0;
if (rtems_semaphore_obtain(rtems_pipe_semaphore,
ffc0fac4: 38 80 00 00 li r4,0
*/
int fifo_open(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
ffc0fac8: 93 a1 00 24 stw r29,36(r1)
)
{
pipe_control_t *pipe;
int err = 0;
if (rtems_semaphore_obtain(rtems_pipe_semaphore,
ffc0facc: 3b a0 ff fc li r29,-4
*/
int fifo_open(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
ffc0fad0: 90 01 00 34 stw r0,52(r1)
ffc0fad4: 93 41 00 18 stw r26,24(r1)
ffc0fad8: 93 c1 00 28 stw r30,40(r1)
ffc0fadc: 93 e1 00 2c stw r31,44(r1)
)
{
pipe_control_t *pipe;
int err = 0;
if (rtems_semaphore_obtain(rtems_pipe_semaphore,
ffc0fae0: 4b ff 82 cd bl ffc07dac <rtems_semaphore_obtain>
ffc0fae4: 2f 83 00 00 cmpwi cr7,r3,0
ffc0fae8: 40 9e 03 74 bne- cr7,ffc0fe5c <fifo_open+0x3bc>
RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL)
return -EINTR;
pipe = *pipep;
ffc0faec: 83 fc 00 00 lwz r31,0(r28) <== NOT EXECUTED
if (pipe == NULL) {
ffc0faf0: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED
ffc0faf4: 40 be 01 50 bne+ cr7,ffc0fc44 <fifo_open+0x1a4> <== NOT EXECUTED
{
static char c = 'a';
pipe_control_t *pipe;
int err = -ENOMEM;
pipe = malloc(sizeof(pipe_control_t));
ffc0faf8: 38 60 00 34 li r3,52 <== NOT EXECUTED
ffc0fafc: 4b ff 4a ad bl ffc045a8 <malloc> <== NOT EXECUTED
if (pipe == NULL)
ffc0fb00: 3b a0 ff f4 li r29,-12 <== NOT EXECUTED
ffc0fb04: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
{
static char c = 'a';
pipe_control_t *pipe;
int err = -ENOMEM;
pipe = malloc(sizeof(pipe_control_t));
ffc0fb08: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED
ffc0fb0c: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED
if (pipe == NULL)
ffc0fb10: 41 9e 01 78 beq- cr7,ffc0fc88 <fifo_open+0x1e8> <== NOT EXECUTED
return err;
memset(pipe, 0, sizeof(pipe_control_t));
ffc0fb14: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc0fb18: 38 a0 00 34 li r5,52 <== NOT EXECUTED
ffc0fb1c: 48 00 2d 91 bl ffc128ac <memset> <== NOT EXECUTED
pipe->Size = PIPE_BUF;
ffc0fb20: 38 00 02 00 li r0,512 <== NOT EXECUTED
ffc0fb24: 90 1e 00 04 stw r0,4(r30) <== NOT EXECUTED
pipe->Buffer = malloc(pipe->Size);
ffc0fb28: 38 60 02 00 li r3,512 <== NOT EXECUTED
ffc0fb2c: 4b ff 4a 7d bl ffc045a8 <malloc> <== NOT EXECUTED
if (! pipe->Buffer)
ffc0fb30: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
if (pipe == NULL)
return err;
memset(pipe, 0, sizeof(pipe_control_t));
pipe->Size = PIPE_BUF;
pipe->Buffer = malloc(pipe->Size);
ffc0fb34: 90 7e 00 00 stw r3,0(r30) <== NOT EXECUTED
if (! pipe->Buffer)
ffc0fb38: 41 9e 01 00 beq- cr7,ffc0fc38 <fifo_open+0x198> <== NOT EXECUTED
goto err_buf;
err = -EINTR;
if (rtems_barrier_create(
ffc0fb3c: 3f a0 00 00 lis r29,0 <== NOT EXECUTED
ffc0fb40: 88 7d 22 00 lbz r3,8704(r29) <== NOT EXECUTED
ffc0fb44: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc0fb48: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc0fb4c: 64 63 50 49 oris r3,r3,20553 <== NOT EXECUTED
ffc0fb50: 60 63 72 00 ori r3,r3,29184 <== NOT EXECUTED
ffc0fb54: 38 de 00 2c addi r6,r30,44 <== NOT EXECUTED
ffc0fb58: 48 00 0b e9 bl ffc10740 <rtems_barrier_create> <== NOT EXECUTED
ffc0fb5c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc0fb60: 40 9e 00 cc bne- cr7,ffc0fc2c <fifo_open+0x18c> <== 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(
ffc0fb64: 88 7d 22 00 lbz r3,8704(r29) <== NOT EXECUTED
ffc0fb68: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc0fb6c: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc0fb70: 64 63 50 49 oris r3,r3,20553 <== NOT EXECUTED
ffc0fb74: 60 63 77 00 ori r3,r3,30464 <== NOT EXECUTED
ffc0fb78: 38 de 00 30 addi r6,r30,48 <== NOT EXECUTED
ffc0fb7c: 48 00 0b c5 bl ffc10740 <rtems_barrier_create> <== NOT EXECUTED
ffc0fb80: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc0fb84: 40 9e 00 a0 bne- cr7,ffc0fc24 <fifo_open+0x184> <== 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(
ffc0fb88: 88 7d 22 00 lbz r3,8704(r29) <== NOT EXECUTED
ffc0fb8c: 38 80 00 01 li r4,1 <== NOT EXECUTED
ffc0fb90: 38 a0 00 10 li r5,16 <== NOT EXECUTED
ffc0fb94: 64 63 50 49 oris r3,r3,20553 <== NOT EXECUTED
ffc0fb98: 60 63 73 00 ori r3,r3,29440 <== NOT EXECUTED
ffc0fb9c: 38 c0 00 00 li r6,0 <== NOT EXECUTED
ffc0fba0: 38 fe 00 28 addi r7,r30,40 <== NOT EXECUTED
ffc0fba4: 4b ff 7f 39 bl ffc07adc <rtems_semaphore_create> <== NOT EXECUTED
ffc0fba8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc0fbac: 40 9e 00 70 bne- cr7,ffc0fc1c <fifo_open+0x17c> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Barrier_Control *)
ffc0fbb0: 3f 40 00 00 lis r26,0 <== NOT EXECUTED
ffc0fbb4: 80 9e 00 2c lwz r4,44(r30) <== NOT EXECUTED
ffc0fbb8: 3b 5a 35 4c addi r26,r26,13644 <== NOT EXECUTED
ffc0fbbc: 3b c1 00 0c addi r30,r1,12 <== NOT EXECUTED
ffc0fbc0: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED
ffc0fbc4: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED
ffc0fbc8: 4b ff 9e 61 bl ffc09a28 <_Objects_Get> <== NOT EXECUTED
/* Set barriers to be interruptible by signals. */
static void pipe_interruptible(pipe_control_t *pipe)
{
Objects_Locations location;
_Barrier_Get(pipe->readBarrier, &location)->Barrier.Wait_queue.state
ffc0fbcc: 80 03 00 4c lwz r0,76(r3) <== NOT EXECUTED
ffc0fbd0: 64 00 10 00 oris r0,r0,4096 <== NOT EXECUTED
ffc0fbd4: 90 03 00 4c stw r0,76(r3) <== NOT EXECUTED
|= STATES_INTERRUPTIBLE_BY_SIGNAL;
_Thread_Enable_dispatch();
ffc0fbd8: 4b ff a9 61 bl ffc0a538 <_Thread_Enable_dispatch> <== NOT EXECUTED
ffc0fbdc: 80 9f 00 30 lwz r4,48(r31) <== NOT EXECUTED
ffc0fbe0: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED
ffc0fbe4: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED
ffc0fbe8: 4b ff 9e 41 bl ffc09a28 <_Objects_Get> <== NOT EXECUTED
_Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state
ffc0fbec: 80 03 00 4c lwz r0,76(r3) <== NOT EXECUTED
ffc0fbf0: 64 00 10 00 oris r0,r0,4096 <== NOT EXECUTED
ffc0fbf4: 90 03 00 4c stw r0,76(r3) <== NOT EXECUTED
|= STATES_INTERRUPTIBLE_BY_SIGNAL;
_Thread_Enable_dispatch();
ffc0fbf8: 4b ff a9 41 bl ffc0a538 <_Thread_Enable_dispatch> <== NOT EXECUTED
#ifdef RTEMS_POSIX_API
pipe_interruptible(pipe);
#endif
*pipep = pipe;
if (c ++ == 'z')
ffc0fbfc: 89 3d 22 00 lbz r9,8704(r29) <== NOT EXECUTED
ffc0fc00: 2f 89 00 7a cmpwi cr7,r9,122 <== NOT EXECUTED
ffc0fc04: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED
ffc0fc08: 99 3d 22 00 stb r9,8704(r29) <== NOT EXECUTED
ffc0fc0c: 40 be 00 38 bne+ cr7,ffc0fc44 <fifo_open+0x1a4> <== NOT EXECUTED
c = 'a';
ffc0fc10: 38 00 00 61 li r0,97 <== NOT EXECUTED
ffc0fc14: 98 1d 22 00 stb r0,8704(r29) <== NOT EXECUTED
ffc0fc18: 48 00 00 2c b ffc0fc44 <fifo_open+0x1a4> <== NOT EXECUTED
return 0;
err_sem:
rtems_barrier_delete(pipe->writeBarrier);
ffc0fc1c: 80 7e 00 30 lwz r3,48(r30) <== NOT EXECUTED
ffc0fc20: 48 00 0c 11 bl ffc10830 <rtems_barrier_delete> <== NOT EXECUTED
err_wbar:
rtems_barrier_delete(pipe->readBarrier);
ffc0fc24: 80 7e 00 2c lwz r3,44(r30) <== NOT EXECUTED
ffc0fc28: 48 00 0c 09 bl ffc10830 <rtems_barrier_delete> <== NOT EXECUTED
err_rbar:
free(pipe->Buffer);
ffc0fc2c: 80 7e 00 00 lwz r3,0(r30) <== NOT EXECUTED
ffc0fc30: 3b a0 ff fc li r29,-4 <== NOT EXECUTED
ffc0fc34: 4b ff 46 11 bl ffc04244 <free> <== NOT EXECUTED
err_buf:
free(pipe);
ffc0fc38: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc0fc3c: 4b ff 46 09 bl ffc04244 <free> <== NOT EXECUTED
ffc0fc40: 48 00 00 48 b ffc0fc88 <fifo_open+0x1e8> <== NOT EXECUTED
err = pipe_alloc(&pipe);
if (err)
goto out;
}
if (! PIPE_LOCK(pipe))
ffc0fc44: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED
ffc0fc48: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc0fc4c: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc0fc50: 4b ff 81 5d bl ffc07dac <rtems_semaphore_obtain> <== NOT EXECUTED
err = -EINTR;
if (*pipep == NULL) {
ffc0fc54: 80 1c 00 00 lwz r0,0(r28) <== NOT EXECUTED
err = pipe_alloc(&pipe);
if (err)
goto out;
}
if (! PIPE_LOCK(pipe))
ffc0fc58: 30 63 ff ff addic r3,r3,-1 <== NOT EXECUTED
ffc0fc5c: 7c 63 19 10 subfe r3,r3,r3 <== NOT EXECUTED
err = -EINTR;
if (*pipep == NULL) {
ffc0fc60: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
err = pipe_alloc(&pipe);
if (err)
goto out;
}
if (! PIPE_LOCK(pipe))
ffc0fc64: 54 7d 07 7a rlwinm r29,r3,0,29,29 <== NOT EXECUTED
ffc0fc68: 3b bd ff fc addi r29,r29,-4 <== NOT EXECUTED
err = -EINTR;
if (*pipep == NULL) {
ffc0fc6c: 40 be 00 1c bne+ cr7,ffc0fc88 <fifo_open+0x1e8> <== NOT EXECUTED
if (err)
ffc0fc70: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED
ffc0fc74: 41 be 00 10 beq+ cr7,ffc0fc84 <fifo_open+0x1e4> <== NOT EXECUTED
pipe_free(pipe);
ffc0fc78: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc0fc7c: 4b ff fc b5 bl ffc0f930 <pipe_free> <== NOT EXECUTED
ffc0fc80: 48 00 00 08 b ffc0fc88 <fifo_open+0x1e8> <== NOT EXECUTED
else
*pipep = pipe;
ffc0fc84: 93 fc 00 00 stw r31,0(r28) <== NOT EXECUTED
}
out:
rtems_semaphore_release(rtems_pipe_semaphore);
ffc0fc88: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc0fc8c: 80 69 29 94 lwz r3,10644(r9) <== NOT EXECUTED
ffc0fc90: 4b ff 82 61 bl ffc07ef0 <rtems_semaphore_release> <== NOT EXECUTED
pipe_control_t *pipe;
uint prevCounter;
int err;
err = pipe_new(pipep);
if (err)
ffc0fc94: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED
ffc0fc98: 40 9e 01 c4 bne- cr7,ffc0fe5c <fifo_open+0x3bc> <== NOT EXECUTED
return err;
pipe = *pipep;
switch (LIBIO_ACCMODE(iop)) {
ffc0fc9c: 81 3b 00 18 lwz r9,24(r27) <== NOT EXECUTED
int err;
err = pipe_new(pipep);
if (err)
return err;
pipe = *pipep;
ffc0fca0: 83 fc 00 00 lwz r31,0(r28) <== NOT EXECUTED
switch (LIBIO_ACCMODE(iop)) {
ffc0fca4: 55 20 07 7c rlwinm r0,r9,0,29,30 <== NOT EXECUTED
ffc0fca8: 2f 80 00 04 cmpwi cr7,r0,4 <== NOT EXECUTED
ffc0fcac: 41 9e 00 a0 beq- cr7,ffc0fd4c <fifo_open+0x2ac> <== NOT EXECUTED
ffc0fcb0: 2f 80 00 06 cmpwi cr7,r0,6 <== NOT EXECUTED
ffc0fcb4: 41 9e 01 34 beq- cr7,ffc0fde8 <fifo_open+0x348> <== NOT EXECUTED
ffc0fcb8: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED
ffc0fcbc: 40 be 01 84 bne+ cr7,ffc0fe40 <fifo_open+0x3a0> <== NOT EXECUTED
case LIBIO_FLAGS_READ:
pipe->readerCounter ++;
if (pipe->Readers ++ == 0)
ffc0fcc0: 81 3f 00 10 lwz r9,16(r31) <== NOT EXECUTED
return err;
pipe = *pipep;
switch (LIBIO_ACCMODE(iop)) {
case LIBIO_FLAGS_READ:
pipe->readerCounter ++;
ffc0fcc4: 81 7f 00 20 lwz r11,32(r31) <== NOT EXECUTED
if (pipe->Readers ++ == 0)
ffc0fcc8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
return err;
pipe = *pipep;
switch (LIBIO_ACCMODE(iop)) {
case LIBIO_FLAGS_READ:
pipe->readerCounter ++;
ffc0fccc: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED
if (pipe->Readers ++ == 0)
ffc0fcd0: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED
return err;
pipe = *pipep;
switch (LIBIO_ACCMODE(iop)) {
case LIBIO_FLAGS_READ:
pipe->readerCounter ++;
ffc0fcd4: 90 1f 00 20 stw r0,32(r31) <== NOT EXECUTED
if (pipe->Readers ++ == 0)
ffc0fcd8: 91 3f 00 10 stw r9,16(r31) <== NOT EXECUTED
ffc0fcdc: 40 be 00 10 bne+ cr7,ffc0fcec <fifo_open+0x24c> <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
ffc0fce0: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED
ffc0fce4: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED
ffc0fce8: 48 00 0b d1 bl ffc108b8 <rtems_barrier_release> <== NOT EXECUTED
if (pipe->Writers == 0) {
ffc0fcec: 80 1f 00 14 lwz r0,20(r31) <== NOT EXECUTED
ffc0fcf0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0fcf4: 40 9e 01 4c bne- cr7,ffc0fe40 <fifo_open+0x3a0> <== NOT EXECUTED
/* Not an error */
if (LIBIO_NODELAY(iop))
ffc0fcf8: 80 1b 00 18 lwz r0,24(r27) <== NOT EXECUTED
ffc0fcfc: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED
ffc0fd00: 40 82 01 40 bne- ffc0fe40 <fifo_open+0x3a0> <== NOT EXECUTED
break;
prevCounter = pipe->writerCounter;
ffc0fd04: 83 df 00 24 lwz r30,36(r31) <== NOT EXECUTED
err = -EINTR;
/* Wait until a writer opens the pipe */
do {
PIPE_UNLOCK(pipe);
ffc0fd08: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED
ffc0fd0c: 4b ff 81 e5 bl ffc07ef0 <rtems_semaphore_release> <== NOT EXECUTED
if (! PIPE_READWAIT(pipe))
ffc0fd10: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED
ffc0fd14: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc0fd18: 48 00 0c 21 bl ffc10938 <rtems_barrier_wait> <== NOT EXECUTED
goto out_error;
if (! PIPE_LOCK(pipe))
ffc0fd1c: 38 80 00 00 li r4,0 <== NOT EXECUTED
prevCounter = pipe->writerCounter;
err = -EINTR;
/* Wait until a writer opens the pipe */
do {
PIPE_UNLOCK(pipe);
if (! PIPE_READWAIT(pipe))
ffc0fd20: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
goto out_error;
if (! PIPE_LOCK(pipe))
ffc0fd24: 38 a0 00 00 li r5,0 <== NOT EXECUTED
prevCounter = pipe->writerCounter;
err = -EINTR;
/* Wait until a writer opens the pipe */
do {
PIPE_UNLOCK(pipe);
if (! PIPE_READWAIT(pipe))
ffc0fd28: 40 9e 01 24 bne- cr7,ffc0fe4c <fifo_open+0x3ac> <== NOT EXECUTED
goto out_error;
if (! PIPE_LOCK(pipe))
ffc0fd2c: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED
ffc0fd30: 4b ff 80 7d bl ffc07dac <rtems_semaphore_obtain> <== NOT EXECUTED
ffc0fd34: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc0fd38: 40 9e 01 14 bne- cr7,ffc0fe4c <fifo_open+0x3ac> <== NOT EXECUTED
goto out_error;
} while (prevCounter == pipe->writerCounter);
ffc0fd3c: 80 1f 00 24 lwz r0,36(r31) <== NOT EXECUTED
ffc0fd40: 7f 9e 00 00 cmpw cr7,r30,r0 <== NOT EXECUTED
ffc0fd44: 41 9e ff c4 beq+ cr7,ffc0fd08 <fifo_open+0x268> <== NOT EXECUTED
ffc0fd48: 48 00 00 f8 b ffc0fe40 <fifo_open+0x3a0> <== NOT EXECUTED
}
break;
case LIBIO_FLAGS_WRITE:
if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {
ffc0fd4c: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED
ffc0fd50: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0fd54: 40 9e 00 14 bne- cr7,ffc0fd68 <fifo_open+0x2c8> <== NOT EXECUTED
ffc0fd58: 71 20 00 01 andi. r0,r9,1 <== NOT EXECUTED
ffc0fd5c: 41 82 00 0c beq- ffc0fd68 <fifo_open+0x2c8> <== NOT EXECUTED
ffc0fd60: 3b a0 ff fa li r29,-6 <== NOT EXECUTED
ffc0fd64: 48 00 00 ec b ffc0fe50 <fifo_open+0x3b0> <== NOT EXECUTED
err = -ENXIO;
goto out_error;
}
pipe->writerCounter ++;
if (pipe->Writers ++ == 0)
ffc0fd68: 81 3f 00 14 lwz r9,20(r31) <== NOT EXECUTED
if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {
err = -ENXIO;
goto out_error;
}
pipe->writerCounter ++;
ffc0fd6c: 81 7f 00 24 lwz r11,36(r31) <== NOT EXECUTED
if (pipe->Writers ++ == 0)
ffc0fd70: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {
err = -ENXIO;
goto out_error;
}
pipe->writerCounter ++;
ffc0fd74: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED
if (pipe->Writers ++ == 0)
ffc0fd78: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED
if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {
err = -ENXIO;
goto out_error;
}
pipe->writerCounter ++;
ffc0fd7c: 90 1f 00 24 stw r0,36(r31) <== NOT EXECUTED
if (pipe->Writers ++ == 0)
ffc0fd80: 91 3f 00 14 stw r9,20(r31) <== NOT EXECUTED
ffc0fd84: 40 be 00 10 bne+ cr7,ffc0fd94 <fifo_open+0x2f4> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
ffc0fd88: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED
ffc0fd8c: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED
ffc0fd90: 48 00 0b 29 bl ffc108b8 <rtems_barrier_release> <== NOT EXECUTED
if (pipe->Readers == 0) {
ffc0fd94: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED
ffc0fd98: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0fd9c: 40 9e 00 a4 bne- cr7,ffc0fe40 <fifo_open+0x3a0> <== NOT EXECUTED
prevCounter = pipe->readerCounter;
ffc0fda0: 83 df 00 20 lwz r30,32(r31) <== NOT EXECUTED
err = -EINTR;
do {
PIPE_UNLOCK(pipe);
ffc0fda4: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED
ffc0fda8: 4b ff 81 49 bl ffc07ef0 <rtems_semaphore_release> <== NOT EXECUTED
if (! PIPE_WRITEWAIT(pipe))
ffc0fdac: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED
ffc0fdb0: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc0fdb4: 48 00 0b 85 bl ffc10938 <rtems_barrier_wait> <== NOT EXECUTED
goto out_error;
if (! PIPE_LOCK(pipe))
ffc0fdb8: 38 80 00 00 li r4,0 <== NOT EXECUTED
if (pipe->Readers == 0) {
prevCounter = pipe->readerCounter;
err = -EINTR;
do {
PIPE_UNLOCK(pipe);
if (! PIPE_WRITEWAIT(pipe))
ffc0fdbc: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
goto out_error;
if (! PIPE_LOCK(pipe))
ffc0fdc0: 38 a0 00 00 li r5,0 <== NOT EXECUTED
if (pipe->Readers == 0) {
prevCounter = pipe->readerCounter;
err = -EINTR;
do {
PIPE_UNLOCK(pipe);
if (! PIPE_WRITEWAIT(pipe))
ffc0fdc4: 40 9e 00 88 bne- cr7,ffc0fe4c <fifo_open+0x3ac> <== NOT EXECUTED
goto out_error;
if (! PIPE_LOCK(pipe))
ffc0fdc8: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED
ffc0fdcc: 4b ff 7f e1 bl ffc07dac <rtems_semaphore_obtain> <== NOT EXECUTED
ffc0fdd0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc0fdd4: 40 9e 00 78 bne- cr7,ffc0fe4c <fifo_open+0x3ac> <== NOT EXECUTED
goto out_error;
} while (prevCounter == pipe->readerCounter);
ffc0fdd8: 80 1f 00 20 lwz r0,32(r31) <== NOT EXECUTED
ffc0fddc: 7f 9e 00 00 cmpw cr7,r30,r0 <== NOT EXECUTED
ffc0fde0: 41 9e ff c4 beq+ cr7,ffc0fda4 <fifo_open+0x304> <== NOT EXECUTED
ffc0fde4: 48 00 00 5c b ffc0fe40 <fifo_open+0x3a0> <== NOT EXECUTED
}
break;
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
if (pipe->Readers ++ == 0)
ffc0fde8: 81 3f 00 10 lwz r9,16(r31) <== NOT EXECUTED
} while (prevCounter == pipe->readerCounter);
}
break;
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
ffc0fdec: 81 7f 00 20 lwz r11,32(r31) <== NOT EXECUTED
if (pipe->Readers ++ == 0)
ffc0fdf0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
} while (prevCounter == pipe->readerCounter);
}
break;
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
ffc0fdf4: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED
if (pipe->Readers ++ == 0)
ffc0fdf8: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED
} while (prevCounter == pipe->readerCounter);
}
break;
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
ffc0fdfc: 90 1f 00 20 stw r0,32(r31) <== NOT EXECUTED
if (pipe->Readers ++ == 0)
ffc0fe00: 91 3f 00 10 stw r9,16(r31) <== NOT EXECUTED
ffc0fe04: 40 be 00 10 bne+ cr7,ffc0fe14 <fifo_open+0x374> <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
ffc0fe08: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED
ffc0fe0c: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED
ffc0fe10: 48 00 0a a9 bl ffc108b8 <rtems_barrier_release> <== NOT EXECUTED
pipe->writerCounter ++;
if (pipe->Writers ++ == 0)
ffc0fe14: 81 3f 00 14 lwz r9,20(r31) <== NOT EXECUTED
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
if (pipe->Readers ++ == 0)
PIPE_WAKEUPWRITERS(pipe);
pipe->writerCounter ++;
ffc0fe18: 81 7f 00 24 lwz r11,36(r31) <== NOT EXECUTED
if (pipe->Writers ++ == 0)
ffc0fe1c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
if (pipe->Readers ++ == 0)
PIPE_WAKEUPWRITERS(pipe);
pipe->writerCounter ++;
ffc0fe20: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED
if (pipe->Writers ++ == 0)
ffc0fe24: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
if (pipe->Readers ++ == 0)
PIPE_WAKEUPWRITERS(pipe);
pipe->writerCounter ++;
ffc0fe28: 90 1f 00 24 stw r0,36(r31) <== NOT EXECUTED
if (pipe->Writers ++ == 0)
ffc0fe2c: 91 3f 00 14 stw r9,20(r31) <== NOT EXECUTED
ffc0fe30: 40 be 00 10 bne+ cr7,ffc0fe40 <fifo_open+0x3a0> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
ffc0fe34: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED
ffc0fe38: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED
ffc0fe3c: 48 00 0a 7d bl ffc108b8 <rtems_barrier_release> <== NOT EXECUTED
break;
}
PIPE_UNLOCK(pipe);
ffc0fe40: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED
ffc0fe44: 4b ff 80 ad bl ffc07ef0 <rtems_semaphore_release> <== NOT EXECUTED
return 0;
ffc0fe48: 48 00 00 14 b ffc0fe5c <fifo_open+0x3bc> <== NOT EXECUTED
ffc0fe4c: 3b a0 ff fc li r29,-4 <== NOT EXECUTED
out_error:
pipe_release(pipep, iop);
ffc0fe50: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED
ffc0fe54: 7f 64 db 78 mr r4,r27 <== NOT EXECUTED
ffc0fe58: 4b ff fb 29 bl ffc0f980 <pipe_release> <== NOT EXECUTED
return err;
}
ffc0fe5c: 80 01 00 34 lwz r0,52(r1)
ffc0fe60: 7f a3 eb 78 mr r3,r29
ffc0fe64: 83 41 00 18 lwz r26,24(r1)
ffc0fe68: 7c 08 03 a6 mtlr r0
ffc0fe6c: 83 61 00 1c lwz r27,28(r1)
ffc0fe70: 83 81 00 20 lwz r28,32(r1)
ffc0fe74: 83 a1 00 24 lwz r29,36(r1)
ffc0fe78: 83 c1 00 28 lwz r30,40(r1)
ffc0fe7c: 83 e1 00 2c lwz r31,44(r1)
ffc0fe80: 38 21 00 30 addi r1,r1,48
ffc0fe84: 4e 80 00 20 blr
ffc2ce58 <file_systems_below_this_mountpoint>:
/*
* Search the mount table for any mount entries referencing this
* mount entry.
*/
for ( the_node = rtems_filesystem_mount_table_control.first;
ffc2ce58: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc2ce5c: 3d 60 00 00 lis r11,0 <== NOT EXECUTED
ffc2ce60: 81 29 63 d0 lwz r9,25552(r9) <== NOT EXECUTED
ffc2ce64: 38 0b 63 d4 addi r0,r11,25556 <== NOT EXECUTED
ffc2ce68: 48 00 00 20 b ffc2ce88 <file_systems_below_this_mountpoint+0x30><== NOT EXECUTED
!rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node );
the_node = the_node->next ) {
the_mount_entry = ( rtems_filesystem_mount_table_entry_t * )the_node;
if (the_mount_entry->mt_point_node.mt_entry == fs_root_loc->mt_entry ) {
ffc2ce6c: 81 49 00 18 lwz r10,24(r9) <== NOT EXECUTED
ffc2ce70: 81 64 00 10 lwz r11,16(r4) <== NOT EXECUTED
ffc2ce74: 7f 8a 58 00 cmpw cr7,r10,r11 <== NOT EXECUTED
ffc2ce78: 40 be 00 0c bne+ cr7,ffc2ce84 <file_systems_below_this_mountpoint+0x2c><== NOT EXECUTED
ffc2ce7c: 38 60 00 01 li r3,1 <== NOT EXECUTED
ffc2ce80: 4e 80 00 20 blr <== NOT EXECUTED
* mount entry.
*/
for ( the_node = rtems_filesystem_mount_table_control.first;
!rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node );
the_node = the_node->next ) {
ffc2ce84: 81 29 00 00 lwz r9,0(r9) <== NOT EXECUTED
ffc2ce88: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED
ffc2ce8c: 40 9e ff e0 bne+ cr7,ffc2ce6c <file_systems_below_this_mountpoint+0x14><== NOT EXECUTED
ffc2ce90: 38 60 00 00 li r3,0 <== NOT EXECUTED
return true;
}
}
return false;
}
ffc2ce94: 4e 80 00 20 blr <== NOT EXECUTED
ffc04244 <free>:
void free(
void *ptr
)
{
MSBUMP(free_calls, 1);
ffc04244: 94 21 ff f0 stwu r1,-16(r1)
ffc04248: 7c 08 02 a6 mflr r0
ffc0424c: 3d 20 00 00 lis r9,0
ffc04250: 90 01 00 14 stw r0,20(r1)
ffc04254: 39 29 2b 00 addi r9,r9,11008
ffc04258: 93 e1 00 0c stw r31,12(r1)
if ( !ptr )
ffc0425c: 7c 7f 1b 79 mr. r31,r3
void free(
void *ptr
)
{
MSBUMP(free_calls, 1);
ffc04260: 81 69 00 0c lwz r11,12(r9)
ffc04264: 93 c1 00 08 stw r30,8(r1)
ffc04268: 38 0b 00 01 addi r0,r11,1
ffc0426c: 90 09 00 0c stw r0,12(r9)
if ( !ptr )
ffc04270: 41 82 00 84 beq- ffc042f4 <free+0xb0>
/*
* Do not attempt to free memory if in a critical section or ISR.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
ffc04274: 3d 20 00 00 lis r9,0
ffc04278: 80 09 27 d4 lwz r0,10196(r9)
ffc0427c: 2f 80 00 03 cmpwi cr7,r0,3
ffc04280: 40 be 00 1c bne+ cr7,ffc0429c <free+0x58>
ffc04284: 48 00 01 59 bl ffc043dc <malloc_is_system_state_OK>
ffc04288: 2f 83 00 00 cmpwi cr7,r3,0
ffc0428c: 40 be 00 10 bne+ cr7,ffc0429c <free+0x58>
!malloc_is_system_state_OK() ) {
malloc_deferred_free(ptr);
ffc04290: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc04294: 48 00 01 91 bl ffc04424 <malloc_deferred_free> <== NOT EXECUTED
return;
ffc04298: 48 00 00 5c b ffc042f4 <free+0xb0> <== NOT EXECUTED
#endif
/*
* If configured, update the statistics
*/
if ( rtems_malloc_statistics_helpers )
ffc0429c: 3d 20 00 00 lis r9,0
ffc042a0: 81 29 27 08 lwz r9,9992(r9)
ffc042a4: 2f 89 00 00 cmpwi cr7,r9,0
ffc042a8: 41 9e 00 14 beq- cr7,ffc042bc <free+0x78>
(*rtems_malloc_statistics_helpers->at_free)(ptr);
ffc042ac: 80 09 00 08 lwz r0,8(r9) <== NOT EXECUTED
ffc042b0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc042b4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc042b8: 4e 80 04 21 bctrl <== NOT EXECUTED
if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) {
ffc042bc: 3f c0 00 00 lis r30,0
ffc042c0: 80 7e 26 9c lwz r3,9884(r30)
ffc042c4: 7f e4 fb 78 mr r4,r31
ffc042c8: 48 00 5b 1d bl ffc09de4 <_Protected_heap_Free>
ffc042cc: 2f 83 00 00 cmpwi cr7,r3,0
ffc042d0: 40 be 00 24 bne+ cr7,ffc042f4 <free+0xb0>
printk( "Program heap: free of bad pointer %p -- range %p - %p \n",
ptr,
RTEMS_Malloc_Heap->area_begin,
ffc042d4: 81 3e 26 9c lwz r9,9884(r30) <== NOT EXECUTED
*/
if ( rtems_malloc_statistics_helpers )
(*rtems_malloc_statistics_helpers->at_free)(ptr);
if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) {
printk( "Program heap: free of bad pointer %p -- range %p - %p \n",
ffc042d8: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc042dc: 38 63 de 49 addi r3,r3,-8631 <== NOT EXECUTED
ffc042e0: 80 c9 00 1c lwz r6,28(r9) <== NOT EXECUTED
ffc042e4: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc042e8: 80 a9 00 18 lwz r5,24(r9) <== NOT EXECUTED
ffc042ec: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc042f0: 48 00 0f 2d bl ffc0521c <printk> <== NOT EXECUTED
RTEMS_Malloc_Heap->area_begin,
RTEMS_Malloc_Heap->area_end
);
}
}
ffc042f4: 80 01 00 14 lwz r0,20(r1)
ffc042f8: 83 c1 00 08 lwz r30,8(r1)
ffc042fc: 7c 08 03 a6 mtlr r0
ffc04300: 83 e1 00 0c lwz r31,12(r1)
ffc04304: 38 21 00 10 addi r1,r1,16
ffc04308: 4e 80 00 20 blr
ffc2c2f0 <free_user_env>:
* NOTE: this must be called with
* thread dispatching disabled!
*/
static void
free_user_env(void *venv)
{
ffc2c2f0: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED
ffc2c2f4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
rtems_user_env_t *env = (rtems_user_env_t*) venv ;
if (env != &rtems_global_user_env
ffc2c2f8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
* NOTE: this must be called with
* thread dispatching disabled!
*/
static void
free_user_env(void *venv)
{
ffc2c2fc: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED
rtems_user_env_t *env = (rtems_user_env_t*) venv ;
if (env != &rtems_global_user_env
ffc2c300: 38 09 63 dc addi r0,r9,25564 <== NOT EXECUTED
ffc2c304: 7f 83 00 00 cmpw cr7,r3,r0 <== NOT EXECUTED
* NOTE: this must be called with
* thread dispatching disabled!
*/
static void
free_user_env(void *venv)
{
ffc2c308: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED
ffc2c30c: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED
rtems_user_env_t *env = (rtems_user_env_t*) venv ;
if (env != &rtems_global_user_env
ffc2c310: 41 9e 00 54 beq- cr7,ffc2c364 <free_user_env+0x74> <== NOT EXECUTED
#ifdef HAVE_USERENV_REFCNT
&& --env->refcnt <= 0
#endif
) {
rtems_filesystem_freenode( &env->current_directory);
ffc2c314: 81 23 00 10 lwz r9,16(r3) <== NOT EXECUTED
ffc2c318: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc2c31c: 41 9e 00 1c beq- cr7,ffc2c338 <free_user_env+0x48> <== NOT EXECUTED
ffc2c320: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2c324: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2c328: 41 9e 00 10 beq- cr7,ffc2c338 <free_user_env+0x48> <== NOT EXECUTED
ffc2c32c: 38 63 00 04 addi r3,r3,4 <== NOT EXECUTED
ffc2c330: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2c334: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_filesystem_freenode( &env->root_directory);
ffc2c338: 81 3f 00 24 lwz r9,36(r31) <== NOT EXECUTED
ffc2c33c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc2c340: 41 9e 00 1c beq- cr7,ffc2c35c <free_user_env+0x6c> <== NOT EXECUTED
ffc2c344: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2c348: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2c34c: 41 9e 00 10 beq- cr7,ffc2c35c <free_user_env+0x6c> <== NOT EXECUTED
ffc2c350: 38 7f 00 18 addi r3,r31,24 <== NOT EXECUTED
ffc2c354: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2c358: 4e 80 04 21 bctrl <== NOT EXECUTED
free(env);
ffc2c35c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc2c360: 4b fd af 59 bl ffc072b8 <free> <== NOT EXECUTED
}
}
ffc2c364: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc2c368: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc2c36c: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc2c370: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2c374: 4e 80 00 20 blr <== NOT EXECUTED
ffc1c660 <fstat>:
int fstat(
int fd,
struct stat *sbuf
)
{
ffc1c660: 94 21 ff f0 stwu r1,-16(r1)
ffc1c664: 7c 08 02 a6 mflr r0
ffc1c668: 93 c1 00 08 stw r30,8(r1)
/*
* Check to see if we were passed a valid pointer.
*/
if ( !sbuf )
ffc1c66c: 7c 9e 23 79 mr. r30,r4
int fstat(
int fd,
struct stat *sbuf
)
{
ffc1c670: 90 01 00 14 stw r0,20(r1)
ffc1c674: 93 e1 00 0c stw r31,12(r1)
/*
* Check to see if we were passed a valid pointer.
*/
if ( !sbuf )
ffc1c678: 40 a2 00 10 bne+ ffc1c688 <fstat+0x28>
rtems_set_errno_and_return_minus_one( EFAULT );
ffc1c67c: 4b ff 55 49 bl ffc11bc4 <__errno>
ffc1c680: 38 00 00 0e li r0,14
ffc1c684: 48 00 00 38 b ffc1c6bc <fstat+0x5c>
/*
* Now process the stat() request.
*/
iop = rtems_libio_iop( fd );
ffc1c688: 3d 20 00 00 lis r9,0
ffc1c68c: 80 09 26 8c lwz r0,9868(r9)
ffc1c690: 7f 83 00 40 cmplw cr7,r3,r0
ffc1c694: 40 9c 00 20 bge- cr7,ffc1c6b4 <fstat+0x54>
ffc1c698: 3d 20 00 00 lis r9,0
ffc1c69c: 83 e9 27 4c lwz r31,10060(r9)
ffc1c6a0: 1c 63 00 48 mulli r3,r3,72
ffc1c6a4: 7f ff 1a 14 add r31,r31,r3
rtems_libio_check_fd( fd );
rtems_libio_check_is_open(iop);
ffc1c6a8: 80 1f 00 18 lwz r0,24(r31)
ffc1c6ac: 70 09 01 00 andi. r9,r0,256
ffc1c6b0: 40 a2 00 18 bne+ ffc1c6c8 <fstat+0x68>
/*
* Now process the stat() request.
*/
iop = rtems_libio_iop( fd );
rtems_libio_check_fd( fd );
ffc1c6b4: 4b ff 55 11 bl ffc11bc4 <__errno>
ffc1c6b8: 38 00 00 09 li r0,9
ffc1c6bc: 90 03 00 00 stw r0,0(r3)
ffc1c6c0: 38 60 ff ff li r3,-1
ffc1c6c4: 48 00 00 50 b ffc1c714 <fstat+0xb4>
rtems_libio_check_is_open(iop);
if ( !iop->handlers )
ffc1c6c8: 81 3f 00 40 lwz r9,64(r31)
ffc1c6cc: 2f 89 00 00 cmpwi cr7,r9,0
ffc1c6d0: 41 be ff e4 beq- cr7,ffc1c6b4 <fstat+0x54>
rtems_set_errno_and_return_minus_one( EBADF );
if ( !iop->handlers->fstat_h )
ffc1c6d4: 80 09 00 18 lwz r0,24(r9)
ffc1c6d8: 2f 80 00 00 cmpwi cr7,r0,0
ffc1c6dc: 40 be 00 10 bne+ cr7,ffc1c6ec <fstat+0x8c>
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc1c6e0: 4b ff 54 e5 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc1c6e4: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc1c6e8: 4b ff ff d4 b ffc1c6bc <fstat+0x5c> <== NOT EXECUTED
/*
* Zero out the stat structure so the various support
* versions of stat don't have to.
*/
memset( sbuf, 0, sizeof(struct stat) );
ffc1c6ec: 38 80 00 00 li r4,0
ffc1c6f0: 38 a0 00 48 li r5,72
ffc1c6f4: 7f c3 f3 78 mr r3,r30
ffc1c6f8: 4b ff 61 b5 bl ffc128ac <memset>
return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf );
ffc1c6fc: 81 3f 00 40 lwz r9,64(r31)
ffc1c700: 38 7f 00 1c addi r3,r31,28
ffc1c704: 80 09 00 18 lwz r0,24(r9)
ffc1c708: 7f c4 f3 78 mr r4,r30
ffc1c70c: 7c 09 03 a6 mtctr r0
ffc1c710: 4e 80 04 21 bctrl
}
ffc1c714: 80 01 00 14 lwz r0,20(r1)
ffc1c718: 83 c1 00 08 lwz r30,8(r1)
ffc1c71c: 7c 08 03 a6 mtlr r0
ffc1c720: 83 e1 00 0c lwz r31,12(r1)
ffc1c724: 38 21 00 10 addi r1,r1,16
ffc1c728: 4e 80 00 20 blr
ffc2acfc <fsync>:
#include <rtems/seterr.h>
int fsync(
int fd
)
{
ffc2acfc: 7c 08 02 a6 mflr r0
ffc2ad00: 94 21 ff f8 stwu r1,-8(r1)
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
ffc2ad04: 3d 20 00 00 lis r9,0
#include <rtems/seterr.h>
int fsync(
int fd
)
{
ffc2ad08: 90 01 00 0c stw r0,12(r1)
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
ffc2ad0c: 80 09 34 cc lwz r0,13516(r9)
ffc2ad10: 7f 83 00 40 cmplw cr7,r3,r0
ffc2ad14: 40 9c 00 40 bge- cr7,ffc2ad54 <fsync+0x58>
iop = rtems_libio_iop( fd );
ffc2ad18: 3d 20 00 00 lis r9,0
ffc2ad1c: 80 09 35 f4 lwz r0,13812(r9)
ffc2ad20: 1c 63 00 48 mulli r3,r3,72
ffc2ad24: 7c 60 1a 14 add r3,r0,r3
rtems_libio_check_is_open(iop);
ffc2ad28: 80 03 00 18 lwz r0,24(r3)
ffc2ad2c: 70 09 01 00 andi. r9,r0,256
ffc2ad30: 41 82 00 24 beq- ffc2ad54 <fsync+0x58>
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
ffc2ad34: 70 09 00 04 andi. r9,r0,4
ffc2ad38: 40 a2 00 10 bne+ ffc2ad48 <fsync+0x4c>
ffc2ad3c: 48 01 c9 35 bl ffc47670 <__errno>
ffc2ad40: 38 00 00 16 li r0,22
ffc2ad44: 48 00 00 30 b ffc2ad74 <fsync+0x78>
/*
* Now process the fsync().
*/
if ( !iop->handlers )
ffc2ad48: 81 23 00 40 lwz r9,64(r3)
ffc2ad4c: 2f 89 00 00 cmpwi cr7,r9,0
ffc2ad50: 40 be 00 10 bne+ cr7,ffc2ad60 <fsync+0x64>
rtems_set_errno_and_return_minus_one( EBADF );
ffc2ad54: 48 01 c9 1d bl ffc47670 <__errno> <== NOT EXECUTED
ffc2ad58: 38 00 00 09 li r0,9 <== NOT EXECUTED
ffc2ad5c: 48 00 00 18 b ffc2ad74 <fsync+0x78> <== NOT EXECUTED
if ( !iop->handlers->fsync_h )
ffc2ad60: 80 09 00 28 lwz r0,40(r9)
ffc2ad64: 2f 80 00 00 cmpwi cr7,r0,0
ffc2ad68: 40 be 00 18 bne+ cr7,ffc2ad80 <fsync+0x84>
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc2ad6c: 48 01 c9 05 bl ffc47670 <__errno>
ffc2ad70: 38 00 00 86 li r0,134
ffc2ad74: 90 03 00 00 stw r0,0(r3)
ffc2ad78: 38 60 ff ff li r3,-1
ffc2ad7c: 48 00 00 0c b ffc2ad88 <fsync+0x8c>
return (*iop->handlers->fsync_h)( iop );
ffc2ad80: 7c 09 03 a6 mtctr r0
ffc2ad84: 4e 80 04 21 bctrl
}
ffc2ad88: 80 01 00 0c lwz r0,12(r1)
ffc2ad8c: 38 21 00 08 addi r1,r1,8
ffc2ad90: 7c 08 03 a6 mtlr r0
ffc2ad94: 4e 80 00 20 blr
ffc0d208 <ftruncate>:
int ftruncate(
int fd,
off_t length
)
{
ffc0d208: 94 21 ff c8 stwu r1,-56(r1)
ffc0d20c: 7c 08 02 a6 mflr r0
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc;
rtems_libio_check_fd( fd );
ffc0d210: 3d 20 00 00 lis r9,0
int ftruncate(
int fd,
off_t length
)
{
ffc0d214: 90 01 00 3c stw r0,60(r1)
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc;
rtems_libio_check_fd( fd );
ffc0d218: 80 09 26 8c lwz r0,9868(r9)
int ftruncate(
int fd,
off_t length
)
{
ffc0d21c: 93 a1 00 2c stw r29,44(r1)
ffc0d220: 7c bd 2b 78 mr r29,r5
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc;
rtems_libio_check_fd( fd );
ffc0d224: 7f 83 00 40 cmplw cr7,r3,r0
int ftruncate(
int fd,
off_t length
)
{
ffc0d228: 93 c1 00 30 stw r30,48(r1)
ffc0d22c: 7c de 33 78 mr r30,r6
ffc0d230: 93 e1 00 34 stw r31,52(r1)
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc;
rtems_libio_check_fd( fd );
ffc0d234: 40 9c 00 20 bge- cr7,ffc0d254 <ftruncate+0x4c>
iop = rtems_libio_iop( fd );
ffc0d238: 3d 20 00 00 lis r9,0
ffc0d23c: 83 e9 27 4c lwz r31,10060(r9)
ffc0d240: 1c 63 00 48 mulli r3,r3,72
ffc0d244: 7f ff 1a 14 add r31,r31,r3
rtems_libio_check_is_open(iop);
ffc0d248: 80 1f 00 18 lwz r0,24(r31)
ffc0d24c: 70 09 01 00 andi. r9,r0,256
ffc0d250: 40 a2 00 10 bne+ ffc0d260 <ftruncate+0x58>
ffc0d254: 48 00 49 71 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc0d258: 38 00 00 09 li r0,9 <== NOT EXECUTED
ffc0d25c: 48 00 00 88 b ffc0d2e4 <ftruncate+0xdc> <== NOT EXECUTED
/*
* Make sure we are not working on a directory
*/
loc = iop->pathinfo;
ffc0d260: 81 3f 00 28 lwz r9,40(r31)
ffc0d264: 81 1f 00 1c lwz r8,28(r31)
if ( !loc.ops->node_type_h )
ffc0d268: 80 09 00 10 lwz r0,16(r9)
/*
* Make sure we are not working on a directory
*/
loc = iop->pathinfo;
ffc0d26c: 81 5f 00 20 lwz r10,32(r31)
ffc0d270: 81 7f 00 24 lwz r11,36(r31)
if ( !loc.ops->node_type_h )
ffc0d274: 2f 80 00 00 cmpwi cr7,r0,0
/*
* Make sure we are not working on a directory
*/
loc = iop->pathinfo;
ffc0d278: 91 01 00 08 stw r8,8(r1)
ffc0d27c: 91 41 00 0c stw r10,12(r1)
ffc0d280: 91 61 00 10 stw r11,16(r1)
ffc0d284: 91 21 00 14 stw r9,20(r1)
ffc0d288: 81 3f 00 2c lwz r9,44(r31)
ffc0d28c: 91 21 00 18 stw r9,24(r1)
if ( !loc.ops->node_type_h )
ffc0d290: 41 9e 00 4c beq- cr7,ffc0d2dc <ftruncate+0xd4>
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY )
ffc0d294: 38 61 00 08 addi r3,r1,8
ffc0d298: 7c 09 03 a6 mtctr r0
ffc0d29c: 4e 80 04 21 bctrl
ffc0d2a0: 2f 83 00 01 cmpwi cr7,r3,1
ffc0d2a4: 40 be 00 10 bne+ cr7,ffc0d2b4 <ftruncate+0xac>
rtems_set_errno_and_return_minus_one( EISDIR );
ffc0d2a8: 48 00 49 1d bl ffc11bc4 <__errno>
ffc0d2ac: 38 00 00 15 li r0,21
ffc0d2b0: 48 00 00 34 b ffc0d2e4 <ftruncate+0xdc>
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
ffc0d2b4: 80 1f 00 18 lwz r0,24(r31)
ffc0d2b8: 70 09 00 04 andi. r9,r0,4
ffc0d2bc: 40 a2 00 10 bne+ ffc0d2cc <ftruncate+0xc4>
ffc0d2c0: 48 00 49 05 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc0d2c4: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc0d2c8: 48 00 00 1c b ffc0d2e4 <ftruncate+0xdc> <== NOT EXECUTED
if ( !iop->handlers->ftruncate_h )
ffc0d2cc: 81 3f 00 40 lwz r9,64(r31)
ffc0d2d0: 80 09 00 20 lwz r0,32(r9)
ffc0d2d4: 2f 80 00 00 cmpwi cr7,r0,0
ffc0d2d8: 40 be 00 18 bne+ cr7,ffc0d2f0 <ftruncate+0xe8>
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc0d2dc: 48 00 48 e9 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc0d2e0: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc0d2e4: 90 03 00 00 stw r0,0(r3)
ffc0d2e8: 38 60 ff ff li r3,-1
ffc0d2ec: 48 00 00 18 b ffc0d304 <ftruncate+0xfc>
return (*iop->handlers->ftruncate_h)( iop, length );
ffc0d2f0: 7f e3 fb 78 mr r3,r31
ffc0d2f4: 7c 09 03 a6 mtctr r0
ffc0d2f8: 7f a5 eb 78 mr r5,r29
ffc0d2fc: 7f c6 f3 78 mr r6,r30
ffc0d300: 4e 80 04 21 bctrl
}
ffc0d304: 80 01 00 3c lwz r0,60(r1)
ffc0d308: 83 a1 00 2c lwz r29,44(r1)
ffc0d30c: 7c 08 03 a6 mtlr r0
ffc0d310: 83 c1 00 30 lwz r30,48(r1)
ffc0d314: 83 e1 00 34 lwz r31,52(r1)
ffc0d318: 38 21 00 38 addi r1,r1,56
ffc0d31c: 4e 80 00 20 blr
ffc62480 <getdents>:
int getdents(
int dd_fd,
char *dd_buf,
int dd_len
)
{
ffc62480: 94 21 ff c8 stwu r1,-56(r1)
ffc62484: 7c 08 02 a6 mflr r0
/*
* Get the file control block structure associated with the file descriptor
*/
iop = rtems_libio_iop( dd_fd );
ffc62488: 3d 20 00 00 lis r9,0
int getdents(
int dd_fd,
char *dd_buf,
int dd_len
)
{
ffc6248c: 90 01 00 3c stw r0,60(r1)
/*
* Get the file control block structure associated with the file descriptor
*/
iop = rtems_libio_iop( dd_fd );
ffc62490: 80 09 34 cc lwz r0,13516(r9)
int getdents(
int dd_fd,
char *dd_buf,
int dd_len
)
{
ffc62494: 93 e1 00 34 stw r31,52(r1)
/*
* Get the file control block structure associated with the file descriptor
*/
iop = rtems_libio_iop( dd_fd );
ffc62498: 3b e0 00 00 li r31,0
ffc6249c: 7f 83 00 40 cmplw cr7,r3,r0
ffc624a0: 40 9c 00 14 bge- cr7,ffc624b4 <getdents+0x34>
ffc624a4: 3d 60 00 00 lis r11,0
ffc624a8: 1d 23 00 48 mulli r9,r3,72
ffc624ac: 83 eb 35 f4 lwz r31,13812(r11)
ffc624b0: 7f ff 4a 14 add r31,r31,r9
/*
* Make sure we are working on a directory
*/
loc = iop->pathinfo;
ffc624b4: 81 3f 00 28 lwz r9,40(r31)
ffc624b8: 81 1f 00 1c lwz r8,28(r31)
if ( !loc.ops->node_type_h )
ffc624bc: 80 09 00 10 lwz r0,16(r9)
iop = rtems_libio_iop( dd_fd );
/*
* Make sure we are working on a directory
*/
loc = iop->pathinfo;
ffc624c0: 81 5f 00 20 lwz r10,32(r31)
ffc624c4: 81 7f 00 24 lwz r11,36(r31)
if ( !loc.ops->node_type_h )
ffc624c8: 2f 80 00 00 cmpwi cr7,r0,0
iop = rtems_libio_iop( dd_fd );
/*
* Make sure we are working on a directory
*/
loc = iop->pathinfo;
ffc624cc: 91 01 00 08 stw r8,8(r1)
ffc624d0: 91 41 00 0c stw r10,12(r1)
ffc624d4: 91 61 00 10 stw r11,16(r1)
ffc624d8: 91 21 00 14 stw r9,20(r1)
ffc624dc: 81 3f 00 2c lwz r9,44(r31)
ffc624e0: 91 21 00 18 stw r9,24(r1)
if ( !loc.ops->node_type_h )
ffc624e4: 41 9e 00 4c beq- cr7,ffc62530 <getdents+0xb0>
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
ffc624e8: 90 81 00 28 stw r4,40(r1)
ffc624ec: 38 61 00 08 addi r3,r1,8
ffc624f0: 7c 09 03 a6 mtctr r0
ffc624f4: 90 a1 00 2c stw r5,44(r1)
ffc624f8: 4e 80 04 21 bctrl
ffc624fc: 80 81 00 28 lwz r4,40(r1)
ffc62500: 2f 83 00 01 cmpwi cr7,r3,1
ffc62504: 80 a1 00 2c lwz r5,44(r1)
ffc62508: 41 be 00 18 beq+ cr7,ffc62520 <getdents+0xa0>
rtems_set_errno_and_return_minus_one( ENOTDIR );
ffc6250c: 4b fe 51 65 bl ffc47670 <__errno>
ffc62510: 38 00 00 14 li r0,20
ffc62514: 90 03 00 00 stw r0,0(r3)
ffc62518: 38 60 ff ff li r3,-1
ffc6251c: 48 00 00 2c b ffc62548 <getdents+0xc8>
/*
* Return the number of bytes that were actually transfered as a result
* of the read attempt.
*/
if ( !iop->handlers->read_h )
ffc62520: 81 3f 00 40 lwz r9,64(r31)
ffc62524: 80 09 00 08 lwz r0,8(r9)
ffc62528: 2f 80 00 00 cmpwi cr7,r0,0
ffc6252c: 40 be 00 10 bne+ cr7,ffc6253c <getdents+0xbc>
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc62530: 4b fe 51 41 bl ffc47670 <__errno> <== NOT EXECUTED
ffc62534: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc62538: 4b ff ff dc b ffc62514 <getdents+0x94> <== NOT EXECUTED
return (*iop->handlers->read_h)( iop, dd_buf, dd_len );
ffc6253c: 7f e3 fb 78 mr r3,r31
ffc62540: 7c 09 03 a6 mtctr r0
ffc62544: 4e 80 04 21 bctrl
}
ffc62548: 80 01 00 3c lwz r0,60(r1)
ffc6254c: 83 e1 00 34 lwz r31,52(r1)
ffc62550: 38 21 00 38 addi r1,r1,56
ffc62554: 7c 08 03 a6 mtlr r0
ffc62558: 4e 80 00 20 blr
ffc2aed0 <getgid>:
* 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
* P1003.1b-1993, p. 84
*/
gid_t getgid( void )
{
ffc2aed0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc2aed4: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED
return _POSIX_types_Gid;
}
ffc2aed8: a0 69 00 34 lhz r3,52(r9) <== NOT EXECUTED
ffc2aedc: 4e 80 00 20 blr <== NOT EXECUTED
ffc2b68c <getgr_r>:
struct group *grp,
char *buffer,
size_t bufsize,
struct group **result
)
{
ffc2b68c: 94 21 ff d8 stwu r1,-40(r1)
ffc2b690: 7d 80 00 26 mfcr r12
ffc2b694: 7c 08 02 a6 mflr r0
ffc2b698: 93 21 00 0c stw r25,12(r1)
ffc2b69c: 7d 19 43 78 mr r25,r8
ffc2b6a0: 90 01 00 2c stw r0,44(r1)
ffc2b6a4: 93 41 00 10 stw r26,16(r1)
ffc2b6a8: 93 61 00 14 stw r27,20(r1)
ffc2b6ac: 7c fb 3b 78 mr r27,r7
ffc2b6b0: 93 81 00 18 stw r28,24(r1)
ffc2b6b4: 7c dc 33 78 mr r28,r6
ffc2b6b8: 93 a1 00 1c stw r29,28(r1)
ffc2b6bc: 7c 9d 23 78 mr r29,r4
ffc2b6c0: 93 c1 00 20 stw r30,32(r1)
ffc2b6c4: 7c 7e 1b 78 mr r30,r3
ffc2b6c8: 93 e1 00 24 stw r31,36(r1)
ffc2b6cc: 7c bf 2b 78 mr r31,r5
ffc2b6d0: 91 81 00 08 stw r12,8(r1)
FILE *fp;
int match;
init_etc_passwd_group();
ffc2b6d4: 4b ff fe 79 bl ffc2b54c <init_etc_passwd_group>
if ((fp = fopen("/etc/group", "r")) == NULL) {
ffc2b6d8: 3c 60 ff c6 lis r3,-58
ffc2b6dc: 3c 80 ff c6 lis r4,-58
ffc2b6e0: 38 63 35 20 addi r3,r3,13600
ffc2b6e4: 38 84 4d 78 addi r4,r4,19832
ffc2b6e8: 48 01 cc 55 bl ffc4833c <fopen>
ffc2b6ec: 7c 7a 1b 79 mr. r26,r3
ffc2b6f0: 40 a2 00 14 bne+ ffc2b704 <getgr_r+0x78>
errno = EINVAL;
ffc2b6f4: 48 01 bf 7d bl ffc47670 <__errno> <== NOT EXECUTED
ffc2b6f8: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc2b6fc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc2b700: 48 00 00 3c b ffc2b73c <getgr_r+0xb0> <== NOT EXECUTED
if (!scangr(fp, grp, buffer, bufsize)) {
errno = EINVAL;
fclose(fp);
return -1;
}
if (name) {
ffc2b704: 2e 1e 00 00 cmpwi cr4,r30,0
if ((fp = fopen("/etc/group", "r")) == NULL) {
errno = EINVAL;
return -1;
}
for(;;) {
if (!scangr(fp, grp, buffer, bufsize)) {
ffc2b708: 7f e4 fb 78 mr r4,r31
ffc2b70c: 7f 85 e3 78 mr r5,r28
ffc2b710: 7f 66 db 78 mr r6,r27
ffc2b714: 7f 43 d3 78 mr r3,r26
ffc2b718: 4b ff fa b9 bl ffc2b1d0 <scangr>
errno = EINVAL;
fclose(fp);
return -1;
}
if (name) {
match = (strcmp(grp->gr_name, name) == 0);
ffc2b71c: 7f c4 f3 78 mr r4,r30
if ((fp = fopen("/etc/group", "r")) == NULL) {
errno = EINVAL;
return -1;
}
for(;;) {
if (!scangr(fp, grp, buffer, bufsize)) {
ffc2b720: 2f 83 00 00 cmpwi cr7,r3,0
ffc2b724: 40 be 00 20 bne+ cr7,ffc2b744 <getgr_r+0xb8>
errno = EINVAL;
ffc2b728: 48 01 bf 49 bl ffc47670 <__errno> <== NOT EXECUTED
ffc2b72c: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc2b730: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
fclose(fp);
ffc2b734: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED
ffc2b738: 48 01 c0 d9 bl ffc47810 <fclose> <== NOT EXECUTED
ffc2b73c: 38 60 ff ff li r3,-1 <== NOT EXECUTED
return -1;
ffc2b740: 48 00 00 3c b ffc2b77c <getgr_r+0xf0> <== NOT EXECUTED
}
if (name) {
ffc2b744: 41 92 00 10 beq- cr4,ffc2b754 <getgr_r+0xc8>
match = (strcmp(grp->gr_name, name) == 0);
ffc2b748: 80 7f 00 00 lwz r3,0(r31)
ffc2b74c: 48 02 37 19 bl ffc4ee64 <strcmp>
ffc2b750: 48 00 00 0c b ffc2b75c <getgr_r+0xd0>
}
else {
match = (grp->gr_gid == gid);
ffc2b754: a0 7f 00 08 lhz r3,8(r31) <== NOT EXECUTED
ffc2b758: 7c 63 ea 78 xor r3,r3,r29 <== NOT EXECUTED
ffc2b75c: 7c 63 00 34 cntlzw r3,r3
ffc2b760: 54 63 d9 7e rlwinm r3,r3,27,5,31
}
if (match) {
ffc2b764: 2f 83 00 00 cmpwi cr7,r3,0
ffc2b768: 41 9e ff a0 beq+ cr7,ffc2b708 <getgr_r+0x7c>
fclose(fp);
ffc2b76c: 7f 43 d3 78 mr r3,r26
ffc2b770: 48 01 c0 a1 bl ffc47810 <fclose>
*result = grp;
ffc2b774: 93 f9 00 00 stw r31,0(r25)
ffc2b778: 38 60 00 00 li r3,0
}
}
fclose(fp);
errno = EINVAL;
return -1;
}
ffc2b77c: 80 01 00 2c lwz r0,44(r1)
ffc2b780: 81 81 00 08 lwz r12,8(r1)
ffc2b784: 7c 08 03 a6 mtlr r0
ffc2b788: 83 21 00 0c lwz r25,12(r1)
ffc2b78c: 83 41 00 10 lwz r26,16(r1)
ffc2b790: 7d 80 81 20 mtcrf 8,r12
ffc2b794: 83 61 00 14 lwz r27,20(r1)
ffc2b798: 83 81 00 18 lwz r28,24(r1)
ffc2b79c: 83 a1 00 1c lwz r29,28(r1)
ffc2b7a0: 83 c1 00 20 lwz r30,32(r1)
ffc2b7a4: 83 e1 00 24 lwz r31,36(r1)
ffc2b7a8: 38 21 00 28 addi r1,r1,40
ffc2b7ac: 4e 80 00 20 blr
ffc2b344 <getgrent>:
return p;
}
struct group *getgrent(void)
{
if (group_fp == NULL)
ffc2b344: 3c a0 00 00 lis r5,0 <== NOT EXECUTED
return NULL;
return p;
}
struct group *getgrent(void)
{
ffc2b348: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED
ffc2b34c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
if (group_fp == NULL)
ffc2b350: 80 65 5f 74 lwz r3,24436(r5) <== NOT EXECUTED
ffc2b354: 38 a5 5f 74 addi r5,r5,24436 <== NOT EXECUTED
return NULL;
return p;
}
struct group *getgrent(void)
{
ffc2b358: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED
if (group_fp == NULL)
ffc2b35c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
return NULL;
return p;
}
struct group *getgrent(void)
{
ffc2b360: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED
if (group_fp == NULL)
ffc2b364: 41 be 00 24 beq+ cr7,ffc2b388 <getgrent+0x44> <== NOT EXECUTED
return NULL;
if (!scangr(group_fp, &grent, grbuf, sizeof grbuf))
ffc2b368: 3b e5 00 08 addi r31,r5,8 <== NOT EXECUTED
ffc2b36c: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc2b370: 38 a5 00 18 addi r5,r5,24 <== NOT EXECUTED
ffc2b374: 38 c0 00 c8 li r6,200 <== NOT EXECUTED
ffc2b378: 4b ff fe 59 bl ffc2b1d0 <scangr> <== NOT EXECUTED
ffc2b37c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc2b380: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc2b384: 40 be 00 08 bne+ cr7,ffc2b38c <getgrent+0x48> <== NOT EXECUTED
ffc2b388: 38 60 00 00 li r3,0 <== NOT EXECUTED
return NULL;
return &grent;
}
ffc2b38c: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc2b390: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc2b394: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc2b398: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2b39c: 4e 80 00 20 blr <== NOT EXECUTED
ffc2b7d8 <getgrgid>:
}
struct group *getgrgid(
gid_t gid
)
{
ffc2b7d8: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED
struct group *p;
if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p))
ffc2b7dc: 3c 80 00 00 lis r4,0 <== NOT EXECUTED
}
struct group *getgrgid(
gid_t gid
)
{
ffc2b7e0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
struct group *p;
if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p))
ffc2b7e4: 38 84 5f 74 addi r4,r4,24436 <== NOT EXECUTED
ffc2b7e8: 38 a4 00 18 addi r5,r4,24 <== NOT EXECUTED
ffc2b7ec: 38 c0 00 c8 li r6,200 <== NOT EXECUTED
}
struct group *getgrgid(
gid_t gid
)
{
ffc2b7f0: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED
struct group *p;
if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p))
ffc2b7f4: 38 84 00 08 addi r4,r4,8 <== NOT EXECUTED
ffc2b7f8: 38 e1 00 08 addi r7,r1,8 <== NOT EXECUTED
ffc2b7fc: 4b ff ff b5 bl ffc2b7b0 <getgrgid_r> <== NOT EXECUTED
ffc2b800: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc2b804: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc2b808: 40 9e 00 08 bne- cr7,ffc2b810 <getgrgid+0x38> <== NOT EXECUTED
return NULL;
return p;
ffc2b80c: 80 61 00 08 lwz r3,8(r1) <== NOT EXECUTED
}
ffc2b810: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED
ffc2b814: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED
ffc2b818: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2b81c: 4e 80 00 20 blr <== NOT EXECUTED
ffc2b7b0 <getgrgid_r>:
struct group *grp,
char *buffer,
size_t bufsize,
struct group **result
)
{
ffc2b7b0: 7c 8b 23 78 mr r11,r4 <== NOT EXECUTED
ffc2b7b4: 7c a9 2b 78 mr r9,r5 <== NOT EXECUTED
ffc2b7b8: 7c c0 33 78 mr r0,r6 <== NOT EXECUTED
ffc2b7bc: 7c e8 3b 78 mr r8,r7 <== NOT EXECUTED
return getgr_r(NULL, gid, grp, buffer, bufsize, result);
ffc2b7c0: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED
ffc2b7c4: 7d 65 5b 78 mr r5,r11 <== NOT EXECUTED
ffc2b7c8: 7d 26 4b 78 mr r6,r9 <== NOT EXECUTED
ffc2b7cc: 7c 07 03 78 mr r7,r0 <== NOT EXECUTED
ffc2b7d0: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc2b7d4: 4b ff fe b8 b ffc2b68c <getgr_r> <== NOT EXECUTED
ffc2b8d8 <getpw_r>:
struct passwd *pwd,
char *buffer,
size_t bufsize,
struct passwd **result
)
{
ffc2b8d8: 94 21 ff d8 stwu r1,-40(r1)
ffc2b8dc: 7d 80 00 26 mfcr r12
ffc2b8e0: 7c 08 02 a6 mflr r0
ffc2b8e4: 93 21 00 0c stw r25,12(r1)
ffc2b8e8: 7d 19 43 78 mr r25,r8
ffc2b8ec: 90 01 00 2c stw r0,44(r1)
ffc2b8f0: 93 41 00 10 stw r26,16(r1)
ffc2b8f4: 93 61 00 14 stw r27,20(r1)
ffc2b8f8: 7c fb 3b 78 mr r27,r7
ffc2b8fc: 93 81 00 18 stw r28,24(r1)
ffc2b900: 7c dc 33 78 mr r28,r6
ffc2b904: 93 a1 00 1c stw r29,28(r1)
ffc2b908: 7c 9d 23 78 mr r29,r4
ffc2b90c: 93 c1 00 20 stw r30,32(r1)
ffc2b910: 7c 7e 1b 78 mr r30,r3
ffc2b914: 93 e1 00 24 stw r31,36(r1)
ffc2b918: 7c bf 2b 78 mr r31,r5
ffc2b91c: 91 81 00 08 stw r12,8(r1)
FILE *fp;
int match;
init_etc_passwd_group();
ffc2b920: 4b ff fc 2d bl ffc2b54c <init_etc_passwd_group>
if ((fp = fopen("/etc/passwd", "r")) == NULL) {
ffc2b924: 3c 60 ff c6 lis r3,-58
ffc2b928: 3c 80 ff c6 lis r4,-58
ffc2b92c: 38 63 34 72 addi r3,r3,13426
ffc2b930: 38 84 4d 78 addi r4,r4,19832
ffc2b934: 48 01 ca 09 bl ffc4833c <fopen>
ffc2b938: 7c 7a 1b 79 mr. r26,r3
ffc2b93c: 40 a2 00 14 bne+ ffc2b950 <getpw_r+0x78>
errno = EINVAL;
ffc2b940: 48 01 bd 31 bl ffc47670 <__errno> <== NOT EXECUTED
ffc2b944: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc2b948: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc2b94c: 48 00 00 3c b ffc2b988 <getpw_r+0xb0> <== NOT EXECUTED
if (!scanpw(fp, pwd, buffer, bufsize)) {
errno = EINVAL;
fclose(fp);
return -1;
}
if (name) {
ffc2b950: 2e 1e 00 00 cmpwi cr4,r30,0
if ((fp = fopen("/etc/passwd", "r")) == NULL) {
errno = EINVAL;
return -1;
}
for(;;) {
if (!scanpw(fp, pwd, buffer, bufsize)) {
ffc2b954: 7f e4 fb 78 mr r4,r31
ffc2b958: 7f 85 e3 78 mr r5,r28
ffc2b95c: 7f 66 db 78 mr r6,r27
ffc2b960: 7f 43 d3 78 mr r3,r26
ffc2b964: 4b ff fa 3d bl ffc2b3a0 <scanpw>
errno = EINVAL;
fclose(fp);
return -1;
}
if (name) {
match = (strcmp(pwd->pw_name, name) == 0);
ffc2b968: 7f c4 f3 78 mr r4,r30
if ((fp = fopen("/etc/passwd", "r")) == NULL) {
errno = EINVAL;
return -1;
}
for(;;) {
if (!scanpw(fp, pwd, buffer, bufsize)) {
ffc2b96c: 2f 83 00 00 cmpwi cr7,r3,0
ffc2b970: 40 be 00 20 bne+ cr7,ffc2b990 <getpw_r+0xb8>
errno = EINVAL;
ffc2b974: 48 01 bc fd bl ffc47670 <__errno> <== NOT EXECUTED
ffc2b978: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc2b97c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
fclose(fp);
ffc2b980: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED
ffc2b984: 48 01 be 8d bl ffc47810 <fclose> <== NOT EXECUTED
ffc2b988: 38 60 ff ff li r3,-1 <== NOT EXECUTED
return -1;
ffc2b98c: 48 00 00 3c b ffc2b9c8 <getpw_r+0xf0> <== NOT EXECUTED
}
if (name) {
ffc2b990: 41 92 00 10 beq- cr4,ffc2b9a0 <getpw_r+0xc8>
match = (strcmp(pwd->pw_name, name) == 0);
ffc2b994: 80 7f 00 00 lwz r3,0(r31)
ffc2b998: 48 02 34 cd bl ffc4ee64 <strcmp>
ffc2b99c: 48 00 00 0c b ffc2b9a8 <getpw_r+0xd0>
}
else {
match = (pwd->pw_uid == uid);
ffc2b9a0: a0 7f 00 08 lhz r3,8(r31) <== NOT EXECUTED
ffc2b9a4: 7c 63 ea 78 xor r3,r3,r29 <== NOT EXECUTED
ffc2b9a8: 7c 63 00 34 cntlzw r3,r3
ffc2b9ac: 54 63 d9 7e rlwinm r3,r3,27,5,31
}
if (match) {
ffc2b9b0: 2f 83 00 00 cmpwi cr7,r3,0
ffc2b9b4: 41 9e ff a0 beq+ cr7,ffc2b954 <getpw_r+0x7c>
fclose(fp);
ffc2b9b8: 7f 43 d3 78 mr r3,r26
ffc2b9bc: 48 01 be 55 bl ffc47810 <fclose>
*result = pwd;
ffc2b9c0: 93 f9 00 00 stw r31,0(r25)
ffc2b9c4: 38 60 00 00 li r3,0
}
}
fclose(fp);
errno = EINVAL;
return -1;
}
ffc2b9c8: 80 01 00 2c lwz r0,44(r1)
ffc2b9cc: 81 81 00 08 lwz r12,8(r1)
ffc2b9d0: 7c 08 03 a6 mtlr r0
ffc2b9d4: 83 21 00 0c lwz r25,12(r1)
ffc2b9d8: 83 41 00 10 lwz r26,16(r1)
ffc2b9dc: 7d 80 81 20 mtcrf 8,r12
ffc2b9e0: 83 61 00 14 lwz r27,20(r1)
ffc2b9e4: 83 81 00 18 lwz r28,24(r1)
ffc2b9e8: 83 a1 00 1c lwz r29,28(r1)
ffc2b9ec: 83 c1 00 20 lwz r30,32(r1)
ffc2b9f0: 83 e1 00 24 lwz r31,36(r1)
ffc2b9f4: 38 21 00 28 addi r1,r1,40
ffc2b9f8: 4e 80 00 20 blr
ffc2b4f0 <getpwent>:
return NULL;
return p;
}
struct passwd *getpwent(void)
{
ffc2b4f0: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED
ffc2b4f4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
if (passwd_fp == NULL)
ffc2b4f8: 3c a0 00 00 lis r5,0 <== NOT EXECUTED
return NULL;
return p;
}
struct passwd *getpwent(void)
{
ffc2b4fc: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED
if (passwd_fp == NULL)
ffc2b500: 38 a5 5f 74 addi r5,r5,24436 <== NOT EXECUTED
ffc2b504: 80 65 00 04 lwz r3,4(r5) <== NOT EXECUTED
return NULL;
return p;
}
struct passwd *getpwent(void)
{
ffc2b508: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED
if (passwd_fp == NULL)
ffc2b50c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc2b510: 41 be 00 24 beq+ cr7,ffc2b534 <getpwent+0x44> <== NOT EXECUTED
return NULL;
if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf))
ffc2b514: 3b e5 00 e0 addi r31,r5,224 <== NOT EXECUTED
ffc2b518: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc2b51c: 38 a5 00 fc addi r5,r5,252 <== NOT EXECUTED
ffc2b520: 38 c0 00 c8 li r6,200 <== NOT EXECUTED
ffc2b524: 4b ff fe 7d bl ffc2b3a0 <scanpw> <== NOT EXECUTED
ffc2b528: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc2b52c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc2b530: 40 be 00 08 bne+ cr7,ffc2b538 <getpwent+0x48> <== NOT EXECUTED
ffc2b534: 38 60 00 00 li r3,0 <== NOT EXECUTED
return NULL;
return &pwent;
}
ffc2b538: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc2b53c: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc2b540: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc2b544: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2b548: 4e 80 00 20 blr <== NOT EXECUTED
ffc2ba24 <getpwuid>:
}
struct passwd *getpwuid(
uid_t uid
)
{
ffc2ba24: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED
struct passwd *p;
if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p))
ffc2ba28: 3c 80 00 00 lis r4,0 <== NOT EXECUTED
}
struct passwd *getpwuid(
uid_t uid
)
{
ffc2ba2c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
struct passwd *p;
if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p))
ffc2ba30: 38 84 5f 74 addi r4,r4,24436 <== NOT EXECUTED
ffc2ba34: 38 a4 00 fc addi r5,r4,252 <== NOT EXECUTED
ffc2ba38: 38 c0 00 c8 li r6,200 <== NOT EXECUTED
}
struct passwd *getpwuid(
uid_t uid
)
{
ffc2ba3c: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED
struct passwd *p;
if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p))
ffc2ba40: 38 84 00 e0 addi r4,r4,224 <== NOT EXECUTED
ffc2ba44: 38 e1 00 08 addi r7,r1,8 <== NOT EXECUTED
ffc2ba48: 4b ff ff b5 bl ffc2b9fc <getpwuid_r> <== NOT EXECUTED
ffc2ba4c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc2ba50: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc2ba54: 40 9e 00 08 bne- cr7,ffc2ba5c <getpwuid+0x38> <== NOT EXECUTED
return NULL;
return p;
ffc2ba58: 80 61 00 08 lwz r3,8(r1) <== NOT EXECUTED
}
ffc2ba5c: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED
ffc2ba60: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED
ffc2ba64: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2ba68: 4e 80 00 20 blr <== NOT EXECUTED
ffc2b9fc <getpwuid_r>:
struct passwd *pwd,
char *buffer,
size_t bufsize,
struct passwd **result
)
{
ffc2b9fc: 7c 8b 23 78 mr r11,r4 <== NOT EXECUTED
ffc2ba00: 7c a9 2b 78 mr r9,r5 <== NOT EXECUTED
ffc2ba04: 7c c0 33 78 mr r0,r6 <== NOT EXECUTED
ffc2ba08: 7c e8 3b 78 mr r8,r7 <== NOT EXECUTED
return getpw_r(NULL, uid, pwd, buffer, bufsize, result);
ffc2ba0c: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED
ffc2ba10: 7d 65 5b 78 mr r5,r11 <== NOT EXECUTED
ffc2ba14: 7d 26 4b 78 mr r6,r9 <== NOT EXECUTED
ffc2ba18: 7c 07 03 78 mr r7,r0 <== NOT EXECUTED
ffc2ba1c: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc2ba20: 4b ff fe b8 b ffc2b8d8 <getpw_r> <== NOT EXECUTED
ffc0d340 <gettimeofday>:
*/
int gettimeofday(
struct timeval *tp,
void * __tz __attribute__((unused))
)
{
ffc0d340: 94 21 ff e0 stwu r1,-32(r1)
ffc0d344: 7c 08 02 a6 mflr r0
ffc0d348: 93 e1 00 1c stw r31,28(r1)
/* struct timezone* tzp = (struct timezone*) __tz; */
if ( !tp ) {
ffc0d34c: 7c 7f 1b 79 mr. r31,r3
*/
int gettimeofday(
struct timeval *tp,
void * __tz __attribute__((unused))
)
{
ffc0d350: 90 01 00 24 stw r0,36(r1)
ffc0d354: 93 c1 00 18 stw r30,24(r1)
/* struct timezone* tzp = (struct timezone*) __tz; */
if ( !tp ) {
ffc0d358: 40 a2 00 18 bne+ ffc0d370 <gettimeofday+0x30>
errno = EFAULT;
ffc0d35c: 48 00 48 69 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc0d360: 38 00 00 0e li r0,14 <== NOT EXECUTED
ffc0d364: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc0d368: 38 60 ff ff li r3,-1 <== NOT EXECUTED
return -1;
ffc0d36c: 48 00 00 3c b ffc0d3a8 <gettimeofday+0x68> <== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0d370: 7f c0 00 a6 mfmsr r30
ffc0d374: 7c 10 42 a6 mfsprg r0,0
ffc0d378: 7f c0 00 78 andc r0,r30,r0
ffc0d37c: 7c 00 01 24 mtmsr r0
ISR_Level level;
struct timespec now;
suseconds_t useconds;
_ISR_Disable(level);
_TOD_Get( &now );
ffc0d380: 38 61 00 08 addi r3,r1,8
ffc0d384: 48 00 14 25 bl ffc0e7a8 <_TOD_Get>
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0d388: 7f c0 01 24 mtmsr r30
useconds = (suseconds_t)now.tv_nsec;
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
time->tv_sec = now.tv_sec;
time->tv_usec = useconds;
ffc0d38c: 81 21 00 0c lwz r9,12(r1)
ffc0d390: 38 00 03 e8 li r0,1000
ffc0d394: 38 60 00 00 li r3,0
ffc0d398: 7c 09 03 d6 divw r0,r9,r0
_ISR_Enable(level);
useconds = (suseconds_t)now.tv_nsec;
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
time->tv_sec = now.tv_sec;
ffc0d39c: 81 21 00 08 lwz r9,8(r1)
ffc0d3a0: 91 3f 00 00 stw r9,0(r31)
time->tv_usec = useconds;
ffc0d3a4: 90 1f 00 04 stw r0,4(r31)
* with Eric Norum, this is how GNU/Linux, Solaris, and MacOS X
* do it. This puts us in good company.
*/
return 0;
}
ffc0d3a8: 80 01 00 24 lwz r0,36(r1)
ffc0d3ac: 83 c1 00 18 lwz r30,24(r1)
ffc0d3b0: 7c 08 03 a6 mtlr r0
ffc0d3b4: 83 e1 00 1c lwz r31,28(r1)
ffc0d3b8: 38 21 00 20 addi r1,r1,32
ffc0d3bc: 4e 80 00 20 blr
ffc07410 <getuid>:
* 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
* P1003.1b-1993, p. 84
*/
uid_t getuid( void )
{
ffc07410: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc07414: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED
return _POSIX_types_Uid;
}
ffc07418: a0 69 00 32 lhz r3,50(r9) <== NOT EXECUTED
ffc0741c: 4e 80 00 20 blr <== NOT EXECUTED
ffc16c80 <imfs_dir_rmnod>:
int imfs_dir_rmnod(
rtems_filesystem_location_info_t *parent_pathloc, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN */
)
{
ffc16c80: 94 21 ff d8 stwu r1,-40(r1)
ffc16c84: 7c 08 02 a6 mflr r0
ffc16c88: 90 01 00 2c stw r0,44(r1)
ffc16c8c: 93 c1 00 20 stw r30,32(r1)
ffc16c90: 7c 9e 23 78 mr r30,r4
ffc16c94: 93 e1 00 24 stw r31,36(r1)
ffc16c98: 93 a1 00 1c stw r29,28(r1)
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) pathloc->node_access;
ffc16c9c: 83 e4 00 00 lwz r31,0(r4)
ffc16ca0: 81 3f 00 50 lwz r9,80(r31)
ffc16ca4: 38 1f 00 54 addi r0,r31,84
ffc16ca8: 7f 89 00 00 cmpw cr7,r9,r0
ffc16cac: 41 be 00 10 beq+ cr7,ffc16cbc <imfs_dir_rmnod+0x3c>
/*
* 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 );
ffc16cb0: 48 00 12 a1 bl ffc17f50 <__errno>
ffc16cb4: 38 00 00 5a li r0,90
ffc16cb8: 48 00 00 28 b ffc16ce0 <imfs_dir_rmnod+0x60>
/*
* You cannot remove the file system root node.
*/
if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access )
ffc16cbc: 81 24 00 10 lwz r9,16(r4)
ffc16cc0: 80 09 00 1c lwz r0,28(r9)
ffc16cc4: 7f 80 f8 00 cmpw cr7,r0,r31
ffc16cc8: 41 9e 00 10 beq- cr7,ffc16cd8 <imfs_dir_rmnod+0x58>
/*
* You cannot remove a mountpoint.
*/
if ( the_jnode->info.directory.mt_fs != NULL )
ffc16ccc: 83 bf 00 5c lwz r29,92(r31)
ffc16cd0: 2f 9d 00 00 cmpwi cr7,r29,0
ffc16cd4: 41 be 00 18 beq+ cr7,ffc16cec <imfs_dir_rmnod+0x6c>
rtems_set_errno_and_return_minus_one( EBUSY );
ffc16cd8: 48 00 12 79 bl ffc17f50 <__errno>
ffc16cdc: 38 00 00 10 li r0,16
ffc16ce0: 90 03 00 00 stw r0,0(r3)
ffc16ce4: 38 60 ff ff li r3,-1
ffc16ce8: 48 00 00 80 b ffc16d68 <imfs_dir_rmnod+0xe8>
/*
* Take the node out of the parent's chain that contains this node
*/
if ( the_jnode->Parent != NULL ) {
ffc16cec: 80 1f 00 08 lwz r0,8(r31)
ffc16cf0: 2f 80 00 00 cmpwi cr7,r0,0
ffc16cf4: 41 9e 00 10 beq- cr7,ffc16d04 <imfs_dir_rmnod+0x84>
ffc16cf8: 7f e3 fb 78 mr r3,r31
ffc16cfc: 4b ff 3b fd bl ffc0a8f8 <_Chain_Extract>
rtems_chain_extract( (rtems_chain_node *) the_jnode );
the_jnode->Parent = NULL;
ffc16d00: 93 bf 00 08 stw r29,8(r31)
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
ffc16d04: a1 3f 00 34 lhz r9,52(r31)
IMFS_update_ctime( the_jnode );
ffc16d08: 38 80 00 00 li r4,0
ffc16d0c: 38 61 00 08 addi r3,r1,8
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
ffc16d10: 38 09 ff ff addi r0,r9,-1
ffc16d14: b0 1f 00 34 sth r0,52(r31)
IMFS_update_ctime( the_jnode );
ffc16d18: 4b fe ed d9 bl ffc05af0 <gettimeofday>
ffc16d1c: 80 01 00 08 lwz r0,8(r1)
/*
* 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) ) {
ffc16d20: 7f e3 fb 78 mr r3,r31
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
IMFS_update_ctime( the_jnode );
ffc16d24: 90 1f 00 48 stw r0,72(r31)
/*
* 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) ) {
ffc16d28: 4b ff c2 95 bl ffc12fbc <rtems_libio_is_file_open>
ffc16d2c: 2f 83 00 00 cmpwi cr7,r3,0
ffc16d30: 40 9e 00 34 bne- cr7,ffc16d64 <imfs_dir_rmnod+0xe4>
ffc16d34: a0 1f 00 34 lhz r0,52(r31)
ffc16d38: 2f 80 00 00 cmpwi cr7,r0,0
ffc16d3c: 40 9e 00 28 bne- cr7,ffc16d64 <imfs_dir_rmnod+0xe4>
/*
* Is the rtems_filesystem_current is this node?
*/
if ( rtems_filesystem_current.node_access == pathloc->node_access )
ffc16d40: 3d 20 00 00 lis r9,0
ffc16d44: 81 7e 00 00 lwz r11,0(r30)
ffc16d48: 81 29 26 f4 lwz r9,9972(r9)
ffc16d4c: 81 49 00 04 lwz r10,4(r9)
ffc16d50: 7f 8a 58 00 cmpw cr7,r10,r11
ffc16d54: 40 be 00 08 bne+ cr7,ffc16d5c <imfs_dir_rmnod+0xdc>
rtems_filesystem_current.node_access = NULL;
ffc16d58: 90 09 00 04 stw r0,4(r9) <== NOT EXECUTED
/*
* Free memory associated with a memory file.
*/
free( the_jnode );
ffc16d5c: 7f e3 fb 78 mr r3,r31
ffc16d60: 4b fe ec c9 bl ffc05a28 <free>
ffc16d64: 38 60 00 00 li r3,0
}
return 0;
}
ffc16d68: 80 01 00 2c lwz r0,44(r1)
ffc16d6c: 83 a1 00 1c lwz r29,28(r1)
ffc16d70: 7c 08 03 a6 mtlr r0
ffc16d74: 83 c1 00 20 lwz r30,32(r1)
ffc16d78: 83 e1 00 24 lwz r31,36(r1)
ffc16d7c: 38 21 00 28 addi r1,r1,40
ffc16d80: 4e 80 00 20 blr
ffc08700 <ioctl>:
int ioctl(
int fd,
ioctl_command_t command,
...
)
{
ffc08700: 94 21 ff e0 stwu r1,-32(r1)
ffc08704: 7c 08 02 a6 mflr r0
va_list ap;
rtems_status_code rc;
rtems_libio_t *iop;
void *buffer;
rtems_libio_check_fd( fd );
ffc08708: 3d 20 00 00 lis r9,0
int ioctl(
int fd,
ioctl_command_t command,
...
)
{
ffc0870c: 90 01 00 24 stw r0,36(r1)
va_list ap;
rtems_status_code rc;
rtems_libio_t *iop;
void *buffer;
rtems_libio_check_fd( fd );
ffc08710: 80 09 26 ac lwz r0,9900(r9)
int ioctl(
int fd,
ioctl_command_t command,
...
)
{
ffc08714: 90 a1 00 18 stw r5,24(r1)
va_list ap;
rtems_status_code rc;
rtems_libio_t *iop;
void *buffer;
rtems_libio_check_fd( fd );
ffc08718: 7f 83 00 40 cmplw cr7,r3,r0
ffc0871c: 40 9c 00 48 bge- cr7,ffc08764 <ioctl+0x64>
iop = rtems_libio_iop( fd );
ffc08720: 3d 20 00 00 lis r9,0
ffc08724: 80 09 27 6c lwz r0,10092(r9)
ffc08728: 1c 63 00 48 mulli r3,r3,72
ffc0872c: 7c 60 1a 14 add r3,r0,r3
rtems_libio_check_is_open(iop);
ffc08730: 80 03 00 18 lwz r0,24(r3)
ffc08734: 70 09 01 00 andi. r9,r0,256
ffc08738: 41 82 00 2c beq- ffc08764 <ioctl+0x64>
va_start(ap, command);
buffer = va_arg(ap, void *);
ffc0873c: 38 00 00 03 li r0,3
ffc08740: 98 01 00 08 stb r0,8(r1)
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
va_start(ap, command);
ffc08744: 39 61 00 10 addi r11,r1,16
ffc08748: 38 01 00 28 addi r0,r1,40
/*
* Now process the ioctl().
*/
if ( !iop->handlers )
ffc0874c: 81 23 00 40 lwz r9,64(r3)
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
va_start(ap, command);
ffc08750: 90 01 00 0c stw r0,12(r1)
/*
* Now process the ioctl().
*/
if ( !iop->handlers )
ffc08754: 2f 89 00 00 cmpwi cr7,r9,0
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
va_start(ap, command);
ffc08758: 91 61 00 10 stw r11,16(r1)
buffer = va_arg(ap, void *);
ffc0875c: 80 ab 00 08 lwz r5,8(r11)
/*
* Now process the ioctl().
*/
if ( !iop->handlers )
ffc08760: 40 be 00 10 bne+ cr7,ffc08770 <ioctl+0x70>
rtems_set_errno_and_return_minus_one( EBADF );
ffc08764: 48 00 fa b9 bl ffc1821c <__errno>
ffc08768: 38 00 00 09 li r0,9
ffc0876c: 48 00 00 18 b ffc08784 <ioctl+0x84>
if ( !iop->handlers->ioctl_h )
ffc08770: 80 09 00 10 lwz r0,16(r9)
ffc08774: 2f 80 00 00 cmpwi cr7,r0,0
ffc08778: 40 be 00 18 bne+ cr7,ffc08790 <ioctl+0x90>
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc0877c: 48 00 fa a1 bl ffc1821c <__errno> <== NOT EXECUTED
ffc08780: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc08784: 90 03 00 00 stw r0,0(r3)
ffc08788: 38 60 ff ff li r3,-1
ffc0878c: 48 00 00 0c b ffc08798 <ioctl+0x98>
rc = (*iop->handlers->ioctl_h)( iop, command, buffer );
ffc08790: 7c 09 03 a6 mtctr r0
ffc08794: 4e 80 04 21 bctrl
return rc;
}
ffc08798: 80 01 00 24 lwz r0,36(r1)
ffc0879c: 38 21 00 20 addi r1,r1,32
ffc087a0: 7c 08 03 a6 mtlr r0
ffc087a4: 4e 80 00 20 blr
ffc05f30 <iproc>:
/*
* Process a single input character
*/
static int
iproc (unsigned char c, struct rtems_termios_tty *tty)
{
ffc05f30: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED
ffc05f34: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc05f38: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED
if (tty->termios.c_iflag & ISTRIP)
ffc05f3c: 80 04 00 30 lwz r0,48(r4) <== NOT EXECUTED
/*
* Process a single input character
*/
static int
iproc (unsigned char c, struct rtems_termios_tty *tty)
{
ffc05f40: 93 c1 00 08 stw r30,8(r1) <== NOT EXECUTED
ffc05f44: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED
if (tty->termios.c_iflag & ISTRIP)
ffc05f48: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED
/*
* Process a single input character
*/
static int
iproc (unsigned char c, struct rtems_termios_tty *tty)
{
ffc05f4c: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED
ffc05f50: 7c 9f 23 78 mr r31,r4 <== NOT EXECUTED
if (tty->termios.c_iflag & ISTRIP)
ffc05f54: 41 82 00 08 beq- ffc05f5c <iproc+0x2c> <== NOT EXECUTED
c &= 0x7f;
ffc05f58: 54 7e 06 7e clrlwi r30,r3,25 <== NOT EXECUTED
if (tty->termios.c_iflag & IUCLC)
ffc05f5c: 70 09 02 00 andi. r9,r0,512 <== NOT EXECUTED
ffc05f60: 41 82 00 2c beq- ffc05f8c <iproc+0x5c> <== NOT EXECUTED
c = tolower (c);
ffc05f64: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc05f68: 81 69 26 e0 lwz r11,9952(r9) <== NOT EXECUTED
ffc05f6c: 7f c9 f3 78 mr r9,r30 <== NOT EXECUTED
ffc05f70: 7f cb f2 14 add r30,r11,r30 <== NOT EXECUTED
ffc05f74: 89 7e 00 01 lbz r11,1(r30) <== NOT EXECUTED
ffc05f78: 55 6b 07 be clrlwi r11,r11,30 <== NOT EXECUTED
ffc05f7c: 2f 8b 00 01 cmpwi cr7,r11,1 <== NOT EXECUTED
ffc05f80: 40 be 00 08 bne+ cr7,ffc05f88 <iproc+0x58> <== NOT EXECUTED
ffc05f84: 39 29 00 20 addi r9,r9,32 <== NOT EXECUTED
ffc05f88: 55 3e 06 3e clrlwi r30,r9,24 <== NOT EXECUTED
if (c == '\r') {
ffc05f8c: 2f 9e 00 0d cmpwi cr7,r30,13 <== NOT EXECUTED
ffc05f90: 40 be 00 1c bne+ cr7,ffc05fac <iproc+0x7c> <== NOT EXECUTED
if (tty->termios.c_iflag & IGNCR)
ffc05f94: 70 09 00 80 andi. r9,r0,128 <== NOT EXECUTED
ffc05f98: 40 82 01 44 bne- ffc060dc <iproc+0x1ac> <== NOT EXECUTED
return 0;
if (tty->termios.c_iflag & ICRNL)
ffc05f9c: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED
ffc05fa0: 41 82 00 2c beq- ffc05fcc <iproc+0x9c> <== NOT EXECUTED
ffc05fa4: 3b c0 00 0a li r30,10 <== NOT EXECUTED
ffc05fa8: 48 00 00 24 b ffc05fcc <iproc+0x9c> <== NOT EXECUTED
c = '\n';
}
else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {
ffc05fac: 2f 9e 00 0a cmpwi cr7,r30,10 <== NOT EXECUTED
ffc05fb0: 40 be 00 14 bne+ cr7,ffc05fc4 <iproc+0x94> <== NOT EXECUTED
ffc05fb4: 70 09 00 40 andi. r9,r0,64 <== NOT EXECUTED
ffc05fb8: 41 82 00 14 beq- ffc05fcc <iproc+0x9c> <== NOT EXECUTED
ffc05fbc: 3b c0 00 0d li r30,13 <== NOT EXECUTED
ffc05fc0: 48 00 00 0c b ffc05fcc <iproc+0x9c> <== NOT EXECUTED
c = '\r';
}
if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {
ffc05fc4: 2f 9e 00 00 cmpwi cr7,r30,0 <== NOT EXECUTED
ffc05fc8: 41 be 00 c8 beq+ cr7,ffc06090 <iproc+0x160> <== NOT EXECUTED
ffc05fcc: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED
ffc05fd0: 70 09 00 02 andi. r9,r0,2 <== NOT EXECUTED
ffc05fd4: 41 82 00 bc beq- ffc06090 <iproc+0x160> <== NOT EXECUTED
if (c == tty->termios.c_cc[VERASE]) {
ffc05fd8: 89 3f 00 43 lbz r9,67(r31) <== NOT EXECUTED
erase (tty, 0);
ffc05fdc: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc05fe0: 38 80 00 00 li r4,0 <== 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]) {
ffc05fe4: 7f 89 f0 00 cmpw cr7,r9,r30 <== NOT EXECUTED
ffc05fe8: 41 9e 00 18 beq- cr7,ffc06000 <iproc+0xd0> <== NOT EXECUTED
erase (tty, 0);
return 0;
}
else if (c == tty->termios.c_cc[VKILL]) {
ffc05fec: 89 3f 00 44 lbz r9,68(r31) <== NOT EXECUTED
ffc05ff0: 7f 89 f0 00 cmpw cr7,r9,r30 <== NOT EXECUTED
ffc05ff4: 40 be 00 14 bne+ cr7,ffc06008 <iproc+0xd8> <== NOT EXECUTED
erase (tty, 1);
ffc05ff8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc05ffc: 38 80 00 01 li r4,1 <== NOT EXECUTED
ffc06000: 4b ff fc dd bl ffc05cdc <erase> <== NOT EXECUTED
ffc06004: 48 00 00 d8 b ffc060dc <iproc+0x1ac> <== NOT EXECUTED
return 0;
}
else if (c == tty->termios.c_cc[VEOF]) {
ffc06008: 89 3f 00 45 lbz r9,69(r31) <== NOT EXECUTED
ffc0600c: 38 60 00 01 li r3,1 <== NOT EXECUTED
ffc06010: 7f 89 f0 00 cmpw cr7,r9,r30 <== NOT EXECUTED
ffc06014: 41 9e 00 cc beq- cr7,ffc060e0 <iproc+0x1b0> <== NOT EXECUTED
return 1;
}
else if (c == '\n') {
ffc06018: 2f 9e 00 0a cmpwi cr7,r30,10 <== NOT EXECUTED
ffc0601c: 40 be 00 30 bne+ cr7,ffc0604c <iproc+0x11c> <== NOT EXECUTED
if (tty->termios.c_lflag & (ECHO | ECHONL))
ffc06020: 70 09 00 48 andi. r9,r0,72 <== NOT EXECUTED
ffc06024: 41 a2 00 10 beq+ ffc06034 <iproc+0x104> <== NOT EXECUTED
echo (c, tty);
ffc06028: 38 60 00 0a li r3,10 <== NOT EXECUTED
ffc0602c: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc06030: 4b ff fc 19 bl ffc05c48 <echo> <== NOT EXECUTED
tty->cbuf[tty->ccount++] = c;
ffc06034: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED
ffc06038: 39 40 00 0a li r10,10 <== NOT EXECUTED
ffc0603c: 81 7f 00 1c lwz r11,28(r31) <== NOT EXECUTED
ffc06040: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED
ffc06044: 7d 4b 49 ae stbx r10,r11,r9 <== NOT EXECUTED
ffc06048: 48 00 00 40 b ffc06088 <iproc+0x158> <== NOT EXECUTED
return 1;
}
else if ((c == tty->termios.c_cc[VEOL])
ffc0604c: 89 3f 00 4c lbz r9,76(r31) <== NOT EXECUTED
ffc06050: 7f 89 f0 00 cmpw cr7,r9,r30 <== NOT EXECUTED
ffc06054: 41 9e 00 10 beq- cr7,ffc06064 <iproc+0x134> <== NOT EXECUTED
|| (c == tty->termios.c_cc[VEOL2])) {
ffc06058: 89 3f 00 51 lbz r9,81(r31) <== NOT EXECUTED
ffc0605c: 7f 89 f0 00 cmpw cr7,r9,r30 <== NOT EXECUTED
ffc06060: 40 be 00 30 bne+ cr7,ffc06090 <iproc+0x160> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO)
ffc06064: 70 09 00 08 andi. r9,r0,8 <== NOT EXECUTED
ffc06068: 41 a2 00 10 beq+ ffc06078 <iproc+0x148> <== NOT EXECUTED
echo (c, tty);
ffc0606c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc06070: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc06074: 4b ff fb d5 bl ffc05c48 <echo> <== NOT EXECUTED
tty->cbuf[tty->ccount++] = c;
ffc06078: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED
ffc0607c: 81 7f 00 1c lwz r11,28(r31) <== NOT EXECUTED
ffc06080: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED
ffc06084: 7f cb 49 ae stbx r30,r11,r9 <== NOT EXECUTED
ffc06088: 38 60 00 01 li r3,1 <== NOT EXECUTED
ffc0608c: 48 00 00 48 b ffc060d4 <iproc+0x1a4> <== NOT EXECUTED
}
/*
* FIXME: Should do IMAXBEL handling somehow
*/
if (tty->ccount < (CBUFSIZE-1)) {
ffc06090: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc06094: 81 69 21 68 lwz r11,8552(r9) <== NOT EXECUTED
ffc06098: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED
ffc0609c: 38 0b ff ff addi r0,r11,-1 <== NOT EXECUTED
ffc060a0: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED
ffc060a4: 40 9c 00 38 bge- cr7,ffc060dc <iproc+0x1ac> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO)
ffc060a8: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED
ffc060ac: 70 09 00 08 andi. r9,r0,8 <== NOT EXECUTED
ffc060b0: 41 a2 00 10 beq+ ffc060c0 <iproc+0x190> <== NOT EXECUTED
echo (c, tty);
ffc060b4: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc060b8: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc060bc: 4b ff fb 8d bl ffc05c48 <echo> <== NOT EXECUTED
tty->cbuf[tty->ccount++] = c;
ffc060c0: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED
ffc060c4: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc060c8: 81 7f 00 1c lwz r11,28(r31) <== NOT EXECUTED
ffc060cc: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED
ffc060d0: 7f cb 49 ae stbx r30,r11,r9 <== NOT EXECUTED
ffc060d4: 90 1f 00 20 stw r0,32(r31) <== NOT EXECUTED
ffc060d8: 48 00 00 08 b ffc060e0 <iproc+0x1b0> <== NOT EXECUTED
ffc060dc: 38 60 00 00 li r3,0 <== NOT EXECUTED
}
return 0;
}
ffc060e0: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc060e4: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED
ffc060e8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc060ec: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc060f0: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc060f4: 4e 80 00 20 blr <== NOT EXECUTED
ffc2bb7c <link>:
int link(
const char *existing,
const char *new
)
{
ffc2bb7c: 94 21 ff c0 stwu r1,-64(r1)
ffc2bb80: 7c 08 02 a6 mflr r0
ffc2bb84: 93 c1 00 38 stw r30,56(r1)
ffc2bb88: 7c 7e 1b 78 mr r30,r3
ffc2bb8c: 90 01 00 44 stw r0,68(r1)
ffc2bb90: 93 e1 00 3c stw r31,60(r1)
ffc2bb94: 7c 9f 23 78 mr r31,r4
/*
* Get the node we are linking to.
*/
result = rtems_filesystem_evaluate_path( existing, strlen( existing ),
ffc2bb98: 48 02 38 ad bl ffc4f444 <strlen>
ffc2bb9c: 38 a0 00 00 li r5,0
ffc2bba0: 7c 64 1b 78 mr r4,r3
ffc2bba4: 38 c1 00 0c addi r6,r1,12
ffc2bba8: 7f c3 f3 78 mr r3,r30
ffc2bbac: 38 e0 00 01 li r7,1
ffc2bbb0: 4b fd b6 25 bl ffc071d4 <rtems_filesystem_evaluate_path>
0, &existing_loc, true );
if ( result != 0 )
ffc2bbb4: 3b c0 ff ff li r30,-1
ffc2bbb8: 2f 83 00 00 cmpwi cr7,r3,0
ffc2bbbc: 40 9e 02 3c bne- cr7,ffc2bdf8 <link+0x27c>
/*
* Get the parent of the node we are creating.
*/
rtems_filesystem_get_start_loc( new, &i, &parent_loc );
ffc2bbc0: 88 1f 00 00 lbz r0,0(r31)
ffc2bbc4: 2f 80 00 2f cmpwi cr7,r0,47
ffc2bbc8: 41 9e 00 14 beq- cr7,ffc2bbdc <link+0x60>
ffc2bbcc: 2f 80 00 5c cmpwi cr7,r0,92
ffc2bbd0: 41 9e 00 0c beq- cr7,ffc2bbdc <link+0x60>
ffc2bbd4: 2f 80 00 00 cmpwi cr7,r0,0
ffc2bbd8: 40 9e 00 38 bne- cr7,ffc2bc10 <link+0x94>
ffc2bbdc: 3d 20 00 00 lis r9,0
ffc2bbe0: 81 29 35 2c lwz r9,13612(r9)
ffc2bbe4: 38 60 00 01 li r3,1
ffc2bbe8: 80 09 00 24 lwz r0,36(r9)
ffc2bbec: 81 09 00 18 lwz r8,24(r9)
ffc2bbf0: 81 49 00 1c lwz r10,28(r9)
ffc2bbf4: 81 69 00 20 lwz r11,32(r9)
ffc2bbf8: 91 01 00 20 stw r8,32(r1)
ffc2bbfc: 91 41 00 24 stw r10,36(r1)
ffc2bc00: 91 61 00 28 stw r11,40(r1)
ffc2bc04: 90 01 00 2c stw r0,44(r1)
ffc2bc08: 80 09 00 28 lwz r0,40(r9)
ffc2bc0c: 48 00 00 34 b ffc2bc40 <link+0xc4>
ffc2bc10: 3d 20 00 00 lis r9,0
ffc2bc14: 81 29 35 2c lwz r9,13612(r9)
ffc2bc18: 38 60 00 00 li r3,0
ffc2bc1c: 80 09 00 10 lwz r0,16(r9)
ffc2bc20: 81 09 00 04 lwz r8,4(r9)
ffc2bc24: 81 49 00 08 lwz r10,8(r9)
ffc2bc28: 81 69 00 0c lwz r11,12(r9)
ffc2bc2c: 91 01 00 20 stw r8,32(r1)
ffc2bc30: 91 41 00 24 stw r10,36(r1)
ffc2bc34: 91 61 00 28 stw r11,40(r1)
ffc2bc38: 90 01 00 2c stw r0,44(r1)
ffc2bc3c: 80 09 00 14 lwz r0,20(r9)
if ( !parent_loc.ops->evalformake_h ) {
ffc2bc40: 81 21 00 2c lwz r9,44(r1)
/*
* Get the parent of the node we are creating.
*/
rtems_filesystem_get_start_loc( new, &i, &parent_loc );
ffc2bc44: 90 01 00 30 stw r0,48(r1)
if ( !parent_loc.ops->evalformake_h ) {
ffc2bc48: 80 09 00 04 lwz r0,4(r9)
ffc2bc4c: 2f 80 00 00 cmpwi cr7,r0,0
ffc2bc50: 40 be 00 24 bne+ cr7,ffc2bc74 <link+0xf8>
rtems_filesystem_freenode( &existing_loc );
ffc2bc54: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED
ffc2bc58: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc2bc5c: 41 9e 01 28 beq- cr7,ffc2bd84 <link+0x208> <== NOT EXECUTED
ffc2bc60: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2bc64: 38 61 00 0c addi r3,r1,12 <== NOT EXECUTED
ffc2bc68: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2bc6c: 40 be 01 10 bne+ cr7,ffc2bd7c <link+0x200> <== NOT EXECUTED
ffc2bc70: 48 00 01 14 b ffc2bd84 <link+0x208> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start );
ffc2bc74: 3b c1 00 20 addi r30,r1,32
ffc2bc78: 7c 09 03 a6 mtctr r0
ffc2bc7c: 7c 7f 1a 14 add r3,r31,r3
ffc2bc80: 7f c4 f3 78 mr r4,r30
ffc2bc84: 38 a1 00 08 addi r5,r1,8
ffc2bc88: 4e 80 04 21 bctrl
if ( result != 0 ) {
ffc2bc8c: 7c 7f 1b 79 mr. r31,r3
ffc2bc90: 41 a2 00 38 beq+ ffc2bcc8 <link+0x14c>
rtems_filesystem_freenode( &existing_loc );
ffc2bc94: 81 21 00 18 lwz r9,24(r1)
ffc2bc98: 2f 89 00 00 cmpwi cr7,r9,0
ffc2bc9c: 41 9e 00 1c beq- cr7,ffc2bcb8 <link+0x13c>
ffc2bca0: 80 09 00 1c lwz r0,28(r9)
ffc2bca4: 2f 80 00 00 cmpwi cr7,r0,0
ffc2bca8: 41 9e 00 10 beq- cr7,ffc2bcb8 <link+0x13c>
ffc2bcac: 38 61 00 0c addi r3,r1,12
ffc2bcb0: 7c 09 03 a6 mtctr r0
ffc2bcb4: 4e 80 04 21 bctrl
rtems_set_errno_and_return_minus_one( result );
ffc2bcb8: 48 01 b9 b9 bl ffc47670 <__errno>
ffc2bcbc: 93 e3 00 00 stw r31,0(r3)
ffc2bcc0: 3b c0 ff ff li r30,-1
ffc2bcc4: 48 00 01 34 b ffc2bdf8 <link+0x27c>
/*
* Check to see if the caller is trying to link across file system
* boundaries.
*/
if ( parent_loc.mt_entry != existing_loc.mt_entry ) {
ffc2bcc8: 80 01 00 1c lwz r0,28(r1)
ffc2bccc: 81 21 00 30 lwz r9,48(r1)
ffc2bcd0: 7f 89 00 00 cmpw cr7,r9,r0
ffc2bcd4: 41 be 00 58 beq+ cr7,ffc2bd2c <link+0x1b0>
rtems_filesystem_freenode( &existing_loc );
ffc2bcd8: 81 21 00 18 lwz r9,24(r1)
ffc2bcdc: 2f 89 00 00 cmpwi cr7,r9,0
ffc2bce0: 41 9e 00 1c beq- cr7,ffc2bcfc <link+0x180>
ffc2bce4: 80 09 00 1c lwz r0,28(r9)
ffc2bce8: 2f 80 00 00 cmpwi cr7,r0,0
ffc2bcec: 41 9e 00 10 beq- cr7,ffc2bcfc <link+0x180>
ffc2bcf0: 38 61 00 0c addi r3,r1,12
ffc2bcf4: 7c 09 03 a6 mtctr r0
ffc2bcf8: 4e 80 04 21 bctrl
rtems_filesystem_freenode( &parent_loc );
ffc2bcfc: 81 21 00 2c lwz r9,44(r1)
ffc2bd00: 2f 89 00 00 cmpwi cr7,r9,0
ffc2bd04: 41 9e 00 1c beq- cr7,ffc2bd20 <link+0x1a4>
ffc2bd08: 80 09 00 1c lwz r0,28(r9)
ffc2bd0c: 2f 80 00 00 cmpwi cr7,r0,0
ffc2bd10: 41 9e 00 10 beq- cr7,ffc2bd20 <link+0x1a4>
ffc2bd14: 38 61 00 20 addi r3,r1,32
ffc2bd18: 7c 09 03 a6 mtctr r0
ffc2bd1c: 4e 80 04 21 bctrl
rtems_set_errno_and_return_minus_one( EXDEV );
ffc2bd20: 48 01 b9 51 bl ffc47670 <__errno>
ffc2bd24: 38 00 00 12 li r0,18
ffc2bd28: 48 00 00 64 b ffc2bd8c <link+0x210>
}
if ( !parent_loc.ops->link_h ) {
ffc2bd2c: 81 21 00 2c lwz r9,44(r1)
ffc2bd30: 80 09 00 08 lwz r0,8(r9)
ffc2bd34: 2f 80 00 00 cmpwi cr7,r0,0
ffc2bd38: 40 be 00 5c bne+ cr7,ffc2bd94 <link+0x218>
rtems_filesystem_freenode( &existing_loc );
ffc2bd3c: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED
ffc2bd40: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc2bd44: 41 9e 00 1c beq- cr7,ffc2bd60 <link+0x1e4> <== NOT EXECUTED
ffc2bd48: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2bd4c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2bd50: 41 9e 00 10 beq- cr7,ffc2bd60 <link+0x1e4> <== NOT EXECUTED
ffc2bd54: 38 61 00 0c addi r3,r1,12 <== NOT EXECUTED
ffc2bd58: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2bd5c: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_filesystem_freenode( &parent_loc );
ffc2bd60: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED
ffc2bd64: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc2bd68: 41 9e 00 1c beq- cr7,ffc2bd84 <link+0x208> <== NOT EXECUTED
ffc2bd6c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2bd70: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2bd74: 41 9e 00 10 beq- cr7,ffc2bd84 <link+0x208> <== NOT EXECUTED
ffc2bd78: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED
ffc2bd7c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2bd80: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc2bd84: 48 01 b8 ed bl ffc47670 <__errno> <== NOT EXECUTED
ffc2bd88: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc2bd8c: 90 03 00 00 stw r0,0(r3)
ffc2bd90: 4b ff ff 30 b ffc2bcc0 <link+0x144>
}
result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start );
ffc2bd94: 3b e1 00 0c addi r31,r1,12
ffc2bd98: 80 a1 00 08 lwz r5,8(r1)
ffc2bd9c: 7f c4 f3 78 mr r4,r30
ffc2bda0: 7c 09 03 a6 mtctr r0
ffc2bda4: 7f e3 fb 78 mr r3,r31
ffc2bda8: 4e 80 04 21 bctrl
rtems_filesystem_freenode( &existing_loc );
ffc2bdac: 81 21 00 18 lwz r9,24(r1)
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 );
ffc2bdb0: 7c 7e 1b 78 mr r30,r3
rtems_filesystem_freenode( &existing_loc );
ffc2bdb4: 2f 89 00 00 cmpwi cr7,r9,0
ffc2bdb8: 41 9e 00 1c beq- cr7,ffc2bdd4 <link+0x258>
ffc2bdbc: 80 09 00 1c lwz r0,28(r9)
ffc2bdc0: 2f 80 00 00 cmpwi cr7,r0,0
ffc2bdc4: 41 9e 00 10 beq- cr7,ffc2bdd4 <link+0x258>
ffc2bdc8: 7f e3 fb 78 mr r3,r31
ffc2bdcc: 7c 09 03 a6 mtctr r0
ffc2bdd0: 4e 80 04 21 bctrl
rtems_filesystem_freenode( &parent_loc );
ffc2bdd4: 81 21 00 2c lwz r9,44(r1)
ffc2bdd8: 2f 89 00 00 cmpwi cr7,r9,0
ffc2bddc: 41 9e 00 1c beq- cr7,ffc2bdf8 <link+0x27c>
ffc2bde0: 80 09 00 1c lwz r0,28(r9)
ffc2bde4: 2f 80 00 00 cmpwi cr7,r0,0
ffc2bde8: 41 9e 00 10 beq- cr7,ffc2bdf8 <link+0x27c>
ffc2bdec: 38 61 00 20 addi r3,r1,32
ffc2bdf0: 7c 09 03 a6 mtctr r0
ffc2bdf4: 4e 80 04 21 bctrl
return result;
}
ffc2bdf8: 80 01 00 44 lwz r0,68(r1)
ffc2bdfc: 7f c3 f3 78 mr r3,r30
ffc2be00: 83 e1 00 3c lwz r31,60(r1)
ffc2be04: 7c 08 03 a6 mtlr r0
ffc2be08: 83 c1 00 38 lwz r30,56(r1)
ffc2be0c: 38 21 00 40 addi r1,r1,64
ffc2be10: 4e 80 00 20 blr
ffc1c75c <lseek>:
off_t lseek(
int fd,
off_t offset,
int whence
)
{
ffc1c75c: 94 21 ff e8 stwu r1,-24(r1)
ffc1c760: 7c 08 02 a6 mflr r0
rtems_libio_t *iop;
off_t old_offset;
off_t status;
rtems_libio_check_fd( fd );
ffc1c764: 3d 20 00 00 lis r9,0
off_t lseek(
int fd,
off_t offset,
int whence
)
{
ffc1c768: 90 01 00 1c stw r0,28(r1)
rtems_libio_t *iop;
off_t old_offset;
off_t status;
rtems_libio_check_fd( fd );
ffc1c76c: 80 09 26 8c lwz r0,9868(r9)
off_t lseek(
int fd,
off_t offset,
int whence
)
{
ffc1c770: 93 a1 00 0c stw r29,12(r1)
rtems_libio_t *iop;
off_t old_offset;
off_t status;
rtems_libio_check_fd( fd );
ffc1c774: 7f 83 00 40 cmplw cr7,r3,r0
off_t lseek(
int fd,
off_t offset,
int whence
)
{
ffc1c778: 93 c1 00 10 stw r30,16(r1)
ffc1c77c: 93 e1 00 14 stw r31,20(r1)
rtems_libio_t *iop;
off_t old_offset;
off_t status;
rtems_libio_check_fd( fd );
ffc1c780: 40 9c 00 20 bge- cr7,ffc1c7a0 <lseek+0x44>
iop = rtems_libio_iop( fd );
ffc1c784: 3d 20 00 00 lis r9,0
ffc1c788: 83 e9 27 4c lwz r31,10060(r9)
ffc1c78c: 1c 63 00 48 mulli r3,r3,72
ffc1c790: 7f ff 1a 14 add r31,r31,r3
rtems_libio_check_is_open(iop);
ffc1c794: 80 1f 00 18 lwz r0,24(r31)
ffc1c798: 70 09 01 00 andi. r9,r0,256
ffc1c79c: 40 a2 00 10 bne+ ffc1c7ac <lseek+0x50>
ffc1c7a0: 4b ff 54 25 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc1c7a4: 38 00 00 09 li r0,9 <== NOT EXECUTED
ffc1c7a8: 48 00 00 7c b ffc1c824 <lseek+0xc8> <== NOT EXECUTED
/*
* Check as many errors as possible before touching iop->offset.
*/
if ( !iop->handlers->lseek_h )
ffc1c7ac: 81 3f 00 40 lwz r9,64(r31)
ffc1c7b0: 80 09 00 14 lwz r0,20(r9)
ffc1c7b4: 2f 80 00 00 cmpwi cr7,r0,0
ffc1c7b8: 40 be 00 10 bne+ cr7,ffc1c7c8 <lseek+0x6c>
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc1c7bc: 4b ff 54 09 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc1c7c0: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc1c7c4: 48 00 00 60 b ffc1c824 <lseek+0xc8> <== NOT EXECUTED
/*
* Now process the lseek().
*/
old_offset = iop->offset;
switch ( whence ) {
ffc1c7c8: 2f 87 00 01 cmpwi cr7,r7,1
/*
* Now process the lseek().
*/
old_offset = iop->offset;
ffc1c7cc: 83 bf 00 10 lwz r29,16(r31)
ffc1c7d0: 83 df 00 14 lwz r30,20(r31)
switch ( whence ) {
ffc1c7d4: 41 9e 00 20 beq- cr7,ffc1c7f4 <lseek+0x98>
ffc1c7d8: 2f 87 00 02 cmpwi cr7,r7,2
ffc1c7dc: 41 9e 00 24 beq- cr7,ffc1c800 <lseek+0xa4>
ffc1c7e0: 2f 87 00 00 cmpwi cr7,r7,0
ffc1c7e4: 40 9e 00 38 bne- cr7,ffc1c81c <lseek+0xc0>
case SEEK_SET:
iop->offset = offset;
ffc1c7e8: 90 bf 00 10 stw r5,16(r31)
ffc1c7ec: 90 df 00 14 stw r6,20(r31)
break;
ffc1c7f0: 48 00 00 44 b ffc1c834 <lseek+0xd8>
case SEEK_CUR:
iop->offset += offset;
ffc1c7f4: 7d 46 f0 14 addc r10,r6,r30
ffc1c7f8: 7d 25 e9 14 adde r9,r5,r29
ffc1c7fc: 48 00 00 14 b ffc1c810 <lseek+0xb4>
break;
case SEEK_END:
iop->offset = iop->size + offset;
ffc1c800: 81 7f 00 08 lwz r11,8(r31)
ffc1c804: 81 9f 00 0c lwz r12,12(r31)
ffc1c808: 7d 46 60 14 addc r10,r6,r12
ffc1c80c: 7d 25 59 14 adde r9,r5,r11
ffc1c810: 91 3f 00 10 stw r9,16(r31)
ffc1c814: 91 5f 00 14 stw r10,20(r31)
break;
ffc1c818: 48 00 00 1c b ffc1c834 <lseek+0xd8>
default:
rtems_set_errno_and_return_minus_one( EINVAL );
ffc1c81c: 4b ff 53 a9 bl ffc11bc4 <__errno>
ffc1c820: 38 00 00 16 li r0,22
ffc1c824: 90 03 00 00 stw r0,0(r3)
ffc1c828: 39 20 ff ff li r9,-1
ffc1c82c: 39 40 ff ff li r10,-1
ffc1c830: 48 00 00 38 b ffc1c868 <lseek+0x10c>
/*
* At this time, handlers assume iop->offset has the desired
* new offset.
*/
status = (*iop->handlers->lseek_h)( iop, offset, whence );
ffc1c834: 81 3f 00 40 lwz r9,64(r31)
ffc1c838: 7f e3 fb 78 mr r3,r31
ffc1c83c: 80 09 00 14 lwz r0,20(r9)
ffc1c840: 7c 09 03 a6 mtctr r0
ffc1c844: 4e 80 04 21 bctrl
ffc1c848: 7c 69 1b 78 mr r9,r3
if ( status == (off_t) -1 )
ffc1c84c: 2f 89 ff ff cmpwi cr7,r9,-1
/*
* At this time, handlers assume iop->offset has the desired
* new offset.
*/
status = (*iop->handlers->lseek_h)( iop, offset, whence );
ffc1c850: 7c 8a 23 78 mr r10,r4
if ( status == (off_t) -1 )
ffc1c854: 40 be 00 14 bne+ cr7,ffc1c868 <lseek+0x10c>
ffc1c858: 2f 84 ff ff cmpwi cr7,r4,-1
ffc1c85c: 40 be 00 0c bne+ cr7,ffc1c868 <lseek+0x10c>
iop->offset = old_offset;
ffc1c860: 93 bf 00 10 stw r29,16(r31)
ffc1c864: 93 df 00 14 stw r30,20(r31)
/*
* So if the operation failed, we have to restore iop->offset.
*/
return status;
}
ffc1c868: 80 01 00 1c lwz r0,28(r1)
ffc1c86c: 7d 44 53 78 mr r4,r10
ffc1c870: 7d 23 4b 78 mr r3,r9
ffc1c874: 83 a1 00 0c lwz r29,12(r1)
ffc1c878: 7c 08 03 a6 mtlr r0
ffc1c87c: 83 c1 00 10 lwz r30,16(r1)
ffc1c880: 83 e1 00 14 lwz r31,20(r1)
ffc1c884: 38 21 00 18 addi r1,r1,24
ffc1c888: 4e 80 00 20 blr
ffc2bf58 <lstat>:
int _STAT_NAME(
const char *path,
struct stat *buf
)
{
ffc2bf58: 94 21 ff c8 stwu r1,-56(r1) <== NOT EXECUTED
ffc2bf5c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc2bf60: 93 c1 00 30 stw r30,48(r1) <== NOT EXECUTED
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
ffc2bf64: 7c 9e 23 79 mr. r30,r4 <== NOT EXECUTED
int _STAT_NAME(
const char *path,
struct stat *buf
)
{
ffc2bf68: 93 a1 00 2c stw r29,44(r1) <== NOT EXECUTED
ffc2bf6c: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED
ffc2bf70: 90 01 00 3c stw r0,60(r1) <== NOT EXECUTED
ffc2bf74: 93 e1 00 34 stw r31,52(r1) <== NOT EXECUTED
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
ffc2bf78: 40 a2 00 10 bne+ ffc2bf88 <lstat+0x30> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
ffc2bf7c: 48 01 b6 f5 bl ffc47670 <__errno> <== NOT EXECUTED
ffc2bf80: 38 00 00 0e li r0,14 <== NOT EXECUTED
ffc2bf84: 48 00 00 6c b ffc2bff0 <lstat+0x98> <== NOT EXECUTED
status = rtems_filesystem_evaluate_path( path, strlen( path ),
ffc2bf88: 48 02 34 bd bl ffc4f444 <strlen> <== NOT EXECUTED
ffc2bf8c: 3b e1 00 08 addi r31,r1,8 <== NOT EXECUTED
ffc2bf90: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED
ffc2bf94: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc2bf98: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc2bf9c: 7f e6 fb 78 mr r6,r31 <== NOT EXECUTED
ffc2bfa0: 38 e0 00 00 li r7,0 <== NOT EXECUTED
ffc2bfa4: 4b fd b2 31 bl ffc071d4 <rtems_filesystem_evaluate_path><== NOT EXECUTED
0, &loc, _STAT_FOLLOW_LINKS );
if ( status != 0 )
ffc2bfa8: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
ffc2bfac: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc2bfb0: 40 9e 00 9c bne- cr7,ffc2c04c <lstat+0xf4> <== NOT EXECUTED
return -1;
if ( !loc.handlers->fstat_h ){
ffc2bfb4: 81 21 00 10 lwz r9,16(r1) <== NOT EXECUTED
ffc2bfb8: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED
ffc2bfbc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2bfc0: 40 be 00 3c bne+ cr7,ffc2bffc <lstat+0xa4> <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
ffc2bfc4: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED
ffc2bfc8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc2bfcc: 41 9e 00 1c beq- cr7,ffc2bfe8 <lstat+0x90> <== NOT EXECUTED
ffc2bfd0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2bfd4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2bfd8: 41 9e 00 10 beq- cr7,ffc2bfe8 <lstat+0x90> <== NOT EXECUTED
ffc2bfdc: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc2bfe0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2bfe4: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc2bfe8: 48 01 b6 89 bl ffc47670 <__errno> <== NOT EXECUTED
ffc2bfec: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc2bff0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc2bff4: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
ffc2bff8: 48 00 00 54 b ffc2c04c <lstat+0xf4> <== NOT EXECUTED
/*
* Zero out the stat structure so the various support
* versions of stat don't have to.
*/
memset( buf, 0, sizeof(struct stat) );
ffc2bffc: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc2c000: 38 a0 00 48 li r5,72 <== NOT EXECUTED
ffc2c004: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc2c008: 48 01 f4 05 bl ffc4b40c <memset> <== NOT EXECUTED
status = (*loc.handlers->fstat_h)( &loc, buf );
ffc2c00c: 81 21 00 10 lwz r9,16(r1) <== NOT EXECUTED
ffc2c010: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED
ffc2c014: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED
ffc2c018: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc2c01c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2c020: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
ffc2c024: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED
* versions of stat don't have to.
*/
memset( buf, 0, sizeof(struct stat) );
status = (*loc.handlers->fstat_h)( &loc, buf );
ffc2c028: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
ffc2c02c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc2c030: 41 9e 00 1c beq- cr7,ffc2c04c <lstat+0xf4> <== NOT EXECUTED
ffc2c034: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2c038: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2c03c: 41 9e 00 10 beq- cr7,ffc2c04c <lstat+0xf4> <== NOT EXECUTED
ffc2c040: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc2c044: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2c048: 4e 80 04 21 bctrl <== NOT EXECUTED
return status;
}
ffc2c04c: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED
ffc2c050: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc2c054: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED
ffc2c058: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2c05c: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED
ffc2c060: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED
ffc2c064: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED
ffc2c068: 4e 80 00 20 blr <== NOT EXECUTED
ffc045a8 <malloc>:
size_t size
)
{
void *return_this;
MSBUMP(malloc_calls, 1);
ffc045a8: 94 21 ff e8 stwu r1,-24(r1)
ffc045ac: 7c 08 02 a6 mflr r0
ffc045b0: 3d 20 00 00 lis r9,0
ffc045b4: 90 01 00 1c stw r0,28(r1)
ffc045b8: 39 29 2b 00 addi r9,r9,11008
ffc045bc: 81 69 00 04 lwz r11,4(r9)
ffc045c0: 93 e1 00 14 stw r31,20(r1)
ffc045c4: 7c 7f 1b 78 mr r31,r3
ffc045c8: 39 6b 00 01 addi r11,r11,1
ffc045cc: 91 69 00 04 stw r11,4(r9)
ffc045d0: 93 a1 00 0c stw r29,12(r1)
ffc045d4: 93 c1 00 10 stw r30,16(r1)
/*
* If some free's have been deferred, then do them now.
*/
malloc_deferred_frees_process();
ffc045d8: 4b ff fe 79 bl ffc04450 <malloc_deferred_frees_process>
/*
* Validate the parameters
*/
if ( !size )
ffc045dc: 2f 9f 00 00 cmpwi cr7,r31,0
ffc045e0: 41 9e 00 cc beq- cr7,ffc046ac <malloc+0x104>
return (void *) 0;
/*
* Do not attempt to allocate memory if not in correct system state.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
ffc045e4: 3d 20 00 00 lis r9,0
ffc045e8: 80 09 27 d4 lwz r0,10196(r9)
ffc045ec: 2f 80 00 03 cmpwi cr7,r0,3
ffc045f0: 40 be 00 10 bne+ cr7,ffc04600 <malloc+0x58>
ffc045f4: 4b ff fd e9 bl ffc043dc <malloc_is_system_state_OK>
ffc045f8: 2f 83 00 00 cmpwi cr7,r3,0
ffc045fc: 41 9e 00 b0 beq- cr7,ffc046ac <malloc+0x104>
RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate(
Heap_Control *heap,
uintptr_t size
)
{
return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 );
ffc04600: 3d 20 00 00 lis r9,0
ffc04604: 80 69 26 9c lwz r3,9884(r9)
ffc04608: 7f e4 fb 78 mr r4,r31
ffc0460c: 38 a0 00 00 li r5,0
ffc04610: 38 c0 00 00 li r6,0
ffc04614: 48 00 57 65 bl ffc09d78 <_Protected_heap_Allocate_aligned_with_boundary>
* If this fails then return a NULL pointer.
*/
return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );
if ( !return_this ) {
ffc04618: 2f 83 00 00 cmpwi cr7,r3,0
ffc0461c: 7c 7d 1b 78 mr r29,r3
if (rtems_malloc_sbrk_helpers)
return_this = (*rtems_malloc_sbrk_helpers->extend)( size );
if ( !return_this ) {
errno = ENOMEM;
return (void *) 0;
ffc04620: 7c 7e 1b 78 mr r30,r3
* If this fails then return a NULL pointer.
*/
return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );
if ( !return_this ) {
ffc04624: 40 be 00 3c bne+ cr7,ffc04660 <malloc+0xb8>
if (rtems_malloc_sbrk_helpers)
ffc04628: 3d 20 00 00 lis r9,0
ffc0462c: 81 29 27 0c lwz r9,9996(r9)
ffc04630: 2f 89 00 00 cmpwi cr7,r9,0
ffc04634: 41 9e 00 1c beq- cr7,ffc04650 <malloc+0xa8>
return_this = (*rtems_malloc_sbrk_helpers->extend)( size );
ffc04638: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED
ffc0463c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc04640: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc04644: 4e 80 04 21 bctrl <== NOT EXECUTED
if ( !return_this ) {
ffc04648: 7c 7e 1b 79 mr. r30,r3 <== NOT EXECUTED
ffc0464c: 40 a2 00 14 bne+ ffc04660 <malloc+0xb8> <== NOT EXECUTED
errno = ENOMEM;
ffc04650: 48 00 d5 75 bl ffc11bc4 <__errno>
ffc04654: 38 00 00 0c li r0,12
ffc04658: 90 03 00 00 stw r0,0(r3)
return (void *) 0;
ffc0465c: 48 00 00 54 b ffc046b0 <malloc+0x108>
}
/*
* If the user wants us to dirty the allocated memory, then do it.
*/
if ( rtems_malloc_dirty_helper )
ffc04660: 3d 20 00 00 lis r9,0
ffc04664: 81 29 27 10 lwz r9,10000(r9)
ffc04668: 2f 89 00 00 cmpwi cr7,r9,0
ffc0466c: 41 9e 00 18 beq- cr7,ffc04684 <malloc+0xdc>
(*rtems_malloc_dirty_helper)( return_this, size );
ffc04670: 80 09 00 00 lwz r0,0(r9) <== NOT EXECUTED
ffc04674: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc04678: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc0467c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc04680: 4e 80 04 21 bctrl <== NOT EXECUTED
/*
* If configured, update the statistics
*/
if ( rtems_malloc_statistics_helpers )
ffc04684: 3d 20 00 00 lis r9,0
ffc04688: 81 29 27 08 lwz r9,9992(r9)
ffc0468c: 7f dd f3 78 mr r29,r30
ffc04690: 2f 89 00 00 cmpwi cr7,r9,0
ffc04694: 41 9e 00 1c beq- cr7,ffc046b0 <malloc+0x108>
(*rtems_malloc_statistics_helpers->at_malloc)(return_this);
ffc04698: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED
ffc0469c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc046a0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc046a4: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc046a8: 48 00 00 08 b ffc046b0 <malloc+0x108> <== NOT EXECUTED
ffc046ac: 3b a0 00 00 li r29,0 <== NOT EXECUTED
if (rtems_malloc_boundary_helpers)
(*rtems_malloc_boundary_helpers->at_malloc)(return_this, size);
#endif
return return_this;
}
ffc046b0: 80 01 00 1c lwz r0,28(r1)
ffc046b4: 7f a3 eb 78 mr r3,r29
ffc046b8: 83 c1 00 10 lwz r30,16(r1)
ffc046bc: 7c 08 03 a6 mtlr r0
ffc046c0: 83 a1 00 0c lwz r29,12(r1)
ffc046c4: 83 e1 00 14 lwz r31,20(r1)
ffc046c8: 38 21 00 18 addi r1,r1,24
ffc046cc: 4e 80 00 20 blr
ffc04424 <malloc_deferred_free>:
}
void malloc_deferred_free(
void *pointer
)
{
ffc04424: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED
ffc04428: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc0442c: 7c 64 1b 78 mr r4,r3 <== 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 );
ffc04430: 3c 60 00 00 lis r3,0 <== NOT EXECUTED
ffc04434: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
ffc04438: 38 63 2a f4 addi r3,r3,10996 <== NOT EXECUTED
ffc0443c: 48 00 46 39 bl ffc08a74 <_Chain_Append> <== NOT EXECUTED
rtems_chain_append(&RTEMS_Malloc_GC_list, (rtems_chain_node *)pointer);
}
ffc04440: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc04444: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc04448: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0444c: 4e 80 00 20 blr <== NOT EXECUTED
ffc04450 <malloc_deferred_frees_process>:
{
rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list);
}
void malloc_deferred_frees_process(void)
{
ffc04450: 94 21 ff f0 stwu r1,-16(r1)
ffc04454: 7c 08 02 a6 mflr r0
ffc04458: 93 e1 00 0c stw r31,12(r1)
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
ffc0445c: 3f e0 00 00 lis r31,0
ffc04460: 3b ff 2a f4 addi r31,r31,10996
ffc04464: 90 01 00 14 stw r0,20(r1)
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)
ffc04468: 48 00 00 08 b ffc04470 <malloc_deferred_frees_process+0x20>
free(to_be_freed);
ffc0446c: 4b ff fd d9 bl ffc04244 <free> <== NOT EXECUTED
ffc04470: 7f e3 fb 78 mr r3,r31
ffc04474: 48 00 46 31 bl ffc08aa4 <_Chain_Get>
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)
ffc04478: 2f 83 00 00 cmpwi cr7,r3,0
ffc0447c: 40 9e ff f0 bne+ cr7,ffc0446c <malloc_deferred_frees_process+0x1c>
free(to_be_freed);
}
ffc04480: 80 01 00 14 lwz r0,20(r1)
ffc04484: 83 e1 00 0c lwz r31,12(r1)
ffc04488: 38 21 00 10 addi r1,r1,16
ffc0448c: 7c 08 03 a6 mtlr r0
ffc04490: 4e 80 00 20 blr
ffc15b10 <memfile_check_rmnod>:
return memfile_check_rmnod( the_jnode );
}
int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){
ffc15b10: 94 21 ff f0 stwu r1,-16(r1)
ffc15b14: 7c 08 02 a6 mflr r0
ffc15b18: 93 e1 00 0c stw r31,12(r1)
ffc15b1c: 7c 7f 1b 78 mr r31,r3
ffc15b20: 90 01 00 14 stw r0,20(r1)
/*
* 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) ) {
ffc15b24: 4b ff d4 99 bl ffc12fbc <rtems_libio_is_file_open>
ffc15b28: 2f 83 00 00 cmpwi cr7,r3,0
ffc15b2c: 40 9e 00 44 bne- cr7,ffc15b70 <memfile_check_rmnod+0x60>
ffc15b30: a0 1f 00 34 lhz r0,52(r31)
ffc15b34: 2f 80 00 00 cmpwi cr7,r0,0
ffc15b38: 40 9e 00 38 bne- cr7,ffc15b70 <memfile_check_rmnod+0x60>
/*
* Is the rtems_filesystem_current is this node?
*/
if ( rtems_filesystem_current.node_access == the_jnode )
ffc15b3c: 3d 20 00 00 lis r9,0
ffc15b40: 81 29 26 f4 lwz r9,9972(r9)
ffc15b44: 81 69 00 04 lwz r11,4(r9)
ffc15b48: 7f 8b f8 00 cmpw cr7,r11,r31
ffc15b4c: 40 be 00 08 bne+ cr7,ffc15b54 <memfile_check_rmnod+0x44>
rtems_filesystem_current.node_access = NULL;
ffc15b50: 90 09 00 04 stw r0,4(r9) <== NOT EXECUTED
/*
* Free memory associated with a memory file.
*/
if (the_jnode->type != IMFS_LINEAR_FILE)
ffc15b54: 80 1f 00 4c lwz r0,76(r31)
ffc15b58: 2f 80 00 06 cmpwi cr7,r0,6
ffc15b5c: 41 9e 00 0c beq- cr7,ffc15b68 <memfile_check_rmnod+0x58>
IMFS_memfile_remove( the_jnode );
ffc15b60: 7f e3 fb 78 mr r3,r31
ffc15b64: 4b ff fd e1 bl ffc15944 <IMFS_memfile_remove>
free( the_jnode );
ffc15b68: 7f e3 fb 78 mr r3,r31
ffc15b6c: 4b fe fe bd bl ffc05a28 <free>
}
return 0;
}
ffc15b70: 80 01 00 14 lwz r0,20(r1)
ffc15b74: 38 60 00 00 li r3,0
ffc15b78: 83 e1 00 0c lwz r31,12(r1)
ffc15b7c: 38 21 00 10 addi r1,r1,16
ffc15b80: 7c 08 03 a6 mtlr r0
ffc15b84: 4e 80 00 20 blr
ffc15828 <memfile_free_blocks_in_table>:
void memfile_free_blocks_in_table(
block_p **block_table,
int entries
)
{
ffc15828: 94 21 ff e0 stwu r1,-32(r1)
ffc1582c: 7c 08 02 a6 mflr r0
ffc15830: 93 e1 00 1c stw r31,28(r1)
/*
* Perform internal consistency checks
*/
assert( block_table );
ffc15834: 7c 7f 1b 79 mr. r31,r3
void memfile_free_blocks_in_table(
block_p **block_table,
int entries
)
{
ffc15838: 93 61 00 0c stw r27,12(r1)
ffc1583c: 7c 9b 23 78 mr r27,r4
ffc15840: 90 01 00 24 stw r0,36(r1)
ffc15844: 93 81 00 10 stw r28,16(r1)
ffc15848: 93 a1 00 14 stw r29,20(r1)
ffc1584c: 93 c1 00 18 stw r30,24(r1)
/*
* Perform internal consistency checks
*/
assert( block_table );
ffc15850: 40 a2 00 28 bne+ ffc15878 <memfile_free_blocks_in_table+0x50>
ffc15854: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc15858: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc1585c: 38 a5 4d 84 addi r5,r5,19844 <== NOT EXECUTED
ffc15860: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc15864: 38 63 4e 46 addi r3,r3,20038 <== NOT EXECUTED
ffc15868: 38 a5 00 20 addi r5,r5,32 <== NOT EXECUTED
ffc1586c: 38 c6 4e ba addi r6,r6,20154 <== NOT EXECUTED
ffc15870: 38 80 01 b3 li r4,435 <== NOT EXECUTED
ffc15874: 4b fe fc cd bl ffc05540 <__assert_func> <== NOT EXECUTED
ffc15878: 83 df 00 00 lwz r30,0(r31)
ffc1587c: 3b a0 00 00 li r29,0
b = *block_table;
for ( i=0 ; i<entries ; i++ ) {
if ( b[i] ) {
memfile_free_block( b[i] );
b[i] = 0;
ffc15880: 3b 80 00 00 li r28,0
* Now go through all the slots in the table and free the memory.
*/
b = *block_table;
for ( i=0 ; i<entries ; i++ ) {
ffc15884: 48 00 00 20 b ffc158a4 <memfile_free_blocks_in_table+0x7c>
if ( b[i] ) {
ffc15888: 80 7e 00 00 lwz r3,0(r30)
ffc1588c: 2f 83 00 00 cmpwi cr7,r3,0
ffc15890: 41 9e 00 0c beq- cr7,ffc1589c <memfile_free_blocks_in_table+0x74>
memfile_free_block( b[i] );
ffc15894: 4b ff fc dd bl ffc15570 <memfile_free_block>
b[i] = 0;
ffc15898: 93 9e 00 00 stw r28,0(r30)
* Now go through all the slots in the table and free the memory.
*/
b = *block_table;
for ( i=0 ; i<entries ; i++ ) {
ffc1589c: 3b bd 00 01 addi r29,r29,1
ffc158a0: 3b de 00 04 addi r30,r30,4
ffc158a4: 7f 9d d8 00 cmpw cr7,r29,r27
ffc158a8: 41 9c ff e0 blt+ cr7,ffc15888 <memfile_free_blocks_in_table+0x60>
/*
* Now that all the blocks in the block table are free, we can
* free the block table itself.
*/
memfile_free_block( *block_table );
ffc158ac: 80 7f 00 00 lwz r3,0(r31)
ffc158b0: 4b ff fc c1 bl ffc15570 <memfile_free_block>
*block_table = 0;
ffc158b4: 38 00 00 00 li r0,0
ffc158b8: 90 1f 00 00 stw r0,0(r31)
}
ffc158bc: 80 01 00 24 lwz r0,36(r1)
ffc158c0: 83 61 00 0c lwz r27,12(r1)
ffc158c4: 7c 08 03 a6 mtlr r0
ffc158c8: 83 81 00 10 lwz r28,16(r1)
ffc158cc: 83 a1 00 14 lwz r29,20(r1)
ffc158d0: 83 c1 00 18 lwz r30,24(r1)
ffc158d4: 83 e1 00 1c lwz r31,28(r1)
ffc158d8: 38 21 00 20 addi r1,r1,32
ffc158dc: 4e 80 00 20 blr
ffc15eb4 <memfile_ftruncate>:
int memfile_ftruncate(
rtems_libio_t *iop,
rtems_off64_t length
)
{
ffc15eb4: 94 21 ff e0 stwu r1,-32(r1)
ffc15eb8: 7c 08 02 a6 mflr r0
ffc15ebc: 7c 69 1b 78 mr r9,r3
ffc15ec0: 90 01 00 24 stw r0,36(r1)
ffc15ec4: 93 e1 00 1c stw r31,28(r1)
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
ffc15ec8: 83 e3 00 3c lwz r31,60(r3)
* 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 )
ffc15ecc: 80 1f 00 50 lwz r0,80(r31)
ffc15ed0: 7f 80 28 00 cmpw cr7,r0,r5
ffc15ed4: 41 9c 00 14 blt- cr7,ffc15ee8 <memfile_ftruncate+0x34>
ffc15ed8: 40 be 00 1c bne+ cr7,ffc15ef4 <memfile_ftruncate+0x40>
ffc15edc: 80 1f 00 54 lwz r0,84(r31)
ffc15ee0: 7f 80 30 40 cmplw cr7,r0,r6
ffc15ee4: 40 bc 00 10 bge+ cr7,ffc15ef4 <memfile_ftruncate+0x40>
return IMFS_memfile_extend( the_jnode, length );
ffc15ee8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc15eec: 4b ff fe 05 bl ffc15cf0 <IMFS_memfile_extend> <== NOT EXECUTED
ffc15ef0: 48 00 00 2c b ffc15f1c <memfile_ftruncate+0x68> <== NOT EXECUTED
* The in-memory files do not currently reclaim memory until the file is
* deleted. So we leave the previously allocated blocks in place for
* future use and just set the length.
*/
the_jnode->info.file.size = length;
ffc15ef4: 90 bf 00 50 stw r5,80(r31)
iop->size = the_jnode->info.file.size;
IMFS_update_atime( the_jnode );
ffc15ef8: 38 61 00 08 addi r3,r1,8
ffc15efc: 38 80 00 00 li r4,0
* 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;
ffc15f00: 90 df 00 54 stw r6,84(r31)
iop->size = the_jnode->info.file.size;
ffc15f04: 90 c9 00 0c stw r6,12(r9)
ffc15f08: 90 a9 00 08 stw r5,8(r9)
IMFS_update_atime( the_jnode );
ffc15f0c: 4b fe fb e5 bl ffc05af0 <gettimeofday>
ffc15f10: 80 01 00 08 lwz r0,8(r1)
ffc15f14: 38 60 00 00 li r3,0
ffc15f18: 90 1f 00 40 stw r0,64(r31)
return 0;
}
ffc15f1c: 80 01 00 24 lwz r0,36(r1)
ffc15f20: 83 e1 00 1c lwz r31,28(r1)
ffc15f24: 38 21 00 20 addi r1,r1,32
ffc15f28: 7c 08 03 a6 mtlr r0
ffc15f2c: 4e 80 00 20 blr
ffc15f30 <memfile_lseek>:
rtems_off64_t memfile_lseek(
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
ffc15f30: 94 21 ff f0 stwu r1,-16(r1)
ffc15f34: 7c 08 02 a6 mflr r0
ffc15f38: 90 01 00 14 stw r0,20(r1)
ffc15f3c: 93 c1 00 08 stw r30,8(r1)
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
ffc15f40: 83 c3 00 3c lwz r30,60(r3)
rtems_off64_t memfile_lseek(
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
ffc15f44: 93 e1 00 0c stw r31,12(r1)
ffc15f48: 7c 7f 1b 78 mr r31,r3
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
if (the_jnode->type == IMFS_LINEAR_FILE) {
ffc15f4c: 80 1e 00 4c lwz r0,76(r30)
ffc15f50: 2f 80 00 06 cmpwi cr7,r0,6
ffc15f54: 40 9e 00 34 bne- cr7,ffc15f88 <memfile_lseek+0x58>
if (iop->offset > the_jnode->info.linearfile.size)
ffc15f58: 81 3e 00 50 lwz r9,80(r30) <== NOT EXECUTED
ffc15f5c: 81 63 00 10 lwz r11,16(r3) <== NOT EXECUTED
ffc15f60: 80 1e 00 54 lwz r0,84(r30) <== NOT EXECUTED
ffc15f64: 7f 8b 48 00 cmpw cr7,r11,r9 <== NOT EXECUTED
ffc15f68: 41 9d 00 14 bgt- cr7,ffc15f7c <memfile_lseek+0x4c> <== NOT EXECUTED
ffc15f6c: 40 9e 00 5c bne- cr7,ffc15fc8 <memfile_lseek+0x98> <== NOT EXECUTED
ffc15f70: 81 63 00 14 lwz r11,20(r3) <== NOT EXECUTED
ffc15f74: 7f 8b 00 40 cmplw cr7,r11,r0 <== NOT EXECUTED
ffc15f78: 40 9d 00 50 ble- cr7,ffc15fc8 <memfile_lseek+0x98> <== NOT EXECUTED
iop->offset = the_jnode->info.linearfile.size;
ffc15f7c: 91 3f 00 10 stw r9,16(r31) <== NOT EXECUTED
ffc15f80: 90 1f 00 14 stw r0,20(r31) <== NOT EXECUTED
ffc15f84: 48 00 00 44 b ffc15fc8 <memfile_lseek+0x98> <== NOT EXECUTED
}
else { /* Must be a block file (IMFS_MEMORY_FILE). */
if (IMFS_memfile_extend( the_jnode, iop->offset ))
ffc15f88: 80 a3 00 10 lwz r5,16(r3)
ffc15f8c: 80 c3 00 14 lwz r6,20(r3)
ffc15f90: 7f c3 f3 78 mr r3,r30
ffc15f94: 4b ff fd 5d bl ffc15cf0 <IMFS_memfile_extend>
ffc15f98: 2f 83 00 00 cmpwi cr7,r3,0
ffc15f9c: 41 be 00 1c beq+ cr7,ffc15fb8 <memfile_lseek+0x88>
rtems_set_errno_and_return_minus_one( ENOSPC );
ffc15fa0: 48 00 1f b1 bl ffc17f50 <__errno> <== NOT EXECUTED
ffc15fa4: 38 00 00 1c li r0,28 <== NOT EXECUTED
ffc15fa8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc15fac: 39 20 ff ff li r9,-1 <== NOT EXECUTED
ffc15fb0: 39 40 ff ff li r10,-1 <== NOT EXECUTED
ffc15fb4: 48 00 00 1c b ffc15fd0 <memfile_lseek+0xa0> <== NOT EXECUTED
iop->size = the_jnode->info.file.size;
ffc15fb8: 81 3e 00 50 lwz r9,80(r30)
ffc15fbc: 81 5e 00 54 lwz r10,84(r30)
ffc15fc0: 91 3f 00 08 stw r9,8(r31)
ffc15fc4: 91 5f 00 0c stw r10,12(r31)
}
return iop->offset;
ffc15fc8: 81 3f 00 10 lwz r9,16(r31)
ffc15fcc: 81 5f 00 14 lwz r10,20(r31)
}
ffc15fd0: 80 01 00 14 lwz r0,20(r1)
ffc15fd4: 7d 44 53 78 mr r4,r10
ffc15fd8: 7d 23 4b 78 mr r3,r9
ffc15fdc: 83 c1 00 08 lwz r30,8(r1)
ffc15fe0: 7c 08 03 a6 mtlr r0
ffc15fe4: 83 e1 00 0c lwz r31,12(r1)
ffc15fe8: 38 21 00 10 addi r1,r1,16
ffc15fec: 4e 80 00 20 blr
ffc1633c <memfile_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
ffc1633c: 94 21 ff f0 stwu r1,-16(r1)
ffc16340: 7c 08 02 a6 mflr r0
ffc16344: 90 01 00 14 stw r0,20(r1)
the_jnode = iop->file_info;
/*
* Perform 'copy on write' for linear files
*/
if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))
ffc16348: 80 03 00 18 lwz r0,24(r3)
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
ffc1634c: 93 c1 00 08 stw r30,8(r1)
ffc16350: 7c 7e 1b 78 mr r30,r3
the_jnode = iop->file_info;
/*
* Perform 'copy on write' for linear files
*/
if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))
ffc16354: 70 09 02 04 andi. r9,r0,516
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
ffc16358: 93 e1 00 0c stw r31,12(r1)
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
ffc1635c: 83 e3 00 3c lwz r31,60(r3)
/*
* Perform 'copy on write' for linear files
*/
if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))
ffc16360: 41 82 00 64 beq- ffc163c4 <memfile_open+0x88>
&& (the_jnode->type == IMFS_LINEAR_FILE)) {
ffc16364: 80 1f 00 4c lwz r0,76(r31)
ffc16368: 2f 80 00 06 cmpwi cr7,r0,6
ffc1636c: 40 be 00 58 bne+ cr7,ffc163c4 <memfile_open+0x88>
uint32_t count = the_jnode->info.linearfile.size;
ffc16370: 81 1f 00 54 lwz r8,84(r31) <== NOT EXECUTED
const unsigned char *buffer = the_jnode->info.linearfile.direct;
the_jnode->type = IMFS_MEMORY_FILE;
ffc16374: 39 20 00 05 li r9,5 <== NOT EXECUTED
the_jnode->info.file.size = 0;
the_jnode->info.file.indirect = 0;
ffc16378: 38 00 00 00 li r0,0 <== NOT EXECUTED
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;
the_jnode->type = IMFS_MEMORY_FILE;
ffc1637c: 91 3f 00 4c stw r9,76(r31) <== NOT EXECUTED
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)
ffc16380: 2f 88 00 00 cmpwi cr7,r8,0 <== 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;
ffc16384: 39 20 00 00 li r9,0 <== NOT EXECUTED
* 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;
ffc16388: 80 ff 00 58 lwz r7,88(r31) <== NOT EXECUTED
the_jnode->type = IMFS_MEMORY_FILE;
the_jnode->info.file.size = 0;
ffc1638c: 39 40 00 00 li r10,0 <== NOT EXECUTED
ffc16390: 91 3f 00 50 stw r9,80(r31) <== NOT EXECUTED
ffc16394: 91 5f 00 54 stw r10,84(r31) <== NOT EXECUTED
the_jnode->info.file.indirect = 0;
the_jnode->info.file.doubly_indirect = 0;
the_jnode->info.file.triply_indirect = 0;
ffc16398: 90 1f 00 60 stw r0,96(r31) <== NOT EXECUTED
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;
the_jnode->info.file.doubly_indirect = 0;
ffc1639c: 90 1f 00 5c stw r0,92(r31) <== 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;
ffc163a0: 90 1f 00 58 stw r0,88(r31) <== NOT EXECUTED
the_jnode->info.file.doubly_indirect = 0;
the_jnode->info.file.triply_indirect = 0;
if ((count != 0)
ffc163a4: 41 be 00 20 beq+ cr7,ffc163c4 <memfile_open+0x88> <== NOT EXECUTED
&& (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))
ffc163a8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc163ac: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc163b0: 38 c0 00 00 li r6,0 <== NOT EXECUTED
ffc163b4: 4b ff fc 3d bl ffc15ff0 <IMFS_memfile_write> <== 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)
ffc163b8: 2f 83 ff ff cmpwi cr7,r3,-1 <== NOT EXECUTED
ffc163bc: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc163c0: 41 9e 00 34 beq- cr7,ffc163f4 <memfile_open+0xb8> <== NOT EXECUTED
&& (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))
return -1;
}
if (iop->flags & LIBIO_FLAGS_APPEND)
ffc163c4: 80 1e 00 18 lwz r0,24(r30)
ffc163c8: 70 09 02 00 andi. r9,r0,512
ffc163cc: 41 82 00 14 beq- ffc163e0 <memfile_open+0xa4>
iop->offset = the_jnode->info.file.size;
ffc163d0: 81 3f 00 50 lwz r9,80(r31)
ffc163d4: 81 5f 00 54 lwz r10,84(r31)
ffc163d8: 91 3e 00 10 stw r9,16(r30)
ffc163dc: 91 5e 00 14 stw r10,20(r30)
iop->size = the_jnode->info.file.size;
ffc163e0: 81 3f 00 50 lwz r9,80(r31)
ffc163e4: 38 60 00 00 li r3,0
ffc163e8: 81 5f 00 54 lwz r10,84(r31)
ffc163ec: 91 3e 00 08 stw r9,8(r30)
ffc163f0: 91 5e 00 0c stw r10,12(r30)
return 0;
}
ffc163f4: 80 01 00 14 lwz r0,20(r1)
ffc163f8: 83 c1 00 08 lwz r30,8(r1)
ffc163fc: 7c 08 03 a6 mtlr r0
ffc16400: 83 e1 00 0c lwz r31,12(r1)
ffc16404: 38 21 00 10 addi r1,r1,16
ffc16408: 4e 80 00 20 blr
ffc046fc <mknod>:
int mknod(
const char *pathname,
mode_t mode,
dev_t dev
)
{
ffc046fc: 94 21 ff c0 stwu r1,-64(r1)
ffc04700: 7c 08 02 a6 mflr r0
ffc04704: 90 01 00 44 stw r0,68(r1)
rtems_filesystem_location_info_t temp_loc;
int i;
const char *name_start;
int result;
if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) )
ffc04708: 70 80 f0 00 andi. r0,r4,61440
int mknod(
const char *pathname,
mode_t mode,
dev_t dev
)
{
ffc0470c: 93 61 00 2c stw r27,44(r1)
ffc04710: 7c bb 2b 78 mr r27,r5
ffc04714: 93 81 00 30 stw r28,48(r1)
ffc04718: 7c dc 33 78 mr r28,r6
ffc0471c: 93 c1 00 38 stw r30,56(r1)
ffc04720: 7c 9e 23 78 mr r30,r4
ffc04724: 93 a1 00 34 stw r29,52(r1)
ffc04728: 93 e1 00 3c stw r31,60(r1)
rtems_filesystem_location_info_t temp_loc;
int i;
const char *name_start;
int result;
if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) )
ffc0472c: 40 a2 00 10 bne+ ffc0473c <mknod+0x40>
rtems_set_errno_and_return_minus_one( EINVAL );
ffc04730: 48 00 d4 95 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc04734: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc04738: 48 00 00 a0 b ffc047d8 <mknod+0xdc> <== NOT EXECUTED
rtems_filesystem_get_start_loc( pathname, &i, &temp_loc );
ffc0473c: 88 03 00 00 lbz r0,0(r3)
ffc04740: 2f 80 00 2f cmpwi cr7,r0,47
ffc04744: 41 9e 00 14 beq- cr7,ffc04758 <mknod+0x5c>
ffc04748: 2f 80 00 5c cmpwi cr7,r0,92
ffc0474c: 41 9e 00 0c beq- cr7,ffc04758 <mknod+0x5c>
ffc04750: 2f 80 00 00 cmpwi cr7,r0,0
ffc04754: 40 9e 00 38 bne- cr7,ffc0478c <mknod+0x90>
ffc04758: 3d 20 00 00 lis r9,0
ffc0475c: 81 29 26 dc lwz r9,9948(r9)
ffc04760: 39 60 00 01 li r11,1
ffc04764: 80 09 00 24 lwz r0,36(r9)
ffc04768: 80 e9 00 18 lwz r7,24(r9)
ffc0476c: 81 09 00 1c lwz r8,28(r9)
ffc04770: 81 49 00 20 lwz r10,32(r9)
ffc04774: 90 e1 00 0c stw r7,12(r1)
ffc04778: 91 01 00 10 stw r8,16(r1)
ffc0477c: 91 41 00 14 stw r10,20(r1)
ffc04780: 90 01 00 18 stw r0,24(r1)
ffc04784: 80 09 00 28 lwz r0,40(r9)
ffc04788: 48 00 00 34 b ffc047bc <mknod+0xc0>
ffc0478c: 3d 20 00 00 lis r9,0
ffc04790: 81 29 26 dc lwz r9,9948(r9)
ffc04794: 39 60 00 00 li r11,0
ffc04798: 80 09 00 10 lwz r0,16(r9)
ffc0479c: 80 e9 00 04 lwz r7,4(r9)
ffc047a0: 81 09 00 08 lwz r8,8(r9)
ffc047a4: 81 49 00 0c lwz r10,12(r9)
ffc047a8: 90 e1 00 0c stw r7,12(r1)
ffc047ac: 91 01 00 10 stw r8,16(r1)
ffc047b0: 91 41 00 14 stw r10,20(r1)
ffc047b4: 90 01 00 18 stw r0,24(r1)
ffc047b8: 80 09 00 14 lwz r0,20(r9)
if ( !temp_loc.ops->evalformake_h ) {
ffc047bc: 81 21 00 18 lwz r9,24(r1)
int result;
if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) )
rtems_set_errno_and_return_minus_one( EINVAL );
rtems_filesystem_get_start_loc( pathname, &i, &temp_loc );
ffc047c0: 90 01 00 1c stw r0,28(r1)
if ( !temp_loc.ops->evalformake_h ) {
ffc047c4: 80 09 00 04 lwz r0,4(r9)
ffc047c8: 2f 80 00 00 cmpwi cr7,r0,0
ffc047cc: 40 be 00 18 bne+ cr7,ffc047e4 <mknod+0xe8>
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc047d0: 48 00 d3 f5 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc047d4: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc047d8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc047dc: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
ffc047e0: 48 00 00 98 b ffc04878 <mknod+0x17c> <== NOT EXECUTED
}
result = (*temp_loc.ops->evalformake_h)(
ffc047e4: 3b e1 00 0c addi r31,r1,12
ffc047e8: 7c 09 03 a6 mtctr r0
ffc047ec: 7c 63 5a 14 add r3,r3,r11
ffc047f0: 7f e4 fb 78 mr r4,r31
ffc047f4: 38 a1 00 08 addi r5,r1,8
&pathname[i],
&temp_loc,
&name_start
);
if ( result != 0 )
ffc047f8: 3b a0 ff ff li r29,-1
if ( !temp_loc.ops->evalformake_h ) {
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*temp_loc.ops->evalformake_h)(
ffc047fc: 4e 80 04 21 bctrl
&pathname[i],
&temp_loc,
&name_start
);
if ( result != 0 )
ffc04800: 2f 83 00 00 cmpwi cr7,r3,0
ffc04804: 40 9e 00 74 bne- cr7,ffc04878 <mknod+0x17c>
return -1;
if ( !temp_loc.ops->mknod_h ) {
ffc04808: 81 21 00 18 lwz r9,24(r1)
ffc0480c: 80 09 00 14 lwz r0,20(r9)
ffc04810: 2f 80 00 00 cmpwi cr7,r0,0
ffc04814: 40 be 00 20 bne+ cr7,ffc04834 <mknod+0x138>
rtems_filesystem_freenode( &temp_loc );
ffc04818: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc0481c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc04820: 41 be ff b0 beq- cr7,ffc047d0 <mknod+0xd4> <== NOT EXECUTED
ffc04824: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc04828: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc0482c: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc04830: 4b ff ff a0 b ffc047d0 <mknod+0xd4> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc );
ffc04834: 7f c4 f3 78 mr r4,r30
ffc04838: 80 61 00 08 lwz r3,8(r1)
ffc0483c: 7f 65 db 78 mr r5,r27
ffc04840: 7c 09 03 a6 mtctr r0
ffc04844: 7f 86 e3 78 mr r6,r28
ffc04848: 7f e7 fb 78 mr r7,r31
ffc0484c: 4e 80 04 21 bctrl
rtems_filesystem_freenode( &temp_loc );
ffc04850: 81 21 00 18 lwz r9,24(r1)
if ( !temp_loc.ops->mknod_h ) {
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 );
ffc04854: 7c 7d 1b 78 mr r29,r3
rtems_filesystem_freenode( &temp_loc );
ffc04858: 2f 89 00 00 cmpwi cr7,r9,0
ffc0485c: 41 9e 00 1c beq- cr7,ffc04878 <mknod+0x17c>
ffc04860: 80 09 00 1c lwz r0,28(r9)
ffc04864: 2f 80 00 00 cmpwi cr7,r0,0
ffc04868: 41 9e 00 10 beq- cr7,ffc04878 <mknod+0x17c>
ffc0486c: 7f e3 fb 78 mr r3,r31
ffc04870: 7c 09 03 a6 mtctr r0
ffc04874: 4e 80 04 21 bctrl
return result;
}
ffc04878: 80 01 00 44 lwz r0,68(r1)
ffc0487c: 7f a3 eb 78 mr r3,r29
ffc04880: 83 61 00 2c lwz r27,44(r1)
ffc04884: 7c 08 03 a6 mtlr r0
ffc04888: 83 81 00 30 lwz r28,48(r1)
ffc0488c: 83 a1 00 34 lwz r29,52(r1)
ffc04890: 83 c1 00 38 lwz r30,56(r1)
ffc04894: 83 e1 00 3c lwz r31,60(r1)
ffc04898: 38 21 00 40 addi r1,r1,64
ffc0489c: 4e 80 00 20 blr
ffc048c4 <mount>:
const rtems_filesystem_operations_table *fs_ops,
rtems_filesystem_options_t options,
const char *device,
const char *mount_point
)
{
ffc048c4: 94 21 ff b8 stwu r1,-72(r1)
ffc048c8: 7c 08 02 a6 mflr r0
ffc048cc: 93 61 00 34 stw r27,52(r1)
/*
* Is there a file system operations table?
*/
if ( fs_ops == NULL ) {
ffc048d0: 7c 9b 23 79 mr. r27,r4
const rtems_filesystem_operations_table *fs_ops,
rtems_filesystem_options_t options,
const char *device,
const char *mount_point
)
{
ffc048d4: 93 21 00 2c stw r25,44(r1)
ffc048d8: 7c d9 33 78 mr r25,r6
ffc048dc: 93 41 00 30 stw r26,48(r1)
ffc048e0: 7c fa 3b 78 mr r26,r7
ffc048e4: 93 81 00 38 stw r28,56(r1)
ffc048e8: 7c 7c 1b 78 mr r28,r3
ffc048ec: 93 c1 00 40 stw r30,64(r1)
ffc048f0: 7c be 2b 78 mr r30,r5
ffc048f4: 90 01 00 4c stw r0,76(r1)
ffc048f8: 93 a1 00 3c stw r29,60(r1)
ffc048fc: 93 e1 00 44 stw r31,68(r1)
/*
* Is there a file system operations table?
*/
if ( fs_ops == NULL ) {
ffc04900: 41 82 00 0c beq- ffc0490c <mount+0x48>
/*
* Are the file system options valid?
*/
if ( options != RTEMS_FILESYSTEM_READ_ONLY &&
ffc04904: 2b 85 00 01 cmplwi cr7,r5,1
ffc04908: 40 bd 00 10 ble+ cr7,ffc04918 <mount+0x54>
options != RTEMS_FILESYSTEM_READ_WRITE ) {
errno = EINVAL;
ffc0490c: 48 00 d2 b9 bl ffc11bc4 <__errno>
ffc04910: 38 00 00 16 li r0,22
ffc04914: 48 00 00 5c b ffc04970 <mount+0xac>
return -1;
}
/* Do they support being mounted at all ? */
if ( !fs_ops->fsmount_me_h ) {
ffc04918: 80 1b 00 24 lwz r0,36(r27)
ffc0491c: 2f 80 00 00 cmpwi cr7,r0,0
ffc04920: 40 be 00 1c bne+ cr7,ffc0493c <mount+0x78>
errno = ENOTSUP;
ffc04924: 48 00 d2 a1 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc04928: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc0492c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc04930: 3b c0 00 00 li r30,0 <== NOT EXECUTED
ffc04934: 3b a0 00 00 li r29,0 <== NOT EXECUTED
goto cleanup_and_bail;
ffc04938: 48 00 01 d0 b ffc04b08 <mount+0x244> <== NOT EXECUTED
/*
* Allocate a mount table entry
*/
size = sizeof(rtems_filesystem_mount_table_entry_t);
if ( device )
ffc0493c: 2f 86 00 00 cmpwi cr7,r6,0
ffc04940: 38 60 00 6c li r3,108
ffc04944: 41 9e 00 10 beq- cr7,ffc04954 <mount+0x90>
size += strlen( device ) + 1;
ffc04948: 7c c3 33 78 mr r3,r6 <== NOT EXECUTED
ffc0494c: 48 00 e5 75 bl ffc12ec0 <strlen> <== NOT EXECUTED
ffc04950: 38 63 00 6d addi r3,r3,109 <== NOT EXECUTED
temp_mt_entry = malloc( size );
ffc04954: 4b ff fc 55 bl ffc045a8 <malloc>
if ( !temp_mt_entry ) {
ffc04958: 2f 83 00 00 cmpwi cr7,r3,0
*/
size = sizeof(rtems_filesystem_mount_table_entry_t);
if ( device )
size += strlen( device ) + 1;
temp_mt_entry = malloc( size );
ffc0495c: 7c 7f 1b 78 mr r31,r3
ffc04960: 7c 7d 1b 78 mr r29,r3
if ( !temp_mt_entry ) {
ffc04964: 40 be 00 14 bne+ cr7,ffc04978 <mount+0xb4>
errno = ENOMEM;
ffc04968: 48 00 d2 5d bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc0496c: 38 00 00 0c li r0,12 <== NOT EXECUTED
ffc04970: 90 03 00 00 stw r0,0(r3)
ffc04974: 48 00 01 c8 b ffc04b3c <mount+0x278>
return -1;
}
temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry;
temp_mt_entry->options = options;
if ( device ) {
ffc04978: 2f 99 00 00 cmpwi cr7,r25,0
errno = ENOMEM;
return -1;
}
temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry;
temp_mt_entry->options = options;
ffc0497c: 93 c3 00 30 stw r30,48(r3)
if ( !temp_mt_entry ) {
errno = ENOMEM;
return -1;
}
temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry;
ffc04980: 90 7f 00 2c stw r3,44(r31)
temp_mt_entry->options = options;
if ( device ) {
ffc04984: 41 9e 00 1c beq- cr7,ffc049a0 <mount+0xdc>
temp_mt_entry->dev =
(char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t );
ffc04988: 38 03 00 6c addi r0,r3,108 <== NOT EXECUTED
strcpy( temp_mt_entry->dev, device );
ffc0498c: 7c 03 03 78 mr r3,r0 <== NOT EXECUTED
}
temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry;
temp_mt_entry->options = options;
if ( device ) {
temp_mt_entry->dev =
ffc04990: 90 1f 00 68 stw r0,104(r31) <== NOT EXECUTED
(char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t );
strcpy( temp_mt_entry->dev, device );
ffc04994: 7f 24 cb 78 mr r4,r25 <== NOT EXECUTED
ffc04998: 48 00 e4 b1 bl ffc12e48 <strcpy> <== NOT EXECUTED
ffc0499c: 48 00 00 08 b ffc049a4 <mount+0xe0> <== NOT EXECUTED
} else
temp_mt_entry->dev = 0;
ffc049a0: 93 23 00 68 stw r25,104(r3)
/*
* The mount_point should be a directory with read/write/execute
* permissions in the existing tree.
*/
if ( mount_point ) {
ffc049a4: 2f 9a 00 00 cmpwi cr7,r26,0
ffc049a8: 41 9e 00 e0 beq- cr7,ffc04a88 <mount+0x1c4>
if ( rtems_filesystem_evaluate_path(
mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 )
ffc049ac: 7f 43 d3 78 mr r3,r26
ffc049b0: 48 00 e5 11 bl ffc12ec0 <strlen>
* permissions in the existing tree.
*/
if ( mount_point ) {
if ( rtems_filesystem_evaluate_path(
ffc049b4: 3b c1 00 08 addi r30,r1,8
mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 )
ffc049b8: 7c 64 1b 78 mr r4,r3
* permissions in the existing tree.
*/
if ( mount_point ) {
if ( rtems_filesystem_evaluate_path(
ffc049bc: 38 a0 00 07 li r5,7
ffc049c0: 7f 43 d3 78 mr r3,r26
ffc049c4: 7f c6 f3 78 mr r6,r30
ffc049c8: 38 e0 00 01 li r7,1
ffc049cc: 4b ff f7 95 bl ffc04160 <rtems_filesystem_evaluate_path>
ffc049d0: 2f 83 ff ff cmpwi cr7,r3,-1
ffc049d4: 41 9e 01 30 beq- cr7,ffc04b04 <mount+0x240>
/*
* Test for node_type_h
*/
if (!loc.ops->node_type_h) {
ffc049d8: 81 21 00 14 lwz r9,20(r1)
ffc049dc: 80 09 00 10 lwz r0,16(r9)
ffc049e0: 2f 80 00 00 cmpwi cr7,r0,0
ffc049e4: 40 be 00 10 bne+ cr7,ffc049f4 <mount+0x130>
errno = ENOTSUP;
ffc049e8: 48 00 d1 dd bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc049ec: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc049f0: 48 00 00 20 b ffc04a10 <mount+0x14c> <== NOT EXECUTED
/*
* Test to see if it is a directory
*/
if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
ffc049f4: 7f c3 f3 78 mr r3,r30
ffc049f8: 7c 09 03 a6 mtctr r0
ffc049fc: 4e 80 04 21 bctrl
ffc04a00: 2f 83 00 01 cmpwi cr7,r3,1
ffc04a04: 41 be 00 14 beq+ cr7,ffc04a18 <mount+0x154>
errno = ENOTDIR;
ffc04a08: 48 00 d1 bd bl ffc11bc4 <__errno>
ffc04a0c: 38 00 00 14 li r0,20
ffc04a10: 90 03 00 00 stw r0,0(r3)
goto cleanup_and_bail;
ffc04a14: 48 00 00 f4 b ffc04b08 <mount+0x244>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
ffc04a18: 3d 60 00 00 lis r11,0
/*
* For each mount table entry
*/
for ( the_node = rtems_filesystem_mount_table_control.first;
ffc04a1c: 3d 20 00 00 lis r9,0
ffc04a20: 38 0b 2b 34 addi r0,r11,11060
ffc04a24: 81 29 2b 30 lwz r9,11056(r9)
!rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node );
the_node = the_node->next ) {
the_mount_entry = (rtems_filesystem_mount_table_entry_t *) the_node;
if ( the_mount_entry->mt_fs_root.node_access == loc->node_access )
ffc04a28: 81 61 00 08 lwz r11,8(r1)
ffc04a2c: 48 00 00 14 b ffc04a40 <mount+0x17c>
ffc04a30: 81 49 00 1c lwz r10,28(r9)
ffc04a34: 7f 8a 58 00 cmpw cr7,r10,r11
ffc04a38: 41 9e 00 14 beq- cr7,ffc04a4c <mount+0x188>
* For each mount table entry
*/
for ( the_node = rtems_filesystem_mount_table_control.first;
!rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node );
the_node = the_node->next ) {
ffc04a3c: 81 29 00 00 lwz r9,0(r9)
ffc04a40: 7f 89 00 00 cmpw cr7,r9,r0
ffc04a44: 40 9e ff ec bne+ cr7,ffc04a30 <mount+0x16c>
ffc04a48: 48 00 01 24 b ffc04b6c <mount+0x2a8>
/*
* You can only mount one file system onto a single mount point.
*/
if ( Is_node_fs_root( &loc ) ){
errno = EBUSY;
ffc04a4c: 48 00 d1 79 bl ffc11bc4 <__errno>
ffc04a50: 38 00 00 10 li r0,16
ffc04a54: 48 00 00 0c b ffc04a60 <mount+0x19c>
* 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;
ffc04a58: 48 00 d1 6d bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc04a5c: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc04a60: 90 03 00 00 stw r0,0(r3)
ffc04a64: 3b c1 00 08 addi r30,r1,8
goto cleanup_and_bail;
ffc04a68: 48 00 00 a0 b ffc04b08 <mount+0x244>
}
if ( loc.ops->mount_h( temp_mt_entry ) ) {
ffc04a6c: 7f e3 fb 78 mr r3,r31
ffc04a70: 7c 09 03 a6 mtctr r0
ffc04a74: 3b c1 00 08 addi r30,r1,8
ffc04a78: 4e 80 04 21 bctrl
ffc04a7c: 2f 83 00 00 cmpwi cr7,r3,0
ffc04a80: 41 be 00 28 beq+ cr7,ffc04aa8 <mount+0x1e4>
ffc04a84: 48 00 00 84 b ffc04b08 <mount+0x244> <== NOT EXECUTED
temp_mt_entry->mt_fs_root.ops = NULL;
temp_mt_entry->mt_point_node.node_access = NULL;
temp_mt_entry->mt_point_node.handlers = NULL;
temp_mt_entry->mt_point_node.ops = NULL;
temp_mt_entry->mt_point_node.mt_entry = NULL;
ffc04a88: 93 5f 00 18 stw r26,24(r31)
ffc04a8c: 3b c0 00 00 li r30,0
* This is a mount of the base file system --> The
* mt_point_node.node_access will be set to null to indicate that this
* is the root of the entire file system.
*/
temp_mt_entry->mt_fs_root.node_access = NULL;
ffc04a90: 93 5f 00 1c stw r26,28(r31)
temp_mt_entry->mt_fs_root.handlers = NULL;
ffc04a94: 93 5f 00 24 stw r26,36(r31)
temp_mt_entry->mt_fs_root.ops = NULL;
ffc04a98: 93 5f 00 28 stw r26,40(r31)
temp_mt_entry->mt_point_node.node_access = NULL;
ffc04a9c: 93 5f 00 08 stw r26,8(r31)
temp_mt_entry->mt_point_node.handlers = NULL;
ffc04aa0: 93 5f 00 10 stw r26,16(r31)
temp_mt_entry->mt_point_node.ops = NULL;
ffc04aa4: 93 5f 00 14 stw r26,20(r31)
temp_mt_entry->mt_point_node.mt_entry = NULL;
}
if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) {
ffc04aa8: 80 1b 00 24 lwz r0,36(r27)
ffc04aac: 7f e3 fb 78 mr r3,r31
ffc04ab0: 7c 09 03 a6 mtctr r0
ffc04ab4: 4e 80 04 21 bctrl
ffc04ab8: 2f 83 00 00 cmpwi cr7,r3,0
ffc04abc: 41 be 00 24 beq+ cr7,ffc04ae0 <mount+0x21c>
/* try to undo the mount operation */
if ( loc.ops->unmount_h ) {
ffc04ac0: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED
ffc04ac4: 80 09 00 28 lwz r0,40(r9) <== NOT EXECUTED
ffc04ac8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc04acc: 41 9e 00 3c beq- cr7,ffc04b08 <mount+0x244> <== NOT EXECUTED
loc.ops->unmount_h( temp_mt_entry );
ffc04ad0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc04ad4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc04ad8: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc04adc: 48 00 00 2c b ffc04b08 <mount+0x244> <== 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 );
ffc04ae0: 3c 60 00 00 lis r3,0
ffc04ae4: 38 63 2b 30 addi r3,r3,11056
ffc04ae8: 7f e4 fb 78 mr r4,r31
ffc04aec: 48 00 3f 89 bl ffc08a74 <_Chain_Append>
*/
rtems_chain_append( &rtems_filesystem_mount_table_control,
&temp_mt_entry->Node );
if ( mt_entry )
ffc04af0: 2f 9c 00 00 cmpwi cr7,r28,0
ffc04af4: 38 60 00 00 li r3,0
ffc04af8: 41 9e 00 48 beq- cr7,ffc04b40 <mount+0x27c>
*mt_entry = temp_mt_entry;
ffc04afc: 93 fc 00 00 stw r31,0(r28)
ffc04b00: 48 00 00 40 b ffc04b40 <mount+0x27c>
ffc04b04: 3b c0 00 00 li r30,0 <== NOT EXECUTED
return 0;
cleanup_and_bail:
free( temp_mt_entry );
ffc04b08: 7f a3 eb 78 mr r3,r29
ffc04b0c: 4b ff f7 39 bl ffc04244 <free>
if ( loc_to_free )
ffc04b10: 2f 9e 00 00 cmpwi cr7,r30,0
ffc04b14: 41 be 00 28 beq+ cr7,ffc04b3c <mount+0x278>
rtems_filesystem_freenode( loc_to_free );
ffc04b18: 81 3e 00 0c lwz r9,12(r30)
ffc04b1c: 2f 89 00 00 cmpwi cr7,r9,0
ffc04b20: 41 be 00 1c beq+ cr7,ffc04b3c <mount+0x278>
ffc04b24: 80 09 00 1c lwz r0,28(r9)
ffc04b28: 2f 80 00 00 cmpwi cr7,r0,0
ffc04b2c: 41 be 00 10 beq+ cr7,ffc04b3c <mount+0x278>
ffc04b30: 7f c3 f3 78 mr r3,r30
ffc04b34: 7c 09 03 a6 mtctr r0
ffc04b38: 4e 80 04 21 bctrl
ffc04b3c: 38 60 ff ff li r3,-1
return -1;
}
ffc04b40: 80 01 00 4c lwz r0,76(r1)
ffc04b44: 83 21 00 2c lwz r25,44(r1)
ffc04b48: 7c 08 03 a6 mtlr r0
ffc04b4c: 83 41 00 30 lwz r26,48(r1)
ffc04b50: 83 61 00 34 lwz r27,52(r1)
ffc04b54: 83 81 00 38 lwz r28,56(r1)
ffc04b58: 83 a1 00 3c lwz r29,60(r1)
ffc04b5c: 83 c1 00 40 lwz r30,64(r1)
ffc04b60: 83 e1 00 44 lwz r31,68(r1)
ffc04b64: 38 21 00 48 addi r1,r1,72
ffc04b68: 4e 80 00 20 blr
* traverse the tree.
*/
temp_mt_entry->mt_point_node.node_access = loc.node_access;
temp_mt_entry->mt_point_node.handlers = loc.handlers;
temp_mt_entry->mt_point_node.ops = loc.ops;
ffc04b6c: 81 21 00 14 lwz r9,20(r1)
* 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.
*/
temp_mt_entry->mt_point_node.node_access = loc.node_access;
ffc04b70: 91 7f 00 08 stw r11,8(r31)
/*
* This link to the parent is only done when we are dealing with system
* below the base file system
*/
if ( !loc.ops->mount_h ){
ffc04b74: 80 09 00 20 lwz r0,32(r9)
* until the system is unmounted. It may be needed to correctly
* traverse the tree.
*/
temp_mt_entry->mt_point_node.node_access = loc.node_access;
temp_mt_entry->mt_point_node.handlers = loc.handlers;
ffc04b78: 81 61 00 10 lwz r11,16(r1)
/*
* This link to the parent is only done when we are dealing with system
* below the base file system
*/
if ( !loc.ops->mount_h ){
ffc04b7c: 2f 80 00 00 cmpwi cr7,r0,0
* traverse the tree.
*/
temp_mt_entry->mt_point_node.node_access = loc.node_access;
temp_mt_entry->mt_point_node.handlers = loc.handlers;
temp_mt_entry->mt_point_node.ops = loc.ops;
ffc04b80: 91 3f 00 14 stw r9,20(r31)
* until the system is unmounted. It may be needed to correctly
* traverse the tree.
*/
temp_mt_entry->mt_point_node.node_access = loc.node_access;
temp_mt_entry->mt_point_node.handlers = loc.handlers;
ffc04b84: 91 7f 00 10 stw r11,16(r31)
temp_mt_entry->mt_point_node.ops = loc.ops;
temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry;
ffc04b88: 81 61 00 18 lwz r11,24(r1)
ffc04b8c: 91 7f 00 18 stw r11,24(r31)
/*
* This link to the parent is only done when we are dealing with system
* below the base file system
*/
if ( !loc.ops->mount_h ){
ffc04b90: 40 9e fe dc bne+ cr7,ffc04a6c <mount+0x1a8>
ffc04b94: 4b ff fe c4 b ffc04a58 <mount+0x194> <== NOT EXECUTED
ffc04c38 <newlib_free_buffers>:
*/
int newlib_free_buffers(
FILE *fp
)
{
ffc04c38: 94 21 ff f0 stwu r1,-16(r1)
ffc04c3c: 7c 08 02 a6 mflr r0
ffc04c40: 93 e1 00 0c stw r31,12(r1)
ffc04c44: 7c 7f 1b 78 mr r31,r3
ffc04c48: 90 01 00 14 stw r0,20(r1)
switch ( fileno(fp) ) {
ffc04c4c: 48 00 d4 4d bl ffc12098 <fileno>
ffc04c50: 2b 83 00 02 cmplwi cr7,r3,2
ffc04c54: 41 9d 00 34 bgt- cr7,ffc04c88 <newlib_free_buffers+0x50>
case 0:
case 1:
case 2:
if (fp->_flags & __SMBF) {
ffc04c58: a0 1f 00 0c lhz r0,12(r31)
ffc04c5c: 70 09 00 80 andi. r9,r0,128
ffc04c60: 41 a2 00 30 beq+ ffc04c90 <newlib_free_buffers+0x58>
free( fp->_bf._base );
ffc04c64: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED
ffc04c68: 4b ff f5 dd bl ffc04244 <free> <== NOT EXECUTED
fp->_flags &= ~__SMBF;
ffc04c6c: a1 3f 00 0c lhz r9,12(r31) <== NOT EXECUTED
fp->_bf._base = fp->_p = (unsigned char *) NULL;
ffc04c70: 38 00 00 00 li r0,0 <== NOT EXECUTED
case 0:
case 1:
case 2:
if (fp->_flags & __SMBF) {
free( fp->_bf._base );
fp->_flags &= ~__SMBF;
ffc04c74: 55 29 06 6e rlwinm r9,r9,0,25,23 <== NOT EXECUTED
fp->_bf._base = fp->_p = (unsigned char *) NULL;
ffc04c78: 90 1f 00 10 stw r0,16(r31) <== NOT EXECUTED
case 0:
case 1:
case 2:
if (fp->_flags & __SMBF) {
free( fp->_bf._base );
fp->_flags &= ~__SMBF;
ffc04c7c: b1 3f 00 0c sth r9,12(r31) <== NOT EXECUTED
fp->_bf._base = fp->_p = (unsigned char *) NULL;
ffc04c80: 90 1f 00 00 stw r0,0(r31) <== NOT EXECUTED
ffc04c84: 48 00 00 0c b ffc04c90 <newlib_free_buffers+0x58> <== NOT EXECUTED
}
break;
default:
fclose(fp);
ffc04c88: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc04c8c: 48 00 d0 d9 bl ffc11d64 <fclose> <== NOT EXECUTED
}
return 0;
}
ffc04c90: 80 01 00 14 lwz r0,20(r1)
ffc04c94: 38 60 00 00 li r3,0
ffc04c98: 83 e1 00 0c lwz r31,12(r1)
ffc04c9c: 38 21 00 10 addi r1,r1,16
ffc04ca0: 7c 08 03 a6 mtlr r0
ffc04ca4: 4e 80 00 20 blr
ffc04a70 <null_initialize>:
rtems_device_driver null_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor __attribute__((unused)),
void *pargp __attribute__((unused))
)
{
ffc04a70: 94 21 ff f0 stwu r1,-16(r1)
ffc04a74: 7c 08 02 a6 mflr r0
rtems_device_driver status;
if ( !initialized ) {
ffc04a78: 3d 20 00 00 lis r9,0
rtems_device_driver null_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor __attribute__((unused)),
void *pargp __attribute__((unused))
)
{
ffc04a7c: 90 01 00 14 stw r0,20(r1)
rtems_device_driver status;
if ( !initialized ) {
ffc04a80: 88 09 29 20 lbz r0,10528(r9)
rtems_device_driver null_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor __attribute__((unused)),
void *pargp __attribute__((unused))
)
{
ffc04a84: 93 e1 00 0c stw r31,12(r1)
ffc04a88: 7c 7f 1b 78 mr r31,r3
rtems_device_driver status;
if ( !initialized ) {
ffc04a8c: 2f 80 00 00 cmpwi cr7,r0,0
ffc04a90: 40 be 00 34 bne+ cr7,ffc04ac4 <null_initialize+0x54>
initialized = 1;
status = rtems_io_register_name(
ffc04a94: 3c 60 ff c2 lis r3,-62
)
{
rtems_device_driver status;
if ( !initialized ) {
initialized = 1;
ffc04a98: 38 00 00 01 li r0,1
status = rtems_io_register_name(
ffc04a9c: 38 63 23 e6 addi r3,r3,9190
)
{
rtems_device_driver status;
if ( !initialized ) {
initialized = 1;
ffc04aa0: 98 09 29 20 stb r0,10528(r9)
status = rtems_io_register_name(
ffc04aa4: 7f e4 fb 78 mr r4,r31
ffc04aa8: 38 a0 00 00 li r5,0
ffc04aac: 48 00 01 79 bl ffc04c24 <rtems_io_register_name>
"/dev/null",
major,
(rtems_device_minor_number) 0
);
if (status != RTEMS_SUCCESSFUL)
ffc04ab0: 2f 83 00 00 cmpwi cr7,r3,0
ffc04ab4: 41 be 00 08 beq+ cr7,ffc04abc <null_initialize+0x4c>
rtems_fatal_error_occurred(status);
ffc04ab8: 48 00 4d d1 bl ffc09888 <rtems_fatal_error_occurred> <== NOT EXECUTED
NULL_major = major;
ffc04abc: 3d 20 00 00 lis r9,0
ffc04ac0: 93 e9 27 cc stw r31,10188(r9)
}
return RTEMS_SUCCESSFUL;
}
ffc04ac4: 80 01 00 14 lwz r0,20(r1)
ffc04ac8: 38 60 00 00 li r3,0
ffc04acc: 83 e1 00 0c lwz r31,12(r1)
ffc04ad0: 38 21 00 10 addi r1,r1,16
ffc04ad4: 7c 08 03 a6 mtlr r0
ffc04ad8: 4e 80 00 20 blr
ffc04a50 <null_write>:
void *pargp
)
{
rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp;
if ( rw_args )
ffc04a50: 2c 05 00 00 cmpwi r5,0
ffc04a54: 41 82 00 0c beq- ffc04a60 <null_write+0x10>
rw_args->bytes_moved = rw_args->count;
ffc04a58: 80 05 00 14 lwz r0,20(r5) <== NOT EXECUTED
ffc04a5c: 90 05 00 1c stw r0,28(r5) <== NOT EXECUTED
return NULL_SUCCESSFUL;
}
ffc04a60: 38 60 00 00 li r3,0
ffc04a64: 4e 80 00 20 blr
ffc04f14 <open>:
int open(
const char *pathname,
int flags,
...
)
{
ffc04f14: 94 21 ff b0 stwu r1,-80(r1)
ffc04f18: 7c 08 02 a6 mflr r0
ffc04f1c: 93 41 00 38 stw r26,56(r1)
/*
* Set the Evaluation flags
*/
eval_flags = 0;
status = flags + 1;
ffc04f20: 3b 44 00 01 addi r26,r4,1
int open(
const char *pathname,
int flags,
...
)
{
ffc04f24: 90 01 00 54 stw r0,84(r1)
eval_flags = 0;
status = flags + 1;
if ( ( status & _FREAD ) == _FREAD )
eval_flags |= RTEMS_LIBIO_PERMS_READ;
if ( ( status & _FWRITE ) == _FWRITE )
ffc04f28: 73 40 00 02 andi. r0,r26,2
* Set the Evaluation flags
*/
eval_flags = 0;
status = flags + 1;
if ( ( status & _FREAD ) == _FREAD )
ffc04f2c: 57 5a 17 7a rlwinm r26,r26,2,29,29
int open(
const char *pathname,
int flags,
...
)
{
ffc04f30: 93 a1 00 44 stw r29,68(r1)
ffc04f34: 7c 7d 1b 78 mr r29,r3
ffc04f38: 93 c1 00 48 stw r30,72(r1)
ffc04f3c: 7c 9e 23 78 mr r30,r4
ffc04f40: 93 21 00 34 stw r25,52(r1)
ffc04f44: 93 61 00 3c stw r27,60(r1)
ffc04f48: 93 81 00 40 stw r28,64(r1)
ffc04f4c: 93 e1 00 4c stw r31,76(r1)
ffc04f50: 90 a1 00 28 stw r5,40(r1)
eval_flags = 0;
status = flags + 1;
if ( ( status & _FREAD ) == _FREAD )
eval_flags |= RTEMS_LIBIO_PERMS_READ;
if ( ( status & _FWRITE ) == _FWRITE )
ffc04f54: 41 82 00 08 beq- ffc04f5c <open+0x48>
eval_flags |= RTEMS_LIBIO_PERMS_WRITE;
ffc04f58: 63 5a 00 02 ori r26,r26,2
va_start(ap, flags);
ffc04f5c: 38 01 00 58 addi r0,r1,88
ffc04f60: 39 21 00 20 addi r9,r1,32
ffc04f64: 90 01 00 0c stw r0,12(r1)
mode = va_arg( ap, int );
ffc04f68: 38 00 00 03 li r0,3
ffc04f6c: 98 01 00 08 stb r0,8(r1)
* descriptors are obtained using socket(), not open().
*/
/* allocate a file control block */
iop = rtems_libio_allocate();
if ( iop == 0 ) {
ffc04f70: 3b 20 00 17 li r25,23
eval_flags |= RTEMS_LIBIO_PERMS_READ;
if ( ( status & _FWRITE ) == _FWRITE )
eval_flags |= RTEMS_LIBIO_PERMS_WRITE;
va_start(ap, flags);
ffc04f74: 91 21 00 10 stw r9,16(r1)
mode = va_arg( ap, int );
ffc04f78: 83 69 00 08 lwz r27,8(r9)
* 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();
ffc04f7c: 48 00 86 59 bl ffc0d5d4 <rtems_libio_allocate>
if ( iop == 0 ) {
ffc04f80: 7c 7f 1b 79 mr. r31,r3
ffc04f84: 41 82 02 20 beq- ffc051a4 <open+0x290>
/*
* See if the file exists.
*/
status = rtems_filesystem_evaluate_path(
pathname, strlen( pathname ), eval_flags, &loc, true );
ffc04f88: 7f a3 eb 78 mr r3,r29
ffc04f8c: 48 00 df 35 bl ffc12ec0 <strlen>
/*
* See if the file exists.
*/
status = rtems_filesystem_evaluate_path(
ffc04f90: 3b 81 00 14 addi r28,r1,20
pathname, strlen( pathname ), eval_flags, &loc, true );
ffc04f94: 7c 64 1b 78 mr r4,r3
/*
* See if the file exists.
*/
status = rtems_filesystem_evaluate_path(
ffc04f98: 7f 45 d3 78 mr r5,r26
ffc04f9c: 7f a3 eb 78 mr r3,r29
ffc04fa0: 7f 86 e3 78 mr r6,r28
ffc04fa4: 38 e0 00 01 li r7,1
ffc04fa8: 4b ff f1 b9 bl ffc04160 <rtems_filesystem_evaluate_path>
pathname, strlen( pathname ), eval_flags, &loc, true );
if ( status == -1 ) {
ffc04fac: 2f 83 ff ff cmpwi cr7,r3,-1
ffc04fb0: 40 be 00 90 bne+ cr7,ffc05040 <open+0x12c>
if ( errno != ENOENT ) {
ffc04fb4: 48 00 cc 11 bl ffc11bc4 <__errno>
ffc04fb8: 80 03 00 00 lwz r0,0(r3)
ffc04fbc: 2f 80 00 02 cmpwi cr7,r0,2
ffc04fc0: 41 9e 00 14 beq- cr7,ffc04fd4 <open+0xc0>
rc = errno;
ffc04fc4: 48 00 cc 01 bl ffc11bc4 <__errno>
ffc04fc8: 3b 40 00 00 li r26,0
ffc04fcc: 83 23 00 00 lwz r25,0(r3)
goto done;
ffc04fd0: 48 00 01 90 b ffc05160 <open+0x24c>
}
/* If the file does not exist and we are not trying to create it--> error */
if ( !(flags & O_CREAT) ) {
ffc04fd4: 73 c0 02 00 andi. r0,r30,512
ffc04fd8: 3b 40 00 00 li r26,0
ffc04fdc: 3b 20 00 02 li r25,2
ffc04fe0: 41 a2 01 88 beq+ ffc05168 <open+0x254>
rc = ENOENT;
goto done;
}
/* Create the node for the new regular file */
rc = mknod( pathname, S_IFREG | mode, 0LL );
ffc04fe4: 7f a3 eb 78 mr r3,r29
ffc04fe8: 63 64 80 00 ori r4,r27,32768
ffc04fec: 38 a0 00 00 li r5,0
ffc04ff0: 38 c0 00 00 li r6,0
ffc04ff4: 4b ff f7 09 bl ffc046fc <mknod>
if ( rc ) {
ffc04ff8: 2f 83 00 00 cmpwi cr7,r3,0
ffc04ffc: 41 9e 00 10 beq- cr7,ffc0500c <open+0xf8>
rc = errno;
ffc05000: 48 00 cb c5 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc05004: 83 23 00 00 lwz r25,0(r3) <== NOT EXECUTED
goto done;
ffc05008: 48 00 01 58 b ffc05160 <open+0x24c> <== NOT EXECUTED
}
/* Sanity check to see if the file name exists after the mknod() */
status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 0x0, &loc, true );
ffc0500c: 7f a3 eb 78 mr r3,r29
ffc05010: 48 00 de b1 bl ffc12ec0 <strlen>
ffc05014: 7f 86 e3 78 mr r6,r28
ffc05018: 7c 64 1b 78 mr r4,r3
ffc0501c: 38 a0 00 00 li r5,0
ffc05020: 7f a3 eb 78 mr r3,r29
ffc05024: 38 e0 00 01 li r7,1
ffc05028: 4b ff f1 39 bl ffc04160 <rtems_filesystem_evaluate_path>
if ( status != 0 ) { /* The file did not exist */
ffc0502c: 3b 40 00 00 li r26,0
ffc05030: 2f 83 00 00 cmpwi cr7,r3,0
ffc05034: 3b 20 00 0d li r25,13
ffc05038: 40 9e 01 30 bne- cr7,ffc05168 <open+0x254>
ffc0503c: 48 00 00 18 b ffc05054 <open+0x140>
rc = EACCES;
goto done;
}
} else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) {
ffc05040: 73 c0 0a 00 andi. r0,r30,2560
ffc05044: 7f 9a e3 78 mr r26,r28
ffc05048: 3b 20 00 11 li r25,17
ffc0504c: 2f 80 0a 00 cmpwi cr7,r0,2560
ffc05050: 41 9e 01 18 beq- cr7,ffc05168 <open+0x254>
/*
* Fill in the file control block based on the loc structure
* returned by successful path evaluation.
*/
iop->handlers = loc.handlers;
ffc05054: 80 01 00 1c lwz r0,28(r1)
iop->file_info = loc.node_access;
iop->flags |= rtems_libio_fcntl_flags( flags );
ffc05058: 7f c3 f3 78 mr r3,r30
ffc0505c: 83 9f 00 18 lwz r28,24(r31)
/*
* Fill in the file control block based on the loc structure
* returned by successful path evaluation.
*/
iop->handlers = loc.handlers;
ffc05060: 90 1f 00 40 stw r0,64(r31)
iop->file_info = loc.node_access;
ffc05064: 80 01 00 14 lwz r0,20(r1)
ffc05068: 90 1f 00 3c stw r0,60(r31)
iop->flags |= rtems_libio_fcntl_flags( flags );
ffc0506c: 48 00 86 45 bl ffc0d6b0 <rtems_libio_fcntl_flags>
iop->pathinfo = loc;
if ( !iop->handlers || !iop->handlers->open_h ) {
ffc05070: 81 3f 00 40 lwz r9,64(r31)
*/
iop->handlers = loc.handlers;
iop->file_info = loc.node_access;
iop->flags |= rtems_libio_fcntl_flags( flags );
iop->pathinfo = loc;
ffc05074: 80 01 00 20 lwz r0,32(r1)
* returned by successful path evaluation.
*/
iop->handlers = loc.handlers;
iop->file_info = loc.node_access;
iop->flags |= rtems_libio_fcntl_flags( flags );
ffc05078: 7c 63 e3 78 or r3,r3,r28
iop->pathinfo = loc;
ffc0507c: 81 41 00 18 lwz r10,24(r1)
if ( !iop->handlers || !iop->handlers->open_h ) {
ffc05080: 2f 89 00 00 cmpwi cr7,r9,0
*/
iop->handlers = loc.handlers;
iop->file_info = loc.node_access;
iop->flags |= rtems_libio_fcntl_flags( flags );
iop->pathinfo = loc;
ffc05084: 81 61 00 1c lwz r11,28(r1)
ffc05088: 81 01 00 14 lwz r8,20(r1)
ffc0508c: 91 5f 00 20 stw r10,32(r31)
ffc05090: 91 1f 00 1c stw r8,28(r31)
ffc05094: 91 7f 00 24 stw r11,36(r31)
ffc05098: 90 1f 00 28 stw r0,40(r31)
ffc0509c: 80 01 00 24 lwz r0,36(r1)
* returned by successful path evaluation.
*/
iop->handlers = loc.handlers;
iop->file_info = loc.node_access;
iop->flags |= rtems_libio_fcntl_flags( flags );
ffc050a0: 90 7f 00 18 stw r3,24(r31)
iop->pathinfo = loc;
ffc050a4: 90 1f 00 2c stw r0,44(r31)
if ( !iop->handlers || !iop->handlers->open_h ) {
ffc050a8: 41 9e 01 54 beq- cr7,ffc051fc <open+0x2e8>
ffc050ac: 80 09 00 00 lwz r0,0(r9)
ffc050b0: 2f 80 00 00 cmpwi cr7,r0,0
ffc050b4: 41 9e 01 48 beq- cr7,ffc051fc <open+0x2e8>
rc = ENOTSUP;
goto done;
}
rc = (*iop->handlers->open_h)( iop, pathname, flags, mode );
ffc050b8: 7f a4 eb 78 mr r4,r29
ffc050bc: 7c 09 03 a6 mtctr r0
ffc050c0: 7f 66 db 78 mr r6,r27
ffc050c4: 7f e3 fb 78 mr r3,r31
ffc050c8: 7f c5 f3 78 mr r5,r30
ffc050cc: 4e 80 04 21 bctrl
if ( rc ) {
ffc050d0: 2f 83 00 00 cmpwi cr7,r3,0
ffc050d4: 41 be 00 14 beq+ cr7,ffc050e8 <open+0x1d4>
rc = errno;
ffc050d8: 48 00 ca ed bl ffc11bc4 <__errno>
ffc050dc: 3b 41 00 14 addi r26,r1,20
ffc050e0: 83 23 00 00 lwz r25,0(r3)
goto done;
ffc050e4: 48 00 00 7c b ffc05160 <open+0x24c>
/*
* Optionally truncate the file.
*/
if ( (flags & O_TRUNC) == O_TRUNC ) {
ffc050e8: 73 c0 04 00 andi. r0,r30,1024
ffc050ec: 41 a2 00 c8 beq+ ffc051b4 <open+0x2a0>
rc = ftruncate( iop - rtems_libio_iops, 0 );
ffc050f0: 3d 20 00 00 lis r9,0
ffc050f4: 80 69 27 4c lwz r3,10060(r9)
ffc050f8: 3c 00 38 e3 lis r0,14563
ffc050fc: 60 00 8e 39 ori r0,r0,36409
ffc05100: 7c 63 f8 50 subf r3,r3,r31
ffc05104: 7c 63 1e 70 srawi r3,r3,3
ffc05108: 7c 63 01 d6 mullw r3,r3,r0
ffc0510c: 38 a0 00 00 li r5,0
ffc05110: 38 c0 00 00 li r6,0
ffc05114: 48 00 80 f5 bl ffc0d208 <ftruncate>
if ( rc ) {
ffc05118: 7c 79 1b 79 mr. r25,r3
ffc0511c: 41 a2 00 98 beq+ ffc051b4 <open+0x2a0>
if(errno) rc = errno;
ffc05120: 48 00 ca a5 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc05124: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED
ffc05128: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0512c: 41 be 00 0c beq+ cr7,ffc05138 <open+0x224> <== NOT EXECUTED
ffc05130: 48 00 ca 95 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc05134: 83 23 00 00 lwz r25,0(r3) <== NOT EXECUTED
close( iop - rtems_libio_iops );
ffc05138: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc0513c: 80 69 27 4c lwz r3,10060(r9) <== NOT EXECUTED
ffc05140: 3c 00 38 e3 lis r0,14563 <== NOT EXECUTED
ffc05144: 60 00 8e 39 ori r0,r0,36409 <== NOT EXECUTED
ffc05148: 7f e3 f8 50 subf r31,r3,r31 <== NOT EXECUTED
ffc0514c: 7f e3 1e 70 srawi r3,r31,3 <== NOT EXECUTED
ffc05150: 7c 63 01 d6 mullw r3,r3,r0 <== NOT EXECUTED
ffc05154: 3b 40 00 00 li r26,0 <== NOT EXECUTED
ffc05158: 48 00 7f e9 bl ffc0d140 <close> <== NOT EXECUTED
ffc0515c: 3b e0 00 00 li r31,0 <== NOT EXECUTED
*/
done:
va_end(ap);
if ( rc ) {
ffc05160: 2f 99 00 00 cmpwi cr7,r25,0
ffc05164: 41 be 00 50 beq+ cr7,ffc051b4 <open+0x2a0>
if ( iop )
ffc05168: 2f 9f 00 00 cmpwi cr7,r31,0
ffc0516c: 41 9e 00 0c beq- cr7,ffc05178 <open+0x264>
rtems_libio_free( iop );
ffc05170: 7f e3 fb 78 mr r3,r31
ffc05174: 48 00 83 ed bl ffc0d560 <rtems_libio_free>
if ( loc_to_free )
ffc05178: 2f 9a 00 00 cmpwi cr7,r26,0
ffc0517c: 41 9e 00 28 beq- cr7,ffc051a4 <open+0x290>
rtems_filesystem_freenode( loc_to_free );
ffc05180: 81 3a 00 0c lwz r9,12(r26)
ffc05184: 2f 89 00 00 cmpwi cr7,r9,0
ffc05188: 41 9e 00 1c beq- cr7,ffc051a4 <open+0x290>
ffc0518c: 80 09 00 1c lwz r0,28(r9)
ffc05190: 2f 80 00 00 cmpwi cr7,r0,0
ffc05194: 41 9e 00 10 beq- cr7,ffc051a4 <open+0x290>
ffc05198: 7f 43 d3 78 mr r3,r26
ffc0519c: 7c 09 03 a6 mtctr r0
ffc051a0: 4e 80 04 21 bctrl
rtems_set_errno_and_return_minus_one( rc );
ffc051a4: 48 00 ca 21 bl ffc11bc4 <__errno>
ffc051a8: 93 23 00 00 stw r25,0(r3)
ffc051ac: 38 60 ff ff li r3,-1
ffc051b0: 48 00 00 20 b ffc051d0 <open+0x2bc>
}
return iop - rtems_libio_iops;
ffc051b4: 3d 20 00 00 lis r9,0
ffc051b8: 80 69 27 4c lwz r3,10060(r9)
ffc051bc: 3c 00 38 e3 lis r0,14563
ffc051c0: 60 00 8e 39 ori r0,r0,36409
ffc051c4: 7c 63 f8 50 subf r3,r3,r31
ffc051c8: 7c 63 1e 70 srawi r3,r3,3
ffc051cc: 7c 63 01 d6 mullw r3,r3,r0
}
ffc051d0: 80 01 00 54 lwz r0,84(r1)
ffc051d4: 83 21 00 34 lwz r25,52(r1)
ffc051d8: 7c 08 03 a6 mtlr r0
ffc051dc: 83 41 00 38 lwz r26,56(r1)
ffc051e0: 83 61 00 3c lwz r27,60(r1)
ffc051e4: 83 81 00 40 lwz r28,64(r1)
ffc051e8: 83 a1 00 44 lwz r29,68(r1)
ffc051ec: 83 c1 00 48 lwz r30,72(r1)
ffc051f0: 83 e1 00 4c lwz r31,76(r1)
ffc051f4: 38 21 00 50 addi r1,r1,80
ffc051f8: 4e 80 00 20 blr
if ( loc_to_free )
rtems_filesystem_freenode( loc_to_free );
rtems_set_errno_and_return_minus_one( rc );
}
return iop - rtems_libio_iops;
ffc051fc: 3b 41 00 14 addi r26,r1,20 <== NOT EXECUTED
ffc05200: 3b 20 00 86 li r25,134 <== NOT EXECUTED
ffc05204: 4b ff ff 64 b ffc05168 <open+0x254> <== NOT EXECUTED
ffc04e7c <open_dev_console>:
/*
* This is a replaceable stub which opens the console, if present.
*/
void open_dev_console(void)
{
ffc04e7c: 94 21 ff f0 stwu r1,-16(r1)
ffc04e80: 7c 08 02 a6 mflr r0
int stderr_fd;
/*
* Attempt to open /dev/console.
*/
if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) {
ffc04e84: 38 80 00 00 li r4,0
/*
* This is a replaceable stub which opens the console, if present.
*/
void open_dev_console(void)
{
ffc04e88: 93 e1 00 0c stw r31,12(r1)
int stderr_fd;
/*
* Attempt to open /dev/console.
*/
if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) {
ffc04e8c: 3f e0 ff c2 lis r31,-62
ffc04e90: 3b ff d6 50 addi r31,r31,-10672
ffc04e94: 7f e3 fb 78 mr r3,r31
/*
* This is a replaceable stub which opens the console, if present.
*/
void open_dev_console(void)
{
ffc04e98: 90 01 00 14 stw r0,20(r1)
int stderr_fd;
/*
* Attempt to open /dev/console.
*/
if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) {
ffc04e9c: 38 a0 00 00 li r5,0
ffc04ea0: 4c c6 31 82 crclr 4*cr1+eq
ffc04ea4: 48 00 00 71 bl ffc04f14 <open>
ffc04ea8: 2f 83 ff ff cmpwi cr7,r3,-1
ffc04eac: 41 9e 00 54 beq- cr7,ffc04f00 <open_dev_console+0x84>
/*
* 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)
ffc04eb0: 7f e3 fb 78 mr r3,r31
ffc04eb4: 38 80 00 01 li r4,1
ffc04eb8: 38 a0 00 00 li r5,0
ffc04ebc: 4c c6 31 82 crclr 4*cr1+eq
ffc04ec0: 48 00 00 55 bl ffc04f14 <open>
ffc04ec4: 2f 83 ff ff cmpwi cr7,r3,-1
ffc04ec8: 40 be 00 10 bne+ cr7,ffc04ed8 <open_dev_console+0x5c>
rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */
ffc04ecc: 3c 60 55 54 lis r3,21844 <== NOT EXECUTED
ffc04ed0: 60 63 44 31 ori r3,r3,17457 <== NOT EXECUTED
ffc04ed4: 48 00 00 28 b ffc04efc <open_dev_console+0x80> <== NOT EXECUTED
if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1)
ffc04ed8: 7f e3 fb 78 mr r3,r31
ffc04edc: 38 80 00 01 li r4,1
ffc04ee0: 38 a0 00 00 li r5,0
ffc04ee4: 4c c6 31 82 crclr 4*cr1+eq
ffc04ee8: 48 00 00 2d bl ffc04f14 <open>
ffc04eec: 2f 83 ff ff cmpwi cr7,r3,-1
ffc04ef0: 40 be 00 10 bne+ cr7,ffc04f00 <open_dev_console+0x84>
rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */
ffc04ef4: 3c 60 55 54 lis r3,21844 <== NOT EXECUTED
ffc04ef8: 60 63 44 32 ori r3,r3,17458 <== NOT EXECUTED
ffc04efc: 48 00 36 dd bl ffc085d8 <rtems_fatal_error_occurred> <== NOT EXECUTED
}
ffc04f00: 80 01 00 14 lwz r0,20(r1)
ffc04f04: 83 e1 00 0c lwz r31,12(r1)
ffc04f08: 38 21 00 10 addi r1,r1,16
ffc04f0c: 7c 08 03 a6 mtlr r0
ffc04f10: 4e 80 00 20 blr
ffc05ac8 <oproc>:
/*
* Handle output processing
*/
static void
oproc (unsigned char c, struct rtems_termios_tty *tty)
{
ffc05ac8: 94 21 ff e8 stwu r1,-24(r1)
ffc05acc: 7c 08 02 a6 mflr r0
ffc05ad0: 90 01 00 1c stw r0,28(r1)
int i;
if (tty->termios.c_oflag & OPOST) {
ffc05ad4: 80 04 00 34 lwz r0,52(r4)
/*
* Handle output processing
*/
static void
oproc (unsigned char c, struct rtems_termios_tty *tty)
{
ffc05ad8: 93 e1 00 14 stw r31,20(r1)
ffc05adc: 7c 9f 23 78 mr r31,r4
int i;
if (tty->termios.c_oflag & OPOST) {
ffc05ae0: 70 09 00 01 andi. r9,r0,1
/*
* Handle output processing
*/
static void
oproc (unsigned char c, struct rtems_termios_tty *tty)
{
ffc05ae4: 98 61 00 08 stb r3,8(r1)
int i;
if (tty->termios.c_oflag & OPOST) {
ffc05ae8: 41 82 01 3c beq- ffc05c24 <oproc+0x15c>
switch (c) {
ffc05aec: 2f 83 00 09 cmpwi cr7,r3,9
ffc05af0: 41 9e 00 94 beq- cr7,ffc05b84 <oproc+0xbc>
ffc05af4: 2b 83 00 09 cmplwi cr7,r3,9
ffc05af8: 41 9d 00 10 bgt- cr7,ffc05b08 <oproc+0x40>
ffc05afc: 2f 83 00 08 cmpwi cr7,r3,8 <== NOT EXECUTED
ffc05b00: 40 be 00 cc bne+ cr7,ffc05bcc <oproc+0x104> <== NOT EXECUTED
ffc05b04: 48 00 00 b0 b ffc05bb4 <oproc+0xec> <== NOT EXECUTED
ffc05b08: 2f 83 00 0a cmpwi cr7,r3,10
ffc05b0c: 41 9e 00 10 beq- cr7,ffc05b1c <oproc+0x54>
ffc05b10: 2f 83 00 0d cmpwi cr7,r3,13
ffc05b14: 40 be 00 b8 bne+ cr7,ffc05bcc <oproc+0x104>
ffc05b18: 48 00 00 38 b ffc05b50 <oproc+0x88> <== NOT EXECUTED
case '\n':
if (tty->termios.c_oflag & ONLRET)
ffc05b1c: 70 09 00 20 andi. r9,r0,32
ffc05b20: 41 82 00 0c beq- ffc05b2c <oproc+0x64>
tty->column = 0;
ffc05b24: 38 00 00 00 li r0,0 <== NOT EXECUTED
ffc05b28: 90 04 00 28 stw r0,40(r4) <== NOT EXECUTED
if (tty->termios.c_oflag & ONLCR) {
ffc05b2c: 80 1f 00 34 lwz r0,52(r31)
ffc05b30: 70 09 00 04 andi. r9,r0,4
ffc05b34: 41 a2 00 f0 beq+ ffc05c24 <oproc+0x15c>
rtems_termios_puts ("\r", 1, tty);
ffc05b38: 3c 60 ff c2 lis r3,-62
ffc05b3c: 38 63 de 83 addi r3,r3,-8573
ffc05b40: 38 80 00 01 li r4,1
ffc05b44: 7f e5 fb 78 mr r5,r31
ffc05b48: 4b ff fe 09 bl ffc05950 <rtems_termios_puts>
ffc05b4c: 48 00 00 30 b ffc05b7c <oproc+0xb4>
tty->column = 0;
}
break;
case '\r':
if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))
ffc05b50: 70 09 00 10 andi. r9,r0,16 <== NOT EXECUTED
ffc05b54: 41 82 00 10 beq- ffc05b64 <oproc+0x9c> <== NOT EXECUTED
ffc05b58: 81 24 00 28 lwz r9,40(r4) <== NOT EXECUTED
ffc05b5c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc05b60: 41 9e 00 d4 beq- cr7,ffc05c34 <oproc+0x16c> <== NOT EXECUTED
return;
if (tty->termios.c_oflag & OCRNL) {
ffc05b64: 70 09 00 08 andi. r9,r0,8 <== NOT EXECUTED
ffc05b68: 41 82 00 5c beq- ffc05bc4 <oproc+0xfc> <== NOT EXECUTED
c = '\n';
if (tty->termios.c_oflag & ONLRET)
ffc05b6c: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED
case '\r':
if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))
return;
if (tty->termios.c_oflag & OCRNL) {
c = '\n';
ffc05b70: 38 00 00 0a li r0,10 <== NOT EXECUTED
ffc05b74: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED
if (tty->termios.c_oflag & ONLRET)
ffc05b78: 41 82 00 ac beq- ffc05c24 <oproc+0x15c> <== NOT EXECUTED
tty->column = 0;
ffc05b7c: 38 00 00 00 li r0,0
ffc05b80: 48 00 00 a0 b ffc05c20 <oproc+0x158>
tty->column = 0;
break;
case '\t':
i = 8 - (tty->column & 7);
if ((tty->termios.c_oflag & TABDLY) == XTABS) {
ffc05b84: 54 00 04 e8 rlwinm r0,r0,0,19,20
ffc05b88: 2f 80 18 00 cmpwi cr7,r0,6144
}
tty->column = 0;
break;
case '\t':
i = 8 - (tty->column & 7);
ffc05b8c: 80 04 00 28 lwz r0,40(r4)
ffc05b90: 54 04 07 7e clrlwi r4,r0,29
ffc05b94: 20 84 00 08 subfic r4,r4,8
ffc05b98: 7c 04 02 14 add r0,r4,r0
if ((tty->termios.c_oflag & TABDLY) == XTABS) {
ffc05b9c: 40 be 00 84 bne+ cr7,ffc05c20 <oproc+0x158>
tty->column += i;
rtems_termios_puts ( " ", i, tty);
ffc05ba0: 3c 60 ff c2 lis r3,-62
break;
case '\t':
i = 8 - (tty->column & 7);
if ((tty->termios.c_oflag & TABDLY) == XTABS) {
tty->column += i;
ffc05ba4: 90 1f 00 28 stw r0,40(r31)
rtems_termios_puts ( " ", i, tty);
ffc05ba8: 38 63 db a2 addi r3,r3,-9310
ffc05bac: 7f e5 fb 78 mr r5,r31
ffc05bb0: 48 00 00 80 b ffc05c30 <oproc+0x168>
}
tty->column += i;
break;
case '\b':
if (tty->column > 0)
ffc05bb4: 81 24 00 28 lwz r9,40(r4) <== NOT EXECUTED
ffc05bb8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc05bbc: 40 9d 00 68 ble- cr7,ffc05c24 <oproc+0x15c> <== NOT EXECUTED
tty->column--;
ffc05bc0: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED
ffc05bc4: 91 3f 00 28 stw r9,40(r31) <== NOT EXECUTED
ffc05bc8: 48 00 00 5c b ffc05c24 <oproc+0x15c> <== NOT EXECUTED
break;
default:
if (tty->termios.c_oflag & OLCUC)
ffc05bcc: 70 09 00 02 andi. r9,r0,2
ffc05bd0: 41 82 00 2c beq- ffc05bfc <oproc+0x134>
c = toupper(c);
ffc05bd4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc05bd8: 80 09 26 e0 lwz r0,9952(r9) <== NOT EXECUTED
ffc05bdc: 7c 69 1b 78 mr r9,r3 <== NOT EXECUTED
ffc05be0: 7c 60 1a 14 add r3,r0,r3 <== NOT EXECUTED
ffc05be4: 88 03 00 01 lbz r0,1(r3) <== NOT EXECUTED
ffc05be8: 54 00 07 be clrlwi r0,r0,30 <== NOT EXECUTED
ffc05bec: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED
ffc05bf0: 40 be 00 08 bne+ cr7,ffc05bf8 <oproc+0x130> <== NOT EXECUTED
ffc05bf4: 39 29 ff e0 addi r9,r9,-32 <== NOT EXECUTED
ffc05bf8: 99 21 00 08 stb r9,8(r1) <== NOT EXECUTED
if (!iscntrl(c))
ffc05bfc: 3d 20 00 00 lis r9,0
ffc05c00: 88 01 00 08 lbz r0,8(r1)
ffc05c04: 81 29 26 e0 lwz r9,9952(r9)
ffc05c08: 7d 29 02 14 add r9,r9,r0
ffc05c0c: 88 09 00 01 lbz r0,1(r9)
ffc05c10: 70 09 00 20 andi. r9,r0,32
ffc05c14: 40 82 00 10 bne- ffc05c24 <oproc+0x15c>
tty->column++;
ffc05c18: 81 3f 00 28 lwz r9,40(r31)
ffc05c1c: 38 09 00 01 addi r0,r9,1
ffc05c20: 90 1f 00 28 stw r0,40(r31)
break;
}
}
rtems_termios_puts (&c, 1, tty);
ffc05c24: 7f e5 fb 78 mr r5,r31
ffc05c28: 38 61 00 08 addi r3,r1,8
ffc05c2c: 38 80 00 01 li r4,1
ffc05c30: 4b ff fd 21 bl ffc05950 <rtems_termios_puts>
}
ffc05c34: 80 01 00 1c lwz r0,28(r1)
ffc05c38: 83 e1 00 14 lwz r31,20(r1)
ffc05c3c: 38 21 00 18 addi r1,r1,24
ffc05c40: 7c 08 03 a6 mtlr r0
ffc05c44: 4e 80 00 20 blr
ffc11024 <pipe_create>:
* Called by pipe() to create an anonymous pipe.
*/
int pipe_create(
int filsdes[2]
)
{
ffc11024: 94 21 ff b8 stwu r1,-72(r1)
ffc11028: 7c 08 02 a6 mflr r0
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)
ffc1102c: 38 80 00 03 li r4,3
* Called by pipe() to create an anonymous pipe.
*/
int pipe_create(
int filsdes[2]
)
{
ffc11030: 93 a1 00 3c stw r29,60(r1)
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)
ffc11034: 3f a0 ff c2 lis r29,-62
ffc11038: 3b bd e4 14 addi r29,r29,-7148
* Called by pipe() to create an anonymous pipe.
*/
int pipe_create(
int filsdes[2]
)
{
ffc1103c: 93 c1 00 40 stw r30,64(r1)
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)
ffc11040: 3b c1 00 18 addi r30,r1,24
ffc11044: 38 a0 00 07 li r5,7
* Called by pipe() to create an anonymous pipe.
*/
int pipe_create(
int filsdes[2]
)
{
ffc11048: 93 e1 00 44 stw r31,68(r1)
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)
ffc1104c: 7f c6 f3 78 mr r6,r30
* Called by pipe() to create an anonymous pipe.
*/
int pipe_create(
int filsdes[2]
)
{
ffc11050: 7c 7f 1b 78 mr r31,r3
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)
ffc11054: 38 e0 00 01 li r7,1
* Called by pipe() to create an anonymous pipe.
*/
int pipe_create(
int filsdes[2]
)
{
ffc11058: 90 01 00 4c stw r0,76(r1)
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)
ffc1105c: 7f a3 eb 78 mr r3,r29
ffc11060: 4b ff 31 01 bl ffc04160 <rtems_filesystem_evaluate_path>
ffc11064: 2f 83 00 00 cmpwi cr7,r3,0
ffc11068: 41 be 00 2c beq+ cr7,ffc11094 <pipe_create+0x70>
!= 0) {
if (errno != ENOENT)
ffc1106c: 48 00 0b 59 bl ffc11bc4 <__errno>
ffc11070: 80 03 00 00 lwz r0,0(r3)
ffc11074: 2f 80 00 02 cmpwi cr7,r0,2
ffc11078: 40 be 01 44 bne+ cr7,ffc111bc <pipe_create+0x198>
return -1;
if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0)
ffc1107c: 7f a3 eb 78 mr r3,r29
ffc11080: 38 80 03 ff li r4,1023
ffc11084: 4b ff 36 4d bl ffc046d0 <mkdir>
ffc11088: 2f 83 00 00 cmpwi cr7,r3,0
ffc1108c: 41 be 00 2c beq+ cr7,ffc110b8 <pipe_create+0x94>
ffc11090: 48 00 01 2c b ffc111bc <pipe_create+0x198> <== NOT EXECUTED
return -1;
}
else
rtems_filesystem_freenode(&loc);
ffc11094: 81 21 00 24 lwz r9,36(r1) <== NOT EXECUTED
ffc11098: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc1109c: 41 9e 00 1c beq- cr7,ffc110b8 <pipe_create+0x94> <== NOT EXECUTED
ffc110a0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc110a4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc110a8: 41 9e 00 10 beq- cr7,ffc110b8 <pipe_create+0x94> <== NOT EXECUTED
ffc110ac: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc110b0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc110b4: 4e 80 04 21 bctrl <== NOT EXECUTED
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
ffc110b8: 3d 20 00 00 lis r9,0
else
rtems_filesystem_freenode(&loc);
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
ffc110bc: 3d 40 ff c2 lis r10,-62
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
ffc110c0: a1 09 27 f8 lhz r8,10232(r9)
else
rtems_filesystem_freenode(&loc);
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
ffc110c4: 39 6a e4 19 addi r11,r10,-7143
ffc110c8: 81 4a e4 19 lwz r10,-7143(r10)
ffc110cc: a0 0b 00 08 lhz r0,8(r11)
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
ffc110d0: 3c 80 ff c2 lis r4,-62
else
rtems_filesystem_freenode(&loc);
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
ffc110d4: 81 6b 00 04 lwz r11,4(r11)
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
ffc110d8: 7d 05 43 78 mr r5,r8
ffc110dc: 38 84 e4 24 addi r4,r4,-7132
else
rtems_filesystem_freenode(&loc);
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
ffc110e0: 91 41 00 08 stw r10,8(r1)
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
ffc110e4: 39 08 00 01 addi r8,r8,1
ffc110e8: 38 61 00 12 addi r3,r1,18
ffc110ec: b1 09 27 f8 sth r8,10232(r9)
/* Try creating FIFO file until find an available file name */
while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {
ffc110f0: 3b c1 00 08 addi r30,r1,8
else
rtems_filesystem_freenode(&loc);
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
ffc110f4: 91 61 00 0c stw r11,12(r1)
ffc110f8: b0 01 00 10 sth r0,16(r1)
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
ffc110fc: 4c c6 31 82 crclr 4*cr1+eq
ffc11100: 48 00 19 8d bl ffc12a8c <sprintf>
/* Try creating FIFO file until find an available file name */
while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {
ffc11104: 7f c3 f3 78 mr r3,r30
ffc11108: 38 80 01 80 li r4,384
ffc1110c: 48 00 01 49 bl ffc11254 <mkfifo>
ffc11110: 2f 83 00 00 cmpwi cr7,r3,0
ffc11114: 41 be 00 0c beq+ cr7,ffc11120 <pipe_create+0xfc>
if (errno != EEXIST){
ffc11118: 48 00 0a ad bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc1111c: 48 00 00 a0 b ffc111bc <pipe_create+0x198> <== NOT EXECUTED
return -1;
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
}
/* Non-blocking open to avoid waiting for writers */
filsdes[0] = open(fifopath, O_RDONLY | O_NONBLOCK);
ffc11120: 7f c3 f3 78 mr r3,r30
ffc11124: 38 80 40 00 li r4,16384
ffc11128: 4c c6 31 82 crclr 4*cr1+eq
ffc1112c: 4b ff 3d e9 bl ffc04f14 <open>
if (filsdes[0] < 0) {
ffc11130: 2f 83 00 00 cmpwi cr7,r3,0
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);
ffc11134: 90 7f 00 00 stw r3,0(r31)
if (filsdes[0] < 0) {
ffc11138: 40 bc 00 14 bge+ cr7,ffc1114c <pipe_create+0x128>
err = errno;
ffc1113c: 48 00 0a 89 bl ffc11bc4 <__errno>
ffc11140: 83 a3 00 00 lwz r29,0(r3)
/* 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);
ffc11144: 7f c3 f3 78 mr r3,r30
ffc11148: 48 00 00 68 b ffc111b0 <pipe_create+0x18c>
}
else {
/* Reset open file to blocking mode */
iop = rtems_libio_iop(filsdes[0]);
ffc1114c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc11150: 80 09 26 8c lwz r0,9868(r9) <== NOT EXECUTED
ffc11154: 39 20 00 00 li r9,0 <== NOT EXECUTED
ffc11158: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED
ffc1115c: 40 9c 00 14 bge- cr7,ffc11170 <pipe_create+0x14c> <== NOT EXECUTED
ffc11160: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc11164: 1c 63 00 48 mulli r3,r3,72 <== NOT EXECUTED
ffc11168: 81 29 27 4c lwz r9,10060(r9) <== NOT EXECUTED
ffc1116c: 7d 29 1a 14 add r9,r9,r3 <== NOT EXECUTED
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
ffc11170: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED
filsdes[1] = open(fifopath, O_WRONLY);
ffc11174: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED
ffc11178: 38 80 00 01 li r4,1 <== NOT EXECUTED
unlink(fifopath);
}
else {
/* Reset open file to blocking mode */
iop = rtems_libio_iop(filsdes[0]);
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
ffc1117c: 54 00 00 3c rlwinm r0,r0,0,0,30 <== NOT EXECUTED
ffc11180: 90 09 00 18 stw r0,24(r9) <== NOT EXECUTED
filsdes[1] = open(fifopath, O_WRONLY);
if (filsdes[1] < 0) {
ffc11184: 3b a0 00 00 li r29,0 <== NOT EXECUTED
else {
/* Reset open file to blocking mode */
iop = rtems_libio_iop(filsdes[0]);
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
filsdes[1] = open(fifopath, O_WRONLY);
ffc11188: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc1118c: 4b ff 3d 89 bl ffc04f14 <open> <== NOT EXECUTED
if (filsdes[1] < 0) {
ffc11190: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
else {
/* Reset open file to blocking mode */
iop = rtems_libio_iop(filsdes[0]);
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
filsdes[1] = open(fifopath, O_WRONLY);
ffc11194: 90 7f 00 04 stw r3,4(r31) <== NOT EXECUTED
if (filsdes[1] < 0) {
ffc11198: 40 bc 00 14 bge+ cr7,ffc111ac <pipe_create+0x188> <== NOT EXECUTED
err = errno;
ffc1119c: 48 00 0a 29 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc111a0: 83 a3 00 00 lwz r29,0(r3) <== NOT EXECUTED
close(filsdes[0]);
ffc111a4: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED
ffc111a8: 4b ff bf 99 bl ffc0d140 <close> <== NOT EXECUTED
}
unlink(fifopath);
ffc111ac: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED
ffc111b0: 48 00 00 d1 bl ffc11280 <unlink>
}
rtems_set_errno_and_return_minus_one(err);
ffc111b4: 48 00 0a 11 bl ffc11bc4 <__errno>
ffc111b8: 93 a3 00 00 stw r29,0(r3)
}
ffc111bc: 80 01 00 4c lwz r0,76(r1)
ffc111c0: 38 60 ff ff li r3,-1
ffc111c4: 83 a1 00 3c lwz r29,60(r1)
ffc111c8: 7c 08 03 a6 mtlr r0
ffc111cc: 83 c1 00 40 lwz r30,64(r1)
ffc111d0: 83 e1 00 44 lwz r31,68(r1)
ffc111d4: 38 21 00 48 addi r1,r1,72
ffc111d8: 4e 80 00 20 blr
ffc0f930 <pipe_free>:
/* Called with rtems_pipe_semaphore held. */
static inline void pipe_free(
pipe_control_t *pipe
)
{
ffc0f930: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED
ffc0f934: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc0f938: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED
ffc0f93c: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED
ffc0f940: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED
rtems_barrier_delete(pipe->readBarrier);
ffc0f944: 80 63 00 2c lwz r3,44(r3) <== NOT EXECUTED
ffc0f948: 48 00 0e e9 bl ffc10830 <rtems_barrier_delete> <== NOT EXECUTED
rtems_barrier_delete(pipe->writeBarrier);
ffc0f94c: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED
ffc0f950: 48 00 0e e1 bl ffc10830 <rtems_barrier_delete> <== NOT EXECUTED
rtems_semaphore_delete(pipe->Semaphore);
ffc0f954: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED
ffc0f958: 4b ff 83 89 bl ffc07ce0 <rtems_semaphore_delete> <== NOT EXECUTED
free(pipe->Buffer);
ffc0f95c: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED
ffc0f960: 4b ff 48 e5 bl ffc04244 <free> <== NOT EXECUTED
free(pipe);
ffc0f964: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc0f968: 4b ff 48 dd bl ffc04244 <free> <== NOT EXECUTED
}
ffc0f96c: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc0f970: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc0f974: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc0f978: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0f97c: 4e 80 00 20 blr <== NOT EXECUTED
ffc0f488 <pipe_ioctl>:
pipe_control_t *pipe,
uint32_t cmd,
void *buffer,
rtems_libio_t *iop
)
{
ffc0f488: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED
ffc0f48c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc0f490: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED
if (cmd == FIONREAD) {
ffc0f494: 3c 00 40 04 lis r0,16388 <== NOT EXECUTED
ffc0f498: 60 00 66 7f ori r0,r0,26239 <== NOT EXECUTED
ffc0f49c: 7f 84 00 00 cmpw cr7,r4,r0 <== NOT EXECUTED
pipe_control_t *pipe,
uint32_t cmd,
void *buffer,
rtems_libio_t *iop
)
{
ffc0f4a0: 93 c1 00 08 stw r30,8(r1) <== NOT EXECUTED
ffc0f4a4: 7c be 2b 78 mr r30,r5 <== NOT EXECUTED
ffc0f4a8: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED
ffc0f4ac: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED
if (cmd == FIONREAD) {
ffc0f4b0: 38 60 ff ea li r3,-22 <== NOT EXECUTED
ffc0f4b4: 40 be 00 40 bne+ cr7,ffc0f4f4 <pipe_ioctl+0x6c> <== NOT EXECUTED
if (buffer == NULL)
ffc0f4b8: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED
ffc0f4bc: 38 60 ff f2 li r3,-14 <== NOT EXECUTED
ffc0f4c0: 41 be 00 34 beq+ cr7,ffc0f4f4 <pipe_ioctl+0x6c> <== NOT EXECUTED
return -EFAULT;
if (! PIPE_LOCK(pipe))
ffc0f4c4: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED
ffc0f4c8: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc0f4cc: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc0f4d0: 4b ff 88 dd bl ffc07dac <rtems_semaphore_obtain> <== NOT EXECUTED
ffc0f4d4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc0f4d8: 38 60 ff fc li r3,-4 <== NOT EXECUTED
ffc0f4dc: 40 be 00 18 bne+ cr7,ffc0f4f4 <pipe_ioctl+0x6c> <== NOT EXECUTED
return -EINTR;
/* Return length of pipe */
*(uint *)buffer = pipe->Length;
ffc0f4e0: 80 1f 00 0c lwz r0,12(r31) <== NOT EXECUTED
PIPE_UNLOCK(pipe);
ffc0f4e4: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED
if (! PIPE_LOCK(pipe))
return -EINTR;
/* Return length of pipe */
*(uint *)buffer = pipe->Length;
ffc0f4e8: 90 1e 00 00 stw r0,0(r30) <== NOT EXECUTED
PIPE_UNLOCK(pipe);
ffc0f4ec: 4b ff 8a 05 bl ffc07ef0 <rtems_semaphore_release> <== NOT EXECUTED
ffc0f4f0: 38 60 00 00 li r3,0 <== NOT EXECUTED
return 0;
}
return -EINVAL;
}
ffc0f4f4: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc0f4f8: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED
ffc0f4fc: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0f500: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc0f504: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc0f508: 4e 80 00 20 blr <== NOT EXECUTED
ffc0f410 <pipe_lseek>:
rtems_libio_t *iop
)
{
/* Seek on pipe is not supported */
return -ESPIPE;
}
ffc0f410: 38 60 ff e3 li r3,-29 <== NOT EXECUTED
ffc0f414: 4e 80 00 20 blr <== NOT EXECUTED
ffc0f50c <pipe_read>:
pipe_control_t *pipe,
void *buffer,
size_t count,
rtems_libio_t *iop
)
{
ffc0f50c: 94 21 ff c8 stwu r1,-56(r1) <== NOT EXECUTED
ffc0f510: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc0f514: 90 01 00 3c stw r0,60(r1) <== NOT EXECUTED
ffc0f518: 93 e1 00 34 stw r31,52(r1) <== NOT EXECUTED
ffc0f51c: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
ffc0f520: 80 63 00 28 lwz r3,40(r3) <== NOT EXECUTED
pipe_control_t *pipe,
void *buffer,
size_t count,
rtems_libio_t *iop
)
{
ffc0f524: 93 a1 00 2c stw r29,44(r1) <== NOT EXECUTED
ffc0f528: 7c 9d 23 78 mr r29,r4 <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
ffc0f52c: 38 80 00 00 li r4,0 <== NOT EXECUTED
pipe_control_t *pipe,
void *buffer,
size_t count,
rtems_libio_t *iop
)
{
ffc0f530: 93 c1 00 30 stw r30,48(r1) <== NOT EXECUTED
ffc0f534: 7c be 2b 78 mr r30,r5 <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
ffc0f538: 38 a0 00 00 li r5,0 <== NOT EXECUTED
pipe_control_t *pipe,
void *buffer,
size_t count,
rtems_libio_t *iop
)
{
ffc0f53c: 93 01 00 18 stw r24,24(r1) <== NOT EXECUTED
ffc0f540: 7c d8 33 78 mr r24,r6 <== NOT EXECUTED
ffc0f544: 93 21 00 1c stw r25,28(r1) <== NOT EXECUTED
/* For buffering optimization */
if (PIPE_EMPTY(pipe))
pipe->Start = 0;
if (pipe->waitingWriters > 0)
PIPE_WAKEUPWRITERS(pipe);
ffc0f548: 3b 21 00 08 addi r25,r1,8 <== NOT EXECUTED
pipe_control_t *pipe,
void *buffer,
size_t count,
rtems_libio_t *iop
)
{
ffc0f54c: 93 81 00 28 stw r28,40(r1) <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
ffc0f550: 3b 80 00 00 li r28,0 <== NOT EXECUTED
pipe_control_t *pipe,
void *buffer,
size_t count,
rtems_libio_t *iop
)
{
ffc0f554: 93 41 00 20 stw r26,32(r1) <== NOT EXECUTED
ffc0f558: 93 61 00 24 stw r27,36(r1) <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
ffc0f55c: 4b ff 88 51 bl ffc07dac <rtems_semaphore_obtain> <== NOT EXECUTED
ffc0f560: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc0f564: 41 be 01 44 beq+ cr7,ffc0f6a8 <pipe_read+0x19c> <== NOT EXECUTED
ffc0f568: 3b 80 ff fc li r28,-4 <== NOT EXECUTED
ffc0f56c: 48 00 01 5c b ffc0f6c8 <pipe_read+0x1bc> <== NOT EXECUTED
return -EINTR;
while (read < count) {
while (PIPE_EMPTY(pipe)) {
/* Not an error */
if (pipe->Writers == 0)
ffc0f570: 80 1f 00 14 lwz r0,20(r31) <== NOT EXECUTED
ffc0f574: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0f578: 41 9e 01 38 beq- cr7,ffc0f6b0 <pipe_read+0x1a4> <== NOT EXECUTED
goto out_locked;
if (LIBIO_NODELAY(iop)) {
ffc0f57c: 80 18 00 18 lwz r0,24(r24) <== NOT EXECUTED
ffc0f580: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED
ffc0f584: 41 a2 00 0c beq+ ffc0f590 <pipe_read+0x84> <== NOT EXECUTED
ffc0f588: 3b 60 ff f5 li r27,-11 <== NOT EXECUTED
ffc0f58c: 48 00 01 28 b ffc0f6b4 <pipe_read+0x1a8> <== NOT EXECUTED
ret = -EAGAIN;
goto out_locked;
}
/* Wait until pipe is no more empty or no writer exists */
pipe->waitingReaders ++;
ffc0f590: 81 3f 00 18 lwz r9,24(r31) <== NOT EXECUTED
PIPE_UNLOCK(pipe);
ffc0f594: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED
ret = -EAGAIN;
goto out_locked;
}
/* Wait until pipe is no more empty or no writer exists */
pipe->waitingReaders ++;
ffc0f598: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED
ffc0f59c: 90 1f 00 18 stw r0,24(r31) <== NOT EXECUTED
PIPE_UNLOCK(pipe);
ffc0f5a0: 4b ff 89 51 bl ffc07ef0 <rtems_semaphore_release> <== NOT EXECUTED
if (! PIPE_READWAIT(pipe))
ffc0f5a4: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED
ffc0f5a8: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc0f5ac: 48 00 13 8d bl ffc10938 <rtems_barrier_wait> <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
ffc0f5b0: 38 80 00 00 li r4,0 <== NOT EXECUTED
}
/* Wait until pipe is no more empty or no writer exists */
pipe->waitingReaders ++;
PIPE_UNLOCK(pipe);
if (! PIPE_READWAIT(pipe))
ffc0f5b4: 33 63 ff ff addic r27,r3,-1 <== NOT EXECUTED
ffc0f5b8: 7f 7b d9 10 subfe r27,r27,r27 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
ffc0f5bc: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED
ffc0f5c0: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc0f5c4: 4b ff 87 e9 bl ffc07dac <rtems_semaphore_obtain> <== NOT EXECUTED
}
/* Wait until pipe is no more empty or no writer exists */
pipe->waitingReaders ++;
PIPE_UNLOCK(pipe);
if (! PIPE_READWAIT(pipe))
ffc0f5c8: 57 7b 07 7a rlwinm r27,r27,0,29,29 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
ffc0f5cc: 2f 03 00 00 cmpwi cr6,r3,0 <== NOT EXECUTED
}
/* Wait until pipe is no more empty or no writer exists */
pipe->waitingReaders ++;
PIPE_UNLOCK(pipe);
if (! PIPE_READWAIT(pipe))
ffc0f5d0: 3b 7b ff fc addi r27,r27,-4 <== NOT EXECUTED
/* WARN waitingReaders not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingReaders --;
if (ret != 0)
ffc0f5d4: 2f 9b 00 00 cmpwi cr7,r27,0 <== 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)) {
ffc0f5d8: 41 ba 00 0c beq+ cr6,ffc0f5e4 <pipe_read+0xd8> <== NOT EXECUTED
ffc0f5dc: 3b 60 ff fc li r27,-4 <== NOT EXECUTED
ffc0f5e0: 48 00 00 dc b ffc0f6bc <pipe_read+0x1b0> <== NOT EXECUTED
/* WARN waitingReaders not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingReaders --;
ffc0f5e4: 81 3f 00 18 lwz r9,24(r31) <== NOT EXECUTED
ffc0f5e8: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED
ffc0f5ec: 90 1f 00 18 stw r0,24(r31) <== NOT EXECUTED
if (ret != 0)
ffc0f5f0: 40 9e 00 c4 bne- cr7,ffc0f6b4 <pipe_read+0x1a8> <== NOT EXECUTED
if (! PIPE_LOCK(pipe))
return -EINTR;
while (read < count) {
while (PIPE_EMPTY(pipe)) {
ffc0f5f4: 83 7f 00 0c lwz r27,12(r31) <== NOT EXECUTED
ffc0f5f8: 2f 9b 00 00 cmpwi cr7,r27,0 <== NOT EXECUTED
ffc0f5fc: 41 9e ff 74 beq+ cr7,ffc0f570 <pipe_read+0x64> <== NOT EXECUTED
if (ret != 0)
goto out_locked;
}
/* Read chunk bytes */
chunk = MIN(count - read, pipe->Length);
ffc0f600: 7c 1c f0 50 subf r0,r28,r30 <== NOT EXECUTED
ffc0f604: 7f 9b 00 40 cmplw cr7,r27,r0 <== NOT EXECUTED
ffc0f608: 40 9d 00 08 ble- cr7,ffc0f610 <pipe_read+0x104> <== NOT EXECUTED
ffc0f60c: 7c 1b 03 78 mr r27,r0 <== NOT EXECUTED
chunk1 = pipe->Size - pipe->Start;
ffc0f610: 80 1f 00 08 lwz r0,8(r31) <== NOT EXECUTED
ffc0f614: 7c 7d e2 14 add r3,r29,r28 <== NOT EXECUTED
ffc0f618: 83 5f 00 04 lwz r26,4(r31) <== NOT EXECUTED
ffc0f61c: 80 9f 00 00 lwz r4,0(r31) <== NOT EXECUTED
ffc0f620: 7f 40 d0 50 subf r26,r0,r26 <== NOT EXECUTED
if (chunk > chunk1) {
ffc0f624: 7f 9b d0 00 cmpw cr7,r27,r26 <== NOT EXECUTED
ffc0f628: 40 9d 00 24 ble- cr7,ffc0f64c <pipe_read+0x140> <== NOT EXECUTED
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);
ffc0f62c: 7c 84 02 14 add r4,r4,r0 <== NOT EXECUTED
ffc0f630: 7f 45 d3 78 mr r5,r26 <== NOT EXECUTED
ffc0f634: 48 00 31 79 bl ffc127ac <memcpy> <== NOT EXECUTED
memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);
ffc0f638: 7c 7c d2 14 add r3,r28,r26 <== NOT EXECUTED
ffc0f63c: 80 9f 00 00 lwz r4,0(r31) <== NOT EXECUTED
ffc0f640: 7c 7d 1a 14 add r3,r29,r3 <== NOT EXECUTED
ffc0f644: 7c ba d8 50 subf r5,r26,r27 <== NOT EXECUTED
ffc0f648: 48 00 00 0c b ffc0f654 <pipe_read+0x148> <== NOT EXECUTED
}
else
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);
ffc0f64c: 7c 84 02 14 add r4,r4,r0 <== NOT EXECUTED
ffc0f650: 7f 65 db 78 mr r5,r27 <== NOT EXECUTED
ffc0f654: 48 00 31 59 bl ffc127ac <memcpy> <== NOT EXECUTED
pipe->Start += chunk;
ffc0f658: 81 3f 00 08 lwz r9,8(r31) <== NOT EXECUTED
pipe->Start %= pipe->Size;
ffc0f65c: 81 7f 00 04 lwz r11,4(r31) <== NOT EXECUTED
memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);
}
else
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);
pipe->Start += chunk;
ffc0f660: 7d 3b 4a 14 add r9,r27,r9 <== NOT EXECUTED
pipe->Start %= pipe->Size;
pipe->Length -= chunk;
ffc0f664: 80 1f 00 0c lwz r0,12(r31) <== NOT EXECUTED
}
else
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);
pipe->Start += chunk;
pipe->Start %= pipe->Size;
ffc0f668: 7d 49 5b 96 divwu r10,r9,r11 <== NOT EXECUTED
pipe->Length -= chunk;
ffc0f66c: 7c 1b 00 50 subf r0,r27,r0 <== NOT EXECUTED
/* For buffering optimization */
if (PIPE_EMPTY(pipe))
ffc0f670: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
else
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);
pipe->Start += chunk;
pipe->Start %= pipe->Size;
pipe->Length -= chunk;
ffc0f674: 90 1f 00 0c stw r0,12(r31) <== NOT EXECUTED
}
else
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);
pipe->Start += chunk;
pipe->Start %= pipe->Size;
ffc0f678: 7d 6a 59 d6 mullw r11,r10,r11 <== NOT EXECUTED
ffc0f67c: 7d 2b 48 50 subf r9,r11,r9 <== NOT EXECUTED
ffc0f680: 91 3f 00 08 stw r9,8(r31) <== NOT EXECUTED
pipe->Length -= chunk;
/* For buffering optimization */
if (PIPE_EMPTY(pipe))
ffc0f684: 40 9e 00 08 bne- cr7,ffc0f68c <pipe_read+0x180> <== NOT EXECUTED
pipe->Start = 0;
ffc0f688: 90 1f 00 08 stw r0,8(r31) <== NOT EXECUTED
if (pipe->waitingWriters > 0)
ffc0f68c: 80 1f 00 1c lwz r0,28(r31) <== NOT EXECUTED
ffc0f690: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0f694: 41 be 00 10 beq+ cr7,ffc0f6a4 <pipe_read+0x198> <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
ffc0f698: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED
ffc0f69c: 7f 24 cb 78 mr r4,r25 <== NOT EXECUTED
ffc0f6a0: 48 00 12 19 bl ffc108b8 <rtems_barrier_release> <== NOT EXECUTED
read += chunk;
ffc0f6a4: 7f 9c da 14 add r28,r28,r27 <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
return -EINTR;
while (read < count) {
ffc0f6a8: 7f 9c f0 40 cmplw cr7,r28,r30 <== NOT EXECUTED
ffc0f6ac: 41 9c ff 48 blt+ cr7,ffc0f5f4 <pipe_read+0xe8> <== NOT EXECUTED
ffc0f6b0: 3b 60 00 00 li r27,0 <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
read += chunk;
}
out_locked:
PIPE_UNLOCK(pipe);
ffc0f6b4: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED
ffc0f6b8: 4b ff 88 39 bl ffc07ef0 <rtems_semaphore_release> <== NOT EXECUTED
out_nolock:
if (read > 0)
ffc0f6bc: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED
ffc0f6c0: 41 bd 00 08 bgt+ cr7,ffc0f6c8 <pipe_read+0x1bc> <== NOT EXECUTED
ffc0f6c4: 7f 7c db 78 mr r28,r27 <== NOT EXECUTED
return read;
return ret;
}
ffc0f6c8: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED
ffc0f6cc: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED
ffc0f6d0: 83 01 00 18 lwz r24,24(r1) <== NOT EXECUTED
ffc0f6d4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0f6d8: 83 21 00 1c lwz r25,28(r1) <== NOT EXECUTED
ffc0f6dc: 83 41 00 20 lwz r26,32(r1) <== NOT EXECUTED
ffc0f6e0: 83 61 00 24 lwz r27,36(r1) <== NOT EXECUTED
ffc0f6e4: 83 81 00 28 lwz r28,40(r1) <== NOT EXECUTED
ffc0f6e8: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED
ffc0f6ec: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED
ffc0f6f0: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED
ffc0f6f4: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED
ffc0f6f8: 4e 80 00 20 blr <== NOT EXECUTED
ffc0f980 <pipe_release>:
*/
int pipe_release(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
ffc0f980: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED
ffc0f984: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
pipe_control_t *pipe = *pipep;
uint32_t mode;
rtems_status_code sc;
sc = rtems_semaphore_obtain(pipe->Semaphore,
ffc0f988: 38 a0 00 00 li r5,0 <== NOT EXECUTED
*/
int pipe_release(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
ffc0f98c: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED
ffc0f990: 93 e1 00 24 stw r31,36(r1) <== NOT EXECUTED
pipe_control_t *pipe = *pipep;
ffc0f994: 83 e3 00 00 lwz r31,0(r3) <== NOT EXECUTED
*/
int pipe_release(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
ffc0f998: 93 a1 00 1c stw r29,28(r1) <== NOT EXECUTED
ffc0f99c: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED
pipe_control_t *pipe = *pipep;
uint32_t mode;
rtems_status_code sc;
sc = rtems_semaphore_obtain(pipe->Semaphore,
ffc0f9a0: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED
*/
int pipe_release(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
ffc0f9a4: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED
ffc0f9a8: 7c 9e 23 78 mr r30,r4 <== NOT EXECUTED
pipe_control_t *pipe = *pipep;
uint32_t mode;
rtems_status_code sc;
sc = rtems_semaphore_obtain(pipe->Semaphore,
ffc0f9ac: 38 80 00 00 li r4,0 <== NOT EXECUTED
*/
int pipe_release(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
ffc0f9b0: 93 81 00 18 stw r28,24(r1) <== NOT EXECUTED
pipe_control_t *pipe = *pipep;
uint32_t mode;
rtems_status_code sc;
sc = rtems_semaphore_obtain(pipe->Semaphore,
ffc0f9b4: 4b ff 83 f9 bl ffc07dac <rtems_semaphore_obtain> <== NOT EXECUTED
RTEMS_WAIT, RTEMS_NO_TIMEOUT);
/* WARN pipe not released! */
if(sc != RTEMS_SUCCESSFUL)
ffc0f9b8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc0f9bc: 40 9e 00 50 bne- cr7,ffc0fa0c <pipe_release+0x8c> <== NOT EXECUTED
rtems_fatal_error_occurred(sc);
mode = LIBIO_ACCMODE(iop);
ffc0f9c0: 83 de 00 18 lwz r30,24(r30) <== NOT EXECUTED
if (mode & LIBIO_FLAGS_READ)
ffc0f9c4: 73 c0 00 02 andi. r0,r30,2 <== NOT EXECUTED
RTEMS_WAIT, RTEMS_NO_TIMEOUT);
/* WARN pipe not released! */
if(sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred(sc);
mode = LIBIO_ACCMODE(iop);
ffc0f9c8: 57 de 07 7c rlwinm r30,r30,0,29,30 <== NOT EXECUTED
if (mode & LIBIO_FLAGS_READ)
ffc0f9cc: 41 82 00 10 beq- ffc0f9dc <pipe_release+0x5c> <== NOT EXECUTED
pipe->Readers --;
ffc0f9d0: 81 3f 00 10 lwz r9,16(r31) <== NOT EXECUTED
ffc0f9d4: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED
ffc0f9d8: 90 1f 00 10 stw r0,16(r31) <== NOT EXECUTED
if (mode & LIBIO_FLAGS_WRITE)
ffc0f9dc: 73 c0 00 04 andi. r0,r30,4 <== NOT EXECUTED
ffc0f9e0: 41 82 00 10 beq- ffc0f9f0 <pipe_release+0x70> <== NOT EXECUTED
pipe->Writers --;
ffc0f9e4: 81 3f 00 14 lwz r9,20(r31) <== NOT EXECUTED
ffc0f9e8: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED
ffc0f9ec: 90 1f 00 14 stw r0,20(r31) <== NOT EXECUTED
sc = rtems_semaphore_obtain(rtems_pipe_semaphore,
ffc0f9f0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc0f9f4: 80 69 29 94 lwz r3,10644(r9) <== NOT EXECUTED
ffc0f9f8: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc0f9fc: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc0fa00: 4b ff 83 ad bl ffc07dac <rtems_semaphore_obtain> <== NOT EXECUTED
RTEMS_WAIT, RTEMS_NO_TIMEOUT);
/* WARN pipe not freed and pipep not set to NULL! */
if(sc != RTEMS_SUCCESSFUL)
ffc0fa04: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc0fa08: 41 be 00 08 beq+ cr7,ffc0fa10 <pipe_release+0x90> <== NOT EXECUTED
rtems_fatal_error_occurred(sc);
ffc0fa0c: 4b ff 8b cd bl ffc085d8 <rtems_fatal_error_occurred> <== NOT EXECUTED
PIPE_UNLOCK(pipe);
ffc0fa10: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED
ffc0fa14: 4b ff 84 dd bl ffc07ef0 <rtems_semaphore_release> <== NOT EXECUTED
if (pipe->Readers == 0 && pipe->Writers == 0) {
ffc0fa18: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED
ffc0fa1c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0fa20: 40 9e 00 30 bne- cr7,ffc0fa50 <pipe_release+0xd0> <== NOT EXECUTED
ffc0fa24: 83 9f 00 14 lwz r28,20(r31) <== NOT EXECUTED
ffc0fa28: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED
ffc0fa2c: 40 be 00 14 bne+ cr7,ffc0fa40 <pipe_release+0xc0> <== NOT EXECUTED
#if 0
/* To delete an anonymous pipe file when all users closed it */
if (pipe->Anonymous)
delfile = TRUE;
#endif
pipe_free(pipe);
ffc0fa30: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc0fa34: 4b ff fe fd bl ffc0f930 <pipe_free> <== NOT EXECUTED
*pipep = NULL;
ffc0fa38: 93 9d 00 00 stw r28,0(r29) <== NOT EXECUTED
if(sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred(sc);
PIPE_UNLOCK(pipe);
if (pipe->Readers == 0 && pipe->Writers == 0) {
ffc0fa3c: 48 00 00 34 b ffc0fa70 <pipe_release+0xf0> <== NOT EXECUTED
delfile = TRUE;
#endif
pipe_free(pipe);
*pipep = NULL;
}
else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)
ffc0fa40: 2f 9e 00 04 cmpwi cr7,r30,4 <== NOT EXECUTED
ffc0fa44: 41 be 00 0c beq+ cr7,ffc0fa50 <pipe_release+0xd0> <== NOT EXECUTED
/* Notify waiting Writers that all their partners left */
PIPE_WAKEUPWRITERS(pipe);
ffc0fa48: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED
ffc0fa4c: 48 00 00 1c b ffc0fa68 <pipe_release+0xe8> <== NOT EXECUTED
else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ)
ffc0fa50: 80 1f 00 14 lwz r0,20(r31) <== NOT EXECUTED
ffc0fa54: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0fa58: 40 9e 00 18 bne- cr7,ffc0fa70 <pipe_release+0xf0> <== NOT EXECUTED
ffc0fa5c: 2f 9e 00 02 cmpwi cr7,r30,2 <== NOT EXECUTED
ffc0fa60: 41 9e 00 10 beq- cr7,ffc0fa70 <pipe_release+0xf0> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
ffc0fa64: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED
ffc0fa68: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED
ffc0fa6c: 48 00 0e 4d bl ffc108b8 <rtems_barrier_release> <== NOT EXECUTED
rtems_semaphore_release(rtems_pipe_semaphore);
ffc0fa70: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc0fa74: 80 69 29 94 lwz r3,10644(r9) <== NOT EXECUTED
ffc0fa78: 4b ff 84 79 bl ffc07ef0 <rtems_semaphore_release> <== NOT EXECUTED
if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))
return -errno;
#endif
return 0;
}
ffc0fa7c: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED
ffc0fa80: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc0fa84: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED
ffc0fa88: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0fa8c: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED
ffc0fa90: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED
ffc0fa94: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED
ffc0fa98: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED
ffc0fa9c: 4e 80 00 20 blr <== NOT EXECUTED
ffc0f6fc <pipe_write>:
pipe_control_t *pipe,
const void *buffer,
size_t count,
rtems_libio_t *iop
)
{
ffc0f6fc: 94 21 ff c0 stwu r1,-64(r1) <== NOT EXECUTED
ffc0f700: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc0f704: 93 c1 00 38 stw r30,56(r1) <== NOT EXECUTED
int chunk, chunk1, written = 0, ret = 0;
/* Write nothing */
if (count == 0)
ffc0f708: 7c be 2b 79 mr. r30,r5 <== NOT EXECUTED
pipe_control_t *pipe,
const void *buffer,
size_t count,
rtems_libio_t *iop
)
{
ffc0f70c: 92 e1 00 1c stw r23,28(r1) <== NOT EXECUTED
ffc0f710: 7c d7 33 78 mr r23,r6 <== NOT EXECUTED
ffc0f714: 93 81 00 30 stw r28,48(r1) <== NOT EXECUTED
int chunk, chunk1, written = 0, ret = 0;
/* Write nothing */
if (count == 0)
ffc0f718: 3b 80 00 00 li r28,0 <== NOT EXECUTED
pipe_control_t *pipe,
const void *buffer,
size_t count,
rtems_libio_t *iop
)
{
ffc0f71c: 93 a1 00 34 stw r29,52(r1) <== NOT EXECUTED
ffc0f720: 7c 9d 23 78 mr r29,r4 <== NOT EXECUTED
ffc0f724: 93 e1 00 3c stw r31,60(r1) <== NOT EXECUTED
ffc0f728: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED
ffc0f72c: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED
ffc0f730: 93 01 00 20 stw r24,32(r1) <== NOT EXECUTED
ffc0f734: 93 21 00 24 stw r25,36(r1) <== NOT EXECUTED
ffc0f738: 93 41 00 28 stw r26,40(r1) <== NOT EXECUTED
ffc0f73c: 93 61 00 2c stw r27,44(r1) <== NOT EXECUTED
int chunk, chunk1, written = 0, ret = 0;
/* Write nothing */
if (count == 0)
ffc0f740: 41 a2 01 b8 beq+ ffc0f8f8 <pipe_write+0x1fc> <== NOT EXECUTED
return 0;
if (! PIPE_LOCK(pipe))
ffc0f744: 80 63 00 28 lwz r3,40(r3) <== NOT EXECUTED
ffc0f748: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc0f74c: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc0f750: 4b ff 86 5d bl ffc07dac <rtems_semaphore_obtain> <== NOT EXECUTED
ffc0f754: 3b 80 ff fc li r28,-4 <== NOT EXECUTED
ffc0f758: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc0f75c: 40 9e 01 9c bne- cr7,ffc0f8f8 <pipe_write+0x1fc> <== NOT EXECUTED
return -EINTR;
if (pipe->Readers == 0) {
ffc0f760: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED
ffc0f764: 3b 60 ff e0 li r27,-32 <== NOT EXECUTED
ffc0f768: 3b 80 00 00 li r28,0 <== NOT EXECUTED
ffc0f76c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0f770: 41 9e 01 60 beq- cr7,ffc0f8d0 <pipe_write+0x1d4> <== NOT EXECUTED
ret = -EPIPE;
goto out_locked;
}
/* Write of PIPE_BUF bytes or less shall not be interleaved */
chunk = count <= pipe->Size ? count : 1;
ffc0f774: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED
ffc0f778: 7f d9 f3 78 mr r25,r30 <== NOT EXECUTED
ffc0f77c: 7f 9e 00 40 cmplw cr7,r30,r0 <== NOT EXECUTED
ffc0f780: 40 9d 00 08 ble- cr7,ffc0f788 <pipe_write+0x8c> <== NOT EXECUTED
ffc0f784: 3b 20 00 01 li r25,1 <== NOT EXECUTED
ffc0f788: 3b 80 00 00 li r28,0 <== NOT EXECUTED
else
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
pipe->Length += chunk;
if (pipe->waitingReaders > 0)
PIPE_WAKEUPREADERS(pipe);
ffc0f78c: 3b 01 00 08 addi r24,r1,8 <== NOT EXECUTED
ffc0f790: 48 00 01 34 b ffc0f8c4 <pipe_write+0x1c8> <== NOT EXECUTED
/* Write of PIPE_BUF bytes or less shall not be interleaved */
chunk = count <= pipe->Size ? count : 1;
while (written < count) {
while (PIPE_SPACE(pipe) < chunk) {
if (LIBIO_NODELAY(iop)) {
ffc0f794: 80 17 00 18 lwz r0,24(r23) <== NOT EXECUTED
ffc0f798: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED
ffc0f79c: 41 a2 00 0c beq+ ffc0f7a8 <pipe_write+0xac> <== NOT EXECUTED
ffc0f7a0: 3b 60 ff f5 li r27,-11 <== NOT EXECUTED
ffc0f7a4: 48 00 01 2c b ffc0f8d0 <pipe_write+0x1d4> <== NOT EXECUTED
ret = -EAGAIN;
goto out_locked;
}
/* Wait until there is chunk bytes space or no reader exists */
pipe->waitingWriters ++;
ffc0f7a8: 81 3f 00 1c lwz r9,28(r31) <== NOT EXECUTED
PIPE_UNLOCK(pipe);
ffc0f7ac: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED
ret = -EAGAIN;
goto out_locked;
}
/* Wait until there is chunk bytes space or no reader exists */
pipe->waitingWriters ++;
ffc0f7b0: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED
ffc0f7b4: 90 1f 00 1c stw r0,28(r31) <== NOT EXECUTED
PIPE_UNLOCK(pipe);
ffc0f7b8: 4b ff 87 39 bl ffc07ef0 <rtems_semaphore_release> <== NOT EXECUTED
if (! PIPE_WRITEWAIT(pipe))
ffc0f7bc: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED
ffc0f7c0: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc0f7c4: 48 00 11 75 bl ffc10938 <rtems_barrier_wait> <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
ffc0f7c8: 38 80 00 00 li r4,0 <== NOT EXECUTED
}
/* Wait until there is chunk bytes space or no reader exists */
pipe->waitingWriters ++;
PIPE_UNLOCK(pipe);
if (! PIPE_WRITEWAIT(pipe))
ffc0f7cc: 33 63 ff ff addic r27,r3,-1 <== NOT EXECUTED
ffc0f7d0: 7f 7b d9 10 subfe r27,r27,r27 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
ffc0f7d4: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED
ffc0f7d8: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc0f7dc: 4b ff 85 d1 bl ffc07dac <rtems_semaphore_obtain> <== NOT EXECUTED
}
/* Wait until there is chunk bytes space or no reader exists */
pipe->waitingWriters ++;
PIPE_UNLOCK(pipe);
if (! PIPE_WRITEWAIT(pipe))
ffc0f7e0: 57 7b 07 7a rlwinm r27,r27,0,29,29 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
ffc0f7e4: 2f 03 00 00 cmpwi cr6,r3,0 <== NOT EXECUTED
}
/* Wait until there is chunk bytes space or no reader exists */
pipe->waitingWriters ++;
PIPE_UNLOCK(pipe);
if (! PIPE_WRITEWAIT(pipe))
ffc0f7e8: 3b 7b ff fc addi r27,r27,-4 <== NOT EXECUTED
/* WARN waitingWriters not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingWriters --;
if (ret != 0)
ffc0f7ec: 2f 9b 00 00 cmpwi cr7,r27,0 <== 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)) {
ffc0f7f0: 41 ba 00 0c beq+ cr6,ffc0f7fc <pipe_write+0x100> <== NOT EXECUTED
ffc0f7f4: 3b 60 ff fc li r27,-4 <== NOT EXECUTED
ffc0f7f8: 48 00 00 f4 b ffc0f8ec <pipe_write+0x1f0> <== NOT EXECUTED
/* WARN waitingWriters not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingWriters --;
ffc0f7fc: 81 3f 00 1c lwz r9,28(r31) <== NOT EXECUTED
ffc0f800: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED
ffc0f804: 90 1f 00 1c stw r0,28(r31) <== NOT EXECUTED
if (ret != 0)
ffc0f808: 40 9e 00 c8 bne- cr7,ffc0f8d0 <pipe_write+0x1d4> <== NOT EXECUTED
goto out_locked;
if (pipe->Readers == 0) {
ffc0f80c: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED
ffc0f810: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0f814: 40 be 00 0c bne+ cr7,ffc0f820 <pipe_write+0x124> <== NOT EXECUTED
ffc0f818: 3b 60 ff e0 li r27,-32 <== NOT EXECUTED
ffc0f81c: 48 00 00 b4 b ffc0f8d0 <pipe_write+0x1d4> <== 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) {
ffc0f820: 83 5f 00 04 lwz r26,4(r31) <== NOT EXECUTED
ffc0f824: 80 1f 00 0c lwz r0,12(r31) <== NOT EXECUTED
ffc0f828: 7f 60 d0 50 subf r27,r0,r26 <== NOT EXECUTED
ffc0f82c: 7f 9b c8 40 cmplw cr7,r27,r25 <== NOT EXECUTED
ffc0f830: 41 9c ff 64 blt+ cr7,ffc0f794 <pipe_write+0x98> <== NOT EXECUTED
ret = -EPIPE;
goto out_locked;
}
}
chunk = MIN(count - written, PIPE_SPACE(pipe));
ffc0f834: 7d 3c f0 50 subf r9,r28,r30 <== NOT EXECUTED
ffc0f838: 7f 9b 48 40 cmplw cr7,r27,r9 <== NOT EXECUTED
ffc0f83c: 40 9d 00 08 ble- cr7,ffc0f844 <pipe_write+0x148> <== NOT EXECUTED
ffc0f840: 7d 3b 4b 78 mr r27,r9 <== NOT EXECUTED
chunk1 = pipe->Size - PIPE_WSTART(pipe);
ffc0f844: 81 3f 00 08 lwz r9,8(r31) <== NOT EXECUTED
ffc0f848: 7c 9d e2 14 add r4,r29,r28 <== NOT EXECUTED
ffc0f84c: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED
ffc0f850: 7d 20 4a 14 add r9,r0,r9 <== NOT EXECUTED
ffc0f854: 7c 09 d3 96 divwu r0,r9,r26 <== NOT EXECUTED
ffc0f858: 7c 00 d1 d6 mullw r0,r0,r26 <== NOT EXECUTED
ffc0f85c: 7c 00 48 50 subf r0,r0,r9 <== NOT EXECUTED
ffc0f860: 7f 40 d0 50 subf r26,r0,r26 <== NOT EXECUTED
if (chunk > chunk1) {
ffc0f864: 7f 9b d0 00 cmpw cr7,r27,r26 <== NOT EXECUTED
ffc0f868: 40 9d 00 24 ble- cr7,ffc0f88c <pipe_write+0x190> <== NOT EXECUTED
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
ffc0f86c: 7f 45 d3 78 mr r5,r26 <== NOT EXECUTED
ffc0f870: 7c 63 02 14 add r3,r3,r0 <== NOT EXECUTED
ffc0f874: 48 00 2f 39 bl ffc127ac <memcpy> <== NOT EXECUTED
memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
ffc0f878: 7c 9a e2 14 add r4,r26,r28 <== NOT EXECUTED
ffc0f87c: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED
ffc0f880: 7c 9d 22 14 add r4,r29,r4 <== NOT EXECUTED
ffc0f884: 7c ba d8 50 subf r5,r26,r27 <== NOT EXECUTED
ffc0f888: 48 00 00 0c b ffc0f894 <pipe_write+0x198> <== NOT EXECUTED
}
else
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
ffc0f88c: 7c 63 02 14 add r3,r3,r0 <== NOT EXECUTED
ffc0f890: 7f 65 db 78 mr r5,r27 <== NOT EXECUTED
ffc0f894: 48 00 2f 19 bl ffc127ac <memcpy> <== NOT EXECUTED
pipe->Length += chunk;
if (pipe->waitingReaders > 0)
ffc0f898: 81 3f 00 18 lwz r9,24(r31) <== NOT EXECUTED
memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
}
else
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
pipe->Length += chunk;
ffc0f89c: 80 1f 00 0c lwz r0,12(r31) <== NOT EXECUTED
if (pipe->waitingReaders > 0)
ffc0f8a0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
}
else
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
pipe->Length += chunk;
ffc0f8a4: 7c 00 da 14 add r0,r0,r27 <== NOT EXECUTED
ffc0f8a8: 90 1f 00 0c stw r0,12(r31) <== NOT EXECUTED
if (pipe->waitingReaders > 0)
ffc0f8ac: 41 be 00 10 beq+ cr7,ffc0f8bc <pipe_write+0x1c0> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
ffc0f8b0: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED
ffc0f8b4: 7f 04 c3 78 mr r4,r24 <== NOT EXECUTED
ffc0f8b8: 48 00 10 01 bl ffc108b8 <rtems_barrier_release> <== NOT EXECUTED
written += chunk;
ffc0f8bc: 7f 9c da 14 add r28,r28,r27 <== NOT EXECUTED
ffc0f8c0: 3b 20 00 01 li r25,1 <== NOT EXECUTED
}
/* Write of PIPE_BUF bytes or less shall not be interleaved */
chunk = count <= pipe->Size ? count : 1;
while (written < count) {
ffc0f8c4: 7f 9c f0 40 cmplw cr7,r28,r30 <== NOT EXECUTED
ffc0f8c8: 41 9c ff 58 blt+ cr7,ffc0f820 <pipe_write+0x124> <== NOT EXECUTED
ffc0f8cc: 3b 60 00 00 li r27,0 <== NOT EXECUTED
/* Write of more than PIPE_BUF bytes can be interleaved */
chunk = 1;
}
out_locked:
PIPE_UNLOCK(pipe);
ffc0f8d0: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED
ffc0f8d4: 4b ff 86 1d bl ffc07ef0 <rtems_semaphore_release> <== NOT EXECUTED
out_nolock:
#ifdef RTEMS_POSIX_API
/* Signal SIGPIPE */
if (ret == -EPIPE)
ffc0f8d8: 2f 9b ff e0 cmpwi cr7,r27,-32 <== NOT EXECUTED
ffc0f8dc: 40 be 00 10 bne+ cr7,ffc0f8ec <pipe_write+0x1f0> <== NOT EXECUTED
kill(getpid(), SIGPIPE);
ffc0f8e0: 48 00 09 d9 bl ffc102b8 <getpid> <== NOT EXECUTED
ffc0f8e4: 38 80 00 0d li r4,13 <== NOT EXECUTED
ffc0f8e8: 48 00 0b 69 bl ffc10450 <kill> <== NOT EXECUTED
#endif
if (written > 0)
ffc0f8ec: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED
ffc0f8f0: 41 bd 00 08 bgt+ cr7,ffc0f8f8 <pipe_write+0x1fc> <== NOT EXECUTED
ffc0f8f4: 7f 7c db 78 mr r28,r27 <== NOT EXECUTED
return written;
return ret;
}
ffc0f8f8: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED
ffc0f8fc: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED
ffc0f900: 82 e1 00 1c lwz r23,28(r1) <== NOT EXECUTED
ffc0f904: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0f908: 83 01 00 20 lwz r24,32(r1) <== NOT EXECUTED
ffc0f90c: 83 21 00 24 lwz r25,36(r1) <== NOT EXECUTED
ffc0f910: 83 41 00 28 lwz r26,40(r1) <== NOT EXECUTED
ffc0f914: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED
ffc0f918: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED
ffc0f91c: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED
ffc0f920: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED
ffc0f924: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED
ffc0f928: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED
ffc0f92c: 4e 80 00 20 blr <== NOT EXECUTED
ffc0521c <printk>:
* printk
*
* Kernel printf function requiring minimal infrastrure.
*/
void printk(const char *fmt, ...)
{
ffc0521c: 94 21 ff 88 stwu r1,-120(r1)
ffc05220: 7c 08 02 a6 mflr r0
ffc05224: 90 81 00 1c stw r4,28(r1)
ffc05228: 90 01 00 7c stw r0,124(r1)
ffc0522c: 90 a1 00 20 stw r5,32(r1)
ffc05230: 90 c1 00 24 stw r6,36(r1)
ffc05234: 90 e1 00 28 stw r7,40(r1)
ffc05238: 91 01 00 2c stw r8,44(r1)
ffc0523c: 91 21 00 30 stw r9,48(r1)
ffc05240: 91 41 00 34 stw r10,52(r1)
ffc05244: 40 86 00 24 bne- cr1,ffc05268 <printk+0x4c>
ffc05248: d8 21 00 38 stfd f1,56(r1) <== NOT EXECUTED
ffc0524c: d8 41 00 40 stfd f2,64(r1) <== NOT EXECUTED
ffc05250: d8 61 00 48 stfd f3,72(r1) <== NOT EXECUTED
ffc05254: d8 81 00 50 stfd f4,80(r1) <== NOT EXECUTED
ffc05258: d8 a1 00 58 stfd f5,88(r1) <== NOT EXECUTED
ffc0525c: d8 c1 00 60 stfd f6,96(r1) <== NOT EXECUTED
ffc05260: d8 e1 00 68 stfd f7,104(r1) <== NOT EXECUTED
ffc05264: d9 01 00 70 stfd f8,112(r1) <== NOT EXECUTED
va_list ap; /* points to each unnamed argument in turn */
va_start(ap, fmt); /* make ap point to 1st unnamed arg */
ffc05268: 38 00 00 01 li r0,1
ffc0526c: 98 01 00 08 stb r0,8(r1)
ffc05270: 38 00 00 00 li r0,0
vprintk(fmt, ap);
ffc05274: 38 81 00 08 addi r4,r1,8
*/
void printk(const char *fmt, ...)
{
va_list ap; /* points to each unnamed argument in turn */
va_start(ap, fmt); /* make ap point to 1st unnamed arg */
ffc05278: 98 01 00 09 stb r0,9(r1)
ffc0527c: 38 01 00 80 addi r0,r1,128
ffc05280: 90 01 00 0c stw r0,12(r1)
ffc05284: 38 01 00 18 addi r0,r1,24
ffc05288: 90 01 00 10 stw r0,16(r1)
vprintk(fmt, ap);
ffc0528c: 48 00 1f ed bl ffc07278 <vprintk>
va_end(ap); /* clean up when done */
}
ffc05290: 80 01 00 7c lwz r0,124(r1)
ffc05294: 38 21 00 78 addi r1,r1,120
ffc05298: 7c 08 03 a6 mtlr r0
ffc0529c: 4e 80 00 20 blr
ffc06a90 <printk_plugin>:
int printk_plugin(
void *ignored __attribute__((unused)),
const char *format,
...
)
{
ffc06a90: 94 21 ff 90 stwu r1,-112(r1)
ffc06a94: 7c 08 02 a6 mflr r0
ffc06a98: 90 a1 00 18 stw r5,24(r1)
ffc06a9c: 90 01 00 74 stw r0,116(r1)
ffc06aa0: 90 c1 00 1c stw r6,28(r1)
ffc06aa4: 90 e1 00 20 stw r7,32(r1)
ffc06aa8: 91 01 00 24 stw r8,36(r1)
ffc06aac: 91 21 00 28 stw r9,40(r1)
ffc06ab0: 91 41 00 2c stw r10,44(r1)
ffc06ab4: 40 86 00 24 bne- cr1,ffc06ad8 <printk_plugin+0x48>
ffc06ab8: d8 21 00 30 stfd f1,48(r1) <== NOT EXECUTED
ffc06abc: d8 41 00 38 stfd f2,56(r1) <== NOT EXECUTED
ffc06ac0: d8 61 00 40 stfd f3,64(r1) <== NOT EXECUTED
ffc06ac4: d8 81 00 48 stfd f4,72(r1) <== NOT EXECUTED
ffc06ac8: d8 a1 00 50 stfd f5,80(r1) <== NOT EXECUTED
ffc06acc: d8 c1 00 58 stfd f6,88(r1) <== NOT EXECUTED
ffc06ad0: d8 e1 00 60 stfd f7,96(r1) <== NOT EXECUTED
ffc06ad4: d9 01 00 68 stfd f8,104(r1) <== NOT EXECUTED
va_list arg_pointer;
va_start (arg_pointer, format);
ffc06ad8: 38 00 00 02 li r0,2
ffc06adc: 98 01 00 08 stb r0,8(r1)
ffc06ae0: 38 00 00 00 li r0,0
vprintk( format, arg_pointer );
ffc06ae4: 7c 83 23 78 mr r3,r4
...
)
{
va_list arg_pointer;
va_start (arg_pointer, format);
ffc06ae8: 98 01 00 09 stb r0,9(r1)
ffc06aec: 38 01 00 78 addi r0,r1,120
vprintk( format, arg_pointer );
ffc06af0: 38 81 00 08 addi r4,r1,8
...
)
{
va_list arg_pointer;
va_start (arg_pointer, format);
ffc06af4: 90 01 00 0c stw r0,12(r1)
ffc06af8: 38 01 00 10 addi r0,r1,16
ffc06afc: 90 01 00 10 stw r0,16(r1)
vprintk( format, arg_pointer );
ffc06b00: 48 00 1f f1 bl ffc08af0 <vprintk>
va_end(arg_pointer); /* clean up when done */
return 0;
}
ffc06b04: 38 60 00 00 li r3,0
ffc06b08: 80 01 00 74 lwz r0,116(r1)
ffc06b0c: 38 21 00 70 addi r1,r1,112
ffc06b10: 7c 08 03 a6 mtlr r0
ffc06b14: 4e 80 00 20 blr
ffc1c964 <read>:
ssize_t read(
int fd,
void *buffer,
size_t count
)
{
ffc1c964: 94 21 ff f0 stwu r1,-16(r1)
ffc1c968: 7c 08 02 a6 mflr r0
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
ffc1c96c: 3d 20 00 00 lis r9,0
ssize_t read(
int fd,
void *buffer,
size_t count
)
{
ffc1c970: 90 01 00 14 stw r0,20(r1)
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
ffc1c974: 80 09 26 8c lwz r0,9868(r9)
ssize_t read(
int fd,
void *buffer,
size_t count
)
{
ffc1c978: 93 e1 00 0c stw r31,12(r1)
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
ffc1c97c: 7f 83 00 40 cmplw cr7,r3,r0
ffc1c980: 40 9c 00 20 bge- cr7,ffc1c9a0 <read+0x3c>
iop = rtems_libio_iop( fd );
ffc1c984: 3d 40 00 00 lis r10,0
ffc1c988: 83 ea 27 4c lwz r31,10060(r10)
ffc1c98c: 1c 63 00 48 mulli r3,r3,72
ffc1c990: 7f ff 1a 14 add r31,r31,r3
rtems_libio_check_is_open( iop );
ffc1c994: 80 1f 00 18 lwz r0,24(r31)
ffc1c998: 70 0a 01 00 andi. r10,r0,256
ffc1c99c: 40 a2 00 10 bne+ ffc1c9ac <read+0x48>
ffc1c9a0: 4b ff 52 25 bl ffc11bc4 <__errno>
ffc1c9a4: 38 00 00 09 li r0,9
ffc1c9a8: 48 00 00 44 b ffc1c9ec <read+0x88>
rtems_libio_check_buffer( buffer );
ffc1c9ac: 2f 84 00 00 cmpwi cr7,r4,0
ffc1c9b0: 41 9e 00 18 beq- cr7,ffc1c9c8 <read+0x64>
rtems_libio_check_count( count );
ffc1c9b4: 2f 85 00 00 cmpwi cr7,r5,0
ffc1c9b8: 38 60 00 00 li r3,0
ffc1c9bc: 41 9e 00 70 beq- cr7,ffc1ca2c <read+0xc8>
rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );
ffc1c9c0: 70 09 00 02 andi. r9,r0,2
ffc1c9c4: 40 a2 00 10 bne+ ffc1c9d4 <read+0x70>
ffc1c9c8: 4b ff 51 fd bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc1c9cc: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc1c9d0: 48 00 00 1c b ffc1c9ec <read+0x88> <== NOT EXECUTED
/*
* Now process the read().
*/
if ( !iop->handlers->read_h )
ffc1c9d4: 81 3f 00 40 lwz r9,64(r31)
ffc1c9d8: 80 09 00 08 lwz r0,8(r9)
ffc1c9dc: 2f 80 00 00 cmpwi cr7,r0,0
ffc1c9e0: 40 be 00 18 bne+ cr7,ffc1c9f8 <read+0x94>
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc1c9e4: 4b ff 51 e1 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc1c9e8: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc1c9ec: 90 03 00 00 stw r0,0(r3)
ffc1c9f0: 38 60 ff ff li r3,-1
ffc1c9f4: 48 00 00 38 b ffc1ca2c <read+0xc8>
rc = (*iop->handlers->read_h)( iop, buffer, count );
ffc1c9f8: 7f e3 fb 78 mr r3,r31
ffc1c9fc: 7c 09 03 a6 mtctr r0
ffc1ca00: 4e 80 04 21 bctrl
if ( rc > 0 )
ffc1ca04: 2c 03 00 00 cmpwi r3,0
ffc1ca08: 40 81 00 24 ble- ffc1ca2c <read+0xc8>
iop->offset += rc;
ffc1ca0c: 80 ff 00 10 lwz r7,16(r31)
ffc1ca10: 7c 6a 1b 78 mr r10,r3
ffc1ca14: 81 1f 00 14 lwz r8,20(r31)
ffc1ca18: 7c 69 fe 70 srawi r9,r3,31
ffc1ca1c: 7d 88 50 14 addc r12,r8,r10
ffc1ca20: 7d 67 49 14 adde r11,r7,r9
ffc1ca24: 91 7f 00 10 stw r11,16(r31)
ffc1ca28: 91 9f 00 14 stw r12,20(r31)
return rc;
}
ffc1ca2c: 80 01 00 14 lwz r0,20(r1)
ffc1ca30: 83 e1 00 0c lwz r31,12(r1)
ffc1ca34: 38 21 00 10 addi r1,r1,16
ffc1ca38: 7c 08 03 a6 mtlr r0
ffc1ca3c: 4e 80 00 20 blr
ffc2c5fc <readlink>:
ssize_t readlink(
const char *pathname,
char *buf,
size_t bufsize
)
{
ffc2c5fc: 94 21 ff c8 stwu r1,-56(r1)
ffc2c600: 7c 08 02 a6 mflr r0
ffc2c604: 93 a1 00 2c stw r29,44(r1)
rtems_filesystem_location_info_t loc;
int result;
if (!buf)
ffc2c608: 7c 9d 23 79 mr. r29,r4
ssize_t readlink(
const char *pathname,
char *buf,
size_t bufsize
)
{
ffc2c60c: 93 81 00 28 stw r28,40(r1)
ffc2c610: 7c 7c 1b 78 mr r28,r3
ffc2c614: 93 c1 00 30 stw r30,48(r1)
ffc2c618: 7c be 2b 78 mr r30,r5
ffc2c61c: 90 01 00 3c stw r0,60(r1)
ffc2c620: 93 e1 00 34 stw r31,52(r1)
rtems_filesystem_location_info_t loc;
int result;
if (!buf)
ffc2c624: 40 a2 00 10 bne+ ffc2c634 <readlink+0x38>
rtems_set_errno_and_return_minus_one( EFAULT );
ffc2c628: 48 01 b0 49 bl ffc47670 <__errno> <== NOT EXECUTED
ffc2c62c: 38 00 00 0e li r0,14 <== NOT EXECUTED
ffc2c630: 48 00 00 60 b ffc2c690 <readlink+0x94> <== NOT EXECUTED
result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ),
ffc2c634: 48 02 2e 11 bl ffc4f444 <strlen>
ffc2c638: 3b e1 00 08 addi r31,r1,8
ffc2c63c: 7c 64 1b 78 mr r4,r3
ffc2c640: 38 a0 00 00 li r5,0
ffc2c644: 7f 83 e3 78 mr r3,r28
ffc2c648: 7f e6 fb 78 mr r6,r31
ffc2c64c: 38 e0 00 00 li r7,0
ffc2c650: 4b fd ab 85 bl ffc071d4 <rtems_filesystem_evaluate_path>
0, &loc, false );
if ( result != 0 )
ffc2c654: 3b 80 ff ff li r28,-1
ffc2c658: 2f 83 00 00 cmpwi cr7,r3,0
ffc2c65c: 40 9e 00 cc bne- cr7,ffc2c728 <readlink+0x12c>
return -1;
if ( !loc.ops->node_type_h ){
ffc2c660: 81 21 00 14 lwz r9,20(r1)
ffc2c664: 80 09 00 10 lwz r0,16(r9)
ffc2c668: 2f 80 00 00 cmpwi cr7,r0,0
ffc2c66c: 40 be 00 30 bne+ cr7,ffc2c69c <readlink+0xa0>
rtems_filesystem_freenode( &loc );
ffc2c670: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2c674: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2c678: 41 9e 00 10 beq- cr7,ffc2c688 <readlink+0x8c> <== NOT EXECUTED
ffc2c67c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc2c680: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2c684: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc2c688: 48 01 af e9 bl ffc47670 <__errno> <== NOT EXECUTED
ffc2c68c: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc2c690: 90 03 00 00 stw r0,0(r3)
ffc2c694: 3b 80 ff ff li r28,-1
ffc2c698: 48 00 00 90 b ffc2c728 <readlink+0x12c>
}
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){
ffc2c69c: 7f e3 fb 78 mr r3,r31
ffc2c6a0: 7c 09 03 a6 mtctr r0
ffc2c6a4: 4e 80 04 21 bctrl
ffc2c6a8: 81 21 00 14 lwz r9,20(r1)
ffc2c6ac: 2f 83 00 04 cmpwi cr7,r3,4
ffc2c6b0: 41 be 00 30 beq+ cr7,ffc2c6e0 <readlink+0xe4>
rtems_filesystem_freenode( &loc );
ffc2c6b4: 2f 89 00 00 cmpwi cr7,r9,0
ffc2c6b8: 41 9e 00 1c beq- cr7,ffc2c6d4 <readlink+0xd8>
ffc2c6bc: 80 09 00 1c lwz r0,28(r9)
ffc2c6c0: 2f 80 00 00 cmpwi cr7,r0,0
ffc2c6c4: 41 9e 00 10 beq- cr7,ffc2c6d4 <readlink+0xd8>
ffc2c6c8: 7f e3 fb 78 mr r3,r31
ffc2c6cc: 7c 09 03 a6 mtctr r0
ffc2c6d0: 4e 80 04 21 bctrl
rtems_set_errno_and_return_minus_one( EINVAL );
ffc2c6d4: 48 01 af 9d bl ffc47670 <__errno>
ffc2c6d8: 38 00 00 16 li r0,22
ffc2c6dc: 4b ff ff b4 b ffc2c690 <readlink+0x94>
}
if ( !loc.ops->readlink_h ){
ffc2c6e0: 80 09 00 3c lwz r0,60(r9)
ffc2c6e4: 2f 80 00 00 cmpwi cr7,r0,0
ffc2c6e8: 41 be ff 88 beq- cr7,ffc2c670 <readlink+0x74>
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->readlink_h)( &loc, buf, bufsize );
ffc2c6ec: 7f a4 eb 78 mr r4,r29
ffc2c6f0: 7c 09 03 a6 mtctr r0
ffc2c6f4: 7f c5 f3 78 mr r5,r30
ffc2c6f8: 7f e3 fb 78 mr r3,r31
ffc2c6fc: 4e 80 04 21 bctrl
rtems_filesystem_freenode( &loc );
ffc2c700: 81 21 00 14 lwz r9,20(r1)
if ( !loc.ops->readlink_h ){
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->readlink_h)( &loc, buf, bufsize );
ffc2c704: 7c 7c 1b 78 mr r28,r3
rtems_filesystem_freenode( &loc );
ffc2c708: 2f 89 00 00 cmpwi cr7,r9,0
ffc2c70c: 41 9e 00 1c beq- cr7,ffc2c728 <readlink+0x12c>
ffc2c710: 80 09 00 1c lwz r0,28(r9)
ffc2c714: 2f 80 00 00 cmpwi cr7,r0,0
ffc2c718: 41 9e 00 10 beq- cr7,ffc2c728 <readlink+0x12c>
ffc2c71c: 7f e3 fb 78 mr r3,r31
ffc2c720: 7c 09 03 a6 mtctr r0
ffc2c724: 4e 80 04 21 bctrl
return result;
}
ffc2c728: 80 01 00 3c lwz r0,60(r1)
ffc2c72c: 7f 83 e3 78 mr r3,r28
ffc2c730: 83 a1 00 2c lwz r29,44(r1)
ffc2c734: 7c 08 03 a6 mtlr r0
ffc2c738: 83 81 00 28 lwz r28,40(r1)
ffc2c73c: 83 c1 00 30 lwz r30,48(r1)
ffc2c740: 83 e1 00 34 lwz r31,52(r1)
ffc2c744: 38 21 00 38 addi r1,r1,56
ffc2c748: 4e 80 00 20 blr
ffc067b4 <readv>:
ssize_t readv(
int fd,
const struct iovec *iov,
int iovcnt
)
{
ffc067b4: 94 21 ff d8 stwu r1,-40(r1)
ffc067b8: 7c 08 02 a6 mflr r0
int v;
int bytes;
rtems_libio_t *iop;
bool all_zeros;
rtems_libio_check_fd( fd );
ffc067bc: 3d 20 00 00 lis r9,0
ssize_t readv(
int fd,
const struct iovec *iov,
int iovcnt
)
{
ffc067c0: 90 01 00 2c stw r0,44(r1)
int v;
int bytes;
rtems_libio_t *iop;
bool all_zeros;
rtems_libio_check_fd( fd );
ffc067c4: 80 09 26 8c lwz r0,9868(r9)
ssize_t readv(
int fd,
const struct iovec *iov,
int iovcnt
)
{
ffc067c8: 93 81 00 18 stw r28,24(r1)
ffc067cc: 7c bc 2b 78 mr r28,r5
int v;
int bytes;
rtems_libio_t *iop;
bool all_zeros;
rtems_libio_check_fd( fd );
ffc067d0: 7f 83 00 40 cmplw cr7,r3,r0
ssize_t readv(
int fd,
const struct iovec *iov,
int iovcnt
)
{
ffc067d4: 93 21 00 0c stw r25,12(r1)
ffc067d8: 93 41 00 10 stw r26,16(r1)
ffc067dc: 93 61 00 14 stw r27,20(r1)
ffc067e0: 93 a1 00 1c stw r29,28(r1)
ffc067e4: 93 c1 00 20 stw r30,32(r1)
ffc067e8: 93 e1 00 24 stw r31,36(r1)
int v;
int bytes;
rtems_libio_t *iop;
bool all_zeros;
rtems_libio_check_fd( fd );
ffc067ec: 40 9c 00 20 bge- cr7,ffc0680c <readv+0x58>
iop = rtems_libio_iop( fd );
ffc067f0: 3d 20 00 00 lis r9,0
ffc067f4: 83 a9 27 50 lwz r29,10064(r9)
ffc067f8: 1c 63 00 48 mulli r3,r3,72
ffc067fc: 7f bd 1a 14 add r29,r29,r3
rtems_libio_check_is_open( iop );
ffc06800: 80 1d 00 18 lwz r0,24(r29)
ffc06804: 70 09 01 00 andi. r9,r0,256
ffc06808: 40 a2 00 10 bne+ ffc06818 <readv+0x64>
ffc0680c: 48 00 e0 29 bl ffc14834 <__errno> <== NOT EXECUTED
ffc06810: 38 00 00 09 li r0,9 <== NOT EXECUTED
ffc06814: 48 00 00 14 b ffc06828 <readv+0x74> <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );
ffc06818: 70 09 00 02 andi. r9,r0,2
ffc0681c: 40 a2 00 14 bne+ ffc06830 <readv+0x7c>
ffc06820: 48 00 e0 15 bl ffc14834 <__errno>
ffc06824: 38 00 00 16 li r0,22
ffc06828: 90 03 00 00 stw r0,0(r3)
ffc0682c: 48 00 00 bc b ffc068e8 <readv+0x134>
/*
* Argument validation on IO vector
*/
if ( !iov )
ffc06830: 2f 84 00 00 cmpwi cr7,r4,0
ffc06834: 41 be ff ec beq- cr7,ffc06820 <readv+0x6c>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt <= 0 )
ffc06838: 2f 85 00 00 cmpwi cr7,r5,0
ffc0683c: 40 bd ff e4 ble- cr7,ffc06820 <readv+0x6c>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt > IOV_MAX )
ffc06840: 2f 85 04 00 cmpwi cr7,r5,1024
ffc06844: 41 bd ff dc bgt- cr7,ffc06820 <readv+0x6c>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !iop->handlers->read_h )
ffc06848: 81 3d 00 40 lwz r9,64(r29)
ffc0684c: 80 09 00 08 lwz r0,8(r9)
ffc06850: 2f 80 00 00 cmpwi cr7,r0,0
ffc06854: 40 be 00 10 bne+ cr7,ffc06864 <readv+0xb0>
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc06858: 48 00 df dd bl ffc14834 <__errno> <== NOT EXECUTED
ffc0685c: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc06860: 4b ff ff c8 b ffc06828 <readv+0x74> <== NOT EXECUTED
ffc06864: 7c a9 03 a6 mtctr r5
ffc06868: 7c 9e 23 78 mr r30,r4
ffc0686c: 7c 89 23 78 mr r9,r4
ffc06870: 38 00 00 01 li r0,1
ffc06874: 39 60 00 00 li r11,0
all_zeros = true;
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
ssize_t old;
if ( !iov[v].iov_base )
ffc06878: 81 49 00 00 lwz r10,0(r9)
ffc0687c: 2f 8a 00 00 cmpwi cr7,r10,0
ffc06880: 41 be ff a0 beq- cr7,ffc06820 <readv+0x6c>
if ( iov[v].iov_len < 0 )
rtems_set_errno_and_return_minus_one( EINVAL );
/* check for wrap */
old = total;
total += iov[v].iov_len;
ffc06884: 81 09 00 04 lwz r8,4(r9)
* 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++ ) {
ffc06888: 39 29 00 08 addi r9,r9,8
if ( iov[v].iov_len < 0 )
rtems_set_errno_and_return_minus_one( EINVAL );
/* check for wrap */
old = total;
total += iov[v].iov_len;
ffc0688c: 7d 4b 42 14 add r10,r11,r8
if ( total < old )
ffc06890: 7f 8a 58 00 cmpw cr7,r10,r11
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iov[v].iov_len )
ffc06894: 31 08 ff ff addic r8,r8,-1
ffc06898: 7d 08 41 10 subfe r8,r8,r8
ffc0689c: 7c 00 40 38 and r0,r0,r8
* 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++ ) {
ffc068a0: 7d 4b 53 78 mr r11,r10
rtems_set_errno_and_return_minus_one( EINVAL );
/* check for wrap */
old = total;
total += iov[v].iov_len;
if ( total < old )
ffc068a4: 41 bc ff 7c blt- cr7,ffc06820 <readv+0x6c>
* 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++ ) {
ffc068a8: 42 00 ff d0 bdnz+ ffc06878 <readv+0xc4>
/*
* 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 ) {
ffc068ac: 2f 80 00 00 cmpwi cr7,r0,0
ffc068b0: 3b 60 00 00 li r27,0
ffc068b4: 3b e0 00 00 li r31,0
ffc068b8: 40 9e 00 74 bne- cr7,ffc0692c <readv+0x178>
/*
* Now process the readv().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len );
ffc068bc: 81 3d 00 40 lwz r9,64(r29)
ffc068c0: 7f a3 eb 78 mr r3,r29
ffc068c4: 80 9e 00 00 lwz r4,0(r30)
}
/*
* Now process the readv().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
ffc068c8: 3b 7b 00 01 addi r27,r27,1
bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len );
ffc068cc: 80 09 00 08 lwz r0,8(r9)
ffc068d0: 80 be 00 04 lwz r5,4(r30)
ffc068d4: 7c 09 03 a6 mtctr r0
ffc068d8: 4e 80 04 21 bctrl
}
/*
* Now process the readv().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
ffc068dc: 7f 9b e0 00 cmpw cr7,r27,r28
bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len );
if ( bytes < 0 )
ffc068e0: 2c 03 00 00 cmpwi r3,0
ffc068e4: 40 a0 00 0c bge+ ffc068f0 <readv+0x13c>
ffc068e8: 3b e0 ff ff li r31,-1
ffc068ec: 48 00 00 40 b ffc0692c <readv+0x178>
return -1;
if ( bytes > 0 ) {
ffc068f0: 41 82 00 28 beq- ffc06918 <readv+0x164>
iop->offset += bytes;
ffc068f4: 81 7d 00 10 lwz r11,16(r29)
ffc068f8: 7c 7a 1b 78 mr r26,r3
ffc068fc: 81 9d 00 14 lwz r12,20(r29)
ffc06900: 7c 79 fe 70 srawi r25,r3,31
total += bytes;
ffc06904: 7f ff 1a 14 add r31,r31,r3
if ( bytes < 0 )
return -1;
if ( bytes > 0 ) {
iop->offset += bytes;
ffc06908: 7d 4c d0 14 addc r10,r12,r26
ffc0690c: 7d 2b c9 14 adde r9,r11,r25
ffc06910: 91 3d 00 10 stw r9,16(r29)
ffc06914: 91 5d 00 14 stw r10,20(r29)
total += bytes;
}
if (bytes != iov[ v ].iov_len)
ffc06918: 80 1e 00 04 lwz r0,4(r30)
}
/*
* Now process the readv().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
ffc0691c: 3b de 00 08 addi r30,r30,8
if ( bytes > 0 ) {
iop->offset += bytes;
total += bytes;
}
if (bytes != iov[ v ].iov_len)
ffc06920: 7f 03 00 00 cmpw cr6,r3,r0
ffc06924: 40 9a 00 08 bne- cr6,ffc0692c <readv+0x178>
}
/*
* Now process the readv().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
ffc06928: 41 9c ff 94 blt+ cr7,ffc068bc <readv+0x108>
if (bytes != iov[ v ].iov_len)
break;
}
return total;
}
ffc0692c: 80 01 00 2c lwz r0,44(r1)
ffc06930: 7f e3 fb 78 mr r3,r31
ffc06934: 83 21 00 0c lwz r25,12(r1)
ffc06938: 7c 08 03 a6 mtlr r0
ffc0693c: 83 41 00 10 lwz r26,16(r1)
ffc06940: 83 61 00 14 lwz r27,20(r1)
ffc06944: 83 81 00 18 lwz r28,24(r1)
ffc06948: 83 a1 00 1c lwz r29,28(r1)
ffc0694c: 83 c1 00 20 lwz r30,32(r1)
ffc06950: 83 e1 00 24 lwz r31,36(r1)
ffc06954: 38 21 00 28 addi r1,r1,40
ffc06958: 4e 80 00 20 blr
ffc1cae4 <realloc>:
{
uintptr_t old_size;
char *new_area;
uintptr_t resize;
MSBUMP(realloc_calls, 1);
ffc1cae4: 94 21 ff d8 stwu r1,-40(r1)
ffc1cae8: 7c 08 02 a6 mflr r0
/*
* Do not attempt to allocate memory if in a critical section or ISR.
*/
if (_System_state_Is_up(_System_state_Get())) {
ffc1caec: 3d 20 00 00 lis r9,0
{
uintptr_t old_size;
char *new_area;
uintptr_t resize;
MSBUMP(realloc_calls, 1);
ffc1caf0: 90 01 00 2c stw r0,44(r1)
/*
* Do not attempt to allocate memory if in a critical section or ISR.
*/
if (_System_state_Is_up(_System_state_Get())) {
ffc1caf4: 80 09 27 d4 lwz r0,10196(r9)
{
uintptr_t old_size;
char *new_area;
uintptr_t resize;
MSBUMP(realloc_calls, 1);
ffc1caf8: 3d 20 00 00 lis r9,0
ffc1cafc: 39 29 2b 00 addi r9,r9,11008
ffc1cb00: 93 c1 00 20 stw r30,32(r1)
/*
* Do not attempt to allocate memory if in a critical section or ISR.
*/
if (_System_state_Is_up(_System_state_Get())) {
ffc1cb04: 2f 80 00 03 cmpwi cr7,r0,3
{
uintptr_t old_size;
char *new_area;
uintptr_t resize;
MSBUMP(realloc_calls, 1);
ffc1cb08: 81 69 00 10 lwz r11,16(r9)
ffc1cb0c: 7c 9e 23 78 mr r30,r4
ffc1cb10: 93 e1 00 24 stw r31,36(r1)
ffc1cb14: 7c 7f 1b 78 mr r31,r3
ffc1cb18: 39 6b 00 01 addi r11,r11,1
ffc1cb1c: 93 a1 00 1c stw r29,28(r1)
ffc1cb20: 91 69 00 10 stw r11,16(r9)
/*
* Do not attempt to allocate memory if in a critical section or ISR.
*/
if (_System_state_Is_up(_System_state_Get())) {
ffc1cb24: 40 be 00 24 bne+ cr7,ffc1cb48 <realloc+0x64>
if (_Thread_Dispatch_disable_level > 0)
ffc1cb28: 3d 20 00 00 lis r9,0
ffc1cb2c: 80 09 27 70 lwz r0,10096(r9)
ffc1cb30: 2f 80 00 00 cmpwi cr7,r0,0
ffc1cb34: 40 be 00 d8 bne+ cr7,ffc1cc0c <realloc+0x128>
return (void *) 0;
if (_ISR_Nest_level > 0)
ffc1cb38: 3d 20 00 00 lis r9,0
ffc1cb3c: 80 09 27 98 lwz r0,10136(r9)
ffc1cb40: 2f 80 00 00 cmpwi cr7,r0,0
ffc1cb44: 40 9e 00 c8 bne- cr7,ffc1cc0c <realloc+0x128>
}
/*
* Continue with realloc().
*/
if ( !ptr )
ffc1cb48: 2f 9f 00 00 cmpwi cr7,r31,0
ffc1cb4c: 40 be 00 14 bne+ cr7,ffc1cb60 <realloc+0x7c>
return malloc( size );
ffc1cb50: 7f c3 f3 78 mr r3,r30
ffc1cb54: 4b fe 7a 55 bl ffc045a8 <malloc>
ffc1cb58: 7c 7f 1b 78 mr r31,r3
ffc1cb5c: 48 00 00 b4 b ffc1cc10 <realloc+0x12c>
if ( !size ) {
ffc1cb60: 2f 9e 00 00 cmpwi cr7,r30,0
ffc1cb64: 40 be 00 10 bne+ cr7,ffc1cb74 <realloc+0x90>
free( ptr );
ffc1cb68: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc1cb6c: 4b fe 76 d9 bl ffc04244 <free> <== NOT EXECUTED
ffc1cb70: 48 00 00 9c b ffc1cc0c <realloc+0x128> <== NOT EXECUTED
return (void *) 0;
}
if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
ffc1cb74: 3f a0 00 00 lis r29,0
ffc1cb78: 80 7d 26 9c lwz r3,9884(r29)
ffc1cb7c: 7f e4 fb 78 mr r4,r31
ffc1cb80: 38 a1 00 08 addi r5,r1,8
ffc1cb84: 48 00 01 89 bl ffc1cd0c <_Protected_heap_Get_block_size>
ffc1cb88: 2f 83 00 00 cmpwi cr7,r3,0
ffc1cb8c: 40 be 00 14 bne+ cr7,ffc1cba0 <realloc+0xbc>
errno = EINVAL;
ffc1cb90: 4b ff 50 35 bl ffc11bc4 <__errno>
ffc1cb94: 38 00 00 16 li r0,22
ffc1cb98: 90 03 00 00 stw r0,0(r3)
ffc1cb9c: 48 00 00 70 b ffc1cc0c <realloc+0x128>
#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 ) ) {
ffc1cba0: 80 7d 26 9c lwz r3,9884(r29)
ffc1cba4: 7f e4 fb 78 mr r4,r31
ffc1cba8: 7f c5 f3 78 mr r5,r30
ffc1cbac: 48 00 01 c5 bl ffc1cd70 <_Protected_heap_Resize_block>
ffc1cbb0: 2f 83 00 00 cmpwi cr7,r3,0
ffc1cbb4: 40 be 00 5c bne+ cr7,ffc1cc10 <realloc+0x12c>
* 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 );
ffc1cbb8: 7f c3 f3 78 mr r3,r30
ffc1cbbc: 4b fe 79 ed bl ffc045a8 <malloc>
MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */
ffc1cbc0: 3d 20 00 00 lis r9,0
if ( !new_area ) {
ffc1cbc4: 7c 7d 1b 79 mr. r29,r3
* and the C Standard.
*/
new_area = malloc( size );
MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */
ffc1cbc8: 39 29 2b 00 addi r9,r9,11008
ffc1cbcc: 81 69 00 04 lwz r11,4(r9)
ffc1cbd0: 38 0b ff ff addi r0,r11,-1
ffc1cbd4: 90 09 00 04 stw r0,4(r9)
if ( !new_area ) {
ffc1cbd8: 41 82 00 34 beq- ffc1cc0c <realloc+0x128>
return (void *) 0;
}
memcpy( new_area, ptr, (size < old_size) ? size : old_size );
ffc1cbdc: 80 01 00 08 lwz r0,8(r1)
ffc1cbe0: 7f c5 f3 78 mr r5,r30
ffc1cbe4: 7f 9e 00 40 cmplw cr7,r30,r0
ffc1cbe8: 40 9d 00 08 ble- cr7,ffc1cbf0 <realloc+0x10c>
ffc1cbec: 7c 05 03 78 mr r5,r0
ffc1cbf0: 7f e4 fb 78 mr r4,r31
ffc1cbf4: 7f a3 eb 78 mr r3,r29
ffc1cbf8: 4b ff 5b b5 bl ffc127ac <memcpy>
free( ptr );
ffc1cbfc: 7f e3 fb 78 mr r3,r31
ffc1cc00: 4b fe 76 45 bl ffc04244 <free>
ffc1cc04: 7f bf eb 78 mr r31,r29
return new_area;
ffc1cc08: 48 00 00 08 b ffc1cc10 <realloc+0x12c>
ffc1cc0c: 3b e0 00 00 li r31,0
}
ffc1cc10: 80 01 00 2c lwz r0,44(r1)
ffc1cc14: 7f e3 fb 78 mr r3,r31
ffc1cc18: 83 a1 00 1c lwz r29,28(r1)
ffc1cc1c: 7c 08 03 a6 mtlr r0
ffc1cc20: 83 c1 00 20 lwz r30,32(r1)
ffc1cc24: 83 e1 00 24 lwz r31,36(r1)
ffc1cc28: 38 21 00 28 addi r1,r1,40
ffc1cc2c: 4e 80 00 20 blr
ffc2c74c <rmdir>:
#include <rtems/seterr.h>
int rmdir(
const char *pathname
)
{
ffc2c74c: 94 21 ff b8 stwu r1,-72(r1)
ffc2c750: 7c 08 02 a6 mflr r0
ffc2c754: 93 a1 00 3c stw r29,60(r1)
ffc2c758: 93 c1 00 40 stw r30,64(r1)
ffc2c75c: 7c 7e 1b 78 mr r30,r3
ffc2c760: 90 01 00 4c stw r0,76(r1)
ffc2c764: 93 e1 00 44 stw r31,68(r1)
/*
* Get the parent node of the node we wish to remove. Find the parent path.
*/
parentpathlen = rtems_filesystem_dirname ( pathname );
ffc2c768: 4b fd a8 f5 bl ffc0705c <rtems_filesystem_dirname>
if ( parentpathlen == 0 )
ffc2c76c: 7c 7d 1b 79 mr. r29,r3
ffc2c770: 40 82 00 8c bne- ffc2c7fc <rmdir+0xb0>
rtems_filesystem_get_start_loc( pathname, &i, &parentloc );
ffc2c774: 88 1e 00 00 lbz r0,0(r30)
ffc2c778: 2f 80 00 2f cmpwi cr7,r0,47
ffc2c77c: 41 9e 00 14 beq- cr7,ffc2c790 <rmdir+0x44>
ffc2c780: 2f 80 00 5c cmpwi cr7,r0,92 <== NOT EXECUTED
ffc2c784: 41 9e 00 0c beq- cr7,ffc2c790 <rmdir+0x44> <== NOT EXECUTED
ffc2c788: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2c78c: 40 9e 00 38 bne- cr7,ffc2c7c4 <rmdir+0x78> <== NOT EXECUTED
ffc2c790: 3d 20 00 00 lis r9,0
ffc2c794: 81 29 35 2c lwz r9,13612(r9)
ffc2c798: 3b e0 00 00 li r31,0
ffc2c79c: 80 09 00 24 lwz r0,36(r9)
ffc2c7a0: 81 09 00 18 lwz r8,24(r9)
ffc2c7a4: 81 49 00 1c lwz r10,28(r9)
ffc2c7a8: 81 69 00 20 lwz r11,32(r9)
ffc2c7ac: 91 01 00 08 stw r8,8(r1)
ffc2c7b0: 91 41 00 0c stw r10,12(r1)
ffc2c7b4: 91 61 00 10 stw r11,16(r1)
ffc2c7b8: 90 01 00 14 stw r0,20(r1)
ffc2c7bc: 80 09 00 28 lwz r0,40(r9)
ffc2c7c0: 48 00 00 34 b ffc2c7f4 <rmdir+0xa8>
ffc2c7c4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc2c7c8: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED
ffc2c7cc: 3b e0 00 00 li r31,0 <== NOT EXECUTED
ffc2c7d0: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED
ffc2c7d4: 81 09 00 04 lwz r8,4(r9) <== NOT EXECUTED
ffc2c7d8: 81 49 00 08 lwz r10,8(r9) <== NOT EXECUTED
ffc2c7dc: 81 69 00 0c lwz r11,12(r9) <== NOT EXECUTED
ffc2c7e0: 91 01 00 08 stw r8,8(r1) <== NOT EXECUTED
ffc2c7e4: 91 41 00 0c stw r10,12(r1) <== NOT EXECUTED
ffc2c7e8: 91 61 00 10 stw r11,16(r1) <== NOT EXECUTED
ffc2c7ec: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED
ffc2c7f0: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED
ffc2c7f4: 90 01 00 18 stw r0,24(r1)
ffc2c7f8: 48 00 00 28 b ffc2c820 <rmdir+0xd4>
else {
result = rtems_filesystem_evaluate_path(pathname, parentpathlen,
ffc2c7fc: 7f c3 f3 78 mr r3,r30
ffc2c800: 7f a4 eb 78 mr r4,r29
ffc2c804: 38 a0 00 02 li r5,2
ffc2c808: 38 c1 00 08 addi r6,r1,8
ffc2c80c: 38 e0 00 00 li r7,0
ffc2c810: 4b fd a9 c5 bl ffc071d4 <rtems_filesystem_evaluate_path>
RTEMS_LIBIO_PERMS_WRITE,
&parentloc,
false );
if ( result != 0 )
ffc2c814: 2f 83 00 00 cmpwi cr7,r3,0
ffc2c818: 40 9e 01 fc bne- cr7,ffc2ca14 <rmdir+0x2c8>
ffc2c81c: 3b e0 00 01 li r31,1
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
ffc2c820: 80 01 00 08 lwz r0,8(r1)
name = pathname + parentpathlen;
ffc2c824: 7f be ea 14 add r29,r30,r29
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
ffc2c828: 7f a3 eb 78 mr r3,r29
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
ffc2c82c: 90 01 00 1c stw r0,28(r1)
name = pathname + parentpathlen;
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
ffc2c830: 3b c1 00 1c addi r30,r1,28
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
ffc2c834: 80 01 00 0c lwz r0,12(r1)
ffc2c838: 90 01 00 20 stw r0,32(r1)
ffc2c83c: 80 01 00 10 lwz r0,16(r1)
ffc2c840: 90 01 00 24 stw r0,36(r1)
ffc2c844: 80 01 00 14 lwz r0,20(r1)
ffc2c848: 90 01 00 28 stw r0,40(r1)
ffc2c84c: 80 01 00 18 lwz r0,24(r1)
ffc2c850: 90 01 00 2c stw r0,44(r1)
name = pathname + parentpathlen;
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
ffc2c854: 48 02 2b f1 bl ffc4f444 <strlen>
ffc2c858: 7c 64 1b 78 mr r4,r3
ffc2c85c: 7f a3 eb 78 mr r3,r29
ffc2c860: 4b fd a7 c1 bl ffc07020 <rtems_filesystem_prefix_separators>
ffc2c864: 7f bd 1a 14 add r29,r29,r3
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
ffc2c868: 7f a3 eb 78 mr r3,r29
ffc2c86c: 48 02 2b d9 bl ffc4f444 <strlen>
ffc2c870: 38 a0 00 00 li r5,0
ffc2c874: 7c 64 1b 78 mr r4,r3
ffc2c878: 7f c6 f3 78 mr r6,r30
ffc2c87c: 7f a3 eb 78 mr r3,r29
ffc2c880: 38 e0 00 00 li r7,0
ffc2c884: 4b fd a8 3d bl ffc070c0 <rtems_filesystem_evaluate_relative_path>
0, &loc, false );
if ( result != 0 ) {
ffc2c888: 2f 83 00 00 cmpwi cr7,r3,0
ffc2c88c: 41 be 00 30 beq+ cr7,ffc2c8bc <rmdir+0x170>
if ( free_parentloc )
ffc2c890: 2f 9f 00 00 cmpwi cr7,r31,0
ffc2c894: 41 be 01 80 beq+ cr7,ffc2ca14 <rmdir+0x2c8>
rtems_filesystem_freenode( &parentloc );
ffc2c898: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED
ffc2c89c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc2c8a0: 41 be 01 74 beq+ cr7,ffc2ca14 <rmdir+0x2c8> <== NOT EXECUTED
ffc2c8a4: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2c8a8: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED
ffc2c8ac: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
ffc2c8b0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2c8b4: 41 be 01 60 beq+ cr7,ffc2ca14 <rmdir+0x2c8> <== NOT EXECUTED
ffc2c8b8: 48 00 01 50 b ffc2ca08 <rmdir+0x2bc> <== NOT EXECUTED
/*
* Verify you can remove this node as a directory.
*/
if ( !loc.ops->node_type_h ){
ffc2c8bc: 81 21 00 28 lwz r9,40(r1)
ffc2c8c0: 80 09 00 10 lwz r0,16(r9)
ffc2c8c4: 2f 80 00 00 cmpwi cr7,r0,0
ffc2c8c8: 41 9e 00 90 beq- cr7,ffc2c958 <rmdir+0x20c>
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 ){
ffc2c8cc: 7f c3 f3 78 mr r3,r30
ffc2c8d0: 7c 09 03 a6 mtctr r0
ffc2c8d4: 4e 80 04 21 bctrl
ffc2c8d8: 2f 83 00 01 cmpwi cr7,r3,1
ffc2c8dc: 41 be 00 60 beq+ cr7,ffc2c93c <rmdir+0x1f0>
rtems_filesystem_freenode( &loc );
ffc2c8e0: 81 21 00 28 lwz r9,40(r1)
ffc2c8e4: 2f 89 00 00 cmpwi cr7,r9,0
ffc2c8e8: 41 9e 00 1c beq- cr7,ffc2c904 <rmdir+0x1b8>
ffc2c8ec: 80 09 00 1c lwz r0,28(r9)
ffc2c8f0: 2f 80 00 00 cmpwi cr7,r0,0
ffc2c8f4: 41 9e 00 10 beq- cr7,ffc2c904 <rmdir+0x1b8>
ffc2c8f8: 7f c3 f3 78 mr r3,r30
ffc2c8fc: 7c 09 03 a6 mtctr r0
ffc2c900: 4e 80 04 21 bctrl
if ( free_parentloc )
ffc2c904: 2f 9f 00 00 cmpwi cr7,r31,0
ffc2c908: 41 9e 00 28 beq- cr7,ffc2c930 <rmdir+0x1e4>
rtems_filesystem_freenode( &parentloc );
ffc2c90c: 81 21 00 14 lwz r9,20(r1)
ffc2c910: 2f 89 00 00 cmpwi cr7,r9,0
ffc2c914: 41 9e 00 1c beq- cr7,ffc2c930 <rmdir+0x1e4>
ffc2c918: 80 09 00 1c lwz r0,28(r9)
ffc2c91c: 2f 80 00 00 cmpwi cr7,r0,0
ffc2c920: 41 9e 00 10 beq- cr7,ffc2c930 <rmdir+0x1e4>
ffc2c924: 38 61 00 08 addi r3,r1,8
ffc2c928: 7c 09 03 a6 mtctr r0
ffc2c92c: 4e 80 04 21 bctrl
rtems_set_errno_and_return_minus_one( ENOTDIR );
ffc2c930: 48 01 ad 41 bl ffc47670 <__errno>
ffc2c934: 38 00 00 14 li r0,20
ffc2c938: 48 00 00 6c b ffc2c9a4 <rmdir+0x258>
/*
* Use the filesystems rmnod to remove the node.
*/
if ( !loc.handlers->rmnod_h ){
ffc2c93c: 81 21 00 24 lwz r9,36(r1)
ffc2c940: 80 09 00 34 lwz r0,52(r9)
ffc2c944: 2f 80 00 00 cmpwi cr7,r0,0
ffc2c948: 40 be 00 64 bne+ cr7,ffc2c9ac <rmdir+0x260>
rtems_filesystem_freenode( &loc );
ffc2c94c: 81 21 00 28 lwz r9,40(r1) <== NOT EXECUTED
ffc2c950: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc2c954: 41 9e 00 1c beq- cr7,ffc2c970 <rmdir+0x224> <== NOT EXECUTED
ffc2c958: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2c95c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2c960: 41 9e 00 10 beq- cr7,ffc2c970 <rmdir+0x224> <== NOT EXECUTED
ffc2c964: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc2c968: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2c96c: 4e 80 04 21 bctrl <== NOT EXECUTED
if ( free_parentloc )
ffc2c970: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED
ffc2c974: 41 9e 00 28 beq- cr7,ffc2c99c <rmdir+0x250> <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
ffc2c978: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED
ffc2c97c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc2c980: 41 9e 00 1c beq- cr7,ffc2c99c <rmdir+0x250> <== NOT EXECUTED
ffc2c984: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2c988: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2c98c: 41 9e 00 10 beq- cr7,ffc2c99c <rmdir+0x250> <== NOT EXECUTED
ffc2c990: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED
ffc2c994: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2c998: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc2c99c: 48 01 ac d5 bl ffc47670 <__errno> <== NOT EXECUTED
ffc2c9a0: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc2c9a4: 90 03 00 00 stw r0,0(r3)
ffc2c9a8: 48 00 00 6c b ffc2ca14 <rmdir+0x2c8>
}
result = (*loc.handlers->rmnod_h)( &parentloc, &loc );
ffc2c9ac: 38 61 00 08 addi r3,r1,8
ffc2c9b0: 7c 09 03 a6 mtctr r0
ffc2c9b4: 7f c4 f3 78 mr r4,r30
ffc2c9b8: 4e 80 04 21 bctrl
rtems_filesystem_freenode( &loc );
ffc2c9bc: 81 21 00 28 lwz r9,40(r1)
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.handlers->rmnod_h)( &parentloc, &loc );
ffc2c9c0: 7c 7d 1b 78 mr r29,r3
rtems_filesystem_freenode( &loc );
ffc2c9c4: 2f 89 00 00 cmpwi cr7,r9,0
ffc2c9c8: 41 9e 00 1c beq- cr7,ffc2c9e4 <rmdir+0x298>
ffc2c9cc: 80 09 00 1c lwz r0,28(r9)
ffc2c9d0: 2f 80 00 00 cmpwi cr7,r0,0
ffc2c9d4: 41 9e 00 10 beq- cr7,ffc2c9e4 <rmdir+0x298>
ffc2c9d8: 7f c3 f3 78 mr r3,r30
ffc2c9dc: 7c 09 03 a6 mtctr r0
ffc2c9e0: 4e 80 04 21 bctrl
if ( free_parentloc )
ffc2c9e4: 2f 9f 00 00 cmpwi cr7,r31,0
ffc2c9e8: 41 9e 00 30 beq- cr7,ffc2ca18 <rmdir+0x2cc>
rtems_filesystem_freenode( &parentloc );
ffc2c9ec: 81 21 00 14 lwz r9,20(r1)
ffc2c9f0: 2f 89 00 00 cmpwi cr7,r9,0
ffc2c9f4: 41 9e 00 24 beq- cr7,ffc2ca18 <rmdir+0x2cc>
ffc2c9f8: 80 09 00 1c lwz r0,28(r9)
ffc2c9fc: 2f 80 00 00 cmpwi cr7,r0,0
ffc2ca00: 41 9e 00 18 beq- cr7,ffc2ca18 <rmdir+0x2cc>
ffc2ca04: 38 61 00 08 addi r3,r1,8
ffc2ca08: 7c 09 03 a6 mtctr r0
ffc2ca0c: 4e 80 04 21 bctrl
ffc2ca10: 48 00 00 08 b ffc2ca18 <rmdir+0x2cc>
ffc2ca14: 3b a0 ff ff li r29,-1
return result;
}
ffc2ca18: 80 01 00 4c lwz r0,76(r1)
ffc2ca1c: 7f a3 eb 78 mr r3,r29
ffc2ca20: 83 c1 00 40 lwz r30,64(r1)
ffc2ca24: 7c 08 03 a6 mtlr r0
ffc2ca28: 83 a1 00 3c lwz r29,60(r1)
ffc2ca2c: 83 e1 00 44 lwz r31,68(r1)
ffc2ca30: 38 21 00 48 addi r1,r1,72
ffc2ca34: 4e 80 00 20 blr
ffc18fb0 <rtems_assoc_name_bad>:
uint32_t bad_value
#else
uint32_t bad_value __attribute((unused))
#endif
)
{
ffc18fb0: 3c 60 00 00 lis r3,0 <== 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;
}
ffc18fb4: 38 63 22 50 addi r3,r3,8784 <== NOT EXECUTED
ffc18fb8: 4e 80 00 20 blr <== NOT EXECUTED
ffc14ee4 <rtems_assoc_name_by_local>:
const char *rtems_assoc_name_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
ffc14ee4: 94 21 ff f0 stwu r1,-16(r1)
ffc14ee8: 7c 08 02 a6 mflr r0
ffc14eec: 93 e1 00 0c stw r31,12(r1)
ffc14ef0: 7c 9f 23 78 mr r31,r4
ffc14ef4: 90 01 00 14 stw r0,20(r1)
const rtems_assoc_t *nap;
nap = rtems_assoc_ptr_by_local(ap, local_value);
ffc14ef8: 48 00 00 31 bl ffc14f28 <rtems_assoc_ptr_by_local>
if (nap)
ffc14efc: 2c 03 00 00 cmpwi r3,0
ffc14f00: 41 82 00 0c beq- ffc14f0c <rtems_assoc_name_by_local+0x28>
return nap->name;
ffc14f04: 80 63 00 00 lwz r3,0(r3)
ffc14f08: 48 00 00 0c b ffc14f14 <rtems_assoc_name_by_local+0x30>
return rtems_assoc_name_bad(local_value);
ffc14f0c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc14f10: 48 00 40 a1 bl ffc18fb0 <rtems_assoc_name_bad> <== NOT EXECUTED
}
ffc14f14: 80 01 00 14 lwz r0,20(r1)
ffc14f18: 83 e1 00 0c lwz r31,12(r1)
ffc14f1c: 38 21 00 10 addi r1,r1,16
ffc14f20: 7c 08 03 a6 mtlr r0
ffc14f24: 4e 80 00 20 blr
ffc11224 <rtems_assoc_remote_by_local>:
uint32_t rtems_assoc_remote_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
ffc11224: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED
ffc11228: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc1122c: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
const rtems_assoc_t *nap;
nap = rtems_assoc_ptr_by_local(ap, local_value);
ffc11230: 48 00 09 11 bl ffc11b40 <rtems_assoc_ptr_by_local> <== NOT EXECUTED
if (nap)
ffc11234: 7c 69 1b 79 mr. r9,r3 <== NOT EXECUTED
ffc11238: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc1123c: 41 82 00 08 beq- ffc11244 <rtems_assoc_remote_by_local+0x20><== NOT EXECUTED
return nap->remote_value;
ffc11240: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED
return 0;
}
ffc11244: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc11248: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc1124c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc11250: 4e 80 00 20 blr <== NOT EXECUTED
ffc03f3c <rtems_bsp_cmdline_get_param>:
size_t length
)
{
const char *p;
if ( !name )
ffc03f3c: 2f 83 00 00 cmpwi cr7,r3,0
const char *rtems_bsp_cmdline_get_param(
const char *name,
char *value,
size_t length
)
{
ffc03f40: 94 21 ff f0 stwu r1,-16(r1)
ffc03f44: 7c 08 02 a6 mflr r0
ffc03f48: 93 c1 00 08 stw r30,8(r1)
ffc03f4c: 7c be 2b 78 mr r30,r5
ffc03f50: 93 e1 00 0c stw r31,12(r1)
ffc03f54: 7c 9f 23 78 mr r31,r4
ffc03f58: 90 01 00 14 stw r0,20(r1)
const char *p;
if ( !name )
ffc03f5c: 41 be 00 7c beq+ cr7,ffc03fd8 <rtems_bsp_cmdline_get_param+0x9c>
return NULL;
if ( !value )
ffc03f60: 2f 84 00 00 cmpwi cr7,r4,0
ffc03f64: 41 be 00 78 beq+ cr7,ffc03fdc <rtems_bsp_cmdline_get_param+0xa0>
return NULL;
if ( !length )
ffc03f68: 2f 85 00 00 cmpwi cr7,r5,0
ffc03f6c: 41 be 00 6c beq+ cr7,ffc03fd8 <rtems_bsp_cmdline_get_param+0x9c>
return NULL;
value[0] = '\0';
ffc03f70: 38 00 00 00 li r0,0
ffc03f74: 98 04 00 00 stb r0,0(r4)
p = rtems_bsp_cmdline_get_param_raw( name );
ffc03f78: 48 00 00 81 bl ffc03ff8 <rtems_bsp_cmdline_get_param_raw>
if ( !p )
ffc03f7c: 2c 03 00 00 cmpwi r3,0
ffc03f80: 41 82 00 58 beq- ffc03fd8 <rtems_bsp_cmdline_get_param+0x9c>
if ( *p == '\"' ) {
quotes++;
} else if ( ((quotes % 2) == 0) && *p == ' ' )
break;
value[i++] = *p++;
value[i] = '\0';
ffc03f84: 7f c9 03 a6 mtctr r30
value[0] = '\0';
p = rtems_bsp_cmdline_get_param_raw( name );
if ( !p )
ffc03f88: 39 60 00 00 li r11,0
ffc03f8c: 39 20 00 00 li r9,0
if ( *p == '\"' ) {
quotes++;
} else if ( ((quotes % 2) == 0) && *p == ' ' )
break;
value[i++] = *p++;
value[i] = '\0';
ffc03f90: 39 40 00 00 li r10,0
ffc03f94: 48 00 00 28 b ffc03fbc <rtems_bsp_cmdline_get_param+0x80>
int quotes;
const char *p = start;
quotes=0;
for (i=0 ; *p && i<length-1; ) {
if ( *p == '\"' ) {
ffc03f98: 40 be 00 0c bne+ cr7,ffc03fa4 <rtems_bsp_cmdline_get_param+0x68>
quotes++;
ffc03f9c: 39 6b 00 01 addi r11,r11,1
ffc03fa0: 48 00 00 10 b ffc03fb0 <rtems_bsp_cmdline_get_param+0x74>
} else if ( ((quotes % 2) == 0) && *p == ' ' )
ffc03fa4: 2f 80 00 20 cmpwi cr7,r0,32
ffc03fa8: 40 82 00 08 bne- ffc03fb0 <rtems_bsp_cmdline_get_param+0x74>
ffc03fac: 41 9e 00 30 beq- cr7,ffc03fdc <rtems_bsp_cmdline_get_param+0xa0>
break;
value[i++] = *p++;
ffc03fb0: 7c 1f 49 ae stbx r0,r31,r9
ffc03fb4: 39 29 00 01 addi r9,r9,1
value[i] = '\0';
ffc03fb8: 7d 5f 49 ae stbx r10,r31,r9
int i;
int quotes;
const char *p = start;
quotes=0;
for (i=0 ; *p && i<length-1; ) {
ffc03fbc: 7c 03 48 ae lbzx r0,r3,r9
if ( *p == '\"' ) {
quotes++;
} else if ( ((quotes % 2) == 0) && *p == ' ' )
ffc03fc0: 71 68 00 01 andi. r8,r11,1
int i;
int quotes;
const char *p = start;
quotes=0;
for (i=0 ; *p && i<length-1; ) {
ffc03fc4: 2f 00 00 00 cmpwi cr6,r0,0
if ( *p == '\"' ) {
ffc03fc8: 2f 80 00 22 cmpwi cr7,r0,34
int i;
int quotes;
const char *p = start;
quotes=0;
for (i=0 ; *p && i<length-1; ) {
ffc03fcc: 41 9a 00 10 beq- cr6,ffc03fdc <rtems_bsp_cmdline_get_param+0xa0>
ffc03fd0: 42 00 ff c8 bdnz+ ffc03f98 <rtems_bsp_cmdline_get_param+0x5c>
ffc03fd4: 48 00 00 08 b ffc03fdc <rtems_bsp_cmdline_get_param+0xa0><== NOT EXECUTED
ffc03fd8: 3b e0 00 00 li r31,0
return NULL;
copy_string( p, value, length );
return value;
}
ffc03fdc: 80 01 00 14 lwz r0,20(r1)
ffc03fe0: 7f e3 fb 78 mr r3,r31
ffc03fe4: 83 c1 00 08 lwz r30,8(r1)
ffc03fe8: 7c 08 03 a6 mtlr r0
ffc03fec: 83 e1 00 0c lwz r31,12(r1)
ffc03ff0: 38 21 00 10 addi r1,r1,16
ffc03ff4: 4e 80 00 20 blr
ffc111dc <rtems_deviceio_errno>:
{ 0, 0, 0 },
};
int
rtems_deviceio_errno(rtems_status_code code)
{
ffc111dc: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED
ffc111e0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc111e4: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED
int rc;
if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code)))
ffc111e8: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
{ 0, 0, 0 },
};
int
rtems_deviceio_errno(rtems_status_code code)
{
ffc111ec: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED
int rc;
if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code)))
ffc111f0: 38 63 e4 2c addi r3,r3,-7124 <== NOT EXECUTED
{ 0, 0, 0 },
};
int
rtems_deviceio_errno(rtems_status_code code)
{
ffc111f4: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED
int rc;
if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code)))
ffc111f8: 48 00 00 2d bl ffc11224 <rtems_assoc_remote_by_local> <== NOT EXECUTED
ffc111fc: 7c 7f 1b 79 mr. r31,r3 <== NOT EXECUTED
ffc11200: 41 a2 00 0c beq+ ffc1120c <rtems_deviceio_errno+0x30> <== NOT EXECUTED
{
errno = rc;
ffc11204: 48 00 09 c1 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc11208: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED
return -1;
}
return -1;
}
ffc1120c: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc11210: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc11214: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc11218: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc1121c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc11220: 4e 80 00 20 blr <== NOT EXECUTED
ffc0a428 <rtems_error>:
int rtems_error(
rtems_error_code_t error_flag,
const char *printf_format,
...
)
{
ffc0a428: 94 21 ff 90 stwu r1,-112(r1) <== NOT EXECUTED
ffc0a42c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc0a430: 90 a1 00 18 stw r5,24(r1) <== NOT EXECUTED
ffc0a434: 90 01 00 74 stw r0,116(r1) <== NOT EXECUTED
ffc0a438: 90 c1 00 1c stw r6,28(r1) <== NOT EXECUTED
ffc0a43c: 90 e1 00 20 stw r7,32(r1) <== NOT EXECUTED
ffc0a440: 91 01 00 24 stw r8,36(r1) <== NOT EXECUTED
ffc0a444: 91 21 00 28 stw r9,40(r1) <== NOT EXECUTED
ffc0a448: 91 41 00 2c stw r10,44(r1) <== NOT EXECUTED
ffc0a44c: 40 86 00 24 bne- cr1,ffc0a470 <rtems_error+0x48> <== NOT EXECUTED
ffc0a450: d8 21 00 30 stfd f1,48(r1) <== NOT EXECUTED
ffc0a454: d8 41 00 38 stfd f2,56(r1) <== NOT EXECUTED
ffc0a458: d8 61 00 40 stfd f3,64(r1) <== NOT EXECUTED
ffc0a45c: d8 81 00 48 stfd f4,72(r1) <== NOT EXECUTED
ffc0a460: d8 a1 00 50 stfd f5,80(r1) <== NOT EXECUTED
ffc0a464: d8 c1 00 58 stfd f6,88(r1) <== NOT EXECUTED
ffc0a468: d8 e1 00 60 stfd f7,96(r1) <== NOT EXECUTED
ffc0a46c: d9 01 00 68 stfd f8,104(r1) <== NOT EXECUTED
va_list arglist;
int chars_written;
va_start(arglist, printf_format);
ffc0a470: 38 00 00 02 li r0,2 <== NOT EXECUTED
ffc0a474: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED
ffc0a478: 38 00 00 00 li r0,0 <== NOT EXECUTED
chars_written = rtems_verror(error_flag, printf_format, arglist);
ffc0a47c: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED
)
{
va_list arglist;
int chars_written;
va_start(arglist, printf_format);
ffc0a480: 98 01 00 09 stb r0,9(r1) <== NOT EXECUTED
ffc0a484: 38 01 00 78 addi r0,r1,120 <== NOT EXECUTED
ffc0a488: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
ffc0a48c: 38 01 00 10 addi r0,r1,16 <== NOT EXECUTED
ffc0a490: 90 01 00 10 stw r0,16(r1) <== NOT EXECUTED
chars_written = rtems_verror(error_flag, printf_format, arglist);
ffc0a494: 4b ff fd 0d bl ffc0a1a0 <rtems_verror> <== NOT EXECUTED
va_end(arglist);
return chars_written;
}
ffc0a498: 80 01 00 74 lwz r0,116(r1) <== NOT EXECUTED
ffc0a49c: 38 21 00 70 addi r1,r1,112 <== NOT EXECUTED
ffc0a4a0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0a4a4: 4e 80 00 20 blr <== NOT EXECUTED
ffc04160 <rtems_filesystem_evaluate_path>:
/*
* Verify Input parameters.
*/
if ( !pathname )
ffc04160: 2c 03 00 00 cmpwi r3,0
int pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc,
int follow_link
)
{
ffc04164: 94 21 ff f8 stwu r1,-8(r1)
ffc04168: 7c 08 02 a6 mflr r0
ffc0416c: 90 01 00 0c stw r0,12(r1)
/*
* Verify Input parameters.
*/
if ( !pathname )
ffc04170: 40 a2 00 10 bne+ ffc04180 <rtems_filesystem_evaluate_path+0x20>
rtems_set_errno_and_return_minus_one( EFAULT );
ffc04174: 48 00 da 51 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc04178: 38 00 00 0e li r0,14 <== NOT EXECUTED
ffc0417c: 48 00 00 14 b ffc04190 <rtems_filesystem_evaluate_path+0x30><== NOT EXECUTED
if ( !pathloc )
ffc04180: 2f 86 00 00 cmpwi cr7,r6,0
ffc04184: 40 be 00 24 bne+ cr7,ffc041a8 <rtems_filesystem_evaluate_path+0x48>
rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */
ffc04188: 48 00 da 3d bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc0418c: 38 00 00 05 li r0,5 <== NOT EXECUTED
ffc04190: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
return rtems_filesystem_evaluate_relative_path( &pathname[i],
pathnamelen - i,
flags,
pathloc,
follow_link );
}
ffc04194: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc04198: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc0419c: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc041a0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc041a4: 4e 80 00 20 blr <== NOT EXECUTED
/*
* Evaluate the path using the optable evalpath.
*/
rtems_filesystem_get_start_loc( pathname, &i, pathloc );
ffc041a8: 88 03 00 00 lbz r0,0(r3)
ffc041ac: 2f 80 00 2f cmpwi cr7,r0,47
ffc041b0: 41 9e 00 14 beq- cr7,ffc041c4 <rtems_filesystem_evaluate_path+0x64>
ffc041b4: 2f 80 00 5c cmpwi cr7,r0,92
ffc041b8: 41 9e 00 0c beq- cr7,ffc041c4 <rtems_filesystem_evaluate_path+0x64>
ffc041bc: 2f 80 00 00 cmpwi cr7,r0,0
ffc041c0: 40 9e 00 38 bne- cr7,ffc041f8 <rtems_filesystem_evaluate_path+0x98>
ffc041c4: 3d 20 00 00 lis r9,0
ffc041c8: 81 29 26 dc lwz r9,9948(r9)
ffc041cc: 38 00 00 01 li r0,1
ffc041d0: 81 89 00 18 lwz r12,24(r9)
ffc041d4: 81 09 00 1c lwz r8,28(r9)
ffc041d8: 81 49 00 20 lwz r10,32(r9)
ffc041dc: 81 69 00 24 lwz r11,36(r9)
ffc041e0: 91 86 00 00 stw r12,0(r6)
ffc041e4: 91 06 00 04 stw r8,4(r6)
ffc041e8: 91 46 00 08 stw r10,8(r6)
ffc041ec: 91 66 00 0c stw r11,12(r6)
ffc041f0: 81 29 00 28 lwz r9,40(r9)
ffc041f4: 48 00 00 34 b ffc04228 <rtems_filesystem_evaluate_path+0xc8>
ffc041f8: 3d 20 00 00 lis r9,0
ffc041fc: 81 29 26 dc lwz r9,9948(r9)
ffc04200: 38 00 00 00 li r0,0
ffc04204: 81 89 00 04 lwz r12,4(r9)
ffc04208: 81 09 00 08 lwz r8,8(r9)
ffc0420c: 81 49 00 0c lwz r10,12(r9)
ffc04210: 81 69 00 10 lwz r11,16(r9)
ffc04214: 91 86 00 00 stw r12,0(r6)
ffc04218: 91 06 00 04 stw r8,4(r6)
ffc0421c: 91 46 00 08 stw r10,8(r6)
ffc04220: 91 66 00 0c stw r11,12(r6)
ffc04224: 81 29 00 14 lwz r9,20(r9)
/*
* We evaluation the path relative to the start location we get got.
*/
return rtems_filesystem_evaluate_relative_path( &pathname[i],
ffc04228: 7c 80 20 50 subf r4,r0,r4
/*
* Evaluate the path using the optable evalpath.
*/
rtems_filesystem_get_start_loc( pathname, &i, pathloc );
ffc0422c: 91 26 00 10 stw r9,16(r6)
/*
* We evaluation the path relative to the start location we get got.
*/
return rtems_filesystem_evaluate_relative_path( &pathname[i],
ffc04230: 7c 63 02 14 add r3,r3,r0
pathnamelen - i,
flags,
pathloc,
follow_link );
}
ffc04234: 80 01 00 0c lwz r0,12(r1)
ffc04238: 38 21 00 08 addi r1,r1,8
ffc0423c: 7c 08 03 a6 mtlr r0
rtems_filesystem_get_start_loc( pathname, &i, pathloc );
/*
* We evaluation the path relative to the start location we get got.
*/
return rtems_filesystem_evaluate_relative_path( &pathname[i],
ffc04240: 4b ff fe 0c b ffc0404c <rtems_filesystem_evaluate_relative_path>
ffc0404c <rtems_filesystem_evaluate_relative_path>:
/*
* Verify Input parameters.
*/
if ( !pathname )
ffc0404c: 2f 83 00 00 cmpwi cr7,r3,0
int pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc,
int follow_link
)
{
ffc04050: 94 21 ff e8 stwu r1,-24(r1)
ffc04054: 7c 08 02 a6 mflr r0
ffc04058: 93 a1 00 0c stw r29,12(r1)
ffc0405c: 7c fd 3b 78 mr r29,r7
ffc04060: 93 c1 00 10 stw r30,16(r1)
ffc04064: 7c be 2b 78 mr r30,r5
ffc04068: 93 e1 00 14 stw r31,20(r1)
ffc0406c: 7c df 33 78 mr r31,r6
ffc04070: 90 01 00 1c stw r0,28(r1)
ffc04074: 93 81 00 08 stw r28,8(r1)
/*
* Verify Input parameters.
*/
if ( !pathname )
ffc04078: 40 be 00 10 bne+ cr7,ffc04088 <rtems_filesystem_evaluate_relative_path+0x3c>
rtems_set_errno_and_return_minus_one( EFAULT );
ffc0407c: 48 00 db 49 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc04080: 38 00 00 0e li r0,14 <== NOT EXECUTED
ffc04084: 48 00 00 14 b ffc04098 <rtems_filesystem_evaluate_relative_path+0x4c><== NOT EXECUTED
if ( !pathloc )
ffc04088: 2f 86 00 00 cmpwi cr7,r6,0
ffc0408c: 40 be 00 18 bne+ cr7,ffc040a4 <rtems_filesystem_evaluate_relative_path+0x58>
rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */
ffc04090: 48 00 db 35 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc04094: 38 00 00 05 li r0,5 <== NOT EXECUTED
ffc04098: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc0409c: 3b 80 ff ff li r28,-1 <== NOT EXECUTED
ffc040a0: 48 00 00 9c b ffc0413c <rtems_filesystem_evaluate_relative_path+0xf0><== NOT EXECUTED
if ( !pathloc->ops->evalpath_h )
ffc040a4: 81 26 00 0c lwz r9,12(r6)
ffc040a8: 80 09 00 00 lwz r0,0(r9)
ffc040ac: 2f 80 00 00 cmpwi cr7,r0,0
ffc040b0: 41 9e 00 6c beq- cr7,ffc0411c <rtems_filesystem_evaluate_relative_path+0xd0>
rtems_set_errno_and_return_minus_one( ENOTSUP );
result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc );
ffc040b4: 7c 09 03 a6 mtctr r0
ffc040b8: 4e 80 04 21 bctrl
/*
* Get the Node type and determine if you need to follow the link or
* not.
*/
if ( (result == 0) && follow_link ) {
ffc040bc: 7c 7c 1b 79 mr. r28,r3
ffc040c0: 40 82 00 7c bne- ffc0413c <rtems_filesystem_evaluate_relative_path+0xf0>
ffc040c4: 2f 9d 00 00 cmpwi cr7,r29,0
ffc040c8: 41 9e 00 74 beq- cr7,ffc0413c <rtems_filesystem_evaluate_relative_path+0xf0>
if ( !pathloc->ops->node_type_h ){
ffc040cc: 81 3f 00 0c lwz r9,12(r31)
ffc040d0: 80 09 00 10 lwz r0,16(r9)
ffc040d4: 2f 80 00 00 cmpwi cr7,r0,0
ffc040d8: 41 9e 00 2c beq- cr7,ffc04104 <rtems_filesystem_evaluate_relative_path+0xb8>
rtems_filesystem_freenode( pathloc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
type = (*pathloc->ops->node_type_h)( pathloc );
ffc040dc: 7f e3 fb 78 mr r3,r31
ffc040e0: 7c 09 03 a6 mtctr r0
ffc040e4: 4e 80 04 21 bctrl
if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) ||
ffc040e8: 38 63 ff fd addi r3,r3,-3
ffc040ec: 2b 83 00 01 cmplwi cr7,r3,1
ffc040f0: 41 bd 00 4c bgt+ cr7,ffc0413c <rtems_filesystem_evaluate_relative_path+0xf0>
( type == RTEMS_FILESYSTEM_SYM_LINK ) ) {
if ( !pathloc->ops->eval_link_h ){
ffc040f4: 81 3f 00 0c lwz r9,12(r31)
ffc040f8: 80 09 00 34 lwz r0,52(r9)
ffc040fc: 2f 80 00 00 cmpwi cr7,r0,0
ffc04100: 40 be 00 28 bne+ cr7,ffc04128 <rtems_filesystem_evaluate_relative_path+0xdc>
rtems_filesystem_freenode( pathloc );
ffc04104: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc04108: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0410c: 41 9e 00 10 beq- cr7,ffc0411c <rtems_filesystem_evaluate_relative_path+0xd0><== NOT EXECUTED
ffc04110: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc04114: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc04118: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc0411c: 48 00 da a9 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc04120: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc04124: 4b ff ff 74 b ffc04098 <rtems_filesystem_evaluate_relative_path+0x4c><== NOT EXECUTED
* 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 );
ffc04128: 7f e3 fb 78 mr r3,r31
ffc0412c: 7c 09 03 a6 mtctr r0
ffc04130: 7f c4 f3 78 mr r4,r30
ffc04134: 4e 80 04 21 bctrl
ffc04138: 7c 7c 1b 78 mr r28,r3
}
}
return result;
}
ffc0413c: 80 01 00 1c lwz r0,28(r1)
ffc04140: 7f 83 e3 78 mr r3,r28
ffc04144: 83 a1 00 0c lwz r29,12(r1)
ffc04148: 7c 08 03 a6 mtlr r0
ffc0414c: 83 81 00 08 lwz r28,8(r1)
ffc04150: 83 c1 00 10 lwz r30,16(r1)
ffc04154: 83 e1 00 14 lwz r31,20(r1)
ffc04158: 38 21 00 18 addi r1,r1,24
ffc0415c: 4e 80 00 20 blr
ffc03e28 <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 )
{
ffc03e28: 94 21 ff c8 stwu r1,-56(r1)
ffc03e2c: 7c 08 02 a6 mflr r0
ffc03e30: 93 e1 00 34 stw r31,52(r1)
/*
* Set the default umask to "022".
*/
rtems_filesystem_umask = 022;
ffc03e34: 3f e0 00 00 lis r31,0
ffc03e38: 81 3f 26 dc lwz r9,9948(r31)
* configuration is a single instantiation of the IMFS or miniIMFS with
* a single "/dev" directory in it.
*/
void rtems_filesystem_initialize( void )
{
ffc03e3c: 90 01 00 3c stw r0,60(r1)
/*
* Set the default umask to "022".
*/
rtems_filesystem_umask = 022;
ffc03e40: 38 00 00 12 li r0,18
ffc03e44: 90 09 00 2c stw r0,44(r9)
* configuration is a single instantiation of the IMFS or miniIMFS with
* a single "/dev" directory in it.
*/
void rtems_filesystem_initialize( void )
{
ffc03e48: 93 a1 00 2c stw r29,44(r1)
ffc03e4c: 93 c1 00 30 stw r30,48(r1)
*/
rtems_filesystem_umask = 022;
init_fs_mount_table();
ffc03e50: 48 00 0a 51 bl ffc048a0 <init_fs_mount_table>
/*
* mount the first filesystem.
*/
if ( rtems_filesystem_mount_table_size == 0 )
ffc03e54: 3d 20 00 00 lis r9,0
ffc03e58: 80 09 26 98 lwz r0,9880(r9)
rtems_fatal_error_occurred( 0xABCD0001 );
ffc03e5c: 3c 60 ab cd lis r3,-21555
ffc03e60: 60 63 00 01 ori r3,r3,1
/*
* mount the first filesystem.
*/
if ( rtems_filesystem_mount_table_size == 0 )
ffc03e64: 2f 80 00 00 cmpwi cr7,r0,0
ffc03e68: 41 9e 00 34 beq- cr7,ffc03e9c <rtems_filesystem_initialize+0x74>
rtems_fatal_error_occurred( 0xABCD0001 );
mt = &rtems_filesystem_mount_table[0];
ffc03e6c: 3d 20 00 00 lis r9,0
ffc03e70: 81 29 26 94 lwz r9,9876(r9)
status = mount(
ffc03e74: 38 61 00 08 addi r3,r1,8
ffc03e78: 80 e9 00 0c lwz r7,12(r9)
ffc03e7c: 80 89 00 00 lwz r4,0(r9)
ffc03e80: 80 a9 00 04 lwz r5,4(r9)
ffc03e84: 80 c9 00 08 lwz r6,8(r9)
ffc03e88: 48 00 0a 3d bl ffc048c4 <mount>
&entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point );
if ( status == -1 )
ffc03e8c: 2f 83 ff ff cmpwi cr7,r3,-1
ffc03e90: 40 be 00 10 bne+ cr7,ffc03ea0 <rtems_filesystem_initialize+0x78>
rtems_fatal_error_occurred( 0xABCD0002 );
ffc03e94: 3c 60 ab cd lis r3,-21555 <== NOT EXECUTED
ffc03e98: 60 63 00 02 ori r3,r3,2 <== NOT EXECUTED
ffc03e9c: 48 00 47 3d bl ffc085d8 <rtems_fatal_error_occurred> <== NOT EXECUTED
* set_private_env() - but then: that's
* gonna hit performance.
*
* Till Straumann, 10/25/2002
*/
rtems_filesystem_root = entry->mt_fs_root;
ffc03ea0: 81 61 00 08 lwz r11,8(r1)
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc03ea4: 3f c0 ff c2 lis r30,-62
&entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point );
if ( status == -1 )
rtems_fatal_error_occurred( 0xABCD0002 );
rtems_filesystem_link_counts = 0;
ffc03ea8: 81 3f 26 dc lwz r9,9948(r31)
*
* Till Straumann, 10/25/2002
*/
rtems_filesystem_root = entry->mt_fs_root;
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc03eac: 3b de de 42 addi r30,r30,-8638
* set_private_env() - but then: that's
* gonna hit performance.
*
* Till Straumann, 10/25/2002
*/
rtems_filesystem_root = entry->mt_fs_root;
ffc03eb0: 80 eb 00 1c lwz r7,28(r11)
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc03eb4: 3b a1 00 0c addi r29,r1,12
* set_private_env() - but then: that's
* gonna hit performance.
*
* Till Straumann, 10/25/2002
*/
rtems_filesystem_root = entry->mt_fs_root;
ffc03eb8: 81 0b 00 20 lwz r8,32(r11)
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc03ebc: 38 80 00 01 li r4,1
* set_private_env() - but then: that's
* gonna hit performance.
*
* Till Straumann, 10/25/2002
*/
rtems_filesystem_root = entry->mt_fs_root;
ffc03ec0: 81 4b 00 24 lwz r10,36(r11)
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc03ec4: 38 a0 00 00 li r5,0
* set_private_env() - but then: that's
* gonna hit performance.
*
* Till Straumann, 10/25/2002
*/
rtems_filesystem_root = entry->mt_fs_root;
ffc03ec8: 80 0b 00 28 lwz r0,40(r11)
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc03ecc: 7f a6 eb 78 mr r6,r29
* set_private_env() - but then: that's
* gonna hit performance.
*
* Till Straumann, 10/25/2002
*/
rtems_filesystem_root = entry->mt_fs_root;
ffc03ed0: 90 e9 00 18 stw r7,24(r9)
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc03ed4: 7f c3 f3 78 mr r3,r30
ffc03ed8: 38 e0 00 00 li r7,0
* set_private_env() - but then: that's
* gonna hit performance.
*
* Till Straumann, 10/25/2002
*/
rtems_filesystem_root = entry->mt_fs_root;
ffc03edc: 91 09 00 1c stw r8,28(r9)
ffc03ee0: 91 49 00 20 stw r10,32(r9)
ffc03ee4: 90 09 00 24 stw r0,36(r9)
ffc03ee8: 80 0b 00 2c lwz r0,44(r11)
&entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point );
if ( status == -1 )
rtems_fatal_error_occurred( 0xABCD0002 );
rtems_filesystem_link_counts = 0;
ffc03eec: 39 60 00 00 li r11,0
ffc03ef0: b1 69 00 30 sth r11,48(r9)
* set_private_env() - but then: that's
* gonna hit performance.
*
* Till Straumann, 10/25/2002
*/
rtems_filesystem_root = entry->mt_fs_root;
ffc03ef4: 90 09 00 28 stw r0,40(r9)
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc03ef8: 48 00 02 69 bl ffc04160 <rtems_filesystem_evaluate_path>
rtems_filesystem_root = loc;
ffc03efc: 81 3f 26 dc lwz r9,9948(r31)
ffc03f00: 81 41 00 10 lwz r10,16(r1)
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc03f04: 7f a6 eb 78 mr r6,r29
* Till Straumann, 10/25/2002
*/
rtems_filesystem_root = entry->mt_fs_root;
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_root = loc;
ffc03f08: 81 61 00 14 lwz r11,20(r1)
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc03f0c: 38 80 00 01 li r4,1
* Till Straumann, 10/25/2002
*/
rtems_filesystem_root = entry->mt_fs_root;
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_root = loc;
ffc03f10: 80 01 00 18 lwz r0,24(r1)
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc03f14: 38 a0 00 00 li r5,0
* Till Straumann, 10/25/2002
*/
rtems_filesystem_root = entry->mt_fs_root;
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_root = loc;
ffc03f18: 81 01 00 0c lwz r8,12(r1)
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc03f1c: 38 e0 00 00 li r7,0
* Till Straumann, 10/25/2002
*/
rtems_filesystem_root = entry->mt_fs_root;
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_root = loc;
ffc03f20: 91 49 00 1c stw r10,28(r9)
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc03f24: 7f c3 f3 78 mr r3,r30
* Till Straumann, 10/25/2002
*/
rtems_filesystem_root = entry->mt_fs_root;
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_root = loc;
ffc03f28: 91 09 00 18 stw r8,24(r9)
ffc03f2c: 91 69 00 20 stw r11,32(r9)
ffc03f30: 90 09 00 24 stw r0,36(r9)
ffc03f34: 80 01 00 1c lwz r0,28(r1)
ffc03f38: 90 09 00 28 stw r0,40(r9)
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc03f3c: 48 00 02 25 bl ffc04160 <rtems_filesystem_evaluate_path>
rtems_filesystem_current = loc;
ffc03f40: 80 01 00 18 lwz r0,24(r1)
ffc03f44: 81 3f 26 dc lwz r9,9948(r31)
*
* 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);
ffc03f48: 3c 60 ff c2 lis r3,-62
/* 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;
ffc03f4c: 81 41 00 10 lwz r10,16(r1)
*
* 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);
ffc03f50: 38 63 de 44 addi r3,r3,-8636
/* 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;
ffc03f54: 81 61 00 14 lwz r11,20(r1)
*
* 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);
ffc03f58: 38 80 01 ff li r4,511
/* 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;
ffc03f5c: 81 01 00 0c lwz r8,12(r1)
ffc03f60: 91 49 00 08 stw r10,8(r9)
ffc03f64: 91 09 00 04 stw r8,4(r9)
ffc03f68: 91 69 00 0c stw r11,12(r9)
ffc03f6c: 90 09 00 10 stw r0,16(r9)
ffc03f70: 80 01 00 1c lwz r0,28(r1)
ffc03f74: 90 09 00 14 stw r0,20(r9)
*
* 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);
ffc03f78: 48 00 07 59 bl ffc046d0 <mkdir>
if ( status != 0 )
ffc03f7c: 2f 83 00 00 cmpwi cr7,r3,0
ffc03f80: 41 be 00 10 beq+ cr7,ffc03f90 <rtems_filesystem_initialize+0x168>
rtems_fatal_error_occurred( 0xABCD0003 );
ffc03f84: 3c 60 ab cd lis r3,-21555 <== NOT EXECUTED
ffc03f88: 60 63 00 03 ori r3,r3,3 <== NOT EXECUTED
ffc03f8c: 4b ff ff 10 b ffc03e9c <rtems_filesystem_initialize+0x74><== NOT EXECUTED
* it will be mounted onto is created. Moreover, if it is going to
* use a device, then it is REALLY unfair to attempt this
* before device drivers are initialized. So we return via a base
* filesystem image and nothing auto-mounted at this point.
*/
}
ffc03f90: 80 01 00 3c lwz r0,60(r1)
ffc03f94: 83 a1 00 2c lwz r29,44(r1)
ffc03f98: 7c 08 03 a6 mtlr r0
ffc03f9c: 83 c1 00 30 lwz r30,48(r1)
ffc03fa0: 83 e1 00 34 lwz r31,52(r1)
ffc03fa4: 38 21 00 38 addi r1,r1,56
ffc03fa8: 4e 80 00 20 blr
ffc2ce40 <rtems_filesystem_nodes_equal>:
);
bool rtems_filesystem_nodes_equal(
const rtems_filesystem_location_info_t *loc1,
const rtems_filesystem_location_info_t *loc2
){
ffc2ce40: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED
ffc2ce44: 80 64 00 00 lwz r3,0(r4) <== NOT EXECUTED
return ( loc1->node_access == loc2->node_access );
}
ffc2ce48: 7c 03 1a 78 xor r3,r0,r3 <== NOT EXECUTED
ffc2ce4c: 7c 63 00 34 cntlzw r3,r3 <== NOT EXECUTED
ffc2ce50: 54 63 d9 7e rlwinm r3,r3,27,5,31 <== NOT EXECUTED
ffc2ce54: 4e 80 00 20 blr <== NOT EXECUTED
ffc03c4c <rtems_io_lookup_name>:
rtems_status_code rtems_io_lookup_name(
const char *name,
rtems_driver_name_t *device_info
)
{
ffc03c4c: 94 21 ff c0 stwu r1,-64(r1) <== NOT EXECUTED
ffc03c50: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc03c54: 93 61 00 2c stw r27,44(r1) <== NOT EXECUTED
ffc03c58: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED
ffc03c5c: 93 81 00 30 stw r28,48(r1) <== NOT EXECUTED
ffc03c60: 93 a1 00 34 stw r29,52(r1) <== NOT EXECUTED
ffc03c64: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED
ffc03c68: 93 c1 00 38 stw r30,56(r1) <== NOT EXECUTED
ffc03c6c: 7c 9e 23 78 mr r30,r4 <== NOT EXECUTED
ffc03c70: 93 e1 00 3c stw r31,60(r1) <== 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 );
ffc03c74: 48 00 f2 4d bl ffc12ec0 <strlen> <== NOT EXECUTED
ffc03c78: 3b e1 00 08 addi r31,r1,8 <== NOT EXECUTED
ffc03c7c: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED
ffc03c80: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc03c84: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc03c88: 7f e6 fb 78 mr r6,r31 <== NOT EXECUTED
ffc03c8c: 38 e0 00 01 li r7,1 <== NOT EXECUTED
ffc03c90: 48 00 04 d1 bl ffc04160 <rtems_filesystem_evaluate_path><== NOT EXECUTED
the_jnode = loc.node_access;
if ( !loc.ops->node_type_h ) {
ffc03c94: 81 21 00 14 lwz r9,20(r1) <== 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 );
ffc03c98: 7c 7b 1b 78 mr r27,r3 <== NOT EXECUTED
the_jnode = loc.node_access;
ffc03c9c: 83 81 00 08 lwz r28,8(r1) <== NOT EXECUTED
if ( !loc.ops->node_type_h ) {
ffc03ca0: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED
ffc03ca4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc03ca8: 40 9e 00 30 bne- cr7,ffc03cd8 <rtems_io_lookup_name+0x8c><== NOT EXECUTED
rtems_filesystem_freenode( &loc );
ffc03cac: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc03cb0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc03cb4: 41 9e 00 10 beq- cr7,ffc03cc4 <rtems_io_lookup_name+0x78><== NOT EXECUTED
ffc03cb8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc03cbc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc03cc0: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc03cc4: 48 00 df 01 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc03cc8: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc03ccc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc03cd0: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc03cd4: 48 00 00 9c b ffc03d70 <rtems_io_lookup_name+0x124> <== NOT EXECUTED
}
node_type = (*loc.ops->node_type_h)( &loc );
ffc03cd8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc03cdc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc03ce0: 4e 80 04 21 bctrl <== NOT EXECUTED
if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) {
ffc03ce4: 2f 9b 00 00 cmpwi cr7,r27,0 <== NOT EXECUTED
ffc03ce8: 40 be 00 0c bne+ cr7,ffc03cf4 <rtems_io_lookup_name+0xa8><== NOT EXECUTED
ffc03cec: 2f 83 00 02 cmpwi cr7,r3,2 <== NOT EXECUTED
ffc03cf0: 41 9e 00 2c beq- cr7,ffc03d1c <rtems_io_lookup_name+0xd0><== NOT EXECUTED
rtems_filesystem_freenode( &loc );
ffc03cf4: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED
ffc03cf8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc03cfc: 41 9e 00 68 beq- cr7,ffc03d64 <rtems_io_lookup_name+0x118><== NOT EXECUTED
ffc03d00: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc03d04: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc03d08: 41 9e 00 5c beq- cr7,ffc03d64 <rtems_io_lookup_name+0x118><== NOT EXECUTED
ffc03d0c: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED
ffc03d10: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc03d14: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc03d18: 48 00 00 4c b ffc03d64 <rtems_io_lookup_name+0x118> <== NOT EXECUTED
return RTEMS_UNSATISFIED;
}
device_info->device_name = (char *) name;
ffc03d1c: 93 be 00 00 stw r29,0(r30) <== NOT EXECUTED
device_info->device_name_length = strlen( name );
ffc03d20: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc03d24: 48 00 f1 9d bl ffc12ec0 <strlen> <== NOT EXECUTED
device_info->major = the_jnode->info.device.major;
device_info->minor = the_jnode->info.device.minor;
rtems_filesystem_freenode( &loc );
ffc03d28: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
return RTEMS_UNSATISFIED;
}
device_info->device_name = (char *) name;
device_info->device_name_length = strlen( name );
ffc03d2c: 90 7e 00 04 stw r3,4(r30) <== NOT EXECUTED
device_info->major = the_jnode->info.device.major;
device_info->minor = the_jnode->info.device.minor;
rtems_filesystem_freenode( &loc );
ffc03d30: 2f 89 00 00 cmpwi cr7,r9,0 <== 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;
ffc03d34: 80 1c 00 50 lwz r0,80(r28) <== NOT EXECUTED
ffc03d38: 90 1e 00 08 stw r0,8(r30) <== NOT EXECUTED
device_info->minor = the_jnode->info.device.minor;
ffc03d3c: 80 1c 00 54 lwz r0,84(r28) <== NOT EXECUTED
ffc03d40: 90 1e 00 0c stw r0,12(r30) <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
ffc03d44: 41 9e 00 28 beq- cr7,ffc03d6c <rtems_io_lookup_name+0x120><== NOT EXECUTED
ffc03d48: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc03d4c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc03d50: 41 9e 00 1c beq- cr7,ffc03d6c <rtems_io_lookup_name+0x120><== NOT EXECUTED
ffc03d54: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc03d58: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc03d5c: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc03d60: 48 00 00 0c b ffc03d6c <rtems_io_lookup_name+0x120> <== NOT EXECUTED
ffc03d64: 38 60 00 0d li r3,13 <== NOT EXECUTED
ffc03d68: 48 00 00 08 b ffc03d70 <rtems_io_lookup_name+0x124> <== NOT EXECUTED
ffc03d6c: 38 60 00 00 li r3,0 <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
ffc03d70: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED
ffc03d74: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED
ffc03d78: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc03d7c: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED
ffc03d80: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED
ffc03d84: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED
ffc03d88: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED
ffc03d8c: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED
ffc03d90: 4e 80 00 20 blr <== NOT EXECUTED
ffc0a384 <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
)
{
ffc0a384: 94 21 ff f0 stwu r1,-16(r1)
ffc0a388: 7c 08 02 a6 mflr r0
rtems_device_major_number major_limit = _IO_Number_of_drivers;
if ( rtems_interrupt_is_in_progress() )
ffc0a38c: 3d 20 00 00 lis r9,0
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
)
{
ffc0a390: 90 01 00 14 stw r0,20(r1)
rtems_device_major_number major_limit = _IO_Number_of_drivers;
if ( rtems_interrupt_is_in_progress() )
ffc0a394: 80 09 27 b8 lwz r0,10168(r9)
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;
ffc0a398: 3d 20 00 00 lis r9,0
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
)
{
ffc0a39c: 93 e1 00 0c stw r31,12(r1)
ffc0a3a0: 7c 7f 1b 78 mr r31,r3
rtems_device_major_number major_limit = _IO_Number_of_drivers;
if ( rtems_interrupt_is_in_progress() )
ffc0a3a4: 2f 80 00 00 cmpwi cr7,r0,0
ffc0a3a8: 38 60 00 12 li r3,18
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;
ffc0a3ac: 80 09 28 08 lwz r0,10248(r9)
if ( rtems_interrupt_is_in_progress() )
ffc0a3b0: 40 9e 01 40 bne- cr7,ffc0a4f0 <rtems_io_register_driver+0x16c>
return RTEMS_CALLED_FROM_ISR;
if ( registered_major == NULL )
ffc0a3b4: 2f 85 00 00 cmpwi cr7,r5,0
ffc0a3b8: 41 9e 01 34 beq- cr7,ffc0a4ec <rtems_io_register_driver+0x168>
return RTEMS_INVALID_ADDRESS;
/* Set it to an invalid value */
*registered_major = major_limit;
if ( driver_table == NULL )
ffc0a3bc: 2f 84 00 00 cmpwi cr7,r4,0
if ( registered_major == NULL )
return RTEMS_INVALID_ADDRESS;
/* Set it to an invalid value */
*registered_major = major_limit;
ffc0a3c0: 90 05 00 00 stw r0,0(r5)
if ( driver_table == NULL )
ffc0a3c4: 41 9e 01 28 beq- cr7,ffc0a4ec <rtems_io_register_driver+0x168>
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
ffc0a3c8: 81 24 00 00 lwz r9,0(r4)
ffc0a3cc: 2f 89 00 00 cmpwi cr7,r9,0
ffc0a3d0: 40 be 01 34 bne+ cr7,ffc0a504 <rtems_io_register_driver+0x180>
ffc0a3d4: 81 24 00 04 lwz r9,4(r4)
ffc0a3d8: 2f 89 00 00 cmpwi cr7,r9,0
ffc0a3dc: 40 be 01 28 bne+ cr7,ffc0a504 <rtems_io_register_driver+0x180>
ffc0a3e0: 48 00 01 0c b ffc0a4ec <rtems_io_register_driver+0x168>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
ffc0a3e4: 3d 20 00 00 lis r9,0
ffc0a3e8: 81 69 27 90 lwz r11,10128(r9)
ffc0a3ec: 38 0b 00 01 addi r0,r11,1
ffc0a3f0: 90 09 27 90 stw r0,10128(r9)
if ( major >= major_limit )
return RTEMS_INVALID_NUMBER;
_Thread_Disable_dispatch();
if ( major == 0 ) {
ffc0a3f4: 2f 9f 00 00 cmpwi cr7,r31,0
ffc0a3f8: 3d 20 00 00 lis r9,0
ffc0a3fc: 40 9e 00 58 bne- cr7,ffc0a454 <rtems_io_register_driver+0xd0>
static rtems_status_code rtems_io_obtain_major_number(
rtems_device_major_number *major
)
{
rtems_device_major_number n = _IO_Number_of_drivers;
ffc0a400: 3d 60 00 00 lis r11,0
ffc0a404: 81 29 28 0c lwz r9,10252(r9)
ffc0a408: 81 6b 28 08 lwz r11,10248(r11)
ffc0a40c: 2f 8b 00 00 cmpwi cr7,r11,0
ffc0a410: 38 0b 00 01 addi r0,r11,1
ffc0a414: 40 be 00 28 bne+ cr7,ffc0a43c <rtems_io_register_driver+0xb8>
ffc0a418: 38 00 00 01 li r0,1 <== NOT EXECUTED
ffc0a41c: 48 00 00 20 b ffc0a43c <rtems_io_register_driver+0xb8><== NOT EXECUTED
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
ffc0a420: 81 49 00 00 lwz r10,0(r9)
ffc0a424: 2f 8a 00 00 cmpwi cr7,r10,0
ffc0a428: 40 be 00 ec bne+ cr7,ffc0a514 <rtems_io_register_driver+0x190>
ffc0a42c: 81 49 00 04 lwz r10,4(r9)
ffc0a430: 2f 8a 00 00 cmpwi cr7,r10,0
ffc0a434: 40 be 00 e0 bne+ cr7,ffc0a514 <rtems_io_register_driver+0x190>
ffc0a438: 48 00 00 0c b ffc0a444 <rtems_io_register_driver+0xc0>
rtems_device_major_number n = _IO_Number_of_drivers;
rtems_device_major_number m = 0;
/* major is error checked by caller */
for ( m = 0; m < n; ++m ) {
ffc0a43c: 34 00 ff ff addic. r0,r0,-1
ffc0a440: 40 82 ff e0 bne+ ffc0a420 <rtems_io_register_driver+0x9c>
}
/* Assigns invalid value in case of failure */
*major = m;
if ( m != n )
ffc0a444: 7f 9f 58 00 cmpw cr7,r31,r11
if ( rtems_io_is_empty_table( table ) )
break;
}
/* Assigns invalid value in case of failure */
*major = m;
ffc0a448: 93 e5 00 00 stw r31,0(r5)
if ( m != n )
ffc0a44c: 40 be 00 48 bne+ cr7,ffc0a494 <rtems_io_register_driver+0x110>
ffc0a450: 48 00 00 d0 b ffc0a520 <rtems_io_register_driver+0x19c>
_Thread_Enable_dispatch();
return sc;
}
major = *registered_major;
} else {
rtems_driver_address_table *const table = _IO_Driver_address_table + major;
ffc0a454: 1c 1f 00 18 mulli r0,r31,24
ffc0a458: 81 29 28 0c lwz r9,10252(r9)
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
ffc0a45c: 7d 69 00 2e lwzx r11,r9,r0
_Thread_Enable_dispatch();
return sc;
}
major = *registered_major;
} else {
rtems_driver_address_table *const table = _IO_Driver_address_table + major;
ffc0a460: 7d 29 02 14 add r9,r9,r0
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
ffc0a464: 38 00 00 00 li r0,0
ffc0a468: 2f 8b 00 00 cmpwi cr7,r11,0
ffc0a46c: 40 be 00 10 bne+ cr7,ffc0a47c <rtems_io_register_driver+0xf8>
ffc0a470: 80 09 00 04 lwz r0,4(r9)
ffc0a474: 7c 00 00 34 cntlzw r0,r0
ffc0a478: 54 00 d9 7e rlwinm r0,r0,27,5,31
}
major = *registered_major;
} else {
rtems_driver_address_table *const table = _IO_Driver_address_table + major;
if ( !rtems_io_is_empty_table( table ) ) {
ffc0a47c: 2f 80 00 00 cmpwi cr7,r0,0
ffc0a480: 40 9e 00 10 bne- cr7,ffc0a490 <rtems_io_register_driver+0x10c>
_Thread_Enable_dispatch();
ffc0a484: 48 00 20 0d bl ffc0c490 <_Thread_Enable_dispatch>
ffc0a488: 38 60 00 0c li r3,12
return RTEMS_RESOURCE_IN_USE;
ffc0a48c: 48 00 00 64 b ffc0a4f0 <rtems_io_register_driver+0x16c>
}
*registered_major = major;
ffc0a490: 93 e5 00 00 stw r31,0(r5)
}
_IO_Driver_address_table [major] = *driver_table;
ffc0a494: 3d 20 00 00 lis r9,0
ffc0a498: 80 c4 00 00 lwz r6,0(r4)
ffc0a49c: 81 69 28 0c lwz r11,10252(r9)
ffc0a4a0: 1c 1f 00 18 mulli r0,r31,24
ffc0a4a4: 80 e4 00 04 lwz r7,4(r4)
ffc0a4a8: 81 04 00 08 lwz r8,8(r4)
ffc0a4ac: 7d 2b 02 14 add r9,r11,r0
ffc0a4b0: 81 44 00 0c lwz r10,12(r4)
ffc0a4b4: 7c cb 01 2e stwx r6,r11,r0
ffc0a4b8: 90 e9 00 04 stw r7,4(r9)
ffc0a4bc: 91 09 00 08 stw r8,8(r9)
ffc0a4c0: 91 49 00 0c stw r10,12(r9)
ffc0a4c4: 81 64 00 14 lwz r11,20(r4)
ffc0a4c8: 80 04 00 10 lwz r0,16(r4)
ffc0a4cc: 91 69 00 14 stw r11,20(r9)
ffc0a4d0: 90 09 00 10 stw r0,16(r9)
_Thread_Enable_dispatch();
ffc0a4d4: 48 00 1f bd bl ffc0c490 <_Thread_Enable_dispatch>
return rtems_io_initialize( major, 0, NULL );
ffc0a4d8: 7f e3 fb 78 mr r3,r31
ffc0a4dc: 38 80 00 00 li r4,0
ffc0a4e0: 38 a0 00 00 li r5,0
ffc0a4e4: 48 00 a1 d9 bl ffc146bc <rtems_io_initialize>
ffc0a4e8: 48 00 00 08 b ffc0a4f0 <rtems_io_register_driver+0x16c>
ffc0a4ec: 38 60 00 09 li r3,9
}
ffc0a4f0: 80 01 00 14 lwz r0,20(r1)
ffc0a4f4: 83 e1 00 0c lwz r31,12(r1)
ffc0a4f8: 38 21 00 10 addi r1,r1,16
ffc0a4fc: 7c 08 03 a6 mtlr r0
ffc0a500: 4e 80 00 20 blr
return RTEMS_INVALID_ADDRESS;
if ( rtems_io_is_empty_table( driver_table ) )
return RTEMS_INVALID_ADDRESS;
if ( major >= major_limit )
ffc0a504: 7f 9f 00 40 cmplw cr7,r31,r0
ffc0a508: 38 60 00 0a li r3,10
ffc0a50c: 41 9c fe d8 blt+ cr7,ffc0a3e4 <rtems_io_register_driver+0x60>
ffc0a510: 4b ff ff e0 b ffc0a4f0 <rtems_io_register_driver+0x16c>
rtems_device_major_number n = _IO_Number_of_drivers;
rtems_device_major_number m = 0;
/* major is error checked by caller */
for ( m = 0; m < n; ++m ) {
ffc0a514: 3b ff 00 01 addi r31,r31,1
ffc0a518: 39 29 00 18 addi r9,r9,24
ffc0a51c: 4b ff ff 20 b ffc0a43c <rtems_io_register_driver+0xb8>
if ( major == 0 ) {
rtems_status_code sc = rtems_io_obtain_major_number( registered_major );
if ( sc != RTEMS_SUCCESSFUL ) {
_Thread_Enable_dispatch();
ffc0a520: 48 00 1f 71 bl ffc0c490 <_Thread_Enable_dispatch>
ffc0a524: 38 60 00 05 li r3,5
return sc;
ffc0a528: 4b ff ff c8 b ffc0a4f0 <rtems_io_register_driver+0x16c>
ffc0430c <rtems_libio_init>:
*
* Called by BSP startup code to initialize the libio subsystem.
*/
void rtems_libio_init( void )
{
ffc0430c: 94 21 ff f0 stwu r1,-16(r1)
ffc04310: 7c 08 02 a6 mflr r0
ffc04314: 93 e1 00 0c stw r31,12(r1)
rtems_status_code rc;
uint32_t i;
rtems_libio_t *iop;
if (rtems_libio_number_iops > 0)
ffc04318: 3f e0 00 00 lis r31,0
ffc0431c: 80 7f 26 8c lwz r3,9868(r31)
*
* Called by BSP startup code to initialize the libio subsystem.
*/
void rtems_libio_init( void )
{
ffc04320: 90 01 00 14 stw r0,20(r1)
rtems_status_code rc;
uint32_t i;
rtems_libio_t *iop;
if (rtems_libio_number_iops > 0)
ffc04324: 2f 83 00 00 cmpwi cr7,r3,0
ffc04328: 41 9e 00 5c beq- cr7,ffc04384 <rtems_libio_init+0x78>
{
rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
ffc0432c: 38 80 00 48 li r4,72
ffc04330: 48 00 8d 99 bl ffc0d0c8 <calloc>
ffc04334: 3d 20 00 00 lis r9,0
sizeof(rtems_libio_t));
if (rtems_libio_iops == NULL)
ffc04338: 2f 83 00 00 cmpwi cr7,r3,0
uint32_t i;
rtems_libio_t *iop;
if (rtems_libio_number_iops > 0)
{
rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
ffc0433c: 90 69 27 4c stw r3,10060(r9)
sizeof(rtems_libio_t));
if (rtems_libio_iops == NULL)
ffc04340: 40 be 00 0c bne+ cr7,ffc0434c <rtems_libio_init+0x40>
rtems_fatal_error_occurred(RTEMS_NO_MEMORY);
ffc04344: 38 60 00 1a li r3,26 <== NOT EXECUTED
ffc04348: 48 00 00 64 b ffc043ac <rtems_libio_init+0xa0> <== NOT EXECUTED
iop = rtems_libio_iop_freelist = rtems_libio_iops;
for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)
ffc0434c: 80 1f 26 8c lwz r0,9868(r31)
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;
ffc04350: 3d 20 00 00 lis r9,0
ffc04354: 90 69 27 50 stw r3,10064(r9)
ffc04358: 2f 80 00 00 cmpwi cr7,r0,0
ffc0435c: 40 be 00 10 bne+ cr7,ffc0436c <rtems_libio_init+0x60>
ffc04360: 38 00 00 01 li r0,1 <== NOT EXECUTED
ffc04364: 48 00 00 08 b ffc0436c <rtems_libio_init+0x60> <== NOT EXECUTED
for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)
iop->data1 = iop + 1;
ffc04368: 90 63 ff f0 stw r3,-16(r3)
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++)
ffc0436c: 34 00 ff ff addic. r0,r0,-1
iop->data1 = iop + 1;
ffc04370: 7c 69 1b 78 mr r9,r3
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++)
ffc04374: 38 63 00 48 addi r3,r3,72
ffc04378: 40 82 ff f0 bne+ ffc04368 <rtems_libio_init+0x5c>
iop->data1 = iop + 1;
iop->data1 = NULL;
ffc0437c: 38 00 00 00 li r0,0
ffc04380: 90 09 00 38 stw r0,56(r9)
/*
* Create the binary semaphore used to provide mutual exclusion
* on the IOP Table.
*/
rc = rtems_semaphore_create(
ffc04384: 3c 60 4c 42 lis r3,19522
ffc04388: 3c e0 00 00 lis r7,0
ffc0438c: 60 63 49 4f ori r3,r3,18767
ffc04390: 38 e7 27 54 addi r7,r7,10068
ffc04394: 38 80 00 01 li r4,1
ffc04398: 38 a0 00 54 li r5,84
ffc0439c: 38 c0 00 00 li r6,0
ffc043a0: 48 00 37 3d bl ffc07adc <rtems_semaphore_create>
1,
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
RTEMS_NO_PRIORITY,
&rtems_libio_semaphore
);
if ( rc != RTEMS_SUCCESSFUL )
ffc043a4: 2f 83 00 00 cmpwi cr7,r3,0
ffc043a8: 41 be 00 08 beq+ cr7,ffc043b0 <rtems_libio_init+0xa4>
rtems_fatal_error_occurred( rc );
ffc043ac: 48 00 42 2d bl ffc085d8 <rtems_fatal_error_occurred> <== NOT EXECUTED
/*
* Initialize the base file system infrastructure.
*/
if (rtems_fs_init_helper)
ffc043b0: 3d 20 00 00 lis r9,0
ffc043b4: 80 09 26 88 lwz r0,9864(r9)
ffc043b8: 2f 80 00 00 cmpwi cr7,r0,0
ffc043bc: 41 9e 00 0c beq- cr7,ffc043c8 <rtems_libio_init+0xbc>
(* rtems_fs_init_helper)();
ffc043c0: 7c 09 03 a6 mtctr r0
ffc043c4: 4e 80 04 21 bctrl
}
ffc043c8: 80 01 00 14 lwz r0,20(r1)
ffc043cc: 83 e1 00 0c lwz r31,12(r1)
ffc043d0: 38 21 00 10 addi r1,r1,16
ffc043d4: 7c 08 03 a6 mtlr r0
ffc043d8: 4e 80 00 20 blr
ffc0d420 <rtems_libio_is_file_open>:
*/
int rtems_libio_is_file_open(
void *node_access
)
{
ffc0d420: 94 21 ff f0 stwu r1,-16(r1)
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 );
ffc0d424: 3d 20 00 00 lis r9,0
ffc0d428: 7c 08 02 a6 mflr r0
ffc0d42c: 38 80 00 00 li r4,0
ffc0d430: 93 e1 00 0c stw r31,12(r1)
ffc0d434: 7c 7f 1b 78 mr r31,r3
ffc0d438: 38 a0 00 00 li r5,0
ffc0d43c: 80 69 27 54 lwz r3,10068(r9)
ffc0d440: 90 01 00 14 stw r0,20(r1)
ffc0d444: 4b ff a9 69 bl ffc07dac <rtems_semaphore_obtain>
/*
* Look for any active file descriptor entry.
*/
for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
ffc0d448: 3d 20 00 00 lis r9,0
ffc0d44c: 81 69 26 8c lwz r11,9868(r9)
ffc0d450: 3d 20 00 00 lis r9,0
ffc0d454: 81 29 27 4c lwz r9,10060(r9)
ffc0d458: 2f 8b 00 00 cmpwi cr7,r11,0
ffc0d45c: 38 0b 00 01 addi r0,r11,1
ffc0d460: 40 be 00 30 bne+ cr7,ffc0d490 <rtems_libio_is_file_open+0x70>
ffc0d464: 38 00 00 01 li r0,1 <== NOT EXECUTED
ffc0d468: 48 00 00 28 b ffc0d490 <rtems_libio_is_file_open+0x70><== NOT EXECUTED
if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) {
ffc0d46c: 81 69 00 18 lwz r11,24(r9)
ffc0d470: 71 6a 01 00 andi. r10,r11,256
ffc0d474: 41 82 00 18 beq- ffc0d48c <rtems_libio_is_file_open+0x6c>
/*
* Check if this node is under the file system that we
* are trying to dismount.
*/
if ( iop->pathinfo.node_access == node_access ) {
ffc0d478: 81 69 00 1c lwz r11,28(r9)
ffc0d47c: 7f 8b f8 00 cmpw cr7,r11,r31
ffc0d480: 40 be 00 0c bne+ cr7,ffc0d48c <rtems_libio_is_file_open+0x6c>
ffc0d484: 3b e0 00 01 li r31,1
ffc0d488: 48 00 00 14 b ffc0d49c <rtems_libio_is_file_open+0x7c>
/*
* Look for any active file descriptor entry.
*/
for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
ffc0d48c: 39 29 00 48 addi r9,r9,72
ffc0d490: 34 00 ff ff addic. r0,r0,-1
ffc0d494: 40 82 ff d8 bne+ ffc0d46c <rtems_libio_is_file_open+0x4c>
ffc0d498: 3b e0 00 00 li r31,0
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
ffc0d49c: 3d 20 00 00 lis r9,0
ffc0d4a0: 80 69 27 54 lwz r3,10068(r9)
ffc0d4a4: 4b ff aa 4d bl ffc07ef0 <rtems_semaphore_release>
}
rtems_libio_unlock();
return result;
}
ffc0d4a8: 80 01 00 14 lwz r0,20(r1)
ffc0d4ac: 7f e3 fb 78 mr r3,r31
ffc0d4b0: 83 e1 00 0c lwz r31,12(r1)
ffc0d4b4: 7c 08 03 a6 mtlr r0
ffc0d4b8: 38 21 00 10 addi r1,r1,16
ffc0d4bc: 4e 80 00 20 blr
ffc0d4c0 <rtems_libio_is_open_files_in_fs>:
*/
int rtems_libio_is_open_files_in_fs(
rtems_filesystem_mount_table_entry_t * fs_mt_entry
)
{
ffc0d4c0: 94 21 ff f0 stwu r1,-16(r1)
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 );
ffc0d4c4: 3d 20 00 00 lis r9,0
ffc0d4c8: 7c 08 02 a6 mflr r0
ffc0d4cc: 38 80 00 00 li r4,0
ffc0d4d0: 93 e1 00 0c stw r31,12(r1)
ffc0d4d4: 7c 7f 1b 78 mr r31,r3
ffc0d4d8: 38 a0 00 00 li r5,0
ffc0d4dc: 80 69 27 54 lwz r3,10068(r9)
ffc0d4e0: 90 01 00 14 stw r0,20(r1)
ffc0d4e4: 4b ff a8 c9 bl ffc07dac <rtems_semaphore_obtain>
/*
* Look for any active file descriptor entry.
*/
for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
ffc0d4e8: 3d 20 00 00 lis r9,0
ffc0d4ec: 81 69 26 8c lwz r11,9868(r9)
ffc0d4f0: 3d 20 00 00 lis r9,0
ffc0d4f4: 81 29 27 4c lwz r9,10060(r9)
ffc0d4f8: 2f 8b 00 00 cmpwi cr7,r11,0
ffc0d4fc: 38 0b 00 01 addi r0,r11,1
ffc0d500: 40 be 00 30 bne+ cr7,ffc0d530 <rtems_libio_is_open_files_in_fs+0x70>
ffc0d504: 38 00 00 01 li r0,1 <== NOT EXECUTED
ffc0d508: 48 00 00 28 b ffc0d530 <rtems_libio_is_open_files_in_fs+0x70><== NOT EXECUTED
if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) {
ffc0d50c: 81 69 00 18 lwz r11,24(r9)
ffc0d510: 71 6a 01 00 andi. r10,r11,256
ffc0d514: 41 82 00 18 beq- ffc0d52c <rtems_libio_is_open_files_in_fs+0x6c>
/*
* Check if this node is under the file system that we
* are trying to dismount.
*/
if ( iop->pathinfo.mt_entry == fs_mt_entry ) {
ffc0d518: 81 69 00 2c lwz r11,44(r9)
ffc0d51c: 7f 8b f8 00 cmpw cr7,r11,r31
ffc0d520: 40 be 00 0c bne+ cr7,ffc0d52c <rtems_libio_is_open_files_in_fs+0x6c>
ffc0d524: 3b e0 00 01 li r31,1
ffc0d528: 48 00 00 14 b ffc0d53c <rtems_libio_is_open_files_in_fs+0x7c>
/*
* Look for any active file descriptor entry.
*/
for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
ffc0d52c: 39 29 00 48 addi r9,r9,72
ffc0d530: 34 00 ff ff addic. r0,r0,-1
ffc0d534: 40 82 ff d8 bne+ ffc0d50c <rtems_libio_is_open_files_in_fs+0x4c>
ffc0d538: 3b e0 00 00 li r31,0
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
ffc0d53c: 3d 20 00 00 lis r9,0
ffc0d540: 80 69 27 54 lwz r3,10068(r9)
ffc0d544: 4b ff a9 ad bl ffc07ef0 <rtems_semaphore_release>
}
rtems_libio_unlock();
return result;
}
ffc0d548: 80 01 00 14 lwz r0,20(r1)
ffc0d54c: 7f e3 fb 78 mr r3,r31
ffc0d550: 83 e1 00 0c lwz r31,12(r1)
ffc0d554: 7c 08 03 a6 mtlr r0
ffc0d558: 38 21 00 10 addi r1,r1,16
ffc0d55c: 4e 80 00 20 blr
ffc2c450 <rtems_libio_set_private_env>:
rtems_filesystem_freenode( &env->root_directory);
free(env);
}
}
rtems_status_code rtems_libio_set_private_env(void) {
ffc2c450: 94 21 ff c0 stwu r1,-64(r1)
ffc2c454: 7c 08 02 a6 mflr r0
rtems_status_code sc;
rtems_id task_id;
rtems_filesystem_location_info_t loc;
sc=rtems_task_ident(RTEMS_SELF,0,&task_id);
ffc2c458: 38 60 00 00 li r3,0
ffc2c45c: 38 80 00 00 li r4,0
rtems_filesystem_freenode( &env->root_directory);
free(env);
}
}
rtems_status_code rtems_libio_set_private_env(void) {
ffc2c460: 93 e1 00 3c stw r31,60(r1)
rtems_status_code sc;
rtems_id task_id;
rtems_filesystem_location_info_t loc;
sc=rtems_task_ident(RTEMS_SELF,0,&task_id);
ffc2c464: 38 a1 00 08 addi r5,r1,8
rtems_filesystem_freenode( &env->root_directory);
free(env);
}
}
rtems_status_code rtems_libio_set_private_env(void) {
ffc2c468: 90 01 00 44 stw r0,68(r1)
ffc2c46c: 93 61 00 2c stw r27,44(r1)
ffc2c470: 93 81 00 30 stw r28,48(r1)
ffc2c474: 93 a1 00 34 stw r29,52(r1)
ffc2c478: 93 c1 00 38 stw r30,56(r1)
rtems_status_code sc;
rtems_id task_id;
rtems_filesystem_location_info_t loc;
sc=rtems_task_ident(RTEMS_SELF,0,&task_id);
ffc2c47c: 4b fd fc dd bl ffc0c158 <rtems_task_ident>
if (sc != RTEMS_SUCCESSFUL) return sc;
ffc2c480: 7c 7f 1b 79 mr. r31,r3
ffc2c484: 40 82 01 50 bne- ffc2c5d4 <rtems_libio_set_private_env+0x184>
/* Only for the first time a malloc is necesary */
if (rtems_current_user_env==&rtems_global_user_env) {
ffc2c488: 3f c0 00 00 lis r30,0
ffc2c48c: 81 3e 35 2c lwz r9,13612(r30)
ffc2c490: 3d 60 00 00 lis r11,0
ffc2c494: 38 0b 63 dc addi r0,r11,25564
ffc2c498: 7f 89 00 00 cmpw cr7,r9,r0
ffc2c49c: 3b 9e 35 2c addi r28,r30,13612
ffc2c4a0: 40 be 00 4c bne+ cr7,ffc2c4ec <rtems_libio_set_private_env+0x9c>
rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t));
ffc2c4a4: 38 60 00 48 li r3,72
ffc2c4a8: 4b fd b5 99 bl ffc07a40 <malloc>
if (!tmp)
ffc2c4ac: 7c 7d 1b 79 mr. r29,r3
ffc2c4b0: 40 a2 00 0c bne+ ffc2c4bc <rtems_libio_set_private_env+0x6c>
ffc2c4b4: 3b e0 00 1a li r31,26 <== NOT EXECUTED
ffc2c4b8: 48 00 01 1c b ffc2c5d4 <rtems_libio_set_private_env+0x184><== NOT EXECUTED
#ifdef HAVE_USERENV_REFCNT
tmp->refcnt = 1;
#endif
sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,(void(*)(void *))free_user_env);
ffc2c4bc: 3c a0 ff c3 lis r5,-61
ffc2c4c0: 7f 84 e3 78 mr r4,r28
ffc2c4c4: 38 a5 c2 f0 addi r5,r5,-15632
ffc2c4c8: 38 60 00 00 li r3,0
ffc2c4cc: 48 00 26 a1 bl ffc2eb6c <rtems_task_variable_add>
if (sc != RTEMS_SUCCESSFUL) {
ffc2c4d0: 7c 7c 1b 79 mr. r28,r3
ffc2c4d4: 41 a2 00 14 beq+ ffc2c4e8 <rtems_libio_set_private_env+0x98>
/* don't use free_user_env because the pathlocs are
* not initialized yet
*/
free(tmp);
ffc2c4d8: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc2c4dc: 4b fd ad dd bl ffc072b8 <free> <== NOT EXECUTED
ffc2c4e0: 7f 9f e3 78 mr r31,r28 <== NOT EXECUTED
return sc;
ffc2c4e4: 48 00 00 f0 b ffc2c5d4 <rtems_libio_set_private_env+0x184><== NOT EXECUTED
}
rtems_current_user_env = tmp;
ffc2c4e8: 93 be 35 2c stw r29,13612(r30)
};
*rtems_current_user_env = rtems_global_user_env; /* get the global values*/
ffc2c4ec: 3f c0 00 00 lis r30,0
ffc2c4f0: 83 7e 35 2c lwz r27,13612(r30)
ffc2c4f4: 3c 80 00 00 lis r4,0
ffc2c4f8: 38 84 63 dc addi r4,r4,25564
ffc2c4fc: 38 a0 00 48 li r5,72
ffc2c500: 7f 63 db 78 mr r3,r27
ffc2c504: 48 01 ec d1 bl ffc4b1d4 <memcpy>
rtems_current_user_env->task_id=task_id; /* mark the local values*/
/* get a clean root */
rtems_filesystem_root = THE_ROOT_FS_LOC;
ffc2c508: 3d 20 00 00 lis r9,0
ffc2c50c: 81 29 63 d0 lwz r9,25552(r9)
* code we must _not_ free the original locs because
* what we are trying to do here is forking off
* clones.
*/
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc2c510: 3f 80 ff c6 lis r28,-58
ffc2c514: 3b 9c 43 50 addi r28,r28,17232
*rtems_current_user_env = rtems_global_user_env; /* get the global values*/
rtems_current_user_env->task_id=task_id; /* mark the local values*/
/* get a clean root */
rtems_filesystem_root = THE_ROOT_FS_LOC;
ffc2c518: 81 09 00 1c lwz r8,28(r9)
* code we must _not_ free the original locs because
* what we are trying to do here is forking off
* clones.
*/
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc2c51c: 3b a1 00 0c addi r29,r1,12
*rtems_current_user_env = rtems_global_user_env; /* get the global values*/
rtems_current_user_env->task_id=task_id; /* mark the local values*/
/* get a clean root */
rtems_filesystem_root = THE_ROOT_FS_LOC;
ffc2c520: 81 49 00 20 lwz r10,32(r9)
* code we must _not_ free the original locs because
* what we are trying to do here is forking off
* clones.
*/
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc2c524: 38 80 00 01 li r4,1
*rtems_current_user_env = rtems_global_user_env; /* get the global values*/
rtems_current_user_env->task_id=task_id; /* mark the local values*/
/* get a clean root */
rtems_filesystem_root = THE_ROOT_FS_LOC;
ffc2c528: 81 69 00 24 lwz r11,36(r9)
* code we must _not_ free the original locs because
* what we are trying to do here is forking off
* clones.
*/
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc2c52c: 38 a0 00 00 li r5,0
*rtems_current_user_env = rtems_global_user_env; /* get the global values*/
rtems_current_user_env->task_id=task_id; /* mark the local values*/
/* get a clean root */
rtems_filesystem_root = THE_ROOT_FS_LOC;
ffc2c530: 80 09 00 28 lwz r0,40(r9)
* code we must _not_ free the original locs because
* what we are trying to do here is forking off
* clones.
*/
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc2c534: 7f a6 eb 78 mr r6,r29
*rtems_current_user_env = rtems_global_user_env; /* get the global values*/
rtems_current_user_env->task_id=task_id; /* mark the local values*/
/* get a clean root */
rtems_filesystem_root = THE_ROOT_FS_LOC;
ffc2c538: 91 1b 00 18 stw r8,24(r27)
* code we must _not_ free the original locs because
* what we are trying to do here is forking off
* clones.
*/
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc2c53c: 38 e0 00 00 li r7,0
ffc2c540: 7f 83 e3 78 mr r3,r28
*rtems_current_user_env = rtems_global_user_env; /* get the global values*/
rtems_current_user_env->task_id=task_id; /* mark the local values*/
/* get a clean root */
rtems_filesystem_root = THE_ROOT_FS_LOC;
ffc2c544: 91 5b 00 1c stw r10,28(r27)
ffc2c548: 91 7b 00 20 stw r11,32(r27)
ffc2c54c: 90 1b 00 24 stw r0,36(r27)
ffc2c550: 80 09 00 2c lwz r0,44(r9)
}
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*/
ffc2c554: 81 21 00 08 lwz r9,8(r1)
/* get a clean root */
rtems_filesystem_root = THE_ROOT_FS_LOC;
ffc2c558: 90 1b 00 28 stw r0,40(r27)
}
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*/
ffc2c55c: 91 3b 00 00 stw r9,0(r27)
* code we must _not_ free the original locs because
* what we are trying to do here is forking off
* clones.
*/
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc2c560: 4b fd ac 75 bl ffc071d4 <rtems_filesystem_evaluate_path>
rtems_filesystem_root = loc;
ffc2c564: 81 3e 35 2c lwz r9,13612(r30)
ffc2c568: 81 41 00 10 lwz r10,16(r1)
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc2c56c: 7f 83 e3 78 mr r3,r28
* what we are trying to do here is forking off
* clones.
*/
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_root = loc;
ffc2c570: 81 61 00 14 lwz r11,20(r1)
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc2c574: 7f a6 eb 78 mr r6,r29
* what we are trying to do here is forking off
* clones.
*/
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_root = loc;
ffc2c578: 80 01 00 18 lwz r0,24(r1)
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc2c57c: 38 80 00 01 li r4,1
* what we are trying to do here is forking off
* clones.
*/
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_root = loc;
ffc2c580: 81 01 00 0c lwz r8,12(r1)
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc2c584: 38 a0 00 00 li r5,0
* what we are trying to do here is forking off
* clones.
*/
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_root = loc;
ffc2c588: 91 49 00 1c stw r10,28(r9)
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc2c58c: 38 e0 00 00 li r7,0
* what we are trying to do here is forking off
* clones.
*/
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_root = loc;
ffc2c590: 91 09 00 18 stw r8,24(r9)
ffc2c594: 91 69 00 20 stw r11,32(r9)
ffc2c598: 90 09 00 24 stw r0,36(r9)
ffc2c59c: 80 01 00 1c lwz r0,28(r1)
ffc2c5a0: 90 09 00 28 stw r0,40(r9)
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc2c5a4: 4b fd ac 31 bl ffc071d4 <rtems_filesystem_evaluate_path>
rtems_filesystem_current = loc;
ffc2c5a8: 80 01 00 18 lwz r0,24(r1)
ffc2c5ac: 81 3e 35 2c lwz r9,13612(r30)
ffc2c5b0: 81 41 00 10 lwz r10,16(r1)
ffc2c5b4: 81 61 00 14 lwz r11,20(r1)
ffc2c5b8: 81 01 00 0c lwz r8,12(r1)
ffc2c5bc: 91 49 00 08 stw r10,8(r9)
ffc2c5c0: 91 09 00 04 stw r8,4(r9)
ffc2c5c4: 91 69 00 0c stw r11,12(r9)
ffc2c5c8: 90 09 00 10 stw r0,16(r9)
ffc2c5cc: 80 01 00 1c lwz r0,28(r1)
ffc2c5d0: 90 09 00 14 stw r0,20(r9)
return RTEMS_SUCCESSFUL;
}
ffc2c5d4: 80 01 00 44 lwz r0,68(r1)
ffc2c5d8: 7f e3 fb 78 mr r3,r31
ffc2c5dc: 83 61 00 2c lwz r27,44(r1)
ffc2c5e0: 7c 08 03 a6 mtlr r0
ffc2c5e4: 83 81 00 30 lwz r28,48(r1)
ffc2c5e8: 83 a1 00 34 lwz r29,52(r1)
ffc2c5ec: 83 c1 00 38 lwz r30,56(r1)
ffc2c5f0: 83 e1 00 3c lwz r31,60(r1)
ffc2c5f4: 38 21 00 40 addi r1,r1,64
ffc2c5f8: 4e 80 00 20 blr
ffc2c378 <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) {
ffc2c378: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED
ffc2c37c: 7c 08 02 a6 mflr r0 <== 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);
ffc2c380: 38 80 00 00 li r4,0 <== NOT EXECUTED
* 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) {
ffc2c384: 93 a1 00 1c stw r29,28(r1) <== 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);
ffc2c388: 38 a1 00 0c addi r5,r1,12 <== NOT EXECUTED
* 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) {
ffc2c38c: 7c 7d 1b 78 mr r29,r3 <== 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);
ffc2c390: 38 60 00 00 li r3,0 <== NOT EXECUTED
* 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) {
ffc2c394: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED
ffc2c398: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED
ffc2c39c: 93 e1 00 24 stw r31,36(r1) <== 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);
ffc2c3a0: 4b fd fd b9 bl ffc0c158 <rtems_task_ident> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) return sc;
ffc2c3a4: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED
ffc2c3a8: 40 82 00 88 bne- ffc2c430 <rtems_libio_share_private_env+0xb8><== NOT EXECUTED
if (rtems_current_user_env->task_id==current_task_id) {
ffc2c3ac: 3c 80 00 00 lis r4,0 <== NOT EXECUTED
ffc2c3b0: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc2c3b4: 83 e4 35 2c lwz r31,13612(r4) <== NOT EXECUTED
ffc2c3b8: 38 84 35 2c addi r4,r4,13612 <== NOT EXECUTED
ffc2c3bc: 81 3f 00 00 lwz r9,0(r31) <== NOT EXECUTED
ffc2c3c0: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED
ffc2c3c4: 40 be 00 18 bne+ cr7,ffc2c3dc <rtems_libio_share_private_env+0x64><== NOT EXECUTED
/* kill the current user env & task_var*/
rtems_user_env_t *tmp = rtems_current_user_env;
sc = rtems_task_variable_delete(RTEMS_SELF,(void*)&rtems_current_user_env);
ffc2c3c8: 48 00 28 71 bl ffc2ec38 <rtems_task_variable_delete> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) return sc;
ffc2c3cc: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED
ffc2c3d0: 40 a2 00 60 bne+ ffc2c430 <rtems_libio_share_private_env+0xb8><== NOT EXECUTED
free_user_env(tmp);
ffc2c3d4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc2c3d8: 4b ff ff 19 bl ffc2c2f0 <free_user_env> <== NOT EXECUTED
};
/* AT THIS POINT, rtems_current_user_env is DANGLING */
sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env,
ffc2c3dc: 3f e0 00 00 lis r31,0 <== NOT EXECUTED
ffc2c3e0: 3b df 35 2c addi r30,r31,13612 <== NOT EXECUTED
ffc2c3e4: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc2c3e8: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED
ffc2c3ec: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED
ffc2c3f0: 48 00 28 e9 bl ffc2ecd8 <rtems_task_variable_get> <== NOT EXECUTED
(void*)&shared_user_env );
if (sc != RTEMS_SUCCESSFUL)
ffc2c3f4: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED
ffc2c3f8: 40 a2 00 28 bne+ ffc2c420 <rtems_libio_share_private_env+0xa8><== NOT EXECUTED
goto bailout;
sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env);
ffc2c3fc: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED
ffc2c400: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED
ffc2c404: 38 a5 c2 f0 addi r5,r5,-15632 <== NOT EXECUTED
ffc2c408: 48 00 27 65 bl ffc2eb6c <rtems_task_variable_add> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
ffc2c40c: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED
ffc2c410: 40 a2 00 10 bne+ ffc2c420 <rtems_libio_share_private_env+0xa8><== NOT EXECUTED
goto bailout;
/* the current_user_env is the same pointer that remote env */
rtems_current_user_env = shared_user_env;
ffc2c414: 81 21 00 08 lwz r9,8(r1) <== NOT EXECUTED
ffc2c418: 91 3f 35 2c stw r9,13612(r31) <== NOT EXECUTED
/* increase the reference count */
#ifdef HAVE_USERENV_REFCNT
rtems_current_user_env->refcnt++;
#endif
return RTEMS_SUCCESSFUL;
ffc2c41c: 48 00 00 14 b ffc2c430 <rtems_libio_share_private_env+0xb8><== NOT EXECUTED
bailout:
/* fallback to the global env */
rtems_current_user_env = &rtems_global_user_env;
ffc2c420: 3d 60 00 00 lis r11,0 <== NOT EXECUTED
ffc2c424: 39 6b 63 dc addi r11,r11,25564 <== NOT EXECUTED
ffc2c428: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc2c42c: 91 69 35 2c stw r11,13612(r9) <== NOT EXECUTED
return sc;
}
ffc2c430: 7c 03 03 78 mr r3,r0 <== NOT EXECUTED
ffc2c434: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED
ffc2c438: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED
ffc2c43c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2c440: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED
ffc2c444: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED
ffc2c448: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED
ffc2c44c: 4e 80 00 20 blr <== NOT EXECUTED
ffc07b68 <rtems_malloc_statistics_at_free>:
* size and thus we skip updating the statistics.
*/
static void rtems_malloc_statistics_at_free(
void *pointer
)
{
ffc07b68: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED
uintptr_t size;
if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
ffc07b6c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
* size and thus we skip updating the statistics.
*/
static void rtems_malloc_statistics_at_free(
void *pointer
)
{
ffc07b70: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc07b74: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED
uintptr_t size;
if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
ffc07b78: 80 69 34 dc lwz r3,13532(r9) <== NOT EXECUTED
ffc07b7c: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED
* size and thus we skip updating the statistics.
*/
static void rtems_malloc_statistics_at_free(
void *pointer
)
{
ffc07b80: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED
uintptr_t size;
if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
ffc07b84: 48 00 65 05 bl ffc0e088 <_Protected_heap_Get_block_size><== NOT EXECUTED
ffc07b88: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc07b8c: 41 9e 00 2c beq- cr7,ffc07bb8 <rtems_malloc_statistics_at_free+0x50><== NOT EXECUTED
MSBUMP(lifetime_freed, size);
ffc07b90: 3d 60 00 00 lis r11,0 <== NOT EXECUTED
ffc07b94: 81 41 00 08 lwz r10,8(r1) <== NOT EXECUTED
ffc07b98: 39 6b 63 a0 addi r11,r11,25504 <== NOT EXECUTED
ffc07b9c: 80 ab 00 28 lwz r5,40(r11) <== NOT EXECUTED
ffc07ba0: 39 20 00 00 li r9,0 <== NOT EXECUTED
ffc07ba4: 80 cb 00 2c lwz r6,44(r11) <== NOT EXECUTED
ffc07ba8: 7d 0a 30 14 addc r8,r10,r6 <== NOT EXECUTED
ffc07bac: 7c e9 29 14 adde r7,r9,r5 <== NOT EXECUTED
ffc07bb0: 90 eb 00 28 stw r7,40(r11) <== NOT EXECUTED
ffc07bb4: 91 0b 00 2c stw r8,44(r11) <== NOT EXECUTED
}
}
ffc07bb8: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED
ffc07bbc: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED
ffc07bc0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc07bc4: 4e 80 00 20 blr <== NOT EXECUTED
ffc07bc8 <rtems_malloc_statistics_at_malloc>:
{
uintptr_t actual_size = 0;
uint32_t current_depth;
rtems_malloc_statistics_t *s = &rtems_malloc_statistics;
if ( !pointer )
ffc07bc8: 7c 64 1b 79 mr. r4,r3 <== NOT EXECUTED
}
static void rtems_malloc_statistics_at_malloc(
void *pointer
)
{
ffc07bcc: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED
ffc07bd0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc07bd4: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED
uintptr_t actual_size = 0;
uint32_t current_depth;
rtems_malloc_statistics_t *s = &rtems_malloc_statistics;
if ( !pointer )
ffc07bd8: 41 82 00 5c beq- ffc07c34 <rtems_malloc_statistics_at_malloc+0x6c><== NOT EXECUTED
static void rtems_malloc_statistics_at_malloc(
void *pointer
)
{
uintptr_t actual_size = 0;
ffc07bdc: 7c 25 0b 78 mr r5,r1 <== NOT EXECUTED
ffc07be0: 38 00 00 00 li r0,0 <== NOT EXECUTED
rtems_malloc_statistics_t *s = &rtems_malloc_statistics;
if ( !pointer )
return;
_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
ffc07be4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
static void rtems_malloc_statistics_at_malloc(
void *pointer
)
{
uintptr_t actual_size = 0;
ffc07be8: 94 05 00 08 stwu r0,8(r5) <== NOT EXECUTED
rtems_malloc_statistics_t *s = &rtems_malloc_statistics;
if ( !pointer )
return;
_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
ffc07bec: 80 69 34 dc lwz r3,13532(r9) <== NOT EXECUTED
ffc07bf0: 48 00 64 99 bl ffc0e088 <_Protected_heap_Get_block_size><== NOT EXECUTED
MSBUMP(lifetime_allocated, actual_size);
ffc07bf4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc07bf8: 39 29 63 a0 addi r9,r9,25504 <== NOT EXECUTED
ffc07bfc: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED
ffc07c00: 80 a9 00 20 lwz r5,32(r9) <== NOT EXECUTED
ffc07c04: 39 60 00 00 li r11,0 <== NOT EXECUTED
ffc07c08: 80 c9 00 24 lwz r6,36(r9) <== NOT EXECUTED
current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
ffc07c0c: 80 09 00 2c lwz r0,44(r9) <== NOT EXECUTED
if ( !pointer )
return;
_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
MSBUMP(lifetime_allocated, actual_size);
ffc07c10: 7d 0c 30 14 addc r8,r12,r6 <== NOT EXECUTED
ffc07c14: 7c eb 29 14 adde r7,r11,r5 <== NOT EXECUTED
current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
if (current_depth > s->max_depth)
ffc07c18: 81 69 00 18 lwz r11,24(r9) <== NOT EXECUTED
if ( !pointer )
return;
_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
MSBUMP(lifetime_allocated, actual_size);
ffc07c1c: 90 e9 00 20 stw r7,32(r9) <== NOT EXECUTED
current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
ffc07c20: 7c 00 40 50 subf r0,r0,r8 <== NOT EXECUTED
if (current_depth > s->max_depth)
ffc07c24: 7f 80 58 40 cmplw cr7,r0,r11 <== NOT EXECUTED
if ( !pointer )
return;
_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
MSBUMP(lifetime_allocated, actual_size);
ffc07c28: 91 09 00 24 stw r8,36(r9) <== NOT EXECUTED
current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
if (current_depth > s->max_depth)
ffc07c2c: 40 9d 00 08 ble- cr7,ffc07c34 <rtems_malloc_statistics_at_malloc+0x6c><== NOT EXECUTED
s->max_depth = current_depth;
ffc07c30: 90 09 00 18 stw r0,24(r9) <== NOT EXECUTED
}
ffc07c34: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED
ffc07c38: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED
ffc07c3c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc07c40: 4e 80 00 20 blr <== NOT EXECUTED
ffc07c44 <rtems_malloc_statistics_initialize>:
#include <sys/reent.h>
#include <stdlib.h>
static void rtems_malloc_statistics_initialize( void )
{
ffc07c44: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED
ffc07c48: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
/*
* Zero all the statistics
*/
(void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics));
ffc07c4c: 3c 60 00 00 lis r3,0 <== NOT EXECUTED
ffc07c50: 38 63 63 a0 addi r3,r3,25504 <== NOT EXECUTED
#include <sys/reent.h>
#include <stdlib.h>
static void rtems_malloc_statistics_initialize( void )
{
ffc07c54: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
/*
* Zero all the statistics
*/
(void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics));
ffc07c58: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc07c5c: 38 a0 00 30 li r5,48 <== NOT EXECUTED
ffc07c60: 48 04 37 ad bl ffc4b40c <memset> <== NOT EXECUTED
}
ffc07c64: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc07c68: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc07c6c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc07c70: 4e 80 00 20 blr <== NOT EXECUTED
ffc132ac <rtems_memalign>:
int rtems_memalign(
void **pointer,
size_t alignment,
size_t size
)
{
ffc132ac: 94 21 ff e8 stwu r1,-24(r1)
ffc132b0: 7c 08 02 a6 mflr r0
ffc132b4: 93 e1 00 14 stw r31,20(r1)
void *return_this;
/*
* Parameter error checks
*/
if ( !pointer )
ffc132b8: 7c 7f 1b 79 mr. r31,r3
int rtems_memalign(
void **pointer,
size_t alignment,
size_t size
)
{
ffc132bc: 93 a1 00 0c stw r29,12(r1)
ffc132c0: 7c bd 2b 78 mr r29,r5
ffc132c4: 93 c1 00 10 stw r30,16(r1)
ffc132c8: 7c 9e 23 78 mr r30,r4
ffc132cc: 90 01 00 1c stw r0,28(r1)
void *return_this;
/*
* Parameter error checks
*/
if ( !pointer )
ffc132d0: 41 82 00 7c beq- ffc1334c <rtems_memalign+0xa0>
*pointer = NULL;
/*
* Do not attempt to allocate memory if not in correct system state.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
ffc132d4: 3d 20 00 00 lis r9,0
ffc132d8: 80 09 27 f4 lwz r0,10228(r9)
ffc132dc: 2f 80 00 03 cmpwi cr7,r0,3
* Parameter error checks
*/
if ( !pointer )
return EINVAL;
*pointer = NULL;
ffc132e0: 38 00 00 00 li r0,0
ffc132e4: 90 1f 00 00 stw r0,0(r31)
/*
* Do not attempt to allocate memory if not in correct system state.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
ffc132e8: 40 be 00 10 bne+ cr7,ffc132f8 <rtems_memalign+0x4c>
ffc132ec: 4b ff 29 65 bl ffc05c50 <malloc_is_system_state_OK>
ffc132f0: 2f 83 00 00 cmpwi cr7,r3,0
ffc132f4: 41 9e 00 58 beq- cr7,ffc1334c <rtems_memalign+0xa0>
/*
*
* If some free's have been deferred, then do them now.
*/
malloc_deferred_frees_process();
ffc132f8: 4b ff 29 cd bl ffc05cc4 <malloc_deferred_frees_process>
uintptr_t size,
uintptr_t alignment
)
{
return
_Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 );
ffc132fc: 3d 20 00 00 lis r9,0
ffc13300: 80 69 26 bc lwz r3,9916(r9)
ffc13304: 7f c5 f3 78 mr r5,r30
ffc13308: 7f a4 eb 78 mr r4,r29
ffc1330c: 38 c0 00 00 li r6,0
ffc13310: 4b ff 88 ed bl ffc0bbfc <_Protected_heap_Allocate_aligned_with_boundary>
return_this = _Protected_heap_Allocate_aligned(
RTEMS_Malloc_Heap,
size,
alignment
);
if ( !return_this )
ffc13314: 7c 7e 1b 79 mr. r30,r3
ffc13318: 38 60 00 0c li r3,12
ffc1331c: 41 82 00 34 beq- ffc13350 <rtems_memalign+0xa4>
return ENOMEM;
/*
* If configured, update the more involved statistics
*/
if ( rtems_malloc_statistics_helpers )
ffc13320: 3d 20 00 00 lis r9,0
ffc13324: 81 29 27 28 lwz r9,10024(r9)
ffc13328: 2f 89 00 00 cmpwi cr7,r9,0
ffc1332c: 41 9e 00 14 beq- cr7,ffc13340 <rtems_memalign+0x94>
(*rtems_malloc_statistics_helpers->at_malloc)(pointer);
ffc13330: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED
ffc13334: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc13338: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc1333c: 4e 80 04 21 bctrl <== NOT EXECUTED
*/
if (rtems_malloc_boundary_helpers)
(*rtems_malloc_boundary_helpers->at_malloc)(return_this, size);
#endif
*pointer = return_this;
ffc13340: 93 df 00 00 stw r30,0(r31)
ffc13344: 38 60 00 00 li r3,0
return 0;
ffc13348: 48 00 00 08 b ffc13350 <rtems_memalign+0xa4>
ffc1334c: 38 60 00 16 li r3,22
}
ffc13350: 80 01 00 1c lwz r0,28(r1)
ffc13354: 83 a1 00 0c lwz r29,12(r1)
ffc13358: 7c 08 03 a6 mtlr r0
ffc1335c: 83 c1 00 10 lwz r30,16(r1)
ffc13360: 83 e1 00 14 lwz r31,20(r1)
ffc13364: 38 21 00 18 addi r1,r1,24
ffc13368: 4e 80 00 20 blr
ffc0a39c <rtems_panic>:
void rtems_panic(
const char *printf_format,
...
)
{
ffc0a39c: 94 21 ff 88 stwu r1,-120(r1) <== NOT EXECUTED
ffc0a3a0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc0a3a4: 90 81 00 1c stw r4,28(r1) <== NOT EXECUTED
ffc0a3a8: 90 01 00 7c stw r0,124(r1) <== NOT EXECUTED
ffc0a3ac: 90 a1 00 20 stw r5,32(r1) <== NOT EXECUTED
ffc0a3b0: 90 c1 00 24 stw r6,36(r1) <== NOT EXECUTED
ffc0a3b4: 90 e1 00 28 stw r7,40(r1) <== NOT EXECUTED
ffc0a3b8: 91 01 00 2c stw r8,44(r1) <== NOT EXECUTED
ffc0a3bc: 91 21 00 30 stw r9,48(r1) <== NOT EXECUTED
ffc0a3c0: 91 41 00 34 stw r10,52(r1) <== NOT EXECUTED
ffc0a3c4: 40 86 00 24 bne- cr1,ffc0a3e8 <rtems_panic+0x4c> <== NOT EXECUTED
ffc0a3c8: d8 21 00 38 stfd f1,56(r1) <== NOT EXECUTED
ffc0a3cc: d8 41 00 40 stfd f2,64(r1) <== NOT EXECUTED
ffc0a3d0: d8 61 00 48 stfd f3,72(r1) <== NOT EXECUTED
ffc0a3d4: d8 81 00 50 stfd f4,80(r1) <== NOT EXECUTED
ffc0a3d8: d8 a1 00 58 stfd f5,88(r1) <== NOT EXECUTED
ffc0a3dc: d8 c1 00 60 stfd f6,96(r1) <== NOT EXECUTED
ffc0a3e0: d8 e1 00 68 stfd f7,104(r1) <== NOT EXECUTED
ffc0a3e4: d9 01 00 70 stfd f8,112(r1) <== NOT EXECUTED
va_list arglist;
va_start(arglist, printf_format);
ffc0a3e8: 38 00 00 01 li r0,1 <== NOT EXECUTED
ffc0a3ec: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED
ffc0a3f0: 38 00 00 00 li r0,0 <== NOT EXECUTED
void rtems_panic(
const char *printf_format,
...
)
{
ffc0a3f4: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED
va_list arglist;
va_start(arglist, printf_format);
ffc0a3f8: 98 01 00 09 stb r0,9(r1) <== NOT EXECUTED
ffc0a3fc: 38 01 00 80 addi r0,r1,128 <== NOT EXECUTED
(void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist);
ffc0a400: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED
...
)
{
va_list arglist;
va_start(arglist, printf_format);
ffc0a404: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
(void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist);
ffc0a408: 3c 60 20 00 lis r3,8192 <== NOT EXECUTED
...
)
{
va_list arglist;
va_start(arglist, printf_format);
ffc0a40c: 38 01 00 18 addi r0,r1,24 <== NOT EXECUTED
ffc0a410: 90 01 00 10 stw r0,16(r1) <== NOT EXECUTED
(void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist);
ffc0a414: 4b ff fd 8d bl ffc0a1a0 <rtems_verror> <== NOT EXECUTED
va_end(arglist);
}
ffc0a418: 80 01 00 7c lwz r0,124(r1) <== NOT EXECUTED
ffc0a41c: 38 21 00 78 addi r1,r1,120 <== NOT EXECUTED
ffc0a420: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0a424: 4e 80 00 20 blr <== NOT EXECUTED
ffc0f418 <rtems_pipe_initialize>:
/*
* Initialization of FIFO/pipe module.
*/
void rtems_pipe_initialize (void)
{
ffc0f418: 7c 08 02 a6 mflr r0
ffc0f41c: 94 21 ff f8 stwu r1,-8(r1)
if (!rtems_pipe_configured)
ffc0f420: 3d 20 00 00 lis r9,0
/*
* Initialization of FIFO/pipe module.
*/
void rtems_pipe_initialize (void)
{
ffc0f424: 90 01 00 0c stw r0,12(r1)
if (!rtems_pipe_configured)
ffc0f428: 88 09 27 04 lbz r0,9988(r9)
ffc0f42c: 2f 80 00 00 cmpwi cr7,r0,0
ffc0f430: 41 9e 00 48 beq- cr7,ffc0f478 <rtems_pipe_initialize+0x60>
return;
if (rtems_pipe_semaphore)
ffc0f434: 3c e0 00 00 lis r7,0 <== NOT EXECUTED
ffc0f438: 80 07 29 94 lwz r0,10644(r7) <== NOT EXECUTED
ffc0f43c: 38 e7 29 94 addi r7,r7,10644 <== NOT EXECUTED
ffc0f440: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0f444: 40 be 00 34 bne+ cr7,ffc0f478 <rtems_pipe_initialize+0x60><== NOT EXECUTED
return;
rtems_status_code sc;
sc = rtems_semaphore_create(
ffc0f448: 3c 60 50 49 lis r3,20553 <== NOT EXECUTED
ffc0f44c: 60 63 50 45 ori r3,r3,20549 <== NOT EXECUTED
ffc0f450: 38 80 00 01 li r4,1 <== NOT EXECUTED
ffc0f454: 38 a0 00 54 li r5,84 <== NOT EXECUTED
ffc0f458: 38 c0 00 00 li r6,0 <== NOT EXECUTED
ffc0f45c: 4b ff 86 81 bl ffc07adc <rtems_semaphore_create> <== 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)
ffc0f460: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc0f464: 41 be 00 08 beq+ cr7,ffc0f46c <rtems_pipe_initialize+0x54><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
ffc0f468: 4b ff 91 71 bl ffc085d8 <rtems_fatal_error_occurred> <== NOT EXECUTED
rtems_interval now;
now = rtems_clock_get_ticks_since_boot();
ffc0f46c: 4b ff 81 fd bl ffc07668 <rtems_clock_get_ticks_since_boot><== NOT EXECUTED
rtems_pipe_no = now;
ffc0f470: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc0f474: b0 69 27 f8 sth r3,10232(r9) <== NOT EXECUTED
}
ffc0f478: 80 01 00 0c lwz r0,12(r1)
ffc0f47c: 38 21 00 08 addi r1,r1,8
ffc0f480: 7c 08 03 a6 mtlr r0
ffc0f484: 4e 80 00 20 blr
ffc41aa0 <rtems_rate_monotonic_period>:
rtems_status_code rtems_rate_monotonic_period(
rtems_id id,
rtems_interval length
)
{
ffc41aa0: 94 21 ff d8 stwu r1,-40(r1)
ffc41aa4: 7c 08 02 a6 mflr r0
ffc41aa8: 93 c1 00 20 stw r30,32(r1)
ffc41aac: 7c 7e 1b 78 mr r30,r3
ffc41ab0: 3c 60 00 00 lis r3,0
ffc41ab4: 93 e1 00 24 stw r31,36(r1)
ffc41ab8: 38 63 6f ec addi r3,r3,28652
ffc41abc: 7c 9f 23 78 mr r31,r4
ffc41ac0: 38 a1 00 08 addi r5,r1,8
ffc41ac4: 90 01 00 2c stw r0,44(r1)
ffc41ac8: 7f c4 f3 78 mr r4,r30
ffc41acc: 93 a1 00 1c stw r29,28(r1)
ffc41ad0: 93 81 00 18 stw r28,24(r1)
ffc41ad4: 4b fc c1 9d bl ffc0dc70 <_Objects_Get>
ffc41ad8: 7c 7d 1b 78 mr r29,r3
rtems_rate_monotonic_period_states local_state;
ISR_Level level;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
ffc41adc: 80 01 00 08 lwz r0,8(r1)
ffc41ae0: 2f 80 00 00 cmpwi cr7,r0,0
ffc41ae4: 40 9e 01 70 bne- cr7,ffc41c54 <rtems_rate_monotonic_period+0x1b4>
case OBJECTS_LOCAL:
if ( !_Thread_Is_executing( the_period->owner ) ) {
ffc41ae8: 3d 20 00 00 lis r9,0
ffc41aec: 80 09 36 58 lwz r0,13912(r9)
ffc41af0: 81 23 00 40 lwz r9,64(r3)
ffc41af4: 7f 89 00 00 cmpw cr7,r9,r0
ffc41af8: 41 9e 00 10 beq- cr7,ffc41b08 <rtems_rate_monotonic_period+0x68>
_Thread_Enable_dispatch();
ffc41afc: 4b fc cd b1 bl ffc0e8ac <_Thread_Enable_dispatch>
ffc41b00: 3b c0 00 17 li r30,23
return RTEMS_NOT_OWNER_OF_RESOURCE;
ffc41b04: 48 00 01 54 b ffc41c58 <rtems_rate_monotonic_period+0x1b8>
}
if ( length == RTEMS_PERIOD_STATUS ) {
ffc41b08: 2f 9f 00 00 cmpwi cr7,r31,0
ffc41b0c: 40 be 00 28 bne+ cr7,ffc41b34 <rtems_rate_monotonic_period+0x94>
switch ( the_period->state ) {
ffc41b10: 80 03 00 38 lwz r0,56(r3)
ffc41b14: 3b c0 00 00 li r30,0
ffc41b18: 2b 80 00 04 cmplwi cr7,r0,4
ffc41b1c: 41 9d 01 30 bgt- cr7,ffc41c4c <rtems_rate_monotonic_period+0x1ac>
ffc41b20: 3d 20 ff c7 lis r9,-57
ffc41b24: 54 00 10 3a rlwinm r0,r0,2,0,29
ffc41b28: 39 29 bd a4 addi r9,r9,-16988
ffc41b2c: 7f c9 00 2e lwzx r30,r9,r0
ffc41b30: 48 00 01 1c b ffc41c4c <rtems_rate_monotonic_period+0x1ac>
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc41b34: 7f 80 00 a6 mfmsr r28
ffc41b38: 7c 10 42 a6 mfsprg r0,0
ffc41b3c: 7f 80 00 78 andc r0,r28,r0
ffc41b40: 7c 00 01 24 mtmsr r0
_Thread_Enable_dispatch();
return( return_value );
}
_ISR_Disable( level );
switch ( the_period->state ) {
ffc41b44: 80 03 00 38 lwz r0,56(r3)
ffc41b48: 2f 80 00 02 cmpwi cr7,r0,2
ffc41b4c: 41 9e 00 60 beq- cr7,ffc41bac <rtems_rate_monotonic_period+0x10c>
ffc41b50: 2f 80 00 04 cmpwi cr7,r0,4
ffc41b54: 41 9e 00 cc beq- cr7,ffc41c20 <rtems_rate_monotonic_period+0x180>
ffc41b58: 2f 80 00 00 cmpwi cr7,r0,0
ffc41b5c: 40 9e 00 f8 bne- cr7,ffc41c54 <rtems_rate_monotonic_period+0x1b4>
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc41b60: 7f 80 01 24 mtmsr r28
_ISR_Enable( level );
/*
* Baseline statistics information for the beginning of a period.
*/
_Rate_monotonic_Initiate_statistics( the_period );
ffc41b64: 4b ff fc 99 bl ffc417fc <_Rate_monotonic_Initiate_statistics>
the_period->state = RATE_MONOTONIC_ACTIVE;
ffc41b68: 39 20 00 02 li r9,2
ffc41b6c: 91 3d 00 38 stw r9,56(r29)
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
ffc41b70: 3d 20 ff c4 lis r9,-60
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
ffc41b74: 38 00 00 00 li r0,0
the_watchdog->routine = routine;
ffc41b78: 39 29 1c 7c addi r9,r9,7292
the_watchdog->id = id;
ffc41b7c: 93 dd 00 30 stw r30,48(r29)
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
ffc41b80: 3c 60 00 00 lis r3,0
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
ffc41b84: 91 3d 00 2c stw r9,44(r29)
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
ffc41b88: 38 63 65 e8 addi r3,r3,26088
ffc41b8c: 38 9d 00 10 addi r4,r29,16
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
the_watchdog->id = id;
the_watchdog->user_data = user_data;
ffc41b90: 90 1d 00 34 stw r0,52(r29)
);
the_period->next_length = length;
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
ffc41b94: 3b c0 00 00 li r30,0
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
ffc41b98: 93 fd 00 1c stw r31,28(r29)
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
ffc41b9c: 90 1d 00 18 stw r0,24(r29)
_Rate_monotonic_Timeout,
id,
NULL
);
the_period->next_length = length;
ffc41ba0: 93 fd 00 3c stw r31,60(r29)
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
ffc41ba4: 4b fc e2 81 bl ffc0fe24 <_Watchdog_Insert>
ffc41ba8: 48 00 00 a4 b ffc41c4c <rtems_rate_monotonic_period+0x1ac>
case RATE_MONOTONIC_ACTIVE:
/*
* Update statistics from the concluding period.
*/
_Rate_monotonic_Update_statistics( the_period );
ffc41bac: 4b ff fd d9 bl ffc41984 <_Rate_monotonic_Update_statistics>
/*
* 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;
ffc41bb0: 38 00 00 01 li r0,1
the_period->next_length = length;
ffc41bb4: 93 fd 00 3c stw r31,60(r29)
/*
* 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;
ffc41bb8: 90 1d 00 38 stw r0,56(r29)
ffc41bbc: 7f 80 01 24 mtmsr r28
the_period->next_length = length;
_ISR_Enable( level );
_Thread_Executing->Wait.id = the_period->Object.id;
ffc41bc0: 3d 20 00 00 lis r9,0
ffc41bc4: 80 1d 00 08 lwz r0,8(r29)
ffc41bc8: 81 29 36 58 lwz r9,13912(r9)
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
ffc41bcc: 38 80 40 00 li r4,16384
the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING;
the_period->next_length = length;
_ISR_Enable( level );
_Thread_Executing->Wait.id = the_period->Object.id;
ffc41bd0: 90 09 00 20 stw r0,32(r9)
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
ffc41bd4: 7d 23 4b 78 mr r3,r9
ffc41bd8: 4b fc d7 6d bl ffc0f344 <_Thread_Set_state>
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc41bdc: 7d 20 00 a6 mfmsr r9
ffc41be0: 7c 10 42 a6 mfsprg r0,0
ffc41be4: 7d 20 00 78 andc r0,r9,r0
ffc41be8: 7c 00 01 24 mtmsr r0
* Did the watchdog timer expire while we were actually blocking
* on it?
*/
_ISR_Disable( level );
local_state = the_period->state;
the_period->state = RATE_MONOTONIC_ACTIVE;
ffc41bec: 39 60 00 02 li r11,2
/*
* Did the watchdog timer expire while we were actually blocking
* on it?
*/
_ISR_Disable( level );
local_state = the_period->state;
ffc41bf0: 80 1d 00 38 lwz r0,56(r29)
the_period->state = RATE_MONOTONIC_ACTIVE;
ffc41bf4: 91 7d 00 38 stw r11,56(r29)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc41bf8: 7d 20 01 24 mtmsr r9
/*
* 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 )
ffc41bfc: 2f 80 00 03 cmpwi cr7,r0,3
ffc41c00: 40 be 00 14 bne+ cr7,ffc41c14 <rtems_rate_monotonic_period+0x174>
_Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
ffc41c04: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc41c08: 80 69 36 58 lwz r3,13912(r9) <== NOT EXECUTED
ffc41c0c: 38 80 40 00 li r4,16384 <== NOT EXECUTED
ffc41c10: 4b fc c7 b9 bl ffc0e3c8 <_Thread_Clear_state> <== NOT EXECUTED
_Thread_Enable_dispatch();
ffc41c14: 4b fc cc 99 bl ffc0e8ac <_Thread_Enable_dispatch>
ffc41c18: 3b c0 00 00 li r30,0
return RTEMS_SUCCESSFUL;
ffc41c1c: 48 00 00 3c b ffc41c58 <rtems_rate_monotonic_period+0x1b8>
case RATE_MONOTONIC_EXPIRED:
/*
* Update statistics from the concluding period
*/
_Rate_monotonic_Update_statistics( the_period );
ffc41c20: 4b ff fd 65 bl ffc41984 <_Rate_monotonic_Update_statistics>
ffc41c24: 7f 80 01 24 mtmsr r28
_ISR_Enable( level );
the_period->state = RATE_MONOTONIC_ACTIVE;
ffc41c28: 38 00 00 02 li r0,2
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
ffc41c2c: 93 fd 00 1c stw r31,28(r29)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
ffc41c30: 3c 60 00 00 lis r3,0
ffc41c34: 90 1d 00 38 stw r0,56(r29)
ffc41c38: 38 63 65 e8 addi r3,r3,26088
ffc41c3c: 38 9d 00 10 addi r4,r29,16
the_period->next_length = length;
ffc41c40: 93 fd 00 3c stw r31,60(r29)
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
ffc41c44: 3b c0 00 06 li r30,6
ffc41c48: 4b fc e1 dd bl ffc0fe24 <_Watchdog_Insert>
ffc41c4c: 4b fc cc 61 bl ffc0e8ac <_Thread_Enable_dispatch>
return RTEMS_TIMEOUT;
ffc41c50: 48 00 00 08 b ffc41c58 <rtems_rate_monotonic_period+0x1b8>
ffc41c54: 3b c0 00 04 li r30,4
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
ffc41c58: 80 01 00 2c lwz r0,44(r1)
ffc41c5c: 7f c3 f3 78 mr r3,r30
ffc41c60: 83 81 00 18 lwz r28,24(r1)
ffc41c64: 7c 08 03 a6 mtlr r0
ffc41c68: 83 a1 00 1c lwz r29,28(r1)
ffc41c6c: 83 c1 00 20 lwz r30,32(r1)
ffc41c70: 83 e1 00 24 lwz r31,36(r1)
ffc41c74: 38 21 00 28 addi r1,r1,40
ffc41c78: 4e 80 00 20 blr
ffc052f0 <rtems_stack_checker_is_blown>:
/*
* Check if blown
*/
bool rtems_stack_checker_is_blown( void )
{
ffc052f0: 94 21 ff f0 stwu r1,-16(r1)
ffc052f4: 7c 08 02 a6 mflr r0
Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack;
ffc052f8: 3d 20 00 00 lis r9,0
/*
* Check if blown
*/
bool rtems_stack_checker_is_blown( void )
{
ffc052fc: 90 01 00 14 stw r0,20(r1)
Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack;
ffc05300: 81 29 36 58 lwz r9,13912(r9)
/*
* Check if blown
*/
bool rtems_stack_checker_is_blown( void )
{
ffc05304: 93 e1 00 0c stw r31,12(r1)
ffc05308: 7c 3f 0b 78 mr r31,r1
)
{
#if defined(__GNUC__)
void *sp = __builtin_frame_address(0);
if ( sp < the_stack->area ) {
ffc0530c: 80 69 00 d0 lwz r3,208(r9)
/*
* Check if blown
*/
bool rtems_stack_checker_is_blown( void )
{
ffc05310: 93 c1 00 08 stw r30,8(r1)
)
{
#if defined(__GNUC__)
void *sp = __builtin_frame_address(0);
if ( sp < the_stack->area ) {
ffc05314: 3b c0 00 00 li r30,0
ffc05318: 7f 9f 18 40 cmplw cr7,r31,r3
ffc0531c: 41 9c 00 18 blt- cr7,ffc05334 <rtems_stack_checker_is_blown+0x44>
}
/*
* Check if blown
*/
bool rtems_stack_checker_is_blown( void )
ffc05320: 83 c9 00 cc lwz r30,204(r9)
ffc05324: 7f c3 f2 14 add r30,r3,r30
ffc05328: 7f df f0 10 subfc r30,r31,r30
ffc0532c: 3b c0 00 00 li r30,0
ffc05330: 7f de f1 14 adde r30,r30,r30
/*
* The stack checker must be initialized before the pattern is there
* to check.
*/
if ( Stack_check_Initialized ) {
ffc05334: 3d 20 00 00 lis r9,0
ffc05338: 80 09 37 68 lwz r0,14184(r9)
ffc0533c: 38 80 00 01 li r4,1
ffc05340: 2f 80 00 00 cmpwi cr7,r0,0
ffc05344: 41 9e 00 20 beq- cr7,ffc05364 <rtems_stack_checker_is_blown+0x74>
pattern_ok = (!memcmp(
ffc05348: 3c 80 00 00 lis r4,0
ffc0534c: 38 84 63 10 addi r4,r4,25360
ffc05350: 38 63 00 08 addi r3,r3,8
ffc05354: 38 a0 00 80 li r5,128
ffc05358: 48 04 5d d9 bl ffc4b130 <memcmp>
ffc0535c: 7c 64 00 34 cntlzw r4,r3
ffc05360: 54 84 d9 7e rlwinm r4,r4,27,5,31
}
/*
* The Stack Pointer and the Pattern Area are OK so return false.
*/
if ( sp_ok && pattern_ok )
ffc05364: 2f 9e 00 00 cmpwi cr7,r30,0
ffc05368: 41 9e 00 10 beq- cr7,ffc05378 <rtems_stack_checker_is_blown+0x88>
ffc0536c: 2f 84 00 00 cmpwi cr7,r4,0
ffc05370: 38 60 00 00 li r3,0
ffc05374: 40 9e 00 14 bne- cr7,ffc05388 <rtems_stack_checker_is_blown+0x98>
return false;
/*
* Let's report as much as we can.
*/
Stack_check_report_blown_task( _Thread_Executing, pattern_ok );
ffc05378: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc0537c: 80 69 36 58 lwz r3,13912(r9) <== NOT EXECUTED
ffc05380: 4b ff fe 95 bl ffc05214 <Stack_check_report_blown_task><== NOT EXECUTED
ffc05384: 38 60 00 01 li r3,1 <== NOT EXECUTED
return true;
}
ffc05388: 39 7f 00 10 addi r11,r31,16
ffc0538c: 80 0b 00 04 lwz r0,4(r11)
ffc05390: 83 cb ff f8 lwz r30,-8(r11)
ffc05394: 7c 08 03 a6 mtlr r0
ffc05398: 83 eb ff fc lwz r31,-4(r11)
ffc0539c: 7d 61 5b 78 mr r1,r11
ffc053a0: 4e 80 00 20 blr
ffc05204 <rtems_stack_checker_report_usage>:
void rtems_stack_checker_report_usage( void )
{
rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin );
ffc05204: 3c 80 ff c1 lis r4,-63 <== NOT EXECUTED
ffc05208: 38 84 88 44 addi r4,r4,-30652 <== NOT EXECUTED
ffc0520c: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc05210: 4b ff ff 5c b ffc0516c <rtems_stack_checker_report_usage_with_plugin><== NOT EXECUTED
ffc0516c <rtems_stack_checker_report_usage_with_plugin>:
void rtems_stack_checker_report_usage_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
ffc0516c: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED
ffc05170: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc05174: 93 e1 00 14 stw r31,20(r1) <== NOT EXECUTED
print_context = context;
ffc05178: 3f e0 00 00 lis r31,0 <== NOT EXECUTED
ffc0517c: 3b ff 37 68 addi r31,r31,14184 <== NOT EXECUTED
void rtems_stack_checker_report_usage_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
ffc05180: 93 c1 00 10 stw r30,16(r1) <== NOT EXECUTED
ffc05184: 7c 9e 23 78 mr r30,r4 <== NOT EXECUTED
print_context = context;
print_handler = print;
(*print)( context, "Stack usage by thread\n");
ffc05188: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED
ffc0518c: 7f c9 03 a6 mtctr r30 <== NOT EXECUTED
void rtems_stack_checker_report_usage_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
ffc05190: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED
print_context = context;
print_handler = print;
(*print)( context, "Stack usage by thread\n");
ffc05194: 38 84 41 0c addi r4,r4,16652 <== NOT EXECUTED
void rtems_stack_checker_report_usage_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
ffc05198: 93 a1 00 0c stw r29,12(r1) <== NOT EXECUTED
ffc0519c: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED
print_context = context;
print_handler = print;
ffc051a0: 93 df 00 04 stw r30,4(r31) <== NOT EXECUTED
void rtems_stack_checker_report_usage_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
print_context = context;
ffc051a4: 90 7f 00 08 stw r3,8(r31) <== NOT EXECUTED
print_handler = print;
(*print)( context, "Stack usage by thread\n");
ffc051a8: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc051ac: 4e 80 04 21 bctrl <== NOT EXECUTED
(*print)( context,
ffc051b0: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED
ffc051b4: 7f c9 03 a6 mtctr r30 <== NOT EXECUTED
ffc051b8: 38 84 41 23 addi r4,r4,16675 <== NOT EXECUTED
ffc051bc: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc051c0: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc051c4: 4e 80 04 21 bctrl <== 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 );
ffc051c8: 3c 60 ff c0 lis r3,-64 <== NOT EXECUTED
ffc051cc: 38 63 4f a8 addi r3,r3,20392 <== NOT EXECUTED
ffc051d0: 48 00 83 09 bl ffc0d4d8 <rtems_iterate_over_all_threads><== NOT EXECUTED
/* dump interrupt stack info if any */
Stack_check_Dump_threads_usage((Thread_Control *) -1);
ffc051d4: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc051d8: 4b ff fd d1 bl ffc04fa8 <Stack_check_Dump_threads_usage><== NOT EXECUTED
print_context = NULL;
ffc051dc: 38 00 00 00 li r0,0 <== NOT EXECUTED
print_handler = NULL;
ffc051e0: 90 1f 00 04 stw r0,4(r31) <== NOT EXECUTED
rtems_iterate_over_all_threads( Stack_check_Dump_threads_usage );
/* dump interrupt stack info if any */
Stack_check_Dump_threads_usage((Thread_Control *) -1);
print_context = NULL;
ffc051e4: 90 1f 00 08 stw r0,8(r31) <== NOT EXECUTED
print_handler = NULL;
}
ffc051e8: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED
ffc051ec: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED
ffc051f0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc051f4: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED
ffc051f8: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED
ffc051fc: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED
ffc05200: 4e 80 00 20 blr <== NOT EXECUTED
ffc1f9b4 <rtems_string_to_pointer>:
#if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER)
,
int base
#endif
)
{
ffc1f9b4: 94 21 ff d8 stwu r1,-40(r1)
ffc1f9b8: 7c 08 02 a6 mflr r0
ffc1f9bc: 93 e1 00 24 stw r31,36(r1)
STRING_TO_INPUT_TYPE result;
char *end;
if ( !n )
ffc1f9c0: 7c 9f 23 79 mr. r31,r4
#if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER)
,
int base
#endif
)
{
ffc1f9c4: 93 a1 00 1c stw r29,28(r1)
ffc1f9c8: 7c bd 2b 78 mr r29,r5
ffc1f9cc: 93 c1 00 20 stw r30,32(r1)
ffc1f9d0: 7c 7e 1b 78 mr r30,r3
STRING_TO_INPUT_TYPE result;
char *end;
if ( !n )
ffc1f9d4: 38 60 00 09 li r3,9
#if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER)
,
int base
#endif
)
{
ffc1f9d8: 90 01 00 2c stw r0,44(r1)
ffc1f9dc: 93 81 00 18 stw r28,24(r1)
STRING_TO_INPUT_TYPE result;
char *end;
if ( !n )
ffc1f9e0: 41 82 00 6c beq- ffc1fa4c <rtems_string_to_pointer+0x98>
return RTEMS_INVALID_ADDRESS;
errno = 0;
ffc1f9e4: 48 02 7c 8d bl ffc47670 <__errno>
ffc1f9e8: 38 00 00 00 li r0,0
ffc1f9ec: 90 03 00 00 stw r0,0(r3)
*n = 0;
#ifdef STRING_TO_FLOAT
result = STRING_TO_METHOD( s, &end );
#elif defined(STRING_TO_POINTER)
result = STRING_TO_METHOD( s, &end, 16 );
ffc1f9f0: 38 81 00 08 addi r4,r1,8
ffc1f9f4: 7f c3 f3 78 mr r3,r30
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
*n = 0;
ffc1f9f8: 90 1f 00 00 stw r0,0(r31)
#ifdef STRING_TO_FLOAT
result = STRING_TO_METHOD( s, &end );
#elif defined(STRING_TO_POINTER)
result = STRING_TO_METHOD( s, &end, 16 );
ffc1f9fc: 38 a0 00 10 li r5,16
ffc1fa00: 48 03 0f dd bl ffc509dc <strtoul>
#elif defined(STRING_TO_INTEGER)
result = STRING_TO_METHOD( s, &end, base );
#endif
/* If the user wants the end pointer back, then return it. */
if ( endptr )
ffc1fa04: 2f 9d 00 00 cmpwi cr7,r29,0
*n = 0;
#ifdef STRING_TO_FLOAT
result = STRING_TO_METHOD( s, &end );
#elif defined(STRING_TO_POINTER)
result = STRING_TO_METHOD( s, &end, 16 );
ffc1fa08: 7c 7c 1b 78 mr r28,r3
#elif defined(STRING_TO_INTEGER)
result = STRING_TO_METHOD( s, &end, base );
#endif
/* If the user wants the end pointer back, then return it. */
if ( endptr )
ffc1fa0c: 41 9e 00 0c beq- cr7,ffc1fa18 <rtems_string_to_pointer+0x64>
*endptr = end;
ffc1fa10: 80 01 00 08 lwz r0,8(r1)
ffc1fa14: 90 1d 00 00 stw r0,0(r29)
/* nothing was converted */
if ( end == s )
ffc1fa18: 80 01 00 08 lwz r0,8(r1)
ffc1fa1c: 38 60 00 0b li r3,11
ffc1fa20: 7f 80 f0 00 cmpw cr7,r0,r30
ffc1fa24: 41 9e 00 28 beq- cr7,ffc1fa4c <rtems_string_to_pointer+0x98>
return RTEMS_INVALID_NUMBER;
#endif
#ifdef STRING_TO_MAX
/* there was an overflow */
if ( (result == STRING_TO_MAX) && (errno == ERANGE))
ffc1fa28: 2f 9c ff ff cmpwi cr7,r28,-1
ffc1fa2c: 40 be 00 18 bne+ cr7,ffc1fa44 <rtems_string_to_pointer+0x90>
ffc1fa30: 48 02 7c 41 bl ffc47670 <__errno> <== NOT EXECUTED
ffc1fa34: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED
ffc1fa38: 38 60 00 0a li r3,10 <== NOT EXECUTED
ffc1fa3c: 2f 80 00 22 cmpwi cr7,r0,34 <== NOT EXECUTED
ffc1fa40: 41 9e 00 0c beq- cr7,ffc1fa4c <rtems_string_to_pointer+0x98><== NOT EXECUTED
if ( (result == STRING_TO_MIN) && (errno == ERANGE))
return RTEMS_INVALID_NUMBER;
#endif
#if defined(STRING_TO_POINTER)
*n = (STRING_TO_TYPE) (uintptr_t)result;
ffc1fa44: 93 9f 00 00 stw r28,0(r31)
ffc1fa48: 38 60 00 00 li r3,0
#else
*n = (STRING_TO_TYPE) result;
#endif
return RTEMS_SUCCESSFUL;
}
ffc1fa4c: 80 01 00 2c lwz r0,44(r1)
ffc1fa50: 83 81 00 18 lwz r28,24(r1)
ffc1fa54: 7c 08 03 a6 mtlr r0
ffc1fa58: 83 a1 00 1c lwz r29,28(r1)
ffc1fa5c: 83 c1 00 20 lwz r30,32(r1)
ffc1fa60: 83 e1 00 24 lwz r31,36(r1)
ffc1fa64: 38 21 00 28 addi r1,r1,40
ffc1fa68: 4e 80 00 20 blr
ffc06d14 <rtems_termios_baud_to_index>:
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc06d14: 2f 83 00 09 cmpwi cr7,r3,9
case B110: baud_index = 3; break;
case B134: baud_index = 4; break;
case B150: baud_index = 5; break;
case B200: baud_index = 6; break;
case B300: baud_index = 7; break;
case B600: baud_index = 8; break;
ffc06d18: 38 00 00 09 li r0,9
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc06d1c: 41 9e 01 04 beq- cr7,ffc06e20 <rtems_termios_baud_to_index+0x10c>
ffc06d20: 41 9d 00 70 bgt- cr7,ffc06d90 <rtems_termios_baud_to_index+0x7c>
ffc06d24: 2f 83 00 04 cmpwi cr7,r3,4
case B0: baud_index = 0; break;
case B50: baud_index = 1; break;
case B75: baud_index = 2; break;
case B110: baud_index = 3; break;
ffc06d28: 38 00 00 04 li r0,4
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc06d2c: 41 9e 00 f4 beq- cr7,ffc06e20 <rtems_termios_baud_to_index+0x10c>
ffc06d30: 41 9d 00 38 bgt- cr7,ffc06d68 <rtems_termios_baud_to_index+0x54>
ffc06d34: 2f 83 00 01 cmpwi cr7,r3,1
ffc06d38: 38 00 00 01 li r0,1
ffc06d3c: 41 9e 00 e4 beq- cr7,ffc06e20 <rtems_termios_baud_to_index+0x10c>
ffc06d40: 41 bd 00 10 bgt+ cr7,ffc06d50 <rtems_termios_baud_to_index+0x3c>
ffc06d44: 2f 83 00 00 cmpwi cr7,r3,0
ffc06d48: 38 00 00 00 li r0,0
ffc06d4c: 48 00 00 b8 b ffc06e04 <rtems_termios_baud_to_index+0xf0>
ffc06d50: 2f 83 00 02 cmpwi cr7,r3,2 <== NOT EXECUTED
ffc06d54: 38 00 00 02 li r0,2 <== NOT EXECUTED
ffc06d58: 41 9e 00 c8 beq- cr7,ffc06e20 <rtems_termios_baud_to_index+0x10c><== NOT EXECUTED
ffc06d5c: 2f 83 00 03 cmpwi cr7,r3,3 <== NOT EXECUTED
case B0: baud_index = 0; break;
case B50: baud_index = 1; break;
case B75: baud_index = 2; break;
ffc06d60: 38 00 00 03 li r0,3 <== NOT EXECUTED
ffc06d64: 48 00 00 a0 b ffc06e04 <rtems_termios_baud_to_index+0xf0><== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc06d68: 2f 83 00 06 cmpwi cr7,r3,6 <== NOT EXECUTED
case B0: baud_index = 0; break;
case B50: baud_index = 1; break;
case B75: baud_index = 2; break;
case B110: baud_index = 3; break;
case B134: baud_index = 4; break;
case B150: baud_index = 5; break;
ffc06d6c: 38 00 00 06 li r0,6 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc06d70: 41 9e 00 b0 beq- cr7,ffc06e20 <rtems_termios_baud_to_index+0x10c><== NOT EXECUTED
ffc06d74: 41 9c 00 98 blt- cr7,ffc06e0c <rtems_termios_baud_to_index+0xf8><== NOT EXECUTED
ffc06d78: 2f 83 00 07 cmpwi cr7,r3,7 <== NOT EXECUTED
case B50: baud_index = 1; break;
case B75: baud_index = 2; break;
case B110: baud_index = 3; break;
case B134: baud_index = 4; break;
case B150: baud_index = 5; break;
case B200: baud_index = 6; break;
ffc06d7c: 38 00 00 07 li r0,7 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc06d80: 41 9e 00 a0 beq- cr7,ffc06e20 <rtems_termios_baud_to_index+0x10c><== NOT EXECUTED
ffc06d84: 2f 83 00 08 cmpwi cr7,r3,8 <== NOT EXECUTED
case B75: baud_index = 2; break;
case B110: baud_index = 3; break;
case B134: baud_index = 4; break;
case B150: baud_index = 5; break;
case B200: baud_index = 6; break;
case B300: baud_index = 7; break;
ffc06d88: 38 00 00 08 li r0,8 <== NOT EXECUTED
ffc06d8c: 48 00 00 78 b ffc06e04 <rtems_termios_baud_to_index+0xf0><== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc06d90: 2f 83 00 0e cmpwi cr7,r3,14 <== NOT EXECUTED
case B600: baud_index = 8; break;
case B1200: baud_index = 9; break;
case B1800: baud_index = 10; break;
case B2400: baud_index = 11; break;
case B4800: baud_index = 12; break;
case B9600: baud_index = 13; break;
ffc06d94: 38 00 00 0e li r0,14 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc06d98: 41 9e 00 88 beq- cr7,ffc06e20 <rtems_termios_baud_to_index+0x10c><== NOT EXECUTED
ffc06d9c: 41 9d 00 2c bgt- cr7,ffc06dc8 <rtems_termios_baud_to_index+0xb4><== NOT EXECUTED
ffc06da0: 2f 83 00 0b cmpwi cr7,r3,11 <== NOT EXECUTED
case B150: baud_index = 5; break;
case B200: baud_index = 6; break;
case B300: baud_index = 7; break;
case B600: baud_index = 8; break;
case B1200: baud_index = 9; break;
case B1800: baud_index = 10; break;
ffc06da4: 38 00 00 0b li r0,11 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc06da8: 41 9e 00 78 beq- cr7,ffc06e20 <rtems_termios_baud_to_index+0x10c><== NOT EXECUTED
ffc06dac: 41 9c 00 68 blt- cr7,ffc06e14 <rtems_termios_baud_to_index+0x100><== NOT EXECUTED
ffc06db0: 2f 83 00 0c cmpwi cr7,r3,12 <== NOT EXECUTED
case B200: baud_index = 6; break;
case B300: baud_index = 7; break;
case B600: baud_index = 8; break;
case B1200: baud_index = 9; break;
case B1800: baud_index = 10; break;
case B2400: baud_index = 11; break;
ffc06db4: 38 00 00 0c li r0,12 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc06db8: 41 9e 00 68 beq- cr7,ffc06e20 <rtems_termios_baud_to_index+0x10c><== NOT EXECUTED
ffc06dbc: 2f 83 00 0d cmpwi cr7,r3,13 <== NOT EXECUTED
case B300: baud_index = 7; break;
case B600: baud_index = 8; break;
case B1200: baud_index = 9; break;
case B1800: baud_index = 10; break;
case B2400: baud_index = 11; break;
case B4800: baud_index = 12; break;
ffc06dc0: 38 00 00 0d li r0,13 <== NOT EXECUTED
ffc06dc4: 48 00 00 40 b ffc06e04 <rtems_termios_baud_to_index+0xf0><== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc06dc8: 2f 83 10 02 cmpwi cr7,r3,4098 <== NOT EXECUTED
case B2400: baud_index = 11; break;
case B4800: baud_index = 12; break;
case B9600: baud_index = 13; break;
case B19200: baud_index = 14; break;
case B38400: baud_index = 15; break;
case B57600: baud_index = 16; break;
ffc06dcc: 38 00 00 11 li r0,17 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc06dd0: 41 9e 00 50 beq- cr7,ffc06e20 <rtems_termios_baud_to_index+0x10c><== NOT EXECUTED
ffc06dd4: 41 9d 00 1c bgt- cr7,ffc06df0 <rtems_termios_baud_to_index+0xdc><== NOT EXECUTED
ffc06dd8: 2f 83 00 0f cmpwi cr7,r3,15 <== NOT EXECUTED
case B1200: baud_index = 9; break;
case B1800: baud_index = 10; break;
case B2400: baud_index = 11; break;
case B4800: baud_index = 12; break;
case B9600: baud_index = 13; break;
case B19200: baud_index = 14; break;
ffc06ddc: 38 00 00 0f li r0,15 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc06de0: 41 9e 00 40 beq- cr7,ffc06e20 <rtems_termios_baud_to_index+0x10c><== NOT EXECUTED
ffc06de4: 2f 83 10 01 cmpwi cr7,r3,4097 <== NOT EXECUTED
case B1800: baud_index = 10; break;
case B2400: baud_index = 11; break;
case B4800: baud_index = 12; break;
case B9600: baud_index = 13; break;
case B19200: baud_index = 14; break;
case B38400: baud_index = 15; break;
ffc06de8: 38 00 00 10 li r0,16 <== NOT EXECUTED
ffc06dec: 48 00 00 18 b ffc06e04 <rtems_termios_baud_to_index+0xf0><== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc06df0: 2f 83 10 03 cmpwi cr7,r3,4099 <== NOT EXECUTED
case B4800: baud_index = 12; break;
case B9600: baud_index = 13; break;
case B19200: baud_index = 14; break;
case B38400: baud_index = 15; break;
case B57600: baud_index = 16; break;
case B115200: baud_index = 17; break;
ffc06df4: 38 00 00 12 li r0,18 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc06df8: 41 9e 00 28 beq- cr7,ffc06e20 <rtems_termios_baud_to_index+0x10c><== NOT EXECUTED
ffc06dfc: 2f 83 10 04 cmpwi cr7,r3,4100 <== NOT EXECUTED
case B9600: baud_index = 13; break;
case B19200: baud_index = 14; break;
case B38400: baud_index = 15; break;
case B57600: baud_index = 16; break;
case B115200: baud_index = 17; break;
case B230400: baud_index = 18; break;
ffc06e00: 38 00 00 13 li r0,19 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc06e04: 40 be 00 18 bne+ cr7,ffc06e1c <rtems_termios_baud_to_index+0x108>
ffc06e08: 48 00 00 18 b ffc06e20 <rtems_termios_baud_to_index+0x10c><== NOT EXECUTED
case B0: baud_index = 0; break;
case B50: baud_index = 1; break;
case B75: baud_index = 2; break;
case B110: baud_index = 3; break;
case B134: baud_index = 4; break;
ffc06e0c: 38 00 00 05 li r0,5 <== NOT EXECUTED
case B150: baud_index = 5; break;
ffc06e10: 48 00 00 10 b ffc06e20 <rtems_termios_baud_to_index+0x10c><== NOT EXECUTED
case B200: baud_index = 6; break;
case B300: baud_index = 7; break;
case B600: baud_index = 8; break;
case B1200: baud_index = 9; break;
ffc06e14: 38 00 00 0a li r0,10 <== NOT EXECUTED
case B1800: baud_index = 10; break;
ffc06e18: 48 00 00 08 b ffc06e20 <rtems_termios_baud_to_index+0x10c><== NOT EXECUTED
case B19200: baud_index = 14; break;
case B38400: baud_index = 15; break;
case B57600: baud_index = 16; break;
case B115200: baud_index = 17; break;
case B230400: baud_index = 18; break;
case B460800: baud_index = 19; break;
ffc06e1c: 38 00 ff ff li r0,-1
default: baud_index = -1; break;
}
return baud_index;
}
ffc06e20: 7c 03 03 78 mr r3,r0
ffc06e24: 4e 80 00 20 blr
ffc052f4 <rtems_termios_bufsize>:
int cbufsize,
int raw_input,
int raw_output
)
{
rtems_termios_cbufsize = cbufsize;
ffc052f4: 3d 60 00 00 lis r11,0 <== NOT EXECUTED
ffc052f8: 39 2b 21 68 addi r9,r11,8552 <== NOT EXECUTED
ffc052fc: 90 6b 21 68 stw r3,8552(r11) <== NOT EXECUTED
rtems_termios_raw_input_size = raw_input;
rtems_termios_raw_output_size = raw_output;
return RTEMS_SUCCESSFUL;
}
ffc05300: 38 60 00 00 li r3,0 <== NOT EXECUTED
int raw_output
)
{
rtems_termios_cbufsize = cbufsize;
rtems_termios_raw_input_size = raw_input;
rtems_termios_raw_output_size = raw_output;
ffc05304: 90 a9 00 08 stw r5,8(r9) <== NOT EXECUTED
int raw_input,
int raw_output
)
{
rtems_termios_cbufsize = cbufsize;
rtems_termios_raw_input_size = raw_input;
ffc05308: 90 89 00 04 stw r4,4(r9) <== NOT EXECUTED
rtems_termios_raw_output_size = raw_output;
return RTEMS_SUCCESSFUL;
}
ffc0530c: 4e 80 00 20 blr <== NOT EXECUTED
ffc06ae8 <rtems_termios_close>:
}
}
rtems_status_code
rtems_termios_close (void *arg)
{
ffc06ae8: 94 21 ff f0 stwu r1,-16(r1)
ffc06aec: 7c 08 02 a6 mflr r0
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);
ffc06af0: 3d 20 00 00 lis r9,0
}
}
rtems_status_code
rtems_termios_close (void *arg)
{
ffc06af4: 90 01 00 14 stw r0,20(r1)
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);
ffc06af8: 38 80 00 00 li r4,0
ffc06afc: 38 a0 00 00 li r5,0
}
}
rtems_status_code
rtems_termios_close (void *arg)
{
ffc06b00: 93 c1 00 08 stw r30,8(r1)
ffc06b04: 7c 7e 1b 78 mr r30,r3
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);
ffc06b08: 80 69 27 58 lwz r3,10072(r9)
rtems_status_code
rtems_termios_close (void *arg)
{
rtems_libio_open_close_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
ffc06b0c: 81 3e 00 00 lwz r9,0(r30)
}
}
rtems_status_code
rtems_termios_close (void *arg)
{
ffc06b10: 93 e1 00 0c stw r31,12(r1)
rtems_libio_open_close_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
ffc06b14: 83 e9 00 38 lwz r31,56(r9)
rtems_status_code sc;
sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc06b18: 48 00 12 95 bl ffc07dac <rtems_semaphore_obtain>
if (sc != RTEMS_SUCCESSFUL)
ffc06b1c: 2f 83 00 00 cmpwi cr7,r3,0
ffc06b20: 40 9e 00 9c bne- cr7,ffc06bbc <rtems_termios_close+0xd4>
rtems_fatal_error_occurred (sc);
if (--tty->refcount == 0) {
ffc06b24: 81 3f 00 08 lwz r9,8(r31)
ffc06b28: 38 09 ff ff addi r0,r9,-1
ffc06b2c: 2f 80 00 00 cmpwi cr7,r0,0
ffc06b30: 90 1f 00 08 stw r0,8(r31)
ffc06b34: 40 9e 01 5c bne- cr7,ffc06c90 <rtems_termios_close+0x1a8>
if (rtems_termios_linesw[tty->t_line].l_close != NULL) {
ffc06b38: 80 1f 00 cc lwz r0,204(r31)
ffc06b3c: 3d 20 00 00 lis r9,0
ffc06b40: 39 29 28 88 addi r9,r9,10376
ffc06b44: 54 00 28 34 rlwinm r0,r0,5,0,26
ffc06b48: 7d 29 02 14 add r9,r9,r0
ffc06b4c: 80 09 00 04 lwz r0,4(r9)
ffc06b50: 2f 80 00 00 cmpwi cr7,r0,0
ffc06b54: 41 9e 00 14 beq- cr7,ffc06b68 <rtems_termios_close+0x80>
/*
* call discipline-specific close
*/
sc = rtems_termios_linesw[tty->t_line].l_close(tty);
ffc06b58: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc06b5c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc06b60: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc06b64: 48 00 00 24 b ffc06b88 <rtems_termios_close+0xa0> <== NOT EXECUTED
}
else {
/*
* default: just flush output buffer
*/
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc06b68: 80 7f 00 18 lwz r3,24(r31)
ffc06b6c: 38 80 00 00 li r4,0
ffc06b70: 38 a0 00 00 li r5,0
ffc06b74: 48 00 12 39 bl ffc07dac <rtems_semaphore_obtain>
if (sc != RTEMS_SUCCESSFUL) {
ffc06b78: 2f 83 00 00 cmpwi cr7,r3,0
ffc06b7c: 40 9e 00 40 bne- cr7,ffc06bbc <rtems_termios_close+0xd4>
rtems_fatal_error_occurred (sc);
}
drainOutput (tty);
ffc06b80: 7f e3 fb 78 mr r3,r31
ffc06b84: 4b ff f6 f5 bl ffc06278 <drainOutput>
}
if (tty->device.outputUsesInterrupts
ffc06b88: 80 1f 00 b4 lwz r0,180(r31)
ffc06b8c: 2f 80 00 02 cmpwi cr7,r0,2
ffc06b90: 40 be 00 30 bne+ cr7,ffc06bc0 <rtems_termios_close+0xd8>
== TERMIOS_TASK_DRIVEN) {
/*
* send "terminate" to I/O tasks
*/
sc = rtems_event_send(
ffc06b94: 80 7f 00 c4 lwz r3,196(r31) <== NOT EXECUTED
ffc06b98: 38 80 00 01 li r4,1 <== NOT EXECUTED
ffc06b9c: 48 00 0c f1 bl ffc0788c <rtems_event_send> <== NOT EXECUTED
tty->rxTaskId,
TERMIOS_RX_TERMINATE_EVENT);
if (sc != RTEMS_SUCCESSFUL)
ffc06ba0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc06ba4: 40 9e 00 18 bne- cr7,ffc06bbc <rtems_termios_close+0xd4><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
sc = rtems_event_send(
ffc06ba8: 80 7f 00 c8 lwz r3,200(r31) <== NOT EXECUTED
ffc06bac: 38 80 00 01 li r4,1 <== NOT EXECUTED
ffc06bb0: 48 00 0c dd bl ffc0788c <rtems_event_send> <== NOT EXECUTED
tty->txTaskId,
TERMIOS_TX_TERMINATE_EVENT);
if (sc != RTEMS_SUCCESSFUL)
ffc06bb4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc06bb8: 41 be 00 08 beq+ cr7,ffc06bc0 <rtems_termios_close+0xd8><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
ffc06bbc: 48 00 1a 1d bl ffc085d8 <rtems_fatal_error_occurred> <== NOT EXECUTED
}
if (tty->device.lastClose)
ffc06bc0: 80 1f 00 9c lwz r0,156(r31)
ffc06bc4: 2f 80 00 00 cmpwi cr7,r0,0
ffc06bc8: 41 9e 00 18 beq- cr7,ffc06be0 <rtems_termios_close+0xf8>
(*tty->device.lastClose)(tty->major, tty->minor, arg);
ffc06bcc: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED
ffc06bd0: 80 7f 00 0c lwz r3,12(r31) <== NOT EXECUTED
ffc06bd4: 80 9f 00 10 lwz r4,16(r31) <== NOT EXECUTED
ffc06bd8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc06bdc: 4e 80 04 21 bctrl <== NOT EXECUTED
if (tty->forw == NULL) {
ffc06be0: 81 7f 00 00 lwz r11,0(r31)
ffc06be4: 81 3f 00 04 lwz r9,4(r31)
ffc06be8: 2f 8b 00 00 cmpwi cr7,r11,0
ffc06bec: 40 be 00 1c bne+ cr7,ffc06c08 <rtems_termios_close+0x120>
rtems_termios_ttyTail = tty->back;
if ( rtems_termios_ttyTail != NULL ) {
ffc06bf0: 2f 89 00 00 cmpwi cr7,r9,0
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;
ffc06bf4: 3d 40 00 00 lis r10,0
ffc06bf8: 91 2a 27 5c stw r9,10076(r10)
if ( rtems_termios_ttyTail != NULL ) {
ffc06bfc: 41 9e 00 10 beq- cr7,ffc06c0c <rtems_termios_close+0x124>
rtems_termios_ttyTail->forw = NULL;
ffc06c00: 91 69 00 00 stw r11,0(r9) <== NOT EXECUTED
ffc06c04: 48 00 00 08 b ffc06c0c <rtems_termios_close+0x124> <== NOT EXECUTED
}
}
else {
tty->forw->back = tty->back;
ffc06c08: 91 2b 00 04 stw r9,4(r11)
}
if (tty->back == NULL) {
ffc06c0c: 81 7f 00 04 lwz r11,4(r31)
ffc06c10: 81 3f 00 00 lwz r9,0(r31)
ffc06c14: 2f 8b 00 00 cmpwi cr7,r11,0
ffc06c18: 40 be 00 1c bne+ cr7,ffc06c34 <rtems_termios_close+0x14c>
rtems_termios_ttyHead = tty->forw;
if ( rtems_termios_ttyHead != NULL ) {
ffc06c1c: 2f 89 00 00 cmpwi cr7,r9,0
}
else {
tty->forw->back = tty->back;
}
if (tty->back == NULL) {
rtems_termios_ttyHead = tty->forw;
ffc06c20: 3d 40 00 00 lis r10,0
ffc06c24: 91 2a 27 60 stw r9,10080(r10)
if ( rtems_termios_ttyHead != NULL ) {
ffc06c28: 41 9e 00 10 beq- cr7,ffc06c38 <rtems_termios_close+0x150>
rtems_termios_ttyHead->back = NULL;
ffc06c2c: 91 69 00 04 stw r11,4(r9)
ffc06c30: 48 00 00 08 b ffc06c38 <rtems_termios_close+0x150>
}
}
else {
tty->back->forw = tty->forw;
ffc06c34: 91 2b 00 00 stw r9,0(r11) <== NOT EXECUTED
}
rtems_semaphore_delete (tty->isem);
ffc06c38: 80 7f 00 14 lwz r3,20(r31)
ffc06c3c: 48 00 10 a5 bl ffc07ce0 <rtems_semaphore_delete>
rtems_semaphore_delete (tty->osem);
ffc06c40: 80 7f 00 18 lwz r3,24(r31)
ffc06c44: 48 00 10 9d bl ffc07ce0 <rtems_semaphore_delete>
rtems_semaphore_delete (tty->rawOutBuf.Semaphore);
ffc06c48: 80 7f 00 8c lwz r3,140(r31)
ffc06c4c: 48 00 10 95 bl ffc07ce0 <rtems_semaphore_delete>
if ((tty->device.pollRead == NULL) ||
ffc06c50: 80 1f 00 a0 lwz r0,160(r31)
ffc06c54: 2f 80 00 00 cmpwi cr7,r0,0
ffc06c58: 41 9e 00 10 beq- cr7,ffc06c68 <rtems_termios_close+0x180>
(tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))
ffc06c5c: 80 1f 00 b4 lwz r0,180(r31)
ffc06c60: 2f 80 00 02 cmpwi cr7,r0,2
ffc06c64: 40 be 00 0c bne+ cr7,ffc06c70 <rtems_termios_close+0x188>
rtems_semaphore_delete (tty->rawInBuf.Semaphore);
ffc06c68: 80 7f 00 68 lwz r3,104(r31) <== NOT EXECUTED
ffc06c6c: 48 00 10 75 bl ffc07ce0 <rtems_semaphore_delete> <== NOT EXECUTED
free (tty->rawInBuf.theBuf);
ffc06c70: 80 7f 00 58 lwz r3,88(r31)
ffc06c74: 4b ff d5 d1 bl ffc04244 <free>
free (tty->rawOutBuf.theBuf);
ffc06c78: 80 7f 00 7c lwz r3,124(r31)
ffc06c7c: 4b ff d5 c9 bl ffc04244 <free>
free (tty->cbuf);
ffc06c80: 80 7f 00 1c lwz r3,28(r31)
ffc06c84: 4b ff d5 c1 bl ffc04244 <free>
free (tty);
ffc06c88: 7f e3 fb 78 mr r3,r31
ffc06c8c: 4b ff d5 b9 bl ffc04244 <free>
}
rtems_semaphore_release (rtems_termios_ttyMutex);
ffc06c90: 3d 20 00 00 lis r9,0
ffc06c94: 80 69 27 58 lwz r3,10072(r9)
ffc06c98: 48 00 12 59 bl ffc07ef0 <rtems_semaphore_release>
return RTEMS_SUCCESSFUL;
}
ffc06c9c: 80 01 00 14 lwz r0,20(r1)
ffc06ca0: 38 60 00 00 li r3,0
ffc06ca4: 83 c1 00 08 lwz r30,8(r1)
ffc06ca8: 7c 08 03 a6 mtlr r0
ffc06cac: 83 e1 00 0c lwz r31,12(r1)
ffc06cb0: 38 21 00 10 addi r1,r1,16
ffc06cb4: 4e 80 00 20 blr
ffc0556c <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)
{
ffc0556c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc05570: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED
ffc05574: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
/*
* sum up character count already sent
*/
tty->t_dqlen += len;
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
ffc05578: 81 63 00 b4 lwz r11,180(r3) <== NOT EXECUTED
rtems_status_code sc;
/*
* sum up character count already sent
*/
tty->t_dqlen += len;
ffc0557c: 80 03 00 90 lwz r0,144(r3) <== NOT EXECUTED
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
ffc05580: 2f 8b 00 02 cmpwi cr7,r11,2 <== NOT EXECUTED
rtems_status_code sc;
/*
* sum up character count already sent
*/
tty->t_dqlen += len;
ffc05584: 7c 00 22 14 add r0,r0,r4 <== NOT EXECUTED
ffc05588: 90 03 00 90 stw r0,144(r3) <== NOT EXECUTED
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
ffc0558c: 40 be 00 1c bne+ cr7,ffc055a8 <rtems_termios_dequeue_characters+0x3c><== NOT EXECUTED
/*
* send wake up to transmitter task
*/
sc = rtems_event_send(tty->txTaskId,
ffc05590: 80 63 00 c8 lwz r3,200(r3) <== NOT EXECUTED
ffc05594: 38 80 00 02 li r4,2 <== NOT EXECUTED
ffc05598: 48 00 22 f5 bl ffc0788c <rtems_event_send> <== NOT EXECUTED
TERMIOS_TX_START_EVENT);
if (sc != RTEMS_SUCCESSFUL)
ffc0559c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc055a0: 41 be 00 40 beq+ cr7,ffc055e0 <rtems_termios_dequeue_characters+0x74><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
ffc055a4: 48 00 30 35 bl ffc085d8 <rtems_fatal_error_occurred> <== NOT EXECUTED
return 0; /* nothing to output in IRQ... */
}
else if (tty->t_line == PPPDISC ) {
ffc055a8: 80 03 00 cc lwz r0,204(r3) <== NOT EXECUTED
ffc055ac: 2f 80 00 05 cmpwi cr7,r0,5 <== NOT EXECUTED
ffc055b0: 40 9e 00 20 bne- cr7,ffc055d0 <rtems_termios_dequeue_characters+0x64><== NOT EXECUTED
/*
* call any line discipline start function
*/
if (rtems_termios_linesw[tty->t_line].l_start != NULL) {
ffc055b4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc055b8: 80 09 29 3c lwz r0,10556(r9) <== NOT EXECUTED
ffc055bc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc055c0: 41 9e 00 20 beq- cr7,ffc055e0 <rtems_termios_dequeue_characters+0x74><== NOT EXECUTED
rtems_termios_linesw[tty->t_line].l_start(tty);
ffc055c4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc055c8: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc055cc: 48 00 00 14 b ffc055e0 <rtems_termios_dequeue_characters+0x74><== NOT EXECUTED
return 0; /* nothing to output in IRQ... */
}
else {
return rtems_termios_refill_transmitter(tty);
}
}
ffc055d0: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc055d4: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc055d8: 7c 08 03 a6 mtlr r0 <== 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);
ffc055dc: 4b ff fd 5c b ffc05338 <rtems_termios_refill_transmitter><== NOT EXECUTED
}
}
ffc055e0: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc055e4: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc055e8: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc055ec: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc055f0: 4e 80 00 20 blr <== NOT EXECUTED
ffc055f4 <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)
{
ffc055f4: 94 21 ff d0 stwu r1,-48(r1) <== NOT EXECUTED
ffc055f8: 7c 08 02 a6 mflr r0 <== 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) {
ffc055fc: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
* device receive interrupt handler.
* Returns the number of characters dropped because of overflow.
*/
int
rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len)
{
ffc05600: 90 01 00 34 stw r0,52(r1) <== 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) {
ffc05604: 39 29 28 88 addi r9,r9,10376 <== NOT EXECUTED
ffc05608: 81 63 00 cc lwz r11,204(r3) <== NOT EXECUTED
* device receive interrupt handler.
* Returns the number of characters dropped because of overflow.
*/
int
rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len)
{
ffc0560c: 93 81 00 20 stw r28,32(r1) <== NOT EXECUTED
rtems_interrupt_level level;
if (rtems_termios_linesw[tty->t_line].l_rint != NULL) {
while (len--) {
c = *buf++;
rtems_termios_linesw[tty->t_line].l_rint(c,tty);
ffc05610: 7d 3c 4b 78 mr r28,r9 <== 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) {
ffc05614: 55 6b 28 34 rlwinm r11,r11,5,0,26 <== NOT EXECUTED
ffc05618: 38 0b 00 10 addi r0,r11,16 <== NOT EXECUTED
* device receive interrupt handler.
* Returns the number of characters dropped because of overflow.
*/
int
rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len)
{
ffc0561c: 93 a1 00 24 stw r29,36(r1) <== NOT EXECUTED
ffc05620: 7c 9d 23 78 mr r29,r4 <== 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) {
ffc05624: 7c 09 00 2e lwzx r0,r9,r0 <== NOT EXECUTED
* device receive interrupt handler.
* Returns the number of characters dropped because of overflow.
*/
int
rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len)
{
ffc05628: 93 c1 00 28 stw r30,40(r1) <== 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);
ffc0562c: 7c be 2b 78 mr r30,r5 <== 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) {
ffc05630: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
* device receive interrupt handler.
* Returns the number of characters dropped because of overflow.
*/
int
rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len)
{
ffc05634: 93 e1 00 2c stw r31,44(r1) <== NOT EXECUTED
ffc05638: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED
ffc0563c: 92 c1 00 08 stw r22,8(r1) <== NOT EXECUTED
ffc05640: 92 e1 00 0c stw r23,12(r1) <== NOT EXECUTED
ffc05644: 93 01 00 10 stw r24,16(r1) <== NOT EXECUTED
ffc05648: 93 21 00 14 stw r25,20(r1) <== NOT EXECUTED
ffc0564c: 93 41 00 18 stw r26,24(r1) <== NOT EXECUTED
ffc05650: 93 61 00 1c stw r27,28(r1) <== 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) {
ffc05654: 40 be 00 3c bne+ cr7,ffc05690 <rtems_termios_enqueue_raw_characters+0x9c><== 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);
ffc05658: 7c bb 2b 78 mr r27,r5 <== 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,
ffc0565c: 3a e3 00 4a addi r23,r3,74 <== 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);
ffc05660: 3b 03 00 30 addi r24,r3,48 <== NOT EXECUTED
ffc05664: 3b 20 00 00 li r25,0 <== NOT EXECUTED
ffc05668: 3b c0 00 00 li r30,0 <== NOT EXECUTED
ffc0566c: 48 00 02 84 b ffc058f0 <rtems_termios_enqueue_raw_characters+0x2fc><== NOT EXECUTED
rtems_interrupt_level level;
if (rtems_termios_linesw[tty->t_line].l_rint != NULL) {
while (len--) {
c = *buf++;
rtems_termios_linesw[tty->t_line].l_rint(c,tty);
ffc05670: 81 3f 00 cc lwz r9,204(r31) <== NOT EXECUTED
bool flow_rcv = false; /* true, if flow control char received */
rtems_interrupt_level level;
if (rtems_termios_linesw[tty->t_line].l_rint != NULL) {
while (len--) {
c = *buf++;
ffc05674: 88 7d 00 00 lbz r3,0(r29) <== NOT EXECUTED
ffc05678: 3b bd 00 01 addi r29,r29,1 <== NOT EXECUTED
rtems_termios_linesw[tty->t_line].l_rint(c,tty);
ffc0567c: 55 29 28 34 rlwinm r9,r9,5,0,26 <== NOT EXECUTED
ffc05680: 38 09 00 10 addi r0,r9,16 <== NOT EXECUTED
ffc05684: 7c 1c 00 2e lwzx r0,r28,r0 <== NOT EXECUTED
ffc05688: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc0568c: 4e 80 04 21 bctrl <== 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--) {
ffc05690: 2f 9e 00 00 cmpwi cr7,r30,0 <== NOT EXECUTED
c = *buf++;
rtems_termios_linesw[tty->t_line].l_rint(c,tty);
ffc05694: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc05698: 3b de ff ff addi r30,r30,-1 <== 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--) {
ffc0569c: 40 9e ff d4 bne+ cr7,ffc05670 <rtems_termios_enqueue_raw_characters+0x7c><== NOT EXECUTED
}
/*
* check to see if rcv wakeup callback was set
*/
if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
ffc056a0: 80 1f 00 e4 lwz r0,228(r31) <== NOT EXECUTED
ffc056a4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc056a8: 40 9e 02 68 bne- cr7,ffc05910 <rtems_termios_enqueue_raw_characters+0x31c><== NOT EXECUTED
ffc056ac: 80 1f 00 dc lwz r0,220(r31) <== NOT EXECUTED
ffc056b0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc056b4: 41 9e 02 5c beq- cr7,ffc05910 <rtems_termios_enqueue_raw_characters+0x31c><== NOT EXECUTED
(*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);
ffc056b8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc056bc: 38 7f 00 30 addi r3,r31,48 <== NOT EXECUTED
ffc056c0: 80 9f 00 e0 lwz r4,224(r31) <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
ffc056c4: 3b c0 00 00 li r30,0 <== 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);
ffc056c8: 4e 80 04 21 bctrl <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
ffc056cc: 38 00 00 01 li r0,1 <== NOT EXECUTED
ffc056d0: 90 1f 00 e4 stw r0,228(r31) <== NOT EXECUTED
ffc056d4: 48 00 02 40 b ffc05914 <rtems_termios_enqueue_raw_characters+0x320><== NOT EXECUTED
while (len--) {
c = *buf++;
/* FIXME: implement IXANY: any character restarts output */
/* if incoming XON/XOFF controls outgoing stream: */
if (tty->flow_ctrl & FL_MDXON) {
ffc056d8: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
}
return 0;
}
while (len--) {
c = *buf++;
ffc056dc: 8b 5d 00 00 lbz r26,0(r29) <== NOT EXECUTED
/* FIXME: implement IXANY: any character restarts output */
/* if incoming XON/XOFF controls outgoing stream: */
if (tty->flow_ctrl & FL_MDXON) {
ffc056e0: 70 09 02 00 andi. r9,r0,512 <== NOT EXECUTED
ffc056e4: 41 82 00 58 beq- ffc0573c <rtems_termios_enqueue_raw_characters+0x148><== NOT EXECUTED
/* if received char is V_STOP and V_START (both are equal value) */
if (c == tty->termios.c_cc[VSTOP]) {
ffc056e8: 89 3f 00 4a lbz r9,74(r31) <== NOT EXECUTED
ffc056ec: 88 1f 00 49 lbz r0,73(r31) <== NOT EXECUTED
ffc056f0: 7f 89 d0 00 cmpw cr7,r9,r26 <== NOT EXECUTED
ffc056f4: 40 be 00 30 bne+ cr7,ffc05724 <rtems_termios_enqueue_raw_characters+0x130><== NOT EXECUTED
if (c == tty->termios.c_cc[VSTART]) {
ffc056f8: 54 00 06 3e clrlwi r0,r0,24 <== NOT EXECUTED
ffc056fc: 7f 80 48 00 cmpw cr7,r0,r9 <== NOT EXECUTED
ffc05700: 40 be 00 10 bne+ cr7,ffc05710 <rtems_termios_enqueue_raw_characters+0x11c><== NOT EXECUTED
/* received VSTOP and VSTART==VSTOP? */
/* then toggle "stop output" status */
tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;
ffc05704: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc05708: 68 00 00 10 xori r0,r0,16 <== NOT EXECUTED
ffc0570c: 48 00 00 0c b ffc05718 <rtems_termios_enqueue_raw_characters+0x124><== NOT EXECUTED
}
else {
/* VSTOP received (other code than VSTART) */
/* stop output */
tty->flow_ctrl |= FL_ORCVXOF;
ffc05710: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc05714: 60 00 00 10 ori r0,r0,16 <== NOT EXECUTED
ffc05718: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED
}
}
}
tty->rawInBufDropped += dropped;
rtems_semaphore_release (tty->rawInBuf.Semaphore);
return dropped;
ffc0571c: 3b 20 00 01 li r25,1 <== NOT EXECUTED
ffc05720: 48 00 00 24 b ffc05744 <rtems_termios_enqueue_raw_characters+0x150><== NOT EXECUTED
/* stop output */
tty->flow_ctrl |= FL_ORCVXOF;
}
flow_rcv = true;
}
else if (c == tty->termios.c_cc[VSTART]) {
ffc05724: 54 00 06 3e clrlwi r0,r0,24 <== NOT EXECUTED
ffc05728: 7f 80 d0 00 cmpw cr7,r0,r26 <== NOT EXECUTED
ffc0572c: 40 be 00 10 bne+ cr7,ffc0573c <rtems_termios_enqueue_raw_characters+0x148><== NOT EXECUTED
/* VSTART received */
/* restart output */
tty->flow_ctrl &= ~FL_ORCVXOF;
ffc05730: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc05734: 54 00 07 34 rlwinm r0,r0,0,28,26 <== NOT EXECUTED
ffc05738: 4b ff ff e0 b ffc05718 <rtems_termios_enqueue_raw_characters+0x124><== NOT EXECUTED
flow_rcv = true;
}
}
if (flow_rcv) {
ffc0573c: 2f 99 00 00 cmpwi cr7,r25,0 <== NOT EXECUTED
ffc05740: 41 be 00 64 beq+ cr7,ffc057a4 <rtems_termios_enqueue_raw_characters+0x1b0><== NOT EXECUTED
/* restart output according to FL_ORCVXOF flag */
if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) {
ffc05744: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc05748: 54 00 06 b6 rlwinm r0,r0,0,26,27 <== NOT EXECUTED
ffc0574c: 2f 80 00 20 cmpwi cr7,r0,32 <== NOT EXECUTED
ffc05750: 40 be 01 98 bne+ cr7,ffc058e8 <rtems_termios_enqueue_raw_characters+0x2f4><== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc05754: 7f 80 00 a6 mfmsr r28 <== NOT EXECUTED
ffc05758: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED
ffc0575c: 7f 80 00 78 andc r0,r28,r0 <== NOT EXECUTED
ffc05760: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED
/* disable interrupts */
rtems_interrupt_disable(level);
tty->flow_ctrl &= ~FL_OSTOP;
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
ffc05764: 81 3f 00 94 lwz r9,148(r31) <== 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;
ffc05768: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
ffc0576c: 2f 89 00 00 cmpwi cr7,r9,0 <== 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;
ffc05770: 54 00 06 f2 rlwinm r0,r0,0,27,25 <== NOT EXECUTED
ffc05774: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
ffc05778: 41 be 00 24 beq+ cr7,ffc0579c <rtems_termios_enqueue_raw_characters+0x1a8><== NOT EXECUTED
/* if chars available, call write function... */
(*tty->device.write)(tty->minor,
&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1);
ffc0577c: 81 3f 00 84 lwz r9,132(r31) <== 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,
ffc05780: 38 a0 00 01 li r5,1 <== NOT EXECUTED
ffc05784: 80 9f 00 7c lwz r4,124(r31) <== NOT EXECUTED
ffc05788: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED
ffc0578c: 7c 84 4a 14 add r4,r4,r9 <== NOT EXECUTED
ffc05790: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED
ffc05794: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc05798: 4e 80 04 21 bctrl <== NOT EXECUTED
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0579c: 7f 80 01 24 mtmsr r28 <== NOT EXECUTED
ffc057a0: 48 00 01 48 b ffc058e8 <rtems_termios_enqueue_raw_characters+0x2f4><== NOT EXECUTED
/* reenable interrupts */
rtems_interrupt_enable(level);
}
}
else {
newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;
ffc057a4: 83 9f 00 60 lwz r28,96(r31) <== NOT EXECUTED
ffc057a8: 81 3f 00 64 lwz r9,100(r31) <== NOT EXECUTED
ffc057ac: 38 1c 00 01 addi r0,r28,1 <== NOT EXECUTED
ffc057b0: 7f 80 4b 96 divwu r28,r0,r9 <== NOT EXECUTED
ffc057b4: 7f 9c 49 d6 mullw r28,r28,r9 <== NOT EXECUTED
ffc057b8: 7f 9c 00 50 subf r28,r28,r0 <== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc057bc: 7e c0 00 a6 mfmsr r22 <== NOT EXECUTED
ffc057c0: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED
ffc057c4: 7e c0 00 78 andc r0,r22,r0 <== NOT EXECUTED
ffc057c8: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED
/* if chars_in_buffer > highwater */
rtems_interrupt_disable(level);
if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)
ffc057cc: 80 1f 00 5c lwz r0,92(r31) <== NOT EXECUTED
ffc057d0: 81 7f 00 64 lwz r11,100(r31) <== NOT EXECUTED
ffc057d4: 81 3f 00 64 lwz r9,100(r31) <== NOT EXECUTED
ffc057d8: 7c 00 58 50 subf r0,r0,r11 <== NOT EXECUTED
% tty->rawInBuf.Size)
> tty->highwater) &&
ffc057dc: 81 7f 00 c0 lwz r11,192(r31) <== 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)
ffc057e0: 7c 00 e2 14 add r0,r0,r28 <== NOT EXECUTED
ffc057e4: 7d 40 4b 96 divwu r10,r0,r9 <== NOT EXECUTED
ffc057e8: 7d 2a 49 d6 mullw r9,r10,r9 <== NOT EXECUTED
ffc057ec: 7c 09 00 50 subf r0,r9,r0 <== NOT EXECUTED
% tty->rawInBuf.Size)
> tty->highwater) &&
ffc057f0: 7f 80 58 40 cmplw cr7,r0,r11 <== NOT EXECUTED
ffc057f4: 40 9d 00 a0 ble- cr7,ffc05894 <rtems_termios_enqueue_raw_characters+0x2a0><== NOT EXECUTED
!(tty->flow_ctrl & FL_IREQXOF)) {
ffc057f8: 80 1f 00 b8 lwz r0,184(r31) <== 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)
ffc057fc: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED
ffc05800: 40 82 00 94 bne- ffc05894 <rtems_termios_enqueue_raw_characters+0x2a0><== NOT EXECUTED
% tty->rawInBuf.Size)
> tty->highwater) &&
!(tty->flow_ctrl & FL_IREQXOF)) {
/* incoming data stream should be stopped */
tty->flow_ctrl |= FL_IREQXOF;
ffc05804: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc05808: 60 00 00 01 ori r0,r0,1 <== NOT EXECUTED
ffc0580c: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED
if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))
ffc05810: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc05814: 70 00 04 02 andi. r0,r0,1026 <== NOT EXECUTED
ffc05818: 2f 80 04 00 cmpwi cr7,r0,1024 <== NOT EXECUTED
ffc0581c: 40 be 00 44 bne+ cr7,ffc05860 <rtems_termios_enqueue_raw_characters+0x26c><== NOT EXECUTED
== (FL_MDXOF ) ){
if ((tty->flow_ctrl & FL_OSTOP) ||
ffc05820: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc05824: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED
ffc05828: 40 82 00 10 bne- ffc05838 <rtems_termios_enqueue_raw_characters+0x244><== NOT EXECUTED
(tty->rawOutBufState == rob_idle)) {
ffc0582c: 80 1f 00 94 lwz r0,148(r31) <== NOT EXECUTED
ffc05830: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc05834: 40 9e 00 60 bne- cr7,ffc05894 <rtems_termios_enqueue_raw_characters+0x2a0><== NOT EXECUTED
/* if tx is stopped due to XOFF or out of data */
/* call write function here */
tty->flow_ctrl |= FL_ISNTXOF;
ffc05838: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED
(*tty->device.write)(tty->minor,
ffc0583c: 7e e4 bb 78 mr r4,r23 <== NOT EXECUTED
ffc05840: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED
ffc05844: 38 a0 00 01 li r5,1 <== 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;
ffc05848: 61 29 00 02 ori r9,r9,2 <== NOT EXECUTED
(*tty->device.write)(tty->minor,
ffc0584c: 80 7f 00 10 lwz r3,16(r31) <== 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;
ffc05850: 91 3f 00 b8 stw r9,184(r31) <== NOT EXECUTED
(*tty->device.write)(tty->minor,
ffc05854: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc05858: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc0585c: 48 00 00 38 b ffc05894 <rtems_termios_enqueue_raw_characters+0x2a0><== NOT EXECUTED
(void *)&(tty->termios.c_cc[VSTOP]),
1);
}
}
else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF))
ffc05860: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc05864: 70 00 01 04 andi. r0,r0,260 <== NOT EXECUTED
ffc05868: 2f 80 01 00 cmpwi cr7,r0,256 <== NOT EXECUTED
ffc0586c: 40 be 00 28 bne+ cr7,ffc05894 <rtems_termios_enqueue_raw_characters+0x2a0><== NOT EXECUTED
== (FL_MDRTS ) ) {
tty->flow_ctrl |= FL_IRTSOFF;
/* deactivate RTS line */
if (tty->device.stopRemoteTx != NULL) {
ffc05870: 80 1f 00 ac lwz r0,172(r31) <== NOT EXECUTED
1);
}
}
else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF))
== (FL_MDRTS ) ) {
tty->flow_ctrl |= FL_IRTSOFF;
ffc05874: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED
/* deactivate RTS line */
if (tty->device.stopRemoteTx != NULL) {
ffc05878: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
1);
}
}
else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF))
== (FL_MDRTS ) ) {
tty->flow_ctrl |= FL_IRTSOFF;
ffc0587c: 61 29 00 04 ori r9,r9,4 <== NOT EXECUTED
ffc05880: 91 3f 00 b8 stw r9,184(r31) <== NOT EXECUTED
/* deactivate RTS line */
if (tty->device.stopRemoteTx != NULL) {
ffc05884: 41 9e 00 10 beq- cr7,ffc05894 <rtems_termios_enqueue_raw_characters+0x2a0><== NOT EXECUTED
tty->device.stopRemoteTx(tty->minor);
ffc05888: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED
ffc0588c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc05890: 4e 80 04 21 bctrl <== NOT EXECUTED
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc05894: 7e c0 01 24 mtmsr r22 <== NOT EXECUTED
}
}
/* reenable interrupts */
rtems_interrupt_enable(level);
if (newTail == tty->rawInBuf.Head) {
ffc05898: 80 1f 00 5c lwz r0,92(r31) <== NOT EXECUTED
ffc0589c: 7f 9c 00 00 cmpw cr7,r28,r0 <== NOT EXECUTED
ffc058a0: 40 be 00 0c bne+ cr7,ffc058ac <rtems_termios_enqueue_raw_characters+0x2b8><== NOT EXECUTED
dropped++;
ffc058a4: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED
ffc058a8: 48 00 00 40 b ffc058e8 <rtems_termios_enqueue_raw_characters+0x2f4><== NOT EXECUTED
}
else {
tty->rawInBuf.theBuf[newTail] = c;
ffc058ac: 81 3f 00 58 lwz r9,88(r31) <== NOT EXECUTED
ffc058b0: 7f 49 e1 ae stbx r26,r9,r28 <== 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 )) {
ffc058b4: 80 1f 00 e4 lwz r0,228(r31) <== NOT EXECUTED
if (newTail == tty->rawInBuf.Head) {
dropped++;
}
else {
tty->rawInBuf.theBuf[newTail] = c;
tty->rawInBuf.Tail = newTail;
ffc058b8: 93 9f 00 60 stw r28,96(r31) <== NOT EXECUTED
/*
* check to see if rcv wakeup callback was set
*/
if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
ffc058bc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc058c0: 40 9e 00 28 bne- cr7,ffc058e8 <rtems_termios_enqueue_raw_characters+0x2f4><== NOT EXECUTED
ffc058c4: 80 1f 00 dc lwz r0,220(r31) <== NOT EXECUTED
ffc058c8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc058cc: 41 9e 00 1c beq- cr7,ffc058e8 <rtems_termios_enqueue_raw_characters+0x2f4><== NOT EXECUTED
(*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);
ffc058d0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc058d4: 7f 03 c3 78 mr r3,r24 <== NOT EXECUTED
ffc058d8: 80 9f 00 e0 lwz r4,224(r31) <== NOT EXECUTED
ffc058dc: 4e 80 04 21 bctrl <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
ffc058e0: 38 00 00 01 li r0,1 <== NOT EXECUTED
ffc058e4: 90 1f 00 e4 stw r0,228(r31) <== NOT EXECUTED
}
return 0;
}
while (len--) {
c = *buf++;
ffc058e8: 3b bd 00 01 addi r29,r29,1 <== NOT EXECUTED
ffc058ec: 3b 7b ff ff addi r27,r27,-1 <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
}
return 0;
}
while (len--) {
ffc058f0: 2f 9b 00 00 cmpwi cr7,r27,0 <== NOT EXECUTED
ffc058f4: 40 9e fd e4 bne+ cr7,ffc056d8 <rtems_termios_enqueue_raw_characters+0xe4><== NOT EXECUTED
tty->tty_rcvwakeup = 1;
}
}
}
}
tty->rawInBufDropped += dropped;
ffc058f8: 80 1f 00 78 lwz r0,120(r31) <== NOT EXECUTED
rtems_semaphore_release (tty->rawInBuf.Semaphore);
ffc058fc: 80 7f 00 68 lwz r3,104(r31) <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
}
}
}
}
tty->rawInBufDropped += dropped;
ffc05900: 7c 00 f2 14 add r0,r0,r30 <== NOT EXECUTED
ffc05904: 90 1f 00 78 stw r0,120(r31) <== NOT EXECUTED
rtems_semaphore_release (tty->rawInBuf.Semaphore);
ffc05908: 48 00 25 e9 bl ffc07ef0 <rtems_semaphore_release> <== NOT EXECUTED
return dropped;
ffc0590c: 48 00 00 08 b ffc05914 <rtems_termios_enqueue_raw_characters+0x320><== NOT EXECUTED
ffc05910: 3b c0 00 00 li r30,0 <== NOT EXECUTED
}
ffc05914: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED
ffc05918: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc0591c: 82 c1 00 08 lwz r22,8(r1) <== NOT EXECUTED
ffc05920: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc05924: 82 e1 00 0c lwz r23,12(r1) <== NOT EXECUTED
ffc05928: 83 01 00 10 lwz r24,16(r1) <== NOT EXECUTED
ffc0592c: 83 21 00 14 lwz r25,20(r1) <== NOT EXECUTED
ffc05930: 83 41 00 18 lwz r26,24(r1) <== NOT EXECUTED
ffc05934: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED
ffc05938: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED
ffc0593c: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED
ffc05940: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED
ffc05944: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED
ffc05948: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED
ffc0594c: 4e 80 00 20 blr <== NOT EXECUTED
ffc052a0 <rtems_termios_initialize>:
struct rtems_termios_tty *rtems_termios_ttyTail;
rtems_id rtems_termios_ttyMutex;
void
rtems_termios_initialize (void)
{
ffc052a0: 7c 08 02 a6 mflr r0
ffc052a4: 94 21 ff f8 stwu r1,-8(r1)
rtems_status_code sc;
/*
* Create the mutex semaphore for the tty list
*/
if (!rtems_termios_ttyMutex) {
ffc052a8: 3c e0 00 00 lis r7,0
struct rtems_termios_tty *rtems_termios_ttyTail;
rtems_id rtems_termios_ttyMutex;
void
rtems_termios_initialize (void)
{
ffc052ac: 90 01 00 0c stw r0,12(r1)
rtems_status_code sc;
/*
* Create the mutex semaphore for the tty list
*/
if (!rtems_termios_ttyMutex) {
ffc052b0: 80 07 27 58 lwz r0,10072(r7)
ffc052b4: 38 e7 27 58 addi r7,r7,10072
ffc052b8: 2f 80 00 00 cmpwi cr7,r0,0
ffc052bc: 40 be 00 28 bne+ cr7,ffc052e4 <rtems_termios_initialize+0x44>
sc = rtems_semaphore_create (
ffc052c0: 3c 60 54 52 lis r3,21586
ffc052c4: 60 63 6d 69 ori r3,r3,28009
ffc052c8: 38 80 00 01 li r4,1
ffc052cc: 38 a0 00 54 li r5,84
ffc052d0: 38 c0 00 00 li r6,0
ffc052d4: 48 00 28 09 bl ffc07adc <rtems_semaphore_create>
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)
ffc052d8: 2f 83 00 00 cmpwi cr7,r3,0
ffc052dc: 41 be 00 08 beq+ cr7,ffc052e4 <rtems_termios_initialize+0x44>
rtems_fatal_error_occurred (sc);
ffc052e0: 48 00 32 f9 bl ffc085d8 <rtems_fatal_error_occurred> <== NOT EXECUTED
}
}
ffc052e4: 80 01 00 0c lwz r0,12(r1)
ffc052e8: 38 21 00 08 addi r1,r1,8
ffc052ec: 7c 08 03 a6 mtlr r0
ffc052f0: 4e 80 00 20 blr
ffc066d4 <rtems_termios_ioctl>:
}
}
rtems_status_code
rtems_termios_ioctl (void *arg)
{
ffc066d4: 94 21 ff e0 stwu r1,-32(r1)
ffc066d8: 7c 08 02 a6 mflr r0
struct rtems_termios_tty *tty = args->iop->data1;
struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer;
rtems_status_code sc;
args->ioctl_return = 0;
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc066dc: 38 80 00 00 li r4,0
}
}
rtems_status_code
rtems_termios_ioctl (void *arg)
{
ffc066e0: 90 01 00 24 stw r0,36(r1)
rtems_libio_ioctl_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer;
rtems_status_code sc;
args->ioctl_return = 0;
ffc066e4: 38 00 00 00 li r0,0
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc066e8: 38 a0 00 00 li r5,0
rtems_status_code
rtems_termios_ioctl (void *arg)
{
rtems_libio_ioctl_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
ffc066ec: 81 23 00 00 lwz r9,0(r3)
}
}
rtems_status_code
rtems_termios_ioctl (void *arg)
{
ffc066f0: 93 e1 00 1c stw r31,28(r1)
rtems_libio_ioctl_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer;
rtems_status_code sc;
args->ioctl_return = 0;
ffc066f4: 90 03 00 0c stw r0,12(r3)
rtems_status_code
rtems_termios_ioctl (void *arg)
{
rtems_libio_ioctl_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
ffc066f8: 83 e9 00 38 lwz r31,56(r9)
}
}
rtems_status_code
rtems_termios_ioctl (void *arg)
{
ffc066fc: 93 c1 00 18 stw r30,24(r1)
ffc06700: 7c 7e 1b 78 mr r30,r3
struct rtems_termios_tty *tty = args->iop->data1;
struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer;
rtems_status_code sc;
args->ioctl_return = 0;
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc06704: 80 7f 00 18 lwz r3,24(r31)
}
}
rtems_status_code
rtems_termios_ioctl (void *arg)
{
ffc06708: 93 81 00 10 stw r28,16(r1)
ffc0670c: 93 a1 00 14 stw r29,20(r1)
ffc06710: 93 61 00 0c stw r27,12(r1)
rtems_libio_ioctl_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer;
ffc06714: 83 9e 00 08 lwz r28,8(r30)
rtems_status_code sc;
args->ioctl_return = 0;
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc06718: 48 00 16 95 bl ffc07dac <rtems_semaphore_obtain>
if (sc != RTEMS_SUCCESSFUL) {
ffc0671c: 7c 7d 1b 79 mr. r29,r3
ffc06720: 40 82 03 9c bne- ffc06abc <rtems_termios_ioctl+0x3e8>
args->ioctl_return = sc;
return sc;
}
switch (args->command) {
ffc06724: 80 1e 00 04 lwz r0,4(r30)
ffc06728: 2f 80 00 04 cmpwi cr7,r0,4
ffc0672c: 41 9e 02 c8 beq- cr7,ffc069f4 <rtems_termios_ioctl+0x320>
ffc06730: 2b 80 00 04 cmplwi cr7,r0,4
ffc06734: 41 9d 00 20 bgt- cr7,ffc06754 <rtems_termios_ioctl+0x80>
ffc06738: 2f 80 00 02 cmpwi cr7,r0,2
ffc0673c: 41 9e 00 a0 beq- cr7,ffc067dc <rtems_termios_ioctl+0x108>
ffc06740: 2b 80 00 02 cmplwi cr7,r0,2
ffc06744: 41 9d 02 90 bgt- cr7,ffc069d4 <rtems_termios_ioctl+0x300>
ffc06748: 2f 80 00 01 cmpwi cr7,r0,1
ffc0674c: 40 be 00 44 bne+ cr7,ffc06790 <rtems_termios_ioctl+0xbc>
ffc06750: 48 00 00 78 b ffc067c8 <rtems_termios_ioctl+0xf4>
ffc06754: 3d 20 40 04 lis r9,16388 <== NOT EXECUTED
ffc06758: 61 29 66 7f ori r9,r9,26239 <== NOT EXECUTED
ffc0675c: 7f 80 48 00 cmpw cr7,r0,r9 <== NOT EXECUTED
ffc06760: 41 9e 03 24 beq- cr7,ffc06a84 <rtems_termios_ioctl+0x3b0><== NOT EXECUTED
ffc06764: 7f 80 48 40 cmplw cr7,r0,r9 <== NOT EXECUTED
ffc06768: 41 9d 00 10 bgt- cr7,ffc06778 <rtems_termios_ioctl+0xa4><== NOT EXECUTED
ffc0676c: 2f 80 00 05 cmpwi cr7,r0,5 <== NOT EXECUTED
ffc06770: 40 be 00 20 bne+ cr7,ffc06790 <rtems_termios_ioctl+0xbc><== NOT EXECUTED
ffc06774: 48 00 02 6c b ffc069e0 <rtems_termios_ioctl+0x30c> <== NOT EXECUTED
ffc06778: 6c 09 40 04 xoris r9,r0,16388 <== NOT EXECUTED
ffc0677c: 2f 89 74 1a cmpwi cr7,r9,29722 <== NOT EXECUTED
ffc06780: 41 9e 02 f8 beq- cr7,ffc06a78 <rtems_termios_ioctl+0x3a4><== NOT EXECUTED
ffc06784: 6c 09 80 04 xoris r9,r0,32772 <== NOT EXECUTED
ffc06788: 2f 89 74 1b cmpwi cr7,r9,29723 <== NOT EXECUTED
ffc0678c: 41 9e 02 7c beq- cr7,ffc06a08 <rtems_termios_ioctl+0x334><== NOT EXECUTED
default:
if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {
ffc06790: 80 1f 00 cc lwz r0,204(r31) <== NOT EXECUTED
ffc06794: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc06798: 39 29 28 88 addi r9,r9,10376 <== NOT EXECUTED
ffc0679c: 54 00 28 34 rlwinm r0,r0,5,0,26 <== NOT EXECUTED
ffc067a0: 7d 29 02 14 add r9,r9,r0 <== NOT EXECUTED
ffc067a4: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED
ffc067a8: 3b a0 00 0a li r29,10 <== NOT EXECUTED
ffc067ac: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc067b0: 41 9e 03 04 beq- cr7,ffc06ab4 <rtems_termios_ioctl+0x3e0><== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);
ffc067b4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc067b8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc067bc: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED
ffc067c0: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc067c4: 48 00 02 ac b ffc06a70 <rtems_termios_ioctl+0x39c> <== NOT EXECUTED
sc = RTEMS_INVALID_NUMBER;
}
break;
case RTEMS_IO_GET_ATTRIBUTES:
*(struct termios *)args->buffer = tty->termios;
ffc067c8: 80 7e 00 08 lwz r3,8(r30)
ffc067cc: 38 9f 00 30 addi r4,r31,48
ffc067d0: 38 a0 00 24 li r5,36
ffc067d4: 48 00 bf d9 bl ffc127ac <memcpy>
break;
ffc067d8: 48 00 02 dc b ffc06ab4 <rtems_termios_ioctl+0x3e0>
case RTEMS_IO_SET_ATTRIBUTES:
tty->termios = *(struct termios *)args->buffer;
ffc067dc: 80 9e 00 08 lwz r4,8(r30)
ffc067e0: 38 7f 00 30 addi r3,r31,48
ffc067e4: 38 a0 00 24 li r5,36
ffc067e8: 48 00 bf c5 bl ffc127ac <memcpy>
/*
* check for flow control options to be switched off
*/
/* check for outgoing XON/XOFF flow control switched off */
if (( tty->flow_ctrl & FL_MDXON) &&
ffc067ec: 80 1f 00 b8 lwz r0,184(r31)
ffc067f0: 70 09 02 00 andi. r9,r0,512
ffc067f4: 41 82 00 78 beq- ffc0686c <rtems_termios_ioctl+0x198>
ffc067f8: 80 1f 00 30 lwz r0,48(r31)
ffc067fc: 70 09 04 00 andi. r9,r0,1024
ffc06800: 40 82 00 6c bne- ffc0686c <rtems_termios_ioctl+0x198>
!(tty->termios.c_iflag & IXON)) {
/* clear related flags in flow_ctrl */
tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF);
ffc06804: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED
ffc06808: 38 00 fd ef li r0,-529 <== NOT EXECUTED
ffc0680c: 7d 20 00 38 and r0,r9,r0 <== NOT EXECUTED
ffc06810: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED
/* has output been stopped due to received XOFF? */
if (tty->flow_ctrl & FL_OSTOP) {
ffc06814: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc06818: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED
ffc0681c: 41 82 00 50 beq- ffc0686c <rtems_termios_ioctl+0x198> <== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc06820: 7f 80 00 a6 mfmsr r28 <== NOT EXECUTED
ffc06824: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED
ffc06828: 7f 80 00 78 andc r0,r28,r0 <== NOT EXECUTED
ffc0682c: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED
/* disable interrupts */
rtems_interrupt_disable(level);
tty->flow_ctrl &= ~FL_OSTOP;
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
ffc06830: 81 3f 00 94 lwz r9,148(r31) <== 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;
ffc06834: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
ffc06838: 2f 89 00 00 cmpwi cr7,r9,0 <== 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;
ffc0683c: 54 00 06 f2 rlwinm r0,r0,0,27,25 <== NOT EXECUTED
ffc06840: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
ffc06844: 41 be 00 24 beq+ cr7,ffc06868 <rtems_termios_ioctl+0x194><== NOT EXECUTED
/* if chars available, call write function... */
(*tty->device.write)(tty->minor,
&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
ffc06848: 81 3f 00 84 lwz r9,132(r31) <== 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,
ffc0684c: 38 a0 00 01 li r5,1 <== NOT EXECUTED
ffc06850: 80 9f 00 7c lwz r4,124(r31) <== NOT EXECUTED
ffc06854: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED
ffc06858: 7c 84 4a 14 add r4,r4,r9 <== NOT EXECUTED
ffc0685c: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED
ffc06860: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc06864: 4e 80 04 21 bctrl <== NOT EXECUTED
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc06868: 7f 80 01 24 mtmsr r28 <== NOT EXECUTED
/* reenable interrupts */
rtems_interrupt_enable(level);
}
}
/* check for incoming XON/XOFF flow control switched off */
if (( tty->flow_ctrl & FL_MDXOF) &&
ffc0686c: 80 1f 00 b8 lwz r0,184(r31)
ffc06870: 70 09 04 00 andi. r9,r0,1024
ffc06874: 41 82 00 28 beq- ffc0689c <rtems_termios_ioctl+0x1c8>
ffc06878: 80 1f 00 30 lwz r0,48(r31) <== NOT EXECUTED
ffc0687c: 70 09 10 00 andi. r9,r0,4096 <== NOT EXECUTED
ffc06880: 40 82 00 1c bne- ffc0689c <rtems_termios_ioctl+0x1c8> <== NOT EXECUTED
!(tty->termios.c_iflag & IXOFF)) {
/* clear related flags in flow_ctrl */
tty->flow_ctrl &= ~(FL_MDXOF);
ffc06884: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc06888: 54 00 05 a8 rlwinm r0,r0,0,22,20 <== NOT EXECUTED
ffc0688c: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED
/* FIXME: what happens, if we had sent XOFF but not yet XON? */
tty->flow_ctrl &= ~(FL_ISNTXOF);
ffc06890: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc06894: 54 00 07 fa rlwinm r0,r0,0,31,29 <== NOT EXECUTED
ffc06898: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED
}
/* check for incoming RTS/CTS flow control switched off */
if (( tty->flow_ctrl & FL_MDRTS) &&
ffc0689c: 80 1f 00 b8 lwz r0,184(r31)
ffc068a0: 70 09 01 00 andi. r9,r0,256
ffc068a4: 41 82 00 4c beq- ffc068f0 <rtems_termios_ioctl+0x21c>
ffc068a8: 80 1f 00 38 lwz r0,56(r31) <== NOT EXECUTED
ffc068ac: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc068b0: 41 9c 00 40 blt- cr7,ffc068f0 <rtems_termios_ioctl+0x21c><== NOT EXECUTED
!(tty->termios.c_cflag & CRTSCTS)) {
/* clear related flags in flow_ctrl */
tty->flow_ctrl &= ~(FL_MDRTS);
ffc068b4: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc068b8: 54 00 06 2c rlwinm r0,r0,0,24,22 <== NOT EXECUTED
ffc068bc: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED
/* restart remote Tx, if it was stopped */
if ((tty->flow_ctrl & FL_IRTSOFF) &&
ffc068c0: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc068c4: 70 09 00 04 andi. r9,r0,4 <== NOT EXECUTED
ffc068c8: 41 82 00 1c beq- ffc068e4 <rtems_termios_ioctl+0x210> <== NOT EXECUTED
(tty->device.startRemoteTx != NULL)) {
ffc068cc: 80 1f 00 b0 lwz r0,176(r31) <== 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) &&
ffc068d0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc068d4: 41 9e 00 10 beq- cr7,ffc068e4 <rtems_termios_ioctl+0x210><== NOT EXECUTED
(tty->device.startRemoteTx != NULL)) {
tty->device.startRemoteTx(tty->minor);
ffc068d8: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED
ffc068dc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc068e0: 4e 80 04 21 bctrl <== NOT EXECUTED
}
tty->flow_ctrl &= ~(FL_IRTSOFF);
ffc068e4: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc068e8: 54 00 07 b8 rlwinm r0,r0,0,30,28 <== NOT EXECUTED
ffc068ec: 90 1f 00 b8 stw r0,184(r31) <== 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) {
ffc068f0: 80 1f 00 38 lwz r0,56(r31)
ffc068f4: 2f 80 00 00 cmpwi cr7,r0,0
ffc068f8: 40 bc 00 10 bge+ cr7,ffc06908 <rtems_termios_ioctl+0x234>
tty->flow_ctrl |= FL_MDRTS;
ffc068fc: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc06900: 60 00 01 00 ori r0,r0,256 <== NOT EXECUTED
ffc06904: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED
}
/* check for incoming XON/XOF flow control switched on */
if (tty->termios.c_iflag & IXOFF) {
ffc06908: 80 1f 00 30 lwz r0,48(r31)
ffc0690c: 70 09 10 00 andi. r9,r0,4096
ffc06910: 41 82 00 10 beq- ffc06920 <rtems_termios_ioctl+0x24c>
tty->flow_ctrl |= FL_MDXOF;
ffc06914: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc06918: 60 00 04 00 ori r0,r0,1024 <== NOT EXECUTED
ffc0691c: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED
}
/* check for outgoing XON/XOF flow control switched on */
if (tty->termios.c_iflag & IXON) {
ffc06920: 80 1f 00 30 lwz r0,48(r31)
ffc06924: 70 09 04 00 andi. r9,r0,1024
ffc06928: 41 82 00 10 beq- ffc06938 <rtems_termios_ioctl+0x264>
tty->flow_ctrl |= FL_MDXON;
ffc0692c: 80 1f 00 b8 lwz r0,184(r31)
ffc06930: 60 00 02 00 ori r0,r0,512
ffc06934: 90 1f 00 b8 stw r0,184(r31)
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) {
ffc06938: 83 9f 00 3c lwz r28,60(r31)
ffc0693c: 73 9c 00 02 andi. r28,r28,2
ffc06940: 41 82 00 0c beq- ffc0694c <rtems_termios_ioctl+0x278>
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
ffc06944: 38 00 00 00 li r0,0
ffc06948: 48 00 00 54 b ffc0699c <rtems_termios_ioctl+0x2c8>
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;
ffc0694c: 8b 7f 00 46 lbz r27,70(r31) <== NOT EXECUTED
ffc06950: 48 00 0d 01 bl ffc07650 <rtems_clock_get_ticks_per_second><== NOT EXECUTED
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
}
else {
tty->vtimeTicks = tty->termios.c_cc[VTIME] *
ffc06954: 39 20 00 0a li r9,10 <== NOT EXECUTED
rtems_clock_get_ticks_per_second() / 10;
if (tty->termios.c_cc[VTIME]) {
ffc06958: 88 1f 00 46 lbz r0,70(r31) <== NOT EXECUTED
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
}
else {
tty->vtimeTicks = tty->termios.c_cc[VTIME] *
ffc0695c: 7f 63 d9 d6 mullw r27,r3,r27 <== NOT EXECUTED
rtems_clock_get_ticks_per_second() / 10;
if (tty->termios.c_cc[VTIME]) {
ffc06960: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
}
else {
tty->vtimeTicks = tty->termios.c_cc[VTIME] *
ffc06964: 7f 7b 4b 96 divwu r27,r27,r9 <== NOT EXECUTED
ffc06968: 89 3f 00 47 lbz r9,71(r31) <== NOT EXECUTED
ffc0696c: 93 7f 00 54 stw r27,84(r31) <== NOT EXECUTED
rtems_clock_get_ticks_per_second() / 10;
if (tty->termios.c_cc[VTIME]) {
ffc06970: 41 9e 00 24 beq- cr7,ffc06994 <rtems_termios_ioctl+0x2c0><== NOT EXECUTED
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;
if (tty->termios.c_cc[VMIN])
ffc06974: 2f 89 00 00 cmpwi cr7,r9,0 <== 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;
ffc06978: 93 9f 00 6c stw r28,108(r31) <== NOT EXECUTED
tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;
ffc0697c: 93 7f 00 70 stw r27,112(r31) <== NOT EXECUTED
if (tty->termios.c_cc[VMIN])
ffc06980: 41 9e 00 0c beq- cr7,ffc0698c <rtems_termios_ioctl+0x2b8><== NOT EXECUTED
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
ffc06984: 93 9f 00 74 stw r28,116(r31) <== NOT EXECUTED
ffc06988: 48 00 00 2c b ffc069b4 <rtems_termios_ioctl+0x2e0> <== NOT EXECUTED
else
tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;
ffc0698c: 93 7f 00 74 stw r27,116(r31) <== NOT EXECUTED
ffc06990: 48 00 00 24 b ffc069b4 <rtems_termios_ioctl+0x2e0> <== NOT EXECUTED
}
else {
if (tty->termios.c_cc[VMIN]) {
ffc06994: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc06998: 41 9e 00 14 beq- cr7,ffc069ac <rtems_termios_ioctl+0x2d8><== NOT EXECUTED
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
ffc0699c: 90 1f 00 74 stw r0,116(r31)
else
tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;
}
else {
if (tty->termios.c_cc[VMIN]) {
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
ffc069a0: 90 1f 00 6c stw r0,108(r31)
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
ffc069a4: 90 1f 00 70 stw r0,112(r31)
ffc069a8: 48 00 00 0c b ffc069b4 <rtems_termios_ioctl+0x2e0>
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
}
else {
tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;
ffc069ac: 38 00 00 01 li r0,1 <== NOT EXECUTED
ffc069b0: 90 1f 00 6c stw r0,108(r31) <== NOT EXECUTED
}
}
}
if (tty->device.setAttributes)
ffc069b4: 80 1f 00 a8 lwz r0,168(r31)
ffc069b8: 2f 80 00 00 cmpwi cr7,r0,0
ffc069bc: 41 9e 00 f8 beq- cr7,ffc06ab4 <rtems_termios_ioctl+0x3e0>
(*tty->device.setAttributes)(tty->minor, &tty->termios);
ffc069c0: 80 7f 00 10 lwz r3,16(r31)
ffc069c4: 38 9f 00 30 addi r4,r31,48
ffc069c8: 7c 09 03 a6 mtctr r0
ffc069cc: 4e 80 04 21 bctrl
ffc069d0: 48 00 00 e4 b ffc06ab4 <rtems_termios_ioctl+0x3e0>
break;
case RTEMS_IO_TCDRAIN:
drainOutput (tty);
ffc069d4: 7f e3 fb 78 mr r3,r31
ffc069d8: 4b ff f8 a1 bl ffc06278 <drainOutput>
break;
ffc069dc: 48 00 00 d8 b ffc06ab4 <rtems_termios_ioctl+0x3e0>
case RTEMS_IO_SNDWAKEUP:
tty->tty_snd = *wakeup;
ffc069e0: 81 3c 00 00 lwz r9,0(r28) <== NOT EXECUTED
ffc069e4: 81 5c 00 04 lwz r10,4(r28) <== NOT EXECUTED
ffc069e8: 91 3f 00 d4 stw r9,212(r31) <== NOT EXECUTED
ffc069ec: 91 5f 00 d8 stw r10,216(r31) <== NOT EXECUTED
break;
ffc069f0: 48 00 00 c4 b ffc06ab4 <rtems_termios_ioctl+0x3e0> <== NOT EXECUTED
case RTEMS_IO_RCVWAKEUP:
tty->tty_rcv = *wakeup;
ffc069f4: 81 3c 00 00 lwz r9,0(r28) <== NOT EXECUTED
ffc069f8: 81 5c 00 04 lwz r10,4(r28) <== NOT EXECUTED
ffc069fc: 91 3f 00 dc stw r9,220(r31) <== NOT EXECUTED
ffc06a00: 91 5f 00 e0 stw r10,224(r31) <== NOT EXECUTED
break;
ffc06a04: 48 00 00 b0 b ffc06ab4 <rtems_termios_ioctl+0x3e0> <== NOT EXECUTED
#if 1 /* FIXME */
case TIOCSETD:
/*
* close old line discipline
*/
if (rtems_termios_linesw[tty->t_line].l_close != NULL) {
ffc06a08: 80 1f 00 cc lwz r0,204(r31) <== NOT EXECUTED
ffc06a0c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc06a10: 39 29 28 88 addi r9,r9,10376 <== NOT EXECUTED
ffc06a14: 54 00 28 34 rlwinm r0,r0,5,0,26 <== NOT EXECUTED
ffc06a18: 7d 29 02 14 add r9,r9,r0 <== NOT EXECUTED
ffc06a1c: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED
ffc06a20: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc06a24: 41 9e 00 14 beq- cr7,ffc06a38 <rtems_termios_ioctl+0x364><== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_close(tty);
ffc06a28: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc06a2c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc06a30: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc06a34: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED
}
tty->t_line=*(int*)(args->buffer);
ffc06a38: 81 3e 00 08 lwz r9,8(r30) <== 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) {
ffc06a3c: 3d 60 00 00 lis r11,0 <== NOT EXECUTED
ffc06a40: 39 6b 28 88 addi r11,r11,10376 <== 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);
ffc06a44: 81 29 00 00 lwz r9,0(r9) <== 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) {
ffc06a48: 55 20 28 34 rlwinm r0,r9,5,0,26 <== 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);
ffc06a4c: 91 3f 00 cc stw r9,204(r31) <== 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) {
ffc06a50: 7c 0b 00 2e lwzx r0,r11,r0 <== NOT EXECUTED
*/
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);
tty->t_sc = NULL; /* ensure that no more valid data */
ffc06a54: 39 60 00 00 li r11,0 <== NOT EXECUTED
ffc06a58: 91 7f 00 d0 stw r11,208(r31) <== NOT EXECUTED
/*
* open new line discipline
*/
if (rtems_termios_linesw[tty->t_line].l_open != NULL) {
ffc06a5c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc06a60: 41 9e 00 54 beq- cr7,ffc06ab4 <rtems_termios_ioctl+0x3e0><== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_open(tty);
ffc06a64: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc06a68: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc06a6c: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc06a70: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED
ffc06a74: 48 00 00 40 b ffc06ab4 <rtems_termios_ioctl+0x3e0> <== NOT EXECUTED
}
break;
case TIOCGETD:
*(int*)(args->buffer)=tty->t_line;
ffc06a78: 81 3e 00 08 lwz r9,8(r30) <== NOT EXECUTED
ffc06a7c: 80 1f 00 cc lwz r0,204(r31) <== NOT EXECUTED
ffc06a80: 48 00 00 30 b ffc06ab0 <rtems_termios_ioctl+0x3dc> <== NOT EXECUTED
break;
#endif
case FIONREAD:
{
int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;
ffc06a84: 81 3f 00 60 lwz r9,96(r31) <== NOT EXECUTED
ffc06a88: 80 1f 00 5c lwz r0,92(r31) <== NOT EXECUTED
if ( rawnc < 0 )
ffc06a8c: 7c 00 48 51 subf. r0,r0,r9 <== NOT EXECUTED
ffc06a90: 40 a0 00 0c bge+ ffc06a9c <rtems_termios_ioctl+0x3c8> <== NOT EXECUTED
rawnc += tty->rawInBuf.Size;
ffc06a94: 81 3f 00 64 lwz r9,100(r31) <== NOT EXECUTED
ffc06a98: 7c 00 4a 14 add r0,r0,r9 <== NOT EXECUTED
/* Half guess that this is the right operation */
*(int *)args->buffer = tty->ccount - tty->cindex + rawnc;
ffc06a9c: 81 5f 00 20 lwz r10,32(r31) <== NOT EXECUTED
ffc06aa0: 81 7f 00 24 lwz r11,36(r31) <== NOT EXECUTED
ffc06aa4: 81 3e 00 08 lwz r9,8(r30) <== NOT EXECUTED
ffc06aa8: 7d 6b 50 50 subf r11,r11,r10 <== NOT EXECUTED
ffc06aac: 7c 0b 02 14 add r0,r11,r0 <== NOT EXECUTED
ffc06ab0: 90 09 00 00 stw r0,0(r9) <== NOT EXECUTED
}
break;
}
rtems_semaphore_release (tty->osem);
ffc06ab4: 80 7f 00 18 lwz r3,24(r31)
ffc06ab8: 48 00 14 39 bl ffc07ef0 <rtems_semaphore_release>
args->ioctl_return = sc;
return sc;
}
ffc06abc: 80 01 00 24 lwz r0,36(r1)
ffc06ac0: 7f a3 eb 78 mr r3,r29
*(int *)args->buffer = tty->ccount - tty->cindex + rawnc;
}
break;
}
rtems_semaphore_release (tty->osem);
args->ioctl_return = sc;
ffc06ac4: 93 be 00 0c stw r29,12(r30)
return sc;
}
ffc06ac8: 7c 08 03 a6 mtlr r0
ffc06acc: 83 61 00 0c lwz r27,12(r1)
ffc06ad0: 83 81 00 10 lwz r28,16(r1)
ffc06ad4: 83 a1 00 14 lwz r29,20(r1)
ffc06ad8: 83 c1 00 18 lwz r30,24(r1)
ffc06adc: 83 e1 00 1c lwz r31,28(r1)
ffc06ae0: 38 21 00 20 addi r1,r1,32
ffc06ae4: 4e 80 00 20 blr
ffc06cb8 <rtems_termios_open>:
rtems_device_major_number major,
rtems_device_minor_number minor,
void *arg,
const rtems_termios_callbacks *callbacks
)
{
ffc06cb8: 94 21 ff d0 stwu r1,-48(r1)
struct rtems_termios_tty *tty;
/*
* See if the device has already been opened
*/
sc = rtems_semaphore_obtain (rtems_termios_ttyMutex,
ffc06cbc: 3d 20 00 00 lis r9,0
rtems_device_major_number major,
rtems_device_minor_number minor,
void *arg,
const rtems_termios_callbacks *callbacks
)
{
ffc06cc0: 7c 08 02 a6 mflr r0
ffc06cc4: 93 61 00 1c stw r27,28(r1)
ffc06cc8: 7c 7b 1b 78 mr r27,r3
struct rtems_termios_tty *tty;
/*
* See if the device has already been opened
*/
sc = rtems_semaphore_obtain (rtems_termios_ttyMutex,
ffc06ccc: 80 69 27 58 lwz r3,10072(r9)
rtems_device_major_number major,
rtems_device_minor_number minor,
void *arg,
const rtems_termios_callbacks *callbacks
)
{
ffc06cd0: 93 21 00 14 stw r25,20(r1)
ffc06cd4: 7c b9 2b 78 mr r25,r5
struct rtems_termios_tty *tty;
/*
* See if the device has already been opened
*/
sc = rtems_semaphore_obtain (rtems_termios_ttyMutex,
ffc06cd8: 38 a0 00 00 li r5,0
rtems_device_major_number major,
rtems_device_minor_number minor,
void *arg,
const rtems_termios_callbacks *callbacks
)
{
ffc06cdc: 93 41 00 18 stw r26,24(r1)
ffc06ce0: 7c 9a 23 78 mr r26,r4
struct rtems_termios_tty *tty;
/*
* See if the device has already been opened
*/
sc = rtems_semaphore_obtain (rtems_termios_ttyMutex,
ffc06ce4: 38 80 00 00 li r4,0
rtems_device_major_number major,
rtems_device_minor_number minor,
void *arg,
const rtems_termios_callbacks *callbacks
)
{
ffc06ce8: 93 01 00 10 stw r24,16(r1)
ffc06cec: 7c d8 33 78 mr r24,r6
ffc06cf0: 93 a1 00 24 stw r29,36(r1)
ffc06cf4: 90 01 00 34 stw r0,52(r1)
ffc06cf8: 92 e1 00 0c stw r23,12(r1)
ffc06cfc: 93 81 00 20 stw r28,32(r1)
ffc06d00: 93 c1 00 28 stw r30,40(r1)
ffc06d04: 93 e1 00 2c stw r31,44(r1)
struct rtems_termios_tty *tty;
/*
* See if the device has already been opened
*/
sc = rtems_semaphore_obtain (rtems_termios_ttyMutex,
ffc06d08: 48 00 10 a5 bl ffc07dac <rtems_semaphore_obtain>
RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
ffc06d0c: 7c 7d 1b 79 mr. r29,r3
ffc06d10: 40 82 03 f8 bne- ffc07108 <rtems_termios_open+0x450>
return sc;
for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) {
ffc06d14: 3d 20 00 00 lis r9,0
ffc06d18: 83 c9 27 60 lwz r30,10080(r9)
ffc06d1c: 48 00 00 20 b ffc06d3c <rtems_termios_open+0x84>
if ((tty->major == major) && (tty->minor == minor))
ffc06d20: 80 1e 00 0c lwz r0,12(r30)
ffc06d24: 7f 80 d8 00 cmpw cr7,r0,r27
ffc06d28: 40 be 00 10 bne+ cr7,ffc06d38 <rtems_termios_open+0x80>
ffc06d2c: 80 1e 00 10 lwz r0,16(r30)
ffc06d30: 7f 80 d0 00 cmpw cr7,r0,r26
ffc06d34: 41 9e 03 44 beq- cr7,ffc07078 <rtems_termios_open+0x3c0>
*/
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) {
ffc06d38: 83 de 00 00 lwz r30,0(r30)
ffc06d3c: 2f 9e 00 00 cmpwi cr7,r30,0
ffc06d40: 40 9e ff e0 bne+ cr7,ffc06d20 <rtems_termios_open+0x68>
ffc06d44: 48 00 03 fc b ffc07140 <rtems_termios_open+0x488>
return RTEMS_NO_MEMORY;
}
/*
* allocate raw input buffer
*/
tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;
ffc06d48: 3f 80 00 00 lis r28,0
ffc06d4c: 3a fc 21 68 addi r23,r28,8552
ffc06d50: 80 17 00 04 lwz r0,4(r23)
ffc06d54: 90 1e 00 64 stw r0,100(r30)
tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);
ffc06d58: 80 7e 00 64 lwz r3,100(r30)
ffc06d5c: 4b ff d8 4d bl ffc045a8 <malloc>
if (tty->rawInBuf.theBuf == NULL) {
ffc06d60: 2f 83 00 00 cmpwi cr7,r3,0
}
/*
* allocate raw input buffer
*/
tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;
tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);
ffc06d64: 90 7e 00 58 stw r3,88(r30)
if (tty->rawInBuf.theBuf == NULL) {
ffc06d68: 40 be 00 1c bne+ cr7,ffc06d84 <rtems_termios_open+0xcc>
free(tty);
ffc06d6c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc06d70: 4b ff d4 d5 bl ffc04244 <free> <== NOT EXECUTED
rtems_semaphore_release (rtems_termios_ttyMutex);
ffc06d74: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc06d78: 80 69 27 58 lwz r3,10072(r9) <== NOT EXECUTED
ffc06d7c: 3b a0 00 1a li r29,26 <== NOT EXECUTED
ffc06d80: 48 00 03 84 b ffc07104 <rtems_termios_open+0x44c> <== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
/*
* allocate raw output buffer
*/
tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;
ffc06d84: 80 17 00 08 lwz r0,8(r23)
ffc06d88: 90 1e 00 88 stw r0,136(r30)
tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);
ffc06d8c: 80 7e 00 88 lwz r3,136(r30)
ffc06d90: 4b ff d8 19 bl ffc045a8 <malloc>
if (tty->rawOutBuf.theBuf == NULL) {
ffc06d94: 2f 83 00 00 cmpwi cr7,r3,0
}
/*
* allocate raw output buffer
*/
tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;
tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);
ffc06d98: 90 7e 00 7c stw r3,124(r30)
if (tty->rawOutBuf.theBuf == NULL) {
ffc06d9c: 40 be 00 10 bne+ cr7,ffc06dac <rtems_termios_open+0xf4>
free((void *)(tty->rawInBuf.theBuf));
ffc06da0: 80 7e 00 58 lwz r3,88(r30) <== NOT EXECUTED
free(tty);
rtems_semaphore_release (rtems_termios_ttyMutex);
ffc06da4: 3b a0 00 1a li r29,26 <== NOT EXECUTED
ffc06da8: 48 00 00 28 b ffc06dd0 <rtems_termios_open+0x118> <== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
/*
* allocate cooked buffer
*/
tty->cbuf = malloc (CBUFSIZE);
ffc06dac: 80 7c 21 68 lwz r3,8552(r28)
ffc06db0: 4b ff d7 f9 bl ffc045a8 <malloc>
if (tty->cbuf == NULL) {
ffc06db4: 2f 83 00 00 cmpwi cr7,r3,0
return RTEMS_NO_MEMORY;
}
/*
* allocate cooked buffer
*/
tty->cbuf = malloc (CBUFSIZE);
ffc06db8: 90 7e 00 1c stw r3,28(r30)
if (tty->cbuf == NULL) {
ffc06dbc: 40 be 00 24 bne+ cr7,ffc06de0 <rtems_termios_open+0x128>
free((void *)(tty->rawOutBuf.theBuf));
ffc06dc0: 80 7e 00 7c lwz r3,124(r30) <== NOT EXECUTED
free((void *)(tty->rawInBuf.theBuf));
free(tty);
rtems_semaphore_release (rtems_termios_ttyMutex);
ffc06dc4: 3b a0 00 1a li r29,26 <== NOT EXECUTED
/*
* allocate cooked buffer
*/
tty->cbuf = malloc (CBUFSIZE);
if (tty->cbuf == NULL) {
free((void *)(tty->rawOutBuf.theBuf));
ffc06dc8: 4b ff d4 7d bl ffc04244 <free> <== NOT EXECUTED
free((void *)(tty->rawInBuf.theBuf));
ffc06dcc: 80 7e 00 58 lwz r3,88(r30) <== NOT EXECUTED
ffc06dd0: 4b ff d4 75 bl ffc04244 <free> <== NOT EXECUTED
free(tty);
ffc06dd4: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc06dd8: 4b ff d4 6d bl ffc04244 <free> <== NOT EXECUTED
ffc06ddc: 48 00 03 20 b ffc070fc <rtems_termios_open+0x444> <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
/*
* link tty
*/
tty->forw = rtems_termios_ttyHead;
ffc06de0: 3d 20 00 00 lis r9,0
ffc06de4: 81 29 27 60 lwz r9,10080(r9)
return RTEMS_NO_MEMORY;
}
/*
* Initialize wakeup callbacks
*/
tty->tty_snd.sw_pfn = NULL;
ffc06de8: 38 00 00 00 li r0,0
/*
* link tty
*/
tty->forw = rtems_termios_ttyHead;
tty->back = NULL;
ffc06dec: 90 1e 00 04 stw r0,4(r30)
if (rtems_termios_ttyHead != NULL)
ffc06df0: 2f 89 00 00 cmpwi cr7,r9,0
return RTEMS_NO_MEMORY;
}
/*
* Initialize wakeup callbacks
*/
tty->tty_snd.sw_pfn = NULL;
ffc06df4: 90 1e 00 d4 stw r0,212(r30)
tty->tty_snd.sw_arg = NULL;
ffc06df8: 90 1e 00 d8 stw r0,216(r30)
tty->tty_rcv.sw_pfn = NULL;
ffc06dfc: 90 1e 00 dc stw r0,220(r30)
tty->tty_rcv.sw_arg = NULL;
ffc06e00: 90 1e 00 e0 stw r0,224(r30)
tty->tty_rcvwakeup = 0;
ffc06e04: 90 1e 00 e4 stw r0,228(r30)
/*
* link tty
*/
tty->forw = rtems_termios_ttyHead;
ffc06e08: 91 3e 00 00 stw r9,0(r30)
tty->back = NULL;
if (rtems_termios_ttyHead != NULL)
ffc06e0c: 41 9e 00 08 beq- cr7,ffc06e14 <rtems_termios_open+0x15c>
rtems_termios_ttyHead->back = tty;
ffc06e10: 93 c9 00 04 stw r30,4(r9)
rtems_termios_ttyHead = tty;
if (rtems_termios_ttyTail == NULL)
ffc06e14: 3d 20 00 00 lis r9,0
ffc06e18: 80 09 27 5c lwz r0,10076(r9)
*/
tty->forw = rtems_termios_ttyHead;
tty->back = NULL;
if (rtems_termios_ttyHead != NULL)
rtems_termios_ttyHead->back = tty;
rtems_termios_ttyHead = tty;
ffc06e1c: 3d 60 00 00 lis r11,0
ffc06e20: 93 eb 27 60 stw r31,10080(r11)
if (rtems_termios_ttyTail == NULL)
ffc06e24: 2f 80 00 00 cmpwi cr7,r0,0
ffc06e28: 40 be 00 08 bne+ cr7,ffc06e30 <rtems_termios_open+0x178>
rtems_termios_ttyTail = tty;
ffc06e2c: 93 e9 27 5c stw r31,10076(r9)
tty->major = major;
/*
* Set up mutex semaphores
*/
sc = rtems_semaphore_create (
ffc06e30: 3f 80 00 00 lis r28,0
ffc06e34: 3b 9c 21 68 addi r28,r28,8552
ffc06e38: 88 7c 00 0c lbz r3,12(r28)
ffc06e3c: 38 80 00 01 li r4,1
rtems_termios_ttyHead->back = tty;
rtems_termios_ttyHead = tty;
if (rtems_termios_ttyTail == NULL)
rtems_termios_ttyTail = tty;
tty->minor = minor;
ffc06e40: 93 5f 00 10 stw r26,16(r31)
tty->major = major;
/*
* Set up mutex semaphores
*/
sc = rtems_semaphore_create (
ffc06e44: 38 a0 00 54 li r5,84
ffc06e48: 64 63 54 52 oris r3,r3,21586
rtems_termios_ttyHead = tty;
if (rtems_termios_ttyTail == NULL)
rtems_termios_ttyTail = tty;
tty->minor = minor;
tty->major = major;
ffc06e4c: 93 7f 00 0c stw r27,12(r31)
/*
* Set up mutex semaphores
*/
sc = rtems_semaphore_create (
ffc06e50: 60 63 69 00 ori r3,r3,26880
ffc06e54: 38 c0 00 00 li r6,0
ffc06e58: 38 ff 00 14 addi r7,r31,20
ffc06e5c: 48 00 0c 81 bl ffc07adc <rtems_semaphore_create>
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)
ffc06e60: 2f 83 00 00 cmpwi cr7,r3,0
ffc06e64: 40 9e 02 94 bne- cr7,ffc070f8 <rtems_termios_open+0x440>
rtems_fatal_error_occurred (sc);
sc = rtems_semaphore_create (
ffc06e68: 88 7c 00 0c lbz r3,12(r28)
ffc06e6c: 38 80 00 01 li r4,1
ffc06e70: 38 a0 00 54 li r5,84
ffc06e74: 64 63 54 52 oris r3,r3,21586
ffc06e78: 60 63 6f 00 ori r3,r3,28416
ffc06e7c: 38 c0 00 00 li r6,0
ffc06e80: 38 ff 00 18 addi r7,r31,24
ffc06e84: 48 00 0c 59 bl ffc07adc <rtems_semaphore_create>
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)
ffc06e88: 2f 83 00 00 cmpwi cr7,r3,0
ffc06e8c: 40 9e 02 6c bne- cr7,ffc070f8 <rtems_termios_open+0x440>
rtems_fatal_error_occurred (sc);
sc = rtems_semaphore_create (
ffc06e90: 88 7c 00 0c lbz r3,12(r28)
ffc06e94: 38 80 00 00 li r4,0
ffc06e98: 38 a0 00 20 li r5,32
ffc06e9c: 64 63 54 52 oris r3,r3,21586
ffc06ea0: 60 63 78 00 ori r3,r3,30720
ffc06ea4: 38 c0 00 00 li r6,0
ffc06ea8: 38 ff 00 8c addi r7,r31,140
ffc06eac: 48 00 0c 31 bl ffc07adc <rtems_semaphore_create>
rtems_build_name ('T', 'R', 'x', c),
0,
RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO,
RTEMS_NO_PRIORITY,
&tty->rawOutBuf.Semaphore);
if (sc != RTEMS_SUCCESSFUL)
ffc06eb0: 7c 60 1b 79 mr. r0,r3
ffc06eb4: 40 82 02 44 bne- ffc070f8 <rtems_termios_open+0x440>
tty->rawOutBufState = rob_idle;
/*
* Set callbacks
*/
tty->device = *callbacks;
ffc06eb8: 81 18 00 00 lwz r8,0(r24)
ffc06ebc: 81 58 00 04 lwz r10,4(r24)
ffc06ec0: 81 78 00 08 lwz r11,8(r24)
ffc06ec4: 81 38 00 0c lwz r9,12(r24)
ffc06ec8: 91 1f 00 98 stw r8,152(r31)
ffc06ecc: 91 5f 00 9c stw r10,156(r31)
ffc06ed0: 91 7f 00 a0 stw r11,160(r31)
ffc06ed4: 91 3f 00 a4 stw r9,164(r31)
ffc06ed8: 81 38 00 1c lwz r9,28(r24)
ffc06edc: 81 18 00 10 lwz r8,16(r24)
/*
* Create I/O tasks
*/
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
ffc06ee0: 2f 89 00 02 cmpwi cr7,r9,2
tty->rawOutBufState = rob_idle;
/*
* Set callbacks
*/
tty->device = *callbacks;
ffc06ee4: 81 58 00 14 lwz r10,20(r24)
ffc06ee8: 81 78 00 18 lwz r11,24(r24)
RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO,
RTEMS_NO_PRIORITY,
&tty->rawOutBuf.Semaphore);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
tty->rawOutBufState = rob_idle;
ffc06eec: 90 1f 00 94 stw r0,148(r31)
/*
* Set callbacks
*/
tty->device = *callbacks;
ffc06ef0: 91 1f 00 a8 stw r8,168(r31)
ffc06ef4: 91 5f 00 ac stw r10,172(r31)
ffc06ef8: 91 7f 00 b0 stw r11,176(r31)
ffc06efc: 91 3f 00 b4 stw r9,180(r31)
/*
* Create I/O tasks
*/
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
ffc06f00: 40 be 00 5c bne+ cr7,ffc06f5c <rtems_termios_open+0x2a4>
sc = rtems_task_create (
ffc06f04: 88 7c 00 0c lbz r3,12(r28) <== NOT EXECUTED
ffc06f08: 38 80 00 0a li r4,10 <== NOT EXECUTED
ffc06f0c: 38 a0 04 00 li r5,1024 <== NOT EXECUTED
ffc06f10: 64 63 54 78 oris r3,r3,21624 <== NOT EXECUTED
ffc06f14: 60 63 54 00 ori r3,r3,21504 <== NOT EXECUTED
ffc06f18: 38 c0 05 00 li r6,1280 <== NOT EXECUTED
ffc06f1c: 38 e0 00 00 li r7,0 <== NOT EXECUTED
ffc06f20: 39 1f 00 c8 addi r8,r31,200 <== NOT EXECUTED
ffc06f24: 48 00 10 95 bl ffc07fb8 <rtems_task_create> <== 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)
ffc06f28: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc06f2c: 40 9e 01 cc bne- cr7,ffc070f8 <rtems_termios_open+0x440><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
sc = rtems_task_create (
ffc06f30: 88 7c 00 0c lbz r3,12(r28) <== NOT EXECUTED
ffc06f34: 38 80 00 09 li r4,9 <== NOT EXECUTED
ffc06f38: 38 a0 04 00 li r5,1024 <== NOT EXECUTED
ffc06f3c: 64 63 52 78 oris r3,r3,21112 <== NOT EXECUTED
ffc06f40: 60 63 54 00 ori r3,r3,21504 <== NOT EXECUTED
ffc06f44: 38 c0 05 00 li r6,1280 <== NOT EXECUTED
ffc06f48: 38 e0 00 00 li r7,0 <== NOT EXECUTED
ffc06f4c: 39 1f 00 c4 addi r8,r31,196 <== NOT EXECUTED
ffc06f50: 48 00 10 69 bl ffc07fb8 <rtems_task_create> <== 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)
ffc06f54: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc06f58: 40 9e 01 a0 bne- cr7,ffc070f8 <rtems_termios_open+0x440><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
}
if ((tty->device.pollRead == NULL) ||
ffc06f5c: 80 1f 00 a0 lwz r0,160(r31)
ffc06f60: 2f 80 00 00 cmpwi cr7,r0,0
ffc06f64: 41 9e 00 10 beq- cr7,ffc06f74 <rtems_termios_open+0x2bc>
(tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){
ffc06f68: 80 1f 00 b4 lwz r0,180(r31)
ffc06f6c: 2f 80 00 02 cmpwi cr7,r0,2
ffc06f70: 40 be 00 30 bne+ cr7,ffc06fa0 <rtems_termios_open+0x2e8>
sc = rtems_semaphore_create (
ffc06f74: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc06f78: 88 69 21 74 lbz r3,8564(r9) <== NOT EXECUTED
ffc06f7c: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc06f80: 38 a0 00 24 li r5,36 <== NOT EXECUTED
ffc06f84: 64 63 54 52 oris r3,r3,21586 <== NOT EXECUTED
ffc06f88: 60 63 72 00 ori r3,r3,29184 <== NOT EXECUTED
ffc06f8c: 38 c0 00 00 li r6,0 <== NOT EXECUTED
ffc06f90: 38 ff 00 68 addi r7,r31,104 <== NOT EXECUTED
ffc06f94: 48 00 0b 49 bl ffc07adc <rtems_semaphore_create> <== 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)
ffc06f98: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc06f9c: 40 9e 01 5c bne- cr7,ffc070f8 <rtems_termios_open+0x440><== NOT EXECUTED
tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;
tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;
tty->termios.c_cc[VINTR] = '\003';
tty->termios.c_cc[VQUIT] = '\034';
tty->termios.c_cc[VERASE] = '\177';
ffc06fa0: 39 60 00 7f li r11,127
ffc06fa4: 99 7f 00 43 stb r11,67(r31)
tty->termios.c_cc[VKILL] = '\025';
ffc06fa8: 39 60 00 15 li r11,21
tty->termios.c_cc[VEOF] = '\004';
tty->termios.c_cc[VEOL] = '\000';
ffc06fac: 38 00 00 00 li r0,0
tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;
tty->termios.c_cc[VINTR] = '\003';
tty->termios.c_cc[VQUIT] = '\034';
tty->termios.c_cc[VERASE] = '\177';
tty->termios.c_cc[VKILL] = '\025';
ffc06fb0: 99 7f 00 44 stb r11,68(r31)
tty->termios.c_cc[VEOF] = '\004';
ffc06fb4: 39 60 00 04 li r11,4
tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;
tty->termios.c_oflag = OPOST | ONLCR | XTABS;
tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;
tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;
tty->termios.c_cc[VINTR] = '\003';
ffc06fb8: 39 20 00 03 li r9,3
tty->termios.c_cc[VQUIT] = '\034';
tty->termios.c_cc[VERASE] = '\177';
tty->termios.c_cc[VKILL] = '\025';
tty->termios.c_cc[VEOF] = '\004';
ffc06fbc: 99 7f 00 45 stb r11,69(r31)
tty->termios.c_cc[VEOL] = '\000';
tty->termios.c_cc[VEOL2] = '\000';
tty->termios.c_cc[VSTART] = '\021';
ffc06fc0: 39 60 00 11 li r11,17
}
/*
* Set default parameters
*/
tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;
ffc06fc4: 39 00 25 02 li r8,9474
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';
tty->termios.c_cc[VSTART] = '\021';
ffc06fc8: 99 7f 00 49 stb r11,73(r31)
tty->termios.c_cc[VSTOP] = '\023';
ffc06fcc: 39 60 00 13 li r11,19
ffc06fd0: 99 7f 00 4a stb r11,74(r31)
tty->termios.c_cc[VSUSP] = '\032';
ffc06fd4: 39 60 00 1a li r11,26
ffc06fd8: 99 7f 00 4b stb r11,75(r31)
tty->termios.c_cc[VREPRINT] = '\022';
ffc06fdc: 39 60 00 12 li r11,18
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';
ffc06fe0: 98 1f 00 51 stb r0,81(r31)
tty->termios.c_cc[VSTART] = '\021';
tty->termios.c_cc[VSTOP] = '\023';
tty->termios.c_cc[VSUSP] = '\032';
tty->termios.c_cc[VREPRINT] = '\022';
ffc06fe4: 99 7f 00 4d stb r11,77(r31)
tty->termios.c_cc[VDISCARD] = '\017';
ffc06fe8: 39 60 00 0f li r11,15
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';
ffc06fec: 98 1f 00 4c stb r0,76(r31)
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;
ffc06ff0: 38 00 00 00 li r0,0
ffc06ff4: 90 1f 00 b8 stw r0,184(r31)
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';
ffc06ff8: 99 7f 00 4e stb r11,78(r31)
tty->termios.c_cc[VWERASE] = '\027';
ffc06ffc: 39 60 00 17 li r11,23
tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;
tty->termios.c_oflag = OPOST | ONLCR | XTABS;
tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;
tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;
tty->termios.c_cc[VINTR] = '\003';
ffc07000: 99 3f 00 41 stb r9,65(r31)
tty->termios.c_cc[VQUIT] = '\034';
ffc07004: 39 20 00 1c li r9,28
tty->termios.c_cc[VSTART] = '\021';
tty->termios.c_cc[VSTOP] = '\023';
tty->termios.c_cc[VSUSP] = '\032';
tty->termios.c_cc[VREPRINT] = '\022';
tty->termios.c_cc[VDISCARD] = '\017';
tty->termios.c_cc[VWERASE] = '\027';
ffc07008: 99 7f 00 4f stb r11,79(r31)
tty->termios.c_cc[VLNEXT] = '\026';
ffc0700c: 39 60 00 16 li r11,22
tty->termios.c_oflag = OPOST | ONLCR | XTABS;
tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;
tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;
tty->termios.c_cc[VINTR] = '\003';
tty->termios.c_cc[VQUIT] = '\034';
ffc07010: 99 3f 00 42 stb r9,66(r31)
tty->lowwater = tty->rawInBuf.Size * 1/2;
tty->highwater = tty->rawInBuf.Size * 3/4;
/*
* Bump name characer
*/
if (c++ == 'z')
ffc07014: 3d 20 00 00 lis r9,0
ffc07018: 39 29 21 68 addi r9,r9,8552
/* 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;
ffc0701c: 80 1f 00 64 lwz r0,100(r31)
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';
ffc07020: 99 7f 00 50 stb r11,80(r31)
/* 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;
ffc07024: 54 00 f8 7e rlwinm r0,r0,31,1,31
tty->highwater = tty->rawInBuf.Size * 3/4;
ffc07028: 81 5f 00 64 lwz r10,100(r31)
/*
* Bump name characer
*/
if (c++ == 'z')
ffc0702c: 89 69 00 0c lbz r11,12(r9)
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;
ffc07030: 1d 4a 00 03 mulli r10,r10,3
}
/*
* Set default parameters
*/
tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;
ffc07034: 91 1f 00 30 stw r8,48(r31)
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;
ffc07038: 55 4a f0 be rlwinm r10,r10,30,2,31
/* 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;
ffc0703c: 90 1f 00 bc stw r0,188(r31)
tty->highwater = tty->rawInBuf.Size * 3/4;
/*
* Bump name characer
*/
if (c++ == 'z')
ffc07040: 2f 8b 00 7a cmpwi cr7,r11,122
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;
ffc07044: 91 5f 00 c0 stw r10,192(r31)
/*
* Set default parameters
*/
tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;
tty->termios.c_oflag = OPOST | ONLCR | XTABS;
ffc07048: 39 40 18 05 li r10,6149
tty->lowwater = tty->rawInBuf.Size * 1/2;
tty->highwater = tty->rawInBuf.Size * 3/4;
/*
* Bump name characer
*/
if (c++ == 'z')
ffc0704c: 39 6b 00 01 addi r11,r11,1
/*
* Set default parameters
*/
tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;
tty->termios.c_oflag = OPOST | ONLCR | XTABS;
ffc07050: 91 5f 00 34 stw r10,52(r31)
tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;
ffc07054: 39 40 08 bd li r10,2237
ffc07058: 91 5f 00 38 stw r10,56(r31)
tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;
ffc0705c: 39 40 00 00 li r10,0
ffc07060: 61 4a 82 3b ori r10,r10,33339
ffc07064: 91 5f 00 3c stw r10,60(r31)
tty->lowwater = tty->rawInBuf.Size * 1/2;
tty->highwater = tty->rawInBuf.Size * 3/4;
/*
* Bump name characer
*/
if (c++ == 'z')
ffc07068: 99 69 00 0c stb r11,12(r9)
ffc0706c: 40 be 00 0c bne+ cr7,ffc07078 <rtems_termios_open+0x3c0>
c = 'a';
ffc07070: 38 00 00 61 li r0,97 <== NOT EXECUTED
ffc07074: 98 09 00 0c stb r0,12(r9) <== NOT EXECUTED
}
args->iop->data1 = tty;
if (!tty->refcount++) {
ffc07078: 81 3e 00 08 lwz r9,8(r30)
*/
if (c++ == 'z')
c = 'a';
}
args->iop->data1 = tty;
ffc0707c: 81 79 00 00 lwz r11,0(r25)
if (!tty->refcount++) {
ffc07080: 2f 89 00 00 cmpwi cr7,r9,0
ffc07084: 39 29 00 01 addi r9,r9,1
*/
if (c++ == 'z')
c = 'a';
}
args->iop->data1 = tty;
ffc07088: 93 cb 00 38 stw r30,56(r11)
if (!tty->refcount++) {
ffc0708c: 91 3e 00 08 stw r9,8(r30)
ffc07090: 40 9e 00 6c bne- cr7,ffc070fc <rtems_termios_open+0x444>
if (tty->device.firstOpen)
ffc07094: 80 1e 00 98 lwz r0,152(r30)
ffc07098: 2f 80 00 00 cmpwi cr7,r0,0
ffc0709c: 41 9e 00 18 beq- cr7,ffc070b4 <rtems_termios_open+0x3fc>
(*tty->device.firstOpen)(major, minor, arg);
ffc070a0: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED
ffc070a4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc070a8: 7f 44 d3 78 mr r4,r26 <== NOT EXECUTED
ffc070ac: 7f 25 cb 78 mr r5,r25 <== NOT EXECUTED
ffc070b0: 4e 80 04 21 bctrl <== NOT EXECUTED
/*
* start I/O tasks, if needed
*/
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
ffc070b4: 80 1e 00 b4 lwz r0,180(r30)
ffc070b8: 2f 80 00 02 cmpwi cr7,r0,2
ffc070bc: 40 be 00 40 bne+ cr7,ffc070fc <rtems_termios_open+0x444>
sc = rtems_task_start(tty->rxTaskId,
ffc070c0: 80 7e 00 c4 lwz r3,196(r30) <== NOT EXECUTED
ffc070c4: 3c 80 ff c0 lis r4,-64 <== NOT EXECUTED
ffc070c8: 38 84 71 ec addi r4,r4,29164 <== NOT EXECUTED
ffc070cc: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED
ffc070d0: 48 00 12 21 bl ffc082f0 <rtems_task_start> <== NOT EXECUTED
rtems_termios_rxdaemon,
(rtems_task_argument)tty);
if (sc != RTEMS_SUCCESSFUL)
ffc070d4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc070d8: 40 9e 00 20 bne- cr7,ffc070f8 <rtems_termios_open+0x440><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
sc = rtems_task_start(tty->txTaskId,
ffc070dc: 80 7e 00 c8 lwz r3,200(r30) <== NOT EXECUTED
ffc070e0: 3c 80 ff c0 lis r4,-64 <== NOT EXECUTED
ffc070e4: 38 84 71 60 addi r4,r4,29024 <== NOT EXECUTED
ffc070e8: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED
ffc070ec: 48 00 12 05 bl ffc082f0 <rtems_task_start> <== NOT EXECUTED
rtems_termios_txdaemon,
(rtems_task_argument)tty);
if (sc != RTEMS_SUCCESSFUL)
ffc070f0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc070f4: 41 be 00 08 beq+ cr7,ffc070fc <rtems_termios_open+0x444><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
ffc070f8: 48 00 14 e1 bl ffc085d8 <rtems_fatal_error_occurred> <== NOT EXECUTED
}
}
rtems_semaphore_release (rtems_termios_ttyMutex);
ffc070fc: 3d 20 00 00 lis r9,0
ffc07100: 80 69 27 58 lwz r3,10072(r9)
ffc07104: 48 00 0d ed bl ffc07ef0 <rtems_semaphore_release>
return RTEMS_SUCCESSFUL;
}
ffc07108: 80 01 00 34 lwz r0,52(r1)
ffc0710c: 7f a3 eb 78 mr r3,r29
ffc07110: 82 e1 00 0c lwz r23,12(r1)
ffc07114: 7c 08 03 a6 mtlr r0
ffc07118: 83 01 00 10 lwz r24,16(r1)
ffc0711c: 83 21 00 14 lwz r25,20(r1)
ffc07120: 83 41 00 18 lwz r26,24(r1)
ffc07124: 83 61 00 1c lwz r27,28(r1)
ffc07128: 83 81 00 20 lwz r28,32(r1)
ffc0712c: 83 a1 00 24 lwz r29,36(r1)
ffc07130: 83 c1 00 28 lwz r30,40(r1)
ffc07134: 83 e1 00 2c lwz r31,44(r1)
ffc07138: 38 21 00 30 addi r1,r1,48
ffc0713c: 4e 80 00 20 blr
static char c = 'a';
/*
* Create a new device
*/
tty = calloc (1, sizeof (struct rtems_termios_tty));
ffc07140: 38 60 00 01 li r3,1
ffc07144: 38 80 00 e8 li r4,232
ffc07148: 48 00 5f 81 bl ffc0d0c8 <calloc>
if (tty == NULL) {
ffc0714c: 2f 83 00 00 cmpwi cr7,r3,0
static char c = 'a';
/*
* Create a new device
*/
tty = calloc (1, sizeof (struct rtems_termios_tty));
ffc07150: 7c 7e 1b 78 mr r30,r3
ffc07154: 7c 7f 1b 78 mr r31,r3
if (tty == NULL) {
ffc07158: 40 9e fb f0 bne+ cr7,ffc06d48 <rtems_termios_open+0x90>
ffc0715c: 4b ff fc 18 b ffc06d74 <rtems_termios_open+0xbc> <== NOT EXECUTED
ffc05950 <rtems_termios_puts>:
* Send characters to device-specific code
*/
void
rtems_termios_puts (
const void *_buf, int len, struct rtems_termios_tty *tty)
{
ffc05950: 94 21 ff d8 stwu r1,-40(r1)
ffc05954: 7c 08 02 a6 mflr r0
ffc05958: 90 01 00 2c stw r0,44(r1)
ffc0595c: 7c 60 1b 78 mr r0,r3
const unsigned char *buf = _buf;
unsigned int newHead;
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
ffc05960: 81 25 00 b4 lwz r9,180(r5)
* Send characters to device-specific code
*/
void
rtems_termios_puts (
const void *_buf, int len, struct rtems_termios_tty *tty)
{
ffc05964: 93 81 00 18 stw r28,24(r1)
const unsigned char *buf = _buf;
ffc05968: 7c 7c 1b 78 mr r28,r3
unsigned int newHead;
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
ffc0596c: 2f 89 00 00 cmpwi cr7,r9,0
* Send characters to device-specific code
*/
void
rtems_termios_puts (
const void *_buf, int len, struct rtems_termios_tty *tty)
{
ffc05970: 93 a1 00 1c stw r29,28(r1)
ffc05974: 7c 9d 23 78 mr r29,r4
ffc05978: 93 e1 00 24 stw r31,36(r1)
ffc0597c: 7c bf 2b 78 mr r31,r5
ffc05980: 93 21 00 0c stw r25,12(r1)
ffc05984: 93 41 00 10 stw r26,16(r1)
ffc05988: 93 61 00 14 stw r27,20(r1)
ffc0598c: 93 c1 00 20 stw r30,32(r1)
const unsigned char *buf = _buf;
unsigned int newHead;
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
ffc05990: 40 be 00 20 bne+ cr7,ffc059b0 <rtems_termios_puts+0x60>
(*tty->device.write)(tty->minor, (void *)buf, len);
ffc05994: 7c 04 03 78 mr r4,r0
ffc05998: 80 1f 00 a4 lwz r0,164(r31)
ffc0599c: 80 65 00 10 lwz r3,16(r5)
ffc059a0: 7f a5 eb 78 mr r5,r29
ffc059a4: 7c 09 03 a6 mtctr r0
ffc059a8: 4e 80 04 21 bctrl
return;
ffc059ac: 48 00 00 f0 b ffc05a9c <rtems_termios_puts+0x14c>
}
newHead = tty->rawOutBuf.Head;
ffc059b0: 83 c5 00 80 lwz r30,128(r5) <== NOT EXECUTED
* with interrupts enabled.
*/
newHead = (newHead + 1) % tty->rawOutBuf.Size;
rtems_interrupt_disable (level);
while (newHead == tty->rawOutBuf.Tail) {
tty->rawOutBufState = rob_wait;
ffc059b4: 3b 20 00 02 li r25,2 <== NOT EXECUTED
}
else {
/* remember that output has been stopped due to flow ctrl*/
tty->flow_ctrl |= FL_OSTOP;
}
tty->rawOutBufState = rob_busy;
ffc059b8: 3b 40 00 01 li r26,1 <== NOT EXECUTED
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
(*tty->device.write)(tty->minor, (void *)buf, len);
return;
}
newHead = tty->rawOutBuf.Head;
while (len) {
ffc059bc: 48 00 00 d8 b ffc05a94 <rtems_termios_puts+0x144> <== NOT EXECUTED
* len -= ncopy
*
* To minimize latency, the memcpy should be done
* with interrupts enabled.
*/
newHead = (newHead + 1) % tty->rawOutBuf.Size;
ffc059c0: 80 1f 00 88 lwz r0,136(r31) <== NOT EXECUTED
ffc059c4: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED
ffc059c8: 7d 3e 03 96 divwu r9,r30,r0 <== NOT EXECUTED
ffc059cc: 7c 09 01 d6 mullw r0,r9,r0 <== NOT EXECUTED
ffc059d0: 7f c0 f0 50 subf r30,r0,r30 <== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc059d4: 7f 60 00 a6 mfmsr r27 <== NOT EXECUTED
ffc059d8: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED
ffc059dc: 7f 60 00 78 andc r0,r27,r0 <== NOT EXECUTED
ffc059e0: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED
rtems_interrupt_disable (level);
while (newHead == tty->rawOutBuf.Tail) {
ffc059e4: 48 00 00 38 b ffc05a1c <rtems_termios_puts+0xcc> <== NOT EXECUTED
tty->rawOutBufState = rob_wait;
ffc059e8: 93 3f 00 94 stw r25,148(r31) <== NOT EXECUTED
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc059ec: 7f 60 01 24 mtmsr r27 <== NOT EXECUTED
rtems_interrupt_enable (level);
sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore,
ffc059f0: 80 7f 00 8c lwz r3,140(r31) <== NOT EXECUTED
ffc059f4: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc059f8: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc059fc: 48 00 23 b1 bl ffc07dac <rtems_semaphore_obtain> <== NOT EXECUTED
RTEMS_WAIT,
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
ffc05a00: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc05a04: 41 be 00 08 beq+ cr7,ffc05a0c <rtems_termios_puts+0xbc> <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
ffc05a08: 48 00 2b d1 bl ffc085d8 <rtems_fatal_error_occurred> <== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc05a0c: 7f 60 00 a6 mfmsr r27 <== NOT EXECUTED
ffc05a10: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED
ffc05a14: 7f 60 00 78 andc r0,r27,r0 <== NOT EXECUTED
ffc05a18: 7c 00 01 24 mtmsr r0 <== 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) {
ffc05a1c: 80 1f 00 84 lwz r0,132(r31) <== NOT EXECUTED
ffc05a20: 7f 9e 00 00 cmpw cr7,r30,r0 <== NOT EXECUTED
ffc05a24: 41 9e ff c4 beq+ cr7,ffc059e8 <rtems_termios_puts+0x98> <== 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++;
ffc05a28: 80 1f 00 80 lwz r0,128(r31) <== NOT EXECUTED
ffc05a2c: 89 7c 00 00 lbz r11,0(r28) <== NOT EXECUTED
ffc05a30: 81 3f 00 7c lwz r9,124(r31) <== NOT EXECUTED
ffc05a34: 7d 69 01 ae stbx r11,r9,r0 <== NOT EXECUTED
tty->rawOutBuf.Head = newHead;
if (tty->rawOutBufState == rob_idle) {
ffc05a38: 80 1f 00 94 lwz r0,148(r31) <== 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;
ffc05a3c: 93 df 00 80 stw r30,128(r31) <== NOT EXECUTED
if (tty->rawOutBufState == rob_idle) {
ffc05a40: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc05a44: 40 9e 00 44 bne- cr7,ffc05a88 <rtems_termios_puts+0x138><== NOT EXECUTED
/* check, whether XOFF has been received */
if (!(tty->flow_ctrl & FL_ORCVXOF)) {
ffc05a48: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc05a4c: 70 09 00 10 andi. r9,r0,16 <== NOT EXECUTED
ffc05a50: 40 a2 00 28 bne+ ffc05a78 <rtems_termios_puts+0x128> <== NOT EXECUTED
(*tty->device.write)(tty->minor,
(char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
ffc05a54: 81 3f 00 84 lwz r9,132(r31) <== 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,
ffc05a58: 38 a0 00 01 li r5,1 <== NOT EXECUTED
ffc05a5c: 80 9f 00 7c lwz r4,124(r31) <== NOT EXECUTED
ffc05a60: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED
ffc05a64: 7c 84 4a 14 add r4,r4,r9 <== NOT EXECUTED
ffc05a68: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED
ffc05a6c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc05a70: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc05a74: 48 00 00 10 b ffc05a84 <rtems_termios_puts+0x134> <== NOT EXECUTED
(char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
}
else {
/* remember that output has been stopped due to flow ctrl*/
tty->flow_ctrl |= FL_OSTOP;
ffc05a78: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc05a7c: 60 00 00 20 ori r0,r0,32 <== NOT EXECUTED
ffc05a80: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED
}
tty->rawOutBufState = rob_busy;
ffc05a84: 93 5f 00 94 stw r26,148(r31) <== 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++;
ffc05a88: 3b 9c 00 01 addi r28,r28,1 <== NOT EXECUTED
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc05a8c: 7f 60 01 24 mtmsr r27 <== NOT EXECUTED
tty->flow_ctrl |= FL_OSTOP;
}
tty->rawOutBufState = rob_busy;
}
rtems_interrupt_enable (level);
len--;
ffc05a90: 3b bd ff ff addi r29,r29,-1 <== NOT EXECUTED
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
(*tty->device.write)(tty->minor, (void *)buf, len);
return;
}
newHead = tty->rawOutBuf.Head;
while (len) {
ffc05a94: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED
ffc05a98: 40 9e ff 28 bne+ cr7,ffc059c0 <rtems_termios_puts+0x70> <== NOT EXECUTED
tty->rawOutBufState = rob_busy;
}
rtems_interrupt_enable (level);
len--;
}
}
ffc05a9c: 80 01 00 2c lwz r0,44(r1)
ffc05aa0: 83 21 00 0c lwz r25,12(r1)
ffc05aa4: 7c 08 03 a6 mtlr r0
ffc05aa8: 83 41 00 10 lwz r26,16(r1)
ffc05aac: 83 61 00 14 lwz r27,20(r1)
ffc05ab0: 83 81 00 18 lwz r28,24(r1)
ffc05ab4: 83 a1 00 1c lwz r29,28(r1)
ffc05ab8: 83 c1 00 20 lwz r30,32(r1)
ffc05abc: 83 e1 00 24 lwz r31,36(r1)
ffc05ac0: 38 21 00 28 addi r1,r1,40
ffc05ac4: 4e 80 00 20 blr
ffc06314 <rtems_termios_read>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_termios_read (void *arg)
{
ffc06314: 94 21 ff d0 stwu r1,-48(r1) <== NOT EXECUTED
ffc06318: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
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);
ffc0631c: 38 80 00 00 li r4,0 <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_termios_read (void *arg)
{
ffc06320: 90 01 00 34 stw r0,52(r1) <== NOT EXECUTED
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);
ffc06324: 38 a0 00 00 li r5,0 <== NOT EXECUTED
rtems_status_code
rtems_termios_read (void *arg)
{
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
ffc06328: 81 23 00 00 lwz r9,0(r3) <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_termios_read (void *arg)
{
ffc0632c: 93 e1 00 2c stw r31,44(r1) <== NOT EXECUTED
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
ffc06330: 83 e9 00 38 lwz r31,56(r9) <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_termios_read (void *arg)
{
ffc06334: 93 c1 00 28 stw r30,40(r1) <== NOT EXECUTED
ffc06338: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED
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);
ffc0633c: 80 7f 00 14 lwz r3,20(r31) <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_termios_read (void *arg)
{
ffc06340: 93 61 00 1c stw r27,28(r1) <== NOT EXECUTED
ffc06344: 93 81 00 20 stw r28,32(r1) <== NOT EXECUTED
ffc06348: 93 a1 00 24 stw r29,36(r1) <== NOT EXECUTED
ffc0634c: 92 e1 00 0c stw r23,12(r1) <== NOT EXECUTED
ffc06350: 93 01 00 10 stw r24,16(r1) <== NOT EXECUTED
ffc06354: 93 21 00 14 stw r25,20(r1) <== NOT EXECUTED
ffc06358: 93 41 00 18 stw r26,24(r1) <== NOT EXECUTED
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
uint32_t count = args->count;
ffc0635c: 83 9e 00 14 lwz r28,20(r30) <== NOT EXECUTED
char *buffer = args->buffer;
ffc06360: 83 7e 00 10 lwz r27,16(r30) <== NOT EXECUTED
rtems_status_code sc;
sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc06364: 48 00 1a 49 bl ffc07dac <rtems_semaphore_obtain> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
ffc06368: 7c 7d 1b 79 mr. r29,r3 <== NOT EXECUTED
ffc0636c: 40 82 03 30 bne- ffc0669c <rtems_termios_read+0x388> <== NOT EXECUTED
return sc;
if (rtems_termios_linesw[tty->t_line].l_read != NULL) {
ffc06370: 80 1f 00 cc lwz r0,204(r31) <== NOT EXECUTED
ffc06374: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc06378: 39 29 28 88 addi r9,r9,10376 <== NOT EXECUTED
ffc0637c: 54 00 28 34 rlwinm r0,r0,5,0,26 <== NOT EXECUTED
ffc06380: 7d 29 02 14 add r9,r9,r0 <== NOT EXECUTED
ffc06384: 80 09 00 08 lwz r0,8(r9) <== NOT EXECUTED
ffc06388: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0638c: 41 9e 00 1c beq- cr7,ffc063a8 <rtems_termios_read+0x94> <== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_read(tty,args);
ffc06390: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED
ffc06394: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc06398: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc0639c: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc063a0: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED
ffc063a4: 48 00 02 e8 b ffc0668c <rtems_termios_read+0x378> <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
rtems_semaphore_release (tty->isem);
return sc;
}
if (tty->cindex == tty->ccount) {
ffc063a8: 81 3f 00 24 lwz r9,36(r31) <== NOT EXECUTED
ffc063ac: 80 1f 00 20 lwz r0,32(r31) <== NOT EXECUTED
ffc063b0: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED
ffc063b4: 40 be 02 ac bne+ cr7,ffc06660 <rtems_termios_read+0x34c><== NOT EXECUTED
tty->cindex = tty->ccount = 0;
tty->read_start_column = tty->column;
if (tty->device.pollRead != NULL
ffc063b8: 81 3f 00 a0 lwz r9,160(r31) <== NOT EXECUTED
rtems_semaphore_release (tty->isem);
return sc;
}
if (tty->cindex == tty->ccount) {
tty->cindex = tty->ccount = 0;
tty->read_start_column = tty->column;
ffc063bc: 80 1f 00 28 lwz r0,40(r31) <== NOT EXECUTED
if (tty->device.pollRead != NULL
ffc063c0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
rtems_semaphore_release (tty->isem);
return sc;
}
if (tty->cindex == tty->ccount) {
tty->cindex = tty->ccount = 0;
ffc063c4: 93 bf 00 20 stw r29,32(r31) <== NOT EXECUTED
tty->read_start_column = tty->column;
ffc063c8: 90 1f 00 2c stw r0,44(r31) <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
rtems_semaphore_release (tty->isem);
return sc;
}
if (tty->cindex == tty->ccount) {
tty->cindex = tty->ccount = 0;
ffc063cc: 93 bf 00 24 stw r29,36(r31) <== NOT EXECUTED
tty->read_start_column = tty->column;
if (tty->device.pollRead != NULL
ffc063d0: 41 9e 00 fc beq- cr7,ffc064cc <rtems_termios_read+0x1b8><== NOT EXECUTED
&& tty->device.outputUsesInterrupts == TERMIOS_POLLED)
ffc063d4: 80 1f 00 b4 lwz r0,180(r31) <== NOT EXECUTED
ffc063d8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc063dc: 40 be 00 f0 bne+ cr7,ffc064cc <rtems_termios_read+0x1b8><== NOT EXECUTED
static rtems_status_code
fillBufferPoll (struct rtems_termios_tty *tty)
{
int n;
if (tty->termios.c_lflag & ICANON) {
ffc063e0: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED
ffc063e4: 70 09 00 02 andi. r9,r0,2 <== NOT EXECUTED
ffc063e8: 41 82 00 40 beq- ffc06428 <rtems_termios_read+0x114> <== NOT EXECUTED
for (;;) {
n = (*tty->device.pollRead)(tty->minor);
ffc063ec: 80 1f 00 a0 lwz r0,160(r31) <== NOT EXECUTED
ffc063f0: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED
ffc063f4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc063f8: 4e 80 04 21 bctrl <== NOT EXECUTED
if (n < 0) {
rtems_task_wake_after (1);
}
else {
if (siproc (n, tty))
ffc063fc: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
int n;
if (tty->termios.c_lflag & ICANON) {
for (;;) {
n = (*tty->device.pollRead)(tty->minor);
if (n < 0) {
ffc06400: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED
rtems_task_wake_after (1);
}
else {
if (siproc (n, tty))
ffc06404: 54 63 06 3e clrlwi r3,r3,24 <== NOT EXECUTED
int n;
if (tty->termios.c_lflag & ICANON) {
for (;;) {
n = (*tty->device.pollRead)(tty->minor);
if (n < 0) {
ffc06408: 40 a0 00 10 bge+ ffc06418 <rtems_termios_read+0x104> <== NOT EXECUTED
rtems_task_wake_after (1);
ffc0640c: 38 60 00 01 li r3,1 <== NOT EXECUTED
ffc06410: 48 00 1f c5 bl ffc083d4 <rtems_task_wake_after> <== NOT EXECUTED
ffc06414: 4b ff ff d8 b ffc063ec <rtems_termios_read+0xd8> <== NOT EXECUTED
}
else {
if (siproc (n, tty))
ffc06418: 4b ff fc e1 bl ffc060f8 <siproc> <== NOT EXECUTED
ffc0641c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc06420: 41 9e ff cc beq+ cr7,ffc063ec <rtems_termios_read+0xd8> <== NOT EXECUTED
ffc06424: 48 00 02 3c b ffc06660 <rtems_termios_read+0x34c> <== NOT EXECUTED
}
}
}
else {
rtems_interval then, now;
then = rtems_clock_get_ticks_since_boot();
ffc06428: 48 00 12 41 bl ffc07668 <rtems_clock_get_ticks_since_boot><== NOT EXECUTED
ffc0642c: 7c 7a 1b 78 mr r26,r3 <== NOT EXECUTED
for (;;) {
n = (*tty->device.pollRead)(tty->minor);
ffc06430: 80 1f 00 a0 lwz r0,160(r31) <== NOT EXECUTED
ffc06434: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED
ffc06438: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc0643c: 4e 80 04 21 bctrl <== NOT EXECUTED
if (n < 0) {
ffc06440: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED
ffc06444: 40 80 00 54 bge- ffc06498 <rtems_termios_read+0x184> <== NOT EXECUTED
if (tty->termios.c_cc[VMIN]) {
ffc06448: 89 3f 00 47 lbz r9,71(r31) <== NOT EXECUTED
ffc0644c: 88 1f 00 46 lbz r0,70(r31) <== NOT EXECUTED
ffc06450: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc06454: 41 9e 00 1c beq- cr7,ffc06470 <rtems_termios_read+0x15c><== NOT EXECUTED
if (tty->termios.c_cc[VTIME] && tty->ccount) {
ffc06458: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0645c: 41 9e 00 30 beq- cr7,ffc0648c <rtems_termios_read+0x178><== NOT EXECUTED
ffc06460: 80 1f 00 20 lwz r0,32(r31) <== NOT EXECUTED
ffc06464: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc06468: 41 be 00 24 beq+ cr7,ffc0648c <rtems_termios_read+0x178><== NOT EXECUTED
ffc0646c: 48 00 00 0c b ffc06478 <rtems_termios_read+0x164> <== NOT EXECUTED
break;
}
}
}
else {
if (!tty->termios.c_cc[VTIME])
ffc06470: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc06474: 41 9e 01 ec beq- cr7,ffc06660 <rtems_termios_read+0x34c><== NOT EXECUTED
break;
now = rtems_clock_get_ticks_since_boot();
ffc06478: 48 00 11 f1 bl ffc07668 <rtems_clock_get_ticks_since_boot><== NOT EXECUTED
if ((now - then) > tty->vtimeTicks) {
ffc0647c: 80 1f 00 54 lwz r0,84(r31) <== NOT EXECUTED
ffc06480: 7c 7a 18 50 subf r3,r26,r3 <== NOT EXECUTED
ffc06484: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED
ffc06488: 41 9d 01 d8 bgt- cr7,ffc06660 <rtems_termios_read+0x34c><== NOT EXECUTED
break;
}
}
rtems_task_wake_after (1);
ffc0648c: 38 60 00 01 li r3,1 <== NOT EXECUTED
ffc06490: 48 00 1f 45 bl ffc083d4 <rtems_task_wake_after> <== NOT EXECUTED
ffc06494: 4b ff ff 9c b ffc06430 <rtems_termios_read+0x11c> <== NOT EXECUTED
}
else {
siproc (n, tty);
ffc06498: 54 63 06 3e clrlwi r3,r3,24 <== NOT EXECUTED
ffc0649c: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc064a0: 4b ff fc 59 bl ffc060f8 <siproc> <== NOT EXECUTED
if (tty->ccount >= tty->termios.c_cc[VMIN])
ffc064a4: 88 1f 00 47 lbz r0,71(r31) <== NOT EXECUTED
ffc064a8: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED
ffc064ac: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED
ffc064b0: 40 9c 01 b0 bge- cr7,ffc06660 <rtems_termios_read+0x34c><== NOT EXECUTED
break;
if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME])
ffc064b4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc064b8: 41 be ff 78 beq- cr7,ffc06430 <rtems_termios_read+0x11c><== NOT EXECUTED
ffc064bc: 88 1f 00 46 lbz r0,70(r31) <== NOT EXECUTED
ffc064c0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc064c4: 41 9e ff 6c beq+ cr7,ffc06430 <rtems_termios_read+0x11c><== NOT EXECUTED
ffc064c8: 4b ff ff 60 b ffc06428 <rtems_termios_read+0x114> <== NOT EXECUTED
while ( wait ) {
/*
* Process characters read from raw queue
*/
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
ffc064cc: 3e e0 00 00 lis r23,0 <== NOT EXECUTED
* Fill the input buffer from the raw input queue
*/
static rtems_status_code
fillBufferQueue (struct rtems_termios_tty *tty)
{
rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout;
ffc064d0: 83 5f 00 74 lwz r26,116(r31) <== NOT EXECUTED
while ( wait ) {
/*
* Process characters read from raw queue
*/
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
ffc064d4: 3a f7 21 68 addi r23,r23,8552 <== 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,
ffc064d8: 3b 1f 00 49 addi r24,r31,73 <== NOT EXECUTED
ffc064dc: 3b 20 00 01 li r25,1 <== NOT EXECUTED
ffc064e0: 48 00 01 1c b ffc065fc <rtems_termios_read+0x2e8> <== NOT EXECUTED
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
(tty->ccount < (CBUFSIZE-1))) {
unsigned char c;
unsigned int newHead;
newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size;
ffc064e4: 81 3f 00 5c lwz r9,92(r31) <== NOT EXECUTED
ffc064e8: 81 7f 00 64 lwz r11,100(r31) <== NOT EXECUTED
ffc064ec: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED
c = tty->rawInBuf.theBuf[newHead];
ffc064f0: 81 1f 00 58 lwz r8,88(r31) <== NOT EXECUTED
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
(tty->ccount < (CBUFSIZE-1))) {
unsigned char c;
unsigned int newHead;
newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size;
ffc064f4: 7c 09 5b 96 divwu r0,r9,r11 <== NOT EXECUTED
c = tty->rawInBuf.theBuf[newHead];
tty->rawInBuf.Head = newHead;
if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)
ffc064f8: 81 5f 00 bc lwz r10,188(r31) <== NOT EXECUTED
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
(tty->ccount < (CBUFSIZE-1))) {
unsigned char c;
unsigned int newHead;
newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size;
ffc064fc: 7c 00 59 d6 mullw r0,r0,r11 <== NOT EXECUTED
ffc06500: 7c 00 48 50 subf r0,r0,r9 <== NOT EXECUTED
c = tty->rawInBuf.theBuf[newHead];
ffc06504: 7f 48 00 ae lbzx r26,r8,r0 <== NOT EXECUTED
tty->rawInBuf.Head = newHead;
ffc06508: 90 1f 00 5c stw r0,92(r31) <== NOT EXECUTED
if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)
ffc0650c: 81 7f 00 60 lwz r11,96(r31) <== NOT EXECUTED
ffc06510: 81 1f 00 64 lwz r8,100(r31) <== NOT EXECUTED
ffc06514: 81 3f 00 64 lwz r9,100(r31) <== NOT EXECUTED
ffc06518: 7d 68 5a 14 add r11,r8,r11 <== NOT EXECUTED
ffc0651c: 7c 00 58 50 subf r0,r0,r11 <== NOT EXECUTED
ffc06520: 7d 60 4b 96 divwu r11,r0,r9 <== NOT EXECUTED
ffc06524: 7d 2b 49 d6 mullw r9,r11,r9 <== NOT EXECUTED
ffc06528: 7c 09 00 50 subf r0,r9,r0 <== NOT EXECUTED
ffc0652c: 7f 80 50 40 cmplw cr7,r0,r10 <== NOT EXECUTED
ffc06530: 40 9c 00 84 bge- cr7,ffc065b4 <rtems_termios_read+0x2a0><== NOT EXECUTED
% tty->rawInBuf.Size)
< tty->lowwater) {
tty->flow_ctrl &= ~FL_IREQXOF;
ffc06534: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc06538: 54 00 00 3c rlwinm r0,r0,0,0,30 <== NOT EXECUTED
ffc0653c: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED
/* if tx stopped and XON should be sent... */
if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))
ffc06540: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc06544: 70 00 02 02 andi. r0,r0,514 <== NOT EXECUTED
ffc06548: 2f 80 02 02 cmpwi cr7,r0,514 <== NOT EXECUTED
ffc0654c: 40 be 00 38 bne+ cr7,ffc06584 <rtems_termios_read+0x270><== NOT EXECUTED
ffc06550: 80 1f 00 94 lwz r0,148(r31) <== NOT EXECUTED
ffc06554: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc06558: 41 9e 00 10 beq- cr7,ffc06568 <rtems_termios_read+0x254><== NOT EXECUTED
== (FL_MDXON | FL_ISNTXOF))
&& ((tty->rawOutBufState == rob_idle)
|| (tty->flow_ctrl & FL_OSTOP))) {
ffc0655c: 80 1f 00 b8 lwz r0,184(r31) <== 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))
ffc06560: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED
ffc06564: 41 82 00 20 beq- ffc06584 <rtems_termios_read+0x270> <== 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,
ffc06568: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED
ffc0656c: 7f 04 c3 78 mr r4,r24 <== NOT EXECUTED
ffc06570: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED
ffc06574: 38 a0 00 01 li r5,1 <== NOT EXECUTED
ffc06578: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc0657c: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc06580: 48 00 00 34 b ffc065b4 <rtems_termios_read+0x2a0> <== NOT EXECUTED
(void *)&(tty->termios.c_cc[VSTART]),
1);
}
else if (tty->flow_ctrl & FL_MDRTS) {
ffc06584: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc06588: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED
ffc0658c: 41 82 00 28 beq- ffc065b4 <rtems_termios_read+0x2a0> <== NOT EXECUTED
tty->flow_ctrl &= ~FL_IRTSOFF;
/* activate RTS line */
if (tty->device.startRemoteTx != NULL) {
ffc06590: 80 1f 00 b0 lwz r0,176(r31) <== 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;
ffc06594: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED
/* activate RTS line */
if (tty->device.startRemoteTx != NULL) {
ffc06598: 2f 80 00 00 cmpwi cr7,r0,0 <== 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;
ffc0659c: 55 29 07 b8 rlwinm r9,r9,0,30,28 <== NOT EXECUTED
ffc065a0: 91 3f 00 b8 stw r9,184(r31) <== NOT EXECUTED
/* activate RTS line */
if (tty->device.startRemoteTx != NULL) {
ffc065a4: 41 9e 00 10 beq- cr7,ffc065b4 <rtems_termios_read+0x2a0><== NOT EXECUTED
tty->device.startRemoteTx(tty->minor);
ffc065a8: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED
ffc065ac: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc065b0: 4e 80 04 21 bctrl <== NOT EXECUTED
}
}
}
/* continue processing new character */
if (tty->termios.c_lflag & ICANON) {
ffc065b4: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED
ffc065b8: 70 09 00 02 andi. r9,r0,2 <== NOT EXECUTED
ffc065bc: 41 82 00 1c beq- ffc065d8 <rtems_termios_read+0x2c4> <== NOT EXECUTED
if (siproc (c, tty))
ffc065c0: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED
ffc065c4: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc065c8: 4b ff fb 31 bl ffc060f8 <siproc> <== NOT EXECUTED
ffc065cc: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc065d0: 40 9e 00 24 bne- cr7,ffc065f4 <rtems_termios_read+0x2e0><== NOT EXECUTED
ffc065d4: 48 00 00 24 b ffc065f8 <rtems_termios_read+0x2e4> <== NOT EXECUTED
wait = 0;
}
else {
siproc (c, tty);
ffc065d8: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED
ffc065dc: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc065e0: 4b ff fb 19 bl ffc060f8 <siproc> <== NOT EXECUTED
if (tty->ccount >= tty->termios.c_cc[VMIN])
ffc065e4: 88 1f 00 47 lbz r0,71(r31) <== NOT EXECUTED
ffc065e8: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED
ffc065ec: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED
ffc065f0: 41 9c 00 08 blt- cr7,ffc065f8 <rtems_termios_read+0x2e4><== NOT EXECUTED
ffc065f4: 3b 20 00 00 li r25,0 <== NOT EXECUTED
wait = 0;
}
timeout = tty->rawInBufSemaphoreTimeout;
ffc065f8: 83 5f 00 70 lwz r26,112(r31) <== NOT EXECUTED
while ( wait ) {
/*
* Process characters read from raw queue
*/
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
ffc065fc: 81 3f 00 5c lwz r9,92(r31) <== NOT EXECUTED
ffc06600: 80 1f 00 60 lwz r0,96(r31) <== NOT EXECUTED
ffc06604: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED
ffc06608: 41 9e 00 18 beq- cr7,ffc06620 <rtems_termios_read+0x30c><== NOT EXECUTED
ffc0660c: 81 77 00 00 lwz r11,0(r23) <== NOT EXECUTED
ffc06610: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED
ffc06614: 38 0b ff ff addi r0,r11,-1 <== NOT EXECUTED
ffc06618: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED
ffc0661c: 41 9c fe c8 blt+ cr7,ffc064e4 <rtems_termios_read+0x1d0><== NOT EXECUTED
}
/*
* Wait for characters
*/
if ( wait ) {
ffc06620: 2f 99 00 00 cmpwi cr7,r25,0 <== NOT EXECUTED
ffc06624: 41 be 00 3c beq+ cr7,ffc06660 <rtems_termios_read+0x34c><== NOT EXECUTED
sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore,
ffc06628: 80 7f 00 68 lwz r3,104(r31) <== NOT EXECUTED
ffc0662c: 7f 45 d3 78 mr r5,r26 <== NOT EXECUTED
ffc06630: 80 9f 00 6c lwz r4,108(r31) <== NOT EXECUTED
ffc06634: 48 00 17 79 bl ffc07dac <rtems_semaphore_obtain> <== NOT EXECUTED
tty->rawInBufSemaphoreOptions,
timeout);
if (sc != RTEMS_SUCCESSFUL)
ffc06638: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc0663c: 41 9e ff c0 beq+ cr7,ffc065fc <rtems_termios_read+0x2e8><== NOT EXECUTED
ffc06640: 48 00 00 20 b ffc06660 <rtems_termios_read+0x34c> <== NOT EXECUTED
sc = fillBufferQueue (tty);
if (sc != RTEMS_SUCCESSFUL)
tty->cindex = tty->ccount = 0;
}
while (count && (tty->cindex < tty->ccount)) {
*buffer++ = tty->cbuf[tty->cindex++];
ffc06644: 81 5f 00 1c lwz r10,28(r31) <== NOT EXECUTED
count--;
ffc06648: 3b 9c ff ff addi r28,r28,-1 <== NOT EXECUTED
sc = fillBufferQueue (tty);
if (sc != RTEMS_SUCCESSFUL)
tty->cindex = tty->ccount = 0;
}
while (count && (tty->cindex < tty->ccount)) {
*buffer++ = tty->cbuf[tty->cindex++];
ffc0664c: 7c 0a 48 ae lbzx r0,r10,r9 <== NOT EXECUTED
ffc06650: 98 1b 00 00 stb r0,0(r27) <== NOT EXECUTED
ffc06654: 3b 7b 00 01 addi r27,r27,1 <== NOT EXECUTED
ffc06658: 91 7f 00 24 stw r11,36(r31) <== NOT EXECUTED
ffc0665c: 48 00 00 0c b ffc06668 <rtems_termios_read+0x354> <== NOT EXECUTED
ffc06660: 38 1c 00 01 addi r0,r28,1 <== NOT EXECUTED
ffc06664: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
else
sc = fillBufferQueue (tty);
if (sc != RTEMS_SUCCESSFUL)
tty->cindex = tty->ccount = 0;
}
while (count && (tty->cindex < tty->ccount)) {
ffc06668: 42 40 00 18 bdz- ffc06680 <rtems_termios_read+0x36c> <== NOT EXECUTED
ffc0666c: 81 3f 00 24 lwz r9,36(r31) <== NOT EXECUTED
ffc06670: 80 1f 00 20 lwz r0,32(r31) <== NOT EXECUTED
*buffer++ = tty->cbuf[tty->cindex++];
ffc06674: 39 69 00 01 addi r11,r9,1 <== NOT EXECUTED
else
sc = fillBufferQueue (tty);
if (sc != RTEMS_SUCCESSFUL)
tty->cindex = tty->ccount = 0;
}
while (count && (tty->cindex < tty->ccount)) {
ffc06678: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED
ffc0667c: 41 9c ff c8 blt+ cr7,ffc06644 <rtems_termios_read+0x330><== NOT EXECUTED
*buffer++ = tty->cbuf[tty->cindex++];
count--;
}
args->bytes_moved = args->count - count;
ffc06680: 80 1e 00 14 lwz r0,20(r30) <== NOT EXECUTED
ffc06684: 7f 9c 00 50 subf r28,r28,r0 <== NOT EXECUTED
ffc06688: 93 9e 00 1c stw r28,28(r30) <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
ffc0668c: 38 00 00 00 li r0,0 <== NOT EXECUTED
rtems_semaphore_release (tty->isem);
ffc06690: 80 7f 00 14 lwz r3,20(r31) <== NOT EXECUTED
while (count && (tty->cindex < tty->ccount)) {
*buffer++ = tty->cbuf[tty->cindex++];
count--;
}
args->bytes_moved = args->count - count;
tty->tty_rcvwakeup = 0;
ffc06694: 90 1f 00 e4 stw r0,228(r31) <== NOT EXECUTED
rtems_semaphore_release (tty->isem);
ffc06698: 48 00 18 59 bl ffc07ef0 <rtems_semaphore_release> <== NOT EXECUTED
return sc;
}
ffc0669c: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED
ffc066a0: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc066a4: 82 e1 00 0c lwz r23,12(r1) <== NOT EXECUTED
ffc066a8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc066ac: 83 01 00 10 lwz r24,16(r1) <== NOT EXECUTED
ffc066b0: 83 21 00 14 lwz r25,20(r1) <== NOT EXECUTED
ffc066b4: 83 41 00 18 lwz r26,24(r1) <== NOT EXECUTED
ffc066b8: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED
ffc066bc: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED
ffc066c0: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED
ffc066c4: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED
ffc066c8: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED
ffc066cc: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED
ffc066d0: 4e 80 00 20 blr <== NOT EXECUTED
ffc05338 <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)
{
ffc05338: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED
ffc0533c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc05340: 90 01 00 1c stw r0,28(r1) <== 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))
ffc05344: 80 03 00 b8 lwz r0,184(r3) <== NOT EXECUTED
* 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)
{
ffc05348: 93 e1 00 14 stw r31,20(r1) <== NOT EXECUTED
ffc0534c: 7c 7f 1b 78 mr r31,r3 <== 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))
ffc05350: 70 00 04 03 andi. r0,r0,1027 <== NOT EXECUTED
* 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)
{
ffc05354: 93 a1 00 0c stw r29,12(r1) <== 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))
ffc05358: 2f 80 04 01 cmpwi cr7,r0,1025 <== NOT EXECUTED
* 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)
{
ffc0535c: 93 c1 00 10 stw r30,16(r1) <== 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))
ffc05360: 40 be 00 48 bne+ cr7,ffc053a8 <rtems_termios_refill_transmitter+0x70><== NOT EXECUTED
== (FL_MDXOF | FL_IREQXOF)) {
/* XOFF should be sent now... */
(*tty->device.write)(tty->minor,
ffc05364: 80 03 00 a4 lwz r0,164(r3) <== NOT EXECUTED
ffc05368: 38 9f 00 4a addi r4,r31,74 <== NOT EXECUTED
ffc0536c: 38 a0 00 01 li r5,1 <== NOT EXECUTED
ffc05370: 80 63 00 10 lwz r3,16(r3) <== NOT EXECUTED
ffc05374: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc05378: 4e 80 04 21 bctrl <== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0537c: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED
ffc05380: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED
ffc05384: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED
ffc05388: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED
(void *)&(tty->termios.c_cc[VSTOP]), 1);
rtems_interrupt_disable(level);
tty->t_dqlen--;
ffc0538c: 81 3f 00 90 lwz r9,144(r31) <== NOT EXECUTED
tty->flow_ctrl |= FL_ISNTXOF;
ffc05390: 81 7f 00 b8 lwz r11,184(r31) <== 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--;
ffc05394: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED
tty->flow_ctrl |= FL_ISNTXOF;
ffc05398: 61 6b 00 02 ori r11,r11,2 <== 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--;
ffc0539c: 91 3f 00 90 stw r9,144(r31) <== NOT EXECUTED
tty->flow_ctrl |= FL_ISNTXOF;
ffc053a0: 91 7f 00 b8 stw r11,184(r31) <== NOT EXECUTED
rtems_interrupt_enable(level);
ffc053a4: 48 00 00 54 b ffc053f8 <rtems_termios_refill_transmitter+0xc0><== NOT EXECUTED
nToSend = 1;
}
else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF))
ffc053a8: 80 03 00 b8 lwz r0,184(r3) <== NOT EXECUTED
ffc053ac: 54 00 07 be clrlwi r0,r0,30 <== NOT EXECUTED
ffc053b0: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED
ffc053b4: 40 be 00 50 bne+ cr7,ffc05404 <rtems_termios_refill_transmitter+0xcc><== 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,
ffc053b8: 80 03 00 a4 lwz r0,164(r3) <== NOT EXECUTED
ffc053bc: 38 9f 00 49 addi r4,r31,73 <== NOT EXECUTED
ffc053c0: 38 a0 00 01 li r5,1 <== NOT EXECUTED
ffc053c4: 80 63 00 10 lwz r3,16(r3) <== NOT EXECUTED
ffc053c8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc053cc: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc053d0: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED
ffc053d4: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED
ffc053d8: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED
ffc053dc: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED
(void *)&(tty->termios.c_cc[VSTART]), 1);
rtems_interrupt_disable(level);
tty->t_dqlen--;
ffc053e0: 81 3f 00 90 lwz r9,144(r31) <== NOT EXECUTED
tty->flow_ctrl &= ~FL_ISNTXOF;
ffc053e4: 81 7f 00 b8 lwz r11,184(r31) <== NOT EXECUTED
*/
(*tty->device.write)(tty->minor,
(void *)&(tty->termios.c_cc[VSTART]), 1);
rtems_interrupt_disable(level);
tty->t_dqlen--;
ffc053e8: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED
tty->flow_ctrl &= ~FL_ISNTXOF;
ffc053ec: 55 6b 07 fa rlwinm r11,r11,0,31,29 <== NOT EXECUTED
*/
(*tty->device.write)(tty->minor,
(void *)&(tty->termios.c_cc[VSTART]), 1);
rtems_interrupt_disable(level);
tty->t_dqlen--;
ffc053f0: 91 3f 00 90 stw r9,144(r31) <== NOT EXECUTED
tty->flow_ctrl &= ~FL_ISNTXOF;
ffc053f4: 91 7f 00 b8 stw r11,184(r31) <== NOT EXECUTED
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc053f8: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED
ffc053fc: 3b c0 00 01 li r30,1 <== NOT EXECUTED
ffc05400: 48 00 01 4c b ffc0554c <rtems_termios_refill_transmitter+0x214><== NOT EXECUTED
rtems_interrupt_enable(level);
nToSend = 1;
}
else {
if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {
ffc05404: 81 23 00 80 lwz r9,128(r3) <== NOT EXECUTED
ffc05408: 80 03 00 84 lwz r0,132(r3) <== NOT EXECUTED
ffc0540c: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED
ffc05410: 40 be 00 20 bne+ cr7,ffc05430 <rtems_termios_refill_transmitter+0xf8><== NOT EXECUTED
/*
* buffer was empty
*/
if (tty->rawOutBufState == rob_wait) {
ffc05414: 80 03 00 94 lwz r0,148(r3) <== NOT EXECUTED
ffc05418: 3b c0 00 00 li r30,0 <== NOT EXECUTED
ffc0541c: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED
ffc05420: 40 be 01 2c bne+ cr7,ffc0554c <rtems_termios_refill_transmitter+0x214><== NOT EXECUTED
/*
* this should never happen...
*/
rtems_semaphore_release (tty->rawOutBuf.Semaphore);
ffc05424: 80 63 00 8c lwz r3,140(r3) <== NOT EXECUTED
ffc05428: 48 00 2a c9 bl ffc07ef0 <rtems_semaphore_release> <== NOT EXECUTED
ffc0542c: 48 00 01 20 b ffc0554c <rtems_termios_refill_transmitter+0x214><== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc05430: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED
ffc05434: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED
ffc05438: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED
ffc0543c: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED
return 0;
}
rtems_interrupt_disable(level);
len = tty->t_dqlen;
tty->t_dqlen = 0;
ffc05440: 39 20 00 00 li r9,0 <== NOT EXECUTED
}
return 0;
}
rtems_interrupt_disable(level);
len = tty->t_dqlen;
ffc05444: 83 a3 00 90 lwz r29,144(r3) <== NOT EXECUTED
tty->t_dqlen = 0;
ffc05448: 91 23 00 90 stw r9,144(r3) <== NOT EXECUTED
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0544c: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED
rtems_interrupt_enable(level);
newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;
ffc05450: 80 03 00 84 lwz r0,132(r3) <== NOT EXECUTED
ffc05454: 81 23 00 88 lwz r9,136(r3) <== NOT EXECUTED
ffc05458: 7c 1d 02 14 add r0,r29,r0 <== NOT EXECUTED
tty->rawOutBuf.Tail = newTail;
if (tty->rawOutBufState == rob_wait) {
ffc0545c: 81 63 00 94 lwz r11,148(r3) <== NOT EXECUTED
rtems_interrupt_disable(level);
len = tty->t_dqlen;
tty->t_dqlen = 0;
rtems_interrupt_enable(level);
newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;
ffc05460: 7f a0 4b 96 divwu r29,r0,r9 <== NOT EXECUTED
tty->rawOutBuf.Tail = newTail;
if (tty->rawOutBufState == rob_wait) {
ffc05464: 2f 8b 00 02 cmpwi cr7,r11,2 <== NOT EXECUTED
rtems_interrupt_disable(level);
len = tty->t_dqlen;
tty->t_dqlen = 0;
rtems_interrupt_enable(level);
newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;
ffc05468: 7f bd 49 d6 mullw r29,r29,r9 <== NOT EXECUTED
ffc0546c: 7f bd 00 50 subf r29,r29,r0 <== NOT EXECUTED
tty->rawOutBuf.Tail = newTail;
ffc05470: 93 a3 00 84 stw r29,132(r3) <== NOT EXECUTED
if (tty->rawOutBufState == rob_wait) {
ffc05474: 40 be 00 0c bne+ cr7,ffc05480 <rtems_termios_refill_transmitter+0x148><== NOT EXECUTED
/*
* wake up any pending writer task
*/
rtems_semaphore_release (tty->rawOutBuf.Semaphore);
ffc05478: 80 63 00 8c lwz r3,140(r3) <== NOT EXECUTED
ffc0547c: 48 00 2a 75 bl ffc07ef0 <rtems_semaphore_release> <== NOT EXECUTED
}
if (newTail == tty->rawOutBuf.Head) {
ffc05480: 80 1f 00 80 lwz r0,128(r31) <== NOT EXECUTED
ffc05484: 7f 9d 00 00 cmpw cr7,r29,r0 <== NOT EXECUTED
ffc05488: 40 be 00 30 bne+ cr7,ffc054b8 <rtems_termios_refill_transmitter+0x180><== NOT EXECUTED
nToSend = 0;
/*
* check to see if snd wakeup callback was set
*/
if ( tty->tty_snd.sw_pfn != NULL) {
ffc0548c: 80 1f 00 d4 lwz r0,212(r31) <== NOT EXECUTED
}
if (newTail == tty->rawOutBuf.Head) {
/*
* Buffer has become empty
*/
tty->rawOutBufState = rob_idle;
ffc05490: 39 20 00 00 li r9,0 <== NOT EXECUTED
ffc05494: 91 3f 00 94 stw r9,148(r31) <== NOT EXECUTED
nToSend = 0;
/*
* check to see if snd wakeup callback was set
*/
if ( tty->tty_snd.sw_pfn != NULL) {
ffc05498: 3b c0 00 00 li r30,0 <== NOT EXECUTED
ffc0549c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc054a0: 41 9e 00 a8 beq- cr7,ffc05548 <rtems_termios_refill_transmitter+0x210><== NOT EXECUTED
(*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);
ffc054a4: 38 7f 00 30 addi r3,r31,48 <== NOT EXECUTED
ffc054a8: 80 9f 00 d8 lwz r4,216(r31) <== NOT EXECUTED
ffc054ac: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc054b0: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc054b4: 48 00 00 94 b ffc05548 <rtems_termios_refill_transmitter+0x210><== NOT EXECUTED
}
}
/* check, whether output should stop due to received XOFF */
else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))
ffc054b8: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc054bc: 70 00 02 10 andi. r0,r0,528 <== NOT EXECUTED
ffc054c0: 2f 80 02 10 cmpwi cr7,r0,528 <== NOT EXECUTED
ffc054c4: 40 be 00 34 bne+ cr7,ffc054f8 <rtems_termios_refill_transmitter+0x1c0><== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc054c8: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED
ffc054cc: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED
ffc054d0: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED
ffc054d4: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED
== (FL_MDXON | FL_ORCVXOF)) {
/* Buffer not empty, but output stops due to XOFF */
/* set flag, that output has been stopped */
rtems_interrupt_disable(level);
tty->flow_ctrl |= FL_OSTOP;
ffc054d8: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED
ffc054dc: 61 29 00 20 ori r9,r9,32 <== NOT EXECUTED
ffc054e0: 91 3f 00 b8 stw r9,184(r31) <== NOT EXECUTED
tty->rawOutBufState = rob_busy; /*apm*/
ffc054e4: 39 20 00 01 li r9,1 <== NOT EXECUTED
ffc054e8: 91 3f 00 94 stw r9,148(r31) <== NOT EXECUTED
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc054ec: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED
ffc054f0: 3b c0 00 00 li r30,0 <== NOT EXECUTED
ffc054f4: 48 00 00 54 b ffc05548 <rtems_termios_refill_transmitter+0x210><== NOT EXECUTED
}
else {
/*
* Buffer not empty, start tranmitter
*/
if (newTail > tty->rawOutBuf.Head)
ffc054f8: 80 1f 00 80 lwz r0,128(r31) <== NOT EXECUTED
ffc054fc: 7f 9d 00 40 cmplw cr7,r29,r0 <== NOT EXECUTED
ffc05500: 40 9d 00 0c ble- cr7,ffc0550c <rtems_termios_refill_transmitter+0x1d4><== NOT EXECUTED
nToSend = tty->rawOutBuf.Size - newTail;
ffc05504: 83 df 00 88 lwz r30,136(r31) <== NOT EXECUTED
ffc05508: 48 00 00 08 b ffc05510 <rtems_termios_refill_transmitter+0x1d8><== NOT EXECUTED
else
nToSend = tty->rawOutBuf.Head - newTail;
ffc0550c: 83 df 00 80 lwz r30,128(r31) <== 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)) {
ffc05510: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
* Buffer not empty, start tranmitter
*/
if (newTail > tty->rawOutBuf.Head)
nToSend = tty->rawOutBuf.Size - newTail;
else
nToSend = tty->rawOutBuf.Head - newTail;
ffc05514: 7f dd f0 50 subf r30,r29,r30 <== 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)) {
ffc05518: 70 09 06 00 andi. r9,r0,1536 <== NOT EXECUTED
ffc0551c: 41 82 00 08 beq- ffc05524 <rtems_termios_refill_transmitter+0x1ec><== NOT EXECUTED
ffc05520: 3b c0 00 01 li r30,1 <== NOT EXECUTED
nToSend = 1;
}
tty->rawOutBufState = rob_busy; /*apm*/
ffc05524: 38 00 00 01 li r0,1 <== NOT EXECUTED
(*tty->device.write)(tty->minor,
ffc05528: 80 9f 00 7c lwz r4,124(r31) <== 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*/
ffc0552c: 90 1f 00 94 stw r0,148(r31) <== NOT EXECUTED
(*tty->device.write)(tty->minor,
ffc05530: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED
ffc05534: 7c 84 ea 14 add r4,r4,r29 <== NOT EXECUTED
ffc05538: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED
ffc0553c: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED
ffc05540: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc05544: 4e 80 04 21 bctrl <== NOT EXECUTED
&tty->rawOutBuf.theBuf[newTail],
nToSend);
}
tty->rawOutBuf.Tail = newTail; /*apm*/
ffc05548: 93 bf 00 84 stw r29,132(r31) <== NOT EXECUTED
}
return nToSend;
}
ffc0554c: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED
ffc05550: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc05554: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED
ffc05558: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0555c: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED
ffc05560: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED
ffc05564: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED
ffc05568: 4e 80 00 20 blr <== NOT EXECUTED
ffc071ec <rtems_termios_rxdaemon>:
/*
* this task actually processes any receive events
*/
static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument)
{
ffc071ec: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED
ffc071f0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc071f4: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED
ffc071f8: 93 a1 00 1c stw r29,28(r1) <== NOT EXECUTED
char c_buf;
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_RX_PROC_EVENT |
ffc071fc: 3b a1 00 0c addi r29,r1,12 <== NOT EXECUTED
/*
* this task actually processes any receive events
*/
static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument)
{
ffc07200: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED
if (c != EOF) {
/*
* pollRead did call enqueue on its own
*/
c_buf = c;
rtems_termios_enqueue_raw_characters (
ffc07204: 3b c1 00 08 addi r30,r1,8 <== NOT EXECUTED
/*
* this task actually processes any receive events
*/
static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument)
{
ffc07208: 93 e1 00 24 stw r31,36(r1) <== NOT EXECUTED
ffc0720c: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED
char c_buf;
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_RX_PROC_EVENT |
ffc07210: 7f a6 eb 78 mr r6,r29 <== NOT EXECUTED
ffc07214: 38 80 00 02 li r4,2 <== NOT EXECUTED
ffc07218: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc0721c: 38 60 00 03 li r3,3 <== NOT EXECUTED
ffc07220: 48 00 04 c9 bl ffc076e8 <rtems_event_receive> <== NOT EXECUTED
TERMIOS_RX_TERMINATE_EVENT),
RTEMS_EVENT_ANY | RTEMS_WAIT,
RTEMS_NO_TIMEOUT,
&the_event);
if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) {
ffc07224: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc07228: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED
ffc0722c: 41 a2 00 18 beq+ ffc07244 <rtems_termios_rxdaemon+0x58> <== NOT EXECUTED
tty->rxTaskId = 0;
ffc07230: 38 00 00 00 li r0,0 <== NOT EXECUTED
ffc07234: 90 1f 00 c4 stw r0,196(r31) <== NOT EXECUTED
rtems_task_delete(RTEMS_SELF);
ffc07238: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc0723c: 48 00 0e f5 bl ffc08130 <rtems_task_delete> <== NOT EXECUTED
ffc07240: 4b ff ff d0 b ffc07210 <rtems_termios_rxdaemon+0x24> <== NOT EXECUTED
}
else {
/*
* do something
*/
c = tty->device.pollRead(tty->minor);
ffc07244: 80 1f 00 a0 lwz r0,160(r31) <== NOT EXECUTED
ffc07248: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED
ffc0724c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc07250: 4e 80 04 21 bctrl <== NOT EXECUTED
if (c != EOF) {
/*
* pollRead did call enqueue on its own
*/
c_buf = c;
rtems_termios_enqueue_raw_characters (
ffc07254: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED
else {
/*
* do something
*/
c = tty->device.pollRead(tty->minor);
if (c != EOF) {
ffc07258: 2f 83 ff ff cmpwi cr7,r3,-1 <== NOT EXECUTED
}
else {
/*
* do something
*/
c = tty->device.pollRead(tty->minor);
ffc0725c: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED
if (c != EOF) {
/*
* pollRead did call enqueue on its own
*/
c_buf = c;
rtems_termios_enqueue_raw_characters (
ffc07260: 38 a0 00 01 li r5,1 <== NOT EXECUTED
ffc07264: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
else {
/*
* do something
*/
c = tty->device.pollRead(tty->minor);
if (c != EOF) {
ffc07268: 41 be ff a8 beq- cr7,ffc07210 <rtems_termios_rxdaemon+0x24><== NOT EXECUTED
/*
* pollRead did call enqueue on its own
*/
c_buf = c;
ffc0726c: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED
rtems_termios_enqueue_raw_characters (
ffc07270: 4b ff e3 85 bl ffc055f4 <rtems_termios_enqueue_raw_characters><== NOT EXECUTED
ffc07274: 4b ff ff 9c b ffc07210 <rtems_termios_rxdaemon+0x24> <== NOT EXECUTED
ffc05310 <rtems_termios_rxirq_occured>:
* signal receive interrupt to rx daemon
* NOTE: This routine runs in the context of the
* device receive interrupt handler.
*/
void rtems_termios_rxirq_occured(struct rtems_termios_tty *tty)
{
ffc05310: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED
ffc05314: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
/*
* send event to rx daemon task
*/
rtems_event_send(tty->rxTaskId,TERMIOS_RX_PROC_EVENT);
ffc05318: 38 80 00 02 li r4,2 <== NOT EXECUTED
* signal receive interrupt to rx daemon
* NOTE: This routine runs in the context of the
* device receive interrupt handler.
*/
void rtems_termios_rxirq_occured(struct rtems_termios_tty *tty)
{
ffc0531c: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
/*
* send event to rx daemon task
*/
rtems_event_send(tty->rxTaskId,TERMIOS_RX_PROC_EVENT);
ffc05320: 80 63 00 c4 lwz r3,196(r3) <== NOT EXECUTED
ffc05324: 48 00 25 69 bl ffc0788c <rtems_event_send> <== NOT EXECUTED
}
ffc05328: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc0532c: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc05330: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc05334: 4e 80 00 20 blr <== NOT EXECUTED
ffc07160 <rtems_termios_txdaemon>:
/*
* this task actually processes any transmit events
*/
static rtems_task rtems_termios_txdaemon(rtems_task_argument argument)
{
ffc07160: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED
ffc07164: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc07168: 93 a1 00 1c stw r29,28(r1) <== NOT EXECUTED
}
else {
/*
* call any line discipline start function
*/
if (rtems_termios_linesw[tty->t_line].l_start != NULL) {
ffc0716c: 3f a0 00 00 lis r29,0 <== NOT EXECUTED
ffc07170: 3b bd 28 88 addi r29,r29,10376 <== NOT EXECUTED
/*
* this task actually processes any transmit events
*/
static rtems_task rtems_termios_txdaemon(rtems_task_argument argument)
{
ffc07174: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED
ffc07178: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_TX_START_EVENT |
ffc0717c: 3b c1 00 08 addi r30,r1,8 <== NOT EXECUTED
/*
* this task actually processes any transmit events
*/
static rtems_task rtems_termios_txdaemon(rtems_task_argument argument)
{
ffc07180: 93 e1 00 24 stw r31,36(r1) <== NOT EXECUTED
ffc07184: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_TX_START_EVENT |
ffc07188: 38 80 00 02 li r4,2 <== NOT EXECUTED
ffc0718c: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc07190: 7f c6 f3 78 mr r6,r30 <== NOT EXECUTED
ffc07194: 38 60 00 03 li r3,3 <== NOT EXECUTED
ffc07198: 48 00 05 51 bl ffc076e8 <rtems_event_receive> <== NOT EXECUTED
TERMIOS_TX_TERMINATE_EVENT),
RTEMS_EVENT_ANY | RTEMS_WAIT,
RTEMS_NO_TIMEOUT,
&the_event);
if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) {
ffc0719c: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED
else {
/*
* call any line discipline start function
*/
if (rtems_termios_linesw[tty->t_line].l_start != NULL) {
rtems_termios_linesw[tty->t_line].l_start(tty);
ffc071a0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
rtems_event_receive((TERMIOS_TX_START_EVENT |
TERMIOS_TX_TERMINATE_EVENT),
RTEMS_EVENT_ANY | RTEMS_WAIT,
RTEMS_NO_TIMEOUT,
&the_event);
if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) {
ffc071a4: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED
ffc071a8: 41 a2 00 18 beq+ ffc071c0 <rtems_termios_txdaemon+0x60> <== NOT EXECUTED
tty->txTaskId = 0;
ffc071ac: 38 00 00 00 li r0,0 <== NOT EXECUTED
ffc071b0: 90 1f 00 c8 stw r0,200(r31) <== NOT EXECUTED
rtems_task_delete(RTEMS_SELF);
ffc071b4: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc071b8: 48 00 0f 79 bl ffc08130 <rtems_task_delete> <== NOT EXECUTED
ffc071bc: 4b ff ff cc b ffc07188 <rtems_termios_txdaemon+0x28> <== NOT EXECUTED
}
else {
/*
* call any line discipline start function
*/
if (rtems_termios_linesw[tty->t_line].l_start != NULL) {
ffc071c0: 81 3f 00 cc lwz r9,204(r31) <== NOT EXECUTED
ffc071c4: 55 29 28 34 rlwinm r9,r9,5,0,26 <== NOT EXECUTED
ffc071c8: 7d 3d 4a 14 add r9,r29,r9 <== NOT EXECUTED
ffc071cc: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED
ffc071d0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc071d4: 41 9e 00 0c beq- cr7,ffc071e0 <rtems_termios_txdaemon+0x80><== NOT EXECUTED
rtems_termios_linesw[tty->t_line].l_start(tty);
ffc071d8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc071dc: 4e 80 04 21 bctrl <== NOT EXECUTED
}
/*
* try to push further characters to device
*/
rtems_termios_refill_transmitter(tty);
ffc071e0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc071e4: 4b ff e1 55 bl ffc05338 <rtems_termios_refill_transmitter><== NOT EXECUTED
ffc071e8: 4b ff ff a0 b ffc07188 <rtems_termios_txdaemon+0x28> <== NOT EXECUTED
ffc0617c <rtems_termios_write>:
rtems_termios_puts (&c, 1, tty);
}
rtems_status_code
rtems_termios_write (void *arg)
{
ffc0617c: 94 21 ff e0 stwu r1,-32(r1)
ffc06180: 7c 08 02 a6 mflr r0
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
rtems_status_code sc;
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc06184: 38 80 00 00 li r4,0
rtems_termios_puts (&c, 1, tty);
}
rtems_status_code
rtems_termios_write (void *arg)
{
ffc06188: 90 01 00 24 stw r0,36(r1)
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
rtems_status_code sc;
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc0618c: 38 a0 00 00 li r5,0
rtems_status_code
rtems_termios_write (void *arg)
{
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
ffc06190: 81 23 00 00 lwz r9,0(r3)
rtems_termios_puts (&c, 1, tty);
}
rtems_status_code
rtems_termios_write (void *arg)
{
ffc06194: 93 e1 00 1c stw r31,28(r1)
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
ffc06198: 83 e9 00 38 lwz r31,56(r9)
rtems_termios_puts (&c, 1, tty);
}
rtems_status_code
rtems_termios_write (void *arg)
{
ffc0619c: 93 c1 00 18 stw r30,24(r1)
ffc061a0: 7c 7e 1b 78 mr r30,r3
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
rtems_status_code sc;
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc061a4: 80 7f 00 18 lwz r3,24(r31)
rtems_termios_puts (&c, 1, tty);
}
rtems_status_code
rtems_termios_write (void *arg)
{
ffc061a8: 93 a1 00 14 stw r29,20(r1)
ffc061ac: 93 61 00 0c stw r27,12(r1)
ffc061b0: 93 81 00 10 stw r28,16(r1)
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
rtems_status_code sc;
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc061b4: 48 00 1b f9 bl ffc07dac <rtems_semaphore_obtain>
if (sc != RTEMS_SUCCESSFUL)
ffc061b8: 7c 7d 1b 79 mr. r29,r3
ffc061bc: 40 82 00 94 bne- ffc06250 <rtems_termios_write+0xd4>
return sc;
if (rtems_termios_linesw[tty->t_line].l_write != NULL) {
ffc061c0: 80 1f 00 cc lwz r0,204(r31)
ffc061c4: 3d 20 00 00 lis r9,0
ffc061c8: 39 29 28 88 addi r9,r9,10376
ffc061cc: 54 00 28 34 rlwinm r0,r0,5,0,26
ffc061d0: 7d 29 02 14 add r9,r9,r0
ffc061d4: 80 09 00 0c lwz r0,12(r9)
ffc061d8: 2f 80 00 00 cmpwi cr7,r0,0
ffc061dc: 41 9e 00 1c beq- cr7,ffc061f8 <rtems_termios_write+0x7c>
sc = rtems_termios_linesw[tty->t_line].l_write(tty,args);
ffc061e0: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED
ffc061e4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc061e8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc061ec: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc061f0: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED
ffc061f4: 48 00 00 54 b ffc06248 <rtems_termios_write+0xcc> <== NOT EXECUTED
rtems_semaphore_release (tty->osem);
return sc;
}
if (tty->termios.c_oflag & OPOST) {
ffc061f8: 80 1f 00 34 lwz r0,52(r31)
ffc061fc: 80 9e 00 14 lwz r4,20(r30)
ffc06200: 70 09 00 01 andi. r9,r0,1
ffc06204: 80 7e 00 10 lwz r3,16(r30)
ffc06208: 41 82 00 30 beq- ffc06238 <rtems_termios_write+0xbc>
uint32_t count = args->count;
ffc0620c: 7c 9b 23 78 mr r27,r4
char *buffer = args->buffer;
ffc06210: 7c 7c 1b 78 mr r28,r3
while (count--)
ffc06214: 48 00 00 10 b ffc06224 <rtems_termios_write+0xa8>
oproc (*buffer++, tty);
ffc06218: 88 7c 00 00 lbz r3,0(r28)
ffc0621c: 3b 9c 00 01 addi r28,r28,1
ffc06220: 4b ff f8 a9 bl ffc05ac8 <oproc>
return sc;
}
if (tty->termios.c_oflag & OPOST) {
uint32_t count = args->count;
char *buffer = args->buffer;
while (count--)
ffc06224: 2f 9b 00 00 cmpwi cr7,r27,0
oproc (*buffer++, tty);
ffc06228: 7f e4 fb 78 mr r4,r31
ffc0622c: 3b 7b ff ff addi r27,r27,-1
return sc;
}
if (tty->termios.c_oflag & OPOST) {
uint32_t count = args->count;
char *buffer = args->buffer;
while (count--)
ffc06230: 40 9e ff e8 bne+ cr7,ffc06218 <rtems_termios_write+0x9c>
ffc06234: 48 00 00 0c b ffc06240 <rtems_termios_write+0xc4>
oproc (*buffer++, tty);
args->bytes_moved = args->count;
}
else {
rtems_termios_puts (args->buffer, args->count, tty);
ffc06238: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED
ffc0623c: 4b ff f7 15 bl ffc05950 <rtems_termios_puts> <== NOT EXECUTED
args->bytes_moved = args->count;
ffc06240: 80 1e 00 14 lwz r0,20(r30)
ffc06244: 90 1e 00 1c stw r0,28(r30)
}
rtems_semaphore_release (tty->osem);
ffc06248: 80 7f 00 18 lwz r3,24(r31)
ffc0624c: 48 00 1c a5 bl ffc07ef0 <rtems_semaphore_release>
return sc;
}
ffc06250: 80 01 00 24 lwz r0,36(r1)
ffc06254: 7f a3 eb 78 mr r3,r29
ffc06258: 83 61 00 0c lwz r27,12(r1)
ffc0625c: 7c 08 03 a6 mtlr r0
ffc06260: 83 81 00 10 lwz r28,16(r1)
ffc06264: 83 a1 00 14 lwz r29,20(r1)
ffc06268: 83 c1 00 18 lwz r30,24(r1)
ffc0626c: 83 e1 00 1c lwz r31,28(r1)
ffc06270: 38 21 00 20 addi r1,r1,32
ffc06274: 4e 80 00 20 blr
ffc0a1a0 <rtems_verror>:
static int rtems_verror(
rtems_error_code_t error_flag,
const char *printf_format,
va_list arglist
)
{
ffc0a1a0: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED
ffc0a1a4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc0a1a8: 93 41 00 10 stw r26,16(r1) <== NOT EXECUTED
int local_errno = 0;
int chars_written = 0;
rtems_status_code status;
if (error_flag & RTEMS_ERROR_PANIC)
ffc0a1ac: 74 7a 20 00 andis. r26,r3,8192 <== NOT EXECUTED
static int rtems_verror(
rtems_error_code_t error_flag,
const char *printf_format,
va_list arglist
)
{
ffc0a1b0: 93 21 00 0c stw r25,12(r1) <== NOT EXECUTED
ffc0a1b4: 7c 99 23 78 mr r25,r4 <== NOT EXECUTED
ffc0a1b8: 93 a1 00 1c stw r29,28(r1) <== NOT EXECUTED
ffc0a1bc: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED
ffc0a1c0: 93 e1 00 24 stw r31,36(r1) <== NOT EXECUTED
ffc0a1c4: 7c bf 2b 78 mr r31,r5 <== NOT EXECUTED
ffc0a1c8: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED
ffc0a1cc: 93 61 00 14 stw r27,20(r1) <== NOT EXECUTED
ffc0a1d0: 93 81 00 18 stw r28,24(r1) <== NOT EXECUTED
ffc0a1d4: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED
int local_errno = 0;
int chars_written = 0;
rtems_status_code status;
if (error_flag & RTEMS_ERROR_PANIC)
ffc0a1d8: 41 82 00 3c beq- ffc0a214 <rtems_verror+0x74> <== NOT EXECUTED
{
if (rtems_panic_in_progress++)
ffc0a1dc: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc0a1e0: 81 69 27 d0 lwz r11,10192(r9) <== NOT EXECUTED
ffc0a1e4: 2f 8b 00 00 cmpwi cr7,r11,0 <== NOT EXECUTED
ffc0a1e8: 39 6b 00 01 addi r11,r11,1 <== NOT EXECUTED
ffc0a1ec: 91 69 27 d0 stw r11,10192(r9) <== NOT EXECUTED
ffc0a1f0: 41 9e 00 14 beq- cr7,ffc0a204 <rtems_verror+0x64> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
ffc0a1f4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc0a1f8: 81 69 27 f8 lwz r11,10232(r9) <== NOT EXECUTED
ffc0a1fc: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED
ffc0a200: 90 09 27 f8 stw r0,10232(r9) <== NOT EXECUTED
_Thread_Disable_dispatch(); /* disable task switches */
/* don't aggravate things */
if (rtems_panic_in_progress > 2)
ffc0a204: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc0a208: 80 09 27 d0 lwz r0,10192(r9) <== NOT EXECUTED
ffc0a20c: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED
ffc0a210: 41 9d 01 5c bgt- cr7,ffc0a36c <rtems_verror+0x1cc> <== NOT EXECUTED
return 0;
}
(void) fflush(stdout); /* in case stdout/stderr same */
ffc0a214: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc0a218: 81 29 27 64 lwz r9,10084(r9) <== NOT EXECUTED
status = error_flag & ~RTEMS_ERROR_MASK;
ffc0a21c: 57 bc 01 00 rlwinm r28,r29,0,4,0 <== NOT EXECUTED
if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */
ffc0a220: 3b c0 00 00 li r30,0 <== NOT EXECUTED
/* don't aggravate things */
if (rtems_panic_in_progress > 2)
return 0;
}
(void) fflush(stdout); /* in case stdout/stderr same */
ffc0a224: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED
ffc0a228: 48 01 00 e5 bl ffc1a30c <fflush> <== NOT EXECUTED
status = error_flag & ~RTEMS_ERROR_MASK;
if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */
ffc0a22c: 77 a0 40 00 andis. r0,r29,16384 <== NOT EXECUTED
ffc0a230: 41 a2 00 0c beq+ ffc0a23c <rtems_verror+0x9c> <== NOT EXECUTED
local_errno = errno;
ffc0a234: 48 00 fc 55 bl ffc19e88 <__errno> <== NOT EXECUTED
ffc0a238: 83 c3 00 00 lwz r30,0(r3) <== 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);
ffc0a23c: 3f 60 00 00 lis r27,0 <== NOT EXECUTED
ffc0a240: 81 3b 27 64 lwz r9,10084(r27) <== NOT EXECUTED
ffc0a244: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED
ffc0a248: 7f 24 cb 78 mr r4,r25 <== NOT EXECUTED
ffc0a24c: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED
ffc0a250: 48 01 64 85 bl ffc206d4 <vfprintf> <== NOT EXECUTED
if (status)
ffc0a254: 2f 9c 00 00 cmpwi cr7,r28,0 <== 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);
ffc0a258: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED
if (status)
ffc0a25c: 41 be 00 30 beq+ cr7,ffc0a28c <rtems_verror+0xec> <== NOT EXECUTED
chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status));
ffc0a260: 81 3b 27 64 lwz r9,10084(r27) <== NOT EXECUTED
ffc0a264: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED
ffc0a268: 83 89 00 0c lwz r28,12(r9) <== NOT EXECUTED
ffc0a26c: 4b ff ff 09 bl ffc0a174 <rtems_status_text> <== NOT EXECUTED
ffc0a270: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED
ffc0a274: 7c 65 1b 78 mr r5,r3 <== NOT EXECUTED
ffc0a278: 38 84 9b f4 addi r4,r4,-25612 <== NOT EXECUTED
ffc0a27c: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED
ffc0a280: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc0a284: 48 01 04 cd bl ffc1a750 <fprintf> <== NOT EXECUTED
ffc0a288: 7f ff 1a 14 add r31,r31,r3 <== NOT EXECUTED
if (local_errno)
ffc0a28c: 2f 9e 00 00 cmpwi cr7,r30,0 <== NOT EXECUTED
ffc0a290: 41 9e 00 68 beq- cr7,ffc0a2f8 <rtems_verror+0x158> <== NOT EXECUTED
{
if ((local_errno > 0) && *strerror(local_errno))
ffc0a294: 40 9d 00 40 ble- cr7,ffc0a2d4 <rtems_verror+0x134> <== NOT EXECUTED
ffc0a298: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc0a29c: 48 01 14 45 bl ffc1b6e0 <strerror> <== NOT EXECUTED
ffc0a2a0: 88 03 00 00 lbz r0,0(r3) <== NOT EXECUTED
ffc0a2a4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0a2a8: 41 be 00 2c beq+ cr7,ffc0a2d4 <rtems_verror+0x134> <== NOT EXECUTED
chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
ffc0a2ac: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc0a2b0: 81 29 27 64 lwz r9,10084(r9) <== NOT EXECUTED
ffc0a2b4: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc0a2b8: 83 89 00 0c lwz r28,12(r9) <== NOT EXECUTED
ffc0a2bc: 48 01 14 25 bl ffc1b6e0 <strerror> <== NOT EXECUTED
ffc0a2c0: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED
ffc0a2c4: 7c 65 1b 78 mr r5,r3 <== NOT EXECUTED
ffc0a2c8: 38 84 9c 02 addi r4,r4,-25598 <== NOT EXECUTED
ffc0a2cc: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED
ffc0a2d0: 48 00 00 1c b ffc0a2ec <rtems_verror+0x14c> <== NOT EXECUTED
else
chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
ffc0a2d4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc0a2d8: 81 29 27 64 lwz r9,10084(r9) <== NOT EXECUTED
ffc0a2dc: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED
ffc0a2e0: 38 84 9c 0f addi r4,r4,-25585 <== NOT EXECUTED
ffc0a2e4: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED
ffc0a2e8: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED
ffc0a2ec: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc0a2f0: 48 01 04 61 bl ffc1a750 <fprintf> <== NOT EXECUTED
ffc0a2f4: 7f ff 1a 14 add r31,r31,r3 <== NOT EXECUTED
}
chars_written += fprintf(stderr, "\n");
ffc0a2f8: 3f 80 00 00 lis r28,0 <== NOT EXECUTED
ffc0a2fc: 81 3c 27 64 lwz r9,10084(r28) <== NOT EXECUTED
ffc0a300: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED
ffc0a304: 38 84 9f 36 addi r4,r4,-24778 <== NOT EXECUTED
ffc0a308: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED
ffc0a30c: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc0a310: 48 01 04 41 bl ffc1a750 <fprintf> <== NOT EXECUTED
(void) fflush(stderr);
ffc0a314: 81 3c 27 64 lwz r9,10084(r28) <== 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");
ffc0a318: 7c 7b 1b 78 mr r27,r3 <== NOT EXECUTED
(void) fflush(stderr);
ffc0a31c: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED
ffc0a320: 48 00 ff ed bl ffc1a30c <fflush> <== NOT EXECUTED
if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT))
ffc0a324: 77 a0 30 00 andis. r0,r29,12288 <== 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");
ffc0a328: 7c 7b fa 14 add r3,r27,r31 <== NOT EXECUTED
(void) fflush(stderr);
if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT))
ffc0a32c: 41 82 00 44 beq- ffc0a370 <rtems_verror+0x1d0> <== NOT EXECUTED
{
if (error_flag & RTEMS_ERROR_PANIC)
ffc0a330: 2f 9a 00 00 cmpwi cr7,r26,0 <== NOT EXECUTED
ffc0a334: 41 9e 00 20 beq- cr7,ffc0a354 <rtems_verror+0x1b4> <== NOT EXECUTED
{
rtems_error(0, "fatal error, exiting");
ffc0a338: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED
ffc0a33c: 38 84 9c 23 addi r4,r4,-25565 <== NOT EXECUTED
ffc0a340: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc0a344: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc0a348: 48 00 00 e1 bl ffc0a428 <rtems_error> <== NOT EXECUTED
_exit(local_errno);
ffc0a34c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc0a350: 48 00 0e 5d bl ffc0b1ac <_exit> <== NOT EXECUTED
}
else
{
rtems_error(0, "fatal error, aborting");
ffc0a354: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED
ffc0a358: 38 84 9c 38 addi r4,r4,-25544 <== NOT EXECUTED
ffc0a35c: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc0a360: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc0a364: 48 00 00 c5 bl ffc0a428 <rtems_error> <== NOT EXECUTED
abort();
ffc0a368: 48 00 fb 05 bl ffc19e6c <abort> <== NOT EXECUTED
ffc0a36c: 38 60 00 00 li r3,0 <== NOT EXECUTED
}
}
return chars_written;
}
ffc0a370: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED
ffc0a374: 83 21 00 0c lwz r25,12(r1) <== NOT EXECUTED
ffc0a378: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0a37c: 83 41 00 10 lwz r26,16(r1) <== NOT EXECUTED
ffc0a380: 83 61 00 14 lwz r27,20(r1) <== NOT EXECUTED
ffc0a384: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED
ffc0a388: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED
ffc0a38c: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED
ffc0a390: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED
ffc0a394: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED
ffc0a398: 4e 80 00 20 blr <== NOT EXECUTED
ffc2af64 <scanInt>:
/*
* Extract an integer value from the database
*/
static int
scanInt(FILE *fp, int *val)
{
ffc2af64: 94 21 ff d8 stwu r1,-40(r1)
ffc2af68: 7c 08 02 a6 mflr r0
ffc2af6c: 93 01 00 08 stw r24,8(r1)
unsigned int limit = INT_MAX;
int sign = 0;
int d;
for (;;) {
c = getc(fp);
ffc2af70: 3f 00 00 00 lis r24,0
ffc2af74: 3b 18 35 68 addi r24,r24,13672
/*
* Extract an integer value from the database
*/
static int
scanInt(FILE *fp, int *val)
{
ffc2af78: 93 21 00 0c stw r25,12(r1)
limit++;
continue;
}
sign = 1;
}
if (!isdigit(c))
ffc2af7c: 3f 20 00 00 lis r25,0
ffc2af80: 3b 39 35 5c addi r25,r25,13660
/*
* Extract an integer value from the database
*/
static int
scanInt(FILE *fp, int *val)
{
ffc2af84: 93 81 00 18 stw r28,24(r1)
ffc2af88: 3f 80 7f ff lis r28,32767
ffc2af8c: 63 9c ff ff ori r28,r28,65535
ffc2af90: 90 01 00 2c stw r0,44(r1)
ffc2af94: 93 41 00 10 stw r26,16(r1)
sign = 1;
}
if (!isdigit(c))
return 0;
d = c - '0';
if ((i > (limit / 10))
ffc2af98: 3b 40 00 0a li r26,10
/*
* Extract an integer value from the database
*/
static int
scanInt(FILE *fp, int *val)
{
ffc2af9c: 93 61 00 14 stw r27,20(r1)
ffc2afa0: 7c 9b 23 78 mr r27,r4
ffc2afa4: 93 a1 00 1c stw r29,28(r1)
ffc2afa8: 3b a0 00 00 li r29,0
ffc2afac: 93 c1 00 20 stw r30,32(r1)
ffc2afb0: 7c 7e 1b 78 mr r30,r3
ffc2afb4: 93 e1 00 24 stw r31,36(r1)
ffc2afb8: 3b e0 00 00 li r31,0
unsigned int limit = INT_MAX;
int sign = 0;
int d;
for (;;) {
c = getc(fp);
ffc2afbc: 81 3e 00 04 lwz r9,4(r30)
ffc2afc0: 38 09 ff ff addi r0,r9,-1
ffc2afc4: 2f 80 00 00 cmpwi cr7,r0,0
ffc2afc8: 90 1e 00 04 stw r0,4(r30)
ffc2afcc: 40 bc 00 14 bge+ cr7,ffc2afe0 <scanInt+0x7c>
ffc2afd0: 80 78 00 00 lwz r3,0(r24) <== NOT EXECUTED
ffc2afd4: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED
ffc2afd8: 48 02 2b 81 bl ffc4db58 <__srget_r> <== NOT EXECUTED
ffc2afdc: 48 00 00 14 b ffc2aff0 <scanInt+0x8c> <== NOT EXECUTED
ffc2afe0: 81 3e 00 00 lwz r9,0(r30)
ffc2afe4: 38 09 00 01 addi r0,r9,1
ffc2afe8: 88 69 00 00 lbz r3,0(r9)
ffc2afec: 90 1e 00 00 stw r0,0(r30)
if (c == ':')
ffc2aff0: 2f 03 00 3a cmpwi cr6,r3,58
ffc2aff4: 2f 9d 00 00 cmpwi cr7,r29,0
ffc2aff8: 41 9a 00 68 beq- cr6,ffc2b060 <scanInt+0xfc>
break;
if (sign == 0) {
ffc2affc: 40 9e 00 1c bne- cr7,ffc2b018 <scanInt+0xb4>
if (c == '-') {
ffc2b000: 2f 83 00 2d cmpwi cr7,r3,45
sign = -1;
limit++;
continue;
ffc2b004: 3b a0 00 01 li r29,1
for (;;) {
c = getc(fp);
if (c == ':')
break;
if (sign == 0) {
if (c == '-') {
ffc2b008: 40 be 00 10 bne+ cr7,ffc2b018 <scanInt+0xb4>
sign = -1;
limit++;
ffc2b00c: 3b 9c 00 01 addi r28,r28,1 <== NOT EXECUTED
ffc2b010: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
continue;
ffc2b014: 4b ff ff a8 b ffc2afbc <scanInt+0x58> <== NOT EXECUTED
}
sign = 1;
}
if (!isdigit(c))
ffc2b018: 81 39 00 00 lwz r9,0(r25)
ffc2b01c: 7d 29 1a 14 add r9,r9,r3
ffc2b020: 88 09 00 01 lbz r0,1(r9)
ffc2b024: 70 09 00 04 andi. r9,r0,4
ffc2b028: 41 82 00 4c beq- ffc2b074 <scanInt+0x110>
return 0;
d = c - '0';
if ((i > (limit / 10))
ffc2b02c: 7c 1c d3 96 divwu r0,r28,r26
ffc2b030: 7f 9f 00 40 cmplw cr7,r31,r0
ffc2b034: 41 9d 00 40 bgt- cr7,ffc2b074 <scanInt+0x110>
ffc2b038: 7f 9f 00 00 cmpw cr7,r31,r0
}
sign = 1;
}
if (!isdigit(c))
return 0;
d = c - '0';
ffc2b03c: 38 63 ff d0 addi r3,r3,-48
if ((i > (limit / 10))
ffc2b040: 40 be 00 14 bne+ cr7,ffc2b054 <scanInt+0xf0>
ffc2b044: 1c 1f 00 0a mulli r0,r31,10 <== NOT EXECUTED
ffc2b048: 7c 00 e0 50 subf r0,r0,r28 <== NOT EXECUTED
ffc2b04c: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED
ffc2b050: 41 9d 00 24 bgt- cr7,ffc2b074 <scanInt+0x110> <== NOT EXECUTED
|| ((i == (limit / 10)) && (d > (limit % 10))))
return 0;
i = i * 10 + d;
ffc2b054: 1f ff 00 0a mulli r31,r31,10
ffc2b058: 7f e3 fa 14 add r31,r3,r31
ffc2b05c: 4b ff ff 60 b ffc2afbc <scanInt+0x58>
}
if (sign == 0)
ffc2b060: 41 9e 00 14 beq- cr7,ffc2b074 <scanInt+0x110>
return 0;
*val = i * sign;
ffc2b064: 7f fd f9 d6 mullw r31,r29,r31
ffc2b068: 38 60 00 01 li r3,1
ffc2b06c: 93 fb 00 00 stw r31,0(r27)
return 1;
ffc2b070: 48 00 00 08 b ffc2b078 <scanInt+0x114>
ffc2b074: 38 60 00 00 li r3,0 <== NOT EXECUTED
}
ffc2b078: 80 01 00 2c lwz r0,44(r1)
ffc2b07c: 83 01 00 08 lwz r24,8(r1)
ffc2b080: 7c 08 03 a6 mtlr r0
ffc2b084: 83 21 00 0c lwz r25,12(r1)
ffc2b088: 83 41 00 10 lwz r26,16(r1)
ffc2b08c: 83 61 00 14 lwz r27,20(r1)
ffc2b090: 83 81 00 18 lwz r28,24(r1)
ffc2b094: 83 a1 00 1c lwz r29,28(r1)
ffc2b098: 83 c1 00 20 lwz r30,32(r1)
ffc2b09c: 83 e1 00 24 lwz r31,36(r1)
ffc2b0a0: 38 21 00 28 addi r1,r1,40
ffc2b0a4: 4e 80 00 20 blr
ffc2b0a8 <scanString>:
/*
* Extract a string value from the database
*/
static int
scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
{
ffc2b0a8: 94 21 ff e0 stwu r1,-32(r1)
ffc2b0ac: 7c 08 02 a6 mflr r0
ffc2b0b0: 90 01 00 24 stw r0,36(r1)
int c;
*name = *bufp;
ffc2b0b4: 80 05 00 00 lwz r0,0(r5)
/*
* Extract a string value from the database
*/
static int
scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
{
ffc2b0b8: 93 61 00 0c stw r27,12(r1)
int c;
*name = *bufp;
for (;;) {
c = getc(fp);
ffc2b0bc: 3f 60 00 00 lis r27,0
ffc2b0c0: 3b 7b 35 68 addi r27,r27,13672
static int
scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
{
int c;
*name = *bufp;
ffc2b0c4: 90 04 00 00 stw r0,0(r4)
/*
* Extract a string value from the database
*/
static int
scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
{
ffc2b0c8: 93 81 00 10 stw r28,16(r1)
ffc2b0cc: 7c fc 3b 78 mr r28,r7
ffc2b0d0: 93 a1 00 14 stw r29,20(r1)
ffc2b0d4: 7c dd 33 78 mr r29,r6
ffc2b0d8: 93 c1 00 18 stw r30,24(r1)
ffc2b0dc: 7c 7e 1b 78 mr r30,r3
ffc2b0e0: 93 e1 00 1c stw r31,28(r1)
ffc2b0e4: 7c bf 2b 78 mr r31,r5
int c;
*name = *bufp;
for (;;) {
c = getc(fp);
ffc2b0e8: 81 3e 00 04 lwz r9,4(r30)
ffc2b0ec: 38 09 ff ff addi r0,r9,-1
ffc2b0f0: 2f 80 00 00 cmpwi cr7,r0,0
ffc2b0f4: 90 1e 00 04 stw r0,4(r30)
ffc2b0f8: 40 bc 00 14 bge+ cr7,ffc2b10c <scanString+0x64>
ffc2b0fc: 80 7b 00 00 lwz r3,0(r27)
ffc2b100: 7f c4 f3 78 mr r4,r30
ffc2b104: 48 02 2a 55 bl ffc4db58 <__srget_r>
ffc2b108: 48 00 00 14 b ffc2b11c <scanString+0x74>
ffc2b10c: 81 3e 00 00 lwz r9,0(r30)
ffc2b110: 38 09 00 01 addi r0,r9,1
ffc2b114: 88 69 00 00 lbz r3,0(r9)
ffc2b118: 90 1e 00 00 stw r0,0(r30)
if (c == ':') {
ffc2b11c: 2c 83 00 3a cmpwi cr1,r3,58
if (nlFlag)
return 0;
break;
}
if (c == '\n') {
ffc2b120: 2f 03 00 0a cmpwi cr6,r3,10
if (!nlFlag)
return 0;
break;
}
if (c == EOF)
ffc2b124: 2f 83 ff ff cmpwi cr7,r3,-1
int c;
*name = *bufp;
for (;;) {
c = getc(fp);
if (c == ':') {
ffc2b128: 40 a6 00 10 bne+ cr1,ffc2b138 <scanString+0x90>
if (nlFlag)
ffc2b12c: 2f 9c 00 00 cmpwi cr7,r28,0
ffc2b130: 41 be 00 4c beq+ cr7,ffc2b17c <scanString+0xd4>
ffc2b134: 48 00 00 74 b ffc2b1a8 <scanString+0x100> <== NOT EXECUTED
return 0;
break;
}
if (c == '\n') {
ffc2b138: 40 ba 00 10 bne+ cr6,ffc2b148 <scanString+0xa0>
if (!nlFlag)
ffc2b13c: 2f 9c 00 00 cmpwi cr7,r28,0
ffc2b140: 40 be 00 3c bne+ cr7,ffc2b17c <scanString+0xd4>
ffc2b144: 48 00 00 64 b ffc2b1a8 <scanString+0x100> <== NOT EXECUTED
return 0;
break;
}
if (c == EOF)
ffc2b148: 41 9e 00 60 beq- cr7,ffc2b1a8 <scanString+0x100>
return 0;
if (*nleft < 2)
ffc2b14c: 80 1d 00 00 lwz r0,0(r29)
ffc2b150: 2b 80 00 01 cmplwi cr7,r0,1
ffc2b154: 40 9d 00 54 ble- cr7,ffc2b1a8 <scanString+0x100>
return 0;
**bufp = c;
ffc2b158: 81 3f 00 00 lwz r9,0(r31)
ffc2b15c: 98 69 00 00 stb r3,0(r9)
++(*bufp);
ffc2b160: 81 3f 00 00 lwz r9,0(r31)
--(*nleft);
ffc2b164: 81 7d 00 00 lwz r11,0(r29)
if (c == EOF)
return 0;
if (*nleft < 2)
return 0;
**bufp = c;
++(*bufp);
ffc2b168: 39 29 00 01 addi r9,r9,1
--(*nleft);
ffc2b16c: 38 0b ff ff addi r0,r11,-1
if (c == EOF)
return 0;
if (*nleft < 2)
return 0;
**bufp = c;
++(*bufp);
ffc2b170: 91 3f 00 00 stw r9,0(r31)
--(*nleft);
ffc2b174: 90 1d 00 00 stw r0,0(r29)
}
ffc2b178: 4b ff ff 70 b ffc2b0e8 <scanString+0x40>
**bufp = '\0';
ffc2b17c: 81 3f 00 00 lwz r9,0(r31)
ffc2b180: 38 00 00 00 li r0,0
++(*bufp);
--(*nleft);
ffc2b184: 38 60 00 01 li r3,1
return 0;
**bufp = c;
++(*bufp);
--(*nleft);
}
**bufp = '\0';
ffc2b188: 98 09 00 00 stb r0,0(r9)
++(*bufp);
ffc2b18c: 81 3f 00 00 lwz r9,0(r31)
--(*nleft);
ffc2b190: 81 7d 00 00 lwz r11,0(r29)
**bufp = c;
++(*bufp);
--(*nleft);
}
**bufp = '\0';
++(*bufp);
ffc2b194: 39 29 00 01 addi r9,r9,1
--(*nleft);
ffc2b198: 38 0b ff ff addi r0,r11,-1
**bufp = c;
++(*bufp);
--(*nleft);
}
**bufp = '\0';
++(*bufp);
ffc2b19c: 91 3f 00 00 stw r9,0(r31)
--(*nleft);
ffc2b1a0: 90 1d 00 00 stw r0,0(r29)
return 1;
ffc2b1a4: 48 00 00 08 b ffc2b1ac <scanString+0x104>
ffc2b1a8: 38 60 00 00 li r3,0 <== NOT EXECUTED
}
ffc2b1ac: 80 01 00 24 lwz r0,36(r1)
ffc2b1b0: 83 61 00 0c lwz r27,12(r1)
ffc2b1b4: 7c 08 03 a6 mtlr r0
ffc2b1b8: 83 81 00 10 lwz r28,16(r1)
ffc2b1bc: 83 a1 00 14 lwz r29,20(r1)
ffc2b1c0: 83 c1 00 18 lwz r30,24(r1)
ffc2b1c4: 83 e1 00 1c lwz r31,28(r1)
ffc2b1c8: 38 21 00 20 addi r1,r1,32
ffc2b1cc: 4e 80 00 20 blr
ffc2b1d0 <scangr>:
FILE *fp,
struct group *grp,
char *buffer,
size_t bufsize
)
{
ffc2b1d0: 94 21 ff d0 stwu r1,-48(r1)
ffc2b1d4: 7c 08 02 a6 mflr r0
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
ffc2b1d8: 38 e0 00 00 li r7,0
FILE *fp,
struct group *grp,
char *buffer,
size_t bufsize
)
{
ffc2b1dc: 93 a1 00 24 stw r29,36(r1)
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
ffc2b1e0: 3b a1 00 18 addi r29,r1,24
FILE *fp,
struct group *grp,
char *buffer,
size_t bufsize
)
{
ffc2b1e4: 93 c1 00 28 stw r30,40(r1)
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
ffc2b1e8: 3b c1 00 1c addi r30,r1,28
FILE *fp,
struct group *grp,
char *buffer,
size_t bufsize
)
{
ffc2b1ec: 90 a1 00 18 stw r5,24(r1)
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
ffc2b1f0: 7f a5 eb 78 mr r5,r29
FILE *fp,
struct group *grp,
char *buffer,
size_t bufsize
)
{
ffc2b1f4: 90 c1 00 1c stw r6,28(r1)
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
ffc2b1f8: 7f c6 f3 78 mr r6,r30
FILE *fp,
struct group *grp,
char *buffer,
size_t bufsize
)
{
ffc2b1fc: 93 81 00 20 stw r28,32(r1)
ffc2b200: 7c 7c 1b 78 mr r28,r3
ffc2b204: 93 e1 00 2c stw r31,44(r1)
ffc2b208: 7c 9f 23 78 mr r31,r4
ffc2b20c: 90 01 00 34 stw r0,52(r1)
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
ffc2b210: 4b ff fe 99 bl ffc2b0a8 <scanString>
ffc2b214: 2f 83 00 00 cmpwi cr7,r3,0
ffc2b218: 41 be 01 08 beq+ cr7,ffc2b320 <scangr+0x150>
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
ffc2b21c: 7f 83 e3 78 mr r3,r28
ffc2b220: 38 9f 00 04 addi r4,r31,4
ffc2b224: 7f a5 eb 78 mr r5,r29
ffc2b228: 7f c6 f3 78 mr r6,r30
ffc2b22c: 38 e0 00 00 li r7,0
ffc2b230: 4b ff fe 79 bl ffc2b0a8 <scanString>
{
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
ffc2b234: 2f 83 00 00 cmpwi cr7,r3,0
ffc2b238: 41 be 00 e8 beq+ cr7,ffc2b320 <scangr+0x150>
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &grgid)
ffc2b23c: 7f 83 e3 78 mr r3,r28
ffc2b240: 38 81 00 08 addi r4,r1,8
ffc2b244: 4b ff fd 21 bl ffc2af64 <scanInt>
{
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
ffc2b248: 2f 83 00 00 cmpwi cr7,r3,0
ffc2b24c: 41 be 00 d4 beq+ cr7,ffc2b320 <scangr+0x150>
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &grgid)
|| !scanString(fp, &grmem, &buffer, &bufsize, 1))
ffc2b250: 7f 83 e3 78 mr r3,r28
ffc2b254: 7f a5 eb 78 mr r5,r29
ffc2b258: 7f c6 f3 78 mr r6,r30
ffc2b25c: 38 81 00 0c addi r4,r1,12
ffc2b260: 38 e0 00 01 li r7,1
ffc2b264: 4b ff fe 45 bl ffc2b0a8 <scanString>
{
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
ffc2b268: 2f 83 00 00 cmpwi cr7,r3,0
ffc2b26c: 41 9e 00 b4 beq- cr7,ffc2b320 <scangr+0x150>
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &grgid)
|| !scanString(fp, &grmem, &buffer, &bufsize, 1))
return 0;
grp->gr_gid = grgid;
ffc2b270: 80 01 00 08 lwz r0,8(r1)
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
ffc2b274: 81 41 00 0c lwz r10,12(r1)
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;
ffc2b278: b0 1f 00 08 sth r0,8(r31)
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
ffc2b27c: 38 00 00 01 li r0,1
ffc2b280: 7d 49 53 78 mr r9,r10
ffc2b284: 48 00 00 14 b ffc2b298 <scangr+0xc8>
if(*cp == ',')
memcount++;
ffc2b288: 69 68 00 2c xori r8,r11,44
ffc2b28c: 21 08 00 00 subfic r8,r8,0
ffc2b290: 7d 00 01 94 addze r8,r0
ffc2b294: 7d 00 43 78 mr r0,r8
grp->gr_gid = grgid;
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
ffc2b298: 89 69 00 00 lbz r11,0(r9)
ffc2b29c: 39 29 00 01 addi r9,r9,1
ffc2b2a0: 2f 8b 00 00 cmpwi cr7,r11,0
ffc2b2a4: 40 9e ff e4 bne+ cr7,ffc2b288 <scangr+0xb8>
}
/*
* Hack to produce (hopefully) a suitably-aligned array of pointers
*/
if (bufsize < (((memcount+1)*sizeof(char *)) + 15))
ffc2b2a8: 54 09 10 3a rlwinm r9,r0,2,0,29
ffc2b2ac: 38 09 00 13 addi r0,r9,19
ffc2b2b0: 81 21 00 1c lwz r9,28(r1)
ffc2b2b4: 7f 89 00 40 cmplw cr7,r9,r0
ffc2b2b8: 41 9c 00 68 blt- cr7,ffc2b320 <scangr+0x150>
return 0;
grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15);
ffc2b2bc: 81 21 00 18 lwz r9,24(r1)
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
ffc2b2c0: 39 60 00 01 li r11,1
/*
* 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);
ffc2b2c4: 39 29 00 0f addi r9,r9,15
ffc2b2c8: 55 29 00 36 rlwinm r9,r9,0,0,27
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
ffc2b2cc: 91 49 00 00 stw r10,0(r9)
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
if(*cp == ',') {
*cp = '\0';
ffc2b2d0: 39 40 00 00 li r10,0
/*
* 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);
ffc2b2d4: 91 3f 00 0c stw r9,12(r31)
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
ffc2b2d8: 81 21 00 0c lwz r9,12(r1)
ffc2b2dc: 48 00 00 1c b ffc2b2f8 <scangr+0x128>
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
if(*cp == ',') {
ffc2b2e0: 40 ba 00 18 bne+ cr6,ffc2b2f8 <scangr+0x128>
*cp = '\0';
ffc2b2e4: 99 49 ff ff stb r10,-1(r9) <== NOT EXECUTED
grp->gr_mem[memcount++] = cp + 1;
ffc2b2e8: 55 60 10 3a rlwinm r0,r11,2,0,29 <== NOT EXECUTED
ffc2b2ec: 39 6b 00 01 addi r11,r11,1 <== NOT EXECUTED
ffc2b2f0: 81 1f 00 0c lwz r8,12(r31) <== NOT EXECUTED
ffc2b2f4: 7d 28 01 2e stwx r9,r8,r0 <== NOT EXECUTED
ffc2b2f8: 39 29 00 01 addi r9,r9,1
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
ffc2b2fc: 88 09 ff ff lbz r0,-1(r9)
ffc2b300: 2f 80 00 00 cmpwi cr7,r0,0
if(*cp == ',') {
ffc2b304: 2f 00 00 2c cmpwi cr6,r0,44
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
ffc2b308: 40 9e ff d8 bne+ cr7,ffc2b2e0 <scangr+0x110>
if(*cp == ',') {
*cp = '\0';
grp->gr_mem[memcount++] = cp + 1;
}
}
grp->gr_mem[memcount] = NULL;
ffc2b30c: 81 3f 00 0c lwz r9,12(r31)
ffc2b310: 55 6b 10 3a rlwinm r11,r11,2,0,29
ffc2b314: 38 60 00 01 li r3,1
ffc2b318: 7c 09 59 2e stwx r0,r9,r11
return 1;
ffc2b31c: 48 00 00 08 b ffc2b324 <scangr+0x154>
ffc2b320: 38 60 00 00 li r3,0 <== NOT EXECUTED
}
ffc2b324: 80 01 00 34 lwz r0,52(r1)
ffc2b328: 83 81 00 20 lwz r28,32(r1)
ffc2b32c: 7c 08 03 a6 mtlr r0
ffc2b330: 83 a1 00 24 lwz r29,36(r1)
ffc2b334: 83 c1 00 28 lwz r30,40(r1)
ffc2b338: 83 e1 00 2c lwz r31,44(r1)
ffc2b33c: 38 21 00 30 addi r1,r1,48
ffc2b340: 4e 80 00 20 blr
ffc2b3a0 <scanpw>:
FILE *fp,
struct passwd *pwd,
char *buffer,
size_t bufsize
)
{
ffc2b3a0: 94 21 ff d0 stwu r1,-48(r1)
ffc2b3a4: 7c 08 02 a6 mflr r0
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2b3a8: 38 e0 00 00 li r7,0
FILE *fp,
struct passwd *pwd,
char *buffer,
size_t bufsize
)
{
ffc2b3ac: 93 81 00 20 stw r28,32(r1)
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2b3b0: 3b 81 00 18 addi r28,r1,24
FILE *fp,
struct passwd *pwd,
char *buffer,
size_t bufsize
)
{
ffc2b3b4: 93 a1 00 24 stw r29,36(r1)
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2b3b8: 3b a1 00 1c addi r29,r1,28
FILE *fp,
struct passwd *pwd,
char *buffer,
size_t bufsize
)
{
ffc2b3bc: 90 a1 00 18 stw r5,24(r1)
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2b3c0: 7f 85 e3 78 mr r5,r28
FILE *fp,
struct passwd *pwd,
char *buffer,
size_t bufsize
)
{
ffc2b3c4: 90 c1 00 1c stw r6,28(r1)
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2b3c8: 7f a6 eb 78 mr r6,r29
FILE *fp,
struct passwd *pwd,
char *buffer,
size_t bufsize
)
{
ffc2b3cc: 93 c1 00 28 stw r30,40(r1)
ffc2b3d0: 7c 7e 1b 78 mr r30,r3
ffc2b3d4: 93 e1 00 2c stw r31,44(r1)
ffc2b3d8: 7c 9f 23 78 mr r31,r4
ffc2b3dc: 90 01 00 34 stw r0,52(r1)
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2b3e0: 4b ff fc c9 bl ffc2b0a8 <scanString>
ffc2b3e4: 2f 83 00 00 cmpwi cr7,r3,0
ffc2b3e8: 41 be 00 e4 beq+ cr7,ffc2b4cc <scanpw+0x12c>
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
ffc2b3ec: 7f c3 f3 78 mr r3,r30
ffc2b3f0: 38 9f 00 04 addi r4,r31,4
ffc2b3f4: 7f 85 e3 78 mr r5,r28
ffc2b3f8: 7f a6 eb 78 mr r6,r29
ffc2b3fc: 38 e0 00 00 li r7,0
ffc2b400: 4b ff fc a9 bl ffc2b0a8 <scanString>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2b404: 2f 83 00 00 cmpwi cr7,r3,0
ffc2b408: 41 be 00 c4 beq+ cr7,ffc2b4cc <scanpw+0x12c>
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &pwuid)
ffc2b40c: 7f c3 f3 78 mr r3,r30
ffc2b410: 38 81 00 08 addi r4,r1,8
ffc2b414: 4b ff fb 51 bl ffc2af64 <scanInt>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2b418: 2f 83 00 00 cmpwi cr7,r3,0
ffc2b41c: 41 be 00 b0 beq+ cr7,ffc2b4cc <scanpw+0x12c>
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &pwuid)
|| !scanInt(fp, &pwgid)
ffc2b420: 7f c3 f3 78 mr r3,r30
ffc2b424: 38 81 00 0c addi r4,r1,12
ffc2b428: 4b ff fb 3d bl ffc2af64 <scanInt>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2b42c: 2f 83 00 00 cmpwi cr7,r3,0
ffc2b430: 41 be 00 9c beq+ cr7,ffc2b4cc <scanpw+0x12c>
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &pwuid)
|| !scanInt(fp, &pwgid)
|| !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)
ffc2b434: 7f c3 f3 78 mr r3,r30
ffc2b438: 38 9f 00 0c addi r4,r31,12
ffc2b43c: 7f 85 e3 78 mr r5,r28
ffc2b440: 7f a6 eb 78 mr r6,r29
ffc2b444: 38 e0 00 00 li r7,0
ffc2b448: 4b ff fc 61 bl ffc2b0a8 <scanString>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2b44c: 2f 83 00 00 cmpwi cr7,r3,0
ffc2b450: 41 be 00 7c beq+ cr7,ffc2b4cc <scanpw+0x12c>
|| !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)
ffc2b454: 7f c3 f3 78 mr r3,r30
ffc2b458: 38 9f 00 10 addi r4,r31,16
ffc2b45c: 7f 85 e3 78 mr r5,r28
ffc2b460: 7f a6 eb 78 mr r6,r29
ffc2b464: 38 e0 00 00 li r7,0
ffc2b468: 4b ff fc 41 bl ffc2b0a8 <scanString>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2b46c: 2f 83 00 00 cmpwi cr7,r3,0
ffc2b470: 41 be 00 5c beq+ cr7,ffc2b4cc <scanpw+0x12c>
|| !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)
ffc2b474: 7f c3 f3 78 mr r3,r30
ffc2b478: 38 9f 00 14 addi r4,r31,20
ffc2b47c: 7f 85 e3 78 mr r5,r28
ffc2b480: 7f a6 eb 78 mr r6,r29
ffc2b484: 38 e0 00 00 li r7,0
ffc2b488: 4b ff fc 21 bl ffc2b0a8 <scanString>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2b48c: 2f 83 00 00 cmpwi cr7,r3,0
ffc2b490: 41 be 00 3c beq+ cr7,ffc2b4cc <scanpw+0x12c>
|| !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))
ffc2b494: 7f c3 f3 78 mr r3,r30
ffc2b498: 7f 85 e3 78 mr r5,r28
ffc2b49c: 7f a6 eb 78 mr r6,r29
ffc2b4a0: 38 9f 00 18 addi r4,r31,24
ffc2b4a4: 38 e0 00 01 li r7,1
ffc2b4a8: 4b ff fc 01 bl ffc2b0a8 <scanString>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2b4ac: 2f 83 00 00 cmpwi cr7,r3,0
ffc2b4b0: 41 9e 00 1c beq- cr7,ffc2b4cc <scanpw+0x12c>
|| !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;
ffc2b4b4: 80 01 00 08 lwz r0,8(r1)
pwd->pw_gid = pwgid;
ffc2b4b8: 38 60 00 01 li r3,1
|| !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;
ffc2b4bc: b0 1f 00 08 sth r0,8(r31)
pwd->pw_gid = pwgid;
ffc2b4c0: 80 01 00 0c lwz r0,12(r1)
ffc2b4c4: b0 1f 00 0a sth r0,10(r31)
return 1;
ffc2b4c8: 48 00 00 08 b ffc2b4d0 <scanpw+0x130>
ffc2b4cc: 38 60 00 00 li r3,0 <== NOT EXECUTED
}
ffc2b4d0: 80 01 00 34 lwz r0,52(r1)
ffc2b4d4: 83 81 00 20 lwz r28,32(r1)
ffc2b4d8: 7c 08 03 a6 mtlr r0
ffc2b4dc: 83 a1 00 24 lwz r29,36(r1)
ffc2b4e0: 83 c1 00 28 lwz r30,40(r1)
ffc2b4e4: 83 e1 00 2c lwz r31,44(r1)
ffc2b4e8: 38 21 00 30 addi r1,r1,48
ffc2b4ec: 4e 80 00 20 blr
ffc2aee0 <setgid>:
int setgid(
gid_t gid
)
{
_POSIX_types_Gid = gid;
ffc2aee0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc2aee4: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED
ffc2aee8: b0 69 00 34 sth r3,52(r9) <== NOT EXECUTED
return 0;
}
ffc2aeec: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc2aef0: 4e 80 00 20 blr <== NOT EXECUTED
ffc2b63c <setgrent>:
return NULL;
return &grent;
}
void setgrent(void)
{
ffc2b63c: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED
ffc2b640: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc2b644: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
init_etc_passwd_group();
ffc2b648: 4b ff ff 05 bl ffc2b54c <init_etc_passwd_group> <== NOT EXECUTED
if (group_fp != NULL)
ffc2b64c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc2b650: 80 69 5f 74 lwz r3,24436(r9) <== NOT EXECUTED
ffc2b654: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc2b658: 41 9e 00 08 beq- cr7,ffc2b660 <setgrent+0x24> <== NOT EXECUTED
fclose(group_fp);
ffc2b65c: 48 01 c1 b5 bl ffc47810 <fclose> <== NOT EXECUTED
group_fp = fopen("/etc/group", "r");
ffc2b660: 3c 60 ff c6 lis r3,-58 <== NOT EXECUTED
ffc2b664: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED
ffc2b668: 38 63 35 20 addi r3,r3,13600 <== NOT EXECUTED
ffc2b66c: 38 84 4d 78 addi r4,r4,19832 <== NOT EXECUTED
ffc2b670: 48 01 cc cd bl ffc4833c <fopen> <== NOT EXECUTED
}
ffc2b674: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
{
init_etc_passwd_group();
if (group_fp != NULL)
fclose(group_fp);
group_fp = fopen("/etc/group", "r");
ffc2b678: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
}
ffc2b67c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
{
init_etc_passwd_group();
if (group_fp != NULL)
fclose(group_fp);
group_fp = fopen("/etc/group", "r");
ffc2b680: 90 69 5f 74 stw r3,24436(r9) <== NOT EXECUTED
}
ffc2b684: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc2b688: 4e 80 00 20 blr <== NOT EXECUTED
ffc2b888 <setpwent>:
return NULL;
return &pwent;
}
void setpwent(void)
{
ffc2b888: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED
ffc2b88c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc2b890: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
init_etc_passwd_group();
ffc2b894: 4b ff fc b9 bl ffc2b54c <init_etc_passwd_group> <== NOT EXECUTED
if (passwd_fp != NULL)
ffc2b898: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc2b89c: 80 69 5f 78 lwz r3,24440(r9) <== NOT EXECUTED
ffc2b8a0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc2b8a4: 41 9e 00 08 beq- cr7,ffc2b8ac <setpwent+0x24> <== NOT EXECUTED
fclose(passwd_fp);
ffc2b8a8: 48 01 bf 69 bl ffc47810 <fclose> <== NOT EXECUTED
passwd_fp = fopen("/etc/passwd", "r");
ffc2b8ac: 3c 60 ff c6 lis r3,-58 <== NOT EXECUTED
ffc2b8b0: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED
ffc2b8b4: 38 63 34 72 addi r3,r3,13426 <== NOT EXECUTED
ffc2b8b8: 38 84 4d 78 addi r4,r4,19832 <== NOT EXECUTED
ffc2b8bc: 48 01 ca 81 bl ffc4833c <fopen> <== NOT EXECUTED
}
ffc2b8c0: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
{
init_etc_passwd_group();
if (passwd_fp != NULL)
fclose(passwd_fp);
passwd_fp = fopen("/etc/passwd", "r");
ffc2b8c4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
}
ffc2b8c8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
{
init_etc_passwd_group();
if (passwd_fp != NULL)
fclose(passwd_fp);
passwd_fp = fopen("/etc/passwd", "r");
ffc2b8cc: 90 69 5f 78 stw r3,24440(r9) <== NOT EXECUTED
}
ffc2b8d0: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc2b8d4: 4e 80 00 20 blr <== NOT EXECUTED
ffc07420 <setuid>:
int setuid(
uid_t uid
)
{
_POSIX_types_Uid = uid;
ffc07420: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc07424: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED
ffc07428: b0 69 00 32 sth r3,50(r9) <== NOT EXECUTED
return 0;
}
ffc0742c: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc07430: 4e 80 00 20 blr <== NOT EXECUTED
ffc060f8 <siproc>:
/*
* Process input character, with semaphore.
*/
static int
siproc (unsigned char c, struct rtems_termios_tty *tty)
{
ffc060f8: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED
ffc060fc: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc06100: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED
int i;
/*
* Obtain output semaphore if character will be echoed
*/
if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
ffc06104: 80 04 00 3c lwz r0,60(r4) <== NOT EXECUTED
/*
* Process input character, with semaphore.
*/
static int
siproc (unsigned char c, struct rtems_termios_tty *tty)
{
ffc06108: 93 c1 00 08 stw r30,8(r1) <== NOT EXECUTED
ffc0610c: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED
int i;
/*
* Obtain output semaphore if character will be echoed
*/
if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
ffc06110: 70 09 0e 78 andi. r9,r0,3704 <== NOT EXECUTED
/*
* Process input character, with semaphore.
*/
static int
siproc (unsigned char c, struct rtems_termios_tty *tty)
{
ffc06114: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED
ffc06118: 7c 9f 23 78 mr r31,r4 <== NOT EXECUTED
int i;
/*
* Obtain output semaphore if character will be echoed
*/
if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
ffc0611c: 41 a2 00 48 beq+ ffc06164 <siproc+0x6c> <== NOT EXECUTED
rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc06120: 80 64 00 18 lwz r3,24(r4) <== NOT EXECUTED
ffc06124: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc06128: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc0612c: 48 00 1c 81 bl ffc07dac <rtems_semaphore_obtain> <== NOT EXECUTED
i = iproc (c, tty);
ffc06130: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc06134: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc06138: 4b ff fd f9 bl ffc05f30 <iproc> <== NOT EXECUTED
ffc0613c: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED
rtems_semaphore_release (tty->osem);
ffc06140: 80 7f 00 18 lwz r3,24(r31) <== NOT EXECUTED
ffc06144: 48 00 1d ad bl ffc07ef0 <rtems_semaphore_release> <== NOT EXECUTED
}
else {
i = iproc (c, tty);
}
return i;
}
ffc06148: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc0614c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc06150: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc06154: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc06158: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED
ffc0615c: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc06160: 4e 80 00 20 blr <== NOT EXECUTED
ffc06164: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc06168: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED
ffc0616c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc06170: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc06174: 38 21 00 10 addi r1,r1,16 <== 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);
ffc06178: 4b ff fd b8 b ffc05f30 <iproc> <== NOT EXECUTED
ffc08b04 <stat>:
int _STAT_NAME(
const char *path,
struct stat *buf
)
{
ffc08b04: 94 21 ff c8 stwu r1,-56(r1)
ffc08b08: 7c 08 02 a6 mflr r0
ffc08b0c: 93 c1 00 30 stw r30,48(r1)
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
ffc08b10: 7c 9e 23 79 mr. r30,r4
int _STAT_NAME(
const char *path,
struct stat *buf
)
{
ffc08b14: 93 a1 00 2c stw r29,44(r1)
ffc08b18: 7c 7d 1b 78 mr r29,r3
ffc08b1c: 90 01 00 3c stw r0,60(r1)
ffc08b20: 93 e1 00 34 stw r31,52(r1)
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
ffc08b24: 40 a2 00 10 bne+ ffc08b34 <stat+0x30>
rtems_set_errno_and_return_minus_one( EFAULT );
ffc08b28: 48 03 eb 49 bl ffc47670 <__errno>
ffc08b2c: 38 00 00 0e li r0,14
ffc08b30: 48 00 00 6c b ffc08b9c <stat+0x98>
status = rtems_filesystem_evaluate_path( path, strlen( path ),
ffc08b34: 48 04 69 11 bl ffc4f444 <strlen>
ffc08b38: 3b e1 00 08 addi r31,r1,8
ffc08b3c: 7c 64 1b 78 mr r4,r3
ffc08b40: 38 a0 00 00 li r5,0
ffc08b44: 7f a3 eb 78 mr r3,r29
ffc08b48: 7f e6 fb 78 mr r6,r31
ffc08b4c: 38 e0 00 01 li r7,1
ffc08b50: 4b ff e6 85 bl ffc071d4 <rtems_filesystem_evaluate_path>
0, &loc, _STAT_FOLLOW_LINKS );
if ( status != 0 )
ffc08b54: 3b a0 ff ff li r29,-1
ffc08b58: 2f 83 00 00 cmpwi cr7,r3,0
ffc08b5c: 40 9e 00 9c bne- cr7,ffc08bf8 <stat+0xf4>
return -1;
if ( !loc.handlers->fstat_h ){
ffc08b60: 81 21 00 10 lwz r9,16(r1)
ffc08b64: 80 09 00 18 lwz r0,24(r9)
ffc08b68: 2f 80 00 00 cmpwi cr7,r0,0
ffc08b6c: 40 be 00 3c bne+ cr7,ffc08ba8 <stat+0xa4>
rtems_filesystem_freenode( &loc );
ffc08b70: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED
ffc08b74: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc08b78: 41 9e 00 1c beq- cr7,ffc08b94 <stat+0x90> <== NOT EXECUTED
ffc08b7c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc08b80: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc08b84: 41 9e 00 10 beq- cr7,ffc08b94 <stat+0x90> <== NOT EXECUTED
ffc08b88: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc08b8c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc08b90: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc08b94: 48 03 ea dd bl ffc47670 <__errno> <== NOT EXECUTED
ffc08b98: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc08b9c: 90 03 00 00 stw r0,0(r3)
ffc08ba0: 3b a0 ff ff li r29,-1
ffc08ba4: 48 00 00 54 b ffc08bf8 <stat+0xf4>
/*
* Zero out the stat structure so the various support
* versions of stat don't have to.
*/
memset( buf, 0, sizeof(struct stat) );
ffc08ba8: 38 80 00 00 li r4,0
ffc08bac: 38 a0 00 48 li r5,72
ffc08bb0: 7f c3 f3 78 mr r3,r30
ffc08bb4: 48 04 28 59 bl ffc4b40c <memset>
status = (*loc.handlers->fstat_h)( &loc, buf );
ffc08bb8: 81 21 00 10 lwz r9,16(r1)
ffc08bbc: 7f c4 f3 78 mr r4,r30
ffc08bc0: 80 09 00 18 lwz r0,24(r9)
ffc08bc4: 7f e3 fb 78 mr r3,r31
ffc08bc8: 7c 09 03 a6 mtctr r0
ffc08bcc: 4e 80 04 21 bctrl
rtems_filesystem_freenode( &loc );
ffc08bd0: 81 21 00 14 lwz r9,20(r1)
* versions of stat don't have to.
*/
memset( buf, 0, sizeof(struct stat) );
status = (*loc.handlers->fstat_h)( &loc, buf );
ffc08bd4: 7c 7d 1b 78 mr r29,r3
rtems_filesystem_freenode( &loc );
ffc08bd8: 2f 89 00 00 cmpwi cr7,r9,0
ffc08bdc: 41 9e 00 1c beq- cr7,ffc08bf8 <stat+0xf4>
ffc08be0: 80 09 00 1c lwz r0,28(r9)
ffc08be4: 2f 80 00 00 cmpwi cr7,r0,0
ffc08be8: 41 9e 00 10 beq- cr7,ffc08bf8 <stat+0xf4>
ffc08bec: 7f e3 fb 78 mr r3,r31
ffc08bf0: 7c 09 03 a6 mtctr r0
ffc08bf4: 4e 80 04 21 bctrl
return status;
}
ffc08bf8: 80 01 00 3c lwz r0,60(r1)
ffc08bfc: 7f a3 eb 78 mr r3,r29
ffc08c00: 83 c1 00 30 lwz r30,48(r1)
ffc08c04: 7c 08 03 a6 mtlr r0
ffc08c08: 83 a1 00 2c lwz r29,44(r1)
ffc08c0c: 83 e1 00 34 lwz r31,52(r1)
ffc08c10: 38 21 00 38 addi r1,r1,56
ffc08c14: 4e 80 00 20 blr
ffc2caf8 <statvfs>:
*/
extern rtems_chain_control rtems_filesystem_mount_table_control;
int
statvfs (const char *path, struct statvfs *sb)
{
ffc2caf8: 94 21 ff c8 stwu r1,-56(r1) <== NOT EXECUTED
ffc2cafc: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc2cb00: 93 a1 00 2c stw r29,44(r1) <== NOT EXECUTED
ffc2cb04: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED
ffc2cb08: 90 01 00 3c stw r0,60(r1) <== NOT EXECUTED
ffc2cb0c: 93 c1 00 30 stw r30,48(r1) <== NOT EXECUTED
ffc2cb10: 7c 9e 23 78 mr r30,r4 <== NOT EXECUTED
ffc2cb14: 93 e1 00 34 stw r31,52(r1) <== 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 ) )
ffc2cb18: 48 02 29 2d bl ffc4f444 <strlen> <== NOT EXECUTED
ffc2cb1c: 3b e1 00 08 addi r31,r1,8 <== NOT EXECUTED
ffc2cb20: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED
ffc2cb24: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc2cb28: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc2cb2c: 7f e6 fb 78 mr r6,r31 <== NOT EXECUTED
ffc2cb30: 38 e0 00 01 li r7,1 <== NOT EXECUTED
ffc2cb34: 4b fd a6 a1 bl ffc071d4 <rtems_filesystem_evaluate_path><== NOT EXECUTED
ffc2cb38: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
ffc2cb3c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc2cb40: 40 9e 00 7c bne- cr7,ffc2cbbc <statvfs+0xc4> <== NOT EXECUTED
return -1;
mt_entry = loc.mt_entry;
ffc2cb44: 83 a1 00 18 lwz r29,24(r1) <== NOT EXECUTED
fs_mount_root = &mt_entry->mt_fs_root;
ffc2cb48: 81 3d 00 28 lwz r9,40(r29) <== NOT EXECUTED
ffc2cb4c: 80 09 00 44 lwz r0,68(r9) <== NOT EXECUTED
ffc2cb50: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2cb54: 40 be 00 18 bne+ cr7,ffc2cb6c <statvfs+0x74> <== NOT EXECUTED
if ( !fs_mount_root->ops->statvfs_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc2cb58: 48 01 ab 19 bl ffc47670 <__errno> <== NOT EXECUTED
ffc2cb5c: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc2cb60: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc2cb64: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
ffc2cb68: 48 00 00 54 b ffc2cbbc <statvfs+0xc4> <== NOT EXECUTED
memset (sb, 0, sizeof (struct statvfs));
ffc2cb6c: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc2cb70: 38 a0 00 38 li r5,56 <== NOT EXECUTED
ffc2cb74: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc2cb78: 48 01 e8 95 bl ffc4b40c <memset> <== NOT EXECUTED
result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb );
ffc2cb7c: 81 3d 00 28 lwz r9,40(r29) <== NOT EXECUTED
ffc2cb80: 38 7d 00 1c addi r3,r29,28 <== NOT EXECUTED
ffc2cb84: 80 09 00 44 lwz r0,68(r9) <== NOT EXECUTED
ffc2cb88: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED
ffc2cb8c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2cb90: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
ffc2cb94: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED
if ( !fs_mount_root->ops->statvfs_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
memset (sb, 0, sizeof (struct statvfs));
result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb );
ffc2cb98: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
ffc2cb9c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc2cba0: 41 9e 00 1c beq- cr7,ffc2cbbc <statvfs+0xc4> <== NOT EXECUTED
ffc2cba4: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2cba8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2cbac: 41 9e 00 10 beq- cr7,ffc2cbbc <statvfs+0xc4> <== NOT EXECUTED
ffc2cbb0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc2cbb4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2cbb8: 4e 80 04 21 bctrl <== NOT EXECUTED
return result;
}
ffc2cbbc: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED
ffc2cbc0: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc2cbc4: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED
ffc2cbc8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2cbcc: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED
ffc2cbd0: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED
ffc2cbd4: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED
ffc2cbd8: 4e 80 00 20 blr <== NOT EXECUTED
ffc2cbdc <symlink>:
int symlink(
const char *actualpath,
const char *sympath
)
{
ffc2cbdc: 94 21 ff c8 stwu r1,-56(r1)
ffc2cbe0: 7c 08 02 a6 mflr r0
ffc2cbe4: 93 a1 00 2c stw r29,44(r1)
ffc2cbe8: 7c 7d 1b 78 mr r29,r3
ffc2cbec: 90 01 00 3c stw r0,60(r1)
ffc2cbf0: 93 c1 00 30 stw r30,48(r1)
ffc2cbf4: 93 e1 00 34 stw r31,52(r1)
rtems_filesystem_location_info_t loc;
int i;
const char *name_start;
int result;
rtems_filesystem_get_start_loc( sympath, &i, &loc );
ffc2cbf8: 88 04 00 00 lbz r0,0(r4)
ffc2cbfc: 2f 80 00 2f cmpwi cr7,r0,47
ffc2cc00: 41 9e 00 14 beq- cr7,ffc2cc14 <symlink+0x38>
ffc2cc04: 2f 80 00 5c cmpwi cr7,r0,92
ffc2cc08: 41 9e 00 0c beq- cr7,ffc2cc14 <symlink+0x38>
ffc2cc0c: 2f 80 00 00 cmpwi cr7,r0,0
ffc2cc10: 40 9e 00 38 bne- cr7,ffc2cc48 <symlink+0x6c>
ffc2cc14: 3d 20 00 00 lis r9,0
ffc2cc18: 81 29 35 2c lwz r9,13612(r9)
ffc2cc1c: 38 60 00 01 li r3,1
ffc2cc20: 80 09 00 24 lwz r0,36(r9)
ffc2cc24: 81 09 00 18 lwz r8,24(r9)
ffc2cc28: 81 49 00 1c lwz r10,28(r9)
ffc2cc2c: 81 69 00 20 lwz r11,32(r9)
ffc2cc30: 91 01 00 0c stw r8,12(r1)
ffc2cc34: 91 41 00 10 stw r10,16(r1)
ffc2cc38: 91 61 00 14 stw r11,20(r1)
ffc2cc3c: 90 01 00 18 stw r0,24(r1)
ffc2cc40: 80 09 00 28 lwz r0,40(r9)
ffc2cc44: 48 00 00 34 b ffc2cc78 <symlink+0x9c>
ffc2cc48: 3d 20 00 00 lis r9,0
ffc2cc4c: 81 29 35 2c lwz r9,13612(r9)
ffc2cc50: 38 60 00 00 li r3,0
ffc2cc54: 80 09 00 10 lwz r0,16(r9)
ffc2cc58: 81 09 00 04 lwz r8,4(r9)
ffc2cc5c: 81 49 00 08 lwz r10,8(r9)
ffc2cc60: 81 69 00 0c lwz r11,12(r9)
ffc2cc64: 91 01 00 0c stw r8,12(r1)
ffc2cc68: 91 41 00 10 stw r10,16(r1)
ffc2cc6c: 91 61 00 14 stw r11,20(r1)
ffc2cc70: 90 01 00 18 stw r0,24(r1)
ffc2cc74: 80 09 00 14 lwz r0,20(r9)
if ( !loc.ops->evalformake_h ) {
ffc2cc78: 81 21 00 18 lwz r9,24(r1)
rtems_filesystem_location_info_t loc;
int i;
const char *name_start;
int result;
rtems_filesystem_get_start_loc( sympath, &i, &loc );
ffc2cc7c: 90 01 00 1c stw r0,28(r1)
if ( !loc.ops->evalformake_h ) {
ffc2cc80: 80 09 00 04 lwz r0,4(r9)
ffc2cc84: 2f 80 00 00 cmpwi cr7,r0,0
ffc2cc88: 41 9e 00 50 beq- cr7,ffc2ccd8 <symlink+0xfc>
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start );
ffc2cc8c: 3b c1 00 0c addi r30,r1,12
ffc2cc90: 7c 09 03 a6 mtctr r0
ffc2cc94: 7c 64 1a 14 add r3,r4,r3
ffc2cc98: 38 a1 00 08 addi r5,r1,8
ffc2cc9c: 7f c4 f3 78 mr r4,r30
if ( result != 0 )
ffc2cca0: 3b e0 ff ff li r31,-1
if ( !loc.ops->evalformake_h ) {
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start );
ffc2cca4: 4e 80 04 21 bctrl
if ( result != 0 )
ffc2cca8: 2f 83 00 00 cmpwi cr7,r3,0
ffc2ccac: 40 9e 00 7c bne- cr7,ffc2cd28 <symlink+0x14c>
return -1;
if ( !loc.ops->symlink_h ) {
ffc2ccb0: 81 21 00 18 lwz r9,24(r1)
ffc2ccb4: 80 09 00 38 lwz r0,56(r9)
ffc2ccb8: 2f 80 00 00 cmpwi cr7,r0,0
ffc2ccbc: 40 be 00 30 bne+ cr7,ffc2ccec <symlink+0x110>
rtems_filesystem_freenode( &loc );
ffc2ccc0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2ccc4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2ccc8: 41 9e 00 10 beq- cr7,ffc2ccd8 <symlink+0xfc> <== NOT EXECUTED
ffc2cccc: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc2ccd0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2ccd4: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc2ccd8: 48 01 a9 99 bl ffc47670 <__errno> <== NOT EXECUTED
ffc2ccdc: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc2cce0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc2cce4: 3b e0 ff ff li r31,-1 <== NOT EXECUTED
ffc2cce8: 48 00 00 40 b ffc2cd28 <symlink+0x14c> <== NOT EXECUTED
}
result = (*loc.ops->symlink_h)( &loc, actualpath, name_start);
ffc2ccec: 7f a4 eb 78 mr r4,r29
ffc2ccf0: 80 a1 00 08 lwz r5,8(r1)
ffc2ccf4: 7f c3 f3 78 mr r3,r30
ffc2ccf8: 7c 09 03 a6 mtctr r0
ffc2ccfc: 4e 80 04 21 bctrl
rtems_filesystem_freenode( &loc );
ffc2cd00: 81 21 00 18 lwz r9,24(r1)
if ( !loc.ops->symlink_h ) {
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->symlink_h)( &loc, actualpath, name_start);
ffc2cd04: 7c 7f 1b 78 mr r31,r3
rtems_filesystem_freenode( &loc );
ffc2cd08: 2f 89 00 00 cmpwi cr7,r9,0
ffc2cd0c: 41 9e 00 1c beq- cr7,ffc2cd28 <symlink+0x14c>
ffc2cd10: 80 09 00 1c lwz r0,28(r9)
ffc2cd14: 2f 80 00 00 cmpwi cr7,r0,0
ffc2cd18: 41 9e 00 10 beq- cr7,ffc2cd28 <symlink+0x14c>
ffc2cd1c: 7f c3 f3 78 mr r3,r30
ffc2cd20: 7c 09 03 a6 mtctr r0
ffc2cd24: 4e 80 04 21 bctrl
return result;
}
ffc2cd28: 80 01 00 3c lwz r0,60(r1)
ffc2cd2c: 7f e3 fb 78 mr r3,r31
ffc2cd30: 83 a1 00 2c lwz r29,44(r1)
ffc2cd34: 7c 08 03 a6 mtlr r0
ffc2cd38: 83 c1 00 30 lwz r30,48(r1)
ffc2cd3c: 83 e1 00 34 lwz r31,52(r1)
ffc2cd40: 38 21 00 38 addi r1,r1,56
ffc2cd44: 4e 80 00 20 blr
ffc15944 <tcsetattr>:
int fd,
int opt,
struct termios *tp
)
{
switch (opt) {
ffc15944: 2c 04 00 00 cmpwi r4,0
int tcsetattr(
int fd,
int opt,
struct termios *tp
)
{
ffc15948: 94 21 ff f0 stwu r1,-16(r1)
ffc1594c: 7c 08 02 a6 mflr r0
ffc15950: 93 c1 00 08 stw r30,8(r1)
ffc15954: 7c 7e 1b 78 mr r30,r3
ffc15958: 93 e1 00 0c stw r31,12(r1)
ffc1595c: 7c bf 2b 78 mr r31,r5
ffc15960: 90 01 00 14 stw r0,20(r1)
switch (opt) {
ffc15964: 41 82 00 3c beq- ffc159a0 <tcsetattr+0x5c>
ffc15968: 2f 84 00 01 cmpwi cr7,r4,1 <== NOT EXECUTED
ffc1596c: 41 9e 00 18 beq- cr7,ffc15984 <tcsetattr+0x40> <== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc15970: 48 00 5d dd bl ffc1b74c <__errno> <== NOT EXECUTED
ffc15974: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc15978: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc1597c: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc15980: 48 00 00 34 b ffc159b4 <tcsetattr+0x70> <== NOT EXECUTED
case TCSADRAIN:
if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0)
ffc15984: 38 80 00 03 li r4,3 <== NOT EXECUTED
ffc15988: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc1598c: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc15990: 48 00 42 8d bl ffc19c1c <ioctl> <== NOT EXECUTED
ffc15994: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc15998: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc1599c: 41 9c 00 18 blt- cr7,ffc159b4 <tcsetattr+0x70> <== NOT EXECUTED
return -1;
/*
* Fall through to....
*/
case TCSANOW:
return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );
ffc159a0: 7f c3 f3 78 mr r3,r30
ffc159a4: 7f e5 fb 78 mr r5,r31
ffc159a8: 38 80 00 02 li r4,2
ffc159ac: 4c c6 31 82 crclr 4*cr1+eq
ffc159b0: 48 00 42 6d bl ffc19c1c <ioctl>
}
}
ffc159b4: 80 01 00 14 lwz r0,20(r1)
ffc159b8: 83 c1 00 08 lwz r30,8(r1)
ffc159bc: 7c 08 03 a6 mtlr r0
ffc159c0: 83 e1 00 0c lwz r31,12(r1)
ffc159c4: 38 21 00 10 addi r1,r1,16
ffc159c8: 4e 80 00 20 blr
ffc11280 <unlink>:
#include <rtems/seterr.h>
int unlink(
const char *path
)
{
ffc11280: 94 21 ff b8 stwu r1,-72(r1)
ffc11284: 7c 08 02 a6 mflr r0
ffc11288: 93 a1 00 3c stw r29,60(r1)
ffc1128c: 93 c1 00 40 stw r30,64(r1)
ffc11290: 7c 7e 1b 78 mr r30,r3
ffc11294: 90 01 00 4c stw r0,76(r1)
ffc11298: 93 e1 00 44 stw r31,68(r1)
/*
* Get the node to be unlinked. Find the parent path first.
*/
parentpathlen = rtems_filesystem_dirname ( path );
ffc1129c: 4b ff 2d 4d bl ffc03fe8 <rtems_filesystem_dirname>
if ( parentpathlen == 0 )
ffc112a0: 7c 7d 1b 79 mr. r29,r3
ffc112a4: 40 82 00 8c bne- ffc11330 <unlink+0xb0>
rtems_filesystem_get_start_loc( path, &i, &parentloc );
ffc112a8: 88 1e 00 00 lbz r0,0(r30)
ffc112ac: 2f 80 00 2f cmpwi cr7,r0,47
ffc112b0: 41 9e 00 14 beq- cr7,ffc112c4 <unlink+0x44>
ffc112b4: 2f 80 00 5c cmpwi cr7,r0,92
ffc112b8: 41 9e 00 0c beq- cr7,ffc112c4 <unlink+0x44>
ffc112bc: 2f 80 00 00 cmpwi cr7,r0,0
ffc112c0: 40 9e 00 38 bne- cr7,ffc112f8 <unlink+0x78>
ffc112c4: 3d 20 00 00 lis r9,0
ffc112c8: 81 29 26 dc lwz r9,9948(r9)
ffc112cc: 3b e0 00 00 li r31,0
ffc112d0: 80 09 00 24 lwz r0,36(r9)
ffc112d4: 81 09 00 18 lwz r8,24(r9)
ffc112d8: 81 49 00 1c lwz r10,28(r9)
ffc112dc: 81 69 00 20 lwz r11,32(r9)
ffc112e0: 91 01 00 08 stw r8,8(r1)
ffc112e4: 91 41 00 0c stw r10,12(r1)
ffc112e8: 91 61 00 10 stw r11,16(r1)
ffc112ec: 90 01 00 14 stw r0,20(r1)
ffc112f0: 80 09 00 28 lwz r0,40(r9)
ffc112f4: 48 00 00 34 b ffc11328 <unlink+0xa8>
ffc112f8: 3d 20 00 00 lis r9,0
ffc112fc: 81 29 26 dc lwz r9,9948(r9)
ffc11300: 3b e0 00 00 li r31,0
ffc11304: 80 09 00 10 lwz r0,16(r9)
ffc11308: 81 09 00 04 lwz r8,4(r9)
ffc1130c: 81 49 00 08 lwz r10,8(r9)
ffc11310: 81 69 00 0c lwz r11,12(r9)
ffc11314: 91 01 00 08 stw r8,8(r1)
ffc11318: 91 41 00 0c stw r10,12(r1)
ffc1131c: 91 61 00 10 stw r11,16(r1)
ffc11320: 90 01 00 14 stw r0,20(r1)
ffc11324: 80 09 00 14 lwz r0,20(r9)
ffc11328: 90 01 00 18 stw r0,24(r1)
ffc1132c: 48 00 00 28 b ffc11354 <unlink+0xd4>
else {
result = rtems_filesystem_evaluate_path( path, parentpathlen,
ffc11330: 7f c3 f3 78 mr r3,r30
ffc11334: 7f a4 eb 78 mr r4,r29
ffc11338: 38 a0 00 02 li r5,2
ffc1133c: 38 c1 00 08 addi r6,r1,8
ffc11340: 38 e0 00 00 li r7,0
ffc11344: 4b ff 2e 1d bl ffc04160 <rtems_filesystem_evaluate_path>
RTEMS_LIBIO_PERMS_WRITE,
&parentloc,
false );
if ( result != 0 )
ffc11348: 2f 83 00 00 cmpwi cr7,r3,0
ffc1134c: 40 9e 01 ec bne- cr7,ffc11538 <unlink+0x2b8>
ffc11350: 3b e0 00 01 li r31,1
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
ffc11354: 80 01 00 08 lwz r0,8(r1)
name = path + parentpathlen;
ffc11358: 7f be ea 14 add r29,r30,r29
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
ffc1135c: 7f a3 eb 78 mr r3,r29
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
ffc11360: 90 01 00 1c stw r0,28(r1)
name = path + parentpathlen;
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
ffc11364: 3b c1 00 1c addi r30,r1,28
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
ffc11368: 80 01 00 0c lwz r0,12(r1)
ffc1136c: 90 01 00 20 stw r0,32(r1)
ffc11370: 80 01 00 10 lwz r0,16(r1)
ffc11374: 90 01 00 24 stw r0,36(r1)
ffc11378: 80 01 00 14 lwz r0,20(r1)
ffc1137c: 90 01 00 28 stw r0,40(r1)
ffc11380: 80 01 00 18 lwz r0,24(r1)
ffc11384: 90 01 00 2c stw r0,44(r1)
name = path + parentpathlen;
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
ffc11388: 48 00 1b 39 bl ffc12ec0 <strlen>
ffc1138c: 7c 64 1b 78 mr r4,r3
ffc11390: 7f a3 eb 78 mr r3,r29
ffc11394: 4b ff 2c 19 bl ffc03fac <rtems_filesystem_prefix_separators>
ffc11398: 7f bd 1a 14 add r29,r29,r3
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
ffc1139c: 7f a3 eb 78 mr r3,r29
ffc113a0: 48 00 1b 21 bl ffc12ec0 <strlen>
ffc113a4: 38 a0 00 00 li r5,0
ffc113a8: 7c 64 1b 78 mr r4,r3
ffc113ac: 7f c6 f3 78 mr r6,r30
ffc113b0: 7f a3 eb 78 mr r3,r29
ffc113b4: 38 e0 00 00 li r7,0
ffc113b8: 4b ff 2c 95 bl ffc0404c <rtems_filesystem_evaluate_relative_path>
0, &loc, false );
if ( result != 0 ) {
ffc113bc: 2f 83 00 00 cmpwi cr7,r3,0
ffc113c0: 41 be 00 30 beq+ cr7,ffc113f0 <unlink+0x170>
if ( free_parentloc )
ffc113c4: 2f 9f 00 00 cmpwi cr7,r31,0
ffc113c8: 41 be 01 70 beq+ cr7,ffc11538 <unlink+0x2b8>
rtems_filesystem_freenode( &parentloc );
ffc113cc: 81 21 00 14 lwz r9,20(r1)
ffc113d0: 2f 89 00 00 cmpwi cr7,r9,0
ffc113d4: 41 be 01 64 beq+ cr7,ffc11538 <unlink+0x2b8>
ffc113d8: 80 09 00 1c lwz r0,28(r9)
ffc113dc: 38 61 00 08 addi r3,r1,8
ffc113e0: 3b a0 ff ff li r29,-1
ffc113e4: 2f 80 00 00 cmpwi cr7,r0,0
ffc113e8: 41 be 01 50 beq+ cr7,ffc11538 <unlink+0x2b8>
ffc113ec: 48 00 01 40 b ffc1152c <unlink+0x2ac>
return -1;
}
if ( !loc.ops->node_type_h ) {
ffc113f0: 81 21 00 28 lwz r9,40(r1)
ffc113f4: 80 09 00 10 lwz r0,16(r9)
ffc113f8: 2f 80 00 00 cmpwi cr7,r0,0
ffc113fc: 41 9e 00 80 beq- cr7,ffc1147c <unlink+0x1fc>
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 ) {
ffc11400: 7f c3 f3 78 mr r3,r30
ffc11404: 7c 09 03 a6 mtctr r0
ffc11408: 4e 80 04 21 bctrl
ffc1140c: 81 21 00 28 lwz r9,40(r1)
ffc11410: 2f 83 00 01 cmpwi cr7,r3,1
ffc11414: 40 be 00 5c bne+ cr7,ffc11470 <unlink+0x1f0>
rtems_filesystem_freenode( &loc );
ffc11418: 2f 89 00 00 cmpwi cr7,r9,0
ffc1141c: 41 9e 00 1c beq- cr7,ffc11438 <unlink+0x1b8>
ffc11420: 80 09 00 1c lwz r0,28(r9)
ffc11424: 2f 80 00 00 cmpwi cr7,r0,0
ffc11428: 41 9e 00 10 beq- cr7,ffc11438 <unlink+0x1b8>
ffc1142c: 7f c3 f3 78 mr r3,r30
ffc11430: 7c 09 03 a6 mtctr r0
ffc11434: 4e 80 04 21 bctrl
if ( free_parentloc )
ffc11438: 2f 9f 00 00 cmpwi cr7,r31,0
ffc1143c: 41 9e 00 28 beq- cr7,ffc11464 <unlink+0x1e4>
rtems_filesystem_freenode( &parentloc );
ffc11440: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED
ffc11444: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc11448: 41 9e 00 1c beq- cr7,ffc11464 <unlink+0x1e4> <== NOT EXECUTED
ffc1144c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc11450: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc11454: 41 9e 00 10 beq- cr7,ffc11464 <unlink+0x1e4> <== NOT EXECUTED
ffc11458: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED
ffc1145c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc11460: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EISDIR );
ffc11464: 48 00 07 61 bl ffc11bc4 <__errno>
ffc11468: 38 00 00 15 li r0,21
ffc1146c: 48 00 00 5c b ffc114c8 <unlink+0x248>
}
if ( !loc.ops->unlink_h ) {
ffc11470: 80 09 00 0c lwz r0,12(r9)
ffc11474: 2f 80 00 00 cmpwi cr7,r0,0
ffc11478: 40 be 00 58 bne+ cr7,ffc114d0 <unlink+0x250>
rtems_filesystem_freenode( &loc );
ffc1147c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc11480: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc11484: 41 9e 00 10 beq- cr7,ffc11494 <unlink+0x214> <== NOT EXECUTED
ffc11488: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc1148c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc11490: 4e 80 04 21 bctrl <== NOT EXECUTED
if ( free_parentloc )
ffc11494: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED
ffc11498: 41 9e 00 28 beq- cr7,ffc114c0 <unlink+0x240> <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
ffc1149c: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED
ffc114a0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc114a4: 41 9e 00 1c beq- cr7,ffc114c0 <unlink+0x240> <== NOT EXECUTED
ffc114a8: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc114ac: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc114b0: 41 9e 00 10 beq- cr7,ffc114c0 <unlink+0x240> <== NOT EXECUTED
ffc114b4: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED
ffc114b8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc114bc: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc114c0: 48 00 07 05 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc114c4: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc114c8: 90 03 00 00 stw r0,0(r3)
ffc114cc: 48 00 00 6c b ffc11538 <unlink+0x2b8>
}
result = (*loc.ops->unlink_h)( &parentloc, &loc );
ffc114d0: 38 61 00 08 addi r3,r1,8
ffc114d4: 7c 09 03 a6 mtctr r0
ffc114d8: 7f c4 f3 78 mr r4,r30
ffc114dc: 4e 80 04 21 bctrl
rtems_filesystem_freenode( &loc );
ffc114e0: 81 21 00 28 lwz r9,40(r1)
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->unlink_h)( &parentloc, &loc );
ffc114e4: 7c 7d 1b 78 mr r29,r3
rtems_filesystem_freenode( &loc );
ffc114e8: 2f 89 00 00 cmpwi cr7,r9,0
ffc114ec: 41 9e 00 1c beq- cr7,ffc11508 <unlink+0x288>
ffc114f0: 80 09 00 1c lwz r0,28(r9)
ffc114f4: 2f 80 00 00 cmpwi cr7,r0,0
ffc114f8: 41 9e 00 10 beq- cr7,ffc11508 <unlink+0x288>
ffc114fc: 7f c3 f3 78 mr r3,r30
ffc11500: 7c 09 03 a6 mtctr r0
ffc11504: 4e 80 04 21 bctrl
if ( free_parentloc )
ffc11508: 2f 9f 00 00 cmpwi cr7,r31,0
ffc1150c: 41 9e 00 30 beq- cr7,ffc1153c <unlink+0x2bc>
rtems_filesystem_freenode( &parentloc );
ffc11510: 81 21 00 14 lwz r9,20(r1)
ffc11514: 2f 89 00 00 cmpwi cr7,r9,0
ffc11518: 41 9e 00 24 beq- cr7,ffc1153c <unlink+0x2bc>
ffc1151c: 80 09 00 1c lwz r0,28(r9)
ffc11520: 2f 80 00 00 cmpwi cr7,r0,0
ffc11524: 41 9e 00 18 beq- cr7,ffc1153c <unlink+0x2bc>
ffc11528: 38 61 00 08 addi r3,r1,8
ffc1152c: 7c 09 03 a6 mtctr r0
ffc11530: 4e 80 04 21 bctrl
ffc11534: 48 00 00 08 b ffc1153c <unlink+0x2bc>
ffc11538: 3b a0 ff ff li r29,-1
return result;
}
ffc1153c: 80 01 00 4c lwz r0,76(r1)
ffc11540: 7f a3 eb 78 mr r3,r29
ffc11544: 83 c1 00 40 lwz r30,64(r1)
ffc11548: 7c 08 03 a6 mtlr r0
ffc1154c: 83 a1 00 3c lwz r29,60(r1)
ffc11550: 83 e1 00 44 lwz r31,68(r1)
ffc11554: 38 21 00 48 addi r1,r1,72
ffc11558: 4e 80 00 20 blr
ffc2ce98 <unmount>:
*/
int unmount(
const char *path
)
{
ffc2ce98: 94 21 ff d0 stwu r1,-48(r1)
ffc2ce9c: 7c 08 02 a6 mflr r0
ffc2cea0: 93 c1 00 28 stw r30,40(r1)
ffc2cea4: 7c 7e 1b 78 mr r30,r3
ffc2cea8: 90 01 00 34 stw r0,52(r1)
ffc2ceac: 93 e1 00 2c stw r31,44(r1)
* 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 ) )
ffc2ceb0: 48 02 25 95 bl ffc4f444 <strlen>
ffc2ceb4: 3b e1 00 08 addi r31,r1,8
ffc2ceb8: 7c 64 1b 78 mr r4,r3
ffc2cebc: 38 a0 00 00 li r5,0
ffc2cec0: 7f c3 f3 78 mr r3,r30
ffc2cec4: 7f e6 fb 78 mr r6,r31
ffc2cec8: 38 e0 00 01 li r7,1
ffc2cecc: 4b fd a3 09 bl ffc071d4 <rtems_filesystem_evaluate_path>
ffc2ced0: 2f 83 00 00 cmpwi cr7,r3,0
ffc2ced4: 40 9e 01 84 bne- cr7,ffc2d058 <unmount+0x1c0>
return -1;
mt_entry = loc.mt_entry;
ffc2ced8: 83 c1 00 18 lwz r30,24(r1)
fs_mount_loc = &mt_entry->mt_point_node;
fs_root_loc = &mt_entry->mt_fs_root;
ffc2cedc: 80 01 00 08 lwz r0,8(r1)
ffc2cee0: 81 7e 00 1c lwz r11,28(r30)
ffc2cee4: 81 21 00 14 lwz r9,20(r1)
ffc2cee8: 7f 8b 00 00 cmpw cr7,r11,r0
ffc2ceec: 41 be 00 30 beq+ cr7,ffc2cf1c <unmount+0x84>
/*
* Verify this is the root node for the file system to be unmounted.
*/
if ( !rtems_filesystem_nodes_equal( fs_root_loc, &loc) ){
rtems_filesystem_freenode( &loc );
ffc2cef0: 2f 89 00 00 cmpwi cr7,r9,0
ffc2cef4: 41 9e 00 1c beq- cr7,ffc2cf10 <unmount+0x78>
ffc2cef8: 80 09 00 1c lwz r0,28(r9)
ffc2cefc: 2f 80 00 00 cmpwi cr7,r0,0
ffc2cf00: 41 9e 00 10 beq- cr7,ffc2cf10 <unmount+0x78>
ffc2cf04: 7f e3 fb 78 mr r3,r31
ffc2cf08: 7c 09 03 a6 mtctr r0
ffc2cf0c: 4e 80 04 21 bctrl
rtems_set_errno_and_return_minus_one( EACCES );
ffc2cf10: 48 01 a7 61 bl ffc47670 <__errno>
ffc2cf14: 38 00 00 0d li r0,13
ffc2cf18: 48 00 00 a0 b ffc2cfb8 <unmount+0x120>
/*
* Free the loc node and just use the nodes from the mt_entry .
*/
rtems_filesystem_freenode( &loc );
ffc2cf1c: 2f 89 00 00 cmpwi cr7,r9,0
ffc2cf20: 41 9e 00 1c beq- cr7,ffc2cf3c <unmount+0xa4>
ffc2cf24: 80 09 00 1c lwz r0,28(r9)
ffc2cf28: 2f 80 00 00 cmpwi cr7,r0,0
ffc2cf2c: 41 9e 00 10 beq- cr7,ffc2cf3c <unmount+0xa4>
ffc2cf30: 7f e3 fb 78 mr r3,r31
ffc2cf34: 7c 09 03 a6 mtctr r0
ffc2cf38: 4e 80 04 21 bctrl
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;
ffc2cf3c: 81 3e 00 14 lwz r9,20(r30)
ffc2cf40: 80 09 00 28 lwz r0,40(r9)
ffc2cf44: 2f 80 00 00 cmpwi cr7,r0,0
ffc2cf48: 41 9e 00 14 beq- cr7,ffc2cf5c <unmount+0xc4>
fs_root_loc = &mt_entry->mt_fs_root;
ffc2cf4c: 81 3e 00 28 lwz r9,40(r30)
ffc2cf50: 80 09 00 2c lwz r0,44(r9)
ffc2cf54: 2f 80 00 00 cmpwi cr7,r0,0
ffc2cf58: 40 be 00 10 bne+ cr7,ffc2cf68 <unmount+0xd0>
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 );
ffc2cf5c: 48 01 a7 15 bl ffc47670 <__errno> <== NOT EXECUTED
ffc2cf60: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc2cf64: 48 00 00 54 b ffc2cfb8 <unmount+0x120> <== NOT EXECUTED
* that made the current node thread based instead
* of system based? I thought it was but it doesn't
* look like it in this version.
*/
if ( rtems_filesystem_current.mt_entry == mt_entry )
ffc2cf68: 3d 20 00 00 lis r9,0
ffc2cf6c: 81 29 35 2c lwz r9,13612(r9)
ffc2cf70: 80 09 00 14 lwz r0,20(r9)
ffc2cf74: 7f 80 f0 00 cmpw cr7,r0,r30
ffc2cf78: 41 9e 00 38 beq- cr7,ffc2cfb0 <unmount+0x118>
/*
* Search the mount table for any mount entries referencing this
* mount entry.
*/
for ( the_node = rtems_filesystem_mount_table_control.first;
ffc2cf7c: 3d 20 00 00 lis r9,0
ffc2cf80: 3d 60 00 00 lis r11,0
ffc2cf84: 81 29 63 d0 lwz r9,25552(r9)
ffc2cf88: 38 0b 63 d4 addi r0,r11,25556
ffc2cf8c: 48 00 00 18 b ffc2cfa4 <unmount+0x10c>
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;
fs_root_loc = &mt_entry->mt_fs_root;
ffc2cf90: 81 49 00 18 lwz r10,24(r9)
ffc2cf94: 81 7e 00 2c lwz r11,44(r30)
ffc2cf98: 7f 8a 58 00 cmpw cr7,r10,r11
ffc2cf9c: 41 9e 00 14 beq- cr7,ffc2cfb0 <unmount+0x118>
* mount entry.
*/
for ( the_node = rtems_filesystem_mount_table_control.first;
!rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node );
the_node = the_node->next ) {
ffc2cfa0: 81 29 00 00 lwz r9,0(r9)
ffc2cfa4: 7f 89 00 00 cmpw cr7,r9,r0
ffc2cfa8: 40 9e ff e8 bne+ cr7,ffc2cf90 <unmount+0xf8>
ffc2cfac: 48 00 00 c8 b ffc2d074 <unmount+0x1dc>
* 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 );
ffc2cfb0: 48 01 a6 c1 bl ffc47670 <__errno>
ffc2cfb4: 38 00 00 10 li r0,16
ffc2cfb8: 90 03 00 00 stw r0,0(r3)
ffc2cfbc: 48 00 00 9c b ffc2d058 <unmount+0x1c0>
* 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 )
ffc2cfc0: 81 3e 00 14 lwz r9,20(r30)
ffc2cfc4: 7f c3 f3 78 mr r3,r30
ffc2cfc8: 80 09 00 28 lwz r0,40(r9)
ffc2cfcc: 7c 09 03 a6 mtctr r0
ffc2cfd0: 4e 80 04 21 bctrl
ffc2cfd4: 2f 83 00 00 cmpwi cr7,r3,0
ffc2cfd8: 40 be 00 80 bne+ cr7,ffc2d058 <unmount+0x1c0>
* 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){
ffc2cfdc: 81 3e 00 28 lwz r9,40(r30)
ffc2cfe0: 7f c3 f3 78 mr r3,r30
ffc2cfe4: 80 09 00 2c lwz r0,44(r9)
ffc2cfe8: 7c 09 03 a6 mtctr r0
ffc2cfec: 4e 80 04 21 bctrl
ffc2cff0: 2f 83 00 00 cmpwi cr7,r3,0
ffc2cff4: 41 be 00 28 beq+ cr7,ffc2d01c <unmount+0x184>
if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 )
ffc2cff8: 81 3e 00 14 lwz r9,20(r30) <== NOT EXECUTED
ffc2cffc: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc2d000: 80 09 00 20 lwz r0,32(r9) <== NOT EXECUTED
ffc2d004: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2d008: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc2d00c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc2d010: 41 be 00 48 beq+ cr7,ffc2d058 <unmount+0x1c0> <== NOT EXECUTED
rtems_fatal_error_occurred( 0 );
ffc2d014: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc2d018: 4b fd f5 51 bl ffc0c568 <rtems_fatal_error_occurred> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
ffc2d01c: 7f c3 f3 78 mr r3,r30
ffc2d020: 4b fd fa 15 bl ffc0ca34 <_Chain_Extract>
/*
* 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 );
ffc2d024: 81 3e 00 14 lwz r9,20(r30)
ffc2d028: 2f 89 00 00 cmpwi cr7,r9,0
ffc2d02c: 41 9e 00 1c beq- cr7,ffc2d048 <unmount+0x1b0>
ffc2d030: 80 09 00 1c lwz r0,28(r9)
ffc2d034: 2f 80 00 00 cmpwi cr7,r0,0
ffc2d038: 41 9e 00 10 beq- cr7,ffc2d048 <unmount+0x1b0>
ffc2d03c: 38 7e 00 08 addi r3,r30,8
ffc2d040: 7c 09 03 a6 mtctr r0
ffc2d044: 4e 80 04 21 bctrl
free( mt_entry );
ffc2d048: 7f c3 f3 78 mr r3,r30
ffc2d04c: 4b fd a2 6d bl ffc072b8 <free>
ffc2d050: 38 60 00 00 li r3,0
return 0;
ffc2d054: 48 00 00 08 b ffc2d05c <unmount+0x1c4>
ffc2d058: 38 60 ff ff li r3,-1
}
ffc2d05c: 80 01 00 34 lwz r0,52(r1)
ffc2d060: 83 c1 00 28 lwz r30,40(r1)
ffc2d064: 7c 08 03 a6 mtlr r0
ffc2d068: 83 e1 00 2c lwz r31,44(r1)
ffc2d06c: 38 21 00 30 addi r1,r1,48
ffc2d070: 4e 80 00 20 blr
* 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 )
ffc2d074: 7f c3 f3 78 mr r3,r30
ffc2d078: 4b fd a5 7d bl ffc075f4 <rtems_libio_is_open_files_in_fs>
ffc2d07c: 2f 83 00 01 cmpwi cr7,r3,1
ffc2d080: 40 9e ff 40 bne+ cr7,ffc2cfc0 <unmount+0x128>
ffc2d084: 4b ff ff 2c b ffc2cfb0 <unmount+0x118>
ffc2d088 <utime>:
int utime(
const char *path,
const struct utimbuf *times
)
{
ffc2d088: 94 21 ff c8 stwu r1,-56(r1)
ffc2d08c: 7c 08 02 a6 mflr r0
ffc2d090: 93 a1 00 2c stw r29,44(r1)
ffc2d094: 7c 7d 1b 78 mr r29,r3
ffc2d098: 90 01 00 3c stw r0,60(r1)
ffc2d09c: 93 c1 00 30 stw r30,48(r1)
ffc2d0a0: 7c 9e 23 78 mr r30,r4
ffc2d0a4: 93 e1 00 34 stw r31,52(r1)
rtems_filesystem_location_info_t temp_loc;
int result;
if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &temp_loc, true ) )
ffc2d0a8: 48 02 23 9d bl ffc4f444 <strlen>
ffc2d0ac: 3b e1 00 08 addi r31,r1,8
ffc2d0b0: 7c 64 1b 78 mr r4,r3
ffc2d0b4: 38 a0 00 00 li r5,0
ffc2d0b8: 7f a3 eb 78 mr r3,r29
ffc2d0bc: 7f e6 fb 78 mr r6,r31
ffc2d0c0: 38 e0 00 01 li r7,1
ffc2d0c4: 4b fd a1 11 bl ffc071d4 <rtems_filesystem_evaluate_path>
ffc2d0c8: 3b a0 ff ff li r29,-1
ffc2d0cc: 2f 83 00 00 cmpwi cr7,r3,0
ffc2d0d0: 40 9e 00 7c bne- cr7,ffc2d14c <utime+0xc4>
return -1;
if ( !temp_loc.ops->utime_h ){
ffc2d0d4: 81 21 00 14 lwz r9,20(r1)
ffc2d0d8: 80 09 00 30 lwz r0,48(r9)
ffc2d0dc: 2f 80 00 00 cmpwi cr7,r0,0
ffc2d0e0: 40 be 00 30 bne+ cr7,ffc2d110 <utime+0x88>
rtems_filesystem_freenode( &temp_loc );
ffc2d0e4: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2d0e8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2d0ec: 41 9e 00 10 beq- cr7,ffc2d0fc <utime+0x74> <== NOT EXECUTED
ffc2d0f0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc2d0f4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2d0f8: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc2d0fc: 48 01 a5 75 bl ffc47670 <__errno> <== NOT EXECUTED
ffc2d100: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc2d104: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc2d108: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
ffc2d10c: 48 00 00 40 b ffc2d14c <utime+0xc4> <== NOT EXECUTED
}
result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime );
ffc2d110: 80 be 00 04 lwz r5,4(r30)
ffc2d114: 7f e3 fb 78 mr r3,r31
ffc2d118: 80 9e 00 00 lwz r4,0(r30)
ffc2d11c: 7c 09 03 a6 mtctr r0
ffc2d120: 4e 80 04 21 bctrl
rtems_filesystem_freenode( &temp_loc );
ffc2d124: 81 21 00 14 lwz r9,20(r1)
if ( !temp_loc.ops->utime_h ){
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 );
ffc2d128: 7c 7d 1b 78 mr r29,r3
rtems_filesystem_freenode( &temp_loc );
ffc2d12c: 2f 89 00 00 cmpwi cr7,r9,0
ffc2d130: 41 9e 00 1c beq- cr7,ffc2d14c <utime+0xc4>
ffc2d134: 80 09 00 1c lwz r0,28(r9)
ffc2d138: 2f 80 00 00 cmpwi cr7,r0,0
ffc2d13c: 41 9e 00 10 beq- cr7,ffc2d14c <utime+0xc4>
ffc2d140: 7f e3 fb 78 mr r3,r31
ffc2d144: 7c 09 03 a6 mtctr r0
ffc2d148: 4e 80 04 21 bctrl
return result;
}
ffc2d14c: 80 01 00 3c lwz r0,60(r1)
ffc2d150: 7f a3 eb 78 mr r3,r29
ffc2d154: 83 c1 00 30 lwz r30,48(r1)
ffc2d158: 7c 08 03 a6 mtlr r0
ffc2d15c: 83 a1 00 2c lwz r29,44(r1)
ffc2d160: 83 e1 00 34 lwz r31,52(r1)
ffc2d164: 38 21 00 38 addi r1,r1,56
ffc2d168: 4e 80 00 20 blr
ffc07278 <vprintk>:
*/
void vprintk(
const char *fmt,
va_list ap
)
{
ffc07278: 94 21 ff a8 stwu r1,-88(r1)
ffc0727c: 7c 08 02 a6 mflr r0
ffc07280: 92 a1 00 2c stw r21,44(r1)
for (n=maxwidth ; n > count; n-- )
BSP_output_char(lead);
for (n = 0; n < count; n++) {
BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]);
ffc07284: 3e a0 ff c2 lis r21,-62
ffc07288: 3a b5 de 89 addi r21,r21,-8567
*/
void vprintk(
const char *fmt,
va_list ap
)
{
ffc0728c: 92 c1 00 30 stw r22,48(r1)
unsigned i, len;
char *s, *str;
str = va_arg(ap, char *);
if ( str == NULL ) {
ffc07290: 3e c0 ff c2 lis r22,-62
ffc07294: 3a d6 de 88 addi r22,r22,-8568
*/
void vprintk(
const char *fmt,
va_list ap
)
{
ffc07298: 93 81 00 48 stw r28,72(r1)
unsigned_num = n;
}
toPrint[count++] = (char) unsigned_num;
for (n=maxwidth ; n > count; n-- )
BSP_output_char(lead);
ffc0729c: 3f 80 00 00 lis r28,0
ffc072a0: 3b 9c 26 d4 addi r28,r28,9940
*/
void vprintk(
const char *fmt,
va_list ap
)
{
ffc072a4: 92 e1 00 34 stw r23,52(r1)
toPrint[count++] = (char) (unsigned_num - (n * base));
unsigned_num = n;
}
toPrint[count++] = (char) unsigned_num;
for (n=maxwidth ; n > count; n-- )
ffc072a8: 3a e1 00 08 addi r23,r1,8
*/
void vprintk(
const char *fmt,
va_list ap
)
{
ffc072ac: 93 c1 00 50 stw r30,80(r1)
ffc072b0: 7c 9e 23 78 mr r30,r4
ffc072b4: 93 e1 00 54 stw r31,84(r1)
ffc072b8: 7c 7f 1b 78 mr r31,r3
ffc072bc: 90 01 00 5c stw r0,92(r1)
ffc072c0: 93 01 00 38 stw r24,56(r1)
ffc072c4: 93 21 00 3c stw r25,60(r1)
ffc072c8: 93 41 00 40 stw r26,64(r1)
ffc072cc: 93 61 00 44 stw r27,68(r1)
ffc072d0: 93 a1 00 4c stw r29,76(r1)
for (; *fmt != '\0'; fmt++) {
ffc072d4: 48 00 03 34 b ffc07608 <vprintk+0x390>
bool minus = false;
bool sign = false;
char lead = ' ';
char c;
if (*fmt != '%') {
ffc072d8: 2f 83 00 25 cmpwi cr7,r3,37
ffc072dc: 40 9e 01 f4 bne- cr7,ffc074d0 <vprintk+0x258>
BSP_output_char(*fmt);
continue;
}
fmt++;
if (*fmt == '0' ) {
ffc072e0: 8c 1f 00 01 lbzu r0,1(r31)
ffc072e4: 3b 00 00 20 li r24,32
ffc072e8: 2f 80 00 30 cmpwi cr7,r0,48
ffc072ec: 40 be 00 0c bne+ cr7,ffc072f8 <vprintk+0x80>
lead = '0';
fmt++;
ffc072f0: 3b ff 00 01 addi r31,r31,1
ffc072f4: 3b 00 00 30 li r24,48
}
if (*fmt == '-' ) {
ffc072f8: 88 1f 00 00 lbz r0,0(r31)
ffc072fc: 3b 20 00 00 li r25,0
ffc07300: 2f 80 00 2d cmpwi cr7,r0,45
ffc07304: 40 be 00 0c bne+ cr7,ffc07310 <vprintk+0x98>
minus = true;
fmt++;
ffc07308: 3b ff 00 01 addi r31,r31,1
ffc0730c: 3b 20 00 01 li r25,1
ffc07310: 3b a0 00 00 li r29,0
ffc07314: 48 00 00 0c b ffc07320 <vprintk+0xa8>
}
while (*fmt >= '0' && *fmt <= '9' ) {
width *= 10;
width += ((unsigned) *fmt - '0');
ffc07318: 7f a0 5a 14 add r29,r0,r11
fmt++;
ffc0731c: 3b ff 00 01 addi r31,r31,1
}
if (*fmt == '-' ) {
minus = true;
fmt++;
}
while (*fmt >= '0' && *fmt <= '9' ) {
ffc07320: 88 7f 00 00 lbz r3,0(r31)
width *= 10;
ffc07324: 1d 7d 00 0a mulli r11,r29,10
}
if (*fmt == '-' ) {
minus = true;
fmt++;
}
while (*fmt >= '0' && *fmt <= '9' ) {
ffc07328: 38 03 ff d0 addi r0,r3,-48
ffc0732c: 54 09 06 3e clrlwi r9,r0,24
ffc07330: 2b 89 00 09 cmplwi cr7,r9,9
ffc07334: 40 9d ff e4 ble+ cr7,ffc07318 <vprintk+0xa0>
width *= 10;
width += ((unsigned) *fmt - '0');
fmt++;
}
if ((c = *fmt) == 'l') {
ffc07338: 2f 83 00 6c cmpwi cr7,r3,108
ffc0733c: 40 be 00 08 bne+ cr7,ffc07344 <vprintk+0xcc>
lflag = true;
c = *++fmt;
ffc07340: 8c 7f 00 01 lbzu r3,1(r31)
}
if ( c == 'c' ) {
ffc07344: 2f 83 00 63 cmpwi cr7,r3,99
ffc07348: 40 be 00 3c bne+ cr7,ffc07384 <vprintk+0x10c>
/* need a cast here since va_arg() only takes fully promoted types */
char chr = (char) va_arg(ap, int);
ffc0734c: 89 7e 00 00 lbz r11,0(r30)
ffc07350: 2b 8b 00 07 cmplwi cr7,r11,7
ffc07354: 41 9d 00 1c bgt- cr7,ffc07370 <vprintk+0xf8>
ffc07358: 81 3e 00 08 lwz r9,8(r30)
ffc0735c: 38 0b 00 01 addi r0,r11,1
ffc07360: 55 6b 10 3a rlwinm r11,r11,2,0,29
ffc07364: 98 1e 00 00 stb r0,0(r30)
ffc07368: 7d 29 5a 14 add r9,r9,r11
ffc0736c: 48 00 00 10 b ffc0737c <vprintk+0x104>
ffc07370: 81 3e 00 04 lwz r9,4(r30) <== NOT EXECUTED
ffc07374: 38 09 00 04 addi r0,r9,4 <== NOT EXECUTED
ffc07378: 90 1e 00 04 stw r0,4(r30) <== NOT EXECUTED
BSP_output_char(chr);
ffc0737c: 88 69 00 03 lbz r3,3(r9)
ffc07380: 48 00 01 50 b ffc074d0 <vprintk+0x258>
continue;
}
if ( c == 's' ) {
ffc07384: 2f 83 00 73 cmpwi cr7,r3,115
ffc07388: 40 be 00 e8 bne+ cr7,ffc07470 <vprintk+0x1f8>
unsigned i, len;
char *s, *str;
str = va_arg(ap, char *);
ffc0738c: 89 7e 00 00 lbz r11,0(r30)
ffc07390: 2b 8b 00 07 cmplwi cr7,r11,7
ffc07394: 41 9d 00 1c bgt- cr7,ffc073b0 <vprintk+0x138>
ffc07398: 81 3e 00 08 lwz r9,8(r30)
ffc0739c: 38 0b 00 01 addi r0,r11,1
ffc073a0: 55 6b 10 3a rlwinm r11,r11,2,0,29
ffc073a4: 98 1e 00 00 stb r0,0(r30)
ffc073a8: 7d 29 5a 14 add r9,r9,r11
ffc073ac: 48 00 00 10 b ffc073bc <vprintk+0x144>
ffc073b0: 81 3e 00 04 lwz r9,4(r30) <== NOT EXECUTED
ffc073b4: 38 09 00 04 addi r0,r9,4 <== NOT EXECUTED
ffc073b8: 90 1e 00 04 stw r0,4(r30) <== NOT EXECUTED
ffc073bc: 83 49 00 00 lwz r26,0(r9)
if ( str == NULL ) {
ffc073c0: 2f 9a 00 00 cmpwi cr7,r26,0
ffc073c4: 40 be 00 08 bne+ cr7,ffc073cc <vprintk+0x154>
ffc073c8: 7e da b3 78 mr r26,r22
ffc073cc: 3b 60 00 00 li r27,0
str = "";
}
/* calculate length of string */
for ( len=0, s=str ; *s ; len++, s++ )
ffc073d0: 48 00 00 08 b ffc073d8 <vprintk+0x160>
ffc073d4: 3b 7b 00 01 addi r27,r27,1
ffc073d8: 7c 1a d8 ae lbzx r0,r26,r27
ffc073dc: 2f 80 00 00 cmpwi cr7,r0,0
ffc073e0: 40 9e ff f4 bne+ cr7,ffc073d4 <vprintk+0x15c>
;
/* leading spaces */
if ( !minus )
ffc073e4: 2f 99 00 00 cmpwi cr7,r25,0
ffc073e8: 7f 78 db 78 mr r24,r27
ffc073ec: 41 9e 00 14 beq- cr7,ffc07400 <vprintk+0x188>
ffc073f0: 48 00 00 20 b ffc07410 <vprintk+0x198>
for ( i=len ; i<width ; i++ )
BSP_output_char(' ');
ffc073f4: 80 1c 00 00 lwz r0,0(r28)
ffc073f8: 7c 09 03 a6 mtctr r0
ffc073fc: 4e 80 04 21 bctrl
for ( len=0, s=str ; *s ; len++, s++ )
;
/* leading spaces */
if ( !minus )
for ( i=len ; i<width ; i++ )
ffc07400: 7f 98 e8 40 cmplw cr7,r24,r29
BSP_output_char(' ');
ffc07404: 38 60 00 20 li r3,32
for ( len=0, s=str ; *s ; len++, s++ )
;
/* leading spaces */
if ( !minus )
for ( i=len ; i<width ; i++ )
ffc07408: 3b 18 00 01 addi r24,r24,1
ffc0740c: 41 9c ff e8 blt+ cr7,ffc073f4 <vprintk+0x17c>
BSP_output_char(' ');
/* no width option */
if (width == 0) {
ffc07410: 2f 9d 00 00 cmpwi cr7,r29,0
ffc07414: 40 9e 00 08 bne- cr7,ffc0741c <vprintk+0x1a4>
ffc07418: 7f 7d db 78 mr r29,r27
width = len;
}
/* output the string */
for ( i=0 ; i<width && *str ; str++ )
ffc0741c: 2f 9d 00 00 cmpwi cr7,r29,0
ffc07420: 41 9e 00 24 beq- cr7,ffc07444 <vprintk+0x1cc>
ffc07424: 48 00 00 10 b ffc07434 <vprintk+0x1bc>
BSP_output_char(*str);
ffc07428: 80 1c 00 00 lwz r0,0(r28)
ffc0742c: 7c 09 03 a6 mtctr r0
ffc07430: 4e 80 04 21 bctrl
if (width == 0) {
width = len;
}
/* output the string */
for ( i=0 ; i<width && *str ; str++ )
ffc07434: 88 7a 00 00 lbz r3,0(r26)
ffc07438: 3b 5a 00 01 addi r26,r26,1
ffc0743c: 2f 83 00 00 cmpwi cr7,r3,0
ffc07440: 40 9e ff e8 bne+ cr7,ffc07428 <vprintk+0x1b0>
BSP_output_char(*str);
/* trailing spaces */
if ( minus )
ffc07444: 2f 99 00 00 cmpwi cr7,r25,0
ffc07448: 40 9e 00 14 bne- cr7,ffc0745c <vprintk+0x1e4>
ffc0744c: 48 00 01 b8 b ffc07604 <vprintk+0x38c>
for ( i=len ; i<width ; i++ )
BSP_output_char(' ');
ffc07450: 80 1c 00 00 lwz r0,0(r28)
ffc07454: 7c 09 03 a6 mtctr r0
ffc07458: 4e 80 04 21 bctrl
for ( i=0 ; i<width && *str ; str++ )
BSP_output_char(*str);
/* trailing spaces */
if ( minus )
for ( i=len ; i<width ; i++ )
ffc0745c: 7f 9b e8 40 cmplw cr7,r27,r29
BSP_output_char(' ');
ffc07460: 38 60 00 20 li r3,32
for ( i=0 ; i<width && *str ; str++ )
BSP_output_char(*str);
/* trailing spaces */
if ( minus )
for ( i=len ; i<width ; i++ )
ffc07464: 3b 7b 00 01 addi r27,r27,1
ffc07468: 41 9c ff e8 blt+ cr7,ffc07450 <vprintk+0x1d8>
ffc0746c: 48 00 01 98 b ffc07604 <vprintk+0x38c>
continue;
}
/* must be a numeric format or something unsupported */
if ( c == 'o' || c == 'O' ) {
ffc07470: 2f 83 00 6f cmpwi cr7,r3,111
ffc07474: 41 9e 00 6c beq- cr7,ffc074e0 <vprintk+0x268>
ffc07478: 2f 83 00 4f cmpwi cr7,r3,79
ffc0747c: 41 9e 00 64 beq- cr7,ffc074e0 <vprintk+0x268>
base = 8; sign = false;
} else if ( c == 'i' || c == 'I' ||
ffc07480: 2f 83 00 69 cmpwi cr7,r3,105
ffc07484: 41 9e 00 68 beq- cr7,ffc074ec <vprintk+0x274>
ffc07488: 2f 83 00 49 cmpwi cr7,r3,73
ffc0748c: 41 9e 00 60 beq- cr7,ffc074ec <vprintk+0x274>
ffc07490: 2f 83 00 64 cmpwi cr7,r3,100
ffc07494: 41 9e 00 58 beq- cr7,ffc074ec <vprintk+0x274>
ffc07498: 2f 83 00 44 cmpwi cr7,r3,68
ffc0749c: 41 9e 00 50 beq- cr7,ffc074ec <vprintk+0x274>
c == 'd' || c == 'D' ) {
base = 10; sign = true;
} else if ( c == 'u' || c == 'U' ) {
ffc074a0: 2f 83 00 75 cmpwi cr7,r3,117
ffc074a4: 41 9e 00 50 beq- cr7,ffc074f4 <vprintk+0x27c>
ffc074a8: 2f 83 00 55 cmpwi cr7,r3,85
ffc074ac: 41 9e 00 48 beq- cr7,ffc074f4 <vprintk+0x27c>
base = 10; sign = false;
} else if ( c == 'x' || c == 'X' ) {
ffc074b0: 2f 83 00 78 cmpwi cr7,r3,120
ffc074b4: 41 9e 00 4c beq- cr7,ffc07500 <vprintk+0x288>
ffc074b8: 2f 83 00 58 cmpwi cr7,r3,88
ffc074bc: 41 9e 00 44 beq- cr7,ffc07500 <vprintk+0x288>
base = 16; sign = false;
} else if ( c == 'p' ) {
ffc074c0: 2f 83 00 70 cmpwi cr7,r3,112
ffc074c4: 38 00 00 00 li r0,0
ffc074c8: 3b 60 00 10 li r27,16
ffc074cc: 41 9e 00 3c beq- cr7,ffc07508 <vprintk+0x290>
base = 16; sign = false; lflag = true;
} else {
BSP_output_char(c);
ffc074d0: 80 1c 00 00 lwz r0,0(r28)
ffc074d4: 7c 09 03 a6 mtctr r0
ffc074d8: 4e 80 04 21 bctrl
continue;
ffc074dc: 48 00 01 28 b ffc07604 <vprintk+0x38c>
ffc074e0: 38 00 00 00 li r0,0
ffc074e4: 3b 60 00 08 li r27,8
ffc074e8: 48 00 00 20 b ffc07508 <vprintk+0x290>
ffc074ec: 38 00 00 01 li r0,1
ffc074f0: 48 00 00 08 b ffc074f8 <vprintk+0x280>
ffc074f4: 38 00 00 00 li r0,0
ffc074f8: 3b 60 00 0a li r27,10
ffc074fc: 48 00 00 0c b ffc07508 <vprintk+0x290>
ffc07500: 38 00 00 00 li r0,0
ffc07504: 3b 60 00 10 li r27,16
}
printNum(
lflag ? va_arg(ap, long) : (long) va_arg(ap, int),
ffc07508: 89 7e 00 00 lbz r11,0(r30)
ffc0750c: 2b 8b 00 07 cmplwi cr7,r11,7
ffc07510: 41 9d 00 1c bgt- cr7,ffc0752c <vprintk+0x2b4>
ffc07514: 81 3e 00 08 lwz r9,8(r30)
ffc07518: 39 4b 00 01 addi r10,r11,1
ffc0751c: 55 6b 10 3a rlwinm r11,r11,2,0,29
ffc07520: 99 5e 00 00 stb r10,0(r30)
ffc07524: 7d 29 5a 14 add r9,r9,r11
} else {
BSP_output_char(c);
continue;
}
printNum(
ffc07528: 48 00 00 10 b ffc07538 <vprintk+0x2c0>
lflag ? va_arg(ap, long) : (long) va_arg(ap, int),
ffc0752c: 81 3e 00 04 lwz r9,4(r30)
ffc07530: 39 69 00 04 addi r11,r9,4
ffc07534: 91 7e 00 04 stw r11,4(r30)
unsigned long unsigned_num;
unsigned long n;
unsigned count;
char toPrint[20];
if ( sign && (num < 0) ) {
ffc07538: 2f 80 00 00 cmpwi cr7,r0,0
} else {
BSP_output_char(c);
continue;
}
printNum(
ffc0753c: 83 49 00 00 lwz r26,0(r9)
unsigned long unsigned_num;
unsigned long n;
unsigned count;
char toPrint[20];
if ( sign && (num < 0) ) {
ffc07540: 41 9e 00 3c beq- cr7,ffc0757c <vprintk+0x304>
ffc07544: 2f 9a 00 00 cmpwi cr7,r26,0
ffc07548: 40 bc 00 34 bge+ cr7,ffc0757c <vprintk+0x304>
BSP_output_char('-');
ffc0754c: 80 1c 00 00 lwz r0,0(r28)
ffc07550: 38 60 00 2d li r3,45
ffc07554: 7c 09 03 a6 mtctr r0
ffc07558: 4e 80 04 21 bctrl
unsigned_num = (unsigned long) -num;
if (maxwidth) maxwidth--;
ffc0755c: 7f a9 fe 70 srawi r9,r29,31
ffc07560: 7d 20 ea 78 xor r0,r9,r29
ffc07564: 7c 09 00 50 subf r0,r9,r0
ffc07568: 7c 00 00 d0 neg r0,r0
ffc0756c: 54 00 0f fe rlwinm r0,r0,1,31,31
ffc07570: 7f a0 e8 50 subf r29,r0,r29
unsigned count;
char toPrint[20];
if ( sign && (num < 0) ) {
BSP_output_char('-');
unsigned_num = (unsigned long) -num;
ffc07574: 7c 1a 00 d0 neg r0,r26
ffc07578: 48 00 00 08 b ffc07580 <vprintk+0x308>
if (maxwidth) maxwidth--;
} else {
unsigned_num = (unsigned long) num;
ffc0757c: 7f 40 d3 78 mr r0,r26
ffc07580: 3b 40 00 00 li r26,0
ffc07584: 48 00 00 10 b ffc07594 <vprintk+0x31c>
}
count = 0;
while ((n = unsigned_num / base) > 0) {
toPrint[count++] = (char) (unsigned_num - (n * base));
ffc07588: 99 4b 00 08 stb r10,8(r11)
ffc0758c: 7f 3a cb 78 mr r26,r25
ffc07590: 7d 20 4b 78 mr r0,r9
} else {
unsigned_num = (unsigned long) num;
}
count = 0;
while ((n = unsigned_num / base) > 0) {
ffc07594: 7d 20 db 96 divwu r9,r0,r27
ffc07598: 2f 89 00 00 cmpwi cr7,r9,0
toPrint[count++] = (char) (unsigned_num - (n * base));
ffc0759c: 7d 49 d9 d6 mullw r10,r9,r27
ffc075a0: 7d 61 d2 14 add r11,r1,r26
ffc075a4: 7d 4a 00 50 subf r10,r10,r0
ffc075a8: 3b 3a 00 01 addi r25,r26,1
} else {
unsigned_num = (unsigned long) num;
}
count = 0;
while ((n = unsigned_num / base) > 0) {
ffc075ac: 40 9e ff dc bne+ cr7,ffc07588 <vprintk+0x310>
toPrint[count++] = (char) (unsigned_num - (n * base));
unsigned_num = n;
}
toPrint[count++] = (char) unsigned_num;
ffc075b0: 98 0b 00 08 stb r0,8(r11)
ffc075b4: 48 00 00 10 b ffc075c4 <vprintk+0x34c>
for (n=maxwidth ; n > count; n-- )
BSP_output_char(lead);
ffc075b8: 80 1c 00 00 lwz r0,0(r28)
ffc075bc: 7c 09 03 a6 mtctr r0
ffc075c0: 4e 80 04 21 bctrl
toPrint[count++] = (char) (unsigned_num - (n * base));
unsigned_num = n;
}
toPrint[count++] = (char) unsigned_num;
for (n=maxwidth ; n > count; n-- )
ffc075c4: 7f 9d c8 40 cmplw cr7,r29,r25
BSP_output_char(lead);
ffc075c8: 7f 03 c3 78 mr r3,r24
toPrint[count++] = (char) (unsigned_num - (n * base));
unsigned_num = n;
}
toPrint[count++] = (char) unsigned_num;
for (n=maxwidth ; n > count; n-- )
ffc075cc: 3b bd ff ff addi r29,r29,-1
ffc075d0: 41 9d ff e8 bgt+ cr7,ffc075b8 <vprintk+0x340>
ffc075d4: 7f 57 d2 14 add r26,r23,r26
ffc075d8: 3b a0 00 00 li r29,0
ffc075dc: 48 00 00 1c b ffc075f8 <vprintk+0x380>
BSP_output_char(lead);
for (n = 0; n < count; n++) {
BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]);
ffc075e0: 89 3a 00 00 lbz r9,0(r26)
toPrint[count++] = (char) unsigned_num;
for (n=maxwidth ; n > count; n-- )
BSP_output_char(lead);
for (n = 0; n < count; n++) {
ffc075e4: 3b 5a ff ff addi r26,r26,-1
BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]);
ffc075e8: 80 1c 00 00 lwz r0,0(r28)
ffc075ec: 7c 75 48 ae lbzx r3,r21,r9
ffc075f0: 7c 09 03 a6 mtctr r0
ffc075f4: 4e 80 04 21 bctrl
toPrint[count++] = (char) unsigned_num;
for (n=maxwidth ; n > count; n-- )
BSP_output_char(lead);
for (n = 0; n < count; n++) {
ffc075f8: 7f 9d c8 40 cmplw cr7,r29,r25
ffc075fc: 3b bd 00 01 addi r29,r29,1
ffc07600: 41 9c ff e0 blt+ cr7,ffc075e0 <vprintk+0x368>
void vprintk(
const char *fmt,
va_list ap
)
{
for (; *fmt != '\0'; fmt++) {
ffc07604: 3b ff 00 01 addi r31,r31,1
ffc07608: 88 7f 00 00 lbz r3,0(r31)
ffc0760c: 2f 83 00 00 cmpwi cr7,r3,0
ffc07610: 40 9e fc c8 bne+ cr7,ffc072d8 <vprintk+0x60>
sign,
width,
lead
);
}
}
ffc07614: 80 01 00 5c lwz r0,92(r1)
ffc07618: 82 a1 00 2c lwz r21,44(r1)
ffc0761c: 7c 08 03 a6 mtlr r0
ffc07620: 82 c1 00 30 lwz r22,48(r1)
ffc07624: 82 e1 00 34 lwz r23,52(r1)
ffc07628: 83 01 00 38 lwz r24,56(r1)
ffc0762c: 83 21 00 3c lwz r25,60(r1)
ffc07630: 83 41 00 40 lwz r26,64(r1)
ffc07634: 83 61 00 44 lwz r27,68(r1)
ffc07638: 83 81 00 48 lwz r28,72(r1)
ffc0763c: 83 a1 00 4c lwz r29,76(r1)
ffc07640: 83 c1 00 50 lwz r30,80(r1)
ffc07644: 83 e1 00 54 lwz r31,84(r1)
ffc07648: 38 21 00 58 addi r1,r1,88
ffc0764c: 4e 80 00 20 blr
ffc1cc30 <write>:
ssize_t write(
int fd,
const void *buffer,
size_t count
)
{
ffc1cc30: 94 21 ff f0 stwu r1,-16(r1)
ffc1cc34: 7c 08 02 a6 mflr r0
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
ffc1cc38: 3d 20 00 00 lis r9,0
ssize_t write(
int fd,
const void *buffer,
size_t count
)
{
ffc1cc3c: 90 01 00 14 stw r0,20(r1)
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
ffc1cc40: 80 09 26 8c lwz r0,9868(r9)
ssize_t write(
int fd,
const void *buffer,
size_t count
)
{
ffc1cc44: 93 e1 00 0c stw r31,12(r1)
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
ffc1cc48: 7f 83 00 40 cmplw cr7,r3,r0
ffc1cc4c: 40 9c 00 20 bge- cr7,ffc1cc6c <write+0x3c>
iop = rtems_libio_iop( fd );
ffc1cc50: 3d 40 00 00 lis r10,0
ffc1cc54: 83 ea 27 4c lwz r31,10060(r10)
ffc1cc58: 1c 63 00 48 mulli r3,r3,72
ffc1cc5c: 7f ff 1a 14 add r31,r31,r3
rtems_libio_check_is_open( iop );
ffc1cc60: 80 1f 00 18 lwz r0,24(r31)
ffc1cc64: 70 0a 01 00 andi. r10,r0,256
ffc1cc68: 40 a2 00 10 bne+ ffc1cc78 <write+0x48>
ffc1cc6c: 4b ff 4f 59 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc1cc70: 38 00 00 09 li r0,9 <== NOT EXECUTED
ffc1cc74: 48 00 00 44 b ffc1ccb8 <write+0x88> <== NOT EXECUTED
rtems_libio_check_buffer( buffer );
ffc1cc78: 2f 84 00 00 cmpwi cr7,r4,0
ffc1cc7c: 41 9e 00 18 beq- cr7,ffc1cc94 <write+0x64>
rtems_libio_check_count( count );
ffc1cc80: 2f 85 00 00 cmpwi cr7,r5,0
ffc1cc84: 38 60 00 00 li r3,0
ffc1cc88: 41 9e 00 70 beq- cr7,ffc1ccf8 <write+0xc8>
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
ffc1cc8c: 70 09 00 04 andi. r9,r0,4
ffc1cc90: 40 a2 00 10 bne+ ffc1cca0 <write+0x70>
ffc1cc94: 4b ff 4f 31 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc1cc98: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc1cc9c: 48 00 00 1c b ffc1ccb8 <write+0x88> <== NOT EXECUTED
/*
* Now process the write() request.
*/
if ( !iop->handlers->write_h )
ffc1cca0: 81 3f 00 40 lwz r9,64(r31)
ffc1cca4: 80 09 00 0c lwz r0,12(r9)
ffc1cca8: 2f 80 00 00 cmpwi cr7,r0,0
ffc1ccac: 40 be 00 18 bne+ cr7,ffc1ccc4 <write+0x94>
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc1ccb0: 4b ff 4f 15 bl ffc11bc4 <__errno> <== NOT EXECUTED
ffc1ccb4: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc1ccb8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc1ccbc: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc1ccc0: 48 00 00 38 b ffc1ccf8 <write+0xc8> <== NOT EXECUTED
rc = (*iop->handlers->write_h)( iop, buffer, count );
ffc1ccc4: 7f e3 fb 78 mr r3,r31
ffc1ccc8: 7c 09 03 a6 mtctr r0
ffc1cccc: 4e 80 04 21 bctrl
if ( rc > 0 )
ffc1ccd0: 2c 03 00 00 cmpwi r3,0
ffc1ccd4: 40 81 00 24 ble- ffc1ccf8 <write+0xc8>
iop->offset += rc;
ffc1ccd8: 80 ff 00 10 lwz r7,16(r31)
ffc1ccdc: 7c 6a 1b 78 mr r10,r3
ffc1cce0: 81 1f 00 14 lwz r8,20(r31)
ffc1cce4: 7c 69 fe 70 srawi r9,r3,31
ffc1cce8: 7d 88 50 14 addc r12,r8,r10
ffc1ccec: 7d 67 49 14 adde r11,r7,r9
ffc1ccf0: 91 7f 00 10 stw r11,16(r31)
ffc1ccf4: 91 9f 00 14 stw r12,20(r31)
return rc;
}
ffc1ccf8: 80 01 00 14 lwz r0,20(r1)
ffc1ccfc: 83 e1 00 0c lwz r31,12(r1)
ffc1cd00: 38 21 00 10 addi r1,r1,16
ffc1cd04: 7c 08 03 a6 mtlr r0
ffc1cd08: 4e 80 00 20 blr
ffc08ff0 <writev>:
ssize_t writev(
int fd,
const struct iovec *iov,
int iovcnt
)
{
ffc08ff0: 94 21 ff d8 stwu r1,-40(r1)
ffc08ff4: 7c 08 02 a6 mflr r0
int bytes;
rtems_libio_t *iop;
ssize_t old;
bool all_zeros;
rtems_libio_check_fd( fd );
ffc08ff8: 3d 20 00 00 lis r9,0
ssize_t writev(
int fd,
const struct iovec *iov,
int iovcnt
)
{
ffc08ffc: 90 01 00 2c stw r0,44(r1)
int bytes;
rtems_libio_t *iop;
ssize_t old;
bool all_zeros;
rtems_libio_check_fd( fd );
ffc09000: 80 09 26 8c lwz r0,9868(r9)
ssize_t writev(
int fd,
const struct iovec *iov,
int iovcnt
)
{
ffc09004: 93 81 00 18 stw r28,24(r1)
ffc09008: 7c bc 2b 78 mr r28,r5
int bytes;
rtems_libio_t *iop;
ssize_t old;
bool all_zeros;
rtems_libio_check_fd( fd );
ffc0900c: 7f 83 00 40 cmplw cr7,r3,r0
ssize_t writev(
int fd,
const struct iovec *iov,
int iovcnt
)
{
ffc09010: 93 21 00 0c stw r25,12(r1)
ffc09014: 93 41 00 10 stw r26,16(r1)
ffc09018: 93 61 00 14 stw r27,20(r1)
ffc0901c: 93 a1 00 1c stw r29,28(r1)
ffc09020: 93 c1 00 20 stw r30,32(r1)
ffc09024: 93 e1 00 24 stw r31,36(r1)
int bytes;
rtems_libio_t *iop;
ssize_t old;
bool all_zeros;
rtems_libio_check_fd( fd );
ffc09028: 40 9c 00 20 bge- cr7,ffc09048 <writev+0x58>
iop = rtems_libio_iop( fd );
ffc0902c: 3d 20 00 00 lis r9,0
ffc09030: 83 a9 27 50 lwz r29,10064(r9)
ffc09034: 1c 63 00 48 mulli r3,r3,72
ffc09038: 7f bd 1a 14 add r29,r29,r3
rtems_libio_check_is_open( iop );
ffc0903c: 80 1d 00 18 lwz r0,24(r29)
ffc09040: 70 09 01 00 andi. r9,r0,256
ffc09044: 40 a2 00 10 bne+ ffc09054 <writev+0x64>
ffc09048: 48 00 b7 ed bl ffc14834 <__errno>
ffc0904c: 38 00 00 09 li r0,9
ffc09050: 48 00 00 14 b ffc09064 <writev+0x74>
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
ffc09054: 70 09 00 04 andi. r9,r0,4
ffc09058: 40 a2 00 14 bne+ ffc0906c <writev+0x7c>
ffc0905c: 48 00 b7 d9 bl ffc14834 <__errno>
ffc09060: 38 00 00 16 li r0,22
ffc09064: 90 03 00 00 stw r0,0(r3)
ffc09068: 48 00 00 cc b ffc09134 <writev+0x144>
/*
* Argument validation on IO vector
*/
if ( !iov )
ffc0906c: 2f 84 00 00 cmpwi cr7,r4,0
ffc09070: 41 be ff ec beq- cr7,ffc0905c <writev+0x6c>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt <= 0 )
ffc09074: 2f 85 00 00 cmpwi cr7,r5,0
ffc09078: 40 bd ff e4 ble- cr7,ffc0905c <writev+0x6c>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt > IOV_MAX )
ffc0907c: 2f 85 04 00 cmpwi cr7,r5,1024
ffc09080: 41 bd ff dc bgt- cr7,ffc0905c <writev+0x6c>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !iop->handlers->write_h )
ffc09084: 81 3d 00 40 lwz r9,64(r29)
ffc09088: 80 09 00 0c lwz r0,12(r9)
ffc0908c: 2f 80 00 00 cmpwi cr7,r0,0
ffc09090: 40 be 00 10 bne+ cr7,ffc090a0 <writev+0xb0>
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc09094: 48 00 b7 a1 bl ffc14834 <__errno> <== NOT EXECUTED
ffc09098: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc0909c: 4b ff ff c8 b ffc09064 <writev+0x74> <== NOT EXECUTED
ffc090a0: 7c a9 03 a6 mtctr r5
ffc090a4: 7c 9e 23 78 mr r30,r4
ffc090a8: 7c 89 23 78 mr r9,r4
ffc090ac: 38 00 00 01 li r0,1
ffc090b0: 39 60 00 00 li r11,0
* entering the write loop.
*/
all_zeros = true;
for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) {
if ( !iov[v].iov_base )
ffc090b4: 81 49 00 00 lwz r10,0(r9)
ffc090b8: 2f 8a 00 00 cmpwi cr7,r10,0
ffc090bc: 41 be ff a0 beq- cr7,ffc0905c <writev+0x6c>
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 )
ffc090c0: 81 09 00 04 lwz r8,4(r9)
* 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++ ) {
ffc090c4: 39 29 00 08 addi r9,r9,8
if ( iov[v].iov_len )
all_zeros = false;
/* check for wrap */
old = total;
total += iov[v].iov_len;
ffc090c8: 7d 4b 42 14 add r10,r11,r8
if ( total < old || total > SSIZE_MAX )
ffc090cc: 7f 0a 58 00 cmpw cr6,r10,r11
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 )
ffc090d0: 31 08 ff ff addic r8,r8,-1
ffc090d4: 7d 08 41 10 subfe r8,r8,r8
all_zeros = false;
/* check for wrap */
old = total;
total += iov[v].iov_len;
if ( total < old || total > SSIZE_MAX )
ffc090d8: 2f 8a 7f ff cmpwi cr7,r10,32767
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 )
ffc090dc: 7c 00 40 38 and r0,r0,r8
all_zeros = false;
/* check for wrap */
old = total;
total += iov[v].iov_len;
if ( total < old || total > SSIZE_MAX )
ffc090e0: 41 b8 ff 7c blt- cr6,ffc0905c <writev+0x6c>
ffc090e4: 41 bd ff 78 bgt- cr7,ffc0905c <writev+0x6c>
* 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++ ) {
ffc090e8: 42 40 00 0c bdz- ffc090f4 <writev+0x104>
ffc090ec: 7d 4b 53 78 mr r11,r10
ffc090f0: 4b ff ff c4 b ffc090b4 <writev+0xc4>
}
/*
* A writev with all zeros is supposed to have no effect per OpenGroup.
*/
if ( all_zeros == true ) {
ffc090f4: 2f 80 00 00 cmpwi cr7,r0,0
ffc090f8: 3b 60 00 00 li r27,0
ffc090fc: 3b e0 00 00 li r31,0
ffc09100: 40 9e 00 7c bne- cr7,ffc0917c <writev+0x18c>
/*
* Now process the writev().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
/* all zero lengths has no effect */
if ( iov[v].iov_len == 0 )
ffc09104: 80 be 00 04 lwz r5,4(r30)
}
/*
* Now process the writev().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
ffc09108: 3b 7b 00 01 addi r27,r27,1
/* all zero lengths has no effect */
if ( iov[v].iov_len == 0 )
ffc0910c: 2f 85 00 00 cmpwi cr7,r5,0
ffc09110: 41 be 00 60 beq+ cr7,ffc09170 <writev+0x180>
continue;
bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len );
ffc09114: 81 3d 00 40 lwz r9,64(r29)
ffc09118: 7f a3 eb 78 mr r3,r29
ffc0911c: 80 9e 00 00 lwz r4,0(r30)
ffc09120: 80 09 00 0c lwz r0,12(r9)
ffc09124: 7c 09 03 a6 mtctr r0
ffc09128: 4e 80 04 21 bctrl
if ( bytes < 0 )
ffc0912c: 2c 03 00 00 cmpwi r3,0
ffc09130: 40 a0 00 0c bge+ ffc0913c <writev+0x14c>
ffc09134: 3b e0 ff ff li r31,-1
ffc09138: 48 00 00 44 b ffc0917c <writev+0x18c>
return -1;
if ( bytes > 0 ) {
ffc0913c: 41 82 00 28 beq- ffc09164 <writev+0x174>
iop->offset += bytes;
ffc09140: 81 7d 00 10 lwz r11,16(r29)
ffc09144: 7c 7a 1b 78 mr r26,r3
ffc09148: 81 9d 00 14 lwz r12,20(r29)
ffc0914c: 7c 79 fe 70 srawi r25,r3,31
total += bytes;
ffc09150: 7f ff 1a 14 add r31,r31,r3
if ( bytes < 0 )
return -1;
if ( bytes > 0 ) {
iop->offset += bytes;
ffc09154: 7d 4c d0 14 addc r10,r12,r26
ffc09158: 7d 2b c9 14 adde r9,r11,r25
ffc0915c: 91 3d 00 10 stw r9,16(r29)
ffc09160: 91 5d 00 14 stw r10,20(r29)
total += bytes;
}
if (bytes != iov[ v ].iov_len)
ffc09164: 80 1e 00 04 lwz r0,4(r30)
ffc09168: 7f 83 00 00 cmpw cr7,r3,r0
ffc0916c: 40 9e 00 10 bne- cr7,ffc0917c <writev+0x18c>
}
/*
* Now process the writev().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
ffc09170: 7f 9b e0 00 cmpw cr7,r27,r28
ffc09174: 3b de 00 08 addi r30,r30,8
ffc09178: 41 9c ff 8c blt+ cr7,ffc09104 <writev+0x114>
if (bytes != iov[ v ].iov_len)
break;
}
return total;
}
ffc0917c: 80 01 00 2c lwz r0,44(r1)
ffc09180: 7f e3 fb 78 mr r3,r31
ffc09184: 83 21 00 0c lwz r25,12(r1)
ffc09188: 7c 08 03 a6 mtlr r0
ffc0918c: 83 41 00 10 lwz r26,16(r1)
ffc09190: 83 61 00 14 lwz r27,20(r1)
ffc09194: 83 81 00 18 lwz r28,24(r1)
ffc09198: 83 a1 00 1c lwz r29,28(r1)
ffc0919c: 83 c1 00 20 lwz r30,32(r1)
ffc091a0: 83 e1 00 24 lwz r31,36(r1)
ffc091a4: 38 21 00 28 addi r1,r1,40
ffc091a8: 4e 80 00 20 blr