Annotated Report
ffc10804 <IMFS_create_node>:
IMFS_jnode_types_t type,
const char *name,
mode_t mode,
const IMFS_types_union *info
)
{
ffc10804: 94 21 ff e0 stwu r1,-32(r1)
ffc10808: 7c 08 02 a6 mflr r0
ffc1080c: 93 c1 00 18 stw r30,24(r1)
IMFS_fs_info_t *fs_info;
/*
* MUST have a parent node to call this routine.
*/
if ( parent_loc == NULL )
ffc10810: 7c 7e 1b 79 mr. r30,r3
IMFS_jnode_types_t type,
const char *name,
mode_t mode,
const IMFS_types_union *info
)
{
ffc10814: 93 a1 00 14 stw r29,20(r1)
IMFS_fs_info_t *fs_info;
/*
* MUST have a parent node to call this routine.
*/
if ( parent_loc == NULL )
ffc10818: 3b a0 00 00 li r29,0
IMFS_jnode_types_t type,
const char *name,
mode_t mode,
const IMFS_types_union *info
)
{
ffc1081c: 93 e1 00 1c stw r31,28(r1)
ffc10820: 7c 9f 23 78 mr r31,r4
ffc10824: 90 01 00 24 stw r0,36(r1)
IMFS_fs_info_t *fs_info;
/*
* MUST have a parent node to call this routine.
*/
if ( parent_loc == NULL )
ffc10828: 40 82 00 24 bne- ffc1084c <IMFS_create_node+0x48>
node->st_ino = ++fs_info->ino_count;
rtems_chain_append( &parent->info.directory.Entries, &node->Node );
return node;
}
ffc1082c: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED
ffc10830: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc10834: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED
ffc10838: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc1083c: 83 a1 00 14 lwz r29,20(r1) <== NOT EXECUTED
ffc10840: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED
ffc10844: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED
ffc10848: 4e 80 00 20 blr <== NOT EXECUTED
return NULL;
/*
* Allocate filesystem node and fill in basic information
*/
node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask );
ffc1084c: 3d 20 00 00 lis r9,0
ffc10850: 90 e1 00 08 stw r7,8(r1)
ffc10854: 7c a4 2b 78 mr r4,r5
ffc10858: 81 29 26 9c lwz r9,9884(r9)
ffc1085c: 7f e3 fb 78 mr r3,r31
ffc10860: 80 a9 00 2c lwz r5,44(r9)
ffc10864: 7c c5 28 78 andc r5,r6,r5
ffc10868: 4b ff fe a5 bl ffc1070c <IMFS_allocate_node>
if ( !node )
ffc1086c: 80 e1 00 08 lwz r7,8(r1)
ffc10870: 7c 7d 1b 79 mr. r29,r3
ffc10874: 41 a2 ff b8 beq- ffc1082c <IMFS_create_node+0x28>
return NULL;
/*
* Set the type specific information
*/
switch (type) {
ffc10878: 2b 9f 00 07 cmplwi cr7,r31,7
ffc1087c: 40 9d 00 24 ble- cr7,ffc108a0 <IMFS_create_node+0x9c>
case IMFS_FIFO:
node->info.fifo.pipe = NULL;
break;
default:
assert(0);
ffc10880: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc10884: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc10888: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc1088c: 38 63 e3 94 addi r3,r3,-7276 <== NOT EXECUTED
ffc10890: 38 a5 e3 80 addi r5,r5,-7296 <== NOT EXECUTED
ffc10894: 38 c6 e3 e0 addi r6,r6,-7200 <== NOT EXECUTED
ffc10898: 38 80 00 5c li r4,92 <== NOT EXECUTED
ffc1089c: 4b ff 38 71 bl ffc0410c <__assert_func> <== NOT EXECUTED
return NULL;
/*
* Set the type specific information
*/
switch (type) {
ffc108a0: 3d 20 ff c2 lis r9,-62
ffc108a4: 39 29 e3 60 addi r9,r9,-7328
ffc108a8: 57 ff 10 3a rlwinm r31,r31,2,0,29
ffc108ac: 7c 09 f8 2e lwzx r0,r9,r31
ffc108b0: 7d 20 4a 14 add r9,r0,r9
ffc108b4: 7d 29 03 a6 mtctr r9
ffc108b8: 4e 80 04 20 bctr
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;
ffc108bc: 80 07 00 00 lwz r0,0(r7)
ffc108c0: 90 1d 00 50 stw r0,80(r29)
/*
* 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;
ffc108c4: 81 3e 00 10 lwz r9,16(r30)
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
ffc108c8: 7f a4 eb 78 mr r4,r29
}
/*
* This node MUST have a parent, so put it in that directory list.
*/
parent = parent_loc->node_access;
ffc108cc: 80 7e 00 00 lwz r3,0(r30)
fs_info = parent_loc->mt_entry->fs_info;
ffc108d0: 81 29 00 34 lwz r9,52(r9)
node->Parent = parent;
ffc108d4: 90 7d 00 08 stw r3,8(r29)
ffc108d8: 38 63 00 50 addi r3,r3,80
node->st_ino = ++fs_info->ino_count;
ffc108dc: 81 69 00 04 lwz r11,4(r9)
ffc108e0: 38 0b 00 01 addi r0,r11,1
ffc108e4: 90 09 00 04 stw r0,4(r9)
ffc108e8: 90 1d 00 38 stw r0,56(r29)
ffc108ec: 4b ff 8b a9 bl ffc09494 <_Chain_Append>
rtems_chain_append( &parent->info.directory.Entries, &node->Node );
return node;
}
ffc108f0: 80 01 00 24 lwz r0,36(r1)
ffc108f4: 7f a3 eb 78 mr r3,r29
ffc108f8: 83 c1 00 18 lwz r30,24(r1)
ffc108fc: 7c 08 03 a6 mtlr r0
ffc10900: 83 a1 00 14 lwz r29,20(r1)
ffc10904: 83 e1 00 1c lwz r31,28(r1)
ffc10908: 38 21 00 20 addi r1,r1,32
ffc1090c: 4e 80 00 20 blr
node->info.device.major = info->device.major;
node->info.device.minor = info->device.minor;
break;
case IMFS_LINEAR_FILE:
node->info.linearfile.size = 0;
ffc10910: 39 20 00 00 li r9,0 <== NOT EXECUTED
ffc10914: 39 40 00 00 li r10,0 <== NOT EXECUTED
ffc10918: 91 3d 00 50 stw r9,80(r29) <== NOT EXECUTED
node->info.linearfile.direct = 0;
ffc1091c: 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;
ffc10920: 91 5d 00 54 stw r10,84(r29) <== NOT EXECUTED
node->info.linearfile.direct = 0;
ffc10924: 90 1d 00 58 stw r0,88(r29) <== NOT EXECUTED
case IMFS_MEMORY_FILE:
node->info.file.size = 0;
node->info.file.indirect = 0;
ffc10928: 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;
ffc1092c: 39 20 00 00 li r9,0
node->info.file.indirect = 0;
node->info.file.doubly_indirect = 0;
node->info.file.triply_indirect = 0;
ffc10930: 90 1d 00 60 stw r0,96(r29)
case IMFS_LINEAR_FILE:
node->info.linearfile.size = 0;
node->info.linearfile.direct = 0;
case IMFS_MEMORY_FILE:
node->info.file.size = 0;
ffc10934: 39 40 00 00 li r10,0
ffc10938: 91 3d 00 50 stw r9,80(r29)
ffc1093c: 91 5d 00 54 stw r10,84(r29)
node->info.file.indirect = 0;
ffc10940: 90 1d 00 58 stw r0,88(r29)
node->info.file.doubly_indirect = 0;
ffc10944: 90 1d 00 5c stw r0,92(r29)
node->info.file.triply_indirect = 0;
break;
ffc10948: 4b ff ff 7c b ffc108c4 <IMFS_create_node+0xc0>
case IMFS_FIFO:
node->info.fifo.pipe = NULL;
ffc1094c: 38 00 00 00 li r0,0
ffc10950: 90 1d 00 50 stw r0,80(r29)
break;
ffc10954: 4b ff ff 70 b ffc108c4 <IMFS_create_node+0xc0>
node->info.sym_link.name = info->sym_link.name;
break;
case IMFS_DEVICE:
node->info.device.major = info->device.major;
node->info.device.minor = info->device.minor;
ffc10958: 81 27 00 04 lwz r9,4(r7)
case IMFS_SYM_LINK:
node->info.sym_link.name = info->sym_link.name;
break;
case IMFS_DEVICE:
node->info.device.major = info->device.major;
ffc1095c: 80 07 00 00 lwz r0,0(r7)
node->info.device.minor = info->device.minor;
ffc10960: 91 3d 00 54 stw r9,84(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;
ffc10964: 90 1d 00 50 stw r0,80(r29)
node->info.device.minor = info->device.minor;
break;
ffc10968: 4b ff ff 5c b ffc108c4 <IMFS_create_node+0xc0>
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
ffc1096c: 39 3d 00 54 addi r9,r29,84
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
ffc10970: 38 1d 00 50 addi r0,r29,80
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
ffc10974: 91 3d 00 50 stw r9,80(r29)
the_chain->permanent_null = NULL;
ffc10978: 39 20 00 00 li r9,0
ffc1097c: 91 3d 00 54 stw r9,84(r29)
the_chain->last = _Chain_Head(the_chain);
ffc10980: 90 1d 00 58 stw r0,88(r29)
ffc10984: 4b ff ff 40 b ffc108c4 <IMFS_create_node+0xc0>
ffc0665c <IMFS_dump_directory>:
rtems_chain_node *the_node;
rtems_chain_control *the_chain;
IMFS_jnode_t *the_jnode;
int i;
assert( the_directory );
ffc0665c: 2c 03 00 00 cmpwi r3,0
void IMFS_dump_directory(
IMFS_jnode_t *the_directory,
int level
)
{
ffc06660: 94 21 ff d8 stwu r1,-40(r1)
ffc06664: 7c 08 02 a6 mflr r0
ffc06668: 93 c1 00 20 stw r30,32(r1)
ffc0666c: 7c 9e 23 78 mr r30,r4
ffc06670: 90 01 00 2c stw r0,44(r1)
ffc06674: 93 21 00 0c stw r25,12(r1)
ffc06678: 93 41 00 10 stw r26,16(r1)
ffc0667c: 93 61 00 14 stw r27,20(r1)
ffc06680: 93 81 00 18 stw r28,24(r1)
ffc06684: 93 a1 00 1c stw r29,28(r1)
ffc06688: 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 );
ffc0668c: 41 82 00 c0 beq- ffc0674c <IMFS_dump_directory+0xf0>
assert( level >= 0 );
ffc06690: 2f 84 00 00 cmpwi cr7,r4,0
ffc06694: 41 9c 00 f8 blt- cr7,ffc0678c <IMFS_dump_directory+0x130>
assert( the_directory->type == IMFS_DIRECTORY );
ffc06698: 80 03 00 4c lwz r0,76(r3)
ffc0669c: 2f 80 00 01 cmpwi cr7,r0,1
ffc066a0: 40 9e 00 cc bne- cr7,ffc0676c <IMFS_dump_directory+0x110>
the_chain = &the_directory->info.directory.Entries;
for ( the_node = the_chain->first;
ffc066a4: 83 63 00 50 lwz r27,80(r3)
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
ffc066a8: 3b 43 00 54 addi r26,r3,84
ffc066ac: 7f 9b d0 00 cmpw cr7,r27,r26
ffc066b0: 41 9e 00 60 beq- cr7,ffc06710 <IMFS_dump_directory+0xb4>
ffc066b4: 3f 80 ff c3 lis r28,-61
ffc066b8: 3f a0 00 00 lis r29,0
ffc066bc: 3b 9c 8b 14 addi r28,r28,-29932
ffc066c0: 3b bd 27 0c addi r29,r29,9996
for ( i=0 ; i<=level ; i++ )
fprintf(stdout, "...." );
IMFS_print_jnode( the_jnode );
if ( the_jnode->type == IMFS_DIRECTORY )
IMFS_dump_directory( the_jnode, level + 1 );
ffc066c4: 3b 24 00 01 addi r25,r4,1
for ( the_node = the_chain->first;
!rtems_chain_is_tail( the_chain, the_node );
the_node = the_node->next ) {
the_jnode = (IMFS_jnode_t *) the_node;
ffc066c8: 3b e0 00 00 li r31,0
for ( i=0 ; i<=level ; i++ )
fprintf(stdout, "...." );
ffc066cc: 81 3d 00 00 lwz r9,0(r29)
!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++ )
ffc066d0: 3b ff 00 01 addi r31,r31,1
fprintf(stdout, "...." );
ffc066d4: 7f 83 e3 78 mr r3,r28
ffc066d8: 80 c9 00 08 lwz r6,8(r9)
ffc066dc: 38 80 00 01 li r4,1
ffc066e0: 38 a0 00 04 li r5,4
ffc066e4: 48 01 27 e5 bl ffc18ec8 <fwrite>
!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++ )
ffc066e8: 7f 9e f8 00 cmpw cr7,r30,r31
ffc066ec: 40 9c ff e0 bge+ cr7,ffc066cc <IMFS_dump_directory+0x70>
fprintf(stdout, "...." );
IMFS_print_jnode( the_jnode );
ffc066f0: 7f 63 db 78 mr r3,r27
ffc066f4: 4b ff fd 09 bl ffc063fc <IMFS_print_jnode>
if ( the_jnode->type == IMFS_DIRECTORY )
ffc066f8: 80 1b 00 4c lwz r0,76(r27)
ffc066fc: 2f 80 00 01 cmpwi cr7,r0,1
ffc06700: 41 9e 00 3c beq- cr7,ffc0673c <IMFS_dump_directory+0xe0>
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 ) {
ffc06704: 83 7b 00 00 lwz r27,0(r27)
assert( the_directory->type == IMFS_DIRECTORY );
the_chain = &the_directory->info.directory.Entries;
for ( the_node = the_chain->first;
ffc06708: 7f 9b d0 00 cmpw cr7,r27,r26
ffc0670c: 40 9e ff bc bne+ cr7,ffc066c8 <IMFS_dump_directory+0x6c>
fprintf(stdout, "...." );
IMFS_print_jnode( the_jnode );
if ( the_jnode->type == IMFS_DIRECTORY )
IMFS_dump_directory( the_jnode, level + 1 );
}
}
ffc06710: 80 01 00 2c lwz r0,44(r1)
ffc06714: 83 21 00 0c lwz r25,12(r1)
ffc06718: 7c 08 03 a6 mtlr r0
ffc0671c: 83 41 00 10 lwz r26,16(r1)
ffc06720: 83 61 00 14 lwz r27,20(r1)
ffc06724: 83 81 00 18 lwz r28,24(r1)
ffc06728: 83 a1 00 1c lwz r29,28(r1)
ffc0672c: 83 c1 00 20 lwz r30,32(r1)
ffc06730: 83 e1 00 24 lwz r31,36(r1)
ffc06734: 38 21 00 28 addi r1,r1,40
ffc06738: 4e 80 00 20 blr
for ( i=0 ; i<=level ; i++ )
fprintf(stdout, "...." );
IMFS_print_jnode( the_jnode );
if ( the_jnode->type == IMFS_DIRECTORY )
IMFS_dump_directory( the_jnode, level + 1 );
ffc0673c: 7f 63 db 78 mr r3,r27
ffc06740: 7f 24 cb 78 mr r4,r25
ffc06744: 4b ff ff 19 bl ffc0665c <IMFS_dump_directory>
ffc06748: 4b ff ff bc b ffc06704 <IMFS_dump_directory+0xa8>
rtems_chain_node *the_node;
rtems_chain_control *the_chain;
IMFS_jnode_t *the_jnode;
int i;
assert( the_directory );
ffc0674c: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED
ffc06750: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED
ffc06754: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED
ffc06758: 38 63 8a 0c addi r3,r3,-30196 <== NOT EXECUTED
ffc0675c: 38 a5 89 f8 addi r5,r5,-30216 <== NOT EXECUTED
ffc06760: 38 c6 8a d0 addi r6,r6,-30000 <== NOT EXECUTED
ffc06764: 38 80 00 84 li r4,132 <== NOT EXECUTED
ffc06768: 48 00 09 ad bl ffc07114 <__assert_func> <== NOT EXECUTED
assert( level >= 0 );
assert( the_directory->type == IMFS_DIRECTORY );
ffc0676c: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED
ffc06770: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED
ffc06774: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED
ffc06778: 38 63 8a 0c addi r3,r3,-30196 <== NOT EXECUTED
ffc0677c: 38 a5 89 f8 addi r5,r5,-30216 <== NOT EXECUTED
ffc06780: 38 c6 8a ec addi r6,r6,-29972 <== NOT EXECUTED
ffc06784: 38 80 00 88 li r4,136 <== NOT EXECUTED
ffc06788: 48 00 09 8d bl ffc07114 <__assert_func> <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
int i;
assert( the_directory );
assert( level >= 0 );
ffc0678c: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED
ffc06790: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED
ffc06794: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED
ffc06798: 38 63 8a 0c addi r3,r3,-30196 <== NOT EXECUTED
ffc0679c: 38 a5 89 f8 addi r5,r5,-30216 <== NOT EXECUTED
ffc067a0: 38 c6 8a e0 addi r6,r6,-29984 <== NOT EXECUTED
ffc067a4: 38 80 00 86 li r4,134 <== NOT EXECUTED
ffc067a8: 48 00 09 6d bl ffc07114 <__assert_func> <== NOT EXECUTED
ffc0cefc <IMFS_eval_path>:
const char *pathname, /* IN */
int pathnamelen, /* IN */
int flags, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
ffc0cefc: 94 21 ff 90 stwu r1,-112(r1)
ffc0cf00: 7c 08 02 a6 mflr r0
ffc0cf04: 90 01 00 74 stw r0,116(r1)
ffc0cf08: 93 01 00 50 stw r24,80(r1)
case IMFS_UP_DIR:
/*
* Am I at the root of all filesystems? (chroot'ed?)
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access )
ffc0cf0c: 3f 00 00 00 lis r24,0
ffc0cf10: 3b 18 26 9c addi r24,r24,9884
const char *pathname, /* IN */
int pathnamelen, /* IN */
int flags, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
ffc0cf14: 93 a1 00 64 stw r29,100(r1)
ffc0cf18: 92 c1 00 48 stw r22,72(r1)
/*
* This was filled in by the caller and is valid in the
* mount table.
*/
node = pathloc->node_access;
ffc0cf1c: 83 a6 00 00 lwz r29,0(r6)
const char *pathname, /* IN */
int pathnamelen, /* IN */
int flags, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
ffc0cf20: 92 e1 00 4c stw r23,76(r1)
ffc0cf24: 7c b7 2b 78 mr r23,r5
ffc0cf28: 93 21 00 54 stw r25,84(r1)
ffc0cf2c: 3b 21 00 08 addi r25,r1,8
ffc0cf30: 93 41 00 58 stw r26,88(r1)
ffc0cf34: 7c 7a 1b 78 mr r26,r3
ffc0cf38: 93 61 00 5c stw r27,92(r1)
ffc0cf3c: 3b 61 00 20 addi r27,r1,32
ffc0cf40: 93 81 00 60 stw r28,96(r1)
ffc0cf44: 7c dc 33 78 mr r28,r6
ffc0cf48: 93 c1 00 68 stw r30,104(r1)
/*
* This was filled in by the caller and is valid in the
* mount table.
*/
node = pathloc->node_access;
ffc0cf4c: 3b c0 00 00 li r30,0
const char *pathname, /* IN */
int pathnamelen, /* IN */
int flags, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
ffc0cf50: 93 e1 00 6c stw r31,108(r1)
ffc0cf54: 7c 9f 23 78 mr r31,r4
* 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 );
ffc0cf58: 7f e4 fb 78 mr r4,r31
ffc0cf5c: 7c 7a f2 14 add r3,r26,r30
ffc0cf60: 7f 65 db 78 mr r5,r27
ffc0cf64: 7f 26 cb 78 mr r6,r25
ffc0cf68: 48 00 0b cd bl ffc0db34 <IMFS_get_token>
pathnamelen -= len;
i += len;
if ( !pathloc->node_access )
ffc0cf6c: 81 3c 00 00 lwz r9,0(r28)
* 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 );
ffc0cf70: 7c 76 1b 78 mr r22,r3
pathnamelen -= len;
ffc0cf74: 80 81 00 08 lwz r4,8(r1)
i += len;
if ( !pathloc->node_access )
ffc0cf78: 2f 89 00 00 cmpwi cr7,r9,0
ffc0cf7c: 41 9e 01 fc beq- cr7,ffc0d178 <IMFS_eval_path+0x27c>
rtems_set_errno_and_return_minus_one( ENOENT );
/*
* I cannot move out of this directory without execute permission.
*/
if ( type != IMFS_NO_MORE_PATH )
ffc0cf80: 2f 83 00 00 cmpwi cr7,r3,0
*/
while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );
pathnamelen -= len;
ffc0cf84: 7f e4 f8 50 subf r31,r4,r31
i += len;
ffc0cf88: 7f de 22 14 add r30,r30,r4
rtems_set_errno_and_return_minus_one( ENOENT );
/*
* I cannot move out of this directory without execute permission.
*/
if ( type != IMFS_NO_MORE_PATH )
ffc0cf8c: 40 9e 00 34 bne- cr7,ffc0cfc0 <IMFS_eval_path+0xc4>
* 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 ) {
ffc0cf90: 80 09 00 4c lwz r0,76(r9)
ffc0cf94: 2f 80 00 01 cmpwi cr7,r0,1
ffc0cf98: 41 9e 01 74 beq- cr7,ffc0d10c <IMFS_eval_path+0x210>
flags, pathloc );
} else {
result = IMFS_Set_handlers( pathloc );
}
} else {
result = IMFS_Set_handlers( pathloc );
ffc0cf9c: 7f 83 e3 78 mr r3,r28
ffc0cfa0: 4b ff fc ed bl ffc0cc8c <IMFS_Set_handlers>
if ( !rtems_libio_is_valid_perms( flags ) ) {
assert( 0 );
rtems_set_errno_and_return_minus_one( EIO );
}
jnode = node->node_access;
ffc0cfa4: 81 3c 00 00 lwz r9,0(r28)
/*
* If all of the flags are set we have permission
* to do this.
*/
if ( ( flags_to_test & jnode->st_mode) == flags_to_test )
ffc0cfa8: 56 f7 30 32 rlwinm r23,r23,6,0,25
if ( !rtems_libio_is_valid_perms( flags ) ) {
assert( 0 );
rtems_set_errno_and_return_minus_one( EIO );
}
jnode = node->node_access;
ffc0cfac: 80 09 00 30 lwz r0,48(r9)
ffc0cfb0: 7e e0 00 38 and r0,r23,r0
ffc0cfb4: 7f 97 00 00 cmpw cr7,r23,r0
ffc0cfb8: 40 be 01 0c bne+ cr7,ffc0d0c4 <IMFS_eval_path+0x1c8>
ffc0cfbc: 48 00 00 c4 b ffc0d080 <IMFS_eval_path+0x184>
/*
* I cannot move out of this directory without execute permission.
*/
if ( type != IMFS_NO_MORE_PATH )
if ( node->type == IMFS_DIRECTORY )
ffc0cfc0: 80 1d 00 4c lwz r0,76(r29)
ffc0cfc4: 7d 3d 4b 78 mr r29,r9
ffc0cfc8: 2f 80 00 01 cmpwi cr7,r0,1
ffc0cfcc: 41 9e 00 ec beq- cr7,ffc0d0b8 <IMFS_eval_path+0x1bc>
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
rtems_set_errno_and_return_minus_one( EACCES );
node = pathloc->node_access;
switch( type ) {
ffc0cfd0: 2f 96 00 03 cmpwi cr7,r22,3
ffc0cfd4: 41 9e 00 1c beq- cr7,ffc0cff0 <IMFS_eval_path+0xf4>
ffc0cfd8: 2f 96 00 04 cmpwi cr7,r22,4
ffc0cfdc: 41 9e 00 94 beq- cr7,ffc0d070 <IMFS_eval_path+0x174>
ffc0cfe0: 2f 16 00 02 cmpwi cr6,r22,2
ffc0cfe4: 41 9a 00 50 beq- cr6,ffc0d034 <IMFS_eval_path+0x138>
/*
* Evaluate all tokens until we are done or an error occurs.
*/
while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
ffc0cfe8: 40 9e ff 70 bne+ cr7,ffc0cf58 <IMFS_eval_path+0x5c>
ffc0cfec: 4b ff ff a4 b ffc0cf90 <IMFS_eval_path+0x94> <== NOT EXECUTED
case IMFS_NAME:
/*
* If we are at a link follow it.
*/
if ( node->type == IMFS_HARD_LINK ) {
ffc0cff0: 80 09 00 4c lwz r0,76(r9)
ffc0cff4: 2f 80 00 03 cmpwi cr7,r0,3
ffc0cff8: 41 9e 01 94 beq- cr7,ffc0d18c <IMFS_eval_path+0x290>
node = pathloc->node_access;
if ( !node )
rtems_set_errno_and_return_minus_one( ENOTDIR );
} else if ( node->type == IMFS_SYM_LINK ) {
ffc0cffc: 2f 80 00 04 cmpwi cr7,r0,4
ffc0d000: 41 9e 02 08 beq- cr7,ffc0d208 <IMFS_eval_path+0x30c>
/*
* Only a directory can be decended into.
*/
if ( node->type != IMFS_DIRECTORY )
ffc0d004: 2f 80 00 01 cmpwi cr7,r0,1
ffc0d008: 40 9e 01 a4 bne- cr7,ffc0d1ac <IMFS_eval_path+0x2b0>
/*
* 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 ) {
ffc0d00c: 81 1d 00 5c lwz r8,92(r29)
ffc0d010: 2f 88 00 00 cmpwi cr7,r8,0
ffc0d014: 40 9e 01 ac bne- cr7,ffc0d1c0 <IMFS_eval_path+0x2c4>
/*
* Otherwise find the token name in the present location.
*/
node = IMFS_find_match_in_dir( node, token );
ffc0d018: 7f a3 eb 78 mr r3,r29
ffc0d01c: 7f 64 db 78 mr r4,r27
ffc0d020: 48 00 0a 15 bl ffc0da34 <IMFS_find_match_in_dir>
if ( !node )
ffc0d024: 7c 7d 1b 79 mr. r29,r3
ffc0d028: 41 82 01 50 beq- ffc0d178 <IMFS_eval_path+0x27c>
/*
* Set the node access to the point we have found.
*/
pathloc->node_access = node;
ffc0d02c: 93 bc 00 00 stw r29,0(r28)
break;
ffc0d030: 4b ff ff 28 b ffc0cf58 <IMFS_eval_path+0x5c>
case IMFS_UP_DIR:
/*
* Am I at the root of all filesystems? (chroot'ed?)
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access )
ffc0d034: 81 78 00 00 lwz r11,0(r24)
ffc0d038: 80 0b 00 18 lwz r0,24(r11)
ffc0d03c: 7f 89 00 00 cmpw cr7,r9,r0
ffc0d040: 41 be ff 18 beq- cr7,ffc0cf58 <IMFS_eval_path+0x5c>
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
pathloc->mt_entry->mt_fs_root.node_access) {
ffc0d044: 81 1c 00 10 lwz r8,16(r28)
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
ffc0d048: 80 08 00 1c lwz r0,28(r8)
ffc0d04c: 7f 89 00 00 cmpw cr7,r9,r0
ffc0d050: 41 9e 01 d8 beq- cr7,ffc0d228 <IMFS_eval_path+0x32c>
pathnamelen+len,
flags,pathloc);
}
} else {
if ( !node->Parent )
ffc0d054: 83 a9 00 08 lwz r29,8(r9)
ffc0d058: 2f 9d 00 00 cmpwi cr7,r29,0
ffc0d05c: 40 9e ff d0 bne+ cr7,ffc0d02c <IMFS_eval_path+0x130>
rtems_set_errno_and_return_minus_one( ENOENT );
ffc0d060: 48 00 4b 59 bl ffc11bb8 <__errno>
ffc0d064: 92 c3 00 00 stw r22,0(r3)
ffc0d068: 38 60 ff ff li r3,-1
ffc0d06c: 48 00 00 14 b ffc0d080 <IMFS_eval_path+0x184>
case IMFS_NO_MORE_PATH:
case IMFS_CURRENT_DIR:
break;
case IMFS_INVALID_TOKEN:
rtems_set_errno_and_return_minus_one( ENAMETOOLONG );
ffc0d070: 48 00 4b 49 bl ffc11bb8 <__errno>
ffc0d074: 38 00 00 5b li r0,91
ffc0d078: 90 03 00 00 stw r0,0(r3)
ffc0d07c: 38 60 ff ff li r3,-1
if ( !IMFS_evaluate_permission( pathloc, flags ) )
rtems_set_errno_and_return_minus_one( EACCES );
return result;
}
ffc0d080: 80 01 00 74 lwz r0,116(r1)
ffc0d084: 82 c1 00 48 lwz r22,72(r1)
ffc0d088: 7c 08 03 a6 mtlr r0
ffc0d08c: 82 e1 00 4c lwz r23,76(r1)
ffc0d090: 83 01 00 50 lwz r24,80(r1)
ffc0d094: 83 21 00 54 lwz r25,84(r1)
ffc0d098: 83 41 00 58 lwz r26,88(r1)
ffc0d09c: 83 61 00 5c lwz r27,92(r1)
ffc0d0a0: 83 81 00 60 lwz r28,96(r1)
ffc0d0a4: 83 a1 00 64 lwz r29,100(r1)
ffc0d0a8: 83 c1 00 68 lwz r30,104(r1)
ffc0d0ac: 83 e1 00 6c lwz r31,108(r1)
ffc0d0b0: 38 21 00 70 addi r1,r1,112
ffc0d0b4: 4e 80 00 20 blr
/*
* If all of the flags are set we have permission
* to do this.
*/
if ( ( flags_to_test & jnode->st_mode) == flags_to_test )
ffc0d0b8: 80 09 00 30 lwz r0,48(r9)
ffc0d0bc: 70 0b 00 40 andi. r11,r0,64
ffc0d0c0: 40 a2 ff 10 bne- ffc0cfd0 <IMFS_eval_path+0xd4>
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( pathloc, flags ) )
rtems_set_errno_and_return_minus_one( EACCES );
ffc0d0c4: 48 00 4a f5 bl ffc11bb8 <__errno>
ffc0d0c8: 38 00 00 0d li r0,13
ffc0d0cc: 90 03 00 00 stw r0,0(r3)
ffc0d0d0: 38 60 ff ff li r3,-1
return result;
}
ffc0d0d4: 80 01 00 74 lwz r0,116(r1)
ffc0d0d8: 82 c1 00 48 lwz r22,72(r1)
ffc0d0dc: 7c 08 03 a6 mtlr r0
ffc0d0e0: 82 e1 00 4c lwz r23,76(r1)
ffc0d0e4: 83 01 00 50 lwz r24,80(r1)
ffc0d0e8: 83 21 00 54 lwz r25,84(r1)
ffc0d0ec: 83 41 00 58 lwz r26,88(r1)
ffc0d0f0: 83 61 00 5c lwz r27,92(r1)
ffc0d0f4: 83 81 00 60 lwz r28,96(r1)
ffc0d0f8: 83 a1 00 64 lwz r29,100(r1)
ffc0d0fc: 83 c1 00 68 lwz r30,104(r1)
ffc0d100: 83 e1 00 6c lwz r31,108(r1)
ffc0d104: 38 21 00 70 addi r1,r1,112
ffc0d108: 4e 80 00 20 blr
*
* 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 ) {
ffc0d10c: 81 09 00 5c lwz r8,92(r9)
ffc0d110: 2f 88 00 00 cmpwi cr7,r8,0
ffc0d114: 41 be fe 88 beq- cr7,ffc0cf9c <IMFS_eval_path+0xa0>
newloc = node->info.directory.mt_fs->mt_fs_root;
ffc0d118: 81 28 00 28 lwz r9,40(r8)
*pathloc = newloc;
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
ffc0d11c: 7c 64 f0 50 subf r3,r4,r30
* 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;
ffc0d120: 80 e8 00 1c lwz r7,28(r8)
*pathloc = newloc;
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
ffc0d124: 7c 7a 1a 14 add r3,r26,r3
* 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;
ffc0d128: 81 48 00 20 lwz r10,32(r8)
*pathloc = newloc;
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
ffc0d12c: 7c 9f 22 14 add r4,r31,r4
* 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;
ffc0d130: 81 68 00 24 lwz r11,36(r8)
*pathloc = newloc;
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
ffc0d134: 7e e5 bb 78 mr r5,r23
* 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;
ffc0d138: 90 e1 00 0c stw r7,12(r1)
ffc0d13c: 91 41 00 10 stw r10,16(r1)
ffc0d140: 91 61 00 14 stw r11,20(r1)
ffc0d144: 91 21 00 18 stw r9,24(r1)
ffc0d148: 80 08 00 2c lwz r0,44(r8)
*pathloc = newloc;
ffc0d14c: 90 fc 00 00 stw r7,0(r28)
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
ffc0d150: 7f 86 e3 78 mr r6,r28
*/
if ( node->type == IMFS_DIRECTORY ) {
if ( node->info.directory.mt_fs != NULL ) {
newloc = node->info.directory.mt_fs->mt_fs_root;
*pathloc = newloc;
ffc0d154: 91 5c 00 04 stw r10,4(r28)
ffc0d158: 90 1c 00 10 stw r0,16(r28)
ffc0d15c: 91 7c 00 08 stw r11,8(r28)
* 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;
ffc0d160: 90 01 00 1c stw r0,28(r1)
*pathloc = newloc;
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
ffc0d164: 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;
ffc0d168: 91 3c 00 0c stw r9,12(r28)
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
ffc0d16c: 7c 09 03 a6 mtctr r0
ffc0d170: 4e 80 04 21 bctrl
ffc0d174: 4b ff ff 0c b ffc0d080 <IMFS_eval_path+0x184>
* Otherwise find the token name in the present location.
*/
node = IMFS_find_match_in_dir( node, token );
if ( !node )
rtems_set_errno_and_return_minus_one( ENOENT );
ffc0d178: 48 00 4a 41 bl ffc11bb8 <__errno>
ffc0d17c: 38 00 00 02 li r0,2
ffc0d180: 90 03 00 00 stw r0,0(r3)
ffc0d184: 38 60 ff ff li r3,-1
ffc0d188: 4b ff fe f8 b ffc0d080 <IMFS_eval_path+0x184>
* If we are at a link follow it.
*/
if ( node->type == IMFS_HARD_LINK ) {
IMFS_evaluate_hard_link( pathloc, 0 );
ffc0d18c: 7f 83 e3 78 mr r3,r28
ffc0d190: 38 80 00 00 li r4,0
ffc0d194: 4b ff fb a9 bl ffc0cd3c <IMFS_evaluate_hard_link>
node = pathloc->node_access;
ffc0d198: 83 bc 00 00 lwz r29,0(r28)
if ( !node )
ffc0d19c: 2f 9d 00 00 cmpwi cr7,r29,0
ffc0d1a0: 41 9e 00 0c beq- cr7,ffc0d1ac <IMFS_eval_path+0x2b0>
} else if ( node->type == IMFS_SYM_LINK ) {
result = IMFS_evaluate_sym_link( pathloc, 0 );
node = pathloc->node_access;
ffc0d1a4: 80 1d 00 4c lwz r0,76(r29)
ffc0d1a8: 4b ff fe 5c b ffc0d004 <IMFS_eval_path+0x108>
/*
* Only a directory can be decended into.
*/
if ( node->type != IMFS_DIRECTORY )
rtems_set_errno_and_return_minus_one( ENOTDIR );
ffc0d1ac: 48 00 4a 0d bl ffc11bb8 <__errno>
ffc0d1b0: 38 00 00 14 li r0,20
ffc0d1b4: 90 03 00 00 stw r0,0(r3)
ffc0d1b8: 38 60 ff ff li r3,-1
ffc0d1bc: 4b ff fe c4 b ffc0d080 <IMFS_eval_path+0x184>
* 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 ) {
newloc = node->info.directory.mt_fs->mt_fs_root;
ffc0d1c0: 81 28 00 28 lwz r9,40(r8)
*pathloc = newloc;
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
ffc0d1c4: 7e e5 bb 78 mr r5,r23
* 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 ) {
newloc = node->info.directory.mt_fs->mt_fs_root;
ffc0d1c8: 80 e8 00 1c lwz r7,28(r8)
*pathloc = newloc;
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
ffc0d1cc: 7f 86 e3 78 mr r6,r28
* 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 ) {
newloc = node->info.directory.mt_fs->mt_fs_root;
ffc0d1d0: 81 48 00 20 lwz r10,32(r8)
ffc0d1d4: 81 68 00 24 lwz r11,36(r8)
*pathloc = newloc;
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
ffc0d1d8: 80 81 00 08 lwz r4,8(r1)
* 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 ) {
newloc = node->info.directory.mt_fs->mt_fs_root;
ffc0d1dc: 90 e1 00 0c stw r7,12(r1)
*pathloc = newloc;
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
ffc0d1e0: 7c 64 f0 50 subf r3,r4,r30
* 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 ) {
newloc = node->info.directory.mt_fs->mt_fs_root;
ffc0d1e4: 91 41 00 10 stw r10,16(r1)
*pathloc = newloc;
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
ffc0d1e8: 7c 7a 1a 14 add r3,r26,r3
ffc0d1ec: 7c 9f 22 14 add r4,r31,r4
* 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 ) {
newloc = node->info.directory.mt_fs->mt_fs_root;
ffc0d1f0: 91 61 00 14 stw r11,20(r1)
ffc0d1f4: 91 21 00 18 stw r9,24(r1)
ffc0d1f8: 80 08 00 2c lwz r0,44(r8)
*pathloc = newloc;
ffc0d1fc: 90 fc 00 00 stw r7,0(r28)
ffc0d200: 91 5c 00 04 stw r10,4(r28)
ffc0d204: 4b ff ff 54 b ffc0d158 <IMFS_eval_path+0x25c>
if ( !node )
rtems_set_errno_and_return_minus_one( ENOTDIR );
} else if ( node->type == IMFS_SYM_LINK ) {
result = IMFS_evaluate_sym_link( pathloc, 0 );
ffc0d208: 7f 83 e3 78 mr r3,r28
ffc0d20c: 38 80 00 00 li r4,0
ffc0d210: 4b ff fb c9 bl ffc0cdd8 <IMFS_evaluate_sym_link>
node = pathloc->node_access;
ffc0d214: 83 bc 00 00 lwz r29,0(r28)
if ( result == -1 )
ffc0d218: 2f 83 ff ff cmpwi cr7,r3,-1
ffc0d21c: 41 be fe 64 beq- cr7,ffc0d080 <IMFS_eval_path+0x184>
} else if ( node->type == IMFS_SYM_LINK ) {
result = IMFS_evaluate_sym_link( pathloc, 0 );
node = pathloc->node_access;
ffc0d220: 80 1d 00 4c lwz r0,76(r29)
ffc0d224: 4b ff fd e0 b ffc0d004 <IMFS_eval_path+0x108>
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
break; /* Throw out the .. in this case */
} else {
newloc = pathloc->mt_entry->mt_point_node;
ffc0d228: 81 28 00 14 lwz r9,20(r8)
*pathloc = newloc;
return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),
ffc0d22c: 7c 64 f0 50 subf r3,r4,r30
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
break; /* Throw out the .. in this case */
} else {
newloc = pathloc->mt_entry->mt_point_node;
ffc0d230: 80 e8 00 08 lwz r7,8(r8)
*pathloc = newloc;
return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),
ffc0d234: 7c 7a 1a 14 add r3,r26,r3
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
break; /* Throw out the .. in this case */
} else {
newloc = pathloc->mt_entry->mt_point_node;
ffc0d238: 81 48 00 0c lwz r10,12(r8)
*pathloc = newloc;
return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),
ffc0d23c: 7c 84 fa 14 add r4,r4,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;
ffc0d240: 81 68 00 10 lwz r11,16(r8)
*pathloc = newloc;
return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),
ffc0d244: 7e e5 bb 78 mr r5,r23
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
break; /* Throw out the .. in this case */
} else {
newloc = pathloc->mt_entry->mt_point_node;
ffc0d248: 90 e1 00 0c stw r7,12(r1)
ffc0d24c: 91 41 00 10 stw r10,16(r1)
ffc0d250: 91 61 00 14 stw r11,20(r1)
ffc0d254: 91 21 00 18 stw r9,24(r1)
ffc0d258: 80 08 00 18 lwz r0,24(r8)
ffc0d25c: 4b ff fe f0 b ffc0d14c <IMFS_eval_path+0x250>
ffc0cd3c <IMFS_evaluate_hard_link>:
int IMFS_evaluate_hard_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
ffc0cd3c: 94 21 ff f0 stwu r1,-16(r1)
ffc0cd40: 7c 08 02 a6 mflr r0
ffc0cd44: 90 01 00 14 stw r0,20(r1)
IMFS_jnode_t *jnode = node->node_access;
ffc0cd48: 81 23 00 00 lwz r9,0(r3)
int IMFS_evaluate_hard_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
ffc0cd4c: 93 c1 00 08 stw r30,8(r1)
ffc0cd50: 7c 9e 23 78 mr r30,r4
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_HARD_LINK )
ffc0cd54: 80 09 00 4c lwz r0,76(r9)
int IMFS_evaluate_hard_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
ffc0cd58: 93 e1 00 0c stw r31,12(r1)
ffc0cd5c: 7c 7f 1b 78 mr r31,r3
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_HARD_LINK )
ffc0cd60: 2f 80 00 03 cmpwi cr7,r0,3
ffc0cd64: 40 9e 00 6c bne- cr7,ffc0cdd0 <IMFS_evaluate_hard_link+0x94>
/*
* Set the hard link value and the handlers.
*/
node->node_access = jnode->info.hard_link.link_node;
ffc0cd68: 80 09 00 50 lwz r0,80(r9)
/*
* If all of the flags are set we have permission
* to do this.
*/
if ( ( flags_to_test & jnode->st_mode) == flags_to_test )
ffc0cd6c: 57 de 30 32 rlwinm r30,r30,6,0,25
/*
* Set the hard link value and the handlers.
*/
node->node_access = jnode->info.hard_link.link_node;
ffc0cd70: 90 03 00 00 stw r0,0(r3)
IMFS_Set_handlers( node );
ffc0cd74: 4b ff ff 19 bl ffc0cc8c <IMFS_Set_handlers>
if ( !rtems_libio_is_valid_perms( flags ) ) {
assert( 0 );
rtems_set_errno_and_return_minus_one( EIO );
}
jnode = node->node_access;
ffc0cd78: 81 3f 00 00 lwz r9,0(r31)
ffc0cd7c: 80 09 00 30 lwz r0,48(r9)
ffc0cd80: 7f c0 00 38 and r0,r30,r0
ffc0cd84: 7f 9e 00 00 cmpw cr7,r30,r0
ffc0cd88: 41 9e 00 2c beq- cr7,ffc0cdb4 <IMFS_evaluate_hard_link+0x78>
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( node, flags ) )
rtems_set_errno_and_return_minus_one( EACCES );
ffc0cd8c: 48 00 4e 2d bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc0cd90: 38 00 00 0d li r0,13 <== NOT EXECUTED
ffc0cd94: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc0cd98: 38 60 ff ff li r3,-1 <== NOT EXECUTED
return result;
}
ffc0cd9c: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc0cda0: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED
ffc0cda4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0cda8: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc0cdac: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc0cdb0: 4e 80 00 20 blr <== NOT EXECUTED
ffc0cdb4: 80 01 00 14 lwz r0,20(r1)
if ( !rtems_libio_is_valid_perms( flags ) ) {
assert( 0 );
rtems_set_errno_and_return_minus_one( EIO );
}
jnode = node->node_access;
ffc0cdb8: 38 60 00 00 li r3,0
if ( !IMFS_evaluate_permission( node, flags ) )
rtems_set_errno_and_return_minus_one( EACCES );
return result;
}
ffc0cdbc: 83 c1 00 08 lwz r30,8(r1)
ffc0cdc0: 7c 08 03 a6 mtlr r0
ffc0cdc4: 83 e1 00 0c lwz r31,12(r1)
ffc0cdc8: 38 21 00 10 addi r1,r1,16
ffc0cdcc: 4e 80 00 20 blr
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_HARD_LINK )
rtems_fatal_error_occurred (0xABCD0000);
ffc0cdd0: 3c 60 ab cd lis r3,-21555 <== NOT EXECUTED
ffc0cdd4: 4b ff c2 61 bl ffc09034 <rtems_fatal_error_occurred> <== NOT EXECUTED
ffc0cd1c <IMFS_evaluate_permission>:
/*
* If all of the flags are set we have permission
* to do this.
*/
if ( ( flags_to_test & jnode->st_mode) == flags_to_test )
ffc0cd1c: 81 23 00 00 lwz r9,0(r3) <== NOT EXECUTED
ffc0cd20: 54 84 30 32 rlwinm r4,r4,6,0,25 <== NOT EXECUTED
ffc0cd24: 80 69 00 30 lwz r3,48(r9) <== NOT EXECUTED
ffc0cd28: 7c 83 18 38 and r3,r4,r3 <== NOT EXECUTED
return 1;
return 0;
}
ffc0cd2c: 7c 83 1a 78 xor r3,r4,r3 <== NOT EXECUTED
ffc0cd30: 7c 63 00 34 cntlzw r3,r3 <== NOT EXECUTED
ffc0cd34: 54 63 d9 7e rlwinm r3,r3,27,5,31 <== NOT EXECUTED
ffc0cd38: 4e 80 00 20 blr <== NOT EXECUTED
ffc0cdd8 <IMFS_evaluate_sym_link>:
int IMFS_evaluate_sym_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
ffc0cdd8: 94 21 ff e8 stwu r1,-24(r1)
ffc0cddc: 7c 08 02 a6 mflr r0
ffc0cde0: 90 01 00 1c stw r0,28(r1)
IMFS_jnode_t *jnode = node->node_access;
ffc0cde4: 81 23 00 00 lwz r9,0(r3)
int IMFS_evaluate_sym_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
ffc0cde8: 93 c1 00 10 stw r30,16(r1)
ffc0cdec: 7c 9e 23 78 mr r30,r4
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_SYM_LINK )
ffc0cdf0: 80 09 00 4c lwz r0,76(r9)
int IMFS_evaluate_sym_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
ffc0cdf4: 93 e1 00 14 stw r31,20(r1)
ffc0cdf8: 7c 7f 1b 78 mr r31,r3
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_SYM_LINK )
ffc0cdfc: 2f 80 00 04 cmpwi cr7,r0,4
int IMFS_evaluate_sym_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
ffc0ce00: 93 a1 00 0c stw r29,12(r1)
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_SYM_LINK )
ffc0ce04: 40 9e 00 e8 bne- cr7,ffc0ceec <IMFS_evaluate_sym_link+0x114>
rtems_fatal_error_occurred (0xABCD0000);
if ( !jnode->Parent )
ffc0ce08: 80 09 00 08 lwz r0,8(r9)
ffc0ce0c: 2f 80 00 00 cmpwi cr7,r0,0
ffc0ce10: 41 9e 00 e4 beq- cr7,ffc0cef4 <IMFS_evaluate_sym_link+0x11c>
/*
* Move the node_access to either the symbolic links parent or
* root depending on the symbolic links path.
*/
node->node_access = jnode->Parent;
ffc0ce14: 90 03 00 00 stw r0,0(r3)
rtems_filesystem_get_sym_start_loc(
ffc0ce18: 81 69 00 50 lwz r11,80(r9)
ffc0ce1c: 88 0b 00 00 lbz r0,0(r11)
ffc0ce20: 2f 80 00 2f cmpwi cr7,r0,47
ffc0ce24: 41 9e 00 8c beq- cr7,ffc0ceb0 <IMFS_evaluate_sym_link+0xd8>
ffc0ce28: 2f 80 00 5c cmpwi cr7,r0,92
ffc0ce2c: 41 9e 00 84 beq- cr7,ffc0ceb0 <IMFS_evaluate_sym_link+0xd8>
ffc0ce30: 2f 80 00 00 cmpwi cr7,r0,0
ffc0ce34: 3b a0 00 00 li r29,0
ffc0ce38: 41 9e 00 78 beq- cr7,ffc0ceb0 <IMFS_evaluate_sym_link+0xd8>
* 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] ),
ffc0ce3c: 7f ab ea 14 add r29,r11,r29
ffc0ce40: 7f a3 eb 78 mr r3,r29
ffc0ce44: 48 00 60 71 bl ffc12eb4 <strlen>
/*
* Use eval path to evaluate the path of the symbolic link.
*/
result = IMFS_eval_path(
ffc0ce48: 7f c5 f3 78 mr r5,r30
&jnode->info.sym_link.name[i],
strlen( &jnode->info.sym_link.name[i] ),
ffc0ce4c: 7c 64 1b 78 mr r4,r3
/*
* Use eval path to evaluate the path of the symbolic link.
*/
result = IMFS_eval_path(
ffc0ce50: 7f e6 fb 78 mr r6,r31
ffc0ce54: 7f a3 eb 78 mr r3,r29
ffc0ce58: 48 00 00 a5 bl ffc0cefc <IMFS_eval_path>
/*
* If all of the flags are set we have permission
* to do this.
*/
if ( ( flags_to_test & jnode->st_mode) == flags_to_test )
ffc0ce5c: 57 de 30 32 rlwinm r30,r30,6,0,25
/*
* Use eval path to evaluate the path of the symbolic link.
*/
result = IMFS_eval_path(
ffc0ce60: 7c 7d 1b 78 mr r29,r3
strlen( &jnode->info.sym_link.name[i] ),
flags,
node
);
IMFS_Set_handlers( node );
ffc0ce64: 7f e3 fb 78 mr r3,r31
ffc0ce68: 4b ff fe 25 bl ffc0cc8c <IMFS_Set_handlers>
if ( !rtems_libio_is_valid_perms( flags ) ) {
assert( 0 );
rtems_set_errno_and_return_minus_one( EIO );
}
jnode = node->node_access;
ffc0ce6c: 81 3f 00 00 lwz r9,0(r31)
ffc0ce70: 80 09 00 30 lwz r0,48(r9)
ffc0ce74: 7f c0 00 38 and r0,r30,r0
ffc0ce78: 7f 9e 00 00 cmpw cr7,r30,r0
ffc0ce7c: 41 9e 00 14 beq- cr7,ffc0ce90 <IMFS_evaluate_sym_link+0xb8>
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( node, flags ) )
rtems_set_errno_and_return_minus_one( EACCES );
ffc0ce80: 48 00 4d 39 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc0ce84: 38 00 00 0d li r0,13 <== NOT EXECUTED
ffc0ce88: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc0ce8c: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
return result;
}
ffc0ce90: 80 01 00 1c lwz r0,28(r1)
ffc0ce94: 7f a3 eb 78 mr r3,r29
ffc0ce98: 83 c1 00 10 lwz r30,16(r1)
ffc0ce9c: 7c 08 03 a6 mtlr r0
ffc0cea0: 83 a1 00 0c lwz r29,12(r1)
ffc0cea4: 83 e1 00 14 lwz r31,20(r1)
ffc0cea8: 38 21 00 18 addi r1,r1,24
ffc0ceac: 4e 80 00 20 blr
* root depending on the symbolic links path.
*/
node->node_access = jnode->Parent;
rtems_filesystem_get_sym_start_loc(
ffc0ceb0: 3d 60 00 00 lis r11,0
ffc0ceb4: 81 6b 26 9c lwz r11,9884(r11)
ffc0ceb8: 3b a0 00 01 li r29,1
ffc0cebc: 80 0b 00 24 lwz r0,36(r11)
ffc0cec0: 80 eb 00 18 lwz r7,24(r11)
ffc0cec4: 81 0b 00 1c lwz r8,28(r11)
ffc0cec8: 81 4b 00 20 lwz r10,32(r11)
ffc0cecc: 90 ff 00 00 stw r7,0(r31)
ffc0ced0: 91 1f 00 04 stw r8,4(r31)
ffc0ced4: 91 5f 00 08 stw r10,8(r31)
ffc0ced8: 90 1f 00 0c stw r0,12(r31)
ffc0cedc: 80 0b 00 28 lwz r0,40(r11)
ffc0cee0: 90 1f 00 10 stw r0,16(r31)
ffc0cee4: 81 69 00 50 lwz r11,80(r9)
ffc0cee8: 4b ff ff 54 b ffc0ce3c <IMFS_evaluate_sym_link+0x64>
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_SYM_LINK )
rtems_fatal_error_occurred (0xABCD0000);
ffc0ceec: 3c 60 ab cd lis r3,-21555 <== NOT EXECUTED
ffc0cef0: 4b ff c1 45 bl ffc09034 <rtems_fatal_error_occurred> <== NOT EXECUTED
if ( !jnode->Parent )
rtems_fatal_error_occurred( 0xBAD00000 );
ffc0cef4: 3c 60 ba d0 lis r3,-17712 <== NOT EXECUTED
ffc0cef8: 4b ff c1 3d bl ffc09034 <rtems_fatal_error_occurred> <== NOT EXECUTED
ffc0d940 <IMFS_fifo_close>:
}
int IMFS_fifo_close(
rtems_libio_t *iop
)
{
ffc0d940: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED
ffc0d944: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
int err = pipe_release(&JNODE2PIPE(jnode), iop);
ffc0d948: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED
}
int IMFS_fifo_close(
rtems_libio_t *iop
)
{
ffc0d94c: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED
ffc0d950: 93 c1 00 10 stw r30,16(r1) <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
ffc0d954: 83 c3 00 3c lwz r30,60(r3) <== NOT EXECUTED
}
int IMFS_fifo_close(
rtems_libio_t *iop
)
{
ffc0d958: 93 e1 00 14 stw r31,20(r1) <== NOT EXECUTED
ffc0d95c: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
int err = pipe_release(&JNODE2PIPE(jnode), iop);
ffc0d960: 38 7e 00 50 addi r3,r30,80 <== NOT EXECUTED
}
int IMFS_fifo_close(
rtems_libio_t *iop
)
{
ffc0d964: 93 a1 00 0c stw r29,12(r1) <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
int err = pipe_release(&JNODE2PIPE(jnode), iop);
ffc0d968: 48 00 28 19 bl ffc10180 <pipe_release> <== NOT EXECUTED
if (! err) {
ffc0d96c: 7c 7d 1b 79 mr. r29,r3 <== NOT EXECUTED
ffc0d970: 41 82 00 28 beq- ffc0d998 <IMFS_fifo_close+0x58> <== NOT EXECUTED
/* Free jnode if file is already unlinked and no one opens it */
if (! rtems_libio_is_file_open(jnode) && jnode->st_nlink < 1)
free(jnode);
}
IMFS_FIFO_RETURN(err);
ffc0d974: 41 80 00 58 blt- ffc0d9cc <IMFS_fifo_close+0x8c> <== NOT EXECUTED
}
ffc0d978: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED
ffc0d97c: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc0d980: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED
ffc0d984: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0d988: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED
ffc0d98c: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED
ffc0d990: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED
ffc0d994: 4e 80 00 20 blr <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
int err = pipe_release(&JNODE2PIPE(jnode), iop);
if (! err) {
iop->flags &= ~LIBIO_FLAGS_OPEN;
ffc0d998: 80 1f 00 18 lwz r0,24(r31) <== 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)
ffc0d99c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
int err = pipe_release(&JNODE2PIPE(jnode), iop);
if (! err) {
iop->flags &= ~LIBIO_FLAGS_OPEN;
ffc0d9a0: 54 00 06 2c rlwinm r0,r0,0,24,22 <== NOT EXECUTED
ffc0d9a4: 90 1f 00 18 stw r0,24(r31) <== 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)
ffc0d9a8: 48 00 0a 31 bl ffc0e3d8 <rtems_libio_is_file_open> <== NOT EXECUTED
ffc0d9ac: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc0d9b0: 40 be ff c8 bne- cr7,ffc0d978 <IMFS_fifo_close+0x38> <== NOT EXECUTED
ffc0d9b4: a0 1e 00 34 lhz r0,52(r30) <== NOT EXECUTED
ffc0d9b8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0d9bc: 40 9e ff bc bne+ cr7,ffc0d978 <IMFS_fifo_close+0x38> <== NOT EXECUTED
free(jnode);
ffc0d9c0: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc0d9c4: 4b ff 6c 31 bl ffc045f4 <free> <== NOT EXECUTED
ffc0d9c8: 4b ff ff b0 b ffc0d978 <IMFS_fifo_close+0x38> <== NOT EXECUTED
}
IMFS_FIFO_RETURN(err);
ffc0d9cc: 7f bd 00 d0 neg r29,r29 <== NOT EXECUTED
ffc0d9d0: 48 00 41 e9 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc0d9d4: 93 a3 00 00 stw r29,0(r3) <== NOT EXECUTED
ffc0d9d8: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
ffc0d9dc: 4b ff ff 9c b ffc0d978 <IMFS_fifo_close+0x38> <== NOT EXECUTED
ffc0d794 <IMFS_fifo_ioctl>:
int IMFS_fifo_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
ffc0d794: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED
ffc0d798: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc0d79c: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED
ffc0d7a0: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED
int err;
if (command == FIONBIO) {
ffc0d7a4: 3c 00 80 04 lis r0,-32764 <== NOT EXECUTED
ffc0d7a8: 60 00 66 7e ori r0,r0,26238 <== NOT EXECUTED
ffc0d7ac: 7f 84 00 00 cmpw cr7,r4,r0 <== NOT EXECUTED
int IMFS_fifo_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
ffc0d7b0: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED
int err;
if (command == FIONBIO) {
ffc0d7b4: 41 9e 00 2c beq- cr7,ffc0d7e0 <IMFS_fifo_ioctl+0x4c> <== NOT EXECUTED
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
return 0;
}
}
else
err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop);
ffc0d7b8: 81 23 00 3c lwz r9,60(r3) <== NOT EXECUTED
ffc0d7bc: 80 69 00 50 lwz r3,80(r9) <== NOT EXECUTED
ffc0d7c0: 48 00 24 75 bl ffc0fc34 <pipe_ioctl> <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
ffc0d7c4: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED
ffc0d7c8: 41 80 00 78 blt- ffc0d840 <IMFS_fifo_ioctl+0xac> <== NOT EXECUTED
}
ffc0d7cc: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc0d7d0: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc0d7d4: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc0d7d8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0d7dc: 4e 80 00 20 blr <== NOT EXECUTED
)
{
int err;
if (command == FIONBIO) {
if (buffer == NULL)
ffc0d7e0: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED
ffc0d7e4: 3b e0 00 0e li r31,14 <== NOT EXECUTED
ffc0d7e8: 41 9e 00 5c beq- cr7,ffc0d844 <IMFS_fifo_ioctl+0xb0> <== NOT EXECUTED
err = -EFAULT;
else {
if (*(int *)buffer)
ffc0d7ec: 80 05 00 00 lwz r0,0(r5) <== NOT EXECUTED
ffc0d7f0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0d7f4: 41 9e 00 28 beq- cr7,ffc0d81c <IMFS_fifo_ioctl+0x88> <== NOT EXECUTED
iop->flags |= LIBIO_FLAGS_NO_DELAY;
ffc0d7f8: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED
ffc0d7fc: 38 60 00 00 li r3,0 <== NOT EXECUTED
}
else
err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop);
IMFS_FIFO_RETURN(err);
}
ffc0d800: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
if (command == FIONBIO) {
if (buffer == NULL)
err = -EFAULT;
else {
if (*(int *)buffer)
iop->flags |= LIBIO_FLAGS_NO_DELAY;
ffc0d804: 60 00 00 01 ori r0,r0,1 <== NOT EXECUTED
ffc0d808: 90 06 00 18 stw r0,24(r6) <== NOT EXECUTED
}
else
err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop);
IMFS_FIFO_RETURN(err);
}
ffc0d80c: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc0d810: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc0d814: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0d818: 4e 80 00 20 blr <== NOT EXECUTED
err = -EFAULT;
else {
if (*(int *)buffer)
iop->flags |= LIBIO_FLAGS_NO_DELAY;
else
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
ffc0d81c: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED
ffc0d820: 38 60 00 00 li r3,0 <== NOT EXECUTED
}
else
err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop);
IMFS_FIFO_RETURN(err);
}
ffc0d824: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
err = -EFAULT;
else {
if (*(int *)buffer)
iop->flags |= LIBIO_FLAGS_NO_DELAY;
else
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
ffc0d828: 54 00 00 3c rlwinm r0,r0,0,0,30 <== NOT EXECUTED
ffc0d82c: 90 06 00 18 stw r0,24(r6) <== NOT EXECUTED
}
else
err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop);
IMFS_FIFO_RETURN(err);
}
ffc0d830: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc0d834: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc0d838: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0d83c: 4e 80 00 20 blr <== NOT EXECUTED
}
}
else
err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop);
IMFS_FIFO_RETURN(err);
ffc0d840: 7f e3 00 d0 neg r31,r3 <== NOT EXECUTED
ffc0d844: 48 00 43 75 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc0d848: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED
ffc0d84c: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc0d850: 4b ff ff 7c b ffc0d7cc <IMFS_fifo_ioctl+0x38> <== NOT EXECUTED
ffc0d72c <IMFS_fifo_lseek>:
rtems_off64_t IMFS_fifo_lseek(
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
ffc0d72c: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED
ffc0d730: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc0d734: 7c 68 1b 78 mr r8,r3 <== NOT EXECUTED
ffc0d738: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED
ffc0d73c: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED
off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);
ffc0d740: 81 23 00 3c lwz r9,60(r3) <== NOT EXECUTED
ffc0d744: 80 69 00 50 lwz r3,80(r9) <== NOT EXECUTED
ffc0d748: 48 00 24 65 bl ffc0fbac <pipe_lseek> <== NOT EXECUTED
ffc0d74c: 7c 69 fe 70 srawi r9,r3,31 <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
ffc0d750: 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);
ffc0d754: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED
ffc0d758: 7c 6a 1b 78 mr r10,r3 <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
ffc0d75c: 41 9c 00 20 blt- cr7,ffc0d77c <IMFS_fifo_lseek+0x50> <== NOT EXECUTED
}
ffc0d760: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc0d764: 7d 44 53 78 mr r4,r10 <== NOT EXECUTED
ffc0d768: 7d 23 4b 78 mr r3,r9 <== NOT EXECUTED
ffc0d76c: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc0d770: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0d774: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc0d778: 4e 80 00 20 blr <== NOT EXECUTED
rtems_off64_t offset,
int whence
)
{
off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);
IMFS_FIFO_RETURN(err);
ffc0d77c: 48 00 44 3d bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc0d780: 7f ff 00 d0 neg r31,r31 <== NOT EXECUTED
ffc0d784: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED
ffc0d788: 39 20 ff ff li r9,-1 <== NOT EXECUTED
ffc0d78c: 39 40 ff ff li r10,-1 <== NOT EXECUTED
ffc0d790: 4b ff ff d0 b ffc0d760 <IMFS_fifo_lseek+0x34> <== NOT EXECUTED
ffc0d8cc <IMFS_fifo_read>:
ssize_t IMFS_fifo_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
ffc0d8cc: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED
ffc0d8d0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc0d8d4: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED
ffc0d8d8: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED
ffc0d8dc: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED
ffc0d8e0: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
ffc0d8e4: 83 e3 00 3c lwz r31,60(r3) <== NOT EXECUTED
int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop);
ffc0d8e8: 80 7f 00 50 lwz r3,80(r31) <== NOT EXECUTED
ffc0d8ec: 48 00 26 41 bl ffc0ff2c <pipe_read> <== NOT EXECUTED
if (err > 0)
ffc0d8f0: 7c 7e 1b 79 mr. r30,r3 <== NOT EXECUTED
ffc0d8f4: 40 81 00 34 ble- ffc0d928 <IMFS_fifo_read+0x5c> <== NOT EXECUTED
IMFS_update_atime(jnode);
ffc0d8f8: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED
ffc0d8fc: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc0d900: 48 00 09 e9 bl ffc0e2e8 <gettimeofday> <== NOT EXECUTED
ffc0d904: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED
ffc0d908: 90 1f 00 40 stw r0,64(r31) <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
}
ffc0d90c: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED
ffc0d910: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc0d914: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED
ffc0d918: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0d91c: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED
ffc0d920: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED
ffc0d924: 4e 80 00 20 blr <== NOT EXECUTED
int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop);
if (err > 0)
IMFS_update_atime(jnode);
IMFS_FIFO_RETURN(err);
ffc0d928: 41 82 ff e4 beq+ ffc0d90c <IMFS_fifo_read+0x40> <== NOT EXECUTED
ffc0d92c: 7f de 00 d0 neg r30,r30 <== NOT EXECUTED
ffc0d930: 48 00 42 89 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc0d934: 93 c3 00 00 stw r30,0(r3) <== NOT EXECUTED
ffc0d938: 3b c0 ff ff li r30,-1 <== NOT EXECUTED
ffc0d93c: 4b ff ff d0 b ffc0d90c <IMFS_fifo_read+0x40> <== NOT EXECUTED
ffc0d854 <IMFS_fifo_write>:
ssize_t IMFS_fifo_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
ffc0d854: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED
ffc0d858: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc0d85c: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED
ffc0d860: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED
ffc0d864: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED
ffc0d868: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
ffc0d86c: 83 e3 00 3c lwz r31,60(r3) <== NOT EXECUTED
int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop);
ffc0d870: 80 7f 00 50 lwz r3,80(r31) <== NOT EXECUTED
ffc0d874: 48 00 24 49 bl ffc0fcbc <pipe_write> <== NOT EXECUTED
if (err > 0) {
ffc0d878: 7c 7e 1b 79 mr. r30,r3 <== NOT EXECUTED
ffc0d87c: 40 81 00 38 ble- ffc0d8b4 <IMFS_fifo_write+0x60> <== NOT EXECUTED
IMFS_mtime_ctime_update(jnode);
ffc0d880: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED
ffc0d884: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc0d888: 48 00 0a 61 bl ffc0e2e8 <gettimeofday> <== NOT EXECUTED
ffc0d88c: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED
ffc0d890: 90 1f 00 48 stw r0,72(r31) <== NOT EXECUTED
ffc0d894: 90 1f 00 44 stw r0,68(r31) <== NOT EXECUTED
}
IMFS_FIFO_RETURN(err);
}
ffc0d898: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED
ffc0d89c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc0d8a0: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED
ffc0d8a4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0d8a8: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED
ffc0d8ac: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED
ffc0d8b0: 4e 80 00 20 blr <== NOT EXECUTED
int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop);
if (err > 0) {
IMFS_mtime_ctime_update(jnode);
}
IMFS_FIFO_RETURN(err);
ffc0d8b4: 41 82 ff e4 beq+ ffc0d898 <IMFS_fifo_write+0x44> <== NOT EXECUTED
ffc0d8b8: 7f de 00 d0 neg r30,r30 <== NOT EXECUTED
ffc0d8bc: 48 00 42 fd bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc0d8c0: 93 c3 00 00 stw r30,0(r3) <== NOT EXECUTED
ffc0d8c4: 3b c0 ff ff li r30,-1 <== NOT EXECUTED
ffc0d8c8: 4b ff ff d0 b ffc0d898 <IMFS_fifo_write+0x44> <== NOT EXECUTED
ffc0da34 <IMFS_find_match_in_dir>:
IMFS_jnode_t *IMFS_find_match_in_dir(
IMFS_jnode_t *directory,
char *name
)
{
ffc0da34: 94 21 ff e8 stwu r1,-24(r1)
ffc0da38: 7c 08 02 a6 mflr r0
ffc0da3c: 93 c1 00 10 stw r30,16(r1)
/*
* Check for fatal errors. A NULL directory show a problem in the
* the IMFS code.
*/
assert( directory );
ffc0da40: 7c 7e 1b 79 mr. r30,r3
IMFS_jnode_t *IMFS_find_match_in_dir(
IMFS_jnode_t *directory,
char *name
)
{
ffc0da44: 93 e1 00 14 stw r31,20(r1)
ffc0da48: 7c 9f 23 78 mr r31,r4
ffc0da4c: 90 01 00 1c stw r0,28(r1)
ffc0da50: 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 );
ffc0da54: 41 82 00 c0 beq- ffc0db14 <IMFS_find_match_in_dir+0xe0>
if ( !name )
ffc0da58: 2f 84 00 00 cmpwi cr7,r4,0
ffc0da5c: 41 9e 00 58 beq- cr7,ffc0dab4 <IMFS_find_match_in_dir+0x80>
/*
* Check for "." and ".."
*/
if ( !strcmp( name, dotname ) )
ffc0da60: 3f a0 ff c2 lis r29,-62
ffc0da64: 3b bd e1 40 addi r29,r29,-7872
ffc0da68: 7c 83 23 78 mr r3,r4
ffc0da6c: 38 9d 00 18 addi r4,r29,24
ffc0da70: 48 00 53 25 bl ffc12d94 <strcmp>
ffc0da74: 2f 83 00 00 cmpwi cr7,r3,0
ffc0da78: 41 9e 00 1c beq- cr7,ffc0da94 <IMFS_find_match_in_dir+0x60>
return directory;
if ( !strcmp( name, dotdotname ) )
ffc0da7c: 38 9d 00 1c addi r4,r29,28
ffc0da80: 7f e3 fb 78 mr r3,r31
ffc0da84: 48 00 53 11 bl ffc12d94 <strcmp>
ffc0da88: 2f 83 00 00 cmpwi cr7,r3,0
ffc0da8c: 40 9e 00 4c bne- cr7,ffc0dad8 <IMFS_find_match_in_dir+0xa4>
return directory->Parent;
ffc0da90: 83 de 00 08 lwz r30,8(r30) <== NOT EXECUTED
if ( !strcmp( name, the_jnode->name ) )
return the_jnode;
}
return 0;
}
ffc0da94: 80 01 00 1c lwz r0,28(r1)
ffc0da98: 7f c3 f3 78 mr r3,r30
ffc0da9c: 83 a1 00 0c lwz r29,12(r1)
ffc0daa0: 7c 08 03 a6 mtlr r0
ffc0daa4: 83 c1 00 10 lwz r30,16(r1)
ffc0daa8: 83 e1 00 14 lwz r31,20(r1)
ffc0daac: 38 21 00 18 addi r1,r1,24
ffc0dab0: 4e 80 00 20 blr
ffc0dab4: 80 01 00 1c lwz r0,28(r1)
if ( !strcmp( name, dotdotname ) )
return directory->Parent;
the_chain = &directory->info.directory.Entries;
for ( the_node = the_chain->first;
ffc0dab8: 3b c0 00 00 li r30,0
if ( !strcmp( name, the_jnode->name ) )
return the_jnode;
}
return 0;
}
ffc0dabc: 7f c3 f3 78 mr r3,r30
ffc0dac0: 83 a1 00 0c lwz r29,12(r1)
ffc0dac4: 7c 08 03 a6 mtlr r0
ffc0dac8: 83 c1 00 10 lwz r30,16(r1)
ffc0dacc: 83 e1 00 14 lwz r31,20(r1)
ffc0dad0: 38 21 00 18 addi r1,r1,24
ffc0dad4: 4e 80 00 20 blr
if ( !strcmp( name, dotdotname ) )
return directory->Parent;
the_chain = &directory->info.directory.Entries;
for ( the_node = the_chain->first;
ffc0dad8: 83 be 00 50 lwz r29,80(r30)
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
ffc0dadc: 3b de 00 54 addi r30,r30,84
ffc0dae0: 7f 9d f0 00 cmpw cr7,r29,r30
ffc0dae4: 40 be 00 14 bne+ cr7,ffc0daf8 <IMFS_find_match_in_dir+0xc4>
ffc0dae8: 4b ff ff cc b ffc0dab4 <IMFS_find_match_in_dir+0x80>
!rtems_chain_is_tail( the_chain, the_node );
the_node = the_node->next ) {
ffc0daec: 83 bd 00 00 lwz r29,0(r29)
if ( !strcmp( name, dotdotname ) )
return directory->Parent;
the_chain = &directory->info.directory.Entries;
for ( the_node = the_chain->first;
ffc0daf0: 7f 9d f0 00 cmpw cr7,r29,r30
ffc0daf4: 41 be ff c0 beq- cr7,ffc0dab4 <IMFS_find_match_in_dir+0x80>
!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 ) )
ffc0daf8: 7f e3 fb 78 mr r3,r31
ffc0dafc: 38 9d 00 0c addi r4,r29,12
ffc0db00: 48 00 52 95 bl ffc12d94 <strcmp>
ffc0db04: 2f 83 00 00 cmpwi cr7,r3,0
ffc0db08: 40 9e ff e4 bne+ cr7,ffc0daec <IMFS_find_match_in_dir+0xb8>
ffc0db0c: 7f be eb 78 mr r30,r29
ffc0db10: 4b ff ff 84 b ffc0da94 <IMFS_find_match_in_dir+0x60>
/*
* Check for fatal errors. A NULL directory show a problem in the
* the IMFS code.
*/
assert( directory );
ffc0db14: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc0db18: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc0db1c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc0db20: 38 63 e1 60 addi r3,r3,-7840 <== NOT EXECUTED
ffc0db24: 38 a5 e1 40 addi r5,r5,-7872 <== NOT EXECUTED
ffc0db28: 38 c6 e1 ac addi r6,r6,-7764 <== NOT EXECUTED
ffc0db2c: 38 80 00 2a li r4,42 <== NOT EXECUTED
ffc0db30: 4b ff 65 dd bl ffc0410c <__assert_func> <== NOT EXECUTED
ffc13ec4 <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
)
{
ffc13ec4: 94 21 ff c8 stwu r1,-56(r1)
ffc13ec8: 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;
ffc13ecc: 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
)
{
ffc13ed0: 90 01 00 3c stw r0,60(r1)
ffc13ed4: 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;
ffc13ed8: 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;
ffc13edc: 83 a3 00 1c lwz r29,28(r3)
loc = temp_mt_entry->mt_fs_root;
ffc13ee0: 81 63 00 24 lwz r11,36(r3)
ffc13ee4: 81 23 00 28 lwz r9,40(r3)
ffc13ee8: 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;
ffc13eec: 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
)
{
ffc13ef0: 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;
ffc13ef4: 91 41 00 0c stw r10,12(r1)
ffc13ef8: 91 61 00 10 stw r11,16(r1)
ffc13efc: 91 21 00 14 stw r9,20(r1)
ffc13f00: 90 01 00 18 stw r0,24(r1)
ffc13f04: 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
)
{
ffc13f08: 93 e1 00 34 stw r31,52(r1)
ffc13f0c: 3b e1 00 08 addi r31,r1,8
temp_mt_entry->mt_fs_root.node_access = NULL;
do {
next = jnode->Parent;
loc.node_access = (void *)jnode;
IMFS_Set_handlers( &loc );
ffc13f10: 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;
ffc13f14: 93 a1 00 08 stw r29,8(r1)
*/
temp_mt_entry->mt_fs_root.node_access = NULL;
do {
next = jnode->Parent;
ffc13f18: 83 dd 00 08 lwz r30,8(r29)
loc.node_access = (void *)jnode;
IMFS_Set_handlers( &loc );
ffc13f1c: 4b ff f1 f9 bl ffc13114 <IMFS_Set_handlers>
if ( jnode->type != IMFS_DIRECTORY ) {
ffc13f20: 80 1d 00 4c lwz r0,76(r29)
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
ffc13f24: 39 3d 00 54 addi r9,r29,84
ffc13f28: 2f 80 00 01 cmpwi cr7,r0,1
ffc13f2c: 40 9e 00 60 bne- cr7,ffc13f8c <IMFS_fsunmount+0xc8>
ffc13f30: 80 1d 00 50 lwz r0,80(r29)
ffc13f34: 7f 80 48 00 cmpw cr7,r0,r9
ffc13f38: 41 9e 00 54 beq- cr7,ffc13f8c <IMFS_fsunmount+0xc8>
result = IMFS_unlink( NULL, &loc );
if (result != 0)
return -1;
jnode = next;
}
if ( jnode != NULL ) {
ffc13f3c: 2f 9d 00 00 cmpwi cr7,r29,0
ffc13f40: 41 9e 00 2c beq- cr7,ffc13f6c <IMFS_fsunmount+0xa8>
if ( jnode->type == IMFS_DIRECTORY ) {
ffc13f44: 80 1d 00 4c lwz r0,76(r29)
ffc13f48: 2f 80 00 01 cmpwi cr7,r0,1
ffc13f4c: 40 9e ff c4 bne+ cr7,ffc13f10 <IMFS_fsunmount+0x4c>
ffc13f50: 80 1d 00 50 lwz r0,80(r29)
ffc13f54: 39 3d 00 54 addi r9,r29,84
ffc13f58: 7f 80 48 00 cmpw cr7,r0,r9
ffc13f5c: 41 be ff b4 beq- cr7,ffc13f10 <IMFS_fsunmount+0x4c>
if ( jnode_has_children( jnode ) )
jnode = jnode_get_first_child( jnode );
}
}
} while (jnode != NULL);
ffc13f60: 2f 80 00 00 cmpwi cr7,r0,0
ffc13f64: 7c 1d 03 78 mr r29,r0
ffc13f68: 40 9e ff a8 bne+ cr7,ffc13f10 <IMFS_fsunmount+0x4c>
ffc13f6c: 38 60 00 00 li r3,0
return 0;
}
ffc13f70: 80 01 00 3c lwz r0,60(r1)
ffc13f74: 83 a1 00 2c lwz r29,44(r1)
ffc13f78: 7c 08 03 a6 mtlr r0
ffc13f7c: 83 c1 00 30 lwz r30,48(r1)
ffc13f80: 83 e1 00 34 lwz r31,52(r1)
ffc13f84: 38 21 00 38 addi r1,r1,56
ffc13f88: 4e 80 00 20 blr
result = IMFS_unlink( NULL, &loc );
if (result != 0)
return -1;
jnode = next;
} else if ( jnode_has_no_children( jnode ) ) {
result = IMFS_unlink( NULL, &loc );
ffc13f8c: 38 60 00 00 li r3,0
ffc13f90: 7f e4 fb 78 mr r4,r31
ffc13f94: 4b ff 17 ed bl ffc05780 <IMFS_unlink>
if (result != 0)
ffc13f98: 2f 83 00 00 cmpwi cr7,r3,0
ffc13f9c: 40 9e 00 0c bne- cr7,ffc13fa8 <IMFS_fsunmount+0xe4>
ffc13fa0: 7f dd f3 78 mr r29,r30
ffc13fa4: 4b ff ff 98 b ffc13f3c <IMFS_fsunmount+0x78>
if ( jnode->type == IMFS_DIRECTORY ) {
if ( jnode_has_children( jnode ) )
jnode = jnode_get_first_child( jnode );
}
}
} while (jnode != NULL);
ffc13fa8: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc13fac: 4b ff ff c4 b ffc13f70 <IMFS_fsunmount+0xac> <== NOT EXECUTED
ffc0dc68 <IMFS_initialize_support>:
rtems_filesystem_mount_table_entry_t *temp_mt_entry,
const rtems_filesystem_operations_table *op_table,
const rtems_filesystem_file_handlers_r *memfile_handlers,
const rtems_filesystem_file_handlers_r *directory_handlers
)
{
ffc0dc68: 94 21 ff e8 stwu r1,-24(r1)
ffc0dc6c: 7c 08 02 a6 mflr r0
IMFS_jnode_t *jnode;
/*
* determine/check value for imfs_memfile_bytes_per_block
*/
IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block,
ffc0dc70: 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
)
{
ffc0dc74: 90 01 00 1c stw r0,28(r1)
IMFS_jnode_t *jnode;
/*
* determine/check value for imfs_memfile_bytes_per_block
*/
IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block,
ffc0dc78: 80 09 26 50 lwz r0,9808(r9)
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
)
{
ffc0dc7c: 93 81 00 08 stw r28,8(r1)
ffc0dc80: 7c 9c 23 78 mr r28,r4
int bit_mask;
/*
* check, whether requested bytes per block is valid
*/
for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
ffc0dc84: 2f 80 00 10 cmpwi cr7,r0,16
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
)
{
ffc0dc88: 93 a1 00 0c stw r29,12(r1)
ffc0dc8c: 7c dd 33 78 mr r29,r6
ffc0dc90: 93 c1 00 10 stw r30,16(r1)
ffc0dc94: 7c be 2b 78 mr r30,r5
ffc0dc98: 93 e1 00 14 stw r31,20(r1)
ffc0dc9c: 7c 7f 1b 78 mr r31,r3
int bit_mask;
/*
* check, whether requested bytes per block is valid
*/
for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
ffc0dca0: 41 9e 00 24 beq- cr7,ffc0dcc4 <IMFS_initialize_support+0x5c>
ffc0dca4: 39 60 00 05 li r11,5
ffc0dca8: 7d 69 03 a6 mtctr r11
ffc0dcac: 39 20 00 20 li r9,32
ffc0dcb0: 7f 80 48 00 cmpw cr7,r0,r9
ffc0dcb4: 55 29 08 3c rlwinm r9,r9,1,0,30
ffc0dcb8: 41 9e 00 0c beq- cr7,ffc0dcc4 <IMFS_initialize_support+0x5c>
ffc0dcbc: 42 00 ff f4 bdnz+ ffc0dcb0 <IMFS_initialize_support+0x48>
ffc0dcc0: 38 00 00 80 li r0,128 <== NOT EXECUTED
if (bit_mask == requested_bytes_per_block) {
is_valid = true;
}
}
*dest_bytes_per_block = ((is_valid)
ffc0dcc4: 3d 20 00 00 lis r9,0
ffc0dcc8: 90 09 27 9c stw r0,10140(r9)
/*
* 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();
ffc0dccc: 48 00 2a e9 bl ffc107b4 <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;
ffc0dcd0: 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();
ffc0dcd4: 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;
ffc0dcd8: 38 84 e3 30 addi r4,r4,-7376
ffc0dcdc: 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;
ffc0dce0: 93 9f 00 28 stw r28,40(r31)
temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS;
ffc0dce4: 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;
ffc0dce8: 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;
ffc0dcec: 48 00 4a b5 bl ffc127a0 <memcpy>
/*
* Create custom file system data.
*/
fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) );
ffc0dcf0: 38 60 00 01 li r3,1
ffc0dcf4: 38 80 00 10 li r4,16
ffc0dcf8: 48 00 03 81 bl ffc0e078 <calloc>
if ( !fs_info ) {
ffc0dcfc: 2c 03 00 00 cmpwi r3,0
ffc0dd00: 41 82 00 5c beq- ffc0dd5c <IMFS_initialize_support+0xf4>
/*
* Set st_ino for the root to 1.
*/
fs_info->instance = imfs_instance++;
ffc0dd04: 3d 20 00 00 lis r9,0
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;
ffc0dd08: 81 1f 00 1c lwz r8,28(r31)
/*
* Set st_ino for the root to 1.
*/
fs_info->instance = imfs_instance++;
ffc0dd0c: 81 69 28 f8 lwz r11,10488(r9)
fs_info->ino_count = 1;
ffc0dd10: 38 00 00 01 li r0,1
ffc0dd14: 90 03 00 04 stw r0,4(r3)
/*
* Set st_ino for the root to 1.
*/
fs_info->instance = imfs_instance++;
ffc0dd18: 39 4b 00 01 addi r10,r11,1
ffc0dd1c: 91 63 00 00 stw r11,0(r3)
fs_info->ino_count = 1;
fs_info->memfile_handlers = memfile_handlers;
fs_info->directory_handlers = directory_handlers;
ffc0dd20: 93 a3 00 0c stw r29,12(r3)
* Set st_ino for the root to 1.
*/
fs_info->instance = imfs_instance++;
fs_info->ino_count = 1;
fs_info->memfile_handlers = memfile_handlers;
ffc0dd24: 93 c3 00 08 stw r30,8(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;
ffc0dd28: 90 7f 00 34 stw r3,52(r31)
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;
ffc0dd2c: 90 08 00 38 stw r0,56(r8)
/*
* Set st_ino for the root to 1.
*/
fs_info->instance = imfs_instance++;
ffc0dd30: 91 49 28 f8 stw r10,10488(r9)
jnode = temp_mt_entry->mt_fs_root.node_access;
jnode->st_ino = fs_info->ino_count;
/* Initialize POSIX FIFO/pipe module */
rtems_pipe_initialize();
ffc0dd34: 48 00 1e 81 bl ffc0fbb4 <rtems_pipe_initialize>
ffc0dd38: 38 60 00 00 li r3,0
return 0;
}
ffc0dd3c: 80 01 00 1c lwz r0,28(r1)
ffc0dd40: 83 81 00 08 lwz r28,8(r1)
ffc0dd44: 7c 08 03 a6 mtlr r0
ffc0dd48: 83 a1 00 0c lwz r29,12(r1)
ffc0dd4c: 83 c1 00 10 lwz r30,16(r1)
ffc0dd50: 83 e1 00 14 lwz r31,20(r1)
ffc0dd54: 38 21 00 18 addi r1,r1,24
ffc0dd58: 4e 80 00 20 blr
/*
* Create custom file system data.
*/
fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) );
if ( !fs_info ) {
free(temp_mt_entry->mt_fs_root.node_access);
ffc0dd5c: 80 7f 00 1c lwz r3,28(r31) <== NOT EXECUTED
ffc0dd60: 4b ff 68 95 bl ffc045f4 <free> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
ffc0dd64: 48 00 3e 55 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc0dd68: 38 00 00 0c li r0,12 <== NOT EXECUTED
ffc0dd6c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc0dd70: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc0dd74: 4b ff ff c8 b ffc0dd3c <IMFS_initialize_support+0xd4><== NOT EXECUTED
ffc05358 <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 */
)
{
ffc05358: 94 21 ff 98 stwu r1,-104(r1)
ffc0535c: 7c 08 02 a6 mflr r0
ffc05360: 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;
ffc05364: 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 */
)
{
ffc05368: 93 a1 00 5c stw r29,92(r1)
ffc0536c: 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;
ffc05370: 91 21 00 18 stw r9,24(r1)
if ( info.hard_link.link_node->st_nlink >= LINK_MAX )
ffc05374: 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 */
)
{
ffc05378: 93 c1 00 60 stw r30,96(r1)
ffc0537c: 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 )
ffc05380: 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 */
)
{
ffc05384: 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 )
ffc05388: 41 9d 00 90 bgt- cr7,ffc05418 <IMFS_link+0xc0>
rtems_set_errno_and_return_minus_one( EMLINK );
/*
* Remove any separators at the end of the string.
*/
IMFS_get_token( token, strlen( token ), new_name, &i );
ffc0538c: 7c a3 2b 78 mr r3,r5
ffc05390: 48 01 46 41 bl ffc199d0 <strlen>
ffc05394: 3b e1 00 30 addi r31,r1,48
ffc05398: 7c 64 1b 78 mr r4,r3
ffc0539c: 7f e5 fb 78 mr r5,r31
ffc053a0: 38 c1 00 08 addi r6,r1,8
ffc053a4: 7f a3 eb 78 mr r3,r29
ffc053a8: 48 00 ed 09 bl ffc140b0 <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(
ffc053ac: 38 c0 00 00 li r6,0
ffc053b0: 7f c3 f3 78 mr r3,r30
ffc053b4: 7f e5 fb 78 mr r5,r31
ffc053b8: 60 c6 a1 ff ori r6,r6,41471
ffc053bc: 38 80 00 03 li r4,3
ffc053c0: 38 e1 00 18 addi r7,r1,24
ffc053c4: 48 00 db cd bl ffc12f90 <IMFS_create_node>
new_name,
( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),
&info
);
if ( !new_node )
ffc053c8: 2f 83 00 00 cmpwi cr7,r3,0
ffc053cc: 41 9e 00 60 beq- cr7,ffc0542c <IMFS_link+0xd4>
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++;
ffc053d0: 81 21 00 18 lwz r9,24(r1)
IMFS_update_ctime( info.hard_link.link_node );
ffc053d4: 38 61 00 0c addi r3,r1,12
ffc053d8: 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++;
ffc053dc: a1 69 00 34 lhz r11,52(r9)
ffc053e0: 38 0b 00 01 addi r0,r11,1
ffc053e4: b0 09 00 34 sth r0,52(r9)
IMFS_update_ctime( info.hard_link.link_node );
ffc053e8: 48 00 0d 29 bl ffc06110 <gettimeofday>
ffc053ec: 80 01 00 0c lwz r0,12(r1)
ffc053f0: 81 21 00 18 lwz r9,24(r1)
ffc053f4: 38 60 00 00 li r3,0
ffc053f8: 90 09 00 48 stw r0,72(r9)
return 0;
}
ffc053fc: 80 01 00 6c lwz r0,108(r1)
ffc05400: 83 a1 00 5c lwz r29,92(r1)
ffc05404: 7c 08 03 a6 mtlr r0
ffc05408: 83 c1 00 60 lwz r30,96(r1)
ffc0540c: 83 e1 00 64 lwz r31,100(r1)
ffc05410: 38 21 00 68 addi r1,r1,104
ffc05414: 4e 80 00 20 blr
/*
* Verify this node can be linked to.
*/
info.hard_link.link_node = to_loc->node_access;
if ( info.hard_link.link_node->st_nlink >= LINK_MAX )
rtems_set_errno_and_return_minus_one( EMLINK );
ffc05418: 48 01 32 f9 bl ffc18710 <__errno>
ffc0541c: 38 00 00 1f li r0,31
ffc05420: 90 03 00 00 stw r0,0(r3)
ffc05424: 38 60 ff ff li r3,-1
ffc05428: 4b ff ff d4 b ffc053fc <IMFS_link+0xa4>
( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),
&info
);
if ( !new_node )
rtems_set_errno_and_return_minus_one( ENOMEM );
ffc0542c: 48 01 32 e5 bl ffc18710 <__errno> <== NOT EXECUTED
ffc05430: 38 00 00 0c li r0,12 <== NOT EXECUTED
ffc05434: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc05438: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc0543c: 4b ff ff c0 b ffc053fc <IMFS_link+0xa4> <== NOT EXECUTED
ffc16b70 <IMFS_memfile_addblock>:
)
{
block_p memory;
block_p *block_entry_ptr;
assert( the_jnode );
ffc16b70: 7c 69 1b 79 mr. r9,r3
MEMFILE_STATIC int IMFS_memfile_addblock(
IMFS_jnode_t *the_jnode,
unsigned int block
)
{
ffc16b74: 94 21 ff f0 stwu r1,-16(r1)
ffc16b78: 7c 08 02 a6 mflr r0
ffc16b7c: 93 e1 00 0c stw r31,12(r1)
ffc16b80: 90 01 00 14 stw r0,20(r1)
block_p memory;
block_p *block_entry_ptr;
assert( the_jnode );
ffc16b84: 41 82 00 5c beq- ffc16be0 <IMFS_memfile_addblock+0x70>
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
ffc16b88: 80 09 00 4c lwz r0,76(r9)
ffc16b8c: 2f 80 00 05 cmpwi cr7,r0,5
ffc16b90: 40 9e 00 74 bne- cr7,ffc16c04 <IMFS_memfile_addblock+0x94>
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 );
ffc16b94: 38 a0 00 01 li r5,1
ffc16b98: 4b ff f8 e1 bl ffc16478 <IMFS_memfile_get_block_pointer>
if ( *block_entry_ptr )
ffc16b9c: 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 );
ffc16ba0: 7c 7f 1b 78 mr r31,r3
if ( *block_entry_ptr )
ffc16ba4: 38 60 00 00 li r3,0
ffc16ba8: 2f 80 00 00 cmpwi cr7,r0,0
ffc16bac: 41 9e 00 18 beq- cr7,ffc16bc4 <IMFS_memfile_addblock+0x54>
if ( !memory )
return 1;
*block_entry_ptr = memory;
return 0;
}
ffc16bb0: 80 01 00 14 lwz r0,20(r1)
ffc16bb4: 83 e1 00 0c lwz r31,12(r1)
ffc16bb8: 38 21 00 10 addi r1,r1,16
ffc16bbc: 7c 08 03 a6 mtlr r0
ffc16bc0: 4e 80 00 20 blr
#if 0
fprintf(stdout, "%d %p", block, block_entry_ptr );
fflush(stdout);
#endif
memory = memfile_alloc_block();
ffc16bc4: 4b ff f8 71 bl ffc16434 <memfile_alloc_block>
if ( !memory )
ffc16bc8: 7c 60 1b 79 mr. r0,r3
ffc16bcc: 38 60 00 01 li r3,1
ffc16bd0: 41 a2 ff e0 beq- ffc16bb0 <IMFS_memfile_addblock+0x40>
return 1;
*block_entry_ptr = memory;
ffc16bd4: 90 1f 00 00 stw r0,0(r31)
ffc16bd8: 38 60 00 00 li r3,0
return 0;
ffc16bdc: 4b ff ff d4 b ffc16bb0 <IMFS_memfile_addblock+0x40>
)
{
block_p memory;
block_p *block_entry_ptr;
assert( the_jnode );
ffc16be0: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc16be4: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc16be8: 38 a5 55 50 addi r5,r5,21840 <== NOT EXECUTED
ffc16bec: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc16bf0: 38 63 56 14 addi r3,r3,22036 <== NOT EXECUTED
ffc16bf4: 38 a5 00 70 addi r5,r5,112 <== NOT EXECUTED
ffc16bf8: 38 c6 56 5c addi r6,r6,22108 <== NOT EXECUTED
ffc16bfc: 38 80 01 69 li r4,361 <== NOT EXECUTED
ffc16c00: 4b fe ee e9 bl ffc05ae8 <__assert_func> <== NOT EXECUTED
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
ffc16c04: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc16c08: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc16c0c: 38 a5 55 50 addi r5,r5,21840 <== NOT EXECUTED
ffc16c10: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc16c14: 38 63 56 14 addi r3,r3,22036 <== NOT EXECUTED
ffc16c18: 38 a5 00 70 addi r5,r5,112 <== NOT EXECUTED
ffc16c1c: 38 c6 56 68 addi r6,r6,22120 <== NOT EXECUTED
ffc16c20: 38 80 01 6d li r4,365 <== NOT EXECUTED
ffc16c24: 4b fe ee c5 bl ffc05ae8 <__assert_func> <== NOT EXECUTED
ffc16c28 <IMFS_memfile_extend>:
MEMFILE_STATIC int IMFS_memfile_extend(
IMFS_jnode_t *the_jnode,
off_t new_length
)
{
ffc16c28: 94 21 ff d8 stwu r1,-40(r1)
ffc16c2c: 7c 08 02 a6 mflr r0
ffc16c30: 93 e1 00 24 stw r31,36(r1)
/*
* Perform internal consistency checks
*/
assert( the_jnode );
ffc16c34: 7c 7f 1b 79 mr. r31,r3
MEMFILE_STATIC int IMFS_memfile_extend(
IMFS_jnode_t *the_jnode,
off_t new_length
)
{
ffc16c38: 93 41 00 10 stw r26,16(r1)
ffc16c3c: 7c da 33 78 mr r26,r6
ffc16c40: 93 81 00 18 stw r28,24(r1)
ffc16c44: 7c bc 2b 78 mr r28,r5
ffc16c48: 90 01 00 2c stw r0,44(r1)
ffc16c4c: 93 01 00 08 stw r24,8(r1)
ffc16c50: 93 21 00 0c stw r25,12(r1)
ffc16c54: 93 61 00 14 stw r27,20(r1)
ffc16c58: 93 a1 00 1c stw r29,28(r1)
ffc16c5c: 93 c1 00 20 stw r30,32(r1)
/*
* Perform internal consistency checks
*/
assert( the_jnode );
ffc16c60: 41 82 01 d0 beq- ffc16e30 <IMFS_memfile_extend+0x208>
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
ffc16c64: 80 1f 00 4c lwz r0,76(r31)
ffc16c68: 2f 80 00 05 cmpwi cr7,r0,5
ffc16c6c: 40 9e 01 a0 bne- cr7,ffc16e0c <IMFS_memfile_extend+0x1e4>
if ( the_jnode->type != IMFS_MEMORY_FILE )
rtems_set_errno_and_return_minus_one( EIO );
if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )
ffc16c70: 3d 20 00 00 lis r9,0
ffc16c74: 83 a9 27 24 lwz r29,10020(r9)
ffc16c78: 38 00 00 00 li r0,0
ffc16c7c: 7f 80 28 00 cmpw cr7,r0,r5
ffc16c80: 57 a9 f0 be rlwinm r9,r29,30,2,31
ffc16c84: 39 69 00 01 addi r11,r9,1
ffc16c88: 7d 6b 49 d6 mullw r11,r11,r9
ffc16c8c: 38 0b 00 01 addi r0,r11,1
ffc16c90: 7d 20 49 d6 mullw r9,r0,r9
ffc16c94: 39 29 ff ff addi r9,r9,-1
ffc16c98: 7d 29 e9 d6 mullw r9,r9,r29
ffc16c9c: 40 9d 01 50 ble- cr7,ffc16dec <IMFS_memfile_extend+0x1c4>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( new_length <= the_jnode->info.file.size )
ffc16ca0: 83 7f 00 50 lwz r27,80(r31)
ffc16ca4: 83 3f 00 54 lwz r25,84(r31)
ffc16ca8: 7f 9c d8 00 cmpw cr7,r28,r27
ffc16cac: 40 9d 00 c4 ble- cr7,ffc16d70 <IMFS_memfile_extend+0x148>
/*
* Calculate the number of range of blocks to allocate
*/
new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc16cb0: 7f b8 fe 70 srawi r24,r29,31
ffc16cb4: 7f 05 c3 78 mr r5,r24
ffc16cb8: 7f a6 eb 78 mr r6,r29
ffc16cbc: 7f 83 e3 78 mr r3,r28
ffc16cc0: 7f 44 d3 78 mr r4,r26
ffc16cc4: 48 00 b9 01 bl ffc225c4 <__divdi3>
old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc16cc8: 7f 63 db 78 mr r3,r27
/*
* Calculate the number of range of blocks to allocate
*/
new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc16ccc: 7c 9e 23 78 mr r30,r4
old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc16cd0: 7f 05 c3 78 mr r5,r24
ffc16cd4: 7f 24 cb 78 mr r4,r25
ffc16cd8: 7f a6 eb 78 mr r6,r29
ffc16cdc: 48 00 b8 e9 bl ffc225c4 <__divdi3>
/*
* Now allocate each of those blocks.
*/
for ( block=old_blocks ; block<=new_blocks ; block++ ) {
ffc16ce0: 7f 9e 20 40 cmplw cr7,r30,r4
/*
* Calculate the number of range of blocks to allocate
*/
new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;
old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc16ce4: 7c 9b 23 78 mr r27,r4
/*
* Now allocate each of those blocks.
*/
for ( block=old_blocks ; block<=new_blocks ; block++ ) {
ffc16ce8: 41 9c 00 c8 blt- cr7,ffc16db0 <IMFS_memfile_extend+0x188>
ffc16cec: 7c 9d 23 78 mr r29,r4
ffc16cf0: 48 00 00 10 b ffc16d00 <IMFS_memfile_extend+0xd8>
ffc16cf4: 3b bd 00 01 addi r29,r29,1
ffc16cf8: 7f 9e e8 40 cmplw cr7,r30,r29
ffc16cfc: 41 9c 00 b4 blt- cr7,ffc16db0 <IMFS_memfile_extend+0x188>
if ( IMFS_memfile_addblock( the_jnode, block ) ) {
ffc16d00: 7f e3 fb 78 mr r3,r31
ffc16d04: 7f a4 eb 78 mr r4,r29
ffc16d08: 4b ff fe 69 bl ffc16b70 <IMFS_memfile_addblock>
ffc16d0c: 2f 83 00 00 cmpwi cr7,r3,0
ffc16d10: 41 9e ff e4 beq+ cr7,ffc16cf4 <IMFS_memfile_extend+0xcc>
ffc16d14: 48 00 00 14 b ffc16d28 <IMFS_memfile_extend+0x100> <== NOT EXECUTED
for ( ; block>=old_blocks ; block-- ) {
IMFS_memfile_remove_block( the_jnode, block );
ffc16d18: 7f a4 eb 78 mr r4,r29 <== NOT EXECUTED
ffc16d1c: 7f e3 fb 78 mr r3,r31 <== 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-- ) {
ffc16d20: 3b bd ff ff addi r29,r29,-1 <== NOT EXECUTED
IMFS_memfile_remove_block( the_jnode, block );
ffc16d24: 4b ff fa b5 bl ffc167d8 <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-- ) {
ffc16d28: 7f 9b e8 40 cmplw cr7,r27,r29 <== NOT EXECUTED
ffc16d2c: 40 9d ff ec ble+ cr7,ffc16d18 <IMFS_memfile_extend+0xf0><== NOT EXECUTED
IMFS_memfile_remove_block( the_jnode, block );
}
rtems_set_errno_and_return_minus_one( ENOSPC );
ffc16d30: 48 00 19 e1 bl ffc18710 <__errno> <== NOT EXECUTED
ffc16d34: 38 00 00 1c li r0,28 <== NOT EXECUTED
ffc16d38: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc16d3c: 38 60 ff ff li r3,-1 <== NOT EXECUTED
* Set the new length of the file.
*/
the_jnode->info.file.size = new_length;
return 0;
}
ffc16d40: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED
ffc16d44: 83 01 00 08 lwz r24,8(r1) <== NOT EXECUTED
ffc16d48: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc16d4c: 83 21 00 0c lwz r25,12(r1) <== NOT EXECUTED
ffc16d50: 83 41 00 10 lwz r26,16(r1) <== NOT EXECUTED
ffc16d54: 83 61 00 14 lwz r27,20(r1) <== NOT EXECUTED
ffc16d58: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED
ffc16d5c: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED
ffc16d60: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED
ffc16d64: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED
ffc16d68: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED
ffc16d6c: 4e 80 00 20 blr <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )
rtems_set_errno_and_return_minus_one( EINVAL );
if ( new_length <= the_jnode->info.file.size )
ffc16d70: 40 9e 00 0c bne- cr7,ffc16d7c <IMFS_memfile_extend+0x154>
ffc16d74: 7f 9a c8 40 cmplw cr7,r26,r25
ffc16d78: 41 9d ff 38 bgt+ cr7,ffc16cb0 <IMFS_memfile_extend+0x88>
* Set the new length of the file.
*/
the_jnode->info.file.size = new_length;
return 0;
}
ffc16d7c: 80 01 00 2c lwz r0,44(r1)
rtems_set_errno_and_return_minus_one( EIO );
if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )
rtems_set_errno_and_return_minus_one( EINVAL );
if ( new_length <= the_jnode->info.file.size )
ffc16d80: 38 60 00 00 li r3,0
* Set the new length of the file.
*/
the_jnode->info.file.size = new_length;
return 0;
}
ffc16d84: 83 01 00 08 lwz r24,8(r1)
ffc16d88: 7c 08 03 a6 mtlr r0
ffc16d8c: 83 21 00 0c lwz r25,12(r1)
ffc16d90: 83 41 00 10 lwz r26,16(r1)
ffc16d94: 83 61 00 14 lwz r27,20(r1)
ffc16d98: 83 81 00 18 lwz r28,24(r1)
ffc16d9c: 83 a1 00 1c lwz r29,28(r1)
ffc16da0: 83 c1 00 20 lwz r30,32(r1)
ffc16da4: 83 e1 00 24 lwz r31,36(r1)
ffc16da8: 38 21 00 28 addi r1,r1,40
ffc16dac: 4e 80 00 20 blr
/*
* Set the new length of the file.
*/
the_jnode->info.file.size = new_length;
ffc16db0: 93 5f 00 54 stw r26,84(r31)
ffc16db4: 38 60 00 00 li r3,0
ffc16db8: 93 9f 00 50 stw r28,80(r31)
return 0;
}
ffc16dbc: 80 01 00 2c lwz r0,44(r1)
ffc16dc0: 83 01 00 08 lwz r24,8(r1)
ffc16dc4: 7c 08 03 a6 mtlr r0
ffc16dc8: 83 21 00 0c lwz r25,12(r1)
ffc16dcc: 83 41 00 10 lwz r26,16(r1)
ffc16dd0: 83 61 00 14 lwz r27,20(r1)
ffc16dd4: 83 81 00 18 lwz r28,24(r1)
ffc16dd8: 83 a1 00 1c lwz r29,28(r1)
ffc16ddc: 83 c1 00 20 lwz r30,32(r1)
ffc16de0: 83 e1 00 24 lwz r31,36(r1)
ffc16de4: 38 21 00 28 addi r1,r1,40
ffc16de8: 4e 80 00 20 blr
assert( the_jnode->type == IMFS_MEMORY_FILE );
if ( the_jnode->type != IMFS_MEMORY_FILE )
rtems_set_errno_and_return_minus_one( EIO );
if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )
ffc16dec: 40 9e 00 0c bne- cr7,ffc16df8 <IMFS_memfile_extend+0x1d0>
ffc16df0: 7f 89 30 40 cmplw cr7,r9,r6
ffc16df4: 41 9d fe ac bgt+ cr7,ffc16ca0 <IMFS_memfile_extend+0x78>
rtems_set_errno_and_return_minus_one( EINVAL );
ffc16df8: 48 00 19 19 bl ffc18710 <__errno> <== NOT EXECUTED
ffc16dfc: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc16e00: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc16e04: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc16e08: 4b ff ff 38 b ffc16d40 <IMFS_memfile_extend+0x118> <== NOT EXECUTED
assert( the_jnode );
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
ffc16e0c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc16e10: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc16e14: 38 a5 55 50 addi r5,r5,21840 <== NOT EXECUTED
ffc16e18: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc16e1c: 38 63 56 14 addi r3,r3,22036 <== NOT EXECUTED
ffc16e20: 38 a5 00 88 addi r5,r5,136 <== NOT EXECUTED
ffc16e24: 38 c6 56 68 addi r6,r6,22120 <== NOT EXECUTED
ffc16e28: 38 80 01 35 li r4,309 <== NOT EXECUTED
ffc16e2c: 4b fe ec bd bl ffc05ae8 <__assert_func> <== NOT EXECUTED
/*
* Perform internal consistency checks
*/
assert( the_jnode );
ffc16e30: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc16e34: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc16e38: 38 a5 55 50 addi r5,r5,21840 <== NOT EXECUTED
ffc16e3c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc16e40: 38 63 56 14 addi r3,r3,22036 <== NOT EXECUTED
ffc16e44: 38 a5 00 88 addi r5,r5,136 <== NOT EXECUTED
ffc16e48: 38 c6 56 5c addi r6,r6,22108 <== NOT EXECUTED
ffc16e4c: 38 80 01 31 li r4,305 <== NOT EXECUTED
ffc16e50: 4b fe ec 99 bl ffc05ae8 <__assert_func> <== NOT EXECUTED
ffc16478 <IMFS_memfile_get_block_pointer>:
#endif
IMFS_jnode_t *the_jnode,
unsigned int block,
int malloc_it
)
{
ffc16478: 94 21 ff e0 stwu r1,-32(r1)
ffc1647c: 7c 08 02 a6 mflr r0
ffc16480: 93 e1 00 1c stw r31,28(r1)
/*
* Perform internal consistency checks
*/
assert( the_jnode );
ffc16484: 7c 7f 1b 79 mr. r31,r3
#endif
IMFS_jnode_t *the_jnode,
unsigned int block,
int malloc_it
)
{
ffc16488: 90 01 00 24 stw r0,36(r1)
ffc1648c: 93 81 00 10 stw r28,16(r1)
ffc16490: 93 a1 00 14 stw r29,20(r1)
ffc16494: 93 c1 00 18 stw r30,24(r1)
/*
* Perform internal consistency checks
*/
assert( the_jnode );
ffc16498: 41 82 02 18 beq- ffc166b0 <IMFS_memfile_get_block_pointer+0x238>
if ( !the_jnode )
return NULL;
assert( the_jnode->type == IMFS_MEMORY_FILE );
ffc1649c: 80 1f 00 4c lwz r0,76(r31)
ffc164a0: 2f 80 00 05 cmpwi cr7,r0,5
ffc164a4: 40 9e 02 2c bne- cr7,ffc166d0 <IMFS_memfile_get_block_pointer+0x258>
/*
* Is the block number in the simple indirect portion?
*/
if ( my_block <= LAST_INDIRECT ) {
ffc164a8: 3d 20 00 00 lis r9,0
ffc164ac: 81 29 27 24 lwz r9,10020(r9)
ffc164b0: 55 29 f0 be rlwinm r9,r9,30,2,31
ffc164b4: 38 09 ff ff addi r0,r9,-1
ffc164b8: 7f 84 00 40 cmplw cr7,r4,r0
ffc164bc: 40 9d 00 78 ble- cr7,ffc16534 <IMFS_memfile_get_block_pointer+0xbc>
/*
* Is the block number in the doubly indirect portion?
*/
if ( my_block <= LAST_DOUBLY_INDIRECT ) {
ffc164c0: 39 69 00 01 addi r11,r9,1 <== NOT EXECUTED
ffc164c4: 7d 6b 49 d6 mullw r11,r11,r9 <== NOT EXECUTED
ffc164c8: 38 0b ff ff addi r0,r11,-1 <== NOT EXECUTED
ffc164cc: 7f 84 00 40 cmplw cr7,r4,r0 <== NOT EXECUTED
ffc164d0: 41 9d 00 a0 bgt- cr7,ffc16570 <IMFS_memfile_get_block_pointer+0xf8><== NOT EXECUTED
#if 0
fprintf(stdout, "(d %d) ", block );
fflush(stdout);
#endif
my_block -= FIRST_DOUBLY_INDIRECT;
ffc164d4: 7c 89 20 50 subf r4,r9,r4 <== NOT EXECUTED
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
p = info->doubly_indirect;
ffc164d8: 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;
ffc164dc: 7f c4 4b 96 divwu r30,r4,r9 <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
p = info->doubly_indirect;
if ( malloc_it ) {
ffc164e0: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED
fflush(stdout);
#endif
my_block -= FIRST_DOUBLY_INDIRECT;
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
ffc164e4: 7f be 49 d6 mullw r29,r30,r9 <== NOT EXECUTED
ffc164e8: 7f bd 20 50 subf r29,r29,r4 <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
p = info->doubly_indirect;
if ( malloc_it ) {
ffc164ec: 41 9e 01 04 beq- cr7,ffc165f0 <IMFS_memfile_get_block_pointer+0x178><== NOT EXECUTED
if ( !p ) {
ffc164f0: 2f 8b 00 00 cmpwi cr7,r11,0 <== NOT EXECUTED
ffc164f4: 41 9e 01 84 beq- cr7,ffc16678 <IMFS_memfile_get_block_pointer+0x200><== NOT EXECUTED
if ( !p )
return 0;
info->doubly_indirect = p;
}
p1 = (block_p *)p[ doubly ];
ffc164f8: 57 de 10 3a rlwinm r30,r30,2,0,29 <== NOT EXECUTED
ffc164fc: 7c 6b f0 2e lwzx r3,r11,r30 <== NOT EXECUTED
ffc16500: 7f cb f2 14 add r30,r11,r30 <== NOT EXECUTED
if ( !p1 ) {
ffc16504: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc16508: 41 9e 01 5c beq- cr7,ffc16664 <IMFS_memfile_get_block_pointer+0x1ec><== NOT EXECUTED
p2 = (block_p *)p1[ doubly ];
if ( !p )
return 0;
return (block_p *)&p2[ singly ];
ffc1650c: 57 bd 10 3a rlwinm r29,r29,2,0,29 <== NOT EXECUTED
ffc16510: 7c 63 ea 14 add r3,r3,r29 <== NOT EXECUTED
/*
* This means the requested block number is out of range.
*/
return 0;
}
ffc16514: 80 01 00 24 lwz r0,36(r1)
ffc16518: 83 81 00 10 lwz r28,16(r1)
ffc1651c: 7c 08 03 a6 mtlr r0
ffc16520: 83 a1 00 14 lwz r29,20(r1)
ffc16524: 83 c1 00 18 lwz r30,24(r1)
ffc16528: 83 e1 00 1c lwz r31,28(r1)
ffc1652c: 38 21 00 20 addi r1,r1,32
ffc16530: 4e 80 00 20 blr
fprintf(stdout, "(s %d) ", block );
fflush(stdout);
#endif
p = info->indirect;
if ( malloc_it ) {
ffc16534: 2f 85 00 00 cmpwi cr7,r5,0
if ( my_block <= LAST_INDIRECT ) {
#if 0
fprintf(stdout, "(s %d) ", block );
fflush(stdout);
#endif
p = info->indirect;
ffc16538: 80 7f 00 58 lwz r3,88(r31)
if ( malloc_it ) {
ffc1653c: 41 9e 00 f8 beq- cr7,ffc16634 <IMFS_memfile_get_block_pointer+0x1bc>
if ( !p ) {
ffc16540: 2f 83 00 00 cmpwi cr7,r3,0
ffc16544: 41 9e 01 04 beq- cr7,ffc16648 <IMFS_memfile_get_block_pointer+0x1d0>
/*
* This means the requested block number is out of range.
*/
return 0;
}
ffc16548: 80 01 00 24 lwz r0,36(r1)
p = memfile_alloc_block();
if ( !p )
return 0;
info->indirect = p;
}
return &info->indirect[ my_block ];
ffc1654c: 54 84 10 3a rlwinm r4,r4,2,0,29
ffc16550: 7c 63 22 14 add r3,r3,r4
/*
* This means the requested block number is out of range.
*/
return 0;
}
ffc16554: 83 81 00 10 lwz r28,16(r1)
ffc16558: 7c 08 03 a6 mtlr r0
ffc1655c: 83 a1 00 14 lwz r29,20(r1)
ffc16560: 83 c1 00 18 lwz r30,24(r1)
ffc16564: 83 e1 00 1c lwz r31,28(r1)
ffc16568: 38 21 00 20 addi r1,r1,32
ffc1656c: 4e 80 00 20 blr
#endif
/*
* Is the block number in the triply indirect portion?
*/
if ( my_block <= LAST_TRIPLY_INDIRECT ) {
ffc16570: 39 4b 00 01 addi r10,r11,1 <== NOT EXECUTED
ffc16574: 7d 4a 49 d6 mullw r10,r10,r9 <== NOT EXECUTED
ffc16578: 38 0a ff ff addi r0,r10,-1 <== NOT EXECUTED
ffc1657c: 7f 84 00 40 cmplw cr7,r4,r0 <== NOT EXECUTED
ffc16580: 41 9d 00 90 bgt- cr7,ffc16610 <IMFS_memfile_get_block_pointer+0x198><== NOT EXECUTED
my_block -= FIRST_TRIPLY_INDIRECT;
ffc16584: 7d 6b 20 50 subf r11,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;
ffc16588: 81 5f 00 60 lwz r10,96(r31) <== NOT EXECUTED
*/
if ( my_block <= LAST_TRIPLY_INDIRECT ) {
my_block -= FIRST_TRIPLY_INDIRECT;
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
ffc1658c: 7c 0b 4b 96 divwu r0,r11,r9 <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;
ffc16590: 7f c0 4b 96 divwu r30,r0,r9 <== NOT EXECUTED
doubly %= IMFS_MEMFILE_BLOCK_SLOTS;
p = info->triply_indirect;
if ( malloc_it ) {
ffc16594: 2f 85 00 00 cmpwi cr7,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;
ffc16598: 7f 9e 49 d6 mullw r28,r30,r9 <== NOT EXECUTED
*/
if ( my_block <= LAST_TRIPLY_INDIRECT ) {
my_block -= FIRST_TRIPLY_INDIRECT;
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
ffc1659c: 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;
ffc165a0: 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;
ffc165a4: 7f a9 58 50 subf r29,r9,r11 <== NOT EXECUTED
triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;
doubly %= IMFS_MEMFILE_BLOCK_SLOTS;
p = info->triply_indirect;
if ( malloc_it ) {
ffc165a8: 41 9e 00 e4 beq- cr7,ffc1668c <IMFS_memfile_get_block_pointer+0x214><== NOT EXECUTED
if ( !p ) {
ffc165ac: 2f 8a 00 00 cmpwi cr7,r10,0 <== NOT EXECUTED
ffc165b0: 41 9e 01 40 beq- cr7,ffc166f0 <IMFS_memfile_get_block_pointer+0x278><== NOT EXECUTED
if ( !p )
return 0;
info->triply_indirect = p;
}
p1 = (block_p *) p[ triply ];
ffc165b4: 57 de 10 3a rlwinm r30,r30,2,0,29 <== NOT EXECUTED
ffc165b8: 7d 2a f0 2e lwzx r9,r10,r30 <== NOT EXECUTED
ffc165bc: 7f ca f2 14 add r30,r10,r30 <== NOT EXECUTED
if ( !p1 ) {
ffc165c0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc165c4: 41 9e 01 40 beq- cr7,ffc16704 <IMFS_memfile_get_block_pointer+0x28c><== NOT EXECUTED
if ( !p1 )
return 0;
p[ triply ] = (block_p) p1;
}
p2 = (block_p *)p1[ doubly ];
ffc165c8: 57 9f 10 3a rlwinm r31,r28,2,0,29 <== NOT EXECUTED
ffc165cc: 7c 69 f8 2e lwzx r3,r9,r31 <== NOT EXECUTED
ffc165d0: 7f e9 fa 14 add r31,r9,r31 <== NOT EXECUTED
if ( !p2 ) {
ffc165d4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc165d8: 40 9e ff 34 bne+ cr7,ffc1650c <IMFS_memfile_get_block_pointer+0x94><== NOT EXECUTED
p2 = memfile_alloc_block();
ffc165dc: 4b ff fe 59 bl ffc16434 <memfile_alloc_block> <== NOT EXECUTED
if ( !p2 )
ffc165e0: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED
ffc165e4: 41 82 00 2c beq- ffc16610 <IMFS_memfile_get_block_pointer+0x198><== NOT EXECUTED
return 0;
p1[ doubly ] = (block_p) p2;
ffc165e8: 90 7f 00 00 stw r3,0(r31) <== NOT EXECUTED
ffc165ec: 4b ff ff 20 b ffc1650c <IMFS_memfile_get_block_pointer+0x94><== NOT EXECUTED
}
return (block_p *)&p1[ singly ];
}
if ( !p )
ffc165f0: 2f 8b 00 00 cmpwi cr7,r11,0 <== NOT EXECUTED
ffc165f4: 41 be 00 1c beq+ cr7,ffc16610 <IMFS_memfile_get_block_pointer+0x198><== NOT EXECUTED
return 0;
p = (block_p *)p[ doubly ];
ffc165f8: 57 de 10 3a rlwinm r30,r30,2,0,29 <== NOT EXECUTED
ffc165fc: 7c 0b f0 2e lwzx r0,r11,r30 <== 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 ];
ffc16600: 57 a3 10 3a rlwinm r3,r29,2,0,29 <== NOT EXECUTED
if ( !p )
return 0;
p = (block_p *)p[ doubly ];
if ( !p )
ffc16604: 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 ];
ffc16608: 7c 60 1a 14 add r3,r0,r3 <== NOT EXECUTED
if ( !p )
return 0;
p = (block_p *)p[ doubly ];
if ( !p )
ffc1660c: 40 9e ff 08 bne+ cr7,ffc16514 <IMFS_memfile_get_block_pointer+0x9c><== NOT EXECUTED
/*
* This means the requested block number is out of range.
*/
return 0;
}
ffc16610: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED
p2 = (block_p *)p1[ doubly ];
if ( !p )
return 0;
return (block_p *)&p2[ singly ];
ffc16614: 38 60 00 00 li r3,0 <== NOT EXECUTED
/*
* This means the requested block number is out of range.
*/
return 0;
}
ffc16618: 83 81 00 10 lwz r28,16(r1) <== NOT EXECUTED
ffc1661c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc16620: 83 a1 00 14 lwz r29,20(r1) <== NOT EXECUTED
ffc16624: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED
ffc16628: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED
ffc1662c: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED
ffc16630: 4e 80 00 20 blr <== NOT EXECUTED
info->indirect = p;
}
return &info->indirect[ my_block ];
}
if ( !p )
ffc16634: 2f 83 00 00 cmpwi cr7,r3,0
return 0;
return &info->indirect[ my_block ];
ffc16638: 54 84 10 3a rlwinm r4,r4,2,0,29
ffc1663c: 7c 63 22 14 add r3,r3,r4
info->indirect = p;
}
return &info->indirect[ my_block ];
}
if ( !p )
ffc16640: 40 9e fe d4 bne+ cr7,ffc16514 <IMFS_memfile_get_block_pointer+0x9c>
ffc16644: 4b ff ff cc b ffc16610 <IMFS_memfile_get_block_pointer+0x198><== NOT EXECUTED
p = info->indirect;
if ( malloc_it ) {
if ( !p ) {
p = memfile_alloc_block();
ffc16648: 90 81 00 08 stw r4,8(r1)
ffc1664c: 4b ff fd e9 bl ffc16434 <memfile_alloc_block>
if ( !p )
ffc16650: 2c 03 00 00 cmpwi r3,0
ffc16654: 80 81 00 08 lwz r4,8(r1)
ffc16658: 41 a2 ff b8 beq- ffc16610 <IMFS_memfile_get_block_pointer+0x198>
return 0;
info->indirect = p;
ffc1665c: 90 7f 00 58 stw r3,88(r31)
ffc16660: 4b ff fe e8 b ffc16548 <IMFS_memfile_get_block_pointer+0xd0>
info->doubly_indirect = p;
}
p1 = (block_p *)p[ doubly ];
if ( !p1 ) {
p1 = memfile_alloc_block();
ffc16664: 4b ff fd d1 bl ffc16434 <memfile_alloc_block> <== NOT EXECUTED
if ( !p1 )
ffc16668: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED
ffc1666c: 41 a2 ff a4 beq- ffc16610 <IMFS_memfile_get_block_pointer+0x198><== NOT EXECUTED
return 0;
p[ doubly ] = (block_p) p1;
ffc16670: 90 7e 00 00 stw r3,0(r30) <== NOT EXECUTED
ffc16674: 4b ff fe 98 b ffc1650c <IMFS_memfile_get_block_pointer+0x94><== NOT EXECUTED
p = info->doubly_indirect;
if ( malloc_it ) {
if ( !p ) {
p = memfile_alloc_block();
ffc16678: 4b ff fd bd bl ffc16434 <memfile_alloc_block> <== NOT EXECUTED
if ( !p )
ffc1667c: 7c 6b 1b 79 mr. r11,r3 <== NOT EXECUTED
ffc16680: 41 a2 ff 90 beq- ffc16610 <IMFS_memfile_get_block_pointer+0x198><== NOT EXECUTED
return 0;
info->doubly_indirect = p;
ffc16684: 91 7f 00 5c stw r11,92(r31) <== NOT EXECUTED
ffc16688: 4b ff fe 70 b ffc164f8 <IMFS_memfile_get_block_pointer+0x80><== NOT EXECUTED
p1[ doubly ] = (block_p) p2;
}
return (block_p *)&p2[ singly ];
}
if ( !p )
ffc1668c: 2f 8a 00 00 cmpwi cr7,r10,0 <== NOT EXECUTED
ffc16690: 41 9e ff 80 beq+ cr7,ffc16610 <IMFS_memfile_get_block_pointer+0x198><== 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 ];
ffc16694: 57 de 10 3a rlwinm r30,r30,2,0,29 <== NOT EXECUTED
ffc16698: 7d 2a f0 2e lwzx r9,r10,r30 <== NOT EXECUTED
if ( !p1 )
ffc1669c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc166a0: 41 9e ff 70 beq+ cr7,ffc16610 <IMFS_memfile_get_block_pointer+0x198><== NOT EXECUTED
p2 = (block_p *)p1[ doubly ];
if ( !p )
return 0;
return (block_p *)&p2[ singly ];
ffc166a4: 57 9c 10 3a rlwinm r28,r28,2,0,29 <== NOT EXECUTED
ffc166a8: 7c 69 e0 2e lwzx r3,r9,r28 <== NOT EXECUTED
ffc166ac: 4b ff fe 60 b ffc1650c <IMFS_memfile_get_block_pointer+0x94><== NOT EXECUTED
/*
* Perform internal consistency checks
*/
assert( the_jnode );
ffc166b0: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc166b4: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc166b8: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc166bc: 38 63 56 14 addi r3,r3,22036 <== NOT EXECUTED
ffc166c0: 38 a5 55 50 addi r5,r5,21840 <== NOT EXECUTED
ffc166c4: 38 c6 56 5c addi r6,r6,22108 <== NOT EXECUTED
ffc166c8: 38 80 03 88 li r4,904 <== NOT EXECUTED
ffc166cc: 4b fe f4 1d bl ffc05ae8 <__assert_func> <== NOT EXECUTED
if ( !the_jnode )
return NULL;
assert( the_jnode->type == IMFS_MEMORY_FILE );
ffc166d0: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc166d4: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc166d8: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc166dc: 38 63 56 14 addi r3,r3,22036 <== NOT EXECUTED
ffc166e0: 38 a5 55 50 addi r5,r5,21840 <== NOT EXECUTED
ffc166e4: 38 c6 56 68 addi r6,r6,22120 <== NOT EXECUTED
ffc166e8: 38 80 03 8c li r4,908 <== NOT EXECUTED
ffc166ec: 4b fe f3 fd bl ffc05ae8 <__assert_func> <== NOT EXECUTED
p = info->triply_indirect;
if ( malloc_it ) {
if ( !p ) {
p = memfile_alloc_block();
ffc166f0: 4b ff fd 45 bl ffc16434 <memfile_alloc_block> <== NOT EXECUTED
if ( !p )
ffc166f4: 7c 6a 1b 79 mr. r10,r3 <== NOT EXECUTED
ffc166f8: 41 a2 ff 18 beq- ffc16610 <IMFS_memfile_get_block_pointer+0x198><== NOT EXECUTED
return 0;
info->triply_indirect = p;
ffc166fc: 91 5f 00 60 stw r10,96(r31) <== NOT EXECUTED
ffc16700: 4b ff fe b4 b ffc165b4 <IMFS_memfile_get_block_pointer+0x13c><== NOT EXECUTED
}
p1 = (block_p *) p[ triply ];
if ( !p1 ) {
p1 = memfile_alloc_block();
ffc16704: 4b ff fd 31 bl ffc16434 <memfile_alloc_block> <== NOT EXECUTED
if ( !p1 )
ffc16708: 7c 69 1b 79 mr. r9,r3 <== NOT EXECUTED
ffc1670c: 41 a2 ff 04 beq- ffc16610 <IMFS_memfile_get_block_pointer+0x198><== NOT EXECUTED
return 0;
p[ triply ] = (block_p) p1;
ffc16710: 91 3e 00 00 stw r9,0(r30) <== NOT EXECUTED
ffc16714: 4b ff fe b4 b ffc165c8 <IMFS_memfile_get_block_pointer+0x150><== NOT EXECUTED
ffc17448 <IMFS_memfile_read>:
IMFS_jnode_t *the_jnode,
off_t start,
unsigned char *destination,
unsigned int length
)
{
ffc17448: 94 21 ff c0 stwu r1,-64(r1)
ffc1744c: 7c 08 02 a6 mflr r0
ffc17450: 93 e1 00 3c stw r31,60(r1)
/*
* Perform internal consistency checks
*/
assert( the_jnode );
ffc17454: 7c 7f 1b 79 mr. r31,r3
IMFS_jnode_t *the_jnode,
off_t start,
unsigned char *destination,
unsigned int length
)
{
ffc17458: 93 41 00 28 stw r26,40(r1)
ffc1745c: 7c ba 2b 78 mr r26,r5
ffc17460: 93 61 00 2c stw r27,44(r1)
ffc17464: 7c db 33 78 mr r27,r6
ffc17468: 93 c1 00 38 stw r30,56(r1)
ffc1746c: 7c fe 3b 78 mr r30,r7
ffc17470: 90 01 00 44 stw r0,68(r1)
ffc17474: 92 e1 00 1c stw r23,28(r1)
ffc17478: 93 01 00 20 stw r24,32(r1)
ffc1747c: 93 21 00 24 stw r25,36(r1)
ffc17480: 93 81 00 30 stw r28,48(r1)
ffc17484: 93 a1 00 34 stw r29,52(r1)
/*
* Perform internal consistency checks
*/
assert( the_jnode );
ffc17488: 41 82 03 0c beq- ffc17794 <IMFS_memfile_read+0x34c>
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE ||
ffc1748c: 81 3f 00 4c lwz r9,76(r31)
ffc17490: 38 09 ff fb addi r0,r9,-5
ffc17494: 2b 80 00 01 cmplwi cr7,r0,1
ffc17498: 41 9d 02 d8 bgt- cr7,ffc17770 <IMFS_memfile_read+0x328>
/*
* Error checks on arguments
*/
assert( dest );
ffc1749c: 2f 87 00 00 cmpwi cr7,r7,0
ffc174a0: 41 9e 02 88 beq- cr7,ffc17728 <IMFS_memfile_read+0x2e0>
/*
* If there is nothing to read, then quick exit.
*/
my_length = length;
if ( !my_length )
ffc174a4: 2f 88 00 00 cmpwi cr7,r8,0
ffc174a8: 41 9e 02 48 beq- cr7,ffc176f0 <IMFS_memfile_read+0x2a8>
/*
* Linear files (as created from a tar file are easier to handle
* than block files).
*/
if (the_jnode->type == IMFS_LINEAR_FILE) {
ffc174ac: 2f 89 00 06 cmpwi cr7,r9,6
ffc174b0: 41 9e 01 94 beq- cr7,ffc17644 <IMFS_memfile_read+0x1fc>
* 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 )
ffc174b4: 80 1f 00 50 lwz r0,80(r31)
ffc174b8: 39 20 00 00 li r9,0
ffc174bc: 83 9f 00 54 lwz r28,84(r31)
ffc174c0: 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;
ffc174c4: 7c c0 33 78 mr r0,r6
if ( last_byte > the_jnode->info.file.size )
ffc174c8: 7d 28 32 14 add r9,r8,r6
ffc174cc: 40 9d 01 6c ble- cr7,ffc17638 <IMFS_memfile_read+0x1f0>
my_length = the_jnode->info.file.size - start;
ffc174d0: 7f 80 e0 50 subf r28,r0,r28
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc174d4: 3f 20 00 00 lis r25,0
ffc174d8: 83 b9 27 24 lwz r29,10020(r25)
ffc174dc: 7f 43 d3 78 mr r3,r26
ffc174e0: 7f 64 db 78 mr r4,r27
ffc174e4: 7f b8 fe 70 srawi r24,r29,31
ffc174e8: 7f 05 c3 78 mr r5,r24
ffc174ec: 7f a6 eb 78 mr r6,r29
ffc174f0: 48 00 b4 d9 bl ffc229c8 <__moddi3>
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc174f4: 7f 43 d3 78 mr r3,r26
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc174f8: 7c 97 23 78 mr r23,r4
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc174fc: 7f 05 c3 78 mr r5,r24
ffc17500: 7f 64 db 78 mr r4,r27
ffc17504: 7f a6 eb 78 mr r6,r29
ffc17508: 48 00 b0 bd bl ffc225c4 <__divdi3>
if ( start_offset ) {
ffc1750c: 2f 97 00 00 cmpwi cr7,r23,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;
ffc17510: 7c 9a 23 78 mr r26,r4
if ( start_offset ) {
ffc17514: 7f d8 f3 78 mr r24,r30
ffc17518: 3b 60 00 00 li r27,0
ffc1751c: 41 9e 00 4c beq- cr7,ffc17568 <IMFS_memfile_read+0x120>
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 );
ffc17520: 7f e3 fb 78 mr r3,r31
ffc17524: 38 a0 00 00 li r5,0
ffc17528: 4b ff ef 51 bl ffc16478 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
ffc1752c: 2c 03 00 00 cmpwi r3,0
ffc17530: 41 82 02 88 beq- ffc177b8 <IMFS_memfile_read+0x370>
*/
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;
ffc17534: 7f b7 e8 50 subf r29,r23,r29
ffc17538: 7f 9c e8 40 cmplw cr7,r28,r29
ffc1753c: 7f 9b e3 78 mr r27,r28
ffc17540: 41 9d 01 94 bgt- cr7,ffc176d4 <IMFS_memfile_read+0x28c>
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 );
ffc17544: 80 83 00 00 lwz r4,0(r3)
ffc17548: 7f 65 db 78 mr r5,r27
ffc1754c: 7f c3 f3 78 mr r3,r30
ffc17550: 7c 84 ba 14 add r4,r4,r23
ffc17554: 48 00 1d a5 bl ffc192f8 <memcpy>
dest += to_copy;
block++;
my_length -= to_copy;
ffc17558: 83 b9 27 24 lwz r29,10020(r25)
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ start_offset ], to_copy );
dest += to_copy;
ffc1755c: 7f 1e da 14 add r24,r30,r27
block++;
ffc17560: 3b 5a 00 01 addi r26,r26,1
my_length -= to_copy;
ffc17564: 7f 9b e0 50 subf r28,r27,r28
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
ffc17568: 7f 9c e8 40 cmplw cr7,r28,r29
ffc1756c: 41 9c 00 4c blt- cr7,ffc175b8 <IMFS_memfile_read+0x170>
ffc17570: 3b 39 27 24 addi r25,r25,10020
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc17574: 7f e3 fb 78 mr r3,r31
ffc17578: 7f 44 d3 78 mr r4,r26
ffc1757c: 38 a0 00 00 li r5,0
ffc17580: 4b ff ee f9 bl ffc16478 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
ffc17584: 2c 03 00 00 cmpwi r3,0
ffc17588: 41 82 01 7c beq- ffc17704 <IMFS_memfile_read+0x2bc>
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], to_copy );
ffc1758c: 80 83 00 00 lwz r4,0(r3)
ffc17590: 7f a5 eb 78 mr r5,r29
ffc17594: 7f 03 c3 78 mr r3,r24
ffc17598: 48 00 1d 61 bl ffc192f8 <memcpy>
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
ffc1759c: 80 19 00 00 lwz r0,0(r25)
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], to_copy );
dest += to_copy;
block++;
my_length -= to_copy;
ffc175a0: 7f 9d e0 50 subf r28,r29,r28
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
ffc175a4: 7f 80 e0 40 cmplw cr7,r0,r28
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], to_copy );
dest += to_copy;
ffc175a8: 7f 18 ea 14 add r24,r24,r29
block++;
ffc175ac: 3b 5a 00 01 addi r26,r26,1
my_length -= to_copy;
copied += to_copy;
ffc175b0: 7f 7b ea 14 add r27,r27,r29
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
ffc175b4: 40 9d ff c0 ble+ cr7,ffc17574 <IMFS_memfile_read+0x12c>
* Phase 3: possibly the first part of one block
*/
assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );
if ( my_length ) {
ffc175b8: 2f 9c 00 00 cmpwi cr7,r28,0
ffc175bc: 41 9e 00 30 beq- cr7,ffc175ec <IMFS_memfile_read+0x1a4>
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc175c0: 7f 44 d3 78 mr r4,r26
ffc175c4: 7f e3 fb 78 mr r3,r31
ffc175c8: 38 a0 00 00 li r5,0
ffc175cc: 4b ff ee ad bl ffc16478 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
ffc175d0: 2c 03 00 00 cmpwi r3,0
ffc175d4: 41 82 01 78 beq- ffc1774c <IMFS_memfile_read+0x304>
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], my_length );
ffc175d8: 80 83 00 00 lwz r4,0(r3)
ffc175dc: 7f 85 e3 78 mr r5,r28
ffc175e0: 7f 03 c3 78 mr r3,r24
ffc175e4: 48 00 1d 15 bl ffc192f8 <memcpy>
copied += my_length;
ffc175e8: 7f 7b e2 14 add r27,r27,r28
}
IMFS_update_atime( the_jnode );
ffc175ec: 38 61 00 08 addi r3,r1,8
ffc175f0: 38 80 00 00 li r4,0
ffc175f4: 4b fe eb 1d bl ffc06110 <gettimeofday>
ffc175f8: 80 01 00 08 lwz r0,8(r1)
return copied;
ffc175fc: 7f 63 db 78 mr r3,r27
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], my_length );
copied += my_length;
}
IMFS_update_atime( the_jnode );
ffc17600: 90 1f 00 40 stw r0,64(r31)
return copied;
}
ffc17604: 80 01 00 44 lwz r0,68(r1)
ffc17608: 82 e1 00 1c lwz r23,28(r1)
ffc1760c: 7c 08 03 a6 mtlr r0
ffc17610: 83 01 00 20 lwz r24,32(r1)
ffc17614: 83 21 00 24 lwz r25,36(r1)
ffc17618: 83 41 00 28 lwz r26,40(r1)
ffc1761c: 83 61 00 2c lwz r27,44(r1)
ffc17620: 83 81 00 30 lwz r28,48(r1)
ffc17624: 83 a1 00 34 lwz r29,52(r1)
ffc17628: 83 c1 00 38 lwz r30,56(r1)
ffc1762c: 83 e1 00 3c lwz r31,60(r1)
ffc17630: 38 21 00 40 addi r1,r1,64
ffc17634: 4e 80 00 20 blr
* 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 )
ffc17638: 41 9e 00 8c beq- cr7,ffc176c4 <IMFS_memfile_read+0x27c>
ffc1763c: 7d 1c 43 78 mr r28,r8 <== NOT EXECUTED
ffc17640: 4b ff fe 94 b ffc174d4 <IMFS_memfile_read+0x8c> <== NOT EXECUTED
if (the_jnode->type == IMFS_LINEAR_FILE) {
unsigned char *file_ptr;
file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;
if (my_length > (the_jnode->info.linearfile.size - start))
ffc17644: 81 3f 00 50 lwz r9,80(r31) <== NOT EXECUTED
ffc17648: 38 00 00 00 li r0,0 <== NOT EXECUTED
ffc1764c: 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;
ffc17650: 80 9f 00 58 lwz r4,88(r31) <== NOT EXECUTED
if (my_length > (the_jnode->info.linearfile.size - start))
ffc17654: 7d 9b 50 10 subfc r12,r27,r10 <== NOT EXECUTED
ffc17658: 7d 7a 49 10 subfe r11,r26,r9 <== NOT EXECUTED
ffc1765c: 7f 80 58 00 cmpw cr7,r0,r11 <== NOT EXECUTED
ffc17660: 40 9d 00 7c ble- cr7,ffc176dc <IMFS_memfile_read+0x294> <== NOT EXECUTED
my_length = the_jnode->info.linearfile.size - start;
ffc17664: 7f 9b 50 50 subf r28,r27,r10 <== NOT EXECUTED
memcpy(dest, &file_ptr[start], my_length);
ffc17668: 7c 84 da 14 add r4,r4,r27 <== NOT EXECUTED
ffc1766c: 7f 85 e3 78 mr r5,r28 <== NOT EXECUTED
ffc17670: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc17674: 48 00 1c 85 bl ffc192f8 <memcpy> <== NOT EXECUTED
IMFS_update_atime( the_jnode );
ffc17678: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED
ffc1767c: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc17680: 4b fe ea 91 bl ffc06110 <gettimeofday> <== NOT EXECUTED
ffc17684: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED
return my_length;
ffc17688: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED
}
IMFS_update_atime( the_jnode );
return copied;
}
ffc1768c: 82 e1 00 1c lwz r23,28(r1) <== NOT EXECUTED
if (my_length > (the_jnode->info.linearfile.size - start))
my_length = the_jnode->info.linearfile.size - start;
memcpy(dest, &file_ptr[start], my_length);
IMFS_update_atime( the_jnode );
ffc17690: 90 1f 00 40 stw r0,64(r31) <== NOT EXECUTED
}
IMFS_update_atime( the_jnode );
return copied;
}
ffc17694: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED
ffc17698: 83 01 00 20 lwz r24,32(r1) <== NOT EXECUTED
ffc1769c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc176a0: 83 21 00 24 lwz r25,36(r1) <== NOT EXECUTED
ffc176a4: 83 41 00 28 lwz r26,40(r1) <== NOT EXECUTED
ffc176a8: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED
ffc176ac: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED
ffc176b0: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED
ffc176b4: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED
ffc176b8: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED
ffc176bc: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED
ffc176c0: 4e 80 00 20 blr <== 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 )
ffc176c4: 7f 89 e0 40 cmplw cr7,r9,r28
ffc176c8: 41 bd fe 08 bgt- cr7,ffc174d0 <IMFS_memfile_read+0x88>
ffc176cc: 7d 1c 43 78 mr r28,r8
ffc176d0: 4b ff fe 04 b ffc174d4 <IMFS_memfile_read+0x8c>
*/
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;
ffc176d4: 7f bb eb 78 mr r27,r29
ffc176d8: 4b ff fe 6c b ffc17544 <IMFS_memfile_read+0xfc>
if (the_jnode->type == IMFS_LINEAR_FILE) {
unsigned char *file_ptr;
file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;
if (my_length > (the_jnode->info.linearfile.size - start))
ffc176dc: 40 9e 00 0c bne- cr7,ffc176e8 <IMFS_memfile_read+0x2a0> <== NOT EXECUTED
ffc176e0: 7f 88 60 40 cmplw cr7,r8,r12 <== NOT EXECUTED
ffc176e4: 41 9d ff 80 bgt+ cr7,ffc17664 <IMFS_memfile_read+0x21c> <== NOT EXECUTED
ffc176e8: 7d 1c 43 78 mr r28,r8 <== NOT EXECUTED
ffc176ec: 4b ff ff 7c b ffc17668 <IMFS_memfile_read+0x220> <== NOT EXECUTED
* If there is nothing to read, then quick exit.
*/
my_length = length;
if ( !my_length )
rtems_set_errno_and_return_minus_one( EINVAL );
ffc176f0: 48 00 10 21 bl ffc18710 <__errno> <== NOT EXECUTED
ffc176f4: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc176f8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc176fc: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc17700: 4b ff ff 04 b ffc17604 <IMFS_memfile_read+0x1bc> <== NOT EXECUTED
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
ffc17704: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc17708: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc1770c: 38 a5 55 50 addi r5,r5,21840 <== NOT EXECUTED
ffc17710: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc17714: 38 63 56 14 addi r3,r3,22036 <== NOT EXECUTED
ffc17718: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED
ffc1771c: 38 c6 56 98 addi r6,r6,22168 <== NOT EXECUTED
ffc17720: 38 80 02 a7 li r4,679 <== NOT EXECUTED
ffc17724: 4b fe e3 c5 bl ffc05ae8 <__assert_func> <== NOT EXECUTED
/*
* Error checks on arguments
*/
assert( dest );
ffc17728: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc1772c: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc17730: 38 a5 55 50 addi r5,r5,21840 <== NOT EXECUTED
ffc17734: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc17738: 38 63 56 14 addi r3,r3,22036 <== NOT EXECUTED
ffc1773c: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED
ffc17740: 38 c6 56 f8 addi r6,r6,22264 <== NOT EXECUTED
ffc17744: 38 80 02 5a li r4,602 <== NOT EXECUTED
ffc17748: 4b fe e3 a1 bl ffc05ae8 <__assert_func> <== NOT EXECUTED
assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );
if ( my_length ) {
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
ffc1774c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc17750: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc17754: 38 a5 55 50 addi r5,r5,21840 <== NOT EXECUTED
ffc17758: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc1775c: 38 63 56 14 addi r3,r3,22036 <== NOT EXECUTED
ffc17760: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED
ffc17764: 38 c6 56 98 addi r6,r6,22168 <== NOT EXECUTED
ffc17768: 38 80 02 b9 li r4,697 <== NOT EXECUTED
ffc1776c: 4b fe e3 7d bl ffc05ae8 <__assert_func> <== NOT EXECUTED
assert( the_jnode );
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE ||
ffc17770: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc17774: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc17778: 38 a5 55 50 addi r5,r5,21840 <== NOT EXECUTED
ffc1777c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc17780: 38 63 56 14 addi r3,r3,22036 <== NOT EXECUTED
ffc17784: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED
ffc17788: 38 c6 56 ac addi r6,r6,22188 <== NOT EXECUTED
ffc1778c: 38 80 02 51 li r4,593 <== NOT EXECUTED
ffc17790: 4b fe e3 59 bl ffc05ae8 <__assert_func> <== NOT EXECUTED
/*
* Perform internal consistency checks
*/
assert( the_jnode );
ffc17794: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc17798: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc1779c: 38 a5 55 50 addi r5,r5,21840 <== NOT EXECUTED
ffc177a0: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc177a4: 38 63 56 14 addi r3,r3,22036 <== NOT EXECUTED
ffc177a8: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED
ffc177ac: 38 c6 56 5c addi r6,r6,22108 <== NOT EXECUTED
ffc177b0: 38 80 02 4c li r4,588 <== NOT EXECUTED
ffc177b4: 4b fe e3 35 bl ffc05ae8 <__assert_func> <== NOT EXECUTED
if ( start_offset ) {
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;
if ( to_copy > my_length )
to_copy = my_length;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
ffc177b8: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc177bc: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc177c0: 38 a5 55 50 addi r5,r5,21840 <== NOT EXECUTED
ffc177c4: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc177c8: 38 63 56 14 addi r3,r3,22036 <== NOT EXECUTED
ffc177cc: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED
ffc177d0: 38 c6 56 98 addi r6,r6,22168 <== NOT EXECUTED
ffc177d4: 38 80 02 96 li r4,662 <== NOT EXECUTED
ffc177d8: 4b fe e3 11 bl ffc05ae8 <__assert_func> <== NOT EXECUTED
ffc1683c <IMFS_memfile_remove>:
*/
int IMFS_memfile_remove(
IMFS_jnode_t *the_jnode
)
{
ffc1683c: 94 21 ff d8 stwu r1,-40(r1)
ffc16840: 7c 08 02 a6 mflr r0
ffc16844: 93 41 00 10 stw r26,16(r1)
/*
* Perform internal consistency checks
*/
assert( the_jnode );
ffc16848: 7c 7a 1b 79 mr. r26,r3
*/
int IMFS_memfile_remove(
IMFS_jnode_t *the_jnode
)
{
ffc1684c: 90 01 00 2c stw r0,44(r1)
ffc16850: 93 21 00 0c stw r25,12(r1)
ffc16854: 93 61 00 14 stw r27,20(r1)
ffc16858: 93 81 00 18 stw r28,24(r1)
ffc1685c: 93 a1 00 1c stw r29,28(r1)
ffc16860: 93 c1 00 20 stw r30,32(r1)
ffc16864: 93 e1 00 24 stw r31,36(r1)
/*
* Perform internal consistency checks
*/
assert( the_jnode );
ffc16868: 41 82 01 90 beq- ffc169f8 <IMFS_memfile_remove+0x1bc>
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
ffc1686c: 80 1a 00 4c lwz r0,76(r26)
ffc16870: 2f 80 00 05 cmpwi cr7,r0,5
ffc16874: 40 9e 01 a8 bne- cr7,ffc16a1c <IMFS_memfile_remove+0x1e0>
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
ffc16878: 80 1a 00 58 lwz r0,88(r26)
/*
* 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;
ffc1687c: 3f c0 00 00 lis r30,0
ffc16880: 83 9e 27 24 lwz r28,10020(r30)
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
ffc16884: 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;
ffc16888: 57 9c f0 be rlwinm r28,r28,30,2,31
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
ffc1688c: 41 9e 00 10 beq- cr7,ffc1689c <IMFS_memfile_remove+0x60>
if ( info->indirect ) {
memfile_free_blocks_in_table( &info->indirect, to_free );
ffc16890: 38 7a 00 58 addi r3,r26,88
ffc16894: 7f 84 e3 78 mr r4,r28
ffc16898: 4b ff fe 81 bl ffc16718 <memfile_free_blocks_in_table>
}
if ( info->doubly_indirect ) {
ffc1689c: 81 3a 00 5c lwz r9,92(r26)
ffc168a0: 2f 89 00 00 cmpwi cr7,r9,0
ffc168a4: 41 9e 00 68 beq- cr7,ffc1690c <IMFS_memfile_remove+0xd0>
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
ffc168a8: 80 1e 27 24 lwz r0,10020(r30) <== NOT EXECUTED
ffc168ac: 54 0b f0 bf rlwinm. r11,r0,30,2,31 <== NOT EXECUTED
ffc168b0: 41 82 00 50 beq- ffc16900 <IMFS_memfile_remove+0xc4> <== NOT EXECUTED
ffc168b4: 3f a0 00 00 lis r29,0 <== NOT EXECUTED
ffc168b8: 3b bd 27 24 addi r29,r29,10020 <== NOT EXECUTED
ffc168bc: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc168c0: 3b e0 00 00 li r31,0 <== NOT EXECUTED
ffc168c4: 48 00 00 08 b ffc168cc <IMFS_memfile_remove+0x90> <== NOT EXECUTED
ffc168c8: 81 3a 00 5c lwz r9,92(r26) <== NOT EXECUTED
if ( info->doubly_indirect[i] ) {
ffc168cc: 54 63 10 3a rlwinm r3,r3,2,0,29 <== NOT EXECUTED
ffc168d0: 7c 09 18 2e lwzx r0,r9,r3 <== NOT EXECUTED
ffc168d4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc168d8: 41 9e 00 10 beq- cr7,ffc168e8 <IMFS_memfile_remove+0xac><== NOT EXECUTED
memfile_free_blocks_in_table(
ffc168dc: 7c 69 1a 14 add r3,r9,r3 <== NOT EXECUTED
ffc168e0: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED
ffc168e4: 4b ff fe 35 bl ffc16718 <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++ ) {
ffc168e8: 80 1d 00 00 lwz r0,0(r29) <== NOT EXECUTED
ffc168ec: 3b ff 00 01 addi r31,r31,1 <== NOT EXECUTED
ffc168f0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc168f4: 54 00 f0 be rlwinm r0,r0,30,2,31 <== NOT EXECUTED
ffc168f8: 7f 80 f8 40 cmplw cr7,r0,r31 <== NOT EXECUTED
ffc168fc: 41 9d ff cc bgt+ cr7,ffc168c8 <IMFS_memfile_remove+0x8c><== 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 );
ffc16900: 38 7a 00 5c addi r3,r26,92 <== NOT EXECUTED
ffc16904: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED
ffc16908: 4b ff fe 11 bl ffc16718 <memfile_free_blocks_in_table><== NOT EXECUTED
}
if ( info->triply_indirect ) {
ffc1690c: 80 7a 00 60 lwz r3,96(r26)
ffc16910: 2f 83 00 00 cmpwi cr7,r3,0
ffc16914: 41 9e 00 b4 beq- cr7,ffc169c8 <IMFS_memfile_remove+0x18c>
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
ffc16918: 80 1e 27 24 lwz r0,10020(r30) <== NOT EXECUTED
ffc1691c: 54 00 f0 bf rlwinm. r0,r0,30,2,31 <== NOT EXECUTED
ffc16920: 41 82 00 9c beq- ffc169bc <IMFS_memfile_remove+0x180> <== NOT EXECUTED
p = (block_p *) info->triply_indirect[i];
ffc16924: 83 c3 00 00 lwz r30,0(r3) <== NOT EXECUTED
if ( !p ) /* ensure we have a valid pointer */
ffc16928: 2f 9e 00 00 cmpwi cr7,r30,0 <== NOT EXECUTED
ffc1692c: 41 9e 00 90 beq- cr7,ffc169bc <IMFS_memfile_remove+0x180><== NOT EXECUTED
ffc16930: 3f a0 00 00 lis r29,0 <== NOT EXECUTED
ffc16934: 3b bd 27 24 addi r29,r29,10020 <== NOT EXECUTED
ffc16938: 3b 20 00 00 li r25,0 <== NOT EXECUTED
ffc1693c: 3b 60 00 00 li r27,0 <== NOT EXECUTED
break;
for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {
ffc16940: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc16944: 41 9e 00 44 beq- cr7,ffc16988 <IMFS_memfile_remove+0x14c><== NOT EXECUTED
ffc16948: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc1694c: 3b e0 00 00 li r31,0 <== NOT EXECUTED
if ( p[j] ) {
ffc16950: 54 63 10 3a rlwinm r3,r3,2,0,29 <== NOT EXECUTED
ffc16954: 7c 1e 18 2e lwzx r0,r30,r3 <== NOT EXECUTED
ffc16958: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc1695c: 41 9e 00 10 beq- cr7,ffc1696c <IMFS_memfile_remove+0x130><== NOT EXECUTED
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
ffc16960: 7c 7e 1a 14 add r3,r30,r3 <== NOT EXECUTED
ffc16964: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED
ffc16968: 4b ff fd b1 bl ffc16718 <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++ ) {
ffc1696c: 80 1d 00 00 lwz r0,0(r29) <== NOT EXECUTED
ffc16970: 3b ff 00 01 addi r31,r31,1 <== NOT EXECUTED
ffc16974: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc16978: 54 00 f0 be rlwinm r0,r0,30,2,31 <== NOT EXECUTED
ffc1697c: 7f 80 f8 40 cmplw cr7,r0,r31 <== NOT EXECUTED
ffc16980: 41 9d ff d0 bgt+ cr7,ffc16950 <IMFS_memfile_remove+0x114><== NOT EXECUTED
ffc16984: 80 7a 00 60 lwz r3,96(r26) <== NOT EXECUTED
if ( p[j] ) {
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
}
}
memfile_free_blocks_in_table(
ffc16988: 7c 63 ca 14 add r3,r3,r25 <== NOT EXECUTED
ffc1698c: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED
ffc16990: 4b ff fd 89 bl ffc16718 <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++ ) {
ffc16994: 80 1d 00 00 lwz r0,0(r29) <== NOT EXECUTED
ffc16998: 3b 7b 00 01 addi r27,r27,1 <== NOT EXECUTED
ffc1699c: 54 00 f0 be rlwinm r0,r0,30,2,31 <== NOT EXECUTED
ffc169a0: 7f 80 d8 40 cmplw cr7,r0,r27 <== NOT EXECUTED
ffc169a4: 40 9d 00 18 ble- cr7,ffc169bc <IMFS_memfile_remove+0x180><== NOT EXECUTED
p = (block_p *) info->triply_indirect[i];
ffc169a8: 80 7a 00 60 lwz r3,96(r26) <== NOT EXECUTED
if ( !p ) /* ensure we have a valid pointer */
ffc169ac: 57 79 10 3a rlwinm r25,r27,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];
ffc169b0: 7f c3 c8 2e lwzx r30,r3,r25 <== NOT EXECUTED
if ( !p ) /* ensure we have a valid pointer */
ffc169b4: 2f 9e 00 00 cmpwi cr7,r30,0 <== NOT EXECUTED
ffc169b8: 40 9e ff 88 bne+ cr7,ffc16940 <IMFS_memfile_remove+0x104><== NOT EXECUTED
}
}
memfile_free_blocks_in_table(
(block_p **)&info->triply_indirect[i], to_free );
}
memfile_free_blocks_in_table(
ffc169bc: 38 7a 00 60 addi r3,r26,96 <== NOT EXECUTED
ffc169c0: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED
ffc169c4: 4b ff fd 55 bl ffc16718 <memfile_free_blocks_in_table><== NOT EXECUTED
(block_p **)&info->triply_indirect, to_free );
}
return 0;
}
ffc169c8: 80 01 00 2c lwz r0,44(r1)
ffc169cc: 38 60 00 00 li r3,0
ffc169d0: 83 21 00 0c lwz r25,12(r1)
ffc169d4: 7c 08 03 a6 mtlr r0
ffc169d8: 83 41 00 10 lwz r26,16(r1)
ffc169dc: 83 61 00 14 lwz r27,20(r1)
ffc169e0: 83 81 00 18 lwz r28,24(r1)
ffc169e4: 83 a1 00 1c lwz r29,28(r1)
ffc169e8: 83 c1 00 20 lwz r30,32(r1)
ffc169ec: 83 e1 00 24 lwz r31,36(r1)
ffc169f0: 38 21 00 28 addi r1,r1,40
ffc169f4: 4e 80 00 20 blr
/*
* Perform internal consistency checks
*/
assert( the_jnode );
ffc169f8: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc169fc: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc16a00: 38 a5 55 50 addi r5,r5,21840 <== NOT EXECUTED
ffc16a04: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc16a08: 38 63 56 14 addi r3,r3,22036 <== NOT EXECUTED
ffc16a0c: 38 a5 00 5c addi r5,r5,92 <== NOT EXECUTED
ffc16a10: 38 c6 56 5c addi r6,r6,22108 <== NOT EXECUTED
ffc16a14: 38 80 01 ee li r4,494 <== NOT EXECUTED
ffc16a18: 4b fe f0 d1 bl ffc05ae8 <__assert_func> <== NOT EXECUTED
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
ffc16a1c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc16a20: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc16a24: 38 a5 55 50 addi r5,r5,21840 <== NOT EXECUTED
ffc16a28: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc16a2c: 38 63 56 14 addi r3,r3,22036 <== NOT EXECUTED
ffc16a30: 38 a5 00 5c addi r5,r5,92 <== NOT EXECUTED
ffc16a34: 38 c6 56 68 addi r6,r6,22120 <== NOT EXECUTED
ffc16a38: 38 80 01 f2 li r4,498 <== NOT EXECUTED
ffc16a3c: 4b fe f0 ad bl ffc05ae8 <__assert_func> <== NOT EXECUTED
ffc167d8 <IMFS_memfile_remove_block>:
MEMFILE_STATIC int IMFS_memfile_remove_block(
IMFS_jnode_t *the_jnode,
unsigned int block
)
{
ffc167d8: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED
ffc167dc: 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 );
ffc167e0: 38 a0 00 00 li r5,0 <== NOT EXECUTED
MEMFILE_STATIC int IMFS_memfile_remove_block(
IMFS_jnode_t *the_jnode,
unsigned int block
)
{
ffc167e4: 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 );
ffc167e8: 4b ff fc 91 bl ffc16478 <IMFS_memfile_get_block_pointer><== NOT EXECUTED
assert( block_ptr );
ffc167ec: 7c 69 1b 79 mr. r9,r3 <== NOT EXECUTED
ffc167f0: 41 82 00 28 beq- ffc16818 <IMFS_memfile_remove_block+0x40><== NOT EXECUTED
if ( block_ptr ) {
ptr = *block_ptr;
*block_ptr = 0;
ffc167f4: 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;
ffc167f8: 80 69 00 00 lwz r3,0(r9) <== NOT EXECUTED
*block_ptr = 0;
ffc167fc: 90 09 00 00 stw r0,0(r9) <== NOT EXECUTED
memfile_free_block( ptr );
ffc16800: 4b ff fc 05 bl ffc16404 <memfile_free_block> <== NOT EXECUTED
}
return 1;
}
ffc16804: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc16808: 38 60 00 01 li r3,1 <== NOT EXECUTED
ffc1680c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc16810: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc16814: 4e 80 00 20 blr <== NOT EXECUTED
{
block_p *block_ptr;
block_p ptr;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
ffc16818: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc1681c: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc16820: 38 a5 55 50 addi r5,r5,21840 <== NOT EXECUTED
ffc16824: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc16828: 38 63 56 14 addi r3,r3,22036 <== NOT EXECUTED
ffc1682c: 38 a5 00 40 addi r5,r5,64 <== NOT EXECUTED
ffc16830: 38 c6 56 98 addi r6,r6,22168 <== NOT EXECUTED
ffc16834: 38 80 01 96 li r4,406 <== NOT EXECUTED
ffc16838: 4b fe f2 b1 bl ffc05ae8 <__assert_func> <== NOT EXECUTED
ffc16fe4 <IMFS_memfile_write>:
IMFS_jnode_t *the_jnode,
off_t start,
const unsigned char *source,
unsigned int length
)
{
ffc16fe4: 94 21 ff c0 stwu r1,-64(r1)
ffc16fe8: 7c 08 02 a6 mflr r0
ffc16fec: 93 e1 00 3c stw r31,60(r1)
/*
* Perform internal consistency checks
*/
assert( the_jnode );
ffc16ff0: 7c 7f 1b 79 mr. r31,r3
IMFS_jnode_t *the_jnode,
off_t start,
const unsigned char *source,
unsigned int length
)
{
ffc16ff4: 93 41 00 28 stw r26,40(r1)
ffc16ff8: 7d 1a 43 78 mr r26,r8
ffc16ffc: 93 81 00 30 stw r28,48(r1)
ffc17000: 7c fc 3b 78 mr r28,r7
ffc17004: 93 a1 00 34 stw r29,52(r1)
ffc17008: 7c bd 2b 78 mr r29,r5
ffc1700c: 93 c1 00 38 stw r30,56(r1)
ffc17010: 7c de 33 78 mr r30,r6
ffc17014: 90 01 00 44 stw r0,68(r1)
ffc17018: 92 e1 00 1c stw r23,28(r1)
ffc1701c: 93 01 00 20 stw r24,32(r1)
ffc17020: 93 21 00 24 stw r25,36(r1)
ffc17024: 93 61 00 2c stw r27,44(r1)
/*
* Perform internal consistency checks
*/
assert( the_jnode );
ffc17028: 41 82 02 54 beq- ffc1727c <IMFS_memfile_write+0x298>
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
ffc1702c: 80 1f 00 4c lwz r0,76(r31)
ffc17030: 2f 80 00 05 cmpwi cr7,r0,5
ffc17034: 40 9e 02 24 bne- cr7,ffc17258 <IMFS_memfile_write+0x274>
/*
* Error check arguments
*/
assert( source );
ffc17038: 2f 87 00 00 cmpwi cr7,r7,0
ffc1703c: 41 9e 02 ac beq- cr7,ffc172e8 <IMFS_memfile_write+0x304>
/*
* If there is nothing to write, then quick exit.
*/
my_length = length;
if ( !my_length )
ffc17040: 2f 88 00 00 cmpwi cr7,r8,0
ffc17044: 41 9e 01 dc beq- cr7,ffc17220 <IMFS_memfile_write+0x23c>
* 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 ) {
ffc17048: 80 1f 00 50 lwz r0,80(r31)
ffc1704c: 7c c8 32 14 add r6,r8,r6
ffc17050: 2f 80 00 00 cmpwi cr7,r0,0
ffc17054: 41 9c 01 78 blt- cr7,ffc171cc <IMFS_memfile_write+0x1e8>
ffc17058: 41 9e 01 68 beq- cr7,ffc171c0 <IMFS_memfile_write+0x1dc>
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc1705c: 3f 20 00 00 lis r25,0
ffc17060: 83 79 27 24 lwz r27,10020(r25)
ffc17064: 7f a3 eb 78 mr r3,r29
ffc17068: 7f c4 f3 78 mr r4,r30
ffc1706c: 7f 78 fe 70 srawi r24,r27,31
ffc17070: 7f 05 c3 78 mr r5,r24
ffc17074: 7f 66 db 78 mr r6,r27
ffc17078: 48 00 b9 51 bl ffc229c8 <__moddi3>
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc1707c: 7f a3 eb 78 mr r3,r29
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc17080: 7c 97 23 78 mr r23,r4
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc17084: 7f 05 c3 78 mr r5,r24
ffc17088: 7f c4 f3 78 mr r4,r30
ffc1708c: 7f 66 db 78 mr r6,r27
ffc17090: 48 00 b5 35 bl ffc225c4 <__divdi3>
if ( start_offset ) {
ffc17094: 2f 97 00 00 cmpwi cr7,r23,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;
ffc17098: 7c 9e 23 78 mr r30,r4
if ( start_offset ) {
ffc1709c: 3b a0 00 00 li r29,0
ffc170a0: 40 9e 00 d8 bne- cr7,ffc17178 <IMFS_memfile_write+0x194>
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
ffc170a4: 7f 9a d8 40 cmplw cr7,r26,r27
ffc170a8: 41 9c 00 4c blt- cr7,ffc170f4 <IMFS_memfile_write+0x110>
ffc170ac: 3b 39 27 24 addi r25,r25,10020
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc170b0: 7f e3 fb 78 mr r3,r31
ffc170b4: 7f c4 f3 78 mr r4,r30
ffc170b8: 38 a0 00 00 li r5,0
ffc170bc: 4b ff f3 bd bl ffc16478 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
ffc170c0: 2c 03 00 00 cmpwi r3,0
ffc170c4: 41 82 01 70 beq- ffc17234 <IMFS_memfile_write+0x250>
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 );
ffc170c8: 80 63 00 00 lwz r3,0(r3)
ffc170cc: 7f 84 e3 78 mr r4,r28
ffc170d0: 7f 65 db 78 mr r5,r27
ffc170d4: 48 00 22 25 bl ffc192f8 <memcpy>
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
ffc170d8: 80 19 00 00 lwz r0,0(r25)
fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src );
#endif
memcpy( &(*block_ptr)[ 0 ], src, to_copy );
src += to_copy;
block++;
my_length -= to_copy;
ffc170dc: 7f 5b d0 50 subf r26,r27,r26
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
ffc170e0: 7f 80 d0 40 cmplw cr7,r0,r26
return copied;
#if 0
fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src );
#endif
memcpy( &(*block_ptr)[ 0 ], src, to_copy );
src += to_copy;
ffc170e4: 7f 9c da 14 add r28,r28,r27
block++;
ffc170e8: 3b de 00 01 addi r30,r30,1
*
* 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(
ffc170ec: 7f bd da 14 add r29,r29,r27
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
ffc170f0: 40 9d ff c0 ble+ cr7,ffc170b0 <IMFS_memfile_write+0xcc>
*/
assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );
to_copy = my_length;
if ( my_length ) {
ffc170f4: 2f 9a 00 00 cmpwi cr7,r26,0
ffc170f8: 41 9e 00 30 beq- cr7,ffc17128 <IMFS_memfile_write+0x144>
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc170fc: 7f c4 f3 78 mr r4,r30
ffc17100: 7f e3 fb 78 mr r3,r31
ffc17104: 38 a0 00 00 li r5,0
ffc17108: 4b ff f3 71 bl ffc16478 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
ffc1710c: 2c 03 00 00 cmpwi r3,0
ffc17110: 41 82 01 b4 beq- ffc172c4 <IMFS_memfile_write+0x2e0>
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 );
ffc17114: 80 63 00 00 lwz r3,0(r3)
ffc17118: 7f 84 e3 78 mr r4,r28
ffc1711c: 7f 45 d3 78 mr r5,r26
ffc17120: 48 00 21 d9 bl ffc192f8 <memcpy>
my_length = 0;
copied += to_copy;
ffc17124: 7f bd d2 14 add r29,r29,r26
}
IMFS_mtime_ctime_update( the_jnode );
ffc17128: 38 61 00 08 addi r3,r1,8
ffc1712c: 38 80 00 00 li r4,0
ffc17130: 4b fe ef e1 bl ffc06110 <gettimeofday>
ffc17134: 80 01 00 08 lwz r0,8(r1)
ffc17138: 90 1f 00 48 stw r0,72(r31)
ffc1713c: 90 1f 00 44 stw r0,68(r31)
return copied;
}
ffc17140: 80 01 00 44 lwz r0,68(r1)
ffc17144: 7f a3 eb 78 mr r3,r29
ffc17148: 82 e1 00 1c lwz r23,28(r1)
ffc1714c: 7c 08 03 a6 mtlr r0
ffc17150: 83 01 00 20 lwz r24,32(r1)
ffc17154: 83 21 00 24 lwz r25,36(r1)
ffc17158: 83 41 00 28 lwz r26,40(r1)
ffc1715c: 83 61 00 2c lwz r27,44(r1)
ffc17160: 83 81 00 30 lwz r28,48(r1)
ffc17164: 83 a1 00 34 lwz r29,52(r1)
ffc17168: 83 c1 00 38 lwz r30,56(r1)
ffc1716c: 83 e1 00 3c lwz r31,60(r1)
ffc17170: 38 21 00 40 addi r1,r1,64
ffc17174: 4e 80 00 20 blr
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
if ( start_offset ) {
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;
if ( to_copy > my_length )
to_copy = my_length;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc17178: 7f e3 fb 78 mr r3,r31
ffc1717c: 38 a0 00 00 li r5,0
ffc17180: 4b ff f2 f9 bl ffc16478 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
ffc17184: 2c 03 00 00 cmpwi r3,0
ffc17188: 41 82 01 18 beq- ffc172a0 <IMFS_memfile_write+0x2bc>
*/
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;
ffc1718c: 7f b7 d8 50 subf r29,r23,r27
ffc17190: 7f 9d d0 40 cmplw cr7,r29,r26
ffc17194: 41 9d 00 60 bgt- cr7,ffc171f4 <IMFS_memfile_write+0x210>
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 );
ffc17198: 80 63 00 00 lwz r3,0(r3)
ffc1719c: 7f 84 e3 78 mr r4,r28
ffc171a0: 7f a5 eb 78 mr r5,r29
ffc171a4: 7c 63 ba 14 add r3,r3,r23
ffc171a8: 48 00 21 51 bl ffc192f8 <memcpy>
src += to_copy;
ffc171ac: 7f 9c ea 14 add r28,r28,r29
block++;
my_length -= to_copy;
copied += to_copy;
ffc171b0: 83 79 27 24 lwz r27,10020(r25)
#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 );
src += to_copy;
block++;
ffc171b4: 3b de 00 01 addi r30,r30,1
my_length -= to_copy;
ffc171b8: 7f 5d d0 50 subf r26,r29,r26
ffc171bc: 4b ff fe e8 b ffc170a4 <IMFS_memfile_write+0xc0>
* 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 ) {
ffc171c0: 80 1f 00 54 lwz r0,84(r31)
ffc171c4: 7f 80 30 40 cmplw cr7,r0,r6
ffc171c8: 40 9c fe 94 bge+ cr7,ffc1705c <IMFS_memfile_write+0x78>
status = IMFS_memfile_extend( the_jnode, last_byte );
ffc171cc: 7f e3 fb 78 mr r3,r31
ffc171d0: 38 a0 00 00 li r5,0
ffc171d4: 4b ff fa 55 bl ffc16c28 <IMFS_memfile_extend>
if ( status )
ffc171d8: 2f 83 00 00 cmpwi cr7,r3,0
ffc171dc: 41 9e fe 80 beq+ cr7,ffc1705c <IMFS_memfile_write+0x78>
rtems_set_errno_and_return_minus_one( ENOSPC );
ffc171e0: 48 00 15 31 bl ffc18710 <__errno> <== NOT EXECUTED
ffc171e4: 38 00 00 1c li r0,28 <== NOT EXECUTED
ffc171e8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc171ec: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
ffc171f0: 4b ff ff 50 b ffc17140 <IMFS_memfile_write+0x15c> <== NOT EXECUTED
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 );
ffc171f4: 80 63 00 00 lwz r3,0(r3)
*/
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;
ffc171f8: 7f 5d d3 78 mr r29,r26
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 );
ffc171fc: 7f 84 e3 78 mr r4,r28
ffc17200: 7c 63 ba 14 add r3,r3,r23
ffc17204: 7f a5 eb 78 mr r5,r29
ffc17208: 48 00 20 f1 bl ffc192f8 <memcpy>
src += to_copy;
ffc1720c: 7f 9c ea 14 add r28,r28,r29
block++;
my_length -= to_copy;
copied += to_copy;
ffc17210: 83 79 27 24 lwz r27,10020(r25)
#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 );
src += to_copy;
block++;
ffc17214: 3b de 00 01 addi r30,r30,1
my_length -= to_copy;
ffc17218: 7f 5d d0 50 subf r26,r29,r26
ffc1721c: 4b ff fe 88 b ffc170a4 <IMFS_memfile_write+0xc0>
* If there is nothing to write, then quick exit.
*/
my_length = length;
if ( !my_length )
rtems_set_errno_and_return_minus_one( EINVAL );
ffc17220: 48 00 14 f1 bl ffc18710 <__errno> <== NOT EXECUTED
ffc17224: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc17228: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc1722c: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
ffc17230: 4b ff ff 10 b ffc17140 <IMFS_memfile_write+0x15c> <== NOT EXECUTED
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
ffc17234: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc17238: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc1723c: 38 a5 55 50 addi r5,r5,21840 <== NOT EXECUTED
ffc17240: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc17244: 38 63 56 14 addi r3,r3,22036 <== NOT EXECUTED
ffc17248: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED
ffc1724c: 38 c6 56 98 addi r6,r6,22168 <== NOT EXECUTED
ffc17250: 38 80 03 30 li r4,816 <== NOT EXECUTED
ffc17254: 4b fe e8 95 bl ffc05ae8 <__assert_func> <== NOT EXECUTED
assert( the_jnode );
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
ffc17258: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc1725c: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc17260: 38 a5 55 50 addi r5,r5,21840 <== NOT EXECUTED
ffc17264: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc17268: 38 63 56 14 addi r3,r3,22036 <== NOT EXECUTED
ffc1726c: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED
ffc17270: 38 c6 56 68 addi r6,r6,22120 <== NOT EXECUTED
ffc17274: 38 80 02 e7 li r4,743 <== NOT EXECUTED
ffc17278: 4b fe e8 71 bl ffc05ae8 <__assert_func> <== NOT EXECUTED
/*
* Perform internal consistency checks
*/
assert( the_jnode );
ffc1727c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc17280: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc17284: 38 a5 55 50 addi r5,r5,21840 <== NOT EXECUTED
ffc17288: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc1728c: 38 63 56 14 addi r3,r3,22036 <== NOT EXECUTED
ffc17290: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED
ffc17294: 38 c6 56 5c addi r6,r6,22108 <== NOT EXECUTED
ffc17298: 38 80 02 e3 li r4,739 <== NOT EXECUTED
ffc1729c: 4b fe e8 4d bl ffc05ae8 <__assert_func> <== NOT EXECUTED
if ( start_offset ) {
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;
if ( to_copy > my_length )
to_copy = my_length;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
ffc172a0: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc172a4: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc172a8: 38 a5 55 50 addi r5,r5,21840 <== NOT EXECUTED
ffc172ac: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc172b0: 38 63 56 14 addi r3,r3,22036 <== NOT EXECUTED
ffc172b4: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED
ffc172b8: 38 c6 56 98 addi r6,r6,22168 <== NOT EXECUTED
ffc172bc: 38 80 03 1c li r4,796 <== NOT EXECUTED
ffc172c0: 4b fe e8 29 bl ffc05ae8 <__assert_func> <== NOT EXECUTED
assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );
to_copy = my_length;
if ( my_length ) {
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
ffc172c4: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc172c8: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc172cc: 38 a5 55 50 addi r5,r5,21840 <== NOT EXECUTED
ffc172d0: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc172d4: 38 63 56 14 addi r3,r3,22036 <== NOT EXECUTED
ffc172d8: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED
ffc172dc: 38 c6 56 98 addi r6,r6,22168 <== NOT EXECUTED
ffc172e0: 38 80 03 46 li r4,838 <== NOT EXECUTED
ffc172e4: 4b fe e8 05 bl ffc05ae8 <__assert_func> <== NOT EXECUTED
/*
* Error check arguments
*/
assert( source );
ffc172e8: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc172ec: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc172f0: 38 a5 55 50 addi r5,r5,21840 <== NOT EXECUTED
ffc172f4: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc172f8: 38 63 56 14 addi r3,r3,22036 <== NOT EXECUTED
ffc172fc: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED
ffc17300: 38 c6 56 a4 addi r6,r6,22180 <== NOT EXECUTED
ffc17304: 38 80 02 ef li r4,751 <== NOT EXECUTED
ffc17308: 4b fe e7 e1 bl ffc05ae8 <__assert_func> <== NOT EXECUTED
ffc0dd78 <IMFS_mknod>:
const char *token, /* IN */
mode_t mode, /* IN */
dev_t dev, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
ffc0dd78: 94 21 ff 90 stwu r1,-112(r1)
ffc0dd7c: 7c 08 02 a6 mflr r0
ffc0dd80: 93 41 00 58 stw r26,88(r1)
ffc0dd84: 7c 7a 1b 78 mr r26,r3
ffc0dd88: 90 01 00 74 stw r0,116(r1)
ffc0dd8c: 93 61 00 5c stw r27,92(r1)
ffc0dd90: 7c fb 3b 78 mr r27,r7
ffc0dd94: 93 81 00 60 stw r28,96(r1)
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 );
ffc0dd98: 3b 81 00 28 addi r28,r1,40
const char *token, /* IN */
mode_t mode, /* IN */
dev_t dev, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
ffc0dd9c: 93 a1 00 64 stw r29,100(r1)
ffc0dda0: 7c bd 2b 78 mr r29,r5
ffc0dda4: 93 c1 00 68 stw r30,104(r1)
ffc0dda8: 7c de 33 78 mr r30,r6
ffc0ddac: 93 e1 00 6c stw r31,108(r1)
ffc0ddb0: 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 );
ffc0ddb4: 48 00 51 01 bl ffc12eb4 <strlen>
ffc0ddb8: 7f 85 e3 78 mr r5,r28
ffc0ddbc: 7c 64 1b 78 mr r4,r3
ffc0ddc0: 38 c1 00 08 addi r6,r1,8
ffc0ddc4: 7f 43 d3 78 mr r3,r26
ffc0ddc8: 4b ff fd 6d bl ffc0db34 <IMFS_get_token>
/*
* Figure out what type of IMFS node this is.
*/
if ( S_ISDIR(mode) )
ffc0ddcc: 57 e0 04 26 rlwinm r0,r31,0,16,19
ffc0ddd0: 2f 80 40 00 cmpwi cr7,r0,16384
ffc0ddd4: 41 9e 00 8c beq- cr7,ffc0de60 <IMFS_mknod+0xe8>
type = IMFS_DIRECTORY;
else if ( S_ISREG(mode) )
ffc0ddd8: 39 20 00 00 li r9,0
ffc0dddc: 61 29 80 00 ori r9,r9,32768
ffc0dde0: 7f 80 48 00 cmpw cr7,r0,r9
ffc0dde4: 38 80 00 05 li r4,5
ffc0dde8: 41 9e 00 20 beq- cr7,ffc0de08 <IMFS_mknod+0x90>
type = IMFS_MEMORY_FILE;
else if ( S_ISBLK(mode) || S_ISCHR(mode) ) {
ffc0ddec: 2f 80 60 00 cmpwi cr7,r0,24576
ffc0ddf0: 41 9e 00 60 beq- cr7,ffc0de50 <IMFS_mknod+0xd8>
ffc0ddf4: 2f 80 20 00 cmpwi cr7,r0,8192
ffc0ddf8: 41 9e 00 58 beq- cr7,ffc0de50 <IMFS_mknod+0xd8>
type = IMFS_DEVICE;
rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor );
}
else if (S_ISFIFO(mode))
ffc0ddfc: 2f 80 10 00 cmpwi cr7,r0,4096
ffc0de00: 38 80 00 07 li r4,7
ffc0de04: 40 9e 00 64 bne- cr7,ffc0de68 <IMFS_mknod+0xf0>
* 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(
ffc0de08: 7f 63 db 78 mr r3,r27
ffc0de0c: 7f 85 e3 78 mr r5,r28
ffc0de10: 7f e6 fb 78 mr r6,r31
ffc0de14: 38 e1 00 10 addi r7,r1,16
ffc0de18: 48 00 29 ed bl ffc10804 <IMFS_create_node>
new_name,
mode,
&info
);
if ( !new_node )
ffc0de1c: 2f 83 00 00 cmpwi cr7,r3,0
ffc0de20: 38 60 00 00 li r3,0
ffc0de24: 41 9e 00 58 beq- cr7,ffc0de7c <IMFS_mknod+0x104>
rtems_set_errno_and_return_minus_one( ENOMEM );
return 0;
}
ffc0de28: 80 01 00 74 lwz r0,116(r1)
ffc0de2c: 83 41 00 58 lwz r26,88(r1)
ffc0de30: 7c 08 03 a6 mtlr r0
ffc0de34: 83 61 00 5c lwz r27,92(r1)
ffc0de38: 83 81 00 60 lwz r28,96(r1)
ffc0de3c: 83 a1 00 64 lwz r29,100(r1)
ffc0de40: 83 c1 00 68 lwz r30,104(r1)
ffc0de44: 83 e1 00 6c lwz r31,108(r1)
ffc0de48: 38 21 00 70 addi r1,r1,112
ffc0de4c: 4e 80 00 20 blr
type = IMFS_DIRECTORY;
else if ( S_ISREG(mode) )
type = IMFS_MEMORY_FILE;
else if ( S_ISBLK(mode) || S_ISCHR(mode) ) {
type = IMFS_DEVICE;
rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor );
ffc0de50: 93 a1 00 10 stw r29,16(r1)
ffc0de54: 38 80 00 02 li r4,2
ffc0de58: 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) ) {
ffc0de5c: 4b ff ff ac b ffc0de08 <IMFS_mknod+0x90>
rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor );
}
else if (S_ISFIFO(mode))
type = IMFS_FIFO;
else {
rtems_set_errno_and_return_minus_one( EINVAL );
ffc0de60: 38 80 00 01 li r4,1
ffc0de64: 4b ff ff a4 b ffc0de08 <IMFS_mknod+0x90>
ffc0de68: 48 00 3d 51 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc0de6c: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc0de70: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc0de74: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc0de78: 4b ff ff b0 b ffc0de28 <IMFS_mknod+0xb0> <== NOT EXECUTED
mode,
&info
);
if ( !new_node )
rtems_set_errno_and_return_minus_one( ENOMEM );
ffc0de7c: 48 00 3d 3d bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc0de80: 38 00 00 0c li r0,12 <== NOT EXECUTED
ffc0de84: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc0de88: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc0de8c: 4b ff ff 9c b ffc0de28 <IMFS_mknod+0xb0> <== NOT EXECUTED
ffc05558 <IMFS_mount>:
#include <rtems/seterr.h>
int IMFS_mount(
rtems_filesystem_mount_table_entry_t *mt_entry
)
{
ffc05558: 7c 08 02 a6 mflr r0
ffc0555c: 94 21 ff f8 stwu r1,-8(r1)
ffc05560: 90 01 00 0c stw r0,12(r1)
IMFS_jnode_t *node;
node = mt_entry->mt_point_node.node_access;
ffc05564: 81 23 00 08 lwz r9,8(r3)
/*
* Is the node that we are mounting onto a directory node ?
*/
if ( node->type != IMFS_DIRECTORY )
ffc05568: 80 09 00 4c lwz r0,76(r9)
ffc0556c: 2f 80 00 01 cmpwi cr7,r0,1
ffc05570: 40 9e 00 1c bne- cr7,ffc0558c <IMFS_mount+0x34>
/*
* Set mt_fs pointer to point to the mount table entry for
* the mounted file system.
*/
node->info.directory.mt_fs = mt_entry;
ffc05574: 90 69 00 5c stw r3,92(r9)
ffc05578: 38 60 00 00 li r3,0
return 0;
}
ffc0557c: 80 01 00 0c lwz r0,12(r1)
ffc05580: 38 21 00 08 addi r1,r1,8
ffc05584: 7c 08 03 a6 mtlr r0
ffc05588: 4e 80 00 20 blr
/*
* Is the node that we are mounting onto a directory node ?
*/
if ( node->type != IMFS_DIRECTORY )
rtems_set_errno_and_return_minus_one( ENOTDIR );
ffc0558c: 48 01 31 85 bl ffc18710 <__errno> <== NOT EXECUTED
ffc05590: 38 00 00 14 li r0,20 <== NOT EXECUTED
ffc05594: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc05598: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc0559c: 4b ff ff e0 b ffc0557c <IMFS_mount+0x24> <== NOT EXECUTED
ffc063fc <IMFS_print_jnode>:
*/
void IMFS_print_jnode(
IMFS_jnode_t *the_jnode
)
{
ffc063fc: 94 21 ff f0 stwu r1,-16(r1)
ffc06400: 7c 08 02 a6 mflr r0
ffc06404: 93 e1 00 0c stw r31,12(r1)
assert( the_jnode );
ffc06408: 7c 7f 1b 79 mr. r31,r3
*/
void IMFS_print_jnode(
IMFS_jnode_t *the_jnode
)
{
ffc0640c: 90 01 00 14 stw r0,20(r1)
ffc06410: 93 c1 00 08 stw r30,8(r1)
assert( the_jnode );
ffc06414: 41 82 02 28 beq- ffc0663c <IMFS_print_jnode+0x240>
fprintf(stdout, "%s", the_jnode->name );
ffc06418: 3f c0 00 00 lis r30,0
ffc0641c: 81 3e 27 0c lwz r9,9996(r30)
ffc06420: 38 7f 00 0c addi r3,r31,12
ffc06424: 80 89 00 08 lwz r4,8(r9)
ffc06428: 48 01 1c ad bl ffc180d4 <fputs>
switch( the_jnode->type ) {
ffc0642c: 80 bf 00 4c lwz r5,76(r31)
ffc06430: 2b 85 00 07 cmplwi cr7,r5,7
ffc06434: 40 9d 00 3c ble- cr7,ffc06470 <IMFS_print_jnode+0x74>
fprintf(stdout, " FIFO not printed\n" );
assert(0);
break;
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
ffc06438: 81 3e 27 0c lwz r9,9996(r30) <== NOT EXECUTED
ffc0643c: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED
ffc06440: 38 84 8a c0 addi r4,r4,-30016 <== NOT EXECUTED
ffc06444: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED
ffc06448: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc0644c: 48 01 1a 0d bl ffc17e58 <fprintf> <== NOT EXECUTED
assert(0);
ffc06450: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED
ffc06454: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED
ffc06458: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED
ffc0645c: 38 63 8a 0c addi r3,r3,-30196 <== NOT EXECUTED
ffc06460: 38 a5 89 e4 addi r5,r5,-30236 <== NOT EXECUTED
ffc06464: 38 c6 8a a8 addi r6,r6,-30040 <== NOT EXECUTED
ffc06468: 38 80 00 6c li r4,108 <== NOT EXECUTED
ffc0646c: 48 00 0c a9 bl ffc07114 <__assert_func> <== NOT EXECUTED
)
{
assert( the_jnode );
fprintf(stdout, "%s", the_jnode->name );
switch( the_jnode->type ) {
ffc06470: 3d 20 ff c3 lis r9,-61
ffc06474: 39 29 89 c4 addi r9,r9,-30268
ffc06478: 54 a0 10 3a rlwinm r0,r5,2,0,29
ffc0647c: 7c 09 00 2e lwzx r0,r9,r0
ffc06480: 7d 20 4a 14 add r9,r0,r9
ffc06484: 7d 29 03 a6 mtctr r9
ffc06488: 4e 80 04 20 bctr
fprintf(stdout, " links not printed\n" );
assert(0);
break;
case IMFS_FIFO:
fprintf(stdout, " FIFO not printed\n" );
ffc0648c: 81 3e 27 0c lwz r9,9996(r30) <== NOT EXECUTED
ffc06490: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED
ffc06494: 38 80 00 01 li r4,1 <== NOT EXECUTED
ffc06498: 80 c9 00 08 lwz r6,8(r9) <== NOT EXECUTED
ffc0649c: 38 a0 00 12 li r5,18 <== NOT EXECUTED
ffc064a0: 38 63 8a ac addi r3,r3,-30036 <== NOT EXECUTED
ffc064a4: 48 01 2a 25 bl ffc18ec8 <fwrite> <== NOT EXECUTED
assert(0);
ffc064a8: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED
ffc064ac: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED
ffc064b0: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED
ffc064b4: 38 63 8a 0c addi r3,r3,-30196 <== NOT EXECUTED
ffc064b8: 38 a5 89 e4 addi r5,r5,-30236 <== NOT EXECUTED
ffc064bc: 38 c6 8a a8 addi r6,r6,-30040 <== NOT EXECUTED
ffc064c0: 38 80 00 67 li r4,103 <== NOT EXECUTED
ffc064c4: 48 00 0c 51 bl ffc07114 <__assert_func> <== NOT EXECUTED
fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",
the_jnode->info.device.major, the_jnode->info.device.minor );
break;
case IMFS_LINEAR_FILE:
fprintf(stdout, " (file %" PRId32 " %p)",
ffc064c8: 81 3e 27 0c lwz r9,9996(r30) <== NOT EXECUTED
ffc064cc: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED
ffc064d0: 80 df 00 58 lwz r6,88(r31) <== NOT EXECUTED
ffc064d4: 38 84 8a 78 addi r4,r4,-30088 <== NOT EXECUTED
ffc064d8: 80 bf 00 54 lwz r5,84(r31) <== NOT EXECUTED
ffc064dc: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED
ffc064e0: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc064e4: 48 01 19 75 bl ffc17e58 <fprintf> <== NOT EXECUTED
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
assert(0);
break;
}
puts("");
ffc064e8: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc064ec: 38 63 7c 40 addi r3,r3,31808 <== NOT EXECUTED
ffc064f0: 48 01 3c 99 bl ffc1a188 <puts> <== NOT EXECUTED
}
ffc064f4: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc064f8: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED
ffc064fc: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc06500: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc06504: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc06508: 4e 80 00 20 blr <== NOT EXECUTED
the_jnode->info.file.indirect,
the_jnode->info.file.doubly_indirect,
the_jnode->info.file.triply_indirect
);
#else
fprintf(stdout, " (file %" PRId32 ")",
ffc0650c: 81 3e 27 0c lwz r9,9996(r30)
ffc06510: 3c 80 ff c3 lis r4,-61
ffc06514: 80 bf 00 54 lwz r5,84(r31)
ffc06518: 38 84 8a 88 addi r4,r4,-30072
ffc0651c: 80 69 00 08 lwz r3,8(r9)
ffc06520: 4c c6 31 82 crclr 4*cr1+eq
ffc06524: 48 01 19 35 bl ffc17e58 <fprintf>
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
assert(0);
break;
}
puts("");
ffc06528: 3c 60 ff c2 lis r3,-62
ffc0652c: 38 63 7c 40 addi r3,r3,31808
ffc06530: 48 01 3c 59 bl ffc1a188 <puts>
}
ffc06534: 80 01 00 14 lwz r0,20(r1)
ffc06538: 83 c1 00 08 lwz r30,8(r1)
ffc0653c: 7c 08 03 a6 mtlr r0
ffc06540: 83 e1 00 0c lwz r31,12(r1)
ffc06544: 38 21 00 10 addi r1,r1,16
ffc06548: 4e 80 00 20 blr
fprintf(stdout, " links not printed\n" );
assert(0);
break;
case IMFS_SYM_LINK:
fprintf(stdout, " links not printed\n" );
ffc0654c: 81 3e 27 0c lwz r9,9996(r30) <== NOT EXECUTED
ffc06550: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED
ffc06554: 38 80 00 01 li r4,1 <== NOT EXECUTED
ffc06558: 80 c9 00 08 lwz r6,8(r9) <== NOT EXECUTED
ffc0655c: 38 a0 00 13 li r5,19 <== NOT EXECUTED
ffc06560: 38 63 8a 94 addi r3,r3,-30060 <== NOT EXECUTED
ffc06564: 48 01 29 65 bl ffc18ec8 <fwrite> <== NOT EXECUTED
assert(0);
ffc06568: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED
ffc0656c: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED
ffc06570: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED
ffc06574: 38 63 8a 0c addi r3,r3,-30196 <== NOT EXECUTED
ffc06578: 38 a5 89 e4 addi r5,r5,-30236 <== NOT EXECUTED
ffc0657c: 38 c6 8a a8 addi r6,r6,-30040 <== NOT EXECUTED
ffc06580: 38 80 00 62 li r4,98 <== NOT EXECUTED
ffc06584: 48 00 0b 91 bl ffc07114 <__assert_func> <== NOT EXECUTED
(uint32_t)the_jnode->info.file.size );
#endif
break;
case IMFS_HARD_LINK:
fprintf(stdout, " links not printed\n" );
ffc06588: 81 3e 27 0c lwz r9,9996(r30) <== NOT EXECUTED
ffc0658c: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED
ffc06590: 38 80 00 01 li r4,1 <== NOT EXECUTED
ffc06594: 80 c9 00 08 lwz r6,8(r9) <== NOT EXECUTED
ffc06598: 38 a0 00 13 li r5,19 <== NOT EXECUTED
ffc0659c: 38 63 8a 94 addi r3,r3,-30060 <== NOT EXECUTED
ffc065a0: 48 01 29 29 bl ffc18ec8 <fwrite> <== NOT EXECUTED
assert(0);
ffc065a4: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED
ffc065a8: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED
ffc065ac: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED
ffc065b0: 38 63 8a 0c addi r3,r3,-30196 <== NOT EXECUTED
ffc065b4: 38 a5 89 e4 addi r5,r5,-30236 <== NOT EXECUTED
ffc065b8: 38 c6 8a a8 addi r6,r6,-30040 <== NOT EXECUTED
ffc065bc: 38 80 00 5d li r4,93 <== NOT EXECUTED
ffc065c0: 48 00 0b 55 bl ffc07114 <__assert_func> <== NOT EXECUTED
case IMFS_DIRECTORY:
fprintf(stdout, "/" );
break;
case IMFS_DEVICE:
fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",
ffc065c4: 81 3e 27 0c lwz r9,9996(r30)
ffc065c8: 3c 80 ff c3 lis r4,-61
ffc065cc: 80 df 00 54 lwz r6,84(r31)
ffc065d0: 38 84 8a 64 addi r4,r4,-30108
ffc065d4: 80 bf 00 50 lwz r5,80(r31)
ffc065d8: 80 69 00 08 lwz r3,8(r9)
ffc065dc: 4c c6 31 82 crclr 4*cr1+eq
ffc065e0: 48 01 18 79 bl ffc17e58 <fprintf>
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
assert(0);
break;
}
puts("");
ffc065e4: 3c 60 ff c2 lis r3,-62
ffc065e8: 38 63 7c 40 addi r3,r3,31808
ffc065ec: 48 01 3b 9d bl ffc1a188 <puts>
}
ffc065f0: 80 01 00 14 lwz r0,20(r1)
ffc065f4: 83 c1 00 08 lwz r30,8(r1)
ffc065f8: 7c 08 03 a6 mtlr r0
ffc065fc: 83 e1 00 0c lwz r31,12(r1)
ffc06600: 38 21 00 10 addi r1,r1,16
ffc06604: 4e 80 00 20 blr
assert( the_jnode );
fprintf(stdout, "%s", the_jnode->name );
switch( the_jnode->type ) {
case IMFS_DIRECTORY:
fprintf(stdout, "/" );
ffc06608: 81 3e 27 0c lwz r9,9996(r30)
ffc0660c: 38 60 00 2f li r3,47
ffc06610: 80 89 00 08 lwz r4,8(r9)
ffc06614: 48 01 19 55 bl ffc17f68 <fputc>
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
assert(0);
break;
}
puts("");
ffc06618: 3c 60 ff c2 lis r3,-62
ffc0661c: 38 63 7c 40 addi r3,r3,31808
ffc06620: 48 01 3b 69 bl ffc1a188 <puts>
}
ffc06624: 80 01 00 14 lwz r0,20(r1)
ffc06628: 83 c1 00 08 lwz r30,8(r1)
ffc0662c: 7c 08 03 a6 mtlr r0
ffc06630: 83 e1 00 0c lwz r31,12(r1)
ffc06634: 38 21 00 10 addi r1,r1,16
ffc06638: 4e 80 00 20 blr
void IMFS_print_jnode(
IMFS_jnode_t *the_jnode
)
{
assert( the_jnode );
ffc0663c: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED
ffc06640: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED
ffc06644: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED
ffc06648: 38 63 8a 0c addi r3,r3,-30196 <== NOT EXECUTED
ffc0664c: 38 a5 89 e4 addi r5,r5,-30236 <== NOT EXECUTED
ffc06650: 38 c6 8a 58 addi r6,r6,-30120 <== NOT EXECUTED
ffc06654: 38 80 00 38 li r4,56 <== NOT EXECUTED
ffc06658: 48 00 0a bd bl ffc07114 <__assert_func> <== NOT EXECUTED
ffc055ac <IMFS_readlink>:
int IMFS_readlink(
rtems_filesystem_location_info_t *loc,
char *buf, /* OUT */
size_t bufsize
)
{
ffc055ac: 7c 08 02 a6 mflr r0
ffc055b0: 94 21 ff f8 stwu r1,-8(r1)
ffc055b4: 90 01 00 0c stw r0,12(r1)
IMFS_jnode_t *node;
int i;
node = loc->node_access;
ffc055b8: 81 23 00 00 lwz r9,0(r3)
if ( node->type != IMFS_SYM_LINK )
ffc055bc: 80 09 00 4c lwz r0,76(r9)
ffc055c0: 2f 80 00 04 cmpwi cr7,r0,4
ffc055c4: 40 9e 00 64 bne- cr7,ffc05628 <IMFS_readlink+0x7c>
rtems_set_errno_and_return_minus_one( EINVAL );
for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
ffc055c8: 2f 85 00 00 cmpwi cr7,r5,0
ffc055cc: 41 9e 00 54 beq- cr7,ffc05620 <IMFS_readlink+0x74>
ffc055d0: 81 69 00 50 lwz r11,80(r9)
ffc055d4: 7c a9 03 a6 mtctr r5
int i;
node = loc->node_access;
if ( node->type != IMFS_SYM_LINK )
rtems_set_errno_and_return_minus_one( EINVAL );
ffc055d8: 38 60 00 00 li r3,0
for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
ffc055dc: 88 0b 00 00 lbz r0,0(r11)
int i;
node = loc->node_access;
if ( node->type != IMFS_SYM_LINK )
rtems_set_errno_and_return_minus_one( EINVAL );
ffc055e0: 39 60 00 00 li r11,0
for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
ffc055e4: 2f 80 00 00 cmpwi cr7,r0,0
ffc055e8: 40 be 00 18 bne+ cr7,ffc05600 <IMFS_readlink+0x54>
ffc055ec: 48 00 00 34 b ffc05620 <IMFS_readlink+0x74> <== NOT EXECUTED
ffc055f0: 81 49 00 50 lwz r10,80(r9)
ffc055f4: 7c 0a 18 ae lbzx r0,r10,r3
ffc055f8: 2f 80 00 00 cmpwi cr7,r0,0
ffc055fc: 41 9e 00 14 beq- cr7,ffc05610 <IMFS_readlink+0x64>
ffc05600: 38 63 00 01 addi r3,r3,1
buf[i] = node->info.sym_link.name[i];
ffc05604: 7c 04 59 ae stbx r0,r4,r11
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++ )
ffc05608: 7c 6b 1b 78 mr r11,r3
ffc0560c: 42 00 ff e4 bdnz+ ffc055f0 <IMFS_readlink+0x44>
buf[i] = node->info.sym_link.name[i];
return i;
}
ffc05610: 80 01 00 0c lwz r0,12(r1)
ffc05614: 38 21 00 08 addi r1,r1,8
ffc05618: 7c 08 03 a6 mtlr r0
ffc0561c: 4e 80 00 20 blr
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++ )
ffc05620: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc05624: 4b ff ff ec b ffc05610 <IMFS_readlink+0x64> <== NOT EXECUTED
int i;
node = loc->node_access;
if ( node->type != IMFS_SYM_LINK )
rtems_set_errno_and_return_minus_one( EINVAL );
ffc05628: 48 01 30 e9 bl ffc18710 <__errno> <== NOT EXECUTED
ffc0562c: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc05630: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc05634: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc05638: 4b ff ff d8 b ffc05610 <IMFS_readlink+0x64> <== NOT EXECUTED
ffc0563c <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 */
)
{
ffc0563c: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED
ffc05640: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc05644: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED
ffc05648: 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;
ffc0564c: 83 e4 00 00 lwz r31,0(r4) <== NOT EXECUTED
strncpy( the_jnode->name, new_name, IMFS_NAME_MAX );
ffc05650: 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 */
)
{
ffc05654: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED
ffc05658: 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 );
ffc0565c: 38 7f 00 0c addi r3,r31,12 <== NOT EXECUTED
ffc05660: 38 a0 00 20 li r5,32 <== NOT EXECUTED
ffc05664: 48 01 44 09 bl ffc19a6c <strncpy> <== NOT EXECUTED
if ( the_jnode->Parent != NULL )
ffc05668: 80 1f 00 08 lwz r0,8(r31) <== NOT EXECUTED
ffc0566c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc05670: 41 9e 00 0c beq- cr7,ffc0567c <IMFS_rename+0x40> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
ffc05674: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc05678: 48 00 5f 75 bl ffc0b5ec <_Chain_Extract> <== NOT EXECUTED
rtems_chain_extract( (rtems_chain_node *) the_jnode );
new_parent = new_parent_loc->node_access;
ffc0567c: 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 );
ffc05680: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
the_jnode->Parent = new_parent;
ffc05684: 90 7f 00 08 stw r3,8(r31) <== NOT EXECUTED
ffc05688: 38 63 00 50 addi r3,r3,80 <== NOT EXECUTED
ffc0568c: 48 00 5f 31 bl ffc0b5bc <_Chain_Append> <== NOT EXECUTED
rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node );
/*
* Update the time.
*/
IMFS_update_ctime( the_jnode );
ffc05690: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED
ffc05694: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc05698: 48 00 0a 79 bl ffc06110 <gettimeofday> <== NOT EXECUTED
ffc0569c: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED
return 0;
}
ffc056a0: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc056a4: 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 );
ffc056a8: 90 1f 00 48 stw r0,72(r31) <== NOT EXECUTED
return 0;
}
ffc056ac: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED
ffc056b0: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED
ffc056b4: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED
ffc056b8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc056bc: 4e 80 00 20 blr <== NOT EXECUTED
ffc0de9c <IMFS_rmnod>:
int IMFS_rmnod(
rtems_filesystem_location_info_t *parent_pathloc, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN */
)
{
ffc0de9c: 94 21 ff e0 stwu r1,-32(r1)
ffc0dea0: 7c 08 02 a6 mflr r0
ffc0dea4: 90 01 00 24 stw r0,36(r1)
ffc0dea8: 93 e1 00 1c stw r31,28(r1)
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) pathloc->node_access;
ffc0deac: 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 */
)
{
ffc0deb0: 93 c1 00 18 stw r30,24(r1)
ffc0deb4: 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 ) {
ffc0deb8: 80 1f 00 08 lwz r0,8(r31)
ffc0debc: 2f 80 00 00 cmpwi cr7,r0,0
ffc0dec0: 41 9e 00 14 beq- cr7,ffc0ded4 <IMFS_rmnod+0x38>
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
ffc0dec4: 7f e3 fb 78 mr r3,r31
ffc0dec8: 48 00 0e 79 bl ffc0ed40 <_Chain_Extract>
rtems_chain_extract( (rtems_chain_node *) the_jnode );
the_jnode->Parent = NULL;
ffc0decc: 38 00 00 00 li r0,0
ffc0ded0: 90 1f 00 08 stw r0,8(r31)
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
ffc0ded4: a1 3f 00 34 lhz r9,52(r31)
IMFS_update_ctime( the_jnode );
ffc0ded8: 38 80 00 00 li r4,0
ffc0dedc: 38 61 00 08 addi r3,r1,8
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
ffc0dee0: 38 09 ff ff addi r0,r9,-1
ffc0dee4: b0 1f 00 34 sth r0,52(r31)
IMFS_update_ctime( the_jnode );
ffc0dee8: 48 00 04 01 bl ffc0e2e8 <gettimeofday>
ffc0deec: 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) ) {
ffc0def0: 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 );
ffc0def4: 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) ) {
ffc0def8: 48 00 04 e1 bl ffc0e3d8 <rtems_libio_is_file_open>
ffc0defc: 2f 83 00 00 cmpwi cr7,r3,0
ffc0df00: 40 9e 00 3c bne- cr7,ffc0df3c <IMFS_rmnod+0xa0>
ffc0df04: a0 1f 00 34 lhz r0,52(r31)
ffc0df08: 2f 80 00 00 cmpwi cr7,r0,0
ffc0df0c: 40 9e 00 30 bne- cr7,ffc0df3c <IMFS_rmnod+0xa0>
/*
* Is rtems_filesystem_current this node?
*/
if ( rtems_filesystem_current.node_access == pathloc->node_access )
ffc0df10: 3d 20 00 00 lis r9,0
ffc0df14: 81 7e 00 00 lwz r11,0(r30)
ffc0df18: 81 29 26 9c lwz r9,9884(r9)
ffc0df1c: 81 49 00 04 lwz r10,4(r9)
ffc0df20: 7f 8a 58 00 cmpw cr7,r10,r11
ffc0df24: 41 9e 00 48 beq- cr7,ffc0df6c <IMFS_rmnod+0xd0>
/*
* Free memory associated with a memory file.
*/
if ( the_jnode->type == IMFS_SYM_LINK ) {
ffc0df28: 80 1f 00 4c lwz r0,76(r31)
ffc0df2c: 2f 80 00 04 cmpwi cr7,r0,4
ffc0df30: 41 9e 00 28 beq- cr7,ffc0df58 <IMFS_rmnod+0xbc>
if ( the_jnode->info.sym_link.name )
free( (void*) the_jnode->info.sym_link.name );
}
free( the_jnode );
ffc0df34: 7f e3 fb 78 mr r3,r31
ffc0df38: 4b ff 66 bd bl ffc045f4 <free>
}
return 0;
}
ffc0df3c: 80 01 00 24 lwz r0,36(r1)
ffc0df40: 38 60 00 00 li r3,0
ffc0df44: 83 c1 00 18 lwz r30,24(r1)
ffc0df48: 7c 08 03 a6 mtlr r0
ffc0df4c: 83 e1 00 1c lwz r31,28(r1)
ffc0df50: 38 21 00 20 addi r1,r1,32
ffc0df54: 4e 80 00 20 blr
/*
* Free memory associated with a memory file.
*/
if ( the_jnode->type == IMFS_SYM_LINK ) {
if ( the_jnode->info.sym_link.name )
ffc0df58: 80 7f 00 50 lwz r3,80(r31)
ffc0df5c: 2f 83 00 00 cmpwi cr7,r3,0
ffc0df60: 41 be ff d4 beq- cr7,ffc0df34 <IMFS_rmnod+0x98>
free( (void*) the_jnode->info.sym_link.name );
ffc0df64: 4b ff 66 91 bl ffc045f4 <free>
ffc0df68: 4b ff ff cc b ffc0df34 <IMFS_rmnod+0x98>
/*
* Is rtems_filesystem_current this node?
*/
if ( rtems_filesystem_current.node_access == pathloc->node_access )
rtems_filesystem_current.node_access = NULL;
ffc0df6c: 90 09 00 04 stw r0,4(r9) <== NOT EXECUTED
ffc0df70: 4b ff ff b8 b ffc0df28 <IMFS_rmnod+0x8c> <== NOT EXECUTED
ffc0df74 <IMFS_stat>:
int IMFS_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
ffc0df74: 7c 08 02 a6 mflr r0
ffc0df78: 94 21 ff f8 stwu r1,-8(r1)
ffc0df7c: 7c 6b 1b 78 mr r11,r3
ffc0df80: 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;
ffc0df84: 81 23 00 00 lwz r9,0(r3)
switch ( the_jnode->type ) {
ffc0df88: 80 09 00 4c lwz r0,76(r9)
ffc0df8c: 2b 80 00 07 cmplwi cr7,r0,7
ffc0df90: 40 9d 00 24 ble- cr7,ffc0dfb4 <IMFS_stat+0x40>
case IMFS_FIFO:
buf->st_size = 0;
break;
default:
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc0df94: 48 00 3c 25 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc0df98: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc0df9c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc0dfa0: 38 60 ff ff li r3,-1 <== NOT EXECUTED
buf->st_atime = the_jnode->stat_atime;
buf->st_mtime = the_jnode->stat_mtime;
buf->st_ctime = the_jnode->stat_ctime;
return 0;
}
ffc0dfa4: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc0dfa8: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc0dfac: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0dfb0: 4e 80 00 20 blr <== NOT EXECUTED
IMFS_device_t *io;
the_jnode = loc->node_access;
switch ( the_jnode->type ) {
ffc0dfb4: 3d 40 ff c2 lis r10,-62
ffc0dfb8: 39 4a e2 30 addi r10,r10,-7632
ffc0dfbc: 54 00 10 3a rlwinm r0,r0,2,0,29
ffc0dfc0: 7c 0a 00 2e lwzx r0,r10,r0
ffc0dfc4: 7d 40 52 14 add r10,r0,r10
ffc0dfc8: 7d 49 03 a6 mtctr r10
ffc0dfcc: 4e 80 04 20 bctr
case IMFS_SYM_LINK:
buf->st_size = 0;
break;
case IMFS_FIFO:
buf->st_size = 0;
ffc0dfd0: 38 e0 00 00 li r7,0 <== NOT EXECUTED
ffc0dfd4: 39 00 00 00 li r8,0 <== NOT EXECUTED
ffc0dfd8: 90 e4 00 20 stw r7,32(r4) <== NOT EXECUTED
ffc0dfdc: 91 04 00 24 stw r8,36(r4) <== 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;
ffc0dfe0: 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;
ffc0dfe4: 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;
ffc0dfe8: 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;
ffc0dfec: 90 04 00 0c stw r0,12(r4)
buf->st_nlink = the_jnode->st_nlink;
buf->st_ino = the_jnode->st_ino;
ffc0dff0: 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;
ffc0dff4: b1 44 00 10 sth r10,16(r4)
buf->st_ino = the_jnode->st_ino;
ffc0dff8: 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;
ffc0dffc: 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;
ffc0e000: a1 49 00 3c lhz r10,60(r9)
buf->st_gid = the_jnode->st_gid;
buf->st_atime = the_jnode->stat_atime;
ffc0e004: 90 04 00 28 stw r0,40(r4)
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;
ffc0e008: 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;
ffc0e00c: 80 09 00 44 lwz r0,68(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 =
rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
ffc0e010: 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;
ffc0e014: 90 04 00 30 stw r0,48(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;
ffc0e018: 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 =
rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
ffc0e01c: 81 6b 00 34 lwz r11,52(r11)
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;
ffc0e020: 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;
}
ffc0e024: 80 01 00 0c lwz r0,12(r1)
ffc0e028: 38 21 00 08 addi r1,r1,8
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;
ffc0e02c: 81 49 00 48 lwz r10,72(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 =
ffc0e030: 39 20 00 00 li r9,0
buf->st_atime = the_jnode->stat_atime;
buf->st_mtime = the_jnode->stat_mtime;
buf->st_ctime = the_jnode->stat_ctime;
return 0;
}
ffc0e034: 7c 08 03 a6 mtlr r0
* 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 );
ffc0e038: 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 =
ffc0e03c: 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;
ffc0e040: 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 =
ffc0e044: 91 24 00 00 stw r9,0(r4)
ffc0e048: 91 64 00 04 stw r11,4(r4)
buf->st_atime = the_jnode->stat_atime;
buf->st_mtime = the_jnode->stat_mtime;
buf->st_ctime = the_jnode->stat_ctime;
return 0;
}
ffc0e04c: 4e 80 00 20 blr
switch ( the_jnode->type ) {
case IMFS_DEVICE:
io = &the_jnode->info.device;
buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor );
ffc0e050: 81 49 00 54 lwz r10,84(r9)
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
ffc0e054: 80 09 00 50 lwz r0,80(r9)
ffc0e058: 91 44 00 1c stw r10,28(r4)
ffc0e05c: 90 04 00 18 stw r0,24(r4)
break;
ffc0e060: 4b ff ff 80 b ffc0dfe0 <IMFS_stat+0x6c>
case IMFS_LINEAR_FILE:
case IMFS_MEMORY_FILE:
buf->st_size = the_jnode->info.file.size;
ffc0e064: 80 e9 00 50 lwz r7,80(r9)
ffc0e068: 81 09 00 54 lwz r8,84(r9)
ffc0e06c: 90 e4 00 20 stw r7,32(r4)
ffc0e070: 91 04 00 24 stw r8,36(r4)
break;
ffc0e074: 4b ff ff 6c b ffc0dfe0 <IMFS_stat+0x6c>
ffc056c0 <IMFS_symlink>:
int IMFS_symlink(
rtems_filesystem_location_info_t *parent_loc,
const char *link_name,
const char *node_name
)
{
ffc056c0: 94 21 ff 98 stwu r1,-104(r1)
ffc056c4: 7c 08 02 a6 mflr r0
ffc056c8: 93 a1 00 5c stw r29,92(r1)
ffc056cc: 7c 7d 1b 78 mr r29,r3
int i;
/*
* Remove any separators at the end of the string.
*/
IMFS_get_token( node_name, strlen( node_name ), new_name, &i );
ffc056d0: 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
)
{
ffc056d4: 90 01 00 6c stw r0,108(r1)
ffc056d8: 93 81 00 58 stw r28,88(r1)
ffc056dc: 7c bc 2b 78 mr r28,r5
ffc056e0: 93 c1 00 60 stw r30,96(r1)
ffc056e4: 7c 9e 23 78 mr r30,r4
ffc056e8: 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 );
ffc056ec: 48 01 42 e5 bl ffc199d0 <strlen>
ffc056f0: 3b e1 00 28 addi r31,r1,40
ffc056f4: 7c 64 1b 78 mr r4,r3
ffc056f8: 7f e5 fb 78 mr r5,r31
ffc056fc: 38 c1 00 08 addi r6,r1,8
ffc05700: 7f 83 e3 78 mr r3,r28
ffc05704: 48 00 e9 ad bl ffc140b0 <IMFS_get_token>
/*
* Duplicate link name
*/
info.sym_link.name = strdup(link_name);
ffc05708: 7f c3 f3 78 mr r3,r30
ffc0570c: 48 01 42 2d bl ffc19938 <strdup>
if (info.sym_link.name == NULL) {
ffc05710: 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);
ffc05714: 90 61 00 10 stw r3,16(r1)
if (info.sym_link.name == NULL) {
ffc05718: 41 9e 00 54 beq- cr7,ffc0576c <IMFS_symlink+0xac>
* 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(
ffc0571c: 38 c0 00 00 li r6,0
ffc05720: 7f a3 eb 78 mr r3,r29
ffc05724: 7f e5 fb 78 mr r5,r31
ffc05728: 60 c6 a1 ff ori r6,r6,41471
ffc0572c: 38 80 00 04 li r4,4
ffc05730: 38 e1 00 10 addi r7,r1,16
ffc05734: 48 00 d8 5d bl ffc12f90 <IMFS_create_node>
new_name,
( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),
&info
);
if (new_node == NULL) {
ffc05738: 2f 83 00 00 cmpwi cr7,r3,0
ffc0573c: 38 60 00 00 li r3,0
ffc05740: 41 9e 00 24 beq- cr7,ffc05764 <IMFS_symlink+0xa4>
free(info.sym_link.name);
rtems_set_errno_and_return_minus_one(ENOMEM);
}
return 0;
}
ffc05744: 80 01 00 6c lwz r0,108(r1)
ffc05748: 83 81 00 58 lwz r28,88(r1)
ffc0574c: 7c 08 03 a6 mtlr r0
ffc05750: 83 a1 00 5c lwz r29,92(r1)
ffc05754: 83 c1 00 60 lwz r30,96(r1)
ffc05758: 83 e1 00 64 lwz r31,100(r1)
ffc0575c: 38 21 00 68 addi r1,r1,104
ffc05760: 4e 80 00 20 blr
( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),
&info
);
if (new_node == NULL) {
free(info.sym_link.name);
ffc05764: 80 61 00 10 lwz r3,16(r1) <== NOT EXECUTED
ffc05768: 48 00 08 e1 bl ffc06048 <free> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
ffc0576c: 48 01 2f a5 bl ffc18710 <__errno> <== NOT EXECUTED
ffc05770: 38 00 00 0c li r0,12 <== NOT EXECUTED
ffc05774: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc05778: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc0577c: 4b ff ff c8 b ffc05744 <IMFS_symlink+0x84> <== NOT EXECUTED
ffc05780 <IMFS_unlink>:
int IMFS_unlink(
rtems_filesystem_location_info_t *parentloc, /* IN */
rtems_filesystem_location_info_t *loc /* IN */
)
{
ffc05780: 94 21 ff c8 stwu r1,-56(r1)
ffc05784: 7c 08 02 a6 mflr r0
ffc05788: 90 01 00 3c stw r0,60(r1)
ffc0578c: 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;
ffc05790: 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 */
)
{
ffc05794: 93 a1 00 2c stw r29,44(r1)
ffc05798: 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 ) {
ffc0579c: 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 */
)
{
ffc057a0: 93 e1 00 34 stw r31,52(r1)
ffc057a4: 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 ) {
ffc057a8: 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 */
)
{
ffc057ac: 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 ) {
ffc057b0: 41 9e 00 3c beq- cr7,ffc057ec <IMFS_unlink+0x6c>
/*
* Now actually free the node we were asked to free.
*/
result = (*loc->handlers->rmnod_h)( parentloc, loc );
ffc057b4: 81 3f 00 08 lwz r9,8(r31)
ffc057b8: 7f a3 eb 78 mr r3,r29
ffc057bc: 7f e4 fb 78 mr r4,r31
ffc057c0: 80 09 00 34 lwz r0,52(r9)
ffc057c4: 7c 09 03 a6 mtctr r0
ffc057c8: 4e 80 04 21 bctrl
return result;
}
ffc057cc: 80 01 00 3c lwz r0,60(r1)
ffc057d0: 83 81 00 28 lwz r28,40(r1)
ffc057d4: 7c 08 03 a6 mtlr r0
ffc057d8: 83 a1 00 2c lwz r29,44(r1)
ffc057dc: 83 c1 00 30 lwz r30,48(r1)
ffc057e0: 83 e1 00 34 lwz r31,52(r1)
ffc057e4: 38 21 00 38 addi r1,r1,56
ffc057e8: 4e 80 00 20 blr
* free the node.
*/
if ( node->type == IMFS_HARD_LINK ) {
if ( !node->info.hard_link.link_node )
ffc057ec: 80 1e 00 50 lwz r0,80(r30)
ffc057f0: 2f 80 00 00 cmpwi cr7,r0,0
ffc057f4: 41 9e 00 90 beq- cr7,ffc05884 <IMFS_unlink+0x104>
rtems_set_errno_and_return_minus_one( EINVAL );
the_link = *loc;
the_link.node_access = node->info.hard_link.link_node;
ffc057f8: 7c 3c 0b 78 mr r28,r1
ffc057fc: 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;
ffc05800: 81 64 00 08 lwz r11,8(r4)
the_link.node_access = node->info.hard_link.link_node;
IMFS_Set_handlers( &the_link );
ffc05804: 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;
ffc05808: 81 24 00 0c lwz r9,12(r4)
ffc0580c: 81 44 00 04 lwz r10,4(r4)
ffc05810: 80 04 00 10 lwz r0,16(r4)
ffc05814: 91 61 00 18 stw r11,24(r1)
ffc05818: 91 21 00 1c stw r9,28(r1)
ffc0581c: 91 41 00 14 stw r10,20(r1)
ffc05820: 90 01 00 20 stw r0,32(r1)
the_link.node_access = node->info.hard_link.link_node;
IMFS_Set_handlers( &the_link );
ffc05824: 48 00 d8 f1 bl ffc13114 <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)
ffc05828: 81 3e 00 50 lwz r9,80(r30)
ffc0582c: a1 69 00 34 lhz r11,52(r9)
ffc05830: 2f 8b 00 01 cmpwi cr7,r11,1
ffc05834: 41 9e 00 28 beq- cr7,ffc0585c <IMFS_unlink+0xdc>
if ( result != 0 )
return -1;
}
else
{
node->info.hard_link.link_node->st_nlink --;
ffc05838: 39 6b ff ff addi r11,r11,-1
ffc0583c: b1 69 00 34 sth r11,52(r9)
IMFS_update_ctime( node->info.hard_link.link_node );
ffc05840: 38 61 00 08 addi r3,r1,8
ffc05844: 38 80 00 00 li r4,0
ffc05848: 48 00 08 c9 bl ffc06110 <gettimeofday>
ffc0584c: 81 3e 00 50 lwz r9,80(r30)
ffc05850: 80 01 00 08 lwz r0,8(r1)
ffc05854: 90 09 00 48 stw r0,72(r9)
ffc05858: 4b ff ff 5c b ffc057b4 <IMFS_unlink+0x34>
* to remove the node that is a link and the node itself.
*/
if ( node->info.hard_link.link_node->st_nlink == 1)
{
result = (*the_link.handlers->rmnod_h)( parentloc, &the_link );
ffc0585c: 81 21 00 18 lwz r9,24(r1)
ffc05860: 7f 84 e3 78 mr r4,r28
ffc05864: 7f a3 eb 78 mr r3,r29
ffc05868: 80 09 00 34 lwz r0,52(r9)
ffc0586c: 7c 09 03 a6 mtctr r0
ffc05870: 4e 80 04 21 bctrl
if ( result != 0 )
ffc05874: 2f 83 00 00 cmpwi cr7,r3,0
ffc05878: 38 60 ff ff li r3,-1
ffc0587c: 41 9e ff 38 beq+ cr7,ffc057b4 <IMFS_unlink+0x34>
ffc05880: 4b ff ff 4c b ffc057cc <IMFS_unlink+0x4c>
*/
if ( node->type == IMFS_HARD_LINK ) {
if ( !node->info.hard_link.link_node )
rtems_set_errno_and_return_minus_one( EINVAL );
ffc05884: 48 01 2e 8d bl ffc18710 <__errno> <== NOT EXECUTED
ffc05888: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc0588c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc05890: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc05894: 4b ff ff 38 b ffc057cc <IMFS_unlink+0x4c> <== NOT EXECUTED
ffc05898 <IMFS_unmount>:
#include <rtems/seterr.h>
int IMFS_unmount(
rtems_filesystem_mount_table_entry_t *mt_entry
)
{
ffc05898: 7c 08 02 a6 mflr r0
ffc0589c: 94 21 ff f8 stwu r1,-8(r1)
ffc058a0: 90 01 00 0c stw r0,12(r1)
IMFS_jnode_t *node;
node = mt_entry->mt_point_node.node_access;
ffc058a4: 81 23 00 08 lwz r9,8(r3)
/*
* Is the node that we are mounting onto a directory node ?
*/
if ( node->type != IMFS_DIRECTORY )
ffc058a8: 80 09 00 4c lwz r0,76(r9)
ffc058ac: 2f 80 00 01 cmpwi cr7,r0,1
ffc058b0: 40 9e 00 2c bne- cr7,ffc058dc <IMFS_unmount+0x44>
/*
* Did the node indicate that there was a directory mounted here?
*/
if ( node->info.directory.mt_fs == NULL )
ffc058b4: 80 09 00 5c lwz r0,92(r9)
ffc058b8: 2f 80 00 00 cmpwi cr7,r0,0
ffc058bc: 41 9e 00 34 beq- cr7,ffc058f0 <IMFS_unmount+0x58>
/*
* 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;
ffc058c0: 38 00 00 00 li r0,0
ffc058c4: 90 09 00 5c stw r0,92(r9)
ffc058c8: 38 60 00 00 li r3,0
return 0;
}
ffc058cc: 80 01 00 0c lwz r0,12(r1)
ffc058d0: 38 21 00 08 addi r1,r1,8
ffc058d4: 7c 08 03 a6 mtlr r0
ffc058d8: 4e 80 00 20 blr
/*
* Is the node that we are mounting onto a directory node ?
*/
if ( node->type != IMFS_DIRECTORY )
rtems_set_errno_and_return_minus_one( ENOTDIR );
ffc058dc: 48 01 2e 35 bl ffc18710 <__errno> <== NOT EXECUTED
ffc058e0: 38 00 00 14 li r0,20 <== NOT EXECUTED
ffc058e4: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc058e8: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc058ec: 4b ff ff e0 b ffc058cc <IMFS_unmount+0x34> <== NOT EXECUTED
/*
* Did the node indicate that there was a directory mounted here?
*/
if ( node->info.directory.mt_fs == NULL )
rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */
ffc058f0: 48 01 2e 21 bl ffc18710 <__errno> <== NOT EXECUTED
ffc058f4: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc058f8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc058fc: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc05900: 4b ff ff cc b ffc058cc <IMFS_unmount+0x34> <== NOT EXECUTED
ffc04858 <RTEMS_Malloc_Initialize>:
#endif
/*
* If configured, initialize the statistics support
*/
if ( rtems_malloc_statistics_helpers != NULL ) {
ffc04858: 3d 20 00 00 lis r9,0
void RTEMS_Malloc_Initialize(
void *heap_begin,
uintptr_t heap_size,
size_t sbrk_amount
)
{
ffc0485c: 94 21 ff e8 stwu r1,-24(r1)
ffc04860: 7c 08 02 a6 mflr r0
#endif
/*
* If configured, initialize the statistics support
*/
if ( rtems_malloc_statistics_helpers != NULL ) {
ffc04864: 81 29 26 c8 lwz r9,9928(r9)
void RTEMS_Malloc_Initialize(
void *heap_begin,
uintptr_t heap_size,
size_t sbrk_amount
)
{
ffc04868: 93 a1 00 0c stw r29,12(r1)
ffc0486c: 7c 9d 23 78 mr r29,r4
#endif
/*
* If configured, initialize the statistics support
*/
if ( rtems_malloc_statistics_helpers != NULL ) {
ffc04870: 2f 89 00 00 cmpwi cr7,r9,0
void RTEMS_Malloc_Initialize(
void *heap_begin,
uintptr_t heap_size,
size_t sbrk_amount
)
{
ffc04874: 93 c1 00 10 stw r30,16(r1)
ffc04878: 7c 7e 1b 78 mr r30,r3
ffc0487c: 93 e1 00 14 stw r31,20(r1)
ffc04880: 7c bf 2b 78 mr r31,r5
ffc04884: 90 01 00 1c stw r0,28(r1)
ffc04888: 93 81 00 08 stw r28,8(r1)
#endif
/*
* If configured, initialize the statistics support
*/
if ( rtems_malloc_statistics_helpers != NULL ) {
ffc0488c: 41 9e 00 10 beq- cr7,ffc0489c <RTEMS_Malloc_Initialize+0x44>
(*rtems_malloc_statistics_helpers->initialize)();
ffc04890: 80 09 00 00 lwz r0,0(r9) <== NOT EXECUTED
ffc04894: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc04898: 4e 80 04 21 bctrl <== NOT EXECUTED
}
/*
* Initialize the garbage collection list to start with nothing on it.
*/
malloc_deferred_frees_initialize();
ffc0489c: 4b ff ff 2d bl ffc047c8 <malloc_deferred_frees_initialize>
/*
* Initialize the optional sbrk support for extending the heap
*/
if ( rtems_malloc_sbrk_helpers != NULL ) {
ffc048a0: 3d 20 00 00 lis r9,0
ffc048a4: 81 29 26 cc lwz r9,9932(r9)
ffc048a8: 2f 89 00 00 cmpwi cr7,r9,0
ffc048ac: 41 9e 00 24 beq- cr7,ffc048d0 <RTEMS_Malloc_Initialize+0x78>
void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)(
ffc048b0: 80 09 00 00 lwz r0,0(r9) <== NOT EXECUTED
ffc048b4: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc048b8: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc048bc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
heap_begin,
sbrk_amount
);
heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin;
ffc048c0: 7f be ea 14 add r29,r30,r29 <== 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)(
ffc048c4: 4e 80 04 21 bctrl <== NOT EXECUTED
heap_begin,
sbrk_amount
);
heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin;
ffc048c8: 7f a3 e8 50 subf r29,r3,r29 <== NOT EXECUTED
ffc048cc: 7c 7e 1b 78 mr r30,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 (
ffc048d0: 3f 80 00 00 lis r28,0
ffc048d4: 88 1c 26 c5 lbz r0,9925(r28)
ffc048d8: 3f e0 00 00 lis r31,0
ffc048dc: 2f 80 00 00 cmpwi cr7,r0,0
ffc048e0: 40 9e 00 34 bne- cr7,ffc04914 <RTEMS_Malloc_Initialize+0xbc>
!rtems_unified_work_area
&& rtems_configuration_get_do_zero_of_workspace()
ffc048e4: 3d 20 00 00 lis r9,0
ffc048e8: 88 09 20 c8 lbz r0,8392(r9)
ffc048ec: 2f 80 00 00 cmpwi cr7,r0,0
ffc048f0: 40 9e 00 5c bne- cr7,ffc0494c <RTEMS_Malloc_Initialize+0xf4>
void *area_begin,
uintptr_t area_size,
uintptr_t page_size
)
{
return _Heap_Initialize( heap, area_begin, area_size, page_size );
ffc048f4: 3f e0 00 00 lis r31,0
ffc048f8: 80 7f 26 5c lwz r3,9820(r31)
ffc048fc: 7f c4 f3 78 mr r4,r30
ffc04900: 7f a5 eb 78 mr r5,r29
ffc04904: 38 c0 00 08 li r6,8
ffc04908: 48 00 52 11 bl ffc09b18 <_Heap_Initialize>
RTEMS_Malloc_Heap,
heap_begin,
heap_size,
CPU_HEAP_ALIGNMENT
);
if ( status == 0 ) {
ffc0490c: 2f 83 00 00 cmpwi cr7,r3,0
ffc04910: 41 9e 00 5c beq- cr7,ffc0496c <RTEMS_Malloc_Initialize+0x114>
rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
}
}
MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) );
ffc04914: 80 7f 26 5c lwz r3,9820(r31)
ffc04918: 3f e0 00 00 lis r31,0
ffc0491c: 83 df 2a 68 lwz r30,10856(r31)
ffc04920: 48 00 60 6d bl ffc0a98c <_Protected_heap_Get_size>
printk( "\n" );
rtems_print_buffer( (heap_begin + heap_size) - 48, 48 );
rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
}
#endif
}
ffc04924: 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) );
ffc04928: 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
}
ffc0492c: 83 81 00 08 lwz r28,8(r1)
ffc04930: 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) );
ffc04934: 90 7f 2a 68 stw r3,10856(r31)
printk( "\n" );
rtems_print_buffer( (heap_begin + heap_size) - 48, 48 );
rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
}
#endif
}
ffc04938: 83 a1 00 0c lwz r29,12(r1)
ffc0493c: 83 c1 00 10 lwz r30,16(r1)
ffc04940: 83 e1 00 14 lwz r31,20(r1)
ffc04944: 38 21 00 18 addi r1,r1,24
ffc04948: 4e 80 00 20 blr
if (
!rtems_unified_work_area
&& rtems_configuration_get_do_zero_of_workspace()
) {
memset( heap_begin, 0, heap_size );
ffc0494c: 7f c3 f3 78 mr r3,r30
ffc04950: 38 80 00 00 li r4,0
ffc04954: 7f a5 eb 78 mr r5,r29
ffc04958: 48 00 df 49 bl ffc128a0 <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 ) {
ffc0495c: 88 1c 26 c5 lbz r0,9925(r28)
ffc04960: 2f 80 00 00 cmpwi cr7,r0,0
ffc04964: 41 9e ff 90 beq+ cr7,ffc048f4 <RTEMS_Malloc_Initialize+0x9c>
ffc04968: 4b ff ff ac b ffc04914 <RTEMS_Malloc_Initialize+0xbc><== NOT EXECUTED
heap_begin,
heap_size,
CPU_HEAP_ALIGNMENT
);
if ( status == 0 ) {
rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
ffc0496c: 38 60 00 1a li r3,26 <== NOT EXECUTED
ffc04970: 48 00 46 c5 bl ffc09034 <rtems_fatal_error_occurred> <== NOT EXECUTED
ffc05330 <Stack_check_Dump_threads_usage>:
static rtems_printk_plugin_t print_handler;
void Stack_check_Dump_threads_usage(
Thread_Control *the_thread
)
{
ffc05330: 7d 80 00 26 mfcr r12 <== NOT EXECUTED
void *high_water_mark;
void *current;
Stack_Control *stack;
char name[5];
if ( !the_thread )
ffc05334: 2e 03 00 00 cmpwi cr4,r3,0 <== NOT EXECUTED
static rtems_printk_plugin_t print_handler;
void Stack_check_Dump_threads_usage(
Thread_Control *the_thread
)
{
ffc05338: 94 21 ff c0 stwu r1,-64(r1) <== NOT EXECUTED
ffc0533c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc05340: 93 01 00 20 stw r24,32(r1) <== NOT EXECUTED
void *high_water_mark;
void *current;
Stack_Control *stack;
char name[5];
if ( !the_thread )
ffc05344: 7c 78 1b 78 mr r24,r3 <== NOT EXECUTED
static rtems_printk_plugin_t print_handler;
void Stack_check_Dump_threads_usage(
Thread_Control *the_thread
)
{
ffc05348: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED
ffc0534c: 92 e1 00 1c stw r23,28(r1) <== NOT EXECUTED
ffc05350: 93 21 00 24 stw r25,36(r1) <== NOT EXECUTED
ffc05354: 93 41 00 28 stw r26,40(r1) <== NOT EXECUTED
ffc05358: 93 61 00 2c stw r27,44(r1) <== NOT EXECUTED
ffc0535c: 93 81 00 30 stw r28,48(r1) <== NOT EXECUTED
ffc05360: 93 a1 00 34 stw r29,52(r1) <== NOT EXECUTED
ffc05364: 93 c1 00 38 stw r30,56(r1) <== NOT EXECUTED
ffc05368: 93 e1 00 3c stw r31,60(r1) <== NOT EXECUTED
ffc0536c: 91 81 00 18 stw r12,24(r1) <== NOT EXECUTED
void *high_water_mark;
void *current;
Stack_Control *stack;
char name[5];
if ( !the_thread )
ffc05370: 41 92 00 fc beq- cr4,ffc0546c <Stack_check_Dump_threads_usage+0x13c><== NOT EXECUTED
return;
if ( !print_handler )
ffc05374: 3f a0 00 00 lis r29,0 <== NOT EXECUTED
ffc05378: 3b fd 36 f0 addi r31,r29,14064 <== NOT EXECUTED
ffc0537c: 83 5f 00 04 lwz r26,4(r31) <== NOT EXECUTED
ffc05380: 2f 9a 00 00 cmpwi cr7,r26,0 <== NOT EXECUTED
ffc05384: 41 9e 00 e8 beq- cr7,ffc0546c <Stack_check_Dump_threads_usage+0x13c><== NOT EXECUTED
/*
* Obtain interrupt stack information
*/
if (the_thread == (Thread_Control *) -1) {
ffc05388: 2f 83 ff ff cmpwi cr7,r3,-1 <== NOT EXECUTED
ffc0538c: 41 9e 01 74 beq- cr7,ffc05500 <Stack_check_Dump_threads_usage+0x1d0><== NOT EXECUTED
current = 0;
}
else
return;
} else {
stack = &the_thread->Start.Initial_stack;
ffc05390: 3b 63 00 c8 addi r27,r3,200 <== NOT EXECUTED
current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
ffc05394: 83 23 00 d8 lwz r25,216(r3) <== NOT EXECUTED
}
low = Stack_check_usable_stack_start(stack);
ffc05398: 82 fb 00 04 lwz r23,4(r27) <== NOT EXECUTED
size = Stack_check_usable_stack_size(stack);
ffc0539c: 83 9b 00 00 lwz r28,0(r27) <== 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);
ffc053a0: 3a f7 00 80 addi r23,r23,128 <== NOT EXECUTED
size = Stack_check_usable_stack_size(stack);
ffc053a4: 3b 9c ff 80 addi r28,r28,-128 <== NOT EXECUTED
high_water_mark = Stack_check_find_high_water_mark(low, size);
ffc053a8: 7e e3 bb 78 mr r3,r23 <== NOT EXECUTED
ffc053ac: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED
ffc053b0: 4b ff ff 31 bl ffc052e0 <Stack_check_find_high_water_mark><== NOT EXECUTED
if ( high_water_mark )
used = Stack_check_Calculate_used( low, size, high_water_mark );
ffc053b4: 7f d7 e2 14 add r30,r23,r28 <== 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 )
ffc053b8: 7c 69 fe 70 srawi r9,r3,31 <== NOT EXECUTED
ffc053bc: 7d 20 1a 78 xor r0,r9,r3 <== NOT EXECUTED
ffc053c0: 7c 00 48 50 subf r0,r0,r9 <== NOT EXECUTED
used = Stack_check_Calculate_used( low, size, high_water_mark );
ffc053c4: 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 )
ffc053c8: 7c 00 fe 70 srawi r0,r0,31 <== NOT EXECUTED
ffc053cc: 7f de 00 38 and r30,r30,r0 <== NOT EXECUTED
used = Stack_check_Calculate_used( low, size, high_water_mark );
else
used = 0;
if ( the_thread ) {
ffc053d0: 41 92 01 8c beq- cr4,ffc0555c <Stack_check_Dump_threads_usage+0x22c><== NOT EXECUTED
(*print_handler)(
ffc053d4: 83 18 00 08 lwz r24,8(r24) <== NOT EXECUTED
ffc053d8: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED
ffc053dc: 82 ff 00 08 lwz r23,8(r31) <== NOT EXECUTED
ffc053e0: 38 80 00 05 li r4,5 <== NOT EXECUTED
ffc053e4: 7f 03 c3 78 mr r3,r24 <== NOT EXECUTED
ffc053e8: 48 00 73 e5 bl ffc0c7cc <rtems_object_get_name> <== NOT EXECUTED
ffc053ec: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED
ffc053f0: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED
ffc053f4: 7f 49 03 a6 mtctr r26 <== NOT EXECUTED
ffc053f8: 7e e3 bb 78 mr r3,r23 <== NOT EXECUTED
ffc053fc: 38 84 96 d8 addi r4,r4,-26920 <== NOT EXECUTED
ffc05400: 7f 05 c3 78 mr r5,r24 <== NOT EXECUTED
ffc05404: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc05408: 4e 80 04 21 bctrl <== NOT EXECUTED
);
} else {
(*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 );
}
(*print_handler)(
ffc0540c: 80 db 00 00 lwz r6,0(r27) <== NOT EXECUTED
ffc05410: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED
ffc05414: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED
ffc05418: 38 84 96 f8 addi r4,r4,-26888 <== NOT EXECUTED
ffc0541c: 80 bb 00 04 lwz r5,4(r27) <== NOT EXECUTED
ffc05420: 38 c6 ff ff addi r6,r6,-1 <== NOT EXECUTED
ffc05424: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc05428: 7f 27 cb 78 mr r7,r25 <== NOT EXECUTED
ffc0542c: 7c c5 32 14 add r6,r5,r6 <== NOT EXECUTED
ffc05430: 80 7f 00 08 lwz r3,8(r31) <== NOT EXECUTED
ffc05434: 7f 88 e3 78 mr r8,r28 <== NOT EXECUTED
ffc05438: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc0543c: 4e 80 04 21 bctrl <== NOT EXECUTED
stack->area + stack->size - 1,
current,
size
);
if (Stack_check_Initialized == 0) {
ffc05440: 80 1d 36 f0 lwz r0,14064(r29) <== NOT EXECUTED
ffc05444: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc05448: 41 9e 00 60 beq- cr7,ffc054a8 <Stack_check_Dump_threads_usage+0x178><== NOT EXECUTED
(*print_handler)( print_context, "Unavailable\n" );
} else {
(*print_handler)( print_context, "%8" PRId32 "\n", used );
ffc0544c: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED
ffc05450: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED
ffc05454: 80 7f 00 08 lwz r3,8(r31) <== NOT EXECUTED
ffc05458: 38 84 97 28 addi r4,r4,-26840 <== NOT EXECUTED
ffc0545c: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED
ffc05460: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc05464: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc05468: 4e 80 04 21 bctrl <== NOT EXECUTED
}
}
ffc0546c: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED
ffc05470: 81 81 00 18 lwz r12,24(r1) <== NOT EXECUTED
ffc05474: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc05478: 82 e1 00 1c lwz r23,28(r1) <== NOT EXECUTED
ffc0547c: 83 01 00 20 lwz r24,32(r1) <== NOT EXECUTED
ffc05480: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED
ffc05484: 83 21 00 24 lwz r25,36(r1) <== NOT EXECUTED
ffc05488: 83 41 00 28 lwz r26,40(r1) <== NOT EXECUTED
ffc0548c: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED
ffc05490: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED
ffc05494: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED
ffc05498: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED
ffc0549c: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED
ffc054a0: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED
ffc054a4: 4e 80 00 20 blr <== NOT EXECUTED
current,
size
);
if (Stack_check_Initialized == 0) {
(*print_handler)( print_context, "Unavailable\n" );
ffc054a8: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED
ffc054ac: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED
ffc054b0: 80 7f 00 08 lwz r3,8(r31) <== NOT EXECUTED
ffc054b4: 38 84 97 18 addi r4,r4,-26856 <== NOT EXECUTED
ffc054b8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc054bc: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc054c0: 4e 80 04 21 bctrl <== NOT EXECUTED
} else {
(*print_handler)( print_context, "%8" PRId32 "\n", used );
}
}
ffc054c4: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED
ffc054c8: 81 81 00 18 lwz r12,24(r1) <== NOT EXECUTED
ffc054cc: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc054d0: 82 e1 00 1c lwz r23,28(r1) <== NOT EXECUTED
ffc054d4: 83 01 00 20 lwz r24,32(r1) <== NOT EXECUTED
ffc054d8: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED
ffc054dc: 83 21 00 24 lwz r25,36(r1) <== NOT EXECUTED
ffc054e0: 83 41 00 28 lwz r26,40(r1) <== NOT EXECUTED
ffc054e4: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED
ffc054e8: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED
ffc054ec: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED
ffc054f0: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED
ffc054f4: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED
ffc054f8: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED
ffc054fc: 4e 80 00 20 blr <== NOT EXECUTED
/*
* Obtain interrupt stack information
*/
if (the_thread == (Thread_Control *) -1) {
if (Stack_check_Interrupt_stack.area) {
ffc05500: 3f 60 00 00 lis r27,0 <== NOT EXECUTED
ffc05504: 3b 7b 35 a4 addi r27,r27,13732 <== NOT EXECUTED
ffc05508: 80 1b 00 04 lwz r0,4(r27) <== NOT EXECUTED
ffc0550c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc05510: 41 be ff 5c beq- cr7,ffc0546c <Stack_check_Dump_threads_usage+0x13c><== 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);
ffc05514: 82 fb 00 04 lwz r23,4(r27) <== NOT EXECUTED
/*
* Obtain interrupt stack information
*/
if (the_thread == (Thread_Control *) -1) {
if (Stack_check_Interrupt_stack.area) {
ffc05518: 3b 00 00 00 li r24,0 <== NOT EXECUTED
stack = &the_thread->Start.Initial_stack;
current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
}
low = Stack_check_usable_stack_start(stack);
size = Stack_check_usable_stack_size(stack);
ffc0551c: 83 9b 00 00 lwz r28,0(r27) <== NOT EXECUTED
ffc05520: 2e 18 00 00 cmpwi cr4,r24,0 <== 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);
ffc05524: 3a f7 00 80 addi r23,r23,128 <== NOT EXECUTED
size = Stack_check_usable_stack_size(stack);
ffc05528: 3b 9c ff 80 addi r28,r28,-128 <== NOT EXECUTED
high_water_mark = Stack_check_find_high_water_mark(low, size);
ffc0552c: 7e e3 bb 78 mr r3,r23 <== NOT EXECUTED
ffc05530: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED
ffc05534: 4b ff fd ad bl ffc052e0 <Stack_check_find_high_water_mark><== NOT EXECUTED
if ( high_water_mark )
used = Stack_check_Calculate_used( low, size, high_water_mark );
ffc05538: 7f d7 e2 14 add r30,r23,r28 <== 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 )
ffc0553c: 7c 69 fe 70 srawi r9,r3,31 <== NOT EXECUTED
ffc05540: 7d 20 1a 78 xor r0,r9,r3 <== NOT EXECUTED
ffc05544: 7c 00 48 50 subf r0,r0,r9 <== NOT EXECUTED
used = Stack_check_Calculate_used( low, size, high_water_mark );
ffc05548: 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 )
ffc0554c: 7c 00 fe 70 srawi r0,r0,31 <== NOT EXECUTED
/*
* Obtain interrupt stack information
*/
if (the_thread == (Thread_Control *) -1) {
if (Stack_check_Interrupt_stack.area) {
ffc05550: 3b 20 00 00 li r25,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 )
ffc05554: 7f de 00 38 and r30,r30,r0 <== NOT EXECUTED
used = Stack_check_Calculate_used( low, size, high_water_mark );
else
used = 0;
if ( the_thread ) {
ffc05558: 40 92 fe 7c bne+ cr4,ffc053d4 <Stack_check_Dump_threads_usage+0xa4><== 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 );
ffc0555c: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED
ffc05560: 80 7f 00 08 lwz r3,8(r31) <== NOT EXECUTED
ffc05564: 38 84 96 e8 addi r4,r4,-26904 <== NOT EXECUTED
ffc05568: 7f 49 03 a6 mtctr r26 <== NOT EXECUTED
ffc0556c: 38 a0 ff ff li r5,-1 <== NOT EXECUTED
ffc05570: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc05574: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc05578: 4b ff fe 94 b ffc0540c <Stack_check_Dump_threads_usage+0xdc><== NOT EXECUTED
ffc052e0 <Stack_check_find_high_water_mark>:
/*
* start at lower memory and find first word that does not
* match pattern
*/
base += PATTERN_SIZE_WORDS;
ffc052e0: 39 23 00 80 addi r9,r3,128 <== NOT EXECUTED
for (ebase = base + length; base < ebase; base++)
ffc052e4: 54 8b 00 3a rlwinm r11,r4,0,0,29 <== NOT EXECUTED
ffc052e8: 7d 69 5a 14 add r11,r9,r11 <== NOT EXECUTED
ffc052ec: 7f 89 58 40 cmplw cr7,r9,r11 <== NOT EXECUTED
ffc052f0: 40 9c 00 30 bge- cr7,ffc05320 <Stack_check_find_high_water_mark+0x40><== NOT EXECUTED
if (*base != U32_PATTERN)
ffc052f4: 81 43 00 80 lwz r10,128(r3) <== NOT EXECUTED
ffc052f8: 6d 40 5a 5a xoris r0,r10,23130 <== NOT EXECUTED
ffc052fc: 2f 80 a5 a5 cmpwi cr7,r0,-23131 <== NOT EXECUTED
ffc05300: 41 9e 00 14 beq- cr7,ffc05314 <Stack_check_find_high_water_mark+0x34><== NOT EXECUTED
ffc05304: 48 00 00 24 b ffc05328 <Stack_check_find_high_water_mark+0x48><== NOT EXECUTED
ffc05308: 80 09 00 00 lwz r0,0(r9) <== NOT EXECUTED
ffc0530c: 7f 80 50 00 cmpw cr7,r0,r10 <== NOT EXECUTED
ffc05310: 40 9e 00 18 bne- cr7,ffc05328 <Stack_check_find_high_water_mark+0x48><== 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++)
ffc05314: 39 29 00 04 addi r9,r9,4 <== NOT EXECUTED
ffc05318: 7f 8b 48 40 cmplw cr7,r11,r9 <== NOT EXECUTED
ffc0531c: 41 9d ff ec bgt+ cr7,ffc05308 <Stack_check_find_high_water_mark+0x28><== NOT EXECUTED
ffc05320: 38 60 00 00 li r3,0 <== NOT EXECUTED
if (*base != U32_PATTERN)
return (void *) base;
#endif
return (void *)0;
}
ffc05324: 4e 80 00 20 blr <== NOT EXECUTED
*/
base += PATTERN_SIZE_WORDS;
for (ebase = base + length; base < ebase; base++)
if (*base != U32_PATTERN)
return (void *) base;
ffc05328: 7d 23 4b 78 mr r3,r9 <== NOT EXECUTED
ffc0532c: 4e 80 00 20 blr <== NOT EXECUTED
ffc0edac <_CORE_mutex_Seize_interrupt_trylock>:
#if defined(__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__)
int _CORE_mutex_Seize_interrupt_trylock(
CORE_mutex_Control *the_mutex,
ISR_Level *level_p
)
{
ffc0edac: 7c 08 02 a6 mflr r0
ffc0edb0: 94 21 ff f8 stwu r1,-8(r1)
{
Thread_Control *executing;
/* disabled when you get here */
executing = _Thread_Executing;
ffc0edb4: 3d 20 00 00 lis r9,0
ffc0edb8: 81 29 27 6c lwz r9,10092(r9)
ffc0edbc: 90 01 00 0c stw r0,12(r1)
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
ffc0edc0: 38 00 00 00 li r0,0
ffc0edc4: 90 09 00 34 stw r0,52(r9)
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
ffc0edc8: 81 63 00 50 lwz r11,80(r3)
ffc0edcc: 2f 8b 00 00 cmpwi cr7,r11,0
ffc0edd0: 41 9e 00 4c beq- cr7,ffc0ee1c <_CORE_mutex_Seize_interrupt_trylock+0x70>
*/
RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority(
CORE_mutex_Attributes *the_attribute
)
{
return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
ffc0edd4: 81 63 00 48 lwz r11,72(r3)
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
the_mutex->lock = CORE_MUTEX_LOCKED;
the_mutex->holder = executing;
the_mutex->holder_id = executing->Object.id;
the_mutex->nest_count = 1;
ffc0edd8: 39 40 00 01 li r10,1
/* disabled when you get here */
executing = _Thread_Executing;
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
the_mutex->lock = CORE_MUTEX_LOCKED;
ffc0eddc: 90 03 00 50 stw r0,80(r3)
the_mutex->holder = executing;
the_mutex->holder_id = executing->Object.id;
the_mutex->nest_count = 1;
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
ffc0ede0: 2f 8b 00 02 cmpwi cr7,r11,2
executing = _Thread_Executing;
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
the_mutex->lock = CORE_MUTEX_LOCKED;
the_mutex->holder = executing;
the_mutex->holder_id = executing->Object.id;
ffc0ede4: 81 09 00 08 lwz r8,8(r9)
executing = _Thread_Executing;
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
the_mutex->lock = CORE_MUTEX_LOCKED;
the_mutex->holder = executing;
ffc0ede8: 91 23 00 5c stw r9,92(r3)
the_mutex->holder_id = executing->Object.id;
ffc0edec: 91 03 00 60 stw r8,96(r3)
the_mutex->nest_count = 1;
ffc0edf0: 91 43 00 54 stw r10,84(r3)
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
ffc0edf4: 41 9e 00 48 beq- cr7,ffc0ee3c <_CORE_mutex_Seize_interrupt_trylock+0x90>
ffc0edf8: 2f 8b 00 03 cmpwi cr7,r11,3
ffc0edfc: 41 9e 00 78 beq- cr7,ffc0ee74 <_CORE_mutex_Seize_interrupt_trylock+0xc8>
ffc0ee00: 80 04 00 00 lwz r0,0(r4)
ffc0ee04: 7c 00 01 24 mtmsr r0
return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p );
}
ffc0ee08: 80 01 00 0c lwz r0,12(r1)
ffc0ee0c: 38 60 00 00 li r3,0
ffc0ee10: 38 21 00 08 addi r1,r1,8
ffc0ee14: 7c 08 03 a6 mtlr r0
ffc0ee18: 4e 80 00 20 blr
/*
* At this point, we know the mutex was not available. If this thread
* is the thread that has locked the mutex, let's see if we are allowed
* to nest access.
*/
if ( _Thread_Is_executing( the_mutex->holder ) ) {
ffc0ee1c: 80 03 00 5c lwz r0,92(r3)
ffc0ee20: 7f 89 00 00 cmpw cr7,r9,r0
ffc0ee24: 41 9e 00 28 beq- cr7,ffc0ee4c <_CORE_mutex_Seize_interrupt_trylock+0xa0>
ffc0ee28: 38 60 00 01 li r3,1
ffc0ee2c: 80 01 00 0c lwz r0,12(r1)
ffc0ee30: 38 21 00 08 addi r1,r1,8
ffc0ee34: 7c 08 03 a6 mtlr r0
ffc0ee38: 4e 80 00 20 blr
_Chain_Prepend_unprotected( &executing->lock_mutex,
&the_mutex->queue.lock_queue );
the_mutex->queue.priority_before = executing->current_priority;
#endif
executing->resource_count++;
ffc0ee3c: 81 69 00 1c lwz r11,28(r9)
ffc0ee40: 38 0b 00 01 addi r0,r11,1
ffc0ee44: 90 09 00 1c stw r0,28(r9)
ffc0ee48: 4b ff ff b8 b ffc0ee00 <_CORE_mutex_Seize_interrupt_trylock+0x54>
* At this point, we know the mutex was not available. If this thread
* is the thread that has locked the mutex, let's see if we are allowed
* to nest access.
*/
if ( _Thread_Is_executing( the_mutex->holder ) ) {
switch ( the_mutex->Attributes.lock_nesting_behavior ) {
ffc0ee4c: 80 03 00 40 lwz r0,64(r3)
ffc0ee50: 2f 80 00 00 cmpwi cr7,r0,0
ffc0ee54: 40 9e 00 74 bne- cr7,ffc0eec8 <_CORE_mutex_Seize_interrupt_trylock+0x11c>
case CORE_MUTEX_NESTING_ACQUIRES:
the_mutex->nest_count++;
ffc0ee58: 81 23 00 54 lwz r9,84(r3)
ffc0ee5c: 38 09 00 01 addi r0,r9,1
ffc0ee60: 90 03 00 54 stw r0,84(r3)
ffc0ee64: 80 04 00 00 lwz r0,0(r4)
ffc0ee68: 7c 00 01 24 mtmsr r0
ffc0ee6c: 38 60 00 00 li r3,0
ffc0ee70: 4b ff ff bc b ffc0ee2c <_CORE_mutex_Seize_interrupt_trylock+0x80>
_Chain_Prepend_unprotected( &executing->lock_mutex,
&the_mutex->queue.lock_queue );
the_mutex->queue.priority_before = executing->current_priority;
#endif
executing->resource_count++;
ffc0ee74: 80 e9 00 1c lwz r7,28(r9)
{
Priority_Control ceiling;
Priority_Control current;
ceiling = the_mutex->Attributes.priority_ceiling;
current = executing->current_priority;
ffc0ee78: 81 69 00 14 lwz r11,20(r9)
_Chain_Prepend_unprotected( &executing->lock_mutex,
&the_mutex->queue.lock_queue );
the_mutex->queue.priority_before = executing->current_priority;
#endif
executing->resource_count++;
ffc0ee7c: 39 07 00 01 addi r8,r7,1
ffc0ee80: 91 09 00 1c stw r8,28(r9)
*/
{
Priority_Control ceiling;
Priority_Control current;
ceiling = the_mutex->Attributes.priority_ceiling;
ffc0ee84: 81 03 00 4c lwz r8,76(r3)
current = executing->current_priority;
if ( current == ceiling ) {
ffc0ee88: 7f 88 58 00 cmpw cr7,r8,r11
ffc0ee8c: 41 9e 00 90 beq- cr7,ffc0ef1c <_CORE_mutex_Seize_interrupt_trylock+0x170>
_ISR_Enable( *level_p );
return 0;
}
if ( current > ceiling ) {
ffc0ee90: 7f 88 58 40 cmplw cr7,r8,r11
ffc0ee94: 41 9c 00 54 blt- cr7,ffc0eee8 <_CORE_mutex_Seize_interrupt_trylock+0x13c>
);
_Thread_Enable_dispatch();
return 0;
}
/* if ( current < ceiling ) */ {
executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED;
ffc0ee98: 39 60 00 06 li r11,6
ffc0ee9c: 91 69 00 34 stw r11,52(r9)
the_mutex->lock = CORE_MUTEX_UNLOCKED;
the_mutex->nest_count = 0; /* undo locking above */
ffc0eea0: 90 03 00 54 stw r0,84(r3)
_Thread_Enable_dispatch();
return 0;
}
/* if ( current < ceiling ) */ {
executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED;
the_mutex->lock = CORE_MUTEX_UNLOCKED;
ffc0eea4: 91 43 00 50 stw r10,80(r3)
the_mutex->nest_count = 0; /* undo locking above */
executing->resource_count--; /* undo locking above */
ffc0eea8: 90 e9 00 1c stw r7,28(r9)
ffc0eeac: 80 04 00 00 lwz r0,0(r4)
ffc0eeb0: 7c 00 01 24 mtmsr r0
ffc0eeb4: 80 01 00 0c lwz r0,12(r1)
ffc0eeb8: 38 60 00 00 li r3,0
ffc0eebc: 38 21 00 08 addi r1,r1,8
ffc0eec0: 7c 08 03 a6 mtlr r0
ffc0eec4: 4e 80 00 20 blr
* At this point, we know the mutex was not available. If this thread
* is the thread that has locked the mutex, let's see if we are allowed
* to nest access.
*/
if ( _Thread_Is_executing( the_mutex->holder ) ) {
switch ( the_mutex->Attributes.lock_nesting_behavior ) {
ffc0eec8: 2f 80 00 01 cmpwi cr7,r0,1
ffc0eecc: 40 9e ff 5c bne+ cr7,ffc0ee28 <_CORE_mutex_Seize_interrupt_trylock+0x7c>
case CORE_MUTEX_NESTING_ACQUIRES:
the_mutex->nest_count++;
_ISR_Enable( *level_p );
return 0;
case CORE_MUTEX_NESTING_IS_ERROR:
executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED;
ffc0eed0: 38 00 00 02 li r0,2 <== NOT EXECUTED
ffc0eed4: 90 09 00 34 stw r0,52(r9) <== NOT EXECUTED
ffc0eed8: 80 04 00 00 lwz r0,0(r4) <== NOT EXECUTED
ffc0eedc: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED
ffc0eee0: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc0eee4: 4b ff ff 48 b ffc0ee2c <_CORE_mutex_Seize_interrupt_trylock+0x80><== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
ffc0eee8: 3d 20 00 00 lis r9,0
ffc0eeec: 81 69 27 2c lwz r11,10028(r9)
ffc0eef0: 38 0b 00 01 addi r0,r11,1
ffc0eef4: 90 09 27 2c stw r0,10028(r9)
ffc0eef8: 80 04 00 00 lwz r0,0(r4)
ffc0eefc: 7c 00 01 24 mtmsr r0
}
if ( current > ceiling ) {
_Thread_Disable_dispatch();
_ISR_Enable( *level_p );
_Thread_Change_priority(
ffc0ef00: 80 83 00 4c lwz r4,76(r3)
ffc0ef04: 38 a0 00 00 li r5,0
ffc0ef08: 80 63 00 5c lwz r3,92(r3)
ffc0ef0c: 4b ff ba ed bl ffc0a9f8 <_Thread_Change_priority>
the_mutex->holder,
the_mutex->Attributes.priority_ceiling,
false
);
_Thread_Enable_dispatch();
ffc0ef10: 4b ff c1 f5 bl ffc0b104 <_Thread_Enable_dispatch>
ffc0ef14: 38 60 00 00 li r3,0
ffc0ef18: 4b ff ff 14 b ffc0ee2c <_CORE_mutex_Seize_interrupt_trylock+0x80>
ffc0ef1c: 80 04 00 00 lwz r0,0(r4)
ffc0ef20: 7c 00 01 24 mtmsr r0
ffc0ef24: 38 60 00 00 li r3,0
ffc0ef28: 4b ff ff 04 b ffc0ee2c <_CORE_mutex_Seize_interrupt_trylock+0x80>
ffc099bc <_CORE_semaphore_Surrender>:
CORE_semaphore_Status _CORE_semaphore_Surrender(
CORE_semaphore_Control *the_semaphore,
Objects_Id id,
CORE_semaphore_API_mp_support_callout api_semaphore_mp_support
)
{
ffc099bc: 94 21 ff f0 stwu r1,-16(r1)
ffc099c0: 7c 08 02 a6 mflr r0
ffc099c4: 93 e1 00 0c stw r31,12(r1)
ffc099c8: 7c 7f 1b 78 mr r31,r3
ffc099cc: 90 01 00 14 stw r0,20(r1)
ISR_Level level;
CORE_semaphore_Status status;
status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;
if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) {
ffc099d0: 48 00 1b dd bl ffc0b5ac <_Thread_queue_Dequeue>
ffc099d4: 2f 83 00 00 cmpwi cr7,r3,0
ffc099d8: 38 60 00 00 li r3,0
ffc099dc: 41 9e 00 18 beq- cr7,ffc099f4 <_CORE_semaphore_Surrender+0x38>
status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;
_ISR_Enable( level );
}
return status;
}
ffc099e0: 80 01 00 14 lwz r0,20(r1)
ffc099e4: 83 e1 00 0c lwz r31,12(r1)
ffc099e8: 38 21 00 10 addi r1,r1,16
ffc099ec: 7c 08 03 a6 mtlr r0
ffc099f0: 4e 80 00 20 blr
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc099f4: 7c 00 00 a6 mfmsr r0
ffc099f8: 7d 30 42 a6 mfsprg r9,0
ffc099fc: 7c 09 48 78 andc r9,r0,r9
ffc09a00: 7d 20 01 24 mtmsr r9
(*api_semaphore_mp_support) ( the_thread, id );
#endif
} else {
_ISR_Disable( level );
if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
ffc09a04: 81 3f 00 48 lwz r9,72(r31)
ffc09a08: 38 60 00 04 li r3,4
ffc09a0c: 81 7f 00 40 lwz r11,64(r31)
ffc09a10: 7f 89 58 40 cmplw cr7,r9,r11
ffc09a14: 41 9c 00 1c blt- cr7,ffc09a30 <_CORE_semaphore_Surrender+0x74>
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc09a18: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED
status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;
_ISR_Enable( level );
}
return status;
}
ffc09a1c: 80 01 00 14 lwz r0,20(r1)
ffc09a20: 83 e1 00 0c lwz r31,12(r1)
ffc09a24: 38 21 00 10 addi r1,r1,16
ffc09a28: 7c 08 03 a6 mtlr r0
ffc09a2c: 4e 80 00 20 blr
#endif
} else {
_ISR_Disable( level );
if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
the_semaphore->count += 1;
ffc09a30: 39 29 00 01 addi r9,r9,1
ffc09a34: 91 3f 00 48 stw r9,72(r31)
ffc09a38: 38 60 00 00 li r3,0
ffc09a3c: 7c 00 01 24 mtmsr r0
ffc09a40: 4b ff ff dc b ffc09a1c <_CORE_semaphore_Surrender+0x60>
ffc0ab7c <_Heap_Walk>:
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
Heap_Block *const last_block = heap->last_block;
Heap_Block *block = heap->first_block;
Heap_Walk_printer printer = dump ?
_Heap_Walk_print : _Heap_Walk_print_nothing;
ffc0ab7c: 2f 85 00 00 cmpwi cr7,r5,0
bool _Heap_Walk(
Heap_Control *heap,
int source,
bool dump
)
{
ffc0ab80: 94 21 ff 98 stwu r1,-104(r1)
ffc0ab84: 7c 08 02 a6 mflr r0
ffc0ab88: 93 21 00 4c stw r25,76(r1)
ffc0ab8c: 90 01 00 6c stw r0,108(r1)
ffc0ab90: 93 41 00 50 stw r26,80(r1)
ffc0ab94: 93 61 00 54 stw r27,84(r1)
ffc0ab98: 93 81 00 58 stw r28,88(r1)
ffc0ab9c: 7c 9c 23 78 mr r28,r4
ffc0aba0: 93 c1 00 60 stw r30,96(r1)
ffc0aba4: 93 e1 00 64 stw r31,100(r1)
ffc0aba8: 7c 7f 1b 78 mr r31,r3
ffc0abac: 91 c1 00 20 stw r14,32(r1)
ffc0abb0: 91 e1 00 24 stw r15,36(r1)
ffc0abb4: 92 01 00 28 stw r16,40(r1)
ffc0abb8: 92 21 00 2c stw r17,44(r1)
ffc0abbc: 92 41 00 30 stw r18,48(r1)
ffc0abc0: 92 61 00 34 stw r19,52(r1)
ffc0abc4: 92 81 00 38 stw r20,56(r1)
ffc0abc8: 92 a1 00 3c stw r21,60(r1)
ffc0abcc: 92 c1 00 40 stw r22,64(r1)
ffc0abd0: 92 e1 00 44 stw r23,68(r1)
ffc0abd4: 93 01 00 48 stw r24,72(r1)
ffc0abd8: 93 a1 00 5c stw r29,92(r1)
uintptr_t const page_size = heap->page_size;
ffc0abdc: 83 63 00 10 lwz r27,16(r3)
uintptr_t const min_block_size = heap->min_block_size;
ffc0abe0: 83 43 00 14 lwz r26,20(r3)
Heap_Block *const last_block = heap->last_block;
ffc0abe4: 83 23 00 24 lwz r25,36(r3)
Heap_Block *block = heap->first_block;
ffc0abe8: 83 c3 00 20 lwz r30,32(r3)
Heap_Walk_printer printer = dump ?
_Heap_Walk_print : _Heap_Walk_print_nothing;
ffc0abec: 40 9e 00 7c bne- cr7,ffc0ac68 <_Heap_Walk+0xec>
ffc0abf0: 3d 20 ff c1 lis r9,-63
ffc0abf4: 39 29 ab 78 addi r9,r9,-21640
ffc0abf8: 91 21 00 18 stw r9,24(r1)
if ( !_System_state_Is_up( _System_state_Get() ) ) {
ffc0abfc: 3d 20 00 00 lis r9,0
ffc0ac00: 80 09 27 90 lwz r0,10128(r9)
ffc0ac04: 2f 80 00 03 cmpwi cr7,r0,3
ffc0ac08: 41 9e 00 7c beq- cr7,ffc0ac84 <_Heap_Walk+0x108>
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
}
while ( block != last_block ) {
ffc0ac0c: 38 60 00 01 li r3,1
block = next_block;
}
return true;
}
ffc0ac10: 80 01 00 6c lwz r0,108(r1)
ffc0ac14: 81 c1 00 20 lwz r14,32(r1)
ffc0ac18: 7c 08 03 a6 mtlr r0
ffc0ac1c: 81 e1 00 24 lwz r15,36(r1)
ffc0ac20: 82 01 00 28 lwz r16,40(r1)
ffc0ac24: 82 21 00 2c lwz r17,44(r1)
ffc0ac28: 82 41 00 30 lwz r18,48(r1)
ffc0ac2c: 82 61 00 34 lwz r19,52(r1)
ffc0ac30: 82 81 00 38 lwz r20,56(r1)
ffc0ac34: 82 a1 00 3c lwz r21,60(r1)
ffc0ac38: 82 c1 00 40 lwz r22,64(r1)
ffc0ac3c: 82 e1 00 44 lwz r23,68(r1)
ffc0ac40: 83 01 00 48 lwz r24,72(r1)
ffc0ac44: 83 21 00 4c lwz r25,76(r1)
ffc0ac48: 83 41 00 50 lwz r26,80(r1)
ffc0ac4c: 83 61 00 54 lwz r27,84(r1)
ffc0ac50: 83 81 00 58 lwz r28,88(r1)
ffc0ac54: 83 a1 00 5c lwz r29,92(r1)
ffc0ac58: 83 c1 00 60 lwz r30,96(r1)
ffc0ac5c: 83 e1 00 64 lwz r31,100(r1)
ffc0ac60: 38 21 00 68 addi r1,r1,104
ffc0ac64: 4e 80 00 20 blr
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
Heap_Block *const last_block = heap->last_block;
Heap_Block *block = heap->first_block;
Heap_Walk_printer printer = dump ?
_Heap_Walk_print : _Heap_Walk_print_nothing;
ffc0ac68: 3d 20 ff c1 lis r9,-63
ffc0ac6c: 39 29 b1 94 addi r9,r9,-20076
ffc0ac70: 91 21 00 18 stw r9,24(r1)
if ( !_System_state_Is_up( _System_state_Get() ) ) {
ffc0ac74: 3d 20 00 00 lis r9,0
ffc0ac78: 80 09 27 90 lwz r0,10128(r9)
ffc0ac7c: 2f 80 00 03 cmpwi cr7,r0,3
ffc0ac80: 40 9e ff 8c bne+ cr7,ffc0ac0c <_Heap_Walk+0x90>
Heap_Block *const first_free_block = _Heap_Free_list_first( heap );
Heap_Block *const last_free_block = _Heap_Free_list_last( heap );
Heap_Block *const first_block = heap->first_block;
Heap_Block *const last_block = heap->last_block;
(*printer)(
ffc0ac84: 80 1f 00 0c lwz r0,12(r31)
ffc0ac88: 3c a0 ff c2 lis r5,-62
ffc0ac8c: 81 1f 00 18 lwz r8,24(r31)
ffc0ac90: 38 a5 f5 80 addi r5,r5,-2688
ffc0ac94: 81 3f 00 1c lwz r9,28(r31)
ffc0ac98: 7f 83 e3 78 mr r3,r28
ffc0ac9c: 81 7f 00 08 lwz r11,8(r31)
ffc0aca0: 38 80 00 00 li r4,0
ffc0aca4: 90 01 00 10 stw r0,16(r1)
ffc0aca8: 7f 66 db 78 mr r6,r27
ffc0acac: 7f 47 d3 78 mr r7,r26
ffc0acb0: 80 01 00 18 lwz r0,24(r1)
ffc0acb4: 7f ca f3 78 mr r10,r30
ffc0acb8: 91 61 00 0c stw r11,12(r1)
ffc0acbc: 7c 09 03 a6 mtctr r0
ffc0acc0: 93 21 00 08 stw r25,8(r1)
ffc0acc4: 4c c6 31 82 crclr 4*cr1+eq
ffc0acc8: 4e 80 04 21 bctrl
heap->area_begin, heap->area_end,
first_block, last_block,
first_free_block, last_free_block
);
if ( page_size == 0 ) {
ffc0accc: 2f 9b 00 00 cmpwi cr7,r27,0
ffc0acd0: 41 9e 00 d0 beq- cr7,ffc0ada0 <_Heap_Walk+0x224>
(*printer)( source, true, "page size is zero\n" );
return false;
}
if ( !_Addresses_Is_aligned( (void *) page_size ) ) {
ffc0acd4: 73 67 00 07 andi. r7,r27,7
ffc0acd8: 40 82 00 f0 bne- ffc0adc8 <_Heap_Walk+0x24c>
);
return false;
}
if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {
ffc0acdc: 7c 1a db 96 divwu r0,r26,r27
ffc0ace0: 7c 00 d9 d6 mullw r0,r0,r27
ffc0ace4: 7f 9a 00 00 cmpw cr7,r26,r0
ffc0ace8: 40 9e 00 f4 bne- cr7,ffc0addc <_Heap_Walk+0x260>
);
return false;
}
if (
ffc0acec: 38 1e 00 08 addi r0,r30,8
ffc0acf0: 7d 20 db 96 divwu r9,r0,r27
ffc0acf4: 7d 29 d9 d6 mullw r9,r9,r27
ffc0acf8: 7f 80 48 00 cmpw cr7,r0,r9
ffc0acfc: 40 9e 00 f4 bne- cr7,ffc0adf0 <_Heap_Walk+0x274>
block->size_and_flag = size | flag;
}
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{
return block->size_and_flag & HEAP_PREV_BLOCK_USED;
ffc0ad00: 83 1e 00 04 lwz r24,4(r30)
);
return false;
}
if ( !_Heap_Is_prev_used( first_block ) ) {
ffc0ad04: 73 00 00 01 andi. r0,r24,1
ffc0ad08: 41 82 00 fc beq- ffc0ae04 <_Heap_Walk+0x288>
);
return false;
}
if ( first_block->prev_size != page_size ) {
ffc0ad0c: 80 de 00 00 lwz r6,0(r30)
ffc0ad10: 7f 9b 30 00 cmpw cr7,r27,r6
ffc0ad14: 40 9e 00 60 bne- cr7,ffc0ad74 <_Heap_Walk+0x1f8>
);
return false;
}
if ( _Heap_Is_free( last_block ) ) {
ffc0ad18: 81 39 00 04 lwz r9,4(r25)
ffc0ad1c: 55 29 00 3c rlwinm r9,r9,0,0,30
ffc0ad20: 7d 39 4a 14 add r9,r25,r9
ffc0ad24: 81 29 00 04 lwz r9,4(r9)
ffc0ad28: 71 27 00 01 andi. r7,r9,1
ffc0ad2c: 41 82 04 28 beq- ffc0b154 <_Heap_Walk+0x5d8>
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
ffc0ad30: 80 df 00 08 lwz r6,8(r31)
int source,
Heap_Walk_printer printer,
Heap_Control *heap
)
{
uintptr_t const page_size = heap->page_size;
ffc0ad34: 80 bf 00 10 lwz r5,16(r31)
const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
const Heap_Block *const first_free_block = _Heap_Free_list_first( heap );
const Heap_Block *prev_block = free_list_tail;
const Heap_Block *free_block = first_free_block;
while ( free_block != free_list_tail ) {
ffc0ad38: 7f 9f 30 00 cmpw cr7,r31,r6
ffc0ad3c: 41 9e 01 78 beq- cr7,ffc0aeb4 <_Heap_Walk+0x338>
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
&& (uintptr_t) block <= (uintptr_t) heap->last_block;
ffc0ad40: 81 5f 00 20 lwz r10,32(r31)
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
ffc0ad44: 7f 8a 30 40 cmplw cr7,r10,r6
ffc0ad48: 40 9d 00 cc ble- cr7,ffc0ae14 <_Heap_Walk+0x298>
if ( !_Heap_Is_block_in_heap( heap, free_block ) ) {
(*printer)(
ffc0ad4c: 3c a0 ff c2 lis r5,-62
ffc0ad50: 7f 83 e3 78 mr r3,r28
ffc0ad54: 38 a5 f7 14 addi r5,r5,-2284
return false;
}
if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {
(*printer)(
ffc0ad58: 80 01 00 18 lwz r0,24(r1)
ffc0ad5c: 38 80 00 01 li r4,1
ffc0ad60: 7c 09 03 a6 mtctr r0
ffc0ad64: 4c c6 31 82 crclr 4*cr1+eq
ffc0ad68: 4e 80 04 21 bctrl
ffc0ad6c: 38 60 00 00 li r3,0
ffc0ad70: 4b ff fe a0 b ffc0ac10 <_Heap_Walk+0x94>
return false;
}
if ( first_block->prev_size != page_size ) {
(*printer)(
ffc0ad74: 3c a0 ff c2 lis r5,-62
ffc0ad78: 7f 83 e3 78 mr r3,r28
ffc0ad7c: 38 a5 f6 d0 addi r5,r5,-2352
ffc0ad80: 7f 67 db 78 mr r7,r27
return false;
}
if ( next_block_begin <= block_begin ) {
(*printer)(
ffc0ad84: 80 01 00 18 lwz r0,24(r1)
ffc0ad88: 38 80 00 01 li r4,1
ffc0ad8c: 7c 09 03 a6 mtctr r0
ffc0ad90: 4c c6 31 82 crclr 4*cr1+eq
ffc0ad94: 4e 80 04 21 bctrl
ffc0ad98: 38 60 00 00 li r3,0
"block 0x%08x: next block 0x%08x is not a successor\n",
block,
next_block
);
return false;
ffc0ad9c: 4b ff fe 74 b ffc0ac10 <_Heap_Walk+0x94>
first_block, last_block,
first_free_block, last_free_block
);
if ( page_size == 0 ) {
(*printer)( source, true, "page size is zero\n" );
ffc0ada0: 3c a0 ff c2 lis r5,-62
ffc0ada4: 7f 83 e3 78 mr r3,r28
ffc0ada8: 38 a5 f6 14 addi r5,r5,-2540
return false;
}
if ( !_Heap_Is_prev_used( first_block ) ) {
(*printer)(
ffc0adac: 80 01 00 18 lwz r0,24(r1)
ffc0adb0: 38 80 00 01 li r4,1
ffc0adb4: 7c 09 03 a6 mtctr r0
ffc0adb8: 4c c6 31 82 crclr 4*cr1+eq
ffc0adbc: 4e 80 04 21 bctrl
ffc0adc0: 38 60 00 00 li r3,0
ffc0adc4: 4b ff fe 4c b ffc0ac10 <_Heap_Walk+0x94>
return false;
}
if ( !_Addresses_Is_aligned( (void *) page_size ) ) {
(*printer)(
ffc0adc8: 3c a0 ff c2 lis r5,-62
ffc0adcc: 7f 83 e3 78 mr r3,r28
ffc0add0: 38 a5 f6 28 addi r5,r5,-2520
ffc0add4: 7f 66 db 78 mr r6,r27
ffc0add8: 4b ff ff 80 b ffc0ad58 <_Heap_Walk+0x1dc>
return false;
}
if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {
(*printer)(
ffc0addc: 3c a0 ff c2 lis r5,-62
ffc0ade0: 7f 83 e3 78 mr r3,r28
ffc0ade4: 38 a5 f6 48 addi r5,r5,-2488
ffc0ade8: 7f 46 d3 78 mr r6,r26
ffc0adec: 4b ff ff 6c b ffc0ad58 <_Heap_Walk+0x1dc>
}
if (
!_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
) {
(*printer)(
ffc0adf0: 3c a0 ff c2 lis r5,-62
ffc0adf4: 7f 83 e3 78 mr r3,r28
ffc0adf8: 38 a5 f6 6c addi r5,r5,-2452
ffc0adfc: 7f c6 f3 78 mr r6,r30
ffc0ae00: 4b ff ff 58 b ffc0ad58 <_Heap_Walk+0x1dc>
return false;
}
if ( !_Heap_Is_prev_used( first_block ) ) {
(*printer)(
ffc0ae04: 3c a0 ff c2 lis r5,-62
ffc0ae08: 7f 83 e3 78 mr r3,r28
ffc0ae0c: 38 a5 f6 a0 addi r5,r5,-2400
ffc0ae10: 4b ff ff 9c b ffc0adac <_Heap_Walk+0x230>
&& (uintptr_t) block <= (uintptr_t) heap->last_block;
ffc0ae14: 81 1f 00 24 lwz r8,36(r31)
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
ffc0ae18: 7f 88 30 40 cmplw cr7,r8,r6
ffc0ae1c: 41 bc ff 30 blt- cr7,ffc0ad4c <_Heap_Walk+0x1d0>
);
return false;
}
if (
ffc0ae20: 39 26 00 08 addi r9,r6,8
ffc0ae24: 7d 69 2b 96 divwu r11,r9,r5
ffc0ae28: 7d 6b 29 d6 mullw r11,r11,r5
ffc0ae2c: 7f 89 58 00 cmpw cr7,r9,r11
ffc0ae30: 40 9e 03 34 bne- cr7,ffc0b164 <_Heap_Walk+0x5e8>
);
return false;
}
if ( _Heap_Is_used( free_block ) ) {
ffc0ae34: 81 26 00 04 lwz r9,4(r6)
ffc0ae38: 55 29 00 3c rlwinm r9,r9,0,0,30
ffc0ae3c: 7d 26 4a 14 add r9,r6,r9
ffc0ae40: 81 29 00 04 lwz r9,4(r9)
ffc0ae44: 71 27 00 01 andi. r7,r9,1
ffc0ae48: 40 82 03 3c bne- ffc0b184 <_Heap_Walk+0x608>
);
return false;
}
if ( free_block->prev != prev_block ) {
ffc0ae4c: 80 e6 00 0c lwz r7,12(r6)
ffc0ae50: 7f 9f 38 00 cmpw cr7,r31,r7
ffc0ae54: 41 be 00 48 beq+ cr7,ffc0ae9c <_Heap_Walk+0x320>
ffc0ae58: 48 00 03 1c b ffc0b174 <_Heap_Walk+0x5f8> <== NOT EXECUTED
ffc0ae5c: 41 b8 fe f0 blt- cr6,ffc0ad4c <_Heap_Walk+0x1d0>
);
return false;
}
if (
ffc0ae60: 39 66 00 08 addi r11,r6,8
ffc0ae64: 41 a4 fe e8 blt- cr1,ffc0ad4c <_Heap_Walk+0x1d0>
ffc0ae68: 7c eb 2b 96 divwu r7,r11,r5
ffc0ae6c: 7c e7 29 d6 mullw r7,r7,r5
ffc0ae70: 7f 8b 38 00 cmpw cr7,r11,r7
ffc0ae74: 40 9e 02 f0 bne- cr7,ffc0b164 <_Heap_Walk+0x5e8>
);
return false;
}
if ( _Heap_Is_used( free_block ) ) {
ffc0ae78: 81 66 00 04 lwz r11,4(r6)
ffc0ae7c: 55 6b 00 3c rlwinm r11,r11,0,0,30
ffc0ae80: 7d 6b 32 14 add r11,r11,r6
ffc0ae84: 81 6b 00 04 lwz r11,4(r11)
ffc0ae88: 71 67 00 01 andi. r7,r11,1
ffc0ae8c: 40 82 02 f8 bne- ffc0b184 <_Heap_Walk+0x608>
);
return false;
}
if ( free_block->prev != prev_block ) {
ffc0ae90: 80 e6 00 0c lwz r7,12(r6)
ffc0ae94: 7f 87 48 00 cmpw cr7,r7,r9
ffc0ae98: 40 9e 02 dc bne- cr7,ffc0b174 <_Heap_Walk+0x5f8>
(*printer)(
ffc0ae9c: 7c c9 33 78 mr r9,r6
return false;
}
prev_block = free_block;
free_block = free_block->next;
ffc0aea0: 80 c6 00 08 lwz r6,8(r6)
const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
const Heap_Block *const first_free_block = _Heap_Free_list_first( heap );
const Heap_Block *prev_block = free_list_tail;
const Heap_Block *free_block = first_free_block;
while ( free_block != free_list_tail ) {
ffc0aea4: 7f 9f 30 00 cmpw cr7,r31,r6
ffc0aea8: 7f 06 50 40 cmplw cr6,r6,r10
ffc0aeac: 7c 88 30 40 cmplw cr1,r8,r6
ffc0aeb0: 40 9e ff ac bne+ cr7,ffc0ae5c <_Heap_Walk+0x2e0>
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
}
while ( block != last_block ) {
ffc0aeb4: 7f 99 f0 00 cmpw cr7,r25,r30
ffc0aeb8: 41 be fd 54 beq- cr7,ffc0ac0c <_Heap_Walk+0x90>
bool const prev_used = _Heap_Is_prev_used( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
uintptr_t const next_block_begin = (uintptr_t) next_block;
if ( prev_used ) {
(*printer)(
ffc0aebc: 3e 60 ff c2 lis r19,-62
"block 0x%08x: size %u\n",
block,
block_size
);
} else {
(*printer)(
ffc0aec0: 3e 80 ff c2 lis r20,-62
Heap_Block *const last_free_block = _Heap_Free_list_last( heap );
bool const prev_used = _Heap_Is_prev_used( block );
uintptr_t const block_size = _Heap_Block_size( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
(*printer)(
ffc0aec4: 3e 40 ff c2 lis r18,-62
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
block->next,
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
ffc0aec8: 3d e0 ff c2 lis r15,-62
ffc0aecc: 3e a0 ff c2 lis r21,-62
Heap_Block *const last_free_block = _Heap_Free_list_last( heap );
bool const prev_used = _Heap_Is_prev_used( block );
uintptr_t const block_size = _Heap_Block_size( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
(*printer)(
ffc0aed0: 3e 20 ff c2 lis r17,-62
"block 0x%08x: prev 0x%08x%s, next 0x%08x%s\n",
block,
block->prev,
block->prev == first_free_block ?
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
ffc0aed4: 3d c0 ff c2 lis r14,-62
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
ffc0aed8: 3e 00 ff c2 lis r16,-62
bool const prev_used = _Heap_Is_prev_used( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
uintptr_t const next_block_begin = (uintptr_t) next_block;
if ( prev_used ) {
(*printer)(
ffc0aedc: 3a 73 f7 b4 addi r19,r19,-2124
"block 0x%08x: size %u\n",
block,
block_size
);
} else {
(*printer)(
ffc0aee0: 3a 94 f7 cc addi r20,r20,-2100
Heap_Block *const last_free_block = _Heap_Free_list_last( heap );
bool const prev_used = _Heap_Is_prev_used( block );
uintptr_t const block_size = _Heap_Block_size( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
(*printer)(
ffc0aee4: 3a 52 f8 e4 addi r18,r18,-1820
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
block->next,
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
ffc0aee8: 39 ef f8 d8 addi r15,r15,-1832
ffc0aeec: 3a b5 f9 48 addi r21,r21,-1720
Heap_Block *const last_free_block = _Heap_Free_list_last( heap );
bool const prev_used = _Heap_Is_prev_used( block );
uintptr_t const block_size = _Heap_Block_size( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
(*printer)(
ffc0aef0: 3a 31 f8 cc addi r17,r17,-1844
"block 0x%08x: prev 0x%08x%s, next 0x%08x%s\n",
block,
block->prev,
block->prev == first_free_block ?
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
ffc0aef4: 39 ce f8 c0 addi r14,r14,-1856
ffc0aef8: 3a 10 f8 b4 addi r16,r16,-1868
uintptr_t const block_size = _Heap_Block_size( block );
bool const prev_used = _Heap_Is_prev_used( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
uintptr_t const next_block_begin = (uintptr_t) next_block;
if ( prev_used ) {
ffc0aefc: 2f 80 00 00 cmpwi cr7,r0,0
- HEAP_BLOCK_HEADER_SIZE);
}
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{
return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;
ffc0af00: 57 18 00 3c rlwinm r24,r24,0,0,30
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
ffc0af04: 7f b8 f2 14 add r29,r24,r30
ffc0af08: 41 9e 00 4c beq- cr7,ffc0af54 <_Heap_Walk+0x3d8>
(*printer)(
ffc0af0c: 80 01 00 18 lwz r0,24(r1)
ffc0af10: 7f 83 e3 78 mr r3,r28
ffc0af14: 38 80 00 00 li r4,0
ffc0af18: 7c 09 03 a6 mtctr r0
ffc0af1c: 7e 65 9b 78 mr r5,r19
ffc0af20: 7f c6 f3 78 mr r6,r30
ffc0af24: 7f 07 c3 78 mr r7,r24
ffc0af28: 4c c6 31 82 crclr 4*cr1+eq
ffc0af2c: 4e 80 04 21 bctrl
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
ffc0af30: 80 1f 00 20 lwz r0,32(r31)
ffc0af34: 7f 80 e8 40 cmplw cr7,r0,r29
ffc0af38: 40 9d 00 50 ble- cr7,ffc0af88 <_Heap_Walk+0x40c>
block->prev_size
);
}
if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {
(*printer)(
ffc0af3c: 3c a0 ff c2 lis r5,-62
ffc0af40: 7f 83 e3 78 mr r3,r28
ffc0af44: 38 a5 f7 f4 addi r5,r5,-2060
ffc0af48: 7f c6 f3 78 mr r6,r30
ffc0af4c: 7f a7 eb 78 mr r7,r29
ffc0af50: 4b ff fe 34 b ffc0ad84 <_Heap_Walk+0x208>
"block 0x%08x: size %u\n",
block,
block_size
);
} else {
(*printer)(
ffc0af54: 80 01 00 18 lwz r0,24(r1)
ffc0af58: 7f 83 e3 78 mr r3,r28
ffc0af5c: 38 80 00 00 li r4,0
ffc0af60: 81 1e 00 00 lwz r8,0(r30)
ffc0af64: 7c 09 03 a6 mtctr r0
ffc0af68: 7e 85 a3 78 mr r5,r20
ffc0af6c: 7f c6 f3 78 mr r6,r30
ffc0af70: 7f 07 c3 78 mr r7,r24
ffc0af74: 4c c6 31 82 crclr 4*cr1+eq
ffc0af78: 4e 80 04 21 bctrl
ffc0af7c: 80 1f 00 20 lwz r0,32(r31)
ffc0af80: 7f 80 e8 40 cmplw cr7,r0,r29
ffc0af84: 41 bd ff b8 bgt- cr7,ffc0af3c <_Heap_Walk+0x3c0>
ffc0af88: 80 1f 00 24 lwz r0,36(r31)
ffc0af8c: 7f 80 e8 40 cmplw cr7,r0,r29
ffc0af90: 41 bc ff ac blt- cr7,ffc0af3c <_Heap_Walk+0x3c0>
);
return false;
}
if ( !_Heap_Is_aligned( block_size, page_size ) ) {
ffc0af94: 7c 18 db 96 divwu r0,r24,r27
ffc0af98: 7c 00 d9 d6 mullw r0,r0,r27
ffc0af9c: 7f 98 00 00 cmpw cr7,r24,r0
ffc0afa0: 40 9e 01 50 bne- cr7,ffc0b0f0 <_Heap_Walk+0x574>
);
return false;
}
if ( block_size < min_block_size ) {
ffc0afa4: 7f 9a c0 40 cmplw cr7,r26,r24
ffc0afa8: 41 9d 01 60 bgt- cr7,ffc0b108 <_Heap_Walk+0x58c>
);
return false;
}
if ( next_block_begin <= block_begin ) {
ffc0afac: 7f 9e e8 40 cmplw cr7,r30,r29
ffc0afb0: 40 9c 01 8c bge- cr7,ffc0b13c <_Heap_Walk+0x5c0>
);
return false;
}
if ( !_Heap_Is_prev_used( next_block ) ) {
ffc0afb4: 80 1d 00 04 lwz r0,4(r29)
ffc0afb8: 70 07 00 01 andi. r7,r0,1
ffc0afbc: 40 82 00 b0 bne- ffc0b06c <_Heap_Walk+0x4f0>
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
ffc0afc0: 80 1f 00 08 lwz r0,8(r31)
ffc0afc4: 7e 08 83 78 mr r8,r16
Heap_Block *const last_free_block = _Heap_Free_list_last( heap );
bool const prev_used = _Heap_Is_prev_used( block );
uintptr_t const block_size = _Heap_Block_size( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
(*printer)(
ffc0afc8: 80 fe 00 0c lwz r7,12(r30)
block->size_and_flag = size | flag;
}
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{
return block->size_and_flag & HEAP_PREV_BLOCK_USED;
ffc0afcc: 82 de 00 04 lwz r22,4(r30)
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
ffc0afd0: 7f 80 38 00 cmpw cr7,r0,r7
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_last( Heap_Control *heap )
{
return _Heap_Free_list_tail(heap)->prev;
ffc0afd4: 80 1f 00 0c lwz r0,12(r31)
- HEAP_BLOCK_HEADER_SIZE);
}
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{
return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;
ffc0afd8: 56 d8 00 3c rlwinm r24,r22,0,0,30
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
ffc0afdc: 7e fe c2 14 add r23,r30,r24
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
ffc0afe0: 41 9e 00 10 beq- cr7,ffc0aff0 <_Heap_Walk+0x474>
"block 0x%08x: prev 0x%08x%s, next 0x%08x%s\n",
block,
block->prev,
block->prev == first_free_block ?
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
ffc0afe4: 7f 87 f8 00 cmpw cr7,r7,r31
ffc0afe8: 7e a8 ab 78 mr r8,r21
ffc0afec: 41 9e 00 fc beq- cr7,ffc0b0e8 <_Heap_Walk+0x56c>
Heap_Block *const last_free_block = _Heap_Free_list_last( heap );
bool const prev_used = _Heap_Is_prev_used( block );
uintptr_t const block_size = _Heap_Block_size( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
(*printer)(
ffc0aff0: 81 3e 00 08 lwz r9,8(r30)
ffc0aff4: 7e 2a 8b 78 mr r10,r17
ffc0aff8: 7f 80 48 00 cmpw cr7,r0,r9
ffc0affc: 41 9e 00 10 beq- cr7,ffc0b00c <_Heap_Walk+0x490>
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
block->next,
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
ffc0b000: 7f 89 f8 00 cmpw cr7,r9,r31
ffc0b004: 7e aa ab 78 mr r10,r21
ffc0b008: 41 9e 00 d8 beq- cr7,ffc0b0e0 <_Heap_Walk+0x564>
Heap_Block *const last_free_block = _Heap_Free_list_last( heap );
bool const prev_used = _Heap_Is_prev_used( block );
uintptr_t const block_size = _Heap_Block_size( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
(*printer)(
ffc0b00c: 80 01 00 18 lwz r0,24(r1)
ffc0b010: 7f 83 e3 78 mr r3,r28
ffc0b014: 38 80 00 00 li r4,0
ffc0b018: 7e 45 93 78 mr r5,r18
ffc0b01c: 7c 09 03 a6 mtctr r0
ffc0b020: 7f c6 f3 78 mr r6,r30
ffc0b024: 4c c6 31 82 crclr 4*cr1+eq
ffc0b028: 4e 80 04 21 bctrl
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
);
if ( block_size != next_block->prev_size ) {
ffc0b02c: 81 17 00 00 lwz r8,0(r23)
ffc0b030: 7f 98 40 00 cmpw cr7,r24,r8
ffc0b034: 41 9e 00 50 beq- cr7,ffc0b084 <_Heap_Walk+0x508>
(*printer)(
ffc0b038: 80 01 00 18 lwz r0,24(r1)
ffc0b03c: 3c a0 ff c2 lis r5,-62
ffc0b040: 7f 83 e3 78 mr r3,r28
ffc0b044: 38 a5 f9 10 addi r5,r5,-1776
ffc0b048: 7c 09 03 a6 mtctr r0
ffc0b04c: 7f c6 f3 78 mr r6,r30
ffc0b050: 7f 07 c3 78 mr r7,r24
ffc0b054: 7e e9 bb 78 mr r9,r23
ffc0b058: 38 80 00 01 li r4,1
ffc0b05c: 4c c6 31 82 crclr 4*cr1+eq
ffc0b060: 4e 80 04 21 bctrl
ffc0b064: 38 60 00 00 li r3,0
ffc0b068: 4b ff fb a8 b ffc0ac10 <_Heap_Walk+0x94>
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
}
while ( block != last_block ) {
ffc0b06c: 7f 99 e8 00 cmpw cr7,r25,r29
ffc0b070: 41 be fb 9c beq- cr7,ffc0ac0c <_Heap_Walk+0x90>
const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
const Heap_Block *const first_free_block = _Heap_Free_list_first( heap );
const Heap_Block *prev_block = free_list_tail;
const Heap_Block *free_block = first_free_block;
while ( free_block != free_list_tail ) {
ffc0b074: 83 1d 00 04 lwz r24,4(r29)
ffc0b078: 7f be eb 78 mr r30,r29
ffc0b07c: 57 00 07 fe clrlwi r0,r24,31
ffc0b080: 4b ff fe 7c b ffc0aefc <_Heap_Walk+0x380>
);
return false;
}
if ( !prev_used ) {
ffc0b084: 72 c7 00 01 andi. r7,r22,1
ffc0b088: 41 82 00 44 beq- ffc0b0cc <_Heap_Walk+0x550>
ffc0b08c: 81 3f 00 08 lwz r9,8(r31)
)
{
const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
const Heap_Block *free_block = _Heap_Free_list_first( heap );
while ( free_block != free_list_tail ) {
ffc0b090: 7f 89 f8 00 cmpw cr7,r9,r31
ffc0b094: 41 9e 00 24 beq- cr7,ffc0b0b8 <_Heap_Walk+0x53c>
if ( free_block == block ) {
ffc0b098: 7f 89 f0 00 cmpw cr7,r9,r30
ffc0b09c: 40 be 00 0c bne+ cr7,ffc0b0a8 <_Heap_Walk+0x52c>
ffc0b0a0: 4b ff ff cc b ffc0b06c <_Heap_Walk+0x4f0>
ffc0b0a4: 41 ba ff c8 beq- cr6,ffc0b06c <_Heap_Walk+0x4f0>
return true;
}
free_block = free_block->next;
ffc0b0a8: 81 29 00 08 lwz r9,8(r9)
)
{
const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
const Heap_Block *free_block = _Heap_Free_list_first( heap );
while ( free_block != free_list_tail ) {
ffc0b0ac: 7f 89 f8 00 cmpw cr7,r9,r31
if ( free_block == block ) {
ffc0b0b0: 7f 09 f0 00 cmpw cr6,r9,r30
)
{
const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
const Heap_Block *free_block = _Heap_Free_list_first( heap );
while ( free_block != free_list_tail ) {
ffc0b0b4: 40 9e ff f0 bne+ cr7,ffc0b0a4 <_Heap_Walk+0x528>
return false;
}
if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {
(*printer)(
ffc0b0b8: 3c a0 ff c2 lis r5,-62
ffc0b0bc: 7f 83 e3 78 mr r3,r28
ffc0b0c0: 38 a5 f9 7c addi r5,r5,-1668
ffc0b0c4: 7f c6 f3 78 mr r6,r30
ffc0b0c8: 4b ff fc 90 b ffc0ad58 <_Heap_Walk+0x1dc>
return false;
}
if ( !prev_used ) {
(*printer)(
ffc0b0cc: 3c a0 ff c2 lis r5,-62
ffc0b0d0: 7f 83 e3 78 mr r3,r28
ffc0b0d4: 38 a5 f9 4c addi r5,r5,-1716
return false;
}
if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {
(*printer)(
ffc0b0d8: 7f c6 f3 78 mr r6,r30
ffc0b0dc: 4b ff fc 7c b ffc0ad58 <_Heap_Walk+0x1dc>
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
block->next,
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
ffc0b0e0: 7d ea 7b 78 mr r10,r15
ffc0b0e4: 4b ff ff 28 b ffc0b00c <_Heap_Walk+0x490>
"block 0x%08x: prev 0x%08x%s, next 0x%08x%s\n",
block,
block->prev,
block->prev == first_free_block ?
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
ffc0b0e8: 7d c8 73 78 mr r8,r14
ffc0b0ec: 4b ff ff 04 b ffc0aff0 <_Heap_Walk+0x474>
return false;
}
if ( !_Heap_Is_aligned( block_size, page_size ) ) {
(*printer)(
ffc0b0f0: 3c a0 ff c2 lis r5,-62
ffc0b0f4: 7f 83 e3 78 mr r3,r28
ffc0b0f8: 38 a5 f8 24 addi r5,r5,-2012
ffc0b0fc: 7f c6 f3 78 mr r6,r30
ffc0b100: 7f 07 c3 78 mr r7,r24
ffc0b104: 4b ff fc 80 b ffc0ad84 <_Heap_Walk+0x208>
return false;
}
if ( block_size < min_block_size ) {
(*printer)(
ffc0b108: 80 01 00 18 lwz r0,24(r1)
ffc0b10c: 3c a0 ff c2 lis r5,-62
ffc0b110: 7f 83 e3 78 mr r3,r28
ffc0b114: 38 a5 f8 54 addi r5,r5,-1964
ffc0b118: 7c 09 03 a6 mtctr r0
ffc0b11c: 7f c6 f3 78 mr r6,r30
ffc0b120: 7f 07 c3 78 mr r7,r24
ffc0b124: 7f 48 d3 78 mr r8,r26
ffc0b128: 38 80 00 01 li r4,1
ffc0b12c: 4c c6 31 82 crclr 4*cr1+eq
ffc0b130: 4e 80 04 21 bctrl
ffc0b134: 38 60 00 00 li r3,0
block,
block_size,
min_block_size
);
return false;
ffc0b138: 4b ff fa d8 b ffc0ac10 <_Heap_Walk+0x94>
}
if ( next_block_begin <= block_begin ) {
(*printer)(
ffc0b13c: 3c a0 ff c2 lis r5,-62
ffc0b140: 7f 83 e3 78 mr r3,r28
ffc0b144: 38 a5 f8 80 addi r5,r5,-1920
ffc0b148: 7f c6 f3 78 mr r6,r30
ffc0b14c: 7f a7 eb 78 mr r7,r29
ffc0b150: 4b ff fc 34 b ffc0ad84 <_Heap_Walk+0x208>
return false;
}
if ( _Heap_Is_free( last_block ) ) {
(*printer)(
ffc0b154: 3c a0 ff c2 lis r5,-62
ffc0b158: 7f 83 e3 78 mr r3,r28
ffc0b15c: 38 a5 f6 fc addi r5,r5,-2308
ffc0b160: 4b ff fc 4c b ffc0adac <_Heap_Walk+0x230>
}
if (
!_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
) {
(*printer)(
ffc0b164: 3c a0 ff c2 lis r5,-62
ffc0b168: 7f 83 e3 78 mr r3,r28
ffc0b16c: 38 a5 f7 34 addi r5,r5,-2252
ffc0b170: 4b ff fb e8 b ffc0ad58 <_Heap_Walk+0x1dc>
return false;
}
if ( free_block->prev != prev_block ) {
(*printer)(
ffc0b174: 3c a0 ff c2 lis r5,-62
ffc0b178: 7f 83 e3 78 mr r3,r28
ffc0b17c: 38 a5 f7 80 addi r5,r5,-2176
ffc0b180: 4b ff fc 04 b ffc0ad84 <_Heap_Walk+0x208>
return false;
}
if ( _Heap_Is_used( free_block ) ) {
(*printer)(
ffc0b184: 3c a0 ff c2 lis r5,-62
ffc0b188: 7f 83 e3 78 mr r3,r28
ffc0b18c: 38 a5 f7 64 addi r5,r5,-2204
ffc0b190: 4b ff fb c8 b ffc0ad58 <_Heap_Walk+0x1dc>
ffc0b194 <_Heap_Walk_print>:
{
/* Do nothing */
}
static void _Heap_Walk_print( int source, bool error, const char *fmt, ... )
{
ffc0b194: 94 21 ff 88 stwu r1,-120(r1)
ffc0b198: 7c 08 02 a6 mflr r0
ffc0b19c: 93 e1 00 74 stw r31,116(r1)
ffc0b1a0: 90 01 00 7c stw r0,124(r1)
ffc0b1a4: 7c 60 1b 78 mr r0,r3
ffc0b1a8: 90 c1 00 1c stw r6,28(r1)
ffc0b1ac: 90 e1 00 20 stw r7,32(r1)
ffc0b1b0: 91 01 00 24 stw r8,36(r1)
ffc0b1b4: 91 21 00 28 stw r9,40(r1)
ffc0b1b8: 91 41 00 2c stw r10,44(r1)
ffc0b1bc: 40 86 00 24 bne- cr1,ffc0b1e0 <_Heap_Walk_print+0x4c>
ffc0b1c0: d8 21 00 30 stfd f1,48(r1) <== NOT EXECUTED
ffc0b1c4: d8 41 00 38 stfd f2,56(r1) <== NOT EXECUTED
ffc0b1c8: d8 61 00 40 stfd f3,64(r1) <== NOT EXECUTED
ffc0b1cc: d8 81 00 48 stfd f4,72(r1) <== NOT EXECUTED
ffc0b1d0: d8 a1 00 50 stfd f5,80(r1) <== NOT EXECUTED
ffc0b1d4: d8 c1 00 58 stfd f6,88(r1) <== NOT EXECUTED
ffc0b1d8: d8 e1 00 60 stfd f7,96(r1) <== NOT EXECUTED
ffc0b1dc: d9 01 00 68 stfd f8,104(r1) <== NOT EXECUTED
va_list ap;
if ( error ) {
ffc0b1e0: 2f 84 00 00 cmpwi cr7,r4,0
{
/* Do nothing */
}
static void _Heap_Walk_print( int source, bool error, const char *fmt, ... )
{
ffc0b1e4: 7c bf 2b 78 mr r31,r5
va_list ap;
if ( error ) {
ffc0b1e8: 40 9e 00 58 bne- cr7,ffc0b240 <_Heap_Walk_print+0xac>
printk( "FAIL[%d]: ", source );
} else {
printk( "PASS[%d]: ", source );
ffc0b1ec: 3c 60 ff c2 lis r3,-62
ffc0b1f0: 7c 04 03 78 mr r4,r0
ffc0b1f4: 38 63 f9 b4 addi r3,r3,-1612
ffc0b1f8: 4c c6 31 82 crclr 4*cr1+eq
ffc0b1fc: 4b ff ad d9 bl ffc05fd4 <printk>
}
va_start( ap, fmt );
ffc0b200: 38 00 00 03 li r0,3
ffc0b204: 98 01 00 08 stb r0,8(r1)
ffc0b208: 38 00 00 00 li r0,0
vprintk( fmt, ap );
ffc0b20c: 7f e3 fb 78 mr r3,r31
printk( "FAIL[%d]: ", source );
} else {
printk( "PASS[%d]: ", source );
}
va_start( ap, fmt );
ffc0b210: 98 01 00 09 stb r0,9(r1)
ffc0b214: 38 01 00 80 addi r0,r1,128
vprintk( fmt, ap );
ffc0b218: 38 81 00 08 addi r4,r1,8
printk( "FAIL[%d]: ", source );
} else {
printk( "PASS[%d]: ", source );
}
va_start( ap, fmt );
ffc0b21c: 90 01 00 0c stw r0,12(r1)
ffc0b220: 38 01 00 10 addi r0,r1,16
ffc0b224: 90 01 00 10 stw r0,16(r1)
vprintk( fmt, ap );
ffc0b228: 4b ff d0 e1 bl ffc08308 <vprintk>
va_end( ap );
}
ffc0b22c: 80 01 00 7c lwz r0,124(r1)
ffc0b230: 83 e1 00 74 lwz r31,116(r1)
ffc0b234: 38 21 00 78 addi r1,r1,120
ffc0b238: 7c 08 03 a6 mtlr r0
ffc0b23c: 4e 80 00 20 blr
static void _Heap_Walk_print( int source, bool error, const char *fmt, ... )
{
va_list ap;
if ( error ) {
printk( "FAIL[%d]: ", source );
ffc0b240: 3c 60 ff c2 lis r3,-62
ffc0b244: 7c 04 03 78 mr r4,r0
ffc0b248: 38 63 f9 a8 addi r3,r3,-1624
ffc0b24c: 4c c6 31 82 crclr 4*cr1+eq
ffc0b250: 4b ff ad 85 bl ffc05fd4 <printk>
} else {
printk( "PASS[%d]: ", source );
}
va_start( ap, fmt );
ffc0b254: 38 00 00 03 li r0,3
ffc0b258: 98 01 00 08 stb r0,8(r1)
ffc0b25c: 38 00 00 00 li r0,0
vprintk( fmt, ap );
ffc0b260: 7f e3 fb 78 mr r3,r31
printk( "FAIL[%d]: ", source );
} else {
printk( "PASS[%d]: ", source );
}
va_start( ap, fmt );
ffc0b264: 98 01 00 09 stb r0,9(r1)
ffc0b268: 38 01 00 80 addi r0,r1,128
vprintk( fmt, ap );
ffc0b26c: 38 81 00 08 addi r4,r1,8
printk( "FAIL[%d]: ", source );
} else {
printk( "PASS[%d]: ", source );
}
va_start( ap, fmt );
ffc0b270: 90 01 00 0c stw r0,12(r1)
ffc0b274: 38 01 00 10 addi r0,r1,16
ffc0b278: 90 01 00 10 stw r0,16(r1)
vprintk( fmt, ap );
ffc0b27c: 4b ff d0 8d bl ffc08308 <vprintk>
va_end( ap );
}
ffc0b280: 80 01 00 7c lwz r0,124(r1)
ffc0b284: 83 e1 00 74 lwz r31,116(r1)
ffc0b288: 38 21 00 78 addi r1,r1,120
ffc0b28c: 7c 08 03 a6 mtlr r0
ffc0b290: 4e 80 00 20 blr
ffc09f18 <_Internal_error_Occurred>:
void _Internal_error_Occurred(
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
ffc09f18: 94 21 ff f0 stwu r1,-16(r1)
ffc09f1c: 7c 08 02 a6 mflr r0
_Internal_errors_What_happened.the_source = the_source;
ffc09f20: 3d 60 00 00 lis r11,0
ffc09f24: 39 2b 2c 90 addi r9,r11,11408
void _Internal_error_Occurred(
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
ffc09f28: 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;
ffc09f2c: 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;
ffc09f30: 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
)
{
ffc09f34: 93 e1 00 0c stw r31,12(r1)
ffc09f38: 7c bf 2b 78 mr r31,r5
_Internal_errors_What_happened.the_source = the_source;
ffc09f3c: 90 6b 2c 90 stw r3,11408(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 );
ffc09f40: 48 00 25 cd bl ffc0c50c <_User_extensions_Fatal>
RTEMS_INLINE_ROUTINE void _System_state_Set (
System_state_Codes state
)
{
_System_state_Current = state;
ffc09f44: 38 00 00 05 li r0,5
ffc09f48: 3d 20 00 00 lis r9,0
_System_state_Set( SYSTEM_STATE_FAILED );
_CPU_Fatal_halt( the_error );
ffc09f4c: 7f e3 fb 78 mr r3,r31
ffc09f50: 90 09 27 90 stw r0,10128(r9)
ffc09f54: 4b ff 9a e1 bl ffc03a34 <_BSP_Fatal_error>
ffc09f58: 48 00 00 00 b ffc09f58 <_Internal_error_Occurred+0x40><== NOT EXECUTED
ffc0a074 <_Objects_Extend_information>:
*/
void _Objects_Extend_information(
Objects_Information *information
)
{
ffc0a074: 94 21 ff b8 stwu r1,-72(r1)
ffc0a078: 7c 08 02 a6 mflr r0
ffc0a07c: 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 )
ffc0a080: 81 63 00 34 lwz r11,52(r3)
*/
void _Objects_Extend_information(
Objects_Information *information
)
{
ffc0a084: 93 a1 00 3c stw r29,60(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 )
ffc0a088: 2f 8b 00 00 cmpwi cr7,r11,0
*/
void _Objects_Extend_information(
Objects_Information *information
)
{
ffc0a08c: 93 e1 00 44 stw r31,68(r1)
ffc0a090: 7c 7f 1b 78 mr r31,r3
ffc0a094: 92 a1 00 1c stw r21,28(r1)
ffc0a098: 92 c1 00 20 stw r22,32(r1)
ffc0a09c: 92 e1 00 24 stw r23,36(r1)
ffc0a0a0: 93 01 00 28 stw r24,40(r1)
ffc0a0a4: 93 21 00 2c stw r25,44(r1)
ffc0a0a8: 93 41 00 30 stw r26,48(r1)
ffc0a0ac: 93 61 00 34 stw r27,52(r1)
ffc0a0b0: 93 81 00 38 stw r28,56(r1)
ffc0a0b4: 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 );
ffc0a0b8: a3 a3 00 0a lhz r29,10(r3)
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
ffc0a0bc: 41 9e 02 9c beq- cr7,ffc0a358 <_Objects_Extend_information+0x2e4>
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
ffc0a0c0: a3 23 00 10 lhz r25,16(r3)
ffc0a0c4: a1 23 00 14 lhz r9,20(r3)
ffc0a0c8: 7e b9 4b 96 divwu r21,r25,r9
for ( ; block < block_count; block++ ) {
ffc0a0cc: 2f 95 00 00 cmpwi cr7,r21,0
ffc0a0d0: 41 9e 02 a0 beq- cr7,ffc0a370 <_Objects_Extend_information+0x2fc>
if ( information->object_blocks[ block ] == NULL )
ffc0a0d4: 80 0b 00 00 lwz r0,0(r11)
ffc0a0d8: 2f 80 00 00 cmpwi cr7,r0,0
ffc0a0dc: 41 9e 02 94 beq- cr7,ffc0a370 <_Objects_Extend_information+0x2fc>
ffc0a0e0: 7d 2a 4b 78 mr r10,r9
ffc0a0e4: 7e a9 03 a6 mtctr r21
ffc0a0e8: 7f be eb 78 mr r30,r29
ffc0a0ec: 3b 60 00 00 li r27,0
ffc0a0f0: 48 00 00 10 b ffc0a100 <_Objects_Extend_information+0x8c>
ffc0a0f4: 7c 0b 00 2e lwzx r0,r11,r0
ffc0a0f8: 2f 80 00 00 cmpwi cr7,r0,0
ffc0a0fc: 41 9e 00 14 beq- cr7,ffc0a110 <_Objects_Extend_information+0x9c>
if ( information->object_blocks == NULL )
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
for ( ; block < block_count; block++ ) {
ffc0a100: 3b 7b 00 01 addi r27,r27,1
if ( information->object_blocks[ block ] == NULL )
ffc0a104: 57 60 10 3a rlwinm r0,r27,2,0,29
break;
else
index_base += information->allocation_size;
ffc0a108: 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++ ) {
ffc0a10c: 42 00 ff e8 bdnz+ ffc0a0f4 <_Objects_Extend_information+0x80>
else
index_base += information->allocation_size;
}
}
maximum = (uint32_t) information->maximum + information->allocation_size;
ffc0a110: 7f 39 52 14 add r25,r25,r10
/*
* 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 ) {
ffc0a114: 2b 99 ff ff cmplwi cr7,r25,65535
ffc0a118: 41 9d 01 b8 bgt- cr7,ffc0a2d0 <_Objects_Extend_information+0x25c>
/*
* 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 ) {
ffc0a11c: 88 1f 00 12 lbz r0,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;
ffc0a120: 80 7f 00 18 lwz r3,24(r31)
if ( information->auto_extend ) {
ffc0a124: 2f 80 00 00 cmpwi cr7,r0,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;
ffc0a128: 7c 6a 19 d6 mullw r3,r10,r3
if ( information->auto_extend ) {
ffc0a12c: 40 9e 01 e0 bne- cr7,ffc0a30c <_Objects_Extend_information+0x298>
new_object_block = _Workspace_Allocate( block_size );
if ( !new_object_block )
return;
} else {
new_object_block = _Workspace_Allocate_or_fatal_error( block_size );
ffc0a130: 48 00 29 f9 bl ffc0cb28 <_Workspace_Allocate_or_fatal_error>
ffc0a134: 7c 7c 1b 78 mr r28,r3
}
/*
* If the index_base is the maximum we need to grow the tables.
*/
if (index_base >= information->maximum ) {
ffc0a138: a0 1f 00 10 lhz r0,16(r31)
ffc0a13c: 7f 9e 00 40 cmplw cr7,r30,r0
ffc0a140: 41 9c 01 08 blt- cr7,ffc0a248 <_Objects_Extend_information+0x1d4>
*/
/*
* Up the block count and maximum
*/
block_count++;
ffc0a144: 3b 55 00 01 addi r26,r21,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 );
ffc0a148: 1c 7a 00 03 mulli r3,r26,3
ffc0a14c: 7c 79 1a 14 add r3,r25,r3
ffc0a150: 7c 63 ea 14 add r3,r3,r29
ffc0a154: 54 63 10 3a rlwinm r3,r3,2,0,29
ffc0a158: 48 00 2a 19 bl ffc0cb70 <_Workspace_Allocate>
if ( !object_blocks ) {
ffc0a15c: 7c 76 1b 79 mr. r22,r3
ffc0a160: 41 82 02 20 beq- ffc0a380 <_Objects_Extend_information+0x30c>
* Take the block count down. Saves all the (block_count - 1)
* in the copies.
*/
block_count--;
if ( information->maximum > minimum_index ) {
ffc0a164: a0 1f 00 10 lhz r0,16(r31)
}
/*
* Break the block into the various sections.
*/
inactive_per_block = (uint32_t *) _Addresses_Add_offset(
ffc0a168: 57 5a 10 3a rlwinm r26,r26,2,0,29
RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset (
const void *base,
uintptr_t offset
)
{
return (void *)((uintptr_t)base + offset);
ffc0a16c: 7f 16 d2 14 add r24,r22,r26
* Take the block count down. Saves all the (block_count - 1)
* in the copies.
*/
block_count--;
if ( information->maximum > minimum_index ) {
ffc0a170: 7f 9d 00 40 cmplw cr7,r29,r0
ffc0a174: 7f 58 d2 14 add r26,r24,r26
ffc0a178: 41 9c 01 a4 blt- cr7,ffc0a31c <_Objects_Extend_information+0x2a8>
} else {
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
ffc0a17c: 2f 9d 00 00 cmpwi cr7,r29,0
information->object_blocks,
block_count * sizeof(void*) );
memcpy( inactive_per_block,
information->inactive_per_block,
block_count * sizeof(uint32_t) );
memcpy( local_table,
ffc0a180: 39 20 00 00 li r9,0
} else {
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
ffc0a184: 56 b7 10 3a rlwinm r23,r21,2,0,29
ffc0a188: 41 9e 00 20 beq- cr7,ffc0a1a8 <_Objects_Extend_information+0x134>
local_table[ index ] = NULL;
ffc0a18c: 7f a9 03 a6 mtctr r29
ffc0a190: 38 00 00 00 li r0,0
ffc0a194: 55 2b 10 3a rlwinm r11,r9,2,0,29
ffc0a198: 7c 0b d1 2e stwx r0,r11,r26
} else {
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
ffc0a19c: 39 29 00 01 addi r9,r9,1
ffc0a1a0: 42 00 ff f4 bdnz+ ffc0a194 <_Objects_Extend_information+0x120>
ffc0a1a4: 56 b7 10 3a rlwinm r23,r21,2,0,29
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
ffc0a1a8: a1 7f 00 14 lhz r11,20(r31)
}
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
ffc0a1ac: 38 00 00 00 li r0,0
inactive_per_block[block_count] = 0;
ffc0a1b0: 7c 18 b9 2e stwx r0,r24,r23
for ( index=index_base ;
index < ( information->allocation_size + index_base );
ffc0a1b4: 7d 7e 5a 14 add r11,r30,r11
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
ffc0a1b8: 7f 9e 58 40 cmplw cr7,r30,r11
}
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
ffc0a1bc: 7c 16 b9 2e stwx r0,r22,r23
inactive_per_block[block_count] = 0;
for ( index=index_base ;
ffc0a1c0: 40 9c 00 30 bge- cr7,ffc0a1f0 <_Objects_Extend_information+0x17c>
ffc0a1c4: 38 1e 00 01 addi r0,r30,1
ffc0a1c8: 7f 80 58 40 cmplw cr7,r0,r11
ffc0a1cc: 57 c9 10 3a rlwinm r9,r30,2,0,29
index < ( information->allocation_size + index_base );
index++ ) {
local_table[ index ] = NULL;
ffc0a1d0: 7d 7e 58 50 subf r11,r30,r11
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
ffc0a1d4: 7d 3a 4a 14 add r9,r26,r9
index < ( information->allocation_size + index_base );
index++ ) {
local_table[ index ] = NULL;
ffc0a1d8: 7d 69 03 a6 mtctr r11
ffc0a1dc: 38 00 00 00 li r0,0
ffc0a1e0: 41 9d 01 ac bgt- cr7,ffc0a38c <_Objects_Extend_information+0x318>
ffc0a1e4: 90 09 00 00 stw r0,0(r9)
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
index++ ) {
ffc0a1e8: 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 ;
ffc0a1ec: 42 00 ff f8 bdnz+ ffc0a1e4 <_Objects_Extend_information+0x170>
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0a1f0: 7c 00 00 a6 mfmsr r0
ffc0a1f4: 7d 30 42 a6 mfsprg r9,0
ffc0a1f8: 7c 09 48 78 andc r9,r0,r9
ffc0a1fc: 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(
ffc0a200: 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;
ffc0a204: 57 39 04 3e clrlwi r25,r25,16
information->maximum_id = _Objects_Build_id(
ffc0a208: a1 3f 00 04 lhz r9,4(r31)
ffc0a20c: 55 6b c0 0e rlwinm r11,r11,24,0,7
local_table[ index ] = NULL;
}
_ISR_Disable( level );
old_tables = information->object_blocks;
ffc0a210: 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(
ffc0a214: 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;
ffc0a218: 93 1f 00 30 stw r24,48(r31)
information->local_table = local_table;
information->maximum = (Objects_Maximum) maximum;
information->maximum_id = _Objects_Build_id(
ffc0a21c: 55 29 d8 08 rlwinm r9,r9,27,0,4
ffc0a220: 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;
ffc0a224: 93 5f 00 1c stw r26,28(r31)
information->maximum = (Objects_Maximum) maximum;
information->maximum_id = _Objects_Build_id(
ffc0a228: 7d 29 cb 78 or r9,r9,r25
ffc0a22c: 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;
ffc0a230: b3 3f 00 10 sth r25,16(r31)
_ISR_Disable( level );
old_tables = information->object_blocks;
information->object_blocks = object_blocks;
ffc0a234: 92 df 00 34 stw r22,52(r31)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0a238: 7c 00 01 24 mtmsr r0
information->maximum
);
_ISR_Enable( level );
if ( old_tables )
ffc0a23c: 2f 83 00 00 cmpwi cr7,r3,0
ffc0a240: 41 9e 00 08 beq- cr7,ffc0a248 <_Objects_Extend_information+0x1d4>
_Workspace_Free( old_tables );
ffc0a244: 48 00 29 61 bl ffc0cba4 <_Workspace_Free>
}
/*
* Assign the new object block to the object block table.
*/
information->object_blocks[ block ] = new_object_block;
ffc0a248: 81 3f 00 34 lwz r9,52(r31)
ffc0a24c: 57 7b 10 3a rlwinm r27,r27,2,0,29
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
ffc0a250: 3b a1 00 08 addi r29,r1,8
ffc0a254: 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;
ffc0a258: 7f 89 d9 2e stwx r28,r9,r27
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
ffc0a25c: 7f 84 e3 78 mr r4,r28
ffc0a260: 7f a3 eb 78 mr r3,r29
ffc0a264: 80 df 00 18 lwz r6,24(r31)
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
ffc0a268: 3b 9f 00 20 addi r28,r31,32
information->object_blocks[ block ] = new_object_block;
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
ffc0a26c: 48 00 4a fd bl ffc0ed68 <_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 ) {
ffc0a270: 48 00 00 2c b ffc0a29c <_Objects_Extend_information+0x228>
the_object->id = _Objects_Build_id(
ffc0a274: 81 7f 00 00 lwz r11,0(r31)
ffc0a278: a0 1f 00 04 lhz r0,4(r31)
ffc0a27c: 55 6b c0 0e rlwinm r11,r11,24,0,7
ffc0a280: 65 6b 00 01 oris r11,r11,1
ffc0a284: 54 00 d8 08 rlwinm r0,r0,27,0,4
ffc0a288: 7d 60 03 78 or r0,r11,r0
ffc0a28c: 7c 00 f3 78 or r0,r0,r30
ffc0a290: 90 09 00 08 stw r0,8(r9)
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
ffc0a294: 3b de 00 01 addi r30,r30,1
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
ffc0a298: 4b ff f1 fd bl ffc09494 <_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 ) {
ffc0a29c: 7f a3 eb 78 mr r3,r29
ffc0a2a0: 4b ff f2 25 bl ffc094c4 <_Chain_Get>
ffc0a2a4: 7c 69 1b 79 mr. r9,r3
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
ffc0a2a8: 7f 83 e3 78 mr r3,r28
ffc0a2ac: 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 ) {
ffc0a2b0: 40 82 ff c4 bne+ ffc0a274 <_Objects_Extend_information+0x200>
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
ffc0a2b4: a0 1f 00 14 lhz r0,20(r31)
information->inactive =
ffc0a2b8: a1 3f 00 2c lhz r9,44(r31)
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
ffc0a2bc: 81 7f 00 30 lwz r11,48(r31)
information->inactive =
ffc0a2c0: 7d 20 4a 14 add r9,r0,r9
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
ffc0a2c4: 54 00 04 3e clrlwi r0,r0,16
information->inactive =
ffc0a2c8: b1 3f 00 2c sth r9,44(r31)
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
ffc0a2cc: 7c 0b d9 2e stwx r0,r11,r27
information->inactive =
(Objects_Maximum)(information->inactive + information->allocation_size);
}
ffc0a2d0: 80 01 00 4c lwz r0,76(r1)
ffc0a2d4: 82 a1 00 1c lwz r21,28(r1)
ffc0a2d8: 7c 08 03 a6 mtlr r0
ffc0a2dc: 82 c1 00 20 lwz r22,32(r1)
ffc0a2e0: 82 e1 00 24 lwz r23,36(r1)
ffc0a2e4: 83 01 00 28 lwz r24,40(r1)
ffc0a2e8: 83 21 00 2c lwz r25,44(r1)
ffc0a2ec: 83 41 00 30 lwz r26,48(r1)
ffc0a2f0: 83 61 00 34 lwz r27,52(r1)
ffc0a2f4: 83 81 00 38 lwz r28,56(r1)
ffc0a2f8: 83 a1 00 3c lwz r29,60(r1)
ffc0a2fc: 83 c1 00 40 lwz r30,64(r1)
ffc0a300: 83 e1 00 44 lwz r31,68(r1)
ffc0a304: 38 21 00 48 addi r1,r1,72
ffc0a308: 4e 80 00 20 blr
* Allocate the name table, and the objects and if it fails either return or
* generate a fatal error depending on auto-extending being active.
*/
block_size = information->allocation_size * information->size;
if ( information->auto_extend ) {
new_object_block = _Workspace_Allocate( block_size );
ffc0a30c: 48 00 28 65 bl ffc0cb70 <_Workspace_Allocate>
if ( !new_object_block )
ffc0a310: 7c 7c 1b 79 mr. r28,r3
ffc0a314: 40 82 fe 24 bne+ ffc0a138 <_Objects_Extend_information+0xc4>
ffc0a318: 4b ff ff b8 b ffc0a2d0 <_Objects_Extend_information+0x25c>
* separate parts as size of each block has changed.
*/
memcpy( object_blocks,
information->object_blocks,
block_count * sizeof(void*) );
ffc0a31c: 56 b7 10 3a rlwinm r23,r21,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,
ffc0a320: 80 9f 00 34 lwz r4,52(r31)
ffc0a324: 7e e5 bb 78 mr r5,r23
ffc0a328: 48 00 84 79 bl ffc127a0 <memcpy>
information->object_blocks,
block_count * sizeof(void*) );
memcpy( inactive_per_block,
ffc0a32c: 80 9f 00 30 lwz r4,48(r31)
ffc0a330: 7e e5 bb 78 mr r5,r23
ffc0a334: 7f 03 c3 78 mr r3,r24
ffc0a338: 48 00 84 69 bl ffc127a0 <memcpy>
information->inactive_per_block,
block_count * sizeof(uint32_t) );
memcpy( local_table,
ffc0a33c: a0 bf 00 10 lhz r5,16(r31)
ffc0a340: 80 9f 00 1c lwz r4,28(r31)
ffc0a344: 7f 43 d3 78 mr r3,r26
ffc0a348: 7c bd 2a 14 add r5,r29,r5
ffc0a34c: 54 a5 10 3a rlwinm r5,r5,2,0,29
ffc0a350: 48 00 84 51 bl ffc127a0 <memcpy>
ffc0a354: 4b ff fe 54 b ffc0a1a8 <_Objects_Extend_information+0x134>
minimum_index = _Objects_Get_index( information->minimum_id );
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
ffc0a358: a3 23 00 10 lhz r25,16(r3)
ffc0a35c: 7f be eb 78 mr r30,r29
ffc0a360: a1 43 00 14 lhz r10,20(r3)
ffc0a364: 3b 60 00 00 li r27,0
ffc0a368: 3a a0 00 00 li r21,0
ffc0a36c: 4b ff fd a4 b ffc0a110 <_Objects_Extend_information+0x9c>
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
for ( ; block < block_count; block++ ) {
if ( information->object_blocks[ block ] == NULL )
ffc0a370: 7d 2a 4b 78 mr r10,r9 <== NOT EXECUTED
ffc0a374: 7f be eb 78 mr r30,r29 <== NOT EXECUTED
ffc0a378: 3b 60 00 00 li r27,0 <== NOT EXECUTED
ffc0a37c: 4b ff fd 94 b ffc0a110 <_Objects_Extend_information+0x9c><== NOT EXECUTED
(sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
((maximum + minimum_index) * sizeof(Objects_Control *));
object_blocks = (void**) _Workspace_Allocate( block_size );
if ( !object_blocks ) {
_Workspace_Free( new_object_block );
ffc0a380: 7f 83 e3 78 mr r3,r28
ffc0a384: 48 00 28 21 bl ffc0cba4 <_Workspace_Free>
return;
ffc0a388: 4b ff ff 48 b ffc0a2d0 <_Objects_Extend_information+0x25c>
ffc0a38c: 39 60 00 01 li r11,1 <== NOT EXECUTED
ffc0a390: 7d 69 03 a6 mtctr r11 <== NOT EXECUTED
ffc0a394: 4b ff fe 50 b ffc0a1e4 <_Objects_Extend_information+0x170><== NOT EXECUTED
ffc0a79c <_Objects_Shrink_information>:
*/
void _Objects_Shrink_information(
Objects_Information *information
)
{
ffc0a79c: 94 21 ff e8 stwu r1,-24(r1)
ffc0a7a0: 7c 08 02 a6 mflr r0
ffc0a7a4: 90 01 00 1c stw r0,28(r1)
ffc0a7a8: 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) /
ffc0a7ac: a1 23 00 10 lhz r9,16(r3)
/*
* Search the list to find block or chunk with all objects inactive.
*/
index_base = _Objects_Get_index( information->minimum_id );
ffc0a7b0: a3 c3 00 0a lhz r30,10(r3)
block_count = (information->maximum - index_base) /
ffc0a7b4: a0 03 00 14 lhz r0,20(r3)
ffc0a7b8: 7d 3e 48 50 subf r9,r30,r9
*/
void _Objects_Shrink_information(
Objects_Information *information
)
{
ffc0a7bc: 93 81 00 08 stw r28,8(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) /
ffc0a7c0: 7d 29 03 96 divwu r9,r9,r0
*/
void _Objects_Shrink_information(
Objects_Information *information
)
{
ffc0a7c4: 93 a1 00 0c stw r29,12(r1)
ffc0a7c8: 93 e1 00 14 stw r31,20(r1)
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
ffc0a7cc: 2f 89 00 00 cmpwi cr7,r9,0
*/
void _Objects_Shrink_information(
Objects_Information *information
)
{
ffc0a7d0: 7c 7c 1b 78 mr r28,r3
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
ffc0a7d4: 41 9e 00 3c beq- cr7,ffc0a810 <_Objects_Shrink_information+0x74>
if ( information->inactive_per_block[ block ] ==
ffc0a7d8: 81 63 00 30 lwz r11,48(r3)
ffc0a7dc: 7d 29 03 a6 mtctr r9
information->object_blocks[ block ] = NULL;
information->inactive_per_block[ block ] = 0;
information->inactive -= information->allocation_size;
return;
ffc0a7e0: 3b e0 00 04 li r31,4
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
if ( information->inactive_per_block[ block ] ==
ffc0a7e4: 81 2b 00 00 lwz r9,0(r11)
ffc0a7e8: 7f 80 48 00 cmpw cr7,r0,r9
ffc0a7ec: 41 9e 00 44 beq- cr7,ffc0a830 <_Objects_Shrink_information+0x94>
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
ffc0a7f0: 42 40 00 20 bdz- ffc0a810 <_Objects_Shrink_information+0x74>
if ( information->inactive_per_block[ block ] ==
ffc0a7f4: 7d 2b f8 2e lwzx r9,r11,r31
information->inactive -= information->allocation_size;
return;
}
index_base += information->allocation_size;
ffc0a7f8: 7f de 02 14 add r30,r30,r0
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
if ( information->inactive_per_block[ block ] ==
ffc0a7fc: 7f 80 48 00 cmpw cr7,r0,r9
information->inactive -= information->allocation_size;
return;
}
index_base += information->allocation_size;
ffc0a800: 39 3f 00 04 addi r9,r31,4
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
if ( information->inactive_per_block[ block ] ==
ffc0a804: 41 9e 00 30 beq- cr7,ffc0a834 <_Objects_Shrink_information+0x98>
ffc0a808: 7d 3f 4b 78 mr r31,r9
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
ffc0a80c: 42 00 ff e8 bdnz+ ffc0a7f4 <_Objects_Shrink_information+0x58>
return;
}
index_base += information->allocation_size;
}
}
ffc0a810: 80 01 00 1c lwz r0,28(r1)
ffc0a814: 83 81 00 08 lwz r28,8(r1)
ffc0a818: 7c 08 03 a6 mtlr r0
ffc0a81c: 83 a1 00 0c lwz r29,12(r1)
ffc0a820: 83 c1 00 10 lwz r30,16(r1)
ffc0a824: 83 e1 00 14 lwz r31,20(r1)
ffc0a828: 38 21 00 18 addi r1,r1,24
ffc0a82c: 4e 80 00 20 blr
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
if ( information->inactive_per_block[ block ] ==
ffc0a830: 3b e0 00 00 li r31,0 <== NOT EXECUTED
information->allocation_size ) {
/*
* Assume the Inactive chain is never empty at this point
*/
the_object = (Objects_Control *) information->Inactive.first;
ffc0a834: 80 7c 00 20 lwz r3,32(r28)
ffc0a838: 48 00 00 10 b ffc0a848 <_Objects_Shrink_information+0xac>
if ((index >= index_base) &&
(index < (index_base + information->allocation_size))) {
_Chain_Extract( &extract_me->Node );
}
}
while ( the_object );
ffc0a83c: 2f 9d 00 00 cmpwi cr7,r29,0
ffc0a840: 7f a3 eb 78 mr r3,r29
ffc0a844: 41 9e 00 34 beq- cr7,ffc0a878 <_Objects_Shrink_information+0xdc>
* Assume the Inactive chain is never empty at this point
*/
the_object = (Objects_Control *) information->Inactive.first;
do {
index = _Objects_Get_index( the_object->id );
ffc0a848: 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;
ffc0a84c: 83 a3 00 00 lwz r29,0(r3)
if ((index >= index_base) &&
ffc0a850: 7f 80 f0 40 cmplw cr7,r0,r30
ffc0a854: 41 bc ff e8 blt- cr7,ffc0a83c <_Objects_Shrink_information+0xa0>
(index < (index_base + information->allocation_size))) {
ffc0a858: a1 3c 00 14 lhz r9,20(r28)
ffc0a85c: 7d 3e 4a 14 add r9,r30,r9
ffc0a860: 7f 80 48 40 cmplw cr7,r0,r9
ffc0a864: 40 9c ff d8 bge+ cr7,ffc0a83c <_Objects_Shrink_information+0xa0>
_Chain_Extract( &extract_me->Node );
ffc0a868: 48 00 44 d9 bl ffc0ed40 <_Chain_Extract>
}
}
while ( the_object );
ffc0a86c: 2f 9d 00 00 cmpwi cr7,r29,0
ffc0a870: 7f a3 eb 78 mr r3,r29
ffc0a874: 40 9e ff d4 bne+ cr7,ffc0a848 <_Objects_Shrink_information+0xac>
/*
* Free the memory and reset the structures in the object' information
*/
_Workspace_Free( information->object_blocks[ block ] );
ffc0a878: 81 3c 00 34 lwz r9,52(r28)
ffc0a87c: 7c 69 f8 2e lwzx r3,r9,r31
ffc0a880: 48 00 23 25 bl ffc0cba4 <_Workspace_Free>
information->object_blocks[ block ] = NULL;
information->inactive_per_block[ block ] = 0;
information->inactive -= information->allocation_size;
ffc0a884: a1 5c 00 2c lhz r10,44(r28)
ffc0a888: a0 1c 00 14 lhz r0,20(r28)
/*
* Free the memory and reset the structures in the object' information
*/
_Workspace_Free( information->object_blocks[ block ] );
information->object_blocks[ block ] = NULL;
ffc0a88c: 81 3c 00 34 lwz r9,52(r28)
information->inactive_per_block[ block ] = 0;
information->inactive -= information->allocation_size;
ffc0a890: 7c 00 50 50 subf r0,r0,r10
* 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;
ffc0a894: 81 7c 00 30 lwz r11,48(r28)
information->inactive -= information->allocation_size;
ffc0a898: b0 1c 00 2c sth r0,44(r28)
return;
}
index_base += information->allocation_size;
}
}
ffc0a89c: 80 01 00 1c lwz r0,28(r1)
* 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;
ffc0a8a0: 7f ab f9 2e stwx r29,r11,r31
return;
}
index_base += information->allocation_size;
}
}
ffc0a8a4: 7c 08 03 a6 mtlr r0
/*
* Free the memory and reset the structures in the object' information
*/
_Workspace_Free( information->object_blocks[ block ] );
information->object_blocks[ block ] = NULL;
ffc0a8a8: 7f a9 f9 2e stwx r29,r9,r31
return;
}
index_base += information->allocation_size;
}
}
ffc0a8ac: 83 81 00 08 lwz r28,8(r1)
ffc0a8b0: 83 a1 00 0c lwz r29,12(r1)
ffc0a8b4: 83 c1 00 10 lwz r30,16(r1)
ffc0a8b8: 83 e1 00 14 lwz r31,20(r1)
ffc0a8bc: 38 21 00 18 addi r1,r1,24
ffc0a8c0: 4e 80 00 20 blr
ffc0a9f8 <_Thread_Change_priority>:
void _Thread_Change_priority(
Thread_Control *the_thread,
Priority_Control new_priority,
bool prepend_it
)
{
ffc0a9f8: 94 21 ff e8 stwu r1,-24(r1)
ffc0a9fc: 7c 08 02 a6 mflr r0
ffc0aa00: 90 01 00 1c stw r0,28(r1)
ffc0aa04: 93 e1 00 14 stw r31,20(r1)
ffc0aa08: 7c 7f 1b 78 mr r31,r3
ffc0aa0c: 93 81 00 08 stw r28,8(r1)
ffc0aa10: 7c bc 2b 78 mr r28,r5
ffc0aa14: 93 a1 00 0c stw r29,12(r1)
ffc0aa18: 93 c1 00 10 stw r30,16(r1)
ffc0aa1c: 7c 9e 23 78 mr r30,r4
*/
/*
* Save original state
*/
original_state = the_thread->current_state;
ffc0aa20: 83 a3 00 10 lwz r29,16(r3)
/*
* Set a transient state for the thread so it is pulled off the Ready chains.
* This will prevent it from being scheduled no matter what happens in an
* ISR.
*/
_Thread_Set_transient( the_thread );
ffc0aa24: 48 00 13 8d bl ffc0bdb0 <_Thread_Set_transient>
/*
* Do not bother recomputing all the priority related information if
* we are not REALLY changing priority.
*/
if ( the_thread->current_priority != new_priority )
ffc0aa28: 80 1f 00 14 lwz r0,20(r31)
ffc0aa2c: 7f 80 f0 00 cmpw cr7,r0,r30
ffc0aa30: 41 9e 00 10 beq- cr7,ffc0aa40 <_Thread_Change_priority+0x48>
_Thread_Set_priority( the_thread, new_priority );
ffc0aa34: 7f c4 f3 78 mr r4,r30
ffc0aa38: 7f e3 fb 78 mr r3,r31
ffc0aa3c: 48 00 11 f5 bl ffc0bc30 <_Thread_Set_priority>
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0aa40: 7d 20 00 a6 mfmsr r9
ffc0aa44: 7c 10 42 a6 mfsprg r0,0
ffc0aa48: 7d 20 00 78 andc r0,r9,r0
ffc0aa4c: 7c 00 01 24 mtmsr r0
/*
* If the thread has more than STATES_TRANSIENT set, then it is blocked,
* If it is blocked on a thread queue, then we need to requeue it.
*/
state = the_thread->current_state;
ffc0aa50: 80 1f 00 10 lwz r0,16(r31)
if ( state != STATES_TRANSIENT ) {
ffc0aa54: 2f 80 00 04 cmpwi cr7,r0,4
ffc0aa58: 41 9e 00 88 beq- cr7,ffc0aae0 <_Thread_Change_priority+0xe8>
/* Only clear the transient state if it wasn't set already */
if ( ! _States_Is_transient( original_state ) )
ffc0aa5c: 73 ab 00 04 andi. r11,r29,4
ffc0aa60: 41 82 00 38 beq- ffc0aa98 <_Thread_Change_priority+0xa0>
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0aa64: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED
the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
_ISR_Enable( level );
if ( _States_Is_waiting_on_thread_queue( state ) ) {
ffc0aa68: 3d 20 00 03 lis r9,3 <== NOT EXECUTED
ffc0aa6c: 61 29 be e0 ori r9,r9,48864 <== NOT EXECUTED
ffc0aa70: 7c 0b 48 39 and. r11,r0,r9 <== NOT EXECUTED
ffc0aa74: 40 82 00 40 bne- ffc0aab4 <_Thread_Change_priority+0xbc><== NOT EXECUTED
if ( !_Thread_Is_executing_also_the_heir() &&
_Thread_Executing->is_preemptible )
_Context_Switch_necessary = true;
_ISR_Enable( level );
}
ffc0aa78: 80 01 00 1c lwz r0,28(r1)
ffc0aa7c: 83 81 00 08 lwz r28,8(r1)
ffc0aa80: 7c 08 03 a6 mtlr r0
ffc0aa84: 83 a1 00 0c lwz r29,12(r1)
ffc0aa88: 83 c1 00 10 lwz r30,16(r1)
ffc0aa8c: 83 e1 00 14 lwz r31,20(r1)
ffc0aa90: 38 21 00 18 addi r1,r1,24
ffc0aa94: 4e 80 00 20 blr
*/
state = the_thread->current_state;
if ( state != STATES_TRANSIENT ) {
/* Only clear the transient state if it wasn't set already */
if ( ! _States_Is_transient( original_state ) )
the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
ffc0aa98: 54 0b 07 b8 rlwinm r11,r0,0,30,28
ffc0aa9c: 91 7f 00 10 stw r11,16(r31)
ffc0aaa0: 7d 20 01 24 mtmsr r9
_ISR_Enable( level );
if ( _States_Is_waiting_on_thread_queue( state ) ) {
ffc0aaa4: 3d 20 00 03 lis r9,3
ffc0aaa8: 61 29 be e0 ori r9,r9,48864
ffc0aaac: 7c 0b 48 39 and. r11,r0,r9
ffc0aab0: 41 82 ff c8 beq+ ffc0aa78 <_Thread_Change_priority+0x80>
_Thread_queue_Requeue( the_thread->Wait.queue, the_thread );
ffc0aab4: 80 7f 00 44 lwz r3,68(r31)
ffc0aab8: 7f e4 fb 78 mr r4,r31
ffc0aabc: 48 00 10 7d bl ffc0bb38 <_Thread_queue_Requeue>
if ( !_Thread_Is_executing_also_the_heir() &&
_Thread_Executing->is_preemptible )
_Context_Switch_necessary = true;
_ISR_Enable( level );
}
ffc0aac0: 80 01 00 1c lwz r0,28(r1)
ffc0aac4: 83 81 00 08 lwz r28,8(r1)
ffc0aac8: 7c 08 03 a6 mtlr r0
ffc0aacc: 83 a1 00 0c lwz r29,12(r1)
ffc0aad0: 83 c1 00 10 lwz r30,16(r1)
ffc0aad4: 83 e1 00 14 lwz r31,20(r1)
ffc0aad8: 38 21 00 18 addi r1,r1,24
ffc0aadc: 4e 80 00 20 blr
}
return;
}
/* Only clear the transient state if it wasn't set already */
if ( ! _States_Is_transient( original_state ) ) {
ffc0aae0: 73 bd 00 04 andi. r29,r29,4
ffc0aae4: 3d 40 00 00 lis r10,0
ffc0aae8: 40 82 00 4c bne- ffc0ab34 <_Thread_Change_priority+0x13c>
* Interrupts are STILL disabled.
* We now know the thread will be in the READY state when we remove
* the TRANSIENT state. So we have to place it on the appropriate
* Ready Queue with interrupts off.
*/
the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
ffc0aaec: 93 bf 00 10 stw r29,16(r31)
_Priority_Add_to_bit_map( &the_thread->Priority_map );
if ( prepend_it )
ffc0aaf0: 2f 9c 00 00 cmpwi cr7,r28,0
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (
Priority_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
ffc0aaf4: 81 7f 00 90 lwz r11,144(r31)
ffc0aaf8: 80 1f 00 98 lwz r0,152(r31)
ffc0aafc: 81 0b 00 00 lwz r8,0(r11)
ffc0ab00: 7d 00 03 78 or r0,r8,r0
ffc0ab04: 90 0b 00 00 stw r0,0(r11)
_Priority_Major_bit_map |= the_priority_map->ready_major;
ffc0ab08: 81 6a 27 60 lwz r11,10080(r10)
ffc0ab0c: 80 1f 00 94 lwz r0,148(r31)
ffc0ab10: 7d 60 03 78 or r0,r11,r0
ffc0ab14: 90 0a 27 60 stw r0,10080(r10)
ffc0ab18: 41 9e 00 b8 beq- cr7,ffc0abd0 <_Thread_Change_priority+0x1d8>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head(
Chain_Control *the_chain
)
{
return (Chain_Node *) the_chain;
ffc0ab1c: 81 7f 00 8c lwz r11,140(r31)
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
ffc0ab20: 81 0b 00 00 lwz r8,0(r11)
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
ffc0ab24: 91 7f 00 04 stw r11,4(r31)
before_node = after_node->next;
after_node->next = the_node;
ffc0ab28: 93 eb 00 00 stw r31,0(r11)
the_node->next = before_node;
before_node->previous = the_node;
ffc0ab2c: 93 e8 00 04 stw r31,4(r8)
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
after_node->next = the_node;
the_node->next = before_node;
ffc0ab30: 91 1f 00 00 stw r8,0(r31)
static inline void ppc_interrupt_flash( uint32_t level )
{
uint32_t current_level;
asm volatile (
ffc0ab34: 7c 00 00 a6 mfmsr r0
ffc0ab38: 7d 20 01 24 mtmsr r9
ffc0ab3c: 7c 00 01 24 mtmsr r0
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
_Thread_Ready_chain[ _Priority_Get_highest() ].first;
ffc0ab40: 3d 00 00 00 lis r8,0
RTEMS_INLINE_ROUTINE Priority_Control _Priority_Get_highest( void )
{
Priority_Bit_map_control minor;
Priority_Bit_map_control major;
_Bitfield_Find_first_bit( _Priority_Major_bit_map, major );
ffc0ab44: 81 6a 27 60 lwz r11,10080(r10)
ffc0ab48: 80 a8 27 20 lwz r5,10016(r8)
ffc0ab4c: 7d 66 00 34 cntlzw r6,r11
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
ffc0ab50: 3c e0 00 00 lis r7,0
RTEMS_INLINE_ROUTINE Priority_Control _Priority_Get_highest( void )
{
Priority_Bit_map_control minor;
Priority_Bit_map_control major;
_Bitfield_Find_first_bit( _Priority_Major_bit_map, major );
ffc0ab54: 91 6a 27 60 stw r11,10080(r10)
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
ffc0ab58: 38 e7 2d 00 addi r7,r7,11520
ffc0ab5c: 54 c8 10 3a rlwinm r8,r6,2,0,29
ffc0ab60: 7c 07 40 2e lwzx r0,r7,r8
ffc0ab64: 7c 0b 00 34 cntlzw r11,r0
* ready thread.
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
ffc0ab68: 54 c6 20 36 rlwinm r6,r6,4,0,27
ffc0ab6c: 7c 07 41 2e stwx r0,r7,r8
ffc0ab70: 7c c6 5a 14 add r6,r6,r11
ffc0ab74: 1c c6 00 0c mulli r6,r6,12
* is also the heir thread, and false otherwise.
*/
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void )
{
return ( _Thread_Executing == _Thread_Heir );
ffc0ab78: 3d 60 00 00 lis r11,0
* ready thread.
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
ffc0ab7c: 7c 05 30 2e lwzx r0,r5,r6
* is also the heir thread, and false otherwise.
*/
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void )
{
return ( _Thread_Executing == _Thread_Heir );
ffc0ab80: 81 6b 27 6c lwz r11,10092(r11)
* ready thread.
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
ffc0ab84: 3d 40 00 00 lis r10,0
ffc0ab88: 90 0a 27 48 stw r0,10056(r10)
* We altered the set of thread priorities. So let's figure out
* who is the heir and if we need to switch to them.
*/
_Thread_Calculate_heir();
if ( !_Thread_Is_executing_also_the_heir() &&
ffc0ab8c: 7f 80 58 00 cmpw cr7,r0,r11
ffc0ab90: 41 9e 00 1c beq- cr7,ffc0abac <_Thread_Change_priority+0x1b4>
_Thread_Executing->is_preemptible )
ffc0ab94: 88 0b 00 75 lbz r0,117(r11)
ffc0ab98: 2f 80 00 00 cmpwi cr7,r0,0
ffc0ab9c: 41 9e 00 10 beq- cr7,ffc0abac <_Thread_Change_priority+0x1b4>
_Context_Switch_necessary = true;
ffc0aba0: 38 00 00 01 li r0,1
ffc0aba4: 3d 60 00 00 lis r11,0
ffc0aba8: 98 0b 27 7c stb r0,10108(r11)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0abac: 7d 20 01 24 mtmsr r9
_ISR_Enable( level );
}
ffc0abb0: 80 01 00 1c lwz r0,28(r1)
ffc0abb4: 83 81 00 08 lwz r28,8(r1)
ffc0abb8: 7c 08 03 a6 mtlr r0
ffc0abbc: 83 a1 00 0c lwz r29,12(r1)
ffc0abc0: 83 c1 00 10 lwz r30,16(r1)
ffc0abc4: 83 e1 00 14 lwz r31,20(r1)
ffc0abc8: 38 21 00 18 addi r1,r1,24
ffc0abcc: 4e 80 00 20 blr
_Priority_Add_to_bit_map( &the_thread->Priority_map );
if ( prepend_it )
_Chain_Prepend_unprotected( the_thread->ready, &the_thread->Object.Node );
else
_Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node );
ffc0abd0: 81 7f 00 8c lwz r11,140(r31)
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
ffc0abd4: 38 0b 00 04 addi r0,r11,4
ffc0abd8: 90 1f 00 00 stw r0,0(r31)
old_last_node = the_chain->last;
ffc0abdc: 81 0b 00 08 lwz r8,8(r11)
the_chain->last = the_node;
ffc0abe0: 93 eb 00 08 stw r31,8(r11)
old_last_node->next = the_node;
the_node->previous = old_last_node;
ffc0abe4: 91 1f 00 04 stw r8,4(r31)
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
the_chain->last = the_node;
old_last_node->next = the_node;
ffc0abe8: 93 e8 00 00 stw r31,0(r8)
ffc0abec: 4b ff ff 48 b ffc0ab34 <_Thread_Change_priority+0x13c>
ffc0b1f0 <_Thread_Initialize>:
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
ffc0b1f0: 94 21 ff d0 stwu r1,-48(r1)
ffc0b1f4: 7c 08 02 a6 mflr r0
ffc0b1f8: 7d 80 00 26 mfcr r12
ffc0b1fc: 90 01 00 34 stw r0,52(r1)
/*
* Zero out all the allocated memory fields
*/
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
the_thread->API_Extensions[i] = NULL;
ffc0b200: 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
)
{
ffc0b204: 93 41 00 18 stw r26,24(r1)
ffc0b208: 7d 3a 4b 78 mr r26,r9
*/
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
the_thread->API_Extensions[i] = NULL;
extensions_area = NULL;
the_thread->libc_reent = NULL;
ffc0b20c: 90 04 01 3c stw r0,316(r4)
/*
* Zero out all the allocated memory fields
*/
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
the_thread->API_Extensions[i] = NULL;
ffc0b210: 90 04 01 40 stw r0,320(r4)
ffc0b214: 90 04 01 44 stw r0,324(r4)
ffc0b218: 90 04 01 48 stw r0,328(r4)
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
ffc0b21c: 81 21 00 40 lwz r9,64(r1)
ffc0b220: 93 a1 00 24 stw r29,36(r1)
ffc0b224: 7c 7d 1b 78 mr r29,r3
/*
* Allocate and Initialize the stack for this thread.
*/
#if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API)
actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
ffc0b228: 7c 83 23 78 mr r3,r4
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
ffc0b22c: 93 e1 00 2c stw r31,44(r1)
ffc0b230: 7c 9f 23 78 mr r31,r4
/*
* Allocate and Initialize the stack for this thread.
*/
#if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API)
actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
ffc0b234: 7c c4 33 78 mr r4,r6
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
ffc0b238: 93 01 00 10 stw r24,16(r1)
ffc0b23c: 93 21 00 14 stw r25,20(r1)
ffc0b240: 7d 59 53 78 mr r25,r10
ffc0b244: 93 61 00 1c stw r27,28(r1)
ffc0b248: 7d 1b 43 78 mr r27,r8
ffc0b24c: 93 81 00 20 stw r28,32(r1)
ffc0b250: 7c fc 3b 78 mr r28,r7
ffc0b254: 93 c1 00 28 stw r30,40(r1)
ffc0b258: 7c de 33 78 mr r30,r6
ffc0b25c: 92 e1 00 0c stw r23,12(r1)
ffc0b260: 91 81 00 08 stw r12,8(r1)
ffc0b264: 83 09 00 00 lwz r24,0(r9)
/*
* Allocate and Initialize the stack for this thread.
*/
#if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API)
actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
ffc0b268: 48 00 0b dd bl ffc0be44 <_Thread_Stack_Allocate>
if ( !actual_stack_size || actual_stack_size < stack_size )
ffc0b26c: 2c 03 00 00 cmpwi r3,0
ffc0b270: 41 82 01 74 beq- ffc0b3e4 <_Thread_Initialize+0x1f4>
ffc0b274: 7f 9e 18 40 cmplw cr7,r30,r3
ffc0b278: 41 9d 01 6c bgt- cr7,ffc0b3e4 <_Thread_Initialize+0x1f4>
/*
* Allocate the floating point area for this thread
*/
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( is_fp ) {
ffc0b27c: 2f 9c 00 00 cmpwi cr7,r28,0
Stack_Control *the_stack,
void *starting_address,
size_t size
)
{
the_stack->area = starting_address;
ffc0b280: 80 1f 00 d4 lwz r0,212(r31)
the_stack->size = size;
ffc0b284: 90 7f 00 c8 stw r3,200(r31)
ffc0b288: 39 20 00 00 li r9,0
ffc0b28c: 3b 80 00 00 li r28,0
Stack_Control *the_stack,
void *starting_address,
size_t size
)
{
the_stack->area = starting_address;
ffc0b290: 90 1f 00 cc stw r0,204(r31)
ffc0b294: 40 9e 01 90 bne- cr7,ffc0b424 <_Thread_Initialize+0x234>
#endif
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
ffc0b298: 3f c0 00 00 lis r30,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;
ffc0b29c: 91 3f 00 d0 stw r9,208(r31)
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
ffc0b2a0: 38 00 00 00 li r0,0
#endif
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
ffc0b2a4: 81 7e 27 58 lwz r11,10072(r30)
the_watchdog->routine = routine;
the_watchdog->id = id;
the_watchdog->user_data = user_data;
ffc0b2a8: 90 1f 00 6c stw r0,108(r31)
ffc0b2ac: 2f 8b 00 00 cmpwi cr7,r11,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;
ffc0b2b0: 91 3f 01 38 stw r9,312(r31)
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
ffc0b2b4: 90 1f 00 50 stw r0,80(r31)
the_watchdog->routine = routine;
ffc0b2b8: 90 1f 00 64 stw r0,100(r31)
the_watchdog->id = id;
ffc0b2bc: 90 1f 00 68 stw r0,104(r31)
#endif
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
ffc0b2c0: 40 9e 01 88 bne- cr7,ffc0b448 <_Thread_Initialize+0x258>
(_Thread_Maximum_extensions + 1) * sizeof( void * )
);
if ( !extensions_area )
goto failed;
}
the_thread->extensions = (void **) extensions_area;
ffc0b2c4: 91 7f 01 4c stw r11,332(r31)
ffc0b2c8: 3a e0 00 00 li r23,0
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
the_thread->Start.budget_algorithm = budget_algorithm;
the_thread->Start.budget_callout = budget_callout;
ffc0b2cc: 80 01 00 38 lwz r0,56(r1)
}
the_thread->Start.isr_level = isr_level;
the_thread->current_state = STATES_DORMANT;
the_thread->Wait.queue = NULL;
ffc0b2d0: 3b c0 00 00 li r30,0
/*
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
ffc0b2d4: 9b 5f 00 b4 stb r26,180(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 );
ffc0b2d8: 7f 64 db 78 mr r4,r27
ffc0b2dc: 7f e3 fb 78 mr r3,r31
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
the_thread->Start.budget_algorithm = budget_algorithm;
the_thread->Start.budget_callout = budget_callout;
ffc0b2e0: 90 1f 00 bc stw r0,188(r31)
ffc0b2e4: 2e 1c 00 00 cmpwi cr4,r28,0
ffc0b2e8: 2d 97 00 00 cmpwi cr3,r23,0
case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:
break;
#endif
}
the_thread->Start.isr_level = isr_level;
ffc0b2ec: 80 01 00 3c lwz r0,60(r1)
/*
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
the_thread->Start.budget_algorithm = budget_algorithm;
ffc0b2f0: 93 3f 00 b8 stw r25,184(r31)
case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:
break;
#endif
}
the_thread->Start.isr_level = isr_level;
ffc0b2f4: 90 1f 00 c0 stw r0,192(r31)
the_thread->current_state = STATES_DORMANT;
ffc0b2f8: 38 00 00 01 li r0,1
ffc0b2fc: 90 1f 00 10 stw r0,16(r31)
the_thread->Wait.queue = NULL;
ffc0b300: 93 df 00 44 stw r30,68(r31)
the_thread->resource_count = 0;
ffc0b304: 93 df 00 1c stw r30,28(r31)
#if defined(RTEMS_ITRON_API)
the_thread->suspend_count = 0;
#endif
the_thread->real_priority = priority;
ffc0b308: 93 7f 00 18 stw r27,24(r31)
the_thread->Start.initial_priority = priority;
ffc0b30c: 93 7f 00 c4 stw r27,196(r31)
_Thread_Set_priority( the_thread, priority );
ffc0b310: 48 00 09 21 bl ffc0bc30 <_Thread_Set_priority>
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
ffc0b314: a0 1f 00 0a lhz r0,10(r31)
ffc0b318: 81 3d 00 1c lwz r9,28(r29)
* 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 );
ffc0b31c: 7f e3 fb 78 mr r3,r31
ffc0b320: 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 );
ffc0b324: 93 df 00 88 stw r30,136(r31)
ffc0b328: 7f e9 01 2e stwx r31,r9,r0
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
ffc0b32c: 93 1f 00 0c stw r24,12(r31)
ffc0b330: 93 df 00 84 stw r30,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 );
ffc0b334: 48 00 12 69 bl ffc0c59c <_User_extensions_Thread_create>
if ( extension_status )
ffc0b338: 2f 83 00 00 cmpwi cr7,r3,0
ffc0b33c: 38 60 00 01 li r3,1
ffc0b340: 40 9e 00 a8 bne- cr7,ffc0b3e8 <_Thread_Initialize+0x1f8>
return true;
failed:
if ( the_thread->libc_reent )
ffc0b344: 80 7f 01 3c lwz r3,316(r31)
ffc0b348: 2f 83 00 00 cmpwi cr7,r3,0
ffc0b34c: 41 9e 00 08 beq- cr7,ffc0b354 <_Thread_Initialize+0x164>
_Workspace_Free( the_thread->libc_reent );
ffc0b350: 48 00 18 55 bl ffc0cba4 <_Workspace_Free>
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
if ( the_thread->API_Extensions[i] )
ffc0b354: 80 7f 01 40 lwz r3,320(r31)
ffc0b358: 2f 83 00 00 cmpwi cr7,r3,0
ffc0b35c: 41 9e 00 08 beq- cr7,ffc0b364 <_Thread_Initialize+0x174>
_Workspace_Free( the_thread->API_Extensions[i] );
ffc0b360: 48 00 18 45 bl ffc0cba4 <_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] )
ffc0b364: 80 7f 01 44 lwz r3,324(r31)
ffc0b368: 2f 83 00 00 cmpwi cr7,r3,0
ffc0b36c: 41 9e 00 08 beq- cr7,ffc0b374 <_Thread_Initialize+0x184>
_Workspace_Free( the_thread->API_Extensions[i] );
ffc0b370: 48 00 18 35 bl ffc0cba4 <_Workspace_Free> <== NOT EXECUTED
failed:
if ( the_thread->libc_reent )
_Workspace_Free( the_thread->libc_reent );
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
if ( the_thread->API_Extensions[i] )
ffc0b374: 80 7f 01 48 lwz r3,328(r31)
ffc0b378: 2f 83 00 00 cmpwi cr7,r3,0
ffc0b37c: 41 9e 00 08 beq- cr7,ffc0b384 <_Thread_Initialize+0x194>
_Workspace_Free( the_thread->API_Extensions[i] );
ffc0b380: 48 00 18 25 bl ffc0cba4 <_Workspace_Free> <== NOT EXECUTED
if ( extensions_area )
ffc0b384: 41 8e 00 0c beq- cr3,ffc0b390 <_Thread_Initialize+0x1a0>
(void) _Workspace_Free( extensions_area );
ffc0b388: 7e e3 bb 78 mr r3,r23
ffc0b38c: 48 00 18 19 bl ffc0cba4 <_Workspace_Free>
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( fp_area )
ffc0b390: 41 92 00 0c beq- cr4,ffc0b39c <_Thread_Initialize+0x1ac>
(void) _Workspace_Free( fp_area );
ffc0b394: 7f 83 e3 78 mr r3,r28
ffc0b398: 48 00 18 0d bl ffc0cba4 <_Workspace_Free>
#endif
_Thread_Stack_Free( the_thread );
ffc0b39c: 7f e3 fb 78 mr r3,r31
ffc0b3a0: 48 00 0b 5d bl ffc0befc <_Thread_Stack_Free>
return false;
}
ffc0b3a4: 80 01 00 34 lwz r0,52(r1)
ffc0b3a8: 81 81 00 08 lwz r12,8(r1)
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( fp_area )
(void) _Workspace_Free( fp_area );
#endif
_Thread_Stack_Free( the_thread );
ffc0b3ac: 38 60 00 00 li r3,0
return false;
}
ffc0b3b0: 7c 08 03 a6 mtlr r0
ffc0b3b4: 82 e1 00 0c lwz r23,12(r1)
ffc0b3b8: 83 01 00 10 lwz r24,16(r1)
ffc0b3bc: 7d 81 81 20 mtcrf 24,r12
ffc0b3c0: 83 21 00 14 lwz r25,20(r1)
ffc0b3c4: 83 41 00 18 lwz r26,24(r1)
ffc0b3c8: 83 61 00 1c lwz r27,28(r1)
ffc0b3cc: 83 81 00 20 lwz r28,32(r1)
ffc0b3d0: 83 a1 00 24 lwz r29,36(r1)
ffc0b3d4: 83 c1 00 28 lwz r30,40(r1)
ffc0b3d8: 83 e1 00 2c lwz r31,44(r1)
ffc0b3dc: 38 21 00 30 addi r1,r1,48
ffc0b3e0: 4e 80 00 20 blr
if ( fp_area )
(void) _Workspace_Free( fp_area );
#endif
_Thread_Stack_Free( the_thread );
return false;
ffc0b3e4: 38 60 00 00 li r3,0
}
ffc0b3e8: 80 01 00 34 lwz r0,52(r1)
ffc0b3ec: 81 81 00 08 lwz r12,8(r1)
ffc0b3f0: 7c 08 03 a6 mtlr r0
ffc0b3f4: 82 e1 00 0c lwz r23,12(r1)
ffc0b3f8: 83 01 00 10 lwz r24,16(r1)
ffc0b3fc: 7d 81 81 20 mtcrf 24,r12
ffc0b400: 83 21 00 14 lwz r25,20(r1)
ffc0b404: 83 41 00 18 lwz r26,24(r1)
ffc0b408: 83 61 00 1c lwz r27,28(r1)
ffc0b40c: 83 81 00 20 lwz r28,32(r1)
ffc0b410: 83 a1 00 24 lwz r29,36(r1)
ffc0b414: 83 c1 00 28 lwz r30,40(r1)
ffc0b418: 83 e1 00 2c lwz r31,44(r1)
ffc0b41c: 38 21 00 30 addi r1,r1,48
ffc0b420: 4e 80 00 20 blr
/*
* Allocate the floating point area for this thread
*/
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( is_fp ) {
fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );
ffc0b424: 38 60 01 08 li r3,264
ffc0b428: 48 00 17 49 bl ffc0cb70 <_Workspace_Allocate>
if ( !fp_area )
ffc0b42c: 2e 03 00 00 cmpwi cr4,r3,0
/*
* Allocate the floating point area for this thread
*/
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( is_fp ) {
fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );
ffc0b430: 7c 7c 1b 78 mr r28,r3
if ( !fp_area )
ffc0b434: 7c 69 1b 78 mr r9,r3
ffc0b438: 40 92 fe 60 bne+ cr4,ffc0b298 <_Thread_Initialize+0xa8>
ffc0b43c: 3a e0 00 00 li r23,0
ffc0b440: 4d 90 00 00 mcrf cr3,cr4
ffc0b444: 4b ff ff 00 b ffc0b344 <_Thread_Initialize+0x154>
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
extensions_area = _Workspace_Allocate(
ffc0b448: 39 6b 00 01 addi r11,r11,1
ffc0b44c: 55 63 10 3a rlwinm r3,r11,2,0,29
ffc0b450: 48 00 17 21 bl ffc0cb70 <_Workspace_Allocate>
(_Thread_Maximum_extensions + 1) * sizeof( void * )
);
if ( !extensions_area )
ffc0b454: 2d 83 00 00 cmpwi cr3,r3,0
ffc0b458: 7c 77 1b 78 mr r23,r3
ffc0b45c: 41 8e 00 40 beq- cr3,ffc0b49c <_Thread_Initialize+0x2ac>
goto failed;
}
the_thread->extensions = (void **) extensions_area;
ffc0b460: 90 7f 01 4c stw r3,332(r31)
ffc0b464: 7c 6b 1b 78 mr r11,r3
* 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++ )
ffc0b468: 38 00 00 00 li r0,0
ffc0b46c: 81 1e 27 58 lwz r8,10072(r30)
ffc0b470: 39 20 00 00 li r9,0
the_thread->extensions[i] = NULL;
ffc0b474: 39 40 00 00 li r10,0
ffc0b478: 48 00 00 08 b ffc0b480 <_Thread_Initialize+0x290>
* 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++ )
ffc0b47c: 81 7f 01 4c lwz r11,332(r31)
ffc0b480: 39 29 00 01 addi r9,r9,1
ffc0b484: 7f 88 48 40 cmplw cr7,r8,r9
the_thread->extensions[i] = NULL;
ffc0b488: 54 00 10 3a rlwinm r0,r0,2,0,29
ffc0b48c: 7d 4b 01 2e stwx r10,r11,r0
* 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++ )
ffc0b490: 7d 20 4b 78 mr r0,r9
ffc0b494: 40 9c ff e8 bge+ cr7,ffc0b47c <_Thread_Initialize+0x28c>
ffc0b498: 4b ff fe 34 b ffc0b2cc <_Thread_Initialize+0xdc>
ffc0b49c: 2e 1c 00 00 cmpwi cr4,r28,0
ffc0b4a0: 4b ff fe a4 b ffc0b344 <_Thread_Initialize+0x154>
ffc0f894 <_Thread_Reset_timeslice>:
{
ISR_Level level;
Thread_Control *executing;
Chain_Control *ready;
executing = _Thread_Executing;
ffc0f894: 3d 20 00 00 lis r9,0
ffc0f898: 81 29 27 6c lwz r9,10092(r9)
ready = executing->ready;
ffc0f89c: 81 69 00 8c lwz r11,140(r9)
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0f8a0: 7c 00 00 a6 mfmsr r0
ffc0f8a4: 7d 50 42 a6 mfsprg r10,0
ffc0f8a8: 7c 0a 50 78 andc r10,r0,r10
ffc0f8ac: 7d 40 01 24 mtmsr r10
_ISR_Disable( level );
if ( _Chain_Has_only_one_node( ready ) ) {
ffc0f8b0: 81 0b 00 00 lwz r8,0(r11)
ffc0f8b4: 81 4b 00 08 lwz r10,8(r11)
ffc0f8b8: 7f 88 50 00 cmpw cr7,r8,r10
ffc0f8bc: 41 9e 00 78 beq- cr7,ffc0f934 <_Thread_Reset_timeslice+0xa0>
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
ffc0f8c0: 81 49 00 00 lwz r10,0(r9)
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
ffc0f8c4: 38 eb 00 04 addi r7,r11,4
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
ffc0f8c8: 81 09 00 04 lwz r8,4(r9)
next->previous = previous;
previous->next = next;
ffc0f8cc: 91 48 00 00 stw r10,0(r8)
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
next->previous = previous;
ffc0f8d0: 91 0a 00 04 stw r8,4(r10)
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
ffc0f8d4: 90 e9 00 00 stw r7,0(r9)
old_last_node = the_chain->last;
ffc0f8d8: 81 4b 00 08 lwz r10,8(r11)
the_chain->last = the_node;
ffc0f8dc: 91 2b 00 08 stw r9,8(r11)
old_last_node->next = the_node;
the_node->previous = old_last_node;
ffc0f8e0: 91 49 00 04 stw r10,4(r9)
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
the_chain->last = the_node;
old_last_node->next = the_node;
ffc0f8e4: 91 2a 00 00 stw r9,0(r10)
static inline void ppc_interrupt_flash( uint32_t level )
{
uint32_t current_level;
asm volatile (
ffc0f8e8: 7d 40 00 a6 mfmsr r10
ffc0f8ec: 7c 00 01 24 mtmsr r0
ffc0f8f0: 7d 40 01 24 mtmsr r10
_Chain_Extract_unprotected( &executing->Object.Node );
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
if ( _Thread_Is_heir( executing ) )
ffc0f8f4: 3d 40 00 00 lis r10,0
ffc0f8f8: 81 0a 27 48 lwz r8,10056(r10)
ffc0f8fc: 7f 89 40 00 cmpw cr7,r9,r8
ffc0f900: 41 9e 00 18 beq- cr7,ffc0f918 <_Thread_Reset_timeslice+0x84>
_Thread_Heir = (Thread_Control *) ready->first;
_Context_Switch_necessary = true;
ffc0f904: 39 60 00 01 li r11,1 <== NOT EXECUTED
ffc0f908: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc0f90c: 99 69 27 7c stb r11,10108(r9) <== NOT EXECUTED
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0f910: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED
ffc0f914: 4e 80 00 20 blr <== NOT EXECUTED
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
if ( _Thread_Is_heir( executing ) )
_Thread_Heir = (Thread_Control *) ready->first;
ffc0f918: 81 2b 00 00 lwz r9,0(r11)
_Context_Switch_necessary = true;
ffc0f91c: 39 60 00 01 li r11,1
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
if ( _Thread_Is_heir( executing ) )
_Thread_Heir = (Thread_Control *) ready->first;
ffc0f920: 91 2a 27 48 stw r9,10056(r10)
_Context_Switch_necessary = true;
ffc0f924: 3d 20 00 00 lis r9,0
ffc0f928: 99 69 27 7c stb r11,10108(r9)
ffc0f92c: 7c 00 01 24 mtmsr r0
ffc0f930: 4e 80 00 20 blr
ffc0f934: 7c 00 01 24 mtmsr r0
ffc0f938: 4e 80 00 20 blr
ffc0ccac <_Thread_Restart>:
bool _Thread_Restart(
Thread_Control *the_thread,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
ffc0ccac: 94 21 ff e8 stwu r1,-24(r1)
ffc0ccb0: 7c 08 02 a6 mflr r0
ffc0ccb4: 90 01 00 1c stw r0,28(r1)
if ( !_States_Is_dormant( the_thread->current_state ) ) {
ffc0ccb8: 80 03 00 10 lwz r0,16(r3)
bool _Thread_Restart(
Thread_Control *the_thread,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
ffc0ccbc: 93 e1 00 14 stw r31,20(r1)
ffc0ccc0: 7c 7f 1b 78 mr r31,r3
if ( !_States_Is_dormant( the_thread->current_state ) ) {
ffc0ccc4: 70 09 00 01 andi. r9,r0,1
bool _Thread_Restart(
Thread_Control *the_thread,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
ffc0ccc8: 93 c1 00 10 stw r30,16(r1)
if ( !_States_Is_dormant( the_thread->current_state ) ) {
ffc0cccc: 38 00 00 00 li r0,0
ffc0ccd0: 41 82 00 20 beq- ffc0ccf0 <_Thread_Restart+0x44>
return true;
}
return false;
}
ffc0ccd4: 7c 03 03 78 mr r3,r0
ffc0ccd8: 80 01 00 1c lwz r0,28(r1)
ffc0ccdc: 83 c1 00 10 lwz r30,16(r1)
ffc0cce0: 7c 08 03 a6 mtlr r0
ffc0cce4: 83 e1 00 14 lwz r31,20(r1)
ffc0cce8: 38 21 00 18 addi r1,r1,24
ffc0ccec: 4e 80 00 20 blr
Thread_Entry_numeric_type numeric_argument
)
{
if ( !_States_Is_dormant( the_thread->current_state ) ) {
_Thread_Set_transient( the_thread );
ffc0ccf0: 90 81 00 08 stw r4,8(r1)
_Thread_Ready( the_thread );
_User_extensions_Thread_restart( the_thread );
if ( _Thread_Is_executing ( the_thread ) )
ffc0ccf4: 3f c0 00 00 lis r30,0
Thread_Entry_numeric_type numeric_argument
)
{
if ( !_States_Is_dormant( the_thread->current_state ) ) {
_Thread_Set_transient( the_thread );
ffc0ccf8: 90 a1 00 0c stw r5,12(r1)
ffc0ccfc: 48 00 01 e5 bl ffc0cee0 <_Thread_Set_transient>
_Thread_Reset( the_thread, pointer_argument, numeric_argument );
ffc0cd00: 7f e3 fb 78 mr r3,r31
ffc0cd04: 80 81 00 08 lwz r4,8(r1)
ffc0cd08: 80 a1 00 0c lwz r5,12(r1)
ffc0cd0c: 48 00 3e 6d bl ffc10b78 <_Thread_Reset>
_Thread_Load_environment( the_thread );
ffc0cd10: 7f e3 fb 78 mr r3,r31
ffc0cd14: 48 00 3a 19 bl ffc1072c <_Thread_Load_environment>
_Thread_Ready( the_thread );
ffc0cd18: 7f e3 fb 78 mr r3,r31
ffc0cd1c: 48 00 3d 81 bl ffc10a9c <_Thread_Ready>
_User_extensions_Thread_restart( the_thread );
ffc0cd20: 7f e3 fb 78 mr r3,r31
ffc0cd24: 48 00 0a c1 bl ffc0d7e4 <_User_extensions_Thread_restart>
if ( _Thread_Is_executing ( the_thread ) )
ffc0cd28: 81 3e 27 98 lwz r9,10136(r30)
ffc0cd2c: 38 00 00 01 li r0,1
ffc0cd30: 7f 9f 48 00 cmpw cr7,r31,r9
ffc0cd34: 40 9e ff a0 bne+ cr7,ffc0ccd4 <_Thread_Restart+0x28>
*/
RTEMS_INLINE_ROUTINE void _Thread_Restart_self( void )
{
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( _Thread_Executing->fp_context != NULL )
ffc0cd38: 80 1f 01 38 lwz r0,312(r31)
ffc0cd3c: 2f 80 00 00 cmpwi cr7,r0,0
ffc0cd40: 41 9e 00 10 beq- cr7,ffc0cd50 <_Thread_Restart+0xa4>
_Context_Restore_fp( &_Thread_Executing->fp_context );
ffc0cd44: 38 7f 01 38 addi r3,r31,312
ffc0cd48: 48 01 35 f9 bl ffc20340 <_CPU_Context_restore_fp>
ffc0cd4c: 83 fe 27 98 lwz r31,10136(r30)
#endif
_CPU_Context_Restart_self( &_Thread_Executing->Registers );
ffc0cd50: 38 7f 00 d8 addi r3,r31,216
ffc0cd54: 48 01 37 ad bl ffc20500 <_CPU_Context_restore>
ffc0cd58: 38 00 00 01 li r0,1 <== NOT EXECUTED
ffc0cd5c: 4b ff ff 78 b ffc0ccd4 <_Thread_Restart+0x28> <== NOT EXECUTED
ffc0b870 <_Thread_queue_Enqueue_priority>:
Priority_Control priority;
States_Control block_state;
_Chain_Initialize_empty( &the_thread->Wait.Block2n );
priority = the_thread->current_priority;
ffc0b870: 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);
ffc0b874: 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
)
{
ffc0b878: 94 21 ff f0 stwu r1,-16(r1)
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
ffc0b87c: 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 ) )
ffc0b880: 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 ];
ffc0b884: 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);
ffc0b888: 91 04 00 38 stw r8,56(r4)
ffc0b88c: 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
)
{
ffc0b890: 93 e1 00 0c stw r31,12(r1)
the_chain->permanent_null = NULL;
ffc0b894: 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;
ffc0b898: 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 ];
ffc0b89c: 7d 43 52 14 add r10,r3,r10
ffc0b8a0: 91 04 00 3c stw r8,60(r4)
the_chain->last = _Chain_Head(the_chain);
ffc0b8a4: 91 64 00 40 stw r11,64(r4)
block_state = the_thread_queue->state;
if ( _Thread_queue_Is_reverse_search( priority ) )
ffc0b8a8: 40 82 00 7c bne- ffc0b924 <_Thread_queue_Enqueue_priority+0xb4>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
ffc0b8ac: 39 8a 00 04 addi r12,r10,4
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0b8b0: 7c c0 00 a6 mfmsr r6
ffc0b8b4: 7d 70 42 a6 mfsprg r11,0
ffc0b8b8: 7c cb 58 78 andc r11,r6,r11
ffc0b8bc: 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;
ffc0b8c0: 81 6a 00 00 lwz r11,0(r10)
while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {
ffc0b8c4: 7f 8b 60 00 cmpw cr7,r11,r12
ffc0b8c8: 40 be 00 2c bne+ cr7,ffc0b8f4 <_Thread_queue_Enqueue_priority+0x84>
ffc0b8cc: 48 00 01 78 b ffc0ba44 <_Thread_queue_Enqueue_priority+0x1d4>
static inline void ppc_interrupt_flash( uint32_t level )
{
uint32_t current_level;
asm volatile (
ffc0b8d0: 7c e0 00 a6 mfmsr r7
ffc0b8d4: 7c c0 01 24 mtmsr r6
ffc0b8d8: 7c e0 01 24 mtmsr r7
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) ) {
ffc0b8dc: 80 eb 00 10 lwz r7,16(r11)
ffc0b8e0: 7d 3f 38 39 and. r31,r9,r7
ffc0b8e4: 41 82 00 f4 beq- ffc0b9d8 <_Thread_queue_Enqueue_priority+0x168>
_ISR_Enable( level );
goto restart_forward_search;
}
search_thread =
(Thread_Control *)search_thread->Object.Node.next;
ffc0b8e8: 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 ) ) {
ffc0b8ec: 7f 8b 60 00 cmpw cr7,r11,r12
ffc0b8f0: 41 9e 00 10 beq- cr7,ffc0b900 <_Thread_queue_Enqueue_priority+0x90>
search_priority = search_thread->current_priority;
ffc0b8f4: 81 0b 00 14 lwz r8,20(r11)
if ( priority <= search_priority )
ffc0b8f8: 7f 80 40 40 cmplw cr7,r0,r8
ffc0b8fc: 41 9d ff d4 bgt+ cr7,ffc0b8d0 <_Thread_queue_Enqueue_priority+0x60>
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 ) ) {
ffc0b900: 7c ca 33 78 mr r10,r6
}
search_thread =
(Thread_Control *)search_thread->Object.Node.next;
}
if ( the_thread_queue->sync_state !=
ffc0b904: 81 23 00 30 lwz r9,48(r3)
ffc0b908: 2f 89 00 01 cmpwi cr7,r9,1
ffc0b90c: 41 9e 00 d4 beq- cr7,ffc0b9e0 <_Thread_queue_Enqueue_priority+0x170>
* 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;
ffc0b910: 91 45 00 00 stw r10,0(r5)
return the_thread_queue->sync_state;
ffc0b914: 7d 23 4b 78 mr r3,r9
}
ffc0b918: 83 e1 00 0c lwz r31,12(r1)
ffc0b91c: 38 21 00 10 addi r1,r1,16
ffc0b920: 4e 80 00 20 blr
ffc0b924: 3d 80 00 00 lis r12,0
ffc0b928: 39 8c 26 64 addi r12,r12,9828
the_thread->Wait.queue = the_thread_queue;
_ISR_Enable( level );
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
restart_reverse_search:
search_priority = PRIORITY_MAXIMUM + 1;
ffc0b92c: 89 0c 00 00 lbz r8,0(r12)
ffc0b930: 39 08 00 01 addi r8,r8,1
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0b934: 7c c0 00 a6 mfmsr r6
ffc0b938: 7d 70 42 a6 mfsprg r11,0
ffc0b93c: 7c cb 58 78 andc r11,r6,r11
ffc0b940: 7d 60 01 24 mtmsr r11
_ISR_Disable( level );
search_thread = (Thread_Control *) header->last;
ffc0b944: 81 6a 00 08 lwz r11,8(r10)
while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {
ffc0b948: 7f 8b 50 00 cmpw cr7,r11,r10
ffc0b94c: 40 be 00 2c bne+ cr7,ffc0b978 <_Thread_queue_Enqueue_priority+0x108>
ffc0b950: 48 00 00 34 b ffc0b984 <_Thread_queue_Enqueue_priority+0x114>
static inline void ppc_interrupt_flash( uint32_t level )
{
uint32_t current_level;
asm volatile (
ffc0b954: 7c e0 00 a6 mfmsr r7
ffc0b958: 7c c0 01 24 mtmsr r6
ffc0b95c: 7c e0 01 24 mtmsr r7
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) ) {
ffc0b960: 80 eb 00 10 lwz r7,16(r11)
ffc0b964: 7d 3f 38 39 and. r31,r9,r7
ffc0b968: 41 82 00 68 beq- ffc0b9d0 <_Thread_queue_Enqueue_priority+0x160>
_ISR_Enable( level );
goto restart_reverse_search;
}
search_thread = (Thread_Control *)
ffc0b96c: 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 ) ) {
ffc0b970: 7f 8b 50 00 cmpw cr7,r11,r10
ffc0b974: 41 9e 00 10 beq- cr7,ffc0b984 <_Thread_queue_Enqueue_priority+0x114>
search_priority = search_thread->current_priority;
ffc0b978: 81 0b 00 14 lwz r8,20(r11)
if ( priority >= search_priority )
ffc0b97c: 7f 80 40 40 cmplw cr7,r0,r8
ffc0b980: 41 9c ff d4 blt+ cr7,ffc0b954 <_Thread_queue_Enqueue_priority+0xe4>
}
search_thread = (Thread_Control *)
search_thread->Object.Node.previous;
}
if ( the_thread_queue->sync_state !=
ffc0b984: 81 23 00 30 lwz r9,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 ) ) {
ffc0b988: 7c ca 33 78 mr r10,r6
}
search_thread = (Thread_Control *)
search_thread->Object.Node.previous;
}
if ( the_thread_queue->sync_state !=
ffc0b98c: 2f 89 00 01 cmpwi cr7,r9,1
ffc0b990: 40 9e ff 80 bne+ cr7,ffc0b910 <_Thread_queue_Enqueue_priority+0xa0>
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
if ( priority == search_priority )
ffc0b994: 7f 80 40 00 cmpw cr7,r0,r8
if ( the_thread_queue->sync_state !=
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
ffc0b998: 38 00 00 00 li r0,0
ffc0b99c: 90 03 00 30 stw r0,48(r3)
if ( priority == search_priority )
ffc0b9a0: 41 9e 00 7c beq- cr7,ffc0ba1c <_Thread_queue_Enqueue_priority+0x1ac>
goto equal_priority;
search_node = (Chain_Node *) search_thread;
next_node = search_node->next;
ffc0b9a4: 81 2b 00 00 lwz r9,0(r11)
the_node = (Chain_Node *) the_thread;
the_node->next = next_node;
the_node->previous = search_node;
ffc0b9a8: 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;
ffc0b9ac: 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;
ffc0b9b0: 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;
ffc0b9b4: 90 8b 00 00 stw r4,0(r11)
next_node->previous = the_node;
ffc0b9b8: 90 89 00 04 stw r4,4(r9)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0b9bc: 7c c0 01 24 mtmsr r6
ffc0b9c0: 38 60 00 01 li r3,1
*
* WARNING! Returning with interrupts disabled!
*/
*level_p = level;
return the_thread_queue->sync_state;
}
ffc0b9c4: 83 e1 00 0c lwz r31,12(r1)
ffc0b9c8: 38 21 00 10 addi r1,r1,16
ffc0b9cc: 4e 80 00 20 blr
ffc0b9d0: 7c c0 01 24 mtmsr r6
ffc0b9d4: 4b ff ff 58 b ffc0b92c <_Thread_queue_Enqueue_priority+0xbc>
ffc0b9d8: 7c c0 01 24 mtmsr r6 <== NOT EXECUTED
ffc0b9dc: 4b ff fe d4 b ffc0b8b0 <_Thread_queue_Enqueue_priority+0x40><== NOT EXECUTED
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
if ( priority == search_priority )
ffc0b9e0: 7f 80 40 00 cmpw cr7,r0,r8
if ( the_thread_queue->sync_state !=
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
ffc0b9e4: 38 00 00 00 li r0,0
ffc0b9e8: 90 03 00 30 stw r0,48(r3)
if ( priority == search_priority )
ffc0b9ec: 41 9e 00 30 beq- cr7,ffc0ba1c <_Thread_queue_Enqueue_priority+0x1ac>
goto equal_priority;
search_node = (Chain_Node *) search_thread;
previous_node = search_node->previous;
ffc0b9f0: 81 2b 00 04 lwz r9,4(r11)
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
ffc0b9f4: 91 64 00 00 stw r11,0(r4)
the_node->previous = previous_node;
ffc0b9f8: 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;
ffc0b9fc: 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;
ffc0ba00: 90 89 00 00 stw r4,0(r9)
search_node->previous = the_node;
ffc0ba04: 90 8b 00 04 stw r4,4(r11)
ffc0ba08: 7c c0 01 24 mtmsr r6
ffc0ba0c: 38 60 00 01 li r3,1
*
* WARNING! Returning with interrupts disabled!
*/
*level_p = level;
return the_thread_queue->sync_state;
}
ffc0ba10: 83 e1 00 0c lwz r31,12(r1)
ffc0ba14: 38 21 00 10 addi r1,r1,16
ffc0ba18: 4e 80 00 20 blr
ffc0ba1c: 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;
ffc0ba20: 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;
ffc0ba24: 81 2b 00 04 lwz r9,4(r11)
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
ffc0ba28: 91 64 00 00 stw r11,0(r4)
the_node->previous = previous_node;
ffc0ba2c: 91 24 00 04 stw r9,4(r4)
previous_node->next = the_node;
ffc0ba30: 90 89 00 00 stw r4,0(r9)
search_node->previous = the_node;
ffc0ba34: 90 8b 00 04 stw r4,4(r11)
ffc0ba38: 7d 40 01 24 mtmsr r10
ffc0ba3c: 38 60 00 01 li r3,1
the_thread->Wait.queue = the_thread_queue;
_ISR_Enable( level );
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
ffc0ba40: 4b ff fe d8 b ffc0b918 <_Thread_queue_Enqueue_priority+0xa8>
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 ) ) {
ffc0ba44: 7c ca 33 78 mr r10,r6
ffc0ba48: 39 00 ff ff li r8,-1
ffc0ba4c: 4b ff fe b8 b ffc0b904 <_Thread_queue_Enqueue_priority+0x94>
ffc0bb38 <_Thread_queue_Requeue>:
void _Thread_queue_Requeue(
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread
)
{
ffc0bb38: 94 21 ff d8 stwu r1,-40(r1)
ffc0bb3c: 7c 08 02 a6 mflr r0
ffc0bb40: 93 e1 00 24 stw r31,36(r1)
/*
* Just in case the thread really wasn't blocked on a thread queue
* when we get here.
*/
if ( !the_thread_queue )
ffc0bb44: 7c 7f 1b 79 mr. r31,r3
void _Thread_queue_Requeue(
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread
)
{
ffc0bb48: 93 c1 00 20 stw r30,32(r1)
ffc0bb4c: 7c 9e 23 78 mr r30,r4
ffc0bb50: 90 01 00 2c stw r0,44(r1)
ffc0bb54: 93 a1 00 1c stw r29,28(r1)
/*
* Just in case the thread really wasn't blocked on a thread queue
* when we get here.
*/
if ( !the_thread_queue )
ffc0bb58: 41 82 00 10 beq- ffc0bb68 <_Thread_queue_Requeue+0x30>
/*
* If queueing by FIFO, there is nothing to do. This only applies to
* priority blocking discipline.
*/
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) {
ffc0bb5c: 80 1f 00 34 lwz r0,52(r31)
ffc0bb60: 2f 80 00 01 cmpwi cr7,r0,1
ffc0bb64: 41 9e 00 20 beq- cr7,ffc0bb84 <_Thread_queue_Requeue+0x4c>
_Thread_queue_Extract_priority_helper( tq, the_thread, true );
(void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
}
_ISR_Enable( level );
}
}
ffc0bb68: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED
ffc0bb6c: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED
ffc0bb70: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0bb74: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED
ffc0bb78: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED
ffc0bb7c: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED
ffc0bb80: 4e 80 00 20 blr <== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0bb84: 7f a0 00 a6 mfmsr r29
ffc0bb88: 7d 30 42 a6 mfsprg r9,0
ffc0bb8c: 7f a9 48 78 andc r9,r29,r9
ffc0bb90: 7d 20 01 24 mtmsr r9
Thread_queue_Control *tq = the_thread_queue;
ISR_Level level;
ISR_Level level_ignored;
_ISR_Disable( level );
if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
ffc0bb94: 3d 60 00 03 lis r11,3
ffc0bb98: 81 24 00 10 lwz r9,16(r4)
ffc0bb9c: 61 6b be e0 ori r11,r11,48864
ffc0bba0: 7d 6a 48 39 and. r10,r11,r9
ffc0bba4: 40 82 00 24 bne- ffc0bbc8 <_Thread_queue_Requeue+0x90>
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0bba8: 7f a0 01 24 mtmsr r29 <== NOT EXECUTED
_Thread_queue_Extract_priority_helper( tq, the_thread, true );
(void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
}
_ISR_Enable( level );
}
}
ffc0bbac: 80 01 00 2c lwz r0,44(r1)
ffc0bbb0: 83 a1 00 1c lwz r29,28(r1)
ffc0bbb4: 7c 08 03 a6 mtlr r0
ffc0bbb8: 83 c1 00 20 lwz r30,32(r1)
ffc0bbbc: 83 e1 00 24 lwz r31,36(r1)
ffc0bbc0: 38 21 00 28 addi r1,r1,40
ffc0bbc4: 4e 80 00 20 blr
ffc0bbc8: 90 1f 00 30 stw r0,48(r31)
ISR_Level level_ignored;
_ISR_Disable( level );
if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
_Thread_queue_Enter_critical_section( tq );
_Thread_queue_Extract_priority_helper( tq, the_thread, true );
ffc0bbcc: 38 a0 00 01 li r5,1
ffc0bbd0: 48 00 3a 6d bl ffc0f63c <_Thread_queue_Extract_priority_helper>
(void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
ffc0bbd4: 7f e3 fb 78 mr r3,r31
ffc0bbd8: 7f c4 f3 78 mr r4,r30
ffc0bbdc: 38 a1 00 08 addi r5,r1,8
ffc0bbe0: 4b ff fc 91 bl ffc0b870 <_Thread_queue_Enqueue_priority>
ffc0bbe4: 7f a0 01 24 mtmsr r29
ffc0bbe8: 4b ff ff c4 b ffc0bbac <_Thread_queue_Requeue+0x74>
ffc1bb04 <_Timer_server_Body>:
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
ffc1bb04: 94 21 ff 98 stwu r1,-104(r1)
ffc1bb08: 7c 08 02 a6 mflr r0
ffc1bb0c: 92 a1 00 3c stw r21,60(r1)
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
ffc1bb10: 3a a1 00 08 addi r21,r1,8
ffc1bb14: 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;
ffc1bb18: 38 00 00 00 li r0,0
ffc1bb1c: 92 e1 00 44 stw r23,68(r1)
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
ffc1bb20: 3a e1 00 18 addi r23,r1,24
ffc1bb24: 93 41 00 50 stw r26,80(r1)
ffc1bb28: 3b 41 00 0c addi r26,r1,12
ffc1bb2c: 93 81 00 58 stw r28,88(r1)
ffc1bb30: 3b 81 00 14 addi r28,r1,20
ffc1bb34: 92 81 00 38 stw r20,56(r1)
ffc1bb38: 3e 80 00 00 lis r20,0
ffc1bb3c: 3a 94 28 24 addi r20,r20,10276
ffc1bb40: 93 01 00 48 stw r24,72(r1)
ffc1bb44: 3f 00 00 00 lis r24,0
ffc1bb48: 3b 18 28 7c addi r24,r24,10364
ffc1bb4c: 93 21 00 4c stw r25,76(r1)
ffc1bb50: 3f 20 00 00 lis r25,0
ffc1bb54: 3b 39 28 44 addi r25,r25,10308
ffc1bb58: 93 c1 00 60 stw r30,96(r1)
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
ffc1bb5c: 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);
ffc1bb60: 93 41 00 08 stw r26,8(r1)
the_chain->permanent_null = NULL;
ffc1bb64: 90 01 00 0c stw r0,12(r1)
the_chain->last = _Chain_Head(the_chain);
ffc1bb68: 92 a1 00 10 stw r21,16(r1)
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
ffc1bb6c: 92 e1 00 14 stw r23,20(r1)
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
ffc1bb70: 93 81 00 1c stw r28,28(r1)
ffc1bb74: 92 01 00 28 stw r16,40(r1)
static void _Timer_server_Stop_interval_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );
ffc1bb78: 3a 03 00 08 addi r16,r3,8
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
ffc1bb7c: 92 21 00 2c stw r17,44(r1)
static void _Timer_server_Stop_tod_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
ffc1bb80: 3a 23 00 40 addi r17,r3,64
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
ffc1bb84: 92 41 00 30 stw r18,48(r1)
* the active flag of the timer server is true.
*/
(*watchdog->routine)( watchdog->id, watchdog->user_data );
}
} else {
ts->active = false;
ffc1bb88: 3a 40 00 00 li r18,0
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
ffc1bb8c: 92 61 00 34 stw r19,52(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;
ffc1bb90: 3a 60 00 01 li r19,1
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
ffc1bb94: 92 c1 00 40 stw r22,64(r1)
* service routine may remove a watchdog from the chain.
*/
_ISR_Disable( level );
watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
if ( watchdog != NULL ) {
watchdog->state = WATCHDOG_INACTIVE;
ffc1bb98: 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
)
{
ffc1bb9c: 93 61 00 54 stw r27,84(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 );
ffc1bba0: 3b 63 00 68 addi r27,r3,104
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
ffc1bba4: 93 a1 00 5c stw r29,92(r1)
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
watchdogs->last_snapshot = snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
ffc1bba8: 3b a3 00 30 addi r29,r3,48
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
ffc1bbac: 93 e1 00 64 stw r31,100(r1)
ffc1bbb0: 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;
ffc1bbb4: 92 bf 00 78 stw r21,120(r31)
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
watchdogs->last_snapshot = snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
ffc1bbb8: 7f a3 eb 78 mr r3,r29
ffc1bbbc: 7f 85 e3 78 mr r5,r28
static void _Timer_server_Process_interval_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;
ffc1bbc0: 80 18 00 00 lwz r0,0(r24)
/*
* We assume adequate unsigned arithmetic here.
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
ffc1bbc4: 80 9f 00 3c lwz r4,60(r31)
watchdogs->last_snapshot = snapshot;
ffc1bbc8: 90 1f 00 3c stw r0,60(r31)
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
ffc1bbcc: 7c 84 00 50 subf r4,r4,r0
ffc1bbd0: 48 00 52 ad bl ffc20e7c <_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();
ffc1bbd4: 83 d9 00 00 lwz r30,0(r25)
Watchdog_Interval last_snapshot = watchdogs->last_snapshot;
ffc1bbd8: 80 9f 00 74 lwz r4,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 ) {
ffc1bbdc: 7f 9e 20 40 cmplw cr7,r30,r4
ffc1bbe0: 41 9d 00 98 bgt- cr7,ffc1bc78 <_Timer_server_Body+0x174>
* TOD has been set forward.
*/
delta = snapshot - last_snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
} else if ( snapshot < last_snapshot ) {
ffc1bbe4: 41 9c 00 a8 blt- cr7,ffc1bc8c <_Timer_server_Body+0x188>
*/
delta = last_snapshot - snapshot;
_Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta );
}
watchdogs->last_snapshot = snapshot;
ffc1bbe8: 93 df 00 74 stw r30,116(r31)
}
static void _Timer_server_Process_insertions( Timer_server_Control *ts )
{
while ( true ) {
Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain );
ffc1bbec: 80 7f 00 78 lwz r3,120(r31)
ffc1bbf0: 48 00 0b ad bl ffc1c79c <_Chain_Get>
if ( timer == NULL ) {
ffc1bbf4: 2c 03 00 00 cmpwi r3,0
ffc1bbf8: 41 82 00 34 beq- ffc1bc2c <_Timer_server_Body+0x128>
static void _Timer_server_Insert_timer(
Timer_server_Control *ts,
Timer_Control *timer
)
{
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
ffc1bbfc: 80 03 00 38 lwz r0,56(r3)
ffc1bc00: 2f 80 00 01 cmpwi cr7,r0,1
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
} else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {
ffc1bc04: 2f 00 00 03 cmpwi cr6,r0,3
static void _Timer_server_Insert_timer(
Timer_server_Control *ts,
Timer_Control *timer
)
{
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
ffc1bc08: 41 9e 00 98 beq- cr7,ffc1bca0 <_Timer_server_Body+0x19c>
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
} else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {
ffc1bc0c: 40 9a ff e0 bne+ cr6,ffc1bbec <_Timer_server_Body+0xe8>
_Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );
ffc1bc10: 38 83 00 10 addi r4,r3,16
ffc1bc14: 7f 63 db 78 mr r3,r27
ffc1bc18: 48 00 53 21 bl ffc20f38 <_Watchdog_Insert>
}
static void _Timer_server_Process_insertions( Timer_server_Control *ts )
{
while ( true ) {
Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain );
ffc1bc1c: 80 7f 00 78 lwz r3,120(r31)
ffc1bc20: 48 00 0b 7d bl ffc1c79c <_Chain_Get>
if ( timer == NULL ) {
ffc1bc24: 2c 03 00 00 cmpwi r3,0
ffc1bc28: 40 82 ff d4 bne+ ffc1bbfc <_Timer_server_Body+0xf8>
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc1bc2c: 7d 20 00 a6 mfmsr r9
ffc1bc30: 7c 10 42 a6 mfsprg r0,0
ffc1bc34: 7d 20 00 78 andc r0,r9,r0
ffc1bc38: 7c 00 01 24 mtmsr r0
* body loop.
*/
_Timer_server_Process_insertions( ts );
_ISR_Disable( level );
if ( _Chain_Is_empty( insert_chain ) ) {
ffc1bc3c: 80 01 00 08 lwz r0,8(r1)
ffc1bc40: 7f 9a 00 00 cmpw cr7,r26,r0
ffc1bc44: 41 9e 00 6c beq- cr7,ffc1bcb0 <_Timer_server_Body+0x1ac>
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc1bc48: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED
static void _Timer_server_Process_interval_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;
ffc1bc4c: 80 18 00 00 lwz r0,0(r24) <== NOT EXECUTED
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
watchdogs->last_snapshot = snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
ffc1bc50: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;
/*
* We assume adequate unsigned arithmetic here.
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
ffc1bc54: 80 9f 00 3c lwz r4,60(r31) <== NOT EXECUTED
watchdogs->last_snapshot = snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
ffc1bc58: 7f 85 e3 78 mr r5,r28 <== NOT EXECUTED
/*
* We assume adequate unsigned arithmetic here.
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
watchdogs->last_snapshot = snapshot;
ffc1bc5c: 90 1f 00 3c stw r0,60(r31) <== NOT EXECUTED
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
ffc1bc60: 7c 84 00 50 subf r4,r4,r0 <== NOT EXECUTED
ffc1bc64: 48 00 52 19 bl ffc20e7c <_Watchdog_Adjust_to_chain> <== NOT EXECUTED
static void _Timer_server_Process_tod_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
ffc1bc68: 83 d9 00 00 lwz r30,0(r25) <== NOT EXECUTED
Watchdog_Interval last_snapshot = watchdogs->last_snapshot;
ffc1bc6c: 80 9f 00 74 lwz r4,116(r31) <== NOT EXECUTED
/*
* Process the seconds chain. Start by checking that the Time
* of Day (TOD) has not been set backwards. If it has then
* we want to adjust the watchdogs->Chain to indicate this.
*/
if ( snapshot > last_snapshot ) {
ffc1bc70: 7f 9e 20 40 cmplw cr7,r30,r4 <== NOT EXECUTED
ffc1bc74: 40 9d ff 70 ble+ cr7,ffc1bbe4 <_Timer_server_Body+0xe0> <== NOT EXECUTED
/*
* This path is for normal forward movement and cases where the
* TOD has been set forward.
*/
delta = snapshot - last_snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
ffc1bc78: 7c 84 f0 50 subf r4,r4,r30
ffc1bc7c: 7f 63 db 78 mr r3,r27
ffc1bc80: 7f 85 e3 78 mr r5,r28
ffc1bc84: 48 00 51 f9 bl ffc20e7c <_Watchdog_Adjust_to_chain>
ffc1bc88: 4b ff ff 60 b ffc1bbe8 <_Timer_server_Body+0xe4>
/*
* 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 );
ffc1bc8c: 7c be 20 50 subf r5,r30,r4
ffc1bc90: 7f 63 db 78 mr r3,r27
ffc1bc94: 38 80 00 01 li r4,1
ffc1bc98: 48 00 50 c5 bl ffc20d5c <_Watchdog_Adjust>
ffc1bc9c: 4b ff ff 4c b ffc1bbe8 <_Timer_server_Body+0xe4>
Timer_server_Control *ts,
Timer_Control *timer
)
{
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
ffc1bca0: 38 83 00 10 addi r4,r3,16
ffc1bca4: 7f a3 eb 78 mr r3,r29
ffc1bca8: 48 00 52 91 bl ffc20f38 <_Watchdog_Insert>
ffc1bcac: 4b ff ff 40 b ffc1bbec <_Timer_server_Body+0xe8>
*/
_Timer_server_Process_insertions( ts );
_ISR_Disable( level );
if ( _Chain_Is_empty( insert_chain ) ) {
ts->insert_chain = NULL;
ffc1bcb0: 90 7f 00 78 stw r3,120(r31)
ffc1bcb4: 7d 20 01 24 mtmsr r9
_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 ) ) {
ffc1bcb8: 80 01 00 14 lwz r0,20(r1)
ffc1bcbc: 7f 97 00 00 cmpw cr7,r23,r0
ffc1bcc0: 40 be 00 30 bne+ cr7,ffc1bcf0 <_Timer_server_Body+0x1ec>
ffc1bcc4: 48 00 00 50 b ffc1bd14 <_Timer_server_Body+0x210>
{
Chain_Node *return_node;
Chain_Node *new_first;
return_node = the_chain->first;
new_first = return_node->next;
ffc1bcc8: 81 69 00 00 lwz r11,0(r9)
* service routine may remove a watchdog from the chain.
*/
_ISR_Disable( level );
watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
if ( watchdog != NULL ) {
watchdog->state = WATCHDOG_INACTIVE;
ffc1bccc: 92 c9 00 08 stw r22,8(r9)
the_chain->first = new_first;
ffc1bcd0: 91 61 00 14 stw r11,20(r1)
new_first->previous = _Chain_Head(the_chain);
ffc1bcd4: 93 8b 00 04 stw r28,4(r11)
ffc1bcd8: 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 );
ffc1bcdc: 80 09 00 1c lwz r0,28(r9)
ffc1bce0: 80 89 00 24 lwz r4,36(r9)
ffc1bce4: 80 69 00 20 lwz r3,32(r9)
ffc1bce8: 7c 09 03 a6 mtctr r0
ffc1bcec: 4e 80 04 21 bctrl
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc1bcf0: 7c 00 00 a6 mfmsr r0
ffc1bcf4: 7d 30 42 a6 mfsprg r9,0
ffc1bcf8: 7c 09 48 78 andc r9,r0,r9
ffc1bcfc: 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));
ffc1bd00: 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))
ffc1bd04: 7f 97 48 00 cmpw cr7,r23,r9
ffc1bd08: 40 9e ff c0 bne+ cr7,ffc1bcc8 <_Timer_server_Body+0x1c4>
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc1bd0c: 7c 00 01 24 mtmsr r0
ffc1bd10: 4b ff fe a4 b ffc1bbb4 <_Timer_server_Body+0xb0>
}
} else {
ts->active = false;
ffc1bd14: 9a 5f 00 7c stb r18,124(r31)
ffc1bd18: 80 14 00 00 lwz r0,0(r20)
ffc1bd1c: 30 00 00 01 addic r0,r0,1
ffc1bd20: 90 14 00 00 stw r0,0(r20)
/*
* Block until there is something to do.
*/
_Thread_Disable_dispatch();
_Thread_Set_state( ts->thread, STATES_DELAYING );
ffc1bd24: 80 7f 00 00 lwz r3,0(r31)
ffc1bd28: 38 80 00 08 li r4,8
ffc1bd2c: 48 00 44 05 bl ffc20130 <_Thread_Set_state>
_Timer_server_Reset_interval_system_watchdog( ts );
ffc1bd30: 7f e3 fb 78 mr r3,r31
ffc1bd34: 4b ff fc a9 bl ffc1b9dc <_Timer_server_Reset_interval_system_watchdog>
_Timer_server_Reset_tod_system_watchdog( ts );
ffc1bd38: 7f e3 fb 78 mr r3,r31
ffc1bd3c: 4b ff fd 35 bl ffc1ba70 <_Timer_server_Reset_tod_system_watchdog>
_Thread_Enable_dispatch();
ffc1bd40: 48 00 36 9d bl ffc1f3dc <_Thread_Enable_dispatch>
ts->active = true;
ffc1bd44: 9a 7f 00 7c stb r19,124(r31)
static void _Timer_server_Stop_interval_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );
ffc1bd48: 7e 03 83 78 mr r3,r16
ffc1bd4c: 48 00 53 b5 bl ffc21100 <_Watchdog_Remove>
static void _Timer_server_Stop_tod_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
ffc1bd50: 7e 23 8b 78 mr r3,r17
ffc1bd54: 48 00 53 ad bl ffc21100 <_Watchdog_Remove>
ffc1bd58: 4b ff fe 5c b ffc1bbb4 <_Timer_server_Body+0xb0>
ffc472e0 <_Timespec_Less_than>:
bool _Timespec_Less_than(
const struct timespec *lhs,
const struct timespec *rhs
)
{
if ( lhs->tv_sec < rhs->tv_sec )
ffc472e0: 81 63 00 00 lwz r11,0(r3)
bool _Timespec_Less_than(
const struct timespec *lhs,
const struct timespec *rhs
)
{
ffc472e4: 7c 69 1b 78 mr r9,r3
if ( lhs->tv_sec < rhs->tv_sec )
ffc472e8: 80 04 00 00 lwz r0,0(r4)
ffc472ec: 38 60 00 01 li r3,1
ffc472f0: 7f 8b 00 00 cmpw cr7,r11,r0
ffc472f4: 4d 9c 00 20 bltlr cr7
return true;
if ( lhs->tv_sec > rhs->tv_sec )
ffc472f8: 41 9d 00 1c bgt- cr7,ffc47314 <_Timespec_Less_than+0x34>
#include <rtems/system.h>
#include <rtems/score/timespec.h>
#include <rtems/score/tod.h>
bool _Timespec_Less_than(
ffc472fc: 81 29 00 04 lwz r9,4(r9)
ffc47300: 80 04 00 04 lwz r0,4(r4)
ffc47304: 7f 89 00 00 cmpw cr7,r9,r0
ffc47308: 7c 60 00 26 mfcr r3
ffc4730c: 54 63 ef fe rlwinm r3,r3,29,31,31
/* ASSERT: lhs->tv_sec == rhs->tv_sec */
if ( lhs->tv_nsec < rhs->tv_nsec )
return true;
return false;
}
ffc47310: 4e 80 00 20 blr
)
{
if ( lhs->tv_sec < rhs->tv_sec )
return true;
if ( lhs->tv_sec > rhs->tv_sec )
ffc47314: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc47318: 4e 80 00 20 blr <== NOT EXECUTED
ffc0edd4 <_Watchdog_Adjust>:
void _Watchdog_Adjust(
Chain_Control *header,
Watchdog_Adjust_directions direction,
Watchdog_Interval units
)
{
ffc0edd4: 94 21 ff e0 stwu r1,-32(r1)
ffc0edd8: 7c 08 02 a6 mflr r0
ffc0eddc: 90 01 00 24 stw r0,36(r1)
ffc0ede0: 93 c1 00 18 stw r30,24(r1)
ffc0ede4: 7c be 2b 78 mr r30,r5
ffc0ede8: 93 e1 00 1c stw r31,28(r1)
ffc0edec: 7c 7f 1b 78 mr r31,r3
ffc0edf0: 93 61 00 0c stw r27,12(r1)
ffc0edf4: 93 81 00 10 stw r28,16(r1)
ffc0edf8: 93 a1 00 14 stw r29,20(r1)
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0edfc: 7c 00 00 a6 mfmsr r0
ffc0ee00: 7d 30 42 a6 mfsprg r9,0
ffc0ee04: 7c 09 48 78 andc r9,r0,r9
ffc0ee08: 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));
ffc0ee0c: 81 23 00 00 lwz r9,0(r3)
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
ffc0ee10: 3b 83 00 04 addi r28,r3,4
* hence the compiler must not assume *header to remain
* unmodified across that call.
*
* Till Straumann, 7/2003
*/
if ( !_Chain_Is_empty( header ) ) {
ffc0ee14: 7f 89 e0 00 cmpw cr7,r9,r28
ffc0ee18: 41 9e 00 6c beq- cr7,ffc0ee84 <_Watchdog_Adjust+0xb0>
switch ( direction ) {
ffc0ee1c: 2f 84 00 00 cmpwi cr7,r4,0
ffc0ee20: 40 9e 00 8c bne- cr7,ffc0eeac <_Watchdog_Adjust+0xd8>
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
break;
case WATCHDOG_FORWARD:
while ( units ) {
ffc0ee24: 2f 85 00 00 cmpwi cr7,r5,0
ffc0ee28: 41 9e 00 5c beq- cr7,ffc0ee84 <_Watchdog_Adjust+0xb0>
if ( units < _Watchdog_First( header )->delta_interval ) {
ffc0ee2c: 83 a9 00 10 lwz r29,16(r9)
_Watchdog_First( header )->delta_interval -= units;
break;
} else {
units -= _Watchdog_First( header )->delta_interval;
_Watchdog_First( header )->delta_interval = 1;
ffc0ee30: 3b 60 00 01 li r27,1
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
break;
case WATCHDOG_FORWARD:
while ( units ) {
if ( units < _Watchdog_First( header )->delta_interval ) {
ffc0ee34: 7f 85 e8 40 cmplw cr7,r5,r29
ffc0ee38: 40 bc 00 18 bge+ cr7,ffc0ee50 <_Watchdog_Adjust+0x7c>
ffc0ee3c: 48 00 00 ac b ffc0eee8 <_Watchdog_Adjust+0x114> <== NOT EXECUTED
switch ( direction ) {
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
break;
case WATCHDOG_FORWARD:
while ( units ) {
ffc0ee40: 41 82 00 44 beq- ffc0ee84 <_Watchdog_Adjust+0xb0>
if ( units < _Watchdog_First( header )->delta_interval ) {
ffc0ee44: 83 a9 00 10 lwz r29,16(r9)
ffc0ee48: 7f 9d f0 40 cmplw cr7,r29,r30
ffc0ee4c: 41 9d 00 9c bgt- cr7,ffc0eee8 <_Watchdog_Adjust+0x114>
_Watchdog_First( header )->delta_interval -= units;
break;
} else {
units -= _Watchdog_First( header )->delta_interval;
_Watchdog_First( header )->delta_interval = 1;
ffc0ee50: 93 69 00 10 stw r27,16(r9)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0ee54: 7c 00 01 24 mtmsr r0
_ISR_Enable( level );
_Watchdog_Tickle( header );
ffc0ee58: 7f e3 fb 78 mr r3,r31
ffc0ee5c: 48 00 03 31 bl ffc0f18c <_Watchdog_Tickle>
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0ee60: 7c 00 00 a6 mfmsr r0
ffc0ee64: 7d 30 42 a6 mfsprg r9,0
ffc0ee68: 7c 09 48 78 andc r9,r0,r9
ffc0ee6c: 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));
ffc0ee70: 81 7f 00 00 lwz r11,0(r31)
switch ( direction ) {
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
break;
case WATCHDOG_FORWARD:
while ( units ) {
ffc0ee74: 7f dd f0 51 subf. r30,r29,r30
_Watchdog_Tickle( header );
_ISR_Disable( level );
if ( _Chain_Is_empty( header ) )
ffc0ee78: 7f 9c 58 00 cmpw cr7,r28,r11
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First(
Chain_Control *header
)
{
return ( (Watchdog_Control *) header->first );
ffc0ee7c: 7d 69 5b 78 mr r9,r11
ffc0ee80: 40 9e ff c0 bne+ cr7,ffc0ee40 <_Watchdog_Adjust+0x6c>
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0ee84: 7c 00 01 24 mtmsr r0
}
}
_ISR_Enable( level );
}
ffc0ee88: 80 01 00 24 lwz r0,36(r1)
ffc0ee8c: 83 61 00 0c lwz r27,12(r1)
ffc0ee90: 7c 08 03 a6 mtlr r0
ffc0ee94: 83 81 00 10 lwz r28,16(r1)
ffc0ee98: 83 a1 00 14 lwz r29,20(r1)
ffc0ee9c: 83 c1 00 18 lwz r30,24(r1)
ffc0eea0: 83 e1 00 1c lwz r31,28(r1)
ffc0eea4: 38 21 00 20 addi r1,r1,32
ffc0eea8: 4e 80 00 20 blr
* unmodified across that call.
*
* Till Straumann, 7/2003
*/
if ( !_Chain_Is_empty( header ) ) {
switch ( direction ) {
ffc0eeac: 2f 84 00 01 cmpwi cr7,r4,1
ffc0eeb0: 40 9e ff d4 bne+ cr7,ffc0ee84 <_Watchdog_Adjust+0xb0>
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
ffc0eeb4: 81 69 00 10 lwz r11,16(r9)
ffc0eeb8: 7f cb 2a 14 add r30,r11,r5
ffc0eebc: 93 c9 00 10 stw r30,16(r9)
ffc0eec0: 7c 00 01 24 mtmsr r0
}
}
_ISR_Enable( level );
}
ffc0eec4: 80 01 00 24 lwz r0,36(r1)
ffc0eec8: 83 61 00 0c lwz r27,12(r1)
ffc0eecc: 7c 08 03 a6 mtlr r0
ffc0eed0: 83 81 00 10 lwz r28,16(r1)
ffc0eed4: 83 a1 00 14 lwz r29,20(r1)
ffc0eed8: 83 c1 00 18 lwz r30,24(r1)
ffc0eedc: 83 e1 00 1c lwz r31,28(r1)
ffc0eee0: 38 21 00 20 addi r1,r1,32
ffc0eee4: 4e 80 00 20 blr
_Watchdog_First( header )->delta_interval += units;
break;
case WATCHDOG_FORWARD:
while ( units ) {
if ( units < _Watchdog_First( header )->delta_interval ) {
_Watchdog_First( header )->delta_interval -= units;
ffc0eee8: 7f de e8 50 subf r30,r30,r29
ffc0eeec: 93 c9 00 10 stw r30,16(r9)
break;
ffc0eef0: 4b ff ff 94 b ffc0ee84 <_Watchdog_Adjust+0xb0>
ffc28b0c <__kill>:
#endif
int __kill( pid_t pid, int sig )
{
return 0;
}
ffc28b0c: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc28b10: 4e 80 00 20 blr <== NOT EXECUTED
ffc1c9f8 <_exit>:
/*
* If the toolset uses init/fini sections, then we need to
* run the global destructors now.
*/
#if defined(__USE_INIT_FINI__)
FINI_SYMBOL();
ffc1c9f8: 94 21 ff f0 stwu r1,-16(r1)
ffc1c9fc: 7c 08 02 a6 mflr r0
ffc1ca00: 90 61 00 08 stw r3,8(r1)
ffc1ca04: 90 01 00 14 stw r0,20(r1)
ffc1ca08: 48 00 0a 59 bl ffc1d460 <__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();
ffc1ca0c: 4b ff ff 55 bl ffc1c960 <libc_wrapup>
rtems_shutdown_executive(status);
ffc1ca10: 80 61 00 08 lwz r3,8(r1)
ffc1ca14: 48 00 01 59 bl ffc1cb6c <rtems_shutdown_executive>
ffc1ca18: 48 00 00 00 b ffc1ca18 <_exit+0x20> <== NOT EXECUTED
ffc46120 <_fcntl_r>:
int fd,
int cmd,
int arg
)
{
return fcntl( fd, cmd, arg );
ffc46120: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED
ffc46124: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED
ffc46128: 7c c5 33 78 mr r5,r6 <== NOT EXECUTED
ffc4612c: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc46130: 4b ff fd 08 b ffc45e38 <fcntl> <== NOT EXECUTED
ffc28ad0 <_getpid_r>:
pid_t _getpid_r(
struct _reent *ptr __attribute__((unused))
)
{
return getpid();
}
ffc28ad0: 38 60 00 01 li r3,1 <== NOT EXECUTED
ffc28ad4: 4e 80 00 20 blr <== NOT EXECUTED
ffc0e378 <_gettimeofday>:
int _gettimeofday(
struct timeval *tp,
struct timezone *tzp
)
{
return gettimeofday( tp, tzp );
ffc0e378: 4b ff ff 70 b ffc0e2e8 <gettimeofday> <== NOT EXECUTED
ffc28b04 <_kill_r>:
#include <reent.h>
int _kill_r( struct _reent *ptr, pid_t pid, int sig )
{
return 0;
}
ffc28b04: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc28b08: 4e 80 00 20 blr <== NOT EXECUTED
ffc2fd14 <_link_r>:
struct _reent *ptr __attribute__((unused)),
const char *existing,
const char *new
)
{
return link( existing, new );
ffc2fd14: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED
ffc2fd18: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED
ffc2fd1c: 4b ff fd 18 b ffc2fa34 <link> <== NOT EXECUTED
ffc30008 <_lstat_r>:
struct _reent *ptr __attribute__((unused)),
const char *path,
struct stat *buf
)
{
return _STAT_NAME( path, buf );
ffc30008: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED
ffc3000c: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED
ffc30010: 4b ff fe c0 b ffc2fed0 <lstat> <== NOT EXECUTED
ffc1cb18 <_realloc_r>:
void *_realloc_r(
struct _reent *ignored __attribute__((unused)),
void *ptr,
size_t size
)
{
ffc1cb18: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED
ffc1cb1c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
return realloc( ptr, size );
ffc1cb20: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED
ffc1cb24: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED
void *_realloc_r(
struct _reent *ignored __attribute__((unused)),
void *ptr,
size_t size
)
{
ffc1cb28: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
return realloc( ptr, size );
ffc1cb2c: 48 00 00 81 bl ffc1cbac <realloc> <== NOT EXECUTED
}
ffc1cb30: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc1cb34: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc1cb38: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc1cb3c: 4e 80 00 20 blr <== NOT EXECUTED
ffc67a6c <_rename_r>:
int _rename_r(
struct _reent *ptr __attribute__((unused)),
const char *old,
const char *new
)
{
ffc67a6c: 94 21 ff a0 stwu r1,-96(r1) <== NOT EXECUTED
ffc67a70: 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 );
ffc67a74: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED
int _rename_r(
struct _reent *ptr __attribute__((unused)),
const char *old,
const char *new
)
{
ffc67a78: 93 a1 00 54 stw r29,84(r1) <== NOT EXECUTED
ffc67a7c: 7c bd 2b 78 mr r29,r5 <== NOT EXECUTED
ffc67a80: 93 c1 00 58 stw r30,88(r1) <== NOT EXECUTED
ffc67a84: 93 e1 00 5c stw r31,92(r1) <== NOT EXECUTED
ffc67a88: 7c 9f 23 78 mr r31,r4 <== NOT EXECUTED
ffc67a8c: 90 01 00 64 stw r0,100(r1) <== NOT EXECUTED
ffc67a90: 93 61 00 4c stw r27,76(r1) <== NOT EXECUTED
ffc67a94: 93 81 00 50 stw r28,80(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 );
ffc67a98: 4b f9 fc 41 bl ffc076d8 <rtems_filesystem_dirname> <== NOT EXECUTED
if ( old_parent_pathlen == 0 )
ffc67a9c: 7c 7e 1b 79 mr. r30,r3 <== NOT EXECUTED
ffc67aa0: 40 82 04 84 bne- ffc67f24 <_rename_r+0x4b8> <== NOT EXECUTED
rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );
ffc67aa4: 88 1f 00 00 lbz r0,0(r31) <== NOT EXECUTED
ffc67aa8: 2f 80 00 2f cmpwi cr7,r0,47 <== NOT EXECUTED
ffc67aac: 41 9e 00 14 beq- cr7,ffc67ac0 <_rename_r+0x54> <== NOT EXECUTED
ffc67ab0: 2f 80 00 5c cmpwi cr7,r0,92 <== NOT EXECUTED
ffc67ab4: 41 9e 00 0c beq- cr7,ffc67ac0 <_rename_r+0x54> <== NOT EXECUTED
ffc67ab8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc67abc: 40 9e 02 48 bne- cr7,ffc67d04 <_rename_r+0x298> <== NOT EXECUTED
ffc67ac0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc67ac4: 81 29 34 ec lwz r9,13548(r9) <== NOT EXECUTED
ffc67ac8: 3b 80 00 00 li r28,0 <== NOT EXECUTED
ffc67acc: 80 09 00 24 lwz r0,36(r9) <== NOT EXECUTED
ffc67ad0: 81 09 00 18 lwz r8,24(r9) <== NOT EXECUTED
ffc67ad4: 81 49 00 1c lwz r10,28(r9) <== NOT EXECUTED
ffc67ad8: 81 69 00 20 lwz r11,32(r9) <== NOT EXECUTED
ffc67adc: 91 01 00 20 stw r8,32(r1) <== NOT EXECUTED
ffc67ae0: 91 41 00 24 stw r10,36(r1) <== NOT EXECUTED
ffc67ae4: 91 61 00 28 stw r11,40(r1) <== NOT EXECUTED
ffc67ae8: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED
ffc67aec: 80 09 00 28 lwz r0,40(r9) <== NOT EXECUTED
ffc67af0: 90 01 00 30 stw r0,48(r1) <== NOT EXECUTED
/*
* Start from the parent to find the node that should be under it.
*/
old_loc = old_parent_loc;
ffc67af4: 80 01 00 20 lwz r0,32(r1) <== NOT EXECUTED
name = old + old_parent_pathlen;
ffc67af8: 7f ff f2 14 add r31,r31,r30 <== NOT EXECUTED
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
ffc67afc: 7f e3 fb 78 mr r3,r31 <== 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;
ffc67b00: 93 e1 00 08 stw r31,8(r1) <== NOT EXECUTED
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
ffc67b04: 3b c1 00 0c addi r30,r1,12 <== NOT EXECUTED
/*
* Start from the parent to find the node that should be under it.
*/
old_loc = old_parent_loc;
ffc67b08: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
ffc67b0c: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED
ffc67b10: 90 01 00 10 stw r0,16(r1) <== NOT EXECUTED
ffc67b14: 80 01 00 28 lwz r0,40(r1) <== NOT EXECUTED
ffc67b18: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED
ffc67b1c: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED
ffc67b20: 90 01 00 18 stw r0,24(r1) <== NOT EXECUTED
ffc67b24: 80 01 00 30 lwz r0,48(r1) <== NOT EXECUTED
ffc67b28: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED
name = old + old_parent_pathlen;
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
ffc67b2c: 4b fe cd b9 bl ffc548e4 <strlen> <== NOT EXECUTED
ffc67b30: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED
ffc67b34: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc67b38: 4b f9 fb 51 bl ffc07688 <rtems_filesystem_prefix_separators><== NOT EXECUTED
ffc67b3c: 7f ff 1a 14 add r31,r31,r3 <== NOT EXECUTED
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
ffc67b40: 7f e3 fb 78 mr r3,r31 <== 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 ) );
ffc67b44: 93 e1 00 08 stw r31,8(r1) <== NOT EXECUTED
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
ffc67b48: 4b fe cd 9d bl ffc548e4 <strlen> <== NOT EXECUTED
ffc67b4c: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc67b50: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED
ffc67b54: 7f c6 f3 78 mr r6,r30 <== NOT EXECUTED
ffc67b58: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc67b5c: 38 e0 00 00 li r7,0 <== NOT EXECUTED
ffc67b60: 4b f9 fc 05 bl ffc07764 <rtems_filesystem_evaluate_relative_path><== NOT EXECUTED
0, &old_loc, false );
if ( result != 0 ) {
ffc67b64: 7c 7f 1b 79 mr. r31,r3 <== NOT EXECUTED
ffc67b68: 40 82 02 80 bne- ffc67de8 <_rename_r+0x37c> <== NOT EXECUTED
/*
* Get the parent of the new node we are renaming to.
*/
rtems_filesystem_get_start_loc( new, &i, &new_parent_loc );
ffc67b6c: 88 1d 00 00 lbz r0,0(r29) <== NOT EXECUTED
ffc67b70: 2f 80 00 2f cmpwi cr7,r0,47 <== NOT EXECUTED
ffc67b74: 41 9e 00 4c beq- cr7,ffc67bc0 <_rename_r+0x154> <== NOT EXECUTED
ffc67b78: 2f 80 00 5c cmpwi cr7,r0,92 <== NOT EXECUTED
ffc67b7c: 41 9e 00 44 beq- cr7,ffc67bc0 <_rename_r+0x154> <== NOT EXECUTED
ffc67b80: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc67b84: 41 9e 00 3c beq- cr7,ffc67bc0 <_rename_r+0x154> <== NOT EXECUTED
ffc67b88: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc67b8c: 81 29 34 ec lwz r9,13548(r9) <== NOT EXECUTED
ffc67b90: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc67b94: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED
ffc67b98: 81 09 00 04 lwz r8,4(r9) <== NOT EXECUTED
ffc67b9c: 81 49 00 08 lwz r10,8(r9) <== NOT EXECUTED
ffc67ba0: 81 69 00 0c lwz r11,12(r9) <== NOT EXECUTED
ffc67ba4: 91 01 00 34 stw r8,52(r1) <== NOT EXECUTED
ffc67ba8: 91 41 00 38 stw r10,56(r1) <== NOT EXECUTED
ffc67bac: 91 61 00 3c stw r11,60(r1) <== NOT EXECUTED
ffc67bb0: 90 01 00 40 stw r0,64(r1) <== NOT EXECUTED
ffc67bb4: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED
ffc67bb8: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED
ffc67bbc: 48 00 00 38 b ffc67bf4 <_rename_r+0x188> <== NOT EXECUTED
ffc67bc0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc67bc4: 81 29 34 ec lwz r9,13548(r9) <== NOT EXECUTED
ffc67bc8: 38 60 00 01 li r3,1 <== NOT EXECUTED
ffc67bcc: 80 09 00 24 lwz r0,36(r9) <== NOT EXECUTED
ffc67bd0: 81 09 00 18 lwz r8,24(r9) <== NOT EXECUTED
ffc67bd4: 81 49 00 1c lwz r10,28(r9) <== NOT EXECUTED
ffc67bd8: 81 69 00 20 lwz r11,32(r9) <== NOT EXECUTED
ffc67bdc: 91 01 00 34 stw r8,52(r1) <== NOT EXECUTED
ffc67be0: 91 41 00 38 stw r10,56(r1) <== NOT EXECUTED
ffc67be4: 91 61 00 3c stw r11,60(r1) <== NOT EXECUTED
ffc67be8: 90 01 00 40 stw r0,64(r1) <== NOT EXECUTED
ffc67bec: 80 09 00 28 lwz r0,40(r9) <== NOT EXECUTED
ffc67bf0: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED
if ( !new_parent_loc.ops->evalformake_h ) {
ffc67bf4: 81 21 00 40 lwz r9,64(r1) <== NOT EXECUTED
ffc67bf8: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED
ffc67bfc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc67c00: 41 9e 02 c0 beq- cr7,ffc67ec0 <_rename_r+0x454> <== NOT EXECUTED
rtems_filesystem_freenode( &old_parent_loc );
rtems_filesystem_freenode( &old_loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name );
ffc67c04: 3b e1 00 34 addi r31,r1,52 <== NOT EXECUTED
ffc67c08: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc67c0c: 7c 7d 1a 14 add r3,r29,r3 <== NOT EXECUTED
ffc67c10: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc67c14: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED
ffc67c18: 4e 80 04 21 bctrl <== NOT EXECUTED
if ( result != 0 ) {
ffc67c1c: 7c 7d 1b 79 mr. r29,r3 <== NOT EXECUTED
ffc67c20: 40 82 02 04 bne- ffc67e24 <_rename_r+0x3b8> <== 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 ) {
ffc67c24: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED
ffc67c28: 81 21 00 30 lwz r9,48(r1) <== NOT EXECUTED
ffc67c2c: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED
ffc67c30: 40 9e 01 0c bne- cr7,ffc67d3c <_rename_r+0x2d0> <== NOT EXECUTED
rtems_filesystem_freenode( &old_parent_loc );
rtems_filesystem_freenode( &old_loc );
rtems_set_errno_and_return_minus_one( EXDEV );
}
if ( !new_parent_loc.ops->rename_h ) {
ffc67c34: 81 21 00 40 lwz r9,64(r1) <== NOT EXECUTED
ffc67c38: 80 09 00 40 lwz r0,64(r9) <== NOT EXECUTED
ffc67c3c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc67c40: 41 9e 02 68 beq- cr7,ffc67ea8 <_rename_r+0x43c> <== 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 );
ffc67c44: 3b a1 00 20 addi r29,r1,32 <== NOT EXECUTED
ffc67c48: 80 c1 00 08 lwz r6,8(r1) <== NOT EXECUTED
ffc67c4c: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc67c50: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc67c54: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED
ffc67c58: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED
ffc67c5c: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_filesystem_freenode( &new_parent_loc );
ffc67c60: 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 );
ffc67c64: 7c 7b 1b 78 mr r27,r3 <== NOT EXECUTED
rtems_filesystem_freenode( &new_parent_loc );
ffc67c68: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc67c6c: 41 9e 00 1c beq- cr7,ffc67c88 <_rename_r+0x21c> <== NOT EXECUTED
ffc67c70: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc67c74: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc67c78: 41 9e 00 10 beq- cr7,ffc67c88 <_rename_r+0x21c> <== NOT EXECUTED
ffc67c7c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc67c80: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc67c84: 4e 80 04 21 bctrl <== NOT EXECUTED
if ( free_old_parentloc )
ffc67c88: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED
ffc67c8c: 40 9e 00 50 bne- cr7,ffc67cdc <_rename_r+0x270> <== NOT EXECUTED
rtems_filesystem_freenode( &old_parent_loc );
rtems_filesystem_freenode( &old_loc );
ffc67c90: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED
ffc67c94: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc67c98: 41 9e 00 1c beq- cr7,ffc67cb4 <_rename_r+0x248> <== NOT EXECUTED
ffc67c9c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc67ca0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc67ca4: 41 9e 00 10 beq- cr7,ffc67cb4 <_rename_r+0x248> <== NOT EXECUTED
ffc67ca8: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc67cac: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc67cb0: 4e 80 04 21 bctrl <== NOT EXECUTED
return result;
}
ffc67cb4: 80 01 00 64 lwz r0,100(r1) <== NOT EXECUTED
ffc67cb8: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED
ffc67cbc: 83 81 00 50 lwz r28,80(r1) <== NOT EXECUTED
ffc67cc0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc67cc4: 83 61 00 4c lwz r27,76(r1) <== NOT EXECUTED
ffc67cc8: 83 a1 00 54 lwz r29,84(r1) <== NOT EXECUTED
ffc67ccc: 83 c1 00 58 lwz r30,88(r1) <== NOT EXECUTED
ffc67cd0: 83 e1 00 5c lwz r31,92(r1) <== NOT EXECUTED
ffc67cd4: 38 21 00 60 addi r1,r1,96 <== NOT EXECUTED
ffc67cd8: 4e 80 00 20 blr <== NOT EXECUTED
result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name );
rtems_filesystem_freenode( &new_parent_loc );
if ( free_old_parentloc )
rtems_filesystem_freenode( &old_parent_loc );
ffc67cdc: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED
ffc67ce0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc67ce4: 41 be ff ac beq- cr7,ffc67c90 <_rename_r+0x224> <== NOT EXECUTED
ffc67ce8: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc67cec: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc67cf0: 41 be ff a0 beq- cr7,ffc67c90 <_rename_r+0x224> <== NOT EXECUTED
ffc67cf4: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc67cf8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc67cfc: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc67d00: 4b ff ff 90 b ffc67c90 <_rename_r+0x224> <== NOT EXECUTED
*/
old_parent_pathlen = rtems_filesystem_dirname ( old );
if ( old_parent_pathlen == 0 )
rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );
ffc67d04: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc67d08: 81 29 34 ec lwz r9,13548(r9) <== NOT EXECUTED
ffc67d0c: 3b 80 00 00 li r28,0 <== NOT EXECUTED
ffc67d10: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED
ffc67d14: 81 09 00 04 lwz r8,4(r9) <== NOT EXECUTED
ffc67d18: 81 49 00 08 lwz r10,8(r9) <== NOT EXECUTED
ffc67d1c: 81 69 00 0c lwz r11,12(r9) <== NOT EXECUTED
ffc67d20: 91 01 00 20 stw r8,32(r1) <== NOT EXECUTED
ffc67d24: 91 41 00 24 stw r10,36(r1) <== NOT EXECUTED
ffc67d28: 91 61 00 28 stw r11,40(r1) <== NOT EXECUTED
ffc67d2c: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED
ffc67d30: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED
ffc67d34: 90 01 00 30 stw r0,48(r1) <== NOT EXECUTED
ffc67d38: 4b ff fd bc b ffc67af4 <_rename_r+0x88> <== NOT EXECUTED
* Check to see if the caller is trying to rename across file system
* boundaries.
*/
if ( old_parent_loc.mt_entry != new_parent_loc.mt_entry ) {
rtems_filesystem_freenode( &new_parent_loc );
ffc67d3c: 81 21 00 40 lwz r9,64(r1) <== NOT EXECUTED
ffc67d40: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc67d44: 41 9e 00 1c beq- cr7,ffc67d60 <_rename_r+0x2f4> <== NOT EXECUTED
ffc67d48: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc67d4c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc67d50: 41 9e 00 10 beq- cr7,ffc67d60 <_rename_r+0x2f4> <== NOT EXECUTED
ffc67d54: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc67d58: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc67d5c: 4e 80 04 21 bctrl <== NOT EXECUTED
if ( free_old_parentloc )
ffc67d60: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED
ffc67d64: 41 9e 00 28 beq- cr7,ffc67d8c <_rename_r+0x320> <== NOT EXECUTED
rtems_filesystem_freenode( &old_parent_loc );
ffc67d68: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED
ffc67d6c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc67d70: 41 9e 00 1c beq- cr7,ffc67d8c <_rename_r+0x320> <== NOT EXECUTED
ffc67d74: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc67d78: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc67d7c: 41 9e 00 10 beq- cr7,ffc67d8c <_rename_r+0x320> <== NOT EXECUTED
ffc67d80: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED
ffc67d84: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc67d88: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_filesystem_freenode( &old_loc );
ffc67d8c: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED
ffc67d90: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc67d94: 41 9e 00 1c beq- cr7,ffc67db0 <_rename_r+0x344> <== NOT EXECUTED
ffc67d98: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc67d9c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc67da0: 41 9e 00 10 beq- cr7,ffc67db0 <_rename_r+0x344> <== NOT EXECUTED
ffc67da4: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc67da8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc67dac: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EXDEV );
ffc67db0: 4b fe 4d c9 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc67db4: 38 00 00 12 li r0,18 <== NOT EXECUTED
ffc67db8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc67dbc: 3b 60 ff ff li r27,-1 <== NOT EXECUTED
if ( free_old_parentloc )
rtems_filesystem_freenode( &old_parent_loc );
rtems_filesystem_freenode( &old_loc );
return result;
}
ffc67dc0: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED
ffc67dc4: 80 01 00 64 lwz r0,100(r1) <== NOT EXECUTED
ffc67dc8: 83 61 00 4c lwz r27,76(r1) <== NOT EXECUTED
ffc67dcc: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc67dd0: 83 81 00 50 lwz r28,80(r1) <== NOT EXECUTED
ffc67dd4: 83 a1 00 54 lwz r29,84(r1) <== NOT EXECUTED
ffc67dd8: 83 c1 00 58 lwz r30,88(r1) <== NOT EXECUTED
ffc67ddc: 83 e1 00 5c lwz r31,92(r1) <== NOT EXECUTED
ffc67de0: 38 21 00 60 addi r1,r1,96 <== NOT EXECUTED
ffc67de4: 4e 80 00 20 blr <== NOT EXECUTED
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
0, &old_loc, false );
if ( result != 0 ) {
if ( free_old_parentloc )
ffc67de8: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED
ffc67dec: 41 9e 00 28 beq- cr7,ffc67e14 <_rename_r+0x3a8> <== NOT EXECUTED
rtems_filesystem_freenode( &old_parent_loc );
ffc67df0: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED
ffc67df4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc67df8: 41 9e 00 1c beq- cr7,ffc67e14 <_rename_r+0x3a8> <== NOT EXECUTED
ffc67dfc: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc67e00: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc67e04: 41 9e 00 10 beq- cr7,ffc67e14 <_rename_r+0x3a8> <== NOT EXECUTED
ffc67e08: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED
ffc67e0c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc67e10: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( result );
ffc67e14: 4b fe 4d 65 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc67e18: 3b 60 ff ff li r27,-1 <== NOT EXECUTED
ffc67e1c: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED
ffc67e20: 4b ff fe 94 b ffc67cb4 <_rename_r+0x248> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name );
if ( result != 0 ) {
rtems_filesystem_freenode( &new_parent_loc );
ffc67e24: 81 21 00 40 lwz r9,64(r1) <== NOT EXECUTED
ffc67e28: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc67e2c: 41 9e 00 1c beq- cr7,ffc67e48 <_rename_r+0x3dc> <== NOT EXECUTED
ffc67e30: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc67e34: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc67e38: 41 9e 00 10 beq- cr7,ffc67e48 <_rename_r+0x3dc> <== NOT EXECUTED
ffc67e3c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc67e40: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc67e44: 4e 80 04 21 bctrl <== NOT EXECUTED
if ( free_old_parentloc )
ffc67e48: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED
ffc67e4c: 41 9e 00 28 beq- cr7,ffc67e74 <_rename_r+0x408> <== NOT EXECUTED
rtems_filesystem_freenode( &old_parent_loc );
ffc67e50: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED
ffc67e54: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc67e58: 41 9e 00 1c beq- cr7,ffc67e74 <_rename_r+0x408> <== NOT EXECUTED
ffc67e5c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc67e60: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc67e64: 41 9e 00 10 beq- cr7,ffc67e74 <_rename_r+0x408> <== NOT EXECUTED
ffc67e68: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED
ffc67e6c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc67e70: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_filesystem_freenode( &old_loc );
ffc67e74: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED
ffc67e78: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc67e7c: 41 9e 00 1c beq- cr7,ffc67e98 <_rename_r+0x42c> <== NOT EXECUTED
ffc67e80: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc67e84: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc67e88: 41 9e 00 10 beq- cr7,ffc67e98 <_rename_r+0x42c> <== NOT EXECUTED
ffc67e8c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc67e90: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc67e94: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( result );
ffc67e98: 4b fe 4c e1 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc67e9c: 3b 60 ff ff li r27,-1 <== NOT EXECUTED
ffc67ea0: 93 a3 00 00 stw r29,0(r3) <== NOT EXECUTED
ffc67ea4: 4b ff fe 10 b ffc67cb4 <_rename_r+0x248> <== NOT EXECUTED
rtems_filesystem_freenode( &old_loc );
rtems_set_errno_and_return_minus_one( EXDEV );
}
if ( !new_parent_loc.ops->rename_h ) {
rtems_filesystem_freenode( &new_parent_loc );
ffc67ea8: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc67eac: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc67eb0: 41 9e 00 10 beq- cr7,ffc67ec0 <_rename_r+0x454> <== NOT EXECUTED
ffc67eb4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc67eb8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc67ebc: 4e 80 04 21 bctrl <== NOT EXECUTED
if ( free_old_parentloc )
ffc67ec0: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED
ffc67ec4: 41 9e 00 28 beq- cr7,ffc67eec <_rename_r+0x480> <== NOT EXECUTED
rtems_filesystem_freenode( &old_parent_loc );
ffc67ec8: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED
ffc67ecc: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc67ed0: 41 9e 00 1c beq- cr7,ffc67eec <_rename_r+0x480> <== NOT EXECUTED
ffc67ed4: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc67ed8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc67edc: 41 9e 00 10 beq- cr7,ffc67eec <_rename_r+0x480> <== NOT EXECUTED
ffc67ee0: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED
ffc67ee4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc67ee8: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_filesystem_freenode( &old_loc );
ffc67eec: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED
ffc67ef0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc67ef4: 41 9e 00 1c beq- cr7,ffc67f10 <_rename_r+0x4a4> <== NOT EXECUTED
ffc67ef8: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc67efc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc67f00: 41 9e 00 10 beq- cr7,ffc67f10 <_rename_r+0x4a4> <== NOT EXECUTED
ffc67f04: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc67f08: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc67f0c: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc67f10: 4b fe 4c 69 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc67f14: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc67f18: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc67f1c: 3b 60 ff ff li r27,-1 <== NOT EXECUTED
ffc67f20: 4b ff fd 94 b ffc67cb4 <_rename_r+0x248> <== NOT EXECUTED
old_parent_pathlen = rtems_filesystem_dirname ( old );
if ( old_parent_pathlen == 0 )
rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );
else {
result = rtems_filesystem_evaluate_path( old, old_parent_pathlen,
ffc67f24: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc67f28: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED
ffc67f2c: 38 a0 00 02 li r5,2 <== NOT EXECUTED
ffc67f30: 38 c1 00 20 addi r6,r1,32 <== NOT EXECUTED
ffc67f34: 38 e0 00 00 li r7,0 <== NOT EXECUTED
ffc67f38: 4b f9 f9 55 bl ffc0788c <rtems_filesystem_evaluate_path><== NOT EXECUTED
RTEMS_LIBIO_PERMS_WRITE,
&old_parent_loc,
false );
if ( result != 0 )
ffc67f3c: 3b 80 00 01 li r28,1 <== NOT EXECUTED
ffc67f40: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc67f44: 3b 60 ff ff li r27,-1 <== NOT EXECUTED
ffc67f48: 41 9e fb ac beq+ cr7,ffc67af4 <_rename_r+0x88> <== NOT EXECUTED
ffc67f4c: 4b ff fd 68 b ffc67cb4 <_rename_r+0x248> <== NOT EXECUTED
ffc094e4 <_stat_r>:
struct _reent *ptr __attribute__((unused)),
const char *path,
struct stat *buf
)
{
return _STAT_NAME( path, buf );
ffc094e4: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED
ffc094e8: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED
ffc094ec: 4b ff fe c0 b ffc093ac <stat> <== NOT EXECUTED
ffc11ac4 <_unlink_r>:
int _unlink_r(
struct _reent *ptr __attribute__((unused)),
const char *path
)
{
return unlink( path );
ffc11ac4: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED
ffc11ac8: 4b ff fc f8 b ffc117c0 <unlink> <== NOT EXECUTED
ffc2e110 <chdir>:
#include <rtems/seterr.h>
int chdir(
const char *pathname
)
{
ffc2e110: 94 21 ff d0 stwu r1,-48(r1)
ffc2e114: 7c 08 02 a6 mflr r0
ffc2e118: 93 c1 00 28 stw r30,40(r1)
rtems_filesystem_location_info_t loc;
int result;
if ( !pathname )
ffc2e11c: 7c 7e 1b 79 mr. r30,r3
#include <rtems/seterr.h>
int chdir(
const char *pathname
)
{
ffc2e120: 90 01 00 34 stw r0,52(r1)
ffc2e124: 93 e1 00 2c stw r31,44(r1)
rtems_filesystem_location_info_t loc;
int result;
if ( !pathname )
ffc2e128: 41 82 00 c8 beq- ffc2e1f0 <chdir+0xe0>
/*
* Get the node where we wish to go.
*/
result = rtems_filesystem_evaluate_path(
pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true );
ffc2e12c: 48 02 67 b9 bl ffc548e4 <strlen>
rtems_set_errno_and_return_minus_one( EFAULT );
/*
* Get the node where we wish to go.
*/
result = rtems_filesystem_evaluate_path(
ffc2e130: 3b e1 00 08 addi r31,r1,8
pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true );
ffc2e134: 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(
ffc2e138: 38 a0 00 01 li r5,1
ffc2e13c: 7f c3 f3 78 mr r3,r30
ffc2e140: 7f e6 fb 78 mr r6,r31
ffc2e144: 38 e0 00 01 li r7,1
ffc2e148: 4b fd 97 45 bl ffc0788c <rtems_filesystem_evaluate_path>
pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true );
if ( result != 0 )
ffc2e14c: 2f 83 00 00 cmpwi cr7,r3,0
ffc2e150: 38 60 ff ff li r3,-1
ffc2e154: 40 9e 00 84 bne- cr7,ffc2e1d8 <chdir+0xc8>
return -1;
/*
* Verify you can change directory into this node.
*/
if ( !loc.ops->node_type_h ) {
ffc2e158: 81 21 00 14 lwz r9,20(r1)
ffc2e15c: 80 09 00 10 lwz r0,16(r9)
ffc2e160: 2f 80 00 00 cmpwi cr7,r0,0
ffc2e164: 41 9e 00 ec beq- cr7,ffc2e250 <chdir+0x140>
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
ffc2e168: 7f e3 fb 78 mr r3,r31
ffc2e16c: 7c 09 03 a6 mtctr r0
ffc2e170: 4e 80 04 21 bctrl
ffc2e174: 2f 83 00 01 cmpwi cr7,r3,1
ffc2e178: 40 9e 00 a0 bne- cr7,ffc2e218 <chdir+0x108>
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTDIR );
}
rtems_filesystem_freenode( &rtems_filesystem_current );
ffc2e17c: 3f e0 00 00 lis r31,0
ffc2e180: 81 3f 34 ec lwz r9,13548(r31)
ffc2e184: 81 69 00 10 lwz r11,16(r9)
ffc2e188: 2f 8b 00 00 cmpwi cr7,r11,0
ffc2e18c: 41 9e 00 20 beq- cr7,ffc2e1ac <chdir+0x9c>
ffc2e190: 80 0b 00 1c lwz r0,28(r11)
ffc2e194: 2f 80 00 00 cmpwi cr7,r0,0
ffc2e198: 41 9e 00 14 beq- cr7,ffc2e1ac <chdir+0x9c>
ffc2e19c: 38 69 00 04 addi r3,r9,4
ffc2e1a0: 7c 09 03 a6 mtctr r0
ffc2e1a4: 4e 80 04 21 bctrl
ffc2e1a8: 81 3f 34 ec lwz r9,13548(r31)
rtems_filesystem_current = loc;
ffc2e1ac: 80 01 00 14 lwz r0,20(r1)
ffc2e1b0: 38 60 00 00 li r3,0
ffc2e1b4: 81 41 00 0c lwz r10,12(r1)
ffc2e1b8: 81 61 00 10 lwz r11,16(r1)
ffc2e1bc: 81 01 00 08 lwz r8,8(r1)
ffc2e1c0: 91 49 00 08 stw r10,8(r9)
ffc2e1c4: 91 09 00 04 stw r8,4(r9)
ffc2e1c8: 91 69 00 0c stw r11,12(r9)
ffc2e1cc: 90 09 00 10 stw r0,16(r9)
ffc2e1d0: 80 01 00 18 lwz r0,24(r1)
ffc2e1d4: 90 09 00 14 stw r0,20(r9)
return 0;
}
ffc2e1d8: 80 01 00 34 lwz r0,52(r1)
ffc2e1dc: 83 c1 00 28 lwz r30,40(r1)
ffc2e1e0: 7c 08 03 a6 mtlr r0
ffc2e1e4: 83 e1 00 2c lwz r31,44(r1)
ffc2e1e8: 38 21 00 30 addi r1,r1,48
ffc2e1ec: 4e 80 00 20 blr
{
rtems_filesystem_location_info_t loc;
int result;
if ( !pathname )
rtems_set_errno_and_return_minus_one( EFAULT );
ffc2e1f0: 48 01 e9 89 bl ffc4cb78 <__errno>
ffc2e1f4: 38 00 00 0e li r0,14
ffc2e1f8: 90 03 00 00 stw r0,0(r3)
ffc2e1fc: 38 60 ff ff li r3,-1
rtems_filesystem_freenode( &rtems_filesystem_current );
rtems_filesystem_current = loc;
return 0;
}
ffc2e200: 80 01 00 34 lwz r0,52(r1)
ffc2e204: 83 c1 00 28 lwz r30,40(r1)
ffc2e208: 7c 08 03 a6 mtlr r0
ffc2e20c: 83 e1 00 2c lwz r31,44(r1)
ffc2e210: 38 21 00 30 addi r1,r1,48
ffc2e214: 4e 80 00 20 blr
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
rtems_filesystem_freenode( &loc );
ffc2e218: 81 21 00 14 lwz r9,20(r1)
ffc2e21c: 2f 89 00 00 cmpwi cr7,r9,0
ffc2e220: 41 9e 00 1c beq- cr7,ffc2e23c <chdir+0x12c>
ffc2e224: 80 09 00 1c lwz r0,28(r9)
ffc2e228: 2f 80 00 00 cmpwi cr7,r0,0
ffc2e22c: 41 9e 00 10 beq- cr7,ffc2e23c <chdir+0x12c>
ffc2e230: 7f e3 fb 78 mr r3,r31
ffc2e234: 7c 09 03 a6 mtctr r0
ffc2e238: 4e 80 04 21 bctrl
rtems_set_errno_and_return_minus_one( ENOTDIR );
ffc2e23c: 48 01 e9 3d bl ffc4cb78 <__errno>
ffc2e240: 38 00 00 14 li r0,20
ffc2e244: 90 03 00 00 stw r0,0(r3)
ffc2e248: 38 60 ff ff li r3,-1
ffc2e24c: 4b ff ff 8c b ffc2e1d8 <chdir+0xc8>
/*
* Verify you can change directory into this node.
*/
if ( !loc.ops->node_type_h ) {
rtems_filesystem_freenode( &loc );
ffc2e250: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2e254: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2e258: 41 9e 00 10 beq- cr7,ffc2e268 <chdir+0x158> <== NOT EXECUTED
ffc2e25c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc2e260: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2e264: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc2e268: 48 01 e9 11 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc2e26c: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc2e270: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc2e274: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc2e278: 4b ff ff 60 b ffc2e1d8 <chdir+0xc8> <== NOT EXECUTED
ffc07494 <chmod>:
int chmod(
const char *path,
mode_t mode
)
{
ffc07494: 94 21 ff c8 stwu r1,-56(r1)
ffc07498: 7c 08 02 a6 mflr r0
ffc0749c: 93 a1 00 2c stw r29,44(r1)
ffc074a0: 7c 7d 1b 78 mr r29,r3
ffc074a4: 90 01 00 3c stw r0,60(r1)
ffc074a8: 93 c1 00 30 stw r30,48(r1)
ffc074ac: 7c 9e 23 78 mr r30,r4
ffc074b0: 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 );
ffc074b4: 48 04 d4 31 bl ffc548e4 <strlen>
ffc074b8: 3b e1 00 08 addi r31,r1,8
ffc074bc: 7c 64 1b 78 mr r4,r3
ffc074c0: 38 a0 00 00 li r5,0
ffc074c4: 7f a3 eb 78 mr r3,r29
ffc074c8: 7f e6 fb 78 mr r6,r31
ffc074cc: 38 e0 00 01 li r7,1
ffc074d0: 48 00 03 bd bl ffc0788c <rtems_filesystem_evaluate_path>
if ( status != 0 )
ffc074d4: 3b a0 ff ff li r29,-1
ffc074d8: 2f 83 00 00 cmpwi cr7,r3,0
ffc074dc: 40 9e 00 54 bne- cr7,ffc07530 <chmod+0x9c>
return -1;
if ( !loc.handlers ){
ffc074e0: 81 21 00 10 lwz r9,16(r1)
ffc074e4: 2f 89 00 00 cmpwi cr7,r9,0
ffc074e8: 41 9e 00 a0 beq- cr7,ffc07588 <chmod+0xf4>
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( EBADF );
}
if ( !loc.handlers->fchmod_h ){
ffc074ec: 80 09 00 1c lwz r0,28(r9)
ffc074f0: 2f 80 00 00 cmpwi cr7,r0,0
ffc074f4: 41 9e 00 5c beq- cr7,ffc07550 <chmod+0xbc>
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.handlers->fchmod_h)( &loc, mode );
ffc074f8: 7f c4 f3 78 mr r4,r30
ffc074fc: 7c 09 03 a6 mtctr r0
ffc07500: 7f e3 fb 78 mr r3,r31
ffc07504: 4e 80 04 21 bctrl
rtems_filesystem_freenode( &loc );
ffc07508: 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 );
ffc0750c: 7c 7d 1b 78 mr r29,r3
rtems_filesystem_freenode( &loc );
ffc07510: 2f 89 00 00 cmpwi cr7,r9,0
ffc07514: 41 9e 00 1c beq- cr7,ffc07530 <chmod+0x9c>
ffc07518: 80 09 00 1c lwz r0,28(r9)
ffc0751c: 2f 80 00 00 cmpwi cr7,r0,0
ffc07520: 41 9e 00 10 beq- cr7,ffc07530 <chmod+0x9c>
ffc07524: 7f e3 fb 78 mr r3,r31
ffc07528: 7c 09 03 a6 mtctr r0
ffc0752c: 4e 80 04 21 bctrl
return result;
}
ffc07530: 80 01 00 3c lwz r0,60(r1)
ffc07534: 7f a3 eb 78 mr r3,r29
ffc07538: 83 c1 00 30 lwz r30,48(r1)
ffc0753c: 7c 08 03 a6 mtlr r0
ffc07540: 83 a1 00 2c lwz r29,44(r1)
ffc07544: 83 e1 00 34 lwz r31,52(r1)
ffc07548: 38 21 00 38 addi r1,r1,56
ffc0754c: 4e 80 00 20 blr
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( EBADF );
}
if ( !loc.handlers->fchmod_h ){
rtems_filesystem_freenode( &loc );
ffc07550: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED
ffc07554: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc07558: 41 9e 00 1c beq- cr7,ffc07574 <chmod+0xe0> <== NOT EXECUTED
ffc0755c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc07560: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc07564: 41 9e 00 10 beq- cr7,ffc07574 <chmod+0xe0> <== NOT EXECUTED
ffc07568: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc0756c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc07570: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc07574: 48 04 56 05 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc07578: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc0757c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc07580: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
ffc07584: 4b ff ff ac b ffc07530 <chmod+0x9c> <== NOT EXECUTED
status = rtems_filesystem_evaluate_path( path, strlen( path ), 0, &loc, true );
if ( status != 0 )
return -1;
if ( !loc.handlers ){
rtems_filesystem_freenode( &loc );
ffc07588: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED
ffc0758c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc07590: 41 9e 00 1c beq- cr7,ffc075ac <chmod+0x118> <== NOT EXECUTED
ffc07594: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc07598: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0759c: 41 9e 00 10 beq- cr7,ffc075ac <chmod+0x118> <== NOT EXECUTED
ffc075a0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc075a4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc075a8: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EBADF );
ffc075ac: 48 04 55 cd bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc075b0: 38 00 00 09 li r0,9 <== NOT EXECUTED
ffc075b4: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc075b8: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
ffc075bc: 4b ff ff 74 b ffc07530 <chmod+0x9c> <== NOT EXECUTED
ffc2e27c <chown>:
int chown(
const char *path,
uid_t owner,
gid_t group
)
{
ffc2e27c: 94 21 ff c8 stwu r1,-56(r1)
ffc2e280: 7c 08 02 a6 mflr r0
ffc2e284: 93 81 00 28 stw r28,40(r1)
ffc2e288: 7c 7c 1b 78 mr r28,r3
ffc2e28c: 90 01 00 3c stw r0,60(r1)
ffc2e290: 93 a1 00 2c stw r29,44(r1)
ffc2e294: 7c 9d 23 78 mr r29,r4
ffc2e298: 93 c1 00 30 stw r30,48(r1)
ffc2e29c: 7c be 2b 78 mr r30,r5
ffc2e2a0: 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 ) )
ffc2e2a4: 48 02 66 41 bl ffc548e4 <strlen>
ffc2e2a8: 3b e1 00 08 addi r31,r1,8
ffc2e2ac: 7c 64 1b 78 mr r4,r3
ffc2e2b0: 38 a0 00 00 li r5,0
ffc2e2b4: 7f 83 e3 78 mr r3,r28
ffc2e2b8: 7f e6 fb 78 mr r6,r31
ffc2e2bc: 38 e0 00 01 li r7,1
ffc2e2c0: 4b fd 95 cd bl ffc0788c <rtems_filesystem_evaluate_path>
ffc2e2c4: 3b 80 ff ff li r28,-1
ffc2e2c8: 2f 83 00 00 cmpwi cr7,r3,0
ffc2e2cc: 40 9e 00 50 bne- cr7,ffc2e31c <chown+0xa0>
return -1;
if ( !loc.ops->chown_h ) {
ffc2e2d0: 81 21 00 14 lwz r9,20(r1)
ffc2e2d4: 80 09 00 18 lwz r0,24(r9)
ffc2e2d8: 2f 80 00 00 cmpwi cr7,r0,0
ffc2e2dc: 41 9e 00 64 beq- cr7,ffc2e340 <chown+0xc4>
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->chown_h)( &loc, owner, group );
ffc2e2e0: 7f a4 eb 78 mr r4,r29
ffc2e2e4: 7c 09 03 a6 mtctr r0
ffc2e2e8: 7f c5 f3 78 mr r5,r30
ffc2e2ec: 7f e3 fb 78 mr r3,r31
ffc2e2f0: 4e 80 04 21 bctrl
rtems_filesystem_freenode( &loc );
ffc2e2f4: 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 );
ffc2e2f8: 7c 7c 1b 78 mr r28,r3
rtems_filesystem_freenode( &loc );
ffc2e2fc: 2f 89 00 00 cmpwi cr7,r9,0
ffc2e300: 41 9e 00 1c beq- cr7,ffc2e31c <chown+0xa0>
ffc2e304: 80 09 00 1c lwz r0,28(r9)
ffc2e308: 2f 80 00 00 cmpwi cr7,r0,0
ffc2e30c: 41 9e 00 10 beq- cr7,ffc2e31c <chown+0xa0>
ffc2e310: 7f e3 fb 78 mr r3,r31
ffc2e314: 7c 09 03 a6 mtctr r0
ffc2e318: 4e 80 04 21 bctrl
return result;
}
ffc2e31c: 80 01 00 3c lwz r0,60(r1)
ffc2e320: 7f 83 e3 78 mr r3,r28
ffc2e324: 83 a1 00 2c lwz r29,44(r1)
ffc2e328: 7c 08 03 a6 mtlr r0
ffc2e32c: 83 81 00 28 lwz r28,40(r1)
ffc2e330: 83 c1 00 30 lwz r30,48(r1)
ffc2e334: 83 e1 00 34 lwz r31,52(r1)
ffc2e338: 38 21 00 38 addi r1,r1,56
ffc2e33c: 4e 80 00 20 blr
if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) )
return -1;
if ( !loc.ops->chown_h ) {
rtems_filesystem_freenode( &loc );
ffc2e340: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2e344: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2e348: 41 9e 00 10 beq- cr7,ffc2e358 <chown+0xdc> <== NOT EXECUTED
ffc2e34c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc2e350: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2e354: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc2e358: 48 01 e8 21 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc2e35c: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc2e360: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc2e364: 3b 80 ff ff li r28,-1 <== NOT EXECUTED
ffc2e368: 4b ff ff b4 b ffc2e31c <chown+0xa0> <== NOT EXECUTED
ffc2e36c <chroot>:
#include <rtems/seterr.h>
int chroot(
const char *pathname
)
{
ffc2e36c: 94 21 ff c8 stwu r1,-56(r1)
ffc2e370: 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) {
ffc2e374: 3d 20 00 00 lis r9,0
#include <rtems/seterr.h>
int chroot(
const char *pathname
)
{
ffc2e378: 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) {
ffc2e37c: 3f e0 00 00 lis r31,0
#include <rtems/seterr.h>
int chroot(
const char *pathname
)
{
ffc2e380: 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) {
ffc2e384: 83 df 34 ec lwz r30,13548(r31)
#include <rtems/seterr.h>
int chroot(
const char *pathname
)
{
ffc2e388: 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) {
ffc2e38c: 38 09 63 64 addi r0,r9,25444
ffc2e390: 7f 9e 00 00 cmpw cr7,r30,r0
#include <rtems/seterr.h>
int chroot(
const char *pathname
)
{
ffc2e394: 93 a1 00 2c stw r29,44(r1)
ffc2e398: 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) {
ffc2e39c: 41 9e 00 b0 beq- cr7,ffc2e44c <chroot+0xe0>
rtems_libio_set_private_env(); /* try to set a new private env*/
if (rtems_current_user_env == &rtems_global_user_env) /* not ok */
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = chdir(pathname);
ffc2e3a0: 7f a3 eb 78 mr r3,r29
ffc2e3a4: 4b ff fd 6d bl ffc2e110 <chdir>
if (result) {
ffc2e3a8: 2f 83 00 00 cmpwi cr7,r3,0
ffc2e3ac: 40 9e 00 c4 bne- cr7,ffc2e470 <chroot+0x104>
rtems_set_errno_and_return_minus_one( errno );
}
/* clone the new root location */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
ffc2e3b0: 3c 60 ff c7 lis r3,-57
ffc2e3b4: 38 63 a4 50 addi r3,r3,-23472
ffc2e3b8: 38 80 00 01 li r4,1
ffc2e3bc: 38 a0 00 00 li r5,0
ffc2e3c0: 38 c1 00 08 addi r6,r1,8
ffc2e3c4: 38 e0 00 00 li r7,0
ffc2e3c8: 4b fd 94 c5 bl ffc0788c <rtems_filesystem_evaluate_path>
ffc2e3cc: 2f 83 00 00 cmpwi cr7,r3,0
ffc2e3d0: 40 9e 00 a0 bne- cr7,ffc2e470 <chroot+0x104>
/* our cwd has changed, though - but there is no easy way of return :-( */
rtems_set_errno_and_return_minus_one( errno );
}
rtems_filesystem_freenode(&rtems_filesystem_root);
ffc2e3d4: 81 3f 34 ec lwz r9,13548(r31)
ffc2e3d8: 81 69 00 24 lwz r11,36(r9)
ffc2e3dc: 2f 8b 00 00 cmpwi cr7,r11,0
ffc2e3e0: 41 9e 00 24 beq- cr7,ffc2e404 <chroot+0x98>
ffc2e3e4: 80 0b 00 1c lwz r0,28(r11)
ffc2e3e8: 2f 80 00 00 cmpwi cr7,r0,0
ffc2e3ec: 41 9e 00 18 beq- cr7,ffc2e404 <chroot+0x98>
ffc2e3f0: 38 69 00 18 addi r3,r9,24
ffc2e3f4: 7c 09 03 a6 mtctr r0
ffc2e3f8: 4e 80 04 21 bctrl
ffc2e3fc: 3d 20 00 00 lis r9,0
ffc2e400: 81 29 34 ec lwz r9,13548(r9)
rtems_filesystem_root = loc;
ffc2e404: 80 01 00 14 lwz r0,20(r1)
ffc2e408: 38 60 00 00 li r3,0
ffc2e40c: 81 41 00 0c lwz r10,12(r1)
ffc2e410: 81 61 00 10 lwz r11,16(r1)
ffc2e414: 81 01 00 08 lwz r8,8(r1)
ffc2e418: 91 49 00 1c stw r10,28(r9)
ffc2e41c: 91 09 00 18 stw r8,24(r9)
ffc2e420: 91 69 00 20 stw r11,32(r9)
ffc2e424: 90 09 00 24 stw r0,36(r9)
ffc2e428: 80 01 00 18 lwz r0,24(r1)
ffc2e42c: 90 09 00 28 stw r0,40(r9)
return 0;
}
ffc2e430: 80 01 00 3c lwz r0,60(r1)
ffc2e434: 83 a1 00 2c lwz r29,44(r1)
ffc2e438: 7c 08 03 a6 mtlr r0
ffc2e43c: 83 c1 00 30 lwz r30,48(r1)
ffc2e440: 83 e1 00 34 lwz r31,52(r1)
ffc2e444: 38 21 00 38 addi r1,r1,56
ffc2e448: 4e 80 00 20 blr
int result;
rtems_filesystem_location_info_t loc;
/* an automatic call to new private env the first time */
if (rtems_current_user_env == &rtems_global_user_env) {
rtems_libio_set_private_env(); /* try to set a new private env*/
ffc2e44c: 48 00 1f b9 bl ffc30404 <rtems_libio_set_private_env>
if (rtems_current_user_env == &rtems_global_user_env) /* not ok */
ffc2e450: 80 1f 34 ec lwz r0,13548(r31)
ffc2e454: 7f 80 f0 00 cmpw cr7,r0,r30
ffc2e458: 40 9e ff 48 bne+ cr7,ffc2e3a0 <chroot+0x34>
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc2e45c: 48 01 e7 1d bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc2e460: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc2e464: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc2e468: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc2e46c: 4b ff ff c4 b ffc2e430 <chroot+0xc4> <== NOT EXECUTED
}
/* clone the new root location */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
/* our cwd has changed, though - but there is no easy way of return :-( */
rtems_set_errno_and_return_minus_one( errno );
ffc2e470: 48 01 e7 09 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc2e474: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED
ffc2e478: 48 01 e7 01 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc2e47c: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED
ffc2e480: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc2e484: 90 1f 00 00 stw r0,0(r31) <== NOT EXECUTED
ffc2e488: 4b ff ff a8 b ffc2e430 <chroot+0xc4> <== NOT EXECUTED
ffc0cb90 <devFS_close>:
#include "devfs.h"
int devFS_close(
rtems_libio_t *iop
)
{
ffc0cb90: 94 21 ff e8 stwu r1,-24(r1)
ffc0cb94: 7c 08 02 a6 mflr r0
ffc0cb98: 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;
ffc0cb9c: 38 00 00 00 li r0,0
args.mode = 0;
status = rtems_io_close(
ffc0cba0: 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;
ffc0cba4: 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;
ffc0cba8: 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;
ffc0cbac: 81 23 00 3c lwz r9,60(r3)
args.iop = iop;
ffc0cbb0: 90 61 00 08 stw r3,8(r1)
args.flags = 0;
args.mode = 0;
status = rtems_io_close(
ffc0cbb4: 80 89 00 0c lwz r4,12(r9)
ffc0cbb8: 80 69 00 08 lwz r3,8(r9)
ffc0cbbc: 48 00 0d d1 bl ffc0d98c <rtems_io_close>
np->major,
np->minor,
(void *) &args
);
if ( status ) {
ffc0cbc0: 38 00 00 00 li r0,0
ffc0cbc4: 2f 83 00 00 cmpwi cr7,r3,0
ffc0cbc8: 41 be 00 0c beq+ cr7,ffc0cbd4 <devFS_close+0x44>
return rtems_deviceio_errno(status);
ffc0cbcc: 48 00 01 7d bl ffc0cd48 <rtems_deviceio_errno> <== NOT EXECUTED
ffc0cbd0: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED
}
return 0;
}
ffc0cbd4: 7c 03 03 78 mr r3,r0
ffc0cbd8: 80 01 00 1c lwz r0,28(r1)
ffc0cbdc: 38 21 00 18 addi r1,r1,24
ffc0cbe0: 7c 08 03 a6 mtlr r0
ffc0cbe4: 4e 80 00 20 blr
ffc0cbf4 <devFS_evaluate_path>:
const char *pathname,
int pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc
)
{
ffc0cbf4: 94 21 ff d8 stwu r1,-40(r1)
ffc0cbf8: 7c 08 02 a6 mflr r0
ffc0cbfc: 93 a1 00 1c stw r29,28(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;
ffc0cc00: 83 a6 00 00 lwz r29,0(r6)
const char *pathname,
int pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc
)
{
ffc0cc04: 93 01 00 08 stw r24,8(r1)
ffc0cc08: 7c d8 33 78 mr r24,r6
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)
ffc0cc0c: 2f 9d 00 00 cmpwi cr7,r29,0
const char *pathname,
int pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc
)
{
ffc0cc10: 93 41 00 10 stw r26,16(r1)
ffc0cc14: 7c 7a 1b 78 mr r26,r3
ffc0cc18: 93 81 00 18 stw r28,24(r1)
ffc0cc1c: 7c 9c 23 78 mr r28,r4
ffc0cc20: 90 01 00 2c stw r0,44(r1)
ffc0cc24: 93 21 00 0c stw r25,12(r1)
ffc0cc28: 93 61 00 14 stw r27,20(r1)
ffc0cc2c: 93 c1 00 20 stw r30,32(r1)
ffc0cc30: 93 e1 00 24 stw r31,36(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)
ffc0cc34: 41 9e 01 00 beq- cr7,ffc0cd34 <devFS_evaluate_path+0x140>
rtems_set_errno_and_return_minus_one( EFAULT );
for (i = 0; i < rtems_device_table_size; i++) {
ffc0cc38: 3d 20 00 00 lis r9,0
ffc0cc3c: 83 69 26 70 lwz r27,9840(r9)
}
/* 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 );
ffc0cc40: 38 00 00 00 li r0,0
ffc0cc44: 3b e0 00 00 li r31,0
for (i = 0; i < rtems_device_table_size; i++) {
ffc0cc48: 2f 9b 00 00 cmpwi cr7,r27,0
ffc0cc4c: 41 9e 00 4c beq- cr7,ffc0cc98 <devFS_evaluate_path+0xa4>
if (!device_name_table[i].device_name)
ffc0cc50: 1c 00 00 14 mulli r0,r0,20
ffc0cc54: 7f dd 00 2e lwzx r30,r29,r0
continue;
if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0)
ffc0cc58: 7f 43 d3 78 mr r3,r26
ffc0cc5c: 7f 85 e3 78 mr r5,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)
ffc0cc60: 2f 9e 00 00 cmpwi cr7,r30,0
continue;
if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0)
ffc0cc64: 7f c4 f3 78 mr r4,r30
/* 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++) {
ffc0cc68: 3b ff 00 01 addi r31,r31,1
if (!device_name_table[i].device_name)
ffc0cc6c: 7f 3d 02 14 add r25,r29,r0
ffc0cc70: 41 9e 00 1c beq- cr7,ffc0cc8c <devFS_evaluate_path+0x98>
continue;
if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0)
ffc0cc74: 48 00 30 15 bl ffc0fc88 <strncmp>
ffc0cc78: 2f 83 00 00 cmpwi cr7,r3,0
ffc0cc7c: 40 9e 00 10 bne- cr7,ffc0cc8c <devFS_evaluate_path+0x98>
continue;
if (device_name_table[i].device_name[pathnamelen] != '\0')
ffc0cc80: 7c 1e e0 ae lbzx r0,r30,r28
ffc0cc84: 2f 80 00 00 cmpwi cr7,r0,0
ffc0cc88: 41 9e 00 50 beq- cr7,ffc0ccd8 <devFS_evaluate_path+0xe4>
/* 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++) {
ffc0cc8c: 7f 9b f8 40 cmplw cr7,r27,r31
ffc0cc90: 7f e0 fb 78 mr r0,r31
ffc0cc94: 41 9d ff bc bgt+ cr7,ffc0cc50 <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 );
ffc0cc98: 48 00 1e f1 bl ffc0eb88 <__errno>
ffc0cc9c: 38 00 00 02 li r0,2
ffc0cca0: 90 03 00 00 stw r0,0(r3)
ffc0cca4: 38 60 ff ff li r3,-1
}
ffc0cca8: 80 01 00 2c lwz r0,44(r1)
ffc0ccac: 83 01 00 08 lwz r24,8(r1)
ffc0ccb0: 7c 08 03 a6 mtlr r0
ffc0ccb4: 83 21 00 0c lwz r25,12(r1)
ffc0ccb8: 83 41 00 10 lwz r26,16(r1)
ffc0ccbc: 83 61 00 14 lwz r27,20(r1)
ffc0ccc0: 83 81 00 18 lwz r28,24(r1)
ffc0ccc4: 83 a1 00 1c lwz r29,28(r1)
ffc0ccc8: 83 c1 00 20 lwz r30,32(r1)
ffc0cccc: 83 e1 00 24 lwz r31,36(r1)
ffc0ccd0: 38 21 00 28 addi r1,r1,40
ffc0ccd4: 4e 80 00 20 blr
/* 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;
ffc0ccd8: 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];
ffc0ccdc: 93 38 00 00 stw r25,0(r24)
pathloc->handlers = &devFS_file_handlers;
pathloc->ops = &devFS_ops;
pathloc->mt_entry = rtems_filesystem_root.mt_entry;
ffc0cce0: 81 29 26 b8 lwz r9,9912(r9)
ffc0cce4: 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;
ffc0cce8: 3d 20 00 00 lis r9,0
pathloc->ops = &devFS_ops;
pathloc->mt_entry = rtems_filesystem_root.mt_entry;
ffc0ccec: 90 18 00 10 stw r0,16(r24)
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;
ffc0ccf0: 38 09 21 48 addi r0,r9,8520
pathloc->ops = &devFS_ops;
ffc0ccf4: 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;
ffc0ccf8: 90 18 00 08 stw r0,8(r24)
pathloc->ops = &devFS_ops;
ffc0ccfc: 38 09 21 80 addi r0,r9,8576
ffc0cd00: 90 18 00 0c stw r0,12(r24)
return 0;
}
/* no such file or directory */
rtems_set_errno_and_return_minus_one( ENOENT );
}
ffc0cd04: 80 01 00 2c lwz r0,44(r1)
ffc0cd08: 83 01 00 08 lwz r24,8(r1)
ffc0cd0c: 7c 08 03 a6 mtlr r0
ffc0cd10: 83 21 00 0c lwz r25,12(r1)
ffc0cd14: 83 41 00 10 lwz r26,16(r1)
ffc0cd18: 83 61 00 14 lwz r27,20(r1)
ffc0cd1c: 83 81 00 18 lwz r28,24(r1)
ffc0cd20: 83 a1 00 1c lwz r29,28(r1)
ffc0cd24: 83 c1 00 20 lwz r30,32(r1)
ffc0cd28: 83 e1 00 24 lwz r31,36(r1)
ffc0cd2c: 38 21 00 28 addi r1,r1,40
ffc0cd30: 4e 80 00 20 blr
}
/* 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 );
ffc0cd34: 48 00 1e 55 bl ffc0eb88 <__errno> <== NOT EXECUTED
ffc0cd38: 38 00 00 0e li r0,14 <== NOT EXECUTED
ffc0cd3c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc0cd40: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc0cd44: 4b ff ff c0 b ffc0cd04 <devFS_evaluate_path+0x110> <== NOT EXECUTED
ffc03ad4 <devFS_initialize>:
int devFS_initialize(
rtems_filesystem_mount_table_entry_t *temp_mt_entry
)
{
ffc03ad4: 94 21 ff e8 stwu r1,-24(r1)
ffc03ad8: 7c 08 02 a6 mflr r0
ffc03adc: 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(
ffc03ae0: 3f a0 00 00 lis r29,0
int devFS_initialize(
rtems_filesystem_mount_table_entry_t *temp_mt_entry
)
{
ffc03ae4: 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(
ffc03ae8: 80 1d 26 70 lwz r0,9840(r29)
int devFS_initialize(
rtems_filesystem_mount_table_entry_t *temp_mt_entry
)
{
ffc03aec: 93 e1 00 14 stw r31,20(r1)
ffc03af0: 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(
ffc03af4: 1c 60 00 14 mulli r3,r0,20
int devFS_initialize(
rtems_filesystem_mount_table_entry_t *temp_mt_entry
)
{
ffc03af8: 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(
ffc03afc: 48 00 8f ad bl ffc0caa8 <_Workspace_Allocate>
sizeof( rtems_device_name_t ) * ( rtems_device_table_size )
);
/* no memory for device filesystem */
if (!device_name_table)
ffc03b00: 7c 7e 1b 79 mr. r30,r3
ffc03b04: 41 82 00 4c beq- ffc03b50 <devFS_initialize+0x7c>
rtems_set_errno_and_return_minus_one( ENOMEM );
memset(
ffc03b08: 80 bd 26 70 lwz r5,9840(r29)
ffc03b0c: 38 80 00 00 li r4,0
ffc03b10: 1c a5 00 14 mulli r5,r5,20
ffc03b14: 48 00 bc 4d bl ffc0f760 <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;
ffc03b18: 3d 20 00 00 lis r9,0
ffc03b1c: 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;
ffc03b20: 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;
ffc03b24: 38 09 00 38 addi r0,r9,56
ffc03b28: 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;
ffc03b2c: 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;
ffc03b30: 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;
}
ffc03b34: 80 01 00 1c lwz r0,28(r1)
ffc03b38: 83 a1 00 0c lwz r29,12(r1)
ffc03b3c: 7c 08 03 a6 mtlr r0
ffc03b40: 83 c1 00 10 lwz r30,16(r1)
ffc03b44: 83 e1 00 14 lwz r31,20(r1)
ffc03b48: 38 21 00 18 addi r1,r1,24
ffc03b4c: 4e 80 00 20 blr
sizeof( rtems_device_name_t ) * ( rtems_device_table_size )
);
/* no memory for device filesystem */
if (!device_name_table)
rtems_set_errno_and_return_minus_one( ENOMEM );
ffc03b50: 48 00 b0 39 bl ffc0eb88 <__errno> <== NOT EXECUTED
ffc03b54: 38 00 00 0c li r0,12 <== NOT EXECUTED
ffc03b58: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc03b5c: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc03b60: 4b ff ff d4 b ffc03b34 <devFS_initialize+0x60> <== NOT EXECUTED
ffc03d58 <devFS_ioctl>:
int devFS_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
ffc03d58: 94 21 ff e8 stwu r1,-24(r1)
ffc03d5c: 7c 08 02 a6 mflr r0
ffc03d60: 7c 69 1b 78 mr r9,r3
ffc03d64: 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;
ffc03d68: 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;
ffc03d6c: 81 63 00 3c lwz r11,60(r3)
args.iop = iop;
args.command = command;
args.buffer = buffer;
ffc03d70: 90 a1 00 10 stw r5,16(r1)
status = rtems_io_control(
ffc03d74: 38 a1 00 08 addi r5,r1,8
ffc03d78: 80 8b 00 0c lwz r4,12(r11)
ffc03d7c: 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;
ffc03d80: 91 21 00 08 stw r9,8(r1)
args.command = command;
args.buffer = buffer;
status = rtems_io_control(
ffc03d84: 48 00 52 71 bl ffc08ff4 <rtems_io_control>
np->major,
np->minor,
(void *) &args
);
if ( status )
ffc03d88: 2f 83 00 00 cmpwi cr7,r3,0
ffc03d8c: 40 9e 00 18 bne- cr7,ffc03da4 <devFS_ioctl+0x4c>
return rtems_deviceio_errno(status);
return args.ioctl_return;
}
ffc03d90: 80 01 00 1c lwz r0,28(r1)
);
if ( status )
return rtems_deviceio_errno(status);
return args.ioctl_return;
ffc03d94: 80 61 00 14 lwz r3,20(r1)
}
ffc03d98: 38 21 00 18 addi r1,r1,24
ffc03d9c: 7c 08 03 a6 mtlr r0
ffc03da0: 4e 80 00 20 blr
np->minor,
(void *) &args
);
if ( status )
return rtems_deviceio_errno(status);
ffc03da4: 48 00 8f a5 bl ffc0cd48 <rtems_deviceio_errno> <== NOT EXECUTED
return args.ioctl_return;
}
ffc03da8: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED
ffc03dac: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED
ffc03db0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc03db4: 4e 80 00 20 blr <== NOT EXECUTED
ffc03b64 <devFS_mknod>:
const char *path,
mode_t mode,
dev_t dev,
rtems_filesystem_location_info_t *pathloc
)
{
ffc03b64: 94 21 ff d8 stwu r1,-40(r1)
ffc03b68: 7c 08 02 a6 mflr r0
ffc03b6c: 93 81 00 18 stw r28,24(r1)
ffc03b70: 7c dc 33 78 mr r28,r6
ffc03b74: 93 a1 00 1c stw r29,28(r1)
ffc03b78: 7c bd 2b 78 mr r29,r5
ffc03b7c: 93 c1 00 20 stw r30,32(r1)
ffc03b80: 7c 9e 23 78 mr r30,r4
ffc03b84: 93 e1 00 24 stw r31,36(r1)
ffc03b88: 7c 7f 1b 78 mr r31,r3
ffc03b8c: 90 01 00 2c stw r0,44(r1)
ffc03b90: 93 01 00 08 stw r24,8(r1)
ffc03b94: 93 21 00 0c stw r25,12(r1)
ffc03b98: 93 41 00 10 stw r26,16(r1)
ffc03b9c: 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') &&
ffc03ba0: 88 03 00 00 lbz r0,0(r3)
ffc03ba4: 2f 80 00 64 cmpwi cr7,r0,100
ffc03ba8: 41 9e 01 40 beq- cr7,ffc03ce8 <devFS_mknod+0x184>
(path[2] == 'v') && (path[3] == '\0'))
return 0;
/* must be a character device or a block device */
if (!S_ISBLK(mode) && !S_ISCHR(mode))
ffc03bac: 57 c0 04 26 rlwinm r0,r30,0,16,19
ffc03bb0: 2f 80 60 00 cmpwi cr7,r0,24576
ffc03bb4: 41 9e 00 0c beq- cr7,ffc03bc0 <devFS_mknod+0x5c>
ffc03bb8: 2f 80 20 00 cmpwi cr7,r0,8192
ffc03bbc: 40 9e 01 58 bne- cr7,ffc03d14 <devFS_mknod+0x1b0>
rtems_set_errno_and_return_minus_one( EINVAL );
else
rtems_filesystem_split_dev_t(dev, major, minor);
/* Find an empty slot in device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
ffc03bc0: 83 47 00 00 lwz r26,0(r7)
if (!device_name_table)
ffc03bc4: 2f 9a 00 00 cmpwi cr7,r26,0
ffc03bc8: 41 9e 01 74 beq- cr7,ffc03d3c <devFS_mknod+0x1d8>
rtems_set_errno_and_return_minus_one( EFAULT );
for (slot = -1, i = 0; i < rtems_device_table_size; i++){
ffc03bcc: 3d 20 00 00 lis r9,0
ffc03bd0: 83 29 26 70 lwz r25,9840(r9)
ffc03bd4: 2f 99 00 00 cmpwi cr7,r25,0
ffc03bd8: 41 9e 01 50 beq- cr7,ffc03d28 <devFS_mknod+0x1c4>
rtems_filesystem_split_dev_t(dev, major, minor);
/* Find an empty slot in device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
if (!device_name_table)
rtems_set_errno_and_return_minus_one( EFAULT );
ffc03bdc: 38 00 00 00 li r0,0
ffc03be0: 3b 00 ff ff li r24,-1
ffc03be4: 3b 60 00 00 li r27,0
ffc03be8: 48 00 00 20 b ffc03c08 <devFS_mknod+0xa4>
for (slot = -1, i = 0; i < rtems_device_table_size; i++){
if (device_name_table[i].device_name == NULL)
slot = i;
else
if (strcmp(path, device_name_table[i].device_name) == 0)
ffc03bec: 48 00 be e1 bl ffc0facc <strcmp> <== NOT EXECUTED
ffc03bf0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc03bf4: 41 9e 00 b4 beq- cr7,ffc03ca8 <devFS_mknod+0x144> <== NOT EXECUTED
/* 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++){
ffc03bf8: 3b 7b 00 01 addi r27,r27,1 <== NOT EXECUTED
ffc03bfc: 7f 9b c8 40 cmplw cr7,r27,r25 <== NOT EXECUTED
ffc03c00: 7f 60 db 78 mr r0,r27 <== NOT EXECUTED
ffc03c04: 40 9c 00 30 bge- cr7,ffc03c34 <devFS_mknod+0xd0> <== NOT EXECUTED
if (device_name_table[i].device_name == NULL)
ffc03c08: 1c 00 00 14 mulli r0,r0,20
ffc03c0c: 7c 1a 00 2e lwzx r0,r26,r0
slot = i;
else
if (strcmp(path, device_name_table[i].device_name) == 0)
ffc03c10: 7f e3 fb 78 mr r3,r31
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)
ffc03c14: 2f 80 00 00 cmpwi cr7,r0,0
slot = i;
else
if (strcmp(path, device_name_table[i].device_name) == 0)
ffc03c18: 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)
ffc03c1c: 40 9e ff d0 bne+ cr7,ffc03bec <devFS_mknod+0x88>
slot = i;
else
if (strcmp(path, device_name_table[i].device_name) == 0)
rtems_set_errno_and_return_minus_one( EEXIST );
ffc03c20: 7f 78 db 78 mr r24,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++){
ffc03c24: 3b 7b 00 01 addi r27,r27,1
ffc03c28: 7f 9b c8 40 cmplw cr7,r27,r25
ffc03c2c: 7f 60 db 78 mr r0,r27
ffc03c30: 41 9c ff d8 blt+ cr7,ffc03c08 <devFS_mknod+0xa4>
else
if (strcmp(path, device_name_table[i].device_name) == 0)
rtems_set_errno_and_return_minus_one( EEXIST );
}
if (slot == -1)
ffc03c34: 2f 98 ff ff cmpwi cr7,r24,-1
ffc03c38: 41 9e 00 f0 beq- cr7,ffc03d28 <devFS_mknod+0x1c4>
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc03c3c: 7f 60 00 a6 mfmsr r27
ffc03c40: 7c 10 42 a6 mfsprg r0,0
ffc03c44: 7f 60 00 78 andc r0,r27,r0
ffc03c48: 7c 00 01 24 mtmsr r0
rtems_set_errno_and_return_minus_one( ENOMEM );
_ISR_Disable(level);
device_name_table[slot].device_name = (char *)path;
ffc03c4c: 1f 18 00 14 mulli r24,r24,20
ffc03c50: 7f fa c1 2e stwx r31,r26,r24
device_name_table[slot].device_name_length = strlen(path);
ffc03c54: 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;
ffc03c58: 7f 5a c2 14 add r26,r26,r24
device_name_table[slot].device_name_length = strlen(path);
ffc03c5c: 48 00 bf 91 bl ffc0fbec <strlen>
device_name_table[slot].major = major;
device_name_table[slot].minor = minor;
device_name_table[slot].mode = mode;
ffc03c60: 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);
ffc03c64: 90 7a 00 04 stw r3,4(r26)
device_name_table[slot].major = major;
ffc03c68: 93 ba 00 08 stw r29,8(r26)
device_name_table[slot].minor = minor;
ffc03c6c: 93 9a 00 0c stw r28,12(r26)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc03c70: 7f 60 01 24 mtmsr r27
ffc03c74: 38 60 00 00 li r3,0
device_name_table[slot].mode = mode;
_ISR_Enable(level);
return 0;
}
ffc03c78: 80 01 00 2c lwz r0,44(r1)
ffc03c7c: 83 01 00 08 lwz r24,8(r1)
ffc03c80: 7c 08 03 a6 mtlr r0
ffc03c84: 83 21 00 0c lwz r25,12(r1)
ffc03c88: 83 41 00 10 lwz r26,16(r1)
ffc03c8c: 83 61 00 14 lwz r27,20(r1)
ffc03c90: 83 81 00 18 lwz r28,24(r1)
ffc03c94: 83 a1 00 1c lwz r29,28(r1)
ffc03c98: 83 c1 00 20 lwz r30,32(r1)
ffc03c9c: 83 e1 00 24 lwz r31,36(r1)
ffc03ca0: 38 21 00 28 addi r1,r1,40
ffc03ca4: 4e 80 00 20 blr
for (slot = -1, i = 0; i < rtems_device_table_size; i++){
if (device_name_table[i].device_name == NULL)
slot = i;
else
if (strcmp(path, device_name_table[i].device_name) == 0)
rtems_set_errno_and_return_minus_one( EEXIST );
ffc03ca8: 48 00 ae e1 bl ffc0eb88 <__errno> <== NOT EXECUTED
ffc03cac: 38 00 00 11 li r0,17 <== NOT EXECUTED
ffc03cb0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc03cb4: 38 60 ff ff li r3,-1 <== NOT EXECUTED
device_name_table[slot].minor = minor;
device_name_table[slot].mode = mode;
_ISR_Enable(level);
return 0;
}
ffc03cb8: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED
ffc03cbc: 83 01 00 08 lwz r24,8(r1) <== NOT EXECUTED
ffc03cc0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc03cc4: 83 21 00 0c lwz r25,12(r1) <== NOT EXECUTED
ffc03cc8: 83 41 00 10 lwz r26,16(r1) <== NOT EXECUTED
ffc03ccc: 83 61 00 14 lwz r27,20(r1) <== NOT EXECUTED
ffc03cd0: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED
ffc03cd4: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED
ffc03cd8: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED
ffc03cdc: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED
ffc03ce0: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED
ffc03ce4: 4e 80 00 20 blr <== NOT EXECUTED
* condition and do not create the '/dev' and the 'path'
* actually passed in is 'dev', not '/dev'. Just return 0 to
* indicate we are OK.
*/
if ((path[0] == 'd') && (path[1] == 'e') &&
ffc03ce8: 88 03 00 01 lbz r0,1(r3)
ffc03cec: 2f 80 00 65 cmpwi cr7,r0,101
ffc03cf0: 40 9e fe bc bne+ cr7,ffc03bac <devFS_mknod+0x48>
(path[2] == 'v') && (path[3] == '\0'))
ffc03cf4: 88 03 00 02 lbz r0,2(r3)
ffc03cf8: 2f 80 00 76 cmpwi cr7,r0,118
ffc03cfc: 40 9e fe b0 bne+ cr7,ffc03bac <devFS_mknod+0x48>
ffc03d00: 88 03 00 03 lbz r0,3(r3)
ffc03d04: 38 60 00 00 li r3,0
ffc03d08: 2f 80 00 00 cmpwi cr7,r0,0
ffc03d0c: 40 9e fe a0 bne+ cr7,ffc03bac <devFS_mknod+0x48>
ffc03d10: 4b ff ff 68 b ffc03c78 <devFS_mknod+0x114>
return 0;
/* must be a character device or a block device */
if (!S_ISBLK(mode) && !S_ISCHR(mode))
rtems_set_errno_and_return_minus_one( EINVAL );
ffc03d14: 48 00 ae 75 bl ffc0eb88 <__errno> <== NOT EXECUTED
ffc03d18: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc03d1c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc03d20: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc03d24: 4b ff ff 54 b ffc03c78 <devFS_mknod+0x114> <== NOT EXECUTED
if (strcmp(path, device_name_table[i].device_name) == 0)
rtems_set_errno_and_return_minus_one( EEXIST );
}
if (slot == -1)
rtems_set_errno_and_return_minus_one( ENOMEM );
ffc03d28: 48 00 ae 61 bl ffc0eb88 <__errno> <== NOT EXECUTED
ffc03d2c: 38 00 00 0c li r0,12 <== NOT EXECUTED
ffc03d30: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc03d34: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc03d38: 4b ff ff 40 b ffc03c78 <devFS_mknod+0x114> <== NOT EXECUTED
rtems_filesystem_split_dev_t(dev, major, minor);
/* Find an empty slot in device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
if (!device_name_table)
rtems_set_errno_and_return_minus_one( EFAULT );
ffc03d3c: 48 00 ae 4d bl ffc0eb88 <__errno> <== NOT EXECUTED
ffc03d40: 38 00 00 0e li r0,14 <== NOT EXECUTED
ffc03d44: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc03d48: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc03d4c: 4b ff ff 2c b ffc03c78 <devFS_mknod+0x114> <== NOT EXECUTED
ffc03db8 <devFS_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
ffc03db8: 94 21 ff e8 stwu r1,-24(r1)
ffc03dbc: 7c 08 02 a6 mflr r0
ffc03dc0: 90 01 00 1c stw r0,28(r1)
args.iop = iop;
args.flags = iop->flags;
args.mode = mode;
status = rtems_io_open(
ffc03dc4: 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;
ffc03dc8: 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;
ffc03dcc: 81 23 00 3c lwz r9,60(r3)
args.iop = iop;
args.flags = iop->flags;
ffc03dd0: 90 01 00 0c stw r0,12(r1)
args.mode = mode;
ffc03dd4: 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;
ffc03dd8: 90 61 00 08 stw r3,8(r1)
args.flags = iop->flags;
args.mode = mode;
status = rtems_io_open(
ffc03ddc: 80 89 00 0c lwz r4,12(r9)
ffc03de0: 80 69 00 08 lwz r3,8(r9)
ffc03de4: 48 00 53 e5 bl ffc091c8 <rtems_io_open>
np->major,
np->minor,
(void *) &args
);
if ( status )
ffc03de8: 38 00 00 00 li r0,0
ffc03dec: 2f 83 00 00 cmpwi cr7,r3,0
ffc03df0: 41 be 00 0c beq+ cr7,ffc03dfc <devFS_open+0x44>
return rtems_deviceio_errno(status);
ffc03df4: 48 00 8f 55 bl ffc0cd48 <rtems_deviceio_errno> <== NOT EXECUTED
ffc03df8: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED
return 0;
}
ffc03dfc: 7c 03 03 78 mr r3,r0
ffc03e00: 80 01 00 1c lwz r0,28(r1)
ffc03e04: 38 21 00 18 addi r1,r1,24
ffc03e08: 7c 08 03 a6 mtlr r0
ffc03e0c: 4e 80 00 20 blr
ffc03e10 <devFS_read>:
ssize_t devFS_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
ffc03e10: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED
ffc03e14: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc03e18: 7c 69 1b 78 mr r9,r3 <== NOT EXECUTED
ffc03e1c: 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;
ffc03e20: 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;
ffc03e24: 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;
ffc03e28: 90 01 00 20 stw r0,32(r1) <== NOT EXECUTED
args.bytes_moved = 0;
ffc03e2c: 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;
ffc03e30: 90 a1 00 1c stw r5,28(r1) <== NOT EXECUTED
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_read(
ffc03e34: 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;
ffc03e38: 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;
ffc03e3c: 81 63 00 10 lwz r11,16(r3) <== NOT EXECUTED
ffc03e40: 81 83 00 14 lwz r12,20(r3) <== NOT EXECUTED
args.buffer = buffer;
ffc03e44: 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(
ffc03e48: 80 6a 00 08 lwz r3,8(r10) <== NOT EXECUTED
ffc03e4c: 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;
ffc03e50: 91 61 00 10 stw r11,16(r1) <== NOT EXECUTED
ffc03e54: 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;
ffc03e58: 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(
ffc03e5c: 48 00 53 cd bl ffc09228 <rtems_io_read> <== NOT EXECUTED
np->major,
np->minor,
(void *) &args
);
if ( status )
ffc03e60: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc03e64: 40 9e 00 18 bne- cr7,ffc03e7c <devFS_read+0x6c> <== NOT EXECUTED
return rtems_deviceio_errno(status);
return (ssize_t) args.bytes_moved;
}
ffc03e68: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED
);
if ( status )
return rtems_deviceio_errno(status);
return (ssize_t) args.bytes_moved;
ffc03e6c: 80 61 00 24 lwz r3,36(r1) <== NOT EXECUTED
}
ffc03e70: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED
ffc03e74: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc03e78: 4e 80 00 20 blr <== NOT EXECUTED
np->minor,
(void *) &args
);
if ( status )
return rtems_deviceio_errno(status);
ffc03e7c: 48 00 8e cd bl ffc0cd48 <rtems_deviceio_errno> <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
}
ffc03e80: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED
ffc03e84: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED
ffc03e88: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc03e8c: 4e 80 00 20 blr <== NOT EXECUTED
ffc03e90 <devFS_stat>:
int devFS_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
ffc03e90: 94 21 ff f8 stwu r1,-8(r1)
ffc03e94: 7c 08 02 a6 mflr r0
ffc03e98: 90 01 00 0c stw r0,12(r1)
rtems_device_name_t *the_dev;
the_dev = (rtems_device_name_t *)loc->node_access;
ffc03e9c: 81 23 00 00 lwz r9,0(r3)
if (!the_dev)
ffc03ea0: 2f 89 00 00 cmpwi cr7,r9,0
ffc03ea4: 41 9e 00 30 beq- cr7,ffc03ed4 <devFS_stat+0x44>
rtems_set_errno_and_return_minus_one( EFAULT );
buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor );
ffc03ea8: 80 09 00 0c lwz r0,12(r9)
buf->st_mode = the_dev->mode;
ffc03eac: 38 60 00 00 li r3,0
ffc03eb0: 81 69 00 10 lwz r11,16(r9)
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
ffc03eb4: 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 );
ffc03eb8: 90 04 00 1c stw r0,28(r4)
buf->st_mode = the_dev->mode;
ffc03ebc: 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 );
ffc03ec0: 91 24 00 18 stw r9,24(r4)
buf->st_mode = the_dev->mode;
return 0;
}
ffc03ec4: 80 01 00 0c lwz r0,12(r1)
ffc03ec8: 38 21 00 08 addi r1,r1,8
ffc03ecc: 7c 08 03 a6 mtlr r0
ffc03ed0: 4e 80 00 20 blr
{
rtems_device_name_t *the_dev;
the_dev = (rtems_device_name_t *)loc->node_access;
if (!the_dev)
rtems_set_errno_and_return_minus_one( EFAULT );
ffc03ed4: 48 00 ac b5 bl ffc0eb88 <__errno> <== NOT EXECUTED
ffc03ed8: 38 00 00 0e li r0,14 <== NOT EXECUTED
ffc03edc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc03ee0: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc03ee4: 4b ff ff e0 b ffc03ec4 <devFS_stat+0x34> <== NOT EXECUTED
ffc03ee8 <devFS_write>:
ssize_t devFS_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
ffc03ee8: 94 21 ff d8 stwu r1,-40(r1)
ffc03eec: 7c 08 02 a6 mflr r0
ffc03ef0: 7c 69 1b 78 mr r9,r3
ffc03ef4: 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;
ffc03ef8: 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;
ffc03efc: 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;
ffc03f00: 90 01 00 20 stw r0,32(r1)
args.bytes_moved = 0;
ffc03f04: 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;
ffc03f08: 90 a1 00 1c stw r5,28(r1)
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_write(
ffc03f0c: 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;
ffc03f10: 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;
ffc03f14: 81 63 00 10 lwz r11,16(r3)
ffc03f18: 81 83 00 14 lwz r12,20(r3)
args.buffer = (void *) buffer;
ffc03f1c: 90 81 00 18 stw r4,24(r1)
args.count = count;
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_write(
ffc03f20: 80 6a 00 08 lwz r3,8(r10)
ffc03f24: 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;
ffc03f28: 91 61 00 10 stw r11,16(r1)
ffc03f2c: 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;
ffc03f30: 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(
ffc03f34: 48 00 53 55 bl ffc09288 <rtems_io_write>
np->major,
np->minor,
(void *) &args
);
if ( status )
ffc03f38: 2f 83 00 00 cmpwi cr7,r3,0
ffc03f3c: 40 9e 00 18 bne- cr7,ffc03f54 <devFS_write+0x6c>
return rtems_deviceio_errno(status);
return (ssize_t) args.bytes_moved;
}
ffc03f40: 80 01 00 2c lwz r0,44(r1)
);
if ( status )
return rtems_deviceio_errno(status);
return (ssize_t) args.bytes_moved;
ffc03f44: 80 61 00 24 lwz r3,36(r1)
}
ffc03f48: 38 21 00 28 addi r1,r1,40
ffc03f4c: 7c 08 03 a6 mtlr r0
ffc03f50: 4e 80 00 20 blr
np->minor,
(void *) &args
);
if ( status )
return rtems_deviceio_errno(status);
ffc03f54: 48 00 8d f5 bl ffc0cd48 <rtems_deviceio_errno> <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
}
ffc03f58: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED
ffc03f5c: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED
ffc03f60: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc03f64: 4e 80 00 20 blr <== NOT EXECUTED
ffc0fafc <device_close>:
*/
int device_close(
rtems_libio_t *iop
)
{
ffc0fafc: 94 21 ff e8 stwu r1,-24(r1)
ffc0fb00: 7c 08 02 a6 mflr r0
ffc0fb04: 90 01 00 1c stw r0,28(r1)
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
args.iop = iop;
args.flags = 0;
ffc0fb08: 38 00 00 00 li r0,0
args.mode = 0;
status = rtems_io_close(
ffc0fb0c: 38 a1 00 08 addi r5,r1,8
the_jnode = iop->file_info;
args.iop = iop;
args.flags = 0;
args.mode = 0;
ffc0fb10: 90 01 00 10 stw r0,16(r1)
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
args.iop = iop;
args.flags = 0;
ffc0fb14: 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;
ffc0fb18: 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;
ffc0fb1c: 81 23 00 3c lwz r9,60(r3)
args.iop = iop;
args.flags = 0;
args.mode = 0;
status = rtems_io_close(
ffc0fb20: 80 89 00 54 lwz r4,84(r9)
ffc0fb24: 80 69 00 50 lwz r3,80(r9)
ffc0fb28: 48 00 15 2d bl ffc11054 <rtems_io_close>
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status ) {
ffc0fb2c: 38 00 00 00 li r0,0
ffc0fb30: 2f 83 00 00 cmpwi cr7,r3,0
ffc0fb34: 41 be 00 0c beq+ cr7,ffc0fb40 <device_close+0x44>
return rtems_deviceio_errno(status);
ffc0fb38: 48 00 1b e5 bl ffc1171c <rtems_deviceio_errno> <== NOT EXECUTED
ffc0fb3c: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED
}
return 0;
}
ffc0fb40: 7c 03 03 78 mr r3,r0
ffc0fb44: 80 01 00 1c lwz r0,28(r1)
ffc0fb48: 38 21 00 18 addi r1,r1,24
ffc0fb4c: 7c 08 03 a6 mtlr r0
ffc0fb50: 4e 80 00 20 blr
ffc0f9a8 <device_ioctl>:
int device_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
ffc0f9a8: 94 21 ff e8 stwu r1,-24(r1)
ffc0f9ac: 7c 08 02 a6 mflr r0
rtems_status_code status;
IMFS_jnode_t *the_jnode;
args.iop = iop;
args.command = command;
args.buffer = buffer;
ffc0f9b0: 90 a1 00 10 stw r5,16(r1)
the_jnode = iop->file_info;
status = rtems_io_control(
ffc0f9b4: 38 a1 00 08 addi r5,r1,8
int device_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
ffc0f9b8: 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;
ffc0f9bc: 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;
ffc0f9c0: 90 61 00 08 stw r3,8(r1)
args.command = command;
args.buffer = buffer;
the_jnode = iop->file_info;
ffc0f9c4: 81 23 00 3c lwz r9,60(r3)
status = rtems_io_control(
ffc0f9c8: 80 89 00 54 lwz r4,84(r9)
ffc0f9cc: 80 69 00 50 lwz r3,80(r9)
ffc0f9d0: 48 00 16 e5 bl ffc110b4 <rtems_io_control>
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
ffc0f9d4: 2f 83 00 00 cmpwi cr7,r3,0
ffc0f9d8: 40 9e 00 18 bne- cr7,ffc0f9f0 <device_ioctl+0x48>
return rtems_deviceio_errno(status);
return args.ioctl_return;
}
ffc0f9dc: 80 01 00 1c lwz r0,28(r1)
);
if ( status )
return rtems_deviceio_errno(status);
return args.ioctl_return;
ffc0f9e0: 80 61 00 14 lwz r3,20(r1)
}
ffc0f9e4: 38 21 00 18 addi r1,r1,24
ffc0f9e8: 7c 08 03 a6 mtlr r0
ffc0f9ec: 4e 80 00 20 blr
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
return rtems_deviceio_errno(status);
ffc0f9f0: 48 00 1d 2d bl ffc1171c <rtems_deviceio_errno> <== NOT EXECUTED
return args.ioctl_return;
}
ffc0f9f4: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED
ffc0f9f8: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED
ffc0f9fc: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0fa00: 4e 80 00 20 blr <== NOT EXECUTED
ffc0fb54 <device_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
ffc0fb54: 94 21 ff e8 stwu r1,-24(r1)
ffc0fb58: 7c 08 02 a6 mflr r0
ffc0fb5c: 90 01 00 1c stw r0,28(r1)
args.iop = iop;
args.flags = iop->flags;
args.mode = mode;
status = rtems_io_open(
ffc0fb60: 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;
ffc0fb64: 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;
ffc0fb68: 90 61 00 08 stw r3,8(r1)
args.flags = iop->flags;
ffc0fb6c: 90 01 00 0c stw r0,12(r1)
args.mode = mode;
ffc0fb70: 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;
ffc0fb74: 81 23 00 3c lwz r9,60(r3)
args.iop = iop;
args.flags = iop->flags;
args.mode = mode;
status = rtems_io_open(
ffc0fb78: 80 89 00 54 lwz r4,84(r9)
ffc0fb7c: 80 69 00 50 lwz r3,80(r9)
ffc0fb80: 48 00 15 95 bl ffc11114 <rtems_io_open>
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
ffc0fb84: 38 00 00 00 li r0,0
ffc0fb88: 2f 83 00 00 cmpwi cr7,r3,0
ffc0fb8c: 41 be 00 0c beq+ cr7,ffc0fb98 <device_open+0x44>
return rtems_deviceio_errno(status);
ffc0fb90: 48 00 1b 8d bl ffc1171c <rtems_deviceio_errno> <== NOT EXECUTED
ffc0fb94: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED
return 0;
}
ffc0fb98: 7c 03 03 78 mr r3,r0
ffc0fb9c: 80 01 00 1c lwz r0,28(r1)
ffc0fba0: 38 21 00 18 addi r1,r1,24
ffc0fba4: 7c 08 03 a6 mtlr r0
ffc0fba8: 4e 80 00 20 blr
ffc0fa80 <device_read>:
ssize_t device_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
ffc0fa80: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED
ffc0fa84: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc0fa88: 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;
ffc0fa8c: 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;
ffc0fa90: 81 23 00 10 lwz r9,16(r3) <== NOT EXECUTED
ffc0fa94: 81 43 00 14 lwz r10,20(r3) <== NOT EXECUTED
args.buffer = buffer;
args.count = count;
args.flags = iop->flags;
ffc0fa98: 90 01 00 20 stw r0,32(r1) <== NOT EXECUTED
args.bytes_moved = 0;
ffc0fa9c: 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;
ffc0faa0: 90 a1 00 1c stw r5,28(r1) <== NOT EXECUTED
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_read(
ffc0faa4: 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;
ffc0faa8: 91 21 00 10 stw r9,16(r1) <== NOT EXECUTED
ffc0faac: 91 41 00 14 stw r10,20(r1) <== NOT EXECUTED
args.buffer = buffer;
ffc0fab0: 90 81 00 18 stw r4,24(r1) <== NOT EXECUTED
args.count = count;
args.flags = iop->flags;
args.bytes_moved = 0;
ffc0fab4: 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;
ffc0fab8: 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;
ffc0fabc: 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(
ffc0fac0: 80 89 00 54 lwz r4,84(r9) <== NOT EXECUTED
ffc0fac4: 80 69 00 50 lwz r3,80(r9) <== NOT EXECUTED
ffc0fac8: 48 00 16 ad bl ffc11174 <rtems_io_read> <== NOT EXECUTED
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
ffc0facc: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc0fad0: 40 9e 00 18 bne- cr7,ffc0fae8 <device_read+0x68> <== NOT EXECUTED
return rtems_deviceio_errno(status);
return (ssize_t) args.bytes_moved;
}
ffc0fad4: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED
);
if ( status )
return rtems_deviceio_errno(status);
return (ssize_t) args.bytes_moved;
ffc0fad8: 80 61 00 24 lwz r3,36(r1) <== NOT EXECUTED
}
ffc0fadc: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED
ffc0fae0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0fae4: 4e 80 00 20 blr <== NOT EXECUTED
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
return rtems_deviceio_errno(status);
ffc0fae8: 48 00 1c 35 bl ffc1171c <rtems_deviceio_errno> <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
}
ffc0faec: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED
ffc0faf0: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED
ffc0faf4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0faf8: 4e 80 00 20 blr <== NOT EXECUTED
ffc0fa04 <device_write>:
ssize_t device_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
ffc0fa04: 94 21 ff d8 stwu r1,-40(r1)
ffc0fa08: 7c 08 02 a6 mflr r0
ffc0fa0c: 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;
ffc0fa10: 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;
ffc0fa14: 81 23 00 10 lwz r9,16(r3)
ffc0fa18: 81 43 00 14 lwz r10,20(r3)
args.buffer = (void *) buffer;
args.count = count;
args.flags = iop->flags;
ffc0fa1c: 90 01 00 20 stw r0,32(r1)
args.bytes_moved = 0;
ffc0fa20: 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;
ffc0fa24: 90 a1 00 1c stw r5,28(r1)
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_write(
ffc0fa28: 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;
ffc0fa2c: 91 21 00 10 stw r9,16(r1)
ffc0fa30: 91 41 00 14 stw r10,20(r1)
args.buffer = (void *) buffer;
ffc0fa34: 90 81 00 18 stw r4,24(r1)
args.count = count;
args.flags = iop->flags;
args.bytes_moved = 0;
ffc0fa38: 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;
ffc0fa3c: 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;
ffc0fa40: 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(
ffc0fa44: 80 89 00 54 lwz r4,84(r9)
ffc0fa48: 80 69 00 50 lwz r3,80(r9)
ffc0fa4c: 48 00 17 89 bl ffc111d4 <rtems_io_write>
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
ffc0fa50: 2f 83 00 00 cmpwi cr7,r3,0
ffc0fa54: 40 9e 00 18 bne- cr7,ffc0fa6c <device_write+0x68>
return rtems_deviceio_errno(status);
return (ssize_t) args.bytes_moved;
}
ffc0fa58: 80 01 00 2c lwz r0,44(r1)
);
if ( status )
return rtems_deviceio_errno(status);
return (ssize_t) args.bytes_moved;
ffc0fa5c: 80 61 00 24 lwz r3,36(r1)
}
ffc0fa60: 38 21 00 28 addi r1,r1,40
ffc0fa64: 7c 08 03 a6 mtlr r0
ffc0fa68: 4e 80 00 20 blr
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
return rtems_deviceio_errno(status);
ffc0fa6c: 48 00 1c b1 bl ffc1171c <rtems_deviceio_errno> <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
}
ffc0fa70: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED
ffc0fa74: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED
ffc0fa78: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0fa7c: 4e 80 00 20 blr <== NOT EXECUTED
ffc06948 <drainOutput>:
/*
* Drain output queue
*/
static void
drainOutput (struct rtems_termios_tty *tty)
{
ffc06948: 94 21 ff f0 stwu r1,-16(r1)
ffc0694c: 7c 08 02 a6 mflr r0
ffc06950: 90 01 00 14 stw r0,20(r1)
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {
ffc06954: 80 03 00 b4 lwz r0,180(r3)
/*
* Drain output queue
*/
static void
drainOutput (struct rtems_termios_tty *tty)
{
ffc06958: 93 e1 00 0c stw r31,12(r1)
ffc0695c: 7c 7f 1b 78 mr r31,r3
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {
ffc06960: 2f 80 00 00 cmpwi cr7,r0,0
/*
* Drain output queue
*/
static void
drainOutput (struct rtems_termios_tty *tty)
{
ffc06964: 93 c1 00 08 stw r30,8(r1)
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {
ffc06968: 41 9e 00 6c beq- cr7,ffc069d4 <drainOutput+0x8c>
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0696c: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED
ffc06970: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED
ffc06974: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED
ffc06978: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED
rtems_interrupt_disable (level);
while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {
ffc0697c: 81 63 00 84 lwz r11,132(r3) <== NOT EXECUTED
ffc06980: 81 23 00 80 lwz r9,128(r3) <== NOT EXECUTED
ffc06984: 7f 8b 48 00 cmpw cr7,r11,r9 <== NOT EXECUTED
ffc06988: 41 9e 00 48 beq- cr7,ffc069d0 <drainOutput+0x88> <== NOT EXECUTED
tty->rawOutBufState = rob_wait;
ffc0698c: 3b c0 00 02 li r30,2 <== NOT EXECUTED
ffc06990: 93 df 00 94 stw r30,148(r31) <== NOT EXECUTED
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc06994: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED
rtems_interrupt_enable (level);
sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore,
ffc06998: 80 7f 00 8c lwz r3,140(r31) <== NOT EXECUTED
ffc0699c: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc069a0: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc069a4: 48 00 1d 6d bl ffc08710 <rtems_semaphore_obtain> <== NOT EXECUTED
RTEMS_WAIT,
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
ffc069a8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc069ac: 40 9e 00 40 bne- cr7,ffc069ec <drainOutput+0xa4> <== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc069b0: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED
ffc069b4: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED
ffc069b8: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED
ffc069bc: 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) {
ffc069c0: 81 7f 00 84 lwz r11,132(r31) <== NOT EXECUTED
ffc069c4: 81 3f 00 80 lwz r9,128(r31) <== NOT EXECUTED
ffc069c8: 7f 8b 48 00 cmpw cr7,r11,r9 <== NOT EXECUTED
ffc069cc: 40 9e ff c4 bne+ cr7,ffc06990 <drainOutput+0x48> <== NOT EXECUTED
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc069d0: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
rtems_interrupt_disable (level);
}
rtems_interrupt_enable (level);
}
}
ffc069d4: 80 01 00 14 lwz r0,20(r1)
ffc069d8: 83 c1 00 08 lwz r30,8(r1)
ffc069dc: 7c 08 03 a6 mtlr r0
ffc069e0: 83 e1 00 0c lwz r31,12(r1)
ffc069e4: 38 21 00 10 addi r1,r1,16
ffc069e8: 4e 80 00 20 blr
rtems_interrupt_enable (level);
sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore,
RTEMS_WAIT,
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
ffc069ec: 48 00 26 49 bl ffc09034 <rtems_fatal_error_occurred> <== NOT EXECUTED
ffc056b4 <dup2>:
int dup2(
int fildes,
int fildes2
)
{
ffc056b4: 94 21 ff 98 stwu r1,-104(r1)
ffc056b8: 7c 08 02 a6 mflr r0
ffc056bc: 93 e1 00 64 stw r31,100(r1)
/*
* If fildes is not valid, then fildes2 should not be closed.
*/
status = fstat( fildes, &buf );
ffc056c0: 3b e1 00 08 addi r31,r1,8
int dup2(
int fildes,
int fildes2
)
{
ffc056c4: 93 c1 00 60 stw r30,96(r1)
ffc056c8: 7c 9e 23 78 mr r30,r4
/*
* If fildes is not valid, then fildes2 should not be closed.
*/
status = fstat( fildes, &buf );
ffc056cc: 7f e4 fb 78 mr r4,r31
int dup2(
int fildes,
int fildes2
)
{
ffc056d0: 93 a1 00 5c stw r29,92(r1)
ffc056d4: 7c 7d 1b 78 mr r29,r3
ffc056d8: 90 01 00 6c stw r0,108(r1)
/*
* If fildes is not valid, then fildes2 should not be closed.
*/
status = fstat( fildes, &buf );
ffc056dc: 48 00 08 f5 bl ffc05fd0 <fstat>
if ( status == -1 )
ffc056e0: 2f 83 ff ff cmpwi cr7,r3,-1
ffc056e4: 40 9e 00 24 bne- cr7,ffc05708 <dup2+0x54>
/*
* This fcntl handles everything else.
*/
return fcntl( fildes, F_DUPFD, fildes2 );
ffc056e8: 38 60 ff ff li r3,-1
}
ffc056ec: 80 01 00 6c lwz r0,108(r1)
ffc056f0: 83 a1 00 5c lwz r29,92(r1)
ffc056f4: 7c 08 03 a6 mtlr r0
ffc056f8: 83 c1 00 60 lwz r30,96(r1)
ffc056fc: 83 e1 00 64 lwz r31,100(r1)
ffc05700: 38 21 00 68 addi r1,r1,104
ffc05704: 4e 80 00 20 blr
/*
* If fildes2 is not valid, then we should not do anything either.
*/
status = fstat( fildes2, &buf );
ffc05708: 7f e4 fb 78 mr r4,r31
ffc0570c: 7f c3 f3 78 mr r3,r30
ffc05710: 48 00 08 c1 bl ffc05fd0 <fstat>
if ( status == -1 )
ffc05714: 2f 83 ff ff cmpwi cr7,r3,-1
ffc05718: 41 be ff d0 beq- cr7,ffc056e8 <dup2+0x34>
/*
* This fcntl handles everything else.
*/
return fcntl( fildes, F_DUPFD, fildes2 );
ffc0571c: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc05720: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED
ffc05724: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc05728: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc0572c: 48 00 03 41 bl ffc05a6c <fcntl> <== NOT EXECUTED
ffc05730: 4b ff ff bc b ffc056ec <dup2+0x38> <== NOT EXECUTED
ffc0625c <echo>:
/*
* Echo a typed character
*/
static void
echo (unsigned char c, struct rtems_termios_tty *tty)
{
ffc0625c: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED
ffc06260: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc06264: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED
if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) {
ffc06268: 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)
{
ffc0626c: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED
ffc06270: 7c 9f 23 78 mr r31,r4 <== NOT EXECUTED
if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) {
ffc06274: 71 20 02 00 andi. r0,r9,512 <== NOT EXECUTED
ffc06278: 41 82 00 2c beq- ffc062a4 <echo+0x48> <== NOT EXECUTED
ffc0627c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc06280: 81 29 26 a0 lwz r9,9888(r9) <== NOT EXECUTED
ffc06284: 7d 29 1a 14 add r9,r9,r3 <== NOT EXECUTED
ffc06288: 88 09 00 01 lbz r0,1(r9) <== NOT EXECUTED
ffc0628c: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED
ffc06290: 41 82 00 14 beq- ffc062a4 <echo+0x48> <== NOT EXECUTED
ffc06294: 2f 83 00 09 cmpwi cr7,r3,9 <== NOT EXECUTED
ffc06298: 41 9e 00 0c beq- cr7,ffc062a4 <echo+0x48> <== NOT EXECUTED
ffc0629c: 2f 83 00 0a cmpwi cr7,r3,10 <== NOT EXECUTED
ffc062a0: 40 9e 00 20 bne- cr7,ffc062c0 <echo+0x64> <== NOT EXECUTED
echobuf[1] = c ^ 0x40;
rtems_termios_puts (echobuf, 2, tty);
tty->column += 2;
}
else {
oproc (c, tty);
ffc062a4: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc062a8: 4b ff fe 1d bl ffc060c4 <oproc> <== NOT EXECUTED
}
}
ffc062ac: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED
ffc062b0: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED
ffc062b4: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED
ffc062b8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc062bc: 4e 80 00 20 blr <== NOT EXECUTED
{
if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) {
char echobuf[2];
echobuf[0] = '^';
echobuf[1] = c ^ 0x40;
ffc062c0: 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] = '^';
ffc062c4: 39 20 00 5e li r9,94 <== NOT EXECUTED
echobuf[1] = c ^ 0x40;
ffc062c8: 98 01 00 09 stb r0,9(r1) <== NOT EXECUTED
rtems_termios_puts (echobuf, 2, tty);
ffc062cc: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED
ffc062d0: 7f e5 fb 78 mr r5,r31 <== 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] = '^';
ffc062d4: 99 21 00 08 stb r9,8(r1) <== NOT EXECUTED
echobuf[1] = c ^ 0x40;
rtems_termios_puts (echobuf, 2, tty);
ffc062d8: 38 80 00 02 li r4,2 <== NOT EXECUTED
ffc062dc: 4b ff fc 5d bl ffc05f38 <rtems_termios_puts> <== NOT EXECUTED
tty->column += 2;
ffc062e0: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED
ffc062e4: 38 09 00 02 addi r0,r9,2 <== NOT EXECUTED
ffc062e8: 90 1f 00 28 stw r0,40(r31) <== NOT EXECUTED
}
else {
oproc (c, tty);
}
}
ffc062ec: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED
ffc062f0: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED
ffc062f4: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED
ffc062f8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc062fc: 4e 80 00 20 blr <== NOT EXECUTED
ffc2ec2c <endgrent>:
group_fp = fopen("/etc/group", "r");
}
void endgrent(void)
{
if (group_fp != NULL)
ffc2ec2c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
fclose(group_fp);
group_fp = fopen("/etc/group", "r");
}
void endgrent(void)
{
ffc2ec30: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED
ffc2ec34: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
if (group_fp != NULL)
ffc2ec38: 80 69 5e fc lwz r3,24316(r9) <== NOT EXECUTED
fclose(group_fp);
group_fp = fopen("/etc/group", "r");
}
void endgrent(void)
{
ffc2ec3c: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
if (group_fp != NULL)
ffc2ec40: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc2ec44: 41 9e 00 08 beq- cr7,ffc2ec4c <endgrent+0x20> <== NOT EXECUTED
fclose(group_fp);
ffc2ec48: 48 01 e0 d1 bl ffc4cd18 <fclose> <== NOT EXECUTED
}
ffc2ec4c: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc2ec50: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc2ec54: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2ec58: 4e 80 00 20 blr <== NOT EXECUTED
ffc2ec5c <endpwent>:
passwd_fp = fopen("/etc/passwd", "r");
}
void endpwent(void)
{
if (passwd_fp != NULL)
ffc2ec5c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
fclose(passwd_fp);
passwd_fp = fopen("/etc/passwd", "r");
}
void endpwent(void)
{
ffc2ec60: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED
ffc2ec64: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
if (passwd_fp != NULL)
ffc2ec68: 80 69 5f 00 lwz r3,24320(r9) <== NOT EXECUTED
fclose(passwd_fp);
passwd_fp = fopen("/etc/passwd", "r");
}
void endpwent(void)
{
ffc2ec6c: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
if (passwd_fp != NULL)
ffc2ec70: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc2ec74: 41 9e 00 08 beq- cr7,ffc2ec7c <endpwent+0x20> <== NOT EXECUTED
fclose(passwd_fp);
ffc2ec78: 48 01 e0 a1 bl ffc4cd18 <fclose> <== NOT EXECUTED
}
ffc2ec7c: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc2ec80: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc2ec84: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2ec88: 4e 80 00 20 blr <== NOT EXECUTED
ffc06300 <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)
{
ffc06300: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED
ffc06304: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc06308: 7d 80 00 26 mfcr r12 <== NOT EXECUTED
ffc0630c: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED
if (tty->ccount == 0)
ffc06310: 81 23 00 20 lwz r9,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)
{
ffc06314: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED
ffc06318: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED
if (tty->ccount == 0)
ffc0631c: 2f 89 00 00 cmpwi cr7,r9,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)
{
ffc06320: 93 61 00 0c stw r27,12(r1) <== NOT EXECUTED
ffc06324: 93 81 00 10 stw r28,16(r1) <== NOT EXECUTED
ffc06328: 93 a1 00 14 stw r29,20(r1) <== NOT EXECUTED
ffc0632c: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED
ffc06330: 91 81 00 08 stw r12,8(r1) <== NOT EXECUTED
if (tty->ccount == 0)
ffc06334: 41 9e 00 9c beq- cr7,ffc063d0 <erase+0xd0> <== NOT EXECUTED
return;
if (lineFlag) {
ffc06338: 2e 04 00 00 cmpwi cr4,r4,0 <== NOT EXECUTED
ffc0633c: 40 92 00 84 bne- cr4,ffc063c0 <erase+0xc0> <== NOT EXECUTED
ffc06340: 80 03 00 3c lwz r0,60(r3) <== NOT EXECUTED
rtems_termios_puts ("\b", 1, tty);
tty->column--;
}
}
else {
if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {
ffc06344: 3f 80 00 00 lis r28,0 <== NOT EXECUTED
rtems_termios_puts ("\b \b", 3, tty);
ffc06348: 3f 60 ff c2 lis r27,-62 <== NOT EXECUTED
ffc0634c: 3f a0 ff c2 lis r29,-62 <== NOT EXECUTED
rtems_termios_puts ("\b", 1, tty);
tty->column--;
}
}
else {
if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {
ffc06350: 3b 9c 26 a0 addi r28,r28,9888 <== NOT EXECUTED
rtems_termios_puts ("\b \b", 3, tty);
ffc06354: 3b 7b df e8 addi r27,r27,-8216 <== NOT EXECUTED
ffc06358: 3b bd df e4 addi r29,r29,-8220 <== NOT EXECUTED
}
}
while (tty->ccount) {
unsigned char c = tty->cbuf[--tty->ccount];
if (tty->termios.c_lflag & ECHO) {
ffc0635c: 70 0a 00 08 andi. r10,r0,8 <== NOT EXECUTED
echo ('\n', tty);
return;
}
}
while (tty->ccount) {
unsigned char c = tty->cbuf[--tty->ccount];
ffc06360: 81 7f 00 1c lwz r11,28(r31) <== NOT EXECUTED
ffc06364: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED
ffc06368: 91 3f 00 20 stw r9,32(r31) <== NOT EXECUTED
ffc0636c: 7f cb 48 ae lbzx r30,r11,r9 <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO) {
ffc06370: 41 82 00 38 beq- ffc063a8 <erase+0xa8> <== NOT EXECUTED
if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {
ffc06374: 40 92 00 0c bne- cr4,ffc06380 <erase+0x80> <== NOT EXECUTED
ffc06378: 70 0a 00 10 andi. r10,r0,16 <== NOT EXECUTED
ffc0637c: 41 82 01 d8 beq- ffc06554 <erase+0x254> <== NOT EXECUTED
echo (tty->termios.c_cc[VERASE], tty);
}
else if (c == '\t') {
ffc06380: 2f 9e 00 09 cmpwi cr7,r30,9 <== NOT EXECUTED
ffc06384: 41 9e 00 dc beq- cr7,ffc06460 <erase+0x160> <== NOT EXECUTED
rtems_termios_puts ("\b", 1, tty);
tty->column--;
}
}
else {
if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {
ffc06388: 81 3c 00 00 lwz r9,0(r28) <== NOT EXECUTED
ffc0638c: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED
ffc06390: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED
ffc06394: 7d 29 f0 ae lbzx r9,r9,r30 <== NOT EXECUTED
ffc06398: 71 2b 00 20 andi. r11,r9,32 <== NOT EXECUTED
ffc0639c: 41 82 00 a0 beq- ffc0643c <erase+0x13c> <== NOT EXECUTED
ffc063a0: 70 09 02 00 andi. r9,r0,512 <== NOT EXECUTED
ffc063a4: 40 82 00 58 bne- ffc063fc <erase+0xfc> <== NOT EXECUTED
if (tty->column)
tty->column--;
}
}
}
if (!lineFlag)
ffc063a8: 41 92 00 28 beq- cr4,ffc063d0 <erase+0xd0> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOK)
echo ('\n', tty);
return;
}
}
while (tty->ccount) {
ffc063ac: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED
ffc063b0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc063b4: 41 9e 00 1c beq- cr7,ffc063d0 <erase+0xd0> <== NOT EXECUTED
ffc063b8: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED
ffc063bc: 4b ff ff a0 b ffc0635c <erase+0x5c> <== NOT EXECUTED
erase (struct rtems_termios_tty *tty, int lineFlag)
{
if (tty->ccount == 0)
return;
if (lineFlag) {
if (!(tty->termios.c_lflag & ECHO)) {
ffc063c0: 80 03 00 3c lwz r0,60(r3) <== NOT EXECUTED
ffc063c4: 70 0b 00 08 andi. r11,r0,8 <== NOT EXECUTED
ffc063c8: 40 a2 01 34 bne+ ffc064fc <erase+0x1fc> <== NOT EXECUTED
tty->ccount = 0;
ffc063cc: 91 63 00 20 stw r11,32(r3) <== NOT EXECUTED
}
}
if (!lineFlag)
break;
}
}
ffc063d0: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED
ffc063d4: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED
ffc063d8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc063dc: 83 61 00 0c lwz r27,12(r1) <== NOT EXECUTED
ffc063e0: 83 81 00 10 lwz r28,16(r1) <== NOT EXECUTED
ffc063e4: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED
ffc063e8: 83 a1 00 14 lwz r29,20(r1) <== NOT EXECUTED
ffc063ec: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED
ffc063f0: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED
ffc063f4: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED
ffc063f8: 4e 80 00 20 blr <== NOT EXECUTED
tty->column--;
}
}
else {
if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {
rtems_termios_puts ("\b \b", 3, tty);
ffc063fc: 38 80 00 03 li r4,3 <== NOT EXECUTED
ffc06400: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED
ffc06404: 4b ff fb 35 bl ffc05f38 <rtems_termios_puts> <== NOT EXECUTED
if (tty->column)
ffc06408: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED
tty->column--;
}
}
else {
if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {
rtems_termios_puts ("\b \b", 3, tty);
ffc0640c: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED
if (tty->column)
ffc06410: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc06414: 41 9e 00 0c beq- cr7,ffc06420 <erase+0x120> <== NOT EXECUTED
tty->column--;
ffc06418: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED
ffc0641c: 91 3f 00 28 stw r9,40(r31) <== NOT EXECUTED
}
if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {
ffc06420: 81 3c 00 00 lwz r9,0(r28) <== NOT EXECUTED
ffc06424: 7c 09 f0 ae lbzx r0,r9,r30 <== NOT EXECUTED
ffc06428: 70 0a 00 20 andi. r10,r0,32 <== NOT EXECUTED
ffc0642c: 41 82 00 10 beq- ffc0643c <erase+0x13c> <== NOT EXECUTED
ffc06430: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED
ffc06434: 70 0b 02 00 andi. r11,r0,512 <== NOT EXECUTED
ffc06438: 41 a2 ff 70 beq- ffc063a8 <erase+0xa8> <== NOT EXECUTED
rtems_termios_puts ("\b \b", 3, tty);
ffc0643c: 38 80 00 03 li r4,3 <== NOT EXECUTED
ffc06440: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED
ffc06444: 4b ff fa f5 bl ffc05f38 <rtems_termios_puts> <== NOT EXECUTED
if (tty->column)
ffc06448: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED
ffc0644c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc06450: 41 be ff 58 beq- cr7,ffc063a8 <erase+0xa8> <== NOT EXECUTED
tty->column--;
ffc06454: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED
ffc06458: 91 3f 00 28 stw r9,40(r31) <== NOT EXECUTED
ffc0645c: 4b ff ff 4c b ffc063a8 <erase+0xa8> <== NOT EXECUTED
int i = 0;
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
ffc06460: 2f 89 00 00 cmpwi cr7,r9,0 <== 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;
ffc06464: 83 df 00 2c lwz r30,44(r31) <== NOT EXECUTED
int i = 0;
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
ffc06468: 41 9e 00 44 beq- cr7,ffc064ac <erase+0x1ac> <== NOT EXECUTED
c = tty->cbuf[i++];
if (c == '\t') {
col = (col | 7) + 1;
}
else if (iscntrl (c)) {
if (tty->termios.c_lflag & ECHOCTL)
ffc0646c: 54 0a bf fe rlwinm r10,r0,23,31,31 <== NOT EXECUTED
while (i != tty->ccount) {
c = tty->cbuf[i++];
if (c == '\t') {
col = (col | 7) + 1;
}
else if (iscntrl (c)) {
ffc06470: 81 1c 00 00 lwz r8,0(r28) <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOCTL)
ffc06474: 2f 0a 00 00 cmpwi cr6,r10,0 <== NOT EXECUTED
ffc06478: 7d 29 03 a6 mtctr r9 <== NOT EXECUTED
while (i != tty->ccount) {
c = tty->cbuf[i++];
if (c == '\t') {
col = (col | 7) + 1;
}
else if (iscntrl (c)) {
ffc0647c: 39 20 00 00 li r9,0 <== NOT EXECUTED
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
c = tty->cbuf[i++];
ffc06480: 7c 0b 48 ae lbzx r0,r11,r9 <== NOT EXECUTED
ffc06484: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED
if (c == '\t') {
ffc06488: 2f 80 00 09 cmpwi cr7,r0,9 <== NOT EXECUTED
col = (col | 7) + 1;
}
else if (iscntrl (c)) {
ffc0648c: 7d 48 02 14 add r10,r8,r0 <== NOT EXECUTED
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
c = tty->cbuf[i++];
if (c == '\t') {
ffc06490: 41 9e 00 5c beq- cr7,ffc064ec <erase+0x1ec> <== NOT EXECUTED
col = (col | 7) + 1;
}
else if (iscntrl (c)) {
ffc06494: 88 0a 00 01 lbz r0,1(r10) <== NOT EXECUTED
ffc06498: 70 0a 00 20 andi. r10,r0,32 <== NOT EXECUTED
ffc0649c: 41 82 00 44 beq- ffc064e0 <erase+0x1e0> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOCTL)
ffc064a0: 41 9a 00 08 beq- cr6,ffc064a8 <erase+0x1a8> <== NOT EXECUTED
col += 2;
ffc064a4: 3b de 00 02 addi r30,r30,2 <== NOT EXECUTED
int i = 0;
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
ffc064a8: 42 00 ff d8 bdnz+ ffc06480 <erase+0x180> <== NOT EXECUTED
}
/*
* Back up over the tab
*/
while (tty->column > col) {
ffc064ac: 80 1f 00 28 lwz r0,40(r31) <== NOT EXECUTED
ffc064b0: 7f 9e 00 00 cmpw cr7,r30,r0 <== NOT EXECUTED
ffc064b4: 40 bc fe f4 bge- cr7,ffc063a8 <erase+0xa8> <== NOT EXECUTED
rtems_termios_puts ("\b", 1, tty);
ffc064b8: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc064bc: 38 80 00 01 li r4,1 <== NOT EXECUTED
ffc064c0: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED
ffc064c4: 4b ff fa 75 bl ffc05f38 <rtems_termios_puts> <== NOT EXECUTED
tty->column--;
ffc064c8: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED
ffc064cc: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED
}
/*
* Back up over the tab
*/
while (tty->column > col) {
ffc064d0: 7f 9e 00 00 cmpw cr7,r30,r0 <== NOT EXECUTED
rtems_termios_puts ("\b", 1, tty);
tty->column--;
ffc064d4: 90 1f 00 28 stw r0,40(r31) <== NOT EXECUTED
}
/*
* Back up over the tab
*/
while (tty->column > col) {
ffc064d8: 41 9c ff e0 blt+ cr7,ffc064b8 <erase+0x1b8> <== NOT EXECUTED
ffc064dc: 4b ff fe cc b ffc063a8 <erase+0xa8> <== NOT EXECUTED
else if (iscntrl (c)) {
if (tty->termios.c_lflag & ECHOCTL)
col += 2;
}
else {
col++;
ffc064e0: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED
int i = 0;
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
ffc064e4: 42 00 ff 9c bdnz+ ffc06480 <erase+0x180> <== NOT EXECUTED
ffc064e8: 4b ff ff c4 b ffc064ac <erase+0x1ac> <== NOT EXECUTED
c = tty->cbuf[i++];
if (c == '\t') {
col = (col | 7) + 1;
ffc064ec: 63 de 00 07 ori r30,r30,7 <== NOT EXECUTED
ffc064f0: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED
int i = 0;
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
ffc064f4: 42 00 ff 8c bdnz+ ffc06480 <erase+0x180> <== NOT EXECUTED
ffc064f8: 4b ff ff b4 b ffc064ac <erase+0x1ac> <== NOT EXECUTED
if (lineFlag) {
if (!(tty->termios.c_lflag & ECHO)) {
tty->ccount = 0;
return;
}
if (!(tty->termios.c_lflag & ECHOE)) {
ffc064fc: 70 0b 00 10 andi. r11,r0,16 <== NOT EXECUTED
ffc06500: 40 82 fe 44 bne+ ffc06344 <erase+0x44> <== NOT EXECUTED
tty->ccount = 0;
echo (tty->termios.c_cc[VKILL], tty);
ffc06504: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED
if (!(tty->termios.c_lflag & ECHO)) {
tty->ccount = 0;
return;
}
if (!(tty->termios.c_lflag & ECHOE)) {
tty->ccount = 0;
ffc06508: 91 63 00 20 stw r11,32(r3) <== NOT EXECUTED
echo (tty->termios.c_cc[VKILL], tty);
ffc0650c: 88 63 00 44 lbz r3,68(r3) <== NOT EXECUTED
ffc06510: 4b ff fd 4d bl ffc0625c <echo> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOK)
ffc06514: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED
echo ('\n', tty);
ffc06518: 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)
ffc0651c: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED
echo ('\n', tty);
ffc06520: 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)
ffc06524: 41 82 fe ac beq+ ffc063d0 <erase+0xd0> <== NOT EXECUTED
}
}
if (!lineFlag)
break;
}
}
ffc06528: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED
ffc0652c: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED
ffc06530: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc06534: 83 61 00 0c lwz r27,12(r1) <== NOT EXECUTED
ffc06538: 83 81 00 10 lwz r28,16(r1) <== NOT EXECUTED
ffc0653c: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED
ffc06540: 83 a1 00 14 lwz r29,20(r1) <== NOT EXECUTED
ffc06544: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED
ffc06548: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED
ffc0654c: 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);
ffc06550: 4b ff fd 0c b ffc0625c <echo> <== NOT EXECUTED
}
}
if (!lineFlag)
break;
}
}
ffc06554: 80 01 00 24 lwz r0,36(r1) <== 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);
ffc06558: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
}
}
if (!lineFlag)
break;
}
}
ffc0655c: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED
ffc06560: 7c 08 03 a6 mtlr r0 <== 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);
ffc06564: 88 7f 00 43 lbz r3,67(r31) <== NOT EXECUTED
}
}
if (!lineFlag)
break;
}
}
ffc06568: 83 61 00 0c lwz r27,12(r1) <== NOT EXECUTED
ffc0656c: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED
ffc06570: 83 81 00 10 lwz r28,16(r1) <== NOT EXECUTED
ffc06574: 83 a1 00 14 lwz r29,20(r1) <== NOT EXECUTED
ffc06578: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED
ffc0657c: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED
ffc06580: 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);
ffc06584: 4b ff fc d8 b ffc0625c <echo> <== NOT EXECUTED
ffc45c58 <fchdir>:
#include <rtems/seterr.h>
int fchdir(
int fd
)
{
ffc45c58: 94 21 ff c0 stwu r1,-64(r1) <== NOT EXECUTED
ffc45c5c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc, saved;
rtems_libio_check_fd( fd );
ffc45c60: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
#include <rtems/seterr.h>
int fchdir(
int fd
)
{
ffc45c64: 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 );
ffc45c68: 80 09 34 8c lwz r0,13452(r9) <== NOT EXECUTED
#include <rtems/seterr.h>
int fchdir(
int fd
)
{
ffc45c6c: 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 );
ffc45c70: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED
#include <rtems/seterr.h>
int fchdir(
int fd
)
{
ffc45c74: 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 );
ffc45c78: 40 9c 01 50 bge- cr7,ffc45dc8 <fchdir+0x170> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
ffc45c7c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc45c80: 83 e9 35 b0 lwz r31,13744(r9) <== NOT EXECUTED
ffc45c84: 1c 63 00 48 mulli r3,r3,72 <== NOT EXECUTED
ffc45c88: 7f ff 1a 14 add r31,r31,r3 <== NOT EXECUTED
rtems_libio_check_is_open(iop);
ffc45c8c: 80 1f 00 18 lwz r0,24(r31) <== NOT EXECUTED
ffc45c90: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED
ffc45c94: 41 82 01 34 beq- ffc45dc8 <fchdir+0x170> <== NOT EXECUTED
/*
* Now process the fchmod().
*/
rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );
ffc45c98: 70 09 00 02 andi. r9,r0,2 <== NOT EXECUTED
ffc45c9c: 41 82 01 74 beq- ffc45e10 <fchdir+0x1b8> <== NOT EXECUTED
/*
* Verify you can change directory into this node.
*/
if ( !iop->pathinfo.ops ) {
ffc45ca0: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED
ffc45ca4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc45ca8: 41 9e 01 7c beq- cr7,ffc45e24 <fchdir+0x1cc> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( !iop->pathinfo.ops->node_type_h ) {
ffc45cac: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED
ffc45cb0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc45cb4: 41 9e 01 70 beq- cr7,ffc45e24 <fchdir+0x1cc> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) !=
ffc45cb8: 38 7f 00 1c addi r3,r31,28 <== NOT EXECUTED
ffc45cbc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc45cc0: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc45cc4: 2f 83 00 01 cmpwi cr7,r3,1 <== NOT EXECUTED
ffc45cc8: 40 9e 00 ec bne- cr7,ffc45db4 <fchdir+0x15c> <== NOT EXECUTED
* but note the race condition. Threads who
* share their rtems_filesystem_current better
* be synchronized!
*/
saved = rtems_filesystem_current;
ffc45ccc: 3f c0 00 00 lis r30,0 <== NOT EXECUTED
ffc45cd0: 81 3e 34 ec lwz r9,13548(r30) <== NOT EXECUTED
rtems_filesystem_current = iop->pathinfo;
/* clone the current node */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
ffc45cd4: 3c 60 ff c7 lis r3,-57 <== NOT EXECUTED
ffc45cd8: 38 63 a4 50 addi r3,r3,-23472 <== NOT EXECUTED
* but note the race condition. Threads who
* share their rtems_filesystem_current better
* be synchronized!
*/
saved = rtems_filesystem_current;
ffc45cdc: 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)) {
ffc45ce0: 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;
ffc45ce4: 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)) {
ffc45ce8: 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;
ffc45cec: 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)) {
ffc45cf0: 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;
ffc45cf4: 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)) {
ffc45cf8: 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;
ffc45cfc: 91 01 00 1c stw r8,28(r1) <== NOT EXECUTED
ffc45d00: 91 41 00 20 stw r10,32(r1) <== NOT EXECUTED
ffc45d04: 91 61 00 24 stw r11,36(r1) <== NOT EXECUTED
ffc45d08: 90 01 00 28 stw r0,40(r1) <== NOT EXECUTED
ffc45d0c: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED
ffc45d10: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED
rtems_filesystem_current = iop->pathinfo;
ffc45d14: 80 1f 00 28 lwz r0,40(r31) <== NOT EXECUTED
ffc45d18: 81 1f 00 1c lwz r8,28(r31) <== NOT EXECUTED
ffc45d1c: 81 5f 00 20 lwz r10,32(r31) <== NOT EXECUTED
ffc45d20: 81 7f 00 24 lwz r11,36(r31) <== NOT EXECUTED
ffc45d24: 91 09 00 04 stw r8,4(r9) <== NOT EXECUTED
ffc45d28: 91 49 00 08 stw r10,8(r9) <== NOT EXECUTED
ffc45d2c: 91 69 00 0c stw r11,12(r9) <== NOT EXECUTED
ffc45d30: 90 09 00 10 stw r0,16(r9) <== NOT EXECUTED
ffc45d34: 80 1f 00 2c lwz r0,44(r31) <== NOT EXECUTED
ffc45d38: 90 09 00 14 stw r0,20(r9) <== NOT EXECUTED
/* clone the current node */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
ffc45d3c: 4b fc 1b 51 bl ffc0788c <rtems_filesystem_evaluate_path><== NOT EXECUTED
ffc45d40: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc45d44: 40 9e 00 98 bne- cr7,ffc45ddc <fchdir+0x184> <== NOT EXECUTED
/* cloning failed; restore original and bail out */
rtems_filesystem_current = saved;
return -1;
}
/* release the old one */
rtems_filesystem_freenode( &saved );
ffc45d48: 81 21 00 28 lwz r9,40(r1) <== NOT EXECUTED
ffc45d4c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc45d50: 41 9e 00 1c beq- cr7,ffc45d6c <fchdir+0x114> <== NOT EXECUTED
ffc45d54: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc45d58: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc45d5c: 41 9e 00 10 beq- cr7,ffc45d6c <fchdir+0x114> <== NOT EXECUTED
ffc45d60: 38 61 00 1c addi r3,r1,28 <== NOT EXECUTED
ffc45d64: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc45d68: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_filesystem_current = loc;
ffc45d6c: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc45d70: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc45d74: 81 3e 34 ec lwz r9,13548(r30) <== NOT EXECUTED
ffc45d78: 81 41 00 0c lwz r10,12(r1) <== NOT EXECUTED
ffc45d7c: 81 61 00 10 lwz r11,16(r1) <== NOT EXECUTED
ffc45d80: 81 01 00 08 lwz r8,8(r1) <== NOT EXECUTED
ffc45d84: 91 49 00 08 stw r10,8(r9) <== NOT EXECUTED
ffc45d88: 91 09 00 04 stw r8,4(r9) <== NOT EXECUTED
ffc45d8c: 91 69 00 0c stw r11,12(r9) <== NOT EXECUTED
ffc45d90: 90 09 00 10 stw r0,16(r9) <== NOT EXECUTED
ffc45d94: 80 01 00 18 lwz r0,24(r1) <== NOT EXECUTED
ffc45d98: 90 09 00 14 stw r0,20(r9) <== NOT EXECUTED
return 0;
}
ffc45d9c: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED
ffc45da0: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED
ffc45da4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc45da8: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED
ffc45dac: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED
ffc45db0: 4e 80 00 20 blr <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) !=
RTEMS_FILESYSTEM_DIRECTORY ) {
rtems_set_errno_and_return_minus_one( ENOTDIR );
ffc45db4: 48 00 6d c5 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc45db8: 38 00 00 14 li r0,20 <== NOT EXECUTED
ffc45dbc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc45dc0: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc45dc4: 4b ff ff d8 b ffc45d9c <fchdir+0x144> <== NOT EXECUTED
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc, saved;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
ffc45dc8: 48 00 6d b1 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc45dcc: 38 00 00 09 li r0,9 <== NOT EXECUTED
ffc45dd0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc45dd4: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc45dd8: 4b ff ff c4 b ffc45d9c <fchdir+0x144> <== NOT EXECUTED
rtems_filesystem_current = iop->pathinfo;
/* clone the current node */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
/* cloning failed; restore original and bail out */
rtems_filesystem_current = saved;
ffc45ddc: 80 01 00 28 lwz r0,40(r1) <== NOT EXECUTED
ffc45de0: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc45de4: 81 3e 34 ec lwz r9,13548(r30) <== NOT EXECUTED
ffc45de8: 81 41 00 20 lwz r10,32(r1) <== NOT EXECUTED
ffc45dec: 81 61 00 24 lwz r11,36(r1) <== NOT EXECUTED
ffc45df0: 81 01 00 1c lwz r8,28(r1) <== NOT EXECUTED
ffc45df4: 91 49 00 08 stw r10,8(r9) <== NOT EXECUTED
ffc45df8: 91 09 00 04 stw r8,4(r9) <== NOT EXECUTED
ffc45dfc: 91 69 00 0c stw r11,12(r9) <== NOT EXECUTED
ffc45e00: 90 09 00 10 stw r0,16(r9) <== NOT EXECUTED
ffc45e04: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED
ffc45e08: 90 09 00 14 stw r0,20(r9) <== NOT EXECUTED
return -1;
ffc45e0c: 4b ff ff 90 b ffc45d9c <fchdir+0x144> <== NOT EXECUTED
/*
* Now process the fchmod().
*/
rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );
ffc45e10: 48 00 6d 69 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc45e14: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc45e18: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc45e1c: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc45e20: 4b ff ff 7c b ffc45d9c <fchdir+0x144> <== NOT EXECUTED
if ( !iop->pathinfo.ops ) {
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( !iop->pathinfo.ops->node_type_h ) {
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc45e24: 48 00 6d 55 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc45e28: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc45e2c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc45e30: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc45e34: 4b ff ff 68 b ffc45d9c <fchdir+0x144> <== NOT EXECUTED
ffc2e7cc <fchmod>:
int fchmod(
int fd,
mode_t mode
)
{
ffc2e7cc: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc2e7d0: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
ffc2e7d4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
int fchmod(
int fd,
mode_t mode
)
{
ffc2e7d8: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
ffc2e7dc: 80 09 34 8c lwz r0,13452(r9) <== NOT EXECUTED
ffc2e7e0: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED
ffc2e7e4: 40 9c 00 5c bge- cr7,ffc2e840 <fchmod+0x74> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
ffc2e7e8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc2e7ec: 80 09 35 b0 lwz r0,13744(r9) <== NOT EXECUTED
ffc2e7f0: 1c 63 00 48 mulli r3,r3,72 <== NOT EXECUTED
ffc2e7f4: 7c 60 1a 14 add r3,r0,r3 <== NOT EXECUTED
rtems_libio_check_is_open(iop);
ffc2e7f8: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED
ffc2e7fc: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED
ffc2e800: 41 82 00 40 beq- ffc2e840 <fchmod+0x74> <== NOT EXECUTED
/*
* Now process the fchmod().
*/
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
ffc2e804: 70 09 00 04 andi. r9,r0,4 <== NOT EXECUTED
ffc2e808: 41 82 00 4c beq- ffc2e854 <fchmod+0x88> <== NOT EXECUTED
if ( !iop->handlers->fchmod_h )
ffc2e80c: 81 23 00 40 lwz r9,64(r3) <== NOT EXECUTED
ffc2e810: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2e814: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2e818: 41 9e 00 50 beq- cr7,ffc2e868 <fchmod+0x9c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode );
ffc2e81c: 81 23 00 24 lwz r9,36(r3) <== NOT EXECUTED
ffc2e820: 38 63 00 1c addi r3,r3,28 <== NOT EXECUTED
ffc2e824: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2e828: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2e82c: 4e 80 04 21 bctrl <== NOT EXECUTED
}
ffc2e830: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc2e834: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc2e838: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2e83c: 4e 80 00 20 blr <== NOT EXECUTED
{
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
ffc2e840: 48 01 e3 39 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc2e844: 38 00 00 09 li r0,9 <== NOT EXECUTED
ffc2e848: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc2e84c: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc2e850: 4b ff ff e0 b ffc2e830 <fchmod+0x64> <== NOT EXECUTED
/*
* Now process the fchmod().
*/
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
ffc2e854: 48 01 e3 25 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc2e858: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc2e85c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc2e860: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc2e864: 4b ff ff cc b ffc2e830 <fchmod+0x64> <== NOT EXECUTED
if ( !iop->handlers->fchmod_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc2e868: 48 01 e3 11 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc2e86c: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc2e870: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc2e874: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc2e878: 4b ff ff b8 b ffc2e830 <fchmod+0x64> <== NOT EXECUTED
ffc2e87c <fchown>:
int fchown(
int fd,
uid_t owner,
gid_t group
)
{
ffc2e87c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc2e880: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
ffc2e884: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
int fchown(
int fd,
uid_t owner,
gid_t group
)
{
ffc2e888: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
ffc2e88c: 80 09 34 8c lwz r0,13452(r9) <== NOT EXECUTED
ffc2e890: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED
ffc2e894: 40 9c 00 54 bge- cr7,ffc2e8e8 <fchown+0x6c> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
ffc2e898: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc2e89c: 80 09 35 b0 lwz r0,13744(r9) <== NOT EXECUTED
ffc2e8a0: 1c 63 00 48 mulli r3,r3,72 <== NOT EXECUTED
ffc2e8a4: 7c 60 1a 14 add r3,r0,r3 <== NOT EXECUTED
rtems_libio_check_is_open(iop);
ffc2e8a8: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED
ffc2e8ac: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED
ffc2e8b0: 41 82 00 38 beq- ffc2e8e8 <fchown+0x6c> <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
ffc2e8b4: 70 09 00 04 andi. r9,r0,4 <== NOT EXECUTED
ffc2e8b8: 41 82 00 44 beq- ffc2e8fc <fchown+0x80> <== NOT EXECUTED
if ( !iop->pathinfo.ops->chown_h )
ffc2e8bc: 81 23 00 28 lwz r9,40(r3) <== NOT EXECUTED
ffc2e8c0: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED
ffc2e8c4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2e8c8: 41 9e 00 48 beq- cr7,ffc2e910 <fchown+0x94> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group );
ffc2e8cc: 38 63 00 1c addi r3,r3,28 <== NOT EXECUTED
ffc2e8d0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2e8d4: 4e 80 04 21 bctrl <== NOT EXECUTED
}
ffc2e8d8: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc2e8dc: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc2e8e0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2e8e4: 4e 80 00 20 blr <== NOT EXECUTED
{
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
ffc2e8e8: 48 01 e2 91 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc2e8ec: 38 00 00 09 li r0,9 <== NOT EXECUTED
ffc2e8f0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc2e8f4: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc2e8f8: 4b ff ff e0 b ffc2e8d8 <fchown+0x5c> <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
ffc2e8fc: 48 01 e2 7d bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc2e900: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc2e904: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc2e908: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc2e90c: 4b ff ff cc b ffc2e8d8 <fchown+0x5c> <== NOT EXECUTED
if ( !iop->pathinfo.ops->chown_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc2e910: 48 01 e2 69 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc2e914: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc2e918: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc2e91c: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc2e920: 4b ff ff b8 b ffc2e8d8 <fchown+0x5c> <== NOT EXECUTED
ffc45e38 <fcntl>:
int fcntl(
int fd,
int cmd,
...
)
{
ffc45e38: 94 21 ff c0 stwu r1,-64(r1)
ffc45e3c: 7c 08 02 a6 mflr r0
int fd2;
int flags;
int mask;
int ret = 0;
rtems_libio_check_fd( fd );
ffc45e40: 3d 20 00 00 lis r9,0
int fcntl(
int fd,
int cmd,
...
)
{
ffc45e44: 90 01 00 44 stw r0,68(r1)
int fd2;
int flags;
int mask;
int ret = 0;
rtems_libio_check_fd( fd );
ffc45e48: 80 09 34 8c lwz r0,13452(r9)
...
)
{
int ret;
va_list ap;
va_start( ap, cmd );
ffc45e4c: 39 20 00 02 li r9,2
ffc45e50: 99 21 00 08 stb r9,8(r1)
ffc45e54: 39 21 00 48 addi r9,r1,72
int fd2;
int flags;
int mask;
int ret = 0;
rtems_libio_check_fd( fd );
ffc45e58: 7f 83 00 40 cmplw cr7,r3,r0
...
)
{
int ret;
va_list ap;
va_start( ap, cmd );
ffc45e5c: 91 21 00 0c stw r9,12(r1)
ffc45e60: 39 21 00 10 addi r9,r1,16
int fcntl(
int fd,
int cmd,
...
)
{
ffc45e64: 93 a1 00 34 stw r29,52(r1)
ffc45e68: 93 c1 00 38 stw r30,56(r1)
ffc45e6c: 93 e1 00 3c stw r31,60(r1)
ffc45e70: 90 a1 00 18 stw r5,24(r1)
ffc45e74: 90 c1 00 1c stw r6,28(r1)
ffc45e78: 90 e1 00 20 stw r7,32(r1)
int ret;
va_list ap;
va_start( ap, cmd );
ffc45e7c: 91 21 00 10 stw r9,16(r1)
int fd2;
int flags;
int mask;
int ret = 0;
rtems_libio_check_fd( fd );
ffc45e80: 40 9c 02 58 bge- cr7,ffc460d8 <fcntl+0x2a0>
iop = rtems_libio_iop( fd );
ffc45e84: 3f a0 00 00 lis r29,0
ffc45e88: 1c 63 00 48 mulli r3,r3,72
ffc45e8c: 81 7d 35 b0 lwz r11,13744(r29)
ffc45e90: 7f cb 1a 14 add r30,r11,r3
rtems_libio_check_is_open(iop);
ffc45e94: 80 7e 00 18 lwz r3,24(r30)
ffc45e98: 70 69 01 00 andi. r9,r3,256
ffc45e9c: 41 82 02 3c beq- ffc460d8 <fcntl+0x2a0>
/*
* This switch should contain all the cases from POSIX.
*/
switch ( cmd ) {
ffc45ea0: 2b 84 00 09 cmplwi cr7,r4,9
ffc45ea4: 40 9d 00 18 ble- cr7,ffc45ebc <fcntl+0x84>
errno = ENOTSUP;
ret = -1;
break;
default:
errno = EINVAL;
ffc45ea8: 48 00 6c d1 bl ffc4cb78 <__errno>
ffc45eac: 38 00 00 16 li r0,22
ffc45eb0: 90 03 00 00 stw r0,0(r3)
ffc45eb4: 3b e0 ff ff li r31,-1
ffc45eb8: 48 00 00 30 b ffc45ee8 <fcntl+0xb0>
/*
* This switch should contain all the cases from POSIX.
*/
switch ( cmd ) {
ffc45ebc: 3d 20 ff c7 lis r9,-57
ffc45ec0: 39 29 24 58 addi r9,r9,9304
ffc45ec4: 54 8a 10 3a rlwinm r10,r4,2,0,29
ffc45ec8: 7d 49 50 2e lwzx r10,r9,r10
ffc45ecc: 7d 2a 4a 14 add r9,r10,r9
ffc45ed0: 7d 29 03 a6 mtctr r9
ffc45ed4: 4e 80 04 20 bctr
errno = ENOTSUP;
ret = -1;
break;
case F_GETOWN: /* for sockets. */
errno = ENOTSUP;
ffc45ed8: 48 00 6c a1 bl ffc4cb78 <__errno>
ffc45edc: 38 00 00 86 li r0,134
ffc45ee0: 90 03 00 00 stw r0,0(r3)
ffc45ee4: 3b e0 ff ff li r31,-1
va_list ap;
va_start( ap, cmd );
ret = vfcntl(fd,cmd,ap);
va_end(ap);
return ret;
}
ffc45ee8: 80 01 00 44 lwz r0,68(r1)
ffc45eec: 7f e3 fb 78 mr r3,r31
ffc45ef0: 83 a1 00 34 lwz r29,52(r1)
ffc45ef4: 7c 08 03 a6 mtlr r0
ffc45ef8: 83 c1 00 38 lwz r30,56(r1)
ffc45efc: 83 e1 00 3c lwz r31,60(r1)
ffc45f00: 38 21 00 40 addi r1,r1,64
ffc45f04: 4e 80 00 20 blr
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 ) );
ffc45f08: 89 21 00 08 lbz r9,8(r1)
ffc45f0c: 2b 89 00 07 cmplwi cr7,r9,7
ffc45f10: 40 9d 01 b0 ble- cr7,ffc460c0 <fcntl+0x288>
ffc45f14: 81 21 00 0c lwz r9,12(r1) <== NOT EXECUTED
ffc45f18: 38 09 00 04 addi r0,r9,4 <== NOT EXECUTED
ffc45f1c: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
ffc45f20: 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);
ffc45f24: 3b e0 00 00 li r31,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 ) );
ffc45f28: 90 81 00 28 stw r4,40(r1)
ffc45f2c: 4b fc 1f f9 bl ffc07f24 <rtems_libio_fcntl_flags>
/*
* XXX If we are turning on append, should we seek to the end?
*/
iop->flags = (iop->flags & ~mask) | (flags & mask);
ffc45f30: 39 20 fd fe li r9,-514
ffc45f34: 80 1e 00 18 lwz r0,24(r30)
ffc45f38: 70 63 02 01 andi. r3,r3,513
ffc45f3c: 80 81 00 28 lwz r4,40(r1)
ffc45f40: 7d 20 00 38 and r0,r9,r0
ffc45f44: 7c 60 03 78 or r0,r3,r0
ffc45f48: 90 1e 00 18 stw r0,24(r30)
ffc45f4c: 48 00 00 1c b ffc45f68 <fcntl+0x130>
else
iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;
break;
case F_GETFL: /* more flags (cloexec) */
ret = rtems_libio_to_fcntl_flags( iop->flags );
ffc45f50: 90 81 00 28 stw r4,40(r1)
ffc45f54: 4b fc 1c b1 bl ffc07c04 <rtems_libio_to_fcntl_flags>
ffc45f58: 7c 7f 1b 78 mr r31,r3
ffc45f5c: 80 81 00 28 lwz r4,40(r1)
/*
* If we got this far successfully, then we give the optional
* filesystem specific handler a chance to process this.
*/
if (ret >= 0) {
ffc45f60: 2f 9f 00 00 cmpwi cr7,r31,0
ffc45f64: 41 bc ff 84 blt- cr7,ffc45ee8 <fcntl+0xb0>
if (iop->handlers->fcntl_h) {
ffc45f68: 81 3e 00 40 lwz r9,64(r30)
ffc45f6c: 80 09 00 30 lwz r0,48(r9)
ffc45f70: 2f 80 00 00 cmpwi cr7,r0,0
ffc45f74: 41 be ff 74 beq- cr7,ffc45ee8 <fcntl+0xb0>
int err = (*iop->handlers->fcntl_h)( cmd, iop );
ffc45f78: 7c 83 23 78 mr r3,r4
ffc45f7c: 7c 09 03 a6 mtctr r0
ffc45f80: 7f c4 f3 78 mr r4,r30
ffc45f84: 4e 80 04 21 bctrl
if (err) {
ffc45f88: 7c 7e 1b 79 mr. r30,r3
ffc45f8c: 41 82 ff 5c beq+ ffc45ee8 <fcntl+0xb0>
errno = err;
ffc45f90: 48 00 6b e9 bl ffc4cb78 <__errno> <== NOT EXECUTED
va_list ap;
va_start( ap, cmd );
ret = vfcntl(fd,cmd,ap);
va_end(ap);
return ret;
}
ffc45f94: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED
if (ret >= 0) {
if (iop->handlers->fcntl_h) {
int err = (*iop->handlers->fcntl_h)( cmd, iop );
if (err) {
errno = err;
ffc45f98: 3b e0 ff ff li r31,-1 <== NOT EXECUTED
ffc45f9c: 93 c3 00 00 stw r30,0(r3) <== NOT EXECUTED
va_list ap;
va_start( ap, cmd );
ret = vfcntl(fd,cmd,ap);
va_end(ap);
return ret;
}
ffc45fa0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc45fa4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc45fa8: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED
ffc45fac: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED
ffc45fb0: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED
ffc45fb4: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED
ffc45fb8: 4e 80 00 20 blr <== NOT EXECUTED
* if a new process is exec()'ed. Since RTEMS does not support
* processes, then we can ignore this one except to make
* F_GETFD work.
*/
if ( va_arg( ap, int ) )
ffc45fbc: 89 21 00 08 lbz r9,8(r1)
ffc45fc0: 2b 89 00 07 cmplwi cr7,r9,7
ffc45fc4: 41 9d 00 ec bgt- cr7,ffc460b0 <fcntl+0x278>
ffc45fc8: 38 09 00 01 addi r0,r9,1
ffc45fcc: 81 61 00 10 lwz r11,16(r1)
ffc45fd0: 55 29 10 3a rlwinm r9,r9,2,0,29
ffc45fd4: 98 01 00 08 stb r0,8(r1)
ffc45fd8: 7d 2b 4a 14 add r9,r11,r9
ffc45fdc: 80 09 00 00 lwz r0,0(r9)
ffc45fe0: 2f 80 00 00 cmpwi cr7,r0,0
ffc45fe4: 41 9e 01 08 beq- cr7,ffc460ec <fcntl+0x2b4>
iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;
ffc45fe8: 60 63 08 00 ori r3,r3,2048
ffc45fec: 90 7e 00 18 stw r3,24(r30)
ffc45ff0: 3b e0 00 00 li r31,0
ffc45ff4: 4b ff ff 74 b ffc45f68 <fcntl+0x130>
diop->pathinfo = iop->pathinfo;
ret = (int) (diop - rtems_libio_iops);
break;
case F_GETFD: /* get f_flags */
ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0);
ffc45ff8: 54 7f af fe rlwinm r31,r3,21,31,31
ffc45ffc: 4b ff ff 6c b ffc45f68 <fcntl+0x130>
* This switch should contain all the cases from POSIX.
*/
switch ( cmd ) {
case F_DUPFD: /* dup */
fd2 = va_arg( ap, int );
ffc46000: 89 21 00 08 lbz r9,8(r1)
ffc46004: 2b 89 00 07 cmplwi cr7,r9,7
ffc46008: 41 9d 00 98 bgt- cr7,ffc460a0 <fcntl+0x268>
ffc4600c: 39 49 00 01 addi r10,r9,1
ffc46010: 81 01 00 10 lwz r8,16(r1)
ffc46014: 55 29 10 3a rlwinm r9,r9,2,0,29
ffc46018: 99 41 00 08 stb r10,8(r1)
ffc4601c: 7d 28 4a 14 add r9,r8,r9
ffc46020: 81 29 00 00 lwz r9,0(r9)
if ( fd2 )
ffc46024: 2f 89 00 00 cmpwi cr7,r9,0
ffc46028: 41 9e 00 d4 beq- cr7,ffc460fc <fcntl+0x2c4>
diop = rtems_libio_iop( fd2 );
ffc4602c: 7f 80 48 40 cmplw cr7,r0,r9 <== NOT EXECUTED
ffc46030: 3b e0 00 00 li r31,0 <== NOT EXECUTED
ffc46034: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc46038: 40 9d 00 10 ble- cr7,ffc46048 <fcntl+0x210> <== NOT EXECUTED
ffc4603c: 1d 29 00 48 mulli r9,r9,72 <== NOT EXECUTED
ffc46040: 7c 6b 4a 14 add r3,r11,r9 <== NOT EXECUTED
ffc46044: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED
}
diop->handlers = iop->handlers;
diop->file_info = iop->file_info;
diop->flags = iop->flags;
diop->pathinfo = iop->pathinfo;
ffc46048: 81 1e 00 1c lwz r8,28(r30)
ret = (int) (diop - rtems_libio_iops);
ffc4604c: 7f eb f8 50 subf r31,r11,r31
}
diop->handlers = iop->handlers;
diop->file_info = iop->file_info;
diop->flags = iop->flags;
diop->pathinfo = iop->pathinfo;
ffc46050: 81 5e 00 20 lwz r10,32(r30)
ret = (int) (diop - rtems_libio_iops);
ffc46054: 7f ff 1e 70 srawi r31,r31,3
}
diop->handlers = iop->handlers;
diop->file_info = iop->file_info;
diop->flags = iop->flags;
diop->pathinfo = iop->pathinfo;
ffc46058: 81 3e 00 24 lwz r9,36(r30)
ffc4605c: 80 1e 00 28 lwz r0,40(r30)
ffc46060: 91 03 00 1c stw r8,28(r3)
ret = (int) (diop - rtems_libio_iops);
ffc46064: 3d 00 38 e3 lis r8,14563
ffc46068: 61 08 8e 39 ori r8,r8,36409
}
diop->handlers = iop->handlers;
diop->file_info = iop->file_info;
diop->flags = iop->flags;
diop->pathinfo = iop->pathinfo;
ffc4606c: 91 23 00 24 stw r9,36(r3)
ret = (int) (diop - rtems_libio_iops);
ffc46070: 7f ff 41 d6 mullw r31,r31,r8
}
diop->handlers = iop->handlers;
diop->file_info = iop->file_info;
diop->flags = iop->flags;
diop->pathinfo = iop->pathinfo;
ffc46074: 90 03 00 28 stw r0,40(r3)
ffc46078: 91 43 00 20 stw r10,32(r3)
ret = -1;
break;
}
}
diop->handlers = iop->handlers;
ffc4607c: 81 7e 00 40 lwz r11,64(r30)
diop->file_info = iop->file_info;
ffc46080: 81 3e 00 3c lwz r9,60(r30)
diop->flags = iop->flags;
ffc46084: 80 1e 00 18 lwz r0,24(r30)
diop->pathinfo = iop->pathinfo;
ffc46088: 81 5e 00 2c lwz r10,44(r30)
ret = -1;
break;
}
}
diop->handlers = iop->handlers;
ffc4608c: 91 63 00 40 stw r11,64(r3)
diop->file_info = iop->file_info;
diop->flags = iop->flags;
diop->pathinfo = iop->pathinfo;
ffc46090: 91 43 00 2c stw r10,44(r3)
break;
}
}
diop->handlers = iop->handlers;
diop->file_info = iop->file_info;
ffc46094: 91 23 00 3c stw r9,60(r3)
diop->flags = iop->flags;
ffc46098: 90 03 00 18 stw r0,24(r3)
ffc4609c: 4b ff fe c4 b ffc45f60 <fcntl+0x128>
* This switch should contain all the cases from POSIX.
*/
switch ( cmd ) {
case F_DUPFD: /* dup */
fd2 = va_arg( ap, int );
ffc460a0: 81 21 00 0c lwz r9,12(r1) <== NOT EXECUTED
ffc460a4: 39 49 00 04 addi r10,r9,4 <== NOT EXECUTED
ffc460a8: 91 41 00 0c stw r10,12(r1) <== NOT EXECUTED
ffc460ac: 4b ff ff 74 b ffc46020 <fcntl+0x1e8> <== NOT EXECUTED
* if a new process is exec()'ed. Since RTEMS does not support
* processes, then we can ignore this one except to make
* F_GETFD work.
*/
if ( va_arg( ap, int ) )
ffc460b0: 81 21 00 0c lwz r9,12(r1) <== NOT EXECUTED
ffc460b4: 38 09 00 04 addi r0,r9,4 <== NOT EXECUTED
ffc460b8: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
ffc460bc: 4b ff ff 20 b ffc45fdc <fcntl+0x1a4> <== NOT EXECUTED
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 ) );
ffc460c0: 81 61 00 10 lwz r11,16(r1)
ffc460c4: 38 09 00 01 addi r0,r9,1
ffc460c8: 55 29 10 3a rlwinm r9,r9,2,0,29
ffc460cc: 98 01 00 08 stb r0,8(r1)
ffc460d0: 7d 2b 4a 14 add r9,r11,r9
ffc460d4: 4b ff fe 4c b ffc45f20 <fcntl+0xe8>
int mask;
int ret = 0;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
ffc460d8: 48 00 6a a1 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc460dc: 38 00 00 09 li r0,9 <== NOT EXECUTED
ffc460e0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc460e4: 3b e0 ff ff li r31,-1 <== NOT EXECUTED
ffc460e8: 4b ff fe 00 b ffc45ee8 <fcntl+0xb0> <== NOT EXECUTED
*/
if ( va_arg( ap, int ) )
iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;
else
iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;
ffc460ec: 54 63 05 66 rlwinm r3,r3,0,21,19 <== NOT EXECUTED
ffc460f0: 90 7e 00 18 stw r3,24(r30) <== NOT EXECUTED
ffc460f4: 3b e0 00 00 li r31,0 <== NOT EXECUTED
ffc460f8: 4b ff fe 70 b ffc45f68 <fcntl+0x130> <== NOT EXECUTED
fd2 = va_arg( ap, int );
if ( fd2 )
diop = rtems_libio_iop( fd2 );
else {
/* allocate a file control block */
diop = rtems_libio_allocate();
ffc460fc: 90 81 00 28 stw r4,40(r1)
ffc46100: 4b fc 1d 45 bl ffc07e44 <rtems_libio_allocate>
if ( diop == 0 ) {
ffc46104: 2c 03 00 00 cmpwi r3,0
ffc46108: 3b e0 ff ff li r31,-1
ffc4610c: 80 81 00 28 lwz r4,40(r1)
ffc46110: 41 a2 fd d8 beq- ffc45ee8 <fcntl+0xb0>
ffc46114: 81 7d 35 b0 lwz r11,13744(r29)
ffc46118: 7c 7f 1b 78 mr r31,r3
ffc4611c: 4b ff ff 2c b ffc46048 <fcntl+0x210>
ffc10328 <fifo_open>:
*/
int fifo_open(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
ffc10328: 94 21 ff d0 stwu r1,-48(r1)
ffc1032c: 7c 08 02 a6 mflr r0
)
{
pipe_control_t *pipe;
int err = 0;
if (rtems_semaphore_obtain(rtems_pipe_semaphore,
ffc10330: 38 a0 00 00 li r5,0
*/
int fifo_open(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
ffc10334: 93 c1 00 28 stw r30,40(r1)
)
{
pipe_control_t *pipe;
int err = 0;
if (rtems_semaphore_obtain(rtems_pipe_semaphore,
ffc10338: 3f c0 00 00 lis r30,0
*/
int fifo_open(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
ffc1033c: 93 e1 00 2c stw r31,44(r1)
ffc10340: 7c 7f 1b 78 mr r31,r3
)
{
pipe_control_t *pipe;
int err = 0;
if (rtems_semaphore_obtain(rtems_pipe_semaphore,
ffc10344: 80 7e 28 fc lwz r3,10492(r30)
*/
int fifo_open(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
ffc10348: 93 a1 00 24 stw r29,36(r1)
ffc1034c: 7c 9d 23 78 mr r29,r4
)
{
pipe_control_t *pipe;
int err = 0;
if (rtems_semaphore_obtain(rtems_pipe_semaphore,
ffc10350: 38 80 00 00 li r4,0
*/
int fifo_open(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
ffc10354: 93 41 00 18 stw r26,24(r1)
)
{
pipe_control_t *pipe;
int err = 0;
if (rtems_semaphore_obtain(rtems_pipe_semaphore,
ffc10358: 3b 40 ff fc li r26,-4
*/
int fifo_open(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
ffc1035c: 90 01 00 34 stw r0,52(r1)
ffc10360: 93 61 00 1c stw r27,28(r1)
ffc10364: 93 81 00 20 stw r28,32(r1)
)
{
pipe_control_t *pipe;
int err = 0;
if (rtems_semaphore_obtain(rtems_pipe_semaphore,
ffc10368: 4b ff 83 a9 bl ffc08710 <rtems_semaphore_obtain>
ffc1036c: 2f 83 00 00 cmpwi cr7,r3,0
ffc10370: 40 9e 00 7c bne- cr7,ffc103ec <fifo_open+0xc4>
RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL)
return -EINTR;
pipe = *pipep;
ffc10374: 83 9f 00 00 lwz r28,0(r31) <== NOT EXECUTED
if (pipe == NULL) {
ffc10378: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED
ffc1037c: 41 9e 00 9c beq- cr7,ffc10418 <fifo_open+0xf0> <== NOT EXECUTED
err = pipe_alloc(&pipe);
if (err)
goto out;
}
if (! PIPE_LOCK(pipe))
ffc10380: 80 7c 00 28 lwz r3,40(r28) <== NOT EXECUTED
ffc10384: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc10388: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc1038c: 4b ff 83 85 bl ffc08710 <rtems_semaphore_obtain> <== NOT EXECUTED
err = -EINTR;
if (*pipep == NULL) {
ffc10390: 80 1f 00 00 lwz r0,0(r31) <== NOT EXECUTED
err = pipe_alloc(&pipe);
if (err)
goto out;
}
if (! PIPE_LOCK(pipe))
ffc10394: 30 63 ff ff addic r3,r3,-1 <== NOT EXECUTED
ffc10398: 7c 63 19 10 subfe r3,r3,r3 <== NOT EXECUTED
err = -EINTR;
if (*pipep == NULL) {
ffc1039c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
err = pipe_alloc(&pipe);
if (err)
goto out;
}
if (! PIPE_LOCK(pipe))
ffc103a0: 54 7a 07 7a rlwinm r26,r3,0,29,29 <== NOT EXECUTED
ffc103a4: 3b 5a ff fc addi r26,r26,-4 <== NOT EXECUTED
err = -EINTR;
if (*pipep == NULL) {
ffc103a8: 41 9e 02 bc beq- cr7,ffc10664 <fifo_open+0x33c> <== NOT EXECUTED
else
*pipep = pipe;
}
out:
rtems_semaphore_release(rtems_pipe_semaphore);
ffc103ac: 80 7e 28 fc lwz r3,10492(r30) <== NOT EXECUTED
ffc103b0: 4b ff 84 c1 bl ffc08870 <rtems_semaphore_release> <== NOT EXECUTED
pipe_control_t *pipe;
uint prevCounter;
int err;
err = pipe_new(pipep);
if (err)
ffc103b4: 2f 9a 00 00 cmpwi cr7,r26,0 <== NOT EXECUTED
ffc103b8: 40 9e 00 34 bne- cr7,ffc103ec <fifo_open+0xc4> <== NOT EXECUTED
return err;
pipe = *pipep;
switch (LIBIO_ACCMODE(iop)) {
ffc103bc: 81 3d 00 18 lwz r9,24(r29) <== NOT EXECUTED
int err;
err = pipe_new(pipep);
if (err)
return err;
pipe = *pipep;
ffc103c0: 83 df 00 00 lwz r30,0(r31) <== NOT EXECUTED
switch (LIBIO_ACCMODE(iop)) {
ffc103c4: 55 20 07 7c rlwinm r0,r9,0,29,30 <== NOT EXECUTED
ffc103c8: 2f 80 00 04 cmpwi cr7,r0,4 <== NOT EXECUTED
ffc103cc: 41 9e 02 08 beq- cr7,ffc105d4 <fifo_open+0x2ac> <== NOT EXECUTED
ffc103d0: 2f 80 00 06 cmpwi cr7,r0,6 <== NOT EXECUTED
ffc103d4: 41 9e 01 b0 beq- cr7,ffc10584 <fifo_open+0x25c> <== NOT EXECUTED
ffc103d8: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED
ffc103dc: 41 9e 01 14 beq- cr7,ffc104f0 <fifo_open+0x1c8> <== NOT EXECUTED
if (pipe->Writers ++ == 0)
PIPE_WAKEUPREADERS(pipe);
break;
}
PIPE_UNLOCK(pipe);
ffc103e0: 80 7e 00 28 lwz r3,40(r30) <== NOT EXECUTED
ffc103e4: 3b 40 00 00 li r26,0 <== NOT EXECUTED
ffc103e8: 4b ff 84 89 bl ffc08870 <rtems_semaphore_release> <== NOT EXECUTED
return 0;
out_error:
pipe_release(pipep, iop);
return err;
}
ffc103ec: 80 01 00 34 lwz r0,52(r1)
ffc103f0: 7f 43 d3 78 mr r3,r26
ffc103f4: 83 61 00 1c lwz r27,28(r1)
ffc103f8: 7c 08 03 a6 mtlr r0
ffc103fc: 83 41 00 18 lwz r26,24(r1)
ffc10400: 83 81 00 20 lwz r28,32(r1)
ffc10404: 83 a1 00 24 lwz r29,36(r1)
ffc10408: 83 c1 00 28 lwz r30,40(r1)
ffc1040c: 83 e1 00 2c lwz r31,44(r1)
ffc10410: 38 21 00 30 addi r1,r1,48
ffc10414: 4e 80 00 20 blr
{
static char c = 'a';
pipe_control_t *pipe;
int err = -ENOMEM;
pipe = malloc(sizeof(pipe_control_t));
ffc10418: 38 60 00 34 li r3,52 <== NOT EXECUTED
ffc1041c: 4b ff 45 59 bl ffc04974 <malloc> <== NOT EXECUTED
if (pipe == NULL)
ffc10420: 3b 40 ff f4 li r26,-12 <== NOT EXECUTED
ffc10424: 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));
ffc10428: 7c 7b 1b 78 mr r27,r3 <== NOT EXECUTED
ffc1042c: 7c 7c 1b 78 mr r28,r3 <== NOT EXECUTED
if (pipe == NULL)
ffc10430: 41 be ff 7c beq- cr7,ffc103ac <fifo_open+0x84> <== NOT EXECUTED
return err;
memset(pipe, 0, sizeof(pipe_control_t));
ffc10434: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc10438: 38 a0 00 34 li r5,52 <== NOT EXECUTED
ffc1043c: 48 00 24 65 bl ffc128a0 <memset> <== NOT EXECUTED
pipe->Size = PIPE_BUF;
ffc10440: 38 00 02 00 li r0,512 <== NOT EXECUTED
pipe->Buffer = malloc(pipe->Size);
ffc10444: 38 60 02 00 li r3,512 <== NOT EXECUTED
pipe = malloc(sizeof(pipe_control_t));
if (pipe == NULL)
return err;
memset(pipe, 0, sizeof(pipe_control_t));
pipe->Size = PIPE_BUF;
ffc10448: 90 1b 00 04 stw r0,4(r27) <== NOT EXECUTED
pipe->Buffer = malloc(pipe->Size);
ffc1044c: 4b ff 45 29 bl ffc04974 <malloc> <== NOT EXECUTED
if (! pipe->Buffer)
ffc10450: 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);
ffc10454: 90 7b 00 00 stw r3,0(r27) <== NOT EXECUTED
if (! pipe->Buffer)
ffc10458: 41 9e 02 40 beq- cr7,ffc10698 <fifo_open+0x370> <== NOT EXECUTED
goto err_buf;
err = -EINTR;
if (rtems_barrier_create(
ffc1045c: 3f 40 00 00 lis r26,0 <== NOT EXECUTED
ffc10460: 88 7a 21 bc lbz r3,8636(r26) <== NOT EXECUTED
ffc10464: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc10468: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc1046c: 64 63 50 49 oris r3,r3,20553 <== NOT EXECUTED
ffc10470: 60 63 72 00 ori r3,r3,29184 <== NOT EXECUTED
ffc10474: 38 db 00 2c addi r6,r27,44 <== NOT EXECUTED
ffc10478: 48 00 07 0d bl ffc10b84 <rtems_barrier_create> <== NOT EXECUTED
ffc1047c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc10480: 40 9e 02 0c bne- cr7,ffc1068c <fifo_open+0x364> <== 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(
ffc10484: 88 7a 21 bc lbz r3,8636(r26) <== NOT EXECUTED
ffc10488: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc1048c: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc10490: 64 63 50 49 oris r3,r3,20553 <== NOT EXECUTED
ffc10494: 60 63 77 00 ori r3,r3,30464 <== NOT EXECUTED
ffc10498: 38 db 00 30 addi r6,r27,48 <== NOT EXECUTED
ffc1049c: 48 00 06 e9 bl ffc10b84 <rtems_barrier_create> <== NOT EXECUTED
ffc104a0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc104a4: 40 9e 01 e0 bne- cr7,ffc10684 <fifo_open+0x35c> <== 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(
ffc104a8: 88 7a 21 bc lbz r3,8636(r26) <== NOT EXECUTED
ffc104ac: 38 80 00 01 li r4,1 <== NOT EXECUTED
ffc104b0: 38 a0 00 10 li r5,16 <== NOT EXECUTED
ffc104b4: 64 63 50 49 oris r3,r3,20553 <== NOT EXECUTED
ffc104b8: 60 63 73 00 ori r3,r3,29440 <== NOT EXECUTED
ffc104bc: 38 c0 00 00 li r6,0 <== NOT EXECUTED
ffc104c0: 38 fb 00 28 addi r7,r27,40 <== NOT EXECUTED
ffc104c4: 4b ff 7f 51 bl ffc08414 <rtems_semaphore_create> <== NOT EXECUTED
ffc104c8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc104cc: 40 9e 01 b0 bne- cr7,ffc1067c <fifo_open+0x354> <== NOT EXECUTED
#ifdef RTEMS_POSIX_API
pipe_interruptible(pipe);
#endif
*pipep = pipe;
if (c ++ == 'z')
ffc104d0: 89 3a 21 bc lbz r9,8636(r26) <== NOT EXECUTED
ffc104d4: 2f 89 00 7a cmpwi cr7,r9,122 <== NOT EXECUTED
ffc104d8: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED
ffc104dc: 99 3a 21 bc stb r9,8636(r26) <== NOT EXECUTED
ffc104e0: 40 9e fe a0 bne+ cr7,ffc10380 <fifo_open+0x58> <== NOT EXECUTED
c = 'a';
ffc104e4: 38 00 00 61 li r0,97 <== NOT EXECUTED
ffc104e8: 98 1a 21 bc stb r0,8636(r26) <== NOT EXECUTED
ffc104ec: 4b ff fe 94 b ffc10380 <fifo_open+0x58> <== NOT EXECUTED
pipe = *pipep;
switch (LIBIO_ACCMODE(iop)) {
case LIBIO_FLAGS_READ:
pipe->readerCounter ++;
if (pipe->Readers ++ == 0)
ffc104f0: 81 3e 00 10 lwz r9,16(r30) <== NOT EXECUTED
return err;
pipe = *pipep;
switch (LIBIO_ACCMODE(iop)) {
case LIBIO_FLAGS_READ:
pipe->readerCounter ++;
ffc104f4: 81 7e 00 20 lwz r11,32(r30) <== NOT EXECUTED
if (pipe->Readers ++ == 0)
ffc104f8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
return err;
pipe = *pipep;
switch (LIBIO_ACCMODE(iop)) {
case LIBIO_FLAGS_READ:
pipe->readerCounter ++;
ffc104fc: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED
if (pipe->Readers ++ == 0)
ffc10500: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED
return err;
pipe = *pipep;
switch (LIBIO_ACCMODE(iop)) {
case LIBIO_FLAGS_READ:
pipe->readerCounter ++;
ffc10504: 90 1e 00 20 stw r0,32(r30) <== NOT EXECUTED
if (pipe->Readers ++ == 0)
ffc10508: 91 3e 00 10 stw r9,16(r30) <== NOT EXECUTED
ffc1050c: 41 9e 01 dc beq- cr7,ffc106e8 <fifo_open+0x3c0> <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
if (pipe->Writers == 0) {
ffc10510: 80 1e 00 14 lwz r0,20(r30) <== NOT EXECUTED
ffc10514: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc10518: 40 be fe c8 bne- cr7,ffc103e0 <fifo_open+0xb8> <== NOT EXECUTED
/* Not an error */
if (LIBIO_NODELAY(iop))
ffc1051c: 80 1d 00 18 lwz r0,24(r29) <== NOT EXECUTED
ffc10520: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED
ffc10524: 40 a2 fe bc bne- ffc103e0 <fifo_open+0xb8> <== NOT EXECUTED
break;
prevCounter = pipe->writerCounter;
ffc10528: 83 9e 00 24 lwz r28,36(r30) <== NOT EXECUTED
ffc1052c: 48 00 00 20 b ffc1054c <fifo_open+0x224> <== NOT EXECUTED
/* Wait until a writer opens the pipe */
do {
PIPE_UNLOCK(pipe);
if (! PIPE_READWAIT(pipe))
goto out_error;
if (! PIPE_LOCK(pipe))
ffc10530: 80 7e 00 28 lwz r3,40(r30) <== NOT EXECUTED
ffc10534: 4b ff 81 dd bl ffc08710 <rtems_semaphore_obtain> <== NOT EXECUTED
ffc10538: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc1053c: 40 9e 00 34 bne- cr7,ffc10570 <fifo_open+0x248> <== NOT EXECUTED
goto out_error;
} while (prevCounter == pipe->writerCounter);
ffc10540: 80 1e 00 24 lwz r0,36(r30) <== NOT EXECUTED
ffc10544: 7f 80 e0 00 cmpw cr7,r0,r28 <== NOT EXECUTED
ffc10548: 40 be fe 98 bne- cr7,ffc103e0 <fifo_open+0xb8> <== NOT EXECUTED
prevCounter = pipe->writerCounter;
err = -EINTR;
/* Wait until a writer opens the pipe */
do {
PIPE_UNLOCK(pipe);
ffc1054c: 80 7e 00 28 lwz r3,40(r30) <== NOT EXECUTED
ffc10550: 4b ff 83 21 bl ffc08870 <rtems_semaphore_release> <== NOT EXECUTED
if (! PIPE_READWAIT(pipe))
ffc10554: 80 7e 00 2c lwz r3,44(r30) <== NOT EXECUTED
ffc10558: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc1055c: 48 00 08 85 bl ffc10de0 <rtems_barrier_wait> <== NOT EXECUTED
goto out_error;
if (! PIPE_LOCK(pipe))
ffc10560: 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))
ffc10564: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
goto out_error;
if (! PIPE_LOCK(pipe))
ffc10568: 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))
ffc1056c: 41 9e ff c4 beq+ cr7,ffc10530 <fifo_open+0x208> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
break;
}
PIPE_UNLOCK(pipe);
return 0;
ffc10570: 3b 40 ff fc li r26,-4 <== NOT EXECUTED
out_error:
pipe_release(pipep, iop);
ffc10574: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc10578: 7f a4 eb 78 mr r4,r29 <== NOT EXECUTED
ffc1057c: 4b ff fc 05 bl ffc10180 <pipe_release> <== NOT EXECUTED
return err;
ffc10580: 4b ff fe 6c b ffc103ec <fifo_open+0xc4> <== NOT EXECUTED
}
break;
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
if (pipe->Readers ++ == 0)
ffc10584: 81 3e 00 10 lwz r9,16(r30) <== NOT EXECUTED
} while (prevCounter == pipe->readerCounter);
}
break;
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
ffc10588: 81 7e 00 20 lwz r11,32(r30) <== NOT EXECUTED
if (pipe->Readers ++ == 0)
ffc1058c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
} while (prevCounter == pipe->readerCounter);
}
break;
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
ffc10590: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED
if (pipe->Readers ++ == 0)
ffc10594: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED
} while (prevCounter == pipe->readerCounter);
}
break;
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
ffc10598: 90 1e 00 20 stw r0,32(r30) <== NOT EXECUTED
if (pipe->Readers ++ == 0)
ffc1059c: 91 3e 00 10 stw r9,16(r30) <== NOT EXECUTED
ffc105a0: 41 9e 01 38 beq- cr7,ffc106d8 <fifo_open+0x3b0> <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
pipe->writerCounter ++;
if (pipe->Writers ++ == 0)
ffc105a4: 81 3e 00 14 lwz r9,20(r30) <== NOT EXECUTED
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
if (pipe->Readers ++ == 0)
PIPE_WAKEUPWRITERS(pipe);
pipe->writerCounter ++;
ffc105a8: 81 7e 00 24 lwz r11,36(r30) <== NOT EXECUTED
if (pipe->Writers ++ == 0)
ffc105ac: 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 ++;
ffc105b0: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED
if (pipe->Writers ++ == 0)
ffc105b4: 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 ++;
ffc105b8: 90 1e 00 24 stw r0,36(r30) <== NOT EXECUTED
if (pipe->Writers ++ == 0)
ffc105bc: 91 3e 00 14 stw r9,20(r30) <== NOT EXECUTED
ffc105c0: 40 9e fe 20 bne+ cr7,ffc103e0 <fifo_open+0xb8> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
ffc105c4: 80 7e 00 2c lwz r3,44(r30) <== NOT EXECUTED
ffc105c8: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED
ffc105cc: 48 00 07 7d bl ffc10d48 <rtems_barrier_release> <== NOT EXECUTED
ffc105d0: 4b ff fe 10 b ffc103e0 <fifo_open+0xb8> <== NOT EXECUTED
} while (prevCounter == pipe->writerCounter);
}
break;
case LIBIO_FLAGS_WRITE:
if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {
ffc105d4: 80 1e 00 10 lwz r0,16(r30) <== NOT EXECUTED
ffc105d8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc105dc: 40 9e 00 10 bne- cr7,ffc105ec <fifo_open+0x2c4> <== NOT EXECUTED
ffc105e0: 71 2b 00 01 andi. r11,r9,1 <== NOT EXECUTED
ffc105e4: 3b 40 ff fa li r26,-6 <== NOT EXECUTED
ffc105e8: 40 a2 ff 8c bne- ffc10574 <fifo_open+0x24c> <== NOT EXECUTED
err = -ENXIO;
goto out_error;
}
pipe->writerCounter ++;
if (pipe->Writers ++ == 0)
ffc105ec: 81 3e 00 14 lwz r9,20(r30) <== NOT EXECUTED
if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {
err = -ENXIO;
goto out_error;
}
pipe->writerCounter ++;
ffc105f0: 81 7e 00 24 lwz r11,36(r30) <== NOT EXECUTED
if (pipe->Writers ++ == 0)
ffc105f4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {
err = -ENXIO;
goto out_error;
}
pipe->writerCounter ++;
ffc105f8: 39 6b 00 01 addi r11,r11,1 <== NOT EXECUTED
if (pipe->Writers ++ == 0)
ffc105fc: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED
if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {
err = -ENXIO;
goto out_error;
}
pipe->writerCounter ++;
ffc10600: 91 7e 00 24 stw r11,36(r30) <== NOT EXECUTED
if (pipe->Writers ++ == 0)
ffc10604: 91 3e 00 14 stw r9,20(r30) <== NOT EXECUTED
ffc10608: 41 9e 00 f0 beq- cr7,ffc106f8 <fifo_open+0x3d0> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
if (pipe->Readers == 0) {
ffc1060c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc10610: 40 be fd d0 bne- cr7,ffc103e0 <fifo_open+0xb8> <== NOT EXECUTED
prevCounter = pipe->readerCounter;
ffc10614: 83 9e 00 20 lwz r28,32(r30) <== NOT EXECUTED
ffc10618: 48 00 00 20 b ffc10638 <fifo_open+0x310> <== NOT EXECUTED
err = -EINTR;
do {
PIPE_UNLOCK(pipe);
if (! PIPE_WRITEWAIT(pipe))
goto out_error;
if (! PIPE_LOCK(pipe))
ffc1061c: 80 7e 00 28 lwz r3,40(r30) <== NOT EXECUTED
ffc10620: 4b ff 80 f1 bl ffc08710 <rtems_semaphore_obtain> <== NOT EXECUTED
ffc10624: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc10628: 40 be ff 48 bne- cr7,ffc10570 <fifo_open+0x248> <== NOT EXECUTED
goto out_error;
} while (prevCounter == pipe->readerCounter);
ffc1062c: 80 1e 00 20 lwz r0,32(r30) <== NOT EXECUTED
ffc10630: 7f 80 e0 00 cmpw cr7,r0,r28 <== NOT EXECUTED
ffc10634: 40 be fd ac bne- cr7,ffc103e0 <fifo_open+0xb8> <== NOT EXECUTED
if (pipe->Readers == 0) {
prevCounter = pipe->readerCounter;
err = -EINTR;
do {
PIPE_UNLOCK(pipe);
ffc10638: 80 7e 00 28 lwz r3,40(r30) <== NOT EXECUTED
ffc1063c: 4b ff 82 35 bl ffc08870 <rtems_semaphore_release> <== NOT EXECUTED
if (! PIPE_WRITEWAIT(pipe))
ffc10640: 80 7e 00 30 lwz r3,48(r30) <== NOT EXECUTED
ffc10644: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc10648: 48 00 07 99 bl ffc10de0 <rtems_barrier_wait> <== NOT EXECUTED
goto out_error;
if (! PIPE_LOCK(pipe))
ffc1064c: 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))
ffc10650: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
goto out_error;
if (! PIPE_LOCK(pipe))
ffc10654: 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))
ffc10658: 41 9e ff c4 beq+ cr7,ffc1061c <fifo_open+0x2f4> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
break;
}
PIPE_UNLOCK(pipe);
return 0;
ffc1065c: 3b 40 ff fc li r26,-4 <== NOT EXECUTED
ffc10660: 4b ff ff 14 b ffc10574 <fifo_open+0x24c> <== NOT EXECUTED
if (! PIPE_LOCK(pipe))
err = -EINTR;
if (*pipep == NULL) {
if (err)
ffc10664: 2f 9a 00 00 cmpwi cr7,r26,0 <== NOT EXECUTED
ffc10668: 40 9e 00 3c bne- cr7,ffc106a4 <fifo_open+0x37c> <== NOT EXECUTED
pipe_free(pipe);
else
*pipep = pipe;
ffc1066c: 93 9f 00 00 stw r28,0(r31) <== NOT EXECUTED
}
out:
rtems_semaphore_release(rtems_pipe_semaphore);
ffc10670: 80 7e 28 fc lwz r3,10492(r30) <== NOT EXECUTED
ffc10674: 4b ff 81 fd bl ffc08870 <rtems_semaphore_release> <== NOT EXECUTED
ffc10678: 4b ff fd 44 b ffc103bc <fifo_open+0x94> <== NOT EXECUTED
if (c ++ == 'z')
c = 'a';
return 0;
err_sem:
rtems_barrier_delete(pipe->writeBarrier);
ffc1067c: 80 7b 00 30 lwz r3,48(r27) <== NOT EXECUTED
ffc10680: 48 00 06 41 bl ffc10cc0 <rtems_barrier_delete> <== NOT EXECUTED
err_wbar:
rtems_barrier_delete(pipe->readBarrier);
ffc10684: 80 7b 00 2c lwz r3,44(r27) <== NOT EXECUTED
ffc10688: 48 00 06 39 bl ffc10cc0 <rtems_barrier_delete> <== NOT EXECUTED
err_rbar:
free(pipe->Buffer);
ffc1068c: 80 7b 00 00 lwz r3,0(r27) <== NOT EXECUTED
ffc10690: 3b 40 ff fc li r26,-4 <== NOT EXECUTED
ffc10694: 4b ff 3f 61 bl ffc045f4 <free> <== NOT EXECUTED
err_buf:
free(pipe);
ffc10698: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED
ffc1069c: 4b ff 3f 59 bl ffc045f4 <free> <== NOT EXECUTED
ffc106a0: 4b ff fd 0c b ffc103ac <fifo_open+0x84> <== NOT EXECUTED
/* Called with rtems_pipe_semaphore held. */
static inline void pipe_free(
pipe_control_t *pipe
)
{
rtems_barrier_delete(pipe->readBarrier);
ffc106a4: 80 7c 00 2c lwz r3,44(r28) <== NOT EXECUTED
ffc106a8: 48 00 06 19 bl ffc10cc0 <rtems_barrier_delete> <== NOT EXECUTED
rtems_barrier_delete(pipe->writeBarrier);
ffc106ac: 80 7c 00 30 lwz r3,48(r28) <== NOT EXECUTED
ffc106b0: 48 00 06 11 bl ffc10cc0 <rtems_barrier_delete> <== NOT EXECUTED
rtems_semaphore_delete(pipe->Semaphore);
ffc106b4: 80 7c 00 28 lwz r3,40(r28) <== NOT EXECUTED
ffc106b8: 4b ff 7f 7d bl ffc08634 <rtems_semaphore_delete> <== NOT EXECUTED
free(pipe->Buffer);
ffc106bc: 80 7c 00 00 lwz r3,0(r28) <== NOT EXECUTED
ffc106c0: 4b ff 3f 35 bl ffc045f4 <free> <== NOT EXECUTED
free(pipe);
ffc106c4: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED
ffc106c8: 4b ff 3f 2d bl ffc045f4 <free> <== NOT EXECUTED
else
*pipep = pipe;
}
out:
rtems_semaphore_release(rtems_pipe_semaphore);
ffc106cc: 80 7e 28 fc lwz r3,10492(r30) <== NOT EXECUTED
ffc106d0: 4b ff 81 a1 bl ffc08870 <rtems_semaphore_release> <== NOT EXECUTED
ffc106d4: 4b ff fd 18 b ffc103ec <fifo_open+0xc4> <== NOT EXECUTED
break;
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
if (pipe->Readers ++ == 0)
PIPE_WAKEUPWRITERS(pipe);
ffc106d8: 80 7e 00 30 lwz r3,48(r30) <== NOT EXECUTED
ffc106dc: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED
ffc106e0: 48 00 06 69 bl ffc10d48 <rtems_barrier_release> <== NOT EXECUTED
ffc106e4: 4b ff fe c0 b ffc105a4 <fifo_open+0x27c> <== NOT EXECUTED
switch (LIBIO_ACCMODE(iop)) {
case LIBIO_FLAGS_READ:
pipe->readerCounter ++;
if (pipe->Readers ++ == 0)
PIPE_WAKEUPWRITERS(pipe);
ffc106e8: 80 7e 00 30 lwz r3,48(r30) <== NOT EXECUTED
ffc106ec: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED
ffc106f0: 48 00 06 59 bl ffc10d48 <rtems_barrier_release> <== NOT EXECUTED
ffc106f4: 4b ff fe 1c b ffc10510 <fifo_open+0x1e8> <== NOT EXECUTED
goto out_error;
}
pipe->writerCounter ++;
if (pipe->Writers ++ == 0)
PIPE_WAKEUPREADERS(pipe);
ffc106f8: 80 7e 00 2c lwz r3,44(r30) <== NOT EXECUTED
ffc106fc: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED
ffc10700: 48 00 06 49 bl ffc10d48 <rtems_barrier_release> <== NOT EXECUTED
ffc10704: 80 1e 00 10 lwz r0,16(r30) <== NOT EXECUTED
ffc10708: 4b ff ff 04 b ffc1060c <fifo_open+0x2e4> <== NOT EXECUTED
ffc30eb4 <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;
ffc30eb4: 3d 60 00 00 lis r11,0 <== NOT EXECUTED
ffc30eb8: 81 2b 63 58 lwz r9,25432(r11) <== NOT EXECUTED
ffc30ebc: 39 6b 63 58 addi r11,r11,25432 <== NOT EXECUTED
ffc30ec0: 38 0b 00 04 addi r0,r11,4 <== NOT EXECUTED
ffc30ec4: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED
ffc30ec8: 41 9e 00 30 beq- cr7,ffc30ef8 <file_systems_below_this_mountpoint+0x44><== 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 ) {
ffc30ecc: 81 44 00 10 lwz r10,16(r4) <== NOT EXECUTED
ffc30ed0: 81 69 00 18 lwz r11,24(r9) <== NOT EXECUTED
ffc30ed4: 7f 8b 50 00 cmpw cr7,r11,r10 <== NOT EXECUTED
ffc30ed8: 40 be 00 14 bne+ cr7,ffc30eec <file_systems_below_this_mountpoint+0x38><== NOT EXECUTED
ffc30edc: 48 00 00 24 b ffc30f00 <file_systems_below_this_mountpoint+0x4c><== NOT EXECUTED
ffc30ee0: 81 69 00 18 lwz r11,24(r9) <== NOT EXECUTED
ffc30ee4: 7f 8b 50 00 cmpw cr7,r11,r10 <== NOT EXECUTED
ffc30ee8: 41 9e 00 18 beq- cr7,ffc30f00 <file_systems_below_this_mountpoint+0x4c><== 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 ) {
ffc30eec: 81 29 00 00 lwz r9,0(r9) <== NOT EXECUTED
/*
* Search the mount table for any mount entries referencing this
* mount entry.
*/
for ( the_node = rtems_filesystem_mount_table_control.first;
ffc30ef0: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED
ffc30ef4: 40 9e ff ec bne+ cr7,ffc30ee0 <file_systems_below_this_mountpoint+0x2c><== NOT EXECUTED
ffc30ef8: 38 60 00 00 li r3,0 <== NOT EXECUTED
return true;
}
}
return false;
}
ffc30efc: 4e 80 00 20 blr <== NOT EXECUTED
/*
* Search the mount table for any mount entries referencing this
* mount entry.
*/
for ( the_node = rtems_filesystem_mount_table_control.first;
ffc30f00: 38 60 00 01 li r3,1 <== NOT EXECUTED
ffc30f04: 4e 80 00 20 blr <== NOT EXECUTED
ffc045f4 <free>:
void free(
void *ptr
)
{
MSBUMP(free_calls, 1);
ffc045f4: 94 21 ff f0 stwu r1,-16(r1)
ffc045f8: 7c 08 02 a6 mflr r0
ffc045fc: 3d 20 00 00 lis r9,0
ffc04600: 90 01 00 14 stw r0,20(r1)
ffc04604: 39 29 2a 68 addi r9,r9,10856
ffc04608: 93 e1 00 0c stw r31,12(r1)
if ( !ptr )
ffc0460c: 7c 7f 1b 79 mr. r31,r3
void free(
void *ptr
)
{
MSBUMP(free_calls, 1);
ffc04610: 81 69 00 0c lwz r11,12(r9)
ffc04614: 93 c1 00 08 stw r30,8(r1)
ffc04618: 38 0b 00 01 addi r0,r11,1
ffc0461c: 90 09 00 0c stw r0,12(r9)
if ( !ptr )
ffc04620: 41 82 00 6c beq- ffc0468c <free+0x98>
/*
* Do not attempt to free memory if in a critical section or ISR.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
ffc04624: 3d 20 00 00 lis r9,0
ffc04628: 80 09 27 90 lwz r0,10128(r9)
ffc0462c: 2f 80 00 03 cmpwi cr7,r0,3
ffc04630: 41 9e 00 74 beq- cr7,ffc046a4 <free+0xb0>
#endif
/*
* If configured, update the statistics
*/
if ( rtems_malloc_statistics_helpers )
ffc04634: 3d 20 00 00 lis r9,0
ffc04638: 81 29 26 c8 lwz r9,9928(r9)
ffc0463c: 2f 89 00 00 cmpwi cr7,r9,0
ffc04640: 41 9e 00 14 beq- cr7,ffc04654 <free+0x60>
(*rtems_malloc_statistics_helpers->at_free)(ptr);
ffc04644: 80 09 00 08 lwz r0,8(r9) <== NOT EXECUTED
ffc04648: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc0464c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc04650: 4e 80 04 21 bctrl <== NOT EXECUTED
if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) {
ffc04654: 3f c0 00 00 lis r30,0
ffc04658: 80 7e 26 5c lwz r3,9820(r30)
ffc0465c: 7f e4 fb 78 mr r4,r31
ffc04660: 48 00 62 d1 bl ffc0a930 <_Protected_heap_Free>
ffc04664: 2f 83 00 00 cmpwi cr7,r3,0
ffc04668: 40 be 00 24 bne+ cr7,ffc0468c <free+0x98>
printk( "Program heap: free of bad pointer %p -- range %p - %p \n",
ptr,
RTEMS_Malloc_Heap->area_begin,
ffc0466c: 81 3e 26 5c lwz r9,9820(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",
ffc04670: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc04674: 38 63 df 98 addi r3,r3,-8296 <== NOT EXECUTED
ffc04678: 80 c9 00 1c lwz r6,28(r9) <== NOT EXECUTED
ffc0467c: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc04680: 80 a9 00 18 lwz r5,24(r9) <== NOT EXECUTED
ffc04684: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc04688: 48 00 10 9d bl ffc05724 <printk> <== NOT EXECUTED
RTEMS_Malloc_Heap->area_begin,
RTEMS_Malloc_Heap->area_end
);
}
}
ffc0468c: 80 01 00 14 lwz r0,20(r1)
ffc04690: 83 c1 00 08 lwz r30,8(r1)
ffc04694: 7c 08 03 a6 mtlr r0
ffc04698: 83 e1 00 0c lwz r31,12(r1)
ffc0469c: 38 21 00 10 addi r1,r1,16
ffc046a0: 4e 80 00 20 blr
/*
* Do not attempt to free memory if in a critical section or ISR.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
ffc046a4: 48 00 00 fd bl ffc047a0 <malloc_is_system_state_OK>
ffc046a8: 2f 83 00 00 cmpwi cr7,r3,0
ffc046ac: 40 9e ff 88 bne+ cr7,ffc04634 <free+0x40>
!malloc_is_system_state_OK() ) {
malloc_deferred_free(ptr);
ffc046b0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc046b4: 48 00 01 35 bl ffc047e8 <malloc_deferred_free> <== NOT EXECUTED
return;
ffc046b8: 4b ff ff d4 b ffc0468c <free+0x98> <== NOT EXECUTED
ffc3029c <free_user_env>:
* NOTE: this must be called with
* thread dispatching disabled!
*/
static void
free_user_env(void *venv)
{
ffc3029c: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED
ffc302a0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
rtems_user_env_t *env = (rtems_user_env_t*) venv ;
if (env != &rtems_global_user_env
ffc302a4: 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)
{
ffc302a8: 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
ffc302ac: 38 09 63 64 addi r0,r9,25444 <== NOT EXECUTED
ffc302b0: 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)
{
ffc302b4: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED
ffc302b8: 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
ffc302bc: 41 9e 00 54 beq- cr7,ffc30310 <free_user_env+0x74> <== NOT EXECUTED
#ifdef HAVE_USERENV_REFCNT
&& --env->refcnt <= 0
#endif
) {
rtems_filesystem_freenode( &env->current_directory);
ffc302c0: 81 23 00 10 lwz r9,16(r3) <== NOT EXECUTED
ffc302c4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc302c8: 41 9e 00 1c beq- cr7,ffc302e4 <free_user_env+0x48> <== NOT EXECUTED
ffc302cc: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc302d0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc302d4: 41 9e 00 10 beq- cr7,ffc302e4 <free_user_env+0x48> <== NOT EXECUTED
ffc302d8: 38 63 00 04 addi r3,r3,4 <== NOT EXECUTED
ffc302dc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc302e0: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_filesystem_freenode( &env->root_directory);
ffc302e4: 81 3f 00 24 lwz r9,36(r31) <== NOT EXECUTED
ffc302e8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc302ec: 41 9e 00 1c beq- cr7,ffc30308 <free_user_env+0x6c> <== NOT EXECUTED
ffc302f0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc302f4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc302f8: 41 9e 00 10 beq- cr7,ffc30308 <free_user_env+0x6c> <== NOT EXECUTED
ffc302fc: 38 7f 00 18 addi r3,r31,24 <== NOT EXECUTED
ffc30300: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc30304: 4e 80 04 21 bctrl <== NOT EXECUTED
free(env);
ffc30308: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc3030c: 4b fd 76 89 bl ffc07994 <free> <== NOT EXECUTED
}
}
ffc30310: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc30314: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc30318: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc3031c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc30320: 4e 80 00 20 blr <== NOT EXECUTED
ffc1c680 <fstat>:
int fstat(
int fd,
struct stat *sbuf
)
{
ffc1c680: 94 21 ff f0 stwu r1,-16(r1)
ffc1c684: 7c 08 02 a6 mflr r0
ffc1c688: 93 c1 00 08 stw r30,8(r1)
/*
* Check to see if we were passed a valid pointer.
*/
if ( !sbuf )
ffc1c68c: 7c 9e 23 79 mr. r30,r4
int fstat(
int fd,
struct stat *sbuf
)
{
ffc1c690: 90 01 00 14 stw r0,20(r1)
ffc1c694: 93 e1 00 0c stw r31,12(r1)
/*
* Check to see if we were passed a valid pointer.
*/
if ( !sbuf )
ffc1c698: 41 82 00 b0 beq- ffc1c748 <fstat+0xc8>
/*
* Now process the stat() request.
*/
iop = rtems_libio_iop( fd );
ffc1c69c: 3d 20 00 00 lis r9,0
ffc1c6a0: 80 09 26 4c lwz r0,9804(r9)
ffc1c6a4: 7f 83 00 40 cmplw cr7,r3,r0
ffc1c6a8: 40 9c 00 78 bge- cr7,ffc1c720 <fstat+0xa0>
ffc1c6ac: 3d 20 00 00 lis r9,0
ffc1c6b0: 83 e9 27 08 lwz r31,9992(r9)
ffc1c6b4: 1c 63 00 48 mulli r3,r3,72
ffc1c6b8: 7f ff 1a 14 add r31,r31,r3
rtems_libio_check_fd( fd );
rtems_libio_check_is_open(iop);
ffc1c6bc: 80 1f 00 18 lwz r0,24(r31)
ffc1c6c0: 70 09 01 00 andi. r9,r0,256
ffc1c6c4: 41 82 00 5c beq- ffc1c720 <fstat+0xa0>
if ( !iop->handlers )
ffc1c6c8: 81 3f 00 40 lwz r9,64(r31)
ffc1c6cc: 2f 89 00 00 cmpwi cr7,r9,0
ffc1c6d0: 41 9e 00 50 beq- cr7,ffc1c720 <fstat+0xa0>
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: 41 9e 00 58 beq- cr7,ffc1c734 <fstat+0xb4>
/*
* Zero out the stat structure so the various support
* versions of stat don't have to.
*/
memset( sbuf, 0, sizeof(struct stat) );
ffc1c6e0: 38 80 00 00 li r4,0
ffc1c6e4: 38 a0 00 48 li r5,72
ffc1c6e8: 7f c3 f3 78 mr r3,r30
ffc1c6ec: 4b ff 61 b5 bl ffc128a0 <memset>
return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf );
ffc1c6f0: 81 3f 00 40 lwz r9,64(r31)
ffc1c6f4: 38 7f 00 1c addi r3,r31,28
ffc1c6f8: 80 09 00 18 lwz r0,24(r9)
ffc1c6fc: 7f c4 f3 78 mr r4,r30
ffc1c700: 7c 09 03 a6 mtctr r0
ffc1c704: 4e 80 04 21 bctrl
}
ffc1c708: 80 01 00 14 lwz r0,20(r1)
ffc1c70c: 83 c1 00 08 lwz r30,8(r1)
ffc1c710: 7c 08 03 a6 mtlr r0
ffc1c714: 83 e1 00 0c lwz r31,12(r1)
ffc1c718: 38 21 00 10 addi r1,r1,16
ffc1c71c: 4e 80 00 20 blr
iop = rtems_libio_iop( fd );
rtems_libio_check_fd( fd );
rtems_libio_check_is_open(iop);
if ( !iop->handlers )
rtems_set_errno_and_return_minus_one( EBADF );
ffc1c720: 4b ff 54 99 bl ffc11bb8 <__errno>
ffc1c724: 38 00 00 09 li r0,9
ffc1c728: 90 03 00 00 stw r0,0(r3)
ffc1c72c: 38 60 ff ff li r3,-1
ffc1c730: 4b ff ff d8 b ffc1c708 <fstat+0x88>
if ( !iop->handlers->fstat_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc1c734: 4b ff 54 85 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc1c738: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc1c73c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc1c740: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc1c744: 4b ff ff c4 b ffc1c708 <fstat+0x88> <== NOT EXECUTED
/*
* Check to see if we were passed a valid pointer.
*/
if ( !sbuf )
rtems_set_errno_and_return_minus_one( EFAULT );
ffc1c748: 4b ff 54 71 bl ffc11bb8 <__errno>
ffc1c74c: 38 00 00 0e li r0,14
ffc1c750: 90 03 00 00 stw r0,0(r3)
ffc1c754: 38 60 ff ff li r3,-1
ffc1c758: 4b ff ff b0 b ffc1c708 <fstat+0x88>
ffc2ea0c <fsync>:
#include <rtems/seterr.h>
int fsync(
int fd
)
{
ffc2ea0c: 7c 08 02 a6 mflr r0
ffc2ea10: 94 21 ff f8 stwu r1,-8(r1)
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
ffc2ea14: 3d 20 00 00 lis r9,0
#include <rtems/seterr.h>
int fsync(
int fd
)
{
ffc2ea18: 90 01 00 0c stw r0,12(r1)
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
ffc2ea1c: 80 09 34 8c lwz r0,13452(r9)
ffc2ea20: 7f 83 00 40 cmplw cr7,r3,r0
ffc2ea24: 40 9c 00 58 bge- cr7,ffc2ea7c <fsync+0x70>
iop = rtems_libio_iop( fd );
ffc2ea28: 3d 20 00 00 lis r9,0
ffc2ea2c: 80 09 35 b0 lwz r0,13744(r9)
ffc2ea30: 1c 63 00 48 mulli r3,r3,72
ffc2ea34: 7c 60 1a 14 add r3,r0,r3
rtems_libio_check_is_open(iop);
ffc2ea38: 80 03 00 18 lwz r0,24(r3)
ffc2ea3c: 70 09 01 00 andi. r9,r0,256
ffc2ea40: 41 82 00 3c beq- ffc2ea7c <fsync+0x70>
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
ffc2ea44: 70 09 00 04 andi. r9,r0,4
ffc2ea48: 41 82 00 48 beq- ffc2ea90 <fsync+0x84>
/*
* Now process the fsync().
*/
if ( !iop->handlers )
ffc2ea4c: 81 23 00 40 lwz r9,64(r3)
ffc2ea50: 2f 89 00 00 cmpwi cr7,r9,0
ffc2ea54: 41 9e 00 28 beq- cr7,ffc2ea7c <fsync+0x70>
rtems_set_errno_and_return_minus_one( EBADF );
if ( !iop->handlers->fsync_h )
ffc2ea58: 80 09 00 28 lwz r0,40(r9)
ffc2ea5c: 2f 80 00 00 cmpwi cr7,r0,0
ffc2ea60: 41 9e 00 44 beq- cr7,ffc2eaa4 <fsync+0x98>
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->handlers->fsync_h)( iop );
ffc2ea64: 7c 09 03 a6 mtctr r0
ffc2ea68: 4e 80 04 21 bctrl
}
ffc2ea6c: 80 01 00 0c lwz r0,12(r1)
ffc2ea70: 38 21 00 08 addi r1,r1,8
ffc2ea74: 7c 08 03 a6 mtlr r0
ffc2ea78: 4e 80 00 20 blr
/*
* Now process the fsync().
*/
if ( !iop->handlers )
rtems_set_errno_and_return_minus_one( EBADF );
ffc2ea7c: 48 01 e0 fd bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc2ea80: 38 00 00 09 li r0,9 <== NOT EXECUTED
ffc2ea84: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc2ea88: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc2ea8c: 4b ff ff e0 b ffc2ea6c <fsync+0x60> <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
ffc2ea90: 48 01 e0 e9 bl ffc4cb78 <__errno>
ffc2ea94: 38 00 00 16 li r0,22
ffc2ea98: 90 03 00 00 stw r0,0(r3)
ffc2ea9c: 38 60 ff ff li r3,-1
ffc2eaa0: 4b ff ff cc b ffc2ea6c <fsync+0x60>
if ( !iop->handlers )
rtems_set_errno_and_return_minus_one( EBADF );
if ( !iop->handlers->fsync_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc2eaa4: 48 01 e0 d5 bl ffc4cb78 <__errno>
ffc2eaa8: 38 00 00 86 li r0,134
ffc2eaac: 90 03 00 00 stw r0,0(r3)
ffc2eab0: 38 60 ff ff li r3,-1
ffc2eab4: 4b ff ff b8 b ffc2ea6c <fsync+0x60>
ffc0e1b8 <ftruncate>:
int ftruncate(
int fd,
off_t length
)
{
ffc0e1b8: 94 21 ff c8 stwu r1,-56(r1)
ffc0e1bc: 7c 08 02 a6 mflr r0
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc;
rtems_libio_check_fd( fd );
ffc0e1c0: 3d 20 00 00 lis r9,0
int ftruncate(
int fd,
off_t length
)
{
ffc0e1c4: 90 01 00 3c stw r0,60(r1)
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc;
rtems_libio_check_fd( fd );
ffc0e1c8: 80 09 26 4c lwz r0,9804(r9)
int ftruncate(
int fd,
off_t length
)
{
ffc0e1cc: 93 a1 00 2c stw r29,44(r1)
ffc0e1d0: 7c bd 2b 78 mr r29,r5
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc;
rtems_libio_check_fd( fd );
ffc0e1d4: 7f 83 00 40 cmplw cr7,r3,r0
int ftruncate(
int fd,
off_t length
)
{
ffc0e1d8: 93 c1 00 30 stw r30,48(r1)
ffc0e1dc: 7c de 33 78 mr r30,r6
ffc0e1e0: 93 e1 00 34 stw r31,52(r1)
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc;
rtems_libio_check_fd( fd );
ffc0e1e4: 40 9c 00 b4 bge- cr7,ffc0e298 <ftruncate+0xe0>
iop = rtems_libio_iop( fd );
ffc0e1e8: 3d 20 00 00 lis r9,0
ffc0e1ec: 83 e9 27 08 lwz r31,9992(r9)
ffc0e1f0: 1c 63 00 48 mulli r3,r3,72
ffc0e1f4: 7f ff 1a 14 add r31,r31,r3
rtems_libio_check_is_open(iop);
ffc0e1f8: 80 1f 00 18 lwz r0,24(r31)
ffc0e1fc: 70 09 01 00 andi. r9,r0,256
ffc0e200: 41 82 00 98 beq- ffc0e298 <ftruncate+0xe0>
/*
* Make sure we are not working on a directory
*/
loc = iop->pathinfo;
ffc0e204: 81 3f 00 28 lwz r9,40(r31)
ffc0e208: 81 1f 00 1c lwz r8,28(r31)
if ( !loc.ops->node_type_h )
ffc0e20c: 80 09 00 10 lwz r0,16(r9)
/*
* Make sure we are not working on a directory
*/
loc = iop->pathinfo;
ffc0e210: 81 5f 00 20 lwz r10,32(r31)
ffc0e214: 81 7f 00 24 lwz r11,36(r31)
if ( !loc.ops->node_type_h )
ffc0e218: 2f 80 00 00 cmpwi cr7,r0,0
/*
* Make sure we are not working on a directory
*/
loc = iop->pathinfo;
ffc0e21c: 91 01 00 08 stw r8,8(r1)
ffc0e220: 91 41 00 0c stw r10,12(r1)
ffc0e224: 91 61 00 10 stw r11,16(r1)
ffc0e228: 91 21 00 14 stw r9,20(r1)
ffc0e22c: 81 3f 00 2c lwz r9,44(r31)
ffc0e230: 91 21 00 18 stw r9,24(r1)
if ( !loc.ops->node_type_h )
ffc0e234: 41 9e 00 8c beq- cr7,ffc0e2c0 <ftruncate+0x108>
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY )
ffc0e238: 38 61 00 08 addi r3,r1,8
ffc0e23c: 7c 09 03 a6 mtctr r0
ffc0e240: 4e 80 04 21 bctrl
ffc0e244: 2f 83 00 01 cmpwi cr7,r3,1
ffc0e248: 41 9e 00 8c beq- cr7,ffc0e2d4 <ftruncate+0x11c>
rtems_set_errno_and_return_minus_one( EISDIR );
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
ffc0e24c: 80 1f 00 18 lwz r0,24(r31)
ffc0e250: 70 09 00 04 andi. r9,r0,4
ffc0e254: 41 82 00 58 beq- ffc0e2ac <ftruncate+0xf4>
if ( !iop->handlers->ftruncate_h )
ffc0e258: 81 3f 00 40 lwz r9,64(r31)
ffc0e25c: 80 09 00 20 lwz r0,32(r9)
ffc0e260: 2f 80 00 00 cmpwi cr7,r0,0
ffc0e264: 41 9e 00 5c beq- cr7,ffc0e2c0 <ftruncate+0x108>
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->handlers->ftruncate_h)( iop, length );
ffc0e268: 7f e3 fb 78 mr r3,r31
ffc0e26c: 7c 09 03 a6 mtctr r0
ffc0e270: 7f a5 eb 78 mr r5,r29
ffc0e274: 7f c6 f3 78 mr r6,r30
ffc0e278: 4e 80 04 21 bctrl
}
ffc0e27c: 80 01 00 3c lwz r0,60(r1)
ffc0e280: 83 a1 00 2c lwz r29,44(r1)
ffc0e284: 7c 08 03 a6 mtlr r0
ffc0e288: 83 c1 00 30 lwz r30,48(r1)
ffc0e28c: 83 e1 00 34 lwz r31,52(r1)
ffc0e290: 38 21 00 38 addi r1,r1,56
ffc0e294: 4e 80 00 20 blr
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
ffc0e298: 48 00 39 21 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc0e29c: 38 00 00 09 li r0,9 <== NOT EXECUTED
ffc0e2a0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc0e2a4: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc0e2a8: 4b ff ff d4 b ffc0e27c <ftruncate+0xc4> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY )
rtems_set_errno_and_return_minus_one( EISDIR );
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
ffc0e2ac: 48 00 39 0d bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc0e2b0: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc0e2b4: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc0e2b8: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc0e2bc: 4b ff ff c0 b ffc0e27c <ftruncate+0xc4> <== NOT EXECUTED
if ( !iop->handlers->ftruncate_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc0e2c0: 48 00 38 f9 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc0e2c4: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc0e2c8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc0e2cc: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc0e2d0: 4b ff ff ac b ffc0e27c <ftruncate+0xc4> <== NOT EXECUTED
loc = iop->pathinfo;
if ( !loc.ops->node_type_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY )
rtems_set_errno_and_return_minus_one( EISDIR );
ffc0e2d4: 48 00 38 e5 bl ffc11bb8 <__errno>
ffc0e2d8: 38 00 00 15 li r0,21
ffc0e2dc: 90 03 00 00 stw r0,0(r3)
ffc0e2e0: 38 60 ff ff li r3,-1
ffc0e2e4: 4b ff ff 98 b ffc0e27c <ftruncate+0xc4>
ffc678e0 <getdents>:
int getdents(
int dd_fd,
char *dd_buf,
int dd_len
)
{
ffc678e0: 94 21 ff c8 stwu r1,-56(r1)
ffc678e4: 7c 08 02 a6 mflr r0
/*
* Get the file control block structure associated with the file descriptor
*/
iop = rtems_libio_iop( dd_fd );
ffc678e8: 3d 20 00 00 lis r9,0
int getdents(
int dd_fd,
char *dd_buf,
int dd_len
)
{
ffc678ec: 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 );
ffc678f0: 80 09 34 8c lwz r0,13452(r9)
int getdents(
int dd_fd,
char *dd_buf,
int dd_len
)
{
ffc678f4: 93 a1 00 2c stw r29,44(r1)
/*
* Get the file control block structure associated with the file descriptor
*/
iop = rtems_libio_iop( dd_fd );
ffc678f8: 3b a0 00 00 li r29,0
ffc678fc: 7f 83 00 40 cmplw cr7,r3,r0
int getdents(
int dd_fd,
char *dd_buf,
int dd_len
)
{
ffc67900: 93 c1 00 30 stw r30,48(r1)
ffc67904: 7c 9e 23 78 mr r30,r4
ffc67908: 93 e1 00 34 stw r31,52(r1)
ffc6790c: 7c bf 2b 78 mr r31,r5
/*
* Get the file control block structure associated with the file descriptor
*/
iop = rtems_libio_iop( dd_fd );
ffc67910: 40 9c 00 14 bge- cr7,ffc67924 <getdents+0x44>
ffc67914: 3d 20 00 00 lis r9,0
ffc67918: 1c 63 00 48 mulli r3,r3,72
ffc6791c: 83 a9 35 b0 lwz r29,13744(r9)
ffc67920: 7f bd 1a 14 add r29,r29,r3
/*
* Make sure we are working on a directory
*/
loc = iop->pathinfo;
ffc67924: 81 3d 00 28 lwz r9,40(r29)
ffc67928: 81 1d 00 1c lwz r8,28(r29)
if ( !loc.ops->node_type_h )
ffc6792c: 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;
ffc67930: 81 5d 00 20 lwz r10,32(r29)
ffc67934: 81 7d 00 24 lwz r11,36(r29)
if ( !loc.ops->node_type_h )
ffc67938: 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;
ffc6793c: 91 01 00 08 stw r8,8(r1)
ffc67940: 91 41 00 0c stw r10,12(r1)
ffc67944: 91 61 00 10 stw r11,16(r1)
ffc67948: 91 21 00 14 stw r9,20(r1)
ffc6794c: 81 3d 00 2c lwz r9,44(r29)
ffc67950: 91 21 00 18 stw r9,24(r1)
if ( !loc.ops->node_type_h )
ffc67954: 41 9e 00 6c beq- cr7,ffc679c0 <getdents+0xe0>
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
ffc67958: 38 61 00 08 addi r3,r1,8
ffc6795c: 7c 09 03 a6 mtctr r0
ffc67960: 4e 80 04 21 bctrl
ffc67964: 2f 83 00 01 cmpwi cr7,r3,1
ffc67968: 40 9e 00 44 bne- cr7,ffc679ac <getdents+0xcc>
/*
* Return the number of bytes that were actually transfered as a result
* of the read attempt.
*/
if ( !iop->handlers->read_h )
ffc6796c: 81 3d 00 40 lwz r9,64(r29)
ffc67970: 80 09 00 08 lwz r0,8(r9)
ffc67974: 2f 80 00 00 cmpwi cr7,r0,0
ffc67978: 41 9e 00 48 beq- cr7,ffc679c0 <getdents+0xe0>
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->handlers->read_h)( iop, dd_buf, dd_len );
ffc6797c: 7f a3 eb 78 mr r3,r29
ffc67980: 7c 09 03 a6 mtctr r0
ffc67984: 7f c4 f3 78 mr r4,r30
ffc67988: 7f e5 fb 78 mr r5,r31
ffc6798c: 4e 80 04 21 bctrl
}
ffc67990: 80 01 00 3c lwz r0,60(r1)
ffc67994: 83 a1 00 2c lwz r29,44(r1)
ffc67998: 7c 08 03 a6 mtlr r0
ffc6799c: 83 c1 00 30 lwz r30,48(r1)
ffc679a0: 83 e1 00 34 lwz r31,52(r1)
ffc679a4: 38 21 00 38 addi r1,r1,56
ffc679a8: 4e 80 00 20 blr
loc = iop->pathinfo;
if ( !loc.ops->node_type_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
rtems_set_errno_and_return_minus_one( ENOTDIR );
ffc679ac: 4b fe 51 cd bl ffc4cb78 <__errno>
ffc679b0: 38 00 00 14 li r0,20
ffc679b4: 90 03 00 00 stw r0,0(r3)
ffc679b8: 38 60 ff ff li r3,-1
ffc679bc: 4b ff ff d4 b ffc67990 <getdents+0xb0>
* Return the number of bytes that were actually transfered as a result
* of the read attempt.
*/
if ( !iop->handlers->read_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc679c0: 4b fe 51 b9 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc679c4: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc679c8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc679cc: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc679d0: 4b ff ff c0 b ffc67990 <getdents+0xb0> <== NOT EXECUTED
ffc2ec08 <getgid>:
* 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
* P1003.1b-1993, p. 84
*/
gid_t getgid( void )
{
ffc2ec08: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc2ec0c: 81 29 34 ec lwz r9,13548(r9) <== NOT EXECUTED
return _POSIX_types_Gid;
}
ffc2ec10: a0 69 00 34 lhz r3,52(r9) <== NOT EXECUTED
ffc2ec14: 4e 80 00 20 blr <== NOT EXECUTED
ffc2f4ac <getgr_r>:
struct group *grp,
char *buffer,
size_t bufsize,
struct group **result
)
{
ffc2f4ac: 94 21 ff d8 stwu r1,-40(r1)
ffc2f4b0: 7d 80 00 26 mfcr r12
ffc2f4b4: 7c 08 02 a6 mflr r0
ffc2f4b8: 93 21 00 0c stw r25,12(r1)
ffc2f4bc: 7d 19 43 78 mr r25,r8
ffc2f4c0: 90 01 00 2c stw r0,44(r1)
ffc2f4c4: 93 41 00 10 stw r26,16(r1)
ffc2f4c8: 93 61 00 14 stw r27,20(r1)
ffc2f4cc: 7c fb 3b 78 mr r27,r7
ffc2f4d0: 93 81 00 18 stw r28,24(r1)
ffc2f4d4: 7c 9c 23 78 mr r28,r4
ffc2f4d8: 93 a1 00 1c stw r29,28(r1)
ffc2f4dc: 7c dd 33 78 mr r29,r6
ffc2f4e0: 93 c1 00 20 stw r30,32(r1)
ffc2f4e4: 7c 7e 1b 78 mr r30,r3
ffc2f4e8: 93 e1 00 24 stw r31,36(r1)
ffc2f4ec: 7c bf 2b 78 mr r31,r5
ffc2f4f0: 91 81 00 08 stw r12,8(r1)
FILE *fp;
int match;
init_etc_passwd_group();
ffc2f4f4: 4b ff fe 39 bl ffc2f32c <init_etc_passwd_group>
if ((fp = fopen("/etc/group", "r")) == NULL) {
ffc2f4f8: 3c 60 ff c7 lis r3,-57
ffc2f4fc: 3c 80 ff c7 lis r4,-57
ffc2f500: 38 63 8a 84 addi r3,r3,-30076
ffc2f504: 38 84 17 d4 addi r4,r4,6100
ffc2f508: 48 01 e3 3d bl ffc4d844 <fopen>
ffc2f50c: 7c 7a 1b 79 mr. r26,r3
ffc2f510: 41 82 00 f0 beq- ffc2f600 <getgr_r+0x154>
if (!scangr(fp, grp, buffer, bufsize)) {
errno = EINVAL;
fclose(fp);
return -1;
}
if (name) {
ffc2f514: 2e 1e 00 00 cmpwi cr4,r30,0
ffc2f518: 48 00 00 1c b ffc2f534 <getgr_r+0x88>
match = (strcmp(grp->gr_name, name) == 0);
ffc2f51c: 80 7f 00 00 lwz r3,0(r31)
ffc2f520: 48 02 4d e5 bl ffc54304 <strcmp>
ffc2f524: 7c 63 00 34 cntlzw r3,r3
ffc2f528: 54 63 d9 7e rlwinm r3,r3,27,5,31
}
else {
match = (grp->gr_gid == gid);
}
if (match) {
ffc2f52c: 2f 83 00 00 cmpwi cr7,r3,0
ffc2f530: 40 9e 00 40 bne- cr7,ffc2f570 <getgr_r+0xc4>
if ((fp = fopen("/etc/group", "r")) == NULL) {
errno = EINVAL;
return -1;
}
for(;;) {
if (!scangr(fp, grp, buffer, bufsize)) {
ffc2f534: 7f e4 fb 78 mr r4,r31
ffc2f538: 7f a5 eb 78 mr r5,r29
ffc2f53c: 7f 66 db 78 mr r6,r27
ffc2f540: 7f 43 d3 78 mr r3,r26
ffc2f544: 4b ff fa 21 bl ffc2ef64 <scangr>
errno = EINVAL;
fclose(fp);
return -1;
}
if (name) {
match = (strcmp(grp->gr_name, name) == 0);
ffc2f548: 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)) {
ffc2f54c: 2f 83 00 00 cmpwi cr7,r3,0
ffc2f550: 41 9e 00 64 beq- cr7,ffc2f5b4 <getgr_r+0x108>
errno = EINVAL;
fclose(fp);
return -1;
}
if (name) {
ffc2f554: 40 92 ff c8 bne+ cr4,ffc2f51c <getgr_r+0x70>
match = (strcmp(grp->gr_name, name) == 0);
}
else {
match = (grp->gr_gid == gid);
ffc2f558: a0 7f 00 08 lhz r3,8(r31) <== NOT EXECUTED
ffc2f55c: 7c 63 e2 78 xor r3,r3,r28 <== NOT EXECUTED
ffc2f560: 7c 63 00 34 cntlzw r3,r3 <== NOT EXECUTED
ffc2f564: 54 63 d9 7e rlwinm r3,r3,27,5,31 <== NOT EXECUTED
}
if (match) {
ffc2f568: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc2f56c: 41 9e ff c8 beq+ cr7,ffc2f534 <getgr_r+0x88> <== NOT EXECUTED
fclose(fp);
ffc2f570: 7f 43 d3 78 mr r3,r26
ffc2f574: 48 01 d7 a5 bl ffc4cd18 <fclose>
*result = grp;
ffc2f578: 93 f9 00 00 stw r31,0(r25)
ffc2f57c: 38 60 00 00 li r3,0
}
}
fclose(fp);
errno = EINVAL;
return -1;
}
ffc2f580: 80 01 00 2c lwz r0,44(r1)
ffc2f584: 81 81 00 08 lwz r12,8(r1)
ffc2f588: 7c 08 03 a6 mtlr r0
ffc2f58c: 83 21 00 0c lwz r25,12(r1)
ffc2f590: 83 41 00 10 lwz r26,16(r1)
ffc2f594: 7d 80 81 20 mtcrf 8,r12
ffc2f598: 83 61 00 14 lwz r27,20(r1)
ffc2f59c: 83 81 00 18 lwz r28,24(r1)
ffc2f5a0: 83 a1 00 1c lwz r29,28(r1)
ffc2f5a4: 83 c1 00 20 lwz r30,32(r1)
ffc2f5a8: 83 e1 00 24 lwz r31,36(r1)
ffc2f5ac: 38 21 00 28 addi r1,r1,40
ffc2f5b0: 4e 80 00 20 blr
errno = EINVAL;
return -1;
}
for(;;) {
if (!scangr(fp, grp, buffer, bufsize)) {
errno = EINVAL;
ffc2f5b4: 48 01 d5 c5 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc2f5b8: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc2f5bc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
fclose(fp);
ffc2f5c0: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED
ffc2f5c4: 48 01 d7 55 bl ffc4cd18 <fclose> <== NOT EXECUTED
}
}
fclose(fp);
errno = EINVAL;
return -1;
}
ffc2f5c8: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED
ffc2f5cc: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED
return -1;
}
for(;;) {
if (!scangr(fp, grp, buffer, bufsize)) {
errno = EINVAL;
fclose(fp);
ffc2f5d0: 38 60 ff ff li r3,-1 <== NOT EXECUTED
}
}
fclose(fp);
errno = EINVAL;
return -1;
}
ffc2f5d4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2f5d8: 83 21 00 0c lwz r25,12(r1) <== NOT EXECUTED
ffc2f5dc: 83 41 00 10 lwz r26,16(r1) <== NOT EXECUTED
ffc2f5e0: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED
ffc2f5e4: 83 61 00 14 lwz r27,20(r1) <== NOT EXECUTED
ffc2f5e8: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED
ffc2f5ec: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED
ffc2f5f0: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED
ffc2f5f4: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED
ffc2f5f8: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED
ffc2f5fc: 4e 80 00 20 blr <== NOT EXECUTED
int match;
init_etc_passwd_group();
if ((fp = fopen("/etc/group", "r")) == NULL) {
errno = EINVAL;
ffc2f600: 48 01 d5 79 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc2f604: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc2f608: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc2f60c: 38 60 ff ff li r3,-1 <== NOT EXECUTED
return -1;
ffc2f610: 4b ff ff 70 b ffc2f580 <getgr_r+0xd4> <== NOT EXECUTED
ffc2f0fc <getgrent>:
return p;
}
struct group *getgrent(void)
{
if (group_fp == NULL)
ffc2f0fc: 3c a0 00 00 lis r5,0 <== NOT EXECUTED
return NULL;
return p;
}
struct group *getgrent(void)
{
ffc2f100: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED
ffc2f104: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
if (group_fp == NULL)
ffc2f108: 80 65 5e fc lwz r3,24316(r5) <== NOT EXECUTED
ffc2f10c: 38 a5 5e fc addi r5,r5,24316 <== NOT EXECUTED
return NULL;
return p;
}
struct group *getgrent(void)
{
ffc2f110: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED
if (group_fp == NULL)
ffc2f114: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
return NULL;
return p;
}
struct group *getgrent(void)
{
ffc2f118: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED
if (group_fp == NULL)
ffc2f11c: 40 9e 00 1c bne- cr7,ffc2f138 <getgrent+0x3c> <== NOT EXECUTED
return NULL;
if (!scangr(group_fp, &grent, grbuf, sizeof grbuf))
return NULL;
return &grent;
}
ffc2f120: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
struct group *getgrent(void)
{
if (group_fp == NULL)
return NULL;
if (!scangr(group_fp, &grent, grbuf, sizeof grbuf))
ffc2f124: 38 60 00 00 li r3,0 <== NOT EXECUTED
return NULL;
return &grent;
}
ffc2f128: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc2f12c: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc2f130: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2f134: 4e 80 00 20 blr <== NOT EXECUTED
struct group *getgrent(void)
{
if (group_fp == NULL)
return NULL;
if (!scangr(group_fp, &grent, grbuf, sizeof grbuf))
ffc2f138: 3b e5 00 08 addi r31,r5,8 <== NOT EXECUTED
ffc2f13c: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc2f140: 38 a5 00 18 addi r5,r5,24 <== NOT EXECUTED
ffc2f144: 38 c0 00 c8 li r6,200 <== NOT EXECUTED
ffc2f148: 4b ff fe 1d bl ffc2ef64 <scangr> <== NOT EXECUTED
ffc2f14c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc2f150: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc2f154: 41 be ff cc beq- cr7,ffc2f120 <getgrent+0x24> <== NOT EXECUTED
return NULL;
return &grent;
}
ffc2f158: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc2f15c: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc2f160: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc2f164: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2f168: 4e 80 00 20 blr <== NOT EXECUTED
ffc2f63c <getgrgid>:
}
struct group *getgrgid(
gid_t gid
)
{
ffc2f63c: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED
struct group *p;
if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p))
ffc2f640: 3c 80 00 00 lis r4,0 <== NOT EXECUTED
}
struct group *getgrgid(
gid_t gid
)
{
ffc2f644: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
struct group *p;
if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p))
ffc2f648: 38 84 5e fc addi r4,r4,24316 <== NOT EXECUTED
ffc2f64c: 38 a4 00 18 addi r5,r4,24 <== NOT EXECUTED
ffc2f650: 38 c0 00 c8 li r6,200 <== NOT EXECUTED
}
struct group *getgrgid(
gid_t gid
)
{
ffc2f654: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED
struct group *p;
if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p))
ffc2f658: 38 84 00 08 addi r4,r4,8 <== NOT EXECUTED
ffc2f65c: 38 e1 00 08 addi r7,r1,8 <== NOT EXECUTED
ffc2f660: 4b ff ff b5 bl ffc2f614 <getgrgid_r> <== NOT EXECUTED
ffc2f664: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc2f668: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc2f66c: 40 9e 00 08 bne- cr7,ffc2f674 <getgrgid+0x38> <== NOT EXECUTED
return NULL;
return p;
ffc2f670: 80 61 00 08 lwz r3,8(r1) <== NOT EXECUTED
}
ffc2f674: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED
ffc2f678: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED
ffc2f67c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2f680: 4e 80 00 20 blr <== NOT EXECUTED
ffc2f614 <getgrgid_r>:
struct group *grp,
char *buffer,
size_t bufsize,
struct group **result
)
{
ffc2f614: 7c 8b 23 78 mr r11,r4 <== NOT EXECUTED
ffc2f618: 7c a9 2b 78 mr r9,r5 <== NOT EXECUTED
ffc2f61c: 7c c0 33 78 mr r0,r6 <== NOT EXECUTED
ffc2f620: 7c e8 3b 78 mr r8,r7 <== NOT EXECUTED
return getgr_r(NULL, gid, grp, buffer, bufsize, result);
ffc2f624: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED
ffc2f628: 7d 65 5b 78 mr r5,r11 <== NOT EXECUTED
ffc2f62c: 7d 26 4b 78 mr r6,r9 <== NOT EXECUTED
ffc2f630: 7c 07 03 78 mr r7,r0 <== NOT EXECUTED
ffc2f634: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc2f638: 4b ff fe 74 b ffc2f4ac <getgr_r> <== NOT EXECUTED
ffc28ac8 <getpid>:
*/
pid_t getpid( void )
{
return _Objects_Local_node;
}
ffc28ac8: 38 60 00 01 li r3,1 <== NOT EXECUTED
ffc28acc: 4e 80 00 20 blr <== NOT EXECUTED
ffc2f744 <getpw_r>:
struct passwd *pwd,
char *buffer,
size_t bufsize,
struct passwd **result
)
{
ffc2f744: 94 21 ff d8 stwu r1,-40(r1)
ffc2f748: 7d 80 00 26 mfcr r12
ffc2f74c: 7c 08 02 a6 mflr r0
ffc2f750: 93 21 00 0c stw r25,12(r1)
ffc2f754: 7d 19 43 78 mr r25,r8
ffc2f758: 90 01 00 2c stw r0,44(r1)
ffc2f75c: 93 41 00 10 stw r26,16(r1)
ffc2f760: 93 61 00 14 stw r27,20(r1)
ffc2f764: 7c fb 3b 78 mr r27,r7
ffc2f768: 93 81 00 18 stw r28,24(r1)
ffc2f76c: 7c 9c 23 78 mr r28,r4
ffc2f770: 93 a1 00 1c stw r29,28(r1)
ffc2f774: 7c dd 33 78 mr r29,r6
ffc2f778: 93 c1 00 20 stw r30,32(r1)
ffc2f77c: 7c 7e 1b 78 mr r30,r3
ffc2f780: 93 e1 00 24 stw r31,36(r1)
ffc2f784: 7c bf 2b 78 mr r31,r5
ffc2f788: 91 81 00 08 stw r12,8(r1)
FILE *fp;
int match;
init_etc_passwd_group();
ffc2f78c: 4b ff fb a1 bl ffc2f32c <init_etc_passwd_group>
if ((fp = fopen("/etc/passwd", "r")) == NULL) {
ffc2f790: 3c 60 ff c7 lis r3,-57
ffc2f794: 3c 80 ff c7 lis r4,-57
ffc2f798: 38 63 89 d4 addi r3,r3,-30252
ffc2f79c: 38 84 17 d4 addi r4,r4,6100
ffc2f7a0: 48 01 e0 a5 bl ffc4d844 <fopen>
ffc2f7a4: 7c 7a 1b 79 mr. r26,r3
ffc2f7a8: 41 82 00 f0 beq- ffc2f898 <getpw_r+0x154>
if (!scanpw(fp, pwd, buffer, bufsize)) {
errno = EINVAL;
fclose(fp);
return -1;
}
if (name) {
ffc2f7ac: 2e 1e 00 00 cmpwi cr4,r30,0
ffc2f7b0: 48 00 00 1c b ffc2f7cc <getpw_r+0x88>
match = (strcmp(pwd->pw_name, name) == 0);
ffc2f7b4: 80 7f 00 00 lwz r3,0(r31)
ffc2f7b8: 48 02 4b 4d bl ffc54304 <strcmp>
ffc2f7bc: 7c 63 00 34 cntlzw r3,r3
ffc2f7c0: 54 63 d9 7e rlwinm r3,r3,27,5,31
}
else {
match = (pwd->pw_uid == uid);
}
if (match) {
ffc2f7c4: 2f 83 00 00 cmpwi cr7,r3,0
ffc2f7c8: 40 9e 00 40 bne- cr7,ffc2f808 <getpw_r+0xc4>
if ((fp = fopen("/etc/passwd", "r")) == NULL) {
errno = EINVAL;
return -1;
}
for(;;) {
if (!scanpw(fp, pwd, buffer, bufsize)) {
ffc2f7cc: 7f e4 fb 78 mr r4,r31
ffc2f7d0: 7f a5 eb 78 mr r5,r29
ffc2f7d4: 7f 66 db 78 mr r6,r27
ffc2f7d8: 7f 43 d3 78 mr r3,r26
ffc2f7dc: 4b ff f9 91 bl ffc2f16c <scanpw>
errno = EINVAL;
fclose(fp);
return -1;
}
if (name) {
match = (strcmp(pwd->pw_name, name) == 0);
ffc2f7e0: 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)) {
ffc2f7e4: 2f 83 00 00 cmpwi cr7,r3,0
ffc2f7e8: 41 9e 00 64 beq- cr7,ffc2f84c <getpw_r+0x108>
errno = EINVAL;
fclose(fp);
return -1;
}
if (name) {
ffc2f7ec: 40 92 ff c8 bne+ cr4,ffc2f7b4 <getpw_r+0x70>
match = (strcmp(pwd->pw_name, name) == 0);
}
else {
match = (pwd->pw_uid == uid);
ffc2f7f0: a0 7f 00 08 lhz r3,8(r31) <== NOT EXECUTED
ffc2f7f4: 7c 63 e2 78 xor r3,r3,r28 <== NOT EXECUTED
ffc2f7f8: 7c 63 00 34 cntlzw r3,r3 <== NOT EXECUTED
ffc2f7fc: 54 63 d9 7e rlwinm r3,r3,27,5,31 <== NOT EXECUTED
}
if (match) {
ffc2f800: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc2f804: 41 9e ff c8 beq+ cr7,ffc2f7cc <getpw_r+0x88> <== NOT EXECUTED
fclose(fp);
ffc2f808: 7f 43 d3 78 mr r3,r26
ffc2f80c: 48 01 d5 0d bl ffc4cd18 <fclose>
*result = pwd;
ffc2f810: 93 f9 00 00 stw r31,0(r25)
ffc2f814: 38 60 00 00 li r3,0
}
}
fclose(fp);
errno = EINVAL;
return -1;
}
ffc2f818: 80 01 00 2c lwz r0,44(r1)
ffc2f81c: 81 81 00 08 lwz r12,8(r1)
ffc2f820: 7c 08 03 a6 mtlr r0
ffc2f824: 83 21 00 0c lwz r25,12(r1)
ffc2f828: 83 41 00 10 lwz r26,16(r1)
ffc2f82c: 7d 80 81 20 mtcrf 8,r12
ffc2f830: 83 61 00 14 lwz r27,20(r1)
ffc2f834: 83 81 00 18 lwz r28,24(r1)
ffc2f838: 83 a1 00 1c lwz r29,28(r1)
ffc2f83c: 83 c1 00 20 lwz r30,32(r1)
ffc2f840: 83 e1 00 24 lwz r31,36(r1)
ffc2f844: 38 21 00 28 addi r1,r1,40
ffc2f848: 4e 80 00 20 blr
errno = EINVAL;
return -1;
}
for(;;) {
if (!scanpw(fp, pwd, buffer, bufsize)) {
errno = EINVAL;
ffc2f84c: 48 01 d3 2d bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc2f850: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc2f854: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
fclose(fp);
ffc2f858: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED
ffc2f85c: 48 01 d4 bd bl ffc4cd18 <fclose> <== NOT EXECUTED
}
}
fclose(fp);
errno = EINVAL;
return -1;
}
ffc2f860: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED
ffc2f864: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED
return -1;
}
for(;;) {
if (!scanpw(fp, pwd, buffer, bufsize)) {
errno = EINVAL;
fclose(fp);
ffc2f868: 38 60 ff ff li r3,-1 <== NOT EXECUTED
}
}
fclose(fp);
errno = EINVAL;
return -1;
}
ffc2f86c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2f870: 83 21 00 0c lwz r25,12(r1) <== NOT EXECUTED
ffc2f874: 83 41 00 10 lwz r26,16(r1) <== NOT EXECUTED
ffc2f878: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED
ffc2f87c: 83 61 00 14 lwz r27,20(r1) <== NOT EXECUTED
ffc2f880: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED
ffc2f884: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED
ffc2f888: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED
ffc2f88c: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED
ffc2f890: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED
ffc2f894: 4e 80 00 20 blr <== NOT EXECUTED
int match;
init_etc_passwd_group();
if ((fp = fopen("/etc/passwd", "r")) == NULL) {
errno = EINVAL;
ffc2f898: 48 01 d2 e1 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc2f89c: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc2f8a0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc2f8a4: 38 60 ff ff li r3,-1 <== NOT EXECUTED
return -1;
ffc2f8a8: 4b ff ff 70 b ffc2f818 <getpw_r+0xd4> <== NOT EXECUTED
ffc2f2bc <getpwent>:
return NULL;
return p;
}
struct passwd *getpwent(void)
{
ffc2f2bc: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED
ffc2f2c0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
if (passwd_fp == NULL)
ffc2f2c4: 3c a0 00 00 lis r5,0 <== NOT EXECUTED
return NULL;
return p;
}
struct passwd *getpwent(void)
{
ffc2f2c8: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED
if (passwd_fp == NULL)
ffc2f2cc: 38 a5 5e fc addi r5,r5,24316 <== NOT EXECUTED
ffc2f2d0: 80 65 00 04 lwz r3,4(r5) <== NOT EXECUTED
return NULL;
return p;
}
struct passwd *getpwent(void)
{
ffc2f2d4: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED
if (passwd_fp == NULL)
ffc2f2d8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc2f2dc: 40 9e 00 1c bne- cr7,ffc2f2f8 <getpwent+0x3c> <== NOT EXECUTED
return NULL;
if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf))
return NULL;
return &pwent;
}
ffc2f2e0: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
struct passwd *getpwent(void)
{
if (passwd_fp == NULL)
return NULL;
if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf))
ffc2f2e4: 38 60 00 00 li r3,0 <== NOT EXECUTED
return NULL;
return &pwent;
}
ffc2f2e8: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc2f2ec: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc2f2f0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2f2f4: 4e 80 00 20 blr <== NOT EXECUTED
struct passwd *getpwent(void)
{
if (passwd_fp == NULL)
return NULL;
if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf))
ffc2f2f8: 3b e5 00 e0 addi r31,r5,224 <== NOT EXECUTED
ffc2f2fc: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc2f300: 38 a5 00 fc addi r5,r5,252 <== NOT EXECUTED
ffc2f304: 38 c0 00 c8 li r6,200 <== NOT EXECUTED
ffc2f308: 4b ff fe 65 bl ffc2f16c <scanpw> <== NOT EXECUTED
ffc2f30c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc2f310: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc2f314: 41 be ff cc beq- cr7,ffc2f2e0 <getpwent+0x24> <== NOT EXECUTED
return NULL;
return &pwent;
}
ffc2f318: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc2f31c: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc2f320: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc2f324: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2f328: 4e 80 00 20 blr <== NOT EXECUTED
ffc2f8d4 <getpwuid>:
}
struct passwd *getpwuid(
uid_t uid
)
{
ffc2f8d4: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED
struct passwd *p;
if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p))
ffc2f8d8: 3c 80 00 00 lis r4,0 <== NOT EXECUTED
}
struct passwd *getpwuid(
uid_t uid
)
{
ffc2f8dc: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
struct passwd *p;
if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p))
ffc2f8e0: 38 84 5e fc addi r4,r4,24316 <== NOT EXECUTED
ffc2f8e4: 38 a4 00 fc addi r5,r4,252 <== NOT EXECUTED
ffc2f8e8: 38 c0 00 c8 li r6,200 <== NOT EXECUTED
}
struct passwd *getpwuid(
uid_t uid
)
{
ffc2f8ec: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED
struct passwd *p;
if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p))
ffc2f8f0: 38 84 00 e0 addi r4,r4,224 <== NOT EXECUTED
ffc2f8f4: 38 e1 00 08 addi r7,r1,8 <== NOT EXECUTED
ffc2f8f8: 4b ff ff b5 bl ffc2f8ac <getpwuid_r> <== NOT EXECUTED
ffc2f8fc: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc2f900: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc2f904: 40 9e 00 08 bne- cr7,ffc2f90c <getpwuid+0x38> <== NOT EXECUTED
return NULL;
return p;
ffc2f908: 80 61 00 08 lwz r3,8(r1) <== NOT EXECUTED
}
ffc2f90c: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED
ffc2f910: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED
ffc2f914: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2f918: 4e 80 00 20 blr <== NOT EXECUTED
ffc2f8ac <getpwuid_r>:
struct passwd *pwd,
char *buffer,
size_t bufsize,
struct passwd **result
)
{
ffc2f8ac: 7c 8b 23 78 mr r11,r4 <== NOT EXECUTED
ffc2f8b0: 7c a9 2b 78 mr r9,r5 <== NOT EXECUTED
ffc2f8b4: 7c c0 33 78 mr r0,r6 <== NOT EXECUTED
ffc2f8b8: 7c e8 3b 78 mr r8,r7 <== NOT EXECUTED
return getpw_r(NULL, uid, pwd, buffer, bufsize, result);
ffc2f8bc: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED
ffc2f8c0: 7d 65 5b 78 mr r5,r11 <== NOT EXECUTED
ffc2f8c4: 7d 26 4b 78 mr r6,r9 <== NOT EXECUTED
ffc2f8c8: 7c 07 03 78 mr r7,r0 <== NOT EXECUTED
ffc2f8cc: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc2f8d0: 4b ff fe 74 b ffc2f744 <getpw_r> <== NOT EXECUTED
ffc0e2e8 <gettimeofday>:
*/
int gettimeofday(
struct timeval *tp,
void * __tz __attribute__((unused))
)
{
ffc0e2e8: 94 21 ff e0 stwu r1,-32(r1)
ffc0e2ec: 7c 08 02 a6 mflr r0
ffc0e2f0: 93 e1 00 1c stw r31,28(r1)
/* struct timezone* tzp = (struct timezone*) __tz; */
if ( !tp ) {
ffc0e2f4: 7c 7f 1b 79 mr. r31,r3
*/
int gettimeofday(
struct timeval *tp,
void * __tz __attribute__((unused))
)
{
ffc0e2f8: 90 01 00 24 stw r0,36(r1)
ffc0e2fc: 93 c1 00 18 stw r30,24(r1)
/* struct timezone* tzp = (struct timezone*) __tz; */
if ( !tp ) {
ffc0e300: 41 82 00 64 beq- ffc0e364 <gettimeofday+0x7c>
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0e304: 7f c0 00 a6 mfmsr r30
ffc0e308: 7c 10 42 a6 mfsprg r0,0
ffc0e30c: 7f c0 00 78 andc r0,r30,r0
ffc0e310: 7c 00 01 24 mtmsr r0
ISR_Level level;
struct timespec now;
suseconds_t useconds;
_ISR_Disable(level);
_TOD_Get( &now );
ffc0e314: 38 61 00 08 addi r3,r1,8
ffc0e318: 48 00 0c 15 bl ffc0ef2c <_TOD_Get>
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0e31c: 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;
ffc0e320: 3d 60 10 62 lis r11,4194
_ISR_Disable(level);
_TOD_Get( &now );
_ISR_Enable(level);
useconds = (suseconds_t)now.tv_nsec;
ffc0e324: 80 01 00 0c lwz r0,12(r1)
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
time->tv_sec = now.tv_sec;
time->tv_usec = useconds;
ffc0e328: 61 6b 4d d3 ori r11,r11,19923
_ISR_Enable(level);
useconds = (suseconds_t)now.tv_nsec;
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
time->tv_sec = now.tv_sec;
ffc0e32c: 81 21 00 08 lwz r9,8(r1)
time->tv_usec = useconds;
ffc0e330: 7d 60 58 96 mulhw r11,r0,r11
_ISR_Enable(level);
useconds = (suseconds_t)now.tv_nsec;
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
time->tv_sec = now.tv_sec;
ffc0e334: 91 3f 00 00 stw r9,0(r31)
time->tv_usec = useconds;
ffc0e338: 7c 00 fe 70 srawi r0,r0,31
ffc0e33c: 7d 6b 36 70 srawi r11,r11,6
ffc0e340: 7c 00 58 50 subf r0,r0,r11
ffc0e344: 90 1f 00 04 stw r0,4(r31)
ffc0e348: 38 60 00 00 li r3,0
* with Eric Norum, this is how GNU/Linux, Solaris, and MacOS X
* do it. This puts us in good company.
*/
return 0;
}
ffc0e34c: 80 01 00 24 lwz r0,36(r1)
ffc0e350: 83 c1 00 18 lwz r30,24(r1)
ffc0e354: 7c 08 03 a6 mtlr r0
ffc0e358: 83 e1 00 1c lwz r31,28(r1)
ffc0e35c: 38 21 00 20 addi r1,r1,32
ffc0e360: 4e 80 00 20 blr
void * __tz __attribute__((unused))
)
{
/* struct timezone* tzp = (struct timezone*) __tz; */
if ( !tp ) {
errno = EFAULT;
ffc0e364: 48 00 38 55 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc0e368: 38 00 00 0e li r0,14 <== NOT EXECUTED
ffc0e36c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc0e370: 38 60 ff ff li r3,-1 <== NOT EXECUTED
return -1;
ffc0e374: 4b ff ff d8 b ffc0e34c <gettimeofday+0x64> <== NOT EXECUTED
ffc07afc <getuid>:
* 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
* P1003.1b-1993, p. 84
*/
uid_t getuid( void )
{
ffc07afc: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc07b00: 81 29 34 ec lwz r9,13548(r9) <== NOT EXECUTED
return _POSIX_types_Uid;
}
ffc07b04: a0 69 00 32 lhz r3,50(r9) <== NOT EXECUTED
ffc07b08: 4e 80 00 20 blr <== NOT EXECUTED
ffc17d78 <imfs_dir_rmnod>:
int imfs_dir_rmnod(
rtems_filesystem_location_info_t *parent_pathloc, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN */
)
{
ffc17d78: 94 21 ff d8 stwu r1,-40(r1)
ffc17d7c: 7c 08 02 a6 mflr r0
ffc17d80: 90 01 00 2c stw r0,44(r1)
ffc17d84: 93 c1 00 20 stw r30,32(r1)
ffc17d88: 7c 9e 23 78 mr r30,r4
ffc17d8c: 93 e1 00 24 stw r31,36(r1)
ffc17d90: 93 a1 00 1c stw r29,28(r1)
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) pathloc->node_access;
ffc17d94: 83 e4 00 00 lwz r31,0(r4)
ffc17d98: 81 3f 00 50 lwz r9,80(r31)
ffc17d9c: 38 1f 00 54 addi r0,r31,84
ffc17da0: 7f 89 00 00 cmpw cr7,r9,r0
ffc17da4: 40 9e 00 d4 bne- cr7,ffc17e78 <imfs_dir_rmnod+0x100>
/*
* You cannot remove the file system root node.
*/
if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access )
ffc17da8: 81 24 00 10 lwz r9,16(r4)
ffc17dac: 80 09 00 1c lwz r0,28(r9)
ffc17db0: 7f 9f 00 00 cmpw cr7,r31,r0
ffc17db4: 41 9e 00 d8 beq- cr7,ffc17e8c <imfs_dir_rmnod+0x114>
/*
* You cannot remove a mountpoint.
*/
if ( the_jnode->info.directory.mt_fs != NULL )
ffc17db8: 83 bf 00 5c lwz r29,92(r31)
ffc17dbc: 2f 9d 00 00 cmpwi cr7,r29,0
ffc17dc0: 40 9e 00 cc bne- cr7,ffc17e8c <imfs_dir_rmnod+0x114>
/*
* Take the node out of the parent's chain that contains this node
*/
if ( the_jnode->Parent != NULL ) {
ffc17dc4: 80 1f 00 08 lwz r0,8(r31)
ffc17dc8: 2f 80 00 00 cmpwi cr7,r0,0
ffc17dcc: 41 9e 00 10 beq- cr7,ffc17ddc <imfs_dir_rmnod+0x64>
ffc17dd0: 7f e3 fb 78 mr r3,r31
ffc17dd4: 4b ff 38 19 bl ffc0b5ec <_Chain_Extract>
rtems_chain_extract( (rtems_chain_node *) the_jnode );
the_jnode->Parent = NULL;
ffc17dd8: 93 bf 00 08 stw r29,8(r31)
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
ffc17ddc: a1 3f 00 34 lhz r9,52(r31)
IMFS_update_ctime( the_jnode );
ffc17de0: 38 80 00 00 li r4,0
ffc17de4: 38 61 00 08 addi r3,r1,8
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
ffc17de8: 38 09 ff ff addi r0,r9,-1
ffc17dec: b0 1f 00 34 sth r0,52(r31)
IMFS_update_ctime( the_jnode );
ffc17df0: 4b fe e3 21 bl ffc06110 <gettimeofday>
ffc17df4: 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) ) {
ffc17df8: 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 );
ffc17dfc: 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) ) {
ffc17e00: 4b ff c8 09 bl ffc14608 <rtems_libio_is_file_open>
ffc17e04: 2f 83 00 00 cmpwi cr7,r3,0
ffc17e08: 40 9e 00 50 bne- cr7,ffc17e58 <imfs_dir_rmnod+0xe0>
ffc17e0c: a0 1f 00 34 lhz r0,52(r31)
ffc17e10: 2f 80 00 00 cmpwi cr7,r0,0
ffc17e14: 40 9e 00 44 bne- cr7,ffc17e58 <imfs_dir_rmnod+0xe0>
/*
* Is the rtems_filesystem_current is this node?
*/
if ( rtems_filesystem_current.node_access == pathloc->node_access )
ffc17e18: 3d 20 00 00 lis r9,0
ffc17e1c: 81 7e 00 00 lwz r11,0(r30)
ffc17e20: 81 29 26 b4 lwz r9,9908(r9)
ffc17e24: 81 49 00 04 lwz r10,4(r9)
ffc17e28: 7f 8a 58 00 cmpw cr7,r10,r11
ffc17e2c: 41 9e 00 74 beq- cr7,ffc17ea0 <imfs_dir_rmnod+0x128>
/*
* Free memory associated with a memory file.
*/
free( the_jnode );
ffc17e30: 7f e3 fb 78 mr r3,r31
ffc17e34: 4b fe e2 15 bl ffc06048 <free>
}
return 0;
}
ffc17e38: 80 01 00 2c lwz r0,44(r1)
/*
* Free memory associated with a memory file.
*/
free( the_jnode );
ffc17e3c: 38 60 00 00 li r3,0
}
return 0;
}
ffc17e40: 83 a1 00 1c lwz r29,28(r1)
ffc17e44: 7c 08 03 a6 mtlr r0
ffc17e48: 83 c1 00 20 lwz r30,32(r1)
ffc17e4c: 83 e1 00 24 lwz r31,36(r1)
ffc17e50: 38 21 00 28 addi r1,r1,40
ffc17e54: 4e 80 00 20 blr
/*
* Free memory associated with a memory file.
*/
free( the_jnode );
ffc17e58: 38 60 00 00 li r3,0
}
return 0;
}
ffc17e5c: 80 01 00 2c lwz r0,44(r1)
ffc17e60: 83 a1 00 1c lwz r29,28(r1)
ffc17e64: 7c 08 03 a6 mtlr r0
ffc17e68: 83 c1 00 20 lwz r30,32(r1)
ffc17e6c: 83 e1 00 24 lwz r31,36(r1)
ffc17e70: 38 21 00 28 addi r1,r1,40
ffc17e74: 4e 80 00 20 blr
/*
* 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 );
ffc17e78: 48 00 08 99 bl ffc18710 <__errno>
ffc17e7c: 38 00 00 5a li r0,90
ffc17e80: 90 03 00 00 stw r0,0(r3)
ffc17e84: 38 60 ff ff li r3,-1
ffc17e88: 4b ff ff d4 b ffc17e5c <imfs_dir_rmnod+0xe4>
/*
* You cannot remove a mountpoint.
*/
if ( the_jnode->info.directory.mt_fs != NULL )
rtems_set_errno_and_return_minus_one( EBUSY );
ffc17e8c: 48 00 08 85 bl ffc18710 <__errno>
ffc17e90: 38 00 00 10 li r0,16
ffc17e94: 90 03 00 00 stw r0,0(r3)
ffc17e98: 38 60 ff ff li r3,-1
ffc17e9c: 4b ff ff c0 b ffc17e5c <imfs_dir_rmnod+0xe4>
/*
* Is the rtems_filesystem_current is this node?
*/
if ( rtems_filesystem_current.node_access == pathloc->node_access )
rtems_filesystem_current.node_access = NULL;
ffc17ea0: 90 09 00 04 stw r0,4(r9) <== NOT EXECUTED
ffc17ea4: 4b ff ff 8c b ffc17e30 <imfs_dir_rmnod+0xb8> <== NOT EXECUTED
ffc2f32c <init_etc_passwd_group>:
/*
* Initialize useable but dummy databases
*/
void init_etc_passwd_group(void)
{
ffc2f32c: 94 21 ff f0 stwu r1,-16(r1)
ffc2f330: 7c 08 02 a6 mflr r0
FILE *fp;
static char etc_passwd_initted = 0;
if (etc_passwd_initted)
ffc2f334: 3d 20 00 00 lis r9,0
/*
* Initialize useable but dummy databases
*/
void init_etc_passwd_group(void)
{
ffc2f338: 90 01 00 14 stw r0,20(r1)
FILE *fp;
static char etc_passwd_initted = 0;
if (etc_passwd_initted)
ffc2f33c: 39 29 5e fc addi r9,r9,24316
/*
* Initialize useable but dummy databases
*/
void init_etc_passwd_group(void)
{
ffc2f340: 93 c1 00 08 stw r30,8(r1)
ffc2f344: 93 e1 00 0c stw r31,12(r1)
FILE *fp;
static char etc_passwd_initted = 0;
if (etc_passwd_initted)
ffc2f348: 88 09 01 c4 lbz r0,452(r9)
ffc2f34c: 2f 80 00 00 cmpwi cr7,r0,0
ffc2f350: 41 9e 00 1c beq- cr7,ffc2f36c <init_etc_passwd_group+0x40>
fprintf( fp, "root:x:0:root\n"
"rtems:x:1:rtems\n"
"tty:x:2:tty\n" );
fclose(fp);
}
}
ffc2f354: 80 01 00 14 lwz r0,20(r1)
ffc2f358: 83 c1 00 08 lwz r30,8(r1)
ffc2f35c: 7c 08 03 a6 mtlr r0
ffc2f360: 83 e1 00 0c lwz r31,12(r1)
ffc2f364: 38 21 00 10 addi r1,r1,16
ffc2f368: 4e 80 00 20 blr
FILE *fp;
static char etc_passwd_initted = 0;
if (etc_passwd_initted)
return;
etc_passwd_initted = 1;
ffc2f36c: 38 00 00 01 li r0,1
ffc2f370: 98 09 01 c4 stb r0,452(r9)
mkdir("/etc", 0777);
ffc2f374: 3c 60 ff c7 lis r3,-57
/*
* Initialize /etc/passwd
*/
if ((fp = fopen("/etc/passwd", "r")) != NULL) {
ffc2f378: 3f c0 ff c7 lis r30,-57
ffc2f37c: 3f e0 ff c7 lis r31,-57
static char etc_passwd_initted = 0;
if (etc_passwd_initted)
return;
etc_passwd_initted = 1;
mkdir("/etc", 0777);
ffc2f380: 38 80 01 ff li r4,511
ffc2f384: 38 63 89 54 addi r3,r3,-30380
/*
* Initialize /etc/passwd
*/
if ((fp = fopen("/etc/passwd", "r")) != NULL) {
ffc2f388: 3b de 89 d4 addi r30,r30,-30252
static char etc_passwd_initted = 0;
if (etc_passwd_initted)
return;
etc_passwd_initted = 1;
mkdir("/etc", 0777);
ffc2f38c: 4b fd 90 4d bl ffc083d8 <mkdir>
/*
* Initialize /etc/passwd
*/
if ((fp = fopen("/etc/passwd", "r")) != NULL) {
ffc2f390: 3b ff 17 d4 addi r31,r31,6100
ffc2f394: 7f c3 f3 78 mr r3,r30
ffc2f398: 7f e4 fb 78 mr r4,r31
ffc2f39c: 48 01 e4 a9 bl ffc4d844 <fopen>
ffc2f3a0: 2f 83 00 00 cmpwi cr7,r3,0
ffc2f3a4: 41 9e 00 7c beq- cr7,ffc2f420 <init_etc_passwd_group+0xf4>
}
else if ((fp = fopen("/etc/passwd", "w")) != NULL) {
fprintf(fp, "root:*:0:0:root::/:/bin/sh\n"
"rtems:*:1:1:RTEMS Application::/:/bin/sh\n"
"tty:!:2:2:tty owner::/:/bin/false\n" );
fclose(fp);
ffc2f3a8: 48 01 d9 71 bl ffc4cd18 <fclose>
}
/*
* Initialize /etc/group
*/
if ((fp = fopen("/etc/group", "r")) != NULL) {
ffc2f3ac: 3f c0 ff c7 lis r30,-57
ffc2f3b0: 3b de 8a 84 addi r30,r30,-30076
ffc2f3b4: 7f e4 fb 78 mr r4,r31
ffc2f3b8: 7f c3 f3 78 mr r3,r30
ffc2f3bc: 48 01 e4 89 bl ffc4d844 <fopen>
ffc2f3c0: 2f 83 00 00 cmpwi cr7,r3,0
ffc2f3c4: 41 9e 00 20 beq- cr7,ffc2f3e4 <init_etc_passwd_group+0xb8>
}
else if ((fp = fopen("/etc/group", "w")) != NULL) {
fprintf( fp, "root:x:0:root\n"
"rtems:x:1:rtems\n"
"tty:x:2:tty\n" );
fclose(fp);
ffc2f3c8: 48 01 d9 51 bl ffc4cd18 <fclose> <== NOT EXECUTED
}
}
ffc2f3cc: 80 01 00 14 lwz r0,20(r1)
ffc2f3d0: 83 c1 00 08 lwz r30,8(r1)
ffc2f3d4: 7c 08 03 a6 mtlr r0
ffc2f3d8: 83 e1 00 0c lwz r31,12(r1)
ffc2f3dc: 38 21 00 10 addi r1,r1,16
ffc2f3e0: 4e 80 00 20 blr
* Initialize /etc/group
*/
if ((fp = fopen("/etc/group", "r")) != NULL) {
fclose(fp);
}
else if ((fp = fopen("/etc/group", "w")) != NULL) {
ffc2f3e4: 3c 80 ff c7 lis r4,-57
ffc2f3e8: 7f c3 f3 78 mr r3,r30
ffc2f3ec: 38 84 a0 7c addi r4,r4,-24452
ffc2f3f0: 48 01 e4 55 bl ffc4d844 <fopen>
ffc2f3f4: 7c 7f 1b 79 mr. r31,r3
ffc2f3f8: 41 a2 ff 5c beq- ffc2f354 <init_etc_passwd_group+0x28>
fprintf( fp, "root:x:0:root\n"
ffc2f3fc: 3c 60 ff c7 lis r3,-57
ffc2f400: 38 80 00 01 li r4,1
ffc2f404: 38 a0 00 2a li r5,42
ffc2f408: 7f e6 fb 78 mr r6,r31
ffc2f40c: 38 63 e8 a8 addi r3,r3,-5976
ffc2f410: 48 01 fb 79 bl ffc4ef88 <fwrite>
"rtems:x:1:rtems\n"
"tty:x:2:tty\n" );
fclose(fp);
ffc2f414: 7f e3 fb 78 mr r3,r31
ffc2f418: 48 01 d9 01 bl ffc4cd18 <fclose>
ffc2f41c: 4b ff ff b0 b ffc2f3cc <init_etc_passwd_group+0xa0>
* Initialize /etc/passwd
*/
if ((fp = fopen("/etc/passwd", "r")) != NULL) {
fclose(fp);
}
else if ((fp = fopen("/etc/passwd", "w")) != NULL) {
ffc2f420: 3c 80 ff c7 lis r4,-57
ffc2f424: 7f c3 f3 78 mr r3,r30
ffc2f428: 38 84 a0 7c addi r4,r4,-24452
ffc2f42c: 48 01 e4 19 bl ffc4d844 <fopen>
ffc2f430: 7c 7e 1b 79 mr. r30,r3
ffc2f434: 41 a2 ff 78 beq- ffc2f3ac <init_etc_passwd_group+0x80>
fprintf(fp, "root:*:0:0:root::/:/bin/sh\n"
ffc2f438: 3c 60 ff c7 lis r3,-57
ffc2f43c: 38 63 e8 40 addi r3,r3,-6080
ffc2f440: 38 80 00 01 li r4,1
ffc2f444: 38 a0 00 66 li r5,102
ffc2f448: 7f c6 f3 78 mr r6,r30
ffc2f44c: 48 01 fb 3d bl ffc4ef88 <fwrite>
"rtems:*:1:1:RTEMS Application::/:/bin/sh\n"
"tty:!:2:2:tty owner::/:/bin/false\n" );
fclose(fp);
ffc2f450: 7f c3 f3 78 mr r3,r30
ffc2f454: 4b ff ff 54 b ffc2f3a8 <init_etc_passwd_group+0x7c>
ffc08ec8 <ioctl>:
int ioctl(
int fd,
ioctl_command_t command,
...
)
{
ffc08ec8: 94 21 ff e0 stwu r1,-32(r1)
ffc08ecc: 7c 08 02 a6 mflr r0
va_list ap;
rtems_status_code rc;
rtems_libio_t *iop;
void *buffer;
rtems_libio_check_fd( fd );
ffc08ed0: 3d 20 00 00 lis r9,0
int ioctl(
int fd,
ioctl_command_t command,
...
)
{
ffc08ed4: 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 );
ffc08ed8: 80 09 26 6c lwz r0,9836(r9)
int ioctl(
int fd,
ioctl_command_t command,
...
)
{
ffc08edc: 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 );
ffc08ee0: 7f 83 00 40 cmplw cr7,r3,r0
ffc08ee4: 40 9c 00 6c bge- cr7,ffc08f50 <ioctl+0x88>
iop = rtems_libio_iop( fd );
ffc08ee8: 3d 20 00 00 lis r9,0
ffc08eec: 80 09 27 28 lwz r0,10024(r9)
ffc08ef0: 1c 63 00 48 mulli r3,r3,72
ffc08ef4: 7c 60 1a 14 add r3,r0,r3
rtems_libio_check_is_open(iop);
ffc08ef8: 80 03 00 18 lwz r0,24(r3)
ffc08efc: 70 09 01 00 andi. r9,r0,256
ffc08f00: 41 82 00 50 beq- ffc08f50 <ioctl+0x88>
va_start(ap, command);
buffer = va_arg(ap, void *);
ffc08f04: 38 00 00 03 li r0,3
ffc08f08: 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);
ffc08f0c: 39 21 00 10 addi r9,r1,16
ffc08f10: 38 01 00 28 addi r0,r1,40
/*
* Now process the ioctl().
*/
if ( !iop->handlers )
ffc08f14: 81 63 00 40 lwz r11,64(r3)
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
va_start(ap, command);
ffc08f18: 90 01 00 0c stw r0,12(r1)
/*
* Now process the ioctl().
*/
if ( !iop->handlers )
ffc08f1c: 2f 8b 00 00 cmpwi cr7,r11,0
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
va_start(ap, command);
ffc08f20: 91 21 00 10 stw r9,16(r1)
buffer = va_arg(ap, void *);
ffc08f24: 80 a9 00 08 lwz r5,8(r9)
/*
* Now process the ioctl().
*/
if ( !iop->handlers )
ffc08f28: 41 9e 00 28 beq- cr7,ffc08f50 <ioctl+0x88>
rtems_set_errno_and_return_minus_one( EBADF );
if ( !iop->handlers->ioctl_h )
ffc08f2c: 80 0b 00 10 lwz r0,16(r11)
ffc08f30: 2f 80 00 00 cmpwi cr7,r0,0
ffc08f34: 41 9e 00 30 beq- cr7,ffc08f64 <ioctl+0x9c>
rtems_set_errno_and_return_minus_one( ENOTSUP );
rc = (*iop->handlers->ioctl_h)( iop, command, buffer );
ffc08f38: 7c 09 03 a6 mtctr r0
ffc08f3c: 4e 80 04 21 bctrl
return rc;
}
ffc08f40: 80 01 00 24 lwz r0,36(r1)
ffc08f44: 38 21 00 20 addi r1,r1,32
ffc08f48: 7c 08 03 a6 mtlr r0
ffc08f4c: 4e 80 00 20 blr
/*
* Now process the ioctl().
*/
if ( !iop->handlers )
rtems_set_errno_and_return_minus_one( EBADF );
ffc08f50: 48 00 fa dd bl ffc18a2c <__errno>
ffc08f54: 38 00 00 09 li r0,9
ffc08f58: 90 03 00 00 stw r0,0(r3)
ffc08f5c: 38 60 ff ff li r3,-1
ffc08f60: 4b ff ff e0 b ffc08f40 <ioctl+0x78>
if ( !iop->handlers->ioctl_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc08f64: 48 00 fa c9 bl ffc18a2c <__errno> <== NOT EXECUTED
ffc08f68: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc08f6c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc08f70: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc08f74: 4b ff ff cc b ffc08f40 <ioctl+0x78> <== NOT EXECUTED
ffc06588 <iproc>:
/*
* Process a single input character
*/
static int
iproc (unsigned char c, struct rtems_termios_tty *tty)
{
ffc06588: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED
ffc0658c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc06590: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED
if (tty->termios.c_iflag & ISTRIP)
ffc06594: 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)
{
ffc06598: 93 c1 00 08 stw r30,8(r1) <== NOT EXECUTED
ffc0659c: 7c 9e 23 78 mr r30,r4 <== NOT EXECUTED
if (tty->termios.c_iflag & ISTRIP)
ffc065a0: 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)
{
ffc065a4: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED
ffc065a8: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED
if (tty->termios.c_iflag & ISTRIP)
ffc065ac: 41 82 00 08 beq- ffc065b4 <iproc+0x2c> <== NOT EXECUTED
c &= 0x7f;
ffc065b0: 54 7f 06 7e clrlwi r31,r3,25 <== NOT EXECUTED
if (tty->termios.c_iflag & IUCLC)
ffc065b4: 70 0b 02 00 andi. r11,r0,512 <== NOT EXECUTED
ffc065b8: 41 82 00 28 beq- ffc065e0 <iproc+0x58> <== NOT EXECUTED
c = tolower (c);
ffc065bc: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc065c0: 81 69 26 a0 lwz r11,9888(r9) <== NOT EXECUTED
ffc065c4: 7f e9 fb 78 mr r9,r31 <== NOT EXECUTED
ffc065c8: 7f eb fa 14 add r31,r11,r31 <== NOT EXECUTED
ffc065cc: 89 7f 00 01 lbz r11,1(r31) <== NOT EXECUTED
ffc065d0: 55 6b 07 be clrlwi r11,r11,30 <== NOT EXECUTED
ffc065d4: 2f 8b 00 01 cmpwi cr7,r11,1 <== NOT EXECUTED
ffc065d8: 41 9e 01 28 beq- cr7,ffc06700 <iproc+0x178> <== NOT EXECUTED
ffc065dc: 55 3f 06 3e clrlwi r31,r9,24 <== NOT EXECUTED
if (c == '\r') {
ffc065e0: 2f 9f 00 0d cmpwi cr7,r31,13 <== NOT EXECUTED
ffc065e4: 41 9e 00 64 beq- cr7,ffc06648 <iproc+0xc0> <== NOT EXECUTED
if (tty->termios.c_iflag & IGNCR)
return 0;
if (tty->termios.c_iflag & ICRNL)
c = '\n';
}
else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {
ffc065e8: 2f 9f 00 0a cmpwi cr7,r31,10 <== NOT EXECUTED
ffc065ec: 41 9e 01 04 beq- cr7,ffc066f0 <iproc+0x168> <== NOT EXECUTED
c = '\r';
}
if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {
ffc065f0: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED
ffc065f4: 40 9e 00 84 bne- cr7,ffc06678 <iproc+0xf0> <== NOT EXECUTED
}
/*
* FIXME: Should do IMAXBEL handling somehow
*/
if (tty->ccount < (CBUFSIZE-1)) {
ffc065f8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc065fc: 81 69 21 68 lwz r11,8552(r9) <== NOT EXECUTED
ffc06600: 81 3e 00 20 lwz r9,32(r30) <== NOT EXECUTED
ffc06604: 38 0b ff ff addi r0,r11,-1 <== NOT EXECUTED
ffc06608: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED
ffc0660c: 40 9c 00 44 bge- cr7,ffc06650 <iproc+0xc8> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO)
ffc06610: 80 1e 00 3c lwz r0,60(r30) <== NOT EXECUTED
ffc06614: 70 0b 00 08 andi. r11,r0,8 <== NOT EXECUTED
ffc06618: 40 82 00 f0 bne- ffc06708 <iproc+0x180> <== NOT EXECUTED
echo (c, tty);
tty->cbuf[tty->ccount++] = c;
ffc0661c: 81 7e 00 1c lwz r11,28(r30) <== NOT EXECUTED
ffc06620: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED
ffc06624: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc06628: 7f eb 49 ae stbx r31,r11,r9 <== NOT EXECUTED
ffc0662c: 90 1e 00 20 stw r0,32(r30) <== NOT EXECUTED
}
return 0;
}
ffc06630: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc06634: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED
ffc06638: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0663c: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc06640: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc06644: 4e 80 00 20 blr <== NOT EXECUTED
if (tty->termios.c_iflag & ISTRIP)
c &= 0x7f;
if (tty->termios.c_iflag & IUCLC)
c = tolower (c);
if (c == '\r') {
if (tty->termios.c_iflag & IGNCR)
ffc06648: 70 09 00 80 andi. r9,r0,128 <== NOT EXECUTED
ffc0664c: 41 a2 00 20 beq+ ffc0666c <iproc+0xe4> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO)
echo (c, tty);
tty->cbuf[tty->ccount++] = c;
}
return 0;
}
ffc06650: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
* FIXME: Should do IMAXBEL handling somehow
*/
if (tty->ccount < (CBUFSIZE-1)) {
if (tty->termios.c_lflag & ECHO)
echo (c, tty);
tty->cbuf[tty->ccount++] = c;
ffc06654: 38 60 00 00 li r3,0 <== NOT EXECUTED
}
return 0;
}
ffc06658: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED
ffc0665c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc06660: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc06664: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc06668: 4e 80 00 20 blr <== NOT EXECUTED
if (tty->termios.c_iflag & IUCLC)
c = tolower (c);
if (c == '\r') {
if (tty->termios.c_iflag & IGNCR)
return 0;
if (tty->termios.c_iflag & ICRNL)
ffc0666c: 70 0b 01 00 andi. r11,r0,256 <== NOT EXECUTED
ffc06670: 41 82 00 08 beq- ffc06678 <iproc+0xf0> <== NOT EXECUTED
ffc06674: 3b e0 00 0a li r31,10 <== NOT EXECUTED
c = '\n';
}
else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {
c = '\r';
}
if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {
ffc06678: 80 1e 00 3c lwz r0,60(r30) <== NOT EXECUTED
ffc0667c: 70 0b 00 02 andi. r11,r0,2 <== NOT EXECUTED
ffc06680: 41 a2 ff 78 beq- ffc065f8 <iproc+0x70> <== NOT EXECUTED
if (c == tty->termios.c_cc[VERASE]) {
ffc06684: 89 3e 00 43 lbz r9,67(r30) <== NOT EXECUTED
ffc06688: 7f 89 f8 00 cmpw cr7,r9,r31 <== NOT EXECUTED
ffc0668c: 41 9e 00 e8 beq- cr7,ffc06774 <iproc+0x1ec> <== NOT EXECUTED
erase (tty, 0);
return 0;
}
else if (c == tty->termios.c_cc[VKILL]) {
ffc06690: 89 3e 00 44 lbz r9,68(r30) <== NOT EXECUTED
ffc06694: 7f 89 f8 00 cmpw cr7,r9,r31 <== NOT EXECUTED
ffc06698: 41 9e 00 94 beq- cr7,ffc0672c <iproc+0x1a4> <== NOT EXECUTED
erase (tty, 1);
return 0;
}
else if (c == tty->termios.c_cc[VEOF]) {
ffc0669c: 89 3e 00 45 lbz r9,69(r30) <== NOT EXECUTED
ffc066a0: 38 60 00 01 li r3,1 <== NOT EXECUTED
ffc066a4: 7f 89 f8 00 cmpw cr7,r9,r31 <== NOT EXECUTED
ffc066a8: 41 be ff 88 beq- cr7,ffc06630 <iproc+0xa8> <== NOT EXECUTED
return 1;
}
else if (c == '\n') {
ffc066ac: 2f 9f 00 0a cmpwi cr7,r31,10 <== NOT EXECUTED
ffc066b0: 41 9e 00 90 beq- cr7,ffc06740 <iproc+0x1b8> <== NOT EXECUTED
if (tty->termios.c_lflag & (ECHO | ECHONL))
echo (c, tty);
tty->cbuf[tty->ccount++] = c;
return 1;
}
else if ((c == tty->termios.c_cc[VEOL])
ffc066b4: 89 3e 00 4c lbz r9,76(r30) <== NOT EXECUTED
ffc066b8: 7f 89 f8 00 cmpw cr7,r9,r31 <== NOT EXECUTED
ffc066bc: 41 9e 00 10 beq- cr7,ffc066cc <iproc+0x144> <== NOT EXECUTED
|| (c == tty->termios.c_cc[VEOL2])) {
ffc066c0: 89 3e 00 51 lbz r9,81(r30) <== NOT EXECUTED
ffc066c4: 7f 89 f8 00 cmpw cr7,r9,r31 <== NOT EXECUTED
ffc066c8: 40 9e ff 30 bne+ cr7,ffc065f8 <iproc+0x70> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO)
ffc066cc: 70 0b 00 08 andi. r11,r0,8 <== NOT EXECUTED
ffc066d0: 40 82 00 4c bne- ffc0671c <iproc+0x194> <== NOT EXECUTED
echo (c, tty);
tty->cbuf[tty->ccount++] = c;
ffc066d4: 81 3e 00 20 lwz r9,32(r30) <== NOT EXECUTED
ffc066d8: 38 60 00 01 li r3,1 <== NOT EXECUTED
ffc066dc: 81 7e 00 1c lwz r11,28(r30) <== NOT EXECUTED
ffc066e0: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED
ffc066e4: 7f eb 49 ae stbx r31,r11,r9 <== NOT EXECUTED
ffc066e8: 90 1e 00 20 stw r0,32(r30) <== NOT EXECUTED
return 1;
ffc066ec: 4b ff ff 44 b ffc06630 <iproc+0xa8> <== NOT EXECUTED
if (tty->termios.c_iflag & IGNCR)
return 0;
if (tty->termios.c_iflag & ICRNL)
c = '\n';
}
else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {
ffc066f0: 70 09 00 40 andi. r9,r0,64 <== NOT EXECUTED
ffc066f4: 41 a2 ff 84 beq- ffc06678 <iproc+0xf0> <== NOT EXECUTED
ffc066f8: 3b e0 00 0d li r31,13 <== NOT EXECUTED
ffc066fc: 4b ff ff 7c b ffc06678 <iproc+0xf0> <== NOT EXECUTED
iproc (unsigned char c, struct rtems_termios_tty *tty)
{
if (tty->termios.c_iflag & ISTRIP)
c &= 0x7f;
if (tty->termios.c_iflag & IUCLC)
c = tolower (c);
ffc06700: 39 29 00 20 addi r9,r9,32 <== NOT EXECUTED
ffc06704: 4b ff fe d8 b ffc065dc <iproc+0x54> <== NOT EXECUTED
/*
* FIXME: Should do IMAXBEL handling somehow
*/
if (tty->ccount < (CBUFSIZE-1)) {
if (tty->termios.c_lflag & ECHO)
echo (c, tty);
ffc06708: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc0670c: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED
ffc06710: 4b ff fb 4d bl ffc0625c <echo> <== NOT EXECUTED
ffc06714: 81 3e 00 20 lwz r9,32(r30) <== NOT EXECUTED
ffc06718: 4b ff ff 04 b ffc0661c <iproc+0x94> <== NOT EXECUTED
return 1;
}
else if ((c == tty->termios.c_cc[VEOL])
|| (c == tty->termios.c_cc[VEOL2])) {
if (tty->termios.c_lflag & ECHO)
echo (c, tty);
ffc0671c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc06720: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED
ffc06724: 4b ff fb 39 bl ffc0625c <echo> <== NOT EXECUTED
ffc06728: 4b ff ff ac b ffc066d4 <iproc+0x14c> <== NOT EXECUTED
if (c == tty->termios.c_cc[VERASE]) {
erase (tty, 0);
return 0;
}
else if (c == tty->termios.c_cc[VKILL]) {
erase (tty, 1);
ffc0672c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc06730: 38 80 00 01 li r4,1 <== NOT EXECUTED
ffc06734: 4b ff fb cd bl ffc06300 <erase> <== NOT EXECUTED
ffc06738: 38 60 00 00 li r3,0 <== NOT EXECUTED
return 0;
ffc0673c: 4b ff fe f4 b ffc06630 <iproc+0xa8> <== NOT EXECUTED
}
else if (c == tty->termios.c_cc[VEOF]) {
return 1;
}
else if (c == '\n') {
if (tty->termios.c_lflag & (ECHO | ECHONL))
ffc06740: 70 09 00 48 andi. r9,r0,72 <== NOT EXECUTED
ffc06744: 41 a2 00 10 beq+ ffc06754 <iproc+0x1cc> <== NOT EXECUTED
echo (c, tty);
ffc06748: 38 60 00 0a li r3,10 <== NOT EXECUTED
ffc0674c: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED
ffc06750: 4b ff fb 0d bl ffc0625c <echo> <== NOT EXECUTED
tty->cbuf[tty->ccount++] = c;
ffc06754: 81 3e 00 20 lwz r9,32(r30) <== NOT EXECUTED
ffc06758: 39 40 00 0a li r10,10 <== NOT EXECUTED
ffc0675c: 81 7e 00 1c lwz r11,28(r30) <== NOT EXECUTED
ffc06760: 38 60 00 01 li r3,1 <== NOT EXECUTED
ffc06764: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED
ffc06768: 7d 4b 49 ae stbx r10,r11,r9 <== NOT EXECUTED
ffc0676c: 90 1e 00 20 stw r0,32(r30) <== NOT EXECUTED
return 1;
ffc06770: 4b ff fe c0 b ffc06630 <iproc+0xa8> <== NOT EXECUTED
else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {
c = '\r';
}
if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {
if (c == tty->termios.c_cc[VERASE]) {
erase (tty, 0);
ffc06774: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc06778: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc0677c: 4b ff fb 85 bl ffc06300 <erase> <== NOT EXECUTED
ffc06780: 38 60 00 00 li r3,0 <== NOT EXECUTED
return 0;
ffc06784: 4b ff fe ac b ffc06630 <iproc+0xa8> <== NOT EXECUTED
ffc28afc <kill>:
#if !defined(RTEMS_POSIX_API)
int kill( pid_t pid, int sig )
{
return 0;
}
ffc28afc: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc28b00: 4e 80 00 20 blr <== NOT EXECUTED
ffc2fa34 <link>:
int link(
const char *existing,
const char *new
)
{
ffc2fa34: 94 21 ff b8 stwu r1,-72(r1)
ffc2fa38: 7c 08 02 a6 mflr r0
ffc2fa3c: 93 81 00 38 stw r28,56(r1)
* Get the node we are linking to.
*/
result = rtems_filesystem_evaluate_path( existing, strlen( existing ),
0, &existing_loc, true );
if ( result != 0 )
ffc2fa40: 3b 80 ff ff li r28,-1
int link(
const char *existing,
const char *new
)
{
ffc2fa44: 90 01 00 4c stw r0,76(r1)
ffc2fa48: 93 a1 00 3c stw r29,60(r1)
ffc2fa4c: 7c 7d 1b 78 mr r29,r3
ffc2fa50: 93 c1 00 40 stw r30,64(r1)
ffc2fa54: 7c 9e 23 78 mr r30,r4
ffc2fa58: 93 e1 00 44 stw r31,68(r1)
/*
* Get the node we are linking to.
*/
result = rtems_filesystem_evaluate_path( existing, strlen( existing ),
ffc2fa5c: 48 02 4e 89 bl ffc548e4 <strlen>
ffc2fa60: 3b e1 00 0c addi r31,r1,12
ffc2fa64: 7c 64 1b 78 mr r4,r3
ffc2fa68: 38 a0 00 00 li r5,0
ffc2fa6c: 7f a3 eb 78 mr r3,r29
ffc2fa70: 7f e6 fb 78 mr r6,r31
ffc2fa74: 38 e0 00 01 li r7,1
ffc2fa78: 4b fd 7e 15 bl ffc0788c <rtems_filesystem_evaluate_path>
0, &existing_loc, true );
if ( result != 0 )
ffc2fa7c: 2f 83 00 00 cmpwi cr7,r3,0
ffc2fa80: 40 9e 01 04 bne- cr7,ffc2fb84 <link+0x150>
/*
* Get the parent of the node we are creating.
*/
rtems_filesystem_get_start_loc( new, &i, &parent_loc );
ffc2fa84: 88 1e 00 00 lbz r0,0(r30)
ffc2fa88: 2f 80 00 2f cmpwi cr7,r0,47
ffc2fa8c: 41 9e 00 14 beq- cr7,ffc2faa0 <link+0x6c>
ffc2fa90: 2f 80 00 5c cmpwi cr7,r0,92
ffc2fa94: 41 9e 00 0c beq- cr7,ffc2faa0 <link+0x6c>
ffc2fa98: 2f 80 00 00 cmpwi cr7,r0,0
ffc2fa9c: 40 9e 01 0c bne- cr7,ffc2fba8 <link+0x174>
ffc2faa0: 3d 20 00 00 lis r9,0
ffc2faa4: 81 29 34 ec lwz r9,13548(r9)
ffc2faa8: 38 60 00 01 li r3,1
ffc2faac: 80 09 00 24 lwz r0,36(r9)
ffc2fab0: 81 09 00 18 lwz r8,24(r9)
ffc2fab4: 81 49 00 1c lwz r10,28(r9)
ffc2fab8: 81 69 00 20 lwz r11,32(r9)
ffc2fabc: 91 01 00 20 stw r8,32(r1)
ffc2fac0: 91 41 00 24 stw r10,36(r1)
ffc2fac4: 91 61 00 28 stw r11,40(r1)
ffc2fac8: 90 01 00 2c stw r0,44(r1)
ffc2facc: 80 09 00 28 lwz r0,40(r9)
ffc2fad0: 90 01 00 30 stw r0,48(r1)
if ( !parent_loc.ops->evalformake_h ) {
ffc2fad4: 81 21 00 2c lwz r9,44(r1)
ffc2fad8: 80 09 00 04 lwz r0,4(r9)
ffc2fadc: 2f 80 00 00 cmpwi cr7,r0,0
ffc2fae0: 41 9e 01 b0 beq- cr7,ffc2fc90 <link+0x25c>
rtems_filesystem_freenode( &existing_loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start );
ffc2fae4: 3b a1 00 20 addi r29,r1,32
ffc2fae8: 7c 09 03 a6 mtctr r0
ffc2faec: 7c 7e 1a 14 add r3,r30,r3
ffc2faf0: 7f a4 eb 78 mr r4,r29
ffc2faf4: 38 a1 00 08 addi r5,r1,8
ffc2faf8: 4e 80 04 21 bctrl
if ( result != 0 ) {
ffc2fafc: 7c 7e 1b 79 mr. r30,r3
ffc2fb00: 40 82 01 5c bne- ffc2fc5c <link+0x228>
/*
* Check to see if the caller is trying to link across file system
* boundaries.
*/
if ( parent_loc.mt_entry != existing_loc.mt_entry ) {
ffc2fb04: 80 01 00 1c lwz r0,28(r1)
ffc2fb08: 81 21 00 30 lwz r9,48(r1)
ffc2fb0c: 7f 89 00 00 cmpw cr7,r9,r0
ffc2fb10: 40 9e 00 d0 bne- cr7,ffc2fbe0 <link+0x1ac>
rtems_filesystem_freenode( &existing_loc );
rtems_filesystem_freenode( &parent_loc );
rtems_set_errno_and_return_minus_one( EXDEV );
}
if ( !parent_loc.ops->link_h ) {
ffc2fb14: 81 21 00 2c lwz r9,44(r1)
ffc2fb18: 80 09 00 08 lwz r0,8(r9)
ffc2fb1c: 2f 80 00 00 cmpwi cr7,r0,0
ffc2fb20: 41 9e 01 a8 beq- cr7,ffc2fcc8 <link+0x294>
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 );
ffc2fb24: 7f e3 fb 78 mr r3,r31
ffc2fb28: 80 a1 00 08 lwz r5,8(r1)
ffc2fb2c: 7f a4 eb 78 mr r4,r29
ffc2fb30: 7c 09 03 a6 mtctr r0
ffc2fb34: 4e 80 04 21 bctrl
rtems_filesystem_freenode( &existing_loc );
ffc2fb38: 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 );
ffc2fb3c: 7c 7c 1b 78 mr r28,r3
rtems_filesystem_freenode( &existing_loc );
ffc2fb40: 2f 89 00 00 cmpwi cr7,r9,0
ffc2fb44: 41 9e 00 1c beq- cr7,ffc2fb60 <link+0x12c>
ffc2fb48: 80 09 00 1c lwz r0,28(r9)
ffc2fb4c: 2f 80 00 00 cmpwi cr7,r0,0
ffc2fb50: 41 9e 00 10 beq- cr7,ffc2fb60 <link+0x12c>
ffc2fb54: 7f e3 fb 78 mr r3,r31
ffc2fb58: 7c 09 03 a6 mtctr r0
ffc2fb5c: 4e 80 04 21 bctrl
rtems_filesystem_freenode( &parent_loc );
ffc2fb60: 81 21 00 2c lwz r9,44(r1)
ffc2fb64: 2f 89 00 00 cmpwi cr7,r9,0
ffc2fb68: 41 9e 00 1c beq- cr7,ffc2fb84 <link+0x150>
ffc2fb6c: 80 09 00 1c lwz r0,28(r9)
ffc2fb70: 2f 80 00 00 cmpwi cr7,r0,0
ffc2fb74: 41 9e 00 10 beq- cr7,ffc2fb84 <link+0x150>
ffc2fb78: 7f a3 eb 78 mr r3,r29
ffc2fb7c: 7c 09 03 a6 mtctr r0
ffc2fb80: 4e 80 04 21 bctrl
return result;
}
ffc2fb84: 80 01 00 4c lwz r0,76(r1)
ffc2fb88: 7f 83 e3 78 mr r3,r28
ffc2fb8c: 83 a1 00 3c lwz r29,60(r1)
ffc2fb90: 7c 08 03 a6 mtlr r0
ffc2fb94: 83 81 00 38 lwz r28,56(r1)
ffc2fb98: 83 c1 00 40 lwz r30,64(r1)
ffc2fb9c: 83 e1 00 44 lwz r31,68(r1)
ffc2fba0: 38 21 00 48 addi r1,r1,72
ffc2fba4: 4e 80 00 20 blr
/*
* Get the parent of the node we are creating.
*/
rtems_filesystem_get_start_loc( new, &i, &parent_loc );
ffc2fba8: 3d 20 00 00 lis r9,0
ffc2fbac: 81 29 34 ec lwz r9,13548(r9)
ffc2fbb0: 38 60 00 00 li r3,0
ffc2fbb4: 80 09 00 10 lwz r0,16(r9)
ffc2fbb8: 81 09 00 04 lwz r8,4(r9)
ffc2fbbc: 81 49 00 08 lwz r10,8(r9)
ffc2fbc0: 81 69 00 0c lwz r11,12(r9)
ffc2fbc4: 91 01 00 20 stw r8,32(r1)
ffc2fbc8: 91 41 00 24 stw r10,36(r1)
ffc2fbcc: 91 61 00 28 stw r11,40(r1)
ffc2fbd0: 90 01 00 2c stw r0,44(r1)
ffc2fbd4: 80 09 00 14 lwz r0,20(r9)
ffc2fbd8: 90 01 00 30 stw r0,48(r1)
ffc2fbdc: 4b ff fe f8 b ffc2fad4 <link+0xa0>
* Check to see if the caller is trying to link across file system
* boundaries.
*/
if ( parent_loc.mt_entry != existing_loc.mt_entry ) {
rtems_filesystem_freenode( &existing_loc );
ffc2fbe0: 81 21 00 18 lwz r9,24(r1)
ffc2fbe4: 2f 89 00 00 cmpwi cr7,r9,0
ffc2fbe8: 41 9e 00 1c beq- cr7,ffc2fc04 <link+0x1d0>
ffc2fbec: 80 09 00 1c lwz r0,28(r9)
ffc2fbf0: 2f 80 00 00 cmpwi cr7,r0,0
ffc2fbf4: 41 9e 00 10 beq- cr7,ffc2fc04 <link+0x1d0>
ffc2fbf8: 7f e3 fb 78 mr r3,r31
ffc2fbfc: 7c 09 03 a6 mtctr r0
ffc2fc00: 4e 80 04 21 bctrl
rtems_filesystem_freenode( &parent_loc );
ffc2fc04: 81 21 00 2c lwz r9,44(r1)
ffc2fc08: 2f 89 00 00 cmpwi cr7,r9,0
ffc2fc0c: 41 9e 00 1c beq- cr7,ffc2fc28 <link+0x1f4>
ffc2fc10: 80 09 00 1c lwz r0,28(r9)
ffc2fc14: 2f 80 00 00 cmpwi cr7,r0,0
ffc2fc18: 41 9e 00 10 beq- cr7,ffc2fc28 <link+0x1f4>
ffc2fc1c: 7f a3 eb 78 mr r3,r29
ffc2fc20: 7c 09 03 a6 mtctr r0
ffc2fc24: 4e 80 04 21 bctrl
rtems_set_errno_and_return_minus_one( EXDEV );
ffc2fc28: 48 01 cf 51 bl ffc4cb78 <__errno>
ffc2fc2c: 38 00 00 12 li r0,18
ffc2fc30: 90 03 00 00 stw r0,0(r3)
ffc2fc34: 3b 80 ff ff li r28,-1
rtems_filesystem_freenode( &existing_loc );
rtems_filesystem_freenode( &parent_loc );
return result;
}
ffc2fc38: 7f 83 e3 78 mr r3,r28
ffc2fc3c: 80 01 00 4c lwz r0,76(r1)
ffc2fc40: 83 81 00 38 lwz r28,56(r1)
ffc2fc44: 7c 08 03 a6 mtlr r0
ffc2fc48: 83 a1 00 3c lwz r29,60(r1)
ffc2fc4c: 83 c1 00 40 lwz r30,64(r1)
ffc2fc50: 83 e1 00 44 lwz r31,68(r1)
ffc2fc54: 38 21 00 48 addi r1,r1,72
ffc2fc58: 4e 80 00 20 blr
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start );
if ( result != 0 ) {
rtems_filesystem_freenode( &existing_loc );
ffc2fc5c: 81 21 00 18 lwz r9,24(r1)
ffc2fc60: 2f 89 00 00 cmpwi cr7,r9,0
ffc2fc64: 41 9e 00 1c beq- cr7,ffc2fc80 <link+0x24c>
ffc2fc68: 80 09 00 1c lwz r0,28(r9)
ffc2fc6c: 2f 80 00 00 cmpwi cr7,r0,0
ffc2fc70: 41 9e 00 10 beq- cr7,ffc2fc80 <link+0x24c>
ffc2fc74: 7f e3 fb 78 mr r3,r31
ffc2fc78: 7c 09 03 a6 mtctr r0
ffc2fc7c: 4e 80 04 21 bctrl
rtems_set_errno_and_return_minus_one( result );
ffc2fc80: 48 01 ce f9 bl ffc4cb78 <__errno>
ffc2fc84: 3b 80 ff ff li r28,-1
ffc2fc88: 93 c3 00 00 stw r30,0(r3)
ffc2fc8c: 4b ff fe f8 b ffc2fb84 <link+0x150>
*/
rtems_filesystem_get_start_loc( new, &i, &parent_loc );
if ( !parent_loc.ops->evalformake_h ) {
rtems_filesystem_freenode( &existing_loc );
ffc2fc90: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED
ffc2fc94: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc2fc98: 41 9e 00 1c beq- cr7,ffc2fcb4 <link+0x280> <== NOT EXECUTED
ffc2fc9c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2fca0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2fca4: 41 9e 00 10 beq- cr7,ffc2fcb4 <link+0x280> <== NOT EXECUTED
ffc2fca8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc2fcac: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2fcb0: 4e 80 04 21 bctrl <== NOT EXECUTED
}
if ( !parent_loc.ops->link_h ) {
rtems_filesystem_freenode( &existing_loc );
rtems_filesystem_freenode( &parent_loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc2fcb4: 48 01 ce c5 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc2fcb8: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc2fcbc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc2fcc0: 3b 80 ff ff li r28,-1 <== NOT EXECUTED
ffc2fcc4: 4b ff fe c0 b ffc2fb84 <link+0x150> <== NOT EXECUTED
rtems_filesystem_freenode( &parent_loc );
rtems_set_errno_and_return_minus_one( EXDEV );
}
if ( !parent_loc.ops->link_h ) {
rtems_filesystem_freenode( &existing_loc );
ffc2fcc8: 81 61 00 18 lwz r11,24(r1) <== NOT EXECUTED
ffc2fccc: 2f 8b 00 00 cmpwi cr7,r11,0 <== NOT EXECUTED
ffc2fcd0: 41 9e 00 20 beq- cr7,ffc2fcf0 <link+0x2bc> <== NOT EXECUTED
ffc2fcd4: 80 0b 00 1c lwz r0,28(r11) <== NOT EXECUTED
ffc2fcd8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2fcdc: 41 9e 00 14 beq- cr7,ffc2fcf0 <link+0x2bc> <== NOT EXECUTED
ffc2fce0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc2fce4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2fce8: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc2fcec: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED
rtems_filesystem_freenode( &parent_loc );
ffc2fcf0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc2fcf4: 41 be ff c0 beq- cr7,ffc2fcb4 <link+0x280> <== NOT EXECUTED
ffc2fcf8: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2fcfc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2fd00: 41 be ff b4 beq- cr7,ffc2fcb4 <link+0x280> <== NOT EXECUTED
ffc2fd04: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc2fd08: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2fd0c: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc2fd10: 4b ff ff a4 b ffc2fcb4 <link+0x280> <== NOT EXECUTED
ffc1c78c <lseek>:
off_t lseek(
int fd,
off_t offset,
int whence
)
{
ffc1c78c: 94 21 ff e8 stwu r1,-24(r1)
ffc1c790: 7c 08 02 a6 mflr r0
rtems_libio_t *iop;
off_t old_offset;
off_t status;
rtems_libio_check_fd( fd );
ffc1c794: 3d 20 00 00 lis r9,0
off_t lseek(
int fd,
off_t offset,
int whence
)
{
ffc1c798: 90 01 00 1c stw r0,28(r1)
rtems_libio_t *iop;
off_t old_offset;
off_t status;
rtems_libio_check_fd( fd );
ffc1c79c: 80 09 26 4c lwz r0,9804(r9)
off_t lseek(
int fd,
off_t offset,
int whence
)
{
ffc1c7a0: 93 a1 00 0c stw r29,12(r1)
rtems_libio_t *iop;
off_t old_offset;
off_t status;
rtems_libio_check_fd( fd );
ffc1c7a4: 7f 83 00 40 cmplw cr7,r3,r0
off_t lseek(
int fd,
off_t offset,
int whence
)
{
ffc1c7a8: 93 c1 00 10 stw r30,16(r1)
ffc1c7ac: 93 e1 00 14 stw r31,20(r1)
rtems_libio_t *iop;
off_t old_offset;
off_t status;
rtems_libio_check_fd( fd );
ffc1c7b0: 40 9c 01 54 bge- cr7,ffc1c904 <lseek+0x178>
iop = rtems_libio_iop( fd );
ffc1c7b4: 3d 20 00 00 lis r9,0
ffc1c7b8: 83 e9 27 08 lwz r31,9992(r9)
ffc1c7bc: 1c 63 00 48 mulli r3,r3,72
ffc1c7c0: 7f ff 1a 14 add r31,r31,r3
rtems_libio_check_is_open(iop);
ffc1c7c4: 80 1f 00 18 lwz r0,24(r31)
ffc1c7c8: 70 09 01 00 andi. r9,r0,256
ffc1c7cc: 41 82 01 38 beq- ffc1c904 <lseek+0x178>
/*
* Check as many errors as possible before touching iop->offset.
*/
if ( !iop->handlers->lseek_h )
ffc1c7d0: 81 3f 00 40 lwz r9,64(r31)
ffc1c7d4: 80 09 00 14 lwz r0,20(r9)
ffc1c7d8: 2f 80 00 00 cmpwi cr7,r0,0
ffc1c7dc: 41 9e 01 40 beq- cr7,ffc1c91c <lseek+0x190>
/*
* Now process the lseek().
*/
old_offset = iop->offset;
switch ( whence ) {
ffc1c7e0: 2f 87 00 01 cmpwi cr7,r7,1
/*
* Now process the lseek().
*/
old_offset = iop->offset;
ffc1c7e4: 83 bf 00 10 lwz r29,16(r31)
ffc1c7e8: 83 df 00 14 lwz r30,20(r31)
switch ( whence ) {
ffc1c7ec: 41 9e 01 04 beq- cr7,ffc1c8f0 <lseek+0x164>
ffc1c7f0: 2f 87 00 02 cmpwi cr7,r7,2
ffc1c7f4: 41 9e 00 58 beq- cr7,ffc1c84c <lseek+0xc0>
ffc1c7f8: 2f 87 00 00 cmpwi cr7,r7,0
ffc1c7fc: 40 9e 00 bc bne- cr7,ffc1c8b8 <lseek+0x12c>
case SEEK_SET:
iop->offset = offset;
ffc1c800: 90 bf 00 10 stw r5,16(r31)
ffc1c804: 90 df 00 14 stw r6,20(r31)
/*
* At this time, handlers assume iop->offset has the desired
* new offset.
*/
status = (*iop->handlers->lseek_h)( iop, offset, whence );
ffc1c808: 80 09 00 14 lwz r0,20(r9)
ffc1c80c: 7f e3 fb 78 mr r3,r31
ffc1c810: 7c 09 03 a6 mtctr r0
ffc1c814: 4e 80 04 21 bctrl
ffc1c818: 7c 69 1b 78 mr r9,r3
if ( status == (off_t) -1 )
ffc1c81c: 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 );
ffc1c820: 7c 8a 23 78 mr r10,r4
if ( status == (off_t) -1 )
ffc1c824: 41 9e 00 60 beq- cr7,ffc1c884 <lseek+0xf8>
/*
* So if the operation failed, we have to restore iop->offset.
*/
return status;
}
ffc1c828: 80 01 00 1c lwz r0,28(r1)
ffc1c82c: 7d 44 53 78 mr r4,r10
ffc1c830: 7d 23 4b 78 mr r3,r9
ffc1c834: 83 a1 00 0c lwz r29,12(r1)
ffc1c838: 7c 08 03 a6 mtlr r0
ffc1c83c: 83 c1 00 10 lwz r30,16(r1)
ffc1c840: 83 e1 00 14 lwz r31,20(r1)
ffc1c844: 38 21 00 18 addi r1,r1,24
ffc1c848: 4e 80 00 20 blr
case SEEK_CUR:
iop->offset += offset;
break;
case SEEK_END:
iop->offset = iop->size + offset;
ffc1c84c: 80 7f 00 08 lwz r3,8(r31)
ffc1c850: 80 9f 00 0c lwz r4,12(r31)
/*
* At this time, handlers assume iop->offset has the desired
* new offset.
*/
status = (*iop->handlers->lseek_h)( iop, offset, whence );
ffc1c854: 80 09 00 14 lwz r0,20(r9)
case SEEK_CUR:
iop->offset += offset;
break;
case SEEK_END:
iop->offset = iop->size + offset;
ffc1c858: 7d 86 20 14 addc r12,r6,r4
ffc1c85c: 7d 65 19 14 adde r11,r5,r3
ffc1c860: 91 7f 00 10 stw r11,16(r31)
/*
* At this time, handlers assume iop->offset has the desired
* new offset.
*/
status = (*iop->handlers->lseek_h)( iop, offset, whence );
ffc1c864: 7c 09 03 a6 mtctr r0
ffc1c868: 7f e3 fb 78 mr r3,r31
case SEEK_CUR:
iop->offset += offset;
break;
case SEEK_END:
iop->offset = iop->size + offset;
ffc1c86c: 91 9f 00 14 stw r12,20(r31)
/*
* At this time, handlers assume iop->offset has the desired
* new offset.
*/
status = (*iop->handlers->lseek_h)( iop, offset, whence );
ffc1c870: 4e 80 04 21 bctrl
ffc1c874: 7c 69 1b 78 mr r9,r3
if ( status == (off_t) -1 )
ffc1c878: 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 );
ffc1c87c: 7c 8a 23 78 mr r10,r4
if ( status == (off_t) -1 )
ffc1c880: 40 9e ff a8 bne+ cr7,ffc1c828 <lseek+0x9c>
ffc1c884: 2f 84 ff ff cmpwi cr7,r4,-1
ffc1c888: 40 9e ff a0 bne+ cr7,ffc1c828 <lseek+0x9c>
/*
* So if the operation failed, we have to restore iop->offset.
*/
return status;
}
ffc1c88c: 80 01 00 1c lwz r0,28(r1)
ffc1c890: 7d 44 53 78 mr r4,r10
* new offset.
*/
status = (*iop->handlers->lseek_h)( iop, offset, whence );
if ( status == (off_t) -1 )
iop->offset = old_offset;
ffc1c894: 93 bf 00 10 stw r29,16(r31)
/*
* So if the operation failed, we have to restore iop->offset.
*/
return status;
}
ffc1c898: 7d 23 4b 78 mr r3,r9
ffc1c89c: 7c 08 03 a6 mtlr r0
* new offset.
*/
status = (*iop->handlers->lseek_h)( iop, offset, whence );
if ( status == (off_t) -1 )
iop->offset = old_offset;
ffc1c8a0: 93 df 00 14 stw r30,20(r31)
/*
* So if the operation failed, we have to restore iop->offset.
*/
return status;
}
ffc1c8a4: 83 a1 00 0c lwz r29,12(r1)
ffc1c8a8: 83 c1 00 10 lwz r30,16(r1)
ffc1c8ac: 83 e1 00 14 lwz r31,20(r1)
ffc1c8b0: 38 21 00 18 addi r1,r1,24
ffc1c8b4: 4e 80 00 20 blr
case SEEK_END:
iop->offset = iop->size + offset;
break;
default:
rtems_set_errno_and_return_minus_one( EINVAL );
ffc1c8b8: 4b ff 53 01 bl ffc11bb8 <__errno>
ffc1c8bc: 38 00 00 16 li r0,22
ffc1c8c0: 90 03 00 00 stw r0,0(r3)
ffc1c8c4: 39 20 ff ff li r9,-1
ffc1c8c8: 39 40 ff ff li r10,-1
/*
* So if the operation failed, we have to restore iop->offset.
*/
return status;
}
ffc1c8cc: 80 01 00 1c lwz r0,28(r1)
ffc1c8d0: 7d 44 53 78 mr r4,r10
ffc1c8d4: 7d 23 4b 78 mr r3,r9
ffc1c8d8: 83 a1 00 0c lwz r29,12(r1)
ffc1c8dc: 7c 08 03 a6 mtlr r0
ffc1c8e0: 83 c1 00 10 lwz r30,16(r1)
ffc1c8e4: 83 e1 00 14 lwz r31,20(r1)
ffc1c8e8: 38 21 00 18 addi r1,r1,24
ffc1c8ec: 4e 80 00 20 blr
case SEEK_SET:
iop->offset = offset;
break;
case SEEK_CUR:
iop->offset += offset;
ffc1c8f0: 7d 86 f0 14 addc r12,r6,r30
ffc1c8f4: 7d 65 e9 14 adde r11,r5,r29
ffc1c8f8: 91 7f 00 10 stw r11,16(r31)
ffc1c8fc: 91 9f 00 14 stw r12,20(r31)
break;
ffc1c900: 4b ff ff 08 b ffc1c808 <lseek+0x7c>
off_t old_offset;
off_t status;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
ffc1c904: 4b ff 52 b5 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc1c908: 38 00 00 09 li r0,9 <== NOT EXECUTED
ffc1c90c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc1c910: 39 20 ff ff li r9,-1 <== NOT EXECUTED
ffc1c914: 39 40 ff ff li r10,-1 <== NOT EXECUTED
ffc1c918: 4b ff ff 10 b ffc1c828 <lseek+0x9c> <== NOT EXECUTED
/*
* Check as many errors as possible before touching iop->offset.
*/
if ( !iop->handlers->lseek_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc1c91c: 4b ff 52 9d bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc1c920: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc1c924: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc1c928: 39 20 ff ff li r9,-1 <== NOT EXECUTED
ffc1c92c: 39 40 ff ff li r10,-1 <== NOT EXECUTED
ffc1c930: 4b ff fe f8 b ffc1c828 <lseek+0x9c> <== NOT EXECUTED
ffc2fed0 <lstat>:
int _STAT_NAME(
const char *path,
struct stat *buf
)
{
ffc2fed0: 94 21 ff c8 stwu r1,-56(r1) <== NOT EXECUTED
ffc2fed4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc2fed8: 93 c1 00 30 stw r30,48(r1) <== NOT EXECUTED
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
ffc2fedc: 7c 9e 23 79 mr. r30,r4 <== NOT EXECUTED
int _STAT_NAME(
const char *path,
struct stat *buf
)
{
ffc2fee0: 93 a1 00 2c stw r29,44(r1) <== NOT EXECUTED
ffc2fee4: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED
ffc2fee8: 90 01 00 3c stw r0,60(r1) <== NOT EXECUTED
ffc2feec: 93 e1 00 34 stw r31,52(r1) <== NOT EXECUTED
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
ffc2fef0: 41 82 00 b0 beq- ffc2ffa0 <lstat+0xd0> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
status = rtems_filesystem_evaluate_path( path, strlen( path ),
ffc2fef4: 48 02 49 f1 bl ffc548e4 <strlen> <== NOT EXECUTED
ffc2fef8: 3b e1 00 08 addi r31,r1,8 <== NOT EXECUTED
ffc2fefc: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED
ffc2ff00: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc2ff04: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc2ff08: 7f e6 fb 78 mr r6,r31 <== NOT EXECUTED
ffc2ff0c: 38 e0 00 00 li r7,0 <== NOT EXECUTED
ffc2ff10: 4b fd 79 7d bl ffc0788c <rtems_filesystem_evaluate_path><== NOT EXECUTED
0, &loc, _STAT_FOLLOW_LINKS );
if ( status != 0 )
ffc2ff14: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
ffc2ff18: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc2ff1c: 40 9e 00 64 bne- cr7,ffc2ff80 <lstat+0xb0> <== NOT EXECUTED
return -1;
if ( !loc.handlers->fstat_h ){
ffc2ff20: 81 21 00 10 lwz r9,16(r1) <== NOT EXECUTED
ffc2ff24: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED
ffc2ff28: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2ff2c: 41 9e 00 a4 beq- cr7,ffc2ffd0 <lstat+0x100> <== NOT EXECUTED
/*
* Zero out the stat structure so the various support
* versions of stat don't have to.
*/
memset( buf, 0, sizeof(struct stat) );
ffc2ff30: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc2ff34: 38 a0 00 48 li r5,72 <== NOT EXECUTED
ffc2ff38: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc2ff3c: 48 02 09 d9 bl ffc50914 <memset> <== NOT EXECUTED
status = (*loc.handlers->fstat_h)( &loc, buf );
ffc2ff40: 81 21 00 10 lwz r9,16(r1) <== NOT EXECUTED
ffc2ff44: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED
ffc2ff48: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED
ffc2ff4c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc2ff50: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2ff54: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
ffc2ff58: 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 );
ffc2ff5c: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
ffc2ff60: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc2ff64: 41 9e 00 1c beq- cr7,ffc2ff80 <lstat+0xb0> <== NOT EXECUTED
ffc2ff68: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2ff6c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2ff70: 41 9e 00 10 beq- cr7,ffc2ff80 <lstat+0xb0> <== NOT EXECUTED
ffc2ff74: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc2ff78: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2ff7c: 4e 80 04 21 bctrl <== NOT EXECUTED
return status;
}
ffc2ff80: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED
ffc2ff84: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc2ff88: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED
ffc2ff8c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2ff90: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED
ffc2ff94: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED
ffc2ff98: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED
ffc2ff9c: 4e 80 00 20 blr <== NOT EXECUTED
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
rtems_set_errno_and_return_minus_one( EFAULT );
ffc2ffa0: 48 01 cb d9 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc2ffa4: 38 00 00 0e li r0,14 <== NOT EXECUTED
ffc2ffa8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc2ffac: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
status = (*loc.handlers->fstat_h)( &loc, buf );
rtems_filesystem_freenode( &loc );
return status;
}
ffc2ffb0: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc2ffb4: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED
ffc2ffb8: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED
ffc2ffbc: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2ffc0: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED
ffc2ffc4: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED
ffc2ffc8: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED
ffc2ffcc: 4e 80 00 20 blr <== NOT EXECUTED
0, &loc, _STAT_FOLLOW_LINKS );
if ( status != 0 )
return -1;
if ( !loc.handlers->fstat_h ){
rtems_filesystem_freenode( &loc );
ffc2ffd0: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED
ffc2ffd4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc2ffd8: 41 9e 00 1c beq- cr7,ffc2fff4 <lstat+0x124> <== NOT EXECUTED
ffc2ffdc: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc2ffe0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc2ffe4: 41 9e 00 10 beq- cr7,ffc2fff4 <lstat+0x124> <== NOT EXECUTED
ffc2ffe8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc2ffec: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc2fff0: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc2fff4: 48 01 cb 85 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc2fff8: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc2fffc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc30000: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
ffc30004: 4b ff ff 7c b ffc2ff80 <lstat+0xb0> <== NOT EXECUTED
ffc04974 <malloc>:
size_t size
)
{
void *return_this;
MSBUMP(malloc_calls, 1);
ffc04974: 94 21 ff e8 stwu r1,-24(r1)
ffc04978: 7c 08 02 a6 mflr r0
ffc0497c: 3d 20 00 00 lis r9,0
ffc04980: 90 01 00 1c stw r0,28(r1)
ffc04984: 39 29 2a 68 addi r9,r9,10856
ffc04988: 81 69 00 04 lwz r11,4(r9)
ffc0498c: 93 e1 00 14 stw r31,20(r1)
ffc04990: 7c 7f 1b 78 mr r31,r3
ffc04994: 39 6b 00 01 addi r11,r11,1
ffc04998: 91 69 00 04 stw r11,4(r9)
ffc0499c: 93 a1 00 0c stw r29,12(r1)
ffc049a0: 93 c1 00 10 stw r30,16(r1)
/*
* If some free's have been deferred, then do them now.
*/
malloc_deferred_frees_process();
ffc049a4: 4b ff fe 71 bl ffc04814 <malloc_deferred_frees_process>
/*
* Validate the parameters
*/
if ( !size )
ffc049a8: 2f 9f 00 00 cmpwi cr7,r31,0
ffc049ac: 41 9e 00 b0 beq- cr7,ffc04a5c <malloc+0xe8>
return (void *) 0;
/*
* Do not attempt to allocate memory if not in correct system state.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
ffc049b0: 3d 20 00 00 lis r9,0
ffc049b4: 80 09 27 90 lwz r0,10128(r9)
ffc049b8: 2f 80 00 03 cmpwi cr7,r0,3
ffc049bc: 41 9e 00 94 beq- cr7,ffc04a50 <malloc+0xdc>
RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate(
Heap_Control *heap,
uintptr_t size
)
{
return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 );
ffc049c0: 3d 20 00 00 lis r9,0
ffc049c4: 80 69 26 5c lwz r3,9820(r9)
ffc049c8: 7f e4 fb 78 mr r4,r31
ffc049cc: 38 a0 00 00 li r5,0
ffc049d0: 38 c0 00 00 li r6,0
ffc049d4: 48 00 5e f1 bl ffc0a8c4 <_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 ) {
ffc049d8: 2f 83 00 00 cmpwi cr7,r3,0
ffc049dc: 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;
ffc049e0: 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 ) {
ffc049e4: 41 9e 00 9c beq- cr7,ffc04a80 <malloc+0x10c>
}
/*
* If the user wants us to dirty the allocated memory, then do it.
*/
if ( rtems_malloc_dirty_helper )
ffc049e8: 3d 20 00 00 lis r9,0
ffc049ec: 81 29 26 d0 lwz r9,9936(r9)
ffc049f0: 2f 89 00 00 cmpwi cr7,r9,0
ffc049f4: 41 9e 00 18 beq- cr7,ffc04a0c <malloc+0x98>
(*rtems_malloc_dirty_helper)( return_this, size );
ffc049f8: 80 09 00 00 lwz r0,0(r9) <== NOT EXECUTED
ffc049fc: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc04a00: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc04a04: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc04a08: 4e 80 04 21 bctrl <== NOT EXECUTED
/*
* If configured, update the statistics
*/
if ( rtems_malloc_statistics_helpers )
ffc04a0c: 3d 20 00 00 lis r9,0
ffc04a10: 81 29 26 c8 lwz r9,9928(r9)
ffc04a14: 7f dd f3 78 mr r29,r30
ffc04a18: 2f 89 00 00 cmpwi cr7,r9,0
ffc04a1c: 41 9e 00 14 beq- cr7,ffc04a30 <malloc+0xbc>
(*rtems_malloc_statistics_helpers->at_malloc)(return_this);
ffc04a20: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED
ffc04a24: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc04a28: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc04a2c: 4e 80 04 21 bctrl <== NOT EXECUTED
if (rtems_malloc_boundary_helpers)
(*rtems_malloc_boundary_helpers->at_malloc)(return_this, size);
#endif
return return_this;
}
ffc04a30: 80 01 00 1c lwz r0,28(r1)
ffc04a34: 7f a3 eb 78 mr r3,r29
ffc04a38: 83 c1 00 10 lwz r30,16(r1)
ffc04a3c: 7c 08 03 a6 mtlr r0
ffc04a40: 83 a1 00 0c lwz r29,12(r1)
ffc04a44: 83 e1 00 14 lwz r31,20(r1)
ffc04a48: 38 21 00 18 addi r1,r1,24
ffc04a4c: 4e 80 00 20 blr
return (void *) 0;
/*
* Do not attempt to allocate memory if not in correct system state.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
ffc04a50: 4b ff fd 51 bl ffc047a0 <malloc_is_system_state_OK>
ffc04a54: 2f 83 00 00 cmpwi cr7,r3,0
ffc04a58: 40 9e ff 68 bne+ cr7,ffc049c0 <malloc+0x4c>
if (rtems_malloc_boundary_helpers)
(*rtems_malloc_boundary_helpers->at_malloc)(return_this, size);
#endif
return return_this;
}
ffc04a5c: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED
/*
* If configured, update the statistics
*/
if ( rtems_malloc_statistics_helpers )
(*rtems_malloc_statistics_helpers->at_malloc)(return_this);
ffc04a60: 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;
}
ffc04a64: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc04a68: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED
ffc04a6c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc04a70: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED
ffc04a74: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED
ffc04a78: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED
ffc04a7c: 4e 80 00 20 blr <== NOT EXECUTED
*/
return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );
if ( !return_this ) {
if (rtems_malloc_sbrk_helpers)
ffc04a80: 3d 20 00 00 lis r9,0
ffc04a84: 81 29 26 cc lwz r9,9932(r9)
ffc04a88: 2f 89 00 00 cmpwi cr7,r9,0
ffc04a8c: 41 9e 00 1c beq- cr7,ffc04aa8 <malloc+0x134>
return_this = (*rtems_malloc_sbrk_helpers->extend)( size );
ffc04a90: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED
ffc04a94: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc04a98: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc04a9c: 4e 80 04 21 bctrl <== NOT EXECUTED
if ( !return_this ) {
ffc04aa0: 7c 7e 1b 79 mr. r30,r3 <== NOT EXECUTED
ffc04aa4: 40 82 ff 44 bne+ ffc049e8 <malloc+0x74> <== NOT EXECUTED
errno = ENOMEM;
ffc04aa8: 48 00 d1 11 bl ffc11bb8 <__errno>
ffc04aac: 38 00 00 0c li r0,12
ffc04ab0: 90 03 00 00 stw r0,0(r3)
return (void *) 0;
ffc04ab4: 4b ff ff 7c b ffc04a30 <malloc+0xbc>
ffc047e8 <malloc_deferred_free>:
}
void malloc_deferred_free(
void *pointer
)
{
ffc047e8: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED
ffc047ec: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc047f0: 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 );
ffc047f4: 3c 60 00 00 lis r3,0 <== NOT EXECUTED
ffc047f8: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
ffc047fc: 38 63 2a 5c addi r3,r3,10844 <== NOT EXECUTED
ffc04800: 48 00 4c 95 bl ffc09494 <_Chain_Append> <== NOT EXECUTED
rtems_chain_append(&RTEMS_Malloc_GC_list, (rtems_chain_node *)pointer);
}
ffc04804: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc04808: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc0480c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc04810: 4e 80 00 20 blr <== NOT EXECUTED
ffc04814 <malloc_deferred_frees_process>:
{
rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list);
}
void malloc_deferred_frees_process(void)
{
ffc04814: 94 21 ff f0 stwu r1,-16(r1)
ffc04818: 7c 08 02 a6 mflr r0
ffc0481c: 93 e1 00 0c stw r31,12(r1)
ffc04820: 3f e0 00 00 lis r31,0
ffc04824: 3b ff 2a 5c addi r31,r31,10844
ffc04828: 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)
ffc0482c: 48 00 00 08 b ffc04834 <malloc_deferred_frees_process+0x20>
free(to_be_freed);
ffc04830: 4b ff fd c5 bl ffc045f4 <free> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
ffc04834: 7f e3 fb 78 mr r3,r31
ffc04838: 48 00 4c 8d bl ffc094c4 <_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)
ffc0483c: 2f 83 00 00 cmpwi cr7,r3,0
ffc04840: 40 9e ff f0 bne+ cr7,ffc04830 <malloc_deferred_frees_process+0x1c>
free(to_be_freed);
}
ffc04844: 80 01 00 14 lwz r0,20(r1)
ffc04848: 83 e1 00 0c lwz r31,12(r1)
ffc0484c: 38 21 00 10 addi r1,r1,16
ffc04850: 7c 08 03 a6 mtlr r0
ffc04854: 4e 80 00 20 blr
ffc16a40 <memfile_check_rmnod>:
return memfile_check_rmnod( the_jnode );
}
int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){
ffc16a40: 94 21 ff f0 stwu r1,-16(r1)
ffc16a44: 7c 08 02 a6 mflr r0
ffc16a48: 93 e1 00 0c stw r31,12(r1)
ffc16a4c: 7c 7f 1b 78 mr r31,r3
ffc16a50: 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) ) {
ffc16a54: 4b ff db b5 bl ffc14608 <rtems_libio_is_file_open>
ffc16a58: 2f 83 00 00 cmpwi cr7,r3,0
ffc16a5c: 40 9e 00 40 bne- cr7,ffc16a9c <memfile_check_rmnod+0x5c>
ffc16a60: a0 1f 00 34 lhz r0,52(r31)
ffc16a64: 2f 80 00 00 cmpwi cr7,r0,0
ffc16a68: 40 9e 00 34 bne- cr7,ffc16a9c <memfile_check_rmnod+0x5c>
/*
* Is the rtems_filesystem_current is this node?
*/
if ( rtems_filesystem_current.node_access == the_jnode )
ffc16a6c: 3d 20 00 00 lis r9,0
ffc16a70: 81 29 26 b4 lwz r9,9908(r9)
ffc16a74: 81 69 00 04 lwz r11,4(r9)
ffc16a78: 7f 8b f8 00 cmpw cr7,r11,r31
ffc16a7c: 41 9e 00 38 beq- cr7,ffc16ab4 <memfile_check_rmnod+0x74>
rtems_filesystem_current.node_access = NULL;
/*
* Free memory associated with a memory file.
*/
if (the_jnode->type != IMFS_LINEAR_FILE)
ffc16a80: 80 1f 00 4c lwz r0,76(r31)
ffc16a84: 2f 80 00 06 cmpwi cr7,r0,6
ffc16a88: 41 9e 00 0c beq- cr7,ffc16a94 <memfile_check_rmnod+0x54>
IMFS_memfile_remove( the_jnode );
ffc16a8c: 7f e3 fb 78 mr r3,r31
ffc16a90: 4b ff fd ad bl ffc1683c <IMFS_memfile_remove>
free( the_jnode );
ffc16a94: 7f e3 fb 78 mr r3,r31
ffc16a98: 4b fe f5 b1 bl ffc06048 <free>
}
return 0;
}
ffc16a9c: 80 01 00 14 lwz r0,20(r1)
ffc16aa0: 38 60 00 00 li r3,0
ffc16aa4: 83 e1 00 0c lwz r31,12(r1)
ffc16aa8: 38 21 00 10 addi r1,r1,16
ffc16aac: 7c 08 03 a6 mtlr r0
ffc16ab0: 4e 80 00 20 blr
/*
* Is the rtems_filesystem_current is this node?
*/
if ( rtems_filesystem_current.node_access == the_jnode )
rtems_filesystem_current.node_access = NULL;
ffc16ab4: 90 09 00 04 stw r0,4(r9) <== NOT EXECUTED
ffc16ab8: 4b ff ff c8 b ffc16a80 <memfile_check_rmnod+0x40> <== NOT EXECUTED
ffc16718 <memfile_free_blocks_in_table>:
void memfile_free_blocks_in_table(
block_p **block_table,
int entries
)
{
ffc16718: 94 21 ff e0 stwu r1,-32(r1)
ffc1671c: 7c 08 02 a6 mflr r0
ffc16720: 93 e1 00 1c stw r31,28(r1)
/*
* Perform internal consistency checks
*/
assert( block_table );
ffc16724: 7c 7f 1b 79 mr. r31,r3
void memfile_free_blocks_in_table(
block_p **block_table,
int entries
)
{
ffc16728: 93 81 00 10 stw r28,16(r1)
ffc1672c: 7c 9c 23 78 mr r28,r4
ffc16730: 90 01 00 24 stw r0,36(r1)
ffc16734: 93 61 00 0c stw r27,12(r1)
ffc16738: 93 a1 00 14 stw r29,20(r1)
ffc1673c: 93 c1 00 18 stw r30,24(r1)
/*
* Perform internal consistency checks
*/
assert( block_table );
ffc16740: 41 82 00 74 beq- ffc167b4 <memfile_free_blocks_in_table+0x9c>
* Now go through all the slots in the table and free the memory.
*/
b = *block_table;
for ( i=0 ; i<entries ; i++ ) {
ffc16744: 2f 84 00 00 cmpwi cr7,r4,0
/*
* Now go through all the slots in the table and free the memory.
*/
b = *block_table;
ffc16748: 80 7f 00 00 lwz r3,0(r31)
for ( i=0 ; i<entries ; i++ ) {
ffc1674c: 40 9d 00 38 ble- cr7,ffc16784 <memfile_free_blocks_in_table+0x6c>
ffc16750: 7c 7e 1b 78 mr r30,r3
ffc16754: 3b a0 00 00 li r29,0
if ( b[i] ) {
memfile_free_block( b[i] );
b[i] = 0;
ffc16758: 3b 60 00 00 li r27,0
*/
b = *block_table;
for ( i=0 ; i<entries ; i++ ) {
if ( b[i] ) {
ffc1675c: 80 7e 00 00 lwz r3,0(r30)
ffc16760: 2f 83 00 00 cmpwi cr7,r3,0
ffc16764: 41 9e 00 0c beq- cr7,ffc16770 <memfile_free_blocks_in_table+0x58>
memfile_free_block( b[i] );
ffc16768: 4b ff fc 9d bl ffc16404 <memfile_free_block>
b[i] = 0;
ffc1676c: 93 7e 00 00 stw r27,0(r30)
* Now go through all the slots in the table and free the memory.
*/
b = *block_table;
for ( i=0 ; i<entries ; i++ ) {
ffc16770: 3b bd 00 01 addi r29,r29,1
ffc16774: 7f 9c e8 00 cmpw cr7,r28,r29
ffc16778: 3b de 00 04 addi r30,r30,4
ffc1677c: 41 9d ff e0 bgt+ cr7,ffc1675c <memfile_free_blocks_in_table+0x44>
ffc16780: 80 7f 00 00 lwz r3,0(r31)
/*
* Now that all the blocks in the block table are free, we can
* free the block table itself.
*/
memfile_free_block( *block_table );
ffc16784: 4b ff fc 81 bl ffc16404 <memfile_free_block>
*block_table = 0;
ffc16788: 38 00 00 00 li r0,0
ffc1678c: 90 1f 00 00 stw r0,0(r31)
}
ffc16790: 80 01 00 24 lwz r0,36(r1)
ffc16794: 83 61 00 0c lwz r27,12(r1)
ffc16798: 7c 08 03 a6 mtlr r0
ffc1679c: 83 81 00 10 lwz r28,16(r1)
ffc167a0: 83 a1 00 14 lwz r29,20(r1)
ffc167a4: 83 c1 00 18 lwz r30,24(r1)
ffc167a8: 83 e1 00 1c lwz r31,28(r1)
ffc167ac: 38 21 00 20 addi r1,r1,32
ffc167b0: 4e 80 00 20 blr
/*
* Perform internal consistency checks
*/
assert( block_table );
ffc167b4: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED
ffc167b8: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
ffc167bc: 38 a5 55 50 addi r5,r5,21840 <== NOT EXECUTED
ffc167c0: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED
ffc167c4: 38 63 56 14 addi r3,r3,22036 <== NOT EXECUTED
ffc167c8: 38 a5 00 20 addi r5,r5,32 <== NOT EXECUTED
ffc167cc: 38 c6 56 8c addi r6,r6,22156 <== NOT EXECUTED
ffc167d0: 38 80 01 b3 li r4,435 <== NOT EXECUTED
ffc167d4: 4b fe f3 15 bl ffc05ae8 <__assert_func> <== NOT EXECUTED
ffc16e54 <memfile_ftruncate>:
int memfile_ftruncate(
rtems_libio_t *iop,
rtems_off64_t length
)
{
ffc16e54: 94 21 ff e0 stwu r1,-32(r1)
ffc16e58: 7c 08 02 a6 mflr r0
ffc16e5c: 7c 69 1b 78 mr r9,r3
ffc16e60: 90 01 00 24 stw r0,36(r1)
ffc16e64: 93 e1 00 1c stw r31,28(r1)
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
ffc16e68: 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 )
ffc16e6c: 80 1f 00 50 lwz r0,80(r31)
ffc16e70: 7f 80 28 00 cmpw cr7,r0,r5
ffc16e74: 41 9c 00 50 blt- cr7,ffc16ec4 <memfile_ftruncate+0x70>
ffc16e78: 41 9e 00 40 beq- cr7,ffc16eb8 <memfile_ftruncate+0x64>
* 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;
ffc16e7c: 90 bf 00 50 stw r5,80(r31)
iop->size = the_jnode->info.file.size;
IMFS_update_atime( the_jnode );
ffc16e80: 38 61 00 08 addi r3,r1,8
ffc16e84: 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;
ffc16e88: 90 df 00 54 stw r6,84(r31)
iop->size = the_jnode->info.file.size;
ffc16e8c: 90 c9 00 0c stw r6,12(r9)
ffc16e90: 90 a9 00 08 stw r5,8(r9)
IMFS_update_atime( the_jnode );
ffc16e94: 4b fe f2 7d bl ffc06110 <gettimeofday>
ffc16e98: 80 01 00 08 lwz r0,8(r1)
ffc16e9c: 38 60 00 00 li r3,0
ffc16ea0: 90 1f 00 40 stw r0,64(r31)
return 0;
}
ffc16ea4: 80 01 00 24 lwz r0,36(r1)
ffc16ea8: 83 e1 00 1c lwz r31,28(r1)
ffc16eac: 38 21 00 20 addi r1,r1,32
ffc16eb0: 7c 08 03 a6 mtlr r0
ffc16eb4: 4e 80 00 20 blr
* 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 )
ffc16eb8: 80 1f 00 54 lwz r0,84(r31)
ffc16ebc: 7f 80 30 40 cmplw cr7,r0,r6
ffc16ec0: 40 9c ff bc bge+ cr7,ffc16e7c <memfile_ftruncate+0x28>
return IMFS_memfile_extend( the_jnode, length );
ffc16ec4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc16ec8: 4b ff fd 61 bl ffc16c28 <IMFS_memfile_extend> <== NOT EXECUTED
iop->size = the_jnode->info.file.size;
IMFS_update_atime( the_jnode );
return 0;
}
ffc16ecc: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED
ffc16ed0: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED
ffc16ed4: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED
ffc16ed8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc16edc: 4e 80 00 20 blr <== NOT EXECUTED
ffc16ee0 <memfile_lseek>:
rtems_off64_t memfile_lseek(
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
ffc16ee0: 94 21 ff f0 stwu r1,-16(r1)
ffc16ee4: 7c 08 02 a6 mflr r0
ffc16ee8: 90 01 00 14 stw r0,20(r1)
ffc16eec: 93 c1 00 08 stw r30,8(r1)
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
ffc16ef0: 83 c3 00 3c lwz r30,60(r3)
rtems_off64_t memfile_lseek(
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
ffc16ef4: 93 e1 00 0c stw r31,12(r1)
ffc16ef8: 7c 7f 1b 78 mr r31,r3
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
if (the_jnode->type == IMFS_LINEAR_FILE) {
ffc16efc: 80 1e 00 4c lwz r0,76(r30)
ffc16f00: 2f 80 00 06 cmpwi cr7,r0,6
ffc16f04: 41 9e 00 54 beq- cr7,ffc16f58 <memfile_lseek+0x78>
if (iop->offset > the_jnode->info.linearfile.size)
iop->offset = the_jnode->info.linearfile.size;
}
else { /* Must be a block file (IMFS_MEMORY_FILE). */
if (IMFS_memfile_extend( the_jnode, iop->offset ))
ffc16f08: 80 a3 00 10 lwz r5,16(r3)
ffc16f0c: 80 c3 00 14 lwz r6,20(r3)
ffc16f10: 7f c3 f3 78 mr r3,r30
ffc16f14: 4b ff fd 15 bl ffc16c28 <IMFS_memfile_extend>
ffc16f18: 2f 83 00 00 cmpwi cr7,r3,0
ffc16f1c: 40 9e 00 b0 bne- cr7,ffc16fcc <memfile_lseek+0xec>
rtems_set_errno_and_return_minus_one( ENOSPC );
iop->size = the_jnode->info.file.size;
ffc16f20: 81 3e 00 50 lwz r9,80(r30)
ffc16f24: 81 5e 00 54 lwz r10,84(r30)
ffc16f28: 91 3f 00 08 stw r9,8(r31)
ffc16f2c: 91 5f 00 0c stw r10,12(r31)
ffc16f30: 81 3f 00 10 lwz r9,16(r31)
ffc16f34: 81 5f 00 14 lwz r10,20(r31)
}
return iop->offset;
}
ffc16f38: 80 01 00 14 lwz r0,20(r1)
ffc16f3c: 7d 44 53 78 mr r4,r10
ffc16f40: 7d 23 4b 78 mr r3,r9
ffc16f44: 83 c1 00 08 lwz r30,8(r1)
ffc16f48: 7c 08 03 a6 mtlr r0
ffc16f4c: 83 e1 00 0c lwz r31,12(r1)
ffc16f50: 38 21 00 10 addi r1,r1,16
ffc16f54: 4e 80 00 20 blr
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
if (the_jnode->type == IMFS_LINEAR_FILE) {
if (iop->offset > the_jnode->info.linearfile.size)
ffc16f58: 81 3e 00 50 lwz r9,80(r30) <== NOT EXECUTED
ffc16f5c: 80 03 00 10 lwz r0,16(r3) <== NOT EXECUTED
ffc16f60: 81 5e 00 54 lwz r10,84(r30) <== NOT EXECUTED
ffc16f64: 7f 80 48 00 cmpw cr7,r0,r9 <== NOT EXECUTED
ffc16f68: 81 63 00 14 lwz r11,20(r3) <== NOT EXECUTED
ffc16f6c: 41 9d 00 38 bgt- cr7,ffc16fa4 <memfile_lseek+0xc4> <== NOT EXECUTED
ffc16f70: 41 9e 00 2c beq- cr7,ffc16f9c <memfile_lseek+0xbc> <== NOT EXECUTED
ffc16f74: 7c 09 03 78 mr r9,r0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSPC );
iop->size = the_jnode->info.file.size;
}
return iop->offset;
}
ffc16f78: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
if (the_jnode->type == IMFS_LINEAR_FILE) {
if (iop->offset > the_jnode->info.linearfile.size)
ffc16f7c: 7d 6a 5b 78 mr r10,r11 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSPC );
iop->size = the_jnode->info.file.size;
}
return iop->offset;
}
ffc16f80: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED
ffc16f84: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc16f88: 7d 44 53 78 mr r4,r10 <== NOT EXECUTED
ffc16f8c: 7d 23 4b 78 mr r3,r9 <== NOT EXECUTED
ffc16f90: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc16f94: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc16f98: 4e 80 00 20 blr <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
if (the_jnode->type == IMFS_LINEAR_FILE) {
if (iop->offset > the_jnode->info.linearfile.size)
ffc16f9c: 7f 8b 50 40 cmplw cr7,r11,r10 <== NOT EXECUTED
ffc16fa0: 40 bd ff d4 ble- cr7,ffc16f74 <memfile_lseek+0x94> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSPC );
iop->size = the_jnode->info.file.size;
}
return iop->offset;
}
ffc16fa4: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc16fa8: 7d 44 53 78 mr r4,r10 <== NOT EXECUTED
the_jnode = iop->file_info;
if (the_jnode->type == IMFS_LINEAR_FILE) {
if (iop->offset > the_jnode->info.linearfile.size)
iop->offset = the_jnode->info.linearfile.size;
ffc16fac: 91 3f 00 10 stw r9,16(r31) <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSPC );
iop->size = the_jnode->info.file.size;
}
return iop->offset;
}
ffc16fb0: 7d 23 4b 78 mr r3,r9 <== NOT EXECUTED
ffc16fb4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
the_jnode = iop->file_info;
if (the_jnode->type == IMFS_LINEAR_FILE) {
if (iop->offset > the_jnode->info.linearfile.size)
iop->offset = the_jnode->info.linearfile.size;
ffc16fb8: 91 5f 00 14 stw r10,20(r31) <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSPC );
iop->size = the_jnode->info.file.size;
}
return iop->offset;
}
ffc16fbc: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED
ffc16fc0: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc16fc4: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc16fc8: 4e 80 00 20 blr <== NOT EXECUTED
if (iop->offset > the_jnode->info.linearfile.size)
iop->offset = the_jnode->info.linearfile.size;
}
else { /* Must be a block file (IMFS_MEMORY_FILE). */
if (IMFS_memfile_extend( the_jnode, iop->offset ))
rtems_set_errno_and_return_minus_one( ENOSPC );
ffc16fcc: 48 00 17 45 bl ffc18710 <__errno> <== NOT EXECUTED
ffc16fd0: 38 00 00 1c li r0,28 <== NOT EXECUTED
ffc16fd4: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc16fd8: 39 20 ff ff li r9,-1 <== NOT EXECUTED
ffc16fdc: 39 40 ff ff li r10,-1 <== NOT EXECUTED
ffc16fe0: 4b ff ff 58 b ffc16f38 <memfile_lseek+0x58> <== NOT EXECUTED
ffc17368 <memfile_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
ffc17368: 94 21 ff f0 stwu r1,-16(r1)
ffc1736c: 7c 08 02 a6 mflr r0
ffc17370: 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))
ffc17374: 80 03 00 18 lwz r0,24(r3)
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
ffc17378: 93 c1 00 08 stw r30,8(r1)
the_jnode = iop->file_info;
/*
* Perform 'copy on write' for linear files
*/
if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))
ffc1737c: 70 09 02 04 andi. r9,r0,516
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
ffc17380: 93 e1 00 0c stw r31,12(r1)
ffc17384: 7c 7f 1b 78 mr r31,r3
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
ffc17388: 83 c3 00 3c lwz r30,60(r3)
/*
* Perform 'copy on write' for linear files
*/
if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))
ffc1738c: 41 82 00 10 beq- ffc1739c <memfile_open+0x34>
&& (the_jnode->type == IMFS_LINEAR_FILE)) {
ffc17390: 81 3e 00 4c lwz r9,76(r30)
ffc17394: 2f 89 00 06 cmpwi cr7,r9,6
ffc17398: 41 9e 00 4c beq- cr7,ffc173e4 <memfile_open+0x7c>
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)
ffc1739c: 81 3e 00 50 lwz r9,80(r30)
ffc173a0: 81 5e 00 54 lwz r10,84(r30)
&& (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))
return -1;
}
if (iop->flags & LIBIO_FLAGS_APPEND)
ffc173a4: 70 0b 02 00 andi. r11,r0,512
ffc173a8: 40 82 00 28 bne- ffc173d0 <memfile_open+0x68>
iop->offset = the_jnode->info.file.size;
iop->size = the_jnode->info.file.size;
ffc173ac: 91 3f 00 08 stw r9,8(r31)
ffc173b0: 38 60 00 00 li r3,0
ffc173b4: 91 5f 00 0c stw r10,12(r31)
return 0;
}
ffc173b8: 80 01 00 14 lwz r0,20(r1)
ffc173bc: 83 c1 00 08 lwz r30,8(r1)
ffc173c0: 7c 08 03 a6 mtlr r0
ffc173c4: 83 e1 00 0c lwz r31,12(r1)
ffc173c8: 38 21 00 10 addi r1,r1,16
ffc173cc: 4e 80 00 20 blr
if ((count != 0)
&& (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))
return -1;
}
if (iop->flags & LIBIO_FLAGS_APPEND)
iop->offset = the_jnode->info.file.size;
ffc173d0: 91 3f 00 10 stw r9,16(r31)
ffc173d4: 91 5f 00 14 stw r10,20(r31)
ffc173d8: 81 3e 00 50 lwz r9,80(r30)
ffc173dc: 81 5e 00 54 lwz r10,84(r30)
ffc173e0: 4b ff ff cc b ffc173ac <memfile_open+0x44>
/*
* 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;
ffc173e4: 81 1e 00 54 lwz r8,84(r30) <== NOT EXECUTED
const unsigned char *buffer = the_jnode->info.linearfile.direct;
the_jnode->type = IMFS_MEMORY_FILE;
ffc173e8: 39 20 00 05 li r9,5 <== NOT EXECUTED
the_jnode->info.file.size = 0;
the_jnode->info.file.indirect = 0;
ffc173ec: 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;
ffc173f0: 91 3e 00 4c stw r9,76(r30) <== 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)
ffc173f4: 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;
ffc173f8: 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;
ffc173fc: 80 fe 00 58 lwz r7,88(r30) <== NOT EXECUTED
the_jnode->type = IMFS_MEMORY_FILE;
the_jnode->info.file.size = 0;
ffc17400: 39 40 00 00 li r10,0 <== NOT EXECUTED
ffc17404: 91 3e 00 50 stw r9,80(r30) <== NOT EXECUTED
ffc17408: 91 5e 00 54 stw r10,84(r30) <== NOT EXECUTED
the_jnode->info.file.indirect = 0;
the_jnode->info.file.doubly_indirect = 0;
the_jnode->info.file.triply_indirect = 0;
ffc1740c: 90 1e 00 60 stw r0,96(r30) <== 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;
ffc17410: 90 1e 00 5c stw r0,92(r30) <== 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;
ffc17414: 90 1e 00 58 stw r0,88(r30) <== NOT EXECUTED
the_jnode->info.file.doubly_indirect = 0;
the_jnode->info.file.triply_indirect = 0;
if ((count != 0)
ffc17418: 40 9e 00 0c bne- cr7,ffc17424 <memfile_open+0xbc> <== NOT EXECUTED
ffc1741c: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED
ffc17420: 4b ff ff 84 b ffc173a4 <memfile_open+0x3c> <== NOT EXECUTED
&& (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))
ffc17424: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc17428: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc1742c: 38 c0 00 00 li r6,0 <== NOT EXECUTED
ffc17430: 4b ff fb b5 bl ffc16fe4 <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)
ffc17434: 2f 83 ff ff cmpwi cr7,r3,-1 <== NOT EXECUTED
ffc17438: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc1743c: 41 be ff 7c beq- cr7,ffc173b8 <memfile_open+0x50> <== NOT EXECUTED
ffc17440: 80 1f 00 18 lwz r0,24(r31) <== NOT EXECUTED
ffc17444: 4b ff ff 58 b ffc1739c <memfile_open+0x34> <== NOT EXECUTED
ffc04ae4 <mknod>:
int mknod(
const char *pathname,
mode_t mode,
dev_t dev
)
{
ffc04ae4: 94 21 ff c0 stwu r1,-64(r1)
ffc04ae8: 7c 08 02 a6 mflr r0
ffc04aec: 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) ) )
ffc04af0: 70 80 f0 00 andi. r0,r4,61440
int mknod(
const char *pathname,
mode_t mode,
dev_t dev
)
{
ffc04af4: 93 61 00 2c stw r27,44(r1)
ffc04af8: 7c bb 2b 78 mr r27,r5
ffc04afc: 93 81 00 30 stw r28,48(r1)
ffc04b00: 7c dc 33 78 mr r28,r6
ffc04b04: 93 c1 00 38 stw r30,56(r1)
ffc04b08: 7c 9e 23 78 mr r30,r4
ffc04b0c: 93 a1 00 34 stw r29,52(r1)
ffc04b10: 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) ) )
ffc04b14: 41 82 01 80 beq- ffc04c94 <mknod+0x1b0>
rtems_set_errno_and_return_minus_one( EINVAL );
rtems_filesystem_get_start_loc( pathname, &i, &temp_loc );
ffc04b18: 88 03 00 00 lbz r0,0(r3)
ffc04b1c: 2f 80 00 2f cmpwi cr7,r0,47
ffc04b20: 41 9e 00 14 beq- cr7,ffc04b34 <mknod+0x50>
ffc04b24: 2f 80 00 5c cmpwi cr7,r0,92
ffc04b28: 41 9e 00 0c beq- cr7,ffc04b34 <mknod+0x50>
ffc04b2c: 2f 80 00 00 cmpwi cr7,r0,0
ffc04b30: 40 9e 00 e8 bne- cr7,ffc04c18 <mknod+0x134>
ffc04b34: 3d 20 00 00 lis r9,0
ffc04b38: 81 29 26 9c lwz r9,9884(r9)
ffc04b3c: 39 60 00 01 li r11,1
ffc04b40: 80 09 00 24 lwz r0,36(r9)
ffc04b44: 80 e9 00 18 lwz r7,24(r9)
ffc04b48: 81 09 00 1c lwz r8,28(r9)
ffc04b4c: 81 49 00 20 lwz r10,32(r9)
ffc04b50: 90 01 00 18 stw r0,24(r1)
ffc04b54: 90 e1 00 0c stw r7,12(r1)
ffc04b58: 91 01 00 10 stw r8,16(r1)
ffc04b5c: 91 41 00 14 stw r10,20(r1)
ffc04b60: 80 09 00 28 lwz r0,40(r9)
if ( !temp_loc.ops->evalformake_h ) {
ffc04b64: 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 );
ffc04b68: 90 01 00 1c stw r0,28(r1)
if ( !temp_loc.ops->evalformake_h ) {
ffc04b6c: 80 09 00 04 lwz r0,4(r9)
ffc04b70: 2f 80 00 00 cmpwi cr7,r0,0
ffc04b74: 41 9e 00 e8 beq- cr7,ffc04c5c <mknod+0x178>
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*temp_loc.ops->evalformake_h)(
ffc04b78: 3b e1 00 0c addi r31,r1,12
ffc04b7c: 7c 09 03 a6 mtctr r0
ffc04b80: 7c 63 5a 14 add r3,r3,r11
ffc04b84: 7f e4 fb 78 mr r4,r31
ffc04b88: 38 a1 00 08 addi r5,r1,8
&pathname[i],
&temp_loc,
&name_start
);
if ( result != 0 )
ffc04b8c: 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)(
ffc04b90: 4e 80 04 21 bctrl
&pathname[i],
&temp_loc,
&name_start
);
if ( result != 0 )
ffc04b94: 2f 83 00 00 cmpwi cr7,r3,0
ffc04b98: 40 9e 00 58 bne- cr7,ffc04bf0 <mknod+0x10c>
return -1;
if ( !temp_loc.ops->mknod_h ) {
ffc04b9c: 81 21 00 18 lwz r9,24(r1)
ffc04ba0: 80 09 00 14 lwz r0,20(r9)
ffc04ba4: 2f 80 00 00 cmpwi cr7,r0,0
ffc04ba8: 41 9e 01 00 beq- cr7,ffc04ca8 <mknod+0x1c4>
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 );
ffc04bac: 7f c4 f3 78 mr r4,r30
ffc04bb0: 80 61 00 08 lwz r3,8(r1)
ffc04bb4: 7f 65 db 78 mr r5,r27
ffc04bb8: 7c 09 03 a6 mtctr r0
ffc04bbc: 7f 86 e3 78 mr r6,r28
ffc04bc0: 7f e7 fb 78 mr r7,r31
ffc04bc4: 4e 80 04 21 bctrl
rtems_filesystem_freenode( &temp_loc );
ffc04bc8: 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 );
ffc04bcc: 7c 7d 1b 78 mr r29,r3
rtems_filesystem_freenode( &temp_loc );
ffc04bd0: 2f 89 00 00 cmpwi cr7,r9,0
ffc04bd4: 41 9e 00 1c beq- cr7,ffc04bf0 <mknod+0x10c>
ffc04bd8: 80 09 00 1c lwz r0,28(r9)
ffc04bdc: 2f 80 00 00 cmpwi cr7,r0,0
ffc04be0: 41 9e 00 10 beq- cr7,ffc04bf0 <mknod+0x10c>
ffc04be4: 7f e3 fb 78 mr r3,r31
ffc04be8: 7c 09 03 a6 mtctr r0
ffc04bec: 4e 80 04 21 bctrl
return result;
}
ffc04bf0: 80 01 00 44 lwz r0,68(r1)
ffc04bf4: 7f a3 eb 78 mr r3,r29
ffc04bf8: 83 61 00 2c lwz r27,44(r1)
ffc04bfc: 7c 08 03 a6 mtlr r0
ffc04c00: 83 81 00 30 lwz r28,48(r1)
ffc04c04: 83 a1 00 34 lwz r29,52(r1)
ffc04c08: 83 c1 00 38 lwz r30,56(r1)
ffc04c0c: 83 e1 00 3c lwz r31,60(r1)
ffc04c10: 38 21 00 40 addi r1,r1,64
ffc04c14: 4e 80 00 20 blr
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 );
ffc04c18: 3d 20 00 00 lis r9,0
ffc04c1c: 81 29 26 9c lwz r9,9884(r9)
ffc04c20: 39 60 00 00 li r11,0
ffc04c24: 80 09 00 10 lwz r0,16(r9)
ffc04c28: 80 e9 00 04 lwz r7,4(r9)
ffc04c2c: 81 09 00 08 lwz r8,8(r9)
ffc04c30: 81 49 00 0c lwz r10,12(r9)
ffc04c34: 90 01 00 18 stw r0,24(r1)
ffc04c38: 90 e1 00 0c stw r7,12(r1)
ffc04c3c: 91 01 00 10 stw r8,16(r1)
ffc04c40: 91 41 00 14 stw r10,20(r1)
ffc04c44: 80 09 00 14 lwz r0,20(r9)
if ( !temp_loc.ops->evalformake_h ) {
ffc04c48: 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 );
ffc04c4c: 90 01 00 1c stw r0,28(r1)
if ( !temp_loc.ops->evalformake_h ) {
ffc04c50: 80 09 00 04 lwz r0,4(r9)
ffc04c54: 2f 80 00 00 cmpwi cr7,r0,0
ffc04c58: 40 9e ff 20 bne+ cr7,ffc04b78 <mknod+0x94>
if ( result != 0 )
return -1;
if ( !temp_loc.ops->mknod_h ) {
rtems_filesystem_freenode( &temp_loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc04c5c: 48 00 cf 5d bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc04c60: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc04c64: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc04c68: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc );
rtems_filesystem_freenode( &temp_loc );
return result;
}
ffc04c6c: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc04c70: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED
ffc04c74: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED
ffc04c78: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc04c7c: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED
ffc04c80: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED
ffc04c84: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED
ffc04c88: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED
ffc04c8c: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED
ffc04c90: 4e 80 00 20 blr <== NOT EXECUTED
int i;
const char *name_start;
int result;
if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) )
rtems_set_errno_and_return_minus_one( EINVAL );
ffc04c94: 48 00 cf 25 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc04c98: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc04c9c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc04ca0: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
ffc04ca4: 4b ff ff 4c b ffc04bf0 <mknod+0x10c> <== NOT EXECUTED
);
if ( result != 0 )
return -1;
if ( !temp_loc.ops->mknod_h ) {
rtems_filesystem_freenode( &temp_loc );
ffc04ca8: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc04cac: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc04cb0: 41 be ff ac beq- cr7,ffc04c5c <mknod+0x178> <== NOT EXECUTED
ffc04cb4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc04cb8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc04cbc: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc04cc0: 4b ff ff 9c b ffc04c5c <mknod+0x178> <== NOT EXECUTED
ffc04ce8 <mount>:
const rtems_filesystem_operations_table *fs_ops,
rtems_filesystem_options_t options,
const char *device,
const char *mount_point
)
{
ffc04ce8: 94 21 ff b8 stwu r1,-72(r1)
ffc04cec: 7d 80 00 26 mfcr r12
ffc04cf0: 7c 08 02 a6 mflr r0
ffc04cf4: 93 a1 00 3c stw r29,60(r1)
/*
* Is there a file system operations table?
*/
if ( fs_ops == NULL ) {
ffc04cf8: 7c 9d 23 79 mr. r29,r4
const rtems_filesystem_operations_table *fs_ops,
rtems_filesystem_options_t options,
const char *device,
const char *mount_point
)
{
ffc04cfc: 93 21 00 2c stw r25,44(r1)
ffc04d00: 7c d9 33 78 mr r25,r6
ffc04d04: 93 41 00 30 stw r26,48(r1)
ffc04d08: 7c fa 3b 78 mr r26,r7
ffc04d0c: 93 81 00 38 stw r28,56(r1)
ffc04d10: 7c 7c 1b 78 mr r28,r3
ffc04d14: 93 c1 00 40 stw r30,64(r1)
ffc04d18: 7c be 2b 78 mr r30,r5
ffc04d1c: 90 01 00 4c stw r0,76(r1)
ffc04d20: 93 61 00 34 stw r27,52(r1)
ffc04d24: 93 e1 00 44 stw r31,68(r1)
ffc04d28: 91 81 00 28 stw r12,40(r1)
/*
* Is there a file system operations table?
*/
if ( fs_ops == NULL ) {
ffc04d2c: 41 82 02 9c beq- ffc04fc8 <mount+0x2e0>
/*
* Are the file system options valid?
*/
if ( options != RTEMS_FILESYSTEM_READ_ONLY &&
ffc04d30: 2b 85 00 01 cmplwi cr7,r5,1
ffc04d34: 41 9d 02 94 bgt- cr7,ffc04fc8 <mount+0x2e0>
errno = EINVAL;
return -1;
}
/* Do they support being mounted at all ? */
if ( !fs_ops->fsmount_me_h ) {
ffc04d38: 80 1d 00 24 lwz r0,36(r29)
ffc04d3c: 2f 80 00 00 cmpwi cr7,r0,0
ffc04d40: 41 9e 02 b4 beq- cr7,ffc04ff4 <mount+0x30c>
/*
* Allocate a mount table entry
*/
size = sizeof(rtems_filesystem_mount_table_entry_t);
if ( device )
ffc04d44: 2e 06 00 00 cmpwi cr4,r6,0
ffc04d48: 41 92 02 24 beq- cr4,ffc04f6c <mount+0x284>
size += strlen( device ) + 1;
ffc04d4c: 7c c3 33 78 mr r3,r6 <== NOT EXECUTED
ffc04d50: 48 00 e1 65 bl ffc12eb4 <strlen> <== NOT EXECUTED
ffc04d54: 38 63 00 6d addi r3,r3,109 <== NOT EXECUTED
temp_mt_entry = malloc( size );
ffc04d58: 4b ff fc 1d bl ffc04974 <malloc>
if ( !temp_mt_entry ) {
ffc04d5c: 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 );
ffc04d60: 7c 7f 1b 78 mr r31,r3
ffc04d64: 7c 7b 1b 78 mr r27,r3
if ( !temp_mt_entry ) {
ffc04d68: 41 9e 02 ac beq- cr7,ffc05014 <mount+0x32c>
errno = ENOMEM;
return -1;
}
temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry;
temp_mt_entry->options = options;
ffc04d6c: 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;
ffc04d70: 90 7f 00 2c stw r3,44(r31)
temp_mt_entry->options = options;
if ( device ) {
ffc04d74: 41 92 01 f0 beq- cr4,ffc04f64 <mount+0x27c>
temp_mt_entry->dev =
(char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t );
ffc04d78: 38 03 00 6c addi r0,r3,108 <== NOT EXECUTED
}
temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry;
temp_mt_entry->options = options;
if ( device ) {
temp_mt_entry->dev =
ffc04d7c: 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 );
ffc04d80: 7c 03 03 78 mr r3,r0 <== NOT EXECUTED
ffc04d84: 7f 24 cb 78 mr r4,r25 <== NOT EXECUTED
ffc04d88: 48 00 e0 b5 bl ffc12e3c <strcpy> <== NOT EXECUTED
/*
* The mount_point should be a directory with read/write/execute
* permissions in the existing tree.
*/
if ( mount_point ) {
ffc04d8c: 2f 9a 00 00 cmpwi cr7,r26,0
ffc04d90: 41 9e 01 b0 beq- cr7,ffc04f40 <mount+0x258>
if ( rtems_filesystem_evaluate_path(
mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 )
ffc04d94: 7f 43 d3 78 mr r3,r26
ffc04d98: 48 00 e1 1d bl ffc12eb4 <strlen>
* permissions in the existing tree.
*/
if ( mount_point ) {
if ( rtems_filesystem_evaluate_path(
ffc04d9c: 3b c1 00 08 addi r30,r1,8
mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 )
ffc04da0: 7c 64 1b 78 mr r4,r3
* permissions in the existing tree.
*/
if ( mount_point ) {
if ( rtems_filesystem_evaluate_path(
ffc04da4: 38 a0 00 07 li r5,7
ffc04da8: 7f 43 d3 78 mr r3,r26
ffc04dac: 7f c6 f3 78 mr r6,r30
ffc04db0: 38 e0 00 01 li r7,1
ffc04db4: 4b ff f7 39 bl ffc044ec <rtems_filesystem_evaluate_path>
ffc04db8: 2f 83 ff ff cmpwi cr7,r3,-1
ffc04dbc: 41 9e 02 48 beq- cr7,ffc05004 <mount+0x31c>
/*
* Test for node_type_h
*/
if (!loc.ops->node_type_h) {
ffc04dc0: 81 21 00 14 lwz r9,20(r1)
ffc04dc4: 80 09 00 10 lwz r0,16(r9)
ffc04dc8: 2f 80 00 00 cmpwi cr7,r0,0
ffc04dcc: 41 9e 01 08 beq- cr7,ffc04ed4 <mount+0x1ec>
/*
* Test to see if it is a directory
*/
if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
ffc04dd0: 7f c3 f3 78 mr r3,r30
ffc04dd4: 7c 09 03 a6 mtctr r0
ffc04dd8: 4e 80 04 21 bctrl
ffc04ddc: 2f 83 00 01 cmpwi cr7,r3,1
ffc04de0: 40 9e 02 04 bne- cr7,ffc04fe4 <mount+0x2fc>
/*
* For each mount table entry
*/
for ( the_node = rtems_filesystem_mount_table_control.first;
ffc04de4: 3d 40 00 00 lis r10,0
ffc04de8: 81 2a 2a 98 lwz r9,10904(r10)
ffc04dec: 39 4a 2a 98 addi r10,r10,10904
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
ffc04df0: 39 4a 00 04 addi r10,r10,4
ffc04df4: 7f 89 50 00 cmpw cr7,r9,r10
ffc04df8: 41 9e 01 e4 beq- cr7,ffc04fdc <mount+0x2f4>
!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 )
ffc04dfc: 81 61 00 08 lwz r11,8(r1)
ffc04e00: 80 09 00 1c lwz r0,28(r9)
ffc04e04: 7f 80 58 00 cmpw cr7,r0,r11
ffc04e08: 40 be 00 14 bne+ cr7,ffc04e1c <mount+0x134>
ffc04e0c: 48 00 01 24 b ffc04f30 <mount+0x248> <== NOT EXECUTED
ffc04e10: 80 09 00 1c lwz r0,28(r9)
ffc04e14: 7f 80 58 00 cmpw cr7,r0,r11
ffc04e18: 41 9e 01 18 beq- cr7,ffc04f30 <mount+0x248>
* 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 ) {
ffc04e1c: 81 29 00 00 lwz r9,0(r9)
/*
* For each mount table entry
*/
for ( the_node = rtems_filesystem_mount_table_control.first;
ffc04e20: 7f 89 50 00 cmpw cr7,r9,r10
ffc04e24: 40 9e ff ec bne+ cr7,ffc04e10 <mount+0x128>
* 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;
ffc04e28: 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;
ffc04e2c: 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 ){
ffc04e30: 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;
ffc04e34: 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 ){
ffc04e38: 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;
ffc04e3c: 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;
ffc04e40: 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;
ffc04e44: 81 61 00 18 lwz r11,24(r1)
ffc04e48: 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 ){
ffc04e4c: 41 9e 00 88 beq- cr7,ffc04ed4 <mount+0x1ec>
errno = ENOTSUP;
goto cleanup_and_bail;
}
if ( loc.ops->mount_h( temp_mt_entry ) ) {
ffc04e50: 7f e3 fb 78 mr r3,r31
ffc04e54: 7c 09 03 a6 mtctr r0
ffc04e58: 7f db f3 78 mr r27,r30
ffc04e5c: 4e 80 04 21 bctrl
ffc04e60: 2f 83 00 00 cmpwi cr7,r3,0
ffc04e64: 40 9e 00 7c bne- cr7,ffc04ee0 <mount+0x1f8>
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;
}
if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) {
ffc04e68: 80 1d 00 24 lwz r0,36(r29)
ffc04e6c: 7f e3 fb 78 mr r3,r31
ffc04e70: 7c 09 03 a6 mtctr r0
ffc04e74: 4e 80 04 21 bctrl
ffc04e78: 2f 83 00 00 cmpwi cr7,r3,0
ffc04e7c: 40 9e 00 f8 bne- cr7,ffc04f74 <mount+0x28c>
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
ffc04e80: 3c 60 00 00 lis r3,0
ffc04e84: 38 63 2a 98 addi r3,r3,10904
ffc04e88: 7f e4 fb 78 mr r4,r31
ffc04e8c: 48 00 46 09 bl ffc09494 <_Chain_Append>
*/
rtems_chain_append( &rtems_filesystem_mount_table_control,
&temp_mt_entry->Node );
if ( mt_entry )
ffc04e90: 2f 9c 00 00 cmpwi cr7,r28,0
ffc04e94: 38 60 00 00 li r3,0
ffc04e98: 41 9e 00 08 beq- cr7,ffc04ea0 <mount+0x1b8>
*mt_entry = temp_mt_entry;
ffc04e9c: 93 fc 00 00 stw r31,0(r28)
if ( loc_to_free )
rtems_filesystem_freenode( loc_to_free );
return -1;
}
ffc04ea0: 80 01 00 4c lwz r0,76(r1)
ffc04ea4: 81 81 00 28 lwz r12,40(r1)
ffc04ea8: 7c 08 03 a6 mtlr r0
ffc04eac: 83 21 00 2c lwz r25,44(r1)
ffc04eb0: 83 41 00 30 lwz r26,48(r1)
ffc04eb4: 7d 80 81 20 mtcrf 8,r12
ffc04eb8: 83 61 00 34 lwz r27,52(r1)
ffc04ebc: 83 81 00 38 lwz r28,56(r1)
ffc04ec0: 83 a1 00 3c lwz r29,60(r1)
ffc04ec4: 83 c1 00 40 lwz r30,64(r1)
ffc04ec8: 83 e1 00 44 lwz r31,68(r1)
ffc04ecc: 38 21 00 48 addi r1,r1,72
ffc04ed0: 4e 80 00 20 blr
* 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;
ffc04ed4: 48 00 cc e5 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc04ed8: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc04edc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
return 0;
cleanup_and_bail:
free( temp_mt_entry );
ffc04ee0: 7f e3 fb 78 mr r3,r31
ffc04ee4: 4b ff f7 11 bl ffc045f4 <free>
ffc04ee8: 7f db f3 78 mr r27,r30
if ( loc_to_free )
rtems_filesystem_freenode( loc_to_free );
ffc04eec: 81 3b 00 0c lwz r9,12(r27)
ffc04ef0: 2f 89 00 00 cmpwi cr7,r9,0
ffc04ef4: 40 9e 00 b4 bne- cr7,ffc04fa8 <mount+0x2c0>
ffc04ef8: 38 60 ff ff li r3,-1 <== NOT EXECUTED
return -1;
}
ffc04efc: 80 01 00 4c lwz r0,76(r1) <== NOT EXECUTED
ffc04f00: 81 81 00 28 lwz r12,40(r1) <== NOT EXECUTED
ffc04f04: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc04f08: 83 21 00 2c lwz r25,44(r1) <== NOT EXECUTED
ffc04f0c: 83 41 00 30 lwz r26,48(r1) <== NOT EXECUTED
ffc04f10: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED
ffc04f14: 83 61 00 34 lwz r27,52(r1) <== NOT EXECUTED
ffc04f18: 83 81 00 38 lwz r28,56(r1) <== NOT EXECUTED
ffc04f1c: 83 a1 00 3c lwz r29,60(r1) <== NOT EXECUTED
ffc04f20: 83 c1 00 40 lwz r30,64(r1) <== NOT EXECUTED
ffc04f24: 83 e1 00 44 lwz r31,68(r1) <== NOT EXECUTED
ffc04f28: 38 21 00 48 addi r1,r1,72 <== NOT EXECUTED
ffc04f2c: 4e 80 00 20 blr <== NOT EXECUTED
/*
* You can only mount one file system onto a single mount point.
*/
if ( Is_node_fs_root( &loc ) ){
errno = EBUSY;
ffc04f30: 48 00 cc 89 bl ffc11bb8 <__errno>
ffc04f34: 38 00 00 10 li r0,16
ffc04f38: 90 03 00 00 stw r0,0(r3)
goto cleanup_and_bail;
ffc04f3c: 4b ff ff a4 b ffc04ee0 <mount+0x1f8>
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;
ffc04f40: 93 5f 00 18 stw r26,24(r31)
ffc04f44: 3b 60 00 00 li r27,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;
ffc04f48: 93 5f 00 1c stw r26,28(r31)
temp_mt_entry->mt_fs_root.handlers = NULL;
ffc04f4c: 93 5f 00 24 stw r26,36(r31)
temp_mt_entry->mt_fs_root.ops = NULL;
ffc04f50: 93 5f 00 28 stw r26,40(r31)
temp_mt_entry->mt_point_node.node_access = NULL;
ffc04f54: 93 5f 00 08 stw r26,8(r31)
temp_mt_entry->mt_point_node.handlers = NULL;
ffc04f58: 93 5f 00 10 stw r26,16(r31)
temp_mt_entry->mt_point_node.ops = NULL;
ffc04f5c: 93 5f 00 14 stw r26,20(r31)
ffc04f60: 4b ff ff 08 b ffc04e68 <mount+0x180>
if ( device ) {
temp_mt_entry->dev =
(char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t );
strcpy( temp_mt_entry->dev, device );
} else
temp_mt_entry->dev = 0;
ffc04f64: 93 23 00 68 stw r25,104(r3)
ffc04f68: 4b ff fe 24 b ffc04d8c <mount+0xa4>
/*
* Allocate a mount table entry
*/
size = sizeof(rtems_filesystem_mount_table_entry_t);
if ( device )
ffc04f6c: 38 60 00 6c li r3,108
ffc04f70: 4b ff fd e8 b ffc04d58 <mount+0x70>
temp_mt_entry->mt_point_node.mt_entry = NULL;
}
if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) {
/* try to undo the mount operation */
if ( loc.ops->unmount_h ) {
ffc04f74: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED
ffc04f78: 80 09 00 28 lwz r0,40(r9) <== NOT EXECUTED
ffc04f7c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc04f80: 41 9e 00 10 beq- cr7,ffc04f90 <mount+0x2a8> <== NOT EXECUTED
loc.ops->unmount_h( temp_mt_entry );
ffc04f84: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc04f88: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc04f8c: 4e 80 04 21 bctrl <== NOT EXECUTED
return 0;
cleanup_and_bail:
free( temp_mt_entry );
ffc04f90: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc04f94: 4b ff f6 61 bl ffc045f4 <free> <== NOT EXECUTED
if ( loc_to_free )
ffc04f98: 2f 9b 00 00 cmpwi cr7,r27,0 <== NOT EXECUTED
ffc04f9c: 40 be ff 50 bne- cr7,ffc04eec <mount+0x204> <== NOT EXECUTED
rtems_filesystem_freenode( loc_to_free );
ffc04fa0: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc04fa4: 4b ff ff 58 b ffc04efc <mount+0x214> <== NOT EXECUTED
ffc04fa8: 80 09 00 1c lwz r0,28(r9)
ffc04fac: 2f 80 00 00 cmpwi cr7,r0,0
ffc04fb0: 41 9e ff 48 beq+ cr7,ffc04ef8 <mount+0x210>
ffc04fb4: 7f 63 db 78 mr r3,r27
ffc04fb8: 7c 09 03 a6 mtctr r0
ffc04fbc: 4e 80 04 21 bctrl
ffc04fc0: 38 60 ff ff li r3,-1
ffc04fc4: 4b ff fe dc b ffc04ea0 <mount+0x1b8>
* Are the file system options valid?
*/
if ( options != RTEMS_FILESYSTEM_READ_ONLY &&
options != RTEMS_FILESYSTEM_READ_WRITE ) {
errno = EINVAL;
ffc04fc8: 48 00 cb f1 bl ffc11bb8 <__errno>
ffc04fcc: 38 00 00 16 li r0,22
ffc04fd0: 90 03 00 00 stw r0,0(r3)
ffc04fd4: 38 60 ff ff li r3,-1
return -1;
ffc04fd8: 4b ff fe c8 b ffc04ea0 <mount+0x1b8>
cleanup_and_bail:
free( temp_mt_entry );
if ( loc_to_free )
rtems_filesystem_freenode( loc_to_free );
ffc04fdc: 81 61 00 08 lwz r11,8(r1) <== NOT EXECUTED
ffc04fe0: 4b ff fe 48 b ffc04e28 <mount+0x140> <== NOT EXECUTED
/*
* Test to see if it is a directory
*/
if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
errno = ENOTDIR;
ffc04fe4: 48 00 cb d5 bl ffc11bb8 <__errno>
ffc04fe8: 38 00 00 14 li r0,20
ffc04fec: 90 03 00 00 stw r0,0(r3)
goto cleanup_and_bail;
ffc04ff0: 4b ff fe f0 b ffc04ee0 <mount+0x1f8>
return -1;
}
/* Do they support being mounted at all ? */
if ( !fs_ops->fsmount_me_h ) {
errno = ENOTSUP;
ffc04ff4: 48 00 cb c5 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc04ff8: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc04ffc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc05000: 3b 60 00 00 li r27,0 <== NOT EXECUTED
return 0;
cleanup_and_bail:
free( temp_mt_entry );
ffc05004: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED
ffc05008: 4b ff f5 ed bl ffc045f4 <free> <== NOT EXECUTED
ffc0500c: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc05010: 4b ff fe 90 b ffc04ea0 <mount+0x1b8> <== NOT EXECUTED
if ( device )
size += strlen( device ) + 1;
temp_mt_entry = malloc( size );
if ( !temp_mt_entry ) {
errno = ENOMEM;
ffc05014: 48 00 cb a5 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc05018: 38 00 00 0c li r0,12 <== NOT EXECUTED
ffc0501c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc05020: 38 60 ff ff li r3,-1 <== NOT EXECUTED
return -1;
ffc05024: 4b ff fe 7c b ffc04ea0 <mount+0x1b8> <== NOT EXECUTED
ffc050e8 <newlib_free_buffers>:
*/
int newlib_free_buffers(
FILE *fp
)
{
ffc050e8: 94 21 ff f0 stwu r1,-16(r1)
ffc050ec: 7c 08 02 a6 mflr r0
ffc050f0: 93 e1 00 0c stw r31,12(r1)
ffc050f4: 7c 7f 1b 78 mr r31,r3
ffc050f8: 90 01 00 14 stw r0,20(r1)
switch ( fileno(fp) ) {
ffc050fc: 48 00 cf 91 bl ffc1208c <fileno>
ffc05100: 2b 83 00 02 cmplwi cr7,r3,2
ffc05104: 40 9d 00 24 ble- cr7,ffc05128 <newlib_free_buffers+0x40>
fp->_flags &= ~__SMBF;
fp->_bf._base = fp->_p = (unsigned char *) NULL;
}
break;
default:
fclose(fp);
ffc05108: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc0510c: 48 00 cc 4d bl ffc11d58 <fclose> <== NOT EXECUTED
}
return 0;
}
ffc05110: 80 01 00 14 lwz r0,20(r1)
ffc05114: 38 60 00 00 li r3,0
ffc05118: 83 e1 00 0c lwz r31,12(r1)
ffc0511c: 38 21 00 10 addi r1,r1,16
ffc05120: 7c 08 03 a6 mtlr r0
ffc05124: 4e 80 00 20 blr
{
switch ( fileno(fp) ) {
case 0:
case 1:
case 2:
if (fp->_flags & __SMBF) {
ffc05128: a0 1f 00 0c lhz r0,12(r31)
ffc0512c: 70 09 00 80 andi. r9,r0,128
ffc05130: 41 82 ff e0 beq+ ffc05110 <newlib_free_buffers+0x28>
free( fp->_bf._base );
ffc05134: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED
ffc05138: 4b ff f4 bd bl ffc045f4 <free> <== NOT EXECUTED
fp->_flags &= ~__SMBF;
fp->_bf._base = fp->_p = (unsigned char *) NULL;
ffc0513c: 38 00 00 00 li r0,0 <== NOT EXECUTED
ffc05140: 90 1f 00 10 stw r0,16(r31) <== NOT EXECUTED
break;
default:
fclose(fp);
}
return 0;
}
ffc05144: 38 60 00 00 li r3,0 <== NOT EXECUTED
case 1:
case 2:
if (fp->_flags & __SMBF) {
free( fp->_bf._base );
fp->_flags &= ~__SMBF;
fp->_bf._base = fp->_p = (unsigned char *) NULL;
ffc05148: 90 1f 00 00 stw r0,0(r31) <== NOT EXECUTED
break;
default:
fclose(fp);
}
return 0;
}
ffc0514c: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
case 0:
case 1:
case 2:
if (fp->_flags & __SMBF) {
free( fp->_bf._base );
fp->_flags &= ~__SMBF;
ffc05150: a1 3f 00 0c lhz r9,12(r31) <== NOT EXECUTED
break;
default:
fclose(fp);
}
return 0;
}
ffc05154: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
case 0:
case 1:
case 2:
if (fp->_flags & __SMBF) {
free( fp->_bf._base );
fp->_flags &= ~__SMBF;
ffc05158: 55 29 06 6e rlwinm r9,r9,0,25,23 <== NOT EXECUTED
ffc0515c: b1 3f 00 0c sth r9,12(r31) <== NOT EXECUTED
break;
default:
fclose(fp);
}
return 0;
}
ffc05160: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc05164: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc05168: 4e 80 00 20 blr <== NOT EXECUTED
ffc04ee8 <null_initialize>:
rtems_device_driver null_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor __attribute__((unused)),
void *pargp __attribute__((unused))
)
{
ffc04ee8: 94 21 ff f0 stwu r1,-16(r1)
ffc04eec: 7c 08 02 a6 mflr r0
rtems_device_driver status;
if ( !initialized ) {
ffc04ef0: 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))
)
{
ffc04ef4: 90 01 00 14 stw r0,20(r1)
rtems_device_driver status;
if ( !initialized ) {
ffc04ef8: 88 09 28 a8 lbz r0,10408(r9)
rtems_device_driver null_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor __attribute__((unused)),
void *pargp __attribute__((unused))
)
{
ffc04efc: 93 e1 00 0c stw r31,12(r1)
ffc04f00: 7c 7f 1b 78 mr r31,r3
rtems_device_driver status;
if ( !initialized ) {
ffc04f04: 2f 80 00 00 cmpwi cr7,r0,0
ffc04f08: 41 9e 00 1c beq- cr7,ffc04f24 <null_initialize+0x3c>
NULL_major = major;
}
return RTEMS_SUCCESSFUL;
}
ffc04f0c: 80 01 00 14 lwz r0,20(r1)
ffc04f10: 38 60 00 00 li r3,0
ffc04f14: 83 e1 00 0c lwz r31,12(r1)
ffc04f18: 38 21 00 10 addi r1,r1,16
ffc04f1c: 7c 08 03 a6 mtlr r0
ffc04f20: 4e 80 00 20 blr
rtems_device_driver status;
if ( !initialized ) {
initialized = 1;
status = rtems_io_register_name(
ffc04f24: 3c 60 ff c2 lis r3,-62
)
{
rtems_device_driver status;
if ( !initialized ) {
initialized = 1;
ffc04f28: 38 00 00 01 li r0,1
status = rtems_io_register_name(
ffc04f2c: 38 63 27 78 addi r3,r3,10104
)
{
rtems_device_driver status;
if ( !initialized ) {
initialized = 1;
ffc04f30: 98 09 28 a8 stb r0,10408(r9)
status = rtems_io_register_name(
ffc04f34: 7f e4 fb 78 mr r4,r31
ffc04f38: 38 a0 00 00 li r5,0
ffc04f3c: 48 00 01 c1 bl ffc050fc <rtems_io_register_name>
"/dev/null",
major,
(rtems_device_minor_number) 0
);
if (status != RTEMS_SUCCESSFUL)
ffc04f40: 2f 83 00 00 cmpwi cr7,r3,0
ffc04f44: 40 9e 00 24 bne- cr7,ffc04f68 <null_initialize+0x80>
NULL_major = major;
}
return RTEMS_SUCCESSFUL;
}
ffc04f48: 80 01 00 14 lwz r0,20(r1)
);
if (status != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred(status);
NULL_major = major;
ffc04f4c: 3d 20 00 00 lis r9,0
ffc04f50: 93 e9 27 88 stw r31,10120(r9)
}
return RTEMS_SUCCESSFUL;
}
ffc04f54: 38 60 00 00 li r3,0
ffc04f58: 7c 08 03 a6 mtlr r0
ffc04f5c: 83 e1 00 0c lwz r31,12(r1)
ffc04f60: 38 21 00 10 addi r1,r1,16
ffc04f64: 4e 80 00 20 blr
major,
(rtems_device_minor_number) 0
);
if (status != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred(status);
ffc04f68: 48 00 55 39 bl ffc0a4a0 <rtems_fatal_error_occurred> <== NOT EXECUTED
ffc04ec8 <null_write>:
void *pargp
)
{
rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp;
if ( rw_args )
ffc04ec8: 2c 05 00 00 cmpwi r5,0
ffc04ecc: 41 82 00 0c beq- ffc04ed8 <null_write+0x10>
rw_args->bytes_moved = rw_args->count;
ffc04ed0: 80 05 00 14 lwz r0,20(r5) <== NOT EXECUTED
ffc04ed4: 90 05 00 1c stw r0,28(r5) <== NOT EXECUTED
return NULL_SUCCESSFUL;
}
ffc04ed8: 38 60 00 00 li r3,0
ffc04edc: 4e 80 00 20 blr
ffc053ec <open>:
int open(
const char *pathname,
int flags,
...
)
{
ffc053ec: 94 21 ff b0 stwu r1,-80(r1)
ffc053f0: 7c 08 02 a6 mflr r0
ffc053f4: 7d 80 00 26 mfcr r12
ffc053f8: 90 01 00 54 stw r0,84(r1)
/*
* Set the Evaluation flags
*/
eval_flags = 0;
status = flags + 1;
ffc053fc: 38 04 00 01 addi r0,r4,1
if ( ( status & _FREAD ) == _FREAD )
eval_flags |= RTEMS_LIBIO_PERMS_READ;
if ( ( status & _FWRITE ) == _FWRITE )
ffc05400: 70 09 00 02 andi. r9,r0,2
int open(
const char *pathname,
int flags,
...
)
{
ffc05404: 93 41 00 38 stw r26,56(r1)
* Set the Evaluation flags
*/
eval_flags = 0;
status = flags + 1;
if ( ( status & _FREAD ) == _FREAD )
ffc05408: 54 1a 17 7a rlwinm r26,r0,2,29,29
int open(
const char *pathname,
int flags,
...
)
{
ffc0540c: 93 a1 00 44 stw r29,68(r1)
ffc05410: 7c 7d 1b 78 mr r29,r3
ffc05414: 93 c1 00 48 stw r30,72(r1)
ffc05418: 7c 9e 23 78 mr r30,r4
ffc0541c: 93 21 00 34 stw r25,52(r1)
ffc05420: 93 61 00 3c stw r27,60(r1)
ffc05424: 93 81 00 40 stw r28,64(r1)
ffc05428: 93 e1 00 4c stw r31,76(r1)
ffc0542c: 91 81 00 30 stw r12,48(r1)
ffc05430: 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 )
ffc05434: 41 82 00 08 beq- ffc0543c <open+0x50>
eval_flags |= RTEMS_LIBIO_PERMS_WRITE;
ffc05438: 63 5a 00 02 ori r26,r26,2
va_start(ap, flags);
ffc0543c: 38 01 00 58 addi r0,r1,88
ffc05440: 39 21 00 20 addi r9,r1,32
ffc05444: 90 01 00 0c stw r0,12(r1)
mode = va_arg( ap, int );
ffc05448: 38 00 00 03 li r0,3
ffc0544c: 98 01 00 08 stb r0,8(r1)
eval_flags |= RTEMS_LIBIO_PERMS_READ;
if ( ( status & _FWRITE ) == _FWRITE )
eval_flags |= RTEMS_LIBIO_PERMS_WRITE;
va_start(ap, flags);
ffc05450: 91 21 00 10 stw r9,16(r1)
mode = va_arg( ap, int );
ffc05454: 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();
ffc05458: 48 00 91 71 bl ffc0e5c8 <rtems_libio_allocate>
if ( iop == 0 ) {
ffc0545c: 2e 03 00 00 cmpwi cr4,r3,0
ffc05460: 7c 7f 1b 78 mr r31,r3
ffc05464: 41 92 01 20 beq- cr4,ffc05584 <open+0x198>
/*
* See if the file exists.
*/
status = rtems_filesystem_evaluate_path(
pathname, strlen( pathname ), eval_flags, &loc, true );
ffc05468: 7f a3 eb 78 mr r3,r29
ffc0546c: 48 00 da 49 bl ffc12eb4 <strlen>
/*
* See if the file exists.
*/
status = rtems_filesystem_evaluate_path(
ffc05470: 3b 81 00 14 addi r28,r1,20
pathname, strlen( pathname ), eval_flags, &loc, true );
ffc05474: 7c 64 1b 78 mr r4,r3
/*
* See if the file exists.
*/
status = rtems_filesystem_evaluate_path(
ffc05478: 7f 45 d3 78 mr r5,r26
ffc0547c: 7f a3 eb 78 mr r3,r29
ffc05480: 7f 86 e3 78 mr r6,r28
ffc05484: 38 e0 00 01 li r7,1
ffc05488: 4b ff f0 65 bl ffc044ec <rtems_filesystem_evaluate_path>
pathname, strlen( pathname ), eval_flags, &loc, true );
if ( status == -1 ) {
ffc0548c: 2f 83 ff ff cmpwi cr7,r3,-1
ffc05490: 41 9e 01 6c beq- cr7,ffc055fc <open+0x210>
if ( status != 0 ) { /* The file did not exist */
rc = EACCES;
goto done;
}
} else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) {
ffc05494: 73 c0 0a 00 andi. r0,r30,2560
ffc05498: 7f 99 e3 78 mr r25,r28
ffc0549c: 3b 40 00 11 li r26,17
ffc054a0: 2f 80 0a 00 cmpwi cr7,r0,2560
ffc054a4: 41 9e 00 e8 beq- cr7,ffc0558c <open+0x1a0>
/*
* Fill in the file control block based on the loc structure
* returned by successful path evaluation.
*/
iop->handlers = loc.handlers;
ffc054a8: 80 01 00 1c lwz r0,28(r1)
iop->file_info = loc.node_access;
iop->flags |= rtems_libio_fcntl_flags( flags );
ffc054ac: 7f c3 f3 78 mr r3,r30
ffc054b0: 83 5f 00 18 lwz r26,24(r31)
/*
* Fill in the file control block based on the loc structure
* returned by successful path evaluation.
*/
iop->handlers = loc.handlers;
ffc054b4: 90 1f 00 40 stw r0,64(r31)
iop->file_info = loc.node_access;
ffc054b8: 80 01 00 14 lwz r0,20(r1)
ffc054bc: 90 1f 00 3c stw r0,60(r31)
iop->flags |= rtems_libio_fcntl_flags( flags );
ffc054c0: 48 00 91 e9 bl ffc0e6a8 <rtems_libio_fcntl_flags>
iop->pathinfo = loc;
if ( !iop->handlers || !iop->handlers->open_h ) {
ffc054c4: 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;
ffc054c8: 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 );
ffc054cc: 7c 63 d3 78 or r3,r3,r26
iop->pathinfo = loc;
ffc054d0: 81 41 00 18 lwz r10,24(r1)
if ( !iop->handlers || !iop->handlers->open_h ) {
ffc054d4: 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;
ffc054d8: 81 61 00 1c lwz r11,28(r1)
ffc054dc: 81 01 00 14 lwz r8,20(r1)
ffc054e0: 91 5f 00 20 stw r10,32(r31)
ffc054e4: 91 1f 00 1c stw r8,28(r31)
ffc054e8: 91 7f 00 24 stw r11,36(r31)
ffc054ec: 90 1f 00 28 stw r0,40(r31)
ffc054f0: 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 );
ffc054f4: 90 7f 00 18 stw r3,24(r31)
iop->pathinfo = loc;
ffc054f8: 90 1f 00 2c stw r0,44(r31)
if ( !iop->handlers || !iop->handlers->open_h ) {
ffc054fc: 41 9e 00 f4 beq- cr7,ffc055f0 <open+0x204>
ffc05500: 80 09 00 00 lwz r0,0(r9)
ffc05504: 2f 80 00 00 cmpwi cr7,r0,0
ffc05508: 41 9e 00 e8 beq- cr7,ffc055f0 <open+0x204>
rc = ENOTSUP;
goto done;
}
rc = (*iop->handlers->open_h)( iop, pathname, flags, mode );
ffc0550c: 7f a4 eb 78 mr r4,r29
ffc05510: 7c 09 03 a6 mtctr r0
ffc05514: 7f 66 db 78 mr r6,r27
ffc05518: 7f e3 fb 78 mr r3,r31
ffc0551c: 7f c5 f3 78 mr r5,r30
ffc05520: 4e 80 04 21 bctrl
if ( rc ) {
ffc05524: 2f 83 00 00 cmpwi cr7,r3,0
ffc05528: 40 9e 00 ac bne- cr7,ffc055d4 <open+0x1e8>
/*
* Optionally truncate the file.
*/
if ( (flags & O_TRUNC) == O_TRUNC ) {
ffc0552c: 73 c0 04 00 andi. r0,r30,1024
ffc05530: 3f c0 00 00 lis r30,0
ffc05534: 40 82 00 ec bne- ffc05620 <open+0x234>
if ( loc_to_free )
rtems_filesystem_freenode( loc_to_free );
rtems_set_errno_and_return_minus_one( rc );
}
return iop - rtems_libio_iops;
ffc05538: 80 7e 27 08 lwz r3,9992(r30)
ffc0553c: 3c 00 38 e3 lis r0,14563
ffc05540: 60 00 8e 39 ori r0,r0,36409
ffc05544: 7c 63 f8 50 subf r3,r3,r31
ffc05548: 7c 63 1e 70 srawi r3,r3,3
ffc0554c: 7c 63 01 d6 mullw r3,r3,r0
}
ffc05550: 80 01 00 54 lwz r0,84(r1)
ffc05554: 81 81 00 30 lwz r12,48(r1)
ffc05558: 7c 08 03 a6 mtlr r0
ffc0555c: 83 21 00 34 lwz r25,52(r1)
ffc05560: 83 41 00 38 lwz r26,56(r1)
ffc05564: 7d 80 81 20 mtcrf 8,r12
ffc05568: 83 61 00 3c lwz r27,60(r1)
ffc0556c: 83 81 00 40 lwz r28,64(r1)
ffc05570: 83 a1 00 44 lwz r29,68(r1)
ffc05574: 83 c1 00 48 lwz r30,72(r1)
ffc05578: 83 e1 00 4c lwz r31,76(r1)
ffc0557c: 38 21 00 50 addi r1,r1,80
ffc05580: 4e 80 00 20 blr
* descriptors are obtained using socket(), not open().
*/
/* allocate a file control block */
iop = rtems_libio_allocate();
if ( iop == 0 ) {
ffc05584: 3b 20 00 00 li r25,0
ffc05588: 3b 40 00 17 li r26,23
done:
va_end(ap);
if ( rc ) {
if ( iop )
ffc0558c: 41 92 00 0c beq- cr4,ffc05598 <open+0x1ac>
rtems_libio_free( iop );
ffc05590: 7f e3 fb 78 mr r3,r31
ffc05594: 48 00 8f bd bl ffc0e550 <rtems_libio_free>
if ( loc_to_free )
ffc05598: 2f 99 00 00 cmpwi cr7,r25,0
ffc0559c: 41 9e 00 28 beq- cr7,ffc055c4 <open+0x1d8>
rtems_filesystem_freenode( loc_to_free );
ffc055a0: 81 39 00 0c lwz r9,12(r25)
ffc055a4: 2f 89 00 00 cmpwi cr7,r9,0
ffc055a8: 41 9e 00 1c beq- cr7,ffc055c4 <open+0x1d8>
ffc055ac: 80 09 00 1c lwz r0,28(r9)
ffc055b0: 2f 80 00 00 cmpwi cr7,r0,0
ffc055b4: 41 9e 00 10 beq- cr7,ffc055c4 <open+0x1d8>
ffc055b8: 7f 23 cb 78 mr r3,r25
ffc055bc: 7c 09 03 a6 mtctr r0
ffc055c0: 4e 80 04 21 bctrl
rtems_set_errno_and_return_minus_one( rc );
ffc055c4: 48 00 c5 f5 bl ffc11bb8 <__errno>
ffc055c8: 93 43 00 00 stw r26,0(r3)
ffc055cc: 38 60 ff ff li r3,-1
ffc055d0: 4b ff ff 80 b ffc05550 <open+0x164>
goto done;
}
rc = (*iop->handlers->open_h)( iop, pathname, flags, mode );
if ( rc ) {
rc = errno;
ffc055d4: 48 00 c5 e5 bl ffc11bb8 <__errno>
ffc055d8: 7f 99 e3 78 mr r25,r28
ffc055dc: 83 43 00 00 lwz r26,0(r3)
ffc055e0: 2e 1a 00 00 cmpwi cr4,r26,0
*/
done:
va_end(ap);
if ( rc ) {
ffc055e4: 40 92 01 24 bne- cr4,ffc05708 <open+0x31c>
ffc055e8: 3f c0 00 00 lis r30,0 <== NOT EXECUTED
ffc055ec: 4b ff ff 4c b ffc05538 <open+0x14c> <== NOT EXECUTED
if ( loc_to_free )
rtems_filesystem_freenode( loc_to_free );
rtems_set_errno_and_return_minus_one( rc );
}
return iop - rtems_libio_iops;
ffc055f0: 7f 99 e3 78 mr r25,r28 <== NOT EXECUTED
ffc055f4: 3b 40 00 86 li r26,134 <== NOT EXECUTED
ffc055f8: 4b ff ff 94 b ffc0558c <open+0x1a0> <== NOT EXECUTED
status = rtems_filesystem_evaluate_path(
pathname, strlen( pathname ), eval_flags, &loc, true );
if ( status == -1 ) {
if ( errno != ENOENT ) {
ffc055fc: 48 00 c5 bd bl ffc11bb8 <__errno>
ffc05600: 80 03 00 00 lwz r0,0(r3)
ffc05604: 2f 80 00 02 cmpwi cr7,r0,2
ffc05608: 41 9e 00 80 beq- cr7,ffc05688 <open+0x29c>
rc = errno;
ffc0560c: 48 00 c5 ad bl ffc11bb8 <__errno>
ffc05610: 3b 20 00 00 li r25,0
ffc05614: 83 43 00 00 lwz r26,0(r3)
ffc05618: 2e 1a 00 00 cmpwi cr4,r26,0
goto done;
ffc0561c: 4b ff ff c8 b ffc055e4 <open+0x1f8>
/*
* Optionally truncate the file.
*/
if ( (flags & O_TRUNC) == O_TRUNC ) {
rc = ftruncate( iop - rtems_libio_iops, 0 );
ffc05620: 80 7e 27 08 lwz r3,9992(r30)
ffc05624: 3c 00 38 e3 lis r0,14563
ffc05628: 60 00 8e 39 ori r0,r0,36409
ffc0562c: 7c 63 f8 50 subf r3,r3,r31
ffc05630: 7c 63 1e 70 srawi r3,r3,3
ffc05634: 7c 63 01 d6 mullw r3,r3,r0
ffc05638: 38 a0 00 00 li r5,0
ffc0563c: 38 c0 00 00 li r6,0
ffc05640: 48 00 8b 79 bl ffc0e1b8 <ftruncate>
if ( rc ) {
ffc05644: 2e 03 00 00 cmpwi cr4,r3,0
ffc05648: 7c 7a 1b 78 mr r26,r3
ffc0564c: 41 92 fe ec beq+ cr4,ffc05538 <open+0x14c>
if(errno) rc = errno;
ffc05650: 48 00 c5 69 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc05654: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED
ffc05658: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0565c: 40 9e 00 9c bne- cr7,ffc056f8 <open+0x30c> <== NOT EXECUTED
close( iop - rtems_libio_iops );
ffc05660: 80 7e 27 08 lwz r3,9992(r30) <== NOT EXECUTED
ffc05664: 3c 00 38 e3 lis r0,14563 <== NOT EXECUTED
ffc05668: 60 00 8e 39 ori r0,r0,36409 <== NOT EXECUTED
ffc0566c: 7c 63 f8 50 subf r3,r3,r31 <== NOT EXECUTED
ffc05670: 7c 63 1e 70 srawi r3,r3,3 <== NOT EXECUTED
ffc05674: 7c 63 01 d6 mullw r3,r3,r0 <== NOT EXECUTED
ffc05678: 3b 20 00 00 li r25,0 <== NOT EXECUTED
ffc0567c: 48 00 8a 75 bl ffc0e0f0 <close> <== NOT EXECUTED
ffc05680: 3b e0 00 00 li r31,0 <== NOT EXECUTED
ffc05684: 4b ff ff 60 b ffc055e4 <open+0x1f8> <== NOT EXECUTED
rc = errno;
goto done;
}
/* If the file does not exist and we are not trying to create it--> error */
if ( !(flags & O_CREAT) ) {
ffc05688: 73 c0 02 00 andi. r0,r30,512
ffc0568c: 3b 20 00 00 li r25,0
ffc05690: 3b 40 00 02 li r26,2
ffc05694: 41 82 fe f8 beq+ ffc0558c <open+0x1a0>
rc = ENOENT;
goto done;
}
/* Create the node for the new regular file */
rc = mknod( pathname, S_IFREG | mode, 0LL );
ffc05698: 7f a3 eb 78 mr r3,r29
ffc0569c: 63 64 80 00 ori r4,r27,32768
ffc056a0: 38 a0 00 00 li r5,0
ffc056a4: 38 c0 00 00 li r6,0
ffc056a8: 4b ff f4 3d bl ffc04ae4 <mknod>
if ( rc ) {
ffc056ac: 2f 83 00 00 cmpwi cr7,r3,0
ffc056b0: 41 9e 00 14 beq- cr7,ffc056c4 <open+0x2d8>
rc = errno;
ffc056b4: 48 00 c5 05 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc056b8: 83 43 00 00 lwz r26,0(r3) <== NOT EXECUTED
ffc056bc: 2e 1a 00 00 cmpwi cr4,r26,0 <== NOT EXECUTED
goto done;
ffc056c0: 4b ff ff 24 b ffc055e4 <open+0x1f8> <== 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 );
ffc056c4: 7f a3 eb 78 mr r3,r29
ffc056c8: 48 00 d7 ed bl ffc12eb4 <strlen>
ffc056cc: 38 a0 00 00 li r5,0
ffc056d0: 7c 64 1b 78 mr r4,r3
ffc056d4: 7f 86 e3 78 mr r6,r28
ffc056d8: 7f a3 eb 78 mr r3,r29
ffc056dc: 38 e0 00 01 li r7,1
ffc056e0: 4b ff ee 0d bl ffc044ec <rtems_filesystem_evaluate_path>
if ( status != 0 ) { /* The file did not exist */
ffc056e4: 3b 20 00 00 li r25,0
ffc056e8: 2f 83 00 00 cmpwi cr7,r3,0
ffc056ec: 3b 40 00 0d li r26,13
ffc056f0: 40 be fe 9c bne- cr7,ffc0558c <open+0x1a0>
ffc056f4: 4b ff fd b4 b ffc054a8 <open+0xbc>
*/
if ( (flags & O_TRUNC) == O_TRUNC ) {
rc = ftruncate( iop - rtems_libio_iops, 0 );
if ( rc ) {
if(errno) rc = errno;
ffc056f8: 48 00 c4 c1 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc056fc: 83 43 00 00 lwz r26,0(r3) <== NOT EXECUTED
ffc05700: 2e 1a 00 00 cmpwi cr4,r26,0 <== NOT EXECUTED
ffc05704: 4b ff ff 5c b ffc05660 <open+0x274> <== NOT EXECUTED
ffc05708: 2e 1f 00 00 cmpwi cr4,r31,0
ffc0570c: 4b ff fe 80 b ffc0558c <open+0x1a0>
ffc05354 <open_dev_console>:
/*
* This is a replaceable stub which opens the console, if present.
*/
void open_dev_console(void)
{
ffc05354: 94 21 ff f0 stwu r1,-16(r1)
ffc05358: 7c 08 02 a6 mflr r0
int stderr_fd;
/*
* Attempt to open /dev/console.
*/
if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) {
ffc0535c: 38 80 00 00 li r4,0
/*
* This is a replaceable stub which opens the console, if present.
*/
void open_dev_console(void)
{
ffc05360: 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) {
ffc05364: 3f e0 ff c2 lis r31,-62
ffc05368: 3b ff d7 28 addi r31,r31,-10456
ffc0536c: 7f e3 fb 78 mr r3,r31
/*
* This is a replaceable stub which opens the console, if present.
*/
void open_dev_console(void)
{
ffc05370: 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) {
ffc05374: 38 a0 00 00 li r5,0
ffc05378: 4c c6 31 82 crclr 4*cr1+eq
ffc0537c: 48 00 00 71 bl ffc053ec <open>
ffc05380: 2f 83 ff ff cmpwi cr7,r3,-1
ffc05384: 41 9e 00 3c beq- cr7,ffc053c0 <open_dev_console+0x6c>
/*
* 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)
ffc05388: 7f e3 fb 78 mr r3,r31
ffc0538c: 38 80 00 01 li r4,1
ffc05390: 38 a0 00 00 li r5,0
ffc05394: 4c c6 31 82 crclr 4*cr1+eq
ffc05398: 48 00 00 55 bl ffc053ec <open>
ffc0539c: 2f 83 ff ff cmpwi cr7,r3,-1
ffc053a0: 41 9e 00 34 beq- cr7,ffc053d4 <open_dev_console+0x80>
rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */
if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1)
ffc053a4: 7f e3 fb 78 mr r3,r31
ffc053a8: 38 80 00 01 li r4,1
ffc053ac: 38 a0 00 00 li r5,0
ffc053b0: 4c c6 31 82 crclr 4*cr1+eq
ffc053b4: 48 00 00 39 bl ffc053ec <open>
ffc053b8: 2f 83 ff ff cmpwi cr7,r3,-1
ffc053bc: 41 9e 00 24 beq- cr7,ffc053e0 <open_dev_console+0x8c>
rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */
}
ffc053c0: 80 01 00 14 lwz r0,20(r1)
ffc053c4: 83 e1 00 0c lwz r31,12(r1)
ffc053c8: 38 21 00 10 addi r1,r1,16
ffc053cc: 7c 08 03 a6 mtlr r0
ffc053d0: 4e 80 00 20 blr
/*
* But if we find /dev/console once, we better find it twice more
* or something is REALLY wrong.
*/
if ((stdout_fd = open("/dev/console", O_WRONLY, 0)) == -1)
rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */
ffc053d4: 3c 60 55 54 lis r3,21844 <== NOT EXECUTED
ffc053d8: 60 63 44 31 ori r3,r3,17457 <== NOT EXECUTED
ffc053dc: 48 00 3c 59 bl ffc09034 <rtems_fatal_error_occurred> <== NOT EXECUTED
if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1)
rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */
ffc053e0: 3c 60 55 54 lis r3,21844 <== NOT EXECUTED
ffc053e4: 60 63 44 32 ori r3,r3,17458 <== NOT EXECUTED
ffc053e8: 48 00 3c 4d bl ffc09034 <rtems_fatal_error_occurred> <== NOT EXECUTED
ffc060c4 <oproc>:
/*
* Handle output processing
*/
static void
oproc (unsigned char c, struct rtems_termios_tty *tty)
{
ffc060c4: 94 21 ff e8 stwu r1,-24(r1)
ffc060c8: 7c 08 02 a6 mflr r0
ffc060cc: 90 01 00 1c stw r0,28(r1)
int i;
if (tty->termios.c_oflag & OPOST) {
ffc060d0: 80 04 00 34 lwz r0,52(r4)
/*
* Handle output processing
*/
static void
oproc (unsigned char c, struct rtems_termios_tty *tty)
{
ffc060d4: 93 e1 00 14 stw r31,20(r1)
ffc060d8: 7c 9f 23 78 mr r31,r4
int i;
if (tty->termios.c_oflag & OPOST) {
ffc060dc: 70 09 00 01 andi. r9,r0,1
/*
* Handle output processing
*/
static void
oproc (unsigned char c, struct rtems_termios_tty *tty)
{
ffc060e0: 98 61 00 08 stb r3,8(r1)
int i;
if (tty->termios.c_oflag & OPOST) {
ffc060e4: 41 82 00 50 beq- ffc06134 <oproc+0x70>
switch (c) {
ffc060e8: 2f 83 00 09 cmpwi cr7,r3,9
ffc060ec: 41 9e 00 fc beq- cr7,ffc061e8 <oproc+0x124>
ffc060f0: 2b 83 00 09 cmplwi cr7,r3,9
ffc060f4: 40 9d 00 64 ble- cr7,ffc06158 <oproc+0x94>
ffc060f8: 2f 83 00 0a cmpwi cr7,r3,10
ffc060fc: 41 9e 00 7c beq- cr7,ffc06178 <oproc+0xb4>
ffc06100: 2f 83 00 0d cmpwi cr7,r3,13
ffc06104: 41 9e 00 ac beq- cr7,ffc061b0 <oproc+0xec>
if (tty->column > 0)
tty->column--;
break;
default:
if (tty->termios.c_oflag & OLCUC)
ffc06108: 70 09 00 02 andi. r9,r0,2
ffc0610c: 40 82 01 00 bne- ffc0620c <oproc+0x148>
ffc06110: 3d 20 00 00 lis r9,0
ffc06114: 80 09 26 a0 lwz r0,9888(r9)
c = toupper(c);
if (!iscntrl(c))
ffc06118: 7c 60 1a 14 add r3,r0,r3
ffc0611c: 88 03 00 01 lbz r0,1(r3)
ffc06120: 70 09 00 20 andi. r9,r0,32
ffc06124: 40 82 00 10 bne- ffc06134 <oproc+0x70>
tty->column++;
ffc06128: 81 3f 00 28 lwz r9,40(r31)
ffc0612c: 38 09 00 01 addi r0,r9,1
ffc06130: 90 1f 00 28 stw r0,40(r31)
break;
}
}
rtems_termios_puts (&c, 1, tty);
ffc06134: 7f e5 fb 78 mr r5,r31
ffc06138: 38 61 00 08 addi r3,r1,8
ffc0613c: 38 80 00 01 li r4,1
ffc06140: 4b ff fd f9 bl ffc05f38 <rtems_termios_puts>
}
ffc06144: 80 01 00 1c lwz r0,28(r1)
ffc06148: 83 e1 00 14 lwz r31,20(r1)
ffc0614c: 38 21 00 18 addi r1,r1,24
ffc06150: 7c 08 03 a6 mtlr r0
ffc06154: 4e 80 00 20 blr
oproc (unsigned char c, struct rtems_termios_tty *tty)
{
int i;
if (tty->termios.c_oflag & OPOST) {
switch (c) {
ffc06158: 2f 83 00 08 cmpwi cr7,r3,8 <== NOT EXECUTED
ffc0615c: 40 9e ff ac bne+ cr7,ffc06108 <oproc+0x44> <== NOT EXECUTED
}
tty->column += i;
break;
case '\b':
if (tty->column > 0)
ffc06160: 81 24 00 28 lwz r9,40(r4) <== NOT EXECUTED
ffc06164: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc06168: 40 bd ff cc ble- cr7,ffc06134 <oproc+0x70> <== NOT EXECUTED
tty->column--;
ffc0616c: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED
ffc06170: 91 3f 00 28 stw r9,40(r31) <== NOT EXECUTED
ffc06174: 4b ff ff c0 b ffc06134 <oproc+0x70> <== NOT EXECUTED
int i;
if (tty->termios.c_oflag & OPOST) {
switch (c) {
case '\n':
if (tty->termios.c_oflag & ONLRET)
ffc06178: 70 09 00 20 andi. r9,r0,32
ffc0617c: 41 82 00 0c beq- ffc06188 <oproc+0xc4>
tty->column = 0;
ffc06180: 39 20 00 00 li r9,0 <== NOT EXECUTED
ffc06184: 91 24 00 28 stw r9,40(r4) <== NOT EXECUTED
if (tty->termios.c_oflag & ONLCR) {
ffc06188: 70 09 00 04 andi. r9,r0,4
ffc0618c: 41 82 ff a8 beq+ ffc06134 <oproc+0x70>
rtems_termios_puts ("\r", 1, tty);
ffc06190: 3c 60 ff c2 lis r3,-62
ffc06194: 38 63 df d4 addi r3,r3,-8236
ffc06198: 38 80 00 01 li r4,1
ffc0619c: 7f e5 fb 78 mr r5,r31
ffc061a0: 4b ff fd 99 bl ffc05f38 <rtems_termios_puts>
tty->column = 0;
ffc061a4: 38 00 00 00 li r0,0
ffc061a8: 90 1f 00 28 stw r0,40(r31)
ffc061ac: 4b ff ff 88 b ffc06134 <oproc+0x70>
}
break;
case '\r':
if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))
ffc061b0: 70 09 00 10 andi. r9,r0,16 <== NOT EXECUTED
ffc061b4: 41 82 00 10 beq- ffc061c4 <oproc+0x100> <== NOT EXECUTED
ffc061b8: 81 24 00 28 lwz r9,40(r4) <== NOT EXECUTED
ffc061bc: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc061c0: 41 be ff 84 beq- cr7,ffc06144 <oproc+0x80> <== NOT EXECUTED
return;
if (tty->termios.c_oflag & OCRNL) {
ffc061c4: 70 09 00 08 andi. r9,r0,8 <== NOT EXECUTED
ffc061c8: 41 a2 ff a8 beq- ffc06170 <oproc+0xac> <== NOT EXECUTED
c = '\n';
if (tty->termios.c_oflag & ONLRET)
ffc061cc: 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';
ffc061d0: 38 00 00 0a li r0,10 <== NOT EXECUTED
ffc061d4: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED
if (tty->termios.c_oflag & ONLRET)
ffc061d8: 41 a2 ff 5c beq- ffc06134 <oproc+0x70> <== NOT EXECUTED
tty->column = 0;
ffc061dc: 38 00 00 00 li r0,0 <== NOT EXECUTED
ffc061e0: 90 1f 00 28 stw r0,40(r31) <== NOT EXECUTED
ffc061e4: 4b ff ff 50 b ffc06134 <oproc+0x70> <== NOT EXECUTED
tty->column = 0;
break;
case '\t':
i = 8 - (tty->column & 7);
if ((tty->termios.c_oflag & TABDLY) == XTABS) {
ffc061e8: 54 00 04 e8 rlwinm r0,r0,0,19,20
ffc061ec: 2f 80 18 00 cmpwi cr7,r0,6144
}
tty->column = 0;
break;
case '\t':
i = 8 - (tty->column & 7);
ffc061f0: 80 04 00 28 lwz r0,40(r4)
ffc061f4: 54 04 07 7e clrlwi r4,r0,29
ffc061f8: 20 84 00 08 subfic r4,r4,8
if ((tty->termios.c_oflag & TABDLY) == XTABS) {
ffc061fc: 41 9e 00 44 beq- cr7,ffc06240 <oproc+0x17c>
tty->column += i;
rtems_termios_puts ( " ", i, tty);
return;
}
tty->column += i;
ffc06200: 7c 84 02 14 add r4,r4,r0 <== NOT EXECUTED
ffc06204: 90 9f 00 28 stw r4,40(r31) <== NOT EXECUTED
break;
ffc06208: 4b ff ff 2c b ffc06134 <oproc+0x70> <== NOT EXECUTED
tty->column--;
break;
default:
if (tty->termios.c_oflag & OLCUC)
c = toupper(c);
ffc0620c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc06210: 80 09 26 a0 lwz r0,9888(r9) <== NOT EXECUTED
ffc06214: 7c 69 1b 78 mr r9,r3 <== NOT EXECUTED
ffc06218: 7c 60 1a 14 add r3,r0,r3 <== NOT EXECUTED
ffc0621c: 89 63 00 01 lbz r11,1(r3) <== NOT EXECUTED
ffc06220: 55 6b 07 be clrlwi r11,r11,30 <== NOT EXECUTED
ffc06224: 2f 8b 00 02 cmpwi cr7,r11,2 <== NOT EXECUTED
ffc06228: 41 9e 00 10 beq- cr7,ffc06238 <oproc+0x174> <== NOT EXECUTED
ffc0622c: 55 23 06 3e clrlwi r3,r9,24 <== NOT EXECUTED
ffc06230: 98 61 00 08 stb r3,8(r1) <== NOT EXECUTED
ffc06234: 4b ff fe e4 b ffc06118 <oproc+0x54> <== NOT EXECUTED
ffc06238: 39 29 ff e0 addi r9,r9,-32 <== NOT EXECUTED
ffc0623c: 4b ff ff f0 b ffc0622c <oproc+0x168> <== NOT EXECUTED
break;
case '\t':
i = 8 - (tty->column & 7);
if ((tty->termios.c_oflag & TABDLY) == XTABS) {
tty->column += i;
ffc06240: 7c 04 02 14 add r0,r4,r0
ffc06244: 90 1f 00 28 stw r0,40(r31)
rtems_termios_puts ( " ", i, tty);
ffc06248: 3c 60 ff c2 lis r3,-62
ffc0624c: 38 63 df d8 addi r3,r3,-8232
ffc06250: 7f e5 fb 78 mr r5,r31
ffc06254: 4b ff fc e5 bl ffc05f38 <rtems_termios_puts>
return;
ffc06258: 4b ff fe ec b ffc06144 <oproc+0x80>
ffc1153c <pipe_create>:
* Called by pipe() to create an anonymous pipe.
*/
int pipe_create(
int filsdes[2]
)
{
ffc1153c: 94 21 ff b8 stwu r1,-72(r1)
ffc11540: 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)
ffc11544: 38 80 00 03 li r4,3
* Called by pipe() to create an anonymous pipe.
*/
int pipe_create(
int filsdes[2]
)
{
ffc11548: 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)
ffc1154c: 3f c0 ff c2 lis r30,-62
ffc11550: 3b de e3 f0 addi r30,r30,-7184
* Called by pipe() to create an anonymous pipe.
*/
int pipe_create(
int filsdes[2]
)
{
ffc11554: 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)
ffc11558: 3b e1 00 18 addi r31,r1,24
ffc1155c: 38 a0 00 07 li r5,7
* Called by pipe() to create an anonymous pipe.
*/
int pipe_create(
int filsdes[2]
)
{
ffc11560: 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)
ffc11564: 7f e6 fb 78 mr r6,r31
* Called by pipe() to create an anonymous pipe.
*/
int pipe_create(
int filsdes[2]
)
{
ffc11568: 7c 7d 1b 78 mr r29,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)
ffc1156c: 38 e0 00 01 li r7,1
* Called by pipe() to create an anonymous pipe.
*/
int pipe_create(
int filsdes[2]
)
{
ffc11570: 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)
ffc11574: 7f c3 f3 78 mr r3,r30
ffc11578: 4b ff 2f 75 bl ffc044ec <rtems_filesystem_evaluate_path>
ffc1157c: 2f 83 00 00 cmpwi cr7,r3,0
ffc11580: 40 9e 01 38 bne- cr7,ffc116b8 <pipe_create+0x17c>
return -1;
if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0)
return -1;
}
else
rtems_filesystem_freenode(&loc);
ffc11584: 81 21 00 24 lwz r9,36(r1) <== NOT EXECUTED
ffc11588: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc1158c: 41 9e 00 1c beq- cr7,ffc115a8 <pipe_create+0x6c> <== NOT EXECUTED
ffc11590: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc11594: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc11598: 41 9e 00 10 beq- cr7,ffc115a8 <pipe_create+0x6c> <== NOT EXECUTED
ffc1159c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc115a0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc115a4: 4e 80 04 21 bctrl <== NOT EXECUTED
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
ffc115a8: 3d 20 00 00 lis r9,0
else
rtems_filesystem_freenode(&loc);
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
ffc115ac: 3d 40 ff c2 lis r10,-62
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
ffc115b0: a1 09 27 b0 lhz r8,10160(r9)
else
rtems_filesystem_freenode(&loc);
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
ffc115b4: 39 6a e3 f8 addi r11,r10,-7176
ffc115b8: 81 4a e3 f8 lwz r10,-7176(r10)
ffc115bc: a0 0b 00 08 lhz r0,8(r11)
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
ffc115c0: 3c 80 ff c2 lis r4,-62
else
rtems_filesystem_freenode(&loc);
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
ffc115c4: 81 6b 00 04 lwz r11,4(r11)
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
ffc115c8: 7d 05 43 78 mr r5,r8
ffc115cc: 38 84 e4 04 addi r4,r4,-7164
else
rtems_filesystem_freenode(&loc);
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
ffc115d0: 91 41 00 08 stw r10,8(r1)
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
ffc115d4: 39 08 00 01 addi r8,r8,1
ffc115d8: 38 61 00 12 addi r3,r1,18
ffc115dc: b1 09 27 b0 sth r8,10160(r9)
/* Try creating FIFO file until find an available file name */
while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {
ffc115e0: 3b e1 00 08 addi r31,r1,8
else
rtems_filesystem_freenode(&loc);
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
ffc115e4: 91 61 00 0c stw r11,12(r1)
ffc115e8: b0 01 00 10 sth r0,16(r1)
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
ffc115ec: 4c c6 31 82 crclr 4*cr1+eq
ffc115f0: 48 00 14 91 bl ffc12a80 <sprintf>
/* Try creating FIFO file until find an available file name */
while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {
ffc115f4: 7f e3 fb 78 mr r3,r31
ffc115f8: 38 80 01 80 li r4,384
ffc115fc: 48 00 01 99 bl ffc11794 <mkfifo>
ffc11600: 2f 83 00 00 cmpwi cr7,r3,0
ffc11604: 40 9e 00 90 bne- cr7,ffc11694 <pipe_create+0x158>
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);
ffc11608: 7f e3 fb 78 mr r3,r31
ffc1160c: 38 80 40 00 li r4,16384
ffc11610: 4c c6 31 82 crclr 4*cr1+eq
ffc11614: 4b ff 3d d9 bl ffc053ec <open>
if (filsdes[0] < 0) {
ffc11618: 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);
ffc1161c: 90 7d 00 00 stw r3,0(r29)
if (filsdes[0] < 0) {
ffc11620: 41 9c 00 d4 blt- cr7,ffc116f4 <pipe_create+0x1b8>
the file node will be deleted after it is closed by all. */
unlink(fifopath);
}
else {
/* Reset open file to blocking mode */
iop = rtems_libio_iop(filsdes[0]);
ffc11624: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc11628: 80 09 26 4c lwz r0,9804(r9) <== NOT EXECUTED
ffc1162c: 39 20 00 00 li r9,0 <== NOT EXECUTED
ffc11630: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED
ffc11634: 41 9c 00 ac blt- cr7,ffc116e0 <pipe_create+0x1a4> <== NOT EXECUTED
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
ffc11638: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED
filsdes[1] = open(fifopath, O_WRONLY);
ffc1163c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc11640: 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;
ffc11644: 54 00 00 3c rlwinm r0,r0,0,0,30 <== NOT EXECUTED
ffc11648: 90 09 00 18 stw r0,24(r9) <== NOT EXECUTED
filsdes[1] = open(fifopath, O_WRONLY);
if (filsdes[1] < 0) {
ffc1164c: 3b c0 00 00 li r30,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);
ffc11650: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc11654: 4b ff 3d 99 bl ffc053ec <open> <== NOT EXECUTED
if (filsdes[1] < 0) {
ffc11658: 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);
ffc1165c: 90 7d 00 04 stw r3,4(r29) <== NOT EXECUTED
if (filsdes[1] < 0) {
ffc11660: 41 9c 00 a8 blt- cr7,ffc11708 <pipe_create+0x1cc> <== NOT EXECUTED
err = errno;
close(filsdes[0]);
}
unlink(fifopath);
ffc11664: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc11668: 48 00 01 59 bl ffc117c0 <unlink> <== NOT EXECUTED
}
rtems_set_errno_and_return_minus_one(err);
ffc1166c: 48 00 05 4d bl ffc11bb8 <__errno>
}
ffc11670: 80 01 00 4c lwz r0,76(r1)
close(filsdes[0]);
}
unlink(fifopath);
}
rtems_set_errno_and_return_minus_one(err);
ffc11674: 93 c3 00 00 stw r30,0(r3)
}
ffc11678: 38 60 ff ff li r3,-1
ffc1167c: 7c 08 03 a6 mtlr r0
ffc11680: 83 a1 00 3c lwz r29,60(r1)
ffc11684: 83 c1 00 40 lwz r30,64(r1)
ffc11688: 83 e1 00 44 lwz r31,68(r1)
ffc1168c: 38 21 00 48 addi r1,r1,72
ffc11690: 4e 80 00 20 blr
memcpy(fifopath, "/tmp/.fifo", 10);
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
/* Try creating FIFO file until find an available file name */
while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {
if (errno != EEXIST){
ffc11694: 48 00 05 25 bl ffc11bb8 <__errno> <== NOT EXECUTED
}
unlink(fifopath);
}
rtems_set_errno_and_return_minus_one(err);
}
ffc11698: 80 01 00 4c lwz r0,76(r1) <== NOT EXECUTED
ffc1169c: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc116a0: 83 a1 00 3c lwz r29,60(r1) <== NOT EXECUTED
ffc116a4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc116a8: 83 c1 00 40 lwz r30,64(r1) <== NOT EXECUTED
ffc116ac: 83 e1 00 44 lwz r31,68(r1) <== NOT EXECUTED
ffc116b0: 38 21 00 48 addi r1,r1,72 <== NOT EXECUTED
ffc116b4: 4e 80 00 20 blr <== NOT EXECUTED
rtems_libio_t *iop;
int err = 0;
/* Create /tmp if not exists */
if (rtems_filesystem_evaluate_path("/tmp", 3, RTEMS_LIBIO_PERMS_RWX, &loc, TRUE)
!= 0) {
if (errno != ENOENT)
ffc116b8: 48 00 05 01 bl ffc11bb8 <__errno>
ffc116bc: 80 03 00 00 lwz r0,0(r3)
ffc116c0: 2f 80 00 02 cmpwi cr7,r0,2
ffc116c4: 40 9e ff d4 bne+ cr7,ffc11698 <pipe_create+0x15c>
return -1;
if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0)
ffc116c8: 7f c3 f3 78 mr r3,r30
ffc116cc: 38 80 03 ff li r4,1023
ffc116d0: 4b ff 33 e9 bl ffc04ab8 <mkdir>
ffc116d4: 2f 83 00 00 cmpwi cr7,r3,0
ffc116d8: 41 9e fe d0 beq+ cr7,ffc115a8 <pipe_create+0x6c>
ffc116dc: 4b ff ff bc b ffc11698 <pipe_create+0x15c> <== NOT EXECUTED
the file node will be deleted after it is closed by all. */
unlink(fifopath);
}
else {
/* Reset open file to blocking mode */
iop = rtems_libio_iop(filsdes[0]);
ffc116e0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc116e4: 1c 63 00 48 mulli r3,r3,72 <== NOT EXECUTED
ffc116e8: 81 29 27 08 lwz r9,9992(r9) <== NOT EXECUTED
ffc116ec: 7d 29 1a 14 add r9,r9,r3 <== NOT EXECUTED
ffc116f0: 4b ff ff 48 b ffc11638 <pipe_create+0xfc> <== NOT EXECUTED
}
/* Non-blocking open to avoid waiting for writers */
filsdes[0] = open(fifopath, O_RDONLY | O_NONBLOCK);
if (filsdes[0] < 0) {
err = errno;
ffc116f4: 48 00 04 c5 bl ffc11bb8 <__errno>
ffc116f8: 83 c3 00 00 lwz r30,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);
ffc116fc: 7f e3 fb 78 mr r3,r31
ffc11700: 48 00 00 c1 bl ffc117c0 <unlink>
ffc11704: 4b ff ff 68 b ffc1166c <pipe_create+0x130>
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
filsdes[1] = open(fifopath, O_WRONLY);
if (filsdes[1] < 0) {
err = errno;
ffc11708: 48 00 04 b1 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc1170c: 83 c3 00 00 lwz r30,0(r3) <== NOT EXECUTED
close(filsdes[0]);
ffc11710: 80 7d 00 00 lwz r3,0(r29) <== NOT EXECUTED
ffc11714: 4b ff c9 dd bl ffc0e0f0 <close> <== NOT EXECUTED
ffc11718: 4b ff ff 4c b ffc11664 <pipe_create+0x128> <== NOT EXECUTED
ffc0fc34 <pipe_ioctl>:
pipe_control_t *pipe,
uint32_t cmd,
void *buffer,
rtems_libio_t *iop
)
{
ffc0fc34: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED
ffc0fc38: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc0fc3c: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED
if (cmd == FIONREAD) {
ffc0fc40: 3c 00 40 04 lis r0,16388 <== NOT EXECUTED
ffc0fc44: 60 00 66 7f ori r0,r0,26239 <== NOT EXECUTED
ffc0fc48: 7f 84 00 00 cmpw cr7,r4,r0 <== NOT EXECUTED
pipe_control_t *pipe,
uint32_t cmd,
void *buffer,
rtems_libio_t *iop
)
{
ffc0fc4c: 93 c1 00 08 stw r30,8(r1) <== NOT EXECUTED
ffc0fc50: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED
ffc0fc54: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED
if (cmd == FIONREAD) {
ffc0fc58: 38 60 ff ea li r3,-22 <== NOT EXECUTED
pipe_control_t *pipe,
uint32_t cmd,
void *buffer,
rtems_libio_t *iop
)
{
ffc0fc5c: 7c bf 2b 78 mr r31,r5 <== NOT EXECUTED
if (cmd == FIONREAD) {
ffc0fc60: 41 9e 00 1c beq- cr7,ffc0fc7c <pipe_ioctl+0x48> <== NOT EXECUTED
PIPE_UNLOCK(pipe);
return 0;
}
return -EINVAL;
}
ffc0fc64: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc0fc68: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED
ffc0fc6c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0fc70: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc0fc74: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc0fc78: 4e 80 00 20 blr <== NOT EXECUTED
void *buffer,
rtems_libio_t *iop
)
{
if (cmd == FIONREAD) {
if (buffer == NULL)
ffc0fc7c: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED
ffc0fc80: 38 60 ff f2 li r3,-14 <== NOT EXECUTED
ffc0fc84: 41 9e ff e0 beq+ cr7,ffc0fc64 <pipe_ioctl+0x30> <== NOT EXECUTED
return -EFAULT;
if (! PIPE_LOCK(pipe))
ffc0fc88: 80 7e 00 28 lwz r3,40(r30) <== NOT EXECUTED
ffc0fc8c: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc0fc90: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc0fc94: 4b ff 8a 7d bl ffc08710 <rtems_semaphore_obtain> <== NOT EXECUTED
ffc0fc98: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc0fc9c: 38 60 ff fc li r3,-4 <== NOT EXECUTED
ffc0fca0: 40 9e ff c4 bne+ cr7,ffc0fc64 <pipe_ioctl+0x30> <== NOT EXECUTED
return -EINTR;
/* Return length of pipe */
*(uint *)buffer = pipe->Length;
ffc0fca4: 80 1e 00 0c lwz r0,12(r30) <== NOT EXECUTED
PIPE_UNLOCK(pipe);
ffc0fca8: 80 7e 00 28 lwz r3,40(r30) <== NOT EXECUTED
if (! PIPE_LOCK(pipe))
return -EINTR;
/* Return length of pipe */
*(uint *)buffer = pipe->Length;
ffc0fcac: 90 1f 00 00 stw r0,0(r31) <== NOT EXECUTED
PIPE_UNLOCK(pipe);
ffc0fcb0: 4b ff 8b c1 bl ffc08870 <rtems_semaphore_release> <== NOT EXECUTED
ffc0fcb4: 38 60 00 00 li r3,0 <== NOT EXECUTED
return 0;
ffc0fcb8: 4b ff ff ac b ffc0fc64 <pipe_ioctl+0x30> <== NOT EXECUTED
ffc0fbac <pipe_lseek>:
rtems_libio_t *iop
)
{
/* Seek on pipe is not supported */
return -ESPIPE;
}
ffc0fbac: 38 60 ff e3 li r3,-29 <== NOT EXECUTED
ffc0fbb0: 4e 80 00 20 blr <== NOT EXECUTED
ffc0ff2c <pipe_read>:
pipe_control_t *pipe,
void *buffer,
size_t count,
rtems_libio_t *iop
)
{
ffc0ff2c: 94 21 ff c0 stwu r1,-64(r1) <== NOT EXECUTED
ffc0ff30: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc0ff34: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED
ffc0ff38: 93 e1 00 3c stw r31,60(r1) <== NOT EXECUTED
ffc0ff3c: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
ffc0ff40: 80 63 00 28 lwz r3,40(r3) <== NOT EXECUTED
pipe_control_t *pipe,
void *buffer,
size_t count,
rtems_libio_t *iop
)
{
ffc0ff44: 93 a1 00 34 stw r29,52(r1) <== NOT EXECUTED
ffc0ff48: 7c 9d 23 78 mr r29,r4 <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
ffc0ff4c: 38 80 00 00 li r4,0 <== NOT EXECUTED
pipe_control_t *pipe,
void *buffer,
size_t count,
rtems_libio_t *iop
)
{
ffc0ff50: 93 c1 00 38 stw r30,56(r1) <== NOT EXECUTED
ffc0ff54: 7c be 2b 78 mr r30,r5 <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
ffc0ff58: 38 a0 00 00 li r5,0 <== NOT EXECUTED
pipe_control_t *pipe,
void *buffer,
size_t count,
rtems_libio_t *iop
)
{
ffc0ff5c: 93 41 00 28 stw r26,40(r1) <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
ffc0ff60: 3b 40 ff fc li r26,-4 <== NOT EXECUTED
pipe_control_t *pipe,
void *buffer,
size_t count,
rtems_libio_t *iop
)
{
ffc0ff64: 93 61 00 2c stw r27,44(r1) <== NOT EXECUTED
ffc0ff68: 7c db 33 78 mr r27,r6 <== NOT EXECUTED
ffc0ff6c: 92 e1 00 1c stw r23,28(r1) <== NOT EXECUTED
ffc0ff70: 93 01 00 20 stw r24,32(r1) <== NOT EXECUTED
ffc0ff74: 93 21 00 24 stw r25,36(r1) <== NOT EXECUTED
ffc0ff78: 93 81 00 30 stw r28,48(r1) <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
ffc0ff7c: 4b ff 87 95 bl ffc08710 <rtems_semaphore_obtain> <== NOT EXECUTED
ffc0ff80: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc0ff84: 40 9e 00 ac bne- cr7,ffc10030 <pipe_read+0x104> <== NOT EXECUTED
return -EINTR;
while (read < count) {
ffc0ff88: 2f 9e 00 00 cmpwi cr7,r30,0 <== NOT EXECUTED
/* WARN waitingReaders not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingReaders --;
if (ret != 0)
ffc0ff8c: 3b 20 00 00 li r25,0 <== NOT EXECUTED
ffc0ff90: 3b 40 00 00 li r26,0 <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
return -EINTR;
while (read < count) {
ffc0ff94: 3b 80 00 00 li r28,0 <== NOT EXECUTED
ffc0ff98: 41 9e 00 88 beq- cr7,ffc10020 <pipe_read+0xf4> <== NOT EXECUTED
/* For buffering optimization */
if (PIPE_EMPTY(pipe))
pipe->Start = 0;
if (pipe->waitingWriters > 0)
PIPE_WAKEUPWRITERS(pipe);
ffc0ff9c: 3b 01 00 08 addi r24,r1,8 <== NOT EXECUTED
if (! PIPE_LOCK(pipe))
return -EINTR;
while (read < count) {
while (PIPE_EMPTY(pipe)) {
ffc0ffa0: 83 9f 00 0c lwz r28,12(r31) <== NOT EXECUTED
ffc0ffa4: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED
ffc0ffa8: 40 9e 00 fc bne- cr7,ffc100a4 <pipe_read+0x178> <== NOT EXECUTED
/* Not an error */
if (pipe->Writers == 0)
ffc0ffac: 80 1f 00 14 lwz r0,20(r31) <== NOT EXECUTED
ffc0ffb0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0ffb4: 41 9e 01 78 beq- cr7,ffc1012c <pipe_read+0x200> <== NOT EXECUTED
goto out_locked;
if (LIBIO_NODELAY(iop)) {
ffc0ffb8: 80 1b 00 18 lwz r0,24(r27) <== NOT EXECUTED
ffc0ffbc: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED
ffc0ffc0: 40 82 01 74 bne- ffc10134 <pipe_read+0x208> <== NOT EXECUTED
ret = -EAGAIN;
goto out_locked;
}
/* Wait until pipe is no more empty or no writer exists */
pipe->waitingReaders ++;
ffc0ffc4: 81 3f 00 18 lwz r9,24(r31) <== NOT EXECUTED
PIPE_UNLOCK(pipe);
ffc0ffc8: 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 ++;
ffc0ffcc: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED
ffc0ffd0: 90 1f 00 18 stw r0,24(r31) <== NOT EXECUTED
PIPE_UNLOCK(pipe);
ffc0ffd4: 4b ff 88 9d bl ffc08870 <rtems_semaphore_release> <== NOT EXECUTED
if (! PIPE_READWAIT(pipe))
ffc0ffd8: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED
ffc0ffdc: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc0ffe0: 48 00 0e 01 bl ffc10de0 <rtems_barrier_wait> <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
ffc0ffe4: 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))
ffc0ffe8: 33 83 ff ff addic r28,r3,-1 <== NOT EXECUTED
ffc0ffec: 7f 9c e1 10 subfe r28,r28,r28 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
ffc0fff0: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED
ffc0fff4: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc0fff8: 4b ff 87 19 bl ffc08710 <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))
ffc0fffc: 57 9c 07 7a rlwinm r28,r28,0,29,29 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
ffc10000: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
}
/* Wait until pipe is no more empty or no writer exists */
pipe->waitingReaders ++;
PIPE_UNLOCK(pipe);
if (! PIPE_READWAIT(pipe))
ffc10004: 3b 9c ff fc addi r28,r28,-4 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
ffc10008: 40 9e 01 34 bne- cr7,ffc1013c <pipe_read+0x210> <== NOT EXECUTED
/* WARN waitingReaders not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingReaders --;
if (ret != 0)
ffc1000c: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED
if (! PIPE_LOCK(pipe)) {
/* WARN waitingReaders not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingReaders --;
ffc10010: 81 3f 00 18 lwz r9,24(r31) <== NOT EXECUTED
ffc10014: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED
ffc10018: 90 1f 00 18 stw r0,24(r31) <== NOT EXECUTED
if (ret != 0)
ffc1001c: 41 9e ff 84 beq+ cr7,ffc0ffa0 <pipe_read+0x74> <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
read += chunk;
}
out_locked:
PIPE_UNLOCK(pipe);
ffc10020: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED
ffc10024: 4b ff 88 4d bl ffc08870 <rtems_semaphore_release> <== NOT EXECUTED
out_nolock:
if (read > 0)
ffc10028: 2f 9a 00 00 cmpwi cr7,r26,0 <== NOT EXECUTED
ffc1002c: 40 9d 00 3c ble- cr7,ffc10068 <pipe_read+0x13c> <== NOT EXECUTED
return read;
return ret;
}
ffc10030: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED
ffc10034: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED
ffc10038: 82 e1 00 1c lwz r23,28(r1) <== NOT EXECUTED
ffc1003c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc10040: 83 01 00 20 lwz r24,32(r1) <== NOT EXECUTED
ffc10044: 83 21 00 24 lwz r25,36(r1) <== NOT EXECUTED
ffc10048: 83 41 00 28 lwz r26,40(r1) <== NOT EXECUTED
ffc1004c: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED
ffc10050: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED
ffc10054: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED
ffc10058: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED
ffc1005c: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED
ffc10060: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED
ffc10064: 4e 80 00 20 blr <== NOT EXECUTED
ffc10068: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED
out_locked:
PIPE_UNLOCK(pipe);
out_nolock:
if (read > 0)
ffc1006c: 7f 9a e3 78 mr r26,r28 <== NOT EXECUTED
return read;
return ret;
}
ffc10070: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED
ffc10074: 82 e1 00 1c lwz r23,28(r1) <== NOT EXECUTED
ffc10078: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc1007c: 83 01 00 20 lwz r24,32(r1) <== NOT EXECUTED
ffc10080: 83 21 00 24 lwz r25,36(r1) <== NOT EXECUTED
ffc10084: 83 41 00 28 lwz r26,40(r1) <== NOT EXECUTED
ffc10088: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED
ffc1008c: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED
ffc10090: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED
ffc10094: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED
ffc10098: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED
ffc1009c: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED
ffc100a0: 4e 80 00 20 blr <== NOT EXECUTED
if (ret != 0)
goto out_locked;
}
/* Read chunk bytes */
chunk = MIN(count - read, pipe->Length);
ffc100a4: 7c 19 f0 50 subf r0,r25,r30 <== NOT EXECUTED
ffc100a8: 7f 9c 00 40 cmplw cr7,r28,r0 <== NOT EXECUTED
ffc100ac: 40 9d 00 08 ble- cr7,ffc100b4 <pipe_read+0x188> <== NOT EXECUTED
ffc100b0: 7c 1c 03 78 mr r28,r0 <== NOT EXECUTED
chunk1 = pipe->Size - pipe->Start;
ffc100b4: 80 1f 00 08 lwz r0,8(r31) <== NOT EXECUTED
ffc100b8: 82 ff 00 04 lwz r23,4(r31) <== NOT EXECUTED
ffc100bc: 7e e0 b8 50 subf r23,r0,r23 <== NOT EXECUTED
if (chunk > chunk1) {
ffc100c0: 7f 9c b8 00 cmpw cr7,r28,r23 <== NOT EXECUTED
ffc100c4: 41 9d 00 80 bgt- cr7,ffc10144 <pipe_read+0x218> <== NOT EXECUTED
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);
memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);
}
else
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);
ffc100c8: 80 9f 00 00 lwz r4,0(r31) <== NOT EXECUTED
ffc100cc: 7c 7d ca 14 add r3,r29,r25 <== NOT EXECUTED
ffc100d0: 7f 85 e3 78 mr r5,r28 <== NOT EXECUTED
ffc100d4: 7c 84 02 14 add r4,r4,r0 <== NOT EXECUTED
ffc100d8: 48 00 26 c9 bl ffc127a0 <memcpy> <== NOT EXECUTED
pipe->Start += chunk;
ffc100dc: 81 3f 00 08 lwz r9,8(r31) <== NOT EXECUTED
pipe->Start %= pipe->Size;
ffc100e0: 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;
ffc100e4: 7d 3c 4a 14 add r9,r28,r9 <== NOT EXECUTED
pipe->Start %= pipe->Size;
pipe->Length -= chunk;
ffc100e8: 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;
ffc100ec: 7d 49 5b 96 divwu r10,r9,r11 <== NOT EXECUTED
pipe->Length -= chunk;
ffc100f0: 7c 1c 00 50 subf r0,r28,r0 <== NOT EXECUTED
/* For buffering optimization */
if (PIPE_EMPTY(pipe))
ffc100f4: 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;
ffc100f8: 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;
ffc100fc: 7d 6a 59 d6 mullw r11,r10,r11 <== NOT EXECUTED
ffc10100: 7d 2b 48 50 subf r9,r11,r9 <== NOT EXECUTED
ffc10104: 91 3f 00 08 stw r9,8(r31) <== NOT EXECUTED
pipe->Length -= chunk;
/* For buffering optimization */
if (PIPE_EMPTY(pipe))
ffc10108: 40 9e 00 08 bne- cr7,ffc10110 <pipe_read+0x1e4> <== NOT EXECUTED
pipe->Start = 0;
ffc1010c: 90 1f 00 08 stw r0,8(r31) <== NOT EXECUTED
if (pipe->waitingWriters > 0)
ffc10110: 80 1f 00 1c lwz r0,28(r31) <== NOT EXECUTED
ffc10114: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc10118: 40 9e 00 58 bne- cr7,ffc10170 <pipe_read+0x244> <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
read += chunk;
ffc1011c: 7f 5a e2 14 add r26,r26,r28 <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
return -EINTR;
while (read < count) {
ffc10120: 7f 9a f0 40 cmplw cr7,r26,r30 <== NOT EXECUTED
ffc10124: 7f 59 d3 78 mr r25,r26 <== NOT EXECUTED
ffc10128: 41 9c fe 78 blt+ cr7,ffc0ffa0 <pipe_read+0x74> <== NOT EXECUTED
ffc1012c: 3b 80 00 00 li r28,0 <== NOT EXECUTED
ffc10130: 4b ff fe f0 b ffc10020 <pipe_read+0xf4> <== NOT EXECUTED
while (PIPE_EMPTY(pipe)) {
/* Not an error */
if (pipe->Writers == 0)
goto out_locked;
if (LIBIO_NODELAY(iop)) {
ffc10134: 3b 80 ff f5 li r28,-11 <== NOT EXECUTED
ffc10138: 4b ff fe e8 b ffc10020 <pipe_read+0xf4> <== 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)) {
ffc1013c: 3b 80 ff fc li r28,-4 <== NOT EXECUTED
ffc10140: 4b ff fe e8 b ffc10028 <pipe_read+0xfc> <== NOT EXECUTED
/* Read chunk bytes */
chunk = MIN(count - read, pipe->Length);
chunk1 = pipe->Size - pipe->Start;
if (chunk > chunk1) {
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);
ffc10144: 80 9f 00 00 lwz r4,0(r31) <== NOT EXECUTED
ffc10148: 7e e5 bb 78 mr r5,r23 <== NOT EXECUTED
ffc1014c: 7c 7d ca 14 add r3,r29,r25 <== NOT EXECUTED
ffc10150: 7c 84 02 14 add r4,r4,r0 <== NOT EXECUTED
ffc10154: 48 00 26 4d bl ffc127a0 <memcpy> <== NOT EXECUTED
memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);
ffc10158: 7c 79 ba 14 add r3,r25,r23 <== NOT EXECUTED
ffc1015c: 80 9f 00 00 lwz r4,0(r31) <== NOT EXECUTED
ffc10160: 7c 7d 1a 14 add r3,r29,r3 <== NOT EXECUTED
ffc10164: 7c b7 e0 50 subf r5,r23,r28 <== NOT EXECUTED
ffc10168: 48 00 26 39 bl ffc127a0 <memcpy> <== NOT EXECUTED
ffc1016c: 4b ff ff 70 b ffc100dc <pipe_read+0x1b0> <== NOT EXECUTED
/* For buffering optimization */
if (PIPE_EMPTY(pipe))
pipe->Start = 0;
if (pipe->waitingWriters > 0)
PIPE_WAKEUPWRITERS(pipe);
ffc10170: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED
ffc10174: 7f 04 c3 78 mr r4,r24 <== NOT EXECUTED
ffc10178: 48 00 0b d1 bl ffc10d48 <rtems_barrier_release> <== NOT EXECUTED
ffc1017c: 4b ff ff a0 b ffc1011c <pipe_read+0x1f0> <== NOT EXECUTED
ffc10180 <pipe_release>:
*/
int pipe_release(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
ffc10180: 94 21 ff d0 stwu r1,-48(r1) <== NOT EXECUTED
ffc10184: 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,
ffc10188: 38 a0 00 00 li r5,0 <== NOT EXECUTED
*/
int pipe_release(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
ffc1018c: 90 01 00 34 stw r0,52(r1) <== NOT EXECUTED
ffc10190: 93 e1 00 2c stw r31,44(r1) <== NOT EXECUTED
pipe_control_t *pipe = *pipep;
ffc10194: 83 e3 00 00 lwz r31,0(r3) <== NOT EXECUTED
*/
int pipe_release(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
ffc10198: 93 81 00 20 stw r28,32(r1) <== NOT EXECUTED
ffc1019c: 7c 7c 1b 78 mr r28,r3 <== NOT EXECUTED
pipe_control_t *pipe = *pipep;
uint32_t mode;
rtems_status_code sc;
sc = rtems_semaphore_obtain(pipe->Semaphore,
ffc101a0: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED
*/
int pipe_release(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
ffc101a4: 93 c1 00 28 stw r30,40(r1) <== NOT EXECUTED
ffc101a8: 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,
ffc101ac: 38 80 00 00 li r4,0 <== NOT EXECUTED
*/
int pipe_release(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
ffc101b0: 93 61 00 1c stw r27,28(r1) <== NOT EXECUTED
ffc101b4: 93 a1 00 24 stw r29,36(r1) <== NOT EXECUTED
pipe_control_t *pipe = *pipep;
uint32_t mode;
rtems_status_code sc;
sc = rtems_semaphore_obtain(pipe->Semaphore,
ffc101b8: 4b ff 85 59 bl ffc08710 <rtems_semaphore_obtain> <== NOT EXECUTED
RTEMS_WAIT, RTEMS_NO_TIMEOUT);
/* WARN pipe not released! */
if(sc != RTEMS_SUCCESSFUL)
ffc101bc: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc101c0: 40 9e 01 64 bne- cr7,ffc10324 <pipe_release+0x1a4> <== NOT EXECUTED
rtems_fatal_error_occurred(sc);
mode = LIBIO_ACCMODE(iop);
ffc101c4: 83 be 00 18 lwz r29,24(r30) <== NOT EXECUTED
if (mode & LIBIO_FLAGS_READ)
ffc101c8: 73 a0 00 02 andi. r0,r29,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);
ffc101cc: 57 bd 07 7c rlwinm r29,r29,0,29,30 <== NOT EXECUTED
if (mode & LIBIO_FLAGS_READ)
ffc101d0: 41 82 00 10 beq- ffc101e0 <pipe_release+0x60> <== NOT EXECUTED
pipe->Readers --;
ffc101d4: 81 3f 00 10 lwz r9,16(r31) <== NOT EXECUTED
ffc101d8: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED
ffc101dc: 90 1f 00 10 stw r0,16(r31) <== NOT EXECUTED
if (mode & LIBIO_FLAGS_WRITE)
ffc101e0: 73 a0 00 04 andi. r0,r29,4 <== NOT EXECUTED
ffc101e4: 40 82 00 84 bne- ffc10268 <pipe_release+0xe8> <== NOT EXECUTED
pipe->Writers --;
sc = rtems_semaphore_obtain(rtems_pipe_semaphore,
ffc101e8: 3f c0 00 00 lis r30,0 <== NOT EXECUTED
ffc101ec: 80 7e 28 fc lwz r3,10492(r30) <== NOT EXECUTED
ffc101f0: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc101f4: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc101f8: 4b ff 85 19 bl ffc08710 <rtems_semaphore_obtain> <== NOT EXECUTED
RTEMS_WAIT, RTEMS_NO_TIMEOUT);
/* WARN pipe not freed and pipep not set to NULL! */
if(sc != RTEMS_SUCCESSFUL)
ffc101fc: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc10200: 40 9e 01 24 bne- cr7,ffc10324 <pipe_release+0x1a4> <== NOT EXECUTED
rtems_fatal_error_occurred(sc);
PIPE_UNLOCK(pipe);
ffc10204: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED
ffc10208: 4b ff 86 69 bl ffc08870 <rtems_semaphore_release> <== NOT EXECUTED
if (pipe->Readers == 0 && pipe->Writers == 0) {
ffc1020c: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED
ffc10210: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc10214: 40 9e 00 64 bne- cr7,ffc10278 <pipe_release+0xf8> <== NOT EXECUTED
ffc10218: 83 7f 00 14 lwz r27,20(r31) <== NOT EXECUTED
ffc1021c: 2f 9b 00 00 cmpwi cr7,r27,0 <== NOT EXECUTED
ffc10220: 41 9e 00 a8 beq- cr7,ffc102c8 <pipe_release+0x148> <== NOT EXECUTED
delfile = TRUE;
#endif
pipe_free(pipe);
*pipep = NULL;
}
else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)
ffc10224: 2f 9d 00 04 cmpwi cr7,r29,4 <== NOT EXECUTED
ffc10228: 41 be 00 10 beq+ cr7,ffc10238 <pipe_release+0xb8> <== NOT EXECUTED
/* Notify waiting Writers that all their partners left */
PIPE_WAKEUPWRITERS(pipe);
ffc1022c: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED
ffc10230: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED
ffc10234: 48 00 0b 15 bl ffc10d48 <rtems_barrier_release> <== NOT EXECUTED
else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ)
PIPE_WAKEUPREADERS(pipe);
rtems_semaphore_release(rtems_pipe_semaphore);
ffc10238: 80 7e 28 fc lwz r3,10492(r30) <== NOT EXECUTED
ffc1023c: 4b ff 86 35 bl ffc08870 <rtems_semaphore_release> <== NOT EXECUTED
if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))
return -errno;
#endif
return 0;
}
ffc10240: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED
ffc10244: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc10248: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED
ffc1024c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc10250: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED
ffc10254: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED
ffc10258: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED
ffc1025c: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED
ffc10260: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED
ffc10264: 4e 80 00 20 blr <== NOT EXECUTED
mode = LIBIO_ACCMODE(iop);
if (mode & LIBIO_FLAGS_READ)
pipe->Readers --;
if (mode & LIBIO_FLAGS_WRITE)
pipe->Writers --;
ffc10268: 81 3f 00 14 lwz r9,20(r31) <== NOT EXECUTED
ffc1026c: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED
ffc10270: 90 1f 00 14 stw r0,20(r31) <== NOT EXECUTED
ffc10274: 4b ff ff 74 b ffc101e8 <pipe_release+0x68> <== NOT EXECUTED
*pipep = NULL;
}
else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)
/* Notify waiting Writers that all their partners left */
PIPE_WAKEUPWRITERS(pipe);
else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ)
ffc10278: 80 1f 00 14 lwz r0,20(r31) <== NOT EXECUTED
ffc1027c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc10280: 40 be ff b8 bne- cr7,ffc10238 <pipe_release+0xb8> <== NOT EXECUTED
ffc10284: 2f 9d 00 02 cmpwi cr7,r29,2 <== NOT EXECUTED
ffc10288: 41 be ff b0 beq- cr7,ffc10238 <pipe_release+0xb8> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
ffc1028c: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED
ffc10290: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED
ffc10294: 48 00 0a b5 bl ffc10d48 <rtems_barrier_release> <== NOT EXECUTED
rtems_semaphore_release(rtems_pipe_semaphore);
ffc10298: 80 7e 28 fc lwz r3,10492(r30) <== NOT EXECUTED
ffc1029c: 4b ff 85 d5 bl ffc08870 <rtems_semaphore_release> <== NOT EXECUTED
if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))
return -errno;
#endif
return 0;
}
ffc102a0: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED
ffc102a4: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc102a8: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED
ffc102ac: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc102b0: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED
ffc102b4: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED
ffc102b8: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED
ffc102bc: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED
ffc102c0: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED
ffc102c4: 4e 80 00 20 blr <== NOT EXECUTED
/* Called with rtems_pipe_semaphore held. */
static inline void pipe_free(
pipe_control_t *pipe
)
{
rtems_barrier_delete(pipe->readBarrier);
ffc102c8: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED
ffc102cc: 48 00 09 f5 bl ffc10cc0 <rtems_barrier_delete> <== NOT EXECUTED
rtems_barrier_delete(pipe->writeBarrier);
ffc102d0: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED
ffc102d4: 48 00 09 ed bl ffc10cc0 <rtems_barrier_delete> <== NOT EXECUTED
rtems_semaphore_delete(pipe->Semaphore);
ffc102d8: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED
ffc102dc: 4b ff 83 59 bl ffc08634 <rtems_semaphore_delete> <== NOT EXECUTED
free(pipe->Buffer);
ffc102e0: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED
ffc102e4: 4b ff 43 11 bl ffc045f4 <free> <== NOT EXECUTED
free(pipe);
ffc102e8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc102ec: 4b ff 43 09 bl ffc045f4 <free> <== NOT EXECUTED
/* To delete an anonymous pipe file when all users closed it */
if (pipe->Anonymous)
delfile = TRUE;
#endif
pipe_free(pipe);
*pipep = NULL;
ffc102f0: 93 7c 00 00 stw r27,0(r28) <== NOT EXECUTED
/* Notify waiting Writers that all their partners left */
PIPE_WAKEUPWRITERS(pipe);
else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ)
PIPE_WAKEUPREADERS(pipe);
rtems_semaphore_release(rtems_pipe_semaphore);
ffc102f4: 80 7e 28 fc lwz r3,10492(r30) <== NOT EXECUTED
ffc102f8: 4b ff 85 79 bl ffc08870 <rtems_semaphore_release> <== NOT EXECUTED
if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))
return -errno;
#endif
return 0;
}
ffc102fc: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED
ffc10300: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc10304: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED
ffc10308: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc1030c: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED
ffc10310: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED
ffc10314: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED
ffc10318: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED
ffc1031c: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED
ffc10320: 4e 80 00 20 blr <== NOT EXECUTED
sc = rtems_semaphore_obtain(rtems_pipe_semaphore,
RTEMS_WAIT, RTEMS_NO_TIMEOUT);
/* WARN pipe not freed and pipep not set to NULL! */
if(sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred(sc);
ffc10324: 4b ff 8d 11 bl ffc09034 <rtems_fatal_error_occurred> <== NOT EXECUTED
ffc0fcbc <pipe_write>:
pipe_control_t *pipe,
const void *buffer,
size_t count,
rtems_libio_t *iop
)
{
ffc0fcbc: 94 21 ff c0 stwu r1,-64(r1) <== NOT EXECUTED
ffc0fcc0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc0fcc4: 93 c1 00 38 stw r30,56(r1) <== NOT EXECUTED
int chunk, chunk1, written = 0, ret = 0;
/* Write nothing */
if (count == 0)
ffc0fcc8: 7c be 2b 79 mr. r30,r5 <== NOT EXECUTED
pipe_control_t *pipe,
const void *buffer,
size_t count,
rtems_libio_t *iop
)
{
ffc0fccc: 93 81 00 30 stw r28,48(r1) <== NOT EXECUTED
int chunk, chunk1, written = 0, ret = 0;
/* Write nothing */
if (count == 0)
ffc0fcd0: 3b 80 00 00 li r28,0 <== NOT EXECUTED
pipe_control_t *pipe,
const void *buffer,
size_t count,
rtems_libio_t *iop
)
{
ffc0fcd4: 93 a1 00 34 stw r29,52(r1) <== NOT EXECUTED
ffc0fcd8: 7c 9d 23 78 mr r29,r4 <== NOT EXECUTED
ffc0fcdc: 93 e1 00 3c stw r31,60(r1) <== NOT EXECUTED
ffc0fce0: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED
ffc0fce4: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED
ffc0fce8: 93 01 00 20 stw r24,32(r1) <== NOT EXECUTED
ffc0fcec: 93 21 00 24 stw r25,36(r1) <== NOT EXECUTED
ffc0fcf0: 93 41 00 28 stw r26,40(r1) <== NOT EXECUTED
ffc0fcf4: 93 61 00 2c stw r27,44(r1) <== NOT EXECUTED
int chunk, chunk1, written = 0, ret = 0;
/* Write nothing */
if (count == 0)
ffc0fcf8: 40 82 00 38 bne- ffc0fd30 <pipe_write+0x74> <== NOT EXECUTED
#endif
if (written > 0)
return written;
return ret;
}
ffc0fcfc: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED
ffc0fd00: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED
ffc0fd04: 83 01 00 20 lwz r24,32(r1) <== NOT EXECUTED
ffc0fd08: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0fd0c: 83 21 00 24 lwz r25,36(r1) <== NOT EXECUTED
ffc0fd10: 83 41 00 28 lwz r26,40(r1) <== NOT EXECUTED
ffc0fd14: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED
ffc0fd18: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED
ffc0fd1c: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED
ffc0fd20: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED
ffc0fd24: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED
ffc0fd28: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED
ffc0fd2c: 4e 80 00 20 blr <== NOT EXECUTED
/* Write nothing */
if (count == 0)
return 0;
if (! PIPE_LOCK(pipe))
ffc0fd30: 80 63 00 28 lwz r3,40(r3) <== NOT EXECUTED
ffc0fd34: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc0fd38: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc0fd3c: 90 c1 00 18 stw r6,24(r1) <== NOT EXECUTED
ffc0fd40: 4b ff 89 d1 bl ffc08710 <rtems_semaphore_obtain> <== NOT EXECUTED
ffc0fd44: 3b 80 ff fc li r28,-4 <== NOT EXECUTED
ffc0fd48: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc0fd4c: 80 c1 00 18 lwz r6,24(r1) <== NOT EXECUTED
ffc0fd50: 40 be ff ac bne- cr7,ffc0fcfc <pipe_write+0x40> <== NOT EXECUTED
return -EINTR;
if (pipe->Readers == 0) {
ffc0fd54: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED
ffc0fd58: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0fd5c: 41 9e 01 58 beq- cr7,ffc0feb4 <pipe_write+0x1f8> <== NOT EXECUTED
ret = -EPIPE;
goto out_locked;
}
/* Write of PIPE_BUF bytes or less shall not be interleaved */
chunk = count <= pipe->Size ? count : 1;
ffc0fd60: 81 3f 00 04 lwz r9,4(r31) <== NOT EXECUTED
}
pipe->waitingWriters --;
if (ret != 0)
goto out_locked;
if (pipe->Readers == 0) {
ffc0fd64: 3b 40 00 01 li r26,1 <== NOT EXECUTED
ret = -EPIPE;
goto out_locked;
}
/* Write of PIPE_BUF bytes or less shall not be interleaved */
chunk = count <= pipe->Size ? count : 1;
ffc0fd68: 7f 9e 48 40 cmplw cr7,r30,r9 <== NOT EXECUTED
ffc0fd6c: 41 9d 00 08 bgt- cr7,ffc0fd74 <pipe_write+0xb8> <== NOT EXECUTED
ffc0fd70: 7f da f3 78 mr r26,r30 <== NOT EXECUTED
}
pipe->waitingWriters --;
if (ret != 0)
goto out_locked;
if (pipe->Readers == 0) {
ffc0fd74: 3b 20 00 00 li r25,0 <== NOT EXECUTED
ffc0fd78: 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);
ffc0fd7c: 3b 01 00 08 addi r24,r1,8 <== 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) {
ffc0fd80: 80 1f 00 0c lwz r0,12(r31) <== NOT EXECUTED
ffc0fd84: 7f 60 48 50 subf r27,r0,r9 <== NOT EXECUTED
ffc0fd88: 7f 9b d0 40 cmplw cr7,r27,r26 <== NOT EXECUTED
ffc0fd8c: 40 9c 00 94 bge- cr7,ffc0fe20 <pipe_write+0x164> <== NOT EXECUTED
if (LIBIO_NODELAY(iop)) {
ffc0fd90: 80 06 00 18 lwz r0,24(r6) <== NOT EXECUTED
ffc0fd94: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED
ffc0fd98: 40 82 01 4c bne- ffc0fee4 <pipe_write+0x228> <== NOT EXECUTED
ret = -EAGAIN;
goto out_locked;
}
/* Wait until there is chunk bytes space or no reader exists */
pipe->waitingWriters ++;
ffc0fd9c: 81 3f 00 1c lwz r9,28(r31) <== NOT EXECUTED
PIPE_UNLOCK(pipe);
ffc0fda0: 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 ++;
ffc0fda4: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED
PIPE_UNLOCK(pipe);
ffc0fda8: 90 c1 00 18 stw r6,24(r1) <== NOT EXECUTED
ret = -EAGAIN;
goto out_locked;
}
/* Wait until there is chunk bytes space or no reader exists */
pipe->waitingWriters ++;
ffc0fdac: 90 1f 00 1c stw r0,28(r31) <== NOT EXECUTED
PIPE_UNLOCK(pipe);
ffc0fdb0: 4b ff 8a c1 bl ffc08870 <rtems_semaphore_release> <== NOT EXECUTED
if (! PIPE_WRITEWAIT(pipe))
ffc0fdb4: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED
ffc0fdb8: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc0fdbc: 48 00 10 25 bl ffc10de0 <rtems_barrier_wait> <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
ffc0fdc0: 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))
ffc0fdc4: 33 63 ff ff addic r27,r3,-1 <== NOT EXECUTED
ffc0fdc8: 7f 7b d9 10 subfe r27,r27,r27 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
ffc0fdcc: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED
ffc0fdd0: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc0fdd4: 4b ff 89 3d bl ffc08710 <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))
ffc0fdd8: 57 7b 07 7a rlwinm r27,r27,0,29,29 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
ffc0fddc: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc0fde0: 80 c1 00 18 lwz r6,24(r1) <== NOT EXECUTED
}
/* Wait until there is chunk bytes space or no reader exists */
pipe->waitingWriters ++;
PIPE_UNLOCK(pipe);
if (! PIPE_WRITEWAIT(pipe))
ffc0fde4: 3b 7b ff fc addi r27,r27,-4 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
ffc0fde8: 40 9e 00 f4 bne- cr7,ffc0fedc <pipe_write+0x220> <== NOT EXECUTED
/* WARN waitingWriters not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingWriters --;
if (ret != 0)
ffc0fdec: 2f 9b 00 00 cmpwi cr7,r27,0 <== NOT EXECUTED
if (! PIPE_LOCK(pipe)) {
/* WARN waitingWriters not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingWriters --;
ffc0fdf0: 81 3f 00 1c lwz r9,28(r31) <== NOT EXECUTED
ffc0fdf4: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED
ffc0fdf8: 90 1f 00 1c stw r0,28(r31) <== NOT EXECUTED
if (ret != 0)
ffc0fdfc: 40 9e 00 c0 bne- cr7,ffc0febc <pipe_write+0x200> <== NOT EXECUTED
goto out_locked;
if (pipe->Readers == 0) {
ffc0fe00: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED
ffc0fe04: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0fe08: 41 9e 00 cc beq- cr7,ffc0fed4 <pipe_write+0x218> <== NOT EXECUTED
ffc0fe0c: 81 3f 00 04 lwz r9,4(r31) <== 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) {
ffc0fe10: 80 1f 00 0c lwz r0,12(r31) <== NOT EXECUTED
ffc0fe14: 7f 60 48 50 subf r27,r0,r9 <== NOT EXECUTED
ffc0fe18: 7f 9b d0 40 cmplw cr7,r27,r26 <== NOT EXECUTED
ffc0fe1c: 41 9c ff 74 blt+ cr7,ffc0fd90 <pipe_write+0xd4> <== NOT EXECUTED
ret = -EPIPE;
goto out_locked;
}
}
chunk = MIN(count - written, PIPE_SPACE(pipe));
ffc0fe20: 7d 79 f0 50 subf r11,r25,r30 <== NOT EXECUTED
ffc0fe24: 7f 9b 58 40 cmplw cr7,r27,r11 <== NOT EXECUTED
ffc0fe28: 40 9d 00 08 ble- cr7,ffc0fe30 <pipe_write+0x174> <== NOT EXECUTED
ffc0fe2c: 7d 7b 5b 78 mr r27,r11 <== NOT EXECUTED
chunk1 = pipe->Size - PIPE_WSTART(pipe);
ffc0fe30: 81 7f 00 08 lwz r11,8(r31) <== NOT EXECUTED
ffc0fe34: 7c 00 5a 14 add r0,r0,r11 <== NOT EXECUTED
ffc0fe38: 7d 60 4b 96 divwu r11,r0,r9 <== NOT EXECUTED
ffc0fe3c: 7d 6b 49 d6 mullw r11,r11,r9 <== NOT EXECUTED
ffc0fe40: 7c 0b 00 50 subf r0,r11,r0 <== NOT EXECUTED
ffc0fe44: 7f 40 48 50 subf r26,r0,r9 <== NOT EXECUTED
if (chunk > chunk1) {
ffc0fe48: 7f 9b d0 00 cmpw cr7,r27,r26 <== NOT EXECUTED
ffc0fe4c: 40 9d 00 a0 ble- cr7,ffc0feec <pipe_write+0x230> <== NOT EXECUTED
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
ffc0fe50: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED
ffc0fe54: 7c 9d ca 14 add r4,r29,r25 <== NOT EXECUTED
ffc0fe58: 7f 45 d3 78 mr r5,r26 <== NOT EXECUTED
ffc0fe5c: 90 c1 00 18 stw r6,24(r1) <== NOT EXECUTED
ffc0fe60: 7c 63 02 14 add r3,r3,r0 <== NOT EXECUTED
ffc0fe64: 48 00 29 3d bl ffc127a0 <memcpy> <== NOT EXECUTED
memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
ffc0fe68: 7c 9a ca 14 add r4,r26,r25 <== NOT EXECUTED
ffc0fe6c: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED
ffc0fe70: 7c 9d 22 14 add r4,r29,r4 <== NOT EXECUTED
ffc0fe74: 7c ba d8 50 subf r5,r26,r27 <== NOT EXECUTED
ffc0fe78: 48 00 29 29 bl ffc127a0 <memcpy> <== NOT EXECUTED
ffc0fe7c: 80 c1 00 18 lwz r6,24(r1) <== NOT EXECUTED
}
else
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
pipe->Length += chunk;
if (pipe->waitingReaders > 0)
ffc0fe80: 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;
ffc0fe84: 80 1f 00 0c lwz r0,12(r31) <== NOT EXECUTED
if (pipe->waitingReaders > 0)
ffc0fe88: 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;
ffc0fe8c: 7c 00 da 14 add r0,r0,r27 <== NOT EXECUTED
ffc0fe90: 90 1f 00 0c stw r0,12(r31) <== NOT EXECUTED
if (pipe->waitingReaders > 0)
ffc0fe94: 40 9e 00 78 bne- cr7,ffc0ff0c <pipe_write+0x250> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
written += chunk;
ffc0fe98: 7f 9c da 14 add r28,r28,r27 <== NOT EXECUTED
}
/* Write of PIPE_BUF bytes or less shall not be interleaved */
chunk = count <= pipe->Size ? count : 1;
while (written < count) {
ffc0fe9c: 7f 9e e0 40 cmplw cr7,r30,r28 <== NOT EXECUTED
ffc0fea0: 7f 99 e3 78 mr r25,r28 <== NOT EXECUTED
ffc0fea4: 40 9d 00 80 ble- cr7,ffc0ff24 <pipe_write+0x268> <== NOT EXECUTED
ffc0fea8: 81 3f 00 04 lwz r9,4(r31) <== NOT EXECUTED
ffc0feac: 3b 40 00 01 li r26,1 <== NOT EXECUTED
ffc0feb0: 4b ff fe d0 b ffc0fd80 <pipe_write+0xc4> <== NOT EXECUTED
ffc0feb4: 3b 60 ff e0 li r27,-32 <== NOT EXECUTED
ffc0feb8: 3b 80 00 00 li r28,0 <== NOT EXECUTED
/* Write of more than PIPE_BUF bytes can be interleaved */
chunk = 1;
}
out_locked:
PIPE_UNLOCK(pipe);
ffc0febc: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED
ffc0fec0: 4b ff 89 b1 bl ffc08870 <rtems_semaphore_release> <== NOT EXECUTED
/* Signal SIGPIPE */
if (ret == -EPIPE)
kill(getpid(), SIGPIPE);
#endif
if (written > 0)
ffc0fec4: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED
ffc0fec8: 41 9d fe 34 bgt+ cr7,ffc0fcfc <pipe_write+0x40> <== NOT EXECUTED
ffc0fecc: 7f 7c db 78 mr r28,r27 <== NOT EXECUTED
ffc0fed0: 4b ff fe 2c b ffc0fcfc <pipe_write+0x40> <== NOT EXECUTED
}
pipe->waitingWriters --;
if (ret != 0)
goto out_locked;
if (pipe->Readers == 0) {
ffc0fed4: 3b 60 ff e0 li r27,-32 <== NOT EXECUTED
ffc0fed8: 4b ff ff e4 b ffc0febc <pipe_write+0x200> <== 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)) {
ffc0fedc: 3b 60 ff fc li r27,-4 <== NOT EXECUTED
ffc0fee0: 4b ff ff e4 b ffc0fec4 <pipe_write+0x208> <== 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)) {
ffc0fee4: 3b 60 ff f5 li r27,-11 <== NOT EXECUTED
ffc0fee8: 4b ff ff d4 b ffc0febc <pipe_write+0x200> <== NOT EXECUTED
if (chunk > chunk1) {
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
}
else
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
ffc0feec: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED
ffc0fef0: 7c 9d ca 14 add r4,r29,r25 <== NOT EXECUTED
ffc0fef4: 7f 65 db 78 mr r5,r27 <== NOT EXECUTED
ffc0fef8: 90 c1 00 18 stw r6,24(r1) <== NOT EXECUTED
ffc0fefc: 7c 63 02 14 add r3,r3,r0 <== NOT EXECUTED
ffc0ff00: 48 00 28 a1 bl ffc127a0 <memcpy> <== NOT EXECUTED
ffc0ff04: 80 c1 00 18 lwz r6,24(r1) <== NOT EXECUTED
ffc0ff08: 4b ff ff 78 b ffc0fe80 <pipe_write+0x1c4> <== NOT EXECUTED
pipe->Length += chunk;
if (pipe->waitingReaders > 0)
PIPE_WAKEUPREADERS(pipe);
ffc0ff0c: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED
ffc0ff10: 7f 04 c3 78 mr r4,r24 <== NOT EXECUTED
ffc0ff14: 90 c1 00 18 stw r6,24(r1) <== NOT EXECUTED
ffc0ff18: 48 00 0e 31 bl ffc10d48 <rtems_barrier_release> <== NOT EXECUTED
ffc0ff1c: 80 c1 00 18 lwz r6,24(r1) <== NOT EXECUTED
ffc0ff20: 4b ff ff 78 b ffc0fe98 <pipe_write+0x1dc> <== NOT EXECUTED
}
/* Write of PIPE_BUF bytes or less shall not be interleaved */
chunk = count <= pipe->Size ? count : 1;
while (written < count) {
ffc0ff24: 3b 60 00 00 li r27,0 <== NOT EXECUTED
ffc0ff28: 4b ff ff 94 b ffc0febc <pipe_write+0x200> <== NOT EXECUTED
ffc05724 <printk>:
* printk
*
* Kernel printf function requiring minimal infrastrure.
*/
void printk(const char *fmt, ...)
{
ffc05724: 94 21 ff 88 stwu r1,-120(r1)
ffc05728: 7c 08 02 a6 mflr r0
ffc0572c: 90 81 00 1c stw r4,28(r1)
ffc05730: 90 01 00 7c stw r0,124(r1)
ffc05734: 90 a1 00 20 stw r5,32(r1)
ffc05738: 90 c1 00 24 stw r6,36(r1)
ffc0573c: 90 e1 00 28 stw r7,40(r1)
ffc05740: 91 01 00 2c stw r8,44(r1)
ffc05744: 91 21 00 30 stw r9,48(r1)
ffc05748: 91 41 00 34 stw r10,52(r1)
ffc0574c: 40 86 00 24 bne- cr1,ffc05770 <printk+0x4c>
ffc05750: d8 21 00 38 stfd f1,56(r1) <== NOT EXECUTED
ffc05754: d8 41 00 40 stfd f2,64(r1) <== NOT EXECUTED
ffc05758: d8 61 00 48 stfd f3,72(r1) <== NOT EXECUTED
ffc0575c: d8 81 00 50 stfd f4,80(r1) <== NOT EXECUTED
ffc05760: d8 a1 00 58 stfd f5,88(r1) <== NOT EXECUTED
ffc05764: d8 c1 00 60 stfd f6,96(r1) <== NOT EXECUTED
ffc05768: d8 e1 00 68 stfd f7,104(r1) <== NOT EXECUTED
ffc0576c: 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 */
ffc05770: 38 00 00 01 li r0,1
ffc05774: 98 01 00 08 stb r0,8(r1)
ffc05778: 38 00 00 00 li r0,0
vprintk(fmt, ap);
ffc0577c: 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 */
ffc05780: 98 01 00 09 stb r0,9(r1)
ffc05784: 38 01 00 80 addi r0,r1,128
ffc05788: 90 01 00 0c stw r0,12(r1)
ffc0578c: 38 01 00 18 addi r0,r1,24
ffc05790: 90 01 00 10 stw r0,16(r1)
vprintk(fmt, ap);
ffc05794: 48 00 22 c5 bl ffc07a58 <vprintk>
va_end(ap); /* clean up when done */
}
ffc05798: 80 01 00 7c lwz r0,124(r1)
ffc0579c: 38 21 00 78 addi r1,r1,120
ffc057a0: 7c 08 03 a6 mtlr r0
ffc057a4: 4e 80 00 20 blr
ffc06fcc <printk_plugin>:
int printk_plugin(
void *ignored __attribute__((unused)),
const char *format,
...
)
{
ffc06fcc: 94 21 ff 90 stwu r1,-112(r1)
ffc06fd0: 7c 08 02 a6 mflr r0
ffc06fd4: 90 a1 00 18 stw r5,24(r1)
ffc06fd8: 90 01 00 74 stw r0,116(r1)
ffc06fdc: 90 c1 00 1c stw r6,28(r1)
ffc06fe0: 90 e1 00 20 stw r7,32(r1)
ffc06fe4: 91 01 00 24 stw r8,36(r1)
ffc06fe8: 91 21 00 28 stw r9,40(r1)
ffc06fec: 91 41 00 2c stw r10,44(r1)
ffc06ff0: 40 86 00 24 bne- cr1,ffc07014 <printk_plugin+0x48>
ffc06ff4: d8 21 00 30 stfd f1,48(r1) <== NOT EXECUTED
ffc06ff8: d8 41 00 38 stfd f2,56(r1) <== NOT EXECUTED
ffc06ffc: d8 61 00 40 stfd f3,64(r1) <== NOT EXECUTED
ffc07000: d8 81 00 48 stfd f4,72(r1) <== NOT EXECUTED
ffc07004: d8 a1 00 50 stfd f5,80(r1) <== NOT EXECUTED
ffc07008: d8 c1 00 58 stfd f6,88(r1) <== NOT EXECUTED
ffc0700c: d8 e1 00 60 stfd f7,96(r1) <== NOT EXECUTED
ffc07010: d9 01 00 68 stfd f8,104(r1) <== NOT EXECUTED
va_list arg_pointer;
va_start (arg_pointer, format);
ffc07014: 38 00 00 02 li r0,2
ffc07018: 98 01 00 08 stb r0,8(r1)
ffc0701c: 38 00 00 00 li r0,0
vprintk( format, arg_pointer );
ffc07020: 7c 83 23 78 mr r3,r4
...
)
{
va_list arg_pointer;
va_start (arg_pointer, format);
ffc07024: 98 01 00 09 stb r0,9(r1)
ffc07028: 38 01 00 78 addi r0,r1,120
vprintk( format, arg_pointer );
ffc0702c: 38 81 00 08 addi r4,r1,8
...
)
{
va_list arg_pointer;
va_start (arg_pointer, format);
ffc07030: 90 01 00 0c stw r0,12(r1)
ffc07034: 38 01 00 10 addi r0,r1,16
ffc07038: 90 01 00 10 stw r0,16(r1)
vprintk( format, arg_pointer );
ffc0703c: 48 00 22 c9 bl ffc09304 <vprintk>
va_end(arg_pointer); /* clean up when done */
return 0;
}
ffc07040: 38 60 00 00 li r3,0
ffc07044: 80 01 00 74 lwz r0,116(r1)
ffc07048: 38 21 00 70 addi r1,r1,112
ffc0704c: 7c 08 03 a6 mtlr r0
ffc07050: 4e 80 00 20 blr
ffc1ca1c <read>:
ssize_t read(
int fd,
void *buffer,
size_t count
)
{
ffc1ca1c: 94 21 ff f0 stwu r1,-16(r1)
ffc1ca20: 7c 08 02 a6 mflr r0
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
ffc1ca24: 3d 20 00 00 lis r9,0
ssize_t read(
int fd,
void *buffer,
size_t count
)
{
ffc1ca28: 90 01 00 14 stw r0,20(r1)
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
ffc1ca2c: 80 09 26 4c lwz r0,9804(r9)
ssize_t read(
int fd,
void *buffer,
size_t count
)
{
ffc1ca30: 93 e1 00 0c stw r31,12(r1)
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
ffc1ca34: 7f 83 00 40 cmplw cr7,r3,r0
ffc1ca38: 40 9c 00 94 bge- cr7,ffc1cacc <read+0xb0>
iop = rtems_libio_iop( fd );
ffc1ca3c: 3d 60 00 00 lis r11,0
ffc1ca40: 83 eb 27 08 lwz r31,9992(r11)
ffc1ca44: 1c 63 00 48 mulli r3,r3,72
ffc1ca48: 7f ff 1a 14 add r31,r31,r3
rtems_libio_check_is_open( iop );
ffc1ca4c: 81 7f 00 18 lwz r11,24(r31)
ffc1ca50: 71 6a 01 00 andi. r10,r11,256
ffc1ca54: 41 82 00 78 beq- ffc1cacc <read+0xb0>
rtems_libio_check_buffer( buffer );
ffc1ca58: 2f 84 00 00 cmpwi cr7,r4,0
ffc1ca5c: 41 9e 00 84 beq- cr7,ffc1cae0 <read+0xc4>
rtems_libio_check_count( count );
ffc1ca60: 2f 85 00 00 cmpwi cr7,r5,0
ffc1ca64: 38 60 00 00 li r3,0
ffc1ca68: 41 9e 00 50 beq- cr7,ffc1cab8 <read+0x9c>
rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );
ffc1ca6c: 71 60 00 02 andi. r0,r11,2
ffc1ca70: 41 82 00 70 beq- ffc1cae0 <read+0xc4>
/*
* Now process the read().
*/
if ( !iop->handlers->read_h )
ffc1ca74: 81 3f 00 40 lwz r9,64(r31)
ffc1ca78: 80 09 00 08 lwz r0,8(r9)
ffc1ca7c: 2f 80 00 00 cmpwi cr7,r0,0
ffc1ca80: 41 9e 00 74 beq- cr7,ffc1caf4 <read+0xd8>
rtems_set_errno_and_return_minus_one( ENOTSUP );
rc = (*iop->handlers->read_h)( iop, buffer, count );
ffc1ca84: 7f e3 fb 78 mr r3,r31
ffc1ca88: 7c 09 03 a6 mtctr r0
ffc1ca8c: 4e 80 04 21 bctrl
if ( rc > 0 )
ffc1ca90: 2c 03 00 00 cmpwi r3,0
ffc1ca94: 40 81 00 24 ble- ffc1cab8 <read+0x9c>
iop->offset += rc;
ffc1ca98: 80 ff 00 10 lwz r7,16(r31)
ffc1ca9c: 7c 6a 1b 78 mr r10,r3
ffc1caa0: 81 1f 00 14 lwz r8,20(r31)
ffc1caa4: 7c 69 fe 70 srawi r9,r3,31
ffc1caa8: 7d 88 50 14 addc r12,r8,r10
ffc1caac: 7d 67 49 14 adde r11,r7,r9
ffc1cab0: 91 7f 00 10 stw r11,16(r31)
ffc1cab4: 91 9f 00 14 stw r12,20(r31)
return rc;
}
ffc1cab8: 80 01 00 14 lwz r0,20(r1)
ffc1cabc: 83 e1 00 0c lwz r31,12(r1)
ffc1cac0: 38 21 00 10 addi r1,r1,16
ffc1cac4: 7c 08 03 a6 mtlr r0
ffc1cac8: 4e 80 00 20 blr
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open( iop );
ffc1cacc: 4b ff 50 ed bl ffc11bb8 <__errno>
ffc1cad0: 38 00 00 09 li r0,9
ffc1cad4: 90 03 00 00 stw r0,0(r3)
ffc1cad8: 38 60 ff ff li r3,-1
ffc1cadc: 4b ff ff dc b ffc1cab8 <read+0x9c>
rtems_libio_check_buffer( buffer );
rtems_libio_check_count( count );
rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );
ffc1cae0: 4b ff 50 d9 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc1cae4: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc1cae8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc1caec: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc1caf0: 4b ff ff c8 b ffc1cab8 <read+0x9c> <== NOT EXECUTED
/*
* Now process the read().
*/
if ( !iop->handlers->read_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc1caf4: 4b ff 50 c5 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc1caf8: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc1cafc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc1cb00: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc1cb04: 4b ff ff b4 b ffc1cab8 <read+0x9c> <== NOT EXECUTED
ffc305a4 <readlink>:
ssize_t readlink(
const char *pathname,
char *buf,
size_t bufsize
)
{
ffc305a4: 94 21 ff c8 stwu r1,-56(r1)
ffc305a8: 7c 08 02 a6 mflr r0
ffc305ac: 93 a1 00 2c stw r29,44(r1)
rtems_filesystem_location_info_t loc;
int result;
if (!buf)
ffc305b0: 7c 9d 23 79 mr. r29,r4
ssize_t readlink(
const char *pathname,
char *buf,
size_t bufsize
)
{
ffc305b4: 93 81 00 28 stw r28,40(r1)
ffc305b8: 7c 7c 1b 78 mr r28,r3
ffc305bc: 93 c1 00 30 stw r30,48(r1)
ffc305c0: 7c be 2b 78 mr r30,r5
ffc305c4: 90 01 00 3c stw r0,60(r1)
ffc305c8: 93 e1 00 34 stw r31,52(r1)
rtems_filesystem_location_info_t loc;
int result;
if (!buf)
ffc305cc: 41 82 00 c4 beq- ffc30690 <readlink+0xec>
rtems_set_errno_and_return_minus_one( EFAULT );
result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ),
ffc305d0: 48 02 43 15 bl ffc548e4 <strlen>
ffc305d4: 3b e1 00 08 addi r31,r1,8
ffc305d8: 7c 64 1b 78 mr r4,r3
ffc305dc: 38 a0 00 00 li r5,0
ffc305e0: 7f 83 e3 78 mr r3,r28
ffc305e4: 7f e6 fb 78 mr r6,r31
ffc305e8: 38 e0 00 00 li r7,0
ffc305ec: 4b fd 72 a1 bl ffc0788c <rtems_filesystem_evaluate_path>
0, &loc, false );
if ( result != 0 )
ffc305f0: 3b 80 ff ff li r28,-1
ffc305f4: 2f 83 00 00 cmpwi cr7,r3,0
ffc305f8: 40 9e 00 74 bne- cr7,ffc3066c <readlink+0xc8>
return -1;
if ( !loc.ops->node_type_h ){
ffc305fc: 81 21 00 14 lwz r9,20(r1)
ffc30600: 80 09 00 10 lwz r0,16(r9)
ffc30604: 2f 80 00 00 cmpwi cr7,r0,0
ffc30608: 41 9e 00 f4 beq- cr7,ffc306fc <readlink+0x158>
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){
ffc3060c: 7f e3 fb 78 mr r3,r31
ffc30610: 7c 09 03 a6 mtctr r0
ffc30614: 4e 80 04 21 bctrl
ffc30618: 2f 83 00 04 cmpwi cr7,r3,4
ffc3061c: 40 9e 00 a8 bne- cr7,ffc306c4 <readlink+0x120>
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( EINVAL );
}
if ( !loc.ops->readlink_h ){
ffc30620: 81 21 00 14 lwz r9,20(r1)
ffc30624: 80 09 00 3c lwz r0,60(r9)
ffc30628: 2f 80 00 00 cmpwi cr7,r0,0
ffc3062c: 41 9e 00 d0 beq- cr7,ffc306fc <readlink+0x158>
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->readlink_h)( &loc, buf, bufsize );
ffc30630: 7f a4 eb 78 mr r4,r29
ffc30634: 7c 09 03 a6 mtctr r0
ffc30638: 7f c5 f3 78 mr r5,r30
ffc3063c: 7f e3 fb 78 mr r3,r31
ffc30640: 4e 80 04 21 bctrl
rtems_filesystem_freenode( &loc );
ffc30644: 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 );
ffc30648: 7c 7c 1b 78 mr r28,r3
rtems_filesystem_freenode( &loc );
ffc3064c: 2f 89 00 00 cmpwi cr7,r9,0
ffc30650: 41 9e 00 1c beq- cr7,ffc3066c <readlink+0xc8>
ffc30654: 80 09 00 1c lwz r0,28(r9)
ffc30658: 2f 80 00 00 cmpwi cr7,r0,0
ffc3065c: 41 9e 00 10 beq- cr7,ffc3066c <readlink+0xc8>
ffc30660: 7f e3 fb 78 mr r3,r31
ffc30664: 7c 09 03 a6 mtctr r0
ffc30668: 4e 80 04 21 bctrl
return result;
}
ffc3066c: 80 01 00 3c lwz r0,60(r1)
ffc30670: 7f 83 e3 78 mr r3,r28
ffc30674: 83 a1 00 2c lwz r29,44(r1)
ffc30678: 7c 08 03 a6 mtlr r0
ffc3067c: 83 81 00 28 lwz r28,40(r1)
ffc30680: 83 c1 00 30 lwz r30,48(r1)
ffc30684: 83 e1 00 34 lwz r31,52(r1)
ffc30688: 38 21 00 38 addi r1,r1,56
ffc3068c: 4e 80 00 20 blr
{
rtems_filesystem_location_info_t loc;
int result;
if (!buf)
rtems_set_errno_and_return_minus_one( EFAULT );
ffc30690: 48 01 c4 e9 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc30694: 38 00 00 0e li r0,14 <== NOT EXECUTED
ffc30698: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc3069c: 3b 80 ff ff li r28,-1 <== NOT EXECUTED
result = (*loc.ops->readlink_h)( &loc, buf, bufsize );
rtems_filesystem_freenode( &loc );
return result;
}
ffc306a0: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED
ffc306a4: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED
ffc306a8: 83 81 00 28 lwz r28,40(r1) <== NOT EXECUTED
ffc306ac: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc306b0: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED
ffc306b4: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED
ffc306b8: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED
ffc306bc: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED
ffc306c0: 4e 80 00 20 blr <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){
rtems_filesystem_freenode( &loc );
ffc306c4: 81 21 00 14 lwz r9,20(r1)
ffc306c8: 2f 89 00 00 cmpwi cr7,r9,0
ffc306cc: 41 9e 00 1c beq- cr7,ffc306e8 <readlink+0x144>
ffc306d0: 80 09 00 1c lwz r0,28(r9)
ffc306d4: 2f 80 00 00 cmpwi cr7,r0,0
ffc306d8: 41 9e 00 10 beq- cr7,ffc306e8 <readlink+0x144>
ffc306dc: 7f e3 fb 78 mr r3,r31
ffc306e0: 7c 09 03 a6 mtctr r0
ffc306e4: 4e 80 04 21 bctrl
rtems_set_errno_and_return_minus_one( EINVAL );
ffc306e8: 48 01 c4 91 bl ffc4cb78 <__errno>
ffc306ec: 38 00 00 16 li r0,22
ffc306f0: 90 03 00 00 stw r0,0(r3)
ffc306f4: 3b 80 ff ff li r28,-1
ffc306f8: 4b ff ff 74 b ffc3066c <readlink+0xc8>
}
if ( !loc.ops->readlink_h ){
rtems_filesystem_freenode( &loc );
ffc306fc: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc30700: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc30704: 41 9e 00 10 beq- cr7,ffc30714 <readlink+0x170> <== NOT EXECUTED
ffc30708: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc3070c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc30710: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc30714: 48 01 c4 65 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc30718: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc3071c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc30720: 3b 80 ff ff li r28,-1 <== NOT EXECUTED
ffc30724: 4b ff ff 48 b ffc3066c <readlink+0xc8> <== NOT EXECUTED
ffc06ddc <readv>:
ssize_t readv(
int fd,
const struct iovec *iov,
int iovcnt
)
{
ffc06ddc: 94 21 ff d8 stwu r1,-40(r1)
ffc06de0: 7c 08 02 a6 mflr r0
int v;
int bytes;
rtems_libio_t *iop;
bool all_zeros;
rtems_libio_check_fd( fd );
ffc06de4: 3d 20 00 00 lis r9,0
ssize_t readv(
int fd,
const struct iovec *iov,
int iovcnt
)
{
ffc06de8: 90 01 00 2c stw r0,44(r1)
int v;
int bytes;
rtems_libio_t *iop;
bool all_zeros;
rtems_libio_check_fd( fd );
ffc06dec: 80 09 26 4c lwz r0,9804(r9)
ssize_t readv(
int fd,
const struct iovec *iov,
int iovcnt
)
{
ffc06df0: 93 81 00 18 stw r28,24(r1)
ffc06df4: 7c bc 2b 78 mr r28,r5
int v;
int bytes;
rtems_libio_t *iop;
bool all_zeros;
rtems_libio_check_fd( fd );
ffc06df8: 7f 83 00 40 cmplw cr7,r3,r0
ssize_t readv(
int fd,
const struct iovec *iov,
int iovcnt
)
{
ffc06dfc: 93 21 00 0c stw r25,12(r1)
ffc06e00: 93 41 00 10 stw r26,16(r1)
ffc06e04: 93 61 00 14 stw r27,20(r1)
ffc06e08: 93 a1 00 1c stw r29,28(r1)
ffc06e0c: 93 c1 00 20 stw r30,32(r1)
ffc06e10: 93 e1 00 24 stw r31,36(r1)
int v;
int bytes;
rtems_libio_t *iop;
bool all_zeros;
rtems_libio_check_fd( fd );
ffc06e14: 40 9c 01 7c bge- cr7,ffc06f90 <readv+0x1b4>
iop = rtems_libio_iop( fd );
ffc06e18: 3d 20 00 00 lis r9,0
ffc06e1c: 83 c9 27 0c lwz r30,9996(r9)
ffc06e20: 1c 63 00 48 mulli r3,r3,72
ffc06e24: 7f de 1a 14 add r30,r30,r3
rtems_libio_check_is_open( iop );
ffc06e28: 80 1e 00 18 lwz r0,24(r30)
ffc06e2c: 70 09 01 00 andi. r9,r0,256
ffc06e30: 41 82 01 60 beq- ffc06f90 <readv+0x1b4>
rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );
ffc06e34: 70 09 00 02 andi. r9,r0,2
ffc06e38: 41 82 01 18 beq- ffc06f50 <readv+0x174>
/*
* Argument validation on IO vector
*/
if ( !iov )
ffc06e3c: 2f 84 00 00 cmpwi cr7,r4,0
ffc06e40: 41 9e 01 10 beq- cr7,ffc06f50 <readv+0x174>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt <= 0 )
ffc06e44: 2f 85 00 00 cmpwi cr7,r5,0
ffc06e48: 40 9d 01 08 ble- cr7,ffc06f50 <readv+0x174>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt > IOV_MAX )
ffc06e4c: 2f 85 04 00 cmpwi cr7,r5,1024
ffc06e50: 41 9d 01 00 bgt- cr7,ffc06f50 <readv+0x174>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !iop->handlers->read_h )
ffc06e54: 81 3e 00 40 lwz r9,64(r30)
ffc06e58: 80 09 00 08 lwz r0,8(r9)
ffc06e5c: 2f 80 00 00 cmpwi cr7,r0,0
ffc06e60: 41 9e 01 44 beq- cr7,ffc06fa4 <readv+0x1c8>
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc06e64: 7c a9 03 a6 mtctr r5
ffc06e68: 7c 9f 23 78 mr r31,r4
ffc06e6c: 7c 89 23 78 mr r9,r4
ffc06e70: 38 e0 00 01 li r7,1
ffc06e74: 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 )
ffc06e78: 81 49 00 00 lwz r10,0(r9)
ffc06e7c: 2f 8a 00 00 cmpwi cr7,r10,0
ffc06e80: 41 9e 00 d0 beq- cr7,ffc06f50 <readv+0x174>
if ( iov[v].iov_len < 0 )
rtems_set_errno_and_return_minus_one( EINVAL );
/* check for wrap */
old = total;
total += iov[v].iov_len;
ffc06e84: 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++ ) {
ffc06e88: 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;
ffc06e8c: 7d 4b 42 14 add r10,r11,r8
if ( total < old )
ffc06e90: 7f 8a 58 00 cmpw cr7,r10,r11
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iov[v].iov_len )
ffc06e94: 31 08 ff ff addic r8,r8,-1
ffc06e98: 7d 08 41 10 subfe r8,r8,r8
ffc06e9c: 7c e7 40 38 and r7,r7,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++ ) {
ffc06ea0: 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 )
ffc06ea4: 41 9c 00 ac blt- cr7,ffc06f50 <readv+0x174>
* 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++ ) {
ffc06ea8: 42 00 ff d0 bdnz+ ffc06e78 <readv+0x9c>
/*
* 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 ) {
ffc06eac: 2f 87 00 00 cmpwi cr7,r7,0
ffc06eb0: 3b a0 00 00 li r29,0
ffc06eb4: 3b 60 00 00 li r27,0
ffc06eb8: 40 9e 00 a8 bne- cr7,ffc06f60 <readv+0x184>
/*
* 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 );
ffc06ebc: 80 9f 00 00 lwz r4,0(r31)
ffc06ec0: 7f c3 f3 78 mr r3,r30
ffc06ec4: 80 bf 00 04 lwz r5,4(r31)
ffc06ec8: 7c 09 03 a6 mtctr r0
}
/*
* Now process the readv().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
ffc06ecc: 3b bd 00 01 addi r29,r29,1
bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len );
ffc06ed0: 4e 80 04 21 bctrl
}
/*
* Now process the readv().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
ffc06ed4: 7f 9c e8 00 cmpw cr7,r28,r29
bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len );
if ( bytes < 0 )
ffc06ed8: 2c 03 00 00 cmpwi r3,0
ffc06edc: 41 80 00 6c blt- ffc06f48 <readv+0x16c>
return -1;
if ( bytes > 0 ) {
ffc06ee0: 41 82 00 28 beq- ffc06f08 <readv+0x12c>
iop->offset += bytes;
ffc06ee4: 81 7e 00 10 lwz r11,16(r30)
ffc06ee8: 7c 7a 1b 78 mr r26,r3
ffc06eec: 81 9e 00 14 lwz r12,20(r30)
ffc06ef0: 7c 79 fe 70 srawi r25,r3,31
total += bytes;
ffc06ef4: 7f 7b 1a 14 add r27,r27,r3
if ( bytes < 0 )
return -1;
if ( bytes > 0 ) {
iop->offset += bytes;
ffc06ef8: 7d 4c d0 14 addc r10,r12,r26
ffc06efc: 7d 2b c9 14 adde r9,r11,r25
ffc06f00: 91 3e 00 10 stw r9,16(r30)
ffc06f04: 91 5e 00 14 stw r10,20(r30)
total += bytes;
}
if (bytes != iov[ v ].iov_len)
ffc06f08: 80 1f 00 04 lwz r0,4(r31)
}
/*
* Now process the readv().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
ffc06f0c: 3b ff 00 08 addi r31,r31,8
if ( bytes > 0 ) {
iop->offset += bytes;
total += bytes;
}
if (bytes != iov[ v ].iov_len)
ffc06f10: 7f 03 00 00 cmpw cr6,r3,r0
ffc06f14: 40 9a 00 4c bne- cr6,ffc06f60 <readv+0x184>
}
/*
* Now process the readv().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
ffc06f18: 40 9d 00 48 ble- cr7,ffc06f60 <readv+0x184>
ffc06f1c: 81 3e 00 40 lwz r9,64(r30)
bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len );
ffc06f20: 7f c3 f3 78 mr r3,r30
ffc06f24: 80 9f 00 00 lwz r4,0(r31)
}
/*
* Now process the readv().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
ffc06f28: 3b bd 00 01 addi r29,r29,1
ffc06f2c: 80 09 00 08 lwz r0,8(r9)
bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len );
ffc06f30: 80 bf 00 04 lwz r5,4(r31)
ffc06f34: 7c 09 03 a6 mtctr r0
ffc06f38: 4e 80 04 21 bctrl
}
/*
* Now process the readv().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
ffc06f3c: 7f 9c e8 00 cmpw cr7,r28,r29
bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len );
if ( bytes < 0 )
ffc06f40: 2c 03 00 00 cmpwi r3,0
ffc06f44: 40 80 ff 9c bge+ ffc06ee0 <readv+0x104>
}
/*
* Now process the readv().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
ffc06f48: 3b 60 ff ff li r27,-1 <== NOT EXECUTED
ffc06f4c: 48 00 00 14 b ffc06f60 <readv+0x184> <== NOT EXECUTED
/* check for wrap */
old = total;
total += iov[v].iov_len;
if ( total < old )
rtems_set_errno_and_return_minus_one( EINVAL );
ffc06f50: 48 00 dc 3d bl ffc14b8c <__errno>
ffc06f54: 38 00 00 16 li r0,22
ffc06f58: 90 03 00 00 stw r0,0(r3)
ffc06f5c: 3b 60 ff ff li r27,-1
if (bytes != iov[ v ].iov_len)
break;
}
return total;
}
ffc06f60: 80 01 00 2c lwz r0,44(r1)
ffc06f64: 7f 63 db 78 mr r3,r27
ffc06f68: 83 21 00 0c lwz r25,12(r1)
ffc06f6c: 7c 08 03 a6 mtlr r0
ffc06f70: 83 41 00 10 lwz r26,16(r1)
ffc06f74: 83 61 00 14 lwz r27,20(r1)
ffc06f78: 83 81 00 18 lwz r28,24(r1)
ffc06f7c: 83 a1 00 1c lwz r29,28(r1)
ffc06f80: 83 c1 00 20 lwz r30,32(r1)
ffc06f84: 83 e1 00 24 lwz r31,36(r1)
ffc06f88: 38 21 00 28 addi r1,r1,40
ffc06f8c: 4e 80 00 20 blr
rtems_libio_t *iop;
bool all_zeros;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open( iop );
ffc06f90: 48 00 db fd bl ffc14b8c <__errno> <== NOT EXECUTED
ffc06f94: 38 00 00 09 li r0,9 <== NOT EXECUTED
ffc06f98: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc06f9c: 3b 60 ff ff li r27,-1 <== NOT EXECUTED
ffc06fa0: 4b ff ff c0 b ffc06f60 <readv+0x184> <== NOT EXECUTED
if ( iovcnt > IOV_MAX )
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !iop->handlers->read_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc06fa4: 48 00 db e9 bl ffc14b8c <__errno> <== NOT EXECUTED
ffc06fa8: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc06fac: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc06fb0: 3b 60 ff ff li r27,-1 <== NOT EXECUTED
ffc06fb4: 4b ff ff ac b ffc06f60 <readv+0x184> <== NOT EXECUTED
ffc1cbac <realloc>:
{
uintptr_t old_size;
char *new_area;
uintptr_t resize;
MSBUMP(realloc_calls, 1);
ffc1cbac: 94 21 ff d8 stwu r1,-40(r1)
ffc1cbb0: 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())) {
ffc1cbb4: 3d 20 00 00 lis r9,0
{
uintptr_t old_size;
char *new_area;
uintptr_t resize;
MSBUMP(realloc_calls, 1);
ffc1cbb8: 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())) {
ffc1cbbc: 80 09 27 90 lwz r0,10128(r9)
{
uintptr_t old_size;
char *new_area;
uintptr_t resize;
MSBUMP(realloc_calls, 1);
ffc1cbc0: 93 c1 00 20 stw r30,32(r1)
ffc1cbc4: 3f c0 00 00 lis r30,0
/*
* Do not attempt to allocate memory if in a critical section or ISR.
*/
if (_System_state_Is_up(_System_state_Get())) {
ffc1cbc8: 2f 80 00 03 cmpwi cr7,r0,3
{
uintptr_t old_size;
char *new_area;
uintptr_t resize;
MSBUMP(realloc_calls, 1);
ffc1cbcc: 3b de 2a 68 addi r30,r30,10856
ffc1cbd0: 93 a1 00 1c stw r29,28(r1)
ffc1cbd4: 7c 9d 23 78 mr r29,r4
ffc1cbd8: 81 3e 00 10 lwz r9,16(r30)
ffc1cbdc: 93 e1 00 24 stw r31,36(r1)
ffc1cbe0: 7c 7f 1b 78 mr r31,r3
ffc1cbe4: 39 29 00 01 addi r9,r9,1
ffc1cbe8: 93 81 00 18 stw r28,24(r1)
ffc1cbec: 91 3e 00 10 stw r9,16(r30)
/*
* Do not attempt to allocate memory if in a critical section or ISR.
*/
if (_System_state_Is_up(_System_state_Get())) {
ffc1cbf0: 41 9e 00 a0 beq- cr7,ffc1cc90 <realloc+0xe4>
}
/*
* Continue with realloc().
*/
if ( !ptr )
ffc1cbf4: 2f 9f 00 00 cmpwi cr7,r31,0
ffc1cbf8: 41 9e 00 88 beq- cr7,ffc1cc80 <realloc+0xd4>
return malloc( size );
if ( !size ) {
ffc1cbfc: 2f 9d 00 00 cmpwi cr7,r29,0
ffc1cc00: 41 9e 00 5c beq- cr7,ffc1cc5c <realloc+0xb0>
free( ptr );
return (void *) 0;
}
if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
ffc1cc04: 3f 80 00 00 lis r28,0
ffc1cc08: 80 7c 26 5c lwz r3,9820(r28)
ffc1cc0c: 7f e4 fb 78 mr r4,r31
ffc1cc10: 38 a1 00 08 addi r5,r1,8
ffc1cc14: 48 00 01 e5 bl ffc1cdf8 <_Protected_heap_Get_block_size>
ffc1cc18: 2f 83 00 00 cmpwi cr7,r3,0
ffc1cc1c: 41 9e 00 50 beq- cr7,ffc1cc6c <realloc+0xc0>
#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 ) ) {
ffc1cc20: 80 7c 26 5c lwz r3,9820(r28)
ffc1cc24: 7f e4 fb 78 mr r4,r31
ffc1cc28: 7f a5 eb 78 mr r5,r29
ffc1cc2c: 48 00 02 31 bl ffc1ce5c <_Protected_heap_Resize_block>
ffc1cc30: 2f 83 00 00 cmpwi cr7,r3,0
ffc1cc34: 41 9e 00 8c beq- cr7,ffc1ccc0 <realloc+0x114>
memcpy( new_area, ptr, (size < old_size) ? size : old_size );
free( ptr );
return new_area;
}
ffc1cc38: 80 01 00 2c lwz r0,44(r1)
ffc1cc3c: 7f e3 fb 78 mr r3,r31
ffc1cc40: 83 81 00 18 lwz r28,24(r1)
ffc1cc44: 7c 08 03 a6 mtlr r0
ffc1cc48: 83 a1 00 1c lwz r29,28(r1)
ffc1cc4c: 83 c1 00 20 lwz r30,32(r1)
ffc1cc50: 83 e1 00 24 lwz r31,36(r1)
ffc1cc54: 38 21 00 28 addi r1,r1,40
ffc1cc58: 4e 80 00 20 blr
*/
if ( !ptr )
return malloc( size );
if ( !size ) {
free( ptr );
ffc1cc5c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc1cc60: 4b fe 79 95 bl ffc045f4 <free> <== NOT EXECUTED
ffc1cc64: 3b e0 00 00 li r31,0 <== NOT EXECUTED
return (void *) 0;
ffc1cc68: 4b ff ff d0 b ffc1cc38 <realloc+0x8c> <== NOT EXECUTED
}
if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
errno = EINVAL;
ffc1cc6c: 4b ff 4f 4d bl ffc11bb8 <__errno>
ffc1cc70: 38 00 00 16 li r0,22
ffc1cc74: 90 03 00 00 stw r0,0(r3)
ffc1cc78: 3b e0 00 00 li r31,0
return (void *) 0;
ffc1cc7c: 4b ff ff bc b ffc1cc38 <realloc+0x8c>
/*
* Continue with realloc().
*/
if ( !ptr )
return malloc( size );
ffc1cc80: 7f a3 eb 78 mr r3,r29
ffc1cc84: 4b fe 7c f1 bl ffc04974 <malloc>
ffc1cc88: 7c 7f 1b 78 mr r31,r3
ffc1cc8c: 4b ff ff ac b ffc1cc38 <realloc+0x8c>
/*
* Do not attempt to allocate memory if in a critical section or ISR.
*/
if (_System_state_Is_up(_System_state_Get())) {
if (_Thread_Dispatch_disable_level > 0)
ffc1cc90: 3d 20 00 00 lis r9,0
ffc1cc94: 80 09 27 2c lwz r0,10028(r9)
ffc1cc98: 2f 80 00 00 cmpwi cr7,r0,0
ffc1cc9c: 41 9e 00 0c beq- cr7,ffc1cca8 <realloc+0xfc>
}
memcpy( new_area, ptr, (size < old_size) ? size : old_size );
free( ptr );
return new_area;
ffc1cca0: 3b e0 00 00 li r31,0
ffc1cca4: 4b ff ff 94 b ffc1cc38 <realloc+0x8c>
if (_System_state_Is_up(_System_state_Get())) {
if (_Thread_Dispatch_disable_level > 0)
return (void *) 0;
if (_ISR_Nest_level > 0)
ffc1cca8: 3d 20 00 00 lis r9,0
ffc1ccac: 80 09 27 54 lwz r0,10068(r9)
ffc1ccb0: 2f 80 00 00 cmpwi cr7,r0,0
ffc1ccb4: 41 9e ff 40 beq+ cr7,ffc1cbf4 <realloc+0x48>
}
memcpy( new_area, ptr, (size < old_size) ? size : old_size );
free( ptr );
return new_area;
ffc1ccb8: 3b e0 00 00 li r31,0 <== NOT EXECUTED
ffc1ccbc: 4b ff ff 7c b ffc1cc38 <realloc+0x8c> <== NOT EXECUTED
* 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 );
ffc1ccc0: 7f a3 eb 78 mr r3,r29
ffc1ccc4: 4b fe 7c b1 bl ffc04974 <malloc>
MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */
ffc1ccc8: 81 3e 00 04 lwz r9,4(r30)
if ( !new_area ) {
ffc1cccc: 7c 7c 1b 79 mr. r28,r3
* and the C Standard.
*/
new_area = malloc( size );
MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */
ffc1ccd0: 38 09 ff ff addi r0,r9,-1
ffc1ccd4: 90 1e 00 04 stw r0,4(r30)
if ( !new_area ) {
ffc1ccd8: 41 a2 ff c8 beq- ffc1cca0 <realloc+0xf4>
return (void *) 0;
}
memcpy( new_area, ptr, (size < old_size) ? size : old_size );
ffc1ccdc: 80 01 00 08 lwz r0,8(r1)
ffc1cce0: 7f a5 eb 78 mr r5,r29
ffc1cce4: 7f 9d 00 40 cmplw cr7,r29,r0
ffc1cce8: 40 9d 00 08 ble- cr7,ffc1ccf0 <realloc+0x144>
ffc1ccec: 7c 05 03 78 mr r5,r0
ffc1ccf0: 7f e4 fb 78 mr r4,r31
ffc1ccf4: 7f 83 e3 78 mr r3,r28
ffc1ccf8: 4b ff 5a a9 bl ffc127a0 <memcpy>
free( ptr );
ffc1ccfc: 7f e3 fb 78 mr r3,r31
ffc1cd00: 4b fe 78 f5 bl ffc045f4 <free>
ffc1cd04: 7f 9f e3 78 mr r31,r28
return new_area;
ffc1cd08: 4b ff ff 30 b ffc1cc38 <realloc+0x8c>
ffc30728 <rmdir>:
#include <rtems/seterr.h>
int rmdir(
const char *pathname
)
{
ffc30728: 94 21 ff b8 stwu r1,-72(r1)
ffc3072c: 7c 08 02 a6 mflr r0
ffc30730: 93 c1 00 40 stw r30,64(r1)
ffc30734: 93 e1 00 44 stw r31,68(r1)
ffc30738: 7c 7f 1b 78 mr r31,r3
ffc3073c: 90 01 00 4c stw r0,76(r1)
ffc30740: 93 81 00 38 stw r28,56(r1)
ffc30744: 93 a1 00 3c stw r29,60(r1)
/*
* Get the parent node of the node we wish to remove. Find the parent path.
*/
parentpathlen = rtems_filesystem_dirname ( pathname );
ffc30748: 4b fd 6f 91 bl ffc076d8 <rtems_filesystem_dirname>
if ( parentpathlen == 0 )
ffc3074c: 7c 7e 1b 79 mr. r30,r3
ffc30750: 40 82 02 c0 bne- ffc30a10 <rmdir+0x2e8>
rtems_filesystem_get_start_loc( pathname, &i, &parentloc );
ffc30754: 88 1f 00 00 lbz r0,0(r31)
ffc30758: 2f 80 00 2f cmpwi cr7,r0,47
ffc3075c: 41 9e 00 14 beq- cr7,ffc30770 <rmdir+0x48>
ffc30760: 2f 80 00 5c cmpwi cr7,r0,92 <== NOT EXECUTED
ffc30764: 41 9e 00 0c beq- cr7,ffc30770 <rmdir+0x48> <== NOT EXECUTED
ffc30768: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc3076c: 40 9e 01 68 bne- cr7,ffc308d4 <rmdir+0x1ac> <== NOT EXECUTED
ffc30770: 3d 20 00 00 lis r9,0
ffc30774: 81 29 34 ec lwz r9,13548(r9)
ffc30778: 3b a0 00 00 li r29,0
ffc3077c: 80 09 00 24 lwz r0,36(r9)
ffc30780: 81 09 00 18 lwz r8,24(r9)
ffc30784: 81 49 00 1c lwz r10,28(r9)
ffc30788: 81 69 00 20 lwz r11,32(r9)
ffc3078c: 91 01 00 08 stw r8,8(r1)
ffc30790: 91 41 00 0c stw r10,12(r1)
ffc30794: 91 61 00 10 stw r11,16(r1)
ffc30798: 90 01 00 14 stw r0,20(r1)
ffc3079c: 80 09 00 28 lwz r0,40(r9)
ffc307a0: 90 01 00 18 stw r0,24(r1)
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
ffc307a4: 80 01 00 08 lwz r0,8(r1)
name = pathname + parentpathlen;
ffc307a8: 7f df f2 14 add r30,r31,r30
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
ffc307ac: 7f c3 f3 78 mr r3,r30
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
ffc307b0: 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 ),
ffc307b4: 3b e1 00 1c addi r31,r1,28
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
ffc307b8: 80 01 00 0c lwz r0,12(r1)
ffc307bc: 90 01 00 20 stw r0,32(r1)
ffc307c0: 80 01 00 10 lwz r0,16(r1)
ffc307c4: 90 01 00 24 stw r0,36(r1)
ffc307c8: 80 01 00 14 lwz r0,20(r1)
ffc307cc: 90 01 00 28 stw r0,40(r1)
ffc307d0: 80 01 00 18 lwz r0,24(r1)
ffc307d4: 90 01 00 2c stw r0,44(r1)
name = pathname + parentpathlen;
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
ffc307d8: 48 02 41 0d bl ffc548e4 <strlen>
ffc307dc: 7c 64 1b 78 mr r4,r3
ffc307e0: 7f c3 f3 78 mr r3,r30
ffc307e4: 4b fd 6e a5 bl ffc07688 <rtems_filesystem_prefix_separators>
ffc307e8: 7f de 1a 14 add r30,r30,r3
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
ffc307ec: 7f c3 f3 78 mr r3,r30
ffc307f0: 48 02 40 f5 bl ffc548e4 <strlen>
ffc307f4: 38 a0 00 00 li r5,0
ffc307f8: 7c 64 1b 78 mr r4,r3
ffc307fc: 7f e6 fb 78 mr r6,r31
ffc30800: 7f c3 f3 78 mr r3,r30
ffc30804: 38 e0 00 00 li r7,0
ffc30808: 4b fd 6f 5d bl ffc07764 <rtems_filesystem_evaluate_relative_path>
0, &loc, false );
if ( result != 0 ) {
ffc3080c: 2f 83 00 00 cmpwi cr7,r3,0
ffc30810: 40 9e 01 60 bne- cr7,ffc30970 <rmdir+0x248>
/*
* Verify you can remove this node as a directory.
*/
if ( !loc.ops->node_type_h ){
ffc30814: 81 21 00 28 lwz r9,40(r1)
ffc30818: 80 09 00 10 lwz r0,16(r9)
ffc3081c: 2f 80 00 00 cmpwi cr7,r0,0
ffc30820: 41 9e 01 98 beq- cr7,ffc309b8 <rmdir+0x290>
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 ){
ffc30824: 7f e3 fb 78 mr r3,r31
ffc30828: 7c 09 03 a6 mtctr r0
ffc3082c: 4e 80 04 21 bctrl
ffc30830: 2f 83 00 01 cmpwi cr7,r3,1
ffc30834: 40 9e 00 d8 bne- cr7,ffc3090c <rmdir+0x1e4>
/*
* Use the filesystems rmnod to remove the node.
*/
if ( !loc.handlers->rmnod_h ){
ffc30838: 81 21 00 24 lwz r9,36(r1)
ffc3083c: 80 09 00 34 lwz r0,52(r9)
ffc30840: 2f 80 00 00 cmpwi cr7,r0,0
ffc30844: 41 9e 01 68 beq- cr7,ffc309ac <rmdir+0x284>
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.handlers->rmnod_h)( &parentloc, &loc );
ffc30848: 3b c1 00 08 addi r30,r1,8
ffc3084c: 7c 09 03 a6 mtctr r0
ffc30850: 7f c3 f3 78 mr r3,r30
ffc30854: 7f e4 fb 78 mr r4,r31
ffc30858: 4e 80 04 21 bctrl
rtems_filesystem_freenode( &loc );
ffc3085c: 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 );
ffc30860: 7c 7c 1b 78 mr r28,r3
rtems_filesystem_freenode( &loc );
ffc30864: 2f 89 00 00 cmpwi cr7,r9,0
ffc30868: 41 9e 00 1c beq- cr7,ffc30884 <rmdir+0x15c>
ffc3086c: 80 09 00 1c lwz r0,28(r9)
ffc30870: 2f 80 00 00 cmpwi cr7,r0,0
ffc30874: 41 9e 00 10 beq- cr7,ffc30884 <rmdir+0x15c>
ffc30878: 7f e3 fb 78 mr r3,r31
ffc3087c: 7c 09 03 a6 mtctr r0
ffc30880: 4e 80 04 21 bctrl
if ( free_parentloc )
ffc30884: 2f 9d 00 00 cmpwi cr7,r29,0
ffc30888: 41 9e 00 28 beq- cr7,ffc308b0 <rmdir+0x188>
rtems_filesystem_freenode( &parentloc );
ffc3088c: 81 21 00 14 lwz r9,20(r1)
ffc30890: 2f 89 00 00 cmpwi cr7,r9,0
ffc30894: 41 9e 00 1c beq- cr7,ffc308b0 <rmdir+0x188>
ffc30898: 80 09 00 1c lwz r0,28(r9)
ffc3089c: 2f 80 00 00 cmpwi cr7,r0,0
ffc308a0: 41 9e 00 10 beq- cr7,ffc308b0 <rmdir+0x188>
ffc308a4: 7f c3 f3 78 mr r3,r30
ffc308a8: 7c 09 03 a6 mtctr r0
ffc308ac: 4e 80 04 21 bctrl
return result;
}
ffc308b0: 80 01 00 4c lwz r0,76(r1)
ffc308b4: 7f 83 e3 78 mr r3,r28
ffc308b8: 83 a1 00 3c lwz r29,60(r1)
ffc308bc: 7c 08 03 a6 mtlr r0
ffc308c0: 83 81 00 38 lwz r28,56(r1)
ffc308c4: 83 c1 00 40 lwz r30,64(r1)
ffc308c8: 83 e1 00 44 lwz r31,68(r1)
ffc308cc: 38 21 00 48 addi r1,r1,72
ffc308d0: 4e 80 00 20 blr
*/
parentpathlen = rtems_filesystem_dirname ( pathname );
if ( parentpathlen == 0 )
rtems_filesystem_get_start_loc( pathname, &i, &parentloc );
ffc308d4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc308d8: 81 29 34 ec lwz r9,13548(r9) <== NOT EXECUTED
ffc308dc: 3b a0 00 00 li r29,0 <== NOT EXECUTED
ffc308e0: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED
ffc308e4: 81 09 00 04 lwz r8,4(r9) <== NOT EXECUTED
ffc308e8: 81 49 00 08 lwz r10,8(r9) <== NOT EXECUTED
ffc308ec: 81 69 00 0c lwz r11,12(r9) <== NOT EXECUTED
ffc308f0: 91 01 00 08 stw r8,8(r1) <== NOT EXECUTED
ffc308f4: 91 41 00 0c stw r10,12(r1) <== NOT EXECUTED
ffc308f8: 91 61 00 10 stw r11,16(r1) <== NOT EXECUTED
ffc308fc: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED
ffc30900: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED
ffc30904: 90 01 00 18 stw r0,24(r1) <== NOT EXECUTED
ffc30908: 4b ff fe 9c b ffc307a4 <rmdir+0x7c> <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ){
rtems_filesystem_freenode( &loc );
ffc3090c: 81 21 00 28 lwz r9,40(r1)
ffc30910: 2f 89 00 00 cmpwi cr7,r9,0
ffc30914: 41 9e 00 1c beq- cr7,ffc30930 <rmdir+0x208>
ffc30918: 80 09 00 1c lwz r0,28(r9)
ffc3091c: 2f 80 00 00 cmpwi cr7,r0,0
ffc30920: 41 9e 00 10 beq- cr7,ffc30930 <rmdir+0x208>
ffc30924: 7f e3 fb 78 mr r3,r31
ffc30928: 7c 09 03 a6 mtctr r0
ffc3092c: 4e 80 04 21 bctrl
if ( free_parentloc )
ffc30930: 2f 9d 00 00 cmpwi cr7,r29,0
ffc30934: 41 9e 00 28 beq- cr7,ffc3095c <rmdir+0x234>
rtems_filesystem_freenode( &parentloc );
ffc30938: 81 21 00 14 lwz r9,20(r1)
ffc3093c: 2f 89 00 00 cmpwi cr7,r9,0
ffc30940: 41 9e 00 1c beq- cr7,ffc3095c <rmdir+0x234>
ffc30944: 80 09 00 1c lwz r0,28(r9)
ffc30948: 2f 80 00 00 cmpwi cr7,r0,0
ffc3094c: 41 9e 00 10 beq- cr7,ffc3095c <rmdir+0x234>
ffc30950: 38 61 00 08 addi r3,r1,8
ffc30954: 7c 09 03 a6 mtctr r0
ffc30958: 4e 80 04 21 bctrl
rtems_set_errno_and_return_minus_one( ENOTDIR );
ffc3095c: 48 01 c2 1d bl ffc4cb78 <__errno>
ffc30960: 38 00 00 14 li r0,20
ffc30964: 90 03 00 00 stw r0,0(r3)
ffc30968: 3b 80 ff ff li r28,-1
ffc3096c: 4b ff ff 44 b ffc308b0 <rmdir+0x188>
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
0, &loc, false );
if ( result != 0 ) {
if ( free_parentloc )
ffc30970: 2f 9d 00 00 cmpwi cr7,r29,0
ffc30974: 40 9e 00 0c bne- cr7,ffc30980 <rmdir+0x258>
result = (*loc.handlers->rmnod_h)( &parentloc, &loc );
rtems_filesystem_freenode( &loc );
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
ffc30978: 3b 80 ff ff li r28,-1
ffc3097c: 4b ff ff 34 b ffc308b0 <rmdir+0x188>
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
0, &loc, false );
if ( result != 0 ) {
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
ffc30980: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED
ffc30984: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc30988: 41 9e ff f0 beq+ cr7,ffc30978 <rmdir+0x250> <== NOT EXECUTED
ffc3098c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc30990: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc30994: 41 9e ff e4 beq+ cr7,ffc30978 <rmdir+0x250> <== NOT EXECUTED
ffc30998: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED
ffc3099c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc309a0: 3b 80 ff ff li r28,-1 <== NOT EXECUTED
ffc309a4: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc309a8: 4b ff ff 08 b ffc308b0 <rmdir+0x188> <== NOT EXECUTED
/*
* Use the filesystems rmnod to remove the node.
*/
if ( !loc.handlers->rmnod_h ){
rtems_filesystem_freenode( &loc );
ffc309ac: 81 21 00 28 lwz r9,40(r1) <== NOT EXECUTED
ffc309b0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc309b4: 41 9e 00 1c beq- cr7,ffc309d0 <rmdir+0x2a8> <== NOT EXECUTED
ffc309b8: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc309bc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc309c0: 41 9e 00 10 beq- cr7,ffc309d0 <rmdir+0x2a8> <== NOT EXECUTED
ffc309c4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc309c8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc309cc: 4e 80 04 21 bctrl <== NOT EXECUTED
if ( free_parentloc )
ffc309d0: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED
ffc309d4: 41 9e 00 28 beq- cr7,ffc309fc <rmdir+0x2d4> <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
ffc309d8: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED
ffc309dc: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc309e0: 41 9e 00 1c beq- cr7,ffc309fc <rmdir+0x2d4> <== NOT EXECUTED
ffc309e4: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc309e8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc309ec: 41 9e 00 10 beq- cr7,ffc309fc <rmdir+0x2d4> <== NOT EXECUTED
ffc309f0: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED
ffc309f4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc309f8: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc309fc: 48 01 c1 7d bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc30a00: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc30a04: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc30a08: 3b 80 ff ff li r28,-1 <== NOT EXECUTED
ffc30a0c: 4b ff fe a4 b ffc308b0 <rmdir+0x188> <== NOT EXECUTED
parentpathlen = rtems_filesystem_dirname ( pathname );
if ( parentpathlen == 0 )
rtems_filesystem_get_start_loc( pathname, &i, &parentloc );
else {
result = rtems_filesystem_evaluate_path(pathname, parentpathlen,
ffc30a10: 7f e3 fb 78 mr r3,r31
ffc30a14: 7f c4 f3 78 mr r4,r30
ffc30a18: 38 a0 00 02 li r5,2
ffc30a1c: 38 c1 00 08 addi r6,r1,8
ffc30a20: 38 e0 00 00 li r7,0
ffc30a24: 4b fd 6e 69 bl ffc0788c <rtems_filesystem_evaluate_path>
RTEMS_LIBIO_PERMS_WRITE,
&parentloc,
false );
if ( result != 0 )
ffc30a28: 2f 83 00 00 cmpwi cr7,r3,0
ffc30a2c: 40 be ff 4c bne- cr7,ffc30978 <rmdir+0x250>
ffc30a30: 3b a0 00 01 li r29,1
ffc30a34: 4b ff fd 70 b ffc307a4 <rmdir+0x7c>
ffc1a26c <rtems_assoc_name_bad>:
uint32_t bad_value
#else
uint32_t bad_value __attribute((unused))
#endif
)
{
ffc1a26c: 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;
}
ffc1a270: 38 63 22 0c addi r3,r3,8716 <== NOT EXECUTED
ffc1a274: 4e 80 00 20 blr <== NOT EXECUTED
ffc166e0 <rtems_assoc_name_by_local>:
const char *rtems_assoc_name_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
ffc166e0: 94 21 ff f0 stwu r1,-16(r1)
ffc166e4: 7c 08 02 a6 mflr r0
ffc166e8: 93 e1 00 0c stw r31,12(r1)
ffc166ec: 7c 9f 23 78 mr r31,r4
ffc166f0: 90 01 00 14 stw r0,20(r1)
const rtems_assoc_t *nap;
nap = rtems_assoc_ptr_by_local(ap, local_value);
ffc166f4: 48 00 00 41 bl ffc16734 <rtems_assoc_ptr_by_local>
if (nap)
ffc166f8: 2c 03 00 00 cmpwi r3,0
ffc166fc: 41 82 00 1c beq- ffc16718 <rtems_assoc_name_by_local+0x38>
return nap->name;
return rtems_assoc_name_bad(local_value);
}
ffc16700: 80 01 00 14 lwz r0,20(r1)
{
const rtems_assoc_t *nap;
nap = rtems_assoc_ptr_by_local(ap, local_value);
if (nap)
return nap->name;
ffc16704: 80 63 00 00 lwz r3,0(r3)
return rtems_assoc_name_bad(local_value);
}
ffc16708: 7c 08 03 a6 mtlr r0
ffc1670c: 83 e1 00 0c lwz r31,12(r1)
ffc16710: 38 21 00 10 addi r1,r1,16
ffc16714: 4e 80 00 20 blr
nap = rtems_assoc_ptr_by_local(ap, local_value);
if (nap)
return nap->name;
return rtems_assoc_name_bad(local_value);
ffc16718: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc1671c: 48 00 3b 51 bl ffc1a26c <rtems_assoc_name_bad> <== NOT EXECUTED
}
ffc16720: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc16724: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc16728: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc1672c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc16730: 4e 80 00 20 blr <== NOT EXECUTED
ffc11ae0 <rtems_assoc_ptr_by_local>:
const rtems_assoc_t *rtems_assoc_ptr_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
ffc11ae0: 94 21 ff f0 stwu r1,-16(r1)
ffc11ae4: 7c 08 02 a6 mflr r0
ffc11ae8: 90 01 00 14 stw r0,20(r1)
ffc11aec: 93 e1 00 0c stw r31,12(r1)
ffc11af0: 7c 7f 1b 78 mr r31,r3
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
ffc11af4: 80 63 00 00 lwz r3,0(r3)
const rtems_assoc_t *rtems_assoc_ptr_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
ffc11af8: 93 c1 00 08 stw r30,8(r1)
ffc11afc: 7c 9e 23 78 mr r30,r4
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
ffc11b00: 2f 83 00 00 cmpwi cr7,r3,0
ffc11b04: 41 9e 00 94 beq- cr7,ffc11b98 <rtems_assoc_ptr_by_local+0xb8>
ffc11b08: 3c 80 ff c2 lis r4,-62
ffc11b0c: 38 84 e3 e4 addi r4,r4,-7196
ffc11b10: 48 00 12 85 bl ffc12d94 <strcmp>
ffc11b14: 39 20 00 00 li r9,0
ffc11b18: 2f 83 00 00 cmpwi cr7,r3,0
ffc11b1c: 40 9e 00 34 bne- cr7,ffc11b50 <rtems_assoc_ptr_by_local+0x70>
default_ap = ap++;
for ( ; ap->name; ap++)
ffc11b20: 81 3f 00 0c lwz r9,12(r31) <== NOT EXECUTED
)
{
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
default_ap = ap++;
ffc11b24: 38 1f 00 0c addi r0,r31,12 <== NOT EXECUTED
for ( ; ap->name; ap++)
ffc11b28: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc11b2c: 41 9e 00 30 beq- cr7,ffc11b5c <rtems_assoc_ptr_by_local+0x7c><== NOT EXECUTED
ffc11b30: 7f e9 fb 78 mr r9,r31 <== NOT EXECUTED
ffc11b34: 7c 1f 03 78 mr r31,r0 <== NOT EXECUTED
if (ap->local_value == local_value)
ffc11b38: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED
ffc11b3c: 7f 80 f0 00 cmpw cr7,r0,r30 <== NOT EXECUTED
ffc11b40: 41 9e 00 1c beq- cr7,ffc11b5c <rtems_assoc_ptr_by_local+0x7c><== NOT EXECUTED
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
default_ap = ap++;
for ( ; ap->name; ap++)
ffc11b44: 84 1f 00 0c lwzu r0,12(r31)
ffc11b48: 2f 80 00 00 cmpwi cr7,r0,0
ffc11b4c: 41 9e 00 2c beq- cr7,ffc11b78 <rtems_assoc_ptr_by_local+0x98>
if (ap->local_value == local_value)
ffc11b50: 80 1f 00 04 lwz r0,4(r31)
ffc11b54: 7f 80 f0 00 cmpw cr7,r0,r30
ffc11b58: 40 9e ff ec bne+ cr7,ffc11b44 <rtems_assoc_ptr_by_local+0x64>
return ap;
return default_ap;
}
ffc11b5c: 80 01 00 14 lwz r0,20(r1)
ffc11b60: 7f e3 fb 78 mr r3,r31
ffc11b64: 83 c1 00 08 lwz r30,8(r1)
ffc11b68: 7c 08 03 a6 mtlr r0
ffc11b6c: 83 e1 00 0c lwz r31,12(r1)
ffc11b70: 38 21 00 10 addi r1,r1,16
ffc11b74: 4e 80 00 20 blr
ffc11b78: 80 01 00 14 lwz r0,20(r1)
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
default_ap = ap++;
for ( ; ap->name; ap++)
ffc11b7c: 7d 3f 4b 78 mr r31,r9
if (ap->local_value == local_value)
return ap;
return default_ap;
}
ffc11b80: 7f e3 fb 78 mr r3,r31
ffc11b84: 83 c1 00 08 lwz r30,8(r1)
ffc11b88: 7c 08 03 a6 mtlr r0
ffc11b8c: 83 e1 00 0c lwz r31,12(r1)
ffc11b90: 38 21 00 10 addi r1,r1,16
ffc11b94: 4e 80 00 20 blr
ffc11b98: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
uint32_t local_value
)
{
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
ffc11b9c: 3b e0 00 00 li r31,0 <== NOT EXECUTED
for ( ; ap->name; ap++)
if (ap->local_value == local_value)
return ap;
return default_ap;
}
ffc11ba0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc11ba4: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED
ffc11ba8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc11bac: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc11bb0: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc11bb4: 4e 80 00 20 blr <== NOT EXECUTED
ffc10aac <rtems_assoc_ptr_by_remote>:
const rtems_assoc_t *rtems_assoc_ptr_by_remote(
const rtems_assoc_t *ap,
uint32_t remote_value
)
{
ffc10aac: 94 21 ff f0 stwu r1,-16(r1)
ffc10ab0: 7c 08 02 a6 mflr r0
ffc10ab4: 90 01 00 14 stw r0,20(r1)
ffc10ab8: 93 e1 00 0c stw r31,12(r1)
ffc10abc: 7c 7f 1b 78 mr r31,r3
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
ffc10ac0: 80 63 00 00 lwz r3,0(r3)
const rtems_assoc_t *rtems_assoc_ptr_by_remote(
const rtems_assoc_t *ap,
uint32_t remote_value
)
{
ffc10ac4: 93 c1 00 08 stw r30,8(r1)
ffc10ac8: 7c 9e 23 78 mr r30,r4
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
ffc10acc: 2f 83 00 00 cmpwi cr7,r3,0
ffc10ad0: 41 9e 00 94 beq- cr7,ffc10b64 <rtems_assoc_ptr_by_remote+0xb8>
ffc10ad4: 3c 80 ff c2 lis r4,-62
ffc10ad8: 38 84 e3 e4 addi r4,r4,-7196
ffc10adc: 48 00 22 b9 bl ffc12d94 <strcmp>
ffc10ae0: 39 20 00 00 li r9,0
ffc10ae4: 2f 83 00 00 cmpwi cr7,r3,0
ffc10ae8: 40 9e 00 34 bne- cr7,ffc10b1c <rtems_assoc_ptr_by_remote+0x70>
default_ap = ap++;
for ( ; ap->name; ap++)
ffc10aec: 81 3f 00 0c lwz r9,12(r31) <== NOT EXECUTED
)
{
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
default_ap = ap++;
ffc10af0: 38 1f 00 0c addi r0,r31,12 <== NOT EXECUTED
for ( ; ap->name; ap++)
ffc10af4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc10af8: 41 9e 00 30 beq- cr7,ffc10b28 <rtems_assoc_ptr_by_remote+0x7c><== NOT EXECUTED
ffc10afc: 7f e9 fb 78 mr r9,r31 <== NOT EXECUTED
ffc10b00: 7c 1f 03 78 mr r31,r0 <== NOT EXECUTED
if (ap->remote_value == remote_value)
ffc10b04: 80 1f 00 08 lwz r0,8(r31) <== NOT EXECUTED
ffc10b08: 7f 80 f0 00 cmpw cr7,r0,r30 <== NOT EXECUTED
ffc10b0c: 41 9e 00 1c beq- cr7,ffc10b28 <rtems_assoc_ptr_by_remote+0x7c><== NOT EXECUTED
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
default_ap = ap++;
for ( ; ap->name; ap++)
ffc10b10: 84 1f 00 0c lwzu r0,12(r31)
ffc10b14: 2f 80 00 00 cmpwi cr7,r0,0
ffc10b18: 41 9e 00 2c beq- cr7,ffc10b44 <rtems_assoc_ptr_by_remote+0x98>
if (ap->remote_value == remote_value)
ffc10b1c: 80 1f 00 08 lwz r0,8(r31)
ffc10b20: 7f 80 f0 00 cmpw cr7,r0,r30
ffc10b24: 40 9e ff ec bne+ cr7,ffc10b10 <rtems_assoc_ptr_by_remote+0x64>
return ap;
return default_ap;
}
ffc10b28: 80 01 00 14 lwz r0,20(r1)
ffc10b2c: 7f e3 fb 78 mr r3,r31
ffc10b30: 83 c1 00 08 lwz r30,8(r1)
ffc10b34: 7c 08 03 a6 mtlr r0
ffc10b38: 83 e1 00 0c lwz r31,12(r1)
ffc10b3c: 38 21 00 10 addi r1,r1,16
ffc10b40: 4e 80 00 20 blr
ffc10b44: 80 01 00 14 lwz r0,20(r1)
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
default_ap = ap++;
for ( ; ap->name; ap++)
ffc10b48: 7d 3f 4b 78 mr r31,r9
if (ap->remote_value == remote_value)
return ap;
return default_ap;
}
ffc10b4c: 7f e3 fb 78 mr r3,r31
ffc10b50: 83 c1 00 08 lwz r30,8(r1)
ffc10b54: 7c 08 03 a6 mtlr r0
ffc10b58: 83 e1 00 0c lwz r31,12(r1)
ffc10b5c: 38 21 00 10 addi r1,r1,16
ffc10b60: 4e 80 00 20 blr
ffc10b64: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
uint32_t remote_value
)
{
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
ffc10b68: 3b e0 00 00 li r31,0 <== NOT EXECUTED
for ( ; ap->name; ap++)
if (ap->remote_value == remote_value)
return ap;
return default_ap;
}
ffc10b6c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc10b70: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED
ffc10b74: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc10b78: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc10b7c: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc10b80: 4e 80 00 20 blr <== NOT EXECUTED
ffc11764 <rtems_assoc_remote_by_local>:
uint32_t rtems_assoc_remote_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
ffc11764: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED
ffc11768: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc1176c: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
const rtems_assoc_t *nap;
nap = rtems_assoc_ptr_by_local(ap, local_value);
ffc11770: 48 00 03 71 bl ffc11ae0 <rtems_assoc_ptr_by_local> <== NOT EXECUTED
if (nap)
ffc11774: 7c 69 1b 79 mr. r9,r3 <== NOT EXECUTED
ffc11778: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc1177c: 41 82 00 08 beq- ffc11784 <rtems_assoc_remote_by_local+0x20><== NOT EXECUTED
return nap->remote_value;
ffc11780: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED
return 0;
}
ffc11784: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc11788: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc1178c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc11790: 4e 80 00 20 blr <== NOT EXECUTED
ffc1171c <rtems_deviceio_errno>:
{ 0, 0, 0 },
};
int
rtems_deviceio_errno(rtems_status_code code)
{
ffc1171c: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED
ffc11720: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc11724: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED
int rc;
if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code)))
ffc11728: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED
{ 0, 0, 0 },
};
int
rtems_deviceio_errno(rtems_status_code code)
{
ffc1172c: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED
int rc;
if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code)))
ffc11730: 38 63 e4 0c addi r3,r3,-7156 <== NOT EXECUTED
{ 0, 0, 0 },
};
int
rtems_deviceio_errno(rtems_status_code code)
{
ffc11734: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED
int rc;
if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code)))
ffc11738: 48 00 00 2d bl ffc11764 <rtems_assoc_remote_by_local> <== NOT EXECUTED
ffc1173c: 7c 7f 1b 79 mr. r31,r3 <== NOT EXECUTED
ffc11740: 41 a2 00 0c beq+ ffc1174c <rtems_deviceio_errno+0x30> <== NOT EXECUTED
{
errno = rc;
ffc11744: 48 00 04 75 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc11748: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED
return -1;
}
return -1;
}
ffc1174c: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc11750: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc11754: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc11758: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc1175c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc11760: 4e 80 00 20 blr <== NOT EXECUTED
ffc0ae28 <rtems_error>:
int rtems_error(
rtems_error_code_t error_flag,
const char *printf_format,
...
)
{
ffc0ae28: 94 21 ff 90 stwu r1,-112(r1) <== NOT EXECUTED
ffc0ae2c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc0ae30: 90 a1 00 18 stw r5,24(r1) <== NOT EXECUTED
ffc0ae34: 90 01 00 74 stw r0,116(r1) <== NOT EXECUTED
ffc0ae38: 90 c1 00 1c stw r6,28(r1) <== NOT EXECUTED
ffc0ae3c: 90 e1 00 20 stw r7,32(r1) <== NOT EXECUTED
ffc0ae40: 91 01 00 24 stw r8,36(r1) <== NOT EXECUTED
ffc0ae44: 91 21 00 28 stw r9,40(r1) <== NOT EXECUTED
ffc0ae48: 91 41 00 2c stw r10,44(r1) <== NOT EXECUTED
ffc0ae4c: 40 86 00 24 bne- cr1,ffc0ae70 <rtems_error+0x48> <== NOT EXECUTED
ffc0ae50: d8 21 00 30 stfd f1,48(r1) <== NOT EXECUTED
ffc0ae54: d8 41 00 38 stfd f2,56(r1) <== NOT EXECUTED
ffc0ae58: d8 61 00 40 stfd f3,64(r1) <== NOT EXECUTED
ffc0ae5c: d8 81 00 48 stfd f4,72(r1) <== NOT EXECUTED
ffc0ae60: d8 a1 00 50 stfd f5,80(r1) <== NOT EXECUTED
ffc0ae64: d8 c1 00 58 stfd f6,88(r1) <== NOT EXECUTED
ffc0ae68: d8 e1 00 60 stfd f7,96(r1) <== NOT EXECUTED
ffc0ae6c: d9 01 00 68 stfd f8,104(r1) <== NOT EXECUTED
va_list arglist;
int chars_written;
va_start(arglist, printf_format);
ffc0ae70: 38 00 00 02 li r0,2 <== NOT EXECUTED
ffc0ae74: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED
ffc0ae78: 38 00 00 00 li r0,0 <== NOT EXECUTED
chars_written = rtems_verror(error_flag, printf_format, arglist);
ffc0ae7c: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED
)
{
va_list arglist;
int chars_written;
va_start(arglist, printf_format);
ffc0ae80: 98 01 00 09 stb r0,9(r1) <== NOT EXECUTED
ffc0ae84: 38 01 00 78 addi r0,r1,120 <== NOT EXECUTED
ffc0ae88: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
ffc0ae8c: 38 01 00 10 addi r0,r1,16 <== NOT EXECUTED
ffc0ae90: 90 01 00 10 stw r0,16(r1) <== NOT EXECUTED
chars_written = rtems_verror(error_flag, printf_format, arglist);
ffc0ae94: 4b ff fd 01 bl ffc0ab94 <rtems_verror> <== NOT EXECUTED
va_end(arglist);
return chars_written;
}
ffc0ae98: 80 01 00 74 lwz r0,116(r1) <== NOT EXECUTED
ffc0ae9c: 38 21 00 70 addi r1,r1,112 <== NOT EXECUTED
ffc0aea0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0aea4: 4e 80 00 20 blr <== NOT EXECUTED
ffc044ec <rtems_filesystem_evaluate_path>:
/*
* Verify Input parameters.
*/
if ( !pathname )
ffc044ec: 2c 03 00 00 cmpwi r3,0
int pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc,
int follow_link
)
{
ffc044f0: 94 21 ff f8 stwu r1,-8(r1)
ffc044f4: 7c 08 02 a6 mflr r0
ffc044f8: 90 01 00 0c stw r0,12(r1)
/*
* Verify Input parameters.
*/
if ( !pathname )
ffc044fc: 41 82 00 e8 beq- ffc045e4 <rtems_filesystem_evaluate_path+0xf8>
rtems_set_errno_and_return_minus_one( EFAULT );
if ( !pathloc )
ffc04500: 2f 86 00 00 cmpwi cr7,r6,0
ffc04504: 41 9e 00 c0 beq- cr7,ffc045c4 <rtems_filesystem_evaluate_path+0xd8>
/*
* Evaluate the path using the optable evalpath.
*/
rtems_filesystem_get_start_loc( pathname, &i, pathloc );
ffc04508: 88 03 00 00 lbz r0,0(r3)
ffc0450c: 2f 80 00 2f cmpwi cr7,r0,47
ffc04510: 41 9e 00 14 beq- cr7,ffc04524 <rtems_filesystem_evaluate_path+0x38>
ffc04514: 2f 80 00 5c cmpwi cr7,r0,92
ffc04518: 41 9e 00 0c beq- cr7,ffc04524 <rtems_filesystem_evaluate_path+0x38>
ffc0451c: 2f 80 00 00 cmpwi cr7,r0,0
ffc04520: 40 9e 00 54 bne- cr7,ffc04574 <rtems_filesystem_evaluate_path+0x88>
ffc04524: 3d 20 00 00 lis r9,0
ffc04528: 81 29 26 9c lwz r9,9884(r9)
ffc0452c: 39 60 00 01 li r11,1
/*
* We evaluation the path relative to the start location we get got.
*/
return rtems_filesystem_evaluate_relative_path( &pathname[i],
ffc04530: 7c 63 5a 14 add r3,r3,r11
/*
* Evaluate the path using the optable evalpath.
*/
rtems_filesystem_get_start_loc( pathname, &i, pathloc );
ffc04534: 80 09 00 18 lwz r0,24(r9)
ffc04538: 81 89 00 1c lwz r12,28(r9)
ffc0453c: 81 09 00 20 lwz r8,32(r9)
ffc04540: 81 49 00 24 lwz r10,36(r9)
ffc04544: 90 06 00 00 stw r0,0(r6)
ffc04548: 38 00 00 01 li r0,1
/*
* We evaluation the path relative to the start location we get got.
*/
return rtems_filesystem_evaluate_relative_path( &pathname[i],
ffc0454c: 7c 80 20 50 subf r4,r0,r4
/*
* Evaluate the path using the optable evalpath.
*/
rtems_filesystem_get_start_loc( pathname, &i, pathloc );
ffc04550: 91 86 00 04 stw r12,4(r6)
return rtems_filesystem_evaluate_relative_path( &pathname[i],
pathnamelen - i,
flags,
pathloc,
follow_link );
}
ffc04554: 80 01 00 0c lwz r0,12(r1)
ffc04558: 38 21 00 08 addi r1,r1,8
/*
* Evaluate the path using the optable evalpath.
*/
rtems_filesystem_get_start_loc( pathname, &i, pathloc );
ffc0455c: 91 06 00 08 stw r8,8(r6)
return rtems_filesystem_evaluate_relative_path( &pathname[i],
pathnamelen - i,
flags,
pathloc,
follow_link );
}
ffc04560: 7c 08 03 a6 mtlr r0
/*
* Evaluate the path using the optable evalpath.
*/
rtems_filesystem_get_start_loc( pathname, &i, pathloc );
ffc04564: 91 46 00 0c stw r10,12(r6)
ffc04568: 81 29 00 28 lwz r9,40(r9)
ffc0456c: 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],
ffc04570: 4b ff fe 54 b ffc043c4 <rtems_filesystem_evaluate_relative_path>
/*
* Evaluate the path using the optable evalpath.
*/
rtems_filesystem_get_start_loc( pathname, &i, pathloc );
ffc04574: 3d 20 00 00 lis r9,0
ffc04578: 81 29 26 9c lwz r9,9884(r9)
ffc0457c: 39 60 00 00 li r11,0
/*
* We evaluation the path relative to the start location we get got.
*/
return rtems_filesystem_evaluate_relative_path( &pathname[i],
ffc04580: 7c 63 5a 14 add r3,r3,r11
/*
* Evaluate the path using the optable evalpath.
*/
rtems_filesystem_get_start_loc( pathname, &i, pathloc );
ffc04584: 80 09 00 04 lwz r0,4(r9)
ffc04588: 81 89 00 08 lwz r12,8(r9)
ffc0458c: 81 09 00 0c lwz r8,12(r9)
ffc04590: 81 49 00 10 lwz r10,16(r9)
ffc04594: 90 06 00 00 stw r0,0(r6)
ffc04598: 38 00 00 00 li r0,0
/*
* We evaluation the path relative to the start location we get got.
*/
return rtems_filesystem_evaluate_relative_path( &pathname[i],
ffc0459c: 7c 80 20 50 subf r4,r0,r4
/*
* Evaluate the path using the optable evalpath.
*/
rtems_filesystem_get_start_loc( pathname, &i, pathloc );
ffc045a0: 91 86 00 04 stw r12,4(r6)
return rtems_filesystem_evaluate_relative_path( &pathname[i],
pathnamelen - i,
flags,
pathloc,
follow_link );
}
ffc045a4: 80 01 00 0c lwz r0,12(r1)
ffc045a8: 38 21 00 08 addi r1,r1,8
/*
* Evaluate the path using the optable evalpath.
*/
rtems_filesystem_get_start_loc( pathname, &i, pathloc );
ffc045ac: 91 06 00 08 stw r8,8(r6)
return rtems_filesystem_evaluate_relative_path( &pathname[i],
pathnamelen - i,
flags,
pathloc,
follow_link );
}
ffc045b0: 7c 08 03 a6 mtlr r0
/*
* Evaluate the path using the optable evalpath.
*/
rtems_filesystem_get_start_loc( pathname, &i, pathloc );
ffc045b4: 91 46 00 0c stw r10,12(r6)
ffc045b8: 81 29 00 14 lwz r9,20(r9)
ffc045bc: 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],
ffc045c0: 4b ff fe 04 b ffc043c4 <rtems_filesystem_evaluate_relative_path>
if ( !pathname )
rtems_set_errno_and_return_minus_one( EFAULT );
if ( !pathloc )
rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */
ffc045c4: 48 00 d5 f5 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc045c8: 38 00 00 05 li r0,5 <== NOT EXECUTED
ffc045cc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
return rtems_filesystem_evaluate_relative_path( &pathname[i],
pathnamelen - i,
flags,
pathloc,
follow_link );
}
ffc045d0: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc045d4: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc045d8: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc045dc: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc045e0: 4e 80 00 20 blr <== NOT EXECUTED
/*
* Verify Input parameters.
*/
if ( !pathname )
rtems_set_errno_and_return_minus_one( EFAULT );
ffc045e4: 48 00 d5 d5 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc045e8: 38 00 00 0e li r0,14 <== NOT EXECUTED
ffc045ec: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc045f0: 4b ff ff e0 b ffc045d0 <rtems_filesystem_evaluate_path+0xe4><== NOT EXECUTED
ffc043c4 <rtems_filesystem_evaluate_relative_path>:
/*
* Verify Input parameters.
*/
if ( !pathname )
ffc043c4: 2f 83 00 00 cmpwi cr7,r3,0
int pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc,
int follow_link
)
{
ffc043c8: 94 21 ff e8 stwu r1,-24(r1)
ffc043cc: 7c 08 02 a6 mflr r0
ffc043d0: 93 a1 00 0c stw r29,12(r1)
ffc043d4: 7c bd 2b 78 mr r29,r5
ffc043d8: 93 c1 00 10 stw r30,16(r1)
ffc043dc: 7c fe 3b 78 mr r30,r7
ffc043e0: 93 e1 00 14 stw r31,20(r1)
ffc043e4: 7c df 33 78 mr r31,r6
ffc043e8: 90 01 00 1c stw r0,28(r1)
ffc043ec: 93 81 00 08 stw r28,8(r1)
/*
* Verify Input parameters.
*/
if ( !pathname )
ffc043f0: 41 9e 00 d4 beq- cr7,ffc044c4 <rtems_filesystem_evaluate_relative_path+0x100>
rtems_set_errno_and_return_minus_one( EFAULT );
if ( !pathloc )
ffc043f4: 2f 86 00 00 cmpwi cr7,r6,0
ffc043f8: 41 9e 00 e0 beq- cr7,ffc044d8 <rtems_filesystem_evaluate_relative_path+0x114>
rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */
if ( !pathloc->ops->evalpath_h )
ffc043fc: 81 26 00 0c lwz r9,12(r6)
ffc04400: 80 09 00 00 lwz r0,0(r9)
ffc04404: 2f 80 00 00 cmpwi cr7,r0,0
ffc04408: 41 9e 00 a8 beq- cr7,ffc044b0 <rtems_filesystem_evaluate_relative_path+0xec>
rtems_set_errno_and_return_minus_one( ENOTSUP );
result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc );
ffc0440c: 7c 09 03 a6 mtctr r0
ffc04410: 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 ) {
ffc04414: 7c 7c 1b 79 mr. r28,r3
ffc04418: 40 82 00 34 bne- ffc0444c <rtems_filesystem_evaluate_relative_path+0x88>
ffc0441c: 2f 9e 00 00 cmpwi cr7,r30,0
ffc04420: 41 9e 00 2c beq- cr7,ffc0444c <rtems_filesystem_evaluate_relative_path+0x88>
if ( !pathloc->ops->node_type_h ){
ffc04424: 81 3f 00 0c lwz r9,12(r31)
ffc04428: 80 09 00 10 lwz r0,16(r9)
ffc0442c: 2f 80 00 00 cmpwi cr7,r0,0
ffc04430: 41 9e 00 68 beq- cr7,ffc04498 <rtems_filesystem_evaluate_relative_path+0xd4>
rtems_filesystem_freenode( pathloc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
type = (*pathloc->ops->node_type_h)( pathloc );
ffc04434: 7f e3 fb 78 mr r3,r31
ffc04438: 7c 09 03 a6 mtctr r0
ffc0443c: 4e 80 04 21 bctrl
if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) ||
ffc04440: 38 63 ff fd addi r3,r3,-3
ffc04444: 2b 83 00 01 cmplwi cr7,r3,1
ffc04448: 40 9d 00 28 ble- cr7,ffc04470 <rtems_filesystem_evaluate_relative_path+0xac>
result = (*pathloc->ops->eval_link_h)( pathloc, flags );
}
}
return result;
}
ffc0444c: 80 01 00 1c lwz r0,28(r1)
ffc04450: 7f 83 e3 78 mr r3,r28
ffc04454: 83 a1 00 0c lwz r29,12(r1)
ffc04458: 7c 08 03 a6 mtlr r0
ffc0445c: 83 81 00 08 lwz r28,8(r1)
ffc04460: 83 c1 00 10 lwz r30,16(r1)
ffc04464: 83 e1 00 14 lwz r31,20(r1)
ffc04468: 38 21 00 18 addi r1,r1,24
ffc0446c: 4e 80 00 20 blr
type = (*pathloc->ops->node_type_h)( pathloc );
if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) ||
( type == RTEMS_FILESYSTEM_SYM_LINK ) ) {
if ( !pathloc->ops->eval_link_h ){
ffc04470: 81 3f 00 0c lwz r9,12(r31)
ffc04474: 80 09 00 34 lwz r0,52(r9)
ffc04478: 2f 80 00 00 cmpwi cr7,r0,0
ffc0447c: 41 9e 00 1c beq- cr7,ffc04498 <rtems_filesystem_evaluate_relative_path+0xd4>
* 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 );
ffc04480: 7f e3 fb 78 mr r3,r31
ffc04484: 7c 09 03 a6 mtctr r0
ffc04488: 7f a4 eb 78 mr r4,r29
ffc0448c: 4e 80 04 21 bctrl
ffc04490: 7c 7c 1b 78 mr r28,r3
ffc04494: 4b ff ff b8 b ffc0444c <rtems_filesystem_evaluate_relative_path+0x88>
if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) ||
( type == RTEMS_FILESYSTEM_SYM_LINK ) ) {
if ( !pathloc->ops->eval_link_h ){
rtems_filesystem_freenode( pathloc );
ffc04498: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc0449c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc044a0: 41 9e 00 10 beq- cr7,ffc044b0 <rtems_filesystem_evaluate_relative_path+0xec><== NOT EXECUTED
ffc044a4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc044a8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc044ac: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc044b0: 48 00 d7 09 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc044b4: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc044b8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc044bc: 3b 80 ff ff li r28,-1 <== NOT EXECUTED
ffc044c0: 4b ff ff 8c b ffc0444c <rtems_filesystem_evaluate_relative_path+0x88><== NOT EXECUTED
/*
* Verify Input parameters.
*/
if ( !pathname )
rtems_set_errno_and_return_minus_one( EFAULT );
ffc044c4: 48 00 d6 f5 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc044c8: 38 00 00 0e li r0,14 <== NOT EXECUTED
ffc044cc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc044d0: 3b 80 ff ff li r28,-1 <== NOT EXECUTED
ffc044d4: 4b ff ff 78 b ffc0444c <rtems_filesystem_evaluate_relative_path+0x88><== NOT EXECUTED
if ( !pathloc )
rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */
ffc044d8: 48 00 d6 e1 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc044dc: 38 00 00 05 li r0,5 <== NOT EXECUTED
ffc044e0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc044e4: 3b 80 ff ff li r28,-1 <== NOT EXECUTED
ffc044e8: 4b ff ff 64 b ffc0444c <rtems_filesystem_evaluate_relative_path+0x88><== NOT EXECUTED
ffc04160 <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 )
{
ffc04160: 94 21 ff c8 stwu r1,-56(r1)
ffc04164: 7c 08 02 a6 mflr r0
ffc04168: 93 e1 00 34 stw r31,52(r1)
/*
* Set the default umask to "022".
*/
rtems_filesystem_umask = 022;
ffc0416c: 3f e0 00 00 lis r31,0
ffc04170: 81 3f 26 9c lwz r9,9884(r31)
* configuration is a single instantiation of the IMFS or miniIMFS with
* a single "/dev" directory in it.
*/
void rtems_filesystem_initialize( void )
{
ffc04174: 90 01 00 3c stw r0,60(r1)
/*
* Set the default umask to "022".
*/
rtems_filesystem_umask = 022;
ffc04178: 38 00 00 12 li r0,18
ffc0417c: 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 )
{
ffc04180: 93 a1 00 2c stw r29,44(r1)
ffc04184: 93 c1 00 30 stw r30,48(r1)
*/
rtems_filesystem_umask = 022;
init_fs_mount_table();
ffc04188: 48 00 0b 3d bl ffc04cc4 <init_fs_mount_table>
/*
* mount the first filesystem.
*/
if ( rtems_filesystem_mount_table_size == 0 )
ffc0418c: 3d 20 00 00 lis r9,0
ffc04190: 80 09 26 58 lwz r0,9816(r9)
ffc04194: 2f 80 00 00 cmpwi cr7,r0,0
ffc04198: 41 9e 01 2c beq- cr7,ffc042c4 <rtems_filesystem_initialize+0x164>
rtems_fatal_error_occurred( 0xABCD0001 );
mt = &rtems_filesystem_mount_table[0];
ffc0419c: 3d 20 00 00 lis r9,0
ffc041a0: 81 29 26 54 lwz r9,9812(r9)
status = mount(
ffc041a4: 38 61 00 08 addi r3,r1,8
ffc041a8: 80 e9 00 0c lwz r7,12(r9)
ffc041ac: 80 89 00 00 lwz r4,0(r9)
ffc041b0: 80 a9 00 04 lwz r5,4(r9)
ffc041b4: 80 c9 00 08 lwz r6,8(r9)
ffc041b8: 48 00 0b 31 bl ffc04ce8 <mount>
&entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point );
if ( status == -1 )
ffc041bc: 2f 83 ff ff cmpwi cr7,r3,-1
ffc041c0: 41 9e 01 1c beq- cr7,ffc042dc <rtems_filesystem_initialize+0x17c>
* set_private_env() - but then: that's
* gonna hit performance.
*
* Till Straumann, 10/25/2002
*/
rtems_filesystem_root = entry->mt_fs_root;
ffc041c4: 81 61 00 08 lwz r11,8(r1)
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc041c8: 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;
ffc041cc: 81 3f 26 9c lwz r9,9884(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);
ffc041d0: 3b de df 8c addi r30,r30,-8308
* set_private_env() - but then: that's
* gonna hit performance.
*
* Till Straumann, 10/25/2002
*/
rtems_filesystem_root = entry->mt_fs_root;
ffc041d4: 80 eb 00 1c lwz r7,28(r11)
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc041d8: 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;
ffc041dc: 81 0b 00 20 lwz r8,32(r11)
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc041e0: 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;
ffc041e4: 81 4b 00 24 lwz r10,36(r11)
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc041e8: 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;
ffc041ec: 80 0b 00 28 lwz r0,40(r11)
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc041f0: 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;
ffc041f4: 90 e9 00 18 stw r7,24(r9)
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc041f8: 7f c3 f3 78 mr r3,r30
ffc041fc: 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;
ffc04200: 91 09 00 1c stw r8,28(r9)
ffc04204: 91 49 00 20 stw r10,32(r9)
ffc04208: 90 09 00 24 stw r0,36(r9)
ffc0420c: 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;
ffc04210: 39 60 00 00 li r11,0
ffc04214: 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;
ffc04218: 90 09 00 28 stw r0,40(r9)
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc0421c: 48 00 02 d1 bl ffc044ec <rtems_filesystem_evaluate_path>
rtems_filesystem_root = loc;
ffc04220: 81 3f 26 9c lwz r9,9884(r31)
ffc04224: 81 41 00 10 lwz r10,16(r1)
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc04228: 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;
ffc0422c: 81 61 00 14 lwz r11,20(r1)
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc04230: 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;
ffc04234: 80 01 00 18 lwz r0,24(r1)
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc04238: 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;
ffc0423c: 81 01 00 0c lwz r8,12(r1)
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc04240: 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;
ffc04244: 91 49 00 1c stw r10,28(r9)
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc04248: 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;
ffc0424c: 91 09 00 18 stw r8,24(r9)
ffc04250: 91 69 00 20 stw r11,32(r9)
ffc04254: 90 09 00 24 stw r0,36(r9)
ffc04258: 80 01 00 1c lwz r0,28(r1)
ffc0425c: 90 09 00 28 stw r0,40(r9)
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc04260: 48 00 02 8d bl ffc044ec <rtems_filesystem_evaluate_path>
rtems_filesystem_current = loc;
ffc04264: 80 01 00 18 lwz r0,24(r1)
ffc04268: 81 3f 26 9c lwz r9,9884(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);
ffc0426c: 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;
ffc04270: 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);
ffc04274: 38 63 df 90 addi r3,r3,-8304
/* 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;
ffc04278: 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);
ffc0427c: 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;
ffc04280: 81 01 00 0c lwz r8,12(r1)
ffc04284: 91 49 00 08 stw r10,8(r9)
ffc04288: 91 09 00 04 stw r8,4(r9)
ffc0428c: 91 69 00 0c stw r11,12(r9)
ffc04290: 90 09 00 10 stw r0,16(r9)
ffc04294: 80 01 00 1c lwz r0,28(r1)
ffc04298: 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);
ffc0429c: 48 00 08 1d bl ffc04ab8 <mkdir>
if ( status != 0 )
ffc042a0: 2f 83 00 00 cmpwi cr7,r3,0
ffc042a4: 40 9e 00 2c bne- cr7,ffc042d0 <rtems_filesystem_initialize+0x170>
* 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.
*/
}
ffc042a8: 80 01 00 3c lwz r0,60(r1)
ffc042ac: 83 a1 00 2c lwz r29,44(r1)
ffc042b0: 7c 08 03 a6 mtlr r0
ffc042b4: 83 c1 00 30 lwz r30,48(r1)
ffc042b8: 83 e1 00 34 lwz r31,52(r1)
ffc042bc: 38 21 00 38 addi r1,r1,56
ffc042c0: 4e 80 00 20 blr
/*
* mount the first filesystem.
*/
if ( rtems_filesystem_mount_table_size == 0 )
rtems_fatal_error_occurred( 0xABCD0001 );
ffc042c4: 3c 60 ab cd lis r3,-21555 <== NOT EXECUTED
ffc042c8: 60 63 00 01 ori r3,r3,1 <== NOT EXECUTED
ffc042cc: 48 00 4d 69 bl ffc09034 <rtems_fatal_error_occurred> <== NOT EXECUTED
* created that way by the IMFS.
*/
status = mkdir( "/dev", 0777);
if ( status != 0 )
rtems_fatal_error_occurred( 0xABCD0003 );
ffc042d0: 3c 60 ab cd lis r3,-21555 <== NOT EXECUTED
ffc042d4: 60 63 00 03 ori r3,r3,3 <== NOT EXECUTED
ffc042d8: 48 00 4d 5d bl ffc09034 <rtems_fatal_error_occurred> <== NOT EXECUTED
status = mount(
&entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point );
if ( status == -1 )
rtems_fatal_error_occurred( 0xABCD0002 );
ffc042dc: 3c 60 ab cd lis r3,-21555 <== NOT EXECUTED
ffc042e0: 60 63 00 02 ori r3,r3,2 <== NOT EXECUTED
ffc042e4: 48 00 4d 51 bl ffc09034 <rtems_fatal_error_occurred> <== NOT EXECUTED
ffc30e9c <rtems_filesystem_nodes_equal>:
);
bool rtems_filesystem_nodes_equal(
const rtems_filesystem_location_info_t *loc1,
const rtems_filesystem_location_info_t *loc2
){
ffc30e9c: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED
ffc30ea0: 80 64 00 00 lwz r3,0(r4) <== NOT EXECUTED
return ( loc1->node_access == loc2->node_access );
}
ffc30ea4: 7c 03 1a 78 xor r3,r0,r3 <== NOT EXECUTED
ffc30ea8: 7c 63 00 34 cntlzw r3,r3 <== NOT EXECUTED
ffc30eac: 54 63 d9 7e rlwinm r3,r3,27,5,31 <== NOT EXECUTED
ffc30eb0: 4e 80 00 20 blr <== NOT EXECUTED
ffc042e8 <rtems_filesystem_prefix_separators>:
{
/*
* Eat any separators at start of the path.
*/
int stripped = 0;
while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
ffc042e8: 88 03 00 00 lbz r0,0(r3)
int rtems_filesystem_prefix_separators(
const char *pathname,
int pathnamelen
)
{
ffc042ec: 7c 69 1b 78 mr r9,r3
/*
* Eat any separators at start of the path.
*/
int stripped = 0;
while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
ffc042f0: 2f 80 00 00 cmpwi cr7,r0,0
ffc042f4: 41 9e 00 3c beq- cr7,ffc04330 <rtems_filesystem_prefix_separators+0x48>
ffc042f8: 2f 84 00 00 cmpwi cr7,r4,0
ffc042fc: 7c 89 03 a6 mtctr r4
ffc04300: 38 60 00 00 li r3,0
ffc04304: 41 9e 00 2c beq- cr7,ffc04330 <rtems_filesystem_prefix_separators+0x48>
ffc04308: 2f 80 00 2f cmpwi cr7,r0,47
ffc0430c: 2f 00 00 5c cmpwi cr6,r0,92
ffc04310: 41 9e 00 08 beq- cr7,ffc04318 <rtems_filesystem_prefix_separators+0x30>
ffc04314: 4c ba 00 20 bnelr+ cr6
{
pathname++;
pathnamelen--;
stripped++;
ffc04318: 38 63 00 01 addi r3,r3,1
{
/*
* Eat any separators at start of the path.
*/
int stripped = 0;
while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
ffc0431c: 7c 09 18 ae lbzx r0,r9,r3
ffc04320: 2f 80 00 00 cmpwi cr7,r0,0
ffc04324: 4d 9e 00 20 beqlr cr7
ffc04328: 42 00 ff e0 bdnz+ ffc04308 <rtems_filesystem_prefix_separators+0x20>
pathname++;
pathnamelen--;
stripped++;
}
return stripped;
}
ffc0432c: 4e 80 00 20 blr <== NOT EXECUTED
{
/*
* Eat any separators at start of the path.
*/
int stripped = 0;
while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
ffc04330: 38 60 00 00 li r3,0 <== NOT EXECUTED
pathname++;
pathnamelen--;
stripped++;
}
return stripped;
}
ffc04334: 4e 80 00 20 blr <== NOT EXECUTED
ffc03f3c <rtems_io_lookup_name>:
rtems_status_code rtems_io_lookup_name(
const char *name,
rtems_driver_name_t *device_info
)
{
ffc03f3c: 94 21 ff c0 stwu r1,-64(r1) <== NOT EXECUTED
ffc03f40: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc03f44: 93 61 00 2c stw r27,44(r1) <== NOT EXECUTED
ffc03f48: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED
ffc03f4c: 93 81 00 30 stw r28,48(r1) <== NOT EXECUTED
ffc03f50: 93 a1 00 34 stw r29,52(r1) <== NOT EXECUTED
ffc03f54: 7c 9d 23 78 mr r29,r4 <== NOT EXECUTED
ffc03f58: 93 c1 00 38 stw r30,56(r1) <== NOT EXECUTED
ffc03f5c: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED
ffc03f60: 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 );
ffc03f64: 48 00 ef 51 bl ffc12eb4 <strlen> <== NOT EXECUTED
ffc03f68: 3b e1 00 08 addi r31,r1,8 <== NOT EXECUTED
ffc03f6c: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED
ffc03f70: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc03f74: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc03f78: 7f e6 fb 78 mr r6,r31 <== NOT EXECUTED
ffc03f7c: 38 e0 00 01 li r7,1 <== NOT EXECUTED
ffc03f80: 48 00 05 6d bl ffc044ec <rtems_filesystem_evaluate_path><== NOT EXECUTED
the_jnode = loc.node_access;
if ( !loc.ops->node_type_h ) {
ffc03f84: 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 );
ffc03f88: 7c 7c 1b 78 mr r28,r3 <== NOT EXECUTED
the_jnode = loc.node_access;
ffc03f8c: 83 61 00 08 lwz r27,8(r1) <== NOT EXECUTED
if ( !loc.ops->node_type_h ) {
ffc03f90: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED
ffc03f94: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc03f98: 41 9e 00 64 beq- cr7,ffc03ffc <rtems_io_lookup_name+0xc0><== NOT EXECUTED
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
node_type = (*loc.ops->node_type_h)( &loc );
ffc03f9c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc03fa0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc03fa4: 4e 80 04 21 bctrl <== NOT EXECUTED
if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) {
ffc03fa8: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED
ffc03fac: 41 9e 00 9c beq- cr7,ffc04048 <rtems_io_lookup_name+0x10c><== NOT EXECUTED
rtems_filesystem_freenode( &loc );
ffc03fb0: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED
ffc03fb4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc03fb8: 41 9e 00 e4 beq- cr7,ffc0409c <rtems_io_lookup_name+0x160><== NOT EXECUTED
ffc03fbc: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc03fc0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc03fc4: 41 9e 00 d8 beq- cr7,ffc0409c <rtems_io_lookup_name+0x160><== NOT EXECUTED
ffc03fc8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc03fcc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc03fd0: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc03fd4: 38 60 00 0d li r3,13 <== NOT EXECUTED
device_info->minor = the_jnode->info.device.minor;
rtems_filesystem_freenode( &loc );
return RTEMS_SUCCESSFUL;
}
ffc03fd8: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED
ffc03fdc: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED
ffc03fe0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc03fe4: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED
ffc03fe8: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED
ffc03fec: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED
ffc03ff0: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED
ffc03ff4: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED
ffc03ff8: 4e 80 00 20 blr <== NOT EXECUTED
result = rtems_filesystem_evaluate_path( name, strlen( name ), 0x00, &loc, true );
the_jnode = loc.node_access;
if ( !loc.ops->node_type_h ) {
rtems_filesystem_freenode( &loc );
ffc03ffc: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc04000: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc04004: 41 9e 00 10 beq- cr7,ffc04014 <rtems_io_lookup_name+0xd8><== NOT EXECUTED
ffc04008: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc0400c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc04010: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc04014: 48 00 db a5 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc04018: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc0401c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc04020: 38 60 ff ff li r3,-1 <== NOT EXECUTED
device_info->minor = the_jnode->info.device.minor;
rtems_filesystem_freenode( &loc );
return RTEMS_SUCCESSFUL;
}
ffc04024: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED
ffc04028: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED
ffc0402c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc04030: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED
ffc04034: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED
ffc04038: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED
ffc0403c: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED
ffc04040: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED
ffc04044: 4e 80 00 20 blr <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
node_type = (*loc.ops->node_type_h)( &loc );
if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) {
ffc04048: 2f 83 00 02 cmpwi cr7,r3,2 <== NOT EXECUTED
ffc0404c: 40 9e ff 64 bne+ cr7,ffc03fb0 <rtems_io_lookup_name+0x74><== NOT EXECUTED
rtems_filesystem_freenode( &loc );
return RTEMS_UNSATISFIED;
}
device_info->device_name = (char *) name;
ffc04050: 93 dd 00 00 stw r30,0(r29) <== NOT EXECUTED
device_info->device_name_length = strlen( name );
ffc04054: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc04058: 48 00 ee 5d bl ffc12eb4 <strlen> <== NOT EXECUTED
device_info->major = the_jnode->info.device.major;
device_info->minor = the_jnode->info.device.minor;
rtems_filesystem_freenode( &loc );
ffc0405c: 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 );
ffc04060: 90 7d 00 04 stw r3,4(r29) <== NOT EXECUTED
device_info->major = the_jnode->info.device.major;
device_info->minor = the_jnode->info.device.minor;
rtems_filesystem_freenode( &loc );
ffc04064: 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;
ffc04068: 80 1b 00 50 lwz r0,80(r27) <== NOT EXECUTED
ffc0406c: 90 1d 00 08 stw r0,8(r29) <== NOT EXECUTED
device_info->minor = the_jnode->info.device.minor;
ffc04070: 80 1b 00 54 lwz r0,84(r27) <== NOT EXECUTED
ffc04074: 90 1d 00 0c stw r0,12(r29) <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
ffc04078: 41 9e 00 4c beq- cr7,ffc040c4 <rtems_io_lookup_name+0x188><== NOT EXECUTED
ffc0407c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc04080: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc04084: 41 9e 00 40 beq- cr7,ffc040c4 <rtems_io_lookup_name+0x188><== NOT EXECUTED
ffc04088: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc0408c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc04090: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc04094: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc04098: 4b ff ff 40 b ffc03fd8 <rtems_io_lookup_name+0x9c> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
ffc0409c: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED
device_info->device_name = (char *) name;
device_info->device_name_length = strlen( name );
device_info->major = the_jnode->info.device.major;
device_info->minor = the_jnode->info.device.minor;
rtems_filesystem_freenode( &loc );
ffc040a0: 38 60 00 0d li r3,13 <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
ffc040a4: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED
ffc040a8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc040ac: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED
ffc040b0: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED
ffc040b4: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED
ffc040b8: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED
ffc040bc: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED
ffc040c0: 4e 80 00 20 blr <== NOT EXECUTED
device_info->device_name = (char *) name;
device_info->device_name_length = strlen( name );
device_info->major = the_jnode->info.device.major;
device_info->minor = the_jnode->info.device.minor;
rtems_filesystem_freenode( &loc );
ffc040c4: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc040c8: 4b ff ff 10 b ffc03fd8 <rtems_io_lookup_name+0x9c> <== NOT EXECUTED
ffc0b09c <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
)
{
ffc0b09c: 94 21 ff f0 stwu r1,-16(r1)
ffc0b0a0: 7c 08 02 a6 mflr r0
rtems_device_major_number major_limit = _IO_Number_of_drivers;
if ( rtems_interrupt_is_in_progress() )
ffc0b0a4: 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
)
{
ffc0b0a8: 90 01 00 14 stw r0,20(r1)
rtems_device_major_number major_limit = _IO_Number_of_drivers;
if ( rtems_interrupt_is_in_progress() )
ffc0b0ac: 80 09 27 74 lwz r0,10100(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;
ffc0b0b0: 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
)
{
ffc0b0b4: 93 e1 00 0c stw r31,12(r1)
ffc0b0b8: 7c 7f 1b 78 mr r31,r3
rtems_device_major_number major_limit = _IO_Number_of_drivers;
if ( rtems_interrupt_is_in_progress() )
ffc0b0bc: 2f 80 00 00 cmpwi cr7,r0,0
ffc0b0c0: 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;
ffc0b0c4: 80 09 27 c0 lwz r0,10176(r9)
if ( rtems_interrupt_is_in_progress() )
ffc0b0c8: 40 9e 00 e8 bne- cr7,ffc0b1b0 <rtems_io_register_driver+0x114>
return RTEMS_CALLED_FROM_ISR;
if ( registered_major == NULL )
ffc0b0cc: 2f 85 00 00 cmpwi cr7,r5,0
ffc0b0d0: 41 9e 01 38 beq- cr7,ffc0b208 <rtems_io_register_driver+0x16c>
return RTEMS_INVALID_ADDRESS;
/* Set it to an invalid value */
*registered_major = major_limit;
if ( driver_table == NULL )
ffc0b0d4: 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;
ffc0b0d8: 90 05 00 00 stw r0,0(r5)
if ( driver_table == NULL )
ffc0b0dc: 41 9e 01 2c beq- cr7,ffc0b208 <rtems_io_register_driver+0x16c>
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
ffc0b0e0: 81 64 00 00 lwz r11,0(r4)
ffc0b0e4: 2f 8b 00 00 cmpwi cr7,r11,0
ffc0b0e8: 41 9e 01 14 beq- cr7,ffc0b1fc <rtems_io_register_driver+0x160>
return RTEMS_INVALID_ADDRESS;
if ( rtems_io_is_empty_table( driver_table ) )
return RTEMS_INVALID_ADDRESS;
if ( major >= major_limit )
ffc0b0ec: 7f 80 f8 40 cmplw cr7,r0,r31
ffc0b0f0: 38 60 00 0a li r3,10
ffc0b0f4: 40 9d 00 bc ble- cr7,ffc0b1b0 <rtems_io_register_driver+0x114>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
ffc0b0f8: 3d 60 00 00 lis r11,0
ffc0b0fc: 81 4b 27 4c lwz r10,10060(r11)
ffc0b100: 38 0a 00 01 addi r0,r10,1
ffc0b104: 90 0b 27 4c stw r0,10060(r11)
return RTEMS_INVALID_NUMBER;
_Thread_Disable_dispatch();
if ( major == 0 ) {
ffc0b108: 2f 9f 00 00 cmpwi cr7,r31,0
ffc0b10c: 40 9e 00 b8 bne- cr7,ffc0b1c4 <rtems_io_register_driver+0x128>
static rtems_status_code rtems_io_obtain_major_number(
rtems_device_major_number *major
)
{
rtems_device_major_number n = _IO_Number_of_drivers;
ffc0b110: 81 69 27 c0 lwz r11,10176(r9)
rtems_device_major_number m = 0;
/* major is error checked by caller */
for ( m = 0; m < n; ++m ) {
ffc0b114: 2f 8b 00 00 cmpwi cr7,r11,0
ffc0b118: 41 9e 01 08 beq- cr7,ffc0b220 <rtems_io_register_driver+0x184>
ffc0b11c: 3d 20 00 00 lis r9,0
ffc0b120: 7d 69 03 a6 mtctr r11
ffc0b124: 81 49 27 c4 lwz r10,10180(r9)
ffc0b128: 7d 49 53 78 mr r9,r10
ffc0b12c: 40 be 00 14 bne+ cr7,ffc0b140 <rtems_io_register_driver+0xa4>
ffc0b130: 48 00 01 14 b ffc0b244 <rtems_io_register_driver+0x1a8><== NOT EXECUTED
ffc0b134: 3b ff 00 01 addi r31,r31,1
ffc0b138: 39 29 00 18 addi r9,r9,24
ffc0b13c: 42 40 00 1c bdz- ffc0b158 <rtems_io_register_driver+0xbc>
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
ffc0b140: 80 09 00 00 lwz r0,0(r9)
ffc0b144: 2f 80 00 00 cmpwi cr7,r0,0
ffc0b148: 40 9e ff ec bne+ cr7,ffc0b134 <rtems_io_register_driver+0x98>
ffc0b14c: 80 09 00 04 lwz r0,4(r9)
ffc0b150: 2f 80 00 00 cmpwi cr7,r0,0
ffc0b154: 40 9e ff e0 bne+ cr7,ffc0b134 <rtems_io_register_driver+0x98>
}
/* Assigns invalid value in case of failure */
*major = m;
if ( m != n )
ffc0b158: 7f 8b f8 00 cmpw cr7,r11,r31
if ( rtems_io_is_empty_table( table ) )
break;
}
/* Assigns invalid value in case of failure */
*major = m;
ffc0b15c: 93 e5 00 00 stw r31,0(r5)
if ( m != n )
ffc0b160: 41 9e 00 c4 beq- cr7,ffc0b224 <rtems_io_register_driver+0x188>
ffc0b164: 1d 3f 00 18 mulli r9,r31,24
ffc0b168: 7d 2a 4a 14 add r9,r10,r9
}
*registered_major = major;
}
_IO_Driver_address_table [major] = *driver_table;
ffc0b16c: 81 64 00 08 lwz r11,8(r4)
ffc0b170: 80 04 00 0c lwz r0,12(r4)
ffc0b174: 81 04 00 00 lwz r8,0(r4)
ffc0b178: 81 44 00 04 lwz r10,4(r4)
ffc0b17c: 91 09 00 00 stw r8,0(r9)
ffc0b180: 91 49 00 04 stw r10,4(r9)
ffc0b184: 91 69 00 08 stw r11,8(r9)
ffc0b188: 90 09 00 0c stw r0,12(r9)
ffc0b18c: 81 64 00 14 lwz r11,20(r4)
ffc0b190: 80 04 00 10 lwz r0,16(r4)
ffc0b194: 91 69 00 14 stw r11,20(r9)
ffc0b198: 90 09 00 10 stw r0,16(r9)
_Thread_Enable_dispatch();
ffc0b19c: 48 00 21 95 bl ffc0d330 <_Thread_Enable_dispatch>
return rtems_io_initialize( major, 0, NULL );
ffc0b1a0: 7f e3 fb 78 mr r3,r31
ffc0b1a4: 38 80 00 00 li r4,0
ffc0b1a8: 38 a0 00 00 li r5,0
ffc0b1ac: 48 00 a3 9d bl ffc15548 <rtems_io_initialize>
}
ffc0b1b0: 80 01 00 14 lwz r0,20(r1)
ffc0b1b4: 83 e1 00 0c lwz r31,12(r1)
ffc0b1b8: 38 21 00 10 addi r1,r1,16
ffc0b1bc: 7c 08 03 a6 mtlr r0
ffc0b1c0: 4e 80 00 20 blr
_Thread_Enable_dispatch();
return sc;
}
major = *registered_major;
} else {
rtems_driver_address_table *const table = _IO_Driver_address_table + major;
ffc0b1c4: 3d 20 00 00 lis r9,0
ffc0b1c8: 81 29 27 c4 lwz r9,10180(r9)
ffc0b1cc: 1c 1f 00 18 mulli r0,r31,24
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
ffc0b1d0: 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;
ffc0b1d4: 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;
ffc0b1d8: 2f 8b 00 00 cmpwi cr7,r11,0
ffc0b1dc: 41 9e 00 54 beq- cr7,ffc0b230 <rtems_io_register_driver+0x194>
major = *registered_major;
} else {
rtems_driver_address_table *const table = _IO_Driver_address_table + major;
if ( !rtems_io_is_empty_table( table ) ) {
_Thread_Enable_dispatch();
ffc0b1e0: 48 00 21 51 bl ffc0d330 <_Thread_Enable_dispatch>
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
}
ffc0b1e4: 80 01 00 14 lwz r0,20(r1)
major = *registered_major;
} else {
rtems_driver_address_table *const table = _IO_Driver_address_table + major;
if ( !rtems_io_is_empty_table( table ) ) {
_Thread_Enable_dispatch();
ffc0b1e8: 38 60 00 0c li r3,12
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
}
ffc0b1ec: 83 e1 00 0c lwz r31,12(r1)
ffc0b1f0: 7c 08 03 a6 mtlr r0
ffc0b1f4: 38 21 00 10 addi r1,r1,16
ffc0b1f8: 4e 80 00 20 blr
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
ffc0b1fc: 81 64 00 04 lwz r11,4(r4)
ffc0b200: 2f 8b 00 00 cmpwi cr7,r11,0
ffc0b204: 40 9e fe e8 bne+ cr7,ffc0b0ec <rtems_io_register_driver+0x50>
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
}
ffc0b208: 80 01 00 14 lwz r0,20(r1)
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
ffc0b20c: 38 60 00 09 li r3,9
}
ffc0b210: 83 e1 00 0c lwz r31,12(r1)
ffc0b214: 38 21 00 10 addi r1,r1,16
ffc0b218: 7c 08 03 a6 mtlr r0
ffc0b21c: 4e 80 00 20 blr
if ( rtems_io_is_empty_table( table ) )
break;
}
/* Assigns invalid value in case of failure */
*major = m;
ffc0b220: 93 e5 00 00 stw r31,0(r5) <== NOT EXECUTED
if ( major == 0 ) {
rtems_status_code sc = rtems_io_obtain_major_number( registered_major );
if ( sc != RTEMS_SUCCESSFUL ) {
_Thread_Enable_dispatch();
ffc0b224: 48 00 21 0d bl ffc0d330 <_Thread_Enable_dispatch>
ffc0b228: 38 60 00 05 li r3,5
return sc;
ffc0b22c: 4b ff ff 84 b ffc0b1b0 <rtems_io_register_driver+0x114>
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
ffc0b230: 80 09 00 04 lwz r0,4(r9)
ffc0b234: 2f 80 00 00 cmpwi cr7,r0,0
ffc0b238: 40 9e ff a8 bne+ cr7,ffc0b1e0 <rtems_io_register_driver+0x144>
if ( !rtems_io_is_empty_table( table ) ) {
_Thread_Enable_dispatch();
return RTEMS_RESOURCE_IN_USE;
}
*registered_major = major;
ffc0b23c: 93 e5 00 00 stw r31,0(r5)
ffc0b240: 4b ff ff 2c b ffc0b16c <rtems_io_register_driver+0xd0>
ffc0b244: 38 00 00 01 li r0,1 <== NOT EXECUTED
ffc0b248: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc0b24c: 4b ff fe f4 b ffc0b140 <rtems_io_register_driver+0xa4><== NOT EXECUTED
ffc046bc <rtems_libio_init>:
*
* Called by BSP startup code to initialize the libio subsystem.
*/
void rtems_libio_init( void )
{
ffc046bc: 94 21 ff f0 stwu r1,-16(r1)
ffc046c0: 7c 08 02 a6 mflr r0
ffc046c4: 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)
ffc046c8: 3f e0 00 00 lis r31,0
ffc046cc: 80 7f 26 4c lwz r3,9804(r31)
*
* Called by BSP startup code to initialize the libio subsystem.
*/
void rtems_libio_init( void )
{
ffc046d0: 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)
ffc046d4: 2f 83 00 00 cmpwi cr7,r3,0
ffc046d8: 41 9e 00 68 beq- cr7,ffc04740 <rtems_libio_init+0x84>
{
rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
ffc046dc: 38 80 00 48 li r4,72
ffc046e0: 48 00 99 99 bl ffc0e078 <calloc>
ffc046e4: 3d 20 00 00 lis r9,0
sizeof(rtems_libio_t));
if (rtems_libio_iops == NULL)
ffc046e8: 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,
ffc046ec: 90 69 27 08 stw r3,9992(r9)
ffc046f0: 7c 6b 1b 78 mr r11,r3
sizeof(rtems_libio_t));
if (rtems_libio_iops == NULL)
ffc046f4: 41 9e 00 a4 beq- cr7,ffc04798 <rtems_libio_init+0xdc>
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++)
ffc046f8: 81 3f 26 4c lwz r9,9804(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;
ffc046fc: 3d 40 00 00 lis r10,0
ffc04700: 90 6a 27 0c stw r3,9996(r10)
for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)
ffc04704: 2b 89 00 01 cmplwi cr7,r9,1
ffc04708: 40 9d 00 30 ble- cr7,ffc04738 <rtems_libio_init+0x7c>
ffc0470c: 39 29 ff ff addi r9,r9,-1
ffc04710: 7d 29 03 a6 mtctr r9
ffc04714: 39 60 00 01 li r11,1
ffc04718: 39 23 00 48 addi r9,r3,72
iop->data1 = iop + 1;
ffc0471c: 91 29 ff f0 stw r9,-16(r9)
ffc04720: 39 6b 00 01 addi r11,r11,1
ffc04724: 39 29 00 48 addi r9,r9,72
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++)
ffc04728: 42 00 ff f4 bdnz+ ffc0471c <rtems_libio_init+0x60>
ffc0472c: 39 6b ff ff addi r11,r11,-1
ffc04730: 1d 6b 00 48 mulli r11,r11,72
ffc04734: 7d 63 5a 14 add r11,r3,r11
iop->data1 = iop + 1;
iop->data1 = NULL;
ffc04738: 38 00 00 00 li r0,0
ffc0473c: 90 0b 00 38 stw r0,56(r11)
/*
* Create the binary semaphore used to provide mutual exclusion
* on the IOP Table.
*/
rc = rtems_semaphore_create(
ffc04740: 3c 60 4c 42 lis r3,19522
ffc04744: 3c e0 00 00 lis r7,0
ffc04748: 60 63 49 4f ori r3,r3,18767
ffc0474c: 38 e7 27 10 addi r7,r7,10000
ffc04750: 38 80 00 01 li r4,1
ffc04754: 38 a0 00 54 li r5,84
ffc04758: 38 c0 00 00 li r6,0
ffc0475c: 48 00 3c b9 bl ffc08414 <rtems_semaphore_create>
1,
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
RTEMS_NO_PRIORITY,
&rtems_libio_semaphore
);
if ( rc != RTEMS_SUCCESSFUL )
ffc04760: 2f 83 00 00 cmpwi cr7,r3,0
ffc04764: 40 9e 00 30 bne- cr7,ffc04794 <rtems_libio_init+0xd8>
/*
* Initialize the base file system infrastructure.
*/
if (rtems_fs_init_helper)
ffc04768: 3d 20 00 00 lis r9,0
ffc0476c: 80 09 26 48 lwz r0,9800(r9)
ffc04770: 2f 80 00 00 cmpwi cr7,r0,0
ffc04774: 41 9e 00 0c beq- cr7,ffc04780 <rtems_libio_init+0xc4>
(* rtems_fs_init_helper)();
ffc04778: 7c 09 03 a6 mtctr r0
ffc0477c: 4e 80 04 21 bctrl
}
ffc04780: 80 01 00 14 lwz r0,20(r1)
ffc04784: 83 e1 00 0c lwz r31,12(r1)
ffc04788: 38 21 00 10 addi r1,r1,16
ffc0478c: 7c 08 03 a6 mtlr r0
ffc04790: 4e 80 00 20 blr
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
RTEMS_NO_PRIORITY,
&rtems_libio_semaphore
);
if ( rc != RTEMS_SUCCESSFUL )
rtems_fatal_error_occurred( rc );
ffc04794: 48 00 48 a1 bl ffc09034 <rtems_fatal_error_occurred> <== NOT EXECUTED
if (rtems_libio_number_iops > 0)
{
rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
sizeof(rtems_libio_t));
if (rtems_libio_iops == NULL)
rtems_fatal_error_occurred(RTEMS_NO_MEMORY);
ffc04798: 38 60 00 1a li r3,26 <== NOT EXECUTED
ffc0479c: 48 00 48 99 bl ffc09034 <rtems_fatal_error_occurred> <== NOT EXECUTED
ffc30404 <rtems_libio_set_private_env>:
rtems_filesystem_freenode( &env->root_directory);
free(env);
}
}
rtems_status_code rtems_libio_set_private_env(void) {
ffc30404: 94 21 ff c0 stwu r1,-64(r1)
ffc30408: 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);
ffc3040c: 38 60 00 00 li r3,0
ffc30410: 38 80 00 00 li r4,0
rtems_filesystem_freenode( &env->root_directory);
free(env);
}
}
rtems_status_code rtems_libio_set_private_env(void) {
ffc30414: 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);
ffc30418: 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) {
ffc3041c: 90 01 00 44 stw r0,68(r1)
ffc30420: 93 61 00 2c stw r27,44(r1)
ffc30424: 93 81 00 30 stw r28,48(r1)
ffc30428: 93 a1 00 34 stw r29,52(r1)
ffc3042c: 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);
ffc30430: 4b fd cb 75 bl ffc0cfa4 <rtems_task_ident>
if (sc != RTEMS_SUCCESSFUL) return sc;
ffc30434: 7c 7e 1b 79 mr. r30,r3
ffc30438: 40 82 01 00 bne- ffc30538 <rtems_libio_set_private_env+0x134>
/* Only for the first time a malloc is necesary */
if (rtems_current_user_env==&rtems_global_user_env) {
ffc3043c: 3f e0 00 00 lis r31,0
ffc30440: 83 9f 34 ec lwz r28,13548(r31)
ffc30444: 3f a0 00 00 lis r29,0
ffc30448: 3b bd 63 64 addi r29,r29,25444
ffc3044c: 7f 9c e8 00 cmpw cr7,r28,r29
ffc30450: 3b 7f 34 ec addi r27,r31,13548
ffc30454: 41 9e 01 0c beq- cr7,ffc30560 <rtems_libio_set_private_env+0x15c>
return sc;
}
rtems_current_user_env = tmp;
};
*rtems_current_user_env = rtems_global_user_env; /* get the global values*/
ffc30458: 7f a4 eb 78 mr r4,r29
ffc3045c: 38 a0 00 48 li r5,72
ffc30460: 7f 83 e3 78 mr r3,r28
ffc30464: 48 02 02 79 bl ffc506dc <memcpy>
rtems_current_user_env->task_id=task_id; /* mark the local values*/
/* get a clean root */
rtems_filesystem_root = THE_ROOT_FS_LOC;
ffc30468: 3d 20 00 00 lis r9,0
ffc3046c: 81 29 63 58 lwz r9,25432(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);
ffc30470: 3f a0 ff c7 lis r29,-57
ffc30474: 3b c1 00 0c addi r30,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;
ffc30478: 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);
ffc3047c: 3b bd 3e dc addi r29,r29,16092
*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;
ffc30480: 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);
ffc30484: 7f c6 f3 78 mr r6,r30
*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;
ffc30488: 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);
ffc3048c: 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;
ffc30490: 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);
ffc30494: 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;
ffc30498: 91 1c 00 18 stw r8,24(r28)
* 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);
ffc3049c: 38 e0 00 00 li r7,0
ffc304a0: 7f a3 eb 78 mr r3,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;
ffc304a4: 91 5c 00 1c stw r10,28(r28)
ffc304a8: 91 7c 00 20 stw r11,32(r28)
ffc304ac: 90 1c 00 24 stw r0,36(r28)
ffc304b0: 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*/
ffc304b4: 81 21 00 08 lwz r9,8(r1)
/* get a clean root */
rtems_filesystem_root = THE_ROOT_FS_LOC;
ffc304b8: 90 1c 00 28 stw r0,40(r28)
}
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*/
ffc304bc: 91 3c 00 00 stw r9,0(r28)
* 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);
ffc304c0: 4b fd 73 cd bl ffc0788c <rtems_filesystem_evaluate_path>
rtems_filesystem_root = loc;
ffc304c4: 81 3f 34 ec lwz r9,13548(r31)
ffc304c8: 81 41 00 10 lwz r10,16(r1)
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc304cc: 7f c6 f3 78 mr r6,r30
* what we are trying to do here is forking off
* clones.
*/
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_root = loc;
ffc304d0: 81 61 00 14 lwz r11,20(r1)
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc304d4: 7f a3 eb 78 mr r3,r29
* what we are trying to do here is forking off
* clones.
*/
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_root = loc;
ffc304d8: 80 01 00 18 lwz r0,24(r1)
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc304dc: 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;
ffc304e0: 81 01 00 0c lwz r8,12(r1)
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc304e4: 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;
ffc304e8: 91 49 00 1c stw r10,28(r9)
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc304ec: 38 e0 00 00 li r7,0
rtems_filesystem_current = loc;
ffc304f0: 3b c0 00 00 li r30,0
* what we are trying to do here is forking off
* clones.
*/
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_root = loc;
ffc304f4: 91 09 00 18 stw r8,24(r9)
ffc304f8: 91 69 00 20 stw r11,32(r9)
ffc304fc: 90 09 00 24 stw r0,36(r9)
ffc30500: 80 01 00 1c lwz r0,28(r1)
ffc30504: 90 09 00 28 stw r0,40(r9)
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
ffc30508: 4b fd 73 85 bl ffc0788c <rtems_filesystem_evaluate_path>
rtems_filesystem_current = loc;
ffc3050c: 80 01 00 18 lwz r0,24(r1)
ffc30510: 81 3f 34 ec lwz r9,13548(r31)
ffc30514: 81 41 00 10 lwz r10,16(r1)
ffc30518: 81 61 00 14 lwz r11,20(r1)
ffc3051c: 81 01 00 0c lwz r8,12(r1)
ffc30520: 91 49 00 08 stw r10,8(r9)
ffc30524: 91 09 00 04 stw r8,4(r9)
ffc30528: 91 69 00 0c stw r11,12(r9)
ffc3052c: 90 09 00 10 stw r0,16(r9)
ffc30530: 80 01 00 1c lwz r0,28(r1)
ffc30534: 90 09 00 14 stw r0,20(r9)
return RTEMS_SUCCESSFUL;
}
ffc30538: 80 01 00 44 lwz r0,68(r1)
ffc3053c: 7f c3 f3 78 mr r3,r30
ffc30540: 83 61 00 2c lwz r27,44(r1)
ffc30544: 7c 08 03 a6 mtlr r0
ffc30548: 83 81 00 30 lwz r28,48(r1)
ffc3054c: 83 a1 00 34 lwz r29,52(r1)
ffc30550: 83 c1 00 38 lwz r30,56(r1)
ffc30554: 83 e1 00 3c lwz r31,60(r1)
ffc30558: 38 21 00 40 addi r1,r1,64
ffc3055c: 4e 80 00 20 blr
sc=rtems_task_ident(RTEMS_SELF,0,&task_id);
if (sc != RTEMS_SUCCESSFUL) return sc;
/* Only for the first time a malloc is necesary */
if (rtems_current_user_env==&rtems_global_user_env) {
rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t));
ffc30560: 38 60 00 48 li r3,72
ffc30564: 4b fd 7c 25 bl ffc08188 <malloc>
if (!tmp)
ffc30568: 3b c0 00 1a li r30,26
ffc3056c: 7c 7c 1b 79 mr. r28,r3
ffc30570: 41 a2 ff c8 beq- ffc30538 <rtems_libio_set_private_env+0x134>
#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);
ffc30574: 3c a0 ff c3 lis r5,-61
ffc30578: 7f 64 db 78 mr r4,r27
ffc3057c: 38 a5 02 9c addi r5,r5,668
ffc30580: 38 60 00 00 li r3,0
ffc30584: 48 00 1f 6d bl ffc324f0 <rtems_task_variable_add>
if (sc != RTEMS_SUCCESSFUL) {
ffc30588: 7c 7e 1b 79 mr. r30,r3
ffc3058c: 40 82 00 0c bne- ffc30598 <rtems_libio_set_private_env+0x194>
* not initialized yet
*/
free(tmp);
return sc;
}
rtems_current_user_env = tmp;
ffc30590: 93 9f 34 ec stw r28,13548(r31)
ffc30594: 4b ff fe c4 b ffc30458 <rtems_libio_set_private_env+0x54>
sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,(void(*)(void *))free_user_env);
if (sc != RTEMS_SUCCESSFUL) {
/* don't use free_user_env because the pathlocs are
* not initialized yet
*/
free(tmp);
ffc30598: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED
ffc3059c: 4b fd 73 f9 bl ffc07994 <free> <== NOT EXECUTED
return sc;
ffc305a0: 4b ff ff 98 b ffc30538 <rtems_libio_set_private_env+0x134><== NOT EXECUTED
ffc30324 <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) {
ffc30324: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED
ffc30328: 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);
ffc3032c: 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) {
ffc30330: 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);
ffc30334: 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) {
ffc30338: 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);
ffc3033c: 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) {
ffc30340: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED
ffc30344: 93 81 00 18 stw r28,24(r1) <== NOT EXECUTED
ffc30348: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED
ffc3034c: 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);
ffc30350: 4b fd cc 55 bl ffc0cfa4 <rtems_task_ident> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) return sc;
ffc30354: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED
ffc30358: 40 82 00 48 bne- ffc303a0 <rtems_libio_share_private_env+0x7c><== NOT EXECUTED
if (rtems_current_user_env->task_id==current_task_id) {
ffc3035c: 3f e0 00 00 lis r31,0 <== NOT EXECUTED
ffc30360: 81 21 00 0c lwz r9,12(r1) <== NOT EXECUTED
ffc30364: 83 9f 34 ec lwz r28,13548(r31) <== NOT EXECUTED
ffc30368: 38 1f 34 ec addi r0,r31,13548 <== NOT EXECUTED
ffc3036c: 7c 1e 03 78 mr r30,r0 <== NOT EXECUTED
ffc30370: 81 7c 00 00 lwz r11,0(r28) <== NOT EXECUTED
ffc30374: 7f 8b 48 00 cmpw cr7,r11,r9 <== NOT EXECUTED
ffc30378: 41 9e 00 4c beq- cr7,ffc303c4 <rtems_libio_share_private_env+0xa0><== NOT EXECUTED
free_user_env(tmp);
};
/* AT THIS POINT, rtems_current_user_env is DANGLING */
sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env,
ffc3037c: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc30380: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED
ffc30384: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED
ffc30388: 48 00 23 59 bl ffc326e0 <rtems_task_variable_get> <== NOT EXECUTED
(void*)&shared_user_env );
if (sc != RTEMS_SUCCESSFUL)
ffc3038c: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED
ffc30390: 41 82 00 50 beq- ffc303e0 <rtems_libio_share_private_env+0xbc><== NOT EXECUTED
return RTEMS_SUCCESSFUL;
bailout:
/* fallback to the global env */
rtems_current_user_env = &rtems_global_user_env;
ffc30394: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc30398: 39 29 63 64 addi r9,r9,25444 <== NOT EXECUTED
ffc3039c: 91 3f 34 ec stw r9,13548(r31) <== NOT EXECUTED
return sc;
}
ffc303a0: 7c 03 03 78 mr r3,r0 <== NOT EXECUTED
ffc303a4: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED
ffc303a8: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED
ffc303ac: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc303b0: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED
ffc303b4: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED
ffc303b8: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED
ffc303bc: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED
ffc303c0: 4e 80 00 20 blr <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) return sc;
if (rtems_current_user_env->task_id==current_task_id) {
/* kill the current user env & task_var*/
rtems_user_env_t *tmp = rtems_current_user_env;
sc = rtems_task_variable_delete(RTEMS_SELF,(void*)&rtems_current_user_env);
ffc303c4: 7c 04 03 78 mr r4,r0 <== NOT EXECUTED
ffc303c8: 48 00 22 3d bl ffc32604 <rtems_task_variable_delete> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) return sc;
ffc303cc: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED
ffc303d0: 40 82 ff d0 bne+ ffc303a0 <rtems_libio_share_private_env+0x7c><== NOT EXECUTED
free_user_env(tmp);
ffc303d4: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED
ffc303d8: 4b ff fe c5 bl ffc3029c <free_user_env> <== NOT EXECUTED
ffc303dc: 4b ff ff a0 b ffc3037c <rtems_libio_share_private_env+0x58><== NOT EXECUTED
sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env,
(void*)&shared_user_env );
if (sc != RTEMS_SUCCESSFUL)
goto bailout;
sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env);
ffc303e0: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED
ffc303e4: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED
ffc303e8: 38 a5 02 9c addi r5,r5,668 <== NOT EXECUTED
ffc303ec: 48 00 21 05 bl ffc324f0 <rtems_task_variable_add> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
ffc303f0: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED
ffc303f4: 40 82 ff a0 bne+ ffc30394 <rtems_libio_share_private_env+0x70><== NOT EXECUTED
goto bailout;
/* the current_user_env is the same pointer that remote env */
rtems_current_user_env = shared_user_env;
ffc303f8: 81 21 00 08 lwz r9,8(r1) <== NOT EXECUTED
ffc303fc: 91 3f 34 ec stw r9,13548(r31) <== NOT EXECUTED
/* increase the reference count */
#ifdef HAVE_USERENV_REFCNT
rtems_current_user_env->refcnt++;
#endif
return RTEMS_SUCCESSFUL;
ffc30400: 4b ff ff a0 b ffc303a0 <rtems_libio_share_private_env+0x7c><== NOT EXECUTED
ffc082cc <rtems_malloc_statistics_at_free>:
* size and thus we skip updating the statistics.
*/
static void rtems_malloc_statistics_at_free(
void *pointer
)
{
ffc082cc: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED
uintptr_t size;
if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
ffc082d0: 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
)
{
ffc082d4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc082d8: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED
uintptr_t size;
if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
ffc082dc: 80 69 34 9c lwz r3,13468(r9) <== NOT EXECUTED
ffc082e0: 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
)
{
ffc082e4: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED
uintptr_t size;
if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
ffc082e8: 48 00 6d 35 bl ffc0f01c <_Protected_heap_Get_block_size><== NOT EXECUTED
ffc082ec: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc082f0: 41 9e 00 2c beq- cr7,ffc0831c <rtems_malloc_statistics_at_free+0x50><== NOT EXECUTED
MSBUMP(lifetime_freed, size);
ffc082f4: 3d 60 00 00 lis r11,0 <== NOT EXECUTED
ffc082f8: 81 41 00 08 lwz r10,8(r1) <== NOT EXECUTED
ffc082fc: 39 6b 63 28 addi r11,r11,25384 <== NOT EXECUTED
ffc08300: 80 ab 00 28 lwz r5,40(r11) <== NOT EXECUTED
ffc08304: 39 20 00 00 li r9,0 <== NOT EXECUTED
ffc08308: 80 cb 00 2c lwz r6,44(r11) <== NOT EXECUTED
ffc0830c: 7d 0a 30 14 addc r8,r10,r6 <== NOT EXECUTED
ffc08310: 7c e9 29 14 adde r7,r9,r5 <== NOT EXECUTED
ffc08314: 90 eb 00 28 stw r7,40(r11) <== NOT EXECUTED
ffc08318: 91 0b 00 2c stw r8,44(r11) <== NOT EXECUTED
}
}
ffc0831c: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED
ffc08320: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED
ffc08324: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc08328: 4e 80 00 20 blr <== NOT EXECUTED
ffc0832c <rtems_malloc_statistics_at_malloc>:
{
uintptr_t actual_size = 0;
uint32_t current_depth;
rtems_malloc_statistics_t *s = &rtems_malloc_statistics;
if ( !pointer )
ffc0832c: 7c 64 1b 79 mr. r4,r3 <== NOT EXECUTED
}
static void rtems_malloc_statistics_at_malloc(
void *pointer
)
{
ffc08330: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED
ffc08334: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc08338: 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 )
ffc0833c: 41 82 00 5c beq- ffc08398 <rtems_malloc_statistics_at_malloc+0x6c><== NOT EXECUTED
static void rtems_malloc_statistics_at_malloc(
void *pointer
)
{
uintptr_t actual_size = 0;
ffc08340: 7c 25 0b 78 mr r5,r1 <== NOT EXECUTED
ffc08344: 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);
ffc08348: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
static void rtems_malloc_statistics_at_malloc(
void *pointer
)
{
uintptr_t actual_size = 0;
ffc0834c: 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);
ffc08350: 80 69 34 9c lwz r3,13468(r9) <== NOT EXECUTED
ffc08354: 48 00 6c c9 bl ffc0f01c <_Protected_heap_Get_block_size><== NOT EXECUTED
MSBUMP(lifetime_allocated, actual_size);
ffc08358: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc0835c: 39 29 63 28 addi r9,r9,25384 <== NOT EXECUTED
ffc08360: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED
ffc08364: 80 a9 00 20 lwz r5,32(r9) <== NOT EXECUTED
ffc08368: 39 60 00 00 li r11,0 <== NOT EXECUTED
ffc0836c: 80 c9 00 24 lwz r6,36(r9) <== NOT EXECUTED
current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
ffc08370: 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);
ffc08374: 7d 0c 30 14 addc r8,r12,r6 <== NOT EXECUTED
ffc08378: 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)
ffc0837c: 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);
ffc08380: 90 e9 00 20 stw r7,32(r9) <== NOT EXECUTED
current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
ffc08384: 7c 00 40 50 subf r0,r0,r8 <== NOT EXECUTED
if (current_depth > s->max_depth)
ffc08388: 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);
ffc0838c: 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)
ffc08390: 40 9d 00 08 ble- cr7,ffc08398 <rtems_malloc_statistics_at_malloc+0x6c><== NOT EXECUTED
s->max_depth = current_depth;
ffc08394: 90 09 00 18 stw r0,24(r9) <== NOT EXECUTED
}
ffc08398: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED
ffc0839c: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED
ffc083a0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc083a4: 4e 80 00 20 blr <== NOT EXECUTED
ffc083a8 <rtems_malloc_statistics_initialize>:
#include <sys/reent.h>
#include <stdlib.h>
static void rtems_malloc_statistics_initialize( void )
{
ffc083a8: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED
ffc083ac: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
/*
* Zero all the statistics
*/
(void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics));
ffc083b0: 3c 60 00 00 lis r3,0 <== NOT EXECUTED
ffc083b4: 38 63 63 28 addi r3,r3,25384 <== NOT EXECUTED
#include <sys/reent.h>
#include <stdlib.h>
static void rtems_malloc_statistics_initialize( void )
{
ffc083b8: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
/*
* Zero all the statistics
*/
(void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics));
ffc083bc: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc083c0: 38 a0 00 30 li r5,48 <== NOT EXECUTED
ffc083c4: 48 04 85 51 bl ffc50914 <memset> <== NOT EXECUTED
}
ffc083c8: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc083cc: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc083d0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc083d4: 4e 80 00 20 blr <== NOT EXECUTED
ffc14938 <rtems_memalign>:
int rtems_memalign(
void **pointer,
size_t alignment,
size_t size
)
{
ffc14938: 94 21 ff e8 stwu r1,-24(r1)
ffc1493c: 7c 08 02 a6 mflr r0
ffc14940: 93 e1 00 14 stw r31,20(r1)
void *return_this;
/*
* Parameter error checks
*/
if ( !pointer )
ffc14944: 7c 7f 1b 79 mr. r31,r3
int rtems_memalign(
void **pointer,
size_t alignment,
size_t size
)
{
ffc14948: 93 a1 00 0c stw r29,12(r1)
ffc1494c: 7c bd 2b 78 mr r29,r5
ffc14950: 93 c1 00 10 stw r30,16(r1)
ffc14954: 7c 9e 23 78 mr r30,r4
ffc14958: 90 01 00 1c stw r0,28(r1)
void *return_this;
/*
* Parameter error checks
*/
if ( !pointer )
ffc1495c: 41 82 00 94 beq- ffc149f0 <rtems_memalign+0xb8>
*pointer = NULL;
/*
* Do not attempt to allocate memory if not in correct system state.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
ffc14960: 3d 20 00 00 lis r9,0
ffc14964: 80 09 27 b0 lwz r0,10160(r9)
ffc14968: 2f 80 00 03 cmpwi cr7,r0,3
* Parameter error checks
*/
if ( !pointer )
return EINVAL;
*pointer = NULL;
ffc1496c: 38 00 00 00 li r0,0
ffc14970: 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()) &&
ffc14974: 41 9e 00 70 beq- cr7,ffc149e4 <rtems_memalign+0xac>
/*
*
* If some free's have been deferred, then do them now.
*/
malloc_deferred_frees_process();
ffc14978: 4b ff 19 91 bl ffc06308 <malloc_deferred_frees_process>
uintptr_t size,
uintptr_t alignment
)
{
return
_Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 );
ffc1497c: 3d 20 00 00 lis r9,0
ffc14980: 80 69 26 7c lwz r3,9852(r9)
ffc14984: 7f c5 f3 78 mr r5,r30
ffc14988: 7f a4 eb 78 mr r4,r29
ffc1498c: 38 c0 00 00 li r6,0
ffc14990: 4b ff 80 8d bl ffc0ca1c <_Protected_heap_Allocate_aligned_with_boundary>
return_this = _Protected_heap_Allocate_aligned(
RTEMS_Malloc_Heap,
size,
alignment
);
if ( !return_this )
ffc14994: 7c 7e 1b 79 mr. r30,r3
ffc14998: 38 60 00 0c li r3,12
ffc1499c: 41 82 00 2c beq- ffc149c8 <rtems_memalign+0x90>
return ENOMEM;
/*
* If configured, update the more involved statistics
*/
if ( rtems_malloc_statistics_helpers )
ffc149a0: 3d 20 00 00 lis r9,0
ffc149a4: 81 29 26 e8 lwz r9,9960(r9)
ffc149a8: 2f 89 00 00 cmpwi cr7,r9,0
ffc149ac: 41 9e 00 14 beq- cr7,ffc149c0 <rtems_memalign+0x88>
(*rtems_malloc_statistics_helpers->at_malloc)(pointer);
ffc149b0: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED
ffc149b4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc149b8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc149bc: 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;
ffc149c0: 93 df 00 00 stw r30,0(r31)
ffc149c4: 38 60 00 00 li r3,0
return 0;
}
ffc149c8: 80 01 00 1c lwz r0,28(r1)
ffc149cc: 83 a1 00 0c lwz r29,12(r1)
ffc149d0: 7c 08 03 a6 mtlr r0
ffc149d4: 83 c1 00 10 lwz r30,16(r1)
ffc149d8: 83 e1 00 14 lwz r31,20(r1)
ffc149dc: 38 21 00 18 addi r1,r1,24
ffc149e0: 4e 80 00 20 blr
*pointer = NULL;
/*
* Do not attempt to allocate memory if not in correct system state.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
ffc149e4: 4b ff 18 b1 bl ffc06294 <malloc_is_system_state_OK>
ffc149e8: 2f 83 00 00 cmpwi cr7,r3,0
ffc149ec: 40 9e ff 8c bne+ cr7,ffc14978 <rtems_memalign+0x40>
(*rtems_malloc_boundary_helpers->at_malloc)(return_this, size);
#endif
*pointer = return_this;
return 0;
}
ffc149f0: 80 01 00 1c lwz r0,28(r1)
if (rtems_malloc_boundary_helpers)
(*rtems_malloc_boundary_helpers->at_malloc)(return_this, size);
#endif
*pointer = return_this;
return 0;
ffc149f4: 38 60 00 16 li r3,22
}
ffc149f8: 83 a1 00 0c lwz r29,12(r1)
ffc149fc: 7c 08 03 a6 mtlr r0
ffc14a00: 83 c1 00 10 lwz r30,16(r1)
ffc14a04: 83 e1 00 14 lwz r31,20(r1)
ffc14a08: 38 21 00 18 addi r1,r1,24
ffc14a0c: 4e 80 00 20 blr
ffc0ad9c <rtems_panic>:
void rtems_panic(
const char *printf_format,
...
)
{
ffc0ad9c: 94 21 ff 88 stwu r1,-120(r1) <== NOT EXECUTED
ffc0ada0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc0ada4: 90 81 00 1c stw r4,28(r1) <== NOT EXECUTED
ffc0ada8: 90 01 00 7c stw r0,124(r1) <== NOT EXECUTED
ffc0adac: 90 a1 00 20 stw r5,32(r1) <== NOT EXECUTED
ffc0adb0: 90 c1 00 24 stw r6,36(r1) <== NOT EXECUTED
ffc0adb4: 90 e1 00 28 stw r7,40(r1) <== NOT EXECUTED
ffc0adb8: 91 01 00 2c stw r8,44(r1) <== NOT EXECUTED
ffc0adbc: 91 21 00 30 stw r9,48(r1) <== NOT EXECUTED
ffc0adc0: 91 41 00 34 stw r10,52(r1) <== NOT EXECUTED
ffc0adc4: 40 86 00 24 bne- cr1,ffc0ade8 <rtems_panic+0x4c> <== NOT EXECUTED
ffc0adc8: d8 21 00 38 stfd f1,56(r1) <== NOT EXECUTED
ffc0adcc: d8 41 00 40 stfd f2,64(r1) <== NOT EXECUTED
ffc0add0: d8 61 00 48 stfd f3,72(r1) <== NOT EXECUTED
ffc0add4: d8 81 00 50 stfd f4,80(r1) <== NOT EXECUTED
ffc0add8: d8 a1 00 58 stfd f5,88(r1) <== NOT EXECUTED
ffc0addc: d8 c1 00 60 stfd f6,96(r1) <== NOT EXECUTED
ffc0ade0: d8 e1 00 68 stfd f7,104(r1) <== NOT EXECUTED
ffc0ade4: d9 01 00 70 stfd f8,112(r1) <== NOT EXECUTED
va_list arglist;
va_start(arglist, printf_format);
ffc0ade8: 38 00 00 01 li r0,1 <== NOT EXECUTED
ffc0adec: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED
ffc0adf0: 38 00 00 00 li r0,0 <== NOT EXECUTED
void rtems_panic(
const char *printf_format,
...
)
{
ffc0adf4: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED
va_list arglist;
va_start(arglist, printf_format);
ffc0adf8: 98 01 00 09 stb r0,9(r1) <== NOT EXECUTED
ffc0adfc: 38 01 00 80 addi r0,r1,128 <== NOT EXECUTED
(void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist);
ffc0ae00: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED
...
)
{
va_list arglist;
va_start(arglist, printf_format);
ffc0ae04: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED
(void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist);
ffc0ae08: 3c 60 20 00 lis r3,8192 <== NOT EXECUTED
...
)
{
va_list arglist;
va_start(arglist, printf_format);
ffc0ae0c: 38 01 00 18 addi r0,r1,24 <== NOT EXECUTED
ffc0ae10: 90 01 00 10 stw r0,16(r1) <== NOT EXECUTED
(void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist);
ffc0ae14: 4b ff fd 81 bl ffc0ab94 <rtems_verror> <== NOT EXECUTED
va_end(arglist);
}
ffc0ae18: 80 01 00 7c lwz r0,124(r1) <== NOT EXECUTED
ffc0ae1c: 38 21 00 78 addi r1,r1,120 <== NOT EXECUTED
ffc0ae20: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0ae24: 4e 80 00 20 blr <== NOT EXECUTED
ffc0fbb4 <rtems_pipe_initialize>:
/*
* Initialization of FIFO/pipe module.
*/
void rtems_pipe_initialize (void)
{
ffc0fbb4: 7c 08 02 a6 mflr r0
ffc0fbb8: 94 21 ff f8 stwu r1,-8(r1)
if (!rtems_pipe_configured)
ffc0fbbc: 3d 20 00 00 lis r9,0
/*
* Initialization of FIFO/pipe module.
*/
void rtems_pipe_initialize (void)
{
ffc0fbc0: 90 01 00 0c stw r0,12(r1)
if (!rtems_pipe_configured)
ffc0fbc4: 88 09 26 c4 lbz r0,9924(r9)
ffc0fbc8: 2f 80 00 00 cmpwi cr7,r0,0
ffc0fbcc: 41 9e 00 18 beq- cr7,ffc0fbe4 <rtems_pipe_initialize+0x30>
return;
if (rtems_pipe_semaphore)
ffc0fbd0: 3c e0 00 00 lis r7,0 <== NOT EXECUTED
ffc0fbd4: 80 07 28 fc lwz r0,10492(r7) <== NOT EXECUTED
ffc0fbd8: 38 e7 28 fc addi r7,r7,10492 <== NOT EXECUTED
ffc0fbdc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0fbe0: 41 9e 00 14 beq- cr7,ffc0fbf4 <rtems_pipe_initialize+0x40><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
rtems_interval now;
now = rtems_clock_get_ticks_since_boot();
rtems_pipe_no = now;
}
ffc0fbe4: 80 01 00 0c lwz r0,12(r1)
ffc0fbe8: 38 21 00 08 addi r1,r1,8
ffc0fbec: 7c 08 03 a6 mtlr r0
ffc0fbf0: 4e 80 00 20 blr
if (rtems_pipe_semaphore)
return;
rtems_status_code sc;
sc = rtems_semaphore_create(
ffc0fbf4: 3c 60 50 49 lis r3,20553 <== NOT EXECUTED
ffc0fbf8: 60 63 50 45 ori r3,r3,20549 <== NOT EXECUTED
ffc0fbfc: 38 80 00 01 li r4,1 <== NOT EXECUTED
ffc0fc00: 38 a0 00 54 li r5,84 <== NOT EXECUTED
ffc0fc04: 38 c0 00 00 li r6,0 <== NOT EXECUTED
ffc0fc08: 4b ff 88 0d bl ffc08414 <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)
ffc0fc0c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc0fc10: 40 9e 00 20 bne- cr7,ffc0fc30 <rtems_pipe_initialize+0x7c><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
rtems_interval now;
now = rtems_clock_get_ticks_since_boot();
ffc0fc14: 4b ff 82 e5 bl ffc07ef8 <rtems_clock_get_ticks_since_boot><== NOT EXECUTED
rtems_pipe_no = now;
}
ffc0fc18: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
rtems_interval now;
now = rtems_clock_get_ticks_since_boot();
rtems_pipe_no = now;
ffc0fc1c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
}
ffc0fc20: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
rtems_interval now;
now = rtems_clock_get_ticks_since_boot();
rtems_pipe_no = now;
ffc0fc24: b0 69 27 b0 sth r3,10160(r9) <== NOT EXECUTED
}
ffc0fc28: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc0fc2c: 4e 80 00 20 blr <== NOT EXECUTED
sc = rtems_semaphore_create(
rtems_build_name ('P', 'I', 'P', 'E'), 1,
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
RTEMS_NO_PRIORITY, &rtems_pipe_semaphore);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
ffc0fc30: 4b ff 94 05 bl ffc09034 <rtems_fatal_error_occurred> <== NOT EXECUTED
ffc468e0 <rtems_rate_monotonic_period>:
rtems_status_code rtems_rate_monotonic_period(
rtems_id id,
rtems_interval length
)
{
ffc468e0: 94 21 ff d0 stwu r1,-48(r1)
ffc468e4: 7c 08 02 a6 mflr r0
ffc468e8: 93 e1 00 2c stw r31,44(r1)
ffc468ec: 7c 7f 1b 78 mr r31,r3
ffc468f0: 3c 60 00 00 lis r3,0
ffc468f4: 93 c1 00 28 stw r30,40(r1)
ffc468f8: 38 63 68 c4 addi r3,r3,26820
ffc468fc: 7c 9e 23 78 mr r30,r4
ffc46900: 38 a1 00 08 addi r5,r1,8
ffc46904: 90 01 00 34 stw r0,52(r1)
ffc46908: 7f e4 fb 78 mr r4,r31
ffc4690c: 93 a1 00 24 stw r29,36(r1)
ffc46910: 93 61 00 1c stw r27,28(r1)
ffc46914: 93 81 00 20 stw r28,32(r1)
ffc46918: 4b fc 82 f1 bl ffc0ec08 <_Objects_Get>
ffc4691c: 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 ) {
ffc46920: 80 01 00 08 lwz r0,8(r1)
ffc46924: 2f 80 00 00 cmpwi cr7,r0,0
ffc46928: 40 9e 00 48 bne- cr7,ffc46970 <rtems_rate_monotonic_period+0x90>
case OBJECTS_LOCAL:
if ( !_Thread_Is_executing( the_period->owner ) ) {
ffc4692c: 3f 80 00 00 lis r28,0
ffc46930: 81 23 00 40 lwz r9,64(r3)
ffc46934: 80 1c 36 14 lwz r0,13844(r28)
ffc46938: 7f 89 00 00 cmpw cr7,r9,r0
ffc4693c: 41 9e 00 60 beq- cr7,ffc4699c <rtems_rate_monotonic_period+0xbc>
_Thread_Enable_dispatch();
ffc46940: 4b fc 8f 81 bl ffc0f8c0 <_Thread_Enable_dispatch>
ffc46944: 3b e0 00 17 li r31,23
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
ffc46948: 80 01 00 34 lwz r0,52(r1)
ffc4694c: 7f e3 fb 78 mr r3,r31
ffc46950: 83 61 00 1c lwz r27,28(r1)
ffc46954: 7c 08 03 a6 mtlr r0
ffc46958: 83 81 00 20 lwz r28,32(r1)
ffc4695c: 83 a1 00 24 lwz r29,36(r1)
ffc46960: 83 c1 00 28 lwz r30,40(r1)
ffc46964: 83 e1 00 2c lwz r31,44(r1)
ffc46968: 38 21 00 30 addi r1,r1,48
ffc4696c: 4e 80 00 20 blr
ffc46970: 80 01 00 34 lwz r0,52(r1)
the_period->state = RATE_MONOTONIC_ACTIVE;
the_period->next_length = length;
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
return RTEMS_TIMEOUT;
ffc46974: 3b e0 00 04 li r31,4
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
ffc46978: 7f e3 fb 78 mr r3,r31
ffc4697c: 83 61 00 1c lwz r27,28(r1)
ffc46980: 7c 08 03 a6 mtlr r0
ffc46984: 83 81 00 20 lwz r28,32(r1)
ffc46988: 83 a1 00 24 lwz r29,36(r1)
ffc4698c: 83 c1 00 28 lwz r30,40(r1)
ffc46990: 83 e1 00 2c lwz r31,44(r1)
ffc46994: 38 21 00 30 addi r1,r1,48
ffc46998: 4e 80 00 20 blr
if ( !_Thread_Is_executing( the_period->owner ) ) {
_Thread_Enable_dispatch();
return RTEMS_NOT_OWNER_OF_RESOURCE;
}
if ( length == RTEMS_PERIOD_STATUS ) {
ffc4699c: 2f 9e 00 00 cmpwi cr7,r30,0
ffc469a0: 41 9e 00 b4 beq- cr7,ffc46a54 <rtems_rate_monotonic_period+0x174>
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc469a4: 7f 60 00 a6 mfmsr r27
ffc469a8: 7c 10 42 a6 mfsprg r0,0
ffc469ac: 7f 60 00 78 andc r0,r27,r0
ffc469b0: 7c 00 01 24 mtmsr r0
_Thread_Enable_dispatch();
return( return_value );
}
_ISR_Disable( level );
switch ( the_period->state ) {
ffc469b4: 80 03 00 38 lwz r0,56(r3)
ffc469b8: 2f 80 00 02 cmpwi cr7,r0,2
ffc469bc: 41 9e 00 c0 beq- cr7,ffc46a7c <rtems_rate_monotonic_period+0x19c>
ffc469c0: 2f 80 00 04 cmpwi cr7,r0,4
ffc469c4: 41 9e 00 5c beq- cr7,ffc46a20 <rtems_rate_monotonic_period+0x140>
ffc469c8: 2f 80 00 00 cmpwi cr7,r0,0
ffc469cc: 40 be ff a4 bne- cr7,ffc46970 <rtems_rate_monotonic_period+0x90>
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc469d0: 7f 60 01 24 mtmsr r27
_ISR_Enable( level );
/*
* Baseline statistics information for the beginning of a period.
*/
_Rate_monotonic_Initiate_statistics( the_period );
ffc469d4: 4b ff fc 1d bl ffc465f0 <_Rate_monotonic_Initiate_statistics>
the_period->state = RATE_MONOTONIC_ACTIVE;
ffc469d8: 39 20 00 02 li r9,2
ffc469dc: 91 3d 00 38 stw r9,56(r29)
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
ffc469e0: 3d 20 ff c4 lis r9,-60
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
ffc469e4: 38 00 00 00 li r0,0
the_watchdog->routine = routine;
ffc469e8: 39 29 6a ec addi r9,r9,27372
the_watchdog->id = id;
ffc469ec: 93 fd 00 30 stw r31,48(r29)
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
ffc469f0: 3c 60 00 00 lis r3,0
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
ffc469f4: 91 3d 00 2c stw r9,44(r29)
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
ffc469f8: 38 63 65 68 addi r3,r3,25960
ffc469fc: 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;
ffc46a00: 90 1d 00 34 stw r0,52(r29)
);
the_period->next_length = length;
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
ffc46a04: 3b e0 00 00 li r31,0
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
ffc46a08: 93 dd 00 1c stw r30,28(r29)
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
ffc46a0c: 90 1d 00 18 stw r0,24(r29)
_Rate_monotonic_Timeout,
id,
NULL
);
the_period->next_length = length;
ffc46a10: 93 dd 00 3c stw r30,60(r29)
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
ffc46a14: 4b fc a5 61 bl ffc10f74 <_Watchdog_Insert>
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
ffc46a18: 4b fc 8e a9 bl ffc0f8c0 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
ffc46a1c: 4b ff ff 2c b ffc46948 <rtems_rate_monotonic_period+0x68>
case RATE_MONOTONIC_EXPIRED:
/*
* Update statistics from the concluding period
*/
_Rate_monotonic_Update_statistics( the_period );
ffc46a20: 4b ff fd 79 bl ffc46798 <_Rate_monotonic_Update_statistics>
ffc46a24: 7f 60 01 24 mtmsr r27
_ISR_Enable( level );
the_period->state = RATE_MONOTONIC_ACTIVE;
ffc46a28: 38 00 00 02 li r0,2
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
ffc46a2c: 93 dd 00 1c stw r30,28(r29)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
ffc46a30: 3c 60 00 00 lis r3,0
ffc46a34: 90 1d 00 38 stw r0,56(r29)
ffc46a38: 38 63 65 68 addi r3,r3,25960
ffc46a3c: 38 9d 00 10 addi r4,r29,16
the_period->next_length = length;
ffc46a40: 93 dd 00 3c stw r30,60(r29)
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
ffc46a44: 3b e0 00 06 li r31,6
ffc46a48: 4b fc a5 2d bl ffc10f74 <_Watchdog_Insert>
ffc46a4c: 4b fc 8e 75 bl ffc0f8c0 <_Thread_Enable_dispatch>
return RTEMS_TIMEOUT;
ffc46a50: 4b ff fe f8 b ffc46948 <rtems_rate_monotonic_period+0x68>
_Thread_Enable_dispatch();
return RTEMS_NOT_OWNER_OF_RESOURCE;
}
if ( length == RTEMS_PERIOD_STATUS ) {
switch ( the_period->state ) {
ffc46a54: 80 03 00 38 lwz r0,56(r3)
ffc46a58: 3b e0 00 00 li r31,0
ffc46a5c: 2b 80 00 04 cmplwi cr7,r0,4
ffc46a60: 41 bd ff b8 bgt- cr7,ffc46a18 <rtems_rate_monotonic_period+0x138>
ffc46a64: 3d 20 ff c7 lis r9,-57
ffc46a68: 54 00 10 3a rlwinm r0,r0,2,0,29
ffc46a6c: 39 29 24 80 addi r9,r9,9344
ffc46a70: 7f e9 00 2e lwzx r31,r9,r0
);
the_period->next_length = length;
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
ffc46a74: 4b fc 8e 4d bl ffc0f8c0 <_Thread_Enable_dispatch>
ffc46a78: 4b ff fe d0 b ffc46948 <rtems_rate_monotonic_period+0x68>
case RATE_MONOTONIC_ACTIVE:
/*
* Update statistics from the concluding period.
*/
_Rate_monotonic_Update_statistics( the_period );
ffc46a7c: 4b ff fd 1d bl ffc46798 <_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;
ffc46a80: 38 00 00 01 li r0,1
the_period->next_length = length;
ffc46a84: 93 dd 00 3c stw r30,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;
ffc46a88: 90 1d 00 38 stw r0,56(r29)
ffc46a8c: 7f 60 01 24 mtmsr r27
the_period->next_length = length;
_ISR_Enable( level );
_Thread_Executing->Wait.id = the_period->Object.id;
ffc46a90: 81 3c 36 14 lwz r9,13844(r28)
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
ffc46a94: 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;
ffc46a98: 80 1d 00 08 lwz r0,8(r29)
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
ffc46a9c: 7d 23 4b 78 mr r3,r9
the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING;
the_period->next_length = length;
_ISR_Enable( level );
_Thread_Executing->Wait.id = the_period->Object.id;
ffc46aa0: 90 09 00 20 stw r0,32(r9)
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
ffc46aa4: 4b fc 99 a5 bl ffc10448 <_Thread_Set_state>
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc46aa8: 7d 20 00 a6 mfmsr r9
ffc46aac: 7c 10 42 a6 mfsprg r0,0
ffc46ab0: 7d 20 00 78 andc r0,r9,r0
ffc46ab4: 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;
ffc46ab8: 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;
ffc46abc: 80 1d 00 38 lwz r0,56(r29)
the_period->state = RATE_MONOTONIC_ACTIVE;
ffc46ac0: 91 7d 00 38 stw r11,56(r29)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc46ac4: 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 )
ffc46ac8: 2f 80 00 03 cmpwi cr7,r0,3
ffc46acc: 41 9e 00 10 beq- cr7,ffc46adc <rtems_rate_monotonic_period+0x1fc>
_Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
_Thread_Enable_dispatch();
ffc46ad0: 4b fc 8d f1 bl ffc0f8c0 <_Thread_Enable_dispatch>
ffc46ad4: 3b e0 00 00 li r31,0
return RTEMS_SUCCESSFUL;
ffc46ad8: 4b ff fe 70 b ffc46948 <rtems_rate_monotonic_period+0x68>
/*
* If it did, then we want to unblock ourself and continue as
* if nothing happen. The period was reset in the timeout routine.
*/
if ( local_state == RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING )
_Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
ffc46adc: 80 7c 36 14 lwz r3,13844(r28) <== NOT EXECUTED
ffc46ae0: 38 80 40 00 li r4,16384 <== NOT EXECUTED
ffc46ae4: 4b fc 88 c9 bl ffc0f3ac <_Thread_Clear_state> <== NOT EXECUTED
ffc46ae8: 4b ff ff e8 b ffc46ad0 <rtems_rate_monotonic_period+0x1f0><== NOT EXECUTED
ffc05704 <rtems_stack_checker_is_blown>:
/*
* Check if blown
*/
bool rtems_stack_checker_is_blown( void )
{
ffc05704: 94 21 ff e8 stwu r1,-24(r1)
ffc05708: 7c 08 02 a6 mflr r0
ffc0570c: 93 c1 00 10 stw r30,16(r1)
Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack;
ffc05710: 3f c0 00 00 lis r30,0
/*
* Check if blown
*/
bool rtems_stack_checker_is_blown( void )
{
ffc05714: 90 01 00 1c stw r0,28(r1)
Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack;
ffc05718: 81 3e 36 14 lwz r9,13844(r30)
/*
* Check if blown
*/
bool rtems_stack_checker_is_blown( void )
{
ffc0571c: 93 e1 00 14 stw r31,20(r1)
ffc05720: 7c 3f 0b 78 mr r31,r1
)
{
#if defined(__GNUC__)
void *sp = __builtin_frame_address(0);
if ( sp < the_stack->area ) {
ffc05724: 80 69 00 cc lwz r3,204(r9)
/*
* Check if blown
*/
bool rtems_stack_checker_is_blown( void )
{
ffc05728: 93 a1 00 0c stw r29,12(r1)
)
{
#if defined(__GNUC__)
void *sp = __builtin_frame_address(0);
if ( sp < the_stack->area ) {
ffc0572c: 3b a0 00 00 li r29,0
ffc05730: 7f 9f 18 40 cmplw cr7,r31,r3
ffc05734: 41 9c 00 18 blt- cr7,ffc0574c <rtems_stack_checker_is_blown+0x48>
}
/*
* Check if blown
*/
bool rtems_stack_checker_is_blown( void )
ffc05738: 83 a9 00 c8 lwz r29,200(r9)
ffc0573c: 7f a3 ea 14 add r29,r3,r29
ffc05740: 7f bf e8 10 subfc r29,r31,r29
ffc05744: 3b a0 00 00 li r29,0
ffc05748: 7f bd e9 14 adde r29,r29,r29
/*
* The stack checker must be initialized before the pattern is there
* to check.
*/
if ( Stack_check_Initialized ) {
ffc0574c: 3d 20 00 00 lis r9,0
ffc05750: 80 09 36 f0 lwz r0,14064(r9)
ffc05754: 38 80 00 01 li r4,1
ffc05758: 2f 80 00 00 cmpwi cr7,r0,0
ffc0575c: 41 9e 00 20 beq- cr7,ffc0577c <rtems_stack_checker_is_blown+0x78>
pattern_ok = (!memcmp(
ffc05760: 3c 80 00 00 lis r4,0
ffc05764: 38 84 62 98 addi r4,r4,25240
ffc05768: 38 63 00 08 addi r3,r3,8
ffc0576c: 38 a0 00 80 li r5,128
ffc05770: 48 04 ae c9 bl ffc50638 <memcmp>
ffc05774: 7c 64 00 34 cntlzw r4,r3
ffc05778: 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 )
ffc0577c: 2f 9d 00 00 cmpwi cr7,r29,0
ffc05780: 41 9e 00 10 beq- cr7,ffc05790 <rtems_stack_checker_is_blown+0x8c>
ffc05784: 2f 84 00 00 cmpwi cr7,r4,0
ffc05788: 38 60 00 00 li r3,0
ffc0578c: 40 9e 00 10 bne- cr7,ffc0579c <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 );
ffc05790: 80 7e 36 14 lwz r3,13844(r30) <== NOT EXECUTED
ffc05794: 4b ff fe 91 bl ffc05624 <Stack_check_report_blown_task><== NOT EXECUTED
ffc05798: 38 60 00 01 li r3,1 <== NOT EXECUTED
return true;
}
ffc0579c: 39 7f 00 18 addi r11,r31,24
ffc057a0: 80 0b 00 04 lwz r0,4(r11)
ffc057a4: 83 ab ff f4 lwz r29,-12(r11)
ffc057a8: 7c 08 03 a6 mtlr r0
ffc057ac: 83 cb ff f8 lwz r30,-8(r11)
ffc057b0: 83 eb ff fc lwz r31,-4(r11)
ffc057b4: 7d 61 5b 78 mr r1,r11
ffc057b8: 4e 80 00 20 blr
ffc05614 <rtems_stack_checker_report_usage>:
void rtems_stack_checker_report_usage( void )
{
rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin );
ffc05614: 3c 80 ff c1 lis r4,-63 <== NOT EXECUTED
ffc05618: 38 84 90 c8 addi r4,r4,-28472 <== NOT EXECUTED
ffc0561c: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc05620: 4b ff ff 5c b ffc0557c <rtems_stack_checker_report_usage_with_plugin><== NOT EXECUTED
ffc0557c <rtems_stack_checker_report_usage_with_plugin>:
void rtems_stack_checker_report_usage_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
ffc0557c: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED
ffc05580: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc05584: 93 e1 00 14 stw r31,20(r1) <== NOT EXECUTED
print_context = context;
ffc05588: 3f e0 00 00 lis r31,0 <== NOT EXECUTED
ffc0558c: 3b ff 36 f0 addi r31,r31,14064 <== NOT EXECUTED
void rtems_stack_checker_report_usage_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
ffc05590: 93 c1 00 10 stw r30,16(r1) <== NOT EXECUTED
ffc05594: 7c 9e 23 78 mr r30,r4 <== NOT EXECUTED
print_context = context;
print_handler = print;
(*print)( context, "Stack usage by thread\n");
ffc05598: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED
ffc0559c: 7f c9 03 a6 mtctr r30 <== NOT EXECUTED
void rtems_stack_checker_report_usage_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
ffc055a0: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED
print_context = context;
print_handler = print;
(*print)( context, "Stack usage by thread\n");
ffc055a4: 38 84 97 30 addi r4,r4,-26832 <== NOT EXECUTED
void rtems_stack_checker_report_usage_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
ffc055a8: 93 a1 00 0c stw r29,12(r1) <== NOT EXECUTED
ffc055ac: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED
print_context = context;
print_handler = print;
ffc055b0: 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;
ffc055b4: 90 7f 00 08 stw r3,8(r31) <== NOT EXECUTED
print_handler = print;
(*print)( context, "Stack usage by thread\n");
ffc055b8: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc055bc: 4e 80 04 21 bctrl <== NOT EXECUTED
(*print)( context,
ffc055c0: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED
ffc055c4: 7f c9 03 a6 mtctr r30 <== NOT EXECUTED
ffc055c8: 38 84 97 48 addi r4,r4,-26808 <== NOT EXECUTED
ffc055cc: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc055d0: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc055d4: 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 );
ffc055d8: 3c 60 ff c0 lis r3,-64 <== NOT EXECUTED
ffc055dc: 38 63 53 30 addi r3,r3,21296 <== NOT EXECUTED
ffc055e0: 48 00 8e 3d bl ffc0e41c <rtems_iterate_over_all_threads><== NOT EXECUTED
/* dump interrupt stack info if any */
Stack_check_Dump_threads_usage((Thread_Control *) -1);
ffc055e4: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc055e8: 4b ff fd 49 bl ffc05330 <Stack_check_Dump_threads_usage><== NOT EXECUTED
print_context = NULL;
ffc055ec: 38 00 00 00 li r0,0 <== NOT EXECUTED
print_handler = NULL;
ffc055f0: 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;
ffc055f4: 90 1f 00 08 stw r0,8(r31) <== NOT EXECUTED
print_handler = NULL;
}
ffc055f8: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED
ffc055fc: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED
ffc05600: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc05604: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED
ffc05608: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED
ffc0560c: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED
ffc05610: 4e 80 00 20 blr <== NOT EXECUTED
ffc057bc <rtems_stack_checker_switch_extension>:
*/
void rtems_stack_checker_switch_extension(
Thread_Control *running __attribute__((unused)),
Thread_Control *heir __attribute__((unused))
)
{
ffc057bc: 94 21 ff f0 stwu r1,-16(r1)
ffc057c0: 7c 08 02 a6 mflr r0
ffc057c4: 90 01 00 14 stw r0,20(r1)
Stack_Control *the_stack = &running->Start.Initial_stack;
void *pattern;
bool sp_ok;
bool pattern_ok = true;
pattern = (void *) Stack_check_Get_pattern_area(the_stack)->pattern;
ffc057c8: 81 23 00 cc lwz r9,204(r3)
*/
void rtems_stack_checker_switch_extension(
Thread_Control *running __attribute__((unused)),
Thread_Control *heir __attribute__((unused))
)
{
ffc057cc: 93 e1 00 0c stw r31,12(r1)
ffc057d0: 7c 3f 0b 78 mr r31,r1
)
{
#if defined(__GNUC__)
void *sp = __builtin_frame_address(0);
if ( sp < the_stack->area ) {
ffc057d4: 7f 9f 48 40 cmplw cr7,r31,r9
*/
void rtems_stack_checker_switch_extension(
Thread_Control *running __attribute__((unused)),
Thread_Control *heir __attribute__((unused))
)
{
ffc057d8: 93 c1 00 08 stw r30,8(r1)
ffc057dc: 7c 7e 1b 78 mr r30,r3
Stack_Control *the_stack = &running->Start.Initial_stack;
void *pattern;
bool sp_ok;
bool pattern_ok = true;
pattern = (void *) Stack_check_Get_pattern_area(the_stack)->pattern;
ffc057e0: 38 69 00 08 addi r3,r9,8
)
{
#if defined(__GNUC__)
void *sp = __builtin_frame_address(0);
if ( sp < the_stack->area ) {
ffc057e4: 41 9c 00 14 blt- cr7,ffc057f8 <rtems_stack_checker_switch_extension+0x3c>
void rtems_stack_checker_switch_extension(
Thread_Control *running __attribute__((unused)),
Thread_Control *heir __attribute__((unused))
)
{
Stack_Control *the_stack = &running->Start.Initial_stack;
ffc057e8: 80 1e 00 c8 lwz r0,200(r30)
ffc057ec: 7d 29 02 14 add r9,r9,r0
ffc057f0: 7f 9f 48 40 cmplw cr7,r31,r9
ffc057f4: 40 9d 00 3c ble- cr7,ffc05830 <rtems_stack_checker_switch_extension+0x74>
/*
* Check for an out of bounds stack pointer or an overwrite
*/
sp_ok = Stack_check_Frame_pointer_in_range( the_stack );
pattern_ok = (!memcmp( pattern,
ffc057f8: 3c 80 00 00 lis r4,0 <== NOT EXECUTED
ffc057fc: 38 84 62 98 addi r4,r4,25240 <== NOT EXECUTED
ffc05800: 38 a0 00 80 li r5,128 <== NOT EXECUTED
ffc05804: 48 04 ae 35 bl ffc50638 <memcmp> <== NOT EXECUTED
ffc05808: 7c 64 00 34 cntlzw r4,r3 <== NOT EXECUTED
ffc0580c: 54 84 d9 7e rlwinm r4,r4,27,5,31 <== NOT EXECUTED
(void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
if ( !sp_ok || !pattern_ok ) {
Stack_check_report_blown_task( running, pattern_ok );
}
}
ffc05810: 39 7f 00 10 addi r11,r31,16
ffc05814: 80 0b 00 04 lwz r0,4(r11)
pattern_ok = (!memcmp( pattern,
(void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
if ( !sp_ok || !pattern_ok ) {
Stack_check_report_blown_task( running, pattern_ok );
ffc05818: 7f c3 f3 78 mr r3,r30
}
}
ffc0581c: 83 eb ff fc lwz r31,-4(r11)
ffc05820: 7c 08 03 a6 mtlr r0
ffc05824: 83 cb ff f8 lwz r30,-8(r11)
ffc05828: 7d 61 5b 78 mr r1,r11
pattern_ok = (!memcmp( pattern,
(void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
if ( !sp_ok || !pattern_ok ) {
Stack_check_report_blown_task( running, pattern_ok );
ffc0582c: 4b ff fd f8 b ffc05624 <Stack_check_report_blown_task>
/*
* Check for an out of bounds stack pointer or an overwrite
*/
sp_ok = Stack_check_Frame_pointer_in_range( the_stack );
pattern_ok = (!memcmp( pattern,
ffc05830: 3c 80 00 00 lis r4,0
ffc05834: 38 84 62 98 addi r4,r4,25240
ffc05838: 38 a0 00 80 li r5,128
ffc0583c: 48 04 ad fd bl ffc50638 <memcmp>
(void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
if ( !sp_ok || !pattern_ok ) {
ffc05840: 38 80 00 00 li r4,0
ffc05844: 2f 83 00 00 cmpwi cr7,r3,0
ffc05848: 40 9e ff c8 bne+ cr7,ffc05810 <rtems_stack_checker_switch_extension+0x54>
Stack_check_report_blown_task( running, pattern_ok );
}
}
ffc0584c: 39 7f 00 10 addi r11,r31,16
ffc05850: 80 0b 00 04 lwz r0,4(r11)
ffc05854: 83 cb ff f8 lwz r30,-8(r11)
ffc05858: 7c 08 03 a6 mtlr r0
ffc0585c: 83 eb ff fc lwz r31,-4(r11)
ffc05860: 7d 61 5b 78 mr r1,r11
ffc05864: 4e 80 00 20 blr
ffc22550 <rtems_string_to_pointer>:
#if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER)
,
int base
#endif
)
{
ffc22550: 94 21 ff d8 stwu r1,-40(r1)
ffc22554: 7c 08 02 a6 mflr r0
ffc22558: 93 c1 00 20 stw r30,32(r1)
STRING_TO_INPUT_TYPE result;
char *end;
if ( !n )
ffc2255c: 7c 9e 23 79 mr. r30,r4
#if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER)
,
int base
#endif
)
{
ffc22560: 93 a1 00 1c stw r29,28(r1)
ffc22564: 7c bd 2b 78 mr r29,r5
ffc22568: 93 e1 00 24 stw r31,36(r1)
ffc2256c: 7c 7f 1b 78 mr r31,r3
STRING_TO_INPUT_TYPE result;
char *end;
if ( !n )
ffc22570: 38 60 00 09 li r3,9
#if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER)
,
int base
#endif
)
{
ffc22574: 90 01 00 2c stw r0,44(r1)
ffc22578: 93 81 00 18 stw r28,24(r1)
STRING_TO_INPUT_TYPE result;
char *end;
if ( !n )
ffc2257c: 41 82 00 54 beq- ffc225d0 <rtems_string_to_pointer+0x80>
return RTEMS_INVALID_ADDRESS;
errno = 0;
ffc22580: 48 02 a5 f9 bl ffc4cb78 <__errno>
ffc22584: 38 00 00 00 li r0,0
ffc22588: 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 );
ffc2258c: 38 81 00 08 addi r4,r1,8
ffc22590: 7f e3 fb 78 mr r3,r31
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
*n = 0;
ffc22594: 90 1e 00 00 stw r0,0(r30)
#ifdef STRING_TO_FLOAT
result = STRING_TO_METHOD( s, &end );
#elif defined(STRING_TO_POINTER)
result = STRING_TO_METHOD( s, &end, 16 );
ffc22598: 38 a0 00 10 li r5,16
ffc2259c: 48 03 38 e1 bl ffc55e7c <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 )
ffc225a0: 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 );
ffc225a4: 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 )
ffc225a8: 41 9e 00 60 beq- cr7,ffc22608 <rtems_string_to_pointer+0xb8>
*endptr = end;
ffc225ac: 80 01 00 08 lwz r0,8(r1)
ffc225b0: 90 1d 00 00 stw r0,0(r29)
/* nothing was converted */
if ( end == s )
ffc225b4: 7f 80 f8 00 cmpw cr7,r0,r31
ffc225b8: 38 60 00 0b li r3,11
ffc225bc: 41 9e 00 14 beq- cr7,ffc225d0 <rtems_string_to_pointer+0x80>
return RTEMS_INVALID_NUMBER;
#endif
#ifdef STRING_TO_MAX
/* there was an overflow */
if ( (result == STRING_TO_MAX) && (errno == ERANGE))
ffc225c0: 2f 9c ff ff cmpwi cr7,r28,-1
ffc225c4: 41 9e 00 2c beq- cr7,ffc225f0 <rtems_string_to_pointer+0xa0>
if ( (result == STRING_TO_MIN) && (errno == ERANGE))
return RTEMS_INVALID_NUMBER;
#endif
#if defined(STRING_TO_POINTER)
*n = (STRING_TO_TYPE) (uintptr_t)result;
ffc225c8: 93 9e 00 00 stw r28,0(r30)
ffc225cc: 38 60 00 00 li r3,0
#else
*n = (STRING_TO_TYPE) result;
#endif
return RTEMS_SUCCESSFUL;
}
ffc225d0: 80 01 00 2c lwz r0,44(r1)
ffc225d4: 83 81 00 18 lwz r28,24(r1)
ffc225d8: 7c 08 03 a6 mtlr r0
ffc225dc: 83 a1 00 1c lwz r29,28(r1)
ffc225e0: 83 c1 00 20 lwz r30,32(r1)
ffc225e4: 83 e1 00 24 lwz r31,36(r1)
ffc225e8: 38 21 00 28 addi r1,r1,40
ffc225ec: 4e 80 00 20 blr
return RTEMS_INVALID_NUMBER;
#endif
#ifdef STRING_TO_MAX
/* there was an overflow */
if ( (result == STRING_TO_MAX) && (errno == ERANGE))
ffc225f0: 48 02 a5 89 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc225f4: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED
ffc225f8: 38 60 00 0a li r3,10 <== NOT EXECUTED
ffc225fc: 2f 80 00 22 cmpwi cr7,r0,34 <== NOT EXECUTED
ffc22600: 40 9e ff c8 bne+ cr7,ffc225c8 <rtems_string_to_pointer+0x78><== NOT EXECUTED
ffc22604: 4b ff ff cc b ffc225d0 <rtems_string_to_pointer+0x80><== NOT EXECUTED
ffc22608: 80 01 00 08 lwz r0,8(r1)
ffc2260c: 4b ff ff a8 b ffc225b4 <rtems_string_to_pointer+0x64>
ffc0739c <rtems_termios_baud_to_index>:
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc0739c: 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;
ffc073a0: 38 00 00 09 li r0,9
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc073a4: 41 9e 00 44 beq- cr7,ffc073e8 <rtems_termios_baud_to_index+0x4c>
ffc073a8: 40 9d 00 48 ble- cr7,ffc073f0 <rtems_termios_baud_to_index+0x54>
ffc073ac: 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;
ffc073b0: 38 00 00 0e li r0,14 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc073b4: 41 9e 00 34 beq- cr7,ffc073e8 <rtems_termios_baud_to_index+0x4c><== NOT EXECUTED
ffc073b8: 40 9d 00 78 ble- cr7,ffc07430 <rtems_termios_baud_to_index+0x94><== NOT EXECUTED
ffc073bc: 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;
ffc073c0: 38 00 00 11 li r0,17 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc073c4: 41 9e 00 24 beq- cr7,ffc073e8 <rtems_termios_baud_to_index+0x4c><== NOT EXECUTED
ffc073c8: 40 9d 00 d4 ble- cr7,ffc0749c <rtems_termios_baud_to_index+0x100><== NOT EXECUTED
ffc073cc: 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;
ffc073d0: 38 00 00 12 li r0,18 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc073d4: 41 9e 00 14 beq- cr7,ffc073e8 <rtems_termios_baud_to_index+0x4c><== NOT EXECUTED
ffc073d8: 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;
ffc073dc: 38 00 00 13 li r0,19 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc073e0: 41 9e 00 08 beq- cr7,ffc073e8 <rtems_termios_baud_to_index+0x4c><== 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;
ffc073e4: 38 00 ff ff li r0,-1
default: baud_index = -1; break;
}
return baud_index;
}
ffc073e8: 7c 03 03 78 mr r3,r0
ffc073ec: 4e 80 00 20 blr
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc073f0: 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;
ffc073f4: 38 00 00 04 li r0,4
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc073f8: 41 be ff f0 beq- cr7,ffc073e8 <rtems_termios_baud_to_index+0x4c>
ffc073fc: 41 9d 00 64 bgt- cr7,ffc07460 <rtems_termios_baud_to_index+0xc4>
ffc07400: 2f 83 00 01 cmpwi cr7,r3,1
ffc07404: 38 00 00 01 li r0,1
ffc07408: 41 be ff e0 beq- cr7,ffc073e8 <rtems_termios_baud_to_index+0x4c>
ffc0740c: 40 9d 00 ac ble- cr7,ffc074b8 <rtems_termios_baud_to_index+0x11c>
ffc07410: 2f 83 00 02 cmpwi cr7,r3,2 <== NOT EXECUTED
ffc07414: 38 00 00 02 li r0,2 <== NOT EXECUTED
ffc07418: 41 be ff d0 beq- cr7,ffc073e8 <rtems_termios_baud_to_index+0x4c><== NOT EXECUTED
ffc0741c: 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;
ffc07420: 38 00 00 03 li r0,3 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc07424: 41 be ff c4 beq- cr7,ffc073e8 <rtems_termios_baud_to_index+0x4c><== 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;
ffc07428: 38 00 ff ff li r0,-1 <== NOT EXECUTED
ffc0742c: 4b ff ff bc b ffc073e8 <rtems_termios_baud_to_index+0x4c><== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc07430: 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;
ffc07434: 38 00 00 0b li r0,11 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc07438: 41 be ff b0 beq- cr7,ffc073e8 <rtems_termios_baud_to_index+0x4c><== NOT EXECUTED
ffc0743c: 41 9c 00 58 blt- cr7,ffc07494 <rtems_termios_baud_to_index+0xf8><== NOT EXECUTED
ffc07440: 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;
ffc07444: 38 00 00 0c li r0,12 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc07448: 41 be ff a0 beq- cr7,ffc073e8 <rtems_termios_baud_to_index+0x4c><== NOT EXECUTED
ffc0744c: 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;
ffc07450: 38 00 00 0d li r0,13 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc07454: 41 be ff 94 beq- cr7,ffc073e8 <rtems_termios_baud_to_index+0x4c><== 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;
ffc07458: 38 00 ff ff li r0,-1 <== NOT EXECUTED
ffc0745c: 4b ff ff 8c b ffc073e8 <rtems_termios_baud_to_index+0x4c><== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc07460: 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;
ffc07464: 38 00 00 06 li r0,6 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc07468: 41 be ff 80 beq- cr7,ffc073e8 <rtems_termios_baud_to_index+0x4c><== NOT EXECUTED
ffc0746c: 41 9c 00 20 blt- cr7,ffc0748c <rtems_termios_baud_to_index+0xf0><== NOT EXECUTED
ffc07470: 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;
ffc07474: 38 00 00 07 li r0,7 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc07478: 41 be ff 70 beq- cr7,ffc073e8 <rtems_termios_baud_to_index+0x4c><== NOT EXECUTED
ffc0747c: 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;
ffc07480: 38 00 00 08 li r0,8 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc07484: 40 9e ff 60 bne+ cr7,ffc073e4 <rtems_termios_baud_to_index+0x48><== NOT EXECUTED
ffc07488: 4b ff ff 60 b ffc073e8 <rtems_termios_baud_to_index+0x4c><== 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;
ffc0748c: 38 00 00 05 li r0,5 <== NOT EXECUTED
case B150: baud_index = 5; break;
ffc07490: 4b ff ff 58 b ffc073e8 <rtems_termios_baud_to_index+0x4c><== 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;
ffc07494: 38 00 00 0a li r0,10 <== NOT EXECUTED
case B1800: baud_index = 10; break;
ffc07498: 4b ff ff 50 b ffc073e8 <rtems_termios_baud_to_index+0x4c><== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc0749c: 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;
ffc074a0: 38 00 00 0f li r0,15 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc074a4: 41 be ff 44 beq- cr7,ffc073e8 <rtems_termios_baud_to_index+0x4c><== NOT EXECUTED
ffc074a8: 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;
ffc074ac: 38 00 00 10 li r0,16 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
ffc074b0: 40 9e ff 34 bne+ cr7,ffc073e4 <rtems_termios_baud_to_index+0x48><== NOT EXECUTED
ffc074b4: 4b ff ff 34 b ffc073e8 <rtems_termios_baud_to_index+0x4c><== NOT EXECUTED
ffc074b8: 2f 83 00 00 cmpwi cr7,r3,0
ffc074bc: 38 00 00 00 li r0,0
ffc074c0: 41 be ff 28 beq- cr7,ffc073e8 <rtems_termios_baud_to_index+0x4c>
ffc074c4: 4b ff ff 20 b ffc073e4 <rtems_termios_baud_to_index+0x48>
ffc074c8 <rtems_termios_baud_to_number>:
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
ffc074c8: 2f 83 00 09 cmpwi cr7,r3,9
case B110: baud = 110; break;
case B134: baud = 134; break;
case B150: baud = 150; break;
case B200: baud = 200; break;
case B300: baud = 300; break;
case B600: baud = 600; break;
ffc074cc: 38 00 04 b0 li r0,1200
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
ffc074d0: 41 9e 00 50 beq- cr7,ffc07520 <rtems_termios_baud_to_number+0x58>
ffc074d4: 40 9d 00 54 ble- cr7,ffc07528 <rtems_termios_baud_to_number+0x60>
ffc074d8: 2f 83 00 0e cmpwi cr7,r3,14
case B600: baud = 600; break;
case B1200: baud = 1200; break;
case B1800: baud = 1800; break;
case B2400: baud = 2400; break;
case B4800: baud = 4800; break;
case B9600: baud = 9600; break;
ffc074dc: 38 00 4b 00 li r0,19200
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
ffc074e0: 41 9e 00 40 beq- cr7,ffc07520 <rtems_termios_baud_to_number+0x58>
ffc074e4: 40 9d 00 84 ble- cr7,ffc07568 <rtems_termios_baud_to_number+0xa0>
ffc074e8: 2f 83 10 02 cmpwi cr7,r3,4098
case B2400: baud = 2400; break;
case B4800: baud = 4800; break;
case B9600: baud = 9600; break;
case B19200: baud = 19200; break;
case B38400: baud = 38400; break;
case B57600: baud = 57600; break;
ffc074ec: 3c 00 00 01 lis r0,1
ffc074f0: 60 00 c2 00 ori r0,r0,49664
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
ffc074f4: 41 9e 00 2c beq- cr7,ffc07520 <rtems_termios_baud_to_number+0x58>
ffc074f8: 40 9d 00 dc ble- cr7,ffc075d4 <rtems_termios_baud_to_number+0x10c>
ffc074fc: 2f 83 10 03 cmpwi cr7,r3,4099
case B4800: baud = 4800; break;
case B9600: baud = 9600; break;
case B19200: baud = 19200; break;
case B38400: baud = 38400; break;
case B57600: baud = 57600; break;
case B115200: baud = 115200; break;
ffc07500: 3c 00 00 03 lis r0,3
ffc07504: 60 00 84 00 ori r0,r0,33792
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
ffc07508: 41 9e 00 18 beq- cr7,ffc07520 <rtems_termios_baud_to_number+0x58>
ffc0750c: 2f 83 10 04 cmpwi cr7,r3,4100
case B9600: baud = 9600; break;
case B19200: baud = 19200; break;
case B38400: baud = 38400; break;
case B57600: baud = 57600; break;
case B115200: baud = 115200; break;
case B230400: baud = 230400; break;
ffc07510: 3c 00 00 07 lis r0,7
ffc07514: 60 00 08 00 ori r0,r0,2048
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
ffc07518: 41 9e 00 08 beq- cr7,ffc07520 <rtems_termios_baud_to_number+0x58>
case B19200: baud = 19200; break;
case B38400: baud = 38400; break;
case B57600: baud = 57600; break;
case B115200: baud = 115200; break;
case B230400: baud = 230400; break;
case B460800: baud = 460800; break;
ffc0751c: 38 00 ff ff li r0,-1
default: baud = -1; break;
}
return baud;
}
ffc07520: 7c 03 03 78 mr r3,r0
ffc07524: 4e 80 00 20 blr
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
ffc07528: 2f 83 00 04 cmpwi cr7,r3,4
case B0: baud = 0; break;
case B50: baud = 50; break;
case B75: baud = 75; break;
case B110: baud = 110; break;
ffc0752c: 38 00 00 86 li r0,134
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
ffc07530: 41 be ff f0 beq- cr7,ffc07520 <rtems_termios_baud_to_number+0x58>
ffc07534: 41 9d 00 64 bgt- cr7,ffc07598 <rtems_termios_baud_to_number+0xd0>
ffc07538: 2f 83 00 01 cmpwi cr7,r3,1
ffc0753c: 38 00 00 32 li r0,50
ffc07540: 41 be ff e0 beq- cr7,ffc07520 <rtems_termios_baud_to_number+0x58>
ffc07544: 40 9d 00 b4 ble- cr7,ffc075f8 <rtems_termios_baud_to_number+0x130>
ffc07548: 2f 83 00 02 cmpwi cr7,r3,2
ffc0754c: 38 00 00 4b li r0,75
ffc07550: 41 be ff d0 beq- cr7,ffc07520 <rtems_termios_baud_to_number+0x58>
ffc07554: 2f 83 00 03 cmpwi cr7,r3,3
case B0: baud = 0; break;
case B50: baud = 50; break;
case B75: baud = 75; break;
ffc07558: 38 00 00 6e li r0,110
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
ffc0755c: 41 be ff c4 beq- cr7,ffc07520 <rtems_termios_baud_to_number+0x58>
case B19200: baud = 19200; break;
case B38400: baud = 38400; break;
case B57600: baud = 57600; break;
case B115200: baud = 115200; break;
case B230400: baud = 230400; break;
case B460800: baud = 460800; break;
ffc07560: 38 00 ff ff li r0,-1 <== NOT EXECUTED
ffc07564: 4b ff ff bc b ffc07520 <rtems_termios_baud_to_number+0x58><== NOT EXECUTED
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
ffc07568: 2f 83 00 0b cmpwi cr7,r3,11
case B150: baud = 150; break;
case B200: baud = 200; break;
case B300: baud = 300; break;
case B600: baud = 600; break;
case B1200: baud = 1200; break;
case B1800: baud = 1800; break;
ffc0756c: 38 00 09 60 li r0,2400
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
ffc07570: 41 be ff b0 beq- cr7,ffc07520 <rtems_termios_baud_to_number+0x58>
ffc07574: 41 9c 00 58 blt- cr7,ffc075cc <rtems_termios_baud_to_number+0x104>
ffc07578: 2f 83 00 0c cmpwi cr7,r3,12
case B200: baud = 200; break;
case B300: baud = 300; break;
case B600: baud = 600; break;
case B1200: baud = 1200; break;
case B1800: baud = 1800; break;
case B2400: baud = 2400; break;
ffc0757c: 38 00 12 c0 li r0,4800
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
ffc07580: 41 be ff a0 beq- cr7,ffc07520 <rtems_termios_baud_to_number+0x58>
ffc07584: 2f 83 00 0d cmpwi cr7,r3,13
case B300: baud = 300; break;
case B600: baud = 600; break;
case B1200: baud = 1200; break;
case B1800: baud = 1800; break;
case B2400: baud = 2400; break;
case B4800: baud = 4800; break;
ffc07588: 38 00 25 80 li r0,9600
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
ffc0758c: 41 be ff 94 beq- cr7,ffc07520 <rtems_termios_baud_to_number+0x58>
case B19200: baud = 19200; break;
case B38400: baud = 38400; break;
case B57600: baud = 57600; break;
case B115200: baud = 115200; break;
case B230400: baud = 230400; break;
case B460800: baud = 460800; break;
ffc07590: 38 00 ff ff li r0,-1 <== NOT EXECUTED
ffc07594: 4b ff ff 8c b ffc07520 <rtems_termios_baud_to_number+0x58><== NOT EXECUTED
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
ffc07598: 2f 83 00 06 cmpwi cr7,r3,6
case B0: baud = 0; break;
case B50: baud = 50; break;
case B75: baud = 75; break;
case B110: baud = 110; break;
case B134: baud = 134; break;
case B150: baud = 150; break;
ffc0759c: 38 00 00 c8 li r0,200
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
ffc075a0: 41 be ff 80 beq- cr7,ffc07520 <rtems_termios_baud_to_number+0x58>
ffc075a4: 41 9c 00 20 blt- cr7,ffc075c4 <rtems_termios_baud_to_number+0xfc>
ffc075a8: 2f 83 00 07 cmpwi cr7,r3,7
case B50: baud = 50; break;
case B75: baud = 75; break;
case B110: baud = 110; break;
case B134: baud = 134; break;
case B150: baud = 150; break;
case B200: baud = 200; break;
ffc075ac: 38 00 01 2c li r0,300
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
ffc075b0: 41 be ff 70 beq- cr7,ffc07520 <rtems_termios_baud_to_number+0x58>
ffc075b4: 2f 83 00 08 cmpwi cr7,r3,8
case B75: baud = 75; break;
case B110: baud = 110; break;
case B134: baud = 134; break;
case B150: baud = 150; break;
case B200: baud = 200; break;
case B300: baud = 300; break;
ffc075b8: 38 00 02 58 li r0,600
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
ffc075bc: 40 9e ff 60 bne+ cr7,ffc0751c <rtems_termios_baud_to_number+0x54>
ffc075c0: 4b ff ff 60 b ffc07520 <rtems_termios_baud_to_number+0x58>
case B0: baud = 0; break;
case B50: baud = 50; break;
case B75: baud = 75; break;
case B110: baud = 110; break;
case B134: baud = 134; break;
ffc075c4: 38 00 00 96 li r0,150
case B150: baud = 150; break;
ffc075c8: 4b ff ff 58 b ffc07520 <rtems_termios_baud_to_number+0x58>
case B200: baud = 200; break;
case B300: baud = 300; break;
case B600: baud = 600; break;
case B1200: baud = 1200; break;
ffc075cc: 38 00 07 08 li r0,1800
case B1800: baud = 1800; break;
ffc075d0: 4b ff ff 50 b ffc07520 <rtems_termios_baud_to_number+0x58>
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
ffc075d4: 2f 83 00 0f cmpwi cr7,r3,15
case B1200: baud = 1200; break;
case B1800: baud = 1800; break;
case B2400: baud = 2400; break;
case B4800: baud = 4800; break;
case B9600: baud = 9600; break;
case B19200: baud = 19200; break;
ffc075d8: 38 00 00 00 li r0,0
ffc075dc: 60 00 96 00 ori r0,r0,38400
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
ffc075e0: 41 be ff 40 beq- cr7,ffc07520 <rtems_termios_baud_to_number+0x58>
ffc075e4: 2f 83 10 01 cmpwi cr7,r3,4097
case B1800: baud = 1800; break;
case B2400: baud = 2400; break;
case B4800: baud = 4800; break;
case B9600: baud = 9600; break;
case B19200: baud = 19200; break;
case B38400: baud = 38400; break;
ffc075e8: 38 00 00 00 li r0,0
ffc075ec: 60 00 e1 00 ori r0,r0,57600
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
ffc075f0: 40 9e ff 2c bne+ cr7,ffc0751c <rtems_termios_baud_to_number+0x54>
ffc075f4: 4b ff ff 2c b ffc07520 <rtems_termios_baud_to_number+0x58>
ffc075f8: 2f 83 00 00 cmpwi cr7,r3,0
ffc075fc: 38 00 00 00 li r0,0
ffc07600: 41 be ff 20 beq- cr7,ffc07520 <rtems_termios_baud_to_number+0x58>
ffc07604: 4b ff ff 18 b ffc0751c <rtems_termios_baud_to_number+0x54>
ffc057fc <rtems_termios_bufsize>:
int cbufsize,
int raw_input,
int raw_output
)
{
rtems_termios_cbufsize = cbufsize;
ffc057fc: 3d 60 00 00 lis r11,0 <== NOT EXECUTED
ffc05800: 39 2b 21 68 addi r9,r11,8552 <== NOT EXECUTED
ffc05804: 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;
}
ffc05808: 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;
ffc0580c: 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;
ffc05810: 90 89 00 04 stw r4,4(r9) <== NOT EXECUTED
rtems_termios_raw_output_size = raw_output;
return RTEMS_SUCCESSFUL;
}
ffc05814: 4e 80 00 20 blr <== NOT EXECUTED
ffc07260 <rtems_termios_close>:
}
}
rtems_status_code
rtems_termios_close (void *arg)
{
ffc07260: 94 21 ff e8 stwu r1,-24(r1)
ffc07264: 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);
ffc07268: 38 80 00 00 li r4,0
}
}
rtems_status_code
rtems_termios_close (void *arg)
{
ffc0726c: 90 01 00 1c stw r0,28(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);
ffc07270: 38 a0 00 00 li r5,0
}
}
rtems_status_code
rtems_termios_close (void *arg)
{
ffc07274: 93 c1 00 10 stw r30,16(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);
ffc07278: 3f c0 00 00 lis r30,0
rtems_status_code
rtems_termios_close (void *arg)
{
rtems_libio_open_close_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
ffc0727c: 81 23 00 00 lwz r9,0(r3)
}
}
rtems_status_code
rtems_termios_close (void *arg)
{
ffc07280: 93 a1 00 0c stw r29,12(r1)
ffc07284: 7c 7d 1b 78 mr r29,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);
ffc07288: 80 7e 27 14 lwz r3,10004(r30)
}
}
rtems_status_code
rtems_termios_close (void *arg)
{
ffc0728c: 93 e1 00 14 stw r31,20(r1)
rtems_libio_open_close_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
ffc07290: 83 e9 00 38 lwz r31,56(r9)
rtems_status_code sc;
sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc07294: 48 00 14 7d bl ffc08710 <rtems_semaphore_obtain>
if (sc != RTEMS_SUCCESSFUL)
ffc07298: 2f 83 00 00 cmpwi cr7,r3,0
ffc0729c: 40 9e 01 ac bne- cr7,ffc07448 <rtems_termios_close+0x1e8>
rtems_fatal_error_occurred (sc);
if (--tty->refcount == 0) {
ffc072a0: 81 3f 00 08 lwz r9,8(r31)
ffc072a4: 38 09 ff ff addi r0,r9,-1
ffc072a8: 2f 80 00 00 cmpwi cr7,r0,0
ffc072ac: 90 1f 00 08 stw r0,8(r31)
ffc072b0: 40 9e 00 d0 bne- cr7,ffc07380 <rtems_termios_close+0x120>
if (rtems_termios_linesw[tty->t_line].l_close != NULL) {
ffc072b4: 80 1f 00 cc lwz r0,204(r31)
ffc072b8: 3d 20 00 00 lis r9,0
ffc072bc: 39 29 27 f0 addi r9,r9,10224
ffc072c0: 54 00 28 34 rlwinm r0,r0,5,0,26
ffc072c4: 7d 29 02 14 add r9,r9,r0
ffc072c8: 80 09 00 04 lwz r0,4(r9)
ffc072cc: 2f 80 00 00 cmpwi cr7,r0,0
ffc072d0: 41 9e 01 24 beq- cr7,ffc073f4 <rtems_termios_close+0x194>
/*
* call discipline-specific close
*/
sc = rtems_termios_linesw[tty->t_line].l_close(tty);
ffc072d4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc072d8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc072dc: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
}
drainOutput (tty);
}
if (tty->device.outputUsesInterrupts
ffc072e0: 80 1f 00 b4 lwz r0,180(r31) <== NOT EXECUTED
ffc072e4: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED
ffc072e8: 41 9e 01 38 beq- cr7,ffc07420 <rtems_termios_close+0x1c0><== NOT EXECUTED
tty->txTaskId,
TERMIOS_TX_TERMINATE_EVENT);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
}
if (tty->device.lastClose)
ffc072ec: 80 1f 00 9c lwz r0,156(r31)
ffc072f0: 2f 80 00 00 cmpwi cr7,r0,0
ffc072f4: 41 9e 00 18 beq- cr7,ffc0730c <rtems_termios_close+0xac>
(*tty->device.lastClose)(tty->major, tty->minor, arg);
ffc072f8: 7f a5 eb 78 mr r5,r29 <== NOT EXECUTED
ffc072fc: 80 7f 00 0c lwz r3,12(r31) <== NOT EXECUTED
ffc07300: 80 9f 00 10 lwz r4,16(r31) <== NOT EXECUTED
ffc07304: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc07308: 4e 80 04 21 bctrl <== NOT EXECUTED
if (tty->forw == NULL) {
ffc0730c: 81 3f 00 00 lwz r9,0(r31)
ffc07310: 2f 89 00 00 cmpwi cr7,r9,0
ffc07314: 41 9e 00 a0 beq- cr7,ffc073b4 <rtems_termios_close+0x154>
if ( rtems_termios_ttyTail != NULL ) {
rtems_termios_ttyTail->forw = NULL;
}
}
else {
tty->forw->back = tty->back;
ffc07318: 80 1f 00 04 lwz r0,4(r31)
ffc0731c: 90 09 00 04 stw r0,4(r9)
}
if (tty->back == NULL) {
ffc07320: 81 7f 00 04 lwz r11,4(r31)
ffc07324: 2f 8b 00 00 cmpwi cr7,r11,0
ffc07328: 41 9e 00 b4 beq- cr7,ffc073dc <rtems_termios_close+0x17c>
if ( rtems_termios_ttyHead != NULL ) {
rtems_termios_ttyHead->back = NULL;
}
}
else {
tty->back->forw = tty->forw;
ffc0732c: 91 2b 00 00 stw r9,0(r11) <== NOT EXECUTED
}
rtems_semaphore_delete (tty->isem);
ffc07330: 80 7f 00 14 lwz r3,20(r31)
ffc07334: 48 00 13 01 bl ffc08634 <rtems_semaphore_delete>
rtems_semaphore_delete (tty->osem);
ffc07338: 80 7f 00 18 lwz r3,24(r31)
ffc0733c: 48 00 12 f9 bl ffc08634 <rtems_semaphore_delete>
rtems_semaphore_delete (tty->rawOutBuf.Semaphore);
ffc07340: 80 7f 00 8c lwz r3,140(r31)
ffc07344: 48 00 12 f1 bl ffc08634 <rtems_semaphore_delete>
if ((tty->device.pollRead == NULL) ||
ffc07348: 80 1f 00 a0 lwz r0,160(r31)
ffc0734c: 2f 80 00 00 cmpwi cr7,r0,0
ffc07350: 41 9e 00 58 beq- cr7,ffc073a8 <rtems_termios_close+0x148>
(tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))
ffc07354: 80 1f 00 b4 lwz r0,180(r31)
ffc07358: 2f 80 00 02 cmpwi cr7,r0,2
ffc0735c: 41 9e 00 4c beq- cr7,ffc073a8 <rtems_termios_close+0x148>
rtems_semaphore_delete (tty->rawInBuf.Semaphore);
free (tty->rawInBuf.theBuf);
ffc07360: 80 7f 00 58 lwz r3,88(r31)
ffc07364: 4b ff d2 91 bl ffc045f4 <free>
free (tty->rawOutBuf.theBuf);
ffc07368: 80 7f 00 7c lwz r3,124(r31)
ffc0736c: 4b ff d2 89 bl ffc045f4 <free>
free (tty->cbuf);
ffc07370: 80 7f 00 1c lwz r3,28(r31)
ffc07374: 4b ff d2 81 bl ffc045f4 <free>
free (tty);
ffc07378: 7f e3 fb 78 mr r3,r31
ffc0737c: 4b ff d2 79 bl ffc045f4 <free>
}
rtems_semaphore_release (rtems_termios_ttyMutex);
ffc07380: 80 7e 27 14 lwz r3,10004(r30)
ffc07384: 48 00 14 ed bl ffc08870 <rtems_semaphore_release>
return RTEMS_SUCCESSFUL;
}
ffc07388: 80 01 00 1c lwz r0,28(r1)
ffc0738c: 38 60 00 00 li r3,0
ffc07390: 83 a1 00 0c lwz r29,12(r1)
ffc07394: 7c 08 03 a6 mtlr r0
ffc07398: 83 c1 00 10 lwz r30,16(r1)
ffc0739c: 83 e1 00 14 lwz r31,20(r1)
ffc073a0: 38 21 00 18 addi r1,r1,24
ffc073a4: 4e 80 00 20 blr
rtems_semaphore_delete (tty->isem);
rtems_semaphore_delete (tty->osem);
rtems_semaphore_delete (tty->rawOutBuf.Semaphore);
if ((tty->device.pollRead == NULL) ||
(tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))
rtems_semaphore_delete (tty->rawInBuf.Semaphore);
ffc073a8: 80 7f 00 68 lwz r3,104(r31) <== NOT EXECUTED
ffc073ac: 48 00 12 89 bl ffc08634 <rtems_semaphore_delete> <== NOT EXECUTED
ffc073b0: 4b ff ff b0 b ffc07360 <rtems_termios_close+0x100> <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
}
if (tty->device.lastClose)
(*tty->device.lastClose)(tty->major, tty->minor, arg);
if (tty->forw == NULL) {
rtems_termios_ttyTail = tty->back;
ffc073b4: 81 7f 00 04 lwz r11,4(r31)
ffc073b8: 3d 40 00 00 lis r10,0
if ( rtems_termios_ttyTail != NULL ) {
ffc073bc: 2f 8b 00 00 cmpwi cr7,r11,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;
ffc073c0: 91 6a 27 18 stw r11,10008(r10)
if ( rtems_termios_ttyTail != NULL ) {
ffc073c4: 41 9e 00 88 beq- cr7,ffc0744c <rtems_termios_close+0x1ec>
rtems_termios_ttyTail->forw = NULL;
ffc073c8: 91 2b 00 00 stw r9,0(r11) <== NOT EXECUTED
}
}
else {
tty->forw->back = tty->back;
}
if (tty->back == NULL) {
ffc073cc: 81 7f 00 04 lwz r11,4(r31) <== NOT EXECUTED
ffc073d0: 81 3f 00 00 lwz r9,0(r31) <== NOT EXECUTED
ffc073d4: 2f 8b 00 00 cmpwi cr7,r11,0 <== NOT EXECUTED
ffc073d8: 40 9e ff 54 bne+ cr7,ffc0732c <rtems_termios_close+0xcc><== NOT EXECUTED
rtems_termios_ttyHead = tty->forw;
if ( rtems_termios_ttyHead != NULL ) {
ffc073dc: 2f 89 00 00 cmpwi cr7,r9,0
}
else {
tty->forw->back = tty->back;
}
if (tty->back == NULL) {
rtems_termios_ttyHead = tty->forw;
ffc073e0: 3d 40 00 00 lis r10,0
ffc073e4: 91 2a 27 1c stw r9,10012(r10)
if ( rtems_termios_ttyHead != NULL ) {
ffc073e8: 41 be ff 48 beq- cr7,ffc07330 <rtems_termios_close+0xd0>
rtems_termios_ttyHead->back = NULL;
ffc073ec: 91 69 00 04 stw r11,4(r9)
ffc073f0: 4b ff ff 40 b ffc07330 <rtems_termios_close+0xd0>
}
else {
/*
* default: just flush output buffer
*/
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc073f4: 80 7f 00 18 lwz r3,24(r31)
ffc073f8: 38 80 00 00 li r4,0
ffc073fc: 38 a0 00 00 li r5,0
ffc07400: 48 00 13 11 bl ffc08710 <rtems_semaphore_obtain>
if (sc != RTEMS_SUCCESSFUL) {
ffc07404: 2f 83 00 00 cmpwi cr7,r3,0
ffc07408: 40 9e 00 40 bne- cr7,ffc07448 <rtems_termios_close+0x1e8>
rtems_fatal_error_occurred (sc);
}
drainOutput (tty);
ffc0740c: 7f e3 fb 78 mr r3,r31
ffc07410: 4b ff f5 39 bl ffc06948 <drainOutput>
}
if (tty->device.outputUsesInterrupts
ffc07414: 80 1f 00 b4 lwz r0,180(r31)
ffc07418: 2f 80 00 02 cmpwi cr7,r0,2
ffc0741c: 40 9e fe d0 bne+ cr7,ffc072ec <rtems_termios_close+0x8c>
== TERMIOS_TASK_DRIVEN) {
/*
* send "terminate" to I/O tasks
*/
sc = rtems_event_send(
ffc07420: 80 7f 00 c4 lwz r3,196(r31) <== NOT EXECUTED
ffc07424: 38 80 00 01 li r4,1 <== NOT EXECUTED
ffc07428: 48 00 0d 65 bl ffc0818c <rtems_event_send> <== NOT EXECUTED
tty->rxTaskId,
TERMIOS_RX_TERMINATE_EVENT);
if (sc != RTEMS_SUCCESSFUL)
ffc0742c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc07430: 40 9e 00 18 bne- cr7,ffc07448 <rtems_termios_close+0x1e8><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
sc = rtems_event_send(
ffc07434: 80 7f 00 c8 lwz r3,200(r31) <== NOT EXECUTED
ffc07438: 38 80 00 01 li r4,1 <== NOT EXECUTED
ffc0743c: 48 00 0d 51 bl ffc0818c <rtems_event_send> <== NOT EXECUTED
tty->txTaskId,
TERMIOS_TX_TERMINATE_EVENT);
if (sc != RTEMS_SUCCESSFUL)
ffc07440: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc07444: 41 9e fe a8 beq+ cr7,ffc072ec <rtems_termios_close+0x8c><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
ffc07448: 48 00 1b ed bl ffc09034 <rtems_fatal_error_occurred> <== NOT EXECUTED
}
else {
tty->forw->back = tty->back;
}
if (tty->back == NULL) {
rtems_termios_ttyHead = tty->forw;
ffc0744c: 3d 20 00 00 lis r9,0
ffc07450: 91 69 27 1c stw r11,10012(r9)
ffc07454: 4b ff fe dc b ffc07330 <rtems_termios_close+0xd0>
ffc05ac8 <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)
{
ffc05ac8: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc05acc: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED
ffc05ad0: 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) {
ffc05ad4: 81 63 00 b4 lwz r11,180(r3) <== NOT EXECUTED
rtems_status_code sc;
/*
* sum up character count already sent
*/
tty->t_dqlen += len;
ffc05ad8: 80 03 00 90 lwz r0,144(r3) <== NOT EXECUTED
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
ffc05adc: 2f 8b 00 02 cmpwi cr7,r11,2 <== NOT EXECUTED
rtems_status_code sc;
/*
* sum up character count already sent
*/
tty->t_dqlen += len;
ffc05ae0: 7c 00 22 14 add r0,r0,r4 <== NOT EXECUTED
ffc05ae4: 90 03 00 90 stw r0,144(r3) <== NOT EXECUTED
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
ffc05ae8: 41 9e 00 4c beq- cr7,ffc05b34 <rtems_termios_dequeue_characters+0x6c><== NOT EXECUTED
TERMIOS_TX_START_EVENT);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
return 0; /* nothing to output in IRQ... */
}
else if (tty->t_line == PPPDISC ) {
ffc05aec: 80 03 00 cc lwz r0,204(r3) <== NOT EXECUTED
ffc05af0: 2f 80 00 05 cmpwi cr7,r0,5 <== NOT EXECUTED
ffc05af4: 41 9e 00 14 beq- cr7,ffc05b08 <rtems_termios_dequeue_characters+0x40><== NOT EXECUTED
return 0; /* nothing to output in IRQ... */
}
else {
return rtems_termios_refill_transmitter(tty);
}
}
ffc05af8: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc05afc: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc05b00: 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);
ffc05b04: 4b ff fd 3c b ffc05840 <rtems_termios_refill_transmitter><== NOT EXECUTED
}
else if (tty->t_line == PPPDISC ) {
/*
* call any line discipline start function
*/
if (rtems_termios_linesw[tty->t_line].l_start != NULL) {
ffc05b08: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc05b0c: 80 09 28 a4 lwz r0,10404(r9) <== NOT EXECUTED
ffc05b10: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc05b14: 41 9e 00 0c beq- cr7,ffc05b20 <rtems_termios_dequeue_characters+0x58><== NOT EXECUTED
rtems_termios_linesw[tty->t_line].l_start(tty);
ffc05b18: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc05b1c: 4e 80 04 21 bctrl <== NOT EXECUTED
return 0; /* nothing to output in IRQ... */
}
else {
return rtems_termios_refill_transmitter(tty);
}
}
ffc05b20: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc05b24: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc05b28: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc05b2c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc05b30: 4e 80 00 20 blr <== NOT EXECUTED
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
/*
* send wake up to transmitter task
*/
sc = rtems_event_send(tty->txTaskId,
ffc05b34: 80 63 00 c8 lwz r3,200(r3) <== NOT EXECUTED
ffc05b38: 38 80 00 02 li r4,2 <== NOT EXECUTED
ffc05b3c: 48 00 26 51 bl ffc0818c <rtems_event_send> <== NOT EXECUTED
TERMIOS_TX_START_EVENT);
if (sc != RTEMS_SUCCESSFUL)
ffc05b40: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc05b44: 41 9e ff dc beq+ cr7,ffc05b20 <rtems_termios_dequeue_characters+0x58><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
ffc05b48: 48 00 34 ed bl ffc09034 <rtems_fatal_error_occurred> <== NOT EXECUTED
ffc05b4c <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)
{
ffc05b4c: 94 21 ff d0 stwu r1,-48(r1) <== NOT EXECUTED
ffc05b50: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc05b54: 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) {
ffc05b58: 81 23 00 cc lwz r9,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)
{
ffc05b5c: 93 a1 00 24 stw r29,36(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) {
ffc05b60: 3f a0 00 00 lis r29,0 <== NOT EXECUTED
ffc05b64: 55 29 28 34 rlwinm r9,r9,5,0,26 <== NOT EXECUTED
ffc05b68: 3b bd 27 f0 addi r29,r29,10224 <== 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)
{
ffc05b6c: 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) {
ffc05b70: 38 09 00 10 addi r0,r9,16 <== NOT EXECUTED
ffc05b74: 7c 1d 00 2e lwzx r0,r29,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)
{
ffc05b78: 7c bb 2b 78 mr r27,r5 <== NOT EXECUTED
ffc05b7c: 93 c1 00 28 stw r30,40(r1) <== NOT EXECUTED
ffc05b80: 7c 9e 23 78 mr r30,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) {
ffc05b84: 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)
{
ffc05b88: 93 e1 00 2c stw r31,44(r1) <== NOT EXECUTED
ffc05b8c: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED
ffc05b90: 92 c1 00 08 stw r22,8(r1) <== NOT EXECUTED
ffc05b94: 92 e1 00 0c stw r23,12(r1) <== NOT EXECUTED
ffc05b98: 93 01 00 10 stw r24,16(r1) <== NOT EXECUTED
ffc05b9c: 93 21 00 14 stw r25,20(r1) <== NOT EXECUTED
ffc05ba0: 93 41 00 18 stw r26,24(r1) <== NOT EXECUTED
ffc05ba4: 93 81 00 20 stw r28,32(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) {
ffc05ba8: 41 9e 00 f0 beq- cr7,ffc05c98 <rtems_termios_enqueue_raw_characters+0x14c><== NOT EXECUTED
while (len--) {
ffc05bac: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED
ffc05bb0: 41 9e 00 38 beq- cr7,ffc05be8 <rtems_termios_enqueue_raw_characters+0x9c><== NOT EXECUTED
ffc05bb4: 3b 80 00 00 li r28,0 <== NOT EXECUTED
ffc05bb8: 48 00 00 14 b ffc05bcc <rtems_termios_enqueue_raw_characters+0x80><== NOT EXECUTED
ffc05bbc: 81 3f 00 cc lwz r9,204(r31) <== NOT EXECUTED
ffc05bc0: 55 29 28 34 rlwinm r9,r9,5,0,26 <== NOT EXECUTED
ffc05bc4: 38 09 00 10 addi r0,r9,16 <== NOT EXECUTED
ffc05bc8: 7c 1d 00 2e lwzx r0,r29,r0 <== NOT EXECUTED
c = *buf++;
rtems_termios_linesw[tty->t_line].l_rint(c,tty);
ffc05bcc: 7c 7e e0 ae lbzx r3,r30,r28 <== NOT EXECUTED
ffc05bd0: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc05bd4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc05bd8: 3b 9c 00 01 addi r28,r28,1 <== NOT EXECUTED
ffc05bdc: 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--) {
ffc05be0: 7f 9b e0 00 cmpw cr7,r27,r28 <== NOT EXECUTED
ffc05be4: 40 9e ff d8 bne+ cr7,ffc05bbc <rtems_termios_enqueue_raw_characters+0x70><== NOT EXECUTED
}
/*
* check to see if rcv wakeup callback was set
*/
if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
ffc05be8: 80 1f 00 e4 lwz r0,228(r31) <== NOT EXECUTED
ffc05bec: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc05bf0: 40 9e 00 68 bne- cr7,ffc05c58 <rtems_termios_enqueue_raw_characters+0x10c><== NOT EXECUTED
ffc05bf4: 80 1f 00 dc lwz r0,220(r31) <== NOT EXECUTED
ffc05bf8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc05bfc: 41 9e 00 5c beq- cr7,ffc05c58 <rtems_termios_enqueue_raw_characters+0x10c><== NOT EXECUTED
(*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);
ffc05c00: 38 7f 00 30 addi r3,r31,48 <== NOT EXECUTED
ffc05c04: 80 9f 00 e0 lwz r4,224(r31) <== NOT EXECUTED
ffc05c08: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
ffc05c0c: 3b 40 00 00 li r26,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);
ffc05c10: 4e 80 04 21 bctrl <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
ffc05c14: 38 00 00 01 li r0,1 <== NOT EXECUTED
ffc05c18: 90 1f 00 e4 stw r0,228(r31) <== NOT EXECUTED
}
}
tty->rawInBufDropped += dropped;
rtems_semaphore_release (tty->rawInBuf.Semaphore);
return dropped;
}
ffc05c1c: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED
ffc05c20: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED
ffc05c24: 82 c1 00 08 lwz r22,8(r1) <== NOT EXECUTED
ffc05c28: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc05c2c: 82 e1 00 0c lwz r23,12(r1) <== NOT EXECUTED
ffc05c30: 83 01 00 10 lwz r24,16(r1) <== NOT EXECUTED
ffc05c34: 83 21 00 14 lwz r25,20(r1) <== NOT EXECUTED
ffc05c38: 83 41 00 18 lwz r26,24(r1) <== NOT EXECUTED
ffc05c3c: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED
ffc05c40: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED
ffc05c44: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED
ffc05c48: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED
ffc05c4c: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED
ffc05c50: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED
ffc05c54: 4e 80 00 20 blr <== NOT EXECUTED
ffc05c58: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED
}
}
}
tty->rawInBufDropped += dropped;
rtems_semaphore_release (tty->rawInBuf.Semaphore);
return dropped;
ffc05c5c: 3b 40 00 00 li r26,0 <== NOT EXECUTED
}
ffc05c60: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED
ffc05c64: 82 c1 00 08 lwz r22,8(r1) <== NOT EXECUTED
ffc05c68: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc05c6c: 82 e1 00 0c lwz r23,12(r1) <== NOT EXECUTED
ffc05c70: 83 01 00 10 lwz r24,16(r1) <== NOT EXECUTED
ffc05c74: 83 21 00 14 lwz r25,20(r1) <== NOT EXECUTED
ffc05c78: 83 41 00 18 lwz r26,24(r1) <== NOT EXECUTED
ffc05c7c: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED
ffc05c80: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED
ffc05c84: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED
ffc05c88: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED
ffc05c8c: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED
ffc05c90: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED
ffc05c94: 4e 80 00 20 blr <== 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);
ffc05c98: 7c bd 2b 78 mr r29,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,
ffc05c9c: 3a c3 00 4a addi r22,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);
ffc05ca0: 3a e3 00 30 addi r23,r3,48 <== NOT EXECUTED
ffc05ca4: 3b 20 00 00 li r25,0 <== NOT EXECUTED
ffc05ca8: 3b 40 00 00 li r26,0 <== NOT EXECUTED
ffc05cac: 48 00 00 e4 b ffc05d90 <rtems_termios_enqueue_raw_characters+0x244><== NOT EXECUTED
/* reenable interrupts */
rtems_interrupt_enable(level);
}
}
else {
newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;
ffc05cb0: 83 9f 00 60 lwz r28,96(r31) <== NOT EXECUTED
ffc05cb4: 81 3f 00 64 lwz r9,100(r31) <== NOT EXECUTED
ffc05cb8: 38 1c 00 01 addi r0,r28,1 <== NOT EXECUTED
ffc05cbc: 7f 80 4b 96 divwu r28,r0,r9 <== NOT EXECUTED
ffc05cc0: 7f 9c 49 d6 mullw r28,r28,r9 <== NOT EXECUTED
ffc05cc4: 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 (
ffc05cc8: 7f 00 00 a6 mfmsr r24 <== NOT EXECUTED
ffc05ccc: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED
ffc05cd0: 7f 00 00 78 andc r0,r24,r0 <== NOT EXECUTED
ffc05cd4: 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)
ffc05cd8: 80 1f 00 5c lwz r0,92(r31) <== NOT EXECUTED
ffc05cdc: 81 7f 00 64 lwz r11,100(r31) <== NOT EXECUTED
ffc05ce0: 81 3f 00 64 lwz r9,100(r31) <== NOT EXECUTED
ffc05ce4: 7c 00 58 50 subf r0,r0,r11 <== NOT EXECUTED
% tty->rawInBuf.Size)
> tty->highwater) &&
ffc05ce8: 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)
ffc05cec: 7c 00 e2 14 add r0,r0,r28 <== NOT EXECUTED
ffc05cf0: 7d 40 4b 96 divwu r10,r0,r9 <== NOT EXECUTED
ffc05cf4: 7d 2a 49 d6 mullw r9,r10,r9 <== NOT EXECUTED
ffc05cf8: 7c 09 00 50 subf r0,r9,r0 <== NOT EXECUTED
% tty->rawInBuf.Size)
> tty->highwater) &&
ffc05cfc: 7f 80 58 40 cmplw cr7,r0,r11 <== NOT EXECUTED
ffc05d00: 40 9d 00 3c ble- cr7,ffc05d3c <rtems_termios_enqueue_raw_characters+0x1f0><== NOT EXECUTED
!(tty->flow_ctrl & FL_IREQXOF)) {
ffc05d04: 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)
ffc05d08: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED
ffc05d0c: 40 82 00 30 bne- ffc05d3c <rtems_termios_enqueue_raw_characters+0x1f0><== NOT EXECUTED
% tty->rawInBuf.Size)
> tty->highwater) &&
!(tty->flow_ctrl & FL_IREQXOF)) {
/* incoming data stream should be stopped */
tty->flow_ctrl |= FL_IREQXOF;
ffc05d10: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc05d14: 60 00 00 01 ori r0,r0,1 <== NOT EXECUTED
ffc05d18: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED
if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))
ffc05d1c: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc05d20: 70 00 04 02 andi. r0,r0,1026 <== NOT EXECUTED
ffc05d24: 2f 80 04 00 cmpwi cr7,r0,1024 <== NOT EXECUTED
ffc05d28: 41 9e 01 a8 beq- cr7,ffc05ed0 <rtems_termios_enqueue_raw_characters+0x384><== NOT EXECUTED
(*tty->device.write)(tty->minor,
(void *)&(tty->termios.c_cc[VSTOP]),
1);
}
}
else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF))
ffc05d2c: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc05d30: 70 00 01 04 andi. r0,r0,260 <== NOT EXECUTED
ffc05d34: 2f 80 01 00 cmpwi cr7,r0,256 <== NOT EXECUTED
ffc05d38: 41 9e 01 d8 beq- cr7,ffc05f10 <rtems_termios_enqueue_raw_characters+0x3c4><== NOT EXECUTED
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc05d3c: 7f 00 01 24 mtmsr r24 <== NOT EXECUTED
}
}
/* reenable interrupts */
rtems_interrupt_enable(level);
if (newTail == tty->rawInBuf.Head) {
ffc05d40: 80 1f 00 5c lwz r0,92(r31) <== NOT EXECUTED
ffc05d44: 7f 80 e0 00 cmpw cr7,r0,r28 <== NOT EXECUTED
ffc05d48: 41 9e 00 e8 beq- cr7,ffc05e30 <rtems_termios_enqueue_raw_characters+0x2e4><== NOT EXECUTED
dropped++;
}
else {
tty->rawInBuf.theBuf[newTail] = c;
ffc05d4c: 81 3f 00 58 lwz r9,88(r31) <== NOT EXECUTED
ffc05d50: 7f 69 e1 ae stbx r27,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 )) {
ffc05d54: 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;
ffc05d58: 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 )) {
ffc05d5c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc05d60: 40 9e 00 28 bne- cr7,ffc05d88 <rtems_termios_enqueue_raw_characters+0x23c><== NOT EXECUTED
ffc05d64: 80 1f 00 dc lwz r0,220(r31) <== NOT EXECUTED
ffc05d68: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc05d6c: 41 9e 00 1c beq- cr7,ffc05d88 <rtems_termios_enqueue_raw_characters+0x23c><== NOT EXECUTED
(*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);
ffc05d70: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc05d74: 7e e3 bb 78 mr r3,r23 <== NOT EXECUTED
ffc05d78: 80 9f 00 e0 lwz r4,224(r31) <== NOT EXECUTED
ffc05d7c: 4e 80 04 21 bctrl <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
ffc05d80: 38 00 00 01 li r0,1 <== NOT EXECUTED
ffc05d84: 90 1f 00 e4 stw r0,228(r31) <== NOT EXECUTED
}
return 0;
}
while (len--) {
c = *buf++;
ffc05d88: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED
ffc05d8c: 3b bd ff ff addi r29,r29,-1 <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
}
return 0;
}
while (len--) {
ffc05d90: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED
ffc05d94: 41 9e 00 d8 beq- cr7,ffc05e6c <rtems_termios_enqueue_raw_characters+0x320><== NOT EXECUTED
c = *buf++;
/* FIXME: implement IXANY: any character restarts output */
/* if incoming XON/XOFF controls outgoing stream: */
if (tty->flow_ctrl & FL_MDXON) {
ffc05d98: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
}
return 0;
}
while (len--) {
c = *buf++;
ffc05d9c: 8b 7e 00 00 lbz r27,0(r30) <== NOT EXECUTED
/* FIXME: implement IXANY: any character restarts output */
/* if incoming XON/XOFF controls outgoing stream: */
if (tty->flow_ctrl & FL_MDXON) {
ffc05da0: 70 09 02 00 andi. r9,r0,512 <== NOT EXECUTED
ffc05da4: 41 82 00 1c beq- ffc05dc0 <rtems_termios_enqueue_raw_characters+0x274><== NOT EXECUTED
/* if received char is V_STOP and V_START (both are equal value) */
if (c == tty->termios.c_cc[VSTOP]) {
ffc05da8: 88 1f 00 4a lbz r0,74(r31) <== NOT EXECUTED
ffc05dac: 7f 80 d8 00 cmpw cr7,r0,r27 <== NOT EXECUTED
ffc05db0: 41 9e 00 88 beq- cr7,ffc05e38 <rtems_termios_enqueue_raw_characters+0x2ec><== NOT EXECUTED
/* stop output */
tty->flow_ctrl |= FL_ORCVXOF;
}
flow_rcv = true;
}
else if (c == tty->termios.c_cc[VSTART]) {
ffc05db4: 88 1f 00 49 lbz r0,73(r31) <== NOT EXECUTED
ffc05db8: 7f 80 d8 00 cmpw cr7,r0,r27 <== NOT EXECUTED
ffc05dbc: 41 9e 00 9c beq- cr7,ffc05e58 <rtems_termios_enqueue_raw_characters+0x30c><== NOT EXECUTED
/* restart output */
tty->flow_ctrl &= ~FL_ORCVXOF;
flow_rcv = true;
}
}
if (flow_rcv) {
ffc05dc0: 2f 99 00 00 cmpwi cr7,r25,0 <== NOT EXECUTED
ffc05dc4: 41 9e fe ec beq+ cr7,ffc05cb0 <rtems_termios_enqueue_raw_characters+0x164><== NOT EXECUTED
/* restart output according to FL_ORCVXOF flag */
if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) {
ffc05dc8: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc05dcc: 54 00 06 b6 rlwinm r0,r0,0,26,27 <== NOT EXECUTED
ffc05dd0: 2f 80 00 20 cmpwi cr7,r0,32 <== NOT EXECUTED
ffc05dd4: 40 9e ff b4 bne+ cr7,ffc05d88 <rtems_termios_enqueue_raw_characters+0x23c><== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc05dd8: 7f 80 00 a6 mfmsr r28 <== NOT EXECUTED
ffc05ddc: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED
ffc05de0: 7f 80 00 78 andc r0,r28,r0 <== NOT EXECUTED
ffc05de4: 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) {
ffc05de8: 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;
ffc05dec: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
ffc05df0: 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;
ffc05df4: 54 00 06 f2 rlwinm r0,r0,0,27,25 <== NOT EXECUTED
ffc05df8: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
ffc05dfc: 40 9e 00 0c bne- cr7,ffc05e08 <rtems_termios_enqueue_raw_characters+0x2bc><== NOT EXECUTED
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc05e00: 7f 80 01 24 mtmsr r28 <== NOT EXECUTED
ffc05e04: 4b ff ff 84 b ffc05d88 <rtems_termios_enqueue_raw_characters+0x23c><== NOT EXECUTED
/* if chars available, call write function... */
(*tty->device.write)(tty->minor,
&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1);
ffc05e08: 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,
ffc05e0c: 38 a0 00 01 li r5,1 <== NOT EXECUTED
ffc05e10: 80 9f 00 7c lwz r4,124(r31) <== NOT EXECUTED
ffc05e14: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED
ffc05e18: 7c 84 4a 14 add r4,r4,r9 <== NOT EXECUTED
ffc05e1c: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED
ffc05e20: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc05e24: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc05e28: 7f 80 01 24 mtmsr r28 <== NOT EXECUTED
ffc05e2c: 4b ff ff 5c b ffc05d88 <rtems_termios_enqueue_raw_characters+0x23c><== NOT EXECUTED
}
/* reenable interrupts */
rtems_interrupt_enable(level);
if (newTail == tty->rawInBuf.Head) {
dropped++;
ffc05e30: 3b 5a 00 01 addi r26,r26,1 <== NOT EXECUTED
ffc05e34: 4b ff ff 54 b ffc05d88 <rtems_termios_enqueue_raw_characters+0x23c><== NOT EXECUTED
/* FIXME: implement IXANY: any character restarts output */
/* if incoming XON/XOFF controls outgoing stream: */
if (tty->flow_ctrl & FL_MDXON) {
/* if received char is V_STOP and V_START (both are equal value) */
if (c == tty->termios.c_cc[VSTOP]) {
if (c == tty->termios.c_cc[VSTART]) {
ffc05e38: 89 3f 00 49 lbz r9,73(r31) <== NOT EXECUTED
ffc05e3c: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED
ffc05e40: 41 9e 00 7c beq- cr7,ffc05ebc <rtems_termios_enqueue_raw_characters+0x370><== NOT EXECUTED
tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;
}
else {
/* VSTOP received (other code than VSTART) */
/* stop output */
tty->flow_ctrl |= FL_ORCVXOF;
ffc05e44: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
}
}
}
tty->rawInBufDropped += dropped;
rtems_semaphore_release (tty->rawInBuf.Semaphore);
return dropped;
ffc05e48: 3b 20 00 01 li r25,1 <== NOT EXECUTED
tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;
}
else {
/* VSTOP received (other code than VSTART) */
/* stop output */
tty->flow_ctrl |= FL_ORCVXOF;
ffc05e4c: 60 00 00 10 ori r0,r0,16 <== NOT EXECUTED
ffc05e50: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED
ffc05e54: 4b ff ff 74 b ffc05dc8 <rtems_termios_enqueue_raw_characters+0x27c><== NOT EXECUTED
flow_rcv = true;
}
else if (c == tty->termios.c_cc[VSTART]) {
/* VSTART received */
/* restart output */
tty->flow_ctrl &= ~FL_ORCVXOF;
ffc05e58: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
}
}
}
tty->rawInBufDropped += dropped;
rtems_semaphore_release (tty->rawInBuf.Semaphore);
return dropped;
ffc05e5c: 3b 20 00 01 li r25,1 <== NOT EXECUTED
flow_rcv = true;
}
else if (c == tty->termios.c_cc[VSTART]) {
/* VSTART received */
/* restart output */
tty->flow_ctrl &= ~FL_ORCVXOF;
ffc05e60: 54 00 07 34 rlwinm r0,r0,0,28,26 <== NOT EXECUTED
ffc05e64: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED
ffc05e68: 4b ff ff 60 b ffc05dc8 <rtems_termios_enqueue_raw_characters+0x27c><== NOT EXECUTED
tty->tty_rcvwakeup = 1;
}
}
}
}
tty->rawInBufDropped += dropped;
ffc05e6c: 80 1f 00 78 lwz r0,120(r31) <== NOT EXECUTED
rtems_semaphore_release (tty->rawInBuf.Semaphore);
ffc05e70: 80 7f 00 68 lwz r3,104(r31) <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
}
}
}
}
tty->rawInBufDropped += dropped;
ffc05e74: 7c 00 d2 14 add r0,r0,r26 <== NOT EXECUTED
ffc05e78: 90 1f 00 78 stw r0,120(r31) <== NOT EXECUTED
rtems_semaphore_release (tty->rawInBuf.Semaphore);
ffc05e7c: 48 00 29 f5 bl ffc08870 <rtems_semaphore_release> <== NOT EXECUTED
return dropped;
}
ffc05e80: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED
ffc05e84: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED
ffc05e88: 82 c1 00 08 lwz r22,8(r1) <== NOT EXECUTED
ffc05e8c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc05e90: 82 e1 00 0c lwz r23,12(r1) <== NOT EXECUTED
ffc05e94: 83 01 00 10 lwz r24,16(r1) <== NOT EXECUTED
ffc05e98: 83 21 00 14 lwz r25,20(r1) <== NOT EXECUTED
ffc05e9c: 83 41 00 18 lwz r26,24(r1) <== NOT EXECUTED
ffc05ea0: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED
ffc05ea4: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED
ffc05ea8: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED
ffc05eac: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED
ffc05eb0: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED
ffc05eb4: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED
ffc05eb8: 4e 80 00 20 blr <== NOT EXECUTED
/* if received char is V_STOP and V_START (both are equal value) */
if (c == tty->termios.c_cc[VSTOP]) {
if (c == tty->termios.c_cc[VSTART]) {
/* received VSTOP and VSTART==VSTOP? */
/* then toggle "stop output" status */
tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;
ffc05ebc: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
}
}
}
tty->rawInBufDropped += dropped;
rtems_semaphore_release (tty->rawInBuf.Semaphore);
return dropped;
ffc05ec0: 3b 20 00 01 li r25,1 <== NOT EXECUTED
/* if received char is V_STOP and V_START (both are equal value) */
if (c == tty->termios.c_cc[VSTOP]) {
if (c == tty->termios.c_cc[VSTART]) {
/* received VSTOP and VSTART==VSTOP? */
/* then toggle "stop output" status */
tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;
ffc05ec4: 68 00 00 10 xori r0,r0,16 <== NOT EXECUTED
ffc05ec8: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED
ffc05ecc: 4b ff fe fc b ffc05dc8 <rtems_termios_enqueue_raw_characters+0x27c><== NOT EXECUTED
!(tty->flow_ctrl & FL_IREQXOF)) {
/* incoming data stream should be stopped */
tty->flow_ctrl |= FL_IREQXOF;
if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))
== (FL_MDXOF ) ){
if ((tty->flow_ctrl & FL_OSTOP) ||
ffc05ed0: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc05ed4: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED
ffc05ed8: 40 82 00 10 bne- ffc05ee8 <rtems_termios_enqueue_raw_characters+0x39c><== NOT EXECUTED
(tty->rawOutBufState == rob_idle)) {
ffc05edc: 80 1f 00 94 lwz r0,148(r31) <== NOT EXECUTED
ffc05ee0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc05ee4: 40 be fe 58 bne- cr7,ffc05d3c <rtems_termios_enqueue_raw_characters+0x1f0><== NOT EXECUTED
/* if tx is stopped due to XOFF or out of data */
/* call write function here */
tty->flow_ctrl |= FL_ISNTXOF;
ffc05ee8: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED
(*tty->device.write)(tty->minor,
ffc05eec: 7e c4 b3 78 mr r4,r22 <== NOT EXECUTED
ffc05ef0: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED
ffc05ef4: 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;
ffc05ef8: 61 29 00 02 ori r9,r9,2 <== NOT EXECUTED
(*tty->device.write)(tty->minor,
ffc05efc: 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;
ffc05f00: 91 3f 00 b8 stw r9,184(r31) <== NOT EXECUTED
(*tty->device.write)(tty->minor,
ffc05f04: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc05f08: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc05f0c: 4b ff fe 30 b ffc05d3c <rtems_termios_enqueue_raw_characters+0x1f0><== NOT EXECUTED
}
else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF))
== (FL_MDRTS ) ) {
tty->flow_ctrl |= FL_IRTSOFF;
/* deactivate RTS line */
if (tty->device.stopRemoteTx != NULL) {
ffc05f10: 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;
ffc05f14: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED
/* deactivate RTS line */
if (tty->device.stopRemoteTx != NULL) {
ffc05f18: 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;
ffc05f1c: 61 29 00 04 ori r9,r9,4 <== NOT EXECUTED
ffc05f20: 91 3f 00 b8 stw r9,184(r31) <== NOT EXECUTED
/* deactivate RTS line */
if (tty->device.stopRemoteTx != NULL) {
ffc05f24: 41 be fe 18 beq- cr7,ffc05d3c <rtems_termios_enqueue_raw_characters+0x1f0><== NOT EXECUTED
tty->device.stopRemoteTx(tty->minor);
ffc05f28: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED
ffc05f2c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc05f30: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc05f34: 4b ff fe 08 b ffc05d3c <rtems_termios_enqueue_raw_characters+0x1f0><== NOT EXECUTED
ffc057a8 <rtems_termios_initialize>:
struct rtems_termios_tty *rtems_termios_ttyTail;
rtems_id rtems_termios_ttyMutex;
void
rtems_termios_initialize (void)
{
ffc057a8: 7c 08 02 a6 mflr r0
ffc057ac: 94 21 ff f8 stwu r1,-8(r1)
rtems_status_code sc;
/*
* Create the mutex semaphore for the tty list
*/
if (!rtems_termios_ttyMutex) {
ffc057b0: 3c e0 00 00 lis r7,0
struct rtems_termios_tty *rtems_termios_ttyTail;
rtems_id rtems_termios_ttyMutex;
void
rtems_termios_initialize (void)
{
ffc057b4: 90 01 00 0c stw r0,12(r1)
rtems_status_code sc;
/*
* Create the mutex semaphore for the tty list
*/
if (!rtems_termios_ttyMutex) {
ffc057b8: 80 07 27 14 lwz r0,10004(r7)
ffc057bc: 38 e7 27 14 addi r7,r7,10004
ffc057c0: 2f 80 00 00 cmpwi cr7,r0,0
ffc057c4: 41 9e 00 14 beq- cr7,ffc057d8 <rtems_termios_initialize+0x30>
RTEMS_NO_PRIORITY,
&rtems_termios_ttyMutex);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
}
}
ffc057c8: 80 01 00 0c lwz r0,12(r1)
ffc057cc: 38 21 00 08 addi r1,r1,8
ffc057d0: 7c 08 03 a6 mtlr r0
ffc057d4: 4e 80 00 20 blr
/*
* Create the mutex semaphore for the tty list
*/
if (!rtems_termios_ttyMutex) {
sc = rtems_semaphore_create (
ffc057d8: 3c 60 54 52 lis r3,21586
ffc057dc: 60 63 6d 69 ori r3,r3,28009
ffc057e0: 38 80 00 01 li r4,1
ffc057e4: 38 a0 00 54 li r5,84
ffc057e8: 38 c0 00 00 li r6,0
ffc057ec: 48 00 2c 29 bl ffc08414 <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)
ffc057f0: 2f 83 00 00 cmpwi cr7,r3,0
ffc057f4: 41 9e ff d4 beq+ cr7,ffc057c8 <rtems_termios_initialize+0x20>
rtems_fatal_error_occurred (sc);
ffc057f8: 48 00 38 3d bl ffc09034 <rtems_fatal_error_occurred> <== NOT EXECUTED
ffc06e1c <rtems_termios_ioctl>:
}
}
rtems_status_code
rtems_termios_ioctl (void *arg)
{
ffc06e1c: 94 21 ff e0 stwu r1,-32(r1)
ffc06e20: 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);
ffc06e24: 38 80 00 00 li r4,0
}
}
rtems_status_code
rtems_termios_ioctl (void *arg)
{
ffc06e28: 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;
ffc06e2c: 38 00 00 00 li r0,0
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc06e30: 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;
ffc06e34: 81 23 00 00 lwz r9,0(r3)
}
}
rtems_status_code
rtems_termios_ioctl (void *arg)
{
ffc06e38: 93 c1 00 18 stw r30,24(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;
ffc06e3c: 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;
ffc06e40: 83 c9 00 38 lwz r30,56(r9)
}
}
rtems_status_code
rtems_termios_ioctl (void *arg)
{
ffc06e44: 93 e1 00 1c stw r31,28(r1)
ffc06e48: 7c 7f 1b 78 mr r31,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);
ffc06e4c: 80 7e 00 18 lwz r3,24(r30)
}
}
rtems_status_code
rtems_termios_ioctl (void *arg)
{
ffc06e50: 93 81 00 10 stw r28,16(r1)
ffc06e54: 93 a1 00 14 stw r29,20(r1)
ffc06e58: 93 41 00 08 stw r26,8(r1)
ffc06e5c: 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;
ffc06e60: 83 9f 00 08 lwz r28,8(r31)
rtems_status_code sc;
args->ioctl_return = 0;
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc06e64: 48 00 18 ad bl ffc08710 <rtems_semaphore_obtain>
if (sc != RTEMS_SUCCESSFUL) {
ffc06e68: 7c 7d 1b 79 mr. r29,r3
ffc06e6c: 40 82 00 4c bne- ffc06eb8 <rtems_termios_ioctl+0x9c>
args->ioctl_return = sc;
return sc;
}
switch (args->command) {
ffc06e70: 80 1f 00 04 lwz r0,4(r31)
ffc06e74: 2f 80 00 04 cmpwi cr7,r0,4
ffc06e78: 41 9e 00 28 beq- cr7,ffc06ea0 <rtems_termios_ioctl+0x84>
ffc06e7c: 2b 80 00 04 cmplwi cr7,r0,4
ffc06e80: 41 9d 00 68 bgt- cr7,ffc06ee8 <rtems_termios_ioctl+0xcc>
ffc06e84: 2f 80 00 02 cmpwi cr7,r0,2
ffc06e88: 41 9e 00 bc beq- cr7,ffc06f44 <rtems_termios_ioctl+0x128>
ffc06e8c: 2b 80 00 02 cmplwi cr7,r0,2
ffc06e90: 40 9d 02 04 ble- cr7,ffc07094 <rtems_termios_ioctl+0x278>
if (tty->device.setAttributes)
(*tty->device.setAttributes)(tty->minor, &tty->termios);
break;
case RTEMS_IO_TCDRAIN:
drainOutput (tty);
ffc06e94: 7f c3 f3 78 mr r3,r30
ffc06e98: 4b ff fa b1 bl ffc06948 <drainOutput>
break;
ffc06e9c: 48 00 00 14 b ffc06eb0 <rtems_termios_ioctl+0x94>
case RTEMS_IO_SNDWAKEUP:
tty->tty_snd = *wakeup;
break;
case RTEMS_IO_RCVWAKEUP:
tty->tty_rcv = *wakeup;
ffc06ea0: 81 3c 00 00 lwz r9,0(r28) <== NOT EXECUTED
ffc06ea4: 81 5c 00 04 lwz r10,4(r28) <== NOT EXECUTED
ffc06ea8: 91 3e 00 dc stw r9,220(r30) <== NOT EXECUTED
ffc06eac: 91 5e 00 e0 stw r10,224(r30) <== NOT EXECUTED
/* Half guess that this is the right operation */
*(int *)args->buffer = tty->ccount - tty->cindex + rawnc;
}
break;
}
rtems_semaphore_release (tty->osem);
ffc06eb0: 80 7e 00 18 lwz r3,24(r30)
ffc06eb4: 48 00 19 bd bl ffc08870 <rtems_semaphore_release>
args->ioctl_return = sc;
return sc;
}
ffc06eb8: 80 01 00 24 lwz r0,36(r1)
ffc06ebc: 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;
ffc06ec0: 93 bf 00 0c stw r29,12(r31)
return sc;
}
ffc06ec4: 7c 08 03 a6 mtlr r0
ffc06ec8: 83 41 00 08 lwz r26,8(r1)
ffc06ecc: 83 61 00 0c lwz r27,12(r1)
ffc06ed0: 83 81 00 10 lwz r28,16(r1)
ffc06ed4: 83 a1 00 14 lwz r29,20(r1)
ffc06ed8: 83 c1 00 18 lwz r30,24(r1)
ffc06edc: 83 e1 00 1c lwz r31,28(r1)
ffc06ee0: 38 21 00 20 addi r1,r1,32
ffc06ee4: 4e 80 00 20 blr
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL) {
args->ioctl_return = sc;
return sc;
}
switch (args->command) {
ffc06ee8: 3d 20 40 04 lis r9,16388 <== NOT EXECUTED
ffc06eec: 61 29 66 7f ori r9,r9,26239 <== NOT EXECUTED
ffc06ef0: 7f 80 48 00 cmpw cr7,r0,r9 <== NOT EXECUTED
ffc06ef4: 41 9e 01 74 beq- cr7,ffc07068 <rtems_termios_ioctl+0x24c><== NOT EXECUTED
ffc06ef8: 7f 80 48 40 cmplw cr7,r0,r9 <== NOT EXECUTED
ffc06efc: 41 9d 01 b4 bgt- cr7,ffc070b0 <rtems_termios_ioctl+0x294><== NOT EXECUTED
ffc06f00: 2f 80 00 05 cmpwi cr7,r0,5 <== NOT EXECUTED
ffc06f04: 41 9e 02 3c beq- cr7,ffc07140 <rtems_termios_ioctl+0x324><== NOT EXECUTED
default:
if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {
ffc06f08: 80 1e 00 cc lwz r0,204(r30) <== NOT EXECUTED
ffc06f0c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc06f10: 39 29 27 f0 addi r9,r9,10224 <== NOT EXECUTED
ffc06f14: 54 00 28 34 rlwinm r0,r0,5,0,26 <== NOT EXECUTED
ffc06f18: 7d 29 02 14 add r9,r9,r0 <== NOT EXECUTED
ffc06f1c: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED
ffc06f20: 3b a0 00 0a li r29,10 <== NOT EXECUTED
ffc06f24: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc06f28: 41 be ff 88 beq- cr7,ffc06eb0 <rtems_termios_ioctl+0x94><== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);
ffc06f2c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc06f30: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc06f34: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc06f38: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc06f3c: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED
ffc06f40: 4b ff ff 70 b ffc06eb0 <rtems_termios_ioctl+0x94> <== NOT EXECUTED
case RTEMS_IO_GET_ATTRIBUTES:
*(struct termios *)args->buffer = tty->termios;
break;
case RTEMS_IO_SET_ATTRIBUTES:
tty->termios = *(struct termios *)args->buffer;
ffc06f44: 3b 9e 00 30 addi r28,r30,48
ffc06f48: 80 9f 00 08 lwz r4,8(r31)
ffc06f4c: 7f 83 e3 78 mr r3,r28
ffc06f50: 38 a0 00 24 li r5,36
ffc06f54: 48 00 b8 4d bl ffc127a0 <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) &&
ffc06f58: 80 1e 00 b8 lwz r0,184(r30)
ffc06f5c: 70 09 02 00 andi. r9,r0,512
ffc06f60: 41 82 00 58 beq- ffc06fb8 <rtems_termios_ioctl+0x19c>
ffc06f64: 80 1e 00 30 lwz r0,48(r30)
ffc06f68: 70 0b 04 00 andi. r11,r0,1024
ffc06f6c: 40 82 00 4c bne- ffc06fb8 <rtems_termios_ioctl+0x19c>
!(tty->termios.c_iflag & IXON)) {
/* clear related flags in flow_ctrl */
tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF);
ffc06f70: 81 3e 00 b8 lwz r9,184(r30) <== NOT EXECUTED
ffc06f74: 38 00 fd ef li r0,-529 <== NOT EXECUTED
ffc06f78: 7d 20 00 38 and r0,r9,r0 <== NOT EXECUTED
ffc06f7c: 90 1e 00 b8 stw r0,184(r30) <== NOT EXECUTED
/* has output been stopped due to received XOFF? */
if (tty->flow_ctrl & FL_OSTOP) {
ffc06f80: 80 1e 00 b8 lwz r0,184(r30) <== NOT EXECUTED
ffc06f84: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED
ffc06f88: 41 82 00 30 beq- ffc06fb8 <rtems_termios_ioctl+0x19c> <== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc06f8c: 7f 60 00 a6 mfmsr r27 <== NOT EXECUTED
ffc06f90: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED
ffc06f94: 7f 60 00 78 andc r0,r27,r0 <== NOT EXECUTED
ffc06f98: 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) {
ffc06f9c: 81 3e 00 94 lwz r9,148(r30) <== 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;
ffc06fa0: 80 1e 00 b8 lwz r0,184(r30) <== NOT EXECUTED
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
ffc06fa4: 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;
ffc06fa8: 54 00 06 f2 rlwinm r0,r0,0,27,25 <== NOT EXECUTED
ffc06fac: 90 1e 00 b8 stw r0,184(r30) <== NOT EXECUTED
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
ffc06fb0: 40 9e 02 00 bne- cr7,ffc071b0 <rtems_termios_ioctl+0x394><== NOT EXECUTED
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc06fb4: 7f 60 01 24 mtmsr r27 <== NOT EXECUTED
/* reenable interrupts */
rtems_interrupt_enable(level);
}
}
/* check for incoming XON/XOFF flow control switched off */
if (( tty->flow_ctrl & FL_MDXOF) &&
ffc06fb8: 80 1e 00 b8 lwz r0,184(r30)
ffc06fbc: 70 09 04 00 andi. r9,r0,1024
ffc06fc0: 41 82 00 28 beq- ffc06fe8 <rtems_termios_ioctl+0x1cc>
ffc06fc4: 80 1e 00 30 lwz r0,48(r30) <== NOT EXECUTED
ffc06fc8: 70 0b 10 00 andi. r11,r0,4096 <== NOT EXECUTED
ffc06fcc: 40 82 00 1c bne- ffc06fe8 <rtems_termios_ioctl+0x1cc> <== NOT EXECUTED
!(tty->termios.c_iflag & IXOFF)) {
/* clear related flags in flow_ctrl */
tty->flow_ctrl &= ~(FL_MDXOF);
ffc06fd0: 80 1e 00 b8 lwz r0,184(r30) <== NOT EXECUTED
ffc06fd4: 54 00 05 a8 rlwinm r0,r0,0,22,20 <== NOT EXECUTED
ffc06fd8: 90 1e 00 b8 stw r0,184(r30) <== NOT EXECUTED
/* FIXME: what happens, if we had sent XOFF but not yet XON? */
tty->flow_ctrl &= ~(FL_ISNTXOF);
ffc06fdc: 80 1e 00 b8 lwz r0,184(r30) <== NOT EXECUTED
ffc06fe0: 54 00 07 fa rlwinm r0,r0,0,31,29 <== NOT EXECUTED
ffc06fe4: 90 1e 00 b8 stw r0,184(r30) <== NOT EXECUTED
}
/* check for incoming RTS/CTS flow control switched off */
if (( tty->flow_ctrl & FL_MDRTS) &&
ffc06fe8: 80 1e 00 b8 lwz r0,184(r30)
ffc06fec: 70 09 01 00 andi. r9,r0,256
ffc06ff0: 40 82 01 64 bne- ffc07154 <rtems_termios_ioctl+0x338>
ffc06ff4: 81 3e 00 38 lwz r9,56(r30)
/*
* check for flow control options to be switched on
*/
/* check for incoming RTS/CTS flow control switched on */
if (tty->termios.c_cflag & CRTSCTS) {
ffc06ff8: 2f 89 00 00 cmpwi cr7,r9,0
ffc06ffc: 41 9c 02 24 blt- cr7,ffc07220 <rtems_termios_ioctl+0x404>
tty->flow_ctrl |= FL_MDRTS;
}
/* check for incoming XON/XOF flow control switched on */
if (tty->termios.c_iflag & IXOFF) {
ffc07000: 80 1e 00 30 lwz r0,48(r30)
ffc07004: 70 09 10 00 andi. r9,r0,4096
ffc07008: 41 82 00 10 beq- ffc07018 <rtems_termios_ioctl+0x1fc>
tty->flow_ctrl |= FL_MDXOF;
ffc0700c: 81 3e 00 b8 lwz r9,184(r30) <== NOT EXECUTED
ffc07010: 61 29 04 00 ori r9,r9,1024 <== NOT EXECUTED
ffc07014: 91 3e 00 b8 stw r9,184(r30) <== NOT EXECUTED
}
/* check for outgoing XON/XOF flow control switched on */
if (tty->termios.c_iflag & IXON) {
ffc07018: 70 0b 04 00 andi. r11,r0,1024
ffc0701c: 41 82 00 10 beq- ffc0702c <rtems_termios_ioctl+0x210>
tty->flow_ctrl |= FL_MDXON;
ffc07020: 80 1e 00 b8 lwz r0,184(r30)
ffc07024: 60 00 02 00 ori r0,r0,512
ffc07028: 90 1e 00 b8 stw r0,184(r30)
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) {
ffc0702c: 83 7e 00 3c lwz r27,60(r30)
ffc07030: 73 7b 00 02 andi. r27,r27,2
ffc07034: 41 82 01 a4 beq- ffc071d8 <rtems_termios_ioctl+0x3bc>
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
ffc07038: 38 00 00 00 li r0,0
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
ffc0703c: 90 1e 00 74 stw r0,116(r30)
/* check for and process change in flow control options */
termios_set_flowctrl(tty);
if (tty->termios.c_lflag & ICANON) {
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
ffc07040: 90 1e 00 6c stw r0,108(r30)
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
ffc07044: 90 1e 00 70 stw r0,112(r30)
else {
tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;
}
}
}
if (tty->device.setAttributes)
ffc07048: 80 1e 00 a8 lwz r0,168(r30)
ffc0704c: 2f 80 00 00 cmpwi cr7,r0,0
ffc07050: 41 be fe 60 beq- cr7,ffc06eb0 <rtems_termios_ioctl+0x94>
(*tty->device.setAttributes)(tty->minor, &tty->termios);
ffc07054: 7f 84 e3 78 mr r4,r28
ffc07058: 80 7e 00 10 lwz r3,16(r30)
ffc0705c: 7c 09 03 a6 mtctr r0
ffc07060: 4e 80 04 21 bctrl
ffc07064: 4b ff fe 4c b ffc06eb0 <rtems_termios_ioctl+0x94>
*(int*)(args->buffer)=tty->t_line;
break;
#endif
case FIONREAD:
{
int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;
ffc07068: 81 3e 00 60 lwz r9,96(r30) <== NOT EXECUTED
ffc0706c: 80 1e 00 5c lwz r0,92(r30) <== NOT EXECUTED
if ( rawnc < 0 )
ffc07070: 7c 00 48 51 subf. r0,r0,r9 <== NOT EXECUTED
ffc07074: 41 80 01 30 blt- ffc071a4 <rtems_termios_ioctl+0x388> <== NOT EXECUTED
rawnc += tty->rawInBuf.Size;
/* Half guess that this is the right operation */
*(int *)args->buffer = tty->ccount - tty->cindex + rawnc;
ffc07078: 81 5e 00 20 lwz r10,32(r30) <== NOT EXECUTED
ffc0707c: 81 3e 00 24 lwz r9,36(r30) <== NOT EXECUTED
ffc07080: 81 7f 00 08 lwz r11,8(r31) <== NOT EXECUTED
ffc07084: 7d 29 50 50 subf r9,r9,r10 <== NOT EXECUTED
ffc07088: 7c 09 02 14 add r0,r9,r0 <== NOT EXECUTED
ffc0708c: 90 0b 00 00 stw r0,0(r11) <== NOT EXECUTED
ffc07090: 4b ff fe 20 b ffc06eb0 <rtems_termios_ioctl+0x94> <== NOT EXECUTED
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL) {
args->ioctl_return = sc;
return sc;
}
switch (args->command) {
ffc07094: 2f 80 00 01 cmpwi cr7,r0,1
ffc07098: 40 9e fe 70 bne+ cr7,ffc06f08 <rtems_termios_ioctl+0xec>
sc = RTEMS_INVALID_NUMBER;
}
break;
case RTEMS_IO_GET_ATTRIBUTES:
*(struct termios *)args->buffer = tty->termios;
ffc0709c: 80 7f 00 08 lwz r3,8(r31)
ffc070a0: 38 9e 00 30 addi r4,r30,48
ffc070a4: 38 a0 00 24 li r5,36
ffc070a8: 48 00 b6 f9 bl ffc127a0 <memcpy>
break;
ffc070ac: 4b ff fe 04 b ffc06eb0 <rtems_termios_ioctl+0x94>
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL) {
args->ioctl_return = sc;
return sc;
}
switch (args->command) {
ffc070b0: 6c 09 40 04 xoris r9,r0,16388 <== NOT EXECUTED
ffc070b4: 2f 89 74 1a cmpwi cr7,r9,29722 <== NOT EXECUTED
ffc070b8: 41 9e 00 78 beq- cr7,ffc07130 <rtems_termios_ioctl+0x314><== NOT EXECUTED
ffc070bc: 6c 09 80 04 xoris r9,r0,32772 <== NOT EXECUTED
ffc070c0: 2f 89 74 1b cmpwi cr7,r9,29723 <== NOT EXECUTED
ffc070c4: 40 9e fe 44 bne+ cr7,ffc06f08 <rtems_termios_ioctl+0xec><== NOT EXECUTED
#if 1 /* FIXME */
case TIOCSETD:
/*
* close old line discipline
*/
if (rtems_termios_linesw[tty->t_line].l_close != NULL) {
ffc070c8: 81 3e 00 cc lwz r9,204(r30) <== NOT EXECUTED
ffc070cc: 3f 80 00 00 lis r28,0 <== NOT EXECUTED
ffc070d0: 3b 9c 27 f0 addi r28,r28,10224 <== NOT EXECUTED
ffc070d4: 55 29 28 34 rlwinm r9,r9,5,0,26 <== NOT EXECUTED
ffc070d8: 7d 3c 4a 14 add r9,r28,r9 <== NOT EXECUTED
ffc070dc: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED
ffc070e0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc070e4: 41 9e 00 14 beq- cr7,ffc070f8 <rtems_termios_ioctl+0x2dc><== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_close(tty);
ffc070e8: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc070ec: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc070f0: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc070f4: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED
}
tty->t_line=*(int*)(args->buffer);
ffc070f8: 81 3f 00 08 lwz r9,8(r31) <== NOT EXECUTED
tty->t_sc = NULL; /* ensure that no more valid data */
ffc070fc: 38 00 00 00 li r0,0 <== NOT EXECUTED
ffc07100: 90 1e 00 d0 stw r0,208(r30) <== 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);
ffc07104: 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) {
ffc07108: 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);
ffc0710c: 91 3e 00 cc stw r9,204(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) {
ffc07110: 7c 1c 00 2e lwzx r0,r28,r0 <== NOT EXECUTED
ffc07114: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc07118: 41 be fd 98 beq- cr7,ffc06eb0 <rtems_termios_ioctl+0x94><== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_open(tty);
ffc0711c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc07120: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc07124: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc07128: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED
ffc0712c: 4b ff fd 84 b ffc06eb0 <rtems_termios_ioctl+0x94> <== NOT EXECUTED
}
break;
case TIOCGETD:
*(int*)(args->buffer)=tty->t_line;
ffc07130: 81 3f 00 08 lwz r9,8(r31) <== NOT EXECUTED
ffc07134: 80 1e 00 cc lwz r0,204(r30) <== NOT EXECUTED
ffc07138: 90 09 00 00 stw r0,0(r9) <== NOT EXECUTED
break;
ffc0713c: 4b ff fd 74 b ffc06eb0 <rtems_termios_ioctl+0x94> <== NOT EXECUTED
case RTEMS_IO_TCDRAIN:
drainOutput (tty);
break;
case RTEMS_IO_SNDWAKEUP:
tty->tty_snd = *wakeup;
ffc07140: 81 3c 00 00 lwz r9,0(r28) <== NOT EXECUTED
ffc07144: 81 5c 00 04 lwz r10,4(r28) <== NOT EXECUTED
ffc07148: 91 3e 00 d4 stw r9,212(r30) <== NOT EXECUTED
ffc0714c: 91 5e 00 d8 stw r10,216(r30) <== NOT EXECUTED
break;
ffc07150: 4b ff fd 60 b ffc06eb0 <rtems_termios_ioctl+0x94> <== NOT EXECUTED
/* FIXME: what happens, if we had sent XOFF but not yet XON? */
tty->flow_ctrl &= ~(FL_ISNTXOF);
}
/* check for incoming RTS/CTS flow control switched off */
if (( tty->flow_ctrl & FL_MDRTS) &&
ffc07154: 81 3e 00 38 lwz r9,56(r30) <== NOT EXECUTED
ffc07158: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc0715c: 41 9c 00 c4 blt- cr7,ffc07220 <rtems_termios_ioctl+0x404><== NOT EXECUTED
!(tty->termios.c_cflag & CRTSCTS)) {
/* clear related flags in flow_ctrl */
tty->flow_ctrl &= ~(FL_MDRTS);
ffc07160: 80 1e 00 b8 lwz r0,184(r30) <== NOT EXECUTED
ffc07164: 54 00 06 2c rlwinm r0,r0,0,24,22 <== NOT EXECUTED
ffc07168: 90 1e 00 b8 stw r0,184(r30) <== NOT EXECUTED
/* restart remote Tx, if it was stopped */
if ((tty->flow_ctrl & FL_IRTSOFF) &&
ffc0716c: 80 1e 00 b8 lwz r0,184(r30) <== NOT EXECUTED
ffc07170: 70 0b 00 04 andi. r11,r0,4 <== NOT EXECUTED
ffc07174: 41 82 00 20 beq- ffc07194 <rtems_termios_ioctl+0x378> <== NOT EXECUTED
(tty->device.startRemoteTx != NULL)) {
ffc07178: 80 1e 00 b0 lwz r0,176(r30) <== 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) &&
ffc0717c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc07180: 41 9e 00 14 beq- cr7,ffc07194 <rtems_termios_ioctl+0x378><== NOT EXECUTED
(tty->device.startRemoteTx != NULL)) {
tty->device.startRemoteTx(tty->minor);
ffc07184: 80 7e 00 10 lwz r3,16(r30) <== NOT EXECUTED
ffc07188: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc0718c: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc07190: 81 3e 00 38 lwz r9,56(r30) <== NOT EXECUTED
}
tty->flow_ctrl &= ~(FL_IRTSOFF);
ffc07194: 80 1e 00 b8 lwz r0,184(r30) <== NOT EXECUTED
ffc07198: 54 00 07 b8 rlwinm r0,r0,0,30,28 <== NOT EXECUTED
ffc0719c: 90 1e 00 b8 stw r0,184(r30) <== NOT EXECUTED
ffc071a0: 4b ff fe 58 b ffc06ff8 <rtems_termios_ioctl+0x1dc> <== NOT EXECUTED
#endif
case FIONREAD:
{
int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;
if ( rawnc < 0 )
rawnc += tty->rawInBuf.Size;
ffc071a4: 81 3e 00 64 lwz r9,100(r30) <== NOT EXECUTED
ffc071a8: 7c 00 4a 14 add r0,r0,r9 <== NOT EXECUTED
ffc071ac: 4b ff fe cc b ffc07078 <rtems_termios_ioctl+0x25c> <== NOT EXECUTED
tty->flow_ctrl &= ~FL_OSTOP;
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
/* if chars available, call write function... */
(*tty->device.write)(tty->minor,
&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
ffc071b0: 81 3e 00 84 lwz r9,132(r30) <== 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,
ffc071b4: 38 a0 00 01 li r5,1 <== NOT EXECUTED
ffc071b8: 80 9e 00 7c lwz r4,124(r30) <== NOT EXECUTED
ffc071bc: 80 1e 00 a4 lwz r0,164(r30) <== NOT EXECUTED
ffc071c0: 7c 84 4a 14 add r4,r4,r9 <== NOT EXECUTED
ffc071c4: 80 7e 00 10 lwz r3,16(r30) <== NOT EXECUTED
ffc071c8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc071cc: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc071d0: 7f 60 01 24 mtmsr r27 <== NOT EXECUTED
ffc071d4: 4b ff fd e4 b ffc06fb8 <rtems_termios_ioctl+0x19c> <== NOT EXECUTED
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
}
else {
tty->vtimeTicks = tty->termios.c_cc[VTIME] *
rtems_clock_get_ticks_per_second() / 10;
ffc071d8: 8b 5e 00 46 lbz r26,70(r30) <== NOT EXECUTED
ffc071dc: 48 00 0d 05 bl ffc07ee0 <rtems_clock_get_ticks_per_second><== NOT EXECUTED
if (tty->termios.c_cc[VTIME]) {
ffc071e0: 89 3e 00 46 lbz r9,70(r30) <== NOT EXECUTED
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
}
else {
tty->vtimeTicks = tty->termios.c_cc[VTIME] *
ffc071e4: 3c 00 cc cc lis r0,-13108 <== NOT EXECUTED
ffc071e8: 7c 63 d1 d6 mullw r3,r3,r26 <== NOT EXECUTED
ffc071ec: 60 00 cc cd ori r0,r0,52429 <== NOT EXECUTED
rtems_clock_get_ticks_per_second() / 10;
if (tty->termios.c_cc[VTIME]) {
ffc071f0: 2f 89 00 00 cmpwi cr7,r9,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] *
ffc071f4: 7c 03 00 16 mulhwu r0,r3,r0 <== NOT EXECUTED
ffc071f8: 54 00 e8 fe rlwinm r0,r0,29,3,31 <== NOT EXECUTED
ffc071fc: 90 1e 00 54 stw r0,84(r30) <== NOT EXECUTED
rtems_clock_get_ticks_per_second() / 10;
if (tty->termios.c_cc[VTIME]) {
ffc07200: 41 9e 00 30 beq- cr7,ffc07230 <rtems_termios_ioctl+0x414><== NOT EXECUTED
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;
if (tty->termios.c_cc[VMIN])
ffc07204: 89 3e 00 47 lbz r9,71(r30) <== 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;
ffc07208: 93 7e 00 6c stw r27,108(r30) <== NOT EXECUTED
tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;
if (tty->termios.c_cc[VMIN])
ffc0720c: 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;
tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;
ffc07210: 90 1e 00 70 stw r0,112(r30) <== NOT EXECUTED
if (tty->termios.c_cc[VMIN])
ffc07214: 41 9e 00 38 beq- cr7,ffc0724c <rtems_termios_ioctl+0x430><== NOT EXECUTED
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
ffc07218: 93 7e 00 74 stw r27,116(r30) <== NOT EXECUTED
ffc0721c: 4b ff fe 2c b ffc07048 <rtems_termios_ioctl+0x22c> <== NOT EXECUTED
/*
* check for flow control options to be switched on
*/
/* check for incoming RTS/CTS flow control switched on */
if (tty->termios.c_cflag & CRTSCTS) {
tty->flow_ctrl |= FL_MDRTS;
ffc07220: 80 1e 00 b8 lwz r0,184(r30) <== NOT EXECUTED
ffc07224: 60 00 01 00 ori r0,r0,256 <== NOT EXECUTED
ffc07228: 90 1e 00 b8 stw r0,184(r30) <== NOT EXECUTED
ffc0722c: 4b ff fd d4 b ffc07000 <rtems_termios_ioctl+0x1e4> <== NOT EXECUTED
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
else
tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;
}
else {
if (tty->termios.c_cc[VMIN]) {
ffc07230: 88 1e 00 47 lbz r0,71(r30) <== NOT EXECUTED
ffc07234: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc07238: 41 9e 00 1c beq- cr7,ffc07254 <rtems_termios_ioctl+0x438><== NOT EXECUTED
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
ffc0723c: 91 3e 00 74 stw r9,116(r30) <== NOT EXECUTED
else
tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;
}
else {
if (tty->termios.c_cc[VMIN]) {
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
ffc07240: 91 3e 00 6c stw r9,108(r30) <== NOT EXECUTED
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
ffc07244: 91 3e 00 70 stw r9,112(r30) <== NOT EXECUTED
ffc07248: 4b ff fe 00 b ffc07048 <rtems_termios_ioctl+0x22c> <== NOT EXECUTED
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;
if (tty->termios.c_cc[VMIN])
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
else
tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;
ffc0724c: 90 1e 00 74 stw r0,116(r30) <== NOT EXECUTED
ffc07250: 4b ff fd f8 b ffc07048 <rtems_termios_ioctl+0x22c> <== NOT EXECUTED
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
}
else {
tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;
ffc07254: 38 00 00 01 li r0,1 <== NOT EXECUTED
ffc07258: 90 1e 00 6c stw r0,108(r30) <== NOT EXECUTED
ffc0725c: 4b ff fd ec b ffc07048 <rtems_termios_ioctl+0x22c> <== NOT EXECUTED
ffc0765c <rtems_termios_number_to_baud>:
int32_t baud
)
{
int termios_baud;
switch (baud) {
ffc0765c: 2f 83 04 b0 cmpwi cr7,r3,1200
case 110: termios_baud = B110; break;
case 134: termios_baud = B134; break;
case 150: termios_baud = B150; break;
case 200: termios_baud = B200; break;
case 300: termios_baud = B300; break;
case 600: termios_baud = B600; break;
ffc07660: 38 00 00 09 li r0,9
int32_t baud
)
{
int termios_baud;
switch (baud) {
ffc07664: 41 9e 00 5c beq- cr7,ffc076c0 <rtems_termios_number_to_baud+0x64>
ffc07668: 40 9d 00 60 ble- cr7,ffc076c8 <rtems_termios_number_to_baud+0x6c>
ffc0766c: 2f 83 4b 00 cmpwi cr7,r3,19200
case 600: termios_baud = B600; break;
case 1200: termios_baud = B1200; break;
case 1800: termios_baud = B1800; break;
case 2400: termios_baud = B2400; break;
case 4800: termios_baud = B4800; break;
case 9600: termios_baud = B9600; break;
ffc07670: 38 00 00 0e li r0,14
int32_t baud
)
{
int termios_baud;
switch (baud) {
ffc07674: 41 9e 00 4c beq- cr7,ffc076c0 <rtems_termios_number_to_baud+0x64>
ffc07678: 40 9d 00 90 ble- cr7,ffc07708 <rtems_termios_number_to_baud+0xac>
ffc0767c: 3c 00 00 01 lis r0,1
ffc07680: 60 00 c2 00 ori r0,r0,49664
ffc07684: 7f 83 00 00 cmpw cr7,r3,r0
case 2400: termios_baud = B2400; break;
case 4800: termios_baud = B4800; break;
case 9600: termios_baud = B9600; break;
case 19200: termios_baud = B19200; break;
case 38400: termios_baud = B38400; break;
case 57600: termios_baud = B57600; break;
ffc07688: 38 00 10 02 li r0,4098
int32_t baud
)
{
int termios_baud;
switch (baud) {
ffc0768c: 41 9e 00 34 beq- cr7,ffc076c0 <rtems_termios_number_to_baud+0x64>
ffc07690: 40 9d 00 f8 ble- cr7,ffc07788 <rtems_termios_number_to_baud+0x12c>
ffc07694: 3c 00 00 03 lis r0,3
ffc07698: 60 00 84 00 ori r0,r0,33792
ffc0769c: 7f 83 00 00 cmpw cr7,r3,r0
case 4800: termios_baud = B4800; break;
case 9600: termios_baud = B9600; break;
case 19200: termios_baud = B19200; break;
case 38400: termios_baud = B38400; break;
case 57600: termios_baud = B57600; break;
case 115200: termios_baud = B115200; break;
ffc076a0: 38 00 10 03 li r0,4099
int32_t baud
)
{
int termios_baud;
switch (baud) {
ffc076a4: 41 9e 00 1c beq- cr7,ffc076c0 <rtems_termios_number_to_baud+0x64>
ffc076a8: 3c 00 00 07 lis r0,7
ffc076ac: 60 00 08 00 ori r0,r0,2048
ffc076b0: 7f 83 00 00 cmpw cr7,r3,r0
case 9600: termios_baud = B9600; break;
case 19200: termios_baud = B19200; break;
case 38400: termios_baud = B38400; break;
case 57600: termios_baud = B57600; break;
case 115200: termios_baud = B115200; break;
case 230400: termios_baud = B230400; break;
ffc076b4: 38 00 10 04 li r0,4100
int32_t baud
)
{
int termios_baud;
switch (baud) {
ffc076b8: 41 9e 00 08 beq- cr7,ffc076c0 <rtems_termios_number_to_baud+0x64>
case 19200: termios_baud = B19200; break;
case 38400: termios_baud = B38400; break;
case 57600: termios_baud = B57600; break;
case 115200: termios_baud = B115200; break;
case 230400: termios_baud = B230400; break;
case 460800: termios_baud = B460800; break;
ffc076bc: 38 00 ff ff li r0,-1
default: termios_baud = -1; break;
}
return termios_baud;
}
ffc076c0: 7c 03 03 78 mr r3,r0
ffc076c4: 4e 80 00 20 blr
int32_t baud
)
{
int termios_baud;
switch (baud) {
ffc076c8: 2f 83 00 86 cmpwi cr7,r3,134
case 0: termios_baud = B0; break;
case 50: termios_baud = B50; break;
case 75: termios_baud = B75; break;
case 110: termios_baud = B110; break;
ffc076cc: 38 00 00 04 li r0,4
int32_t baud
)
{
int termios_baud;
switch (baud) {
ffc076d0: 41 be ff f0 beq- cr7,ffc076c0 <rtems_termios_number_to_baud+0x64>
ffc076d4: 40 9d 00 64 ble- cr7,ffc07738 <rtems_termios_number_to_baud+0xdc>
ffc076d8: 2f 83 00 c8 cmpwi cr7,r3,200
case 0: termios_baud = B0; break;
case 50: termios_baud = B50; break;
case 75: termios_baud = B75; break;
case 110: termios_baud = B110; break;
case 134: termios_baud = B134; break;
case 150: termios_baud = B150; break;
ffc076dc: 38 00 00 06 li r0,6
int32_t baud
)
{
int termios_baud;
switch (baud) {
ffc076e0: 41 be ff e0 beq- cr7,ffc076c0 <rtems_termios_number_to_baud+0x64>
ffc076e4: 40 9d 00 84 ble- cr7,ffc07768 <rtems_termios_number_to_baud+0x10c>
ffc076e8: 2f 83 01 2c cmpwi cr7,r3,300
case 50: termios_baud = B50; break;
case 75: termios_baud = B75; break;
case 110: termios_baud = B110; break;
case 134: termios_baud = B134; break;
case 150: termios_baud = B150; break;
case 200: termios_baud = B200; break;
ffc076ec: 38 00 00 07 li r0,7
int32_t baud
)
{
int termios_baud;
switch (baud) {
ffc076f0: 41 be ff d0 beq- cr7,ffc076c0 <rtems_termios_number_to_baud+0x64>
ffc076f4: 2f 83 02 58 cmpwi cr7,r3,600
case 75: termios_baud = B75; break;
case 110: termios_baud = B110; break;
case 134: termios_baud = B134; break;
case 150: termios_baud = B150; break;
case 200: termios_baud = B200; break;
case 300: termios_baud = B300; break;
ffc076f8: 38 00 00 08 li r0,8
int32_t baud
)
{
int termios_baud;
switch (baud) {
ffc076fc: 41 be ff c4 beq- cr7,ffc076c0 <rtems_termios_number_to_baud+0x64>
case 19200: termios_baud = B19200; break;
case 38400: termios_baud = B38400; break;
case 57600: termios_baud = B57600; break;
case 115200: termios_baud = B115200; break;
case 230400: termios_baud = B230400; break;
case 460800: termios_baud = B460800; break;
ffc07700: 38 00 ff ff li r0,-1 <== NOT EXECUTED
ffc07704: 4b ff ff bc b ffc076c0 <rtems_termios_number_to_baud+0x64><== NOT EXECUTED
int32_t baud
)
{
int termios_baud;
switch (baud) {
ffc07708: 2f 83 09 60 cmpwi cr7,r3,2400
case 150: termios_baud = B150; break;
case 200: termios_baud = B200; break;
case 300: termios_baud = B300; break;
case 600: termios_baud = B600; break;
case 1200: termios_baud = B1200; break;
case 1800: termios_baud = B1800; break;
ffc0770c: 38 00 00 0b li r0,11
int32_t baud
)
{
int termios_baud;
switch (baud) {
ffc07710: 41 be ff b0 beq- cr7,ffc076c0 <rtems_termios_number_to_baud+0x64>
ffc07714: 40 9d 00 a0 ble- cr7,ffc077b4 <rtems_termios_number_to_baud+0x158>
ffc07718: 2f 83 12 c0 cmpwi cr7,r3,4800
case 200: termios_baud = B200; break;
case 300: termios_baud = B300; break;
case 600: termios_baud = B600; break;
case 1200: termios_baud = B1200; break;
case 1800: termios_baud = B1800; break;
case 2400: termios_baud = B2400; break;
ffc0771c: 38 00 00 0c li r0,12
int32_t baud
)
{
int termios_baud;
switch (baud) {
ffc07720: 41 be ff a0 beq- cr7,ffc076c0 <rtems_termios_number_to_baud+0x64>
ffc07724: 2f 83 25 80 cmpwi cr7,r3,9600
case 300: termios_baud = B300; break;
case 600: termios_baud = B600; break;
case 1200: termios_baud = B1200; break;
case 1800: termios_baud = B1800; break;
case 2400: termios_baud = B2400; break;
case 4800: termios_baud = B4800; break;
ffc07728: 38 00 00 0d li r0,13
int32_t baud
)
{
int termios_baud;
switch (baud) {
ffc0772c: 41 be ff 94 beq- cr7,ffc076c0 <rtems_termios_number_to_baud+0x64>
case 19200: termios_baud = B19200; break;
case 38400: termios_baud = B38400; break;
case 57600: termios_baud = B57600; break;
case 115200: termios_baud = B115200; break;
case 230400: termios_baud = B230400; break;
case 460800: termios_baud = B460800; break;
ffc07730: 38 00 ff ff li r0,-1
ffc07734: 4b ff ff 8c b ffc076c0 <rtems_termios_number_to_baud+0x64>
int32_t baud
)
{
int termios_baud;
switch (baud) {
ffc07738: 2f 83 00 32 cmpwi cr7,r3,50
ffc0773c: 38 00 00 01 li r0,1
ffc07740: 41 be ff 80 beq- cr7,ffc076c0 <rtems_termios_number_to_baud+0x64>
ffc07744: 40 9d 00 34 ble- cr7,ffc07778 <rtems_termios_number_to_baud+0x11c>
ffc07748: 2f 83 00 4b cmpwi cr7,r3,75
ffc0774c: 38 00 00 02 li r0,2
ffc07750: 41 be ff 70 beq- cr7,ffc076c0 <rtems_termios_number_to_baud+0x64>
ffc07754: 2f 83 00 6e cmpwi cr7,r3,110
case 0: termios_baud = B0; break;
case 50: termios_baud = B50; break;
case 75: termios_baud = B75; break;
ffc07758: 38 00 00 03 li r0,3
int32_t baud
)
{
int termios_baud;
switch (baud) {
ffc0775c: 41 be ff 64 beq- cr7,ffc076c0 <rtems_termios_number_to_baud+0x64>
case 19200: termios_baud = B19200; break;
case 38400: termios_baud = B38400; break;
case 57600: termios_baud = B57600; break;
case 115200: termios_baud = B115200; break;
case 230400: termios_baud = B230400; break;
case 460800: termios_baud = B460800; break;
ffc07760: 38 00 ff ff li r0,-1 <== NOT EXECUTED
ffc07764: 4b ff ff 5c b ffc076c0 <rtems_termios_number_to_baud+0x64><== NOT EXECUTED
int32_t baud
)
{
int termios_baud;
switch (baud) {
ffc07768: 2f 83 00 96 cmpwi cr7,r3,150
case 0: termios_baud = B0; break;
case 50: termios_baud = B50; break;
case 75: termios_baud = B75; break;
case 110: termios_baud = B110; break;
case 134: termios_baud = B134; break;
ffc0776c: 38 00 00 05 li r0,5
int32_t baud
)
{
int termios_baud;
switch (baud) {
ffc07770: 40 9e ff 4c bne+ cr7,ffc076bc <rtems_termios_number_to_baud+0x60>
ffc07774: 4b ff ff 4c b ffc076c0 <rtems_termios_number_to_baud+0x64>
ffc07778: 2f 83 00 00 cmpwi cr7,r3,0
ffc0777c: 38 00 00 00 li r0,0
ffc07780: 41 be ff 40 beq- cr7,ffc076c0 <rtems_termios_number_to_baud+0x64>
ffc07784: 4b ff ff 38 b ffc076bc <rtems_termios_number_to_baud+0x60>
ffc07788: 38 00 00 00 li r0,0
ffc0778c: 60 00 96 00 ori r0,r0,38400
ffc07790: 7f 83 00 00 cmpw cr7,r3,r0
case 1200: termios_baud = B1200; break;
case 1800: termios_baud = B1800; break;
case 2400: termios_baud = B2400; break;
case 4800: termios_baud = B4800; break;
case 9600: termios_baud = B9600; break;
case 19200: termios_baud = B19200; break;
ffc07794: 38 00 00 0f li r0,15
int32_t baud
)
{
int termios_baud;
switch (baud) {
ffc07798: 41 be ff 28 beq- cr7,ffc076c0 <rtems_termios_number_to_baud+0x64>
ffc0779c: 38 00 00 00 li r0,0
ffc077a0: 60 00 e1 00 ori r0,r0,57600
ffc077a4: 7f 83 00 00 cmpw cr7,r3,r0
case 1800: termios_baud = B1800; break;
case 2400: termios_baud = B2400; break;
case 4800: termios_baud = B4800; break;
case 9600: termios_baud = B9600; break;
case 19200: termios_baud = B19200; break;
case 38400: termios_baud = B38400; break;
ffc077a8: 38 00 10 01 li r0,4097
int32_t baud
)
{
int termios_baud;
switch (baud) {
ffc077ac: 40 9e ff 10 bne+ cr7,ffc076bc <rtems_termios_number_to_baud+0x60>
ffc077b0: 4b ff ff 10 b ffc076c0 <rtems_termios_number_to_baud+0x64>
ffc077b4: 2f 83 07 08 cmpwi cr7,r3,1800
case 134: termios_baud = B134; break;
case 150: termios_baud = B150; break;
case 200: termios_baud = B200; break;
case 300: termios_baud = B300; break;
case 600: termios_baud = B600; break;
case 1200: termios_baud = B1200; break;
ffc077b8: 38 00 00 0a li r0,10
int32_t baud
)
{
int termios_baud;
switch (baud) {
ffc077bc: 40 9e ff 00 bne+ cr7,ffc076bc <rtems_termios_number_to_baud+0x60>
ffc077c0: 4b ff ff 00 b ffc076c0 <rtems_termios_number_to_baud+0x64>
ffc07458 <rtems_termios_open>:
rtems_device_major_number major,
rtems_device_minor_number minor,
void *arg,
const rtems_termios_callbacks *callbacks
)
{
ffc07458: 94 21 ff c8 stwu r1,-56(r1)
ffc0745c: 7c 08 02 a6 mflr r0
ffc07460: 93 81 00 28 stw r28,40(r1)
struct rtems_termios_tty *tty;
/*
* See if the device has already been opened
*/
sc = rtems_semaphore_obtain (rtems_termios_ttyMutex,
ffc07464: 3f 80 00 00 lis r28,0
rtems_device_major_number major,
rtems_device_minor_number minor,
void *arg,
const rtems_termios_callbacks *callbacks
)
{
ffc07468: 93 c1 00 30 stw r30,48(r1)
ffc0746c: 7c 7e 1b 78 mr r30,r3
struct rtems_termios_tty *tty;
/*
* See if the device has already been opened
*/
sc = rtems_semaphore_obtain (rtems_termios_ttyMutex,
ffc07470: 80 7c 27 14 lwz r3,10004(r28)
rtems_device_major_number major,
rtems_device_minor_number minor,
void *arg,
const rtems_termios_callbacks *callbacks
)
{
ffc07474: 93 41 00 20 stw r26,32(r1)
ffc07478: 7c ba 2b 78 mr r26,r5
struct rtems_termios_tty *tty;
/*
* See if the device has already been opened
*/
sc = rtems_semaphore_obtain (rtems_termios_ttyMutex,
ffc0747c: 38 a0 00 00 li r5,0
rtems_device_major_number major,
rtems_device_minor_number minor,
void *arg,
const rtems_termios_callbacks *callbacks
)
{
ffc07480: 93 a1 00 2c stw r29,44(r1)
ffc07484: 7c 9d 23 78 mr r29,r4
struct rtems_termios_tty *tty;
/*
* See if the device has already been opened
*/
sc = rtems_semaphore_obtain (rtems_termios_ttyMutex,
ffc07488: 38 80 00 00 li r4,0
rtems_device_major_number major,
rtems_device_minor_number minor,
void *arg,
const rtems_termios_callbacks *callbacks
)
{
ffc0748c: 92 e1 00 14 stw r23,20(r1)
ffc07490: 7c d7 33 78 mr r23,r6
ffc07494: 93 61 00 24 stw r27,36(r1)
ffc07498: 90 01 00 3c stw r0,60(r1)
ffc0749c: 92 a1 00 0c stw r21,12(r1)
ffc074a0: 92 c1 00 10 stw r22,16(r1)
ffc074a4: 93 01 00 18 stw r24,24(r1)
ffc074a8: 93 21 00 1c stw r25,28(r1)
ffc074ac: 93 e1 00 34 stw r31,52(r1)
struct rtems_termios_tty *tty;
/*
* See if the device has already been opened
*/
sc = rtems_semaphore_obtain (rtems_termios_ttyMutex,
ffc074b0: 48 00 12 61 bl ffc08710 <rtems_semaphore_obtain>
RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
ffc074b4: 7c 7b 1b 79 mr. r27,r3
ffc074b8: 40 82 00 8c bne- ffc07544 <rtems_termios_open+0xec>
return sc;
for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) {
ffc074bc: 3e c0 00 00 lis r22,0
ffc074c0: 83 f6 27 1c lwz r31,10012(r22)
ffc074c4: 2f 9f 00 00 cmpwi cr7,r31,0
ffc074c8: 40 be 00 14 bne+ cr7,ffc074dc <rtems_termios_open+0x84>
ffc074cc: 48 00 00 f4 b ffc075c0 <rtems_termios_open+0x168>
ffc074d0: 83 ff 00 00 lwz r31,0(r31)
ffc074d4: 2f 9f 00 00 cmpwi cr7,r31,0
ffc074d8: 41 9e 00 e8 beq- cr7,ffc075c0 <rtems_termios_open+0x168>
if ((tty->major == major) && (tty->minor == minor))
ffc074dc: 80 1f 00 0c lwz r0,12(r31)
ffc074e0: 7f 80 f0 00 cmpw cr7,r0,r30
ffc074e4: 40 9e ff ec bne+ cr7,ffc074d0 <rtems_termios_open+0x78>
ffc074e8: 80 1f 00 10 lwz r0,16(r31)
ffc074ec: 7f 80 e8 00 cmpw cr7,r0,r29
ffc074f0: 40 9e ff e0 bne+ cr7,ffc074d0 <rtems_termios_open+0x78>
if (c++ == 'z')
c = 'a';
}
args->iop->data1 = tty;
if (!tty->refcount++) {
ffc074f4: 81 3f 00 08 lwz r9,8(r31)
*/
if (c++ == 'z')
c = 'a';
}
args->iop->data1 = tty;
ffc074f8: 81 7a 00 00 lwz r11,0(r26)
if (!tty->refcount++) {
ffc074fc: 2f 89 00 00 cmpwi cr7,r9,0
ffc07500: 39 29 00 01 addi r9,r9,1
*/
if (c++ == 'z')
c = 'a';
}
args->iop->data1 = tty;
ffc07504: 93 eb 00 38 stw r31,56(r11)
if (!tty->refcount++) {
ffc07508: 91 3f 00 08 stw r9,8(r31)
ffc0750c: 40 9e 00 30 bne- cr7,ffc0753c <rtems_termios_open+0xe4>
if (tty->device.firstOpen)
ffc07510: 80 1f 00 98 lwz r0,152(r31)
ffc07514: 2f 80 00 00 cmpwi cr7,r0,0
ffc07518: 41 9e 00 18 beq- cr7,ffc07530 <rtems_termios_open+0xd8>
(*tty->device.firstOpen)(major, minor, arg);
ffc0751c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc07520: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc07524: 7f a4 eb 78 mr r4,r29 <== NOT EXECUTED
ffc07528: 7f 45 d3 78 mr r5,r26 <== NOT EXECUTED
ffc0752c: 4e 80 04 21 bctrl <== NOT EXECUTED
/*
* start I/O tasks, if needed
*/
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
ffc07530: 80 1f 00 b4 lwz r0,180(r31)
ffc07534: 2f 80 00 02 cmpwi cr7,r0,2
ffc07538: 41 9e 00 4c beq- cr7,ffc07584 <rtems_termios_open+0x12c>
(rtems_task_argument)tty);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
}
}
rtems_semaphore_release (rtems_termios_ttyMutex);
ffc0753c: 80 7c 27 14 lwz r3,10004(r28)
ffc07540: 48 00 13 31 bl ffc08870 <rtems_semaphore_release>
return RTEMS_SUCCESSFUL;
}
ffc07544: 80 01 00 3c lwz r0,60(r1)
ffc07548: 7f 63 db 78 mr r3,r27
ffc0754c: 82 a1 00 0c lwz r21,12(r1)
ffc07550: 7c 08 03 a6 mtlr r0
ffc07554: 82 c1 00 10 lwz r22,16(r1)
ffc07558: 82 e1 00 14 lwz r23,20(r1)
ffc0755c: 83 01 00 18 lwz r24,24(r1)
ffc07560: 83 21 00 1c lwz r25,28(r1)
ffc07564: 83 41 00 20 lwz r26,32(r1)
ffc07568: 83 61 00 24 lwz r27,36(r1)
ffc0756c: 83 81 00 28 lwz r28,40(r1)
ffc07570: 83 a1 00 2c lwz r29,44(r1)
ffc07574: 83 c1 00 30 lwz r30,48(r1)
ffc07578: 83 e1 00 34 lwz r31,52(r1)
ffc0757c: 38 21 00 38 addi r1,r1,56
ffc07580: 4e 80 00 20 blr
(*tty->device.firstOpen)(major, minor, arg);
/*
* start I/O tasks, if needed
*/
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
sc = rtems_task_start(tty->rxTaskId,
ffc07584: 80 7f 00 c4 lwz r3,196(r31) <== NOT EXECUTED
ffc07588: 3c 80 ff c0 lis r4,-64 <== NOT EXECUTED
ffc0758c: 38 84 79 b0 addi r4,r4,31152 <== NOT EXECUTED
ffc07590: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED
ffc07594: 48 00 17 75 bl ffc08d08 <rtems_task_start> <== NOT EXECUTED
rtems_termios_rxdaemon,
(rtems_task_argument)tty);
if (sc != RTEMS_SUCCESSFUL)
ffc07598: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc0759c: 40 9e 02 ec bne- cr7,ffc07888 <rtems_termios_open+0x430><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
sc = rtems_task_start(tty->txTaskId,
ffc075a0: 80 7f 00 c8 lwz r3,200(r31) <== NOT EXECUTED
ffc075a4: 3c 80 ff c0 lis r4,-64 <== NOT EXECUTED
ffc075a8: 38 84 79 04 addi r4,r4,30980 <== NOT EXECUTED
ffc075ac: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED
ffc075b0: 48 00 17 59 bl ffc08d08 <rtems_task_start> <== NOT EXECUTED
rtems_termios_txdaemon,
(rtems_task_argument)tty);
if (sc != RTEMS_SUCCESSFUL)
ffc075b4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc075b8: 41 9e ff 84 beq+ cr7,ffc0753c <rtems_termios_open+0xe4> <== NOT EXECUTED
ffc075bc: 48 00 02 cc b ffc07888 <rtems_termios_open+0x430> <== NOT EXECUTED
static char c = 'a';
/*
* Create a new device
*/
tty = calloc (1, sizeof (struct rtems_termios_tty));
ffc075c0: 38 60 00 01 li r3,1
ffc075c4: 38 80 00 e8 li r4,232
ffc075c8: 48 00 6a b1 bl ffc0e078 <calloc>
if (tty == NULL) {
ffc075cc: 2f 83 00 00 cmpwi cr7,r3,0
static char c = 'a';
/*
* Create a new device
*/
tty = calloc (1, sizeof (struct rtems_termios_tty));
ffc075d0: 7c 79 1b 78 mr r25,r3
ffc075d4: 7c 7f 1b 78 mr r31,r3
if (tty == NULL) {
ffc075d8: 41 9e 02 58 beq- cr7,ffc07830 <rtems_termios_open+0x3d8>
return RTEMS_NO_MEMORY;
}
/*
* allocate raw input buffer
*/
tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;
ffc075dc: 3e a0 00 00 lis r21,0
ffc075e0: 3b 15 21 68 addi r24,r21,8552
ffc075e4: 80 18 00 04 lwz r0,4(r24)
ffc075e8: 90 03 00 64 stw r0,100(r3)
tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);
ffc075ec: 80 63 00 64 lwz r3,100(r3)
ffc075f0: 4b ff d3 85 bl ffc04974 <malloc>
if (tty->rawInBuf.theBuf == NULL) {
ffc075f4: 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);
ffc075f8: 90 79 00 58 stw r3,88(r25)
if (tty->rawInBuf.theBuf == NULL) {
ffc075fc: 41 9e 02 2c beq- cr7,ffc07828 <rtems_termios_open+0x3d0>
return RTEMS_NO_MEMORY;
}
/*
* allocate raw output buffer
*/
tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;
ffc07600: 80 18 00 08 lwz r0,8(r24)
ffc07604: 90 19 00 88 stw r0,136(r25)
tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);
ffc07608: 80 79 00 88 lwz r3,136(r25)
ffc0760c: 4b ff d3 69 bl ffc04974 <malloc>
if (tty->rawOutBuf.theBuf == NULL) {
ffc07610: 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);
ffc07614: 90 79 00 7c stw r3,124(r25)
if (tty->rawOutBuf.theBuf == NULL) {
ffc07618: 41 9e 02 28 beq- cr7,ffc07840 <rtems_termios_open+0x3e8>
return RTEMS_NO_MEMORY;
}
/*
* allocate cooked buffer
*/
tty->cbuf = malloc (CBUFSIZE);
ffc0761c: 80 75 21 68 lwz r3,8552(r21)
ffc07620: 4b ff d3 55 bl ffc04974 <malloc>
if (tty->cbuf == NULL) {
ffc07624: 2f 83 00 00 cmpwi cr7,r3,0
return RTEMS_NO_MEMORY;
}
/*
* allocate cooked buffer
*/
tty->cbuf = malloc (CBUFSIZE);
ffc07628: 90 79 00 1c stw r3,28(r25)
if (tty->cbuf == NULL) {
ffc0762c: 41 9e 02 60 beq- cr7,ffc0788c <rtems_termios_open+0x434>
tty->tty_rcvwakeup = 0;
/*
* link tty
*/
tty->forw = rtems_termios_ttyHead;
ffc07630: 81 36 27 1c lwz r9,10012(r22)
return RTEMS_NO_MEMORY;
}
/*
* Initialize wakeup callbacks
*/
tty->tty_snd.sw_pfn = NULL;
ffc07634: 38 00 00 00 li r0,0
/*
* link tty
*/
tty->forw = rtems_termios_ttyHead;
tty->back = NULL;
ffc07638: 90 19 00 04 stw r0,4(r25)
if (rtems_termios_ttyHead != NULL)
ffc0763c: 2f 89 00 00 cmpwi cr7,r9,0
return RTEMS_NO_MEMORY;
}
/*
* Initialize wakeup callbacks
*/
tty->tty_snd.sw_pfn = NULL;
ffc07640: 90 19 00 d4 stw r0,212(r25)
tty->tty_snd.sw_arg = NULL;
ffc07644: 90 19 00 d8 stw r0,216(r25)
tty->tty_rcv.sw_pfn = NULL;
ffc07648: 90 19 00 dc stw r0,220(r25)
tty->tty_rcv.sw_arg = NULL;
ffc0764c: 90 19 00 e0 stw r0,224(r25)
tty->tty_rcvwakeup = 0;
ffc07650: 90 19 00 e4 stw r0,228(r25)
/*
* link tty
*/
tty->forw = rtems_termios_ttyHead;
ffc07654: 91 39 00 00 stw r9,0(r25)
tty->back = NULL;
if (rtems_termios_ttyHead != NULL)
ffc07658: 41 9e 00 08 beq- cr7,ffc07660 <rtems_termios_open+0x208>
rtems_termios_ttyHead->back = tty;
ffc0765c: 93 29 00 04 stw r25,4(r9)
rtems_termios_ttyHead = tty;
if (rtems_termios_ttyTail == NULL)
ffc07660: 3d 20 00 00 lis r9,0
*/
tty->forw = rtems_termios_ttyHead;
tty->back = NULL;
if (rtems_termios_ttyHead != NULL)
rtems_termios_ttyHead->back = tty;
rtems_termios_ttyHead = tty;
ffc07664: 93 36 27 1c stw r25,10012(r22)
if (rtems_termios_ttyTail == NULL)
ffc07668: 80 09 27 18 lwz r0,10008(r9)
ffc0766c: 2f 80 00 00 cmpwi cr7,r0,0
ffc07670: 41 9e 02 8c beq- cr7,ffc078fc <rtems_termios_open+0x4a4>
tty->major = major;
/*
* Set up mutex semaphores
*/
sc = rtems_semaphore_create (
ffc07674: 88 78 00 0c lbz r3,12(r24)
ffc07678: 38 80 00 01 li r4,1
ffc0767c: 38 a0 00 54 li r5,84
rtems_termios_ttyHead->back = tty;
rtems_termios_ttyHead = tty;
if (rtems_termios_ttyTail == NULL)
rtems_termios_ttyTail = tty;
tty->minor = minor;
ffc07680: 93 b9 00 10 stw r29,16(r25)
tty->major = major;
/*
* Set up mutex semaphores
*/
sc = rtems_semaphore_create (
ffc07684: 64 63 54 52 oris r3,r3,21586
ffc07688: 60 63 69 00 ori r3,r3,26880
rtems_termios_ttyHead = tty;
if (rtems_termios_ttyTail == NULL)
rtems_termios_ttyTail = tty;
tty->minor = minor;
tty->major = major;
ffc0768c: 93 d9 00 0c stw r30,12(r25)
/*
* Set up mutex semaphores
*/
sc = rtems_semaphore_create (
ffc07690: 38 c0 00 00 li r6,0
ffc07694: 38 f9 00 14 addi r7,r25,20
ffc07698: 48 00 0d 7d bl ffc08414 <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)
ffc0769c: 2f 83 00 00 cmpwi cr7,r3,0
ffc076a0: 40 9e 01 e8 bne- cr7,ffc07888 <rtems_termios_open+0x430>
rtems_fatal_error_occurred (sc);
sc = rtems_semaphore_create (
ffc076a4: 88 78 00 0c lbz r3,12(r24)
ffc076a8: 38 80 00 01 li r4,1
ffc076ac: 38 a0 00 54 li r5,84
ffc076b0: 64 63 54 52 oris r3,r3,21586
ffc076b4: 60 63 6f 00 ori r3,r3,28416
ffc076b8: 38 c0 00 00 li r6,0
ffc076bc: 38 f9 00 18 addi r7,r25,24
ffc076c0: 48 00 0d 55 bl ffc08414 <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)
ffc076c4: 2f 83 00 00 cmpwi cr7,r3,0
ffc076c8: 40 9e 01 c0 bne- cr7,ffc07888 <rtems_termios_open+0x430>
rtems_fatal_error_occurred (sc);
sc = rtems_semaphore_create (
ffc076cc: 88 78 00 0c lbz r3,12(r24)
ffc076d0: 38 80 00 00 li r4,0
ffc076d4: 38 a0 00 20 li r5,32
ffc076d8: 64 63 54 52 oris r3,r3,21586
ffc076dc: 60 63 78 00 ori r3,r3,30720
ffc076e0: 38 c0 00 00 li r6,0
ffc076e4: 38 f9 00 8c addi r7,r25,140
ffc076e8: 48 00 0d 2d bl ffc08414 <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)
ffc076ec: 7c 60 1b 79 mr. r0,r3
ffc076f0: 40 82 01 98 bne- ffc07888 <rtems_termios_open+0x430>
tty->rawOutBufState = rob_idle;
/*
* Set callbacks
*/
tty->device = *callbacks;
ffc076f4: 81 37 00 1c lwz r9,28(r23)
ffc076f8: 80 97 00 00 lwz r4,0(r23)
/*
* Create I/O tasks
*/
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
ffc076fc: 2f 89 00 02 cmpwi cr7,r9,2
tty->rawOutBufState = rob_idle;
/*
* Set callbacks
*/
tty->device = *callbacks;
ffc07700: 80 b7 00 04 lwz r5,4(r23)
ffc07704: 80 d7 00 08 lwz r6,8(r23)
ffc07708: 80 f7 00 0c lwz r7,12(r23)
ffc0770c: 81 17 00 10 lwz r8,16(r23)
ffc07710: 81 57 00 14 lwz r10,20(r23)
ffc07714: 81 77 00 18 lwz r11,24(r23)
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;
ffc07718: 90 19 00 94 stw r0,148(r25)
/*
* Set callbacks
*/
tty->device = *callbacks;
ffc0771c: 90 99 00 98 stw r4,152(r25)
ffc07720: 90 b9 00 9c stw r5,156(r25)
ffc07724: 90 d9 00 a0 stw r6,160(r25)
ffc07728: 90 f9 00 a4 stw r7,164(r25)
ffc0772c: 91 19 00 a8 stw r8,168(r25)
ffc07730: 91 59 00 ac stw r10,172(r25)
ffc07734: 91 79 00 b0 stw r11,176(r25)
ffc07738: 91 39 00 b4 stw r9,180(r25)
/*
* Create I/O tasks
*/
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
ffc0773c: 41 9e 01 64 beq- cr7,ffc078a0 <rtems_termios_open+0x448>
&tty->rxTaskId);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
}
if ((tty->device.pollRead == NULL) ||
ffc07740: 80 19 00 a0 lwz r0,160(r25)
ffc07744: 2f 80 00 00 cmpwi cr7,r0,0
ffc07748: 41 9e 01 18 beq- cr7,ffc07860 <rtems_termios_open+0x408>
(tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){
ffc0774c: 80 19 00 b4 lwz r0,180(r25)
ffc07750: 2f 80 00 02 cmpwi cr7,r0,2
ffc07754: 41 9e 01 0c beq- cr7,ffc07860 <rtems_termios_open+0x408>
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;
ffc07758: 38 00 00 00 li r0,0
tty->lowwater = tty->rawInBuf.Size * 1/2;
tty->highwater = tty->rawInBuf.Size * 3/4;
/*
* Bump name characer
*/
if (c++ == 'z')
ffc0775c: 89 38 00 0c lbz r9,12(r24)
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;
ffc07760: 90 19 00 b8 stw r0,184(r25)
* Set default parameters
*/
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;
ffc07764: 60 00 82 3b ori r0,r0,33339
tty->lowwater = tty->rawInBuf.Size * 1/2;
tty->highwater = tty->rawInBuf.Size * 3/4;
/*
* Bump name characer
*/
if (c++ == 'z')
ffc07768: 2f 89 00 7a cmpwi cr7,r9,122
/* 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;
ffc0776c: 81 79 00 64 lwz r11,100(r25)
tty->highwater = tty->rawInBuf.Size * 3/4;
/*
* Bump name characer
*/
if (c++ == 'z')
ffc07770: 39 29 00 01 addi r9,r9,1
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;
ffc07774: 81 59 00 64 lwz r10,100(r25)
* Set default parameters
*/
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;
ffc07778: 90 19 00 3c stw r0,60(r25)
/* 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;
ffc0777c: 55 6b f8 7e rlwinm r11,r11,31,1,31
tty->highwater = tty->rawInBuf.Size * 3/4;
ffc07780: 1d 4a 00 03 mulli r10,r10,3
/* 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;
ffc07784: 91 79 00 bc stw r11,188(r25)
tty->highwater = tty->rawInBuf.Size * 3/4;
ffc07788: 55 4a f0 be rlwinm r10,r10,30,2,31
ffc0778c: 91 59 00 c0 stw r10,192(r25)
}
/*
* Set default parameters
*/
tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;
ffc07790: 39 40 25 02 li r10,9474
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';
ffc07794: 38 00 00 00 li r0,0
}
/*
* Set default parameters
*/
tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;
ffc07798: 91 59 00 30 stw r10,48(r25)
tty->termios.c_oflag = OPOST | ONLCR | XTABS;
ffc0779c: 39 40 18 05 li r10,6149
ffc077a0: 91 59 00 34 stw r10,52(r25)
tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;
ffc077a4: 39 40 08 bd li r10,2237
ffc077a8: 91 59 00 38 stw r10,56(r25)
tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;
tty->termios.c_cc[VINTR] = '\003';
ffc077ac: 39 40 00 03 li r10,3
ffc077b0: 99 59 00 41 stb r10,65(r25)
tty->termios.c_cc[VQUIT] = '\034';
ffc077b4: 39 40 00 1c li r10,28
ffc077b8: 99 59 00 42 stb r10,66(r25)
tty->termios.c_cc[VERASE] = '\177';
ffc077bc: 39 40 00 7f li r10,127
ffc077c0: 99 59 00 43 stb r10,67(r25)
tty->termios.c_cc[VKILL] = '\025';
ffc077c4: 39 40 00 15 li r10,21
ffc077c8: 99 59 00 44 stb r10,68(r25)
tty->termios.c_cc[VEOF] = '\004';
ffc077cc: 39 40 00 04 li r10,4
ffc077d0: 99 59 00 45 stb r10,69(r25)
tty->termios.c_cc[VEOL] = '\000';
tty->termios.c_cc[VEOL2] = '\000';
tty->termios.c_cc[VSTART] = '\021';
ffc077d4: 39 40 00 11 li r10,17
ffc077d8: 99 59 00 49 stb r10,73(r25)
tty->termios.c_cc[VSTOP] = '\023';
ffc077dc: 39 40 00 13 li r10,19
ffc077e0: 99 59 00 4a stb r10,74(r25)
tty->termios.c_cc[VSUSP] = '\032';
ffc077e4: 39 40 00 1a li r10,26
ffc077e8: 99 59 00 4b stb r10,75(r25)
tty->termios.c_cc[VREPRINT] = '\022';
ffc077ec: 39 40 00 12 li r10,18
ffc077f0: 99 59 00 4d stb r10,77(r25)
tty->termios.c_cc[VDISCARD] = '\017';
ffc077f4: 39 40 00 0f li r10,15
ffc077f8: 99 59 00 4e stb r10,78(r25)
tty->termios.c_cc[VWERASE] = '\027';
ffc077fc: 39 40 00 17 li r10,23
ffc07800: 99 59 00 4f stb r10,79(r25)
tty->termios.c_cc[VLNEXT] = '\026';
ffc07804: 39 40 00 16 li r10,22
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';
ffc07808: 98 19 00 51 stb r0,81(r25)
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';
ffc0780c: 99 59 00 50 stb r10,80(r25)
tty->lowwater = tty->rawInBuf.Size * 1/2;
tty->highwater = tty->rawInBuf.Size * 3/4;
/*
* Bump name characer
*/
if (c++ == 'z')
ffc07810: 99 38 00 0c stb r9,12(r24)
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';
ffc07814: 98 19 00 4c stb r0,76(r25)
tty->lowwater = tty->rawInBuf.Size * 1/2;
tty->highwater = tty->rawInBuf.Size * 3/4;
/*
* Bump name characer
*/
if (c++ == 'z')
ffc07818: 40 9e fc dc bne+ cr7,ffc074f4 <rtems_termios_open+0x9c>
c = 'a';
ffc0781c: 38 00 00 61 li r0,97 <== NOT EXECUTED
ffc07820: 98 18 00 0c stb r0,12(r24) <== NOT EXECUTED
ffc07824: 4b ff fc d0 b ffc074f4 <rtems_termios_open+0x9c> <== NOT EXECUTED
* allocate raw input buffer
*/
tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;
tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);
if (tty->rawInBuf.theBuf == NULL) {
free(tty);
ffc07828: 7f 23 cb 78 mr r3,r25 <== NOT EXECUTED
ffc0782c: 4b ff cd c9 bl ffc045f4 <free> <== NOT EXECUTED
rtems_semaphore_release (rtems_termios_ttyMutex);
ffc07830: 80 7c 27 14 lwz r3,10004(r28) <== NOT EXECUTED
ffc07834: 3b 60 00 1a li r27,26 <== NOT EXECUTED
ffc07838: 48 00 10 39 bl ffc08870 <rtems_semaphore_release> <== NOT EXECUTED
return RTEMS_NO_MEMORY;
ffc0783c: 4b ff fd 08 b ffc07544 <rtems_termios_open+0xec> <== NOT EXECUTED
* allocate raw output buffer
*/
tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;
tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);
if (tty->rawOutBuf.theBuf == NULL) {
free((void *)(tty->rawInBuf.theBuf));
ffc07840: 80 79 00 58 lwz r3,88(r25) <== NOT EXECUTED
free(tty);
rtems_semaphore_release (rtems_termios_ttyMutex);
ffc07844: 3b 60 00 1a li r27,26 <== NOT EXECUTED
* allocate cooked buffer
*/
tty->cbuf = malloc (CBUFSIZE);
if (tty->cbuf == NULL) {
free((void *)(tty->rawOutBuf.theBuf));
free((void *)(tty->rawInBuf.theBuf));
ffc07848: 4b ff cd ad bl ffc045f4 <free> <== NOT EXECUTED
free(tty);
ffc0784c: 7f 23 cb 78 mr r3,r25 <== NOT EXECUTED
ffc07850: 4b ff cd a5 bl ffc045f4 <free> <== NOT EXECUTED
rtems_semaphore_release (rtems_termios_ttyMutex);
ffc07854: 80 7c 27 14 lwz r3,10004(r28) <== NOT EXECUTED
ffc07858: 48 00 10 19 bl ffc08870 <rtems_semaphore_release> <== NOT EXECUTED
return RTEMS_NO_MEMORY;
ffc0785c: 4b ff fc e8 b ffc07544 <rtems_termios_open+0xec> <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
}
if ((tty->device.pollRead == NULL) ||
(tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){
sc = rtems_semaphore_create (
ffc07860: 88 78 00 0c lbz r3,12(r24) <== NOT EXECUTED
ffc07864: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc07868: 38 a0 00 24 li r5,36 <== NOT EXECUTED
ffc0786c: 64 63 54 52 oris r3,r3,21586 <== NOT EXECUTED
ffc07870: 60 63 72 00 ori r3,r3,29184 <== NOT EXECUTED
ffc07874: 38 c0 00 00 li r6,0 <== NOT EXECUTED
ffc07878: 38 f9 00 68 addi r7,r25,104 <== NOT EXECUTED
ffc0787c: 48 00 0b 99 bl ffc08414 <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)
ffc07880: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc07884: 41 9e fe d4 beq+ cr7,ffc07758 <rtems_termios_open+0x300><== NOT EXECUTED
sc = rtems_task_start(tty->txTaskId,
rtems_termios_txdaemon,
(rtems_task_argument)tty);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
ffc07888: 48 00 17 ad bl ffc09034 <rtems_fatal_error_occurred> <== NOT EXECUTED
/*
* allocate cooked buffer
*/
tty->cbuf = malloc (CBUFSIZE);
if (tty->cbuf == NULL) {
free((void *)(tty->rawOutBuf.theBuf));
ffc0788c: 80 79 00 7c lwz r3,124(r25) <== NOT EXECUTED
free((void *)(tty->rawInBuf.theBuf));
free(tty);
rtems_semaphore_release (rtems_termios_ttyMutex);
ffc07890: 3b 60 00 1a li r27,26 <== NOT EXECUTED
/*
* allocate cooked buffer
*/
tty->cbuf = malloc (CBUFSIZE);
if (tty->cbuf == NULL) {
free((void *)(tty->rawOutBuf.theBuf));
ffc07894: 4b ff cd 61 bl ffc045f4 <free> <== NOT EXECUTED
free((void *)(tty->rawInBuf.theBuf));
ffc07898: 80 79 00 58 lwz r3,88(r25) <== NOT EXECUTED
ffc0789c: 4b ff ff ac b ffc07848 <rtems_termios_open+0x3f0> <== NOT EXECUTED
/*
* Create I/O tasks
*/
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
sc = rtems_task_create (
ffc078a0: 88 78 00 0c lbz r3,12(r24) <== NOT EXECUTED
ffc078a4: 38 80 00 0a li r4,10 <== NOT EXECUTED
ffc078a8: 38 a0 04 00 li r5,1024 <== NOT EXECUTED
ffc078ac: 64 63 54 78 oris r3,r3,21624 <== NOT EXECUTED
ffc078b0: 60 63 54 00 ori r3,r3,21504 <== NOT EXECUTED
ffc078b4: 38 c0 05 00 li r6,1280 <== NOT EXECUTED
ffc078b8: 38 e0 00 00 li r7,0 <== NOT EXECUTED
ffc078bc: 39 19 00 c8 addi r8,r25,200 <== NOT EXECUTED
ffc078c0: 48 00 10 8d bl ffc0894c <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)
ffc078c4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc078c8: 40 be ff c0 bne- cr7,ffc07888 <rtems_termios_open+0x430><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
sc = rtems_task_create (
ffc078cc: 88 78 00 0c lbz r3,12(r24) <== NOT EXECUTED
ffc078d0: 38 80 00 09 li r4,9 <== NOT EXECUTED
ffc078d4: 38 a0 04 00 li r5,1024 <== NOT EXECUTED
ffc078d8: 64 63 52 78 oris r3,r3,21112 <== NOT EXECUTED
ffc078dc: 60 63 54 00 ori r3,r3,21504 <== NOT EXECUTED
ffc078e0: 38 c0 05 00 li r6,1280 <== NOT EXECUTED
ffc078e4: 38 e0 00 00 li r7,0 <== NOT EXECUTED
ffc078e8: 39 19 00 c4 addi r8,r25,196 <== NOT EXECUTED
ffc078ec: 48 00 10 61 bl ffc0894c <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)
ffc078f0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc078f4: 41 9e fe 4c beq+ cr7,ffc07740 <rtems_termios_open+0x2e8><== NOT EXECUTED
ffc078f8: 4b ff ff 90 b ffc07888 <rtems_termios_open+0x430> <== NOT EXECUTED
tty->back = NULL;
if (rtems_termios_ttyHead != NULL)
rtems_termios_ttyHead->back = tty;
rtems_termios_ttyHead = tty;
if (rtems_termios_ttyTail == NULL)
rtems_termios_ttyTail = tty;
ffc078fc: 93 29 27 18 stw r25,10008(r9)
ffc07900: 4b ff fd 74 b ffc07674 <rtems_termios_open+0x21c>
ffc05f38 <rtems_termios_puts>:
* Send characters to device-specific code
*/
void
rtems_termios_puts (
const void *_buf, int len, struct rtems_termios_tty *tty)
{
ffc05f38: 94 21 ff d0 stwu r1,-48(r1)
ffc05f3c: 7c 08 02 a6 mflr r0
ffc05f40: 90 01 00 34 stw r0,52(r1)
ffc05f44: 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) {
ffc05f48: 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)
{
ffc05f4c: 93 41 00 18 stw r26,24(r1)
const unsigned char *buf = _buf;
ffc05f50: 7c 7a 1b 78 mr r26,r3
unsigned int newHead;
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
ffc05f54: 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)
{
ffc05f58: 93 e1 00 2c stw r31,44(r1)
ffc05f5c: 7c bf 2b 78 mr r31,r5
ffc05f60: 93 21 00 14 stw r25,20(r1)
ffc05f64: 93 61 00 1c stw r27,28(r1)
ffc05f68: 93 81 00 20 stw r28,32(r1)
ffc05f6c: 93 a1 00 24 stw r29,36(r1)
ffc05f70: 93 c1 00 28 stw r30,40(r1)
ffc05f74: 90 81 00 08 stw r4,8(r1)
const unsigned char *buf = _buf;
unsigned int newHead;
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
ffc05f78: 41 9e 01 04 beq- cr7,ffc0607c <rtems_termios_puts+0x144>
(*tty->device.write)(tty->minor, (void *)buf, len);
return;
}
newHead = tty->rawOutBuf.Head;
while (len) {
ffc05f7c: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
(*tty->device.write)(tty->minor, (void *)buf, len);
return;
}
newHead = tty->rawOutBuf.Head;
ffc05f80: 83 65 00 80 lwz r27,128(r5) <== NOT EXECUTED
while (len) {
ffc05f84: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc05f88: 41 9e 01 0c beq- cr7,ffc06094 <rtems_termios_puts+0x15c><== NOT EXECUTED
* with interrupts enabled.
*/
newHead = (newHead + 1) % tty->rawOutBuf.Size;
rtems_interrupt_disable (level);
while (newHead == tty->rawOutBuf.Tail) {
tty->rawOutBufState = rob_wait;
ffc05f8c: 3b 80 00 02 li r28,2 <== NOT EXECUTED
}
else {
/* remember that output has been stopped due to flow ctrl*/
tty->flow_ctrl |= FL_OSTOP;
}
tty->rawOutBufState = rob_busy;
ffc05f90: 3b 20 00 01 li r25,1 <== NOT EXECUTED
* len -= ncopy
*
* To minimize latency, the memcpy should be done
* with interrupts enabled.
*/
newHead = (newHead + 1) % tty->rawOutBuf.Size;
ffc05f94: 80 1f 00 88 lwz r0,136(r31) <== NOT EXECUTED
ffc05f98: 3b 7b 00 01 addi r27,r27,1 <== NOT EXECUTED
ffc05f9c: 7d 3b 03 96 divwu r9,r27,r0 <== NOT EXECUTED
ffc05fa0: 7c 09 01 d6 mullw r0,r9,r0 <== NOT EXECUTED
ffc05fa4: 7f 60 d8 50 subf r27,r0,r27 <== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc05fa8: 7f c0 00 a6 mfmsr r30 <== NOT EXECUTED
ffc05fac: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED
ffc05fb0: 7f c0 00 78 andc r0,r30,r0 <== NOT EXECUTED
ffc05fb4: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED
rtems_interrupt_disable (level);
while (newHead == tty->rawOutBuf.Tail) {
ffc05fb8: 83 bf 00 84 lwz r29,132(r31) <== NOT EXECUTED
ffc05fbc: 7f 9d d8 00 cmpw cr7,r29,r27 <== NOT EXECUTED
ffc05fc0: 40 9e 00 40 bne- cr7,ffc06000 <rtems_termios_puts+0xc8> <== NOT EXECUTED
tty->rawOutBufState = rob_wait;
ffc05fc4: 93 9f 00 94 stw r28,148(r31) <== NOT EXECUTED
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc05fc8: 7f c0 01 24 mtmsr r30 <== NOT EXECUTED
rtems_interrupt_enable (level);
sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore,
ffc05fcc: 80 7f 00 8c lwz r3,140(r31) <== NOT EXECUTED
ffc05fd0: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc05fd4: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc05fd8: 48 00 27 39 bl ffc08710 <rtems_semaphore_obtain> <== NOT EXECUTED
RTEMS_WAIT,
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
ffc05fdc: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc05fe0: 40 9e 00 e0 bne- cr7,ffc060c0 <rtems_termios_puts+0x188><== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc05fe4: 7f c0 00 a6 mfmsr r30 <== NOT EXECUTED
ffc05fe8: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED
ffc05fec: 7f c0 00 78 andc r0,r30,r0 <== NOT EXECUTED
ffc05ff0: 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) {
ffc05ff4: 80 1f 00 84 lwz r0,132(r31) <== NOT EXECUTED
ffc05ff8: 7f 80 e8 00 cmpw cr7,r0,r29 <== NOT EXECUTED
ffc05ffc: 41 9e ff c8 beq+ cr7,ffc05fc4 <rtems_termios_puts+0x8c> <== 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++;
ffc06000: 80 1f 00 80 lwz r0,128(r31) <== NOT EXECUTED
ffc06004: 89 7a 00 00 lbz r11,0(r26) <== NOT EXECUTED
ffc06008: 81 3f 00 7c lwz r9,124(r31) <== NOT EXECUTED
ffc0600c: 7d 69 01 ae stbx r11,r9,r0 <== NOT EXECUTED
tty->rawOutBuf.Head = newHead;
if (tty->rawOutBufState == rob_idle) {
ffc06010: 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;
ffc06014: 93 7f 00 80 stw r27,128(r31) <== NOT EXECUTED
if (tty->rawOutBufState == rob_idle) {
ffc06018: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0601c: 40 9e 00 20 bne- cr7,ffc0603c <rtems_termios_puts+0x104><== NOT EXECUTED
/* check, whether XOFF has been received */
if (!(tty->flow_ctrl & FL_ORCVXOF)) {
ffc06020: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc06024: 70 09 00 10 andi. r9,r0,16 <== NOT EXECUTED
ffc06028: 41 82 00 30 beq- ffc06058 <rtems_termios_puts+0x120> <== NOT EXECUTED
(*tty->device.write)(tty->minor,
(char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
}
else {
/* remember that output has been stopped due to flow ctrl*/
tty->flow_ctrl |= FL_OSTOP;
ffc0602c: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc06030: 60 00 00 20 ori r0,r0,32 <== NOT EXECUTED
ffc06034: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED
}
tty->rawOutBufState = rob_busy;
ffc06038: 93 3f 00 94 stw r25,148(r31) <== NOT EXECUTED
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0603c: 7f c0 01 24 mtmsr r30 <== NOT EXECUTED
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
(*tty->device.write)(tty->minor, (void *)buf, len);
return;
}
newHead = tty->rawOutBuf.Head;
while (len) {
ffc06040: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED
ffc06044: 35 20 ff ff addic. r9,r0,-1 <== NOT EXECUTED
ffc06048: 91 21 00 08 stw r9,8(r1) <== NOT EXECUTED
ffc0604c: 41 82 00 48 beq- ffc06094 <rtems_termios_puts+0x15c> <== 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++;
ffc06050: 3b 5a 00 01 addi r26,r26,1 <== NOT EXECUTED
ffc06054: 4b ff ff 40 b ffc05f94 <rtems_termios_puts+0x5c> <== NOT EXECUTED
tty->rawOutBuf.Head = newHead;
if (tty->rawOutBufState == rob_idle) {
/* check, whether XOFF has been received */
if (!(tty->flow_ctrl & FL_ORCVXOF)) {
(*tty->device.write)(tty->minor,
(char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
ffc06058: 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,
ffc0605c: 38 a0 00 01 li r5,1 <== NOT EXECUTED
ffc06060: 80 9f 00 7c lwz r4,124(r31) <== NOT EXECUTED
ffc06064: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED
ffc06068: 7c 84 4a 14 add r4,r4,r9 <== NOT EXECUTED
ffc0606c: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED
ffc06070: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc06074: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc06078: 4b ff ff c0 b ffc06038 <rtems_termios_puts+0x100> <== NOT EXECUTED
unsigned int newHead;
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
(*tty->device.write)(tty->minor, (void *)buf, len);
ffc0607c: 7c 04 03 78 mr r4,r0
ffc06080: 80 1f 00 a4 lwz r0,164(r31)
ffc06084: 80 65 00 10 lwz r3,16(r5)
ffc06088: 7c 09 03 a6 mtctr r0
ffc0608c: 80 a1 00 08 lwz r5,8(r1)
ffc06090: 4e 80 04 21 bctrl
tty->rawOutBufState = rob_busy;
}
rtems_interrupt_enable (level);
len--;
}
}
ffc06094: 80 01 00 34 lwz r0,52(r1)
ffc06098: 83 21 00 14 lwz r25,20(r1)
ffc0609c: 7c 08 03 a6 mtlr r0
ffc060a0: 83 41 00 18 lwz r26,24(r1)
ffc060a4: 83 61 00 1c lwz r27,28(r1)
ffc060a8: 83 81 00 20 lwz r28,32(r1)
ffc060ac: 83 a1 00 24 lwz r29,36(r1)
ffc060b0: 83 c1 00 28 lwz r30,40(r1)
ffc060b4: 83 e1 00 2c lwz r31,44(r1)
ffc060b8: 38 21 00 30 addi r1,r1,48
ffc060bc: 4e 80 00 20 blr
rtems_interrupt_enable (level);
sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore,
RTEMS_WAIT,
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
ffc060c0: 48 00 2f 75 bl ffc09034 <rtems_fatal_error_occurred> <== NOT EXECUTED
ffc069f0 <rtems_termios_read>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_termios_read (void *arg)
{
ffc069f0: 94 21 ff d0 stwu r1,-48(r1) <== NOT EXECUTED
ffc069f4: 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);
ffc069f8: 38 80 00 00 li r4,0 <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_termios_read (void *arg)
{
ffc069fc: 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);
ffc06a00: 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;
ffc06a04: 81 23 00 00 lwz r9,0(r3) <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_termios_read (void *arg)
{
ffc06a08: 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;
ffc06a0c: 83 e9 00 38 lwz r31,56(r9) <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_termios_read (void *arg)
{
ffc06a10: 93 21 00 14 stw r25,20(r1) <== NOT EXECUTED
ffc06a14: 7c 79 1b 78 mr r25,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);
ffc06a18: 80 7f 00 14 lwz r3,20(r31) <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_termios_read (void *arg)
{
ffc06a1c: 93 01 00 10 stw r24,16(r1) <== NOT EXECUTED
ffc06a20: 93 61 00 1c stw r27,28(r1) <== NOT EXECUTED
ffc06a24: 93 81 00 20 stw r28,32(r1) <== NOT EXECUTED
ffc06a28: 92 e1 00 0c stw r23,12(r1) <== NOT EXECUTED
ffc06a2c: 93 41 00 18 stw r26,24(r1) <== NOT EXECUTED
ffc06a30: 93 a1 00 24 stw r29,36(r1) <== NOT EXECUTED
ffc06a34: 93 c1 00 28 stw r30,40(r1) <== NOT EXECUTED
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
uint32_t count = args->count;
ffc06a38: 83 79 00 14 lwz r27,20(r25) <== NOT EXECUTED
char *buffer = args->buffer;
ffc06a3c: 83 99 00 10 lwz r28,16(r25) <== NOT EXECUTED
rtems_status_code sc;
sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc06a40: 48 00 1c d1 bl ffc08710 <rtems_semaphore_obtain> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
ffc06a44: 7c 78 1b 79 mr. r24,r3 <== NOT EXECUTED
ffc06a48: 40 82 00 48 bne- ffc06a90 <rtems_termios_read+0xa0> <== NOT EXECUTED
return sc;
if (rtems_termios_linesw[tty->t_line].l_read != NULL) {
ffc06a4c: 80 1f 00 cc lwz r0,204(r31) <== NOT EXECUTED
ffc06a50: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc06a54: 39 29 27 f0 addi r9,r9,10224 <== NOT EXECUTED
ffc06a58: 54 00 28 34 rlwinm r0,r0,5,0,26 <== NOT EXECUTED
ffc06a5c: 7d 29 02 14 add r9,r9,r0 <== NOT EXECUTED
ffc06a60: 80 09 00 08 lwz r0,8(r9) <== NOT EXECUTED
ffc06a64: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc06a68: 41 9e 00 60 beq- cr7,ffc06ac8 <rtems_termios_read+0xd8> <== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_read(tty,args);
ffc06a6c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc06a70: 7f 24 cb 78 mr r4,r25 <== NOT EXECUTED
ffc06a74: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc06a78: 4e 80 04 21 bctrl <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
ffc06a7c: 38 00 00 00 li r0,0 <== NOT EXECUTED
sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
return sc;
if (rtems_termios_linesw[tty->t_line].l_read != NULL) {
sc = rtems_termios_linesw[tty->t_line].l_read(tty,args);
ffc06a80: 7c 78 1b 78 mr r24,r3 <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
ffc06a84: 90 1f 00 e4 stw r0,228(r31) <== NOT EXECUTED
rtems_semaphore_release (tty->isem);
ffc06a88: 80 7f 00 14 lwz r3,20(r31) <== NOT EXECUTED
ffc06a8c: 48 00 1d e5 bl ffc08870 <rtems_semaphore_release> <== NOT EXECUTED
}
args->bytes_moved = args->count - count;
tty->tty_rcvwakeup = 0;
rtems_semaphore_release (tty->isem);
return sc;
}
ffc06a90: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED
ffc06a94: 7f 03 c3 78 mr r3,r24 <== NOT EXECUTED
ffc06a98: 82 e1 00 0c lwz r23,12(r1) <== NOT EXECUTED
ffc06a9c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc06aa0: 83 01 00 10 lwz r24,16(r1) <== NOT EXECUTED
ffc06aa4: 83 21 00 14 lwz r25,20(r1) <== NOT EXECUTED
ffc06aa8: 83 41 00 18 lwz r26,24(r1) <== NOT EXECUTED
ffc06aac: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED
ffc06ab0: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED
ffc06ab4: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED
ffc06ab8: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED
ffc06abc: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED
ffc06ac0: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED
ffc06ac4: 4e 80 00 20 blr <== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_read(tty,args);
tty->tty_rcvwakeup = 0;
rtems_semaphore_release (tty->isem);
return sc;
}
if (tty->cindex == tty->ccount) {
ffc06ac8: 81 3f 00 24 lwz r9,36(r31) <== NOT EXECUTED
ffc06acc: 80 1f 00 20 lwz r0,32(r31) <== NOT EXECUTED
ffc06ad0: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED
ffc06ad4: 41 9e 00 a4 beq- cr7,ffc06b78 <rtems_termios_read+0x188><== NOT EXECUTED
else
sc = fillBufferQueue (tty);
if (sc != RTEMS_SUCCESSFUL)
tty->cindex = tty->ccount = 0;
}
while (count && (tty->cindex < tty->ccount)) {
ffc06ad8: 2f 9b 00 00 cmpwi cr7,r27,0 <== NOT EXECUTED
ffc06adc: 41 9e 00 48 beq- cr7,ffc06b24 <rtems_termios_read+0x134><== NOT EXECUTED
ffc06ae0: 81 3f 00 24 lwz r9,36(r31) <== NOT EXECUTED
ffc06ae4: 80 1f 00 20 lwz r0,32(r31) <== NOT EXECUTED
ffc06ae8: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED
ffc06aec: 40 9c 00 38 bge- cr7,ffc06b24 <rtems_termios_read+0x134><== NOT EXECUTED
ffc06af0: 7f 69 03 a6 mtctr r27 <== NOT EXECUTED
ffc06af4: 48 00 00 10 b ffc06b04 <rtems_termios_read+0x114> <== NOT EXECUTED
ffc06af8: 80 1f 00 20 lwz r0,32(r31) <== NOT EXECUTED
ffc06afc: 7f 80 48 00 cmpw cr7,r0,r9 <== NOT EXECUTED
ffc06b00: 40 9d 00 24 ble- cr7,ffc06b24 <rtems_termios_read+0x134><== NOT EXECUTED
*buffer++ = tty->cbuf[tty->cindex++];
ffc06b04: 81 7f 00 1c lwz r11,28(r31) <== NOT EXECUTED
count--;
ffc06b08: 3b 7b ff ff addi r27,r27,-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++];
ffc06b0c: 7c 0b 48 ae lbzx r0,r11,r9 <== NOT EXECUTED
ffc06b10: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED
ffc06b14: 98 1c 00 00 stb r0,0(r28) <== NOT EXECUTED
ffc06b18: 3b 9c 00 01 addi r28,r28,1 <== NOT EXECUTED
ffc06b1c: 91 3f 00 24 stw r9,36(r31) <== NOT EXECUTED
else
sc = fillBufferQueue (tty);
if (sc != RTEMS_SUCCESSFUL)
tty->cindex = tty->ccount = 0;
}
while (count && (tty->cindex < tty->ccount)) {
ffc06b20: 42 00 ff d8 bdnz+ ffc06af8 <rtems_termios_read+0x108> <== NOT EXECUTED
*buffer++ = tty->cbuf[tty->cindex++];
count--;
}
args->bytes_moved = args->count - count;
ffc06b24: 80 19 00 14 lwz r0,20(r25) <== NOT EXECUTED
ffc06b28: 7f 7b 00 50 subf r27,r27,r0 <== NOT EXECUTED
ffc06b2c: 93 79 00 1c stw r27,28(r25) <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
ffc06b30: 38 00 00 00 li r0,0 <== NOT EXECUTED
ffc06b34: 90 1f 00 e4 stw r0,228(r31) <== NOT EXECUTED
rtems_semaphore_release (tty->isem);
ffc06b38: 80 7f 00 14 lwz r3,20(r31) <== NOT EXECUTED
ffc06b3c: 48 00 1d 35 bl ffc08870 <rtems_semaphore_release> <== NOT EXECUTED
return sc;
}
ffc06b40: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED
ffc06b44: 7f 03 c3 78 mr r3,r24 <== NOT EXECUTED
ffc06b48: 82 e1 00 0c lwz r23,12(r1) <== NOT EXECUTED
ffc06b4c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc06b50: 83 01 00 10 lwz r24,16(r1) <== NOT EXECUTED
ffc06b54: 83 21 00 14 lwz r25,20(r1) <== NOT EXECUTED
ffc06b58: 83 41 00 18 lwz r26,24(r1) <== NOT EXECUTED
ffc06b5c: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED
ffc06b60: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED
ffc06b64: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED
ffc06b68: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED
ffc06b6c: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED
ffc06b70: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED
ffc06b74: 4e 80 00 20 blr <== NOT EXECUTED
}
if (tty->cindex == tty->ccount) {
tty->cindex = tty->ccount = 0;
tty->read_start_column = tty->column;
if (tty->device.pollRead != NULL
&& tty->device.outputUsesInterrupts == TERMIOS_POLLED)
ffc06b78: 80 1f 00 a0 lwz r0,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;
ffc06b7c: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED
if (tty->device.pollRead != NULL
ffc06b80: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
rtems_semaphore_release (tty->isem);
return sc;
}
if (tty->cindex == tty->ccount) {
tty->cindex = tty->ccount = 0;
ffc06b84: 93 1f 00 20 stw r24,32(r31) <== NOT EXECUTED
tty->read_start_column = tty->column;
ffc06b88: 91 3f 00 2c stw r9,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;
ffc06b8c: 93 1f 00 24 stw r24,36(r31) <== NOT EXECUTED
tty->read_start_column = tty->column;
if (tty->device.pollRead != NULL
ffc06b90: 41 9e 00 10 beq- cr7,ffc06ba0 <rtems_termios_read+0x1b0><== NOT EXECUTED
&& tty->device.outputUsesInterrupts == TERMIOS_POLLED)
ffc06b94: 81 3f 00 b4 lwz r9,180(r31) <== NOT EXECUTED
ffc06b98: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc06b9c: 41 9e 01 8c beq- cr7,ffc06d28 <rtems_termios_read+0x338><== NOT EXECUTED
while ( wait ) {
/*
* Process characters read from raw queue
*/
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
ffc06ba0: 3f a0 00 00 lis r29,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;
ffc06ba4: 83 df 00 74 lwz r30,116(r31) <== NOT EXECUTED
while ( wait ) {
/*
* Process characters read from raw queue
*/
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
ffc06ba8: 3b bd 21 68 addi r29,r29,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,
ffc06bac: 3a ff 00 49 addi r23,r31,73 <== NOT EXECUTED
ffc06bb0: 3b 40 00 01 li r26,1 <== NOT EXECUTED
while ( wait ) {
/*
* Process characters read from raw queue
*/
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
ffc06bb4: 81 3f 00 5c lwz r9,92(r31) <== NOT EXECUTED
ffc06bb8: 80 1f 00 60 lwz r0,96(r31) <== NOT EXECUTED
ffc06bbc: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED
ffc06bc0: 41 9e 00 ec beq- cr7,ffc06cac <rtems_termios_read+0x2bc><== NOT EXECUTED
ffc06bc4: 81 7d 00 00 lwz r11,0(r29) <== NOT EXECUTED
ffc06bc8: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED
ffc06bcc: 38 0b ff ff addi r0,r11,-1 <== NOT EXECUTED
ffc06bd0: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED
ffc06bd4: 40 9c 00 d8 bge- cr7,ffc06cac <rtems_termios_read+0x2bc><== NOT EXECUTED
(tty->ccount < (CBUFSIZE-1))) {
unsigned char c;
unsigned int newHead;
newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size;
ffc06bd8: 81 3f 00 5c lwz r9,92(r31) <== NOT EXECUTED
ffc06bdc: 81 7f 00 64 lwz r11,100(r31) <== NOT EXECUTED
ffc06be0: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED
c = tty->rawInBuf.theBuf[newHead];
ffc06be4: 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;
ffc06be8: 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)
ffc06bec: 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;
ffc06bf0: 7c 00 59 d6 mullw r0,r0,r11 <== NOT EXECUTED
ffc06bf4: 7c 00 48 50 subf r0,r0,r9 <== NOT EXECUTED
c = tty->rawInBuf.theBuf[newHead];
ffc06bf8: 7f c8 00 ae lbzx r30,r8,r0 <== NOT EXECUTED
tty->rawInBuf.Head = newHead;
ffc06bfc: 90 1f 00 5c stw r0,92(r31) <== NOT EXECUTED
if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)
ffc06c00: 81 7f 00 60 lwz r11,96(r31) <== NOT EXECUTED
ffc06c04: 81 1f 00 64 lwz r8,100(r31) <== NOT EXECUTED
ffc06c08: 81 3f 00 64 lwz r9,100(r31) <== NOT EXECUTED
ffc06c0c: 7d 68 5a 14 add r11,r8,r11 <== NOT EXECUTED
ffc06c10: 7c 00 58 50 subf r0,r0,r11 <== NOT EXECUTED
ffc06c14: 7d 60 4b 96 divwu r11,r0,r9 <== NOT EXECUTED
ffc06c18: 7d 2b 49 d6 mullw r9,r11,r9 <== NOT EXECUTED
ffc06c1c: 7c 09 00 50 subf r0,r9,r0 <== NOT EXECUTED
ffc06c20: 7f 80 50 40 cmplw cr7,r0,r10 <== NOT EXECUTED
ffc06c24: 40 9c 00 50 bge- cr7,ffc06c74 <rtems_termios_read+0x284><== NOT EXECUTED
% tty->rawInBuf.Size)
< tty->lowwater) {
tty->flow_ctrl &= ~FL_IREQXOF;
ffc06c28: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc06c2c: 54 00 00 3c rlwinm r0,r0,0,0,30 <== NOT EXECUTED
ffc06c30: 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))
ffc06c34: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc06c38: 70 00 02 02 andi. r0,r0,514 <== NOT EXECUTED
ffc06c3c: 2f 80 02 02 cmpwi cr7,r0,514 <== NOT EXECUTED
ffc06c40: 41 9e 00 b4 beq- cr7,ffc06cf4 <rtems_termios_read+0x304><== NOT EXECUTED
/* XON should be sent now... */
(*tty->device.write)(tty->minor,
(void *)&(tty->termios.c_cc[VSTART]),
1);
}
else if (tty->flow_ctrl & FL_MDRTS) {
ffc06c44: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc06c48: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED
ffc06c4c: 41 82 00 28 beq- ffc06c74 <rtems_termios_read+0x284> <== NOT EXECUTED
tty->flow_ctrl &= ~FL_IRTSOFF;
/* activate RTS line */
if (tty->device.startRemoteTx != NULL) {
ffc06c50: 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;
ffc06c54: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED
/* activate RTS line */
if (tty->device.startRemoteTx != NULL) {
ffc06c58: 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;
ffc06c5c: 55 29 07 b8 rlwinm r9,r9,0,30,28 <== NOT EXECUTED
ffc06c60: 91 3f 00 b8 stw r9,184(r31) <== NOT EXECUTED
/* activate RTS line */
if (tty->device.startRemoteTx != NULL) {
ffc06c64: 41 9e 00 10 beq- cr7,ffc06c74 <rtems_termios_read+0x284><== NOT EXECUTED
tty->device.startRemoteTx(tty->minor);
ffc06c68: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED
ffc06c6c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc06c70: 4e 80 04 21 bctrl <== NOT EXECUTED
}
}
}
/* continue processing new character */
if (tty->termios.c_lflag & ICANON) {
ffc06c74: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED
ffc06c78: 70 09 00 02 andi. r9,r0,2 <== NOT EXECUTED
ffc06c7c: 41 82 00 54 beq- ffc06cd0 <rtems_termios_read+0x2e0> <== NOT EXECUTED
if (siproc (c, tty))
ffc06c80: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc06c84: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc06c88: 4b ff fb 01 bl ffc06788 <siproc> <== NOT EXECUTED
ffc06c8c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc06c90: 41 9e 00 08 beq- cr7,ffc06c98 <rtems_termios_read+0x2a8><== NOT EXECUTED
wait = 0;
}
else {
siproc (c, tty);
if (tty->ccount >= tty->termios.c_cc[VMIN])
ffc06c94: 3b 40 00 00 li r26,0 <== NOT EXECUTED
while ( wait ) {
/*
* Process characters read from raw queue
*/
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
ffc06c98: 81 3f 00 5c lwz r9,92(r31) <== NOT EXECUTED
ffc06c9c: 80 1f 00 60 lwz r0,96(r31) <== NOT EXECUTED
else {
siproc (c, tty);
if (tty->ccount >= tty->termios.c_cc[VMIN])
wait = 0;
}
timeout = tty->rawInBufSemaphoreTimeout;
ffc06ca0: 83 df 00 70 lwz r30,112(r31) <== NOT EXECUTED
while ( wait ) {
/*
* Process characters read from raw queue
*/
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
ffc06ca4: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED
ffc06ca8: 40 9e ff 1c bne+ cr7,ffc06bc4 <rtems_termios_read+0x1d4><== NOT EXECUTED
}
/*
* Wait for characters
*/
if ( wait ) {
ffc06cac: 2f 9a 00 00 cmpwi cr7,r26,0 <== NOT EXECUTED
ffc06cb0: 41 9e fe 28 beq+ cr7,ffc06ad8 <rtems_termios_read+0xe8> <== NOT EXECUTED
sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore,
ffc06cb4: 80 7f 00 68 lwz r3,104(r31) <== NOT EXECUTED
ffc06cb8: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED
ffc06cbc: 80 9f 00 6c lwz r4,108(r31) <== NOT EXECUTED
ffc06cc0: 48 00 1a 51 bl ffc08710 <rtems_semaphore_obtain> <== NOT EXECUTED
tty->rawInBufSemaphoreOptions,
timeout);
if (sc != RTEMS_SUCCESSFUL)
ffc06cc4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc06cc8: 41 9e fe ec beq+ cr7,ffc06bb4 <rtems_termios_read+0x1c4><== NOT EXECUTED
ffc06ccc: 4b ff fe 0c b ffc06ad8 <rtems_termios_read+0xe8> <== NOT EXECUTED
if (tty->termios.c_lflag & ICANON) {
if (siproc (c, tty))
wait = 0;
}
else {
siproc (c, tty);
ffc06cd0: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc06cd4: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc06cd8: 4b ff fa b1 bl ffc06788 <siproc> <== NOT EXECUTED
if (tty->ccount >= tty->termios.c_cc[VMIN])
ffc06cdc: 88 1f 00 47 lbz r0,71(r31) <== NOT EXECUTED
ffc06ce0: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED
ffc06ce4: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED
ffc06ce8: 41 bc ff b0 blt- cr7,ffc06c98 <rtems_termios_read+0x2a8><== NOT EXECUTED
ffc06cec: 3b 40 00 00 li r26,0 <== NOT EXECUTED
ffc06cf0: 4b ff ff a8 b ffc06c98 <rtems_termios_read+0x2a8> <== 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))
ffc06cf4: 80 1f 00 94 lwz r0,148(r31) <== NOT EXECUTED
ffc06cf8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc06cfc: 41 9e 00 10 beq- cr7,ffc06d0c <rtems_termios_read+0x31c><== NOT EXECUTED
== (FL_MDXON | FL_ISNTXOF))
&& ((tty->rawOutBufState == rob_idle)
|| (tty->flow_ctrl & FL_OSTOP))) {
ffc06d00: 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))
ffc06d04: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED
ffc06d08: 41 a2 ff 3c beq- ffc06c44 <rtems_termios_read+0x254> <== 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,
ffc06d0c: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED
ffc06d10: 7e e4 bb 78 mr r4,r23 <== NOT EXECUTED
ffc06d14: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED
ffc06d18: 38 a0 00 01 li r5,1 <== NOT EXECUTED
ffc06d1c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc06d20: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc06d24: 4b ff ff 50 b ffc06c74 <rtems_termios_read+0x284> <== NOT EXECUTED
static rtems_status_code
fillBufferPoll (struct rtems_termios_tty *tty)
{
int n;
if (tty->termios.c_lflag & ICANON) {
ffc06d28: 81 3f 00 3c lwz r9,60(r31) <== NOT EXECUTED
ffc06d2c: 71 2b 00 02 andi. r11,r9,2 <== NOT EXECUTED
ffc06d30: 41 82 00 34 beq- ffc06d64 <rtems_termios_read+0x374> <== NOT EXECUTED
for (;;) {
n = (*tty->device.pollRead)(tty->minor);
ffc06d34: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED
ffc06d38: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc06d3c: 4e 80 04 21 bctrl <== NOT EXECUTED
if (n < 0) {
rtems_task_wake_after (1);
}
else {
if (siproc (n, tty))
ffc06d40: 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) {
ffc06d44: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED
rtems_task_wake_after (1);
}
else {
if (siproc (n, tty))
ffc06d48: 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) {
ffc06d4c: 41 80 00 c0 blt- ffc06e0c <rtems_termios_read+0x41c> <== NOT EXECUTED
rtems_task_wake_after (1);
}
else {
if (siproc (n, tty))
ffc06d50: 4b ff fa 39 bl ffc06788 <siproc> <== NOT EXECUTED
ffc06d54: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc06d58: 40 be fd 80 bne- cr7,ffc06ad8 <rtems_termios_read+0xe8> <== NOT EXECUTED
static rtems_status_code
fillBufferPoll (struct rtems_termios_tty *tty)
{
int n;
if (tty->termios.c_lflag & ICANON) {
ffc06d5c: 80 1f 00 a0 lwz r0,160(r31) <== NOT EXECUTED
ffc06d60: 4b ff ff d4 b ffc06d34 <rtems_termios_read+0x344> <== NOT EXECUTED
}
}
}
else {
rtems_interval then, now;
then = rtems_clock_get_ticks_since_boot();
ffc06d64: 48 00 11 95 bl ffc07ef8 <rtems_clock_get_ticks_since_boot><== NOT EXECUTED
ffc06d68: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED
for (;;) {
n = (*tty->device.pollRead)(tty->minor);
ffc06d6c: 80 1f 00 a0 lwz r0,160(r31) <== NOT EXECUTED
ffc06d70: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED
ffc06d74: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc06d78: 4e 80 04 21 bctrl <== NOT EXECUTED
if (n < 0) {
ffc06d7c: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED
ffc06d80: 41 80 00 38 blt- ffc06db8 <rtems_termios_read+0x3c8> <== NOT EXECUTED
}
}
rtems_task_wake_after (1);
}
else {
siproc (n, tty);
ffc06d84: 54 63 06 3e clrlwi r3,r3,24 <== NOT EXECUTED
ffc06d88: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc06d8c: 4b ff f9 fd bl ffc06788 <siproc> <== NOT EXECUTED
if (tty->ccount >= tty->termios.c_cc[VMIN])
ffc06d90: 88 1f 00 47 lbz r0,71(r31) <== NOT EXECUTED
ffc06d94: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED
ffc06d98: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED
ffc06d9c: 40 bc fd 3c bge- cr7,ffc06ad8 <rtems_termios_read+0xe8> <== NOT EXECUTED
break;
if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME])
ffc06da0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc06da4: 41 be ff c8 beq- cr7,ffc06d6c <rtems_termios_read+0x37c><== NOT EXECUTED
ffc06da8: 88 1f 00 46 lbz r0,70(r31) <== NOT EXECUTED
ffc06dac: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc06db0: 41 9e ff bc beq+ cr7,ffc06d6c <rtems_termios_read+0x37c><== NOT EXECUTED
ffc06db4: 4b ff ff b0 b ffc06d64 <rtems_termios_read+0x374> <== NOT EXECUTED
rtems_interval then, now;
then = rtems_clock_get_ticks_since_boot();
for (;;) {
n = (*tty->device.pollRead)(tty->minor);
if (n < 0) {
if (tty->termios.c_cc[VMIN]) {
ffc06db8: 88 1f 00 47 lbz r0,71(r31) <== NOT EXECUTED
ffc06dbc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc06dc0: 41 9e 00 28 beq- cr7,ffc06de8 <rtems_termios_read+0x3f8><== NOT EXECUTED
if (tty->termios.c_cc[VTIME] && tty->ccount) {
ffc06dc4: 88 1f 00 46 lbz r0,70(r31) <== NOT EXECUTED
ffc06dc8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc06dcc: 41 9e 00 10 beq- cr7,ffc06ddc <rtems_termios_read+0x3ec><== NOT EXECUTED
ffc06dd0: 80 1f 00 20 lwz r0,32(r31) <== NOT EXECUTED
ffc06dd4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc06dd8: 40 9e 00 1c bne- cr7,ffc06df4 <rtems_termios_read+0x404><== NOT EXECUTED
now = rtems_clock_get_ticks_since_boot();
if ((now - then) > tty->vtimeTicks) {
break;
}
}
rtems_task_wake_after (1);
ffc06ddc: 38 60 00 01 li r3,1 <== NOT EXECUTED
ffc06de0: 48 00 20 35 bl ffc08e14 <rtems_task_wake_after> <== NOT EXECUTED
ffc06de4: 4b ff ff 88 b ffc06d6c <rtems_termios_read+0x37c> <== NOT EXECUTED
break;
}
}
}
else {
if (!tty->termios.c_cc[VTIME])
ffc06de8: 88 1f 00 46 lbz r0,70(r31) <== NOT EXECUTED
ffc06dec: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc06df0: 41 be fc e8 beq- cr7,ffc06ad8 <rtems_termios_read+0xe8> <== NOT EXECUTED
break;
now = rtems_clock_get_ticks_since_boot();
ffc06df4: 48 00 11 05 bl ffc07ef8 <rtems_clock_get_ticks_since_boot><== NOT EXECUTED
if ((now - then) > tty->vtimeTicks) {
ffc06df8: 80 1f 00 54 lwz r0,84(r31) <== NOT EXECUTED
ffc06dfc: 7c 7e 18 50 subf r3,r30,r3 <== NOT EXECUTED
ffc06e00: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED
ffc06e04: 40 9d ff d8 ble+ cr7,ffc06ddc <rtems_termios_read+0x3ec><== NOT EXECUTED
ffc06e08: 4b ff fc d0 b ffc06ad8 <rtems_termios_read+0xe8> <== NOT EXECUTED
if (tty->termios.c_lflag & ICANON) {
for (;;) {
n = (*tty->device.pollRead)(tty->minor);
if (n < 0) {
rtems_task_wake_after (1);
ffc06e0c: 38 60 00 01 li r3,1 <== NOT EXECUTED
ffc06e10: 48 00 20 05 bl ffc08e14 <rtems_task_wake_after> <== NOT EXECUTED
static rtems_status_code
fillBufferPoll (struct rtems_termios_tty *tty)
{
int n;
if (tty->termios.c_lflag & ICANON) {
ffc06e14: 80 1f 00 a0 lwz r0,160(r31) <== NOT EXECUTED
ffc06e18: 4b ff ff 1c b ffc06d34 <rtems_termios_read+0x344> <== NOT EXECUTED
ffc05840 <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)
{
ffc05840: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED
ffc05844: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc05848: 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))
ffc0584c: 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)
{
ffc05850: 93 e1 00 14 stw r31,20(r1) <== NOT EXECUTED
ffc05854: 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))
ffc05858: 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)
{
ffc0585c: 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))
ffc05860: 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)
{
ffc05864: 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))
ffc05868: 41 9e 01 5c beq- cr7,ffc059c4 <rtems_termios_refill_transmitter+0x184><== NOT EXECUTED
tty->flow_ctrl |= FL_ISNTXOF;
rtems_interrupt_enable(level);
nToSend = 1;
}
else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF))
ffc0586c: 80 03 00 b8 lwz r0,184(r3) <== NOT EXECUTED
ffc05870: 54 00 07 be clrlwi r0,r0,30 <== NOT EXECUTED
ffc05874: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED
ffc05878: 41 9e 01 b4 beq- cr7,ffc05a2c <rtems_termios_refill_transmitter+0x1ec><== NOT EXECUTED
rtems_interrupt_enable(level);
nToSend = 1;
}
else {
if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {
ffc0587c: 81 23 00 80 lwz r9,128(r3) <== NOT EXECUTED
ffc05880: 80 03 00 84 lwz r0,132(r3) <== NOT EXECUTED
ffc05884: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED
ffc05888: 41 9e 00 d8 beq- cr7,ffc05960 <rtems_termios_refill_transmitter+0x120><== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0588c: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED
ffc05890: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED
ffc05894: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED
ffc05898: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED
return 0;
}
rtems_interrupt_disable(level);
len = tty->t_dqlen;
tty->t_dqlen = 0;
ffc0589c: 39 20 00 00 li r9,0 <== NOT EXECUTED
}
return 0;
}
rtems_interrupt_disable(level);
len = tty->t_dqlen;
ffc058a0: 83 c3 00 90 lwz r30,144(r3) <== NOT EXECUTED
tty->t_dqlen = 0;
ffc058a4: 91 23 00 90 stw r9,144(r3) <== NOT EXECUTED
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc058a8: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED
rtems_interrupt_enable(level);
newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;
ffc058ac: 80 03 00 84 lwz r0,132(r3) <== NOT EXECUTED
ffc058b0: 81 23 00 88 lwz r9,136(r3) <== NOT EXECUTED
ffc058b4: 7c 1e 02 14 add r0,r30,r0 <== NOT EXECUTED
tty->rawOutBuf.Tail = newTail;
if (tty->rawOutBufState == rob_wait) {
ffc058b8: 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;
ffc058bc: 7f c0 4b 96 divwu r30,r0,r9 <== NOT EXECUTED
tty->rawOutBuf.Tail = newTail;
if (tty->rawOutBufState == rob_wait) {
ffc058c0: 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;
ffc058c4: 7f de 49 d6 mullw r30,r30,r9 <== NOT EXECUTED
ffc058c8: 7f de 00 50 subf r30,r30,r0 <== NOT EXECUTED
tty->rawOutBuf.Tail = newTail;
ffc058cc: 93 c3 00 84 stw r30,132(r3) <== NOT EXECUTED
if (tty->rawOutBufState == rob_wait) {
ffc058d0: 41 9e 00 e8 beq- cr7,ffc059b8 <rtems_termios_refill_transmitter+0x178><== NOT EXECUTED
/*
* wake up any pending writer task
*/
rtems_semaphore_release (tty->rawOutBuf.Semaphore);
}
if (newTail == tty->rawOutBuf.Head) {
ffc058d4: 80 1f 00 80 lwz r0,128(r31) <== NOT EXECUTED
ffc058d8: 7f 80 f0 00 cmpw cr7,r0,r30 <== NOT EXECUTED
ffc058dc: 41 9e 00 a0 beq- cr7,ffc0597c <rtems_termios_refill_transmitter+0x13c><== NOT EXECUTED
if ( tty->tty_snd.sw_pfn != NULL) {
(*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);
}
}
/* check, whether output should stop due to received XOFF */
else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))
ffc058e0: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc058e4: 70 00 02 10 andi. r0,r0,528 <== NOT EXECUTED
ffc058e8: 2f 80 02 10 cmpwi cr7,r0,528 <== NOT EXECUTED
ffc058ec: 41 9e 01 a8 beq- cr7,ffc05a94 <rtems_termios_refill_transmitter+0x254><== NOT EXECUTED
}
else {
/*
* Buffer not empty, start tranmitter
*/
if (newTail > tty->rawOutBuf.Head)
ffc058f0: 80 1f 00 80 lwz r0,128(r31) <== NOT EXECUTED
ffc058f4: 7f 9e 00 40 cmplw cr7,r30,r0 <== NOT EXECUTED
ffc058f8: 41 9d 00 b4 bgt- cr7,ffc059ac <rtems_termios_refill_transmitter+0x16c><== NOT EXECUTED
nToSend = tty->rawOutBuf.Size - newTail;
else
nToSend = tty->rawOutBuf.Head - newTail;
ffc058fc: 83 bf 00 80 lwz r29,128(r31) <== NOT EXECUTED
ffc05900: 7f be e8 50 subf r29,r30,r29 <== 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)) {
ffc05904: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED
ffc05908: 7f a5 eb 78 mr r5,r29 <== NOT EXECUTED
ffc0590c: 70 09 06 00 andi. r9,r0,1536 <== NOT EXECUTED
ffc05910: 41 82 00 0c beq- ffc0591c <rtems_termios_refill_transmitter+0xdc><== NOT EXECUTED
ffc05914: 38 a0 00 01 li r5,1 <== NOT EXECUTED
ffc05918: 3b a0 00 01 li r29,1 <== NOT EXECUTED
nToSend = 1;
}
tty->rawOutBufState = rob_busy; /*apm*/
ffc0591c: 38 00 00 01 li r0,1 <== NOT EXECUTED
(*tty->device.write)(tty->minor,
ffc05920: 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*/
ffc05924: 90 1f 00 94 stw r0,148(r31) <== NOT EXECUTED
(*tty->device.write)(tty->minor,
ffc05928: 7c 84 f2 14 add r4,r4,r30 <== NOT EXECUTED
ffc0592c: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED
ffc05930: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED
ffc05934: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc05938: 4e 80 04 21 bctrl <== NOT EXECUTED
&tty->rawOutBuf.theBuf[newTail],
nToSend);
}
tty->rawOutBuf.Tail = newTail; /*apm*/
ffc0593c: 93 df 00 84 stw r30,132(r31) <== NOT EXECUTED
}
return nToSend;
}
ffc05940: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED
ffc05944: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc05948: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED
ffc0594c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc05950: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED
ffc05954: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED
ffc05958: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED
ffc0595c: 4e 80 00 20 blr <== NOT EXECUTED
else {
if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {
/*
* buffer was empty
*/
if (tty->rawOutBufState == rob_wait) {
ffc05960: 80 03 00 94 lwz r0,148(r3) <== NOT EXECUTED
ffc05964: 3b a0 00 00 li r29,0 <== NOT EXECUTED
ffc05968: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED
ffc0596c: 40 9e ff d4 bne+ cr7,ffc05940 <rtems_termios_refill_transmitter+0x100><== NOT EXECUTED
/*
* this should never happen...
*/
rtems_semaphore_release (tty->rawOutBuf.Semaphore);
ffc05970: 80 63 00 8c lwz r3,140(r3) <== NOT EXECUTED
ffc05974: 48 00 2e fd bl ffc08870 <rtems_semaphore_release> <== NOT EXECUTED
ffc05978: 4b ff ff c8 b ffc05940 <rtems_termios_refill_transmitter+0x100><== NOT EXECUTED
nToSend = 0;
/*
* check to see if snd wakeup callback was set
*/
if ( tty->tty_snd.sw_pfn != NULL) {
ffc0597c: 80 1f 00 d4 lwz r0,212(r31) <== NOT EXECUTED
}
if (newTail == tty->rawOutBuf.Head) {
/*
* Buffer has become empty
*/
tty->rawOutBufState = rob_idle;
ffc05980: 39 20 00 00 li r9,0 <== NOT EXECUTED
ffc05984: 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) {
ffc05988: 3b a0 00 00 li r29,0 <== NOT EXECUTED
ffc0598c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc05990: 41 be ff ac beq- cr7,ffc0593c <rtems_termios_refill_transmitter+0xfc><== NOT EXECUTED
(*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);
ffc05994: 38 7f 00 30 addi r3,r31,48 <== NOT EXECUTED
ffc05998: 80 9f 00 d8 lwz r4,216(r31) <== NOT EXECUTED
ffc0599c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc059a0: 4e 80 04 21 bctrl <== NOT EXECUTED
tty->rawOutBufState = rob_busy; /*apm*/
(*tty->device.write)(tty->minor,
&tty->rawOutBuf.theBuf[newTail],
nToSend);
}
tty->rawOutBuf.Tail = newTail; /*apm*/
ffc059a4: 93 df 00 84 stw r30,132(r31) <== NOT EXECUTED
ffc059a8: 4b ff ff 98 b ffc05940 <rtems_termios_refill_transmitter+0x100><== NOT EXECUTED
else {
/*
* Buffer not empty, start tranmitter
*/
if (newTail > tty->rawOutBuf.Head)
nToSend = tty->rawOutBuf.Size - newTail;
ffc059ac: 83 bf 00 88 lwz r29,136(r31) <== NOT EXECUTED
ffc059b0: 7f be e8 50 subf r29,r30,r29 <== NOT EXECUTED
ffc059b4: 4b ff ff 50 b ffc05904 <rtems_termios_refill_transmitter+0xc4><== NOT EXECUTED
tty->rawOutBuf.Tail = newTail;
if (tty->rawOutBufState == rob_wait) {
/*
* wake up any pending writer task
*/
rtems_semaphore_release (tty->rawOutBuf.Semaphore);
ffc059b8: 80 63 00 8c lwz r3,140(r3) <== NOT EXECUTED
ffc059bc: 48 00 2e b5 bl ffc08870 <rtems_semaphore_release> <== NOT EXECUTED
ffc059c0: 4b ff ff 14 b ffc058d4 <rtems_termios_refill_transmitter+0x94><== NOT EXECUTED
/* check for XOF/XON to send */
if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF))
== (FL_MDXOF | FL_IREQXOF)) {
/* XOFF should be sent now... */
(*tty->device.write)(tty->minor,
ffc059c4: 80 03 00 a4 lwz r0,164(r3) <== NOT EXECUTED
ffc059c8: 38 9f 00 4a addi r4,r31,74 <== NOT EXECUTED
ffc059cc: 38 a0 00 01 li r5,1 <== NOT EXECUTED
ffc059d0: 80 63 00 10 lwz r3,16(r3) <== NOT EXECUTED
ffc059d4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc059d8: 4e 80 04 21 bctrl <== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc059dc: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED
ffc059e0: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED
ffc059e4: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED
ffc059e8: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED
(void *)&(tty->termios.c_cc[VSTOP]), 1);
rtems_interrupt_disable(level);
tty->t_dqlen--;
ffc059ec: 81 3f 00 90 lwz r9,144(r31) <== NOT EXECUTED
tty->flow_ctrl |= FL_ISNTXOF;
ffc059f0: 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--;
ffc059f4: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED
tty->flow_ctrl |= FL_ISNTXOF;
ffc059f8: 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--;
ffc059fc: 91 3f 00 90 stw r9,144(r31) <== NOT EXECUTED
tty->flow_ctrl |= FL_ISNTXOF;
ffc05a00: 91 7f 00 b8 stw r11,184(r31) <== NOT EXECUTED
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc05a04: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED
nToSend);
}
tty->rawOutBuf.Tail = newTail; /*apm*/
}
return nToSend;
}
ffc05a08: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED
ffc05a0c: 3b a0 00 01 li r29,1 <== NOT EXECUTED
ffc05a10: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc05a14: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED
ffc05a18: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc05a1c: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED
ffc05a20: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED
ffc05a24: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED
ffc05a28: 4e 80 00 20 blr <== 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,
ffc05a2c: 80 03 00 a4 lwz r0,164(r3) <== NOT EXECUTED
ffc05a30: 38 9f 00 49 addi r4,r31,73 <== NOT EXECUTED
ffc05a34: 38 a0 00 01 li r5,1 <== NOT EXECUTED
ffc05a38: 80 63 00 10 lwz r3,16(r3) <== NOT EXECUTED
ffc05a3c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc05a40: 4e 80 04 21 bctrl <== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc05a44: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED
ffc05a48: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED
ffc05a4c: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED
ffc05a50: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED
(void *)&(tty->termios.c_cc[VSTART]), 1);
rtems_interrupt_disable(level);
tty->t_dqlen--;
ffc05a54: 81 3f 00 90 lwz r9,144(r31) <== NOT EXECUTED
tty->flow_ctrl &= ~FL_ISNTXOF;
ffc05a58: 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--;
ffc05a5c: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED
tty->flow_ctrl &= ~FL_ISNTXOF;
ffc05a60: 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--;
ffc05a64: 91 3f 00 90 stw r9,144(r31) <== NOT EXECUTED
tty->flow_ctrl &= ~FL_ISNTXOF;
ffc05a68: 91 7f 00 b8 stw r11,184(r31) <== NOT EXECUTED
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc05a6c: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED
nToSend);
}
tty->rawOutBuf.Tail = newTail; /*apm*/
}
return nToSend;
}
ffc05a70: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED
ffc05a74: 3b a0 00 01 li r29,1 <== NOT EXECUTED
ffc05a78: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc05a7c: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED
ffc05a80: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc05a84: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED
ffc05a88: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED
ffc05a8c: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED
ffc05a90: 4e 80 00 20 blr <== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc05a94: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED
ffc05a98: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED
ffc05a9c: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED
ffc05aa0: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED
else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))
== (FL_MDXON | FL_ORCVXOF)) {
/* Buffer not empty, but output stops due to XOFF */
/* set flag, that output has been stopped */
rtems_interrupt_disable(level);
tty->flow_ctrl |= FL_OSTOP;
ffc05aa4: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED
ffc05aa8: 61 29 00 20 ori r9,r9,32 <== NOT EXECUTED
ffc05aac: 91 3f 00 b8 stw r9,184(r31) <== NOT EXECUTED
tty->rawOutBufState = rob_busy; /*apm*/
ffc05ab0: 39 20 00 01 li r9,1 <== NOT EXECUTED
ffc05ab4: 91 3f 00 94 stw r9,148(r31) <== NOT EXECUTED
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc05ab8: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED
ffc05abc: 3b a0 00 00 li r29,0 <== NOT EXECUTED
tty->rawOutBufState = rob_busy; /*apm*/
(*tty->device.write)(tty->minor,
&tty->rawOutBuf.theBuf[newTail],
nToSend);
}
tty->rawOutBuf.Tail = newTail; /*apm*/
ffc05ac0: 93 df 00 84 stw r30,132(r31) <== NOT EXECUTED
ffc05ac4: 4b ff fe 7c b ffc05940 <rtems_termios_refill_transmitter+0x100><== NOT EXECUTED
ffc079b0 <rtems_termios_rxdaemon>:
/*
* this task actually processes any receive events
*/
static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument)
{
ffc079b0: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED
ffc079b4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc079b8: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED
ffc079bc: 93 a1 00 1c stw r29,28(r1) <== NOT EXECUTED
ffc079c0: 3b a1 00 08 addi r29,r1,8 <== NOT EXECUTED
ffc079c4: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED
ffc079c8: 3b c1 00 0c addi r30,r1,12 <== NOT EXECUTED
ffc079cc: 93 e1 00 24 stw r31,36(r1) <== NOT EXECUTED
ffc079d0: 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 |
ffc079d4: 7f c6 f3 78 mr r6,r30 <== NOT EXECUTED
ffc079d8: 38 80 00 02 li r4,2 <== NOT EXECUTED
ffc079dc: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc079e0: 38 60 00 03 li r3,3 <== NOT EXECUTED
ffc079e4: 48 00 05 a9 bl ffc07f8c <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) {
ffc079e8: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc079ec: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED
ffc079f0: 40 82 00 54 bne- ffc07a44 <rtems_termios_rxdaemon+0x94> <== NOT EXECUTED
}
else {
/*
* do something
*/
c = tty->device.pollRead(tty->minor);
ffc079f4: 80 1f 00 a0 lwz r0,160(r31) <== NOT EXECUTED
ffc079f8: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED
ffc079fc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc07a00: 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 (
ffc07a04: 7f a4 eb 78 mr r4,r29 <== NOT EXECUTED
else {
/*
* do something
*/
c = tty->device.pollRead(tty->minor);
if (c != EOF) {
ffc07a08: 2f 83 ff ff cmpwi cr7,r3,-1 <== NOT EXECUTED
}
else {
/*
* do something
*/
c = tty->device.pollRead(tty->minor);
ffc07a0c: 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 (
ffc07a10: 38 a0 00 01 li r5,1 <== NOT EXECUTED
ffc07a14: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
else {
/*
* do something
*/
c = tty->device.pollRead(tty->minor);
if (c != EOF) {
ffc07a18: 41 be ff bc beq- cr7,ffc079d4 <rtems_termios_rxdaemon+0x24><== NOT EXECUTED
/*
* pollRead did call enqueue on its own
*/
c_buf = c;
ffc07a1c: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED
rtems_termios_enqueue_raw_characters (
ffc07a20: 4b ff e1 2d bl ffc05b4c <rtems_termios_enqueue_raw_characters><== NOT EXECUTED
char c_buf;
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_RX_PROC_EVENT |
ffc07a24: 7f c6 f3 78 mr r6,r30 <== NOT EXECUTED
ffc07a28: 38 80 00 02 li r4,2 <== NOT EXECUTED
ffc07a2c: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc07a30: 38 60 00 03 li r3,3 <== NOT EXECUTED
ffc07a34: 48 00 05 59 bl ffc07f8c <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) {
ffc07a38: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc07a3c: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED
ffc07a40: 41 82 ff b4 beq+ ffc079f4 <rtems_termios_rxdaemon+0x44> <== NOT EXECUTED
tty->rxTaskId = 0;
ffc07a44: 38 00 00 00 li r0,0 <== NOT EXECUTED
ffc07a48: 90 1f 00 c4 stw r0,196(r31) <== NOT EXECUTED
rtems_task_delete(RTEMS_SELF);
ffc07a4c: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc07a50: 48 00 10 d1 bl ffc08b20 <rtems_task_delete> <== NOT EXECUTED
ffc07a54: 4b ff ff 80 b ffc079d4 <rtems_termios_rxdaemon+0x24> <== NOT EXECUTED
ffc05818 <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)
{
ffc05818: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED
ffc0581c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
/*
* send event to rx daemon task
*/
rtems_event_send(tty->rxTaskId,TERMIOS_RX_PROC_EVENT);
ffc05820: 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)
{
ffc05824: 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);
ffc05828: 80 63 00 c4 lwz r3,196(r3) <== NOT EXECUTED
ffc0582c: 48 00 29 61 bl ffc0818c <rtems_event_send> <== NOT EXECUTED
}
ffc05830: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED
ffc05834: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED
ffc05838: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0583c: 4e 80 00 20 blr <== NOT EXECUTED
ffc07904 <rtems_termios_txdaemon>:
/*
* this task actually processes any transmit events
*/
static rtems_task rtems_termios_txdaemon(rtems_task_argument argument)
{
ffc07904: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED
ffc07908: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc0790c: 93 a1 00 1c stw r29,28(r1) <== NOT EXECUTED
ffc07910: 3f a0 00 00 lis r29,0 <== NOT EXECUTED
ffc07914: 3b bd 27 f0 addi r29,r29,10224 <== NOT EXECUTED
ffc07918: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED
ffc0791c: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED
ffc07920: 3b c1 00 08 addi r30,r1,8 <== NOT EXECUTED
ffc07924: 93 e1 00 24 stw r31,36(r1) <== NOT EXECUTED
ffc07928: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_TX_START_EVENT |
ffc0792c: 38 80 00 02 li r4,2 <== NOT EXECUTED
ffc07930: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc07934: 7f c6 f3 78 mr r6,r30 <== NOT EXECUTED
ffc07938: 38 60 00 03 li r3,3 <== NOT EXECUTED
ffc0793c: 48 00 06 51 bl ffc07f8c <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) {
ffc07940: 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);
ffc07944: 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) {
ffc07948: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED
ffc0794c: 40 82 00 50 bne- ffc0799c <rtems_termios_txdaemon+0x98> <== NOT EXECUTED
}
else {
/*
* call any line discipline start function
*/
if (rtems_termios_linesw[tty->t_line].l_start != NULL) {
ffc07950: 81 3f 00 cc lwz r9,204(r31) <== NOT EXECUTED
ffc07954: 55 29 28 34 rlwinm r9,r9,5,0,26 <== NOT EXECUTED
ffc07958: 7d 3d 4a 14 add r9,r29,r9 <== NOT EXECUTED
ffc0795c: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED
ffc07960: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc07964: 41 9e 00 0c beq- cr7,ffc07970 <rtems_termios_txdaemon+0x6c><== NOT EXECUTED
rtems_termios_linesw[tty->t_line].l_start(tty);
ffc07968: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc0796c: 4e 80 04 21 bctrl <== NOT EXECUTED
}
/*
* try to push further characters to device
*/
rtems_termios_refill_transmitter(tty);
ffc07970: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc07974: 4b ff de cd bl ffc05840 <rtems_termios_refill_transmitter><== NOT EXECUTED
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_TX_START_EVENT |
ffc07978: 38 80 00 02 li r4,2 <== NOT EXECUTED
ffc0797c: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc07980: 7f c6 f3 78 mr r6,r30 <== NOT EXECUTED
ffc07984: 38 60 00 03 li r3,3 <== NOT EXECUTED
ffc07988: 48 00 06 05 bl ffc07f8c <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) {
ffc0798c: 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);
ffc07990: 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) {
ffc07994: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED
ffc07998: 41 82 ff b8 beq+ ffc07950 <rtems_termios_txdaemon+0x4c> <== NOT EXECUTED
tty->txTaskId = 0;
ffc0799c: 38 00 00 00 li r0,0 <== NOT EXECUTED
ffc079a0: 90 1f 00 c8 stw r0,200(r31) <== NOT EXECUTED
rtems_task_delete(RTEMS_SELF);
ffc079a4: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc079a8: 48 00 11 79 bl ffc08b20 <rtems_task_delete> <== NOT EXECUTED
ffc079ac: 4b ff ff 80 b ffc0792c <rtems_termios_txdaemon+0x28> <== NOT EXECUTED
ffc0680c <rtems_termios_write>:
rtems_termios_puts (&c, 1, tty);
}
rtems_status_code
rtems_termios_write (void *arg)
{
ffc0680c: 94 21 ff e0 stwu r1,-32(r1)
ffc06810: 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);
ffc06814: 38 80 00 00 li r4,0
rtems_termios_puts (&c, 1, tty);
}
rtems_status_code
rtems_termios_write (void *arg)
{
ffc06818: 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);
ffc0681c: 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;
ffc06820: 81 23 00 00 lwz r9,0(r3)
rtems_termios_puts (&c, 1, tty);
}
rtems_status_code
rtems_termios_write (void *arg)
{
ffc06824: 93 e1 00 1c stw r31,28(r1)
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
ffc06828: 83 e9 00 38 lwz r31,56(r9)
rtems_termios_puts (&c, 1, tty);
}
rtems_status_code
rtems_termios_write (void *arg)
{
ffc0682c: 93 c1 00 18 stw r30,24(r1)
ffc06830: 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);
ffc06834: 80 7f 00 18 lwz r3,24(r31)
rtems_termios_puts (&c, 1, tty);
}
rtems_status_code
rtems_termios_write (void *arg)
{
ffc06838: 93 a1 00 14 stw r29,20(r1)
ffc0683c: 93 41 00 08 stw r26,8(r1)
ffc06840: 93 61 00 0c stw r27,12(r1)
ffc06844: 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);
ffc06848: 48 00 1e c9 bl ffc08710 <rtems_semaphore_obtain>
if (sc != RTEMS_SUCCESSFUL)
ffc0684c: 7c 7d 1b 79 mr. r29,r3
ffc06850: 40 82 00 40 bne- ffc06890 <rtems_termios_write+0x84>
return sc;
if (rtems_termios_linesw[tty->t_line].l_write != NULL) {
ffc06854: 80 1f 00 cc lwz r0,204(r31)
ffc06858: 3d 20 00 00 lis r9,0
ffc0685c: 39 29 27 f0 addi r9,r9,10224
ffc06860: 54 00 28 34 rlwinm r0,r0,5,0,26
ffc06864: 7d 29 02 14 add r9,r9,r0
ffc06868: 80 09 00 0c lwz r0,12(r9)
ffc0686c: 2f 80 00 00 cmpwi cr7,r0,0
ffc06870: 41 9e 00 4c beq- cr7,ffc068bc <rtems_termios_write+0xb0>
sc = rtems_termios_linesw[tty->t_line].l_write(tty,args);
ffc06874: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED
ffc06878: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc0687c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc06880: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc06884: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED
rtems_semaphore_release (tty->osem);
ffc06888: 80 7f 00 18 lwz r3,24(r31) <== NOT EXECUTED
ffc0688c: 48 00 1f e5 bl ffc08870 <rtems_semaphore_release> <== NOT EXECUTED
rtems_termios_puts (args->buffer, args->count, tty);
args->bytes_moved = args->count;
}
rtems_semaphore_release (tty->osem);
return sc;
}
ffc06890: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED
ffc06894: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc06898: 83 41 00 08 lwz r26,8(r1) <== NOT EXECUTED
ffc0689c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc068a0: 83 61 00 0c lwz r27,12(r1) <== NOT EXECUTED
ffc068a4: 83 81 00 10 lwz r28,16(r1) <== NOT EXECUTED
ffc068a8: 83 a1 00 14 lwz r29,20(r1) <== NOT EXECUTED
ffc068ac: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED
ffc068b0: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED
ffc068b4: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED
ffc068b8: 4e 80 00 20 blr <== NOT EXECUTED
if (rtems_termios_linesw[tty->t_line].l_write != NULL) {
sc = rtems_termios_linesw[tty->t_line].l_write(tty,args);
rtems_semaphore_release (tty->osem);
return sc;
}
if (tty->termios.c_oflag & OPOST) {
ffc068bc: 80 1f 00 34 lwz r0,52(r31)
ffc068c0: 70 09 00 01 andi. r9,r0,1
ffc068c4: 41 82 00 70 beq- ffc06934 <rtems_termios_write+0x128>
uint32_t count = args->count;
ffc068c8: 83 7e 00 14 lwz r27,20(r30)
char *buffer = args->buffer;
while (count--)
ffc068cc: 3b 80 00 00 li r28,0
rtems_semaphore_release (tty->osem);
return sc;
}
if (tty->termios.c_oflag & OPOST) {
uint32_t count = args->count;
char *buffer = args->buffer;
ffc068d0: 83 5e 00 10 lwz r26,16(r30)
while (count--)
ffc068d4: 38 00 00 00 li r0,0
ffc068d8: 2f 9b 00 00 cmpwi cr7,r27,0
ffc068dc: 41 9e 00 20 beq- cr7,ffc068fc <rtems_termios_write+0xf0>
oproc (*buffer++, tty);
ffc068e0: 7c 7a e0 ae lbzx r3,r26,r28
ffc068e4: 7f e4 fb 78 mr r4,r31
ffc068e8: 3b 9c 00 01 addi r28,r28,1
ffc068ec: 4b ff f7 d9 bl ffc060c4 <oproc>
return sc;
}
if (tty->termios.c_oflag & OPOST) {
uint32_t count = args->count;
char *buffer = args->buffer;
while (count--)
ffc068f0: 7f 9b e0 00 cmpw cr7,r27,r28
ffc068f4: 40 9e ff ec bne+ cr7,ffc068e0 <rtems_termios_write+0xd4>
oproc (*buffer++, tty);
args->bytes_moved = args->count;
}
else {
rtems_termios_puts (args->buffer, args->count, tty);
args->bytes_moved = args->count;
ffc068f8: 80 1e 00 14 lwz r0,20(r30)
ffc068fc: 90 1e 00 1c stw r0,28(r30)
}
rtems_semaphore_release (tty->osem);
ffc06900: 80 7f 00 18 lwz r3,24(r31)
ffc06904: 48 00 1f 6d bl ffc08870 <rtems_semaphore_release>
return sc;
}
ffc06908: 80 01 00 24 lwz r0,36(r1)
ffc0690c: 7f a3 eb 78 mr r3,r29
ffc06910: 83 41 00 08 lwz r26,8(r1)
ffc06914: 7c 08 03 a6 mtlr r0
ffc06918: 83 61 00 0c lwz r27,12(r1)
ffc0691c: 83 81 00 10 lwz r28,16(r1)
ffc06920: 83 a1 00 14 lwz r29,20(r1)
ffc06924: 83 c1 00 18 lwz r30,24(r1)
ffc06928: 83 e1 00 1c lwz r31,28(r1)
ffc0692c: 38 21 00 20 addi r1,r1,32
ffc06930: 4e 80 00 20 blr
while (count--)
oproc (*buffer++, tty);
args->bytes_moved = args->count;
}
else {
rtems_termios_puts (args->buffer, args->count, tty);
ffc06934: 80 7e 00 10 lwz r3,16(r30) <== NOT EXECUTED
ffc06938: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED
ffc0693c: 80 9e 00 14 lwz r4,20(r30) <== NOT EXECUTED
ffc06940: 4b ff f5 f9 bl ffc05f38 <rtems_termios_puts> <== NOT EXECUTED
ffc06944: 4b ff ff b4 b ffc068f8 <rtems_termios_write+0xec> <== NOT EXECUTED
ffc0ab94 <rtems_verror>:
static int rtems_verror(
rtems_error_code_t error_flag,
const char *printf_format,
va_list arglist
)
{
ffc0ab94: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED
ffc0ab98: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc0ab9c: 7d 80 00 26 mfcr r12 <== NOT EXECUTED
ffc0aba0: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED
int local_errno = 0;
int chars_written = 0;
rtems_status_code status;
if (error_flag & RTEMS_ERROR_PANIC)
ffc0aba4: 54 60 1f fe rlwinm r0,r3,3,31,31 <== NOT EXECUTED
ffc0aba8: 2e 00 00 00 cmpwi cr4,r0,0 <== NOT EXECUTED
static int rtems_verror(
rtems_error_code_t error_flag,
const char *printf_format,
va_list arglist
)
{
ffc0abac: 93 41 00 10 stw r26,16(r1) <== NOT EXECUTED
ffc0abb0: 7c 9a 23 78 mr r26,r4 <== NOT EXECUTED
ffc0abb4: 93 a1 00 1c stw r29,28(r1) <== NOT EXECUTED
ffc0abb8: 7c bd 2b 78 mr r29,r5 <== NOT EXECUTED
ffc0abbc: 93 e1 00 24 stw r31,36(r1) <== NOT EXECUTED
ffc0abc0: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED
ffc0abc4: 93 61 00 14 stw r27,20(r1) <== NOT EXECUTED
ffc0abc8: 93 81 00 18 stw r28,24(r1) <== NOT EXECUTED
ffc0abcc: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED
ffc0abd0: 91 81 00 0c stw r12,12(r1) <== NOT EXECUTED
int local_errno = 0;
int chars_written = 0;
rtems_status_code status;
if (error_flag & RTEMS_ERROR_PANIC)
ffc0abd4: 41 92 00 38 beq- cr4,ffc0ac0c <rtems_verror+0x78> <== NOT EXECUTED
{
if (rtems_panic_in_progress++)
ffc0abd8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc0abdc: 81 69 27 8c lwz r11,10124(r9) <== NOT EXECUTED
ffc0abe0: 2f 8b 00 00 cmpwi cr7,r11,0 <== NOT EXECUTED
ffc0abe4: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED
ffc0abe8: 90 09 27 8c stw r0,10124(r9) <== NOT EXECUTED
ffc0abec: 41 9e 00 18 beq- cr7,ffc0ac04 <rtems_verror+0x70> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
ffc0abf0: 3d 60 00 00 lis r11,0 <== NOT EXECUTED
ffc0abf4: 81 4b 27 b4 lwz r10,10164(r11) <== NOT EXECUTED
ffc0abf8: 38 0a 00 01 addi r0,r10,1 <== NOT EXECUTED
ffc0abfc: 90 0b 27 b4 stw r0,10164(r11) <== NOT EXECUTED
RTEMS_COMPILER_MEMORY_BARRIER();
ffc0ac00: 80 09 27 8c lwz r0,10124(r9) <== NOT EXECUTED
_Thread_Disable_dispatch(); /* disable task switches */
/* don't aggravate things */
if (rtems_panic_in_progress > 2)
ffc0ac04: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED
ffc0ac08: 41 9d 00 d8 bgt- cr7,ffc0ace0 <rtems_verror+0x14c> <== NOT EXECUTED
return 0;
}
(void) fflush(stdout); /* in case stdout/stderr same */
ffc0ac0c: 3f c0 00 00 lis r30,0 <== NOT EXECUTED
ffc0ac10: 81 3e 27 24 lwz r9,10020(r30) <== NOT EXECUTED
status = error_flag & ~RTEMS_ERROR_MASK;
ffc0ac14: 57 fb 01 00 rlwinm r27,r31,0,4,0 <== NOT EXECUTED
if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */
ffc0ac18: 3b 80 00 00 li r28,0 <== NOT EXECUTED
/* don't aggravate things */
if (rtems_panic_in_progress > 2)
return 0;
}
(void) fflush(stdout); /* in case stdout/stderr same */
ffc0ac1c: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED
ffc0ac20: 48 00 ff f1 bl ffc1ac10 <fflush> <== NOT EXECUTED
status = error_flag & ~RTEMS_ERROR_MASK;
if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */
ffc0ac24: 77 e0 40 00 andis. r0,r31,16384 <== NOT EXECUTED
ffc0ac28: 40 82 01 38 bne- ffc0ad60 <rtems_verror+0x1cc> <== 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);
ffc0ac2c: 81 3e 27 24 lwz r9,10020(r30) <== NOT EXECUTED
ffc0ac30: 7f a5 eb 78 mr r5,r29 <== NOT EXECUTED
ffc0ac34: 7f 44 d3 78 mr r4,r26 <== NOT EXECUTED
ffc0ac38: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED
ffc0ac3c: 48 01 63 9d bl ffc20fd8 <vfprintf> <== NOT EXECUTED
if (status)
ffc0ac40: 2f 9b 00 00 cmpwi cr7,r27,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);
ffc0ac44: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED
if (status)
ffc0ac48: 40 9e 00 e4 bne- cr7,ffc0ad2c <rtems_verror+0x198> <== NOT EXECUTED
chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status));
if (local_errno)
ffc0ac4c: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED
ffc0ac50: 41 9e 00 3c beq- cr7,ffc0ac8c <rtems_verror+0xf8> <== NOT EXECUTED
{
if ((local_errno > 0) && *strerror(local_errno))
ffc0ac54: 40 9d 00 18 ble- cr7,ffc0ac6c <rtems_verror+0xd8> <== NOT EXECUTED
ffc0ac58: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED
ffc0ac5c: 48 01 13 89 bl ffc1bfe4 <strerror> <== NOT EXECUTED
ffc0ac60: 88 03 00 00 lbz r0,0(r3) <== NOT EXECUTED
ffc0ac64: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc0ac68: 40 9e 01 04 bne- cr7,ffc0ad6c <rtems_verror+0x1d8> <== NOT EXECUTED
chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
else
chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
ffc0ac6c: 81 3e 27 24 lwz r9,10020(r30) <== NOT EXECUTED
ffc0ac70: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED
ffc0ac74: 38 84 a6 c8 addi r4,r4,-22840 <== NOT EXECUTED
ffc0ac78: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED
ffc0ac7c: 7f 85 e3 78 mr r5,r28 <== NOT EXECUTED
ffc0ac80: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc0ac84: 48 01 03 d1 bl ffc1b054 <fprintf> <== NOT EXECUTED
ffc0ac88: 7f bd 1a 14 add r29,r29,r3 <== NOT EXECUTED
}
chars_written += fprintf(stderr, "\n");
ffc0ac8c: 81 3e 27 24 lwz r9,10020(r30) <== NOT EXECUTED
ffc0ac90: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED
ffc0ac94: 38 84 a0 3c addi r4,r4,-24516 <== NOT EXECUTED
ffc0ac98: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED
ffc0ac9c: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc0aca0: 48 01 03 b5 bl ffc1b054 <fprintf> <== NOT EXECUTED
(void) fflush(stderr);
ffc0aca4: 81 3e 27 24 lwz r9,10020(r30) <== 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");
ffc0aca8: 7c 7b 1b 78 mr r27,r3 <== NOT EXECUTED
(void) fflush(stderr);
ffc0acac: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED
ffc0acb0: 48 00 ff 61 bl ffc1ac10 <fflush> <== NOT EXECUTED
if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT))
ffc0acb4: 77 e0 30 00 andis. r0,r31,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");
ffc0acb8: 7c 7b ea 14 add r3,r27,r29 <== NOT EXECUTED
(void) fflush(stderr);
if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT))
ffc0acbc: 41 82 00 28 beq- ffc0ace4 <rtems_verror+0x150> <== NOT EXECUTED
{
if (error_flag & RTEMS_ERROR_PANIC)
ffc0acc0: 41 92 00 54 beq- cr4,ffc0ad14 <rtems_verror+0x180> <== NOT EXECUTED
{
rtems_error(0, "fatal error, exiting");
ffc0acc4: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED
ffc0acc8: 38 84 a6 dc addi r4,r4,-22820 <== NOT EXECUTED
ffc0accc: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc0acd0: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc0acd4: 48 00 01 55 bl ffc0ae28 <rtems_error> <== NOT EXECUTED
_exit(local_errno);
ffc0acd8: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED
ffc0acdc: 48 00 10 45 bl ffc0bd20 <_exit> <== NOT EXECUTED
}
else
{
rtems_error(0, "fatal error, aborting");
abort();
ffc0ace0: 38 60 00 00 li r3,0 <== NOT EXECUTED
}
}
return chars_written;
}
ffc0ace4: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED
ffc0ace8: 81 81 00 0c lwz r12,12(r1) <== NOT EXECUTED
ffc0acec: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0acf0: 83 41 00 10 lwz r26,16(r1) <== NOT EXECUTED
ffc0acf4: 83 61 00 14 lwz r27,20(r1) <== NOT EXECUTED
ffc0acf8: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED
ffc0acfc: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED
ffc0ad00: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED
ffc0ad04: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED
ffc0ad08: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED
ffc0ad0c: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED
ffc0ad10: 4e 80 00 20 blr <== NOT EXECUTED
rtems_error(0, "fatal error, exiting");
_exit(local_errno);
}
else
{
rtems_error(0, "fatal error, aborting");
ffc0ad14: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED
ffc0ad18: 38 84 a6 f4 addi r4,r4,-22796 <== NOT EXECUTED
ffc0ad1c: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc0ad20: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc0ad24: 48 00 01 05 bl ffc0ae28 <rtems_error> <== NOT EXECUTED
abort();
ffc0ad28: 48 00 fa 49 bl ffc1a770 <abort> <== NOT EXECUTED
#endif
chars_written += vfprintf(stderr, printf_format, arglist);
if (status)
chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status));
ffc0ad2c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc0ad30: 81 29 27 24 lwz r9,10020(r9) <== NOT EXECUTED
ffc0ad34: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED
ffc0ad38: 83 69 00 0c lwz r27,12(r9) <== NOT EXECUTED
ffc0ad3c: 4b ff fe 2d bl ffc0ab68 <rtems_status_text> <== NOT EXECUTED
ffc0ad40: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED
ffc0ad44: 7c 65 1b 78 mr r5,r3 <== NOT EXECUTED
ffc0ad48: 38 84 a6 a8 addi r4,r4,-22872 <== NOT EXECUTED
ffc0ad4c: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED
ffc0ad50: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc0ad54: 48 01 03 01 bl ffc1b054 <fprintf> <== NOT EXECUTED
ffc0ad58: 7f bd 1a 14 add r29,r29,r3 <== NOT EXECUTED
ffc0ad5c: 4b ff fe f0 b ffc0ac4c <rtems_verror+0xb8> <== NOT EXECUTED
(void) fflush(stdout); /* in case stdout/stderr same */
status = error_flag & ~RTEMS_ERROR_MASK;
if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */
local_errno = errno;
ffc0ad60: 48 00 fa 2d bl ffc1a78c <__errno> <== NOT EXECUTED
ffc0ad64: 83 83 00 00 lwz r28,0(r3) <== NOT EXECUTED
ffc0ad68: 4b ff fe c4 b ffc0ac2c <rtems_verror+0x98> <== NOT EXECUTED
chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status));
if (local_errno)
{
if ((local_errno > 0) && *strerror(local_errno))
chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
ffc0ad6c: 81 3e 27 24 lwz r9,10020(r30) <== NOT EXECUTED
ffc0ad70: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED
ffc0ad74: 83 69 00 0c lwz r27,12(r9) <== NOT EXECUTED
ffc0ad78: 48 01 12 6d bl ffc1bfe4 <strerror> <== NOT EXECUTED
ffc0ad7c: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED
ffc0ad80: 7c 65 1b 78 mr r5,r3 <== NOT EXECUTED
ffc0ad84: 38 84 a6 b8 addi r4,r4,-22856 <== NOT EXECUTED
ffc0ad88: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED
ffc0ad8c: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc0ad90: 48 01 02 c5 bl ffc1b054 <fprintf> <== NOT EXECUTED
ffc0ad94: 7f bd 1a 14 add r29,r29,r3 <== NOT EXECUTED
if (status)
chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status));
if (local_errno)
{
if ((local_errno > 0) && *strerror(local_errno))
ffc0ad98: 4b ff fe f4 b ffc0ac8c <rtems_verror+0xf8> <== NOT EXECUTED
ffc2ec8c <scanInt>:
/*
* Extract an integer value from the database
*/
static int
scanInt(FILE *fp, int *val)
{
ffc2ec8c: 94 21 ff d8 stwu r1,-40(r1)
ffc2ec90: 7c 08 02 a6 mflr r0
ffc2ec94: 93 21 00 0c stw r25,12(r1)
unsigned int limit = INT_MAX;
int sign = 0;
int d;
for (;;) {
c = getc(fp);
ffc2ec98: 3f 20 00 00 lis r25,0
ffc2ec9c: 3b 39 35 28 addi r25,r25,13608
/*
* Extract an integer value from the database
*/
static int
scanInt(FILE *fp, int *val)
{
ffc2eca0: 93 41 00 10 stw r26,16(r1)
sign = 1;
}
if (!isdigit(c))
return 0;
d = c - '0';
if ((i > (limit / 10))
ffc2eca4: 3f 40 cc cc lis r26,-13108
ffc2eca8: 63 5a cc cd ori r26,r26,52429
/*
* Extract an integer value from the database
*/
static int
scanInt(FILE *fp, int *val)
{
ffc2ecac: 93 61 00 14 stw r27,20(r1)
limit++;
continue;
}
sign = 1;
}
if (!isdigit(c))
ffc2ecb0: 3f 60 00 00 lis r27,0
ffc2ecb4: 3b 7b 35 1c addi r27,r27,13596
/*
* Extract an integer value from the database
*/
static int
scanInt(FILE *fp, int *val)
{
ffc2ecb8: 93 81 00 18 stw r28,24(r1)
ffc2ecbc: 3f 80 7f ff lis r28,32767
ffc2ecc0: 63 9c ff ff ori r28,r28,65535
ffc2ecc4: 90 01 00 2c stw r0,44(r1)
ffc2ecc8: 93 01 00 08 stw r24,8(r1)
ffc2eccc: 7c 98 23 78 mr r24,r4
ffc2ecd0: 93 a1 00 1c stw r29,28(r1)
ffc2ecd4: 3b a0 00 00 li r29,0
ffc2ecd8: 93 c1 00 20 stw r30,32(r1)
ffc2ecdc: 3b c0 00 00 li r30,0
ffc2ece0: 93 e1 00 24 stw r31,36(r1)
ffc2ece4: 7c 7f 1b 78 mr r31,r3
unsigned int limit = INT_MAX;
int sign = 0;
int d;
for (;;) {
c = getc(fp);
ffc2ece8: 81 3f 00 04 lwz r9,4(r31)
ffc2ecec: 38 09 ff ff addi r0,r9,-1
ffc2ecf0: 2f 80 00 00 cmpwi cr7,r0,0
ffc2ecf4: 90 1f 00 04 stw r0,4(r31)
ffc2ecf8: 41 9c 00 7c blt- cr7,ffc2ed74 <scanInt+0xe8>
ffc2ecfc: 81 3f 00 00 lwz r9,0(r31)
ffc2ed00: 88 69 00 00 lbz r3,0(r9)
ffc2ed04: 38 09 00 01 addi r0,r9,1
ffc2ed08: 90 1f 00 00 stw r0,0(r31)
if (c == ':')
ffc2ed0c: 2f 83 00 3a cmpwi cr7,r3,58
ffc2ed10: 41 9e 00 78 beq- cr7,ffc2ed88 <scanInt+0xfc>
break;
if (sign == 0) {
ffc2ed14: 2f 9d 00 00 cmpwi cr7,r29,0
ffc2ed18: 40 9e 00 10 bne- cr7,ffc2ed28 <scanInt+0x9c>
if (c == '-') {
ffc2ed1c: 2f 83 00 2d cmpwi cr7,r3,45
sign = -1;
limit++;
continue;
ffc2ed20: 3b a0 00 01 li r29,1
for (;;) {
c = getc(fp);
if (c == ':')
break;
if (sign == 0) {
if (c == '-') {
ffc2ed24: 41 9e 00 e8 beq- cr7,ffc2ee0c <scanInt+0x180>
limit++;
continue;
}
sign = 1;
}
if (!isdigit(c))
ffc2ed28: 81 3b 00 00 lwz r9,0(r27)
ffc2ed2c: 7d 29 1a 14 add r9,r9,r3
ffc2ed30: 88 09 00 01 lbz r0,1(r9)
ffc2ed34: 70 09 00 04 andi. r9,r0,4
ffc2ed38: 41 82 00 a0 beq- ffc2edd8 <scanInt+0x14c>
return 0;
d = c - '0';
if ((i > (limit / 10))
ffc2ed3c: 7c 1c d0 16 mulhwu r0,r28,r26
ffc2ed40: 54 00 e8 fe rlwinm r0,r0,29,3,31
ffc2ed44: 7f 9e 00 40 cmplw cr7,r30,r0
ffc2ed48: 41 9d 00 90 bgt- cr7,ffc2edd8 <scanInt+0x14c>
ffc2ed4c: 7f 9e 00 00 cmpw cr7,r30,r0
}
sign = 1;
}
if (!isdigit(c))
return 0;
d = c - '0';
ffc2ed50: 38 63 ff d0 addi r3,r3,-48
ffc2ed54: 1c 1e 00 0a mulli r0,r30,10
if ((i > (limit / 10))
ffc2ed58: 41 9e 00 74 beq- cr7,ffc2edcc <scanInt+0x140>
unsigned int limit = INT_MAX;
int sign = 0;
int d;
for (;;) {
c = getc(fp);
ffc2ed5c: 81 3f 00 04 lwz r9,4(r31)
return 0;
d = c - '0';
if ((i > (limit / 10))
|| ((i == (limit / 10)) && (d > (limit % 10))))
return 0;
i = i * 10 + d;
ffc2ed60: 7f c3 02 14 add r30,r3,r0
unsigned int limit = INT_MAX;
int sign = 0;
int d;
for (;;) {
c = getc(fp);
ffc2ed64: 38 09 ff ff addi r0,r9,-1
ffc2ed68: 2f 80 00 00 cmpwi cr7,r0,0
ffc2ed6c: 90 1f 00 04 stw r0,4(r31)
ffc2ed70: 40 9c ff 8c bge+ cr7,ffc2ecfc <scanInt+0x70>
ffc2ed74: 80 79 00 00 lwz r3,0(r25) <== NOT EXECUTED
ffc2ed78: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc2ed7c: 48 02 42 e5 bl ffc53060 <__srget_r> <== NOT EXECUTED
if (c == ':')
ffc2ed80: 2f 83 00 3a cmpwi cr7,r3,58 <== NOT EXECUTED
ffc2ed84: 40 9e ff 90 bne+ cr7,ffc2ed14 <scanInt+0x88> <== NOT EXECUTED
if ((i > (limit / 10))
|| ((i == (limit / 10)) && (d > (limit % 10))))
return 0;
i = i * 10 + d;
}
if (sign == 0)
ffc2ed88: 2f 9d 00 00 cmpwi cr7,r29,0
ffc2ed8c: 41 9e 00 4c beq- cr7,ffc2edd8 <scanInt+0x14c>
return 0;
*val = i * sign;
return 1;
}
ffc2ed90: 80 01 00 2c lwz r0,44(r1)
return 0;
i = i * 10 + d;
}
if (sign == 0)
return 0;
*val = i * sign;
ffc2ed94: 7f dd f1 d6 mullw r30,r29,r30
return 1;
}
ffc2ed98: 83 21 00 0c lwz r25,12(r1)
ffc2ed9c: 7c 08 03 a6 mtlr r0
return 0;
i = i * 10 + d;
}
if (sign == 0)
return 0;
*val = i * sign;
ffc2eda0: 38 60 00 01 li r3,1
ffc2eda4: 93 d8 00 00 stw r30,0(r24)
return 1;
}
ffc2eda8: 83 01 00 08 lwz r24,8(r1)
ffc2edac: 83 41 00 10 lwz r26,16(r1)
ffc2edb0: 83 61 00 14 lwz r27,20(r1)
ffc2edb4: 83 81 00 18 lwz r28,24(r1)
ffc2edb8: 83 a1 00 1c lwz r29,28(r1)
ffc2edbc: 83 c1 00 20 lwz r30,32(r1)
ffc2edc0: 83 e1 00 24 lwz r31,36(r1)
ffc2edc4: 38 21 00 28 addi r1,r1,40
ffc2edc8: 4e 80 00 20 blr
sign = 1;
}
if (!isdigit(c))
return 0;
d = c - '0';
if ((i > (limit / 10))
ffc2edcc: 7d 20 e0 50 subf r9,r0,r28 <== NOT EXECUTED
ffc2edd0: 7f 83 48 40 cmplw cr7,r3,r9 <== NOT EXECUTED
ffc2edd4: 40 9d ff 88 ble+ cr7,ffc2ed5c <scanInt+0xd0> <== NOT EXECUTED
}
if (sign == 0)
return 0;
*val = i * sign;
return 1;
}
ffc2edd8: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED
i = i * 10 + d;
}
if (sign == 0)
return 0;
*val = i * sign;
return 1;
ffc2eddc: 38 60 00 00 li r3,0 <== NOT EXECUTED
}
ffc2ede0: 83 01 00 08 lwz r24,8(r1) <== NOT EXECUTED
ffc2ede4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2ede8: 83 21 00 0c lwz r25,12(r1) <== NOT EXECUTED
ffc2edec: 83 41 00 10 lwz r26,16(r1) <== NOT EXECUTED
ffc2edf0: 83 61 00 14 lwz r27,20(r1) <== NOT EXECUTED
ffc2edf4: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED
ffc2edf8: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED
ffc2edfc: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED
ffc2ee00: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED
ffc2ee04: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED
ffc2ee08: 4e 80 00 20 blr <== NOT EXECUTED
if (c == ':')
break;
if (sign == 0) {
if (c == '-') {
sign = -1;
limit++;
ffc2ee0c: 3b 9c 00 01 addi r28,r28,1 <== NOT EXECUTED
ffc2ee10: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
continue;
ffc2ee14: 4b ff fe d4 b ffc2ece8 <scanInt+0x5c> <== NOT EXECUTED
ffc2ee18 <scanString>:
/*
* Extract a string value from the database
*/
static int
scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
{
ffc2ee18: 94 21 ff e0 stwu r1,-32(r1)
ffc2ee1c: 7c 08 02 a6 mflr r0
ffc2ee20: 90 01 00 24 stw r0,36(r1)
int c;
*name = *bufp;
ffc2ee24: 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)
{
ffc2ee28: 93 81 00 10 stw r28,16(r1)
int c;
*name = *bufp;
for (;;) {
c = getc(fp);
ffc2ee2c: 3f 80 00 00 lis r28,0
ffc2ee30: 3b 9c 35 28 addi r28,r28,13608
/*
* Extract a string value from the database
*/
static int
scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
{
ffc2ee34: 93 61 00 0c stw r27,12(r1)
ffc2ee38: 7c fb 3b 78 mr r27,r7
ffc2ee3c: 93 a1 00 14 stw r29,20(r1)
ffc2ee40: 7c dd 33 78 mr r29,r6
ffc2ee44: 93 c1 00 18 stw r30,24(r1)
ffc2ee48: 7c be 2b 78 mr r30,r5
ffc2ee4c: 93 e1 00 1c stw r31,28(r1)
ffc2ee50: 7c 7f 1b 78 mr r31,r3
int c;
*name = *bufp;
ffc2ee54: 90 04 00 00 stw r0,0(r4)
ffc2ee58: 48 00 00 58 b ffc2eeb0 <scanString+0x98>
for (;;) {
c = getc(fp);
ffc2ee5c: 81 3f 00 00 lwz r9,0(r31)
ffc2ee60: 88 69 00 00 lbz r3,0(r9)
ffc2ee64: 38 09 00 01 addi r0,r9,1
ffc2ee68: 90 1f 00 00 stw r0,0(r31)
if (c == ':') {
ffc2ee6c: 2f 83 00 3a cmpwi cr7,r3,58
if (nlFlag)
return 0;
break;
}
if (c == '\n') {
ffc2ee70: 2f 03 00 0a cmpwi cr6,r3,10
if (!nlFlag)
return 0;
break;
}
if (c == EOF)
ffc2ee74: 2c 83 ff ff cmpwi cr1,r3,-1
int c;
*name = *bufp;
for (;;) {
c = getc(fp);
if (c == ':') {
ffc2ee78: 41 9e 00 68 beq- cr7,ffc2eee0 <scanString+0xc8>
if (nlFlag)
return 0;
break;
}
if (c == '\n') {
ffc2ee7c: 41 9a 00 b8 beq- cr6,ffc2ef34 <scanString+0x11c>
if (!nlFlag)
return 0;
break;
}
if (c == EOF)
ffc2ee80: 41 86 00 bc beq- cr1,ffc2ef3c <scanString+0x124>
return 0;
if (*nleft < 2)
ffc2ee84: 80 1d 00 00 lwz r0,0(r29)
ffc2ee88: 2b 80 00 01 cmplwi cr7,r0,1
ffc2ee8c: 40 9d 00 b0 ble- cr7,ffc2ef3c <scanString+0x124>
return 0;
**bufp = c;
ffc2ee90: 81 3e 00 00 lwz r9,0(r30)
ffc2ee94: 98 69 00 00 stb r3,0(r9)
++(*bufp);
ffc2ee98: 81 3e 00 00 lwz r9,0(r30)
--(*nleft);
ffc2ee9c: 81 7d 00 00 lwz r11,0(r29)
if (c == EOF)
return 0;
if (*nleft < 2)
return 0;
**bufp = c;
++(*bufp);
ffc2eea0: 39 29 00 01 addi r9,r9,1
--(*nleft);
ffc2eea4: 38 0b ff ff addi r0,r11,-1
if (c == EOF)
return 0;
if (*nleft < 2)
return 0;
**bufp = c;
++(*bufp);
ffc2eea8: 91 3e 00 00 stw r9,0(r30)
--(*nleft);
ffc2eeac: 90 1d 00 00 stw r0,0(r29)
{
int c;
*name = *bufp;
for (;;) {
c = getc(fp);
ffc2eeb0: 81 3f 00 04 lwz r9,4(r31)
ffc2eeb4: 38 09 ff ff addi r0,r9,-1
ffc2eeb8: 2f 80 00 00 cmpwi cr7,r0,0
ffc2eebc: 90 1f 00 04 stw r0,4(r31)
ffc2eec0: 40 9c ff 9c bge+ cr7,ffc2ee5c <scanString+0x44>
ffc2eec4: 80 7c 00 00 lwz r3,0(r28)
ffc2eec8: 7f e4 fb 78 mr r4,r31
ffc2eecc: 48 02 41 95 bl ffc53060 <__srget_r>
if (c == ':') {
ffc2eed0: 2f 83 00 3a cmpwi cr7,r3,58
if (nlFlag)
return 0;
break;
}
if (c == '\n') {
ffc2eed4: 2f 03 00 0a cmpwi cr6,r3,10
if (!nlFlag)
return 0;
break;
}
if (c == EOF)
ffc2eed8: 2c 83 ff ff cmpwi cr1,r3,-1
int c;
*name = *bufp;
for (;;) {
c = getc(fp);
if (c == ':') {
ffc2eedc: 40 9e ff a0 bne+ cr7,ffc2ee7c <scanString+0x64>
if (nlFlag)
ffc2eee0: 2f 9b 00 00 cmpwi cr7,r27,0
ffc2eee4: 40 9e 00 58 bne- cr7,ffc2ef3c <scanString+0x124>
return 0;
**bufp = c;
++(*bufp);
--(*nleft);
}
**bufp = '\0';
ffc2eee8: 81 3e 00 00 lwz r9,0(r30)
ffc2eeec: 38 00 00 00 li r0,0
++(*bufp);
--(*nleft);
ffc2eef0: 38 60 00 01 li r3,1
return 0;
**bufp = c;
++(*bufp);
--(*nleft);
}
**bufp = '\0';
ffc2eef4: 98 09 00 00 stb r0,0(r9)
++(*bufp);
--(*nleft);
ffc2eef8: 81 7d 00 00 lwz r11,0(r29)
**bufp = c;
++(*bufp);
--(*nleft);
}
**bufp = '\0';
++(*bufp);
ffc2eefc: 81 3e 00 00 lwz r9,0(r30)
--(*nleft);
ffc2ef00: 38 0b ff ff addi r0,r11,-1
return 1;
}
ffc2ef04: 83 61 00 0c lwz r27,12(r1)
++(*bufp);
--(*nleft);
}
**bufp = '\0';
++(*bufp);
--(*nleft);
ffc2ef08: 90 1d 00 00 stw r0,0(r29)
**bufp = c;
++(*bufp);
--(*nleft);
}
**bufp = '\0';
++(*bufp);
ffc2ef0c: 39 29 00 01 addi r9,r9,1
--(*nleft);
return 1;
}
ffc2ef10: 80 01 00 24 lwz r0,36(r1)
**bufp = c;
++(*bufp);
--(*nleft);
}
**bufp = '\0';
++(*bufp);
ffc2ef14: 91 3e 00 00 stw r9,0(r30)
--(*nleft);
return 1;
}
ffc2ef18: 7c 08 03 a6 mtlr r0
ffc2ef1c: 83 81 00 10 lwz r28,16(r1)
ffc2ef20: 83 a1 00 14 lwz r29,20(r1)
ffc2ef24: 83 c1 00 18 lwz r30,24(r1)
ffc2ef28: 83 e1 00 1c lwz r31,28(r1)
ffc2ef2c: 38 21 00 20 addi r1,r1,32
ffc2ef30: 4e 80 00 20 blr
if (nlFlag)
return 0;
break;
}
if (c == '\n') {
if (!nlFlag)
ffc2ef34: 2f 9b 00 00 cmpwi cr7,r27,0
ffc2ef38: 40 9e ff b0 bne+ cr7,ffc2eee8 <scanString+0xd0>
}
**bufp = '\0';
++(*bufp);
--(*nleft);
return 1;
}
ffc2ef3c: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED
--(*nleft);
}
**bufp = '\0';
++(*bufp);
--(*nleft);
return 1;
ffc2ef40: 38 60 00 00 li r3,0 <== NOT EXECUTED
}
ffc2ef44: 83 61 00 0c lwz r27,12(r1) <== NOT EXECUTED
ffc2ef48: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2ef4c: 83 81 00 10 lwz r28,16(r1) <== NOT EXECUTED
ffc2ef50: 83 a1 00 14 lwz r29,20(r1) <== NOT EXECUTED
ffc2ef54: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED
ffc2ef58: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED
ffc2ef5c: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED
ffc2ef60: 4e 80 00 20 blr <== NOT EXECUTED
ffc2ef64 <scangr>:
FILE *fp,
struct group *grp,
char *buffer,
size_t bufsize
)
{
ffc2ef64: 94 21 ff d0 stwu r1,-48(r1)
ffc2ef68: 7c 08 02 a6 mflr r0
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
ffc2ef6c: 38 e0 00 00 li r7,0
FILE *fp,
struct group *grp,
char *buffer,
size_t bufsize
)
{
ffc2ef70: 93 c1 00 28 stw r30,40(r1)
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
ffc2ef74: 3b c1 00 18 addi r30,r1,24
FILE *fp,
struct group *grp,
char *buffer,
size_t bufsize
)
{
ffc2ef78: 93 e1 00 2c stw r31,44(r1)
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
ffc2ef7c: 3b e1 00 1c addi r31,r1,28
FILE *fp,
struct group *grp,
char *buffer,
size_t bufsize
)
{
ffc2ef80: 90 a1 00 18 stw r5,24(r1)
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
ffc2ef84: 7f c5 f3 78 mr r5,r30
FILE *fp,
struct group *grp,
char *buffer,
size_t bufsize
)
{
ffc2ef88: 90 c1 00 1c stw r6,28(r1)
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
ffc2ef8c: 7f e6 fb 78 mr r6,r31
FILE *fp,
struct group *grp,
char *buffer,
size_t bufsize
)
{
ffc2ef90: 93 81 00 20 stw r28,32(r1)
ffc2ef94: 7c 9c 23 78 mr r28,r4
ffc2ef98: 93 a1 00 24 stw r29,36(r1)
ffc2ef9c: 7c 7d 1b 78 mr r29,r3
ffc2efa0: 90 01 00 34 stw r0,52(r1)
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
ffc2efa4: 4b ff fe 75 bl ffc2ee18 <scanString>
ffc2efa8: 2f 83 00 00 cmpwi cr7,r3,0
ffc2efac: 40 9e 00 28 bne- cr7,ffc2efd4 <scangr+0x70>
*cp = '\0';
grp->gr_mem[memcount++] = cp + 1;
}
}
grp->gr_mem[memcount] = NULL;
return 1;
ffc2efb0: 38 60 00 00 li r3,0 <== NOT EXECUTED
}
ffc2efb4: 80 01 00 34 lwz r0,52(r1)
ffc2efb8: 83 81 00 20 lwz r28,32(r1)
ffc2efbc: 7c 08 03 a6 mtlr r0
ffc2efc0: 83 a1 00 24 lwz r29,36(r1)
ffc2efc4: 83 c1 00 28 lwz r30,40(r1)
ffc2efc8: 83 e1 00 2c lwz r31,44(r1)
ffc2efcc: 38 21 00 30 addi r1,r1,48
ffc2efd0: 4e 80 00 20 blr
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
ffc2efd4: 7f a3 eb 78 mr r3,r29
ffc2efd8: 38 9c 00 04 addi r4,r28,4
ffc2efdc: 7f c5 f3 78 mr r5,r30
ffc2efe0: 7f e6 fb 78 mr r6,r31
ffc2efe4: 38 e0 00 00 li r7,0
ffc2efe8: 4b ff fe 31 bl ffc2ee18 <scanString>
{
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
ffc2efec: 2f 83 00 00 cmpwi cr7,r3,0
ffc2eff0: 41 9e ff c0 beq+ cr7,ffc2efb0 <scangr+0x4c>
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &grgid)
ffc2eff4: 7f a3 eb 78 mr r3,r29
ffc2eff8: 38 81 00 08 addi r4,r1,8
ffc2effc: 4b ff fc 91 bl ffc2ec8c <scanInt>
{
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
ffc2f000: 2f 83 00 00 cmpwi cr7,r3,0
ffc2f004: 41 9e ff ac beq+ cr7,ffc2efb0 <scangr+0x4c>
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &grgid)
|| !scanString(fp, &grmem, &buffer, &bufsize, 1))
ffc2f008: 7f a3 eb 78 mr r3,r29
ffc2f00c: 7f c5 f3 78 mr r5,r30
ffc2f010: 7f e6 fb 78 mr r6,r31
ffc2f014: 38 81 00 0c addi r4,r1,12
ffc2f018: 38 e0 00 01 li r7,1
ffc2f01c: 4b ff fd fd bl ffc2ee18 <scanString>
{
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
ffc2f020: 2f 83 00 00 cmpwi cr7,r3,0
ffc2f024: 41 be ff 8c beq- cr7,ffc2efb0 <scangr+0x4c>
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &grgid)
|| !scanString(fp, &grmem, &buffer, &bufsize, 1))
return 0;
grp->gr_gid = grgid;
ffc2f028: 80 01 00 08 lwz r0,8(r1)
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
ffc2f02c: 39 20 00 01 li r9,1
ffc2f030: 81 41 00 0c lwz r10,12(r1)
ffc2f034: 39 00 00 17 li r8,23
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;
ffc2f038: b0 1c 00 08 sth r0,8(r28)
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
ffc2f03c: 7d 4b 53 78 mr r11,r10
ffc2f040: 88 0a 00 00 lbz r0,0(r10)
ffc2f044: 2f 80 00 00 cmpwi cr7,r0,0
ffc2f048: 41 9e 00 28 beq- cr7,ffc2f070 <scangr+0x10c>
if(*cp == ',')
memcount++;
ffc2f04c: 68 08 00 2c xori r8,r0,44
ffc2f050: 21 08 00 00 subfic r8,r8,0
ffc2f054: 7d 09 01 94 addze r8,r9
grp->gr_gid = grgid;
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
ffc2f058: 8c 0b 00 01 lbzu r0,1(r11)
ffc2f05c: 2f 80 00 00 cmpwi cr7,r0,0
if(*cp == ',')
memcount++;
ffc2f060: 7d 09 43 78 mr r9,r8
grp->gr_gid = grgid;
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
ffc2f064: 40 9e ff e8 bne+ cr7,ffc2f04c <scangr+0xe8>
ffc2f068: 55 09 10 3a rlwinm r9,r8,2,0,29
ffc2f06c: 39 09 00 13 addi r8,r9,19
}
/*
* Hack to produce (hopefully) a suitably-aligned array of pointers
*/
if (bufsize < (((memcount+1)*sizeof(char *)) + 15))
ffc2f070: 80 01 00 1c lwz r0,28(r1)
ffc2f074: 7f 80 40 40 cmplw cr7,r0,r8
ffc2f078: 41 bc ff 38 blt- cr7,ffc2efb0 <scangr+0x4c>
return 0;
grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15);
ffc2f07c: 81 21 00 18 lwz r9,24(r1)
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
ffc2f080: 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);
ffc2f084: 39 29 00 0f addi r9,r9,15
ffc2f088: 55 29 00 36 rlwinm r9,r9,0,0,27
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
ffc2f08c: 91 49 00 00 stw r10,0(r9)
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
ffc2f090: 39 40 00 04 li r10,4
/*
* 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);
ffc2f094: 91 3c 00 0c stw r9,12(r28)
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
ffc2f098: 81 21 00 0c lwz r9,12(r1)
ffc2f09c: 88 09 00 00 lbz r0,0(r9)
ffc2f0a0: 39 29 00 01 addi r9,r9,1
ffc2f0a4: 2f 80 00 00 cmpwi cr7,r0,0
ffc2f0a8: 41 9e 00 40 beq- cr7,ffc2f0e8 <scangr+0x184>
if(*cp == ',') {
*cp = '\0';
ffc2f0ac: 39 00 00 00 li r8,0
ffc2f0b0: 48 00 00 14 b ffc2f0c4 <scangr+0x160>
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
ffc2f0b4: 88 09 00 00 lbz r0,0(r9)
ffc2f0b8: 39 29 00 01 addi r9,r9,1
ffc2f0bc: 2f 80 00 00 cmpwi cr7,r0,0
ffc2f0c0: 41 9e 00 24 beq- cr7,ffc2f0e4 <scangr+0x180>
if(*cp == ',') {
ffc2f0c4: 2f 80 00 2c cmpwi cr7,r0,44
ffc2f0c8: 40 9e ff ec bne+ cr7,ffc2f0b4 <scangr+0x150>
*cp = '\0';
ffc2f0cc: 99 09 ff ff stb r8,-1(r9) <== NOT EXECUTED
grp->gr_mem[memcount++] = cp + 1;
ffc2f0d0: 55 60 10 3a rlwinm r0,r11,2,0,29 <== NOT EXECUTED
ffc2f0d4: 39 6b 00 01 addi r11,r11,1 <== NOT EXECUTED
ffc2f0d8: 81 5c 00 0c lwz r10,12(r28) <== NOT EXECUTED
ffc2f0dc: 7d 2a 01 2e stwx r9,r10,r0 <== NOT EXECUTED
ffc2f0e0: 4b ff ff d4 b ffc2f0b4 <scangr+0x150> <== NOT EXECUTED
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
ffc2f0e4: 55 6a 10 3a rlwinm r10,r11,2,0,29
if(*cp == ',') {
*cp = '\0';
grp->gr_mem[memcount++] = cp + 1;
}
}
grp->gr_mem[memcount] = NULL;
ffc2f0e8: 81 3c 00 0c lwz r9,12(r28)
ffc2f0ec: 38 00 00 00 li r0,0
ffc2f0f0: 38 60 00 01 li r3,1
ffc2f0f4: 7c 09 51 2e stwx r0,r9,r10
return 1;
ffc2f0f8: 4b ff fe bc b ffc2efb4 <scangr+0x50>
ffc2f16c <scanpw>:
FILE *fp,
struct passwd *pwd,
char *buffer,
size_t bufsize
)
{
ffc2f16c: 94 21 ff d0 stwu r1,-48(r1)
ffc2f170: 7c 08 02 a6 mflr r0
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2f174: 38 e0 00 00 li r7,0
FILE *fp,
struct passwd *pwd,
char *buffer,
size_t bufsize
)
{
ffc2f178: 93 c1 00 28 stw r30,40(r1)
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2f17c: 3b c1 00 18 addi r30,r1,24
FILE *fp,
struct passwd *pwd,
char *buffer,
size_t bufsize
)
{
ffc2f180: 93 e1 00 2c stw r31,44(r1)
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2f184: 3b e1 00 1c addi r31,r1,28
FILE *fp,
struct passwd *pwd,
char *buffer,
size_t bufsize
)
{
ffc2f188: 90 a1 00 18 stw r5,24(r1)
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2f18c: 7f c5 f3 78 mr r5,r30
FILE *fp,
struct passwd *pwd,
char *buffer,
size_t bufsize
)
{
ffc2f190: 90 c1 00 1c stw r6,28(r1)
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2f194: 7f e6 fb 78 mr r6,r31
FILE *fp,
struct passwd *pwd,
char *buffer,
size_t bufsize
)
{
ffc2f198: 93 81 00 20 stw r28,32(r1)
ffc2f19c: 7c 9c 23 78 mr r28,r4
ffc2f1a0: 93 a1 00 24 stw r29,36(r1)
ffc2f1a4: 7c 7d 1b 78 mr r29,r3
ffc2f1a8: 90 01 00 34 stw r0,52(r1)
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2f1ac: 4b ff fc 6d bl ffc2ee18 <scanString>
ffc2f1b0: 2f 83 00 00 cmpwi cr7,r3,0
ffc2f1b4: 40 9e 00 28 bne- cr7,ffc2f1dc <scanpw+0x70>
|| !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0)
|| !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1))
return 0;
pwd->pw_uid = pwuid;
pwd->pw_gid = pwgid;
return 1;
ffc2f1b8: 38 60 00 00 li r3,0 <== NOT EXECUTED
}
ffc2f1bc: 80 01 00 34 lwz r0,52(r1)
ffc2f1c0: 83 81 00 20 lwz r28,32(r1)
ffc2f1c4: 7c 08 03 a6 mtlr r0
ffc2f1c8: 83 a1 00 24 lwz r29,36(r1)
ffc2f1cc: 83 c1 00 28 lwz r30,40(r1)
ffc2f1d0: 83 e1 00 2c lwz r31,44(r1)
ffc2f1d4: 38 21 00 30 addi r1,r1,48
ffc2f1d8: 4e 80 00 20 blr
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
ffc2f1dc: 7f a3 eb 78 mr r3,r29
ffc2f1e0: 38 9c 00 04 addi r4,r28,4
ffc2f1e4: 7f c5 f3 78 mr r5,r30
ffc2f1e8: 7f e6 fb 78 mr r6,r31
ffc2f1ec: 38 e0 00 00 li r7,0
ffc2f1f0: 4b ff fc 29 bl ffc2ee18 <scanString>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2f1f4: 2f 83 00 00 cmpwi cr7,r3,0
ffc2f1f8: 41 9e ff c0 beq+ cr7,ffc2f1b8 <scanpw+0x4c>
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &pwuid)
ffc2f1fc: 7f a3 eb 78 mr r3,r29
ffc2f200: 38 81 00 08 addi r4,r1,8
ffc2f204: 4b ff fa 89 bl ffc2ec8c <scanInt>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2f208: 2f 83 00 00 cmpwi cr7,r3,0
ffc2f20c: 41 9e ff ac beq+ cr7,ffc2f1b8 <scanpw+0x4c>
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &pwuid)
|| !scanInt(fp, &pwgid)
ffc2f210: 7f a3 eb 78 mr r3,r29
ffc2f214: 38 81 00 0c addi r4,r1,12
ffc2f218: 4b ff fa 75 bl ffc2ec8c <scanInt>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2f21c: 2f 83 00 00 cmpwi cr7,r3,0
ffc2f220: 41 9e ff 98 beq+ cr7,ffc2f1b8 <scanpw+0x4c>
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &pwuid)
|| !scanInt(fp, &pwgid)
|| !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)
ffc2f224: 7f a3 eb 78 mr r3,r29
ffc2f228: 38 9c 00 0c addi r4,r28,12
ffc2f22c: 7f c5 f3 78 mr r5,r30
ffc2f230: 7f e6 fb 78 mr r6,r31
ffc2f234: 38 e0 00 00 li r7,0
ffc2f238: 4b ff fb e1 bl ffc2ee18 <scanString>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2f23c: 2f 83 00 00 cmpwi cr7,r3,0
ffc2f240: 41 9e ff 78 beq+ cr7,ffc2f1b8 <scanpw+0x4c>
|| !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)
ffc2f244: 7f a3 eb 78 mr r3,r29
ffc2f248: 38 9c 00 10 addi r4,r28,16
ffc2f24c: 7f c5 f3 78 mr r5,r30
ffc2f250: 7f e6 fb 78 mr r6,r31
ffc2f254: 38 e0 00 00 li r7,0
ffc2f258: 4b ff fb c1 bl ffc2ee18 <scanString>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2f25c: 2f 83 00 00 cmpwi cr7,r3,0
ffc2f260: 41 9e ff 58 beq+ cr7,ffc2f1b8 <scanpw+0x4c>
|| !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)
ffc2f264: 7f a3 eb 78 mr r3,r29
ffc2f268: 38 9c 00 14 addi r4,r28,20
ffc2f26c: 7f c5 f3 78 mr r5,r30
ffc2f270: 7f e6 fb 78 mr r6,r31
ffc2f274: 38 e0 00 00 li r7,0
ffc2f278: 4b ff fb a1 bl ffc2ee18 <scanString>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2f27c: 2f 83 00 00 cmpwi cr7,r3,0
ffc2f280: 41 9e ff 38 beq+ cr7,ffc2f1b8 <scanpw+0x4c>
|| !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))
ffc2f284: 7f a3 eb 78 mr r3,r29
ffc2f288: 7f c5 f3 78 mr r5,r30
ffc2f28c: 7f e6 fb 78 mr r6,r31
ffc2f290: 38 9c 00 18 addi r4,r28,24
ffc2f294: 38 e0 00 01 li r7,1
ffc2f298: 4b ff fb 81 bl ffc2ee18 <scanString>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
ffc2f29c: 2f 83 00 00 cmpwi cr7,r3,0
ffc2f2a0: 41 be ff 18 beq- cr7,ffc2f1b8 <scanpw+0x4c>
|| !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;
ffc2f2a4: 80 01 00 08 lwz r0,8(r1)
pwd->pw_gid = pwgid;
ffc2f2a8: 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;
ffc2f2ac: b0 1c 00 08 sth r0,8(r28)
pwd->pw_gid = pwgid;
ffc2f2b0: 80 01 00 0c lwz r0,12(r1)
ffc2f2b4: b0 1c 00 0a sth r0,10(r28)
return 1;
ffc2f2b8: 4b ff ff 04 b ffc2f1bc <scanpw+0x50>
ffc2ec18 <setgid>:
int setgid(
gid_t gid
)
{
_POSIX_types_Gid = gid;
ffc2ec18: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc2ec1c: 81 29 34 ec lwz r9,13548(r9) <== NOT EXECUTED
ffc2ec20: b0 69 00 34 sth r3,52(r9) <== NOT EXECUTED
return 0;
}
ffc2ec24: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc2ec28: 4e 80 00 20 blr <== NOT EXECUTED
ffc2f458 <setgrent>:
return NULL;
return &grent;
}
void setgrent(void)
{
ffc2f458: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED
ffc2f45c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc2f460: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED
init_etc_passwd_group();
if (group_fp != NULL)
ffc2f464: 3f e0 00 00 lis r31,0 <== NOT EXECUTED
return NULL;
return &grent;
}
void setgrent(void)
{
ffc2f468: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED
init_etc_passwd_group();
ffc2f46c: 4b ff fe c1 bl ffc2f32c <init_etc_passwd_group> <== NOT EXECUTED
if (group_fp != NULL)
ffc2f470: 80 7f 5e fc lwz r3,24316(r31) <== NOT EXECUTED
ffc2f474: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc2f478: 41 9e 00 08 beq- cr7,ffc2f480 <setgrent+0x28> <== NOT EXECUTED
fclose(group_fp);
ffc2f47c: 48 01 d8 9d bl ffc4cd18 <fclose> <== NOT EXECUTED
group_fp = fopen("/etc/group", "r");
ffc2f480: 3c 60 ff c7 lis r3,-57 <== NOT EXECUTED
ffc2f484: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED
ffc2f488: 38 63 8a 84 addi r3,r3,-30076 <== NOT EXECUTED
ffc2f48c: 38 84 17 d4 addi r4,r4,6100 <== NOT EXECUTED
ffc2f490: 48 01 e3 b5 bl ffc4d844 <fopen> <== NOT EXECUTED
}
ffc2f494: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
{
init_etc_passwd_group();
if (group_fp != NULL)
fclose(group_fp);
group_fp = fopen("/etc/group", "r");
ffc2f498: 90 7f 5e fc stw r3,24316(r31) <== NOT EXECUTED
}
ffc2f49c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2f4a0: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc2f4a4: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc2f4a8: 4e 80 00 20 blr <== NOT EXECUTED
ffc2f6ec <setpwent>:
return NULL;
return &pwent;
}
void setpwent(void)
{
ffc2f6ec: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED
ffc2f6f0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc2f6f4: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED
init_etc_passwd_group();
if (passwd_fp != NULL)
ffc2f6f8: 3f e0 00 00 lis r31,0 <== NOT EXECUTED
ffc2f6fc: 3b ff 5e fc addi r31,r31,24316 <== NOT EXECUTED
return NULL;
return &pwent;
}
void setpwent(void)
{
ffc2f700: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED
init_etc_passwd_group();
ffc2f704: 4b ff fc 29 bl ffc2f32c <init_etc_passwd_group> <== NOT EXECUTED
if (passwd_fp != NULL)
ffc2f708: 80 7f 00 04 lwz r3,4(r31) <== NOT EXECUTED
ffc2f70c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc2f710: 41 9e 00 08 beq- cr7,ffc2f718 <setpwent+0x2c> <== NOT EXECUTED
fclose(passwd_fp);
ffc2f714: 48 01 d6 05 bl ffc4cd18 <fclose> <== NOT EXECUTED
passwd_fp = fopen("/etc/passwd", "r");
ffc2f718: 3c 60 ff c7 lis r3,-57 <== NOT EXECUTED
ffc2f71c: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED
ffc2f720: 38 63 89 d4 addi r3,r3,-30252 <== NOT EXECUTED
ffc2f724: 38 84 17 d4 addi r4,r4,6100 <== NOT EXECUTED
ffc2f728: 48 01 e1 1d bl ffc4d844 <fopen> <== NOT EXECUTED
}
ffc2f72c: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
{
init_etc_passwd_group();
if (passwd_fp != NULL)
fclose(passwd_fp);
passwd_fp = fopen("/etc/passwd", "r");
ffc2f730: 90 7f 00 04 stw r3,4(r31) <== NOT EXECUTED
}
ffc2f734: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc2f738: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc2f73c: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc2f740: 4e 80 00 20 blr <== NOT EXECUTED
ffc07b0c <setuid>:
int setuid(
uid_t uid
)
{
_POSIX_types_Uid = uid;
ffc07b0c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc07b10: 81 29 34 ec lwz r9,13548(r9) <== NOT EXECUTED
ffc07b14: b0 69 00 32 sth r3,50(r9) <== NOT EXECUTED
return 0;
}
ffc07b18: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc07b1c: 4e 80 00 20 blr <== NOT EXECUTED
ffc06788 <siproc>:
/*
* Process input character, with semaphore.
*/
static int
siproc (unsigned char c, struct rtems_termios_tty *tty)
{
ffc06788: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED
ffc0678c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc06790: 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)) {
ffc06794: 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)
{
ffc06798: 93 c1 00 08 stw r30,8(r1) <== NOT EXECUTED
ffc0679c: 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)) {
ffc067a0: 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)
{
ffc067a4: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED
ffc067a8: 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)) {
ffc067ac: 40 82 00 1c bne- ffc067c8 <siproc+0x40> <== NOT EXECUTED
}
else {
i = iproc (c, tty);
}
return i;
}
ffc067b0: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc067b4: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED
ffc067b8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc067bc: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc067c0: 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);
ffc067c4: 4b ff fd c4 b ffc06588 <iproc> <== NOT EXECUTED
/*
* Obtain output semaphore if character will be echoed
*/
if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc067c8: 80 64 00 18 lwz r3,24(r4) <== NOT EXECUTED
ffc067cc: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc067d0: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc067d4: 48 00 1f 3d bl ffc08710 <rtems_semaphore_obtain> <== NOT EXECUTED
i = iproc (c, tty);
ffc067d8: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED
ffc067dc: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc067e0: 4b ff fd a9 bl ffc06588 <iproc> <== NOT EXECUTED
ffc067e4: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED
rtems_semaphore_release (tty->osem);
ffc067e8: 80 7f 00 18 lwz r3,24(r31) <== NOT EXECUTED
ffc067ec: 48 00 20 85 bl ffc08870 <rtems_semaphore_release> <== NOT EXECUTED
}
else {
i = iproc (c, tty);
}
return i;
}
ffc067f0: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc067f4: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc067f8: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc067fc: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc06800: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED
ffc06804: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc06808: 4e 80 00 20 blr <== NOT EXECUTED
ffc093ac <stat>:
int _STAT_NAME(
const char *path,
struct stat *buf
)
{
ffc093ac: 94 21 ff c8 stwu r1,-56(r1)
ffc093b0: 7c 08 02 a6 mflr r0
ffc093b4: 93 c1 00 30 stw r30,48(r1)
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
ffc093b8: 7c 9e 23 79 mr. r30,r4
int _STAT_NAME(
const char *path,
struct stat *buf
)
{
ffc093bc: 93 a1 00 2c stw r29,44(r1)
ffc093c0: 7c 7d 1b 78 mr r29,r3
ffc093c4: 90 01 00 3c stw r0,60(r1)
ffc093c8: 93 e1 00 34 stw r31,52(r1)
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
ffc093cc: 41 82 00 b0 beq- ffc0947c <stat+0xd0>
rtems_set_errno_and_return_minus_one( EFAULT );
status = rtems_filesystem_evaluate_path( path, strlen( path ),
ffc093d0: 48 04 b5 15 bl ffc548e4 <strlen>
ffc093d4: 3b e1 00 08 addi r31,r1,8
ffc093d8: 7c 64 1b 78 mr r4,r3
ffc093dc: 38 a0 00 00 li r5,0
ffc093e0: 7f a3 eb 78 mr r3,r29
ffc093e4: 7f e6 fb 78 mr r6,r31
ffc093e8: 38 e0 00 01 li r7,1
ffc093ec: 4b ff e4 a1 bl ffc0788c <rtems_filesystem_evaluate_path>
0, &loc, _STAT_FOLLOW_LINKS );
if ( status != 0 )
ffc093f0: 3b a0 ff ff li r29,-1
ffc093f4: 2f 83 00 00 cmpwi cr7,r3,0
ffc093f8: 40 9e 00 64 bne- cr7,ffc0945c <stat+0xb0>
return -1;
if ( !loc.handlers->fstat_h ){
ffc093fc: 81 21 00 10 lwz r9,16(r1)
ffc09400: 80 09 00 18 lwz r0,24(r9)
ffc09404: 2f 80 00 00 cmpwi cr7,r0,0
ffc09408: 41 9e 00 a4 beq- cr7,ffc094ac <stat+0x100>
/*
* Zero out the stat structure so the various support
* versions of stat don't have to.
*/
memset( buf, 0, sizeof(struct stat) );
ffc0940c: 38 80 00 00 li r4,0
ffc09410: 38 a0 00 48 li r5,72
ffc09414: 7f c3 f3 78 mr r3,r30
ffc09418: 48 04 74 fd bl ffc50914 <memset>
status = (*loc.handlers->fstat_h)( &loc, buf );
ffc0941c: 81 21 00 10 lwz r9,16(r1)
ffc09420: 7f c4 f3 78 mr r4,r30
ffc09424: 80 09 00 18 lwz r0,24(r9)
ffc09428: 7f e3 fb 78 mr r3,r31
ffc0942c: 7c 09 03 a6 mtctr r0
ffc09430: 4e 80 04 21 bctrl
rtems_filesystem_freenode( &loc );
ffc09434: 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 );
ffc09438: 7c 7d 1b 78 mr r29,r3
rtems_filesystem_freenode( &loc );
ffc0943c: 2f 89 00 00 cmpwi cr7,r9,0
ffc09440: 41 9e 00 1c beq- cr7,ffc0945c <stat+0xb0>
ffc09444: 80 09 00 1c lwz r0,28(r9)
ffc09448: 2f 80 00 00 cmpwi cr7,r0,0
ffc0944c: 41 9e 00 10 beq- cr7,ffc0945c <stat+0xb0>
ffc09450: 7f e3 fb 78 mr r3,r31
ffc09454: 7c 09 03 a6 mtctr r0
ffc09458: 4e 80 04 21 bctrl
return status;
}
ffc0945c: 80 01 00 3c lwz r0,60(r1)
ffc09460: 7f a3 eb 78 mr r3,r29
ffc09464: 83 c1 00 30 lwz r30,48(r1)
ffc09468: 7c 08 03 a6 mtlr r0
ffc0946c: 83 a1 00 2c lwz r29,44(r1)
ffc09470: 83 e1 00 34 lwz r31,52(r1)
ffc09474: 38 21 00 38 addi r1,r1,56
ffc09478: 4e 80 00 20 blr
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
rtems_set_errno_and_return_minus_one( EFAULT );
ffc0947c: 48 04 36 fd bl ffc4cb78 <__errno>
ffc09480: 38 00 00 0e li r0,14
ffc09484: 90 03 00 00 stw r0,0(r3)
ffc09488: 3b a0 ff ff li r29,-1
status = (*loc.handlers->fstat_h)( &loc, buf );
rtems_filesystem_freenode( &loc );
return status;
}
ffc0948c: 7f a3 eb 78 mr r3,r29
ffc09490: 80 01 00 3c lwz r0,60(r1)
ffc09494: 83 a1 00 2c lwz r29,44(r1)
ffc09498: 7c 08 03 a6 mtlr r0
ffc0949c: 83 c1 00 30 lwz r30,48(r1)
ffc094a0: 83 e1 00 34 lwz r31,52(r1)
ffc094a4: 38 21 00 38 addi r1,r1,56
ffc094a8: 4e 80 00 20 blr
0, &loc, _STAT_FOLLOW_LINKS );
if ( status != 0 )
return -1;
if ( !loc.handlers->fstat_h ){
rtems_filesystem_freenode( &loc );
ffc094ac: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED
ffc094b0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc094b4: 41 9e 00 1c beq- cr7,ffc094d0 <stat+0x124> <== NOT EXECUTED
ffc094b8: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc094bc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc094c0: 41 9e 00 10 beq- cr7,ffc094d0 <stat+0x124> <== NOT EXECUTED
ffc094c4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc094c8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc094cc: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc094d0: 48 04 36 a9 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc094d4: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc094d8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc094dc: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
ffc094e0: 4b ff ff 7c b ffc0945c <stat+0xb0> <== NOT EXECUTED
ffc30b10 <statvfs>:
*/
extern rtems_chain_control rtems_filesystem_mount_table_control;
int
statvfs (const char *path, struct statvfs *sb)
{
ffc30b10: 94 21 ff c8 stwu r1,-56(r1) <== NOT EXECUTED
ffc30b14: 7c 08 02 a6 mflr r0 <== NOT EXECUTED
ffc30b18: 93 a1 00 2c stw r29,44(r1) <== NOT EXECUTED
ffc30b1c: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED
ffc30b20: 90 01 00 3c stw r0,60(r1) <== NOT EXECUTED
ffc30b24: 93 c1 00 30 stw r30,48(r1) <== NOT EXECUTED
ffc30b28: 7c 9e 23 78 mr r30,r4 <== NOT EXECUTED
ffc30b2c: 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 ) )
ffc30b30: 48 02 3d b5 bl ffc548e4 <strlen> <== NOT EXECUTED
ffc30b34: 3b e1 00 08 addi r31,r1,8 <== NOT EXECUTED
ffc30b38: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED
ffc30b3c: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc30b40: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc30b44: 7f e6 fb 78 mr r6,r31 <== NOT EXECUTED
ffc30b48: 38 e0 00 01 li r7,1 <== NOT EXECUTED
ffc30b4c: 4b fd 6d 41 bl ffc0788c <rtems_filesystem_evaluate_path><== NOT EXECUTED
ffc30b50: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
ffc30b54: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc30b58: 40 9e 00 68 bne- cr7,ffc30bc0 <statvfs+0xb0> <== NOT EXECUTED
return -1;
mt_entry = loc.mt_entry;
ffc30b5c: 83 a1 00 18 lwz r29,24(r1) <== NOT EXECUTED
fs_mount_root = &mt_entry->mt_fs_root;
ffc30b60: 81 3d 00 28 lwz r9,40(r29) <== NOT EXECUTED
ffc30b64: 80 09 00 44 lwz r0,68(r9) <== NOT EXECUTED
ffc30b68: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc30b6c: 41 9e 00 74 beq- cr7,ffc30be0 <statvfs+0xd0> <== NOT EXECUTED
if ( !fs_mount_root->ops->statvfs_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
memset (sb, 0, sizeof (struct statvfs));
ffc30b70: 38 80 00 00 li r4,0 <== NOT EXECUTED
ffc30b74: 38 a0 00 38 li r5,56 <== NOT EXECUTED
ffc30b78: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc30b7c: 48 01 fd 99 bl ffc50914 <memset> <== NOT EXECUTED
result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb );
ffc30b80: 81 3d 00 28 lwz r9,40(r29) <== NOT EXECUTED
ffc30b84: 38 7d 00 1c addi r3,r29,28 <== NOT EXECUTED
ffc30b88: 80 09 00 44 lwz r0,68(r9) <== NOT EXECUTED
ffc30b8c: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED
ffc30b90: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc30b94: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
ffc30b98: 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 );
ffc30b9c: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
ffc30ba0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc30ba4: 41 9e 00 1c beq- cr7,ffc30bc0 <statvfs+0xb0> <== NOT EXECUTED
ffc30ba8: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc30bac: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc30bb0: 41 9e 00 10 beq- cr7,ffc30bc0 <statvfs+0xb0> <== NOT EXECUTED
ffc30bb4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc30bb8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc30bbc: 4e 80 04 21 bctrl <== NOT EXECUTED
return result;
}
ffc30bc0: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED
ffc30bc4: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
ffc30bc8: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED
ffc30bcc: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc30bd0: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED
ffc30bd4: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED
ffc30bd8: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED
ffc30bdc: 4e 80 00 20 blr <== NOT EXECUTED
mt_entry = loc.mt_entry;
fs_mount_root = &mt_entry->mt_fs_root;
if ( !fs_mount_root->ops->statvfs_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc30be0: 48 01 bf 99 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc30be4: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc30be8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc30bec: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
ffc30bf0: 4b ff ff d0 b ffc30bc0 <statvfs+0xb0> <== NOT EXECUTED
ffc30bf4 <symlink>:
int symlink(
const char *actualpath,
const char *sympath
)
{
ffc30bf4: 94 21 ff c8 stwu r1,-56(r1)
ffc30bf8: 7c 08 02 a6 mflr r0
ffc30bfc: 93 a1 00 2c stw r29,44(r1)
ffc30c00: 7c 7d 1b 78 mr r29,r3
ffc30c04: 90 01 00 3c stw r0,60(r1)
ffc30c08: 93 c1 00 30 stw r30,48(r1)
ffc30c0c: 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 );
ffc30c10: 88 04 00 00 lbz r0,0(r4)
ffc30c14: 2f 80 00 2f cmpwi cr7,r0,47
ffc30c18: 41 9e 00 14 beq- cr7,ffc30c2c <symlink+0x38>
ffc30c1c: 2f 80 00 5c cmpwi cr7,r0,92
ffc30c20: 41 9e 00 0c beq- cr7,ffc30c2c <symlink+0x38>
ffc30c24: 2f 80 00 00 cmpwi cr7,r0,0
ffc30c28: 40 9e 00 d8 bne- cr7,ffc30d00 <symlink+0x10c>
ffc30c2c: 3d 20 00 00 lis r9,0
ffc30c30: 81 29 34 ec lwz r9,13548(r9)
ffc30c34: 38 60 00 01 li r3,1
ffc30c38: 80 09 00 24 lwz r0,36(r9)
ffc30c3c: 81 09 00 18 lwz r8,24(r9)
ffc30c40: 81 49 00 1c lwz r10,28(r9)
ffc30c44: 81 69 00 20 lwz r11,32(r9)
ffc30c48: 90 01 00 18 stw r0,24(r1)
ffc30c4c: 91 01 00 0c stw r8,12(r1)
ffc30c50: 91 41 00 10 stw r10,16(r1)
ffc30c54: 91 61 00 14 stw r11,20(r1)
ffc30c58: 80 09 00 28 lwz r0,40(r9)
if ( !loc.ops->evalformake_h ) {
ffc30c5c: 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 );
ffc30c60: 90 01 00 1c stw r0,28(r1)
if ( !loc.ops->evalformake_h ) {
ffc30c64: 80 09 00 04 lwz r0,4(r9)
ffc30c68: 2f 80 00 00 cmpwi cr7,r0,0
ffc30c6c: 41 9e 00 d8 beq- cr7,ffc30d44 <symlink+0x150>
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start );
ffc30c70: 3b e1 00 0c addi r31,r1,12
ffc30c74: 7c 09 03 a6 mtctr r0
ffc30c78: 7c 64 1a 14 add r3,r4,r3
ffc30c7c: 38 a1 00 08 addi r5,r1,8
ffc30c80: 7f e4 fb 78 mr r4,r31
if ( result != 0 )
ffc30c84: 3b c0 ff ff li r30,-1
if ( !loc.ops->evalformake_h ) {
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start );
ffc30c88: 4e 80 04 21 bctrl
if ( result != 0 )
ffc30c8c: 2f 83 00 00 cmpwi cr7,r3,0
ffc30c90: 40 9e 00 50 bne- cr7,ffc30ce0 <symlink+0xec>
return -1;
if ( !loc.ops->symlink_h ) {
ffc30c94: 81 21 00 18 lwz r9,24(r1)
ffc30c98: 80 09 00 38 lwz r0,56(r9)
ffc30c9c: 2f 80 00 00 cmpwi cr7,r0,0
ffc30ca0: 41 9e 00 d4 beq- cr7,ffc30d74 <symlink+0x180>
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->symlink_h)( &loc, actualpath, name_start);
ffc30ca4: 7f a4 eb 78 mr r4,r29
ffc30ca8: 80 a1 00 08 lwz r5,8(r1)
ffc30cac: 7f e3 fb 78 mr r3,r31
ffc30cb0: 7c 09 03 a6 mtctr r0
ffc30cb4: 4e 80 04 21 bctrl
rtems_filesystem_freenode( &loc );
ffc30cb8: 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);
ffc30cbc: 7c 7e 1b 78 mr r30,r3
rtems_filesystem_freenode( &loc );
ffc30cc0: 2f 89 00 00 cmpwi cr7,r9,0
ffc30cc4: 41 9e 00 1c beq- cr7,ffc30ce0 <symlink+0xec>
ffc30cc8: 80 09 00 1c lwz r0,28(r9)
ffc30ccc: 2f 80 00 00 cmpwi cr7,r0,0
ffc30cd0: 41 9e 00 10 beq- cr7,ffc30ce0 <symlink+0xec>
ffc30cd4: 7f e3 fb 78 mr r3,r31
ffc30cd8: 7c 09 03 a6 mtctr r0
ffc30cdc: 4e 80 04 21 bctrl
return result;
}
ffc30ce0: 80 01 00 3c lwz r0,60(r1)
ffc30ce4: 7f c3 f3 78 mr r3,r30
ffc30ce8: 83 a1 00 2c lwz r29,44(r1)
ffc30cec: 7c 08 03 a6 mtlr r0
ffc30cf0: 83 c1 00 30 lwz r30,48(r1)
ffc30cf4: 83 e1 00 34 lwz r31,52(r1)
ffc30cf8: 38 21 00 38 addi r1,r1,56
ffc30cfc: 4e 80 00 20 blr
rtems_filesystem_location_info_t loc;
int i;
const char *name_start;
int result;
rtems_filesystem_get_start_loc( sympath, &i, &loc );
ffc30d00: 3d 20 00 00 lis r9,0
ffc30d04: 81 29 34 ec lwz r9,13548(r9)
ffc30d08: 38 60 00 00 li r3,0
ffc30d0c: 80 09 00 10 lwz r0,16(r9)
ffc30d10: 81 09 00 04 lwz r8,4(r9)
ffc30d14: 81 49 00 08 lwz r10,8(r9)
ffc30d18: 81 69 00 0c lwz r11,12(r9)
ffc30d1c: 90 01 00 18 stw r0,24(r1)
ffc30d20: 91 01 00 0c stw r8,12(r1)
ffc30d24: 91 41 00 10 stw r10,16(r1)
ffc30d28: 91 61 00 14 stw r11,20(r1)
ffc30d2c: 80 09 00 14 lwz r0,20(r9)
if ( !loc.ops->evalformake_h ) {
ffc30d30: 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 );
ffc30d34: 90 01 00 1c stw r0,28(r1)
if ( !loc.ops->evalformake_h ) {
ffc30d38: 80 09 00 04 lwz r0,4(r9)
ffc30d3c: 2f 80 00 00 cmpwi cr7,r0,0
ffc30d40: 40 9e ff 30 bne+ cr7,ffc30c70 <symlink+0x7c>
if ( result != 0 )
return -1;
if ( !loc.ops->symlink_h ) {
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc30d44: 48 01 be 35 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc30d48: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc30d4c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc30d50: 3b c0 ff ff li r30,-1 <== NOT EXECUTED
result = (*loc.ops->symlink_h)( &loc, actualpath, name_start);
rtems_filesystem_freenode( &loc );
return result;
}
ffc30d54: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc30d58: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED
ffc30d5c: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED
ffc30d60: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc30d64: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED
ffc30d68: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED
ffc30d6c: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED
ffc30d70: 4e 80 00 20 blr <== NOT EXECUTED
result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start );
if ( result != 0 )
return -1;
if ( !loc.ops->symlink_h ) {
rtems_filesystem_freenode( &loc );
ffc30d74: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc30d78: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc30d7c: 41 be ff c8 beq- cr7,ffc30d44 <symlink+0x150> <== NOT EXECUTED
ffc30d80: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc30d84: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc30d88: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc30d8c: 4b ff ff b8 b ffc30d44 <symlink+0x150> <== NOT EXECUTED
ffc187fc <tcsetattr>:
int fd,
int opt,
struct termios *tp
)
{
switch (opt) {
ffc187fc: 2c 04 00 00 cmpwi r4,0
int tcsetattr(
int fd,
int opt,
struct termios *tp
)
{
ffc18800: 94 21 ff f0 stwu r1,-16(r1)
ffc18804: 7c 08 02 a6 mflr r0
ffc18808: 93 c1 00 08 stw r30,8(r1)
ffc1880c: 7c 7e 1b 78 mr r30,r3
ffc18810: 93 e1 00 0c stw r31,12(r1)
ffc18814: 7c bf 2b 78 mr r31,r5
ffc18818: 90 01 00 14 stw r0,20(r1)
switch (opt) {
ffc1881c: 41 82 00 50 beq- ffc1886c <tcsetattr+0x70>
ffc18820: 2f 84 00 01 cmpwi cr7,r4,1 <== NOT EXECUTED
ffc18824: 41 9e 00 2c beq- cr7,ffc18850 <tcsetattr+0x54> <== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc18828: 48 00 4d 5d bl ffc1d584 <__errno> <== NOT EXECUTED
ffc1882c: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc18830: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc18834: 38 60 ff ff li r3,-1 <== NOT EXECUTED
* Fall through to....
*/
case TCSANOW:
return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );
}
}
ffc18838: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED
ffc1883c: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED
ffc18840: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc18844: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED
ffc18848: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED
ffc1884c: 4e 80 00 20 blr <== NOT EXECUTED
switch (opt) {
default:
rtems_set_errno_and_return_minus_one( ENOTSUP );
case TCSADRAIN:
if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0)
ffc18850: 38 80 00 03 li r4,3 <== NOT EXECUTED
ffc18854: 38 a0 00 00 li r5,0 <== NOT EXECUTED
ffc18858: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED
ffc1885c: 48 00 3c 21 bl ffc1c47c <ioctl> <== NOT EXECUTED
ffc18860: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc18864: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc18868: 41 9c 00 18 blt- cr7,ffc18880 <tcsetattr+0x84> <== NOT EXECUTED
return -1;
/*
* Fall through to....
*/
case TCSANOW:
return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );
ffc1886c: 7f c3 f3 78 mr r3,r30
ffc18870: 7f e5 fb 78 mr r5,r31
ffc18874: 38 80 00 02 li r4,2
ffc18878: 4c c6 31 82 crclr 4*cr1+eq
ffc1887c: 48 00 3c 01 bl ffc1c47c <ioctl>
}
}
ffc18880: 80 01 00 14 lwz r0,20(r1)
ffc18884: 83 c1 00 08 lwz r30,8(r1)
ffc18888: 7c 08 03 a6 mtlr r0
ffc1888c: 83 e1 00 0c lwz r31,12(r1)
ffc18890: 38 21 00 10 addi r1,r1,16
ffc18894: 4e 80 00 20 blr
ffc117c0 <unlink>:
#include <rtems/seterr.h>
int unlink(
const char *path
)
{
ffc117c0: 94 21 ff b8 stwu r1,-72(r1)
ffc117c4: 7c 08 02 a6 mflr r0
ffc117c8: 93 c1 00 40 stw r30,64(r1)
ffc117cc: 93 e1 00 44 stw r31,68(r1)
ffc117d0: 7c 7f 1b 78 mr r31,r3
ffc117d4: 90 01 00 4c stw r0,76(r1)
ffc117d8: 93 81 00 38 stw r28,56(r1)
ffc117dc: 93 a1 00 3c stw r29,60(r1)
/*
* Get the node to be unlinked. Find the parent path first.
*/
parentpathlen = rtems_filesystem_dirname ( path );
ffc117e0: 4b ff 2b 59 bl ffc04338 <rtems_filesystem_dirname>
if ( parentpathlen == 0 )
ffc117e4: 7c 7e 1b 79 mr. r30,r3
ffc117e8: 40 82 02 50 bne- ffc11a38 <unlink+0x278>
rtems_filesystem_get_start_loc( path, &i, &parentloc );
ffc117ec: 88 1f 00 00 lbz r0,0(r31)
ffc117f0: 2f 80 00 2f cmpwi cr7,r0,47
ffc117f4: 41 9e 00 14 beq- cr7,ffc11808 <unlink+0x48>
ffc117f8: 2f 80 00 5c cmpwi cr7,r0,92
ffc117fc: 41 9e 00 0c beq- cr7,ffc11808 <unlink+0x48>
ffc11800: 2f 80 00 00 cmpwi cr7,r0,0
ffc11804: 40 9e 01 68 bne- cr7,ffc1196c <unlink+0x1ac>
ffc11808: 3d 20 00 00 lis r9,0
ffc1180c: 81 29 26 9c lwz r9,9884(r9)
ffc11810: 3b a0 00 00 li r29,0
ffc11814: 80 09 00 24 lwz r0,36(r9)
ffc11818: 81 09 00 18 lwz r8,24(r9)
ffc1181c: 81 49 00 1c lwz r10,28(r9)
ffc11820: 81 69 00 20 lwz r11,32(r9)
ffc11824: 91 01 00 08 stw r8,8(r1)
ffc11828: 91 41 00 0c stw r10,12(r1)
ffc1182c: 91 61 00 10 stw r11,16(r1)
ffc11830: 90 01 00 14 stw r0,20(r1)
ffc11834: 80 09 00 28 lwz r0,40(r9)
ffc11838: 90 01 00 18 stw r0,24(r1)
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
ffc1183c: 80 01 00 08 lwz r0,8(r1)
name = path + parentpathlen;
ffc11840: 7f df f2 14 add r30,r31,r30
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
ffc11844: 7f c3 f3 78 mr r3,r30
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
ffc11848: 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 ),
ffc1184c: 3b e1 00 1c addi r31,r1,28
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
ffc11850: 80 01 00 0c lwz r0,12(r1)
ffc11854: 90 01 00 20 stw r0,32(r1)
ffc11858: 80 01 00 10 lwz r0,16(r1)
ffc1185c: 90 01 00 24 stw r0,36(r1)
ffc11860: 80 01 00 14 lwz r0,20(r1)
ffc11864: 90 01 00 28 stw r0,40(r1)
ffc11868: 80 01 00 18 lwz r0,24(r1)
ffc1186c: 90 01 00 2c stw r0,44(r1)
name = path + parentpathlen;
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
ffc11870: 48 00 16 45 bl ffc12eb4 <strlen>
ffc11874: 7c 64 1b 78 mr r4,r3
ffc11878: 7f c3 f3 78 mr r3,r30
ffc1187c: 4b ff 2a 6d bl ffc042e8 <rtems_filesystem_prefix_separators>
ffc11880: 7f de 1a 14 add r30,r30,r3
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
ffc11884: 7f c3 f3 78 mr r3,r30
ffc11888: 48 00 16 2d bl ffc12eb4 <strlen>
ffc1188c: 38 a0 00 00 li r5,0
ffc11890: 7c 64 1b 78 mr r4,r3
ffc11894: 7f e6 fb 78 mr r6,r31
ffc11898: 7f c3 f3 78 mr r3,r30
ffc1189c: 38 e0 00 00 li r7,0
ffc118a0: 4b ff 2b 25 bl ffc043c4 <rtems_filesystem_evaluate_relative_path>
0, &loc, false );
if ( result != 0 ) {
ffc118a4: 2f 83 00 00 cmpwi cr7,r3,0
ffc118a8: 40 9e 00 fc bne- cr7,ffc119a4 <unlink+0x1e4>
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
return -1;
}
if ( !loc.ops->node_type_h ) {
ffc118ac: 81 21 00 28 lwz r9,40(r1)
ffc118b0: 80 09 00 10 lwz r0,16(r9)
ffc118b4: 2f 80 00 00 cmpwi cr7,r0,0
ffc118b8: 41 9e 01 28 beq- cr7,ffc119e0 <unlink+0x220>
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 ) {
ffc118bc: 7f e3 fb 78 mr r3,r31
ffc118c0: 7c 09 03 a6 mtctr r0
ffc118c4: 4e 80 04 21 bctrl
ffc118c8: 2f 83 00 01 cmpwi cr7,r3,1
ffc118cc: 41 9e 01 94 beq- cr7,ffc11a60 <unlink+0x2a0>
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
rtems_set_errno_and_return_minus_one( EISDIR );
}
if ( !loc.ops->unlink_h ) {
ffc118d0: 81 21 00 28 lwz r9,40(r1)
ffc118d4: 80 09 00 0c lwz r0,12(r9)
ffc118d8: 2f 80 00 00 cmpwi cr7,r0,0
ffc118dc: 41 9e 01 04 beq- cr7,ffc119e0 <unlink+0x220>
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->unlink_h)( &parentloc, &loc );
ffc118e0: 3b c1 00 08 addi r30,r1,8
ffc118e4: 7c 09 03 a6 mtctr r0
ffc118e8: 7f c3 f3 78 mr r3,r30
ffc118ec: 7f e4 fb 78 mr r4,r31
ffc118f0: 4e 80 04 21 bctrl
rtems_filesystem_freenode( &loc );
ffc118f4: 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 );
ffc118f8: 7c 7c 1b 78 mr r28,r3
rtems_filesystem_freenode( &loc );
ffc118fc: 2f 89 00 00 cmpwi cr7,r9,0
ffc11900: 41 9e 00 1c beq- cr7,ffc1191c <unlink+0x15c>
ffc11904: 80 09 00 1c lwz r0,28(r9)
ffc11908: 2f 80 00 00 cmpwi cr7,r0,0
ffc1190c: 41 9e 00 10 beq- cr7,ffc1191c <unlink+0x15c>
ffc11910: 7f e3 fb 78 mr r3,r31
ffc11914: 7c 09 03 a6 mtctr r0
ffc11918: 4e 80 04 21 bctrl
if ( free_parentloc )
ffc1191c: 2f 9d 00 00 cmpwi cr7,r29,0
ffc11920: 41 9e 00 28 beq- cr7,ffc11948 <unlink+0x188>
rtems_filesystem_freenode( &parentloc );
ffc11924: 81 21 00 14 lwz r9,20(r1)
ffc11928: 2f 89 00 00 cmpwi cr7,r9,0
ffc1192c: 41 9e 00 1c beq- cr7,ffc11948 <unlink+0x188>
ffc11930: 80 09 00 1c lwz r0,28(r9)
ffc11934: 2f 80 00 00 cmpwi cr7,r0,0
ffc11938: 41 9e 00 10 beq- cr7,ffc11948 <unlink+0x188>
ffc1193c: 7f c3 f3 78 mr r3,r30
ffc11940: 7c 09 03 a6 mtctr r0
ffc11944: 4e 80 04 21 bctrl
return result;
}
ffc11948: 80 01 00 4c lwz r0,76(r1)
ffc1194c: 7f 83 e3 78 mr r3,r28
ffc11950: 83 a1 00 3c lwz r29,60(r1)
ffc11954: 7c 08 03 a6 mtlr r0
ffc11958: 83 81 00 38 lwz r28,56(r1)
ffc1195c: 83 c1 00 40 lwz r30,64(r1)
ffc11960: 83 e1 00 44 lwz r31,68(r1)
ffc11964: 38 21 00 48 addi r1,r1,72
ffc11968: 4e 80 00 20 blr
*/
parentpathlen = rtems_filesystem_dirname ( path );
if ( parentpathlen == 0 )
rtems_filesystem_get_start_loc( path, &i, &parentloc );
ffc1196c: 3d 20 00 00 lis r9,0
ffc11970: 81 29 26 9c lwz r9,9884(r9)
ffc11974: 3b a0 00 00 li r29,0
ffc11978: 80 09 00 10 lwz r0,16(r9)
ffc1197c: 81 09 00 04 lwz r8,4(r9)
ffc11980: 81 49 00 08 lwz r10,8(r9)
ffc11984: 81 69 00 0c lwz r11,12(r9)
ffc11988: 91 01 00 08 stw r8,8(r1)
ffc1198c: 91 41 00 0c stw r10,12(r1)
ffc11990: 91 61 00 10 stw r11,16(r1)
ffc11994: 90 01 00 14 stw r0,20(r1)
ffc11998: 80 09 00 14 lwz r0,20(r9)
ffc1199c: 90 01 00 18 stw r0,24(r1)
ffc119a0: 4b ff fe 9c b ffc1183c <unlink+0x7c>
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
0, &loc, false );
if ( result != 0 ) {
if ( free_parentloc )
ffc119a4: 2f 9d 00 00 cmpwi cr7,r29,0
ffc119a8: 40 9e 00 0c bne- cr7,ffc119b4 <unlink+0x1f4>
result = (*loc.ops->unlink_h)( &parentloc, &loc );
rtems_filesystem_freenode( &loc );
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
ffc119ac: 3b 80 ff ff li r28,-1 <== NOT EXECUTED
ffc119b0: 4b ff ff 98 b ffc11948 <unlink+0x188> <== NOT EXECUTED
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
0, &loc, false );
if ( result != 0 ) {
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
ffc119b4: 81 21 00 14 lwz r9,20(r1)
ffc119b8: 2f 89 00 00 cmpwi cr7,r9,0
ffc119bc: 41 9e ff f0 beq+ cr7,ffc119ac <unlink+0x1ec>
ffc119c0: 80 09 00 1c lwz r0,28(r9)
ffc119c4: 2f 80 00 00 cmpwi cr7,r0,0
ffc119c8: 41 9e ff e4 beq+ cr7,ffc119ac <unlink+0x1ec>
ffc119cc: 38 61 00 08 addi r3,r1,8
ffc119d0: 7c 09 03 a6 mtctr r0
ffc119d4: 3b 80 ff ff li r28,-1
ffc119d8: 4e 80 04 21 bctrl
ffc119dc: 4b ff ff 6c b ffc11948 <unlink+0x188>
rtems_filesystem_freenode( &parentloc );
rtems_set_errno_and_return_minus_one( EISDIR );
}
if ( !loc.ops->unlink_h ) {
rtems_filesystem_freenode( &loc );
ffc119e0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc119e4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc119e8: 41 9e 00 10 beq- cr7,ffc119f8 <unlink+0x238> <== NOT EXECUTED
ffc119ec: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc119f0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc119f4: 4e 80 04 21 bctrl <== NOT EXECUTED
if ( free_parentloc )
ffc119f8: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED
ffc119fc: 41 9e 00 28 beq- cr7,ffc11a24 <unlink+0x264> <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
ffc11a00: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED
ffc11a04: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc11a08: 41 9e 00 1c beq- cr7,ffc11a24 <unlink+0x264> <== NOT EXECUTED
ffc11a0c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc11a10: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc11a14: 41 9e 00 10 beq- cr7,ffc11a24 <unlink+0x264> <== NOT EXECUTED
ffc11a18: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED
ffc11a1c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc11a20: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc11a24: 48 00 01 95 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc11a28: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc11a2c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc11a30: 3b 80 ff ff li r28,-1 <== NOT EXECUTED
ffc11a34: 4b ff ff 14 b ffc11948 <unlink+0x188> <== NOT EXECUTED
parentpathlen = rtems_filesystem_dirname ( path );
if ( parentpathlen == 0 )
rtems_filesystem_get_start_loc( path, &i, &parentloc );
else {
result = rtems_filesystem_evaluate_path( path, parentpathlen,
ffc11a38: 7f e3 fb 78 mr r3,r31
ffc11a3c: 7f c4 f3 78 mr r4,r30
ffc11a40: 38 a0 00 02 li r5,2
ffc11a44: 38 c1 00 08 addi r6,r1,8
ffc11a48: 38 e0 00 00 li r7,0
ffc11a4c: 4b ff 2a a1 bl ffc044ec <rtems_filesystem_evaluate_path>
RTEMS_LIBIO_PERMS_WRITE,
&parentloc,
false );
if ( result != 0 )
ffc11a50: 2f 83 00 00 cmpwi cr7,r3,0
ffc11a54: 40 be ff 58 bne- cr7,ffc119ac <unlink+0x1ec>
ffc11a58: 3b a0 00 01 li r29,1
ffc11a5c: 4b ff fd e0 b ffc1183c <unlink+0x7c>
rtems_filesystem_freenode( &parentloc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) {
rtems_filesystem_freenode( &loc );
ffc11a60: 81 21 00 28 lwz r9,40(r1)
ffc11a64: 2f 89 00 00 cmpwi cr7,r9,0
ffc11a68: 41 9e 00 1c beq- cr7,ffc11a84 <unlink+0x2c4>
ffc11a6c: 80 09 00 1c lwz r0,28(r9)
ffc11a70: 2f 80 00 00 cmpwi cr7,r0,0
ffc11a74: 41 9e 00 10 beq- cr7,ffc11a84 <unlink+0x2c4>
ffc11a78: 7f e3 fb 78 mr r3,r31
ffc11a7c: 7c 09 03 a6 mtctr r0
ffc11a80: 4e 80 04 21 bctrl
if ( free_parentloc )
ffc11a84: 2f 9d 00 00 cmpwi cr7,r29,0
ffc11a88: 41 9e 00 28 beq- cr7,ffc11ab0 <unlink+0x2f0>
rtems_filesystem_freenode( &parentloc );
ffc11a8c: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED
ffc11a90: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED
ffc11a94: 41 9e 00 1c beq- cr7,ffc11ab0 <unlink+0x2f0> <== NOT EXECUTED
ffc11a98: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc11a9c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc11aa0: 41 9e 00 10 beq- cr7,ffc11ab0 <unlink+0x2f0> <== NOT EXECUTED
ffc11aa4: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED
ffc11aa8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc11aac: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EISDIR );
ffc11ab0: 48 00 01 09 bl ffc11bb8 <__errno>
ffc11ab4: 38 00 00 15 li r0,21
ffc11ab8: 90 03 00 00 stw r0,0(r3)
ffc11abc: 3b 80 ff ff li r28,-1
ffc11ac0: 4b ff fe 88 b ffc11948 <unlink+0x188>
ffc30f08 <unmount>:
*/
int unmount(
const char *path
)
{
ffc30f08: 94 21 ff d0 stwu r1,-48(r1)
ffc30f0c: 7c 08 02 a6 mflr r0
ffc30f10: 93 c1 00 28 stw r30,40(r1)
ffc30f14: 7c 7e 1b 78 mr r30,r3
ffc30f18: 90 01 00 34 stw r0,52(r1)
ffc30f1c: 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 ) )
ffc30f20: 48 02 39 c5 bl ffc548e4 <strlen>
ffc30f24: 3b e1 00 08 addi r31,r1,8
ffc30f28: 7c 64 1b 78 mr r4,r3
ffc30f2c: 38 a0 00 00 li r5,0
ffc30f30: 7f c3 f3 78 mr r3,r30
ffc30f34: 7f e6 fb 78 mr r6,r31
ffc30f38: 38 e0 00 01 li r7,1
ffc30f3c: 4b fd 69 51 bl ffc0788c <rtems_filesystem_evaluate_path>
ffc30f40: 2f 83 00 00 cmpwi cr7,r3,0
ffc30f44: 40 9e 00 e0 bne- cr7,ffc31024 <unmount+0x11c>
return -1;
mt_entry = loc.mt_entry;
ffc30f48: 83 c1 00 18 lwz r30,24(r1)
fs_mount_loc = &mt_entry->mt_point_node;
fs_root_loc = &mt_entry->mt_fs_root;
ffc30f4c: 80 01 00 08 lwz r0,8(r1)
ffc30f50: 81 3e 00 1c lwz r9,28(r30)
ffc30f54: 7f 89 00 00 cmpw cr7,r9,r0
ffc30f58: 40 9e 01 7c bne- cr7,ffc310d4 <unmount+0x1cc>
/*
* Free the loc node and just use the nodes from the mt_entry .
*/
rtems_filesystem_freenode( &loc );
ffc30f5c: 81 21 00 14 lwz r9,20(r1)
ffc30f60: 2f 89 00 00 cmpwi cr7,r9,0
ffc30f64: 41 9e 00 1c beq- cr7,ffc30f80 <unmount+0x78>
ffc30f68: 80 09 00 1c lwz r0,28(r9)
ffc30f6c: 2f 80 00 00 cmpwi cr7,r0,0
ffc30f70: 41 9e 00 10 beq- cr7,ffc30f80 <unmount+0x78>
ffc30f74: 7f e3 fb 78 mr r3,r31
ffc30f78: 7c 09 03 a6 mtctr r0
ffc30f7c: 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;
ffc30f80: 81 3e 00 14 lwz r9,20(r30)
ffc30f84: 80 09 00 28 lwz r0,40(r9)
ffc30f88: 2f 80 00 00 cmpwi cr7,r0,0
ffc30f8c: 41 9e 01 b8 beq- cr7,ffc31144 <unmount+0x23c>
fs_root_loc = &mt_entry->mt_fs_root;
ffc30f90: 81 3e 00 28 lwz r9,40(r30)
ffc30f94: 80 09 00 2c lwz r0,44(r9)
ffc30f98: 2f 80 00 00 cmpwi cr7,r0,0
ffc30f9c: 41 9e 01 a8 beq- cr7,ffc31144 <unmount+0x23c>
* 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 )
ffc30fa0: 3d 20 00 00 lis r9,0
ffc30fa4: 81 29 34 ec lwz r9,13548(r9)
ffc30fa8: 80 09 00 14 lwz r0,20(r9)
ffc30fac: 7f 80 f0 00 cmpw cr7,r0,r30
ffc30fb0: 41 9e 00 90 beq- cr7,ffc31040 <unmount+0x138>
/*
* Search the mount table for any mount entries referencing this
* mount entry.
*/
for ( the_node = rtems_filesystem_mount_table_control.first;
ffc30fb4: 3d 60 00 00 lis r11,0
ffc30fb8: 81 2b 63 58 lwz r9,25432(r11)
ffc30fbc: 39 6b 63 58 addi r11,r11,25432
ffc30fc0: 39 6b 00 04 addi r11,r11,4
ffc30fc4: 7f 89 58 00 cmpw cr7,r9,r11
ffc30fc8: 41 9e 00 30 beq- cr7,ffc30ff8 <unmount+0xf0>
!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 ) {
ffc30fcc: 81 5e 00 2c lwz r10,44(r30)
ffc30fd0: 80 09 00 18 lwz r0,24(r9)
ffc30fd4: 7f 80 50 00 cmpw cr7,r0,r10
ffc30fd8: 40 be 00 14 bne+ cr7,ffc30fec <unmount+0xe4>
ffc30fdc: 48 00 00 64 b ffc31040 <unmount+0x138> <== NOT EXECUTED
ffc30fe0: 80 09 00 18 lwz r0,24(r9)
ffc30fe4: 7f 8a 00 00 cmpw cr7,r10,r0
ffc30fe8: 41 9e 00 58 beq- cr7,ffc31040 <unmount+0x138>
* 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 ) {
ffc30fec: 81 29 00 00 lwz r9,0(r9)
/*
* Search the mount table for any mount entries referencing this
* mount entry.
*/
for ( the_node = rtems_filesystem_mount_table_control.first;
ffc30ff0: 7f 89 58 00 cmpw cr7,r9,r11
ffc30ff4: 40 9e ff ec bne+ cr7,ffc30fe0 <unmount+0xd8>
* 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 )
ffc30ff8: 7f c3 f3 78 mr r3,r30
ffc30ffc: 4b fd 6d 15 bl ffc07d10 <rtems_libio_is_open_files_in_fs>
ffc31000: 2f 83 00 01 cmpwi cr7,r3,1
ffc31004: 41 9e 00 3c beq- cr7,ffc31040 <unmount+0x138>
* 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 )
ffc31008: 81 3e 00 14 lwz r9,20(r30)
ffc3100c: 7f c3 f3 78 mr r3,r30
ffc31010: 80 09 00 28 lwz r0,40(r9)
ffc31014: 7c 09 03 a6 mtctr r0
ffc31018: 4e 80 04 21 bctrl
ffc3101c: 2f 83 00 00 cmpwi cr7,r3,0
ffc31020: 41 9e 00 48 beq- cr7,ffc31068 <unmount+0x160>
*/
rtems_filesystem_freenode( fs_mount_loc );
free( mt_entry );
return 0;
ffc31024: 38 60 ff ff li r3,-1
}
ffc31028: 80 01 00 34 lwz r0,52(r1)
ffc3102c: 83 c1 00 28 lwz r30,40(r1)
ffc31030: 7c 08 03 a6 mtlr r0
ffc31034: 83 e1 00 2c lwz r31,44(r1)
ffc31038: 38 21 00 30 addi r1,r1,48
ffc3103c: 4e 80 00 20 blr
* 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 );
ffc31040: 48 01 bb 39 bl ffc4cb78 <__errno>
ffc31044: 38 00 00 10 li r0,16
ffc31048: 90 03 00 00 stw r0,0(r3)
ffc3104c: 38 60 ff ff li r3,-1
rtems_filesystem_freenode( fs_mount_loc );
free( mt_entry );
return 0;
}
ffc31050: 80 01 00 34 lwz r0,52(r1)
ffc31054: 83 c1 00 28 lwz r30,40(r1)
ffc31058: 7c 08 03 a6 mtlr r0
ffc3105c: 83 e1 00 2c lwz r31,44(r1)
ffc31060: 38 21 00 30 addi r1,r1,48
ffc31064: 4e 80 00 20 blr
* 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){
ffc31068: 81 3e 00 28 lwz r9,40(r30)
ffc3106c: 7f c3 f3 78 mr r3,r30
ffc31070: 80 09 00 2c lwz r0,44(r9)
ffc31074: 7c 09 03 a6 mtctr r0
ffc31078: 4e 80 04 21 bctrl
ffc3107c: 2f 83 00 00 cmpwi cr7,r3,0
ffc31080: 40 9e 00 a0 bne- cr7,ffc31120 <unmount+0x218>
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
ffc31084: 7f c3 f3 78 mr r3,r30
ffc31088: 4b fd c8 15 bl ffc0d89c <_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 );
ffc3108c: 81 3e 00 14 lwz r9,20(r30)
ffc31090: 2f 89 00 00 cmpwi cr7,r9,0
ffc31094: 41 9e 00 1c beq- cr7,ffc310b0 <unmount+0x1a8>
ffc31098: 80 09 00 1c lwz r0,28(r9)
ffc3109c: 2f 80 00 00 cmpwi cr7,r0,0
ffc310a0: 41 9e 00 10 beq- cr7,ffc310b0 <unmount+0x1a8>
ffc310a4: 38 7e 00 08 addi r3,r30,8
ffc310a8: 7c 09 03 a6 mtctr r0
ffc310ac: 4e 80 04 21 bctrl
free( mt_entry );
ffc310b0: 7f c3 f3 78 mr r3,r30
ffc310b4: 4b fd 68 e1 bl ffc07994 <free>
return 0;
}
ffc310b8: 80 01 00 34 lwz r0,52(r1)
* 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 );
free( mt_entry );
ffc310bc: 38 60 00 00 li r3,0
return 0;
}
ffc310c0: 83 c1 00 28 lwz r30,40(r1)
ffc310c4: 7c 08 03 a6 mtlr r0
ffc310c8: 83 e1 00 2c lwz r31,44(r1)
ffc310cc: 38 21 00 30 addi r1,r1,48
ffc310d0: 4e 80 00 20 blr
/*
* 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 );
ffc310d4: 81 21 00 14 lwz r9,20(r1)
ffc310d8: 2f 89 00 00 cmpwi cr7,r9,0
ffc310dc: 41 9e 00 1c beq- cr7,ffc310f8 <unmount+0x1f0>
ffc310e0: 80 09 00 1c lwz r0,28(r9)
ffc310e4: 2f 80 00 00 cmpwi cr7,r0,0
ffc310e8: 41 9e 00 10 beq- cr7,ffc310f8 <unmount+0x1f0>
ffc310ec: 7f e3 fb 78 mr r3,r31
ffc310f0: 7c 09 03 a6 mtctr r0
ffc310f4: 4e 80 04 21 bctrl
rtems_set_errno_and_return_minus_one( EACCES );
ffc310f8: 48 01 ba 81 bl ffc4cb78 <__errno>
ffc310fc: 38 00 00 0d li r0,13
ffc31100: 90 03 00 00 stw r0,0(r3)
ffc31104: 38 60 ff ff li r3,-1
rtems_filesystem_freenode( fs_mount_loc );
free( mt_entry );
return 0;
}
ffc31108: 80 01 00 34 lwz r0,52(r1)
ffc3110c: 83 c1 00 28 lwz r30,40(r1)
ffc31110: 7c 08 03 a6 mtlr r0
ffc31114: 83 e1 00 2c lwz r31,44(r1)
ffc31118: 38 21 00 30 addi r1,r1,48
ffc3111c: 4e 80 00 20 blr
* This was response was questionable but the best we could
* come up with.
*/
if ((fs_root_loc->ops->fsunmount_me_h )( mt_entry ) != 0){
if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 )
ffc31120: 81 3e 00 14 lwz r9,20(r30) <== NOT EXECUTED
ffc31124: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED
ffc31128: 80 09 00 20 lwz r0,32(r9) <== NOT EXECUTED
ffc3112c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc31130: 4e 80 04 21 bctrl <== NOT EXECUTED
ffc31134: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED
ffc31138: 41 9e fe ec beq+ cr7,ffc31024 <unmount+0x11c> <== NOT EXECUTED
rtems_fatal_error_occurred( 0 );
ffc3113c: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc31140: 4b fd c2 cd bl ffc0d40c <rtems_fatal_error_occurred> <== NOT EXECUTED
if ( !fs_mount_loc->ops->unmount_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( !fs_root_loc->ops->fsunmount_me_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc31144: 48 01 ba 35 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc31148: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc3114c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc31150: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc31154: 4b ff fe d4 b ffc31028 <unmount+0x120> <== NOT EXECUTED
ffc31158 <utime>:
int utime(
const char *path,
const struct utimbuf *times
)
{
ffc31158: 94 21 ff c8 stwu r1,-56(r1)
ffc3115c: 7c 08 02 a6 mflr r0
ffc31160: 93 a1 00 2c stw r29,44(r1)
ffc31164: 7c 7d 1b 78 mr r29,r3
ffc31168: 90 01 00 3c stw r0,60(r1)
ffc3116c: 93 c1 00 30 stw r30,48(r1)
ffc31170: 7c 9e 23 78 mr r30,r4
ffc31174: 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 ) )
ffc31178: 48 02 37 6d bl ffc548e4 <strlen>
ffc3117c: 3b e1 00 08 addi r31,r1,8
ffc31180: 7c 64 1b 78 mr r4,r3
ffc31184: 38 a0 00 00 li r5,0
ffc31188: 7f a3 eb 78 mr r3,r29
ffc3118c: 7f e6 fb 78 mr r6,r31
ffc31190: 38 e0 00 01 li r7,1
ffc31194: 4b fd 66 f9 bl ffc0788c <rtems_filesystem_evaluate_path>
ffc31198: 3b a0 ff ff li r29,-1
ffc3119c: 2f 83 00 00 cmpwi cr7,r3,0
ffc311a0: 40 9e 00 50 bne- cr7,ffc311f0 <utime+0x98>
return -1;
if ( !temp_loc.ops->utime_h ){
ffc311a4: 81 21 00 14 lwz r9,20(r1)
ffc311a8: 80 09 00 30 lwz r0,48(r9)
ffc311ac: 2f 80 00 00 cmpwi cr7,r0,0
ffc311b0: 41 9e 00 60 beq- cr7,ffc31210 <utime+0xb8>
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 );
ffc311b4: 80 be 00 04 lwz r5,4(r30)
ffc311b8: 7f e3 fb 78 mr r3,r31
ffc311bc: 80 9e 00 00 lwz r4,0(r30)
ffc311c0: 7c 09 03 a6 mtctr r0
ffc311c4: 4e 80 04 21 bctrl
rtems_filesystem_freenode( &temp_loc );
ffc311c8: 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 );
ffc311cc: 7c 7d 1b 78 mr r29,r3
rtems_filesystem_freenode( &temp_loc );
ffc311d0: 2f 89 00 00 cmpwi cr7,r9,0
ffc311d4: 41 9e 00 1c beq- cr7,ffc311f0 <utime+0x98>
ffc311d8: 80 09 00 1c lwz r0,28(r9)
ffc311dc: 2f 80 00 00 cmpwi cr7,r0,0
ffc311e0: 41 9e 00 10 beq- cr7,ffc311f0 <utime+0x98>
ffc311e4: 7f e3 fb 78 mr r3,r31
ffc311e8: 7c 09 03 a6 mtctr r0
ffc311ec: 4e 80 04 21 bctrl
return result;
}
ffc311f0: 80 01 00 3c lwz r0,60(r1)
ffc311f4: 7f a3 eb 78 mr r3,r29
ffc311f8: 83 c1 00 30 lwz r30,48(r1)
ffc311fc: 7c 08 03 a6 mtlr r0
ffc31200: 83 a1 00 2c lwz r29,44(r1)
ffc31204: 83 e1 00 34 lwz r31,52(r1)
ffc31208: 38 21 00 38 addi r1,r1,56
ffc3120c: 4e 80 00 20 blr
if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &temp_loc, true ) )
return -1;
if ( !temp_loc.ops->utime_h ){
rtems_filesystem_freenode( &temp_loc );
ffc31210: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED
ffc31214: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED
ffc31218: 41 9e 00 10 beq- cr7,ffc31228 <utime+0xd0> <== NOT EXECUTED
ffc3121c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED
ffc31220: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc31224: 4e 80 04 21 bctrl <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc31228: 48 01 b9 51 bl ffc4cb78 <__errno> <== NOT EXECUTED
ffc3122c: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc31230: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc31234: 3b a0 ff ff li r29,-1 <== NOT EXECUTED
ffc31238: 4b ff ff b8 b ffc311f0 <utime+0x98> <== NOT EXECUTED
ffc07a58 <vprintk>:
*/
void vprintk(
const char *fmt,
va_list ap
)
{
ffc07a58: 94 21 ff a8 stwu r1,-88(r1)
ffc07a5c: 7d 80 00 26 mfcr r12
ffc07a60: 7c 08 02 a6 mflr r0
ffc07a64: 93 01 00 38 stw r24,56(r1)
ffc07a68: 7c 98 23 78 mr r24,r4
ffc07a6c: 93 e1 00 54 stw r31,84(r1)
ffc07a70: 7c 7f 1b 78 mr r31,r3
ffc07a74: 90 01 00 5c stw r0,92(r1)
ffc07a78: 92 c1 00 30 stw r22,48(r1)
ffc07a7c: 92 e1 00 34 stw r23,52(r1)
ffc07a80: 93 21 00 3c stw r25,60(r1)
ffc07a84: 93 41 00 40 stw r26,64(r1)
ffc07a88: 93 61 00 44 stw r27,68(r1)
ffc07a8c: 93 81 00 48 stw r28,72(r1)
ffc07a90: 93 a1 00 4c stw r29,76(r1)
ffc07a94: 93 c1 00 50 stw r30,80(r1)
ffc07a98: 91 81 00 2c stw r12,44(r1)
for (; *fmt != '\0'; fmt++) {
ffc07a9c: 88 63 00 00 lbz r3,0(r3)
ffc07aa0: 2f 83 00 00 cmpwi cr7,r3,0
ffc07aa4: 41 9e 01 08 beq- cr7,ffc07bac <vprintk+0x154>
bool sign = false;
char lead = ' ';
char c;
if (*fmt != '%') {
BSP_output_char(*fmt);
ffc07aa8: 3f 80 00 00 lis r28,0
ffc07aac: 3f 40 ff c2 lis r26,-62
unsigned i, len;
char *s, *str;
str = va_arg(ap, char *);
if ( str == NULL ) {
ffc07ab0: 3e c0 ff c2 lis r22,-62
bool sign = false;
char lead = ' ';
char c;
if (*fmt != '%') {
BSP_output_char(*fmt);
ffc07ab4: 3b 9c 26 94 addi r28,r28,9876
ffc07ab8: 3b 5a df ec addi r26,r26,-8212
unsigned i, len;
char *s, *str;
str = va_arg(ap, char *);
if ( str == NULL ) {
ffc07abc: 3a d6 d5 b4 addi r22,r22,-10828
toPrint[count++] = (char) unsigned_num;
for (n=maxwidth ; n > count; n-- )
BSP_output_char(lead);
for (n = 0; n < count; n++) {
ffc07ac0: 3a e1 00 08 addi r23,r1,8
bool minus = false;
bool sign = false;
char lead = ' ';
char c;
if (*fmt != '%') {
ffc07ac4: 2f 83 00 25 cmpwi cr7,r3,37
ffc07ac8: 40 9e 00 cc bne- cr7,ffc07b94 <vprintk+0x13c>
BSP_output_char(*fmt);
continue;
}
fmt++;
if (*fmt == '0' ) {
ffc07acc: 8c 7f 00 01 lbzu r3,1(r31)
ffc07ad0: 3b 20 00 20 li r25,32
ffc07ad4: 2f 83 00 30 cmpwi cr7,r3,48
ffc07ad8: 41 9e 02 20 beq- cr7,ffc07cf8 <vprintk+0x2a0>
lead = '0';
fmt++;
}
if (*fmt == '-' ) {
ffc07adc: 2f 83 00 2d cmpwi cr7,r3,45
ffc07ae0: 39 20 00 00 li r9,0
ffc07ae4: 41 9e 02 08 beq- cr7,ffc07cec <vprintk+0x294>
minus = true;
fmt++;
}
while (*fmt >= '0' && *fmt <= '9' ) {
ffc07ae8: 38 03 ff d0 addi r0,r3,-48
ffc07aec: 54 00 06 3e clrlwi r0,r0,24
ffc07af0: 2b 80 00 09 cmplwi cr7,r0,9
ffc07af4: 3b c0 00 00 li r30,0
ffc07af8: 41 9d 00 24 bgt- cr7,ffc07b1c <vprintk+0xc4>
width *= 10;
width += ((unsigned) *fmt - '0');
ffc07afc: 1f de 00 0a mulli r30,r30,10
ffc07b00: 7f de 1a 14 add r30,r30,r3
}
if (*fmt == '-' ) {
minus = true;
fmt++;
}
while (*fmt >= '0' && *fmt <= '9' ) {
ffc07b04: 8c 7f 00 01 lbzu r3,1(r31)
width *= 10;
width += ((unsigned) *fmt - '0');
ffc07b08: 3b de ff d0 addi r30,r30,-48
}
if (*fmt == '-' ) {
minus = true;
fmt++;
}
while (*fmt >= '0' && *fmt <= '9' ) {
ffc07b0c: 38 03 ff d0 addi r0,r3,-48
ffc07b10: 54 00 06 3e clrlwi r0,r0,24
ffc07b14: 2b 80 00 09 cmplwi cr7,r0,9
ffc07b18: 40 9d ff e4 ble+ cr7,ffc07afc <vprintk+0xa4>
width *= 10;
width += ((unsigned) *fmt - '0');
fmt++;
}
if ((c = *fmt) == 'l') {
ffc07b1c: 2f 83 00 6c cmpwi cr7,r3,108
ffc07b20: 41 9e 02 18 beq- cr7,ffc07d38 <vprintk+0x2e0>
lflag = true;
c = *++fmt;
}
if ( c == 'c' ) {
ffc07b24: 2f 83 00 63 cmpwi cr7,r3,99
ffc07b28: 41 9e 01 dc beq- cr7,ffc07d04 <vprintk+0x2ac>
/* need a cast here since va_arg() only takes fully promoted types */
char chr = (char) va_arg(ap, int);
BSP_output_char(chr);
continue;
}
if ( c == 's' ) {
ffc07b2c: 2f 83 00 73 cmpwi cr7,r3,115
ffc07b30: 41 9e 02 2c beq- cr7,ffc07d5c <vprintk+0x304>
continue;
}
/* must be a numeric format or something unsupported */
if ( c == 'o' || c == 'O' ) {
ffc07b34: 2f 83 00 6f cmpwi cr7,r3,111
ffc07b38: 41 9e 02 18 beq- cr7,ffc07d50 <vprintk+0x2f8>
ffc07b3c: 2f 83 00 4f cmpwi cr7,r3,79
ffc07b40: 41 9e 02 10 beq- cr7,ffc07d50 <vprintk+0x2f8>
base = 8; sign = false;
} else if ( c == 'i' || c == 'I' ||
ffc07b44: 2f 83 00 69 cmpwi cr7,r3,105
ffc07b48: 41 9e 00 a4 beq- cr7,ffc07bec <vprintk+0x194>
ffc07b4c: 2f 83 00 49 cmpwi cr7,r3,73
ffc07b50: 41 9e 00 9c beq- cr7,ffc07bec <vprintk+0x194>
ffc07b54: 2f 83 00 64 cmpwi cr7,r3,100
ffc07b58: 41 9e 00 94 beq- cr7,ffc07bec <vprintk+0x194>
ffc07b5c: 2f 83 00 44 cmpwi cr7,r3,68
ffc07b60: 41 9e 00 8c beq- cr7,ffc07bec <vprintk+0x194>
c == 'd' || c == 'D' ) {
base = 10; sign = true;
} else if ( c == 'u' || c == 'U' ) {
ffc07b64: 2f 83 00 75 cmpwi cr7,r3,117
ffc07b68: 41 9e 03 60 beq- cr7,ffc07ec8 <vprintk+0x470>
ffc07b6c: 2f 83 00 55 cmpwi cr7,r3,85
ffc07b70: 41 9e 03 58 beq- cr7,ffc07ec8 <vprintk+0x470>
base = 10; sign = false;
} else if ( c == 'x' || c == 'X' ) {
ffc07b74: 2f 83 00 78 cmpwi cr7,r3,120
ffc07b78: 41 9e 03 5c beq- cr7,ffc07ed4 <vprintk+0x47c>
ffc07b7c: 2f 83 00 58 cmpwi cr7,r3,88
ffc07b80: 41 9e 03 54 beq- cr7,ffc07ed4 <vprintk+0x47c>
base = 16; sign = false;
} else if ( c == 'p' ) {
ffc07b84: 2f 83 00 70 cmpwi cr7,r3,112
ffc07b88: 39 20 00 00 li r9,0
ffc07b8c: 3b a0 00 10 li r29,16
ffc07b90: 41 9e 00 64 beq- cr7,ffc07bf4 <vprintk+0x19c>
c = *++fmt;
}
if ( c == 'c' ) {
/* need a cast here since va_arg() only takes fully promoted types */
char chr = (char) va_arg(ap, int);
BSP_output_char(chr);
ffc07b94: 80 1c 00 00 lwz r0,0(r28)
ffc07b98: 7c 09 03 a6 mtctr r0
ffc07b9c: 4e 80 04 21 bctrl
void vprintk(
const char *fmt,
va_list ap
)
{
for (; *fmt != '\0'; fmt++) {
ffc07ba0: 8c 7f 00 01 lbzu r3,1(r31)
ffc07ba4: 2f 83 00 00 cmpwi cr7,r3,0
ffc07ba8: 40 9e ff 1c bne+ cr7,ffc07ac4 <vprintk+0x6c>
sign,
width,
lead
);
}
}
ffc07bac: 80 01 00 5c lwz r0,92(r1)
ffc07bb0: 81 81 00 2c lwz r12,44(r1)
ffc07bb4: 7c 08 03 a6 mtlr r0
ffc07bb8: 82 c1 00 30 lwz r22,48(r1)
ffc07bbc: 82 e1 00 34 lwz r23,52(r1)
ffc07bc0: 7d 80 81 20 mtcrf 8,r12
ffc07bc4: 83 01 00 38 lwz r24,56(r1)
ffc07bc8: 83 21 00 3c lwz r25,60(r1)
ffc07bcc: 83 41 00 40 lwz r26,64(r1)
ffc07bd0: 83 61 00 44 lwz r27,68(r1)
ffc07bd4: 83 81 00 48 lwz r28,72(r1)
ffc07bd8: 83 a1 00 4c lwz r29,76(r1)
ffc07bdc: 83 c1 00 50 lwz r30,80(r1)
ffc07be0: 83 e1 00 54 lwz r31,84(r1)
ffc07be4: 38 21 00 58 addi r1,r1,88
ffc07be8: 4e 80 00 20 blr
base = 16; sign = false;
} else if ( c == 'p' ) {
base = 16; sign = false; lflag = true;
} else {
BSP_output_char(c);
continue;
ffc07bec: 39 20 00 01 li r9,1
ffc07bf0: 3b a0 00 0a li r29,10
}
printNum(
lflag ? va_arg(ap, long) : (long) va_arg(ap, int),
ffc07bf4: 89 78 00 00 lbz r11,0(r24)
ffc07bf8: 2b 8b 00 07 cmplwi cr7,r11,7
ffc07bfc: 41 9d 01 44 bgt- cr7,ffc07d40 <vprintk+0x2e8>
ffc07c00: 38 0b 00 01 addi r0,r11,1
ffc07c04: 81 58 00 08 lwz r10,8(r24)
ffc07c08: 55 6b 10 3a rlwinm r11,r11,2,0,29
ffc07c0c: 98 18 00 00 stb r0,0(r24)
ffc07c10: 7d 6a 5a 14 add r11,r10,r11
unsigned long unsigned_num;
unsigned long n;
unsigned count;
char toPrint[20];
if ( sign && (num < 0) ) {
ffc07c14: 2f 89 00 00 cmpwi cr7,r9,0
} else {
BSP_output_char(c);
continue;
}
printNum(
ffc07c18: 83 6b 00 00 lwz r27,0(r11)
unsigned long unsigned_num;
unsigned long n;
unsigned count;
char toPrint[20];
if ( sign && (num < 0) ) {
ffc07c1c: 41 9e 00 0c beq- cr7,ffc07c28 <vprintk+0x1d0>
ffc07c20: 2f 9b 00 00 cmpwi cr7,r27,0
ffc07c24: 41 9c 02 80 blt- cr7,ffc07ea4 <vprintk+0x44c>
BSP_output_char('-');
unsigned_num = (unsigned long) -num;
if (maxwidth) maxwidth--;
} else {
unsigned_num = (unsigned long) num;
ffc07c28: 7f 6a db 78 mr r10,r27
}
count = 0;
while ((n = unsigned_num / base) > 0) {
ffc07c2c: 7c 0a eb 96 divwu r0,r10,r29
ffc07c30: 2f 80 00 00 cmpwi cr7,r0,0
ffc07c34: 57 a7 06 3e clrlwi r7,r29,24
ffc07c38: 39 20 00 00 li r9,0
ffc07c3c: 3b 60 00 01 li r27,1
ffc07c40: 40 be 00 10 bne+ cr7,ffc07c50 <vprintk+0x1f8>
ffc07c44: 48 00 00 34 b ffc07c78 <vprintk+0x220>
ffc07c48: 7c 0a 03 78 mr r10,r0
ffc07c4c: 7d 60 5b 78 mr r0,r11
ffc07c50: 7d 60 eb 96 divwu r11,r0,r29
ffc07c54: 2f 8b 00 00 cmpwi cr7,r11,0
toPrint[count++] = (char) (unsigned_num - (n * base));
ffc07c58: 7f 67 01 d6 mullw r27,r7,r0
ffc07c5c: 7d 01 4a 14 add r8,r1,r9
ffc07c60: 7d 5b 50 50 subf r10,r27,r10
ffc07c64: 99 48 00 08 stb r10,8(r8)
ffc07c68: 39 29 00 01 addi r9,r9,1
} else {
unsigned_num = (unsigned long) num;
}
count = 0;
while ((n = unsigned_num / base) > 0) {
ffc07c6c: 40 9e ff dc bne+ cr7,ffc07c48 <vprintk+0x1f0>
ffc07c70: 7c 0a 03 78 mr r10,r0
ffc07c74: 3b 69 00 01 addi r27,r9,1
toPrint[count++] = (char) (unsigned_num - (n * base));
unsigned_num = n;
}
toPrint[count++] = (char) unsigned_num;
for (n=maxwidth ; n > count; n-- )
ffc07c78: 7f 9e d8 40 cmplw cr7,r30,r27
count = 0;
while ((n = unsigned_num / base) > 0) {
toPrint[count++] = (char) (unsigned_num - (n * base));
unsigned_num = n;
}
toPrint[count++] = (char) unsigned_num;
ffc07c7c: 7d 21 4a 14 add r9,r1,r9
ffc07c80: 99 49 00 08 stb r10,8(r9)
for (n=maxwidth ; n > count; n-- )
ffc07c84: 40 9d 00 20 ble- cr7,ffc07ca4 <vprintk+0x24c>
BSP_output_char(lead);
ffc07c88: 80 1c 00 00 lwz r0,0(r28)
ffc07c8c: 7f 23 cb 78 mr r3,r25
toPrint[count++] = (char) (unsigned_num - (n * base));
unsigned_num = n;
}
toPrint[count++] = (char) unsigned_num;
for (n=maxwidth ; n > count; n-- )
ffc07c90: 3b de ff ff addi r30,r30,-1
BSP_output_char(lead);
ffc07c94: 7c 09 03 a6 mtctr r0
ffc07c98: 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-- )
ffc07c9c: 7f 9e d8 40 cmplw cr7,r30,r27
ffc07ca0: 41 9d ff e8 bgt+ cr7,ffc07c88 <vprintk+0x230>
BSP_output_char(lead);
for (n = 0; n < count; n++) {
ffc07ca4: 2f 9b 00 00 cmpwi cr7,r27,0
ffc07ca8: 41 be fe f8 beq- cr7,ffc07ba0 <vprintk+0x148>
ffc07cac: 3b bb ff ff addi r29,r27,-1
ffc07cb0: 7f b7 ea 14 add r29,r23,r29
ffc07cb4: 3b c0 00 00 li r30,0
BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]);
ffc07cb8: 89 3d 00 00 lbz r9,0(r29)
toPrint[count++] = (char) unsigned_num;
for (n=maxwidth ; n > count; n-- )
BSP_output_char(lead);
for (n = 0; n < count; n++) {
ffc07cbc: 3b de 00 01 addi r30,r30,1
BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]);
ffc07cc0: 80 1c 00 00 lwz r0,0(r28)
toPrint[count++] = (char) unsigned_num;
for (n=maxwidth ; n > count; n-- )
BSP_output_char(lead);
for (n = 0; n < count; n++) {
ffc07cc4: 3b bd ff ff addi r29,r29,-1
BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]);
ffc07cc8: 7c 7a 48 ae lbzx r3,r26,r9
ffc07ccc: 7c 09 03 a6 mtctr r0
ffc07cd0: 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++) {
ffc07cd4: 7f 9e d8 40 cmplw cr7,r30,r27
ffc07cd8: 41 9c ff e0 blt+ cr7,ffc07cb8 <vprintk+0x260>
void vprintk(
const char *fmt,
va_list ap
)
{
for (; *fmt != '\0'; fmt++) {
ffc07cdc: 8c 7f 00 01 lbzu r3,1(r31)
ffc07ce0: 2f 83 00 00 cmpwi cr7,r3,0
ffc07ce4: 40 9e fd e0 bne+ cr7,ffc07ac4 <vprintk+0x6c>
ffc07ce8: 4b ff fe c4 b ffc07bac <vprintk+0x154> <== NOT EXECUTED
lead = '0';
fmt++;
}
if (*fmt == '-' ) {
minus = true;
fmt++;
ffc07cec: 8c 7f 00 01 lbzu r3,1(r31)
ffc07cf0: 39 20 00 01 li r9,1
ffc07cf4: 4b ff fd f4 b ffc07ae8 <vprintk+0x90>
continue;
}
fmt++;
if (*fmt == '0' ) {
lead = '0';
fmt++;
ffc07cf8: 8c 7f 00 01 lbzu r3,1(r31)
ffc07cfc: 3b 20 00 30 li r25,48
ffc07d00: 4b ff fd dc b ffc07adc <vprintk+0x84>
lflag = true;
c = *++fmt;
}
if ( c == 'c' ) {
/* need a cast here since va_arg() only takes fully promoted types */
char chr = (char) va_arg(ap, int);
ffc07d04: 89 38 00 00 lbz r9,0(r24)
ffc07d08: 2b 89 00 07 cmplwi cr7,r9,7
ffc07d0c: 41 9d 01 64 bgt- cr7,ffc07e70 <vprintk+0x418>
ffc07d10: 38 09 00 01 addi r0,r9,1
ffc07d14: 81 78 00 08 lwz r11,8(r24)
ffc07d18: 55 29 10 3a rlwinm r9,r9,2,0,29
ffc07d1c: 98 18 00 00 stb r0,0(r24)
ffc07d20: 7d 2b 4a 14 add r9,r11,r9
BSP_output_char(chr);
ffc07d24: 88 69 00 03 lbz r3,3(r9)
ffc07d28: 80 1c 00 00 lwz r0,0(r28)
ffc07d2c: 7c 09 03 a6 mtctr r0
ffc07d30: 4e 80 04 21 bctrl
ffc07d34: 4b ff fe 6c b ffc07ba0 <vprintk+0x148>
fmt++;
}
if ((c = *fmt) == 'l') {
lflag = true;
c = *++fmt;
ffc07d38: 8c 7f 00 01 lbzu r3,1(r31)
ffc07d3c: 4b ff fd e8 b ffc07b24 <vprintk+0xcc>
BSP_output_char(c);
continue;
}
printNum(
lflag ? va_arg(ap, long) : (long) va_arg(ap, int),
ffc07d40: 81 78 00 04 lwz r11,4(r24)
ffc07d44: 38 0b 00 04 addi r0,r11,4
ffc07d48: 90 18 00 04 stw r0,4(r24)
ffc07d4c: 4b ff fe c8 b ffc07c14 <vprintk+0x1bc>
base = 16; sign = false;
} else if ( c == 'p' ) {
base = 16; sign = false; lflag = true;
} else {
BSP_output_char(c);
continue;
ffc07d50: 39 20 00 00 li r9,0
ffc07d54: 3b a0 00 08 li r29,8
ffc07d58: 4b ff fe 9c b ffc07bf4 <vprintk+0x19c>
}
if ( c == 's' ) {
unsigned i, len;
char *s, *str;
str = va_arg(ap, char *);
ffc07d5c: 89 78 00 00 lbz r11,0(r24)
ffc07d60: 2b 8b 00 07 cmplwi cr7,r11,7
ffc07d64: 41 9d 01 20 bgt- cr7,ffc07e84 <vprintk+0x42c>
ffc07d68: 38 0b 00 01 addi r0,r11,1
ffc07d6c: 81 58 00 08 lwz r10,8(r24)
ffc07d70: 55 6b 10 3a rlwinm r11,r11,2,0,29
ffc07d74: 98 18 00 00 stb r0,0(r24)
ffc07d78: 7d 6a 5a 14 add r11,r10,r11
ffc07d7c: 83 6b 00 00 lwz r27,0(r11)
if ( str == NULL ) {
ffc07d80: 2f 9b 00 00 cmpwi cr7,r27,0
ffc07d84: 41 9e 01 18 beq- cr7,ffc07e9c <vprintk+0x444>
str = "";
}
/* calculate length of string */
for ( len=0, s=str ; *s ; len++, s++ )
ffc07d88: 88 1b 00 00 lbz r0,0(r27)
ffc07d8c: 3b a0 00 00 li r29,0
ffc07d90: 2f 80 00 00 cmpwi cr7,r0,0
ffc07d94: 41 9e 00 14 beq- cr7,ffc07da8 <vprintk+0x350>
ffc07d98: 3b bd 00 01 addi r29,r29,1
ffc07d9c: 7c 1b e8 ae lbzx r0,r27,r29
ffc07da0: 2f 80 00 00 cmpwi cr7,r0,0
ffc07da4: 40 9e ff f4 bne+ cr7,ffc07d98 <vprintk+0x340>
;
/* leading spaces */
if ( !minus )
ffc07da8: 2e 09 00 00 cmpwi cr4,r9,0
ffc07dac: 40 92 00 2c bne- cr4,ffc07dd8 <vprintk+0x380>
for ( i=len ; i<width ; i++ )
ffc07db0: 7f 9d f0 40 cmplw cr7,r29,r30
ffc07db4: 40 9c 00 24 bge- cr7,ffc07dd8 <vprintk+0x380>
ffc07db8: 7f b9 eb 78 mr r25,r29
BSP_output_char(' ');
ffc07dbc: 80 1c 00 00 lwz r0,0(r28)
ffc07dc0: 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++ )
ffc07dc4: 3b 39 00 01 addi r25,r25,1
BSP_output_char(' ');
ffc07dc8: 7c 09 03 a6 mtctr r0
ffc07dcc: 4e 80 04 21 bctrl
for ( len=0, s=str ; *s ; len++, s++ )
;
/* leading spaces */
if ( !minus )
for ( i=len ; i<width ; i++ )
ffc07dd0: 7f 99 f0 40 cmplw cr7,r25,r30
ffc07dd4: 41 9c ff e8 blt+ cr7,ffc07dbc <vprintk+0x364>
BSP_output_char(' ');
/* no width option */
if (width == 0) {
ffc07dd8: 2f 9e 00 00 cmpwi cr7,r30,0
ffc07ddc: 40 9e 00 10 bne- cr7,ffc07dec <vprintk+0x394>
width = len;
}
/* output the string */
for ( i=0 ; i<width && *str ; str++ )
ffc07de0: 2f 9d 00 00 cmpwi cr7,r29,0
ffc07de4: 41 9e 00 44 beq- cr7,ffc07e28 <vprintk+0x3d0>
ffc07de8: 7f be eb 78 mr r30,r29
ffc07dec: 88 7b 00 00 lbz r3,0(r27)
ffc07df0: 2f 83 00 00 cmpwi cr7,r3,0
ffc07df4: 41 9e 00 34 beq- cr7,ffc07e28 <vprintk+0x3d0>
BSP_output_char(*str);
ffc07df8: 80 1c 00 00 lwz r0,0(r28)
if (width == 0) {
width = len;
}
/* output the string */
for ( i=0 ; i<width && *str ; str++ )
ffc07dfc: 3b 7b 00 01 addi r27,r27,1
BSP_output_char(*str);
ffc07e00: 7c 09 03 a6 mtctr r0
ffc07e04: 4e 80 04 21 bctrl
ffc07e08: 48 00 00 10 b ffc07e18 <vprintk+0x3c0>
ffc07e0c: 80 1c 00 00 lwz r0,0(r28)
ffc07e10: 7c 09 03 a6 mtctr r0
ffc07e14: 4e 80 04 21 bctrl
if (width == 0) {
width = len;
}
/* output the string */
for ( i=0 ; i<width && *str ; str++ )
ffc07e18: 88 7b 00 00 lbz r3,0(r27)
ffc07e1c: 3b 7b 00 01 addi r27,r27,1
ffc07e20: 2f 83 00 00 cmpwi cr7,r3,0
ffc07e24: 40 9e ff e8 bne+ cr7,ffc07e0c <vprintk+0x3b4>
BSP_output_char(*str);
/* trailing spaces */
if ( minus )
ffc07e28: 41 b2 fd 78 beq- cr4,ffc07ba0 <vprintk+0x148>
for ( i=len ; i<width ; i++ )
ffc07e2c: 7f 9d f0 40 cmplw cr7,r29,r30
ffc07e30: 40 bc fd 70 bge- cr7,ffc07ba0 <vprintk+0x148>
BSP_output_char(' ');
ffc07e34: 80 1c 00 00 lwz r0,0(r28)
ffc07e38: 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++ )
ffc07e3c: 3b bd 00 01 addi r29,r29,1
BSP_output_char(' ');
ffc07e40: 7c 09 03 a6 mtctr r0
ffc07e44: 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++ )
ffc07e48: 7f 9d f0 40 cmplw cr7,r29,r30
ffc07e4c: 40 bc fd 54 bge- cr7,ffc07ba0 <vprintk+0x148>
BSP_output_char(' ');
ffc07e50: 80 1c 00 00 lwz r0,0(r28)
ffc07e54: 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++ )
ffc07e58: 3b bd 00 01 addi r29,r29,1
BSP_output_char(' ');
ffc07e5c: 7c 09 03 a6 mtctr r0
ffc07e60: 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++ )
ffc07e64: 7f 9d f0 40 cmplw cr7,r29,r30
ffc07e68: 41 9c ff cc blt+ cr7,ffc07e34 <vprintk+0x3dc>
ffc07e6c: 4b ff fd 34 b ffc07ba0 <vprintk+0x148>
lflag = true;
c = *++fmt;
}
if ( c == 'c' ) {
/* need a cast here since va_arg() only takes fully promoted types */
char chr = (char) va_arg(ap, int);
ffc07e70: 81 38 00 04 lwz r9,4(r24) <== NOT EXECUTED
ffc07e74: 38 09 00 04 addi r0,r9,4 <== NOT EXECUTED
ffc07e78: 90 18 00 04 stw r0,4(r24) <== NOT EXECUTED
BSP_output_char(chr);
ffc07e7c: 88 69 00 03 lbz r3,3(r9) <== NOT EXECUTED
ffc07e80: 4b ff fe a8 b ffc07d28 <vprintk+0x2d0> <== NOT EXECUTED
}
if ( c == 's' ) {
unsigned i, len;
char *s, *str;
str = va_arg(ap, char *);
ffc07e84: 81 78 00 04 lwz r11,4(r24) <== NOT EXECUTED
ffc07e88: 38 0b 00 04 addi r0,r11,4 <== NOT EXECUTED
ffc07e8c: 90 18 00 04 stw r0,4(r24) <== NOT EXECUTED
ffc07e90: 83 6b 00 00 lwz r27,0(r11) <== NOT EXECUTED
if ( str == NULL ) {
ffc07e94: 2f 9b 00 00 cmpwi cr7,r27,0 <== NOT EXECUTED
ffc07e98: 40 9e fe f0 bne+ cr7,ffc07d88 <vprintk+0x330> <== NOT EXECUTED
ffc07e9c: 7e db b3 78 mr r27,r22
ffc07ea0: 4b ff fe e8 b ffc07d88 <vprintk+0x330>
unsigned long n;
unsigned count;
char toPrint[20];
if ( sign && (num < 0) ) {
BSP_output_char('-');
ffc07ea4: 80 1c 00 00 lwz r0,0(r28)
ffc07ea8: 38 60 00 2d li r3,45
ffc07eac: 7c 09 03 a6 mtctr r0
ffc07eb0: 4e 80 04 21 bctrl
unsigned_num = (unsigned long) -num;
if (maxwidth) maxwidth--;
ffc07eb4: 31 3e ff ff addic r9,r30,-1
ffc07eb8: 7c 09 f1 10 subfe r0,r9,r30
ffc07ebc: 7f c0 f0 50 subf r30,r0,r30
unsigned count;
char toPrint[20];
if ( sign && (num < 0) ) {
BSP_output_char('-');
unsigned_num = (unsigned long) -num;
ffc07ec0: 7d 5b 00 d0 neg r10,r27
ffc07ec4: 4b ff fd 68 b ffc07c2c <vprintk+0x1d4>
base = 16; sign = false;
} else if ( c == 'p' ) {
base = 16; sign = false; lflag = true;
} else {
BSP_output_char(c);
continue;
ffc07ec8: 39 20 00 00 li r9,0
ffc07ecc: 3b a0 00 0a li r29,10
ffc07ed0: 4b ff fd 24 b ffc07bf4 <vprintk+0x19c>
ffc07ed4: 39 20 00 00 li r9,0
ffc07ed8: 3b a0 00 10 li r29,16
ffc07edc: 4b ff fd 18 b ffc07bf4 <vprintk+0x19c>
ffc1cd0c <write>:
ssize_t write(
int fd,
const void *buffer,
size_t count
)
{
ffc1cd0c: 94 21 ff f0 stwu r1,-16(r1)
ffc1cd10: 7c 08 02 a6 mflr r0
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
ffc1cd14: 3d 20 00 00 lis r9,0
ssize_t write(
int fd,
const void *buffer,
size_t count
)
{
ffc1cd18: 90 01 00 14 stw r0,20(r1)
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
ffc1cd1c: 80 09 26 4c lwz r0,9804(r9)
ssize_t write(
int fd,
const void *buffer,
size_t count
)
{
ffc1cd20: 93 e1 00 0c stw r31,12(r1)
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
ffc1cd24: 7f 83 00 40 cmplw cr7,r3,r0
ffc1cd28: 40 9c 00 94 bge- cr7,ffc1cdbc <write+0xb0>
iop = rtems_libio_iop( fd );
ffc1cd2c: 3d 60 00 00 lis r11,0
ffc1cd30: 83 eb 27 08 lwz r31,9992(r11)
ffc1cd34: 1c 63 00 48 mulli r3,r3,72
ffc1cd38: 7f ff 1a 14 add r31,r31,r3
rtems_libio_check_is_open( iop );
ffc1cd3c: 81 7f 00 18 lwz r11,24(r31)
ffc1cd40: 71 6a 01 00 andi. r10,r11,256
ffc1cd44: 41 82 00 78 beq- ffc1cdbc <write+0xb0>
rtems_libio_check_buffer( buffer );
ffc1cd48: 2f 84 00 00 cmpwi cr7,r4,0
ffc1cd4c: 41 9e 00 84 beq- cr7,ffc1cdd0 <write+0xc4>
rtems_libio_check_count( count );
ffc1cd50: 2f 85 00 00 cmpwi cr7,r5,0
ffc1cd54: 38 60 00 00 li r3,0
ffc1cd58: 41 9e 00 50 beq- cr7,ffc1cda8 <write+0x9c>
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
ffc1cd5c: 71 60 00 04 andi. r0,r11,4
ffc1cd60: 41 82 00 70 beq- ffc1cdd0 <write+0xc4>
/*
* Now process the write() request.
*/
if ( !iop->handlers->write_h )
ffc1cd64: 81 3f 00 40 lwz r9,64(r31)
ffc1cd68: 80 09 00 0c lwz r0,12(r9)
ffc1cd6c: 2f 80 00 00 cmpwi cr7,r0,0
ffc1cd70: 41 9e 00 74 beq- cr7,ffc1cde4 <write+0xd8>
rtems_set_errno_and_return_minus_one( ENOTSUP );
rc = (*iop->handlers->write_h)( iop, buffer, count );
ffc1cd74: 7f e3 fb 78 mr r3,r31
ffc1cd78: 7c 09 03 a6 mtctr r0
ffc1cd7c: 4e 80 04 21 bctrl
if ( rc > 0 )
ffc1cd80: 2c 03 00 00 cmpwi r3,0
ffc1cd84: 40 81 00 24 ble- ffc1cda8 <write+0x9c>
iop->offset += rc;
ffc1cd88: 80 ff 00 10 lwz r7,16(r31)
ffc1cd8c: 7c 6a 1b 78 mr r10,r3
ffc1cd90: 81 1f 00 14 lwz r8,20(r31)
ffc1cd94: 7c 69 fe 70 srawi r9,r3,31
ffc1cd98: 7d 88 50 14 addc r12,r8,r10
ffc1cd9c: 7d 67 49 14 adde r11,r7,r9
ffc1cda0: 91 7f 00 10 stw r11,16(r31)
ffc1cda4: 91 9f 00 14 stw r12,20(r31)
return rc;
}
ffc1cda8: 80 01 00 14 lwz r0,20(r1)
ffc1cdac: 83 e1 00 0c lwz r31,12(r1)
ffc1cdb0: 38 21 00 10 addi r1,r1,16
ffc1cdb4: 7c 08 03 a6 mtlr r0
ffc1cdb8: 4e 80 00 20 blr
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open( iop );
ffc1cdbc: 4b ff 4d fd bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc1cdc0: 38 00 00 09 li r0,9 <== NOT EXECUTED
ffc1cdc4: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc1cdc8: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc1cdcc: 4b ff ff dc b ffc1cda8 <write+0x9c> <== NOT EXECUTED
rtems_libio_check_buffer( buffer );
rtems_libio_check_count( count );
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
ffc1cdd0: 4b ff 4d e9 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc1cdd4: 38 00 00 16 li r0,22 <== NOT EXECUTED
ffc1cdd8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc1cddc: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc1cde0: 4b ff ff c8 b ffc1cda8 <write+0x9c> <== NOT EXECUTED
/*
* Now process the write() request.
*/
if ( !iop->handlers->write_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc1cde4: 4b ff 4d d5 bl ffc11bb8 <__errno> <== NOT EXECUTED
ffc1cde8: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc1cdec: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc1cdf0: 38 60 ff ff li r3,-1 <== NOT EXECUTED
ffc1cdf4: 4b ff ff b4 b ffc1cda8 <write+0x9c> <== NOT EXECUTED
ffc099fc <writev>:
ssize_t writev(
int fd,
const struct iovec *iov,
int iovcnt
)
{
ffc099fc: 94 21 ff d8 stwu r1,-40(r1)
ffc09a00: 7c 08 02 a6 mflr r0
int bytes;
rtems_libio_t *iop;
ssize_t old;
bool all_zeros;
rtems_libio_check_fd( fd );
ffc09a04: 3d 20 00 00 lis r9,0
ssize_t writev(
int fd,
const struct iovec *iov,
int iovcnt
)
{
ffc09a08: 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 );
ffc09a0c: 80 09 26 4c lwz r0,9804(r9)
ssize_t writev(
int fd,
const struct iovec *iov,
int iovcnt
)
{
ffc09a10: 93 a1 00 1c stw r29,28(r1)
ffc09a14: 7c bd 2b 78 mr r29,r5
int bytes;
rtems_libio_t *iop;
ssize_t old;
bool all_zeros;
rtems_libio_check_fd( fd );
ffc09a18: 7f 83 00 40 cmplw cr7,r3,r0
ssize_t writev(
int fd,
const struct iovec *iov,
int iovcnt
)
{
ffc09a1c: 93 21 00 0c stw r25,12(r1)
ffc09a20: 93 41 00 10 stw r26,16(r1)
ffc09a24: 93 61 00 14 stw r27,20(r1)
ffc09a28: 93 81 00 18 stw r28,24(r1)
ffc09a2c: 93 c1 00 20 stw r30,32(r1)
ffc09a30: 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 );
ffc09a34: 40 9c 01 78 bge- cr7,ffc09bac <writev+0x1b0>
iop = rtems_libio_iop( fd );
ffc09a38: 3d 20 00 00 lis r9,0
ffc09a3c: 83 89 27 0c lwz r28,9996(r9)
ffc09a40: 1c 63 00 48 mulli r3,r3,72
ffc09a44: 7f 9c 1a 14 add r28,r28,r3
rtems_libio_check_is_open( iop );
ffc09a48: 80 1c 00 18 lwz r0,24(r28)
ffc09a4c: 70 09 01 00 andi. r9,r0,256
ffc09a50: 41 82 01 5c beq- ffc09bac <writev+0x1b0>
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
ffc09a54: 70 09 00 04 andi. r9,r0,4
ffc09a58: 41 82 01 14 beq- ffc09b6c <writev+0x170>
/*
* Argument validation on IO vector
*/
if ( !iov )
ffc09a5c: 2f 84 00 00 cmpwi cr7,r4,0
ffc09a60: 41 9e 01 0c beq- cr7,ffc09b6c <writev+0x170>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt <= 0 )
ffc09a64: 2f 85 00 00 cmpwi cr7,r5,0
ffc09a68: 40 9d 01 04 ble- cr7,ffc09b6c <writev+0x170>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt > IOV_MAX )
ffc09a6c: 2f 85 04 00 cmpwi cr7,r5,1024
ffc09a70: 41 9d 00 fc bgt- cr7,ffc09b6c <writev+0x170>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !iop->handlers->write_h )
ffc09a74: 81 3c 00 40 lwz r9,64(r28)
ffc09a78: 80 09 00 0c lwz r0,12(r9)
ffc09a7c: 2f 80 00 00 cmpwi cr7,r0,0
ffc09a80: 41 9e 01 40 beq- cr7,ffc09bc0 <writev+0x1c4>
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc09a84: 7c 9f 23 78 mr r31,r4
ffc09a88: 7c a9 03 a6 mtctr r5
ffc09a8c: 7c 89 23 78 mr r9,r4
ffc09a90: 39 00 00 01 li r8,1
ffc09a94: 39 60 00 00 li r11,0
ffc09a98: 48 00 00 08 b ffc09aa0 <writev+0xa4>
* 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++ ) {
ffc09a9c: 7c 0b 03 78 mr r11,r0
if ( !iov[v].iov_base )
ffc09aa0: 80 09 00 00 lwz r0,0(r9)
ffc09aa4: 2f 80 00 00 cmpwi cr7,r0,0
ffc09aa8: 41 9e 00 c4 beq- cr7,ffc09b6c <writev+0x170>
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 )
ffc09aac: 81 49 00 04 lwz r10,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++ ) {
ffc09ab0: 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;
ffc09ab4: 7c 0b 52 14 add r0,r11,r10
if ( total < old || total > SSIZE_MAX )
ffc09ab8: 7f 8b 00 00 cmpw cr7,r11,r0
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 )
ffc09abc: 31 4a ff ff addic r10,r10,-1
ffc09ac0: 7d 4a 51 10 subfe r10,r10,r10
all_zeros = false;
/* check for wrap */
old = total;
total += iov[v].iov_len;
if ( total < old || total > SSIZE_MAX )
ffc09ac4: 2f 00 7f ff cmpwi cr6,r0,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 )
ffc09ac8: 7d 08 50 38 and r8,r8,r10
all_zeros = false;
/* check for wrap */
old = total;
total += iov[v].iov_len;
if ( total < old || total > SSIZE_MAX )
ffc09acc: 41 9d 00 a0 bgt- cr7,ffc09b6c <writev+0x170>
ffc09ad0: 41 99 00 9c bgt- cr6,ffc09b6c <writev+0x170>
* 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++ ) {
ffc09ad4: 42 00 ff c8 bdnz+ ffc09a9c <writev+0xa0>
}
/*
* A writev with all zeros is supposed to have no effect per OpenGroup.
*/
if ( all_zeros == true ) {
ffc09ad8: 2f 88 00 00 cmpwi cr7,r8,0
ffc09adc: 3b c0 00 00 li r30,0
ffc09ae0: 3b 60 00 00 li r27,0
ffc09ae4: 40 9e 00 98 bne- cr7,ffc09b7c <writev+0x180>
/*
* Now process the writev().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
/* all zero lengths has no effect */
if ( iov[v].iov_len == 0 )
ffc09ae8: 80 bf 00 04 lwz r5,4(r31)
}
/*
* Now process the writev().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
ffc09aec: 3b de 00 01 addi r30,r30,1
/* all zero lengths has no effect */
if ( iov[v].iov_len == 0 )
ffc09af0: 2f 85 00 00 cmpwi cr7,r5,0
ffc09af4: 40 9e 00 20 bne- cr7,ffc09b14 <writev+0x118>
}
/*
* Now process the writev().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
ffc09af8: 7f 9d f0 00 cmpw cr7,r29,r30
ffc09afc: 3b ff 00 08 addi r31,r31,8
ffc09b00: 40 9d 00 7c ble- cr7,ffc09b7c <writev+0x180>
/* all zero lengths has no effect */
if ( iov[v].iov_len == 0 )
ffc09b04: 80 bf 00 04 lwz r5,4(r31)
}
/*
* Now process the writev().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
ffc09b08: 3b de 00 01 addi r30,r30,1
/* all zero lengths has no effect */
if ( iov[v].iov_len == 0 )
ffc09b0c: 2f 85 00 00 cmpwi cr7,r5,0
ffc09b10: 41 9e ff e8 beq+ cr7,ffc09af8 <writev+0xfc>
continue;
bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len );
ffc09b14: 81 3c 00 40 lwz r9,64(r28)
ffc09b18: 7f 83 e3 78 mr r3,r28
ffc09b1c: 80 9f 00 00 lwz r4,0(r31)
ffc09b20: 80 09 00 0c lwz r0,12(r9)
ffc09b24: 7c 09 03 a6 mtctr r0
ffc09b28: 4e 80 04 21 bctrl
if ( bytes < 0 )
ffc09b2c: 2c 03 00 00 cmpwi r3,0
ffc09b30: 41 80 00 a4 blt- ffc09bd4 <writev+0x1d8>
return -1;
if ( bytes > 0 ) {
ffc09b34: 41 82 00 28 beq- ffc09b5c <writev+0x160>
iop->offset += bytes;
ffc09b38: 81 7c 00 10 lwz r11,16(r28)
ffc09b3c: 7c 7a 1b 78 mr r26,r3
ffc09b40: 81 9c 00 14 lwz r12,20(r28)
ffc09b44: 7c 79 fe 70 srawi r25,r3,31
total += bytes;
ffc09b48: 7f 7b 1a 14 add r27,r27,r3
if ( bytes < 0 )
return -1;
if ( bytes > 0 ) {
iop->offset += bytes;
ffc09b4c: 7d 4c d0 14 addc r10,r12,r26
ffc09b50: 7d 2b c9 14 adde r9,r11,r25
ffc09b54: 91 3c 00 10 stw r9,16(r28)
ffc09b58: 91 5c 00 14 stw r10,20(r28)
total += bytes;
}
if (bytes != iov[ v ].iov_len)
ffc09b5c: 80 1f 00 04 lwz r0,4(r31)
ffc09b60: 7f 83 00 00 cmpw cr7,r3,r0
ffc09b64: 41 9e ff 94 beq+ cr7,ffc09af8 <writev+0xfc>
ffc09b68: 48 00 00 14 b ffc09b7c <writev+0x180> <== NOT EXECUTED
/* check for wrap */
old = total;
total += iov[v].iov_len;
if ( total < old || total > SSIZE_MAX )
rtems_set_errno_and_return_minus_one( EINVAL );
ffc09b6c: 48 00 b0 21 bl ffc14b8c <__errno>
ffc09b70: 38 00 00 16 li r0,22
ffc09b74: 90 03 00 00 stw r0,0(r3)
ffc09b78: 3b 60 ff ff li r27,-1
if (bytes != iov[ v ].iov_len)
break;
}
return total;
}
ffc09b7c: 80 01 00 2c lwz r0,44(r1)
ffc09b80: 7f 63 db 78 mr r3,r27
ffc09b84: 83 21 00 0c lwz r25,12(r1)
ffc09b88: 7c 08 03 a6 mtlr r0
ffc09b8c: 83 41 00 10 lwz r26,16(r1)
ffc09b90: 83 61 00 14 lwz r27,20(r1)
ffc09b94: 83 81 00 18 lwz r28,24(r1)
ffc09b98: 83 a1 00 1c lwz r29,28(r1)
ffc09b9c: 83 c1 00 20 lwz r30,32(r1)
ffc09ba0: 83 e1 00 24 lwz r31,36(r1)
ffc09ba4: 38 21 00 28 addi r1,r1,40
ffc09ba8: 4e 80 00 20 blr
ssize_t old;
bool all_zeros;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open( iop );
ffc09bac: 48 00 af e1 bl ffc14b8c <__errno>
ffc09bb0: 38 00 00 09 li r0,9
ffc09bb4: 90 03 00 00 stw r0,0(r3)
ffc09bb8: 3b 60 ff ff li r27,-1
ffc09bbc: 4b ff ff c0 b ffc09b7c <writev+0x180>
if ( iovcnt > IOV_MAX )
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !iop->handlers->write_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
ffc09bc0: 48 00 af cd bl ffc14b8c <__errno> <== NOT EXECUTED
ffc09bc4: 38 00 00 86 li r0,134 <== NOT EXECUTED
ffc09bc8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED
ffc09bcc: 3b 60 ff ff li r27,-1 <== NOT EXECUTED
ffc09bd0: 4b ff ff ac b ffc09b7c <writev+0x180> <== NOT EXECUTED
if ( iov[v].iov_len == 0 )
continue;
bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len );
if ( bytes < 0 )
ffc09bd4: 3b 60 ff ff li r27,-1 <== NOT EXECUTED
ffc09bd8: 4b ff ff a4 b ffc09b7c <writev+0x180> <== NOT EXECUTED